]> git.lyx.org Git - lyx.git/blob - lib/doc/ja/Additional.lyx
EmbeddedObjects.lyx: get rid of unnecessary ERT and fix an image size
[lyx.git] / lib / doc / ja / Additional.lyx
1 #LyX 2.2 created this file. For more info see http://www.lyx.org/
2 \lyxformat 508
3 \begin_document
4 \begin_header
5 \save_transient_properties true
6 \origin /systemlyxdir/doc/ja/
7 \textclass scrbook
8 \begin_preamble
9 % DO NOT ALTER THIS PREAMBLE!!!
10 %
11 % This preamble is designed to ensure that the manual prints
12 % out as advertised. If you mess with this preamble,
13 % parts of the manual may not print out as expected.  If you
14 % have problems LaTeXing this file, please contact 
15 % the documentation team
16 % email: lyx-docs@lists.lyx.org
17
18 \IfFileExists{pxjahyper.sty}
19 {\usepackage{pxjahyper}}
20
21 % the pages of the TOC are numbered roman
22 % and a PDF-bookmark for the TOC is added
23 \pagenumbering{roman}
24 \let\myTOC\tableofcontents
25 \renewcommand{\tableofcontents}{%
26  \pdfbookmark[1]{\contentsname}{}
27  \myTOC
28  \cleardoublepage
29  \pagenumbering{arabic}}
30
31 % extra space for tables
32 \newcommand{\extratablespace}[1]{\noalign{\vskip#1}}
33
34 \usepackage{t1enc}
35 \end_preamble
36 \options fleqn,bibliography=totoc,index=totoc,BCOR7.5mm,titlepage,captions=tableheading
37 \use_default_options false
38 \begin_modules
39 logicalmkup
40 theorems-ams
41 theorems-ams-extended
42 multicol
43 shapepar
44 \end_modules
45 \maintain_unincluded_children false
46 \begin_local_layout
47 Format 35
48 InsetLayout             Flex:MenuItem
49 LyxType         charstyle
50 LabelString           menu
51 LatexType             command
52 LatexName             menuitem
53 Font
54 Family              Sans
55 EndFont
56 Preamble
57 \newcommand*{\menuitem}[1]{{\sffamily #1}}
58 EndPreamble
59 End
60 InsetLayout             Flex:Ruby
61 LyxType         charstyle
62 LatexType               command
63 LatexName               ruby
64 BgColor         none
65 LabelString             "ルビ"
66 Decoration              Conglomerate
67 Argument post:1
68 LabelString     "ルビ文"
69 MenuString      "ルビ文(S)|S"
70 Decoration      Conglomerate
71 Font
72 Size            tiny
73 EndFont
74 LabelFont
75 Size            tiny
76 EndFont
77 Mandatory       1
78 EndArgument
79 Preamble
80 \IfFileExists{okumacro.sty}
81 {\usepackage{okumacro}}
82 {\newcommand{\ruby}[2]{#2}}
83 EndPreamble
84 End
85 \end_local_layout
86 \language japanese
87 \language_package default
88 \inputencoding auto
89 \fontencoding global
90 \font_roman "default" "default"
91 \font_sans "default" "default"
92 \font_typewriter "default" "default"
93 \font_math "auto" "auto"
94 \font_default_family default
95 \use_non_tex_fonts false
96 \font_sc false
97 \font_osf false
98 \font_sf_scale 100 100
99 \font_tt_scale 100 100
100 \graphics default
101 \default_output_format pdf3
102 \output_sync 0
103 \bibtex_command default
104 \index_command default
105 \paperfontsize 12
106 \spacing single
107 \use_hyperref true
108 \pdf_title "LyX's Additional Features manual"
109 \pdf_author "LyX Team"
110 \pdf_subject "LyX's additional features documentation"
111 \pdf_keywords "LyX, Documentation, Additional"
112 \pdf_bookmarks false
113 \pdf_bookmarksnumbered true
114 \pdf_bookmarksopen false
115 \pdf_bookmarksopenlevel 1
116 \pdf_breaklinks false
117 \pdf_pdfborder false
118 \pdf_colorlinks true
119 \pdf_backref false
120 \pdf_pdfusetitle false
121 \pdf_quoted_options "pdfencoding=pdfdoc, linkcolor=black, citecolor=black, urlcolor=blue, filecolor=blue, pdfpagelayout=OneColumn, pdfnewwindow=true, pdfstartview=XYZ, plainpages=false"
122 \papersize default
123 \use_geometry false
124 \use_package amsmath 1
125 \use_package amssymb 1
126 \use_package cancel 0
127 \use_package esint 0
128 \use_package mathdots 1
129 \use_package mathtools 0
130 \use_package mhchem 1
131 \use_package stackrel 0
132 \use_package stmaryrd 0
133 \use_package undertilde 0
134 \cite_engine basic
135 \cite_engine_type default
136 \biblio_style plain
137 \use_bibtopic false
138 \use_indices false
139 \paperorientation portrait
140 \suppress_date false
141 \justification true
142 \use_refstyle 0
143 \notefontcolor #0000ff
144 \index 索引
145 \shortcut idx
146 \color #008000
147 \end_index
148 \secnumdepth 3
149 \tocdepth 3
150 \paragraph_separation indent
151 \paragraph_indentation default
152 \quotes_language english
153 \papercolumns 1
154 \papersides 2
155 \paperpagestyle headings
156 \tracking_changes false
157 \output_changes false
158 \html_math_output 0
159 \html_css_as_file 0
160 \html_be_strict true
161 \end_header
162
163 \begin_body
164
165 \begin_layout Title
166 \SpecialChar LyX
167 の高度な機能
168 \begin_inset Newline newline
169 \end_inset
170
171
172 \size large
173 第2.2.x版
174 \end_layout
175
176 \begin_layout Author
177 \SpecialChar LyX
178 プロジェクトチーム
179 \begin_inset Foot
180 status collapsed
181
182 \begin_layout Plain Layout
183 このファイルは主にRichard Heckによって管理されています.コメントをされたい場合や誤りを発見された場合には,\SpecialChar LyX
184 文書化メーリングリスト
185 \begin_inset Flex Code
186 status open
187
188 \begin_layout Plain Layout
189 \noindent
190
191 \family typewriter
192 <lyx-docs@lists.lyx.org>
193 \end_layout
194
195 \end_inset
196
197 に英文にてお知らせ下さい.この文書の翻訳は,当初人見光太郎氏が行った貢献に基づいています.
198 \end_layout
199
200 \end_inset
201
202  
203 \end_layout
204
205 \begin_layout Standard
206 \begin_inset CommandInset toc
207 LatexCommand tableofcontents
208
209 \end_inset
210
211
212 \end_layout
213
214 \begin_layout Chapter
215 はじめに
216 \end_layout
217
218 \begin_layout Standard
219 いまお読みの取扱説明書『
220 \emph on
221 \SpecialChar LyX
222 拡張機能篇
223 \emph default
224 』は,基本的には『
225 \emph on
226 ユーザーの手引き
227 \emph default
228 』の第二部です.これらの文書を別部とした理由は,単純に『
229 \emph on
230 ユーザーの手引き
231 \emph default
232 』がすでに大部となっていることと,『
233 \emph on
234 ユーザーの手引き
235 \emph default
236 』が,ほとんどの文書を作成する上で必要な基本機能をすべて説明してしまっているためです.一方で,\SpecialChar LyX
237 プロジェクトチームは,\SpecialChar LyX
238 を各設定ファイルと外部パッケージによって拡張
239 可能な状態にしておくことを長期的な目標にしています.つまり,ある\SpecialChar LaTeX
240 パッケージをサポートしたい場合に,\SpecialChar LyX
241 自身に変更を加えることなく,当該パッケージ用のレイアウトファイ
242 ル(ないしモジュール)を作成すればいいようにしているのです.すでにこのような形で,いくつもの新機能がユーザーによって追加されています.この取扱説明書は,そのよう
243 な形での貢献を文書化する冊子として位置付けられています.
244 \end_layout
245
246 \begin_layout Standard
247 この取扱説明書では,ファックスのサポート・バージョン管理・SGMLサポートのような,正しく機能するためには追加的なソフトウェアを必要とする特殊機能についても説明
248 しています.さらに,\SpecialChar LaTeX
249 の強力な機能を直接使って文書を美しく仕上げるための,\SpecialChar LaTeX
250 ツールやテクニックを述べた章も収録しています.つきつめれば,\SpecialChar LyX
251 とはあくまでWYSIWYMた
252 ることを企図しているため,\SpecialChar LaTeX
253 の全機能の一部へのインタフェースは用意するものの,すべてを用意することはないでしょう.
254 \end_layout
255
256 \begin_layout Standard
257 もし,まだ『
258 \emph on
259 はじめの一歩
260 \emph default
261 』をお読みでなかったら,この取扱説明書から読みはじめるのは誤りです.『
262 \emph on
263 はじめの一歩
264 \emph default
265 』には,全取扱説明書に共通の表記法と書式が説明されていますので,まずそれからお読みください.さらに,この取扱説明書を読もうとする前に,『
266 \emph on
267 ユーザーの手引き
268 \emph default
269 』をよくお読みになって,\SpecialChar LyX
270 の全基本機能を習得してください.
271 \end_layout
272
273 \begin_layout Standard
274 この取扱説明書の取り上げられている話題は,\SpecialChar LyX
275 が\SpecialChar LaTeX
276 にどう関わっているかに強く関係していますので,まず次章では,\SpecialChar LyX
277 の内部動作がどうなっているか,LyXに希望する\SpecialChar LaTeX
278 コードを正
279 確に生成させるにはどうしたらいいかを収録しています.本章は,あきらかに熟練\SpecialChar LyX
280 ユーザー向けの章となっています.
281 \end_layout
282
283 \begin_layout Chapter
284 \SpecialChar LyX
285 と\SpecialChar LaTeX
286
287 \end_layout
288
289 \begin_layout Section
290 \SpecialChar LyX
291 は\SpecialChar LaTeX
292 をどう使っているか
293 \end_layout
294
295 \begin_layout Standard
296 本章
297 \family roman
298 \series medium
299 \shape up
300 \size normal
301 \emph off
302 \bar no
303 \noun off
304 \color none
305 は,\SpecialChar TeX
306 熟練者と\SpecialChar LaTeX
307 に興味のある方向けの章です.ここでは,\SpecialChar LyX
308 と\SpecialChar LaTeX
309 が,印刷可能な出力を生成するのに,どのように協働しているのかを説明します.全取扱説明書中で本章だけは,\SpecialChar LaTeX
310 のこと
311 を多少なりともご存知であることを前提とします.
312 \end_layout
313
314 \begin_layout Standard
315
316 \family roman
317 \series medium
318 \shape up
319 \size normal
320 \emph off
321 \bar no
322 \noun off
323 \color none
324 かつて\SpecialChar LyX
325 は,「\SpecialChar LaTeX
326
327 \family default
328 \series default
329 \shape default
330 \size default
331 \emph default
332 \bar default
333 \noun default
334 \color inherit
335 WYSIWYM
336 \family roman
337 \series medium
338 \shape up
339 \size normal
340 \emph off
341 \bar no
342 \noun off
343 \color none
344 なフロントエンド」と呼ばれていましたが,いまではこれは正しくありません.\SpecialChar LaTeX
345 のフロントエンドは,いくつも出回っています
346 \begin_inset Foot
347 status collapsed
348
349 \begin_layout Plain Layout
350
351 \family roman
352 \series medium
353 \shape up
354 \size normal
355 \emph off
356 \bar no
357 \noun off
358 \color none
359 有名なものとしては,Linux上の\SpecialChar TeX
360 makerとkile,OSX上の\SpecialChar TeX
361 shopなどがあります.もちろんviとemacsの\SpecialChar LaTeX
362 モードも含まれます.
363 \end_layout
364
365 \end_inset
366
367 .これらは,基本的に\SpecialChar LaTeX
368 を走らせる機能を有し,編集中のファイルのエラーを表示する機能を持ったテキストエディタです.\SpecialChar LyX
369 も,エディタであり,\SpecialChar LaTeX
370 を走らせる機能を有し,ファイル
371 中のエラーを指摘しますが,それ以上にもっともっと多くのことをしてくれます.
372 \family default
373 \series default
374 \shape default
375 \size default
376 \emph default
377 \bar default
378 \noun default
379 \color inherit
380 ひとつには,
381 \family roman
382 \series medium
383 \shape up
384 \size normal
385 \emph off
386 \bar no
387 \noun off
388 \color none
389 \SpecialChar LyX
390 を効果的に使うのに,\SpecialChar LaTeX
391 の知識が必要とされないことが挙げられます.また\SpecialChar LyX
392 は,それ自身,いくつかの拡張を\SpecialChar LaTeX
393 に加えています.時間のあるときにでも,いちど以下の手順を試してみ
394 てください.まず
395 \family sans
396 \series default
397 \shape default
398 \size default
399 \emph default
400 \bar default
401 \noun default
402 \color inherit
403
404 \begin_inset Flex MenuItem
405 status collapsed
406
407 \begin_layout Plain Layout
408
409 \family sans
410 ファイル
411 \end_layout
412
413 \end_inset
414
415
416 \family roman
417 \series medium
418 \shape up
419 \size normal
420 \emph off
421 \bar no
422 \noun off
423 \color none
424 メニューから
425 \family sans
426 \series default
427 \shape default
428 \size default
429 \emph default
430 \bar default
431 \noun default
432 \color inherit
433
434 \begin_inset Flex MenuItem
435 status collapsed
436
437 \begin_layout Plain Layout
438
439 \family sans
440 エクスポート\SpecialChar menuseparator
441 \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 presentation (FoilT
11013 \size default
11014
11015 \begin_inset ERT
11016 status collapsed
11017
11018 \begin_layout Plain Layout
11019
11020 {}
11021 \end_layout
11022
11023 \end_inset
11024
11025
11026 \size large
11027 eX)
11028 \family default
11029 」クラス
11030 \emph on
11031 のみの
11032 \emph default
11033 解説を行います.
11034 \end_layout
11035
11036 \begin_layout Standard
11037 \begin_inset VSpace bigskip
11038 \end_inset
11039
11040
11041 \end_layout
11042
11043 \begin_layout Standard
11044
11045 \family sans
11046 transparencies (slides)
11047 \family default
11048 」の解説をお探しであれば,第
11049 \begin_inset CommandInset ref
11050 LatexCommand ref
11051 reference "sec:slitex"
11052
11053 \end_inset
11054
11055 節をご覧ください.お使いのコンピュータに
11056 \family sans
11057 foils
11058 \family default
11059 クラス(
11060 \family sans
11061 presentation (FoilT
11062 \begin_inset ERT
11063 status collapsed
11064
11065 \begin_layout Plain Layout
11066
11067 {}
11068 \end_layout
11069
11070 \end_inset
11071
11072 eX)
11073 \family default
11074 )が導入されていなければ,
11075 \family sans
11076 foils
11077 \family default
11078 ほど良くはありませんが,おそらく
11079 \family sans
11080 slides
11081 \family default
11082 クラスを使わざるをえないでしょう.
11083 \end_layout
11084
11085 \begin_layout Standard
11086
11087 \family sans
11088 foils
11089 \family default
11090 クラスは,\SpecialChar LaTeX2e
11091 の一部として含まれている\SpecialChar LaTeX
11092 クラスファイル
11093 \family sans
11094 foils.cls
11095 \family default
11096 の第2.1版とともに使われるように設計されています.
11097 \end_layout
11098
11099 \begin_layout Subsection
11100 最初の一歩
11101 \end_layout
11102
11103 \begin_layout Standard
11104 いうまでもなく,この文書クラスを使うには,
11105 \family sans
11106 文書\SpecialChar menuseparator
11107 設定\SpecialChar menuseparator
11108 文書クラス
11109 \family default
11110 メニューの
11111 \family sans
11112 文書クラス
11113 \family default
11114 ドロップダウンで「
11115 \family sans
11116 presentation (FoilT
11117 \begin_inset ERT
11118 status collapsed
11119
11120 \begin_layout Plain Layout
11121
11122 {}
11123 \end_layout
11124
11125 \end_inset
11126
11127 eX)
11128 \family default
11129 」を選択する必要があります.また,
11130 \family sans
11131 文書設定
11132 \family default
11133 ダイアログ中には,以下のように,このクラスに特有の設定がいくつかあることを知っておかなくてはなりません.
11134 \end_layout
11135
11136 \begin_layout Itemize
11137
11138 \family sans
11139 文書設定
11140 \family default
11141 ダイアログ中の,
11142 \family sans
11143 両面文書
11144 \family default
11145 オプションと
11146 \family sans
11147 二段組文書
11148 \family default
11149 オプションは変更しないでください.これらは 
11150 \family sans
11151 foils
11152 \family default
11153 クラスでは無視されます.
11154 \end_layout
11155
11156 \begin_layout Itemize
11157 既定のフォント寸法は20ptであり,17pt・25pt・30ptを選択することも可能です.
11158 \end_layout
11159
11160 \begin_layout Itemize
11161 既定のフォントは
11162 \family sans
11163 sans
11164 \family default
11165  
11166 \family sans
11167 serif
11168 \family default
11169 ですが,数式ではすべて,通常のローマン体が使用されます.
11170 \end_layout
11171
11172 \begin_layout Itemize
11173 Foil\SpecialChar TeX
11174 は,35
11175 \begin_inset space \thinspace{}
11176 \end_inset
11177
11178 mmスライド用の特殊寸法の他,A4とレター大の用紙寸法をサポートします.A5・B5・リーガル・エグゼクティブ大の用紙寸法はサポートしていません.
11179 \end_layout
11180
11181 \begin_layout Itemize
11182
11183 \family sans
11184 フロートの配置
11185 \family default
11186 の設定は無視されますので,わざわざ変更する必要はありません.フロートはすべて,本文中で定義された位置に表示されます.
11187 \end_layout
11188
11189 \begin_layout Itemize
11190 このクラスの
11191 \family sans
11192 ページレイアウト
11193 \family default
11194 の設定は,若干異なった挙動を示します.Foil\SpecialChar TeX
11195 では,ユーザ定義のロゴをはじめ,フッタとへッダに広範な設定ができます.詳細については第
11196 \begin_inset CommandInset ref
11197 LatexCommand ref
11198 reference "sec:foilfoot"
11199
11200 \end_inset
11201
11202 節をご覧ください.タイトルページは,文書中の他のページとは異なった取扱がなされ,ページ番号は
11203 \emph on
11204 つねに
11205 \emph default
11206 付けられず,(ロゴが定義されていれば)ロゴは,
11207 \emph on
11208 つねに
11209 \emph default
11210 ページ下部中央に表示されます.使用できるページ様式とその挙動は,以下の通りです.
11211 \begin_inset Separator latexpar
11212 \end_inset
11213
11214
11215 \end_layout
11216
11217 \begin_deeper
11218 \begin_layout Labeling
11219 \labelwidthstring MMMMMMM
11220
11221 \family sans
11222 \series bold
11223 empty
11224 \family default
11225 \series default
11226  最終出力には,ページ番号をはじめ,へッダ・フッタが出力されません(もちろん脚注は除きます).
11227 \end_layout
11228
11229 \begin_layout Labeling
11230 \labelwidthstring MMMMMMM
11231
11232 \family sans
11233 \series bold
11234 plain
11235 \family default
11236 \series default
11237  最終出力には,ページ番号がページ下部の中央に出力されますが,他のへッダ・フッタは出力されません(脚注除く).
11238 \end_layout
11239
11240 \begin_layout Labeling
11241 \labelwidthstring MMMMMMM
11242
11243 \series bold
11244 foilheadings
11245 \series default
11246  ページ番号が右下隅に出力されます.追記したへッダ・フッタも出力されます.これが既定値です.
11247 \end_layout
11248
11249 \begin_layout Labeling
11250 \labelwidthstring MMMMMMM
11251
11252 \series bold
11253 fancy
11254 \series default
11255  これは
11256 \family sans
11257 fancyheadings
11258 \family default
11259 パッケージを使えるようにします.ただし,Foil\SpecialChar TeX
11260 パッケージの作者は,ページレイアウトが崩れる可能性があるので,これを使用することは勧めないと言及しています.
11261 \end_layout
11262
11263 \end_deeper
11264 \begin_layout Subsubsection
11265 任意設定クラスオプション
11266 \end_layout
11267
11268 \begin_layout Standard
11269 以下のオプションは
11270 \family sans
11271 文書設定
11272 \family default
11273 ダイアログの任意設定クラスオプションボックスで使うことができます.
11274 \end_layout
11275
11276 \begin_layout Labeling
11277 \labelwidthstring MMMMMMx
11278
11279 \series bold
11280 35mmSlide
11281 \series default
11282  これは,ページレイアウトを縦7.33インチ横11インチに設定します.これは35
11283 \begin_inset space \space{}
11284 \end_inset
11285
11286 mmスライドの縦横比にほぼ等しく,このメディアを作る作業が若干易しくなります.
11287 \end_layout
11288
11289 \begin_layout Labeling
11290 \labelwidthstring MMMMMMx
11291
11292 \series bold
11293 headrule
11294 \series default
11295  タイトルページを除くすべてのページのへッダの下に罫線を入れます.
11296 \end_layout
11297
11298 \begin_layout Labeling
11299 \labelwidthstring MMMMMMx
11300
11301 \series bold
11302 footrule
11303 \series default
11304  タイトルページを除くすべてのページのフッタの上に罫線を入れます.
11305 \end_layout
11306
11307 \begin_layout Labeling
11308 \labelwidthstring MMMMMMx
11309
11310 \series bold
11311 dvips
11312 \series default
11313  これは,新規
11314 \family sans
11315 foils
11316 \family default
11317 文書を作成する度に自動的に設定されます.このオプションは,横向きに設定されたページを回転させるのに,dvipsドライバを使うようFoil\SpecialChar TeX
11318 に指示します.
11319 \end_layout
11320
11321 \begin_layout Labeling
11322 \labelwidthstring MMMMMMx
11323
11324 \series bold
11325 landscape
11326 \series default
11327  このオプションは,用紙寸法を横向きページ大に変更するだけで,回転は行いません.したがって,このオプションを使う場合は,各ページを回転させる外部プログラムを使用
11328 する,プリンタに用紙を横向きに給紙する必要があります.また,このオプションは,
11329 \family sans
11330 Foilhead
11331 \family default
11332 環境と
11333 \family sans
11334 Rotatefoilhead
11335 \family default
11336 環境の役割を逆転させることに注意してください(これらの環境については次節で説明します).
11337 \end_layout
11338
11339 \begin_layout Labeling
11340 \labelwidthstring MMMMMMx
11341
11342 \series bold
11343 leqno
11344 \series default
11345  数式番号を左側に付けます.
11346 \end_layout
11347
11348 \begin_layout Labeling
11349 \labelwidthstring MMMMMMx
11350
11351 \series bold
11352 fleqn
11353 \series default
11354  数式を左揃えにします.
11355 \end_layout
11356
11357 \begin_layout Subsection
11358 サポートされる環境
11359 \end_layout
11360
11361 \begin_layout Standard
11362 他のクラスで標準的にサポートされている環境は,
11363 \family sans
11364 foils
11365 \family default
11366 クラスでもサポートされています.それ以外に,Foil\SpecialChar TeX
11367 が提供している環境と,\SpecialChar LyX
11368 が付け加えた環境があります.以下の環境は,他のクラスと共通の環境です.
11369 \end_layout
11370
11371 \begin_layout Standard
11372
11373 \family sans
11374 \begin_inset Flex Multiple Columns
11375 status open
11376
11377 \begin_layout Itemize
11378
11379 \family sans
11380 標準
11381 \end_layout
11382
11383 \begin_layout Itemize
11384
11385 \family sans
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 \SpecialChar LyX
11411 コード
11412 \end_layout
11413
11414 \begin_layout Itemize
11415
11416 \family sans
11417 詩句
11418 \end_layout
11419
11420 \begin_layout Itemize
11421
11422 \family sans
11423 引用(字下げあり)
11424 \end_layout
11425
11426 \begin_layout Itemize
11427
11428 \family sans
11429 引用(字下げなし)
11430 \end_layout
11431
11432 \begin_layout Itemize
11433
11434 \family sans
11435 タイトル
11436 \end_layout
11437
11438 \begin_layout Itemize
11439
11440 \family sans
11441 著者
11442 \end_layout
11443
11444 \begin_layout Itemize
11445
11446 \family sans
11447 日付
11448 \end_layout
11449
11450 \begin_layout Itemize
11451
11452 \family sans
11453 概要
11454 \end_layout
11455
11456 \begin_layout Itemize
11457
11458 \family sans
11459 書誌情報
11460 \end_layout
11461
11462 \begin_layout Itemize
11463
11464 \family sans
11465 住所
11466 \end_layout
11467
11468 \begin_layout Itemize
11469
11470 \family sans
11471 右寄せ住所
11472 \end_layout
11473
11474 \begin_layout Itemize
11475
11476 \family sans
11477 キャプション
11478 \end_layout
11479
11480 \begin_layout Itemize
11481
11482 \family sans
11483 コメント
11484 \end_layout
11485
11486 \end_inset
11487
11488
11489 \end_layout
11490
11491 \begin_layout Standard
11492 つまり,節区切りを除けば,主な環境のすべてです.一枚のスライドは,基本的にタイトルと本文を備えた自己完結した節なので,
11493 \family sans
11494 Foil
11495 \family default
11496 \SpecialChar TeX
11497 は新しいスライドを始める以下のようなコマンドを備えています.
11498 \end_layout
11499
11500 \begin_layout Itemize
11501
11502 \family sans
11503 スライドタイトル(Foilhead)
11504 \end_layout
11505
11506 \begin_layout Itemize
11507
11508 \family sans
11509 横置きスライドタイトル(Rotatefoilhead)
11510 \end_layout
11511
11512 \begin_layout Standard
11513 \SpecialChar LyX
11514 は,以下のような,これらを若干修正した環境も用意しています.
11515 \end_layout
11516
11517 \begin_layout Itemize
11518
11519 \family sans
11520 スライドタイトル(小)(ShortFoilhead)
11521 \end_layout
11522
11523 \begin_layout Itemize
11524
11525 \family sans
11526 横置きスライドタイトル(小)(ShortRotatefoilhead)
11527 \end_layout
11528
11529 \begin_layout Standard
11530 これらの違いは次節で説明します.
11531 \end_layout
11532
11533 \begin_layout Standard
11534 スライドは,アイデアを説明したり,新しい定理を説明したりするのにしばしば使われるので,
11535 \family sans
11536 Foil
11537 \family default
11538 \SpecialChar TeX
11539 はそれらを説明するのに便利な環境を幅広く用意しています.
11540 \end_layout
11541
11542 \begin_layout Standard
11543
11544 \family sans
11545 \begin_inset Flex Multiple Columns
11546 status open
11547
11548 \begin_layout Itemize
11549
11550 \family sans
11551 定理
11552 \end_layout
11553
11554 \begin_layout Itemize
11555
11556 \family sans
11557 補題
11558 \end_layout
11559
11560 \begin_layout Itemize
11561
11562 \family sans
11563
11564 \end_layout
11565
11566 \begin_layout Itemize
11567
11568 \family sans
11569 命題
11570 \end_layout
11571
11572 \begin_layout Itemize
11573
11574 \family sans
11575 定義
11576 \end_layout
11577
11578 \begin_layout Itemize
11579
11580 \family sans
11581 証明
11582 \end_layout
11583
11584 \begin_layout Itemize
11585
11586 \family sans
11587 定理*
11588 \end_layout
11589
11590 \begin_layout Itemize
11591
11592 \family sans
11593 補題*
11594 \end_layout
11595
11596 \begin_layout Itemize
11597
11598 \family sans
11599 系*
11600 \end_layout
11601
11602 \begin_layout Itemize
11603
11604 \family sans
11605 命題*
11606 \end_layout
11607
11608 \begin_layout Itemize
11609
11610 \family sans
11611 定義*
11612 \end_layout
11613
11614 \end_inset
11615
11616
11617 \end_layout
11618
11619 \begin_layout Standard
11620 星付き版は連番が振られず,星なし版は連番が振られます.他に,\SpecialChar LyX
11621 で追加された以下の2つの箇条書き環境があります.
11622 \end_layout
11623
11624 \begin_layout Itemize
11625
11626 \family sans
11627 箇条書き(チック)
11628 \end_layout
11629
11630 \begin_layout Itemize
11631
11632 \family sans
11633 箇条書き(クロス)
11634 \end_layout
11635
11636 \begin_layout Standard
11637 Foil\SpecialChar TeX
11638 には,強力なヘッダ機能とフッタ機能があり,これらはプリアンブルで設定するのが最良ですが,文章中のどこでも設定することができます.もし文書中でこれらの設定
11639 を変更したい場合には,スライドの一番上,foilheadの直後で行うのが良いでしょう.
11640 \end_layout
11641
11642 \begin_layout Standard
11643 この目的のためには,以下のコマンドスタイルがあります(
11644 \shape smallcaps
11645 Martin Vermeer).
11646 \end_layout
11647
11648 \begin_layout Standard
11649 \begin_inset Flex Multiple Columns
11650 status open
11651
11652 \begin_layout Itemize
11653
11654 \family sans
11655 グラフィックスロゴ
11656 \end_layout
11657
11658 \begin_layout Itemize
11659
11660 \family sans
11661 配布制限
11662 \end_layout
11663
11664 \begin_layout Itemize
11665
11666 \family sans
11667 右フッタ
11668 \end_layout
11669
11670 \begin_layout Itemize
11671
11672 \family sans
11673 右ヘッダ
11674 \end_layout
11675
11676 \begin_layout Itemize
11677
11678 \family sans
11679 左ヘッダ
11680 \family default
11681
11682 \begin_inset Separator latexpar
11683 \end_inset
11684
11685
11686 \end_layout
11687
11688 \begin_deeper
11689 \begin_layout Plain Layout
11690 \begin_inset space ~
11691 \end_inset
11692
11693
11694 \end_layout
11695
11696 \end_deeper
11697 \end_inset
11698
11699
11700 \end_layout
11701
11702 \begin_layout Standard
11703 Foil\SpecialChar TeX
11704 が提供しているコマンドで,\SpecialChar LyX
11705 が直接サポートしていないコマンドもありますが,これらの説明と使い方については,第
11706 \begin_inset CommandInset ref
11707 LatexCommand ref
11708 reference "sec:unsuppfoils"
11709
11710 \end_inset
11711
11712 節で行います.
11713 \end_layout
11714
11715 \begin_layout Subsection
11716 スライドの組を作る
11717 \end_layout
11718
11719 \begin_layout Standard
11720 この節は,様々な環境を使ってスライドの組を作る方法を簡単に紹介します.スライド組の例をご覧になりたい場合は,\SpecialChar LyX
11721
11722 \family typewriter
11723 examples
11724 \family default
11725 フォルダにある
11726 \family typewriter
11727 Foils.lyx
11728 \family default
11729 ファイルをご覧ください.
11730 \end_layout
11731
11732 \begin_layout Subsubsection
11733 タイトルページを作る
11734 \end_layout
11735
11736 \begin_layout Standard
11737
11738 \family sans
11739 タイトル
11740 \family default
11741
11742 \family sans
11743 著者
11744 \family default
11745
11746 \family sans
11747 日付
11748 \family default
11749
11750 \family sans
11751 概要
11752 \family default
11753 環境のある他のクラスとは異なり,
11754 \family sans
11755 foils
11756 \family default
11757 は独立したページにタイトルを作成します.
11758 \family sans
11759 日付
11760 \family default
11761 環境を使用しなかった場合には,\SpecialChar LaTeX
11762 は(出力を生成し直したときにはいつも)その時点の日付を挿入します.
11763 \end_layout
11764
11765 \begin_layout Subsubsection
11766 新しいスライドを開始する
11767 \end_layout
11768
11769 \begin_layout Standard
11770 前述のように,新しいスライドを開始するには,4つの方法があります.縦向きのスライドを開始するには,
11771 \family sans
11772 スライドタイトル(Foilhead)
11773 \family default
11774
11775 \family sans
11776 スライドタイトル(小)(ShortFoilhead)
11777 \family default
11778 を使用します.両環境の違いは,スライドタイトル(foilhead)とスライド本文の間の余白の違いです.
11779 \end_layout
11780
11781 \begin_layout Standard
11782 横向きのスライドは,
11783 \family sans
11784 横向きスライドタイトル(Rotatefoilhead)
11785 \family default
11786 か横向きスライドタイトル(小)(
11787 \family sans
11788 ShortRotatefoilhead)
11789 \family default
11790 環境を使用して生成します.ここでも両環境の違いは,タイトルと本文の間の余白のみです.どちらの場合も,(小)と記された版は,タイトルと本文の間の余白が,0.5インチ
11791 (約1.27cm)小さくなります.
11792 \end_layout
11793
11794 \begin_layout Standard
11795 横向きのスライドをサポートする際,一つ問題となるのは,スライドを回転させようと思うと,PostScript出力を生成するのに
11796 \family typewriter
11797 dvips
11798 \family default
11799 ドライバを使用することを要求してしまうことです.もしスライドをプリンタに横に給紙することができれば,
11800 \family typewriter
11801 dvips
11802 \family default
11803 ドライバを持っていなくても,横向きのスライドをつくることができます ;-)
11804 \end_layout
11805
11806 \begin_layout Subsubsection
11807 定理・補題・証明など
11808 \end_layout
11809
11810 \begin_layout Standard
11811 \SpecialChar LyX
11812 中の小さなバグによって,これらの環境の同じ型をお互いに直接続けて置くことはできません.これらは何かによって分離されなくてはなりません.仮に二つ続けて置いても,2
11813 つの環境をマージしたかのように,前の環境が延長されるだけです.この問題を回避するにはどうすればよいのでしょうか.最も簡単な方法は,二つの環境の間に何か文章を置く
11814 か,あるいは二つの間に「
11815 \family typewriter
11816 %
11817 \family default
11818 」だけから成る\SpecialChar LaTeX
11819 環境を置くことです.これによって,\SpecialChar LyX
11820 は2つの別々の環境を生成するように強制され,正しい\SpecialChar LaTeX
11821 出力を得ることができます.\SpecialChar LyX
11822 頒布版に含まれる用例ファイルに例があ
11823 ります.この問題は,二つの同じ定理型環境を立て続けに置こうとした場合にのみ発生することに注意してください.
11824 \end_layout
11825
11826 \begin_layout Subsubsection
11827 箇条書き
11828 \end_layout
11829
11830 \begin_layout Standard
11831 他のクラスでも共通にサポートされている箇条書き様式すべてに加えて,二つの新しい様式を使用することができます.ここでは,その新しい様式のみを説明することにします.
11832 他の箇条書き環境について詳しく知りたい場合には,
11833 \emph on
11834 ユーザーの手引き
11835 \emph default
11836 をご覧ください.記号による箇条書きを使用したい場合には,上記第
11837 \begin_inset CommandInset ref
11838 LatexCommand ref
11839 reference "sec:ブリット"
11840
11841 \end_inset
11842
11843 節の
11844 \family sans
11845 箇条書き(記号)ブリットの指定
11846 \family default
11847 の節も,読まれることが望ましいでしょう.
11848 \end_layout
11849
11850 \begin_layout Standard
11851
11852 \family sans
11853 箇条書き(チック)
11854 \family default
11855
11856 \family sans
11857 箇条書き(クロス)
11858 \family default
11859 の二つの新しい様式は,チェック印や
11860 \begin_inset Formula $\times$
11861 \end_inset
11862
11863 印を箇条書きのラベルに使用する専用の環境を提供することで,予定一覧や正誤一覧を作りやすくするように設計されたものです.これらの箇条書きは,
11864 \family sans
11865 箇条書き(記号)
11866 \family default
11867 の派生型を専用に用意したものに過ぎません.ただし,これらは,
11868 \family typewriter
11869 psnfss
11870 \family default
11871 パッケージが導入済であることを要求します.
11872 \end_layout
11873
11874 \begin_layout Subsubsection
11875 図と表
11876 \end_layout
11877
11878 \begin_layout Standard
11879 Foil\SpecialChar TeX
11880 では,図表フロートは,本文中の挿入箇所にこれらが正確に表示されるように再定義されており,ページの上部やユーザー指定場所に押しのけたりはしないようになって
11881 います.たとえフロート配置の設定に変更を加えたとしても,単に無視されます.
11882 \end_layout
11883
11884 \begin_layout Subsubsection
11885 ページヘッダおよびページフッタ
11886 \begin_inset CommandInset label
11887 LatexCommand label
11888 name "sec:foilfoot"
11889
11890 \end_inset
11891
11892
11893 \end_layout
11894
11895 \begin_layout Standard
11896
11897 \family sans
11898 グラフィックスロゴ
11899 \family default
11900
11901 \family sans
11902 配布制限
11903 \family default
11904 の二つは,左フッタ文を制御するものです.前者は,グラフィックスのロゴをスライドに入れるためのもので,既定値は「-Typeset by 
11905 \family sans
11906 Foil
11907 \family default
11908 \SpecialChar TeX
11909 -」となっています.後者は,「機密事項」などのように,聴衆に秘密区分を提示することを意図しています.既定値では,何も設定されていません.
11910 \end_layout
11911
11912 \begin_layout Standard
11913 スライドの残り三隅には,
11914 \family sans
11915 右フッタ
11916 \family default
11917 (既定ではページ番号)・
11918 \family sans
11919 右ヘッダ
11920 \family default
11921 (右上)・
11922 \family sans
11923 左ヘッダ
11924 \family default
11925 (左上)を使って文字を入れることができます.
11926 \end_layout
11927
11928 \begin_layout Subsection
11929 サポートされない 
11930 \family sans
11931 Foil
11932 \family default
11933 \SpecialChar TeX
11934 機能
11935 \begin_inset CommandInset label
11936 LatexCommand label
11937 name "sec:unsuppfoils"
11938
11939 \end_inset
11940
11941
11942 \end_layout
11943
11944 \begin_layout Standard
11945 以下で言及されているコマンドは,
11946 \family sans
11947 \SpecialChar LaTeX
11948
11949 \family default
11950 環境内で設定されるか,他の環境中の
11951 \family sans
11952 \SpecialChar TeX
11953 コード
11954 \family default
11955 として設定される必要があります.
11956 \end_layout
11957
11958 \begin_layout Subsubsection
11959 長さ
11960 \end_layout
11961
11962 \begin_layout Standard
11963 長さは,すべて
11964 \family typewriter
11965
11966 \backslash
11967 setlength{
11968 \family default
11969 \emph on
11970 長さ名
11971 \family typewriter
11972 \emph default
11973 }{
11974 \family default
11975 \emph on
11976 新規長さ
11977 \family typewriter
11978 \emph default
11979 }
11980 \family default
11981 コマンドで調節されます.ここで
11982 \emph on
11983 長さ名
11984 \emph default
11985 は,変更したい長さに付けられている名前で置き換え,
11986 \emph on
11987 新規長さ
11988 \emph default
11989 は,その長さの値で置き換えます.長さはすべて,インチ(in)・ミリメートル(mm)・ポイント(pt)のような長さ単位か,
11990 \family typewriter
11991
11992 \backslash
11993 textwidth
11994 \family default
11995 のように文書比あるいはフォント基準の長さで指定する必要があります.
11996 \end_layout
11997
11998 \begin_layout Standard
11999
12000 \family typewriter
12001
12002 \backslash
12003 foilheadskip
12004 \family default
12005 で指定される長さを調節することによって,スライドタイトルとスライド本文の間の余白を変更することができます.たとえば,スライドタイトルをすべて0.5
12006 \begin_inset space \space{}
12007 \end_inset
12008
12009 inだけスライド本文に近づけるには,プリアンブルに
12010 \family typewriter
12011
12012 \backslash
12013 setlength{
12014 \backslash
12015 foilheadskip}{-0.5in}
12016 \family default
12017 と書き込みます.
12018 \end_layout
12019
12020 \begin_layout Standard
12021 フロート周囲の余白は,以下の長さを設定することで調整することができます.
12022 \end_layout
12023
12024 \begin_layout Labeling
12025 \labelwidthstring MMMMMMMMMMM
12026
12027 \family typewriter
12028
12029 \backslash
12030 abovefloatskip
12031 \family default
12032  本文とフロート上辺との間隔
12033 \end_layout
12034
12035 \begin_layout Labeling
12036 \labelwidthstring MMMMMMMMMMM
12037
12038 \family typewriter
12039
12040 \backslash
12041 abovecaptionskip
12042 \family default
12043  フロートとキャプションとの間隔
12044 \end_layout
12045
12046 \begin_layout Labeling
12047 \labelwidthstring MMMMMMMMMMM
12048
12049 \family typewriter
12050
12051 \backslash
12052 belowcaptionskip
12053 \family default
12054  キャプションとそれに続く本文との間隔
12055 \end_layout
12056
12057 \begin_layout Labeling
12058 \labelwidthstring MMMMMMMMMMM
12059
12060 \family typewriter
12061
12062 \backslash
12063 captionwidth
12064 \family default
12065  この長さを調整することでキャプションを,周囲の本文より短くすることができます.
12066 \family typewriter
12067
12068 \backslash
12069 textwidth
12070 \family default
12071 に対する相対的な長さで調整するのが最も良いでしょう.
12072 \end_layout
12073
12074 \begin_layout Standard
12075 以下のようなタイトルページ関連の長さもあり,タイトルが長い場合や,著者が複数いる場合に使うと便利かもしれません.
12076 \end_layout
12077
12078 \begin_layout Labeling
12079 \labelwidthstring MMMMMMMMMMM
12080
12081 \family typewriter
12082
12083 \backslash
12084 abovetitleskip
12085 \family default
12086  へッダとタイトルとの間隔
12087 \end_layout
12088
12089 \begin_layout Labeling
12090 \labelwidthstring MMMMMMMMMMM
12091
12092 \family typewriter
12093
12094 \backslash
12095 titleauthorskip
12096 \family default
12097  
12098 \family sans
12099 タイトル
12100 \family default
12101 環境と
12102 \family sans
12103 著者
12104 \family default
12105 環境との間隔
12106 \end_layout
12107
12108 \begin_layout Labeling
12109 \labelwidthstring MMMMMMMMMMM
12110
12111 \family typewriter
12112
12113 \backslash
12114 authorauthorskip
12115 \family default
12116  著者が複数いる場合の
12117 \family sans
12118 著者
12119 \family default
12120 行の間隔
12121 \end_layout
12122
12123 \begin_layout Labeling
12124 \labelwidthstring MMMMMMMMMMM
12125
12126 \family typewriter
12127
12128 \backslash
12129 authordateskip
12130 \family default
12131  
12132 \family sans
12133 著者
12134 \family default
12135
12136 \family sans
12137 日付
12138 \family default
12139 との間隔
12140 \end_layout
12141
12142 \begin_layout Labeling
12143 \labelwidthstring MMMMMMMMMMM
12144
12145 \family typewriter
12146
12147 \backslash
12148 dateabstractskip
12149 \family default
12150  
12151 \family sans
12152 日付
12153 \family default
12154
12155 \family sans
12156 概要
12157 \family default
12158 との間隔
12159 \end_layout
12160
12161 \begin_layout Standard
12162 最後に紹介する長さ関連コマンドは,箇条書き環境すべてに使用できるものです.
12163 \family typewriter
12164
12165 \backslash
12166 zerolistvertdimens
12167 \family default
12168 を箇条書き環境の内側に置くと,項目間の垂直余白がすべて取り除かれます.これは長さではなくコマンドなので,上述のもののように
12169 \family typewriter
12170
12171 \backslash
12172 setlength
12173 \family default
12174 を使う必要がないことに注意してください.
12175 \end_layout
12176
12177 \begin_layout Subsubsection
12178 へッダとフッタ
12179 \end_layout
12180
12181 \begin_layout Standard
12182
12183 \family typewriter
12184
12185 \backslash
12186 LogoOn
12187 \family default
12188 および
12189 \family typewriter
12190
12191 \backslash
12192 LogoOff
12193 \family default
12194 は,
12195 \family typewriter
12196 MyLogo
12197 \family default
12198 で定義したロゴを特定のページに入れるかどうかを制御します.
12199 \family typewriter
12200
12201 \backslash
12202 LogoOff
12203 \family default
12204 をプリアンブルに入れると,全スライドからロゴが取り除かれます.特定のスライドにのみロゴを付けたくない場合は,当該ページのスライドタイトルの直後に直接
12205 \family typewriter
12206
12207 \backslash
12208 LogoOff
12209 \family default
12210 を置き,次のスライドタイトルの直後に直接
12211 \family typewriter
12212
12213 \backslash
12214 LogoOn
12215 \family default
12216 を置いてください.
12217 \end_layout
12218
12219 \begin_layout Standard
12220
12221 \family sans
12222 文書レイアウト
12223 \family default
12224 ダイアログで
12225 \family sans
12226 fancy
12227 \family default
12228 ページ様式を使用することを選択した場合には,横置きページのヘッダとフッタが回転後も正しく配置されるように,プリアンブルに
12229 \family typewriter
12230
12231 \backslash
12232 let
12233 \backslash
12234 headwidth
12235 \backslash
12236 textwidth
12237 \family default
12238 を加える必要があるでしょう.これは,
12239 \family sans
12240 fancyheadings
12241 \family default
12242 パッケージが提供するページレイアウトと
12243 \family sans
12244 foils
12245 \family default
12246 クラスの提供するページレイアウトの間に衝突が発生するためです.
12247 \end_layout
12248
12249 \begin_layout Section
12250 Hollywood(Hollywoodスペック・スクリプト)
12251 \end_layout
12252
12253 \begin_layout Standard
12254
12255 \noun on
12256 Garst Reese
12257 \noun default
12258
12259 \end_layout
12260
12261 \begin_layout Subsection
12262 はじめに
12263 \end_layout
12264
12265 \begin_layout Standard
12266 脚本を正しい書式で書くことは,ハリウッドにおける「通過儀礼」です.ハリウッドの脚本は,読み手が内容に集中できるようにし,俳優にとっても読みやすくかつ親しみやすい
12267 ように設計されています.脚本の1ページは,映画の1分でなければならず,銀幕上で見えたり聞こえたりしないものは,脚本に混入してはなりません.また,全体を通してCo
12268 urier 12
12269 \begin_inset space \space{}
12270 \end_inset
12271
12272 ptフォントを使わなければならず,イタリック体は用いてはいけません.
12273 \end_layout
12274
12275 \begin_layout Subsection
12276 特別な問題
12277 \end_layout
12278
12279 \begin_layout Standard
12280 話者の行は,文の途中で改行することは
12281 \emph on
12282 決して
12283 \emph default
12284 あってはなりません.もし話者行の塊が,次頁にまたがる場合には,
12285 \family sans
12286 話者
12287 \family default
12288 名を再度書き,その後に(Cont'd)と加えます.
12289 \end_layout
12290
12291 \begin_layout Subsection
12292 特別な機能
12293 \end_layout
12294
12295 \begin_layout Standard
12296
12297 \family sans
12298 話者
12299 \family default
12300 名はラベルとして挿入し,話者名を挿入するには,そのラベルを相互参照してください.相互参照ダイアログは,登場人物の現在の配役を表示することになります.これは,ト書
12301 きに話者名を挿入するのにも使用することができます.
12302 \end_layout
12303
12304 \begin_layout Subsection
12305 用紙寸法と余白
12306 \end_layout
12307
12308 \begin_layout Standard
12309 USレター寸法で,左余白1.6インチ・右余白0.75インチ・上余白0.5インチ・下余白0.75インチです.
12310 \end_layout
12311
12312 \begin_layout Subsection
12313 環境
12314 \end_layout
12315
12316 \begin_layout Standard
12317 以下の環境が利用可能です.右に示されている
12318 \begin_inset Flex Ruby
12319 status collapsed
12320
12321 \begin_layout Plain Layout
12322
12323 \begin_inset Argument post:1
12324 status collapsed
12325
12326 \begin_layout Plain Layout
12327 キー
12328 \end_layout
12329
12330 \end_inset
12331
12332
12333 \end_layout
12334
12335 \end_inset
12336
12337 割当てを使用するには,hollywood.bindを使用してください.
12338 \end_layout
12339
12340 \begin_layout Itemize
12341
12342 \family sans
12343 一般
12344 \begin_inset Newline newline
12345 \end_inset
12346
12347
12348 \family default
12349 他の環境が動作しない場合に使用しますが,これを使うことは避けるようにしてください.
12350 \end_layout
12351
12352 \begin_layout Itemize
12353 フェイドイン:
12354 \begin_inset space \hfill{}
12355 \end_inset
12356
12357
12358 \family sans
12359 M-z S-I
12360 \family default
12361
12362 \begin_inset Newline newline
12363 \end_inset
12364
12365 通常,この後には「Sallyは目を覚ますと」のように続きます.
12366 \end_layout
12367
12368 \begin_layout Itemize
12369
12370 \family sans
12371 屋内:
12372 \begin_inset space \hfill{}
12373 \end_inset
12374
12375 M-z i
12376 \begin_inset Newline newline
12377 \end_inset
12378
12379
12380 \family default
12381 新しい屋内(INTERIOR)カメラの設定を指定します.この後には,かならずDAYやNIGHTなどを指定して,必要な照明を定義します.この行はすべて大文字で書き
12382 ます.
12383 \end_layout
12384
12385 \begin_layout Itemize
12386
12387 \family sans
12388 屋外:
12389 \begin_inset space \hfill{}
12390 \end_inset
12391
12392 M-z e
12393 \begin_inset Newline newline
12394 \end_inset
12395
12396
12397 \family default
12398 屋外(EXTERIOR)カメラの設定を指定します.この行はすべて大文字で書きます.
12399 \end_layout
12400
12401 \begin_layout Itemize
12402
12403 \family sans
12404 話者
12405 \begin_inset space \hfill{}
12406 \end_inset
12407
12408 M-z s
12409 \begin_inset Newline newline
12410 \end_inset
12411
12412
12413 \family default
12414 話す役.
12415 \end_layout
12416
12417 \begin_layout Itemize
12418
12419 \family sans
12420 括弧付き
12421 \begin_inset space \hfill{}
12422 \end_inset
12423
12424 M-z p
12425 \begin_inset Newline newline
12426 \end_inset
12427
12428 話者
12429 \family default
12430 への指示.自動的に括弧()が挿入されますが,\SpecialChar LyX
12431 上で表示されるのは,左括弧( のみです.印刷出力には右括弧も表示されます.
12432 \end_layout
12433
12434 \begin_layout Itemize
12435
12436 \family sans
12437 対話
12438 \begin_inset space \hfill{}
12439 \end_inset
12440
12441 M-z d
12442 \begin_inset Newline newline
12443 \end_inset
12444
12445 話者
12446 \family default
12447 が話す内容.
12448 \end_layout
12449
12450 \begin_layout Itemize
12451
12452 \family sans
12453 画面遷移
12454 \begin_inset space \hfill{}
12455 \end_inset
12456
12457 M-z t
12458 \begin_inset Newline newline
12459 \end_inset
12460
12461
12462 \family default
12463 カメラの動きの指示.例:CUT TO:.
12464 \end_layout
12465
12466 \begin_layout Itemize
12467
12468 \family sans
12469 フェイドアウト:
12470 \begin_inset space \hfill{}
12471 \end_inset
12472
12473 M-z S-I
12474 \end_layout
12475
12476 \begin_layout Itemize
12477
12478 \family sans
12479 著者
12480 \begin_inset space \hfill{}
12481 \end_inset
12482
12483 M-z S-A
12484 \end_layout
12485
12486 \begin_layout Itemize
12487
12488 \family sans
12489 タイトル
12490 \begin_inset space \hfill{}
12491 \end_inset
12492
12493 M-z S-T
12494 \end_layout
12495
12496 \begin_layout Itemize
12497
12498 \family sans
12499 右寄せ住所
12500 \begin_inset space \hfill{}
12501 \end_inset
12502
12503 M-z r
12504 \end_layout
12505
12506 \begin_layout Subsection
12507 脚本で使われる特別な用語
12508 \end_layout
12509
12510 \begin_layout Itemize
12511 (O.S) — off screen
12512 \end_layout
12513
12514 \begin_layout Itemize
12515 (V.0) — voice over
12516 \end_layout
12517
12518 \begin_layout Itemize
12519 b.g.
12520  — background
12521 \end_layout
12522
12523 \begin_layout Itemize
12524 C.U.
12525  — close-up
12526 \end_layout
12527
12528 \begin_layout Itemize
12529 PAN — camera movement
12530 \end_layout
12531
12532 \begin_layout Itemize
12533 INSERT — cut to close-up of
12534 \end_layout
12535
12536 \begin_layout Section
12537 ijmpcおよびijmpd
12538 \end_layout
12539
12540 \begin_layout Standard
12541
12542 \noun on
12543 Panayotis Papasotiriou
12544 \noun default
12545
12546 \end_layout
12547
12548 \begin_layout Subsection
12549 概観
12550 \end_layout
12551
12552 \begin_layout Standard
12553 ijpmcパッケージは,
12554 \emph on
12555 International Journal of Modern Physics C
12556 \emph default
12557 への電子投稿を可能にするためのマクロ集です.同様に,ijpmdパッケージは,
12558 \emph on
12559 International Journal of Modern Physics D
12560 \emph default
12561 へ投稿する現行を作成するためのものです.両誌ともWorld Scientific社の刊行です.対応する文書クラス名は,それぞれ
12562 \family typewriter
12563 ws-ijmpc.cls
12564 \family default
12565 および
12566 \family typewriter
12567 ws-ijmpd.cls
12568 \family default
12569 です.これらのファイルは,著者のための指針とともに,
12570 \begin_inset Flex URL
12571 status collapsed
12572
12573 \begin_layout Plain Layout
12574
12575 http://www.worldscinet.com/ijmpc/mkt/guidelines.shtml
12576 \end_layout
12577
12578 \end_inset
12579
12580 および
12581 \begin_inset Flex URL
12582 status collapsed
12583
12584 \begin_layout Plain Layout
12585
12586 http://www.worldscinet.com/ijmpd/mkt/guidelines.shtml
12587 \end_layout
12588
12589 \end_inset
12590
12591 の各サイトからダウンロードすることができます.両パッケージは,標準「article」パッケージの修正版であり,両者は(一部を除き)ほぼ同一です.\SpecialChar LyX
12592 は,これらのパッ
12593 ケージのほとんどの機能をサポートしています.私は両誌へ投稿する論文を\SpecialChar LyX
12594 で書き上げましたが,何らの問題も生じませんでした.
12595 \end_layout
12596
12597 \begin_layout Subsection
12598 論文を書く
12599 \end_layout
12600
12601 \begin_layout Standard
12602 通常と同じく,論文を書く上で最も易しい方法は,ひな型を使って書き始めることです.
12603 \family sans
12604 ファイル\SpecialChar menuseparator
12605 新規(ひな型使用)
12606 \family default
12607 をクリックして,ひな型
12608 \family typewriter
12609 ijmpc.lyx
12610 \family default
12611 もしくは
12612 \family typewriter
12613 ijmpd.lyx
12614 \family default
12615 を選択してください.すると,原稿で良く使用されるフィールドを含んだ,ほぼ空の文書ができますので,既存のフィールド(鍵括弧
12616 \family typewriter
12617 <>
12618 \family default
12619 を含む)を正しい情報で置き換えてください.以下の各点にご留意ください.
12620 \end_layout
12621
12622 \begin_layout Enumerate
12623 両パッケージでは,フォント寸法や文書のページ様式を変更することが禁じられているので,\SpecialChar LyX
12624 中でこれらを変更することはできません.
12625 \end_layout
12626
12627 \begin_layout Enumerate
12628 文書言語は変更してはいけません.論文をプレビューする前に,babelパッケージが使用されていないことを確認してください.これは,
12629 \family sans
12630 ツール\SpecialChar menuseparator
12631 設定
12632 \family default
12633 をクリックして,
12634 \family sans
12635 言語オプション
12636 \family default
12637 タブを選択し,言語設定で
12638 \family sans
12639 Babelを使う
12640 \family default
12641 チェックボックスを無効にしてから,
12642 \family sans
12643 適用
12644 \family default
12645 をクリックすれば,設定することができます(この変更を固定するなら
12646 \family sans
12647 保存
12648 \family default
12649 を押してください).
12650 \end_layout
12651
12652 \begin_layout Enumerate
12653 キーワードを定義するに際しては,「キーワード」様式を用いなくてはなりません.
12654 \end_layout
12655
12656 \begin_layout Enumerate
12657 ijmpcパッケージが提供する「分類コード」様式は,PACS番号のような分類コードを定義するのに使用することができます.この機能は,ijmpdパッケージではサポ
12658 ートされていませんので,ご注意ください.
12659 \end_layout
12660
12661 \begin_layout Enumerate
12662 「定義」「ステップ」「例」「注記」「記法」「定理」「証明」「系」「補題」「命題」「命題(Prop)」「問題」「主張」「予想」といった新しい環境を使用することがで
12663 きます.これらの使い方は,大凡自明でしょう.\SpecialChar LyX
12664 は,これらの環境をすべてサポートし,それぞれについて,適切なラベルと文字様式および連番スキームを使用します.
12665 \end_layout
12666
12667 \begin_layout Enumerate
12668 両パッケージは,単純な引用を使用しますので,natbibパッケージは使用してはなりません.\SpecialChar LyX
12669 中では,引用参照は通常通り表示されますが,出力では上付き文字として表示
12670 されます.引用に通常の本文を使用したい場合には,「See Ref.
12671 \begin_inset space \space{}
12672 \end_inset
12673
12674
12675 \family typewriter
12676
12677 \backslash
12678 refcite{
12679 \family default
12680
12681 \begin_inset Flex Ruby
12682 status collapsed
12683
12684 \begin_layout Plain Layout
12685
12686 \family typewriter
12687
12688 \family default
12689
12690 \begin_inset Argument post:1
12691 status collapsed
12692
12693 \begin_layout Plain Layout
12694 キー
12695 \end_layout
12696
12697 \end_inset
12698
12699
12700 \end_layout
12701
12702 \end_inset
12703
12704
12705 \family typewriter
12706 }
12707 \family default
12708 」のように
12709 \family typewriter
12710 refcite
12711 \family default
12712 コマンドを使用してください.
12713 \end_layout
12714
12715 \begin_layout Enumerate
12716 両パッケージには,「謝辞」環境がありません.謝辞を置くには,「節*」環境を使用してください.
12717 \end_layout
12718
12719 \begin_layout Enumerate
12720 付録は,論文中,謝辞の
12721 \emph on
12722
12723 \emph default
12724 かつ書誌情報の
12725 \emph on
12726
12727 \emph default
12728 であれば,入れることができます.\SpecialChar LyX
12729 上では,「付録領域」という特別な環境があり,これを使って付録の開始位置を指定することができます.この環境は空のままにしておかなく
12730 てはなりません.この環境は,\SpecialChar LaTeX
12731 コマンドを書き出すだけで,実際に出力は行いません.\SpecialChar LyX
12732 上では,青字で「Appendix」という単語が表示され,この箇所より後の節はすべて
12733 付録であることを明示します.「付録領域」は,最初の付録の前に
12734 \emph on
12735 なくてはならない
12736 \emph default
12737 ことに注意してください.さもなくば,出力中において,付録はすべて通常の節として連番が振られてしまいます.
12738 \end_layout
12739
12740 \begin_layout Enumerate
12741 ijmpcおよびijmpdパッケージは,表キャプションを実装するのに
12742 \family typewriter
12743 tbl
12744 \family default
12745 コマンドを使用します.そのため,\SpecialChar LyX
12746 が作成した表は正しく印字されますが,そのキャプションは無視されます.しかし,\SpecialChar TeX
12747 コードを少し使えば,この問題を回避して,キャプション
12748 を望み通り印字することができるようになります.そうするには,表フロートを通常通り作成して,キャプションを削除し,代わりに\SpecialChar TeX
12749 コードで
12750 \family typewriter
12751
12752 \backslash
12753 tbl{表キャプション}{
12754 \family default
12755 (ママ)と入れます.そこに表の内容を入れて,直後を\SpecialChar TeX
12756 コード
12757 \family typewriter
12758 }
12759 \family default
12760 で閉じてください.このからくりがどのように実装されているかを見るには,ひな型ファイルに入っている表の例を精査してみてください.別の方法としては,表キャプションが
12761 欲しい場合に,表フロート全体を
12762 \family typewriter
12763 .tex
12764 \family default
12765 ファイルに収め,このファイルを\SpecialChar LyX
12766 文書に取り込んでください(
12767 \family sans
12768 挿入\SpecialChar menuseparator
12769 ファイル\SpecialChar menuseparator
12770 子文書
12771 \family default
12772 ).表フロートの作り方についての詳細は,各パッケージに含まれている
12773 \family typewriter
12774 ws-ijmpc.tex
12775 \family default
12776 または
12777 \family typewriter
12778 ws-ijmpd.tex
12779 \family default
12780 ファイルをご覧ください.
12781 \end_layout
12782
12783 \begin_layout Subsection
12784 原稿を投稿するための準備
12785 \end_layout
12786
12787 \begin_layout Standard
12788 論文を投稿する前には,\SpecialChar LyX
12789 文書を\SpecialChar LaTeX
12790 ファイルに書き出し(
12791 \family sans
12792 ファイル\SpecialChar menuseparator
12793 書き出し\SpecialChar menuseparator
12794 \SpecialChar LaTeX
12795
12796 \family default
12797 )
12798 \begin_inset Foot
12799 status open
12800
12801 \begin_layout Plain Layout
12802 実は,\SpecialChar LaTeX
12803  (plain)とpdflatexとの間で選択ができます.論文を準備するのにpdflatexを使用しようとするのであれば,取り込んである画像がPDF形式に
12804 変換され,pdflatexで使用できるように,pdflatexオプションを指定しなくてはなりません.
12805 \end_layout
12806
12807 \end_inset
12808
12809 ,その
12810 \family typewriter
12811 .tex
12812 \family default
12813 ファイルに以下の変更を加える必要があります.
12814 \end_layout
12815
12816 \begin_layout Enumerate
12817
12818 \family typewriter
12819
12820 \backslash
12821 documentclass
12822 \family default
12823 コマンドより前にあるコメント行を削除する.
12824 \end_layout
12825
12826 \begin_layout Enumerate
12827 自身で明示的に\SpecialChar LaTeX
12828 プリアンブルに置いたコマンドを除き,
12829 \family typewriter
12830
12831 \backslash
12832 makeatletter
12833 \family default
12834 コマンドと
12835 \family typewriter
12836
12837 \backslash
12838 makeatother
12839 \family default
12840 コマンドの間にあるものをすべて削除する.
12841 \end_layout
12842
12843 \begin_layout Standard
12844 こうして修正を加えた
12845 \family typewriter
12846 .tex
12847 \family default
12848 ファイルを保存し,必要な回数\SpecialChar LaTeX
12849 で処理してください.それによって得られた
12850 \family typewriter
12851 .dvi
12852 \family default
12853 文書も確認された方がよろしいでしょう.
12854 \end_layout
12855
12856 \begin_layout Subsection
12857 \SpecialChar TeX
12858 コードの使用
12859 \end_layout
12860
12861 \begin_layout Standard
12862 \SpecialChar TeX
12863 コードを使用するのは,2つのコマンドに限られ,これらは文書の最初に置かれなくてはなりません.論文をひな型
12864 \family typewriter
12865 ijmpc.lyx
12866 \family default
12867 または
12868 \family typewriter
12869 ijmpd.lyx
12870 \family default
12871 を使用して書き始めた場合には,これら必要な\SpecialChar TeX
12872 コードは,すでに書き込まれています.通常,これらを削除する必要はありません.2つのうち1番めの\SpecialChar TeX
12873 コードのみが,奇数ページ
12874 および偶数ページの上部に印字する情報(それぞれ著者名と論文の短縮タイトル)を指定するために,修正する必要があります.この\SpecialChar TeX
12875 コードは,
12876 \family typewriter
12877
12878 \backslash
12879 markboth{著者名}{論文の短縮タイトル}
12880 \family default
12881 という形である必要があります.
12882 \end_layout
12883
12884 \begin_layout Section
12885 iopart
12886 \end_layout
12887
12888 \begin_layout Standard
12889
12890 \noun on
12891 Uwe Stöhr
12892 \noun default
12893
12894 \end_layout
12895
12896 \begin_layout Subsection
12897 概要
12898 \end_layout
12899
12900 \begin_layout Standard
12901 iopartパッケージは,Institute of Physics(イギリス物理学会)発行の学術誌へ電子的に投稿する原稿を作成するための文書クラスを提供していま
12902 す.iopartクラスを使用した論文作成方法の著者用説明書は,ウェブサイト
12903 \begin_inset Flex URL
12904 status collapsed
12905
12906 \begin_layout Plain Layout
12907
12908 ftp://ftp.iop.org/pub/journals/latex2e
12909 \end_layout
12910
12911 \end_inset
12912
12913 からiopartパッケージとともにダウンロード可能です.
12914 \end_layout
12915
12916 \begin_layout Subsection
12917 論文を書く
12918 \end_layout
12919
12920 \begin_layout Standard
12921 論文を書くもっとも簡単な方法は,\SpecialChar LyX
12922 の用例ファイルフォルダにある
12923 \emph on
12924 IOP-article.lyx
12925 \emph default
12926 を土台にすることです.このファイルを開き,新しい名前で保存して,書き始めてください.この用例ファイルは,特定の環境の使用法についても説明しています.もっとも重要
12927 な助言として,以下の点にご注意ください.
12928 \end_layout
12929
12930 \begin_layout Itemize
12931 文書がPDF・PS・DVIにコンパイルできるようにするためには,文書設定の
12932 \family sans
12933 数式オプション
12934 \family default
12935 で,二つの
12936 \family sans
12937 AMS mathパッケージを使う
12938 \family default
12939 関連オプションが有効になっていないことを確認してください!
12940 \end_layout
12941
12942 \begin_layout Itemize
12943 タイトル環境の選択如何によって,論文の種類が定義されます.種類毎に以下の環境をタイトルに使用してください.
12944 \begin_inset Separator latexpar
12945 \end_inset
12946
12947
12948 \end_layout
12949
12950 \begin_deeper
12951 \begin_layout Itemize
12952 論文用には
12953 \family sans
12954 タイトル
12955 \end_layout
12956
12957 \begin_layout Itemize
12958 Review用には
12959 \family sans
12960 Review
12961 \end_layout
12962
12963 \begin_layout Itemize
12964 Topical review用には
12965 \family sans
12966 Topical
12967 \end_layout
12968
12969 \begin_layout Itemize
12970 Comment用には
12971 \family sans
12972 Comment
12973 \end_layout
12974
12975 \begin_layout Itemize
12976 Note用には
12977 \family sans
12978 注釈
12979 \end_layout
12980
12981 \begin_layout Itemize
12982 論文用には
12983 \family sans
12984 Paper
12985 \family default
12986 (タイトルと同じ)
12987 \end_layout
12988
12989 \begin_layout Itemize
12990 Preliminary communication用には
12991 \family sans
12992 Prelim
12993 \end_layout
12994
12995 \begin_layout Itemize
12996 Rapid communication用には
12997 \family sans
12998 Rapid
12999 \end_layout
13000
13001 \begin_layout Itemize
13002 編集者へのLetterには
13003 \family sans
13004 書簡
13005 \end_layout
13006
13007 \end_deeper
13008 \begin_layout Itemize
13009
13010 \family sans
13011 書簡
13012 \family default
13013 以外のタイトル環境には,すべて短縮タイトルをつけることもできます.
13014 \end_layout
13015
13016 \begin_layout Itemize
13017 \SpecialChar LyX
13018 では直接にサポートされていませんが,一般的なタイトル環境として
13019 \family sans
13020 Article
13021 \family default
13022 があります.執筆する文書が,他のタイトル型にそぐわない場合には,\SpecialChar TeX
13023 コードでこれを指定することができます.
13024 \end_layout
13025
13026 \begin_layout Standard
13027 特別な表や数式組版に関するヒントなど,詳しい情報については,IOP著者用ガイドラインを参照してください.
13028 \end_layout
13029
13030 \begin_layout Section
13031 Kluwer
13032 \end_layout
13033
13034 \begin_layout Standard
13035
13036 \noun on
13037 Panayotis Papasotiriou
13038 \noun default
13039
13040 \end_layout
13041
13042 \begin_layout Subsection
13043 概要
13044 \end_layout
13045
13046 \begin_layout Standard
13047 Kluwerパッケージは,Kluwer Academic Publishers社が発行する学術誌への電子投稿を可能にするために,同社が作成したマクロ集です.同社
13048 の発行誌のうち,(少なくとも私の専門内で)もっともよく知られているものは,
13049 \emph on
13050 Astrophysics and Space Science
13051 \emph default
13052 (『宇宙物理学と宇宙科学』)と
13053 \emph on
13054 Solar Physics
13055 \emph default
13056 (『太陽系物理学』)ですが,他にも多くの学術誌があります(
13057 \begin_inset Flex URL
13058 status collapsed
13059
13060 \begin_layout Plain Layout
13061
13062 http://www.wkap.nl/jrnllist.htm/JRNLHOME
13063 \end_layout
13064
13065 \end_inset
13066
13067 に全覧があります).Kluwerパッケージは,
13068 \begin_inset Flex URL
13069 status collapsed
13070
13071 \begin_layout Plain Layout
13072
13073 http://www.wkap.nl/kaphtml.htm/STYLEFILES
13074 \end_layout
13075
13076 \end_inset
13077
13078 からダウンロードできます.完全なユーザーの手引きも同パッケージ内に収録されています(個別にダウンロードすることも可能です).
13079 \end_layout
13080
13081 \begin_layout Standard
13082 \SpecialChar LyX
13083 は,このパッケージの機能の多くをサポートしていますが,すべてではありません.しかし,\SpecialChar TeX
13084 コードを必要とするのは,パッケージ中のいくつかの「変わった」コマンドだけにな
13085 りました(
13086 \begin_inset CommandInset ref
13087 LatexCommand ref
13088 reference "subsec:kluwer_peculiarities"
13089
13090 \end_inset
13091
13092 参照).最近,私は\SpecialChar LyX
13093 を使って書いた論文を
13094 \emph on
13095 Astrophysics and Space Science
13096 \emph default
13097 に投稿しましたが,何らの問題も発生しませんでした.
13098 \end_layout
13099
13100 \begin_layout Subsection
13101 論文を書く
13102 \end_layout
13103
13104 \begin_layout Standard
13105 論文を書き始めるには,ひな型ファイルKluwerを使うのが最も簡単です.
13106 \family sans
13107 ファイル\SpecialChar menuseparator
13108 新規(ひな型使用)
13109 \family default
13110 をクリックし,ひな型
13111 \family typewriter
13112 kluwer.lyx
13113 \family default
13114 を選択してください.これは,原稿に通常必要となる各フィールドと,それらの使用法が短く書かれただけの,(ほとんど)何も書かれていない文書です.他のテンプレートと同
13115 様に,既存の文章を(括弧
13116 \family typewriter
13117 <>
13118 \family default
13119 を含む)正しい情報で上書きしてください.
13120 \end_layout
13121
13122 \begin_layout Subsection
13123 投稿の準備
13124 \end_layout
13125
13126 \begin_layout Standard
13127 AAS\SpecialChar TeX
13128 パッケージと同様,論文を投稿する前に,以下のような「後処理」を行う必要があります.
13129 \end_layout
13130
13131 \begin_layout Enumerate
13132
13133 \family sans
13134 ファイル\SpecialChar menuseparator
13135 書き出し\SpecialChar menuseparator
13136 LateX
13137 \family default
13138 をクリックして,論文を\SpecialChar LaTeX
13139 ファイルに書き出す.
13140 \end_layout
13141
13142 \begin_layout Enumerate
13143 生成された
13144 \family typewriter
13145 .tex
13146 \family default
13147 ファイルに,テキストエディタを使用して,以下のような変更を加える.
13148 \begin_inset Separator latexpar
13149 \end_inset
13150
13151
13152 \end_layout
13153
13154 \begin_deeper
13155 \begin_layout Enumerate
13156
13157 \family typewriter
13158
13159 \backslash
13160 documentclass
13161 \family default
13162 コマンドより前にあるコメント行を削除する.
13163 \end_layout
13164
13165 \begin_layout Enumerate
13166 意図的に\SpecialChar LaTeX
13167 プリアンブルに加えたコマンドを除き,
13168 \family typewriter
13169
13170 \backslash
13171 makeatletter
13172 \family default
13173 から 
13174 \family typewriter
13175
13176 \backslash
13177 makeatother
13178 \family default
13179 の間にあるものを,これらのコマンドも含め,すべて削除する.
13180 \end_layout
13181
13182 \begin_layout Standard
13183 変更した
13184 \family typewriter
13185 .tex
13186 \family default
13187 ファイルを保存する.
13188 \end_layout
13189
13190 \end_deeper
13191 \begin_layout Enumerate
13192 この
13193 \family typewriter
13194 .tex
13195 \family default
13196 ファイルを必要な回数(通常3回以内)だけ\SpecialChar LaTeX
13197 にかける.
13198 \end_layout
13199
13200 \begin_layout Enumerate
13201 生成された
13202 \family typewriter
13203 .dvi
13204 \family default
13205 ファイルを
13206 \family sans
13207 xdvi
13208 \family default
13209 などを使って開き,問題がないか確認する(間違いをしていない限り問題ないはずです).
13210 \end_layout
13211
13212 \begin_layout Subsection
13213 Kluwerパッケージの「風変わり」な特徴
13214 \begin_inset CommandInset label
13215 LatexCommand label
13216 name "subsec:kluwer_peculiarities"
13217
13218 \end_inset
13219
13220
13221 \end_layout
13222
13223 \begin_layout Standard
13224 Kluwerパッケージには,以下のような「風変わりな」特徴があります.
13225 \end_layout
13226
13227 \begin_layout Enumerate
13228 複数の論文を1つの\SpecialChar LaTeX
13229 ファイルへ入れることができます
13230 \begin_inset Foot
13231 status collapsed
13232
13233 \begin_layout Plain Layout
13234 わざわざこんなことをする必要はないでしょう.
13235 \end_layout
13236
13237 \end_inset
13238
13239 .各論文は,「article」環境で囲まなくてはなりません.残念ながら,1つの論文だけを書く場合でも,この環境を省略することはできません.つまり,各論文は
13240 \family typewriter
13241
13242 \backslash
13243 begin{article}
13244 \family default
13245 で始まり,
13246 \family typewriter
13247
13248 \backslash
13249 end{article}
13250 \family default
13251 で終わります.この環境を\SpecialChar LyX
13252 に実装することも可能でしたが,醜い上に初心者を混乱させる可能性があるので,実装することはしませんでした.したがって,これらの命令(
13253 \family typewriter
13254
13255 \backslash
13256 begin{article}
13257 \family default
13258
13259 \family typewriter
13260
13261 \backslash
13262 end{article}
13263 \family default
13264 )は,直接本文中に入力して,\SpecialChar LaTeX
13265 コード(「\SpecialChar TeX
13266 コード」のことです)としてマークする必要があります.
13267 \end_layout
13268
13269 \begin_layout Enumerate
13270 論文の冒頭に置く情報(タイトル・サブタイトル・著者名・所属・ヘッダ用タイトル・ヘッダ用著者名・概要・キーワード)は,「opening」とよばれる環境に入れなくて
13271 はなりません.これは\SpecialChar LyX
13272 では実装されていませんので,タイトルやサブタイトルなどは,2つの\SpecialChar TeX
13273 コード行(
13274 \family typewriter
13275
13276 \backslash
13277 begin{opening}
13278 \family default
13279 および
13280 \family typewriter
13281
13282 \backslash
13283 end{opening}
13284 \family default
13285 )の間に入れる必要があります.
13286 \end_layout
13287
13288 \begin_layout Enumerate
13289 ユーザーの手引きによれば,書誌情報の各項目のラベルは,
13290 \family typewriter
13291
13292 \begin_inset Newline newline
13293 \end_inset
13294
13295
13296 \backslash
13297 protect
13298 \backslash
13299 citeauthoryear{
13300 \family default
13301 \emph on
13302 著者名
13303 \family typewriter
13304 \emph default
13305 }{
13306 \family default
13307 \emph on
13308
13309 \family typewriter
13310 \emph default
13311 }
13312 \family default
13313  と書く必要があります.
13314 \end_layout
13315
13316 \begin_layout Standard
13317 ひな型
13318 \family typewriter
13319 kluwer.lyx
13320 \family default
13321 は,これらの風変わりな点がすべて考慮されています.このひな型を使用して,論文を新たに書きはじめる場合には,特別なことを行う必要はありません.以下の点にのみ留意し
13322 てください.
13323 \end_layout
13324
13325 \begin_layout Enumerate
13326 ひな型にある\SpecialChar TeX
13327 コードを削除しないでください.
13328 \end_layout
13329
13330 \begin_layout Enumerate
13331 新しい書誌情報項目を入力する場合には,ひな型に例示されている書誌情報項目をコピーして,必要に応じて修正してください.
13332 \end_layout
13333
13334 \begin_layout Section
13335 Koma-Script
13336 \end_layout
13337
13338 \begin_layout Standard
13339
13340 \noun on
13341 Bernd Rellermeyer
13342 \noun default
13343
13344 \end_layout
13345
13346 \begin_layout Subsection
13347 概要
13348 \end_layout
13349
13350 \begin_layout Standard
13351 \SpecialChar LyX
13352 の文書クラス
13353 \emph on
13354 article (koma-script)
13355 \emph default
13356
13357 \emph on
13358 report (koma-script)
13359 \emph default
13360
13361 \emph on
13362 book
13363 \emph default
13364  
13365 \emph on
13366 (koma-script)
13367 \emph default
13368
13369 \emph on
13370 letter
13371 \emph default
13372  
13373 \emph on
13374 (koma-script)
13375 \emph default
13376 は,それぞれKoma-Scriptファミリーの\SpecialChar LaTeX
13377 文書クラス
13378 \family typewriter
13379 scrartcl.cls
13380 \family default
13381
13382 \family typewriter
13383 scrreprt.cls
13384 \family default
13385
13386 \family typewriter
13387 scrbook.cls
13388 \family default
13389
13390 \family typewriter
13391 scrlettr.cls
13392 \family default
13393 に対応しています.これらは,標準文書クラス
13394 \family typewriter
13395 article.cls
13396 \family default
13397
13398 \family typewriter
13399 report.cls
13400 \family default
13401
13402 \family typewriter
13403 book.cls
13404 \family default
13405
13406 \family typewriter
13407 letter.cls
13408 \family default
13409 の代替物であり,これらよりも多くの点でヨーロッパに於ける活版印刷の慣例に合致します.
13410 \end_layout
13411
13412 \begin_layout Itemize
13413 標準文字寸法は,
13414 \emph on
13415 article (koma-script)
13416 \emph default
13417
13418 \emph on
13419 report (koma-script)
13420 \emph default
13421
13422 \emph on
13423 book (koma-script)
13424 \emph default
13425 で11pt,
13426 \emph on
13427 letter (koma-script)
13428 \emph default
13429 で12ptです.
13430 \end_layout
13431
13432 \begin_layout Itemize
13433 見出しや箇条書き(記述)環境のラベル,および
13434 \emph on
13435 letter (koma-script)
13436 \emph default
13437 文書クラスの要素の多くでは,ボールド体サンセリフフォントが使われます
13438 \begin_inset Foot
13439 status collapsed
13440
13441 \begin_layout Plain Layout
13442 ボールド体サンセリフフォントには,古いcmフォントと新しいecフォントの間に大きな違いがあり,特に見出しの表示の違いが際立ちます.比較すると,ecボールドサンセ
13443 リフフォントの方が,少し細く見えます.ecフォントを使用する際に「通常の」外観が欲しい場合には,
13444 \shape smallcaps
13445 Walter Schmidt
13446 \shape default
13447 作の\SpecialChar LaTeX
13448 パッケージ
13449 \family typewriter
13450 cmsd.sty
13451 \family default
13452 が役立ちます.
13453 \end_layout
13454
13455 \end_inset
13456
13457 .章見出しの連番は,節見出しの連番と同様に行われ,別行立てで「 Chapter\SpecialChar ldots
13458 」という行がつきません.さらに,多くのオプションによって,見出しの外観を修正するこ
13459 とができます(\SpecialChar LyX
13460 では,
13461 \family sans
13462 文書\SpecialChar menuseparator
13463 設定
13464 \family default
13465 ダイアログの
13466 \family sans
13467 クラスオプション
13468 \family default
13469 フィールドで指定します).これらのオプションの独語での詳細な説明が,Koma-Scriptの取扱説明書
13470 \emph on
13471 scrguide
13472 \emph default
13473 にあります.
13474 \end_layout
13475
13476 \begin_layout Itemize
13477 Koma-Script文書クラスで,印字部分をデザインする主な方法は,
13478 \family sans
13479 BCOR
13480 \family default
13481 オプションまたは
13482 \family sans
13483 DIV
13484 \family default
13485 オプションを使う方法です(\SpecialChar LyX
13486 では,
13487 \family sans
13488 文書\SpecialChar menuseparator
13489 設定
13490 \family default
13491 ダイアログの
13492 \family sans
13493 クラスオプション
13494 \family default
13495 フィールドで指定します).これらのオプションは
13496 \family sans
13497 文書\SpecialChar menuseparator
13498 設定
13499 \family default
13500 ダイアログのオプションと同様に,ページ余白を明示的に変更することができます.これらとその他印字領域オプションのドイツ語での詳細な説明が,Koma-Script取
13501 扱説明書
13502 \emph on
13503 scrguide
13504 \emph default
13505 にあります.
13506 \end_layout
13507
13508 \begin_layout Itemize
13509 Koma-Scriptファミリーの\SpecialChar LaTeX
13510 文書クラスには,多くの追加コマンドが定義されています.それらのうち,\SpecialChar LyX
13511 で意味を持つものは,対応する段落環境として実装されています
13512
13513 \end_layout
13514
13515 \begin_layout Standard
13516 Koma-Scriptファミリーの\SpecialChar LaTeX
13517 文書クラスに関する独語の詳細な説明が,Koma-Script取扱説明書
13518 \emph on
13519 scrguide
13520 \emph default
13521 にあります
13522 \begin_inset Foot
13523 status collapsed
13524
13525 \begin_layout Plain Layout
13526 英語翻訳版の
13527 \emph on
13528 screnggu
13529 \emph default
13530 もありますが,完訳ではありません.
13531 \end_layout
13532
13533 \end_inset
13534
13535 .以下の各節では,\SpecialChar LyX
13536 に関係する側面のみ説明致します.
13537 \end_layout
13538
13539 \begin_layout Subsection
13540 article (koma-script)・report (koma-script)・book (koma-script)
13541 \end_layout
13542
13543 \begin_layout Standard
13544 文書クラス
13545 \emph on
13546 article (koma-script)
13547 \emph default
13548
13549 \emph on
13550 report (koma-script)
13551 \emph default
13552
13553 \emph on
13554 book
13555 \emph default
13556  
13557 \emph on
13558 (koma-script)
13559 \emph default
13560 は,それぞれレイアウトファイル
13561 \family typewriter
13562 scrartcl.layout
13563 \family default
13564
13565 \family typewriter
13566 scrreprt.layou
13567 \family default
13568 t・
13569 \family typewriter
13570 crbook.layout
13571 \family default
13572 によって実装されています.これらは,対応する標準文書クラス
13573 \emph on
13574 article
13575 \emph default
13576
13577 \emph on
13578 report
13579 \emph default
13580
13581 \emph on
13582 book
13583 \emph default
13584 の段落環境を,若干の修正を加えた上ですべて含んでいますが,\SpecialChar LyX
13585 固有の
13586 \family sans
13587 箇条書き(一覧)
13588 \family default
13589 環境は例外であり,同じ機能を持つ新しい
13590 \family sans
13591 ラベリング
13592 \family default
13593 環境で置き換えられています.この
13594 \family sans
13595 ラベリング
13596 \family default
13597 環境以外にも,新しい段落環境が多く追加されています.これらは,
13598 \emph on
13599 letter (koma-script)
13600 \emph default
13601 には含まれていないのでご注意ください.
13602 \end_layout
13603
13604 \begin_layout Itemize
13605
13606 \family sans
13607 部(addpart)
13608 \family default
13609
13610 \family sans
13611 章(addchap)
13612 \family default
13613
13614 \family sans
13615 節(addsec)
13616 \family default
13617 :これらは,それぞれ
13618 \family sans
13619 部*
13620 \family default
13621
13622 \family sans
13623 章*
13624 \family default
13625
13626 \family sans
13627 節*
13628 \family default
13629 と同等の働きをしますが,加えて目次に項目が表示されるようになります.
13630 \family sans
13631 部(addpart)
13632 \family default
13633
13634 \family sans
13635 章(addchap)
13636 \family default
13637 は,
13638 \emph on
13639 article (koma-script)
13640 \emph default
13641 には収録されていません.
13642 \end_layout
13643
13644 \begin_layout Itemize
13645
13646 \family sans
13647 章(addchap*)
13648 \family default
13649
13650 \family sans
13651 節(addsec*)
13652 \family default
13653 :これらは,
13654 \family sans
13655 章(addchap
13656 \family default
13657 )と
13658 \family sans
13659 節(addsec)
13660 \family default
13661 とまったく同等に動作しますが,加えてランニングへッダを取り除きます.
13662 \family sans
13663 章(addchap*)
13664 \family default
13665 は, 
13666 \emph on
13667 article (koma-script)
13668 \emph default
13669 には収録されていません
13670 \begin_inset Foot
13671 status collapsed
13672
13673 \begin_layout Plain Layout
13674
13675 \emph on
13676 book (koma-script)
13677 \emph default
13678
13679 \emph on
13680 report (koma-script)
13681 \emph default
13682 には,
13683 \family typewriter
13684
13685 \backslash
13686 addpart*
13687 \family default
13688 コマンドもありますが,これは
13689 \family sans
13690 Part*
13691 \family default
13692 と同一なので,\SpecialChar LyX
13693 では実装されていません.
13694 \end_layout
13695
13696 \end_inset
13697
13698
13699 \end_layout
13700
13701 \begin_layout Itemize
13702
13703 \family sans
13704 小見出し(minisec)
13705 \family default
13706 :これは文書構造に現れない形で,続く段落の直上に標準文字寸法の見出しを付けます.
13707 \end_layout
13708
13709 \begin_layout Itemize
13710
13711 \family sans
13712 上部キャプション
13713 \family default
13714
13715 \family sans
13716 下部キャプション
13717 \family default
13718 は,ある要素の上部ないし下部にキャプションを配置する際,位置に応じて正しく余白取りを行う特別なキャプションです(組版規則に厳密に従うならば,表キャプションは,つ
13719 ねに表の上に置くべきでしょう).また,クラスオプション
13720 \family typewriter
13721 tablecaptionsabove
13722 \family default
13723 を用いれば,キャプションを指定すると,表には
13724 \family sans
13725 上部キャプション
13726 \family default
13727 が,図には
13728 \family sans
13729 下部キャプション
13730 \family default
13731 が適用されるようになります.これを使用するためには,Koma-Script第2.8q版以上が必要です.
13732 \end_layout
13733
13734 \begin_layout Itemize
13735
13736 \family sans
13737 格言(dictum)
13738 \family default
13739 :これは,章頭などに警句を置くのに用いることができます.オプション引数(
13740 \family sans
13741 挿入\SpecialChar menuseparator
13742 短縮タイトル
13743 \family default
13744 )を用いれば,格言の作者を入れることができます.格言と作者の間は,線で区切られます.これを使用するためには,Koma-Script第2.8q版以上が必要です.
13745 \family sans
13746 格言(dictum)
13747 \family default
13748 は,
13749 \emph on
13750 article (koma-script)
13751 \emph default
13752 には収録されていません.
13753 \end_layout
13754
13755 \begin_layout Standard
13756 以下の各環境は,標準の
13757 \family sans
13758 タイトル
13759 \family default
13760
13761 \family sans
13762 著者
13763 \family default
13764
13765 \family sans
13766 日付
13767 \family default
13768 とともに文書のタイトル領域を形成します.これらは,最初の「通常の」段落よりも前に置かれる必要があります
13769 \begin_inset Foot
13770 status collapsed
13771
13772 \begin_layout Plain Layout
13773 つまり,対応する\SpecialChar LaTeX
13774 コマンドが
13775 \family typewriter
13776
13777 \backslash
13778 maketitle
13779 \family default
13780 コマンドよりも前に現れなくてはなりません.
13781 \end_layout
13782
13783 \end_inset
13784
13785 .これらの環境が2度以上使用された場合には,後に使用されたものが前のものを上書きします.つまり最後に使用したもののみが有効になります.しかしながら,
13786 \family sans
13787 タイトル
13788 \family default
13789
13790 \family sans
13791 著者
13792 \family default
13793
13794 \family sans
13795 日付
13796 \family default
13797 のような異なる環境の順序を変更しても,生成された文書には何の効果も生じません.
13798 \end_layout
13799
13800 \begin_layout Itemize
13801
13802 \family sans
13803 主題
13804 \family default
13805 :通常のタイトル部(
13806 \family sans
13807 タイトル
13808 \family default
13809
13810 \family sans
13811 著者
13812 \family default
13813
13814 \family sans
13815 日付
13816 \family default
13817 )の上に,文書の主題用の中央揃えの段落を生成します.
13818 \end_layout
13819
13820 \begin_layout Itemize
13821
13822 \family sans
13823 出版社
13824 \family default
13825 :通常のタイトル部(
13826 \family sans
13827 タイトル
13828 \family default
13829
13830 \family sans
13831 著者
13832 \family default
13833
13834 \family sans
13835 日付
13836 \family default
13837 )の下に,出版社名用の中央揃えの段落を生成します.
13838 \end_layout
13839
13840 \begin_layout Itemize
13841
13842 \family sans
13843 献呈
13844 \family default
13845
13846 \emph on
13847 report (koma-script)
13848 \emph default
13849
13850 \emph on
13851 book (koma-script)
13852 \emph default
13853 では,タイトル頁の次に,献辞用の中央揃えの段落を独立した頁として生成します.
13854 \emph on
13855 article (koma-script)
13856 \emph default
13857 の場合は,通常のタイトル部(
13858 \family sans
13859 タイトル
13860 \family default
13861
13862 \family sans
13863 著者
13864 \family default
13865
13866 \family sans
13867 日付
13868 \family default
13869 )の下に献辞用の中央揃えの段落を生成します.
13870 \end_layout
13871
13872 \begin_layout Itemize
13873
13874 \family sans
13875 タイトル頭書き
13876 \family default
13877 :通常のタイトル部(
13878 \family sans
13879 タイトル
13880 \family default
13881
13882 \family sans
13883 著者
13884 \family default
13885
13886 \family sans
13887 日付
13888 \family default
13889 )の上に,文書頭書き用の左揃えの段落を生成します.
13890 \end_layout
13891
13892 \begin_layout Itemize
13893
13894 \family sans
13895 扉裏上部
13896 \family default
13897
13898 \emph on
13899 report (koma-script)
13900 \emph default
13901 や 
13902 \emph on
13903 book (koma-script)
13904 \emph default
13905 の両面印刷において,扉裏上部に左揃え段落を生成します.片面印刷や,
13906 \emph on
13907 article (koma-script)
13908 \emph default
13909 では何の効果も生じません.
13910 \end_layout
13911
13912 \begin_layout Itemize
13913
13914 \family sans
13915 扉裏下部
13916 \family default
13917
13918 \emph on
13919 report (koma-script)
13920 \emph default
13921 や 
13922 \emph on
13923 book (koma-script)
13924 \emph default
13925 の両面印刷において,扉裏下部に左揃え段落を生成します.片面印刷や,
13926 \emph on
13927 article (koma-script)
13928 \emph default
13929 では何の効果も生じません.
13930 \end_layout
13931
13932 \begin_layout Itemize
13933
13934 \family sans
13935 追加タイトル
13936 \family default
13937 :実際の文書の前に,整形を行わない段落から成る,特殊な「汚い」ページを生成します.
13938 \end_layout
13939
13940 \begin_layout Standard
13941 文書クラス
13942 \emph on
13943 article (koma-script)
13944 \emph default
13945
13946 \emph on
13947 report (koma-script)
13948 \emph default
13949
13950 \emph on
13951 book (koma-script)
13952 \emph default
13953 の 各レイアウトファイルは,
13954 \family typewriter
13955 scrmacros.inc
13956 \family default
13957 ファイルを読み込みます.このファイルは,ユーザ環境を定義する場所として想定されています.s
13958 \family typewriter
13959 crmacros.inc
13960 \family default
13961 を,個人用レイアウトディレクトリにコピーして編集してください!
13962 \end_layout
13963
13964 \begin_layout Subsection
13965 letter (koma-script)
13966 \end_layout
13967
13968 \begin_layout Standard
13969 \noindent
13970 文書クラス
13971 \emph on
13972 letter (koma-script)
13973 \emph default
13974 は,レイアウトファイル 
13975 \family typewriter
13976 scrlettr.layout
13977 \family default
13978 で実装されています.このレイアウトファイルには,対応する標準文書クラス
13979 \emph on
13980 letter
13981 \emph default
13982 の全段落環境が,部分的に変更を加えた形で収録されていますが,\SpecialChar LyX
13983 固有環境の
13984 \family sans
13985 \SpecialChar LyX
13986 コード
13987 \family default
13988
13989 \family sans
13990 コメント
13991 \family default
13992
13993 \family sans
13994 箇条書き(一覧
13995 \family default
13996 )は,新しく
13997 \family sans
13998 ラベリング
13999 \family default
14000 環境に置き換えられています.それ以外にも,標準文書クラスとは異なり,標準環境の
14001 \family sans
14002 \SpecialChar LaTeX
14003
14004 \family default
14005
14006 \family sans
14007 引用(字下げあり)
14008 \family default
14009
14010 \family sans
14011 引用(字下げなし)
14012 \family default
14013
14014 \family sans
14015 詩句
14016 \family default
14017 が収録されています.さらに,新しいletter固有環境がたくさん追加されています.
14018 \end_layout
14019
14020 \begin_layout Standard
14021 この文書クラスで作成した書簡の外観は,様々な\SpecialChar LaTeX
14022 コマンドを\SpecialChar LaTeX
14023 プリアンブルに置くことで制御することができます
14024 \begin_inset Foot
14025 status collapsed
14026
14027 \begin_layout Plain Layout
14028 例えば,名前と住所の入った書簡ヘッダの標準的外観は,きわめて頑固です.「普通の」へッダは,プリアンブル中に以下のようなコマンドを入れることで生成することができま
14029 す.
14030 \end_layout
14031
14032 \begin_layout LyX-Code
14033
14034 \backslash
14035 firsthead{
14036 \backslash
14037 parbox[b]{
14038 \backslash
14039 textwidth}
14040 \end_layout
14041
14042 \begin_layout LyX-Code
14043   {
14044 \backslash
14045 ignorespaces 
14046 \backslash
14047 fromname
14048 \backslash
14049
14050 \backslash
14051  
14052 \backslash
14053 ignorespaces 
14054 \backslash
14055 fromaddress}} 
14056 \end_layout
14057
14058 \begin_layout LyX-Code
14059
14060 \backslash
14061 nexthead{
14062 \backslash
14063 parbox[b]{
14064 \backslash
14065 textwidth}
14066 \end_layout
14067
14068 \begin_layout LyX-Code
14069   {
14070 \backslash
14071 ignorespaces 
14072 \backslash
14073 fromname 
14074 \backslash
14075 hfill 
14076 \backslash
14077 ignorespaces 
14078 \backslash
14079 pagename
14080 \backslash
14081
14082 \end_layout
14083
14084 \begin_layout LyX-Code
14085
14086 \backslash
14087 thepage}}
14088 \end_layout
14089
14090 \end_inset
14091
14092 .これらの\SpecialChar LaTeX
14093 コマンドのドイツ語での詳細な説明は,Koma-Scriptの取扱説明書
14094 \emph on
14095 scrguide
14096 \emph default
14097 にあります.この方法で,書簡の著者は,個人用書簡レイアウトを作ることができます.
14098 \end_layout
14099
14100 \begin_layout Standard
14101
14102 \family sans
14103 書簡
14104 \family default
14105 環境および
14106 \family sans
14107 頭語
14108 \family default
14109 環境は,書簡の冒頭部を定義するもので,すべての書簡で使用しなくてはなりません.\SpecialChar LyX
14110 文書クラスでは,これらの環境を強調するために,左余白にそれぞれ
14111 \shape italic
14112 L
14113 \shape default
14114
14115 \shape italic
14116 O
14117 \shape default
14118 という文字が表示されます.同一ファイル中には,複数の書簡を書くことができます.
14119 \family sans
14120 頭語
14121 \family default
14122 環境は,同じ受取人への書簡を新しく書き出すものであり,
14123 \family sans
14124 書簡
14125 \family default
14126 環境は,新しい受取人を生成するものです.
14127 \family sans
14128 結語
14129 \family default
14130
14131 \family sans
14132 PS
14133 \family default
14134
14135 \family sans
14136 CC
14137 \family default
14138
14139 \family sans
14140 Encl
14141 \family default
14142 は,通常の段落環境なので,同一の書簡中でも何度も使用することができます.
14143 \end_layout
14144
14145 \begin_layout Itemize
14146
14147 \family sans
14148 書簡
14149 \family default
14150 :受取人のための段落をつくり,暗黙に書簡の開始を定義します.
14151 \end_layout
14152
14153 \begin_layout Itemize
14154
14155 \family sans
14156 頭語
14157 \family default
14158 :敬称のための段落をつくり,暗黙に新しい書簡を開始します.
14159 \end_layout
14160
14161 \begin_layout Itemize
14162
14163 \family sans
14164 結語
14165 \family default
14166 :結語のための段落をつくります.
14167 \end_layout
14168
14169 \begin_layout Itemize
14170
14171 \family sans
14172 PS
14173 \family default
14174 :追伸のための段落をつくります.
14175 \end_layout
14176
14177 \begin_layout Itemize
14178
14179 \family sans
14180 CC
14181 \family default
14182 :同報一覧のための段落をつくります.
14183 \end_layout
14184
14185 \begin_layout Itemize
14186
14187 \family sans
14188 Encl
14189 \family default
14190 :同封物のための段落をつくります.
14191 \end_layout
14192
14193 \begin_layout Standard
14194
14195 \family sans
14196 名前
14197 \family default
14198
14199 \family sans
14200 署名
14201 \family default
14202
14203 \family sans
14204 住所
14205 \family default
14206
14207 \family sans
14208 電話
14209 \family default
14210
14211 \family sans
14212 場所(Place
14213 \family default
14214 )・
14215 \family sans
14216 返送先住所
14217 \family default
14218
14219 \family sans
14220 配送手段(Specialmail)
14221 \family default
14222
14223 \family sans
14224 場所
14225 \family default
14226
14227 \family sans
14228 タイトル
14229 \family default
14230
14231 \family sans
14232 主題
14233 \family default
14234 は,情報入力を促すラベルの付いた入力環境で,文書クラスが適切な処理を行います
14235 \begin_inset Foot
14236 status collapsed
14237
14238 \begin_layout Plain Layout
14239 上述の
14240 \family sans
14241 書簡
14242 \family default
14243
14244 \family sans
14245 頭語
14246 \family default
14247 が,これらのような入力環境でないのは,矛盾しているように感じられるかもしれません.しかしながら,これら2つの環境は特別の意味を持っているために,これらは左余白に
14248 一文字をマークした通常の段落環境として実装しました.さらに,
14249 \family sans
14250 頭語
14251 \family default
14252 環境と
14253 \family sans
14254 結語
14255 \family default
14256 環境が著しく異なって見えると対称性が損なわれることになるのも理由の一つです.
14257 \end_layout
14258
14259 \end_inset
14260
14261 .これらの環境は,対応する
14262 \family sans
14263 頭語
14264 \family default
14265 環境の前に置く必要があります.
14266 \end_layout
14267
14268 \begin_layout Standard
14269 生成された書簡の実際の外観は,特定の環境の使い方だけではなく,他の要素にも依存するため,これらの環境をWYSIWYGとして実装することには,あまり意味がありませ
14270 ん.たとえば,
14271 \family sans
14272 署名
14273 \family default
14274 環境で入力した署名は,標準的な挙動では,同じ書簡に
14275 \family sans
14276 結語
14277 \family default
14278 環境も使用されているときのみ,書簡の出力に現れます.
14279 \family sans
14280 電話
14281 \family default
14282 環境に入力された値は,標準的な挙動では,書簡の出力には全く表示されません.書簡のヘッダを自由にデザインできることは,前出の脚注で示してあります.
14283 \end_layout
14284
14285 \begin_layout Standard
14286 入力環境は,空の段落として使うことができます.これは,たとえば
14287 \family sans
14288 署名
14289 \family default
14290 環境の場合に有効です.
14291 \family sans
14292 署名
14293 \family default
14294 環境を全く使用しない場合は,標準的な挙動では,
14295 \family sans
14296 名前
14297 \family default
14298 環境の値が署名として使用されますが,空の
14299 \family sans
14300 署名
14301 \family default
14302 環境を作成しておくと,署名の値は無定義となりません.
14303 \end_layout
14304
14305 \begin_layout Standard
14306 入力環境を使用すると,個人データ(名前や住所など)が既に入力された入力環境と,後から入力するデータの入力環境を備えた,書簡のひな型を作成することができます.
14307 \end_layout
14308
14309 \begin_layout Itemize
14310
14311 \family sans
14312 名前
14313 \family default
14314 :送り主の名前.標準的な挙動では,書簡のヘッダ部にスモールキャップ体の中央揃えの段落として表示されます.
14315 \end_layout
14316
14317 \begin_layout Itemize
14318
14319 \family sans
14320 署名
14321 \family default
14322 :送り主の署名.標準的な挙動では,
14323 \family sans
14324 結語
14325 \family default
14326 環境の下に表示されます.
14327 \family sans
14328 署名
14329 \family default
14330 環境を使用しないと,代わりに
14331 \family sans
14332 名前
14333 \family default
14334 環境の値が表示されます.
14335 \end_layout
14336
14337 \begin_layout Itemize
14338
14339 \family sans
14340 住所
14341 \family default
14342 :送り主の住所.標準的な挙動では,書簡ヘッダの送り主の名前の下に中央揃えの段落として表示されます.
14343 \end_layout
14344
14345 \begin_layout Itemize
14346
14347 \family sans
14348 電話
14349 \family default
14350 :送り主の電話番号.標準的な挙動では,\SpecialChar LaTeX
14351 変数
14352 \family typewriter
14353
14354 \backslash
14355 telephonenum
14356 \family default
14357 を設定するだけです.
14358 \end_layout
14359
14360 \begin_layout Itemize
14361
14362 \family sans
14363 場所(Place)
14364 \family default
14365 :書簡を書いた場所.
14366 \end_layout
14367
14368 \begin_layout Itemize
14369
14370 \family sans
14371 日付
14372 \family default
14373 :書簡を書いた日付.
14374 \family sans
14375 場所(Place)
14376 \family default
14377
14378 \family sans
14379 日付
14380 \family default
14381 は,標準的な挙動では,受取人フィールドの下に,単一の右揃え行として場所と日付を生成します.空の
14382 \family sans
14383 日付
14384 \family default
14385 環境を作成しておくと,
14386 \family sans
14387 場所(Place)
14388 \family default
14389 の値如何に関わらず,場所も日付も表示されません.
14390 \family sans
14391 日付
14392 \family default
14393 環境を使用しない場合には,書簡を出力した日付が使用されます.
14394 \end_layout
14395
14396 \begin_layout Itemize
14397
14398 \family sans
14399 返送先住所
14400 \family default
14401 :送り主の返送先住所.標準的な挙動では,受取人の上に小文字のサンセリフ体フォントで表示されます.
14402 \end_layout
14403
14404 \begin_layout Itemize
14405
14406 \family sans
14407 特別便
14408 \family default
14409 :特別便の情報.標準的な挙動では,受取人フィールドの上かつ返送先住所の下に,下線付きで表示されます.
14410 \end_layout
14411
14412 \begin_layout Itemize
14413
14414 \family sans
14415 場所
14416 \family default
14417 :追加情報.標準的な挙動では,受取人フィールドの下の右側に表示されます.
14418 \end_layout
14419
14420 \begin_layout Itemize
14421
14422 \family sans
14423 タイトル
14424 \family default
14425 :書簡の題名.標準的な挙動では,主題の上に大きなボールド体サンセリフフォントで表示されます.
14426 \end_layout
14427
14428 \begin_layout Itemize
14429
14430 \family sans
14431 主題
14432 \family default
14433 :書簡の主題.標準的な挙動では,
14434 \family sans
14435 頭語
14436 \family default
14437 環境の上にボールド体で表示されます.
14438 \end_layout
14439
14440 \begin_layout Standard
14441
14442 \family sans
14443 Yourref・Yourmail・Myref・顧客・インボイス
14444 \family default
14445 といった環境は,
14446 \family sans
14447 タイトル
14448 \family default
14449 行の上に「Your ref.」・「Your letter of」・「Our ref.」・「Customer no.」・「Invoice no.」・「Date」といったフ
14450 ィールド行を持つ,ビジネス書簡を作成します.日付フィールドには,
14451 \family sans
14452 日付
14453 \family default
14454 環境の値が使用されます.しかしながら,これらの「ビジネス書簡環境」の一つを使用した場合には,
14455 \family sans
14456 場所(Place)
14457 \family default
14458 の値は書簡には表示されなくなり,\SpecialChar LaTeX
14459 変数
14460 \family typewriter
14461
14462 \backslash
14463 fromplace
14464 \family default
14465 が設定させるだけになります.通常時に,受取人フィールドの下に右揃えで出力される場所と日付の出力は,抑制されます.これらのビジネス環境は,ラベル付きの入力環境とし
14466 て実装されており,対応する
14467 \family sans
14468 頭語
14469 \family default
14470 環境よりも前に置く必要があります.
14471 \end_layout
14472
14473 \begin_layout Itemize
14474
14475 \family sans
14476 Yourref
14477 \family default
14478 : Your ref.
14479 \end_layout
14480
14481 \begin_layout Itemize
14482
14483 \family sans
14484 Yourmail
14485 \family default
14486 : Your letter of.
14487 \end_layout
14488
14489 \begin_layout Itemize
14490
14491 \family sans
14492 Myref
14493 \family default
14494 : Our ref.
14495 \end_layout
14496
14497 \begin_layout Itemize
14498
14499 \family sans
14500 Customer
14501 \family default
14502 : Customer no.
14503 \end_layout
14504
14505 \begin_layout Itemize
14506
14507 \family sans
14508 Invoice
14509 \family default
14510 : Invoice no.
14511 \end_layout
14512
14513 \begin_layout Subsection
14514 新しいletterクラス:letter (koma-script v.2)
14515 \end_layout
14516
14517 \begin_layout Standard
14518 by 
14519 \noun on
14520 Jürgen Spitzmüller
14521 \begin_inset VSpace medskip
14522 \end_inset
14523
14524
14525 \end_layout
14526
14527 \begin_layout Standard
14528 \noindent
14529 Koma-Script第2.8版では,新しいletterクラス
14530 \family typewriter
14531 scrlttr2
14532 \family default
14533 が導入されたため,
14534 \family typewriter
14535 scrlettr
14536 \family default
14537 は廃止されてサポート対象外となりました.これは—\SpecialChar LaTeX
14538 側で—全く新しいインターフェイスを持っており,旧クラスとは互換性がありません.したがって,\SpecialChar LyX
14539 は両者をサポートしてい
14540 ますが,新しい方のクラスを使用することを推奨します.
14541 \end_layout
14542
14543 \begin_layout Standard
14544 このクラスは,
14545 \emph on
14546 letter (koma-script)
14547 \emph default
14548 と同一の機能に加えて,新しい機能をいくつかサポートしています.基本となる項目は,
14549 \family sans
14550 住所
14551 \family default
14552 (受取人の住所,旧レイアウトの
14553 \family sans
14554 書簡
14555 \family default
14556 と同じ)・
14557 \family sans
14558 頭語
14559 \family default
14560
14561 \family sans
14562 結語
14563 \family default
14564 です.
14565 \family sans
14566 次の住所
14567 \family default
14568 は別の書簡を新しく開始します(つまり一文書あたり複数の書簡を書くことができます).新しく付け加えられた項目は,送り主の
14569 \family sans
14570 電子メール
14571 \family default
14572
14573 \family sans
14574 URL
14575 \family default
14576
14577 \family sans
14578 ファックス
14579 \family default
14580
14581 \family sans
14582 銀行
14583 \family default
14584 ,およびヘッダに(
14585 \family sans
14586 挿入\SpecialChar menuseparator
14587
14588 \family default
14589 で)
14590 \family sans
14591 ロゴ
14592 \family default
14593 を入れることができるようになった点です.
14594 \end_layout
14595
14596 \begin_layout Standard
14597 しかしながら,もっとも大きな改善は,書簡のレイアウトを,ほとんどどんなニーズにも合わせて設定できるようになった点でしょう.これはプリアンブルか,クラスオプション
14598 として読み込まれる特別なスタイルファイル(「レタークラスオプション」,拡張子
14599 \family typewriter
14600 *.lco
14601 \family default
14602 )によって設定することができます
14603 \begin_inset Foot
14604 status collapsed
14605
14606 \begin_layout Plain Layout
14607 KOMAパッケージには,既定の
14608 \family typewriter
14609 *.lco
14610 \family default
14611 ファイルがいくつか収録されています.たとえば,ドイツの組版規則に則った
14612 \family typewriter
14613 DIN.lco
14614 \family default
14615 や,旧
14616 \family typewriter
14617 scrlettr
14618 \family default
14619 クラスの既定レイアウトを提供する
14620 \family typewriter
14621 KOMAold.lco
14622 \family default
14623 などです.たとえば後者は,
14624 \family sans
14625 文書\SpecialChar menuseparator
14626 設定\SpecialChar menuseparator
14627 文書クラス\SpecialChar menuseparator
14628 クラスオプション
14629 \family default
14630 フィールドにクラスオプション
14631 \family typewriter
14632 KOMAold
14633 \family default
14634 を加えることで読み込むことができます.
14635 \end_layout
14636
14637 \end_inset
14638
14639 .用例としては,\SpecialChar LyX
14640 に収録されているひな型
14641 \emph on
14642 koma-letter2
14643 \emph default
14644 をご覧ください.詳細な解説は,Koma-Script取扱説明書(
14645 \emph on
14646 scrguide
14647 \emph default
14648 )にあります.
14649 \end_layout
14650
14651 \begin_layout Subsection
14652 問題点
14653 \end_layout
14654
14655 \begin_layout Standard
14656 Koma-Script文書クラスを\SpecialChar LyX
14657 上に表示する上で,\SpecialChar LyX
14658 の内部処理が若干の問題を生じめます.
14659 \end_layout
14660
14661 \begin_layout Itemize
14662
14663 \family sans
14664
14665 \family default
14666 環境の章番号は,章見出しと同じ行ではなく,その上に表示されます.これは,レイアウトファイル中の
14667 \family sans
14668 Counter_Chapter
14669 \family default
14670 ラベル型に対する\SpecialChar LyX
14671 の内部処理が原因です.
14672 \end_layout
14673
14674 \begin_layout Itemize
14675
14676 \family sans
14677 章(addchap)
14678 \family default
14679
14680 \family sans
14681 節(addsec)
14682 \family default
14683 環境の見出しは,「本当の」\SpecialChar LaTeX
14684 の目次には追加されますが,\SpecialChar LyX
14685 の目次(
14686 \family sans
14687 移動
14688 \family default
14689 メニュー)には追加されません.
14690 \end_layout
14691
14692 \begin_layout Itemize
14693
14694 \emph on
14695 letter
14696 \emph default
14697 文書クラスでの段落は,垂直スペースによる段落区切りで表示され,字下げはされません.これが標準的な挙動となっていて,特別な\SpecialChar LaTeX
14698 コマンドは必要ありません.しかし,
14699 \family sans
14700 文書\SpecialChar menuseparator
14701 設定
14702 \family default
14703 ダイアログでは,対応するラジオボタンは
14704 \family sans
14705 字下げ
14706 \family default
14707 に設定されています.
14708 \family sans
14709 垂直スペース
14710 \family default
14711 は,隙間を空けるために,文書に\SpecialChar LaTeX
14712 コマンドをつねに追加するようになっていますが,この文書クラスの場合には,そのような挙動が望まれないためです.
14713 \end_layout
14714
14715 \begin_layout Section
14716 Memoir
14717 \end_layout
14718
14719 \begin_layout Standard
14720
14721 \noun on
14722 Jürgen Spitzmüller
14723 \noun default
14724
14725 \end_layout
14726
14727 \begin_layout Subsection
14728 概観
14729 \end_layout
14730
14731 \begin_layout Standard
14732 Memoirは,非常に強力で,着実に改良が加えられている文書クラスであり,フィクションとノンフィクションの文学作品用に設計されています.その目的は,ユーザーに,
14733 文書の組版に関して最大限の裁量を得させることにあります.Memoirは,標準bookクラスに基づいていますが,articleクラスをエミュレートすることもできま
14734 す(以下参照).
14735 \end_layout
14736
14737 \begin_layout Standard
14738 Memoir開発者であるPeter Wilsonは,\SpecialChar LaTeX
14739 の世界での,多くの便利なパッケージの作者として知られていますが,それらのほとんどは,Memoirに統合されま
14740 した.このため,章のデザインや,目次や付録などのレイアウトを,はるかに簡単に行うことができます.しかしながら,\SpecialChar LyX
14741 は,これらすべての素晴らしい機能をネイティブでサポ
14742 ートしているわけではありません.これらのうちいくつかは,将来のリリースで追加されるかもしれませんが
14743 \begin_inset Foot
14744 status collapsed
14745
14746 \begin_layout Plain Layout
14747 もし提案があれば,ぜひ
14748 \begin_inset Flex URL
14749 status collapsed
14750
14751 \begin_layout Plain Layout
14752
14753 lyx-devel@lists.lyx.org
14754 \end_layout
14755
14756 \end_inset
14757
14758 までお送り下さい.
14759 \end_layout
14760
14761 \end_inset
14762
14763 ,\SpecialChar LyX
14764 のフレームワークが持つ制約のために,おそらく決して追加されることのないと考えられるものも多数あります.もちろん,ネイティブな\SpecialChar LaTeX
14765 コマンド(\SpecialChar TeX
14766 コード
14767 \begin_inset Foot
14768 status collapsed
14769
14770 \begin_layout Plain Layout
14771 【参考】詳細は,第
14772 \begin_inset CommandInset ref
14773 LatexCommand ref
14774 reference "sec:LaTeXコードを挿入する"
14775
14776 \end_inset
14777
14778 節参照.
14779 \end_layout
14780
14781 \end_inset
14782
14783 )の助けを借りれば,全機能を使用できます.この節では,\SpecialChar LyX
14784 がネイティブにサポートしている機能についてのみ,列挙するものとします.詳細な説明(および他の機能)について
14785 は,Memoirクラスの詳しい取扱説明書
14786 \begin_inset Foot
14787 status collapsed
14788
14789 \begin_layout Plain Layout
14790 【参考】
14791 \begin_inset Flex URL
14792 status collapsed
14793
14794 \begin_layout Plain Layout
14795
14796 CTAN:/macros/latex/memoir/memman.pdf
14797 \end_layout
14798
14799 \end_inset
14800
14801
14802 \end_layout
14803
14804 \end_inset
14805
14806 をご覧になることをお勧めします.この取扱説明書は,本クラスのユーザーの手引きであるのみに留まらず,良い組版に関する包括的な解説であり,それ自身が良い組版の傑出し
14807 た用例となっています.
14808 \end_layout
14809
14810 \begin_layout Subsection
14811 基本的な機能と制約
14812 \end_layout
14813
14814 \begin_layout Standard
14815 Memoirは,基本的に,標準bookクラスの全機能をサポートしています.しかしながら,以下に示すような若干の違いがあります.
14816 \end_layout
14817
14818 \begin_layout Description
14819 フォント寸法: Memoirでは,9・10・11・12・14・17と,より広い範囲のフォント寸法が使用可能です.
14820 \end_layout
14821
14822 \begin_layout Description
14823 ページ様式: Memoirパッケージとfancyhdrパッケージとのコマンドの衝突のため(両パッケージは同じ名前のコマンドを定義しているため,\SpecialChar LaTeX
14824 が混乱させられます
14825 ),fancyページ様式は使用できません.その代わり,Memoirには,多くの独自のページ様式が付属してきます(
14826 \family sans
14827 文書\SpecialChar menuseparator
14828 設定\SpecialChar menuseparator
14829 ページレイアウト
14830 \family default
14831 参照).これらを章題ページに使用したい場合には,コマンド
14832 \family typewriter
14833
14834 \backslash
14835 chapterstyle
14836 \family default
14837 を,本文またはプリアンブルに記述する必要があります(例えば,
14838 \family typewriter
14839
14840 \backslash
14841 chapterstyle{companion}
14842 \family default
14843 など).
14844 \end_layout
14845
14846 \begin_layout Description
14847 節分け: 標準クラスでは,節分けコマンド(章・節・小節等)は,非必須引数を一つ取ることができます.これを用いて,目次やヘッダ用に別のタイトルを指定することができ
14848 ます(たとえば,タイトルが長すぎる場合などに用います).\SpecialChar LyX
14849 では,章や節の始めで
14850 \family sans
14851 挿入\SpecialChar menuseparator
14852 短縮タイトル
14853 \family default
14854 を使えば,これを指定することができます.一方,Memoirでは,第2の非必須引数を取ることができ,目次用のタイトルとヘッダ用のタイトルの指定を分離しています.こ
14855 れを使えば,本文用と目次用とヘッダ用のタイトルの3種類を指定することができます.この機能を使用したい場合には,2つの非必須引数を入力して,最初のものに目次用,次
14856 のものにヘッダ用短縮タイトルを入れてください.
14857 \end_layout
14858
14859 \begin_layout Description
14860 目次・図一覧・表一覧: 標準クラス(および他の多くのクラス)では,目次と図一覧および表一覧は,自動的に新規頁に置かれます.Memoirは,これとは別の方針を採り
14861 ます.改頁を行いたい場合は,手動で頁区切りを入れなくてはなりません.
14862 \end_layout
14863
14864 \begin_layout Description
14865 タイトル頁: 理由は不明ですが,Memoirはタイトルページに丁付けを行います(標準クラスでは,タイトルページは「empty」様式).タイトル頁に丁付けを行いた
14866 くない場合には,プリアンブルに
14867 \family typewriter
14868
14869 \backslash
14870 aliaspagestyle{title}{empty}
14871 \family default
14872 と入力してください.
14873 \end_layout
14874
14875 \begin_layout Description
14876 Article: クラスオプション
14877 \emph on
14878 article
14879 \emph default
14880 を用いる(
14881 \family sans
14882 文書\SpecialChar menuseparator
14883 設定\SpecialChar menuseparator
14884 クラスオプション
14885 \family default
14886 で入力)と,article様式をエミュレートできます.すなわち,(脚注・図・表等の)カウンタは,章毎にリセットされず,次の章は頁を改めず(ただし,「本物の」ar
14887 ticleクラスとは違って,頁を改めることも可),部はbookクラスと同様に,独立の頁を使用します.
14888 \end_layout
14889
14890 \begin_layout Description
14891 Oldfontcommands: \SpecialChar LaTeX
14892 旧2.09版で使用されていた旧いフォントコマンド(
14893 \family typewriter
14894
14895 \backslash
14896 rm
14897 \family default
14898
14899 \family typewriter
14900
14901 \backslash
14902 it
14903 \family default
14904 など)は,Memoirにおいては,既定では使用することができません.Memoirがこれらのコマンドを検知すると,エラーを発して\SpecialChar LaTeX
14905 を停止させます.しかし,クラスオプ
14906 ション
14907 \emph on
14908 oldfontcommands
14909 \emph default
14910 を指定すると,これらのコマンドが容認され,エラーの代わりに警告を発するのみとなります(これによって,少なくとも\SpecialChar LaTeX
14911 は停止しなくなります).まだ,多くのパッケージと,
14912 就中多くのBib\SpecialChar TeX
14913 スタイルファイルが,これらのコマンドを使用しているので,我々はこのオプションを既定で使うこととしました.
14914 \end_layout
14915
14916 \begin_layout Subsection
14917 追加された機能
14918 \end_layout
14919
14920 \begin_layout Standard
14921 \SpecialChar LyX
14922 でサポートされる機能(今のところそれほど多くはありません)を簡単に説明しましょう.詳しくはMemoirの取扱説明書
14923 \begin_inset Foot
14924 status collapsed
14925
14926 \begin_layout Plain Layout
14927 \begin_inset Flex URL
14928 status collapsed
14929
14930 \begin_layout Plain Layout
14931
14932 CTAN:/macros/latex/memoir/memman.pdf
14933 \end_layout
14934
14935 \end_inset
14936
14937
14938 \end_layout
14939
14940 \end_inset
14941
14942 を見てください.
14943 \end_layout
14944
14945 \begin_layout Description
14946 概要: 概要が,追加された機能として扱われているのを不思議に思われるかもしれませんが,bookクラスとしては追加された機能なのです.通常bookクラスには概要は
14947 ないのですが,memoirにはあります.これは,どこでも何回でも自由に使うことができます.
14948 \end_layout
14949
14950 \begin_layout Description
14951 章要約: この古い組版様式はご覧になったことがあるかも知れません.章の内容が,見出しの下と目次に要約されているものです(たとえば,「我らが英雄がトロヤに到着する
14952 .彼は友人を失うが,新たな友人を得る.」など).章要約(chapterprecis)はこれを行います.したがって,章要約は章の下でのみ意味を持ちます.
14953 \end_layout
14954
14955 \begin_layout Description
14956 題辞: 題辞(epigraph)は章頭の,気の利いた標語やモットーです.題辞環境は,そのような標語を組む洗練された方法を提供します.標語本体(本文)とその著者(
14957 出典)は,短い線で区切られます.この環境には二つの引数(本文と出典)が必要なので,ここでも\SpecialChar LyX
14958 を少しだます必要があります.ここでは,2つの引数の間に,
14959 \emph on
14960 <標語>
14961 \family typewriter
14962 \emph default
14963 }{
14964 \family default
14965 \emph on
14966 <標語の著者>
14967 \emph default
14968 のように,(\SpecialChar TeX
14969 モードで)波括弧を入れなくてはなりません.
14970 \end_layout
14971
14972 \begin_layout Description
14973 詩題: Memoirには(複雑で隠喩的なものも含めて)詩を組版するための多くの機能がありますが,\SpecialChar LyX
14974 は,そのうちいくつかしかサポートしていません.詩題はその一つです
14975 .これは詩用の中央揃えタイトルで,目次にも表示されます(詩句が詩の標準環境です.Memoirには,詩句の拡張版もありますが,これらを使うためには\SpecialChar TeX
14976 コードを使用しな
14977 くてはなりません.これらの環境は通常の詩句環境の中に入れ子にしなくてはならないのですが,\SpecialChar LyX
14978 ではそれができないためです).
14979 \end_layout
14980
14981 \begin_layout Description
14982 詩題*: 目次に現れない他は詩題と同じです.
14983 \end_layout
14984
14985 \begin_layout Section
14986 Article (mwart)・book (mwbk)・report (mwrep)
14987 \begin_inset Argument status
14988 status collapsed
14989
14990 \begin_layout Plain Layout
14991 The 
14992 \family typewriter
14993 mw
14994 \family default
14995  Classes
14996 \end_layout
14997
14998 \end_inset
14999
15000
15001 \end_layout
15002
15003 \begin_layout Standard
15004
15005 \noun on
15006 Tomasz Luczak
15007 \noun default
15008
15009 \end_layout
15010
15011 \begin_layout Standard
15012 \SpecialChar LyX
15013 文書クラス
15014 \emph on
15015 article (mwart)
15016 \emph default
15017
15018 \emph on
15019 report (mwrep)・book
15020 \emph default
15021  
15022 \emph on
15023 (mwbk)
15024 \emph default
15025 は,それぞれ\SpecialChar LaTeX
15026 文書クラス
15027 \family typewriter
15028 mwart.cls
15029 \family default
15030
15031 \family typewriter
15032 mwrep.cls
15033 \family default
15034
15035 \family typewriter
15036 mwbk.cls
15037 \family default
15038 に対応しています.これらは,標準の
15039 \family typewriter
15040 article.cls
15041 \family default
15042
15043 \family typewriter
15044 report.cls
15045 \family default
15046
15047 \family typewriter
15048 book.cls
15049 \family default
15050 を代替するものであり,多くの点で,ポーランド語の組版慣習によく適合しています.
15051 \end_layout
15052
15053 \begin_layout Standard
15054 基本的な違いは,次の点です.
15055 \end_layout
15056
15057 \begin_layout Itemize
15058 付番のない見出し(
15059 \family sans
15060 節*
15061 \family default
15062 などの星付き)も目次に加えられます.
15063 \end_layout
15064
15065 \begin_layout Itemize
15066 以下のページスタイルの追加
15067 \begin_inset Separator latexpar
15068 \end_inset
15069
15070
15071 \end_layout
15072
15073 \begin_deeper
15074 \begin_layout Description
15075 uheadings 分離線付きヘッダ
15076 \end_layout
15077
15078 \begin_layout Description
15079 myheadings 
15080 \family typewriter
15081
15082 \backslash
15083 markright
15084 \family default
15085 コマンドおよび
15086 \family typewriter
15087
15088 \backslash
15089 markboth
15090 \family default
15091 コマンドで設定するカスタムヘッダ
15092 \end_layout
15093
15094 \begin_layout Description
15095 myuheadings 分離線付きカスタムヘッダ
15096 \end_layout
15097
15098 \begin_layout Description
15099 outer ページの外側にページ番号
15100 \end_layout
15101
15102 \end_deeper
15103 \begin_layout Itemize
15104 オプション
15105 \begin_inset Separator latexpar
15106 \end_inset
15107
15108
15109 \end_layout
15110
15111 \begin_deeper
15112 \begin_layout Description
15113 rmheadings セリフ体見出し — 既定
15114 \end_layout
15115
15116 \begin_layout Description
15117 sfheadings サンセリフ体見出し
15118 \end_layout
15119
15120 \begin_layout Description
15121 authortitle タイトルページは,著者名・タイトルの順で配置 — 既定
15122 \end_layout
15123
15124 \begin_layout Description
15125 titleauthor タイトルページは,タイトル・著者名の順で配置
15126 \end_layout
15127
15128 \begin_layout Description
15129 withmarginpar ページ上に余白のための場所を確保
15130 \end_layout
15131
15132 \end_deeper
15133 \begin_layout Section
15134 Paper
15135 \end_layout
15136
15137 \begin_layout Standard
15138
15139 \family sans
15140 paper
15141 \family default
15142 文書クラスは標準
15143 \family sans
15144 article
15145 \family default
15146 クラスの代替となるものです.これは
15147 \family sans
15148 同様の
15149 \family default
15150 機能を提供しますが,サンセリフ体の節見出し・ヘッディング等を持つこちらのレイアウトの方が気に入るかも知れません.
15151 \end_layout
15152
15153 \begin_layout Section
15154 Rev\SpecialChar TeX
15155 4
15156 \end_layout
15157
15158 \begin_layout Standard
15159 by 
15160 \noun on
15161 Amir Karger
15162 \end_layout
15163
15164 \begin_layout Standard
15165 \begin_inset VSpace bigskip
15166 \end_inset
15167
15168
15169 \end_layout
15170
15171 \begin_layout Standard
15172 \noindent
15173
15174 \family sans
15175 Revtex
15176 \begin_inset space ~
15177 \end_inset
15178
15179 4
15180 \family default
15181 テキストクラスは,アメリカ物理学会のRev\SpecialChar TeX
15182  4.0(1999年5月の
15183 \begin_inset Formula $\beta$
15184 \end_inset
15185
15186 リリース)クラスで動作します.
15187 \end_layout
15188
15189 \begin_layout Standard
15190 \SpecialChar LyX
15191 には,Rev\SpecialChar TeX
15192  3.1で動作する
15193 \family sans
15194 Revtex
15195 \family default
15196 テキストクラスもあります.しかしながら,第3.1版は\SpecialChar LaTeX
15197  2.09で動作するものであり,基本的に時代遅れなものになっています.\SpecialChar LyX
15198 は\SpecialChar LaTeX2e
15199 を必要とすることから,第3.1版は\SpecialChar LyX
15200 とうまく
15201 協調しないことを意味しますが,動作するようには調整してあります.Rev\SpecialChar TeX
15202  4.0は,\SpecialChar LaTeX2e
15203 で素直に動作するようにデザインされているので,\SpecialChar LyX
15204
15205 \family sans
15206 Rev\SpecialChar TeX
15207
15208 \begin_inset space ~
15209 \end_inset
15210
15211 4
15212 \family default
15213 テキストクラスの組で使用するのは,たいへん簡単です.
15214 \end_layout
15215
15216 \begin_layout Standard
15217 この取扱説明書は,Rev\SpecialChar TeX
15218  4.0の説明書の
15219 \emph on
15220 補完
15221 \emph default
15222 として使用されることを前提としています.したがって,ここではRev\SpecialChar TeX
15223 固有マクロの説明はせず,必要な場合にはプリアンブルに何と書けば良いかを知っているものとして説明
15224 します.
15225 \end_layout
15226
15227 \begin_layout Subsection
15228 導入
15229 \end_layout
15230
15231 \begin_layout Standard
15232 Rev\SpecialChar TeX
15233  4パッケージのREADMEファイルにあるとおり,ともかくRev\SpecialChar TeX
15234  4を導入しなくてはなりません.パッケージは,The Rev\SpecialChar TeX
15235  4 Web
15236  Site 
15237 \begin_inset Flex URL
15238 status collapsed
15239
15240 \begin_layout Plain Layout
15241
15242 http://publish.aps.org/revtex4/
15243 \end_layout
15244
15245 \end_inset
15246
15247 から入手することができます.これを\SpecialChar LaTeX
15248 が検出することのできる場所に導入してください.それから,適当に選んだディレクトリ(もといクラスファイルを導入したのとは異なるデ
15249 ィレクトリ)で簡単なRev\SpecialChar TeX
15250  4文書を \SpecialChar LaTeX
15251 でコンパイルできるかどうか確認してください.この後,\SpecialChar LyX
15252 を環境構成すると,クラスファイルを検出し,Rev\SpecialChar TeX
15253 4テキストクラスが使用
15254 できるようになるはずです.
15255 \end_layout
15256
15257 \begin_layout Standard
15258 使い始めるには,
15259 \family typewriter
15260 tex2lyx
15261 \family default
15262 を使ってRev\SpecialChar TeX
15263  4文書を読み込むか,またはひな型ディレクトリにある
15264 \family sans
15265 Revtex
15266 \begin_inset space ~
15267 \end_inset
15268
15269 4
15270 \family default
15271 のひな型を使うのが,おそらく一番簡単な方法でしょう.
15272 \end_layout
15273
15274 \begin_layout Subsection
15275 プリアンブルに関すること
15276 \end_layout
15277
15278 \begin_layout Standard
15279
15280 \family typewriter
15281
15282 \backslash
15283 documentclass
15284 \family default
15285 に与える「preprint」や「aps」のような非必須引数は,他のクラス同様,
15286 \family sans
15287 文書\SpecialChar menuseparator
15288 設定\SpecialChar menuseparator
15289 文書クラス
15290 \family default
15291
15292 \family sans
15293 クラスオプション
15294 \family default
15295 フィールドに入れます.Rev\SpecialChar TeX
15296 では,少なくとも一つの非必須引数が必要なことに注意してください.
15297 \end_layout
15298
15299 \begin_layout Standard
15300
15301 \family typewriter
15302
15303 \backslash
15304 draft
15305 \family default
15306 など他のプリアンブルは,他のクラス同様,
15307 \family sans
15308 文書\SpecialChar menuseparator
15309 設定\SpecialChar menuseparator
15310 \SpecialChar LaTeX
15311 プリアンブル
15312 \family default
15313 に入れてください.
15314 \end_layout
15315
15316 \begin_layout Subsection
15317 レイアウト
15318 \end_layout
15319
15320 \begin_layout Standard
15321 レイアウトは,基本的にRev\SpecialChar TeX
15322 4.0のコマンドに対応しています.たとえば,Emailレイアウトは,
15323 \family typewriter
15324
15325 \backslash
15326 email{}
15327 \family default
15328 に対応しています.(少なくともRev\SpecialChar TeX
15329  4.0 Beta現在では)
15330 \family sans
15331 住所
15332 \family default
15333
15334 \family sans
15335 所属
15336 \family default
15337 はまったく同じものなので,両方を使う必要はありません
15338 \begin_inset Foot
15339 status collapsed
15340
15341 \begin_layout Plain Layout
15342 ついでながら,
15343 \family typewriter
15344 tex2lyx
15345 \family default
15346 は両方とも対応しているので,
15347 \family typewriter
15348
15349 \backslash
15350 address
15351 \family default
15352
15353 \family typewriter
15354
15355 \backslash
15356 affiliation
15357 \family default
15358 のどちらも翻訳することができます.
15359 \end_layout
15360
15361 \end_inset
15362
15363
15364 \end_layout
15365
15366 \begin_layout Subsection
15367 重要な注意
15368 \end_layout
15369
15370 \begin_layout Standard
15371 Rev\SpecialChar TeX
15372  4には,バグを引き起こしがちなために,気をつけなくてはならない特殊な面がいくつかあるため,\SpecialChar LyX
15373 ではさらに気をつけなくてはなりません.
15374 \end_layout
15375
15376 \begin_layout Standard
15377 Rev\SpecialChar TeX
15378 では,
15379 \family typewriter
15380
15381 \backslash
15382 thanks
15383 \family default
15384 コマンドは,
15385 \family typewriter
15386
15387 \backslash
15388 author
15389 \family default
15390 コマンドの
15391 \emph on
15392 外側
15393 \emph default
15394 に来なくてはなりません.\SpecialChar LyX
15395 では,独立した
15396 \family sans
15397 感謝
15398 \family default
15399 レイアウトがこの働きをします.直接
15400 \family sans
15401 ,著者
15402 \family default
15403 レイアウトに脚注を付けてしまうと,おかしなことが起こる可能性があります.詳細については,Rev\SpecialChar TeX
15404  4の取扱説明書をご覧ください.
15405 \end_layout
15406
15407 \begin_layout Standard
15408 また,
15409 \family sans
15410 著者電子メール
15411 \family default
15412
15413 \family sans
15414 著者URL・感謝(thanks)
15415 \family default
15416 レイアウトは,
15417 \family sans
15418 著者
15419 \family default
15420 レイアウトと
15421 \family sans
15422 住所(
15423 \family default
15424 または同等の
15425 \family sans
15426 所属
15427 \family default
15428 )レイアウトの間に置かなければなりません.
15429 \family sans
15430 感謝(thanks)
15431 \family default
15432
15433 \family sans
15434 住所
15435 \family default
15436 の後に置いてしまうと,\SpecialChar LaTeX
15437 はコンパイルに失敗します.
15438 \end_layout
15439
15440 \begin_layout Subsection
15441 問題点
15442 \end_layout
15443
15444 \begin_layout Standard
15445 このレイアウトの主な問題点は,電子メールやタイトルのようなレイアウトに非必須引数を用いることができないことです(これはこのレイアウトだけの問題ではありません.例
15446 えば,節レイアウトも非必須引数を使用することができません).これは,たとえばページヘッダにヘッダ用タイトルを設定したい場合などには,ファイルを\SpecialChar LaTeX
15447 ファイルに変換した
15448 後に(これは最終的にAPSに原稿を送る際には行わなくてはなりません),テキストエディタを使って\SpecialChar LaTeX
15449 ファイルを編集し,非必須引数を書き加えなくてはならないということで
15450 す.これらのレイアウトがないと,
15451 \family typewriter
15452
15453 \backslash
15454 altaffiliation
15455 \family default
15456 (またそれと同等な
15457 \family typewriter
15458
15459 \backslash
15460 altaddress
15461 \family default
15462 )は使えませんので,対応するレイアウトは存在せず,手動で書き加える必要があります
15463 \begin_inset Foot
15464 status collapsed
15465
15466 \begin_layout Plain Layout
15467
15468 \emph on
15469 JMarcからの註:
15470 \emph default
15471  実は,\SpecialChar LyX
15472  1.3.0 では非必須引数を一部サポートしているのですが,このレイアウトは,まだこの機能を使うようにはアップデートされていないのです.
15473 \end_layout
15474
15475 \end_inset
15476
15477
15478 \end_layout
15479
15480 \begin_layout Section
15481 Springer学術誌(
15482 \family sans
15483 svjour)
15484 \end_layout
15485
15486 \begin_layout Standard
15487
15488 \noun on
15489 Martin Vermeer
15490 \noun default
15491
15492 \end_layout
15493
15494 \begin_layout Subsection
15495 説明
15496 \end_layout
15497
15498 \begin_layout Standard
15499 これは,Springer Verlag社発行のいくつかの学術誌で使用されている書式のレイアウトファイルです.
15500 \begin_inset Flex URL
15501 status collapsed
15502
15503 \begin_layout Plain Layout
15504
15505 http://www.springer.de/author/tex/help-journals.html
15506 \end_layout
15507
15508 \end_inset
15509
15510 に必要なクラスファイル(\SpecialChar LaTeX2e
15511 用になりました)とそれに対応する学術誌の一覧があります.このレイアウトはモジュール式になっています.つまり,全ジャーナル共通部分は
15512 \family typewriter
15513 svjour.inc
15514 \family default
15515 に実装されており,各誌個別のレイアウトファイル(たとえばJournal of Geodesy用の
15516 \family typewriter
15517 svjog.layout
15518 \family default
15519 など)から取り込むことができます.
15520 \end_layout
15521
15522 \begin_layout Standard
15523 このことは,上記の学術誌一覧にある他のSpringer誌のサポートを実装するためには,
15524 \family typewriter
15525 svjog.layout
15526 \family default
15527 に書かれている指示に従って,自作の
15528 \family typewriter
15529 sv
15530 \family default
15531 <学術誌名>
15532 \family typewriter
15533 .layout
15534 \family default
15535 を書くだけで良いことを意味します.
15536 \end_layout
15537
15538 \begin_layout Standard
15539 このレイアウトは,Journal of Geodesyに対してのみ,充分な試験が為されています.
15540 \family typewriter
15541 svjour
15542 \family default
15543
15544 \family typewriter
15545 svjog
15546 \family default
15547 は,標準\SpecialChar LyX
15548 頒布版に収録済みです.関連するクラスファイルを(Springerからダウンロードして)適切なディレクトリに導入し,\SpecialChar LaTeX
15549 を再設定した後(teTeXの場合は,必
15550 要に応じてroot権限で
15551 \family typewriter
15552 texhash
15553 \family default
15554 を実行します),\SpecialChar LyX
15555 を環境構成すれば,動作するはずです.
15556 \end_layout
15557
15558 \begin_layout Subsection
15559 新スタイル
15560 \end_layout
15561
15562 \begin_layout Standard
15563 多くの定理環境 — 
15564 \family sans
15565 主張
15566 \family default
15567
15568 \family sans
15569 推論
15570 \family default
15571 ・\SpecialChar ldots
15572
15573 \family sans
15574 定理
15575 \family default
15576
15577 \end_layout
15578
15579 \begin_layout Standard
15580
15581 \family sans
15582 ヘッドノート
15583 \family default
15584
15585 \family sans
15586 献呈
15587 \family default
15588
15589 \family sans
15590 サブタイトル・ヘッダ用\SpecialChar LaTeX
15591 タイトル・ヘッダ用著者名・所属機関・メール・オフプリント・キーワード・謝辞(acknowledgements)・謝辞(acknowledg
15592 ement)
15593 \family default
15594 .詳しくは Springerのクラスファイルの説明書を読んでください.
15595 \end_layout
15596
15597 \begin_layout Subsection
15598 サポートしているジャーナル
15599 \end_layout
15600
15601 \begin_layout Itemize
15602
15603 \emph on
15604 Journal of Geodesy
15605 \emph default
15606
15607 \family typewriter
15608 svjog.layout
15609 \family default
15610  — Martin Vermeer
15611 \end_layout
15612
15613 \begin_layout Itemize
15614
15615 \emph on
15616 Probability Theory and Related Fields
15617 \emph default
15618
15619 \family typewriter
15620 svprobth.layout
15621 \family default
15622  — Jean-Marc Lasgouttes
15623 \end_layout
15624
15625 \begin_layout Standard
15626 あなた自身のレイアウトファイルをつくってください.難しくはありません.
15627 \end_layout
15628
15629 \begin_layout Subsection
15630 Credits
15631 \end_layout
15632
15633 \begin_layout Standard
15634 これらのファイルは,以前の 
15635 \family typewriter
15636 ejour2.layout
15637 \family default
15638 をもとにしています.
15639 \family typewriter
15640 ejour2.layout
15641 \family default
15642 は Springerの\SpecialChar LaTeX
15643  2.09用のスタイルファイルを使った素人細工のようなレイアウトファイルです.これらのファイルはすでにありません.Jean-Marc
15644  Lasgouttesのおかげで \SpecialChar LyX
15645 のレイアウトファイルのメカニズムをよりよく理解することができました.
15646 \end_layout
15647
15648 \begin_layout Subsection
15649 バグ
15650 \end_layout
15651
15652 \begin_layout Standard
15653 多分あります.以前の 
15654 \family typewriter
15655 ejour2
15656 \family default
15657 よりは少なくなっているとは思いますが.
15658 \end_layout
15659
15660 \begin_layout Standard
15661 制限事項:定理環境の環境の番号は表示されません.#が表示されるだけです.
15662 \end_layout
15663
15664 \begin_layout Section
15665 Slides (別名
15666 \noun on
15667 Sli\SpecialChar TeX
15668
15669 \noun default
15670 )
15671 \begin_inset Foot
15672 status collapsed
15673
15674 \begin_layout Plain Layout
15675 (訳註)この節の内容は,全般的に古くなっています.
15676 \end_layout
15677
15678 \end_inset
15679
15680
15681 \begin_inset CommandInset label
15682 LatexCommand label
15683 name "sec:slitex"
15684
15685 \end_inset
15686
15687
15688 \end_layout
15689
15690 \begin_layout Standard
15691
15692 \noun on
15693 John Weiss
15694 \noun default
15695
15696 \end_layout
15697
15698 \begin_layout Subsection
15699 はじめに
15700 \end_layout
15701
15702 \begin_layout Standard
15703 本節では,オーバーへッドプロジェクタ用のスライドをつくるのに,\SpecialChar LyX
15704 をどのように使えばよいかを説明します.これを行う文書クラスには,既定のslideクラスと
15705 \family sans
15706 Foil\SpecialChar TeX
15707
15708 \family default
15709 スライドクラスの2つがあります.本節は前者について説明を行います.
15710 \end_layout
15711
15712 \begin_layout Standard
15713 誤解のないように,正しく明確に,もう一度言っておきます.
15714 \end_layout
15715
15716 \begin_layout Standard
15717 \begin_inset VSpace bigskip
15718 \end_inset
15719
15720
15721 \end_layout
15722
15723 \begin_layout Standard
15724 \align center
15725
15726 \size large
15727 本節は文書クラス
15728 \begin_inset Quotes eld
15729 \end_inset
15730
15731
15732 \family sans
15733 transparencies (slides)
15734 \family default
15735
15736 \begin_inset Quotes erd
15737 \end_inset
15738
15739
15740 \emph on
15741 のみ
15742 \emph default
15743 を説明しています.
15744 \end_layout
15745
15746 \begin_layout Standard
15747 \begin_inset VSpace bigskip
15748 \end_inset
15749
15750
15751 \end_layout
15752
15753 \begin_layout Standard
15754
15755 \family sans
15756 「slides (Foil\SpecialChar TeX
15757 )
15758 \family default
15759 」の説明をお探しならば,第
15760 \begin_inset CommandInset ref
15761 LatexCommand ref
15762 reference "sec:foiltex"
15763
15764 \end_inset
15765
15766 節をご覧ください.
15767 \family sans
15768 foils
15769 \family default
15770 クラス「
15771 \family sans
15772 slides (Foil\SpecialChar TeX
15773 )
15774 \family default
15775 」は,実際,本節で説明している既定
15776 \family sans
15777 slides
15778 \family default
15779 クラスよりも良いようです
15780 \begin_inset Foot
15781 status collapsed
15782
15783 \begin_layout Plain Layout
15784 \SpecialChar ldots
15785
15786 \family sans
15787 Foil\SpecialChar TeX
15788
15789 \family default
15790 の支持者からは聞いています.けれども私は使ったことがないので,本当かどうか確かめようがありません.
15791 \end_layout
15792
15793 \end_inset
15794
15795
15796 \end_layout
15797
15798 \begin_layout Standard
15799 このクラスは,旧SLI\SpecialChar TeX
15800 パッケージを\SpecialChar LaTeX2e
15801 用に改良したものです.\SpecialChar LaTeX2e
15802 頒布版すべてが,このクラス(以下では単に「
15803 \family sans
15804 slides
15805 \family default
15806 」と述べることにします)を含んでいるので,あなたもお持ちのはずです.前述の
15807 \family sans
15808 foils
15809 \family default
15810 のように,同じくオーバーへッドプロジェクタ用のスライドを生成しながら,このクラスよりも良い仕事をするクラスもあります.しかしながら,オーバーレイを生成するなど,
15811 他のクラスにはできないが
15812 \family sans
15813 slides
15814 \family default
15815 ならばできることもあります.詳しくは以下をお読みください.
15816 \end_layout
15817
15818 \begin_layout Subsection
15819 使い始めるには
15820 \begin_inset CommandInset label
15821 LatexCommand label
15822 name "sec:slidesetup"
15823
15824 \end_inset
15825
15826
15827 \end_layout
15828
15829 \begin_layout Standard
15830 当然ながら,この文書クラスを使用するには,
15831 \family sans
15832 文書\SpecialChar menuseparator
15833 設定
15834 \family default
15835 ダイアログのクラスリストから「
15836 \family sans
15837 transparencies (slides)
15838 \family default
15839 」を選択しなくてはなりません.このクラスについて,以下のように,特に知っておいた方が良いことがいくつかあります.
15840 \end_layout
15841
15842 \begin_layout Itemize
15843
15844 \family sans
15845 用紙方向
15846 \family default
15847
15848 \family sans
15849 二段組文書
15850 \family default
15851 の各オプションは,あえて変更する必要はありません.これらのオプションは,
15852 \family sans
15853 slides
15854 \family default
15855 クラスではサポートされていないので,効果がありません.
15856 \end_layout
15857
15858 \begin_layout Itemize
15859
15860 \family sans
15861 ヘディング様式
15862 \family default
15863 オプションは,このクラスでは少し異なった振る舞いをします.各選択肢とその機能は,以下の通りです.
15864 \begin_inset Separator latexpar
15865 \end_inset
15866
15867
15868 \end_layout
15869
15870 \begin_deeper
15871 \begin_layout Description
15872 プレーン(plain) 最終出力の右下隅にページ番号が付きます.
15873 \end_layout
15874
15875 \begin_layout Description
15876 設定(headings)
15877 \family sans
15878  プレーン(plain)
15879 \family default
15880 と同様ですが,それ以外にあなたが指定したタイムマーカーをすべて出力します.これが既定値です.
15881 \end_layout
15882
15883 \begin_layout Description
15884 空 最終出力には,ページ番号もタイムマーカーも位置揃えマーカーも出力されません.
15885 \end_layout
15886
15887 \end_deeper
15888 \begin_layout Itemize
15889
15890 \family sans
15891 slides
15892 \family default
15893 クラスには,もう一つ
15894 \family typewriter
15895 clock
15896 \family default
15897 というオプションがあります.これを使用するには,
15898 \family sans
15899 クラスオプション
15900 \family default
15901 に「
15902 \family typewriter
15903 clock
15904 \family default
15905 」と入力してください.
15906 \begin_inset Separator latexpar
15907 \end_inset
15908
15909
15910 \end_layout
15911
15912 \begin_deeper
15913 \begin_layout Standard
15914 このオプションを使うと,
15915 \family sans
15916 注釈
15917 \family default
15918 にタイムマーカーを加えることができます.詳細は,第
15919 \begin_inset CommandInset ref
15920 LatexCommand ref
15921 reference "sec:スライド注釈"
15922
15923 \end_inset
15924
15925 節をご覧ください.
15926 \end_layout
15927
15928 \end_deeper
15929 \begin_layout Standard
15930
15931 \family sans
15932 slides
15933 \family default
15934 クラスを用いた文書を自動的にセットアップするには,ひな型ファイル「
15935 \family typewriter
15936 slides.lyx
15937 \family default
15938 」を使用することもできます(新規ファイルを開く際に
15939 \family sans
15940 ファイル\SpecialChar menuseparator
15941 新規(ひな型使用)
15942 \family default
15943 を使用してください).ひな型ファイルには,このクラスが使用する特別な段落環境の用例も含まれています.これらについては,以下で説明します.
15944 \end_layout
15945
15946 \begin_layout Subsection
15947 段落環境
15948 \end_layout
15949
15950 \begin_layout Subsubsection
15951
15952 \family sans
15953 サポートされている環境
15954 \end_layout
15955
15956 \begin_layout Standard
15957 新しく
15958 \family sans
15959 slides
15960 \family default
15961 文書を開いたときにまず気付くのは,フォント寸法とフォント族の違いでしょう.ここでは,
15962 \family sans
15963 サンセリフ体
15964 \family default
15965 フォントの
15966 \family sans
15967 極大
15968 \family default
15969 寸法が用いられており,出力でもこのフォントが使用されます.これは,現在スライドを作成中であることの「目印」だと考えてください.出力スライドは大きなフォントを使用
15970 するため,書ける場所は少なくなります.もちろん,既定の大きな画面フォントはWYSIWYGではなく,スライドであることの目印に過ぎません.
15971 \end_layout
15972
15973 \begin_layout Standard
15974 次に気付くのは,(ツールバー左端の)段落環境プルダウンボックスが変わっていることでしょう.通常見かける環境の多くがなくなって,代わりに5つの新しい環境が入ってい
15975 ます.これは,
15976 \family sans
15977 slides
15978 \family default
15979 クラスが,標準段落環境のうち以下のものしかサポートしていないためです.
15980 \end_layout
15981
15982 \begin_layout Itemize
15983
15984 \family sans
15985 標準
15986 \end_layout
15987
15988 \begin_layout Itemize
15989
15990 \family sans
15991 箇条書き(記号)
15992 \end_layout
15993
15994 \begin_layout Itemize
15995
15996 \family sans
15997 箇条書き(連番)
15998 \end_layout
15999
16000 \begin_layout Itemize
16001
16002 \family sans
16003 箇条書き(記述)
16004 \end_layout
16005
16006 \begin_layout Itemize
16007
16008 \family sans
16009 箇条書き(一覧)
16010 \end_layout
16011
16012 \begin_layout Itemize
16013
16014 \family sans
16015 引用(字下げあり)
16016 \end_layout
16017
16018 \begin_layout Itemize
16019
16020 \family sans
16021 引用(字下げなし)
16022 \end_layout
16023
16024 \begin_layout Itemize
16025
16026 \family sans
16027 詩句
16028 \end_layout
16029
16030 \begin_layout Itemize
16031
16032 \family sans
16033 キャプション
16034 \end_layout
16035
16036 \begin_layout Itemize
16037
16038 \family sans
16039 \SpecialChar LyX
16040 コード
16041 \end_layout
16042
16043 \begin_layout Itemize
16044
16045 \family sans
16046 コメント
16047 \end_layout
16048
16049 \begin_layout Standard
16050 これ以外の標準的な環境,例えば節見出し用の環境などは
16051 \family sans
16052 slides
16053 \family default
16054 クラスでは使えません.
16055 \end_layout
16056
16057 \begin_layout Standard
16058 一方,以下の新しい環境があります.
16059 \end_layout
16060
16061 \begin_layout Itemize
16062
16063 \family sans
16064 スライド
16065 \end_layout
16066
16067 \begin_layout Itemize
16068
16069 \family sans
16070 オーバーレイ
16071 \end_layout
16072
16073 \begin_layout Itemize
16074
16075 \family sans
16076 注釈
16077 \end_layout
16078
16079 \begin_layout Itemize
16080
16081 \family sans
16082 不可視文
16083 \end_layout
16084
16085 \begin_layout Itemize
16086
16087 \family sans
16088 可視文
16089 \end_layout
16090
16091 \begin_layout Standard
16092 これら5つの環境は,\SpecialChar LyX
16093 の「機能」のために使い方に癖があります.ご存じのように,\SpecialChar LyX
16094 では,空の段落環境に他の環境を入れることができません.それ自体は素晴らしいデザインな
16095 のですが,これは,スライドを平文以外では書き始めることができないことを意味します.これを取り扱うためには,ちょっとした「\SpecialChar LaTeX
16096 マジック」が必要になります.
16097 \end_layout
16098
16099 \begin_layout Subsubsection
16100 新環境の癖
16101 \begin_inset CommandInset label
16102 LatexCommand label
16103 name "sec:スライドの癖"
16104
16105 \end_inset
16106
16107
16108 \end_layout
16109
16110 \begin_layout Standard
16111 5つの新しい環境にはすべて,\SpecialChar LyX
16112 現行版の制約に由来する癖があります.いま述べたように,\SpecialChar LyX
16113 では,環境を別の環境で開始することが禁止されています.これを回避するために,
16114 \family sans
16115 スライド
16116 \family default
16117 環境は『
16118 \emph on
16119 ユーザーの手引き
16120 \emph default
16121 』で述べられているような段落環境ではなくなっています.
16122 \end_layout
16123
16124 \begin_layout Standard
16125
16126 \family sans
16127 スライド
16128 \family default
16129
16130 \family sans
16131 オーバーレイ
16132 \family default
16133
16134 \family sans
16135 注釈
16136 \family default
16137 は「疑似環境」だとお考えください.これらは節見出しや「
16138 \family sans
16139 キャプション
16140 \family default
16141 」のように見えますが,実際には(必要なら前段落を終了して)新しい段落環境を開始します.同様に,
16142 \family sans
16143 不可視文
16144 \family default
16145
16146 \family sans
16147 可視文
16148 \family default
16149 も「疑似コマンド」とお考えください.この2つは特定のアクションを行います.
16150 \end_layout
16151
16152 \begin_layout Standard
16153
16154 \family sans
16155 スライド
16156 \family default
16157
16158 \family sans
16159 オーバーレイ
16160 \family default
16161
16162 \family sans
16163 注釈
16164 \family default
16165
16166 \family sans
16167 不可視文
16168 \family default
16169
16170 \family sans
16171 可視文
16172 \family default
16173 の5環境に共通しているのは,長めのラベルを持つことです.このラベルに続く文章—通常は段落環境の内容になるはずですが—は,
16174 \family sans
16175 スライド
16176 \family default
16177
16178 \family sans
16179 オーバーレイ
16180 \family default
16181
16182 \family sans
16183 注釈
16184 \family default
16185
16186 \family sans
16187 不可視文
16188 \family default
16189
16190 \family sans
16191 可視文
16192 \family default
16193 では,まったく意味がなく,\SpecialChar LyX
16194 はこの部分を完全に無視します.これらの5つの環境の内容は,完全に空のままにしておいて構いません.
16195 \end_layout
16196
16197 \begin_layout Standard
16198 長めのラベルの後に文章を入れる
16199 \emph on
16200 必要は
16201 \emph default
16202 まったく
16203 \emph on
16204 ない
16205 \emph default
16206 とはいえ,何か書いておきたいこともあるかもしれません.たとえば,スライドの内容に関する短い説明などがそうでしょう.この場合,いつもどおり説明用のコメントを入力し
16207
16208 \family sans
16209 Return
16210 \family default
16211 を押してください.
16212 \end_layout
16213
16214 \begin_layout Standard
16215 一方,説明文を入れたくない場合には,\SpecialChar LyX
16216 の制約に直面します.自然が真空を憎むように,\SpecialChar LyX
16217 では,古い環境に何かを置くまでは,その中に新しい環境を入れることができません.そ
16218 こで以下のようにしてください.
16219 \end_layout
16220
16221 \begin_layout Itemize
16222 新しい
16223 \family sans
16224 スライド
16225 \family default
16226
16227 \family sans
16228 オーバーレイ
16229 \family default
16230
16231 \family sans
16232 注釈
16233 \family default
16234
16235 \family sans
16236 不可視文
16237 \family default
16238
16239 \family sans
16240 可視文
16241 \family default
16242
16243 \emph on
16244 中に入れる
16245 \emph default
16246 文章を入力してください.
16247 \end_layout
16248
16249 \begin_layout Itemize
16250 段落の先頭に移動します.
16251 \end_layout
16252
16253 \begin_layout Itemize
16254 次に
16255 \family sans
16256 Return
16257 \family default
16258 を押します.
16259 \end_layout
16260
16261 \begin_layout Itemize
16262 最後に,この新しい空の段落を
16263 \family sans
16264 スライド
16265 \family default
16266
16267 \family sans
16268 オーバーレイ
16269 \family default
16270
16271 \family sans
16272 注釈
16273 \family default
16274
16275 \family sans
16276 不可視文
16277 \family default
16278
16279 \family sans
16280 可視文
16281 \family default
16282 に変更します.
16283 \end_layout
16284
16285 \begin_layout Standard
16286 将来の\SpecialChar LyX
16287 では,このような癖が解決されることを祈っています\SpecialChar ldots
16288
16289 \begin_inset Foot
16290 status collapsed
16291
16292 \begin_layout Plain Layout
16293 (訳註)ここの記述は古くなっています.
16294 \end_layout
16295
16296 \end_inset
16297
16298
16299 \end_layout
16300
16301 \begin_layout Subsection
16302
16303 \family sans
16304 スライド
16305 \family default
16306
16307 \family sans
16308 オーバーレイ
16309 \family default
16310
16311 \family sans
16312 注釈で発表用のスライドを作る
16313 \end_layout
16314
16315 \begin_layout Subsubsection
16316
16317 \family sans
16318 スライド
16319 \family default
16320 環境を使う
16321 \end_layout
16322
16323 \begin_layout Standard
16324 もし本節が,実際のプレゼンテーションの作り方を教えてくれるものと期待されているとすれば,大いにがっかりされるかもしれません.当然ながら,プレゼンテーション用の資
16325 料を準備するうえで
16326 \family sans
16327 slides
16328 \family default
16329 クラスを役立てる方法を詳しく説明はしますが,内容をどうするかはあなた次第です(そしてこれも\SpecialChar LyX
16330 の哲学です).
16331 \end_layout
16332
16333 \begin_layout Standard
16334
16335 \family sans
16336 スライド
16337 \family default
16338 環境を選択すれば(方法は第
16339 \begin_inset CommandInset ref
16340 LatexCommand ref
16341 reference "sec:スライドの癖"
16342
16343 \end_inset
16344
16345 節参照のこと),\SpecialChar LyX
16346 は新規スライドを開始します.この環境ないし「疑似環境」のラベルは,鮮やかな青で「新規スライド:」と表示されます.この環境の後のテキスト環境や段落
16347 環境は,すべて新規スライドに入ります.簡単ですよね.
16348 \end_layout
16349
16350 \begin_layout Standard
16351 Slidesは,おそらく\SpecialChar LyX
16352 の中で強制的に改頁をしなくてはならない唯一のクラスです(これは
16353 \family sans
16354 段落レイアウト
16355 \family default
16356 ダイアログで指定できます).実際,一つのスライドの内容を入力し終わったら,改頁したくなるはずです.仮に一つのスライドに物理的に入りきらない文章を入力したとすると
16357 ,入りきらない部分は,次の新規スライドにまわされます.しかしながら,入りきらない部分のスライドにはページ番号が付きませんので,こうするのはお勧めしません.その上
16358 ,一枚に収まらないスライドでは,
16359 \family sans
16360 オーバーレイ
16361 \family default
16362 を使用すると干渉する恐れがあります.
16363 \end_layout
16364
16365 \begin_layout Standard
16366
16367 \family sans
16368 オーバーレイ
16369 \family default
16370 環境と
16371 \family sans
16372 注釈
16373 \family default
16374 環境も,
16375 \family sans
16376 スライド
16377 \family default
16378 環境と同様の動作を示します.これらは,青の代わりに鮮やかなマゼンタで,それぞれ「
16379 \noun on
16380 新規オーバーレイ
16381 \noun default
16382 :」ないし「
16383 \noun on
16384 新規注釈:
16385 \noun default
16386 」というラベルを表示します.ラベルのフォントも,3つの環境でそれぞれ異なるものが使用されます.
16387 \end_layout
16388
16389 \begin_layout Standard
16390
16391 \family sans
16392 スライド
16393 \family default
16394 と同様に,
16395 \family sans
16396 オーバーレイ
16397 \family default
16398
16399 \family sans
16400 注釈
16401 \family default
16402 の内容が,一つのスライドないしページに物理的に収まりきらない場合には,余分は新規スライドに回されます.この場合には,
16403 \family sans
16404 注釈
16405 \family default
16406
16407 \family sans
16408 オーバーレイ
16409 \family default
16410 の本来の目的が達せられなくなりますので,ここでもこのような状態は避けるべきでしょう.
16411 \end_layout
16412
16413 \begin_layout Subsubsection
16414
16415 \family sans
16416 スライドでオーバーレイを使用する
16417 \end_layout
16418
16419 \begin_layout Standard
16420
16421 \family sans
16422 オーバーレイ
16423 \family default
16424 の背後にある考え方は,別のスライドの上にスライドを載せようとするものです.メインの
16425 \family sans
16426 スライド
16427 \family default
16428 に図があるとき,関連した文章を表示する前に,図について議論を進めたいと思うことがあるかもしれません.これを行うひとつの方法は,
16429 \family sans
16430 スライド
16431 \family default
16432 で後に表示したい部分に黒い紙の蓋を貼り付けてしまうことですが,この方法は,たとえばグラフを他のグラフに重ねたい場合などには,うまく行きません.この場合には,二つ
16433 のグラフを揃えるために,重ねる二つのスライドを,喋りながら手探りで揃えなくてはなりません.これらのような場合には,
16434 \family sans
16435 オーバーレイ
16436 \family default
16437 環境を使えば,もっと楽になります.
16438 \end_layout
16439
16440 \begin_layout Standard
16441
16442 \family sans
16443 オーバーレイ
16444 \family default
16445 は,「親」
16446 \family sans
16447 スライド
16448 \family default
16449 のページ番号を引継ぎ,その後に「
16450 \family typewriter
16451 -a
16452 \family default
16453 」を付け加えます
16454 \begin_inset Foot
16455 status collapsed
16456
16457 \begin_layout Plain Layout
16458 想像できるように,複数のオーバーレイがあれば,「
16459 \family typewriter
16460 -a
16461 \family default
16462 」「
16463 \family typewriter
16464 -b
16465 \family default
16466 」「
16467 \family typewriter
16468 -c
16469 \family default
16470 」などが親スライドのページ番号に付け加えられます.
16471 \end_layout
16472
16473 \end_inset
16474
16475 .当然のことながら,
16476 \family sans
16477 スライド
16478 \family default
16479
16480 \family sans
16481 オーバーレイ
16482 \family default
16483 の内容は両方とも,1枚のスライドに物理的に収まるようになっていなければなりません.
16484 \family sans
16485 オーバーレイ
16486 \family default
16487
16488 \family sans
16489 スライド
16490 \family default
16491 の「一部」であると考えるのがよいでしょう.\SpecialChar LyX
16492 では,
16493 \family sans
16494 オーバーレイ
16495 \family default
16496 のラベルを
16497 \family sans
16498 スライド
16499 \family default
16500 のラベルよりも下げることで,このことを視覚的に表しています.また,印刷可能な出力を生成すると,
16501 \family sans
16502 オーバーレイ
16503 \family default
16504 と親
16505 \family sans
16506 スライド
16507 \family default
16508 両方の四隅に,揃えマーカーがあることに気づかれるはずです.これは,2枚のスライドを物理的に重ね合わせるための補助となるものです.
16509 \end_layout
16510
16511 \begin_layout Standard
16512 2つのスライドをオーバーレイさせる際の大きな問題は,2枚のスライドの内容を揃えることです.2枚目のスライドのグラフには,どれだけの余白を残しておくべきなのでしょ
16513 うか?さらにややこしく,2枚目のスライドにグラフと文章を入れたいときに,その間に割り込んでしまうような文章がメインスライドにある場合には,どうでしょうか?正しい
16514 寸法の垂直スペースを挿入してみることもできるでしょう.しかし,もっと良い方法として,
16515 \family sans
16516 不可視文
16517 \family default
16518
16519 \family sans
16520 可視文
16521 \family default
16522 を使用する方法があります.
16523 \end_layout
16524
16525 \begin_layout Standard
16526 これらの名前が意味するとおり,
16527 \family sans
16528 不可視文
16529 \family default
16530
16531 \family sans
16532 可視文
16533 \family default
16534 は,それぞれ続く文章すべてを見えなくしたり見えるようにしたりするコマンド型の段落環境です.しかしながら,第
16535 \begin_inset CommandInset ref
16536 LatexCommand ref
16537 reference "sec:スライドの癖"
16538
16539 \end_inset
16540
16541 節で述べたように,この2つの環境の
16542 \emph on
16543
16544 \emph default
16545 には何も置くことができません.
16546 \family sans
16547 不可視文
16548 \family default
16549 を作成すると,「<以下不可視文>」と書かれた水色のラベルが,ページに中央揃えで表示されます.このラベルに続く段落は,それが置かれるべき
16550 \family sans
16551 スライド
16552 \family default
16553 (あるいは
16554 \family sans
16555 オーバーレイ
16556 \family default
16557 ;どちらでも同じことです)部分に,代わりに空白の部分が置かれます.
16558 \end_layout
16559
16560 \begin_layout Standard
16561
16562 \family sans
16563 可視文
16564 \family default
16565 の場合には,中央揃えのラベルは,鮮やかな緑の「<以下可視文>」となります.このラベル以降の段落は,通常通りの挙動を示します.新規の
16566 \family sans
16567 スライド
16568 \family default
16569
16570 \family sans
16571 オーバーレイ
16572 \family default
16573
16574 \family sans
16575 注釈
16576 \family default
16577 を開始すると,
16578 \family sans
16579 不可視文
16580 \family default
16581 は自動的に終了されることに注意してください.したがって,
16582 \family sans
16583 スライド
16584 \family default
16585 の終わりでは,
16586 \family sans
16587 可視文
16588 \family default
16589 を使用する必要はありません.
16590 \end_layout
16591
16592 \begin_layout Standard
16593 ここまでで,
16594 \family sans
16595 スライド
16596 \family default
16597
16598 \family sans
16599 オーバーレイ
16600 \family default
16601 上で
16602 \family sans
16603 不可視文
16604 \family default
16605
16606 \family sans
16607 可視文
16608 \family default
16609 を適切に使用して,スライドをオーバーレイさせる方法が明らかになったことと思います.
16610 \end_layout
16611
16612 \begin_layout Enumerate
16613 メインのスライドか
16614 \family sans
16615 オーバーレイ
16616 \family default
16617 かに関わらず,スライド上に現れるすべてを含んだ
16618 \family sans
16619 スライド
16620 \family default
16621 を作成します.
16622 \end_layout
16623
16624 \begin_layout Enumerate
16625
16626 \family sans
16627 オーバーレイ
16628 \family default
16629 のみに表示するすべての図や段落の前に,
16630 \family sans
16631 不可視文
16632 \family default
16633 環境を挿入し,必要ならば,
16634 \family sans
16635 オーバーレイ
16636 \family default
16637 のみの文章の後に
16638 \family sans
16639 可視文
16640 \family default
16641 環境を挿入します.
16642 \end_layout
16643
16644 \begin_layout Enumerate
16645
16646 \family sans
16647 スライド
16648 \family default
16649 の直後から,
16650 \family sans
16651 オーバーレイ
16652 \family default
16653 を開始します.
16654 \end_layout
16655
16656 \begin_layout Enumerate
16657 この
16658 \family sans
16659 スライド
16660 \family default
16661 の内容を
16662 \family sans
16663 オーバーレイ
16664 \family default
16665 にコピーします.
16666 \end_layout
16667
16668 \begin_layout Enumerate
16669
16670 \family sans
16671 オーバーレイ
16672 \family default
16673 内部の
16674 \family sans
16675 不可視文
16676 \family default
16677 行をすべて
16678 \family sans
16679 不可視文
16680 \family default
16681 に変更し,
16682 \family sans
16683 可視文
16684 \family default
16685
16686 \family sans
16687 不可視文
16688 \family default
16689 に変更します.
16690 \end_layout
16691
16692 \begin_layout Standard
16693 これだけです.これで
16694 \family sans
16695 オーバーレイ
16696 \family default
16697 ができあがりました.
16698 \end_layout
16699
16700 \begin_layout Standard
16701 \SpecialChar LyX
16702  
16703 \family sans
16704 slides
16705 \family default
16706 クラスをデザインする上で,ひとつ残された問題があります.段落途中の文章を不可視にしたり,不可視段落の途中の文章を再度可視にしたりすることはできないのです.これを
16707 実現するためには,\SpecialChar LaTeX
16708 コードを埋め込む必要があります
16709 \begin_inset Foot
16710 status collapsed
16711
16712 \begin_layout Plain Layout
16713 このコマンドは,
16714 \end_layout
16715
16716 \begin_layout Itemize
16717
16718 \family typewriter
16719 {
16720 \backslash
16721 invisible \SpecialChar ldots
16722  }
16723 \end_layout
16724
16725 \begin_layout Itemize
16726
16727 \family typewriter
16728 {
16729 \backslash
16730 visible \SpecialChar ldots
16731  }
16732 \end_layout
16733
16734 \begin_layout Plain Layout
16735 \SpecialChar ldots
16736 のような形となり,\SpecialChar TeX
16737 としてマークする必要があります.「可視性」を変更したい文章は,波括弧のあいだ(そして
16738 \family typewriter
16739
16740 \backslash
16741 invisible
16742 \family default
16743 ないし
16744 \family typewriter
16745
16746 \backslash
16747 visible
16748 \family default
16749 コマンドの後ろ)に入れます.\SpecialChar TeX
16750 としてマークする方法がわからない場合は,
16751 \emph on
16752 ユーザーの手引き
16753 \emph default
16754 をご参照ください.
16755 \end_layout
16756
16757 \end_inset
16758
16759
16760 \end_layout
16761
16762 \begin_layout Subsubsection
16763
16764 \family sans
16765 スライドで注釈を使う
16766 \family default
16767
16768 \begin_inset CommandInset label
16769 LatexCommand label
16770 name "sec:スライド注釈"
16771
16772 \end_inset
16773
16774
16775 \end_layout
16776
16777 \begin_layout Standard
16778
16779 \family sans
16780 オーバーレイ
16781 \family default
16782 と同様,
16783 \family sans
16784 注釈
16785 \family default
16786 も「親」
16787 \family sans
16788 スライド
16789 \family default
16790 に関連付けられています.ここでも\SpecialChar LyX
16791
16792 \family sans
16793 スライド
16794 \family default
16795 クラスは視覚的な効果を与えています.
16796 \family sans
16797 注釈
16798 \family default
16799 のラベルは
16800 \family sans
16801 スライド
16802 \family default
16803 よりも短く(オーバーレイのラベルよりも長いですが),
16804 \family sans
16805 オーバーレイ
16806 \family default
16807 のラベルと同様,派手な赤紫色です.加えて,印刷した
16808 \family sans
16809 注釈
16810 \family default
16811 には,「親」スライドのページ番号に「
16812 \family typewriter
16813 -
16814 \family default
16815 1」「
16816 \family typewriter
16817 -
16818 \family default
16819 2」「
16820 \family typewriter
16821 -
16822 \family default
16823 3」等を付けたページ番号が付けられます.1つの
16824 \family sans
16825 スライド
16826 \family default
16827 には,複数の
16828 \family sans
16829 注釈
16830 \family default
16831 を関連付けることができるので,
16832 \family sans
16833 スライド
16834 \family default
16835
16836 \family sans
16837 オーバーレイ
16838 \family default
16839 と同じように,長い注釈は,1枚の紙に収まるように分割したいと思われるに違いありません.
16840 \end_layout
16841
16842 \begin_layout Standard
16843
16844 \family sans
16845 注釈
16846 \family default
16847 の目的は明らかです.
16848 \family sans
16849 スライド
16850 \family default
16851 に関して付け加えたいことを書き留めておくことです.特定の
16852 \family sans
16853 スライド
16854 \family default
16855 についての覚書として使うこともできます.後者の場合には,タイムマーカを利用したいこともあるかもしれません.現在のところ,\SpecialChar LyX
16856
16857 \family sans
16858 スライド
16859 \family default
16860 クラスは,
16861 \noun on
16862 Sli
16863 \noun default
16864 \SpecialChar TeX
16865 の機能であるタイムマーカを「ネイティブには」サポートしていません.したがって,\SpecialChar LaTeX
16866 コードを使用することに頼らなくてはなりません.
16867 \end_layout
16868
16869 \begin_layout Standard
16870 タイムマーカを使用するには,クラスオプション「
16871 \family typewriter
16872 clock
16873 \family default
16874 」を追加指定する必要があります(第
16875 \begin_inset CommandInset ref
16876 LatexCommand ref
16877 reference "sec:slidesetup"
16878
16879 \end_inset
16880
16881 節参照).このオプションはタイムマーカ機能を有効にして,生成したすべての
16882 \family sans
16883 注釈
16884 \family default
16885 の左下にタイムマーカを表示します.タイムマーカに表示するものを設定するには,\SpecialChar LaTeX
16886 コマンド「
16887 \family typewriter
16888
16889 \backslash
16890 settime{}
16891 \family default
16892 」および「
16893 \family typewriter
16894
16895 \backslash
16896 addtime{}
16897 \family default
16898 」を使用します.両コマンドは,秒で測った時間を引数にとります.「
16899 \family typewriter
16900
16901 \backslash
16902 settime{}
16903 \family default
16904 」は,タイムマーカを特定の時間に設定し,「
16905 \family typewriter
16906
16907 \backslash
16908 addtime{}
16909 \family default
16910 」は,タイムマーカを指定した分だけ進めます.このようにタイムマーカと
16911 \family sans
16912 注釈
16913 \family default
16914 を用いれば,特定の
16915 \family sans
16916 スライド
16917 \family default
16918 にどれだけの時間をかけるのか忘れないでいられます.
16919 \end_layout
16920
16921 \begin_layout Standard
16922 最後に,説明しておくべき機能がもう一つあります.当然ながら,
16923 \family sans
16924 スライド
16925 \family default
16926
16927 \family sans
16928 オーバーレイ
16929 \family default
16930 はすべてスライドに,
16931 \family sans
16932 注釈
16933 \family default
16934 はすべて普通の紙に印刷したいはずです.しかしながら,
16935 \family sans
16936 注釈
16937 \family default
16938 は関連付けられた親スライドの直後に
16939 \emph on
16940 来なくてはなりません
16941 \emph default
16942 .ユーザーはどうしたら良いのでしょうか.
16943 \end_layout
16944
16945 \begin_layout Standard
16946 幸いなことに,どれを印刷するか選択することを可能にする\SpecialChar LaTeX
16947 コマンドが,2種類あります.どちらも文書のプリアンブルに記述されなくてはなりません.コマンド「
16948 \family typewriter
16949
16950 \backslash
16951 onlyslides{
16952 \backslash
16953 slides}
16954 \family default
16955 」は,出力に
16956 \family sans
16957 スライド
16958 \family default
16959
16960 \family sans
16961 オーバーレイ
16962 \family default
16963 のみが含まれるようにするものです.同様に,「
16964 \family typewriter
16965
16966 \backslash
16967 onlynotes{
16968 \backslash
16969 notes}
16970 \family default
16971 」は
16972 \family sans
16973 注釈
16974 \family default
16975 以外の出力をすべて抑制します.私のアドバイスとしては,両コマンドをプリアンブルに書いておいて,最初は両方ともコメントアウトしておくと良いでしょう.そうすれば,執
16976 筆時にはプレゼンテーション全体をプレビューすることができます.いったん書き終えたならば,二つのうち一方のコメントを外して,印刷したい方を選ぶことができます.私な
16977 らば,まず
16978 \family typewriter
16979
16980 \backslash
16981 onlyslides{
16982 \backslash
16983 slides}
16984 \family default
16985 のコメントを外して,現ファイル名に「*
16986 \family typewriter
16987 -slides
16988 \family default
16989 」を付けた新たなファイルに出力を行ない,今度はこの行をふたたびコメントアウトするとともに,「
16990 \family typewriter
16991
16992 \backslash
16993 onlynotes{
16994 \backslash
16995 notes
16996 \family default
16997 }」のコメントを外して,これを「
16998 \family typewriter
16999 *-notes.ps
17000 \family default
17001 」というファイルに出力します.そうすれば,必要に応じて,スライドまたは通常の紙をプリンタにセットし,一方のファイルをプリンタに送ればよいのです.
17002 \end_layout
17003
17004 \begin_layout Standard
17005
17006 \family typewriter
17007
17008 \backslash
17009 onlyslides{}
17010 \family default
17011 」および「
17012 \family typewriter
17013
17014 \backslash
17015 onlynotes{}
17016 \family default
17017 」コマンドには,他の引数を与えることもできます.詳しくは,\SpecialChar LaTeX
17018 の良書をご覧ください.
17019 \end_layout
17020
17021 \begin_layout Subsection
17022
17023 \family sans
17024 slides
17025 \family default
17026 クラスのひな型ファイル
17027 \end_layout
17028
17029 \begin_layout Standard
17030
17031 \family sans
17032 slides
17033 \family default
17034 クラス用のひな型ファイルとして「
17035 \family typewriter
17036 slides.lyx
17037 \family default
17038 」が提供されています.これを使用するには,新しいプレゼンテーションを作り始める際に,
17039 \family sans
17040 ファイル\SpecialChar menuseparator
17041 新規(ひな型使用)
17042 \family default
17043 メニューを選択してください.すると新規ファイルには,
17044 \family sans
17045 スライド
17046 \family default
17047
17048 \family sans
17049 オーバーレイ
17050 \family default
17051
17052 \family sans
17053 注釈
17054 \family default
17055 の組が,例として含まれており,
17056 \family sans
17057 スライド
17058 \family default
17059
17060 \family sans
17061 オーバーレイ
17062 \family default
17063 には,さらに
17064 \family sans
17065 不可視文
17066 \family default
17067
17068 \family sans
17069 可視文
17070 \family default
17071 の使用例も含まれています.また,プリアンブルには,次のように書き込まれています.
17072 \end_layout
17073
17074 \begin_layout LyX-Code
17075 % Uncomment to print out only slides and overlays
17076 \end_layout
17077
17078 \begin_layout LyX-Code
17079 %
17080 \end_layout
17081
17082 \begin_layout LyX-Code
17083 %
17084 \backslash
17085 onlyslides{
17086 \backslash
17087 slides}
17088 \begin_inset Newline newline
17089 \end_inset
17090
17091  
17092 \end_layout
17093
17094 \begin_layout LyX-Code
17095 % Uncomment to print out only notes
17096 \end_layout
17097
17098 \begin_layout LyX-Code
17099 %
17100 \end_layout
17101
17102 \begin_layout LyX-Code
17103 %
17104 \backslash
17105 onlynotes{
17106 \backslash
17107 notes}
17108 \end_layout
17109
17110 \begin_layout Standard
17111 最後に,私はこの文書クラスを,\SpecialChar LaTeX2e
17112 の組み込みクラスである「
17113 \noun on
17114 Sli\SpecialChar TeX
17115
17116 \noun default
17117 エミュレーション」クラスをサポートする目的で作成しました.私も\SpecialChar LyX
17118 チームの他のメンバーも,この組み込みスライドクラスを使用することに賛成したり反対したりするものでは
17119 ありません.これは単に,ユーザーがこれを使いたかったり必要としたりしたときのためにあるものです.プレゼンテーションを作成するためには,
17120 \family sans
17121 Foils
17122 \family default
17123 クラス(第
17124 \begin_inset CommandInset ref
17125 LatexCommand ref
17126 reference "sec:foiltex"
17127
17128 \end_inset
17129
17130 節参照)や「
17131 \family typewriter
17132 seminar
17133 \family default
17134 」パッケージ(一部の\SpecialChar TeX
17135 頒布版に含まれています)のように,他の\SpecialChar LaTeX2e
17136 クラスも存在します.私はこれらについては知らないのですが,他にどのようなことができるのか試してみてくだ
17137 さい.
17138 \end_layout
17139
17140 \begin_layout Chapter
17141 ソフトウェアを追加する必要がある \SpecialChar LyX
17142 機能
17143 \end_layout
17144
17145 \begin_layout Section
17146 \SpecialChar TeX
17147 のチェック
17148 \end_layout
17149
17150 \begin_layout Standard
17151
17152 \noun on
17153 Asger Alstrup
17154 \noun default
17155
17156 \end_layout
17157
17158 \begin_layout Subsection
17159 はじめに
17160 \end_layout
17161
17162 \begin_layout Standard
17163
17164 \family typewriter
17165 chktex
17166 \family default
17167 プログラムが導入されていると
17168 \begin_inset Foot
17169 status collapsed
17170
17171 \begin_layout Plain Layout
17172 \SpecialChar LaTeX
17173 頒布版としてMiK\SpecialChar TeX
17174 を使用している場合には,
17175 \family typewriter
17176 chktex
17177 \family default
17178 はまだ利用可能ではありません.
17179 \end_layout
17180
17181 \end_inset
17182
17183
17184 \family sans
17185 ツール
17186 \family default
17187 メニューの下に,
17188 \family sans
17189 \SpecialChar TeX
17190 構文チェック
17191 \family default
17192 という項目が表示されます.
17193 \family typewriter
17194 chktex
17195 \family default
17196 は,CTAN
17197 \begin_inset Newline newline
17198 \end_inset
17199
17200
17201 \begin_inset CommandInset href
17202 LatexCommand href
17203 target "http://www.ctan.org/tex-archive/help/Catalogue/entries/chktex.html"
17204
17205 \end_inset
17206
17207 から入手することができます.
17208 \end_layout
17209
17210 \begin_layout Standard
17211
17212 \family sans
17213 Chk\SpecialChar TeX
17214
17215 \family default
17216 パッケージは,\SpecialChar LaTeX
17217 の構成物には直感的でないものもあり,すぐ忘れてしまいがちであるのに不満を感じた
17218 \begin_inset Flex Noun
17219 status collapsed
17220
17221 \begin_layout Plain Layout
17222 Jens T.
17223  Berger Thielemann
17224 \end_layout
17225
17226 \end_inset
17227
17228 が書いたプログラムです.このプログラムは,\SpecialChar LaTeX
17229 ファイルを走査して,ファイルの整合性をチェックし,犯しがちな誤りを見つけ出します.別の技術用語では,LaTeXにおける
17230 \family typewriter
17231 lint
17232 \family default
17233 であるとも言えます.
17234 \end_layout
17235
17236 \begin_layout Standard
17237 さて,\SpecialChar LyX
17238 はつねに正しい\SpecialChar LaTeX
17239 ファイルを生成するはずなのに,文法チェッカーは\SpecialChar LyX
17240 で何をするというのでしょうか.答えは簡単です.
17241 \family typewriter
17242 lint
17243 \family default
17244 がC言語プログラムの
17245 \emph on
17246 文法
17247 \emph default
17248 をチェックするだけでなく,打ち間違いによる
17249 \emph on
17250 意味上の
17251 \emph default
17252 チェックも行うように,
17253 \family sans
17254 Chk\SpecialChar TeX
17255
17256 \family default
17257 は,文法エラーの他に犯しがちな
17258 \emph on
17259 写植上の
17260 \emph default
17261 誤りも検出してくれるからです.
17262 \family sans
17263 Chk\SpecialChar TeX
17264
17265 \family default
17266 は,以下のような誤りを検出することができます.
17267 \end_layout
17268
17269 \begin_layout Itemize
17270 省略記号の検出:
17271 \begin_inset Newline newline
17272 \end_inset
17273
17274 ...ではなく\SpecialChar ldots
17275 を使わなくてはなりません
17276 \end_layout
17277
17278 \begin_layout Itemize
17279 括弧の前後にスペースを置かない:
17280 \begin_inset Newline newline
17281 \end_inset
17282
17283 ( wrong spacing ):誤った空白
17284 \end_layout
17285
17286 \begin_layout Itemize
17287 よく使われる省略形の後ろは通常スペースにする:
17288 \begin_inset Newline newline
17289 \end_inset
17290
17291 e.
17292 \begin_inset space \thinspace{}
17293 \end_inset
17294
17295 g.
17296 \begin_inset space \space{}
17297 \end_inset
17298
17299 is too wide spacing.:広すぎる空白
17300 \end_layout
17301
17302 \begin_layout Itemize
17303 直前の文章が大文字で終わっているときに,文末スペースに直す:
17304 \begin_inset Newline newline
17305 \end_inset
17306
17307 This is a TEST.
17308  And this is wrong spacing.:誤った空白
17309 \end_layout
17310
17311 \begin_layout Itemize
17312 ラベルや類似コマンドの前のスペース:
17313 \begin_inset Newline newline
17314 \end_inset
17315
17316 ラベルが別のページに行ってしまわないように,ラベルは文章に接していなくてはなりません. 
17317 \begin_inset CommandInset label
17318 LatexCommand label
17319 name "sec:chktex"
17320
17321 \end_inset
17322
17323  
17324 \begin_inset Foot
17325 status collapsed
17326
17327 \begin_layout Plain Layout
17328 この脚注は,正しくないページに行ってしまう恐れがあります.
17329 \end_layout
17330
17331 \end_inset
17332
17333  このラベルは離れすぎです.
17334 \end_layout
17335
17336 \begin_layout Itemize
17337 参照の前にハードスペースではなくスペース:
17338 \begin_inset Newline newline
17339 \end_inset
17340
17341 運が悪ければ,参照文字列と参照番号のあいだでちょうど改行されてしまい,残念な結果となります.第
17342 \begin_inset CommandInset ref
17343 LatexCommand ref
17344 reference "sec:chktex"
17345
17346 \end_inset
17347
17348 節をご覧ください.
17349 \end_layout
17350
17351 \begin_layout Itemize
17352 数字のあいだで
17353 \begin_inset Formula $\times$
17354 \end_inset
17355
17356 ではなく「x」が使われている:
17357 \begin_inset Newline newline
17358 \end_inset
17359
17360 2x2は,
17361 \begin_inset Formula $2\times2$
17362 \end_inset
17363
17364 よりも安っぽく見えます.
17365 \end_layout
17366
17367 \begin_layout Standard
17368 などなど\SpecialChar ldots
17369
17370 \family sans
17371 Chk\SpecialChar TeX
17372
17373 \family default
17374 は,印刷する前に文書を「仕上げる」上で,たいへん価値のあるツールです.必須のスペルチェックを終えた直後,組版の微調整をする前には,これを実行するべきです.
17375 \end_layout
17376
17377 \begin_layout Subsection
17378 使いかた
17379 \end_layout
17380
17381 \begin_layout Standard
17382 このプログラムを導入したならば,使うのは
17383 \family sans
17384 ツール\SpecialChar menuseparator
17385 \SpecialChar TeX
17386 構文チェック
17387 \family default
17388 を選択するだけなので簡単です.こうすると,\SpecialChar LyX
17389 は使用中の文書の\SpecialChar LaTeX
17390 ファイルを生成して,
17391 \family sans
17392 Chk\SpecialChar TeX
17393
17394 \family default
17395 を起動し,当該ファイルを検査しますが,
17396 \family sans
17397 Chk\SpecialChar TeX
17398
17399 \family default
17400 から警告があった場合には,それを含んだ「エラーボックス」を\SpecialChar LyX
17401 中に挿入します.警告は,誤りのある箇所のそばに置かれるので,メニュー項目の
17402 \family sans
17403 移動\SpecialChar menuseparator
17404 エラー
17405 \family default
17406 を選択するか,既定の
17407 \family typewriter
17408 cua
17409 \family default
17410
17411 \begin_inset Flex Ruby
17412 status collapsed
17413
17414 \begin_layout Plain Layout
17415
17416 \begin_inset Argument post:1
17417 status collapsed
17418
17419 \begin_layout Plain Layout
17420 キー
17421 \end_layout
17422
17423 \end_inset
17424
17425
17426 \end_layout
17427
17428 \end_inset
17429
17430 設定ファイルならば
17431 \begin_inset Flex Ruby
17432 status collapsed
17433
17434 \begin_layout Plain Layout
17435
17436 \family roman
17437 \series medium
17438 \shape up
17439 \size normal
17440 \emph off
17441 \bar no
17442 \noun off
17443 \color none
17444 捷径
17445 \family default
17446 \series default
17447 \shape default
17448 \size default
17449 \emph default
17450 \bar default
17451 \noun default
17452 \color inherit
17453
17454 \begin_inset Argument post:1
17455 status collapsed
17456
17457 \begin_layout Plain Layout
17458 ショートカット
17459 \end_layout
17460
17461 \end_inset
17462
17463
17464 \end_layout
17465
17466 \end_inset
17467
17468
17469 \family sans
17470 C-g
17471 \family default
17472 を押せば,簡単に警告の箇所を見出すことができます.エラーボックスを開けるには,マウスでボックスをクリックするか,
17473 \family typewriter
17474 cua
17475 \family default
17476 鍵設定の場合には捷径鍵
17477 \family sans
17478 C-i
17479 \family default
17480
17481 \family typewriter
17482 emacs
17483 \family default
17484 鍵設定の場合は捷径鍵
17485 \family sans
17486 C-o
17487 \family default
17488 を押します.警告を読み,それが誤りを示していれば修正します.警告が何を意味しているか理解しにくい場合には,無視しても問題はありません.画面上の文書と,
17489 \family sans
17490 Chk\SpecialChar TeX
17491
17492 \family default
17493 を起動する際に行なわれる実際の技術的な操作のあいだには,隠された層があり,この隔たりのせいで,一部の警告が不可解なものになったり,明らかに馬鹿げたものになる場合
17494 があるのです.
17495 \end_layout
17496
17497 \begin_layout Standard
17498 本文書自体,この機能を確認する良い材料になりますので,実行してみてください.すると,かなりの量の警告が出るはずです.これはコンピュータが敏感すぎるせいですので,
17499 警告のほとんどは実際には警告に値しません.
17500 \end_layout
17501
17502 \begin_layout Subsection
17503 微調整のしかた
17504 \end_layout
17505
17506 \begin_layout Standard
17507 場合によっては,
17508 \family sans
17509 Chk\SpecialChar TeX
17510
17511 \family default
17512 は,あなたが望むよりも煩すぎると思うかもしれません.そのような場合には,必要と思うまで
17513 \family sans
17514 Chk\SpecialChar TeX
17515
17516 \family default
17517 を無効にするか,あなたにもう少し合うように
17518 \family sans
17519 Chk\SpecialChar TeX
17520
17521 \family default
17522 を調整することができます.
17523 \end_layout
17524
17525 \begin_layout Standard
17526
17527 \family sans
17528 Chk\SpecialChar TeX
17529
17530 \family default
17531 は調整や拡張がひじょうに柔軟なのですが,\SpecialChar LyX
17532 における
17533 \family sans
17534 Chk\SpecialChar TeX
17535
17536 \family default
17537 関連の問題が,それですべて解決すると思うべきではありません.\SpecialChar LyX
17538 は,
17539 \family sans
17540 Chk\SpecialChar TeX
17541
17542 \family default
17543 出力
17544 \begin_inset Foot
17545 status collapsed
17546
17547 \begin_layout Plain Layout
17548
17549 \family sans
17550 chktex
17551 \family default
17552 の実際の出力は,
17553 \family sans
17554 chktex
17555 \family default
17556 を実行した直後に
17557 \family sans
17558 文書\SpecialChar menuseparator
17559 \SpecialChar LaTeX
17560 ログ
17561 \family default
17562 を使えば見ることができます.
17563 \end_layout
17564
17565 \end_inset
17566
17567 から得た行番号と内部構造を一致させるため,やや特殊な\SpecialChar LaTeX
17568 ファイルを生成しなくてはならないので,警告の一部は正しく表示されていないように見えるでしょう.これに対処する
17569 ためには,以下の2つの方法があります.
17570 \end_layout
17571
17572 \begin_layout Itemize
17573
17574 \family sans
17575 \begin_inset Flex MenuItem
17576 status collapsed
17577
17578 \begin_layout Plain Layout
17579
17580 \family sans
17581 ツール\SpecialChar menuseparator
17582 設定\SpecialChar menuseparator
17583 出力\SpecialChar menuseparator
17584 \SpecialChar LaTeX
17585 \SpecialChar menuseparator
17586 Check\SpecialChar TeX
17587 コマンド
17588 \end_layout
17589
17590 \end_inset
17591
17592
17593 \family default
17594 中の
17595 \family sans
17596 Chk\SpecialChar TeX
17597
17598 \family default
17599 起動コマンドラインを調整するか,グローバルな
17600 \family sans
17601 Chk\SpecialChar TeX
17602
17603 \family default
17604 の設定ファイル(通常は
17605 \begin_inset Flex Code
17606 status collapsed
17607
17608 \begin_layout Plain Layout
17609 chktexrc
17610 \end_layout
17611
17612 \end_inset
17613
17614 ファイル)を調整します.コマンドラインからどの警告を有効・無効にできるかは以下をご覧ください.
17615 \end_layout
17616
17617 \begin_layout Itemize
17618
17619 \family sans
17620 ファイル\SpecialChar menuseparator
17621 書き出し\SpecialChar menuseparator
17622 \SpecialChar LaTeX
17623
17624 \family default
17625 を使って文書を\SpecialChar LaTeX
17626 ファイルに変換し,そのファイルに対して
17627 \family typewriter
17628 chktex
17629 \family default
17630 を手動で実行します.このようにすると,\SpecialChar LyX
17631 文書中の対応箇所を見つけるのがやや面倒ですが,少し我慢すれば見つけることができます.
17632 \end_layout
17633
17634 \begin_layout Standard
17635 以下は,
17636 \family sans
17637 設定
17638 \family default
17639 で有効化・無効化できる警告メッセージです.警告を無効にするには
17640 \family typewriter
17641 -n#
17642 \family default
17643 ,有効にするには
17644 \family typewriter
17645 -w#
17646 \family default
17647 を用います.イタリック表示の項目は,既定で無効となっています.既定値は "
17648 \family typewriter
17649 chktex -n1 -n3 -n6 -n9 -n22 -n25 -n30 -n38
17650 \family default
17651 "です.
17652 \end_layout
17653
17654 \begin_layout Standard
17655 \SpecialChar LyX
17656 は,
17657 \family typewriter
17658 chktex
17659 \family default
17660 と通信するために,他のコマンドラインパラメータを特定の方法で使用しているため,メッセージを有効化・無効化する以外のオプションを使うべきではありません.
17661 \end_layout
17662
17663 \begin_layout Enumerate
17664
17665 \size small
17666 \emph on
17667 Command terminated with space.
17668 \end_layout
17669
17670 \begin_layout Enumerate
17671
17672 \size small
17673 Non-breaking space (
17674 \begin_inset Quotes eld
17675 \end_inset
17676
17677
17678 \family typewriter
17679 ~
17680 \family default
17681
17682 \begin_inset Quotes erd
17683 \end_inset
17684
17685 ) should have been used.
17686 \end_layout
17687
17688 \begin_layout Enumerate
17689
17690 \size small
17691 \emph on
17692 You should enclose the previous parenthesis with 
17693 \begin_inset Quotes eld
17694 \end_inset
17695
17696
17697 \family typewriter
17698 {}
17699 \family default
17700
17701 \begin_inset Quotes erd
17702 \end_inset
17703
17704 .
17705 \end_layout
17706
17707 \begin_layout Enumerate
17708
17709 \size small
17710 Italic correction (
17711 \begin_inset Quotes eld
17712 \end_inset
17713
17714
17715 \family typewriter
17716
17717 \backslash
17718 /
17719 \family default
17720
17721 \begin_inset Quotes erd
17722 \end_inset
17723
17724 ) found in non-italic buffer.
17725 \end_layout
17726
17727 \begin_layout Enumerate
17728
17729 \size small
17730 Italic correction (
17731 \begin_inset Quotes eld
17732 \end_inset
17733
17734
17735 \family typewriter
17736
17737 \backslash
17738 /
17739 \family default
17740
17741 \begin_inset Quotes erd
17742 \end_inset
17743
17744 ) found more than once.
17745 \end_layout
17746
17747 \begin_layout Enumerate
17748
17749 \size small
17750 \emph on
17751 No italic correction (
17752 \begin_inset Quotes eld
17753 \end_inset
17754
17755
17756 \family typewriter
17757
17758 \backslash
17759 /
17760 \family default
17761
17762 \begin_inset Quotes erd
17763 \end_inset
17764
17765 ) found.
17766 \end_layout
17767
17768 \begin_layout Enumerate
17769
17770 \size small
17771 Accent command 
17772 \begin_inset Quotes eld
17773 \end_inset
17774
17775
17776 \family typewriter
17777 cmd
17778 \family default
17779
17780 \begin_inset Quotes erd
17781 \end_inset
17782
17783  needs use of 
17784 \begin_inset Quotes eld
17785 \end_inset
17786
17787
17788 \family typewriter
17789 cmd
17790 \family default
17791
17792 \begin_inset Quotes erd
17793 \end_inset
17794
17795 .
17796 \end_layout
17797
17798 \begin_layout Enumerate
17799
17800 \size small
17801 Wrong length of dash may have been used.
17802 \end_layout
17803
17804 \begin_layout Enumerate
17805
17806 \size small
17807 \emph on
17808 \begin_inset Quotes eld
17809 \end_inset
17810
17811
17812 \family typewriter
17813 %s
17814 \family default
17815
17816 \begin_inset Quotes erd
17817 \end_inset
17818
17819  expected, found 
17820 \begin_inset Quotes eld
17821 \end_inset
17822
17823
17824 \family typewriter
17825 %s
17826 \family default
17827
17828 \begin_inset Quotes erd
17829 \end_inset
17830
17831 .
17832 \end_layout
17833
17834 \begin_layout Enumerate
17835
17836 \size small
17837 Solo 
17838 \begin_inset Quotes eld
17839 \end_inset
17840
17841
17842 \family typewriter
17843 %s
17844 \family default
17845
17846 \begin_inset Quotes erd
17847 \end_inset
17848
17849  found.
17850 \end_layout
17851
17852 \begin_layout Enumerate
17853
17854 \size small
17855 You should use 
17856 \begin_inset Quotes eld
17857 \end_inset
17858
17859
17860 \family typewriter
17861 %s
17862 \family default
17863
17864 \begin_inset Quotes erd
17865 \end_inset
17866
17867  to achieve an ellipsis.
17868 \end_layout
17869
17870 \begin_layout Enumerate
17871
17872 \size small
17873 Inter-word spacing (
17874 \begin_inset Quotes eld
17875 \end_inset
17876
17877
17878 \family typewriter
17879
17880 \backslash
17881
17882 \family default
17883  
17884 \begin_inset Quotes eld
17885 \end_inset
17886
17887 ) should perhaps be used.
17888 \end_layout
17889
17890 \begin_layout Enumerate
17891
17892 \size small
17893 Inter-sentence spacing (
17894 \begin_inset Quotes eld
17895 \end_inset
17896
17897
17898 \family typewriter
17899
17900 \backslash
17901 @
17902 \family default
17903
17904 \begin_inset Quotes erd
17905 \end_inset
17906
17907 ) should perhaps be used.
17908 \end_layout
17909
17910 \begin_layout Enumerate
17911
17912 \size small
17913 Could not find argument for command.
17914 \end_layout
17915
17916 \begin_layout Enumerate
17917
17918 \size small
17919 No match found for 
17920 \begin_inset Quotes eld
17921 \end_inset
17922
17923
17924 \family typewriter
17925 %s
17926 \family default
17927
17928 \begin_inset Quotes erd
17929 \end_inset
17930
17931 .
17932 \end_layout
17933
17934 \begin_layout Enumerate
17935
17936 \size small
17937 Math mode still on at end of \SpecialChar LaTeX
17938  file.
17939 \end_layout
17940
17941 \begin_layout Enumerate
17942
17943 \size small
17944 Number of 
17945 \begin_inset Quotes eld
17946 \end_inset
17947
17948
17949 \family typewriter
17950 char
17951 \family default
17952
17953 \begin_inset Quotes erd
17954 \end_inset
17955
17956  doesn't match the number of 
17957 \begin_inset Quotes eld
17958 \end_inset
17959
17960
17961 \family typewriter
17962 char
17963 \family default
17964
17965 \begin_inset Quotes erd
17966 \end_inset
17967
17968 .
17969 \end_layout
17970
17971 \begin_layout Enumerate
17972
17973 \size small
17974 You should use either 
17975 \family typewriter
17976
17977 \begin_inset Quotes eld
17978 \end_inset
17979
17980
17981 \family default
17982  or 
17983 \family typewriter
17984
17985 \begin_inset Quotes erd
17986 \end_inset
17987
17988
17989 \family default
17990  as an alternative to 
17991 \begin_inset Quotes eld
17992 \end_inset
17993
17994
17995 \family typewriter
17996 "
17997 \family default
17998
17999 \begin_inset Quotes erd
18000 \end_inset
18001
18002 .
18003 \end_layout
18004
18005 \begin_layout Enumerate
18006
18007 \size small
18008 You should use "
18009 \family typewriter
18010 '
18011 \family default
18012 " (ASCII 39) instead of "" (ASCII 180).
18013 \end_layout
18014
18015 \begin_layout Enumerate
18016
18017 \size small
18018 User-specified pattern found.
18019 \end_layout
18020
18021 \begin_layout Enumerate
18022
18023 \size small
18024 This command might not be intended.
18025 \end_layout
18026
18027 \begin_layout Enumerate
18028
18029 \size small
18030 \emph on
18031 Comment displayed.
18032 \end_layout
18033
18034 \begin_layout Enumerate
18035
18036 \size small
18037 Either 
18038 \family typewriter
18039 ''
18040 \backslash
18041 ,'
18042 \family default
18043  or 
18044 \family typewriter
18045 '
18046 \backslash
18047 ,''
18048 \family default
18049  will look better.
18050 \end_layout
18051
18052 \begin_layout Enumerate
18053
18054 \size small
18055 Delete this space to maintain correct page references.
18056 \end_layout
18057
18058 \begin_layout Enumerate
18059
18060 \size small
18061 \emph on
18062 You might wish to put this between a pair of 
18063 \begin_inset Quotes eld
18064 \end_inset
18065
18066
18067 \family typewriter
18068 {}
18069 \family default
18070
18071 \begin_inset Quotes erd
18072 \end_inset
18073
18074 .
18075 \end_layout
18076
18077 \begin_layout Enumerate
18078
18079 \size small
18080 You ought to remove spaces in front of punctuation.
18081 \end_layout
18082
18083 \begin_layout Enumerate
18084
18085 \size small
18086 Could not execute \SpecialChar LaTeX
18087  command.
18088 \end_layout
18089
18090 \begin_layout Enumerate
18091
18092 \size small
18093 Don't use 
18094 \family typewriter
18095
18096 \backslash
18097 /
18098 \family default
18099  in front of small punctuation.
18100 \end_layout
18101
18102 \begin_layout Enumerate
18103
18104 \family typewriter
18105 \size small
18106 $
18107 \backslash
18108 times$
18109 \family default
18110  may look prettier here.
18111 \end_layout
18112
18113 \begin_layout Enumerate
18114
18115 \size small
18116 \emph on
18117 Multiple spaces detected in output.
18118 \end_layout
18119
18120 \begin_layout Enumerate
18121
18122 \size small
18123 This text may be ignored.
18124 \end_layout
18125
18126 \begin_layout Enumerate
18127
18128 \size small
18129 Use 
18130 \family typewriter
18131
18132 \begin_inset Quotes eld
18133 \end_inset
18134
18135
18136 \family default
18137  to begin quotation, not 
18138 \family typewriter
18139 '
18140 \family default
18141 .
18142 \end_layout
18143
18144 \begin_layout Enumerate
18145
18146 \size small
18147 Use 
18148 \family typewriter
18149 '
18150 \family default
18151  to end quotation, not 
18152 \family typewriter
18153
18154 \begin_inset Quotes eld
18155 \end_inset
18156
18157
18158 \family default
18159 .
18160 \end_layout
18161
18162 \begin_layout Enumerate
18163
18164 \size small
18165 Don't mix quotes.
18166 \end_layout
18167
18168 \begin_layout Enumerate
18169
18170 \size small
18171 You should perhaps use 
18172 \begin_inset Quotes eld
18173 \end_inset
18174
18175
18176 \family typewriter
18177 cmd
18178 \family default
18179
18180 \begin_inset Quotes erd
18181 \end_inset
18182
18183  instead.
18184 \end_layout
18185
18186 \begin_layout Enumerate
18187
18188 \size small
18189 You should put a space in front of/after parenthesis.
18190 \end_layout
18191
18192 \begin_layout Enumerate
18193
18194 \size small
18195 You should avoid spaces in front of/after parenthesis.
18196 \end_layout
18197
18198 \begin_layout Enumerate
18199
18200 \size small
18201 \emph on
18202 You should not use punctuation in front of/after quotes.
18203 \end_layout
18204
18205 \begin_layout Enumerate
18206
18207 \size small
18208 Double space found.
18209 \end_layout
18210
18211 \begin_layout Enumerate
18212
18213 \size small
18214 You should put punctuation outside inner/inside display math mode.
18215 \end_layout
18216
18217 \begin_layout Enumerate
18218
18219 \size small
18220 You ought to not use primitive \SpecialChar TeX
18221  in \SpecialChar LaTeX
18222  code.
18223 \end_layout
18224
18225 \begin_layout Enumerate
18226
18227 \size small
18228 You should remove spaces in front of 
18229 \begin_inset Quotes eld
18230 \end_inset
18231
18232
18233 \family typewriter
18234 %s
18235 \family default
18236
18237 \begin_inset Quotes erd
18238 \end_inset
18239
18240
18241 \end_layout
18242
18243 \begin_layout Enumerate
18244
18245 \size small
18246 \begin_inset Quotes eld
18247 \end_inset
18248
18249
18250 \family typewriter
18251 %s
18252 \family default
18253
18254 \begin_inset Quotes erd
18255 \end_inset
18256
18257  is normally not followed by 
18258 \begin_inset Quotes eld
18259 \end_inset
18260
18261
18262 \family typewriter
18263 %c
18264 \family default
18265
18266 \begin_inset Quotes erd
18267 \end_inset
18268
18269 .
18270 \end_layout
18271
18272 \begin_layout Standard
18273 \SpecialChar LyX
18274 の将来の版では,このツール(およびその縮小版
18275 \family typewriter
18276 lacheck
18277 \family default
18278 )の力を最大限引き出すように,より完備したインターフェイスを提供できればと考えています.しかし,現状でも十分に役立つものとなっています.ある程度長さがある既存文
18279 書に使用してみていただければ,きっと驚かれることでしょう.
18280 \end_layout
18281
18282 \begin_layout Section
18283 \SpecialChar LyX
18284 でのバージョン管理
18285 \end_layout
18286
18287 \begin_layout Standard
18288
18289 \noun on
18290 Lars Bullik Bjønnes
18291 \noun default
18292 および
18293 \noun on
18294 Pavel Sanda
18295 \noun default
18296
18297 \end_layout
18298
18299 \begin_layout Subsection
18300 はじめに
18301 \end_layout
18302
18303 \begin_layout Standard
18304 \SpecialChar LyX
18305 は,今ではもっとも基本的なRCS/CVS/SVN/GITコマンドをサポートしています.もしもっと洗練されたことを行いたい場合には,ターミナル上から手動で行う必要
18306 があります.
18307 \end_layout
18308
18309 \begin_layout Standard
18310 また,CVSのサポートは,subversionのサポートほど良くないので,CVSよりもSVNを使うことをお勧めします.Subversionを学び始めるには,SV
18311 N Book
18312 \begin_inset Foot
18313 status collapsed
18314
18315 \begin_layout Plain Layout
18316 \begin_inset CommandInset href
18317 LatexCommand href
18318 target "http://svnbook.red-bean.com/"
18319
18320 \end_inset
18321
18322
18323 \end_layout
18324
18325 \end_inset
18326
18327 が良いでしょう.RCSの場合は,「rsintro」をお読みください(これはmanファイルです.
18328 \family typewriter
18329 man rcsintro
18330 \family default
18331 で読めます).このファイルは,RCSの基本機能のすべてを説明しています.特に,RCSディレクトリに関するコメントと,マスターRCSファイル(
18332 \family typewriter
18333 ,v
18334 \family default
18335 で終わるファイルです)の概念に注意を払ってください.
18336 \end_layout
18337
18338 \begin_layout Standard
18339 \SpecialChar LyX
18340 で実際にバージョン管理機能を使い始める前に,RCS/CVS/SVN/GITの使用法に習熟しておかなくてはなりません.\SpecialChar LyX
18341 で\SpecialChar LyX
18342 への実装においては,GNU
18343  RCSまたはCVS/SVNパッケージの最新版を仮定しています.旧版への保証はありません.ログメッセージのほとんどは,現在のところ操作後には表示されません.確認
18344 したい場合には,メッセージ面で確かめてください.バージョン管理を常用するユーザーには,VCツールバーが便利でしょう.これは
18345 \family sans
18346 表示\SpecialChar menuseparator
18347 ツールバー\SpecialChar menuseparator
18348 バージョン管理
18349 \family default
18350 で有効にできます.
18351 \end_layout
18352
18353 \begin_layout Standard
18354 自製の外部コマンドを導入したい場合には,\SpecialChar LyX
18355 関数説明書のvcコマンドを確認してください.
18356 \end_layout
18357
18358 \begin_layout Standard
18359 バージョン管理機能を使用している場合には,文書を非圧縮形式で保存をすることを強く推奨します(
18360 \family sans
18361 文書\SpecialChar menuseparator
18362 圧縮
18363 \family default
18364 にチェックが入っていれば外してください).非圧縮LyX文書はテキストファイルであるため,バージョン管理システムが,二つのバージョンをマージすることができます.一
18365 方,圧縮LyXファイルはバイナリファイルであるため,バージョン管理システムはマージすることができません.
18366 \end_layout
18367
18368 \begin_layout Subsection
18369 \SpecialChar LyX
18370 におけるRCSコマンド
18371 \end_layout
18372
18373 \begin_layout Standard
18374 以下の節では\SpecialChar LyX
18375 でサポートされているRCSコマンドを説明します.それらのコマンドは
18376 \family sans
18377 ファイル\SpecialChar menuseparator
18378 バージョン管理
18379 \family default
18380 のサブメニューにあります.\SpecialChar LyX
18381 は,RCS 5.7/5.8に対して試験されています.
18382 \end_layout
18383
18384 \begin_layout Subsubsection
18385
18386 \family sans
18387 登録
18388 \end_layout
18389
18390 \begin_layout Standard
18391 文書がバージョン管理の下にない場合には,これがメニューにあらわれる唯一の項目です.文書がバージョン管理下にあれば,項目
18392 \family sans
18393 登録
18394 \family default
18395 は不可視になります.
18396 \end_layout
18397
18398 \begin_layout Standard
18399 このコマンドは,文書をRCSに登録します(CVSが管理しているディレクトリ下にない場合).すると対話的に,文書の最初の説明を入力するように尋ねられます.すると文
18400 書は読み込み専用モードになるので,変更を加えるためには
18401 \family sans
18402 チェックアウトして編集
18403 \family default
18404 を実行する必要があります.バージョン管理下にある文書は,ミニバッファのファイル名の後ろに「 [RCS:<バージョン> <ロック>]」という項目が表示されます.
18405 \end_layout
18406
18407 \begin_layout Standard
18408 実行されるRCSコマンドは:
18409 \family typewriter
18410
18411 \begin_inset Newline newline
18412 \end_inset
18413
18414 ci -q -u -i -t-"<初期説明文>" <ファイル名>
18415 \end_layout
18416
18417 \begin_layout Standard
18418 スイッチについて知りたい場合は,
18419 \family typewriter
18420 man ci
18421 \family default
18422 を読んでください.
18423 \end_layout
18424
18425 \begin_layout Subsubsection
18426
18427 \family sans
18428 変更をチェックインする
18429 \end_layout
18430
18431 \begin_layout Standard
18432 ファイルの編集が終わると,その変更をチェックインします.このとき,変更についての説明文を求められます.これは履歴ログに記録されます.バージョン番号は繰り上がり,
18433 変更がマスターRCSファイルに適用され,文書がアンロックされて読み込み専用モードになります.
18434 \end_layout
18435
18436 \begin_layout Standard
18437 RCSコマンド:
18438 \family typewriter
18439 ci -q -u -m"<説明文>" <ファイル名>
18440 \end_layout
18441
18442 \begin_layout Subsubsection
18443
18444 \family sans
18445 チェックアウトして編集
18446 \end_layout
18447
18448 \begin_layout Standard
18449 これは,文書をロックして編集できるようにします.そしてあなただけが文書を読み書きできるようにします.通常は,しばらくの間,文書を編集し,それが終わると変更をチェ
18450 ックインします.あなたがファイルをロックしたことを反映して,ステータスラインが変わります.
18451 \end_layout
18452
18453 \begin_layout Standard
18454 RCSコマンド:
18455 \family typewriter
18456 co -q -l <ファイル名>
18457 \end_layout
18458
18459 \begin_layout Subsubsection
18460
18461 \family sans
18462 リポジトリのバージョンに戻す
18463 \end_layout
18464
18465 \begin_layout Standard
18466 これは,最終チェックイン以降,文書に加えられた変更をすべて破棄します.変更が破棄される前に,警告が発せられます.
18467 \end_layout
18468
18469 \begin_layout Standard
18470 RCSコマンド:
18471 \family typewriter
18472 co -f -u<バージョン> <ファイル名>
18473 \end_layout
18474
18475 \begin_layout Subsubsection
18476
18477 \family sans
18478 コピー
18479 \end_layout
18480
18481 \begin_layout Standard
18482 これは,現行文書のコピーを生成します.RCSは,コピー操作を自前ではサポートしませんので,バージョン履歴には保存されず,新コピーは新規ファイルとして追加されます
18483 .最後のチェックイン以降,変更が加えられていないサラの文書であることが要求されます.ファイル名とコピー操作の説明を入力するように促され,その後,新コピーがローカ
18484 ルとリポジトリの両方に生成されます.コピーされた文書と元の文書の親ディレクトリが異なる場合には,コピーにインクルードされたファイルの相対パスは,(
18485 \family sans
18486 ファイル\SpecialChar menuseparator
18487 名前をつけて保存\SpecialChar ldots
18488
18489 \family default
18490 と同様に)全て調整されます.最後に,元の文書の代わりに,コピーされたファイルが読み込まれます.
18491 \end_layout
18492
18493 \begin_layout Labeling
18494 \labelwidthstring 00.00.0000
18495 RCSコマンド:
18496 \begin_inset Flex Code
18497 status collapsed
18498
18499 \begin_layout Plain Layout
18500 "ファイル名"
18501 \end_layout
18502
18503 \end_inset
18504
18505
18506 \family typewriter
18507 "新ファイル名"
18508 \family default
18509 にコピーする場合
18510 \end_layout
18511
18512 \begin_layout Labeling
18513 \labelwidthstring 00.00.0000
18514 \begin_inset Flex Code
18515 status collapsed
18516
18517 \begin_layout Plain Layout
18518 ci -q -u -i "<新ファイル名>"
18519 \end_layout
18520
18521 \end_inset
18522
18523
18524 \end_layout
18525
18526 \begin_layout Subsubsection
18527
18528 \family sans
18529 最後のチェックインを取り消す
18530 \end_layout
18531
18532 \begin_layout Standard
18533 これは,最後のチェックインがあたかも為されなかったかのようにします.\SpecialChar LyX
18534 に読み込まれた文書に変更は加えられませんが,マスターRCSファイルから最後のバージョンが削除
18535 されます.
18536 \end_layout
18537
18538 \begin_layout Standard
18539 RCSコマンド:
18540 \family typewriter
18541 rcs -o<バージョン> <ファイル名>
18542 \end_layout
18543
18544 \begin_layout Subsubsection
18545
18546 \family sans
18547 履歴を表示
18548 \end_layout
18549
18550 \begin_layout Standard
18551 RCS文書の完全な履歴を表示します.ブラウザ中に,
18552 \family typewriter
18553 rlog <ファイル名>
18554 \family default
18555 の出力が表示されます.詳細は
18556 \family typewriter
18557 man rlog
18558 \family default
18559 をご覧ください.
18560 \end_layout
18561
18562 \begin_layout Subsubsection
18563 改訂情報
18564 \end_layout
18565
18566 \begin_layout Standard
18567 \SpecialChar LyX
18568 は,RCSバージョン番号情報(のみ)をサポートしています.詳細については,
18569 \begin_inset CommandInset ref
18570 LatexCommand ref
18571 reference "subsec:VCS改訂情報"
18572
18573 \end_inset
18574
18575 を参照.
18576 \end_layout
18577
18578 \begin_layout Subsection
18579 \SpecialChar LyX
18580 におけるCVSコマンド
18581 \end_layout
18582
18583 \begin_layout Standard
18584 \SpecialChar LyX
18585 は,現在CVSを一部サポートしています.そのコマンドは,
18586 \family sans
18587 ファイル\SpecialChar menuseparator
18588 バージョン管理
18589 \family default
18590 サブメニューにあります.バージョン管理システムSVNの方が強力なので,可能ならばCVSではなく,SVNを使用してください.
18591 \end_layout
18592
18593 \begin_layout Subsubsection
18594 CVSの一般的な利用法
18595 \end_layout
18596
18597 \begin_layout Standard
18598 CVSを初めて使いたい場合には,外部ツールを使用して自分のレポジトリを作成し,作業コピーをチェックアウトする必要があります.クライアント=サーバーモデルを使用し
18599 ている場合には,最初のレポジトリチェックアウトを行う前にログインする必要があるかもしれません.
18600 \end_layout
18601
18602 \begin_layout Standard
18603 改訂管理下にある文書のレポジトリを他人も利用している場合に,同一文書の同一箇所に別々の変更を加えてしまうと問題が発生します.標準的なCVSレポジトリは,ファイル
18604 ロッキング機構を有しません.これは驚くべきことかもしれませんが,コンフリクトは,文書の同じ箇所の特定の内容について,人々が意見を異にしている場合にのみ発生します
18605 .したがって,共著者同士がコンスタントにコミュニケーションを交わしていれば,このようなコンフリクトは滅多に発生しません.もしコミュニケーションがなければ,いずれ
18606 にしても根本的な問題があるわけです.それにもかかわらず,いわゆる「予備付きチェックアウト」を使用したいと思う人々もいます.この場合,最初にチェックアウトした際に
18607 ,全ファイルの作業コピーは読み込み専用にされ,ユーザーは,作業コピーを書き込み可能にする特別なコマンドを使用した後,編集を開始することになります.変更をチェック
18608 インすると,作業コピーは読み込み専用状態に戻ります.\SpecialChar LyX
18609 で予備付きチェックアウトを利用したい場合には,
18610 \begin_inset Flex Code
18611 status collapsed
18612
18613 \begin_layout Plain Layout
18614 .cvsrc
18615 \end_layout
18616
18617 \end_inset
18618
18619 ファイルを編集して,
18620 \begin_inset Flex Code
18621 status collapsed
18622
18623 \begin_layout Plain Layout
18624 cvs -r
18625 \end_layout
18626
18627 \end_inset
18628
18629 という行を書き加える必要があります.この方法の利点は,文書のうち,書き込み可能コピーを誰が使用しているかを見ることができることです.ただし,一人のユーザーだけが
18630 コピーを書き込み可能にしているとは限りません.
18631 \end_layout
18632
18633 \begin_layout Standard
18634 \SpecialChar LyX
18635 は,あなたが予備付きチェックアウトを使用しているか,予備なしチェックアウトを利用しているか,推測しようと試みます.使用中の作業コピーが読み込み専用になっているか
18636 ,あるいはそれが書き込み可能であって,CVS/Baseサブディレクトリに使用中文書のコピーが存在している場合には,予備付きチェックアウトを使用しているものと仮定
18637 し,そうでない場合には予備なしチェックアウトを使用しているものと仮定します.予備付きチェックアウトが検出された場合には,作業コピーが読み込み専用の場合に書き込み
18638 可能にするためには,
18639 \begin_inset Flex MenuItem
18640 status collapsed
18641
18642 \begin_layout Plain Layout
18643 チェックアウト
18644 \end_layout
18645
18646 \end_inset
18647
18648 メニューを使用しなくてはなりません.その後,
18649 \begin_inset Flex MenuItem
18650 status collapsed
18651
18652 \begin_layout Plain Layout
18653 チェックイン
18654 \end_layout
18655
18656 \end_inset
18657
18658 メニューが利用可能になるので,自分が加えた変更をリポジトリに移した後,作業コピーを再び読み込み専用にする際には,これを使用します.
18659 \end_layout
18660
18661 \begin_layout Standard
18662 CVSの詳細な情報は,
18663 \begin_inset Flex URL
18664 status collapsed
18665
18666 \begin_layout Plain Layout
18667
18668 http://www.nongnu.org/cvs
18669 \end_layout
18670
18671 \end_inset
18672
18673
18674 \begin_inset Flex URL
18675 status collapsed
18676
18677 \begin_layout Plain Layout
18678
18679 http://ximbiot.com/cvs
18680 \end_layout
18681
18682 \end_inset
18683
18684 にあります.
18685 \end_layout
18686
18687 \begin_layout Standard
18688 以下に言及するサブコマンドとスイッチを理解するには,
18689 \family typewriter
18690 man cvs
18691 \family default
18692 をお読みください.
18693 \end_layout
18694
18695 \begin_layout Subsubsection
18696 登録
18697 \end_layout
18698
18699 \begin_layout Standard
18700 お使いの文書が改訂管理下に置かれていなければ,メニューにはこの項目だけが表示されます.もし改訂管理が有効ならば,
18701 \family sans
18702 登録
18703 \family default
18704 項目は表示されません.
18705 \end_layout
18706
18707 \begin_layout Standard
18708 本コマンドは,既に文書ディレクトリをCVS管理下に置いている場合に
18709 \series bold
18710 \emph on
18711 のみ
18712 \series default
18713 \emph default
18714 (すなわち
18715 \begin_inset Flex Code
18716 status collapsed
18717
18718 \begin_layout Plain Layout
18719 CVS/Entries
18720 \end_layout
18721
18722 \end_inset
18723
18724 ファイルが存在する場合にのみ),お使いの文書をCVSに登録します.つまり,外部ツールを使用して,アーカイブを自分で作成ないしチェックアウトしなくてはならないこと
18725 を意味します(このステップを忘れてしまうと,\SpecialChar LyX
18726 は文書をRCSに登録します).
18727 \end_layout
18728
18729 \begin_layout Standard
18730 すると,文書の最初の説明文を入力するように促されます.登録したファイルは,まだチェックインされたわけではないことに注意してください.
18731 \end_layout
18732
18733 \begin_layout Standard
18734 実行されるCVSコマンドは,
18735 \family typewriter
18736 cvs -q add -m"<入力した説明文>" "<ファイル名>"
18737 \family default
18738  です.
18739 \end_layout
18740
18741 \begin_layout Standard
18742 上記および他のすべてのCVSコマンドにおける
18743 \family typewriter
18744 "<ファイル名>"
18745 \family default
18746 は,「カレント作業ディレクトリをファイルの場所に移動し,パスコンポーネントを除いたファイル名を引数として使用する」という意味になります.
18747 \end_layout
18748
18749 \begin_layout Subsubsection
18750 変更のチェックイン
18751 \end_layout
18752
18753 \begin_layout Standard
18754 ファイルの編集を終えたら,変更をコミットします.このとき,文書に変更が加えられていれば,変更の説明文を入れるよう促されます.その後,変更がレポジトリに書き込まれ
18755 ます.文書を変更せず,予備付きチェックアウトが検出された場合,
18756 \begin_inset Flex MenuItem
18757 status collapsed
18758
18759 \begin_layout Plain Layout
18760 チェックアウト
18761 \end_layout
18762
18763 \end_inset
18764
18765 で作られた予備は取り消されます.
18766 \end_layout
18767
18768 \begin_layout Labeling
18769 \labelwidthstring 00.00.0000
18770 CVSコマンド: 
18771 \begin_inset space ~
18772 \end_inset
18773
18774
18775 \begin_inset Newline newline
18776 \end_inset
18777
18778
18779 \begin_inset Flex Code
18780 status collapsed
18781
18782 \begin_layout Plain Layout
18783 cvs -q commit -m"<入力した説明文>" "<ファイル名>"
18784 \end_layout
18785
18786 \end_inset
18787
18788 あるいは
18789 \begin_inset Newline newline
18790 \end_inset
18791
18792
18793 \begin_inset Flex Code
18794 status collapsed
18795
18796 \begin_layout Plain Layout
18797 cvs -q unedit "<ファイル名>"
18798 \end_layout
18799
18800 \end_inset
18801
18802
18803 \end_layout
18804
18805 \begin_layout Subsubsection
18806 変更のチェックアウト
18807 \end_layout
18808
18809 \begin_layout Standard
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 edit "<ファイル名>"
18827 \end_layout
18828
18829 \begin_layout Subsubsection
18830 レポジトリ版に戻す
18831 \end_layout
18832
18833 \begin_layout Standard
18834 これは,最後のチェックイン以降,文書に加えられた変更をすべて廃棄します.変更が廃棄される前に警告が表示されます.最初にファイルが削除され,次にCVS更新コマンド
18835 が実行されます.
18836 \end_layout
18837
18838 \begin_layout Standard
18839 CVSコマンド:
18840 \family typewriter
18841 cvs -q update "<ファイル名>"
18842 \end_layout
18843
18844 \begin_layout Standard
18845 予備付きチェックアウトが検出され,作業コピーに変更がない場合,予備のみが取り消されます.
18846 \end_layout
18847
18848 \begin_layout Standard
18849 CVSコマンド:
18850 \family typewriter
18851 cvs -q unedit "<ファイル名>"
18852 \end_layout
18853
18854 \begin_layout Subsubsection
18855
18856 \family sans
18857 コピー
18858 \end_layout
18859
18860 \begin_layout Standard
18861 これは,現行文書のコピーを生成します.CVSは,コピー操作を自前ではサポートしませんので,バージョン履歴には保存されず,新コピーは新規ファイルとして追加されます
18862 .最後のチェックイン以降,変更が加えられていないサラの文書であることが要求されます.ファイル名とコピー操作の説明を入力するように促され,その後,新コピーがローカ
18863 ルとリポジトリの両方に生成されます.コピーされた文書と元の文書の親ディレクトリが異なる場合には,コピーにインクルードされたファイルの相対パスは,(
18864 \family sans
18865 ファイル\SpecialChar menuseparator
18866 名前をつけて保存\SpecialChar ldots
18867
18868 \family default
18869 と同様に)全て調整されます.最後に,元の文書の代わりに,コピーされたファイルが読み込まれます.
18870 \end_layout
18871
18872 \begin_layout Labeling
18873 \labelwidthstring 00.00.0000
18874 CVSコマンド:
18875 \end_layout
18876
18877 \begin_layout Labeling
18878 \labelwidthstring 00.00.0000
18879 \begin_inset Flex Code
18880 status collapsed
18881
18882 \begin_layout Plain Layout
18883 "ファイル名"
18884 \end_layout
18885
18886 \end_inset
18887
18888
18889 \begin_inset Flex Code
18890 status collapsed
18891
18892 \begin_layout Plain Layout
18893 "新ファイル名"
18894 \end_layout
18895
18896 \end_inset
18897
18898 にコピーする場合
18899 \end_layout
18900
18901 \begin_layout Labeling
18902 \labelwidthstring 00.00.0000
18903 \begin_inset Flex Code
18904 status collapsed
18905
18906 \begin_layout Plain Layout
18907 cvs -q add "<新ファイル名>"
18908 \end_layout
18909
18910 \end_inset
18911
18912
18913 \end_layout
18914
18915 \begin_layout Subsubsection
18916 ファイル名変更
18917 \end_layout
18918
18919 \begin_layout Standard
18920 これは,現行文書のファイル名を変更します.CVSは,ファイル名変更操作を自前ではサポートしませんので,バージョン履歴には保存されず,名称変更後のファイルは,新規
18921 ファイルとして追加されます.最後のチェックイン以降,変更が加えられていないサラの文書であることが要求されます.ファイル名とコピー操作の説明を入力するように促され
18922 ,その後,ローカルとリポジトリの両方でファイル名が変更されます.新旧ファイル名の文書の親ディレクトリが異なる場合には,コピーにインクルードされたファイルの相対パ
18923 スは,(
18924 \family sans
18925 ファイル\SpecialChar menuseparator
18926 名前をつけて保存\SpecialChar ldots
18927
18928 \family default
18929 と同様に)全て調整されます.最後に,新ファイル名を使ってファイルが再度読み込まれます.
18930 \end_layout
18931
18932 \begin_layout Labeling
18933 \labelwidthstring 00.00.0000
18934 CVSコマンド:
18935 \end_layout
18936
18937 \begin_layout Labeling
18938 \labelwidthstring 00.00.0000
18939 \begin_inset Flex Code
18940 status collapsed
18941
18942 \begin_layout Plain Layout
18943 "ファイル名"
18944 \end_layout
18945
18946 \end_inset
18947
18948
18949 \begin_inset Flex Code
18950 status collapsed
18951
18952 \begin_layout Plain Layout
18953 "新ファイル名"
18954 \end_layout
18955
18956 \end_inset
18957
18958 に変更する場合
18959 \end_layout
18960
18961 \begin_layout Labeling
18962 \labelwidthstring 00.00.0000
18963 \begin_inset Flex Code
18964 status collapsed
18965
18966 \begin_layout Plain Layout
18967 cvs -q add "<新ファイル名>"
18968 \end_layout
18969
18970 \end_inset
18971
18972
18973 \end_layout
18974
18975 \begin_layout Labeling
18976 \labelwidthstring 00.00.0000
18977 \begin_inset Flex Code
18978 status collapsed
18979
18980 \begin_layout Plain Layout
18981 cvs -q remove "<ファイル名>"
18982 \end_layout
18983
18984 \end_inset
18985
18986
18987 \end_layout
18988
18989 \begin_layout Subsubsection
18990 ローカルディレクトリチェックアウトのレポジトリからの更新
18991 \end_layout
18992
18993 \begin_layout Standard
18994 子文書や図を含んだり,外部
18995 \begin_inset Flex Code
18996 status collapsed
18997
18998 \begin_layout Plain Layout
18999 .tex
19000 \end_layout
19001
19002 \end_inset
19003
19004 ファイルを取り込むなど,文書が複雑になるにつれ,バージョン管理の利用は複雑になります.\SpecialChar LyX
19005 は,文書が存在するツリー全体の更新をサポートします.これは,CVSの使用法
19006 について詳しい知識のない人々や,レポジトリに追加素材をコミットする野望のない人々と共同作業をするような場合に,特に便利です.ファイル構造は,すべての外部ファイル
19007 が,文書と同じディレクトリかそのサブディレクトリに来るように組織する必要があります.いずれにしても,複合文書を新しいディレクトリを建てて収容するのは,望ましい習
19008 慣です.
19009 \end_layout
19010
19011 \begin_layout Standard
19012 コマンド
19013 \begin_inset Flex Code
19014 status collapsed
19015
19016 \begin_layout Plain Layout
19017 レポジトリを使ってローカル辞書を更新
19018 \end_layout
19019
19020 \end_inset
19021
19022 は,ディレクトリ全体を更新します.ローカルの変更が検出された場合には,更新を開始する前にユーザーに警告が発せられます.マージコンフリクトが発生した場合には,コン
19023 フリクトを起こしている部分の新旧バージョンが,両方とも最終文書に置かれますので,マージの結果を見直し,修正する必要があります.コンフリクトは,
19024 \begin_inset Flex Code
19025 status collapsed
19026
19027 \begin_layout Plain Layout
19028 <<<<<<<
19029 \end_layout
19030
19031 \end_inset
19032
19033
19034 \begin_inset Flex Code
19035 status collapsed
19036
19037 \begin_layout Plain Layout
19038 >>>>>>>
19039 \end_layout
19040
19041 \end_inset
19042
19043 の対に囲まれ,
19044 \begin_inset Flex Code
19045 status collapsed
19046
19047 \begin_layout Plain Layout
19048 =======
19049 \end_layout
19050
19051 \end_inset
19052
19053 で区切られて表示されます.最初の部分は,文書名に続いて,更新操作前のバージョンが置かれています.第2の部分は,
19054 \begin_inset Flex Code
19055 status collapsed
19056
19057 \begin_layout Plain Layout
19058 >
19059 \end_layout
19060
19061 \end_inset
19062
19063 記号列の後にバージョン番号に続いて,レポジトリ版が置かれます.
19064 \end_layout
19065
19066 \begin_layout Labeling
19067 \labelwidthstring 00.00.0000
19068 CVSコマンド: 
19069 \begin_inset space ~
19070 \end_inset
19071
19072
19073 \begin_inset Newline newline
19074 \end_inset
19075
19076
19077 \begin_inset Flex Code
19078 status collapsed
19079
19080 \begin_layout Plain Layout
19081 cd $path; cvs diff "."
19082 \end_layout
19083
19084 \end_inset
19085
19086 (変更が検出された場合には知らせる)
19087 \begin_inset Newline newline
19088 \end_inset
19089
19090
19091 \begin_inset Flex Code
19092 status collapsed
19093
19094 \begin_layout Plain Layout
19095 cd $path; cvs -q update "."
19096 \end_layout
19097
19098 \end_inset
19099
19100
19101 \end_layout
19102
19103 \begin_layout Standard
19104 ここで
19105 \begin_inset Flex Code
19106 status collapsed
19107
19108 \begin_layout Plain Layout
19109 $path
19110 \end_layout
19111
19112 \end_inset
19113
19114 は文書パスを表します.
19115 \end_layout
19116
19117 \begin_layout Subsubsection
19118 履歴を表示
19119 \end_layout
19120
19121 \begin_layout Standard
19122 これは,CVS文書の全履歴を表示します.
19123 \begin_inset Flex Code
19124 status collapsed
19125
19126 \begin_layout Plain Layout
19127 cvs log 
19128 \begin_inset Quotes eld
19129 \end_inset
19130
19131 <ファイル名>
19132 \begin_inset Quotes erd
19133 \end_inset
19134
19135
19136 \end_layout
19137
19138 \end_inset
19139
19140 の出力がブラウザに表示されます.
19141 \end_layout
19142
19143 \begin_layout Subsubsection
19144 改訂情報
19145 \end_layout
19146
19147 \begin_layout Standard
19148 \SpecialChar LyX
19149 は,CVS版数・著者名・最終コミットの日時をサポートします.これらの情報は,すべて
19150 \family typewriter
19151 cvs log -r <ファイル名>
19152 \family default
19153 によって抽出されます.詳細については,第
19154 \begin_inset CommandInset ref
19155 LatexCommand ref
19156 reference "subsec:VCS改訂情報"
19157
19158 \end_inset
19159
19160 節を参照してください.
19161 \end_layout
19162
19163 \begin_layout Subsection
19164 \SpecialChar LyX
19165 におけるSVNコマンド
19166 \end_layout
19167
19168 \begin_layout Standard
19169 \SpecialChar LyX
19170 は,現在SVNを一部サポートしています.そのコマンドは,
19171 \begin_inset Flex MenuItem
19172 status collapsed
19173
19174 \begin_layout Plain Layout
19175 ファイル\SpecialChar menuseparator
19176 バージョン管理
19177 \end_layout
19178
19179 \end_inset
19180
19181 メニューにあります.レポジトリへのアクセスに,ssh経由のパスワード保護アクセスを使用している場合には,端末ウィンドウでの入力を促されます.\SpecialChar LyX
19182 は,SVN
19183  1.5および1.6に対して試験されています.
19184 \end_layout
19185
19186 \begin_layout Subsubsection
19187 登録
19188 \end_layout
19189
19190 \begin_layout Standard
19191 お使いの文書が改訂管理下に置かれていなければ,メニューにはこの項目だけが表示されます.もし改訂管理が有効ならば,
19192 \family sans
19193 登録
19194 \family default
19195 項目は表示されません.
19196 \end_layout
19197
19198 \begin_layout Standard
19199 本コマンドは,既に文書のあるディレクトリをSVN管理下に置いている場合に
19200 \emph on
19201 のみ
19202 \emph default
19203 (すなわち
19204 \begin_inset Flex Code
19205 status collapsed
19206
19207 \begin_layout Plain Layout
19208 .svn/entries
19209 \end_layout
19210
19211 \end_inset
19212
19213 ファイルが存在する場合にのみ),お使いの文書をSVNに登録します.つまり,アーカイブはご自分でチェックアウトしなくてはなりません.
19214 \end_layout
19215
19216 \begin_layout Standard
19217 すると,文書の最初の説明文を入力するように促されます.登録したファイルは,まだコミットされたわけではないことに注意してください.
19218 \end_layout
19219
19220 \begin_layout Standard
19221 実行されるSVNコマンドは,
19222 \begin_inset Flex Code
19223 status collapsed
19224
19225 \begin_layout Plain Layout
19226 svn add -q 
19227 \begin_inset Quotes eld
19228 \end_inset
19229
19230 <ファイル名>
19231 \begin_inset Quotes erd
19232 \end_inset
19233
19234
19235 \end_layout
19236
19237 \end_inset
19238
19239 です.
19240 \end_layout
19241
19242 \begin_layout Standard
19243 スイッチの説明は
19244 \begin_inset Flex Code
19245 status collapsed
19246
19247 \begin_layout Plain Layout
19248 man svn
19249 \end_layout
19250
19251 \end_inset
19252
19253 をお読みください.
19254 \end_layout
19255
19256 \begin_layout Subsubsection
19257 変更をチェックイン
19258 \end_layout
19259
19260 \begin_layout Standard
19261 ファイルの編集を終えたら,変更をコミットします.このとき,変更の説明文を入れるよう促されます.その後,変更がコミットされます.
19262 \end_layout
19263
19264 \begin_layout Standard
19265 SVNコマンド
19266 \begin_inset Foot
19267 status collapsed
19268
19269 \begin_layout Plain Layout
19270 ロックが有効になっていない場合です.第
19271 \begin_inset CommandInset ref
19272 LatexCommand ref
19273 reference "subsec:SVNファイルロック"
19274
19275 \end_inset
19276
19277 節をご覧ください.
19278 \end_layout
19279
19280 \end_inset
19281
19282
19283 \begin_inset Flex Code
19284 status collapsed
19285
19286 \begin_layout Plain Layout
19287 svn commit -q -m
19288 \begin_inset Quotes erd
19289 \end_inset
19290
19291 <入力した説明文>
19292 \begin_inset Quotes erd
19293 \end_inset
19294
19295  
19296 \begin_inset Quotes eld
19297 \end_inset
19298
19299 <ファイル名>
19300 \begin_inset Quotes erd
19301 \end_inset
19302
19303
19304 \end_layout
19305
19306 \end_inset
19307
19308
19309 \end_layout
19310
19311 \begin_layout Subsubsection
19312 チェックアウトして編集
19313 \end_layout
19314
19315 \begin_layout Standard
19316 このファイルの変更点をレポジトリから取得して更新します.すべての干渉点は,手動で解決しなくてはならないので,この機能を使う前にSVNのマージ法と干渉解決法を理解
19317 しておくようにしてください.
19318 \end_layout
19319
19320 \begin_layout Standard
19321 SVNコマンド
19322 \begin_inset Foot
19323 status collapsed
19324
19325 \begin_layout Plain Layout
19326 同上.
19327 \end_layout
19328
19329 \end_inset
19330
19331
19332 \begin_inset Flex Code
19333 status collapsed
19334
19335 \begin_layout Plain Layout
19336 svn update –non-interactive 
19337 \begin_inset Quotes eld
19338 \end_inset
19339
19340 <ファイル名>
19341 \begin_inset Quotes erd
19342 \end_inset
19343
19344
19345 \end_layout
19346
19347 \end_inset
19348
19349
19350 \end_layout
19351
19352 \begin_layout Subsubsection
19353 リポジトリ版に戻す
19354 \end_layout
19355
19356 \begin_layout Standard
19357 これは,最後のチェックイン以降,文書に加えられた変更をすべて廃棄します.変更が廃棄される前に警告が表示されます.
19358 \end_layout
19359
19360 \begin_layout Standard
19361 SVNコマンド:
19362 \begin_inset Flex Code
19363 status collapsed
19364
19365 \begin_layout Plain Layout
19366 svn revert -q 
19367 \begin_inset Quotes eld
19368 \end_inset
19369
19370 <ファイル名>
19371 \begin_inset Quotes erd
19372 \end_inset
19373
19374
19375 \end_layout
19376
19377 \end_inset
19378
19379
19380 \end_layout
19381
19382 \begin_layout Subsubsection
19383
19384 \family sans
19385 コピー
19386 \end_layout
19387
19388 \begin_layout Standard
19389 これは,現行文書のコピーを生成します.最後のチェックイン以降,変更が加えられていないサラの文書であることが要求されます.ファイル名とコピー操作の説明を入力するよ
19390 うに促され,その後,新コピーがローカルとリポジトリの両方に生成されます.コピーされた文書と元の文書の親ディレクトリが異なる場合には,コピーにインクルードされたフ
19391 ァイルの相対パスは,(
19392 \family sans
19393 ファイル\SpecialChar menuseparator
19394 名前をつけて保存\SpecialChar ldots
19395
19396 \family default
19397 と同様に)全て調整されます.最後に,元の文書の代わりに,コピーされたファイルが読み込まれます.
19398 \end_layout
19399
19400 \begin_layout Labeling
19401 \labelwidthstring 00.00.0000
19402 SVNコマンド:
19403 \end_layout
19404
19405 \begin_layout Labeling
19406 \labelwidthstring 00.00.0000
19407 \begin_inset Flex Code
19408 status collapsed
19409
19410 \begin_layout Plain Layout
19411 svn copy -q "<ファイル名>" "<新ファイル名>"
19412 \end_layout
19413
19414 \end_inset
19415
19416
19417 \end_layout
19418
19419 \begin_layout Labeling
19420 \labelwidthstring 00.00.0000
19421 \begin_inset Flex Code
19422 status collapsed
19423
19424 \begin_layout Plain Layout
19425 svn commit
19426 \end_layout
19427
19428 \end_inset
19429
19430
19431 \end_layout
19432
19433 \begin_layout Subsubsection
19434 ファイル名変更
19435 \end_layout
19436
19437 \begin_layout Standard
19438 これは,現行文書のファイル名を変更します.最後のチェックイン以降,変更が加えられていないサラの文書であることが要求されます.ファイル名とコピー操作の説明を入力す
19439 るように促され,その後,ローカルとリポジトリの両方でファイル名が変更されます.新旧ファイル名の文書の親ディレクトリが異なる場合には,コピーにインクルードされたフ
19440 ァイルの相対パスは,(
19441 \family sans
19442 ファイル\SpecialChar menuseparator
19443 名前をつけて保存\SpecialChar ldots
19444
19445 \family default
19446 と同様に)全て調整されます.最後に,新ファイル名を使ってファイルが再度読み込まれます.
19447 \end_layout
19448
19449 \begin_layout Labeling
19450 \labelwidthstring 00.00.0000
19451 SVNコマンド:
19452 \end_layout
19453
19454 \begin_layout Labeling
19455 \labelwidthstring 00.00.0000
19456 \begin_inset Flex Code
19457 status collapsed
19458
19459 \begin_layout Plain Layout
19460 svn move -q add "<ファイル名>" "<新ファイル名>"
19461 \end_layout
19462
19463 \end_inset
19464
19465
19466 \end_layout
19467
19468 \begin_layout Labeling
19469 \labelwidthstring 00.00.0000
19470 \begin_inset Flex Code
19471 status collapsed
19472
19473 \begin_layout Plain Layout
19474 svn commit
19475 \end_layout
19476
19477 \end_inset
19478
19479
19480 \end_layout
19481
19482 \begin_layout Subsubsection
19483 \begin_inset CommandInset label
19484 LatexCommand label
19485 name "subsec:レポジトリからSVN同期"
19486
19487 \end_inset
19488
19489 レポジトリを使ったローカルディレクトリの同期
19490 \begin_inset Foot
19491 status collapsed
19492
19493 \begin_layout Plain Layout
19494 このコマンドは,subversion 
19495 \begin_inset Formula $\geqq1.5$
19496 \end_inset
19497
19498 でのみ動作することに注意してください.
19499 \end_layout
19500
19501 \end_inset
19502
19503
19504 \end_layout
19505
19506 \begin_layout Standard
19507 上記の各コマンドはすべて,共通の短所を持っています.すなわち,これらのコマンドは現在の文書しか取り扱わないのです.もし,作業中の文書に図を含めたり,外部
19508 \begin_inset Flex Code
19509 status collapsed
19510
19511 \begin_layout Plain Layout
19512 .tex
19513 \end_layout
19514
19515 \end_inset
19516
19517 ファイルを取り込んだりすれば,管理はずっと複雑になります.そこで\SpecialChar LyX
19518 は,文書のおいてあるツリー全体の更新をサポートします
19519 \begin_inset Foot
19520 status collapsed
19521
19522 \begin_layout Plain Layout
19523 すべての外部ファイルが,文書と同じディレクトリかそれ以下のサブディレクトリに来るようにファイル構造を構成する必要があります.
19524 \end_layout
19525
19526 \end_inset
19527
19528 .これは,subversion管理を知らなかったりレポジトリに新しい素材をコミットする勇気のない人たちと共同作業をする羽目になったときに,ひじょうに役に立ちます
19529
19530 \end_layout
19531
19532 \begin_layout Standard
19533 \begin_inset Flex Code
19534 status collapsed
19535
19536 \begin_layout Plain Layout
19537 ローカル辞書をレポジトリを使って更新
19538 \end_layout
19539
19540 \end_inset
19541
19542 コマンドは,ディレクトリ全体を更新し,マージに衝突が発生した場合には,ローカル版は保存されるので,意図しないデータロスが発生しません.ローカルな変更が発見された
19543 場合には,更新が開始される前にユーザに警告が与えられます.
19544 \end_layout
19545
19546 \begin_layout Labeling
19547 \labelwidthstring 00.00.0000
19548 SVNコマンド: 
19549 \begin_inset space ~
19550 \end_inset
19551
19552
19553 \begin_inset Newline newline
19554 \end_inset
19555
19556
19557 \begin_inset Flex Code
19558 status collapsed
19559
19560 \begin_layout Plain Layout
19561 svn diff $path(変更が発見された場合には通知します)
19562 \begin_inset Newline newline
19563 \end_inset
19564
19565 svn update –accept mine-full $path
19566 \end_layout
19567
19568 \end_inset
19569
19570
19571 \end_layout
19572
19573 \begin_layout Standard
19574 ここで
19575 \begin_inset Flex Code
19576 status collapsed
19577
19578 \begin_layout Plain Layout
19579 $path
19580 \end_layout
19581
19582 \end_inset
19583
19584 は文書のパスを示します.
19585 \end_layout
19586
19587 \begin_layout Subsubsection
19588 履歴を表示
19589 \end_layout
19590
19591 \begin_layout Standard
19592 これは,SVN文書の全履歴を表示します.
19593 \begin_inset Flex Code
19594 status collapsed
19595
19596 \begin_layout Plain Layout
19597 svn log 
19598 \begin_inset Quotes eld
19599 \end_inset
19600
19601 <ファイル名>
19602 \begin_inset Quotes erd
19603 \end_inset
19604
19605
19606 \end_layout
19607
19608 \end_inset
19609
19610 の出力がブラウザに表示されます.
19611 \end_layout
19612
19613 \begin_layout Subsubsection
19614 ファイルロック
19615 \begin_inset CommandInset label
19616 LatexCommand label
19617 name "subsec:SVNファイルロック"
19618
19619 \end_inset
19620
19621
19622 \end_layout
19623
19624 \begin_layout Standard
19625 別々の改訂管理システム間でファイルを交換しようとすると,二人のユーザが同じ文書(の一部)を編集している場合,マージが衝突する問題を引き起こします.そのような衝突
19626 が発生した場合,手動で解決しなくてはならなくなりますが,その合理的な解決法としては,与えられた時間に一人のユーザだけがファイルを編集することが許されるように保証
19627 するための,何らかのロック機構を導入することが考えられます.
19628 \end_layout
19629
19630 \begin_layout Standard
19631 SVNには,このように相互に排他的なファイルアクセスを提供する機構が二つあります.ロックと,
19632 \begin_inset Flex Code
19633 status collapsed
19634
19635 \begin_layout Plain Layout
19636 svn:needs-lock
19637 \end_layout
19638
19639 \end_inset
19640
19641 svnファイル特性に依拠した書き込み権限の自動設定(第
19642 \begin_inset CommandInset ref
19643 LatexCommand ref
19644 reference "subsec:自動ロック特性"
19645
19646 \end_inset
19647
19648 節を参照)です
19649 \begin_inset Foot
19650 status open
19651
19652 \begin_layout Plain Layout
19653 http://svnbook.red-bean.com/en/1.2/svn.advanced.locking.html
19654 \end_layout
19655
19656 \end_inset
19657
19658 .ある文書について,この特性が検出されたときには,\SpecialChar LyX
19659 は自動的に文書編集にSVNロックを使用するようになり,チェックイン・チェックアウト機構はRCSと同じ枠組みに切
19660 り替わります.これは特に,\SpecialChar LyX
19661 でのファイルの使われ方に以下の二つのモードがあることを意味します.
19662 \end_layout
19663
19664 \begin_layout Itemize
19665 非ロック状態.読み込まれたファイルは,読み込み専用モードになります.編集するためには,チェックアウトする必要があります.
19666 \emph on
19667 チェックアウト
19668 \emph default
19669 を行うと,レポジトリからの更新と,書き込みロックの獲得が行われます.ロックの獲得ができないと,非ロック状態から出ることができません.
19670 \end_layout
19671
19672 \begin_layout Itemize
19673 ロック状態.読み込まれたファイルは,「通常の」編集モードになります.他のユーザには,このファイルを編集する許可が与えられません.
19674 \emph on
19675 チェックイン
19676 \emph default
19677 を行うと,変更のコミットと書き込みロックの解放が行われます.文書に変更が加えられなかった場合には,コミットは実行されず
19678 \begin_inset Foot
19679 status collapsed
19680
19681 \begin_layout Plain Layout
19682 コミットは実行されないのに,コミットメッセージを入力するよう促されますが,驚かないでください.
19683 \end_layout
19684
19685 \end_inset
19686
19687 ,書き込みロックの解放のみが行われます.
19688 \end_layout
19689
19690 \begin_layout Standard
19691 SVNコマンド:
19692 \end_layout
19693
19694 \begin_layout Labeling
19695 \labelwidthstring 00.00.0000
19696 チェックイン: 
19697 \begin_inset Flex Code
19698 status collapsed
19699
19700 \begin_layout Plain Layout
19701 svn commit -q -m
19702 \begin_inset Quotes erd
19703 \end_inset
19704
19705 <説明>
19706 \begin_inset Quotes erd
19707 \end_inset
19708
19709  
19710 \begin_inset Quotes eld
19711 \end_inset
19712
19713 <ファイル名>
19714 \begin_inset Quotes erd
19715 \end_inset
19716
19717
19718 \end_layout
19719
19720 \end_inset
19721
19722
19723 \begin_inset Newline newline
19724 \end_inset
19725
19726
19727 \begin_inset Flex Code
19728 status collapsed
19729
19730 \begin_layout Plain Layout
19731 svn unlock 
19732 \begin_inset Quotes eld
19733 \end_inset
19734
19735 <ファイル名>
19736 \begin_inset Quotes erd
19737 \end_inset
19738
19739
19740 \end_layout
19741
19742 \end_inset
19743
19744
19745 \end_layout
19746
19747 \begin_layout Labeling
19748 \labelwidthstring 00.00.0000
19749 チェックアウト: 
19750 \begin_inset Flex Code
19751 status collapsed
19752
19753 \begin_layout Plain Layout
19754 svn update 
19755 \begin_inset Quotes eld
19756 \end_inset
19757
19758 <ファイル名>
19759 \begin_inset Quotes erd
19760 \end_inset
19761
19762
19763 \end_layout
19764
19765 \end_inset
19766
19767
19768 \begin_inset Newline newline
19769 \end_inset
19770
19771
19772 \begin_inset Flex Code
19773 status collapsed
19774
19775 \begin_layout Plain Layout
19776 svn unlock 
19777 \begin_inset Quotes eld
19778 \end_inset
19779
19780 <ファイル名>
19781 \begin_inset Quotes erd
19782 \end_inset
19783
19784
19785 \end_layout
19786
19787 \end_inset
19788
19789
19790 \end_layout
19791
19792 \begin_layout Subsubsection
19793 自動ロック特性
19794 \begin_inset CommandInset label
19795 LatexCommand label
19796 name "subsec:自動ロック特性"
19797
19798 \end_inset
19799
19800
19801 \end_layout
19802
19803 \begin_layout Standard
19804 上述したような
19805 \begin_inset Flex Code
19806 status collapsed
19807
19808 \begin_layout Plain Layout
19809 .lyx
19810 \end_layout
19811
19812 \end_inset
19813
19814 ファイルに対する書き込み権限の自動設定は,
19815 \begin_inset Flex MenuItem
19816 status collapsed
19817
19818 \begin_layout Plain Layout
19819 ファイル\SpecialChar menuseparator
19820 バージョン管理\SpecialChar menuseparator
19821 ロック特性を使用
19822 \end_layout
19823
19824 \end_inset
19825
19826 で行うことができます.このコマンドは,SVNサーバでファイルがロックされていないときのみ使用可能状態になります(つまり,使用するにはチェックアウトが必要です).
19827 \end_layout
19828
19829 \begin_layout Standard
19830 SVNコマンド:
19831 \end_layout
19832
19833 \begin_layout Labeling
19834 \labelwidthstring 00.00.0000
19835 チェックイン: 
19836 \begin_inset Flex Code
19837 status collapsed
19838
19839 \begin_layout Plain Layout
19840 svn propset svn:needs-lock ON 
19841 \begin_inset Quotes eld
19842 \end_inset
19843
19844 <ファイル名>
19845 \begin_inset Quotes erd
19846 \end_inset
19847
19848
19849 \end_layout
19850
19851 \end_inset
19852
19853
19854 \end_layout
19855
19856 \begin_layout Labeling
19857 \labelwidthstring 00.00.0000
19858 チェックアウト: 
19859 \begin_inset Flex Code
19860 status collapsed
19861
19862 \begin_layout Plain Layout
19863 svn propdel svn:needs-lock 
19864 \begin_inset Quotes eld
19865 \end_inset
19866
19867 <ファイル名>
19868 \begin_inset Quotes erd
19869 \end_inset
19870
19871
19872 \end_layout
19873
19874 \end_inset
19875
19876
19877 \end_layout
19878
19879 \begin_layout Subsubsection
19880 \begin_inset CommandInset label
19881 LatexCommand label
19882 name "subsec:VCS改訂情報"
19883
19884 \end_inset
19885
19886 文書の改訂情報
19887 \end_layout
19888
19889 \begin_layout Standard
19890 文書中で改訂情報を有効化するにはいくつかの方法があります.
19891 \end_layout
19892
19893 \begin_layout Itemize
19894 \SpecialChar LyX
19895 による直接サポート
19896 \begin_inset Separator latexpar
19897 \end_inset
19898
19899
19900 \end_layout
19901
19902 \begin_deeper
19903 \begin_layout Itemize
19904 ツリー改訂情報(
19905 \begin_inset Flex Code
19906 status collapsed
19907
19908 \begin_layout Plain Layout
19909 vcs-tree-revision
19910 \end_layout
19911
19912 \end_inset
19913
19914 ).
19915 \begin_inset Flex Code
19916 status collapsed
19917
19918 \begin_layout Plain Layout
19919 svnversion
19920 \end_layout
19921
19922 \end_inset
19923
19924 コマンドの出力を返します.下記の表が,結果の読み方のヒントを与えるでしょう.
19925 \end_layout
19926
19927 \begin_layout Standard
19928 \align center
19929 \begin_inset Tabular
19930 <lyxtabular version="3" rows="6" columns="2">
19931 <features tabularvalignment="middle">
19932 <column alignment="center" valignment="top">
19933 <column alignment="center" valignment="top">
19934 <row>
19935 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19936 \begin_inset Text
19937
19938 \begin_layout Plain Layout
19939 出力
19940 \end_layout
19941
19942 \end_inset
19943 </cell>
19944 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
19945 \begin_inset Text
19946
19947 \begin_layout Plain Layout
19948 意味
19949 \end_layout
19950
19951 \end_inset
19952 </cell>
19953 </row>
19954 <row>
19955 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19956 \begin_inset Text
19957
19958 \begin_layout Plain Layout
19959 4123:4168
19960 \end_layout
19961
19962 \end_inset
19963 </cell>
19964 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
19965 \begin_inset Text
19966
19967 \begin_layout Plain Layout
19968 改訂版の混合した作業コピー
19969 \end_layout
19970
19971 \end_inset
19972 </cell>
19973 </row>
19974 <row>
19975 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19976 \begin_inset Text
19977
19978 \begin_layout Plain Layout
19979 4168M
19980 \end_layout
19981
19982 \end_inset
19983 </cell>
19984 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
19985 \begin_inset Text
19986
19987 \begin_layout Plain Layout
19988 修正された作業コピー
19989 \end_layout
19990
19991 \end_inset
19992 </cell>
19993 </row>
19994 <row>
19995 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19996 \begin_inset Text
19997
19998 \begin_layout Plain Layout
19999 4123S
20000 \end_layout
20001
20002 \end_inset
20003 </cell>
20004 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20005 \begin_inset Text
20006
20007 \begin_layout Plain Layout
20008 スイッチされた作業コピー
20009 \end_layout
20010
20011 \end_inset
20012 </cell>
20013 </row>
20014 <row>
20015 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20016 \begin_inset Text
20017
20018 \begin_layout Plain Layout
20019 4123P
20020 \end_layout
20021
20022 \end_inset
20023 </cell>
20024 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20025 \begin_inset Text
20026
20027 \begin_layout Plain Layout
20028 チェックアウト頻度が低かったことによる不完全な作業コピー
20029 \end_layout
20030
20031 \end_inset
20032 </cell>
20033 </row>
20034 <row>
20035 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
20036 \begin_inset Text
20037
20038 \begin_layout Plain Layout
20039 4123:4168MS
20040 \end_layout
20041
20042 \end_inset
20043 </cell>
20044 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
20045 \begin_inset Text
20046
20047 \begin_layout Plain Layout
20048 改訂版が混合し,修正され,スイッチされた作業コピー
20049 \end_layout
20050
20051 \end_inset
20052 </cell>
20053 </row>
20054 </lyxtabular>
20055
20056 \end_inset
20057
20058
20059 \end_layout
20060
20061 \begin_layout Itemize
20062 ファイル改訂情報.
20063 \begin_inset Flex Code
20064 status collapsed
20065
20066 \begin_layout Plain Layout
20067 svn
20068 \begin_inset space ~
20069 \end_inset
20070
20071 info
20072 \begin_inset space ~
20073 \end_inset
20074
20075 –xml
20076 \begin_inset space ~
20077 \end_inset
20078
20079 file.lyx
20080 \end_layout
20081
20082 \end_inset
20083
20084 の出力を解析したものが返されます.サポートされるフラグは
20085 \begin_inset Separator latexpar
20086 \end_inset
20087
20088
20089 \end_layout
20090
20091 \begin_deeper
20092 \begin_layout Itemize
20093 最終コミットのバージョン番号(
20094 \begin_inset Flex Code
20095 status collapsed
20096
20097 \begin_layout Plain Layout
20098 vcs-revision
20099 \end_layout
20100
20101 \end_inset
20102
20103 )
20104 \end_layout
20105
20106 \begin_layout Itemize
20107 最終コミットの著者(
20108 \begin_inset Flex Code
20109 status collapsed
20110
20111 \begin_layout Plain Layout
20112 vcs-author
20113 \end_layout
20114
20115 \end_inset
20116
20117 )
20118 \end_layout
20119
20120 \begin_layout Itemize
20121 最終コミットの日付(
20122 \begin_inset Flex Code
20123 status collapsed
20124
20125 \begin_layout Plain Layout
20126 vcs-date
20127 \end_layout
20128
20129 \end_inset
20130
20131 )
20132 \end_layout
20133
20134 \begin_layout Itemize
20135 最終コミットの時間(
20136 \begin_inset Flex Code
20137 status collapsed
20138
20139 \begin_layout Plain Layout
20140 vcs-time
20141 \end_layout
20142
20143 \end_inset
20144
20145 )
20146 \end_layout
20147
20148 \end_deeper
20149 \begin_layout Standard
20150 これらの情報は,情報差込枠で得ることができます(例:
20151 \begin_inset Flex Code
20152 status collapsed
20153
20154 \begin_layout Plain Layout
20155 info-insert buffer vcs-date
20156 \end_layout
20157
20158 \end_inset
20159
20160 ).これらの情報は,ファイルをsvn管理下に置いたときのみ(すなわち使用中文書の
20161 \begin_inset Flex Code
20162 status collapsed
20163
20164 \begin_layout Plain Layout
20165 .svn
20166 \end_layout
20167
20168 \end_inset
20169
20170 ディレクトリがあるときのみ)利用可能です.
20171 \end_layout
20172
20173 \end_deeper
20174 \begin_layout Itemize
20175 もう一つの—ハッカー的な—方法は,SVNキーワードを使用する方法です
20176 \begin_inset Foot
20177 status collapsed
20178
20179 \begin_layout Plain Layout
20180 http://svnbook.red-bean.com/en/1.4/svn.advanced.props.special.keywords.html
20181 \end_layout
20182
20183 \end_inset
20184
20185 .簡単に言えば,ファイルキーワード特性を設定して(例:
20186 \family sans
20187 svn propset svn:keywords 'Rev' file.lyx
20188 \family default
20189 ),文書中にキーワード\SpecialChar TeX
20190 コード
20191 \begin_inset Foot
20192 status collapsed
20193
20194 \begin_layout Plain Layout
20195 これは,\SpecialChar LyX
20196 がキーワードタグの途中で改行してしまわないことを確実にするための,簡単な方法です.
20197 \end_layout
20198
20199 \end_inset
20200
20201 タグ(例:
20202 \begin_inset ERT
20203 status open
20204
20205 \begin_layout Plain Layout
20206
20207 $Rev$
20208 \end_layout
20209
20210 \end_inset
20211
20212 )を貼り付けるのです.このようにして,SVNクライアントは,各更新やコミットの後に自動的に改訂番号を代入することができるのです(例
20213 \begin_inset ERT
20214 status open
20215
20216 \begin_layout Plain Layout
20217
20218 $Rev: 59 $
20219 \end_layout
20220
20221 \end_inset
20222
20223 ).このアプローチにはいくつか問題があります.第一に,\SpecialChar TeX
20224 の世界では「$」文字は数式を表すのに使われるので,\SpecialChar LyX
20225 中の
20226 \begin_inset Formula $Rev$
20227 \end_inset
20228
20229 という数式表現が,すべて
20230 \begin_inset Formula $Rev:59$
20231 \end_inset
20232
20233 になってしまいます.その他のId・Date・Authorなどといったキーワードも同様です.第二に,SVN出力は使用中のロケールに依存するので,Dateが用いられ
20234 ると,SVNは,問題を引き起こすような文字列を容易に生成してしまいます.第三に,文書中には,番号だけでなく「Rev:59」という文字列全体が表示されてしまいます
20235 .Subversionがユーザ定義のキーワードを実装するまでは,このアプローチを信頼性を持って使用したり,\SpecialChar LyX
20236 がこれを直接サポートすることは,難しそうです.
20237 \end_layout
20238
20239 \begin_layout Subsection
20240 SVNとWindows環境
20241 \end_layout
20242
20243 \begin_layout Quote
20244 ユーザが,かなり早いうちに自分自身でコマンドライン操作を理解できないのであれば,TortoiseSVNを使った方が賢明でしょう.—P.
20245  A.
20246  ルービン
20247 \end_layout
20248
20249 \begin_layout Subsubsection
20250 準備
20251 \end_layout
20252
20253 \begin_layout Standard
20254 \SpecialChar LyX
20255 を導入して,Subversionレポジトリへのアクセス権を持っている他に,ユーザはSubversionクライアントプログラムを導入する必要があります.クライアン
20256 トプログラムのWindows用インストーラは
20257 \begin_inset CommandInset href
20258 LatexCommand href
20259 name "CollabNet"
20260 target "http://www.collab.net/nonav/downloads/subversion/"
20261
20262 \end_inset
20263
20264 にあります.ユーザは
20265 \begin_inset CommandInset href
20266 LatexCommand href
20267 name "TortoiseSVN"
20268 target "http://tortoisesvn.tigris.org/"
20269
20270 \end_inset
20271
20272 も導入することを考えるでしょう.これはSubversionの操作をWindows Explorerのコンテクスト(右クリック)メニューに統合します.\SpecialChar LyX
20273 外部で行う操
20274 作は,一般的にExplorerコンテクストメニューを使った方が便利です.TortoiseSVNは,\SpecialChar LyX
20275 自身が使用するクライアントプログラムの代わりとは成りませんので
20276 ,注意してください.
20277 \end_layout
20278
20279 \begin_layout Subsubsection
20280 文書をSubversion管理下に置くには
20281 \end_layout
20282
20283 \begin_layout Standard
20284 \SpecialChar LyX
20285 文書をSubversionのバージョン管理下に置く前に,その親ディレクトリをバージョン管理下に置かなくてはなりません.文書を,既にレポジトリに存在するプロジェク
20286 トに追加する際には,新規文書が置かれることになるディレクトリへ,プロジェクトをチェックアウトすることによって実現します.プロジェクト自体がバージョン管理下にない
20287 場合(たとえばこの文書が新規プロジェクトの最初のファイルである場合)には,このディレクトリをレポジトリにインポートしなくてはなりません.これは,\SpecialChar LyX
20288 の外部で行います
20289 .インポートもチェックアウトも共に,TortoiseSVNを使えば,Explorerのコンテクストメニューから簡単に終えることができます.あるいは,DOSプロン
20290 プトでコマンドライン・クライアントを使って成し遂げることもできます.TortoiseSVNを使ったプロジェクトのインポート手続きを下記で説明します.レポジトリは
20291 既に存在し,新規プロジェクトを
20292 \begin_inset Flex Code
20293 status collapsed
20294
20295 \begin_layout Plain Layout
20296 C:
20297 \backslash
20298 new project
20299 \end_layout
20300
20301 \end_inset
20302
20303 で開始するものとします.Subversionクライアントプログラムを使うための情報を得るには,DOSシェルで
20304 \begin_inset Flex Code
20305 status collapsed
20306
20307 \begin_layout Plain Layout
20308 svn –help
20309 \end_layout
20310
20311 \end_inset
20312
20313 を実行してください.
20314 \end_layout
20315
20316 \begin_layout Enumerate
20317 Windows Explorerで
20318 \begin_inset Flex Code
20319 status collapsed
20320
20321 \begin_layout Plain Layout
20322 C:
20323 \backslash
20324 new project
20325 \end_layout
20326
20327 \end_inset
20328
20329 を見つけ出して右クリックし,
20330 \begin_inset Flex MenuItem
20331 status collapsed
20332
20333 \begin_layout Plain Layout
20334 TortoiseSVN\SpecialChar menuseparator
20335 Repo-browser
20336 \end_layout
20337
20338 \end_inset
20339
20340 を選択してください.必要であれば,レポジトリのURLを調整し,OKをクリックしてください.
20341 \end_layout
20342
20343 \begin_layout Enumerate
20344 新規プロジェクトフォルダを置くレポジトリレベル(多くの場合最上位レベル)を右クリックし,
20345 \begin_inset Flex MenuItem
20346 status collapsed
20347
20348 \begin_layout Plain Layout
20349 Create folder\SpecialChar ldots
20350
20351 \end_layout
20352
20353 \end_inset
20354
20355 をクリックしてください.プロジェクトフォルダの名称を入力してOKをクリックしてください.必要であればログファイル用のメッセージを入力し,再びOKをクリックしてく
20356 ださい.新規プロジェクトフォルダがレポジトリに現れるはずです.最後にOKを再度クリックして,レポジトリブラウザを終了してください.
20357 \end_layout
20358
20359 \begin_layout Enumerate
20360 再度
20361 \begin_inset Flex Code
20362 status collapsed
20363
20364 \begin_layout Plain Layout
20365 C:
20366 \backslash
20367 new project
20368 \end_layout
20369
20370 \end_inset
20371
20372 を右クリックし,今度は
20373 \begin_inset Flex MenuItem
20374 status collapsed
20375
20376 \begin_layout Plain Layout
20377 SVN Checkout\SpecialChar ldots
20378
20379 \end_layout
20380
20381 \end_inset
20382
20383 を選択してください.レポジトリにたった今作成した,プロジェクトフォルダのURLを選択し,チェックアウトディレクトリを
20384 \begin_inset Flex Code
20385 status collapsed
20386
20387 \begin_layout Plain Layout
20388 C:
20389 \backslash
20390 new project
20391 \end_layout
20392
20393 \end_inset
20394
20395 に設定してから,OKをクリックしてください.フォルダが空でないことを警告されますが,OKをクリックして進んでください.すると,
20396 \begin_inset Flex Code
20397 status collapsed
20398
20399 \begin_layout Plain Layout
20400 C:
20401 \backslash
20402 new project
20403 \end_layout
20404
20405 \end_inset
20406
20407 の下に
20408 \begin_inset Flex Code
20409 status collapsed
20410
20411 \begin_layout Plain Layout
20412 .svn
20413 \end_layout
20414
20415 \end_inset
20416
20417 ディレクトリが作成されます.
20418 \end_layout
20419
20420 \begin_layout Enumerate
20421 \SpecialChar LyX
20422 で文書を新規作成するか開くかして,
20423 \begin_inset Flex MenuItem
20424 status collapsed
20425
20426 \begin_layout Plain Layout
20427 ファイル\SpecialChar menuseparator
20428 バージョン管理\SpecialChar menuseparator
20429 登録
20430 \end_layout
20431
20432 \end_inset
20433
20434 をクリックします.ログメッセージを入力してOKをクリックし,文書をバージョン管理にコミットしてください.
20435 \end_layout
20436
20437 \begin_layout Standard
20438 爾後,
20439 \begin_inset Flex MenuItem
20440 status collapsed
20441
20442 \begin_layout Plain Layout
20443 ファイル\SpecialChar menuseparator
20444 バージョン管理
20445 \end_layout
20446
20447 \end_inset
20448
20449 メニューのすべての機能が使用できるようになります.Windows ExplorerのTortoiseSVNコンテクストメニューか,コマンドプロンプトでのSubv
20450 ersionクライアントプログラムを使用して,文書をチェックイン・チェックアウトしたり,履歴を見たりといったことができるようになります.
20451 \end_layout
20452
20453 \begin_layout Subsubsection
20454 Windows下でSVNと共にSSHトンネルを使うには
20455 \end_layout
20456
20457 \begin_layout Standard
20458 Linuxに較べて,WindowsでSVNクライアントをSSH経由で通信するようにさせるのは,かなり厄介な仕事です.どのようにクライアント側を設定すればよいか,
20459 少なくとも幾分かのヒントをお示しするつもりですが,sshとWindowsコマンドラインの知識が前もって必要であり,それと共にかなりの量のフラストレーションが溜ま
20460 ることを覚悟しておいてください.
20461 \end_layout
20462
20463 \begin_layout Enumerate
20464 前節で述べたように,Windows用のSVNクライアントを入手してください.これが新規の導入である場合には,何らかのSVNコマンド(たとえば
20465 \begin_inset Flex Code
20466 status collapsed
20467
20468 \begin_layout Plain Layout
20469 svn –version
20470 \end_layout
20471
20472 \end_inset
20473
20474 )を実行して,configファイル群を生成させてください.これらは後で変更を加える必要があります.
20475 \end_layout
20476
20477 \begin_layout Enumerate
20478 Windows用のsshクライアントを選んでください.選択肢はたくさんありますが,ここではPutty tools
20479 \begin_inset Foot
20480 status open
20481
20482 \begin_layout Plain Layout
20483 \begin_inset Flex URL
20484 status collapsed
20485
20486 \begin_layout Plain Layout
20487
20488 http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html
20489 \end_layout
20490
20491 \end_inset
20492
20493
20494 \end_layout
20495
20496 \end_inset
20497
20498 のものを使用することとしましょう.クライアントが接続の度にパスワードを訊いてこないように,接続を自動化する必要があります.簡単にするために,追加的なパスワード保
20499 護などを加えない
20500 \begin_inset Flex Ruby
20501 status collapsed
20502
20503 \begin_layout Plain Layout
20504
20505 \begin_inset Argument post:1
20506 status collapsed
20507
20508 \begin_layout Plain Layout
20509 キー
20510 \end_layout
20511
20512 \end_inset
20513
20514
20515 \end_layout
20516
20517 \end_inset
20518
20519 のみを使用することとします.
20520 \begin_inset Separator latexpar
20521 \end_inset
20522
20523
20524 \end_layout
20525
20526 \begin_deeper
20527 \begin_layout Enumerate
20528 \begin_inset Flex Code
20529 status collapsed
20530
20531 \begin_layout Plain Layout
20532 puttygen
20533 \end_layout
20534
20535 \end_inset
20536
20537 を使って鍵を生成します..ppkプライベート鍵ファイルを保存し,パブリック鍵ファイルはサーバ側に置きます.SVNサーバがLinuxで走っている場合,このパブリック
20538 鍵の書式はLinuxのopensshと互換性がないために,「Public key for pasting into OpenSSH authorized_key
20539 s file:」編集フィールドから,直接サーバの
20540 \begin_inset Flex Code
20541 status collapsed
20542
20543 \begin_layout Plain Layout
20544 ~/.ssh/authorized_keys
20545 \end_layout
20546
20547 \end_inset
20548
20549 または
20550 \begin_inset Flex Code
20551 status collapsed
20552
20553 \begin_layout Plain Layout
20554 authorized_keys2
20555 \end_layout
20556
20557 \end_inset
20558
20559 ファイルにコピー&ペーストを行わなくてはならないことに注意してください.
20560 \end_layout
20561
20562 \begin_layout Enumerate
20563 Puttyのplinkを入手してください.SVNのconfigファイル
20564 \begin_inset Foot
20565 status collapsed
20566
20567 \begin_layout Plain Layout
20568 正確なパスはWindowsのバージョンに依りますが,通常は
20569 \begin_inset Flex Code
20570 status collapsed
20571
20572 \begin_layout Plain Layout
20573 c:
20574 \backslash
20575 Documents and Settings
20576 \backslash
20577 user
20578 \backslash
20579 Application Data
20580 \backslash
20581 Subversion
20582 \backslash
20583 config
20584 \end_layout
20585
20586 \end_inset
20587
20588
20589 \begin_inset Flex Code
20590 status collapsed
20591
20592 \begin_layout Plain Layout
20593 AppData
20594 \backslash
20595 Roaming
20596 \backslash
20597 Subversion
20598 \end_layout
20599
20600 \end_inset
20601
20602 辺りにあります.
20603 \end_layout
20604
20605 \end_inset
20606
20607 中の
20608 \begin_inset Flex Code
20609 status collapsed
20610
20611 \begin_layout Plain Layout
20612 [tunnels]
20613 \end_layout
20614
20615 \end_inset
20616
20617 セクションにsshコマンドを設定してください.例:
20618 \begin_inset Flex Code
20619 status collapsed
20620
20621 \begin_layout Plain Layout
20622 ssh=c:/path/plink.exe -i c:/path/private_key.ppk
20623 \end_layout
20624
20625 \end_inset
20626
20627
20628 \begin_inset Foot
20629 status collapsed
20630
20631 \begin_layout Plain Layout
20632 通常,正確なコマンドを機能させるには長い時間がかかり,それは多くの物事に依存します.たとえば,リモートサーバがPuttyなどの既定セッションとして保存されないよ
20633 うにしてください.うまく行かない場合には,まずSVNなしでplink経由の接続を試してください.
20634 \end_layout
20635
20636 \end_inset
20637
20638
20639 \end_layout
20640
20641 \end_deeper
20642 \begin_layout Enumerate
20643 SVNアーカイブをチェックアウトしてください.例:
20644 \begin_inset Newline newline
20645 \end_inset
20646
20647
20648 \begin_inset Flex Code
20649 status collapsed
20650
20651 \begin_layout Plain Layout
20652 svn co svn+ssh://user@server/repository_path
20653 \end_layout
20654
20655 \end_inset
20656
20657
20658 \end_layout
20659
20660 \begin_layout Subsubsection
20661 行末変換
20662 \end_layout
20663
20664 \begin_layout Standard
20665 共著者同士がLinuxとWindowsを混在させているとき,\SpecialChar LyX
20666 は.lyxファイル中で異なった行末記号を使用することになります.これは,\SpecialChar LyX
20667 の機能に関する限り問題になりま
20668 せんが,コミット差分は巨大になり,マージではコンフリクトを引き起こしがちです.幸いにして,SVNは,.lyxファイルを
20669 \begin_inset Flex Code
20670 status collapsed
20671
20672 \begin_layout Plain Layout
20673 native
20674 \end_layout
20675
20676 \end_inset
20677
20678 モードに切り替える際
20679 \begin_inset Foot
20680 status collapsed
20681
20682 \begin_layout Plain Layout
20683 手短には
20684 \begin_inset Flex Code
20685 status collapsed
20686
20687 \begin_layout Plain Layout
20688 svn propset svn:eol-style native FILE_NAME
20689 \end_layout
20690
20691 \end_inset
20692
20693
20694 \end_layout
20695
20696 \end_inset
20697
20698 ,CR/LF問題をどのように取り扱えばいいかを知っているので大丈夫です
20699 \begin_inset Foot
20700 status collapsed
20701
20702 \begin_layout Plain Layout
20703 \begin_inset Flex URL
20704 status collapsed
20705
20706 \begin_layout Plain Layout
20707
20708 http://svnbook.red-bean.com/en/1.4/svn.advanced.props.file-portability.html
20709 \end_layout
20710
20711 \end_inset
20712
20713
20714 \end_layout
20715
20716 \end_inset
20717
20718
20719 \end_layout
20720
20721 \begin_layout Subsection
20722 \SpecialChar LyX
20723 におけるGITコマンド
20724 \end_layout
20725
20726 \begin_layout Standard
20727 \SpecialChar LyX
20728 で,最小限のGITコマンドがサポートされるようになりました.これらのコマンドは,
20729 \family sans
20730 ファイル\SpecialChar menuseparator
20731 バージョン管理
20732 \family default
20733 にあります.リポジトリのアクセスに,パスワード保護されたsshを使用している場合には,ターミナルウィンドウでの操作をするように促されます.\SpecialChar LyX
20734 は,GIT
20735  1.7に対して試験を行っています.
20736 \end_layout
20737
20738 \begin_layout Standard
20739 GITと他のバージョン管理システムとの大きな相違点は,GITの配布形態にあります.伝統的なバージョン管理システムでは,リポジトリをホストする,中心となるサーバー
20740 があります.ユーザーは変更点をサーバーにコミットし,他のユーザーが行った更新分をサーバーから受け取ります.一方,GITでは,ユーザーは,ローカルのリポジトリにコ
20741 ミットを行います.ローカルリポジトリは,GITコマンドの
20742 \begin_inset Flex Code
20743 status open
20744
20745 \begin_layout Plain Layout
20746 pull
20747 \end_layout
20748
20749 \end_inset
20750
20751 または
20752 \begin_inset Flex Code
20753 status open
20754
20755 \begin_layout Plain Layout
20756 push
20757 \end_layout
20758
20759 \end_inset
20760
20761 を使って,1つ以上のリモートリポジトリと同期されます.\SpecialChar LyX
20762 は,リモートのGITリポジトリとは,一切関わりません.CVSやSVNの集権的リポジトリに対して行うのと同じ
20763 ことを,ローカルのリポジトリに対してのみ行います.リモートのGITリポジトリを使用している場合には,お好みのGITクライアントを使用して,
20764 \begin_inset Flex Code
20765 status open
20766
20767 \begin_layout Plain Layout
20768 pull
20769 \end_layout
20770
20771 \end_inset
20772
20773 または
20774 \begin_inset Flex Code
20775 status open
20776
20777 \begin_layout Plain Layout
20778 push
20779 \end_layout
20780
20781 \end_inset
20782
20783 の操作を行う必要があります.
20784 \end_layout
20785
20786 \begin_layout Subsubsection
20787 登録
20788 \end_layout
20789
20790 \begin_layout Standard
20791 お使いの文書が改訂管理下に置かれていなければ,メニューにはこの項目だけが表示されます.もし改訂管理が有効ならば,
20792 \family sans
20793 登録
20794 \family default
20795 項目は表示されません.
20796 \end_layout
20797
20798 \begin_layout Standard
20799 本コマンドは,既に文書のあるディレクトリをGIT管理下に置いている場合に
20800 \emph on
20801 のみ
20802 \emph default
20803 (すなわち
20804 \begin_inset Flex Code
20805 status collapsed
20806
20807 \begin_layout Plain Layout
20808 .git/index
20809 \end_layout
20810
20811 \end_inset
20812
20813 ファイルが存在する場合にのみ),お使いの文書をGITに登録します.つまり,アーカイブはご自分でチェックアウトしなくてはなりません.
20814 \end_layout
20815
20816 \begin_layout Standard
20817 すると,文書の最初の説明文を入力するように促されます.登録したファイルは,まだコミットされたわけではないことに注意してください.
20818 \end_layout
20819
20820 \begin_layout Standard
20821 実行されるGITコマンドは,
20822 \begin_inset Flex Code
20823 status collapsed
20824
20825 \begin_layout Plain Layout
20826 git add "<ファイル名>"
20827 \end_layout
20828
20829 \end_inset
20830
20831 です.
20832 \end_layout
20833
20834 \begin_layout Standard
20835 スイッチの説明は
20836 \begin_inset Flex Code
20837 status collapsed
20838
20839 \begin_layout Plain Layout
20840 man git
20841 \end_layout
20842
20843 \end_inset
20844
20845 をお読みください.
20846 \end_layout
20847
20848 \begin_layout Subsubsection
20849 変更をチェックイン
20850 \end_layout
20851
20852 \begin_layout Standard
20853 ファイルの編集を終えたら,変更をコミットします.このとき,変更の説明文を入れるよう促されます.その後,変更がコミットされます.
20854 \end_layout
20855
20856 \begin_layout Standard
20857 GITコマンド:
20858 \begin_inset Flex Code
20859 status collapsed
20860
20861 \begin_layout Plain Layout
20862 git commit -q -m
20863 \begin_inset Quotes erd
20864 \end_inset
20865
20866 <入力した説明文>
20867 \begin_inset Quotes erd
20868 \end_inset
20869
20870  "<ファイル名>"
20871 \end_layout
20872
20873 \end_inset
20874
20875
20876 \end_layout
20877
20878 \begin_layout Subsubsection
20879 リポジトリ版に戻す
20880 \end_layout
20881
20882 \begin_layout Standard
20883 これは,最後のチェックイン以降,文書に加えられた変更をすべて廃棄します.変更が廃棄される前に警告が表示されます.
20884 \end_layout
20885
20886 \begin_layout Standard
20887 GITコマンド:
20888 \begin_inset Flex Code
20889 status collapsed
20890
20891 \begin_layout Plain Layout
20892 git checkout -q 
20893 \begin_inset Quotes eld
20894 \end_inset
20895
20896 <ファイル名>
20897 \begin_inset Quotes erd
20898 \end_inset
20899
20900
20901 \end_layout
20902
20903 \end_inset
20904
20905
20906 \end_layout
20907
20908 \begin_layout Subsubsection
20909 ファイル名変更
20910 \end_layout
20911
20912 \begin_layout Standard
20913 これは,現行文書のファイル名を変更します.最後のチェックイン以降,変更が加えられていないサラの文書であることが要求されます.ファイル名とコピー操作の説明を入力す
20914 るように促され,その後,ローカルとリポジトリの両方でファイル名が変更されます.新旧ファイル名の文書の親ディレクトリが異なる場合には,コピーにインクルードされたフ
20915 ァイルの相対パスは,(
20916 \family sans
20917 ファイル\SpecialChar menuseparator
20918 名前をつけて保存\SpecialChar ldots
20919
20920 \family default
20921 と同様に)全て調整されます.最後に,新ファイル名を使ってファイルが再度読み込まれます.
20922 \end_layout
20923
20924 \begin_layout Labeling
20925 \labelwidthstring 00.00.0000
20926 GITコマンド:
20927 \end_layout
20928
20929 \begin_layout Labeling
20930 \labelwidthstring 00.00.0000
20931 \begin_inset Flex Code
20932 status collapsed
20933
20934 \begin_layout Plain Layout
20935 git mv "<ファイル名>" "<新ファイル名>"
20936 \end_layout
20937
20938 \end_inset
20939
20940
20941 \end_layout
20942
20943 \begin_layout Labeling
20944 \labelwidthstring 00.00.0000
20945 \begin_inset Flex Code
20946 status collapsed
20947
20948 \begin_layout Plain Layout
20949 git commit
20950 \end_layout
20951
20952 \end_inset
20953
20954
20955 \end_layout
20956
20957 \begin_layout Subsubsection
20958 履歴を表示
20959 \end_layout
20960
20961 \begin_layout Standard
20962 これは,GIT文書の全履歴を表示します.
20963 \begin_inset Flex Code
20964 status collapsed
20965
20966 \begin_layout Plain Layout
20967 git log 
20968 \begin_inset Quotes eld
20969 \end_inset
20970
20971 <ファイル名>
20972 \begin_inset Quotes erd
20973 \end_inset
20974
20975
20976 \end_layout
20977
20978 \end_inset
20979
20980 の出力がブラウザに表示されます.
20981 \end_layout
20982
20983 \begin_layout Subsubsection
20984 改訂情報
20985 \end_layout
20986
20987 \begin_layout Standard
20988 \SpecialChar LyX
20989 は,ファイルの最終コミットのGITハッシュ番号・著者名・最終コミットの日時をサポートします.これらの情報は,すべて
20990 \family typewriter
20991 git log -n 1 --pretty=format:%H%n%an%n%ai
20992 \family default
20993 によって抽出されます.ツリーバージョン情報は,
20994 \family typewriter
20995 git describe --abbrev --dirty --long
20996 \family default
20997 で取得されます.詳細については,第
20998 \begin_inset CommandInset ref
20999 LatexCommand ref
21000 reference "subsec:VCS改訂情報"
21001
21002 \end_inset
21003
21004 節を参照してください.
21005 \end_layout
21006
21007 \begin_layout Subsection
21008 さらなる調整
21009 \end_layout
21010
21011 \begin_layout Standard
21012 vcコマンド機構が最近になって付け加えられたおかげで,\SpecialChar LyX
21013 のパワーユーザは,改訂管理のための自製コマンドを作ることができるようになりました.
21014 \end_layout
21015
21016 \begin_layout Standard
21017 たとえば,以下のようにして,二つのTortoiseSVNコマンドを直接統合することができます.
21018 \end_layout
21019
21020 \begin_layout Description
21021 コミット: 
21022 \begin_inset Flex Code
21023 status collapsed
21024
21025 \begin_layout Plain Layout
21026 vc-command DR "." "TortoiseProc /command:commit /path:$$p"
21027 \end_layout
21028
21029 \end_inset
21030
21031
21032 \end_layout
21033
21034 \begin_layout Description
21035 元に戻す: 
21036 \begin_inset Flex Code
21037 status collapsed
21038
21039 \begin_layout Plain Layout
21040 vc-command DR "." "TortoiseProc /command:revert /path:$$p"
21041 \end_layout
21042
21043 \end_inset
21044
21045
21046 \end_layout
21047
21048 \begin_layout Subsection
21049 バージョン管理と文書比較
21050 \end_layout
21051
21052 \begin_layout Standard
21053 バージョン管理は,通常
21054 \begin_inset Flex Code
21055 status collapsed
21056
21057 \begin_layout Plain Layout
21058 diff
21059 \end_layout
21060
21061 \end_inset
21062
21063 ダンプを生成することによって,改訂版の間の変更点を検査するのが,典型的な使用法です.これは平文ファイルには有効なのですが,複雑な構造を持つ\SpecialChar LyX
21064 ファイルの場合には,あ
21065 まり便利ではありません.そこで,\SpecialChar LyX
21066 は独自の文書比較機能を提供しています.この機能を呼び出すには2つの方法があります.1つは,\SpecialChar LyX
21067
21068 \begin_inset Flex Code
21069 status collapsed
21070
21071 \begin_layout Plain Layout
21072 VC_COMPARE
21073 \end_layout
21074
21075 \end_inset
21076
21077 関数を直接呼び出す方法であり(詳細は\SpecialChar LyX
21078 関数説明書を参照),もう1つは
21079 \begin_inset Flex MenuItem
21080 status collapsed
21081
21082 \begin_layout Plain Layout
21083 旧改訂と比較\SpecialChar ldots
21084
21085 \end_layout
21086
21087 \end_inset
21088
21089 メニューないしアイコンを使用する方法です.当該文書のうち,任意の2つの改訂版を比較することもできますし,編集中の現行版を古い改訂版と比較することもできます(この
21090 とき改訂版遡及数「
21091 \begin_inset Flex MenuItem
21092 status collapsed
21093
21094 \begin_layout Plain Layout
21095 0
21096 \end_layout
21097
21098 \end_inset
21099
21100 」は,編集中のファイルと最後にコミットした改訂版との比較を意味します).
21101 \end_layout
21102
21103 \begin_layout Standard
21104 この機能は,SVNとRCSでサポートされていますが,RCSは,より複雑なバージョン付けスキームを持っているため,制約があります.ダイアログ中で改訂版を指定する際
21105 の数字は,つねにRCS改訂番号の最後の数を指し示します(例:「1.2.35」版のときには「35」).現在のところ,改訂のGIT表記はサポートされておらず,HEAD~
21106 Xの形で表記されるXステップ前の改訂版を,編集中文書と比較することのみが可能です.
21107 \end_layout
21108
21109 \begin_layout Section
21110 文芸プログラミング
21111 \end_layout
21112
21113 \begin_layout Standard
21114
21115 \noun on
21116 Kayvan Sylvan
21117 \noun default
21118 (kayvan@sylvan.com)改訂 
21119 \noun on
21120 Edmar Wienskoski Jr.
21121 \noun default
21122 (edmar-w-jr@technologist.com)原文
21123 \end_layout
21124
21125 \begin_layout Subsection
21126 はじめに
21127 \end_layout
21128
21129 \begin_layout Standard
21130 この節の主な目的は,文芸的プログラミング(literate programming)のために,\SpecialChar LyX
21131 をどう使えばよいかをお見せすることです.ここでは,あなたがこのプロ
21132 グラミング技術をよくご存じで,「tangling」や「weaving」の意味するところを知っているものとして説明します.そうでない場合には,以下の各節にあるウェ
21133 ブリンクをたどってください.そこには,かつての開発の歴史から最新のツールチップまで,たくさんの良質なドキュメンテーションがあります.
21134 \end_layout
21135
21136 \begin_layout Standard
21137 また,あなたが,\SpecialChar LyX
21138 の設定を変更することを厭わない程度まで\SpecialChar LyX
21139 に習熟しており,Xリソースファイルにも親しんでいることを前提にしています.そうでない場合は,あなたの必要と
21140 するトピックを扱っている,\SpecialChar LyX
21141 の他の説明書で調べてください.
21142 \end_layout
21143
21144 \begin_layout Subsection
21145 文芸プログラミング
21146 \end_layout
21147
21148 \begin_layout Standard
21149 以下は,文芸プログラミング FAQからの抜粋です.
21150 \end_layout
21151
21152 \begin_layout Quotation
21153 文芸プログラミングは,人間が読むのに適した形でのドキュメンテーションとソースの組合わせです.実際,文芸的プログラムは楽しい読み物であるべきであり,さらには参加し
21154 たいとさえ思わせるべきなのです!(ボブ,ごめん.言わずにはいれなかった.)一般的に,文芸プログラムは,ソースとドキュメンテーションを同一ファイル上に結合したもの
21155 です.そして,文芸プログラミングツールは,ファイルを解析して,読むことのできるドキュメンテーションか,あるいはコンパイル可能なソースを生成します.文芸プログラミ
21156 ングのWEBスタイルは,D.
21157 \begin_inset space \thinspace{}
21158 \end_inset
21159
21160 E.
21161  Knuthが,\SpecialChar TeX
21162 組版ソフトウエアを開発中に作り出したものです.
21163 \end_layout
21164
21165 \begin_layout Standard
21166 他のエキスパートの発言です.
21167 \end_layout
21168
21169 \begin_layout Quotation
21170
21171 \emph on
21172 文芸プログラミングは,冗長なコメント付けと何が違いますか?
21173 \end_layout
21174
21175 \begin_layout Quotation
21176 3つの際立った特徴があります.重要な順に列挙すれば,
21177 \begin_inset Separator latexpar
21178 \end_inset
21179
21180
21181 \end_layout
21182
21183 \begin_deeper
21184 \begin_layout Itemize
21185 推敲の順序が柔軟
21186 \end_layout
21187
21188 \begin_layout Itemize
21189 ブラウジングの自動サポート
21190 \end_layout
21191
21192 \begin_layout Itemize
21193 特に図式と数式を含んだドキュメンテーションの組版
21194 \end_layout
21195
21196 \end_deeper
21197 \begin_layout Quotation
21198 などがあります.
21199 \end_layout
21200
21201 \begin_layout Standard
21202 あなたの興味に火を付けたところで書誌情報を見てみましょう.
21203 \end_layout
21204
21205 \begin_layout Subsubsection
21206 書誌情報
21207 \end_layout
21208
21209 \begin_layout Standard
21210 完全な文芸プログラミング FAQは
21211 \end_layout
21212
21213 \begin_layout Quote
21214 Literate Programming FAQ 
21215 \begin_inset Flex URL
21216 status collapsed
21217
21218 \begin_layout Plain Layout
21219
21220 http://www.xmarks.com/site/shelob.ce.ttu.edu/daves/lpfaq/faq.html
21221 \end_layout
21222
21223 \end_inset
21224
21225
21226 \end_layout
21227
21228 \begin_layout Standard
21229 にあります.
21230 \end_layout
21231
21232 \begin_layout Standard
21233 このFAQには,23(二十三です!)の文芸プログラミング用ツールが列挙されています.一部のツールは,特定のプログラミング言語用に特化したものですが,一般的な対象
21234 を持つものもあります.私は自分で使うのに,いくつかの理由から
21235 \noun on
21236 Noweb
21237 \noun default
21238 を選びました.
21239 \end_layout
21240
21241 \begin_layout Itemize
21242 説明文書を\SpecialChar LaTeX
21243 でもHTMLでも出力できる.
21244 \end_layout
21245
21246 \begin_layout Itemize
21247 開放的なアーキテクチャに持っているので,新しいフィルタをプラグインとして加えたり,自分が必要な特別な処理を実行することが容易である.
21248 \end_layout
21249
21250 \begin_layout Itemize
21251 すでに利用可能となっているフィルタの良質なコレクションがある(HTMLはその一つです).
21252 \end_layout
21253
21254 \begin_layout Itemize
21255 無料である.
21256 \end_layout
21257
21258 \begin_layout Standard
21259 Nowebのウェブページは
21260 \end_layout
21261
21262 \begin_layout Quote
21263 Nowebホームページ 
21264 \begin_inset Flex URL
21265 status collapsed
21266
21267 \begin_layout Plain Layout
21268
21269 http://www.cs.virginia.edu/~nr/noweb/
21270 \end_layout
21271
21272 \end_inset
21273
21274
21275 \end_layout
21276
21277 \begin_layout Standard
21278 にあります.ここから始めれば,たくさんの興味深いリンクや,文芸プログラミングの用例にたどり着くことができます.
21279 \end_layout
21280
21281 \begin_layout Subsection
21282 \SpecialChar LyX
21283 とNowebを使った文芸プログラミング
21284 \end_layout
21285
21286 \begin_layout Standard
21287 \SpecialChar LyX
21288 における文芸プログラミングのサポートは,\SpecialChar LyX
21289 の汎用変換機構を使用して実現しています.このサポートは「Noweb非依存」的な方法で提供されているので,LyXの設定を変
21290 更するだけで,自分の好きな他の文芸プログラミングツールを使って,この新しい\SpecialChar LyX
21291 の機能を利用することができます.
21292 \end_layout
21293
21294 \begin_layout Subsubsection
21295 ドキュメントとコードの生成(weavingおよびtangling)
21296 \end_layout
21297
21298 \begin_layout Paragraph
21299 nowebモジュールの使用
21300 \end_layout
21301
21302 \begin_layout Standard
21303 Nowebと\SpecialChar LyX
21304 の導入に成功したならば,新規文書を開いたときにはいつも,文書クラスを選択した後,
21305 \family sans
21306 文書\SpecialChar menuseparator
21307 設定
21308 \family default
21309 メニューで「noweb」モジュールを追加するようにしてください.Nowebが正しく導入されていれば,「モジュール」リンクをクリックした際,利用可能リストに「no
21310 web」モジュールが表示され,文書に追加できるようになっています.
21311 \end_layout
21312
21313 \begin_layout Paragraph
21314 コードの入力
21315 \end_layout
21316
21317 \begin_layout Standard
21318 \SpecialChar LyX
21319 では,
21320 \begin_inset Flex Noun
21321 status collapsed
21322
21323 \begin_layout Plain Layout
21324 Chunk
21325 \end_layout
21326
21327 \end_inset
21328
21329 という名前のレイアウトを使えば,コードを入力することができます.Nowebは次のようにchunks を区切ります.
21330 \end_layout
21331
21332 \begin_layout LyX-Code
21333 <<My code>>=
21334 \end_layout
21335
21336 \begin_layout LyX-Code
21337   code
21338 \end_layout
21339
21340 \begin_layout LyX-Code
21341   more code
21342 \end_layout
21343
21344 \begin_layout LyX-Code
21345   even more code
21346 \end_layout
21347
21348 \begin_layout LyX-Code
21349   @
21350 \end_layout
21351
21352 \begin_layout Standard
21353 問題は<<と@の間にあるものを完全にそのままの形で扱わなければならないことです.つまり,\SpecialChar LyX
21354 は,この間に書かれたものを特別に解釈することは決してあってはなりません.
21355 これも
21356 \begin_inset Flex Noun
21357 status collapsed
21358
21359 \begin_layout Plain Layout
21360 Chunk
21361 \end_layout
21362
21363 \end_inset
21364
21365 によって取り扱われ,通常の段落のように見えますが,自由に空白を入れることができます.
21366 \end_layout
21367
21368 \begin_layout Standard
21369 特殊な注釈として,chunk内でNowebの「%def」を使えば,Nowebのidentifierの相互参照に項目を加えることができます.次の例を見てください.
21370 \end_layout
21371
21372 \begin_layout LyX-Code
21373 <<My chunk>>=
21374 \end_layout
21375
21376 \begin_layout LyX-Code
21377 def some_function(args):
21378 \end_layout
21379
21380 \begin_layout LyX-Code
21381    "This is the doc string for this function."
21382 \end_layout
21383
21384 \begin_layout LyX-Code
21385    print "My args: ", args
21386 \end_layout
21387
21388 \begin_layout LyX-Code
21389 @ %def some_function
21390 \end_layout
21391
21392 \begin_layout Standard
21393 これをどのように使って,その結果相互参照がどうなるかは
21394 \emph on
21395 LIBDIR/examples/listerrors.lyx
21396 \emph default
21397 の中の文芸pythonプログラムを見るとよくわかります.
21398 \end_layout
21399
21400 \begin_layout Paragraph
21401 説明文書の生成
21402 \end_layout
21403
21404 \begin_layout Standard
21405 この時点で,適切な文書クラスを持ち,いくつかのコードとテキストが入った新規文書ファイルが作成されているはずです.これをどうやって印刷したらいいのでしょう.答えは
21406 簡単で,通常の文書で行うように
21407 \family sans
21408 文書\SpecialChar menuseparator
21409 表示
21410 \family default
21411 等を選ぶだけです.特別な手続きは必要ありません.
21412 \end_layout
21413
21414 \begin_layout Standard
21415 理解を助けるために,\SpecialChar LyX
21416 の内部で何が起っているかを説明しておきましょう.
21417 \end_layout
21418
21419 \begin_layout Enumerate
21420
21421 \family sans
21422 文書\SpecialChar menuseparator
21423 更新
21424 \family default
21425 が選択されると,\SpecialChar LaTeX
21426 ファイルがつくられます.
21427 \begin_inset Separator latexpar
21428 \end_inset
21429
21430
21431 \end_layout
21432
21433 \begin_deeper
21434 \begin_layout Standard
21435 文書が文芸プログラミング用のクラスであった場合には,拡張子に(
21436 \begin_inset Flex MenuItem
21437 status collapsed
21438
21439 \begin_layout Plain Layout
21440 設定
21441 \end_layout
21442
21443 \end_inset
21444
21445 パネルで設定した)文芸プログラム用のものがつけられます.それ以外は .texが拡張子に使われます.
21446 \end_layout
21447
21448 \end_deeper
21449 \begin_layout Enumerate
21450 違いがファイル名だけなのに注意してください.\SpecialChar LyX
21451 による特別な処理は必要ありません.
21452 \begin_inset Flex Noun
21453 status collapsed
21454
21455 \begin_layout Plain Layout
21456 Chunk
21457 \end_layout
21458
21459 \end_inset
21460
21461 環境でコードを入力するのだけがポイントです.
21462 \end_layout
21463
21464 \begin_layout Enumerate
21465 文書が何らかの文芸プログラムクラスなら,\SpecialChar LyX
21466 は,\SpecialChar LyX
21467 からNowebへの内部変換子を用い,それからNowebから\SpecialChar LaTeX
21468 への変換子
21469 \begin_inset Foot
21470 status collapsed
21471
21472 \begin_layout Plain Layout
21473 これらの変換子は,
21474 \family sans
21475 ツール\SpecialChar menuseparator
21476 設定
21477 \family default
21478 パネルの変換子タブに定義されています.変換子の一般的な情報については,取扱説明書『
21479 \emph on
21480 カスタマイズ篇
21481 \emph default
21482 』の「
21483 \emph on
21484 変換子
21485 \emph default
21486 」の節をご覧ください.
21487 \end_layout
21488
21489 \end_inset
21490
21491 を使って\SpecialChar LaTeX
21492 ファイルを生成します.
21493 \begin_inset Separator latexpar
21494 \end_inset
21495
21496
21497 \end_layout
21498
21499 \begin_deeper
21500 \begin_layout Standard
21501 それ以外の場合はこのステップを飛ばします.
21502 \end_layout
21503
21504 \end_deeper
21505 \begin_layout Enumerate
21506 最後に\SpecialChar LaTeX
21507 が実行され,通常の文書と同じ後処理が行われます.
21508 \end_layout
21509
21510 \begin_layout Standard
21511 様々な変換子が実行するコマンドを変更すれば,簡単に,特定の「文芸プログラムツール」から変更することができます.
21512 \end_layout
21513
21514 \begin_layout Paragraph
21515 コードの生成
21516 \end_layout
21517
21518 \begin_layout Standard
21519 ビルドメニューが選ばれた場合や,それに対応するツールバーのボタンが押された場合,上のステップ1と同様に\SpecialChar LaTeX
21520 ファイルが生成されます.それから\SpecialChar LyX
21521
21522 \family typewriter
21523 Noweb->Program
21524 \family default
21525 のコンバータを起動します.通常は,このコンバータは(他のコンバータと同じように)2つの部分からできています.
21526 \end_layout
21527
21528 \begin_layout Enumerate
21529 変換プログラム.このプログラムは,一つのフォーマットから他のフォーマットへの変換を行います(この場合は,Nowebフォーマットからプログラムの疑似フォーマットへ
21530 変換します).
21531 \end_layout
21532
21533 \begin_layout Enumerate
21534 エラーログ解析子.これはエラーメッセージを\SpecialChar LyX
21535 が理解できる形へ書き直します.これによって,\SpecialChar LyX
21536 はファイルバッファの正しい位置へエラーボックスを配置することができます.
21537 \end_layout
21538
21539 \begin_layout Standard
21540 冒頭部,「変換子」設定は
21541 \begin_inset Newline newline
21542 \end_inset
21543
21544
21545 \begin_inset Quotes eld
21546 \end_inset
21547
21548
21549 \family typewriter
21550 build-script $$i $$r
21551 \family default
21552
21553 \begin_inset Quotes erd
21554 \end_inset
21555
21556
21557 \begin_inset Newline newline
21558 \end_inset
21559
21560 と指定します.これは基本的に,\SpecialChar LyX
21561
21562 \begin_inset Quotes erd
21563 \end_inset
21564
21565
21566 \family typewriter
21567 build-script
21568 \family default
21569
21570 \begin_inset Quotes erd
21571 \end_inset
21572
21573 (プログラムかスクリプト名)を(一般には\SpecialChar LyX
21574 の一時ファイル用のディレクトリにつくられる),Nowebファイルの名前と元の\SpecialChar LyX
21575 ファイルのディレクトリパスを使って呼び出すこ
21576 とを意味しています.
21577 \end_layout
21578
21579 \begin_layout Standard
21580 以下に「build-script」の一例を書いておきます.パスが通っているディレクトリに置いて使います.
21581 \end_layout
21582
21583 \begin_layout Standard
21584 \begin_inset VSpace defskip
21585 \end_inset
21586
21587
21588 \begin_inset Newpage pagebreak
21589 \end_inset
21590
21591
21592 \end_layout
21593
21594 \begin_layout Standard
21595
21596 \family sans
21597 #!/bin/sh
21598 \end_layout
21599
21600 \begin_layout Standard
21601
21602 \family sans
21603 #
21604 \end_layout
21605
21606 \begin_layout Standard
21607
21608 \family sans
21609 notangle -Rbuild-script $1 | env NOWEB_SOURCE=$1 NOWEB_OUTPUT_DIR=$2 sh
21610 \end_layout
21611
21612 \begin_layout Standard
21613 \begin_inset VSpace defskip
21614 \end_inset
21615
21616
21617 \end_layout
21618
21619 \begin_layout Standard
21620 変換子設定の次の部分は「フラグ」で,これは
21621 \begin_inset Quotes erd
21622 \end_inset
21623
21624
21625 \family typewriter
21626 parselog=$$s/scripts/listerrors
21627 \family default
21628
21629 \begin_inset Quotes erd
21630 \end_inset
21631
21632 に設定されます.
21633 \begin_inset Newline newline
21634 \end_inset
21635
21636 これは,
21637 \begin_inset Quotes erd
21638 \end_inset
21639
21640 build-script
21641 \begin_inset Quotes erd
21642 \end_inset
21643
21644 プロセスが生成したエラーを
21645 \begin_inset Quotes erd
21646 \end_inset
21647
21648 listerrors
21649 \begin_inset Quotes erd
21650 \end_inset
21651
21652 プログラムを介して処理するものです.
21653 \end_layout
21654
21655 \begin_layout Standard
21656 ビルドは,通常\SpecialChar LyX
21657 の一時ディレクトリで行われるので,変換によって生成されたファイルはそのディレクトリに置かれます.\SpecialChar LyX
21658 は,主要ファイルとみなされるものをコピーして取り出
21659 しますが,
21660 \family typewriter
21661 Noweb→プログラム
21662 \family default
21663 変換は複数のファイルを生成することがあるので,\SpecialChar LyX
21664 を閉じる際に大半が削除される可能性があります.これが,NOWEB_OUTPUT_DIR環境変数を渡して,build
21665 -script chunkが生成したファイルをその場所に置かれるようにする理由です.
21666 \end_layout
21667
21668 \begin_layout Paragraph
21669 文章中でのプログラムの構築操作の説明
21670 \end_layout
21671
21672 \begin_layout Standard
21673 \SpecialChar LyX
21674 とNowebの統合の最後の部分は,
21675 \begin_inset Quotes eld
21676 \end_inset
21677
21678 build-script
21679 \begin_inset Quotes erd
21680 \end_inset
21681
21682  chunkです.一般に,あなたのプログラムの構築操作の説明それ自身をchunkに入れて文章中に含めなければなりません.上の例のnoweb用のbuild-scr
21683 iptでは,chunkを見つけるのにnotangleコマンドを使い,shを使って起動します.
21684 \end_layout
21685
21686 \begin_layout Standard
21687 以下に典型的なchunkがどのようなものかを書いておきます.
21688 \end_layout
21689
21690 \begin_layout LyX-Code
21691 <<build-script>>=
21692 \begin_inset Newline newline
21693 \end_inset
21694
21695
21696 \end_layout
21697
21698 \begin_layout LyX-Code
21699 #!/bin/sh
21700 \begin_inset Newline newline
21701 \end_inset
21702
21703
21704 \begin_inset Newline newline
21705 \end_inset
21706
21707 if [ -z "${NOWEB_SOURCE}" ]
21708 \begin_inset Newline newline
21709 \end_inset
21710
21711 then
21712 \end_layout
21713
21714 \begin_layout LyX-Code
21715 NOWEB_SOURCE=myfile.nw
21716 \begin_inset Newline newline
21717 \end_inset
21718
21719 fi
21720 \begin_inset Newline newline
21721 \end_inset
21722
21723 [...
21724  code to extract files ...
21725  use NOWEB_OUTPUT_DIR here ...]
21726 \begin_inset Newline newline
21727 \end_inset
21728
21729 [...
21730  code to compile files ...]
21731 \begin_inset Newline newline
21732 \end_inset
21733
21734 @
21735 \end_layout
21736
21737 \begin_layout Standard
21738
21739 \emph on
21740 LIBDIR/examples/listerrors.lyx
21741 \emph default
21742
21743 \emph on
21744 LIBDIR/examples/Literate.lyx
21745 \emph default
21746 を見てください.この2つのファイルには異なる実装のlisterrorsプログラムが含まれていて,これまで説明してきた各々の部分が全体としてどのようになるかをわか
21747 ってもらうための例です.また,
21748 \emph on
21749 LIBDIR/examples/noweb2lyx.lyx
21750 \emph default
21751 も見てください.面白いことに,これらの3つのファイルは,Python,C,Perlが各々使われていて,\SpecialChar LyX
21752 の文芸プログラミングのサポートがプログラム言語に依存しない
21753 ことを示しています.
21754 \end_layout
21755
21756 \begin_layout Subsubsection
21757 \SpecialChar LyX
21758 の設定
21759 \end_layout
21760
21761 \begin_layout Standard
21762 すべての文芸プログラムのための設定は,
21763 \family sans
21764 ツール\SpecialChar menuseparator
21765 設定
21766 \family default
21767 パネルの「ファイル処理」タブですることができます.重要な部分を見ておきましょう.
21768 \end_layout
21769
21770 \begin_layout Description
21771 「NoWeb」形式 ファイル形式タブで設定します.ここで,Noweb特有の設定を行います.
21772 \family sans
21773 GUI名
21774 \family default
21775
21776 \family typewriter
21777 NoWeb
21778 \family default
21779 に,拡張子を
21780 \family typewriter
21781 .nw
21782 \family default
21783 に設定してください.これによって,\SpecialChar LyX
21784 に変換プロセスの第一段階でつくられるファイルに
21785 \family typewriter
21786 .nw
21787 \family default
21788 という拡張子をつけることを指示します.
21789 \end_layout
21790
21791 \begin_layout Description
21792 プログラム形式 これは,変換の終着点を示すためだけの,空の形式です(これがあることで,変換子を作ることができます).
21793 \end_layout
21794
21795 \begin_layout Description
21796
21797 \family sans
21798 NoWeb
21799 \family default
21800 ->
21801 \family sans
21802 \SpecialChar LaTeX
21803
21804 \family default
21805  この変換子は,文芸的文書の「weaving」を行います.Nowebの場合,「
21806 \family typewriter
21807 noweave -delay -index $$i > $$o
21808 \family default
21809 」に設定されます.
21810 \end_layout
21811
21812 \begin_layout Description
21813
21814 \family sans
21815 NoWeb
21816 \family default
21817 ->
21818 \family sans
21819 Program
21820 \family default
21821  これは「tangling」を行います.上述のように,変換子は「
21822 \family typewriter
21823 build-script $$i $$r
21824 \family default
21825 」,フラグは「
21826 \family typewriter
21827 parselog=$$s/scripts/listerrors
21828 \family default
21829 」となります.
21830 \end_layout
21831
21832 \begin_layout Subsubsection
21833 デバッグ機能拡張
21834 \end_layout
21835
21836 \begin_layout Standard
21837 ddd/gdbまたは他のデバッガで使える「server-goto-file-row」関数が新たに\SpecialChar LyX
21838 サーバに実装されました.
21839 \end_layout
21840
21841 \begin_layout Standard
21842 ddd/gdbでデバッグしているとき,一つの
21843 \begin_inset Flex Ruby
21844 status collapsed
21845
21846 \begin_layout Plain Layout
21847
21848 \begin_inset Argument post:1
21849 status collapsed
21850
21851 \begin_layout Plain Layout
21852 キー
21853 \end_layout
21854
21855 \end_inset
21856
21857
21858 \end_layout
21859
21860 \end_inset
21861
21862 ストロークで現在実行している位置でテキストエディタを起動できます.既定のdddの設定ではShift-Ctrl-Vになっています.この設定はdddで
21863 \begin_inset Flex MenuItem
21864 status collapsed
21865
21866 \begin_layout Plain Layout
21867 ツール\SpecialChar menuseparator
21868 設定\SpecialChar menuseparator
21869 ファイル書式
21870 \end_layout
21871
21872 \end_inset
21873
21874 ウインドウを表示して,
21875 \begin_inset Flex MenuItem
21876 status collapsed
21877
21878 \begin_layout Plain Layout
21879 編集プログラム
21880 \end_layout
21881
21882 \end_inset
21883
21884 エントリを変えると変えることができます.
21885 \end_layout
21886
21887 \begin_layout Standard
21888 新しい\SpecialChar LyX
21889 サーバの関数と,このdddの機能を使うために
21890 \begin_inset Flex MenuItem
21891 status collapsed
21892
21893 \begin_layout Plain Layout
21894 編集プログラム
21895 \end_layout
21896
21897 \end_inset
21898
21899 を次のように設定してください.
21900 \end_layout
21901
21902 \begin_layout Standard
21903 \begin_inset VSpace defskip
21904 \end_inset
21905
21906
21907 \end_layout
21908
21909 \begin_layout Standard
21910
21911 \family sans
21912 echo "LYXCMD:monitor:server-goto-file-row:@FILE@ @LINE@" >~/.lyxpipe.in
21913 \end_layout
21914
21915 \begin_layout Standard
21916 \begin_inset VSpace defskip
21917 \end_inset
21918
21919
21920 \end_layout
21921
21922 \begin_layout Standard
21923 こうしておくとdddを使っていてプログラムの編集したい場所があったとき,(dddのウインドウで)Shift-Ctrl-Vを押すだけでdddは\SpecialChar LyX
21924 サーバに情報を送り,\SpecialChar LyX
21925
21926 は同じファイルを表示し,カーソルはdddが示した場所へあらわれます.これでもうデバッグの最中に推測しながらスクロールして場所を探す必要がなくなります.
21927 \end_layout
21928
21929 \begin_layout Standard
21930 この機能が動くには\SpecialChar LyX
21931 サーバが利用可能でなければなりません(既定では\SpecialChar LyX
21932 サーバーは使えないようになっています).\SpecialChar LyX
21933 サーバを使えるようにするには,
21934 \family sans
21935
21936 \begin_inset Flex MenuItem
21937 status collapsed
21938
21939 \begin_layout Plain Layout
21940
21941 \family sans
21942 設定
21943 \end_layout
21944
21945 \end_inset
21946
21947
21948 \family default
21949 (
21950 \family sans
21951
21952 \begin_inset Flex MenuItem
21953 status collapsed
21954
21955 \begin_layout Plain Layout
21956
21957 \family sans
21958 パス
21959 \end_layout
21960
21961 \end_inset
21962
21963
21964 \family default
21965 タブ)の
21966 \family sans
21967
21968 \begin_inset Flex MenuItem
21969 status collapsed
21970
21971 \begin_layout Plain Layout
21972
21973 \family sans
21974 \SpecialChar LyX
21975 サーバーパイプ
21976 \family default
21977
21978 \end_layout
21979
21980 \end_inset
21981
21982
21983 \family default
21984
21985 \begin_inset Quotes eld
21986 \end_inset
21987
21988
21989 \family typewriter
21990 /home/<your-home-directory>/.lyx/lyxpipe
21991 \family default
21992
21993 \begin_inset Quotes erd
21994 \end_inset
21995
21996  のようにパスを指定してください.
21997 \end_layout
21998
21999 \begin_layout Standard
22000 詳しくは第
22001 \begin_inset CommandInset ref
22002 LatexCommand ref
22003 reference "chap:LyXサーバー"
22004
22005 \end_inset
22006
22007 章を読んでください.
22008 \end_layout
22009
22010 \begin_layout Subsubsection
22011 ツールバー拡張
22012 \end_layout
22013
22014 \begin_layout Standard
22015 ツールバーに加えることのできる6つの新しいボタンがあります.そのうちの5つのボタンは段落環境へのショートカットです.
22016 \family sans
22017 標準
22018 \family default
22019 ・節・
22020 \family sans
22021 \SpecialChar LaTeX
22022
22023 \family default
22024
22025 \family sans
22026 \SpecialChar LyX
22027 コード
22028 \family default
22029
22030 \family sans
22031 Chunk
22032 \family default
22033 環境用のボタンを用意しています.最後の一つはファイルメニュー項目の「Build Program」への
22034 \begin_inset Flex Ruby
22035 status collapsed
22036
22037 \begin_layout Plain Layout
22038
22039 \family roman
22040 \series medium
22041 \shape up
22042 \size normal
22043 \emph off
22044 \bar no
22045 \noun off
22046 \color none
22047 捷径
22048 \family default
22049 \series default
22050 \shape default
22051 \size default
22052 \emph default
22053 \bar default
22054 \noun default
22055 \color inherit
22056
22057 \begin_inset Argument post:1
22058 status collapsed
22059
22060 \begin_layout Plain Layout
22061 ショートカット
22062 \end_layout
22063
22064 \end_inset
22065
22066
22067 \end_layout
22068
22069 \end_inset
22070
22071 です.
22072 \end_layout
22073
22074 \begin_layout Standard
22075 \SpecialChar LyX
22076 はツールバーで使うためのいくつものボタンを用意しています.私のツールバーはこの6つのショートカットに
22077 \begin_inset Flex MenuItem
22078 status collapsed
22079
22080 \begin_layout Plain Layout
22081 文書\SpecialChar menuseparator
22082 更新\SpecialChar menuseparator
22083 DVI
22084 \end_layout
22085
22086 \end_inset
22087
22088
22089 \begin_inset Flex MenuItem
22090 status collapsed
22091
22092 \begin_layout Plain Layout
22093 文書\SpecialChar menuseparator
22094 表示\SpecialChar menuseparator
22095 DVI
22096 \end_layout
22097
22098 \end_inset
22099
22100 を組み合わせたものになっています.
22101 \end_layout
22102
22103 \begin_layout LyX-Code
22104 Toolbar
22105 \end_layout
22106
22107 \begin_layout LyX-Code
22108   Layouts
22109 \end_layout
22110
22111 \begin_layout LyX-Code
22112   Icon "layout Standard"
22113 \end_layout
22114
22115 \begin_layout LyX-Code
22116   Icon "layout Section"
22117 \end_layout
22118
22119 \begin_layout LyX-Code
22120   Icon "layout \SpecialChar LaTeX
22121 "
22122 \end_layout
22123
22124 \begin_layout LyX-Code
22125   Icon "layout \SpecialChar LyX
22126 -Code"
22127 \end_layout
22128
22129 \begin_layout LyX-Code
22130   Icon "layout Chunk"
22131 \end_layout
22132
22133 \begin_layout LyX-Code
22134   Separator
22135 \end_layout
22136
22137 \begin_layout LyX-Code
22138   Icon "buffer-view"
22139 \end_layout
22140
22141 \begin_layout LyX-Code
22142   Icon "buffer-typeset"
22143 \end_layout
22144
22145 \begin_layout LyX-Code
22146   Icon "build-program"
22147 \end_layout
22148
22149 \begin_layout LyX-Code
22150   Separator
22151 \end_layout
22152
22153 \begin_layout LyX-Code
22154 .
22155 \end_layout
22156
22157 \begin_layout LyX-Code
22158 .
22159 \end_layout
22160
22161 \begin_layout LyX-Code
22162 .
22163 \end_layout
22164
22165 \begin_layout LyX-Code
22166 End
22167 \end_layout
22168
22169 \begin_layout Subsubsection
22170 色の変更
22171 \end_layout
22172
22173 \begin_layout Standard
22174 \SpecialChar LyX
22175 ではいくつもの色を
22176 \begin_inset Flex MenuItem
22177 status collapsed
22178
22179 \begin_layout Plain Layout
22180 設定
22181 \end_layout
22182
22183 \end_inset
22184
22185 で変えることができます.人々が困りがちなのは,\SpecialChar LaTeX
22186 フォント色でしょう.これは,既定では赤になっていますが,chunkは\SpecialChar LaTeX
22187 フォントを使うことになっていて,文芸プログラミ
22188 ング文書には多くのchunkが現れるために,すべて赤で見ていると疲れてしまうかもしれません.これは,
22189 \begin_inset Flex MenuItem
22190 status collapsed
22191
22192 \begin_layout Plain Layout
22193 操作性\SpecialChar menuseparator
22194
22195 \end_layout
22196
22197 \end_inset
22198
22199 タブで変更することができます.
22200 \end_layout
22201
22202 \begin_layout Standard
22203 もう一つは,改行文字が画面に表示されていることでしょう.改行文字の色を背景の色と同じにすることで改行文字を見えなくできます.私は改行文字を背景の色に似ているが少
22204 し違う色にすることを勧めます.こうすると,改行文字があるのはわかりますが,じゃまにならないでしょう.
22205 \end_layout
22206
22207 \begin_layout Subsection
22208 \SpecialChar LyX
22209 とknitr/Sweave
22210 \end_layout
22211
22212 \begin_layout Standard
22213 knitrとSweaveへのサポートについては,用例ファイル
22214 \emph on
22215 knitr.lyx
22216 \emph default
22217 とSweave取扱説明書(
22218 \family sans
22219 ヘルプ\SpecialChar menuseparator
22220 用途別説明書
22221 \family default
22222 メニュー)に説明があります.
22223 \end_layout
22224
22225 \begin_layout Chapter
22226 特殊機能
22227 \begin_inset CommandInset label
22228 LatexCommand label
22229 name "chap:Special-features"
22230
22231 \end_inset
22232
22233
22234 \end_layout
22235
22236 \begin_layout Standard
22237 \SpecialChar LyX
22238 では,\SpecialChar LaTeX
22239 で可能なことは何でも出来ます.すべての\SpecialChar LaTeX
22240 の機能を直接サポートできるわけではありませんが,どんな場合でも\SpecialChar TeX
22241 コードを使用することはできます.本章は,ユーザの興味が
22242 有りそうな特別な機能について,若干取り上げます.図表やフロート,ボックス,注釈に関する特別な機能については,取扱説明書『
22243 \emph on
22244 埋込オブジェクト篇
22245 \emph default
22246 』をご参照ください.
22247 \end_layout
22248
22249 \begin_layout Section
22250 多段組
22251 \end_layout
22252
22253 \begin_layout Standard
22254 この機能は,文書設定の
22255 \family sans
22256 本文レイアウト
22257 \family default
22258 にある
22259 \family sans
22260 二段組文書
22261 \family default
22262 とは別の機能です.文書全体に二段組を行いたい場合には,
22263 \family sans
22264 二段組文書
22265 \family default
22266 オプションを利用することをお勧めします.その他の場合には,本機能をご使用ください.
22267 \end_layout
22268
22269 \begin_layout Standard
22270 文書中で多段組を行うには,\SpecialChar LaTeX
22271 パッケージ
22272 \series bold
22273 multicol
22274 \series default
22275
22276 \begin_inset Index idx
22277 status collapsed
22278
22279 \begin_layout Plain Layout
22280 \SpecialChar LaTeX
22281 ぱっけーじ @ \SpecialChar LaTeX
22282 パッケージ ! multicol
22283 \end_layout
22284
22285 \end_inset
22286
22287 を導入した上で,(
22288 \family sans
22289 文書\SpecialChar menuseparator
22290 設定\SpecialChar menuseparator
22291 モジュール
22292 \family default
22293 メニューから)
22294 \family sans
22295 多段組
22296 \family default
22297 モジュールを読み込んでください.
22298 \end_layout
22299
22300 \begin_layout Standard
22301 多段組中の脚注は,ページ下部に置かれ,各段の下ごとには置かれません.各段においては,フロートに
22302 \family sans
22303 段をまたぐ
22304 \family default
22305 オプションを使用する必要があるほかは,通常通りの使用をすることができます.
22306 \end_layout
22307
22308 \begin_layout Subsection
22309 基本
22310 \end_layout
22311
22312 \begin_layout Standard
22313 文章中で二段組を使用したい場合には,段組を始める場所で
22314 \family sans
22315 挿入\SpecialChar menuseparator
22316 任意設定差込枠\SpecialChar menuseparator
22317 多段組
22318 \family default
22319 メニューを使用して,多段組差込枠を挿入してください.二段組で印字されるべき文章は,全てこの差込枠の中に書いてください.
22320 \end_layout
22321
22322 \begin_layout Standard
22323 下記はその用例です.
22324 \end_layout
22325
22326 \begin_layout Standard
22327 \noindent
22328 \begin_inset Flex Multiple Columns
22329 status open
22330
22331 \begin_layout Plain Layout
22332 \noindent
22333
22334 \series bold
22335 \size small
22336 The Adventure of the Empty House
22337 \series default
22338
22339 \begin_inset Newline newline
22340 \end_inset
22341
22342 by Sir Arthur Conan Doyle
22343 \end_layout
22344
22345 \begin_layout Plain Layout
22346
22347 \size small
22348 It was in the spring of the year 1894 that all London was interested, and
22349  the fashionable world dismayed, by the murder of the Honourable Ronald
22350  Adair under most unusual and inexplicable circumstances.
22351  The public has already learned those particulars of the crime which came
22352  out in the police investigation, but a good deal was suppressed upon that
22353  occasion, since the case for the prosecution was so overwhelmingly strong
22354  that it was not necessary to bring forward all the facts.
22355  Only now, at the end of nearly ten years, am I allowed to supply those
22356  missing links which make up the whole of that remarkable chain.
22357  The crime was of interest in itself, but that interest was as nothing to
22358  me compared to the inconceivable sequel, which afforded me the greatest
22359  shock and surprise of any event in my adventurous life.
22360  Even now, after this long interval, I find myself thrilling as I think
22361  of it, and feeling once more that sudden flood of joy, amazement, and increduli
22362 ty which utterly submerged my mind.
22363  Let me say to that public, which has shown some interest in those glimpses
22364  which I have occasionally given them of the thoughts and actions of a very
22365  remarkable man, that they are not to blame me if I have not shared my knowledge
22366  with them, for I should have considered it my first duty to do so, had
22367  I not been barred by a positive prohibition from his own lips, which was
22368  only withdrawn upon the third of last month.
22369 \end_layout
22370
22371 \end_inset
22372
22373
22374 \end_layout
22375
22376 \begin_layout Standard
22377 三段以上にするには,カーソルを多段組差込枠の内部において,挿入\SpecialChar menuseparator
22378 段数メニューを使用してください.この差込枠の中に,欲しい段数を書き入れます(三段組の場合には「3」
22379 と書きます).
22380 \begin_inset Newline newline
22381 \end_inset
22382
22383 下記は三段組の例です.
22384 \end_layout
22385
22386 \begin_layout Standard
22387 \begin_inset Flex Multiple Columns
22388 status open
22389
22390 \begin_layout Plain Layout
22391
22392 \size footnotesize
22393 \begin_inset Argument 1
22394 status open
22395
22396 \begin_layout Plain Layout
22397 3
22398 \end_layout
22399
22400 \end_inset
22401
22402 It can be imagined that my close intimacy with Sherlock Holmes had interested
22403  me deeply in crime, and that after his disappearance I never failed to
22404  read with care the various problems which came before the public.
22405  And I even attempted, more than once, for my own private satisfaction,
22406  to employ his methods in their solution, though with indifferent success.
22407  There was none, however, which appealed to me like this tragedy of Ronald
22408  Adair.
22409  As I read the evidence at the inquest, which led up to a verdict of willful
22410  murder against some person or persons unknown, I realized more clearly
22411  than I had ever done the loss which the community had sustained by the
22412  death of Sherlock Holmes.
22413  There were points about this strange business which would, I was sure,
22414  have specially appealed to him, and the efforts of the police would have
22415  been supplemented, or more probably anticipated, by the trained observation
22416  and the alert mind of the first criminal agent in Europe.
22417  All day, as I drove upon my round, I turned over the case in my mind and
22418  found no explanation which appeared to me to be adequate.
22419  At the risk of telling a twice-told tale, I will recapitulate the facts
22420  as they were known to the public at the conclusion of the inquest.
22421 \end_layout
22422
22423 \end_inset
22424
22425
22426 \end_layout
22427
22428 \begin_layout Standard
22429 お望みならば10段組まで組むことができますが,文書の読者にとっては,あまり気持ちのいいものではないでしょう.
22430 \end_layout
22431
22432 \begin_layout Standard
22433 \begin_inset Newpage newpage
22434 \end_inset
22435
22436
22437 \end_layout
22438
22439 \begin_layout Subsection
22440 段組中の段組
22441 \end_layout
22442
22443 \begin_layout Standard
22444 また,段中に段を組むこともできます.
22445 \end_layout
22446
22447 \begin_layout Standard
22448 \begin_inset Flex Multiple Columns
22449 status open
22450
22451 \begin_layout Plain Layout
22452
22453 \size footnotesize
22454 The Honourable Ronald Adair was the second son of the Earl of Maynooth,
22455  at that time governor of one of the Australian colonies.
22456  Adair's mother had returned from Australia to undergo the operation for
22457  cataract, and she, her son Ronald, and her daughter Hilda were living together
22458  at 427 Park Lane.
22459 \end_layout
22460
22461 \begin_layout Plain Layout
22462 \begin_inset Flex Multiple Columns
22463 status open
22464
22465 \begin_layout Plain Layout
22466
22467 \size footnotesize
22468 The youth moved in the best society–had, so far as was known, no enemies
22469  and no particular vices.
22470  He had been engaged to Miss Edith Woodley, of Carstairs, but the engagement
22471  had been broken off by mutual consent some months before, and there was
22472  no sign that it had left any very profound feeling behind it.
22473  For the rest {sic} the man's life moved in a narrow and conventional circle,
22474  for his habits were quiet and his nature unemotional.
22475  Yet it was upon this easy-going young aristocrat that death came, in most
22476  strange and unexpected form, between the hours of ten and eleven-twenty
22477  on the night of March 30, 1894.
22478 \end_layout
22479
22480 \end_inset
22481
22482
22483 \end_layout
22484
22485 \begin_layout Plain Layout
22486
22487 \size footnotesize
22488 Ronald Adair was fond of cards–playing continually, but never for such stakes
22489  as would hurt him.
22490  He was a member of the Baldwin, the Cavendish, and the Bagatelle card clubs.
22491  It was shown that, after dinner on the day of his death, he had played
22492  a rubber of whist at the latter club.
22493  He had also played there in the afternoon.
22494
22495 \size default
22496  
22497 \size footnotesize
22498 The evidence of those who had played with him– Mr.
22499  Murray, Sir John Hardy, and Colonel Moran–showed that the game was whist,
22500  and that there was a fairly equal fall of the cards.
22501  Adair might have lost five pounds, but not more.
22502  His fortune was a considerable one, and such a loss could not in any way
22503  affect him.
22504  He had played nearly every day at one club or other, but he was a cautious
22505  player, and usually rose a winner.
22506  It came out in evidence that, in partnership with Colonel Moran, he had
22507  actually won as much as four hundred and twenty pounds in a sitting, some
22508  weeks before, from Godfrey Milner and Lord Balmoral.
22509  So much for his recent history as it came out at the inquest.
22510 \end_layout
22511
22512 \end_inset
22513
22514
22515 \end_layout
22516
22517 \begin_layout Subsection
22518 応用例
22519 \end_layout
22520
22521 \begin_layout Standard
22522 本節の用例は,多段組のさらに特別な機能を示すためのものです.
22523 \end_layout
22524
22525 \begin_layout Standard
22526 多段組機能についてさらに知りたい場合には,\SpecialChar LaTeX
22527 パッケージ
22528 \series bold
22529 multicol
22530 \series default
22531
22532 \begin_inset CommandInset citation
22533 LatexCommand cite
22534 key "multicol"
22535
22536 \end_inset
22537
22538 の取扱説明書をご覧ください.
22539 \end_layout
22540
22541 \begin_layout Subsubsection
22542 序文
22543 \end_layout
22544
22545 \begin_layout Standard
22546 多段組に序文を追記するには,カーソルを多段組差込枠内部に置き,
22547 \family sans
22548 挿入\SpecialChar menuseparator
22549 序文
22550 \family default
22551 メニューを使用してください.序文は,この差込枠内に書いてください.
22552 \begin_inset Newline newline
22553 \end_inset
22554
22555 序文のある文章の例を掲げます.
22556 \end_layout
22557
22558 \begin_layout Standard
22559 \begin_inset VSpace bigskip
22560 \end_inset
22561
22562
22563 \end_layout
22564
22565 \begin_layout Standard
22566 \begin_inset Flex Multiple Columns
22567 status open
22568
22569 \begin_layout Plain Layout
22570 \begin_inset Argument 2
22571 status open
22572
22573 \begin_layout Plain Layout
22574 And the story continues and continues and continues and continues\SpecialChar ldots
22575
22576 \end_layout
22577
22578 \end_inset
22579
22580
22581 \size small
22582 On the evening of the crime, he returned from the club exactly at ten.
22583  His mother and sister were out spending the evening with a relation.
22584  The servant deposed that she heard him enter the front room on the second
22585  floor, generally used as his sitting-room.
22586  She had lit a fire there, and as it smoked she had opened the window.
22587  No sound was heard from the room until eleven-twenty, the hour of the return
22588  of Lady Maynooth and her daughter.
22589  Desiring to say good-night, she attempted to enter her son's room.
22590  The door was locked on the inside, and no answer could be got to their
22591  cries and knocking.
22592  Help was obtained, and the door forced.
22593  The unfortunate young man was found lying near the table.
22594  His head had been horribly mutilated by an expanding revolver bullet, but
22595  no weapon of any sort was to be found in the room.
22596 \end_layout
22597
22598 \end_inset
22599
22600
22601 \end_layout
22602
22603 \begin_layout Standard
22604 最初の\SpecialChar TeX
22605 コードの後に,節宣言コマンドを\SpecialChar TeX
22606 コードとして使用すれば,節見出しを前書きとして使用することができます.例えば,
22607 \end_layout
22608
22609 \begin_layout Standard
22610
22611 \series bold
22612
22613 \backslash
22614 subsection{小節見出し}
22615 \end_layout
22616
22617 \begin_layout Standard
22618 というコマンドは,小節を生成します.以下の例では,前書きが小々節になっています.
22619 \end_layout
22620
22621 \begin_layout Standard
22622 \begin_inset Flex Multiple Columns
22623 status open
22624
22625 \begin_layout Plain Layout
22626 \begin_inset Argument 2
22627 status open
22628
22629 \begin_layout Plain Layout
22630 \begin_inset ERT
22631 status collapsed
22632
22633 \begin_layout Plain Layout
22634
22635
22636 \backslash
22637 subsubsection{
22638 \end_layout
22639
22640 \end_inset
22641
22642 これは序文の小々節見出しです
22643 \begin_inset ERT
22644 status collapsed
22645
22646 \begin_layout Plain Layout
22647
22648 }
22649 \end_layout
22650
22651 \end_inset
22652
22653
22654 \end_layout
22655
22656 \end_inset
22657
22658
22659 \size small
22660 A minute examination of the circumstances served only to make the case more
22661  complex.
22662  In the first place, no reason could be given why the young man should have
22663  fastened the door upon the inside.
22664  There was the possibility that the murderer had done this, and had afterwards
22665  escaped by the window.
22666  The drop was at least twenty feet, however, and a bed of crocuses in full
22667  bloom lay beneath.
22668  Neither the flowers nor the earth showed any sign of having been disturbed,
22669  nor were there any marks upon the narrow strip of grass which separated
22670  the house from the road.
22671  Apparently, therefore, it was the young man himself who had fastened the
22672  door.
22673  But how did he come by his death? No one could have climbed up to the window
22674  without leaving traces.
22675  Suppose a man had fired through the window, he would indeed be a remarkable
22676  shot who could with a revolver inflict so deadly a wound.
22677  Again, Park Lane is a frequented thoroughfare; there is a cab stand within
22678  a hundred yards of the house.
22679  No one had heard a shot.
22680 \end_layout
22681
22682 \end_inset
22683
22684
22685 \end_layout
22686
22687 \begin_layout Standard
22688 多段組を開始する部分に,必要とされる6行を確保出来るだけの垂直スペースがページに残されていない場合,多段組の前に改行が挿入されます.前書きの行数如何では,この必
22689 要行数を変更したいかもしれません.これは,カーソルを多段組差込枠内部の(もしあれば)序文の後に置き,
22690 \family sans
22691 挿入\SpecialChar menuseparator
22692 改頁前の余白
22693 \family default
22694 メニューを使用することで設定できます.この差込枠に,余白の大きさを「5cm」などと書き込んでください.
22695 \end_layout
22696
22697 \begin_layout Standard
22698 以下の例では,「7
22699 \backslash
22700 baselineskip」を用いて,必要行数を7行に指定しています(コマンド
22701 \series bold
22702
22703 \backslash
22704 baselineskip
22705 \series default
22706 は\SpecialChar TeX
22707 コードとして入力する必要があります).
22708 \end_layout
22709
22710 \begin_layout Standard
22711 \begin_inset Flex Multiple Columns
22712 status open
22713
22714 \begin_layout Plain Layout
22715 \begin_inset Argument 3
22716 status open
22717
22718 \begin_layout Plain Layout
22719 7
22720 \begin_inset ERT
22721 status collapsed
22722
22723 \begin_layout Plain Layout
22724
22725
22726 \backslash
22727 baselineskip
22728 \end_layout
22729
22730 \end_inset
22731
22732
22733 \end_layout
22734
22735 \end_inset
22736
22737
22738 \size small
22739 On the evening of the crime, he returned from the club exactly at ten.
22740  His mother and sister were out spending the evening with a relation.
22741  The servant deposed that she heard him enter the front room on the second
22742  floor, generally used as his sitting-room.
22743  She had lit a fire there, and as it smoked she had opened the window.
22744  No sound was heard from the room until eleven-twenty, the hour of the return
22745  of Lady Maynooth and her daughter.
22746  Desiring to say good-night, she attempted to enter her son's room.
22747  The door was locked on the inside, and no answer could be got to their
22748  cries and knocking.
22749  Help was obtained, and the door forced.
22750  The unfortunate young man was found lying near the table.
22751  His head had been horribly mutilated by an expanding revolver bullet, but
22752  no weapon of any sort was to be found in the room.
22753 \end_layout
22754
22755 \end_inset
22756
22757
22758 \end_layout
22759
22760 \begin_layout Subsubsection
22761 周囲の余白
22762 \end_layout
22763
22764 \begin_layout Standard
22765 多段組の前後の余白は,長さ
22766 \series bold
22767
22768 \backslash
22769 multicolsep
22770 \series default
22771 を変えることで変更することができます.例えば,\SpecialChar TeX
22772 コードで書かれたコマンド
22773 \end_layout
22774
22775 \begin_layout Standard
22776
22777 \series bold
22778
22779 \backslash
22780 setlength{
22781 \backslash
22782 multicolsep}{3cm}
22783 \end_layout
22784
22785 \begin_layout Standard
22786 は,その値を3
22787 \begin_inset space \thinspace{}
22788 \end_inset
22789
22790 cmに変更します.この変更は,多段組が始まる前に指定しなくてはなりません.既定値は13
22791 \begin_inset space \thinspace{}
22792 \end_inset
22793
22794 ptです.
22795 \end_layout
22796
22797 \begin_layout Standard
22798 以下の例では,
22799 \series bold
22800
22801 \backslash
22802 multicolsep
22803 \series default
22804 は2.5
22805 \begin_inset space \thinspace{}
22806 \end_inset
22807
22808 cmに指定されています.
22809 \end_layout
22810
22811 \begin_layout Standard
22812 \begin_inset ERT
22813 status open
22814
22815 \begin_layout Plain Layout
22816
22817
22818 \backslash
22819 setlength{
22820 \backslash
22821 multicolsep}{2.5cm}
22822 \end_layout
22823
22824 \end_inset
22825
22826
22827 \end_layout
22828
22829 \begin_layout Standard
22830 \begin_inset Flex Multiple Columns
22831 status open
22832
22833 \begin_layout Plain Layout
22834
22835 \size small
22836 All day I turned these facts over in my mind, endeavouring to hit upon some
22837  theory which could reconcile them all, and to find that line of least resistanc
22838 e which my poor friend had declared to be the starting-point of every investigat
22839 ion.
22840  I confess that I made little progress.
22841  In the evening I strolled across the Park, and found myself about six o'clock
22842  at the Oxford Street end of Park Lane.
22843  A group of loafers upon the pavements, all staring up at a particular window,
22844  directed me to the house which I had come to see.
22845  A tall, thin man with coloured glasses, whom I strongly suspected of being
22846  a plain-clothes detective, was pointing out some theory of his own, while
22847  the others crowded round to listen to what he said.
22848  I got as near him as I could, but his observations seemed to me to be absurd,
22849  so I withdrew again in some disgust.
22850  As I did so I struck against an elderly, deformed man, who had been behind
22851  me, and I knocked down several books which he was carrying.
22852 \end_layout
22853
22854 \end_inset
22855
22856
22857 \end_layout
22858
22859 \begin_layout Standard
22860 \begin_inset Note Greyedout
22861 status open
22862
22863 \begin_layout Plain Layout
22864
22865 \series bold
22866 【註】
22867 \backslash
22868 setlength
22869 \series default
22870 で指定した値は,再度変更されるまでは,以降のすべての多段組で使用されます.
22871 \end_layout
22872
22873 \end_inset
22874
22875
22876 \end_layout
22877
22878 \begin_layout Standard
22879 \begin_inset ERT
22880 status collapsed
22881
22882 \begin_layout Plain Layout
22883
22884
22885 \backslash
22886 setlength{
22887 \backslash
22888 multicolsep}{13pt}
22889 \end_layout
22890
22891 \end_inset
22892
22893
22894 \begin_inset Note Note
22895 status collapsed
22896
22897 \begin_layout Plain Layout
22898
22899 \lang english
22900 go back to the default
22901 \end_layout
22902
22903 \end_inset
22904
22905
22906 \end_layout
22907
22908 \begin_layout Standard
22909 \begin_inset Newpage newpage
22910 \end_inset
22911
22912
22913 \end_layout
22914
22915 \begin_layout Subsubsection
22916 改段
22917 \end_layout
22918
22919 \begin_layout Standard
22920 改段は,文章中の階段を行いたい位置に,\SpecialChar TeX
22921 コードで,コマンド
22922 \series bold
22923
22924 \backslash
22925 columnbreak{}
22926 \series default
22927 を挿入すれば,強制的に行うことができます.ただし,多くの場合,文章中に空白が挿入されることに注意してください.
22928 \begin_inset Newline newline
22929 \end_inset
22930
22931 以下が用例です.
22932 \end_layout
22933
22934 \begin_layout Standard
22935 \begin_inset Flex Multiple Columns
22936 status open
22937
22938 \begin_layout Plain Layout
22939
22940 \size small
22941 \begin_inset Quotes eld
22942 \end_inset
22943
22944 You're surprised to see me, sir,
22945 \begin_inset Quotes erd
22946 \end_inset
22947
22948  said he, in a strange, croaking voice.
22949 \end_layout
22950
22951 \begin_layout Plain Layout
22952
22953 \size small
22954 I acknowledged that I was.
22955 \end_layout
22956
22957 \begin_layout Plain Layout
22958
22959 \size small
22960 \begin_inset Quotes eld
22961 \end_inset
22962
22963 Well, I've a conscience, sir, and when I chanced to see you go into this
22964  house, as I came hobbling after you, I thought to myself, I'll just step
22965  in and see that kind gentleman, and tell him that if I was a bit gruff
22966  in my manner there was not any harm meant, and that I am much obliged to
22967  him for picking up my books.
22968 \begin_inset Quotes erd
22969 \end_inset
22970
22971
22972 \end_layout
22973
22974 \begin_layout Plain Layout
22975
22976 \size small
22977 \begin_inset Quotes eld
22978 \end_inset
22979
22980 You make too much of a trifle,
22981 \begin_inset Quotes erd
22982 \end_inset
22983
22984  said I.
22985  
22986 \begin_inset Quotes eld
22987 \end_inset
22988
22989 May I ask how you knew who I was?
22990 \begin_inset Quotes erd
22991 \end_inset
22992
22993  AFTER THIS SENTENCE THE COLUMN BREAK IS FORCED.
22994 \begin_inset ERT
22995 status collapsed
22996
22997 \begin_layout Plain Layout
22998
22999
23000 \backslash
23001 columnbreak{}
23002 \end_layout
23003
23004 \end_inset
23005
23006
23007 \end_layout
23008
23009 \begin_layout Plain Layout
23010
23011 \size small
23012 \begin_inset Quotes eld
23013 \end_inset
23014
23015 Well, sir, if it isn't too great a liberty, I am a neighbour of yours, for
23016  you'll find my little bookshop at the corner of Church Street, and very
23017  happy to see you, I am sure.
23018  Maybe you collect yourself, sir.
23019  Here's 
23020 \noun on
23021 British
23022 \begin_inset space ~
23023 \end_inset
23024
23025 Birds
23026 \noun default
23027 , and 
23028 \noun on
23029 Catullus
23030 \noun default
23031 , and 
23032 \noun on
23033 The Holy War
23034 \noun default
23035 –a bargain, every one of them.
23036  With five volumes you could just fill that gap on that second shelf.
23037  It looks untidy, does it not, sir?
23038 \begin_inset Quotes erd
23039 \end_inset
23040
23041
23042 \end_layout
23043
23044 \end_inset
23045
23046
23047 \end_layout
23048
23049 \begin_layout Subsubsection
23050 段間隔
23051 \end_layout
23052
23053 \begin_layout Standard
23054 段幅は自動的に計算されますが,段の間の余白は指定することができます.これは,長さ
23055 \series bold
23056
23057 \backslash
23058 columnsep
23059 \series default
23060 を変更することで実現できます.既定値は10
23061 \begin_inset space \thinspace{}
23062 \end_inset
23063
23064 ptです.以下は
23065 \series bold
23066
23067 \backslash
23068 columnsep
23069 \series default
23070 を3
23071 \begin_inset space \thinspace{}
23072 \end_inset
23073
23074 cmに設定した例です.
23075 \end_layout
23076
23077 \begin_layout Standard
23078 \begin_inset ERT
23079 status open
23080
23081 \begin_layout Plain Layout
23082
23083
23084 \backslash
23085 setlength{
23086 \backslash
23087 columnsep}{3cm}
23088 \end_layout
23089
23090 \end_inset
23091
23092
23093 \end_layout
23094
23095 \begin_layout Standard
23096 \begin_inset Flex Multiple Columns
23097 status open
23098
23099 \begin_layout Plain Layout
23100
23101 \size small
23102 My observations of No.
23103 \begin_inset space \space{}
23104 \end_inset
23105
23106 427 Park Lane did little to clear up the problem in which I was interested.
23107  The house was separated from the street by a low wall and railing, the
23108  whole not more than five feet high.
23109  It was perfectly easy, therefore, for anyone to get into the garden, but
23110  the window was entirely inaccessible, since there was no water pipe or
23111  anything which could help the most active man to climb it.
23112  More puzzled than ever, I retraced my steps to Kensington.
23113  I had not been in my study five minutes when the maid entered to say that
23114  a person desired to see me.
23115  To my astonishment it was none other than my strange old book collector,
23116  his sharp, wizened face peering out from a frame of white hair, and his
23117  precious volumes, a dozen of them at least, wedged under his right arm.
23118 \end_layout
23119
23120 \end_inset
23121
23122
23123 \end_layout
23124
23125 \begin_layout Standard
23126 \begin_inset ERT
23127 status collapsed
23128
23129 \begin_layout Plain Layout
23130
23131
23132 \backslash
23133 setlength{
23134 \backslash
23135 columnsep}{10pt}
23136 \end_layout
23137
23138 \end_inset
23139
23140
23141 \begin_inset Note Note
23142 status collapsed
23143
23144 \begin_layout Plain Layout
23145
23146 \lang english
23147 go back to the default
23148 \end_layout
23149
23150 \end_inset
23151
23152
23153 \end_layout
23154
23155 \begin_layout Subsubsection
23156 垂直線
23157 \end_layout
23158
23159 \begin_layout Standard
23160 段間には,長さ
23161 \series bold
23162
23163 \backslash
23164 columnseprule
23165 \series default
23166 の幅を持つ罫線が描かれます.罫線幅を0
23167 \begin_inset space \thinspace{}
23168 \end_inset
23169
23170 ptにすると(これが既定値です),罫線は出力されません.以下の例では,段を分かつ線は2
23171 \begin_inset space \thinspace{}
23172 \end_inset
23173
23174 pt幅に設定されています.
23175 \end_layout
23176
23177 \begin_layout Standard
23178 \begin_inset ERT
23179 status open
23180
23181 \begin_layout Plain Layout
23182
23183
23184 \backslash
23185 setlength{
23186 \backslash
23187 columnseprule}{2pt}
23188 \end_layout
23189
23190 \end_inset
23191
23192
23193 \end_layout
23194
23195 \begin_layout Standard
23196 \begin_inset Flex Multiple Columns
23197 status open
23198
23199 \begin_layout Plain Layout
23200
23201 \size small
23202 \begin_inset Quotes eld
23203 \end_inset
23204
23205 You're surprised to see me, sir,
23206 \begin_inset Quotes erd
23207 \end_inset
23208
23209  said he, in a strange, croaking voice.
23210 \end_layout
23211
23212 \begin_layout Plain Layout
23213
23214 \size small
23215 I acknowledged that I was.
23216 \end_layout
23217
23218 \begin_layout Plain Layout
23219
23220 \size small
23221 \begin_inset Quotes eld
23222 \end_inset
23223
23224 Well, I've a conscience, sir, and when I chanced to see you go into this
23225  house, as I came hobbling after you, I thought to myself, I'll just step
23226  in and see that kind gentleman, and tell him that if I was a bit gruff
23227  in my manner there was not any harm meant, and that I am much obliged to
23228  him for picking up my books.
23229 \begin_inset Quotes erd
23230 \end_inset
23231
23232
23233 \end_layout
23234
23235 \begin_layout Plain Layout
23236
23237 \size small
23238 \begin_inset Quotes eld
23239 \end_inset
23240
23241 You make too much of a trifle,
23242 \begin_inset Quotes erd
23243 \end_inset
23244
23245  said I.
23246  
23247 \begin_inset Quotes eld
23248 \end_inset
23249
23250 May I ask how you knew who I was?
23251 \begin_inset Quotes erd
23252 \end_inset
23253
23254
23255 \end_layout
23256
23257 \begin_layout Plain Layout
23258
23259 \size small
23260 \begin_inset Quotes eld
23261 \end_inset
23262
23263 Well, sir, if it isn't too great a liberty, I am a neighbour of yours, for
23264  you'll find my little bookshop at the corner of Church Street, and very
23265  happy to see you, I am sure.
23266  Maybe you collect yourself, sir.
23267  Here's 
23268 \noun on
23269 British
23270 \begin_inset space ~
23271 \end_inset
23272
23273 Birds
23274 \noun default
23275 , and 
23276 \noun on
23277 Catullus
23278 \noun default
23279 , and 
23280 \noun on
23281 The Holy War
23282 \noun default
23283 –a bargain, every one of them.
23284  With five volumes you could just fill that gap on that second shelf.
23285  It looks untidy, does it not, sir?
23286 \begin_inset Quotes erd
23287 \end_inset
23288
23289
23290 \end_layout
23291
23292 \end_inset
23293
23294
23295 \end_layout
23296
23297 \begin_layout Standard
23298 \begin_inset VSpace defskip
23299 \end_inset
23300
23301
23302 \end_layout
23303
23304 \begin_layout Standard
23305 罫線は,コマンド
23306 \series bold
23307
23308 \backslash
23309 columnseprulecolor
23310 \series default
23311 を再定義すれば,着色することができます.これは,多段組差込枠の前に\SpecialChar TeX
23312 コードで以下のコマンドを挿入すれば,実現できます.
23313 \begin_inset Newline newline
23314 \end_inset
23315
23316
23317 \series bold
23318
23319 \backslash
23320 renewcommand{
23321 \backslash
23322 columnseprulecolor}{
23323 \backslash
23324 color{red}}
23325 \series default
23326
23327 \begin_inset Newline newline
23328 \end_inset
23329
23330 このコマンド中の
23331 \series bold
23332 red
23333 \series default
23334 をお好みの色に変更してください.既定色とユーザー定義色の全てを使用することができます.既定色とユーザー定義色についての詳細な情報は,取扱説明書『
23335 \emph on
23336 埋込オブジェクト篇
23337 \emph default
23338 』の「
23339 \emph on
23340 色付き表
23341 \emph default
23342 」の節をご覧ください.既定色に戻すには,以下のコマンドを挿入してください.
23343 \begin_inset Newline newline
23344 \end_inset
23345
23346
23347 \series bold
23348
23349 \backslash
23350 renewcommand{
23351 \backslash
23352 columnseprulecolor}{
23353 \backslash
23354 normalcolor}
23355 \series default
23356
23357 \begin_inset Newline newline
23358 \end_inset
23359
23360 以下は,シアン色の罫線と1
23361 \begin_inset space \thinspace{}
23362 \end_inset
23363
23364 cmの段間隔を持つ例です.
23365 \end_layout
23366
23367 \begin_layout Standard
23368 \begin_inset ERT
23369 status open
23370
23371 \begin_layout Plain Layout
23372
23373
23374 \backslash
23375 setlength{
23376 \backslash
23377 columnsep}{1cm}
23378 \end_layout
23379
23380 \begin_layout Plain Layout
23381
23382
23383 \backslash
23384 renewcommand{
23385 \backslash
23386 columnseprulecolor}{
23387 \backslash
23388 color{cyan}}
23389 \end_layout
23390
23391 \end_inset
23392
23393
23394 \end_layout
23395
23396 \begin_layout Standard
23397 \begin_inset Flex Multiple Columns
23398 status open
23399
23400 \begin_layout Plain Layout
23401
23402 \size small
23403 \begin_inset Quotes eld
23404 \end_inset
23405
23406 You're surprised to see me, sir,
23407 \begin_inset Quotes erd
23408 \end_inset
23409
23410  said he, in a strange, croaking voice.
23411 \end_layout
23412
23413 \begin_layout Plain Layout
23414
23415 \size small
23416 I acknowledged that I was.
23417 \end_layout
23418
23419 \begin_layout Plain Layout
23420
23421 \size small
23422 \begin_inset Quotes eld
23423 \end_inset
23424
23425 Well, I've a conscience, sir, and when I chanced to see you go into this
23426  house, as I came hobbling after you, I thought to myself, I'll just step
23427  in and see that kind gentleman, and tell him that if I was a bit gruff
23428  in my manner there was not any harm meant, and that I am much obliged to
23429  him for picking up my books.
23430 \begin_inset Quotes erd
23431 \end_inset
23432
23433
23434 \end_layout
23435
23436 \begin_layout Plain Layout
23437
23438 \size small
23439 \begin_inset Quotes eld
23440 \end_inset
23441
23442 You make too much of a trifle,
23443 \begin_inset Quotes erd
23444 \end_inset
23445
23446  said I.
23447  
23448 \begin_inset Quotes eld
23449 \end_inset
23450
23451 May I ask how you knew who I was?
23452 \begin_inset Quotes erd
23453 \end_inset
23454
23455
23456 \end_layout
23457
23458 \begin_layout Plain Layout
23459
23460 \size small
23461 \begin_inset Quotes eld
23462 \end_inset
23463
23464 Well, sir, if it isn't too great a liberty, I am a neighbour of yours, for
23465  you'll find my little bookshop at the corner of Church Street, and very
23466  happy to see you, I am sure.
23467  Maybe you collect yourself, sir.
23468  Here's 
23469 \noun on
23470 British
23471 \begin_inset space ~
23472 \end_inset
23473
23474 Birds
23475 \noun default
23476 , and 
23477 \noun on
23478 Catullus
23479 \noun default
23480 , and 
23481 \noun on
23482 The Holy War
23483 \noun default
23484 –a bargain, every one of them.
23485  With five volumes you could just fill that gap on that second shelf.
23486  It looks untidy, does it not, sir?
23487 \begin_inset Quotes erd
23488 \end_inset
23489
23490
23491 \end_layout
23492
23493 \end_inset
23494
23495
23496 \end_layout
23497
23498 \begin_layout Standard
23499 \begin_inset ERT
23500 status collapsed
23501
23502 \begin_layout Plain Layout
23503
23504
23505 \backslash
23506 setlength{
23507 \backslash
23508 columnseprule}{0pt}
23509 \end_layout
23510
23511 \begin_layout Plain Layout
23512
23513
23514 \backslash
23515 renewcommand{
23516 \backslash
23517 columnseprulecolor}{
23518 \backslash
23519 normalcolor}
23520 \end_layout
23521
23522 \end_inset
23523
23524
23525 \begin_inset Note Note
23526 status collapsed
23527
23528 \begin_layout Plain Layout
23529
23530 \lang english
23531 go back to the default
23532 \end_layout
23533
23534 \end_inset
23535
23536
23537 \end_layout
23538
23539 \begin_layout Standard
23540 \begin_inset Newpage newpage
23541 \end_inset
23542
23543
23544 \end_layout
23545
23546 \begin_layout Section
23547 標準的でない形の段落
23548 \end_layout
23549
23550 \begin_layout Standard
23551 \noindent
23552 \SpecialChar LaTeX
23553 は,他のテキストプロセッサと同様に,既定で長方形の段落を使用します.しかし,例えば,ポスターや招待状,詩などの特殊な場合には,段落の形を好きなように変えることが
23554 できます.これは,文書設定で
23555 \family sans
23556 任意設定の段落形
23557 \family default
23558 モジュールを読み込んで,\SpecialChar LaTeX
23559 パッケージ
23560 \series bold
23561 shapepar
23562 \series default
23563 を使用させるようにすれば,実現できます.
23564 \end_layout
23565
23566 \begin_layout Subsection
23567 既定の形
23568 \end_layout
23569
23570 \begin_layout Standard
23571
23572 \series bold
23573 shapepar
23574 \series default
23575 は,以下の形を提供しています.
23576 \end_layout
23577
23578 \begin_layout Standard
23579 \begin_inset Tabular
23580 <lyxtabular version="3" rows="13" columns="3">
23581 <features booktabs="true" islongtable="true" longtabularalignment="center">
23582 <column alignment="center" valignment="middle" width="16col%">
23583 <column alignment="center" valignment="middle" width="40col%">
23584 <column alignment="center" valignment="middle" width="35col%">
23585 <row endhead="true">
23586 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23587 \begin_inset Text
23588
23589 \begin_layout Plain Layout
23590 名称
23591 \end_layout
23592
23593 \end_inset
23594 </cell>
23595 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23596 \begin_inset Text
23597
23598 \begin_layout Plain Layout
23599 説明
23600 \end_layout
23601
23602 \end_inset
23603 </cell>
23604 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
23605 \begin_inset Text
23606
23607 \begin_layout Plain Layout
23608 備考
23609 \end_layout
23610
23611 \end_inset
23612 </cell>
23613 </row>
23614 <row>
23615 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23616 \begin_inset Text
23617
23618 \begin_layout Plain Layout
23619 CDlabel
23620 \end_layout
23621
23622 \end_inset
23623 </cell>
23624 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23625 \begin_inset Text
23626
23627 \begin_layout Plain Layout
23628 丸い穴の開いたドーナツ型(CD/DVD大)
23629 \end_layout
23630
23631 \end_inset
23632 </cell>
23633 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23634 \begin_inset Text
23635
23636 \begin_layout Plain Layout
23637 伸縮不可.多くの文字を入れられないことに注意.
23638 \end_layout
23639
23640 \end_inset
23641 </cell>
23642 </row>
23643 <row>
23644 <cell alignment="center" valignment="top" topline="true" usebox="none">
23645 \begin_inset Text
23646
23647 \begin_layout Plain Layout
23648 Circle
23649 \end_layout
23650
23651 \end_inset
23652 </cell>
23653 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23654 \begin_inset Text
23655
23656 \begin_layout Plain Layout
23657
23658 \end_layout
23659
23660 \end_inset
23661 </cell>
23662 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23663 \begin_inset Text
23664
23665 \begin_layout Plain Layout
23666 脆弱.計算に失敗することも.
23667 \end_layout
23668
23669 \end_inset
23670 </cell>
23671 </row>
23672 <row>
23673 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23674 \begin_inset Text
23675
23676 \begin_layout Plain Layout
23677 Diamond
23678 \end_layout
23679
23680 \end_inset
23681 </cell>
23682 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23683 \begin_inset Text
23684
23685 \begin_layout Plain Layout
23686 菱形(シンボル的に
23687 \begin_inset Quotes eld
23688 \end_inset
23689
23690 diamond
23691 \begin_inset Quotes erd
23692 \end_inset
23693
23694 と表記)
23695 \end_layout
23696
23697 \end_inset
23698 </cell>
23699 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23700 \begin_inset Text
23701
23702 \begin_layout Plain Layout
23703 -
23704 \end_layout
23705
23706 \end_inset
23707 </cell>
23708 </row>
23709 <row>
23710 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23711 \begin_inset Text
23712
23713 \begin_layout Plain Layout
23714 Heart
23715 \end_layout
23716
23717 \end_inset
23718 </cell>
23719 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23720 \begin_inset Text
23721
23722 \begin_layout Plain Layout
23723 ハート型
23724 \end_layout
23725
23726 \end_inset
23727 </cell>
23728 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23729 \begin_inset Text
23730
23731 \begin_layout Plain Layout
23732 -
23733 \end_layout
23734
23735 \end_inset
23736 </cell>
23737 </row>
23738 <row>
23739 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23740 \begin_inset Text
23741
23742 \begin_layout Plain Layout
23743 Hexagon
23744 \end_layout
23745
23746 \end_inset
23747 </cell>
23748 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23749 \begin_inset Text
23750
23751 \begin_layout Plain Layout
23752 六角形
23753 \end_layout
23754
23755 \end_inset
23756 </cell>
23757 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23758 \begin_inset Text
23759
23760 \begin_layout Plain Layout
23761 -
23762 \end_layout
23763
23764 \end_inset
23765 </cell>
23766 </row>
23767 <row>
23768 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23769 \begin_inset Text
23770
23771 \begin_layout Plain Layout
23772 Nut
23773 \end_layout
23774
23775 \end_inset
23776 </cell>
23777 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23778 \begin_inset Text
23779
23780 \begin_layout Plain Layout
23781 ナット型(丸い穴の開いた六角形)
23782 \end_layout
23783
23784 \end_inset
23785 </cell>
23786 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23787 \begin_inset Text
23788
23789 \begin_layout Plain Layout
23790 -
23791 \end_layout
23792
23793 \end_inset
23794 </cell>
23795 </row>
23796 <row>
23797 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23798 \begin_inset Text
23799
23800 \begin_layout Plain Layout
23801 Square
23802 \end_layout
23803
23804 \end_inset
23805 </cell>
23806 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23807 \begin_inset Text
23808
23809 \begin_layout Plain Layout
23810 正方形
23811 \end_layout
23812
23813 \end_inset
23814 </cell>
23815 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23816 \begin_inset Text
23817
23818 \begin_layout Plain Layout
23819 -
23820 \end_layout
23821
23822 \end_inset
23823 </cell>
23824 </row>
23825 <row>
23826 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23827 \begin_inset Text
23828
23829 \begin_layout Plain Layout
23830 Star
23831 \end_layout
23832
23833 \end_inset
23834 </cell>
23835 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23836 \begin_inset Text
23837
23838 \begin_layout Plain Layout
23839 五芒星
23840 \end_layout
23841
23842 \end_inset
23843 </cell>
23844 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
23845 \begin_inset Text
23846
23847 \begin_layout Plain Layout
23848 -
23849 \end_layout
23850
23851 \end_inset
23852 </cell>
23853 </row>
23854 <row>
23855 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23856 \begin_inset Text
23857
23858 \begin_layout Plain Layout
23859 Candle
23860 \end_layout
23861
23862 \end_inset
23863 </cell>
23864 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23865 \begin_inset Text
23866
23867 \begin_layout Plain Layout
23868 燃えるろうそく
23869 \end_layout
23870
23871 \end_inset
23872 </cell>
23873 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23874 \begin_inset Text
23875
23876 \begin_layout Plain Layout
23877 -
23878 \end_layout
23879
23880 \end_inset
23881 </cell>
23882 </row>
23883 <row>
23884 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23885 \begin_inset Text
23886
23887 \begin_layout Plain Layout
23888 Drop down/up
23889 \end_layout
23890
23891 \end_inset
23892 </cell>
23893 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23894 \begin_inset Text
23895
23896 \begin_layout Plain Layout
23897 雫型/逆雫型
23898 \end_layout
23899
23900 \end_inset
23901 </cell>
23902 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23903 \begin_inset Text
23904
23905 \begin_layout Plain Layout
23906 脆弱.計算に失敗することも.
23907 \end_layout
23908
23909 \end_inset
23910 </cell>
23911 </row>
23912 <row>
23913 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23914 \begin_inset Text
23915
23916 \begin_layout Plain Layout
23917 \SpecialChar TeX
23918
23919 \end_layout
23920
23921 \end_inset
23922 </cell>
23923 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23924 \begin_inset Text
23925
23926 \begin_layout Plain Layout
23927 \SpecialChar TeX
23928 ロゴ
23929 \end_layout
23930
23931 \end_inset
23932 </cell>
23933 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23934 \begin_inset Text
23935
23936 \begin_layout Plain Layout
23937 -
23938 \end_layout
23939
23940 \end_inset
23941 </cell>
23942 </row>
23943 <row>
23944 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23945 \begin_inset Text
23946
23947 \begin_layout Plain Layout
23948 Triangle up/down/
23949 \begin_inset Newline newline
23950 \end_inset
23951
23952 left/right
23953 \end_layout
23954
23955 \end_inset
23956 </cell>
23957 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23958 \begin_inset Text
23959
23960 \begin_layout Plain Layout
23961 各方向の三角形
23962 \end_layout
23963
23964 \end_inset
23965 </cell>
23966 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
23967 \begin_inset Text
23968
23969 \begin_layout Plain Layout
23970 -
23971 \end_layout
23972
23973 \end_inset
23974 </cell>
23975 </row>
23976 </lyxtabular>
23977
23978 \end_inset
23979
23980
23981 \end_layout
23982
23983 \begin_layout Standard
23984 段落に形を適用するには,\SpecialChar LyX
23985 ツールバー中の環境プルダウンボックスから形を選んでください.
23986 \end_layout
23987
23988 \begin_layout Standard
23989 \begin_inset Newpage newpage
23990 \end_inset
23991
23992
23993 \end_layout
23994
23995 \begin_layout Standard
23996 以下は,ナット型の段落の例です.
23997 \end_layout
23998
23999 \begin_layout Standard
24000 \begin_inset VSpace bigskip
24001 \end_inset
24002
24003
24004 \end_layout
24005
24006 \begin_layout Nut
24007
24008 \lang latin
24009 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
24010  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
24011  voluptua.
24012  At vero eos et accusam et justo duo dolores et ea rebum.
24013  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
24014  sit amet.
24015  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
24016  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
24017  voluptua.
24018 \end_layout
24019
24020 \begin_layout Standard
24021 \begin_inset VSpace bigskip
24022 \end_inset
24023
24024
24025 \end_layout
24026
24027 \begin_layout Standard
24028 \begin_inset Note Greyedout
24029 status open
24030
24031 \begin_layout Plain Layout
24032
24033 \series bold
24034 【註】
24035 \series default
24036 shapepar段落は改頁にまたがることはできません.
24037 \end_layout
24038
24039 \end_inset
24040
24041
24042 \end_layout
24043
24044 \begin_layout Standard
24045 \begin_inset VSpace bigskip
24046 \end_inset
24047
24048
24049 \end_layout
24050
24051 \begin_layout Standard
24052
24053 \series bold
24054 shapepar
24055 \series default
24056 は,段落中にどれだけ文章が含まれようとも,常に形を維持しようとします.したがって,段落の大きさは,含まれている文章量によって変化しますので,段落の大きさがページ
24057 余白にはみ出してしまうことがあります.寸法が伸縮することを示すために,文章量を二倍にした例を見てみましょう.
24058 \end_layout
24059
24060 \begin_layout Standard
24061 \begin_inset Newpage newpage
24062 \end_inset
24063
24064
24065 \end_layout
24066
24067 \begin_layout Nut
24068
24069 \lang latin
24070 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
24071  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
24072  voluptua.
24073  At vero eos et accusam et justo duo dolores et ea rebum.
24074  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
24075  sit amet.
24076  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
24077  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
24078  voluptua.
24079  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
24080  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
24081  voluptua.
24082  At vero eos et accusam et justo duo dolores et ea rebum.
24083  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
24084  sit amet.
24085  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
24086  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
24087  voluptua.
24088 \end_layout
24089
24090 \begin_layout Standard
24091 \begin_inset VSpace bigskip
24092 \end_inset
24093
24094
24095 \end_layout
24096
24097 \begin_layout Standard
24098 ただし,
24099 \family sans
24100 CDlabel
24101 \family default
24102 形は例外です.これは,CD/DVDの寸法に収まらなくてはならないので,伸縮しません.したがって,形に収まる文章量は限られています.
24103 \begin_inset Newline newline
24104 \end_inset
24105
24106
24107 \family sans
24108 drop
24109 \family default
24110 形と
24111 \family sans
24112 circle
24113 \family default
24114 形は脆弱で,文章量によっては寸法計算が失敗する可能性があります.この場合,
24115 \begin_inset Quotes eld
24116 \end_inset
24117
24118 Arithmetic overflow
24119 \begin_inset Quotes erd
24120 \end_inset
24121
24122 という\SpecialChar LaTeX
24123 エラーが発生します.この時は,文章の一部を追加したり削除したりするか,どれもうまくいかなければ別の形を使用してください.
24124 \end_layout
24125
24126 \begin_layout Standard
24127 \begin_inset VSpace bigskip
24128 \end_inset
24129
24130
24131 \end_layout
24132
24133 \begin_layout Standard
24134 先端のある形では,先端部の文字列で,\SpecialChar LaTeX
24135 のハイフネーションルーチンが失敗することがあります.したがって,この部分の文章には,ハイフネーション位置
24136 \family sans
24137 (
24138 \begin_inset Info
24139 type  "shortcut"
24140 arg   "specialchar-insert hyphenation"
24141 \end_inset
24142
24143
24144 \family default
24145 )を指定することが往々にして必要になります.
24146 \end_layout
24147
24148 \begin_layout Standard
24149 \begin_inset VSpace bigskip
24150 \end_inset
24151
24152
24153 \end_layout
24154
24155 \begin_layout Standard
24156 Shapepar段落は,常に中央揃えか,左の縁が左ページ余白に接するように配置されます.したがって,これらの段落を揃えるのに段落ダイアログを使用することはできま
24157 せん.解決方法としては,段落をミニページかparboxの中において,このボックスを揃えることです.ここでの問題は,ボックスの正しい幅を見出すことです.もしボック
24158 スの幅が広すぎれば,ボックスを中央揃えにしたとしても,ボックスの左側が付いてしまうので中央揃えになりません.そこで,正しい幅を見出すまでは,若干試行錯誤しなくて
24159 はならないかもしれません.以下は,二つのハート形の段落です.一つ目は揃え指定がなく,二つ目は右揃えにしてあります.
24160 \end_layout
24161
24162 \begin_layout Standard
24163 \begin_inset Newpage newpage
24164 \end_inset
24165
24166
24167 \end_layout
24168
24169 \begin_layout Heart
24170 \noindent
24171
24172 \lang latin
24173 Lo\SpecialChar softhyphen
24174 rem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
24175  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
24176  voluptua.
24177  At vero eos et accusam et justo duo dolores et ea rebum.
24178  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
24179  sit amet.
24180 \end_layout
24181
24182 \begin_layout Standard
24183 \begin_inset VSpace bigskip
24184 \end_inset
24185
24186
24187 \end_layout
24188
24189 \begin_layout Standard
24190 \noindent
24191 \align right
24192 \begin_inset Box Frameless
24193 position "t"
24194 hor_pos "c"
24195 has_inner_box 1
24196 inner_pos "t"
24197 use_parbox 1
24198 use_makebox 0
24199 width "42col%"
24200 special "none"
24201 height "1in"
24202 height_special "totalheight"
24203 thickness "0.4pt"
24204 separation "3pt"
24205 shadowsize "4pt"
24206 framecolor "black"
24207 backgroundcolor "none"
24208 status open
24209
24210 \begin_layout Heart
24211 \noindent
24212
24213 \lang latin
24214 Lo\SpecialChar softhyphen
24215 rem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
24216  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
24217  voluptua.
24218  At vero eos et accusam et justo duo dolores et ea rebum.
24219  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
24220  sit amet.
24221 \end_layout
24222
24223 \end_inset
24224
24225
24226 \end_layout
24227
24228 \begin_layout Subsection
24229 任意の形
24230 \end_layout
24231
24232 \begin_layout Standard
24233 ユーザーは,どのような形であれ,定義することができます.これを手動で行うのは,全ての座標を指定しなくてはならないので,かなりの労力を必要とします.しかし,以下の
24234 ように,コンピューターに座標を計算させる方法もあります.
24235 \end_layout
24236
24237 \begin_layout Enumerate
24238 プログラム
24239 \begin_inset CommandInset href
24240 LatexCommand href
24241 name "Jpgfdraw"
24242 target "http://www.ctan.org/tex-archive/graphics/jpgfdraw"
24243
24244 \end_inset
24245
24246 を導入します.
24247 \end_layout
24248
24249 \begin_layout Enumerate
24250
24251 \family sans
24252 Jpgfdraw
24253 \family default
24254 内で,メニュー
24255 \family sans
24256 Te
24257 \begin_inset ERT
24258 status collapsed
24259
24260 \begin_layout Plain Layout
24261
24262 {}
24263 \end_layout
24264
24265 \end_inset
24266
24267 X/LaT
24268 \begin_inset ERT
24269 status collapsed
24270
24271 \begin_layout Plain Layout
24272
24273 {}
24274 \end_layout
24275
24276 \end_inset
24277
24278 eX\SpecialChar menuseparator
24279 Settings\SpecialChar menuseparator
24280 Set Normal Size
24281 \family default
24282 で文書中で使用しているフォント寸を選択します.例えば,この文書は12
24283 \begin_inset space \thinspace{}
24284 \end_inset
24285
24286 pt寸を使用しています.
24287 \end_layout
24288
24289 \begin_layout Enumerate
24290 形を描きます.
24291 \end_layout
24292
24293 \begin_layout Enumerate
24294 メニュー
24295 \family sans
24296 Te
24297 \begin_inset ERT
24298 status collapsed
24299
24300 \begin_layout Plain Layout
24301
24302 {}
24303 \end_layout
24304
24305 \end_inset
24306
24307 X/LaT
24308 \begin_inset ERT
24309 status collapsed
24310
24311 \begin_layout Plain Layout
24312
24313 {}
24314 \end_layout
24315
24316 \end_inset
24317
24318 eX\SpecialChar menuseparator
24319 Shapepar
24320 \family default
24321 を使用して,形の座標をエクスポートします.現れるダイアログで,形の外枠を座標に使うか,パス自体を使うかを指定します.
24322 \begin_inset Foot
24323 status collapsed
24324
24325 \begin_layout Plain Layout
24326 詳細については,
24327 \begin_inset CommandInset href
24328 LatexCommand href
24329 target "http://www.dickimaw-books.com/apps/jpgfdraw/manual/shapepar.html"
24330
24331 \end_inset
24332
24333 を参照してください.
24334 \end_layout
24335
24336 \end_inset
24337
24338
24339 \end_layout
24340
24341 \begin_layout Standard
24342 座標は\SpecialChar TeX
24343 ファイルに書き込まれます.これを\SpecialChar LyX
24344 文書で使用するには,
24345 \end_layout
24346
24347 \begin_layout Enumerate
24348 段落の最初の文字の前(もしくは空の段落内)にカーソルを置きます.
24349 \end_layout
24350
24351 \begin_layout Enumerate
24352 \SpecialChar LyX
24353
24354 \family sans
24355 挿入\SpecialChar menuseparator
24356 ファイル\SpecialChar menuseparator
24357 子文書
24358 \family default
24359 メニューでファイルを選択し,
24360 \family sans
24361 取り込みの型
24362 \family default
24363 として
24364 \family sans
24365 Input
24366 \family default
24367 を選択してください.
24368 \end_layout
24369
24370 \begin_layout Standard
24371 \begin_inset VSpace defskip
24372 \end_inset
24373
24374
24375 \end_layout
24376
24377 \begin_layout Standard
24378 \begin_inset Note Greyedout
24379 status open
24380
24381 \begin_layout Plain Layout
24382
24383 \series bold
24384 【註】
24385 \series default
24386 変更した形は,現在の段落にのみ適用されます.次の段落では全て通常に戻ります.したがって,段落定義ファイルは,形を変えたい段落全てで読み込まれなくてはなりません.
24387 \end_layout
24388
24389 \end_inset
24390
24391
24392 \end_layout
24393
24394 \begin_layout Standard
24395 \begin_inset VSpace bigskip
24396 \end_inset
24397
24398
24399 \end_layout
24400
24401 \begin_layout Standard
24402 以下の用例をご覧ください.
24403 \end_layout
24404
24405 \begin_layout Standard
24406 \begin_inset VSpace bigskip
24407 \end_inset
24408
24409
24410 \end_layout
24411
24412 \begin_layout Standard
24413 \begin_inset CommandInset include
24414 LatexCommand input
24415 filename "/Applications/LyX-2.2.0dev.app/Contents/Resources/doc/SpecialParagraphShape.tex"
24416
24417 \end_inset
24418
24419
24420 \lang latin
24421 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
24422  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
24423  voluptua.
24424  At vero eos et accusam et justo duo dolores et ea rebum.
24425  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
24426  sit amet.
24427  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
24428  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
24429  voluptua.
24430 \end_layout
24431
24432 \begin_layout Standard
24433 \begin_inset VSpace bigskip
24434 \end_inset
24435
24436
24437 \end_layout
24438
24439 \begin_layout Standard
24440
24441 \series bold
24442 【ヒント】
24443 \family sans
24444 \series default
24445 Jpgfdraw
24446 \family default
24447 で複雑な形を描く場合,まず形を好きなプログラムで描き,出来上がった画像を
24448 \family sans
24449 Jpgfdraw
24450 \family default
24451 に読み込む方法があります.この場合,画像の外枠に沿って,直線またはスプラインを描くだけですみます.
24452 \end_layout
24453
24454 \begin_layout Standard
24455 \begin_inset VSpace bigskip
24456 \end_inset
24457
24458
24459 \end_layout
24460
24461 \begin_layout Standard
24462
24463 \family sans
24464 任意の段落形
24465 \family default
24466 モジュールは,
24467 \family sans
24468 shapepar
24469 \family default
24470
24471 \family sans
24472 Shapepar
24473 \family default
24474 の二つのコマンドも提供していて,任意の形を座標毎に定義するのに使用することができます.
24475 \begin_inset Foot
24476 status collapsed
24477
24478 \begin_layout Plain Layout
24479 これらのコマンドは,上述の全ての形で内部的に使用されています.
24480 \end_layout
24481
24482 \end_inset
24483
24484 これらのスタイルがどのように使われていて,どのような設定ができるのかについての詳しい情報は,
24485 \series bold
24486 shapepar
24487 \series default
24488 パッケージの取扱説明書
24489 \begin_inset CommandInset citation
24490 LatexCommand cite
24491 key "shapepar"
24492
24493 \end_inset
24494
24495 をご覧ください.
24496 \end_layout
24497
24498 \begin_layout Bibliography
24499 \begin_inset CommandInset bibitem
24500 LatexCommand bibitem
24501 key "multicol"
24502
24503 \end_inset
24504
24505 \SpecialChar LaTeX
24506 パッケージ
24507 \begin_inset CommandInset href
24508 LatexCommand href
24509 name "multicol"
24510 target "http://mirror.ctan.org/macros/latex/required/tools/multicol.pdf"
24511
24512 \end_inset
24513
24514 の取扱説明書
24515 \end_layout
24516
24517 \begin_layout Bibliography
24518 \begin_inset CommandInset bibitem
24519 LatexCommand bibitem
24520 key "shapepar"
24521
24522 \end_inset
24523
24524 \SpecialChar LaTeX
24525 パッケージ
24526 \begin_inset CommandInset href
24527 LatexCommand href
24528 name "shapepar"
24529 target "http://mirrors.ctan.org/macros/latex/contrib/shapepar/shapepar.pdf"
24530
24531 \end_inset
24532
24533 の取扱説明書
24534 \end_layout
24535
24536 \end_body
24537 \end_document