]> git.lyx.org Git - features.git/blob - lib/doc/ja/Additional.lyx
d472090037d33b0ed194b355eb429b9b1759b87d
[features.git] / lib / doc / ja / Additional.lyx
1 #LyX 2.2 created this file. For more info see http://www.lyx.org/
2 \lyxformat 508
3 \begin_document
4 \begin_header
5 \save_transient_properties true
6 \origin /systemlyxdir/doc/ja/
7 \textclass scrbook
8 \begin_preamble
9 % DO NOT ALTER THIS PREAMBLE!!!
10 %
11 % This preamble is designed to ensure that the manual prints
12 % out as advertised. If you mess with this preamble,
13 % parts of the manual may not print out as expected.  If you
14 % have problems LaTeXing this file, please contact 
15 % the documentation team
16 % email: lyx-docs@lists.lyx.org
17
18 \IfFileExists{pxjahyper.sty}
19 {\usepackage{pxjahyper}}
20
21 % the pages of the TOC are numbered roman
22 % and a PDF-bookmark for the TOC is added
23 \pagenumbering{roman}
24 \let\myTOC\tableofcontents
25 \renewcommand{\tableofcontents}{%
26  \pdfbookmark[1]{\contentsname}{}
27  \myTOC
28  \cleardoublepage
29  \pagenumbering{arabic}}
30
31 % extra space for tables
32 \newcommand{\extratablespace}[1]{\noalign{\vskip#1}}
33
34 \usepackage{t1enc}
35 \end_preamble
36 \options fleqn,bibliography=totoc,index=totoc,BCOR7.5mm,titlepage,captions=tableheading
37 \use_default_options false
38 \begin_modules
39 logicalmkup
40 theorems-ams
41 theorems-ams-extended
42 multicol
43 shapepar
44 \end_modules
45 \maintain_unincluded_children false
46 \begin_local_layout
47 Format 35
48 InsetLayout             Flex:MenuItem
49 LyxType         charstyle
50 LabelString           menu
51 LatexType             command
52 LatexName             menuitem
53 Font
54 Family              Sans
55 EndFont
56 Preamble
57 \newcommand*{\menuitem}[1]{{\sffamily #1}}
58 EndPreamble
59 End
60 InsetLayout             Flex:Ruby
61 LyxType         charstyle
62 LatexType               command
63 LatexName               ruby
64 BgColor         none
65 LabelString             "ルビ"
66 Decoration              Conglomerate
67 Argument post:1
68 LabelString     "ルビ文"
69 MenuString      "ルビ文(S)|S"
70 Decoration      Conglomerate
71 Font
72 Size            tiny
73 EndFont
74 LabelFont
75 Size            tiny
76 EndFont
77 Mandatory       1
78 EndArgument
79 Preamble
80 \IfFileExists{okumacro.sty}
81 {\usepackage{okumacro}}
82 {\newcommand{\ruby}[2]{#2}}
83 EndPreamble
84 End
85 \end_local_layout
86 \language japanese
87 \language_package default
88 \inputencoding auto
89 \fontencoding global
90 \font_roman "default" "default"
91 \font_sans "default" "default"
92 \font_typewriter "default" "default"
93 \font_math "auto" "auto"
94 \font_default_family default
95 \use_non_tex_fonts false
96 \font_sc false
97 \font_osf false
98 \font_sf_scale 100 100
99 \font_tt_scale 100 100
100 \graphics default
101 \default_output_format pdf3
102 \output_sync 0
103 \bibtex_command default
104 \index_command default
105 \paperfontsize 12
106 \spacing single
107 \use_hyperref true
108 \pdf_title "LyX's Additional Features manual"
109 \pdf_author "LyX Team"
110 \pdf_subject "LyX's additional features documentation"
111 \pdf_keywords "LyX, Documentation, Additional"
112 \pdf_bookmarks false
113 \pdf_bookmarksnumbered true
114 \pdf_bookmarksopen false
115 \pdf_bookmarksopenlevel 1
116 \pdf_breaklinks false
117 \pdf_pdfborder false
118 \pdf_colorlinks true
119 \pdf_backref false
120 \pdf_pdfusetitle false
121 \pdf_quoted_options "pdfencoding=pdfdoc, linkcolor=black, citecolor=black, urlcolor=blue, filecolor=blue, pdfpagelayout=OneColumn, pdfnewwindow=true, pdfstartview=XYZ, plainpages=false"
122 \papersize default
123 \use_geometry false
124 \use_package amsmath 1
125 \use_package amssymb 1
126 \use_package cancel 0
127 \use_package esint 0
128 \use_package mathdots 1
129 \use_package mathtools 0
130 \use_package mhchem 1
131 \use_package stackrel 0
132 \use_package stmaryrd 0
133 \use_package undertilde 0
134 \cite_engine basic
135 \cite_engine_type default
136 \biblio_style plain
137 \use_bibtopic false
138 \use_indices false
139 \paperorientation portrait
140 \suppress_date false
141 \justification true
142 \use_refstyle 0
143 \notefontcolor #0000ff
144 \index 索引
145 \shortcut idx
146 \color #008000
147 \end_index
148 \secnumdepth 3
149 \tocdepth 3
150 \paragraph_separation indent
151 \paragraph_indentation default
152 \quotes_language english
153 \papercolumns 1
154 \papersides 2
155 \paperpagestyle headings
156 \tracking_changes false
157 \output_changes false
158 \html_math_output 0
159 \html_css_as_file 0
160 \html_be_strict true
161 \end_header
162
163 \begin_body
164
165 \begin_layout Title
166 \SpecialChar LyX
167 の高度な機能
168 \begin_inset Newline newline
169 \end_inset
170
171
172 \size large
173 第2.2.x版
174 \end_layout
175
176 \begin_layout Author
177 \SpecialChar LyX
178 プロジェクトチーム
179 \begin_inset Foot
180 status collapsed
181
182 \begin_layout Plain Layout
183 このファイルは主にRichard Heckによって管理されています.コメントをされたい場合や誤りを発見された場合には,\SpecialChar LyX
184 文書化メーリングリスト
185 \begin_inset Flex Code
186 status open
187
188 \begin_layout Plain Layout
189 \noindent
190
191 \family typewriter
192 <lyx-docs@lists.lyx.org>
193 \end_layout
194
195 \end_inset
196
197 に英文にてお知らせ下さい.この文書の翻訳は,当初人見光太郎氏が行った貢献に基づいています.
198 \end_layout
199
200 \end_inset
201
202  
203 \end_layout
204
205 \begin_layout Standard
206 \begin_inset CommandInset toc
207 LatexCommand tableofcontents
208
209 \end_inset
210
211
212 \end_layout
213
214 \begin_layout Chapter
215 はじめに
216 \end_layout
217
218 \begin_layout Standard
219 いまお読みの取扱説明書『
220 \emph on
221 \SpecialChar LyX
222 拡張機能篇
223 \emph default
224 』は,基本的には『
225 \emph on
226 ユーザーの手引き
227 \emph default
228 』の第二部です.これらの文書を別部とした理由は,単純に『
229 \emph on
230 ユーザーの手引き
231 \emph default
232 』がすでに大部となっていることと,『
233 \emph on
234 ユーザーの手引き
235 \emph default
236 』が,ほとんどの文書を作成する上で必要な基本機能をすべて説明してしまっているためです.一方で,\SpecialChar LyX
237 プロジェクトチームは,\SpecialChar LyX
238 を各設定ファイルと外部パッケージによって拡張
239 可能な状態にしておくことを長期的な目標にしています.つまり,ある\SpecialChar LaTeX
240 パッケージをサポートしたい場合に,\SpecialChar LyX
241 自身に変更を加えることなく,当該パッケージ用のレイアウトファイ
242 ル(ないしモジュール)を作成すればいいようにしているのです.すでにこのような形で,いくつもの新機能がユーザーによって追加されています.この取扱説明書は,そのよう
243 な形での貢献を文書化する冊子として位置付けられています.
244 \end_layout
245
246 \begin_layout Standard
247 この取扱説明書では,ファックスのサポート・バージョン管理・SGMLサポートのような,正しく機能するためには追加的なソフトウェアを必要とする特殊機能についても説明
248 しています.さらに,\SpecialChar LaTeX
249 の強力な機能を直接使って文書を美しく仕上げるための,\SpecialChar LaTeX
250 ツールやテクニックを述べた章も収録しています.つきつめれば,\SpecialChar LyX
251 とはあくまでWYSIWYMた
252 ることを企図しているため,\SpecialChar LaTeX
253 の全機能の一部へのインタフェースは用意するものの,すべてを用意することはないでしょう.
254 \end_layout
255
256 \begin_layout Standard
257 もし,まだ『
258 \emph on
259 はじめの一歩
260 \emph default
261 』をお読みでなかったら,この取扱説明書から読みはじめるのは誤りです.『
262 \emph on
263 はじめの一歩
264 \emph default
265 』には,全取扱説明書に共通の表記法と書式が説明されていますので,まずそれからお読みください.さらに,この取扱説明書を読もうとする前に,『
266 \emph on
267 ユーザーの手引き
268 \emph default
269 』をよくお読みになって,\SpecialChar LyX
270 の全基本機能を習得してください.
271 \end_layout
272
273 \begin_layout Standard
274 この取扱説明書の取り上げられている話題は,\SpecialChar LyX
275 が\SpecialChar LaTeX
276 にどう関わっているかに強く関係していますので,まず次章では,\SpecialChar LyX
277 の内部動作がどうなっているか,LyXに希望する\SpecialChar LaTeX
278 コードを正
279 確に生成させるにはどうしたらいいかを収録しています.本章は,あきらかに熟練\SpecialChar LyX
280 ユーザー向けの章となっています.
281 \end_layout
282
283 \begin_layout Chapter
284 \SpecialChar LyX
285 と\SpecialChar LaTeX
286
287 \end_layout
288
289 \begin_layout Section
290 \SpecialChar LyX
291 は\SpecialChar LaTeX
292 をどう使っているか
293 \end_layout
294
295 \begin_layout Standard
296 本章
297 \family roman
298 \series medium
299 \shape up
300 \size normal
301 \emph off
302 \bar no
303 \noun off
304 \color none
305 は,\SpecialChar TeX
306 熟練者と\SpecialChar LaTeX
307 に興味のある方向けの章です.ここでは,\SpecialChar LyX
308 と\SpecialChar LaTeX
309 が,印刷可能な出力を生成するのに,どのように協働しているのかを説明します.全取扱説明書中で本章だけは,\SpecialChar LaTeX
310 のこと
311 を多少なりともご存知であることを前提とします.
312 \end_layout
313
314 \begin_layout Standard
315
316 \family roman
317 \series medium
318 \shape up
319 \size normal
320 \emph off
321 \bar no
322 \noun off
323 \color none
324 かつて\SpecialChar LyX
325 は,「\SpecialChar LaTeX
326
327 \family default
328 \series default
329 \shape default
330 \size default
331 \emph default
332 \bar default
333 \noun default
334 \color inherit
335 WYSIWYM
336 \family roman
337 \series medium
338 \shape up
339 \size normal
340 \emph off
341 \bar no
342 \noun off
343 \color none
344 なフロントエンド」と呼ばれていましたが,いまではこれは正しくありません.\SpecialChar LaTeX
345 のフロントエンドは,いくつも出回っています
346 \begin_inset Foot
347 status collapsed
348
349 \begin_layout Plain Layout
350
351 \family roman
352 \series medium
353 \shape up
354 \size normal
355 \emph off
356 \bar no
357 \noun off
358 \color none
359 有名なものとしては,Linux上の\SpecialChar TeX
360 makerとkile,OSX上の\SpecialChar TeX
361 shopなどがあります.もちろんviとemacsの\SpecialChar LaTeX
362 モードも含まれます.
363 \end_layout
364
365 \end_inset
366
367 .これらは,基本的に\SpecialChar LaTeX
368 を走らせる機能を有し,編集中のファイルのエラーを表示する機能を持ったテキストエディタです.\SpecialChar LyX
369 も,エディタであり,\SpecialChar LaTeX
370 を走らせる機能を有し,ファイル
371 中のエラーを指摘しますが,それ以上にもっともっと多くのことをしてくれます.
372 \family default
373 \series default
374 \shape default
375 \size default
376 \emph default
377 \bar default
378 \noun default
379 \color inherit
380 ひとつには,
381 \family roman
382 \series medium
383 \shape up
384 \size normal
385 \emph off
386 \bar no
387 \noun off
388 \color none
389 \SpecialChar LyX
390 を効果的に使うのに,\SpecialChar LaTeX
391 の知識が必要とされないことが挙げられます.また\SpecialChar LyX
392 は,それ自身,いくつかの拡張を\SpecialChar LaTeX
393 に加えています.時間のあるときにでも,いちど以下の手順を試してみ
394 てください.まず
395 \family sans
396 \series default
397 \shape default
398 \size default
399 \emph default
400 \bar default
401 \noun default
402 \color inherit
403
404 \begin_inset Flex MenuItem
405 status collapsed
406
407 \begin_layout Plain Layout
408
409 \family sans
410 ファイル
411 \end_layout
412
413 \end_inset
414
415
416 \family roman
417 \series medium
418 \shape up
419 \size normal
420 \emph off
421 \bar no
422 \noun off
423 \color none
424 メニューから
425 \family sans
426 \series default
427 \shape default
428 \size default
429 \emph default
430 \bar default
431 \noun default
432 \color inherit
433
434 \begin_inset Flex MenuItem
435 status collapsed
436
437 \begin_layout Plain Layout
438
439 \family sans
440 エクスポート\SpecialChar menuseparator
441 \SpecialChar LaTeX
442
443 \end_layout
444
445 \end_inset
446
447
448 \family roman
449 \series medium
450 \shape up
451 \size normal
452 \emph off
453 \bar no
454 \noun off
455 \color none
456 (あるいは
457 \family sans
458 \series default
459 \shape default
460 \size default
461 \emph default
462 \bar default
463 \noun default
464 \color inherit
465
466 \begin_inset Flex MenuItem
467 status collapsed
468
469 \begin_layout Plain Layout
470
471 \family sans
472 表示\SpecialChar menuseparator
473 ソースを閲覧
474 \end_layout
475
476 \end_inset
477
478
479 \family roman
480 \series medium
481 \shape up
482 \size normal
483 \emph off
484 \bar no
485 \noun off
486 \color none
487 )を選択し,そこから出力される
488 \begin_inset Flex Code
489 status collapsed
490
491 \begin_layout Plain Layout
492
493 \family typewriter
494 .tex
495 \end_layout
496
497 \end_inset
498
499 ファイルのプリアンブルをご覧ください.\SpecialChar LyX
500 によって特別に定義された新しいマクロが複数定義されていることに気づかれるはずです
501 \family default
502 \series default
503 \shape default
504 \size default
505 \emph default
506 \bar default
507 \noun default
508 \color inherit
509 .これらのマクロは,文書中で使用する機能に応じて,自動的に定義されます.
510 \end_layout
511
512 \begin_layout Standard
513
514 \family roman
515 \series medium
516 \shape up
517 \size normal
518 \emph off
519 \bar no
520 \noun off
521 \color none
522 自動的に\SpecialChar LaTeX
523 を実行するコマンドが,以下のようにいくつかあります.
524 \end_layout
525
526 \begin_layout Itemize
527 \begin_inset Flex MenuItem
528 status collapsed
529
530 \begin_layout Plain Layout
531 表示\SpecialChar menuseparator
532 書式
533 \end_layout
534
535 \end_inset
536
537
538 \end_layout
539
540 \begin_layout Itemize
541
542 \family sans
543 \begin_inset Flex MenuItem
544 status collapsed
545
546 \begin_layout Plain Layout
547
548 \bar no
549 表示\SpecialChar menuseparator
550 更新\SpecialChar menuseparator
551
552 \bar default
553 書式
554 \end_layout
555
556 \end_inset
557
558
559 \end_layout
560
561 \begin_layout Itemize
562
563 \family sans
564 \begin_inset Flex MenuItem
565 status collapsed
566
567 \begin_layout Plain Layout
568 ファイル\SpecialChar menuseparator
569 印刷
570 \end_layout
571
572 \end_inset
573
574
575 \end_layout
576
577 \begin_layout Itemize
578
579 \family sans
580 \begin_inset Flex MenuItem
581 status collapsed
582
583 \begin_layout Plain Layout
584 ファイル\SpecialChar menuseparator
585 ファックス
586 \end_layout
587
588 \end_inset
589
590
591 \end_layout
592
593 \begin_layout Standard
594
595 \family roman
596 \series medium
597 \shape up
598 \size normal
599 \emph off
600 \bar no
601 \noun off
602 \color none
603 これらは,最後に\SpecialChar LaTeX
604 を実行してからファイルに変更が加えられた場合のみ,\SpecialChar LaTeX
605 を実行します.
606 \end_layout
607
608 \begin_layout Standard
609
610 \family roman
611 \series medium
612 \shape up
613 \size normal
614 \emph off
615 \bar no
616 \noun off
617 \color none
618 \SpecialChar LyX
619 が編集中のファイルを\SpecialChar LaTeX
620 にかけるとき,\SpecialChar LyX
621 は以下の段階をふみます.
622 \end_layout
623
624 \begin_layout Enumerate
625
626 \family roman
627 \series medium
628 \shape up
629 \size normal
630 \emph off
631 \bar no
632 \noun off
633 \color none
634 文書を\SpecialChar LaTeX
635 に変換し,ファイルの拡張子を
636 \begin_inset Flex Code
637 status collapsed
638
639 \begin_layout Plain Layout
640
641 \family roman
642 \series medium
643 \shape up
644 \size normal
645 \emph off
646 \bar no
647 \noun off
648 \color none
649 .lyx
650 \end_layout
651
652 \end_inset
653
654 から
655 \begin_inset Flex Code
656 status collapsed
657
658 \begin_layout Plain Layout
659
660 \family roman
661 \series medium
662 \shape up
663 \size normal
664 \emph off
665 \bar no
666 \noun off
667 \color none
668 .tex
669 \end_layout
670
671 \end_inset
672
673 に変えて保存.
674 \end_layout
675
676 \begin_layout Enumerate
677
678 \family roman
679 \series medium
680 \shape up
681 \size normal
682 \emph off
683 \bar no
684 \noun off
685 \color none
686 この
687 \begin_inset Flex Code
688 status collapsed
689
690 \begin_layout Plain Layout
691
692 \family roman
693 \series medium
694 \shape up
695 \size normal
696 \emph off
697 \bar no
698 \noun off
699 \color none
700 .tex
701 \end_layout
702
703 \end_inset
704
705 ファイルに対して(必要に応じて複数回)\SpecialChar LaTeX
706 を実行し,\SpecialChar LaTeX
707 ファイルをコンパイルするのに必要な他のコマンド(
708 \begin_inset Flex Code
709 status collapsed
710
711 \begin_layout Plain Layout
712
713 \family roman
714 \series medium
715 \shape up
716 \size normal
717 \emph off
718 \bar no
719 \noun off
720 \color none
721 bibtex
722 \end_layout
723
724 \end_inset
725
726
727 \begin_inset Flex Code
728 status collapsed
729
730 \begin_layout Plain Layout
731
732 \family roman
733 \series medium
734 \shape up
735 \size normal
736 \emph off
737 \bar no
738 \noun off
739 \color none
740 makeindex
741 \end_layout
742
743 \end_inset
744
745 など)を実行..
746 \end_layout
747
748 \begin_layout Enumerate
749
750 \family roman
751 \series medium
752 \shape up
753 \size normal
754 \emph off
755 \bar no
756 \noun off
757 \color none
758 もしエラーがあれば,エラーログを表示.
759 \end_layout
760
761 \begin_layout Standard
762
763 \family roman
764 \series medium
765 \shape up
766 \size normal
767 \emph off
768 \bar no
769 \noun off
770 \color none
771 \SpecialChar LaTeX
772
773 \family sans
774 \series default
775 \shape default
776 \size default
777 \emph default
778 \bar default
779 \noun default
780 \color inherit
781
782 \begin_inset Flex MenuItem
783 status collapsed
784
785 \begin_layout Plain Layout
786
787 \family sans
788 表示\SpecialChar menuseparator
789 DVI
790 \end_layout
791
792 \end_inset
793
794
795 \family roman
796 \series medium
797 \shape up
798 \size normal
799 \emph off
800 \bar no
801 \noun off
802 \color none
803 を使用して実行した場合には,\SpecialChar LyX
804 はこの後,DVIビューアを実行してDVIファイルを表示します.
805 \begin_inset Flex MenuItem
806 status collapsed
807
808 \begin_layout Plain Layout
809
810 \family roman
811 \series medium
812 \shape up
813 \size normal
814 \emph off
815 \bar no
816 \noun off
817 \color none
818 表示\SpecialChar menuseparator
819 PostScript
820 \end_layout
821
822 \end_inset
823
824 を使用した場合には,\SpecialChar LyX
825 はさらに以下の段階をふみます.
826 \end_layout
827
828 \begin_layout Itemize
829
830 \family roman
831 \series medium
832 \shape up
833 \size normal
834 \emph off
835 \bar no
836 \noun off
837 \color none
838 \begin_inset Flex Code
839 status collapsed
840
841 \begin_layout Plain Layout
842
843 \family typewriter
844 dvips
845 \end_layout
846
847 \end_inset
848
849 を実行して,
850 \family default
851 \series default
852 \shape default
853 \size default
854 \emph default
855 \bar default
856 \noun default
857 \color inherit
858 DVI
859 \family roman
860 \series medium
861 \shape up
862 \size normal
863 \emph off
864 \bar no
865 \noun off
866 \color none
867 ファイルを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 Itemize
880
881 \family roman
882 \series medium
883 \shape up
884 \size normal
885 \emph off
886 \bar no
887 \noun off
888 \color none
889 \begin_inset Flex Code
890 status collapsed
891
892 \begin_layout Plain Layout
893
894 \family typewriter
895 ghostview
896 \end_layout
897
898 \end_inset
899
900 などのPostScript®ビューアを実行して,PostScript®
901 \family default
902 \series default
903 \shape default
904 \size default
905 \emph default
906 \bar default
907 \noun default
908 \color inherit
909 ファイルを表示.
910 \end_layout
911
912 \begin_layout Standard
913 \SpecialChar LyX
914 は,他の書式を表示したりエクスポートしたりする際にも,同様のことを行います.
915 \end_layout
916
917 \begin_layout Section
918 \SpecialChar LaTeX
919 ファイルを\SpecialChar LyX
920 に読み込む
921 \end_layout
922
923 \begin_layout Standard
924 \SpecialChar LyX
925
926 \family sans
927
928 \begin_inset Flex MenuItem
929 status collapsed
930
931 \begin_layout Plain Layout
932
933 \family sans
934 ファイル\SpecialChar menuseparator
935 インポート\SpecialChar menuseparator
936 \SpecialChar LaTeX
937
938 \end_layout
939
940 \end_inset
941
942
943 \family roman
944 \series medium
945 \shape up
946 \size normal
947 \emph off
948 \bar no
949 \noun off
950 \color none
951 コマンドを使用すると,\SpecialChar LaTeX
952 ファイルを
953 \family default
954 \series default
955 \shape default
956 \size default
957 \emph default
958 \bar default
959 \noun default
960  
961 \family roman
962 \series medium
963 \shape up
964 \size normal
965 \emph off
966 \bar no
967 \noun off
968 \SpecialChar LyX
969 にインポートすることができます.このコマンドは,
970 \family typewriter
971 \series default
972 \shape default
973 \size default
974 \emph default
975 \bar default
976 \noun default
977 \color inherit
978
979 \begin_inset Flex Code
980 status collapsed
981
982 \begin_layout Plain Layout
983
984 \family typewriter
985 tex2lyx
986 \end_layout
987
988 \end_inset
989
990
991 \family roman
992 \series medium
993 \shape up
994 \size normal
995 \emph off
996 \bar no
997 \noun off
998 \color none
999 というプログラムを呼び出し,
1000 \family typewriter
1001 \series default
1002 \shape default
1003 \size default
1004 \emph default
1005 \bar default
1006 \noun default
1007 \color inherit
1008
1009 \begin_inset Flex Code
1010 status collapsed
1011
1012 \begin_layout Plain Layout
1013
1014 \family typewriter
1015 foo.tex
1016 \end_layout
1017
1018 \end_inset
1019
1020
1021 \family default
1022 などというファイルから
1023 \begin_inset Flex Code
1024 status collapsed
1025
1026 \begin_layout Plain Layout
1027
1028 \family typewriter
1029 foo.lyx
1030 \end_layout
1031
1032 \end_inset
1033
1034 を生成します.\SpecialChar LyX
1035 は,この変換したファイルを開きます
1036 \begin_inset Foot
1037 status collapsed
1038
1039 \begin_layout Plain Layout
1040 \begin_inset Flex Code
1041 status collapsed
1042
1043 \begin_layout Plain Layout
1044 tex2lyx
1045 \end_layout
1046
1047 \end_inset
1048
1049 は,もちろんコマンドラインから実行することもできます.
1050 \end_layout
1051
1052 \end_inset
1053
1054
1055 \end_layout
1056
1057 \begin_layout Standard
1058
1059 \family typewriter
1060 \begin_inset Flex Code
1061 status collapsed
1062
1063 \begin_layout Plain Layout
1064
1065 \family typewriter
1066 tex2lyx
1067 \end_layout
1068
1069 \end_inset
1070
1071
1072 \family roman
1073 \series medium
1074 \shape up
1075 \size normal
1076 \emph off
1077 \bar no
1078 \noun off
1079 \color none
1080 は,文法的に正しい\SpecialChar LaTeX
1081 ファイルのほとんどを変換することができますが,すべてを変換できるわけではありません.
1082 \family typewriter
1083 \series default
1084 \shape default
1085 \size default
1086 \emph default
1087 \bar default
1088 \noun default
1089 \color inherit
1090
1091 \begin_inset Flex Code
1092 status collapsed
1093
1094 \begin_layout Plain Layout
1095
1096 \family typewriter
1097 tex2lyx
1098 \end_layout
1099
1100 \end_inset
1101
1102
1103 \family roman
1104 \series medium
1105 \shape up
1106 \size normal
1107 \emph off
1108 \bar no
1109 \noun off
1110 \color none
1111 は,理解不能な部分は\SpecialChar TeX
1112 コードボックスの形で残しますので,ファイルを
1113 \family typewriter
1114 \series default
1115 \shape default
1116 \size default
1117 \emph default
1118 \bar default
1119 \noun default
1120 \color inherit
1121
1122 \begin_inset Flex Code
1123 status collapsed
1124
1125 \begin_layout Plain Layout
1126
1127 \family typewriter
1128 tex2lyx
1129 \end_layout
1130
1131 \end_inset
1132
1133
1134 \family roman
1135 \series medium
1136 \shape up
1137 \size normal
1138 \emph off
1139 \bar no
1140 \noun off
1141 \color none
1142 で変換したのち,\SpecialChar TeX
1143 コードボックスを探して,手動で正しく編集してください.
1144 \end_layout
1145
1146 \begin_layout Standard
1147
1148 \family roman
1149 \series medium
1150 \shape up
1151 \size normal
1152 \emph off
1153 \bar no
1154 \noun off
1155 \color none
1156 \SpecialChar TeX
1157 コードボックスがなにかご存じなければ,次節をお読みください.
1158 \end_layout
1159
1160 \begin_layout Section
1161 \SpecialChar LaTeX
1162 コードを挿入する
1163 \begin_inset CommandInset label
1164 LatexCommand label
1165 name "sec:LaTeXコードを挿入する"
1166
1167 \end_inset
1168
1169
1170 \end_layout
1171
1172 \begin_layout Standard
1173
1174 \family roman
1175 \series medium
1176 \shape up
1177 \size normal
1178 \emph off
1179 \bar no
1180 \noun off
1181 \color none
1182 どの\SpecialChar LyX
1183 文書にもつねに\SpecialChar TeX
1184 コードを挿入することが可能であるというきわめて単純な理由によって,\SpecialChar LaTeX
1185 にできることは,つねに\SpecialChar LyX
1186 でも行うことができます.一方,\SpecialChar LyX
1187 は,すべての\SpecialChar LaTeX
1188 構成物を\SpecialChar LyX
1189 内に
1190 表示できるわけではなく,将来的にもそうならないでしょう.かりに\SpecialChar LaTeX
1191 コマンドを\SpecialChar LyX
1192 文書に挿入する必要が出てきた場合には,
1193 \begin_inset Flex Code
1194 status collapsed
1195
1196 \begin_layout Plain Layout
1197
1198 \family roman
1199 \series medium
1200 \shape up
1201 \size normal
1202 \emph off
1203 \bar no
1204 \noun off
1205 \color none
1206 \SpecialChar TeX
1207 コード
1208 \end_layout
1209
1210 \end_inset
1211
1212 ボックスを使用してください.これは,
1213 \family sans
1214 \series default
1215 \shape default
1216 \size default
1217 \emph default
1218 \bar default
1219 \noun default
1220 \color inherit
1221
1222 \begin_inset Flex MenuItem
1223 status collapsed
1224
1225 \begin_layout Plain Layout
1226
1227 \family sans
1228 挿入\SpecialChar menuseparator
1229 \SpecialChar TeX
1230 コード
1231 \end_layout
1232
1233 \end_inset
1234
1235
1236 \family roman
1237 \series medium
1238 \shape up
1239 \size normal
1240 \emph off
1241 \bar no
1242 \noun off
1243 \color none
1244 若しくは
1245 \family default
1246 \series default
1247 \shape default
1248 \size default
1249 \emph default
1250 \bar default
1251 \noun default
1252 \color inherit
1253
1254 \begin_inset Flex Ruby
1255 status collapsed
1256
1257 \begin_layout Plain Layout
1258
1259 \family roman
1260 \series medium
1261 \shape up
1262 \size normal
1263 \emph off
1264 \bar no
1265 \noun off
1266 \color none
1267 捷径
1268 \family default
1269 \series default
1270 \shape default
1271 \size default
1272 \emph default
1273 \bar default
1274 \noun default
1275 \color inherit
1276
1277 \begin_inset Argument post:1
1278 status collapsed
1279
1280 \begin_layout Plain Layout
1281 ショートカット
1282 \end_layout
1283
1284 \end_inset
1285
1286
1287 \end_layout
1288
1289 \end_inset
1290
1291
1292 \begin_inset Flex Ruby
1293 status collapsed
1294
1295 \begin_layout Plain Layout
1296
1297 \family roman
1298 \series medium
1299 \shape up
1300 \size normal
1301 \emph off
1302 \bar no
1303 \noun off
1304 \color none
1305
1306 \begin_inset Argument post:1
1307 status collapsed
1308
1309 \begin_layout Plain Layout
1310 キー
1311 \end_layout
1312
1313 \end_inset
1314
1315
1316 \end_layout
1317
1318 \end_inset
1319
1320
1321 \begin_inset Info
1322 type  "shortcut"
1323 arg   "ert-insert"
1324 \end_inset
1325
1326
1327 \family roman
1328 \series medium
1329 \shape up
1330 \size normal
1331 \emph off
1332 \bar no
1333 \noun off
1334 \color none
1335 で,文書中に挿入することができます.
1336 \end_layout
1337
1338 \begin_layout Standard
1339 以下は,\SpecialChar LaTeX
1340 コマンドを\SpecialChar LyX
1341 文書中に挿入する例です.コードは以下のようになっているとしましょう.
1342 \end_layout
1343
1344 \begin_layout LyX-Code
1345
1346 \backslash
1347 begin{tabular}{ll}
1348 \begin_inset Newline newline
1349 \end_inset
1350
1351
1352 \backslash
1353 begin{minipage}{5cm}
1354 \begin_inset Newline newline
1355 \end_inset
1356
1357 これは,ミニページ環境の例です.
1358 \begin_inset Newline newline
1359 \end_inset
1360
1361 これには,
1362 \begin_inset Newline newline
1363 \end_inset
1364
1365 (フロートでない)図表を
1366 \begin_inset Newline newline
1367 \end_inset
1368
1369 含め,ほとんど何でも
1370 \begin_inset Newline newline
1371 \end_inset
1372
1373 入れることができます. 
1374 \begin_inset Newline newline
1375 \end_inset
1376
1377
1378 \backslash
1379 end{minipage}
1380 \begin_inset Newline newline
1381 \end_inset
1382
1383 &
1384 \begin_inset Newline newline
1385 \end_inset
1386
1387
1388 \backslash
1389 begin{minipage}{5cm}
1390 \begin_inset Newline newline
1391 \end_inset
1392
1393
1394 \backslash
1395 begin{verbatim}
1396 \begin_inset Newline newline
1397 \end_inset
1398
1399
1400 \backslash
1401 begin{minipage}{5cm}
1402 \begin_inset Newline newline
1403 \end_inset
1404
1405 これは...
1406  
1407 \begin_inset Newline newline
1408 \end_inset
1409
1410
1411 \backslash
1412 end{minipage}
1413 \begin_inset Newline newline
1414 \end_inset
1415
1416
1417 \backslash
1418 end{verbatim}
1419 \begin_inset Newline newline
1420 \end_inset
1421
1422
1423 \backslash
1424 end{minipage}
1425 \begin_inset Newline newline
1426 \end_inset
1427
1428
1429 \backslash
1430 end{tabular}
1431 \end_layout
1432
1433 \begin_layout LyX-Code
1434
1435 \end_layout
1436
1437 \begin_layout Standard
1438 上記のテキストを含んだ
1439 \begin_inset Flex Code
1440 status collapsed
1441
1442 \begin_layout Plain Layout
1443 \SpecialChar TeX
1444 コード
1445 \end_layout
1446
1447 \end_inset
1448
1449 ボックスが,この段落の直後にあります.この取扱説明書を\SpecialChar LyX
1450 上でご覧になっていれば,\SpecialChar TeX
1451 コード差込枠のみが見えるはずです.印刷した取扱説明書をご覧であれば,実際の結果が見
1452 れるはずです.
1453 \end_layout
1454
1455 \begin_layout Standard
1456 \begin_inset VSpace bigskip
1457 \end_inset
1458
1459
1460 \begin_inset ERT
1461 status open
1462
1463 \begin_layout Plain Layout
1464
1465
1466 \backslash
1467 begin{tabular}{ll}
1468 \end_layout
1469
1470 \begin_layout Plain Layout
1471
1472
1473 \backslash
1474 begin{minipage}{5cm}
1475 \end_layout
1476
1477 \begin_layout Plain Layout
1478
1479 これは,ミニページ環境の例です.これには,(フロートでない)図表を含め,ほとんど何でも入れることができます. 
1480 \backslash
1481 end{minipage}
1482 \end_layout
1483
1484 \begin_layout Plain Layout
1485
1486 &
1487 \end_layout
1488
1489 \begin_layout Plain Layout
1490
1491
1492 \backslash
1493 begin{minipage}{5cm}
1494 \end_layout
1495
1496 \begin_layout Plain Layout
1497
1498
1499 \backslash
1500 begin{verbatim}
1501 \end_layout
1502
1503 \begin_layout Plain Layout
1504
1505
1506 \backslash
1507 begin{minipage}{5cm}
1508 \end_layout
1509
1510 \begin_layout Plain Layout
1511
1512 これは...
1513  
1514 \backslash
1515 end{minipage}
1516 \end_layout
1517
1518 \begin_layout Plain Layout
1519
1520
1521 \backslash
1522 end{verbatim}
1523 \end_layout
1524
1525 \begin_layout Plain Layout
1526
1527
1528 \backslash
1529 end{minipage}
1530 \end_layout
1531
1532 \begin_layout Plain Layout
1533
1534
1535 \backslash
1536 end{tabular}
1537 \end_layout
1538
1539 \end_inset
1540
1541
1542 \begin_inset VSpace bigskip
1543 \end_inset
1544
1545
1546 \end_layout
1547
1548 \begin_layout Standard
1549
1550 \family roman
1551 \series medium
1552 \shape up
1553 \size normal
1554 \emph off
1555 \bar no
1556 \noun off
1557 \color none
1558 \SpecialChar TeX
1559 コードを使用する方法に加えて,複雑な\SpecialChar LaTeX
1560 コードを含む部分を別ファイルとして作成しておき,そのファイルをインクルードするのに
1561 \begin_inset Flex MenuItem
1562 status collapsed
1563
1564 \begin_layout Plain Layout
1565
1566 \family roman
1567 \series medium
1568 \shape up
1569 \size normal
1570 \emph off
1571 \bar no
1572 \noun off
1573 \color none
1574 挿入\SpecialChar menuseparator
1575 ファイル\SpecialChar menuseparator
1576 子文書
1577 \end_layout
1578
1579 \end_inset
1580
1581 を使用する方法もあります(取り込みの型として
1582 \begin_inset Flex Code
1583 status collapsed
1584
1585 \begin_layout Plain Layout
1586
1587 \family roman
1588 \series medium
1589 \shape up
1590 \size normal
1591 \emph off
1592 \bar no
1593 \noun off
1594 \color none
1595 Input
1596 \end_layout
1597
1598 \end_inset
1599
1600 を選択しなくてはなりません).この方法をとる場合には,.texファイルが正しく動作することが
1601 \family default
1602 \series default
1603 \shape default
1604 \size default
1605 \emph on
1606 \bar default
1607 \noun default
1608 \color inherit
1609 確認できている
1610 \family roman
1611 \series medium
1612 \shape up
1613 \size normal
1614 \emph off
1615 \bar no
1616 \noun off
1617 \color none
1618 場合のみに限った方がよいでしょう.さもないと,\SpecialChar LaTeX
1619 エラーを追跡するたいへんな作業を行わなくてはならなくなります.
1620 \end_layout
1621
1622 \begin_layout Standard
1623
1624 \family roman
1625 \series medium
1626 \shape up
1627 \size normal
1628 \emph off
1629 \bar no
1630 \noun off
1631 \color none
1632 最後に,いくつか強調しておくべきことがあります.
1633 \end_layout
1634
1635 \begin_layout Itemize
1636
1637 \family roman
1638 \series medium
1639 \shape up
1640 \size normal
1641 \emph off
1642 \bar no
1643 \noun off
1644 \color none
1645 \SpecialChar LyX
1646 は,あなたの\SpecialChar LaTeX
1647 コードが正しいかどうかを
1648 \family default
1649 \series default
1650 \shape default
1651 \size default
1652 \emph on
1653 \bar default
1654 \noun default
1655 \color inherit
1656 チェックしません
1657 \family roman
1658 \series medium
1659 \shape up
1660 \size normal
1661 \emph off
1662 \bar no
1663 \noun off
1664 \color none
1665
1666 \end_layout
1667
1668 \begin_layout Itemize
1669
1670 \family roman
1671 \series medium
1672 \shape up
1673 \size normal
1674 \emph off
1675 \bar no
1676 \noun off
1677 \color none
1678 車輪の再発明をしないようにご注意ください.
1679 \end_layout
1680
1681 \begin_layout Standard
1682
1683 \family roman
1684 \series medium
1685 \shape up
1686 \size normal
1687 \emph off
1688 \bar no
1689 \noun off
1690 \color none
1691 二番目の点に関して,\SpecialChar LyX
1692 はひじょうにたくさんの機能を装備しており,その数は増えつづけています.ご自身で\SpecialChar LaTeX
1693 コードを書かなくてはならないと思い込む前に,LyXがこれこれの
1694 機能をもっていないことを,取扱説明書で確実に確かめてください.さらに世の中には,封筒のラベルから美しい複数ページにわたる表を作るものまで,ありとあらゆることを行
1695 う膨大な数の\SpecialChar LaTeX
1696 パッケージが存在します.
1697 \family default
1698 \series default
1699 \shape default
1700 \size default
1701 \emph default
1702 \bar default
1703 \noun default
1704 \color inherit
1705 詳細については,
1706 \begin_inset CommandInset href
1707 LatexCommand href
1708 name "CTAN"
1709 target "http://www.ctan.org/"
1710
1711 \end_inset
1712
1713
1714 \family roman
1715 \series medium
1716 \shape up
1717 \size normal
1718 \emph off
1719 \bar no
1720 \noun off
1721 \color none
1722 と第
1723 \begin_inset CommandInset ref
1724 LatexCommand ref
1725 reference "chap:Special-features"
1726
1727 \end_inset
1728
1729 節をご覧ください.
1730 \end_layout
1731
1732 \begin_layout Standard
1733
1734 \family roman
1735 \series medium
1736 \shape up
1737 \size normal
1738 \emph off
1739 \bar no
1740 \noun off
1741 \color none
1742 もし,文書中で例外的に手の込んだことをなさりたければ,かならず良い\SpecialChar LaTeX
1743 関連書籍を参考とするようにしてください.『
1744 \family default
1745 \series default
1746 \shape default
1747 \size default
1748 \emph on
1749 \bar default
1750 \noun default
1751 \color inherit
1752 ユーザーの手引き
1753 \family roman
1754 \series medium
1755 \shape up
1756 \size normal
1757 \emph off
1758 \bar no
1759 \noun off
1760 \color none
1761 』の書誌情報に多くの\SpecialChar LaTeX
1762 関連書籍が引用されています.
1763 \end_layout
1764
1765 \begin_layout Section
1766 \SpecialChar LyX
1767 と\SpecialChar LaTeX
1768 プリアンブル
1769 \end_layout
1770
1771 \begin_layout Subsection
1772 \SpecialChar LaTeX
1773 プリアンブルについて
1774 \end_layout
1775
1776 \begin_layout Standard
1777
1778 \family roman
1779 \series medium
1780 \shape up
1781 \size normal
1782 \emph off
1783 \bar no
1784 \noun off
1785 \color none
1786 すでに\SpecialChar LaTeX
1787 についてご存知であれば,ここでプリアンブル(前置文)が何に向いているか説明する必要はないでしょう.もしご存じなければ,以下の説明で大まかな理解は得られるは
1788 ずです.詳しくは\SpecialChar LaTeX
1789 関連書籍をご参照ください.いずれにしても,以下で\SpecialChar LyX
1790 文書の\SpecialChar LaTeX
1791 プリアンブルで何ができるか,または何をする必要がないか説明をしますので,以下の各要点はお読
1792 みになった方が良いでしょう.
1793 \end_layout
1794
1795 \begin_layout Standard
1796
1797 \family roman
1798 \series medium
1799 \shape up
1800 \size normal
1801 \emph off
1802 \bar no
1803 \noun off
1804 \color none
1805 \SpecialChar LaTeX
1806 プリアンブルは,\SpecialChar LaTeX
1807 文書のいちばん始め,本文の
1808 \family default
1809 \series default
1810 \shape default
1811 \size default
1812 \emph on
1813 \bar default
1814 \noun default
1815 \color inherit
1816
1817 \family roman
1818 \series medium
1819 \shape up
1820 \size normal
1821 \emph off
1822 \bar no
1823 \noun off
1824 \color none
1825 の部分に来ます.ここでは以下のことを行います.
1826 \end_layout
1827
1828 \begin_layout Itemize
1829
1830 \family roman
1831 \series medium
1832 \shape up
1833 \size normal
1834 \emph off
1835 \bar no
1836 \noun off
1837 \color none
1838 文書クラス(ドキュメントクラス)の宣言.
1839 \begin_inset Newline newline
1840 \end_inset
1841
1842 これは\SpecialChar LyX
1843 がすでに行ってくれています.もしあなたが熟達した\SpecialChar LaTeX
1844 使いであり,自作の文書クラスを使いたい場合には,取扱説明書『
1845 \family default
1846 \series default
1847 \shape default
1848 \size default
1849 \emph on
1850 \bar default
1851 \noun default
1852 \color inherit
1853 カスタマイズ篇
1854 \family roman
1855 \series medium
1856 \shape up
1857 \size normal
1858 \emph off
1859 \bar no
1860 \noun off
1861 \color none
1862 』をご覧になれば,\SpecialChar LyX
1863 に自作文書クラスへの仲介を行わせるにはどうすればよいかの情報があります.
1864 \end_layout
1865
1866 \begin_layout Itemize
1867
1868 \family roman
1869 \series medium
1870 \shape up
1871 \size normal
1872 \emph off
1873 \bar no
1874 \noun off
1875 \color none
1876 パッケージ使用の宣言.
1877 \begin_inset Newline newline
1878 \end_inset
1879
1880 \SpecialChar LaTeX
1881 パッケージは,パッケージがプリアンブルで宣言された場合のみ,文書中で利用可能となる,追加コマンド群を提供します.パッケージをインクルードすると,特別なコマンドが
1882 提供されることに加え,文書に変更を加えることができます.例えば
1883 \family typewriter
1884 \series default
1885 \shape default
1886 \size default
1887 \emph default
1888 \bar default
1889 \noun default
1890 \color inherit
1891
1892 \family roman
1893 \series medium
1894 \shape up
1895 \size normal
1896 \emph off
1897 \bar no
1898 \noun off
1899 \color none
1900
1901 \begin_inset Flex Code
1902 status collapsed
1903
1904 \begin_layout Plain Layout
1905
1906 \family typewriter
1907 indentfirst
1908 \end_layout
1909
1910 \end_inset
1911
1912 パッケージは,すべての段落の最初の行を字下げします.他にも,ラベルや宛名書き,余白設定等の様々なパッケージがあります.
1913 \end_layout
1914
1915 \begin_layout Itemize
1916
1917 \family roman
1918 \series medium
1919 \shape up
1920 \size normal
1921 \emph off
1922 \bar no
1923 \noun off
1924 \color none
1925 カウンタ・変数・長さ・幅の設定.
1926 \begin_inset Newline newline
1927 \end_inset
1928
1929 \SpecialChar LaTeX
1930 のカウンタと変数の中には,プリアンブルでグローバルに
1931 \family default
1932 \series default
1933 \shape default
1934 \size default
1935 \emph default
1936 \bar default
1937 \noun default
1938 \color inherit
1939 設定
1940 \emph on
1941 しないかぎり
1942 \family roman
1943 \series medium
1944 \shape up
1945 \size normal
1946 \emph off
1947 \bar no
1948 \noun off
1949 \color none
1950 ,望んだ効果を持たないものがあります.(文書中で設定したり再設定したりすることのできる変数もあります.)余白は,プリアンブルで設定しなくてはならない変数の代表例
1951 です.他には,箇条書きに付けるラベル書式が挙げられます.じつは,この設定は文書中どこでもできるのですが,プリアンブルでいちどだけ設定するのが望ましい方法です.
1952 \end_layout
1953
1954 \begin_layout Itemize
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 \begin_inset Flex Code
1966 status collapsed
1967
1968 \begin_layout Plain Layout
1969
1970 \family roman
1971 \series medium
1972 \shape up
1973 \size normal
1974 \emph off
1975 \bar no
1976 \noun off
1977 \color none
1978
1979 \backslash
1980 newcommand
1981 \end_layout
1982
1983 \end_inset
1984
1985 または
1986 \begin_inset Flex Code
1987 status collapsed
1988
1989 \begin_layout Plain Layout
1990
1991 \family roman
1992 \series medium
1993 \shape up
1994 \size normal
1995 \emph off
1996 \bar no
1997 \noun off
1998 \color none
1999
2000 \backslash
2001 renewcommand
2002 \end_layout
2003
2004 \end_inset
2005
2006 を使用).
2007 \begin_inset Newline newline
2008 \end_inset
2009
2010 ユーザー定義コマンドは,文書中で頻出する\SpecialChar LaTeX
2011 コマンドの短縮形です.このようなコマンドを宣言するには,プリアンブルが適した場所ですが,どこで宣言することも
2012 \family default
2013 \series default
2014 \shape default
2015 \size default
2016 \emph on
2017 \bar default
2018 \noun default
2019 \color inherit
2020 可能
2021 \family roman
2022 \series medium
2023 \shape up
2024 \size normal
2025 \emph off
2026 \bar no
2027 \noun off
2028 \color none
2029 です(もちろんコマンドが初めて使用される場所よりも前です).あまりないことではありますが,お使いの文書中に生の\SpecialChar LaTeX
2030 コードがあふれている場合には便利でしょう.
2031 \end_layout
2032
2033 \begin_layout Standard
2034
2035 \family roman
2036 \series medium
2037 \shape up
2038 \size normal
2039 \emph off
2040 \bar no
2041 \noun off
2042 \color none
2043 \SpecialChar LyX
2044 は,その生成する
2045 \begin_inset Flex Code
2046 status collapsed
2047
2048 \begin_layout Plain Layout
2049
2050 \family roman
2051 \series medium
2052 \shape up
2053 \size normal
2054 \emph off
2055 \bar no
2056 \noun off
2057 \color none
2058 .tex
2059 \end_layout
2060
2061 \end_inset
2062
2063 ファイルのプリアンブルに,それ自身の定義を追加します.これによって,\SpecialChar LyX
2064 の生成する\SpecialChar LaTeX
2065 ファイルの可搬性を高めています.
2066 \end_layout
2067
2068 \begin_layout Subsection
2069 プリアンブルの変更
2070 \end_layout
2071
2072 \begin_layout Standard
2073
2074 \family roman
2075 \series medium
2076 \shape up
2077 \size normal
2078 \emph off
2079 \bar no
2080 \noun off
2081 \color none
2082 \SpecialChar LyX
2083 が\SpecialChar LaTeX
2084 ファイルのプリアンブルに追加するコマンドは,つねに同じです.これは,\SpecialChar LyX
2085 自体にパッチを当てないかぎり変更できないようになっています.しかしながら,
2086 \begin_inset Flex MenuItem
2087 status collapsed
2088
2089 \begin_layout Plain Layout
2090
2091 \family roman
2092 \series medium
2093 \shape up
2094 \size normal
2095 \emph off
2096 \bar no
2097 \noun off
2098 \color none
2099 文書\SpecialChar menuseparator
2100 設定
2101 \end_layout
2102
2103 \end_inset
2104
2105 ダイアログの
2106 \begin_inset Flex MenuItem
2107 status collapsed
2108
2109 \begin_layout Plain Layout
2110
2111 \family roman
2112 \series medium
2113 \shape up
2114 \size normal
2115 \emph off
2116 \bar no
2117 \noun off
2118 \color none
2119 \SpecialChar LaTeX
2120 プリアンブル
2121 \end_layout
2122
2123 \end_inset
2124
2125 の項から,プリアンブルに追加をすることはできます.\SpecialChar LyX
2126 は,
2127 \family sans
2128 \series default
2129 \shape default
2130 \size default
2131 \emph default
2132 \bar default
2133 \noun default
2134 \color inherit
2135
2136 \begin_inset Flex MenuItem
2137 status collapsed
2138
2139 \begin_layout Plain Layout
2140
2141 \family sans
2142 プリアンブル
2143 \end_layout
2144
2145 \end_inset
2146
2147
2148 \family roman
2149 \series medium
2150 \shape up
2151 \size normal
2152 \emph off
2153 \bar no
2154 \noun off
2155 \color none
2156 ダイアログ内のすべてのものを,\SpecialChar LyX
2157 埋込みのプリアンブルに付け加えます.ご自身の宣言をプリアンブルに追加する前に,あなたがしようとしていることを\SpecialChar LyX
2158 がすでにサポートしてい
2159 ないかどうか確認してください(車輪の再発明をしないように,とはすでに申しあげたことです).
2160 \family default
2161 \series default
2162 \shape default
2163 \size default
2164 \emph default
2165 \bar default
2166 \noun default
2167 \color inherit
2168 また,
2169 \emph on
2170 プリアンブルコードが正しいことを確認してください.
2171 \emph default
2172 \SpecialChar LyX
2173 は,プリアンブルをチェックしません.
2174 \family roman
2175 \series medium
2176 \shape up
2177 \size normal
2178 \emph off
2179 \bar no
2180 \noun off
2181 \color none
2182 もしエラーがあれば,「
2183 \begin_inset Flex Code
2184 status collapsed
2185
2186 \begin_layout Plain Layout
2187
2188 \family roman
2189 \series medium
2190 \shape up
2191 \size normal
2192 \emph off
2193 \bar no
2194 \noun off
2195 \color none
2196 Missing 
2197 \backslash
2198 begin{document}
2199 \end_layout
2200
2201 \end_inset
2202
2203 」といったエラーが出ることでしょう.このようなエラーが出たときは,プリアンブルを再確認してください.
2204 \end_layout
2205
2206 \begin_layout Subsection
2207
2208 \end_layout
2209
2210 \begin_layout Standard
2211
2212 \family roman
2213 \series medium
2214 \shape up
2215 \size normal
2216 \emph off
2217 \bar no
2218 \noun off
2219 \color none
2220 以下は,プリアンブルに追加できるものとその効果を示す例です.
2221 \end_layout
2222
2223 \begin_layout Subsubsection
2224 例1:オフセット
2225 \end_layout
2226
2227 \begin_layout Standard
2228
2229 \family roman
2230 \series medium
2231 \shape up
2232 \size normal
2233 \emph off
2234 \bar no
2235 \noun off
2236 \color none
2237 \SpecialChar LaTeX
2238 には
2239 \family default
2240 \series default
2241 \shape default
2242 \size default
2243 \emph default
2244 \bar default
2245 \noun default
2246 \color inherit
2247
2248 \family roman
2249 \series medium
2250 \shape up
2251 \size normal
2252 \emph off
2253 \bar no
2254 \noun off
2255 \color none
2256
2257 \begin_inset Flex Code
2258 status collapsed
2259
2260 \begin_layout Plain Layout
2261
2262 \family typewriter
2263
2264 \backslash
2265 hoffset
2266 \end_layout
2267
2268 \end_inset
2269
2270
2271 \family typewriter
2272 \series default
2273 \shape default
2274 \size default
2275 \emph default
2276 \bar default
2277 \noun default
2278 \color inherit
2279
2280 \begin_inset Flex Code
2281 status collapsed
2282
2283 \begin_layout Plain Layout
2284
2285 \family typewriter
2286
2287 \backslash
2288 voffset
2289 \end_layout
2290
2291 \end_inset
2292
2293
2294 \family roman
2295 \series medium
2296 \shape up
2297 \size normal
2298 \emph off
2299 \bar no
2300 \noun off
2301 \color none
2302 というページ位置を制御する2つの変数があります.その機能は名前から明らかなとおりです.これらの変数は,ラベルを印刷するときなどに便利です.往々にして,印刷用紙の
2303 寸法とそのうち実際に印字可能な範囲は同じではありません.ここに
2304 \begin_inset Flex Code
2305 status collapsed
2306
2307 \begin_layout Plain Layout
2308
2309 \family typewriter
2310
2311 \backslash
2312 hoffset
2313 \end_layout
2314
2315 \end_inset
2316
2317
2318 \family typewriter
2319 \series default
2320 \shape default
2321 \size default
2322 \emph default
2323 \bar default
2324 \noun default
2325 \color inherit
2326
2327 \begin_inset Flex Code
2328 status collapsed
2329
2330 \begin_layout Plain Layout
2331
2332 \family typewriter
2333
2334 \backslash
2335 voffset
2336 \end_layout
2337
2338 \end_inset
2339
2340
2341 \family default
2342 が役立つわけです.
2343 \end_layout
2344
2345 \begin_layout Standard
2346
2347 \family roman
2348 \series medium
2349 \shape up
2350 \size normal
2351 \emph off
2352 \bar no
2353 \noun off
2354 \color none
2355 \begin_inset Flex Code
2356 status collapsed
2357
2358 \begin_layout Plain Layout
2359
2360 \family typewriter
2361
2362 \backslash
2363 hoffset
2364 \end_layout
2365
2366 \end_inset
2367
2368
2369 \family typewriter
2370 \series default
2371 \shape default
2372 \size default
2373 \emph default
2374 \bar default
2375 \noun default
2376 \color inherit
2377
2378 \begin_inset Flex Code
2379 status collapsed
2380
2381 \begin_layout Plain Layout
2382
2383 \family typewriter
2384
2385 \backslash
2386 voffset
2387 \end_layout
2388
2389 \end_inset
2390
2391
2392 \family roman
2393 \series medium
2394 \shape up
2395 \size normal
2396 \emph off
2397 \bar no
2398 \noun off
2399 \color none
2400 の既定値はともに0ポイント,つまりページをシフトしません.残念ながら,DVIドライバによってはつねにページをシフトすることがあるようです.我々には,どうしてその
2401 ようなことをするのか,そしてシスアドがどうしてそれを修正しないのか理解できませんが,もし個人的に管理できないシステムで\SpecialChar LyX
2402 を使用していて,シスアドがお馬鹿さんである
2403 場合には,
2404 \begin_inset Flex Code
2405 status collapsed
2406
2407 \begin_layout Plain Layout
2408
2409 \family typewriter
2410
2411 \backslash
2412 hoffset
2413 \end_layout
2414
2415 \end_inset
2416
2417
2418 \family typewriter
2419 \series default
2420 \shape default
2421 \size default
2422 \emph default
2423 \bar default
2424 \noun default
2425 \color inherit
2426
2427 \begin_inset Flex Code
2428 status collapsed
2429
2430 \begin_layout Plain Layout
2431
2432 \family typewriter
2433
2434 \backslash
2435 voffset
2436 \end_layout
2437
2438 \end_inset
2439
2440
2441 \family roman
2442 \series medium
2443 \shape up
2444 \size normal
2445 \emph off
2446 \bar no
2447 \noun off
2448 \color none
2449 が役に立ちます.かりに,上余白と左余白がつねに0.5インチずつ大きすぎるものとしましょう.その場合は,以下をプリアンブルに追加するとよいでしょう.
2450 \end_layout
2451
2452 \begin_layout LyX-Code
2453
2454 \backslash
2455 setlength{
2456 \backslash
2457 hoffset}{-0.5 in}
2458 \end_layout
2459
2460 \begin_layout LyX-Code
2461
2462 \backslash
2463 setlength{
2464 \backslash
2465 voffset}{-0.5 in}
2466 \end_layout
2467
2468 \begin_layout Standard
2469
2470 \family roman
2471 \series medium
2472 \shape up
2473 \size normal
2474 \emph off
2475 \bar no
2476 \noun off
2477 \color none
2478 これで余白が修正されます.
2479 \end_layout
2480
2481 \begin_layout Subsubsection
2482 例2:ラベル
2483 \end_layout
2484
2485 \begin_layout Standard
2486
2487 \family roman
2488 \series medium
2489 \shape up
2490 \size normal
2491 \emph off
2492 \bar no
2493 \noun off
2494 \color none
2495 いま,たくさんの宛名ラベルを印刷をしたいものとしましょう.ラベルシートを印刷するために便利な
2496 \begin_inset Flex Code
2497 status collapsed
2498
2499 \begin_layout Plain Layout
2500
2501 \family typewriter
2502 labels.sty
2503 \end_layout
2504
2505 \end_inset
2506
2507 という\SpecialChar LaTeX
2508 パッケージが,お近くのCTANアーカイブで入手可能です.お使いのシステムには,既定ではこのパッケージは導入されていないかもしれません.ご自身でお確かめくだ
2509 さい.また,このパッケージの取扱説明書を読まれたいかもしれませんが,それもご自身にお任せします.これは使用例ですので,このパッケージをどう使うかの例だけお見せす
2510 ることにします.
2511 \end_layout
2512
2513 \begin_layout Standard
2514
2515 \family roman
2516 \series medium
2517 \shape up
2518 \size normal
2519 \emph off
2520 \bar no
2521 \noun off
2522 \color none
2523 まず,
2524 \begin_inset Flex Code
2525 status collapsed
2526
2527 \begin_layout Plain Layout
2528
2529 \family sans
2530 article
2531 \end_layout
2532
2533 \end_inset
2534
2535 文書クラスを使用していることをご確認ください.次に,以下のような設定をプリアンブルに追加しなければなりません.
2536 \end_layout
2537
2538 \begin_layout LyX-Code
2539
2540 \backslash
2541 usepackage{labels}
2542 \end_layout
2543
2544 \begin_layout LyX-Code
2545
2546 \backslash
2547 LabelCols=3
2548 \end_layout
2549
2550 \begin_layout LyX-Code
2551
2552 \backslash
2553 LabelRows=7
2554 \end_layout
2555
2556 \begin_layout LyX-Code
2557
2558 \backslash
2559 LeftBorder=8mm
2560 \end_layout
2561
2562 \begin_layout LyX-Code
2563
2564 \backslash
2565 RightBorder=8mm
2566 \end_layout
2567
2568 \begin_layout LyX-Code
2569
2570 \backslash
2571 TopBorder=9mm
2572 \end_layout
2573
2574 \begin_layout LyX-Code
2575
2576 \backslash
2577 BottomBorder=2mm
2578 \end_layout
2579
2580 \begin_layout Standard
2581
2582 \family roman
2583 \series medium
2584 \shape up
2585 \size normal
2586 \emph off
2587 \bar no
2588 \noun off
2589 \color none
2590 これは
2591 \family default
2592 \series default
2593 \shape default
2594 \size default
2595 \emph default
2596 \bar default
2597 \noun default
2598 \color inherit
2599 Avery®ラベルシートのストック5360
2600 \family roman
2601 \series medium
2602 \shape up
2603 \size normal
2604 \emph off
2605 \bar no
2606 \noun off
2607 \color none
2608 番を使用する場合の設定です.これで,各宛名を
2609 \begin_inset Flex Code
2610 status collapsed
2611
2612 \begin_layout Plain Layout
2613
2614 \family typewriter
2615
2616 \backslash
2617 begin{labels}
2618 \end_layout
2619
2620 \end_inset
2621
2622
2623 \family typewriter
2624 \series default
2625 \shape default
2626 \size default
2627 \emph default
2628 \bar default
2629 \noun default
2630 \color inherit
2631
2632 \begin_inset Flex Code
2633 status collapsed
2634
2635 \begin_layout Plain Layout
2636
2637 \family typewriter
2638
2639 \backslash
2640 end{labels}
2641 \end_layout
2642
2643 \end_inset
2644
2645
2646 \family roman
2647 \series medium
2648 \shape up
2649 \size normal
2650 \emph off
2651 \bar no
2652 \noun off
2653 \color none
2654 で囲めば,宛名ラベルの印刷をすることができます.本機能およびその他の機能に関しては,
2655 \begin_inset Flex Code
2656 status collapsed
2657
2658 \begin_layout Plain Layout
2659
2660 \family typewriter
2661 labels.sty
2662 \end_layout
2663
2664 \end_inset
2665
2666 の取扱説明書に説明されています.
2667 \end_layout
2668
2669 \begin_layout Standard
2670
2671 \family roman
2672 \series medium
2673 \shape up
2674 \size normal
2675 \emph off
2676 \bar no
2677 \noun off
2678 \color none
2679 そのうち誰かが,このパッケージを直接サポートする\SpecialChar LyX
2680 レイアウトファイルを作ってくれるかもしれません.その誰かはあなたかもしれません.
2681 \end_layout
2682
2683 \begin_layout Subsubsection
2684 例3: 段落の字下げ
2685 \end_layout
2686
2687 \begin_layout Standard
2688
2689 \family roman
2690 \series medium
2691 \shape up
2692 \size normal
2693 \emph off
2694 \bar no
2695 \noun off
2696 \color none
2697 アメリカ人は
2698 \family default
2699 \series default
2700 \shape default
2701 \size default
2702 \emph default
2703 \bar default
2704 \noun default
2705 \color inherit
2706
2707 \emph on
2708 すべての
2709 \family roman
2710 \series medium
2711 \shape up
2712 \size normal
2713 \emph off
2714 \bar no
2715 \noun off
2716 \color none
2717 段落の最初の行を字下げするように教育されています.そのために彼らの他の変な習慣と同じく,いつものようにすべての段落の最初の行を下げるまで,アメリカ人はごちゃごち
2718 ゃと文句を言いつづけるのです
2719 \family default
2720 \series default
2721 \shape default
2722 \size default
2723 \emph default
2724 \bar default
2725 \noun default
2726 \color inherit
2727 .(これはユーモアです.(ほんと?)
2728 \emph on
2729 ユーモアですってば
2730 \emph default
2731 .)
2732 \end_layout
2733
2734 \begin_layout Standard
2735
2736 \family roman
2737 \series medium
2738 \shape up
2739 \size normal
2740 \emph off
2741 \bar no
2742 \noun off
2743 \color none
2744 もちろん,これは標準的な組版ルールではありません.書籍では,典型的には,他の段落のあとにくる段落
2745 \family default
2746 \series default
2747 \shape default
2748 \size default
2749 \emph on
2750 \bar default
2751 \noun default
2752 \color inherit
2753 のみ
2754 \family roman
2755 \series medium
2756 \shape up
2757 \size normal
2758 \emph off
2759 \bar no
2760 \noun off
2761 \color none
2762 字下げを行ないます.一行めを字下げをするそもそもの目的は,隣接する段落から区別するためです.したがって,図のあとや節の最初の段落など,先行する段落がない場合には
2763 ,字下げをする必要はないのです.
2764 \end_layout
2765
2766 \begin_layout Standard
2767
2768 \family roman
2769 \series medium
2770 \shape up
2771 \size normal
2772 \emph off
2773 \bar no
2774 \noun off
2775 \color none
2776 けれどもあなたが典型的なアメリカ人なら(ユーーモアですって!),そのような小難しいことはかまわずに,いつもどおりの字下げをせずにはいられないでしょう!プリアンブ
2777 ルに次の行を加えて下さい.
2778 \end_layout
2779
2780 \begin_layout LyX-Code
2781
2782 \backslash
2783 usepackage{indentfirst}
2784 \end_layout
2785
2786 \begin_layout Standard
2787
2788 \family roman
2789 \series medium
2790 \shape up
2791 \size normal
2792 \emph off
2793 \bar no
2794 \noun off
2795 \color none
2796 もしお使いの\SpecialChar TeX
2797 頒布版が脳死状態でなければ,このパッケージが入っているはずなので,建国の父たちが意図したように,すべての段落が字下げされます.
2798 \end_layout
2799
2800 \begin_layout Subsubsection
2801 例4:この文書
2802 \end_layout
2803
2804 \begin_layout Standard
2805
2806 \family roman
2807 \series medium
2808 \shape up
2809 \size normal
2810 \emph off
2811 \bar no
2812 \noun off
2813 \color none
2814 この文書のプリアンブルを見てみると,どのような高度な設定ができるか,おおまかな理解が得られるでしょう.また第
2815 \family default
2816 \series default
2817 \shape default
2818 \size default
2819 \emph default
2820 \bar default
2821 \noun default
2822 \color inherit
2823
2824 \begin_inset CommandInset ref
2825 LatexCommand ref
2826 reference "chap:Special-features"
2827
2828 \end_inset
2829
2830
2831 \family roman
2832 \series medium
2833 \shape up
2834 \size normal
2835 \emph off
2836 \bar no
2837 \noun off
2838 \color none
2839 章には,他の例や,\SpecialChar LaTeX
2840 の各種の「汚い技」があります.
2841 \end_layout
2842
2843 \begin_layout Section
2844 \SpecialChar LyX
2845 および\SpecialChar LaTeX
2846 のエラー
2847 \end_layout
2848
2849 \begin_layout Standard
2850
2851 \family roman
2852 \series medium
2853 \shape up
2854 \size normal
2855 \emph off
2856 \bar no
2857 \noun off
2858 \color none
2859 \SpecialChar LyX
2860 が\SpecialChar LaTeX
2861 を呼び出す際,\SpecialChar LyX
2862 は\SpecialChar LaTeX
2863 に,かりにエラーがあったとしても楽観的に無視して先に進むように指示します.その後\SpecialChar LyX
2864 は,\SpecialChar LaTeX
2865 の実行ログファイルを事後処理用に使います.ログファイルを分
2866 析したのち,\SpecialChar LyX
2867 はエラーを一覧表示するダイアログを表示します.エラーのうちどれかをクリックすると,\SpecialChar LyX
2868 ファイル中,そのエラーの発生した場所に表示を移動します
2869 \begin_inset Foot
2870 status collapsed
2871
2872 \begin_layout Plain Layout
2873
2874 \family roman
2875 \series medium
2876 \shape up
2877 \size normal
2878 \emph off
2879 \bar no
2880 \noun off
2881 \color none
2882 正確にいうと,通常は,です.ログファイルの分析は難しい仕事ですので,\SpecialChar LyX
2883 はつねに正しい行に連れて行ってくれるとは限りません.ときには,\SpecialChar LaTeX
2884 がある行にエラーがあると報告し
2885 たとしても,実際のエラーはそれよりも前であることもあります.これは,プログラムで閉じ括弧を忘れたときに似ていなくもありません.エラーは表示されますが,実際にエラ
2886 ーのある場所よりも後ろでエラーが報告されるのです.
2887 \end_layout
2888
2889 \end_inset
2890
2891
2892 \family default
2893 \series default
2894 \shape default
2895 \size default
2896 \emph default
2897 \bar default
2898 \noun default
2899 \color inherit
2900
2901 \end_layout
2902
2903 \begin_layout Standard
2904
2905 \family roman
2906 \series medium
2907 \shape up
2908 \size normal
2909 \emph off
2910 \bar no
2911 \noun off
2912 \color none
2913 人によっては,ログファイルを直接ご覧になりたいかもしれません.これは,
2914 \begin_inset Flex MenuItem
2915 status collapsed
2916
2917 \begin_layout Plain Layout
2918
2919 \family roman
2920 \series medium
2921 \shape up
2922 \size normal
2923 \emph off
2924 \bar no
2925 \noun off
2926 \color none
2927 文書\SpecialChar menuseparator
2928 \SpecialChar LaTeX
2929 ログ
2930 \end_layout
2931
2932 \end_inset
2933
2934 で見ることができます.エラーメッセージや警告には,よく見かけるものがいくつかありますので,それらをここに収録しておきます.ここにないエラーや警告に関しては,La\SpecialChar TeX
2935
2936 関連の良書を参照してください.
2937 \end_layout
2938
2939 \begin_layout Itemize
2940
2941 \family typewriter
2942 \begin_inset Flex Code
2943 status collapsed
2944
2945 \begin_layout Plain Layout
2946
2947 \family typewriter
2948 LaTe
2949 \begin_inset ERT
2950 status collapsed
2951
2952 \begin_layout Plain Layout
2953
2954 {}
2955 \end_layout
2956
2957 \end_inset
2958
2959 X Warning
2960 \end_layout
2961
2962 \end_inset
2963
2964
2965 \family roman
2966 \series medium
2967 \shape up
2968 \size normal
2969 \emph off
2970 \bar no
2971 \noun off
2972 \color none
2973
2974 \begin_inset Newline newline
2975 \end_inset
2976
2977 これで始まるメッセージは,\SpecialChar LaTeX
2978 コード自体を「デバッグ」するための警告メッセージです.相互参照や書誌情報を追加したり変更した場合に,もう一度\SpecialChar LaTeX
2979 を実行する必要があることを
2980 知らせるために,このようなメッセージが表示されます.このメッセージは,だいたいにおいて無視しても大丈夫です.
2981 \end_layout
2982
2983 \begin_layout Itemize
2984
2985 \family typewriter
2986 \begin_inset Flex Code
2987 status collapsed
2988
2989 \begin_layout Plain Layout
2990
2991 \family typewriter
2992 LaTe
2993 \begin_inset ERT
2994 status collapsed
2995
2996 \begin_layout Plain Layout
2997
2998 {}
2999 \end_layout
3000
3001 \end_inset
3002
3003 X Font Warning
3004 \end_layout
3005
3006 \end_inset
3007
3008
3009 \family roman
3010 \series medium
3011 \shape up
3012 \size normal
3013 \emph off
3014 \bar no
3015 \noun off
3016 \color none
3017
3018 \begin_inset Newline newline
3019 \end_inset
3020
3021 \SpecialChar LaTeX
3022 がフォントを見つけられなかったと言う警告メッセージです.多くの場合,このメッセージの後に,\SpecialChar LaTeX
3023 が使用した代替フォントに関する情報が続きます.これも無視して構いません
3024
3025 \end_layout
3026
3027 \begin_layout Itemize
3028
3029 \family roman
3030 \series medium
3031 \shape up
3032 \size normal
3033 \emph off
3034 \bar no
3035 \noun off
3036 \color none
3037 \begin_inset Flex Code
3038 status collapsed
3039
3040 \begin_layout Plain Layout
3041
3042 \family typewriter
3043 Overfull 
3044 \backslash
3045 hbox
3046 \end_layout
3047
3048 \end_inset
3049
3050
3051 \begin_inset Newline newline
3052 \end_inset
3053
3054 \SpecialChar LaTeX
3055 は,
3056 \family default
3057 \series default
3058 \shape default
3059 \size default
3060 \emph on
3061 \bar default
3062 \noun default
3063 \color inherit
3064 ほぼどんなときでも
3065 \family roman
3066 \series medium
3067 \shape up
3068 \size normal
3069 \emph off
3070 \bar no
3071 \noun off
3072 \color none
3073 この警告を吐き出します.これは,一行が長すぎて右余白にはみ出してしまったという警告ですが,ほとんどの場合,最終出力を見ても判別できないくらい(せいぜい1ポイント
3074 か2ポイント)です.あるいは1文字か2文字右余白に出ているくらいです.\SpecialChar LaTeX
3075 は,どんな文書を書いても,少なくとも一つはこのメッセージを出すようです.
3076 \begin_inset Newline newline
3077 \end_inset
3078
3079 このメッセージは無視しても大丈夫です.何か行が長すぎるような問題があれば,目で見ればわかります.出力を目で確認してください
3080 \begin_inset Foot
3081 status collapsed
3082
3083 \begin_layout Plain Layout
3084 あるいは,
3085 \begin_inset Flex MenuItem
3086 status collapsed
3087
3088 \begin_layout Plain Layout
3089 文書\SpecialChar menuseparator
3090 設定
3091 \end_layout
3092
3093 \end_inset
3094
3095 で「draft」オプションを指定する方法もあります.こうすると,\SpecialChar LaTeX
3096 は,overfullの発生した行の余白に黒い四角を描画します.
3097 \end_layout
3098
3099 \end_inset
3100
3101
3102 \end_layout
3103
3104 \begin_layout Itemize
3105
3106 \family typewriter
3107 \begin_inset Flex Code
3108 status collapsed
3109
3110 \begin_layout Plain Layout
3111
3112 \family typewriter
3113 Underfull 
3114 \backslash
3115 hbox
3116 \end_layout
3117
3118 \end_inset
3119
3120
3121 \begin_inset Newline newline
3122 \end_inset
3123
3124
3125 \family roman
3126 \series medium
3127 \shape up
3128 \size normal
3129 \emph off
3130 \bar no
3131 \noun off
3132 \color none
3133 これは上の警告と違ってあまり出てきません.なぜだかは分かりませんが,\SpecialChar LaTeX
3134 は1行を短めにする印字するよりは,長めにする方が好きなようです.
3135 \end_layout
3136
3137 \begin_layout Itemize
3138 \begin_inset Flex Code
3139 status collapsed
3140
3141 \begin_layout Plain Layout
3142
3143 \family typewriter
3144 Overfull 
3145 \backslash
3146 vbox
3147 \end_layout
3148
3149 \end_inset
3150
3151
3152 \family typewriter
3153
3154 \begin_inset Flex Code
3155 status collapsed
3156
3157 \begin_layout Plain Layout
3158
3159 \family typewriter
3160 Underfull 
3161 \backslash
3162 vbox
3163 \end_layout
3164
3165 \end_inset
3166
3167
3168 \family default
3169
3170 \begin_inset Newline newline
3171 \end_inset
3172
3173
3174 \family roman
3175 \series medium
3176 \shape up
3177 \size normal
3178 \emph off
3179 \bar no
3180 \noun off
3181 \color none
3182 ページ区切りに問題があったという警告です.この場合も,出力を目で確認してください.何か問題があれば,見てすぐわかります.
3183 \end_layout
3184
3185 \begin_layout Itemize
3186
3187 \family typewriter
3188 \begin_inset Flex Code
3189 status collapsed
3190
3191 \begin_layout Plain Layout
3192
3193 \family typewriter
3194 LaTe
3195 \begin_inset ERT
3196 status collapsed
3197
3198 \begin_layout Plain Layout
3199
3200 {}
3201 \end_layout
3202
3203 \end_inset
3204
3205 X Error: File 
3206 \begin_inset Quotes els
3207 \end_inset
3208
3209 Xxxx
3210 \begin_inset Quotes ers
3211 \end_inset
3212
3213  not found
3214 \end_layout
3215
3216 \end_inset
3217
3218
3219 \family roman
3220 \series medium
3221 \shape up
3222 \size normal
3223 \emph off
3224 \bar no
3225 \noun off
3226 \color none
3227
3228 \begin_inset Newline newline
3229 \end_inset
3230
3231 ファイル「Xxxx」が,システムに導入されていません.これは通常,文書が必要としている\SpecialChar LaTeX
3232 パッケージに,導入済でないものがある場合に現れます.プリアンブルに変更を加
3233 えておらず,
3234 \begin_inset Flex Code
3235 status collapsed
3236
3237 \begin_layout Plain Layout
3238
3239 \family typewriter
3240
3241 \backslash
3242 usepackage{}
3243 \end_layout
3244
3245 \end_inset
3246
3247 コマンドも使用していないとすれば,\SpecialChar LyX
3248 が読み込もうしているパッケージに存在しないものがあるということです.
3249 \family default
3250 \series default
3251 \shape default
3252 \size default
3253 \emph default
3254 \bar default
3255 \noun default
3256 \color inherit
3257
3258 \begin_inset Flex MenuItem
3259 status collapsed
3260
3261 \begin_layout Plain Layout
3262 ヘルプ\SpecialChar menuseparator
3263 \SpecialChar LaTeX
3264 の設定
3265 \end_layout
3266
3267 \end_inset
3268
3269
3270 \family roman
3271 \series medium
3272 \shape up
3273 \size normal
3274 \emph off
3275 \bar no
3276 \noun off
3277 \color none
3278 を使用して,\SpecialChar LyX
3279 が認識しているパッケージの一覧を得てください.このファイルは,(
3280 \begin_inset Flex MenuItem
3281 status collapsed
3282
3283 \begin_layout Plain Layout
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 ツール\SpecialChar menuseparator
3294 再設定
3295 \end_layout
3296
3297 \end_inset
3298
3299 を使用して)\SpecialChar LyX
3300 の再設定を行うたびに更新され,どのパッケージが検出されたか,それらのパッケージが何をするものかを表示します.
3301 \begin_inset Newline newline
3302 \end_inset
3303
3304
3305 \family sans
3306 \series default
3307 \shape default
3308 \size default
3309 \emph default
3310 \bar default
3311 \noun default
3312 \color inherit
3313
3314 \begin_inset Flex Code
3315 status collapsed
3316
3317 \begin_layout Plain Layout
3318
3319 \family sans
3320
3321 \backslash
3322 usepackage{}
3323 \end_layout
3324
3325 \end_inset
3326
3327
3328 \family roman
3329 \series medium
3330 \shape up
3331 \size normal
3332 \emph off
3333 \bar no
3334 \noun off
3335 \color none
3336 コマンドを使っていて,肝心のパッケージが導入されていない場合には,ご自身で導入する必要があります.
3337 \end_layout
3338
3339 \begin_layout Itemize
3340
3341 \family typewriter
3342 \begin_inset Flex Code
3343 status collapsed
3344
3345 \begin_layout Plain Layout
3346
3347 \family typewriter
3348 LaTe
3349 \begin_inset ERT
3350 status collapsed
3351
3352 \begin_layout Plain Layout
3353
3354 {}
3355 \end_layout
3356
3357 \end_inset
3358
3359 X Error: Unknown option
3360 \end_layout
3361
3362 \end_inset
3363
3364
3365 \family roman
3366 \series medium
3367 \shape up
3368 \size normal
3369 \emph off
3370 \bar no
3371 \noun off
3372 \color none
3373
3374 \begin_inset Newline newline
3375 \end_inset
3376
3377 このように始まるエラーメッセージは,パッケージに誤ったあるいは未定義のオプションが指定されていることを伝えようとするものです.パッケージの取扱説明書をご確認くだ
3378 さい.
3379 \end_layout
3380
3381 \begin_layout Itemize
3382
3383 \family typewriter
3384 \begin_inset Flex Code
3385 status collapsed
3386
3387 \begin_layout Plain Layout
3388
3389 \family typewriter
3390 Undefined control sequence
3391 \end_layout
3392
3393 \end_inset
3394
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 \begin_inset Newline newline
3406 \end_inset
3407
3408 お使いの文書に\SpecialChar LaTeX
3409 コードを挿入した際,打ち間違いをしてしまうと,このようなメッセージが表示されます.あるいは,パッケージを読み込ませるのを忘れたのかもしれません.い
3410 ずれにしても,このメッセージは,あなたが未定義のコマンドを使用したことを示しています.
3411 \end_layout
3412
3413 \begin_layout Standard
3414
3415 \family roman
3416 \series medium
3417 \shape up
3418 \size normal
3419 \emph off
3420 \bar no
3421 \noun off
3422 \color none
3423 これ以外にも,エラーメッセージや警告メッセージがあります.一般に,読んで意味がすぐにわかるものは,\SpecialChar LaTeX
3424 のメッセージです.何を言っているのかさっぱりわからないものもあ
3425 りますが,通常これらは,\SpecialChar TeX
3426 のメッセージであり,それが何を意味しているのか,どのように解読すればいいのか,
3427 \family default
3428 \series default
3429 \shape default
3430 \size default
3431 \emph on
3432 \bar default
3433 \noun default
3434 \color inherit
3435 まったく
3436 \family roman
3437 \series medium
3438 \shape up
3439 \size normal
3440 \emph off
3441 \bar no
3442 \noun off
3443 \color none
3444 手がかりがありません.誰もわからないのです.
3445 \end_layout
3446
3447 \begin_layout Standard
3448
3449 \family roman
3450 \series medium
3451 \shape up
3452 \size normal
3453 \emph off
3454 \bar no
3455 \noun off
3456 \color none
3457 エラーメッセージが表示された場合は,つねに以下のチェックリストにしたがった方がよいでしょう.
3458 \end_layout
3459
3460 \begin_layout Enumerate
3461
3462 \family roman
3463 \series medium
3464 \shape up
3465 \size normal
3466 \emph off
3467 \bar no
3468 \noun off
3469 \color none
3470 ご自分で挿入した\SpecialChar LaTeX
3471 コードに打ち間違いがないかどうか確かめる.
3472 \end_layout
3473
3474 \begin_layout Enumerate
3475
3476 \family roman
3477 \series medium
3478 \shape up
3479 \size normal
3480 \emph off
3481 \bar no
3482 \noun off
3483 \color none
3484 打ち間違いがなければ,コマンドを正しく使ったかどうか確かめる.
3485 \end_layout
3486
3487 \begin_layout Enumerate
3488
3489 \family roman
3490 \series medium
3491 \shape up
3492 \size normal
3493 \emph off
3494 \bar no
3495 \noun off
3496 \color none
3497 文書のもっともはじめの部分にエラーボックスが多数積み上がった場合には—特に
3498 \begin_inset Flex Code
3499 status collapsed
3500
3501 \begin_layout Plain Layout
3502
3503 \family roman
3504 \series medium
3505 \shape up
3506 \size normal
3507 \emph off
3508 \bar no
3509 \noun off
3510 \color none
3511 Missing 
3512 \backslash
3513 begin{document}
3514 \end_layout
3515
3516 \end_inset
3517
3518 が表示されているならば—,プリアンブルにエラーがあることを意味します.プリアンブルのデバックを行ってください.
3519 \end_layout
3520
3521 \begin_layout Enumerate
3522
3523 \family roman
3524 \series medium
3525 \shape up
3526 \size normal
3527 \emph off
3528 \bar no
3529 \noun off
3530 \color none
3531 プリアンブルに何も追加せず,文書に\SpecialChar LaTeX
3532 コードをまったく挿入しなかった場合には,\SpecialChar LaTeX
3533 頒布版自体をまず疑ってください.導入されていないパッケージを探しだして,導入してくださ
3534 い.
3535 \end_layout
3536
3537 \begin_layout Enumerate
3538
3539 \family roman
3540 \series medium
3541 \shape up
3542 \size normal
3543 \emph off
3544 \bar no
3545 \noun off
3546 \color none
3547 導入されていないパッケージはなかったものとしましょう.\SpecialChar LyX
3548 を微調整するオプションを使用していますか.特に,手動で
3549 \begin_inset Flex Code
3550 status collapsed
3551
3552 \begin_layout Plain Layout
3553
3554 \family sans
3555 Protected
3556 \begin_inset space ~
3557 \end_inset
3558
3559 Blank
3560 \end_layout
3561
3562 \end_inset
3563
3564
3565 \begin_inset Flex Code
3566 status collapsed
3567
3568 \begin_layout Plain Layout
3569
3570 \family sans
3571 Linebreak
3572 \end_layout
3573
3574 \end_inset
3575
3576
3577 \family sans
3578 \series default
3579 \shape default
3580 \size default
3581 \emph default
3582 \bar default
3583 \noun default
3584 \color inherit
3585
3586 \begin_inset Flex Code
3587 status collapsed
3588
3589 \begin_layout Plain Layout
3590
3591 \family sans
3592 Pagebreak
3593 \end_layout
3594
3595 \end_inset
3596
3597
3598 \family roman
3599 \series medium
3600 \shape up
3601 \size normal
3602 \emph off
3603 \bar no
3604 \noun off
3605 \color none
3606 などをたくさん挿入するなど,微調整オプションを
3607 \family default
3608 \series default
3609 \shape default
3610 \size default
3611 \emph on
3612 \bar default
3613 \noun default
3614 \color inherit
3615 悪用
3616 \family roman
3617 \series medium
3618 \shape up
3619 \size normal
3620 \emph off
3621 \bar no
3622 \noun off
3623 \color none
3624 していませんか.適切な段落環境を使用する代わりに,これらを使用してその場をしのごうとしていませんか.
3625 \end_layout
3626
3627 \begin_layout Enumerate
3628
3629 \family roman
3630 \series medium
3631 \shape up
3632 \size normal
3633 \emph off
3634 \bar no
3635 \noun off
3636 \color none
3637 微調整オプションはまったく使用しておらず,規則に乗っ取って作業していたものとしましょう.何か曲芸のようなことをしようとはしていませんか.数式や表中で,たとえば表
3638 のセルに図を入れるなど,おかしなことをしようとしていませんか.
3639 \end_layout
3640
3641 \begin_layout Enumerate
3642 \SpecialChar LaTeX
3643 が改行位置を見つけられないほど長い一節がありませんか.既定では,改行するために単語間に空白をたくさん追加することを,\SpecialChar LaTeX
3644 はかなり嫌います.可能であれば,問題が生じな
3645 いように段落を修正するのが望ましいでしょう.
3646 \end_layout
3647
3648 \begin_layout Enumerate
3649
3650 \family roman
3651 \series medium
3652 \shape up
3653 \size normal
3654 \emph off
3655 \bar no
3656 \noun off
3657 \color none
3658 入れ子の階層を深くしすぎていませんか.\SpecialChar LyX
3659 は,(今のところ)環境の入れ子の階層が制限内にあるかチェックしません.かりに,環境を17段の入れ子にしたりしていたら,それ
3660 が原因です(\SpecialChar LaTeX
3661 の上限は5段です).
3662 \end_layout
3663
3664 \begin_layout Enumerate
3665
3666 \family roman
3667 \series medium
3668 \shape up
3669 \size normal
3670 \emph off
3671 \bar no
3672 \noun off
3673 \color none
3674 エラーメッセージは発生しないけれども,出力がひどいものとしましょう.図表が幅が広すぎたり長すぎてページに収まらない場合には,
3675 \family default
3676 \series default
3677 \shape default
3678 \size default
3679 \bar default
3680 \color inherit
3681
3682 \begin_inset Separator latexpar
3683 \end_inset
3684
3685
3686 \end_layout
3687
3688 \begin_deeper
3689 \begin_layout Enumerate
3690
3691 \family roman
3692 \series medium
3693 \shape up
3694 \size normal
3695 \emph off
3696 \bar no
3697 \noun off
3698 \color none
3699 図がページに合うように大きさを変える,
3700 \end_layout
3701
3702 \begin_layout Enumerate
3703
3704 \family roman
3705 \series medium
3706 \shape up
3707 \size normal
3708 \emph off
3709 \bar no
3710 \noun off
3711 \color none
3712 表がページに合うように削る,
3713 \end_layout
3714
3715 \begin_layout Standard
3716
3717 \family roman
3718 \series medium
3719 \shape up
3720 \size normal
3721 \emph off
3722 \bar no
3723 \noun off
3724 \color none
3725 などの手段を採る必要があります.
3726 \end_layout
3727
3728 \end_deeper
3729 \begin_layout Enumerate
3730 他に出力におかしいところがあり,曲芸をやろうとしたり微調整オプションでしのごうとしたりはしていないとすれば,何がおかしいのか確定的なことは言えません.
3731 \end_layout
3732
3733 \begin_layout Standard
3734
3735 \family roman
3736 \series medium
3737 \shape up
3738 \size normal
3739 \emph off
3740 \bar no
3741 \noun off
3742 \color none
3743 これらすべてが役に立たないとすれば,
3744 \family default
3745 \series default
3746 \shape default
3747 \size default
3748 \emph on
3749 \bar default
3750 \noun default
3751 \color inherit
3752 ひょっとしたら
3753 \family roman
3754 \series medium
3755 \shape up
3756 \size normal
3757 \emph off
3758 \bar no
3759 \noun off
3760 \color none
3761 \SpecialChar LyX
3762 のバグを発見したのかもしれません‥‥.
3763 \end_layout
3764
3765 \begin_layout Chapter
3766 補完ツール
3767 \end_layout
3768
3769 \begin_layout Section
3770 Bib\SpecialChar TeX
3771 による書誌情報のカスタマイズ
3772 \end_layout
3773
3774 \begin_layout Standard
3775 Bib\SpecialChar TeX
3776 の基本的な使用法は,『
3777 \emph on
3778 ユーザーの手引き
3779 \emph default
3780 』の「
3781 \emph on
3782 文献データベース(Bib\SpecialChar TeX
3783 )
3784 \emph default
3785 」の節に説明があります.以下の各小節では,\SpecialChar LyX
3786 でサポートされている書誌情報の特別な機能について説明することとします.
3787 \end_layout
3788
3789 \begin_layout Subsection
3790 他の引用様式
3791 \end_layout
3792
3793 \begin_layout Standard
3794 標準のBib\SpecialChar TeX
3795 は,引用された著作を参照するのに,([12]のように)数字を使用します.しかし,多くの科学分野で,これとは異なる引用様式が用いられています.もっとも
3796 よく見られるのは,著者-出版年様式(例:Knuth 1984a)です.\SpecialChar LyX
3797 は,この様式を提供する2つのパッケージ
3798 \begin_inset Flex Code
3799 status collapsed
3800
3801 \begin_layout Plain Layout
3802 natbib
3803 \end_layout
3804
3805 \end_inset
3806
3807
3808 \begin_inset Flex Code
3809 status collapsed
3810
3811 \begin_layout Plain Layout
3812 jurabib
3813 \end_layout
3814
3815 \end_inset
3816
3817 をサポートしています.これらのパッケージには,それぞれ長所短所がありますが,ここでは詳細に立ち入る紙幅がありません.単純な著者-出版年様式(あるいは著者-番号)
3818 様式が欲しい場合や,無数にある
3819 \begin_inset Flex Code
3820 status collapsed
3821
3822 \begin_layout Plain Layout
3823 natbib
3824 \end_layout
3825
3826 \end_inset
3827
3828 用スタイルファイルのうちどれかを使用したい場合には,定評のある
3829 \begin_inset Flex Code
3830 status collapsed
3831
3832 \begin_layout Plain Layout
3833 natbib
3834 \end_layout
3835
3836 \end_inset
3837
3838 パッケージがおそらくよい選択でしょう.短縮タイトルによる参照や
3839 \emph on
3840 ibid.
3841 \emph default
3842 など,特別な機能が必要な場合には,
3843 \begin_inset Flex Code
3844 status collapsed
3845
3846 \begin_layout Plain Layout
3847 jurabib
3848 \end_layout
3849
3850 \end_inset
3851
3852 パッケージの利用を考えるとよいかもしれません.
3853 \end_layout
3854
3855 \begin_layout Standard
3856 \SpecialChar LyX
3857 での両パッケージの取扱い方は,ほぼ同じです.
3858 \begin_inset Flex MenuItem
3859 status collapsed
3860
3861 \begin_layout Plain Layout
3862 文書\SpecialChar menuseparator
3863 設定
3864 \end_layout
3865
3866 \end_inset
3867
3868 メニューを開き,
3869 \begin_inset Flex MenuItem
3870 status collapsed
3871
3872 \begin_layout Plain Layout
3873 書誌情報
3874 \end_layout
3875
3876 \end_inset
3877
3878 項目から
3879 \begin_inset Flex MenuItem
3880 status collapsed
3881
3882 \begin_layout Plain Layout
3883 Natbib
3884 \end_layout
3885
3886 \end_inset
3887
3888 オプションか
3889 \begin_inset Flex MenuItem
3890 status collapsed
3891
3892 \begin_layout Plain Layout
3893 Jurabib
3894 \end_layout
3895
3896 \end_inset
3897
3898 オプションを選択してください.これらのパッケージによって,引用ダイアログに機能が追加され,参照の様式が選択できるようになります(「Knuth 1984」,「Kn
3899 uth (1984)」,「Knuth, 1984」,「1984」など).両パッケージは,専用にデザインされたスタイルファイルを必要とすることに注意してください.
3900 両者ともそれ自身のスタイルファイルを同梱していますが,他にもたくさんの追加スタイルファイルがありますし,
3901 \begin_inset Flex Code
3902 status collapsed
3903
3904 \begin_layout Plain Layout
3905 natbib
3906 \end_layout
3907
3908 \end_inset
3909
3910 に至っては,対話的なスタイルファイルビルダーさえ存在します
3911 \begin_inset Foot
3912 status collapsed
3913
3914 \begin_layout Plain Layout
3915 \begin_inset Flex URL
3916 status open
3917
3918 \begin_layout Plain Layout
3919
3920 ftp://ctan.tug.org/tex-archive/macros/latex/contrib/custom-bib/
3921 \end_layout
3922
3923 \end_inset
3924
3925 をご参照ください.
3926 \end_layout
3927
3928 \end_inset
3929
3930
3931 \end_layout
3932
3933 \begin_layout Subsection
3934 節分けされた書誌情報
3935 \end_layout
3936
3937 \begin_layout Standard
3938 場合によっては,書誌情報をいくつかの節に分ける必要があることがあります.たとえば,あなたが歴史家であるとすれば,出典と学術文献を分ける機能は,おそらく「必需品」
3939 でさえあります.残念ながら,Bib\SpecialChar TeX
3940 自身ではこのようなことができません.しかし,適切な\SpecialChar LaTeX
3941 パッケージの助けを借りると,Bib\SpecialChar TeX
3942 をこのような必要性を満たすように拡張するこ
3943 とができます.
3944 \end_layout
3945
3946 \begin_layout Standard
3947 \SpecialChar LyX
3948 は,このようなパッケージの一つである
3949 \begin_inset Flex Code
3950 status collapsed
3951
3952 \begin_layout Plain Layout
3953 bibtopic
3954 \end_layout
3955
3956 \end_inset
3957
3958
3959 \begin_inset Foot
3960 status collapsed
3961
3962 \begin_layout Plain Layout
3963 \begin_inset Flex URL
3964 status open
3965
3966 \begin_layout Plain Layout
3967
3968 ftp://ctan.tug.org/tex-archive/macros/latex/contrib/bibtopic/
3969 \end_layout
3970
3971 \end_inset
3972
3973 から入手可能です.
3974 \end_layout
3975
3976 \end_inset
3977
3978 をそのままでサポートします.このパッケージの長所は,(
3979 \begin_inset Flex Code
3980 status collapsed
3981
3982 \begin_layout Plain Layout
3983 multibib
3984 \end_layout
3985
3986 \end_inset
3987
3988 のような他のパッケージと比較すると)新規の引用コマンドを定義する必要がないことです.そのかわりに,書誌情報の違う節には,その節向けの項目を収録した別の文献データ
3989 ベースを用意する必要があります.たとえば,書誌情報を「出典」の節と「学術文献」の節に分けたい場合には,それぞれの文献データベース,たとえば
3990 \begin_inset Flex Code
3991 status collapsed
3992
3993 \begin_layout Plain Layout
3994 souces.bib
3995 \end_layout
3996
3997 \end_inset
3998
3999
4000 \begin_inset Flex Code
4001 status collapsed
4002
4003 \begin_layout Plain Layout
4004 scientific.bib
4005 \end_layout
4006
4007 \end_inset
4008
4009 とを作成する必要があります.
4010 \end_layout
4011
4012 \begin_layout Standard
4013 \begin_inset Flex MenuItem
4014 status collapsed
4015
4016 \begin_layout Plain Layout
4017 文書\SpecialChar menuseparator
4018 設定
4019 \end_layout
4020
4021 \end_inset
4022
4023 を開いて
4024 \begin_inset Flex MenuItem
4025 status collapsed
4026
4027 \begin_layout Plain Layout
4028 書誌情報
4029 \end_layout
4030
4031 \end_inset
4032
4033 の下の
4034 \begin_inset Flex MenuItem
4035 status collapsed
4036
4037 \begin_layout Plain Layout
4038 節分けされた書誌情報
4039 \end_layout
4040
4041 \end_inset
4042
4043 をチェックしてください.すると,書誌情報の各節に一つずつ,複数の書誌情報を挿入することができます.上記の例では,Bib\SpecialChar TeX
4044 書誌情報
4045 \begin_inset Flex Code
4046 status collapsed
4047
4048 \begin_layout Plain Layout
4049 sources.bib
4050 \end_layout
4051
4052 \end_inset
4053
4054 と二つめの文献データベース
4055 \begin_inset Flex Code
4056 status collapsed
4057
4058 \begin_layout Plain Layout
4059 scientific.bib
4060 \end_layout
4061
4062 \end_inset
4063
4064 を挿入します.各節に同じスタイルを用いるか異なるスタイルを用いるかは自由です.くわえて,書誌情報の節に,指定したデータベースの「引用されたすべての参照」を載せる
4065 (これが既定です)か,「引用されなかったすべての参照」を載せるか,あるいは「すべての参照」を載せるかを選択することができます.これは,もし書誌情報を「本文に引用
4066 された出典」・「本文に引用されていない出典」・「学術文献」の三つの節に分割したい場合に,便利でありましょう.各節の見出しは,通常の節や小節として入れることができ
4067 ます.
4068 \begin_inset Flex Code
4069 status collapsed
4070
4071 \begin_layout Plain Layout
4072 bibtopic
4073 \end_layout
4074
4075 \end_inset
4076
4077 は,書誌情報用の見出しを取り除いてしまいますので,手動でこれを追加しなくてはなりません(たとえば章*や節*などをお使いください).
4078 \end_layout
4079
4080 \begin_layout Subsection
4081 複数の書誌情報
4082 \end_layout
4083
4084 \begin_layout Standard
4085 文書の節ごとあるいは章ごとの書誌情報など,複数の書誌情報はBib\SpecialChar TeX
4086 自身ではサポートされていません.しかしながら,もし若干の
4087 \begin_inset Flex Code
4088 status collapsed
4089
4090 \begin_layout Plain Layout
4091 \SpecialChar TeX
4092 コード
4093 \end_layout
4094
4095 \end_inset
4096
4097 (第
4098 \begin_inset CommandInset ref
4099 LatexCommand ref
4100 reference "sec:LaTeXコードを挿入する"
4101
4102 \end_inset
4103
4104 節を参照)を利用することを厭わなければ,\SpecialChar LyX
4105 で節分けされた書誌情報を作るのに使用されている(前節を参照)
4106 \begin_inset Flex Code
4107 status collapsed
4108
4109 \begin_layout Plain Layout
4110 bibtopic
4111 \end_layout
4112
4113 \end_inset
4114
4115 パッケージが,この課題を解決する簡単な方法を提供します
4116 \begin_inset Foot
4117 status collapsed
4118
4119 \begin_layout Plain Layout
4120 ほかに,
4121 \begin_inset Flex Code
4122 status collapsed
4123
4124 \begin_layout Plain Layout
4125 chapterbib
4126 \end_layout
4127
4128 \end_inset
4129
4130
4131 \begin_inset Flex Code
4132 status collapsed
4133
4134 \begin_layout Plain Layout
4135 bibunits
4136 \end_layout
4137
4138 \end_inset
4139
4140 パッケージを利用する方法もあります.
4141 \end_layout
4142
4143 \end_inset
4144
4145
4146 \end_layout
4147
4148 \begin_layout Standard
4149 まず
4150 \begin_inset Flex MenuItem
4151 status collapsed
4152
4153 \begin_layout Plain Layout
4154 文書\SpecialChar menuseparator
4155 設定
4156 \end_layout
4157
4158 \end_inset
4159
4160 に行って
4161 \begin_inset Flex MenuItem
4162 status collapsed
4163
4164 \begin_layout Plain Layout
4165 書誌情報
4166 \end_layout
4167
4168 \end_inset
4169
4170 の下の
4171 \begin_inset Flex MenuItem
4172 status collapsed
4173
4174 \begin_layout Plain Layout
4175 節分けされた書誌情報
4176 \end_layout
4177
4178 \end_inset
4179
4180 を有効にしてください.つぎに文書中において,書誌情報(Bib\SpecialChar TeX
4181 書誌情報本体を含む)の入った節を
4182 \begin_inset Flex Code
4183 status collapsed
4184
4185 \begin_layout Plain Layout
4186
4187 \backslash
4188 begin{btUnit}
4189 \end_layout
4190
4191 \end_inset
4192
4193
4194 \begin_inset Flex Code
4195 status collapsed
4196
4197 \begin_layout Plain Layout
4198
4199 \backslash
4200 end{btUnit}
4201 \end_layout
4202
4203 \end_inset
4204
4205 のあいだにはさまなくてはなりません(これらのコマンドは\SpecialChar TeX
4206 コードとして挿入する必要があります).書誌情報には,現在位置の
4207 \begin_inset Flex Code
4208 status collapsed
4209
4210 \begin_layout Plain Layout
4211 btUnit
4212 \end_layout
4213
4214 \end_inset
4215
4216 において引用されたすべての参照が含まれることになります.
4217 \series bold
4218 (註)
4219 \series default
4220 この方法を用いる場合には,すべての参照はいずれかの
4221 \begin_inset Flex Code
4222 status collapsed
4223
4224 \begin_layout Plain Layout
4225 btUnit
4226 \end_layout
4227
4228 \end_inset
4229
4230 内部になくてはなりません.また,
4231 \begin_inset Flex Code
4232 status collapsed
4233
4234 \begin_layout Plain Layout
4235 btUnit
4236 \end_layout
4237
4238 \end_inset
4239
4240 は入れ子構造にすることができません.
4241 \end_layout
4242
4243 \begin_layout Section
4244 複合文書
4245 \end_layout
4246
4247 \begin_layout Subsection
4248 一般的な操作
4249 \end_layout
4250
4251 \begin_layout Standard
4252 たくさんの節を含んだ大きなファイルで作業をする場合,文書をいくつかのファイルに分割した方が往々にして便利ですし,場合によっては,表部分にはしょっちゅう変更が加え
4253 られるけれども,その前の文章はつねに同じであるようなケースもあるでしょう.このような場合には,複合文書を利用することを,まずご検討ください.たとえば,科学論文は
4254 通常,導入部・所見・結果・議論・結論の五つの節から成ります.これら各節を別々の\SpecialChar LyX
4255 ファイルにして,タイトル・著者・概要・書誌情報等と,これら五つのインクルード
4256 \begin_inset Foot
4257 status collapsed
4258
4259 \begin_layout Plain Layout
4260
4261 \series bold
4262 (訳註)
4263 \series default
4264 「取り込む」の意です.原語「include」に対する訳語として,プログラミング用語の「インクルードする」以外に適語がないので,ここではプログラミング用語をそのま
4265 ま使用します.
4266 \end_layout
4267
4268 \end_inset
4269
4270 ファイルを持つ,もう一つ別の「マスター」ファイルを作成するようにすることができます.これらの各ファイルは,単にマスターファイルにインクルードされるだけでなく,単
4271 独でも出力したり印刷したりすることのできる完全な\SpecialChar LyX
4272 ファイルであるように注意することが重要です.しかも,これらの各ファイルは,同じ文書クラスでなくてはなりません.a
4273 rticleクラスとbookクラスを混在させるようなことはなさらないでください.\SpecialChar LaTeX
4274 ファイルをインクルードすることもできますが,このファイルにはプリアンブルがあって
4275 はなりません(
4276 \begin_inset Flex Code
4277 status collapsed
4278
4279 \begin_layout Plain Layout
4280
4281 \backslash
4282 begin{document}
4283 \end_layout
4284
4285 \end_inset
4286
4287 行とその前のすべて,および
4288 \begin_inset Flex Code
4289 status collapsed
4290
4291 \begin_layout Plain Layout
4292
4293 \backslash
4294 end{document}行
4295 \end_layout
4296
4297 \end_inset
4298
4299 は削除しておかなければなりません).さもないと,DVIファイルを作成する際にエラーが発生するでしょう.
4300 \end_layout
4301
4302 \begin_layout Standard
4303 \SpecialChar LyX
4304 では,
4305 \family sans
4306 挿入\SpecialChar menuseparator
4307 ファイル\SpecialChar menuseparator
4308 子文書
4309 \family default
4310 で簡単にファイルをインクルードすることができます.このメニューを選んでクリックすると,カーソルの現在位置に小さな枠が挿入されます.この枠をクリックすると,ダイア
4311 ログが現れるので,そこでインクルードするファイルとインクルード方法を選択することができます.
4312 \end_layout
4313
4314 \begin_layout Standard
4315 ファイル選択ボックスは,いまや自明でしょう.インクルード方法には,「include」・「input」・「verbatim」の三つがあります.「include」と
4316 「input」の違いは,正確には\SpecialChar LaTeX
4317 の達人にしか意味のないものですが,ほとんどの人にとって意味のある違いといえば,「include」されたファイルは新規頁から組版さ
4318 れるのに対し,「input」されたファイルは現在のページから組版される点です.
4319 \end_layout
4320
4321 \begin_layout Standard
4322 一般に,マスターファイルは,組版前に完全な\SpecialChar LaTeX
4323 ファイルに変換されますが,インクルードされるファイルは,プリアンブル情報をまったく持たない\SpecialChar LaTeX
4324 ファイルに変換されます.
4325 \end_layout
4326
4327 \begin_layout Standard
4328 「verbatim」インクルードファイルでは,ファイルの内容がそのまま(つまり「
4329 \begin_inset Flex Code
4330 status collapsed
4331
4332 \begin_layout Plain Layout
4333 verbatim
4334 \end_layout
4335
4336 \end_inset
4337
4338 」モードで)固定幅タイプライタフォントで組版されます.通常,このファイルの空白は,通常の\SpecialChar LyX
4339 での空白の取扱いとは違って,連続した複数の空白がそのまま出力されるものの
4340 ,単なる見えない空白です.ただし,
4341 \family sans
4342
4343 \begin_inset Flex MenuItem
4344 status collapsed
4345
4346 \begin_layout Plain Layout
4347
4348 \family sans
4349 出力の空白に印付けをする
4350 \end_layout
4351
4352 \end_inset
4353
4354
4355 \family default
4356 チェックボックスを有効にすると,空白が存在することを明確にするために空白の印が出力されます.
4357 \end_layout
4358
4359 \begin_layout Subsection
4360 ファイル間の相互参照
4361 \end_layout
4362
4363 \begin_layout Standard
4364 \begin_inset Box Shadowbox
4365 position "t"
4366 hor_pos "c"
4367 has_inner_box 1
4368 inner_pos "t"
4369 use_parbox 0
4370 use_makebox 0
4371 width "100col%"
4372 special "none"
4373 height "1in"
4374 height_special "totalheight"
4375 thickness "0.4pt"
4376 separation "3pt"
4377 shadowsize "4pt"
4378 framecolor "black"
4379 backgroundcolor "none"
4380 status open
4381
4382 \begin_layout Plain Layout
4383 この節の内容は,すでに古くなっています.既定のマスター文書についてと,マスターが開いているときに子文書をどう開くかについて記述する必要があります.[[要修正]]
4384 \end_layout
4385
4386 \end_inset
4387
4388
4389 \end_layout
4390
4391 \begin_layout Standard
4392 異なるファイル間に相互参照を設定することも可能です.まず,すべての関係するファイルを開いてください.例として,2つのファイルを扱う場合を考え,各ファイルをA・B
4393 と呼びます.BがAにインクルードされるファイルだとします.Aにラベルを入れて,Bで参照したいとしましょう.文書Bで相互参照ダイアログを開いて,使用する「バッファ
4394 」を選んでください.
4395 \end_layout
4396
4397 \begin_layout Subsection
4398 すべての子文書での書誌情報
4399 \end_layout
4400
4401 \begin_layout Standard
4402 \begin_inset Box Shadowbox
4403 position "t"
4404 hor_pos "c"
4405 has_inner_box 1
4406 inner_pos "t"
4407 use_parbox 0
4408 use_makebox 0
4409 width "100col%"
4410 special "none"
4411 height "1in"
4412 height_special "totalheight"
4413 thickness "0.4pt"
4414 separation "3pt"
4415 shadowsize "4pt"
4416 framecolor "black"
4417 backgroundcolor "none"
4418 status open
4419
4420 \begin_layout Plain Layout
4421 この節も更新が必要です.この点に関する内容がwikiにあるので,それをここにコピーすることも可か.
4422 \end_layout
4423
4424 \end_inset
4425
4426
4427 \end_layout
4428
4429 \begin_layout Standard
4430 すべての子文書の全文献項目を含んだ書誌情報一覧をコピーし,それをコメントに変更してください.このようにすることで,\SpecialChar LyX
4431 は.bibファイルを見つけることができ,書誌情報
4432 一覧を見えるようにせずとも簡単に参照を挿入することができるようになります.
4433 \end_layout
4434
4435 \begin_layout Standard
4436 書誌情報一覧がコメントにあるために,\SpecialChar LaTeX
4437 はそれを使用しないので,参照は[1]のようには表示されないで[?]のように表示されます.ひとつの解決法として,コメントをイン
4438 クルードする\SpecialChar LaTeX
4439 パッケージの
4440 \begin_inset Flex Code
4441 status collapsed
4442
4443 \begin_layout Plain Layout
4444 comment
4445 \end_layout
4446
4447 \end_inset
4448
4449 を使用して,ファイルを別々に処理する方法があります.そのためには,すべての子文書のプリアンブルに以下を書き加えてください.
4450 \end_layout
4451
4452 \begin_layout LyX-Code
4453
4454 \backslash
4455 usepackage{comment}
4456 \end_layout
4457
4458 \begin_layout LyX-Code
4459
4460 \backslash
4461 includecomment{comment}
4462 \end_layout
4463
4464 \begin_layout Standard
4465 \begin_inset Flex URL
4466 status collapsed
4467
4468 \begin_layout Plain Layout
4469
4470 http://wiki.lyx.org/FAQ/Unsorted#toc31
4471 \end_layout
4472
4473 \end_inset
4474
4475 も参照してください.
4476 \end_layout
4477
4478 \begin_layout Section
4479 \SpecialChar LyX
4480 書庫
4481 \end_layout
4482
4483 \begin_layout Standard
4484 しばしばユーザーは,出版社に送ったり,共著者とやりとりするために,\SpecialChar LyX
4485 ファイルを,その依存する全画像(及び他のファイル)と「同梱」する必要に迫られることがあります.\SpecialChar LyX
4486
4487  2.0には,この過程を自動化するPythonスクリプト(
4488 \begin_inset Flex Code
4489 status collapsed
4490
4491 \begin_layout Plain Layout
4492 lyxpak.py
4493 \end_layout
4494
4495 \end_inset
4496
4497 )が含まれています.これを使うには,
4498 \begin_inset Flex Code
4499 status collapsed
4500
4501 \begin_layout Plain Layout
4502 zipfile
4503 \end_layout
4504
4505 \end_inset
4506
4507  pythonモジュールまたは
4508 \begin_inset Flex Code
4509 status collapsed
4510
4511 \begin_layout Plain Layout
4512 tarfile
4513 \end_layout
4514
4515 \end_inset
4516
4517  pythonモジュールが,システムに導入済みであることが必要です.既定設定では,Unix系システムでは,
4518 \begin_inset Flex Code
4519 status collapsed
4520
4521 \begin_layout Plain Layout
4522 gzip
4523 \end_layout
4524
4525 \end_inset
4526
4527 圧縮
4528 \begin_inset Flex Code
4529 status collapsed
4530
4531 \begin_layout Plain Layout
4532 tar
4533 \end_layout
4534
4535 \end_inset
4536
4537 ファイル形式が優先され,Windowsでは
4538 \begin_inset Flex Code
4539 status collapsed
4540
4541 \begin_layout Plain Layout
4542 zip
4543 \end_layout
4544
4545 \end_inset
4546
4547 形式が優先されます.
4548 \end_layout
4549
4550 \begin_layout Standard
4551 \SpecialChar LyX
4552 の環境構成時には,「\SpecialChar LyX
4553 書庫」を書き出すことができるようにスクリプトが準備され,
4554 \begin_inset Flex MenuItem
4555 status collapsed
4556
4557 \begin_layout Plain Layout
4558 ファイル\SpecialChar menuseparator
4559 書き出し
4560 \end_layout
4561
4562 \end_inset
4563
4564 の下で利用可能となります.
4565 \end_layout
4566
4567 \begin_layout Standard
4568 \begin_inset Flex MenuItem
4569 status collapsed
4570
4571 \begin_layout Plain Layout
4572 ツール\SpecialChar menuseparator
4573 設定\SpecialChar menuseparator
4574 ファイル処理\SpecialChar menuseparator
4575 変換子
4576 \end_layout
4577
4578 \end_inset
4579
4580
4581 \begin_inset Flex MenuItem
4582 status collapsed
4583
4584 \begin_layout Plain Layout
4585 \SpecialChar LyX
4586 \SpecialChar menuseparator
4587 \SpecialChar LyX
4588 書庫
4589 \end_layout
4590
4591 \end_inset
4592
4593 変換子に,
4594 \begin_inset Flex Code
4595 status collapsed
4596
4597 \begin_layout Plain Layout
4598 -t
4599 \end_layout
4600
4601 \end_inset
4602
4603 スイッチや
4604 \begin_inset Flex Code
4605 status collapsed
4606
4607 \begin_layout Plain Layout
4608 -z
4609 \end_layout
4610
4611 \end_inset
4612
4613 スイッチを加えることで,プラットホームとは独立に,
4614 \begin_inset Flex Code
4615 status collapsed
4616
4617 \begin_layout Plain Layout
4618 tar
4619 \end_layout
4620
4621 \end_inset
4622
4623 形式や
4624 \begin_inset Flex Code
4625 status collapsed
4626
4627 \begin_layout Plain Layout
4628 zip
4629 \end_layout
4630
4631 \end_inset
4632
4633 形式を強制することができます(スイッチは,スクリプト名の前ではなく,後ろに加えてください).
4634 \end_layout
4635
4636 \begin_layout Section
4637 装飾的なヘッダ・フッタ
4638 \end_layout
4639
4640 \begin_layout Standard
4641 既定のページレイアウトは,どちらかといえば素っ気ないものです.
4642 \begin_inset Flex Code
4643 status collapsed
4644
4645 \begin_layout Plain Layout
4646 article
4647 \end_layout
4648
4649 \end_inset
4650
4651 文書クラスの場合には,ページの下の真ん中にページ番号がつくだけです.この取扱説明書はKOMA-scriptのbookクラスなので,すこしは凝ってますが,ほんとう
4652 に着飾るには,『
4653 \emph on
4654 ユーザーの手引き
4655 \emph default
4656 』に述べられているように,文書ページスタイルを「装飾的(fancy)」に設定する必要があります.この節では,望んだとおりの効果を得るために,\SpecialChar LaTeX
4657 プリアンブルに挿入す
4658 る必要のある\SpecialChar LaTeX
4659 コードについて解説します.
4660 \end_layout
4661
4662 \begin_layout Standard
4663 ページへッダは,「left(左)」・「center(中央)」・「right(右)」と命名された3つのフィールドに分けられています.フッタも同様に3つのフィールド
4664 に分類されています.これらのフィールドをもっとも簡単に設定する\SpecialChar LaTeX
4665 コマンドには,
4666 \family typewriter
4667
4668 \begin_inset Flex Code
4669 status collapsed
4670
4671 \begin_layout Plain Layout
4672
4673 \family typewriter
4674
4675 \backslash
4676 lhead
4677 \end_layout
4678
4679 \end_inset
4680
4681
4682 \family default
4683
4684 \family typewriter
4685
4686 \begin_inset Flex Code
4687 status collapsed
4688
4689 \begin_layout Plain Layout
4690
4691 \family typewriter
4692
4693 \backslash
4694 chead
4695 \end_layout
4696
4697 \end_inset
4698
4699
4700 \family default
4701
4702 \family typewriter
4703
4704 \begin_inset Flex Code
4705 status collapsed
4706
4707 \begin_layout Plain Layout
4708
4709 \family typewriter
4710
4711 \backslash
4712 rhead
4713 \end_layout
4714
4715 \end_inset
4716
4717
4718 \family default
4719
4720 \begin_inset Flex Code
4721 status collapsed
4722
4723 \begin_layout Plain Layout
4724
4725 \backslash
4726 lfoot
4727 \end_layout
4728
4729 \end_inset
4730
4731 などがあります.かりに,各ページの左上端に自分の名前を入れたいものとしましょう.次のようなコマンドをプリアンブルに入れるだけです.
4732 \end_layout
4733
4734 \begin_layout Standard
4735
4736 \family typewriter
4737
4738 \backslash
4739 lhead{物書 はじめ}
4740 \end_layout
4741
4742 \begin_layout Standard
4743 これで自分の名前が左上に現れます.フィールドに取り除きたい既定の内容がある場合(往々にして中央のフッタにはページ番号が入ります)には,空の引数を持つコマンドを入
4744 れるだけです.すなわち,
4745 \end_layout
4746
4747 \begin_layout Standard
4748
4749 \family typewriter
4750
4751 \backslash
4752 cfoot{}
4753 \begin_inset Newline newline
4754 \end_inset
4755
4756
4757 \family default
4758 とします.
4759 \end_layout
4760
4761 \begin_layout Standard
4762 もっと美しくしてみましょう.節番号を「第‥節」という言葉といっしょに(第3節のように)左上に入れ,ページ番号を(4ページのように)右上に,自分の名前を左下に,日
4763 付を右下に入れます.以下のコマンドをプリアンブルに入れます.
4764 \end_layout
4765
4766 \begin_layout Standard
4767
4768 \family typewriter
4769
4770 \backslash
4771 lhead{第
4772 \backslash
4773 thesection 節}
4774 \end_layout
4775
4776 \begin_layout Standard
4777
4778 \family typewriter
4779
4780 \backslash
4781 chead{}
4782 \end_layout
4783
4784 \begin_layout Standard
4785
4786 \family typewriter
4787
4788 \backslash
4789 rhead{
4790 \backslash
4791 thepage ページ}
4792 \end_layout
4793
4794 \begin_layout Standard
4795
4796 \family typewriter
4797
4798 \backslash
4799 lfoot{物書 はじめ}
4800 \end_layout
4801
4802 \begin_layout Standard
4803
4804 \family typewriter
4805
4806 \backslash
4807 cfoot{}
4808 \end_layout
4809
4810 \begin_layout Standard
4811
4812 \family typewriter
4813
4814 \backslash
4815 rfoot{
4816 \backslash
4817 today}
4818 \end_layout
4819
4820 \begin_layout Standard
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 thesecti
4833 \family default
4834 o
4835 \family typewriter
4836 n
4837 \end_layout
4838
4839 \end_inset
4840
4841
4842 \family default
4843
4844 \begin_inset Flex Code
4845 status collapsed
4846
4847 \begin_layout Plain Layout
4848
4849 \family typewriter
4850
4851 \backslash
4852 thepa
4853 \family default
4854 ge
4855 \end_layout
4856
4857 \end_inset
4858
4859 は,それぞれ\SpecialChar LaTeX
4860 の節カウンタおよびページカウンタを取得するもので,これによって現在の節番号とページ番号を印字します.
4861 \begin_inset Flex Code
4862 status collapsed
4863
4864 \begin_layout Plain Layout
4865
4866 \family typewriter
4867
4868 \backslash
4869 tod
4870 \family default
4871 ay
4872 \end_layout
4873
4874 \end_inset
4875
4876 は,今日の日付を印字するものです.
4877 \end_layout
4878
4879 \begin_layout Standard
4880 へッダ下またはフッタ上に描かれる罫線の太さも変更することができます.もし罫線が必要なければ,太さを0にしてください.ヘッダ罫線は,既定では0.4ptの太さであり,
4881 フッタ罫線は0ptです.太さを変更するには,
4882 \family typewriter
4883
4884 \begin_inset Flex Code
4885 status collapsed
4886
4887 \begin_layout Plain Layout
4888
4889 \family typewriter
4890
4891 \backslash
4892 renewcommand{
4893 \backslash
4894 headrulewidth}{0.4pt}
4895 \end_layout
4896
4897 \end_inset
4898
4899
4900 \family default
4901
4902 \family typewriter
4903
4904 \begin_inset Flex Code
4905 status collapsed
4906
4907 \begin_layout Plain Layout
4908
4909 \family typewriter
4910
4911 \backslash
4912 renewcommand{
4913 \backslash
4914 footrulewidth}{0.4pt}
4915 \end_layout
4916
4917 \end_inset
4918
4919
4920 \family default
4921 のようなコマンドを使用してください.
4922 \end_layout
4923
4924 \begin_layout Standard
4925 \begin_inset Flex Code
4926 status collapsed
4927
4928 \begin_layout Plain Layout
4929
4930 \family typewriter
4931
4932 \backslash
4933 thispagestyle{empty}
4934 \end_layout
4935
4936 \end_inset
4937
4938
4939 \begin_inset Flex Code
4940 status collapsed
4941
4942 \begin_layout Plain Layout
4943
4944 \family typewriter
4945
4946 \backslash
4947 thispagestyle{plain}
4948 \end_layout
4949
4950 \end_inset
4951
4952
4953 \begin_inset Flex Code
4954 status collapsed
4955
4956 \begin_layout Plain Layout
4957
4958 \family typewriter
4959
4960 \backslash
4961 thispagestyle{fancy}
4962 \end_layout
4963
4964 \end_inset
4965
4966 のようなコマンドを使えば,各ページごとにへッダ・フッタ設定を有効にしたり無効にしたりすることができます.設定を変更したいページに,これらのコマンドを\SpecialChar TeX
4967 コードとして
4968 挿入してください.実は,タイトルページは,その後のページは大域的に装飾的(fancy)に設定されていれば装飾的(fancy)になるにもかかわらず,既定でプレーン
4969 (plain)になるように設定されているのです.
4970 \end_layout
4971
4972 \begin_layout Standard
4973 奇数ページの左上だけに何かを挿入するなど,もっと複雑なコマンドもあるのですが,詳しい解説は
4974 \begin_inset Flex Code
4975 status collapsed
4976
4977 \begin_layout Plain Layout
4978
4979 \family typewriter
4980 fancyhdr
4981 \end_layout
4982
4983 \end_inset
4984
4985 パッケージの取扱説明書をご参照ください(
4986 \begin_inset Flex Code
4987 status collapsed
4988
4989 \begin_layout Plain Layout
4990 fancyhdr.dvi
4991 \end_layout
4992
4993 \end_inset
4994
4995 を探してください).
4996 \end_layout
4997
4998 \begin_layout Standard
4999 最後の例として,へッダやフッタに画像を挿入できることを取り上げましょう.会社のロゴをページ左上に入れたいものとします.たとえば,
5000 \end_layout
5001
5002 \begin_layout Standard
5003
5004 \family typewriter
5005
5006 \backslash
5007 lhead{
5008 \backslash
5009 resizebox{1in}{!}{
5010 \backslash
5011 includegraphics{logo.eps}}}
5012 \end_layout
5013
5014 \begin_layout Standard
5015 \noindent
5016 とすれば,これを実現できます(文書中に他に画像を挿入していない場合には,
5017 \begin_inset Newline newline
5018 \end_inset
5019
5020
5021 \begin_inset Flex Code
5022 status collapsed
5023
5024 \begin_layout Plain Layout
5025 \noindent
5026
5027 \family typewriter
5028
5029 \backslash
5030 usepackage{graphics}
5031 \end_layout
5032
5033 \end_inset
5034
5035 をプリアンブルに宣言する必要があります).
5036 \end_layout
5037
5038 \begin_layout Section
5039 箇条書き(記号)ブリットの指定
5040 \begin_inset CommandInset label
5041 LatexCommand label
5042 name "sec:ブリット"
5043
5044 \end_inset
5045
5046
5047 \end_layout
5048
5049 \begin_layout Standard
5050
5051 \noun on
5052 Allan Rae文
5053 \end_layout
5054
5055 \begin_layout Subsection
5056 はじめに
5057 \end_layout
5058
5059 \begin_layout Standard
5060 \SpecialChar LyX
5061 には,ブリットの形が216個準備されていて,簡単なダイアログから呼び出すことができます.このダイアログを使えば,箇条書き(記号)の各階層で使うブリットの形を変更
5062 することができます.この設定は文書全体に共通なので,段落ごとに別のブリットを指定することはできません
5063 \begin_inset Foot
5064 status collapsed
5065
5066 \begin_layout Plain Layout
5067 正確には可能ですが,手動で行う必要があります.
5068 \end_layout
5069
5070 \end_inset
5071
5072
5073 \end_layout
5074
5075 \begin_layout Subsection
5076 外見
5077 \end_layout
5078
5079 \begin_layout Standard
5080 メニュー項目の
5081 \begin_inset Flex MenuItem
5082 status collapsed
5083
5084 \begin_layout Plain Layout
5085 文書\SpecialChar menuseparator
5086 設定
5087 \end_layout
5088
5089 \end_inset
5090
5091 を選択してダイアログを開き,
5092 \begin_inset Flex MenuItem
5093 status collapsed
5094
5095 \begin_layout Plain Layout
5096 ブリット
5097 \end_layout
5098
5099 \end_inset
5100
5101 タブを選択してください.
5102 \end_layout
5103
5104 \begin_layout Standard
5105 このダイアログは,ブリット形の一覧表を提示します.
5106 \begin_inset Flex MenuItem
5107 status collapsed
5108
5109 \begin_layout Plain Layout
5110 フォント
5111 \end_layout
5112
5113 \end_inset
5114
5115 と書いてあるドロップダウンメニューで,6つの各ブリット形パネルを切り替えることができます.また,一覧表左の
5116 \begin_inset Flex MenuItem
5117 status collapsed
5118
5119 \begin_layout Plain Layout
5120 階層
5121 \end_layout
5122
5123 \end_inset
5124
5125 パネルは,変更したい階層を選択するものです.
5126 \begin_inset Flex MenuItem
5127 status collapsed
5128
5129 \begin_layout Plain Layout
5130 任意のブリット
5131 \end_layout
5132
5133 \end_inset
5134
5135 では,指定したい\SpecialChar LaTeX
5136 表現を入力することができます.任意のブリットを指定した場合には,そのコマンドが必要とするパッケージを\SpecialChar LaTeX
5137 プリアンブルで指定する必要があります.
5138 \end_layout
5139
5140 \begin_layout Standard
5141 6つのパネルは,それぞれが必要とするパッケージによって分類されています.下記は,フォント名と\SpecialChar LaTeX
5142 パッケージの対応表です.
5143 \begin_inset Separator latexpar
5144 \end_inset
5145
5146
5147 \end_layout
5148
5149 \begin_layout Standard
5150 \align center
5151 \begin_inset Tabular
5152 <lyxtabular version="3" rows="7" columns="2">
5153 <features tabularvalignment="middle">
5154 <column alignment="center" valignment="top" width="0pt">
5155 <column alignment="center" valignment="top" width="0pt">
5156 <row>
5157 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5158 \begin_inset Text
5159
5160 \begin_layout Plain Layout
5161 フォント
5162 \end_layout
5163
5164 \end_inset
5165 </cell>
5166 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
5167 \begin_inset Text
5168
5169 \begin_layout Plain Layout
5170
5171 \family roman
5172 \series medium
5173 \shape up
5174 \size normal
5175 \emph off
5176 \bar no
5177 \noun off
5178 \color none
5179 必要とするパッケージ
5180 \end_layout
5181
5182 \end_inset
5183 </cell>
5184 </row>
5185 <row>
5186 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5187 \begin_inset Text
5188
5189 \begin_layout Plain Layout
5190
5191 \family sans
5192 標準
5193 \end_layout
5194
5195 \end_inset
5196 </cell>
5197 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5198 \begin_inset Text
5199
5200 \begin_layout Plain Layout
5201
5202 \series medium
5203 \shape up
5204 \size normal
5205 \emph off
5206 \bar no
5207 \noun off
5208 \color none
5209 \SpecialChar LaTeX
5210
5211 \family roman
5212 本体
5213 \end_layout
5214
5215 \end_inset
5216 </cell>
5217 </row>
5218 <row>
5219 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5220 \begin_inset Text
5221
5222 \begin_layout Plain Layout
5223
5224 \family sans
5225 \series medium
5226 \shape up
5227 \size normal
5228 \emph off
5229 \bar no
5230 \noun off
5231 \color none
5232 数式
5233 \end_layout
5234
5235 \end_inset
5236 </cell>
5237 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5238 \begin_inset Text
5239
5240 \begin_layout Plain Layout
5241
5242 \family typewriter
5243 \series medium
5244 \shape up
5245 \size normal
5246 \emph off
5247 \bar no
5248 \noun off
5249 \color none
5250 amssymb.sty
5251 \end_layout
5252
5253 \end_inset
5254 </cell>
5255 </row>
5256 <row>
5257 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5258 \begin_inset Text
5259
5260 \begin_layout Plain Layout
5261
5262 \family sans
5263 \series medium
5264 \shape up
5265 \size normal
5266 \emph off
5267 \bar no
5268 \noun off
5269 \color none
5270 絵文字1
5271 \end_layout
5272
5273 \end_inset
5274 </cell>
5275 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5276 \begin_inset Text
5277
5278 \begin_layout Plain Layout
5279
5280 \family typewriter
5281 \series medium
5282 \shape up
5283 \size normal
5284 \emph off
5285 \bar no
5286 \noun off
5287 \color none
5288 pifont.sty
5289 \end_layout
5290
5291 \end_inset
5292 </cell>
5293 </row>
5294 <row>
5295 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5296 \begin_inset Text
5297
5298 \begin_layout Plain Layout
5299
5300 \family sans
5301 \series medium
5302 \shape up
5303 \size normal
5304 \emph off
5305 \bar no
5306 \noun off
5307 \color none
5308 絵文字2
5309 \end_layout
5310
5311 \end_inset
5312 </cell>
5313 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5314 \begin_inset Text
5315
5316 \begin_layout Plain Layout
5317
5318 \family typewriter
5319 \series medium
5320 \shape up
5321 \size normal
5322 \emph off
5323 \bar no
5324 \noun off
5325 \color none
5326 pifont.sty
5327 \end_layout
5328
5329 \end_inset
5330 </cell>
5331 </row>
5332 <row>
5333 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5334 \begin_inset Text
5335
5336 \begin_layout Plain Layout
5337
5338 \family sans
5339 \series medium
5340 \shape up
5341 \size normal
5342 \emph off
5343 \bar no
5344 \noun off
5345 \color none
5346 絵文字3
5347 \end_layout
5348
5349 \end_inset
5350 </cell>
5351 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5352 \begin_inset Text
5353
5354 \begin_layout Plain Layout
5355
5356 \family typewriter
5357 \series medium
5358 \shape up
5359 \size normal
5360 \emph off
5361 \bar no
5362 \noun off
5363 \color none
5364 pifont.sty
5365 \end_layout
5366
5367 \end_inset
5368 </cell>
5369 </row>
5370 <row>
5371 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5372 \begin_inset Text
5373
5374 \begin_layout Plain Layout
5375
5376 \family sans
5377 \series medium
5378 \shape up
5379 \size normal
5380 \emph off
5381 \bar no
5382 \noun off
5383 \color none
5384 絵文字4
5385 \end_layout
5386
5387 \end_inset
5388 </cell>
5389 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
5390 \begin_inset Text
5391
5392 \begin_layout Plain Layout
5393
5394 \family typewriter
5395 \series medium
5396 \shape up
5397 \size normal
5398 \emph off
5399 \bar no
5400 \noun off
5401 \color none
5402 pifont.sty
5403 \end_layout
5404
5405 \end_inset
5406 </cell>
5407 </row>
5408 </lyxtabular>
5409
5410 \end_inset
5411
5412
5413 \end_layout
5414
5415 \begin_layout Standard
5416 \SpecialChar LyX
5417 は,ユーザーが導入されていないパッケージのブリットを使用したとしても,警告を発しません.ファイルを閲覧したり印刷したりしようとしたときに\SpecialChar LaTeX
5418 エラーが出るようならば,
5419 パッケージが導入されていない可能性が大です
5420 \begin_inset Foot
5421 status collapsed
5422
5423 \begin_layout Plain Layout
5424 \SpecialChar LyX
5425 が,パッケージがなくてもブリットを使用することを許すのは,編集をここで行ったとしても,別のところへエクスポートする可能性があるからです.
5426 \end_layout
5427
5428 \end_inset
5429
5430
5431 \end_layout
5432
5433 \begin_layout Subsection
5434 使用法
5435 \end_layout
5436
5437 \begin_layout Standard
5438 変更したいブリット階層を選んで,ブリット形と寸法を選択してください.何らかの変更を加えたとしても,\SpecialChar LyX
5439 上には反映されませんが,文書の表示を行えば確認されます.
5440 \end_layout
5441
5442 \begin_layout Standard
5443 ブリット形は,適切な階層のブリットボタンをマウスで右クリックすれば,簡単に既定値に初期化することができます
5444 \begin_inset Foot
5445 status collapsed
5446
5447 \begin_layout Plain Layout
5448 もし
5449 \emph on
5450 本当に
5451 \emph default
5452 段落ごとに異なるブリットの形を使いたいならば,\SpecialChar TeX
5453 コードを使って少し手を汚す必要があります.この場合も,ブリット選択ダイアログを使えば,さまざまな形のLaTeXコー
5454 ドを確認することができるので手助けとなるでしょう.任意に設定した段落をつくるには,以下のような選択肢があります.
5455 \end_layout
5456
5457 \begin_layout Plain Layout
5458 \begin_inset ERT
5459 status open
5460
5461 \begin_layout Plain Layout
5462
5463
5464 \backslash
5465 let
5466 \backslash
5467 savelabelitemi=
5468 \backslash
5469 labelitemi
5470 \end_layout
5471
5472 \end_inset
5473
5474
5475 \end_layout
5476
5477 \begin_layout Plain Layout
5478 \begin_inset ERT
5479 status open
5480
5481 \begin_layout Plain Layout
5482
5483
5484 \backslash
5485 renewcommand
5486 \backslash
5487 labelitemi[0]{
5488 \backslash
5489 small
5490 \backslash
5491 (
5492 \backslash
5493 sharp
5494 \backslash
5495 )}
5496 \end_layout
5497
5498 \end_inset
5499
5500
5501 \end_layout
5502
5503 \begin_layout Itemize
5504 特定の階層の新しいブリット形を指定するには,\SpecialChar LaTeX
5505 コマンド
5506 \begin_inset Flex Code
5507 status collapsed
5508
5509 \begin_layout Plain Layout
5510
5511 \family typewriter
5512
5513 \backslash
5514 renewcommand{}{}
5515 \end_layout
5516
5517 \end_inset
5518
5519 を使用します.あとで現在のブリット形に戻すことができるように,現在のブリット形を保存しておく必要もあります.ここで使っている箇条書きでは,第1階層のブリットを変
5520 更するために,以下の\SpecialChar LaTeX
5521 コードが使用されています.
5522 \begin_inset Separator latexpar
5523 \end_inset
5524
5525
5526 \end_layout
5527
5528 \begin_deeper
5529 \begin_layout LyX-Code
5530
5531 \family typewriter
5532
5533 \backslash
5534 let
5535 \backslash
5536 savelabelitemi=
5537 \backslash
5538 labelitemi
5539 \end_layout
5540
5541 \begin_layout LyX-Code
5542
5543 \family typewriter
5544
5545 \backslash
5546 renewcommand
5547 \backslash
5548 labelitemi[0]{
5549 \backslash
5550 small
5551 \backslash
5552 (
5553 \backslash
5554 sharp
5555 \backslash
5556 )}
5557 \end_layout
5558
5559 \end_deeper
5560 \begin_layout Itemize
5561 箇条書き(記号)の階層は,
5562 \begin_inset Flex Code
5563 status collapsed
5564
5565 \begin_layout Plain Layout
5566
5567 \backslash
5568 labelitem
5569 \end_layout
5570
5571 \end_inset
5572
5573 コマンドの一部にローマ数字で指定されていることに注意してください.
5574 \end_layout
5575
5576 \begin_layout Itemize
5577 \begin_inset ERT
5578 status open
5579
5580 \begin_layout Plain Layout
5581
5582 [
5583 \backslash
5584 (
5585 \backslash
5586 star
5587 \backslash
5588 )]
5589 \end_layout
5590
5591 \end_inset
5592
5593 各項目のブリットを指定するには,角括弧で囲んだブリット形を,行頭に
5594 \begin_inset Flex Code
5595 status collapsed
5596
5597 \begin_layout Plain Layout
5598 \SpecialChar TeX
5599 コード
5600 \end_layout
5601
5602 \end_inset
5603
5604 として挿入してください.たとえば,この項目の行頭には
5605 \family typewriter
5606
5607 \begin_inset Flex Code
5608 status collapsed
5609
5610 \begin_layout Plain Layout
5611
5612 \family typewriter
5613 [
5614 \backslash
5615 (
5616 \backslash
5617 star
5618 \backslash
5619 )]
5620 \end_layout
5621
5622 \end_inset
5623
5624
5625 \family default
5626 が指定されています.
5627 \end_layout
5628
5629 \begin_layout Plain Layout
5630 \begin_inset ERT
5631 status open
5632
5633 \begin_layout Plain Layout
5634
5635
5636 \backslash
5637 renewcommand
5638 \backslash
5639 labelitemi[0]{
5640 \backslash
5641 savelabelitemi}
5642 \end_layout
5643
5644 \end_inset
5645
5646
5647 \end_layout
5648
5649 \begin_layout Plain Layout
5650 文書全体で使用するブリット形が有効であるようにするために,labelitemを元の設定に戻す必要があります.そのためには,以下のようにします.
5651 \end_layout
5652
5653 \begin_layout LyX-Code
5654
5655 \family typewriter
5656
5657 \backslash
5658 renewcommand
5659 \backslash
5660 labelitemi[0]{
5661 \backslash
5662 savelabelitemi}
5663 \end_layout
5664
5665 \end_inset
5666
5667
5668 \end_layout
5669
5670 \begin_layout Chapter
5671 \SpecialChar LyX
5672 とインターネット網
5673 \end_layout
5674
5675 \begin_layout Standard
5676 \SpecialChar LyX
5677 は,これまでも長い間,HTMLを始めとするウェブフレンドリーな文書諸形式への書き出しをサポートしてきました.しかしながら,第2.0版以前では,HTMLへの書き出し
5678 は,常に外部変換子を用いることで実現されていました
5679 \begin_inset Foot
5680 status collapsed
5681
5682 \begin_layout Plain Layout
5683 \SpecialChar LyX
5684 で外部変換子を使うことについての詳細は,取扱説明書『
5685 \emph on
5686 カスタマイズ篇
5687 \emph default
5688 』の「
5689 \emph on
5690 変換子
5691 \emph default
5692 」の節をご覧ください.
5693 \end_layout
5694
5695 \end_inset
5696
5697 .これらは2つのグループに大別できます.1つは,
5698 \begin_inset Flex Code
5699 status collapsed
5700
5701 \begin_layout Plain Layout
5702 htlatex
5703 \end_layout
5704
5705 \end_inset
5706
5707
5708 \begin_inset Flex Code
5709 status collapsed
5710
5711 \begin_layout Plain Layout
5712 html2latex
5713 \end_layout
5714
5715 \end_inset
5716
5717
5718 \begin_inset Flex Code
5719 status collapsed
5720
5721 \begin_layout Plain Layout
5722 plastex
5723 \end_layout
5724
5725 \end_inset
5726
5727 のように,\SpecialChar LaTeX
5728 を中間形式として用い,その\SpecialChar LaTeX
5729 を生成するのに\SpecialChar LyX
5730 を用いるもの.2つめは,
5731 \begin_inset Flex Code
5732 status collapsed
5733
5734 \begin_layout Plain Layout
5735 e\SpecialChar LyX
5736 er
5737 \end_layout
5738
5739 \end_inset
5740
5741 のように,直接\SpecialChar LyX
5742 ファイルに働きかける変換子です.これらは,それぞれに長所・短所を有しています.
5743 \end_layout
5744
5745 \begin_layout Standard
5746 \SpecialChar LaTeX
5747 ベースの変換子は,原則として,\SpecialChar LaTeX
5748 が書きだす文書についてのすべてを知っているという長所があります.この種の変換子は,例えば,特定のコードのくだりが,\SpecialChar LyX
5749 によって生成され
5750 たのか,\SpecialChar TeX
5751 コードで書かれたのかについては気にしません.これらの変換子は,
5752 \begin_inset Flex Code
5753 status collapsed
5754
5755 \begin_layout Plain Layout
5756 aux
5757 \end_layout
5758
5759 \end_inset
5760
5761 ファイルやカウンタや参照を取り扱うことができ,Bib\SpecialChar TeX
5762 が生成する
5763 \begin_inset Flex Code
5764 status collapsed
5765
5766 \begin_layout Plain Layout
5767 bbl
5768 \end_layout
5769
5770 \end_inset
5771
5772 ファイルも利用することがよくあります.一方で,\SpecialChar LaTeX
5773 は解析の非常に難しい言語であり—\SpecialChar TeX
5774 自身だけが\SpecialChar TeX
5775 を理解することができると言われたりすることがあります—,\SpecialChar LaTeX
5776 ベースの変換子は
5777 ,非常に簡単な文法に見えるものでさえ飲み込めず,複雑なものになると全く歯が立たないこともあります.例えば,この現行を書いている時点では,取扱説明書『
5778 \emph on
5779 埋込オブジェクト篇
5780 \emph default
5781 』は,他の変換子では書き出しができるのに,
5782 \begin_inset Flex Code
5783 status collapsed
5784
5785 \begin_layout Plain Layout
5786 htlatex
5787 \end_layout
5788
5789 \end_inset
5790
5791 では行うことができません.他には,数式をどう取り扱うかという問題があります.これらの変換子の典型的なものは,数式を小さな画像に変換して,HTML文書からこれらの
5792 画像へのリンクを張ります.これらの画像は,実は\SpecialChar LaTeX
5793 によって生成されているので,正確です.しかしながら,これらはうまく伸縮できないので,実際の文書の中で表現されるよう
5794 に—フォント寸が凡そ正しくなるように—見せようとすると,大変な苦労を伴います.
5795 \end_layout
5796
5797 \begin_layout Standard
5798 Alex Fernandezの
5799 \begin_inset Flex Code
5800 status collapsed
5801
5802 \begin_layout Plain Layout
5803 e\SpecialChar LyX
5804 er
5805 \end_layout
5806
5807 \end_inset
5808
5809  (
5810 \begin_inset CommandInset href
5811 LatexCommand href
5812 name "http://elyxer.nongnu.org/"
5813 target "http://elyxer.nongnu.org/"
5814
5815 \end_inset
5816
5817 )は,これらの問題の一部を解決します.特に,これは数式を画像に変換するのではなく,HTMLとCSSを組み合わせて数式を生成するので,生成される数式は完璧な大きさ
5818 に伸縮されて表示されます.しかしながら,ちょっとだけ複雑な数式でさえ,
5819 \begin_inset Flex Code
5820 status collapsed
5821
5822 \begin_layout Plain Layout
5823 htlatex
5824 \end_layout
5825
5826 \end_inset
5827
5828 よりも質が落ちます.これはHTMLの限界を示しています
5829 \begin_inset Foot
5830 status collapsed
5831
5832 \begin_layout Plain Layout
5833 とはいえ,
5834 \begin_inset Flex Code
5835 status collapsed
5836
5837 \begin_layout Plain Layout
5838 e\SpecialChar LyX
5839 er
5840 \end_layout
5841
5842 \end_inset
5843
5844 では,数式用にjsMathとMathJaxを使用することもできます.ただし,この設定はグローバルにしか設定することができず,バックエンドで実行させるサーバへのア
5845 クセスが利用できる必要があります.
5846 \end_layout
5847
5848 \end_inset
5849
5850 .さらに重要なことは(少なくとも第1.1.1版においては),
5851 \begin_inset Flex Code
5852 status collapsed
5853
5854 \begin_layout Plain Layout
5855 e\SpecialChar LyX
5856 er
5857 \end_layout
5858
5859 \end_inset
5860
5861 は数式マクロを一部しかサポートしておらず,ユーザ定義の段落様式や文字様式をサポートしていません.これらの制約によって,\SpecialChar LyX
5862 ユーザが生成する文書の多くにとっては,
5863 \begin_inset Flex Code
5864 status collapsed
5865
5866 \begin_layout Plain Layout
5867 e\SpecialChar LyX
5868 er
5869 \end_layout
5870
5871 \end_inset
5872
5873 は不向きなものになっています.もちろん,原理的に,これらの問題を解決することもできたのですが,\SpecialChar LyX
5874 開発陣は別の方法を採ることとし,\SpecialChar LyX
5875 が\SpecialChar LaTeX
5876 やDocBook,平文を書き出す
5877 ことができるのと同様に,\SpecialChar LyX
5878 自身にXHTMLを書きだす能力を身につけさせることとしたのです.
5879 \end_layout
5880
5881 \begin_layout Standard
5882 この原稿執筆時点では,XHTML出力は開発途上であり,おそらく「実験的」機能として解されるべきでしょう
5883 \begin_inset Foot
5884 status collapsed
5885
5886 \begin_layout Plain Layout
5887 \SpecialChar LyX
5888 ソースツリーもしくは
5889 \begin_inset CommandInset href
5890 LatexCommand href
5891 name "オンラインでのアクセス"
5892 target "http://www.lyx.org/trac/browser/lyx-devel/trunk/development/HTML/HTML.notes"
5893
5894 \end_inset
5895
5896 にある
5897 \begin_inset Flex Code
5898 status collapsed
5899
5900 \begin_layout Plain Layout
5901 development/HTML.notes
5902 \end_layout
5903
5904 \end_inset
5905
5906 ファイルには,通常,XHTML出力の現状についての最新の情報が収録されています.
5907 \begin_inset CommandInset href
5908 LatexCommand href
5909 name "バグ追跡ページ"
5910 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"
5911
5912 \end_inset
5913
5914 にあるXHTML関連バグ一覧も参照のこと.
5915 \end_layout
5916
5917 \end_inset
5918
5919 .それでもこのアプローチは,他の2つの方法よりも,潜在的な利点がいくつもあるので,開発陣はこの方法を選択したのです.
5920 \end_layout
5921
5922 \begin_layout Standard
5923 これらの利点は,主に,XHTML出力ルーチンが\SpecialChar LyX
5924 の一部となっているため,\SpecialChar LyX
5925 が出力する文書について\SpecialChar LyX
5926 が関知しているところのものは,すべて知り得るというところから来ていま
5927
5928 \begin_inset Foot
5929 status collapsed
5930
5931 \begin_layout Plain Layout
5932 他には,これらのルーチンが\SpecialChar LyX
5933 内部にあるため,\SpecialChar LyX
5934 ファイル形式や既存の差込枠の文法に変更があっても,影響を受けずに済むという利点もあります.
5935 \end_layout
5936
5937 \end_inset
5938
5939 .つまり,XHTML出力ルーチンは,(文書構造に表示されるような形での)目次や,それぞれの段落様式に関連付けられたカウンタや,ユーザ定義の様式についても知ってい
5940 るのです.XHTML出力ルーチンは,国際化について\SpecialChar LyX
5941 が関知しているものも知っているので,ちょうどその時に有効になっている言語に依存して,「Chapter
5942  1」と出力されたり,「Kapitel 1」と出力されたりするのです.
5943 \end_layout
5944
5945 \begin_layout Standard
5946 汎く一般的に,出力ルーチンは,\SpecialChar LyX
5947 が文書レイアウトについて関知しているものは知っており,したがって,文書が画面上にどのように描画されるかも知っています.文書をXHT
5948 MLに出力するときには,この情報を利用します.特に,\SpecialChar LyX
5949 は,文書を画面上に描画するときに使用するレイアウト情報に対応したCSSスタイル情報を
5950 \emph on
5951 自動的に
5952 \emph default
5953 生成します.もし節見出しが,\SpecialChar LyX
5954 中でサンセリフ体かつボールド体であるとすると,(既定では)ウェブブラウザに表示した時にも,サンセリフでボールドになります.これは,節
5955 のような定義済み様式だけでなく,ユーザ定義のものも含めて,すべての様式でそうです.実際,XHTML出力ルーチンは,ユーザ定義の段落・文字様式と,\SpecialChar LyX
5956 自身の定義済み様
5957 式とを区別しません.どちらの場合も,\SpecialChar LyX
5958 が様式について関知しているところのものは,全てレイアウトファイルに含まれています.これは,脚注のような定義済み差込枠や,各種
5959 ユーザ設定差込枠でもそうです.
5960 \end_layout
5961
5962 \begin_layout Standard
5963 結果として,XHTML出力は,レイアウトファイルやモジュールを通して,\SpecialChar LaTeX
5964 出力と全く同じように,ユーザが設定したり拡張したりすることができるのです.詳細については,
5965 取扱説明書『
5966 \emph on
5967 カスタマイズ篇
5968 \emph default
5969 』の第5章をごらんください.
5970 \end_layout
5971
5972 \begin_layout Standard
5973 本章の残りでは,XHTML出力についての,さらに詳細な情報について取り扱い,その制約や,制約の回避の仕方を取り扱います.
5974 \end_layout
5975
5976 \begin_layout Section
5977 XHTMLにおける数式出力
5978 \end_layout
5979
5980 \begin_layout Standard
5981 \SpecialChar LyX
5982 では,数式描画に4つの方法を選択できます.以下に示すように,それぞれに利点と欠点があります.
5983 \end_layout
5984
5985 \begin_layout Itemize
5986 MathML
5987 \begin_inset Newline newline
5988 \end_inset
5989
5990 MathMLは,ウェブ上で数学を用いるために,特にデザインされたXMLの一方言であり,これをサポートするブラウザ上では,通常,特に美しい表現が得られます.欠点は
5991 ,すべてのブラウザがMathMLをサポートしているわけではないという事と,FirefoxのようなGeckoベースのブラウザでも,サポートが完璧ではないという事で
5992 す.
5993 \begin_inset Newline newline
5994 \end_inset
5995
5996 例えば,数式が
5997 \begin_inset Flex Code
5998 status collapsed
5999
6000 \begin_layout Plain Layout
6001 xymatrix
6002 \end_layout
6003
6004 \end_inset
6005
6006 パッケージを使用していたり,\SpecialChar TeX
6007 コードを使用しているなどで,もし\SpecialChar LyX
6008 が数式をMathMLとして描画できないとすると,\SpecialChar LyX
6009 は数式を代わりに画像として出力します.
6010  
6011 \end_layout
6012
6013 \begin_layout Itemize
6014 HTML
6015 \begin_inset Newline newline
6016 \end_inset
6017
6018 前述のとおり,
6019 \begin_inset Flex Code
6020 status collapsed
6021
6022 \begin_layout Plain Layout
6023 elyxer
6024 \end_layout
6025
6026 \end_inset
6027
6028 は,数式をCSSで装飾したHTMLとして出力します
6029 \begin_inset Foot
6030 status collapsed
6031
6032 \begin_layout Plain Layout
6033 \SpecialChar LyX
6034 は,
6035 \begin_inset Flex Code
6036 status collapsed
6037
6038 \begin_layout Plain Layout
6039 elyxer
6040 \end_layout
6041
6042 \end_inset
6043
6044 からのHTML出力のために,CSSの一部を拝借しています.
6045 \end_layout
6046
6047 \end_inset
6048
6049 .簡単な数式では,これは非常にうまく行きますが,少し複雑な数式になると,
6050 \begin_inset Flex Code
6051 status collapsed
6052
6053 \begin_layout Plain Layout
6054 elyxer
6055 \end_layout
6056
6057 \end_inset
6058
6059 は歯が立たなくなります.それでも,この方法は非常に広くサポートされているという利点があり,かなり簡単な数式を少しだけ含んでいるような文書に適しているでしょう.
6060 \begin_inset Newline newline
6061 \end_inset
6062
6063 例えば,数式が
6064 \begin_inset Flex Code
6065 status collapsed
6066
6067 \begin_layout Plain Layout
6068 xymatrix
6069 \end_layout
6070
6071 \end_inset
6072
6073 パッケージを使用していたり,\SpecialChar TeX
6074 コードを使用しているなどで,もし\SpecialChar LyX
6075 が数式をHTMLとして描画できないとすると,\SpecialChar LyX
6076 は数式を代わりに画像として出力します.
6077  
6078 \end_layout
6079
6080 \begin_layout Itemize
6081 画像
6082 \begin_inset Newline newline
6083 \end_inset
6084
6085
6086 \begin_inset Flex Code
6087 status collapsed
6088
6089 \begin_layout Plain Layout
6090 htlatex
6091 \end_layout
6092
6093 \end_inset
6094
6095 のように,\SpecialChar LyX
6096 は数式を画像としても出力できます.この画像は,実は,自動プレビューで使用されているものと全く同じです
6097 \begin_inset Foot
6098 status collapsed
6099
6100 \begin_layout Plain Layout
6101 ただし,画像を出力に使うために,自動プレビューを入にしておく必要は
6102 \emph on
6103 ありません
6104 \emph default
6105
6106 \end_layout
6107
6108 \end_inset
6109
6110 .この方法の利点は,画像が他ならぬ\SpecialChar LaTeX
6111 によって生成されているので,非常に正確であることです.欠点は,前述したとおり,画像がビットマップなので,伸縮が全くうまく行かな
6112 かったり,コピーが出来なかったりといったことがあります(執筆時点においては,数式の付番にも問題があります.
6113 \begin_inset CommandInset href
6114 LatexCommand href
6115 name "バグ 6894"
6116 target "http://www.lyx.org/trac/ticket/6894"
6117
6118 \end_inset
6119
6120 を参照のこと.).
6121 \begin_inset Newline newline
6122 \end_inset
6123
6124 画像の寸法は,
6125 \begin_inset Flex MenuItem
6126 status collapsed
6127
6128 \begin_layout Plain Layout
6129 文書\SpecialChar menuseparator
6130 設定\SpecialChar menuseparator
6131 出力
6132 \end_layout
6133
6134 \end_inset
6135
6136 の「数式画像の伸縮」パラメータを変更することで制御できます
6137 \begin_inset Foot
6138 status collapsed
6139
6140 \begin_layout Plain Layout
6141 必要な方のために述べておくと,これは,画像の解像度をdpi (1インチあたりドット数)で制御するためのもので,75dpiを基準としています.
6142 \end_layout
6143
6144 \end_inset
6145
6146
6147 \begin_inset Newline newline
6148 \end_inset
6149
6150 もし\SpecialChar LyX
6151 が,何らかの理由によって数式の画像を生成できない(例えば,必要な\SpecialChar LaTeX
6152 パッケージが導入済みでないなど)ときは,回避策として,生の\SpecialChar LaTeX
6153 を出力します.
6154 \end_layout
6155
6156 \begin_layout Itemize
6157 \SpecialChar LaTeX
6158
6159 \begin_inset Newline newline
6160 \end_inset
6161
6162 最後に,\SpecialChar LyX
6163 は,数式を\SpecialChar LaTeX
6164 としても出力することができます.この方法は,最終手段としての出力方法である一方で,HTML文書に埋め込まれた\SpecialChar LaTeX
6165 を描画するのにJavaScript
6166 を使用する,
6167 \begin_inset CommandInset href
6168 LatexCommand href
6169 name "jsMath"
6170 target "http://www.math.union.edu/~dpvc/jsMath/"
6171
6172 \end_inset
6173
6174 のようなツールとともに使用することもできます.\SpecialChar LyX
6175 は,jsMathで必要とされているのと同じように,\SpecialChar LaTeX
6176 部分を,
6177 \begin_inset Flex Code
6178 status collapsed
6179
6180 \begin_layout Plain Layout
6181 span
6182 \end_layout
6183
6184 \end_inset
6185
6186 (行内数式用)または
6187 \begin_inset Flex Code
6188 status collapsed
6189
6190 \begin_layout Plain Layout
6191 div
6192 \end_layout
6193
6194 \end_inset
6195
6196 (別行立て数式用)に
6197 \begin_inset Flex Code
6198 status collapsed
6199
6200 \begin_layout Plain Layout
6201 class='math'
6202 \end_layout
6203
6204 \end_inset
6205
6206 を指定したもので,包んで出力します.
6207 \end_layout
6208
6209 \begin_layout Standard
6210 これらの出力方法のいずれかを
6211 \begin_inset Flex MenuItem
6212 status collapsed
6213
6214 \begin_layout Plain Layout
6215 文書\SpecialChar menuseparator
6216 設定\SpecialChar menuseparator
6217 出力
6218 \end_layout
6219
6220 \end_inset
6221
6222 で選択しなくてはなりません.既定では,\SpecialChar LyX
6223 はMathMLで出力を行います.これは,文書全体に適用される設定となります.
6224 \end_layout
6225
6226 \begin_layout Standard
6227 最後に,\SpecialChar LyX
6228 では,例えば,MathMLではあまりうまく出力されないような差込枠に対して,別の出力方法を選択できる選択肢が用意されています
6229 \begin_inset Foot
6230 status collapsed
6231
6232 \begin_layout Plain Layout
6233 その他にも,\SpecialChar LyX
6234 は,差込枠に\SpecialChar TeX
6235 コードが含まれていると画像出力に回帰するので,数式中に
6236 \begin_inset Formula $a=b\relax$
6237 \end_inset
6238
6239 のような無害な\SpecialChar TeX
6240 コードを挿入することによって,画像出力を強制することができます.
6241 \end_layout
6242
6243 \end_inset
6244
6245
6246 \end_layout
6247
6248 \begin_layout Section
6249 書誌情報と引用
6250 \end_layout
6251
6252 \begin_layout Standard
6253 XHTML出力は,書誌情報と引用を完全にサポートしています.
6254 \end_layout
6255
6256 \begin_layout Standard
6257 引用ラベルは,\SpecialChar LyX
6258 画面上のラベルを生成するのと同じ機構で生成されているので,出力中のラベルは,\SpecialChar LyX
6259 中の外見と同質またはそれよりも上質な仕上がりとなっています.連番引用を
6260 使用している場合には,\SpecialChar LyX
6261 は,画面上で表示されるような各カッコに囲まれた引用鍵を単純に表示するのではなく,[1]や[17]などの連番ラベルを出力します.著者-出版年
6262 形式の引用を使用している場合で,同じ著者-出版年の組み合わせが複数ある場合,\SpecialChar LyX
6263 は,Bib\SpecialChar TeX
6264 が行うように出版年に小文字を付します.ラベルは,書誌情報項目とともに印字さ
6265 れます.現在のところ,角括弧を丸括弧に変更するなど,ラベルの外見を変更する手段はありませんのでご注意ください.
6266 \end_layout
6267
6268 \begin_layout Standard
6269 書誌情報出力は,引用ダイアログで文献情報表示を取り扱うのと同じ機構で取り扱われているので,XHTML出力は,引用ダイアログで特定の文献項目を表示させた時のものに
6270 非常によく似ています.整形の仕方は,レイアウトファイルや望ましくはモジュールでカスタマイズすることができます.詳細については,取扱説明書『カスタマイズ篇』をご覧
6271 ください.
6272 \end_layout
6273
6274 \begin_layout Standard
6275 現在のところ,主だった瑕疵は,相互参照された情報が,関連した項目の全てに印字されてしまうことです.つまり,以下のような表示が為されます.
6276 \end_layout
6277
6278 \begin_layout Quote
6279 Jason Stanley, 
6280 \begin_inset Quotes eld
6281 \end_inset
6282
6283 Context and Logical Form
6284 \begin_inset Quotes erd
6285 \end_inset
6286
6287 , in 
6288 \emph on
6289 Language in Context: Selected Essays
6290 \emph default
6291  (Oxford: Oxford University Press, 2007), pp.
6292  30–68.
6293 \end_layout
6294
6295 \begin_layout Quote
6296 Jason Stanley, 
6297 \begin_inset Quotes eld
6298 \end_inset
6299
6300 Semantics in Context
6301 \begin_inset Quotes erd
6302 \end_inset
6303
6304 , in 
6305 \emph on
6306 Language in Context: Selected Essays
6307 \emph default
6308  (Oxford: Oxford University Press, 2007), pp.
6309  201–30.
6310 \end_layout
6311
6312 \begin_layout Standard
6313 これは,遠くないうちに修正されるでしょう.
6314 \end_layout
6315
6316 \begin_layout Standard
6317 現在のところ,節ごとの書誌情報出力はサポートされていません.複数の書誌情報がある場合には,\SpecialChar LyX
6318 は同じ情報を繰り返し出力してしまいます.
6319 \end_layout
6320
6321 \begin_layout Section
6322 索引
6323 \end_layout
6324
6325 \begin_layout Standard
6326 \SpecialChar LyX
6327 は,索引をXHTMLとして書きだすことができますが,現在のところ,若干の制約があります.
6328 \end_layout
6329
6330 \begin_layout Standard
6331 索引の書き出しは,
6332 \emph on
6333 ユーザーの手引き
6334 \emph default
6335 の索引の節に書かれているような手の込んだ方法を使おうとしないほうが,信頼性が保てます
6336 \begin_inset Foot
6337 status collapsed
6338
6339 \begin_layout Plain Layout
6340 ここでの主な問題は,これらの操作の際に,\SpecialChar LyX
6341 自身は何もしていないという点です.つまり,生の\SpecialChar LaTeX
6342 で入力しなくてはならないようなものをそのまま入力しているのです.
6343 \end_layout
6344
6345 \end_inset
6346
6347 .当該節の小節見出しに沿って,それらがどう処理されるかを説明しましょう.
6348 \end_layout
6349
6350 \begin_layout Itemize
6351 索引項目のグループ化(下層項目): \SpecialChar LyX
6352 はこれらをサポートしようと努めていますが,項目は「 ! 」(感嘆符の周りに空白)で分離しなくてはなりません.これは,そうしな
6353 いと数式などで使われているエスケープされた感嘆符をチェックするのが非常に難しくなるからです.
6354 \end_layout
6355
6356 \begin_layout Itemize
6357 ページ範囲: ページ範囲については,XHTMLでは意味がないので,全くサポートされません.その代わりに,引用項目のはじめと終わりの頁それぞれに,2つの索引項目が
6358 得られるだけです.
6359 \end_layout
6360
6361 \begin_layout Itemize
6362 相互参照: 相互参照のサポートはありません.\SpecialChar LyX
6363 が「|see\SpecialChar ldots
6364 」という下だりを持つ項目を検出すると,その部分はただ無視されて,残りの部分が通常の索引項目だとみなされま
6365 す.
6366 \end_layout
6367
6368 \begin_layout Itemize
6369 索引項目の整序: \SpecialChar LyX
6370 は整序順の変更をサポートします.\SpecialChar LyX
6371 は,最初に検出した「@」の前の部分を取り出して,それを整序に用い,最初の「@」の後の部分を実際の項目として取り
6372 出します.現在のところ,\SpecialChar LyX
6373 はエスケープされた「@」を取り扱わないので,電子メールアドレスを索引に使わないでください.
6374 \end_layout
6375
6376 \begin_layout Itemize
6377 索引項目のレイアウト: 項目は,テキスト様式ダイアログを使うなり,\SpecialChar LyX
6378 内で使用可能な方法を用いることで,索引項目を成形することができます.「項目|textbf」のよ
6379 うな文法はサポートされません.\SpecialChar LyX
6380 は,項目内にパイプ記号「|」を検出すると,パイプ記号とその後に続くものすべてを削除してしまいます.
6381 \end_layout
6382
6383 \begin_layout Itemize
6384 複数の索引: 複数の索引はサポートされていません.すべての項目は,ひとつの大きな索引として印字されます.索引が何度も印字されることを防ぐため,中心となる索引だけ
6385 を印字しますので,その索引は必ず置くようにしてください.
6386 \end_layout
6387
6388 \begin_layout Section
6389 記号一覧および用語集
6390 \end_layout
6391
6392 \begin_layout Standard
6393 現在のところ,用語集のサポートはありません.この機能の追加は,比較的容易だと思われますので,あなたの貢献をお待ちしております.
6394 \end_layout
6395
6396 \begin_layout Chapter
6397 \SpecialChar LyX
6398 サーバー
6399 \begin_inset CommandInset label
6400 LatexCommand label
6401 name "chap:LyXサーバー"
6402
6403 \end_inset
6404
6405
6406 \end_layout
6407
6408 \begin_layout Section
6409 はじめに
6410 \end_layout
6411
6412 \begin_layout Standard
6413 「\SpecialChar LyX
6414 サーバー」を使用すると,他のプログラムが,\SpecialChar LyX
6415 と通信したり,\SpecialChar LyX
6416 コマンドを実行させたり,\SpecialChar LyX
6417 の内部状態に関する情報を取得したりすることができるようになります.これは熟練し
6418 たユーザー向けの機能ですが,便利なはずです.たとえば,\SpecialChar LyX
6419 サーバーに書き込むことによって,JabRefのような書誌情報管理ソフトが,LyXに文献引用を「押し込む」こ
6420 とが可能となります.
6421 \end_layout
6422
6423 \begin_layout Section
6424 \SpecialChar LyX
6425 サーバーを開始するには
6426 \end_layout
6427
6428 \begin_layout Standard
6429 \SpecialChar LyX
6430 サーバーは,名前をつけたパイプの対を利用することで機能します.パイプは,通常
6431 \begin_inset Flex Code
6432 status collapsed
6433
6434 \begin_layout Plain Layout
6435 UserDir
6436 \end_layout
6437
6438 \end_inset
6439
6440 の下に作られ(Windowsを除く.Windowsでは,名前を付けた
6441 \emph on
6442 ローカルの
6443 \emph default
6444 パイプは
6445 \begin_inset Flex Code
6446 status collapsed
6447
6448 \begin_layout Plain Layout
6449
6450 \backslash
6451
6452 \backslash
6453 .
6454 \backslash
6455 pipe
6456 \end_layout
6457
6458 \end_inset
6459
6460 に特別なオブジェクトとして置かれます),「
6461 \begin_inset Flex Code
6462 status collapsed
6463
6464 \begin_layout Plain Layout
6465 .lyxpipe.in
6466 \end_layout
6467
6468 \end_inset
6469
6470 」および「
6471 \begin_inset Flex Code
6472 status collapsed
6473
6474 \begin_layout Plain Layout
6475 .lyxpipe.out
6476 \end_layout
6477
6478 \end_inset
6479
6480 」という名前がついています.外部プログラムは,
6481 \begin_inset Flex Code
6482 status collapsed
6483
6484 \begin_layout Plain Layout
6485 .lyxpipe.in
6486 \end_layout
6487
6488 \end_inset
6489
6490 に書き込みを行い,戻りデータを
6491 \begin_inset Flex Code
6492 status collapsed
6493
6494 \begin_layout Plain Layout
6495 .lyxpipe.out
6496 \end_layout
6497
6498 \end_inset
6499
6500 から読み出します.パイプ名の語幹は,
6501 \begin_inset Flex MenuItem
6502 status collapsed
6503
6504 \begin_layout Plain Layout
6505 ツール\SpecialChar menuseparator
6506 設定
6507 \end_layout
6508
6509 \end_inset
6510
6511 から,たとえば「
6512 \begin_inset Flex Code
6513 status collapsed
6514
6515 \begin_layout Plain Layout
6516 /home/myhome/lyxpipe
6517 \end_layout
6518
6519 \end_inset
6520
6521 」あるいはWindowsでは「
6522 \begin_inset Flex Code
6523 status collapsed
6524
6525 \begin_layout Plain Layout
6526
6527 \backslash
6528
6529 \backslash
6530 .
6531 \backslash
6532 pipe
6533 \backslash
6534 lyxpipe
6535 \end_layout
6536
6537 \end_inset
6538
6539 」などに設定することができます(ここで,lyxpipe以外の任意のファイルパス,例えば
6540 \begin_inset Flex Code
6541 status collapsed
6542
6543 \begin_layout Plain Layout
6544 "
6545 \backslash
6546
6547 \backslash
6548 .
6549 \backslash
6550 pipe
6551 \backslash
6552 my
6553 \backslash
6554 lyx
6555 \backslash
6556 pipe"
6557 \end_layout
6558
6559 \end_inset
6560
6561 なども使用できます).サーバーを開始するためには,これを
6562 \emph on
6563 手動で設定しなくてはなりません
6564 \emph default
6565
6566 \end_layout
6567
6568 \begin_layout Standard
6569 \SpecialChar LyX
6570 は,パイプを生成するに際して,「
6571 \begin_inset Flex Code
6572 status collapsed
6573
6574 \begin_layout Plain Layout
6575 .in
6576 \end_layout
6577
6578 \end_inset
6579
6580 」および「
6581 \begin_inset Flex Code
6582 status collapsed
6583
6584 \begin_layout Plain Layout
6585 .out
6586 \end_layout
6587
6588 \end_inset
6589
6590 」を付け加えます.パイプがすでに存在していれば,\SpecialChar LyX
6591 は他の\SpecialChar LyX
6592 プロセスがすでに実行中であると判断して,サーバーを開始しません.POSIX(Unix型)システムでは,なん
6593 らかの理由で,\SpecialChar LyX
6594 が終了する際に使用されていない「古い」パイプが削除されずに残ったりすると,\SpecialChar LyX
6595 はこれを削除しようとします.何らかの理由でこれが失敗した場合,手動でパイ
6596 プを削除したのちに,\SpecialChar LyX
6597 を再起動する必要があります.Windowsでは,プログラムが終了したりクラッシュしたりすると,OSがパイプを削除するので,「古い」パイプが残
6598 ることはありません.
6599 \end_layout
6600
6601 \begin_layout Standard
6602 サーバーを使用する\SpecialChar LyX
6603 プロセスを複数起動するには,それぞれのプロセスに,別のユーザーディレクトリを使用させたり,別々の
6604 \begin_inset Flex Code
6605 status collapsed
6606
6607 \begin_layout Plain Layout
6608 preferences
6609 \end_layout
6610
6611 \end_inset
6612
6613 ファイルを使用させるなど,別々の設定を使用する必要があります.
6614 \end_layout
6615
6616 \begin_layout Standard
6617 クライアントプログラムを開発しようとされているのであれば,\SpecialChar LyX
6618 サーバーからのデバッグ情報を有効にすると便利かもしれません.そのためには,Lyxを
6619 \begin_inset Flex Code
6620 status collapsed
6621
6622 \begin_layout Plain Layout
6623 lyx -dbg lyxserver
6624 \end_layout
6625
6626 \end_inset
6627
6628 として起動してください.
6629 \end_layout
6630
6631 \begin_layout Standard
6632 C++言語で書かれた完全なサンプルクライアントが,ソース頒布版の
6633 \begin_inset Newline newline
6634 \end_inset
6635
6636
6637 \begin_inset Flex Code
6638 status collapsed
6639
6640 \begin_layout Plain Layout
6641 development/lyxserver/server_monitor.cpp
6642 \end_layout
6643
6644 \end_inset
6645
6646 にあります.
6647 \end_layout
6648
6649 \begin_layout Standard
6650 もう一つの便利なツールとして,
6651 \begin_inset Flex Code
6652 status collapsed
6653
6654 \begin_layout Plain Layout
6655 src/client/lyxclient
6656 \end_layout
6657
6658 \end_inset
6659
6660 にあるコマンドラインベースのクライアントがあります.
6661 \end_layout
6662
6663 \begin_layout Section
6664 通常の通信
6665 \end_layout
6666
6667 \begin_layout Standard
6668 \SpecialChar LyX
6669 コールを発行するには,クライアントはASCIIテキスト行を入力パイプに書き込みまなくてはなりません.この行は,以下の書式を持ちます.
6670 \end_layout
6671
6672 \begin_layout Quote
6673 LYXCMD:
6674 \emph on
6675 クライアント名
6676 \emph default
6677 :
6678 \emph on
6679 関数
6680 \emph default
6681 :
6682 \emph on
6683 引数
6684 \end_layout
6685
6686 \begin_layout Description
6687 クライアント名 は,クライアントが自由に選べる名前です.これが用いられるのは,クライアントが他の要求クライアントから結果を見分けることができるように,\SpecialChar LyX
6688 が返答をす
6689 る際,クライアント名をエコーするときだけです.
6690 \end_layout
6691
6692 \begin_layout Description
6693 関数 は,\SpecialChar LyX
6694 に実行させたい関数です.これは,ミニバッファで使用するコマンドと同じです.
6695 \end_layout
6696
6697 \begin_layout Description
6698 引数 は,一部の関数のみに効力を持つオプションの引数です(たとえば,「自己挿入」LFUNは,現在のカーソル位置に引数を文章として挿入します).
6699 \end_layout
6700
6701 \begin_layout Standard
6702 \SpecialChar LyX
6703 からの返答は,出力パイプに送り出され,
6704 \end_layout
6705
6706 \begin_layout Quote
6707 INFO:
6708 \emph on
6709 クライアント名
6710 \emph default
6711 :
6712 \emph on
6713 関数
6714 \emph default
6715 :
6716 \emph on
6717 データ
6718 \end_layout
6719
6720 \begin_layout Standard
6721 の書式をしています.ここで
6722 \emph on
6723 クライアント名
6724 \emph default
6725
6726 \emph on
6727 関数
6728 \emph default
6729 は,コマンド要求からそのままエコーされますが,
6730 \emph on
6731 データ
6732 \emph default
6733 はコマンド実行の結果に依存した,多少なりとも有用な情報です.「font-state」のような一部のコマンドは,\SpecialChar LyX
6734 の内部状態に関する情報を返しますが,空のデータ応答
6735 を返すものもあります.空のデータ返答は,コマンド実行が無事終わったことを意味します.
6736 \end_layout
6737
6738 \begin_layout Standard
6739 エラーが発生した場合の\SpecialChar LyX
6740 の返答は
6741 \end_layout
6742
6743 \begin_layout Quote
6744 ERROR:
6745 \emph on
6746 クライアント名
6747 \emph default
6748 :
6749 \emph on
6750 関数
6751 \emph default
6752 :
6753 \emph on
6754 エラーメッセージ
6755 \end_layout
6756
6757 \begin_layout Standard
6758 の書式をしており,
6759 \emph on
6760 エラーメッセージ
6761 \emph default
6762 には,なぜコマンドが失敗したかの説明が入っているはずです.
6763 \end_layout
6764
6765 \begin_layout Standard
6766 (例)
6767 \end_layout
6768
6769 \begin_layout LyX-Code
6770 echo "LYXCMD:test:beginning-of-buffer:" >~/.lyxpipe.in
6771 \begin_inset Newline newline
6772 \end_inset
6773
6774 echo "LYXCMD:test:get-xy:" >~/.lyxpipe.in
6775 \begin_inset Newline newline
6776 \end_inset
6777
6778 read a <~/.lyxpipe.out
6779 \begin_inset Newline newline
6780 \end_inset
6781
6782 echo $a
6783 \end_layout
6784
6785 \begin_layout Section
6786 通知
6787 \end_layout
6788
6789 \begin_layout Standard
6790 \SpecialChar LyX
6791 は,発生しているイベントを,非同期的にクライアントに通知することができます.いまのところ,ユーザーがある
6792 \begin_inset Flex Ruby
6793 status collapsed
6794
6795 \begin_layout Plain Layout
6796
6797 \begin_inset Argument post:1
6798 status collapsed
6799
6800 \begin_layout Plain Layout
6801 キー
6802 \end_layout
6803
6804 \end_inset
6805
6806
6807 \end_layout
6808
6809 \end_inset
6810
6811 列を関数「notify」に割り当てているときのみ,\SpecialChar LyX
6812 はこの通知を行います.\SpecialChar LyX
6813 が送る文字列の書式は
6814 \end_layout
6815
6816 \begin_layout Quote
6817 \begin_inset Flex Code
6818 status collapsed
6819
6820 \begin_layout Plain Layout
6821 NOTIFY:
6822 \end_layout
6823
6824 \end_inset
6825
6826
6827 \emph on
6828 鍵列
6829 \end_layout
6830
6831 \begin_layout Standard
6832 となっていて,
6833 \emph on
6834 鍵列
6835 \emph default
6836 は,ユーザーが実際に打鍵した鍵列の印字表現になります.
6837 \end_layout
6838
6839 \begin_layout Standard
6840 この機構は,\SpecialChar LyX
6841 のコマンド群を拡張してマクロを実装するのに使用することができます.なんらかの鍵列を「notify」に割り当ててください.それから出力パイプで待機する
6842 クライアントを起動し,鍵列に応じたコマンドを読み込み,一つないし複数の\SpecialChar LyX
6843 コマンドを発行する\SpecialChar LyX
6844 要求と\SpecialChar LyX
6845 コールを使用する関数を開始するのです.
6846 \end_layout
6847
6848 \begin_layout Section
6849 単純な\SpecialChar LyX
6850 サーバープロトコル
6851 \end_layout
6852
6853 \begin_layout Standard
6854 \SpecialChar LyX
6855 は,セッション管理に使用することができる単純なプロトコルを実装しています.メッセージは,すべて
6856 \end_layout
6857
6858 \begin_layout Quote
6859 LYXSRV:
6860 \emph on
6861 クライアント名
6862 \emph default
6863 :
6864 \emph on
6865 プロトコルメッセージ
6866 \end_layout
6867
6868 \begin_layout Standard
6869 の書式をしており,
6870 \emph on
6871 プロトコルメッセージ
6872 \emph default
6873 は「hello」ないし「bye」です.クライアントから「hello」を受け取ると,\SpecialChar LyX
6874 はメッセージを聴いていることをクライアントに伝えるために返答をし,\SpecialChar LyX
6875 が終了するこ
6876 とをクライアントに伝えるのには,\SpecialChar LyX
6877 が「bye」を送信します.
6878 \end_layout
6879
6880 \begin_layout Section
6881 DVIとPDFの遡及検索
6882 \end_layout
6883
6884 \begin_layout Standard
6885 DVI/PDFビューア
6886 \begin_inset Foot
6887 status collapsed
6888
6889 \begin_layout Plain Layout
6890 PDFの遡及検索機能を提供しているビューアには,KDE/Linux上のOkularと
6891 \lang english
6892 Qpdfview on Unix
6893 \lang japanese
6894 とMac OS X上のSkim,Windows上のSumatraPDFがあります.
6895 \end_layout
6896
6897 \end_inset
6898
6899 には,遡及検索(reverse searchないしinverse searchと呼ばれます)機能を提供しているものがあります.これを使えば,DVI/PDF出力の
6900 特定の場所をクリックすることによって,\SpecialChar LyX
6901 の文書中で対応する行にカーソルを移動させることができます.これを実現するためには,ビューアは\SpecialChar LyX
6902 と情報交換を行う必要があります
6903 .これは,命名パイプ(
6904 \emph on
6905 lyxpipe
6906 \emph default
6907 )を使用するか,\SpecialChar LyX
6908 が作業ディレクトリに生成するUNIXドメインソケット(
6909 \emph on
6910 lyxsocket
6911 \emph default
6912 )を使用する(これは
6913 \begin_inset Flex Code
6914 status collapsed
6915
6916 \begin_layout Plain Layout
6917 lyxclient
6918 \end_layout
6919
6920 \end_inset
6921
6922 プログラムが\SpecialChar LyX
6923 と通信するのに使用している方法です)ことで,\SpecialChar LyX
6924 サーバを経由して実現することができます.場合によっては,ビューアと\SpecialChar LyX
6925 を橋渡しする補助スクリプトを必要とする
6926 ことがあるかもしれませんが,それ以外は,ビューアは\SpecialChar LyX
6927 と直接通信することができます.これは,選んだビューアと基本ソフトに依存します.また,必要とされるビューアの設定
6928 法と遡及検索が実際に行われる方法とにも依存します.したがって,下記では個々のビューア毎の遡及検索の設定の仕方を説明することとします.その前に,DVI/PDF出力
6929 で遡及検索を有効にするためには,一般に何が必要とされるかを説明します.
6930 \end_layout
6931
6932 \begin_layout Subsection
6933 \begin_inset CommandInset label
6934 LatexCommand label
6935 name "subsec:遡及検索"
6936
6937 \end_inset
6938
6939 自動有効化
6940 \end_layout
6941
6942 \begin_layout Standard
6943 \begin_inset Flex MenuItem
6944 status collapsed
6945
6946 \begin_layout Plain Layout
6947 文書\SpecialChar menuseparator
6948 設定\SpecialChar menuseparator
6949 出力
6950 \end_layout
6951
6952 \end_inset
6953
6954 メニューで
6955 \begin_inset Flex MenuItem
6956 status collapsed
6957
6958 \begin_layout Plain Layout
6959 出力と同期
6960 \end_layout
6961
6962 \end_inset
6963
6964 オプションを有効にすれば,ほとんどの場合,\SpecialChar LyX
6965 がすべてをうまくこなしてくれます.その場合,\SpecialChar LyX
6966 は,自動的に,必要なSync\SpecialChar TeX
6967 マクロ(PDFの場合)や,srcltxパッケー
6968 ジ(DVIの場合)を挿入してくれます.このオプションは,
6969 \begin_inset Flex MenuItem
6970 status collapsed
6971
6972 \begin_layout Plain Layout
6973 表示/更新
6974 \end_layout
6975
6976 \end_inset
6977
6978 ツールバーからも容易にアクセスすることができます.
6979 \end_layout
6980
6981 \begin_layout Standard
6982 もし,これとは別の設定が必要な場合には,
6983 \begin_inset Flex MenuItem
6984 status collapsed
6985
6986 \begin_layout Plain Layout
6987 文書\SpecialChar menuseparator
6988 設定\SpecialChar menuseparator
6989 出力\SpecialChar menuseparator
6990 出力と同期
6991 \end_layout
6992
6993 \end_inset
6994
6995 の直下にあるドロップダウンボックスから,自製マクロを選択ないし入力することができます.
6996 \end_layout
6997
6998 \begin_layout Standard
6999 方式として
7000 \begin_inset Flex Code
7001 status collapsed
7002
7003 \begin_layout Plain Layout
7004
7005 \backslash
7006 synctex=1
7007 \end_layout
7008
7009 \end_inset
7010
7011 を用いると,gzip圧縮が有効となることに注意してください.使用しているビューアがgzip圧縮をサポートしていない場合には,代わりに
7012 \begin_inset Flex Code
7013 status collapsed
7014
7015 \begin_layout Plain Layout
7016
7017 \backslash
7018 synctex=-1
7019 \end_layout
7020
7021 \end_inset
7022
7023 を指定してください.
7024 \end_layout
7025
7026 \begin_layout Standard
7027 また,
7028 \begin_inset Flex Code
7029 status collapsed
7030
7031 \begin_layout Plain Layout
7032 srcltx
7033 \end_layout
7034
7035 \end_inset
7036
7037 パッケージや
7038 \begin_inset Flex Code
7039 status collapsed
7040
7041 \begin_layout Plain Layout
7042 src-specials
7043 \end_layout
7044
7045 \end_inset
7046
7047 を取り込むと,組版上,不具合が生じることがあるのでご注意ください.したがって,
7048 \begin_inset Flex Code
7049 status collapsed
7050
7051 \begin_layout Plain Layout
7052 srcltx
7053 \end_layout
7054
7055 \end_inset
7056
7057 パッケージや
7058 \begin_inset Flex Code
7059 status collapsed
7060
7061 \begin_layout Plain Layout
7062 src-specials
7063 \end_layout
7064
7065 \end_inset
7066
7067 を使用している場合には,最終版を組版する際には,出力同期を無効にするべきです.
7068 \end_layout
7069
7070 \begin_layout Standard
7071 自動設定でカバーされている範囲よりも,さらに特殊なものが必要な場合には,出力同期を手動で設定する仕方を述べた次節をお読みください.自動設定で事足りる場合には,自
7072 動設定・手動設定ともに必要となるビューア上の設定を述べた,第
7073 \begin_inset CommandInset ref
7074 LatexCommand ref
7075 reference "subsec:特定のビューアを設定して使うには"
7076
7077 \end_inset
7078
7079 節に進むことができます.
7080 \end_layout
7081
7082 \begin_layout Subsection
7083 手動有効化
7084 \end_layout
7085
7086 \begin_layout Standard
7087 \SpecialChar LaTeX
7088 は,遡及検索のために複数の方法を提供しています.ある方法は
7089 \begin_inset Flex Code
7090 status collapsed
7091
7092 \begin_layout Plain Layout
7093 latex/pdflatex
7094 \end_layout
7095
7096 \end_inset
7097
7098 プログラムに組み込まれており,他の方法は外部パッケージとして提供されています.どちらを選択するかは,お使いの\SpecialChar LaTeX
7099 頒布版が既に特定の方法を提供しているか(組み込みによ
7100 る方法は比較的新しいものです)と,お使いのビューアがそれに対応しているかに依存します.使用可能な方法を以下に述べます.
7101 \end_layout
7102
7103 \begin_layout Subsubsection*
7104 src-special経由のDVI組み込み検索(DVIのみ)
7105 \end_layout
7106
7107 \begin_layout Standard
7108 この方法は,DVIファイルに遡及検索に必要な情報を追加するものです.これは,かなり前の\SpecialChar LaTeX
7109 から利用可能となっており(比較的最近の\SpecialChar LaTeX
7110 頒布版はすべて対応しています),安定
7111 して動作します.これを有効にするには,
7112 \begin_inset Flex MenuItem
7113 status collapsed
7114
7115 \begin_layout Plain Layout
7116 設定\SpecialChar menuseparator
7117 ファイル処理\SpecialChar menuseparator
7118 変換子
7119 \end_layout
7120
7121 \end_inset
7122
7123
7124 \begin_inset Flex MenuItem
7125 status collapsed
7126
7127 \begin_layout Plain Layout
7128 LaTeX (plain)->DVI
7129 \end_layout
7130
7131 \end_inset
7132
7133 ないし
7134 \begin_inset Flex MenuItem
7135 status collapsed
7136
7137 \begin_layout Plain Layout
7138 LaTeX (plain)->DraftDVI
7139 \end_layout
7140
7141 \end_inset
7142
7143 変換子を
7144 \begin_inset Flex Code
7145 status collapsed
7146
7147 \begin_layout Plain Layout
7148 latex -src-specials $$i
7149 \end_layout
7150
7151 \end_inset
7152
7153 に変更します.もしこれが動作しないときは,お使いの\SpecialChar LaTeX
7154 エンジンが違うオプションを必要としていないか確認してください(頒布版によっては文法の異なることがあります).
7155 \end_layout
7156
7157 \begin_layout Subsubsection*
7158 外部パッケージ(PDFSyncおよびsrcltx)
7159 \end_layout
7160
7161 \begin_layout Standard
7162
7163 \emph on
7164 pdfsync
7165 \emph default
7166 および
7167 \emph on
7168 srcltx
7169 \emph default
7170 パッケージは,PDF出力(pdflatex経由)およびDVI出力での遡及検索を提供します.これを有効にするには,\SpecialChar LyX
7171 プリアンブルで以下のようにパッケージを読み込んで
7172 ください.
7173 \end_layout
7174
7175 \begin_layout Itemize
7176 PDFの遡及検索には
7177 \begin_inset Flex Code
7178 status collapsed
7179
7180 \begin_layout Plain Layout
7181
7182 \backslash
7183 usepackage{pdfsync}
7184 \end_layout
7185
7186 \end_inset
7187
7188
7189 \end_layout
7190
7191 \begin_layout Itemize
7192 DVIの遡及検索には
7193 \begin_inset Flex Code
7194 status collapsed
7195
7196 \begin_layout Plain Layout
7197
7198 \backslash
7199 usepackage[active]{srcltx}
7200 \end_layout
7201
7202 \end_inset
7203
7204
7205 \end_layout
7206
7207 \begin_layout Standard
7208 と書きます.DVIとPDFの両方の遡及検索を実行できるようにするためには,プリアンブルに以下の行を挿入する方法があります.
7209 \end_layout
7210
7211 \begin_layout LyX-Code
7212
7213 \backslash
7214 usepackage{ifpdf}
7215 \begin_inset Newline newline
7216 \end_inset
7217
7218
7219 \backslash
7220 ifpdf
7221 \begin_inset Newline newline
7222 \end_inset
7223
7224   
7225 \backslash
7226 usepackage{pdfsync}
7227 \begin_inset Newline newline
7228 \end_inset
7229
7230
7231 \backslash
7232 else
7233 \begin_inset Newline newline
7234 \end_inset
7235
7236   
7237 \backslash
7238 usepackage[active]{srcltx}
7239 \begin_inset Newline newline
7240 \end_inset
7241
7242
7243 \backslash
7244 fi
7245 \end_layout
7246
7247 \begin_layout Standard
7248 このようにすれば,DVIでもPDF(pdflatex)でも正しいパッケージを使いながら,ファイルを閲覧することができます.
7249 \end_layout
7250
7251 \begin_layout Standard
7252 なお,PDFSyncは,文書の出力レイアウトに干渉する可能性があるので注意してください.したがって,仕上がり文書ではPDFSyncを無効にすることをお勧めします
7253
7254 \end_layout
7255
7256 \begin_layout Subsubsection*
7257 Sync\SpecialChar TeX
7258 を使った組み込み遡及検索(DVIおよびPDF)
7259 \end_layout
7260
7261 \begin_layout Standard
7262 \begin_inset Flex Code
7263 status collapsed
7264
7265 \begin_layout Plain Layout
7266 (pdf)latex
7267 \end_layout
7268
7269 \end_inset
7270
7271 の最近のバージョンは,PDFおよびDVI両方の遡及検索を組み込みでサポートしています.このいわゆる
7272 \emph on
7273 Sync\SpecialChar TeX
7274
7275 \emph default
7276 機能は,主に,PDFSyncパッケージをpdftexプログラムへ統合したことと,それをsrc-specialsアプローチへ取り込んだことの成果です.これを使用す
7277 るためには,少なくとも\SpecialChar TeX
7278 Live 2008か最近のMik\SpecialChar TeX
7279 頒布版が必要です.また,既にSync\SpecialChar TeX
7280 サポートを提供しているPDFビューアは少ししかありません(UNIX上の
7281 OkularとQpdfview,Mac上のSkim,及びWindows上のSumatraPDF).
7282 \end_layout
7283
7284 \begin_layout Standard
7285 DVI出力でSync\SpecialChar TeX
7286 を有効にするには,
7287 \begin_inset Flex MenuItem
7288 status collapsed
7289
7290 \begin_layout Plain Layout
7291 設定\SpecialChar menuseparator
7292 ファイル処理\SpecialChar menuseparator
7293 変換子
7294 \end_layout
7295
7296 \end_inset
7297
7298
7299 \begin_inset Flex MenuItem
7300 status collapsed
7301
7302 \begin_layout Plain Layout
7303 LaTeX (plain)->DVI
7304 \end_layout
7305
7306 \end_inset
7307
7308 ないし
7309 \begin_inset Flex MenuItem
7310 status collapsed
7311
7312 \begin_layout Plain Layout
7313 LaTeX (plain)->DraftDVI
7314 \end_layout
7315
7316 \end_inset
7317
7318 変換子を
7319 \begin_inset Flex Code
7320 status collapsed
7321
7322 \begin_layout Plain Layout
7323 latex -synctex=1 $$i
7324 \end_layout
7325
7326 \end_inset
7327
7328 に変更します.PDF出力用には,
7329 \begin_inset Flex MenuItem
7330 status collapsed
7331
7332 \begin_layout Plain Layout
7333 LaTeX (pdflatex)->PDF (pdflatex)
7334 \end_layout
7335
7336 \end_inset
7337
7338 変換子を
7339 \begin_inset Flex Code
7340 status collapsed
7341
7342 \begin_layout Plain Layout
7343 pdflatex -synctex=1 $$i
7344 \end_layout
7345
7346 \end_inset
7347
7348 に変更してください.また,ビューアをSync\SpecialChar TeX
7349 で使うのに設定を行う必要があるかどうか,お使いのビューアの取扱説明書をご確認ください.
7350 \begin_inset Foot
7351 status collapsed
7352
7353 \begin_layout Plain Layout
7354 \begin_inset Flex Code
7355 status collapsed
7356
7357 \begin_layout Plain Layout
7358 -synctex=1
7359 \end_layout
7360
7361 \end_inset
7362
7363 オプションは,gzip圧縮を有効にします.お使いのビューアがgzip圧縮をサポートしていない場合には,代わりに
7364 \begin_inset Flex Code
7365 status collapsed
7366
7367 \begin_layout Plain Layout
7368 -synctex=-1
7369 \end_layout
7370
7371 \end_inset
7372
7373 を使用してください.
7374 \end_layout
7375
7376 \end_inset
7377
7378
7379 \end_layout
7380
7381 \begin_layout Subsection
7382 特定のビューアを設定して使うには
7383 \begin_inset CommandInset label
7384 LatexCommand label
7385 name "subsec:特定のビューアを設定して使うには"
7386
7387 \end_inset
7388
7389
7390 \end_layout
7391
7392 \begin_layout Subsubsection*
7393 Xdvi(全プラットフォーム)
7394 \end_layout
7395
7396 \begin_layout Standard
7397 \SpecialChar LyX
7398 は,
7399 \begin_inset Flex Code
7400 status collapsed
7401
7402 \begin_layout Plain Layout
7403 lyxclient
7404 \end_layout
7405
7406 \end_inset
7407
7408 プログラムを自動的に使うのに必要なフックを,既に提供しているので,
7409 \begin_inset Flex Code
7410 status collapsed
7411
7412 \begin_layout Plain Layout
7413 xdvi
7414 \end_layout
7415
7416 \end_inset
7417
7418 を使用する場合には,DVI遡及検索を実行するのに他にするべきことはありません.使用中の文書を上記で述べたように設定するだけです(遡及検索は,Ctrl-クリックか
7419 ,Mac OS X上ではAlt-クリックで始動します).
7420 \end_layout
7421
7422 \begin_layout Standard
7423 しかし,何らかの理由で,\SpecialChar LyX
7424 と通信するのにソケットではなく命名パイプを使用したい場合には,
7425 \begin_inset Flex MenuItem
7426 status collapsed
7427
7428 \begin_layout Plain Layout
7429 設定\SpecialChar menuseparator
7430 ファイル処理\SpecialChar menuseparator
7431 ファイル書式
7432 \end_layout
7433
7434 \end_inset
7435
7436 のDVIビューアを
7437 \begin_inset Flex Code
7438 status collapsed
7439
7440 \begin_layout Plain Layout
7441 xdvi -editor "lyxeditor.sh %f %l"
7442 \end_layout
7443
7444 \end_inset
7445
7446 (
7447 \begin_inset Flex Code
7448 status collapsed
7449
7450 \begin_layout Plain Layout
7451 lyxeditor.sh
7452 \end_layout
7453
7454 \end_inset
7455
7456 は適切なスクリプト名)に変更してください
7457 \begin_inset Foot
7458 status collapsed
7459
7460 \begin_layout Plain Layout
7461 Mac OS X上では,
7462 \begin_inset Flex Code
7463 status collapsed
7464
7465 \begin_layout Plain Layout
7466 DISPLAY=:0.0 xdvi -editor "lyxeditor.sh %f %l"
7467 \end_layout
7468
7469 \end_inset
7470
7471 としなくてはなりません.
7472 \end_layout
7473
7474 \end_inset
7475
7476 .たとえば,最低限のシェルスクリプトは
7477 \end_layout
7478
7479 \begin_layout LyX-Code
7480 #!/bin/sh
7481 \begin_inset Newline newline
7482 \end_inset
7483
7484 LYXPIPE="/path/to/lyxpipe"
7485 \begin_inset Newline newline
7486 \end_inset
7487
7488 COMMAND="LYXCMD:revdvi:server-goto-file-row:$1 $2"
7489 \begin_inset Newline newline
7490 \end_inset
7491
7492 echo "$COMMAND" > "${LYXPIPE}".in || exit
7493 \begin_inset Newline newline
7494 \end_inset
7495
7496 read TMP < "${LYXPIPE}".out || exit
7497 \end_layout
7498
7499 \begin_layout Standard
7500 のようになります.ここで
7501 \begin_inset Flex Code
7502 status collapsed
7503
7504 \begin_layout Plain Layout
7505 /path/to/lyxpipe
7506 \end_layout
7507
7508 \end_inset
7509
7510 は,
7511 \begin_inset Flex MenuItem
7512 status collapsed
7513
7514 \begin_layout Plain Layout
7515 設定\SpecialChar menuseparator
7516 パス
7517 \end_layout
7518
7519 \end_inset
7520
7521 で指定したLyXServerパイプのパスを指定してください.
7522 \begin_inset Foot
7523 status collapsed
7524
7525 \begin_layout Plain Layout
7526 ソース頒布版の
7527 \begin_inset Flex Code
7528 status collapsed
7529
7530 \begin_layout Plain Layout
7531 development/tools
7532 \end_layout
7533
7534 \end_inset
7535
7536 フォルダには,ユーザが設定した
7537 \emph on
7538 lyxpipe
7539 \emph default
7540 を探し出す
7541 \begin_inset Flex Code
7542 status collapsed
7543
7544 \begin_layout Plain Layout
7545 lyxeditor
7546 \end_layout
7547
7548 \end_inset
7549
7550 スクリプトがあります.
7551 \end_layout
7552
7553 \end_inset
7554
7555
7556 \end_layout
7557
7558 \begin_layout Subsubsection*
7559 MacDviX(Mac OS X)
7560 \end_layout
7561
7562 \begin_layout Standard
7563 \begin_inset Flex Code
7564 status collapsed
7565
7566 \begin_layout Plain Layout
7567 /Applications/MacDviX_Folder/calleditor.script
7568 \end_layout
7569
7570 \end_inset
7571
7572 の終わりに
7573 \end_layout
7574
7575 \begin_layout LyX-Code
7576 /Applications/LyX.app/Contents/MacOS/lyxeditor "$2" $1
7577 \begin_inset Newline newline
7578 \end_inset
7579
7580 exit 1
7581 \end_layout
7582
7583 \begin_layout Standard
7584 という行を付け加えてください.Applicationsフォルダ以外の場所に\SpecialChar LyX
7585 を導入した場合には,それに従って上記の行を修正してください.
7586 \end_layout
7587
7588 \begin_layout Standard
7589 遡及検索は,Alt-クリック(OPTION-クリック)で始動します.
7590 \end_layout
7591
7592 \begin_layout Subsubsection*
7593 Skim(Mac OS X)
7594 \end_layout
7595
7596 \begin_layout Standard
7597 \begin_inset Flex MenuItem
7598 status collapsed
7599
7600 \begin_layout Plain Layout
7601 設定\SpecialChar menuseparator
7602 ファイル処理\SpecialChar menuseparator
7603 ファイル書式\SpecialChar menuseparator
7604 PDF (pdflatex)
7605 \end_layout
7606
7607 \end_inset
7608
7609 のビューア設定に
7610 \begin_inset Flex Code
7611 status collapsed
7612
7613 \begin_layout Plain Layout
7614 open -a Skim.app $$i
7615 \end_layout
7616
7617 \end_inset
7618
7619 と入力し,
7620 \begin_inset Flex MenuItem
7621 status collapsed
7622
7623 \begin_layout Plain Layout
7624 Skim\SpecialChar menuseparator
7625 設定\SpecialChar menuseparator
7626 Sync
7627 \end_layout
7628
7629 \end_inset
7630
7631 でLyXを選択してください.
7632 \end_layout
7633
7634 \begin_layout Standard
7635 遡及検索は,COMMAND-SHIFT-クリックで始動します.
7636 \end_layout
7637
7638 \begin_layout Subsubsection*
7639 Okular (KDE)
7640 \end_layout
7641
7642 \begin_layout Standard
7643 \begin_inset Flex MenuItem
7644 status collapsed
7645
7646 \begin_layout Plain Layout
7647 設定\SpecialChar menuseparator
7648 Okularを設定\SpecialChar ldots
7649 \SpecialChar menuseparator
7650 編集
7651 \end_layout
7652
7653 \end_inset
7654
7655 で「カスタムテキストエディタ」を選択し,コマンドに
7656 \begin_inset Flex Code
7657 status collapsed
7658
7659 \begin_layout Plain Layout
7660 lyxclient -g %f %l
7661 \end_layout
7662
7663 \end_inset
7664
7665 を加えてください.
7666 \end_layout
7667
7668 \begin_layout Standard
7669 遡及検索は,SHIFT-クリックで始動します.
7670 \end_layout
7671
7672 \begin_layout Subsubsection*
7673 Qpdfview (UNIX)
7674 \end_layout
7675
7676 \begin_layout Standard
7677 Qpdfviewは,第0.3.5版以降,Sync\SpecialChar TeX
7678 をサポートしています.
7679 \begin_inset Flex MenuItem
7680 status collapsed
7681
7682 \begin_layout Plain Layout
7683 Edit\SpecialChar menuseparator
7684 Settings\SpecialChar menuseparator
7685 Behavior
7686 \end_layout
7687
7688 \end_inset
7689
7690 を開いて「Source editor」項目の入力フィールドをクリックし,
7691 \begin_inset Flex Code
7692 status collapsed
7693
7694 \begin_layout Plain Layout
7695 lyxclient -g %1 %2
7696 \end_layout
7697
7698 \end_inset
7699
7700 というコマンドを入力してください.
7701 \end_layout
7702
7703 \begin_layout Standard
7704 遡及検索は,ダブルクリックで始動します.
7705 \end_layout
7706
7707 \begin_layout Subsubsection*
7708 YAP(Windows)
7709 \end_layout
7710
7711 \begin_layout Standard
7712 yapを起動し,
7713 \begin_inset Flex MenuItem
7714 status collapsed
7715
7716 \begin_layout Plain Layout
7717 View\SpecialChar menuseparator
7718 Options
7719 \end_layout
7720
7721 \end_inset
7722
7723 メニューを選択し,「Inverse DVI Search」タブを選択します.「New\SpecialChar ldots
7724 」ボタンをクリックして開くウィンドウの「Name:」フィールドに「\SpecialChar LyX
7725
7726  Editor」(または自分の好きな名称)と入力してください.「\SpecialChar ldots
7727 」というラベルのボタンをクリックしてファイルダイアログを開き,バッチファイル
7728 \begin_inset Flex Code
7729 status collapsed
7730
7731 \begin_layout Plain Layout
7732 lyxeditor.bat
7733 \end_layout
7734
7735 \end_inset
7736
7737 (以下参照)のあるディレクトリを見つけます.
7738 \begin_inset Flex Code
7739 status collapsed
7740
7741 \begin_layout Plain Layout
7742 lyxeditor.bat
7743 \end_layout
7744
7745 \end_inset
7746
7747 を選択してプログラムの引数を
7748 \begin_inset Flex Code
7749 status collapsed
7750
7751 \begin_layout Plain Layout
7752 %f %l
7753 \end_layout
7754
7755 \end_inset
7756
7757 と指定してください.
7758 \begin_inset Flex Code
7759 status collapsed
7760
7761 \begin_layout Plain Layout
7762 lyxeditor.bat
7763 \end_layout
7764
7765 \end_inset
7766
7767 は,
7768 \emph on
7769 lyxpipe
7770 \emph default
7771 を通じて\SpecialChar LyX
7772 と通信するためのラッパとして使用され,以下のようになっています.
7773 \end_layout
7774
7775 \begin_layout LyX-Code
7776 @echo off
7777 \begin_inset Newline newline
7778 \end_inset
7779
7780 echo LYXCMD:revdvi:server-goto-file-row:%1 %2> 
7781 \backslash
7782
7783 \backslash
7784 .
7785 \backslash
7786 pipe
7787 \backslash
7788 lyxpipe.in
7789 \begin_inset Newline newline
7790 \end_inset
7791
7792 type 
7793 \backslash
7794
7795 \backslash
7796 .
7797 \backslash
7798 pipe
7799 \backslash
7800 lyxpipe.out
7801 \end_layout
7802
7803 \begin_layout Standard
7804 \SpecialChar LyX
7805 で指定した\SpecialChar LyX
7806 Serverパイプパスが,
7807 \begin_inset Flex Code
7808 status collapsed
7809
7810 \begin_layout Plain Layout
7811
7812 \backslash
7813
7814 \backslash
7815 .
7816 \backslash
7817 pipe
7818 \backslash
7819 lyxpipe
7820 \end_layout
7821
7822 \end_inset
7823
7824 となっていることを確認するか,
7825 \begin_inset Flex Code
7826 status collapsed
7827
7828 \begin_layout Plain Layout
7829 lyxeditor.bat
7830 \end_layout
7831
7832 \end_inset
7833
7834 ラッパの方を適切に修正してください.
7835 \end_layout
7836
7837 \begin_layout Standard
7838 yapでは,遡及検索はダブルクリックで始動します.
7839 \end_layout
7840
7841 \begin_layout Subsubsection*
7842 SumatraPDF(Windows)
7843 \end_layout
7844
7845 \begin_layout Standard
7846 SumatraPDFを遡及検索で使用するためには,
7847 \begin_inset Flex MenuItem
7848 status collapsed
7849
7850 \begin_layout Plain Layout
7851 設定\SpecialChar menuseparator
7852 ファイル処理\SpecialChar menuseparator
7853 ファイル書式\SpecialChar menuseparator
7854 PDF (pdflatex)
7855 \end_layout
7856
7857 \end_inset
7858
7859 のビューア設定で
7860 \begin_inset Flex Code
7861 status collapsed
7862
7863 \begin_layout Plain Layout
7864 SumatraPDF -inverse-search 
7865 \begin_inset Quotes eld
7866 \end_inset
7867
7868 lyxeditor.bat %f %l
7869 \begin_inset Quotes erd
7870 \end_inset
7871
7872
7873 \end_layout
7874
7875 \end_inset
7876
7877 (
7878 \begin_inset Flex Code
7879 status collapsed
7880
7881 \begin_layout Plain Layout
7882 lyxeditor.bat
7883 \end_layout
7884
7885 \end_inset
7886
7887 は上記のラッパ)と入力してください.SumatraPDF.exeがコマンドPATHにない場合,フルファイル名を使用してください.
7888 \end_layout
7889
7890 \begin_layout Standard
7891 遡及検索はダブルクリックで始動します.
7892 \end_layout
7893
7894 \begin_layout Subsubsection*
7895 YAP(Cygwin)
7896 \end_layout
7897
7898 \begin_layout Standard
7899 まずはじめに,yapがWindows環境での既定のDVIビューアになっていることを確認してから,yapを起動し,
7900 \begin_inset Flex MenuItem
7901 status collapsed
7902
7903 \begin_layout Plain Layout
7904 View\SpecialChar menuseparator
7905 Options
7906 \end_layout
7907
7908 \end_inset
7909
7910 メニューを選択し,「Inverse DVI Search」タブを選択します.「New\SpecialChar ldots
7911 」ボタンをクリックして開くウィンドウの「Name:」フィールドに「\SpecialChar LyX
7912
7913  Editor」(または自分の好きな名称)と入力してください.「\SpecialChar ldots
7914 」というラベルのボタンをクリックしてファイルダイアログを開き,バッチファイル
7915 \begin_inset Flex Code
7916 status collapsed
7917
7918 \begin_layout Plain Layout
7919 lyxeditor.exe
7920 \end_layout
7921
7922 \end_inset
7923
7924 プログラム(これは,Cygwinでは既定で\SpecialChar LyX
7925 実行ファイルとともに導入されます)のあるディレクトリを見つけます.
7926 \begin_inset Flex Code
7927 status collapsed
7928
7929 \begin_layout Plain Layout
7930 lyxeditor.exe
7931 \end_layout
7932
7933 \end_inset
7934
7935 を選択してプログラムの引数を
7936 \begin_inset Flex Code
7937 status collapsed
7938
7939 \begin_layout Plain Layout
7940 -g %f %l
7941 \end_layout
7942
7943 \end_inset
7944
7945 と指定してください.これによって,\SpecialChar LyX
7946 との通信に
7947 \emph on
7948 lyxsocket
7949 \emph default
7950 が使用されるようになります.何らかの理由で
7951 \emph on
7952 lyxpipe
7953 \emph default
7954 を使用したい場合には,
7955 \begin_inset Flex Code
7956 status collapsed
7957
7958 \begin_layout Plain Layout
7959 -g
7960 \end_layout
7961
7962 \end_inset
7963
7964 オプションを削除して,\SpecialChar LyX
7965 設定で\SpecialChar LyX
7966 Serverパイプパスを指定することを忘れないでください.
7967 \end_layout
7968
7969 \begin_layout Standard
7970 yapでは,遡及検索はダブルクリックで始動します.
7971 \end_layout
7972
7973 \begin_layout Subsubsection*
7974 SumatraPDF(Cygwin)
7975 \end_layout
7976
7977 \begin_layout Standard
7978 SumatraPDFを遡及検索で使用するためには,
7979 \begin_inset Flex MenuItem
7980 status collapsed
7981
7982 \begin_layout Plain Layout
7983 設定\SpecialChar menuseparator
7984 ファイル処理\SpecialChar menuseparator
7985 ファイル書式\SpecialChar menuseparator
7986 PDF (pdflatex)
7987 \end_layout
7988
7989 \end_inset
7990
7991 のビューア設定で
7992 \begin_inset Flex Code
7993 status collapsed
7994
7995 \begin_layout Plain Layout
7996 SumatraPDF.sh
7997 \end_layout
7998
7999 \end_inset
8000
8001 と入力してください.ここで
8002 \begin_inset Flex Code
8003 status collapsed
8004
8005 \begin_layout Plain Layout
8006 SumatraPDF.sh
8007 \end_layout
8008
8009 \end_inset
8010
8011 は以下のようなスクリプトです(お使いのコマンドパスに置きます.
8012 \begin_inset Flex Code
8013 status collapsed
8014
8015 \begin_layout Plain Layout
8016 /usr/local/bin
8017 \end_layout
8018
8019 \end_inset
8020
8021 がもっとも良い選択肢でしょう).
8022 \end_layout
8023
8024 \begin_layout LyX-Code
8025 #!/bin/bash
8026 \begin_inset Newline newline
8027 \end_inset
8028
8029 cd $(dirname $1)
8030 \begin_inset Newline newline
8031 \end_inset
8032
8033 SumatraPDF -inverse-search "lyxeditor -g %f %l" $(basename $1)
8034 \end_layout
8035
8036 \begin_layout Standard
8037 SumatraPDFは,Windowsネイティブのアプリケーションであり,\SpecialChar LyX
8038 のCygwin版が使用するPOSIXパスを理解しないので,このラッパスクリプトが必要と
8039 なります.SumatraPDF.exeがお使いのコマンドパスにない場合は,上記のスクリプトでPOSIXのフルパスを使用してください.
8040 \begin_inset Flex Code
8041 status collapsed
8042
8043 \begin_layout Plain Layout
8044 -g
8045 \end_layout
8046
8047 \end_inset
8048
8049
8050 \emph on
8051 lyxsocket
8052 \emph default
8053 経由の通信を有効にします.ここでも,
8054 \emph on
8055 lyxpipe
8056 \emph default
8057 を使用したい場合には,
8058 \begin_inset Flex Code
8059 status collapsed
8060
8061 \begin_layout Plain Layout
8062 -g
8063 \end_layout
8064
8065 \end_inset
8066
8067 オプションを削除して,\SpecialChar LyX
8068 設定で\SpecialChar LyX
8069 Serverパイプパスを指定することを忘れないでください.
8070 \end_layout
8071
8072 \begin_layout Standard
8073 遡及検索はダブルクリックで始動します.
8074 \end_layout
8075
8076 \begin_layout Section
8077 順検索
8078 \end_layout
8079
8080 \begin_layout Standard
8081 順検索とは,名前が示すとおり,いわば遡及検索の「逆」を意味します.すなわち,\SpecialChar LyX
8082 内部から,ビューアに特定の箇所を表示させることを可能にします.(以下に説明するように
8083 )もし順検索の準備ができていれば,カーソルを\SpecialChar LyX
8084 文書の好きなところに置いて,
8085 \begin_inset Flex MenuItem
8086 status collapsed
8087
8088 \begin_layout Plain Layout
8089 移動\SpecialChar menuseparator
8090 順検索
8091 \end_layout
8092
8093 \end_inset
8094
8095 を選択すると(あるいはマウスの右クリックで表示される文脈依存メニューから
8096 \begin_inset Flex MenuItem
8097 status collapsed
8098
8099 \begin_layout Plain Layout
8100 順検索
8101 \end_layout
8102
8103 \end_inset
8104
8105 を選択してもよい),ビューアも同じ箇所に移動します.もちろん,使用しているビューアが,この機能をサポートしていなくてはなりません.
8106 \end_layout
8107
8108 \begin_layout Standard
8109 順検索を有効にするためには,生成されたPDF/DVI出力ファイルに,\SpecialChar TeX
8110 ソースに関する情報を追加する必要があります.これは,第
8111 \begin_inset CommandInset ref
8112 LatexCommand ref
8113 reference "subsec:遡及検索"
8114
8115 \end_inset
8116
8117 節に述べられている方法で実行することができます.
8118 \end_layout
8119
8120 \begin_layout Standard
8121 次に,
8122 \begin_inset Flex MenuItem
8123 status collapsed
8124
8125 \begin_layout Plain Layout
8126 ツール\SpecialChar menuseparator
8127 設定\SpecialChar menuseparator
8128 出力\SpecialChar menuseparator
8129 一般
8130 \end_layout
8131
8132 \end_inset
8133
8134 で自分の使うビューアを利用するように,\SpecialChar LyX
8135 を設定する必要があります.いくつかのビューアについては,試験済みの設定が前もって準備されており,ドロップダウンリストから選
8136 択することができます.これらの設定の何れも意にそぐわない場合には,ご自身で適切な設定を見つけ出して入力しなくてはなりません.定義文法は,以下の変数を使用します.
8137 \end_layout
8138
8139 \begin_layout Itemize
8140 \begin_inset Flex Code
8141 status collapsed
8142
8143 \begin_layout Plain Layout
8144 $$n
8145 \end_layout
8146
8147 \end_inset
8148
8149 :行番号
8150 \end_layout
8151
8152 \begin_layout Itemize
8153 \begin_inset Flex Code
8154 status collapsed
8155
8156 \begin_layout Plain Layout
8157 $$t
8158 \end_layout
8159
8160 \end_inset
8161
8162 :書き出された(一時).texファイル名(パスを除く)
8163 \end_layout
8164
8165 \begin_layout Itemize
8166 \begin_inset Flex Code
8167 status collapsed
8168
8169 \begin_layout Plain Layout
8170 $$f
8171 \end_layout
8172
8173 \end_inset
8174
8175 :書き出された(一時).texファイル名(パスを含む)
8176 \end_layout
8177
8178 \begin_layout Itemize
8179 \begin_inset Flex Code
8180 status collapsed
8181
8182 \begin_layout Plain Layout
8183 $$o
8184 \end_layout
8185
8186 \end_inset
8187
8188 :書き出された出力ファイル名(どちらが一時ディレクトリに存在するかに依存して,dviあるいはpdf).
8189 \end_layout
8190
8191 \begin_layout Standard
8192 yap・xdvi・okular
8193 \begin_inset Foot
8194 status collapsed
8195
8196 \begin_layout Plain Layout
8197 \begin_inset Flex MenuItem
8198 status collapsed
8199
8200 \begin_layout Plain Layout
8201 ツール\SpecialChar menuseparator
8202 設定\SpecialChar menuseparator
8203 ファイル処理\SpecialChar menuseparator
8204 ファイル形式
8205 \end_layout
8206
8207 \end_inset
8208
8209
8210 \begin_inset Flex Code
8211 status collapsed
8212
8213 \begin_layout Plain Layout
8214 okular –unique
8215 \end_layout
8216
8217 \end_inset
8218
8219 と設定すると良いかもしれません.
8220 \end_layout
8221
8222 \end_inset
8223
8224 ・qpdfview・Sumatra PDFなど,一部のビューアでしか,完全な順検索機能は提供されていないことに注意してください
8225 \begin_inset Foot
8226 status collapsed
8227
8228 \begin_layout Plain Layout
8229 SumatraPDFも,外部プログラムCMCDDEを通じて,DDEコマンドを使用することができます.CMCDDEは,
8230 \begin_inset CommandInset href
8231 LatexCommand href
8232 target "http://www.istri.fr/spip/zip/CMCDDE.zip"
8233
8234 \end_inset
8235
8236 からダウンロードすることができます.
8237 \end_layout
8238
8239 \end_inset
8240
8241 .広く使われているPDFビューアの多く(特にAdobe Reader)は,順検索を全く提供していませんが,他の一部のビューア(たとえばEvinceやxpdf)で
8242 は,少なくとも,文書を読み込み直したり,ファイルの特定ページに移動することはできますので,少なくとも「近く」には移動することができます.この後者の機能は,syn
8243 ctexの外部コールで提供されています(事前に用意されている用例をご覧ください).
8244 \end_layout
8245
8246 \begin_layout Standard
8247 順検索は,DVI出力とPDF出力の双方で動作します.\SpecialChar LyX
8248 は,過去にあなたが使用したプレビュー形式をチェックして(つまり,一時ディレクトリにどちらの形式が存在するかを
8249 チェックして),その形式に適切な設定を選択します.
8250 \end_layout
8251
8252 \begin_layout Chapter
8253 特別な文書クラス
8254 \end_layout
8255
8256 \begin_layout Section
8257 A&Aの論文
8258 \end_layout
8259
8260 \begin_layout Standard
8261
8262 \noun on
8263 Peter Sütterlin文
8264 \end_layout
8265
8266 \begin_layout Subsection
8267 はじめに
8268 \end_layout
8269
8270 \begin_layout Standard
8271 この節では,文書クラス
8272 \family typewriter
8273 aa.cls
8274 \family default
8275 第5.01版を使用して科学雑誌
8276 \emph on
8277 Astronomy and Astrophysics
8278 \emph default
8279 (『天文学と宇宙物理学』: 
8280 \begin_inset Flex URL
8281 status collapsed
8282
8283 \begin_layout Plain Layout
8284
8285 http://www.edpsciences.fr/aa/
8286 \end_layout
8287
8288 \end_inset
8289
8290 )に投稿する論文を執筆するための\SpecialChar LyX
8291 の使用法を説明します.このパッケージは,FTPサイト
8292 \begin_inset Separator latexpar
8293 \end_inset
8294
8295
8296 \end_layout
8297
8298 \begin_layout Standard
8299 \align center
8300 \begin_inset VSpace medskip
8301 \end_inset
8302
8303
8304 \begin_inset Flex URL
8305 status collapsed
8306
8307 \begin_layout Plain Layout
8308
8309 ftp://ftp.edpsciences.org/pub/aa/readme.html
8310 \end_layout
8311
8312 \end_inset
8313
8314
8315 \begin_inset VSpace medskip
8316 \end_inset
8317
8318
8319 \end_layout
8320
8321 \begin_layout Standard
8322 \noindent
8323 からダウンロードすることができます.
8324 \end_layout
8325
8326 \begin_layout Standard
8327 このパッケージには取扱説明書がついていますが,本節は,本来の取扱説明書の代わりとなることを意図したものではなく,あなたの論文を正しい様式に整えるための小さな案内
8328 書であるに過ぎません.
8329 \end_layout
8330
8331 \begin_layout Standard
8332 この学術誌の出版元は,2001年1月1日以降,Springer社からEDP Science社に変更されていることにご注意ください.この出版社の変更によって,th
8333 esaurusコマンドの廃止など,スタイルファイルに若干の変更が加わっています.\SpecialChar LyX
8334 のaaクラスは,スタイルファイルの最新版(第5.01版)をサポートしています.もし
8335 古い版が装備されている場合には,更新してください.互換性のために,古い(第4版)レイアウトは,
8336 \family sans
8337 article (A&A V4)
8338 \family default
8339 として残してあります.
8340 \family typewriter
8341 $\SpecialChar LyX
8342 Dir/layouts/aapaper.layout
8343 \family default
8344 のコメントをご参照ください.
8345 \end_layout
8346
8347 \begin_layout Subsection
8348 最初の一歩
8349 \end_layout
8350
8351 \begin_layout Standard
8352 \SpecialChar LyX
8353 とともに頒布されている例示用のひな型を土台として,書き始めることをお勧めします.ひな型を使用しない場合には,以下の設定にしてください.
8354 \end_layout
8355
8356 \begin_layout Itemize
8357
8358 \family sans
8359 文書\SpecialChar menuseparator
8360 設定
8361 \family default
8362 ダイアログで
8363 \family sans
8364 article (A&A)
8365 \family default
8366 を選択してください(まぁ,これは自明ですね).
8367 \end_layout
8368
8369 \begin_layout Itemize
8370
8371 \family sans
8372 ページレイアウト
8373 \family default
8374 オプションは変更しないで,既定値のままに設定しておいてください.全体のレイアウトはマクロが行うので,何も変更してはいけません.
8375 \end_layout
8376
8377 \begin_layout Subsection
8378 へッダ部
8379 \end_layout
8380
8381 \begin_layout Standard
8382 最初に入力すべきものは,へッダ情報です.ヘッダ情報には,以下の7つの項目があり,いくつかは必須ではありません.
8383 \end_layout
8384
8385 \begin_layout Itemize
8386
8387 \family sans
8388 タイトル
8389 \family default
8390 :[必須]
8391 \end_layout
8392
8393 \begin_layout Itemize
8394
8395 \family sans
8396 サブタイトル
8397 \family default
8398 :[非必須]
8399 \end_layout
8400
8401 \begin_layout Itemize
8402
8403 \family sans
8404 著者
8405 \family default
8406 :[必須]
8407 \end_layout
8408
8409 \begin_layout Itemize
8410
8411 \family sans
8412 住所
8413 \family default
8414 :[必須]
8415 \end_layout
8416
8417 \begin_layout Itemize
8418
8419 \family sans
8420 抜き刷り
8421 \family default
8422 :[非必須]著者が複数いる場合,抜き刷りの送付を依頼するのに連絡すべき人を記す.
8423 \end_layout
8424
8425 \begin_layout Itemize
8426
8427 \family sans
8428 メール
8429 \family default
8430 :[非必須]連絡用の電子メールアドレス.
8431 \end_layout
8432
8433 \begin_layout Itemize
8434
8435 \family sans
8436 日付
8437 \family default
8438 :[必須]推奨されるフォーマットは,
8439 \family typewriter
8440 Received: <日付>; Accepted <日付>
8441 \family default
8442 です.
8443 \end_layout
8444
8445 \begin_layout Standard
8446
8447 \family typewriter
8448
8449 \backslash
8450 maketitle
8451 \family default
8452 コマンドは,へッダが終了した場所に,\SpecialChar LyX
8453 が自動的に入れてくれるので,手動で挿入する必要はありません.各項目の順序は関係ありませんが,見た目のためと,実際の文書のレイ
8454 アウトに合わせるために,上記の順序を維持しておくと良いでしょう.
8455 \end_layout
8456
8457 \begin_layout Standard
8458 現住所の付記などのために,へッダ部に脚注を挿入したい場合には,
8459 \family sans
8460 挿入\SpecialChar menuseparator
8461 脚注
8462 \family default
8463 を使用して標準の脚注を挿入してください.この場合には,\SpecialChar LyX
8464 は自動的に
8465 \family typewriter
8466
8467 \backslash
8468 thanks{}
8469 \family default
8470 を使用します.
8471 \end_layout
8472
8473 \begin_layout Standard
8474 これらのトピックの他に,このマクロは,\SpecialChar LyX
8475 が対応していない,以下の3つの\SpecialChar LaTeX
8476 コマンドを使用します.
8477 \end_layout
8478
8479 \begin_layout Itemize
8480 複数の著者名あるいは所属名を区切るための
8481 \family typewriter
8482
8483 \backslash
8484 and
8485 \end_layout
8486
8487 \begin_layout Itemize
8488 著者と所属の対応付けをするための
8489 \family typewriter
8490
8491 \backslash
8492 inst{<番号>}
8493 \family default
8494 .所属は,
8495 \family sans
8496 住所
8497 \family default
8498 フィールドに現れる順に番号が付けられるので,各著者に番号マーカーを置く必要があります.
8499 \end_layout
8500
8501 \begin_layout Itemize
8502
8503 \family typewriter
8504
8505 \backslash
8506 email{アドレス}
8507 \family default
8508 は,至急連絡用に電子メールアドレスを付記します.
8509 \end_layout
8510
8511 \begin_layout Standard
8512 いずれの場合にも,\SpecialChar LyX
8513 中に対応したコマンドを入力し,\SpecialChar LaTeX
8514 コードとしてマークしてください.
8515 \begin_inset Flex Code
8516 status collapsed
8517
8518 \begin_layout Plain Layout
8519 $\SpecialChar LyX
8520 Dir/examples
8521 \end_layout
8522
8523 \end_inset
8524
8525 にある用例を参照してください.
8526 \end_layout
8527
8528 \begin_layout Subsection
8529 概要
8530 \end_layout
8531
8532 \begin_layout Standard
8533 概要は,へッダ部の直後に置きます.第5版から,概要は環境からコマンドに変更され,一段落に限るという制限が加えられました.さらに,ここにはキーワードを含む項目を入
8534 れなくてはなりません.これは,まだ\SpecialChar LyX
8535 では実装されていないため,\SpecialChar LaTeX
8536 コマンド
8537 \family typewriter
8538
8539 \backslash
8540 keywords{}
8541 \family default
8542 を手動で入力し,\SpecialChar LaTeX
8543 コードとしてマークする必要があります.用例にある論文を参照してください.
8544 \end_layout
8545
8546 \begin_layout Subsection
8547 サポートされる環境
8548 \end_layout
8549
8550 \begin_layout Standard
8551 A&A論文用レイアウトでは,文章を構造化するために,以下の環境がサポートされています.
8552 \end_layout
8553
8554 \begin_layout Itemize
8555
8556 \family sans
8557 標準
8558 \end_layout
8559
8560 \begin_layout Itemize
8561
8562 \family sans
8563
8564 \end_layout
8565
8566 \begin_layout Itemize
8567
8568 \family sans
8569 小節
8570 \end_layout
8571
8572 \begin_layout Itemize
8573
8574 \family sans
8575 小々節
8576 \end_layout
8577
8578 \begin_layout Itemize
8579
8580 \family sans
8581 箇条書き(記号)
8582 \end_layout
8583
8584 \begin_layout Itemize
8585
8586 \family sans
8587 箇条書き(連番)
8588 \end_layout
8589
8590 \begin_layout Itemize
8591
8592 \family sans
8593 箇条書き(記述)
8594 \end_layout
8595
8596 \begin_layout Itemize
8597
8598 \family sans
8599 キャプション
8600 \end_layout
8601
8602 \begin_layout Itemize
8603
8604 \family sans
8605 概要
8606 \end_layout
8607
8608 \begin_layout Itemize
8609
8610 \family sans
8611 謝辞(Acknowledgment)
8612 \end_layout
8613
8614 \begin_layout Itemize
8615
8616 \family sans
8617 書誌情報
8618 \end_layout
8619
8620 \begin_layout Itemize
8621
8622 \family sans
8623 \SpecialChar LaTeX
8624
8625 \end_layout
8626
8627 \begin_layout Subsection
8628 \SpecialChar LyX
8629 でサポートされていないコマンド
8630 \end_layout
8631
8632 \begin_layout Standard
8633 \SpecialChar LyX
8634
8635 \family sans
8636 article (A&A)
8637 \family default
8638 レイアウトでは,まだサポートされていないコマンドがあります.そのうちいくつかは既に紹介しましたが,網羅するために,以下にすべて列挙しておきます.
8639 \end_layout
8640
8641 \begin_layout Itemize
8642
8643 \family typewriter
8644
8645 \backslash
8646 and
8647 \end_layout
8648
8649 \begin_layout Itemize
8650
8651 \family typewriter
8652
8653 \backslash
8654 email
8655 \end_layout
8656
8657 \begin_layout Itemize
8658
8659 \family typewriter
8660
8661 \backslash
8662 appendix
8663 \end_layout
8664
8665 \begin_layout Itemize
8666
8667 \family typewriter
8668
8669 \backslash
8670 authorrunning
8671 \end_layout
8672
8673 \begin_layout Itemize
8674
8675 \family typewriter
8676
8677 \backslash
8678 inst{}
8679 \end_layout
8680
8681 \begin_layout Itemize
8682
8683 \family typewriter
8684
8685 \backslash
8686 keywords{}
8687 \end_layout
8688
8689 \begin_layout Itemize
8690
8691 \family typewriter
8692
8693 \backslash
8694 object{}
8695 \end_layout
8696
8697 \begin_layout Itemize
8698
8699 \family typewriter
8700
8701 \backslash
8702 titlerunning{}
8703 \end_layout
8704
8705 \begin_layout Standard
8706 これらのコマンドのいずれかを使いたい場合には,自分で入力する必要があります.
8707 \series bold
8708 これを\SpecialChar LaTeX
8709 コマンドとしてマークすることを忘れないで下さい.
8710 \end_layout
8711
8712 \begin_layout Subsection
8713 図フロートおよび表フロート
8714 \end_layout
8715
8716 \begin_layout Standard
8717 \SpecialChar LyX
8718 は,必要なフロート環境
8719 \family sans
8720 figure
8721 \family default
8722
8723 \family sans
8724 figure*
8725 \family default
8726
8727 \family sans
8728 table
8729 \family default
8730
8731 \family sans
8732 table*
8733 \family default
8734 をサポートしていますので,ここでは詳しい説明はしません.
8735 \emph on
8736 ユーザーの手引き
8737 \emph default
8738 をご覧ください.ただ,表は左揃えにしなくてはならないことに注意して下さい.そうするためには,表を選択して,
8739 \family sans
8740 編集\SpecialChar menuseparator
8741 段落設定
8742 \family default
8743 で配置を変更してください.
8744 \end_layout
8745
8746 \begin_layout Standard
8747 一つだけ,特別なものがあります.それは,図横にキャプションを配置する図です.この図を作成するには,以下のようにしなくてはなりません.
8748 \end_layout
8749
8750 \begin_layout Enumerate
8751
8752 \family sans
8753 挿入\SpecialChar menuseparator
8754 フロート\SpecialChar menuseparator
8755
8756 \family default
8757 を使って,幅広の図フロートを作成します.それから,図フロートのラベルを右クリックして
8758 \begin_inset Flex MenuItem
8759 status collapsed
8760
8761 \begin_layout Plain Layout
8762 設定\SpecialChar ldots
8763
8764 \end_layout
8765
8766 \end_inset
8767
8768 を選択し,それで開かれる
8769 \family sans
8770 フロートの設定
8771 \family default
8772 ダイアログで
8773 \family sans
8774 段をまたぐ
8775 \family default
8776 を有効にして,
8777 \family sans
8778 OK
8779 \family default
8780 ボタンを押します.
8781 \end_layout
8782
8783 \begin_layout Enumerate
8784 キャプション文を入力します.
8785 \end_layout
8786
8787 \begin_layout Enumerate
8788 キャプションの前にカーソルを移動し,
8789 \family sans
8790 Return
8791 \family default
8792 を押して,カーソルをキャプションの上に移動します.
8793 \end_layout
8794
8795 \begin_layout Enumerate
8796 図を挿入します.
8797 \end_layout
8798
8799 \begin_layout Enumerate
8800 カーソルを図の後ろに置いて,
8801 \family sans
8802 挿入\SpecialChar menuseparator
8803 整形\SpecialChar menuseparator
8804 水平方向の空白
8805 \family default
8806 を選択して
8807 \family sans
8808 水平方向の空白の設定
8809 \family default
8810 ダイアログを開き,
8811 \family sans
8812 空白
8813 \family default
8814 ドロップダウンから
8815 \family sans
8816 水平フィル
8817 \family default
8818 を選択して,水平フィルを挿入します.
8819 \end_layout
8820
8821 \begin_layout Enumerate
8822
8823 \family sans
8824 挿入\SpecialChar menuseparator
8825 TeXコード
8826 \family default
8827 を選択して,\SpecialChar TeX
8828 差込枠を挿入します.
8829 \end_layout
8830
8831 \begin_layout Enumerate
8832 \SpecialChar TeX
8833 差込枠中に
8834 \family typewriter
8835
8836 \backslash
8837 parbox[b]{55mm}{
8838 \family default
8839 と入力します.
8840 \series bold
8841 ここでは波括弧を閉じないでください.
8842 \end_layout
8843
8844 \begin_layout Enumerate
8845 カーソルをキャプション文の後ろに移動し,
8846 \family sans
8847 挿入\SpecialChar menuseparator
8848 TeXコード
8849 \family default
8850 を選択して,別の\SpecialChar TeX
8851 差込枠を挿入し,その中に閉じ括弧を入力します .
8852 \end_layout
8853
8854 \begin_layout Standard
8855 例示用論文中の図もご参照ください.
8856 \end_layout
8857
8858 \begin_layout Subsection
8859 Refereeレイアウト
8860 \end_layout
8861
8862 \begin_layout Standard
8863 投稿用には,論文を特別なダブルスペースレイアウトに整形しなくてはなりません.このためには,文書クラスに
8864 \family typewriter
8865 referee
8866 \family default
8867 オプションを与える必要があります.これは,
8868 \family sans
8869 文書\SpecialChar menuseparator
8870 設定
8871 \family default
8872 ダイアログの
8873 \family sans
8874 任意設定
8875 \family default
8876 クラスオプションフィールドを使って行うことができます.この欄に
8877 \family typewriter
8878 referee
8879 \family default
8880 と云う文字列を入力してください.
8881 \end_layout
8882
8883 \begin_layout Subsection
8884 例示用論文
8885 \end_layout
8886
8887 \begin_layout Standard
8888
8889 \family sans
8890 Examples
8891 \family default
8892 ディレクトリには,\SpecialChar LyX
8893 で書かれた例示用論文が収録されています.これは,元のマクロパッケージの例示用論文を\SpecialChar LyX
8894 用に直したものです.これはヒントを得るために使用したり,元の
8895  \SpecialChar LaTeX
8896 コードと\SpecialChar LyX
8897 での書き方の比較に使ったりしてください.
8898 \end_layout
8899
8900 \begin_layout Section
8901 AAS\SpecialChar TeX
8902
8903 \end_layout
8904
8905 \begin_layout Standard
8906
8907 \noun on
8908 Mike Ressler
8909 \noun default
8910
8911 \end_layout
8912
8913 \begin_layout Subsection
8914 はじめに
8915 \end_layout
8916
8917 \begin_layout Standard
8918 AAS\SpecialChar TeX
8919 は,American Astronomical Society(アメリカ天文学会)が発行するAstrophysical Journal(宇宙物理学雑誌)同
8920 誌のLettersとSupplementを含む)・Astronomical Journal(天文学雑誌)・Publications of the
8921  Astronomical Society of the Pacific(太平洋天文学会誌)三誌への電子投稿を可能にするために,同学会が作成したマクロ集です.\SpecialChar LyX
8922
8923 ,これらの文書を生成する上で,なかでも数式・引用・画像処理能力において,優れたツールであることが認識されています.\SpecialChar LyX
8924 は,同マクロ第5.0版以降を必要としており,でき
8925 ればここで説明されている第5.2版以降が望まれます.第5.0版未満の版は,\SpecialChar LaTeX
8926 2.09で使用するよう企図されているため,根本的に\SpecialChar LyX
8927 とは互換性がありません.AAS\SpecialChar TeX
8928 パッケージは
8929 ,以下のAAS\SpecialChar TeX
8930 ウェブサイトからダウンロードできるでしょう.
8931 \begin_inset Separator latexpar
8932 \end_inset
8933
8934
8935 \end_layout
8936
8937 \begin_layout Standard
8938 \align center
8939 \begin_inset VSpace medskip
8940 \end_inset
8941
8942
8943 \begin_inset Flex URL
8944 status collapsed
8945
8946 \begin_layout Plain Layout
8947
8948 https://aas.org/aastex/aastex-downloads
8949 \end_layout
8950
8951 \end_inset
8952
8953
8954 \begin_inset VSpace medskip
8955 \end_inset
8956
8957
8958 \end_layout
8959
8960 \begin_layout Standard
8961 パッケージ中には,完備したユーザーの手引きが収録されていますので,\SpecialChar LyX
8962 で論文を書き始める前に,その中身を完全に理解しておく必要があります.\SpecialChar LyX
8963 は,AASTeXの全コマン
8964 ドを理解する必然性をなくすものではなく,すべてを手入力する苦労を減らすだけです.仕上がりの\SpecialChar LaTeX
8965 文書が,論文を投稿しようとしているジャーナルの要求事項に完全に合致して
8966 いることを確認するのは,あなたの責任です.
8967 \end_layout
8968
8969 \begin_layout Subsection
8970 新しい論文を書き始める
8971 \end_layout
8972
8973 \begin_layout Standard
8974 論文を書き始めるには,AAS\SpecialChar TeX
8975 ひな型ファイルを土台に始めることを強くお勧めします.
8976 \begin_inset Flex MenuItem
8977 status collapsed
8978
8979 \begin_layout Plain Layout
8980 ファイル\SpecialChar menuseparator
8981 新規(ひな型使用)
8982 \end_layout
8983
8984 \end_inset
8985
8986 をクリックして,新しいファイル名を入力し,ひな型
8987 \family typewriter
8988 aastex.lyx
8989 \family default
8990 を選んでください.これには,論文原稿のほとんどに共通して使われるフィールドが書き込まれています.書き込まれている文字列(括弧
8991 \family typewriter
8992 <>
8993 \family default
8994 を含む)を正しい情報で上書きしてください.AAS\SpecialChar TeX
8995 コマンド・AAS\SpecialChar TeX
8996 環境の多くは,\SpecialChar LyX
8997 中で直接実行することができますが,特に
8998 \family typewriter
8999
9000 \backslash
9001 altaffilmark
9002 \family default
9003
9004 \family typewriter
9005
9006 \backslash
9007 altaffiltext
9008 \family default
9009 のようにできないものもあります.この二つのコマンドは,ひな型ファイルを開いたとき,赤色に表示されているのですぐ目に入ることでしょう.このようなコマンドは,直接L
9010 a\SpecialChar TeX
9011 コードを入力して,それを\SpecialChar TeX
9012 コードとしてマークしなければなりません.このようなコマンドは,\SpecialChar TeX
9013 コードあるいはEvil Red Text(邪悪な赤い文)と呼ばれます.A
9014 AS\SpecialChar TeX
9015 文書に必要とされる \SpecialChar TeX
9016 コードを最小にするよう努力はしていますが,まだ望まれるほどにはなっていません.
9017 \end_layout
9018
9019 \begin_layout Subsection
9020 論文を書き終わったら
9021 \end_layout
9022
9023 \begin_layout Standard
9024 論文を満足する水準で書き終え,プレビューや印刷が正しく為されているとしても,まだ学術誌に投稿する前にしなくてはならない「後処理」が残されています.
9025 \end_layout
9026
9027 \begin_layout Enumerate
9028 論文を \SpecialChar LaTeX
9029 ファイルとして書き出します(
9030 \family sans
9031 ファイル\SpecialChar menuseparator
9032 書き出し\SpecialChar menuseparator
9033 LateX
9034 \family default
9035 ).
9036 \end_layout
9037
9038 \begin_layout Enumerate
9039 出力した
9040 \family typewriter
9041 .tex
9042 \family default
9043 ファイルを好きなエディタで編集します.
9044 \begin_inset Separator latexpar
9045 \end_inset
9046
9047
9048 \end_layout
9049
9050 \begin_deeper
9051 \begin_layout Enumerate
9052
9053 \family typewriter
9054
9055 \backslash
9056 documentclass
9057 \family default
9058 コマンドよりも前のコメント行を削除します.
9059 \end_layout
9060
9061 \begin_layout Enumerate
9062
9063 \family typewriter
9064
9065 \backslash
9066 usepackage...{fontenc}
9067 \family default
9068 という行があれば(通常は
9069 \family typewriter
9070
9071 \backslash
9072 documentclass
9073 \family default
9074 の直後にあります)削除します.また,
9075 \family typewriter
9076
9077 \backslash
9078 secnumdepth
9079 \family default
9080 行があれば,これも削除します.
9081 \end_layout
9082
9083 \begin_layout Enumerate
9084 \SpecialChar LaTeX
9085 プリアンブル中に意図的に置いたコマンド(
9086 \family typewriter
9087 .tex
9088 \family default
9089 ファイル中,「User specified \SpecialChar LaTeX
9090  commands」というコメントの直後にあります)を除いて,
9091 \family typewriter
9092
9093 \backslash
9094 makeatletter
9095 \family default
9096
9097 \family typewriter
9098
9099 \backslash
9100 makeatother
9101 \family default
9102 の間のもの(これらのコマンドを含む)をすべて削除します.
9103 \end_layout
9104
9105 \end_deeper
9106 \begin_layout Enumerate
9107 編集後のファイルを \SpecialChar LaTeX
9108 にかけて,正しく処理されることを確認します.
9109 \end_layout
9110
9111 \begin_layout Enumerate
9112 学術誌の要求事項を再読して,ファイル名と書式が正しいことを確認します.
9113 \end_layout
9114
9115 \begin_layout Enumerate
9116 投稿してください.
9117 \end_layout
9118
9119 \begin_layout Subsection
9120 特定のコマンドに関するコメント
9121 \end_layout
9122
9123 \begin_layout Standard
9124 AAS\SpecialChar TeX
9125 ユーザーの手引き(
9126 \family typewriter
9127 aasguide.tex
9128 \family default
9129 )に,各AAS\SpecialChar TeX
9130 コマンドの詳しい説明があるので,ここでは,各コマンドの使用法の詳細な説明は行いません.そこで,ここではユーザーの手引きに現れるとおりに一覧を列挙し
9131 て,必要なところだけコメントを加えることにしましょう.
9132 \end_layout
9133
9134 \begin_layout Subsubsection
9135 期待通りに動作するもの
9136 \end_layout
9137
9138 \begin_layout Standard
9139 これらは期待通りに動作するので,ここでは列挙するだけにして,コマンドの説明されている節を挙げておきます.
9140 \family typewriter
9141
9142 \backslash
9143 documentclass
9144 \family default
9145  (2.1.1)・
9146 \family typewriter
9147
9148 \backslash
9149 begin{document}
9150 \family default
9151  (2.2)・
9152 \family typewriter
9153
9154 \backslash
9155 title
9156 \family default
9157  (2.3)・
9158 \family typewriter
9159
9160 \backslash
9161 author
9162 \family default
9163  (2.3)・
9164 \family typewriter
9165
9166 \backslash
9167 affil
9168 \family default
9169  (2.3)・
9170 \family typewriter
9171
9172 \backslash
9173 abstract
9174 \family default
9175  (2.4)・
9176 \family typewriter
9177
9178 \backslash
9179 keywords
9180 \family default
9181  (2.5)・
9182 \family typewriter
9183
9184 \backslash
9185 section
9186 \family default
9187  (2.7)・
9188 \family typewriter
9189
9190 \backslash
9191 subsection
9192 \family default
9193  (2.7)・
9194 \family typewriter
9195
9196 \backslash
9197 subsubsection
9198 \family default
9199  (2.7)・
9200 \family typewriter
9201
9202 \backslash
9203 paragraph
9204 \family default
9205  (2.7)・
9206 \family typewriter
9207
9208 \backslash
9209 facility
9210 \family default
9211  (2.10)・
9212 \family typewriter
9213
9214 \backslash
9215 begin{displaymath}
9216 \family default
9217  (2.12)・
9218 \family typewriter
9219
9220 \backslash
9221 begin{equation}
9222 \family default
9223  (2.12)・
9224 \family typewriter
9225
9226 \backslash
9227 begin{eqnarray}
9228 \family default
9229  (2.12)・
9230 \family typewriter
9231
9232 \backslash
9233 begin{mathletters}
9234 \family default
9235  (2.12)・
9236 \family typewriter
9237
9238 \backslash
9239 begin{thebibliography}
9240 \family default
9241  (2.13.1)・
9242 \family typewriter
9243
9244 \backslash
9245 bibitem
9246 \family default
9247  (2.13.2)・全引用コマンドとその派生(2.13.2)・一般的なgraphicx図コマンド(2.14.1)・
9248 \family typewriter
9249
9250 \backslash
9251 begin{table}
9252 \family default
9253  (2.15.4)・
9254 \family typewriter
9255
9256 \backslash
9257 begin{tabular}
9258 \family default
9259  (2.15.4)・
9260 \family typewriter
9261
9262 \backslash
9263 caption
9264 \family default
9265  (2.15.4)・
9266 \family typewriter
9267
9268 \backslash
9269 label
9270 \family default
9271  (他にもあるが特に2.15.4)・
9272 \family typewriter
9273
9274 \backslash
9275 tablerefs
9276 \family default
9277  (2.15.5)・
9278 \family typewriter
9279
9280 \backslash
9281 tablecomments
9282 \family default
9283  (2.15.5)・
9284 \family typewriter
9285
9286 \backslash
9287 url
9288 \family default
9289  (2.17.4)・
9290 \family typewriter
9291
9292 \backslash
9293 end{document}
9294 \family default
9295  (2.18).
9296 \end_layout
9297
9298 \begin_layout Standard
9299 以下のスタイルオプションも正しく動作します.
9300 \family typewriter
9301 longabstract
9302 \family default
9303  (2.4)・
9304 \family typewriter
9305 preprint
9306 \family default
9307  (3.2.1)・
9308 \family typewriter
9309 preprint2
9310 \family default
9311  (3.2.2)・
9312 \family typewriter
9313 eqsecnum
9314 \family default
9315  (3.3)・
9316 \family typewriter
9317 flushrt
9318 \family default
9319  (3.4).これらは,
9320 \begin_inset Flex MenuItem
9321 status collapsed
9322
9323 \begin_layout Plain Layout
9324 文書\SpecialChar menuseparator
9325 設定
9326 \end_layout
9327
9328 \end_inset
9329
9330 にある,
9331 \family sans
9332 クラスオプション
9333 \family default
9334
9335 \family sans
9336 任意設定
9337 \family default
9338 ボックスに入力してください.
9339 \end_layout
9340
9341 \begin_layout Subsubsection
9342 動作するが,若干説明が必要なもの
9343 \end_layout
9344
9345 \begin_layout Standard
9346 以下のコマンドは動作しますが,若干の説明が必要です.
9347 \end_layout
9348
9349 \begin_layout Itemize
9350 以下の項目は,学術誌の編集者向けに取ってあるものですが,どうしても必要ならば,\SpecialChar LaTeX
9351 プリアンブルに入れることができます.
9352 \family typewriter
9353
9354 \backslash
9355 received
9356 \family default
9357
9358 \family typewriter
9359
9360 \backslash
9361 revised
9362 \family default
9363
9364 \family typewriter
9365
9366 \backslash
9367 accepted
9368 \family default
9369
9370 \family typewriter
9371
9372 \backslash
9373 ccc
9374 \family default
9375
9376 \family typewriter
9377 cpright
9378 \family default
9379 (すべて 2.1.3).
9380 \end_layout
9381
9382 \begin_layout Itemize
9383 以下の項目は,\SpecialChar LaTeX
9384 のプリアンブルに置くことができるもので,これらは,ひな型ファイルには,空の引数と共に含まれています.
9385 \family typewriter
9386
9387 \backslash
9388 slugcomment
9389 \family default
9390 (2.1.4)・
9391 \family typewriter
9392
9393 \backslash
9394 shorttitle
9395 \family default
9396 (2.1.5)・
9397 \family typewriter
9398
9399 \backslash
9400 shortauthors
9401 \family default
9402 (2.1.5).
9403 \end_layout
9404
9405 \begin_layout Itemize
9406
9407 \family typewriter
9408
9409 \backslash
9410 email
9411 \family default
9412 (2.3)―「単独で」使うことはできますが,段落の途中で使うことはできません.埋め込む必要がある場合には,\SpecialChar TeX
9413 コードを使用してください.
9414 \end_layout
9415
9416 \begin_layout Itemize
9417
9418 \family typewriter
9419
9420 \backslash
9421 and
9422 \family default
9423 (2.3)―後ろに{}が付記されます.これはエラーの原因にはなりません.
9424 \end_layout
9425
9426 \begin_layout Itemize
9427
9428 \family typewriter
9429
9430 \backslash
9431 notetoeditor
9432 \family default
9433 (2.6)―「単独で」使うことはできますが,段落の途中で使うことはできません.埋め込む必要がある場合には,\SpecialChar TeX
9434 コードを使用してください.
9435 \end_layout
9436
9437 \begin_layout Itemize
9438
9439 \family typewriter
9440
9441 \backslash
9442 placetable
9443 \family default
9444 (2.8)―相互参照用タグを挿入することはできません.手動でタグ名を入力する必要があります.
9445 \end_layout
9446
9447 \begin_layout Itemize
9448
9449 \family typewriter
9450
9451 \backslash
9452 placefigure
9453 \family default
9454 (2.8)—
9455 \family typewriter
9456
9457 \backslash
9458 placetable
9459 \family default
9460 と同様.
9461 \end_layout
9462
9463 \begin_layout Itemize
9464
9465 \family typewriter
9466
9467 \backslash
9468 acknowledgements
9469 \family default
9470 (2.9)―後ろに{}が付記されます.これはエラーの原因にはなりません.
9471 \end_layout
9472
9473 \begin_layout Itemize
9474
9475 \family typewriter
9476
9477 \backslash
9478 appendix
9479 \family default
9480 (2.11)―後ろに{}が付記されます.これはエラーの原因にはなりません.
9481 \end_layout
9482
9483 \begin_layout Itemize
9484
9485 \family typewriter
9486
9487 \backslash
9488 figcaption
9489 \family default
9490 (2.14.2)―文章のはじめにカーソルを置いて
9491 \begin_inset Flex MenuItem
9492 status collapsed
9493
9494 \begin_layout Plain Layout
9495 挿入\SpecialChar menuseparator
9496 短縮タイトル
9497 \end_layout
9498
9499 \end_inset
9500
9501 を選択すれば,非必須のファイル名引数を挿入することができます.「短縮タイトル」とありますが,
9502 \family typewriter
9503
9504 \backslash
9505 figcaption
9506 \family default
9507 が必要とする型の非必須引数を挿入します.望むらくはいつの日か改名されることでしょう.
9508 \end_layout
9509
9510 \begin_layout Itemize
9511
9512 \family typewriter
9513
9514 \backslash
9515 objectname
9516 \family default
9517 (2.17.1)―非必須パラメータとしてカタログIDを取る以外は,
9518 \family typewriter
9519
9520 \backslash
9521 figcaption
9522 \family default
9523 と同様.
9524 \end_layout
9525
9526 \begin_layout Itemize
9527
9528 \family typewriter
9529
9530 \backslash
9531 dataset
9532 \family default
9533 (2.17.1)―非必須パラメータとしてカタログIDを取る以外は,
9534 \family typewriter
9535
9536 \backslash
9537 figcaption
9538 \family default
9539 と同様.
9540 \end_layout
9541
9542 \begin_layout Subsubsection
9543 実装されていないため,\SpecialChar TeX
9544 コードを使用するもの
9545 \end_layout
9546
9547 \begin_layout Standard
9548
9549 \family typewriter
9550
9551 \backslash
9552 altaffilmark
9553 \family default
9554 (2.3)・
9555 \family typewriter
9556
9557 \backslash
9558 altaffiltext
9559 \family default
9560 (2.3)・
9561 \family typewriter
9562
9563 \backslash
9564 eqnum
9565 \family default
9566 (2.12)・
9567 \family typewriter
9568
9569 \backslash
9570 setcounter{equation}
9571 \family default
9572 (2.12)・学術誌名略語(2.12.4)・
9573 \family typewriter
9574
9575 \backslash
9576 figurenum
9577 \family default
9578 (2.14.1)・
9579 \family typewriter
9580
9581 \backslash
9582 epsscale
9583 \family default
9584 (2.14.1)・
9585 \family typewriter
9586
9587 \backslash
9588 plotone
9589 \family default
9590 (2.14.1)・
9591 \family typewriter
9592
9593 \backslash
9594 plottwo
9595 \family default
9596 (2.14.1)・
9597 \family typewriter
9598
9599 \backslash
9600 tablenum
9601 \family default
9602 (2.15.4)・
9603 \family typewriter
9604
9605 \backslash
9606 tableline
9607 \family default
9608 (2.15.4:入れたい場所の後ろに,左側セルの最初の要素として挿入する.表中では,\SpecialChar LyX
9609 の方法は使わないでください)・
9610 \family typewriter
9611
9612 \backslash
9613 tablenotemark
9614 \family default
9615 (2.15.5)・
9616 \family typewriter
9617
9618 \backslash
9619 tablenotetext
9620 \family default
9621 (2.15.5)・補遺(2.17)の大半(
9622 \family typewriter
9623
9624 \backslash
9625 objectname
9626 \family default
9627
9628 \family typewriter
9629
9630 \backslash
9631 dataset
9632 \family default
9633
9634 \family typewriter
9635
9636 \backslash
9637 url
9638 \family default
9639
9640 \family typewriter
9641
9642 \backslash
9643 email
9644 \family default
9645 を除く.上記参照)・
9646 \family typewriter
9647
9648 \backslash
9649 singlespace
9650 \family default
9651 (3.1)・
9652 \family typewriter
9653
9654 \backslash
9655 doublespace
9656 \family default
9657 (3.1)・
9658 \family typewriter
9659
9660 \backslash
9661 onecolumn
9662 \family default
9663 (3.2)・
9664 \family typewriter
9665
9666 \backslash
9667 twocolumn
9668 \family default
9669 (3.2)
9670 \end_layout
9671
9672 \begin_layout Subsubsection
9673 実装できないもの
9674 \end_layout
9675
9676 \begin_layout Standard
9677 references(2.12.3)環境とdeluxetable(2.14)環境は,少なくとも意味のあるような形で実装することができないので,無視してください.もし,
9678 絶対に,どうしても,deluxetableを使う必要があるならば,テキストエディタで別ファイルとして編集し,
9679 \begin_inset Flex MenuItem
9680 status collapsed
9681
9682 \begin_layout Plain Layout
9683 挿入\SpecialChar menuseparator
9684 ファイル
9685 \begin_inset Formula $\text{\textipa{}}$
9686 \end_inset
9687
9688 \SpecialChar menuseparator
9689 子文書
9690 \end_layout
9691
9692 \end_inset
9693
9694 を使用して,\SpecialChar LyX
9695 ファイルに読み込むことを推奨します.この実例は,
9696 \family typewriter
9697 aas_sample.lyx
9698 \family default
9699 ファイルをご参照ください.
9700 \end_layout
9701
9702 \begin_layout Subsection
9703 FAQとヒントと技とその他の考察
9704 \end_layout
9705
9706 \begin_layout Subsubsection
9707 \SpecialChar LyX
9708 をAAS\SpecialChar TeX
9709 と協調させる
9710 \end_layout
9711
9712 \begin_layout Standard
9713 \SpecialChar LyX
9714 に,新しいレイアウトと文書クラスを認識させるには若干コツが要ります.もしうまく行かなかったら,次のようにしてみてください.
9715 \end_layout
9716
9717 \begin_layout Enumerate
9718 \SpecialChar LaTeX
9719 が,AAS\SpecialChar TeX
9720 を検出できることを確認してください.AAS\SpecialChar TeX
9721 頒布版に含まれる
9722 \family typewriter
9723 sample.tex
9724 \family default
9725 (あるいは
9726 \family typewriter
9727 table.tex
9728 \family default
9729 でも可)を,\SpecialChar LaTeX
9730 やAAS\SpecialChar TeX
9731 とまったく関係のないディレクトリにコピーして,
9732 \family typewriter
9733 sample.tex
9734 \family default
9735 を\SpecialChar LaTeX
9736 にかけてください.
9737 \end_layout
9738
9739 \begin_layout Enumerate
9740
9741 \family typewriter
9742 aastex.layout
9743 \family default
9744 が,\SpecialChar LyX
9745
9746 \family typewriter
9747 layouts
9748 \family default
9749 フォルダにあることを確認してください.
9750 \end_layout
9751
9752 \begin_layout Enumerate
9753 \SpecialChar LyX
9754 中から
9755 \family sans
9756 ツール\SpecialChar menuseparator
9757 環境構成
9758 \family default
9759 を再度実行し,\SpecialChar LyX
9760 を再起動してください.
9761 \end_layout
9762
9763 \begin_layout Enumerate
9764 ひな型ではなく,通常の新規ファイルを開いてください.AAS\SpecialChar TeX
9765 が,
9766 \family sans
9767 文書\SpecialChar menuseparator
9768 設定
9769 \family default
9770 のクラス一覧に表示されていますか?
9771 \end_layout
9772
9773 \begin_layout Standard
9774 既存のAAS\SpecialChar TeX
9775 文書を処理する際に,AAS\SpecialChar TeX
9776 レイアウトを見つけられないとか,「タイトルレイアウトと通常のレイアウトを混在させないでください」といった警告が出るようであ
9777 れば,正しい導入が行われていません.
9778 \end_layout
9779
9780 \begin_layout Subsubsection
9781 表を処理する際の\SpecialChar LaTeX
9782 エラー
9783 \end_layout
9784
9785 \begin_layout Standard
9786 既定では,\SpecialChar LyX
9787 は,表のキャプションやタイトルを中央揃えにしようと試みます.これはAAS\SpecialChar TeX
9788 と悪い相互干渉を発生させるようですので,キャプションやタイトルのどこかをクリッ
9789 クして,
9790 \family sans
9791 編集\SpecialChar menuseparator
9792 段落設定
9793 \family default
9794 を選択し,
9795 \family sans
9796 配置
9797 \family default
9798
9799 \family sans
9800 両端揃え
9801 \family default
9802 に設定してください.私のところではこれで解決しました.
9803 \end_layout
9804
9805 \begin_layout Subsubsection
9806 書誌情報
9807 \end_layout
9808
9809 \begin_layout Standard
9810 若干の注意があります.(1)文献項目の本文中の空白取りが少しおかしくなることがあるようです.書誌情報を入力する際には,最後の著者と,著作年を入れる括弧の間にスペ
9811 ースを
9812 \emph on
9813 入れない
9814 \emph default
9815 ようにしてください.たとえば,
9816 \family typewriter
9817 Ressler(1992)
9818 \family default
9819 はいいですが,
9820 \family typewriter
9821 Ressler (1992)
9822 \family default
9823 ではだめです.(2)書誌情報の入力の仕方は,必ずしも自明ではありません.もっとも簡単な方法は,文書の最後に,最初の書誌情報をまず書き込み,それを
9824 \family sans
9825 書誌情報
9826 \family default
9827 環境としてマークすることです.すると,入力したものの前に,小さな灰色のボックスが現れます.このボックスをクリックして,残りの情報を入力してください.新しい書誌情
9828 報を追加するには,既存の書誌情報の後ろでリターンを押します.すると,新しいボックスの付いた新規行が出てくるので,後は同様にしてください.
9829 \end_layout
9830
9831 \begin_layout Subsubsection
9832 EPSファイルの読み込み
9833 \end_layout
9834
9835 \begin_layout Standard
9836 AAS\SpecialChar TeX
9837 には,自前の図関連コマンド(たとえば
9838 \family typewriter
9839
9840 \backslash
9841 plotone
9842 \family default
9843 )がありますが,私は(既定のgraphicxを使った)\SpecialChar LaTeX
9844 の標準図コマンドの方がずっと好きです.望めば,図フロートボックスに,\SpecialChar TeX
9845 コードで
9846 \family typewriter
9847
9848 \backslash
9849 plotone
9850 \family default
9851 等のコマンドを挿入することはできますが,私には正しいレイアウトを得ることができた試しがありません.標準の画像コマンドを使えば,\SpecialChar LyX
9852 は,
9853 \family typewriter
9854
9855 \backslash
9856 usepackage{graphics}
9857 \family default
9858 コマンドを\SpecialChar LaTeX
9859 プリアンブルに挿入し,図を\SpecialChar LaTeX2e
9860 の標準的な方法で取り扱って,文章の中にちりばめます.現在,ApJは,ちょうどこのようにして作成した図を受け入れていますが,A
9861 Jはまだ「すべてを末尾に積み上げる」方法を使用しているかもしれません.
9862 \end_layout
9863
9864 \begin_layout Subsubsection
9865 可能だったが,実装しなかったもの
9866 \end_layout
9867
9868 \begin_layout Standard
9869 「素敵な」ものの中には,実装することも可能だったけれども,あえて実装しなかったものがあります.たとえば,紙の原稿ではダブルスペースであったとしても,\SpecialChar LyX
9870 ウィンドウ中
9871 で,文章をダブルスペースにする意味はないと考えました.また,preprint様式とpreprint2様式を,独立したレイアウトにすることもしませんでした.いずれ
9872 にしても,執筆時間のほとんどを,平の原稿モードで使うのがほとんどですから,これらの機能でディスクスペースを消費しないことにしました.
9873 \end_layout
9874
9875 \begin_layout Subsection
9876 最後に
9877 \end_layout
9878
9879 \begin_layout Standard
9880 これまでに進んできた道のりは,長い人も短い人もいることでしょう.私には,ApJとAJに発表した論文がありますが,その努力の98
9881 \begin_inset space \thinspace{}
9882 \end_inset
9883
9884 %は\SpecialChar LyX
9885 上で為されました.残りの2
9886 \begin_inset space \thinspace{}
9887 \end_inset
9888
9889 %が,\SpecialChar LaTeX
9890 での後処理と若干の後片付けです.投稿の過程では何のトラブルもなく,これらの学術誌が通常の投稿原稿と違う点に気づくことはなかったでしょう.ですから,がんばっ
9891 て発表してください!
9892 \end_layout
9893
9894 \begin_layout Section
9895 AMS \SpecialChar LaTeX
9896
9897 \end_layout
9898
9899 \begin_layout Standard
9900
9901 \noun on
9902 David Johnson
9903 \noun default
9904 文 
9905 \noun on
9906 Richard Heck
9907 \noun default
9908 改訂
9909 \begin_inset VSpace bigskip
9910 \end_inset
9911
9912
9913 \end_layout
9914
9915 \begin_layout Standard
9916 AMS \SpecialChar LaTeX
9917 レイアウトは,American Mathematical Society(アメリカ数学会)の刊行物に投稿する数学論文用のスタイルです.レイアウトは,特定
9918 の学術誌向けに仕立てられてはいませんが,簡単にそうすることができます.各学術誌毎の指示については,AMSの説明書をご参照ください(通常は,\SpecialChar TeX
9919 出力中の一行を変更する
9920 必要があるだけです).AMSの説明書は,ウェブWeb上の
9921 \begin_inset Flex URL
9922 status open
9923
9924 \begin_layout Plain Layout
9925
9926 http://www.ams.org
9927 \end_layout
9928
9929 \end_inset
9930
9931 か,FTPで
9932 \begin_inset Flex URL
9933 status open
9934
9935 \begin_layout Plain Layout
9936
9937 ftp://ftp.ams.org/pub/tex/amslatex/
9938 \end_layout
9939
9940 \end_inset
9941
9942 から入手することができます.これらのレイアウトは,数学的な文章を書くのであれば,どんなときでも適切かつ有用であるはずです.
9943 \end_layout
9944
9945 \begin_layout Standard
9946 基本となるAMS \SpecialChar LaTeX
9947 レイアウトには,以下の二つがあります.
9948 \end_layout
9949
9950 \begin_layout Itemize
9951 amsart:標準のAMS article書式.
9952 \end_layout
9953
9954 \begin_layout Itemize
9955 amsbook:標準のAMS book(実際はモノグラフ)書式.
9956 \end_layout
9957
9958 \begin_layout Standard
9959 これらのレイアウトには,それ自身では,AMSクラスを使用するのに必要最低限のものしか含まれていません.特に,定理や補題などを設定するのに使用される「theore
9960 m」環境は,何一つ含まれていません.これらは,代わりに
9961 \begin_inset Flex Code
9962 status collapsed
9963
9964 \begin_layout Plain Layout
9965 定理(AMS)
9966 \end_layout
9967
9968 \end_inset
9969
9970 モジュールに収録されており,AMSクラスのいずれかを選択すると,このモジュールが既定で読み込まれるようになっています(これは別のクラスでも使用することができ,別
9971 のものに変えたいときは取り除くこともできます).少し使用頻度の低いものとしては,
9972 \begin_inset Flex Code
9973 status collapsed
9974
9975 \begin_layout Plain Layout
9976 定理(AMS拡張)
9977 \end_layout
9978
9979 \end_inset
9980
9981 モジュールがあり,これは手動で読み込む必要があります.
9982 \end_layout
9983
9984 \begin_layout Standard
9985 既定では,定理類は,文書を通して連番が振られますが,これは
9986 \begin_inset Flex Code
9987 status collapsed
9988
9989 \begin_layout Plain Layout
9990 定理(節毎連番)
9991 \end_layout
9992
9993 \end_inset
9994
9995 モジュールを読み込めば変更することができ,
9996 \begin_inset Flex Code
9997 status collapsed
9998
9999 \begin_layout Plain Layout
10000 book (AMS)
10001 \end_layout
10002
10003 \end_inset
10004
10005 を使用している場合には
10006 \begin_inset Flex Code
10007 status collapsed
10008
10009 \begin_layout Plain Layout
10010 定理(章毎連番)
10011 \end_layout
10012
10013 \end_inset
10014
10015 を用いても変更することができます.これらを用いると,出力は
10016 \begin_inset Formula $n.m$
10017 \end_inset
10018
10019 のようになり,最初の数字は節番号(または章番号),次の数字はそれまで同節内(章内)に現れた出力の全数を表します.大半の環境は,連番なしでも用いることができます.
10020 連番なしのものは,環境名の後ろにアスタリスクを付けたもので表されます.連番なしの出力
10021 \emph on
10022 のみ
10023 \emph default
10024 が欲しい場合には,
10025 \begin_inset Flex Code
10026 status collapsed
10027
10028 \begin_layout Plain Layout
10029 定理(連番なし)
10030 \end_layout
10031
10032 \end_inset
10033
10034 モジュールを用います.
10035 \end_layout
10036
10037 \begin_layout Standard
10038 これらのモジュールは,AMSクラスで使用する
10039 \emph on
10040 必要はない
10041 \emph default
10042 ことに注意してください.
10043 \begin_inset Flex Code
10044 status collapsed
10045
10046 \begin_layout Plain Layout
10047 定理(AMS)
10048 \end_layout
10049
10050 \end_inset
10051
10052 モジュールや上述の他のモジュールは,他のクラス,たとえば
10053 \begin_inset Flex Code
10054 status collapsed
10055
10056 \begin_layout Plain Layout
10057 article
10058 \end_layout
10059
10060 \end_inset
10061
10062
10063 \begin_inset Flex Code
10064 status collapsed
10065
10066 \begin_layout Plain Layout
10067 report
10068 \end_layout
10069
10070 \end_inset
10071
10072
10073 \begin_inset Flex Code
10074 status collapsed
10075
10076 \begin_layout Plain Layout
10077 book (KOMA-script)
10078 \end_layout
10079
10080 \end_inset
10081
10082 などで問題なく使用することができます.
10083 \end_layout
10084
10085 \begin_layout Subsection
10086 これらのレイアウトが提供するもの
10087 \end_layout
10088
10089 \begin_layout Standard
10090 これらのレイアウトが提供している環境を列挙すると,長い一覧となります.AMS-\SpecialChar LaTeX
10091 では,実のところ,「theorem」環境の派生型を際限なく定義していくことが可能で
10092 す.しかし,AMSは,\SpecialChar LyX
10093 で利用可能になっている環境のみを使用することを推奨しています.
10094 \end_layout
10095
10096 \begin_layout Standard
10097 \begin_inset Flex Code
10098 status collapsed
10099
10100 \begin_layout Plain Layout
10101 article (AMS)
10102 \end_layout
10103
10104 \end_inset
10105
10106
10107 \begin_inset Flex Code
10108 status collapsed
10109
10110 \begin_layout Plain Layout
10111 book (AMS)
10112 \end_layout
10113
10114 \end_inset
10115
10116 には,——
10117 \begin_inset space ~
10118 \end_inset
10119
10120
10121 \begin_inset Flex Noun
10122 status collapsed
10123
10124 \begin_layout Plain Layout
10125
10126 \end_layout
10127
10128 \end_inset
10129
10130
10131 \begin_inset Flex Noun
10132 status collapsed
10133
10134 \begin_layout Plain Layout
10135 書誌情報
10136 \end_layout
10137
10138 \end_inset
10139
10140
10141 \begin_inset Flex Noun
10142 status collapsed
10143
10144 \begin_layout Plain Layout
10145 タイトル
10146 \end_layout
10147
10148 \end_inset
10149
10150
10151 \begin_inset Flex Noun
10152 status collapsed
10153
10154 \begin_layout Plain Layout
10155 著者
10156 \end_layout
10157
10158 \end_inset
10159
10160
10161 \begin_inset Flex Noun
10162 status collapsed
10163
10164 \begin_layout Plain Layout
10165 日付
10166 \end_layout
10167
10168 \end_inset
10169
10170 のような標準環境の他に
10171 \begin_inset space ~
10172 \end_inset
10173
10174 ——
10175 \begin_inset space ~
10176 \end_inset
10177
10178 以下の環境があります.
10179 \end_layout
10180
10181 \begin_layout Description
10182 住所 これは著者の恒久的な住所です.
10183 \end_layout
10184
10185 \begin_layout Description
10186 現在の住所 住所と別に指定されているときには,著者の投稿時の仮初めの住所です.
10187 \end_layout
10188
10189 \begin_layout Description
10190 電子メール 著者の電子メールアドレス
10191 \end_layout
10192
10193 \begin_layout Description
10194 URL 著者のウェブアドレス.任意.
10195 \end_layout
10196
10197 \begin_layout Description
10198 キーワード 論文中で論じられているトピックを識別するためのキーワードやキーフレーズ.
10199 \end_layout
10200
10201 \begin_layout Description
10202 分野分類 
10203 \emph on
10204 Mathematical Reviews
10205 \emph default
10206 に説明が公表されているAMS Subject Classificationsの分類番号を指します.上述したAMSのウェブサイトでも,オンラインで見ることができま
10207 す.
10208 \end_layout
10209
10210 \begin_layout Description
10211 謝辞
10212 \end_layout
10213
10214 \begin_layout Description
10215 献呈
10216 \end_layout
10217
10218 \begin_layout Description
10219 翻訳者
10220 \end_layout
10221
10222 \begin_layout Standard
10223 以下の環境は,
10224 \begin_inset Flex Code
10225 status collapsed
10226
10227 \begin_layout Plain Layout
10228 定理
10229 \end_layout
10230
10231 \end_inset
10232
10233 モジュールと
10234 \begin_inset Flex Code
10235 status collapsed
10236
10237 \begin_layout Plain Layout
10238 定理(AMS)
10239 \end_layout
10240
10241 \end_inset
10242
10243 モジュールの両方で提供され,後者の場合には,星付き(連番なし)版と星なし(連番)版の両方が提供されます.
10244 \begin_inset Flex Code
10245 status collapsed
10246
10247 \begin_layout Plain Layout
10248 定理(連番なし)
10249 \end_layout
10250
10251 \end_inset
10252
10253 モジュールでは,同環境の星付き版だけが提供されます.
10254 \end_layout
10255
10256 \begin_layout Theorem
10257 これは,通常,得られた主要な結果を叙述するのに使用されます.
10258 \end_layout
10259
10260 \begin_layout Corollary*
10261 これは直前の叙述から比較的直接に導き出せる結果を叙述するのに使います.これも主要な結果であることがあります.
10262 \end_layout
10263
10264 \begin_layout Lemma
10265 他の叙述を証明するために必要とされる,比較的小さな結果です.
10266 \end_layout
10267
10268 \begin_layout Proposition
10269 議論されている一般的な理論に(希望的には)何かを付け加えるような,主要ではない結果です.
10270 \end_layout
10271
10272 \begin_layout Conjecture
10273 正当化を与えずに述べられた叙述で,著者には証明法がわからないけれども,正しいと(少なくとも著者にとっては)思われるものです.
10274 \end_layout
10275
10276 \begin_layout Definition*
10277 これは自明でしょう.この環境のフォントは,前述の環境とは異なるフォントが使用されます.
10278 \end_layout
10279
10280 \begin_layout Problem
10281 これが何を指すかは必ずしも特定されていません.ご自分で解明してください.
10282 \end_layout
10283
10284 \begin_layout Exercise*
10285 この環境の説明を記述せよ.
10286 \end_layout
10287
10288 \begin_layout Note
10289 この環境もtheorem型,通常は重要性の低い所見に用いられます.
10290 \end_layout
10291
10292 \begin_layout Claim*
10293 より大きな結果の証明を与える途中で,しばしば用いられます.
10294 \end_layout
10295
10296 \begin_layout Case
10297 一般的に,これらはある条件の特定の場合を取り上げて,長い議論を区切るのに用いられます.
10298 \end_layout
10299
10300 \begin_layout Case
10301 ケースの連番の枠組みは,それ自身で独立していて,他の連番の叙述とは区別されます.
10302 \end_layout
10303
10304 \begin_layout Proof
10305 この環境の最後には,証了記号(通常は四角ですがスタイルによって変わります)が置かれます.この環境の中に別の環境を入れたい——たとえばケース環境など——場合で,証
10306 了記号は証明環境の終わりにのみ現れるようにしたい場合には,他の環境は証明環境の中に入れ子にしなくてはなりません.入れ子に関する情報については,
10307 \emph on
10308 ユーザーの手引き
10309 \emph default
10310
10311 \emph on
10312 環境を入れ子にする
10313 \emph default
10314 の節をご覧ください.
10315 \end_layout
10316
10317 \begin_layout Standard
10318 そして,以下は
10319 \begin_inset Flex Code
10320 status collapsed
10321
10322 \begin_layout Plain Layout
10323 定理(AMS拡張)
10324 \end_layout
10325
10326 \end_inset
10327
10328 で提供されるものです.
10329 \end_layout
10330
10331 \begin_layout Criterion*
10332 必要とされる条件です.
10333 \end_layout
10334
10335 \begin_layout Algorithm*
10336 使用する一般的手順です.
10337 \end_layout
10338
10339 \begin_layout Axiom*
10340 議論されている系内部で真と仮定される性質や命題です.
10341 \end_layout
10342
10343 \begin_layout Condition*
10344 議論の現在の文脈で仮定されている条件を述べるのに,よく用いられます.
10345 \end_layout
10346
10347 \begin_layout Note*
10348 注記と同様です.
10349 \end_layout
10350
10351 \begin_layout Notation*
10352 表記法の説明に用いられます.
10353 \end_layout
10354
10355 \begin_layout Summary
10356 本当に説明する必要がありますか?
10357 \end_layout
10358
10359 \begin_layout Acknowledgement*
10360 謝辞(acknowledgement)です.
10361 \end_layout
10362
10363 \begin_layout Conclusion*
10364 長い議論の終わりに時々用いられます.
10365 \end_layout
10366
10367 \begin_layout Fact
10368 命題と同様の用いられ方をしますが,だいたい長くないものに使われるようです.
10369 \end_layout
10370
10371 \begin_layout Standard
10372 さらに,AMSクラスは,AMS \SpecialChar LaTeX
10373 パッケージとAMSフォントパッケージを自動的に提供します.これらの環境を使用するためには,お使いのシステム上で利用可能となってい
10374 る必要があります.
10375 \end_layout
10376
10377 \begin_layout Section
10378 AGU各誌(
10379 \family sans
10380 aguplus)
10381 \end_layout
10382
10383 \begin_layout Standard
10384
10385 \noun on
10386 Martin Vermeer
10387 \noun default
10388
10389 \end_layout
10390
10391 \begin_layout Subsection
10392 概要
10393 \end_layout
10394
10395 \begin_layout Standard
10396 これはAmerican Geophysical Society(アメリカ地球物理学会) の各学術誌向けのレイアウトファイルです.AGU発行のクラスファイルおよび
10397 AGUplusの両方(これらは
10398 \begin_inset Flex URL
10399 status collapsed
10400
10401 \begin_layout Plain Layout
10402
10403 http://publications.agu.org/files/2013/08/AGU-LaTeX.zip
10404 \end_layout
10405
10406 \end_inset
10407
10408 にあります)が導入されていることが必要です.
10409 \end_layout
10410
10411 \begin_layout Subsection
10412 新しいスタイル
10413 \end_layout
10414
10415 \begin_layout Standard
10416
10417 \family sans
10418 段落
10419 \family default
10420 および
10421 \family sans
10422 段落*
10423 \family default
10424 は,定義し直されています.\SpecialChar LyX
10425 の画面では,依然として
10426 \family sans
10427 段落
10428 \family default
10429
10430 \family sans
10431 段落*
10432 \family default
10433 と表示されますが,AGUクラスにおける\SpecialChar LaTeX
10434 の対応物は,
10435 \family sans
10436 Subsubsubsection
10437 \family default
10438
10439 \family sans
10440 Subsubsubsection*
10441 \family default
10442 です.
10443 \end_layout
10444
10445 \begin_layout Standard
10446 新しく定義されたスタイルには,
10447 \family sans
10448 左ヘッダ
10449 \family default
10450
10451 \family sans
10452 右ヘッダ
10453 \family default
10454
10455 \family sans
10456 受理日
10457 \family default
10458
10459 \family sans
10460 改訂
10461 \family default
10462
10463 \family sans
10464 採択日
10465 \family default
10466
10467 \family sans
10468 CCC
10469 \family default
10470
10471 \family sans
10472 論文ID
10473 \family default
10474
10475 \family sans
10476 著者住所
10477 \family default
10478
10479 \family sans
10480 廃棄用コメント
10481 \family default
10482 があります.これらは,ほとんど草稿用属性で,AGUクラス説明書で説明されています.
10483 \end_layout
10484
10485 \begin_layout Standard
10486 おそらく,これはまだ恐ろしく不完全です.
10487 \end_layout
10488
10489 \begin_layout Subsection
10490 新しいフロート
10491 \end_layout
10492
10493 \begin_layout Standard
10494
10495 \family sans
10496 平面表(Planotable
10497 \family default
10498 )と
10499 \family sans
10500 挿絵
10501 \family default
10502 (Plate)が新しいフロートです.また,
10503 \family sans
10504 表キャプション
10505 \family default
10506 も付け加えられています.
10507 \end_layout
10508
10509 \begin_layout Subsection
10510 サポートされている学術誌
10511 \end_layout
10512
10513 \begin_layout Itemize
10514
10515 \emph on
10516 Journal of Geophysical Research
10517 \emph default
10518
10519 \family typewriter
10520 jgrga.layout
10521 \family default
10522  — Martin Vermeer
10523 \end_layout
10524
10525 \begin_layout Standard
10526 ここにあなたの作ったものを加えてください.難しくはありません.
10527 \family typewriter
10528 jgrga.layout
10529 \family default
10530 と 
10531 \family typewriter
10532 aguplus.inc
10533 \family default
10534 を用例として見てください.
10535 \end_layout
10536
10537 \begin_layout Subsection
10538 バグと注意すべきこと
10539 \end_layout
10540
10541 \begin_layout Standard
10542 新しいレイアウトを使うためには,新規文書の作成時に以下の手順を行う必要があります.
10543 \end_layout
10544
10545 \begin_layout Enumerate
10546
10547 \emph on
10548 babelを無効にしてください.
10549 \emph default
10550 これは,
10551 \family sans
10552 ツール\SpecialChar menuseparator
10553 設定
10554 \family default
10555 メニュー項目で行うことができます(AGUの論文は常に英語ですよね.ですから他の言語は
10556 \emph on
10557 選ばないで下さい
10558 \emph default
10559 ).
10560 \end_layout
10561
10562 \begin_layout Enumerate
10563 使用文書の追加オプションフィールドに
10564 \family typewriter
10565 jgrga
10566 \family default
10567 と入力してください(すみません,これはバグです).
10568 \end_layout
10569
10570 \begin_layout Enumerate
10571 Bib\SpecialChar TeX
10572 差込枠の2番目のフィールドに
10573 \family sans
10574 agu
10575 \family default
10576 と入力して,書誌情報のスタイルに
10577 \family typewriter
10578 agu.bst
10579 \family default
10580 を使用していることを確認してください.標準スタイルはうまく動作しません.
10581 \end_layout
10582
10583 \begin_layout Section
10584 Broadway
10585 \end_layout
10586
10587 \begin_layout Standard
10588
10589 \noun on
10590 Garst Reese
10591 \noun default
10592
10593 \end_layout
10594
10595 \begin_layout Subsection
10596 はじめに
10597 \end_layout
10598
10599 \begin_layout Standard
10600 Broadwayは演劇を書くためのものです.書式はHollywoodよりも装飾的で,それほど標準化されていません.この書式はワークショップに向いているでしょう.
10601 \end_layout
10602
10603 \begin_layout Subsection
10604 特別な問題
10605 \end_layout
10606
10607 \begin_layout Standard
10608 Hollywoodと同様です.
10609 \end_layout
10610
10611 \begin_layout Subsection
10612 特別の機能
10613 \end_layout
10614
10615 \begin_layout Standard
10616
10617 \family sans
10618 話者
10619 \family default
10620 の名前をラベルとして挿入し,名前を挿入する際には,このラベルを相互参照してください.相互参照ダイアログには,登場人物の現在の配役が表示されます.
10621 \end_layout
10622
10623 \begin_layout Subsection
10624 用紙寸法と余白
10625 \end_layout
10626
10627 \begin_layout Standard
10628 USレター寸法で,余白は左1.6インチ,右0.75インチ,上0.5インチ,下0.75インチです.
10629 \end_layout
10630
10631 \begin_layout Subsection
10632 環境
10633 \end_layout
10634
10635 \begin_layout Standard
10636 以下の環境を使うことができます.右に記してある
10637 \begin_inset Flex Ruby
10638 status collapsed
10639
10640 \begin_layout Plain Layout
10641
10642 \begin_inset Argument post:1
10643 status collapsed
10644
10645 \begin_layout Plain Layout
10646 キー
10647 \end_layout
10648
10649 \end_inset
10650
10651
10652 \end_layout
10653
10654 \end_inset
10655
10656 割当ては,broadway.bindを使った場合のものです.
10657 \end_layout
10658
10659 \begin_layout Itemize
10660
10661 \family sans
10662 標準
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 n
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 a
10695 \begin_inset Newline newline
10696 \end_inset
10697
10698
10699 \family default
10700 自動的に連番が振られます.連番は,画面上ではアラビア数字ですが,出力ではローマ数字です.
10701 \end_layout
10702
10703 \begin_layout Itemize
10704
10705 \family sans
10706 幕*
10707 \begin_inset space \hfill{}
10708 \end_inset
10709
10710 M-z S at
10711 \begin_inset Newline newline
10712 \end_inset
10713
10714
10715 \family default
10716 幕の副題です.単に中央揃えの文になります.
10717 \end_layout
10718
10719 \begin_layout Itemize
10720
10721 \family sans
10722 場面
10723 \begin_inset space \hfill{}
10724 \end_inset
10725
10726 M-z S-S
10727 \begin_inset Newline newline
10728 \end_inset
10729
10730
10731 \family default
10732 自動的に連番は振られませんので,手動で番号を付けてください.これは私がどうすればいいか分からなかったためです.
10733 \end_layout
10734
10735 \begin_layout Itemize
10736
10737 \family sans
10738 幕開きに:
10739 \begin_inset space \hfill{}
10740 \end_inset
10741
10742 M-z S-R
10743 \begin_inset Newline newline
10744 \end_inset
10745
10746
10747 \family default
10748 ト書きの特殊な場合で,カーテンが上がるときの舞台設定と動作を説明します.
10749 \end_layout
10750
10751 \begin_layout Itemize
10752
10753 \family sans
10754 話者
10755 \begin_inset space \hfill{}
10756 \end_inset
10757
10758 M-z s
10759 \begin_inset Newline newline
10760 \end_inset
10761
10762
10763 \family default
10764 話者(役者)の配役です.すべて大文字で中央揃えに置かれます.
10765 \end_layout
10766
10767 \begin_layout Itemize
10768
10769 \family sans
10770 括弧付き
10771 \begin_inset space \hfill{}
10772 \end_inset
10773
10774 M-z p
10775 \begin_inset Newline newline
10776 \end_inset
10777
10778
10779 \family default
10780 話者への指示です.括弧は自動的に挿入されます.画面上には左括弧(のみが表示されますが,印字出力には両方の括弧が表示されます.この環境は,
10781 \family sans
10782 対話
10783 \family default
10784 の中だけで使用されます. 
10785 \end_layout
10786
10787 \begin_layout Itemize
10788
10789 \family sans
10790 対話
10791 \begin_inset space \hfill{}
10792 \end_inset
10793
10794 M-z d
10795 \begin_inset Newline newline
10796 \end_inset
10797
10798
10799 \family default
10800 話者の言う内容.
10801 \end_layout
10802
10803 \begin_layout Itemize
10804
10805 \family sans
10806 幕切れ
10807 \begin_inset space \hfill{}
10808 \end_inset
10809
10810 M-z S-C
10811 \begin_inset Newline newline
10812 \end_inset
10813
10814
10815 \family default
10816 幕が降ります.
10817 \end_layout
10818
10819 \begin_layout Itemize
10820
10821 \family sans
10822 タイトル
10823 \begin_inset space \hfill{}
10824 \end_inset
10825
10826 M-z S-T
10827 \end_layout
10828
10829 \begin_layout Itemize
10830
10831 \family sans
10832 著者
10833 \begin_inset space \hfill{}
10834 \end_inset
10835
10836 M-z S-A
10837 \end_layout
10838
10839 \begin_layout Itemize
10840
10841 \family sans
10842 右寄せ住所
10843 \begin_inset space \hfill{}
10844 \end_inset
10845
10846 M-z r
10847 \end_layout
10848
10849 \begin_layout Section
10850 Dinbrief
10851 \end_layout
10852
10853 \begin_layout Standard
10854 文書クラス
10855 \family sans
10856 dinbrief
10857 \family default
10858 は,ドイツの慣習に則った書簡の組版を行うのに用いられます.ひな型ファイルが
10859 \family typewriter
10860 .../lyx/share/templates
10861 \family default
10862 にあるので,それを土台として使用してください.
10863 \end_layout
10864
10865 \begin_layout Section
10866 EGS各誌
10867 \family sans
10868 (egs)
10869 \end_layout
10870
10871 \begin_layout Standard
10872
10873 \noun on
10874 Martin Vermeer
10875 \noun default
10876
10877 \end_layout
10878
10879 \begin_layout Subsection
10880 概要
10881 \end_layout
10882
10883 \begin_layout Standard
10884 これはEuropean Geophysical Society(欧州地球物理学会)の学術誌向けのレイアウトファイルです.必要とされる
10885 \family typewriter
10886 egs.cls
10887 \family default
10888 は,EGSのウェブサイト
10889 \begin_inset Flex URL
10890 status collapsed
10891
10892 \begin_layout Plain Layout
10893
10894 http://www.copernicus.org/
10895 \end_layout
10896
10897 \end_inset
10898
10899 からダウンロードできます.
10900 \end_layout
10901
10902 \begin_layout Subsection
10903 新しいスタイル
10904 \end_layout
10905
10906 \begin_layout Standard
10907 新しいスタイルとして,
10908 \family sans
10909 右寄せ住所
10910 \family default
10911
10912 \family sans
10913 \SpecialChar LaTeX
10914 タイトル
10915 \family default
10916
10917 \family sans
10918 所属
10919 \family default
10920
10921 \family sans
10922 学術誌名
10923 \family default
10924
10925 \family sans
10926 原稿番号
10927 \family default
10928
10929 \family sans
10930 筆頭著者
10931 \family default
10932
10933 \family sans
10934 受理日
10935 \family default
10936
10937 \family sans
10938 採択日
10939 \family default
10940
10941 \family sans
10942 オフセット
10943 \family default
10944 があります.現在のレイアウトファイルは,残念ながらほとんどモジュール化されておらず,さまざまな
10945 \family typewriter
10946 std*.inc
10947 \family default
10948 ファイルを読み込む形に変えた方が便利になると思われます.
10949 \end_layout
10950
10951 \begin_layout Section
10952 Elsevier各誌
10953 \end_layout
10954
10955 \begin_layout Standard
10956 \SpecialChar LyX
10957 ひな型ファイルの
10958 \family typewriter
10959 elsarticle.lyx
10960 \family default
10961 を参照してください.必要な情報は全てそこにあります.
10962 \end_layout
10963
10964 \begin_layout Section
10965 Foils (別名Foil\SpecialChar TeX
10966 )
10967 \begin_inset CommandInset label
10968 LatexCommand label
10969 name "sec:foiltex"
10970
10971 \end_inset
10972
10973
10974 \end_layout
10975
10976 \begin_layout Standard
10977
10978 \noun on
10979 Allan Rae
10980 \noun default
10981
10982 \end_layout
10983
10984 \begin_layout Subsection
10985 はじめに
10986 \end_layout
10987
10988 \begin_layout Standard
10989 本節では,プレゼンテーション用のスライドを作るための,\SpecialChar LyX
10990 の使用法を解説します.スライドを作ることのできる文書クラスには,slides・Foil\SpecialChar TeX
10991 ・seminar・b
10992 eamer・powerdotといったクラスがありますが,本節では,そのうちslidesの解説を行います.
10993 \end_layout
10994
10995 \begin_layout Standard
10996 誤解のないように,わかりやすく明確に,もう一度言っておきます.
10997 \end_layout
10998
10999 \begin_layout Standard
11000 \begin_inset VSpace bigskip
11001 \end_inset
11002
11003
11004 \end_layout
11005
11006 \begin_layout Standard
11007 \align center
11008
11009 \size large
11010 本節は「
11011 \family sans
11012 FoilTeX
11013 \family default
11014 」クラス
11015 \emph on
11016 のみの
11017 \emph default
11018 解説を行います.
11019 \end_layout
11020
11021 \begin_layout Standard
11022 \begin_inset VSpace bigskip
11023 \end_inset
11024
11025
11026 \end_layout
11027
11028 \begin_layout Standard
11029
11030 \family sans
11031 transparencies (slides)
11032 \family default
11033 」の解説をお探しであれば,第
11034 \begin_inset CommandInset ref
11035 LatexCommand ref
11036 reference "sec:slitex"
11037
11038 \end_inset
11039
11040 節をご覧ください.お使いのコンピュータに
11041 \family sans
11042 foils
11043 \family default
11044 クラス(
11045 \family sans
11046 FoilTeX
11047 \family default
11048 )が導入されていなければ,
11049 \family sans
11050 foils
11051 \family default
11052 ほど良くはありませんが,おそらく
11053 \family sans
11054 slides
11055 \family default
11056 クラスを使わざるをえないでしょう.
11057 \end_layout
11058
11059 \begin_layout Standard
11060
11061 \family sans
11062 foils
11063 \family default
11064 クラスは,\SpecialChar LaTeX2e
11065 の一部として含まれている\SpecialChar LaTeX
11066 クラスファイル
11067 \family sans
11068 foils.cls
11069 \family default
11070 の第2.1版とともに使われるように設計されています.
11071 \end_layout
11072
11073 \begin_layout Subsection
11074 最初の一歩
11075 \end_layout
11076
11077 \begin_layout Standard
11078 いうまでもなく,この文書クラスを使うには,
11079 \family sans
11080 文書\SpecialChar menuseparator
11081 設定\SpecialChar menuseparator
11082 文書クラス
11083 \family default
11084 メニューの
11085 \family sans
11086 文書クラス
11087 \family default
11088 ドロップダウンで「
11089 \family sans
11090 FoilTeX
11091 \family default
11092 」を選択する必要があります.また,
11093 \family sans
11094 文書設定
11095 \family default
11096 ダイアログ中には,以下のように,このクラスに特有の設定がいくつかあることを知っておかなくてはなりません.
11097 \end_layout
11098
11099 \begin_layout Itemize
11100
11101 \family sans
11102 文書設定
11103 \family default
11104 ダイアログ中の,
11105 \family sans
11106 両面文書
11107 \family default
11108 オプションと
11109 \family sans
11110 二段組文書
11111 \family default
11112 オプションは変更しないでください.これらは 
11113 \family sans
11114 foils
11115 \family default
11116 クラスでは無視されます.
11117 \end_layout
11118
11119 \begin_layout Itemize
11120 既定のフォント寸法は20ptであり,17
11121 \begin_inset space \thinspace{}
11122 \end_inset
11123
11124 pt・25
11125 \begin_inset space \thinspace{}
11126 \end_inset
11127
11128 pt・30
11129 \begin_inset space \thinspace{}
11130 \end_inset
11131
11132 ptを選択することも可能です.
11133 \end_layout
11134
11135 \begin_layout Itemize
11136 既定のフォントは
11137 \family sans
11138 sans
11139 \family default
11140  
11141 \family sans
11142 serif
11143 \family default
11144 ですが,数式ではすべて,通常のローマン体が使用されます.
11145 \end_layout
11146
11147 \begin_layout Itemize
11148 Foil\SpecialChar TeX
11149 は,35
11150 \begin_inset space \thinspace{}
11151 \end_inset
11152
11153 mmスライド用の特殊寸法の他,A4とレター大の用紙寸法をサポートします.A5・B5・リーガル・エグゼクティブ大の用紙寸法はサポートしていません.
11154 \end_layout
11155
11156 \begin_layout Itemize
11157
11158 \family sans
11159 フロートの配置
11160 \family default
11161 の設定は無視されますので,わざわざ変更する必要はありません.フロートはすべて,本文中で定義された位置に表示されます.
11162 \end_layout
11163
11164 \begin_layout Itemize
11165 このクラスの
11166 \family sans
11167 ページレイアウト
11168 \family default
11169 の設定は,若干異なった挙動を示します.Foil\SpecialChar TeX
11170 では,ユーザ定義のロゴをはじめ,フッタとへッダに広範な設定ができます.詳細については第
11171 \begin_inset CommandInset ref
11172 LatexCommand ref
11173 reference "sec:foilfoot"
11174
11175 \end_inset
11176
11177 節をご覧ください.タイトルページは,文書中の他のページとは異なった取扱がなされ,ページ番号は
11178 \emph on
11179 つねに
11180 \emph default
11181 付けられず,(ロゴが定義されていれば)ロゴは,
11182 \emph on
11183 つねに
11184 \emph default
11185 ページ下部中央に表示されます.使用できるページ様式とその挙動は,以下の通りです.
11186 \begin_inset Separator latexpar
11187 \end_inset
11188
11189
11190 \end_layout
11191
11192 \begin_deeper
11193 \begin_layout Labeling
11194 \labelwidthstring MMMMMMM
11195
11196 \family sans
11197 \series bold
11198 empty
11199 \family default
11200 \series default
11201  最終出力には,ページ番号をはじめ,へッダ・フッタが出力されません(もちろん脚注は除きます).
11202 \end_layout
11203
11204 \begin_layout Labeling
11205 \labelwidthstring MMMMMMM
11206
11207 \family sans
11208 \series bold
11209 plain
11210 \family default
11211 \series default
11212  最終出力には,ページ番号がページ下部の中央に出力されますが,他のへッダ・フッタは出力されません(脚注除く).
11213 \end_layout
11214
11215 \begin_layout Labeling
11216 \labelwidthstring MMMMMMM
11217
11218 \series bold
11219 foilheadings
11220 \series default
11221  ページ番号が右下隅に出力されます.追記したへッダ・フッタも出力されます.これが既定値です.
11222 \end_layout
11223
11224 \begin_layout Labeling
11225 \labelwidthstring MMMMMMM
11226
11227 \series bold
11228 fancy
11229 \series default
11230  これは
11231 \family sans
11232 fancyheadings
11233 \family default
11234 パッケージを使えるようにします.ただし,Foil\SpecialChar TeX
11235 パッケージの作者は,ページレイアウトが崩れる可能性があるので,これを使用することは勧めないと言及しています.
11236 \end_layout
11237
11238 \end_deeper
11239 \begin_layout Subsubsection
11240 任意設定クラスオプション
11241 \end_layout
11242
11243 \begin_layout Standard
11244 以下のオプションは
11245 \family sans
11246 文書設定
11247 \family default
11248 ダイアログの任意設定クラスオプションボックスで使うことができます.
11249 \end_layout
11250
11251 \begin_layout Labeling
11252 \labelwidthstring MMMMMMx
11253
11254 \series bold
11255 35mmSlide
11256 \series default
11257  これは,ページレイアウトを縦7.33インチ横11インチに設定します.これは35
11258 \begin_inset space \space{}
11259 \end_inset
11260
11261 mmスライドの縦横比にほぼ等しく,このメディアを作る作業が若干易しくなります.
11262 \end_layout
11263
11264 \begin_layout Labeling
11265 \labelwidthstring MMMMMMx
11266
11267 \series bold
11268 headrule
11269 \series default
11270  タイトルページを除くすべてのページのへッダの下に罫線を入れます.
11271 \end_layout
11272
11273 \begin_layout Labeling
11274 \labelwidthstring MMMMMMx
11275
11276 \series bold
11277 footrule
11278 \series default
11279  タイトルページを除くすべてのページのフッタの上に罫線を入れます.
11280 \end_layout
11281
11282 \begin_layout Labeling
11283 \labelwidthstring MMMMMMx
11284
11285 \series bold
11286 dvips
11287 \series default
11288  これは,新規
11289 \family sans
11290 foils
11291 \family default
11292 文書を作成する度に自動的に設定されます.このオプションは,横向きに設定されたページを回転させるのに,dvipsドライバを使うようFoil\SpecialChar TeX
11293 に指示します.
11294 \end_layout
11295
11296 \begin_layout Labeling
11297 \labelwidthstring MMMMMMx
11298
11299 \series bold
11300 landscape
11301 \series default
11302  このオプションは,用紙寸法を横向きページ大に変更するだけで,回転は行いません.したがって,このオプションを使う場合は,各ページを回転させる外部プログラムを使用
11303 する,プリンタに用紙を横向きに給紙する必要があります.また,このオプションは,
11304 \family sans
11305 Foilhead
11306 \family default
11307 環境と
11308 \family sans
11309 Rotatefoilhead
11310 \family default
11311 環境の役割を逆転させることに注意してください(これらの環境については次節で説明します).
11312 \end_layout
11313
11314 \begin_layout Labeling
11315 \labelwidthstring MMMMMMx
11316
11317 \series bold
11318 leqno
11319 \series default
11320  数式番号を左側に付けます.
11321 \end_layout
11322
11323 \begin_layout Labeling
11324 \labelwidthstring MMMMMMx
11325
11326 \series bold
11327 fleqn
11328 \series default
11329  数式を左揃えにします.
11330 \end_layout
11331
11332 \begin_layout Subsection
11333 サポートされる環境
11334 \end_layout
11335
11336 \begin_layout Standard
11337 他のクラスで標準的にサポートされている環境は,
11338 \family sans
11339 foils
11340 \family default
11341 クラスでもサポートされています.それ以外に,Foil\SpecialChar TeX
11342 が提供している環境と,\SpecialChar LyX
11343 が付け加えた環境があります.以下の環境は,他のクラスと共通の環境です.
11344 \end_layout
11345
11346 \begin_layout Standard
11347
11348 \family sans
11349 \begin_inset Flex Multiple Columns
11350 status open
11351
11352 \begin_layout Itemize
11353
11354 \family sans
11355 標準
11356 \end_layout
11357
11358 \begin_layout Itemize
11359
11360 \family sans
11361 箇条書き(記号)
11362 \end_layout
11363
11364 \begin_layout Itemize
11365
11366 \family sans
11367 箇条書き(連番)
11368 \end_layout
11369
11370 \begin_layout Itemize
11371
11372 \family sans
11373 箇条書き(記述)
11374 \end_layout
11375
11376 \begin_layout Itemize
11377
11378 \family sans
11379 箇条書き(リスト)
11380 \end_layout
11381
11382 \begin_layout Itemize
11383
11384 \family sans
11385 \SpecialChar LyX
11386 コード
11387 \end_layout
11388
11389 \begin_layout Itemize
11390
11391 \family sans
11392 詩句
11393 \end_layout
11394
11395 \begin_layout Itemize
11396
11397 \family sans
11398 引用(字下げあり)
11399 \end_layout
11400
11401 \begin_layout Itemize
11402
11403 \family sans
11404 引用(字下げなし)
11405 \end_layout
11406
11407 \begin_layout Itemize
11408
11409 \family sans
11410 タイトル
11411 \end_layout
11412
11413 \begin_layout Itemize
11414
11415 \family sans
11416 著者
11417 \end_layout
11418
11419 \begin_layout Itemize
11420
11421 \family sans
11422 日付
11423 \end_layout
11424
11425 \begin_layout Itemize
11426
11427 \family sans
11428 概要
11429 \end_layout
11430
11431 \begin_layout Itemize
11432
11433 \family sans
11434 書誌情報
11435 \end_layout
11436
11437 \begin_layout Itemize
11438
11439 \family sans
11440 住所
11441 \end_layout
11442
11443 \begin_layout Itemize
11444
11445 \family sans
11446 右寄せ住所
11447 \end_layout
11448
11449 \begin_layout Itemize
11450
11451 \family sans
11452 キャプション
11453 \end_layout
11454
11455 \begin_layout Itemize
11456
11457 \family sans
11458 コメント
11459 \end_layout
11460
11461 \end_inset
11462
11463
11464 \end_layout
11465
11466 \begin_layout Standard
11467 つまり,節区切りを除けば,主な環境のすべてです.一枚のスライドは,基本的にタイトルと本文を備えた自己完結した節なので,
11468 \family sans
11469 Foil
11470 \family default
11471 \SpecialChar TeX
11472 は新しいスライドを始める以下のようなコマンドを備えています.
11473 \end_layout
11474
11475 \begin_layout Itemize
11476
11477 \family sans
11478 スライドタイトル(Foilhead)
11479 \end_layout
11480
11481 \begin_layout Itemize
11482
11483 \family sans
11484 横置きスライドタイトル(Rotatefoilhead)
11485 \end_layout
11486
11487 \begin_layout Standard
11488 \SpecialChar LyX
11489 は,以下のような,これらを若干修正した環境も用意しています.
11490 \end_layout
11491
11492 \begin_layout Itemize
11493
11494 \family sans
11495 スライドタイトル(小)(ShortFoilhead)
11496 \end_layout
11497
11498 \begin_layout Itemize
11499
11500 \family sans
11501 横置きスライドタイトル(小)(ShortRotatefoilhead)
11502 \end_layout
11503
11504 \begin_layout Standard
11505 これらの違いは次節で説明します.
11506 \end_layout
11507
11508 \begin_layout Standard
11509 スライドは,アイデアを説明したり,新しい定理を説明したりするのにしばしば使われるので,
11510 \family sans
11511 Foil
11512 \family default
11513 \SpecialChar TeX
11514 はそれらを説明するのに便利な環境を幅広く用意しています.
11515 \end_layout
11516
11517 \begin_layout Standard
11518
11519 \family sans
11520 \begin_inset Flex Multiple Columns
11521 status open
11522
11523 \begin_layout Itemize
11524
11525 \family sans
11526 定理
11527 \end_layout
11528
11529 \begin_layout Itemize
11530
11531 \family sans
11532 補題
11533 \end_layout
11534
11535 \begin_layout Itemize
11536
11537 \family sans
11538
11539 \end_layout
11540
11541 \begin_layout Itemize
11542
11543 \family sans
11544 命題
11545 \end_layout
11546
11547 \begin_layout Itemize
11548
11549 \family sans
11550 定義
11551 \end_layout
11552
11553 \begin_layout Itemize
11554
11555 \family sans
11556 証明
11557 \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 \end_layout
11576
11577 \begin_layout Itemize
11578
11579 \family sans
11580 命題*
11581 \end_layout
11582
11583 \begin_layout Itemize
11584
11585 \family sans
11586 定義*
11587 \end_layout
11588
11589 \end_inset
11590
11591
11592 \end_layout
11593
11594 \begin_layout Standard
11595 星付き版は連番が振られず,星なし版は連番が振られます.他に,\SpecialChar LyX
11596 で追加された以下の2つの箇条書き環境があります.
11597 \end_layout
11598
11599 \begin_layout Itemize
11600
11601 \family sans
11602 箇条書き(チック)
11603 \end_layout
11604
11605 \begin_layout Itemize
11606
11607 \family sans
11608 箇条書き(クロス)
11609 \end_layout
11610
11611 \begin_layout Standard
11612 Foil\SpecialChar TeX
11613 には,強力なヘッダ機能とフッタ機能があり,これらはプリアンブルで設定するのが最良ですが,文章中のどこでも設定することができます.もし文書中でこれらの設定
11614 を変更したい場合には,スライドの一番上,foilheadの直後で行うのが良いでしょう.
11615 \end_layout
11616
11617 \begin_layout Standard
11618 この目的のためには,以下のコマンドスタイルがあります(
11619 \shape smallcaps
11620 Martin Vermeer).
11621 \end_layout
11622
11623 \begin_layout Standard
11624 \begin_inset Flex Multiple Columns
11625 status open
11626
11627 \begin_layout Itemize
11628
11629 \family sans
11630 グラフィックスロゴ
11631 \end_layout
11632
11633 \begin_layout Itemize
11634
11635 \family sans
11636 配布制限
11637 \end_layout
11638
11639 \begin_layout Itemize
11640
11641 \family sans
11642 右フッタ
11643 \end_layout
11644
11645 \begin_layout Itemize
11646
11647 \family sans
11648 右ヘッダ
11649 \end_layout
11650
11651 \begin_layout Itemize
11652
11653 \family sans
11654 左ヘッダ
11655 \family default
11656
11657 \begin_inset Separator latexpar
11658 \end_inset
11659
11660
11661 \end_layout
11662
11663 \begin_deeper
11664 \begin_layout Plain Layout
11665 \begin_inset space ~
11666 \end_inset
11667
11668
11669 \end_layout
11670
11671 \end_deeper
11672 \end_inset
11673
11674
11675 \end_layout
11676
11677 \begin_layout Standard
11678 Foil\SpecialChar TeX
11679 が提供しているコマンドで,\SpecialChar LyX
11680 が直接サポートしていないコマンドもありますが,これらの説明と使い方については,第
11681 \begin_inset CommandInset ref
11682 LatexCommand ref
11683 reference "sec:unsuppfoils"
11684
11685 \end_inset
11686
11687 節で行います.
11688 \end_layout
11689
11690 \begin_layout Subsection
11691 スライドの組を作る
11692 \end_layout
11693
11694 \begin_layout Standard
11695 この節は,様々な環境を使ってスライドの組を作る方法を簡単に紹介します.スライド組の例をご覧になりたい場合は,\SpecialChar LyX
11696
11697 \family typewriter
11698 examples
11699 \family default
11700 フォルダにある
11701 \family typewriter
11702 Foils.lyx
11703 \family default
11704 ファイルをご覧ください.
11705 \end_layout
11706
11707 \begin_layout Subsubsection
11708 タイトルページを作る
11709 \end_layout
11710
11711 \begin_layout Standard
11712
11713 \family sans
11714 タイトル
11715 \family default
11716
11717 \family sans
11718 著者
11719 \family default
11720
11721 \family sans
11722 日付
11723 \family default
11724
11725 \family sans
11726 概要
11727 \family default
11728 環境のある他のクラスとは異なり,
11729 \family sans
11730 foils
11731 \family default
11732 は独立したページにタイトルを作成します.
11733 \family sans
11734 日付
11735 \family default
11736 環境を使用しなかった場合には,\SpecialChar LaTeX
11737 は(出力を生成し直したときにはいつも)その時点の日付を挿入します.
11738 \end_layout
11739
11740 \begin_layout Subsubsection
11741 新しいスライドを開始する
11742 \end_layout
11743
11744 \begin_layout Standard
11745 前述のように,新しいスライドを開始するには,4つの方法があります.縦向きのスライドを開始するには,
11746 \family sans
11747 スライドタイトル(Foilhead)
11748 \family default
11749
11750 \family sans
11751 スライドタイトル(小)(ShortFoilhead)
11752 \family default
11753 を使用します.両環境の違いは,スライドタイトル(foilhead)とスライド本文の間の余白の違いです.
11754 \end_layout
11755
11756 \begin_layout Standard
11757 横向きのスライドは,
11758 \family sans
11759 横向きスライドタイトル(Rotatefoilhead)
11760 \family default
11761 か横向きスライドタイトル(小)(
11762 \family sans
11763 ShortRotatefoilhead)
11764 \family default
11765 環境を使用して生成します.ここでも両環境の違いは,タイトルと本文の間の余白のみです.どちらの場合も,(小)と記された版は,タイトルと本文の間の余白が,0.5インチ
11766 (約1.27cm)小さくなります.
11767 \end_layout
11768
11769 \begin_layout Standard
11770 横向きのスライドをサポートする際,一つ問題となるのは,スライドを回転させようと思うと,PostScript出力を生成するのに
11771 \family typewriter
11772 dvips
11773 \family default
11774 ドライバを使用することを要求してしまうことです.もしスライドをプリンタに横に給紙することができれば,
11775 \family typewriter
11776 dvips
11777 \family default
11778 ドライバを持っていなくても,横向きのスライドをつくることができます ;-)
11779 \end_layout
11780
11781 \begin_layout Subsubsection
11782 定理・補題・証明など
11783 \end_layout
11784
11785 \begin_layout Standard
11786 \SpecialChar LyX
11787 中の小さなバグによって,これらの環境の同じ型をお互いに直接続けて置くことはできません.これらは何かによって分離されなくてはなりません.仮に二つ続けて置いても,2
11788 つの環境をマージしたかのように,前の環境が延長されるだけです.この問題を回避するにはどうすればよいのでしょうか.最も簡単な方法は,二つの環境の間に何か文章を置く
11789 か,あるいは二つの間に「
11790 \family typewriter
11791 %
11792 \family default
11793 」だけから成る\SpecialChar LaTeX
11794 環境を置くことです.これによって,\SpecialChar LyX
11795 は2つの別々の環境を生成するように強制され,正しい\SpecialChar LaTeX
11796 出力を得ることができます.\SpecialChar LyX
11797 頒布版に含まれる用例ファイルに例があ
11798 ります.この問題は,二つの同じ定理型環境を立て続けに置こうとした場合にのみ発生することに注意してください.
11799 \end_layout
11800
11801 \begin_layout Subsubsection
11802 箇条書き
11803 \end_layout
11804
11805 \begin_layout Standard
11806 他のクラスでも共通にサポートされている箇条書き様式すべてに加えて,二つの新しい様式を使用することができます.ここでは,その新しい様式のみを説明することにします.
11807 他の箇条書き環境について詳しく知りたい場合には,
11808 \emph on
11809 ユーザーの手引き
11810 \emph default
11811 をご覧ください.記号による箇条書きを使用したい場合には,上記第
11812 \begin_inset CommandInset ref
11813 LatexCommand ref
11814 reference "sec:ブリット"
11815
11816 \end_inset
11817
11818 節の
11819 \family sans
11820 箇条書き(記号)ブリットの指定
11821 \family default
11822 の節も,読まれることが望ましいでしょう.
11823 \end_layout
11824
11825 \begin_layout Standard
11826
11827 \family sans
11828 箇条書き(チック)
11829 \family default
11830
11831 \family sans
11832 箇条書き(クロス)
11833 \family default
11834 の二つの新しい様式は,チェック印や
11835 \begin_inset Formula $\times$
11836 \end_inset
11837
11838 印を箇条書きのラベルに使用する専用の環境を提供することで,予定一覧や正誤一覧を作りやすくするように設計されたものです.これらの箇条書きは,
11839 \family sans
11840 箇条書き(記号)
11841 \family default
11842 の派生型を専用に用意したものに過ぎません.ただし,これらは,
11843 \family typewriter
11844 psnfss
11845 \family default
11846 パッケージが導入済であることを要求します.
11847 \end_layout
11848
11849 \begin_layout Subsubsection
11850 図と表
11851 \end_layout
11852
11853 \begin_layout Standard
11854 Foil\SpecialChar TeX
11855 では,図表フロートは,本文中の挿入箇所にこれらが正確に表示されるように再定義されており,ページの上部やユーザー指定場所に押しのけたりはしないようになって
11856 います.たとえフロート配置の設定に変更を加えたとしても,単に無視されます.
11857 \end_layout
11858
11859 \begin_layout Subsubsection
11860 ページヘッダおよびページフッタ
11861 \begin_inset CommandInset label
11862 LatexCommand label
11863 name "sec:foilfoot"
11864
11865 \end_inset
11866
11867
11868 \end_layout
11869
11870 \begin_layout Standard
11871
11872 \family sans
11873 グラフィックスロゴ
11874 \family default
11875
11876 \family sans
11877 配布制限
11878 \family default
11879 の二つは,左フッタ文を制御するものです.前者は,グラフィックスのロゴをスライドに入れるためのもので,既定値は「-Typeset by 
11880 \family sans
11881 Foil
11882 \family default
11883 \SpecialChar TeX
11884 -」となっています.後者は,「機密事項」などのように,聴衆に秘密区分を提示することを意図しています.既定値では,何も設定されていません.
11885 \end_layout
11886
11887 \begin_layout Standard
11888 スライドの残り三隅には,
11889 \family sans
11890 右フッタ
11891 \family default
11892 (既定ではページ番号)・
11893 \family sans
11894 右ヘッダ
11895 \family default
11896 (右上)・
11897 \family sans
11898 左ヘッダ
11899 \family default
11900 (左上)を使って文字を入れることができます.
11901 \end_layout
11902
11903 \begin_layout Subsection
11904 サポートされない 
11905 \family sans
11906 Foil
11907 \family default
11908 \SpecialChar TeX
11909 機能
11910 \begin_inset CommandInset label
11911 LatexCommand label
11912 name "sec:unsuppfoils"
11913
11914 \end_inset
11915
11916
11917 \end_layout
11918
11919 \begin_layout Standard
11920 以下で言及されているコマンドは,
11921 \family sans
11922 \SpecialChar LaTeX
11923
11924 \family default
11925 環境内で設定されるか,他の環境中の
11926 \family sans
11927 \SpecialChar TeX
11928 コード
11929 \family default
11930 として設定される必要があります.
11931 \end_layout
11932
11933 \begin_layout Subsubsection
11934 長さ
11935 \end_layout
11936
11937 \begin_layout Standard
11938 長さは,すべて
11939 \family typewriter
11940
11941 \backslash
11942 setlength{
11943 \family default
11944 \emph on
11945 長さ名
11946 \family typewriter
11947 \emph default
11948 }{
11949 \family default
11950 \emph on
11951 新規長さ
11952 \family typewriter
11953 \emph default
11954 }
11955 \family default
11956 コマンドで調節されます.ここで
11957 \emph on
11958 長さ名
11959 \emph default
11960 は,変更したい長さに付けられている名前で置き換え,
11961 \emph on
11962 新規長さ
11963 \emph default
11964 は,その長さの値で置き換えます.長さはすべて,インチ(in)・ミリメートル(mm)・ポイント(pt)のような長さ単位か,
11965 \family typewriter
11966
11967 \backslash
11968 textwidth
11969 \family default
11970 のように文書比あるいはフォント基準の長さで指定する必要があります.
11971 \end_layout
11972
11973 \begin_layout Standard
11974
11975 \family typewriter
11976
11977 \backslash
11978 foilheadskip
11979 \family default
11980 で指定される長さを調節することによって,スライドタイトルとスライド本文の間の余白を変更することができます.たとえば,スライドタイトルをすべて0.5
11981 \begin_inset space \space{}
11982 \end_inset
11983
11984 inだけスライド本文に近づけるには,プリアンブルに
11985 \family typewriter
11986
11987 \backslash
11988 setlength{
11989 \backslash
11990 foilheadskip}{-0.5in}
11991 \family default
11992 と書き込みます.
11993 \end_layout
11994
11995 \begin_layout Standard
11996 フロート周囲の余白は,以下の長さを設定することで調整することができます.
11997 \end_layout
11998
11999 \begin_layout Labeling
12000 \labelwidthstring MMMMMMMMMMM
12001
12002 \family typewriter
12003
12004 \backslash
12005 abovefloatskip
12006 \family default
12007  本文とフロート上辺との間隔
12008 \end_layout
12009
12010 \begin_layout Labeling
12011 \labelwidthstring MMMMMMMMMMM
12012
12013 \family typewriter
12014
12015 \backslash
12016 abovecaptionskip
12017 \family default
12018  フロートとキャプションとの間隔
12019 \end_layout
12020
12021 \begin_layout Labeling
12022 \labelwidthstring MMMMMMMMMMM
12023
12024 \family typewriter
12025
12026 \backslash
12027 belowcaptionskip
12028 \family default
12029  キャプションとそれに続く本文との間隔
12030 \end_layout
12031
12032 \begin_layout Labeling
12033 \labelwidthstring MMMMMMMMMMM
12034
12035 \family typewriter
12036
12037 \backslash
12038 captionwidth
12039 \family default
12040  この長さを調整することでキャプションを,周囲の本文より短くすることができます.
12041 \family typewriter
12042
12043 \backslash
12044 textwidth
12045 \family default
12046 に対する相対的な長さで調整するのが最も良いでしょう.
12047 \end_layout
12048
12049 \begin_layout Standard
12050 以下のようなタイトルページ関連の長さもあり,タイトルが長い場合や,著者が複数いる場合に使うと便利かもしれません.
12051 \end_layout
12052
12053 \begin_layout Labeling
12054 \labelwidthstring MMMMMMMMMMM
12055
12056 \family typewriter
12057
12058 \backslash
12059 abovetitleskip
12060 \family default
12061  へッダとタイトルとの間隔
12062 \end_layout
12063
12064 \begin_layout Labeling
12065 \labelwidthstring MMMMMMMMMMM
12066
12067 \family typewriter
12068
12069 \backslash
12070 titleauthorskip
12071 \family default
12072  
12073 \family sans
12074 タイトル
12075 \family default
12076 環境と
12077 \family sans
12078 著者
12079 \family default
12080 環境との間隔
12081 \end_layout
12082
12083 \begin_layout Labeling
12084 \labelwidthstring MMMMMMMMMMM
12085
12086 \family typewriter
12087
12088 \backslash
12089 authorauthorskip
12090 \family default
12091  著者が複数いる場合の
12092 \family sans
12093 著者
12094 \family default
12095 行の間隔
12096 \end_layout
12097
12098 \begin_layout Labeling
12099 \labelwidthstring MMMMMMMMMMM
12100
12101 \family typewriter
12102
12103 \backslash
12104 authordateskip
12105 \family default
12106  
12107 \family sans
12108 著者
12109 \family default
12110
12111 \family sans
12112 日付
12113 \family default
12114 との間隔
12115 \end_layout
12116
12117 \begin_layout Labeling
12118 \labelwidthstring MMMMMMMMMMM
12119
12120 \family typewriter
12121
12122 \backslash
12123 dateabstractskip
12124 \family default
12125  
12126 \family sans
12127 日付
12128 \family default
12129
12130 \family sans
12131 概要
12132 \family default
12133 との間隔
12134 \end_layout
12135
12136 \begin_layout Standard
12137 最後に紹介する長さ関連コマンドは,箇条書き環境すべてに使用できるものです.
12138 \family typewriter
12139
12140 \backslash
12141 zerolistvertdimens
12142 \family default
12143 を箇条書き環境の内側に置くと,項目間の垂直余白がすべて取り除かれます.これは長さではなくコマンドなので,上述のもののように
12144 \family typewriter
12145
12146 \backslash
12147 setlength
12148 \family default
12149 を使う必要がないことに注意してください.
12150 \end_layout
12151
12152 \begin_layout Subsubsection
12153 へッダとフッタ
12154 \end_layout
12155
12156 \begin_layout Standard
12157
12158 \family typewriter
12159
12160 \backslash
12161 LogoOn
12162 \family default
12163 および
12164 \family typewriter
12165
12166 \backslash
12167 LogoOff
12168 \family default
12169 は,
12170 \family typewriter
12171 MyLogo
12172 \family default
12173 で定義したロゴを特定のページに入れるかどうかを制御します.
12174 \family typewriter
12175
12176 \backslash
12177 LogoOff
12178 \family default
12179 をプリアンブルに入れると,全スライドからロゴが取り除かれます.特定のスライドにのみロゴを付けたくない場合は,当該ページのスライドタイトルの直後に直接
12180 \family typewriter
12181
12182 \backslash
12183 LogoOff
12184 \family default
12185 を置き,次のスライドタイトルの直後に直接
12186 \family typewriter
12187
12188 \backslash
12189 LogoOn
12190 \family default
12191 を置いてください.
12192 \end_layout
12193
12194 \begin_layout Standard
12195
12196 \family sans
12197 文書レイアウト
12198 \family default
12199 ダイアログで
12200 \family sans
12201 fancy
12202 \family default
12203 ページ様式を使用することを選択した場合には,横置きページのヘッダとフッタが回転後も正しく配置されるように,プリアンブルに
12204 \family typewriter
12205
12206 \backslash
12207 let
12208 \backslash
12209 headwidth
12210 \backslash
12211 textwidth
12212 \family default
12213 を加える必要があるでしょう.これは,
12214 \family sans
12215 fancyheadings
12216 \family default
12217 パッケージが提供するページレイアウトと
12218 \family sans
12219 foils
12220 \family default
12221 クラスの提供するページレイアウトの間に衝突が発生するためです.
12222 \end_layout
12223
12224 \begin_layout Section
12225 Hollywood(Hollywoodスペック・スクリプト)
12226 \end_layout
12227
12228 \begin_layout Standard
12229
12230 \noun on
12231 Garst Reese
12232 \noun default
12233
12234 \end_layout
12235
12236 \begin_layout Subsection
12237 はじめに
12238 \end_layout
12239
12240 \begin_layout Standard
12241 脚本を正しい書式で書くことは,ハリウッドにおける「通過儀礼」です.ハリウッドの脚本は,読み手が内容に集中できるようにし,俳優にとっても読みやすくかつ親しみやすい
12242 ように設計されています.脚本の1ページは,映画の1分でなければならず,銀幕上で見えたり聞こえたりしないものは,脚本に混入してはなりません.また,全体を通してCo
12243 urier 12
12244 \begin_inset space \space{}
12245 \end_inset
12246
12247 ptフォントを使わなければならず,イタリック体は用いてはいけません.
12248 \end_layout
12249
12250 \begin_layout Subsection
12251 特別な問題
12252 \end_layout
12253
12254 \begin_layout Standard
12255 話者の行は,文の途中で改行することは
12256 \emph on
12257 決して
12258 \emph default
12259 あってはなりません.もし話者行の塊が,次頁にまたがる場合には,
12260 \family sans
12261 話者
12262 \family default
12263 名を再度書き,その後に(Cont'd)と加えます.
12264 \end_layout
12265
12266 \begin_layout Subsection
12267 特別な機能
12268 \end_layout
12269
12270 \begin_layout Standard
12271
12272 \family sans
12273 話者
12274 \family default
12275 名はラベルとして挿入し,話者名を挿入するには,そのラベルを相互参照してください.相互参照ダイアログは,登場人物の現在の配役を表示することになります.これは,ト書
12276 きに話者名を挿入するのにも使用することができます.
12277 \end_layout
12278
12279 \begin_layout Subsection
12280 用紙寸法と余白
12281 \end_layout
12282
12283 \begin_layout Standard
12284 USレター寸法で,左余白1.6インチ・右余白0.75インチ・上余白0.5インチ・下余白0.75インチです.
12285 \end_layout
12286
12287 \begin_layout Subsection
12288 環境
12289 \end_layout
12290
12291 \begin_layout Standard
12292 以下の環境が利用可能です.右に示されている
12293 \begin_inset Flex Ruby
12294 status collapsed
12295
12296 \begin_layout Plain Layout
12297
12298 \begin_inset Argument post:1
12299 status collapsed
12300
12301 \begin_layout Plain Layout
12302 キー
12303 \end_layout
12304
12305 \end_inset
12306
12307
12308 \end_layout
12309
12310 \end_inset
12311
12312 割当てを使用するには,hollywood.bindを使用してください.
12313 \end_layout
12314
12315 \begin_layout Itemize
12316
12317 \family sans
12318 一般
12319 \begin_inset Newline newline
12320 \end_inset
12321
12322
12323 \family default
12324 他の環境が動作しない場合に使用しますが,これを使うことは避けるようにしてください.
12325 \end_layout
12326
12327 \begin_layout Itemize
12328 フェイドイン:
12329 \begin_inset space \hfill{}
12330 \end_inset
12331
12332
12333 \family sans
12334 M-z S-I
12335 \family default
12336
12337 \begin_inset Newline newline
12338 \end_inset
12339
12340 通常,この後には「Sallyは目を覚ますと」のように続きます.
12341 \end_layout
12342
12343 \begin_layout Itemize
12344
12345 \family sans
12346 屋内:
12347 \begin_inset space \hfill{}
12348 \end_inset
12349
12350 M-z i
12351 \begin_inset Newline newline
12352 \end_inset
12353
12354
12355 \family default
12356 新しい屋内(INTERIOR)カメラの設定を指定します.この後には,かならずDAYやNIGHTなどを指定して,必要な照明を定義します.この行はすべて大文字で書き
12357 ます.
12358 \end_layout
12359
12360 \begin_layout Itemize
12361
12362 \family sans
12363 屋外:
12364 \begin_inset space \hfill{}
12365 \end_inset
12366
12367 M-z e
12368 \begin_inset Newline newline
12369 \end_inset
12370
12371
12372 \family default
12373 屋外(EXTERIOR)カメラの設定を指定します.この行はすべて大文字で書きます.
12374 \end_layout
12375
12376 \begin_layout Itemize
12377
12378 \family sans
12379 話者
12380 \begin_inset space \hfill{}
12381 \end_inset
12382
12383 M-z s
12384 \begin_inset Newline newline
12385 \end_inset
12386
12387
12388 \family default
12389 話す役.
12390 \end_layout
12391
12392 \begin_layout Itemize
12393
12394 \family sans
12395 括弧付き
12396 \begin_inset space \hfill{}
12397 \end_inset
12398
12399 M-z p
12400 \begin_inset Newline newline
12401 \end_inset
12402
12403 話者
12404 \family default
12405 への指示.自動的に括弧()が挿入されますが,\SpecialChar LyX
12406 上で表示されるのは,左括弧( のみです.印刷出力には右括弧も表示されます.
12407 \end_layout
12408
12409 \begin_layout Itemize
12410
12411 \family sans
12412 対話
12413 \begin_inset space \hfill{}
12414 \end_inset
12415
12416 M-z d
12417 \begin_inset Newline newline
12418 \end_inset
12419
12420 話者
12421 \family default
12422 が話す内容.
12423 \end_layout
12424
12425 \begin_layout Itemize
12426
12427 \family sans
12428 画面遷移
12429 \begin_inset space \hfill{}
12430 \end_inset
12431
12432 M-z t
12433 \begin_inset Newline newline
12434 \end_inset
12435
12436
12437 \family default
12438 カメラの動きの指示.例:CUT TO:.
12439 \end_layout
12440
12441 \begin_layout Itemize
12442
12443 \family sans
12444 フェイドアウト:
12445 \begin_inset space \hfill{}
12446 \end_inset
12447
12448 M-z S-I
12449 \end_layout
12450
12451 \begin_layout Itemize
12452
12453 \family sans
12454 著者
12455 \begin_inset space \hfill{}
12456 \end_inset
12457
12458 M-z S-A
12459 \end_layout
12460
12461 \begin_layout Itemize
12462
12463 \family sans
12464 タイトル
12465 \begin_inset space \hfill{}
12466 \end_inset
12467
12468 M-z S-T
12469 \end_layout
12470
12471 \begin_layout Itemize
12472
12473 \family sans
12474 右寄せ住所
12475 \begin_inset space \hfill{}
12476 \end_inset
12477
12478 M-z r
12479 \end_layout
12480
12481 \begin_layout Subsection
12482 脚本で使われる特別な用語
12483 \end_layout
12484
12485 \begin_layout Itemize
12486 (O.S) — off screen
12487 \end_layout
12488
12489 \begin_layout Itemize
12490 (V.0) — voice over
12491 \end_layout
12492
12493 \begin_layout Itemize
12494 b.g.
12495  — background
12496 \end_layout
12497
12498 \begin_layout Itemize
12499 C.U.
12500  — close-up
12501 \end_layout
12502
12503 \begin_layout Itemize
12504 PAN — camera movement
12505 \end_layout
12506
12507 \begin_layout Itemize
12508 INSERT — cut to close-up of
12509 \end_layout
12510
12511 \begin_layout Section
12512 ijmpcおよびijmpd
12513 \end_layout
12514
12515 \begin_layout Standard
12516
12517 \noun on
12518 Panayotis Papasotiriou
12519 \noun default
12520
12521 \end_layout
12522
12523 \begin_layout Subsection
12524 概観
12525 \end_layout
12526
12527 \begin_layout Standard
12528 ijpmcパッケージは,
12529 \emph on
12530 International Journal of Modern Physics C
12531 \emph default
12532 への電子投稿を可能にするためのマクロ集です.同様に,ijpmdパッケージは,
12533 \emph on
12534 International Journal of Modern Physics D
12535 \emph default
12536 へ投稿する現行を作成するためのものです.両誌ともWorld Scientific社の刊行です.対応する文書クラス名は,それぞれ
12537 \family typewriter
12538 ws-ijmpc.cls
12539 \family default
12540 および
12541 \family typewriter
12542 ws-ijmpd.cls
12543 \family default
12544 です.これらのファイルは,著者のための指針とともに,
12545 \begin_inset Flex URL
12546 status collapsed
12547
12548 \begin_layout Plain Layout
12549
12550 http://www.worldscinet.com/ijmpc/mkt/guidelines.shtml
12551 \end_layout
12552
12553 \end_inset
12554
12555 および
12556 \begin_inset Flex URL
12557 status collapsed
12558
12559 \begin_layout Plain Layout
12560
12561 http://www.worldscinet.com/ijmpd/mkt/guidelines.shtml
12562 \end_layout
12563
12564 \end_inset
12565
12566 の各サイトからダウンロードすることができます.両パッケージは,標準「article」パッケージの修正版であり,両者は(一部を除き)ほぼ同一です.\SpecialChar LyX
12567 は,これらのパッ
12568 ケージのほとんどの機能をサポートしています.私は両誌へ投稿する論文を\SpecialChar LyX
12569 で書き上げましたが,何らの問題も生じませんでした.
12570 \end_layout
12571
12572 \begin_layout Subsection
12573 論文を書く
12574 \end_layout
12575
12576 \begin_layout Standard
12577 通常と同じく,論文を書く上で最も易しい方法は,ひな型を使って書き始めることです.
12578 \family sans
12579 ファイル\SpecialChar menuseparator
12580 新規(ひな型使用)
12581 \family default
12582 をクリックして,ひな型
12583 \family typewriter
12584 ijmpc.lyx
12585 \family default
12586 もしくは
12587 \family typewriter
12588 ijmpd.lyx
12589 \family default
12590 を選択してください.すると,原稿で良く使用されるフィールドを含んだ,ほぼ空の文書ができますので,既存のフィールド(鍵括弧
12591 \family typewriter
12592 <>
12593 \family default
12594 を含む)を正しい情報で置き換えてください.以下の各点にご留意ください.
12595 \end_layout
12596
12597 \begin_layout Enumerate
12598 両パッケージでは,フォント寸法や文書のページ様式を変更することが禁じられているので,\SpecialChar LyX
12599 中でこれらを変更することはできません.
12600 \end_layout
12601
12602 \begin_layout Enumerate
12603 文書言語は変更してはいけません.論文をプレビューする前に,babelパッケージが使用されていないことを確認してください.これは,
12604 \family sans
12605 ツール\SpecialChar menuseparator
12606 設定
12607 \family default
12608 をクリックして,
12609 \family sans
12610 言語オプション
12611 \family default
12612 タブを選択し,言語設定で
12613 \family sans
12614 Babelを使う
12615 \family default
12616 チェックボックスを無効にしてから,
12617 \family sans
12618 適用
12619 \family default
12620 をクリックすれば,設定することができます(この変更を固定するなら
12621 \family sans
12622 保存
12623 \family default
12624 を押してください).
12625 \end_layout
12626
12627 \begin_layout Enumerate
12628 キーワードを定義するに際しては,「キーワード」様式を用いなくてはなりません.
12629 \end_layout
12630
12631 \begin_layout Enumerate
12632 ijmpcパッケージが提供する「分類コード」様式は,PACS番号のような分類コードを定義するのに使用することができます.この機能は,ijmpdパッケージではサポ
12633 ートされていませんので,ご注意ください.
12634 \end_layout
12635
12636 \begin_layout Enumerate
12637 「定義」「ステップ」「例」「注記」「記法」「定理」「証明」「系」「補題」「命題」「命題(Prop)」「問題」「主張」「予想」といった新しい環境を使用することがで
12638 きます.これらの使い方は,大凡自明でしょう.\SpecialChar LyX
12639 は,これらの環境をすべてサポートし,それぞれについて,適切なラベルと文字様式および連番スキームを使用します.
12640 \end_layout
12641
12642 \begin_layout Enumerate
12643 両パッケージは,単純な引用を使用しますので,natbibパッケージは使用してはなりません.\SpecialChar LyX
12644 中では,引用参照は通常通り表示されますが,出力では上付き文字として表示
12645 されます.引用に通常の本文を使用したい場合には,「See Ref.
12646 \begin_inset space \space{}
12647 \end_inset
12648
12649
12650 \family typewriter
12651
12652 \backslash
12653 refcite{
12654 \family default
12655
12656 \begin_inset Flex Ruby
12657 status collapsed
12658
12659 \begin_layout Plain Layout
12660
12661 \family typewriter
12662
12663 \family default
12664
12665 \begin_inset Argument post:1
12666 status collapsed
12667
12668 \begin_layout Plain Layout
12669 キー
12670 \end_layout
12671
12672 \end_inset
12673
12674
12675 \end_layout
12676
12677 \end_inset
12678
12679
12680 \family typewriter
12681 }
12682 \family default
12683 」のように
12684 \family typewriter
12685 refcite
12686 \family default
12687 コマンドを使用してください.
12688 \end_layout
12689
12690 \begin_layout Enumerate
12691 両パッケージには,「謝辞」環境がありません.謝辞を置くには,「節*」環境を使用してください.
12692 \end_layout
12693
12694 \begin_layout Enumerate
12695 付録は,論文中,謝辞の
12696 \emph on
12697
12698 \emph default
12699 かつ書誌情報の
12700 \emph on
12701
12702 \emph default
12703 であれば,入れることができます.\SpecialChar LyX
12704 上では,「付録領域」という特別な環境があり,これを使って付録の開始位置を指定することができます.この環境は空のままにしておかなく
12705 てはなりません.この環境は,\SpecialChar LaTeX
12706 コマンドを書き出すだけで,実際に出力は行いません.\SpecialChar LyX
12707 上では,青字で「Appendix」という単語が表示され,この箇所より後の節はすべて
12708 付録であることを明示します.「付録領域」は,最初の付録の前に
12709 \emph on
12710 なくてはならない
12711 \emph default
12712 ことに注意してください.さもなくば,出力中において,付録はすべて通常の節として連番が振られてしまいます.
12713 \end_layout
12714
12715 \begin_layout Enumerate
12716 ijmpcおよびijmpdパッケージは,表キャプションを実装するのに
12717 \family typewriter
12718 tbl
12719 \family default
12720 コマンドを使用します.そのため,\SpecialChar LyX
12721 が作成した表は正しく印字されますが,そのキャプションは無視されます.しかし,\SpecialChar TeX
12722 コードを少し使えば,この問題を回避して,キャプション
12723 を望み通り印字することができるようになります.そうするには,表フロートを通常通り作成して,キャプションを削除し,代わりに\SpecialChar TeX
12724 コードで
12725 \family typewriter
12726
12727 \backslash
12728 tbl{表キャプション}{
12729 \family default
12730 (ママ)と入れます.そこに表の内容を入れて,直後を\SpecialChar TeX
12731 コード
12732 \family typewriter
12733 }
12734 \family default
12735 で閉じてください.このからくりがどのように実装されているかを見るには,ひな型ファイルに入っている表の例を精査してみてください.別の方法としては,表キャプションが
12736 欲しい場合に,表フロート全体を
12737 \family typewriter
12738 .tex
12739 \family default
12740 ファイルに収め,このファイルを\SpecialChar LyX
12741 文書に取り込んでください(
12742 \family sans
12743 挿入\SpecialChar menuseparator
12744 ファイル\SpecialChar menuseparator
12745 子文書
12746 \family default
12747 ).表フロートの作り方についての詳細は,各パッケージに含まれている
12748 \family typewriter
12749 ws-ijmpc.tex
12750 \family default
12751 または
12752 \family typewriter
12753 ws-ijmpd.tex
12754 \family default
12755 ファイルをご覧ください.
12756 \end_layout
12757
12758 \begin_layout Subsection
12759 原稿を投稿するための準備
12760 \end_layout
12761
12762 \begin_layout Standard
12763 論文を投稿する前には,\SpecialChar LyX
12764 文書を\SpecialChar LaTeX
12765 ファイルに書き出し(
12766 \family sans
12767 ファイル\SpecialChar menuseparator
12768 書き出し\SpecialChar menuseparator
12769 \SpecialChar LaTeX
12770
12771 \family default
12772 )
12773 \begin_inset Foot
12774 status open
12775
12776 \begin_layout Plain Layout
12777 実は,\SpecialChar LaTeX
12778  (plain)とpdflatexとの間で選択ができます.論文を準備するのにpdflatexを使用しようとするのであれば,取り込んである画像がPDF形式に
12779 変換され,pdflatexで使用できるように,pdflatexオプションを指定しなくてはなりません.
12780 \end_layout
12781
12782 \end_inset
12783
12784 ,その
12785 \family typewriter
12786 .tex
12787 \family default
12788 ファイルに以下の変更を加える必要があります.
12789 \end_layout
12790
12791 \begin_layout Enumerate
12792
12793 \family typewriter
12794
12795 \backslash
12796 documentclass
12797 \family default
12798 コマンドより前にあるコメント行を削除する.
12799 \end_layout
12800
12801 \begin_layout Enumerate
12802 自身で明示的に\SpecialChar LaTeX
12803 プリアンブルに置いたコマンドを除き,
12804 \family typewriter
12805
12806 \backslash
12807 makeatletter
12808 \family default
12809 コマンドと
12810 \family typewriter
12811
12812 \backslash
12813 makeatother
12814 \family default
12815 コマンドの間にあるものをすべて削除する.
12816 \end_layout
12817
12818 \begin_layout Standard
12819 こうして修正を加えた
12820 \family typewriter
12821 .tex
12822 \family default
12823 ファイルを保存し,必要な回数\SpecialChar LaTeX
12824 で処理してください.それによって得られた
12825 \family typewriter
12826 .dvi
12827 \family default
12828 文書も確認された方がよろしいでしょう.
12829 \end_layout
12830
12831 \begin_layout Subsection
12832 \SpecialChar TeX
12833 コードの使用
12834 \end_layout
12835
12836 \begin_layout Standard
12837 \SpecialChar TeX
12838 コードを使用するのは,2つのコマンドに限られ,これらは文書の最初に置かれなくてはなりません.論文をひな型
12839 \family typewriter
12840 ijmpc.lyx
12841 \family default
12842 または
12843 \family typewriter
12844 ijmpd.lyx
12845 \family default
12846 を使用して書き始めた場合には,これら必要な\SpecialChar TeX
12847 コードは,すでに書き込まれています.通常,これらを削除する必要はありません.2つのうち1番めの\SpecialChar TeX
12848 コードのみが,奇数ページ
12849 および偶数ページの上部に印字する情報(それぞれ著者名と論文の短縮タイトル)を指定するために,修正する必要があります.この\SpecialChar TeX
12850 コードは,
12851 \family typewriter
12852
12853 \backslash
12854 markboth{著者名}{論文の短縮タイトル}
12855 \family default
12856 という形である必要があります.
12857 \end_layout
12858
12859 \begin_layout Section
12860 iopart
12861 \end_layout
12862
12863 \begin_layout Standard
12864
12865 \noun on
12866 Uwe Stöhr
12867 \noun default
12868
12869 \end_layout
12870
12871 \begin_layout Subsection
12872 概要
12873 \end_layout
12874
12875 \begin_layout Standard
12876 iopartパッケージは,Institute of Physics(イギリス物理学会)発行の学術誌へ電子的に投稿する原稿を作成するための文書クラスを提供していま
12877 す.iopartクラスを使用した論文作成方法の著者用説明書は,ウェブサイト
12878 \begin_inset Flex URL
12879 status collapsed
12880
12881 \begin_layout Plain Layout
12882
12883 ftp://ftp.iop.org/pub/journals/latex2e
12884 \end_layout
12885
12886 \end_inset
12887
12888 からiopartパッケージとともにダウンロード可能です.
12889 \end_layout
12890
12891 \begin_layout Subsection
12892 論文を書く
12893 \end_layout
12894
12895 \begin_layout Standard
12896 論文を書くもっとも簡単な方法は,\SpecialChar LyX
12897 の用例ファイルフォルダにある
12898 \emph on
12899 IOP-article.lyx
12900 \emph default
12901 を土台にすることです.このファイルを開き,新しい名前で保存して,書き始めてください.この用例ファイルは,特定の環境の使用法についても説明しています.もっとも重要
12902 な助言として,以下の点にご注意ください.
12903 \end_layout
12904
12905 \begin_layout Itemize
12906 文書がPDF・PS・DVIにコンパイルできるようにするためには,文書設定の
12907 \family sans
12908 数式オプション
12909 \family default
12910 で,二つの
12911 \family sans
12912 AMS mathパッケージを使う
12913 \family default
12914 関連オプションが有効になっていないことを確認してください!
12915 \end_layout
12916
12917 \begin_layout Itemize
12918 タイトル環境の選択如何によって,論文の種類が定義されます.種類毎に以下の環境をタイトルに使用してください.
12919 \begin_inset Separator latexpar
12920 \end_inset
12921
12922
12923 \end_layout
12924
12925 \begin_deeper
12926 \begin_layout Itemize
12927 論文用には
12928 \family sans
12929 タイトル
12930 \end_layout
12931
12932 \begin_layout Itemize
12933 Review用には
12934 \family sans
12935 Review
12936 \end_layout
12937
12938 \begin_layout Itemize
12939 Topical review用には
12940 \family sans
12941 Topical
12942 \end_layout
12943
12944 \begin_layout Itemize
12945 Comment用には
12946 \family sans
12947 Comment
12948 \end_layout
12949
12950 \begin_layout Itemize
12951 Note用には
12952 \family sans
12953 注釈
12954 \end_layout
12955
12956 \begin_layout Itemize
12957 論文用には
12958 \family sans
12959 Paper
12960 \family default
12961 (タイトルと同じ)
12962 \end_layout
12963
12964 \begin_layout Itemize
12965 Preliminary communication用には
12966 \family sans
12967 Prelim
12968 \end_layout
12969
12970 \begin_layout Itemize
12971 Rapid communication用には
12972 \family sans
12973 Rapid
12974 \end_layout
12975
12976 \begin_layout Itemize
12977 編集者へのLetterには
12978 \family sans
12979 書簡
12980 \end_layout
12981
12982 \end_deeper
12983 \begin_layout Itemize
12984
12985 \family sans
12986 書簡
12987 \family default
12988 以外のタイトル環境には,すべて短縮タイトルをつけることもできます.
12989 \end_layout
12990
12991 \begin_layout Itemize
12992 \SpecialChar LyX
12993 では直接にサポートされていませんが,一般的なタイトル環境として
12994 \family sans
12995 Article
12996 \family default
12997 があります.執筆する文書が,他のタイトル型にそぐわない場合には,\SpecialChar TeX
12998 コードでこれを指定することができます.
12999 \end_layout
13000
13001 \begin_layout Standard
13002 特別な表や数式組版に関するヒントなど,詳しい情報については,IOP著者用ガイドラインを参照してください.
13003 \end_layout
13004
13005 \begin_layout Section
13006 Kluwer
13007 \end_layout
13008
13009 \begin_layout Standard
13010
13011 \noun on
13012 Panayotis Papasotiriou
13013 \noun default
13014
13015 \end_layout
13016
13017 \begin_layout Subsection
13018 概要
13019 \end_layout
13020
13021 \begin_layout Standard
13022 Kluwerパッケージは,Kluwer Academic Publishers社が発行する学術誌への電子投稿を可能にするために,同社が作成したマクロ集です.同社
13023 の発行誌のうち,(少なくとも私の専門内で)もっともよく知られているものは,
13024 \emph on
13025 Astrophysics and Space Science
13026 \emph default
13027 (『宇宙物理学と宇宙科学』)と
13028 \emph on
13029 Solar Physics
13030 \emph default
13031 (『太陽系物理学』)ですが,他にも多くの学術誌があります(
13032 \begin_inset Flex URL
13033 status collapsed
13034
13035 \begin_layout Plain Layout
13036
13037 http://www.wkap.nl/jrnllist.htm/JRNLHOME
13038 \end_layout
13039
13040 \end_inset
13041
13042 に全覧があります).Kluwerパッケージは,
13043 \begin_inset Flex URL
13044 status collapsed
13045
13046 \begin_layout Plain Layout
13047
13048 http://www.wkap.nl/kaphtml.htm/STYLEFILES
13049 \end_layout
13050
13051 \end_inset
13052
13053 からダウンロードできます.完全なユーザーの手引きも同パッケージ内に収録されています(個別にダウンロードすることも可能です).
13054 \end_layout
13055
13056 \begin_layout Standard
13057 \SpecialChar LyX
13058 は,このパッケージの機能の多くをサポートしていますが,すべてではありません.しかし,\SpecialChar TeX
13059 コードを必要とするのは,パッケージ中のいくつかの「変わった」コマンドだけにな
13060 りました(
13061 \begin_inset CommandInset ref
13062 LatexCommand ref
13063 reference "subsec:kluwer_peculiarities"
13064
13065 \end_inset
13066
13067 参照).最近,私は\SpecialChar LyX
13068 を使って書いた論文を
13069 \emph on
13070 Astrophysics and Space Science
13071 \emph default
13072 に投稿しましたが,何らの問題も発生しませんでした.
13073 \end_layout
13074
13075 \begin_layout Subsection
13076 論文を書く
13077 \end_layout
13078
13079 \begin_layout Standard
13080 論文を書き始めるには,ひな型ファイルKluwerを使うのが最も簡単です.
13081 \family sans
13082 ファイル\SpecialChar menuseparator
13083 新規(ひな型使用)
13084 \family default
13085 をクリックし,ひな型
13086 \family typewriter
13087 kluwer.lyx
13088 \family default
13089 を選択してください.これは,原稿に通常必要となる各フィールドと,それらの使用法が短く書かれただけの,(ほとんど)何も書かれていない文書です.他のテンプレートと同
13090 様に,既存の文章を(括弧
13091 \family typewriter
13092 <>
13093 \family default
13094 を含む)正しい情報で上書きしてください.
13095 \end_layout
13096
13097 \begin_layout Subsection
13098 投稿の準備
13099 \end_layout
13100
13101 \begin_layout Standard
13102 AAS\SpecialChar TeX
13103 パッケージと同様,論文を投稿する前に,以下のような「後処理」を行う必要があります.
13104 \end_layout
13105
13106 \begin_layout Enumerate
13107
13108 \family sans
13109 ファイル\SpecialChar menuseparator
13110 書き出し\SpecialChar menuseparator
13111 LateX
13112 \family default
13113 をクリックして,論文を\SpecialChar LaTeX
13114 ファイルに書き出す.
13115 \end_layout
13116
13117 \begin_layout Enumerate
13118 生成された
13119 \family typewriter
13120 .tex
13121 \family default
13122 ファイルに,テキストエディタを使用して,以下のような変更を加える.
13123 \begin_inset Separator latexpar
13124 \end_inset
13125
13126
13127 \end_layout
13128
13129 \begin_deeper
13130 \begin_layout Enumerate
13131
13132 \family typewriter
13133
13134 \backslash
13135 documentclass
13136 \family default
13137 コマンドより前にあるコメント行を削除する.
13138 \end_layout
13139
13140 \begin_layout Enumerate
13141 意図的に\SpecialChar LaTeX
13142 プリアンブルに加えたコマンドを除き,
13143 \family typewriter
13144
13145 \backslash
13146 makeatletter
13147 \family default
13148 から 
13149 \family typewriter
13150
13151 \backslash
13152 makeatother
13153 \family default
13154 の間にあるものを,これらのコマンドも含め,すべて削除する.
13155 \end_layout
13156
13157 \begin_layout Standard
13158 変更した
13159 \family typewriter
13160 .tex
13161 \family default
13162 ファイルを保存する.
13163 \end_layout
13164
13165 \end_deeper
13166 \begin_layout Enumerate
13167 この
13168 \family typewriter
13169 .tex
13170 \family default
13171 ファイルを必要な回数(通常3回以内)だけ\SpecialChar LaTeX
13172 にかける.
13173 \end_layout
13174
13175 \begin_layout Enumerate
13176 生成された
13177 \family typewriter
13178 .dvi
13179 \family default
13180 ファイルを
13181 \family sans
13182 xdvi
13183 \family default
13184 などを使って開き,問題がないか確認する(間違いをしていない限り問題ないはずです).
13185 \end_layout
13186
13187 \begin_layout Subsection
13188 Kluwerパッケージの「風変わり」な特徴
13189 \begin_inset CommandInset label
13190 LatexCommand label
13191 name "subsec:kluwer_peculiarities"
13192
13193 \end_inset
13194
13195
13196 \end_layout
13197
13198 \begin_layout Standard
13199 Kluwerパッケージには,以下のような「風変わりな」特徴があります.
13200 \end_layout
13201
13202 \begin_layout Enumerate
13203 複数の論文を1つの\SpecialChar LaTeX
13204 ファイルへ入れることができます
13205 \begin_inset Foot
13206 status collapsed
13207
13208 \begin_layout Plain Layout
13209 わざわざこんなことをする必要はないでしょう.
13210 \end_layout
13211
13212 \end_inset
13213
13214 .各論文は,「article」環境で囲まなくてはなりません.残念ながら,1つの論文だけを書く場合でも,この環境を省略することはできません.つまり,各論文は
13215 \family typewriter
13216
13217 \backslash
13218 begin{article}
13219 \family default
13220 で始まり,
13221 \family typewriter
13222
13223 \backslash
13224 end{article}
13225 \family default
13226 で終わります.この環境を\SpecialChar LyX
13227 に実装することも可能でしたが,醜い上に初心者を混乱させる可能性があるので,実装することはしませんでした.したがって,これらの命令(
13228 \family typewriter
13229
13230 \backslash
13231 begin{article}
13232 \family default
13233
13234 \family typewriter
13235
13236 \backslash
13237 end{article}
13238 \family default
13239 )は,直接本文中に入力して,\SpecialChar LaTeX
13240 コード(「\SpecialChar TeX
13241 コード」のことです)としてマークする必要があります.
13242 \end_layout
13243
13244 \begin_layout Enumerate
13245 論文の冒頭に置く情報(タイトル・サブタイトル・著者名・所属・ヘッダ用タイトル・ヘッダ用著者名・概要・キーワード)は,「opening」とよばれる環境に入れなくて
13246 はなりません.これは\SpecialChar LyX
13247 では実装されていませんので,タイトルやサブタイトルなどは,2つの\SpecialChar TeX
13248 コード行(
13249 \family typewriter
13250
13251 \backslash
13252 begin{opening}
13253 \family default
13254 および
13255 \family typewriter
13256
13257 \backslash
13258 end{opening}
13259 \family default
13260 )の間に入れる必要があります.
13261 \end_layout
13262
13263 \begin_layout Enumerate
13264 ユーザーの手引きによれば,書誌情報の各項目のラベルは,
13265 \family typewriter
13266
13267 \begin_inset Newline newline
13268 \end_inset
13269
13270
13271 \backslash
13272 protect
13273 \backslash
13274 citeauthoryear{
13275 \family default
13276 \emph on
13277 著者名
13278 \family typewriter
13279 \emph default
13280 }{
13281 \family default
13282 \emph on
13283
13284 \family typewriter
13285 \emph default
13286 }
13287 \family default
13288  と書く必要があります.
13289 \end_layout
13290
13291 \begin_layout Standard
13292 ひな型
13293 \family typewriter
13294 kluwer.lyx
13295 \family default
13296 は,これらの風変わりな点がすべて考慮されています.このひな型を使用して,論文を新たに書きはじめる場合には,特別なことを行う必要はありません.以下の点にのみ留意し
13297 てください.
13298 \end_layout
13299
13300 \begin_layout Enumerate
13301 ひな型にある\SpecialChar TeX
13302 コードを削除しないでください.
13303 \end_layout
13304
13305 \begin_layout Enumerate
13306 新しい書誌情報項目を入力する場合には,ひな型に例示されている書誌情報項目をコピーして,必要に応じて修正してください.
13307 \end_layout
13308
13309 \begin_layout Section
13310 Koma-Script
13311 \end_layout
13312
13313 \begin_layout Standard
13314
13315 \noun on
13316 Bernd Rellermeyer
13317 \noun default
13318
13319 \end_layout
13320
13321 \begin_layout Subsection
13322 概要
13323 \end_layout
13324
13325 \begin_layout Standard
13326 \SpecialChar LyX
13327 の文書クラス
13328 \emph on
13329 article (koma-script)
13330 \emph default
13331
13332 \emph on
13333 report (koma-script)
13334 \emph default
13335
13336 \emph on
13337 book
13338 \emph default
13339  
13340 \emph on
13341 (koma-script)
13342 \emph default
13343
13344 \emph on
13345 letter
13346 \emph default
13347  
13348 \emph on
13349 (koma-script)
13350 \emph default
13351 は,それぞれKoma-Scriptファミリーの\SpecialChar LaTeX
13352 文書クラス
13353 \family typewriter
13354 scrartcl.cls
13355 \family default
13356
13357 \family typewriter
13358 scrreprt.cls
13359 \family default
13360
13361 \family typewriter
13362 scrbook.cls
13363 \family default
13364
13365 \family typewriter
13366 scrlettr.cls
13367 \family default
13368 に対応しています.これらは,標準文書クラス
13369 \family typewriter
13370 article.cls
13371 \family default
13372
13373 \family typewriter
13374 report.cls
13375 \family default
13376
13377 \family typewriter
13378 book.cls
13379 \family default
13380
13381 \family typewriter
13382 letter.cls
13383 \family default
13384 の代替物であり,これらよりも多くの点でヨーロッパに於ける活版印刷の慣例に合致します.
13385 \end_layout
13386
13387 \begin_layout Itemize
13388 標準文字寸法は,
13389 \emph on
13390 article (koma-script)
13391 \emph default
13392
13393 \emph on
13394 report (koma-script)
13395 \emph default
13396
13397 \emph on
13398 book (koma-script)
13399 \emph default
13400 で11pt,
13401 \emph on
13402 letter (koma-script)
13403 \emph default
13404 で12ptです.
13405 \end_layout
13406
13407 \begin_layout Itemize
13408 見出しや箇条書き(記述)環境のラベル,および
13409 \emph on
13410 letter (koma-script)
13411 \emph default
13412 文書クラスの要素の多くでは,ボールド体サンセリフフォントが使われます
13413 \begin_inset Foot
13414 status collapsed
13415
13416 \begin_layout Plain Layout
13417 ボールド体サンセリフフォントには,古いcmフォントと新しいecフォントの間に大きな違いがあり,特に見出しの表示の違いが際立ちます.比較すると,ecボールドサンセ
13418 リフフォントの方が,少し細く見えます.ecフォントを使用する際に「通常の」外観が欲しい場合には,
13419 \shape smallcaps
13420 Walter Schmidt
13421 \shape default
13422 作の\SpecialChar LaTeX
13423 パッケージ
13424 \family typewriter
13425 cmsd.sty
13426 \family default
13427 が役立ちます.
13428 \end_layout
13429
13430 \end_inset
13431
13432 .章見出しの連番は,節見出しの連番と同様に行われ,別行立てで「 Chapter\SpecialChar ldots
13433 」という行がつきません.さらに,多くのオプションによって,見出しの外観を修正するこ
13434 とができます(\SpecialChar LyX
13435 では,
13436 \family sans
13437 文書\SpecialChar menuseparator
13438 設定
13439 \family default
13440 ダイアログの
13441 \family sans
13442 クラスオプション
13443 \family default
13444 フィールドで指定します).これらのオプションの独語での詳細な説明が,Koma-Scriptの取扱説明書
13445 \emph on
13446 scrguide
13447 \emph default
13448 にあります.
13449 \end_layout
13450
13451 \begin_layout Itemize
13452 Koma-Script文書クラスで,印字部分をデザインする主な方法は,
13453 \family sans
13454 BCOR
13455 \family default
13456 オプションまたは
13457 \family sans
13458 DIV
13459 \family default
13460 オプションを使う方法です(\SpecialChar LyX
13461 では,
13462 \family sans
13463 文書\SpecialChar menuseparator
13464 設定
13465 \family default
13466 ダイアログの
13467 \family sans
13468 クラスオプション
13469 \family default
13470 フィールドで指定します).これらのオプションは
13471 \family sans
13472 文書\SpecialChar menuseparator
13473 設定
13474 \family default
13475 ダイアログのオプションと同様に,ページ余白を明示的に変更することができます.これらとその他印字領域オプションのドイツ語での詳細な説明が,Koma-Script取
13476 扱説明書
13477 \emph on
13478 scrguide
13479 \emph default
13480 にあります.
13481 \end_layout
13482
13483 \begin_layout Itemize
13484 Koma-Scriptファミリーの\SpecialChar LaTeX
13485 文書クラスには,多くの追加コマンドが定義されています.それらのうち,\SpecialChar LyX
13486 で意味を持つものは,対応する段落環境として実装されています
13487
13488 \end_layout
13489
13490 \begin_layout Standard
13491 Koma-Scriptファミリーの\SpecialChar LaTeX
13492 文書クラスに関する独語の詳細な説明が,Koma-Script取扱説明書
13493 \emph on
13494 scrguide
13495 \emph default
13496 にあります
13497 \begin_inset Foot
13498 status collapsed
13499
13500 \begin_layout Plain Layout
13501 英語翻訳版の
13502 \emph on
13503 screnggu
13504 \emph default
13505 もありますが,完訳ではありません.
13506 \end_layout
13507
13508 \end_inset
13509
13510 .以下の各節では,\SpecialChar LyX
13511 に関係する側面のみ説明致します.
13512 \end_layout
13513
13514 \begin_layout Subsection
13515 article (koma-script)・report (koma-script)・book (koma-script)
13516 \end_layout
13517
13518 \begin_layout Standard
13519 文書クラス
13520 \emph on
13521 article (koma-script)
13522 \emph default
13523
13524 \emph on
13525 report (koma-script)
13526 \emph default
13527
13528 \emph on
13529 book
13530 \emph default
13531  
13532 \emph on
13533 (koma-script)
13534 \emph default
13535 は,それぞれレイアウトファイル
13536 \family typewriter
13537 scrartcl.layout
13538 \family default
13539
13540 \family typewriter
13541 scrreprt.layou
13542 \family default
13543 t・
13544 \family typewriter
13545 crbook.layout
13546 \family default
13547 によって実装されています.これらは,対応する標準文書クラス
13548 \emph on
13549 article
13550 \emph default
13551
13552 \emph on
13553 report
13554 \emph default
13555
13556 \emph on
13557 book
13558 \emph default
13559 の段落環境を,若干の修正を加えた上ですべて含んでいますが,\SpecialChar LyX
13560 固有の
13561 \family sans
13562 箇条書き(一覧)
13563 \family default
13564 環境は例外であり,同じ機能を持つ新しい
13565 \family sans
13566 ラベリング
13567 \family default
13568 環境で置き換えられています.この
13569 \family sans
13570 ラベリング
13571 \family default
13572 環境以外にも,新しい段落環境が多く追加されています.これらは,
13573 \emph on
13574 letter (koma-script)
13575 \emph default
13576 には含まれていないのでご注意ください.
13577 \end_layout
13578
13579 \begin_layout Itemize
13580
13581 \family sans
13582 部(addpart)
13583 \family default
13584
13585 \family sans
13586 章(addchap)
13587 \family default
13588
13589 \family sans
13590 節(addsec)
13591 \family default
13592 :これらは,それぞれ
13593 \family sans
13594 部*
13595 \family default
13596
13597 \family sans
13598 章*
13599 \family default
13600
13601 \family sans
13602 節*
13603 \family default
13604 と同等の働きをしますが,加えて目次に項目が表示されるようになります.
13605 \family sans
13606 部(addpart)
13607 \family default
13608
13609 \family sans
13610 章(addchap)
13611 \family default
13612 は,
13613 \emph on
13614 article (koma-script)
13615 \emph default
13616 には収録されていません.
13617 \end_layout
13618
13619 \begin_layout Itemize
13620
13621 \family sans
13622 章(addchap*)
13623 \family default
13624
13625 \family sans
13626 節(addsec*)
13627 \family default
13628 :これらは,
13629 \family sans
13630 章(addchap
13631 \family default
13632 )と
13633 \family sans
13634 節(addsec)
13635 \family default
13636 とまったく同等に動作しますが,加えてランニングへッダを取り除きます.
13637 \family sans
13638 章(addchap*)
13639 \family default
13640 は, 
13641 \emph on
13642 article (koma-script)
13643 \emph default
13644 には収録されていません
13645 \begin_inset Foot
13646 status collapsed
13647
13648 \begin_layout Plain Layout
13649
13650 \emph on
13651 book (koma-script)
13652 \emph default
13653
13654 \emph on
13655 report (koma-script)
13656 \emph default
13657 には,
13658 \family typewriter
13659
13660 \backslash
13661 addpart*
13662 \family default
13663 コマンドもありますが,これは
13664 \family sans
13665 Part*
13666 \family default
13667 と同一なので,\SpecialChar LyX
13668 では実装されていません.
13669 \end_layout
13670
13671 \end_inset
13672
13673
13674 \end_layout
13675
13676 \begin_layout Itemize
13677
13678 \family sans
13679 小見出し(minisec)
13680 \family default
13681 :これは文書構造に現れない形で,続く段落の直上に標準文字寸法の見出しを付けます.
13682 \end_layout
13683
13684 \begin_layout Itemize
13685
13686 \family sans
13687 上部キャプション
13688 \family default
13689
13690 \family sans
13691 下部キャプション
13692 \family default
13693 は,ある要素の上部ないし下部にキャプションを配置する際,位置に応じて正しく余白取りを行う特別なキャプションです(組版規則に厳密に従うならば,表キャプションは,つ
13694 ねに表の上に置くべきでしょう).また,クラスオプション
13695 \family typewriter
13696 tablecaptionsabove
13697 \family default
13698 を用いれば,キャプションを指定すると,表には
13699 \family sans
13700 上部キャプション
13701 \family default
13702 が,図には
13703 \family sans
13704 下部キャプション
13705 \family default
13706 が適用されるようになります.これを使用するためには,Koma-Script第2.8q版以上が必要です.
13707 \end_layout
13708
13709 \begin_layout Itemize
13710
13711 \family sans
13712 格言(dictum)
13713 \family default
13714 :これは,章頭などに警句を置くのに用いることができます.オプション引数(
13715 \family sans
13716 挿入\SpecialChar menuseparator
13717 短縮タイトル
13718 \family default
13719 )を用いれば,格言の作者を入れることができます.格言と作者の間は,線で区切られます.これを使用するためには,Koma-Script第2.8q版以上が必要です.
13720 \family sans
13721 格言(dictum)
13722 \family default
13723 は,
13724 \emph on
13725 article (koma-script)
13726 \emph default
13727 には収録されていません.
13728 \end_layout
13729
13730 \begin_layout Standard
13731 以下の各環境は,標準の
13732 \family sans
13733 タイトル
13734 \family default
13735
13736 \family sans
13737 著者
13738 \family default
13739
13740 \family sans
13741 日付
13742 \family default
13743 とともに文書のタイトル領域を形成します.これらは,最初の「通常の」段落よりも前に置かれる必要があります
13744 \begin_inset Foot
13745 status collapsed
13746
13747 \begin_layout Plain Layout
13748 つまり,対応する\SpecialChar LaTeX
13749 コマンドが
13750 \family typewriter
13751
13752 \backslash
13753 maketitle
13754 \family default
13755 コマンドよりも前に現れなくてはなりません.
13756 \end_layout
13757
13758 \end_inset
13759
13760 .これらの環境が2度以上使用された場合には,後に使用されたものが前のものを上書きします.つまり最後に使用したもののみが有効になります.しかしながら,
13761 \family sans
13762 タイトル
13763 \family default
13764
13765 \family sans
13766 著者
13767 \family default
13768
13769 \family sans
13770 日付
13771 \family default
13772 のような異なる環境の順序を変更しても,生成された文書には何の効果も生じません.
13773 \end_layout
13774
13775 \begin_layout Itemize
13776
13777 \family sans
13778 主題
13779 \family default
13780 :通常のタイトル部(
13781 \family sans
13782 タイトル
13783 \family default
13784
13785 \family sans
13786 著者
13787 \family default
13788
13789 \family sans
13790 日付
13791 \family default
13792 )の上に,文書の主題用の中央揃えの段落を生成します.
13793 \end_layout
13794
13795 \begin_layout Itemize
13796
13797 \family sans
13798 出版社
13799 \family default
13800 :通常のタイトル部(
13801 \family sans
13802 タイトル
13803 \family default
13804
13805 \family sans
13806 著者
13807 \family default
13808
13809 \family sans
13810 日付
13811 \family default
13812 )の下に,出版社名用の中央揃えの段落を生成します.
13813 \end_layout
13814
13815 \begin_layout Itemize
13816
13817 \family sans
13818 献呈
13819 \family default
13820
13821 \emph on
13822 report (koma-script)
13823 \emph default
13824
13825 \emph on
13826 book (koma-script)
13827 \emph default
13828 では,タイトル頁の次に,献辞用の中央揃えの段落を独立した頁として生成します.
13829 \emph on
13830 article (koma-script)
13831 \emph default
13832 の場合は,通常のタイトル部(
13833 \family sans
13834 タイトル
13835 \family default
13836
13837 \family sans
13838 著者
13839 \family default
13840
13841 \family sans
13842 日付
13843 \family default
13844 )の下に献辞用の中央揃えの段落を生成します.
13845 \end_layout
13846
13847 \begin_layout Itemize
13848
13849 \family sans
13850 タイトル頭書き
13851 \family default
13852 :通常のタイトル部(
13853 \family sans
13854 タイトル
13855 \family default
13856
13857 \family sans
13858 著者
13859 \family default
13860
13861 \family sans
13862 日付
13863 \family default
13864 )の上に,文書頭書き用の左揃えの段落を生成します.
13865 \end_layout
13866
13867 \begin_layout Itemize
13868
13869 \family sans
13870 扉裏上部
13871 \family default
13872
13873 \emph on
13874 report (koma-script)
13875 \emph default
13876 や 
13877 \emph on
13878 book (koma-script)
13879 \emph default
13880 の両面印刷において,扉裏上部に左揃え段落を生成します.片面印刷や,
13881 \emph on
13882 article (koma-script)
13883 \emph default
13884 では何の効果も生じません.
13885 \end_layout
13886
13887 \begin_layout Itemize
13888
13889 \family sans
13890 扉裏下部
13891 \family default
13892
13893 \emph on
13894 report (koma-script)
13895 \emph default
13896 や 
13897 \emph on
13898 book (koma-script)
13899 \emph default
13900 の両面印刷において,扉裏下部に左揃え段落を生成します.片面印刷や,
13901 \emph on
13902 article (koma-script)
13903 \emph default
13904 では何の効果も生じません.
13905 \end_layout
13906
13907 \begin_layout Itemize
13908
13909 \family sans
13910 追加タイトル
13911 \family default
13912 :実際の文書の前に,整形を行わない段落から成る,特殊な「汚い」ページを生成します.
13913 \end_layout
13914
13915 \begin_layout Standard
13916 文書クラス
13917 \emph on
13918 article (koma-script)
13919 \emph default
13920
13921 \emph on
13922 report (koma-script)
13923 \emph default
13924
13925 \emph on
13926 book (koma-script)
13927 \emph default
13928 の 各レイアウトファイルは,
13929 \family typewriter
13930 scrmacros.inc
13931 \family default
13932 ファイルを読み込みます.このファイルは,ユーザ環境を定義する場所として想定されています.s
13933 \family typewriter
13934 crmacros.inc
13935 \family default
13936 を,個人用レイアウトディレクトリにコピーして編集してください!
13937 \end_layout
13938
13939 \begin_layout Subsection
13940 letter (koma-script)
13941 \end_layout
13942
13943 \begin_layout Standard
13944 \noindent
13945 文書クラス
13946 \emph on
13947 letter (koma-script)
13948 \emph default
13949 は,レイアウトファイル 
13950 \family typewriter
13951 scrlettr.layout
13952 \family default
13953 で実装されています.このレイアウトファイルには,対応する標準文書クラス
13954 \emph on
13955 letter
13956 \emph default
13957 の全段落環境が,部分的に変更を加えた形で収録されていますが,\SpecialChar LyX
13958 固有環境の
13959 \family sans
13960 \SpecialChar LyX
13961 コード
13962 \family default
13963
13964 \family sans
13965 コメント
13966 \family default
13967
13968 \family sans
13969 箇条書き(一覧
13970 \family default
13971 )は,新しく
13972 \family sans
13973 ラベリング
13974 \family default
13975 環境に置き換えられています.それ以外にも,標準文書クラスとは異なり,標準環境の
13976 \family sans
13977 \SpecialChar LaTeX
13978
13979 \family default
13980
13981 \family sans
13982 引用(字下げあり)
13983 \family default
13984
13985 \family sans
13986 引用(字下げなし)
13987 \family default
13988
13989 \family sans
13990 詩句
13991 \family default
13992 が収録されています.さらに,新しいletter固有環境がたくさん追加されています.
13993 \end_layout
13994
13995 \begin_layout Standard
13996 この文書クラスで作成した書簡の外観は,様々な\SpecialChar LaTeX
13997 コマンドを\SpecialChar LaTeX
13998 プリアンブルに置くことで制御することができます
13999 \begin_inset Foot
14000 status collapsed
14001
14002 \begin_layout Plain Layout
14003 例えば,名前と住所の入った書簡ヘッダの標準的外観は,きわめて頑固です.「普通の」へッダは,プリアンブル中に以下のようなコマンドを入れることで生成することができま
14004 す.
14005 \end_layout
14006
14007 \begin_layout LyX-Code
14008
14009 \backslash
14010 firsthead{
14011 \backslash
14012 parbox[b]{
14013 \backslash
14014 textwidth}
14015 \end_layout
14016
14017 \begin_layout LyX-Code
14018   {
14019 \backslash
14020 ignorespaces 
14021 \backslash
14022 fromname
14023 \backslash
14024
14025 \backslash
14026  
14027 \backslash
14028 ignorespaces 
14029 \backslash
14030 fromaddress}} 
14031 \end_layout
14032
14033 \begin_layout LyX-Code
14034
14035 \backslash
14036 nexthead{
14037 \backslash
14038 parbox[b]{
14039 \backslash
14040 textwidth}
14041 \end_layout
14042
14043 \begin_layout LyX-Code
14044   {
14045 \backslash
14046 ignorespaces 
14047 \backslash
14048 fromname 
14049 \backslash
14050 hfill 
14051 \backslash
14052 ignorespaces 
14053 \backslash
14054 pagename
14055 \backslash
14056
14057 \end_layout
14058
14059 \begin_layout LyX-Code
14060
14061 \backslash
14062 thepage}}
14063 \end_layout
14064
14065 \end_inset
14066
14067 .これらの\SpecialChar LaTeX
14068 コマンドのドイツ語での詳細な説明は,Koma-Scriptの取扱説明書
14069 \emph on
14070 scrguide
14071 \emph default
14072 にあります.この方法で,書簡の著者は,個人用書簡レイアウトを作ることができます.
14073 \end_layout
14074
14075 \begin_layout Standard
14076
14077 \family sans
14078 書簡
14079 \family default
14080 環境および
14081 \family sans
14082 頭語
14083 \family default
14084 環境は,書簡の冒頭部を定義するもので,すべての書簡で使用しなくてはなりません.\SpecialChar LyX
14085 文書クラスでは,これらの環境を強調するために,左余白にそれぞれ
14086 \shape italic
14087 L
14088 \shape default
14089
14090 \shape italic
14091 O
14092 \shape 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 PS
14108 \family default
14109
14110 \family sans
14111 CC
14112 \family default
14113
14114 \family sans
14115 Encl
14116 \family default
14117 は,通常の段落環境なので,同一の書簡中でも何度も使用することができます.
14118 \end_layout
14119
14120 \begin_layout Itemize
14121
14122 \family sans
14123 書簡
14124 \family default
14125 :受取人のための段落をつくり,暗黙に書簡の開始を定義します.
14126 \end_layout
14127
14128 \begin_layout Itemize
14129
14130 \family sans
14131 頭語
14132 \family default
14133 :敬称のための段落をつくり,暗黙に新しい書簡を開始します.
14134 \end_layout
14135
14136 \begin_layout Itemize
14137
14138 \family sans
14139 結語
14140 \family default
14141 :結語のための段落をつくります.
14142 \end_layout
14143
14144 \begin_layout Itemize
14145
14146 \family sans
14147 PS
14148 \family default
14149 :追伸のための段落をつくります.
14150 \end_layout
14151
14152 \begin_layout Itemize
14153
14154 \family sans
14155 CC
14156 \family default
14157 :同報一覧のための段落をつくります.
14158 \end_layout
14159
14160 \begin_layout Itemize
14161
14162 \family sans
14163 Encl
14164 \family default
14165 :同封物のための段落をつくります.
14166 \end_layout
14167
14168 \begin_layout Standard
14169
14170 \family sans
14171 名前
14172 \family default
14173
14174 \family sans
14175 署名
14176 \family default
14177
14178 \family sans
14179 住所
14180 \family default
14181
14182 \family sans
14183 電話
14184 \family default
14185
14186 \family sans
14187 場所(Place
14188 \family default
14189 )・
14190 \family sans
14191 返送先住所
14192 \family default
14193
14194 \family sans
14195 配送手段(Specialmail)
14196 \family default
14197
14198 \family sans
14199 場所
14200 \family default
14201
14202 \family sans
14203 タイトル
14204 \family default
14205
14206 \family sans
14207 主題
14208 \family default
14209 は,情報入力を促すラベルの付いた入力環境で,文書クラスが適切な処理を行います
14210 \begin_inset Foot
14211 status collapsed
14212
14213 \begin_layout Plain Layout
14214 上述の
14215 \family sans
14216 書簡
14217 \family default
14218
14219 \family sans
14220 頭語
14221 \family default
14222 が,これらのような入力環境でないのは,矛盾しているように感じられるかもしれません.しかしながら,これら2つの環境は特別の意味を持っているために,これらは左余白に
14223 一文字をマークした通常の段落環境として実装しました.さらに,
14224 \family sans
14225 頭語
14226 \family default
14227 環境と
14228 \family sans
14229 結語
14230 \family default
14231 環境が著しく異なって見えると対称性が損なわれることになるのも理由の一つです.
14232 \end_layout
14233
14234 \end_inset
14235
14236 .これらの環境は,対応する
14237 \family sans
14238 頭語
14239 \family default
14240 環境の前に置く必要があります.
14241 \end_layout
14242
14243 \begin_layout Standard
14244 生成された書簡の実際の外観は,特定の環境の使い方だけではなく,他の要素にも依存するため,これらの環境をWYSIWYGとして実装することには,あまり意味がありませ
14245 ん.たとえば,
14246 \family sans
14247 署名
14248 \family default
14249 環境で入力した署名は,標準的な挙動では,同じ書簡に
14250 \family sans
14251 結語
14252 \family default
14253 環境も使用されているときのみ,書簡の出力に現れます.
14254 \family sans
14255 電話
14256 \family default
14257 環境に入力された値は,標準的な挙動では,書簡の出力には全く表示されません.書簡のヘッダを自由にデザインできることは,前出の脚注で示してあります.
14258 \end_layout
14259
14260 \begin_layout Standard
14261 入力環境は,空の段落として使うことができます.これは,たとえば
14262 \family sans
14263 署名
14264 \family default
14265 環境の場合に有効です.
14266 \family sans
14267 署名
14268 \family default
14269 環境を全く使用しない場合は,標準的な挙動では,
14270 \family sans
14271 名前
14272 \family default
14273 環境の値が署名として使用されますが,空の
14274 \family sans
14275 署名
14276 \family default
14277 環境を作成しておくと,署名の値は無定義となりません.
14278 \end_layout
14279
14280 \begin_layout Standard
14281 入力環境を使用すると,個人データ(名前や住所など)が既に入力された入力環境と,後から入力するデータの入力環境を備えた,書簡のひな型を作成することができます.
14282 \end_layout
14283
14284 \begin_layout Itemize
14285
14286 \family sans
14287 名前
14288 \family default
14289 :送り主の名前.標準的な挙動では,書簡のヘッダ部にスモールキャップ体の中央揃えの段落として表示されます.
14290 \end_layout
14291
14292 \begin_layout Itemize
14293
14294 \family sans
14295 署名
14296 \family default
14297 :送り主の署名.標準的な挙動では,
14298 \family sans
14299 結語
14300 \family default
14301 環境の下に表示されます.
14302 \family sans
14303 署名
14304 \family default
14305 環境を使用しないと,代わりに
14306 \family sans
14307 名前
14308 \family default
14309 環境の値が表示されます.
14310 \end_layout
14311
14312 \begin_layout Itemize
14313
14314 \family sans
14315 住所
14316 \family default
14317 :送り主の住所.標準的な挙動では,書簡ヘッダの送り主の名前の下に中央揃えの段落として表示されます.
14318 \end_layout
14319
14320 \begin_layout Itemize
14321
14322 \family sans
14323 電話
14324 \family default
14325 :送り主の電話番号.標準的な挙動では,\SpecialChar LaTeX
14326 変数
14327 \family typewriter
14328
14329 \backslash
14330 telephonenum
14331 \family default
14332 を設定するだけです.
14333 \end_layout
14334
14335 \begin_layout Itemize
14336
14337 \family sans
14338 場所(Place)
14339 \family default
14340 :書簡を書いた場所.
14341 \end_layout
14342
14343 \begin_layout Itemize
14344
14345 \family sans
14346 日付
14347 \family default
14348 :書簡を書いた日付.
14349 \family sans
14350 場所(Place)
14351 \family default
14352
14353 \family sans
14354 日付
14355 \family default
14356 は,標準的な挙動では,受取人フィールドの下に,単一の右揃え行として場所と日付を生成します.空の
14357 \family sans
14358 日付
14359 \family default
14360 環境を作成しておくと,
14361 \family sans
14362 場所(Place)
14363 \family default
14364 の値如何に関わらず,場所も日付も表示されません.
14365 \family sans
14366 日付
14367 \family default
14368 環境を使用しない場合には,書簡を出力した日付が使用されます.
14369 \end_layout
14370
14371 \begin_layout Itemize
14372
14373 \family sans
14374 返送先住所
14375 \family default
14376 :送り主の返送先住所.標準的な挙動では,受取人の上に小文字のサンセリフ体フォントで表示されます.
14377 \end_layout
14378
14379 \begin_layout Itemize
14380
14381 \family sans
14382 特別便
14383 \family default
14384 :特別便の情報.標準的な挙動では,受取人フィールドの上かつ返送先住所の下に,下線付きで表示されます.
14385 \end_layout
14386
14387 \begin_layout Itemize
14388
14389 \family sans
14390 場所
14391 \family default
14392 :追加情報.標準的な挙動では,受取人フィールドの下の右側に表示されます.
14393 \end_layout
14394
14395 \begin_layout Itemize
14396
14397 \family sans
14398 タイトル
14399 \family default
14400 :書簡の題名.標準的な挙動では,主題の上に大きなボールド体サンセリフフォントで表示されます.
14401 \end_layout
14402
14403 \begin_layout Itemize
14404
14405 \family sans
14406 主題
14407 \family default
14408 :書簡の主題.標準的な挙動では,
14409 \family sans
14410 頭語
14411 \family default
14412 環境の上にボールド体で表示されます.
14413 \end_layout
14414
14415 \begin_layout Standard
14416
14417 \family sans
14418 Yourref・Yourmail・Myref・顧客・インボイス
14419 \family default
14420 といった環境は,
14421 \family sans
14422 タイトル
14423 \family default
14424 行の上に「Your ref.」・「Your letter of」・「Our ref.」・「Customer no.」・「Invoice no.」・「Date」といったフ
14425 ィールド行を持つ,ビジネス書簡を作成します.日付フィールドには,
14426 \family sans
14427 日付
14428 \family default
14429 環境の値が使用されます.しかしながら,これらの「ビジネス書簡環境」の一つを使用した場合には,
14430 \family sans
14431 場所(Place)
14432 \family default
14433 の値は書簡には表示されなくなり,\SpecialChar LaTeX
14434 変数
14435 \family typewriter
14436
14437 \backslash
14438 fromplace
14439 \family default
14440 が設定させるだけになります.通常時に,受取人フィールドの下に右揃えで出力される場所と日付の出力は,抑制されます.これらのビジネス環境は,ラベル付きの入力環境とし
14441 て実装されており,対応する
14442 \family sans
14443 頭語
14444 \family default
14445 環境よりも前に置く必要があります.
14446 \end_layout
14447
14448 \begin_layout Itemize
14449
14450 \family sans
14451 Yourref
14452 \family default
14453 : Your ref.
14454 \end_layout
14455
14456 \begin_layout Itemize
14457
14458 \family sans
14459 Yourmail
14460 \family default
14461 : Your letter of.
14462 \end_layout
14463
14464 \begin_layout Itemize
14465
14466 \family sans
14467 Myref
14468 \family default
14469 : Our ref.
14470 \end_layout
14471
14472 \begin_layout Itemize
14473
14474 \family sans
14475 Customer
14476 \family default
14477 : Customer no.
14478 \end_layout
14479
14480 \begin_layout Itemize
14481
14482 \family sans
14483 Invoice
14484 \family default
14485 : Invoice no.
14486 \end_layout
14487
14488 \begin_layout Subsection
14489 新しいletterクラス:letter (koma-script v.2)
14490 \end_layout
14491
14492 \begin_layout Standard
14493 by 
14494 \noun on
14495 Jürgen Spitzmüller
14496 \begin_inset VSpace medskip
14497 \end_inset
14498
14499
14500 \end_layout
14501
14502 \begin_layout Standard
14503 \noindent
14504 Koma-Script第2.8版では,新しいletterクラス
14505 \family typewriter
14506 scrlttr2
14507 \family default
14508 が導入されたため,
14509 \family typewriter
14510 scrlettr
14511 \family default
14512 は廃止されてサポート対象外となりました.これは—\SpecialChar LaTeX
14513 側で—全く新しいインターフェイスを持っており,旧クラスとは互換性がありません.したがって,\SpecialChar LyX
14514 は両者をサポートしてい
14515 ますが,新しい方のクラスを使用することを推奨します.
14516 \end_layout
14517
14518 \begin_layout Standard
14519 このクラスは,
14520 \emph on
14521 letter (koma-script)
14522 \emph default
14523 と同一の機能に加えて,新しい機能をいくつかサポートしています.基本となる項目は,
14524 \family sans
14525 住所
14526 \family default
14527 (受取人の住所,旧レイアウトの
14528 \family sans
14529 書簡
14530 \family default
14531 と同じ)・
14532 \family sans
14533 頭語
14534 \family default
14535
14536 \family sans
14537 結語
14538 \family default
14539 です.
14540 \family sans
14541 次の住所
14542 \family default
14543 は別の書簡を新しく開始します(つまり一文書あたり複数の書簡を書くことができます).新しく付け加えられた項目は,送り主の
14544 \family sans
14545 電子メール
14546 \family default
14547
14548 \family sans
14549 URL
14550 \family default
14551
14552 \family sans
14553 ファックス
14554 \family default
14555
14556 \family sans
14557 銀行
14558 \family default
14559 ,およびヘッダに(
14560 \family sans
14561 挿入\SpecialChar menuseparator
14562
14563 \family default
14564 で)
14565 \family sans
14566 ロゴ
14567 \family default
14568 を入れることができるようになった点です.
14569 \end_layout
14570
14571 \begin_layout Standard
14572 しかしながら,もっとも大きな改善は,書簡のレイアウトを,ほとんどどんなニーズにも合わせて設定できるようになった点でしょう.これはプリアンブルか,クラスオプション
14573 として読み込まれる特別なスタイルファイル(「レタークラスオプション」,拡張子
14574 \family typewriter
14575 *.lco
14576 \family default
14577 )によって設定することができます
14578 \begin_inset Foot
14579 status collapsed
14580
14581 \begin_layout Plain Layout
14582 KOMAパッケージには,既定の
14583 \family typewriter
14584 *.lco
14585 \family default
14586 ファイルがいくつか収録されています.たとえば,ドイツの組版規則に則った
14587 \family typewriter
14588 DIN.lco
14589 \family default
14590 や,旧
14591 \family typewriter
14592 scrlettr
14593 \family default
14594 クラスの既定レイアウトを提供する
14595 \family typewriter
14596 KOMAold.lco
14597 \family default
14598 などです.たとえば後者は,
14599 \family sans
14600 文書\SpecialChar menuseparator
14601 設定\SpecialChar menuseparator
14602 文書クラス\SpecialChar menuseparator
14603 クラスオプション
14604 \family default
14605 フィールドにクラスオプション
14606 \family typewriter
14607 KOMAold
14608 \family default
14609 を加えることで読み込むことができます.
14610 \end_layout
14611
14612 \end_inset
14613
14614 .用例としては,\SpecialChar LyX
14615 に収録されているひな型
14616 \emph on
14617 koma-letter2
14618 \emph default
14619 をご覧ください.詳細な解説は,Koma-Script取扱説明書(
14620 \emph on
14621 scrguide
14622 \emph default
14623 )にあります.
14624 \end_layout
14625
14626 \begin_layout Subsection
14627 問題点
14628 \end_layout
14629
14630 \begin_layout Standard
14631 Koma-Script文書クラスを\SpecialChar LyX
14632 上に表示する上で,\SpecialChar LyX
14633 の内部処理が若干の問題を生じめます.
14634 \end_layout
14635
14636 \begin_layout Itemize
14637
14638 \family sans
14639
14640 \family default
14641 環境の章番号は,章見出しと同じ行ではなく,その上に表示されます.これは,レイアウトファイル中の
14642 \family sans
14643 Counter_Chapter
14644 \family default
14645 ラベル型に対する\SpecialChar LyX
14646 の内部処理が原因です.
14647 \end_layout
14648
14649 \begin_layout Itemize
14650
14651 \family sans
14652 章(addchap)
14653 \family default
14654
14655 \family sans
14656 節(addsec)
14657 \family default
14658 環境の見出しは,「本当の」\SpecialChar LaTeX
14659 の目次には追加されますが,\SpecialChar LyX
14660 の目次(
14661 \family sans
14662 移動
14663 \family default
14664 メニュー)には追加されません.
14665 \end_layout
14666
14667 \begin_layout Itemize
14668
14669 \emph on
14670 letter
14671 \emph default
14672 文書クラスでの段落は,垂直スペースによる段落区切りで表示され,字下げはされません.これが標準的な挙動となっていて,特別な\SpecialChar LaTeX
14673 コマンドは必要ありません.しかし,
14674 \family sans
14675 文書\SpecialChar menuseparator
14676 設定
14677 \family default
14678 ダイアログでは,対応するラジオボタンは
14679 \family sans
14680 字下げ
14681 \family default
14682 に設定されています.
14683 \family sans
14684 垂直スペース
14685 \family default
14686 は,隙間を空けるために,文書に\SpecialChar LaTeX
14687 コマンドをつねに追加するようになっていますが,この文書クラスの場合には,そのような挙動が望まれないためです.
14688 \end_layout
14689
14690 \begin_layout Section
14691 Memoir
14692 \end_layout
14693
14694 \begin_layout Standard
14695
14696 \noun on
14697 Jürgen Spitzmüller
14698 \noun default
14699
14700 \end_layout
14701
14702 \begin_layout Subsection
14703 概観
14704 \end_layout
14705
14706 \begin_layout Standard
14707 Memoirは,非常に強力で,着実に改良が加えられている文書クラスであり,フィクションとノンフィクションの文学作品用に設計されています.その目的は,ユーザーに,
14708 文書の組版に関して最大限の裁量を得させることにあります.Memoirは,標準bookクラスに基づいていますが,articleクラスをエミュレートすることもできま
14709 す(以下参照).
14710 \end_layout
14711
14712 \begin_layout Standard
14713 Memoir開発者であるPeter Wilsonは,\SpecialChar LaTeX
14714 の世界での,多くの便利なパッケージの作者として知られていますが,それらのほとんどは,Memoirに統合されま
14715 した.このため,章のデザインや,目次や付録などのレイアウトを,はるかに簡単に行うことができます.しかしながら,\SpecialChar LyX
14716 は,これらすべての素晴らしい機能をネイティブでサポ
14717 ートしているわけではありません.これらのうちいくつかは,将来のリリースで追加されるかもしれませんが
14718 \begin_inset Foot
14719 status collapsed
14720
14721 \begin_layout Plain Layout
14722 もし提案があれば,ぜひ
14723 \begin_inset Flex URL
14724 status collapsed
14725
14726 \begin_layout Plain Layout
14727
14728 lyx-devel@lists.lyx.org
14729 \end_layout
14730
14731 \end_inset
14732
14733 までお送り下さい.
14734 \end_layout
14735
14736 \end_inset
14737
14738 ,\SpecialChar LyX
14739 のフレームワークが持つ制約のために,おそらく決して追加されることのないと考えられるものも多数あります.もちろん,ネイティブな\SpecialChar LaTeX
14740 コマンド(\SpecialChar TeX
14741 コード
14742 \begin_inset Foot
14743 status collapsed
14744
14745 \begin_layout Plain Layout
14746 【参考】詳細は,第
14747 \begin_inset CommandInset ref
14748 LatexCommand ref
14749 reference "sec:LaTeXコードを挿入する"
14750
14751 \end_inset
14752
14753 節参照.
14754 \end_layout
14755
14756 \end_inset
14757
14758 )の助けを借りれば,全機能を使用できます.この節では,\SpecialChar LyX
14759 がネイティブにサポートしている機能についてのみ,列挙するものとします.詳細な説明(および他の機能)について
14760 は,Memoirクラスの詳しい取扱説明書
14761 \begin_inset Foot
14762 status collapsed
14763
14764 \begin_layout Plain Layout
14765 【参考】
14766 \begin_inset Flex URL
14767 status collapsed
14768
14769 \begin_layout Plain Layout
14770
14771 CTAN:/macros/latex/memoir/memman.pdf
14772 \end_layout
14773
14774 \end_inset
14775
14776
14777 \end_layout
14778
14779 \end_inset
14780
14781 をご覧になることをお勧めします.この取扱説明書は,本クラスのユーザーの手引きであるのみに留まらず,良い組版に関する包括的な解説であり,それ自身が良い組版の傑出し
14782 た用例となっています.
14783 \end_layout
14784
14785 \begin_layout Subsection
14786 基本的な機能と制約
14787 \end_layout
14788
14789 \begin_layout Standard
14790 Memoirは,基本的に,標準bookクラスの全機能をサポートしています.しかしながら,以下に示すような若干の違いがあります.
14791 \end_layout
14792
14793 \begin_layout Description
14794 フォント寸法: Memoirでは,9・10・11・12・14・17と,より広い範囲のフォント寸法が使用可能です.
14795 \end_layout
14796
14797 \begin_layout Description
14798 ページ様式: Memoirパッケージとfancyhdrパッケージとのコマンドの衝突のため(両パッケージは同じ名前のコマンドを定義しているため,\SpecialChar LaTeX
14799 が混乱させられます
14800 ),fancyページ様式は使用できません.その代わり,Memoirには,多くの独自のページ様式が付属してきます(
14801 \family sans
14802 文書\SpecialChar menuseparator
14803 設定\SpecialChar menuseparator
14804 ページレイアウト
14805 \family default
14806 参照).これらを章題ページに使用したい場合には,コマンド
14807 \family typewriter
14808
14809 \backslash
14810 chapterstyle
14811 \family default
14812 を,本文またはプリアンブルに記述する必要があります(例えば,
14813 \family typewriter
14814
14815 \backslash
14816 chapterstyle{companion}
14817 \family default
14818 など).
14819 \end_layout
14820
14821 \begin_layout Description
14822 節分け: 標準クラスでは,節分けコマンド(章・節・小節等)は,非必須引数を一つ取ることができます.これを用いて,目次やヘッダ用に別のタイトルを指定することができ
14823 ます(たとえば,タイトルが長すぎる場合などに用います).\SpecialChar LyX
14824 では,章や節の始めで
14825 \family sans
14826 挿入\SpecialChar menuseparator
14827 短縮タイトル
14828 \family default
14829 を使えば,これを指定することができます.一方,Memoirでは,第2の非必須引数を取ることができ,目次用のタイトルとヘッダ用のタイトルの指定を分離しています.こ
14830 れを使えば,本文用と目次用とヘッダ用のタイトルの3種類を指定することができます.この機能を使用したい場合には,2つの非必須引数を入力して,最初のものに目次用,次
14831 のものにヘッダ用短縮タイトルを入れてください.
14832 \end_layout
14833
14834 \begin_layout Description
14835 目次・図一覧・表一覧: 標準クラス(および他の多くのクラス)では,目次と図一覧および表一覧は,自動的に新規頁に置かれます.Memoirは,これとは別の方針を採り
14836 ます.改頁を行いたい場合は,手動で頁区切りを入れなくてはなりません.
14837 \end_layout
14838
14839 \begin_layout Description
14840 タイトル頁: 理由は不明ですが,Memoirはタイトルページに丁付けを行います(標準クラスでは,タイトルページは「empty」様式).タイトル頁に丁付けを行いた
14841 くない場合には,プリアンブルに
14842 \family typewriter
14843
14844 \backslash
14845 aliaspagestyle{title}{empty}
14846 \family default
14847 と入力してください.
14848 \end_layout
14849
14850 \begin_layout Description
14851 Article: クラスオプション
14852 \emph on
14853 article
14854 \emph default
14855 を用いる(
14856 \family sans
14857 文書\SpecialChar menuseparator
14858 設定\SpecialChar menuseparator
14859 クラスオプション
14860 \family default
14861 で入力)と,article様式をエミュレートできます.すなわち,(脚注・図・表等の)カウンタは,章毎にリセットされず,次の章は頁を改めず(ただし,「本物の」ar
14862 ticleクラスとは違って,頁を改めることも可),部はbookクラスと同様に,独立の頁を使用します.
14863 \end_layout
14864
14865 \begin_layout Description
14866 Oldfontcommands: \SpecialChar LaTeX
14867 旧2.09版で使用されていた旧いフォントコマンド(
14868 \family typewriter
14869
14870 \backslash
14871 rm
14872 \family default
14873
14874 \family typewriter
14875
14876 \backslash
14877 it
14878 \family default
14879 など)は,Memoirにおいては,既定では使用することができません.Memoirがこれらのコマンドを検知すると,エラーを発して\SpecialChar LaTeX
14880 を停止させます.しかし,クラスオプ
14881 ション
14882 \emph on
14883 oldfontcommands
14884 \emph default
14885 を指定すると,これらのコマンドが容認され,エラーの代わりに警告を発するのみとなります(これによって,少なくとも\SpecialChar LaTeX
14886 は停止しなくなります).まだ,多くのパッケージと,
14887 就中多くのBib\SpecialChar TeX
14888 スタイルファイルが,これらのコマンドを使用しているので,我々はこのオプションを既定で使うこととしました.
14889 \end_layout
14890
14891 \begin_layout Subsection
14892 追加された機能
14893 \end_layout
14894
14895 \begin_layout Standard
14896 \SpecialChar LyX
14897 でサポートされる機能(今のところそれほど多くはありません)を簡単に説明しましょう.詳しくはMemoirの取扱説明書
14898 \begin_inset Foot
14899 status collapsed
14900
14901 \begin_layout Plain Layout
14902 \begin_inset Flex URL
14903 status collapsed
14904
14905 \begin_layout Plain Layout
14906
14907 CTAN:/macros/latex/memoir/memman.pdf
14908 \end_layout
14909
14910 \end_inset
14911
14912
14913 \end_layout
14914
14915 \end_inset
14916
14917 を見てください.
14918 \end_layout
14919
14920 \begin_layout Description
14921 概要: 概要が,追加された機能として扱われているのを不思議に思われるかもしれませんが,bookクラスとしては追加された機能なのです.通常bookクラスには概要は
14922 ないのですが,memoirにはあります.これは,どこでも何回でも自由に使うことができます.
14923 \end_layout
14924
14925 \begin_layout Description
14926 章要約: この古い組版様式はご覧になったことがあるかも知れません.章の内容が,見出しの下と目次に要約されているものです(たとえば,「我らが英雄がトロヤに到着する
14927 .彼は友人を失うが,新たな友人を得る.」など).章要約(chapterprecis)はこれを行います.したがって,章要約は章の下でのみ意味を持ちます.
14928 \end_layout
14929
14930 \begin_layout Description
14931 題辞: 題辞(epigraph)は章頭の,気の利いた標語やモットーです.題辞環境は,そのような標語を組む洗練された方法を提供します.標語本体(本文)とその著者(
14932 出典)は,短い線で区切られます.この環境には二つの引数(本文と出典)が必要なので,ここでも\SpecialChar LyX
14933 を少しだます必要があります.ここでは,2つの引数の間に,
14934 \emph on
14935 <標語>
14936 \family typewriter
14937 \emph default
14938 }{
14939 \family default
14940 \emph on
14941 <標語の著者>
14942 \emph default
14943 のように,(\SpecialChar TeX
14944 モードで)波括弧を入れなくてはなりません.
14945 \end_layout
14946
14947 \begin_layout Description
14948 詩題: Memoirには(複雑で隠喩的なものも含めて)詩を組版するための多くの機能がありますが,\SpecialChar LyX
14949 は,そのうちいくつかしかサポートしていません.詩題はその一つです
14950 .これは詩用の中央揃えタイトルで,目次にも表示されます(詩句が詩の標準環境です.Memoirには,詩句の拡張版もありますが,これらを使うためには\SpecialChar TeX
14951 コードを使用しな
14952 くてはなりません.これらの環境は通常の詩句環境の中に入れ子にしなくてはならないのですが,\SpecialChar LyX
14953 ではそれができないためです).
14954 \end_layout
14955
14956 \begin_layout Description
14957 詩題*: 目次に現れない他は詩題と同じです.
14958 \end_layout
14959
14960 \begin_layout Section
14961 Article (mwart)・book (mwbk)・report (mwrep)
14962 \begin_inset Argument status
14963 status collapsed
14964
14965 \begin_layout Plain Layout
14966 The 
14967 \family typewriter
14968 mw
14969 \family default
14970  Classes
14971 \end_layout
14972
14973 \end_inset
14974
14975
14976 \end_layout
14977
14978 \begin_layout Standard
14979
14980 \noun on
14981 Tomasz Luczak
14982 \noun default
14983
14984 \end_layout
14985
14986 \begin_layout Standard
14987 \SpecialChar LyX
14988 文書クラス
14989 \emph on
14990 article (mwart)
14991 \emph default
14992
14993 \emph on
14994 report (mwrep)・book
14995 \emph default
14996  
14997 \emph on
14998 (mwbk)
14999 \emph default
15000 は,それぞれ\SpecialChar LaTeX
15001 文書クラス
15002 \family typewriter
15003 mwart.cls
15004 \family default
15005
15006 \family typewriter
15007 mwrep.cls
15008 \family default
15009
15010 \family typewriter
15011 mwbk.cls
15012 \family default
15013 に対応しています.これらは,標準の
15014 \family typewriter
15015 article.cls
15016 \family default
15017
15018 \family typewriter
15019 report.cls
15020 \family default
15021
15022 \family typewriter
15023 book.cls
15024 \family default
15025 を代替するものであり,多くの点で,ポーランド語の組版慣習によく適合しています.
15026 \end_layout
15027
15028 \begin_layout Standard
15029 基本的な違いは,次の点です.
15030 \end_layout
15031
15032 \begin_layout Itemize
15033 付番のない見出し(
15034 \family sans
15035 節*
15036 \family default
15037 などの星付き)も目次に加えられます.
15038 \end_layout
15039
15040 \begin_layout Itemize
15041 以下のページスタイルの追加
15042 \begin_inset Separator latexpar
15043 \end_inset
15044
15045
15046 \end_layout
15047
15048 \begin_deeper
15049 \begin_layout Description
15050 uheadings 分離線付きヘッダ
15051 \end_layout
15052
15053 \begin_layout Description
15054 myheadings 
15055 \family typewriter
15056
15057 \backslash
15058 markright
15059 \family default
15060 コマンドおよび
15061 \family typewriter
15062
15063 \backslash
15064 markboth
15065 \family default
15066 コマンドで設定するカスタムヘッダ
15067 \end_layout
15068
15069 \begin_layout Description
15070 myuheadings 分離線付きカスタムヘッダ
15071 \end_layout
15072
15073 \begin_layout Description
15074 outer ページの外側にページ番号
15075 \end_layout
15076
15077 \end_deeper
15078 \begin_layout Itemize
15079 オプション
15080 \begin_inset Separator latexpar
15081 \end_inset
15082
15083
15084 \end_layout
15085
15086 \begin_deeper
15087 \begin_layout Description
15088 rmheadings セリフ体見出し — 既定
15089 \end_layout
15090
15091 \begin_layout Description
15092 sfheadings サンセリフ体見出し
15093 \end_layout
15094
15095 \begin_layout Description
15096 authortitle タイトルページは,著者名・タイトルの順で配置 — 既定
15097 \end_layout
15098
15099 \begin_layout Description
15100 titleauthor タイトルページは,タイトル・著者名の順で配置
15101 \end_layout
15102
15103 \begin_layout Description
15104 withmarginpar ページ上に余白のための場所を確保
15105 \end_layout
15106
15107 \end_deeper
15108 \begin_layout Section
15109 Paper
15110 \end_layout
15111
15112 \begin_layout Standard
15113
15114 \family sans
15115 paper
15116 \family default
15117 文書クラスは標準
15118 \family sans
15119 article
15120 \family default
15121 クラスの代替となるものです.これは
15122 \family sans
15123 同様の
15124 \family default
15125 機能を提供しますが,サンセリフ体の節見出し・ヘッディング等を持つこちらのレイアウトの方が気に入るかも知れません.
15126 \end_layout
15127
15128 \begin_layout Section
15129 Rev\SpecialChar TeX
15130 4
15131 \end_layout
15132
15133 \begin_layout Standard
15134 by 
15135 \noun on
15136 Amir Karger
15137 \end_layout
15138
15139 \begin_layout Standard
15140 \begin_inset VSpace bigskip
15141 \end_inset
15142
15143
15144 \end_layout
15145
15146 \begin_layout Standard
15147 \noindent
15148
15149 \family sans
15150 Revtex
15151 \begin_inset space ~
15152 \end_inset
15153
15154 4
15155 \family default
15156 テキストクラスは,アメリカ物理学会のRev\SpecialChar TeX
15157  4.0(1999年5月の
15158 \begin_inset Formula $\beta$
15159 \end_inset
15160
15161 リリース)クラスで動作します.
15162 \end_layout
15163
15164 \begin_layout Standard
15165 \SpecialChar LyX
15166 には,Rev\SpecialChar TeX
15167  3.1で動作する
15168 \family sans
15169 Revtex
15170 \family default
15171 テキストクラスもあります.しかしながら,第3.1版は\SpecialChar LaTeX
15172  2.09で動作するものであり,基本的に時代遅れなものになっています.\SpecialChar LyX
15173 は\SpecialChar LaTeX2e
15174 を必要とすることから,第3.1版は\SpecialChar LyX
15175 とうまく
15176 協調しないことを意味しますが,動作するようには調整してあります.Rev\SpecialChar TeX
15177  4.0は,\SpecialChar LaTeX2e
15178 で素直に動作するようにデザインされているので,\SpecialChar LyX
15179
15180 \family sans
15181 Rev\SpecialChar TeX
15182
15183 \begin_inset space ~
15184 \end_inset
15185
15186 4
15187 \family default
15188 テキストクラスの組で使用するのは,たいへん簡単です.
15189 \end_layout
15190
15191 \begin_layout Standard
15192 この取扱説明書は,Rev\SpecialChar TeX
15193  4.0の説明書の
15194 \emph on
15195 補完
15196 \emph default
15197 として使用されることを前提としています.したがって,ここではRev\SpecialChar TeX
15198 固有マクロの説明はせず,必要な場合にはプリアンブルに何と書けば良いかを知っているものとして説明
15199 します.
15200 \end_layout
15201
15202 \begin_layout Subsection
15203 導入
15204 \end_layout
15205
15206 \begin_layout Standard
15207 Rev\SpecialChar TeX
15208  4パッケージのREADMEファイルにあるとおり,ともかくRev\SpecialChar TeX
15209  4を導入しなくてはなりません.パッケージは,The Rev\SpecialChar TeX
15210  4 Web
15211  Site 
15212 \begin_inset Flex URL
15213 status collapsed
15214
15215 \begin_layout Plain Layout
15216
15217 http://publish.aps.org/revtex4/
15218 \end_layout
15219
15220 \end_inset
15221
15222 から入手することができます.これを\SpecialChar LaTeX
15223 が検出することのできる場所に導入してください.それから,適当に選んだディレクトリ(もといクラスファイルを導入したのとは異なるデ
15224 ィレクトリ)で簡単なRev\SpecialChar TeX
15225  4文書を \SpecialChar LaTeX
15226 でコンパイルできるかどうか確認してください.この後,\SpecialChar LyX
15227 を環境構成すると,クラスファイルを検出し,Rev\SpecialChar TeX
15228 4テキストクラスが使用
15229 できるようになるはずです.
15230 \end_layout
15231
15232 \begin_layout Standard
15233 使い始めるには,
15234 \family typewriter
15235 tex2lyx
15236 \family default
15237 を使ってRev\SpecialChar TeX
15238  4文書を読み込むか,またはひな型ディレクトリにある
15239 \family sans
15240 Revtex
15241 \begin_inset space ~
15242 \end_inset
15243
15244 4
15245 \family default
15246 のひな型を使うのが,おそらく一番簡単な方法でしょう.
15247 \end_layout
15248
15249 \begin_layout Subsection
15250 プリアンブルに関すること
15251 \end_layout
15252
15253 \begin_layout Standard
15254
15255 \family typewriter
15256
15257 \backslash
15258 documentclass
15259 \family default
15260 に与える「preprint」や「aps」のような非必須引数は,他のクラス同様,
15261 \family sans
15262 文書\SpecialChar menuseparator
15263 設定\SpecialChar menuseparator
15264 文書クラス
15265 \family default
15266
15267 \family sans
15268 クラスオプション
15269 \family default
15270 フィールドに入れます.Rev\SpecialChar TeX
15271 では,少なくとも一つの非必須引数が必要なことに注意してください.
15272 \end_layout
15273
15274 \begin_layout Standard
15275
15276 \family typewriter
15277
15278 \backslash
15279 draft
15280 \family default
15281 など他のプリアンブルは,他のクラス同様,
15282 \family sans
15283 文書\SpecialChar menuseparator
15284 設定\SpecialChar menuseparator
15285 \SpecialChar LaTeX
15286 プリアンブル
15287 \family default
15288 に入れてください.
15289 \end_layout
15290
15291 \begin_layout Subsection
15292 レイアウト
15293 \end_layout
15294
15295 \begin_layout Standard
15296 レイアウトは,基本的にRev\SpecialChar TeX
15297 4.0のコマンドに対応しています.たとえば,Emailレイアウトは,
15298 \family typewriter
15299
15300 \backslash
15301 email{}
15302 \family default
15303 に対応しています.(少なくともRev\SpecialChar TeX
15304  4.0 Beta現在では)
15305 \family sans
15306 住所
15307 \family default
15308
15309 \family sans
15310 所属
15311 \family default
15312 はまったく同じものなので,両方を使う必要はありません
15313 \begin_inset Foot
15314 status collapsed
15315
15316 \begin_layout Plain Layout
15317 ついでながら,
15318 \family typewriter
15319 tex2lyx
15320 \family default
15321 は両方とも対応しているので,
15322 \family typewriter
15323
15324 \backslash
15325 address
15326 \family default
15327
15328 \family typewriter
15329
15330 \backslash
15331 affiliation
15332 \family default
15333 のどちらも翻訳することができます.
15334 \end_layout
15335
15336 \end_inset
15337
15338
15339 \end_layout
15340
15341 \begin_layout Subsection
15342 重要な注意
15343 \end_layout
15344
15345 \begin_layout Standard
15346 Rev\SpecialChar TeX
15347  4には,バグを引き起こしがちなために,気をつけなくてはならない特殊な面がいくつかあるため,\SpecialChar LyX
15348 ではさらに気をつけなくてはなりません.
15349 \end_layout
15350
15351 \begin_layout Standard
15352 Rev\SpecialChar TeX
15353 では,
15354 \family typewriter
15355
15356 \backslash
15357 thanks
15358 \family default
15359 コマンドは,
15360 \family typewriter
15361
15362 \backslash
15363 author
15364 \family default
15365 コマンドの
15366 \emph on
15367 外側
15368 \emph default
15369 に来なくてはなりません.\SpecialChar LyX
15370 では,独立した
15371 \family sans
15372 感謝
15373 \family default
15374 レイアウトがこの働きをします.直接
15375 \family sans
15376 ,著者
15377 \family default
15378 レイアウトに脚注を付けてしまうと,おかしなことが起こる可能性があります.詳細については,Rev\SpecialChar TeX
15379  4の取扱説明書をご覧ください.
15380 \end_layout
15381
15382 \begin_layout Standard
15383 また,
15384 \family sans
15385 著者電子メール
15386 \family default
15387
15388 \family sans
15389 著者URL・感謝(thanks)
15390 \family default
15391 レイアウトは,
15392 \family sans
15393 著者
15394 \family default
15395 レイアウトと
15396 \family sans
15397 住所(
15398 \family default
15399 または同等の
15400 \family sans
15401 所属
15402 \family default
15403 )レイアウトの間に置かなければなりません.
15404 \family sans
15405 感謝(thanks)
15406 \family default
15407
15408 \family sans
15409 住所
15410 \family default
15411 の後に置いてしまうと,\SpecialChar LaTeX
15412 はコンパイルに失敗します.
15413 \end_layout
15414
15415 \begin_layout Subsection
15416 問題点
15417 \end_layout
15418
15419 \begin_layout Standard
15420 このレイアウトの主な問題点は,電子メールやタイトルのようなレイアウトに非必須引数を用いることができないことです(これはこのレイアウトだけの問題ではありません.例
15421 えば,節レイアウトも非必須引数を使用することができません).これは,たとえばページヘッダにヘッダ用タイトルを設定したい場合などには,ファイルを\SpecialChar LaTeX
15422 ファイルに変換した
15423 後に(これは最終的にAPSに原稿を送る際には行わなくてはなりません),テキストエディタを使って\SpecialChar LaTeX
15424 ファイルを編集し,非必須引数を書き加えなくてはならないということで
15425 す.これらのレイアウトがないと,
15426 \family typewriter
15427
15428 \backslash
15429 altaffiliation
15430 \family default
15431 (またそれと同等な
15432 \family typewriter
15433
15434 \backslash
15435 altaddress
15436 \family default
15437 )は使えませんので,対応するレイアウトは存在せず,手動で書き加える必要があります
15438 \begin_inset Foot
15439 status collapsed
15440
15441 \begin_layout Plain Layout
15442
15443 \emph on
15444 JMarcからの註:
15445 \emph default
15446  実は,\SpecialChar LyX
15447  1.3.0 では非必須引数を一部サポートしているのですが,このレイアウトは,まだこの機能を使うようにはアップデートされていないのです.
15448 \end_layout
15449
15450 \end_inset
15451
15452
15453 \end_layout
15454
15455 \begin_layout Section
15456 Springer学術誌(
15457 \family sans
15458 svjour)
15459 \end_layout
15460
15461 \begin_layout Standard
15462
15463 \noun on
15464 Martin Vermeer
15465 \noun default
15466
15467 \end_layout
15468
15469 \begin_layout Subsection
15470 説明
15471 \end_layout
15472
15473 \begin_layout Standard
15474 これは,Springer Verlag社発行のいくつかの学術誌で使用されている書式のレイアウトファイルです.
15475 \begin_inset Flex URL
15476 status collapsed
15477
15478 \begin_layout Plain Layout
15479
15480 http://www.springer.de/author/tex/help-journals.html
15481 \end_layout
15482
15483 \end_inset
15484
15485 に必要なクラスファイル(\SpecialChar LaTeX2e
15486 用になりました)とそれに対応する学術誌の一覧があります.このレイアウトはモジュール式になっています.つまり,全ジャーナル共通部分は
15487 \family typewriter
15488 svjour.inc
15489 \family default
15490 に実装されており,各誌個別のレイアウトファイル(たとえばJournal of Geodesy用の
15491 \family typewriter
15492 svjog.layout
15493 \family default
15494 など)から取り込むことができます.
15495 \end_layout
15496
15497 \begin_layout Standard
15498 このことは,上記の学術誌一覧にある他のSpringer誌のサポートを実装するためには,
15499 \family typewriter
15500 svjog.layout
15501 \family default
15502 に書かれている指示に従って,自作の
15503 \family typewriter
15504 sv
15505 \family default
15506 <学術誌名>
15507 \family typewriter
15508 .layout
15509 \family default
15510 を書くだけで良いことを意味します.
15511 \end_layout
15512
15513 \begin_layout Standard
15514 このレイアウトは,Journal of Geodesyに対してのみ,充分な試験が為されています.
15515 \family typewriter
15516 svjour
15517 \family default
15518
15519 \family typewriter
15520 svjog
15521 \family default
15522 は,標準\SpecialChar LyX
15523 頒布版に収録済みです.関連するクラスファイルを(Springerからダウンロードして)適切なディレクトリに導入し,\SpecialChar LaTeX
15524 を再設定した後(teTeXの場合は,必
15525 要に応じてroot権限で
15526 \family typewriter
15527 texhash
15528 \family default
15529 を実行します),\SpecialChar LyX
15530 を環境構成すれば,動作するはずです.
15531 \end_layout
15532
15533 \begin_layout Subsection
15534 新スタイル
15535 \end_layout
15536
15537 \begin_layout Standard
15538 多くの定理環境 — 
15539 \family sans
15540 主張
15541 \family default
15542
15543 \family sans
15544 推論
15545 \family default
15546 ・\SpecialChar ldots
15547
15548 \family sans
15549 定理
15550 \family default
15551
15552 \end_layout
15553
15554 \begin_layout Standard
15555
15556 \family sans
15557 ヘッドノート
15558 \family default
15559
15560 \family sans
15561 献呈
15562 \family default
15563
15564 \family sans
15565 サブタイトル・ヘッダ用\SpecialChar LaTeX
15566 タイトル・ヘッダ用著者名・所属機関・メール・オフプリント・キーワード・謝辞(acknowledgements)・謝辞(acknowledg
15567 ement)
15568 \family default
15569 .詳しくは Springerのクラスファイルの説明書を読んでください.
15570 \end_layout
15571
15572 \begin_layout Subsection
15573 サポートしているジャーナル
15574 \end_layout
15575
15576 \begin_layout Itemize
15577
15578 \emph on
15579 Journal of Geodesy
15580 \emph default
15581
15582 \family typewriter
15583 svjog.layout
15584 \family default
15585  — Martin Vermeer
15586 \end_layout
15587
15588 \begin_layout Itemize
15589
15590 \emph on
15591 Probability Theory and Related Fields
15592 \emph default
15593
15594 \family typewriter
15595 svprobth.layout
15596 \family default
15597  — Jean-Marc Lasgouttes
15598 \end_layout
15599
15600 \begin_layout Standard
15601 あなた自身のレイアウトファイルをつくってください.難しくはありません.
15602 \end_layout
15603
15604 \begin_layout Subsection
15605 Credits
15606 \end_layout
15607
15608 \begin_layout Standard
15609 これらのファイルは,以前の 
15610 \family typewriter
15611 ejour2.layout
15612 \family default
15613 をもとにしています.
15614 \family typewriter
15615 ejour2.layout
15616 \family default
15617 は Springerの\SpecialChar LaTeX
15618  2.09用のスタイルファイルを使った素人細工のようなレイアウトファイルです.これらのファイルはすでにありません.Jean-Marc
15619  Lasgouttesのおかげで \SpecialChar LyX
15620 のレイアウトファイルのメカニズムをよりよく理解することができました.
15621 \end_layout
15622
15623 \begin_layout Subsection
15624 バグ
15625 \end_layout
15626
15627 \begin_layout Standard
15628 多分あります.以前の 
15629 \family typewriter
15630 ejour2
15631 \family default
15632 よりは少なくなっているとは思いますが.
15633 \end_layout
15634
15635 \begin_layout Standard
15636 制限事項:定理環境の環境の番号は表示されません.#が表示されるだけです.
15637 \end_layout
15638
15639 \begin_layout Section
15640 Slides (別名
15641 \noun on
15642 Sli\SpecialChar TeX
15643
15644 \noun default
15645 )
15646 \begin_inset Foot
15647 status collapsed
15648
15649 \begin_layout Plain Layout
15650 (訳註)この節の内容は,全般的に古くなっています.
15651 \end_layout
15652
15653 \end_inset
15654
15655
15656 \begin_inset CommandInset label
15657 LatexCommand label
15658 name "sec:slitex"
15659
15660 \end_inset
15661
15662
15663 \end_layout
15664
15665 \begin_layout Standard
15666
15667 \noun on
15668 John Weiss
15669 \noun default
15670
15671 \end_layout
15672
15673 \begin_layout Subsection
15674 はじめに
15675 \end_layout
15676
15677 \begin_layout Standard
15678 本節では,オーバーへッドプロジェクタ用のスライドをつくるのに,\SpecialChar LyX
15679 をどのように使えばよいかを説明します.これを行う文書クラスには,既定のslideクラスと
15680 \family sans
15681 Foil\SpecialChar TeX
15682
15683 \family default
15684 スライドクラスの2つがあります.本節は前者について説明を行います.
15685 \end_layout
15686
15687 \begin_layout Standard
15688 誤解のないように,正しく明確に,もう一度言っておきます.
15689 \end_layout
15690
15691 \begin_layout Standard
15692 \begin_inset VSpace bigskip
15693 \end_inset
15694
15695
15696 \end_layout
15697
15698 \begin_layout Standard
15699 \align center
15700
15701 \size large
15702 本節は文書クラス
15703 \begin_inset Quotes eld
15704 \end_inset
15705
15706
15707 \family sans
15708 transparencies (slides)
15709 \family default
15710
15711 \begin_inset Quotes erd
15712 \end_inset
15713
15714
15715 \emph on
15716 のみ
15717 \emph default
15718 を説明しています.
15719 \end_layout
15720
15721 \begin_layout Standard
15722 \begin_inset VSpace bigskip
15723 \end_inset
15724
15725
15726 \end_layout
15727
15728 \begin_layout Standard
15729
15730 \family sans
15731 「slides (Foil\SpecialChar TeX
15732 )
15733 \family default
15734 」の説明をお探しならば,第
15735 \begin_inset CommandInset ref
15736 LatexCommand ref
15737 reference "sec:foiltex"
15738
15739 \end_inset
15740
15741 節をご覧ください.
15742 \family sans
15743 foils
15744 \family default
15745 クラス「
15746 \family sans
15747 slides (Foil\SpecialChar TeX
15748 )
15749 \family default
15750 」は,実際,本節で説明している既定
15751 \family sans
15752 slides
15753 \family default
15754 クラスよりも良いようです
15755 \begin_inset Foot
15756 status collapsed
15757
15758 \begin_layout Plain Layout
15759 \SpecialChar ldots
15760
15761 \family sans
15762 Foil\SpecialChar TeX
15763
15764 \family default
15765 の支持者からは聞いています.けれども私は使ったことがないので,本当かどうか確かめようがありません.
15766 \end_layout
15767
15768 \end_inset
15769
15770
15771 \end_layout
15772
15773 \begin_layout Standard
15774 このクラスは,旧SLI\SpecialChar TeX
15775 パッケージを\SpecialChar LaTeX2e
15776 用に改良したものです.\SpecialChar LaTeX2e
15777 頒布版すべてが,このクラス(以下では単に「
15778 \family sans
15779 slides
15780 \family default
15781 」と述べることにします)を含んでいるので,あなたもお持ちのはずです.前述の
15782 \family sans
15783 foils
15784 \family default
15785 のように,同じくオーバーへッドプロジェクタ用のスライドを生成しながら,このクラスよりも良い仕事をするクラスもあります.しかしながら,オーバーレイを生成するなど,
15786 他のクラスにはできないが
15787 \family sans
15788 slides
15789 \family default
15790 ならばできることもあります.詳しくは以下をお読みください.
15791 \end_layout
15792
15793 \begin_layout Subsection
15794 使い始めるには
15795 \begin_inset CommandInset label
15796 LatexCommand label
15797 name "sec:slidesetup"
15798
15799 \end_inset
15800
15801
15802 \end_layout
15803
15804 \begin_layout Standard
15805 当然ながら,この文書クラスを使用するには,
15806 \family sans
15807 文書\SpecialChar menuseparator
15808 設定
15809 \family default
15810 ダイアログのクラスリストから「
15811 \family sans
15812 transparencies (slides)
15813 \family default
15814 」を選択しなくてはなりません.このクラスについて,以下のように,特に知っておいた方が良いことがいくつかあります.
15815 \end_layout
15816
15817 \begin_layout Itemize
15818
15819 \family sans
15820 用紙方向
15821 \family default
15822
15823 \family sans
15824 二段組文書
15825 \family default
15826 の各オプションは,あえて変更する必要はありません.これらのオプションは,
15827 \family sans
15828 slides
15829 \family default
15830 クラスではサポートされていないので,効果がありません.
15831 \end_layout
15832
15833 \begin_layout Itemize
15834
15835 \family sans
15836 ヘディング様式
15837 \family default
15838 オプションは,このクラスでは少し異なった振る舞いをします.各選択肢とその機能は,以下の通りです.
15839 \begin_inset Separator latexpar
15840 \end_inset
15841
15842
15843 \end_layout
15844
15845 \begin_deeper
15846 \begin_layout Description
15847 プレーン(plain) 最終出力の右下隅にページ番号が付きます.
15848 \end_layout
15849
15850 \begin_layout Description
15851 設定(headings)
15852 \family sans
15853  プレーン(plain)
15854 \family default
15855 と同様ですが,それ以外にあなたが指定したタイムマーカーをすべて出力します.これが既定値です.
15856 \end_layout
15857
15858 \begin_layout Description
15859 空 最終出力には,ページ番号もタイムマーカーも位置揃えマーカーも出力されません.
15860 \end_layout
15861
15862 \end_deeper
15863 \begin_layout Itemize
15864
15865 \family sans
15866 slides
15867 \family default
15868 クラスには,もう一つ
15869 \family typewriter
15870 clock
15871 \family default
15872 というオプションがあります.これを使用するには,
15873 \family sans
15874 クラスオプション
15875 \family default
15876 に「
15877 \family typewriter
15878 clock
15879 \family default
15880 」と入力してください.
15881 \begin_inset Separator latexpar
15882 \end_inset
15883
15884
15885 \end_layout
15886
15887 \begin_deeper
15888 \begin_layout Standard
15889 このオプションを使うと,
15890 \family sans
15891 注釈
15892 \family default
15893 にタイムマーカーを加えることができます.詳細は,第
15894 \begin_inset CommandInset ref
15895 LatexCommand ref
15896 reference "sec:スライド注釈"
15897
15898 \end_inset
15899
15900 節をご覧ください.
15901 \end_layout
15902
15903 \end_deeper
15904 \begin_layout Standard
15905
15906 \family sans
15907 slides
15908 \family default
15909 クラスを用いた文書を自動的にセットアップするには,ひな型ファイル「
15910 \family typewriter
15911 slides.lyx
15912 \family default
15913 」を使用することもできます(新規ファイルを開く際に
15914 \family sans
15915 ファイル\SpecialChar menuseparator
15916 新規(ひな型使用)
15917 \family default
15918 を使用してください).ひな型ファイルには,このクラスが使用する特別な段落環境の用例も含まれています.これらについては,以下で説明します.
15919 \end_layout
15920
15921 \begin_layout Subsection
15922 段落環境
15923 \end_layout
15924
15925 \begin_layout Subsubsection
15926
15927 \family sans
15928 サポートされている環境
15929 \end_layout
15930
15931 \begin_layout Standard
15932 新しく
15933 \family sans
15934 slides
15935 \family default
15936 文書を開いたときにまず気付くのは,フォント寸法とフォント族の違いでしょう.ここでは,
15937 \family sans
15938 サンセリフ体
15939 \family default
15940 フォントの
15941 \family sans
15942 極大
15943 \family default
15944 寸法が用いられており,出力でもこのフォントが使用されます.これは,現在スライドを作成中であることの「目印」だと考えてください.出力スライドは大きなフォントを使用
15945 するため,書ける場所は少なくなります.もちろん,既定の大きな画面フォントはWYSIWYGではなく,スライドであることの目印に過ぎません.
15946 \end_layout
15947
15948 \begin_layout Standard
15949 次に気付くのは,(ツールバー左端の)段落環境プルダウンボックスが変わっていることでしょう.通常見かける環境の多くがなくなって,代わりに5つの新しい環境が入ってい
15950 ます.これは,
15951 \family sans
15952 slides
15953 \family default
15954 クラスが,標準段落環境のうち以下のものしかサポートしていないためです.
15955 \end_layout
15956
15957 \begin_layout Itemize
15958
15959 \family sans
15960 標準
15961 \end_layout
15962
15963 \begin_layout Itemize
15964
15965 \family sans
15966 箇条書き(記号)
15967 \end_layout
15968
15969 \begin_layout Itemize
15970
15971 \family sans
15972 箇条書き(連番)
15973 \end_layout
15974
15975 \begin_layout Itemize
15976
15977 \family sans
15978 箇条書き(記述)
15979 \end_layout
15980
15981 \begin_layout Itemize
15982
15983 \family sans
15984 箇条書き(一覧)
15985 \end_layout
15986
15987 \begin_layout Itemize
15988
15989 \family sans
15990 引用(字下げあり)
15991 \end_layout
15992
15993 \begin_layout Itemize
15994
15995 \family sans
15996 引用(字下げなし)
15997 \end_layout
15998
15999 \begin_layout Itemize
16000
16001 \family sans
16002 詩句
16003 \end_layout
16004
16005 \begin_layout Itemize
16006
16007 \family sans
16008 キャプション
16009 \end_layout
16010
16011 \begin_layout Itemize
16012
16013 \family sans
16014 \SpecialChar LyX
16015 コード
16016 \end_layout
16017
16018 \begin_layout Itemize
16019
16020 \family sans
16021 コメント
16022 \end_layout
16023
16024 \begin_layout Standard
16025 これ以外の標準的な環境,例えば節見出し用の環境などは
16026 \family sans
16027 slides
16028 \family default
16029 クラスでは使えません.
16030 \end_layout
16031
16032 \begin_layout Standard
16033 一方,以下の新しい環境があります.
16034 \end_layout
16035
16036 \begin_layout Itemize
16037
16038 \family sans
16039 スライド
16040 \end_layout
16041
16042 \begin_layout Itemize
16043
16044 \family sans
16045 オーバーレイ
16046 \end_layout
16047
16048 \begin_layout Itemize
16049
16050 \family sans
16051 注釈
16052 \end_layout
16053
16054 \begin_layout Itemize
16055
16056 \family sans
16057 不可視文
16058 \end_layout
16059
16060 \begin_layout Itemize
16061
16062 \family sans
16063 可視文
16064 \end_layout
16065
16066 \begin_layout Standard
16067 これら5つの環境は,\SpecialChar LyX
16068 の「機能」のために使い方に癖があります.ご存じのように,\SpecialChar LyX
16069 では,空の段落環境に他の環境を入れることができません.それ自体は素晴らしいデザインな
16070 のですが,これは,スライドを平文以外では書き始めることができないことを意味します.これを取り扱うためには,ちょっとした「\SpecialChar LaTeX
16071 マジック」が必要になります.
16072 \end_layout
16073
16074 \begin_layout Subsubsection
16075 新環境の癖
16076 \begin_inset CommandInset label
16077 LatexCommand label
16078 name "sec:スライドの癖"
16079
16080 \end_inset
16081
16082
16083 \end_layout
16084
16085 \begin_layout Standard
16086 5つの新しい環境にはすべて,\SpecialChar LyX
16087 現行版の制約に由来する癖があります.いま述べたように,\SpecialChar LyX
16088 では,環境を別の環境で開始することが禁止されています.これを回避するために,
16089 \family sans
16090 スライド
16091 \family default
16092 環境は『
16093 \emph on
16094 ユーザーの手引き
16095 \emph default
16096 』で述べられているような段落環境ではなくなっています.
16097 \end_layout
16098
16099 \begin_layout Standard
16100
16101 \family sans
16102 スライド
16103 \family default
16104
16105 \family sans
16106 オーバーレイ
16107 \family default
16108
16109 \family sans
16110 注釈
16111 \family default
16112 は「疑似環境」だとお考えください.これらは節見出しや「
16113 \family sans
16114 キャプション
16115 \family default
16116 」のように見えますが,実際には(必要なら前段落を終了して)新しい段落環境を開始します.同様に,
16117 \family sans
16118 不可視文
16119 \family default
16120
16121 \family sans
16122 可視文
16123 \family default
16124 も「疑似コマンド」とお考えください.この2つは特定のアクションを行います.
16125 \end_layout
16126
16127 \begin_layout Standard
16128
16129 \family sans
16130 スライド
16131 \family default
16132
16133 \family sans
16134 オーバーレイ
16135 \family default
16136
16137 \family sans
16138 注釈
16139 \family default
16140
16141 \family sans
16142 不可視文
16143 \family default
16144
16145 \family sans
16146 可視文
16147 \family default
16148 の5環境に共通しているのは,長めのラベルを持つことです.このラベルに続く文章—通常は段落環境の内容になるはずですが—は,
16149 \family sans
16150 スライド
16151 \family default
16152
16153 \family sans
16154 オーバーレイ
16155 \family default
16156
16157 \family sans
16158 注釈
16159 \family default
16160
16161 \family sans
16162 不可視文
16163 \family default
16164
16165 \family sans
16166 可視文
16167 \family default
16168 では,まったく意味がなく,\SpecialChar LyX
16169 はこの部分を完全に無視します.これらの5つの環境の内容は,完全に空のままにしておいて構いません.
16170 \end_layout
16171
16172 \begin_layout Standard
16173 長めのラベルの後に文章を入れる
16174 \emph on
16175 必要は
16176 \emph default
16177 まったく
16178 \emph on
16179 ない
16180 \emph default
16181 とはいえ,何か書いておきたいこともあるかもしれません.たとえば,スライドの内容に関する短い説明などがそうでしょう.この場合,いつもどおり説明用のコメントを入力し
16182
16183 \family sans
16184 Return
16185 \family default
16186 を押してください.
16187 \end_layout
16188
16189 \begin_layout Standard
16190 一方,説明文を入れたくない場合には,\SpecialChar LyX
16191 の制約に直面します.自然が真空を憎むように,\SpecialChar LyX
16192 では,古い環境に何かを置くまでは,その中に新しい環境を入れることができません.そ
16193 こで以下のようにしてください.
16194 \end_layout
16195
16196 \begin_layout Itemize
16197 新しい
16198 \family sans
16199 スライド
16200 \family default
16201
16202 \family sans
16203 オーバーレイ
16204 \family default
16205
16206 \family sans
16207 注釈
16208 \family default
16209
16210 \family sans
16211 不可視文
16212 \family default
16213
16214 \family sans
16215 可視文
16216 \family default
16217
16218 \emph on
16219 中に入れる
16220 \emph default
16221 文章を入力してください.
16222 \end_layout
16223
16224 \begin_layout Itemize
16225 段落の先頭に移動します.
16226 \end_layout
16227
16228 \begin_layout Itemize
16229 次に
16230 \family sans
16231 Return
16232 \family default
16233 を押します.
16234 \end_layout
16235
16236 \begin_layout Itemize
16237 最後に,この新しい空の段落を
16238 \family sans
16239 スライド
16240 \family default
16241
16242 \family sans
16243 オーバーレイ
16244 \family default
16245
16246 \family sans
16247 注釈
16248 \family default
16249
16250 \family sans
16251 不可視文
16252 \family default
16253
16254 \family sans
16255 可視文
16256 \family default
16257 に変更します.
16258 \end_layout
16259
16260 \begin_layout Standard
16261 将来の\SpecialChar LyX
16262 では,このような癖が解決されることを祈っています\SpecialChar ldots
16263
16264 \begin_inset Foot
16265 status collapsed
16266
16267 \begin_layout Plain Layout
16268 (訳註)ここの記述は古くなっています.
16269 \end_layout
16270
16271 \end_inset
16272
16273
16274 \end_layout
16275
16276 \begin_layout Subsection
16277
16278 \family sans
16279 スライド
16280 \family default
16281
16282 \family sans
16283 オーバーレイ
16284 \family default
16285
16286 \family sans
16287 注釈で発表用のスライドを作る
16288 \end_layout
16289
16290 \begin_layout Subsubsection
16291
16292 \family sans
16293 スライド
16294 \family default
16295 環境を使う
16296 \end_layout
16297
16298 \begin_layout Standard
16299 もし本節が,実際のプレゼンテーションの作り方を教えてくれるものと期待されているとすれば,大いにがっかりされるかもしれません.当然ながら,プレゼンテーション用の資
16300 料を準備するうえで
16301 \family sans
16302 slides
16303 \family default
16304 クラスを役立てる方法を詳しく説明はしますが,内容をどうするかはあなた次第です(そしてこれも\SpecialChar LyX
16305 の哲学です).
16306 \end_layout
16307
16308 \begin_layout Standard
16309
16310 \family sans
16311 スライド
16312 \family default
16313 環境を選択すれば(方法は第
16314 \begin_inset CommandInset ref
16315 LatexCommand ref
16316 reference "sec:スライドの癖"
16317
16318 \end_inset
16319
16320 節参照のこと),\SpecialChar LyX
16321 は新規スライドを開始します.この環境ないし「疑似環境」のラベルは,鮮やかな青で「新規スライド:」と表示されます.この環境の後のテキスト環境や段落
16322 環境は,すべて新規スライドに入ります.簡単ですよね.
16323 \end_layout
16324
16325 \begin_layout Standard
16326 Slidesは,おそらく\SpecialChar LyX
16327 の中で強制的に改頁をしなくてはならない唯一のクラスです(これは
16328 \family sans
16329 段落レイアウト
16330 \family default
16331 ダイアログで指定できます).実際,一つのスライドの内容を入力し終わったら,改頁したくなるはずです.仮に一つのスライドに物理的に入りきらない文章を入力したとすると
16332 ,入りきらない部分は,次の新規スライドにまわされます.しかしながら,入りきらない部分のスライドにはページ番号が付きませんので,こうするのはお勧めしません.その上
16333 ,一枚に収まらないスライドでは,
16334 \family sans
16335 オーバーレイ
16336 \family default
16337 を使用すると干渉する恐れがあります.
16338 \end_layout
16339
16340 \begin_layout Standard
16341
16342 \family sans
16343 オーバーレイ
16344 \family default
16345 環境と
16346 \family sans
16347 注釈
16348 \family default
16349 環境も,
16350 \family sans
16351 スライド
16352 \family default
16353 環境と同様の動作を示します.これらは,青の代わりに鮮やかなマゼンタで,それぞれ「
16354 \noun on
16355 新規オーバーレイ
16356 \noun default
16357 :」ないし「
16358 \noun on
16359 新規注釈:
16360 \noun default
16361 」というラベルを表示します.ラベルのフォントも,3つの環境でそれぞれ異なるものが使用されます.
16362 \end_layout
16363
16364 \begin_layout Standard
16365
16366 \family sans
16367 スライド
16368 \family default
16369 と同様に,
16370 \family sans
16371 オーバーレイ
16372 \family default
16373
16374 \family sans
16375 注釈
16376 \family default
16377 の内容が,一つのスライドないしページに物理的に収まりきらない場合には,余分は新規スライドに回されます.この場合には,
16378 \family sans
16379 注釈
16380 \family default
16381
16382 \family sans
16383 オーバーレイ
16384 \family default
16385 の本来の目的が達せられなくなりますので,ここでもこのような状態は避けるべきでしょう.
16386 \end_layout
16387
16388 \begin_layout Subsubsection
16389
16390 \family sans
16391 スライドでオーバーレイを使用する
16392 \end_layout
16393
16394 \begin_layout Standard
16395
16396 \family sans
16397 オーバーレイ
16398 \family default
16399 の背後にある考え方は,別のスライドの上にスライドを載せようとするものです.メインの
16400 \family sans
16401 スライド
16402 \family default
16403 に図があるとき,関連した文章を表示する前に,図について議論を進めたいと思うことがあるかもしれません.これを行うひとつの方法は,
16404 \family sans
16405 スライド
16406 \family default
16407 で後に表示したい部分に黒い紙の蓋を貼り付けてしまうことですが,この方法は,たとえばグラフを他のグラフに重ねたい場合などには,うまく行きません.この場合には,二つ
16408 のグラフを揃えるために,重ねる二つのスライドを,喋りながら手探りで揃えなくてはなりません.これらのような場合には,
16409 \family sans
16410 オーバーレイ
16411 \family default
16412 環境を使えば,もっと楽になります.
16413 \end_layout
16414
16415 \begin_layout Standard
16416
16417 \family sans
16418 オーバーレイ
16419 \family default
16420 は,「親」
16421 \family sans
16422 スライド
16423 \family default
16424 のページ番号を引継ぎ,その後に「
16425 \family typewriter
16426 -a
16427 \family default
16428 」を付け加えます
16429 \begin_inset Foot
16430 status collapsed
16431
16432 \begin_layout Plain Layout
16433 想像できるように,複数のオーバーレイがあれば,「
16434 \family typewriter
16435 -a
16436 \family default
16437 」「
16438 \family typewriter
16439 -b
16440 \family default
16441 」「
16442 \family typewriter
16443 -c
16444 \family default
16445 」などが親スライドのページ番号に付け加えられます.
16446 \end_layout
16447
16448 \end_inset
16449
16450 .当然のことながら,
16451 \family sans
16452 スライド
16453 \family default
16454
16455 \family sans
16456 オーバーレイ
16457 \family default
16458 の内容は両方とも,1枚のスライドに物理的に収まるようになっていなければなりません.
16459 \family sans
16460 オーバーレイ
16461 \family default
16462
16463 \family sans
16464 スライド
16465 \family default
16466 の「一部」であると考えるのがよいでしょう.\SpecialChar LyX
16467 では,
16468 \family sans
16469 オーバーレイ
16470 \family default
16471 のラベルを
16472 \family sans
16473 スライド
16474 \family default
16475 のラベルよりも下げることで,このことを視覚的に表しています.また,印刷可能な出力を生成すると,
16476 \family sans
16477 オーバーレイ
16478 \family default
16479 と親
16480 \family sans
16481 スライド
16482 \family default
16483 両方の四隅に,揃えマーカーがあることに気づかれるはずです.これは,2枚のスライドを物理的に重ね合わせるための補助となるものです.
16484 \end_layout
16485
16486 \begin_layout Standard
16487 2つのスライドをオーバーレイさせる際の大きな問題は,2枚のスライドの内容を揃えることです.2枚目のスライドのグラフには,どれだけの余白を残しておくべきなのでしょ
16488 うか?さらにややこしく,2枚目のスライドにグラフと文章を入れたいときに,その間に割り込んでしまうような文章がメインスライドにある場合には,どうでしょうか?正しい
16489 寸法の垂直スペースを挿入してみることもできるでしょう.しかし,もっと良い方法として,
16490 \family sans
16491 不可視文
16492 \family default
16493
16494 \family sans
16495 可視文
16496 \family default
16497 を使用する方法があります.
16498 \end_layout
16499
16500 \begin_layout Standard
16501 これらの名前が意味するとおり,
16502 \family sans
16503 不可視文
16504 \family default
16505
16506 \family sans
16507 可視文
16508 \family default
16509 は,それぞれ続く文章すべてを見えなくしたり見えるようにしたりするコマンド型の段落環境です.しかしながら,第
16510 \begin_inset CommandInset ref
16511 LatexCommand ref
16512 reference "sec:スライドの癖"
16513
16514 \end_inset
16515
16516 節で述べたように,この2つの環境の
16517 \emph on
16518
16519 \emph default
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 \end_layout
16534
16535 \begin_layout Standard
16536
16537 \family sans
16538 可視文
16539 \family default
16540 の場合には,中央揃えのラベルは,鮮やかな緑の「<以下可視文>」となります.このラベル以降の段落は,通常通りの挙動を示します.新規の
16541 \family sans
16542 スライド
16543 \family default
16544
16545 \family sans
16546 オーバーレイ
16547 \family default
16548
16549 \family sans
16550 注釈
16551 \family default
16552 を開始すると,
16553 \family sans
16554 不可視文
16555 \family default
16556 は自動的に終了されることに注意してください.したがって,
16557 \family sans
16558 スライド
16559 \family default
16560 の終わりでは,
16561 \family sans
16562 可視文
16563 \family default
16564 を使用する必要はありません.
16565 \end_layout
16566
16567 \begin_layout Standard
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 Enumerate
16588 メインのスライドか
16589 \family sans
16590 オーバーレイ
16591 \family default
16592 かに関わらず,スライド上に現れるすべてを含んだ
16593 \family sans
16594 スライド
16595 \family default
16596 を作成します.
16597 \end_layout
16598
16599 \begin_layout Enumerate
16600
16601 \family sans
16602 オーバーレイ
16603 \family default
16604 のみに表示するすべての図や段落の前に,
16605 \family sans
16606 不可視文
16607 \family default
16608 環境を挿入し,必要ならば,
16609 \family sans
16610 オーバーレイ
16611 \family default
16612 のみの文章の後に
16613 \family sans
16614 可視文
16615 \family default
16616 環境を挿入します.
16617 \end_layout
16618
16619 \begin_layout Enumerate
16620
16621 \family sans
16622 スライド
16623 \family default
16624 の直後から,
16625 \family sans
16626 オーバーレイ
16627 \family default
16628 を開始します.
16629 \end_layout
16630
16631 \begin_layout Enumerate
16632 この
16633 \family sans
16634 スライド
16635 \family default
16636 の内容を
16637 \family sans
16638 オーバーレイ
16639 \family default
16640 にコピーします.
16641 \end_layout
16642
16643 \begin_layout Enumerate
16644
16645 \family sans
16646 オーバーレイ
16647 \family default
16648 内部の
16649 \family sans
16650 不可視文
16651 \family default
16652 行をすべて
16653 \family sans
16654 不可視文
16655 \family default
16656 に変更し,
16657 \family sans
16658 可視文
16659 \family default
16660
16661 \family sans
16662 不可視文
16663 \family default
16664 に変更します.
16665 \end_layout
16666
16667 \begin_layout Standard
16668 これだけです.これで
16669 \family sans
16670 オーバーレイ
16671 \family default
16672 ができあがりました.
16673 \end_layout
16674
16675 \begin_layout Standard
16676 \SpecialChar LyX
16677  
16678 \family sans
16679 slides
16680 \family default
16681 クラスをデザインする上で,ひとつ残された問題があります.段落途中の文章を不可視にしたり,不可視段落の途中の文章を再度可視にしたりすることはできないのです.これを
16682 実現するためには,\SpecialChar LaTeX
16683 コードを埋め込む必要があります
16684 \begin_inset Foot
16685 status collapsed
16686
16687 \begin_layout Plain Layout
16688 このコマンドは,
16689 \end_layout
16690
16691 \begin_layout Itemize
16692
16693 \family typewriter
16694 {
16695 \backslash
16696 invisible \SpecialChar ldots
16697  }
16698 \end_layout
16699
16700 \begin_layout Itemize
16701
16702 \family typewriter
16703 {
16704 \backslash
16705 visible \SpecialChar ldots
16706  }
16707 \end_layout
16708
16709 \begin_layout Plain Layout
16710 \SpecialChar ldots
16711 のような形となり,\SpecialChar TeX
16712 としてマークする必要があります.「可視性」を変更したい文章は,波括弧のあいだ(そして
16713 \family typewriter
16714
16715 \backslash
16716 invisible
16717 \family default
16718 ないし
16719 \family typewriter
16720
16721 \backslash
16722 visible
16723 \family default
16724 コマンドの後ろ)に入れます.\SpecialChar TeX
16725 としてマークする方法がわからない場合は,
16726 \emph on
16727 ユーザーの手引き
16728 \emph default
16729 をご参照ください.
16730 \end_layout
16731
16732 \end_inset
16733
16734
16735 \end_layout
16736
16737 \begin_layout Subsubsection
16738
16739 \family sans
16740 スライドで注釈を使う
16741 \family default
16742
16743 \begin_inset CommandInset label
16744 LatexCommand label
16745 name "sec:スライド注釈"
16746
16747 \end_inset
16748
16749
16750 \end_layout
16751
16752 \begin_layout Standard
16753
16754 \family sans
16755 オーバーレイ
16756 \family default
16757 と同様,
16758 \family sans
16759 注釈
16760 \family default
16761 も「親」
16762 \family sans
16763 スライド
16764 \family default
16765 に関連付けられています.ここでも\SpecialChar LyX
16766
16767 \family sans
16768 スライド
16769 \family default
16770 クラスは視覚的な効果を与えています.
16771 \family sans
16772 注釈
16773 \family default
16774 のラベルは
16775 \family sans
16776 スライド
16777 \family default
16778 よりも短く(オーバーレイのラベルよりも長いですが),
16779 \family sans
16780 オーバーレイ
16781 \family default
16782 のラベルと同様,派手な赤紫色です.加えて,印刷した
16783 \family sans
16784 注釈
16785 \family default
16786 には,「親」スライドのページ番号に「
16787 \family typewriter
16788 -
16789 \family default
16790 1」「
16791 \family typewriter
16792 -
16793 \family default
16794 2」「
16795 \family typewriter
16796 -
16797 \family default
16798 3」等を付けたページ番号が付けられます.1つの
16799 \family sans
16800 スライド
16801 \family default
16802 には,複数の
16803 \family sans
16804 注釈
16805 \family default
16806 を関連付けることができるので,
16807 \family sans
16808 スライド
16809 \family default
16810
16811 \family sans
16812 オーバーレイ
16813 \family default
16814 と同じように,長い注釈は,1枚の紙に収まるように分割したいと思われるに違いありません.
16815 \end_layout
16816
16817 \begin_layout Standard
16818
16819 \family sans
16820 注釈
16821 \family default
16822 の目的は明らかです.
16823 \family sans
16824 スライド
16825 \family default
16826 に関して付け加えたいことを書き留めておくことです.特定の
16827 \family sans
16828 スライド
16829 \family default
16830 についての覚書として使うこともできます.後者の場合には,タイムマーカを利用したいこともあるかもしれません.現在のところ,\SpecialChar LyX
16831
16832 \family sans
16833 スライド
16834 \family default
16835 クラスは,
16836 \noun on
16837 Sli
16838 \noun default
16839 \SpecialChar TeX
16840 の機能であるタイムマーカを「ネイティブには」サポートしていません.したがって,\SpecialChar LaTeX
16841 コードを使用することに頼らなくてはなりません.
16842 \end_layout
16843
16844 \begin_layout Standard
16845 タイムマーカを使用するには,クラスオプション「
16846 \family typewriter
16847 clock
16848 \family default
16849 」を追加指定する必要があります(第
16850 \begin_inset CommandInset ref
16851 LatexCommand ref
16852 reference "sec:slidesetup"
16853
16854 \end_inset
16855
16856 節参照).このオプションはタイムマーカ機能を有効にして,生成したすべての
16857 \family sans
16858 注釈
16859 \family default
16860 の左下にタイムマーカを表示します.タイムマーカに表示するものを設定するには,\SpecialChar LaTeX
16861 コマンド「
16862 \family typewriter
16863
16864 \backslash
16865 settime{}
16866 \family default
16867 」および「
16868 \family typewriter
16869
16870 \backslash
16871 addtime{}
16872 \family default
16873 」を使用します.両コマンドは,秒で測った時間を引数にとります.「
16874 \family typewriter
16875
16876 \backslash
16877 settime{}
16878 \family default
16879 」は,タイムマーカを特定の時間に設定し,「
16880 \family typewriter
16881
16882 \backslash
16883 addtime{}
16884 \family default
16885 」は,タイムマーカを指定した分だけ進めます.このようにタイムマーカと
16886 \family sans
16887 注釈
16888 \family default
16889 を用いれば,特定の
16890 \family sans
16891 スライド
16892 \family default
16893 にどれだけの時間をかけるのか忘れないでいられます.
16894 \end_layout
16895
16896 \begin_layout Standard
16897 最後に,説明しておくべき機能がもう一つあります.当然ながら,
16898 \family sans
16899 スライド
16900 \family default
16901
16902 \family sans
16903 オーバーレイ
16904 \family default
16905 はすべてスライドに,
16906 \family sans
16907 注釈
16908 \family default
16909 はすべて普通の紙に印刷したいはずです.しかしながら,
16910 \family sans
16911 注釈
16912 \family default
16913 は関連付けられた親スライドの直後に
16914 \emph on
16915 来なくてはなりません
16916 \emph default
16917 .ユーザーはどうしたら良いのでしょうか.
16918 \end_layout
16919
16920 \begin_layout Standard
16921 幸いなことに,どれを印刷するか選択することを可能にする\SpecialChar LaTeX
16922 コマンドが,2種類あります.どちらも文書のプリアンブルに記述されなくてはなりません.コマンド「
16923 \family typewriter
16924
16925 \backslash
16926 onlyslides{
16927 \backslash
16928 slides}
16929 \family default
16930 」は,出力に
16931 \family sans
16932 スライド
16933 \family default
16934
16935 \family sans
16936 オーバーレイ
16937 \family default
16938 のみが含まれるようにするものです.同様に,「
16939 \family typewriter
16940
16941 \backslash
16942 onlynotes{
16943 \backslash
16944 notes}
16945 \family default
16946 」は
16947 \family sans
16948 注釈
16949 \family default
16950 以外の出力をすべて抑制します.私のアドバイスとしては,両コマンドをプリアンブルに書いておいて,最初は両方ともコメントアウトしておくと良いでしょう.そうすれば,執
16951 筆時にはプレゼンテーション全体をプレビューすることができます.いったん書き終えたならば,二つのうち一方のコメントを外して,印刷したい方を選ぶことができます.私な
16952 らば,まず
16953 \family typewriter
16954
16955 \backslash
16956 onlyslides{
16957 \backslash
16958 slides}
16959 \family default
16960 のコメントを外して,現ファイル名に「*
16961 \family typewriter
16962 -slides
16963 \family default
16964 」を付けた新たなファイルに出力を行ない,今度はこの行をふたたびコメントアウトするとともに,「
16965 \family typewriter
16966
16967 \backslash
16968 onlynotes{
16969 \backslash
16970 notes
16971 \family default
16972 }」のコメントを外して,これを「
16973 \family typewriter
16974 *-notes.ps
16975 \family default
16976 」というファイルに出力します.そうすれば,必要に応じて,スライドまたは通常の紙をプリンタにセットし,一方のファイルをプリンタに送ればよいのです.
16977 \end_layout
16978
16979 \begin_layout Standard
16980
16981 \family typewriter
16982
16983 \backslash
16984 onlyslides{}
16985 \family default
16986 」および「
16987 \family typewriter
16988
16989 \backslash
16990 onlynotes{}
16991 \family default
16992 」コマンドには,他の引数を与えることもできます.詳しくは,\SpecialChar LaTeX
16993 の良書をご覧ください.
16994 \end_layout
16995
16996 \begin_layout Subsection
16997
16998 \family sans
16999 slides
17000 \family default
17001 クラスのひな型ファイル
17002 \end_layout
17003
17004 \begin_layout Standard
17005
17006 \family sans
17007 slides
17008 \family default
17009 クラス用のひな型ファイルとして「
17010 \family typewriter
17011 slides.lyx
17012 \family default
17013 」が提供されています.これを使用するには,新しいプレゼンテーションを作り始める際に,
17014 \family sans
17015 ファイル\SpecialChar menuseparator
17016 新規(ひな型使用)
17017 \family default
17018 メニューを選択してください.すると新規ファイルには,
17019 \family sans
17020 スライド
17021 \family default
17022
17023 \family sans
17024 オーバーレイ
17025 \family default
17026
17027 \family sans
17028 注釈
17029 \family default
17030 の組が,例として含まれており,
17031 \family sans
17032 スライド
17033 \family default
17034
17035 \family sans
17036 オーバーレイ
17037 \family default
17038 には,さらに
17039 \family sans
17040 不可視文
17041 \family default
17042
17043 \family sans
17044 可視文
17045 \family default
17046 の使用例も含まれています.また,プリアンブルには,次のように書き込まれています.
17047 \end_layout
17048
17049 \begin_layout LyX-Code
17050 % Uncomment to print out only slides and overlays
17051 \end_layout
17052
17053 \begin_layout LyX-Code
17054 %
17055 \end_layout
17056
17057 \begin_layout LyX-Code
17058 %
17059 \backslash
17060 onlyslides{
17061 \backslash
17062 slides}
17063 \begin_inset Newline newline
17064 \end_inset
17065
17066  
17067 \end_layout
17068
17069 \begin_layout LyX-Code
17070 % Uncomment to print out only notes
17071 \end_layout
17072
17073 \begin_layout LyX-Code
17074 %
17075 \end_layout
17076
17077 \begin_layout LyX-Code
17078 %
17079 \backslash
17080 onlynotes{
17081 \backslash
17082 notes}
17083 \end_layout
17084
17085 \begin_layout Standard
17086 最後に,私はこの文書クラスを,\SpecialChar LaTeX2e
17087 の組み込みクラスである「
17088 \noun on
17089 Sli\SpecialChar TeX
17090
17091 \noun default
17092 エミュレーション」クラスをサポートする目的で作成しました.私も\SpecialChar LyX
17093 チームの他のメンバーも,この組み込みスライドクラスを使用することに賛成したり反対したりするものでは
17094 ありません.これは単に,ユーザーがこれを使いたかったり必要としたりしたときのためにあるものです.プレゼンテーションを作成するためには,
17095 \family sans
17096 Foils
17097 \family default
17098 クラス(第
17099 \begin_inset CommandInset ref
17100 LatexCommand ref
17101 reference "sec:foiltex"
17102
17103 \end_inset
17104
17105 節参照)や「
17106 \family typewriter
17107 seminar
17108 \family default
17109 」パッケージ(一部の\SpecialChar TeX
17110 頒布版に含まれています)のように,他の\SpecialChar LaTeX2e
17111 クラスも存在します.私はこれらについては知らないのですが,他にどのようなことができるのか試してみてくだ
17112 さい.
17113 \end_layout
17114
17115 \begin_layout Chapter
17116 ソフトウェアを追加する必要がある \SpecialChar LyX
17117 機能
17118 \end_layout
17119
17120 \begin_layout Section
17121 \SpecialChar TeX
17122 のチェック
17123 \end_layout
17124
17125 \begin_layout Standard
17126
17127 \noun on
17128 Asger Alstrup
17129 \noun default
17130
17131 \end_layout
17132
17133 \begin_layout Subsection
17134 はじめに
17135 \end_layout
17136
17137 \begin_layout Standard
17138
17139 \family typewriter
17140 chktex
17141 \family default
17142 プログラムが導入されていると
17143 \begin_inset Foot
17144 status collapsed
17145
17146 \begin_layout Plain Layout
17147 \SpecialChar LaTeX
17148 頒布版としてMiK\SpecialChar TeX
17149 を使用している場合には,
17150 \family typewriter
17151 chktex
17152 \family default
17153 はまだ利用可能ではありません.
17154 \end_layout
17155
17156 \end_inset
17157
17158
17159 \family sans
17160 ツール
17161 \family default
17162 メニューの下に,
17163 \family sans
17164 \SpecialChar TeX
17165 構文チェック
17166 \family default
17167 という項目が表示されます.
17168 \family typewriter
17169 chktex
17170 \family default
17171 は,CTAN
17172 \begin_inset Newline newline
17173 \end_inset
17174
17175
17176 \begin_inset CommandInset href
17177 LatexCommand href
17178 target "http://www.ctan.org/tex-archive/help/Catalogue/entries/chktex.html"
17179
17180 \end_inset
17181
17182 から入手することができます.
17183 \end_layout
17184
17185 \begin_layout Standard
17186
17187 \family sans
17188 Chk\SpecialChar TeX
17189
17190 \family default
17191 パッケージは,\SpecialChar LaTeX
17192 の構成物には直感的でないものもあり,すぐ忘れてしまいがちであるのに不満を感じた
17193 \begin_inset Flex Noun
17194 status collapsed
17195
17196 \begin_layout Plain Layout
17197 Jens T.
17198  Berger Thielemann
17199 \end_layout
17200
17201 \end_inset
17202
17203 が書いたプログラムです.このプログラムは,\SpecialChar LaTeX
17204 ファイルを走査して,ファイルの整合性をチェックし,犯しがちな誤りを見つけ出します.別の技術用語では,LaTeXにおける
17205 \family typewriter
17206 lint
17207 \family default
17208 であるとも言えます.
17209 \end_layout
17210
17211 \begin_layout Standard
17212 さて,\SpecialChar LyX
17213 はつねに正しい\SpecialChar LaTeX
17214 ファイルを生成するはずなのに,文法チェッカーは\SpecialChar LyX
17215 で何をするというのでしょうか.答えは簡単です.
17216 \family typewriter
17217 lint
17218 \family default
17219 がC言語プログラムの
17220 \emph on
17221 文法
17222 \emph default
17223 をチェックするだけでなく,打ち間違いによる
17224 \emph on
17225 意味上の
17226 \emph default
17227 チェックも行うように,
17228 \family sans
17229 Chk\SpecialChar TeX
17230
17231 \family default
17232 は,文法エラーの他に犯しがちな
17233 \emph on
17234 写植上の
17235 \emph default
17236 誤りも検出してくれるからです.
17237 \family sans
17238 Chk\SpecialChar TeX
17239
17240 \family default
17241 は,以下のような誤りを検出することができます.
17242 \end_layout
17243
17244 \begin_layout Itemize
17245 省略記号の検出:
17246 \begin_inset Newline newline
17247 \end_inset
17248
17249 ...ではなく\SpecialChar ldots
17250 を使わなくてはなりません
17251 \end_layout
17252
17253 \begin_layout Itemize
17254 括弧の前後にスペースを置かない:
17255 \begin_inset Newline newline
17256 \end_inset
17257
17258 ( wrong spacing ):誤った空白
17259 \end_layout
17260
17261 \begin_layout Itemize
17262 よく使われる省略形の後ろは通常スペースにする:
17263 \begin_inset Newline newline
17264 \end_inset
17265
17266 e.
17267 \begin_inset space \thinspace{}
17268 \end_inset
17269
17270 g.
17271 \begin_inset space \space{}
17272 \end_inset
17273
17274 is too wide spacing.:広すぎる空白
17275 \end_layout
17276
17277 \begin_layout Itemize
17278 直前の文章が大文字で終わっているときに,文末スペースに直す:
17279 \begin_inset Newline newline
17280 \end_inset
17281
17282 This is a TEST.
17283  And this is wrong spacing.:誤った空白
17284 \end_layout
17285
17286 \begin_layout Itemize
17287 ラベルや類似コマンドの前のスペース:
17288 \begin_inset Newline newline
17289 \end_inset
17290
17291 ラベルが別のページに行ってしまわないように,ラベルは文章に接していなくてはなりません. 
17292 \begin_inset CommandInset label
17293 LatexCommand label
17294 name "sec:chktex"
17295
17296 \end_inset
17297
17298  
17299 \begin_inset Foot
17300 status collapsed
17301
17302 \begin_layout Plain Layout
17303 この脚注は,正しくないページに行ってしまう恐れがあります.
17304 \end_layout
17305
17306 \end_inset
17307
17308  このラベルは離れすぎです.
17309 \end_layout
17310
17311 \begin_layout Itemize
17312 参照の前にハードスペースではなくスペース:
17313 \begin_inset Newline newline
17314 \end_inset
17315
17316 運が悪ければ,参照文字列と参照番号のあいだでちょうど改行されてしまい,残念な結果となります.第
17317 \begin_inset CommandInset ref
17318 LatexCommand ref
17319 reference "sec:chktex"
17320
17321 \end_inset
17322
17323 節をご覧ください.
17324 \end_layout
17325
17326 \begin_layout Itemize
17327 数字のあいだで
17328 \begin_inset Formula $\times$
17329 \end_inset
17330
17331 ではなく「x」が使われている:
17332 \begin_inset Newline newline
17333 \end_inset
17334
17335 2x2は,
17336 \begin_inset Formula $2\times2$
17337 \end_inset
17338
17339 よりも安っぽく見えます.
17340 \end_layout
17341
17342 \begin_layout Standard
17343 などなど\SpecialChar ldots
17344
17345 \family sans
17346 Chk\SpecialChar TeX
17347
17348 \family default
17349 は,印刷する前に文書を「仕上げる」上で,たいへん価値のあるツールです.必須のスペルチェックを終えた直後,組版の微調整をする前には,これを実行するべきです.
17350 \end_layout
17351
17352 \begin_layout Subsection
17353 使いかた
17354 \end_layout
17355
17356 \begin_layout Standard
17357 このプログラムを導入したならば,使うのは
17358 \family sans
17359 ツール\SpecialChar menuseparator
17360 \SpecialChar TeX
17361 構文チェック
17362 \family default
17363 を選択するだけなので簡単です.こうすると,\SpecialChar LyX
17364 は使用中の文書の\SpecialChar LaTeX
17365 ファイルを生成して,
17366 \family sans
17367 Chk\SpecialChar TeX
17368
17369 \family default
17370 を起動し,当該ファイルを検査しますが,
17371 \family sans
17372 Chk\SpecialChar TeX
17373
17374 \family default
17375 から警告があった場合には,それを含んだ「エラーボックス」を\SpecialChar LyX
17376 中に挿入します.警告は,誤りのある箇所のそばに置かれるので,メニュー項目の
17377 \family sans
17378 移動\SpecialChar menuseparator
17379 エラー
17380 \family default
17381 を選択するか,既定の
17382 \family typewriter
17383 cua
17384 \family default
17385
17386 \begin_inset Flex Ruby
17387 status collapsed
17388
17389 \begin_layout Plain Layout
17390
17391 \begin_inset Argument post:1
17392 status collapsed
17393
17394 \begin_layout Plain Layout
17395 キー
17396 \end_layout
17397
17398 \end_inset
17399
17400
17401 \end_layout
17402
17403 \end_inset
17404
17405 設定ファイルならば
17406 \begin_inset Flex Ruby
17407 status collapsed
17408
17409 \begin_layout Plain Layout
17410
17411 \family roman
17412 \series medium
17413 \shape up
17414 \size normal
17415 \emph off
17416 \bar no
17417 \noun off
17418 \color none
17419 捷径
17420 \family default
17421 \series default
17422 \shape default
17423 \size default
17424 \emph default
17425 \bar default
17426 \noun default
17427 \color inherit
17428
17429 \begin_inset Argument post:1
17430 status collapsed
17431
17432 \begin_layout Plain Layout
17433 ショートカット
17434 \end_layout
17435
17436 \end_inset
17437
17438
17439 \end_layout
17440
17441 \end_inset
17442
17443
17444 \family sans
17445 C-g
17446 \family default
17447 を押せば,簡単に警告の箇所を見出すことができます.エラーボックスを開けるには,マウスでボックスをクリックするか,
17448 \family typewriter
17449 cua
17450 \family default
17451 鍵設定の場合には捷径鍵
17452 \family sans
17453 C-i
17454 \family default
17455
17456 \family typewriter
17457 emacs
17458 \family default
17459 鍵設定の場合は捷径鍵
17460 \family sans
17461 C-o
17462 \family default
17463 を押します.警告を読み,それが誤りを示していれば修正します.警告が何を意味しているか理解しにくい場合には,無視しても問題はありません.画面上の文書と,
17464 \family sans
17465 Chk\SpecialChar TeX
17466
17467 \family default
17468 を起動する際に行なわれる実際の技術的な操作のあいだには,隠された層があり,この隔たりのせいで,一部の警告が不可解なものになったり,明らかに馬鹿げたものになる場合
17469 があるのです.
17470 \end_layout
17471
17472 \begin_layout Standard
17473 本文書自体,この機能を確認する良い材料になりますので,実行してみてください.すると,かなりの量の警告が出るはずです.これはコンピュータが敏感すぎるせいですので,
17474 警告のほとんどは実際には警告に値しません.
17475 \end_layout
17476
17477 \begin_layout Subsection
17478 微調整のしかた
17479 \end_layout
17480
17481 \begin_layout Standard
17482 場合によっては,
17483 \family sans
17484 Chk\SpecialChar TeX
17485
17486 \family default
17487 は,あなたが望むよりも煩すぎると思うかもしれません.そのような場合には,必要と思うまで
17488 \family sans
17489 Chk\SpecialChar TeX
17490
17491 \family default
17492 を無効にするか,あなたにもう少し合うように
17493 \family sans
17494 Chk\SpecialChar TeX
17495
17496 \family default
17497 を調整することができます.
17498 \end_layout
17499
17500 \begin_layout Standard
17501
17502 \family sans
17503 Chk\SpecialChar TeX
17504
17505 \family default
17506 は調整や拡張がひじょうに柔軟なのですが,\SpecialChar LyX
17507 における
17508 \family sans
17509 Chk\SpecialChar TeX
17510
17511 \family default
17512 関連の問題が,それですべて解決すると思うべきではありません.\SpecialChar LyX
17513 は,
17514 \family sans
17515 Chk\SpecialChar TeX
17516
17517 \family default
17518 出力
17519 \begin_inset Foot
17520 status collapsed
17521
17522 \begin_layout Plain Layout
17523
17524 \family sans
17525 chktex
17526 \family default
17527 の実際の出力は,
17528 \family sans
17529 chktex
17530 \family default
17531 を実行した直後に
17532 \family sans
17533 文書\SpecialChar menuseparator
17534 \SpecialChar LaTeX
17535 ログ
17536 \family default
17537 を使えば見ることができます.
17538 \end_layout
17539
17540 \end_inset
17541
17542 から得た行番号と内部構造を一致させるため,やや特殊な\SpecialChar LaTeX
17543 ファイルを生成しなくてはならないので,警告の一部は正しく表示されていないように見えるでしょう.これに対処する
17544 ためには,以下の2つの方法があります.
17545 \end_layout
17546
17547 \begin_layout Itemize
17548
17549 \family sans
17550 \begin_inset Flex MenuItem
17551 status collapsed
17552
17553 \begin_layout Plain Layout
17554
17555 \family sans
17556 ツール\SpecialChar menuseparator
17557 設定\SpecialChar menuseparator
17558 出力\SpecialChar menuseparator
17559 \SpecialChar LaTeX
17560 \SpecialChar menuseparator
17561 Check\SpecialChar TeX
17562 コマンド
17563 \end_layout
17564
17565 \end_inset
17566
17567
17568 \family default
17569 中の
17570 \family sans
17571 Chk\SpecialChar TeX
17572
17573 \family default
17574 起動コマンドラインを調整するか,グローバルな
17575 \family sans
17576 Chk\SpecialChar TeX
17577
17578 \family default
17579 の設定ファイル(通常は
17580 \begin_inset Flex Code
17581 status collapsed
17582
17583 \begin_layout Plain Layout
17584 chktexrc
17585 \end_layout
17586
17587 \end_inset
17588
17589 ファイル)を調整します.コマンドラインからどの警告を有効・無効にできるかは以下をご覧ください.
17590 \end_layout
17591
17592 \begin_layout Itemize
17593
17594 \family sans
17595 ファイル\SpecialChar menuseparator
17596 書き出し\SpecialChar menuseparator
17597 \SpecialChar LaTeX
17598
17599 \family default
17600 を使って文書を\SpecialChar LaTeX
17601 ファイルに変換し,そのファイルに対して
17602 \family typewriter
17603 chktex
17604 \family default
17605 を手動で実行します.このようにすると,\SpecialChar LyX
17606 文書中の対応箇所を見つけるのがやや面倒ですが,少し我慢すれば見つけることができます.
17607 \end_layout
17608
17609 \begin_layout Standard
17610 以下は,
17611 \family sans
17612 設定
17613 \family default
17614 で有効化・無効化できる警告メッセージです.警告を無効にするには
17615 \family typewriter
17616 -n#
17617 \family default
17618 ,有効にするには
17619 \family typewriter
17620 -w#
17621 \family default
17622 を用います.イタリック表示の項目は,既定で無効となっています.既定値は "
17623 \family typewriter
17624 chktex -n1 -n3 -n6 -n9 -n22 -n25 -n30 -n38
17625 \family default
17626 "です.
17627 \end_layout
17628
17629 \begin_layout Standard
17630 \SpecialChar LyX
17631 は,
17632 \family typewriter
17633 chktex
17634 \family default
17635 と通信するために,他のコマンドラインパラメータを特定の方法で使用しているため,メッセージを有効化・無効化する以外のオプションを使うべきではありません.
17636 \end_layout
17637
17638 \begin_layout Enumerate
17639
17640 \size small
17641 \emph on
17642 Command terminated with space.
17643 \end_layout
17644
17645 \begin_layout Enumerate
17646
17647 \size small
17648 Non-breaking space (
17649 \begin_inset Quotes eld
17650 \end_inset
17651
17652
17653 \family typewriter
17654 ~
17655 \family default
17656
17657 \begin_inset Quotes erd
17658 \end_inset
17659
17660 ) should have been used.
17661 \end_layout
17662
17663 \begin_layout Enumerate
17664
17665 \size small
17666 \emph on
17667 You should enclose the previous parenthesis with 
17668 \begin_inset Quotes eld
17669 \end_inset
17670
17671
17672 \family typewriter
17673 {}
17674 \family default
17675
17676 \begin_inset Quotes erd
17677 \end_inset
17678
17679 .
17680 \end_layout
17681
17682 \begin_layout Enumerate
17683
17684 \size small
17685 Italic correction (
17686 \begin_inset Quotes eld
17687 \end_inset
17688
17689
17690 \family typewriter
17691
17692 \backslash
17693 /
17694 \family default
17695
17696 \begin_inset Quotes erd
17697 \end_inset
17698
17699 ) found in non-italic buffer.
17700 \end_layout
17701
17702 \begin_layout Enumerate
17703
17704 \size small
17705 Italic correction (
17706 \begin_inset Quotes eld
17707 \end_inset
17708
17709
17710 \family typewriter
17711
17712 \backslash
17713 /
17714 \family default
17715
17716 \begin_inset Quotes erd
17717 \end_inset
17718
17719 ) found more than once.
17720 \end_layout
17721
17722 \begin_layout Enumerate
17723
17724 \size small
17725 \emph on
17726 No italic correction (
17727 \begin_inset Quotes eld
17728 \end_inset
17729
17730
17731 \family typewriter
17732
17733 \backslash
17734 /
17735 \family default
17736
17737 \begin_inset Quotes erd
17738 \end_inset
17739
17740 ) found.
17741 \end_layout
17742
17743 \begin_layout Enumerate
17744
17745 \size small
17746 Accent command 
17747 \begin_inset Quotes eld
17748 \end_inset
17749
17750
17751 \family typewriter
17752 cmd
17753 \family default
17754
17755 \begin_inset Quotes erd
17756 \end_inset
17757
17758  needs use of 
17759 \begin_inset Quotes eld
17760 \end_inset
17761
17762
17763 \family typewriter
17764 cmd
17765 \family default
17766
17767 \begin_inset Quotes erd
17768 \end_inset
17769
17770 .
17771 \end_layout
17772
17773 \begin_layout Enumerate
17774
17775 \size small
17776 Wrong length of dash may have been used.
17777 \end_layout
17778
17779 \begin_layout Enumerate
17780
17781 \size small
17782 \emph on
17783 \begin_inset Quotes eld
17784 \end_inset
17785
17786
17787 \family typewriter
17788 %s
17789 \family default
17790
17791 \begin_inset Quotes erd
17792 \end_inset
17793
17794  expected, found 
17795 \begin_inset Quotes eld
17796 \end_inset
17797
17798
17799 \family typewriter
17800 %s
17801 \family default
17802
17803 \begin_inset Quotes erd
17804 \end_inset
17805
17806 .
17807 \end_layout
17808
17809 \begin_layout Enumerate
17810
17811 \size small
17812 Solo 
17813 \begin_inset Quotes eld
17814 \end_inset
17815
17816
17817 \family typewriter
17818 %s
17819 \family default
17820
17821 \begin_inset Quotes erd
17822 \end_inset
17823
17824  found.
17825 \end_layout
17826
17827 \begin_layout Enumerate
17828
17829 \size small
17830 You should use 
17831 \begin_inset Quotes eld
17832 \end_inset
17833
17834
17835 \family typewriter
17836 %s
17837 \family default
17838
17839 \begin_inset Quotes erd
17840 \end_inset
17841
17842  to achieve an ellipsis.
17843 \end_layout
17844
17845 \begin_layout Enumerate
17846
17847 \size small
17848 Inter-word spacing (
17849 \begin_inset Quotes eld
17850 \end_inset
17851
17852
17853 \family typewriter
17854
17855 \backslash
17856
17857 \family default
17858  
17859 \begin_inset Quotes eld
17860 \end_inset
17861
17862 ) should perhaps be used.
17863 \end_layout
17864
17865 \begin_layout Enumerate
17866
17867 \size small
17868 Inter-sentence spacing (
17869 \begin_inset Quotes eld
17870 \end_inset
17871
17872
17873 \family typewriter
17874
17875 \backslash
17876 @
17877 \family default
17878
17879 \begin_inset Quotes erd
17880 \end_inset
17881
17882 ) should perhaps be used.
17883 \end_layout
17884
17885 \begin_layout Enumerate
17886
17887 \size small
17888 Could not find argument for command.
17889 \end_layout
17890
17891 \begin_layout Enumerate
17892
17893 \size small
17894 No match found for 
17895 \begin_inset Quotes eld
17896 \end_inset
17897
17898
17899 \family typewriter
17900 %s
17901 \family default
17902
17903 \begin_inset Quotes erd
17904 \end_inset
17905
17906 .
17907 \end_layout
17908
17909 \begin_layout Enumerate
17910
17911 \size small
17912 Math mode still on at end of \SpecialChar LaTeX
17913  file.
17914 \end_layout
17915
17916 \begin_layout Enumerate
17917
17918 \size small
17919 Number of 
17920 \begin_inset Quotes eld
17921 \end_inset
17922
17923
17924 \family typewriter
17925 char
17926 \family default
17927
17928 \begin_inset Quotes erd
17929 \end_inset
17930
17931  doesn't match the number of 
17932 \begin_inset Quotes eld
17933 \end_inset
17934
17935
17936 \family typewriter
17937 char
17938 \family default
17939
17940 \begin_inset Quotes erd
17941 \end_inset
17942
17943 .
17944 \end_layout
17945
17946 \begin_layout Enumerate
17947
17948 \size small
17949 You should use either 
17950 \family typewriter
17951
17952 \begin_inset Quotes eld
17953 \end_inset
17954
17955
17956 \family default
17957  or 
17958 \family typewriter
17959
17960 \begin_inset Quotes erd
17961 \end_inset
17962
17963
17964 \family default
17965  as an alternative to 
17966 \begin_inset Quotes eld
17967 \end_inset
17968
17969
17970 \family typewriter
17971 "
17972 \family default
17973
17974 \begin_inset Quotes erd
17975 \end_inset
17976
17977 .
17978 \end_layout
17979
17980 \begin_layout Enumerate
17981
17982 \size small
17983 You should use "
17984 \family typewriter
17985 '
17986 \family default
17987 " (ASCII 39) instead of "" (ASCII 180).
17988 \end_layout
17989
17990 \begin_layout Enumerate
17991
17992 \size small
17993 User-specified pattern found.
17994 \end_layout
17995
17996 \begin_layout Enumerate
17997
17998 \size small
17999 This command might not be intended.
18000 \end_layout
18001
18002 \begin_layout Enumerate
18003
18004 \size small
18005 \emph on
18006 Comment displayed.
18007 \end_layout
18008
18009 \begin_layout Enumerate
18010
18011 \size small
18012 Either 
18013 \family typewriter
18014 ''
18015 \backslash
18016 ,'
18017 \family default
18018  or 
18019 \family typewriter
18020 '
18021 \backslash
18022 ,''
18023 \family default
18024  will look better.
18025 \end_layout
18026
18027 \begin_layout Enumerate
18028
18029 \size small
18030 Delete this space to maintain correct page references.
18031 \end_layout
18032
18033 \begin_layout Enumerate
18034
18035 \size small
18036 \emph on
18037 You might wish to put this between a pair of 
18038 \begin_inset Quotes eld
18039 \end_inset
18040
18041
18042 \family typewriter
18043 {}
18044 \family default
18045
18046 \begin_inset Quotes erd
18047 \end_inset
18048
18049 .
18050 \end_layout
18051
18052 \begin_layout Enumerate
18053
18054 \size small
18055 You ought to remove spaces in front of punctuation.
18056 \end_layout
18057
18058 \begin_layout Enumerate
18059
18060 \size small
18061 Could not execute \SpecialChar LaTeX
18062  command.
18063 \end_layout
18064
18065 \begin_layout Enumerate
18066
18067 \size small
18068 Don't use 
18069 \family typewriter
18070
18071 \backslash
18072 /
18073 \family default
18074  in front of small punctuation.
18075 \end_layout
18076
18077 \begin_layout Enumerate
18078
18079 \family typewriter
18080 \size small
18081 $
18082 \backslash
18083 times$
18084 \family default
18085  may look prettier here.
18086 \end_layout
18087
18088 \begin_layout Enumerate
18089
18090 \size small
18091 \emph on
18092 Multiple spaces detected in output.
18093 \end_layout
18094
18095 \begin_layout Enumerate
18096
18097 \size small
18098 This text may be ignored.
18099 \end_layout
18100
18101 \begin_layout Enumerate
18102
18103 \size small
18104 Use 
18105 \family typewriter
18106
18107 \begin_inset Quotes eld
18108 \end_inset
18109
18110
18111 \family default
18112  to begin quotation, not 
18113 \family typewriter
18114 '
18115 \family default
18116 .
18117 \end_layout
18118
18119 \begin_layout Enumerate
18120
18121 \size small
18122 Use 
18123 \family typewriter
18124 '
18125 \family default
18126  to end quotation, not 
18127 \family typewriter
18128
18129 \begin_inset Quotes eld
18130 \end_inset
18131
18132
18133 \family default
18134 .
18135 \end_layout
18136
18137 \begin_layout Enumerate
18138
18139 \size small
18140 Don't mix quotes.
18141 \end_layout
18142
18143 \begin_layout Enumerate
18144
18145 \size small
18146 You should perhaps use 
18147 \begin_inset Quotes eld
18148 \end_inset
18149
18150
18151 \family typewriter
18152 cmd
18153 \family default
18154
18155 \begin_inset Quotes erd
18156 \end_inset
18157
18158  instead.
18159 \end_layout
18160
18161 \begin_layout Enumerate
18162
18163 \size small
18164 You should put a space in front of/after parenthesis.
18165 \end_layout
18166
18167 \begin_layout Enumerate
18168
18169 \size small
18170 You should avoid spaces in front of/after parenthesis.
18171 \end_layout
18172
18173 \begin_layout Enumerate
18174
18175 \size small
18176 \emph on
18177 You should not use punctuation in front of/after quotes.
18178 \end_layout
18179
18180 \begin_layout Enumerate
18181
18182 \size small
18183 Double space found.
18184 \end_layout
18185
18186 \begin_layout Enumerate
18187
18188 \size small
18189 You should put punctuation outside inner/inside display math mode.
18190 \end_layout
18191
18192 \begin_layout Enumerate
18193
18194 \size small
18195 You ought to not use primitive \SpecialChar TeX
18196  in \SpecialChar LaTeX
18197  code.
18198 \end_layout
18199
18200 \begin_layout Enumerate
18201
18202 \size small
18203 You should remove spaces in front of 
18204 \begin_inset Quotes eld
18205 \end_inset
18206
18207
18208 \family typewriter
18209 %s
18210 \family default
18211
18212 \begin_inset Quotes erd
18213 \end_inset
18214
18215
18216 \end_layout
18217
18218 \begin_layout Enumerate
18219
18220 \size small
18221 \begin_inset Quotes eld
18222 \end_inset
18223
18224
18225 \family typewriter
18226 %s
18227 \family default
18228
18229 \begin_inset Quotes erd
18230 \end_inset
18231
18232  is normally not followed by 
18233 \begin_inset Quotes eld
18234 \end_inset
18235
18236
18237 \family typewriter
18238 %c
18239 \family default
18240
18241 \begin_inset Quotes erd
18242 \end_inset
18243
18244 .
18245 \end_layout
18246
18247 \begin_layout Standard
18248 \SpecialChar LyX
18249 の将来の版では,このツール(およびその縮小版
18250 \family typewriter
18251 lacheck
18252 \family default
18253 )の力を最大限引き出すように,より完備したインターフェイスを提供できればと考えています.しかし,現状でも十分に役立つものとなっています.ある程度長さがある既存文
18254 書に使用してみていただければ,きっと驚かれることでしょう.
18255 \end_layout
18256
18257 \begin_layout Section
18258 \SpecialChar LyX
18259 でのバージョン管理
18260 \end_layout
18261
18262 \begin_layout Standard
18263
18264 \noun on
18265 Lars Bullik Bjønnes
18266 \noun default
18267 および
18268 \noun on
18269 Pavel Sanda
18270 \noun default
18271
18272 \end_layout
18273
18274 \begin_layout Subsection
18275 はじめに
18276 \end_layout
18277
18278 \begin_layout Standard
18279 \SpecialChar LyX
18280 は,今ではもっとも基本的なRCS/CVS/SVN/GITコマンドをサポートしています.もしもっと洗練されたことを行いたい場合には,ターミナル上から手動で行う必要
18281 があります.
18282 \end_layout
18283
18284 \begin_layout Standard
18285 また,CVSのサポートは,subversionのサポートほど良くないので,CVSよりもSVNを使うことをお勧めします.Subversionを学び始めるには,SV
18286 N Book
18287 \begin_inset Foot
18288 status collapsed
18289
18290 \begin_layout Plain Layout
18291 \begin_inset CommandInset href
18292 LatexCommand href
18293 target "http://svnbook.red-bean.com/"
18294
18295 \end_inset
18296
18297
18298 \end_layout
18299
18300 \end_inset
18301
18302 が良いでしょう.RCSの場合は,「rsintro」をお読みください(これはmanファイルです.
18303 \family typewriter
18304 man rcsintro
18305 \family default
18306 で読めます).このファイルは,RCSの基本機能のすべてを説明しています.特に,RCSディレクトリに関するコメントと,マスターRCSファイル(
18307 \family typewriter
18308 ,v
18309 \family default
18310 で終わるファイルです)の概念に注意を払ってください.
18311 \end_layout
18312
18313 \begin_layout Standard
18314 \SpecialChar LyX
18315 で実際にバージョン管理機能を使い始める前に,RCS/CVS/SVN/GITの使用法に習熟しておかなくてはなりません.\SpecialChar LyX
18316 で\SpecialChar LyX
18317 への実装においては,GNU
18318  RCSまたはCVS/SVNパッケージの最新版を仮定しています.旧版への保証はありません.ログメッセージのほとんどは,現在のところ操作後には表示されません.確認
18319 したい場合には,メッセージ面で確かめてください.バージョン管理を常用するユーザーには,VCツールバーが便利でしょう.これは
18320 \family sans
18321 表示\SpecialChar menuseparator
18322 ツールバー\SpecialChar menuseparator
18323 バージョン管理
18324 \family default
18325 で有効にできます.
18326 \end_layout
18327
18328 \begin_layout Standard
18329 自製の外部コマンドを導入したい場合には,\SpecialChar LyX
18330 関数説明書のvcコマンドを確認してください.
18331 \end_layout
18332
18333 \begin_layout Standard
18334 バージョン管理機能を使用している場合には,文書を非圧縮形式で保存をすることを強く推奨します(
18335 \family sans
18336 文書\SpecialChar menuseparator
18337 圧縮
18338 \family default
18339 にチェックが入っていれば外してください).非圧縮LyX文書はテキストファイルであるため,バージョン管理システムが,二つのバージョンをマージすることができます.一
18340 方,圧縮LyXファイルはバイナリファイルであるため,バージョン管理システムはマージすることができません.
18341 \end_layout
18342
18343 \begin_layout Subsection
18344 \SpecialChar LyX
18345 におけるRCSコマンド
18346 \end_layout
18347
18348 \begin_layout Standard
18349 以下の節では\SpecialChar LyX
18350 でサポートされているRCSコマンドを説明します.それらのコマンドは
18351 \family sans
18352 ファイル\SpecialChar menuseparator
18353 バージョン管理
18354 \family default
18355 のサブメニューにあります.\SpecialChar LyX
18356 は,RCS 5.7/5.8に対して試験されています.
18357 \end_layout
18358
18359 \begin_layout Subsubsection
18360
18361 \family sans
18362 登録
18363 \end_layout
18364
18365 \begin_layout Standard
18366 文書がバージョン管理の下にない場合には,これがメニューにあらわれる唯一の項目です.文書がバージョン管理下にあれば,項目
18367 \family sans
18368 登録
18369 \family default
18370 は不可視になります.
18371 \end_layout
18372
18373 \begin_layout Standard
18374 このコマンドは,文書をRCSに登録します(CVSが管理しているディレクトリ下にない場合).すると対話的に,文書の最初の説明を入力するように尋ねられます.すると文
18375 書は読み込み専用モードになるので,変更を加えるためには
18376 \family sans
18377 チェックアウトして編集
18378 \family default
18379 を実行する必要があります.バージョン管理下にある文書は,ミニバッファのファイル名の後ろに「 [RCS:<バージョン> <ロック>]」という項目が表示されます.
18380 \end_layout
18381
18382 \begin_layout Standard
18383 実行されるRCSコマンドは:
18384 \family typewriter
18385
18386 \begin_inset Newline newline
18387 \end_inset
18388
18389 ci -q -u -i -t-"<初期説明文>" <ファイル名>
18390 \end_layout
18391
18392 \begin_layout Standard
18393 スイッチについて知りたい場合は,
18394 \family typewriter
18395 man ci
18396 \family default
18397 を読んでください.
18398 \end_layout
18399
18400 \begin_layout Subsubsection
18401
18402 \family sans
18403 変更をチェックインする
18404 \end_layout
18405
18406 \begin_layout Standard
18407 ファイルの編集が終わると,その変更をチェックインします.このとき,変更についての説明文を求められます.これは履歴ログに記録されます.バージョン番号は繰り上がり,
18408 変更がマスターRCSファイルに適用され,文書がアンロックされて読み込み専用モードになります.
18409 \end_layout
18410
18411 \begin_layout Standard
18412 RCSコマンド:
18413 \family typewriter
18414 ci -q -u -m"<説明文>" <ファイル名>
18415 \end_layout
18416
18417 \begin_layout Subsubsection
18418
18419 \family sans
18420 チェックアウトして編集
18421 \end_layout
18422
18423 \begin_layout Standard
18424 これは,文書をロックして編集できるようにします.そしてあなただけが文書を読み書きできるようにします.通常は,しばらくの間,文書を編集し,それが終わると変更をチェ
18425 ックインします.あなたがファイルをロックしたことを反映して,ステータスラインが変わります.
18426 \end_layout
18427
18428 \begin_layout Standard
18429 RCSコマンド:
18430 \family typewriter
18431 co -q -l <ファイル名>
18432 \end_layout
18433
18434 \begin_layout Subsubsection
18435
18436 \family sans
18437 リポジトリのバージョンに戻す
18438 \end_layout
18439
18440 \begin_layout Standard
18441 これは,最終チェックイン以降,文書に加えられた変更をすべて破棄します.変更が破棄される前に,警告が発せられます.
18442 \end_layout
18443
18444 \begin_layout Standard
18445 RCSコマンド:
18446 \family typewriter
18447 co -f -u<バージョン> <ファイル名>
18448 \end_layout
18449
18450 \begin_layout Subsubsection
18451
18452 \family sans
18453 コピー
18454 \end_layout
18455
18456 \begin_layout Standard
18457 これは,現行文書のコピーを生成します.RCSは,コピー操作を自前ではサポートしませんので,バージョン履歴には保存されず,新コピーは新規ファイルとして追加されます
18458 .最後のチェックイン以降,変更が加えられていないサラの文書であることが要求されます.ファイル名とコピー操作の説明を入力するように促され,その後,新コピーがローカ
18459 ルとリポジトリの両方に生成されます.コピーされた文書と元の文書の親ディレクトリが異なる場合には,コピーにインクルードされたファイルの相対パスは,(
18460 \family sans
18461 ファイル\SpecialChar menuseparator
18462 名前をつけて保存\SpecialChar ldots
18463
18464 \family default
18465 と同様に)全て調整されます.最後に,元の文書の代わりに,コピーされたファイルが読み込まれます.
18466 \end_layout
18467
18468 \begin_layout Labeling
18469 \labelwidthstring 00.00.0000
18470 RCSコマンド:
18471 \begin_inset Flex Code
18472 status collapsed
18473
18474 \begin_layout Plain Layout
18475 "ファイル名"
18476 \end_layout
18477
18478 \end_inset
18479
18480
18481 \family typewriter
18482 "新ファイル名"
18483 \family default
18484 にコピーする場合
18485 \end_layout
18486
18487 \begin_layout Labeling
18488 \labelwidthstring 00.00.0000
18489 \begin_inset Flex Code
18490 status collapsed
18491
18492 \begin_layout Plain Layout
18493 ci -q -u -i "<新ファイル名>"
18494 \end_layout
18495
18496 \end_inset
18497
18498
18499 \end_layout
18500
18501 \begin_layout Subsubsection
18502
18503 \family sans
18504 最後のチェックインを取り消す
18505 \end_layout
18506
18507 \begin_layout Standard
18508 これは,最後のチェックインがあたかも為されなかったかのようにします.\SpecialChar LyX
18509 に読み込まれた文書に変更は加えられませんが,マスターRCSファイルから最後のバージョンが削除
18510 されます.
18511 \end_layout
18512
18513 \begin_layout Standard
18514 RCSコマンド:
18515 \family typewriter
18516 rcs -o<バージョン> <ファイル名>
18517 \end_layout
18518
18519 \begin_layout Subsubsection
18520
18521 \family sans
18522 履歴を表示
18523 \end_layout
18524
18525 \begin_layout Standard
18526 RCS文書の完全な履歴を表示します.ブラウザ中に,
18527 \family typewriter
18528 rlog <ファイル名>
18529 \family default
18530 の出力が表示されます.詳細は
18531 \family typewriter
18532 man rlog
18533 \family default
18534 をご覧ください.
18535 \end_layout
18536
18537 \begin_layout Subsubsection
18538 改訂情報
18539 \end_layout
18540
18541 \begin_layout Standard
18542 \SpecialChar LyX
18543 は,RCSバージョン番号情報(のみ)をサポートしています.詳細については,
18544 \begin_inset CommandInset ref
18545 LatexCommand ref
18546 reference "subsec:VCS改訂情報"
18547
18548 \end_inset
18549
18550 を参照.
18551 \end_layout
18552
18553 \begin_layout Subsection
18554 \SpecialChar LyX
18555 におけるCVSコマンド
18556 \end_layout
18557
18558 \begin_layout Standard
18559 \SpecialChar LyX
18560 は,現在CVSを一部サポートしています.そのコマンドは,
18561 \family sans
18562 ファイル\SpecialChar menuseparator
18563 バージョン管理
18564 \family default
18565 サブメニューにあります.バージョン管理システムSVNの方が強力なので,可能ならばCVSではなく,SVNを使用してください.
18566 \end_layout
18567
18568 \begin_layout Subsubsection
18569 CVSの一般的な利用法
18570 \end_layout
18571
18572 \begin_layout Standard
18573 CVSを初めて使いたい場合には,外部ツールを使用して自分のレポジトリを作成し,作業コピーをチェックアウトする必要があります.クライアント=サーバーモデルを使用し
18574 ている場合には,最初のレポジトリチェックアウトを行う前にログインする必要があるかもしれません.
18575 \end_layout
18576
18577 \begin_layout Standard
18578 改訂管理下にある文書のレポジトリを他人も利用している場合に,同一文書の同一箇所に別々の変更を加えてしまうと問題が発生します.標準的なCVSレポジトリは,ファイル
18579 ロッキング機構を有しません.これは驚くべきことかもしれませんが,コンフリクトは,文書の同じ箇所の特定の内容について,人々が意見を異にしている場合にのみ発生します
18580 .したがって,共著者同士がコンスタントにコミュニケーションを交わしていれば,このようなコンフリクトは滅多に発生しません.もしコミュニケーションがなければ,いずれ
18581 にしても根本的な問題があるわけです.それにもかかわらず,いわゆる「予備付きチェックアウト」を使用したいと思う人々もいます.この場合,最初にチェックアウトした際に
18582 ,全ファイルの作業コピーは読み込み専用にされ,ユーザーは,作業コピーを書き込み可能にする特別なコマンドを使用した後,編集を開始することになります.変更をチェック
18583 インすると,作業コピーは読み込み専用状態に戻ります.\SpecialChar LyX
18584 で予備付きチェックアウトを利用したい場合には,
18585 \begin_inset Flex Code
18586 status collapsed
18587
18588 \begin_layout Plain Layout
18589 .cvsrc
18590 \end_layout
18591
18592 \end_inset
18593
18594 ファイルを編集して,
18595 \begin_inset Flex Code
18596 status collapsed
18597
18598 \begin_layout Plain Layout
18599 cvs -r
18600 \end_layout
18601
18602 \end_inset
18603
18604 という行を書き加える必要があります.この方法の利点は,文書のうち,書き込み可能コピーを誰が使用しているかを見ることができることです.ただし,一人のユーザーだけが
18605 コピーを書き込み可能にしているとは限りません.
18606 \end_layout
18607
18608 \begin_layout Standard
18609 \SpecialChar LyX
18610 は,あなたが予備付きチェックアウトを使用しているか,予備なしチェックアウトを利用しているか,推測しようと試みます.使用中の作業コピーが読み込み専用になっているか
18611 ,あるいはそれが書き込み可能であって,CVS/Baseサブディレクトリに使用中文書のコピーが存在している場合には,予備付きチェックアウトを使用しているものと仮定
18612 し,そうでない場合には予備なしチェックアウトを使用しているものと仮定します.予備付きチェックアウトが検出された場合には,作業コピーが読み込み専用の場合に書き込み
18613 可能にするためには,
18614 \begin_inset Flex MenuItem
18615 status collapsed
18616
18617 \begin_layout Plain Layout
18618 チェックアウト
18619 \end_layout
18620
18621 \end_inset
18622
18623 メニューを使用しなくてはなりません.その後,
18624 \begin_inset Flex MenuItem
18625 status collapsed
18626
18627 \begin_layout Plain Layout
18628 チェックイン
18629 \end_layout
18630
18631 \end_inset
18632
18633 メニューが利用可能になるので,自分が加えた変更をリポジトリに移した後,作業コピーを再び読み込み専用にする際には,これを使用します.
18634 \end_layout
18635
18636 \begin_layout Standard
18637 CVSの詳細な情報は,
18638 \begin_inset Flex URL
18639 status collapsed
18640
18641 \begin_layout Plain Layout
18642
18643 http://www.nongnu.org/cvs
18644 \end_layout
18645
18646 \end_inset
18647
18648
18649 \begin_inset Flex URL
18650 status collapsed
18651
18652 \begin_layout Plain Layout
18653
18654 http://ximbiot.com/cvs
18655 \end_layout
18656
18657 \end_inset
18658
18659 にあります.
18660 \end_layout
18661
18662 \begin_layout Standard
18663 以下に言及するサブコマンドとスイッチを理解するには,
18664 \family typewriter
18665 man cvs
18666 \family default
18667 をお読みください.
18668 \end_layout
18669
18670 \begin_layout Subsubsection
18671 登録
18672 \end_layout
18673
18674 \begin_layout Standard
18675 お使いの文書が改訂管理下に置かれていなければ,メニューにはこの項目だけが表示されます.もし改訂管理が有効ならば,
18676 \family sans
18677 登録
18678 \family default
18679 項目は表示されません.
18680 \end_layout
18681
18682 \begin_layout Standard
18683 本コマンドは,既に文書ディレクトリをCVS管理下に置いている場合に
18684 \series bold
18685 \emph on
18686 のみ
18687 \series default
18688 \emph default
18689 (すなわち
18690 \begin_inset Flex Code
18691 status collapsed
18692
18693 \begin_layout Plain Layout
18694 CVS/Entries
18695 \end_layout
18696
18697 \end_inset
18698
18699 ファイルが存在する場合にのみ),お使いの文書をCVSに登録します.つまり,外部ツールを使用して,アーカイブを自分で作成ないしチェックアウトしなくてはならないこと
18700 を意味します(このステップを忘れてしまうと,\SpecialChar LyX
18701 は文書をRCSに登録します).
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 add -m"<入力した説明文>" "<ファイル名>"
18712 \family default
18713  です.
18714 \end_layout
18715
18716 \begin_layout Standard
18717 上記および他のすべてのCVSコマンドにおける
18718 \family typewriter
18719 "<ファイル名>"
18720 \family default
18721 は,「カレント作業ディレクトリをファイルの場所に移動し,パスコンポーネントを除いたファイル名を引数として使用する」という意味になります.
18722 \end_layout
18723
18724 \begin_layout Subsubsection
18725 変更のチェックイン
18726 \end_layout
18727
18728 \begin_layout Standard
18729 ファイルの編集を終えたら,変更をコミットします.このとき,文書に変更が加えられていれば,変更の説明文を入れるよう促されます.その後,変更がレポジトリに書き込まれ
18730 ます.文書を変更せず,予備付きチェックアウトが検出された場合,
18731 \begin_inset Flex MenuItem
18732 status collapsed
18733
18734 \begin_layout Plain Layout
18735 チェックアウト
18736 \end_layout
18737
18738 \end_inset
18739
18740 で作られた予備は取り消されます.
18741 \end_layout
18742
18743 \begin_layout Labeling
18744 \labelwidthstring 00.00.0000
18745 CVSコマンド: 
18746 \begin_inset space ~
18747 \end_inset
18748
18749
18750 \begin_inset Newline newline
18751 \end_inset
18752
18753
18754 \begin_inset Flex Code
18755 status collapsed
18756
18757 \begin_layout Plain Layout
18758 cvs -q commit -m"<入力した説明文>" "<ファイル名>"
18759 \end_layout
18760
18761 \end_inset
18762
18763 あるいは
18764 \begin_inset Newline newline
18765 \end_inset
18766
18767
18768 \begin_inset Flex Code
18769 status collapsed
18770
18771 \begin_layout Plain Layout
18772 cvs -q unedit "<ファイル名>"
18773 \end_layout
18774
18775 \end_inset
18776
18777
18778 \end_layout
18779
18780 \begin_layout Subsubsection
18781 変更のチェックアウト
18782 \end_layout
18783
18784 \begin_layout Standard
18785 レポジトリを他人と共有している場合,他人の加えた変更を自らの作業コピーに取り込まなくてはならないことがあります.
18786 \end_layout
18787
18788 \begin_layout Standard
18789 CVSコマンド:
18790 \family typewriter
18791 cvs -q update "<ファイル名>"
18792 \end_layout
18793
18794 \begin_layout Standard
18795 読み込み専用チェックアウトが検出された場合,作業コピーを書き込み可能にし予備を作成します.
18796 \end_layout
18797
18798 \begin_layout Standard
18799 CVSコマンド:
18800 \family typewriter
18801 cvs -q edit "<ファイル名>"
18802 \end_layout
18803
18804 \begin_layout Subsubsection
18805 レポジトリ版に戻す
18806 \end_layout
18807
18808 \begin_layout Standard
18809 これは,最後のチェックイン以降,文書に加えられた変更をすべて廃棄します.変更が廃棄される前に警告が表示されます.最初にファイルが削除され,次にCVS更新コマンド
18810 が実行されます.
18811 \end_layout
18812
18813 \begin_layout Standard
18814 CVSコマンド:
18815 \family typewriter
18816 cvs -q update "<ファイル名>"
18817 \end_layout
18818
18819 \begin_layout Standard
18820 予備付きチェックアウトが検出され,作業コピーに変更がない場合,予備のみが取り消されます.
18821 \end_layout
18822
18823 \begin_layout Standard
18824 CVSコマンド:
18825 \family typewriter
18826 cvs -q unedit "<ファイル名>"
18827 \end_layout
18828
18829 \begin_layout Subsubsection
18830
18831 \family sans
18832 コピー
18833 \end_layout
18834
18835 \begin_layout Standard
18836 これは,現行文書のコピーを生成します.CVSは,コピー操作を自前ではサポートしませんので,バージョン履歴には保存されず,新コピーは新規ファイルとして追加されます
18837 .最後のチェックイン以降,変更が加えられていないサラの文書であることが要求されます.ファイル名とコピー操作の説明を入力するように促され,その後,新コピーがローカ
18838 ルとリポジトリの両方に生成されます.コピーされた文書と元の文書の親ディレクトリが異なる場合には,コピーにインクルードされたファイルの相対パスは,(
18839 \family sans
18840 ファイル\SpecialChar menuseparator
18841 名前をつけて保存\SpecialChar ldots
18842
18843 \family default
18844 と同様に)全て調整されます.最後に,元の文書の代わりに,コピーされたファイルが読み込まれます.
18845 \end_layout
18846
18847 \begin_layout Labeling
18848 \labelwidthstring 00.00.0000
18849 CVSコマンド:
18850 \end_layout
18851
18852 \begin_layout Labeling
18853 \labelwidthstring 00.00.0000
18854 \begin_inset Flex Code
18855 status collapsed
18856
18857 \begin_layout Plain Layout
18858 "ファイル名"
18859 \end_layout
18860
18861 \end_inset
18862
18863
18864 \begin_inset Flex Code
18865 status collapsed
18866
18867 \begin_layout Plain Layout
18868 "新ファイル名"
18869 \end_layout
18870
18871 \end_inset
18872
18873 にコピーする場合
18874 \end_layout
18875
18876 \begin_layout Labeling
18877 \labelwidthstring 00.00.0000
18878 \begin_inset Flex Code
18879 status collapsed
18880
18881 \begin_layout Plain Layout
18882 cvs -q add "<新ファイル名>"
18883 \end_layout
18884
18885 \end_inset
18886
18887
18888 \end_layout
18889
18890 \begin_layout Subsubsection
18891 ファイル名変更
18892 \end_layout
18893
18894 \begin_layout Standard
18895 これは,現行文書のファイル名を変更します.CVSは,ファイル名変更操作を自前ではサポートしませんので,バージョン履歴には保存されず,名称変更後のファイルは,新規
18896 ファイルとして追加されます.最後のチェックイン以降,変更が加えられていないサラの文書であることが要求されます.ファイル名とコピー操作の説明を入力するように促され
18897 ,その後,ローカルとリポジトリの両方でファイル名が変更されます.新旧ファイル名の文書の親ディレクトリが異なる場合には,コピーにインクルードされたファイルの相対パ
18898 スは,(
18899 \family sans
18900 ファイル\SpecialChar menuseparator
18901 名前をつけて保存\SpecialChar ldots
18902
18903 \family default
18904 と同様に)全て調整されます.最後に,新ファイル名を使ってファイルが再度読み込まれます.
18905 \end_layout
18906
18907 \begin_layout Labeling
18908 \labelwidthstring 00.00.0000
18909 CVSコマンド:
18910 \end_layout
18911
18912 \begin_layout Labeling
18913 \labelwidthstring 00.00.0000
18914 \begin_inset Flex Code
18915 status collapsed
18916
18917 \begin_layout Plain Layout
18918 "ファイル名"
18919 \end_layout
18920
18921 \end_inset
18922
18923
18924 \begin_inset Flex Code
18925 status collapsed
18926
18927 \begin_layout Plain Layout
18928 "新ファイル名"
18929 \end_layout
18930
18931 \end_inset
18932
18933 に変更する場合
18934 \end_layout
18935
18936 \begin_layout Labeling
18937 \labelwidthstring 00.00.0000
18938 \begin_inset Flex Code
18939 status collapsed
18940
18941 \begin_layout Plain Layout
18942 cvs -q add "<新ファイル名>"
18943 \end_layout
18944
18945 \end_inset
18946
18947
18948 \end_layout
18949
18950 \begin_layout Labeling
18951 \labelwidthstring 00.00.0000
18952 \begin_inset Flex Code
18953 status collapsed
18954
18955 \begin_layout Plain Layout
18956 cvs -q remove "<ファイル名>"
18957 \end_layout
18958
18959 \end_inset
18960
18961
18962 \end_layout
18963
18964 \begin_layout Subsubsection
18965 ローカルディレクトリチェックアウトのレポジトリからの更新
18966 \end_layout
18967
18968 \begin_layout Standard
18969 子文書や図を含んだり,外部
18970 \begin_inset Flex Code
18971 status collapsed
18972
18973 \begin_layout Plain Layout
18974 .tex
18975 \end_layout
18976
18977 \end_inset
18978
18979 ファイルを取り込むなど,文書が複雑になるにつれ,バージョン管理の利用は複雑になります.\SpecialChar LyX
18980 は,文書が存在するツリー全体の更新をサポートします.これは,CVSの使用法
18981 について詳しい知識のない人々や,レポジトリに追加素材をコミットする野望のない人々と共同作業をするような場合に,特に便利です.ファイル構造は,すべての外部ファイル
18982 が,文書と同じディレクトリかそのサブディレクトリに来るように組織する必要があります.いずれにしても,複合文書を新しいディレクトリを建てて収容するのは,望ましい習
18983 慣です.
18984 \end_layout
18985
18986 \begin_layout Standard
18987 コマンド
18988 \begin_inset Flex Code
18989 status collapsed
18990
18991 \begin_layout Plain Layout
18992 レポジトリを使ってローカル辞書を更新
18993 \end_layout
18994
18995 \end_inset
18996
18997 は,ディレクトリ全体を更新します.ローカルの変更が検出された場合には,更新を開始する前にユーザーに警告が発せられます.マージコンフリクトが発生した場合には,コン
18998 フリクトを起こしている部分の新旧バージョンが,両方とも最終文書に置かれますので,マージの結果を見直し,修正する必要があります.コンフリクトは,
18999 \begin_inset Flex Code
19000 status collapsed
19001
19002 \begin_layout Plain Layout
19003 <<<<<<<
19004 \end_layout
19005
19006 \end_inset
19007
19008
19009 \begin_inset Flex Code
19010 status collapsed
19011
19012 \begin_layout Plain Layout
19013 >>>>>>>
19014 \end_layout
19015
19016 \end_inset
19017
19018 の対に囲まれ,
19019 \begin_inset Flex Code
19020 status collapsed
19021
19022 \begin_layout Plain Layout
19023 =======
19024 \end_layout
19025
19026 \end_inset
19027
19028 で区切られて表示されます.最初の部分は,文書名に続いて,更新操作前のバージョンが置かれています.第2の部分は,
19029 \begin_inset Flex Code
19030 status collapsed
19031
19032 \begin_layout Plain Layout
19033 >
19034 \end_layout
19035
19036 \end_inset
19037
19038 記号列の後にバージョン番号に続いて,レポジトリ版が置かれます.
19039 \end_layout
19040
19041 \begin_layout Labeling
19042 \labelwidthstring 00.00.0000
19043 CVSコマンド: 
19044 \begin_inset space ~
19045 \end_inset
19046
19047
19048 \begin_inset Newline newline
19049 \end_inset
19050
19051
19052 \begin_inset Flex Code
19053 status collapsed
19054
19055 \begin_layout Plain Layout
19056 cd $path; cvs diff "."
19057 \end_layout
19058
19059 \end_inset
19060
19061 (変更が検出された場合には知らせる)
19062 \begin_inset Newline newline
19063 \end_inset
19064
19065
19066 \begin_inset Flex Code
19067 status collapsed
19068
19069 \begin_layout Plain Layout
19070 cd $path; cvs -q update "."
19071 \end_layout
19072
19073 \end_inset
19074
19075
19076 \end_layout
19077
19078 \begin_layout Standard
19079 ここで
19080 \begin_inset Flex Code
19081 status collapsed
19082
19083 \begin_layout Plain Layout
19084 $path
19085 \end_layout
19086
19087 \end_inset
19088
19089 は文書パスを表します.
19090 \end_layout
19091
19092 \begin_layout Subsubsection
19093 履歴を表示
19094 \end_layout
19095
19096 \begin_layout Standard
19097 これは,CVS文書の全履歴を表示します.
19098 \begin_inset Flex Code
19099 status collapsed
19100
19101 \begin_layout Plain Layout
19102 cvs log 
19103 \begin_inset Quotes eld
19104 \end_inset
19105
19106 <ファイル名>
19107 \begin_inset Quotes erd
19108 \end_inset
19109
19110
19111 \end_layout
19112
19113 \end_inset
19114
19115 の出力がブラウザに表示されます.
19116 \end_layout
19117
19118 \begin_layout Subsubsection
19119 改訂情報
19120 \end_layout
19121
19122 \begin_layout Standard
19123 \SpecialChar LyX
19124 は,CVS版数・著者名・最終コミットの日時をサポートします.これらの情報は,すべて
19125 \family typewriter
19126 cvs log -r <ファイル名>
19127 \family default
19128 によって抽出されます.詳細については,第
19129 \begin_inset CommandInset ref
19130 LatexCommand ref
19131 reference "subsec:VCS改訂情報"
19132
19133 \end_inset
19134
19135 節を参照してください.
19136 \end_layout
19137
19138 \begin_layout Subsection
19139 \SpecialChar LyX
19140 におけるSVNコマンド
19141 \end_layout
19142
19143 \begin_layout Standard
19144 \SpecialChar LyX
19145 は,現在SVNを一部サポートしています.そのコマンドは,
19146 \begin_inset Flex MenuItem
19147 status collapsed
19148
19149 \begin_layout Plain Layout
19150 ファイル\SpecialChar menuseparator
19151 バージョン管理
19152 \end_layout
19153
19154 \end_inset
19155
19156 メニューにあります.レポジトリへのアクセスに,ssh経由のパスワード保護アクセスを使用している場合には,端末ウィンドウでの入力を促されます.\SpecialChar LyX
19157 は,SVN
19158  1.5および1.6に対して試験されています.
19159 \end_layout
19160
19161 \begin_layout Subsubsection
19162 登録
19163 \end_layout
19164
19165 \begin_layout Standard
19166 お使いの文書が改訂管理下に置かれていなければ,メニューにはこの項目だけが表示されます.もし改訂管理が有効ならば,
19167 \family sans
19168 登録
19169 \family default
19170 項目は表示されません.
19171 \end_layout
19172
19173 \begin_layout Standard
19174 本コマンドは,既に文書のあるディレクトリをSVN管理下に置いている場合に
19175 \emph on
19176 のみ
19177 \emph default
19178 (すなわち
19179 \begin_inset Flex Code
19180 status collapsed
19181
19182 \begin_layout Plain Layout
19183 .svn/entries
19184 \end_layout
19185
19186 \end_inset
19187
19188 ファイルが存在する場合にのみ),お使いの文書をSVNに登録します.つまり,アーカイブはご自分でチェックアウトしなくてはなりません.
19189 \end_layout
19190
19191 \begin_layout Standard
19192 すると,文書の最初の説明文を入力するように促されます.登録したファイルは,まだコミットされたわけではないことに注意してください.
19193 \end_layout
19194
19195 \begin_layout Standard
19196 実行されるSVNコマンドは,
19197 \begin_inset Flex Code
19198 status collapsed
19199
19200 \begin_layout Plain Layout
19201 svn add -q 
19202 \begin_inset Quotes eld
19203 \end_inset
19204
19205 <ファイル名>
19206 \begin_inset Quotes erd
19207 \end_inset
19208
19209
19210 \end_layout
19211
19212 \end_inset
19213
19214 です.
19215 \end_layout
19216
19217 \begin_layout Standard
19218 スイッチの説明は
19219 \begin_inset Flex Code
19220 status collapsed
19221
19222 \begin_layout Plain Layout
19223 man svn
19224 \end_layout
19225
19226 \end_inset
19227
19228 をお読みください.
19229 \end_layout
19230
19231 \begin_layout Subsubsection
19232 変更をチェックイン
19233 \end_layout
19234
19235 \begin_layout Standard
19236 ファイルの編集を終えたら,変更をコミットします.このとき,変更の説明文を入れるよう促されます.その後,変更がコミットされます.
19237 \end_layout
19238
19239 \begin_layout Standard
19240 SVNコマンド
19241 \begin_inset Foot
19242 status collapsed
19243
19244 \begin_layout Plain Layout
19245 ロックが有効になっていない場合です.第
19246 \begin_inset CommandInset ref
19247 LatexCommand ref
19248 reference "subsec:SVNファイルロック"
19249
19250 \end_inset
19251
19252 節をご覧ください.
19253 \end_layout
19254
19255 \end_inset
19256
19257
19258 \begin_inset Flex Code
19259 status collapsed
19260
19261 \begin_layout Plain Layout
19262 svn commit -q -m
19263 \begin_inset Quotes erd
19264 \end_inset
19265
19266 <入力した説明文>
19267 \begin_inset Quotes erd
19268 \end_inset
19269
19270  
19271 \begin_inset Quotes eld
19272 \end_inset
19273
19274 <ファイル名>
19275 \begin_inset Quotes erd
19276 \end_inset
19277
19278
19279 \end_layout
19280
19281 \end_inset
19282
19283
19284 \end_layout
19285
19286 \begin_layout Subsubsection
19287 チェックアウトして編集
19288 \end_layout
19289
19290 \begin_layout Standard
19291 このファイルの変更点をレポジトリから取得して更新します.すべての干渉点は,手動で解決しなくてはならないので,この機能を使う前にSVNのマージ法と干渉解決法を理解
19292 しておくようにしてください.
19293 \end_layout
19294
19295 \begin_layout Standard
19296 SVNコマンド
19297 \begin_inset Foot
19298 status collapsed
19299
19300 \begin_layout Plain Layout
19301 同上.
19302 \end_layout
19303
19304 \end_inset
19305
19306
19307 \begin_inset Flex Code
19308 status collapsed
19309
19310 \begin_layout Plain Layout
19311 svn update –non-interactive 
19312 \begin_inset Quotes eld
19313 \end_inset
19314
19315 <ファイル名>
19316 \begin_inset Quotes erd
19317 \end_inset
19318
19319
19320 \end_layout
19321
19322 \end_inset
19323
19324
19325 \end_layout
19326
19327 \begin_layout Subsubsection
19328 リポジトリ版に戻す
19329 \end_layout
19330
19331 \begin_layout Standard
19332 これは,最後のチェックイン以降,文書に加えられた変更をすべて廃棄します.変更が廃棄される前に警告が表示されます.
19333 \end_layout
19334
19335 \begin_layout Standard
19336 SVNコマンド:
19337 \begin_inset Flex Code
19338 status collapsed
19339
19340 \begin_layout Plain Layout
19341 svn revert -q 
19342 \begin_inset Quotes eld
19343 \end_inset
19344
19345 <ファイル名>
19346 \begin_inset Quotes erd
19347 \end_inset
19348
19349
19350 \end_layout
19351
19352 \end_inset
19353
19354
19355 \end_layout
19356
19357 \begin_layout Subsubsection
19358
19359 \family sans
19360 コピー
19361 \end_layout
19362
19363 \begin_layout Standard
19364 これは,現行文書のコピーを生成します.最後のチェックイン以降,変更が加えられていないサラの文書であることが要求されます.ファイル名とコピー操作の説明を入力するよ
19365 うに促され,その後,新コピーがローカルとリポジトリの両方に生成されます.コピーされた文書と元の文書の親ディレクトリが異なる場合には,コピーにインクルードされたフ
19366 ァイルの相対パスは,(
19367 \family sans
19368 ファイル\SpecialChar menuseparator
19369 名前をつけて保存\SpecialChar ldots
19370
19371 \family default
19372 と同様に)全て調整されます.最後に,元の文書の代わりに,コピーされたファイルが読み込まれます.
19373 \end_layout
19374
19375 \begin_layout Labeling
19376 \labelwidthstring 00.00.0000
19377 SVNコマンド:
19378 \end_layout
19379
19380 \begin_layout Labeling
19381 \labelwidthstring 00.00.0000
19382 \begin_inset Flex Code
19383 status collapsed
19384
19385 \begin_layout Plain Layout
19386 svn copy -q "<ファイル名>" "<新ファイル名>"
19387 \end_layout
19388
19389 \end_inset
19390
19391
19392 \end_layout
19393
19394 \begin_layout Labeling
19395 \labelwidthstring 00.00.0000
19396 \begin_inset Flex Code
19397 status collapsed
19398
19399 \begin_layout Plain Layout
19400 svn commit
19401 \end_layout
19402
19403 \end_inset
19404
19405
19406 \end_layout
19407
19408 \begin_layout Subsubsection
19409 ファイル名変更
19410 \end_layout
19411
19412 \begin_layout Standard
19413 これは,現行文書のファイル名を変更します.最後のチェックイン以降,変更が加えられていないサラの文書であることが要求されます.ファイル名とコピー操作の説明を入力す
19414 るように促され,その後,ローカルとリポジトリの両方でファイル名が変更されます.新旧ファイル名の文書の親ディレクトリが異なる場合には,コピーにインクルードされたフ
19415 ァイルの相対パスは,(
19416 \family sans
19417 ファイル\SpecialChar menuseparator
19418 名前をつけて保存\SpecialChar ldots
19419
19420 \family default
19421 と同様に)全て調整されます.最後に,新ファイル名を使ってファイルが再度読み込まれます.
19422 \end_layout
19423
19424 \begin_layout Labeling
19425 \labelwidthstring 00.00.0000
19426 SVNコマンド:
19427 \end_layout
19428
19429 \begin_layout Labeling
19430 \labelwidthstring 00.00.0000
19431 \begin_inset Flex Code
19432 status collapsed
19433
19434 \begin_layout Plain Layout
19435 svn move -q add "<ファイル名>" "<新ファイル名>"
19436 \end_layout
19437
19438 \end_inset
19439
19440
19441 \end_layout
19442
19443 \begin_layout Labeling
19444 \labelwidthstring 00.00.0000
19445 \begin_inset Flex Code
19446 status collapsed
19447
19448 \begin_layout Plain Layout
19449 svn commit
19450 \end_layout
19451
19452 \end_inset
19453
19454
19455 \end_layout
19456
19457 \begin_layout Subsubsection
19458 \begin_inset CommandInset label
19459 LatexCommand label
19460 name "subsec:レポジトリからSVN同期"
19461
19462 \end_inset
19463
19464 レポジトリを使ったローカルディレクトリの同期
19465 \begin_inset Foot
19466 status collapsed
19467
19468 \begin_layout Plain Layout
19469 このコマンドは,subversion 
19470 \begin_inset Formula $\geqq1.5$
19471 \end_inset
19472
19473 でのみ動作することに注意してください.
19474 \end_layout
19475
19476 \end_inset
19477
19478
19479 \end_layout
19480
19481 \begin_layout Standard
19482 上記の各コマンドはすべて,共通の短所を持っています.すなわち,これらのコマンドは現在の文書しか取り扱わないのです.もし,作業中の文書に図を含めたり,外部
19483 \begin_inset Flex Code
19484 status collapsed
19485
19486 \begin_layout Plain Layout
19487 .tex
19488 \end_layout
19489
19490 \end_inset
19491
19492 ファイルを取り込んだりすれば,管理はずっと複雑になります.そこで\SpecialChar LyX
19493 は,文書のおいてあるツリー全体の更新をサポートします
19494 \begin_inset Foot
19495 status collapsed
19496
19497 \begin_layout Plain Layout
19498 すべての外部ファイルが,文書と同じディレクトリかそれ以下のサブディレクトリに来るようにファイル構造を構成する必要があります.
19499 \end_layout
19500
19501 \end_inset
19502
19503 .これは,subversion管理を知らなかったりレポジトリに新しい素材をコミットする勇気のない人たちと共同作業をする羽目になったときに,ひじょうに役に立ちます
19504
19505 \end_layout
19506
19507 \begin_layout Standard
19508 \begin_inset Flex Code
19509 status collapsed
19510
19511 \begin_layout Plain Layout
19512 ローカル辞書をレポジトリを使って更新
19513 \end_layout
19514
19515 \end_inset
19516
19517 コマンドは,ディレクトリ全体を更新し,マージに衝突が発生した場合には,ローカル版は保存されるので,意図しないデータロスが発生しません.ローカルな変更が発見された
19518 場合には,更新が開始される前にユーザに警告が与えられます.
19519 \end_layout
19520
19521 \begin_layout Labeling
19522 \labelwidthstring 00.00.0000
19523 SVNコマンド: 
19524 \begin_inset space ~
19525 \end_inset
19526
19527
19528 \begin_inset Newline newline
19529 \end_inset
19530
19531
19532 \begin_inset Flex Code
19533 status collapsed
19534
19535 \begin_layout Plain Layout
19536 svn diff $path(変更が発見された場合には通知します)
19537 \begin_inset Newline newline
19538 \end_inset
19539
19540 svn update –accept mine-full $path
19541 \end_layout
19542
19543 \end_inset
19544
19545
19546 \end_layout
19547
19548 \begin_layout Standard
19549 ここで
19550 \begin_inset Flex Code
19551 status collapsed
19552
19553 \begin_layout Plain Layout
19554 $path
19555 \end_layout
19556
19557 \end_inset
19558
19559 は文書のパスを示します.
19560 \end_layout
19561
19562 \begin_layout Subsubsection
19563 履歴を表示
19564 \end_layout
19565
19566 \begin_layout Standard
19567 これは,SVN文書の全履歴を表示します.
19568 \begin_inset Flex Code
19569 status collapsed
19570
19571 \begin_layout Plain Layout
19572 svn log 
19573 \begin_inset Quotes eld
19574 \end_inset
19575
19576 <ファイル名>
19577 \begin_inset Quotes erd
19578 \end_inset
19579
19580
19581 \end_layout
19582
19583 \end_inset
19584
19585 の出力がブラウザに表示されます.
19586 \end_layout
19587
19588 \begin_layout Subsubsection
19589 ファイルロック
19590 \begin_inset CommandInset label
19591 LatexCommand label
19592 name "subsec:SVNファイルロック"
19593
19594 \end_inset
19595
19596
19597 \end_layout
19598
19599 \begin_layout Standard
19600 別々の改訂管理システム間でファイルを交換しようとすると,二人のユーザが同じ文書(の一部)を編集している場合,マージが衝突する問題を引き起こします.そのような衝突
19601 が発生した場合,手動で解決しなくてはならなくなりますが,その合理的な解決法としては,与えられた時間に一人のユーザだけがファイルを編集することが許されるように保証
19602 するための,何らかのロック機構を導入することが考えられます.
19603 \end_layout
19604
19605 \begin_layout Standard
19606 SVNには,このように相互に排他的なファイルアクセスを提供する機構が二つあります.ロックと,
19607 \begin_inset Flex Code
19608 status collapsed
19609
19610 \begin_layout Plain Layout
19611 svn:needs-lock
19612 \end_layout
19613
19614 \end_inset
19615
19616 svnファイル特性に依拠した書き込み権限の自動設定(第
19617 \begin_inset CommandInset ref
19618 LatexCommand ref
19619 reference "subsec:自動ロック特性"
19620
19621 \end_inset
19622
19623 節を参照)です
19624 \begin_inset Foot
19625 status collapsed
19626
19627 \begin_layout Plain Layout
19628 http://svnbook.red-bean.com/en/1.2/svn.advanced.locking.html
19629 \end_layout
19630
19631 \end_inset
19632
19633 .ある文書について,この特性が検出されたときには,\SpecialChar LyX
19634 は自動的に文書編集にSVNロックを使用するようになり,チェックイン・チェックアウト機構はRCSと同じ枠組みに切
19635 り替わります.これは特に,\SpecialChar LyX
19636 でのファイルの使われ方に以下の二つのモードがあることを意味します.
19637 \end_layout
19638
19639 \begin_layout Itemize
19640 非ロック状態.読み込まれたファイルは,読み込み専用モードになります.編集するためには,チェックアウトする必要があります.
19641 \emph on
19642 チェックアウト
19643 \emph default
19644 を行うと,レポジトリからの更新と,書き込みロックの獲得が行われます.ロックの獲得ができないと,非ロック状態から出ることができません.
19645 \end_layout
19646
19647 \begin_layout Itemize
19648 ロック状態.読み込まれたファイルは,「通常の」編集モードになります.他のユーザには,このファイルを編集する許可が与えられません.
19649 \emph on
19650 チェックイン
19651 \emph default
19652 を行うと,変更のコミットと書き込みロックの解放が行われます.文書に変更が加えられなかった場合には,コミットは実行されず
19653 \begin_inset Foot
19654 status collapsed
19655
19656 \begin_layout Plain Layout
19657 コミットは実行されないのに,コミットメッセージを入力するよう促されますが,驚かないでください.
19658 \end_layout
19659
19660 \end_inset
19661
19662 ,書き込みロックの解放のみが行われます.
19663 \end_layout
19664
19665 \begin_layout Standard
19666 SVNコマンド:
19667 \end_layout
19668
19669 \begin_layout Labeling
19670 \labelwidthstring 00.00.0000
19671 チェックイン: 
19672 \begin_inset Flex Code
19673 status collapsed
19674
19675 \begin_layout Plain Layout
19676 svn commit -q -m
19677 \begin_inset Quotes erd
19678 \end_inset
19679
19680 <説明>
19681 \begin_inset Quotes erd
19682 \end_inset
19683
19684  
19685 \begin_inset Quotes eld
19686 \end_inset
19687
19688 <ファイル名>
19689 \begin_inset Quotes erd
19690 \end_inset
19691
19692
19693 \end_layout
19694
19695 \end_inset
19696
19697
19698 \begin_inset Newline newline
19699 \end_inset
19700
19701
19702 \begin_inset Flex Code
19703 status collapsed
19704
19705 \begin_layout Plain Layout
19706 svn unlock 
19707 \begin_inset Quotes eld
19708 \end_inset
19709
19710 <ファイル名>
19711 \begin_inset Quotes erd
19712 \end_inset
19713
19714
19715 \end_layout
19716
19717 \end_inset
19718
19719
19720 \end_layout
19721
19722 \begin_layout Labeling
19723 \labelwidthstring 00.00.0000
19724 チェックアウト: 
19725 \begin_inset Flex Code
19726 status collapsed
19727
19728 \begin_layout Plain Layout
19729 svn update 
19730 \begin_inset Quotes eld
19731 \end_inset
19732
19733 <ファイル名>
19734 \begin_inset Quotes erd
19735 \end_inset
19736
19737
19738 \end_layout
19739
19740 \end_inset
19741
19742
19743 \begin_inset Newline newline
19744 \end_inset
19745
19746
19747 \begin_inset Flex Code
19748 status collapsed
19749
19750 \begin_layout Plain Layout
19751 svn unlock 
19752 \begin_inset Quotes eld
19753 \end_inset
19754
19755 <ファイル名>
19756 \begin_inset Quotes erd
19757 \end_inset
19758
19759
19760 \end_layout
19761
19762 \end_inset
19763
19764
19765 \end_layout
19766
19767 \begin_layout Subsubsection
19768 自動ロック特性
19769 \begin_inset CommandInset label
19770 LatexCommand label
19771 name "subsec:自動ロック特性"
19772
19773 \end_inset
19774
19775
19776 \end_layout
19777
19778 \begin_layout Standard
19779 上述したような
19780 \begin_inset Flex Code
19781 status collapsed
19782
19783 \begin_layout Plain Layout
19784 .lyx
19785 \end_layout
19786
19787 \end_inset
19788
19789 ファイルに対する書き込み権限の自動設定は,
19790 \begin_inset Flex MenuItem
19791 status collapsed
19792
19793 \begin_layout Plain Layout
19794 ファイル\SpecialChar menuseparator
19795 バージョン管理\SpecialChar menuseparator
19796 ロック特性を使用
19797 \end_layout
19798
19799 \end_inset
19800
19801 で行うことができます.このコマンドは,SVNサーバでファイルがロックされていないときのみ使用可能状態になります(つまり,使用するにはチェックアウトが必要です).
19802 \end_layout
19803
19804 \begin_layout Standard
19805 SVNコマンド:
19806 \end_layout
19807
19808 \begin_layout Labeling
19809 \labelwidthstring 00.00.0000
19810 チェックイン: 
19811 \begin_inset Flex Code
19812 status collapsed
19813
19814 \begin_layout Plain Layout
19815 svn propset svn:needs-lock ON 
19816 \begin_inset Quotes eld
19817 \end_inset
19818
19819 <ファイル名>
19820 \begin_inset Quotes erd
19821 \end_inset
19822
19823
19824 \end_layout
19825
19826 \end_inset
19827
19828
19829 \end_layout
19830
19831 \begin_layout Labeling
19832 \labelwidthstring 00.00.0000
19833 チェックアウト: 
19834 \begin_inset Flex Code
19835 status collapsed
19836
19837 \begin_layout Plain Layout
19838 svn propdel svn:needs-lock 
19839 \begin_inset Quotes eld
19840 \end_inset
19841
19842 <ファイル名>
19843 \begin_inset Quotes erd
19844 \end_inset
19845
19846
19847 \end_layout
19848
19849 \end_inset
19850
19851
19852 \end_layout
19853
19854 \begin_layout Subsubsection
19855 \begin_inset CommandInset label
19856 LatexCommand label
19857 name "subsec:VCS改訂情報"
19858
19859 \end_inset
19860
19861 文書の改訂情報
19862 \end_layout
19863
19864 \begin_layout Standard
19865 文書中で改訂情報を有効化するにはいくつかの方法があります.
19866 \end_layout
19867
19868 \begin_layout Itemize
19869 \SpecialChar LyX
19870 による直接サポート
19871 \begin_inset Separator latexpar
19872 \end_inset
19873
19874
19875 \end_layout
19876
19877 \begin_deeper
19878 \begin_layout Itemize
19879 ツリー改訂情報(
19880 \begin_inset Flex Code
19881 status collapsed
19882
19883 \begin_layout Plain Layout
19884 vcs-tree-revision
19885 \end_layout
19886
19887 \end_inset
19888
19889 ).
19890 \begin_inset Flex Code
19891 status collapsed
19892
19893 \begin_layout Plain Layout
19894 svnversion
19895 \end_layout
19896
19897 \end_inset
19898
19899 コマンドの出力を返します.下記の表が,結果の読み方のヒントを与えるでしょう.
19900 \end_layout
19901
19902 \begin_layout Standard
19903 \align center
19904 \begin_inset Tabular
19905 <lyxtabular version="3" rows="6" columns="2">
19906 <features tabularvalignment="middle">
19907 <column alignment="center" valignment="top">
19908 <column alignment="center" valignment="top">
19909 <row>
19910 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19911 \begin_inset Text
19912
19913 \begin_layout Plain Layout
19914 出力
19915 \end_layout
19916
19917 \end_inset
19918 </cell>
19919 <cell alignment="center" valignment="top" topline="true" bottomline="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" leftline="true" usebox="none">
19931 \begin_inset Text
19932
19933 \begin_layout Plain Layout
19934 4123:4168
19935 \end_layout
19936
19937 \end_inset
19938 </cell>
19939 <cell alignment="center" valignment="top" topline="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 <row>
19950 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19951 \begin_inset Text
19952
19953 \begin_layout Plain Layout
19954 4168M
19955 \end_layout
19956
19957 \end_inset
19958 </cell>
19959 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
19960 \begin_inset Text
19961
19962 \begin_layout Plain Layout
19963 修正された作業コピー
19964 \end_layout
19965
19966 \end_inset
19967 </cell>
19968 </row>
19969 <row>
19970 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19971 \begin_inset Text
19972
19973 \begin_layout Plain Layout
19974 4123S
19975 \end_layout
19976
19977 \end_inset
19978 </cell>
19979 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
19980 \begin_inset Text
19981
19982 \begin_layout Plain Layout
19983 スイッチされた作業コピー
19984 \end_layout
19985
19986 \end_inset
19987 </cell>
19988 </row>
19989 <row>
19990 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19991 \begin_inset Text
19992
19993 \begin_layout Plain Layout
19994 4123P
19995 \end_layout
19996
19997 \end_inset
19998 </cell>
19999 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20000 \begin_inset Text
20001
20002 \begin_layout Plain Layout
20003 チェックアウト頻度が低かったことによる不完全な作業コピー
20004 \end_layout
20005
20006 \end_inset
20007 </cell>
20008 </row>
20009 <row>
20010 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
20011 \begin_inset Text
20012
20013 \begin_layout Plain Layout
20014 4123:4168MS
20015 \end_layout
20016
20017 \end_inset
20018 </cell>
20019 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
20020 \begin_inset Text
20021
20022 \begin_layout Plain Layout
20023 改訂版が混合し,修正され,スイッチされた作業コピー
20024 \end_layout
20025
20026 \end_inset
20027 </cell>
20028 </row>
20029 </lyxtabular>
20030
20031 \end_inset
20032
20033
20034 \end_layout
20035
20036 \begin_layout Itemize
20037 ファイル改訂情報.
20038 \begin_inset Flex Code
20039 status collapsed
20040
20041 \begin_layout Plain Layout
20042 svn
20043 \begin_inset space ~
20044 \end_inset
20045
20046 info
20047 \begin_inset space ~
20048 \end_inset
20049
20050 –xml
20051 \begin_inset space ~
20052 \end_inset
20053
20054 file.lyx
20055 \end_layout
20056
20057 \end_inset
20058
20059 の出力を解析したものが返されます.サポートされるフラグは
20060 \begin_inset Separator latexpar
20061 \end_inset
20062
20063
20064 \end_layout
20065
20066 \begin_deeper
20067 \begin_layout Itemize
20068 最終コミットのバージョン番号(
20069 \begin_inset Flex Code
20070 status collapsed
20071
20072 \begin_layout Plain Layout
20073 vcs-revision
20074 \end_layout
20075
20076 \end_inset
20077
20078 )
20079 \end_layout
20080
20081 \begin_layout Itemize
20082 最終コミットの著者(
20083 \begin_inset Flex Code
20084 status collapsed
20085
20086 \begin_layout Plain Layout
20087 vcs-author
20088 \end_layout
20089
20090 \end_inset
20091
20092 )
20093 \end_layout
20094
20095 \begin_layout Itemize
20096 最終コミットの日付(
20097 \begin_inset Flex Code
20098 status collapsed
20099
20100 \begin_layout Plain Layout
20101 vcs-date
20102 \end_layout
20103
20104 \end_inset
20105
20106 )
20107 \end_layout
20108
20109 \begin_layout Itemize
20110 最終コミットの時間(
20111 \begin_inset Flex Code
20112 status collapsed
20113
20114 \begin_layout Plain Layout
20115 vcs-time
20116 \end_layout
20117
20118 \end_inset
20119
20120 )
20121 \end_layout
20122
20123 \end_deeper
20124 \begin_layout Standard
20125 これらの情報は,情報差込枠で得ることができます(例:
20126 \begin_inset Flex Code
20127 status collapsed
20128
20129 \begin_layout Plain Layout
20130 info-insert buffer vcs-date
20131 \end_layout
20132
20133 \end_inset
20134
20135 ).これらの情報は,ファイルをsvn管理下に置いたときのみ(すなわち使用中文書の
20136 \begin_inset Flex Code
20137 status collapsed
20138
20139 \begin_layout Plain Layout
20140 .svn
20141 \end_layout
20142
20143 \end_inset
20144
20145 ディレクトリがあるときのみ)利用可能です.
20146 \end_layout
20147
20148 \end_deeper
20149 \begin_layout Itemize
20150 もう一つの—ハッカー的な—方法は,SVNキーワードを使用する方法です
20151 \begin_inset Foot
20152 status collapsed
20153
20154 \begin_layout Plain Layout
20155 http://svnbook.red-bean.com/en/1.4/svn.advanced.props.special.keywords.html
20156 \end_layout
20157
20158 \end_inset
20159
20160 .簡単に言えば,ファイルキーワード特性を設定して(例:
20161 \family sans
20162 svn propset svn:keywords 'Rev' file.lyx
20163 \family default
20164 ),文書中にキーワード\SpecialChar TeX
20165 コード
20166 \begin_inset Foot
20167 status collapsed
20168
20169 \begin_layout Plain Layout
20170 これは,\SpecialChar LyX
20171 がキーワードタグの途中で改行してしまわないことを確実にするための,簡単な方法です.
20172 \end_layout
20173
20174 \end_inset
20175
20176 タグ(例:
20177 \begin_inset ERT
20178 status open
20179
20180 \begin_layout Plain Layout
20181
20182 $Rev$
20183 \end_layout
20184
20185 \end_inset
20186
20187 )を貼り付けるのです.このようにして,SVNクライアントは,各更新やコミットの後に自動的に改訂番号を代入することができるのです(例
20188 \begin_inset ERT
20189 status open
20190
20191 \begin_layout Plain Layout
20192
20193 $Rev: 59 $
20194 \end_layout
20195
20196 \end_inset
20197
20198 ).このアプローチにはいくつか問題があります.第一に,\SpecialChar TeX
20199 の世界では「$」文字は数式を表すのに使われるので,\SpecialChar LyX
20200 中の
20201 \begin_inset Formula $Rev$
20202 \end_inset
20203
20204 という数式表現が,すべて
20205 \begin_inset Formula $Rev:59$
20206 \end_inset
20207
20208 になってしまいます.その他のId・Date・Authorなどといったキーワードも同様です.第二に,SVN出力は使用中のロケールに依存するので,Dateが用いられ
20209 ると,SVNは,問題を引き起こすような文字列を容易に生成してしまいます.第三に,文書中には,番号だけでなく「Rev:59」という文字列全体が表示されてしまいます
20210 .Subversionがユーザ定義のキーワードを実装するまでは,このアプローチを信頼性を持って使用したり,\SpecialChar LyX
20211 がこれを直接サポートすることは,難しそうです.
20212 \end_layout
20213
20214 \begin_layout Subsection
20215 SVNとWindows環境
20216 \end_layout
20217
20218 \begin_layout Quote
20219 ユーザが,かなり早いうちに自分自身でコマンドライン操作を理解できないのであれば,TortoiseSVNを使った方が賢明でしょう.—P.
20220  A.
20221  ルービン
20222 \end_layout
20223
20224 \begin_layout Subsubsection
20225 準備
20226 \end_layout
20227
20228 \begin_layout Standard
20229 \SpecialChar LyX
20230 を導入して,Subversionレポジトリへのアクセス権を持っている他に,ユーザはSubversionクライアントプログラムを導入する必要があります.クライアン
20231 トプログラムのWindows用インストーラは
20232 \begin_inset CommandInset href
20233 LatexCommand href
20234 name "CollabNet"
20235 target "http://www.collab.net/nonav/downloads/subversion/"
20236
20237 \end_inset
20238
20239 にあります.ユーザは
20240 \begin_inset CommandInset href
20241 LatexCommand href
20242 name "TortoiseSVN"
20243 target "http://tortoisesvn.tigris.org/"
20244
20245 \end_inset
20246
20247 も導入することを考えるでしょう.これはSubversionの操作をWindows Explorerのコンテクスト(右クリック)メニューに統合します.\SpecialChar LyX
20248 外部で行う操
20249 作は,一般的にExplorerコンテクストメニューを使った方が便利です.TortoiseSVNは,\SpecialChar LyX
20250 自身が使用するクライアントプログラムの代わりとは成りませんので
20251 ,注意してください.
20252 \end_layout
20253
20254 \begin_layout Subsubsection
20255 文書をSubversion管理下に置くには
20256 \end_layout
20257
20258 \begin_layout Standard
20259 \SpecialChar LyX
20260 文書をSubversionのバージョン管理下に置く前に,その親ディレクトリをバージョン管理下に置かなくてはなりません.文書を,既にレポジトリに存在するプロジェク
20261 トに追加する際には,新規文書が置かれることになるディレクトリへ,プロジェクトをチェックアウトすることによって実現します.プロジェクト自体がバージョン管理下にない
20262 場合(たとえばこの文書が新規プロジェクトの最初のファイルである場合)には,このディレクトリをレポジトリにインポートしなくてはなりません.これは,\SpecialChar LyX
20263 の外部で行います
20264 .インポートもチェックアウトも共に,TortoiseSVNを使えば,Explorerのコンテクストメニューから簡単に終えることができます.あるいは,DOSプロン
20265 プトでコマンドライン・クライアントを使って成し遂げることもできます.TortoiseSVNを使ったプロジェクトのインポート手続きを下記で説明します.レポジトリは
20266 既に存在し,新規プロジェクトを
20267 \begin_inset Flex Code
20268 status collapsed
20269
20270 \begin_layout Plain Layout
20271 C:
20272 \backslash
20273 new project
20274 \end_layout
20275
20276 \end_inset
20277
20278 で開始するものとします.Subversionクライアントプログラムを使うための情報を得るには,DOSシェルで
20279 \begin_inset Flex Code
20280 status collapsed
20281
20282 \begin_layout Plain Layout
20283 svn –help
20284 \end_layout
20285
20286 \end_inset
20287
20288 を実行してください.
20289 \end_layout
20290
20291 \begin_layout Enumerate
20292 Windows Explorerで
20293 \begin_inset Flex Code
20294 status collapsed
20295
20296 \begin_layout Plain Layout
20297 C:
20298 \backslash
20299 new project
20300 \end_layout
20301
20302 \end_inset
20303
20304 を見つけ出して右クリックし,
20305 \begin_inset Flex MenuItem
20306 status collapsed
20307
20308 \begin_layout Plain Layout
20309 TortoiseSVN\SpecialChar menuseparator
20310 Repo-browser
20311 \end_layout
20312
20313 \end_inset
20314
20315 を選択してください.必要であれば,レポジトリのURLを調整し,OKをクリックしてください.
20316 \end_layout
20317
20318 \begin_layout Enumerate
20319 新規プロジェクトフォルダを置くレポジトリレベル(多くの場合最上位レベル)を右クリックし,
20320 \begin_inset Flex MenuItem
20321 status collapsed
20322
20323 \begin_layout Plain Layout
20324 Create folder\SpecialChar ldots
20325
20326 \end_layout
20327
20328 \end_inset
20329
20330 をクリックしてください.プロジェクトフォルダの名称を入力してOKをクリックしてください.必要であればログファイル用のメッセージを入力し,再びOKをクリックしてく
20331 ださい.新規プロジェクトフォルダがレポジトリに現れるはずです.最後にOKを再度クリックして,レポジトリブラウザを終了してください.
20332 \end_layout
20333
20334 \begin_layout Enumerate
20335 再度
20336 \begin_inset Flex Code
20337 status collapsed
20338
20339 \begin_layout Plain Layout
20340 C:
20341 \backslash
20342 new project
20343 \end_layout
20344
20345 \end_inset
20346
20347 を右クリックし,今度は
20348 \begin_inset Flex MenuItem
20349 status collapsed
20350
20351 \begin_layout Plain Layout
20352 SVN Checkout\SpecialChar ldots
20353
20354 \end_layout
20355
20356 \end_inset
20357
20358 を選択してください.レポジトリにたった今作成した,プロジェクトフォルダのURLを選択し,チェックアウトディレクトリを
20359 \begin_inset Flex Code
20360 status collapsed
20361
20362 \begin_layout Plain Layout
20363 C:
20364 \backslash
20365 new project
20366 \end_layout
20367
20368 \end_inset
20369
20370 に設定してから,OKをクリックしてください.フォルダが空でないことを警告されますが,OKをクリックして進んでください.すると,
20371 \begin_inset Flex Code
20372 status collapsed
20373
20374 \begin_layout Plain Layout
20375 C:
20376 \backslash
20377 new project
20378 \end_layout
20379
20380 \end_inset
20381
20382 の下に
20383 \begin_inset Flex Code
20384 status collapsed
20385
20386 \begin_layout Plain Layout
20387 .svn
20388 \end_layout
20389
20390 \end_inset
20391
20392 ディレクトリが作成されます.
20393 \end_layout
20394
20395 \begin_layout Enumerate
20396 \SpecialChar LyX
20397 で文書を新規作成するか開くかして,
20398 \begin_inset Flex MenuItem
20399 status collapsed
20400
20401 \begin_layout Plain Layout
20402 ファイル\SpecialChar menuseparator
20403 バージョン管理\SpecialChar menuseparator
20404 登録
20405 \end_layout
20406
20407 \end_inset
20408
20409 をクリックします.ログメッセージを入力してOKをクリックし,文書をバージョン管理にコミットしてください.
20410 \end_layout
20411
20412 \begin_layout Standard
20413 爾後,
20414 \begin_inset Flex MenuItem
20415 status collapsed
20416
20417 \begin_layout Plain Layout
20418 ファイル\SpecialChar menuseparator
20419 バージョン管理
20420 \end_layout
20421
20422 \end_inset
20423
20424 メニューのすべての機能が使用できるようになります.Windows ExplorerのTortoiseSVNコンテクストメニューか,コマンドプロンプトでのSubv
20425 ersionクライアントプログラムを使用して,文書をチェックイン・チェックアウトしたり,履歴を見たりといったことができるようになります.
20426 \end_layout
20427
20428 \begin_layout Subsubsection
20429 Windows下でSVNと共にSSHトンネルを使うには
20430 \end_layout
20431
20432 \begin_layout Standard
20433 Linuxに較べて,WindowsでSVNクライアントをSSH経由で通信するようにさせるのは,かなり厄介な仕事です.どのようにクライアント側を設定すればよいか,
20434 少なくとも幾分かのヒントをお示しするつもりですが,sshとWindowsコマンドラインの知識が前もって必要であり,それと共にかなりの量のフラストレーションが溜ま
20435 ることを覚悟しておいてください.
20436 \end_layout
20437
20438 \begin_layout Enumerate
20439 前節で述べたように,Windows用のSVNクライアントを入手してください.これが新規の導入である場合には,何らかのSVNコマンド(たとえば
20440 \begin_inset Flex Code
20441 status collapsed
20442
20443 \begin_layout Plain Layout
20444 svn –version
20445 \end_layout
20446
20447 \end_inset
20448
20449 )を実行して,configファイル群を生成させてください.これらは後で変更を加える必要があります.
20450 \end_layout
20451
20452 \begin_layout Enumerate
20453 Windows用のsshクライアントを選んでください.選択肢はたくさんありますが,ここではPutty tools
20454 \begin_inset Foot
20455 status open
20456
20457 \begin_layout Plain Layout
20458 \begin_inset Flex URL
20459 status collapsed
20460
20461 \begin_layout Plain Layout
20462
20463 http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html
20464 \end_layout
20465
20466 \end_inset
20467
20468
20469 \end_layout
20470
20471 \end_inset
20472
20473 のものを使用することとしましょう.クライアントが接続の度にパスワードを訊いてこないように,接続を自動化する必要があります.簡単にするために,追加的なパスワード保
20474 護などを加えない
20475 \begin_inset Flex Ruby
20476 status collapsed
20477
20478 \begin_layout Plain Layout
20479
20480 \begin_inset Argument post:1
20481 status collapsed
20482
20483 \begin_layout Plain Layout
20484 キー
20485 \end_layout
20486
20487 \end_inset
20488
20489
20490 \end_layout
20491
20492 \end_inset
20493
20494 のみを使用することとします.
20495 \begin_inset Separator latexpar
20496 \end_inset
20497
20498
20499 \end_layout
20500
20501 \begin_deeper
20502 \begin_layout Enumerate
20503 \begin_inset Flex Code
20504 status collapsed
20505
20506 \begin_layout Plain Layout
20507 puttygen
20508 \end_layout
20509
20510 \end_inset
20511
20512 を使って鍵を生成します..ppkプライベート鍵ファイルを保存し,パブリック鍵ファイルはサーバ側に置きます.SVNサーバがLinuxで走っている場合,このパブリック
20513 鍵の書式はLinuxのopensshと互換性がないために,「Public key for pasting into OpenSSH authorized_key
20514 s file:」編集フィールドから,直接サーバの
20515 \begin_inset Flex Code
20516 status collapsed
20517
20518 \begin_layout Plain Layout
20519 ~/.ssh/authorized_keys
20520 \end_layout
20521
20522 \end_inset
20523
20524 または
20525 \begin_inset Flex Code
20526 status collapsed
20527
20528 \begin_layout Plain Layout
20529 authorized_keys2
20530 \end_layout
20531
20532 \end_inset
20533
20534 ファイルにコピー&ペーストを行わなくてはならないことに注意してください.
20535 \end_layout
20536
20537 \begin_layout Enumerate
20538 Puttyのplinkを入手してください.SVNのconfigファイル
20539 \begin_inset Foot
20540 status collapsed
20541
20542 \begin_layout Plain Layout
20543 正確なパスはWindowsのバージョンに依りますが,通常は
20544 \begin_inset Flex Code
20545 status collapsed
20546
20547 \begin_layout Plain Layout
20548 c:
20549 \backslash
20550 Documents and Settings
20551 \backslash
20552 user
20553 \backslash
20554 Application Data
20555 \backslash
20556 Subversion
20557 \backslash
20558 config
20559 \end_layout
20560
20561 \end_inset
20562
20563
20564 \begin_inset Flex Code
20565 status collapsed
20566
20567 \begin_layout Plain Layout
20568 AppData
20569 \backslash
20570 Roaming
20571 \backslash
20572 Subversion
20573 \end_layout
20574
20575 \end_inset
20576
20577 辺りにあります.
20578 \end_layout
20579
20580 \end_inset
20581
20582 中の
20583 \begin_inset Flex Code
20584 status collapsed
20585
20586 \begin_layout Plain Layout
20587 [tunnels]
20588 \end_layout
20589
20590 \end_inset
20591
20592 セクションにsshコマンドを設定してください.例:
20593 \begin_inset Flex Code
20594 status collapsed
20595
20596 \begin_layout Plain Layout
20597 ssh=c:/path/plink.exe -i c:/path/private_key.ppk
20598 \end_layout
20599
20600 \end_inset
20601
20602
20603 \begin_inset Foot
20604 status collapsed
20605
20606 \begin_layout Plain Layout
20607 通常,正確なコマンドを機能させるには長い時間がかかり,それは多くの物事に依存します.たとえば,リモートサーバがPuttyなどの既定セッションとして保存されないよ
20608 うにしてください.うまく行かない場合には,まずSVNなしでplink経由の接続を試してください.
20609 \end_layout
20610
20611 \end_inset
20612
20613
20614 \end_layout
20615
20616 \end_deeper
20617 \begin_layout Enumerate
20618 SVNアーカイブをチェックアウトしてください.例:
20619 \begin_inset Newline newline
20620 \end_inset
20621
20622
20623 \begin_inset Flex Code
20624 status collapsed
20625
20626 \begin_layout Plain Layout
20627 svn co svn+ssh://user@server/repository_path
20628 \end_layout
20629
20630 \end_inset
20631
20632
20633 \end_layout
20634
20635 \begin_layout Subsubsection
20636 行末変換
20637 \end_layout
20638
20639 \begin_layout Standard
20640 共著者同士がLinuxとWindowsを混在させているとき,\SpecialChar LyX
20641 は.lyxファイル中で異なった行末記号を使用することになります.これは,\SpecialChar LyX
20642 の機能に関する限り問題になりま
20643 せんが,コミット差分は巨大になり,マージではコンフリクトを引き起こしがちです.幸いにして,SVNは,.lyxファイルを
20644 \begin_inset Flex Code
20645 status collapsed
20646
20647 \begin_layout Plain Layout
20648 native
20649 \end_layout
20650
20651 \end_inset
20652
20653 モードに切り替える際
20654 \begin_inset Foot
20655 status collapsed
20656
20657 \begin_layout Plain Layout
20658 手短には
20659 \begin_inset Flex Code
20660 status collapsed
20661
20662 \begin_layout Plain Layout
20663 svn propset svn:eol-style native FILE_NAME
20664 \end_layout
20665
20666 \end_inset
20667
20668
20669 \end_layout
20670
20671 \end_inset
20672
20673 ,CR/LF問題をどのように取り扱えばいいかを知っているので大丈夫です
20674 \begin_inset Foot
20675 status collapsed
20676
20677 \begin_layout Plain Layout
20678 \begin_inset Flex URL
20679 status collapsed
20680
20681 \begin_layout Plain Layout
20682
20683 http://svnbook.red-bean.com/en/1.4/svn.advanced.props.file-portability.html
20684 \end_layout
20685
20686 \end_inset
20687
20688
20689 \end_layout
20690
20691 \end_inset
20692
20693
20694 \end_layout
20695
20696 \begin_layout Subsection
20697 \SpecialChar LyX
20698 におけるGITコマンド
20699 \end_layout
20700
20701 \begin_layout Standard
20702 \SpecialChar LyX
20703 で,最小限のGITコマンドがサポートされるようになりました.これらのコマンドは,
20704 \family sans
20705 ファイル\SpecialChar menuseparator
20706 バージョン管理
20707 \family default
20708 にあります.リポジトリのアクセスに,パスワード保護されたsshを使用している場合には,ターミナルウィンドウでの操作をするように促されます.\SpecialChar LyX
20709 は,GIT
20710  1.7に対して試験を行っています.
20711 \end_layout
20712
20713 \begin_layout Standard
20714 GITと他のバージョン管理システムとの大きな相違点は,GITの配布形態にあります.伝統的なバージョン管理システムでは,リポジトリをホストする,中心となるサーバー
20715 があります.ユーザーは変更点をサーバーにコミットし,他のユーザーが行った更新分をサーバーから受け取ります.一方,GITでは,ユーザーは,ローカルのリポジトリにコ
20716 ミットを行います.ローカルリポジトリは,GITコマンドの
20717 \begin_inset Flex Code
20718 status open
20719
20720 \begin_layout Plain Layout
20721 pull
20722 \end_layout
20723
20724 \end_inset
20725
20726 または
20727 \begin_inset Flex Code
20728 status open
20729
20730 \begin_layout Plain Layout
20731 push
20732 \end_layout
20733
20734 \end_inset
20735
20736 を使って,1つ以上のリモートリポジトリと同期されます.\SpecialChar LyX
20737 は,リモートのGITリポジトリとは,一切関わりません.CVSやSVNの集権的リポジトリに対して行うのと同じ
20738 ことを,ローカルのリポジトリに対してのみ行います.リモートのGITリポジトリを使用している場合には,お好みのGITクライアントを使用して,
20739 \begin_inset Flex Code
20740 status open
20741
20742 \begin_layout Plain Layout
20743 pull
20744 \end_layout
20745
20746 \end_inset
20747
20748 または
20749 \begin_inset Flex Code
20750 status open
20751
20752 \begin_layout Plain Layout
20753 push
20754 \end_layout
20755
20756 \end_inset
20757
20758 の操作を行う必要があります.
20759 \end_layout
20760
20761 \begin_layout Subsubsection
20762 登録
20763 \end_layout
20764
20765 \begin_layout Standard
20766 お使いの文書が改訂管理下に置かれていなければ,メニューにはこの項目だけが表示されます.もし改訂管理が有効ならば,
20767 \family sans
20768 登録
20769 \family default
20770 項目は表示されません.
20771 \end_layout
20772
20773 \begin_layout Standard
20774 本コマンドは,既に文書のあるディレクトリをGIT管理下に置いている場合に
20775 \emph on
20776 のみ
20777 \emph default
20778 (すなわち
20779 \begin_inset Flex Code
20780 status collapsed
20781
20782 \begin_layout Plain Layout
20783 .git/index
20784 \end_layout
20785
20786 \end_inset
20787
20788 ファイルが存在する場合にのみ),お使いの文書をGITに登録します.つまり,アーカイブはご自分でチェックアウトしなくてはなりません.
20789 \end_layout
20790
20791 \begin_layout Standard
20792 すると,文書の最初の説明文を入力するように促されます.登録したファイルは,まだコミットされたわけではないことに注意してください.
20793 \end_layout
20794
20795 \begin_layout Standard
20796 実行されるGITコマンドは,
20797 \begin_inset Flex Code
20798 status collapsed
20799
20800 \begin_layout Plain Layout
20801 git add "<ファイル名>"
20802 \end_layout
20803
20804 \end_inset
20805
20806 です.
20807 \end_layout
20808
20809 \begin_layout Standard
20810 スイッチの説明は
20811 \begin_inset Flex Code
20812 status collapsed
20813
20814 \begin_layout Plain Layout
20815 man git
20816 \end_layout
20817
20818 \end_inset
20819
20820 をお読みください.
20821 \end_layout
20822
20823 \begin_layout Subsubsection
20824 変更をチェックイン
20825 \end_layout
20826
20827 \begin_layout Standard
20828 ファイルの編集を終えたら,変更をコミットします.このとき,変更の説明文を入れるよう促されます.その後,変更がコミットされます.
20829 \end_layout
20830
20831 \begin_layout Standard
20832 GITコマンド:
20833 \begin_inset Flex Code
20834 status collapsed
20835
20836 \begin_layout Plain Layout
20837 git commit -q -m
20838 \begin_inset Quotes erd
20839 \end_inset
20840
20841 <入力した説明文>
20842 \begin_inset Quotes erd
20843 \end_inset
20844
20845  "<ファイル名>"
20846 \end_layout
20847
20848 \end_inset
20849
20850
20851 \end_layout
20852
20853 \begin_layout Subsubsection
20854 リポジトリ版に戻す
20855 \end_layout
20856
20857 \begin_layout Standard
20858 これは,最後のチェックイン以降,文書に加えられた変更をすべて廃棄します.変更が廃棄される前に警告が表示されます.
20859 \end_layout
20860
20861 \begin_layout Standard
20862 GITコマンド:
20863 \begin_inset Flex Code
20864 status collapsed
20865
20866 \begin_layout Plain Layout
20867 git checkout -q 
20868 \begin_inset Quotes eld
20869 \end_inset
20870
20871 <ファイル名>
20872 \begin_inset Quotes erd
20873 \end_inset
20874
20875
20876 \end_layout
20877
20878 \end_inset
20879
20880
20881 \end_layout
20882
20883 \begin_layout Subsubsection
20884 ファイル名変更
20885 \end_layout
20886
20887 \begin_layout Standard
20888 これは,現行文書のファイル名を変更します.最後のチェックイン以降,変更が加えられていないサラの文書であることが要求されます.ファイル名とコピー操作の説明を入力す
20889 るように促され,その後,ローカルとリポジトリの両方でファイル名が変更されます.新旧ファイル名の文書の親ディレクトリが異なる場合には,コピーにインクルードされたフ
20890 ァイルの相対パスは,(
20891 \family sans
20892 ファイル\SpecialChar menuseparator
20893 名前をつけて保存\SpecialChar ldots
20894
20895 \family default
20896 と同様に)全て調整されます.最後に,新ファイル名を使ってファイルが再度読み込まれます.
20897 \end_layout
20898
20899 \begin_layout Labeling
20900 \labelwidthstring 00.00.0000
20901 GITコマンド:
20902 \end_layout
20903
20904 \begin_layout Labeling
20905 \labelwidthstring 00.00.0000
20906 \begin_inset Flex Code
20907 status collapsed
20908
20909 \begin_layout Plain Layout
20910 git mv "<ファイル名>" "<新ファイル名>"
20911 \end_layout
20912
20913 \end_inset
20914
20915
20916 \end_layout
20917
20918 \begin_layout Labeling
20919 \labelwidthstring 00.00.0000
20920 \begin_inset Flex Code
20921 status collapsed
20922
20923 \begin_layout Plain Layout
20924 git commit
20925 \end_layout
20926
20927 \end_inset
20928
20929
20930 \end_layout
20931
20932 \begin_layout Subsubsection
20933 履歴を表示
20934 \end_layout
20935
20936 \begin_layout Standard
20937 これは,GIT文書の全履歴を表示します.
20938 \begin_inset Flex Code
20939 status collapsed
20940
20941 \begin_layout Plain Layout
20942 git log 
20943 \begin_inset Quotes eld
20944 \end_inset
20945
20946 <ファイル名>
20947 \begin_inset Quotes erd
20948 \end_inset
20949
20950
20951 \end_layout
20952
20953 \end_inset
20954
20955 の出力がブラウザに表示されます.
20956 \end_layout
20957
20958 \begin_layout Subsubsection
20959 改訂情報
20960 \end_layout
20961
20962 \begin_layout Standard
20963 \SpecialChar LyX
20964 は,ファイルの最終コミットのGITハッシュ番号・著者名・最終コミットの日時をサポートします.これらの情報は,すべて
20965 \family typewriter
20966 git log -n 1 --pretty=format:%H%n%an%n%ai
20967 \family default
20968 によって抽出されます.ツリーバージョン情報は,
20969 \family typewriter
20970 git describe --abbrev --dirty --long
20971 \family default
20972 で取得されます.詳細については,第
20973 \begin_inset CommandInset ref
20974 LatexCommand ref
20975 reference "subsec:VCS改訂情報"
20976
20977 \end_inset
20978
20979 節を参照してください.
20980 \end_layout
20981
20982 \begin_layout Subsection
20983 さらなる調整
20984 \end_layout
20985
20986 \begin_layout Standard
20987 vcコマンド機構が最近になって付け加えられたおかげで,\SpecialChar LyX
20988 のパワーユーザは,改訂管理のための自製コマンドを作ることができるようになりました.
20989 \end_layout
20990
20991 \begin_layout Standard
20992 たとえば,以下のようにして,二つのTortoiseSVNコマンドを直接統合することができます.
20993 \end_layout
20994
20995 \begin_layout Description
20996 コミット: 
20997 \begin_inset Flex Code
20998 status collapsed
20999
21000 \begin_layout Plain Layout
21001 vc-command DR "." "TortoiseProc /command:commit /path:$$p"
21002 \end_layout
21003
21004 \end_inset
21005
21006
21007 \end_layout
21008
21009 \begin_layout Description
21010 元に戻す: 
21011 \begin_inset Flex Code
21012 status collapsed
21013
21014 \begin_layout Plain Layout
21015 vc-command DR "." "TortoiseProc /command:revert /path:$$p"
21016 \end_layout
21017
21018 \end_inset
21019
21020
21021 \end_layout
21022
21023 \begin_layout Subsection
21024 バージョン管理と文書比較
21025 \end_layout
21026
21027 \begin_layout Standard
21028 バージョン管理は,通常
21029 \begin_inset Flex Code
21030 status collapsed
21031
21032 \begin_layout Plain Layout
21033 diff
21034 \end_layout
21035
21036 \end_inset
21037
21038 ダンプを生成することによって,改訂版の間の変更点を検査するのが,典型的な使用法です.これは平文ファイルには有効なのですが,複雑な構造を持つ\SpecialChar LyX
21039 ファイルの場合には,あ
21040 まり便利ではありません.そこで,\SpecialChar LyX
21041 は独自の文書比較機能を提供しています.この機能を呼び出すには2つの方法があります.1つは,\SpecialChar LyX
21042
21043 \begin_inset Flex Code
21044 status collapsed
21045
21046 \begin_layout Plain Layout
21047 VC_COMPARE
21048 \end_layout
21049
21050 \end_inset
21051
21052 関数を直接呼び出す方法であり(詳細は\SpecialChar LyX
21053 関数説明書を参照),もう1つは
21054 \begin_inset Flex MenuItem
21055 status collapsed
21056
21057 \begin_layout Plain Layout
21058 旧改訂と比較\SpecialChar ldots
21059
21060 \end_layout
21061
21062 \end_inset
21063
21064 メニューないしアイコンを使用する方法です.当該文書のうち,任意の2つの改訂版を比較することもできますし,編集中の現行版を古い改訂版と比較することもできます(この
21065 とき改訂版遡及数「
21066 \begin_inset Flex MenuItem
21067 status collapsed
21068
21069 \begin_layout Plain Layout
21070 0
21071 \end_layout
21072
21073 \end_inset
21074
21075 」は,編集中のファイルと最後にコミットした改訂版との比較を意味します).
21076 \end_layout
21077
21078 \begin_layout Standard
21079 この機能は,SVNとRCSでサポートされていますが,RCSは,より複雑なバージョン付けスキームを持っているため,制約があります.ダイアログ中で改訂版を指定する際
21080 の数字は,つねにRCS改訂番号の最後の数を指し示します(例:「1.2.35」版のときには「35」).現在のところ,改訂のGIT表記はサポートされておらず,HEAD~
21081 Xの形で表記されるXステップ前の改訂版を,編集中文書と比較することのみが可能です.
21082 \end_layout
21083
21084 \begin_layout Section
21085 文芸プログラミング
21086 \end_layout
21087
21088 \begin_layout Standard
21089
21090 \noun on
21091 Kayvan Sylvan
21092 \noun default
21093 (kayvan@sylvan.com)改訂 
21094 \noun on
21095 Edmar Wienskoski Jr.
21096 \noun default
21097 (edmar-w-jr@technologist.com)原文
21098 \end_layout
21099
21100 \begin_layout Subsection
21101 はじめに
21102 \end_layout
21103
21104 \begin_layout Standard
21105 この節の主な目的は,文芸的プログラミング(literate programming)のために,\SpecialChar LyX
21106 をどう使えばよいかをお見せすることです.ここでは,あなたがこのプロ
21107 グラミング技術をよくご存じで,「tangling」や「weaving」の意味するところを知っているものとして説明します.そうでない場合には,以下の各節にあるウェ
21108 ブリンクをたどってください.そこには,かつての開発の歴史から最新のツールチップまで,たくさんの良質なドキュメンテーションがあります.
21109 \end_layout
21110
21111 \begin_layout Standard
21112 また,あなたが,\SpecialChar LyX
21113 の設定を変更することを厭わない程度まで\SpecialChar LyX
21114 に習熟しており,Xリソースファイルにも親しんでいることを前提にしています.そうでない場合は,あなたの必要と
21115 するトピックを扱っている,\SpecialChar LyX
21116 の他の説明書で調べてください.
21117 \end_layout
21118
21119 \begin_layout Subsection
21120 文芸プログラミング
21121 \end_layout
21122
21123 \begin_layout Standard
21124 以下は,文芸プログラミング FAQからの抜粋です.
21125 \end_layout
21126
21127 \begin_layout Quotation
21128 文芸プログラミングは,人間が読むのに適した形でのドキュメンテーションとソースの組合わせです.実際,文芸的プログラムは楽しい読み物であるべきであり,さらには参加し
21129 たいとさえ思わせるべきなのです!(ボブ,ごめん.言わずにはいれなかった.)一般的に,文芸プログラムは,ソースとドキュメンテーションを同一ファイル上に結合したもの
21130 です.そして,文芸プログラミングツールは,ファイルを解析して,読むことのできるドキュメンテーションか,あるいはコンパイル可能なソースを生成します.文芸プログラミ
21131 ングのWEBスタイルは,D.
21132 \begin_inset space \thinspace{}
21133 \end_inset
21134
21135 E.
21136  Knuthが,\SpecialChar TeX
21137 組版ソフトウエアを開発中に作り出したものです.
21138 \end_layout
21139
21140 \begin_layout Standard
21141 他のエキスパートの発言です.
21142 \end_layout
21143
21144 \begin_layout Quotation
21145
21146 \emph on
21147 文芸プログラミングは,冗長なコメント付けと何が違いますか?
21148 \end_layout
21149
21150 \begin_layout Quotation
21151 3つの際立った特徴があります.重要な順に列挙すれば,
21152 \begin_inset Separator latexpar
21153 \end_inset
21154
21155
21156 \end_layout
21157
21158 \begin_deeper
21159 \begin_layout Itemize
21160 推敲の順序が柔軟
21161 \end_layout
21162
21163 \begin_layout Itemize
21164 ブラウジングの自動サポート
21165 \end_layout
21166
21167 \begin_layout Itemize
21168 特に図式と数式を含んだドキュメンテーションの組版
21169 \end_layout
21170
21171 \end_deeper
21172 \begin_layout Quotation
21173 などがあります.
21174 \end_layout
21175
21176 \begin_layout Standard
21177 あなたの興味に火を付けたところで書誌情報を見てみましょう.
21178 \end_layout
21179
21180 \begin_layout Subsubsection
21181 書誌情報
21182 \end_layout
21183
21184 \begin_layout Standard
21185 完全な文芸プログラミング FAQは
21186 \end_layout
21187
21188 \begin_layout Quote
21189 Literate Programming FAQ 
21190 \begin_inset Flex URL
21191 status collapsed
21192
21193 \begin_layout Plain Layout
21194
21195 http://www.xmarks.com/site/shelob.ce.ttu.edu/daves/lpfaq/faq.html
21196 \end_layout
21197
21198 \end_inset
21199
21200
21201 \end_layout
21202
21203 \begin_layout Standard
21204 にあります.
21205 \end_layout
21206
21207 \begin_layout Standard
21208 このFAQには,23(二十三です!)の文芸プログラミング用ツールが列挙されています.一部のツールは,特定のプログラミング言語用に特化したものですが,一般的な対象
21209 を持つものもあります.私は自分で使うのに,いくつかの理由から
21210 \noun on
21211 Noweb
21212 \noun default
21213 を選びました.
21214 \end_layout
21215
21216 \begin_layout Itemize
21217 説明文書を\SpecialChar LaTeX
21218 でもHTMLでも出力できる.
21219 \end_layout
21220
21221 \begin_layout Itemize
21222 開放的なアーキテクチャに持っているので,新しいフィルタをプラグインとして加えたり,自分が必要な特別な処理を実行することが容易である.
21223 \end_layout
21224
21225 \begin_layout Itemize
21226 すでに利用可能となっているフィルタの良質なコレクションがある(HTMLはその一つです).
21227 \end_layout
21228
21229 \begin_layout Itemize
21230 無料である.
21231 \end_layout
21232
21233 \begin_layout Standard
21234 Nowebのウェブページは
21235 \end_layout
21236
21237 \begin_layout Quote
21238 Nowebホームページ 
21239 \begin_inset Flex URL
21240 status collapsed
21241
21242 \begin_layout Plain Layout
21243
21244 http://www.cs.virginia.edu/~nr/noweb/
21245 \end_layout
21246
21247 \end_inset
21248
21249
21250 \end_layout
21251
21252 \begin_layout Standard
21253 にあります.ここから始めれば,たくさんの興味深いリンクや,文芸プログラミングの用例にたどり着くことができます.
21254 \end_layout
21255
21256 \begin_layout Subsection
21257 \SpecialChar LyX
21258 とNowebを使った文芸プログラミング
21259 \end_layout
21260
21261 \begin_layout Standard
21262 \SpecialChar LyX
21263 における文芸プログラミングのサポートは,\SpecialChar LyX
21264 の汎用変換機構を使用して実現しています.このサポートは「Noweb非依存」的な方法で提供されているので,LyXの設定を変
21265 更するだけで,自分の好きな他の文芸プログラミングツールを使って,この新しい\SpecialChar LyX
21266 の機能を利用することができます.
21267 \end_layout
21268
21269 \begin_layout Subsubsection
21270 ドキュメントとコードの生成(weavingおよびtangling)
21271 \end_layout
21272
21273 \begin_layout Paragraph
21274 nowebモジュールの使用
21275 \end_layout
21276
21277 \begin_layout Standard
21278 Nowebと\SpecialChar LyX
21279 の導入に成功したならば,新規文書を開いたときにはいつも,文書クラスを選択した後,
21280 \family sans
21281 文書\SpecialChar menuseparator
21282 設定
21283 \family default
21284 メニューで「noweb」モジュールを追加するようにしてください.Nowebが正しく導入されていれば,「モジュール」リンクをクリックした際,利用可能リストに「no
21285 web」モジュールが表示され,文書に追加できるようになっています.
21286 \end_layout
21287
21288 \begin_layout Paragraph
21289 コードの入力
21290 \end_layout
21291
21292 \begin_layout Standard
21293 \SpecialChar LyX
21294 では,
21295 \begin_inset Flex Noun
21296 status collapsed
21297
21298 \begin_layout Plain Layout
21299 Chunk
21300 \end_layout
21301
21302 \end_inset
21303
21304 という名前のレイアウトを使えば,コードを入力することができます.Nowebは次のようにchunks を区切ります.
21305 \end_layout
21306
21307 \begin_layout LyX-Code
21308 <<My code>>=
21309 \end_layout
21310
21311 \begin_layout LyX-Code
21312   code
21313 \end_layout
21314
21315 \begin_layout LyX-Code
21316   more code
21317 \end_layout
21318
21319 \begin_layout LyX-Code
21320   even more code
21321 \end_layout
21322
21323 \begin_layout LyX-Code
21324   @
21325 \end_layout
21326
21327 \begin_layout Standard
21328 問題は<<と@の間にあるものを完全にそのままの形で扱わなければならないことです.つまり,\SpecialChar LyX
21329 は,この間に書かれたものを特別に解釈することは決してあってはなりません.
21330 これも
21331 \begin_inset Flex Noun
21332 status collapsed
21333
21334 \begin_layout Plain Layout
21335 Chunk
21336 \end_layout
21337
21338 \end_inset
21339
21340 によって取り扱われ,通常の段落のように見えますが,自由に空白を入れることができます.
21341 \end_layout
21342
21343 \begin_layout Standard
21344 特殊な注釈として,chunk内でNowebの「%def」を使えば,Nowebのidentifierの相互参照に項目を加えることができます.次の例を見てください.
21345 \end_layout
21346
21347 \begin_layout LyX-Code
21348 <<My chunk>>=
21349 \end_layout
21350
21351 \begin_layout LyX-Code
21352 def some_function(args):
21353 \end_layout
21354
21355 \begin_layout LyX-Code
21356    "This is the doc string for this function."
21357 \end_layout
21358
21359 \begin_layout LyX-Code
21360    print "My args: ", args
21361 \end_layout
21362
21363 \begin_layout LyX-Code
21364 @ %def some_function
21365 \end_layout
21366
21367 \begin_layout Standard
21368 これをどのように使って,その結果相互参照がどうなるかは
21369 \emph on
21370 LIBDIR/examples/listerrors.lyx
21371 \emph default
21372 の中の文芸pythonプログラムを見るとよくわかります.
21373 \end_layout
21374
21375 \begin_layout Paragraph
21376 説明文書の生成
21377 \end_layout
21378
21379 \begin_layout Standard
21380 この時点で,適切な文書クラスを持ち,いくつかのコードとテキストが入った新規文書ファイルが作成されているはずです.これをどうやって印刷したらいいのでしょう.答えは
21381 簡単で,通常の文書で行うように
21382 \family sans
21383 文書\SpecialChar menuseparator
21384 表示
21385 \family default
21386 等を選ぶだけです.特別な手続きは必要ありません.
21387 \end_layout
21388
21389 \begin_layout Standard
21390 理解を助けるために,\SpecialChar LyX
21391 の内部で何が起っているかを説明しておきましょう.
21392 \end_layout
21393
21394 \begin_layout Enumerate
21395
21396 \family sans
21397 文書\SpecialChar menuseparator
21398 更新
21399 \family default
21400 が選択されると,\SpecialChar LaTeX
21401 ファイルがつくられます.
21402 \begin_inset Separator latexpar
21403 \end_inset
21404
21405
21406 \end_layout
21407
21408 \begin_deeper
21409 \begin_layout Standard
21410 文書が文芸プログラミング用のクラスであった場合には,拡張子に(
21411 \begin_inset Flex MenuItem
21412 status collapsed
21413
21414 \begin_layout Plain Layout
21415 設定
21416 \end_layout
21417
21418 \end_inset
21419
21420 パネルで設定した)文芸プログラム用のものがつけられます.それ以外は .texが拡張子に使われます.
21421 \end_layout
21422
21423 \end_deeper
21424 \begin_layout Enumerate
21425 違いがファイル名だけなのに注意してください.\SpecialChar LyX
21426 による特別な処理は必要ありません.
21427 \begin_inset Flex Noun
21428 status collapsed
21429
21430 \begin_layout Plain Layout
21431 Chunk
21432 \end_layout
21433
21434 \end_inset
21435
21436 環境でコードを入力するのだけがポイントです.
21437 \end_layout
21438
21439 \begin_layout Enumerate
21440 文書が何らかの文芸プログラムクラスなら,\SpecialChar LyX
21441 は,\SpecialChar LyX
21442 からNowebへの内部変換子を用い,それからNowebから\SpecialChar LaTeX
21443 への変換子
21444 \begin_inset Foot
21445 status collapsed
21446
21447 \begin_layout Plain Layout
21448 これらの変換子は,
21449 \family sans
21450 ツール\SpecialChar menuseparator
21451 設定
21452 \family default
21453 パネルの変換子タブに定義されています.変換子の一般的な情報については,取扱説明書『
21454 \emph on
21455 カスタマイズ篇
21456 \emph default
21457 』の「
21458 \emph on
21459 変換子
21460 \emph default
21461 」の節をご覧ください.
21462 \end_layout
21463
21464 \end_inset
21465
21466 を使って\SpecialChar LaTeX
21467 ファイルを生成します.
21468 \begin_inset Separator latexpar
21469 \end_inset
21470
21471
21472 \end_layout
21473
21474 \begin_deeper
21475 \begin_layout Standard
21476 それ以外の場合はこのステップを飛ばします.
21477 \end_layout
21478
21479 \end_deeper
21480 \begin_layout Enumerate
21481 最後に\SpecialChar LaTeX
21482 が実行され,通常の文書と同じ後処理が行われます.
21483 \end_layout
21484
21485 \begin_layout Standard
21486 様々な変換子が実行するコマンドを変更すれば,簡単に,特定の「文芸プログラムツール」から変更することができます.
21487 \end_layout
21488
21489 \begin_layout Paragraph
21490 コードの生成
21491 \end_layout
21492
21493 \begin_layout Standard
21494 ビルドメニューが選ばれた場合や,それに対応するツールバーのボタンが押された場合,上のステップ1と同様に\SpecialChar LaTeX
21495 ファイルが生成されます.それから\SpecialChar LyX
21496
21497 \family typewriter
21498 Noweb->Program
21499 \family default
21500 のコンバータを起動します.通常は,このコンバータは(他のコンバータと同じように)2つの部分からできています.
21501 \end_layout
21502
21503 \begin_layout Enumerate
21504 変換プログラム.このプログラムは,一つのフォーマットから他のフォーマットへの変換を行います(この場合は,Nowebフォーマットからプログラムの疑似フォーマットへ
21505 変換します).
21506 \end_layout
21507
21508 \begin_layout Enumerate
21509 エラーログ解析子.これはエラーメッセージを\SpecialChar LyX
21510 が理解できる形へ書き直します.これによって,\SpecialChar LyX
21511 はファイルバッファの正しい位置へエラーボックスを配置することができます.
21512 \end_layout
21513
21514 \begin_layout Standard
21515 冒頭部,「変換子」設定は
21516 \begin_inset Newline newline
21517 \end_inset
21518
21519
21520 \begin_inset Quotes eld
21521 \end_inset
21522
21523
21524 \family typewriter
21525 build-script $$i $$r
21526 \family default
21527
21528 \begin_inset Quotes erd
21529 \end_inset
21530
21531
21532 \begin_inset Newline newline
21533 \end_inset
21534
21535 と指定します.これは基本的に,\SpecialChar LyX
21536
21537 \begin_inset Quotes erd
21538 \end_inset
21539
21540
21541 \family typewriter
21542 build-script
21543 \family default
21544
21545 \begin_inset Quotes erd
21546 \end_inset
21547
21548 (プログラムかスクリプト名)を(一般には\SpecialChar LyX
21549 の一時ファイル用のディレクトリにつくられる),Nowebファイルの名前と元の\SpecialChar LyX
21550 ファイルのディレクトリパスを使って呼び出すこ
21551 とを意味しています.
21552 \end_layout
21553
21554 \begin_layout Standard
21555 以下に「build-script」の一例を書いておきます.パスが通っているディレクトリに置いて使います.
21556 \end_layout
21557
21558 \begin_layout Standard
21559 \begin_inset VSpace defskip
21560 \end_inset
21561
21562
21563 \begin_inset Newpage pagebreak
21564 \end_inset
21565
21566
21567 \end_layout
21568
21569 \begin_layout Standard
21570
21571 \family sans
21572 #!/bin/sh
21573 \end_layout
21574
21575 \begin_layout Standard
21576
21577 \family sans
21578 #
21579 \end_layout
21580
21581 \begin_layout Standard
21582
21583 \family sans
21584 notangle -Rbuild-script $1 | env NOWEB_SOURCE=$1 NOWEB_OUTPUT_DIR=$2 sh
21585 \end_layout
21586
21587 \begin_layout Standard
21588 \begin_inset VSpace defskip
21589 \end_inset
21590
21591
21592 \end_layout
21593
21594 \begin_layout Standard
21595 変換子設定の次の部分は「フラグ」で,これは
21596 \begin_inset Quotes erd
21597 \end_inset
21598
21599
21600 \family typewriter
21601 parselog=$$s/scripts/listerrors
21602 \family default
21603
21604 \begin_inset Quotes erd
21605 \end_inset
21606
21607 に設定されます.
21608 \begin_inset Newline newline
21609 \end_inset
21610
21611 これは,
21612 \begin_inset Quotes erd
21613 \end_inset
21614
21615 build-script
21616 \begin_inset Quotes erd
21617 \end_inset
21618
21619 プロセスが生成したエラーを
21620 \begin_inset Quotes erd
21621 \end_inset
21622
21623 listerrors
21624 \begin_inset Quotes erd
21625 \end_inset
21626
21627 プログラムを介して処理するものです.
21628 \end_layout
21629
21630 \begin_layout Standard
21631 ビルドは,通常\SpecialChar LyX
21632 の一時ディレクトリで行われるので,変換によって生成されたファイルはそのディレクトリに置かれます.\SpecialChar LyX
21633 は,主要ファイルとみなされるものをコピーして取り出
21634 しますが,
21635 \family typewriter
21636 Noweb→プログラム
21637 \family default
21638 変換は複数のファイルを生成することがあるので,\SpecialChar LyX
21639 を閉じる際に大半が削除される可能性があります.これが,NOWEB_OUTPUT_DIR環境変数を渡して,build
21640 -script chunkが生成したファイルをその場所に置かれるようにする理由です.
21641 \end_layout
21642
21643 \begin_layout Paragraph
21644 文章中でのプログラムの構築操作の説明
21645 \end_layout
21646
21647 \begin_layout Standard
21648 \SpecialChar LyX
21649 とNowebの統合の最後の部分は,
21650 \begin_inset Quotes eld
21651 \end_inset
21652
21653 build-script
21654 \begin_inset Quotes erd
21655 \end_inset
21656
21657  chunkです.一般に,あなたのプログラムの構築操作の説明それ自身をchunkに入れて文章中に含めなければなりません.上の例のnoweb用のbuild-scr
21658 iptでは,chunkを見つけるのにnotangleコマンドを使い,shを使って起動します.
21659 \end_layout
21660
21661 \begin_layout Standard
21662 以下に典型的なchunkがどのようなものかを書いておきます.
21663 \end_layout
21664
21665 \begin_layout LyX-Code
21666 <<build-script>>=
21667 \begin_inset Newline newline
21668 \end_inset
21669
21670
21671 \end_layout
21672
21673 \begin_layout LyX-Code
21674 #!/bin/sh
21675 \begin_inset Newline newline
21676 \end_inset
21677
21678
21679 \begin_inset Newline newline
21680 \end_inset
21681
21682 if [ -z "${NOWEB_SOURCE}" ]
21683 \begin_inset Newline newline
21684 \end_inset
21685
21686 then
21687 \end_layout
21688
21689 \begin_layout LyX-Code
21690 NOWEB_SOURCE=myfile.nw
21691 \begin_inset Newline newline
21692 \end_inset
21693
21694 fi
21695 \begin_inset Newline newline
21696 \end_inset
21697
21698 [...
21699  code to extract files ...
21700  use NOWEB_OUTPUT_DIR here ...]
21701 \begin_inset Newline newline
21702 \end_inset
21703
21704 [...
21705  code to compile files ...]
21706 \begin_inset Newline newline
21707 \end_inset
21708
21709 @
21710 \end_layout
21711
21712 \begin_layout Standard
21713
21714 \emph on
21715 LIBDIR/examples/listerrors.lyx
21716 \emph default
21717
21718 \emph on
21719 LIBDIR/examples/Literate.lyx
21720 \emph default
21721 を見てください.この2つのファイルには異なる実装のlisterrorsプログラムが含まれていて,これまで説明してきた各々の部分が全体としてどのようになるかをわか
21722 ってもらうための例です.また,
21723 \emph on
21724 LIBDIR/examples/noweb2lyx.lyx
21725 \emph default
21726 も見てください.面白いことに,これらの3つのファイルは,Python,C,Perlが各々使われていて,\SpecialChar LyX
21727 の文芸プログラミングのサポートがプログラム言語に依存しない
21728 ことを示しています.
21729 \end_layout
21730
21731 \begin_layout Subsubsection
21732 \SpecialChar LyX
21733 の設定
21734 \end_layout
21735
21736 \begin_layout Standard
21737 すべての文芸プログラムのための設定は,
21738 \family sans
21739 ツール\SpecialChar menuseparator
21740 設定
21741 \family default
21742 パネルの「ファイル処理」タブですることができます.重要な部分を見ておきましょう.
21743 \end_layout
21744
21745 \begin_layout Description
21746 「NoWeb」形式 ファイル形式タブで設定します.ここで,Noweb特有の設定を行います.
21747 \family sans
21748 GUI名
21749 \family default
21750
21751 \family typewriter
21752 NoWeb
21753 \family default
21754 に,拡張子を
21755 \family typewriter
21756 .nw
21757 \family default
21758 に設定してください.これによって,\SpecialChar LyX
21759 に変換プロセスの第一段階でつくられるファイルに
21760 \family typewriter
21761 .nw
21762 \family default
21763 という拡張子をつけることを指示します.
21764 \end_layout
21765
21766 \begin_layout Description
21767 プログラム形式 これは,変換の終着点を示すためだけの,空の形式です(これがあることで,変換子を作ることができます).
21768 \end_layout
21769
21770 \begin_layout Description
21771
21772 \family sans
21773 NoWeb
21774 \family default
21775 ->
21776 \family sans
21777 \SpecialChar LaTeX
21778
21779 \family default
21780  この変換子は,文芸的文書の「weaving」を行います.Nowebの場合,「
21781 \family typewriter
21782 noweave -delay -index $$i > $$o
21783 \family default
21784 」に設定されます.
21785 \end_layout
21786
21787 \begin_layout Description
21788
21789 \family sans
21790 NoWeb
21791 \family default
21792 ->
21793 \family sans
21794 Program
21795 \family default
21796  これは「tangling」を行います.上述のように,変換子は「
21797 \family typewriter
21798 build-script $$i $$r
21799 \family default
21800 」,フラグは「
21801 \family typewriter
21802 parselog=$$s/scripts/listerrors
21803 \family default
21804 」となります.
21805 \end_layout
21806
21807 \begin_layout Subsubsection
21808 デバッグ機能拡張
21809 \end_layout
21810
21811 \begin_layout Standard
21812 ddd/gdbまたは他のデバッガで使える「server-goto-file-row」関数が新たに\SpecialChar LyX
21813 サーバに実装されました.
21814 \end_layout
21815
21816 \begin_layout Standard
21817 ddd/gdbでデバッグしているとき,一つの
21818 \begin_inset Flex Ruby
21819 status collapsed
21820
21821 \begin_layout Plain Layout
21822
21823 \begin_inset Argument post:1
21824 status collapsed
21825
21826 \begin_layout Plain Layout
21827 キー
21828 \end_layout
21829
21830 \end_inset
21831
21832
21833 \end_layout
21834
21835 \end_inset
21836
21837 ストロークで現在実行している位置でテキストエディタを起動できます.既定のdddの設定ではShift-Ctrl-Vになっています.この設定はdddで
21838 \begin_inset Flex MenuItem
21839 status collapsed
21840
21841 \begin_layout Plain Layout
21842 ツール\SpecialChar menuseparator
21843 設定\SpecialChar menuseparator
21844 ファイル書式
21845 \end_layout
21846
21847 \end_inset
21848
21849 ウインドウを表示して,
21850 \begin_inset Flex MenuItem
21851 status collapsed
21852
21853 \begin_layout Plain Layout
21854 編集プログラム
21855 \end_layout
21856
21857 \end_inset
21858
21859 エントリを変えると変えることができます.
21860 \end_layout
21861
21862 \begin_layout Standard
21863 新しい\SpecialChar LyX
21864 サーバの関数と,このdddの機能を使うために
21865 \begin_inset Flex MenuItem
21866 status collapsed
21867
21868 \begin_layout Plain Layout
21869 編集プログラム
21870 \end_layout
21871
21872 \end_inset
21873
21874 を次のように設定してください.
21875 \end_layout
21876
21877 \begin_layout Standard
21878 \begin_inset VSpace defskip
21879 \end_inset
21880
21881
21882 \end_layout
21883
21884 \begin_layout Standard
21885
21886 \family sans
21887 echo "LYXCMD:monitor:server-goto-file-row:@FILE@ @LINE@" >~/.lyxpipe.in
21888 \end_layout
21889
21890 \begin_layout Standard
21891 \begin_inset VSpace defskip
21892 \end_inset
21893
21894
21895 \end_layout
21896
21897 \begin_layout Standard
21898 こうしておくとdddを使っていてプログラムの編集したい場所があったとき,(dddのウインドウで)Shift-Ctrl-Vを押すだけでdddは\SpecialChar LyX
21899 サーバに情報を送り,\SpecialChar LyX
21900
21901 は同じファイルを表示し,カーソルはdddが示した場所へあらわれます.これでもうデバッグの最中に推測しながらスクロールして場所を探す必要がなくなります.
21902 \end_layout
21903
21904 \begin_layout Standard
21905 この機能が動くには\SpecialChar LyX
21906 サーバが利用可能でなければなりません(既定では\SpecialChar LyX
21907 サーバーは使えないようになっています).\SpecialChar LyX
21908 サーバを使えるようにするには,
21909 \family sans
21910
21911 \begin_inset Flex MenuItem
21912 status collapsed
21913
21914 \begin_layout Plain Layout
21915
21916 \family sans
21917 設定
21918 \end_layout
21919
21920 \end_inset
21921
21922
21923 \family default
21924 (
21925 \family sans
21926
21927 \begin_inset Flex MenuItem
21928 status collapsed
21929
21930 \begin_layout Plain Layout
21931
21932 \family sans
21933 パス
21934 \end_layout
21935
21936 \end_inset
21937
21938
21939 \family default
21940 タブ)の
21941 \family sans
21942
21943 \begin_inset Flex MenuItem
21944 status collapsed
21945
21946 \begin_layout Plain Layout
21947
21948 \family sans
21949 \SpecialChar LyX
21950 サーバーパイプ
21951 \family default
21952
21953 \end_layout
21954
21955 \end_inset
21956
21957
21958 \family default
21959
21960 \begin_inset Quotes eld
21961 \end_inset
21962
21963
21964 \family typewriter
21965 /home/<your-home-directory>/.lyx/lyxpipe
21966 \family default
21967
21968 \begin_inset Quotes erd
21969 \end_inset
21970
21971  のようにパスを指定してください.
21972 \end_layout
21973
21974 \begin_layout Standard
21975 詳しくは第
21976 \begin_inset CommandInset ref
21977 LatexCommand ref
21978 reference "chap:LyXサーバー"
21979
21980 \end_inset
21981
21982 章を読んでください.
21983 \end_layout
21984
21985 \begin_layout Subsubsection
21986 ツールバー拡張
21987 \end_layout
21988
21989 \begin_layout Standard
21990 ツールバーに加えることのできる6つの新しいボタンがあります.そのうちの5つのボタンは段落環境へのショートカットです.
21991 \family sans
21992 標準
21993 \family default
21994 ・節・
21995 \family sans
21996 \SpecialChar LaTeX
21997
21998 \family default
21999
22000 \family sans
22001 \SpecialChar LyX
22002 コード
22003 \family default
22004
22005 \family sans
22006 Chunk
22007 \family default
22008 環境用のボタンを用意しています.最後の一つはファイルメニュー項目の「Build Program」への
22009 \begin_inset Flex Ruby
22010 status collapsed
22011
22012 \begin_layout Plain Layout
22013
22014 \family roman
22015 \series medium
22016 \shape up
22017 \size normal
22018 \emph off
22019 \bar no
22020 \noun off
22021 \color none
22022 捷径
22023 \family default
22024 \series default
22025 \shape default
22026 \size default
22027 \emph default
22028 \bar default
22029 \noun default
22030 \color inherit
22031
22032 \begin_inset Argument post:1
22033 status collapsed
22034
22035 \begin_layout Plain Layout
22036 ショートカット
22037 \end_layout
22038
22039 \end_inset
22040
22041
22042 \end_layout
22043
22044 \end_inset
22045
22046 です.
22047 \end_layout
22048
22049 \begin_layout Standard
22050 \SpecialChar LyX
22051 はツールバーで使うためのいくつものボタンを用意しています.私のツールバーはこの6つのショートカットに
22052 \begin_inset Flex MenuItem
22053 status collapsed
22054
22055 \begin_layout Plain Layout
22056 文書\SpecialChar menuseparator
22057 更新\SpecialChar menuseparator
22058 DVI
22059 \end_layout
22060
22061 \end_inset
22062
22063
22064 \begin_inset Flex MenuItem
22065 status collapsed
22066
22067 \begin_layout Plain Layout
22068 文書\SpecialChar menuseparator
22069 表示\SpecialChar menuseparator
22070 DVI
22071 \end_layout
22072
22073 \end_inset
22074
22075 を組み合わせたものになっています.
22076 \end_layout
22077
22078 \begin_layout LyX-Code
22079 Toolbar
22080 \end_layout
22081
22082 \begin_layout LyX-Code
22083   Layouts
22084 \end_layout
22085
22086 \begin_layout LyX-Code
22087   Icon "layout Standard"
22088 \end_layout
22089
22090 \begin_layout LyX-Code
22091   Icon "layout Section"
22092 \end_layout
22093
22094 \begin_layout LyX-Code
22095   Icon "layout \SpecialChar LaTeX
22096 "
22097 \end_layout
22098
22099 \begin_layout LyX-Code
22100   Icon "layout \SpecialChar LyX
22101 -Code"
22102 \end_layout
22103
22104 \begin_layout LyX-Code
22105   Icon "layout Chunk"
22106 \end_layout
22107
22108 \begin_layout LyX-Code
22109   Separator
22110 \end_layout
22111
22112 \begin_layout LyX-Code
22113   Icon "buffer-view"
22114 \end_layout
22115
22116 \begin_layout LyX-Code
22117   Icon "buffer-typeset"
22118 \end_layout
22119
22120 \begin_layout LyX-Code
22121   Icon "build-program"
22122 \end_layout
22123
22124 \begin_layout LyX-Code
22125   Separator
22126 \end_layout
22127
22128 \begin_layout LyX-Code
22129 .
22130 \end_layout
22131
22132 \begin_layout LyX-Code
22133 .
22134 \end_layout
22135
22136 \begin_layout LyX-Code
22137 .
22138 \end_layout
22139
22140 \begin_layout LyX-Code
22141 End
22142 \end_layout
22143
22144 \begin_layout Subsubsection
22145 色の変更
22146 \end_layout
22147
22148 \begin_layout Standard
22149 \SpecialChar LyX
22150 ではいくつもの色を
22151 \begin_inset Flex MenuItem
22152 status collapsed
22153
22154 \begin_layout Plain Layout
22155 設定
22156 \end_layout
22157
22158 \end_inset
22159
22160 で変えることができます.人々が困りがちなのは,\SpecialChar LaTeX
22161 フォント色でしょう.これは,既定では赤になっていますが,chunkは\SpecialChar LaTeX
22162 フォントを使うことになっていて,文芸プログラミ
22163 ング文書には多くのchunkが現れるために,すべて赤で見ていると疲れてしまうかもしれません.これは,
22164 \begin_inset Flex MenuItem
22165 status collapsed
22166
22167 \begin_layout Plain Layout
22168 操作性\SpecialChar menuseparator
22169
22170 \end_layout
22171
22172 \end_inset
22173
22174 タブで変更することができます.
22175 \end_layout
22176
22177 \begin_layout Standard
22178 もう一つは,改行文字が画面に表示されていることでしょう.改行文字の色を背景の色と同じにすることで改行文字を見えなくできます.私は改行文字を背景の色に似ているが少
22179 し違う色にすることを勧めます.こうすると,改行文字があるのはわかりますが,じゃまにならないでしょう.
22180 \end_layout
22181
22182 \begin_layout Subsection
22183 \SpecialChar LyX
22184 とknitr/Sweave
22185 \end_layout
22186
22187 \begin_layout Standard
22188 knitrとSweaveへのサポートについては,用例ファイル
22189 \emph on
22190 knitr.lyx
22191 \emph default
22192 とSweave取扱説明書(
22193 \family sans
22194 ヘルプ\SpecialChar menuseparator
22195 用途別説明書
22196 \family default
22197 メニュー)に説明があります.
22198 \end_layout
22199
22200 \begin_layout Chapter
22201 特殊機能
22202 \begin_inset CommandInset label
22203 LatexCommand label
22204 name "chap:Special-features"
22205
22206 \end_inset
22207
22208
22209 \end_layout
22210
22211 \begin_layout Standard
22212 \SpecialChar LyX
22213 では,\SpecialChar LaTeX
22214 で可能なことは何でも出来ます.すべての\SpecialChar LaTeX
22215 の機能を直接サポートできるわけではありませんが,どんな場合でも\SpecialChar TeX
22216 コードを使用することはできます.本章は,ユーザの興味が
22217 有りそうな特別な機能について,若干取り上げます.図表やフロート,ボックス,注釈に関する特別な機能については,取扱説明書『
22218 \emph on
22219 埋込オブジェクト篇
22220 \emph default
22221 』をご参照ください.
22222 \end_layout
22223
22224 \begin_layout Section
22225 多段組
22226 \end_layout
22227
22228 \begin_layout Standard
22229 この機能は,文書設定の
22230 \family sans
22231 本文レイアウト
22232 \family default
22233 にある
22234 \family sans
22235 二段組文書
22236 \family default
22237 とは別の機能です.文書全体に二段組を行いたい場合には,
22238 \family sans
22239 二段組文書
22240 \family default
22241 オプションを利用することをお勧めします.その他の場合には,本機能をご使用ください.
22242 \end_layout
22243
22244 \begin_layout Standard
22245 文書中で多段組を行うには,\SpecialChar LaTeX
22246 パッケージ
22247 \series bold
22248 multicol
22249 \series default
22250
22251 \begin_inset Index idx
22252 status collapsed
22253
22254 \begin_layout Plain Layout
22255 \SpecialChar LaTeX
22256 ぱっけーじ @ \SpecialChar LaTeX
22257 パッケージ ! multicol
22258 \end_layout
22259
22260 \end_inset
22261
22262 を導入した上で,(
22263 \family sans
22264 文書\SpecialChar menuseparator
22265 設定\SpecialChar menuseparator
22266 モジュール
22267 \family default
22268 メニューから)
22269 \family sans
22270 多段組
22271 \family default
22272 モジュールを読み込んでください.
22273 \end_layout
22274
22275 \begin_layout Standard
22276 多段組中の脚注は,ページ下部に置かれ,各段の下ごとには置かれません.各段においては,フロートに
22277 \family sans
22278 段をまたぐ
22279 \family default
22280 オプションを使用する必要があるほかは,通常通りの使用をすることができます.
22281 \end_layout
22282
22283 \begin_layout Subsection
22284 基本
22285 \end_layout
22286
22287 \begin_layout Standard
22288 文章中で二段組を使用したい場合には,段組を始める場所で
22289 \family sans
22290 挿入\SpecialChar menuseparator
22291 任意設定差込枠\SpecialChar menuseparator
22292 多段組
22293 \family default
22294 メニューを使用して,多段組差込枠を挿入してください.二段組で印字されるべき文章は,全てこの差込枠の中に書いてください.
22295 \end_layout
22296
22297 \begin_layout Standard
22298 下記はその用例です.
22299 \end_layout
22300
22301 \begin_layout Standard
22302 \noindent
22303 \begin_inset Flex Multiple Columns
22304 status open
22305
22306 \begin_layout Plain Layout
22307 \noindent
22308
22309 \series bold
22310 \size small
22311 The Adventure of the Empty House
22312 \series default
22313
22314 \begin_inset Newline newline
22315 \end_inset
22316
22317 by Sir Arthur Conan Doyle
22318 \end_layout
22319
22320 \begin_layout Plain Layout
22321
22322 \size small
22323 It was in the spring of the year 1894 that all London was interested, and
22324  the fashionable world dismayed, by the murder of the Honourable Ronald
22325  Adair under most unusual and inexplicable circumstances.
22326  The public has already learned those particulars of the crime which came
22327  out in the police investigation, but a good deal was suppressed upon that
22328  occasion, since the case for the prosecution was so overwhelmingly strong
22329  that it was not necessary to bring forward all the facts.
22330  Only now, at the end of nearly ten years, am I allowed to supply those
22331  missing links which make up the whole of that remarkable chain.
22332  The crime was of interest in itself, but that interest was as nothing to
22333  me compared to the inconceivable sequel, which afforded me the greatest
22334  shock and surprise of any event in my adventurous life.
22335  Even now, after this long interval, I find myself thrilling as I think
22336  of it, and feeling once more that sudden flood of joy, amazement, and increduli
22337 ty which utterly submerged my mind.
22338  Let me say to that public, which has shown some interest in those glimpses
22339  which I have occasionally given them of the thoughts and actions of a very
22340  remarkable man, that they are not to blame me if I have not shared my knowledge
22341  with them, for I should have considered it my first duty to do so, had
22342  I not been barred by a positive prohibition from his own lips, which was
22343  only withdrawn upon the third of last month.
22344 \end_layout
22345
22346 \end_inset
22347
22348
22349 \end_layout
22350
22351 \begin_layout Standard
22352 三段以上にするには,カーソルを多段組差込枠の内部において,挿入\SpecialChar menuseparator
22353 段数メニューを使用してください.この差込枠の中に,欲しい段数を書き入れます(三段組の場合には「3」
22354 と書きます).
22355 \begin_inset Newline newline
22356 \end_inset
22357
22358 下記は三段組の例です.
22359 \end_layout
22360
22361 \begin_layout Standard
22362 \begin_inset Flex Multiple Columns
22363 status open
22364
22365 \begin_layout Plain Layout
22366
22367 \size footnotesize
22368 \begin_inset Argument 1
22369 status open
22370
22371 \begin_layout Plain Layout
22372 3
22373 \end_layout
22374
22375 \end_inset
22376
22377 It can be imagined that my close intimacy with Sherlock Holmes had interested
22378  me deeply in crime, and that after his disappearance I never failed to
22379  read with care the various problems which came before the public.
22380  And I even attempted, more than once, for my own private satisfaction,
22381  to employ his methods in their solution, though with indifferent success.
22382  There was none, however, which appealed to me like this tragedy of Ronald
22383  Adair.
22384  As I read the evidence at the inquest, which led up to a verdict of willful
22385  murder against some person or persons unknown, I realized more clearly
22386  than I had ever done the loss which the community had sustained by the
22387  death of Sherlock Holmes.
22388  There were points about this strange business which would, I was sure,
22389  have specially appealed to him, and the efforts of the police would have
22390  been supplemented, or more probably anticipated, by the trained observation
22391  and the alert mind of the first criminal agent in Europe.
22392  All day, as I drove upon my round, I turned over the case in my mind and
22393  found no explanation which appeared to me to be adequate.
22394  At the risk of telling a twice-told tale, I will recapitulate the facts
22395  as they were known to the public at the conclusion of the inquest.
22396 \end_layout
22397
22398 \end_inset
22399
22400
22401 \end_layout
22402
22403 \begin_layout Standard
22404 お望みならば10段組まで組むことができますが,文書の読者にとっては,あまり気持ちのいいものではないでしょう.
22405 \end_layout
22406
22407 \begin_layout Standard
22408 \begin_inset Newpage newpage
22409 \end_inset
22410
22411
22412 \end_layout
22413
22414 \begin_layout Subsection
22415 段組中の段組
22416 \end_layout
22417
22418 \begin_layout Standard
22419 また,段中に段を組むこともできます.
22420 \end_layout
22421
22422 \begin_layout Standard
22423 \begin_inset Flex Multiple Columns
22424 status open
22425
22426 \begin_layout Plain Layout
22427
22428 \size footnotesize
22429 The Honourable Ronald Adair was the second son of the Earl of Maynooth,
22430  at that time governor of one of the Australian colonies.
22431  Adair's mother had returned from Australia to undergo the operation for
22432  cataract, and she, her son Ronald, and her daughter Hilda were living together
22433  at 427 Park Lane.
22434 \end_layout
22435
22436 \begin_layout Plain Layout
22437 \begin_inset Flex Multiple Columns
22438 status open
22439
22440 \begin_layout Plain Layout
22441
22442 \size footnotesize
22443 The youth moved in the best society–had, so far as was known, no enemies
22444  and no particular vices.
22445  He had been engaged to Miss Edith Woodley, of Carstairs, but the engagement
22446  had been broken off by mutual consent some months before, and there was
22447  no sign that it had left any very profound feeling behind it.
22448  For the rest {sic} the man's life moved in a narrow and conventional circle,
22449  for his habits were quiet and his nature unemotional.
22450  Yet it was upon this easy-going young aristocrat that death came, in most
22451  strange and unexpected form, between the hours of ten and eleven-twenty
22452  on the night of March 30, 1894.
22453 \end_layout
22454
22455 \end_inset
22456
22457
22458 \end_layout
22459
22460 \begin_layout Plain Layout
22461
22462 \size footnotesize
22463 Ronald Adair was fond of cards–playing continually, but never for such stakes
22464  as would hurt him.
22465  He was a member of the Baldwin, the Cavendish, and the Bagatelle card clubs.
22466  It was shown that, after dinner on the day of his death, he had played
22467  a rubber of whist at the latter club.
22468  He had also played there in the afternoon.
22469
22470 \size default
22471  
22472 \size footnotesize
22473 The evidence of those who had played with him– Mr.
22474  Murray, Sir John Hardy, and Colonel Moran–showed that the game was whist,
22475  and that there was a fairly equal fall of the cards.
22476  Adair might have lost five pounds, but not more.
22477  His fortune was a considerable one, and such a loss could not in any way
22478  affect him.
22479  He had played nearly every day at one club or other, but he was a cautious
22480  player, and usually rose a winner.
22481  It came out in evidence that, in partnership with Colonel Moran, he had
22482  actually won as much as four hundred and twenty pounds in a sitting, some
22483  weeks before, from Godfrey Milner and Lord Balmoral.
22484  So much for his recent history as it came out at the inquest.
22485 \end_layout
22486
22487 \end_inset
22488
22489
22490 \end_layout
22491
22492 \begin_layout Subsection
22493 応用例
22494 \end_layout
22495
22496 \begin_layout Standard
22497 本節の用例は,多段組のさらに特別な機能を示すためのものです.
22498 \end_layout
22499
22500 \begin_layout Standard
22501 多段組機能についてさらに知りたい場合には,\SpecialChar LaTeX
22502 パッケージ
22503 \series bold
22504 multicol
22505 \series default
22506
22507 \begin_inset CommandInset citation
22508 LatexCommand cite
22509 key "multicol"
22510
22511 \end_inset
22512
22513 の取扱説明書をご覧ください.
22514 \end_layout
22515
22516 \begin_layout Subsubsection
22517 序文
22518 \end_layout
22519
22520 \begin_layout Standard
22521 多段組に序文を追記するには,カーソルを多段組差込枠内部に置き,
22522 \family sans
22523 挿入\SpecialChar menuseparator
22524 序文
22525 \family default
22526 メニューを使用してください.序文は,この差込枠内に書いてください.
22527 \begin_inset Newline newline
22528 \end_inset
22529
22530 序文のある文章の例を掲げます.
22531 \end_layout
22532
22533 \begin_layout Standard
22534 \begin_inset VSpace bigskip
22535 \end_inset
22536
22537
22538 \end_layout
22539
22540 \begin_layout Standard
22541 \begin_inset Flex Multiple Columns
22542 status open
22543
22544 \begin_layout Plain Layout
22545 \begin_inset Argument 2
22546 status open
22547
22548 \begin_layout Plain Layout
22549 And the story continues and continues and continues and continues\SpecialChar ldots
22550
22551 \end_layout
22552
22553 \end_inset
22554
22555
22556 \size small
22557 On the evening of the crime, he returned from the club exactly at ten.
22558  His mother and sister were out spending the evening with a relation.
22559  The servant deposed that she heard him enter the front room on the second
22560  floor, generally used as his sitting-room.
22561  She had lit a fire there, and as it smoked she had opened the window.
22562  No sound was heard from the room until eleven-twenty, the hour of the return
22563  of Lady Maynooth and her daughter.
22564  Desiring to say good-night, she attempted to enter her son's room.
22565  The door was locked on the inside, and no answer could be got to their
22566  cries and knocking.
22567  Help was obtained, and the door forced.
22568  The unfortunate young man was found lying near the table.
22569  His head had been horribly mutilated by an expanding revolver bullet, but
22570  no weapon of any sort was to be found in the room.
22571 \end_layout
22572
22573 \end_inset
22574
22575
22576 \end_layout
22577
22578 \begin_layout Standard
22579 最初の\SpecialChar TeX
22580 コードの後に,節宣言コマンドを\SpecialChar TeX
22581 コードとして使用すれば,節見出しを前書きとして使用することができます.例えば,
22582 \end_layout
22583
22584 \begin_layout Standard
22585
22586 \series bold
22587
22588 \backslash
22589 subsection{小節見出し}
22590 \end_layout
22591
22592 \begin_layout Standard
22593 というコマンドは,小節を生成します.以下の例では,前書きが小々節になっています.
22594 \end_layout
22595
22596 \begin_layout Standard
22597 \begin_inset Flex Multiple Columns
22598 status open
22599
22600 \begin_layout Plain Layout
22601 \begin_inset Argument 2
22602 status open
22603
22604 \begin_layout Plain Layout
22605 \begin_inset ERT
22606 status collapsed
22607
22608 \begin_layout Plain Layout
22609
22610
22611 \backslash
22612 subsubsection{
22613 \end_layout
22614
22615 \end_inset
22616
22617 これは序文の小々節見出しです
22618 \begin_inset ERT
22619 status collapsed
22620
22621 \begin_layout Plain Layout
22622
22623 }
22624 \end_layout
22625
22626 \end_inset
22627
22628
22629 \end_layout
22630
22631 \end_inset
22632
22633
22634 \size small
22635 A minute examination of the circumstances served only to make the case more
22636  complex.
22637  In the first place, no reason could be given why the young man should have
22638  fastened the door upon the inside.
22639  There was the possibility that the murderer had done this, and had afterwards
22640  escaped by the window.
22641  The drop was at least twenty feet, however, and a bed of crocuses in full
22642  bloom lay beneath.
22643  Neither the flowers nor the earth showed any sign of having been disturbed,
22644  nor were there any marks upon the narrow strip of grass which separated
22645  the house from the road.
22646  Apparently, therefore, it was the young man himself who had fastened the
22647  door.
22648  But how did he come by his death? No one could have climbed up to the window
22649  without leaving traces.
22650  Suppose a man had fired through the window, he would indeed be a remarkable
22651  shot who could with a revolver inflict so deadly a wound.
22652  Again, Park Lane is a frequented thoroughfare; there is a cab stand within
22653  a hundred yards of the house.
22654  No one had heard a shot.
22655 \end_layout
22656
22657 \end_inset
22658
22659
22660 \end_layout
22661
22662 \begin_layout Standard
22663 多段組を開始する部分に,必要とされる6行を確保出来るだけの垂直スペースがページに残されていない場合,多段組の前に改行が挿入されます.前書きの行数如何では,この必
22664 要行数を変更したいかもしれません.これは,カーソルを多段組差込枠内部の(もしあれば)序文の後に置き,
22665 \family sans
22666 挿入\SpecialChar menuseparator
22667 改頁前の余白
22668 \family default
22669 メニューを使用することで設定できます.この差込枠に,余白の大きさを「5cm」などと書き込んでください.
22670 \end_layout
22671
22672 \begin_layout Standard
22673 以下の例では,「7
22674 \backslash
22675 baselineskip」を用いて,必要行数を7行に指定しています(コマンド
22676 \series bold
22677
22678 \backslash
22679 baselineskip
22680 \series default
22681 は\SpecialChar TeX
22682 コードとして入力する必要があります).
22683 \end_layout
22684
22685 \begin_layout Standard
22686 \begin_inset Flex Multiple Columns
22687 status open
22688
22689 \begin_layout Plain Layout
22690 \begin_inset Argument 3
22691 status open
22692
22693 \begin_layout Plain Layout
22694 7
22695 \begin_inset ERT
22696 status collapsed
22697
22698 \begin_layout Plain Layout
22699
22700
22701 \backslash
22702 baselineskip
22703 \end_layout
22704
22705 \end_inset
22706
22707
22708 \end_layout
22709
22710 \end_inset
22711
22712
22713 \size small
22714 On the evening of the crime, he returned from the club exactly at ten.
22715  His mother and sister were out spending the evening with a relation.
22716  The servant deposed that she heard him enter the front room on the second
22717  floor, generally used as his sitting-room.
22718  She had lit a fire there, and as it smoked she had opened the window.
22719  No sound was heard from the room until eleven-twenty, the hour of the return
22720  of Lady Maynooth and her daughter.
22721  Desiring to say good-night, she attempted to enter her son's room.
22722  The door was locked on the inside, and no answer could be got to their
22723  cries and knocking.
22724  Help was obtained, and the door forced.
22725  The unfortunate young man was found lying near the table.
22726  His head had been horribly mutilated by an expanding revolver bullet, but
22727  no weapon of any sort was to be found in the room.
22728 \end_layout
22729
22730 \end_inset
22731
22732
22733 \end_layout
22734
22735 \begin_layout Subsubsection
22736 周囲の余白
22737 \end_layout
22738
22739 \begin_layout Standard
22740 多段組の前後の余白は,長さ
22741 \series bold
22742
22743 \backslash
22744 multicolsep
22745 \series default
22746 を変えることで変更することができます.例えば,\SpecialChar TeX
22747 コードで書かれたコマンド
22748 \end_layout
22749
22750 \begin_layout Standard
22751
22752 \series bold
22753
22754 \backslash
22755 setlength{
22756 \backslash
22757 multicolsep}{3cm}
22758 \end_layout
22759
22760 \begin_layout Standard
22761 は,その値を3
22762 \begin_inset space \thinspace{}
22763 \end_inset
22764
22765 cmに変更します.この変更は,多段組が始まる前に指定しなくてはなりません.既定値は13
22766 \begin_inset space \thinspace{}
22767 \end_inset
22768
22769 ptです.
22770 \end_layout
22771
22772 \begin_layout Standard
22773 以下の例では,
22774 \series bold
22775
22776 \backslash
22777 multicolsep
22778 \series default
22779 は2.5
22780 \begin_inset space \thinspace{}
22781 \end_inset
22782
22783 cmに指定されています.
22784 \end_layout
22785
22786 \begin_layout Standard
22787 \begin_inset ERT
22788 status open
22789
22790 \begin_layout Plain Layout
22791
22792
22793 \backslash
22794 setlength{
22795 \backslash
22796 multicolsep}{2.5cm}
22797 \end_layout
22798
22799 \end_inset
22800
22801
22802 \end_layout
22803
22804 \begin_layout Standard
22805 \begin_inset Flex Multiple Columns
22806 status open
22807
22808 \begin_layout Plain Layout
22809
22810 \size small
22811 All day I turned these facts over in my mind, endeavouring to hit upon some
22812  theory which could reconcile them all, and to find that line of least resistanc
22813 e which my poor friend had declared to be the starting-point of every investigat
22814 ion.
22815  I confess that I made little progress.
22816  In the evening I strolled across the Park, and found myself about six o'clock
22817  at the Oxford Street end of Park Lane.
22818  A group of loafers upon the pavements, all staring up at a particular window,
22819  directed me to the house which I had come to see.
22820  A tall, thin man with coloured glasses, whom I strongly suspected of being
22821  a plain-clothes detective, was pointing out some theory of his own, while
22822  the others crowded round to listen to what he said.
22823  I got as near him as I could, but his observations seemed to me to be absurd,
22824  so I withdrew again in some disgust.
22825  As I did so I struck against an elderly, deformed man, who had been behind
22826  me, and I knocked down several books which he was carrying.
22827 \end_layout
22828
22829 \end_inset
22830
22831
22832 \end_layout
22833
22834 \begin_layout Standard
22835 \begin_inset Note Greyedout
22836 status open
22837
22838 \begin_layout Plain Layout
22839
22840 \series bold
22841 【註】
22842 \backslash
22843 setlength
22844 \series default
22845 で指定した値は,再度変更されるまでは,以降のすべての多段組で使用されます.
22846 \end_layout
22847
22848 \end_inset
22849
22850
22851 \end_layout
22852
22853 \begin_layout Standard
22854 \begin_inset ERT
22855 status collapsed
22856
22857 \begin_layout Plain Layout
22858
22859
22860 \backslash
22861 setlength{
22862 \backslash
22863 multicolsep}{13pt}
22864 \end_layout
22865
22866 \end_inset
22867
22868
22869 \begin_inset Note Note
22870 status collapsed
22871
22872 \begin_layout Plain Layout
22873
22874 \lang english
22875 go back to the default
22876 \end_layout
22877
22878 \end_inset
22879
22880
22881 \end_layout
22882
22883 \begin_layout Standard
22884 \begin_inset Newpage newpage
22885 \end_inset
22886
22887
22888 \end_layout
22889
22890 \begin_layout Subsubsection
22891 改段
22892 \end_layout
22893
22894 \begin_layout Standard
22895 改段は,文章中の階段を行いたい位置に,\SpecialChar TeX
22896 コードで,コマンド
22897 \series bold
22898
22899 \backslash
22900 columnbreak{}
22901 \series default
22902 を挿入すれば,強制的に行うことができます.ただし,多くの場合,文章中に空白が挿入されることに注意してください.
22903 \begin_inset Newline newline
22904 \end_inset
22905
22906 以下が用例です.
22907 \end_layout
22908
22909 \begin_layout Standard
22910 \begin_inset Flex Multiple Columns
22911 status open
22912
22913 \begin_layout Plain Layout
22914
22915 \size small
22916 \begin_inset Quotes eld
22917 \end_inset
22918
22919 You're surprised to see me, sir,
22920 \begin_inset Quotes erd
22921 \end_inset
22922
22923  said he, in a strange, croaking voice.
22924 \end_layout
22925
22926 \begin_layout Plain Layout
22927
22928 \size small
22929 I acknowledged that I was.
22930 \end_layout
22931
22932 \begin_layout Plain Layout
22933
22934 \size small
22935 \begin_inset Quotes eld
22936 \end_inset
22937
22938 Well, I've a conscience, sir, and when I chanced to see you go into this
22939  house, as I came hobbling after you, I thought to myself, I'll just step
22940  in and see that kind gentleman, and tell him that if I was a bit gruff
22941  in my manner there was not any harm meant, and that I am much obliged to
22942  him for picking up my books.
22943 \begin_inset Quotes erd
22944 \end_inset
22945
22946
22947 \end_layout
22948
22949 \begin_layout Plain Layout
22950
22951 \size small
22952 \begin_inset Quotes eld
22953 \end_inset
22954
22955 You make too much of a trifle,
22956 \begin_inset Quotes erd
22957 \end_inset
22958
22959  said I.
22960  
22961 \begin_inset Quotes eld
22962 \end_inset
22963
22964 May I ask how you knew who I was?
22965 \begin_inset Quotes erd
22966 \end_inset
22967
22968  AFTER THIS SENTENCE THE COLUMN BREAK IS FORCED.
22969 \begin_inset ERT
22970 status collapsed
22971
22972 \begin_layout Plain Layout
22973
22974
22975 \backslash
22976 columnbreak{}
22977 \end_layout
22978
22979 \end_inset
22980
22981
22982 \end_layout
22983
22984 \begin_layout Plain Layout
22985
22986 \size small
22987 \begin_inset Quotes eld
22988 \end_inset
22989
22990 Well, sir, if it isn't too great a liberty, I am a neighbour of yours, for
22991  you'll find my little bookshop at the corner of Church Street, and very
22992  happy to see you, I am sure.
22993  Maybe you collect yourself, sir.
22994  Here's 
22995 \noun on
22996 British
22997 \begin_inset space ~
22998 \end_inset
22999
23000 Birds
23001 \noun default
23002 , and 
23003 \noun on
23004 Catullus
23005 \noun default
23006 , and 
23007 \noun on
23008 The Holy War
23009 \noun default
23010 –a bargain, every one of them.
23011  With five volumes you could just fill that gap on that second shelf.
23012  It looks untidy, does it not, sir?
23013 \begin_inset Quotes erd
23014 \end_inset
23015
23016
23017 \end_layout
23018
23019 \end_inset
23020
23021
23022 \end_layout
23023
23024 \begin_layout Subsubsection
23025 段間隔
23026 \end_layout
23027
23028 \begin_layout Standard
23029 段幅は自動的に計算されますが,段の間の余白は指定することができます.これは,長さ
23030 \series bold
23031
23032 \backslash
23033 columnsep
23034 \series default
23035 を変更することで実現できます.既定値は10
23036 \begin_inset space \thinspace{}
23037 \end_inset
23038
23039 ptです.以下は
23040 \series bold
23041
23042 \backslash
23043 columnsep
23044 \series default
23045 を3
23046 \begin_inset space \thinspace{}
23047 \end_inset
23048
23049 cmに設定した例です.
23050 \end_layout
23051
23052 \begin_layout Standard
23053 \begin_inset ERT
23054 status open
23055
23056 \begin_layout Plain Layout
23057
23058
23059 \backslash
23060 setlength{
23061 \backslash
23062 columnsep}{3cm}
23063 \end_layout
23064
23065 \end_inset
23066
23067
23068 \end_layout
23069
23070 \begin_layout Standard
23071 \begin_inset Flex Multiple Columns
23072 status open
23073
23074 \begin_layout Plain Layout
23075
23076 \size small
23077 My observations of No.
23078 \begin_inset space \space{}
23079 \end_inset
23080
23081 427 Park Lane did little to clear up the problem in which I was interested.
23082  The house was separated from the street by a low wall and railing, the
23083  whole not more than five feet high.
23084  It was perfectly easy, therefore, for anyone to get into the garden, but
23085  the window was entirely inaccessible, since there was no water pipe or
23086  anything which could help the most active man to climb it.
23087  More puzzled than ever, I retraced my steps to Kensington.
23088  I had not been in my study five minutes when the maid entered to say that
23089  a person desired to see me.
23090  To my astonishment it was none other than my strange old book collector,
23091  his sharp, wizened face peering out from a frame of white hair, and his
23092  precious volumes, a dozen of them at least, wedged under his right arm.
23093 \end_layout
23094
23095 \end_inset
23096
23097
23098 \end_layout
23099
23100 \begin_layout Standard
23101 \begin_inset ERT
23102 status collapsed
23103
23104 \begin_layout Plain Layout
23105
23106
23107 \backslash
23108 setlength{
23109 \backslash
23110 columnsep}{10pt}
23111 \end_layout
23112
23113 \end_inset
23114
23115
23116 \begin_inset Note Note
23117 status collapsed
23118
23119 \begin_layout Plain Layout
23120
23121 \lang english
23122 go back to the default
23123 \end_layout
23124
23125 \end_inset
23126
23127
23128 \end_layout
23129
23130 \begin_layout Subsubsection
23131 垂直線
23132 \end_layout
23133
23134 \begin_layout Standard
23135 段間には,長さ
23136 \series bold
23137
23138 \backslash
23139 columnseprule
23140 \series default
23141 の幅を持つ罫線が描かれます.罫線幅を0
23142 \begin_inset space \thinspace{}
23143 \end_inset
23144
23145 ptにすると(これが既定値です),罫線は出力されません.以下の例では,段を分かつ線は2
23146 \begin_inset space \thinspace{}
23147 \end_inset
23148
23149 pt幅に設定されています.
23150 \end_layout
23151
23152 \begin_layout Standard
23153 \begin_inset ERT
23154 status open
23155
23156 \begin_layout Plain Layout
23157
23158
23159 \backslash
23160 setlength{
23161 \backslash
23162 columnseprule}{2pt}
23163 \end_layout
23164
23165 \end_inset
23166
23167
23168 \end_layout
23169
23170 \begin_layout Standard
23171 \begin_inset Flex Multiple Columns
23172 status open
23173
23174 \begin_layout Plain Layout
23175
23176 \size small
23177 \begin_inset Quotes eld
23178 \end_inset
23179
23180 You're surprised to see me, sir,
23181 \begin_inset Quotes erd
23182 \end_inset
23183
23184  said he, in a strange, croaking voice.
23185 \end_layout
23186
23187 \begin_layout Plain Layout
23188
23189 \size small
23190 I acknowledged that I was.
23191 \end_layout
23192
23193 \begin_layout Plain Layout
23194
23195 \size small
23196 \begin_inset Quotes eld
23197 \end_inset
23198
23199 Well, I've a conscience, sir, and when I chanced to see you go into this
23200  house, as I came hobbling after you, I thought to myself, I'll just step
23201  in and see that kind gentleman, and tell him that if I was a bit gruff
23202  in my manner there was not any harm meant, and that I am much obliged to
23203  him for picking up my books.
23204 \begin_inset Quotes erd
23205 \end_inset
23206
23207
23208 \end_layout
23209
23210 \begin_layout Plain Layout
23211
23212 \size small
23213 \begin_inset Quotes eld
23214 \end_inset
23215
23216 You make too much of a trifle,
23217 \begin_inset Quotes erd
23218 \end_inset
23219
23220  said I.
23221  
23222 \begin_inset Quotes eld
23223 \end_inset
23224
23225 May I ask how you knew who I was?
23226 \begin_inset Quotes erd
23227 \end_inset
23228
23229
23230 \end_layout
23231
23232 \begin_layout Plain Layout
23233
23234 \size small
23235 \begin_inset Quotes eld
23236 \end_inset
23237
23238 Well, sir, if it isn't too great a liberty, I am a neighbour of yours, for
23239  you'll find my little bookshop at the corner of Church Street, and very
23240  happy to see you, I am sure.
23241  Maybe you collect yourself, sir.
23242  Here's 
23243 \noun on
23244 British
23245 \begin_inset space ~
23246 \end_inset
23247
23248 Birds
23249 \noun default
23250 , and 
23251 \noun on
23252 Catullus
23253 \noun default
23254 , and 
23255 \noun on
23256 The Holy War
23257 \noun default
23258 –a bargain, every one of them.
23259  With five volumes you could just fill that gap on that second shelf.
23260  It looks untidy, does it not, sir?
23261 \begin_inset Quotes erd
23262 \end_inset
23263
23264
23265 \end_layout
23266
23267 \end_inset
23268
23269
23270 \end_layout
23271
23272 \begin_layout Standard
23273 \begin_inset VSpace defskip
23274 \end_inset
23275
23276
23277 \end_layout
23278
23279 \begin_layout Standard
23280 罫線は,コマンド
23281 \series bold
23282
23283 \backslash
23284 columnseprulecolor
23285 \series default
23286 を再定義すれば,着色することができます.これは,多段組差込枠の前に\SpecialChar TeX
23287 コードで以下のコマンドを挿入すれば,実現できます.
23288 \begin_inset Newline newline
23289 \end_inset
23290
23291
23292 \series bold
23293
23294 \backslash
23295 renewcommand{
23296 \backslash
23297 columnseprulecolor}{
23298 \backslash
23299 color{red}}
23300 \series default
23301
23302 \begin_inset Newline newline
23303 \end_inset
23304
23305 このコマンド中の
23306 \series bold
23307 red
23308 \series default
23309 をお好みの色に変更してください.既定色とユーザー定義色の全てを使用することができます.既定色とユーザー定義色についての詳細な情報は,取扱説明書『
23310 \emph on
23311 埋込オブジェクト篇
23312 \emph default
23313 』の「
23314 \emph on
23315 色付き表
23316 \emph default
23317 」の節をご覧ください.既定色に戻すには,以下のコマンドを挿入してください.
23318 \begin_inset Newline newline
23319 \end_inset
23320
23321
23322 \series bold
23323
23324 \backslash
23325 renewcommand{
23326 \backslash
23327 columnseprulecolor}{
23328 \backslash
23329 normalcolor}
23330 \series default
23331
23332 \begin_inset Newline newline
23333 \end_inset
23334
23335 以下は,シアン色の罫線と1
23336 \begin_inset space \thinspace{}
23337 \end_inset
23338
23339 cmの段間隔を持つ例です.
23340 \end_layout
23341
23342 \begin_layout Standard
23343 \begin_inset ERT
23344 status open
23345
23346 \begin_layout Plain Layout
23347
23348
23349 \backslash
23350 setlength{
23351 \backslash
23352 columnsep}{1cm}
23353 \end_layout
23354
23355 \begin_layout Plain Layout
23356
23357
23358 \backslash
23359 renewcommand{
23360 \backslash
23361 columnseprulecolor}{
23362 \backslash
23363 color{cyan}}
23364 \end_layout
23365
23366 \end_inset
23367
23368
23369 \end_layout
23370
23371 \begin_layout Standard
23372 \begin_inset Flex Multiple Columns
23373 status open
23374
23375 \begin_layout Plain Layout
23376
23377 \size small
23378 \begin_inset Quotes eld
23379 \end_inset
23380
23381 You're surprised to see me, sir,
23382 \begin_inset Quotes erd
23383 \end_inset
23384
23385  said he, in a strange, croaking voice.
23386 \end_layout
23387
23388 \begin_layout Plain Layout
23389
23390 \size small
23391 I acknowledged that I was.
23392 \end_layout
23393
23394 \begin_layout Plain Layout
23395
23396 \size small
23397 \begin_inset Quotes eld
23398 \end_inset
23399
23400 Well, I've a conscience, sir, and when I chanced to see you go into this
23401  house, as I came hobbling after you, I thought to myself, I'll just step
23402  in and see that kind gentleman, and tell him that if I was a bit gruff
23403  in my manner there was not any harm meant, and that I am much obliged to
23404  him for picking up my books.
23405 \begin_inset Quotes erd
23406 \end_inset
23407
23408
23409 \end_layout
23410
23411 \begin_layout Plain Layout
23412
23413 \size small
23414 \begin_inset Quotes eld
23415 \end_inset
23416
23417 You make too much of a trifle,
23418 \begin_inset Quotes erd
23419 \end_inset
23420
23421  said I.
23422  
23423 \begin_inset Quotes eld
23424 \end_inset
23425
23426 May I ask how you knew who I was?
23427 \begin_inset Quotes erd
23428 \end_inset
23429
23430
23431 \end_layout
23432
23433 \begin_layout Plain Layout
23434
23435 \size small
23436 \begin_inset Quotes eld
23437 \end_inset
23438
23439 Well, sir, if it isn't too great a liberty, I am a neighbour of yours, for
23440  you'll find my little bookshop at the corner of Church Street, and very
23441  happy to see you, I am sure.
23442  Maybe you collect yourself, sir.
23443  Here's 
23444 \noun on
23445 British
23446 \begin_inset space ~
23447 \end_inset
23448
23449 Birds
23450 \noun default
23451 , and 
23452 \noun on
23453 Catullus
23454 \noun default
23455 , and 
23456 \noun on
23457 The Holy War
23458 \noun default
23459 –a bargain, every one of them.
23460  With five volumes you could just fill that gap on that second shelf.
23461  It looks untidy, does it not, sir?
23462 \begin_inset Quotes erd
23463 \end_inset
23464
23465
23466 \end_layout
23467
23468 \end_inset
23469
23470
23471 \end_layout
23472
23473 \begin_layout Standard
23474 \begin_inset ERT
23475 status collapsed
23476
23477 \begin_layout Plain Layout
23478
23479
23480 \backslash
23481 setlength{
23482 \backslash
23483 columnseprule}{0pt}
23484 \end_layout
23485
23486 \begin_layout Plain Layout
23487
23488
23489 \backslash
23490 renewcommand{
23491 \backslash
23492 columnseprulecolor}{
23493 \backslash
23494 normalcolor}
23495 \end_layout
23496
23497 \end_inset
23498
23499
23500 \begin_inset Note Note
23501 status collapsed
23502
23503 \begin_layout Plain Layout
23504
23505 \lang english
23506 go back to the default
23507 \end_layout
23508
23509 \end_inset
23510
23511
23512 \end_layout
23513
23514 \begin_layout Standard
23515 \begin_inset Newpage newpage
23516 \end_inset
23517
23518
23519 \end_layout
23520
23521 \begin_layout Section
23522 標準的でない形の段落
23523 \end_layout
23524
23525 \begin_layout Standard
23526 \noindent
23527 \SpecialChar LaTeX
23528 は,他のテキストプロセッサと同様に,既定で長方形の段落を使用します.しかし,例えば,ポスターや招待状,詩などの特殊な場合には,段落の形を好きなように変えることが
23529 できます.これは,文書設定で
23530 \family sans
23531 任意設定の段落形
23532 \family default
23533 モジュールを読み込んで,\SpecialChar LaTeX
23534 パッケージ
23535 \series bold
23536 shapepar
23537 \series default
23538 を使用させるようにすれば,実現できます.
23539 \end_layout
23540
23541 \begin_layout Subsection
23542 既定の形
23543 \end_layout
23544
23545 \begin_layout Standard
23546
23547 \series bold
23548 shapepar
23549 \series default
23550 は,以下の形を提供しています.
23551 \end_layout
23552
23553 \begin_layout Standard
23554 \begin_inset Tabular
23555 <lyxtabular version="3" rows="13" columns="3">
23556 <features booktabs="true" islongtable="true" longtabularalignment="center">
23557 <column alignment="center" valignment="middle" width="16col%">
23558 <column alignment="center" valignment="middle" width="40col%">
23559 <column alignment="center" valignment="middle" width="35col%">
23560 <row endhead="true">
23561 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23562 \begin_inset Text
23563
23564 \begin_layout Plain Layout
23565 名称
23566 \end_layout
23567
23568 \end_inset
23569 </cell>
23570 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23571 \begin_inset Text
23572
23573 \begin_layout Plain Layout
23574 説明
23575 \end_layout
23576
23577 \end_inset
23578 </cell>
23579 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
23580 \begin_inset Text
23581
23582 \begin_layout Plain Layout
23583 備考
23584 \end_layout
23585
23586 \end_inset
23587 </cell>
23588 </row>
23589 <row>
23590 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23591 \begin_inset Text
23592
23593 \begin_layout Plain Layout
23594 CDlabel
23595 \end_layout
23596
23597 \end_inset
23598 </cell>
23599 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23600 \begin_inset Text
23601
23602 \begin_layout Plain Layout
23603 丸い穴の開いたドーナツ型(CD/DVD大)
23604 \end_layout
23605
23606 \end_inset
23607 </cell>
23608 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23609 \begin_inset Text
23610
23611 \begin_layout Plain Layout
23612 伸縮不可.多くの文字を入れられないことに注意.
23613 \end_layout
23614
23615 \end_inset
23616 </cell>
23617 </row>
23618 <row>
23619 <cell alignment="center" valignment="top" topline="true" usebox="none">
23620 \begin_inset Text
23621
23622 \begin_layout Plain Layout
23623 Circle
23624 \end_layout
23625
23626 \end_inset
23627 </cell>
23628 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23629 \begin_inset Text
23630
23631 \begin_layout Plain Layout
23632
23633 \end_layout
23634
23635 \end_inset
23636 </cell>
23637 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23638 \begin_inset Text
23639
23640 \begin_layout Plain Layout
23641 脆弱.計算に失敗することも.
23642 \end_layout
23643
23644 \end_inset
23645 </cell>
23646 </row>
23647 <row>
23648 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23649 \begin_inset Text
23650
23651 \begin_layout Plain Layout
23652 Diamond
23653 \end_layout
23654
23655 \end_inset
23656 </cell>
23657 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23658 \begin_inset Text
23659
23660 \begin_layout Plain Layout
23661 菱形(シンボル的に
23662 \begin_inset Quotes eld
23663 \end_inset
23664
23665 diamond
23666 \begin_inset Quotes erd
23667 \end_inset
23668
23669 と表記)
23670 \end_layout
23671
23672 \end_inset
23673 </cell>
23674 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23675 \begin_inset Text
23676
23677 \begin_layout Plain Layout
23678 -
23679 \end_layout
23680
23681 \end_inset
23682 </cell>
23683 </row>
23684 <row>
23685 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23686 \begin_inset Text
23687
23688 \begin_layout Plain Layout
23689 Heart
23690 \end_layout
23691
23692 \end_inset
23693 </cell>
23694 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23695 \begin_inset Text
23696
23697 \begin_layout Plain Layout
23698 ハート型
23699 \end_layout
23700
23701 \end_inset
23702 </cell>
23703 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23704 \begin_inset Text
23705
23706 \begin_layout Plain Layout
23707 -
23708 \end_layout
23709
23710 \end_inset
23711 </cell>
23712 </row>
23713 <row>
23714 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23715 \begin_inset Text
23716
23717 \begin_layout Plain Layout
23718 Hexagon
23719 \end_layout
23720
23721 \end_inset
23722 </cell>
23723 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23724 \begin_inset Text
23725
23726 \begin_layout Plain Layout
23727 六角形
23728 \end_layout
23729
23730 \end_inset
23731 </cell>
23732 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23733 \begin_inset Text
23734
23735 \begin_layout Plain Layout
23736 -
23737 \end_layout
23738
23739 \end_inset
23740 </cell>
23741 </row>
23742 <row>
23743 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23744 \begin_inset Text
23745
23746 \begin_layout Plain Layout
23747 Nut
23748 \end_layout
23749
23750 \end_inset
23751 </cell>
23752 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23753 \begin_inset Text
23754
23755 \begin_layout Plain Layout
23756 ナット型(丸い穴の開いた六角形)
23757 \end_layout
23758
23759 \end_inset
23760 </cell>
23761 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23762 \begin_inset Text
23763
23764 \begin_layout Plain Layout
23765 -
23766 \end_layout
23767
23768 \end_inset
23769 </cell>
23770 </row>
23771 <row>
23772 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23773 \begin_inset Text
23774
23775 \begin_layout Plain Layout
23776 Square
23777 \end_layout
23778
23779 \end_inset
23780 </cell>
23781 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23782 \begin_inset Text
23783
23784 \begin_layout Plain Layout
23785 正方形
23786 \end_layout
23787
23788 \end_inset
23789 </cell>
23790 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23791 \begin_inset Text
23792
23793 \begin_layout Plain Layout
23794 -
23795 \end_layout
23796
23797 \end_inset
23798 </cell>
23799 </row>
23800 <row>
23801 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23802 \begin_inset Text
23803
23804 \begin_layout Plain Layout
23805 Star
23806 \end_layout
23807
23808 \end_inset
23809 </cell>
23810 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23811 \begin_inset Text
23812
23813 \begin_layout Plain Layout
23814 五芒星
23815 \end_layout
23816
23817 \end_inset
23818 </cell>
23819 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
23820 \begin_inset Text
23821
23822 \begin_layout Plain Layout
23823 -
23824 \end_layout
23825
23826 \end_inset
23827 </cell>
23828 </row>
23829 <row>
23830 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23831 \begin_inset Text
23832
23833 \begin_layout Plain Layout
23834 Candle
23835 \end_layout
23836
23837 \end_inset
23838 </cell>
23839 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23840 \begin_inset Text
23841
23842 \begin_layout Plain Layout
23843 燃えるろうそく
23844 \end_layout
23845
23846 \end_inset
23847 </cell>
23848 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23849 \begin_inset Text
23850
23851 \begin_layout Plain Layout
23852 -
23853 \end_layout
23854
23855 \end_inset
23856 </cell>
23857 </row>
23858 <row>
23859 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23860 \begin_inset Text
23861
23862 \begin_layout Plain Layout
23863 Drop down/up
23864 \end_layout
23865
23866 \end_inset
23867 </cell>
23868 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23869 \begin_inset Text
23870
23871 \begin_layout Plain Layout
23872 雫型/逆雫型
23873 \end_layout
23874
23875 \end_inset
23876 </cell>
23877 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23878 \begin_inset Text
23879
23880 \begin_layout Plain Layout
23881 脆弱.計算に失敗することも.
23882 \end_layout
23883
23884 \end_inset
23885 </cell>
23886 </row>
23887 <row>
23888 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23889 \begin_inset Text
23890
23891 \begin_layout Plain Layout
23892 \SpecialChar TeX
23893
23894 \end_layout
23895
23896 \end_inset
23897 </cell>
23898 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23899 \begin_inset Text
23900
23901 \begin_layout Plain Layout
23902 \SpecialChar TeX
23903 ロゴ
23904 \end_layout
23905
23906 \end_inset
23907 </cell>
23908 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23909 \begin_inset Text
23910
23911 \begin_layout Plain Layout
23912 -
23913 \end_layout
23914
23915 \end_inset
23916 </cell>
23917 </row>
23918 <row>
23919 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23920 \begin_inset Text
23921
23922 \begin_layout Plain Layout
23923 Triangle up/down/
23924 \begin_inset Newline newline
23925 \end_inset
23926
23927 left/right
23928 \end_layout
23929
23930 \end_inset
23931 </cell>
23932 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23933 \begin_inset Text
23934
23935 \begin_layout Plain Layout
23936 各方向の三角形
23937 \end_layout
23938
23939 \end_inset
23940 </cell>
23941 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
23942 \begin_inset Text
23943
23944 \begin_layout Plain Layout
23945 -
23946 \end_layout
23947
23948 \end_inset
23949 </cell>
23950 </row>
23951 </lyxtabular>
23952
23953 \end_inset
23954
23955
23956 \end_layout
23957
23958 \begin_layout Standard
23959 段落に形を適用するには,\SpecialChar LyX
23960 ツールバー中の環境プルダウンボックスから形を選んでください.
23961 \end_layout
23962
23963 \begin_layout Standard
23964 \begin_inset Newpage newpage
23965 \end_inset
23966
23967
23968 \end_layout
23969
23970 \begin_layout Standard
23971 以下は,ナット型の段落の例です.
23972 \end_layout
23973
23974 \begin_layout Standard
23975 \begin_inset VSpace bigskip
23976 \end_inset
23977
23978
23979 \end_layout
23980
23981 \begin_layout Nut
23982
23983 \lang latin
23984 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
23985  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
23986  voluptua.
23987  At vero eos et accusam et justo duo dolores et ea rebum.
23988  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
23989  sit amet.
23990  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
23991  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
23992  voluptua.
23993 \end_layout
23994
23995 \begin_layout Standard
23996 \begin_inset VSpace bigskip
23997 \end_inset
23998
23999
24000 \end_layout
24001
24002 \begin_layout Standard
24003 \begin_inset Note Greyedout
24004 status open
24005
24006 \begin_layout Plain Layout
24007
24008 \series bold
24009 【註】
24010 \series default
24011 shapepar段落は改頁にまたがることはできません.
24012 \end_layout
24013
24014 \end_inset
24015
24016
24017 \end_layout
24018
24019 \begin_layout Standard
24020 \begin_inset VSpace bigskip
24021 \end_inset
24022
24023
24024 \end_layout
24025
24026 \begin_layout Standard
24027
24028 \series bold
24029 shapepar
24030 \series default
24031 は,段落中にどれだけ文章が含まれようとも,常に形を維持しようとします.したがって,段落の大きさは,含まれている文章量によって変化しますので,段落の大きさがページ
24032 余白にはみ出してしまうことがあります.寸法が伸縮することを示すために,文章量を二倍にした例を見てみましょう.
24033 \end_layout
24034
24035 \begin_layout Standard
24036 \begin_inset Newpage newpage
24037 \end_inset
24038
24039
24040 \end_layout
24041
24042 \begin_layout Nut
24043
24044 \lang latin
24045 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
24046  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
24047  voluptua.
24048  At vero eos et accusam et justo duo dolores et ea rebum.
24049  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
24050  sit amet.
24051  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
24052  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
24053  voluptua.
24054  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
24055  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
24056  voluptua.
24057  At vero eos et accusam et justo duo dolores et ea rebum.
24058  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
24059  sit amet.
24060  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
24061  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
24062  voluptua.
24063 \end_layout
24064
24065 \begin_layout Standard
24066 \begin_inset VSpace bigskip
24067 \end_inset
24068
24069
24070 \end_layout
24071
24072 \begin_layout Standard
24073 ただし,
24074 \family sans
24075 CDlabel
24076 \family default
24077 形は例外です.これは,CD/DVDの寸法に収まらなくてはならないので,伸縮しません.したがって,形に収まる文章量は限られています.
24078 \begin_inset Newline newline
24079 \end_inset
24080
24081
24082 \family sans
24083 drop
24084 \family default
24085 形と
24086 \family sans
24087 circle
24088 \family default
24089 形は脆弱で,文章量によっては寸法計算が失敗する可能性があります.この場合,
24090 \begin_inset Quotes eld
24091 \end_inset
24092
24093 Arithmetic overflow
24094 \begin_inset Quotes erd
24095 \end_inset
24096
24097 という\SpecialChar LaTeX
24098 エラーが発生します.この時は,文章の一部を追加したり削除したりするか,どれもうまくいかなければ別の形を使用してください.
24099 \end_layout
24100
24101 \begin_layout Standard
24102 \begin_inset VSpace bigskip
24103 \end_inset
24104
24105
24106 \end_layout
24107
24108 \begin_layout Standard
24109 先端のある形では,先端部の文字列で,\SpecialChar LaTeX
24110 のハイフネーションルーチンが失敗することがあります.したがって,この部分の文章には,ハイフネーション位置
24111 \family sans
24112 (
24113 \begin_inset Info
24114 type  "shortcut"
24115 arg   "specialchar-insert hyphenation"
24116 \end_inset
24117
24118
24119 \family default
24120 )を指定することが往々にして必要になります.
24121 \end_layout
24122
24123 \begin_layout Standard
24124 \begin_inset VSpace bigskip
24125 \end_inset
24126
24127
24128 \end_layout
24129
24130 \begin_layout Standard
24131 Shapepar段落は,常に中央揃えか,左の縁が左ページ余白に接するように配置されます.したがって,これらの段落を揃えるのに段落ダイアログを使用することはできま
24132 せん.解決方法としては,段落をミニページかparboxの中において,このボックスを揃えることです.ここでの問題は,ボックスの正しい幅を見出すことです.もしボック
24133 スの幅が広すぎれば,ボックスを中央揃えにしたとしても,ボックスの左側が付いてしまうので中央揃えになりません.そこで,正しい幅を見出すまでは,若干試行錯誤しなくて
24134 はならないかもしれません.以下は,二つのハート形の段落です.一つ目は揃え指定がなく,二つ目は右揃えにしてあります.
24135 \end_layout
24136
24137 \begin_layout Standard
24138 \begin_inset Newpage newpage
24139 \end_inset
24140
24141
24142 \end_layout
24143
24144 \begin_layout Heart
24145 \noindent
24146
24147 \lang latin
24148 Lo\SpecialChar softhyphen
24149 rem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
24150  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
24151  voluptua.
24152  At vero eos et accusam et justo duo dolores et ea rebum.
24153  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
24154  sit amet.
24155 \end_layout
24156
24157 \begin_layout Standard
24158 \begin_inset VSpace bigskip
24159 \end_inset
24160
24161
24162 \end_layout
24163
24164 \begin_layout Standard
24165 \noindent
24166 \align right
24167 \begin_inset Box Frameless
24168 position "t"
24169 hor_pos "c"
24170 has_inner_box 1
24171 inner_pos "t"
24172 use_parbox 1
24173 use_makebox 0
24174 width "42col%"
24175 special "none"
24176 height "1in"
24177 height_special "totalheight"
24178 thickness "0.4pt"
24179 separation "3pt"
24180 shadowsize "4pt"
24181 framecolor "black"
24182 backgroundcolor "none"
24183 status open
24184
24185 \begin_layout Heart
24186 \noindent
24187
24188 \lang latin
24189 Lo\SpecialChar softhyphen
24190 rem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
24191  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
24192  voluptua.
24193  At vero eos et accusam et justo duo dolores et ea rebum.
24194  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
24195  sit amet.
24196 \end_layout
24197
24198 \end_inset
24199
24200
24201 \end_layout
24202
24203 \begin_layout Subsection
24204 任意の形
24205 \end_layout
24206
24207 \begin_layout Standard
24208 ユーザーは,どのような形であれ,定義することができます.これを手動で行うのは,全ての座標を指定しなくてはならないので,かなりの労力を必要とします.しかし,以下の
24209 ように,コンピューターに座標を計算させる方法もあります.
24210 \end_layout
24211
24212 \begin_layout Enumerate
24213 プログラム
24214 \begin_inset CommandInset href
24215 LatexCommand href
24216 name "Jpgfdraw"
24217 target "http://www.ctan.org/tex-archive/graphics/jpgfdraw"
24218
24219 \end_inset
24220
24221 を導入します.
24222 \end_layout
24223
24224 \begin_layout Enumerate
24225
24226 \family sans
24227 Jpgfdraw
24228 \family default
24229 内で,メニュー
24230 \family sans
24231 TeX/LaTeX\SpecialChar menuseparator
24232 Settings\SpecialChar menuseparator
24233 Set Normal Size
24234 \family default
24235 で文書中で使用しているフォント寸を選択します.例えば,この文書は12
24236 \begin_inset space \thinspace{}
24237 \end_inset
24238
24239 pt寸を使用しています.
24240 \end_layout
24241
24242 \begin_layout Enumerate
24243 形を描きます.
24244 \end_layout
24245
24246 \begin_layout Enumerate
24247 メニュー
24248 \family sans
24249 TeX/LaTeX\SpecialChar menuseparator
24250 Shapepar
24251 \family default
24252 を使用して,形の座標をエクスポートします.現れるダイアログで,形の外枠を座標に使うか,パス自体を使うかを指定します.
24253 \begin_inset Foot
24254 status collapsed
24255
24256 \begin_layout Plain Layout
24257 詳細については,
24258 \begin_inset CommandInset href
24259 LatexCommand href
24260 target "http://www.dickimaw-books.com/apps/jpgfdraw/manual/shapepar.html"
24261
24262 \end_inset
24263
24264 を参照してください.
24265 \end_layout
24266
24267 \end_inset
24268
24269
24270 \end_layout
24271
24272 \begin_layout Standard
24273 座標は\SpecialChar TeX
24274 ファイルに書き込まれます.これを\SpecialChar LyX
24275 文書で使用するには,
24276 \end_layout
24277
24278 \begin_layout Enumerate
24279 段落の最初の文字の前(もしくは空の段落内)にカーソルを置きます.
24280 \end_layout
24281
24282 \begin_layout Enumerate
24283 \SpecialChar LyX
24284
24285 \family sans
24286 挿入\SpecialChar menuseparator
24287 ファイル\SpecialChar menuseparator
24288 子文書
24289 \family default
24290 メニューでファイルを選択し,
24291 \family sans
24292 取り込みの型
24293 \family default
24294 として
24295 \family sans
24296 Input
24297 \family default
24298 を選択してください.
24299 \end_layout
24300
24301 \begin_layout Standard
24302 \begin_inset VSpace defskip
24303 \end_inset
24304
24305
24306 \end_layout
24307
24308 \begin_layout Standard
24309 \begin_inset Note Greyedout
24310 status open
24311
24312 \begin_layout Plain Layout
24313
24314 \series bold
24315 【註】
24316 \series default
24317 変更した形は,現在の段落にのみ適用されます.次の段落では全て通常に戻ります.したがって,段落定義ファイルは,形を変えたい段落全てで読み込まれなくてはなりません.
24318 \end_layout
24319
24320 \end_inset
24321
24322
24323 \end_layout
24324
24325 \begin_layout Standard
24326 \begin_inset VSpace bigskip
24327 \end_inset
24328
24329
24330 \end_layout
24331
24332 \begin_layout Standard
24333 以下の用例をご覧ください.
24334 \end_layout
24335
24336 \begin_layout Standard
24337 \begin_inset VSpace bigskip
24338 \end_inset
24339
24340
24341 \end_layout
24342
24343 \begin_layout Standard
24344 \begin_inset CommandInset include
24345 LatexCommand input
24346 filename "../SpecialParagraphShape.tex"
24347
24348 \end_inset
24349
24350
24351 \lang latin
24352 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
24353  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
24354  voluptua.
24355  At vero eos et accusam et justo duo dolores et ea rebum.
24356  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
24357  sit amet.
24358  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
24359  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
24360  voluptua.
24361 \end_layout
24362
24363 \begin_layout Standard
24364 \begin_inset VSpace bigskip
24365 \end_inset
24366
24367
24368 \end_layout
24369
24370 \begin_layout Standard
24371
24372 \series bold
24373 【ヒント】
24374 \family sans
24375 \series default
24376 Jpgfdraw
24377 \family default
24378 で複雑な形を描く場合,まず形を好きなプログラムで描き,出来上がった画像を
24379 \family sans
24380 Jpgfdraw
24381 \family default
24382 に読み込む方法があります.この場合,画像の外枠に沿って,直線またはスプラインを描くだけですみます.
24383 \end_layout
24384
24385 \begin_layout Standard
24386 \begin_inset VSpace bigskip
24387 \end_inset
24388
24389
24390 \end_layout
24391
24392 \begin_layout Standard
24393
24394 \family sans
24395 任意の段落形
24396 \family default
24397 モジュールは,
24398 \family sans
24399 shapepar
24400 \family default
24401
24402 \family sans
24403 Shapepar
24404 \family default
24405 の二つのコマンドも提供していて,任意の形を座標毎に定義するのに使用することができます.
24406 \begin_inset Foot
24407 status collapsed
24408
24409 \begin_layout Plain Layout
24410 これらのコマンドは,上述の全ての形で内部的に使用されています.
24411 \end_layout
24412
24413 \end_inset
24414
24415 これらのスタイルがどのように使われていて,どのような設定ができるのかについての詳しい情報は,
24416 \series bold
24417 shapepar
24418 \series default
24419 パッケージの取扱説明書
24420 \begin_inset CommandInset citation
24421 LatexCommand cite
24422 key "shapepar"
24423
24424 \end_inset
24425
24426 をご覧ください.
24427 \end_layout
24428
24429 \begin_layout Bibliography
24430 \begin_inset CommandInset bibitem
24431 LatexCommand bibitem
24432 key "multicol"
24433
24434 \end_inset
24435
24436 \SpecialChar LaTeX
24437 パッケージ
24438 \begin_inset CommandInset href
24439 LatexCommand href
24440 name "multicol"
24441 target "http://mirror.ctan.org/macros/latex/required/tools/multicol.pdf"
24442
24443 \end_inset
24444
24445 の取扱説明書
24446 \end_layout
24447
24448 \begin_layout Bibliography
24449 \begin_inset CommandInset bibitem
24450 LatexCommand bibitem
24451 key "shapepar"
24452
24453 \end_inset
24454
24455 \SpecialChar LaTeX
24456 パッケージ
24457 \begin_inset CommandInset href
24458 LatexCommand href
24459 name "shapepar"
24460 target "http://mirrors.ctan.org/macros/latex/contrib/shapepar/shapepar.pdf"
24461
24462 \end_inset
24463
24464 の取扱説明書
24465 \end_layout
24466
24467 \end_body
24468 \end_document