]> git.lyx.org Git - lyx.git/blob - lib/doc/ja/Additional.lyx
Publishable Japanese Additional.lyx file
[lyx.git] / lib / doc / ja / Additional.lyx
1 #LyX 2.3 created this file. For more info see http://www.lyx.org/
2 \lyxformat 544
3 \begin_document
4 \begin_header
5 \save_transient_properties true
6 \origin /systemlyxdir/doc/ja/
7 \textclass scrbook
8 \begin_preamble
9 % DO NOT ALTER THIS PREAMBLE!!!
10 %
11 % This preamble is designed to ensure that the manual prints
12 % out as advertised. If you mess with this preamble,
13 % parts of the manual may not print out as expected.  If you
14 % have problems LaTeXing this file, please contact 
15 % the documentation team
16 % email: lyx-docs@lists.lyx.org
17
18 \IfFileExists{pxjahyper.sty}
19 {\usepackage{pxjahyper}}
20
21 % the pages of the TOC are numbered roman
22 % and a PDF-bookmark for the TOC is added
23 \pagenumbering{roman}
24 \let\myTOC\tableofcontents
25 \renewcommand{\tableofcontents}{%
26  \pdfbookmark[1]{\contentsname}{}
27  \myTOC
28  \cleardoublepage
29  \pagenumbering{arabic}}
30
31 % extra space for tables
32 \newcommand{\extratablespace}[1]{\noalign{\vskip#1}}
33
34 \usepackage{t1enc}
35 \end_preamble
36 \options bibliography=totoc,index=totoc,BCOR7.5mm,titlepage,captions=tableheading
37 \use_default_options false
38 \begin_modules
39 logicalmkup
40 theorems-ams
41 theorems-ams-extended
42 multicol
43 shapepar
44 \end_modules
45 \maintain_unincluded_children false
46 \begin_local_layout
47 Format 35
48 InsetLayout             Flex:MenuItem
49 LyxType         charstyle
50 LabelString           menu
51 LatexType             command
52 LatexName             menuitem
53 Font
54 Family              Sans
55 EndFont
56 Preamble
57 \newcommand*{\menuitem}[1]{{\sffamily #1}}
58 EndPreamble
59 End
60 InsetLayout             Flex:Ruby
61 LyxType         charstyle
62 LatexType               command
63 LatexName               ruby
64 BgColor         none
65 LabelString             "ルビ"
66 Decoration              Conglomerate
67 Argument post:1
68 LabelString     "ルビ文"
69 MenuString      "ルビ文(S)|S"
70 Decoration      Conglomerate
71 Font
72 Size            tiny
73 EndFont
74 LabelFont
75 Size            tiny
76 EndFont
77 Mandatory       1
78 EndArgument
79 Preamble
80 \IfFileExists{okumacro.sty}
81 {\usepackage{okumacro}}
82 {\newcommand{\ruby}[2]{#2}}
83 EndPreamble
84 End
85 \end_local_layout
86 \language japanese
87 \language_package default
88 \inputencoding auto
89 \fontencoding global
90 \font_roman "default" "default"
91 \font_sans "default" "default"
92 \font_typewriter "default" "default"
93 \font_math "auto" "auto"
94 \font_default_family default
95 \use_non_tex_fonts false
96 \font_sc false
97 \font_osf false
98 \font_sf_scale 100 100
99 \font_tt_scale 100 100
100 \use_microtype false
101 \use_dash_ligatures false
102 \graphics default
103 \default_output_format pdf3
104 \output_sync 0
105 \bibtex_command default
106 \index_command default
107 \paperfontsize 12
108 \spacing single
109 \use_hyperref true
110 \pdf_title "LyX's Additional Features manual"
111 \pdf_author "LyX Team"
112 \pdf_subject "LyX's additional features documentation"
113 \pdf_keywords "LyX, Documentation, Additional"
114 \pdf_bookmarks false
115 \pdf_bookmarksnumbered true
116 \pdf_bookmarksopen false
117 \pdf_bookmarksopenlevel 1
118 \pdf_breaklinks false
119 \pdf_pdfborder false
120 \pdf_colorlinks true
121 \pdf_backref false
122 \pdf_pdfusetitle false
123 \pdf_quoted_options "pdfencoding=pdfdoc, linkcolor=black, citecolor=black, urlcolor=blue, filecolor=blue, pdfpagelayout=OneColumn, pdfnewwindow=true, pdfstartview=XYZ, plainpages=false"
124 \papersize default
125 \use_geometry false
126 \use_package amsmath 1
127 \use_package amssymb 1
128 \use_package cancel 0
129 \use_package esint 0
130 \use_package mathdots 1
131 \use_package mathtools 0
132 \use_package mhchem 1
133 \use_package stackrel 0
134 \use_package stmaryrd 0
135 \use_package undertilde 0
136 \cite_engine basic
137 \cite_engine_type default
138 \biblio_style plain
139 \use_bibtopic false
140 \use_indices false
141 \paperorientation portrait
142 \suppress_date false
143 \justification true
144 \use_refstyle 0
145 \use_minted 0
146 \notefontcolor #0000ff
147 \index 索引
148 \shortcut idx
149 \color #008000
150 \end_index
151 \secnumdepth 3
152 \tocdepth 3
153 \paragraph_separation indent
154 \paragraph_indentation default
155 \is_math_indent 1
156 \math_indentation default
157 \math_numbering_side default
158 \quotes_style english
159 \dynamic_quotes 0
160 \papercolumns 1
161 \papersides 2
162 \paperpagestyle headings
163 \tracking_changes false
164 \output_changes false
165 \html_math_output 0
166 \html_css_as_file 0
167 \html_be_strict true
168 \end_header
169
170 \begin_body
171
172 \begin_layout Title
173 \SpecialChar LyX
174 の高度な機能
175 \begin_inset Newline newline
176 \end_inset
177
178
179 \size large
180 第2.3.x版
181 \end_layout
182
183 \begin_layout Author
184 \SpecialChar LyX
185 プロジェクトチーム
186 \begin_inset Foot
187 status collapsed
188
189 \begin_layout Plain Layout
190 このファイルは主にRichard Heckによって管理されています.コメントをされたい場合や誤りを発見された場合には,\SpecialChar LyX
191 文書化メーリングリスト
192 \begin_inset Flex Code
193 status open
194
195 \begin_layout Plain Layout
196 \noindent
197
198 \family typewriter
199 <lyx-docs@lists.lyx.org>
200 \end_layout
201
202 \end_inset
203
204 に英文にてお知らせ下さい.この文書の翻訳は,当初人見光太郎氏が行った貢献に基づいています.
205 \end_layout
206
207 \end_inset
208
209  
210 \end_layout
211
212 \begin_layout Standard
213 \begin_inset CommandInset toc
214 LatexCommand tableofcontents
215
216 \end_inset
217
218
219 \end_layout
220
221 \begin_layout Chapter
222 はじめに
223 \end_layout
224
225 \begin_layout Standard
226 いまお読みの取扱説明書『
227 \emph on
228 \SpecialChar LyX
229 拡張機能篇
230 \emph default
231 』は,基本的には『
232 \emph on
233 ユーザーの手引き
234 \emph default
235 』の第二部です.これらの文書を別部とした理由は,単純に『
236 \emph on
237 ユーザーの手引き
238 \emph default
239 』がすでに大部となっていることと,『
240 \emph on
241 ユーザーの手引き
242 \emph default
243 』が,ほとんどの文書を作成する上で必要な基本機能をすべて説明してしまっているためです.一方で,\SpecialChar LyX
244 プロジェクトチームは,\SpecialChar LyX
245 を各設定ファイルと外部パッケージによって拡張
246 可能な状態にしておくことを長期的な目標にしています.つまり,ある\SpecialChar LaTeX
247 パッケージをサポートしたい場合に,\SpecialChar LyX
248 自身に変更を加えることなく,当該パッケージ用のレイアウトファイ
249 ル(ないしモジュール)を作成すればいいようにしているのです.すでにこのような形で,いくつもの新機能がユーザーによって追加されています.この取扱説明書は,そのよう
250 な形での貢献を文書化する冊子として位置付けられています.
251 \end_layout
252
253 \begin_layout Standard
254 この取扱説明書では,ファックスのサポート・バージョン管理・SGMLサポートのような,正しく機能するためには追加的なソフトウェアを必要とする特殊機能についても説明
255 しています.さらに,\SpecialChar LaTeX
256 の強力な機能を直接使って文書を美しく仕上げるための,\SpecialChar LaTeX
257 ツールやテクニックを述べた章も収録しています.つきつめれば,\SpecialChar LyX
258 とはあくまでWYSIWYMた
259 ることを企図しているため,\SpecialChar LaTeX
260 の全機能の一部へのインタフェースは用意するものの,すべてを用意することはないでしょう.
261 \end_layout
262
263 \begin_layout Standard
264 もし,まだ『
265 \emph on
266 はじめの一歩
267 \emph default
268 』をお読みでなかったら,この取扱説明書から読みはじめるのは誤りです.『
269 \emph on
270 はじめの一歩
271 \emph default
272 』には,全取扱説明書に共通の表記法と書式が説明されていますので,まずそれからお読みください.さらに,この取扱説明書を読もうとする前に,『
273 \emph on
274 ユーザーの手引き
275 \emph default
276 』をよくお読みになって,\SpecialChar LyX
277 の全基本機能を習得してください.
278 \end_layout
279
280 \begin_layout Standard
281 この取扱説明書の取り上げられている話題は,\SpecialChar LyX
282 が\SpecialChar LaTeX
283 にどう関わっているかに強く関係していますので,まず次章では,\SpecialChar LyX
284 の内部動作がどうなっているか,LyXに希望する\SpecialChar LaTeX
285 コードを正
286 確に生成させるにはどうしたらいいかを収録しています.本章は,あきらかに熟練\SpecialChar LyX
287 ユーザー向けの章となっています.
288 \end_layout
289
290 \begin_layout Chapter
291 \SpecialChar LyX
292 と\SpecialChar LaTeX
293
294 \end_layout
295
296 \begin_layout Section
297 \SpecialChar LyX
298 は\SpecialChar LaTeX
299 をどう使っているか
300 \end_layout
301
302 \begin_layout Standard
303 本章
304 \family roman
305 \series medium
306 \shape up
307 \size normal
308 \emph off
309 \bar no
310 \noun off
311 \color none
312 は,\SpecialChar TeX
313 熟練者と\SpecialChar LaTeX
314 に興味のある方向けの章です.ここでは,\SpecialChar LyX
315 と\SpecialChar LaTeX
316 が,印刷可能な出力を生成するのに,どのように協働しているのかを説明します.全取扱説明書中で本章だけは,\SpecialChar LaTeX
317 のこと
318 を多少なりともご存知であることを前提とします.
319 \end_layout
320
321 \begin_layout Standard
322
323 \family roman
324 \series medium
325 \shape up
326 \size normal
327 \emph off
328 \bar no
329 \noun off
330 \color none
331 かつて\SpecialChar LyX
332 は,「\SpecialChar LaTeX
333
334 \family default
335 \series default
336 \shape default
337 \size default
338 \emph default
339 \bar default
340 \noun default
341 \color inherit
342 WYSIWYM
343 \family roman
344 \series medium
345 \shape up
346 \size normal
347 \emph off
348 \bar no
349 \noun off
350 \color none
351 なフロントエンド」と呼ばれていましたが,いまではこれは正しくありません.\SpecialChar LaTeX
352 のフロントエンドは,いくつも出回っています
353 \begin_inset Foot
354 status collapsed
355
356 \begin_layout Plain Layout
357
358 \family roman
359 \series medium
360 \shape up
361 \size normal
362 \emph off
363 \bar no
364 \noun off
365 \color none
366 有名なものとしては,Linux上の\SpecialChar TeX
367 makerとkile,OSX上の\SpecialChar TeX
368 shopなどがあります.もちろんviとemacsの\SpecialChar LaTeX
369 モードも含まれます.
370 \end_layout
371
372 \end_inset
373
374 .これらは,基本的に\SpecialChar LaTeX
375 を走らせる機能を有し,編集中のファイルのエラーを表示する機能を持ったテキストエディタです.\SpecialChar LyX
376 も,エディタであり,\SpecialChar LaTeX
377 を走らせる機能を有し,ファイル
378 中のエラーを指摘しますが,それ以上にもっともっと多くのことをしてくれます.
379 \family default
380 \series default
381 \shape default
382 \size default
383 \emph default
384 \bar default
385 \noun default
386 \color inherit
387 ひとつには,
388 \family roman
389 \series medium
390 \shape up
391 \size normal
392 \emph off
393 \bar no
394 \noun off
395 \color none
396 \SpecialChar LyX
397 を効果的に使うのに,\SpecialChar LaTeX
398 の知識が必要とされないことが挙げられます.また\SpecialChar LyX
399 は,それ自身,いくつかの拡張を\SpecialChar LaTeX
400 に加えています.時間のあるときにでも,いちど以下の手順を試してみ
401 てください.まず
402 \family sans
403 \series default
404 \shape default
405 \size default
406 \emph default
407 \bar default
408 \noun default
409 \color inherit
410
411 \begin_inset Flex MenuItem
412 status collapsed
413
414 \begin_layout Plain Layout
415
416 \family sans
417 ファイル
418 \end_layout
419
420 \end_inset
421
422
423 \family roman
424 \series medium
425 \shape up
426 \size normal
427 \emph off
428 \bar no
429 \noun off
430 \color none
431 メニューから
432 \family sans
433 \series default
434 \shape default
435 \size default
436 \emph default
437 \bar default
438 \noun default
439 \color inherit
440
441 \begin_inset Flex MenuItem
442 status collapsed
443
444 \begin_layout Plain Layout
445
446 \family sans
447 エクスポート\SpecialChar menuseparator
448 LaTeX
449 \end_layout
450
451 \end_inset
452
453
454 \family roman
455 \series medium
456 \shape up
457 \size normal
458 \emph off
459 \bar no
460 \noun off
461 \color none
462 (あるいは
463 \family sans
464 \series default
465 \shape default
466 \size default
467 \emph default
468 \bar default
469 \noun default
470 \color inherit
471
472 \begin_inset Flex MenuItem
473 status collapsed
474
475 \begin_layout Plain Layout
476
477 \family sans
478 表示\SpecialChar menuseparator
479 ソースを閲覧
480 \end_layout
481
482 \end_inset
483
484
485 \family roman
486 \series medium
487 \shape up
488 \size normal
489 \emph off
490 \bar no
491 \noun off
492 \color none
493 )を選択し,そこから出力される
494 \begin_inset Flex Code
495 status collapsed
496
497 \begin_layout Plain Layout
498
499 \family typewriter
500 .tex
501 \end_layout
502
503 \end_inset
504
505 ファイルのプリアンブルをご覧ください.\SpecialChar LyX
506 によって特別に定義された新しいマクロが複数定義されていることに気づかれるはずです
507 \family default
508 \series default
509 \shape default
510 \size default
511 \emph default
512 \bar default
513 \noun default
514 \color inherit
515 .これらのマクロは,文書中で使用する機能に応じて,自動的に定義されます.
516 \end_layout
517
518 \begin_layout Standard
519
520 \family roman
521 \series medium
522 \shape up
523 \size normal
524 \emph off
525 \bar no
526 \noun off
527 \color none
528 自動的に\SpecialChar LaTeX
529 を実行するコマンドが,以下のようにいくつかあります.
530 \end_layout
531
532 \begin_layout Itemize
533 \begin_inset Flex MenuItem
534 status collapsed
535
536 \begin_layout Plain Layout
537 表示\SpecialChar menuseparator
538 書式
539 \end_layout
540
541 \end_inset
542
543
544 \end_layout
545
546 \begin_layout Itemize
547
548 \family sans
549 \begin_inset Flex MenuItem
550 status collapsed
551
552 \begin_layout Plain Layout
553
554 \bar no
555 表示\SpecialChar menuseparator
556 更新\SpecialChar menuseparator
557
558 \bar default
559 書式
560 \end_layout
561
562 \end_inset
563
564
565 \end_layout
566
567 \begin_layout Standard
568
569 \family roman
570 \series medium
571 \shape up
572 \size normal
573 \emph off
574 \bar no
575 \noun off
576 \color none
577 これらは,最後に\SpecialChar LaTeX
578 を実行してからファイルに変更が加えられた場合のみ,\SpecialChar LaTeX
579 を実行します.
580 \end_layout
581
582 \begin_layout Standard
583
584 \family roman
585 \series medium
586 \shape up
587 \size normal
588 \emph off
589 \bar no
590 \noun off
591 \color none
592 \SpecialChar LyX
593 が編集中のファイルを\SpecialChar LaTeX
594 にかけるとき,\SpecialChar LyX
595 は以下の段階をふみます.
596 \end_layout
597
598 \begin_layout Enumerate
599
600 \family roman
601 \series medium
602 \shape up
603 \size normal
604 \emph off
605 \bar no
606 \noun off
607 \color none
608 文書を\SpecialChar LaTeX
609 に変換し,ファイルの拡張子を
610 \begin_inset Flex Code
611 status collapsed
612
613 \begin_layout Plain Layout
614
615 \family roman
616 \series medium
617 \shape up
618 \size normal
619 \emph off
620 \bar no
621 \noun off
622 \color none
623 .lyx
624 \end_layout
625
626 \end_inset
627
628 から
629 \begin_inset Flex Code
630 status collapsed
631
632 \begin_layout Plain Layout
633
634 \family roman
635 \series medium
636 \shape up
637 \size normal
638 \emph off
639 \bar no
640 \noun off
641 \color none
642 .tex
643 \end_layout
644
645 \end_inset
646
647 に変えて保存.
648 \end_layout
649
650 \begin_layout Enumerate
651
652 \family roman
653 \series medium
654 \shape up
655 \size normal
656 \emph off
657 \bar no
658 \noun off
659 \color none
660 この
661 \begin_inset Flex Code
662 status collapsed
663
664 \begin_layout Plain Layout
665
666 \family roman
667 \series medium
668 \shape up
669 \size normal
670 \emph off
671 \bar no
672 \noun off
673 \color none
674 .tex
675 \end_layout
676
677 \end_inset
678
679 ファイルに対して(必要に応じて複数回)\SpecialChar LaTeX
680 を実行し,\SpecialChar LaTeX
681 ファイルをコンパイルするのに必要な他のコマンド(
682 \begin_inset Flex Code
683 status collapsed
684
685 \begin_layout Plain Layout
686
687 \family roman
688 \series medium
689 \shape up
690 \size normal
691 \emph off
692 \bar no
693 \noun off
694 \color none
695 bibtex
696 \end_layout
697
698 \end_inset
699
700
701 \begin_inset Flex Code
702 status collapsed
703
704 \begin_layout Plain Layout
705
706 \family roman
707 \series medium
708 \shape up
709 \size normal
710 \emph off
711 \bar no
712 \noun off
713 \color none
714 makeindex
715 \end_layout
716
717 \end_inset
718
719 など)を実行..
720 \end_layout
721
722 \begin_layout Enumerate
723
724 \family roman
725 \series medium
726 \shape up
727 \size normal
728 \emph off
729 \bar no
730 \noun off
731 \color none
732 もしエラーがあれば,エラーログを表示.
733 \end_layout
734
735 \begin_layout Standard
736
737 \family roman
738 \series medium
739 \shape up
740 \size normal
741 \emph off
742 \bar no
743 \noun off
744 \color none
745 \SpecialChar LaTeX
746
747 \family sans
748 \series default
749 \shape default
750 \size default
751 \emph default
752 \bar default
753 \noun default
754 \color inherit
755
756 \begin_inset Flex MenuItem
757 status collapsed
758
759 \begin_layout Plain Layout
760
761 \family sans
762 表示\SpecialChar menuseparator
763 DVI
764 \end_layout
765
766 \end_inset
767
768
769 \family roman
770 \series medium
771 \shape up
772 \size normal
773 \emph off
774 \bar no
775 \noun off
776 \color none
777 を使用して実行した場合には,\SpecialChar LyX
778 はこの後,DVIビューアを実行してDVIファイルを表示します.
779 \begin_inset Flex MenuItem
780 status collapsed
781
782 \begin_layout Plain Layout
783
784 \family roman
785 \series medium
786 \shape up
787 \size normal
788 \emph off
789 \bar no
790 \noun off
791 \color none
792 表示\SpecialChar menuseparator
793 PostScript
794 \end_layout
795
796 \end_inset
797
798 を使用した場合には,\SpecialChar LyX
799 はさらに以下の段階をふみます.
800 \end_layout
801
802 \begin_layout Itemize
803
804 \family roman
805 \series medium
806 \shape up
807 \size normal
808 \emph off
809 \bar no
810 \noun off
811 \color none
812 \begin_inset Flex Code
813 status collapsed
814
815 \begin_layout Plain Layout
816
817 \family typewriter
818 dvips
819 \end_layout
820
821 \end_inset
822
823 を実行して,
824 \family default
825 \series default
826 \shape default
827 \size default
828 \emph default
829 \bar default
830 \noun default
831 \color inherit
832 DVI
833 \family roman
834 \series medium
835 \shape up
836 \size normal
837 \emph off
838 \bar no
839 \noun off
840 \color none
841 ファイルをPostScript
842 \family default
843 \series default
844 \shape default
845 \size default
846 \emph default
847 \bar default
848 \noun default
849 \color inherit
850 に変換.
851 \end_layout
852
853 \begin_layout Itemize
854
855 \family roman
856 \series medium
857 \shape up
858 \size normal
859 \emph off
860 \bar no
861 \noun off
862 \color none
863 \begin_inset Flex Code
864 status collapsed
865
866 \begin_layout Plain Layout
867
868 \family typewriter
869 ghostview
870 \end_layout
871
872 \end_inset
873
874 などのPostScriptビューアを実行して,PostScript
875 \family default
876 \series default
877 \shape default
878 \size default
879 \emph default
880 \bar default
881 \noun default
882 \color inherit
883 ファイルを表示.
884 \end_layout
885
886 \begin_layout Standard
887 \SpecialChar LyX
888 は,他の書式を表示したりエクスポートしたりする際にも,同様のことを行います.
889 \end_layout
890
891 \begin_layout Section
892 \SpecialChar LaTeX
893 ファイルを\SpecialChar LyX
894 に読み込む
895 \end_layout
896
897 \begin_layout Standard
898 \SpecialChar LyX
899
900 \family sans
901
902 \begin_inset Flex MenuItem
903 status collapsed
904
905 \begin_layout Plain Layout
906
907 \family sans
908 ファイル\SpecialChar menuseparator
909 インポート\SpecialChar menuseparator
910 LaTeX
911 \end_layout
912
913 \end_inset
914
915
916 \family roman
917 \series medium
918 \shape up
919 \size normal
920 \emph off
921 \bar no
922 \noun off
923 \color none
924 コマンドを使用すると,\SpecialChar LaTeX
925 ファイルを
926 \family default
927 \series default
928 \shape default
929 \size default
930 \emph default
931 \bar default
932 \noun default
933  
934 \family roman
935 \series medium
936 \shape up
937 \size normal
938 \emph off
939 \bar no
940 \noun off
941 \SpecialChar LyX
942 にインポートすることができます.このコマンドは,
943 \family typewriter
944 \series default
945 \shape default
946 \size default
947 \emph default
948 \bar default
949 \noun default
950 \color inherit
951
952 \begin_inset Flex Code
953 status collapsed
954
955 \begin_layout Plain Layout
956
957 \family typewriter
958 tex2lyx
959 \end_layout
960
961 \end_inset
962
963
964 \family roman
965 \series medium
966 \shape up
967 \size normal
968 \emph off
969 \bar no
970 \noun off
971 \color none
972 というプログラムを呼び出し,
973 \family typewriter
974 \series default
975 \shape default
976 \size default
977 \emph default
978 \bar default
979 \noun default
980 \color inherit
981
982 \begin_inset Flex Code
983 status collapsed
984
985 \begin_layout Plain Layout
986
987 \family typewriter
988 foo.tex
989 \end_layout
990
991 \end_inset
992
993
994 \family default
995 などというファイルから
996 \begin_inset Flex Code
997 status collapsed
998
999 \begin_layout Plain Layout
1000
1001 \family typewriter
1002 foo.lyx
1003 \end_layout
1004
1005 \end_inset
1006
1007 を生成します.\SpecialChar LyX
1008 は,この変換したファイルを開きます
1009 \begin_inset Foot
1010 status collapsed
1011
1012 \begin_layout Plain Layout
1013 \begin_inset Flex Code
1014 status collapsed
1015
1016 \begin_layout Plain Layout
1017 tex2lyx
1018 \end_layout
1019
1020 \end_inset
1021
1022 は,もちろんコマンドラインから実行することもできます.
1023 \end_layout
1024
1025 \end_inset
1026
1027
1028 \end_layout
1029
1030 \begin_layout Standard
1031
1032 \family typewriter
1033 \begin_inset Flex Code
1034 status collapsed
1035
1036 \begin_layout Plain Layout
1037
1038 \family typewriter
1039 tex2lyx
1040 \end_layout
1041
1042 \end_inset
1043
1044
1045 \family roman
1046 \series medium
1047 \shape up
1048 \size normal
1049 \emph off
1050 \bar no
1051 \noun off
1052 \color none
1053 は,文法的に正しい\SpecialChar LaTeX
1054 ファイルのほとんどを変換することができますが,すべてを変換できるわけではありません.
1055 \family typewriter
1056 \series default
1057 \shape default
1058 \size default
1059 \emph default
1060 \bar default
1061 \noun default
1062 \color inherit
1063
1064 \begin_inset Flex Code
1065 status collapsed
1066
1067 \begin_layout Plain Layout
1068
1069 \family typewriter
1070 tex2lyx
1071 \end_layout
1072
1073 \end_inset
1074
1075
1076 \family roman
1077 \series medium
1078 \shape up
1079 \size normal
1080 \emph off
1081 \bar no
1082 \noun off
1083 \color none
1084 は,理解不能な部分は\SpecialChar TeX
1085 コードボックスの形で残しますので,ファイルを
1086 \family typewriter
1087 \series default
1088 \shape default
1089 \size default
1090 \emph default
1091 \bar default
1092 \noun default
1093 \color inherit
1094
1095 \begin_inset Flex Code
1096 status collapsed
1097
1098 \begin_layout Plain Layout
1099
1100 \family typewriter
1101 tex2lyx
1102 \end_layout
1103
1104 \end_inset
1105
1106
1107 \family roman
1108 \series medium
1109 \shape up
1110 \size normal
1111 \emph off
1112 \bar no
1113 \noun off
1114 \color none
1115 で変換したのち,\SpecialChar TeX
1116 コードボックスを探して,手動で正しく編集してください.
1117 \end_layout
1118
1119 \begin_layout Standard
1120
1121 \family roman
1122 \series medium
1123 \shape up
1124 \size normal
1125 \emph off
1126 \bar no
1127 \noun off
1128 \color none
1129 \SpecialChar TeX
1130 コードボックスがなにかご存じなければ,次節をお読みください.
1131 \end_layout
1132
1133 \begin_layout Section
1134 \SpecialChar LaTeX
1135 コードを挿入する
1136 \begin_inset CommandInset label
1137 LatexCommand label
1138 name "sec:LaTeXコードを挿入する"
1139
1140 \end_inset
1141
1142
1143 \end_layout
1144
1145 \begin_layout Standard
1146
1147 \family roman
1148 \series medium
1149 \shape up
1150 \size normal
1151 \emph off
1152 \bar no
1153 \noun off
1154 \color none
1155 どの\SpecialChar LyX
1156 文書にもつねに\SpecialChar TeX
1157 コードを挿入することが可能であるというきわめて単純な理由によって,\SpecialChar LaTeX
1158 にできることは,つねに\SpecialChar LyX
1159 でも行うことができます.一方,\SpecialChar LyX
1160 は,すべての\SpecialChar LaTeX
1161 構成物を\SpecialChar LyX
1162 内に
1163 表示できるわけではなく,将来的にもそうならないでしょう.かりに\SpecialChar LaTeX
1164 コマンドを\SpecialChar LyX
1165 文書に挿入する必要が出てきた場合には,
1166 \begin_inset Flex Code
1167 status collapsed
1168
1169 \begin_layout Plain Layout
1170
1171 \family roman
1172 \series medium
1173 \shape up
1174 \size normal
1175 \emph off
1176 \bar no
1177 \noun off
1178 \color none
1179 \SpecialChar TeX
1180 コード
1181 \end_layout
1182
1183 \end_inset
1184
1185 ボックスを使用してください.これは,
1186 \family sans
1187 \series default
1188 \shape default
1189 \size default
1190 \emph default
1191 \bar default
1192 \noun default
1193 \color inherit
1194
1195 \begin_inset Flex MenuItem
1196 status collapsed
1197
1198 \begin_layout Plain Layout
1199
1200 \family sans
1201 挿入\SpecialChar menuseparator
1202 TeXコード
1203 \end_layout
1204
1205 \end_inset
1206
1207
1208 \family roman
1209 \series medium
1210 \shape up
1211 \size normal
1212 \emph off
1213 \bar no
1214 \noun off
1215 \color none
1216 若しくは
1217 \family default
1218 \series default
1219 \shape default
1220 \size default
1221 \emph default
1222 \bar default
1223 \noun default
1224 \color inherit
1225
1226 \begin_inset Flex Ruby
1227 status collapsed
1228
1229 \begin_layout Plain Layout
1230
1231 \family roman
1232 \series medium
1233 \shape up
1234 \size normal
1235 \emph off
1236 \bar no
1237 \noun off
1238 \color none
1239 捷径
1240 \family default
1241 \series default
1242 \shape default
1243 \size default
1244 \emph default
1245 \bar default
1246 \noun default
1247 \color inherit
1248
1249 \begin_inset Argument post:1
1250 status collapsed
1251
1252 \begin_layout Plain Layout
1253 ショートカット
1254 \end_layout
1255
1256 \end_inset
1257
1258
1259 \end_layout
1260
1261 \end_inset
1262
1263
1264 \begin_inset Flex Ruby
1265 status collapsed
1266
1267 \begin_layout Plain Layout
1268
1269 \family roman
1270 \series medium
1271 \shape up
1272 \size normal
1273 \emph off
1274 \bar no
1275 \noun off
1276 \color none
1277
1278 \begin_inset Argument post:1
1279 status collapsed
1280
1281 \begin_layout Plain Layout
1282 キー
1283 \end_layout
1284
1285 \end_inset
1286
1287
1288 \end_layout
1289
1290 \end_inset
1291
1292
1293 \begin_inset Info
1294 type  "shortcut"
1295 arg   "ert-insert"
1296 \end_inset
1297
1298
1299 \family roman
1300 \series medium
1301 \shape up
1302 \size normal
1303 \emph off
1304 \bar no
1305 \noun off
1306 \color none
1307 で,文書中に挿入することができます.
1308 \end_layout
1309
1310 \begin_layout Standard
1311 以下は,\SpecialChar LaTeX
1312 コマンドを\SpecialChar LyX
1313 文書中に挿入する例です.コードは以下のようになっているとしましょう.
1314 \end_layout
1315
1316 \begin_layout LyX-Code
1317
1318 \backslash
1319 begin{tabular}{ll}
1320 \begin_inset Newline newline
1321 \end_inset
1322
1323
1324 \backslash
1325 begin{minipage}{5cm}
1326 \begin_inset Newline newline
1327 \end_inset
1328
1329 これは,ミニページ環境の例です.
1330 \begin_inset Newline newline
1331 \end_inset
1332
1333 これには,
1334 \begin_inset Newline newline
1335 \end_inset
1336
1337 (フロートでない)図表を
1338 \begin_inset Newline newline
1339 \end_inset
1340
1341 含め,ほとんど何でも
1342 \begin_inset Newline newline
1343 \end_inset
1344
1345 入れることができます. 
1346 \begin_inset Newline newline
1347 \end_inset
1348
1349
1350 \backslash
1351 end{minipage}
1352 \begin_inset Newline newline
1353 \end_inset
1354
1355 &
1356 \begin_inset Newline newline
1357 \end_inset
1358
1359
1360 \backslash
1361 begin{minipage}{5cm}
1362 \begin_inset Newline newline
1363 \end_inset
1364
1365
1366 \backslash
1367 begin{verbatim}
1368 \begin_inset Newline newline
1369 \end_inset
1370
1371
1372 \backslash
1373 begin{minipage}{5cm}
1374 \begin_inset Newline newline
1375 \end_inset
1376
1377 これは...
1378  
1379 \begin_inset Newline newline
1380 \end_inset
1381
1382
1383 \backslash
1384 end{minipage}
1385 \begin_inset Newline newline
1386 \end_inset
1387
1388
1389 \backslash
1390 end{verbatim}
1391 \begin_inset Newline newline
1392 \end_inset
1393
1394
1395 \backslash
1396 end{minipage}
1397 \begin_inset Newline newline
1398 \end_inset
1399
1400
1401 \backslash
1402 end{tabular}
1403 \end_layout
1404
1405 \begin_layout LyX-Code
1406
1407 \end_layout
1408
1409 \begin_layout Standard
1410 上記のテキストを含んだ
1411 \begin_inset Flex Code
1412 status collapsed
1413
1414 \begin_layout Plain Layout
1415 \SpecialChar TeX
1416 コード
1417 \end_layout
1418
1419 \end_inset
1420
1421 ボックスが,この段落の直後にあります.この取扱説明書を\SpecialChar LyX
1422 上でご覧になっていれば,\SpecialChar TeX
1423 コード差込枠のみが見えるはずです.印刷した取扱説明書をご覧であれば,実際の結果が見
1424 れるはずです.
1425 \end_layout
1426
1427 \begin_layout Standard
1428 \begin_inset VSpace bigskip
1429 \end_inset
1430
1431
1432 \begin_inset ERT
1433 status open
1434
1435 \begin_layout Plain Layout
1436
1437
1438 \backslash
1439 begin{tabular}{ll}
1440 \end_layout
1441
1442 \begin_layout Plain Layout
1443
1444
1445 \backslash
1446 begin{minipage}{5cm}
1447 \end_layout
1448
1449 \begin_layout Plain Layout
1450
1451 これは,ミニページ環境の例です.これには,(フロートでない)図表を含め,ほとんど何でも入れることができます. 
1452 \backslash
1453 end{minipage}
1454 \end_layout
1455
1456 \begin_layout Plain Layout
1457
1458 &
1459 \end_layout
1460
1461 \begin_layout Plain Layout
1462
1463
1464 \backslash
1465 begin{minipage}{5cm}
1466 \end_layout
1467
1468 \begin_layout Plain Layout
1469
1470
1471 \backslash
1472 begin{verbatim}
1473 \end_layout
1474
1475 \begin_layout Plain Layout
1476
1477
1478 \backslash
1479 begin{minipage}{5cm}
1480 \end_layout
1481
1482 \begin_layout Plain Layout
1483
1484 これは...
1485  
1486 \backslash
1487 end{minipage}
1488 \end_layout
1489
1490 \begin_layout Plain Layout
1491
1492
1493 \backslash
1494 end{verbatim}
1495 \end_layout
1496
1497 \begin_layout Plain Layout
1498
1499
1500 \backslash
1501 end{minipage}
1502 \end_layout
1503
1504 \begin_layout Plain Layout
1505
1506
1507 \backslash
1508 end{tabular}
1509 \end_layout
1510
1511 \end_inset
1512
1513
1514 \begin_inset VSpace bigskip
1515 \end_inset
1516
1517
1518 \end_layout
1519
1520 \begin_layout Standard
1521
1522 \family roman
1523 \series medium
1524 \shape up
1525 \size normal
1526 \emph off
1527 \bar no
1528 \noun off
1529 \color none
1530 \SpecialChar TeX
1531 コードを使用する方法に加えて,複雑な\SpecialChar LaTeX
1532 コードを含む部分を別ファイルとして作成しておき,そのファイルをインクルードするのに
1533 \begin_inset Flex MenuItem
1534 status collapsed
1535
1536 \begin_layout Plain Layout
1537
1538 \family roman
1539 \series medium
1540 \shape up
1541 \size normal
1542 \emph off
1543 \bar no
1544 \noun off
1545 \color none
1546 挿入\SpecialChar menuseparator
1547 ファイル\SpecialChar menuseparator
1548 子文書
1549 \end_layout
1550
1551 \end_inset
1552
1553 を使用する方法もあります(取り込みの型として
1554 \begin_inset Flex Code
1555 status collapsed
1556
1557 \begin_layout Plain Layout
1558
1559 \family roman
1560 \series medium
1561 \shape up
1562 \size normal
1563 \emph off
1564 \bar no
1565 \noun off
1566 \color none
1567 Input
1568 \end_layout
1569
1570 \end_inset
1571
1572 を選択しなくてはなりません).この方法をとる場合には,.texファイルが正しく動作することが
1573 \family default
1574 \series default
1575 \shape default
1576 \size default
1577 \emph on
1578 \bar default
1579 \noun default
1580 \color inherit
1581 確認できている
1582 \family roman
1583 \series medium
1584 \shape up
1585 \size normal
1586 \emph off
1587 \bar no
1588 \noun off
1589 \color none
1590 場合のみに限った方がよいでしょう.さもないと,\SpecialChar LaTeX
1591 エラーを追跡するたいへんな作業を行わなくてはならなくなります.
1592 \end_layout
1593
1594 \begin_layout Standard
1595
1596 \family roman
1597 \series medium
1598 \shape up
1599 \size normal
1600 \emph off
1601 \bar no
1602 \noun off
1603 \color none
1604 最後に,いくつか強調しておくべきことがあります.
1605 \end_layout
1606
1607 \begin_layout Itemize
1608
1609 \family roman
1610 \series medium
1611 \shape up
1612 \size normal
1613 \emph off
1614 \bar no
1615 \noun off
1616 \color none
1617 \SpecialChar LyX
1618 は,あなたの\SpecialChar LaTeX
1619 コードが正しいかどうかを
1620 \family default
1621 \series default
1622 \shape default
1623 \size default
1624 \emph on
1625 \bar default
1626 \noun default
1627 \color inherit
1628 チェックしません
1629 \family roman
1630 \series medium
1631 \shape up
1632 \size normal
1633 \emph off
1634 \bar no
1635 \noun off
1636 \color none
1637
1638 \end_layout
1639
1640 \begin_layout Itemize
1641
1642 \family roman
1643 \series medium
1644 \shape up
1645 \size normal
1646 \emph off
1647 \bar no
1648 \noun off
1649 \color none
1650 車輪の再発明をしないようにご注意ください.
1651 \end_layout
1652
1653 \begin_layout Standard
1654
1655 \family roman
1656 \series medium
1657 \shape up
1658 \size normal
1659 \emph off
1660 \bar no
1661 \noun off
1662 \color none
1663 二番目の点に関して,\SpecialChar LyX
1664 はひじょうにたくさんの機能を装備しており,その数は増えつづけています.ご自身で\SpecialChar LaTeX
1665 コードを書かなくてはならないと思い込む前に,LyXがこれこれの
1666 機能をもっていないことを,取扱説明書で確実に確かめてください.さらに世の中には,封筒のラベルから美しい複数ページにわたる表を作るものまで,ありとあらゆることを行
1667 う膨大な数の\SpecialChar LaTeX
1668 パッケージが存在します.
1669 \family default
1670 \series default
1671 \shape default
1672 \size default
1673 \emph default
1674 \bar default
1675 \noun default
1676 \color inherit
1677 詳細については,
1678 \begin_inset CommandInset href
1679 LatexCommand href
1680 name "CTAN"
1681 target "http://www.ctan.org/"
1682 literal "false"
1683
1684 \end_inset
1685
1686
1687 \family roman
1688 \series medium
1689 \shape up
1690 \size normal
1691 \emph off
1692 \bar no
1693 \noun off
1694 \color none
1695 と第
1696 \begin_inset CommandInset ref
1697 LatexCommand ref
1698 reference "chap:Special-features"
1699
1700 \end_inset
1701
1702 節をご覧ください.
1703 \end_layout
1704
1705 \begin_layout Standard
1706
1707 \family roman
1708 \series medium
1709 \shape up
1710 \size normal
1711 \emph off
1712 \bar no
1713 \noun off
1714 \color none
1715 もし,文書中で例外的に手の込んだことをなさりたければ,かならず良い\SpecialChar LaTeX
1716 関連書籍を参考とするようにしてください.『
1717 \family default
1718 \series default
1719 \shape default
1720 \size default
1721 \emph on
1722 \bar default
1723 \noun default
1724 \color inherit
1725 ユーザーの手引き
1726 \family roman
1727 \series medium
1728 \shape up
1729 \size normal
1730 \emph off
1731 \bar no
1732 \noun off
1733 \color none
1734 』の書誌情報に多くの\SpecialChar LaTeX
1735 関連書籍が引用されています.
1736 \end_layout
1737
1738 \begin_layout Section
1739 \SpecialChar LyX
1740 と\SpecialChar LaTeX
1741 プリアンブル
1742 \end_layout
1743
1744 \begin_layout Subsection
1745 \SpecialChar LaTeX
1746 プリアンブルについて
1747 \end_layout
1748
1749 \begin_layout Standard
1750
1751 \family roman
1752 \series medium
1753 \shape up
1754 \size normal
1755 \emph off
1756 \bar no
1757 \noun off
1758 \color none
1759 すでに\SpecialChar LaTeX
1760 についてご存知であれば,ここでプリアンブル(前置文)が何に向いているか説明する必要はないでしょう.もしご存じなければ,以下の説明で大まかな理解は得られるは
1761 ずです.詳しくは\SpecialChar LaTeX
1762 関連書籍をご参照ください.いずれにしても,以下で\SpecialChar LyX
1763 文書の\SpecialChar LaTeX
1764 プリアンブルで何ができるか,または何をする必要がないか説明をしますので,以下の各要点はお読
1765 みになった方が良いでしょう.
1766 \end_layout
1767
1768 \begin_layout Standard
1769
1770 \family roman
1771 \series medium
1772 \shape up
1773 \size normal
1774 \emph off
1775 \bar no
1776 \noun off
1777 \color none
1778 \SpecialChar LaTeX
1779 プリアンブルは,\SpecialChar LaTeX
1780 文書のいちばん始め,本文の
1781 \family default
1782 \series default
1783 \shape default
1784 \size default
1785 \emph on
1786 \bar default
1787 \noun default
1788 \color inherit
1789
1790 \family roman
1791 \series medium
1792 \shape up
1793 \size normal
1794 \emph off
1795 \bar no
1796 \noun off
1797 \color none
1798 の部分に来ます.ここでは以下のことを行います.
1799 \end_layout
1800
1801 \begin_layout Itemize
1802
1803 \family roman
1804 \series medium
1805 \shape up
1806 \size normal
1807 \emph off
1808 \bar no
1809 \noun off
1810 \color none
1811 文書クラス(ドキュメントクラス)の宣言.
1812 \begin_inset Newline newline
1813 \end_inset
1814
1815 これは\SpecialChar LyX
1816 がすでに行ってくれています.もしあなたが熟達した\SpecialChar LaTeX
1817 使いであり,自作の文書クラスを使いたい場合には,取扱説明書『
1818 \family default
1819 \series default
1820 \shape default
1821 \size default
1822 \emph on
1823 \bar default
1824 \noun default
1825 \color inherit
1826 カスタマイズ篇
1827 \family roman
1828 \series medium
1829 \shape up
1830 \size normal
1831 \emph off
1832 \bar no
1833 \noun off
1834 \color none
1835 』をご覧になれば,\SpecialChar LyX
1836 に自作文書クラスへの仲介を行わせるにはどうすればよいかの情報があります.
1837 \end_layout
1838
1839 \begin_layout Itemize
1840
1841 \family roman
1842 \series medium
1843 \shape up
1844 \size normal
1845 \emph off
1846 \bar no
1847 \noun off
1848 \color none
1849 パッケージ使用の宣言.
1850 \begin_inset Newline newline
1851 \end_inset
1852
1853 \SpecialChar LaTeX
1854 パッケージは,パッケージがプリアンブルで宣言された場合のみ,文書中で利用可能となる,追加コマンド群を提供します.パッケージをインクルードすると,特別なコマンドが
1855 提供されることに加え,文書に変更を加えることができます.例えば
1856 \family typewriter
1857 \series default
1858 \shape default
1859 \size default
1860 \emph default
1861 \bar default
1862 \noun default
1863 \color inherit
1864
1865 \family roman
1866 \series medium
1867 \shape up
1868 \size normal
1869 \emph off
1870 \bar no
1871 \noun off
1872 \color none
1873
1874 \begin_inset Flex Code
1875 status collapsed
1876
1877 \begin_layout Plain Layout
1878
1879 \family typewriter
1880 indentfirst
1881 \end_layout
1882
1883 \end_inset
1884
1885 パッケージは,すべての段落の最初の行を字下げします.他にも,ラベルや宛名書き,余白設定等の様々なパッケージがあります.
1886 \end_layout
1887
1888 \begin_layout Itemize
1889
1890 \family roman
1891 \series medium
1892 \shape up
1893 \size normal
1894 \emph off
1895 \bar no
1896 \noun off
1897 \color none
1898 カウンタ・変数・長さ・幅の設定.
1899 \begin_inset Newline newline
1900 \end_inset
1901
1902 \SpecialChar LaTeX
1903 のカウンタと変数の中には,プリアンブルでグローバルに
1904 \family default
1905 \series default
1906 \shape default
1907 \size default
1908 \emph default
1909 \bar default
1910 \noun default
1911 \color inherit
1912 設定
1913 \emph on
1914 しないかぎり
1915 \family roman
1916 \series medium
1917 \shape up
1918 \size normal
1919 \emph off
1920 \bar no
1921 \noun off
1922 \color none
1923 ,望んだ効果を持たないものがあります.(文書中で設定したり再設定したりすることのできる変数もあります.)余白は,プリアンブルで設定しなくてはならない変数の代表例
1924 です.他には,箇条書きに付けるラベル書式が挙げられます.じつは,この設定は文書中どこでもできるのですが,プリアンブルでいちどだけ設定するのが望ましい方法です.
1925 \end_layout
1926
1927 \begin_layout Itemize
1928
1929 \family roman
1930 \series medium
1931 \shape up
1932 \size normal
1933 \emph off
1934 \bar no
1935 \noun off
1936 \color none
1937 ユーザー定義コマンドの宣言(
1938 \begin_inset Flex Code
1939 status collapsed
1940
1941 \begin_layout Plain Layout
1942
1943 \family roman
1944 \series medium
1945 \shape up
1946 \size normal
1947 \emph off
1948 \bar no
1949 \noun off
1950 \color none
1951
1952 \backslash
1953 newcommand
1954 \end_layout
1955
1956 \end_inset
1957
1958 または
1959 \begin_inset Flex Code
1960 status collapsed
1961
1962 \begin_layout Plain Layout
1963
1964 \family roman
1965 \series medium
1966 \shape up
1967 \size normal
1968 \emph off
1969 \bar no
1970 \noun off
1971 \color none
1972
1973 \backslash
1974 renewcommand
1975 \end_layout
1976
1977 \end_inset
1978
1979 を使用).
1980 \begin_inset Newline newline
1981 \end_inset
1982
1983 ユーザー定義コマンドは,文書中で頻出する\SpecialChar LaTeX
1984 コマンドの短縮形です.このようなコマンドを宣言するには,プリアンブルが適した場所ですが,どこで宣言することも
1985 \family default
1986 \series default
1987 \shape default
1988 \size default
1989 \emph on
1990 \bar default
1991 \noun default
1992 \color inherit
1993 可能
1994 \family roman
1995 \series medium
1996 \shape up
1997 \size normal
1998 \emph off
1999 \bar no
2000 \noun off
2001 \color none
2002 です(もちろんコマンドが初めて使用される場所よりも前です).あまりないことではありますが,お使いの文書中に生の\SpecialChar LaTeX
2003 コードがあふれている場合には便利でしょう.
2004 \end_layout
2005
2006 \begin_layout Standard
2007
2008 \family roman
2009 \series medium
2010 \shape up
2011 \size normal
2012 \emph off
2013 \bar no
2014 \noun off
2015 \color none
2016 \SpecialChar LyX
2017 は,その生成する
2018 \begin_inset Flex Code
2019 status collapsed
2020
2021 \begin_layout Plain Layout
2022
2023 \family roman
2024 \series medium
2025 \shape up
2026 \size normal
2027 \emph off
2028 \bar no
2029 \noun off
2030 \color none
2031 .tex
2032 \end_layout
2033
2034 \end_inset
2035
2036 ファイルのプリアンブルに,それ自身の定義を追加します.これによって,\SpecialChar LyX
2037 の生成する\SpecialChar LaTeX
2038 ファイルの可搬性を高めています.
2039 \end_layout
2040
2041 \begin_layout Subsection
2042 プリアンブルの変更
2043 \end_layout
2044
2045 \begin_layout Standard
2046
2047 \family roman
2048 \series medium
2049 \shape up
2050 \size normal
2051 \emph off
2052 \bar no
2053 \noun off
2054 \color none
2055 \SpecialChar LyX
2056 が\SpecialChar LaTeX
2057 ファイルのプリアンブルに追加するコマンドは,つねに同じです.これは,\SpecialChar LyX
2058 自体にパッチを当てないかぎり変更できないようになっています.しかしながら,
2059 \begin_inset Flex MenuItem
2060 status collapsed
2061
2062 \begin_layout Plain Layout
2063
2064 \family roman
2065 \series medium
2066 \shape up
2067 \size normal
2068 \emph off
2069 \bar no
2070 \noun off
2071 \color none
2072 文書\SpecialChar menuseparator
2073 設定
2074 \end_layout
2075
2076 \end_inset
2077
2078 ダイアログの
2079 \begin_inset Flex MenuItem
2080 status collapsed
2081
2082 \begin_layout Plain Layout
2083
2084 \family roman
2085 \series medium
2086 \shape up
2087 \size normal
2088 \emph off
2089 \bar no
2090 \noun off
2091 \color none
2092 \SpecialChar LaTeX
2093 プリアンブル
2094 \end_layout
2095
2096 \end_inset
2097
2098 の項から,プリアンブルに追加をすることはできます.\SpecialChar LyX
2099 は,
2100 \family sans
2101 \series default
2102 \shape default
2103 \size default
2104 \emph default
2105 \bar default
2106 \noun default
2107 \color inherit
2108
2109 \begin_inset Flex MenuItem
2110 status collapsed
2111
2112 \begin_layout Plain Layout
2113
2114 \family sans
2115 プリアンブル
2116 \end_layout
2117
2118 \end_inset
2119
2120
2121 \family roman
2122 \series medium
2123 \shape up
2124 \size normal
2125 \emph off
2126 \bar no
2127 \noun off
2128 \color none
2129 ダイアログ内のすべてのものを,\SpecialChar LyX
2130 埋込みのプリアンブルに付け加えます.ご自身の宣言をプリアンブルに追加する前に,あなたがしようとしていることを\SpecialChar LyX
2131 がすでにサポートしてい
2132 ないかどうか確認してください(車輪の再発明をしないように,とはすでに申しあげたことです).
2133 \family default
2134 \series default
2135 \shape default
2136 \size default
2137 \emph default
2138 \bar default
2139 \noun default
2140 \color inherit
2141 また,
2142 \emph on
2143 プリアンブルコードが正しいことを確認してください.
2144 \emph default
2145 \SpecialChar LyX
2146 は,プリアンブルをチェックしません.
2147 \family roman
2148 \series medium
2149 \shape up
2150 \size normal
2151 \emph off
2152 \bar no
2153 \noun off
2154 \color none
2155 もしエラーがあれば,「
2156 \begin_inset Flex Code
2157 status collapsed
2158
2159 \begin_layout Plain Layout
2160
2161 \family roman
2162 \series medium
2163 \shape up
2164 \size normal
2165 \emph off
2166 \bar no
2167 \noun off
2168 \color none
2169 Missing 
2170 \backslash
2171 begin{document}
2172 \end_layout
2173
2174 \end_inset
2175
2176 」といったエラーが出ることでしょう.このようなエラーが出たときは,プリアンブルを再確認してください.
2177 \end_layout
2178
2179 \begin_layout Subsection
2180
2181 \end_layout
2182
2183 \begin_layout Standard
2184
2185 \family roman
2186 \series medium
2187 \shape up
2188 \size normal
2189 \emph off
2190 \bar no
2191 \noun off
2192 \color none
2193 以下は,プリアンブルに追加できるものとその効果を示す例です.
2194 \end_layout
2195
2196 \begin_layout Subsubsection
2197 例1:オフセット
2198 \end_layout
2199
2200 \begin_layout Standard
2201
2202 \family roman
2203 \series medium
2204 \shape up
2205 \size normal
2206 \emph off
2207 \bar no
2208 \noun off
2209 \color none
2210 \SpecialChar LaTeX
2211 には
2212 \family default
2213 \series default
2214 \shape default
2215 \size default
2216 \emph default
2217 \bar default
2218 \noun default
2219 \color inherit
2220
2221 \family roman
2222 \series medium
2223 \shape up
2224 \size normal
2225 \emph off
2226 \bar no
2227 \noun off
2228 \color none
2229
2230 \begin_inset Flex Code
2231 status collapsed
2232
2233 \begin_layout Plain Layout
2234
2235 \family typewriter
2236
2237 \backslash
2238 hoffset
2239 \end_layout
2240
2241 \end_inset
2242
2243
2244 \family typewriter
2245 \series default
2246 \shape default
2247 \size default
2248 \emph default
2249 \bar default
2250 \noun default
2251 \color inherit
2252
2253 \begin_inset Flex Code
2254 status collapsed
2255
2256 \begin_layout Plain Layout
2257
2258 \family typewriter
2259
2260 \backslash
2261 voffset
2262 \end_layout
2263
2264 \end_inset
2265
2266
2267 \family roman
2268 \series medium
2269 \shape up
2270 \size normal
2271 \emph off
2272 \bar no
2273 \noun off
2274 \color none
2275 というページ位置を制御する2つの変数があります.その機能は名前から明らかなとおりです.これらの変数は,ラベルを印刷するときなどに便利です.往々にして,印刷用紙の
2276 寸法とそのうち実際に印字可能な範囲は同じではありません.ここに
2277 \begin_inset Flex Code
2278 status collapsed
2279
2280 \begin_layout Plain Layout
2281
2282 \family typewriter
2283
2284 \backslash
2285 hoffset
2286 \end_layout
2287
2288 \end_inset
2289
2290
2291 \family typewriter
2292 \series default
2293 \shape default
2294 \size default
2295 \emph default
2296 \bar default
2297 \noun default
2298 \color inherit
2299
2300 \begin_inset Flex Code
2301 status collapsed
2302
2303 \begin_layout Plain Layout
2304
2305 \family typewriter
2306
2307 \backslash
2308 voffset
2309 \end_layout
2310
2311 \end_inset
2312
2313
2314 \family default
2315 が役立つわけです.
2316 \end_layout
2317
2318 \begin_layout Standard
2319
2320 \family roman
2321 \series medium
2322 \shape up
2323 \size normal
2324 \emph off
2325 \bar no
2326 \noun off
2327 \color none
2328 \begin_inset Flex Code
2329 status collapsed
2330
2331 \begin_layout Plain Layout
2332
2333 \family typewriter
2334
2335 \backslash
2336 hoffset
2337 \end_layout
2338
2339 \end_inset
2340
2341
2342 \family typewriter
2343 \series default
2344 \shape default
2345 \size default
2346 \emph default
2347 \bar default
2348 \noun default
2349 \color inherit
2350
2351 \begin_inset Flex Code
2352 status collapsed
2353
2354 \begin_layout Plain Layout
2355
2356 \family typewriter
2357
2358 \backslash
2359 voffset
2360 \end_layout
2361
2362 \end_inset
2363
2364
2365 \family roman
2366 \series medium
2367 \shape up
2368 \size normal
2369 \emph off
2370 \bar no
2371 \noun off
2372 \color none
2373 の既定値はともに0ポイント,つまりページをシフトしません.残念ながら,DVIドライバによってはつねにページをシフトすることがあるようです.我々には,どうしてその
2374 ようなことをするのか,そしてシスアドがどうしてそれを修正しないのか理解できませんが,もし個人的に管理できないシステムで\SpecialChar LyX
2375 を使用していて,シスアドがお馬鹿さんである
2376 場合には,
2377 \begin_inset Flex Code
2378 status collapsed
2379
2380 \begin_layout Plain Layout
2381
2382 \family typewriter
2383
2384 \backslash
2385 hoffset
2386 \end_layout
2387
2388 \end_inset
2389
2390
2391 \family typewriter
2392 \series default
2393 \shape default
2394 \size default
2395 \emph default
2396 \bar default
2397 \noun default
2398 \color inherit
2399
2400 \begin_inset Flex Code
2401 status collapsed
2402
2403 \begin_layout Plain Layout
2404
2405 \family typewriter
2406
2407 \backslash
2408 voffset
2409 \end_layout
2410
2411 \end_inset
2412
2413
2414 \family roman
2415 \series medium
2416 \shape up
2417 \size normal
2418 \emph off
2419 \bar no
2420 \noun off
2421 \color none
2422 が役に立ちます.かりに,上余白と左余白がつねに0.5インチずつ大きすぎるものとしましょう.その場合は,以下をプリアンブルに追加するとよいでしょう.
2423 \end_layout
2424
2425 \begin_layout LyX-Code
2426
2427 \backslash
2428 setlength{
2429 \backslash
2430 hoffset}{-0.5 in}
2431 \end_layout
2432
2433 \begin_layout LyX-Code
2434
2435 \backslash
2436 setlength{
2437 \backslash
2438 voffset}{-0.5 in}
2439 \end_layout
2440
2441 \begin_layout Standard
2442
2443 \family roman
2444 \series medium
2445 \shape up
2446 \size normal
2447 \emph off
2448 \bar no
2449 \noun off
2450 \color none
2451 これで余白が修正されます.
2452 \end_layout
2453
2454 \begin_layout Subsubsection
2455 例2:ラベル
2456 \end_layout
2457
2458 \begin_layout Standard
2459
2460 \family roman
2461 \series medium
2462 \shape up
2463 \size normal
2464 \emph off
2465 \bar no
2466 \noun off
2467 \color none
2468 いま,たくさんの宛名ラベルを印刷をしたいものとしましょう.ラベルシートを印刷するために便利な
2469 \begin_inset Flex Code
2470 status collapsed
2471
2472 \begin_layout Plain Layout
2473
2474 \family typewriter
2475 labels.sty
2476 \end_layout
2477
2478 \end_inset
2479
2480 という\SpecialChar LaTeX
2481 パッケージが,お近くのCTANアーカイブで入手可能です.お使いのシステムには,既定ではこのパッケージは導入されていないかもしれません.ご自身でお確かめくだ
2482 さい.また,このパッケージの取扱説明書を読まれたいかもしれませんが,それもご自身にお任せします.これは使用例ですので,このパッケージをどう使うかの例だけお見せす
2483 ることにします.
2484 \end_layout
2485
2486 \begin_layout Standard
2487
2488 \family roman
2489 \series medium
2490 \shape up
2491 \size normal
2492 \emph off
2493 \bar no
2494 \noun off
2495 \color none
2496 まず,
2497 \begin_inset Flex Code
2498 status collapsed
2499
2500 \begin_layout Plain Layout
2501
2502 \family sans
2503 article
2504 \end_layout
2505
2506 \end_inset
2507
2508 文書クラスを使用していることをご確認ください.次に,以下のような設定をプリアンブルに追加しなければなりません.
2509 \end_layout
2510
2511 \begin_layout LyX-Code
2512
2513 \backslash
2514 usepackage{labels}
2515 \end_layout
2516
2517 \begin_layout LyX-Code
2518
2519 \backslash
2520 LabelCols=3
2521 \end_layout
2522
2523 \begin_layout LyX-Code
2524
2525 \backslash
2526 LabelRows=7
2527 \end_layout
2528
2529 \begin_layout LyX-Code
2530
2531 \backslash
2532 LeftBorder=8mm
2533 \end_layout
2534
2535 \begin_layout LyX-Code
2536
2537 \backslash
2538 RightBorder=8mm
2539 \end_layout
2540
2541 \begin_layout LyX-Code
2542
2543 \backslash
2544 TopBorder=9mm
2545 \end_layout
2546
2547 \begin_layout LyX-Code
2548
2549 \backslash
2550 BottomBorder=2mm
2551 \end_layout
2552
2553 \begin_layout Standard
2554
2555 \family roman
2556 \series medium
2557 \shape up
2558 \size normal
2559 \emph off
2560 \bar no
2561 \noun off
2562 \color none
2563 これは
2564 \family default
2565 \series default
2566 \shape default
2567 \size default
2568 \emph default
2569 \bar default
2570 \noun default
2571 \color inherit
2572 Averyラベルシートのストック5360
2573 \family roman
2574 \series medium
2575 \shape up
2576 \size normal
2577 \emph off
2578 \bar no
2579 \noun off
2580 \color none
2581 番を使用する場合の設定です.これで,各宛名を
2582 \begin_inset Flex Code
2583 status collapsed
2584
2585 \begin_layout Plain Layout
2586
2587 \family typewriter
2588
2589 \backslash
2590 begin{labels}
2591 \end_layout
2592
2593 \end_inset
2594
2595
2596 \family typewriter
2597 \series default
2598 \shape default
2599 \size default
2600 \emph default
2601 \bar default
2602 \noun default
2603 \color inherit
2604
2605 \begin_inset Flex Code
2606 status collapsed
2607
2608 \begin_layout Plain Layout
2609
2610 \family typewriter
2611
2612 \backslash
2613 end{labels}
2614 \end_layout
2615
2616 \end_inset
2617
2618
2619 \family roman
2620 \series medium
2621 \shape up
2622 \size normal
2623 \emph off
2624 \bar no
2625 \noun off
2626 \color none
2627 で囲めば,宛名ラベルの印刷をすることができます.本機能およびその他の機能に関しては,
2628 \begin_inset Flex Code
2629 status collapsed
2630
2631 \begin_layout Plain Layout
2632
2633 \family typewriter
2634 labels.sty
2635 \end_layout
2636
2637 \end_inset
2638
2639 の取扱説明書に説明されています.
2640 \end_layout
2641
2642 \begin_layout Standard
2643
2644 \family roman
2645 \series medium
2646 \shape up
2647 \size normal
2648 \emph off
2649 \bar no
2650 \noun off
2651 \color none
2652 そのうち誰かが,このパッケージを直接サポートする\SpecialChar LyX
2653 レイアウトファイルを作ってくれるかもしれません.その誰かはあなたかもしれません.
2654 \end_layout
2655
2656 \begin_layout Subsubsection
2657 例3: 段落の字下げ
2658 \end_layout
2659
2660 \begin_layout Standard
2661
2662 \family roman
2663 \series medium
2664 \shape up
2665 \size normal
2666 \emph off
2667 \bar no
2668 \noun off
2669 \color none
2670 アメリカ人は
2671 \family default
2672 \series default
2673 \shape default
2674 \size default
2675 \emph default
2676 \bar default
2677 \noun default
2678 \color inherit
2679
2680 \emph on
2681 すべての
2682 \family roman
2683 \series medium
2684 \shape up
2685 \size normal
2686 \emph off
2687 \bar no
2688 \noun off
2689 \color none
2690 段落の最初の行を字下げするように教育されています.そのために彼らの他の変な習慣と同じく,いつものようにすべての段落の最初の行を下げるまで,アメリカ人はごちゃごち
2691 ゃと文句を言いつづけるのです
2692 \family default
2693 \series default
2694 \shape default
2695 \size default
2696 \emph default
2697 \bar default
2698 \noun default
2699 \color inherit
2700 .(これはユーモアです.(ほんと?)
2701 \emph on
2702 ユーモアですってば
2703 \emph default
2704 .)
2705 \end_layout
2706
2707 \begin_layout Standard
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 \family default
2719 \series default
2720 \shape default
2721 \size default
2722 \emph on
2723 \bar default
2724 \noun default
2725 \color inherit
2726 のみ
2727 \family roman
2728 \series medium
2729 \shape up
2730 \size normal
2731 \emph off
2732 \bar no
2733 \noun off
2734 \color none
2735 字下げを行ないます.一行めを字下げをするそもそもの目的は,隣接する段落から区別するためです.したがって,図のあとや節の最初の段落など,先行する段落がない場合には
2736 ,字下げをする必要はないのです.
2737 \end_layout
2738
2739 \begin_layout Standard
2740
2741 \family roman
2742 \series medium
2743 \shape up
2744 \size normal
2745 \emph off
2746 \bar no
2747 \noun off
2748 \color none
2749 けれどもあなたが典型的なアメリカ人なら(ユーーモアですって!),そのような小難しいことはかまわずに,いつもどおりの字下げをせずにはいられないでしょう!プリアンブ
2750 ルに次の行を加えて下さい.
2751 \end_layout
2752
2753 \begin_layout LyX-Code
2754
2755 \backslash
2756 usepackage{indentfirst}
2757 \end_layout
2758
2759 \begin_layout Standard
2760
2761 \family roman
2762 \series medium
2763 \shape up
2764 \size normal
2765 \emph off
2766 \bar no
2767 \noun off
2768 \color none
2769 もしお使いの\SpecialChar TeX
2770 頒布版が脳死状態でなければ,このパッケージが入っているはずなので,建国の父たちが意図したように,すべての段落が字下げされます.
2771 \end_layout
2772
2773 \begin_layout Subsubsection
2774 例4:この文書
2775 \end_layout
2776
2777 \begin_layout Standard
2778
2779 \family roman
2780 \series medium
2781 \shape up
2782 \size normal
2783 \emph off
2784 \bar no
2785 \noun off
2786 \color none
2787 この文書のプリアンブルを見てみると,どのような高度な設定ができるか,おおまかな理解が得られるでしょう.また第
2788 \family default
2789 \series default
2790 \shape default
2791 \size default
2792 \emph default
2793 \bar default
2794 \noun default
2795 \color inherit
2796
2797 \begin_inset CommandInset ref
2798 LatexCommand ref
2799 reference "chap:Special-features"
2800
2801 \end_inset
2802
2803
2804 \family roman
2805 \series medium
2806 \shape up
2807 \size normal
2808 \emph off
2809 \bar no
2810 \noun off
2811 \color none
2812 章には,他の例や,\SpecialChar LaTeX
2813 の各種の「汚い技」があります.
2814 \end_layout
2815
2816 \begin_layout Section
2817 \SpecialChar LyX
2818 および\SpecialChar LaTeX
2819 のエラー
2820 \end_layout
2821
2822 \begin_layout Standard
2823
2824 \family roman
2825 \series medium
2826 \shape up
2827 \size normal
2828 \emph off
2829 \bar no
2830 \noun off
2831 \color none
2832 \SpecialChar LyX
2833 が\SpecialChar LaTeX
2834 を呼び出す際,\SpecialChar LyX
2835 は\SpecialChar LaTeX
2836 に,かりにエラーがあったとしても楽観的に無視して先に進むように指示します.その後\SpecialChar LyX
2837 は,\SpecialChar LaTeX
2838 の実行ログファイルを事後処理用に使います.ログファイルを分
2839 析したのち,\SpecialChar LyX
2840 はエラーを一覧表示するダイアログを表示します.エラーのうちどれかをクリックすると,\SpecialChar LyX
2841 ファイル中,そのエラーの発生した場所に表示を移動します
2842 \begin_inset Foot
2843 status collapsed
2844
2845 \begin_layout Plain Layout
2846
2847 \family roman
2848 \series medium
2849 \shape up
2850 \size normal
2851 \emph off
2852 \bar no
2853 \noun off
2854 \color none
2855 正確にいうと,通常は,です.ログファイルの分析は難しい仕事ですので,\SpecialChar LyX
2856 はつねに正しい行に連れて行ってくれるとは限りません.ときには,\SpecialChar LaTeX
2857 がある行にエラーがあると報告し
2858 たとしても,実際のエラーはそれよりも前であることもあります.これは,プログラムで閉じ括弧を忘れたときに似ていなくもありません.エラーは表示されますが,実際にエラ
2859 ーのある場所よりも後ろでエラーが報告されるのです.
2860 \end_layout
2861
2862 \end_inset
2863
2864
2865 \family default
2866 \series default
2867 \shape default
2868 \size default
2869 \emph default
2870 \bar default
2871 \noun default
2872 \color inherit
2873
2874 \end_layout
2875
2876 \begin_layout Standard
2877
2878 \family roman
2879 \series medium
2880 \shape up
2881 \size normal
2882 \emph off
2883 \bar no
2884 \noun off
2885 \color none
2886 人によっては,ログファイルを直接ご覧になりたいかもしれません.これは,
2887 \begin_inset Flex MenuItem
2888 status collapsed
2889
2890 \begin_layout Plain Layout
2891
2892 \family roman
2893 \series medium
2894 \shape up
2895 \size normal
2896 \emph off
2897 \bar no
2898 \noun off
2899 \color none
2900 文書\SpecialChar menuseparator
2901 LaTeXログ
2902 \end_layout
2903
2904 \end_inset
2905
2906 で見ることができます.エラーメッセージや警告には,よく見かけるものがいくつかありますので,それらをここに収録しておきます.ここにないエラーや警告に関しては,La\SpecialChar TeX
2907
2908 関連の良書を参照してください.
2909 \end_layout
2910
2911 \begin_layout Itemize
2912
2913 \family typewriter
2914 \begin_inset Flex Code
2915 status collapsed
2916
2917 \begin_layout Plain Layout
2918
2919 \family typewriter
2920 LaTeX Warning
2921 \end_layout
2922
2923 \end_inset
2924
2925
2926 \family roman
2927 \series medium
2928 \shape up
2929 \size normal
2930 \emph off
2931 \bar no
2932 \noun off
2933 \color none
2934
2935 \begin_inset Newline newline
2936 \end_inset
2937
2938 これで始まるメッセージは,\SpecialChar LaTeX
2939 コード自体を「デバッグ」するための警告メッセージです.相互参照や書誌情報を追加したり変更した場合に,もう一度\SpecialChar LaTeX
2940 を実行する必要があることを
2941 知らせるために,このようなメッセージが表示されます.このメッセージは,だいたいにおいて無視しても大丈夫です.
2942 \end_layout
2943
2944 \begin_layout Itemize
2945
2946 \family typewriter
2947 \begin_inset Flex Code
2948 status collapsed
2949
2950 \begin_layout Plain Layout
2951
2952 \family typewriter
2953 LaTeX Font Warning
2954 \end_layout
2955
2956 \end_inset
2957
2958
2959 \family roman
2960 \series medium
2961 \shape up
2962 \size normal
2963 \emph off
2964 \bar no
2965 \noun off
2966 \color none
2967
2968 \begin_inset Newline newline
2969 \end_inset
2970
2971 \SpecialChar LaTeX
2972 がフォントを見つけられなかったと言う警告メッセージです.多くの場合,このメッセージの後に,\SpecialChar LaTeX
2973 が使用した代替フォントに関する情報が続きます.これも無視して構いません
2974
2975 \end_layout
2976
2977 \begin_layout Itemize
2978
2979 \family roman
2980 \series medium
2981 \shape up
2982 \size normal
2983 \emph off
2984 \bar no
2985 \noun off
2986 \color none
2987 \begin_inset Flex Code
2988 status collapsed
2989
2990 \begin_layout Plain Layout
2991
2992 \family typewriter
2993 Overfull 
2994 \backslash
2995 hbox
2996 \end_layout
2997
2998 \end_inset
2999
3000
3001 \begin_inset Newline newline
3002 \end_inset
3003
3004 \SpecialChar LaTeX
3005 は,
3006 \family default
3007 \series default
3008 \shape default
3009 \size default
3010 \emph on
3011 \bar default
3012 \noun default
3013 \color inherit
3014 ほぼどんなときでも
3015 \family roman
3016 \series medium
3017 \shape up
3018 \size normal
3019 \emph off
3020 \bar no
3021 \noun off
3022 \color none
3023 この警告を吐き出します.最終出力を見ても判別できないくらい(せいぜい1ポイントか2ポイント)です.あるいは1文字か2文字右余白に出ているくらいです.
3024 \family default
3025 \series default
3026 \shape default
3027 \size default
3028 \emph default
3029 \bar default
3030 \noun default
3031 \color inherit
3032 \lang english
3033 \SpecialChar LaTeX
3034  absolutely 
3035 \emph on
3036 loves
3037 \emph default
3038  to spew these out.
3039  It seems to generate at least one of these messages for just about any
3040  document you write.
3041  They are warnings about lines that were too long and run past the right
3042  margin.
3043  This happens if \SpecialChar LaTeX
3044  does not find a reasonable way to break the lines (notoriously
3045  often with typewriter font, since this does not allow for automatic break
3046  points).
3047  In many cases, this is unnoticeable in the final output.
3048  (It can be just a point or two.) Sometimes, however, the lines run rather
3049  visibly into the margin; something you will not want to have in your final
3050  print.
3051  
3052 \begin_inset Newline newline
3053 \end_inset
3054
3055 There are several global ways to try to minimize the overfull lines.
3056  Clicking 
3057 \family sans
3058 Enable micro-typographic extensions
3059 \family default
3060  in 
3061 \family sans
3062 Document\SpecialChar menuseparator
3063 Settings\SpecialChar menuseparator
3064 Fonts
3065 \family default
3066  might already improve things a lot.
3067  Furthermore, \SpecialChar LaTeX
3068  code such as the following in 
3069 \family sans
3070 Document\SpecialChar menuseparator
3071 Settings\SpecialChar menuseparator
3072 Preamble
3073 \family default
3074  usually reduces the overfull lines drastically (we use this in the preamble
3075  of this document):
3076 \end_layout
3077
3078 \begin_deeper
3079 \begin_layout LyX-Code
3080
3081 \lang english
3082
3083 \backslash
3084 tolerance 1414
3085 \begin_inset Newline newline
3086 \end_inset
3087
3088
3089 \backslash
3090 hbadness 1414
3091 \begin_inset Newline newline
3092 \end_inset
3093
3094
3095 \backslash
3096 emergencystretch 1.5em
3097 \begin_inset Newline newline
3098 \end_inset
3099
3100
3101 \backslash
3102 hfuzz 0.3pt
3103 \end_layout
3104
3105 \begin_layout Standard
3106
3107 \lang english
3108 In some cases, however, you eventually have to rewrite the text to get the
3109  line breaking right.
3110 \begin_inset Foot
3111 status collapsed
3112
3113 \begin_layout Plain Layout
3114
3115 \lang english
3116 For more information, see 
3117 \begin_inset Flex URL
3118 status open
3119
3120 \begin_layout Plain Layout
3121
3122 http://www.tex.ac.uk/FAQ-overfull.html
3123 \end_layout
3124
3125 \end_inset
3126
3127
3128 \end_layout
3129
3130 \end_inset
3131
3132
3133 \end_layout
3134
3135 \begin_layout Standard
3136
3137 \lang english
3138 In any case, you should check the respective lines, at least for the final
3139  version of your document.
3140  Your eyes will tell you if there's a problem with something that's too
3141  wide.
3142 \begin_inset Foot
3143 status collapsed
3144
3145 \begin_layout Plain Layout
3146
3147 \lang english
3148 You can also enable the `draft' option in 
3149 \begin_inset Flex Noun
3150 status collapsed
3151
3152 \begin_layout Plain Layout
3153
3154 \lang english
3155 Document\SpecialChar menuseparator
3156 Settings
3157 \end_layout
3158
3159 \end_inset
3160
3161 , and then \SpecialChar LaTeX
3162  will draw a black box in the margin of lines that are overfull.
3163 \end_layout
3164
3165 \end_inset
3166
3167  
3168 \end_layout
3169
3170 \end_deeper
3171 \begin_layout Itemize
3172
3173 \family typewriter
3174 \begin_inset Flex Code
3175 status collapsed
3176
3177 \begin_layout Plain Layout
3178
3179 \family typewriter
3180 Underfull 
3181 \backslash
3182 hbox
3183 \end_layout
3184
3185 \end_inset
3186
3187
3188 \begin_inset Newline newline
3189 \end_inset
3190
3191
3192 \family default
3193 \lang english
3194 Not quite as common as its cousin.
3195  This happens again if \SpecialChar LaTeX
3196  does not find a reasonable break point and consequently
3197  generates too loose lines.
3198  As with the overfull lines, you should check if this is a visible problem.
3199 \end_layout
3200
3201 \begin_layout Itemize
3202 \begin_inset Flex Code
3203 status collapsed
3204
3205 \begin_layout Plain Layout
3206
3207 \family typewriter
3208 Overfull 
3209 \backslash
3210 vbox
3211 \end_layout
3212
3213 \end_inset
3214
3215
3216 \family typewriter
3217
3218 \begin_inset Flex Code
3219 status collapsed
3220
3221 \begin_layout Plain Layout
3222
3223 \family typewriter
3224 Underfull 
3225 \backslash
3226 vbox
3227 \end_layout
3228
3229 \end_inset
3230
3231
3232 \family default
3233
3234 \begin_inset Newline newline
3235 \end_inset
3236
3237
3238 \family roman
3239 \series medium
3240 \shape up
3241 \size normal
3242 \emph off
3243 \bar no
3244 \noun off
3245 \color none
3246 ページ区切りに問題があったという警告です.この場合も,出力を目で確認してください.何か問題があれば,見てすぐわかります.
3247 \end_layout
3248
3249 \begin_layout Itemize
3250
3251 \family typewriter
3252 \begin_inset Flex Code
3253 status collapsed
3254
3255 \begin_layout Plain Layout
3256
3257 \family typewriter
3258 LaTeX Error: File 
3259 \begin_inset Quotes els
3260 \end_inset
3261
3262 Xxxx
3263 \begin_inset Quotes ers
3264 \end_inset
3265
3266  not found
3267 \end_layout
3268
3269 \end_inset
3270
3271
3272 \family roman
3273 \series medium
3274 \shape up
3275 \size normal
3276 \emph off
3277 \bar no
3278 \noun off
3279 \color none
3280
3281 \begin_inset Newline newline
3282 \end_inset
3283
3284 ファイル「Xxxx」が,システムに導入されていません.これは通常,文書が必要としている\SpecialChar LaTeX
3285 パッケージに,導入済でないものがある場合に現れます.プリアンブルに変更を加
3286 えておらず,
3287 \begin_inset Flex Code
3288 status collapsed
3289
3290 \begin_layout Plain Layout
3291
3292 \family typewriter
3293
3294 \backslash
3295 usepackage{}
3296 \end_layout
3297
3298 \end_inset
3299
3300 コマンドも使用していないとすれば,\SpecialChar LyX
3301 が読み込もうしているパッケージに存在しないものがあるということです.
3302 \family default
3303 \series default
3304 \shape default
3305 \size default
3306 \emph default
3307 \bar default
3308 \noun default
3309 \color inherit
3310
3311 \begin_inset Flex MenuItem
3312 status collapsed
3313
3314 \begin_layout Plain Layout
3315 ヘルプ\SpecialChar menuseparator
3316 \SpecialChar LaTeX
3317 の設定
3318 \end_layout
3319
3320 \end_inset
3321
3322
3323 \family roman
3324 \series medium
3325 \shape up
3326 \size normal
3327 \emph off
3328 \bar no
3329 \noun off
3330 \color none
3331 を使用して,\SpecialChar LyX
3332 が認識しているパッケージの一覧を得てください.このファイルは,(
3333 \begin_inset Flex MenuItem
3334 status collapsed
3335
3336 \begin_layout Plain Layout
3337
3338 \family roman
3339 \series medium
3340 \shape up
3341 \size normal
3342 \emph off
3343 \bar no
3344 \noun off
3345 \color none
3346 ツール\SpecialChar menuseparator
3347 再設定
3348 \end_layout
3349
3350 \end_inset
3351
3352 を使用して)\SpecialChar LyX
3353 の再設定を行うたびに更新され,どのパッケージが検出されたか,それらのパッケージが何をするものかを表示します.
3354 \begin_inset Newline newline
3355 \end_inset
3356
3357
3358 \family sans
3359 \series default
3360 \shape default
3361 \size default
3362 \emph default
3363 \bar default
3364 \noun default
3365 \color inherit
3366
3367 \begin_inset Flex Code
3368 status collapsed
3369
3370 \begin_layout Plain Layout
3371
3372 \family sans
3373
3374 \backslash
3375 usepackage{}
3376 \end_layout
3377
3378 \end_inset
3379
3380
3381 \family roman
3382 \series medium
3383 \shape up
3384 \size normal
3385 \emph off
3386 \bar no
3387 \noun off
3388 \color none
3389 コマンドを使っていて,肝心のパッケージが導入されていない場合には,ご自身で導入する必要があります.
3390 \end_layout
3391
3392 \begin_layout Itemize
3393
3394 \family typewriter
3395 \begin_inset Flex Code
3396 status collapsed
3397
3398 \begin_layout Plain Layout
3399
3400 \family typewriter
3401 LaTeX Error: Unknown option
3402 \end_layout
3403
3404 \end_inset
3405
3406
3407 \family roman
3408 \series medium
3409 \shape up
3410 \size normal
3411 \emph off
3412 \bar no
3413 \noun off
3414 \color none
3415
3416 \begin_inset Newline newline
3417 \end_inset
3418
3419 このように始まるエラーメッセージは,パッケージに誤ったあるいは未定義のオプションが指定されていることを伝えようとするものです.パッケージの取扱説明書をご確認くだ
3420 さい.
3421 \end_layout
3422
3423 \begin_layout Itemize
3424
3425 \family typewriter
3426 \begin_inset Flex Code
3427 status collapsed
3428
3429 \begin_layout Plain Layout
3430
3431 \family typewriter
3432 Undefined control sequence
3433 \end_layout
3434
3435 \end_inset
3436
3437
3438 \family roman
3439 \series medium
3440 \shape up
3441 \size normal
3442 \emph off
3443 \bar no
3444 \noun off
3445 \color none
3446
3447 \begin_inset Newline newline
3448 \end_inset
3449
3450 お使いの文書に\SpecialChar LaTeX
3451 コードを挿入した際,打ち間違いをしてしまうと,このようなメッセージが表示されます.あるいは,パッケージを読み込ませるのを忘れたのかもしれません.い
3452 ずれにしても,このメッセージは,あなたが未定義のコマンドを使用したことを示しています.
3453 \end_layout
3454
3455 \begin_layout Standard
3456
3457 \family roman
3458 \series medium
3459 \shape up
3460 \size normal
3461 \emph off
3462 \bar no
3463 \noun off
3464 \color none
3465 これ以外にも,エラーメッセージや警告メッセージがあります.一般に,読んで意味がすぐにわかるものは,\SpecialChar LaTeX
3466 のメッセージです.何を言っているのかさっぱりわからないものもあ
3467 りますが,通常これらは,\SpecialChar TeX
3468 のメッセージであり,それが何を意味しているのか,どのように解読すればいいのか,
3469 \family default
3470 \series default
3471 \shape default
3472 \size default
3473 \emph on
3474 \bar default
3475 \noun default
3476 \color inherit
3477 まったく
3478 \family roman
3479 \series medium
3480 \shape up
3481 \size normal
3482 \emph off
3483 \bar no
3484 \noun off
3485 \color none
3486 手がかりがありません.誰もわからないのです.
3487 \end_layout
3488
3489 \begin_layout Standard
3490
3491 \family roman
3492 \series medium
3493 \shape up
3494 \size normal
3495 \emph off
3496 \bar no
3497 \noun off
3498 \color none
3499 エラーメッセージが表示された場合は,つねに以下のチェックリストにしたがった方がよいでしょう.
3500 \end_layout
3501
3502 \begin_layout Enumerate
3503
3504 \family roman
3505 \series medium
3506 \shape up
3507 \size normal
3508 \emph off
3509 \bar no
3510 \noun off
3511 \color none
3512 ご自分で挿入した\SpecialChar LaTeX
3513 コードに打ち間違いがないかどうか確かめる.
3514 \end_layout
3515
3516 \begin_layout Enumerate
3517
3518 \family roman
3519 \series medium
3520 \shape up
3521 \size normal
3522 \emph off
3523 \bar no
3524 \noun off
3525 \color none
3526 打ち間違いがなければ,コマンドを正しく使ったかどうか確かめる.
3527 \end_layout
3528
3529 \begin_layout Enumerate
3530
3531 \family roman
3532 \series medium
3533 \shape up
3534 \size normal
3535 \emph off
3536 \bar no
3537 \noun off
3538 \color none
3539 文書のもっともはじめの部分にエラーボックスが多数積み上がった場合には—特に
3540 \begin_inset Flex Code
3541 status collapsed
3542
3543 \begin_layout Plain Layout
3544
3545 \family roman
3546 \series medium
3547 \shape up
3548 \size normal
3549 \emph off
3550 \bar no
3551 \noun off
3552 \color none
3553 Missing 
3554 \backslash
3555 begin{document}
3556 \end_layout
3557
3558 \end_inset
3559
3560 が表示されているならば—,プリアンブルにエラーがあることを意味します.プリアンブルのデバックを行ってください.
3561 \end_layout
3562
3563 \begin_layout Enumerate
3564
3565 \family roman
3566 \series medium
3567 \shape up
3568 \size normal
3569 \emph off
3570 \bar no
3571 \noun off
3572 \color none
3573 プリアンブルに何も追加せず,文書に\SpecialChar LaTeX
3574 コードをまったく挿入しなかった場合には,\SpecialChar LaTeX
3575 頒布版自体をまず疑ってください.導入されていないパッケージを探しだして,導入してくださ
3576 い.
3577 \end_layout
3578
3579 \begin_layout Enumerate
3580
3581 \family roman
3582 \series medium
3583 \shape up
3584 \size normal
3585 \emph off
3586 \bar no
3587 \noun off
3588 \color none
3589 導入されていないパッケージはなかったものとしましょう.\SpecialChar LyX
3590 を微調整するオプションを使用していますか.特に,手動で
3591 \begin_inset Flex Code
3592 status collapsed
3593
3594 \begin_layout Plain Layout
3595
3596 \family sans
3597 Protected
3598 \begin_inset space ~
3599 \end_inset
3600
3601 Blank
3602 \end_layout
3603
3604 \end_inset
3605
3606
3607 \begin_inset Flex Code
3608 status collapsed
3609
3610 \begin_layout Plain Layout
3611
3612 \family sans
3613 Linebreak
3614 \end_layout
3615
3616 \end_inset
3617
3618
3619 \family sans
3620 \series default
3621 \shape default
3622 \size default
3623 \emph default
3624 \bar default
3625 \noun default
3626 \color inherit
3627
3628 \begin_inset Flex Code
3629 status collapsed
3630
3631 \begin_layout Plain Layout
3632
3633 \family sans
3634 Pagebreak
3635 \end_layout
3636
3637 \end_inset
3638
3639
3640 \family roman
3641 \series medium
3642 \shape up
3643 \size normal
3644 \emph off
3645 \bar no
3646 \noun off
3647 \color none
3648 などをたくさん挿入するなど,微調整オプションを
3649 \family default
3650 \series default
3651 \shape default
3652 \size default
3653 \emph on
3654 \bar default
3655 \noun default
3656 \color inherit
3657 悪用
3658 \family roman
3659 \series medium
3660 \shape up
3661 \size normal
3662 \emph off
3663 \bar no
3664 \noun off
3665 \color none
3666 していませんか.適切な段落環境を使用する代わりに,これらを使用してその場をしのごうとしていませんか.
3667 \end_layout
3668
3669 \begin_layout Enumerate
3670
3671 \family roman
3672 \series medium
3673 \shape up
3674 \size normal
3675 \emph off
3676 \bar no
3677 \noun off
3678 \color none
3679 微調整オプションはまったく使用しておらず,規則に乗っ取って作業していたものとしましょう.何か曲芸のようなことをしようとはしていませんか.数式や表中で,たとえば表
3680 のセルに図を入れるなど,おかしなことをしようとしていませんか.
3681 \end_layout
3682
3683 \begin_layout Enumerate
3684 \SpecialChar LaTeX
3685 が改行位置を見つけられないほど長い一節がありませんか.既定では,改行するために単語間に空白をたくさん追加することを,\SpecialChar LaTeX
3686 はかなり嫌います.可能であれば,問題が生じな
3687 いように段落を修正するのが望ましいでしょう.
3688 \end_layout
3689
3690 \begin_layout Enumerate
3691
3692 \family roman
3693 \series medium
3694 \shape up
3695 \size normal
3696 \emph off
3697 \bar no
3698 \noun off
3699 \color none
3700 入れ子の階層を深くしすぎていませんか.\SpecialChar LyX
3701 は,(今のところ)環境の入れ子の階層が制限内にあるかチェックしません.かりに,環境を17段の入れ子にしたりしていたら,それ
3702 が原因です(\SpecialChar LaTeX
3703 の上限は5段です).
3704 \end_layout
3705
3706 \begin_layout Enumerate
3707
3708 \family roman
3709 \series medium
3710 \shape up
3711 \size normal
3712 \emph off
3713 \bar no
3714 \noun off
3715 \color none
3716 エラーメッセージは発生しないけれども,出力がひどいものとしましょう.図表が幅が広すぎたり長すぎてページに収まらない場合には,
3717 \end_layout
3718
3719 \begin_deeper
3720 \begin_layout Enumerate
3721
3722 \family roman
3723 \series medium
3724 \shape up
3725 \size normal
3726 \emph off
3727 \bar no
3728 \noun off
3729 \color none
3730 図がページに合うように大きさを変える,
3731 \end_layout
3732
3733 \begin_layout Enumerate
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 \end_layout
3745
3746 \begin_layout Standard
3747
3748 \family roman
3749 \series medium
3750 \shape up
3751 \size normal
3752 \emph off
3753 \bar no
3754 \noun off
3755 \color none
3756 などの手段を採る必要があります.
3757 \end_layout
3758
3759 \end_deeper
3760 \begin_layout Enumerate
3761 他に出力におかしいところがあり,曲芸をやろうとしたり微調整オプションでしのごうとしたりはしていないとすれば,何がおかしいのか確定的なことは言えません.
3762 \end_layout
3763
3764 \begin_layout Standard
3765
3766 \family roman
3767 \series medium
3768 \shape up
3769 \size normal
3770 \emph off
3771 \bar no
3772 \noun off
3773 \color none
3774 これらすべてが役に立たないとすれば,
3775 \family default
3776 \series default
3777 \shape default
3778 \size default
3779 \emph on
3780 \bar default
3781 \noun default
3782 \color inherit
3783 ひょっとしたら
3784 \family roman
3785 \series medium
3786 \shape up
3787 \size normal
3788 \emph off
3789 \bar no
3790 \noun off
3791 \color none
3792 \SpecialChar LyX
3793 のバグを発見したのかもしれません‥‥.
3794 \end_layout
3795
3796 \begin_layout Chapter
3797 補完ツール
3798 \end_layout
3799
3800 \begin_layout Section
3801 Bib\SpecialChar TeX
3802
3803 \lang english
3804  or Biblatex
3805 \lang japanese
3806 よる書誌情報のカスタマイズ
3807 \end_layout
3808
3809 \begin_layout Standard
3810 Bib\SpecialChar TeX
3811
3812 \lang english
3813  or 
3814 \family sans
3815 Biblatex
3816 \family default
3817  
3818 \lang japanese
3819 の基本的な使用法は,『
3820 \emph on
3821 ユーザーの手引き
3822 \emph default
3823 』の「
3824 \emph on
3825 文献データベース
3826 \emph default
3827 」の節に説明があります.以下の各小節では,\SpecialChar LyX
3828 でサポートされている書誌情報の特別な機能について説明することとします.
3829 \end_layout
3830
3831 \begin_layout Subsection
3832 他の引用様式
3833 \end_layout
3834
3835 \begin_layout Standard
3836 標準のBib\SpecialChar TeX
3837
3838 \end_layout
3839
3840 \begin_layout Standard
3841
3842 \lang english
3843 Standard Bib\SpecialChar TeX
3844  uses numbers (e.
3845 \begin_inset space \thinspace{}
3846 \end_inset
3847
3848 g.
3849 \begin_inset space \space{}
3850 \end_inset
3851
3852
3853 \begin_inset Quotes eld
3854 \end_inset
3855
3856 [12]
3857 \begin_inset Quotes erd
3858 \end_inset
3859
3860 ) to refer to a cited work.
3861  However, in many scientific disciplines, other citation styles are in use.
3862  The most common one is the author-year style (e.
3863 \begin_inset space \thinspace{}
3864 \end_inset
3865
3866 g.
3867 \begin_inset space \space{}
3868 \end_inset
3869
3870
3871 \begin_inset Quotes eld
3872 \end_inset
3873
3874 Knuth 1984a
3875 \begin_inset Quotes erd
3876 \end_inset
3877
3878 ).
3879  \SpecialChar LyX
3880  supports three packages that provide this style, 
3881 \begin_inset Flex Code
3882 status collapsed
3883
3884 \begin_layout Plain Layout
3885
3886 \lang english
3887 biblatex
3888 \end_layout
3889
3890 \end_inset
3891
3892
3893 \begin_inset Flex Code
3894 status collapsed
3895
3896 \begin_layout Plain Layout
3897
3898 \lang english
3899 natbib
3900 \end_layout
3901
3902 \end_inset
3903
3904 , and 
3905 \begin_inset Flex Code
3906 status collapsed
3907
3908 \begin_layout Plain Layout
3909
3910 \lang english
3911 jurabib
3912 \end_layout
3913
3914 \end_inset
3915
3916 .
3917  Each of these packages has their pros and cons, which cannot be listed
3918  in detail.
3919  If you only want to have simple author-year (or author-numerical) style,
3920  or if you want to use one of the countless style files for 
3921 \begin_inset Flex Code
3922 status collapsed
3923
3924 \begin_layout Plain Layout
3925
3926 \lang english
3927 natbib
3928 \end_layout
3929
3930 \end_inset
3931
3932 , then the established 
3933 \begin_inset Flex Code
3934 status collapsed
3935
3936 \begin_layout Plain Layout
3937
3938 \lang english
3939 natbib
3940 \end_layout
3941
3942 \end_inset
3943
3944  package is probably your choice.
3945  If you look for specific citation styles common in law studies, you might
3946  consider the 
3947 \begin_inset Flex Code
3948 status collapsed
3949
3950 \begin_layout Plain Layout
3951
3952 \lang english
3953 jurabib
3954 \end_layout
3955
3956 \end_inset
3957
3958  package.
3959  If you want to have full control over the formatting or look for advanced
3960  features such as ibidem, footnote citations, full title citations, advanced
3961  date formats (such as 400 BC) or full localization to other languages than
3962  English, you should definitely consider 
3963 \begin_inset Flex Code
3964 status collapsed
3965
3966 \begin_layout Plain Layout
3967
3968 \lang english
3969 biblatex
3970 \end_layout
3971
3972 \end_inset
3973
3974 , which exceeds all other packages in terms of features, but is also quite
3975  heavy and more resource-hungry.
3976 \end_layout
3977
3978 \begin_layout Standard
3979
3980 \lang english
3981 The handling of these packages in \SpecialChar LyX
3982  is basically the same.
3983  Go to 
3984 \begin_inset Flex Noun
3985 status collapsed
3986
3987 \begin_layout Plain Layout
3988
3989 \lang english
3990 Document\SpecialChar menuseparator
3991 Settings
3992 \end_layout
3993
3994 \end_inset
3995
3996  and select under 
3997 \begin_inset Flex Noun
3998 status collapsed
3999
4000 \begin_layout Plain Layout
4001
4002 \lang english
4003 Bibliography
4004 \end_layout
4005
4006 \end_inset
4007
4008  the 
4009 \begin_inset Flex Noun
4010 status collapsed
4011
4012 \begin_layout Plain Layout
4013
4014 \lang english
4015 Style Format
4016 \end_layout
4017
4018 \end_inset
4019
4020  
4021 \begin_inset Flex Noun
4022 status collapsed
4023
4024 \begin_layout Plain Layout
4025
4026 \lang english
4027 Biblatex
4028 \end_layout
4029
4030 \end_inset
4031
4032
4033 \begin_inset Flex Noun
4034 status collapsed
4035
4036 \begin_layout Plain Layout
4037
4038 \lang english
4039 Biblatex (Natbib mode)
4040 \end_layout
4041
4042 \end_inset
4043
4044
4045 \begin_inset Flex Noun
4046 status collapsed
4047
4048 \begin_layout Plain Layout
4049
4050 \lang english
4051 Natbib (BibTeX)
4052 \end_layout
4053
4054 \end_inset
4055
4056  or 
4057 \begin_inset Flex Noun
4058 status collapsed
4059
4060 \begin_layout Plain Layout
4061
4062 \lang english
4063 Jurabib (BibTeX)
4064 \end_layout
4065
4066 \end_inset
4067
4068  (see sec.
4069 \begin_inset space ~
4070 \end_inset
4071
4072 6.5.3 in the User's Guide for more information on these choices).
4073  With all these packages, you will get some extra features in the citation
4074  dialog and you can select the style of the reference (
4075 \begin_inset Quotes eld
4076 \end_inset
4077
4078 Knuth 1984
4079 \begin_inset Quotes erd
4080 \end_inset
4081
4082
4083 \begin_inset Quotes eld
4084 \end_inset
4085
4086 Knuth (1984)
4087 \begin_inset Quotes erd
4088 \end_inset
4089
4090
4091 \begin_inset Quotes eld
4092 \end_inset
4093
4094 Knuth, 1984
4095 \begin_inset Quotes erd
4096 \end_inset
4097
4098
4099 \begin_inset Quotes eld
4100 \end_inset
4101
4102 1984
4103 \begin_inset Quotes erd
4104 \end_inset
4105
4106  etc.).
4107  Note that either package needs specifically designed style files.
4108  They all ship their own, but there are lots of additional style files,
4109  and there is even an interactive style file builder
4110 \begin_inset Foot
4111 status collapsed
4112
4113 \begin_layout Plain Layout
4114
4115 \lang english
4116 See 
4117 \begin_inset Flex URL
4118 status open
4119
4120 \begin_layout Plain Layout
4121
4122 ftp://ctan.tug.org/tex-archive/macros/latex/contrib/custom-bib/
4123 \end_layout
4124
4125 \end_inset
4126
4127
4128 \end_layout
4129
4130 \end_inset
4131
4132  for 
4133 \begin_inset Flex Code
4134 status collapsed
4135
4136 \begin_layout Plain Layout
4137
4138 \lang english
4139 natbib
4140 \end_layout
4141
4142 \end_inset
4143
4144 .
4145 \end_layout
4146
4147 \begin_layout Subsection
4148 節分けされた書誌情報
4149 \lang english
4150 Subdivided Bibliographies
4151 \end_layout
4152
4153 \begin_layout Standard
4154 場合によっては,書誌情報をいくつかの節に分ける必要があることがあります.たとえば,あなたが歴史家であるとすれば,出典と学術文献を分ける機能は,おそらく「必需品」
4155 でさえあります.残念ながら,Bib\SpecialChar TeX
4156 自身ではこのようなことができません.しかし,適切な\SpecialChar LaTeX
4157 パッケージの助けを借りると,Bib\SpecialChar TeX
4158 をこのような必要性を満たすように拡張するこ
4159 とができます.
4160 \end_layout
4161
4162 \begin_layout Standard
4163 \SpecialChar LyX
4164 は,このようなパッケージの一つである
4165 \begin_inset Flex Code
4166 status collapsed
4167
4168 \begin_layout Plain Layout
4169 bibtopic
4170 \end_layout
4171
4172 \end_inset
4173
4174
4175 \begin_inset Foot
4176 status collapsed
4177
4178 \begin_layout Plain Layout
4179 \begin_inset Flex URL
4180 status open
4181
4182 \begin_layout Plain Layout
4183
4184 ftp://ctan.tug.org/tex-archive/macros/latex/contrib/bibtopic/
4185 \end_layout
4186
4187 \end_inset
4188
4189 から入手可能です.
4190 \end_layout
4191
4192 \end_inset
4193
4194 をそのままでサポートします.このパッケージの長所は,(
4195 \begin_inset Flex Code
4196 status collapsed
4197
4198 \begin_layout Plain Layout
4199 multibib
4200 \end_layout
4201
4202 \end_inset
4203
4204 のような他のパッケージと比較すると)新規の引用コマンドを定義する必要がないことです.そのかわりに,書誌情報の違う節には,その節向けの項目を収録した別の文献データ
4205 ベースを用意する必要があります.たとえば,書誌情報を「出典」の節と「学術文献」の節に分けたい場合には,それぞれの文献データベース,たとえば
4206 \begin_inset Flex Code
4207 status collapsed
4208
4209 \begin_layout Plain Layout
4210 souces.bib
4211 \end_layout
4212
4213 \end_inset
4214
4215
4216 \begin_inset Flex Code
4217 status collapsed
4218
4219 \begin_layout Plain Layout
4220 scientific.bib
4221 \end_layout
4222
4223 \end_inset
4224
4225 とを作成する必要があります.
4226 \end_layout
4227
4228 \begin_layout Standard
4229 \begin_inset Flex MenuItem
4230 status collapsed
4231
4232 \begin_layout Plain Layout
4233 文書\SpecialChar menuseparator
4234 設定
4235 \end_layout
4236
4237 \end_inset
4238
4239 を開いて
4240 \begin_inset Flex MenuItem
4241 status collapsed
4242
4243 \begin_layout Plain Layout
4244 書誌情報
4245 \end_layout
4246
4247 \end_inset
4248
4249 の下の
4250 \begin_inset Flex MenuItem
4251 status collapsed
4252
4253 \begin_layout Plain Layout
4254 節分けされた書誌情報
4255 \end_layout
4256
4257 \end_inset
4258
4259
4260 \lang english
4261
4262 \begin_inset Flex Noun
4263 status collapsed
4264
4265 \begin_layout Plain Layout
4266
4267 \lang english
4268 Subdivided bibliography
4269 \end_layout
4270
4271 \end_inset
4272
4273
4274 \lang japanese
4275 をチェックしてください.すると,書誌情報の各節に一つずつ,複数の書誌情報を挿入することができます.上記の例では,Bib\SpecialChar TeX
4276 書誌情報
4277 \begin_inset Flex Code
4278 status collapsed
4279
4280 \begin_layout Plain Layout
4281 sources.bib
4282 \end_layout
4283
4284 \end_inset
4285
4286 と二つめの文献データベース
4287 \begin_inset Flex Code
4288 status collapsed
4289
4290 \begin_layout Plain Layout
4291 scientific.bib
4292 \end_layout
4293
4294 \end_inset
4295
4296 を挿入します.各節に同じスタイルを用いるか異なるスタイルを用いるかは自由です.くわえて,書誌情報の節に,指定したデータベースの「引用されたすべての参照」を載せる
4297 (これが既定です)か,「引用されなかったすべての参照」を載せるか,あるいは「すべての参照」を載せるかを選択することができます.これは,もし書誌情報を「本文に引用
4298 された出典」・「本文に引用されていない出典」・「学術文献」の三つの節に分割したい場合に,便利でありましょう.各節の見出しは,通常の節や小節として入れることができ
4299 ます.
4300 \begin_inset Flex Code
4301 status collapsed
4302
4303 \begin_layout Plain Layout
4304 bibtopic
4305 \end_layout
4306
4307 \end_inset
4308
4309 は,書誌情報用の見出しを取り除いてしまいますので,手動でこれを追加しなくてはなりません(たとえば章*や節*などをお使いください).
4310 \end_layout
4311
4312 \begin_layout Standard
4313
4314 \lang english
4315 With 
4316 \family sans
4317 Biblatex
4318 \family default
4319 , the procedure is a bit different.
4320  Since 
4321 \family typewriter
4322 bibtopic
4323 \family default
4324  does not work with 
4325 \family sans
4326 Biblatex
4327 \family default
4328 , the aforementioned 
4329 \begin_inset Flex Noun
4330 status collapsed
4331
4332 \begin_layout Plain Layout
4333
4334 \lang english
4335 Subdivided bibliography
4336 \end_layout
4337
4338 \end_inset
4339
4340  option is disabled if you use 
4341 \family sans
4342 Biblatex
4343 \family default
4344 .
4345  However, 
4346 \family sans
4347 Biblatex
4348 \family default
4349  provides its own means to generate subdivided bibliographies.
4350  You can either add keywords to bibliography entries via the 
4351 \begin_inset Flex Code
4352 status collapsed
4353
4354 \begin_layout Plain Layout
4355
4356 \lang english
4357 keywords
4358 \end_layout
4359
4360 \end_inset
4361
4362  entry option and then filter bibliography sections by keyword (by adding
4363  
4364 \begin_inset Flex Code
4365 status collapsed
4366
4367 \begin_layout Plain Layout
4368
4369 \lang english
4370 keyword=mykeyword
4371 \end_layout
4372
4373 \end_inset
4374
4375  to the 
4376 \begin_inset Flex Noun
4377 status collapsed
4378
4379 \begin_layout Plain Layout
4380
4381 \lang english
4382 Options
4383 \end_layout
4384
4385 \end_inset
4386
4387  field of the dialog that opens if you right-click on the 
4388 \begin_inset Flex Noun
4389 status collapsed
4390
4391 \begin_layout Plain Layout
4392
4393 \lang english
4394 Biblatex Generated Bibliography
4395 \end_layout
4396
4397 \end_inset
4398
4399  button), or you can filter by entry types (such as 
4400 \emph on
4401 book
4402 \emph default
4403  or 
4404 \emph on
4405 article
4406 \emph default
4407 ) by entering e.
4408 \begin_inset space \thinspace{}
4409 \end_inset
4410
4411 g.
4412  
4413 \begin_inset Flex Code
4414 status collapsed
4415
4416 \begin_layout Plain Layout
4417
4418 \lang english
4419 type=book
4420 \end_layout
4421
4422 \end_inset
4423
4424  or 
4425 \begin_inset Flex Code
4426 status collapsed
4427
4428 \begin_layout Plain Layout
4429
4430 \lang english
4431 nottype=collection
4432 \end_layout
4433
4434 \end_inset
4435
4436  to the mentioned 
4437 \begin_inset Flex Noun
4438 status collapsed
4439
4440 \begin_layout Plain Layout
4441
4442 \lang english
4443 Options
4444 \end_layout
4445
4446 \end_inset
4447
4448  field, or you can create so-called 
4449 \begin_inset Quotes eld
4450 \end_inset
4451
4452 Bibliography Categories
4453 \begin_inset Quotes erd
4454 \end_inset
4455
4456  to which you can assign individual entries.
4457  Please refer to the Biblatex manual, section 
4458 \emph on
4459 Subdivided Bibliographies
4460 \emph default
4461 , for details.
4462 \end_layout
4463
4464 \begin_layout Subsection
4465
4466 \lang english
4467 \begin_inset CommandInset label
4468 LatexCommand label
4469 name "subsec:Multiple-Bibliographies"
4470
4471 \end_inset
4472
4473
4474 \end_layout
4475
4476 \begin_layout Standard
4477
4478 \lang english
4479 Multiple bibliographies, e.
4480 \begin_inset space \thinspace{}
4481 \end_inset
4482
4483 g.
4484 \begin_inset space \space{}
4485 \end_inset
4486
4487 a bibliography for each part, chapter, section, subsection or child (sub-documen
4488 t) of the document, are also supported by \SpecialChar LyX
4489 .
4490  In order to enable it, go to 
4491 \begin_inset Flex Noun
4492 status collapsed
4493
4494 \begin_layout Plain Layout
4495
4496 \lang english
4497 Document\SpecialChar menuseparator
4498 Settings\SpecialChar menuseparator
4499 Bibliography
4500 \end_layout
4501
4502 \end_inset
4503
4504  and select the relevant unit (e.
4505 \begin_inset space \thinspace{}
4506 \end_inset
4507
4508 g., 
4509 \begin_inset Quotes eld
4510 \end_inset
4511
4512 per section
4513 \begin_inset Quotes erd
4514 \end_inset
4515
4516 ) in the 
4517 \begin_inset Flex Noun
4518 status collapsed
4519
4520 \begin_layout Plain Layout
4521
4522 \lang english
4523 Multiple Bibliographies
4524 \end_layout
4525
4526 \end_inset
4527
4528  combo box.
4529  Then add a Bib(la)\SpecialChar TeX
4530  bibliography to each unit (e.
4531 \begin_inset space \thinspace{}
4532 \end_inset
4533
4534 g., section) of your document.
4535  In the output, a separate bibliography, containing only the references
4536  done in the current unit is generated.
4537 \end_layout
4538
4539 \begin_layout Standard
4540
4541 \lang english
4542 If you use Bib\SpecialChar TeX
4543 , either the 
4544 \begin_inset Flex Code
4545 status collapsed
4546
4547 \begin_layout Plain Layout
4548
4549 \lang english
4550 chapterbib
4551 \end_layout
4552
4553 \end_inset
4554
4555  of the 
4556 \begin_inset Flex Code
4557 status collapsed
4558
4559 \begin_layout Plain Layout
4560
4561 \lang english
4562 bibtopic
4563 \end_layout
4564
4565 \end_inset
4566
4567  package is used to create multiple bibliographies.
4568  The former package is used if you select 
4569 \begin_inset Quotes eld
4570 \end_inset
4571
4572 per child document
4573 \begin_inset Quotes erd
4574 \end_inset
4575
4576  and do 
4577 \emph on
4578 not
4579 \emph default
4580  check 
4581 \begin_inset Flex Noun
4582 status collapsed
4583
4584 \begin_layout Plain Layout
4585
4586 \lang english
4587 Sectioned Bibliography
4588 \end_layout
4589
4590 \end_inset
4591
4592 .
4593  In all other cases, 
4594 \begin_inset Flex Code
4595 status collapsed
4596
4597 \begin_layout Plain Layout
4598
4599 \lang english
4600 bibtopic
4601 \end_layout
4602
4603 \end_inset
4604
4605  is used.
4606 \begin_inset Foot
4607 status collapsed
4608
4609 \begin_layout Plain Layout
4610
4611 \lang english
4612 An alternative approach, if you are willing to use some 
4613 \begin_inset Flex Noun
4614 status collapsed
4615
4616 \begin_layout Plain Layout
4617
4618 \lang english
4619 \SpecialChar TeX
4620  Code
4621 \end_layout
4622
4623 \end_inset
4624
4625  (see section
4626 \begin_inset space ~
4627 \end_inset
4628
4629
4630 \begin_inset CommandInset ref
4631 LatexCommand ref
4632 reference "sec:Inserting-TeX-Code"
4633
4634 \end_inset
4635
4636 ), is to use the 
4637 \begin_inset Flex Code
4638 status collapsed
4639
4640 \begin_layout Plain Layout
4641
4642 \lang english
4643 bibunits
4644 \end_layout
4645
4646 \end_inset
4647
4648  package.
4649 \end_layout
4650
4651 \end_inset
4652
4653  If 
4654 \begin_inset Flex Code
4655 status collapsed
4656
4657 \begin_layout Plain Layout
4658
4659 \lang english
4660 bibtopic
4661 \end_layout
4662
4663 \end_inset
4664
4665  is used, \SpecialChar LyX
4666  encloses the specified units in 
4667 \begin_inset Flex Code
4668 status collapsed
4669
4670 \begin_layout Plain Layout
4671
4672 \lang english
4673 bibtopic
4674 \end_layout
4675
4676 \end_inset
4677
4678 's 
4679 \begin_inset Flex Code
4680 status collapsed
4681
4682 \begin_layout Plain Layout
4683
4684 \lang english
4685
4686 \backslash
4687 begin{btUnit}
4688 \end_layout
4689
4690 \end_inset
4691
4692  and 
4693 \begin_inset Flex Code
4694 status collapsed
4695
4696 \begin_layout Plain Layout
4697
4698 \lang english
4699
4700 \backslash
4701 end{btUnit}
4702 \end_layout
4703
4704 \end_inset
4705
4706  in order to create the units.
4707  Note that this approach has some limitations.
4708  First, every citation reference has to be inside some 
4709 \begin_inset Flex Code
4710 status collapsed
4711
4712 \begin_layout Plain Layout
4713
4714 \lang english
4715 btUnit
4716 \end_layout
4717
4718 \end_inset
4719
4720 .
4721  So citations outside a defined unit (e.
4722 \begin_inset space \thinspace{}
4723 \end_inset
4724
4725 g., before the first section if you use 
4726 \begin_inset Quotes eld
4727 \end_inset
4728
4729 by section
4730 \begin_inset Quotes erd
4731 \end_inset
4732
4733 ) will appear as 
4734 \begin_inset Quotes eld
4735 \end_inset
4736
4737 ???
4738 \begin_inset Quotes erd
4739 \end_inset
4740
4741 .
4742  You can also create your own units by entering 
4743 \begin_inset Flex Code
4744 status collapsed
4745
4746 \begin_layout Plain Layout
4747
4748 \lang english
4749
4750 \backslash
4751 begin{btUnit}
4752 \end_layout
4753
4754 \end_inset
4755
4756  and 
4757 \begin_inset Flex Code
4758 status collapsed
4759
4760 \begin_layout Plain Layout
4761
4762 \lang english
4763
4764 \backslash
4765 end{btUnit}
4766 \end_layout
4767
4768 \end_inset
4769
4770  as \SpecialChar TeX
4771  code (for instance to work around the mentioned limitation).
4772  Note, though, that 
4773 \begin_inset Flex Code
4774 status collapsed
4775
4776 \begin_layout Plain Layout
4777
4778 \lang english
4779 btUnit
4780 \end_layout
4781
4782 \end_inset
4783
4784 s cannot be nested.
4785  A second limitation is that 
4786 \begin_inset Flex Code
4787 status collapsed
4788
4789 \begin_layout Plain Layout
4790
4791 \lang english
4792 bibtopic
4793 \end_layout
4794
4795 \end_inset
4796
4797  always processes all references of a bibliography database, even if they
4798  are not cited.
4799  This can result in odd labels (e.
4800 \begin_inset space \thinspace{}
4801 \end_inset
4802
4803 g.
4804  
4805 \begin_inset Quotes eld
4806 \end_inset
4807
4808 Miller 2014b
4809 \begin_inset Quotes erd
4810 \end_inset
4811
4812  if two works of this author from 2014 are in the database, even if only
4813  one is cited).
4814 \end_layout
4815
4816 \begin_layout Standard
4817
4818 \lang english
4819 If you use 
4820 \family sans
4821 Biblatex
4822 \family default
4823 , the 
4824 \begin_inset Flex Code
4825 status collapsed
4826
4827 \begin_layout Plain Layout
4828
4829 \lang english
4830 refsection
4831 \end_layout
4832
4833 \end_inset
4834
4835  option is used instead.
4836  If you need specific units, you can start them with the \SpecialChar TeX
4837  code 
4838 \begin_inset Flex Code
4839 status collapsed
4840
4841 \begin_layout Plain Layout
4842
4843 \lang english
4844
4845 \backslash
4846 newrefsection
4847 \end_layout
4848
4849 \end_inset
4850
4851  or 
4852 \begin_inset Flex Code
4853 status collapsed
4854
4855 \begin_layout Plain Layout
4856
4857 \lang english
4858
4859 \backslash
4860 newrefsegment
4861 \end_layout
4862
4863 \end_inset
4864
4865 , respectively.
4866  If you also want to control the end of the unit, use the environment 
4867 \begin_inset Flex Code
4868 status collapsed
4869
4870 \begin_layout Plain Layout
4871
4872 \lang english
4873
4874 \backslash
4875 begin{refsection}
4876 \end_layout
4877
4878 \end_inset
4879
4880  \SpecialChar ldots
4881  
4882 \begin_inset Flex Code
4883 status collapsed
4884
4885 \begin_layout Plain Layout
4886
4887 \lang english
4888
4889 \backslash
4890 end{refsection}
4891 \end_layout
4892
4893 \end_inset
4894
4895  instead.
4896  Note, though, that 
4897 \begin_inset Flex Code
4898 status collapsed
4899
4900 \begin_layout Plain Layout
4901
4902 \lang english
4903 refsection
4904 \end_layout
4905
4906 \end_inset
4907
4908 s cannot be nested.
4909  In addition to the individual bibliography of the current unit, 
4910 \family sans
4911 Biblatex
4912 \family default
4913  also provides an easy way to output all bibliographies, subsequently, at
4914  one place (e.
4915 \begin_inset space \thinspace{}
4916 \end_inset
4917
4918 g., at the end of the document).
4919  Select 
4920 \begin_inset Quotes eld
4921 \end_inset
4922
4923 all reference units
4924 \begin_inset Quotes erd
4925 \end_inset
4926
4927  from the Content combo box of the Bib(la)TeX inset dialog in order to achieve
4928  this.
4929  Please refer to the 
4930 \family sans
4931 Biblatex
4932 \family default
4933  manual for more information on this topic.
4934 \end_layout
4935
4936 \begin_layout Section
4937 複合文書
4938 \end_layout
4939
4940 \begin_layout Subsection
4941 一般的な操作
4942 \end_layout
4943
4944 \begin_layout Standard
4945 たくさんの節を含んだ大きなファイルで作業をする場合,文書をいくつかのファイルに分割した方が往々にして便利ですし,場合によっては,表部分にはしょっちゅう変更が加え
4946 られるけれども,その前の文章はつねに同じであるようなケースもあるでしょう.このような場合には,複合文書を利用することを,まずご検討ください.たとえば,科学論文は
4947 通常,導入部・所見・結果・議論・結論の五つの節から成ります.これら各節を別々の\SpecialChar LyX
4948 ファイルにして,タイトル・著者・概要・書誌情報等と,これら五つのインクルード
4949 \begin_inset Foot
4950 status collapsed
4951
4952 \begin_layout Plain Layout
4953
4954 \series bold
4955 (訳註)
4956 \series default
4957 「取り込む」の意です.原語「include」に対する訳語として,プログラミング用語の「インクルードする」以外に適語がないので,ここではプログラミング用語をそのま
4958 ま使用します.
4959 \end_layout
4960
4961 \end_inset
4962
4963 ファイルを持つ,もう一つ別の「マスター」ファイルを作成するようにすることができます.これらの各ファイルは,単にマスターファイルにインクルードされるだけでなく,単
4964 独でも出力したり印刷したりすることのできる完全な\SpecialChar LyX
4965 ファイルであるように注意することが重要です.しかも,これらの各ファイルは,同じ文書クラスでなくてはなりません.a
4966 rticleクラスとbookクラスを混在させるようなことはなさらないでください.\SpecialChar LaTeX
4967 ファイルをインクルードすることもできますが,このファイルにはプリアンブルがあって
4968 はなりません(
4969 \begin_inset Flex Code
4970 status collapsed
4971
4972 \begin_layout Plain Layout
4973
4974 \backslash
4975 begin{document}
4976 \end_layout
4977
4978 \end_inset
4979
4980 行とその前のすべて,および
4981 \begin_inset Flex Code
4982 status collapsed
4983
4984 \begin_layout Plain Layout
4985
4986 \backslash
4987 end{document}行
4988 \end_layout
4989
4990 \end_inset
4991
4992 は削除しておかなければなりません).さもないと,DVIファイルを作成する際にエラーが発生するでしょう.
4993 \end_layout
4994
4995 \begin_layout Standard
4996 \SpecialChar LyX
4997 では,
4998 \family sans
4999 挿入\SpecialChar menuseparator
5000 ファイル\SpecialChar menuseparator
5001 子文書
5002 \family default
5003 で簡単にファイルをインクルードすることができます.このメニューを選んでクリックすると,カーソルの現在位置に小さな枠が挿入されます.この枠をクリックすると,ダイア
5004 ログが現れるので,そこでインクルードするファイルとインクルード方法を選択することができます.
5005 \end_layout
5006
5007 \begin_layout Standard
5008 ファイル選択ボックスは,いまや自明でしょう.インクルード方法には,「include」・「input」・「verbatim」の三つがあります.
5009 \lang english
5010 The methods 
5011 \begin_inset Quotes eld
5012 \end_inset
5013
5014 include
5015 \begin_inset Quotes erd
5016 \end_inset
5017
5018  and 
5019 \begin_inset Quotes eld
5020 \end_inset
5021
5022 input
5023 \begin_inset Quotes erd
5024 \end_inset
5025
5026  are similar in many ways, but there are also some notable differences:
5027 \end_layout
5028
5029 \begin_layout Enumerate
5030
5031 \lang english
5032 Files that are 
5033 \begin_inset Quotes eld
5034 \end_inset
5035
5036 included
5037 \begin_inset Quotes erd
5038 \end_inset
5039
5040  are typeset beginning on a new page, while files that are 
5041 \begin_inset Quotes eld
5042 \end_inset
5043
5044 inputted
5045 \begin_inset Quotes erd
5046 \end_inset
5047
5048  are typeset starting on the current page.
5049 \end_layout
5050
5051 \begin_layout Enumerate
5052
5053 \lang english
5054 \begin_inset Quotes eld
5055 \end_inset
5056
5057 Included
5058 \begin_inset Quotes erd
5059 \end_inset
5060
5061  files cannot themselves 
5062 \begin_inset Quotes eld
5063 \end_inset
5064
5065 include
5066 \begin_inset Quotes erd
5067 \end_inset
5068
5069  further files (
5070 \begin_inset Quotes eld
5071 \end_inset
5072
5073 grandchilds
5074 \begin_inset Quotes erd
5075 \end_inset
5076
5077 ).
5078  With 
5079 \begin_inset Quotes eld
5080 \end_inset
5081
5082 input
5083 \begin_inset Quotes erd
5084 \end_inset
5085
5086 , on the other hand, infinite sub-inputting is possible.
5087 \end_layout
5088
5089 \begin_layout Enumerate
5090
5091 \lang english
5092 \begin_inset Quotes eld
5093 \end_inset
5094
5095 Include
5096 \begin_inset Quotes erd
5097 \end_inset
5098
5099  allow for the output of only selected 
5100 \begin_inset Quotes eld
5101 \end_inset
5102
5103 included
5104 \begin_inset Quotes erd
5105 \end_inset
5106
5107  files, while maintaining the actual counters (pagination etc.) and references
5108  (please refer to the section 
5109 \emph on
5110 Child
5111 \begin_inset space ~
5112 \end_inset
5113
5114 Documents
5115 \emph default
5116  of the 
5117 \emph on
5118 Embedded
5119 \begin_inset space ~
5120 \end_inset
5121
5122 Objects
5123 \emph default
5124  manual for details).
5125 \end_layout
5126
5127 \begin_layout Standard
5128
5129 \lang english
5130 Hence, 
5131 \begin_inset Quotes eld
5132 \end_inset
5133
5134 include
5135 \begin_inset Quotes erd
5136 \end_inset
5137
5138  is the preferred method for chapters that are outsourced to child documents,
5139  while 
5140 \begin_inset Quotes eld
5141 \end_inset
5142
5143 input
5144 \begin_inset Quotes erd
5145 \end_inset
5146
5147  is more suitable for arbitrary file inheritance.
5148 \end_layout
5149
5150 \begin_layout Standard
5151 「verbatim」インクルードファイルでは,ファイルの内容がそのまま(つまり「
5152 \begin_inset Flex Code
5153 status collapsed
5154
5155 \begin_layout Plain Layout
5156 verbatim
5157 \end_layout
5158
5159 \end_inset
5160
5161 」モードで)固定幅タイプライタフォントで組版されます.通常,このファイルの空白は,通常の\SpecialChar LyX
5162 での空白の取扱いとは違って,連続した複数の空白がそのまま出力されるものの
5163 ,単なる見えない空白です.ただし,
5164 \family sans
5165
5166 \begin_inset Flex MenuItem
5167 status collapsed
5168
5169 \begin_layout Plain Layout
5170
5171 \family sans
5172 出力の空白に印付けをする
5173 \end_layout
5174
5175 \end_inset
5176
5177
5178 \family default
5179 チェックボックスを有効にすると,空白が存在することを明確にするために空白の印が出力されます.
5180 \end_layout
5181
5182 \begin_layout Standard
5183
5184 \lang english
5185 Generally, the master file is converted into a full \SpecialChar LaTeX
5186  file before typesetting,
5187  while the included files are converted to \SpecialChar LaTeX
5188  files that do not have all the
5189  preamble information.
5190 \end_layout
5191
5192 \begin_layout Subsection
5193 ファイル間の相互参照
5194 \end_layout
5195
5196 \begin_layout Standard
5197 \begin_inset Box Shadowbox
5198 position "t"
5199 hor_pos "c"
5200 has_inner_box 1
5201 inner_pos "t"
5202 use_parbox 0
5203 use_makebox 0
5204 width "100col%"
5205 special "none"
5206 height "1in"
5207 height_special "totalheight"
5208 thickness "0.4pt"
5209 separation "3pt"
5210 shadowsize "4pt"
5211 framecolor "black"
5212 backgroundcolor "none"
5213 status open
5214
5215 \begin_layout Plain Layout
5216 この節の内容は,すでに古くなっています.既定のマスター文書についてと,マスターが開いているときに子文書をどう開くかについて記述する必要があります.[[要修正]]
5217 \end_layout
5218
5219 \end_inset
5220
5221
5222 \end_layout
5223
5224 \begin_layout Standard
5225 異なるファイル間に相互参照を設定することも可能です.まず,すべての関係するファイルを開いてください.例として,2つのファイルを扱う場合を考え,各ファイルをA・B
5226 と呼びます.BがAにインクルードされるファイルだとします.Aにラベルを入れて,Bで参照したいとしましょう.文書Bで相互参照ダイアログを開いて,使用する「バッファ
5227 」を選んでください.
5228 \end_layout
5229
5230 \begin_layout Subsection
5231 すべての子文書での書誌情報
5232 \end_layout
5233
5234 \begin_layout Standard
5235
5236 \lang english
5237 If you work with child documents, you might want to have only one main bibliogra
5238 phy at the end, but still be able to have a selected bibliography for the
5239  child if you output it on its own.
5240  Here is how to achieve this.
5241 \end_layout
5242
5243 \begin_layout Standard
5244
5245 \lang english
5246 For the main document, you just insert a bibliography inset at the place
5247  where the main bibliography has to appear (within the master file or within
5248  a child).
5249  If the bibliography inset is in the master file, the references will be
5250  inherited by all children, so they are available in the citation dialog
5251  within each child.
5252 \end_layout
5253
5254 \begin_layout Standard
5255
5256 \lang english
5257 For child-specific bibliographies, insert bibliography insets within the
5258  child documents, at the place where the bibliography should appear when
5259  the child is compiled separately.
5260  However, the trick is to insert them into a branch (
5261 \family sans
5262 Insert\SpecialChar menuseparator
5263 Branch\SpecialChar menuseparator
5264 Insert New Branch...
5265 \family default
5266 ), e.
5267 \begin_inset space \thinspace{}
5268 \end_inset
5269
5270 g.
5271  called 
5272 \begin_inset Quotes eld
5273 \end_inset
5274
5275 Childonly
5276 \begin_inset Quotes erd
5277 \end_inset
5278
5279 .
5280  Within the children, activate the branch (
5281 \family sans
5282 Document\SpecialChar menuseparator
5283 Settings...\SpecialChar menuseparator
5284 Branches
5285 \family default
5286 ).
5287  Within the master, deactivate the branch (
5288 \family sans
5289 Document\SpecialChar menuseparator
5290 Settings...\SpecialChar menuseparator
5291 Branches
5292 \family default
5293 ).
5294  Now the child's bibliography will be ignored by the master, but considered
5295  by the child.
5296 \end_layout
5297
5298 \begin_layout Standard
5299
5300 \lang english
5301 If you need multiple bibliographies (e.
5302 \begin_inset space \thinspace{}
5303 \end_inset
5304
5305 g., one per child in the 
5306 \emph on
5307 main document
5308 \emph default
5309 ), please refer to sec.
5310 \begin_inset space ~
5311 \end_inset
5312
5313
5314 \begin_inset CommandInset ref
5315 LatexCommand ref
5316 reference "subsec:Multiple-Bibliographies"
5317
5318 \end_inset
5319
5320 .
5321 \end_layout
5322
5323 \begin_layout Section
5324 \SpecialChar LyX
5325 書庫
5326 \end_layout
5327
5328 \begin_layout Standard
5329 しばしばユーザーは,出版社に送ったり,共著者とやりとりするために,\SpecialChar LyX
5330 ファイルを,その依存する全画像(及び他のファイル)と「同梱」する必要に迫られることがあります.\SpecialChar LyX
5331
5332  2.0には,この過程を自動化するPythonスクリプト(
5333 \begin_inset Flex Code
5334 status collapsed
5335
5336 \begin_layout Plain Layout
5337 lyxpak.py
5338 \end_layout
5339
5340 \end_inset
5341
5342 )が含まれています.これを使うには,
5343 \begin_inset Flex Code
5344 status collapsed
5345
5346 \begin_layout Plain Layout
5347 zipfile
5348 \end_layout
5349
5350 \end_inset
5351
5352  pythonモジュールまたは
5353 \begin_inset Flex Code
5354 status collapsed
5355
5356 \begin_layout Plain Layout
5357 tarfile
5358 \end_layout
5359
5360 \end_inset
5361
5362  pythonモジュールが,システムに導入済みであることが必要です.既定設定では,Unix系システムでは,
5363 \begin_inset Flex Code
5364 status collapsed
5365
5366 \begin_layout Plain Layout
5367 gzip
5368 \end_layout
5369
5370 \end_inset
5371
5372 圧縮
5373 \begin_inset Flex Code
5374 status collapsed
5375
5376 \begin_layout Plain Layout
5377 tar
5378 \end_layout
5379
5380 \end_inset
5381
5382 ファイル形式が優先され,Windowsでは
5383 \begin_inset Flex Code
5384 status collapsed
5385
5386 \begin_layout Plain Layout
5387 zip
5388 \end_layout
5389
5390 \end_inset
5391
5392 形式が優先されます.
5393 \end_layout
5394
5395 \begin_layout Standard
5396 \SpecialChar LyX
5397 の環境構成時には,「\SpecialChar LyX
5398 書庫」を書き出すことができるようにスクリプトが準備され,
5399 \begin_inset Flex MenuItem
5400 status collapsed
5401
5402 \begin_layout Plain Layout
5403 ファイル\SpecialChar menuseparator
5404 書き出し
5405 \end_layout
5406
5407 \end_inset
5408
5409 の下で利用可能となります.
5410 \end_layout
5411
5412 \begin_layout Standard
5413 \begin_inset Flex MenuItem
5414 status collapsed
5415
5416 \begin_layout Plain Layout
5417 ツール\SpecialChar menuseparator
5418 設定\SpecialChar menuseparator
5419 ファイル処理\SpecialChar menuseparator
5420 変換子
5421 \end_layout
5422
5423 \end_inset
5424
5425
5426 \begin_inset Flex MenuItem
5427 status collapsed
5428
5429 \begin_layout Plain Layout
5430 \SpecialChar LyX
5431 \SpecialChar menuseparator
5432 \SpecialChar LyX
5433 書庫
5434 \end_layout
5435
5436 \end_inset
5437
5438 変換子に,
5439 \begin_inset Flex Code
5440 status collapsed
5441
5442 \begin_layout Plain Layout
5443 -t
5444 \end_layout
5445
5446 \end_inset
5447
5448 スイッチや
5449 \begin_inset Flex Code
5450 status collapsed
5451
5452 \begin_layout Plain Layout
5453 -z
5454 \end_layout
5455
5456 \end_inset
5457
5458 スイッチを加えることで,プラットホームとは独立に,
5459 \begin_inset Flex Code
5460 status collapsed
5461
5462 \begin_layout Plain Layout
5463 tar
5464 \end_layout
5465
5466 \end_inset
5467
5468 形式や
5469 \begin_inset Flex Code
5470 status collapsed
5471
5472 \begin_layout Plain Layout
5473 zip
5474 \end_layout
5475
5476 \end_inset
5477
5478 形式を強制することができます(スイッチは,スクリプト名の前ではなく,後ろに加えてください).
5479 \end_layout
5480
5481 \begin_layout Section
5482 装飾的なヘッダ・フッタ
5483 \end_layout
5484
5485 \begin_layout Standard
5486 既定のページレイアウトは,どちらかといえば素っ気ないものです.
5487 \begin_inset Flex Code
5488 status collapsed
5489
5490 \begin_layout Plain Layout
5491 article
5492 \end_layout
5493
5494 \end_inset
5495
5496 文書クラスの場合には,ページの下の真ん中にページ番号がつくだけです.この取扱説明書はKOMA-scriptのbookクラスなので,すこしは凝ってますが,ほんとう
5497 に着飾るには,『
5498 \emph on
5499 ユーザーの手引き
5500 \emph default
5501 』に述べられているように,文書ページスタイルを「装飾的(fancy)」に設定する必要があります.この節では,望んだとおりの効果を得るために,\SpecialChar LaTeX
5502 プリアンブルに挿入す
5503 る必要のある\SpecialChar LaTeX
5504 コードについて解説します.
5505 \end_layout
5506
5507 \begin_layout Standard
5508 ページへッダは,「left(左)」・「center(中央)」・「right(右)」と命名された3つのフィールドに分けられています.フッタも同様に3つのフィールド
5509 に分類されています.これらのフィールドをもっとも簡単に設定する\SpecialChar LaTeX
5510 コマンドには,
5511 \family typewriter
5512
5513 \begin_inset Flex Code
5514 status collapsed
5515
5516 \begin_layout Plain Layout
5517
5518 \family typewriter
5519
5520 \backslash
5521 lhead
5522 \end_layout
5523
5524 \end_inset
5525
5526
5527 \family default
5528
5529 \family typewriter
5530
5531 \begin_inset Flex Code
5532 status collapsed
5533
5534 \begin_layout Plain Layout
5535
5536 \family typewriter
5537
5538 \backslash
5539 chead
5540 \end_layout
5541
5542 \end_inset
5543
5544
5545 \family default
5546
5547 \family typewriter
5548
5549 \begin_inset Flex Code
5550 status collapsed
5551
5552 \begin_layout Plain Layout
5553
5554 \family typewriter
5555
5556 \backslash
5557 rhead
5558 \end_layout
5559
5560 \end_inset
5561
5562
5563 \family default
5564
5565 \begin_inset Flex Code
5566 status collapsed
5567
5568 \begin_layout Plain Layout
5569
5570 \backslash
5571 lfoot
5572 \end_layout
5573
5574 \end_inset
5575
5576 などがあります.かりに,各ページの左上端に自分の名前を入れたいものとしましょう.次のようなコマンドをプリアンブルに入れるだけです.
5577 \end_layout
5578
5579 \begin_layout Standard
5580
5581 \family typewriter
5582
5583 \backslash
5584 lhead{物書 はじめ}
5585 \end_layout
5586
5587 \begin_layout Standard
5588 これで自分の名前が左上に現れます.フィールドに取り除きたい既定の内容がある場合(往々にして中央のフッタにはページ番号が入ります)には,空の引数を持つコマンドを入
5589 れるだけです.すなわち,
5590 \end_layout
5591
5592 \begin_layout Standard
5593
5594 \family typewriter
5595
5596 \backslash
5597 cfoot{}
5598 \begin_inset Newline newline
5599 \end_inset
5600
5601
5602 \family default
5603 とします.
5604 \end_layout
5605
5606 \begin_layout Standard
5607 もっと美しくしてみましょう.節番号を「第‥節」という言葉といっしょに(第3節のように)左上に入れ,ページ番号を(4ページのように)右上に,自分の名前を左下に,日
5608 付を右下に入れます.以下のコマンドをプリアンブルに入れます.
5609 \end_layout
5610
5611 \begin_layout Standard
5612
5613 \family typewriter
5614
5615 \backslash
5616 lhead{第
5617 \backslash
5618 thesection 節}
5619 \end_layout
5620
5621 \begin_layout Standard
5622
5623 \family typewriter
5624
5625 \backslash
5626 chead{}
5627 \end_layout
5628
5629 \begin_layout Standard
5630
5631 \family typewriter
5632
5633 \backslash
5634 rhead{
5635 \backslash
5636 thepage ページ}
5637 \end_layout
5638
5639 \begin_layout Standard
5640
5641 \family typewriter
5642
5643 \backslash
5644 lfoot{物書 はじめ}
5645 \end_layout
5646
5647 \begin_layout Standard
5648
5649 \family typewriter
5650
5651 \backslash
5652 cfoot{}
5653 \end_layout
5654
5655 \begin_layout Standard
5656
5657 \family typewriter
5658
5659 \backslash
5660 rfoot{
5661 \backslash
5662 today}
5663 \end_layout
5664
5665 \begin_layout Standard
5666 コマンド
5667 \family typewriter
5668
5669 \begin_inset Flex Code
5670 status collapsed
5671
5672 \begin_layout Plain Layout
5673
5674 \family typewriter
5675
5676 \backslash
5677 thesecti
5678 \family default
5679 o
5680 \family typewriter
5681 n
5682 \end_layout
5683
5684 \end_inset
5685
5686
5687 \family default
5688
5689 \begin_inset Flex Code
5690 status collapsed
5691
5692 \begin_layout Plain Layout
5693
5694 \family typewriter
5695
5696 \backslash
5697 thepa
5698 \family default
5699 ge
5700 \end_layout
5701
5702 \end_inset
5703
5704 は,それぞれ\SpecialChar LaTeX
5705 の節カウンタおよびページカウンタを取得するもので,これによって現在の節番号とページ番号を印字します.
5706 \begin_inset Flex Code
5707 status collapsed
5708
5709 \begin_layout Plain Layout
5710
5711 \family typewriter
5712
5713 \backslash
5714 tod
5715 \family default
5716 ay
5717 \end_layout
5718
5719 \end_inset
5720
5721 は,今日の日付を印字するものです.
5722 \end_layout
5723
5724 \begin_layout Standard
5725 へッダ下またはフッタ上に描かれる罫線の太さも変更することができます.もし罫線が必要なければ,太さを0にしてください.ヘッダ罫線は,既定では0.4ptの太さであり,
5726 フッタ罫線は0ptです.太さを変更するには,
5727 \family typewriter
5728
5729 \begin_inset Flex Code
5730 status collapsed
5731
5732 \begin_layout Plain Layout
5733
5734 \family typewriter
5735
5736 \backslash
5737 renewcommand{
5738 \backslash
5739 headrulewidth}{0.4pt}
5740 \end_layout
5741
5742 \end_inset
5743
5744
5745 \family default
5746
5747 \family typewriter
5748
5749 \begin_inset Flex Code
5750 status collapsed
5751
5752 \begin_layout Plain Layout
5753
5754 \family typewriter
5755
5756 \backslash
5757 renewcommand{
5758 \backslash
5759 footrulewidth}{0.4pt}
5760 \end_layout
5761
5762 \end_inset
5763
5764
5765 \family default
5766 のようなコマンドを使用してください.
5767 \end_layout
5768
5769 \begin_layout Standard
5770 \begin_inset Flex Code
5771 status collapsed
5772
5773 \begin_layout Plain Layout
5774
5775 \family typewriter
5776
5777 \backslash
5778 thispagestyle{empty}
5779 \end_layout
5780
5781 \end_inset
5782
5783
5784 \begin_inset Flex Code
5785 status collapsed
5786
5787 \begin_layout Plain Layout
5788
5789 \family typewriter
5790
5791 \backslash
5792 thispagestyle{plain}
5793 \end_layout
5794
5795 \end_inset
5796
5797
5798 \begin_inset Flex Code
5799 status collapsed
5800
5801 \begin_layout Plain Layout
5802
5803 \family typewriter
5804
5805 \backslash
5806 thispagestyle{fancy}
5807 \end_layout
5808
5809 \end_inset
5810
5811 のようなコマンドを使えば,各ページごとにへッダ・フッタ設定を有効にしたり無効にしたりすることができます.設定を変更したいページに,これらのコマンドを\SpecialChar TeX
5812 コードとして
5813 挿入してください.実は,タイトルページは,その後のページは大域的に装飾的(fancy)に設定されていれば装飾的(fancy)になるにもかかわらず,既定でプレーン
5814 (plain)になるように設定されているのです.
5815 \end_layout
5816
5817 \begin_layout Standard
5818 奇数ページの左上だけに何かを挿入するなど,もっと複雑なコマンドもあるのですが,詳しい解説は
5819 \begin_inset Flex Code
5820 status collapsed
5821
5822 \begin_layout Plain Layout
5823
5824 \family typewriter
5825 fancyhdr
5826 \end_layout
5827
5828 \end_inset
5829
5830 パッケージの取扱説明書をご参照ください(
5831 \begin_inset Flex Code
5832 status collapsed
5833
5834 \begin_layout Plain Layout
5835 fancyhdr.dvi
5836 \end_layout
5837
5838 \end_inset
5839
5840 を探してください).
5841 \end_layout
5842
5843 \begin_layout Standard
5844 最後の例として,へッダやフッタに画像を挿入できることを取り上げましょう.会社のロゴをページ左上に入れたいものとします.たとえば,
5845 \end_layout
5846
5847 \begin_layout Standard
5848
5849 \family typewriter
5850
5851 \backslash
5852 lhead{
5853 \backslash
5854 resizebox{1in}{!}{
5855 \backslash
5856 includegraphics{logo.eps}}}
5857 \end_layout
5858
5859 \begin_layout Standard
5860 \noindent
5861 とすれば,これを実現できます(文書中に他に画像を挿入していない場合には,
5862 \begin_inset Newline newline
5863 \end_inset
5864
5865
5866 \begin_inset Flex Code
5867 status collapsed
5868
5869 \begin_layout Plain Layout
5870 \noindent
5871
5872 \family typewriter
5873
5874 \backslash
5875 usepackage{graphics}
5876 \end_layout
5877
5878 \end_inset
5879
5880 をプリアンブルに宣言する必要があります).
5881 \end_layout
5882
5883 \begin_layout Section
5884 箇条書き(記号)ブリットの指定
5885 \begin_inset CommandInset label
5886 LatexCommand label
5887 name "sec:ブリット"
5888
5889 \end_inset
5890
5891
5892 \end_layout
5893
5894 \begin_layout Standard
5895
5896 \noun on
5897 Allan Rae文
5898 \end_layout
5899
5900 \begin_layout Subsection
5901 はじめに
5902 \end_layout
5903
5904 \begin_layout Standard
5905 \SpecialChar LyX
5906 には,ブリットの形が216個準備されていて,簡単なダイアログから呼び出すことができます.このダイアログを使えば,箇条書き(記号)の各階層で使うブリットの形を変更
5907 することができます.この設定は文書全体に共通なので,段落ごとに別のブリットを指定することはできません
5908 \begin_inset Foot
5909 status collapsed
5910
5911 \begin_layout Plain Layout
5912 正確には可能ですが,手動で行う必要があります.
5913 \end_layout
5914
5915 \end_inset
5916
5917
5918 \end_layout
5919
5920 \begin_layout Subsection
5921 外見
5922 \end_layout
5923
5924 \begin_layout Standard
5925 メニュー項目の
5926 \begin_inset Flex MenuItem
5927 status collapsed
5928
5929 \begin_layout Plain Layout
5930 文書\SpecialChar menuseparator
5931 設定
5932 \end_layout
5933
5934 \end_inset
5935
5936 を選択してダイアログを開き,
5937 \begin_inset Flex MenuItem
5938 status collapsed
5939
5940 \begin_layout Plain Layout
5941 ブリット
5942 \end_layout
5943
5944 \end_inset
5945
5946 タブを選択してください.
5947 \end_layout
5948
5949 \begin_layout Standard
5950 このダイアログは,ブリット形の一覧表を提示します.
5951 \begin_inset Flex MenuItem
5952 status collapsed
5953
5954 \begin_layout Plain Layout
5955 フォント
5956 \end_layout
5957
5958 \end_inset
5959
5960 と書いてあるドロップダウンメニューで,6つの各ブリット形パネルを切り替えることができます.また,一覧表左の
5961 \begin_inset Flex MenuItem
5962 status collapsed
5963
5964 \begin_layout Plain Layout
5965 階層
5966 \end_layout
5967
5968 \end_inset
5969
5970 パネルは,変更したい階層を選択するものです.
5971 \begin_inset Flex MenuItem
5972 status collapsed
5973
5974 \begin_layout Plain Layout
5975 任意のブリット
5976 \end_layout
5977
5978 \end_inset
5979
5980 では,指定したい\SpecialChar LaTeX
5981 表現を入力することができます.任意のブリットを指定した場合には,そのコマンドが必要とするパッケージを\SpecialChar LaTeX
5982 プリアンブルで指定する必要があります.
5983 \end_layout
5984
5985 \begin_layout Standard
5986 6つのパネルは,それぞれが必要とするパッケージによって分類されています.下記は,フォント名と\SpecialChar LaTeX
5987 パッケージの対応表です.
5988 \end_layout
5989
5990 \begin_layout Standard
5991 \align center
5992 \begin_inset Tabular
5993 <lyxtabular version="3" rows="7" columns="2">
5994 <features tabularvalignment="middle">
5995 <column alignment="center" valignment="top" width="0pt">
5996 <column alignment="center" valignment="top" width="0pt">
5997 <row>
5998 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5999 \begin_inset Text
6000
6001 \begin_layout Plain Layout
6002 フォント
6003 \end_layout
6004
6005 \end_inset
6006 </cell>
6007 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6008 \begin_inset Text
6009
6010 \begin_layout Plain Layout
6011
6012 \family roman
6013 \series medium
6014 \shape up
6015 \size normal
6016 \emph off
6017 \bar no
6018 \noun off
6019 \color none
6020 必要とするパッケージ
6021 \end_layout
6022
6023 \end_inset
6024 </cell>
6025 </row>
6026 <row>
6027 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6028 \begin_inset Text
6029
6030 \begin_layout Plain Layout
6031
6032 \family sans
6033 標準
6034 \end_layout
6035
6036 \end_inset
6037 </cell>
6038 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6039 \begin_inset Text
6040
6041 \begin_layout Plain Layout
6042
6043 \series medium
6044 \shape up
6045 \size normal
6046 \emph off
6047 \bar no
6048 \noun off
6049 \color none
6050 \SpecialChar LaTeX
6051
6052 \family roman
6053 本体
6054 \end_layout
6055
6056 \end_inset
6057 </cell>
6058 </row>
6059 <row>
6060 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6061 \begin_inset Text
6062
6063 \begin_layout Plain Layout
6064
6065 \family sans
6066 \series medium
6067 \shape up
6068 \size normal
6069 \emph off
6070 \bar no
6071 \noun off
6072 \color none
6073 数式
6074 \end_layout
6075
6076 \end_inset
6077 </cell>
6078 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6079 \begin_inset Text
6080
6081 \begin_layout Plain Layout
6082
6083 \family typewriter
6084 \series medium
6085 \shape up
6086 \size normal
6087 \emph off
6088 \bar no
6089 \noun off
6090 \color none
6091 amssymb.sty
6092 \end_layout
6093
6094 \end_inset
6095 </cell>
6096 </row>
6097 <row>
6098 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6099 \begin_inset Text
6100
6101 \begin_layout Plain Layout
6102
6103 \family sans
6104 \series medium
6105 \shape up
6106 \size normal
6107 \emph off
6108 \bar no
6109 \noun off
6110 \color none
6111 絵文字1
6112 \end_layout
6113
6114 \end_inset
6115 </cell>
6116 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6117 \begin_inset Text
6118
6119 \begin_layout Plain Layout
6120
6121 \family typewriter
6122 \series medium
6123 \shape up
6124 \size normal
6125 \emph off
6126 \bar no
6127 \noun off
6128 \color none
6129 pifont.sty
6130 \end_layout
6131
6132 \end_inset
6133 </cell>
6134 </row>
6135 <row>
6136 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6137 \begin_inset Text
6138
6139 \begin_layout Plain Layout
6140
6141 \family sans
6142 \series medium
6143 \shape up
6144 \size normal
6145 \emph off
6146 \bar no
6147 \noun off
6148 \color none
6149 絵文字2
6150 \end_layout
6151
6152 \end_inset
6153 </cell>
6154 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6155 \begin_inset Text
6156
6157 \begin_layout Plain Layout
6158
6159 \family typewriter
6160 \series medium
6161 \shape up
6162 \size normal
6163 \emph off
6164 \bar no
6165 \noun off
6166 \color none
6167 pifont.sty
6168 \end_layout
6169
6170 \end_inset
6171 </cell>
6172 </row>
6173 <row>
6174 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6175 \begin_inset Text
6176
6177 \begin_layout Plain Layout
6178
6179 \family sans
6180 \series medium
6181 \shape up
6182 \size normal
6183 \emph off
6184 \bar no
6185 \noun off
6186 \color none
6187 絵文字3
6188 \end_layout
6189
6190 \end_inset
6191 </cell>
6192 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6193 \begin_inset Text
6194
6195 \begin_layout Plain Layout
6196
6197 \family typewriter
6198 \series medium
6199 \shape up
6200 \size normal
6201 \emph off
6202 \bar no
6203 \noun off
6204 \color none
6205 pifont.sty
6206 \end_layout
6207
6208 \end_inset
6209 </cell>
6210 </row>
6211 <row>
6212 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6213 \begin_inset Text
6214
6215 \begin_layout Plain Layout
6216
6217 \family sans
6218 \series medium
6219 \shape up
6220 \size normal
6221 \emph off
6222 \bar no
6223 \noun off
6224 \color none
6225 絵文字4
6226 \end_layout
6227
6228 \end_inset
6229 </cell>
6230 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6231 \begin_inset Text
6232
6233 \begin_layout Plain Layout
6234
6235 \family typewriter
6236 \series medium
6237 \shape up
6238 \size normal
6239 \emph off
6240 \bar no
6241 \noun off
6242 \color none
6243 pifont.sty
6244 \end_layout
6245
6246 \end_inset
6247 </cell>
6248 </row>
6249 </lyxtabular>
6250
6251 \end_inset
6252
6253
6254 \end_layout
6255
6256 \begin_layout Standard
6257 \SpecialChar LyX
6258 は,ユーザーが導入されていないパッケージのブリットを使用したとしても,警告を発しません.ファイルを閲覧したり印刷したりしようとしたときに\SpecialChar LaTeX
6259 エラーが出るようならば,
6260 パッケージが導入されていない可能性が大です
6261 \begin_inset Foot
6262 status collapsed
6263
6264 \begin_layout Plain Layout
6265 \SpecialChar LyX
6266 が,パッケージがなくてもブリットを使用することを許すのは,編集をここで行ったとしても,別のところへエクスポートする可能性があるからです.
6267 \end_layout
6268
6269 \end_inset
6270
6271
6272 \end_layout
6273
6274 \begin_layout Subsection
6275 使用法
6276 \end_layout
6277
6278 \begin_layout Standard
6279 変更したいブリット階層を選んで,ブリット形と寸法を選択してください.何らかの変更を加えたとしても,\SpecialChar LyX
6280 上には反映されませんが,文書の表示を行えば確認されます.
6281 \end_layout
6282
6283 \begin_layout Standard
6284 ブリット形は,適切な階層のブリットボタンをマウスで右クリックすれば,簡単に既定値に初期化することができます
6285 \begin_inset Foot
6286 status open
6287
6288 \begin_layout Plain Layout
6289 もし
6290 \emph on
6291 本当に
6292 \emph default
6293 段落ごとに異なるブリットの形を使いたいならば,\SpecialChar TeX
6294 コードを使って少し手を汚す必要があります.この場合も,ブリット選択ダイアログを使えば,さまざまな形のLaTeXコー
6295 ドを確認することができるので手助けとなるでしょう.任意に設定した段落をつくるには,以下のような選択肢があります.
6296 \end_layout
6297
6298 \begin_layout Plain Layout
6299 \begin_inset ERT
6300 status open
6301
6302 \begin_layout Plain Layout
6303
6304
6305 \backslash
6306 let
6307 \backslash
6308 savelabelitemi=
6309 \backslash
6310 labelitemi
6311 \end_layout
6312
6313 \end_inset
6314
6315
6316 \end_layout
6317
6318 \begin_layout Plain Layout
6319 \begin_inset ERT
6320 status open
6321
6322 \begin_layout Plain Layout
6323
6324
6325 \backslash
6326 renewcommand
6327 \backslash
6328 labelitemi[0]{
6329 \backslash
6330 small
6331 \backslash
6332 (
6333 \backslash
6334 sharp
6335 \backslash
6336 )}
6337 \end_layout
6338
6339 \end_inset
6340
6341
6342 \end_layout
6343
6344 \begin_layout Itemize
6345 特定の階層の新しいブリット形を指定するには,\SpecialChar LaTeX
6346 コマンド
6347 \begin_inset Flex Code
6348 status collapsed
6349
6350 \begin_layout Plain Layout
6351
6352 \family typewriter
6353
6354 \backslash
6355 renewcommand{}{}
6356 \end_layout
6357
6358 \end_inset
6359
6360 を使用します.あとで現在のブリット形に戻すことができるように,現在のブリット形を保存しておく必要もあります.ここで使っている箇条書きでは,第1階層のブリットを変
6361 更するために,以下の\SpecialChar LaTeX
6362 コードが使用されています.
6363 \end_layout
6364
6365 \begin_deeper
6366 \begin_layout LyX-Code
6367
6368 \family typewriter
6369
6370 \backslash
6371 let
6372 \backslash
6373 savelabelitemi=
6374 \backslash
6375 labelitemi
6376 \end_layout
6377
6378 \begin_layout LyX-Code
6379
6380 \family typewriter
6381
6382 \backslash
6383 renewcommand
6384 \backslash
6385 labelitemi[0]{
6386 \backslash
6387 small
6388 \backslash
6389 (
6390 \backslash
6391 sharp
6392 \backslash
6393 )}
6394 \end_layout
6395
6396 \end_deeper
6397 \begin_layout Itemize
6398 箇条書き(記号)の階層は,
6399 \begin_inset Flex Code
6400 status collapsed
6401
6402 \begin_layout Plain Layout
6403
6404 \backslash
6405 labelitem
6406 \end_layout
6407
6408 \end_inset
6409
6410 コマンドの一部にローマ数字で指定されていることに注意してください.
6411 \end_layout
6412
6413 \begin_layout Itemize
6414
6415 \lang english
6416 \begin_inset Argument item:1
6417 status open
6418
6419 \begin_layout Plain Layout
6420
6421 \lang english
6422 \begin_inset ERT
6423 status open
6424
6425 \begin_layout Plain Layout
6426
6427
6428 \backslash
6429 (
6430 \backslash
6431 star
6432 \backslash
6433 )
6434 \end_layout
6435
6436 \end_inset
6437
6438
6439 \end_layout
6440
6441 \end_inset
6442
6443
6444 \lang japanese
6445 各項目のブリットを指定するには,角括弧で囲んだブリット形を
6446 \lang english
6447
6448 \begin_inset Quotes eld
6449 \end_inset
6450
6451 Custom Item
6452 \begin_inset Quotes erd
6453 \end_inset
6454
6455  inset (available at 
6456 \family sans
6457 Insert\SpecialChar menuseparator
6458 Custom Item
6459 \family default
6460
6461 \lang japanese
6462 ,行頭に
6463 \begin_inset Flex Code
6464 status collapsed
6465
6466 \begin_layout Plain Layout
6467 \SpecialChar TeX
6468 コード
6469 \end_layout
6470
6471 \end_inset
6472
6473 として挿入してください.たとえば,この項目の行頭には
6474 \family typewriter
6475
6476 \begin_inset Flex Code
6477 status collapsed
6478
6479 \begin_layout Plain Layout
6480
6481 \family typewriter
6482 [
6483 \backslash
6484 (
6485 \backslash
6486 star
6487 \backslash
6488 )]
6489 \end_layout
6490
6491 \end_inset
6492
6493
6494 \family default
6495 が指定されています.
6496 \end_layout
6497
6498 \begin_layout Plain Layout
6499 \begin_inset ERT
6500 status open
6501
6502 \begin_layout Plain Layout
6503
6504
6505 \backslash
6506 renewcommand
6507 \backslash
6508 labelitemi[0]{
6509 \backslash
6510 savelabelitemi}
6511 \end_layout
6512
6513 \end_inset
6514
6515
6516 \end_layout
6517
6518 \begin_layout Plain Layout
6519 文書全体で使用するブリット形が有効であるようにするために,labelitemを元の設定に戻す必要があります.そのためには,以下のようにします.
6520 \end_layout
6521
6522 \begin_layout LyX-Code
6523
6524 \family typewriter
6525
6526 \backslash
6527 renewcommand
6528 \backslash
6529 labelitemi[0]{
6530 \backslash
6531 savelabelitemi}
6532 \end_layout
6533
6534 \end_inset
6535
6536
6537 \end_layout
6538
6539 \begin_layout Chapter
6540 \SpecialChar LyX
6541 とインターネット網
6542 \end_layout
6543
6544 \begin_layout Standard
6545 \SpecialChar LyX
6546 は,これまでも長い間,HTMLを始めとするウェブフレンドリーな文書諸形式への書き出しをサポートしてきました.しかしながら,第2.0版以前では,HTMLへの書き出し
6547 は,常に外部変換子を用いることで実現されていました
6548 \begin_inset Foot
6549 status collapsed
6550
6551 \begin_layout Plain Layout
6552 \SpecialChar LyX
6553 で外部変換子を使うことについての詳細は,取扱説明書『
6554 \emph on
6555 カスタマイズ篇
6556 \emph default
6557 』の「
6558 \emph on
6559 変換子
6560 \emph default
6561 」の節をご覧ください.
6562 \end_layout
6563
6564 \end_inset
6565
6566 .これらは2つのグループに大別できます.1つは,
6567 \begin_inset Flex Code
6568 status collapsed
6569
6570 \begin_layout Plain Layout
6571 htlatex
6572 \end_layout
6573
6574 \end_inset
6575
6576
6577 \begin_inset Flex Code
6578 status collapsed
6579
6580 \begin_layout Plain Layout
6581 html2latex
6582 \end_layout
6583
6584 \end_inset
6585
6586
6587 \begin_inset Flex Code
6588 status collapsed
6589
6590 \begin_layout Plain Layout
6591 plastex
6592 \end_layout
6593
6594 \end_inset
6595
6596 のように,\SpecialChar LaTeX
6597 を中間形式として用い,その\SpecialChar LaTeX
6598 を生成するのに\SpecialChar LyX
6599 を用いるもの.2つめは,
6600 \begin_inset Flex Code
6601 status collapsed
6602
6603 \begin_layout Plain Layout
6604 e\SpecialChar LyX
6605 er
6606 \end_layout
6607
6608 \end_inset
6609
6610 のように,直接\SpecialChar LyX
6611 ファイルに働きかける変換子です.これらは,それぞれに長所・短所を有しています.
6612 \end_layout
6613
6614 \begin_layout Standard
6615 \SpecialChar LaTeX
6616 ベースの変換子は,原則として,\SpecialChar LaTeX
6617 が書きだす文書についてのすべてを知っているという長所があります.この種の変換子は,例えば,特定のコードのくだりが,\SpecialChar LyX
6618 によって生成され
6619 たのか,\SpecialChar TeX
6620 コードで書かれたのかについては気にしません.これらの変換子は,
6621 \begin_inset Flex Code
6622 status collapsed
6623
6624 \begin_layout Plain Layout
6625 aux
6626 \end_layout
6627
6628 \end_inset
6629
6630 ファイルやカウンタや参照を取り扱うことができ,Bib\SpecialChar TeX
6631 が生成する
6632 \begin_inset Flex Code
6633 status collapsed
6634
6635 \begin_layout Plain Layout
6636 bbl
6637 \end_layout
6638
6639 \end_inset
6640
6641 ファイルも利用することがよくあります.一方で,\SpecialChar LaTeX
6642 は解析の非常に難しい言語であり—\SpecialChar TeX
6643 自身だけが\SpecialChar TeX
6644 を理解することができると言われたりすることがあります—,\SpecialChar LaTeX
6645 ベースの変換子は
6646 ,非常に簡単な文法に見えるものでさえ飲み込めず,複雑なものになると全く歯が立たないこともあります.例えば,この現行を書いている時点では,取扱説明書『
6647 \emph on
6648 埋込オブジェクト篇
6649 \emph default
6650 』は,他の変換子では書き出しができるのに,
6651 \begin_inset Flex Code
6652 status collapsed
6653
6654 \begin_layout Plain Layout
6655 htlatex
6656 \end_layout
6657
6658 \end_inset
6659
6660 では行うことができません.他には,数式をどう取り扱うかという問題があります.これらの変換子の典型的なものは,数式を小さな画像に変換して,HTML文書からこれらの
6661 画像へのリンクを張ります.これらの画像は,実は\SpecialChar LaTeX
6662 によって生成されているので,正確です.しかしながら,これらはうまく伸縮できないので,実際の文書の中で表現されるよう
6663 に—フォント寸が凡そ正しくなるように—見せようとすると,大変な苦労を伴います.
6664 \end_layout
6665
6666 \begin_layout Standard
6667 Alex Fernandezの
6668 \begin_inset Flex Code
6669 status collapsed
6670
6671 \begin_layout Plain Layout
6672 e\SpecialChar LyX
6673 er
6674 \end_layout
6675
6676 \end_inset
6677
6678  (
6679 \begin_inset CommandInset href
6680 LatexCommand href
6681 name "http://elyxer.nongnu.org/"
6682 target "http://elyxer.nongnu.org/"
6683 literal "false"
6684
6685 \end_inset
6686
6687 )は,これらの問題の一部を解決します.特に,これは数式を画像に変換するのではなく,HTMLとCSSを組み合わせて数式を生成するので,生成される数式は完璧な大きさ
6688 に伸縮されて表示されます.しかしながら,ちょっとだけ複雑な数式でさえ,
6689 \begin_inset Flex Code
6690 status collapsed
6691
6692 \begin_layout Plain Layout
6693 htlatex
6694 \end_layout
6695
6696 \end_inset
6697
6698 よりも質が落ちます.これはHTMLの限界を示しています
6699 \begin_inset Foot
6700 status collapsed
6701
6702 \begin_layout Plain Layout
6703 とはいえ,
6704 \begin_inset Flex Code
6705 status collapsed
6706
6707 \begin_layout Plain Layout
6708 e\SpecialChar LyX
6709 er
6710 \end_layout
6711
6712 \end_inset
6713
6714 では,数式用にjsMathとMathJaxを使用することもできます.ただし,この設定はグローバルにしか設定することができず,バックエンドで実行させるサーバへのア
6715 クセスが利用できる必要があります.
6716 \end_layout
6717
6718 \end_inset
6719
6720 .さらに重要なことは(少なくとも第1.1.1版においては),
6721 \begin_inset Flex Code
6722 status collapsed
6723
6724 \begin_layout Plain Layout
6725 e\SpecialChar LyX
6726 er
6727 \end_layout
6728
6729 \end_inset
6730
6731 は数式マクロを一部しかサポートしておらず,ユーザ定義の段落様式や文字様式をサポートしていません.これらの制約によって,\SpecialChar LyX
6732 ユーザが生成する文書の多くにとっては,
6733 \begin_inset Flex Code
6734 status collapsed
6735
6736 \begin_layout Plain Layout
6737 e\SpecialChar LyX
6738 er
6739 \end_layout
6740
6741 \end_inset
6742
6743 は不向きなものになっています.もちろん,原理的に,これらの問題を解決することもできたのですが,\SpecialChar LyX
6744 開発陣は別の方法を採ることとし,\SpecialChar LyX
6745 が\SpecialChar LaTeX
6746 やDocBook,平文を書き出す
6747 ことができるのと同様に,\SpecialChar LyX
6748 自身にXHTMLを書きだす能力を身につけさせることとしたのです.
6749 \end_layout
6750
6751 \begin_layout Standard
6752 この原稿執筆時点では,XHTML出力は開発途上であり,おそらく「実験的」機能として解されるべきでしょう
6753 \begin_inset Foot
6754 status open
6755
6756 \begin_layout Plain Layout
6757 \SpecialChar LyX
6758 ソースツリーもしくは
6759 \begin_inset CommandInset href
6760 LatexCommand href
6761 name "オンラインでのアクセス"
6762 target "http://www.lyx.org/trac/browser/lyx-devel/trunk/development/HTML/HTML.notes"
6763 literal "false"
6764
6765 \end_inset
6766
6767 にある
6768 \begin_inset Flex Code
6769 status collapsed
6770
6771 \begin_layout Plain Layout
6772 development/
6773 \lang english
6774 HTML/
6775 \lang japanese
6776 HTML.notes
6777 \end_layout
6778
6779 \end_inset
6780
6781 ファイルには,通常,XHTML出力の現状についての最新の情報が収録されています.
6782 \begin_inset CommandInset href
6783 LatexCommand href
6784 name "バグ追跡ページ"
6785 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"
6786 literal "false"
6787
6788 \end_inset
6789
6790 にあるXHTML関連バグ一覧も参照のこと.
6791 \end_layout
6792
6793 \end_inset
6794
6795 .それでもこのアプローチは,他の2つの方法よりも,潜在的な利点がいくつもあるので,開発陣はこの方法を選択したのです.
6796 \end_layout
6797
6798 \begin_layout Standard
6799 これらの利点は,主に,XHTML出力ルーチンが\SpecialChar LyX
6800 の一部となっているため,\SpecialChar LyX
6801 が出力する文書について\SpecialChar LyX
6802 が関知しているところのものは,すべて知り得るというところから来ていま
6803
6804 \begin_inset Foot
6805 status collapsed
6806
6807 \begin_layout Plain Layout
6808 他には,これらのルーチンが\SpecialChar LyX
6809 内部にあるため,\SpecialChar LyX
6810 ファイル形式や既存の差込枠の文法に変更があっても,影響を受けずに済むという利点もあります.
6811 \end_layout
6812
6813 \end_inset
6814
6815 .つまり,XHTML出力ルーチンは,(文書構造に表示されるような形での)目次や,それぞれの段落様式に関連付けられたカウンタや,ユーザ定義の様式についても知ってい
6816 るのです.XHTML出力ルーチンは,国際化について\SpecialChar LyX
6817 が関知しているものも知っているので,ちょうどその時に有効になっている言語に依存して,「Chapter
6818  1」と出力されたり,「Kapitel 1」と出力されたりするのです.
6819 \end_layout
6820
6821 \begin_layout Standard
6822 汎く一般的に,出力ルーチンは,\SpecialChar LyX
6823 が文書レイアウトについて関知しているものは知っており,したがって,文書が画面上にどのように描画されるかも知っています.文書をXHT
6824 MLに出力するときには,この情報を利用します.特に,\SpecialChar LyX
6825 は,文書を画面上に描画するときに使用するレイアウト情報に対応したCSSスタイル情報を
6826 \emph on
6827 自動的に
6828 \emph default
6829 生成します.もし節見出しが,\SpecialChar LyX
6830 中でサンセリフ体かつボールド体であるとすると,(既定では)ウェブブラウザに表示した時にも,サンセリフでボールドになります.これは,節
6831 のような定義済み様式だけでなく,ユーザ定義のものも含めて,すべての様式でそうです.実際,XHTML出力ルーチンは,ユーザ定義の段落・文字様式と,\SpecialChar LyX
6832 自身の定義済み様
6833 式とを区別しません.どちらの場合も,\SpecialChar LyX
6834 が様式について関知しているところのものは,全てレイアウトファイルに含まれています.これは,脚注のような定義済み差込枠や,各種
6835 ユーザ設定差込枠でもそうです.
6836 \end_layout
6837
6838 \begin_layout Standard
6839 結果として,XHTML出力は,レイアウトファイルやモジュールを通して,\SpecialChar LaTeX
6840 出力と全く同じように,ユーザが設定したり拡張したりすることができるのです.詳細については,
6841 取扱説明書『
6842 \emph on
6843 カスタマイズ篇
6844 \emph default
6845 』の第5章をごらんください.
6846 \end_layout
6847
6848 \begin_layout Standard
6849 本章の残りでは,XHTML出力についての,さらに詳細な情報について取り扱い,その制約や,制約の回避の仕方を取り扱います.
6850 \end_layout
6851
6852 \begin_layout Section
6853 XHTMLにおける数式出力
6854 \end_layout
6855
6856 \begin_layout Standard
6857 \SpecialChar LyX
6858 では,数式描画に4つの方法を選択できます.以下に示すように,それぞれに利点と欠点があります.
6859 \end_layout
6860
6861 \begin_layout Itemize
6862 MathML
6863 \begin_inset Newline newline
6864 \end_inset
6865
6866 MathMLは,ウェブ上で数学を用いるために,特にデザインされたXMLの一方言であり,これをサポートするブラウザ上では,通常,特に美しい表現が得られます.欠点は
6867 ,すべてのブラウザがMathMLをサポートしているわけではないという事と,FirefoxのようなGeckoベースのブラウザでも,サポートが完璧ではないという事で
6868 す.
6869 \begin_inset Newline newline
6870 \end_inset
6871
6872 例えば,数式が
6873 \begin_inset Flex Code
6874 status collapsed
6875
6876 \begin_layout Plain Layout
6877 xymatrix
6878 \end_layout
6879
6880 \end_inset
6881
6882 パッケージを使用していたり,\SpecialChar TeX
6883 コードを使用しているなどで,もし\SpecialChar LyX
6884 が数式をMathMLとして描画できないとすると,\SpecialChar LyX
6885 は数式を代わりに画像として出力します.
6886  
6887 \end_layout
6888
6889 \begin_layout Itemize
6890 HTML
6891 \begin_inset Newline newline
6892 \end_inset
6893
6894 前述のとおり,
6895 \begin_inset Flex Code
6896 status collapsed
6897
6898 \begin_layout Plain Layout
6899 elyxer
6900 \end_layout
6901
6902 \end_inset
6903
6904 は,数式をCSSで装飾したHTMLとして出力します
6905 \begin_inset Foot
6906 status collapsed
6907
6908 \begin_layout Plain Layout
6909 \SpecialChar LyX
6910 は,
6911 \begin_inset Flex Code
6912 status collapsed
6913
6914 \begin_layout Plain Layout
6915 elyxer
6916 \end_layout
6917
6918 \end_inset
6919
6920 からのHTML出力のために,CSSの一部を拝借しています.
6921 \end_layout
6922
6923 \end_inset
6924
6925 .簡単な数式では,これは非常にうまく行きますが,少し複雑な数式になると,
6926 \begin_inset Flex Code
6927 status collapsed
6928
6929 \begin_layout Plain Layout
6930 elyxer
6931 \end_layout
6932
6933 \end_inset
6934
6935 は歯が立たなくなります.それでも,この方法は非常に広くサポートされているという利点があり,かなり簡単な数式を少しだけ含んでいるような文書に適しているでしょう.
6936 \begin_inset Newline newline
6937 \end_inset
6938
6939 例えば,数式が
6940 \begin_inset Flex Code
6941 status collapsed
6942
6943 \begin_layout Plain Layout
6944 xymatrix
6945 \end_layout
6946
6947 \end_inset
6948
6949 パッケージを使用していたり,\SpecialChar TeX
6950 コードを使用しているなどで,もし\SpecialChar LyX
6951 が数式をHTMLとして描画できないとすると,\SpecialChar LyX
6952 は数式を代わりに画像として出力します.
6953  
6954 \end_layout
6955
6956 \begin_layout Itemize
6957 画像
6958 \begin_inset Newline newline
6959 \end_inset
6960
6961
6962 \begin_inset Flex Code
6963 status collapsed
6964
6965 \begin_layout Plain Layout
6966 htlatex
6967 \end_layout
6968
6969 \end_inset
6970
6971 のように,\SpecialChar LyX
6972 は数式を画像としても出力できます.この画像は,実は,自動プレビューで使用されているものと全く同じです
6973 \begin_inset Foot
6974 status collapsed
6975
6976 \begin_layout Plain Layout
6977 ただし,画像を出力に使うために,自動プレビューを入にしておく必要は
6978 \emph on
6979 ありません
6980 \emph default
6981
6982 \end_layout
6983
6984 \end_inset
6985
6986 .この方法の利点は,画像が他ならぬ\SpecialChar LaTeX
6987 によって生成されているので,非常に正確であることです.欠点は,前述したとおり,画像がビットマップなので,伸縮が全くうまく行かな
6988 かったり,コピーが出来なかったりといったことがあります(執筆時点においては,
6989 \begin_inset Newline newline
6990 \end_inset
6991
6992 画像の寸法は,
6993 \begin_inset Flex MenuItem
6994 status collapsed
6995
6996 \begin_layout Plain Layout
6997 文書\SpecialChar menuseparator
6998 設定\SpecialChar menuseparator
6999
7000 \lang english
7001 Formats
7002 \end_layout
7003
7004 \end_inset
7005
7006 の「数式画像の伸縮」パラメータを変更することで制御できます
7007 \begin_inset Foot
7008 status collapsed
7009
7010 \begin_layout Plain Layout
7011 必要な方のために述べておくと,これは,画像の解像度をdpi (1インチあたりドット数)で制御するためのもので,75dpiを基準としています.
7012 \end_layout
7013
7014 \end_inset
7015
7016
7017 \begin_inset Newline newline
7018 \end_inset
7019
7020 もし\SpecialChar LyX
7021 が,何らかの理由によって数式の画像を生成できない(例えば,必要な\SpecialChar LaTeX
7022 パッケージが導入済みでないなど)ときは,回避策として,生の\SpecialChar LaTeX
7023 を出力します.
7024 \end_layout
7025
7026 \begin_layout Itemize
7027 \SpecialChar LaTeX
7028
7029 \begin_inset Newline newline
7030 \end_inset
7031
7032 最後に,\SpecialChar LyX
7033 は,数式を\SpecialChar LaTeX
7034 としても出力することができます.この方法は,最終手段としての出力方法である一方で,HTML文書に埋め込まれた\SpecialChar LaTeX
7035 を描画するのにJavaScript
7036 を使用する,
7037 \begin_inset CommandInset href
7038 LatexCommand href
7039 name "jsMath"
7040 target "http://www.math.union.edu/~dpvc/jsMath/"
7041 literal "false"
7042
7043 \end_inset
7044
7045 のようなツールとともに使用することもできます.\SpecialChar LyX
7046 は,jsMathで必要とされているのと同じように,\SpecialChar LaTeX
7047 部分を,
7048 \begin_inset Flex Code
7049 status collapsed
7050
7051 \begin_layout Plain Layout
7052 span
7053 \end_layout
7054
7055 \end_inset
7056
7057 (行内数式用)または
7058 \begin_inset Flex Code
7059 status collapsed
7060
7061 \begin_layout Plain Layout
7062 div
7063 \end_layout
7064
7065 \end_inset
7066
7067 (別行立て数式用)に
7068 \begin_inset Flex Code
7069 status collapsed
7070
7071 \begin_layout Plain Layout
7072 class='math'
7073 \end_layout
7074
7075 \end_inset
7076
7077 を指定したもので,包んで出力します.
7078 \end_layout
7079
7080 \begin_layout Standard
7081 これらの出力方法のいずれかを
7082 \begin_inset Flex MenuItem
7083 status collapsed
7084
7085 \begin_layout Plain Layout
7086 文書\SpecialChar menuseparator
7087 設定\SpecialChar menuseparator
7088
7089 \lang english
7090 Formats
7091 \end_layout
7092
7093 \end_inset
7094
7095 で選択しなくてはなりません.既定では,\SpecialChar LyX
7096 はMathMLで出力を行います.これは,文書全体に適用される設定となります.
7097 \end_layout
7098
7099 \begin_layout Standard
7100 最後に,\SpecialChar LyX
7101 では,例えば,MathMLではあまりうまく出力されないような差込枠に対して,別の出力方法を選択できる選択肢が用意されています
7102 \begin_inset Foot
7103 status collapsed
7104
7105 \begin_layout Plain Layout
7106 その他にも,\SpecialChar LyX
7107 は,差込枠に\SpecialChar TeX
7108 コードが含まれていると画像出力に回帰するので,数式中に
7109 \begin_inset Formula $a=b\relax$
7110 \end_inset
7111
7112 のような無害な\SpecialChar TeX
7113 コードを挿入することによって,画像出力を強制することができます.
7114 \end_layout
7115
7116 \end_inset
7117
7118
7119 \end_layout
7120
7121 \begin_layout Section
7122 書誌情報と引用
7123 \end_layout
7124
7125 \begin_layout Standard
7126 XHTML出力は,書誌情報と引用を完全にサポートしています.
7127 \end_layout
7128
7129 \begin_layout Standard
7130 引用ラベルは,\SpecialChar LyX
7131 画面上のラベルを生成するのと同じ機構で生成されているので,出力中のラベルは,\SpecialChar LyX
7132 中の外見と同質またはそれよりも上質な仕上がりとなっています.連番引用を
7133 使用している場合には,\SpecialChar LyX
7134 は,画面上で表示されるような各カッコに囲まれた引用鍵を単純に表示するのではなく,[1]や[17]などの連番ラベルを出力します.著者-出版年
7135 形式の引用を使用している場合で,同じ著者-出版年の組み合わせが複数ある場合,\SpecialChar LyX
7136 は,Bib\SpecialChar TeX
7137 が行うように出版年に小文字を付します.ラベルは,書誌情報項目とともに印字さ
7138 れます.現在のところ,角括弧を丸括弧に変更するなど,ラベルの外見を変更する手段はありませんのでご注意ください.
7139 \end_layout
7140
7141 \begin_layout Standard
7142 書誌情報出力は,引用ダイアログで文献情報表示を取り扱うのと同じ機構で取り扱われているので,XHTML出力は,引用ダイアログで特定の文献項目を表示させた時のものに
7143 非常によく似ています.整形の仕方は,レイアウトファイルや望ましくはモジュールでカスタマイズすることができます.詳細については,取扱説明書『カスタマイズ篇』をご覧
7144 ください.
7145 \end_layout
7146
7147 \begin_layout Standard
7148 現在のところ,主だった瑕疵は,相互参照された情報が,関連した項目の全てに印字されてしまうことです.つまり,以下のような表示が為されます.
7149 \end_layout
7150
7151 \begin_layout Quote
7152 Jason Stanley, 
7153 \begin_inset Quotes eld
7154 \end_inset
7155
7156 Context and Logical Form
7157 \begin_inset Quotes erd
7158 \end_inset
7159
7160 , in 
7161 \emph on
7162 Language in Context: Selected Essays
7163 \emph default
7164  (Oxford: Oxford University Press, 2007), pp.
7165  30–68.
7166 \end_layout
7167
7168 \begin_layout Quote
7169 Jason Stanley, 
7170 \begin_inset Quotes eld
7171 \end_inset
7172
7173 Semantics in Context
7174 \begin_inset Quotes erd
7175 \end_inset
7176
7177 , in 
7178 \emph on
7179 Language in Context: Selected Essays
7180 \emph default
7181  (Oxford: Oxford University Press, 2007), pp.
7182  201–30.
7183 \end_layout
7184
7185 \begin_layout Standard
7186 これは,遠くないうちに修正されるでしょう.
7187 \end_layout
7188
7189 \begin_layout Standard
7190 現在のところ,節ごとの書誌情報出力はサポートされていません.複数の書誌情報がある場合には,\SpecialChar LyX
7191 は同じ情報を繰り返し出力してしまいます.
7192 \end_layout
7193
7194 \begin_layout Section
7195 索引
7196 \end_layout
7197
7198 \begin_layout Standard
7199 \SpecialChar LyX
7200 は,索引をXHTMLとして書きだすことができますが,現在のところ,若干の制約があります.
7201 \end_layout
7202
7203 \begin_layout Standard
7204 索引の書き出しは,
7205 \emph on
7206 ユーザーの手引き
7207 \emph default
7208 の索引の節に書かれているような手の込んだ方法を使おうとしないほうが,信頼性が保てます
7209 \begin_inset Foot
7210 status collapsed
7211
7212 \begin_layout Plain Layout
7213 ここでの主な問題は,これらの操作の際に,\SpecialChar LyX
7214 自身は何もしていないという点です.つまり,生の\SpecialChar LaTeX
7215 で入力しなくてはならないようなものをそのまま入力しているのです.
7216 \end_layout
7217
7218 \end_inset
7219
7220 .当該節の小節見出しに沿って,それらがどう処理されるかを説明しましょう.
7221 \end_layout
7222
7223 \begin_layout Itemize
7224 索引項目のグループ化(下層項目): \SpecialChar LyX
7225 はこれらをサポートしようと努めていますが,項目は「 ! 」(感嘆符の周りに空白)で分離しなくてはなりません.これは,そうしな
7226 いと数式などで使われているエスケープされた感嘆符をチェックするのが非常に難しくなるからです.
7227 \end_layout
7228
7229 \begin_layout Itemize
7230 ページ範囲: ページ範囲については,XHTMLでは意味がないので,全くサポートされません.その代わりに,引用項目のはじめと終わりの頁それぞれに,2つの索引項目が
7231 得られるだけです.
7232 \end_layout
7233
7234 \begin_layout Itemize
7235 相互参照: 相互参照のサポートはありません.\SpecialChar LyX
7236 が「|see\SpecialChar ldots
7237 」という下だりを持つ項目を検出すると,その部分はただ無視されて,残りの部分が通常の索引項目だとみなされま
7238 す.
7239 \end_layout
7240
7241 \begin_layout Itemize
7242 索引項目の整序: \SpecialChar LyX
7243 は整序順の変更をサポートします.\SpecialChar LyX
7244 は,最初に検出した「@」の前の部分を取り出して,それを整序に用い,最初の「@」の後の部分を実際の項目として取り
7245 出します.現在のところ,\SpecialChar LyX
7246 はエスケープされた「@」を取り扱わないので,電子メールアドレスを索引に使わないでください.
7247 \end_layout
7248
7249 \begin_layout Itemize
7250 索引項目のレイアウト: 項目は,テキスト様式ダイアログを使うなり,\SpecialChar LyX
7251 内で使用可能な方法を用いることで,索引項目を成形することができます.「項目|textbf」のよ
7252 うな文法はサポートされません.\SpecialChar LyX
7253 は,項目内にパイプ記号「|」を検出すると,パイプ記号とその後に続くものすべてを削除してしまいます.
7254 \end_layout
7255
7256 \begin_layout Itemize
7257 複数の索引: 複数の索引はサポートされていません.すべての項目は,ひとつの大きな索引として印字されます.索引が何度も印字されることを防ぐため,中心となる索引だけ
7258 を印字しますので,その索引は必ず置くようにしてください.
7259 \end_layout
7260
7261 \begin_layout Section
7262 記号一覧および用語集
7263 \end_layout
7264
7265 \begin_layout Standard
7266 現在のところ,用語集のサポートはありません.この機能の追加は,比較的容易だと思われますので,あなたの貢献をお待ちしております.
7267 \end_layout
7268
7269 \begin_layout Chapter
7270 \SpecialChar LyX
7271 サーバー
7272 \begin_inset CommandInset label
7273 LatexCommand label
7274 name "chap:LyXサーバー"
7275
7276 \end_inset
7277
7278
7279 \end_layout
7280
7281 \begin_layout Section
7282 はじめに
7283 \end_layout
7284
7285 \begin_layout Standard
7286 「\SpecialChar LyX
7287 サーバー」を使用すると,他のプログラムが,\SpecialChar LyX
7288 と通信したり,\SpecialChar LyX
7289 コマンドを実行させたり,\SpecialChar LyX
7290 の内部状態に関する情報を取得したりすることができるようになります.これは熟練し
7291 たユーザー向けの機能ですが,便利なはずです.たとえば,\SpecialChar LyX
7292 サーバーに書き込むことによって,JabRefのような書誌情報管理ソフトが,LyXに文献引用を「押し込む」こ
7293 とが可能となります.
7294 \end_layout
7295
7296 \begin_layout Section
7297 \SpecialChar LyX
7298 サーバーを開始するには
7299 \lang english
7300
7301 \begin_inset CommandInset label
7302 LatexCommand label
7303 name "sec:Starting-the-Server"
7304
7305 \end_inset
7306
7307
7308 \end_layout
7309
7310 \begin_layout Standard
7311 \SpecialChar LyX
7312 サーバーは,名前をつけたパイプの対を利用することで機能します.パイプは,通常
7313 \begin_inset Flex Code
7314 status collapsed
7315
7316 \begin_layout Plain Layout
7317 UserDir
7318 \end_layout
7319
7320 \end_inset
7321
7322 の下に作られ(Windowsを除く.Windowsでは,名前を付けた
7323 \emph on
7324 ローカルの
7325 \emph default
7326 パイプは
7327 \begin_inset Flex Code
7328 status collapsed
7329
7330 \begin_layout Plain Layout
7331
7332 \backslash
7333
7334 \backslash
7335 .
7336 \backslash
7337 pipe
7338 \end_layout
7339
7340 \end_inset
7341
7342 に特別なオブジェクトとして置かれます),「
7343 \begin_inset Flex Code
7344 status collapsed
7345
7346 \begin_layout Plain Layout
7347 .lyxpipe.in
7348 \end_layout
7349
7350 \end_inset
7351
7352 」および「
7353 \begin_inset Flex Code
7354 status collapsed
7355
7356 \begin_layout Plain Layout
7357 .lyxpipe.out
7358 \end_layout
7359
7360 \end_inset
7361
7362 」という名前がついています.外部プログラムは,
7363 \begin_inset Flex Code
7364 status collapsed
7365
7366 \begin_layout Plain Layout
7367 .lyxpipe.in
7368 \end_layout
7369
7370 \end_inset
7371
7372 に書き込みを行い,戻りデータを
7373 \begin_inset Flex Code
7374 status collapsed
7375
7376 \begin_layout Plain Layout
7377 .lyxpipe.out
7378 \end_layout
7379
7380 \end_inset
7381
7382 から読み出します.パイプ名の語幹は,
7383 \begin_inset Flex MenuItem
7384 status collapsed
7385
7386 \begin_layout Plain Layout
7387 ツール\SpecialChar menuseparator
7388 設定
7389 \end_layout
7390
7391 \end_inset
7392
7393 から,たとえば「
7394 \begin_inset Flex Code
7395 status collapsed
7396
7397 \begin_layout Plain Layout
7398 /home/myhome/lyxpipe
7399 \end_layout
7400
7401 \end_inset
7402
7403 」あるいはWindowsでは「
7404 \begin_inset Flex Code
7405 status collapsed
7406
7407 \begin_layout Plain Layout
7408
7409 \backslash
7410
7411 \backslash
7412 .
7413 \backslash
7414 pipe
7415 \backslash
7416 lyxpipe
7417 \end_layout
7418
7419 \end_inset
7420
7421 」などに設定することができます(ここで,lyxpipe以外の任意のファイルパス,例えば
7422 \begin_inset Flex Code
7423 status collapsed
7424
7425 \begin_layout Plain Layout
7426 "
7427 \backslash
7428
7429 \backslash
7430 .
7431 \backslash
7432 pipe
7433 \backslash
7434 my
7435 \backslash
7436 lyx
7437 \backslash
7438 pipe"
7439 \end_layout
7440
7441 \end_inset
7442
7443 なども使用できます).サーバーを開始するためには,これを
7444 \emph on
7445 手動で設定しなくてはなりません
7446 \emph default
7447
7448 \end_layout
7449
7450 \begin_layout Standard
7451 \SpecialChar LyX
7452 は,パイプを生成するに際して,「
7453 \begin_inset Flex Code
7454 status collapsed
7455
7456 \begin_layout Plain Layout
7457 .in
7458 \end_layout
7459
7460 \end_inset
7461
7462 」および「
7463 \begin_inset Flex Code
7464 status collapsed
7465
7466 \begin_layout Plain Layout
7467 .out
7468 \end_layout
7469
7470 \end_inset
7471
7472 」を付け加えます.パイプがすでに存在していれば,\SpecialChar LyX
7473 は他の\SpecialChar LyX
7474 プロセスがすでに実行中であると判断して,サーバーを開始しません.POSIX(Unix型)システムでは,なん
7475 らかの理由で,\SpecialChar LyX
7476 が終了する際に使用されていない「古い」パイプが削除されずに残ったりすると,\SpecialChar LyX
7477 はこれを削除しようとします.何らかの理由でこれが失敗した場合,手動でパイ
7478 プを削除したのちに,\SpecialChar LyX
7479 を再起動する必要があります.Windowsでは,プログラムが終了したりクラッシュしたりすると,OSがパイプを削除するので,「古い」パイプが残
7480 ることはありません.
7481 \end_layout
7482
7483 \begin_layout Standard
7484 サーバーを使用する\SpecialChar LyX
7485 プロセスを複数起動するには,それぞれのプロセスに,別のユーザーディレクトリを使用させたり,別々の
7486 \begin_inset Flex Code
7487 status collapsed
7488
7489 \begin_layout Plain Layout
7490 preferences
7491 \end_layout
7492
7493 \end_inset
7494
7495 ファイルを使用させるなど,別々の設定を使用する必要があります.
7496 \end_layout
7497
7498 \begin_layout Standard
7499 クライアントプログラムを開発しようとされているのであれば,\SpecialChar LyX
7500 サーバーからのデバッグ情報を有効にすると便利かもしれません.そのためには,Lyxを
7501 \begin_inset Flex Code
7502 status collapsed
7503
7504 \begin_layout Plain Layout
7505 lyx -dbg lyxserver
7506 \end_layout
7507
7508 \end_inset
7509
7510 として起動してください.
7511 \end_layout
7512
7513 \begin_layout Standard
7514 C++言語で書かれた完全なサンプルクライアントが,ソース頒布版の
7515 \begin_inset Newline newline
7516 \end_inset
7517
7518
7519 \begin_inset Flex Code
7520 status collapsed
7521
7522 \begin_layout Plain Layout
7523 development/lyxserver/server_monitor.cpp
7524 \end_layout
7525
7526 \end_inset
7527
7528 にあります.
7529 \end_layout
7530
7531 \begin_layout Standard
7532 もう一つの便利なツールとして,
7533 \begin_inset Flex Code
7534 status collapsed
7535
7536 \begin_layout Plain Layout
7537 src/client/lyxclient
7538 \end_layout
7539
7540 \end_inset
7541
7542 にあるコマンドラインベースのクライアントがあります.
7543 \end_layout
7544
7545 \begin_layout Section
7546 通常の通信
7547 \end_layout
7548
7549 \begin_layout Standard
7550 \SpecialChar LyX
7551 コールを発行するには,クライアントはASCIIテキスト行を入力パイプに書き込みまなくてはなりません.この行は,以下の書式を持ちます.
7552 \end_layout
7553
7554 \begin_layout Quote
7555 LYXCMD:
7556 \emph on
7557 クライアント名
7558 \emph default
7559 :
7560 \emph on
7561 関数
7562 \emph default
7563 :
7564 \emph on
7565 引数
7566 \end_layout
7567
7568 \begin_layout Description
7569 クライアント名 は,クライアントが自由に選べる名前です.これが用いられるのは,クライアントが他の要求クライアントから結果を見分けることができるように,\SpecialChar LyX
7570 が返答をす
7571 る際,クライアント名をエコーするときだけです.
7572 \end_layout
7573
7574 \begin_layout Description
7575 関数 は,\SpecialChar LyX
7576 に実行させたい関数です.これは,ミニバッファで使用するコマンドと同じです.
7577 \end_layout
7578
7579 \begin_layout Description
7580 引数 は,一部の関数のみに効力を持つオプションの引数です(たとえば,「自己挿入」LFUNは,現在のカーソル位置に引数を文章として挿入します).
7581 \end_layout
7582
7583 \begin_layout Standard
7584 \SpecialChar LyX
7585 からの返答は,出力パイプに送り出され,
7586 \end_layout
7587
7588 \begin_layout Quote
7589 INFO:
7590 \emph on
7591 クライアント名
7592 \emph default
7593 :
7594 \emph on
7595 関数
7596 \emph default
7597 :
7598 \emph on
7599 データ
7600 \end_layout
7601
7602 \begin_layout Standard
7603 の書式をしています.ここで
7604 \emph on
7605 クライアント名
7606 \emph default
7607
7608 \emph on
7609 関数
7610 \emph default
7611 は,コマンド要求からそのままエコーされますが,
7612 \emph on
7613 データ
7614 \emph default
7615 はコマンド実行の結果に依存した,多少なりとも有用な情報です.「font-state」のような一部のコマンドは,\SpecialChar LyX
7616 の内部状態に関する情報を返しますが,空のデータ応答
7617 を返すものもあります.空のデータ返答は,コマンド実行が無事終わったことを意味します.
7618 \end_layout
7619
7620 \begin_layout Standard
7621 エラーが発生した場合の\SpecialChar LyX
7622 の返答は
7623 \end_layout
7624
7625 \begin_layout Quote
7626 ERROR:
7627 \emph on
7628 クライアント名
7629 \emph default
7630 :
7631 \emph on
7632 関数
7633 \emph default
7634 :
7635 \emph on
7636 エラーメッセージ
7637 \end_layout
7638
7639 \begin_layout Standard
7640 の書式をしており,
7641 \emph on
7642 エラーメッセージ
7643 \emph default
7644 には,なぜコマンドが失敗したかの説明が入っているはずです.
7645 \end_layout
7646
7647 \begin_layout Standard
7648 (例)
7649 \end_layout
7650
7651 \begin_layout LyX-Code
7652 echo "LYXCMD:test:beginning-of-buffer:" >~/.lyxpipe.in
7653 \begin_inset Newline newline
7654 \end_inset
7655
7656 echo "LYXCMD:test:get-xy:" >~/.lyxpipe.in
7657 \begin_inset Newline newline
7658 \end_inset
7659
7660 read a <~/.lyxpipe.out
7661 \begin_inset Newline newline
7662 \end_inset
7663
7664 echo $a
7665 \end_layout
7666
7667 \begin_layout Section
7668 通知
7669 \end_layout
7670
7671 \begin_layout Standard
7672 \SpecialChar LyX
7673 は,発生しているイベントを,非同期的にクライアントに通知することができます.いまのところ,ユーザーがある
7674 \begin_inset Flex Ruby
7675 status collapsed
7676
7677 \begin_layout Plain Layout
7678
7679 \begin_inset Argument post:1
7680 status collapsed
7681
7682 \begin_layout Plain Layout
7683 キー
7684 \end_layout
7685
7686 \end_inset
7687
7688
7689 \end_layout
7690
7691 \end_inset
7692
7693 列を関数「notify」に割り当てているときのみ,\SpecialChar LyX
7694 はこの通知を行います.\SpecialChar LyX
7695 が送る文字列の書式は
7696 \end_layout
7697
7698 \begin_layout Quote
7699 \begin_inset Flex Code
7700 status collapsed
7701
7702 \begin_layout Plain Layout
7703 NOTIFY:
7704 \end_layout
7705
7706 \end_inset
7707
7708
7709 \emph on
7710 鍵列
7711 \end_layout
7712
7713 \begin_layout Standard
7714 となっていて,
7715 \emph on
7716 鍵列
7717 \emph default
7718 は,ユーザーが実際に打鍵した鍵列の印字表現になります.
7719 \end_layout
7720
7721 \begin_layout Standard
7722 この機構は,\SpecialChar LyX
7723 のコマンド群を拡張してマクロを実装するのに使用することができます.なんらかの鍵列を「notify」に割り当ててください.それから出力パイプで待機する
7724 クライアントを起動し,鍵列に応じたコマンドを読み込み,一つないし複数の\SpecialChar LyX
7725 コマンドを発行する\SpecialChar LyX
7726 要求と\SpecialChar LyX
7727 コールを使用する関数を開始するのです.
7728 \end_layout
7729
7730 \begin_layout Section
7731 単純な\SpecialChar LyX
7732 サーバープロトコル
7733 \end_layout
7734
7735 \begin_layout Standard
7736 \SpecialChar LyX
7737 は,セッション管理に使用することができる単純なプロトコルを実装しています.メッセージは,すべて
7738 \end_layout
7739
7740 \begin_layout Quote
7741 LYXSRV:
7742 \emph on
7743 クライアント名
7744 \emph default
7745 :
7746 \emph on
7747 プロトコルメッセージ
7748 \end_layout
7749
7750 \begin_layout Standard
7751 の書式をしており,
7752 \emph on
7753 プロトコルメッセージ
7754 \emph default
7755 は「hello」ないし「bye」です.クライアントから「hello」を受け取ると,\SpecialChar LyX
7756 はメッセージを聴いていることをクライアントに伝えるために返答をし,\SpecialChar LyX
7757 が終了するこ
7758 とをクライアントに伝えるのには,\SpecialChar LyX
7759 が「bye」を送信します.
7760 \end_layout
7761
7762 \begin_layout Section
7763 DVIとPDFの遡及検索
7764 \end_layout
7765
7766 \begin_layout Standard
7767 DVI/PDFビューア
7768 \begin_inset Foot
7769 status collapsed
7770
7771 \begin_layout Plain Layout
7772 PDFの遡及検索機能を提供しているビューアには,KDE/Linux上のOkularと
7773 \lang english
7774 Qpdfview on Unix
7775 \lang japanese
7776 とMac OS X上のSkim,Windows上のSumatraPDFがあります.
7777 \end_layout
7778
7779 \end_inset
7780
7781 には,遡及検索(reverse searchないしinverse searchと呼ばれます)機能を提供しているものがあります.これを使えば,DVI/PDF出力の
7782 特定の場所をクリックすることによって,\SpecialChar LyX
7783 の文書中で対応する行にカーソルを移動させることができます.これを実現するためには,ビューアは\SpecialChar LyX
7784 と情報交換を行う必要があります
7785 .これは,命名パイプ(
7786 \emph on
7787 lyxpipe
7788 \emph default
7789 )を使用するか,\SpecialChar LyX
7790 が作業ディレクトリに生成するUNIXドメインソケット(
7791 \emph on
7792 lyxsocket
7793 \emph default
7794 )を使用する(これは
7795 \begin_inset Flex Code
7796 status collapsed
7797
7798 \begin_layout Plain Layout
7799 lyxclient
7800 \end_layout
7801
7802 \end_inset
7803
7804 プログラムが\SpecialChar LyX
7805 と通信するのに使用している方法です)ことで,\SpecialChar LyX
7806 サーバを経由して実現することができます.場合によっては,ビューアと\SpecialChar LyX
7807 を橋渡しする補助スクリプトを必要とする
7808 ことがあるかもしれませんが,それ以外は,ビューアは\SpecialChar LyX
7809 と直接通信することができます.これは,選んだビューアと基本ソフトに依存します.また,必要とされるビューアの設定
7810 法と遡及検索が実際に行われる方法とにも依存します.したがって,下記では個々のビューア毎の遡及検索の設定の仕方を説明することとします.その前に,DVI/PDF出力
7811 で遡及検索を有効にするためには,一般に何が必要とされるかを説明します.
7812 \end_layout
7813
7814 \begin_layout Subsection
7815 \begin_inset CommandInset label
7816 LatexCommand label
7817 name "subsec:遡及検索"
7818
7819 \end_inset
7820
7821 自動有効化
7822 \end_layout
7823
7824 \begin_layout Standard
7825
7826 \lang english
7827 n most cases \SpecialChar LyX
7828  will do the work for you by pressing the following button
7829  in the toolbar: 
7830 \begin_inset Info
7831 type  "icon"
7832 arg   "buffer-toggle-output-sync"
7833 \end_inset
7834
7835 .
7836  Alternatively, you can also enable the feature by checking 
7837 \family sans
7838 Synchronize with Output
7839 \family default
7840  in 
7841 \begin_inset Flex Noun
7842 status collapsed
7843
7844 \begin_layout Plain Layout
7845
7846 \lang english
7847 Document\SpecialChar menuseparator
7848 Settings\SpecialChar menuseparator
7849 Formats
7850 \end_layout
7851
7852 \end_inset
7853
7854
7855 \lang japanese
7856 その場合,\SpecialChar LyX
7857 は,自動的に,必要なSync\SpecialChar TeX
7858 マクロ(PDFの場合)や,srcltxパッケージ(DVIの場合)を挿入してくれます.このオプションは,
7859 \begin_inset Flex MenuItem
7860 status collapsed
7861
7862 \begin_layout Plain Layout
7863 表示/更新
7864 \end_layout
7865
7866 \end_inset
7867
7868 ツールバーからも容易にアクセスすることができます.
7869 \end_layout
7870
7871 \begin_layout Standard
7872 もし,これとは別の設定が必要な場合には,
7873 \begin_inset Flex MenuItem
7874 status collapsed
7875
7876 \begin_layout Plain Layout
7877 文書\SpecialChar menuseparator
7878 設定\SpecialChar menuseparator
7879 出力\SpecialChar menuseparator
7880 出力と同期
7881 \end_layout
7882
7883 \end_inset
7884
7885 の直下にあるドロップダウンボックスから,自製マクロを選択ないし入力することができます.
7886 \end_layout
7887
7888 \begin_layout Standard
7889 方式として
7890 \begin_inset Flex Code
7891 status collapsed
7892
7893 \begin_layout Plain Layout
7894
7895 \backslash
7896 synctex=1
7897 \end_layout
7898
7899 \end_inset
7900
7901 を用いると,gzip圧縮が有効となることに注意してください.使用しているビューアがgzip圧縮をサポートしていない場合には,代わりに
7902 \begin_inset Flex Code
7903 status collapsed
7904
7905 \begin_layout Plain Layout
7906
7907 \backslash
7908 synctex=-1
7909 \end_layout
7910
7911 \end_inset
7912
7913 を指定してください.
7914 \end_layout
7915
7916 \begin_layout Standard
7917 また,
7918 \begin_inset Flex Code
7919 status collapsed
7920
7921 \begin_layout Plain Layout
7922 srcltx
7923 \end_layout
7924
7925 \end_inset
7926
7927 パッケージや
7928 \begin_inset Flex Code
7929 status collapsed
7930
7931 \begin_layout Plain Layout
7932 src-specials
7933 \end_layout
7934
7935 \end_inset
7936
7937 を取り込むと,組版上,不具合が生じることがあるのでご注意ください.したがって,
7938 \begin_inset Flex Code
7939 status collapsed
7940
7941 \begin_layout Plain Layout
7942 srcltx
7943 \end_layout
7944
7945 \end_inset
7946
7947 パッケージや
7948 \begin_inset Flex Code
7949 status collapsed
7950
7951 \begin_layout Plain Layout
7952 src-specials
7953 \end_layout
7954
7955 \end_inset
7956
7957 を使用している場合には,最終版を組版する際には,出力同期を無効にするべきです.
7958 \end_layout
7959
7960 \begin_layout Standard
7961 自動設定でカバーされている範囲よりも,さらに特殊なものが必要な場合には,出力同期を手動で設定する仕方を述べた次節をお読みください.自動設定で事足りる場合には,自
7962 動設定・手動設定ともに必要となるビューア上の設定を述べた,第
7963 \begin_inset CommandInset ref
7964 LatexCommand ref
7965 reference "subsec:特定のビューアを設定して使うには"
7966
7967 \end_inset
7968
7969 節に進むことができます.
7970 \end_layout
7971
7972 \begin_layout Subsection
7973 手動有効化
7974 \end_layout
7975
7976 \begin_layout Standard
7977 \SpecialChar LaTeX
7978 は,遡及検索のために複数の方法を提供しています.ある方法は
7979 \begin_inset Flex Code
7980 status collapsed
7981
7982 \begin_layout Plain Layout
7983 latex/pdflatex
7984 \end_layout
7985
7986 \end_inset
7987
7988 プログラムに組み込まれており,他の方法は外部パッケージとして提供されています.どちらを選択するかは,お使いの\SpecialChar LaTeX
7989 頒布版が既に特定の方法を提供しているか(組み込みによ
7990 る方法は比較的新しいものです)と,お使いのビューアがそれに対応しているかに依存します.使用可能な方法を以下に述べます.
7991 \end_layout
7992
7993 \begin_layout Subsubsection*
7994 src-special経由のDVI組み込み検索(DVIのみ)
7995 \end_layout
7996
7997 \begin_layout Standard
7998 この方法は,DVIファイルに遡及検索に必要な情報を追加するものです.これは,かなり前の\SpecialChar LaTeX
7999 から利用可能となっており(比較的最近の\SpecialChar LaTeX
8000 頒布版はすべて対応しています),安定
8001 して動作します.これを有効にするには,
8002 \begin_inset Flex MenuItem
8003 status collapsed
8004
8005 \begin_layout Plain Layout
8006 設定\SpecialChar menuseparator
8007 ファイル処理\SpecialChar menuseparator
8008 変換子
8009 \end_layout
8010
8011 \end_inset
8012
8013
8014 \begin_inset Flex MenuItem
8015 status collapsed
8016
8017 \begin_layout Plain Layout
8018 LaTeX (plain)->DVI
8019 \end_layout
8020
8021 \end_inset
8022
8023 ないし
8024 \begin_inset Flex MenuItem
8025 status collapsed
8026
8027 \begin_layout Plain Layout
8028 LaTeX (plain)->DraftDVI
8029 \end_layout
8030
8031 \end_inset
8032
8033 変換子を
8034 \begin_inset Flex Code
8035 status collapsed
8036
8037 \begin_layout Plain Layout
8038 latex -src-specials $$i
8039 \end_layout
8040
8041 \end_inset
8042
8043 に変更します.もしこれが動作しないときは,お使いの\SpecialChar LaTeX
8044 エンジンが違うオプションを必要としていないか確認してください(頒布版によっては文法の異なることがあります).
8045 \end_layout
8046
8047 \begin_layout Subsubsection*
8048 外部パッケージ(PDFSyncおよびsrcltx)
8049 \end_layout
8050
8051 \begin_layout Standard
8052
8053 \emph on
8054 pdfsync
8055 \emph default
8056 および
8057 \emph on
8058 srcltx
8059 \emph default
8060 パッケージは,PDF出力(pdflatex経由)およびDVI出力での遡及検索を提供します.これを有効にするには,\SpecialChar LyX
8061 プリアンブルで以下のようにパッケージを読み込んで
8062 ください.
8063 \end_layout
8064
8065 \begin_layout Itemize
8066 PDFの遡及検索には
8067 \begin_inset Flex Code
8068 status collapsed
8069
8070 \begin_layout Plain Layout
8071
8072 \backslash
8073 usepackage{pdfsync}
8074 \end_layout
8075
8076 \end_inset
8077
8078
8079 \end_layout
8080
8081 \begin_layout Itemize
8082 DVIの遡及検索には
8083 \begin_inset Flex Code
8084 status collapsed
8085
8086 \begin_layout Plain Layout
8087
8088 \backslash
8089 usepackage[active]{srcltx}
8090 \end_layout
8091
8092 \end_inset
8093
8094
8095 \end_layout
8096
8097 \begin_layout Standard
8098 と書きます.DVIとPDFの両方の遡及検索を実行できるようにするためには,プリアンブルに以下の行を挿入する方法があります.
8099 \end_layout
8100
8101 \begin_layout LyX-Code
8102
8103 \backslash
8104 usepackage{ifpdf}
8105 \begin_inset Newline newline
8106 \end_inset
8107
8108
8109 \backslash
8110 ifpdf
8111 \begin_inset Newline newline
8112 \end_inset
8113
8114   
8115 \backslash
8116 usepackage{pdfsync}
8117 \begin_inset Newline newline
8118 \end_inset
8119
8120
8121 \backslash
8122 else
8123 \begin_inset Newline newline
8124 \end_inset
8125
8126   
8127 \backslash
8128 usepackage[active]{srcltx}
8129 \begin_inset Newline newline
8130 \end_inset
8131
8132
8133 \backslash
8134 fi
8135 \end_layout
8136
8137 \begin_layout Standard
8138 このようにすれば,DVIでもPDF(pdflatex)でも正しいパッケージを使いながら,ファイルを閲覧することができます.
8139 \end_layout
8140
8141 \begin_layout Standard
8142 なお,PDFSyncは,文書の出力レイアウトに干渉する可能性があるので注意してください.したがって,仕上がり文書ではPDFSyncを無効にすることをお勧めします
8143
8144 \end_layout
8145
8146 \begin_layout Subsubsection*
8147 Sync\SpecialChar TeX
8148 を使った組み込み遡及検索(DVIおよびPDF)
8149 \end_layout
8150
8151 \begin_layout Standard
8152 \begin_inset Flex Code
8153 status collapsed
8154
8155 \begin_layout Plain Layout
8156 (pdf)latex
8157 \end_layout
8158
8159 \end_inset
8160
8161 の最近のバージョンは,PDFおよびDVI両方の遡及検索を組み込みでサポートしています.このいわゆる
8162 \emph on
8163 Sync\SpecialChar TeX
8164
8165 \emph default
8166 機能は,主に,PDFSyncパッケージをpdftexプログラムへ統合したことと,それをsrc-specialsアプローチへ取り込んだことの成果です.これを使用す
8167 るためには,少なくとも\SpecialChar TeX
8168 Live 2008か最近のMik\SpecialChar TeX
8169 頒布版が必要です.また,既にSync\SpecialChar TeX
8170 サポートを提供しているPDFビューアは少ししかありません(UNIX上の
8171 OkularとQpdfview,Mac上のSkim,及びWindows上のSumatraPDF
8172 \lang english
8173 ; see the next section for details
8174 \lang japanese
8175 ).
8176 \end_layout
8177
8178 \begin_layout Standard
8179 DVI出力でSync\SpecialChar TeX
8180 を有効にするには,
8181 \begin_inset Flex MenuItem
8182 status collapsed
8183
8184 \begin_layout Plain Layout
8185 設定\SpecialChar menuseparator
8186 ファイル処理\SpecialChar menuseparator
8187 変換子
8188 \end_layout
8189
8190 \end_inset
8191
8192
8193 \begin_inset Flex MenuItem
8194 status collapsed
8195
8196 \begin_layout Plain Layout
8197 LaTeX (plain)->DVI
8198 \end_layout
8199
8200 \end_inset
8201
8202 ないし
8203 \begin_inset Flex MenuItem
8204 status collapsed
8205
8206 \begin_layout Plain Layout
8207 LaTeX (plain)->DraftDVI
8208 \end_layout
8209
8210 \end_inset
8211
8212 変換子を
8213 \begin_inset Flex Code
8214 status collapsed
8215
8216 \begin_layout Plain Layout
8217 latex -synctex=1 $$i
8218 \end_layout
8219
8220 \end_inset
8221
8222 に変更します.PDF出力用には,
8223 \begin_inset Flex MenuItem
8224 status collapsed
8225
8226 \begin_layout Plain Layout
8227 LaTeX (pdflatex)->PDF (pdflatex)
8228 \end_layout
8229
8230 \end_inset
8231
8232 変換子を
8233 \begin_inset Flex Code
8234 status collapsed
8235
8236 \begin_layout Plain Layout
8237 pdflatex -synctex=1 $$i
8238 \end_layout
8239
8240 \end_inset
8241
8242 に変更してください.
8243 \lang english
8244  Should your viewer not be considered in the following description, or in
8245  case of missing success, please check
8246 \lang japanese
8247 また,ビューアをSync\SpecialChar TeX
8248 で使うのに設定を行う必要があるかどうか,お使いのビューアの取扱説明書をご確認ください.
8249 \begin_inset Foot
8250 status collapsed
8251
8252 \begin_layout Plain Layout
8253 \begin_inset Flex Code
8254 status collapsed
8255
8256 \begin_layout Plain Layout
8257 -synctex=1
8258 \end_layout
8259
8260 \end_inset
8261
8262 オプションは,gzip圧縮を有効にします.お使いのビューアがgzip圧縮をサポートしていない場合には,代わりに
8263 \begin_inset Flex Code
8264 status collapsed
8265
8266 \begin_layout Plain Layout
8267 -synctex=-1
8268 \end_layout
8269
8270 \end_inset
8271
8272 を使用してください.
8273 \end_layout
8274
8275 \end_inset
8276
8277
8278 \end_layout
8279
8280 \begin_layout Subsection
8281 特定のビューアを設定して使うには
8282 \begin_inset CommandInset label
8283 LatexCommand label
8284 name "subsec:特定のビューアを設定して使うには"
8285
8286 \end_inset
8287
8288
8289 \end_layout
8290
8291 \begin_layout Subsubsection*
8292 Xdvi(全プラットフォーム)
8293 \end_layout
8294
8295 \begin_layout Standard
8296 \SpecialChar LyX
8297 は,
8298 \begin_inset Flex Code
8299 status collapsed
8300
8301 \begin_layout Plain Layout
8302 lyxclient
8303 \end_layout
8304
8305 \end_inset
8306
8307 プログラムを自動的に使うのに必要なフックを,既に提供しているので,
8308 \begin_inset Flex Code
8309 status collapsed
8310
8311 \begin_layout Plain Layout
8312 xdvi
8313 \end_layout
8314
8315 \end_inset
8316
8317 を使用する場合には,DVI遡及検索を実行するのに他にするべきことはありません.使用中の文書を上記で述べたように設定するだけです(遡及検索は,Ctrl-クリックか
8318 ,Mac OS X上ではAlt-クリックで始動します).
8319 \end_layout
8320
8321 \begin_layout Standard
8322 しかし,何らかの理由で,\SpecialChar LyX
8323 と通信するのにソケットではなく命名パイプを使用したい場合には,
8324 \begin_inset Flex MenuItem
8325 status collapsed
8326
8327 \begin_layout Plain Layout
8328 設定\SpecialChar menuseparator
8329 ファイル処理\SpecialChar menuseparator
8330 ファイル書式
8331 \end_layout
8332
8333 \end_inset
8334
8335 のDVIビューアを
8336 \begin_inset Flex Code
8337 status collapsed
8338
8339 \begin_layout Plain Layout
8340 xdvi -editor "lyxeditor.sh %f %l"
8341 \end_layout
8342
8343 \end_inset
8344
8345 (
8346 \begin_inset Flex Code
8347 status collapsed
8348
8349 \begin_layout Plain Layout
8350 lyxeditor.sh
8351 \end_layout
8352
8353 \end_inset
8354
8355 は適切なスクリプト名)に変更してください
8356 \begin_inset Foot
8357 status collapsed
8358
8359 \begin_layout Plain Layout
8360 Mac OS X上では,
8361 \begin_inset Flex Code
8362 status collapsed
8363
8364 \begin_layout Plain Layout
8365 DISPLAY=:0.0 xdvi -editor "lyxeditor.sh %f %l"
8366 \end_layout
8367
8368 \end_inset
8369
8370 としなくてはなりません.
8371 \end_layout
8372
8373 \end_inset
8374
8375 .たとえば,最低限のシェルスクリプトは
8376 \end_layout
8377
8378 \begin_layout LyX-Code
8379 #!/bin/sh
8380 \begin_inset Newline newline
8381 \end_inset
8382
8383 LYXPIPE="/path/to/lyxpipe"
8384 \begin_inset Newline newline
8385 \end_inset
8386
8387 COMMAND="LYXCMD:revdvi:server-goto-file-row:$1 $2"
8388 \begin_inset Newline newline
8389 \end_inset
8390
8391 echo "$COMMAND" > "${LYXPIPE}".in || exit
8392 \begin_inset Newline newline
8393 \end_inset
8394
8395 read TMP < "${LYXPIPE}".out || exit
8396 \end_layout
8397
8398 \begin_layout Standard
8399 のようになります.ここで
8400 \begin_inset Flex Code
8401 status collapsed
8402
8403 \begin_layout Plain Layout
8404 /path/to/lyxpipe
8405 \end_layout
8406
8407 \end_inset
8408
8409 は,
8410 \begin_inset Flex MenuItem
8411 status collapsed
8412
8413 \begin_layout Plain Layout
8414 設定\SpecialChar menuseparator
8415 パス
8416 \end_layout
8417
8418 \end_inset
8419
8420 で指定したLyXServerパイプのパスを指定してください.
8421 \begin_inset Foot
8422 status collapsed
8423
8424 \begin_layout Plain Layout
8425 ソース頒布版の
8426 \begin_inset Flex Code
8427 status collapsed
8428
8429 \begin_layout Plain Layout
8430 development/tools
8431 \end_layout
8432
8433 \end_inset
8434
8435 フォルダには,ユーザが設定した
8436 \emph on
8437 lyxpipe
8438 \emph default
8439 を探し出す
8440 \begin_inset Flex Code
8441 status collapsed
8442
8443 \begin_layout Plain Layout
8444 lyxeditor
8445 \end_layout
8446
8447 \end_inset
8448
8449 スクリプトがあります.
8450 \end_layout
8451
8452 \end_inset
8453
8454
8455 \end_layout
8456
8457 \begin_layout Subsubsection*
8458 MacDviX(Mac OS X)
8459 \end_layout
8460
8461 \begin_layout Standard
8462 \begin_inset Flex Code
8463 status collapsed
8464
8465 \begin_layout Plain Layout
8466 /Applications/MacDviX_Folder/calleditor.script
8467 \end_layout
8468
8469 \end_inset
8470
8471 の終わりに
8472 \end_layout
8473
8474 \begin_layout LyX-Code
8475 /Applications/LyX.app/Contents/MacOS/lyxeditor "$2" $1
8476 \begin_inset Newline newline
8477 \end_inset
8478
8479 exit 1
8480 \end_layout
8481
8482 \begin_layout Standard
8483 という行を付け加えてください.Applicationsフォルダ以外の場所に\SpecialChar LyX
8484 を導入した場合には,それに従って上記の行を修正してください.
8485 \end_layout
8486
8487 \begin_layout Standard
8488 遡及検索は,Alt-クリック(OPTION-クリック)で始動します.
8489 \end_layout
8490
8491 \begin_layout Subsubsection*
8492 Skim(Mac OS X)
8493 \end_layout
8494
8495 \begin_layout Standard
8496 \begin_inset Flex MenuItem
8497 status collapsed
8498
8499 \begin_layout Plain Layout
8500 設定\SpecialChar menuseparator
8501 ファイル処理\SpecialChar menuseparator
8502 ファイル書式\SpecialChar menuseparator
8503 PDF (pdflatex)
8504 \end_layout
8505
8506 \end_inset
8507
8508 のビューア設定に
8509 \begin_inset Flex Code
8510 status collapsed
8511
8512 \begin_layout Plain Layout
8513 open -a Skim.app $$i
8514 \end_layout
8515
8516 \end_inset
8517
8518 と入力し,
8519 \begin_inset Flex MenuItem
8520 status collapsed
8521
8522 \begin_layout Plain Layout
8523 Skim\SpecialChar menuseparator
8524 設定\SpecialChar menuseparator
8525 Sync
8526 \end_layout
8527
8528 \end_inset
8529
8530 でLyXを選択してください.
8531 \end_layout
8532
8533 \begin_layout Standard
8534 遡及検索は,COMMAND-SHIFT-クリックで始動します.
8535 \end_layout
8536
8537 \begin_layout Subsubsection*
8538
8539 \lang english
8540 Evince (GNOME)
8541 \end_layout
8542
8543 \begin_layout Standard
8544
8545 \lang english
8546 Reverse search with evince does not work out of the box, but it can be achieved
8547  by means of some third party helper scripts.
8548  Please refer to 
8549 \begin_inset CommandInset href
8550 LatexCommand href
8551 target "http://wiki.lyx.org/LyX/SyncTeX"
8552 literal "false"
8553
8554 \end_inset
8555
8556  for details.
8557 \end_layout
8558
8559 \begin_layout Subsubsection*
8560 Okular (KDE)
8561 \end_layout
8562
8563 \begin_layout Standard
8564 \begin_inset Flex MenuItem
8565 status collapsed
8566
8567 \begin_layout Plain Layout
8568 設定\SpecialChar menuseparator
8569 Okularを設定\SpecialChar ldots
8570 \SpecialChar menuseparator
8571 編集
8572 \end_layout
8573
8574 \end_inset
8575
8576
8577 \lang english
8578  and select LyX
8579 \begin_inset Quotes erd
8580 \end_inset
8581
8582  as editor.
8583  This inserts the appropriate command (
8584 \begin_inset Flex Code
8585 status collapsed
8586
8587 \begin_layout Plain Layout
8588
8589 \lang english
8590 lyxclient -g %f %l
8591 \end_layout
8592
8593 \end_inset
8594
8595 ).
8596 \end_layout
8597
8598 \begin_layout Standard
8599 遡及検索は,SHIFT-クリックで始動します.
8600 \end_layout
8601
8602 \begin_layout Subsubsection*
8603 Qpdfview (UNIX)
8604 \end_layout
8605
8606 \begin_layout Standard
8607 Qpdfviewは,第0.3.5版以降,Sync\SpecialChar TeX
8608 をサポートしています.
8609 \begin_inset Flex MenuItem
8610 status collapsed
8611
8612 \begin_layout Plain Layout
8613 Edit\SpecialChar menuseparator
8614 Settings\SpecialChar menuseparator
8615 Behavior
8616 \end_layout
8617
8618 \end_inset
8619
8620 を開いて「Source editor」項目の入力フィールドをクリックし,
8621 \begin_inset Flex Code
8622 status collapsed
8623
8624 \begin_layout Plain Layout
8625 lyxclient -g %1 %2
8626 \end_layout
8627
8628 \end_inset
8629
8630 というコマンドを入力してください.
8631 \end_layout
8632
8633 \begin_layout Standard
8634 遡及検索は,ダブルクリックで始動します.
8635 \end_layout
8636
8637 \begin_layout Subsubsection*
8638 YAP(Windows)
8639 \end_layout
8640
8641 \begin_layout Standard
8642 yapを起動し,
8643 \begin_inset Flex MenuItem
8644 status collapsed
8645
8646 \begin_layout Plain Layout
8647 View\SpecialChar menuseparator
8648 Options
8649 \end_layout
8650
8651 \end_inset
8652
8653 メニューを選択し,「Inverse DVI Search」タブを選択します.「New\SpecialChar ldots
8654 」ボタンをクリックして開くウィンドウの「Name:」フィールドに「\SpecialChar LyX
8655
8656  Editor」(または自分の好きな名称)と入力してください.「\SpecialChar ldots
8657 」というラベルのボタンをクリックしてファイルダイアログを開き,バッチファイル
8658 \begin_inset Flex Code
8659 status collapsed
8660
8661 \begin_layout Plain Layout
8662 lyxeditor.bat
8663 \end_layout
8664
8665 \end_inset
8666
8667 (以下参照)のあるディレクトリを見つけます.
8668 \begin_inset Flex Code
8669 status collapsed
8670
8671 \begin_layout Plain Layout
8672 lyxeditor.bat
8673 \end_layout
8674
8675 \end_inset
8676
8677 を選択してプログラムの引数を
8678 \begin_inset Flex Code
8679 status collapsed
8680
8681 \begin_layout Plain Layout
8682 %f %l
8683 \end_layout
8684
8685 \end_inset
8686
8687 と指定してください.
8688 \begin_inset Flex Code
8689 status collapsed
8690
8691 \begin_layout Plain Layout
8692 lyxeditor.bat
8693 \end_layout
8694
8695 \end_inset
8696
8697 は,
8698 \emph on
8699 lyxpipe
8700 \emph default
8701 を通じて\SpecialChar LyX
8702 と通信するためのラッパとして使用され,以下のようになっています.
8703 \end_layout
8704
8705 \begin_layout LyX-Code
8706 @echo off
8707 \begin_inset Newline newline
8708 \end_inset
8709
8710 echo LYXCMD:revdvi:server-goto-file-row:%~1 %2> 
8711 \backslash
8712
8713 \backslash
8714 .
8715 \backslash
8716 pipe
8717 \backslash
8718 lyxpipe.in
8719 \begin_inset Newline newline
8720 \end_inset
8721
8722 type 
8723 \backslash
8724
8725 \backslash
8726 .
8727 \backslash
8728 pipe
8729 \backslash
8730 lyxpipe.out
8731 \end_layout
8732
8733 \begin_layout Standard
8734 \SpecialChar LyX
8735 で指定した\SpecialChar LyX
8736 Serverパイプパスが,
8737 \begin_inset Flex Code
8738 status collapsed
8739
8740 \begin_layout Plain Layout
8741
8742 \backslash
8743
8744 \backslash
8745 .
8746 \backslash
8747 pipe
8748 \backslash
8749 lyxpipe
8750 \end_layout
8751
8752 \end_inset
8753
8754 となっていることを確認するか,
8755 \begin_inset Flex Code
8756 status collapsed
8757
8758 \begin_layout Plain Layout
8759 lyxeditor.bat
8760 \end_layout
8761
8762 \end_inset
8763
8764 ラッパの方を適切に修正してください.
8765 \end_layout
8766
8767 \begin_layout Standard
8768 yapでは,遡及検索はダブルクリックで始動します.
8769 \end_layout
8770
8771 \begin_layout Subsubsection*
8772 SumatraPDF(Windows)
8773 \end_layout
8774
8775 \begin_layout Standard
8776 SumatraPDFを遡及検索で使用するためには,
8777 \begin_inset Flex MenuItem
8778 status collapsed
8779
8780 \begin_layout Plain Layout
8781 設定\SpecialChar menuseparator
8782 ファイル処理\SpecialChar menuseparator
8783 ファイル書式\SpecialChar menuseparator
8784 PDF (pdflatex)
8785 \end_layout
8786
8787 \end_inset
8788
8789 のビューア設定で
8790 \begin_inset Flex Code
8791 status collapsed
8792
8793 \begin_layout Plain Layout
8794 SumatraPDF -inverse-search "lyxeditor.bat "%f" %l"
8795 \end_layout
8796
8797 \end_inset
8798
8799 (
8800 \begin_inset Flex Code
8801 status collapsed
8802
8803 \begin_layout Plain Layout
8804 lyxeditor.bat
8805 \end_layout
8806
8807 \end_inset
8808
8809 は上記のラッパ)と入力してください.SumatraPDF.exeがコマンドPATHにない場合,フルファイル名を使用してください.
8810 \end_layout
8811
8812 \begin_layout Standard
8813 遡及検索はダブルクリックで始動します.
8814 \end_layout
8815
8816 \begin_layout Subsubsection*
8817 YAP(Cygwin)
8818 \end_layout
8819
8820 \begin_layout Standard
8821 まずはじめに,yapがWindows環境での既定のDVIビューアになっていることを確認してから,yapを起動し,
8822 \begin_inset Flex MenuItem
8823 status collapsed
8824
8825 \begin_layout Plain Layout
8826 View\SpecialChar menuseparator
8827 Options
8828 \end_layout
8829
8830 \end_inset
8831
8832 メニューを選択し,「Inverse DVI Search」タブを選択します.「New\SpecialChar ldots
8833 」ボタンをクリックして開くウィンドウの「Name:」フィールドに「\SpecialChar LyX
8834
8835  Editor」(または自分の好きな名称)と入力してください.「\SpecialChar ldots
8836 」というラベルのボタンをクリックしてファイルダイアログを開き,バッチファイル
8837 \begin_inset Flex Code
8838 status collapsed
8839
8840 \begin_layout Plain Layout
8841 lyxeditor.exe
8842 \end_layout
8843
8844 \end_inset
8845
8846 プログラム(これは,Cygwinでは既定で\SpecialChar LyX
8847 実行ファイルとともに導入されます)のあるディレクトリを見つけます.
8848 \begin_inset Flex Code
8849 status collapsed
8850
8851 \begin_layout Plain Layout
8852 lyxeditor.exe
8853 \end_layout
8854
8855 \end_inset
8856
8857 を選択してプログラムの引数を
8858 \begin_inset Flex Code
8859 status collapsed
8860
8861 \begin_layout Plain Layout
8862 -g %f %l
8863 \end_layout
8864
8865 \end_inset
8866
8867 と指定してください.これによって,\SpecialChar LyX
8868 との通信に
8869 \emph on
8870 lyxsocket
8871 \emph default
8872 が使用されるようになります.何らかの理由で
8873 \emph on
8874 lyxpipe
8875 \emph default
8876 を使用したい場合には,
8877 \begin_inset Flex Code
8878 status collapsed
8879
8880 \begin_layout Plain Layout
8881 -g
8882 \end_layout
8883
8884 \end_inset
8885
8886 オプションを削除して,\SpecialChar LyX
8887 設定で\SpecialChar LyX
8888 Serverパイプパスを指定することを忘れないでください.
8889 \end_layout
8890
8891 \begin_layout Standard
8892 yapでは,遡及検索はダブルクリックで始動します.
8893 \end_layout
8894
8895 \begin_layout Subsubsection*
8896 SumatraPDF(Cygwin)
8897 \end_layout
8898
8899 \begin_layout Standard
8900 SumatraPDFを遡及検索で使用するためには,
8901 \begin_inset Flex MenuItem
8902 status collapsed
8903
8904 \begin_layout Plain Layout
8905 設定\SpecialChar menuseparator
8906 ファイル処理\SpecialChar menuseparator
8907 ファイル書式\SpecialChar menuseparator
8908 PDF (pdflatex)
8909 \end_layout
8910
8911 \end_inset
8912
8913 のビューア設定で
8914 \begin_inset Flex Code
8915 status collapsed
8916
8917 \begin_layout Plain Layout
8918 SumatraPDF.sh
8919 \end_layout
8920
8921 \end_inset
8922
8923 と入力してください.ここで
8924 \begin_inset Flex Code
8925 status collapsed
8926
8927 \begin_layout Plain Layout
8928 SumatraPDF.sh
8929 \end_layout
8930
8931 \end_inset
8932
8933 は以下のようなスクリプトです(お使いのコマンドパスに置きます.
8934 \begin_inset Flex Code
8935 status collapsed
8936
8937 \begin_layout Plain Layout
8938 /usr/local/bin
8939 \end_layout
8940
8941 \end_inset
8942
8943 がもっとも良い選択肢でしょう).
8944 \end_layout
8945
8946 \begin_layout LyX-Code
8947 #!/bin/bash
8948 \begin_inset Newline newline
8949 \end_inset
8950
8951 cd $(dirname $1)
8952 \begin_inset Newline newline
8953 \end_inset
8954
8955 SumatraPDF -inverse-search "lyxeditor -g %f %l" $(basename $1)
8956 \end_layout
8957
8958 \begin_layout Standard
8959 SumatraPDFは,Windowsネイティブのアプリケーションであり,\SpecialChar LyX
8960 のCygwin版が使用するPOSIXパスを理解しないので,このラッパスクリプトが必要と
8961 なります.SumatraPDF.exeがお使いのコマンドパスにない場合は,上記のスクリプトでPOSIXのフルパスを使用してください.
8962 \begin_inset Flex Code
8963 status collapsed
8964
8965 \begin_layout Plain Layout
8966 -g
8967 \end_layout
8968
8969 \end_inset
8970
8971
8972 \emph on
8973 lyxsocket
8974 \emph default
8975 経由の通信を有効にします.ここでも,
8976 \emph on
8977 lyxpipe
8978 \emph default
8979 を使用したい場合には,
8980 \begin_inset Flex Code
8981 status collapsed
8982
8983 \begin_layout Plain Layout
8984 -g
8985 \end_layout
8986
8987 \end_inset
8988
8989 オプションを削除して,\SpecialChar LyX
8990 設定で\SpecialChar LyX
8991 Serverパイプパスを指定することを忘れないでください.
8992 \end_layout
8993
8994 \begin_layout Standard
8995 遡及検索はダブルクリックで始動します.
8996 \end_layout
8997
8998 \begin_layout Section
8999 順検索
9000 \end_layout
9001
9002 \begin_layout Standard
9003 順検索とは,名前が示すとおり,いわば遡及検索の「逆」を意味します.すなわち,\SpecialChar LyX
9004 内部から,ビューアに特定の箇所を表示させることを可能にします.(以下に説明するように
9005 )もし順検索の準備ができていれば,カーソルを\SpecialChar LyX
9006 文書の好きなところに置いて,
9007 \begin_inset Flex MenuItem
9008 status collapsed
9009
9010 \begin_layout Plain Layout
9011 移動\SpecialChar menuseparator
9012 順検索
9013 \end_layout
9014
9015 \end_inset
9016
9017 を選択すると(あるいはマウスの右クリックで表示される文脈依存メニューから
9018 \begin_inset Flex MenuItem
9019 status collapsed
9020
9021 \begin_layout Plain Layout
9022 順検索
9023 \end_layout
9024
9025 \end_inset
9026
9027 を選択してもよい),ビューアも同じ箇所に移動します.もちろん,使用しているビューアが,この機能をサポートしていなくてはなりません.
9028 \end_layout
9029
9030 \begin_layout Standard
9031 順検索を有効にするためには,生成されたPDF/DVI出力ファイルに,\SpecialChar TeX
9032 ソースに関する情報を追加する必要があります.これは,第
9033 \begin_inset CommandInset ref
9034 LatexCommand ref
9035 reference "subsec:遡及検索"
9036
9037 \end_inset
9038
9039 節に述べられている方法で実行することができます.
9040 \end_layout
9041
9042 \begin_layout Standard
9043 次に,
9044 \begin_inset Flex MenuItem
9045 status collapsed
9046
9047 \begin_layout Plain Layout
9048 ツール\SpecialChar menuseparator
9049 設定\SpecialChar menuseparator
9050 出力\SpecialChar menuseparator
9051 一般
9052 \end_layout
9053
9054 \end_inset
9055
9056 で自分の使うビューアを利用するように,\SpecialChar LyX
9057 を設定する必要があります.いくつかのビューアについては,試験済みの設定が前もって準備されており,ドロップダウンリストから選
9058 択することができます.これらの設定の何れも意にそぐわない場合には,ご自身で適切な設定を見つけ出して入力しなくてはなりません.定義文法は,以下の変数を使用します.
9059 \end_layout
9060
9061 \begin_layout Itemize
9062 \begin_inset Flex Code
9063 status collapsed
9064
9065 \begin_layout Plain Layout
9066 $$n
9067 \end_layout
9068
9069 \end_inset
9070
9071 :行番号
9072 \end_layout
9073
9074 \begin_layout Itemize
9075 \begin_inset Flex Code
9076 status collapsed
9077
9078 \begin_layout Plain Layout
9079 $$t
9080 \end_layout
9081
9082 \end_inset
9083
9084 :書き出された(一時).texファイル名(パスを除く)
9085 \end_layout
9086
9087 \begin_layout Itemize
9088 \begin_inset Flex Code
9089 status collapsed
9090
9091 \begin_layout Plain Layout
9092 $$f
9093 \end_layout
9094
9095 \end_inset
9096
9097 :書き出された(一時).texファイル名(パスを含む)
9098 \end_layout
9099
9100 \begin_layout Itemize
9101 \begin_inset Flex Code
9102 status collapsed
9103
9104 \begin_layout Plain Layout
9105 $$o
9106 \end_layout
9107
9108 \end_inset
9109
9110 :書き出された出力ファイル名(どちらが一時ディレクトリに存在するかに依存して,dviあるいはpdf).
9111 \end_layout
9112
9113 \begin_layout Standard
9114 \begin_inset Note Note
9115 status open
9116
9117 \begin_layout Plain Layout
9118
9119 \lang english
9120 [Revision 2017-07-25]
9121 \end_layout
9122
9123 \begin_layout Plain Layout
9124
9125 \lang english
9126 Note that only some of the viewers provide full and usable forward search
9127  functionality out of the box, among them yap, xdvi, okular
9128 \begin_inset Foot
9129 status collapsed
9130
9131 \begin_layout Plain Layout
9132
9133 \lang english
9134 You might want to set 
9135 \begin_inset Flex Code
9136 status collapsed
9137
9138 \begin_layout Plain Layout
9139
9140 \lang english
9141 okular –unique
9142 \end_layout
9143
9144 \end_inset
9145
9146  in 
9147 \begin_inset Flex Noun
9148 status collapsed
9149
9150 \begin_layout Plain Layout
9151
9152 \lang english
9153 Tools\SpecialChar menuseparator
9154 Preferences\SpecialChar menuseparator
9155 File Handling\SpecialChar menuseparator
9156 File
9157 \begin_inset space ~
9158 \end_inset
9159
9160 Formats
9161 \end_layout
9162
9163 \end_inset
9164
9165
9166 \end_layout
9167
9168 \end_inset
9169
9170 , qpdfview, and SumatraPDF
9171 \begin_inset Foot
9172 status collapsed
9173
9174 \begin_layout Plain Layout
9175
9176 \lang english
9177 SumatraPDF can also use DDE commands through the external program CMCDDE
9178  — downloadable from 
9179 \begin_inset CommandInset href
9180 LatexCommand href
9181 target "http://www.istri.fr/spip/zip/CMCDDE.zip"
9182 literal "false"
9183
9184 \end_inset
9185
9186
9187 \end_layout
9188
9189 \end_inset
9190
9191 .
9192  Others, such as evince
9193 \begin_inset Foot
9194 status collapsed
9195
9196 \begin_layout Plain Layout
9197 \paragraph_spacing single
9198
9199 \lang english
9200 Forward search with evince can be achieved by means of third party helper
9201  scripts.
9202  Please refer to 
9203 \begin_inset CommandInset href
9204 LatexCommand href
9205 target "http://wiki.lyx.org/LyX/SyncTeX"
9206 literal "false"
9207
9208 \end_inset
9209
9210  for details.
9211 \end_layout
9212
9213 \end_inset
9214
9215 , require some extra tools in order to use forward search.
9216  While many of the widespread PDF viewers (most notably Adobe Reader) do
9217  not support forward search at all, some other viewers – e.
9218 \begin_inset space \thinspace{}
9219 \end_inset
9220
9221 g.
9222  xpdf – allow at least to reload the document and jump to a specific page
9223  of the file, so you can at least navigate 
9224 \begin_inset Quotes eld
9225 \end_inset
9226
9227 near
9228 \begin_inset Quotes erd
9229 \end_inset
9230
9231 .
9232  This latter functionality is provided by an external call of synctex (see
9233  the predefined example configurations).
9234 \end_layout
9235
9236 \end_inset
9237
9238 yap・xdvi・okular
9239 \begin_inset Foot
9240 status collapsed
9241
9242 \begin_layout Plain Layout
9243 \begin_inset Flex MenuItem
9244 status collapsed
9245
9246 \begin_layout Plain Layout
9247 ツール\SpecialChar menuseparator
9248 設定\SpecialChar menuseparator
9249 ファイル処理\SpecialChar menuseparator
9250 ファイル形式
9251 \end_layout
9252
9253 \end_inset
9254
9255
9256 \begin_inset Flex Code
9257 status collapsed
9258
9259 \begin_layout Plain Layout
9260 okular –unique
9261 \end_layout
9262
9263 \end_inset
9264
9265 と設定すると良いかもしれません.
9266 \end_layout
9267
9268 \end_inset
9269
9270 ・qpdfview・Sumatra PDFなど,一部のビューアでしか,完全な順検索機能は提供されていないことに注意してください
9271 \begin_inset Foot
9272 status collapsed
9273
9274 \begin_layout Plain Layout
9275 SumatraPDFも,外部プログラムCMCDDEを通じて,DDEコマンドを使用することができます.CMCDDEは,
9276 \begin_inset CommandInset href
9277 LatexCommand href
9278 target "http://www.istri.fr/spip/zip/CMCDDE.zip"
9279 literal "false"
9280
9281 \end_inset
9282
9283 からダウンロードすることができます.
9284 \end_layout
9285
9286 \end_inset
9287
9288 .広く使われているPDFビューアの多く(特にAdobe Reader)は,順検索を全く提供していませんが,他の一部のビューア(たとえばEvinceやxpdf)で
9289 は,少なくとも,文書を読み込み直したり,ファイルの特定ページに移動することはできますので,少なくとも「近く」には移動することができます.この後者の機能は,syn
9290 ctexの外部コールで提供されています(事前に用意されている用例をご覧ください).
9291 \end_layout
9292
9293 \begin_layout Standard
9294 順検索は,DVI出力とPDF出力の双方で動作します.\SpecialChar LyX
9295 は,過去にあなたが使用したプレビュー形式をチェックして(つまり,一時ディレクトリにどちらの形式が存在するかを
9296 チェックして),その形式に適切な設定を選択します.
9297 \end_layout
9298
9299 \begin_layout Chapter
9300 特別な文書クラス
9301 \end_layout
9302
9303 \begin_layout Section
9304 A&Aの論文
9305 \end_layout
9306
9307 \begin_layout Standard
9308
9309 \noun on
9310 Peter Sütterlin文
9311 \end_layout
9312
9313 \begin_layout Subsection
9314 はじめに
9315 \end_layout
9316
9317 \begin_layout Standard
9318 この節では,文書クラス
9319 \family typewriter
9320 aa.cls
9321 \family default
9322 第5.01版を使用して科学雑誌
9323 \emph on
9324 Astronomy and Astrophysics
9325 \emph default
9326 (『天文学と宇宙物理学』: 
9327 \begin_inset Flex URL
9328 status collapsed
9329
9330 \begin_layout Plain Layout
9331
9332 http://www.edpsciences.fr/aa/
9333 \end_layout
9334
9335 \end_inset
9336
9337 )に投稿する論文を執筆するための\SpecialChar LyX
9338 の使用法を説明します.このパッケージは,FTPサイト
9339 \end_layout
9340
9341 \begin_layout Standard
9342 \align center
9343 \begin_inset VSpace medskip
9344 \end_inset
9345
9346
9347 \begin_inset Flex URL
9348 status collapsed
9349
9350 \begin_layout Plain Layout
9351
9352 ftp://ftp.edpsciences.org/pub/aa/readme.html
9353 \end_layout
9354
9355 \end_inset
9356
9357
9358 \begin_inset VSpace medskip
9359 \end_inset
9360
9361
9362 \end_layout
9363
9364 \begin_layout Standard
9365 \noindent
9366 からダウンロードすることができます.
9367 \end_layout
9368
9369 \begin_layout Standard
9370 このパッケージには取扱説明書がついていますが,本節は,本来の取扱説明書の代わりとなることを意図したものではなく,あなたの論文を正しい様式に整えるための小さな案内
9371 書であるに過ぎません.
9372 \end_layout
9373
9374 \begin_layout Standard
9375 この学術誌の出版元は,2001年1月1日以降,Springer社からEDP Science社に変更されていることにご注意ください.この出版社の変更によって,th
9376 esaurusコマンドの廃止など,スタイルファイルに若干の変更が加わっています.\SpecialChar LyX
9377 のaaクラスは,スタイルファイルの最新版(第5.01版)をサポートしています.もし
9378 古い版が装備されている場合には,更新してください.互換性のために,古い(第4版)レイアウトは,
9379 \family sans
9380 article (A&A V4)
9381 \family default
9382 として残してあります.
9383 \family typewriter
9384 $\SpecialChar LyX
9385 Dir/layouts/aapaper.layout
9386 \family default
9387 のコメントをご参照ください.
9388 \end_layout
9389
9390 \begin_layout Subsection
9391 最初の一歩
9392 \end_layout
9393
9394 \begin_layout Standard
9395 \SpecialChar LyX
9396 とともに頒布されている例示用のひな型を土台として,書き始めることをお勧めします.ひな型を使用しない場合には,以下の設定にしてください.
9397 \end_layout
9398
9399 \begin_layout Itemize
9400
9401 \family sans
9402 文書\SpecialChar menuseparator
9403 設定
9404 \family default
9405 ダイアログで
9406 \family sans
9407 article (A&A)
9408 \family default
9409 を選択してください(まぁ,これは自明ですね).
9410 \end_layout
9411
9412 \begin_layout Itemize
9413
9414 \family sans
9415 ページレイアウト
9416 \family default
9417 オプションは変更しないで,既定値のままに設定しておいてください.全体のレイアウトはマクロが行うので,何も変更してはいけません.
9418 \end_layout
9419
9420 \begin_layout Subsection
9421 へッダ部
9422 \end_layout
9423
9424 \begin_layout Standard
9425 最初に入力すべきものは,へッダ情報です.ヘッダ情報には,以下の7つの項目があり,いくつかは必須ではありません.
9426 \end_layout
9427
9428 \begin_layout Itemize
9429
9430 \family sans
9431 タイトル
9432 \family default
9433 :[必須]
9434 \end_layout
9435
9436 \begin_layout Itemize
9437
9438 \family sans
9439 サブタイトル
9440 \family default
9441 :[非必須]
9442 \end_layout
9443
9444 \begin_layout Itemize
9445
9446 \family sans
9447 著者
9448 \family default
9449 :[必須]
9450 \end_layout
9451
9452 \begin_layout Itemize
9453
9454 \family sans
9455 住所
9456 \family default
9457 :[必須]
9458 \end_layout
9459
9460 \begin_layout Itemize
9461
9462 \family sans
9463 抜き刷り
9464 \family default
9465 :[非必須]著者が複数いる場合,抜き刷りの送付を依頼するのに連絡すべき人を記す.
9466 \end_layout
9467
9468 \begin_layout Itemize
9469
9470 \family sans
9471 メール
9472 \family default
9473 :[非必須]連絡用の電子メールアドレス.
9474 \end_layout
9475
9476 \begin_layout Itemize
9477
9478 \family sans
9479 日付
9480 \family default
9481 :[必須]推奨されるフォーマットは,
9482 \family typewriter
9483 Received: <日付>; Accepted <日付>
9484 \family default
9485 です.
9486 \end_layout
9487
9488 \begin_layout Standard
9489
9490 \family typewriter
9491
9492 \backslash
9493 maketitle
9494 \family default
9495 コマンドは,へッダが終了した場所に,\SpecialChar LyX
9496 が自動的に入れてくれるので,手動で挿入する必要はありません.各項目の順序は関係ありませんが,見た目のためと,実際の文書のレイ
9497 アウトに合わせるために,上記の順序を維持しておくと良いでしょう.
9498 \end_layout
9499
9500 \begin_layout Standard
9501
9502 \lang english
9503 Under 
9504 \family sans
9505 Edit\SpecialChar menuseparator
9506 Text Style
9507 \family default
9508 , you'll find two insets which are relevant for the titling:
9509 \end_layout
9510
9511 \begin_layout Itemize
9512
9513 \family sans
9514 \lang english
9515 Institute
9516 \family typewriter
9517  
9518 \family default
9519 to mark corresponding author\SpecialChar breakableslash
9520 institute pairs.
9521  The institutes are numbered sequentially as they appear in the 
9522 \family sans
9523 Address
9524 \family default
9525  field, so you have to put a marker to each author.
9526 \end_layout
9527
9528 \begin_layout Itemize
9529
9530 \family sans
9531 \lang english
9532 Email
9533 \family default
9534  to supply an email address for fast contact.
9535 \end_layout
9536
9537 \begin_layout Standard
9538 現住所の付記などのために,へッダ部に脚注を挿入したい場合には,
9539 \family sans
9540 挿入\SpecialChar menuseparator
9541 脚注
9542 \family default
9543 を使用して標準の脚注を挿入してください.この場合には,\SpecialChar LyX
9544 は自動的に
9545 \family typewriter
9546
9547 \backslash
9548 thanks{}
9549 \family default
9550 を使用します.
9551 \end_layout
9552
9553 \begin_layout Standard
9554
9555 \lang english
9556 In addition to these topics, the macros use one additional \SpecialChar LaTeX
9557  command that
9558  has no counterpart in \SpecialChar LyX
9559 :
9560 \end_layout
9561
9562 \begin_layout Itemize
9563 複数の著者名あるいは所属名を区切るための
9564 \family typewriter
9565
9566 \backslash
9567 and
9568 \end_layout
9569
9570 \begin_layout Standard
9571 いずれの場合にも,\SpecialChar LyX
9572 中に対応したコマンドを入力し,\SpecialChar LaTeX
9573 コードとしてマークしてください.
9574 \begin_inset Flex Code
9575 status collapsed
9576
9577 \begin_layout Plain Layout
9578 $\SpecialChar LyX
9579 Dir/examples
9580 \end_layout
9581
9582 \end_inset
9583
9584 にある用例を参照してください.
9585 \end_layout
9586
9587 \begin_layout Subsection
9588 概要
9589 \end_layout
9590
9591 \begin_layout Standard
9592 概要は,へッダ部の直後に置きます.第5版から,概要は環境からコマンドに変更され,一段落に限るという制限が加えられました.さらに,ここにはキーワードを含む項目を入
9593 れなくてはなりません.
9594 \lang english
9595 This is done via the paragraph style 
9596 \family sans
9597 Keywords
9598 \family default
9599 .
9600 \lang japanese
9601 用例にある論文を参照してください.
9602 \end_layout
9603
9604 \begin_layout Subsection
9605 サポートされる環境
9606 \end_layout
9607
9608 \begin_layout Standard
9609 A&A論文用レイアウトでは,文章を構造化するために,以下の環境がサポートされています.
9610 \end_layout
9611
9612 \begin_layout Itemize
9613
9614 \family sans
9615 標準
9616 \end_layout
9617
9618 \begin_layout Itemize
9619
9620 \family sans
9621
9622 \end_layout
9623
9624 \begin_layout Itemize
9625
9626 \family sans
9627 小節
9628 \end_layout
9629
9630 \begin_layout Itemize
9631
9632 \family sans
9633 小々節
9634 \end_layout
9635
9636 \begin_layout Itemize
9637
9638 \family sans
9639 箇条書き(記号)
9640 \end_layout
9641
9642 \begin_layout Itemize
9643
9644 \family sans
9645 箇条書き(連番)
9646 \end_layout
9647
9648 \begin_layout Itemize
9649
9650 \family sans
9651 箇条書き(記述)
9652 \end_layout
9653
9654 \begin_layout Itemize
9655
9656 \family sans
9657 キャプション
9658 \end_layout
9659
9660 \begin_layout Itemize
9661
9662 \family sans
9663 概要
9664 \end_layout
9665
9666 \begin_layout Itemize
9667
9668 \family sans
9669 謝辞(Acknowledgment)
9670 \end_layout
9671
9672 \begin_layout Itemize
9673
9674 \family sans
9675 書誌情報
9676 \end_layout
9677
9678 \begin_layout Itemize
9679
9680 \family sans
9681 \SpecialChar LaTeX
9682
9683 \end_layout
9684
9685 \begin_layout Subsection
9686 \SpecialChar LyX
9687 でサポートされていないコマンド
9688 \end_layout
9689
9690 \begin_layout Standard
9691 \SpecialChar LyX
9692
9693 \family sans
9694 article (A&A)
9695 \family default
9696 レイアウトでは,まだサポートされていないコマンドがあります.そのうちいくつかは既に紹介しましたが,網羅するために,以下にすべて列挙しておきます.
9697 \end_layout
9698
9699 \begin_layout Itemize
9700
9701 \family typewriter
9702
9703 \backslash
9704 and
9705 \end_layout
9706
9707 \begin_layout Itemize
9708
9709 \family typewriter
9710
9711 \backslash
9712 authorrunning
9713 \end_layout
9714
9715 \begin_layout Itemize
9716
9717 \family typewriter
9718
9719 \backslash
9720 object{}
9721 \end_layout
9722
9723 \begin_layout Itemize
9724
9725 \family typewriter
9726
9727 \backslash
9728 titlerunning{}
9729 \end_layout
9730
9731 \begin_layout Standard
9732 これらのコマンドのいずれかを使いたい場合には,自分で入力する必要があります.
9733 \series bold
9734 これを\SpecialChar LaTeX
9735 コマンドとしてマークすることを忘れないで下さい.
9736 \end_layout
9737
9738 \begin_layout Subsection
9739 図フロートおよび表フロート
9740 \end_layout
9741
9742 \begin_layout Standard
9743 \SpecialChar LyX
9744 は,必要なフロート環境
9745 \family sans
9746 figure
9747 \family default
9748
9749 \family sans
9750 figure*
9751 \family default
9752
9753 \family sans
9754 table
9755 \family default
9756
9757 \family sans
9758 table*
9759 \family default
9760 をサポートしていますので,ここでは詳しい説明はしません.
9761 \emph on
9762 ユーザーの手引き
9763 \emph default
9764 をご覧ください.ただ,表は左揃えにしなくてはならないことに注意して下さい.そうするためには,表を選択して,
9765 \family sans
9766 編集\SpecialChar menuseparator
9767 段落設定
9768 \family default
9769 で配置を変更してください.
9770 \end_layout
9771
9772 \begin_layout Standard
9773 一つだけ,特別なものがあります.それは,図横にキャプションを配置する図です.この図を作成するには,以下のようにしなくてはなりません.
9774 \end_layout
9775
9776 \begin_layout Enumerate
9777
9778 \family sans
9779 挿入\SpecialChar menuseparator
9780 フロート\SpecialChar menuseparator
9781
9782 \family default
9783 を使って,幅広の図フロートを作成します.それから,図フロートのラベルを右クリックして
9784 \begin_inset Flex MenuItem
9785 status collapsed
9786
9787 \begin_layout Plain Layout
9788 設定\SpecialChar ldots
9789
9790 \end_layout
9791
9792 \end_inset
9793
9794 を選択し,それで開かれる
9795 \family sans
9796 フロートの設定
9797 \family default
9798 ダイアログで
9799 \family sans
9800 段をまたぐ
9801 \family default
9802 を有効にして,
9803 \family sans
9804 OK
9805 \family default
9806 ボタンを押します.
9807 \end_layout
9808
9809 \begin_layout Enumerate
9810 キャプション文を入力します.
9811 \end_layout
9812
9813 \begin_layout Enumerate
9814 キャプションの前にカーソルを移動し,
9815 \family sans
9816 Return
9817 \family default
9818 を押して,カーソルをキャプションの上に移動します.
9819 \end_layout
9820
9821 \begin_layout Enumerate
9822 図を挿入します.
9823 \end_layout
9824
9825 \begin_layout Enumerate
9826 カーソルを図の後ろに置いて,
9827 \family sans
9828 挿入\SpecialChar menuseparator
9829 整形\SpecialChar menuseparator
9830 水平方向の空白
9831 \family default
9832 を選択して
9833 \family sans
9834 水平方向の空白の設定
9835 \family default
9836 ダイアログを開き,
9837 \family sans
9838 空白
9839 \family default
9840 ドロップダウンから
9841 \family sans
9842 水平フィル
9843 \family default
9844 を選択して,水平フィルを挿入します.
9845 \end_layout
9846
9847 \begin_layout Enumerate
9848
9849 \family sans
9850 挿入\SpecialChar menuseparator
9851 TeXコード
9852 \family default
9853 を選択して,\SpecialChar TeX
9854 差込枠を挿入します.
9855 \end_layout
9856
9857 \begin_layout Enumerate
9858 \SpecialChar TeX
9859 差込枠中に
9860 \family typewriter
9861
9862 \backslash
9863 parbox[b]{55mm}{
9864 \family default
9865 と入力します.
9866 \series bold
9867 ここでは波括弧を閉じないでください.
9868 \end_layout
9869
9870 \begin_layout Enumerate
9871 カーソルをキャプション文の後ろに移動し,
9872 \family sans
9873 挿入\SpecialChar menuseparator
9874 TeXコード
9875 \family default
9876 を選択して,別の\SpecialChar TeX
9877 差込枠を挿入し,その中に閉じ括弧を入力します .
9878 \end_layout
9879
9880 \begin_layout Standard
9881 例示用論文中の図もご参照ください.
9882 \end_layout
9883
9884 \begin_layout Subsection
9885 Refereeレイアウト
9886 \end_layout
9887
9888 \begin_layout Standard
9889 投稿用には,論文を特別なダブルスペースレイアウトに整形しなくてはなりません.このためには,文書クラスに
9890 \family typewriter
9891 referee
9892 \family default
9893 オプションを与える必要があります.これは,
9894 \family sans
9895 文書\SpecialChar menuseparator
9896 設定
9897 \family default
9898 ダイアログの
9899 \family sans
9900 任意設定
9901 \family default
9902 \lang english
9903 custom class options
9904 \lang japanese
9905 クラスオプションフィールドを使って行うことができます.この欄に
9906 \family typewriter
9907 referee
9908 \family default
9909 と云う文字列を入力してください.
9910 \end_layout
9911
9912 \begin_layout Subsection
9913 例示用論文
9914 \end_layout
9915
9916 \begin_layout Standard
9917
9918 \family sans
9919 Examples
9920 \family default
9921 ディレクトリには,\SpecialChar LyX
9922 で書かれた例示用論文が収録されています.これは,元のマクロパッケージの例示用論文を\SpecialChar LyX
9923 用に直したものです.これはヒントを得るために使用したり,元の
9924  \SpecialChar LaTeX
9925 コードと\SpecialChar LyX
9926 での書き方の比較に使ったりしてください.
9927 \end_layout
9928
9929 \begin_layout Section
9930 AAS\SpecialChar TeX
9931
9932 \end_layout
9933
9934 \begin_layout Standard
9935
9936 \noun on
9937 Mike Ressler
9938 \noun default
9939
9940 \end_layout
9941
9942 \begin_layout Subsection
9943 はじめに
9944 \end_layout
9945
9946 \begin_layout Standard
9947 AAS\SpecialChar TeX
9948 は,American Astronomical Society(アメリカ天文学会)が発行するAstrophysical Journal(宇宙物理学雑誌)同
9949 誌のLettersとSupplementを含む)・Astronomical Journal(天文学雑誌)・Publications of the
9950  Astronomical Society of the Pacific(太平洋天文学会誌)三誌への電子投稿を可能にするために,同学会が作成したマクロ集です.\SpecialChar LyX
9951
9952 ,これらの文書を生成する上で,なかでも数式・引用・画像処理能力において,優れたツールであることが認識されています.
9953 \lang english
9954 \SpecialChar LyX
9955  requires version 5.0 (or higher) of these macros; preferably 6.0, which is
9956  the version described here, or higher.
9957  
9958 \lang japanese
9959 \SpecialChar LyX
9960 は,同マクロ第5.0版以降を必要としており,できればここで説明されている第5.2版以降が望まれます.第5.0版未満の版は,\SpecialChar LaTeX
9961 2.09で使用するよう企図されているため,根本
9962 的に\SpecialChar LyX
9963 とは互換性がありません.AAS\SpecialChar TeX
9964 パッケージは,以下のAAS\SpecialChar TeX
9965 ウェブサイトからダウンロードできるでしょう.
9966 \end_layout
9967
9968 \begin_layout Standard
9969 \align center
9970 \begin_inset VSpace medskip
9971 \end_inset
9972
9973
9974 \begin_inset Flex URL
9975 status collapsed
9976
9977 \begin_layout Plain Layout
9978
9979 https://aas.org/aastex/aastex-downloads
9980 \end_layout
9981
9982 \end_inset
9983
9984
9985 \begin_inset VSpace medskip
9986 \end_inset
9987
9988
9989 \end_layout
9990
9991 \begin_layout Standard
9992 パッケージ中には,完備したユーザーの手引きが収録されていますので,\SpecialChar LyX
9993 で論文を書き始める前に,その中身を完全に理解しておく必要があります.\SpecialChar LyX
9994 は,AASTeXの全コマン
9995 ドを理解する必然性をなくすものではなく,すべてを手入力する苦労を減らすだけです.仕上がりの\SpecialChar LaTeX
9996 文書が,論文を投稿しようとしているジャーナルの要求事項に完全に合致して
9997 いることを確認するのは,あなたの責任です.
9998 \end_layout
9999
10000 \begin_layout Subsection
10001 新しい論文を書き始める
10002 \end_layout
10003
10004 \begin_layout Standard
10005 論文を書き始めるには,AAS\SpecialChar TeX
10006 ひな型ファイルを土台に始めることを強くお勧めします.
10007 \begin_inset Flex MenuItem
10008 status collapsed
10009
10010 \begin_layout Plain Layout
10011 ファイル\SpecialChar menuseparator
10012 新規(ひな型使用)
10013 \end_layout
10014
10015 \end_inset
10016
10017 をクリックして,新しいファイル名を入力し,ひな型
10018 \family typewriter
10019 aastex.lyx
10020 \family default
10021 を選んでください.これには,論文原稿のほとんどに共通して使われるフィールドが書き込まれています.書き込まれている文字列(括弧
10022 \family typewriter
10023 <>
10024 \family default
10025 を含む)を正しい情報で上書きしてください.AAS\SpecialChar TeX
10026 コマンド・AAS\SpecialChar TeX
10027 環境の多くは,\SpecialChar LyX
10028 中で直接実行することができますがこの二つのコマンドは,ひな型ファイルを開いたとき,
10029 赤色に表示されているのですぐ目に入ることでしょう.このようなコマンドは,直接La\SpecialChar TeX
10030 コードを入力して,それを\SpecialChar TeX
10031 コードとしてマークしなければなりません.このようなコマン
10032 ドは,\SpecialChar TeX
10033 コードあるいはEvil Red Text(邪悪な赤い文)と呼ばれます.AAS\SpecialChar TeX
10034 文書に必要とされる \SpecialChar TeX
10035 コードを最小にするよう努力はしていますが
10036 \end_layout
10037
10038 \begin_layout Subsection
10039 論文を書き終わったら
10040 \end_layout
10041
10042 \begin_layout Standard
10043 論文を満足する水準で書き終え,プレビューや印刷が正しく為されているとしても,まだ学術誌に投稿する前にしなくてはならない「後処理」が残されています.
10044 \end_layout
10045
10046 \begin_layout Enumerate
10047 論文を \SpecialChar LaTeX
10048 ファイルとして書き出します(
10049 \family sans
10050 ファイル\SpecialChar menuseparator
10051 書き出し\SpecialChar menuseparator
10052 LateX
10053 \family default
10054 ).
10055 \end_layout
10056
10057 \begin_layout Enumerate
10058 出力した
10059 \family typewriter
10060 .tex
10061 \family default
10062 ファイルを好きなエディタで編集します.
10063 \end_layout
10064
10065 \begin_deeper
10066 \begin_layout Enumerate
10067
10068 \family typewriter
10069
10070 \backslash
10071 documentclass
10072 \family default
10073 コマンドよりも前のコメント行を削除します.
10074 \end_layout
10075
10076 \begin_layout Enumerate
10077
10078 \family typewriter
10079
10080 \backslash
10081 usepackage...{fontenc}
10082 \family default
10083 という行があれば(通常は
10084 \family typewriter
10085
10086 \backslash
10087 documentclass
10088 \family default
10089 の直後にあります)削除します.また,
10090 \family typewriter
10091
10092 \backslash
10093 secnumdepth
10094 \family default
10095 行があれば,これも削除します.
10096 \end_layout
10097
10098 \begin_layout Enumerate
10099 \SpecialChar LaTeX
10100 プリアンブル中に意図的に置いたコマンド(
10101 \family typewriter
10102 .tex
10103 \family default
10104 ファイル中,「User specified \SpecialChar LaTeX
10105  commands」というコメントの直後にあります)を除いて,
10106 \family typewriter
10107
10108 \backslash
10109 makeatletter
10110 \family default
10111
10112 \family typewriter
10113
10114 \backslash
10115 makeatother
10116 \family default
10117 の間のもの(これらのコマンドを含む)をすべて削除します.
10118 \end_layout
10119
10120 \end_deeper
10121 \begin_layout Enumerate
10122 編集後のファイルを \SpecialChar LaTeX
10123 にかけて,正しく処理されることを確認します.
10124 \end_layout
10125
10126 \begin_layout Enumerate
10127 学術誌の要求事項を再読して,ファイル名と書式が正しいことを確認します.
10128 \end_layout
10129
10130 \begin_layout Enumerate
10131 投稿してください.
10132 \end_layout
10133
10134 \begin_layout Subsection
10135 特定のコマンドに関するコメント
10136 \end_layout
10137
10138 \begin_layout Standard
10139 AAS\SpecialChar TeX
10140 ユーザーの手引き(
10141 \family typewriter
10142 aasguide.tex
10143 \family default
10144 )に,各AAS\SpecialChar TeX
10145 コマンドの詳しい説明があるので,ここでは,各コマンドの使用法の詳細な説明は行いません.そこで,ここではユーザーの手引きに現れるとおりに一覧を列挙し
10146 て,必要なところだけコメントを加えることにしましょう.
10147 \end_layout
10148
10149 \begin_layout Subsubsection
10150 期待通りに動作するもの
10151 \end_layout
10152
10153 \begin_layout Standard
10154 これらは期待通りに動作するので,ここでは列挙するだけにして,コマンドの説明されている節を挙げておきます.
10155 \family typewriter
10156
10157 \backslash
10158 documentclass
10159 \family default
10160  (2.1.1)・
10161 \family typewriter
10162
10163 \backslash
10164 begin{document}
10165 \family default
10166  (2.2)・
10167 \family typewriter
10168
10169 \backslash
10170 title
10171 \family default
10172  (2.3)・
10173 \family typewriter
10174
10175 \backslash
10176 author
10177 \family default
10178  (2.3)・
10179 \family typewriter
10180
10181 \backslash
10182 affil
10183 \family default
10184  (2.3)・
10185 \family typewriter
10186
10187 \backslash
10188 abstract
10189 \family default
10190  (2.4)・
10191 \family typewriter
10192
10193 \backslash
10194 keywords
10195 \family default
10196  (2.5)・
10197 \family typewriter
10198
10199 \backslash
10200 section
10201 \family default
10202  (2.7)・
10203 \family typewriter
10204
10205 \backslash
10206 subsection
10207 \family default
10208  (2.7)・
10209 \family typewriter
10210
10211 \backslash
10212 subsubsection
10213 \family default
10214  (2.7)・
10215 \family typewriter
10216
10217 \backslash
10218 paragraph
10219 \family default
10220  (2.7)・
10221 \family typewriter
10222
10223 \backslash
10224 facility
10225 \family default
10226  (2.10)・
10227 \family typewriter
10228
10229 \backslash
10230 begin{displaymath}
10231 \family default
10232  (2.12)・
10233 \family typewriter
10234
10235 \backslash
10236 begin{equation}
10237 \family default
10238  (2.12)・
10239 \family typewriter
10240
10241 \backslash
10242 begin{eqnarray}
10243 \family default
10244  (2.12)・
10245 \family typewriter
10246
10247 \backslash
10248 begin{mathletters}
10249 \family default
10250  (2.12)・
10251 \family typewriter
10252
10253 \backslash
10254 begin{thebibliography}
10255 \family default
10256  (2.13.1)・
10257 \family typewriter
10258
10259 \backslash
10260 bibitem
10261 \family default
10262  (2.13.2)・全引用コマンドとその派生(2.13.2)・一般的なgraphicx図コマンド(2.14.1)・
10263 \family typewriter
10264
10265 \backslash
10266 begin{table}
10267 \family default
10268  (2.15.4)・
10269 \family typewriter
10270
10271 \backslash
10272 begin{tabular}
10273 \family default
10274  (2.15.4)・
10275 \family typewriter
10276
10277 \backslash
10278 caption
10279 \family default
10280  (2.15.4)・
10281 \family typewriter
10282
10283 \backslash
10284 label
10285 \family default
10286  (他にもあるが特に2.15.4)・
10287 \family typewriter
10288
10289 \backslash
10290 tablerefs
10291 \family default
10292  (2.15.5)・
10293 \family typewriter
10294
10295 \backslash
10296 tablecomments
10297 \family default
10298  (2.15.5)・
10299 \family typewriter
10300
10301 \backslash
10302 url
10303 \family default
10304  (2.17.4)・
10305 \family typewriter
10306
10307 \backslash
10308 end{document}
10309 \family default
10310  (2.18).
10311 \end_layout
10312
10313 \begin_layout Standard
10314 以下のスタイルオプションも正しく動作します.
10315 \family typewriter
10316 longabstract
10317 \family default
10318  (2.4)・
10319 \family typewriter
10320 preprint
10321 \family default
10322  (3.2.1)・
10323 \family typewriter
10324 preprint2
10325 \family default
10326  (3.2.2)・
10327 \family typewriter
10328 eqsecnum
10329 \family default
10330  (3.3)・
10331 \family typewriter
10332 flushrt
10333 \family default
10334  (3.4).これらは,
10335 \begin_inset Flex MenuItem
10336 status collapsed
10337
10338 \begin_layout Plain Layout
10339 文書\SpecialChar menuseparator
10340 設定
10341 \end_layout
10342
10343 \end_inset
10344
10345 にある,
10346 \family sans
10347 クラスオプション
10348 \family default
10349
10350 \family sans
10351 任意設定
10352 \family default
10353 ボックスに入力してください.
10354 \end_layout
10355
10356 \begin_layout Subsubsection
10357 動作するが,若干説明が必要なもの
10358 \end_layout
10359
10360 \begin_layout Standard
10361 以下のコマンドは動作しますが,若干の説明が必要です.
10362 \end_layout
10363
10364 \begin_layout Itemize
10365 以下の項目は,学術誌の編集者向けに取ってあるものですが,どうしても必要ならば,\SpecialChar LaTeX
10366 プリアンブルに入れることができます.
10367 \family typewriter
10368
10369 \backslash
10370 received
10371 \family default
10372
10373 \family typewriter
10374
10375 \backslash
10376 revised
10377 \family default
10378
10379 \family typewriter
10380
10381 \backslash
10382 accepted
10383 \family default
10384
10385 \family typewriter
10386
10387 \backslash
10388 ccc
10389 \family default
10390
10391 \family typewriter
10392 cpright
10393 \family default
10394 (すべて 2.1.3).
10395 \end_layout
10396
10397 \begin_layout Itemize
10398 以下の項目は,\SpecialChar LaTeX
10399 のプリアンブルに置くことができるもので,これらは,ひな型ファイルには,空の引数と共に含まれています.
10400 \family typewriter
10401
10402 \backslash
10403 slugcomment
10404 \family default
10405 (2.1.4)・
10406 \family typewriter
10407
10408 \backslash
10409 shorttitle
10410 \family default
10411 (2.1.5)・
10412 \family typewriter
10413
10414 \backslash
10415 shortauthors
10416 \family default
10417 (2.1.5).
10418 \end_layout
10419
10420 \begin_layout Itemize
10421
10422 \family typewriter
10423
10424 \backslash
10425 email
10426 \family default
10427 (2.3)―「単独で」使うことはできますが,段落の途中で使うことはできません.埋め込む必要がある場合には,\SpecialChar TeX
10428 コードを使用してください.
10429 \end_layout
10430
10431 \begin_layout Itemize
10432
10433 \family typewriter
10434
10435 \backslash
10436 and
10437 \family default
10438 (2.3)―後ろに{}が付記されます.これはエラーの原因にはなりません.
10439 \end_layout
10440
10441 \begin_layout Itemize
10442
10443 \family typewriter
10444
10445 \backslash
10446 notetoeditor
10447 \family default
10448 (2.6)―「単独で」使うことはできますが,段落の途中で使うことはできません.埋め込む必要がある場合には,\SpecialChar TeX
10449 コードを使用してください.
10450 \end_layout
10451
10452 \begin_layout Itemize
10453
10454 \family typewriter
10455
10456 \backslash
10457 placetable
10458 \family default
10459 (2.8)―相互参照用タグを挿入することはできません.手動でタグ名を入力する必要があります.
10460 \end_layout
10461
10462 \begin_layout Itemize
10463
10464 \family typewriter
10465
10466 \backslash
10467 placefigure
10468 \family default
10469 (2.8)—
10470 \family typewriter
10471
10472 \backslash
10473 placetable
10474 \family default
10475 と同様.
10476 \end_layout
10477
10478 \begin_layout Itemize
10479
10480 \family typewriter
10481
10482 \backslash
10483 acknowledgements
10484 \family default
10485 (2.9)―後ろに{}が付記されます.これはエラーの原因にはなりません.
10486 \end_layout
10487
10488 \begin_layout Itemize
10489
10490 \family typewriter
10491
10492 \backslash
10493 appendix
10494 \family default
10495 (2.11)―後ろに{}が付記されます.これはエラーの原因にはなりません.
10496 \end_layout
10497
10498 \begin_layout Itemize
10499
10500 \family typewriter
10501
10502 \backslash
10503 figcaption
10504 \family default
10505 (2.14.2)―文章のはじめにカーソルを置いて
10506 \begin_inset Flex MenuItem
10507 status collapsed
10508
10509 \begin_layout Plain Layout
10510 挿入\SpecialChar menuseparator
10511 短縮タイトル
10512 \end_layout
10513
10514 \end_inset
10515
10516 を選択すれば,非必須のファイル名引数を挿入することができます.「短縮タイトル」とありますが,
10517 \family typewriter
10518
10519 \backslash
10520 figcaption
10521 \family default
10522 が必要とする型の非必須引数を挿入します.望むらくはいつの日か改名されることでしょう.
10523 \end_layout
10524
10525 \begin_layout Itemize
10526
10527 \family typewriter
10528
10529 \backslash
10530 objectname
10531 \family default
10532 (2.17.1)―非必須パラメータとしてカタログIDを取る以外は,
10533 \family typewriter
10534
10535 \backslash
10536 figcaption
10537 \family default
10538 と同様.
10539 \end_layout
10540
10541 \begin_layout Itemize
10542
10543 \family typewriter
10544
10545 \backslash
10546 dataset
10547 \family default
10548 (2.17.1)―非必須パラメータとしてカタログIDを取る以外は,
10549 \family typewriter
10550
10551 \backslash
10552 figcaption
10553 \family default
10554 と同様.
10555 \end_layout
10556
10557 \begin_layout Subsubsection
10558 実装されていないため,\SpecialChar TeX
10559 コードを使用するもの
10560 \end_layout
10561
10562 \begin_layout Standard
10563
10564 \family typewriter
10565
10566 \backslash
10567 eqnum
10568 \family default
10569 (2.12)・
10570 \family typewriter
10571
10572 \backslash
10573 setcounter{equation}
10574 \family default
10575 (2.12)・学術誌名略語(2.12.4)・
10576 \family typewriter
10577
10578 \backslash
10579 figurenum
10580 \family default
10581 (2.14.1)・
10582 \family typewriter
10583
10584 \backslash
10585 epsscale
10586 \family default
10587 (2.14.1)・
10588 \family typewriter
10589
10590 \backslash
10591 plotone
10592 \family default
10593 (2.14.1)・
10594 \family typewriter
10595
10596 \backslash
10597 plottwo
10598 \family default
10599 (2.14.1)・
10600 \family typewriter
10601
10602 \backslash
10603 tablenum
10604 \family default
10605 (2.15.4)・
10606 \family typewriter
10607
10608 \backslash
10609 tableline
10610 \family default
10611 (2.15.4:入れたい場所の後ろに,左側セルの最初の要素として挿入する.表中では,\SpecialChar LyX
10612 の方法は使わないでください)・
10613 \family typewriter
10614
10615 \backslash
10616 tablenotemark
10617 \family default
10618 (2.15.5)・
10619 \family typewriter
10620
10621 \backslash
10622 tablenotetext
10623 \family default
10624 (2.15.5)・補遺(2.17)の大半(
10625 \family typewriter
10626
10627 \backslash
10628 objectname
10629 \family default
10630
10631 \family typewriter
10632
10633 \backslash
10634 dataset
10635 \family default
10636
10637 \family typewriter
10638
10639 \backslash
10640 url
10641 \family default
10642
10643 \family typewriter
10644
10645 \backslash
10646 email
10647 \family default
10648 を除く.上記参照)・
10649 \family typewriter
10650
10651 \backslash
10652 singlespace
10653 \family default
10654 (3.1)・
10655 \family typewriter
10656
10657 \backslash
10658 doublespace
10659 \family default
10660 (3.1)・
10661 \family typewriter
10662
10663 \backslash
10664 onecolumn
10665 \family default
10666 (3.2)・
10667 \family typewriter
10668
10669 \backslash
10670 twocolumn
10671 \family default
10672 (3.2)
10673 \end_layout
10674
10675 \begin_layout Subsubsection
10676 実装できないもの
10677 \end_layout
10678
10679 \begin_layout Standard
10680 references(2.12.3)環境とdeluxetable(2.14)環境は,少なくとも意味のあるような形で実装することができないので,無視してください.もし,
10681 絶対に,どうしても,deluxetableを使う必要があるならば,テキストエディタで別ファイルとして編集し,
10682 \begin_inset Flex MenuItem
10683 status collapsed
10684
10685 \begin_layout Plain Layout
10686 挿入\SpecialChar menuseparator
10687 ファイル
10688 \begin_inset Formula $\text{\textipa{}}$
10689 \end_inset
10690
10691 \SpecialChar menuseparator
10692 子文書
10693 \end_layout
10694
10695 \end_inset
10696
10697 を使用して,\SpecialChar LyX
10698 ファイルに読み込むことを推奨します.この実例は,
10699 \family typewriter
10700 aas_sample.lyx
10701 \family default
10702 ファイルをご参照ください.
10703 \end_layout
10704
10705 \begin_layout Subsection
10706 FAQとヒントと技とその他の考察
10707 \end_layout
10708
10709 \begin_layout Subsubsection
10710 \SpecialChar LyX
10711 をAAS\SpecialChar TeX
10712 と協調させる
10713 \end_layout
10714
10715 \begin_layout Standard
10716 \SpecialChar LyX
10717 に,新しいレイアウトと文書クラスを認識させるには若干コツが要ります.もしうまく行かなかったら,次のようにしてみてください.
10718 \end_layout
10719
10720 \begin_layout Enumerate
10721 \SpecialChar LaTeX
10722 が,AAS\SpecialChar TeX
10723 を検出できることを確認してください.AAS\SpecialChar TeX
10724 頒布版に含まれる
10725 \family typewriter
10726 sample.tex
10727 \family default
10728 (あるいは
10729 \family typewriter
10730 table.tex
10731 \family default
10732 でも可)を,\SpecialChar LaTeX
10733 やAAS\SpecialChar TeX
10734 とまったく関係のないディレクトリにコピーして,
10735 \family typewriter
10736 sample.tex
10737 \family default
10738 を\SpecialChar LaTeX
10739 にかけてください.
10740 \end_layout
10741
10742 \begin_layout Enumerate
10743
10744 \family typewriter
10745 aastex.layout
10746 \family default
10747 が,\SpecialChar LyX
10748
10749 \family typewriter
10750 layouts
10751 \family default
10752 フォルダにあることを確認してください.
10753 \end_layout
10754
10755 \begin_layout Enumerate
10756 \SpecialChar LyX
10757 中から
10758 \family sans
10759 ツール\SpecialChar menuseparator
10760 環境構成
10761 \family default
10762 を再度実行し,\SpecialChar LyX
10763 を再起動してください.
10764 \end_layout
10765
10766 \begin_layout Enumerate
10767 ひな型ではなく,通常の新規ファイルを開いてください.AAS\SpecialChar TeX
10768 が,
10769 \family sans
10770 文書\SpecialChar menuseparator
10771 設定
10772 \family default
10773 のクラス一覧に表示されていますか?
10774 \end_layout
10775
10776 \begin_layout Standard
10777 既存のAAS\SpecialChar TeX
10778 文書を処理する際に,AAS\SpecialChar TeX
10779 レイアウトを見つけられないとか,「タイトルレイアウトと通常のレイアウトを混在させないでください」といった警告が出るようであ
10780 れば,正しい導入が行われていません.
10781 \end_layout
10782
10783 \begin_layout Subsubsection
10784 表を処理する際の\SpecialChar LaTeX
10785 エラー
10786 \end_layout
10787
10788 \begin_layout Standard
10789 既定では,\SpecialChar LyX
10790 は,表のキャプションやタイトルを中央揃えにしようと試みます.これはAAS\SpecialChar TeX
10791 と悪い相互干渉を発生させるようですので,キャプションやタイトルのどこかをクリッ
10792 クして,
10793 \family sans
10794 編集\SpecialChar menuseparator
10795 段落設定
10796 \family default
10797 を選択し,
10798 \family sans
10799 配置
10800 \family default
10801
10802 \family sans
10803 両端揃え
10804 \family default
10805 に設定してください.私のところではこれで解決しました.
10806 \end_layout
10807
10808 \begin_layout Subsubsection
10809 書誌情報
10810 \end_layout
10811
10812 \begin_layout Standard
10813 若干の注意があります.(1)文献項目の本文中の空白取りが少しおかしくなることがあるようです.書誌情報を入力する際には,最後の著者と,著作年を入れる括弧の間にスペ
10814 ースを
10815 \emph on
10816 入れない
10817 \emph default
10818 ようにしてください.たとえば,
10819 \family typewriter
10820 Ressler(1992)
10821 \family default
10822 はいいですが,
10823 \family typewriter
10824 Ressler (1992)
10825 \family default
10826 ではだめです.(2)書誌情報の入力の仕方は,必ずしも自明ではありません.もっとも簡単な方法は,文書の最後に,最初の書誌情報をまず書き込み,それを
10827 \family sans
10828 書誌情報
10829 \family default
10830 環境としてマークすることです.すると,入力したものの前に,小さな灰色のボックスが現れます.このボックスをクリックして,残りの情報を入力してください.新しい書誌情
10831 報を追加するには,既存の書誌情報の後ろでリターンを押します.すると,新しいボックスの付いた新規行が出てくるので,後は同様にしてください.
10832 \end_layout
10833
10834 \begin_layout Subsubsection
10835 EPSファイルの読み込み
10836 \end_layout
10837
10838 \begin_layout Standard
10839 AAS\SpecialChar TeX
10840 には,自前の図関連コマンド(たとえば
10841 \family typewriter
10842
10843 \backslash
10844 plotone
10845 \family default
10846 )がありますが,私は(既定のgraphicxを使った)\SpecialChar LaTeX
10847 の標準図コマンドの方がずっと好きです.望めば,図フロートボックスに,\SpecialChar TeX
10848 コードで
10849 \family typewriter
10850
10851 \backslash
10852 plotone
10853 \family default
10854 等のコマンドを挿入することはできますが,私には正しいレイアウトを得ることができた試しがありません.標準の画像コマンドを使えば,\SpecialChar LyX
10855 は,
10856 \family typewriter
10857
10858 \backslash
10859 usepackage{graphics}
10860 \family default
10861 コマンドを\SpecialChar LaTeX
10862 プリアンブルに挿入し,図を\SpecialChar LaTeX2e
10863 の標準的な方法で取り扱って,文章の中にちりばめます.現在,ApJは,ちょうどこのようにして作成した図を受け入れていますが,A
10864 Jはまだ「すべてを末尾に積み上げる」方法を使用しているかもしれません.
10865 \end_layout
10866
10867 \begin_layout Subsubsection
10868 可能だったが,実装しなかったもの
10869 \end_layout
10870
10871 \begin_layout Standard
10872 「素敵な」ものの中には,実装することも可能だったけれども,あえて実装しなかったものがあります.たとえば,紙の原稿ではダブルスペースであったとしても,\SpecialChar LyX
10873 ウィンドウ中
10874 で,文章をダブルスペースにする意味はないと考えました.また,preprint様式とpreprint2様式を,独立したレイアウトにすることもしませんでした.いずれ
10875 にしても,執筆時間のほとんどを,平の原稿モードで使うのがほとんどですから,これらの機能でディスクスペースを消費しないことにしました.
10876 \end_layout
10877
10878 \begin_layout Subsection
10879 最後に
10880 \end_layout
10881
10882 \begin_layout Standard
10883 これまでに進んできた道のりは,長い人も短い人もいることでしょう.私には,ApJとAJに発表した論文がありますが,その努力の98
10884 \begin_inset space \thinspace{}
10885 \end_inset
10886
10887 %は\SpecialChar LyX
10888 上で為されました.残りの2
10889 \begin_inset space \thinspace{}
10890 \end_inset
10891
10892 %が,\SpecialChar LaTeX
10893 での後処理と若干の後片付けです.投稿の過程では何のトラブルもなく,これらの学術誌が通常の投稿原稿と違う点に気づくことはなかったでしょう.ですから,がんばっ
10894 て発表してください!
10895 \end_layout
10896
10897 \begin_layout Section
10898 AMS \SpecialChar LaTeX
10899
10900 \end_layout
10901
10902 \begin_layout Standard
10903
10904 \noun on
10905 David Johnson
10906 \noun default
10907 文 
10908 \noun on
10909 Richard Heck
10910 \noun default
10911 改訂
10912 \begin_inset VSpace bigskip
10913 \end_inset
10914
10915
10916 \end_layout
10917
10918 \begin_layout Standard
10919 AMS \SpecialChar LaTeX
10920 レイアウトは,American Mathematical Society(アメリカ数学会)の刊行物に投稿する数学論文用のスタイルです.レイアウトは,特定
10921 の学術誌向けに仕立てられてはいませんが,簡単にそうすることができます.各学術誌毎の指示については,AMSの説明書をご参照ください(通常は,\SpecialChar TeX
10922 出力中の一行を変更する
10923 必要があるだけです).AMSの説明書は,ウェブWeb上の
10924 \begin_inset Flex URL
10925 status open
10926
10927 \begin_layout Plain Layout
10928
10929 http://www.ams.org
10930 \end_layout
10931
10932 \end_inset
10933
10934 か,FTPで
10935 \begin_inset Flex URL
10936 status open
10937
10938 \begin_layout Plain Layout
10939
10940 ftp://ftp.ams.org/pub/tex/amslatex/
10941 \end_layout
10942
10943 \end_inset
10944
10945 から入手することができます.これらのレイアウトは,数学的な文章を書くのであれば,どんなときでも適切かつ有用であるはずです.
10946 \end_layout
10947
10948 \begin_layout Standard
10949 基本となるAMS \SpecialChar LaTeX
10950 レイアウトには,以下の二つがあります.
10951 \end_layout
10952
10953 \begin_layout Itemize
10954 amsart:標準のAMS article書式.
10955 \end_layout
10956
10957 \begin_layout Itemize
10958 amsbook:標準のAMS book(実際はモノグラフ)書式.
10959 \end_layout
10960
10961 \begin_layout Standard
10962 これらのレイアウトには,それ自身では,AMSクラスを使用するのに必要最低限のものしか含まれていません.特に,定理や補題などを設定するのに使用される「theore
10963 m」環境は,何一つ含まれていません.これらは,代わりに
10964 \begin_inset Flex Code
10965 status collapsed
10966
10967 \begin_layout Plain Layout
10968 定理(AMS)
10969 \end_layout
10970
10971 \end_inset
10972
10973 モジュールに収録されており,AMSクラスのいずれかを選択すると,このモジュールが既定で読み込まれるようになっています(これは別のクラスでも使用することができ,別
10974 のものに変えたいときは取り除くこともできます).少し使用頻度の低いものとしては,
10975 \begin_inset Flex Code
10976 status collapsed
10977
10978 \begin_layout Plain Layout
10979 定理(AMS拡張)
10980 \end_layout
10981
10982 \end_inset
10983
10984 モジュールがあり,これは手動で読み込む必要があります.
10985 \end_layout
10986
10987 \begin_layout Standard
10988 既定では,定理類は,文書を通して連番が振られますが,これは
10989 \begin_inset Flex Code
10990 status collapsed
10991
10992 \begin_layout Plain Layout
10993 定理(節毎連番)
10994 \end_layout
10995
10996 \end_inset
10997
10998 モジュールを読み込めば変更することができ,
10999 \begin_inset Flex Code
11000 status collapsed
11001
11002 \begin_layout Plain Layout
11003 book (AMS)
11004 \end_layout
11005
11006 \end_inset
11007
11008 を使用している場合には
11009 \begin_inset Flex Code
11010 status collapsed
11011
11012 \begin_layout Plain Layout
11013 定理(章毎連番)
11014 \end_layout
11015
11016 \end_inset
11017
11018 を用いても変更することができます.これらを用いると,出力は
11019 \begin_inset Formula $n.m$
11020 \end_inset
11021
11022 のようになり,最初の数字は節番号(または章番号),次の数字はそれまで同節内(章内)に現れた出力の全数を表します.大半の環境は,連番なしでも用いることができます.
11023 連番なしのものは,環境名の後ろにアスタリスクを付けたもので表されます.連番なしの出力
11024 \emph on
11025 のみ
11026 \emph default
11027 が欲しい場合には,
11028 \begin_inset Flex Code
11029 status collapsed
11030
11031 \begin_layout Plain Layout
11032 定理(連番なし)
11033 \end_layout
11034
11035 \end_inset
11036
11037 モジュールを用います.
11038 \end_layout
11039
11040 \begin_layout Standard
11041 これらのモジュールは,AMSクラスで使用する
11042 \emph on
11043 必要はない
11044 \emph default
11045 ことに注意してください.
11046 \begin_inset Flex Code
11047 status collapsed
11048
11049 \begin_layout Plain Layout
11050 定理(AMS)
11051 \end_layout
11052
11053 \end_inset
11054
11055 モジュールや上述の他のモジュールは,他のクラス,たとえば
11056 \begin_inset Flex Code
11057 status collapsed
11058
11059 \begin_layout Plain Layout
11060 article
11061 \end_layout
11062
11063 \end_inset
11064
11065
11066 \begin_inset Flex Code
11067 status collapsed
11068
11069 \begin_layout Plain Layout
11070 report
11071 \end_layout
11072
11073 \end_inset
11074
11075
11076 \begin_inset Flex Code
11077 status collapsed
11078
11079 \begin_layout Plain Layout
11080 book (KOMA-script)
11081 \end_layout
11082
11083 \end_inset
11084
11085 などで問題なく使用することができます.
11086 \end_layout
11087
11088 \begin_layout Subsection
11089 これらのレイアウトが提供するもの
11090 \end_layout
11091
11092 \begin_layout Standard
11093 これらのレイアウトが提供している環境を列挙すると,長い一覧となります.AMS-\SpecialChar LaTeX
11094 では,実のところ,「theorem」環境の派生型を際限なく定義していくことが可能で
11095 す.しかし,AMSは,\SpecialChar LyX
11096 で利用可能になっている環境のみを使用することを推奨しています.
11097 \end_layout
11098
11099 \begin_layout Standard
11100 \begin_inset Flex Code
11101 status collapsed
11102
11103 \begin_layout Plain Layout
11104 article (AMS)
11105 \end_layout
11106
11107 \end_inset
11108
11109
11110 \begin_inset Flex Code
11111 status collapsed
11112
11113 \begin_layout Plain Layout
11114 book (AMS)
11115 \end_layout
11116
11117 \end_inset
11118
11119 には,——
11120 \begin_inset space ~
11121 \end_inset
11122
11123
11124 \begin_inset Flex Noun
11125 status collapsed
11126
11127 \begin_layout Plain Layout
11128
11129 \end_layout
11130
11131 \end_inset
11132
11133
11134 \begin_inset Flex Noun
11135 status collapsed
11136
11137 \begin_layout Plain Layout
11138 書誌情報
11139 \end_layout
11140
11141 \end_inset
11142
11143
11144 \begin_inset Flex Noun
11145 status collapsed
11146
11147 \begin_layout Plain Layout
11148 タイトル
11149 \end_layout
11150
11151 \end_inset
11152
11153
11154 \begin_inset Flex Noun
11155 status collapsed
11156
11157 \begin_layout Plain Layout
11158 著者
11159 \end_layout
11160
11161 \end_inset
11162
11163
11164 \begin_inset Flex Noun
11165 status collapsed
11166
11167 \begin_layout Plain Layout
11168 日付
11169 \end_layout
11170
11171 \end_inset
11172
11173 のような標準環境の他に
11174 \begin_inset space ~
11175 \end_inset
11176
11177 ——
11178 \begin_inset space ~
11179 \end_inset
11180
11181 以下の環境があります.
11182 \end_layout
11183
11184 \begin_layout Description
11185 住所 これは著者の恒久的な住所です.
11186 \end_layout
11187
11188 \begin_layout Description
11189 現在の住所 住所と別に指定されているときには,著者の投稿時の仮初めの住所です.
11190 \end_layout
11191
11192 \begin_layout Description
11193 電子メール 著者の電子メールアドレス
11194 \end_layout
11195
11196 \begin_layout Description
11197 URL 著者のウェブアドレス.任意.
11198 \end_layout
11199
11200 \begin_layout Description
11201 キーワード 論文中で論じられているトピックを識別するためのキーワードやキーフレーズ.
11202 \end_layout
11203
11204 \begin_layout Description
11205 分野分類 
11206 \emph on
11207 Mathematical Reviews
11208 \emph default
11209 に説明が公表されているAMS Subject Classificationsの分類番号を指します.上述したAMSのウェブサイトでも,オンラインで見ることができま
11210 す.
11211 \end_layout
11212
11213 \begin_layout Description
11214 謝辞
11215 \end_layout
11216
11217 \begin_layout Description
11218 献呈
11219 \end_layout
11220
11221 \begin_layout Description
11222 翻訳者
11223 \end_layout
11224
11225 \begin_layout Standard
11226 以下の環境は,
11227 \begin_inset Flex Code
11228 status collapsed
11229
11230 \begin_layout Plain Layout
11231 定理
11232 \end_layout
11233
11234 \end_inset
11235
11236 モジュールと
11237 \begin_inset Flex Code
11238 status collapsed
11239
11240 \begin_layout Plain Layout
11241 定理(AMS)
11242 \end_layout
11243
11244 \end_inset
11245
11246 モジュールの両方で提供され,後者の場合には,星付き(連番なし)版と星なし(連番)版の両方が提供されます.
11247 \begin_inset Flex Code
11248 status collapsed
11249
11250 \begin_layout Plain Layout
11251 定理(連番なし)
11252 \end_layout
11253
11254 \end_inset
11255
11256 モジュールでは,同環境の星付き版だけが提供されます.
11257 \end_layout
11258
11259 \begin_layout Theorem
11260 これは,通常,得られた主要な結果を叙述するのに使用されます.
11261 \end_layout
11262
11263 \begin_layout Corollary*
11264 これは直前の叙述から比較的直接に導き出せる結果を叙述するのに使います.これも主要な結果であることがあります.
11265 \end_layout
11266
11267 \begin_layout Lemma
11268 他の叙述を証明するために必要とされる,比較的小さな結果です.
11269 \end_layout
11270
11271 \begin_layout Proposition
11272 議論されている一般的な理論に(希望的には)何かを付け加えるような,主要ではない結果です.
11273 \end_layout
11274
11275 \begin_layout Conjecture
11276 正当化を与えずに述べられた叙述で,著者には証明法がわからないけれども,正しいと(少なくとも著者にとっては)思われるものです.
11277 \end_layout
11278
11279 \begin_layout Definition*
11280 これは自明でしょう.この環境のフォントは,前述の環境とは異なるフォントが使用されます.
11281 \end_layout
11282
11283 \begin_layout Problem
11284 これが何を指すかは必ずしも特定されていません.ご自分で解明してください.
11285 \end_layout
11286
11287 \begin_layout Exercise*
11288 この環境の説明を記述せよ.
11289 \end_layout
11290
11291 \begin_layout Note
11292 この環境もtheorem型,通常は重要性の低い所見に用いられます.
11293 \end_layout
11294
11295 \begin_layout Claim*
11296 より大きな結果の証明を与える途中で,しばしば用いられます.
11297 \end_layout
11298
11299 \begin_layout Case
11300 一般的に,これらはある条件の特定の場合を取り上げて,長い議論を区切るのに用いられます.
11301 \end_layout
11302
11303 \begin_layout Case
11304 ケースの連番の枠組みは,それ自身で独立していて,他の連番の叙述とは区別されます.
11305 \end_layout
11306
11307 \begin_layout Proof
11308 この環境の最後には,証了記号(通常は四角ですがスタイルによって変わります)が置かれます.この環境の中に別の環境を入れたい——たとえばケース環境など——場合で,証
11309 了記号は証明環境の終わりにのみ現れるようにしたい場合には,他の環境は証明環境の中に入れ子にしなくてはなりません.入れ子に関する情報については,
11310 \emph on
11311 ユーザーの手引き
11312 \emph default
11313
11314 \emph on
11315 環境を入れ子にする
11316 \emph default
11317 の節をご覧ください.
11318 \end_layout
11319
11320 \begin_layout Standard
11321 そして,以下は
11322 \begin_inset Flex Code
11323 status collapsed
11324
11325 \begin_layout Plain Layout
11326 定理(AMS拡張)
11327 \end_layout
11328
11329 \end_inset
11330
11331 で提供されるものです.
11332 \end_layout
11333
11334 \begin_layout Criterion*
11335 必要とされる条件です.
11336 \end_layout
11337
11338 \begin_layout Algorithm*
11339 使用する一般的手順です.
11340 \end_layout
11341
11342 \begin_layout Axiom*
11343 議論されている系内部で真と仮定される性質や命題です.
11344 \end_layout
11345
11346 \begin_layout Condition*
11347 議論の現在の文脈で仮定されている条件を述べるのに,よく用いられます.
11348 \end_layout
11349
11350 \begin_layout Note*
11351 注記と同様です.
11352 \end_layout
11353
11354 \begin_layout Notation*
11355 表記法の説明に用いられます.
11356 \end_layout
11357
11358 \begin_layout Summary
11359 本当に説明する必要がありますか?
11360 \end_layout
11361
11362 \begin_layout Acknowledgement*
11363 謝辞(acknowledgement)です.
11364 \end_layout
11365
11366 \begin_layout Conclusion*
11367 長い議論の終わりに時々用いられます.
11368 \end_layout
11369
11370 \begin_layout Fact
11371 命題と同様の用いられ方をしますが,だいたい長くないものに使われるようです.
11372 \end_layout
11373
11374 \begin_layout Standard
11375 さらに,AMSクラスは,AMS \SpecialChar LaTeX
11376 パッケージとAMSフォントパッケージを自動的に提供します.これらの環境を使用するためには,お使いのシステム上で利用可能となってい
11377 る必要があります.
11378 \end_layout
11379
11380 \begin_layout Section
11381 AGU各誌(
11382 \family sans
11383 aguplus)
11384 \end_layout
11385
11386 \begin_layout Standard
11387
11388 \noun on
11389 Martin Vermeer
11390 \noun default
11391
11392 \end_layout
11393
11394 \begin_layout Subsection
11395 概要
11396 \end_layout
11397
11398 \begin_layout Standard
11399 これはAmerican Geophysical Society(アメリカ地球物理学会) の各学術誌向けのレイアウトファイルです.AGU発行のクラスファイルおよび
11400 AGUplusの両方(これらは
11401 \begin_inset Flex URL
11402 status collapsed
11403
11404 \begin_layout Plain Layout
11405
11406 http://publications.agu.org/files/2013/08/AGU-LaTeX.zip
11407 \end_layout
11408
11409 \end_inset
11410
11411 にあります)が導入されていることが必要です.
11412 \end_layout
11413
11414 \begin_layout Subsection
11415 新しいスタイル
11416 \end_layout
11417
11418 \begin_layout Standard
11419
11420 \family sans
11421 段落
11422 \family default
11423 および
11424 \family sans
11425 段落*
11426 \family default
11427 は,定義し直されています.\SpecialChar LyX
11428 の画面では,依然として
11429 \family sans
11430 段落
11431 \family default
11432
11433 \family sans
11434 段落*
11435 \family default
11436 と表示されますが,AGUクラスにおける\SpecialChar LaTeX
11437 の対応物は,
11438 \family sans
11439 Subsubsubsection
11440 \family default
11441
11442 \family sans
11443 Subsubsubsection*
11444 \family default
11445 です.
11446 \end_layout
11447
11448 \begin_layout Standard
11449 新しく定義されたスタイルには,
11450 \family sans
11451 左ヘッダ
11452 \family default
11453
11454 \family sans
11455 右ヘッダ
11456 \family default
11457
11458 \family sans
11459 受理日
11460 \family default
11461
11462 \family sans
11463 改訂
11464 \family default
11465
11466 \family sans
11467 採択日
11468 \family default
11469
11470 \family sans
11471 CCC
11472 \family default
11473
11474 \family sans
11475 論文ID
11476 \family default
11477
11478 \family sans
11479 著者住所
11480 \family default
11481
11482 \family sans
11483 廃棄用コメント
11484 \family default
11485 があります.これらは,ほとんど草稿用属性で,AGUクラス説明書で説明されています.
11486 \end_layout
11487
11488 \begin_layout Standard
11489 おそらく,これはまだ恐ろしく不完全です.
11490 \end_layout
11491
11492 \begin_layout Subsection
11493 新しいフロート
11494 \end_layout
11495
11496 \begin_layout Standard
11497
11498 \family sans
11499 平面表(Planotable
11500 \family default
11501 )と
11502 \family sans
11503 挿絵
11504 \family default
11505 (Plate)が新しいフロートです.また,
11506 \family sans
11507 表キャプション
11508 \family default
11509 も付け加えられています.
11510 \end_layout
11511
11512 \begin_layout Subsection
11513 サポートされている学術誌
11514 \end_layout
11515
11516 \begin_layout Itemize
11517
11518 \emph on
11519 Journal of Geophysical Research
11520 \emph default
11521
11522 \family typewriter
11523 jgrga.layout
11524 \family default
11525  — Martin Vermeer
11526 \end_layout
11527
11528 \begin_layout Standard
11529 ここにあなたの作ったものを加えてください.難しくはありません.
11530 \family typewriter
11531 jgrga.layout
11532 \family default
11533 と 
11534 \family typewriter
11535 aguplus.inc
11536 \family default
11537 を用例として見てください.
11538 \end_layout
11539
11540 \begin_layout Subsection
11541 バグと注意すべきこと
11542 \end_layout
11543
11544 \begin_layout Standard
11545 新しいレイアウトを使うためには,新規文書の作成時に以下の手順を行う必要があります.
11546 \end_layout
11547
11548 \begin_layout Enumerate
11549
11550 \emph on
11551 babelを無効にしてください.
11552 \emph default
11553 これは,
11554 \family sans
11555 ツール\SpecialChar menuseparator
11556 設定
11557 \family default
11558 メニュー項目で行うことができます(AGUの論文は常に英語ですよね.ですから他の言語は
11559 \emph on
11560 選ばないで下さい
11561 \emph default
11562 ).
11563 \end_layout
11564
11565 \begin_layout Enumerate
11566 使用文書の追加オプションフィールドに
11567 \family typewriter
11568 jgrga
11569 \family default
11570 と入力してください(すみません,これはバグです).
11571 \end_layout
11572
11573 \begin_layout Enumerate
11574 Bib\SpecialChar TeX
11575 差込枠の2番目のフィールドに
11576 \family sans
11577 agu
11578 \family default
11579 と入力して,書誌情報のスタイルに
11580 \family typewriter
11581 agu.bst
11582 \family default
11583 を使用していることを確認してください.標準スタイルはうまく動作しません.
11584 \end_layout
11585
11586 \begin_layout Section
11587 Broadway
11588 \end_layout
11589
11590 \begin_layout Standard
11591
11592 \noun on
11593 Garst Reese
11594 \noun default
11595
11596 \end_layout
11597
11598 \begin_layout Subsection
11599 はじめに
11600 \end_layout
11601
11602 \begin_layout Standard
11603 Broadwayは演劇を書くためのものです.書式はHollywoodよりも装飾的で,それほど標準化されていません.この書式はワークショップに向いているでしょう.
11604 \end_layout
11605
11606 \begin_layout Subsection
11607 特別な問題
11608 \end_layout
11609
11610 \begin_layout Standard
11611 Hollywoodと同様です.
11612 \end_layout
11613
11614 \begin_layout Subsection
11615 特別の機能
11616 \end_layout
11617
11618 \begin_layout Standard
11619
11620 \family sans
11621 話者
11622 \family default
11623 の名前をラベルとして挿入し,名前を挿入する際には,このラベルを相互参照してください.相互参照ダイアログには,登場人物の現在の配役が表示されます.
11624 \end_layout
11625
11626 \begin_layout Subsection
11627 用紙寸法と余白
11628 \end_layout
11629
11630 \begin_layout Standard
11631 USレター寸法で,余白は左1.6インチ,右0.75インチ,上0.5インチ,下0.75インチです.
11632 \end_layout
11633
11634 \begin_layout Subsection
11635 環境
11636 \end_layout
11637
11638 \begin_layout Standard
11639 以下の環境を使うことができます.右に記してある
11640 \begin_inset Flex Ruby
11641 status collapsed
11642
11643 \begin_layout Plain Layout
11644
11645 \begin_inset Argument post:1
11646 status collapsed
11647
11648 \begin_layout Plain Layout
11649 キー
11650 \end_layout
11651
11652 \end_inset
11653
11654
11655 \end_layout
11656
11657 \end_inset
11658
11659 割当ては,broadway.bindを使った場合のものです.
11660 \end_layout
11661
11662 \begin_layout Itemize
11663
11664 \family sans
11665 標準
11666 \begin_inset Newline newline
11667 \end_inset
11668
11669
11670 \family default
11671 これは使わなくていいはずですが,他の環境が当てはまらない場合のためにここに挙げておきます.
11672 \end_layout
11673
11674 \begin_layout Itemize
11675
11676 \family sans
11677 ト書き
11678 \begin_inset space \hfill{}
11679 \end_inset
11680
11681 M-z n
11682 \begin_inset Newline newline
11683 \end_inset
11684
11685
11686 \family default
11687 舞台設定と動作の説明に用います.最初に話者名をすべて大文字で書いておきます.
11688 \end_layout
11689
11690 \begin_layout Itemize
11691
11692 \family sans
11693
11694 \begin_inset space \hfill{}
11695 \end_inset
11696
11697 M-z a
11698 \begin_inset Newline newline
11699 \end_inset
11700
11701
11702 \family default
11703 自動的に連番が振られます.連番は,画面上ではアラビア数字ですが,出力ではローマ数字です.
11704 \end_layout
11705
11706 \begin_layout Itemize
11707
11708 \family sans
11709 幕*
11710 \begin_inset space \hfill{}
11711 \end_inset
11712
11713 M-z S at
11714 \begin_inset Newline newline
11715 \end_inset
11716
11717
11718 \family default
11719 幕の副題です.単に中央揃えの文になります.
11720 \end_layout
11721
11722 \begin_layout Itemize
11723
11724 \family sans
11725 場面
11726 \begin_inset space \hfill{}
11727 \end_inset
11728
11729 M-z S-S
11730 \begin_inset Newline newline
11731 \end_inset
11732
11733
11734 \family default
11735 自動的に連番は振られませんので,手動で番号を付けてください.これは私がどうすればいいか分からなかったためです.
11736 \end_layout
11737
11738 \begin_layout Itemize
11739
11740 \family sans
11741 幕開きに:
11742 \begin_inset space \hfill{}
11743 \end_inset
11744
11745 M-z S-R
11746 \begin_inset Newline newline
11747 \end_inset
11748
11749
11750 \family default
11751 ト書きの特殊な場合で,カーテンが上がるときの舞台設定と動作を説明します.
11752 \end_layout
11753
11754 \begin_layout Itemize
11755
11756 \family sans
11757 話者
11758 \begin_inset space \hfill{}
11759 \end_inset
11760
11761 M-z s
11762 \begin_inset Newline newline
11763 \end_inset
11764
11765
11766 \family default
11767 話者(役者)の配役です.すべて大文字で中央揃えに置かれます.
11768 \end_layout
11769
11770 \begin_layout Itemize
11771
11772 \family sans
11773 括弧付き
11774 \begin_inset space \hfill{}
11775 \end_inset
11776
11777 M-z p
11778 \begin_inset Newline newline
11779 \end_inset
11780
11781
11782 \family default
11783 話者への指示です.括弧は自動的に挿入されます.画面上には左括弧(のみが表示されますが,印字出力には両方の括弧が表示されます.この環境は,
11784 \family sans
11785 対話
11786 \family default
11787 の中だけで使用されます. 
11788 \end_layout
11789
11790 \begin_layout Itemize
11791
11792 \family sans
11793 対話
11794 \begin_inset space \hfill{}
11795 \end_inset
11796
11797 M-z d
11798 \begin_inset Newline newline
11799 \end_inset
11800
11801
11802 \family default
11803 話者の言う内容.
11804 \end_layout
11805
11806 \begin_layout Itemize
11807
11808 \family sans
11809 幕切れ
11810 \begin_inset space \hfill{}
11811 \end_inset
11812
11813 M-z S-C
11814 \begin_inset Newline newline
11815 \end_inset
11816
11817
11818 \family default
11819 幕が降ります.
11820 \end_layout
11821
11822 \begin_layout Itemize
11823
11824 \family sans
11825 タイトル
11826 \begin_inset space \hfill{}
11827 \end_inset
11828
11829 M-z S-T
11830 \end_layout
11831
11832 \begin_layout Itemize
11833
11834 \family sans
11835 著者
11836 \begin_inset space \hfill{}
11837 \end_inset
11838
11839 M-z S-A
11840 \end_layout
11841
11842 \begin_layout Itemize
11843
11844 \family sans
11845 右寄せ住所
11846 \begin_inset space \hfill{}
11847 \end_inset
11848
11849 M-z r
11850 \end_layout
11851
11852 \begin_layout Section
11853 Dinbrief
11854 \end_layout
11855
11856 \begin_layout Standard
11857 文書クラス
11858 \family sans
11859 dinbrief
11860 \family default
11861 は,ドイツの慣習に則った書簡の組版を行うのに用いられます.ひな型ファイルが
11862 \family typewriter
11863 .../lyx/share/templates
11864 \family default
11865 にあるので,それを土台として使用してください.
11866 \end_layout
11867
11868 \begin_layout Section
11869 EGS各誌
11870 \family sans
11871 (egs)
11872 \end_layout
11873
11874 \begin_layout Standard
11875
11876 \noun on
11877 Martin Vermeer
11878 \noun default
11879
11880 \end_layout
11881
11882 \begin_layout Subsection
11883 概要
11884 \end_layout
11885
11886 \begin_layout Standard
11887 これはEuropean Geophysical Society(欧州地球物理学会)の学術誌向けのレイアウトファイルです.必要とされる
11888 \family typewriter
11889 egs.cls
11890 \family default
11891 は,EGSのウェブサイト
11892 \begin_inset Flex URL
11893 status collapsed
11894
11895 \begin_layout Plain Layout
11896
11897 http://www.copernicus.org/
11898 \end_layout
11899
11900 \end_inset
11901
11902 からダウンロードできます.
11903 \end_layout
11904
11905 \begin_layout Subsection
11906 新しいスタイル
11907 \end_layout
11908
11909 \begin_layout Standard
11910 新しいスタイルとして,
11911 \family sans
11912 右寄せ住所
11913 \family default
11914
11915 \family sans
11916 \SpecialChar LaTeX
11917 タイトル
11918 \family default
11919
11920 \family sans
11921 所属
11922 \family default
11923
11924 \family sans
11925 学術誌名
11926 \family default
11927
11928 \family sans
11929 原稿番号
11930 \family default
11931
11932 \family sans
11933 筆頭著者
11934 \family default
11935
11936 \family sans
11937 受理日
11938 \family default
11939
11940 \family sans
11941 採択日
11942 \family default
11943
11944 \family sans
11945 オフセット
11946 \family default
11947 があります.現在のレイアウトファイルは,残念ながらほとんどモジュール化されておらず,さまざまな
11948 \family typewriter
11949 std*.inc
11950 \family default
11951 ファイルを読み込む形に変えた方が便利になると思われます.
11952 \end_layout
11953
11954 \begin_layout Section
11955 Elsevier各誌
11956 \end_layout
11957
11958 \begin_layout Standard
11959 \SpecialChar LyX
11960 ひな型ファイルの
11961 \family typewriter
11962 elsarticle.lyx
11963 \family default
11964 を参照してください.必要な情報は全てそこにあります.
11965 \end_layout
11966
11967 \begin_layout Section
11968 Foils (別名Foil\SpecialChar TeX
11969 )
11970 \begin_inset CommandInset label
11971 LatexCommand label
11972 name "sec:foiltex"
11973
11974 \end_inset
11975
11976
11977 \end_layout
11978
11979 \begin_layout Standard
11980
11981 \noun on
11982 Allan Rae
11983 \noun default
11984
11985 \end_layout
11986
11987 \begin_layout Subsection
11988 はじめに
11989 \end_layout
11990
11991 \begin_layout Standard
11992 本節では,プレゼンテーション用のスライドを作るための,\SpecialChar LyX
11993 の使用法を解説します.スライドを作ることのできる文書クラスには,slides・Foil\SpecialChar TeX
11994 ・seminar・b
11995 eamer・powerdotといったクラスがありますが,本節では,そのうちslidesの解説を行います.
11996 \end_layout
11997
11998 \begin_layout Standard
11999 誤解のないように,わかりやすく明確に,もう一度言っておきます.
12000 \end_layout
12001
12002 \begin_layout Standard
12003 \begin_inset VSpace bigskip
12004 \end_inset
12005
12006
12007 \end_layout
12008
12009 \begin_layout Standard
12010 \align center
12011
12012 \size large
12013 本節は「
12014 \family sans
12015 FoilTeX
12016 \family default
12017 」クラス
12018 \emph on
12019 のみの
12020 \emph default
12021 解説を行います.
12022 \end_layout
12023
12024 \begin_layout Standard
12025 \begin_inset VSpace bigskip
12026 \end_inset
12027
12028
12029 \end_layout
12030
12031 \begin_layout Standard
12032
12033 \family sans
12034 transparencies (slides)
12035 \family default
12036 」の解説をお探しであれば,第
12037 \begin_inset CommandInset ref
12038 LatexCommand ref
12039 reference "sec:slitex"
12040
12041 \end_inset
12042
12043 節をご覧ください.お使いのコンピュータに
12044 \family sans
12045 foils
12046 \family default
12047 クラス
12048 \family sans
12049 FoilTeX
12050 \family default
12051 が導入されていなければ,
12052 \family sans
12053 foils
12054 \family default
12055 ほど良くはありませんが,おそらく
12056 \family sans
12057 slides
12058 \family default
12059 クラスを使わざるをえないでしょう.
12060 \end_layout
12061
12062 \begin_layout Standard
12063
12064 \family sans
12065 foils
12066 \family default
12067 クラスは,\SpecialChar LaTeX2e
12068 の一部として含まれている\SpecialChar LaTeX
12069 クラスファイル
12070 \family sans
12071 foils.cls
12072 \family default
12073 の第2.1版とともに使われるように設計されています.
12074 \end_layout
12075
12076 \begin_layout Subsection
12077 最初の一歩
12078 \end_layout
12079
12080 \begin_layout Standard
12081 いうまでもなく,この文書クラスを使うには,
12082 \family sans
12083 文書\SpecialChar menuseparator
12084 設定\SpecialChar menuseparator
12085 文書クラス
12086 \family default
12087 メニューの
12088 \family sans
12089 文書クラス
12090 \family default
12091 ドロップダウンで「
12092 \family sans
12093 FoilTeX
12094 \family default
12095 」を選択する必要があります.また,
12096 \family sans
12097 文書設定
12098 \family default
12099 ダイアログ中には,以下のように,このクラスに特有の設定がいくつかあることを知っておかなくてはなりません.
12100 \end_layout
12101
12102 \begin_layout Itemize
12103
12104 \family sans
12105 文書設定
12106 \family default
12107 ダイアログ中の,
12108 \family sans
12109 両面文書
12110 \family default
12111 オプションと
12112 \family sans
12113 二段組文書
12114 \family default
12115 オプションは変更しないでください.これらは 
12116 \family sans
12117 foils
12118 \family default
12119 クラスでは無視されます.
12120 \end_layout
12121
12122 \begin_layout Itemize
12123 既定のフォント寸法は20ptであり,17
12124 \begin_inset space \thinspace{}
12125 \end_inset
12126
12127 pt・25
12128 \begin_inset space \thinspace{}
12129 \end_inset
12130
12131 pt・30
12132 \begin_inset space \thinspace{}
12133 \end_inset
12134
12135 ptを選択することも可能です.
12136 \end_layout
12137
12138 \begin_layout Itemize
12139 既定のフォントは
12140 \family sans
12141 sans
12142 \family default
12143  
12144 \family sans
12145 serif
12146 \family default
12147 ですが,数式ではすべて,通常のローマン体が使用されます.
12148 \end_layout
12149
12150 \begin_layout Itemize
12151 Foil\SpecialChar TeX
12152 は,35
12153 \begin_inset space \thinspace{}
12154 \end_inset
12155
12156 mmスライド用の特殊寸法の他,A4とレター大の用紙寸法をサポートします.A5・B5・リーガル・エグゼクティブ大の用紙寸法はサポートしていません.
12157 \end_layout
12158
12159 \begin_layout Itemize
12160
12161 \family sans
12162 フロートの配置
12163 \family default
12164 の設定は無視されますので,わざわざ変更する必要はありません.フロートはすべて,本文中で定義された位置に表示されます.
12165 \end_layout
12166
12167 \begin_layout Itemize
12168 このクラスの
12169 \family sans
12170 ページレイアウト
12171 \family default
12172 の設定は,若干異なった挙動を示します.Foil\SpecialChar TeX
12173 では,ユーザ定義のロゴをはじめ,フッタとへッダに広範な設定ができます.詳細については第
12174 \begin_inset CommandInset ref
12175 LatexCommand ref
12176 reference "sec:foilfoot"
12177
12178 \end_inset
12179
12180 節をご覧ください.タイトルページは,文書中の他のページとは異なった取扱がなされ,ページ番号は
12181 \emph on
12182 つねに
12183 \emph default
12184 付けられず,(ロゴが定義されていれば)ロゴは,
12185 \emph on
12186 つねに
12187 \emph default
12188 ページ下部中央に表示されます.使用できるページ様式とその挙動は,以下の通りです.
12189 \end_layout
12190
12191 \begin_deeper
12192 \begin_layout Labeling
12193 \labelwidthstring MMMMMMM
12194
12195 \family sans
12196 \series bold
12197 empty
12198 \family default
12199 \series default
12200  最終出力には,ページ番号をはじめ,へッダ・フッタが出力されません(もちろん脚注は除きます).
12201 \end_layout
12202
12203 \begin_layout Labeling
12204 \labelwidthstring MMMMMMM
12205
12206 \family sans
12207 \series bold
12208 plain
12209 \family default
12210 \series default
12211  最終出力には,ページ番号がページ下部の中央に出力されますが,他のへッダ・フッタは出力されません(脚注除く).
12212 \end_layout
12213
12214 \begin_layout Labeling
12215 \labelwidthstring MMMMMMM
12216
12217 \series bold
12218 foilheadings
12219 \series default
12220  ページ番号が右下隅に出力されます.追記したへッダ・フッタも出力されます.これが既定値です.
12221 \end_layout
12222
12223 \begin_layout Labeling
12224 \labelwidthstring MMMMMMM
12225
12226 \series bold
12227 fancy
12228 \series default
12229  これは
12230 \family sans
12231 fancyheadings
12232 \family default
12233 パッケージを使えるようにします.ただし,Foil\SpecialChar TeX
12234 パッケージの作者は,ページレイアウトが崩れる可能性があるので,これを使用することは勧めないと言及しています.
12235 \end_layout
12236
12237 \end_deeper
12238 \begin_layout Subsubsection
12239 任意設定クラスオプション
12240 \end_layout
12241
12242 \begin_layout Standard
12243 以下のオプションは
12244 \family sans
12245 文書設定
12246 \family default
12247 ダイアログの任意設定クラスオプションボックスで使うことができます.
12248 \end_layout
12249
12250 \begin_layout Labeling
12251 \labelwidthstring MMMMMMx
12252
12253 \series bold
12254 35mmSlide
12255 \series default
12256  これは,ページレイアウトを縦7.33インチ横11インチに設定します.これは35
12257 \begin_inset space \space{}
12258 \end_inset
12259
12260 mmスライドの縦横比にほぼ等しく,このメディアを作る作業が若干易しくなります.
12261 \end_layout
12262
12263 \begin_layout Labeling
12264 \labelwidthstring MMMMMMx
12265
12266 \series bold
12267 headrule
12268 \series default
12269  タイトルページを除くすべてのページのへッダの下に罫線を入れます.
12270 \end_layout
12271
12272 \begin_layout Labeling
12273 \labelwidthstring MMMMMMx
12274
12275 \series bold
12276 footrule
12277 \series default
12278  タイトルページを除くすべてのページのフッタの上に罫線を入れます.
12279 \end_layout
12280
12281 \begin_layout Labeling
12282 \labelwidthstring MMMMMMx
12283
12284 \series bold
12285 dvips
12286 \series default
12287  これは,新規
12288 \family sans
12289 foils
12290 \family default
12291 文書を作成する度に自動的に設定されます.このオプションは,横向きに設定されたページを回転させるのに,dvipsドライバを使うようFoil\SpecialChar TeX
12292 に指示します.
12293 \end_layout
12294
12295 \begin_layout Labeling
12296 \labelwidthstring MMMMMMx
12297
12298 \series bold
12299 landscape
12300 \series default
12301  このオプションは,用紙寸法を横向きページ大に変更するだけで,回転は行いません.したがって,このオプションを使う場合は,各ページを回転させる外部プログラムを使用
12302 する,プリンタに用紙を横向きに給紙する必要があります.また,このオプションは,
12303 \family sans
12304 Foilhead
12305 \family default
12306 環境と
12307 \family sans
12308 Rotatefoilhead
12309 \family default
12310 環境の役割を逆転させることに注意してください(これらの環境については次節で説明します).
12311 \end_layout
12312
12313 \begin_layout Labeling
12314 \labelwidthstring MMMMMMx
12315
12316 \series bold
12317 leqno
12318 \series default
12319  数式番号を左側に付けます.
12320 \end_layout
12321
12322 \begin_layout Labeling
12323 \labelwidthstring MMMMMMx
12324
12325 \series bold
12326 fleqn
12327 \series default
12328  数式を左揃えにします.
12329 \end_layout
12330
12331 \begin_layout Subsection
12332 サポートされる環境
12333 \end_layout
12334
12335 \begin_layout Standard
12336 他のクラスで標準的にサポートされている環境は,
12337 \family sans
12338 foils
12339 \family default
12340 クラスでもサポートされています.それ以外に,Foil\SpecialChar TeX
12341 が提供している環境と,\SpecialChar LyX
12342 が付け加えた環境があります.以下の環境は,他のクラスと共通の環境です.
12343 \end_layout
12344
12345 \begin_layout Standard
12346
12347 \family sans
12348 \begin_inset Flex Multiple Columns
12349 status open
12350
12351 \begin_layout Itemize
12352
12353 \family sans
12354 標準
12355 \end_layout
12356
12357 \begin_layout Itemize
12358
12359 \family sans
12360 箇条書き(記号)
12361 \end_layout
12362
12363 \begin_layout Itemize
12364
12365 \family sans
12366 箇条書き(連番)
12367 \end_layout
12368
12369 \begin_layout Itemize
12370
12371 \family sans
12372 箇条書き(記述)
12373 \end_layout
12374
12375 \begin_layout Itemize
12376
12377 \family sans
12378 箇条書き(リスト)
12379 \end_layout
12380
12381 \begin_layout Itemize
12382
12383 \family sans
12384 \SpecialChar LyX
12385 コード
12386 \end_layout
12387
12388 \begin_layout Itemize
12389
12390 \family sans
12391 詩句
12392 \end_layout
12393
12394 \begin_layout Itemize
12395
12396 \family sans
12397 引用(字下げあり)
12398 \end_layout
12399
12400 \begin_layout Itemize
12401
12402 \family sans
12403 引用(字下げなし)
12404 \end_layout
12405
12406 \begin_layout Itemize
12407
12408 \family sans
12409 タイトル
12410 \end_layout
12411
12412 \begin_layout Itemize
12413
12414 \family sans
12415 著者
12416 \end_layout
12417
12418 \begin_layout Itemize
12419
12420 \family sans
12421 日付
12422 \end_layout
12423
12424 \begin_layout Itemize
12425
12426 \family sans
12427 概要
12428 \end_layout
12429
12430 \begin_layout Itemize
12431
12432 \family sans
12433 書誌情報
12434 \end_layout
12435
12436 \begin_layout Itemize
12437
12438 \family sans
12439 住所
12440 \end_layout
12441
12442 \begin_layout Itemize
12443
12444 \family sans
12445 右寄せ住所
12446 \end_layout
12447
12448 \end_inset
12449
12450
12451 \end_layout
12452
12453 \begin_layout Standard
12454 つまり,節区切りを除けば,主な環境のすべてです.一枚のスライドは,基本的にタイトルと本文を備えた自己完結した節なので,
12455 \family sans
12456 Foil
12457 \family default
12458 \SpecialChar TeX
12459 は新しいスライドを始める以下のようなコマンドを備えています.
12460 \end_layout
12461
12462 \begin_layout Itemize
12463
12464 \family sans
12465 スライドタイトル(Foilhead)
12466 \end_layout
12467
12468 \begin_layout Itemize
12469
12470 \family sans
12471 横置きスライドタイトル(Rotatefoilhead)
12472 \end_layout
12473
12474 \begin_layout Standard
12475 \SpecialChar LyX
12476 は,以下のような,これらを若干修正した環境も用意しています.
12477 \end_layout
12478
12479 \begin_layout Itemize
12480
12481 \family sans
12482 スライドタイトル(小)(ShortFoilhead)
12483 \end_layout
12484
12485 \begin_layout Itemize
12486
12487 \family sans
12488 横置きスライドタイトル(小)(ShortRotatefoilhead)
12489 \end_layout
12490
12491 \begin_layout Standard
12492 これらの違いは次節で説明します.
12493 \end_layout
12494
12495 \begin_layout Standard
12496 スライドは,アイデアを説明したり,新しい定理を説明したりするのにしばしば使われるので,
12497 \family sans
12498 Foil
12499 \family default
12500 \SpecialChar TeX
12501 はそれらを説明するのに便利な環境を幅広く用意しています.
12502 \end_layout
12503
12504 \begin_layout Standard
12505
12506 \family sans
12507 \begin_inset Flex Multiple Columns
12508 status open
12509
12510 \begin_layout Itemize
12511
12512 \family sans
12513 定理
12514 \end_layout
12515
12516 \begin_layout Itemize
12517
12518 \family sans
12519 補題
12520 \end_layout
12521
12522 \begin_layout Itemize
12523
12524 \family sans
12525
12526 \end_layout
12527
12528 \begin_layout Itemize
12529
12530 \family sans
12531 命題
12532 \end_layout
12533
12534 \begin_layout Itemize
12535
12536 \family sans
12537 定義
12538 \end_layout
12539
12540 \begin_layout Itemize
12541
12542 \family sans
12543 証明
12544 \end_layout
12545
12546 \begin_layout Itemize
12547
12548 \family sans
12549 定理*
12550 \end_layout
12551
12552 \begin_layout Itemize
12553
12554 \family sans
12555 補題*
12556 \end_layout
12557
12558 \begin_layout Itemize
12559
12560 \family sans
12561 系*
12562 \end_layout
12563
12564 \begin_layout Itemize
12565
12566 \family sans
12567 命題*
12568 \end_layout
12569
12570 \begin_layout Itemize
12571
12572 \family sans
12573 定義*
12574 \end_layout
12575
12576 \end_inset
12577
12578
12579 \end_layout
12580
12581 \begin_layout Standard
12582 星付き版は連番が振られず,星なし版は連番が振られます.他に,\SpecialChar LyX
12583 で追加された以下の2つの箇条書き環境があります.
12584 \end_layout
12585
12586 \begin_layout Itemize
12587
12588 \family sans
12589 箇条書き(チック)
12590 \end_layout
12591
12592 \begin_layout Itemize
12593
12594 \family sans
12595 箇条書き(クロス)
12596 \end_layout
12597
12598 \begin_layout Standard
12599 Foil\SpecialChar TeX
12600 には,強力なヘッダ機能とフッタ機能があり,これらはプリアンブルで設定するのが最良ですが,文章中のどこでも設定することができます.もし文書中でこれらの設定
12601 を変更したい場合には,スライドの一番上,foilheadの直後で行うのが良いでしょう.
12602 \end_layout
12603
12604 \begin_layout Standard
12605 この目的のためには,以下のコマンドスタイルがあります(
12606 \shape smallcaps
12607 Martin Vermeer).
12608 \end_layout
12609
12610 \begin_layout Standard
12611 \begin_inset Flex Multiple Columns
12612 status open
12613
12614 \begin_layout Itemize
12615
12616 \family sans
12617 グラフィックスロゴ
12618 \end_layout
12619
12620 \begin_layout Itemize
12621
12622 \family sans
12623 配布制限
12624 \end_layout
12625
12626 \begin_layout Itemize
12627
12628 \family sans
12629 右フッタ
12630 \end_layout
12631
12632 \begin_layout Itemize
12633
12634 \family sans
12635 右ヘッダ
12636 \end_layout
12637
12638 \begin_layout Itemize
12639
12640 \family sans
12641 左ヘッダ
12642 \end_layout
12643
12644 \begin_deeper
12645 \begin_layout Plain Layout
12646 \begin_inset space ~
12647 \end_inset
12648
12649
12650 \end_layout
12651
12652 \end_deeper
12653 \end_inset
12654
12655
12656 \end_layout
12657
12658 \begin_layout Standard
12659 Foil\SpecialChar TeX
12660 が提供しているコマンドで,\SpecialChar LyX
12661 が直接サポートしていないコマンドもありますが,これらの説明と使い方については,第
12662 \begin_inset CommandInset ref
12663 LatexCommand ref
12664 reference "sec:unsuppfoils"
12665
12666 \end_inset
12667
12668 節で行います.
12669 \end_layout
12670
12671 \begin_layout Subsection
12672 スライドの組を作る
12673 \end_layout
12674
12675 \begin_layout Standard
12676 この節は,様々な環境を使ってスライドの組を作る方法を簡単に紹介します.スライド組の例をご覧になりたい場合は,\SpecialChar LyX
12677
12678 \family typewriter
12679 examples
12680 \family default
12681 フォルダにある
12682 \family typewriter
12683 Foils.lyx
12684 \family default
12685 ファイルをご覧ください.
12686 \end_layout
12687
12688 \begin_layout Subsubsection
12689 タイトルページを作る
12690 \end_layout
12691
12692 \begin_layout Standard
12693
12694 \family sans
12695 タイトル
12696 \family default
12697
12698 \family sans
12699 著者
12700 \family default
12701
12702 \family sans
12703 日付
12704 \family default
12705
12706 \family sans
12707 概要
12708 \family default
12709 環境のある他のクラスとは異なり,
12710 \family sans
12711 foils
12712 \family default
12713 は独立したページにタイトルを作成します.
12714 \family sans
12715 日付
12716 \family default
12717 環境を使用しなかった場合には,\SpecialChar LaTeX
12718 は(出力を生成し直したときにはいつも)その時点の日付を挿入します.
12719 \end_layout
12720
12721 \begin_layout Subsubsection
12722 新しいスライドを開始する
12723 \end_layout
12724
12725 \begin_layout Standard
12726 前述のように,新しいスライドを開始するには,4つの方法があります.縦向きのスライドを開始するには,
12727 \family sans
12728 スライドタイトル(Foilhead)
12729 \family default
12730
12731 \family sans
12732 スライドタイトル(小)(ShortFoilhead)
12733 \family default
12734 を使用します.両環境の違いは,スライドタイトル(foilhead)とスライド本文の間の余白の違いです.
12735 \end_layout
12736
12737 \begin_layout Standard
12738 横向きのスライドは,
12739 \family sans
12740 横向きスライドタイトル(Rotatefoilhead)
12741 \family default
12742 か横向きスライドタイトル(小)(
12743 \family sans
12744 ShortRotatefoilhead)
12745 \family default
12746 環境を使用して生成します.ここでも両環境の違いは,タイトルと本文の間の余白のみです.どちらの場合も,(小)と記された版は,タイトルと本文の間の余白が,0.5インチ
12747 (約1.27cm)小さくなります.
12748 \end_layout
12749
12750 \begin_layout Standard
12751 横向きのスライドをサポートする際,一つ問題となるのは,スライドを回転させようと思うと,PostScript出力を生成するのに
12752 \family typewriter
12753 dvips
12754 \family default
12755 ドライバを使用することを要求してしまうことです.もしスライドをプリンタに横に給紙することができれば,
12756 \family typewriter
12757 dvips
12758 \family default
12759 ドライバを持っていなくても,横向きのスライドをつくることができます ;-)
12760 \end_layout
12761
12762 \begin_layout Subsubsection
12763 定理・補題・証明など
12764 \end_layout
12765
12766 \begin_layout Standard
12767 これらの環境の同じ型をお互いに直接続けて置くことはできません.
12768 \lang english
12769  If you use a normal paragraph break,
12770 \lang japanese
12771 これらは何かによって分離されなくてはなりません.
12772 \lang english
12773  Rather than that, you need to insert a so-called separator.
12774  Please refer to the section entitled 
12775 \emph on
12776 Separate Nestings
12777 \emph default
12778  in the 
12779 \emph on
12780 User's Guide
12781 \emph default
12782 .
12783 \end_layout
12784
12785 \begin_layout Subsubsection
12786 箇条書き
12787 \end_layout
12788
12789 \begin_layout Standard
12790 他のクラスでも共通にサポートされている箇条書き様式すべてに加えて,二つの新しい様式を使用することができます.ここでは,その新しい様式のみを説明することにします.
12791 他の箇条書き環境について詳しく知りたい場合には,
12792 \emph on
12793 ユーザーの手引き
12794 \emph default
12795 をご覧ください.記号による箇条書きを使用したい場合には,上記第
12796 \begin_inset CommandInset ref
12797 LatexCommand ref
12798 reference "sec:ブリット"
12799
12800 \end_inset
12801
12802 節の
12803 \family sans
12804 箇条書き(記号)ブリットの指定
12805 \family default
12806 の節も,読まれることが望ましいでしょう.
12807 \end_layout
12808
12809 \begin_layout Standard
12810
12811 \family sans
12812 箇条書き(チック)
12813 \family default
12814
12815 \family sans
12816 箇条書き(クロス)
12817 \family default
12818 の二つの新しい様式は,チェック印や
12819 \begin_inset Formula $\times$
12820 \end_inset
12821
12822 印を箇条書きのラベルに使用する専用の環境を提供することで,予定一覧や正誤一覧を作りやすくするように設計されたものです.これらの箇条書きは,
12823 \family sans
12824 箇条書き(記号)
12825 \family default
12826 の派生型を専用に用意したものに過ぎません.ただし,これらは,
12827 \family typewriter
12828 psnfss
12829 \family default
12830 パッケージが導入済であることを要求します.
12831 \end_layout
12832
12833 \begin_layout Subsubsection
12834 図と表
12835 \end_layout
12836
12837 \begin_layout Standard
12838 Foil\SpecialChar TeX
12839 では,図表フロートは,本文中の挿入箇所にこれらが正確に表示されるように再定義されており,ページの上部やユーザー指定場所に押しのけたりはしないようになって
12840 います.たとえフロート配置の設定に変更を加えたとしても,単に無視されます.
12841 \end_layout
12842
12843 \begin_layout Subsubsection
12844 ページヘッダおよびページフッタ
12845 \begin_inset CommandInset label
12846 LatexCommand label
12847 name "sec:foilfoot"
12848
12849 \end_inset
12850
12851
12852 \end_layout
12853
12854 \begin_layout Standard
12855
12856 \family sans
12857 グラフィックスロゴ
12858 \family default
12859
12860 \family sans
12861 配布制限
12862 \family default
12863 の二つは,左フッタ文を制御するものです.前者は,グラフィックスのロゴをスライドに入れるためのもので,既定値は「-Typeset by 
12864 \family sans
12865 Foil
12866 \family default
12867 \SpecialChar TeX
12868 -」となっています.後者は,「機密事項」などのように,聴衆に秘密区分を提示することを意図しています.既定値では,何も設定されていません.
12869 \end_layout
12870
12871 \begin_layout Standard
12872 スライドの残り三隅には,
12873 \family sans
12874 右フッタ
12875 \family default
12876 (既定ではページ番号)・
12877 \family sans
12878 右ヘッダ
12879 \family default
12880 (右上)・
12881 \family sans
12882 左ヘッダ
12883 \family default
12884 (左上)を使って文字を入れることができます.
12885 \end_layout
12886
12887 \begin_layout Subsection
12888 サポートされない 
12889 \family sans
12890 Foil
12891 \family default
12892 \SpecialChar TeX
12893 機能
12894 \begin_inset CommandInset label
12895 LatexCommand label
12896 name "sec:unsuppfoils"
12897
12898 \end_inset
12899
12900
12901 \end_layout
12902
12903 \begin_layout Standard
12904 以下で言及されているコマンドは,
12905 \family sans
12906 \SpecialChar LaTeX
12907
12908 \family default
12909 環境内で設定されるか,他の環境中の
12910 \family sans
12911 \SpecialChar TeX
12912 コード
12913 \family default
12914 として設定される必要があります.
12915 \end_layout
12916
12917 \begin_layout Subsubsection
12918 長さ
12919 \end_layout
12920
12921 \begin_layout Standard
12922 長さは,すべて
12923 \family typewriter
12924
12925 \backslash
12926 setlength{
12927 \family default
12928 \emph on
12929 長さ名
12930 \family typewriter
12931 \emph default
12932 }{
12933 \family default
12934 \emph on
12935 新規長さ
12936 \family typewriter
12937 \emph default
12938 }
12939 \family default
12940 コマンドで調節されます.ここで
12941 \emph on
12942 長さ名
12943 \emph default
12944 は,変更したい長さに付けられている名前で置き換え,
12945 \emph on
12946 新規長さ
12947 \emph default
12948 は,その長さの値で置き換えます.長さはすべて,インチ(in)・ミリメートル(mm)・ポイント(pt)のような長さ単位か,
12949 \family typewriter
12950
12951 \backslash
12952 textwidth
12953 \family default
12954 のように文書比あるいはフォント基準の長さで指定する必要があります.
12955 \end_layout
12956
12957 \begin_layout Standard
12958
12959 \family typewriter
12960
12961 \backslash
12962 foilheadskip
12963 \family default
12964 で指定される長さを調節することによって,スライドタイトルとスライド本文の間の余白を変更することができます.たとえば,スライドタイトルをすべて0.5
12965 \begin_inset space \space{}
12966 \end_inset
12967
12968 inだけスライド本文に近づけるには,プリアンブルに
12969 \family typewriter
12970
12971 \backslash
12972 setlength{
12973 \backslash
12974 foilheadskip}{-0.5in}
12975 \family default
12976 と書き込みます.
12977 \end_layout
12978
12979 \begin_layout Standard
12980 フロート周囲の余白は,以下の長さを設定することで調整することができます.
12981 \end_layout
12982
12983 \begin_layout Labeling
12984 \labelwidthstring MMMMMMMMMMM
12985
12986 \family typewriter
12987
12988 \backslash
12989 abovefloatskip
12990 \family default
12991  本文とフロート上辺との間隔
12992 \end_layout
12993
12994 \begin_layout Labeling
12995 \labelwidthstring MMMMMMMMMMM
12996
12997 \family typewriter
12998
12999 \backslash
13000 abovecaptionskip
13001 \family default
13002  フロートとキャプションとの間隔
13003 \end_layout
13004
13005 \begin_layout Labeling
13006 \labelwidthstring MMMMMMMMMMM
13007
13008 \family typewriter
13009
13010 \backslash
13011 belowcaptionskip
13012 \family default
13013  キャプションとそれに続く本文との間隔
13014 \end_layout
13015
13016 \begin_layout Labeling
13017 \labelwidthstring MMMMMMMMMMM
13018
13019 \family typewriter
13020
13021 \backslash
13022 captionwidth
13023 \family default
13024  この長さを調整することでキャプションを,周囲の本文より短くすることができます.
13025 \family typewriter
13026
13027 \backslash
13028 textwidth
13029 \family default
13030 に対する相対的な長さで調整するのが最も良いでしょう.
13031 \end_layout
13032
13033 \begin_layout Standard
13034 以下のようなタイトルページ関連の長さもあり,タイトルが長い場合や,著者が複数いる場合に使うと便利かもしれません.
13035 \end_layout
13036
13037 \begin_layout Labeling
13038 \labelwidthstring MMMMMMMMMMM
13039
13040 \family typewriter
13041
13042 \backslash
13043 abovetitleskip
13044 \family default
13045  へッダとタイトルとの間隔
13046 \end_layout
13047
13048 \begin_layout Labeling
13049 \labelwidthstring MMMMMMMMMMM
13050
13051 \family typewriter
13052
13053 \backslash
13054 titleauthorskip
13055 \family default
13056  
13057 \family sans
13058 タイトル
13059 \family default
13060 環境と
13061 \family sans
13062 著者
13063 \family default
13064 環境との間隔
13065 \end_layout
13066
13067 \begin_layout Labeling
13068 \labelwidthstring MMMMMMMMMMM
13069
13070 \family typewriter
13071
13072 \backslash
13073 authorauthorskip
13074 \family default
13075  著者が複数いる場合の
13076 \family sans
13077 著者
13078 \family default
13079 行の間隔
13080 \end_layout
13081
13082 \begin_layout Labeling
13083 \labelwidthstring MMMMMMMMMMM
13084
13085 \family typewriter
13086
13087 \backslash
13088 authordateskip
13089 \family default
13090  
13091 \family sans
13092 著者
13093 \family default
13094
13095 \family sans
13096 日付
13097 \family default
13098 との間隔
13099 \end_layout
13100
13101 \begin_layout Labeling
13102 \labelwidthstring MMMMMMMMMMM
13103
13104 \family typewriter
13105
13106 \backslash
13107 dateabstractskip
13108 \family default
13109  
13110 \family sans
13111 日付
13112 \family default
13113
13114 \family sans
13115 概要
13116 \family default
13117 との間隔
13118 \end_layout
13119
13120 \begin_layout Standard
13121 最後に紹介する長さ関連コマンドは,箇条書き環境すべてに使用できるものです.
13122 \family typewriter
13123
13124 \backslash
13125 zerolistvertdimens
13126 \family default
13127 を箇条書き環境の内側に置くと,項目間の垂直余白がすべて取り除かれます.これは長さではなくコマンドなので,上述のもののように
13128 \family typewriter
13129
13130 \backslash
13131 setlength
13132 \family default
13133 を使う必要がないことに注意してください.
13134 \end_layout
13135
13136 \begin_layout Subsubsection
13137 へッダとフッタ
13138 \end_layout
13139
13140 \begin_layout Standard
13141
13142 \family typewriter
13143
13144 \backslash
13145 LogoOn
13146 \family default
13147 および
13148 \family typewriter
13149
13150 \backslash
13151 LogoOff
13152 \family default
13153 は,
13154 \family typewriter
13155 MyLogo
13156 \family default
13157 で定義したロゴを特定のページに入れるかどうかを制御します.
13158 \family typewriter
13159
13160 \backslash
13161 LogoOff
13162 \family default
13163 をプリアンブルに入れると,全スライドからロゴが取り除かれます.特定のスライドにのみロゴを付けたくない場合は,当該ページのスライドタイトルの直後に直接
13164 \family typewriter
13165
13166 \backslash
13167 LogoOff
13168 \family default
13169 を置き,次のスライドタイトルの直後に直接
13170 \family typewriter
13171
13172 \backslash
13173 LogoOn
13174 \family default
13175 を置いてください.
13176 \end_layout
13177
13178 \begin_layout Standard
13179
13180 \family sans
13181 文書レイアウト
13182 \family default
13183 ダイアログで
13184 \family sans
13185 fancy
13186 \family default
13187 ページ様式を使用することを選択した場合には,横置きページのヘッダとフッタが回転後も正しく配置されるように,プリアンブルに
13188 \family typewriter
13189
13190 \backslash
13191 let
13192 \backslash
13193 headwidth
13194 \backslash
13195 textwidth
13196 \family default
13197 を加える必要があるでしょう.これは,
13198 \family sans
13199 fancyheadings
13200 \family default
13201 パッケージが提供するページレイアウトと
13202 \family sans
13203 foils
13204 \family default
13205 クラスの提供するページレイアウトの間に衝突が発生するためです.
13206 \end_layout
13207
13208 \begin_layout Section
13209 Hollywood(Hollywoodスペック・スクリプト)
13210 \end_layout
13211
13212 \begin_layout Standard
13213
13214 \noun on
13215 Garst Reese
13216 \noun default
13217
13218 \end_layout
13219
13220 \begin_layout Subsection
13221 はじめに
13222 \end_layout
13223
13224 \begin_layout Standard
13225 脚本を正しい書式で書くことは,ハリウッドにおける「通過儀礼」です.ハリウッドの脚本は,読み手が内容に集中できるようにし,俳優にとっても読みやすくかつ親しみやすい
13226 ように設計されています.脚本の1ページは,映画の1分でなければならず,銀幕上で見えたり聞こえたりしないものは,脚本に混入してはなりません.また,全体を通してCo
13227 urier 12
13228 \begin_inset space \space{}
13229 \end_inset
13230
13231 ptフォントを使わなければならず,イタリック体は用いてはいけません.
13232 \end_layout
13233
13234 \begin_layout Subsection
13235 特別な問題
13236 \end_layout
13237
13238 \begin_layout Standard
13239 話者の行は,文の途中で改行することは
13240 \emph on
13241 決して
13242 \emph default
13243 あってはなりません.もし話者行の塊が,次頁にまたがる場合には,
13244 \family sans
13245 話者
13246 \family default
13247 名を再度書き,その後に(Cont'd)と加えます.
13248 \end_layout
13249
13250 \begin_layout Subsection
13251 特別な機能
13252 \end_layout
13253
13254 \begin_layout Standard
13255
13256 \family sans
13257 話者
13258 \family default
13259 名はラベルとして挿入し,話者名を挿入するには,そのラベルを相互参照してください.相互参照ダイアログは,登場人物の現在の配役を表示することになります.これは,ト書
13260 きに話者名を挿入するのにも使用することができます.
13261 \end_layout
13262
13263 \begin_layout Subsection
13264 用紙寸法と余白
13265 \end_layout
13266
13267 \begin_layout Standard
13268 USレター寸法で,左余白1.6インチ・右余白0.75インチ・上余白0.5インチ・下余白0.75インチです.
13269 \end_layout
13270
13271 \begin_layout Subsection
13272 環境
13273 \end_layout
13274
13275 \begin_layout Standard
13276 以下の環境が利用可能です.右に示されている
13277 \begin_inset Flex Ruby
13278 status collapsed
13279
13280 \begin_layout Plain Layout
13281
13282 \begin_inset Argument post:1
13283 status collapsed
13284
13285 \begin_layout Plain Layout
13286 キー
13287 \end_layout
13288
13289 \end_inset
13290
13291
13292 \end_layout
13293
13294 \end_inset
13295
13296 割当てを使用するには,hollywood.bindを使用してください.
13297 \end_layout
13298
13299 \begin_layout Itemize
13300
13301 \family sans
13302 一般
13303 \begin_inset Newline newline
13304 \end_inset
13305
13306
13307 \family default
13308 他の環境が動作しない場合に使用しますが,これを使うことは避けるようにしてください.
13309 \end_layout
13310
13311 \begin_layout Itemize
13312 フェイドイン:
13313 \begin_inset space \hfill{}
13314 \end_inset
13315
13316
13317 \family sans
13318 M-z S-I
13319 \family default
13320
13321 \begin_inset Newline newline
13322 \end_inset
13323
13324 通常,この後には「Sallyは目を覚ますと」のように続きます.
13325 \end_layout
13326
13327 \begin_layout Itemize
13328
13329 \family sans
13330 屋内:
13331 \begin_inset space \hfill{}
13332 \end_inset
13333
13334 M-z i
13335 \begin_inset Newline newline
13336 \end_inset
13337
13338
13339 \family default
13340 新しい屋内(INTERIOR)カメラの設定を指定します.この後には,かならずDAYやNIGHTなどを指定して,必要な照明を定義します.この行はすべて大文字で書き
13341 ます.
13342 \end_layout
13343
13344 \begin_layout Itemize
13345
13346 \family sans
13347 屋外:
13348 \begin_inset space \hfill{}
13349 \end_inset
13350
13351 M-z e
13352 \begin_inset Newline newline
13353 \end_inset
13354
13355
13356 \family default
13357 屋外(EXTERIOR)カメラの設定を指定します.この行はすべて大文字で書きます.
13358 \end_layout
13359
13360 \begin_layout Itemize
13361
13362 \family sans
13363 話者
13364 \begin_inset space \hfill{}
13365 \end_inset
13366
13367 M-z s
13368 \begin_inset Newline newline
13369 \end_inset
13370
13371
13372 \family default
13373 話す役.
13374 \end_layout
13375
13376 \begin_layout Itemize
13377
13378 \family sans
13379 括弧付き
13380 \begin_inset space \hfill{}
13381 \end_inset
13382
13383 M-z p
13384 \begin_inset Newline newline
13385 \end_inset
13386
13387 話者
13388 \family default
13389 への指示.自動的に括弧()が挿入されますが
13390 \end_layout
13391
13392 \begin_layout Itemize
13393
13394 \family sans
13395 対話
13396 \begin_inset space \hfill{}
13397 \end_inset
13398
13399 M-z d
13400 \begin_inset Newline newline
13401 \end_inset
13402
13403 話者
13404 \family default
13405 が話す内容.
13406 \end_layout
13407
13408 \begin_layout Itemize
13409
13410 \family sans
13411 画面遷移
13412 \begin_inset space \hfill{}
13413 \end_inset
13414
13415 M-z t
13416 \begin_inset Newline newline
13417 \end_inset
13418
13419
13420 \family default
13421 カメラの動きの指示.例:CUT TO:.
13422 \end_layout
13423
13424 \begin_layout Itemize
13425
13426 \family sans
13427 フェイドアウト:
13428 \begin_inset space \hfill{}
13429 \end_inset
13430
13431 M-z S-I
13432 \end_layout
13433
13434 \begin_layout Itemize
13435
13436 \family sans
13437 著者
13438 \begin_inset space \hfill{}
13439 \end_inset
13440
13441 M-z S-A
13442 \end_layout
13443
13444 \begin_layout Itemize
13445
13446 \family sans
13447 タイトル
13448 \begin_inset space \hfill{}
13449 \end_inset
13450
13451 M-z S-T
13452 \end_layout
13453
13454 \begin_layout Itemize
13455
13456 \family sans
13457 右寄せ住所
13458 \begin_inset space \hfill{}
13459 \end_inset
13460
13461 M-z r
13462 \end_layout
13463
13464 \begin_layout Subsection
13465 脚本で使われる特別な用語
13466 \end_layout
13467
13468 \begin_layout Itemize
13469 (O.S) — off screen
13470 \end_layout
13471
13472 \begin_layout Itemize
13473 (V.0) — voice over
13474 \end_layout
13475
13476 \begin_layout Itemize
13477 b.g.
13478  — background
13479 \end_layout
13480
13481 \begin_layout Itemize
13482 C.U.
13483  — close-up
13484 \end_layout
13485
13486 \begin_layout Itemize
13487 PAN — camera movement
13488 \end_layout
13489
13490 \begin_layout Itemize
13491 INSERT — cut to close-up of
13492 \end_layout
13493
13494 \begin_layout Section
13495 ijmpcおよびijmpd
13496 \end_layout
13497
13498 \begin_layout Standard
13499
13500 \noun on
13501 Panayotis Papasotiriou
13502 \noun default
13503
13504 \end_layout
13505
13506 \begin_layout Subsection
13507 概観
13508 \end_layout
13509
13510 \begin_layout Standard
13511 ijpmcパッケージは,
13512 \emph on
13513 International Journal of Modern Physics C
13514 \emph default
13515 への電子投稿を可能にするためのマクロ集です.同様に,ijpmdパッケージは,
13516 \emph on
13517 International Journal of Modern Physics D
13518 \emph default
13519 へ投稿する現行を作成するためのものです.両誌ともWorld Scientific社の刊行です.対応する文書クラス名は,それぞれ
13520 \family typewriter
13521 ws-ijmpc.cls
13522 \family default
13523 および
13524 \family typewriter
13525 ws-ijmpd.cls
13526 \family default
13527 です.これらのファイルは,著者のための指針とともに,
13528 \begin_inset Flex URL
13529 status collapsed
13530
13531 \begin_layout Plain Layout
13532
13533 http://www.worldscinet.com/ijmpc/mkt/guidelines.shtml
13534 \end_layout
13535
13536 \end_inset
13537
13538 および
13539 \begin_inset Flex URL
13540 status collapsed
13541
13542 \begin_layout Plain Layout
13543
13544 http://www.worldscinet.com/ijmpd/mkt/guidelines.shtml
13545 \end_layout
13546
13547 \end_inset
13548
13549 の各サイトからダウンロードすることができます.両パッケージは,標準「article」パッケージの修正版であり,両者は(一部を除き)ほぼ同一です.\SpecialChar LyX
13550 は,これらのパッ
13551 ケージのほとんどの機能をサポートしています.私は両誌へ投稿する論文を\SpecialChar LyX
13552 で書き上げましたが,何らの問題も生じませんでした.
13553 \end_layout
13554
13555 \begin_layout Subsection
13556 論文を書く
13557 \end_layout
13558
13559 \begin_layout Standard
13560 通常と同じく,論文を書く上で最も易しい方法は,ひな型を使って書き始めることです.
13561 \family sans
13562 ファイル\SpecialChar menuseparator
13563 新規(ひな型使用)
13564 \family default
13565 をクリックして,ひな型
13566 \family typewriter
13567 ijmpc.lyx
13568 \family default
13569 もしくは
13570 \family typewriter
13571 ijmpd.lyx
13572 \family default
13573 を選択してください.すると,原稿で良く使用されるフィールドを含んだ,ほぼ空の文書ができますので,既存のフィールド(鍵括弧
13574 \family typewriter
13575 <>
13576 \family default
13577 を含む)を正しい情報で置き換えてください.以下の各点にご留意ください.
13578 \end_layout
13579
13580 \begin_layout Enumerate
13581 両パッケージでは,フォント寸法や文書のページ様式を変更することが禁じられているので,\SpecialChar LyX
13582 中でこれらを変更することはできません.
13583 \end_layout
13584
13585 \begin_layout Enumerate
13586 文書言語は変更してはいけません.論文をプレビューする前に,babelパッケージが使用されていないことを確認してください.これは,
13587 \lang english
13588
13589 \begin_inset Info
13590 type  "menu"
13591 arg   "dialog-show document"
13592 \end_inset
13593
13594  
13595 \family sans
13596 \SpecialChar menuseparator
13597 Language
13598 \family default
13599 \lang japanese
13600
13601 \lang english
13602 and select 
13603 \begin_inset Quotes eld
13604 \end_inset
13605
13606 None
13607 \begin_inset Quotes erd
13608 \end_inset
13609
13610  as 
13611 \family sans
13612 Language Package
13613 \family default
13614 .
13615 \end_layout
13616
13617 \begin_layout Enumerate
13618 キーワードを定義するに際しては,「キーワード」様式を用いなくてはなりません.
13619 \end_layout
13620
13621 \begin_layout Enumerate
13622 ijmpcパッケージが提供する「分類コード」様式は,PACS番号のような分類コードを定義するのに使用することができます.この機能は,ijmpdパッケージではサポ
13623 ートされていませんので,ご注意ください.
13624 \end_layout
13625
13626 \begin_layout Enumerate
13627 「定義」「ステップ」「例」「注記」「記法」「定理」「証明」「系」「補題」「命題」「命題(Prop)」「問題」「主張」「予想」といった新しい環境を使用することがで
13628 きます.これらの使い方は,大凡自明でしょう.\SpecialChar LyX
13629 は,これらの環境をすべてサポートし,それぞれについて,適切なラベルと文字様式および連番スキームを使用します.
13630 \end_layout
13631
13632 \begin_layout Enumerate
13633 両パッケージは,単純な引用を使用しますので,natbibパッケージは使用してはなりません.\SpecialChar LyX
13634 中では,引用参照は通常通り表示されますが,出力では上付き文字として表示
13635 されます.引用に通常の本文を使用したい場合には,「See Ref.
13636 \begin_inset space \space{}
13637 \end_inset
13638
13639
13640 \family typewriter
13641
13642 \backslash
13643 refcite{
13644 \family default
13645
13646 \begin_inset Flex Ruby
13647 status collapsed
13648
13649 \begin_layout Plain Layout
13650
13651 \family typewriter
13652
13653 \family default
13654
13655 \begin_inset Argument post:1
13656 status collapsed
13657
13658 \begin_layout Plain Layout
13659 キー
13660 \end_layout
13661
13662 \end_inset
13663
13664
13665 \end_layout
13666
13667 \end_inset
13668
13669
13670 \family typewriter
13671 }
13672 \family default
13673 」のように
13674 \family typewriter
13675 refcite
13676 \family default
13677 コマンドを使用してください.
13678 \end_layout
13679
13680 \begin_layout Enumerate
13681 両パッケージには,「謝辞」環境がありません.謝辞を置くには,「節*」環境を使用してください.
13682 \end_layout
13683
13684 \begin_layout Enumerate
13685 付録は,論文中,謝辞の
13686 \emph on
13687
13688 \emph default
13689 かつ書誌情報の
13690 \emph on
13691
13692 \emph default
13693 であれば,入れることができます.\SpecialChar LyX
13694 上では,「付録領域」という特別な環境があり,これを使って付録の開始位置を指定することができます.この環境は空のままにしておかなく
13695 てはなりません.この環境は,\SpecialChar LaTeX
13696 コマンドを書き出すだけで,実際に出力は行いません.\SpecialChar LyX
13697 上では,青字で「Appendix」という単語が表示され,この箇所より後の節はすべて
13698 付録であることを明示します.「付録領域」は,最初の付録の前に
13699 \emph on
13700 なくてはならない
13701 \emph default
13702 ことに注意してください.さもなくば,出力中において,付録はすべて通常の節として連番が振られてしまいます.
13703 \end_layout
13704
13705 \begin_layout Enumerate
13706 ijmpcおよびijmpdパッケージは,表キャプションを実装するのに
13707 \family typewriter
13708 tbl
13709 \family default
13710 コマンドを使用します.そのため,\SpecialChar LyX
13711 が作成した表は正しく印字されますが,そのキャプションは無視されます.しかし,\SpecialChar TeX
13712 コードを少し使えば,この問題を回避して,キャプション
13713 を望み通り印字することができるようになります.そうするには,表フロートを通常通り作成して,キャプションを削除し,代わりに\SpecialChar TeX
13714 コードで
13715 \family typewriter
13716
13717 \backslash
13718 tbl{表キャプション}{
13719 \family default
13720 (ママ)と入れます.そこに表の内容を入れて,直後を\SpecialChar TeX
13721 コード
13722 \family typewriter
13723 }
13724 \family default
13725 で閉じてください.このからくりがどのように実装されているかを見るには,ひな型ファイルに入っている表の例を精査してみてください.別の方法としては,表キャプションが
13726 欲しい場合に,表フロート全体を
13727 \family typewriter
13728 .tex
13729 \family default
13730 ファイルに収め,このファイルを\SpecialChar LyX
13731 文書に取り込んでください(
13732 \family sans
13733 挿入\SpecialChar menuseparator
13734 ファイル\SpecialChar menuseparator
13735 子文書
13736 \family default
13737 ).表フロートの作り方についての詳細は,各パッケージに含まれている
13738 \family typewriter
13739 ws-ijmpc.tex
13740 \family default
13741 または
13742 \family typewriter
13743 ws-ijmpd.tex
13744 \family default
13745 ファイルをご覧ください.
13746 \end_layout
13747
13748 \begin_layout Subsection
13749 原稿を投稿するための準備
13750 \end_layout
13751
13752 \begin_layout Standard
13753 論文を投稿する前には,\SpecialChar LyX
13754 文書を\SpecialChar LaTeX
13755 ファイルに書き出し(
13756 \family sans
13757 ファイル\SpecialChar menuseparator
13758 書き出し\SpecialChar menuseparator
13759 \SpecialChar LaTeX
13760
13761 \family default
13762 )
13763 \begin_inset Foot
13764 status open
13765
13766 \begin_layout Plain Layout
13767 実は,\SpecialChar LaTeX
13768  (plain)とpdflatexとの間で選択ができます.論文を準備するのにpdflatexを使用しようとするのであれば,取り込んである画像がPDF形式に
13769 変換され,pdflatexで使用できるように,pdflatexオプションを指定しなくてはなりません.
13770 \end_layout
13771
13772 \end_inset
13773
13774 ,その
13775 \family typewriter
13776 .tex
13777 \family default
13778 ファイルに以下の変更を加える必要があります.
13779 \end_layout
13780
13781 \begin_layout Enumerate
13782
13783 \family typewriter
13784
13785 \backslash
13786 documentclass
13787 \family default
13788 コマンドより前にあるコメント行を削除する.
13789 \end_layout
13790
13791 \begin_layout Enumerate
13792 自身で明示的に\SpecialChar LaTeX
13793 プリアンブルに置いたコマンドを除き,
13794 \family typewriter
13795
13796 \backslash
13797 makeatletter
13798 \family default
13799 コマンドと
13800 \family typewriter
13801
13802 \backslash
13803 makeatother
13804 \family default
13805 コマンドの間にあるものをすべて削除する.
13806 \end_layout
13807
13808 \begin_layout Standard
13809 こうして修正を加えた
13810 \family typewriter
13811 .tex
13812 \family default
13813 ファイルを保存し,必要な回数\SpecialChar LaTeX
13814 で処理してください.それによって得られた
13815 \family typewriter
13816 .dvi
13817 \family default
13818 文書も確認された方がよろしいでしょう.
13819 \end_layout
13820
13821 \begin_layout Section
13822 iopart
13823 \end_layout
13824
13825 \begin_layout Standard
13826
13827 \noun on
13828 Uwe Stöhr
13829 \noun default
13830
13831 \end_layout
13832
13833 \begin_layout Subsection
13834 概要
13835 \end_layout
13836
13837 \begin_layout Standard
13838 iopartパッケージは,Institute of Physics(イギリス物理学会)発行の学術誌へ電子的に投稿する原稿を作成するための文書クラスを提供していま
13839 す.iopartクラスを使用した論文作成方法の著者用説明書は,ウェブサイト
13840 \begin_inset Flex URL
13841 status collapsed
13842
13843 \begin_layout Plain Layout
13844
13845 ftp://ftp.iop.org/pub/journals/latex2e
13846 \end_layout
13847
13848 \end_inset
13849
13850 からiopartパッケージとともにダウンロード可能です.
13851 \end_layout
13852
13853 \begin_layout Subsection
13854 論文を書く
13855 \end_layout
13856
13857 \begin_layout Standard
13858 論文を書くもっとも簡単な方法は,\SpecialChar LyX
13859 の用例ファイルフォ
13860 \lang english
13861 template
13862 \emph on
13863 \lang japanese
13864 IOP-article.lyx
13865 \emph default
13866 \lang english
13867  that is available via 
13868 \family sans
13869 File\SpecialChar menuseparator
13870 New From Template\SpecialChar ldots
13871
13872 \family default
13873 The template explains 
13874 \lang japanese
13875 この用例ファイルは,特定の環境の使用法についても説明しています.もっとも重要な助言として,以下の点にご注意ください.
13876 \end_layout
13877
13878 \begin_layout Itemize
13879 文書がPDF・PS・DVIにコンパイルできるようにするためには,
13880 \lang english
13881  ensure that the no AMS packages are loaded in 
13882 \family sans
13883 Document\SpecialChar menuseparator
13884 Settings\SpecialChar menuseparator
13885 Math Options
13886 \family default
13887 !
13888 \end_layout
13889
13890 \begin_layout Itemize
13891 タイトル環境の選択如何によって,論文の種類が定義されます.種類毎に以下の環境をタイトルに使用してください.
13892 \end_layout
13893
13894 \begin_deeper
13895 \begin_layout Itemize
13896 論文用には
13897 \family sans
13898 タイトル
13899 \end_layout
13900
13901 \begin_layout Itemize
13902 Review用には
13903 \family sans
13904 Review
13905 \end_layout
13906
13907 \begin_layout Itemize
13908 Topical review用には
13909 \family sans
13910 Topical
13911 \end_layout
13912
13913 \begin_layout Itemize
13914 Comment用には
13915 \family sans
13916 Comment
13917 \end_layout
13918
13919 \begin_layout Itemize
13920 Note用には
13921 \family sans
13922 注釈
13923 \end_layout
13924
13925 \begin_layout Itemize
13926 論文用には
13927 \family sans
13928 Paper
13929 \family default
13930 (タイトルと同じ)
13931 \end_layout
13932
13933 \begin_layout Itemize
13934 Preliminary communication用には
13935 \family sans
13936 Prelim
13937 \end_layout
13938
13939 \begin_layout Itemize
13940 Rapid communication用には
13941 \family sans
13942 Rapid
13943 \end_layout
13944
13945 \begin_layout Itemize
13946 編集者へのLetterには
13947 \family sans
13948 書簡
13949 \end_layout
13950
13951 \end_deeper
13952 \begin_layout Itemize
13953
13954 \family sans
13955 書簡
13956 \family default
13957 以外のタイトル環境には,すべて短縮タイトルをつけることもできます.
13958 \end_layout
13959
13960 \begin_layout Itemize
13961 \SpecialChar LyX
13962 では直接にサポートされていませんが,一般的なタイトル環境として
13963 \family sans
13964 Article
13965 \family default
13966 があります.執筆する文書が,他のタイトル型にそぐわない場合には,\SpecialChar TeX
13967 コードでこれを指定することができます.
13968 \end_layout
13969
13970 \begin_layout Standard
13971 特別な表や数式組版に関するヒントなど,詳しい情報については,IOP著者用ガイドラインを参照してください.
13972 \end_layout
13973
13974 \begin_layout Section
13975 Kluwer
13976 \end_layout
13977
13978 \begin_layout Standard
13979
13980 \noun on
13981 Panayotis Papasotiriou
13982 \noun default
13983
13984 \end_layout
13985
13986 \begin_layout Subsection
13987 概要
13988 \end_layout
13989
13990 \begin_layout Standard
13991 Kluwerパッケージは,Kluwer Academic Publishers社が発行する学術誌への電子投稿を可能にするために,同社が作成したマクロ集です.同社
13992 の発行誌のうち,(少なくとも私の専門内で)もっともよく知られているものは,
13993 \emph on
13994 Astrophysics and Space Science
13995 \emph default
13996 (『宇宙物理学と宇宙科学』)と
13997 \emph on
13998 Solar Physics
13999 \emph default
14000 (『太陽系物理学』)ですが,他にも多くの学術誌があります(
14001 \begin_inset Flex URL
14002 status collapsed
14003
14004 \begin_layout Plain Layout
14005
14006 http://www.wkap.nl/jrnllist.htm/JRNLHOME
14007 \end_layout
14008
14009 \end_inset
14010
14011 に全覧があります).Kluwerパッケージは,
14012 \begin_inset Flex URL
14013 status collapsed
14014
14015 \begin_layout Plain Layout
14016
14017 http://www.wkap.nl/kaphtml.htm/STYLEFILES
14018 \end_layout
14019
14020 \end_inset
14021
14022 からダウンロードできます.完全なユーザーの手引きも同パッケージ内に収録されています(個別にダウンロードすることも可能です).
14023 \end_layout
14024
14025 \begin_layout Standard
14026 \SpecialChar LyX
14027 は,このパッケージの機能の多くをサポートしていますが,すべてではありません.しかし,\SpecialChar TeX
14028 コードを必要とするのは,パッケージ中のいくつかの「変わった」コマンドだけにな
14029 りました(
14030 \begin_inset CommandInset ref
14031 LatexCommand ref
14032 reference "subsec:kluwer_peculiarities"
14033
14034 \end_inset
14035
14036 参照).最近,私は\SpecialChar LyX
14037 を使って書いた論文を
14038 \emph on
14039 Astrophysics and Space Science
14040 \emph default
14041 に投稿しましたが,何らの問題も発生しませんでした.
14042 \end_layout
14043
14044 \begin_layout Subsection
14045 論文を書く
14046 \end_layout
14047
14048 \begin_layout Standard
14049 論文を書き始めるには,ひな型ファイルKluwerを使うのが最も簡単です.
14050 \family sans
14051 ファイル\SpecialChar menuseparator
14052 新規(ひな型使用)
14053 \family default
14054 をクリックし,ひな型
14055 \family typewriter
14056 kluwer.lyx
14057 \family default
14058 を選択してください.これは,原稿に通常必要となる各フィールドと,それらの使用法が短く書かれただけの,(ほとんど)何も書かれていない文書です.他のテンプレートと同
14059 様に,既存の文章を(括弧
14060 \family typewriter
14061 <>
14062 \family default
14063 を含む)正しい情報で上書きしてください.
14064 \end_layout
14065
14066 \begin_layout Subsection
14067 投稿の準備
14068 \end_layout
14069
14070 \begin_layout Standard
14071 AAS\SpecialChar TeX
14072 パッケージと同様,論文を投稿する前に,以下のような「後処理」を行う必要があります.
14073 \end_layout
14074
14075 \begin_layout Enumerate
14076
14077 \family sans
14078 ファイル\SpecialChar menuseparator
14079 書き出し\SpecialChar menuseparator
14080 LateX
14081 \family default
14082 をクリックして,論文を\SpecialChar LaTeX
14083 ファイルに書き出す.
14084 \end_layout
14085
14086 \begin_layout Enumerate
14087 生成された
14088 \family typewriter
14089 .tex
14090 \family default
14091 ファイルに,テキストエディタを使用して,以下のような変更を加える.
14092 \end_layout
14093
14094 \begin_deeper
14095 \begin_layout Enumerate
14096
14097 \family typewriter
14098
14099 \backslash
14100 documentclass
14101 \family default
14102 コマンドより前にあるコメント行を削除する.
14103 \end_layout
14104
14105 \begin_layout Enumerate
14106 意図的に\SpecialChar LaTeX
14107 プリアンブルに加えたコマンドを除き,
14108 \family typewriter
14109
14110 \backslash
14111 makeatletter
14112 \family default
14113 から 
14114 \family typewriter
14115
14116 \backslash
14117 makeatother
14118 \family default
14119 の間にあるものを,これらのコマンドも含め,すべて削除する.
14120 \end_layout
14121
14122 \begin_layout Standard
14123 変更した
14124 \family typewriter
14125 .tex
14126 \family default
14127 ファイルを保存する.
14128 \end_layout
14129
14130 \end_deeper
14131 \begin_layout Enumerate
14132 この
14133 \family typewriter
14134 .tex
14135 \family default
14136 ファイルを必要な回数(通常3回以内)だけ\SpecialChar LaTeX
14137 にかける.
14138 \end_layout
14139
14140 \begin_layout Enumerate
14141 生成された
14142 \family typewriter
14143 .dvi
14144 \family default
14145 ファイルを
14146 \family sans
14147 xdvi
14148 \family default
14149 などを使って開き,問題がないか確認する(間違いをしていない限り問題ないはずです).
14150 \end_layout
14151
14152 \begin_layout Subsection
14153 Kluwerパッケージの「風変わり」な特徴
14154 \begin_inset CommandInset label
14155 LatexCommand label
14156 name "subsec:kluwer_peculiarities"
14157
14158 \end_inset
14159
14160
14161 \end_layout
14162
14163 \begin_layout Standard
14164 Kluwerパッケージには,以下のような「風変わりな」特徴があります.
14165 \end_layout
14166
14167 \begin_layout Enumerate
14168 複数の論文を1つの\SpecialChar LaTeX
14169 ファイルへ入れることができます
14170 \begin_inset Foot
14171 status collapsed
14172
14173 \begin_layout Plain Layout
14174 わざわざこんなことをする必要はないでしょう.
14175 \end_layout
14176
14177 \end_inset
14178
14179 .各論文は,「article」環境で囲まなくてはなりません.残念ながら,1つの論文だけを書く場合でも,この環境を省略することはできません.つまり,各論文は
14180 \family typewriter
14181
14182 \backslash
14183 begin{article}
14184 \family default
14185 で始まり,
14186 \family typewriter
14187
14188 \backslash
14189 end{article}
14190 \family default
14191 で終わります.この環境を\SpecialChar LyX
14192 に実装することも可能でしたが,醜い上に初心者を混乱させる可能性があるので,実装することはしませんでした.したがって,これらの命令(
14193 \family typewriter
14194
14195 \backslash
14196 begin{article}
14197 \family default
14198
14199 \family typewriter
14200
14201 \backslash
14202 end{article}
14203 \family default
14204 )は,直接本文中に入力して,\SpecialChar LaTeX
14205 コード(「\SpecialChar TeX
14206 コード」のことです)としてマークする必要があります.
14207 \end_layout
14208
14209 \begin_layout Enumerate
14210 論文の冒頭に置く情報(タイトル・サブタイトル・著者名・所属・ヘッダ用タイトル・ヘッダ用著者名・概要・キーワード)は,「opening」とよばれる環境に入れなくて
14211 はなりません.これは\SpecialChar LyX
14212 では実装されていませんので,タイトルやサブタイトルなどは,2つの\SpecialChar TeX
14213 コード行(
14214 \family typewriter
14215
14216 \backslash
14217 begin{opening}
14218 \family default
14219 および
14220 \family typewriter
14221
14222 \backslash
14223 end{opening}
14224 \family default
14225 )の間に入れる必要があります.
14226 \end_layout
14227
14228 \begin_layout Enumerate
14229 ユーザーの手引きによれば,書誌情報の各項目のラベルは,
14230 \family typewriter
14231
14232 \begin_inset Newline newline
14233 \end_inset
14234
14235
14236 \backslash
14237 protect
14238 \backslash
14239 citeauthoryear{
14240 \family default
14241 \emph on
14242 著者名
14243 \family typewriter
14244 \emph default
14245 }{
14246 \family default
14247 \emph on
14248
14249 \family typewriter
14250 \emph default
14251 }
14252 \family default
14253  と書く必要があります.
14254 \end_layout
14255
14256 \begin_layout Standard
14257 ひな型
14258 \family typewriter
14259 kluwer.lyx
14260 \family default
14261 は,これらの風変わりな点がすべて考慮されています.このひな型を使用して,論文を新たに書きはじめる場合には,特別なことを行う必要はありません.以下の点にのみ留意し
14262 てください.
14263 \end_layout
14264
14265 \begin_layout Enumerate
14266 ひな型にある\SpecialChar TeX
14267 コードを削除しないでください.
14268 \end_layout
14269
14270 \begin_layout Enumerate
14271 新しい書誌情報項目を入力する場合には,ひな型に例示されている書誌情報項目をコピーして,必要に応じて修正してください.
14272 \end_layout
14273
14274 \begin_layout Section
14275 Koma-Script
14276 \end_layout
14277
14278 \begin_layout Standard
14279
14280 \noun on
14281 Bernd Rellermeyer
14282 \noun default
14283
14284 \end_layout
14285
14286 \begin_layout Subsection
14287 概要
14288 \end_layout
14289
14290 \begin_layout Standard
14291 \SpecialChar LyX
14292 の文書クラス
14293 \emph on
14294 article (koma-script)
14295 \emph default
14296
14297 \emph on
14298 report (koma-script)
14299 \emph default
14300
14301 \emph on
14302 book
14303 \emph default
14304  
14305 \emph on
14306 (koma-script)
14307 \emph default
14308
14309 \emph on
14310 letter
14311 \emph default
14312  
14313 \emph on
14314 (koma-script)
14315 \emph default
14316 は,それぞれKoma-Scriptファミリーの\SpecialChar LaTeX
14317 文書クラス
14318 \family typewriter
14319 scrartcl.cls
14320 \family default
14321
14322 \family typewriter
14323 scrreprt.cls
14324 \family default
14325
14326 \family typewriter
14327 scrbook.cls
14328 \family default
14329
14330 \family typewriter
14331 scrlettr.cls
14332 \family default
14333 に対応しています.これらは,標準文書クラス
14334 \family typewriter
14335 article.cls
14336 \family default
14337
14338 \family typewriter
14339 report.cls
14340 \family default
14341
14342 \family typewriter
14343 book.cls
14344 \family default
14345
14346 \family typewriter
14347 letter.cls
14348 \family default
14349 の代替物であり,これらよりも多くの点でヨーロッパに於ける活版印刷の慣例に合致します.
14350 \end_layout
14351
14352 \begin_layout Itemize
14353 標準文字寸法は,
14354 \emph on
14355 article (koma-script)
14356 \emph default
14357
14358 \emph on
14359 report (koma-script)
14360 \emph default
14361
14362 \emph on
14363 book (koma-script)
14364 \emph default
14365 で11pt,
14366 \emph on
14367 letter (koma-script)
14368 \emph default
14369 で12ptです.
14370 \end_layout
14371
14372 \begin_layout Itemize
14373 見出しや箇条書き(記述)環境のラベル,および
14374 \emph on
14375 letter (koma-script)
14376 \emph default
14377 文書クラスの要素の多くでは,ボールド体サンセリフフォントが使われます
14378 \begin_inset Foot
14379 status collapsed
14380
14381 \begin_layout Plain Layout
14382 ボールド体サンセリフフォントには,古いcmフォントと新しいecフォントの間に大きな違いがあり,特に見出しの表示の違いが際立ちます.比較すると,ecボールドサンセ
14383 リフフォントの方が,少し細く見えます.ecフォントを使用する際に「通常の」外観が欲しい場合には,
14384 \shape smallcaps
14385 Walter Schmidt
14386 \shape default
14387 作の\SpecialChar LaTeX
14388 パッケージ
14389 \family typewriter
14390 cmsd.sty
14391 \family default
14392 が役立ちます.
14393 \end_layout
14394
14395 \end_inset
14396
14397 .章見出しの連番は,節見出しの連番と同様に行われ,別行立てで「 Chapter\SpecialChar ldots
14398 」という行がつきません.さらに,多くのオプションによって,見出しの外観を修正するこ
14399 とができます(\SpecialChar LyX
14400 では,
14401 \family sans
14402 文書\SpecialChar menuseparator
14403 設定
14404 \family default
14405 ダイアログの
14406 \family sans
14407 クラスオプション
14408 \family default
14409 フィールドで指定します).これらのオプションの独語での詳細な説明が,Koma-Scriptの取扱説明書
14410 \emph on
14411 scrguide
14412 \emph default
14413 にあります.
14414 \end_layout
14415
14416 \begin_layout Itemize
14417 Koma-Script文書クラスで,印字部分をデザインする主な方法は,
14418 \family sans
14419 BCOR
14420 \family default
14421 オプションまたは
14422 \family sans
14423 DIV
14424 \family default
14425 オプションを使う方法です(\SpecialChar LyX
14426 では,
14427 \family sans
14428 文書\SpecialChar menuseparator
14429 設定
14430 \family default
14431 ダイアログの
14432 \family sans
14433 クラスオプション
14434 \family default
14435 フィールドで指定します).これらのオプションは
14436 \family sans
14437 文書\SpecialChar menuseparator
14438 設定
14439 \family default
14440 ダイアログのオプションと同様に,ページ余白を明示的に変更することができます.これらとその他印字領域オプションのドイツ語での詳細な説明が,Koma-Script取
14441 扱説明書
14442 \emph on
14443 scrguide
14444 \emph default
14445 にあります.
14446 \end_layout
14447
14448 \begin_layout Itemize
14449 Koma-Scriptファミリーの\SpecialChar LaTeX
14450 文書クラスには,多くの追加コマンドが定義されています.それらのうち,\SpecialChar LyX
14451 で意味を持つものは,対応する段落環境として実装されています
14452
14453 \end_layout
14454
14455 \begin_layout Standard
14456 Koma-Scriptファミリーの\SpecialChar LaTeX
14457 文書クラスに関する独語の詳細な説明が,Koma-Script取扱説明書
14458 \emph on
14459 scrguide
14460 \emph default
14461 にあります
14462 \begin_inset Foot
14463 status collapsed
14464
14465 \begin_layout Plain Layout
14466 英語翻訳版の
14467 \emph on
14468 screnggu
14469 \emph default
14470 もありますが,完訳ではありません.
14471 \end_layout
14472
14473 \end_inset
14474
14475 .以下の各節では,\SpecialChar LyX
14476 に関係する側面のみ説明致します.
14477 \end_layout
14478
14479 \begin_layout Subsection
14480 article (koma-script)・report (koma-script)・book (koma-script)
14481 \end_layout
14482
14483 \begin_layout Standard
14484 文書クラス
14485 \emph on
14486 article (koma-script)
14487 \emph default
14488
14489 \emph on
14490 report (koma-script)
14491 \emph default
14492
14493 \emph on
14494 book
14495 \emph default
14496  
14497 \emph on
14498 (koma-script)
14499 \emph default
14500 は,それぞれレイアウトファイル
14501 \family typewriter
14502 scrartcl.layout
14503 \family default
14504
14505 \family typewriter
14506 scrreprt.layou
14507 \family default
14508 t・
14509 \family typewriter
14510 crbook.layout
14511 \family default
14512 によって実装されています.これらは,対応する標準文書クラス
14513 \emph on
14514 article
14515 \emph default
14516
14517 \emph on
14518 report
14519 \emph default
14520
14521 \emph on
14522 book
14523 \emph default
14524 の段落環境を,若干の修正を加えた上ですべて含んでいますが,\SpecialChar LyX
14525 固有の
14526 \family sans
14527 箇条書き(一覧)
14528 \family default
14529 環境は例外であり,同じ機能を持つ新しい
14530 \family sans
14531 ラベリング
14532 \family default
14533 環境で置き換えられています.この
14534 \family sans
14535 ラベリング
14536 \family default
14537 環境以外にも,新しい段落環境が多く追加されています.これらは,
14538 \emph on
14539 letter (koma-script)
14540 \emph default
14541 には含まれていないのでご注意ください.
14542 \end_layout
14543
14544 \begin_layout Itemize
14545
14546 \family sans
14547 部(addpart)
14548 \family default
14549
14550 \family sans
14551 章(addchap)
14552 \family default
14553
14554 \family sans
14555 節(addsec)
14556 \family default
14557 :これらは,それぞれ
14558 \family sans
14559 部*
14560 \family default
14561
14562 \family sans
14563 章*
14564 \family default
14565
14566 \family sans
14567 節*
14568 \family default
14569 と同等の働きをしますが,加えて目次に項目が表示されるようになります.
14570 \family sans
14571 部(addpart)
14572 \family default
14573
14574 \family sans
14575 章(addchap)
14576 \family default
14577 は,
14578 \emph on
14579 article (koma-script)
14580 \emph default
14581 には収録されていません.
14582 \end_layout
14583
14584 \begin_layout Itemize
14585
14586 \family sans
14587 章(addchap*)
14588 \family default
14589
14590 \family sans
14591 節(addsec*)
14592 \family default
14593 :これらは,
14594 \family sans
14595 章(addchap
14596 \family default
14597 )と
14598 \family sans
14599 節(addsec)
14600 \family default
14601 とまったく同等に動作しますが,加えてランニングへッダを取り除きます.
14602 \family sans
14603 章(addchap*)
14604 \family default
14605 は, 
14606 \emph on
14607 article (koma-script)
14608 \emph default
14609 には収録されていません
14610 \begin_inset Foot
14611 status collapsed
14612
14613 \begin_layout Plain Layout
14614
14615 \emph on
14616 book (koma-script)
14617 \emph default
14618
14619 \emph on
14620 report (koma-script)
14621 \emph default
14622 には,
14623 \family typewriter
14624
14625 \backslash
14626 addpart*
14627 \family default
14628 コマンドもありますが,これは
14629 \family sans
14630 Part*
14631 \family default
14632 と同一なので,\SpecialChar LyX
14633 では実装されていません.
14634 \end_layout
14635
14636 \end_inset
14637
14638
14639 \end_layout
14640
14641 \begin_layout Itemize
14642
14643 \family sans
14644 小見出し(minisec)
14645 \family default
14646 :これは文書構造に現れない形で,続く段落の直上に標準文字寸法の見出しを付けます.
14647 \end_layout
14648
14649 \begin_layout Itemize
14650
14651 \family sans
14652 上部キャプション
14653 \family default
14654
14655 \family sans
14656 下部キャプション
14657 \family default
14658 は,ある要素の上部ないし下部にキャプションを配置する際,位置に応じて正しく余白取りを行う特別なキャプションです(組版規則に厳密に従うならば,表キャプションは,つ
14659 ねに表の上に置くべきでしょう).また,クラスオプション
14660 \family typewriter
14661 tablecaptionsabove
14662 \family default
14663 を用いれば,キャプションを指定すると,表には
14664 \family sans
14665 上部キャプション
14666 \family default
14667 が,図には
14668 \family sans
14669 下部キャプション
14670 \family default
14671 が適用されるようになります.これを使用するためには,Koma-Script第2.8q版以上が必要です.
14672 \end_layout
14673
14674 \begin_layout Itemize
14675
14676 \family sans
14677 格言(dictum)
14678 \family default
14679 :これは,章頭などに警句を置くのに用いることができます.オプション引数(
14680 \family sans
14681 挿入\SpecialChar menuseparator
14682
14683 \lang english
14684 Dictum
14685 \begin_inset space ~
14686 \end_inset
14687
14688 Author
14689 \family default
14690 \lang japanese
14691 )を用いれば,格言の作者を入れることができます.格言と作者の間は,線で区切られます.これを使用するためには,Koma-Script第2.8q版以上が必要です.
14692 \family sans
14693 格言(dictum)
14694 \family default
14695 は,
14696 \emph on
14697 article (koma-script)
14698 \emph default
14699 には収録されていません.
14700 \end_layout
14701
14702 \begin_layout Standard
14703 以下の各環境は,標準の
14704 \family sans
14705 タイトル
14706 \family default
14707
14708 \family sans
14709 著者
14710 \family default
14711
14712 \family sans
14713 日付
14714 \family default
14715 とともに文書のタイトル領域を形成します.これらは,最初の「通常の」段落よりも前に置かれる必要があります
14716 \begin_inset Foot
14717 status collapsed
14718
14719 \begin_layout Plain Layout
14720 つまり,対応する\SpecialChar LaTeX
14721 コマンドが
14722 \family typewriter
14723
14724 \backslash
14725 maketitle
14726 \family default
14727 コマンドよりも前に現れなくてはなりません.
14728 \end_layout
14729
14730 \end_inset
14731
14732 .これらの環境が2度以上使用された場合には,後に使用されたものが前のものを上書きします.つまり最後に使用したもののみが有効になります.しかしながら,
14733 \family sans
14734 タイトル
14735 \family default
14736
14737 \family sans
14738 著者
14739 \family default
14740
14741 \family sans
14742 日付
14743 \family default
14744 のような異なる環境の順序を変更しても,生成された文書には何の効果も生じません.
14745 \end_layout
14746
14747 \begin_layout Itemize
14748
14749 \family sans
14750 主題
14751 \family default
14752 :通常のタイトル部(
14753 \family sans
14754 タイトル
14755 \family default
14756
14757 \family sans
14758 著者
14759 \family default
14760
14761 \family sans
14762 日付
14763 \family default
14764 )の上に,文書の主題用の中央揃えの段落を生成します.
14765 \end_layout
14766
14767 \begin_layout Itemize
14768
14769 \family sans
14770 出版社
14771 \family default
14772 :通常のタイトル部(
14773 \family sans
14774 タイトル
14775 \family default
14776
14777 \family sans
14778 著者
14779 \family default
14780
14781 \family sans
14782 日付
14783 \family default
14784 )の下に,出版社名用の中央揃えの段落を生成します.
14785 \end_layout
14786
14787 \begin_layout Itemize
14788
14789 \family sans
14790 献呈
14791 \family default
14792
14793 \emph on
14794 report (koma-script)
14795 \emph default
14796
14797 \emph on
14798 book (koma-script)
14799 \emph default
14800 では,タイトル頁の次に,献辞用の中央揃えの段落を独立した頁として生成します.
14801 \emph on
14802 article (koma-script)
14803 \emph default
14804 の場合は,通常のタイトル部(
14805 \family sans
14806 タイトル
14807 \family default
14808
14809 \family sans
14810 著者
14811 \family default
14812
14813 \family sans
14814 日付
14815 \family default
14816 )の下に献辞用の中央揃えの段落を生成します.
14817 \end_layout
14818
14819 \begin_layout Itemize
14820
14821 \family sans
14822 タイトル頭書き
14823 \family default
14824 :通常のタイトル部(
14825 \family sans
14826 タイトル
14827 \family default
14828
14829 \family sans
14830 著者
14831 \family default
14832
14833 \family sans
14834 日付
14835 \family default
14836 )の上に,文書頭書き用の左揃えの段落を生成します.
14837 \end_layout
14838
14839 \begin_layout Itemize
14840
14841 \family sans
14842 扉裏上部
14843 \family default
14844
14845 \emph on
14846 report (koma-script)
14847 \emph default
14848 や 
14849 \emph on
14850 book (koma-script)
14851 \emph default
14852 の両面印刷において,扉裏上部に左揃え段落を生成します.片面印刷や,
14853 \emph on
14854 article (koma-script)
14855 \emph default
14856 では何の効果も生じません.
14857 \end_layout
14858
14859 \begin_layout Itemize
14860
14861 \family sans
14862 扉裏下部
14863 \family default
14864
14865 \emph on
14866 report (koma-script)
14867 \emph default
14868 や 
14869 \emph on
14870 book (koma-script)
14871 \emph default
14872 の両面印刷において,扉裏下部に左揃え段落を生成します.片面印刷や,
14873 \emph on
14874 article (koma-script)
14875 \emph default
14876 では何の効果も生じません.
14877 \end_layout
14878
14879 \begin_layout Itemize
14880
14881 \family sans
14882 追加タイトル
14883 \family default
14884 :実際の文書の前に,整形を行わない段落から成る,特殊な「汚い」ページを生成します.
14885 \end_layout
14886
14887 \begin_layout Standard
14888 文書クラス
14889 \emph on
14890 article (koma-script)
14891 \emph default
14892
14893 \emph on
14894 report (koma-script)
14895 \emph default
14896
14897 \emph on
14898 book (koma-script)
14899 \emph default
14900 の 各レイアウトファイルは,
14901 \family typewriter
14902 scrmacros.inc
14903 \family default
14904 ファイルを読み込みます.このファイルは,ユーザ環境を定義する場所として想定されています.s
14905 \family typewriter
14906 crmacros.inc
14907 \family default
14908 を,個人用レイアウトディレクトリにコピーして編集してください!
14909 \end_layout
14910
14911 \begin_layout Subsection
14912 letter (koma-script)
14913 \end_layout
14914
14915 \begin_layout Standard
14916 \noindent
14917
14918 \lang english
14919 Note: This section discusses the obsolete 
14920 \family sans
14921 KOMA-Script-Letter (v.
14922 \begin_inset space ~
14923 \end_inset
14924
14925 1)
14926 \family default
14927 , which is not even included anymore in recent KOMA releases.
14928  Please refer to the next section for the current KOMA-Script-Letter class
14929  (v.
14930 \begin_inset space ~
14931 \end_inset
14932
14933 2)!
14934 \end_layout
14935
14936 \begin_layout Standard
14937 \noindent
14938 文書クラス
14939 \emph on
14940 letter (koma-script)
14941 \emph default
14942 は,レイアウトファイル 
14943 \family typewriter
14944 scrlettr.layout
14945 \family default
14946 で実装されています.このレイアウトファイルには,対応する標準文書クラス
14947 \emph on
14948 letter
14949 \emph default
14950 の全段落環境が,部分的に変更を加えた形で収録されていますが,\SpecialChar LyX
14951 固有環境の
14952 \family sans
14953 \SpecialChar LyX
14954 コード
14955 \family default
14956
14957 \family sans
14958 コメント
14959 \family default
14960
14961 \family sans
14962 箇条書き(一覧
14963 \family default
14964 )は,新しく
14965 \family sans
14966 ラベリング
14967 \family default
14968 環境に置き換えられています.それ以外にも,標準文書クラスとは異なり,標準環境の
14969 \family sans
14970 \SpecialChar LaTeX
14971
14972 \family default
14973
14974 \family sans
14975 引用(字下げあり)
14976 \family default
14977
14978 \family sans
14979 引用(字下げなし)
14980 \family default
14981
14982 \family sans
14983 詩句
14984 \family default
14985 が収録されています.さらに,新しいletter固有環境がたくさん追加されています.
14986 \end_layout
14987
14988 \begin_layout Standard
14989 この文書クラスで作成した書簡の外観は,様々な\SpecialChar LaTeX
14990 コマンドを\SpecialChar LaTeX
14991 プリアンブルに置くことで制御することができます
14992 \begin_inset Foot
14993 status collapsed
14994
14995 \begin_layout Plain Layout
14996 例えば,名前と住所の入った書簡ヘッダの標準的外観は,きわめて頑固です.「普通の」へッダは,プリアンブル中に以下のようなコマンドを入れることで生成することができま
14997 す.
14998 \end_layout
14999
15000 \begin_layout LyX-Code
15001
15002 \backslash
15003 firsthead{
15004 \backslash
15005 parbox[b]{
15006 \backslash
15007 textwidth}
15008 \end_layout
15009
15010 \begin_layout LyX-Code
15011   {
15012 \backslash
15013 ignorespaces 
15014 \backslash
15015 fromname
15016 \backslash
15017
15018 \backslash
15019  
15020 \backslash
15021 ignorespaces 
15022 \backslash
15023 fromaddress}} 
15024 \end_layout
15025
15026 \begin_layout LyX-Code
15027
15028 \backslash
15029 nexthead{
15030 \backslash
15031 parbox[b]{
15032 \backslash
15033 textwidth}
15034 \end_layout
15035
15036 \begin_layout LyX-Code
15037   {
15038 \backslash
15039 ignorespaces 
15040 \backslash
15041 fromname 
15042 \backslash
15043 hfill 
15044 \backslash
15045 ignorespaces 
15046 \backslash
15047 pagename
15048 \backslash
15049
15050 \end_layout
15051
15052 \begin_layout LyX-Code
15053
15054 \backslash
15055 thepage}}
15056 \end_layout
15057
15058 \end_inset
15059
15060 .これらの\SpecialChar LaTeX
15061 コマンドのドイツ語での詳細な説明は,Koma-Scriptの取扱説明書
15062 \emph on
15063 scrguide
15064 \emph default
15065 にあります.この方法で,書簡の著者は,個人用書簡レイアウトを作ることができます.
15066 \end_layout
15067
15068 \begin_layout Standard
15069
15070 \family sans
15071 書簡
15072 \family default
15073 環境および
15074 \family sans
15075 頭語
15076 \family default
15077 環境は,書簡の冒頭部を定義するもので,すべての書簡で使用しなくてはなりません.\SpecialChar LyX
15078 文書クラスでは,これらの環境を強調するために,左余白にそれぞれ
15079 \shape italic
15080 L
15081 \shape default
15082
15083 \shape italic
15084 O
15085 \shape default
15086 という文字が表示されます.同一ファイル中には,複数の書簡を書くことができます.
15087 \family sans
15088 頭語
15089 \family default
15090 環境は,同じ受取人への書簡を新しく書き出すものであり,
15091 \family sans
15092 書簡
15093 \family default
15094 環境は,新しい受取人を生成するものです.
15095 \family sans
15096 結語
15097 \family default
15098
15099 \family sans
15100 PS
15101 \family default
15102
15103 \family sans
15104 CC
15105 \family default
15106
15107 \family sans
15108 Encl
15109 \family default
15110 は,通常の段落環境なので,同一の書簡中でも何度も使用することができます.
15111 \end_layout
15112
15113 \begin_layout Itemize
15114
15115 \family sans
15116 書簡
15117 \family default
15118 :受取人のための段落をつくり,暗黙に書簡の開始を定義します.
15119 \end_layout
15120
15121 \begin_layout Itemize
15122
15123 \family sans
15124 頭語
15125 \family default
15126 :敬称のための段落をつくり,暗黙に新しい書簡を開始します.
15127 \end_layout
15128
15129 \begin_layout Itemize
15130
15131 \family sans
15132 結語
15133 \family default
15134 :結語のための段落をつくります.
15135 \end_layout
15136
15137 \begin_layout Itemize
15138
15139 \family sans
15140 PS
15141 \family default
15142 :追伸のための段落をつくります.
15143 \end_layout
15144
15145 \begin_layout Itemize
15146
15147 \family sans
15148 CC
15149 \family default
15150 :同報一覧のための段落をつくります.
15151 \end_layout
15152
15153 \begin_layout Itemize
15154
15155 \family sans
15156 Encl
15157 \family default
15158 :同封物のための段落をつくります.
15159 \end_layout
15160
15161 \begin_layout Standard
15162
15163 \family sans
15164 名前
15165 \family default
15166
15167 \family sans
15168 署名
15169 \family default
15170
15171 \family sans
15172 住所
15173 \family default
15174
15175 \family sans
15176 電話
15177 \family default
15178
15179 \family sans
15180 場所(Place
15181 \family default
15182 )・
15183 \family sans
15184 返送先住所
15185 \family default
15186
15187 \family sans
15188 配送手段(Specialmail)
15189 \family default
15190
15191 \family sans
15192 場所
15193 \family default
15194
15195 \family sans
15196 タイトル
15197 \family default
15198
15199 \family sans
15200 主題
15201 \family default
15202 は,情報入力を促すラベルの付いた入力環境で,文書クラスが適切な処理を行います
15203 \begin_inset Foot
15204 status collapsed
15205
15206 \begin_layout Plain Layout
15207 上述の
15208 \family sans
15209 書簡
15210 \family default
15211
15212 \family sans
15213 頭語
15214 \family default
15215 が,これらのような入力環境でないのは,矛盾しているように感じられるかもしれません.しかしながら,これら2つの環境は特別の意味を持っているために,これらは左余白に
15216 一文字をマークした通常の段落環境として実装しました.さらに,
15217 \family sans
15218 頭語
15219 \family default
15220 環境と
15221 \family sans
15222 結語
15223 \family default
15224 環境が著しく異なって見えると対称性が損なわれることになるのも理由の一つです.
15225 \end_layout
15226
15227 \end_inset
15228
15229 .これらの環境は,対応する
15230 \family sans
15231 頭語
15232 \family default
15233 環境の前に置く必要があります.
15234 \end_layout
15235
15236 \begin_layout Standard
15237 生成された書簡の実際の外観は,特定の環境の使い方だけではなく,他の要素にも依存するため,これらの環境をWYSIWYGとして実装することには,あまり意味がありませ
15238 ん.たとえば,
15239 \family sans
15240 署名
15241 \family default
15242 環境で入力した署名は,標準的な挙動では,同じ書簡に
15243 \family sans
15244 結語
15245 \family default
15246 環境も使用されているときのみ,書簡の出力に現れます.
15247 \family sans
15248 電話
15249 \family default
15250 環境に入力された値は,標準的な挙動では,書簡の出力には全く表示されません.書簡のヘッダを自由にデザインできることは,前出の脚注で示してあります.
15251 \end_layout
15252
15253 \begin_layout Standard
15254 入力環境は,空の段落として使うことができます.これは,たとえば
15255 \family sans
15256 署名
15257 \family default
15258 環境の場合に有効です.
15259 \family sans
15260 署名
15261 \family default
15262 環境を全く使用しない場合は,標準的な挙動では,
15263 \family sans
15264 名前
15265 \family default
15266 環境の値が署名として使用されますが,空の
15267 \family sans
15268 署名
15269 \family default
15270 環境を作成しておくと,署名の値は無定義となりません.
15271 \end_layout
15272
15273 \begin_layout Standard
15274 入力環境を使用すると,個人データ(名前や住所など)が既に入力された入力環境と,後から入力するデータの入力環境を備えた,書簡のひな型を作成することができます.
15275 \end_layout
15276
15277 \begin_layout Itemize
15278
15279 \family sans
15280 名前
15281 \family default
15282 :送り主の名前.標準的な挙動では,書簡のヘッダ部にスモールキャップ体の中央揃えの段落として表示されます.
15283 \end_layout
15284
15285 \begin_layout Itemize
15286
15287 \family sans
15288 署名
15289 \family default
15290 :送り主の署名.標準的な挙動では,
15291 \family sans
15292 結語
15293 \family default
15294 環境の下に表示されます.
15295 \family sans
15296 署名
15297 \family default
15298 環境を使用しないと,代わりに
15299 \family sans
15300 名前
15301 \family default
15302 環境の値が表示されます.
15303 \end_layout
15304
15305 \begin_layout Itemize
15306
15307 \family sans
15308 住所
15309 \family default
15310 :送り主の住所.標準的な挙動では,書簡ヘッダの送り主の名前の下に中央揃えの段落として表示されます.
15311 \end_layout
15312
15313 \begin_layout Itemize
15314
15315 \family sans
15316 電話
15317 \family default
15318 :送り主の電話番号.標準的な挙動では,\SpecialChar LaTeX
15319 変数
15320 \family typewriter
15321
15322 \backslash
15323 telephonenum
15324 \family default
15325 を設定するだけです.
15326 \end_layout
15327
15328 \begin_layout Itemize
15329
15330 \family sans
15331 場所(Place)
15332 \family default
15333 :書簡を書いた場所.
15334 \end_layout
15335
15336 \begin_layout Itemize
15337
15338 \family sans
15339 日付
15340 \family default
15341 :書簡を書いた日付.
15342 \family sans
15343 場所(Place)
15344 \family default
15345
15346 \family sans
15347 日付
15348 \family default
15349 は,標準的な挙動では,受取人フィールドの下に,単一の右揃え行として場所と日付を生成します.空の
15350 \family sans
15351 日付
15352 \family default
15353 環境を作成しておくと,
15354 \family sans
15355 場所(Place)
15356 \family default
15357 の値如何に関わらず,場所も日付も表示されません.
15358 \family sans
15359 日付
15360 \family default
15361 環境を使用しない場合には,書簡を出力した日付が使用されます.
15362 \end_layout
15363
15364 \begin_layout Itemize
15365
15366 \family sans
15367 返送先住所
15368 \family default
15369 :送り主の返送先住所.標準的な挙動では,受取人の上に小文字のサンセリフ体フォントで表示されます.
15370 \end_layout
15371
15372 \begin_layout Itemize
15373
15374 \family sans
15375 特別便
15376 \family default
15377 :特別便の情報.標準的な挙動では,受取人フィールドの上かつ返送先住所の下に,下線付きで表示されます.
15378 \end_layout
15379
15380 \begin_layout Itemize
15381
15382 \family sans
15383 場所
15384 \family default
15385 :追加情報.標準的な挙動では,受取人フィールドの下の右側に表示されます.
15386 \end_layout
15387
15388 \begin_layout Itemize
15389
15390 \family sans
15391 タイトル
15392 \family default
15393 :書簡の題名.標準的な挙動では,主題の上に大きなボールド体サンセリフフォントで表示されます.
15394 \end_layout
15395
15396 \begin_layout Itemize
15397
15398 \family sans
15399 主題
15400 \family default
15401 :書簡の主題.標準的な挙動では,
15402 \family sans
15403 頭語
15404 \family default
15405 環境の上にボールド体で表示されます.
15406 \end_layout
15407
15408 \begin_layout Standard
15409
15410 \family sans
15411 Yourref・Yourmail・Myref・顧客・インボイス
15412 \family default
15413 といった環境は,
15414 \family sans
15415 タイトル
15416 \family default
15417 行の上に「Your ref.」・「Your letter of」・「Our ref.」・「Customer no.」・「Invoice no.」・「Date」といったフ
15418 ィールド行を持つ,ビジネス書簡を作成します.日付フィールドには,
15419 \family sans
15420 日付
15421 \family default
15422 環境の値が使用されます.しかしながら,これらの「ビジネス書簡環境」の一つを使用した場合には,
15423 \family sans
15424 場所(Place)
15425 \family default
15426 の値は書簡には表示されなくなり,\SpecialChar LaTeX
15427 変数
15428 \family typewriter
15429
15430 \backslash
15431 fromplace
15432 \family default
15433 が設定させるだけになります.通常時に,受取人フィールドの下に右揃えで出力される場所と日付の出力は,抑制されます.これらのビジネス環境は,ラベル付きの入力環境とし
15434 て実装されており,対応する
15435 \family sans
15436 頭語
15437 \family default
15438 環境よりも前に置く必要があります.
15439 \end_layout
15440
15441 \begin_layout Itemize
15442
15443 \family sans
15444 Yourref
15445 \family default
15446 : Your ref.
15447 \end_layout
15448
15449 \begin_layout Itemize
15450
15451 \family sans
15452 Yourmail
15453 \family default
15454 : Your letter of.
15455 \end_layout
15456
15457 \begin_layout Itemize
15458
15459 \family sans
15460 Myref
15461 \family default
15462 : Our ref.
15463 \end_layout
15464
15465 \begin_layout Itemize
15466
15467 \family sans
15468 Customer
15469 \family default
15470 : Customer no.
15471 \end_layout
15472
15473 \begin_layout Itemize
15474
15475 \family sans
15476 Invoice
15477 \family default
15478 : Invoice no.
15479 \end_layout
15480
15481 \begin_layout Subsection
15482 新しいletterクラス:letter (koma-script v.2)
15483 \end_layout
15484
15485 \begin_layout Standard
15486 by 
15487 \noun on
15488 Jürgen Spitzmüller
15489 \begin_inset VSpace medskip
15490 \end_inset
15491
15492
15493 \end_layout
15494
15495 \begin_layout Standard
15496 \noindent
15497 Koma-Script第2.8版では,新しいletterクラス
15498 \family typewriter
15499 scrlttr2
15500 \family default
15501 が導入されたため,
15502 \family typewriter
15503 scrlettr
15504 \family default
15505 は廃止されてサポート対象外となりました.これは—\SpecialChar LaTeX
15506 側で—全く新しいインターフェイスを持っており,旧クラスとは互換性がありません.したがって,\SpecialChar LyX
15507 は両者をサポートしてい
15508 ますが,新しい方のクラスを使用することを推奨します.
15509 \end_layout
15510
15511 \begin_layout Standard
15512 このクラスは,
15513 \emph on
15514 letter (koma-script)
15515 \emph default
15516 と同一の機能に加えて,新しい機能をいくつかサポートしています.基本となる項目は,
15517 \family sans
15518 住所
15519 \family default
15520 (受取人の住所,旧レイアウトの
15521 \family sans
15522 書簡
15523 \family default
15524 と同じ)・
15525 \family sans
15526 頭語
15527 \family default
15528
15529 \family sans
15530 結語
15531 \family default
15532 です.
15533 \family sans
15534 次の住所
15535 \family default
15536 は別の書簡を新しく開始します(つまり一文書あたり複数の書簡を書くことができます).新しく付け加えられた項目は,送り主の
15537 \family sans
15538 電子メール
15539 \family default
15540
15541 \family sans
15542 URL
15543 \family default
15544
15545 \family sans
15546 ファックス
15547 \family default
15548
15549 \family sans
15550 銀行
15551 \family default
15552 ,およびヘッダに(
15553 \family sans
15554 挿入\SpecialChar menuseparator
15555
15556 \family default
15557 で)
15558 \family sans
15559 ロゴ
15560 \family default
15561 を入れることができるようになった点です.
15562 \end_layout
15563
15564 \begin_layout Standard
15565 しかしながら,もっとも大きな改善は,書簡のレイアウトを,ほとんどどんなニーズにも合わせて設定できるようになった点でしょう.これはプリアンブルか,クラスオプション
15566 として読み込まれる特別なスタイルファイル(「レタークラスオプション」,拡張子
15567 \family typewriter
15568 *.lco
15569 \family default
15570 )によって設定することができます
15571 \begin_inset Foot
15572 status collapsed
15573
15574 \begin_layout Plain Layout
15575 KOMAパッケージには,既定の
15576 \family typewriter
15577 *.lco
15578 \family default
15579 ファイルがいくつか収録されています.たとえば,ドイツの組版規則に則った
15580 \family typewriter
15581 DIN.lco
15582 \family default
15583 や,旧
15584 \family typewriter
15585 scrlettr
15586 \family default
15587 クラスの既定レイアウトを提供する
15588 \family typewriter
15589 KOMAold.lco
15590 \family default
15591 などです.たとえば後者は,
15592 \family sans
15593 文書\SpecialChar menuseparator
15594 設定\SpecialChar menuseparator
15595 文書クラス\SpecialChar menuseparator
15596 クラスオプション
15597 \family default
15598 フィールドにクラスオプション
15599 \family typewriter
15600 KOMAold
15601 \family default
15602 を加えることで読み込むことができます.
15603 \end_layout
15604
15605 \end_inset
15606
15607 .用例としては,\SpecialChar LyX
15608 に収録されているひな型
15609 \emph on
15610 koma-letter2
15611 \emph default
15612 をご覧ください.詳細な解説は,Koma-Script取扱説明書(
15613 \emph on
15614 scrguide
15615 \emph default
15616 )にあります.
15617 \end_layout
15618
15619 \begin_layout Subsection
15620 問題点
15621 \end_layout
15622
15623 \begin_layout Standard
15624 Koma-Script文書クラスを\SpecialChar LyX
15625 上に表示する上で,\SpecialChar LyX
15626 の内部処理が若干の問題を生じめます.
15627 \end_layout
15628
15629 \begin_layout Itemize
15630
15631 \family sans
15632
15633 \family default
15634 環境の章番号は,章見出しと同じ行ではなく,その上に表示されます.これは,レイアウトファイル中の
15635 \family sans
15636 Counter_Chapter
15637 \family default
15638 ラベル型に対する\SpecialChar LyX
15639 の内部処理が原因です.
15640 \end_layout
15641
15642 \begin_layout Itemize
15643
15644 \family sans
15645 章(addchap)
15646 \family default
15647
15648 \family sans
15649 節(addsec)
15650 \family default
15651 環境の見出しは,「本当の」\SpecialChar LaTeX
15652 の目次には追加されますが,\SpecialChar LyX
15653 の目次(
15654 \family sans
15655 移動
15656 \family default
15657 メニュー)には追加されません.
15658 \end_layout
15659
15660 \begin_layout Itemize
15661
15662 \emph on
15663 letter
15664 \emph default
15665 文書クラスでの段落は,垂直スペースによる段落区切りで表示され,字下げはされません.これが標準的な挙動となっていて,特別な\SpecialChar LaTeX
15666 コマンドは必要ありません.しかし,
15667 \family sans
15668 文書\SpecialChar menuseparator
15669 設定
15670 \family default
15671 ダイアログでは,対応するラジオボタンは
15672 \family sans
15673 字下げ
15674 \family default
15675 に設定されています.
15676 \family sans
15677 垂直スペース
15678 \family default
15679 は,隙間を空けるために,文書に\SpecialChar LaTeX
15680 コマンドをつねに追加するようになっていますが,この文書クラスの場合には,そのような挙動が望まれないためです.
15681 \end_layout
15682
15683 \begin_layout Section
15684 Memoir
15685 \end_layout
15686
15687 \begin_layout Standard
15688
15689 \noun on
15690 Jürgen Spitzmüller
15691 \noun default
15692
15693 \end_layout
15694
15695 \begin_layout Subsection
15696 概観
15697 \end_layout
15698
15699 \begin_layout Standard
15700 Memoirは,非常に強力で,着実に改良が加えられている文書クラスであり,フィクションとノンフィクションの文学作品用に設計されています.その目的は,ユーザーに,
15701 文書の組版に関して最大限の裁量を得させることにあります.Memoirは,標準bookクラスに基づいていますが,articleクラスをエミュレートすることもできま
15702 す(以下参照).
15703 \end_layout
15704
15705 \begin_layout Standard
15706 Memoir開発者であるPeter Wilsonは,\SpecialChar LaTeX
15707 の世界での,多くの便利なパッケージの作者として知られていますが,それらのほとんどは,Memoirに統合されま
15708 した.このため,章のデザインや,目次や付録などのレイアウトを,はるかに簡単に行うことができます.しかしながら,\SpecialChar LyX
15709 は,これらすべての素晴らしい機能をネイティブでサポ
15710 ートしているわけではありません.これらのうちいくつかは,将来のリリースで追加されるかもしれませんが
15711 \begin_inset Foot
15712 status collapsed
15713
15714 \begin_layout Plain Layout
15715 もし提案があれば,ぜひ
15716 \begin_inset Flex URL
15717 status collapsed
15718
15719 \begin_layout Plain Layout
15720
15721 lyx-devel@lists.lyx.org
15722 \end_layout
15723
15724 \end_inset
15725
15726 までお送り下さい.
15727 \end_layout
15728
15729 \end_inset
15730
15731 ,\SpecialChar LyX
15732 のフレームワークが持つ制約のために,おそらく決して追加されることのないと考えられるものも多数あります.もちろん,ネイティブな\SpecialChar LaTeX
15733 コマンド(\SpecialChar TeX
15734 コード
15735 \begin_inset Foot
15736 status collapsed
15737
15738 \begin_layout Plain Layout
15739 【参考】詳細は,第
15740 \begin_inset CommandInset ref
15741 LatexCommand ref
15742 reference "sec:LaTeXコードを挿入する"
15743
15744 \end_inset
15745
15746 節参照.
15747 \end_layout
15748
15749 \end_inset
15750
15751 )の助けを借りれば,全機能を使用できます.この節では,\SpecialChar LyX
15752 がネイティブにサポートしている機能についてのみ,列挙するものとします.詳細な説明(および他の機能)について
15753 は,Memoirクラスの詳しい取扱説明書
15754 \begin_inset Foot
15755 status collapsed
15756
15757 \begin_layout Plain Layout
15758 【参考】
15759 \begin_inset Flex URL
15760 status collapsed
15761
15762 \begin_layout Plain Layout
15763
15764 CTAN:/macros/latex/memoir/memman.pdf
15765 \end_layout
15766
15767 \end_inset
15768
15769
15770 \end_layout
15771
15772 \end_inset
15773
15774 をご覧になることをお勧めします.この取扱説明書は,本クラスのユーザーの手引きであるのみに留まらず,良い組版に関する包括的な解説であり,それ自身が良い組版の傑出し
15775 た用例となっています.
15776 \end_layout
15777
15778 \begin_layout Subsection
15779 基本的な機能と制約
15780 \end_layout
15781
15782 \begin_layout Standard
15783 Memoirは,基本的に,標準bookクラスの全機能をサポートしています.しかしながら,以下に示すような若干の違いがあります.
15784 \end_layout
15785
15786 \begin_layout Description
15787 フォント寸法: Memoirでは,9・10・11・12・14・17と,より広い範囲のフォント寸法が使用可能です.
15788 \end_layout
15789
15790 \begin_layout Description
15791 ページ様式: Memoirパッケージとfancyhdrパッケージとのコマンドの衝突のため(両パッケージは同じ名前のコマンドを定義しているため,\SpecialChar LaTeX
15792 が混乱させられます
15793 ),fancyページ様式は使用できません.その代わり,Memoirには,多くの独自のページ様
15794 \family sans
15795 \lang english
15796 Document\SpecialChar menuseparator
15797 Settings\SpecialChar menuseparator
15798 Page
15799 \begin_inset space ~
15800 \end_inset
15801
15802 Style
15803 \family default
15804 \lang japanese
15805 ).これらを章題ページに使用したい場合には,コマンド
15806 \family typewriter
15807
15808 \backslash
15809 chapterstyle
15810 \family default
15811 を,本文またはプリアンブルに記述する必要があります(例えば,
15812 \family typewriter
15813
15814 \backslash
15815 chapterstyle{companion}
15816 \family default
15817 など).
15818 \end_layout
15819
15820 \begin_layout Description
15821 節分け: 標準クラスでは,節分けコマンド(章・節・小節等)は,非必須引数を一つ取ることができます.これを用いて,目次やヘッダ用に別のタイトルを指定することができ
15822 ます(たとえば,タイトルが長すぎる場合などに用います).\SpecialChar LyX
15823 では,章や節の始めで
15824 \family sans
15825 挿入\SpecialChar menuseparator
15826 短縮タイトル
15827 \family default
15828 を使えば,これを指定することができます.一方,Memoirでは,第2の非必須引数を取ることができ,目次用のタイトルとヘッダ用のタイトルの指定を分離しています.
15829 \lang english
15830  
15831 \family sans
15832 Short Title
15833 \family default
15834  variants in the 
15835 \family sans
15836 Insert
15837 \family default
15838  menu.
15839 \end_layout
15840
15841 \begin_layout Description
15842 目次・図一覧・表一覧: 標準クラス(および他の多くのクラス)では,目次と図一覧および表一覧は,自動的に新規頁に置かれます.Memoirは,これとは別の方針を採り
15843 ます.改頁を行いたい場合は,手動で頁区切りを入れなくてはなりません.
15844 \end_layout
15845
15846 \begin_layout Description
15847 タイトル頁: 理由は不明ですが,Memoirはタイトルページに丁付けを行います(標準クラスでは,タイトルページは「empty」様式).タイトル頁に丁付けを行いた
15848 くない場合には,プリアンブルに
15849 \family typewriter
15850
15851 \backslash
15852 aliaspagestyle{title}{empty}
15853 \family default
15854 と入力してください.
15855 \end_layout
15856
15857 \begin_layout Description
15858 Article: クラスオプション
15859 \emph on
15860 article
15861 \emph default
15862 を用いる(
15863 \family sans
15864 \lang english
15865 Document\SpecialChar menuseparator
15866 Settings\SpecialChar menuseparator
15867 Class Settings\SpecialChar menuseparator
15868 Custom
15869 \begin_inset space ~
15870 \end_inset
15871
15872 Options
15873 \family default
15874 \lang japanese
15875 で入力)と,article様式をエミュレートできます.すなわち,(脚注・図・表等の)カウンタは,章毎にリセットされず,次の章は頁を改めず(ただし,「本物の」ar
15876 ticleクラスとは違って,頁を改めることも可),部はbookクラスと同様に,独立の頁を使用します.
15877 \end_layout
15878
15879 \begin_layout Description
15880 Oldfontcommands: \SpecialChar LaTeX
15881 旧2.09版で使用されていた旧いフォントコマンド(
15882 \family typewriter
15883
15884 \backslash
15885 rm
15886 \family default
15887
15888 \family typewriter
15889
15890 \backslash
15891 it
15892 \family default
15893 など)は,Memoirにおいては,既定では使用することができません.Memoirがこれらのコマンドを検知すると,エラーを発して\SpecialChar LaTeX
15894 を停止させます.しかし,クラスオプ
15895 ション
15896 \emph on
15897 oldfontcommands
15898 \emph default
15899 を指定すると,これらのコマンドが容認され,エラーの代わりに警告を発するのみとなります(これによって,少なくとも\SpecialChar LaTeX
15900 は停止しなくなります).まだ,多くのパッケージと,
15901 就中多くのBib\SpecialChar TeX
15902 スタイルファイルが,これらのコマンドを使用しているので,我々はこのオプションを既定で使うこととしました.
15903 \end_layout
15904
15905 \begin_layout Subsection
15906 追加された機能
15907 \end_layout
15908
15909 \begin_layout Standard
15910 \SpecialChar LyX
15911 でサポートされる機能(今のところそれほど多くはありません)を簡単に説明しましょう.詳しくはMemoirの取扱説明書
15912 \begin_inset Foot
15913 status collapsed
15914
15915 \begin_layout Plain Layout
15916 \begin_inset Flex URL
15917 status collapsed
15918
15919 \begin_layout Plain Layout
15920
15921 CTAN:/macros/latex/memoir/memman.pdf
15922 \end_layout
15923
15924 \end_inset
15925
15926
15927 \end_layout
15928
15929 \end_inset
15930
15931 を見てください.
15932 \end_layout
15933
15934 \begin_layout Description
15935 概要: 概要が,追加された機能として扱われているのを不思議に思われるかもしれませんが,bookクラスとしては追加された機能なのです.通常bookクラスには概要は
15936 ないのですが,memoirにはあります.これは,どこでも何回でも自由に使うことができます.
15937 \end_layout
15938
15939 \begin_layout Description
15940 章要約: この古い組版様式はご覧になったことがあるかも知れません.章の内容が,見出しの下と目次に要約されているものです(たとえば,「我らが英雄がトロヤに到着する
15941 .彼は友人を失うが,新たな友人を得る.」など).章要約(chapterprecis)はこれを行います.したがって,章要約は章の下でのみ意味を持ちます.
15942 \end_layout
15943
15944 \begin_layout Description
15945 題辞: 題辞(epigraph)は章頭の,気の利いた標語やモットーです.題辞環境は,そのような標語を組む洗練された方法を提供します.標語本体(本文)とその著者(
15946 出典)は,短い線で区切られます.
15947 \lang english
15948  The motto itself (text) and its (optional) author (source) are divided
15949  by a short line.
15950  The author (source) can be inserted via 
15951 \family sans
15952 Insert\SpecialChar menuseparator
15953 Epigraph Source
15954 \family default
15955 \emph on
15956 .
15957 \end_layout
15958
15959 \begin_layout Description
15960 詩題: Memoirには(複雑で隠喩的なものも含めて)詩を組版するための多くの機能がありますが,\SpecialChar LyX
15961 は,そのうちいくつかしかサポートしていません.詩題はその一つです
15962 .これは詩用の中央揃えタイトルで,目次にも表示されます(詩句が詩の標準環境です.Memoirには,詩句の拡張版もありますが,これらを使うためには\SpecialChar TeX
15963 コードを使用しな
15964 くてはなりません.これらの環境は通常の詩句環境の中に入れ子にしなくてはならないのですが,\SpecialChar LyX
15965 ではそれができないためです).
15966 \end_layout
15967
15968 \begin_layout Description
15969 詩題*: 目次に現れない他は詩題と同じです.
15970 \end_layout
15971
15972 \begin_layout Section
15973 Article (mwart)・book (mwbk)・report (mwrep)
15974 \begin_inset Argument status
15975 status collapsed
15976
15977 \begin_layout Plain Layout
15978 The 
15979 \family typewriter
15980 mw
15981 \family default
15982  Classes
15983 \end_layout
15984
15985 \end_inset
15986
15987
15988 \end_layout
15989
15990 \begin_layout Standard
15991
15992 \noun on
15993 Tomasz Luczak
15994 \noun default
15995
15996 \end_layout
15997
15998 \begin_layout Standard
15999 \SpecialChar LyX
16000 文書クラス
16001 \emph on
16002 article (mwart)
16003 \emph default
16004
16005 \emph on
16006 report (mwrep)・book
16007 \emph default
16008  
16009 \emph on
16010 (mwbk)
16011 \emph default
16012 は,それぞれ\SpecialChar LaTeX
16013 文書クラス
16014 \family typewriter
16015 mwart.cls
16016 \family default
16017
16018 \family typewriter
16019 mwrep.cls
16020 \family default
16021
16022 \family typewriter
16023 mwbk.cls
16024 \family default
16025 に対応しています.これらは,標準の
16026 \family typewriter
16027 article.cls
16028 \family default
16029
16030 \family typewriter
16031 report.cls
16032 \family default
16033
16034 \family typewriter
16035 book.cls
16036 \family default
16037 を代替するものであり,多くの点で,ポーランド語の組版慣習によく適合しています.
16038 \end_layout
16039
16040 \begin_layout Standard
16041 基本的な違いは,次の点です.
16042 \end_layout
16043
16044 \begin_layout Itemize
16045 付番のない見出し(
16046 \family sans
16047 節*
16048 \family default
16049 などの星付き)も目次に加えられます.
16050 \end_layout
16051
16052 \begin_layout Itemize
16053 以下のページスタイルの追加
16054 \end_layout
16055
16056 \begin_deeper
16057 \begin_layout Description
16058 uheadings 分離線付きヘッダ
16059 \end_layout
16060
16061 \begin_layout Description
16062 myheadings 
16063 \family typewriter
16064
16065 \backslash
16066 markright
16067 \family default
16068 コマンドおよび
16069 \family typewriter
16070
16071 \backslash
16072 markboth
16073 \family default
16074 コマンドで設定するカスタムヘッダ
16075 \end_layout
16076
16077 \begin_layout Description
16078 myuheadings 分離線付きカスタムヘッダ
16079 \end_layout
16080
16081 \begin_layout Description
16082 outer ページの外側にページ番号
16083 \end_layout
16084
16085 \end_deeper
16086 \begin_layout Itemize
16087 オプション
16088 \end_layout
16089
16090 \begin_deeper
16091 \begin_layout Description
16092 rmheadings セリフ体見出し — 既定
16093 \end_layout
16094
16095 \begin_layout Description
16096 sfheadings サンセリフ体見出し
16097 \end_layout
16098
16099 \begin_layout Description
16100 authortitle タイトルページは,著者名・タイトルの順で配置 — 既定
16101 \end_layout
16102
16103 \begin_layout Description
16104 titleauthor タイトルページは,タイトル・著者名の順で配置
16105 \end_layout
16106
16107 \begin_layout Description
16108 withmarginpar ページ上に余白のための場所を確保
16109 \end_layout
16110
16111 \end_deeper
16112 \begin_layout Section
16113 Paper
16114 \end_layout
16115
16116 \begin_layout Standard
16117
16118 \family sans
16119 paper
16120 \family default
16121 文書クラスは標準
16122 \family sans
16123 article
16124 \family default
16125 クラスの代替となるものです.これは
16126 \family sans
16127 同様の
16128 \family default
16129 機能を提供しますが,サンセリフ体の節見出し・ヘッディング等を持つこちらのレイアウトの方が気に入るかも知れません.
16130 \end_layout
16131
16132 \begin_layout Section
16133 Rev\SpecialChar TeX
16134 4
16135 \end_layout
16136
16137 \begin_layout Standard
16138 by 
16139 \noun on
16140 Amir Karger
16141 \end_layout
16142
16143 \begin_layout Standard
16144 \begin_inset VSpace bigskip
16145 \end_inset
16146
16147
16148 \end_layout
16149
16150 \begin_layout Standard
16151 \noindent
16152
16153 \family sans
16154 Revtex
16155 \begin_inset space ~
16156 \end_inset
16157
16158 4
16159 \family default
16160 テキストクラスは,アメリカ物理学会のRev\SpecialChar TeX
16161  4.0(1999年5月の
16162 \begin_inset Formula $\beta$
16163 \end_inset
16164
16165 リリース)クラスで動作します.
16166 \end_layout
16167
16168 \begin_layout Standard
16169 \SpecialChar LyX
16170 には,Rev\SpecialChar TeX
16171  3.1で動作する
16172 \family sans
16173 Revtex
16174 \family default
16175 テキストクラスもあります.しかしながら,第3.1版は\SpecialChar LaTeX
16176  2.09で動作するものであり,基本的に時代遅れなものになっています.\SpecialChar LyX
16177 は\SpecialChar LaTeX2e
16178 を必要とすることから,第3.1版は\SpecialChar LyX
16179 とうまく
16180 協調しないことを意味しますが,動作するようには調整してあります.Rev\SpecialChar TeX
16181  4.0は,\SpecialChar LaTeX2e
16182 で素直に動作するようにデザインされているので,\SpecialChar LyX
16183
16184 \family sans
16185 Rev\SpecialChar TeX
16186
16187 \begin_inset space ~
16188 \end_inset
16189
16190 4
16191 \family default
16192 テキストクラスの組で使用するのは,たいへん簡単です.
16193 \end_layout
16194
16195 \begin_layout Standard
16196 この取扱説明書は,Rev\SpecialChar TeX
16197  4.0の説明書の
16198 \emph on
16199 補完
16200 \emph default
16201 として使用されることを前提としています.したがって,ここではRev\SpecialChar TeX
16202 固有マクロの説明はせず,必要な場合にはプリアンブルに何と書けば良いかを知っているものとして説明
16203 します.
16204 \end_layout
16205
16206 \begin_layout Subsection
16207 導入
16208 \end_layout
16209
16210 \begin_layout Standard
16211 Rev\SpecialChar TeX
16212  4パッケージのREADMEファイルにあるとおり,ともかくRev\SpecialChar TeX
16213  4を導入しなくてはなりません.パッケージは,The Rev\SpecialChar TeX
16214  4 Web
16215  Site 
16216 \begin_inset Flex URL
16217 status collapsed
16218
16219 \begin_layout Plain Layout
16220
16221 http://publish.aps.org/revtex4/
16222 \end_layout
16223
16224 \end_inset
16225
16226 から入手することができます.これを\SpecialChar LaTeX
16227 が検出することのできる場所に導入してください.それから,適当に選んだディレクトリ(もといクラスファイルを導入したのとは異なるデ
16228 ィレクトリ)で簡単なRev\SpecialChar TeX
16229  4文書を \SpecialChar LaTeX
16230 でコンパイルできるかどうか確認してください.この後,\SpecialChar LyX
16231 を環境構成すると,クラスファイルを検出し,Rev\SpecialChar TeX
16232 4テキストクラスが使用
16233 できるようになるはずです.
16234 \end_layout
16235
16236 \begin_layout Standard
16237 使い始めるには,
16238 \family typewriter
16239 tex2lyx
16240 \family default
16241 を使ってRev\SpecialChar TeX
16242  4文書を読み込むか,またはひな型ディレクトリにある
16243 \family sans
16244 Revtex
16245 \begin_inset space ~
16246 \end_inset
16247
16248 4
16249 \family default
16250 のひな型を使うのが,おそらく一番簡単な方法でしょう.
16251 \end_layout
16252
16253 \begin_layout Subsection
16254 プリアンブルに関すること
16255 \end_layout
16256
16257 \begin_layout Standard
16258
16259 \family typewriter
16260
16261 \backslash
16262 documentclass
16263 \family default
16264 に与える「preprint」や「aps」のような非必須引数は,他のクラス同様,
16265 \family sans
16266 文書\SpecialChar menuseparator
16267 設定\SpecialChar menuseparator
16268 文書クラス
16269 \family default
16270
16271 \family sans
16272 クラスオプション
16273 \family default
16274 フィールドに入れます.Rev\SpecialChar TeX
16275 では,少なくとも一つの非必須引数が必要なことに注意してください.
16276 \end_layout
16277
16278 \begin_layout Standard
16279
16280 \family typewriter
16281
16282 \backslash
16283 draft
16284 \family default
16285 など他のプリアンブルは,他のクラス同様,
16286 \family sans
16287 文書\SpecialChar menuseparator
16288 設定\SpecialChar menuseparator
16289 \SpecialChar LaTeX
16290 プリアンブル
16291 \family default
16292 に入れてください.
16293 \end_layout
16294
16295 \begin_layout Subsection
16296 レイアウト
16297 \end_layout
16298
16299 \begin_layout Standard
16300 レイアウトは,基本的にRev\SpecialChar TeX
16301 4.0のコマンドに対応しています.たとえば,Emailレイアウトは,
16302 \family typewriter
16303
16304 \backslash
16305 email{}
16306 \family default
16307 に対応しています.(少なくともRev\SpecialChar TeX
16308  4.0 Beta現在では)
16309 \family sans
16310 住所
16311 \family default
16312
16313 \family sans
16314 所属
16315 \family default
16316 はまったく同じものなので,両方を使う必要はありません
16317 \begin_inset Foot
16318 status collapsed
16319
16320 \begin_layout Plain Layout
16321 ついでながら,
16322 \family typewriter
16323 tex2lyx
16324 \family default
16325 は両方とも対応しているので,
16326 \family typewriter
16327
16328 \backslash
16329 address
16330 \family default
16331
16332 \family typewriter
16333
16334 \backslash
16335 affiliation
16336 \family default
16337 のどちらも翻訳することができます.
16338 \end_layout
16339
16340 \end_inset
16341
16342
16343 \end_layout
16344
16345 \begin_layout Subsection
16346 重要な注意
16347 \end_layout
16348
16349 \begin_layout Standard
16350 Rev\SpecialChar TeX
16351  4には,バグを引き起こしがちなために,気をつけなくてはならない特殊な面がいくつかあるため,\SpecialChar LyX
16352 ではさらに気をつけなくてはなりません.
16353 \end_layout
16354
16355 \begin_layout Standard
16356 Rev\SpecialChar TeX
16357 では,
16358 \family typewriter
16359
16360 \backslash
16361 thanks
16362 \family default
16363 コマンドは,
16364 \family typewriter
16365
16366 \backslash
16367 author
16368 \family default
16369 コマンドの
16370 \emph on
16371 外側
16372 \emph default
16373 に来なくてはなりません.\SpecialChar LyX
16374 では,独立した
16375 \family sans
16376 感謝
16377 \family default
16378 レイアウトがこの働きをします.直接
16379 \family sans
16380 ,著者
16381 \family default
16382 レイアウトに脚注を付けてしまうと,おかしなことが起こる可能性があります.詳細については,Rev\SpecialChar TeX
16383  4の取扱説明書をご覧ください.
16384 \end_layout
16385
16386 \begin_layout Standard
16387 また,
16388 \family sans
16389 著者電子メール
16390 \family default
16391
16392 \family sans
16393 著者URL・感謝(thanks)
16394 \family default
16395 レイアウトは,
16396 \family sans
16397 著者
16398 \family default
16399 レイアウトと
16400 \family sans
16401 住所(
16402 \family default
16403 または同等の
16404 \family sans
16405 所属
16406 \family default
16407 )レイアウトの間に置かなければなりません.
16408 \family sans
16409 感謝(thanks)
16410 \family default
16411
16412 \family sans
16413 住所
16414 \family default
16415 の後に置いてしまうと,\SpecialChar LaTeX
16416 はコンパイルに失敗します.
16417 \end_layout
16418
16419 \begin_layout Section
16420 Springer学術誌(
16421 \family sans
16422 svjour)
16423 \end_layout
16424
16425 \begin_layout Standard
16426
16427 \noun on
16428 Martin Vermeer
16429 \noun default
16430
16431 \end_layout
16432
16433 \begin_layout Subsection
16434 説明
16435 \end_layout
16436
16437 \begin_layout Standard
16438 これは,Springer Verlag社発行のいくつかの学術誌で使用されている書式のレイアウトファイルです.
16439 \begin_inset Flex URL
16440 status collapsed
16441
16442 \begin_layout Plain Layout
16443
16444 http://www.springer.de/author/tex/help-journals.html
16445 \end_layout
16446
16447 \end_inset
16448
16449 に必要なクラスファイル(\SpecialChar LaTeX2e
16450 用になりました)とそれに対応する学術誌の一覧があります.このレイアウトはモジュール式になっています.つまり,全ジャーナル共通部分は
16451 \family typewriter
16452 svjour.inc
16453 \family default
16454 に実装されており,各誌個別のレイアウトファイル(たとえばJournal of Geodesy用の
16455 \family typewriter
16456 svjog.layout
16457 \family default
16458 など)から取り込むことができます.
16459 \end_layout
16460
16461 \begin_layout Standard
16462 このことは,上記の学術誌一覧にある他のSpringer誌のサポートを実装するためには,
16463 \family typewriter
16464 svjog.layout
16465 \family default
16466 に書かれている指示に従って,自作の
16467 \family typewriter
16468 sv
16469 \family default
16470 <学術誌名>
16471 \family typewriter
16472 .layout
16473 \family default
16474 を書くだけで良いことを意味します.
16475 \end_layout
16476
16477 \begin_layout Standard
16478 このレイアウトは,Journal of Geodesyに対してのみ,充分な試験が為されています.
16479 \family typewriter
16480 svjour
16481 \family default
16482
16483 \family typewriter
16484 svjog
16485 \family default
16486 は,標準\SpecialChar LyX
16487 頒布版に収録済みです.関連するクラスファイルを(Springerからダウンロードして)適切なディレクトリに導入し,\SpecialChar LaTeX
16488 を再設定した後(teTeXの場合は,必
16489 要に応じてroot権限で
16490 \family typewriter
16491 texhash
16492 \family default
16493 を実行します),\SpecialChar LyX
16494 を環境構成すれば,動作するはずです.
16495 \end_layout
16496
16497 \begin_layout Subsection
16498 新スタイル
16499 \end_layout
16500
16501 \begin_layout Standard
16502 多くの定理環境 — 
16503 \family sans
16504 主張
16505 \family default
16506
16507 \family sans
16508 推論
16509 \family default
16510 ・\SpecialChar ldots
16511
16512 \family sans
16513 定理
16514 \family default
16515
16516 \end_layout
16517
16518 \begin_layout Standard
16519
16520 \family sans
16521 ヘッドノート
16522 \family default
16523
16524 \family sans
16525 献呈
16526 \family default
16527
16528 \family sans
16529 サブタイトル・ヘッダ用\SpecialChar LaTeX
16530 タイトル・ヘッダ用著者名・所属機関・メール・オフプリント・キーワード・謝辞(acknowledgements)・謝辞(acknowledg
16531 ement)
16532 \family default
16533 .詳しくは Springerのクラスファイルの説明書を読んでください.
16534 \end_layout
16535
16536 \begin_layout Subsection
16537 サポートしているジャーナル
16538 \end_layout
16539
16540 \begin_layout Itemize
16541
16542 \emph on
16543 Journal of Geodesy
16544 \emph default
16545
16546 \family typewriter
16547 svjog.layout
16548 \family default
16549  — Martin Vermeer
16550 \end_layout
16551
16552 \begin_layout Itemize
16553
16554 \emph on
16555 Probability Theory and Related Fields
16556 \emph default
16557
16558 \family typewriter
16559 svprobth.layout
16560 \family default
16561  — Jean-Marc Lasgouttes
16562 \end_layout
16563
16564 \begin_layout Standard
16565 あなた自身のレイアウトファイルをつくってください.難しくはありません.
16566 \end_layout
16567
16568 \begin_layout Subsection
16569 Credits
16570 \end_layout
16571
16572 \begin_layout Standard
16573 これらのファイルは,以前の 
16574 \family typewriter
16575 ejour2.layout
16576 \family default
16577 をもとにしています.
16578 \family typewriter
16579 ejour2.layout
16580 \family default
16581 は Springerの\SpecialChar LaTeX
16582  2.09用のスタイルファイルを使った素人細工のようなレイアウトファイルです.これらのファイルはすでにありません.Jean-Marc
16583  Lasgouttesのおかげで \SpecialChar LyX
16584 のレイアウトファイルのメカニズムをよりよく理解することができました.
16585 \end_layout
16586
16587 \begin_layout Subsection
16588 バグ
16589 \end_layout
16590
16591 \begin_layout Standard
16592 多分あります.以前の 
16593 \family typewriter
16594 ejour2
16595 \family default
16596 よりは少なくなっているとは思いますが.
16597 \end_layout
16598
16599 \begin_layout Section
16600 Slides (別名
16601 \noun on
16602 Sli\SpecialChar TeX
16603
16604 \noun default
16605 )
16606 \begin_inset Foot
16607 status collapsed
16608
16609 \begin_layout Plain Layout
16610 (訳註)この節の内容は,全般的に古くなっています.
16611 \end_layout
16612
16613 \end_inset
16614
16615
16616 \begin_inset CommandInset label
16617 LatexCommand label
16618 name "sec:slitex"
16619
16620 \end_inset
16621
16622
16623 \end_layout
16624
16625 \begin_layout Standard
16626
16627 \noun on
16628 John Weiss
16629 \noun default
16630
16631 \end_layout
16632
16633 \begin_layout Subsection
16634 はじめに
16635 \end_layout
16636
16637 \begin_layout Standard
16638 本節では,オーバーへッドプロジェクタ用のスライドをつくるのに,\SpecialChar LyX
16639 をどのように使えばよいかを説明します.これを行う文書クラスには,既定のslideクラスと
16640 \family sans
16641 Foil\SpecialChar TeX
16642
16643 \family default
16644 スライドクラスの2つがあります.本節は前者について説明を行います.
16645 \end_layout
16646
16647 \begin_layout Standard
16648 誤解のないように,正しく明確に,もう一度言っておきます.
16649 \end_layout
16650
16651 \begin_layout Standard
16652 \begin_inset VSpace bigskip
16653 \end_inset
16654
16655
16656 \end_layout
16657
16658 \begin_layout Standard
16659 \align center
16660
16661 \size large
16662 本節は文書クラス
16663 \begin_inset Quotes eld
16664 \end_inset
16665
16666
16667 \family sans
16668 transparencies (slides)
16669 \family default
16670
16671 \begin_inset Quotes erd
16672 \end_inset
16673
16674
16675 \emph on
16676 のみ
16677 \emph default
16678 を説明しています.
16679 \end_layout
16680
16681 \begin_layout Standard
16682 \begin_inset VSpace bigskip
16683 \end_inset
16684
16685
16686 \end_layout
16687
16688 \begin_layout Standard
16689
16690 \family sans
16691 「slides (Foil\SpecialChar TeX
16692 )
16693 \family default
16694 」の説明をお探しならば,第
16695 \begin_inset CommandInset ref
16696 LatexCommand ref
16697 reference "sec:foiltex"
16698
16699 \end_inset
16700
16701 節をご覧ください.
16702 \family sans
16703 foils
16704 \family default
16705 クラス「
16706 \family sans
16707 slides (Foil\SpecialChar TeX
16708 )
16709 \family default
16710 」は,実際,本節で説明している既定
16711 \family sans
16712 slides
16713 \family default
16714 クラスよりも良いようです
16715 \begin_inset Foot
16716 status collapsed
16717
16718 \begin_layout Plain Layout
16719 \SpecialChar ldots
16720
16721 \family sans
16722 Foil\SpecialChar TeX
16723
16724 \family default
16725 の支持者からは聞いています.けれども私は使ったことがないので,本当かどうか確かめようがありません.
16726 \end_layout
16727
16728 \end_inset
16729
16730
16731 \end_layout
16732
16733 \begin_layout Standard
16734 このクラスは,旧SLI\SpecialChar TeX
16735 パッケージを\SpecialChar LaTeX2e
16736 用に改良したものです.\SpecialChar LaTeX2e
16737 頒布版すべてが,このクラス(以下では単に「
16738 \family sans
16739 slides
16740 \family default
16741 」と述べることにします)を含んでいるので,あなたもお持ちのはずです.前述の
16742 \family sans
16743 foils
16744 \family default
16745 のように,同じくオーバーへッドプロジェクタ用のスライドを生成しながら,このクラスよりも良い仕事をするクラスもあります.しかしながら,オーバーレイを生成するなど,
16746 他のクラスにはできないが
16747 \family sans
16748 slides
16749 \family default
16750 ならばできることもあります.詳しくは以下をお読みください.
16751 \end_layout
16752
16753 \begin_layout Subsection
16754 使い始めるには
16755 \begin_inset CommandInset label
16756 LatexCommand label
16757 name "sec:slidesetup"
16758
16759 \end_inset
16760
16761
16762 \end_layout
16763
16764 \begin_layout Standard
16765 当然ながら,この文書クラスを使用するには,
16766 \family sans
16767 文書\SpecialChar menuseparator
16768 設定
16769 \family default
16770 ダイアログのクラスリストから「
16771 \family sans
16772 transparencies (slides)
16773 \family default
16774 」を選択しなくてはなりません.このクラスについて,以下のように,特に知っておいた方が良いことがいくつかあります.
16775 \end_layout
16776
16777 \begin_layout Itemize
16778
16779 \family sans
16780 用紙方向
16781 \family default
16782
16783 \family sans
16784 二段組文書
16785 \family default
16786 の各オプションは,あえて変更する必要はありません.これらのオプションは,
16787 \family sans
16788 slides
16789 \family default
16790 クラスではサポートされていないので,効果がありません.
16791 \end_layout
16792
16793 \begin_layout Itemize
16794
16795 \family sans
16796 ヘディング様式
16797 \family default
16798 オプションは,このクラスでは少し異なった振る舞いをします.各選択肢とその機能は,以下の通りです.
16799 \end_layout
16800
16801 \begin_deeper
16802 \begin_layout Description
16803 プレーン(plain) 最終出力の右下隅にページ番号が付きます.
16804 \end_layout
16805
16806 \begin_layout Description
16807 設定(headings)
16808 \family sans
16809  プレーン(plain)
16810 \family default
16811 と同様ですが,それ以外にあなたが指定したタイムマーカーをすべて出力します.これが既定値です.
16812 \end_layout
16813
16814 \begin_layout Description
16815 空 最終出力には,ページ番号もタイムマーカーも位置揃えマーカーも出力されません.
16816 \end_layout
16817
16818 \end_deeper
16819 \begin_layout Itemize
16820
16821 \family sans
16822 slides
16823 \family default
16824 クラスには,もう一つ
16825 \family typewriter
16826 clock
16827 \family default
16828 というオプションがあります.これを使用するには,
16829 \family sans
16830 クラスオプション
16831 \family default
16832 に「
16833 \family typewriter
16834 clock
16835 \family default
16836 」と入力してください.
16837 \end_layout
16838
16839 \begin_deeper
16840 \begin_layout Standard
16841 このオプションを使うと,
16842 \family sans
16843 注釈
16844 \family default
16845 にタイムマーカーを加えることができます.詳細は,第
16846 \begin_inset CommandInset ref
16847 LatexCommand ref
16848 reference "sec:スライド注釈"
16849
16850 \end_inset
16851
16852 節をご覧ください.
16853 \end_layout
16854
16855 \end_deeper
16856 \begin_layout Standard
16857
16858 \family sans
16859 slides
16860 \family default
16861 クラスを用いた文書を自動的にセットアップするには,ひな型ファイル「
16862 \family typewriter
16863 slides.lyx
16864 \family default
16865 」を使用することもできます(新規ファイルを開く際に
16866 \family sans
16867 ファイル\SpecialChar menuseparator
16868 新規(ひな型使用)
16869 \family default
16870 を使用してください).ひな型ファイルには,このクラスが使用する特別な段落環境の用例も含まれています.これらについては,以下で説明します.
16871 \end_layout
16872
16873 \begin_layout Subsection
16874 段落環境
16875 \end_layout
16876
16877 \begin_layout Subsubsection
16878
16879 \family sans
16880 サポートされている環境
16881 \end_layout
16882
16883 \begin_layout Standard
16884 新しく
16885 \family sans
16886 slides
16887 \family default
16888 文書を開いたときにまず気付くのは,フォント寸法とフォント族の違いでしょう.ここでは,
16889 \family sans
16890 サンセリフ体
16891 \family default
16892 フォントの
16893 \family sans
16894 極大
16895 \family default
16896 寸法が用いられており,出力でもこのフォントが使用されます.これは,現在スライドを作成中であることの「目印」だと考えてください.出力スライドは大きなフォントを使用
16897 するため,書ける場所は少なくなります.もちろん,既定の大きな画面フォントはWYSIWYGではなく,スライドであることの目印に過ぎません.
16898 \end_layout
16899
16900 \begin_layout Standard
16901 次に気付くのは,(ツールバー左端の)段落環境プルダウンボックスが変わっていることでしょう.通常見かける環境の多くがなくなって,代わりに5つの新しい環境が入ってい
16902 ます.これは,
16903 \family sans
16904 slides
16905 \family default
16906 クラスが,標準段落環境のうち以下のものしかサポートしていないためです.
16907 \end_layout
16908
16909 \begin_layout Itemize
16910
16911 \family sans
16912 標準
16913 \end_layout
16914
16915 \begin_layout Itemize
16916
16917 \family sans
16918 箇条書き(記号)
16919 \end_layout
16920
16921 \begin_layout Itemize
16922
16923 \family sans
16924 箇条書き(連番)
16925 \end_layout
16926
16927 \begin_layout Itemize
16928
16929 \family sans
16930 箇条書き(記述)
16931 \end_layout
16932
16933 \begin_layout Itemize
16934
16935 \family sans
16936 箇条書き(一覧)
16937 \end_layout
16938
16939 \begin_layout Itemize
16940
16941 \family sans
16942 引用(字下げあり)
16943 \end_layout
16944
16945 \begin_layout Itemize
16946
16947 \family sans
16948 引用(字下げなし)
16949 \end_layout
16950
16951 \begin_layout Itemize
16952
16953 \family sans
16954 詩句
16955 \end_layout
16956
16957 \begin_layout Itemize
16958
16959 \family sans
16960 キャプション
16961 \end_layout
16962
16963 \begin_layout Itemize
16964
16965 \family sans
16966 \SpecialChar LyX
16967 コード
16968 \end_layout
16969
16970 \begin_layout Standard
16971 これ以外の標準的な環境,例えば節見出し用の環境などは
16972 \family sans
16973 slides
16974 \family default
16975 クラスでは使えません.
16976 \end_layout
16977
16978 \begin_layout Standard
16979 一方,以下の新しい環境があります.
16980 \end_layout
16981
16982 \begin_layout Itemize
16983
16984 \family sans
16985 スライド
16986 \end_layout
16987
16988 \begin_layout Itemize
16989
16990 \family sans
16991 オーバーレイ
16992 \end_layout
16993
16994 \begin_layout Itemize
16995
16996 \family sans
16997 注釈
16998 \end_layout
16999
17000 \begin_layout Itemize
17001
17002 \family sans
17003 不可視文
17004 \end_layout
17005
17006 \begin_layout Itemize
17007
17008 \family sans
17009 可視文
17010 \end_layout
17011
17012 \begin_layout Standard
17013 これら5つの環境は,\SpecialChar LyX
17014 の「機能」のために使い方に癖があります.ご存じのように,\SpecialChar LyX
17015 では,空の段落環境に他の環境を入れることができません.それ自体は素晴らしいデザインな
17016 のですが,これは,スライドを平文以外では書き始めることができないことを意味します.これを取り扱うためには,ちょっとした「\SpecialChar LaTeX
17017 マジック」が必要になります.
17018 \end_layout
17019
17020 \begin_layout Subsubsection
17021 新環境の癖
17022 \begin_inset CommandInset label
17023 LatexCommand label
17024 name "sec:スライドの癖"
17025
17026 \end_inset
17027
17028
17029 \end_layout
17030
17031 \begin_layout Standard
17032 5つの新しい環境にはすべて,\SpecialChar LyX
17033 現行版の制約に由来する癖があります.いま述べたように,\SpecialChar LyX
17034 では,環境を別の環境で開始することが禁止されています.これを回避するために,
17035 \family sans
17036 スライド
17037 \family default
17038 環境は『
17039 \emph on
17040 ユーザーの手引き
17041 \emph default
17042 』で述べられているような段落環境ではなくなっています.
17043 \end_layout
17044
17045 \begin_layout Standard
17046
17047 \family sans
17048 スライド
17049 \family default
17050
17051 \family sans
17052 オーバーレイ
17053 \family default
17054
17055 \family sans
17056 注釈
17057 \family default
17058 は「疑似環境」だとお考えください.これらは節見出しや「
17059 \family sans
17060 キャプション
17061 \family default
17062 」のように見えますが,実際には(必要なら前段落を終了して)新しい段落環境を開始します.同様に,
17063 \family sans
17064 不可視文
17065 \family default
17066
17067 \family sans
17068 可視文
17069 \family default
17070 も「疑似コマンド」とお考えください.この2つは特定のアクションを行います.
17071 \end_layout
17072
17073 \begin_layout Standard
17074
17075 \family sans
17076 スライド
17077 \family default
17078
17079 \family sans
17080 オーバーレイ
17081 \family default
17082
17083 \family sans
17084 注釈
17085 \family default
17086
17087 \family sans
17088 不可視文
17089 \family default
17090
17091 \family sans
17092 可視文
17093 \family default
17094 の5環境に共通しているのは,長めのラベルを持つことです.このラベルに続く文章—通常は段落環境の内容になるはずですが—は,
17095 \family sans
17096 スライド
17097 \family default
17098
17099 \family sans
17100 オーバーレイ
17101 \family default
17102
17103 \family sans
17104 注釈
17105 \family default
17106
17107 \family sans
17108 不可視文
17109 \family default
17110
17111 \family sans
17112 可視文
17113 \family default
17114 では,まったく意味がなく,\SpecialChar LyX
17115 はこの部分を完全に無視します.これらの5つの環境の内容は,完全に空のままにしておいて構いません.
17116 \end_layout
17117
17118 \begin_layout Standard
17119 長めのラベルの後に文章を入れる
17120 \emph on
17121 必要は
17122 \emph default
17123 まったく
17124 \emph on
17125 ない
17126 \emph default
17127 とはいえ,何か書いておきたいこともあるかもしれません.たとえば,スライドの内容に関する短い説明などがそうでしょう.この場合,いつもどおり説明用のコメントを入力し
17128
17129 \family sans
17130 Return
17131 \family default
17132 を押してください.
17133 \end_layout
17134
17135 \begin_layout Standard
17136 一方,説明文を入れたくない場合には,\SpecialChar LyX
17137 の制約に直面します.自然が真空を憎むように,\SpecialChar LyX
17138 では,古い環境に何かを置くまでは,その中に新しい環境を入れることができません.そ
17139 こで以下のようにしてください.
17140 \end_layout
17141
17142 \begin_layout Itemize
17143 新しい
17144 \family sans
17145 スライド
17146 \family default
17147
17148 \family sans
17149 オーバーレイ
17150 \family default
17151
17152 \family sans
17153 注釈
17154 \family default
17155
17156 \family sans
17157 不可視文
17158 \family default
17159
17160 \family sans
17161 可視文
17162 \family default
17163
17164 \emph on
17165 中に入れる
17166 \emph default
17167 文章を入力してください.
17168 \end_layout
17169
17170 \begin_layout Itemize
17171 段落の先頭に移動します.
17172 \end_layout
17173
17174 \begin_layout Itemize
17175 次に
17176 \family sans
17177 Return
17178 \family default
17179 を押します.
17180 \end_layout
17181
17182 \begin_layout Itemize
17183 最後に,この新しい空の段落を
17184 \family sans
17185 スライド
17186 \family default
17187
17188 \family sans
17189 オーバーレイ
17190 \family default
17191
17192 \family sans
17193 注釈
17194 \family default
17195
17196 \family sans
17197 不可視文
17198 \family default
17199
17200 \family sans
17201 可視文
17202 \family default
17203 に変更します.
17204 \end_layout
17205
17206 \begin_layout Standard
17207 将来の\SpecialChar LyX
17208 では,このような癖が解決されることを祈っています\SpecialChar ldots
17209
17210 \begin_inset Foot
17211 status collapsed
17212
17213 \begin_layout Plain Layout
17214 (訳註)ここの記述は古くなっています.
17215 \end_layout
17216
17217 \end_inset
17218
17219
17220 \end_layout
17221
17222 \begin_layout Subsection
17223
17224 \family sans
17225 スライド
17226 \family default
17227
17228 \family sans
17229 オーバーレイ
17230 \family default
17231
17232 \family sans
17233 注釈で発表用のスライドを作る
17234 \end_layout
17235
17236 \begin_layout Subsubsection
17237
17238 \family sans
17239 スライド
17240 \family default
17241 環境を使う
17242 \end_layout
17243
17244 \begin_layout Standard
17245 もし本節が,実際のプレゼンテーションの作り方を教えてくれるものと期待されているとすれば,大いにがっかりされるかもしれません.当然ながら,プレゼンテーション用の資
17246 料を準備するうえで
17247 \family sans
17248 slides
17249 \family default
17250 クラスを役立てる方法を詳しく説明はしますが,内容をどうするかはあなた次第です(そしてこれも\SpecialChar LyX
17251 の哲学です).
17252 \end_layout
17253
17254 \begin_layout Standard
17255
17256 \family sans
17257 スライド
17258 \family default
17259 環境を選択すれば(方法は第
17260 \begin_inset CommandInset ref
17261 LatexCommand ref
17262 reference "sec:スライドの癖"
17263
17264 \end_inset
17265
17266 節参照のこと),\SpecialChar LyX
17267 は新規スライドを開始します.この環境ないし「疑似環境」のラベルは,鮮やかな青で「新規スライド:」と表示されます.この環境の後のテキスト環境や段落
17268 環境は,すべて新規スライドに入ります.簡単ですよね.
17269 \end_layout
17270
17271 \begin_layout Standard
17272 Slidesは,おそらく\SpecialChar LyX
17273 の中で強制的に改頁をしなくてはならない唯一のクラスです(これは
17274 \family sans
17275 段落レイアウト
17276 \family default
17277 ダイアログで指定できます).実際,一つのスライドの内容を入力し終わったら,改頁したくなるはずです.仮に一つのスライドに物理的に入りきらない文章を入力したとすると
17278 ,入りきらない部分は,次の新規スライドにまわされます.しかしながら,入りきらない部分のスライドにはページ番号が付きませんので,こうするのはお勧めしません.その上
17279 ,一枚に収まらないスライドでは,
17280 \family sans
17281 オーバーレイ
17282 \family default
17283 を使用すると干渉する恐れがあります.
17284 \end_layout
17285
17286 \begin_layout Standard
17287
17288 \family sans
17289 オーバーレイ
17290 \family default
17291 環境と
17292 \family sans
17293 注釈
17294 \family default
17295 環境も,
17296 \family sans
17297 スライド
17298 \family default
17299 環境と同様の動作を示します.これらは,青の代わりに鮮やかなマゼンタで,それぞれ「
17300 \noun on
17301 新規オーバーレイ
17302 \noun default
17303 :」ないし「
17304 \noun on
17305 新規注釈:
17306 \noun default
17307 」というラベルを表示します.ラベルのフォントも,3つの環境でそれぞれ異なるものが使用されます.
17308 \end_layout
17309
17310 \begin_layout Standard
17311
17312 \family sans
17313 スライド
17314 \family default
17315 と同様に,
17316 \family sans
17317 オーバーレイ
17318 \family default
17319
17320 \family sans
17321 注釈
17322 \family default
17323 の内容が,一つのスライドないしページに物理的に収まりきらない場合には,余分は新規スライドに回されます.この場合には,
17324 \family sans
17325 注釈
17326 \family default
17327
17328 \family sans
17329 オーバーレイ
17330 \family default
17331 の本来の目的が達せられなくなりますので,ここでもこのような状態は避けるべきでしょう.
17332 \end_layout
17333
17334 \begin_layout Subsubsection
17335
17336 \family sans
17337 スライドでオーバーレイを使用する
17338 \end_layout
17339
17340 \begin_layout Standard
17341
17342 \family sans
17343 オーバーレイ
17344 \family default
17345 の背後にある考え方は,別のスライドの上にスライドを載せようとするものです.メインの
17346 \family sans
17347 スライド
17348 \family default
17349 に図があるとき,関連した文章を表示する前に,図について議論を進めたいと思うことがあるかもしれません.これを行うひとつの方法は,
17350 \family sans
17351 スライド
17352 \family default
17353 で後に表示したい部分に黒い紙の蓋を貼り付けてしまうことですが,この方法は,たとえばグラフを他のグラフに重ねたい場合などには,うまく行きません.この場合には,二つ
17354 のグラフを揃えるために,重ねる二つのスライドを,喋りながら手探りで揃えなくてはなりません.これらのような場合には,
17355 \family sans
17356 オーバーレイ
17357 \family default
17358 環境を使えば,もっと楽になります.
17359 \end_layout
17360
17361 \begin_layout Standard
17362
17363 \family sans
17364 オーバーレイ
17365 \family default
17366 は,「親」
17367 \family sans
17368 スライド
17369 \family default
17370 のページ番号を引継ぎ,その後に「
17371 \family typewriter
17372 -a
17373 \family default
17374 」を付け加えます
17375 \begin_inset Foot
17376 status collapsed
17377
17378 \begin_layout Plain Layout
17379 想像できるように,複数のオーバーレイがあれば,「
17380 \family typewriter
17381 -a
17382 \family default
17383 」「
17384 \family typewriter
17385 -b
17386 \family default
17387 」「
17388 \family typewriter
17389 -c
17390 \family default
17391 」などが親スライドのページ番号に付け加えられます.
17392 \end_layout
17393
17394 \end_inset
17395
17396 .当然のことながら,
17397 \family sans
17398 スライド
17399 \family default
17400
17401 \family sans
17402 オーバーレイ
17403 \family default
17404 の内容は両方とも,1枚のスライドに物理的に収まるようになっていなければなりません.
17405 \family sans
17406 オーバーレイ
17407 \family default
17408
17409 \family sans
17410 スライド
17411 \family default
17412 の「一部」であると考えるのがよいでしょう.\SpecialChar LyX
17413 では,
17414 \family sans
17415 オーバーレイ
17416 \family default
17417 のラベルを
17418 \family sans
17419 スライド
17420 \family default
17421 のラベルよりも下げることで,このことを視覚的に表しています.また,印刷可能な出力を生成すると,
17422 \family sans
17423 オーバーレイ
17424 \family default
17425 と親
17426 \family sans
17427 スライド
17428 \family default
17429 両方の四隅に,揃えマーカーがあることに気づかれるはずです.これは,2枚のスライドを物理的に重ね合わせるための補助となるものです.
17430 \end_layout
17431
17432 \begin_layout Standard
17433 2つのスライドをオーバーレイさせる際の大きな問題は,2枚のスライドの内容を揃えることです.2枚目のスライドのグラフには,どれだけの余白を残しておくべきなのでしょ
17434 うか?さらにややこしく,2枚目のスライドにグラフと文章を入れたいときに,その間に割り込んでしまうような文章がメインスライドにある場合には,どうでしょうか?正しい
17435 寸法の垂直スペースを挿入してみることもできるでしょう.しかし,もっと良い方法として,
17436 \family sans
17437 不可視文
17438 \family default
17439
17440 \family sans
17441 可視文
17442 \family default
17443 を使用する方法があります.
17444 \end_layout
17445
17446 \begin_layout Standard
17447 これらの名前が意味するとおり,
17448 \family sans
17449 不可視文
17450 \family default
17451
17452 \family sans
17453 可視文
17454 \family default
17455 は,それぞれ続く文章すべてを見えなくしたり見えるようにしたりするコマンド型の段落環境です.しかしながら,第
17456 \begin_inset CommandInset ref
17457 LatexCommand ref
17458 reference "sec:スライドの癖"
17459
17460 \end_inset
17461
17462 節で述べたように,この2つの環境の
17463 \emph on
17464
17465 \emph default
17466 には何も置くことができません.
17467 \family sans
17468 不可視文
17469 \family default
17470 を作成すると,「<以下不可視文>」と書かれた水色のラベルが,ページに中央揃えで表示されます.このラベルに続く段落は,それが置かれるべき
17471 \family sans
17472 スライド
17473 \family default
17474 (あるいは
17475 \family sans
17476 オーバーレイ
17477 \family default
17478 ;どちらでも同じことです)部分に,代わりに空白の部分が置かれます.
17479 \end_layout
17480
17481 \begin_layout Standard
17482
17483 \family sans
17484 可視文
17485 \family default
17486 の場合には,中央揃えのラベルは,鮮やかな緑の「<以下可視文>」となります.このラベル以降の段落は,通常通りの挙動を示します.新規の
17487 \family sans
17488 スライド
17489 \family default
17490
17491 \family sans
17492 オーバーレイ
17493 \family default
17494
17495 \family sans
17496 注釈
17497 \family default
17498 を開始すると,
17499 \family sans
17500 不可視文
17501 \family default
17502 は自動的に終了されることに注意してください.したがって,
17503 \family sans
17504 スライド
17505 \family default
17506 の終わりでは,
17507 \family sans
17508 可視文
17509 \family default
17510 を使用する必要はありません.
17511 \end_layout
17512
17513 \begin_layout Standard
17514 ここまでで,
17515 \family sans
17516 スライド
17517 \family default
17518
17519 \family sans
17520 オーバーレイ
17521 \family default
17522 上で
17523 \family sans
17524 不可視文
17525 \family default
17526
17527 \family sans
17528 可視文
17529 \family default
17530 を適切に使用して,スライドをオーバーレイさせる方法が明らかになったことと思います.
17531 \end_layout
17532
17533 \begin_layout Enumerate
17534 メインのスライドか
17535 \family sans
17536 オーバーレイ
17537 \family default
17538 かに関わらず,スライド上に現れるすべてを含んだ
17539 \family sans
17540 スライド
17541 \family default
17542 を作成します.
17543 \end_layout
17544
17545 \begin_layout Enumerate
17546
17547 \family sans
17548 オーバーレイ
17549 \family default
17550 のみに表示するすべての図や段落の前に,
17551 \family sans
17552 不可視文
17553 \family default
17554 環境を挿入し,必要ならば,
17555 \family sans
17556 オーバーレイ
17557 \family default
17558 のみの文章の後に
17559 \family sans
17560 可視文
17561 \family default
17562 環境を挿入します.
17563 \end_layout
17564
17565 \begin_layout Enumerate
17566
17567 \family sans
17568 スライド
17569 \family default
17570 の直後から,
17571 \family sans
17572 オーバーレイ
17573 \family default
17574 を開始します.
17575 \end_layout
17576
17577 \begin_layout Enumerate
17578 この
17579 \family sans
17580 スライド
17581 \family default
17582 の内容を
17583 \family sans
17584 オーバーレイ
17585 \family default
17586 にコピーします.
17587 \end_layout
17588
17589 \begin_layout Enumerate
17590
17591 \family sans
17592 オーバーレイ
17593 \family default
17594 内部の
17595 \family sans
17596 不可視文
17597 \family default
17598 行をすべて
17599 \family sans
17600 不可視文
17601 \family default
17602 に変更し,
17603 \family sans
17604 可視文
17605 \family default
17606
17607 \family sans
17608 不可視文
17609 \family default
17610 に変更します.
17611 \end_layout
17612
17613 \begin_layout Standard
17614 これだけです.これで
17615 \family sans
17616 オーバーレイ
17617 \family default
17618 ができあがりました.
17619 \end_layout
17620
17621 \begin_layout Standard
17622 \SpecialChar LyX
17623  
17624 \family sans
17625 slides
17626 \family default
17627 クラスをデザインする上で,ひとつ残された問題があります.段落途中の文章を不可視にしたり,不可視段落の途中の文章を再度可視にしたりすることはできないのです.これを
17628 実現するためには,\SpecialChar LaTeX
17629 コードを埋め込む必要があります
17630 \begin_inset Foot
17631 status collapsed
17632
17633 \begin_layout Plain Layout
17634 このコマンドは,
17635 \end_layout
17636
17637 \begin_layout Itemize
17638
17639 \family typewriter
17640 {
17641 \backslash
17642 invisible \SpecialChar ldots
17643  }
17644 \end_layout
17645
17646 \begin_layout Itemize
17647
17648 \family typewriter
17649 {
17650 \backslash
17651 visible \SpecialChar ldots
17652  }
17653 \end_layout
17654
17655 \begin_layout Plain Layout
17656 \SpecialChar ldots
17657 のような形となり,\SpecialChar TeX
17658 としてマークする必要があります.「可視性」を変更したい文章は,波括弧のあいだ(そして
17659 \family typewriter
17660
17661 \backslash
17662 invisible
17663 \family default
17664 ないし
17665 \family typewriter
17666
17667 \backslash
17668 visible
17669 \family default
17670 コマンドの後ろ)に入れます.\SpecialChar TeX
17671 としてマークする方法がわからない場合は,
17672 \emph on
17673 ユーザーの手引き
17674 \emph default
17675 をご参照ください.
17676 \end_layout
17677
17678 \end_inset
17679
17680
17681 \end_layout
17682
17683 \begin_layout Subsubsection
17684
17685 \family sans
17686 スライドで注釈を使う
17687 \family default
17688
17689 \begin_inset CommandInset label
17690 LatexCommand label
17691 name "sec:スライド注釈"
17692
17693 \end_inset
17694
17695
17696 \end_layout
17697
17698 \begin_layout Standard
17699
17700 \family sans
17701 オーバーレイ
17702 \family default
17703 と同様,
17704 \family sans
17705 注釈
17706 \family default
17707 も「親」
17708 \family sans
17709 スライド
17710 \family default
17711 に関連付けられています.ここでも\SpecialChar LyX
17712
17713 \family sans
17714 スライド
17715 \family default
17716 クラスは視覚的な効果を与えています.
17717 \family sans
17718 注釈
17719 \family default
17720 のラベルは
17721 \family sans
17722 スライド
17723 \family default
17724 よりも短く(オーバーレイのラベルよりも長いですが),
17725 \family sans
17726 オーバーレイ
17727 \family default
17728 のラベルと同様,派手な赤紫色です.加えて,印刷した
17729 \family sans
17730 注釈
17731 \family default
17732 には,「親」スライドのページ番号に「
17733 \family typewriter
17734 -
17735 \family default
17736 1」「
17737 \family typewriter
17738 -
17739 \family default
17740 2」「
17741 \family typewriter
17742 -
17743 \family default
17744 3」等を付けたページ番号が付けられます.1つの
17745 \family sans
17746 スライド
17747 \family default
17748 には,複数の
17749 \family sans
17750 注釈
17751 \family default
17752 を関連付けることができるので,
17753 \family sans
17754 スライド
17755 \family default
17756
17757 \family sans
17758 オーバーレイ
17759 \family default
17760 と同じように,長い注釈は,1枚の紙に収まるように分割したいと思われるに違いありません.
17761 \end_layout
17762
17763 \begin_layout Standard
17764
17765 \family sans
17766 注釈
17767 \family default
17768 の目的は明らかです.
17769 \family sans
17770 スライド
17771 \family default
17772 に関して付け加えたいことを書き留めておくことです.特定の
17773 \family sans
17774 スライド
17775 \family default
17776 についての覚書として使うこともできます.後者の場合には,タイムマーカを利用したいこともあるかもしれません.現在のところ,\SpecialChar LyX
17777
17778 \family sans
17779 スライド
17780 \family default
17781 クラスは,
17782 \noun on
17783 Sli
17784 \noun default
17785 \SpecialChar TeX
17786 の機能であるタイムマーカを「ネイティブには」サポートしていません.したがって,\SpecialChar LaTeX
17787 コードを使用することに頼らなくてはなりません.
17788 \end_layout
17789
17790 \begin_layout Standard
17791 タイムマーカを使用するには,クラスオプション「
17792 \family typewriter
17793 clock
17794 \family default
17795 」を追加指定する必要があります(第
17796 \begin_inset CommandInset ref
17797 LatexCommand ref
17798 reference "sec:slidesetup"
17799
17800 \end_inset
17801
17802 節参照).このオプションはタイムマーカ機能を有効にして,生成したすべての
17803 \family sans
17804 注釈
17805 \family default
17806 の左下にタイムマーカを表示します.タイムマーカに表示するものを設定するには,\SpecialChar LaTeX
17807 コマンド「
17808 \family typewriter
17809
17810 \backslash
17811 settime{}
17812 \family default
17813 」および「
17814 \family typewriter
17815
17816 \backslash
17817 addtime{}
17818 \family default
17819 」を使用します.両コマンドは,秒で測った時間を引数にとります.「
17820 \family typewriter
17821
17822 \backslash
17823 settime{}
17824 \family default
17825 」は,タイムマーカを特定の時間に設定し,「
17826 \family typewriter
17827
17828 \backslash
17829 addtime{}
17830 \family default
17831 」は,タイムマーカを指定した分だけ進めます.このようにタイムマーカと
17832 \family sans
17833 注釈
17834 \family default
17835 を用いれば,特定の
17836 \family sans
17837 スライド
17838 \family default
17839 にどれだけの時間をかけるのか忘れないでいられます.
17840 \end_layout
17841
17842 \begin_layout Standard
17843 最後に,説明しておくべき機能がもう一つあります.当然ながら,
17844 \family sans
17845 スライド
17846 \family default
17847
17848 \family sans
17849 オーバーレイ
17850 \family default
17851 はすべてスライドに,
17852 \family sans
17853 注釈
17854 \family default
17855 はすべて普通の紙に印刷したいはずです.しかしながら,
17856 \family sans
17857 注釈
17858 \family default
17859 は関連付けられた親スライドの直後に
17860 \emph on
17861 来なくてはなりません
17862 \emph default
17863 .ユーザーはどうしたら良いのでしょうか.
17864 \end_layout
17865
17866 \begin_layout Standard
17867 幸いなことに,どれを印刷するか選択することを可能にする\SpecialChar LaTeX
17868 コマンドが,2種類あります.どちらも文書のプリアンブルに記述されなくてはなりません.コマンド「
17869 \family typewriter
17870
17871 \backslash
17872 onlyslides{
17873 \backslash
17874 slides}
17875 \family default
17876 」は,出力に
17877 \family sans
17878 スライド
17879 \family default
17880
17881 \family sans
17882 オーバーレイ
17883 \family default
17884 のみが含まれるようにするものです.同様に,「
17885 \family typewriter
17886
17887 \backslash
17888 onlynotes{
17889 \backslash
17890 notes}
17891 \family default
17892 」は
17893 \family sans
17894 注釈
17895 \family default
17896 以外の出力をすべて抑制します.私のアドバイスとしては,両コマンドをプリアンブルに書いておいて,最初は両方ともコメントアウトしておくと良いでしょう.そうすれば,執
17897 筆時にはプレゼンテーション全体をプレビューすることができます.いったん書き終えたならば,二つのうち一方のコメントを外して,印刷したい方を選ぶことができます.私な
17898 らば,まず
17899 \family typewriter
17900
17901 \backslash
17902 onlyslides{
17903 \backslash
17904 slides}
17905 \family default
17906 のコメントを外して,現ファイル名に「*
17907 \family typewriter
17908 -slides
17909 \family default
17910 」を付けた新たなファイルに出力を行ない,今度はこの行をふたたびコメントアウトするとともに,「
17911 \family typewriter
17912
17913 \backslash
17914 onlynotes{
17915 \backslash
17916 notes
17917 \family default
17918 }」のコメントを外して,これを「
17919 \family typewriter
17920 *-notes.ps
17921 \family default
17922 」というファイルに出力します.そうすれば,必要に応じて,スライドまたは通常の紙をプリンタにセットし,一方のファイルをプリンタに送ればよいのです.
17923 \end_layout
17924
17925 \begin_layout Standard
17926
17927 \family typewriter
17928
17929 \backslash
17930 onlyslides{}
17931 \family default
17932 」および「
17933 \family typewriter
17934
17935 \backslash
17936 onlynotes{}
17937 \family default
17938 」コマンドには,他の引数を与えることもできます.詳しくは,\SpecialChar LaTeX
17939 の良書をご覧ください.
17940 \end_layout
17941
17942 \begin_layout Subsection
17943
17944 \family sans
17945 slides
17946 \family default
17947 クラスのひな型ファイル
17948 \end_layout
17949
17950 \begin_layout Standard
17951
17952 \family sans
17953 slides
17954 \family default
17955 クラス用のひな型ファイルとして「
17956 \family typewriter
17957 slides.lyx
17958 \family default
17959 」が提供されています.これを使用するには,新しいプレゼンテーションを作り始める際に,
17960 \family sans
17961 ファイル\SpecialChar menuseparator
17962 新規(ひな型使用)
17963 \family default
17964 メニューを選択してください.すると新規ファイルには,
17965 \family sans
17966 スライド
17967 \family default
17968
17969 \family sans
17970 オーバーレイ
17971 \family default
17972
17973 \family sans
17974 注釈
17975 \family default
17976 の組が,例として含まれており,
17977 \family sans
17978 スライド
17979 \family default
17980
17981 \family sans
17982 オーバーレイ
17983 \family default
17984 には,さらに
17985 \family sans
17986 不可視文
17987 \family default
17988
17989 \family sans
17990 可視文
17991 \family default
17992 の使用例も含まれています.また,プリアンブルには,次のように書き込まれています.
17993 \end_layout
17994
17995 \begin_layout LyX-Code
17996 % Uncomment to print out only slides and overlays
17997 \end_layout
17998
17999 \begin_layout LyX-Code
18000 %
18001 \end_layout
18002
18003 \begin_layout LyX-Code
18004 %
18005 \backslash
18006 onlyslides{
18007 \backslash
18008 slides}
18009 \begin_inset Newline newline
18010 \end_inset
18011
18012  
18013 \end_layout
18014
18015 \begin_layout LyX-Code
18016 % Uncomment to print out only notes
18017 \end_layout
18018
18019 \begin_layout LyX-Code
18020 %
18021 \end_layout
18022
18023 \begin_layout LyX-Code
18024 %
18025 \backslash
18026 onlynotes{
18027 \backslash
18028 notes}
18029 \end_layout
18030
18031 \begin_layout Standard
18032 最後に,私はこの文書クラスを,\SpecialChar LaTeX2e
18033 の組み込みクラスである「
18034 \noun on
18035 Sli\SpecialChar TeX
18036
18037 \noun default
18038 エミュレーション」クラスをサポートする目的で作成しました.私も\SpecialChar LyX
18039 チームの他のメンバーも,この組み込みスライドクラスを使用することに賛成したり反対したりするものでは
18040 ありません.これは単に,ユーザーがこれを使いたかったり必要としたりしたときのためにあるものです.プレゼンテーションを作成するためには,
18041 \family sans
18042 Foils
18043 \family default
18044 クラス(第
18045 \begin_inset CommandInset ref
18046 LatexCommand ref
18047 reference "sec:foiltex"
18048
18049 \end_inset
18050
18051 節参照)や「
18052 \family typewriter
18053 seminar
18054 \family default
18055 」パッケージ(一部の\SpecialChar TeX
18056 頒布版に含まれています)のように,他の\SpecialChar LaTeX2e
18057 クラスも存在します.私はこれらについては知らないのですが,他にどのようなことができるのか試してみてくだ
18058 さい.
18059 \end_layout
18060
18061 \begin_layout Chapter
18062 ソフトウェアを追加する必要がある \SpecialChar LyX
18063 機能
18064 \end_layout
18065
18066 \begin_layout Section
18067 \SpecialChar TeX
18068 のチェック
18069 \end_layout
18070
18071 \begin_layout Standard
18072
18073 \noun on
18074 Asger Alstrup
18075 \noun default
18076
18077 \end_layout
18078
18079 \begin_layout Subsection
18080 はじめに
18081 \end_layout
18082
18083 \begin_layout Standard
18084
18085 \family typewriter
18086 chktex
18087 \family default
18088 プログラムが導入されていると
18089 \begin_inset Foot
18090 status collapsed
18091
18092 \begin_layout Plain Layout
18093 \SpecialChar LaTeX
18094 頒布版としてMiK\SpecialChar TeX
18095 を使用している場合には,
18096 \family typewriter
18097 chktex
18098 \family default
18099 はまだ利用可能ではありません.
18100 \end_layout
18101
18102 \end_inset
18103
18104
18105 \family sans
18106 ツール
18107 \family default
18108 メニューの下に,
18109 \family sans
18110 \SpecialChar TeX
18111 構文チェック
18112 \family default
18113 という項目が表示されます.
18114 \family typewriter
18115 chktex
18116 \family default
18117 は,CTAN
18118 \begin_inset Newline newline
18119 \end_inset
18120
18121
18122 \begin_inset CommandInset href
18123 LatexCommand href
18124 target "http://www.ctan.org/tex-archive/help/Catalogue/entries/chktex.html"
18125 literal "false"
18126
18127 \end_inset
18128
18129 から入手することができます.
18130 \end_layout
18131
18132 \begin_layout Standard
18133
18134 \family sans
18135 Chk\SpecialChar TeX
18136
18137 \family default
18138 パッケージは,\SpecialChar LaTeX
18139 の構成物には直感的でないものもあり,すぐ忘れてしまいがちであるのに不満を感じた
18140 \begin_inset Flex Noun
18141 status collapsed
18142
18143 \begin_layout Plain Layout
18144 Jens T.
18145  Berger Thielemann
18146 \end_layout
18147
18148 \end_inset
18149
18150 が書いたプログラムです.このプログラムは,\SpecialChar LaTeX
18151 ファイルを走査して,ファイルの整合性をチェックし,犯しがちな誤りを見つけ出します.別の技術用語では,LaTeXにおける
18152 \family typewriter
18153 lint
18154 \family default
18155 であるとも言えます.
18156 \end_layout
18157
18158 \begin_layout Standard
18159 さて,\SpecialChar LyX
18160 はつねに正しい\SpecialChar LaTeX
18161 ファイルを生成するはずなのに,文法チェッカーは\SpecialChar LyX
18162 で何をするというのでしょうか.答えは簡単です.
18163 \family typewriter
18164 lint
18165 \family default
18166 がC言語プログラムの
18167 \emph on
18168 文法
18169 \emph default
18170 をチェックするだけでなく,打ち間違いによる
18171 \emph on
18172 意味上の
18173 \emph default
18174 チェックも行うように,
18175 \family sans
18176 Chk\SpecialChar TeX
18177
18178 \family default
18179 は,文法エラーの他に犯しがちな
18180 \emph on
18181 写植上の
18182 \emph default
18183 誤りも検出してくれるからです.
18184 \family sans
18185 Chk\SpecialChar TeX
18186
18187 \family default
18188 は,以下のような誤りを検出することができます.
18189 \end_layout
18190
18191 \begin_layout Itemize
18192 省略記号の検出:
18193 \begin_inset Newline newline
18194 \end_inset
18195
18196 ...ではなく\SpecialChar ldots
18197 を使わなくてはなりません
18198 \end_layout
18199
18200 \begin_layout Itemize
18201 括弧の前後にスペースを置かない:
18202 \begin_inset Newline newline
18203 \end_inset
18204
18205 ( wrong spacing ):誤った空白
18206 \end_layout
18207
18208 \begin_layout Itemize
18209 よく使われる省略形の後ろは通常スペースにする:
18210 \begin_inset Newline newline
18211 \end_inset
18212
18213 e.
18214 \begin_inset space \thinspace{}
18215 \end_inset
18216
18217 g.
18218 \begin_inset space \space{}
18219 \end_inset
18220
18221 is too wide spacing.:広すぎる空白
18222 \end_layout
18223
18224 \begin_layout Itemize
18225 直前の文章が大文字で終わっているときに,文末スペースに直す:
18226 \begin_inset Newline newline
18227 \end_inset
18228
18229 This is a TEST.
18230  And this is wrong spacing.:誤った空白
18231 \end_layout
18232
18233 \begin_layout Itemize
18234 ラベルや類似コマンドの前のスペース:
18235 \begin_inset Newline newline
18236 \end_inset
18237
18238 ラベルが別のページに行ってしまわないように,ラベルは文章に接していなくてはなりません. 
18239 \begin_inset CommandInset label
18240 LatexCommand label
18241 name "sec:chktex"
18242
18243 \end_inset
18244
18245  
18246 \begin_inset Foot
18247 status collapsed
18248
18249 \begin_layout Plain Layout
18250 この脚注は,正しくないページに行ってしまう恐れがあります.
18251 \end_layout
18252
18253 \end_inset
18254
18255  このラベルは離れすぎです.
18256 \end_layout
18257
18258 \begin_layout Itemize
18259 参照の前にハードスペースではなくスペース:
18260 \begin_inset Newline newline
18261 \end_inset
18262
18263 運が悪ければ,参照文字列と参照番号のあいだでちょうど改行されてしまい,残念な結果となります.第
18264 \begin_inset CommandInset ref
18265 LatexCommand ref
18266 reference "sec:chktex"
18267
18268 \end_inset
18269
18270 節をご覧ください.
18271 \end_layout
18272
18273 \begin_layout Itemize
18274 数字のあいだで
18275 \begin_inset Formula $\times$
18276 \end_inset
18277
18278 ではなく「x」が使われている:
18279 \begin_inset Newline newline
18280 \end_inset
18281
18282 2x2は,
18283 \begin_inset Formula $2\times2$
18284 \end_inset
18285
18286 よりも安っぽく見えます.
18287 \end_layout
18288
18289 \begin_layout Standard
18290 などなど\SpecialChar ldots
18291
18292 \family sans
18293 Chk\SpecialChar TeX
18294
18295 \family default
18296 は,印刷する前に文書を「仕上げる」上で,たいへん価値のあるツールです.必須のスペルチェックを終えた直後,組版の微調整をする前には,これを実行するべきです.
18297 \end_layout
18298
18299 \begin_layout Subsection
18300 使いかた
18301 \end_layout
18302
18303 \begin_layout Standard
18304 このプログラムを導入したならば,使うのは
18305 \family sans
18306 ツール\SpecialChar menuseparator
18307 \SpecialChar TeX
18308 構文チェック
18309 \family default
18310 を選択するだけなので簡単です.こうすると,\SpecialChar LyX
18311 は使用中の文書の\SpecialChar LaTeX
18312 ファイルを生成して,
18313 \family sans
18314 Chk\SpecialChar TeX
18315
18316 \family default
18317 を起動し,当該ファイルを検査しますが,
18318 \family sans
18319 Chk\SpecialChar TeX
18320
18321 \family default
18322 から警告があった場合には,それを含んだ「エラーボックス」を\SpecialChar LyX
18323 中に挿入します.警告は,誤りのある箇所のそばに置かれるので,メニュー項目の
18324 \family sans
18325 移動\SpecialChar menuseparator
18326 エラー
18327 \family default
18328 を選択するか,既定の
18329 \family typewriter
18330 cua
18331 \family default
18332
18333 \begin_inset Flex Ruby
18334 status collapsed
18335
18336 \begin_layout Plain Layout
18337
18338 \begin_inset Argument post:1
18339 status collapsed
18340
18341 \begin_layout Plain Layout
18342 キー
18343 \end_layout
18344
18345 \end_inset
18346
18347
18348 \end_layout
18349
18350 \end_inset
18351
18352 設定ファイルならば
18353 \begin_inset Flex Ruby
18354 status collapsed
18355
18356 \begin_layout Plain Layout
18357
18358 \family roman
18359 \series medium
18360 \shape up
18361 \size normal
18362 \emph off
18363 \bar no
18364 \noun off
18365 \color none
18366 捷径
18367 \family default
18368 \series default
18369 \shape default
18370 \size default
18371 \emph default
18372 \bar default
18373 \noun default
18374 \color inherit
18375
18376 \begin_inset Argument post:1
18377 status collapsed
18378
18379 \begin_layout Plain Layout
18380 ショートカット
18381 \end_layout
18382
18383 \end_inset
18384
18385
18386 \end_layout
18387
18388 \end_inset
18389
18390
18391 \family sans
18392 C-g
18393 \family default
18394 を押せば,簡単に警告の箇所を見出すことができます.エラーボックスを開けるには,マウスでボックスをクリックするか,
18395 \family typewriter
18396 cua
18397 \family default
18398 鍵設定の場合には捷径鍵
18399 \family sans
18400 C-i
18401 \family default
18402
18403 \family typewriter
18404 emacs
18405 \family default
18406 鍵設定の場合は捷径鍵
18407 \family sans
18408 C-o
18409 \family default
18410 を押します.警告を読み,それが誤りを示していれば修正します.警告が何を意味しているか理解しにくい場合には,無視しても問題はありません.画面上の文書と,
18411 \family sans
18412 Chk\SpecialChar TeX
18413
18414 \family default
18415 を起動する際に行なわれる実際の技術的な操作のあいだには,隠された層があり,この隔たりのせいで,一部の警告が不可解なものになったり,明らかに馬鹿げたものになる場合
18416 があるのです.
18417 \end_layout
18418
18419 \begin_layout Standard
18420 本文書自体,この機能を確認する良い材料になりますので,実行してみてください.すると,かなりの量の警告が出るはずです.これはコンピュータが敏感すぎるせいですので,
18421 警告のほとんどは実際には警告に値しません.
18422 \end_layout
18423
18424 \begin_layout Subsection
18425 微調整のしかた
18426 \end_layout
18427
18428 \begin_layout Standard
18429 場合によっては,
18430 \family sans
18431 Chk\SpecialChar TeX
18432
18433 \family default
18434 は,あなたが望むよりも煩すぎると思うかもしれません.そのような場合には,必要と思うまで
18435 \family sans
18436 Chk\SpecialChar TeX
18437
18438 \family default
18439 を無効にするか,あなたにもう少し合うように
18440 \family sans
18441 Chk\SpecialChar TeX
18442
18443 \family default
18444 を調整することができます.
18445 \end_layout
18446
18447 \begin_layout Standard
18448
18449 \family sans
18450 Chk\SpecialChar TeX
18451
18452 \family default
18453 は調整や拡張がひじょうに柔軟なのですが,\SpecialChar LyX
18454 における
18455 \family sans
18456 Chk\SpecialChar TeX
18457
18458 \family default
18459 関連の問題が,それですべて解決すると思うべきではありません.\SpecialChar LyX
18460 は,
18461 \family sans
18462 Chk\SpecialChar TeX
18463
18464 \family default
18465 出力
18466 \begin_inset Foot
18467 status collapsed
18468
18469 \begin_layout Plain Layout
18470
18471 \family sans
18472 chktex
18473 \family default
18474 の実際の出力は,
18475 \family sans
18476 chktex
18477 \family default
18478 を実行した直後に
18479 \family sans
18480 文書\SpecialChar menuseparator
18481 \SpecialChar LaTeX
18482 ログ
18483 \family default
18484 を使えば見ることができます.
18485 \end_layout
18486
18487 \end_inset
18488
18489 から得た行番号と内部構造を一致させるため,やや特殊な\SpecialChar LaTeX
18490 ファイルを生成しなくてはならないので,警告の一部は正しく表示されていないように見えるでしょう.これに対処する
18491 ためには,以下の2つの方法があります.
18492 \end_layout
18493
18494 \begin_layout Itemize
18495
18496 \family sans
18497 \begin_inset Flex MenuItem
18498 status collapsed
18499
18500 \begin_layout Plain Layout
18501
18502 \family sans
18503 ツール\SpecialChar menuseparator
18504 設定\SpecialChar menuseparator
18505 出力\SpecialChar menuseparator
18506 \SpecialChar LaTeX
18507 \SpecialChar menuseparator
18508 Check\SpecialChar TeX
18509 コマンド
18510 \end_layout
18511
18512 \end_inset
18513
18514
18515 \family default
18516 中の
18517 \family sans
18518 Chk\SpecialChar TeX
18519
18520 \family default
18521 起動コマンドラインを調整するか,グローバルな
18522 \family sans
18523 Chk\SpecialChar TeX
18524
18525 \family default
18526 の設定ファイル(通常は
18527 \begin_inset Flex Code
18528 status collapsed
18529
18530 \begin_layout Plain Layout
18531 chktexrc
18532 \end_layout
18533
18534 \end_inset
18535
18536 ファイル)を調整します.コマンドラインからどの警告を有効・無効にできるかは以下をご覧ください.
18537 \end_layout
18538
18539 \begin_layout Itemize
18540
18541 \family sans
18542 ファイル\SpecialChar menuseparator
18543 書き出し\SpecialChar menuseparator
18544 \SpecialChar LaTeX
18545
18546 \family default
18547 を使って文書を\SpecialChar LaTeX
18548 ファイルに変換し,そのファイルに対して
18549 \family typewriter
18550 chktex
18551 \family default
18552 を手動で実行します.このようにすると,\SpecialChar LyX
18553 文書中の対応箇所を見つけるのがやや面倒ですが,少し我慢すれば見つけることができます.
18554 \end_layout
18555
18556 \begin_layout Standard
18557 以下は,
18558 \family sans
18559 設定
18560 \family default
18561 で有効化・無効化できる警告メッセージです.警告を無効にするには
18562 \family typewriter
18563 -n#
18564 \family default
18565 ,有効にするには
18566 \family typewriter
18567 -w#
18568 \family default
18569 を用います.イタリック表示の項目は,既定で無効となっています.既定値は "
18570 \family typewriter
18571 chktex -n1 -n3 -n6 -n9 -n22 -n25 -n30 -n38
18572 \family default
18573 "です.
18574 \end_layout
18575
18576 \begin_layout Standard
18577 \SpecialChar LyX
18578 は,
18579 \family typewriter
18580 chktex
18581 \family default
18582 と通信するために,他のコマンドラインパラメータを特定の方法で使用しているため,メッセージを有効化・無効化する以外のオプションを使うべきではありません.
18583 \end_layout
18584
18585 \begin_layout Enumerate
18586
18587 \size small
18588 \emph on
18589 Command terminated with space.
18590 \end_layout
18591
18592 \begin_layout Enumerate
18593
18594 \size small
18595 Non-breaking space (
18596 \begin_inset Quotes eld
18597 \end_inset
18598
18599
18600 \family typewriter
18601 ~
18602 \family default
18603
18604 \begin_inset Quotes erd
18605 \end_inset
18606
18607 ) should have been used.
18608 \end_layout
18609
18610 \begin_layout Enumerate
18611
18612 \size small
18613 \emph on
18614 You should enclose the previous parenthesis with 
18615 \begin_inset Quotes eld
18616 \end_inset
18617
18618
18619 \family typewriter
18620 {}
18621 \family default
18622
18623 \begin_inset Quotes erd
18624 \end_inset
18625
18626 .
18627 \end_layout
18628
18629 \begin_layout Enumerate
18630
18631 \size small
18632 Italic correction (
18633 \begin_inset Quotes eld
18634 \end_inset
18635
18636
18637 \family typewriter
18638
18639 \backslash
18640 /
18641 \family default
18642
18643 \begin_inset Quotes erd
18644 \end_inset
18645
18646 ) found in non-italic buffer.
18647 \end_layout
18648
18649 \begin_layout Enumerate
18650
18651 \size small
18652 Italic correction (
18653 \begin_inset Quotes eld
18654 \end_inset
18655
18656
18657 \family typewriter
18658
18659 \backslash
18660 /
18661 \family default
18662
18663 \begin_inset Quotes erd
18664 \end_inset
18665
18666 ) found more than once.
18667 \end_layout
18668
18669 \begin_layout Enumerate
18670
18671 \size small
18672 \emph on
18673 No italic correction (
18674 \begin_inset Quotes eld
18675 \end_inset
18676
18677
18678 \family typewriter
18679
18680 \backslash
18681 /
18682 \family default
18683
18684 \begin_inset Quotes erd
18685 \end_inset
18686
18687 ) found.
18688 \end_layout
18689
18690 \begin_layout Enumerate
18691
18692 \size small
18693 Accent command 
18694 \begin_inset Quotes eld
18695 \end_inset
18696
18697
18698 \family typewriter
18699 cmd
18700 \family default
18701
18702 \begin_inset Quotes erd
18703 \end_inset
18704
18705  needs use of 
18706 \begin_inset Quotes eld
18707 \end_inset
18708
18709
18710 \family typewriter
18711 cmd
18712 \family default
18713
18714 \begin_inset Quotes erd
18715 \end_inset
18716
18717 .
18718 \end_layout
18719
18720 \begin_layout Enumerate
18721
18722 \size small
18723 Wrong length of dash may have been used.
18724 \end_layout
18725
18726 \begin_layout Enumerate
18727
18728 \size small
18729 \emph on
18730 \begin_inset Quotes eld
18731 \end_inset
18732
18733
18734 \family typewriter
18735 %s
18736 \family default
18737
18738 \begin_inset Quotes erd
18739 \end_inset
18740
18741  expected, found 
18742 \begin_inset Quotes eld
18743 \end_inset
18744
18745
18746 \family typewriter
18747 %s
18748 \family default
18749
18750 \begin_inset Quotes erd
18751 \end_inset
18752
18753 .
18754 \end_layout
18755
18756 \begin_layout Enumerate
18757
18758 \size small
18759 Solo 
18760 \begin_inset Quotes eld
18761 \end_inset
18762
18763
18764 \family typewriter
18765 %s
18766 \family default
18767
18768 \begin_inset Quotes erd
18769 \end_inset
18770
18771  found.
18772 \end_layout
18773
18774 \begin_layout Enumerate
18775
18776 \size small
18777 You should use 
18778 \begin_inset Quotes eld
18779 \end_inset
18780
18781
18782 \family typewriter
18783 %s
18784 \family default
18785
18786 \begin_inset Quotes erd
18787 \end_inset
18788
18789  to achieve an ellipsis.
18790 \end_layout
18791
18792 \begin_layout Enumerate
18793
18794 \size small
18795 Inter-word spacing (
18796 \begin_inset Quotes eld
18797 \end_inset
18798
18799
18800 \family typewriter
18801
18802 \backslash
18803
18804 \family default
18805  
18806 \begin_inset Quotes eld
18807 \end_inset
18808
18809 ) should perhaps be used.
18810 \end_layout
18811
18812 \begin_layout Enumerate
18813
18814 \size small
18815 Inter-sentence spacing (
18816 \begin_inset Quotes eld
18817 \end_inset
18818
18819
18820 \family typewriter
18821
18822 \backslash
18823 @
18824 \family default
18825
18826 \begin_inset Quotes erd
18827 \end_inset
18828
18829 ) should perhaps be used.
18830 \end_layout
18831
18832 \begin_layout Enumerate
18833
18834 \size small
18835 Could not find argument for command.
18836 \end_layout
18837
18838 \begin_layout Enumerate
18839
18840 \size small
18841 No match found for 
18842 \begin_inset Quotes eld
18843 \end_inset
18844
18845
18846 \family typewriter
18847 %s
18848 \family default
18849
18850 \begin_inset Quotes erd
18851 \end_inset
18852
18853 .
18854 \end_layout
18855
18856 \begin_layout Enumerate
18857
18858 \size small
18859 Math mode still on at end of \SpecialChar LaTeX
18860  file.
18861 \end_layout
18862
18863 \begin_layout Enumerate
18864
18865 \size small
18866 Number of 
18867 \begin_inset Quotes eld
18868 \end_inset
18869
18870
18871 \family typewriter
18872 char
18873 \family default
18874
18875 \begin_inset Quotes erd
18876 \end_inset
18877
18878  doesn't match the number of 
18879 \begin_inset Quotes eld
18880 \end_inset
18881
18882
18883 \family typewriter
18884 char
18885 \family default
18886
18887 \begin_inset Quotes erd
18888 \end_inset
18889
18890 .
18891 \end_layout
18892
18893 \begin_layout Enumerate
18894
18895 \size small
18896 You should use either 
18897 \family typewriter
18898
18899 \begin_inset Quotes eld
18900 \end_inset
18901
18902
18903 \family default
18904  or 
18905 \family typewriter
18906
18907 \begin_inset Quotes erd
18908 \end_inset
18909
18910
18911 \family default
18912  as an alternative to 
18913 \begin_inset Quotes eld
18914 \end_inset
18915
18916
18917 \family typewriter
18918 "
18919 \family default
18920
18921 \begin_inset Quotes erd
18922 \end_inset
18923
18924 .
18925 \end_layout
18926
18927 \begin_layout Enumerate
18928
18929 \size small
18930 You should use "
18931 \family typewriter
18932 '
18933 \family default
18934 " (ASCII 39) instead of "" (ASCII 180).
18935 \end_layout
18936
18937 \begin_layout Enumerate
18938
18939 \size small
18940 User-specified pattern found.
18941 \end_layout
18942
18943 \begin_layout Enumerate
18944
18945 \size small
18946 This command might not be intended.
18947 \end_layout
18948
18949 \begin_layout Enumerate
18950
18951 \size small
18952 \emph on
18953 Comment displayed.
18954 \end_layout
18955
18956 \begin_layout Enumerate
18957
18958 \size small
18959 Either 
18960 \family typewriter
18961 ''
18962 \backslash
18963 ,'
18964 \family default
18965  or 
18966 \family typewriter
18967 '
18968 \backslash
18969 ,''
18970 \family default
18971  will look better.
18972 \end_layout
18973
18974 \begin_layout Enumerate
18975
18976 \size small
18977 Delete this space to maintain correct page references.
18978 \end_layout
18979
18980 \begin_layout Enumerate
18981
18982 \size small
18983 \emph on
18984 You might wish to put this between a pair of 
18985 \begin_inset Quotes eld
18986 \end_inset
18987
18988
18989 \family typewriter
18990 {}
18991 \family default
18992
18993 \begin_inset Quotes erd
18994 \end_inset
18995
18996 .
18997 \end_layout
18998
18999 \begin_layout Enumerate
19000
19001 \size small
19002 You ought to remove spaces in front of punctuation.
19003 \end_layout
19004
19005 \begin_layout Enumerate
19006
19007 \size small
19008 Could not execute \SpecialChar LaTeX
19009  command.
19010 \end_layout
19011
19012 \begin_layout Enumerate
19013
19014 \size small
19015 Don't use 
19016 \family typewriter
19017
19018 \backslash
19019 /
19020 \family default
19021  in front of small punctuation.
19022 \end_layout
19023
19024 \begin_layout Enumerate
19025
19026 \family typewriter
19027 \size small
19028 $
19029 \backslash
19030 times$
19031 \family default
19032  may look prettier here.
19033 \end_layout
19034
19035 \begin_layout Enumerate
19036
19037 \size small
19038 \emph on
19039 Multiple spaces detected in output.
19040 \end_layout
19041
19042 \begin_layout Enumerate
19043
19044 \size small
19045 This text may be ignored.
19046 \end_layout
19047
19048 \begin_layout Enumerate
19049
19050 \size small
19051 Use 
19052 \family typewriter
19053
19054 \begin_inset Quotes eld
19055 \end_inset
19056
19057
19058 \family default
19059  to begin quotation, not 
19060 \family typewriter
19061 '
19062 \family default
19063 .
19064 \end_layout
19065
19066 \begin_layout Enumerate
19067
19068 \size small
19069 Use 
19070 \family typewriter
19071 '
19072 \family default
19073  to end quotation, not 
19074 \family typewriter
19075
19076 \begin_inset Quotes eld
19077 \end_inset
19078
19079
19080 \family default
19081 .
19082 \end_layout
19083
19084 \begin_layout Enumerate
19085
19086 \size small
19087 Don't mix quotes.
19088 \end_layout
19089
19090 \begin_layout Enumerate
19091
19092 \size small
19093 You should perhaps use 
19094 \begin_inset Quotes eld
19095 \end_inset
19096
19097
19098 \family typewriter
19099 cmd
19100 \family default
19101
19102 \begin_inset Quotes erd
19103 \end_inset
19104
19105  instead.
19106 \end_layout
19107
19108 \begin_layout Enumerate
19109
19110 \size small
19111 You should put a space in front of/after parenthesis.
19112 \end_layout
19113
19114 \begin_layout Enumerate
19115
19116 \size small
19117 You should avoid spaces in front of/after parenthesis.
19118 \end_layout
19119
19120 \begin_layout Enumerate
19121
19122 \size small
19123 \emph on
19124 You should not use punctuation in front of/after quotes.
19125 \end_layout
19126
19127 \begin_layout Enumerate
19128
19129 \size small
19130 Double space found.
19131 \end_layout
19132
19133 \begin_layout Enumerate
19134
19135 \size small
19136 You should put punctuation outside inner/inside display math mode.
19137 \end_layout
19138
19139 \begin_layout Enumerate
19140
19141 \size small
19142 You ought to not use primitive \SpecialChar TeX
19143  in \SpecialChar LaTeX
19144  code.
19145 \end_layout
19146
19147 \begin_layout Enumerate
19148
19149 \size small
19150 You should remove spaces in front of 
19151 \begin_inset Quotes eld
19152 \end_inset
19153
19154
19155 \family typewriter
19156 %s
19157 \family default
19158
19159 \begin_inset Quotes erd
19160 \end_inset
19161
19162
19163 \end_layout
19164
19165 \begin_layout Enumerate
19166
19167 \size small
19168 \begin_inset Quotes eld
19169 \end_inset
19170
19171
19172 \family typewriter
19173 %s
19174 \family default
19175
19176 \begin_inset Quotes erd
19177 \end_inset
19178
19179  is normally not followed by 
19180 \begin_inset Quotes eld
19181 \end_inset
19182
19183
19184 \family typewriter
19185 %c
19186 \family default
19187
19188 \begin_inset Quotes erd
19189 \end_inset
19190
19191 .
19192 \end_layout
19193
19194 \begin_layout Standard
19195 \SpecialChar LyX
19196 の将来の版では,このツール(およびその縮小版
19197 \family typewriter
19198 lacheck
19199 \family default
19200 )の力を最大限引き出すように,より完備したインターフェイスを提供できればと考えています.しかし,現状でも十分に役立つものとなっています.ある程度長さがある既存文
19201 書に使用してみていただければ,きっと驚かれることでしょう.
19202 \end_layout
19203
19204 \begin_layout Section
19205 \SpecialChar LyX
19206 でのバージョン管理
19207 \end_layout
19208
19209 \begin_layout Standard
19210
19211 \noun on
19212 Lars Bullik Bjønnes
19213 \noun default
19214 および
19215 \noun on
19216 Pavel Sanda
19217 \noun default
19218
19219 \end_layout
19220
19221 \begin_layout Subsection
19222 はじめに
19223 \end_layout
19224
19225 \begin_layout Standard
19226 \SpecialChar LyX
19227 は,今ではもっとも基本的なRCS/CVS/SVN/GITコマンドをサポートしています.もしもっと洗練されたことを行いたい場合には,ターミナル上から手動で行う必要
19228 があります.
19229 \end_layout
19230
19231 \begin_layout Standard
19232 また,CVSのサポートは,subversionのサポートほど良くないので,CVSよりもSVNを使うことをお勧めします.Subversionを学び始めるには,
19233 \lang english
19234 the 
19235 \lang japanese
19236 SVN Book
19237 \begin_inset Foot
19238 status collapsed
19239
19240 \begin_layout Plain Layout
19241 \begin_inset CommandInset href
19242 LatexCommand href
19243 target "http://svnbook.red-bean.com/"
19244 literal "false"
19245
19246 \end_inset
19247
19248
19249 \end_layout
19250
19251 \end_inset
19252
19253 が良いでしょう.RCSの場合は,「rsintro」をお読みください(これはmanファイルです.
19254 \family typewriter
19255 man rcsintro
19256 \family default
19257 で読めます).このファイルは,RCSの基本機能のすべてを説明しています.特に,RCSディレクトリに関するコメントと,マスターRCSファイル(
19258 \family typewriter
19259 ,v
19260 \family default
19261 で終わるファイルです)の概念に注意を払ってください.
19262 \end_layout
19263
19264 \begin_layout Standard
19265 \SpecialChar LyX
19266 で実際にバージョン管理機能を使い始める前に,RCS/CVS/SVN/GITの使用法に習熟しておかなくてはなりません.\SpecialChar LyX
19267 で\SpecialChar LyX
19268 への実装においては,GNU
19269  RCSまたはCVS/SVNパッケージの最新版を仮定しています.旧版への保証はありません.ログメッセージのほとんどは,現在のところ操作後には表示されません.確認
19270 したい場合には,メッセージ面で確かめてください.バージョン管理を常用するユーザーには,VCツールバーが便利でしょう.これは
19271 \family sans
19272 表示\SpecialChar menuseparator
19273 ツールバー\SpecialChar menuseparator
19274 バージョン管理
19275 \family default
19276 で有効にできます.
19277 \end_layout
19278
19279 \begin_layout Standard
19280 自製の外部コマンドを導入したい場合には,\SpecialChar LyX
19281 関数説明書のvcコマンドを確認してください.
19282 \end_layout
19283
19284 \begin_layout Standard
19285 バージョン管理機能を使用している場合には,文書を非圧縮形式で保存をすることを強く推奨します(
19286 \family sans
19287 文書\SpecialChar menuseparator
19288 圧縮
19289 \family default
19290 にチェックが入っていれば外してください).非圧縮LyX文書はテキストファイルであるため,バージョン管理システムが,二つのバージョンをマージすることができます.一
19291 方,圧縮LyXファイルはバイナリファイルであるため,バージョン管理システムはマージすることができません.
19292 \end_layout
19293
19294 \begin_layout Subsection
19295 \SpecialChar LyX
19296 におけるRCSコマンド
19297 \end_layout
19298
19299 \begin_layout Standard
19300 以下の節では\SpecialChar LyX
19301 でサポートされているRCSコマンドを説明します.それらのコマンドは
19302 \family sans
19303 ファイル\SpecialChar menuseparator
19304 バージョン管理
19305 \family default
19306 のサブメニューにあります.\SpecialChar LyX
19307 は,RCS 5.7/5.8に対して試験されています.
19308 \end_layout
19309
19310 \begin_layout Subsubsection
19311
19312 \family sans
19313 登録
19314 \end_layout
19315
19316 \begin_layout Standard
19317 文書がバージョン管理の下にない場合には,これがメニューにあらわれる唯一の項目です.文書がバージョン管理下にあれば,項目
19318 \family sans
19319 登録
19320 \family default
19321 は不可視になります.
19322 \end_layout
19323
19324 \begin_layout Standard
19325 このコマンドは,文書をRCSに登録します(CVSが管理しているディレクトリ下にない場合).すると対話的に,文書の最初の説明を入力するように尋ねられます.すると文
19326 書は読み込み専用モードになるので,変更を加えるためには
19327 \family sans
19328 チェックアウトして編集
19329 \family default
19330 を実行する必要があります.バージョン管理下にある文書は,ミニバッファのファイル名の後ろに「 [RCS:<バージョン> <ロック>]」という項目が表示されます.
19331 \end_layout
19332
19333 \begin_layout Standard
19334 実行されるRCSコマンドは:
19335 \end_layout
19336
19337 \begin_layout LyX-Code
19338
19339 \family typewriter
19340 ci -q -u -i -t-"<初期説明文>" <ファイル名>
19341 \end_layout
19342
19343 \begin_layout Standard
19344 スイッチについて知りたい場合は,
19345 \family typewriter
19346 man ci
19347 \family default
19348 を読んでください.
19349 \end_layout
19350
19351 \begin_layout Subsubsection
19352
19353 \family sans
19354 変更をチェックインする
19355 \end_layout
19356
19357 \begin_layout Standard
19358 ファイルの編集が終わると,その変更をチェックインします.このとき,変更についての説明文を求められます.これは履歴ログに記録されます.バージョン番号は繰り上がり,
19359 変更がマスターRCSファイルに適用され,文書がアンロックされて読み込み専用モードになります.
19360 \end_layout
19361
19362 \begin_layout Itemize
19363 RCSコマンド:
19364 \family typewriter
19365 ci -q -u -m"<説明文>" <ファイル名>
19366 \end_layout
19367
19368 \begin_layout Subsubsection
19369
19370 \family sans
19371 チェックアウトして編集
19372 \end_layout
19373
19374 \begin_layout Standard
19375 これは,文書をロックして編集できるようにします.そしてあなただけが文書を読み書きできるようにします.通常は,しばらくの間,文書を編集し,それが終わると変更をチェ
19376 ックインします.あなたがファイルをロックしたことを反映して,ステータスラインが変わります.
19377 \end_layout
19378
19379 \begin_layout Itemize
19380 RCSコマンド:
19381 \family typewriter
19382 co -q -l <ファイル名>
19383 \end_layout
19384
19385 \begin_layout Subsubsection
19386
19387 \family sans
19388 リポジトリのバージョンに戻す
19389 \end_layout
19390
19391 \begin_layout Standard
19392 これは,最終チェックイン以降,文書に加えられた変更をすべて破棄します.変更が破棄される前に,警告が発せられます.
19393 \end_layout
19394
19395 \begin_layout Itemize
19396 RCSコマンド:
19397 \family typewriter
19398 co -f -u<バージョン> <ファイル名>
19399 \end_layout
19400
19401 \begin_layout Subsubsection
19402
19403 \family sans
19404 コピー
19405 \end_layout
19406
19407 \begin_layout Standard
19408 これは,現行文書のコピーを生成します.RCSは,コピー操作を自前ではサポートしませんので,バージョン履歴には保存されず,新コピーは新規ファイルとして追加されます
19409 .最後のチェックイン以降,変更が加えられていないサラの文書であることが要求されます.ファイル名とコピー操作の説明を入力するように促され,その後,新コピーがローカ
19410 ルとリポジトリの両方に生成されます.コピーされた文書と元の文書の親ディレクトリが異なる場合には,コピーにインクルードされたファイルの相対パスは,(
19411 \family sans
19412 ファイル\SpecialChar menuseparator
19413 名前をつけて保存\SpecialChar ldots
19414
19415 \family default
19416 と同様に)全て調整されます.最後に,元の文書の代わりに,コピーされたファイルが読み込まれます.
19417 \end_layout
19418
19419 \begin_layout Labeling
19420 \labelwidthstring 00.00.0000
19421 RCSコマンド:
19422 \lang english
19423
19424 \begin_inset space ~
19425 \end_inset
19426
19427
19428 \begin_inset Newline newline
19429 \end_inset
19430
19431
19432 \lang japanese
19433
19434 \begin_inset Flex Code
19435 status collapsed
19436
19437 \begin_layout Plain Layout
19438 "ファイル名"
19439 \end_layout
19440
19441 \end_inset
19442
19443
19444 \family typewriter
19445 "新ファイル名"
19446 \family default
19447 にコピーする場合
19448 \lang english
19449
19450 \begin_inset Newline newline
19451 \end_inset
19452
19453
19454 \lang japanese
19455
19456 \begin_inset Flex Code
19457 status collapsed
19458
19459 \begin_layout Plain Layout
19460 ci -q -u -i "<新ファイル名>"
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
19475 \end_layout
19476
19477 \end_inset
19478
19479
19480 \end_layout
19481
19482 \begin_layout Subsubsection
19483
19484 \family sans
19485 最後のチェックインを取り消す
19486 \end_layout
19487
19488 \begin_layout Standard
19489 これは,最後のチェックインがあたかも為されなかったかのようにします.\SpecialChar LyX
19490 に読み込まれた文書に変更は加えられませんが,マスターRCSファイルから最後のバージョンが削除
19491 されます.
19492 \end_layout
19493
19494 \begin_layout Itemize
19495 RCSコマンド:
19496 \family typewriter
19497 rcs -o<バージョン> <ファイル名>
19498 \end_layout
19499
19500 \begin_layout Subsubsection
19501
19502 \family sans
19503 履歴を表示
19504 \end_layout
19505
19506 \begin_layout Standard
19507 RCS文書の完全な履歴を表示します.ブラウザ中に,
19508 \family typewriter
19509 rlog <ファイル名>
19510 \family default
19511 の出力が表示されます.詳細は
19512 \family typewriter
19513 man rlog
19514 \family default
19515 をご覧ください.
19516 \end_layout
19517
19518 \begin_layout Subsubsection
19519 改訂情報
19520 \end_layout
19521
19522 \begin_layout Standard
19523 \SpecialChar LyX
19524 は,RCSバージョン番号情報(のみ)をサポートしています.詳細については,
19525 \begin_inset CommandInset ref
19526 LatexCommand ref
19527 reference "subsec:VCS改訂情報"
19528
19529 \end_inset
19530
19531 を参照.
19532 \end_layout
19533
19534 \begin_layout Subsection
19535 \SpecialChar LyX
19536 におけるCVSコマンド
19537 \end_layout
19538
19539 \begin_layout Standard
19540 \SpecialChar LyX
19541 は,現在CVSを一部サポートしています.そのコマンドは,
19542 \family sans
19543 ファイル\SpecialChar menuseparator
19544 バージョン管理
19545 \family default
19546 サブメニューにあります.バージョン管理システムSVNの方が強力なので,可能ならばCVSではなく,SVNを使用してください.
19547 \end_layout
19548
19549 \begin_layout Subsubsection
19550 CVSの一般的な利用法
19551 \end_layout
19552
19553 \begin_layout Standard
19554 CVSを初めて使いたい場合には,外部ツールを使用して自分のレポジトリを作成し,作業コピーをチェックアウトする必要があります.クライアント=サーバーモデルを使用し
19555 ている場合には,最初のレポジトリチェックアウトを行う前にログインする必要があるかもしれません.
19556 \end_layout
19557
19558 \begin_layout Standard
19559 改訂管理下にある文書のレポジトリを他人も利用している場合に,同一文書の同一箇所に別々の変更を加えてしまうと問題が発生します.標準的なCVSレポジトリは,ファイル
19560 ロッキング機構を有しません.これは驚くべきことかもしれませんが,コンフリクトは,文書の同じ箇所の特定の内容について,人々が意見を異にしている場合にのみ発生します
19561 .したがって,共著者同士がコンスタントにコミュニケーションを交わしていれば,このようなコンフリクトは滅多に発生しません.もしコミュニケーションがなければ,いずれ
19562 にしても根本的な問題があるわけです.それにもかかわらず,いわゆる「予備付きチェックアウト」を使用したいと思う人々もいます.この場合,最初にチェックアウトした際に
19563 ,全ファイルの作業コピーは読み込み専用にされ,ユーザーは,作業コピーを書き込み可能にする特別なコマンドを使用した後,編集を開始することになります.変更をチェック
19564 インすると,作業コピーは読み込み専用状態に戻ります.\SpecialChar LyX
19565 で予備付きチェックアウトを利用したい場合には,
19566 \begin_inset Flex Code
19567 status collapsed
19568
19569 \begin_layout Plain Layout
19570 .cvsrc
19571 \end_layout
19572
19573 \end_inset
19574
19575 ファイルを編集して,
19576 \begin_inset Flex Code
19577 status collapsed
19578
19579 \begin_layout Plain Layout
19580 cvs -r
19581 \end_layout
19582
19583 \end_inset
19584
19585 という行を書き加える必要があります.この方法の利点は,文書のうち,書き込み可能コピーを誰が使用しているかを見ることができることです.ただし,一人のユーザーだけが
19586 コピーを書き込み可能にしているとは限りません.
19587 \end_layout
19588
19589 \begin_layout Standard
19590 \SpecialChar LyX
19591 は,あなたが予備付きチェックアウトを使用しているか,予備なしチェックアウトを利用しているか,推測しようと試みます.使用中の作業コピーが読み込み専用になっているか
19592 ,あるいはそれが書き込み可能であって,CVS/Baseサブディレクトリに使用中文書のコピーが存在している場合には,予備付きチェックアウトを使用しているものと仮定
19593 し,そうでない場合には予備なしチェックアウトを使用しているものと仮定します.予備付きチェックアウトが検出された場合には,作業コピーが読み込み専用の場合に書き込み
19594 可能にするためには,
19595 \begin_inset Flex MenuItem
19596 status collapsed
19597
19598 \begin_layout Plain Layout
19599 チェックアウト
19600 \end_layout
19601
19602 \end_inset
19603
19604 メニューを使用しなくてはなりません.その後,
19605 \begin_inset Flex MenuItem
19606 status collapsed
19607
19608 \begin_layout Plain Layout
19609 チェックイン
19610 \end_layout
19611
19612 \end_inset
19613
19614 メニューが利用可能になるので,自分が加えた変更をリポジトリに移した後,作業コピーを再び読み込み専用にする際には,これを使用します.
19615 \end_layout
19616
19617 \begin_layout Standard
19618 CVSの詳細な情報は,
19619 \begin_inset Flex URL
19620 status collapsed
19621
19622 \begin_layout Plain Layout
19623
19624 http://www.nongnu.org/cvs
19625 \end_layout
19626
19627 \end_inset
19628
19629
19630 \begin_inset Flex URL
19631 status collapsed
19632
19633 \begin_layout Plain Layout
19634
19635 http://ximbiot.com/cvs
19636 \end_layout
19637
19638 \end_inset
19639
19640 にあります.
19641 \end_layout
19642
19643 \begin_layout Standard
19644 以下に言及するサブコマンドとスイッチを理解するには,
19645 \family typewriter
19646 man cvs
19647 \family default
19648 をお読みください.
19649 \end_layout
19650
19651 \begin_layout Subsubsection
19652 登録
19653 \end_layout
19654
19655 \begin_layout Standard
19656 お使いの文書が改訂管理下に置かれていなければ,メニューにはこの項目だけが表示されます.もし改訂管理が有効ならば,
19657 \family sans
19658 登録
19659 \family default
19660 項目は表示されません.
19661 \end_layout
19662
19663 \begin_layout Standard
19664 本コマンドは,既に文書ディレクトリをCVS管理下に置いている場合に
19665 \series bold
19666 \emph on
19667 のみ
19668 \series default
19669 \emph default
19670 (すなわち
19671 \begin_inset Flex Code
19672 status collapsed
19673
19674 \begin_layout Plain Layout
19675 CVS/Entries
19676 \end_layout
19677
19678 \end_inset
19679
19680 ファイルが存在する場合にのみ),お使いの文書をCVSに登録します.つまり,外部ツールを使用して,アーカイブを自分で作成ないしチェックアウトしなくてはならないこと
19681 を意味します(このステップを忘れてしまうと,\SpecialChar LyX
19682 は文書をRCSに登録します).
19683 \end_layout
19684
19685 \begin_layout Standard
19686 すると,文書の最初の説明文を入力するように促されます.登録したファイルは,まだチェックインされたわけではないことに注意してください.
19687 \end_layout
19688
19689 \begin_layout Standard
19690 実行されるCVSコマンドは,
19691 \family typewriter
19692 cvs -q add -m"<入力した説明文>" "<ファイル名>"
19693 \family default
19694  です.
19695 \end_layout
19696
19697 \begin_layout Standard
19698 上記および他のすべてのCVSコマンドにおける
19699 \family typewriter
19700 "<ファイル名>"
19701 \family default
19702 は,「カレント作業ディレクトリをファイルの場所に移動し,パスコンポーネントを除いたファイル名を引数として使用する」という意味になります.
19703 \end_layout
19704
19705 \begin_layout Subsubsection
19706 変更のチェックイン
19707 \end_layout
19708
19709 \begin_layout Standard
19710 ファイルの編集を終えたら,変更をコミットします.このとき,文書に変更が加えられていれば,変更の説明文を入れるよう促されます.その後,変更がレポジトリに書き込まれ
19711 ます.文書を変更せず,予備付きチェックアウトが検出された場合,
19712 \begin_inset Flex MenuItem
19713 status collapsed
19714
19715 \begin_layout Plain Layout
19716 チェックアウト
19717 \end_layout
19718
19719 \end_inset
19720
19721 で作られた予備は取り消されます.
19722 \end_layout
19723
19724 \begin_layout Labeling
19725 \labelwidthstring 00.00.0000
19726 CVSコマンド: 
19727 \begin_inset space ~
19728 \end_inset
19729
19730
19731 \begin_inset Newline newline
19732 \end_inset
19733
19734
19735 \begin_inset Flex Code
19736 status collapsed
19737
19738 \begin_layout Plain Layout
19739 cvs -q commit -m"<入力した説明文>" "<ファイル名>"
19740 \end_layout
19741
19742 \end_inset
19743
19744 あるいは
19745 \begin_inset Newline newline
19746 \end_inset
19747
19748
19749 \begin_inset Flex Code
19750 status collapsed
19751
19752 \begin_layout Plain Layout
19753 cvs -q unedit "<ファイル名>"
19754 \end_layout
19755
19756 \end_inset
19757
19758
19759 \end_layout
19760
19761 \begin_layout Subsubsection
19762 変更のチェックアウト
19763 \end_layout
19764
19765 \begin_layout Standard
19766 レポジトリを他人と共有している場合,他人の加えた変更を自らの作業コピーに取り込まなくてはならないことがあります.
19767 \end_layout
19768
19769 \begin_layout Standard
19770 CVSコマンド:
19771 \family typewriter
19772 cvs -q update "<ファイル名>"
19773 \end_layout
19774
19775 \begin_layout Standard
19776 読み込み専用チェックアウトが検出された場合,作業コピーを書き込み可能にし予備を作成します.
19777 \end_layout
19778
19779 \begin_layout Standard
19780 CVSコマンド:
19781 \family typewriter
19782 cvs -q edit "<ファイル名>"
19783 \end_layout
19784
19785 \begin_layout Subsubsection
19786 レポジトリ版に戻す
19787 \end_layout
19788
19789 \begin_layout Standard
19790 これは,最後のチェックイン以降,文書に加えられた変更をすべて廃棄します.変更が廃棄される前に警告が表示されます.最初にファイルが削除され,次にCVS更新コマンド
19791 が実行されます.
19792 \end_layout
19793
19794 \begin_layout Standard
19795 CVSコマンド:
19796 \family typewriter
19797 cvs -q update "<ファイル名>"
19798 \end_layout
19799
19800 \begin_layout Standard
19801 予備付きチェックアウトが検出され,作業コピーに変更がない場合,予備のみが取り消されます.
19802 \end_layout
19803
19804 \begin_layout Standard
19805 CVSコマンド:
19806 \family typewriter
19807 cvs -q unedit "<ファイル名>"
19808 \end_layout
19809
19810 \begin_layout Subsubsection
19811
19812 \family sans
19813 コピー
19814 \end_layout
19815
19816 \begin_layout Standard
19817 これは,現行文書のコピーを生成します.CVSは,コピー操作を自前ではサポートしませんので,バージョン履歴には保存されず,新コピーは新規ファイルとして追加されます
19818 .最後のチェックイン以降,変更が加えられていないサラの文書であることが要求されます.ファイル名とコピー操作の説明を入力するように促され,その後,新コピーがローカ
19819 ルとリポジトリの両方に生成されます.コピーされた文書と元の文書の親ディレクトリが異なる場合には,コピーにインクルードされたファイルの相対パスは,(
19820 \family sans
19821 ファイル\SpecialChar menuseparator
19822 名前をつけて保存\SpecialChar ldots
19823
19824 \family default
19825 と同様に)全て調整されます.最後に,元の文書の代わりに,コピーされたファイルが読み込まれます.
19826 \end_layout
19827
19828 \begin_layout Labeling
19829 \labelwidthstring 00.00.0000
19830 CVSコマンド:
19831 \lang english
19832  
19833 \begin_inset space ~
19834 \end_inset
19835
19836
19837 \begin_inset Newline newline
19838 \end_inset
19839
19840
19841 \end_layout
19842
19843 \begin_layout Labeling
19844 \labelwidthstring 00.00.0000
19845 \begin_inset Flex Code
19846 status collapsed
19847
19848 \begin_layout Plain Layout
19849 "ファイル名"
19850 \end_layout
19851
19852 \end_inset
19853
19854
19855 \begin_inset Flex Code
19856 status collapsed
19857
19858 \begin_layout Plain Layout
19859 "新ファイル名"
19860 \end_layout
19861
19862 \end_inset
19863
19864 にコピーする場合
19865 \lang english
19866
19867 \begin_inset Newline newline
19868 \end_inset
19869
19870
19871 \end_layout
19872
19873 \begin_layout Labeling
19874 \labelwidthstring 00.00.0000
19875 \begin_inset Flex Code
19876 status collapsed
19877
19878 \begin_layout Plain Layout
19879 cvs -q add "<新ファイル名>"
19880 \end_layout
19881
19882 \end_inset
19883
19884
19885 \end_layout
19886
19887 \begin_layout Subsubsection
19888 ファイル名変更
19889 \end_layout
19890
19891 \begin_layout Standard
19892 これは,現行文書のファイル名を変更します.CVSは,ファイル名変更操作を自前ではサポートしませんので,バージョン履歴には保存されず,名称変更後のファイルは,新規
19893 ファイルとして追加されます.最後のチェックイン以降,変更が加えられていないサラの文書であることが要求されます.ファイル名とコピー操作の説明を入力するように促され
19894 ,その後,ローカルとリポジトリの両方でファイル名が変更されます.新旧ファイル名の文書の親ディレクトリが異なる場合には,コピーにインクルードされたファイルの相対パ
19895 スは,(
19896 \family sans
19897 ファイル\SpecialChar menuseparator
19898 名前をつけて保存\SpecialChar ldots
19899
19900 \family default
19901 と同様に)全て調整されます.最後に,新ファイル名を使ってファイルが再度読み込まれます.
19902 \end_layout
19903
19904 \begin_layout Labeling
19905 \labelwidthstring 00.00.0000
19906 CVSコマンド:
19907 \lang english
19908  
19909 \begin_inset space ~
19910 \end_inset
19911
19912
19913 \begin_inset Newline newline
19914 \end_inset
19915
19916
19917 \end_layout
19918
19919 \begin_layout Labeling
19920 \labelwidthstring 00.00.0000
19921 \begin_inset Flex Code
19922 status collapsed
19923
19924 \begin_layout Plain Layout
19925 "ファイル名"
19926 \end_layout
19927
19928 \end_inset
19929
19930
19931 \begin_inset Flex Code
19932 status collapsed
19933
19934 \begin_layout Plain Layout
19935 "新ファイル名"
19936 \end_layout
19937
19938 \end_inset
19939
19940 に変更する場合
19941 \lang english
19942  
19943 \begin_inset space ~
19944 \end_inset
19945
19946
19947 \begin_inset Newline newline
19948 \end_inset
19949
19950
19951 \end_layout
19952
19953 \begin_layout Labeling
19954 \labelwidthstring 00.00.0000
19955 \begin_inset Flex Code
19956 status collapsed
19957
19958 \begin_layout Plain Layout
19959 cvs -q add "<新ファイル名>"
19960 \end_layout
19961
19962 \end_inset
19963
19964
19965 \lang english
19966  
19967 \begin_inset space ~
19968 \end_inset
19969
19970
19971 \begin_inset Newline newline
19972 \end_inset
19973
19974
19975 \end_layout
19976
19977 \begin_layout Labeling
19978 \labelwidthstring 00.00.0000
19979 \begin_inset Flex Code
19980 status collapsed
19981
19982 \begin_layout Plain Layout
19983 cvs -q remove "<ファイル名>"
19984 \end_layout
19985
19986 \end_inset
19987
19988
19989 \end_layout
19990
19991 \begin_layout Subsubsection
19992 ローカルディレクトリチェックアウトのレポジトリからの更新
19993 \end_layout
19994
19995 \begin_layout Standard
19996 子文書や図を含んだり,外部
19997 \begin_inset Flex Code
19998 status collapsed
19999
20000 \begin_layout Plain Layout
20001 .tex
20002 \end_layout
20003
20004 \end_inset
20005
20006 ファイルを取り込むなど,文書が複雑になるにつれ,バージョン管理の利用は複雑になります.\SpecialChar LyX
20007 は,文書が存在するツリー全体の更新をサポートします.これは,CVSの使用法
20008 について詳しい知識のない人々や,レポジトリに追加素材をコミットする野望のない人々と共同作業をするような場合に,特に便利です.ファイル構造は,すべての外部ファイル
20009 が,文書と同じディレクトリかそのサブディレクトリに来るように組織する必要があります.いずれにしても,複合文書を新しいディレクトリを建てて収容するのは,望ましい習
20010 慣です.
20011 \end_layout
20012
20013 \begin_layout Standard
20014 コマンド
20015 \begin_inset Flex Code
20016 status collapsed
20017
20018 \begin_layout Plain Layout
20019 レポジトリを使ってローカル辞書を更新
20020 \end_layout
20021
20022 \end_inset
20023
20024 は,ディレクトリ全体を更新します.ローカルの変更が検出された場合には,更新を開始する前にユーザーに警告が発せられます.マージコンフリクトが発生した場合には,コン
20025 フリクトを起こしている部分の新旧バージョンが,両方とも最終文書に置かれますので,マージの結果を見直し,修正する必要があります.コンフリクトは,
20026 \begin_inset Flex Code
20027 status collapsed
20028
20029 \begin_layout Plain Layout
20030 <<<<<<<
20031 \end_layout
20032
20033 \end_inset
20034
20035
20036 \begin_inset Flex Code
20037 status collapsed
20038
20039 \begin_layout Plain Layout
20040 >>>>>>>
20041 \end_layout
20042
20043 \end_inset
20044
20045 の対に囲まれ,
20046 \begin_inset Flex Code
20047 status collapsed
20048
20049 \begin_layout Plain Layout
20050 =======
20051 \end_layout
20052
20053 \end_inset
20054
20055 で区切られて表示されます.最初の部分は,文書名に続いて,更新操作前のバージョンが置かれています.第2の部分は,
20056 \begin_inset Flex Code
20057 status collapsed
20058
20059 \begin_layout Plain Layout
20060 >
20061 \end_layout
20062
20063 \end_inset
20064
20065 記号列の後にバージョン番号に続いて,レポジトリ版が置かれます.
20066 \end_layout
20067
20068 \begin_layout Labeling
20069 \labelwidthstring 00.00.0000
20070 CVSコマンド: 
20071 \begin_inset space ~
20072 \end_inset
20073
20074
20075 \begin_inset Newline newline
20076 \end_inset
20077
20078
20079 \begin_inset Flex Code
20080 status collapsed
20081
20082 \begin_layout Plain Layout
20083 cd $path; cvs diff "."
20084 \end_layout
20085
20086 \end_inset
20087
20088 (変更が検出された場合には知らせる)
20089 \begin_inset Newline newline
20090 \end_inset
20091
20092
20093 \begin_inset Flex Code
20094 status collapsed
20095
20096 \begin_layout Plain Layout
20097 cd $path; cvs -q update "."
20098 \end_layout
20099
20100 \end_inset
20101
20102
20103 \end_layout
20104
20105 \begin_layout Standard
20106 ここで
20107 \begin_inset Flex Code
20108 status collapsed
20109
20110 \begin_layout Plain Layout
20111 $path
20112 \end_layout
20113
20114 \end_inset
20115
20116 は文書パスを表します.
20117 \end_layout
20118
20119 \begin_layout Subsubsection
20120 履歴を表示
20121 \end_layout
20122
20123 \begin_layout Standard
20124 これは,CVS文書の全履歴を表示します.
20125 \begin_inset Flex Code
20126 status collapsed
20127
20128 \begin_layout Plain Layout
20129 cvs log 
20130 \begin_inset Quotes eld
20131 \end_inset
20132
20133 <ファイル名>
20134 \begin_inset Quotes erd
20135 \end_inset
20136
20137
20138 \end_layout
20139
20140 \end_inset
20141
20142 の出力がブラウザに表示されます.
20143 \end_layout
20144
20145 \begin_layout Subsubsection
20146 改訂情報
20147 \end_layout
20148
20149 \begin_layout Standard
20150 \SpecialChar LyX
20151 は,CVS版数・著者名・最終コミットの日時をサポートします.これらの情報は,すべて
20152 \family typewriter
20153 cvs log -r <ファイル名>
20154 \family default
20155 によって抽出されます.詳細については,第
20156 \begin_inset CommandInset ref
20157 LatexCommand ref
20158 reference "subsec:VCS改訂情報"
20159
20160 \end_inset
20161
20162 節を参照してください.
20163 \end_layout
20164
20165 \begin_layout Subsection
20166 \SpecialChar LyX
20167 におけるSVNコマンド
20168 \end_layout
20169
20170 \begin_layout Standard
20171 \SpecialChar LyX
20172 は,現在SVNを一部サポートしています.そのコマンドは,
20173 \begin_inset Flex MenuItem
20174 status collapsed
20175
20176 \begin_layout Plain Layout
20177 ファイル\SpecialChar menuseparator
20178 バージョン管理
20179 \end_layout
20180
20181 \end_inset
20182
20183 メニューにあります.レポジトリへのアクセスに,ssh経由のパスワード保護アクセスを使用している場合には,端末ウィンドウでの入力を促されます.\SpecialChar LyX
20184 は,SVN
20185  1.5および1.6に対して試験されています.
20186 \end_layout
20187
20188 \begin_layout Subsubsection
20189 登録
20190 \end_layout
20191
20192 \begin_layout Standard
20193 お使いの文書が改訂管理下に置かれていなければ,メニューにはこの項目だけが表示されます.もし改訂管理が有効ならば,
20194 \family sans
20195 登録
20196 \family default
20197 項目は表示されません.
20198 \end_layout
20199
20200 \begin_layout Standard
20201 本コマンドは,既に文書のあるディレクトリをSVN管理下に置いている場合に
20202 \emph on
20203 のみ
20204 \emph default
20205 (すなわち
20206 \begin_inset Flex Code
20207 status collapsed
20208
20209 \begin_layout Plain Layout
20210 .svn/entries
20211 \end_layout
20212
20213 \end_inset
20214
20215 ファイルが存在する場合にのみ),お使いの文書をSVNに登録します.つまり,アーカイブはご自分でチェックアウトしなくてはなりません.
20216 \end_layout
20217
20218 \begin_layout Standard
20219 すると,文書の最初の説明文を入力するように促されます.登録したファイルは,まだコミットされたわけではないことに注意してください.
20220 \end_layout
20221
20222 \begin_layout Standard
20223 実行されるSVNコマンドは,
20224 \begin_inset Flex Code
20225 status collapsed
20226
20227 \begin_layout Plain Layout
20228 svn add -q 
20229 \family typewriter
20230 \lang english
20231
20232 \begin_inset Quotes qld
20233 \end_inset
20234
20235
20236 \family default
20237 \lang japanese
20238 <ファイル名>
20239 \family typewriter
20240 \lang english
20241
20242 \begin_inset Quotes qld
20243 \end_inset
20244
20245
20246 \end_layout
20247
20248 \end_inset
20249
20250 です.
20251 \end_layout
20252
20253 \begin_layout Standard
20254 スイッチの説明は
20255 \begin_inset Flex Code
20256 status collapsed
20257
20258 \begin_layout Plain Layout
20259 man svn
20260 \end_layout
20261
20262 \end_inset
20263
20264 をお読みください.
20265 \end_layout
20266
20267 \begin_layout Subsubsection
20268 変更をチェックイン
20269 \end_layout
20270
20271 \begin_layout Standard
20272 ファイルの編集を終えたら,変更をコミットします.このとき,変更の説明文を入れるよう促されます.その後,変更がコミットされます.
20273 \end_layout
20274
20275 \begin_layout Standard
20276 SVNコマンド
20277 \begin_inset Foot
20278 status collapsed
20279
20280 \begin_layout Plain Layout
20281 ロックが有効になっていない場合です.第
20282 \begin_inset CommandInset ref
20283 LatexCommand ref
20284 reference "subsec:SVNファイルロック"
20285
20286 \end_inset
20287
20288 節をご覧ください.
20289 \end_layout
20290
20291 \end_inset
20292
20293
20294 \begin_inset Flex Code
20295 status collapsed
20296
20297 \begin_layout Plain Layout
20298 svn commit -q -m
20299 \family typewriter
20300 \lang english
20301 "
20302 \family default
20303 \lang japanese
20304 <入力した説明文>
20305 \family typewriter
20306 \lang english
20307 "
20308 \family default
20309 \lang japanese
20310  
20311 \family typewriter
20312 \lang english
20313 "
20314 \family default
20315 \lang japanese
20316 <ファイル名>
20317 \family typewriter
20318 \lang english
20319 "
20320 \end_layout
20321
20322 \end_inset
20323
20324
20325 \end_layout
20326
20327 \begin_layout Subsubsection
20328 チェックアウトして編集
20329 \end_layout
20330
20331 \begin_layout Standard
20332 このファイルの変更点をレポジトリから取得して更新します.すべての干渉点は,手動で解決しなくてはならないので,この機能を使う前にSVNのマージ法と干渉解決法を理解
20333 しておくようにしてください.
20334 \end_layout
20335
20336 \begin_layout Standard
20337 SVNコマンド
20338 \begin_inset Foot
20339 status collapsed
20340
20341 \begin_layout Plain Layout
20342 同上.
20343 \end_layout
20344
20345 \end_inset
20346
20347
20348 \begin_inset Flex Code
20349 status collapsed
20350
20351 \begin_layout Plain Layout
20352 svn update –non-interactive 
20353 \family typewriter
20354 \lang english
20355
20356 \begin_inset Quotes qld
20357 \end_inset
20358
20359
20360 \family default
20361 \lang japanese
20362 <ファイル名>
20363 \family typewriter
20364 \lang english
20365
20366 \begin_inset Quotes qld
20367 \end_inset
20368
20369
20370 \end_layout
20371
20372 \end_inset
20373
20374
20375 \end_layout
20376
20377 \begin_layout Subsubsection
20378 リポジトリ版に戻す
20379 \end_layout
20380
20381 \begin_layout Standard
20382 これは,最後のチェックイン以降,文書に加えられた変更をすべて廃棄します.変更が廃棄される前に警告が表示されます.
20383 \end_layout
20384
20385 \begin_layout Standard
20386 SVNコマンド:
20387 \begin_inset Flex Code
20388 status collapsed
20389
20390 \begin_layout Plain Layout
20391 svn revert -q 
20392 \family typewriter
20393 \lang english
20394
20395 \begin_inset Quotes qld
20396 \end_inset
20397
20398
20399 \family default
20400 \lang japanese
20401 <ファイル名>
20402 \family typewriter
20403 \lang english
20404
20405 \begin_inset Quotes qld
20406 \end_inset
20407
20408
20409 \end_layout
20410
20411 \end_inset
20412
20413
20414 \end_layout
20415
20416 \begin_layout Subsubsection
20417
20418 \family sans
20419 コピー
20420 \end_layout
20421
20422 \begin_layout Standard
20423 これは,現行文書のコピーを生成します.最後のチェックイン以降,変更が加えられていないサラの文書であることが要求されます.ファイル名とコピー操作の説明を入力するよ
20424 うに促され,その後,新コピーがローカルとリポジトリの両方に生成されます.コピーされた文書と元の文書の親ディレクトリが異なる場合には,コピーにインクルードされたフ
20425 ァイルの相対パスは,(
20426 \family sans
20427 ファイル\SpecialChar menuseparator
20428 名前をつけて保存\SpecialChar ldots
20429
20430 \family default
20431 と同様に)全て調整されます.最後に,元の文書の代わりに,コピーされたファイルが読み込まれます.
20432 \end_layout
20433
20434 \begin_layout Labeling
20435 \labelwidthstring 00.00.0000
20436 SVNコマンド:
20437 \lang english
20438
20439 \begin_inset space ~
20440 \end_inset
20441
20442
20443 \begin_inset Newline newline
20444 \end_inset
20445
20446
20447 \end_layout
20448
20449 \begin_layout Labeling
20450 \labelwidthstring 00.00.0000
20451 \begin_inset Flex Code
20452 status collapsed
20453
20454 \begin_layout Plain Layout
20455 svn copy -q "<ファイル名>" "<新ファイル名>"
20456 \end_layout
20457
20458 \end_inset
20459
20460
20461 \lang english
20462
20463 \begin_inset space ~
20464 \end_inset
20465
20466
20467 \begin_inset Newline newline
20468 \end_inset
20469
20470
20471 \end_layout
20472
20473 \begin_layout Labeling
20474 \labelwidthstring 00.00.0000
20475 \begin_inset Flex Code
20476 status collapsed
20477
20478 \begin_layout Plain Layout
20479 svn commit
20480 \end_layout
20481
20482 \end_inset
20483
20484
20485 \end_layout
20486
20487 \begin_layout Subsubsection
20488 ファイル名変更
20489 \end_layout
20490
20491 \begin_layout Standard
20492 これは,現行文書のファイル名を変更します.最後のチェックイン以降,変更が加えられていないサラの文書であることが要求されます.ファイル名とコピー操作の説明を入力す
20493 るように促され,その後,ローカルとリポジトリの両方でファイル名が変更されます.新旧ファイル名の文書の親ディレクトリが異なる場合には,コピーにインクルードされたフ
20494 ァイルの相対パスは,(
20495 \family sans
20496 ファイル\SpecialChar menuseparator
20497 名前をつけて保存\SpecialChar ldots
20498
20499 \family default
20500 と同様に)全て調整されます.最後に,新ファイル名を使ってファイルが再度読み込まれます.
20501 \end_layout
20502
20503 \begin_layout Labeling
20504 \labelwidthstring 00.00.0000
20505 SVNコマンド:
20506 \lang english
20507
20508 \begin_inset space ~
20509 \end_inset
20510
20511
20512 \begin_inset Newline newline
20513 \end_inset
20514
20515
20516 \end_layout
20517
20518 \begin_layout Labeling
20519 \labelwidthstring 00.00.0000
20520 \begin_inset Flex Code
20521 status collapsed
20522
20523 \begin_layout Plain Layout
20524 svn move -q add "<ファイル名>" "<新ファイル名>"
20525 \end_layout
20526
20527 \end_inset
20528
20529
20530 \end_layout
20531
20532 \begin_layout Labeling
20533 \labelwidthstring 00.00.0000
20534 \begin_inset Flex Code
20535 status collapsed
20536
20537 \begin_layout Plain Layout
20538 svn commit
20539 \end_layout
20540
20541 \end_inset
20542
20543
20544 \end_layout
20545
20546 \begin_layout Subsubsection
20547 \begin_inset CommandInset label
20548 LatexCommand label
20549 name "subsec:レポジトリからSVN同期"
20550
20551 \end_inset
20552
20553 レポジトリを使ったローカルディレクトリの同期
20554 \begin_inset Foot
20555 status collapsed
20556
20557 \begin_layout Plain Layout
20558 このコマンドは,subversion 
20559 \begin_inset Formula $\geqq1.5$
20560 \end_inset
20561
20562 でのみ動作することに注意してください.
20563 \end_layout
20564
20565 \end_inset
20566
20567
20568 \end_layout
20569
20570 \begin_layout Standard
20571 上記の各コマンドはすべて,共通の短所を持っています.すなわち,これらのコマンドは現在の文書しか取り扱わないのです.もし,作業中の文書に図を含めたり,外部
20572 \begin_inset Flex Code
20573 status collapsed
20574
20575 \begin_layout Plain Layout
20576 .tex
20577 \end_layout
20578
20579 \end_inset
20580
20581 ファイルを取り込んだりすれば,管理はずっと複雑になります.そこで\SpecialChar LyX
20582 は,文書のおいてあるツリー全体の更新をサポートします
20583 \begin_inset Foot
20584 status collapsed
20585
20586 \begin_layout Plain Layout
20587 すべての外部ファイルが,文書と同じディレクトリかそれ以下のサブディレクトリに来るようにファイル構造を構成する必要があります.
20588 \end_layout
20589
20590 \end_inset
20591
20592 .これは,subversion管理を知らなかったりレポジトリに新しい素材をコミットする勇気のない人たちと共同作業をする羽目になったときに,ひじょうに役に立ちます
20593
20594 \end_layout
20595
20596 \begin_layout Standard
20597 \begin_inset Flex Code
20598 status collapsed
20599
20600 \begin_layout Plain Layout
20601 ローカル辞書をレポジトリを使って更新
20602 \end_layout
20603
20604 \end_inset
20605
20606 コマンドは,ディレクトリ全体を更新し,マージに衝突が発生した場合には,ローカル版は保存されるので,意図しないデータロスが発生しません.ローカルな変更が発見された
20607 場合には,更新が開始される前にユーザに警告が与えられます.
20608 \end_layout
20609
20610 \begin_layout Labeling
20611 \labelwidthstring 00.00.0000
20612 SVNコマンド: 
20613 \begin_inset space ~
20614 \end_inset
20615
20616
20617 \begin_inset Newline newline
20618 \end_inset
20619
20620
20621 \begin_inset Flex Code
20622 status collapsed
20623
20624 \begin_layout Plain Layout
20625 svn diff $path(変更が発見された場合には通知します)
20626 \begin_inset Newline newline
20627 \end_inset
20628
20629 svn update –accept mine-full $path
20630 \end_layout
20631
20632 \end_inset
20633
20634
20635 \end_layout
20636
20637 \begin_layout Standard
20638 ここで
20639 \begin_inset Flex Code
20640 status collapsed
20641
20642 \begin_layout Plain Layout
20643 $path
20644 \end_layout
20645
20646 \end_inset
20647
20648 は文書のパスを示します.
20649 \end_layout
20650
20651 \begin_layout Subsubsection
20652 履歴を表示
20653 \end_layout
20654
20655 \begin_layout Standard
20656 これは,SVN文書の全履歴を表示します.
20657 \begin_inset Flex Code
20658 status collapsed
20659
20660 \begin_layout Plain Layout
20661 svn log 
20662 \family typewriter
20663 \lang english
20664
20665 \begin_inset Quotes qld
20666 \end_inset
20667
20668
20669 \family default
20670 \lang japanese
20671 <ファイル名>
20672 \family typewriter
20673 \lang english
20674
20675 \begin_inset Quotes qld
20676 \end_inset
20677
20678
20679 \end_layout
20680
20681 \end_inset
20682
20683 の出力がブラウザに表示されます.
20684 \end_layout
20685
20686 \begin_layout Subsubsection
20687 ファイルロック
20688 \begin_inset CommandInset label
20689 LatexCommand label
20690 name "subsec:SVNファイルロック"
20691
20692 \end_inset
20693
20694
20695 \end_layout
20696
20697 \begin_layout Standard
20698 別々の改訂管理システム間でファイルを交換しようとすると,二人のユーザが同じ文書(の一部)を編集している場合,マージが衝突する問題を引き起こします.そのような衝突
20699 が発生した場合,手動で解決しなくてはならなくなりますが,その合理的な解決法としては,与えられた時間に一人のユーザだけがファイルを編集することが許されるように保証
20700 するための,何らかのロック機構を導入することが考えられます.
20701 \end_layout
20702
20703 \begin_layout Standard
20704 SVNには,このように相互に排他的なファイルアクセスを提供する機構が二つあります.ロックと,
20705 \begin_inset Flex Code
20706 status collapsed
20707
20708 \begin_layout Plain Layout
20709 svn:needs-lock
20710 \end_layout
20711
20712 \end_inset
20713
20714 svnファイル特性に依拠した書き込み権限の自動設定(第
20715 \begin_inset CommandInset ref
20716 LatexCommand ref
20717 reference "subsec:自動ロック特性"
20718
20719 \end_inset
20720
20721 節を参照)です
20722 \begin_inset Foot
20723 status collapsed
20724
20725 \begin_layout Plain Layout
20726 http://svnbook.red-bean.com/en/1.2/svn.advanced.locking.html
20727 \end_layout
20728
20729 \end_inset
20730
20731 .ある文書について,この特性が検出されたときには,\SpecialChar LyX
20732 は自動的に文書編集にSVNロックを使用するようになり,チェックイン・チェックアウト機構はRCSと同じ枠組みに切
20733 り替わります.これは特に,\SpecialChar LyX
20734 でのファイルの使われ方に以下の二つのモードがあることを意味します.
20735 \end_layout
20736
20737 \begin_layout Itemize
20738 非ロック状態.読み込まれたファイルは,読み込み専用モードになります.編集するためには,チェックアウトする必要があります.
20739 \emph on
20740 チェックアウト
20741 \emph default
20742 を行うと,レポジトリからの更新と,書き込みロックの獲得が行われます.ロックの獲得ができないと,非ロック状態から出ることができません.
20743 \end_layout
20744
20745 \begin_layout Itemize
20746 ロック状態.読み込まれたファイルは,「通常の」編集モードになります.他のユーザには,このファイルを編集する許可が与えられません.
20747 \emph on
20748 チェックイン
20749 \emph default
20750 を行うと,変更のコミットと書き込みロックの解放が行われます.文書に変更が加えられなかった場合には,コミットは実行されず
20751 \begin_inset Foot
20752 status collapsed
20753
20754 \begin_layout Plain Layout
20755 コミットは実行されないのに,コミットメッセージを入力するよう促されますが,驚かないでください.
20756 \end_layout
20757
20758 \end_inset
20759
20760 ,書き込みロックの解放のみが行われます.
20761 \end_layout
20762
20763 \begin_layout Standard
20764 SVNコマンド:
20765 \end_layout
20766
20767 \begin_layout Labeling
20768 \labelwidthstring 00.00.0000
20769 チェックイン: 
20770 \begin_inset Flex Code
20771 status collapsed
20772
20773 \begin_layout Plain Layout
20774 svn commit -q -m
20775 \begin_inset Quotes erd
20776 \end_inset
20777
20778 <説明>
20779 \begin_inset Quotes erd
20780 \end_inset
20781
20782  
20783 \begin_inset Quotes eld
20784 \end_inset
20785
20786 <ファイル名>
20787 \begin_inset Quotes erd
20788 \end_inset
20789
20790
20791 \end_layout
20792
20793 \end_inset
20794
20795
20796 \begin_inset Newline newline
20797 \end_inset
20798
20799
20800 \begin_inset Flex Code
20801 status collapsed
20802
20803 \begin_layout Plain Layout
20804 svn unlock 
20805 \begin_inset Quotes eld
20806 \end_inset
20807
20808 <ファイル名>
20809 \begin_inset Quotes erd
20810 \end_inset
20811
20812
20813 \end_layout
20814
20815 \end_inset
20816
20817
20818 \end_layout
20819
20820 \begin_layout Labeling
20821 \labelwidthstring 00.00.0000
20822 チェックアウト: 
20823 \begin_inset Flex Code
20824 status collapsed
20825
20826 \begin_layout Plain Layout
20827 svn update 
20828 \begin_inset Quotes eld
20829 \end_inset
20830
20831 <ファイル名>
20832 \begin_inset Quotes erd
20833 \end_inset
20834
20835
20836 \end_layout
20837
20838 \end_inset
20839
20840
20841 \begin_inset Newline newline
20842 \end_inset
20843
20844
20845 \begin_inset Flex Code
20846 status collapsed
20847
20848 \begin_layout Plain Layout
20849 svn unlock 
20850 \begin_inset Quotes eld
20851 \end_inset
20852
20853 <ファイル名>
20854 \begin_inset Quotes erd
20855 \end_inset
20856
20857
20858 \end_layout
20859
20860 \end_inset
20861
20862
20863 \end_layout
20864
20865 \begin_layout Subsubsection
20866 自動ロック特性
20867 \begin_inset CommandInset label
20868 LatexCommand label
20869 name "subsec:自動ロック特性"
20870
20871 \end_inset
20872
20873
20874 \end_layout
20875
20876 \begin_layout Standard
20877 上述したような
20878 \begin_inset Flex Code
20879 status collapsed
20880
20881 \begin_layout Plain Layout
20882 .lyx
20883 \end_layout
20884
20885 \end_inset
20886
20887 ファイルに対する書き込み権限の自動設定は,
20888 \begin_inset Flex MenuItem
20889 status collapsed
20890
20891 \begin_layout Plain Layout
20892
20893 \family sans
20894 \lang english
20895 File\SpecialChar menuseparator
20896 Version
20897 \begin_inset space ~
20898 \end_inset
20899
20900 Control\SpecialChar menuseparator
20901 Use Locking Property
20902 \end_layout
20903
20904 \end_inset
20905
20906 で行うことができます.このコマンドは,SVNサーバでファイルがロックされていないときのみ使用可能状態になります(つまり,使用するにはチェックアウトが必要です).
20907 \end_layout
20908
20909 \begin_layout Standard
20910 SVNコマンド:
20911 \end_layout
20912
20913 \begin_layout Labeling
20914 \labelwidthstring 00.00.0000
20915 チェックイン: 
20916 \begin_inset Flex Code
20917 status collapsed
20918
20919 \begin_layout Plain Layout
20920 svn propset svn:needs-lock ON 
20921 \begin_inset Quotes eld
20922 \end_inset
20923
20924 <ファイル名>
20925 \begin_inset Quotes erd
20926 \end_inset
20927
20928
20929 \end_layout
20930
20931 \end_inset
20932
20933
20934 \end_layout
20935
20936 \begin_layout Labeling
20937 \labelwidthstring 00.00.0000
20938 チェックアウト: 
20939 \begin_inset Flex Code
20940 status collapsed
20941
20942 \begin_layout Plain Layout
20943 svn propdel svn:needs-lock 
20944 \begin_inset Quotes eld
20945 \end_inset
20946
20947 <ファイル名>
20948 \begin_inset Quotes erd
20949 \end_inset
20950
20951
20952 \end_layout
20953
20954 \end_inset
20955
20956
20957 \end_layout
20958
20959 \begin_layout Subsubsection
20960 \begin_inset CommandInset label
20961 LatexCommand label
20962 name "subsec:VCS改訂情報"
20963
20964 \end_inset
20965
20966 文書の改訂情報
20967 \end_layout
20968
20969 \begin_layout Standard
20970 文書中で改訂情報を有効化するにはいくつかの方法があります.
20971 \end_layout
20972
20973 \begin_layout Itemize
20974 \SpecialChar LyX
20975 による直接サポート
20976 \end_layout
20977
20978 \begin_deeper
20979 \begin_layout Itemize
20980 ツリー改訂情報(
20981 \begin_inset Flex Code
20982 status collapsed
20983
20984 \begin_layout Plain Layout
20985 vcs-tree-revision
20986 \end_layout
20987
20988 \end_inset
20989
20990 ).
20991 \begin_inset Flex Code
20992 status collapsed
20993
20994 \begin_layout Plain Layout
20995 svnversion
20996 \end_layout
20997
20998 \end_inset
20999
21000 コマンドの出力を返します.下記の表が,結果の読み方のヒントを与えるでしょう.
21001 \end_layout
21002
21003 \begin_layout Standard
21004 \align center
21005 \begin_inset Tabular
21006 <lyxtabular version="3" rows="6" columns="2">
21007 <features tabularvalignment="middle">
21008 <column alignment="center" valignment="top">
21009 <column alignment="center" valignment="top">
21010 <row>
21011 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21012 \begin_inset Text
21013
21014 \begin_layout Plain Layout
21015 出力
21016 \end_layout
21017
21018 \end_inset
21019 </cell>
21020 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
21021 \begin_inset Text
21022
21023 \begin_layout Plain Layout
21024 意味
21025 \end_layout
21026
21027 \end_inset
21028 </cell>
21029 </row>
21030 <row>
21031 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21032 \begin_inset Text
21033
21034 \begin_layout Plain Layout
21035 4123:4168
21036 \end_layout
21037
21038 \end_inset
21039 </cell>
21040 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21041 \begin_inset Text
21042
21043 \begin_layout Plain Layout
21044 改訂版の混合した作業コピー
21045 \end_layout
21046
21047 \end_inset
21048 </cell>
21049 </row>
21050 <row>
21051 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21052 \begin_inset Text
21053
21054 \begin_layout Plain Layout
21055 4168M
21056 \end_layout
21057
21058 \end_inset
21059 </cell>
21060 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21061 \begin_inset Text
21062
21063 \begin_layout Plain Layout
21064 修正された作業コピー
21065 \end_layout
21066
21067 \end_inset
21068 </cell>
21069 </row>
21070 <row>
21071 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21072 \begin_inset Text
21073
21074 \begin_layout Plain Layout
21075 4123S
21076 \end_layout
21077
21078 \end_inset
21079 </cell>
21080 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21081 \begin_inset Text
21082
21083 \begin_layout Plain Layout
21084 スイッチされた作業コピー
21085 \end_layout
21086
21087 \end_inset
21088 </cell>
21089 </row>
21090 <row>
21091 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21092 \begin_inset Text
21093
21094 \begin_layout Plain Layout
21095 4123P
21096 \end_layout
21097
21098 \end_inset
21099 </cell>
21100 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21101 \begin_inset Text
21102
21103 \begin_layout Plain Layout
21104 チェックアウト頻度が低かったことによる不完全な作業コピー
21105 \end_layout
21106
21107 \end_inset
21108 </cell>
21109 </row>
21110 <row>
21111 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21112 \begin_inset Text
21113
21114 \begin_layout Plain Layout
21115 4123:4168MS
21116 \end_layout
21117
21118 \end_inset
21119 </cell>
21120 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
21121 \begin_inset Text
21122
21123 \begin_layout Plain Layout
21124 改訂版が混合し,修正され,スイッチされた作業コピー
21125 \end_layout
21126
21127 \end_inset
21128 </cell>
21129 </row>
21130 </lyxtabular>
21131
21132 \end_inset
21133
21134
21135 \end_layout
21136
21137 \begin_layout Itemize
21138 ファイル改訂情報.
21139 \begin_inset Flex Code
21140 status collapsed
21141
21142 \begin_layout Plain Layout
21143 svn
21144 \begin_inset space ~
21145 \end_inset
21146
21147 info
21148 \begin_inset space ~
21149 \end_inset
21150
21151 –xml
21152 \begin_inset space ~
21153 \end_inset
21154
21155 file.lyx
21156 \end_layout
21157
21158 \end_inset
21159
21160 の出力を解析したものが返されます.サポートされるフラグは
21161 \end_layout
21162
21163 \begin_deeper
21164 \begin_layout Itemize
21165 最終コミットのバージョン番号(
21166 \begin_inset Flex Code
21167 status collapsed
21168
21169 \begin_layout Plain Layout
21170 vcs-revision
21171 \end_layout
21172
21173 \end_inset
21174
21175 )
21176 \end_layout
21177
21178 \begin_layout Itemize
21179 最終コミットの著者(
21180 \begin_inset Flex Code
21181 status collapsed
21182
21183 \begin_layout Plain Layout
21184 vcs-author
21185 \end_layout
21186
21187 \end_inset
21188
21189 )
21190 \end_layout
21191
21192 \begin_layout Itemize
21193 最終コミットの日付(
21194 \begin_inset Flex Code
21195 status collapsed
21196
21197 \begin_layout Plain Layout
21198 vcs-date
21199 \end_layout
21200
21201 \end_inset
21202
21203 )
21204 \end_layout
21205
21206 \begin_layout Itemize
21207 最終コミットの時間(
21208 \begin_inset Flex Code
21209 status collapsed
21210
21211 \begin_layout Plain Layout
21212 vcs-time
21213 \end_layout
21214
21215 \end_inset
21216
21217 )
21218 \end_layout
21219
21220 \end_deeper
21221 \begin_layout Standard
21222 これらの情報は,情報差込枠で得ることができます(例:
21223 \begin_inset Flex Code
21224 status collapsed
21225
21226 \begin_layout Plain Layout
21227 info-insert buffer vcs-date
21228 \end_layout
21229
21230 \end_inset
21231
21232 ).これらの情報は,ファイルをsvn管理下に置いたときのみ(すなわち使用中文書の
21233 \begin_inset Flex Code
21234 status collapsed
21235
21236 \begin_layout Plain Layout
21237 .svn
21238 \end_layout
21239
21240 \end_inset
21241
21242 ディレクトリがあるときのみ)利用可能です.
21243 \end_layout
21244
21245 \end_deeper
21246 \begin_layout Itemize
21247 もう一つの—ハッカー的な—方法は,SVNキーワードを使用する方法です
21248 \begin_inset Foot
21249 status collapsed
21250
21251 \begin_layout Plain Layout
21252 http://svnbook.red-bean.com/en/1.4/svn.advanced.props.special.keywords.html
21253 \end_layout
21254
21255 \end_inset
21256
21257 .簡単に言えば,ファイルキーワード特性を設定して(例:
21258 \family sans
21259 svn propset svn:keywords 'Rev' file.lyx
21260 \family default
21261 ),文書中にキーワード\SpecialChar TeX
21262 コード
21263 \begin_inset Foot
21264 status collapsed
21265
21266 \begin_layout Plain Layout
21267 これは,\SpecialChar LyX
21268 がキーワードタグの途中で改行してしまわないことを確実にするための,簡単な方法です.
21269 \end_layout
21270
21271 \end_inset
21272
21273 タグ(例:
21274 \begin_inset ERT
21275 status open
21276
21277 \begin_layout Plain Layout
21278
21279 $Rev$
21280 \end_layout
21281
21282 \end_inset
21283
21284 )を貼り付けるのです.このようにして,SVNクライアントは,各更新やコミットの後に自動的に改訂番号を代入することができるのです(例
21285 \begin_inset ERT
21286 status open
21287
21288 \begin_layout Plain Layout
21289
21290 $Rev: 59 $
21291 \end_layout
21292
21293 \end_inset
21294
21295 ).このアプローチにはいくつか問題があります.第一に,\SpecialChar TeX
21296 の世界では「$」文字は数式を表すのに使われるので,\SpecialChar LyX
21297 中の
21298 \begin_inset Formula $Rev$
21299 \end_inset
21300
21301 という数式表現が,すべて
21302 \begin_inset Formula $Rev:59$
21303 \end_inset
21304
21305 になってしまいます.その他のId・Date・Authorなどといったキーワードも同様です.第二に,SVN出力は使用中のロケールに依存するので,Dateが用いられ
21306 ると,SVNは,問題を引き起こすような文字列を容易に生成してしまいます.第三に,文書中には,番号だけでなく
21307 \lang english
21308
21309 \begin_inset Flex Code
21310 status collapsed
21311
21312 \begin_layout Plain Layout
21313
21314 \lang english
21315 $Rev: 59 $
21316 \end_layout
21317
21318 \end_inset
21319
21320
21321 \lang japanese
21322 という文字列全体が表示されてしまいます.Subversionがユーザ定義のキーワードを実装するまでは,このアプローチを信頼性を持って使用したり,\SpecialChar LyX
21323 がこれを直接サポ
21324 ートすることは,難しそうです.
21325 \end_layout
21326
21327 \begin_layout Subsection
21328 SVNとWindows環境
21329 \end_layout
21330
21331 \begin_layout Quote
21332 ユーザが,かなり早いうちに自分自身でコマンドライン操作を理解できないのであれば,TortoiseSVNを使った方が賢明でしょう.—P.
21333  A.
21334  ルービン
21335 \end_layout
21336
21337 \begin_layout Subsubsection
21338 準備
21339 \end_layout
21340
21341 \begin_layout Standard
21342 \SpecialChar LyX
21343 を導入して,Subversionレポジトリへのアクセス権を持っている他に,ユーザはSubversionクライアントプログラムを導入する必要があります.クライアン
21344 トプログラムのWindows用インストーラは
21345 \begin_inset CommandInset href
21346 LatexCommand href
21347 name "CollabNet"
21348 target "http://www.collab.net/nonav/downloads/subversion/"
21349 literal "false"
21350
21351 \end_inset
21352
21353 にあります.ユーザは
21354 \begin_inset CommandInset href
21355 LatexCommand href
21356 name "TortoiseSVN"
21357 target "http://tortoisesvn.tigris.org/"
21358 literal "false"
21359
21360 \end_inset
21361
21362 も導入することを考えるでしょう.これはSubversionの操作をWindows Explorerのコンテクスト(右クリック)メニューに統合します.\SpecialChar LyX
21363 外部で行う操
21364 作は,一般的にExplorerコンテクストメニューを使った方が便利です.TortoiseSVNは,\SpecialChar LyX
21365 自身が使用するクライアントプログラムの代わりとは成りませんので
21366 ,注意してください.
21367 \end_layout
21368
21369 \begin_layout Subsubsection
21370 文書をSubversion管理下に置くには
21371 \end_layout
21372
21373 \begin_layout Standard
21374 \SpecialChar LyX
21375 文書をSubversionのバージョン管理下に置く前に,その親ディレクトリをバージョン管理下に置かなくてはなりません.文書を,既にレポジトリに存在するプロジェク
21376 トに追加する際には,新規文書が置かれることになるディレクトリへ,プロジェクトをチェックアウトすることによって実現します.プロジェクト自体がバージョン管理下にない
21377 場合(たとえばこの文書が新規プロジェクトの最初のファイルである場合)には,このディレクトリをレポジトリにインポートしなくてはなりません.これは,\SpecialChar LyX
21378 の外部で行います
21379 .インポートもチェックアウトも共に,TortoiseSVNを使えば,Explorerのコンテクストメニューから簡単に終えることができます.あるいは,DOSプロン
21380 プトでコマンドライン・クライアントを使って成し遂げることもできます.TortoiseSVNを使ったプロジェクトのインポート手続きを下記で説明します.レポジトリは
21381 既に存在し,新規プロジェクトを
21382 \begin_inset Flex Code
21383 status collapsed
21384
21385 \begin_layout Plain Layout
21386 C:
21387 \backslash
21388 new project
21389 \end_layout
21390
21391 \end_inset
21392
21393 で開始するものとします.Subversionクライアントプログラムを使うための情報を得るには,DOSシェルで
21394 \begin_inset Flex Code
21395 status collapsed
21396
21397 \begin_layout Plain Layout
21398 svn –help
21399 \end_layout
21400
21401 \end_inset
21402
21403 を実行してください.
21404 \end_layout
21405
21406 \begin_layout Enumerate
21407 Windows Explorerで
21408 \begin_inset Flex Code
21409 status collapsed
21410
21411 \begin_layout Plain Layout
21412 C:
21413 \backslash
21414 new project
21415 \end_layout
21416
21417 \end_inset
21418
21419 を見つけ出して右クリックし,
21420 \begin_inset Flex MenuItem
21421 status collapsed
21422
21423 \begin_layout Plain Layout
21424 TortoiseSVN\SpecialChar menuseparator
21425 Repo-browser
21426 \end_layout
21427
21428 \end_inset
21429
21430 を選択してください.必要であれば,レポジトリのURLを調整し,OKをクリックしてください.
21431 \end_layout
21432
21433 \begin_layout Enumerate
21434 新規プロジェクトフォルダを置くレポジトリレベル(多くの場合最上位レベル)を右クリックし,
21435 \begin_inset Flex MenuItem
21436 status collapsed
21437
21438 \begin_layout Plain Layout
21439 Create folder\SpecialChar ldots
21440
21441 \end_layout
21442
21443 \end_inset
21444
21445 をクリックしてください.プロジェクトフォルダの名称を入力してOKをクリックしてください.必要であればログファイル用のメッセージを入力し,再びOKをクリックしてく
21446 ださい.新規プロジェクトフォルダがレポジトリに現れるはずです.最後にOKを再度クリックして,レポジトリブラウザを終了してください.
21447 \end_layout
21448
21449 \begin_layout Enumerate
21450 再度
21451 \begin_inset Flex Code
21452 status collapsed
21453
21454 \begin_layout Plain Layout
21455 C:
21456 \backslash
21457 new project
21458 \end_layout
21459
21460 \end_inset
21461
21462 を右クリックし,今度は
21463 \begin_inset Flex MenuItem
21464 status collapsed
21465
21466 \begin_layout Plain Layout
21467 SVN Checkout\SpecialChar ldots
21468
21469 \end_layout
21470
21471 \end_inset
21472
21473 を選択してください.レポジトリにたった今作成した,プロジェクトフォルダのURLを選択し,チェックアウトディレクトリを
21474 \begin_inset Flex Code
21475 status collapsed
21476
21477 \begin_layout Plain Layout
21478 C:
21479 \backslash
21480 new project
21481 \end_layout
21482
21483 \end_inset
21484
21485 に設定してから,OKをクリックしてください.フォルダが空でないことを警告されますが,OKをクリックして進んでください.すると,
21486 \begin_inset Flex Code
21487 status collapsed
21488
21489 \begin_layout Plain Layout
21490 C:
21491 \backslash
21492 new project
21493 \end_layout
21494
21495 \end_inset
21496
21497 の下に
21498 \begin_inset Flex Code
21499 status collapsed
21500
21501 \begin_layout Plain Layout
21502 .svn
21503 \end_layout
21504
21505 \end_inset
21506
21507 ディレクトリが作成されます.
21508 \end_layout
21509
21510 \begin_layout Enumerate
21511 \SpecialChar LyX
21512 で文書を新規作成するか開くかして,
21513 \begin_inset Flex MenuItem
21514 status collapsed
21515
21516 \begin_layout Plain Layout
21517 ファイル\SpecialChar menuseparator
21518 バージョン管理\SpecialChar menuseparator
21519 登録
21520 \end_layout
21521
21522 \end_inset
21523
21524 をクリックします.ログメッセージを入力してOKをクリックし,文書をバージョン管理にコミットしてください.
21525 \end_layout
21526
21527 \begin_layout Standard
21528 爾後,
21529 \begin_inset Flex MenuItem
21530 status collapsed
21531
21532 \begin_layout Plain Layout
21533 ファイル\SpecialChar menuseparator
21534 バージョン管理
21535 \end_layout
21536
21537 \end_inset
21538
21539 メニューのすべての機能が使用できるようになります.Windows ExplorerのTortoiseSVNコンテクストメニューか,コマンドプロンプトでのSubv
21540 ersionクライアントプログラムを使用して,文書をチェックイン・チェックアウトしたり,履歴を見たりといったことができるようになります.
21541 \end_layout
21542
21543 \begin_layout Subsubsection
21544 Windows下でSVNと共にSSHトンネルを使うには
21545 \end_layout
21546
21547 \begin_layout Standard
21548 Linuxに較べて,WindowsでSVNクライアントをSSH経由で通信するようにさせるのは,かなり厄介な仕事です.どのようにクライアント側を設定すればよいか,
21549 少なくとも幾分かのヒントをお示しするつもりですが,sshとWindowsコマンドラインの知識が前もって必要であり,それと共にかなりの量のフラストレーションが溜ま
21550 ることを覚悟しておいてください.
21551 \end_layout
21552
21553 \begin_layout Enumerate
21554 前節で述べたように,Windows用のSVNクライアントを入手してください.これが新規の導入である場合には,何らかのSVNコマンド(たとえば
21555 \begin_inset Flex Code
21556 status collapsed
21557
21558 \begin_layout Plain Layout
21559 svn –version
21560 \end_layout
21561
21562 \end_inset
21563
21564 )を実行して,configファイル群を生成させてください.これらは後で変更を加える必要があります.
21565 \end_layout
21566
21567 \begin_layout Enumerate
21568 Windows用のsshクライアントを選んでください.選択肢はたくさんありますが,ここではPutty tools
21569 \begin_inset Foot
21570 status open
21571
21572 \begin_layout Plain Layout
21573 \begin_inset Flex URL
21574 status collapsed
21575
21576 \begin_layout Plain Layout
21577
21578 http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html
21579 \end_layout
21580
21581 \end_inset
21582
21583
21584 \end_layout
21585
21586 \end_inset
21587
21588 のものを使用することとしましょう.クライアントが接続の度にパスワードを訊いてこないように,接続を自動化する必要があります.簡単にするために,追加的なパスワード保
21589 護などを加えない
21590 \begin_inset Flex Ruby
21591 status collapsed
21592
21593 \begin_layout Plain Layout
21594
21595 \begin_inset Argument post:1
21596 status collapsed
21597
21598 \begin_layout Plain Layout
21599 キー
21600 \end_layout
21601
21602 \end_inset
21603
21604
21605 \end_layout
21606
21607 \end_inset
21608
21609 のみを使用することとします.
21610 \end_layout
21611
21612 \begin_deeper
21613 \begin_layout Enumerate
21614 \begin_inset Flex Code
21615 status collapsed
21616
21617 \begin_layout Plain Layout
21618 puttygen
21619 \end_layout
21620
21621 \end_inset
21622
21623 を使って鍵を生成します..ppkプライベート鍵ファイルを保存し,パブリック鍵ファイルはサーバ側に置きます.SVNサーバがLinuxで走っている場合,このパブリック
21624 鍵の書式はLinuxのopensshと互換性がないために,「Public key for pasting into OpenSSH authorized_key
21625 s file:」編集フィールドから,直接サーバの
21626 \begin_inset Flex Code
21627 status collapsed
21628
21629 \begin_layout Plain Layout
21630 ~/.ssh/authorized_keys
21631 \end_layout
21632
21633 \end_inset
21634
21635 または
21636 \begin_inset Flex Code
21637 status collapsed
21638
21639 \begin_layout Plain Layout
21640 authorized_keys2
21641 \end_layout
21642
21643 \end_inset
21644
21645 ファイルにコピー&ペーストを行わなくてはならないことに注意してください.
21646 \end_layout
21647
21648 \begin_layout Enumerate
21649 Puttyのplinkを入手してください.SVNのconfigファイル
21650 \begin_inset Foot
21651 status collapsed
21652
21653 \begin_layout Plain Layout
21654 正確なパスはWindowsのバージョンに依りますが,通常は
21655 \begin_inset Flex Code
21656 status collapsed
21657
21658 \begin_layout Plain Layout
21659 c:
21660 \backslash
21661 Documents and Settings
21662 \backslash
21663 user
21664 \backslash
21665 Application Data
21666 \backslash
21667 Subversion
21668 \backslash
21669 config
21670 \end_layout
21671
21672 \end_inset
21673
21674
21675 \begin_inset Flex Code
21676 status collapsed
21677
21678 \begin_layout Plain Layout
21679 AppData
21680 \backslash
21681 Roaming
21682 \backslash
21683 Subversion
21684 \end_layout
21685
21686 \end_inset
21687
21688 辺りにあります.
21689 \end_layout
21690
21691 \end_inset
21692
21693 中の
21694 \begin_inset Flex Code
21695 status collapsed
21696
21697 \begin_layout Plain Layout
21698 [tunnels]
21699 \end_layout
21700
21701 \end_inset
21702
21703 セクションにsshコマンドを設定してください.例:
21704 \begin_inset Flex Code
21705 status collapsed
21706
21707 \begin_layout Plain Layout
21708 ssh=c:/path/plink.exe -i c:/path/private_key.ppk
21709 \end_layout
21710
21711 \end_inset
21712
21713
21714 \begin_inset Foot
21715 status collapsed
21716
21717 \begin_layout Plain Layout
21718 通常,正確なコマンドを機能させるには長い時間がかかり,それは多くの物事に依存します.たとえば,リモートサーバがPuttyなどの既定セッションとして保存されないよ
21719 うにしてください.うまく行かない場合には,まずSVNなしでplink経由の接続を試してください.
21720 \end_layout
21721
21722 \end_inset
21723
21724
21725 \end_layout
21726
21727 \end_deeper
21728 \begin_layout Enumerate
21729 SVNアーカイブをチェックアウトしてください.例:
21730 \begin_inset Newline newline
21731 \end_inset
21732
21733
21734 \begin_inset Flex Code
21735 status collapsed
21736
21737 \begin_layout Plain Layout
21738 svn co svn+ssh://user@server/repository_path
21739 \end_layout
21740
21741 \end_inset
21742
21743
21744 \end_layout
21745
21746 \begin_layout Subsubsection
21747 行末変換
21748 \end_layout
21749
21750 \begin_layout Standard
21751 共著者同士がLinuxとWindowsを混在させているとき,\SpecialChar LyX
21752 は.lyxファイル中で異なった行末記号を使用することになります.これは,\SpecialChar LyX
21753 の機能に関する限り問題になりま
21754 せんが,コミット差分は巨大になり,マージではコンフリクトを引き起こしがちです.幸いにして,SVNは,.lyxファイルを
21755 \begin_inset Flex Code
21756 status collapsed
21757
21758 \begin_layout Plain Layout
21759 native
21760 \end_layout
21761
21762 \end_inset
21763
21764 モードに切り替える際
21765 \begin_inset Foot
21766 status collapsed
21767
21768 \begin_layout Plain Layout
21769 手短には
21770 \begin_inset Flex Code
21771 status collapsed
21772
21773 \begin_layout Plain Layout
21774 svn propset svn:eol-style native FILE_NAME
21775 \end_layout
21776
21777 \end_inset
21778
21779
21780 \end_layout
21781
21782 \end_inset
21783
21784 ,CR/LF問題をどのように取り扱えばいいかを知っているので大丈夫です
21785 \begin_inset Foot
21786 status collapsed
21787
21788 \begin_layout Plain Layout
21789 \begin_inset Flex URL
21790 status collapsed
21791
21792 \begin_layout Plain Layout
21793
21794 http://svnbook.red-bean.com/en/1.4/svn.advanced.props.file-portability.html
21795 \end_layout
21796
21797 \end_inset
21798
21799
21800 \end_layout
21801
21802 \end_inset
21803
21804
21805 \end_layout
21806
21807 \begin_layout Subsection
21808 \SpecialChar LyX
21809 におけるGITコマンド
21810 \end_layout
21811
21812 \begin_layout Standard
21813 \SpecialChar LyX
21814 で,最小限のGITコマンドがサポートされるようになりました.これらのコマンドは,
21815 \family sans
21816 ファイル\SpecialChar menuseparator
21817 バージョン管理
21818 \family default
21819 にあります.リポジトリのアクセスに,パスワード保護されたsshを使用している場合には,ターミナルウィンドウでの操作をするように促されます.\SpecialChar LyX
21820 は,GIT
21821  1.7に対して試験を行っています.
21822 \end_layout
21823
21824 \begin_layout Standard
21825 GITと他のバージョン管理システムとの大きな相違点は,GITの配布形態にあります.伝統的なバージョン管理システムでは,リポジトリをホストする,中心となるサーバー
21826 があります.ユーザーは変更点をサーバーにコミットし,他のユーザーが行った更新分をサーバーから受け取ります.一方,GITでは,ユーザーは,ローカルのリポジトリにコ
21827 ミットを行います.ローカルリポジトリは,GITコマンドの
21828 \begin_inset Flex Code
21829 status open
21830
21831 \begin_layout Plain Layout
21832 pull
21833 \end_layout
21834
21835 \end_inset
21836
21837 または
21838 \begin_inset Flex Code
21839 status open
21840
21841 \begin_layout Plain Layout
21842 push
21843 \end_layout
21844
21845 \end_inset
21846
21847 を使って,1つ以上のリモートリポジトリと同期されます.\SpecialChar LyX
21848 は,リモートのGITリポジトリとは,一切関わりません.CVSやSVNの集権的リポジトリに対して行うのと同じ
21849 ことを,ローカルのリポジトリに対してのみ行います.リモートのGITリポジトリを使用している場合には,お好みのGITクライアントを使用して,
21850 \begin_inset Flex Code
21851 status open
21852
21853 \begin_layout Plain Layout
21854 pull
21855 \end_layout
21856
21857 \end_inset
21858
21859 または
21860 \begin_inset Flex Code
21861 status open
21862
21863 \begin_layout Plain Layout
21864 push
21865 \end_layout
21866
21867 \end_inset
21868
21869 の操作を行う必要があります.
21870 \end_layout
21871
21872 \begin_layout Subsubsection
21873 登録
21874 \end_layout
21875
21876 \begin_layout Standard
21877 お使いの文書が改訂管理下に置かれていなければ,メニューにはこの項目だけが表示されます.もし改訂管理が有効ならば,
21878 \family sans
21879 登録
21880 \family default
21881 項目は表示されません.
21882 \end_layout
21883
21884 \begin_layout Standard
21885 本コマンドは,既に文書のあるディレクトリをGIT管理下に置いている場合に
21886 \emph on
21887 のみ
21888 \emph default
21889 (すなわち
21890 \begin_inset Flex Code
21891 status collapsed
21892
21893 \begin_layout Plain Layout
21894 .git/index
21895 \end_layout
21896
21897 \end_inset
21898
21899 ファイルが存在する場合にのみ),お使いの文書をGITに登録します.つまり,アーカイブはご自分でチェックアウトしなくてはなりません.
21900 \end_layout
21901
21902 \begin_layout Standard
21903 すると,文書の最初の説明文を入力するように促されます.登録したファイルは,まだコミットされたわけではないことに注意してください.
21904 \end_layout
21905
21906 \begin_layout Standard
21907 実行されるGITコマンドは,
21908 \begin_inset Flex Code
21909 status collapsed
21910
21911 \begin_layout Plain Layout
21912 git add "<ファイル名>"
21913 \end_layout
21914
21915 \end_inset
21916
21917 です.
21918 \end_layout
21919
21920 \begin_layout Standard
21921 スイッチの説明は
21922 \begin_inset Flex Code
21923 status collapsed
21924
21925 \begin_layout Plain Layout
21926 man git
21927 \end_layout
21928
21929 \end_inset
21930
21931 をお読みください.
21932 \end_layout
21933
21934 \begin_layout Subsubsection
21935 変更をチェックイン
21936 \end_layout
21937
21938 \begin_layout Standard
21939 ファイルの編集を終えたら,変更をコミットします.このとき,変更の説明文を入れるよう促されます.その後,変更がコミットされます.
21940 \end_layout
21941
21942 \begin_layout Standard
21943 GITコマンド:
21944 \begin_inset Flex Code
21945 status collapsed
21946
21947 \begin_layout Plain Layout
21948 git commit -q -m
21949 \begin_inset Quotes erd
21950 \end_inset
21951
21952 <入力した説明文>
21953 \begin_inset Quotes erd
21954 \end_inset
21955
21956  "<ファイル名>"
21957 \end_layout
21958
21959 \end_inset
21960
21961
21962 \end_layout
21963
21964 \begin_layout Subsubsection
21965 リポジトリ版に戻す
21966 \end_layout
21967
21968 \begin_layout Standard
21969 これは,最後のチェックイン以降,文書に加えられた変更をすべて廃棄します.変更が廃棄される前に警告が表示されます.
21970 \end_layout
21971
21972 \begin_layout Standard
21973 GITコマンド:
21974 \begin_inset Flex Code
21975 status collapsed
21976
21977 \begin_layout Plain Layout
21978 git checkout -q 
21979 \family typewriter
21980 \lang english
21981
21982 \begin_inset Quotes qld
21983 \end_inset
21984
21985
21986 \family default
21987 \lang japanese
21988 <ファイル名>
21989 \family typewriter
21990 \lang english
21991
21992 \begin_inset Quotes qld
21993 \end_inset
21994
21995
21996 \end_layout
21997
21998 \end_inset
21999
22000
22001 \end_layout
22002
22003 \begin_layout Subsubsection
22004 ファイル名変更
22005 \end_layout
22006
22007 \begin_layout Standard
22008 これは,現行文書のファイル名を変更します.最後のチェックイン以降,変更が加えられていないサラの文書であることが要求されます.ファイル名とコピー操作の説明を入力す
22009 るように促され,その後,ローカルとリポジトリの両方でファイル名が変更されます.新旧ファイル名の文書の親ディレクトリが異なる場合には,コピーにインクルードされたフ
22010 ァイルの相対パスは,(
22011 \family sans
22012 ファイル\SpecialChar menuseparator
22013 名前をつけて保存\SpecialChar ldots
22014
22015 \family default
22016 と同様に)全て調整されます.最後に,新ファイル名を使ってファイルが再度読み込まれます.
22017 \end_layout
22018
22019 \begin_layout Labeling
22020 \labelwidthstring 00.00.0000
22021 GITコマンド:
22022 \lang english
22023  
22024 \begin_inset space ~
22025 \end_inset
22026
22027
22028 \begin_inset Newline newline
22029 \end_inset
22030
22031
22032 \end_layout
22033
22034 \begin_layout Labeling
22035 \labelwidthstring 00.00.0000
22036 \begin_inset Flex Code
22037 status collapsed
22038
22039 \begin_layout Plain Layout
22040 git mv "<ファイル名>" "<新ファイル名>"
22041 \end_layout
22042
22043 \end_inset
22044
22045
22046 \end_layout
22047
22048 \begin_layout Labeling
22049 \labelwidthstring 00.00.0000
22050 \begin_inset Flex Code
22051 status collapsed
22052
22053 \begin_layout Plain Layout
22054 git commit
22055 \end_layout
22056
22057 \end_inset
22058
22059
22060 \end_layout
22061
22062 \begin_layout Subsubsection
22063 履歴を表示
22064 \end_layout
22065
22066 \begin_layout Standard
22067 これは,GIT文書の全履歴を表示します.
22068 \begin_inset Flex Code
22069 status collapsed
22070
22071 \begin_layout Plain Layout
22072 git log 
22073 \family typewriter
22074 \lang english
22075
22076 \begin_inset Quotes qld
22077 \end_inset
22078
22079
22080 \family default
22081 \lang japanese
22082 <ファイル名>
22083 \family typewriter
22084 \lang english
22085
22086 \begin_inset Quotes qld
22087 \end_inset
22088
22089
22090 \end_layout
22091
22092 \end_inset
22093
22094 の出力がブラウザに表示されます.
22095 \end_layout
22096
22097 \begin_layout Subsubsection
22098 改訂情報
22099 \end_layout
22100
22101 \begin_layout Standard
22102 \SpecialChar LyX
22103 は,ファイルの最終コミットのGITハッシュ番号・著者名・最終コミットの日時をサポートします.これらの情報は,すべて
22104 \family typewriter
22105 git log -n 1 --pretty=format:%H%n%an%n%ai
22106 \family default
22107 によって抽出されます.ツリーバージョン情報は,
22108 \family typewriter
22109 git describe --abbrev --dirty --long
22110 \family default
22111 で取得されます.詳細については,第
22112 \begin_inset CommandInset ref
22113 LatexCommand ref
22114 reference "subsec:VCS改訂情報"
22115
22116 \end_inset
22117
22118 節を参照してください.
22119 \end_layout
22120
22121 \begin_layout Subsection
22122 さらなる調整
22123 \end_layout
22124
22125 \begin_layout Standard
22126 vcコマンド機構が最近になって付け加えられたおかげで,\SpecialChar LyX
22127 のパワーユーザは,改訂管理のための自製コマンドを作ることができるようになりました.
22128 \end_layout
22129
22130 \begin_layout Standard
22131 たとえば,以下のようにして,二つのTortoiseSVNコマンドを直接統合することができます.
22132 \end_layout
22133
22134 \begin_layout Description
22135 コミット: 
22136 \begin_inset Flex Code
22137 status collapsed
22138
22139 \begin_layout Plain Layout
22140 vc-command DR "." "TortoiseProc /command:commit /path:$$p"
22141 \end_layout
22142
22143 \end_inset
22144
22145
22146 \end_layout
22147
22148 \begin_layout Description
22149 元に戻す: 
22150 \begin_inset Flex Code
22151 status collapsed
22152
22153 \begin_layout Plain Layout
22154 vc-command DR "." "TortoiseProc /command:revert /path:$$p"
22155 \end_layout
22156
22157 \end_inset
22158
22159
22160 \end_layout
22161
22162 \begin_layout Subsection
22163 バージョン管理と文書比較
22164 \end_layout
22165
22166 \begin_layout Standard
22167 バージョン管理は,通常
22168 \begin_inset Flex Code
22169 status collapsed
22170
22171 \begin_layout Plain Layout
22172 diff
22173 \end_layout
22174
22175 \end_inset
22176
22177 ダンプを生成することによって,改訂版の間の変更点を検査するのが,典型的な使用法です.これは平文ファイルには有効なのですが,複雑な構造を持つ\SpecialChar LyX
22178 ファイルの場合には,あ
22179 まり便利ではありません.そこで,\SpecialChar LyX
22180 は独自の文書比較機能を提供しています.この機能を呼び出すには2つの方法があります.1つは,\SpecialChar LyX
22181
22182 \begin_inset Flex Code
22183 status collapsed
22184
22185 \begin_layout Plain Layout
22186
22187 \lang english
22188 vc-compare
22189 \end_layout
22190
22191 \end_inset
22192
22193 関数を直接呼び出す方法であり(詳細は\SpecialChar LyX
22194 関数説明書を参照),もう1つは
22195 \begin_inset Flex MenuItem
22196 status collapsed
22197
22198 \begin_layout Plain Layout
22199 旧改訂と比較\SpecialChar ldots
22200
22201 \end_layout
22202
22203 \end_inset
22204
22205 メニューないしアイコンを使用する方法です
22206 \lang english
22207 or by the toolbar icon 
22208 \begin_inset Info
22209 type  "icon"
22210 arg   "vc-compare"
22211 \end_inset
22212
22213  or the menu item 
22214 \begin_inset Info
22215 type  "menu"
22216 arg   "vc-compare"
22217 \end_inset
22218
22219 , respectively
22220 \lang japanese
22221 .当該文書のうち,任意の2つの改訂版を比較することもできますし,編集中の現行版を古い改訂版と比較することもできます(このとき改訂版遡及数「
22222 \begin_inset Flex MenuItem
22223 status collapsed
22224
22225 \begin_layout Plain Layout
22226 0
22227 \end_layout
22228
22229 \end_inset
22230
22231 」は,編集中のファイルと最後にコミットした改訂版との比較を意味します).
22232 \end_layout
22233
22234 \begin_layout Standard
22235 この機能は,SVNとRCSでサポートされていますが,RCSは,より複雑なバージョン付けスキームを持っているため,制約があります.ダイアログ中で改訂版を指定する際
22236 の数字は,つねにRCS改訂番号の最後の数を指し示します(例:「1.2.35」版のときには「35」).現在のところ,改訂のGIT表記はサポートされておらず,
22237 \lang english
22238
22239 \begin_inset Flex Code
22240 status collapsed
22241
22242 \begin_layout Plain Layout
22243
22244 \lang english
22245 HEAD~X
22246 \end_layout
22247
22248 \end_inset
22249
22250 .
22251 \lang japanese
22252 の形で表記されるXステップ前の改訂版を,編集中文書と比較することのみが可能です.
22253 \end_layout
22254
22255 \begin_layout Section
22256 文芸プログラミング
22257 \end_layout
22258
22259 \begin_layout Standard
22260
22261 \noun on
22262 Kayvan Sylvan
22263 \noun default
22264 (kayvan@sylvan.com)改訂 
22265 \noun on
22266 Edmar Wienskoski Jr.
22267 \noun default
22268 (edmar-w-jr@technologist.com)原文
22269 \end_layout
22270
22271 \begin_layout Subsection
22272 はじめに
22273 \end_layout
22274
22275 \begin_layout Standard
22276 この節の主な目的は,文芸的プログラミング(literate programming)のために,\SpecialChar LyX
22277 をどう使えばよいかをお見せすることです.ここでは,あなたがこのプロ
22278 グラミング技術をよくご存じで,「tangling」や「weaving」の意味するところを知っているものとして説明します.そうでない場合には,以下の各節にあるウェ
22279 ブリンクをたどってください.そこには,かつての開発の歴史から最新のツールチップまで,たくさんの良質なドキュメンテーションがあります.
22280 \end_layout
22281
22282 \begin_layout Standard
22283 また,あなたが,\SpecialChar LyX
22284 の設定を変更することを厭わない程度まで\SpecialChar LyX
22285 に習熟しており,Xリソースファイルにも親しんでいることを前提にしています.そうでない場合は,あなたの必要と
22286 するトピックを扱っている,\SpecialChar LyX
22287 の他の説明書で調べてください.
22288 \end_layout
22289
22290 \begin_layout Subsection
22291 文芸プログラミング
22292 \end_layout
22293
22294 \begin_layout Standard
22295 以下は,文芸プログラミング FAQからの抜粋です.
22296 \end_layout
22297
22298 \begin_layout Quotation
22299 文芸プログラミングは,人間が読むのに適した形でのドキュメンテーションとソースの組合わせです.実際,文芸的プログラムは楽しい読み物であるべきであり,さらには参加し
22300 たいとさえ思わせるべきなのです!(ボブ,ごめん.言わずにはいれなかった.)一般的に,文芸プログラムは,ソースとドキュメンテーションを同一ファイル上に結合したもの
22301 です.そして,文芸プログラミングツールは,ファイルを解析して,読むことのできるドキュメンテーションか,あるいはコンパイル可能なソースを生成します.文芸プログラミ
22302 ングのWEBスタイルは,D.
22303 \begin_inset space \thinspace{}
22304 \end_inset
22305
22306 E.
22307  Knuthが,\SpecialChar TeX
22308 組版ソフトウエアを開発中に作り出したものです.
22309 \end_layout
22310
22311 \begin_layout Standard
22312 他のエキスパートの発言です.
22313 \end_layout
22314
22315 \begin_layout Quotation
22316
22317 \emph on
22318 文芸プログラミングは,冗長なコメント付けと何が違いますか?
22319 \end_layout
22320
22321 \begin_layout Quotation
22322 3つの際立った特徴があります.重要な順に列挙すれば,
22323 \end_layout
22324
22325 \begin_deeper
22326 \begin_layout Itemize
22327 推敲の順序が柔軟
22328 \end_layout
22329
22330 \begin_layout Itemize
22331 ブラウジングの自動サポート
22332 \end_layout
22333
22334 \begin_layout Itemize
22335 特に図式と数式を含んだドキュメンテーションの組版
22336 \end_layout
22337
22338 \end_deeper
22339 \begin_layout Quotation
22340 などがあります.
22341 \end_layout
22342
22343 \begin_layout Standard
22344 あなたの興味に火を付けたところで書誌情報を見てみましょう.
22345 \end_layout
22346
22347 \begin_layout Subsubsection
22348 書誌情報
22349 \end_layout
22350
22351 \begin_layout Standard
22352 完全な文芸プログラミング FAQは
22353 \end_layout
22354
22355 \begin_layout Quote
22356 Literate Programming FAQ 
22357 \begin_inset Flex URL
22358 status collapsed
22359
22360 \begin_layout Plain Layout
22361
22362 http://www.xmarks.com/site/shelob.ce.ttu.edu/daves/lpfaq/faq.html
22363 \end_layout
22364
22365 \end_inset
22366
22367
22368 \end_layout
22369
22370 \begin_layout Standard
22371 にあります.
22372 \end_layout
22373
22374 \begin_layout Standard
22375 このFAQには,23(二十三です!)の文芸プログラミング用ツールが列挙されています.一部のツールは,特定のプログラミング言語用に特化したものですが,一般的な対象
22376 を持つものもあります.私は自分で使うのに,いくつかの理由から
22377 \noun on
22378 Noweb
22379 \noun default
22380 を選びました.
22381 \end_layout
22382
22383 \begin_layout Itemize
22384 説明文書を\SpecialChar LaTeX
22385 でもHTMLでも出力できる.
22386 \end_layout
22387
22388 \begin_layout Itemize
22389 開放的なアーキテクチャに持っているので,新しいフィルタをプラグインとして加えたり,自分が必要な特別な処理を実行することが容易である.
22390 \lang english
22391
22392 \begin_inset Foot
22393 status collapsed
22394
22395 \begin_layout Plain Layout
22396
22397 \emph on
22398 \lang english
22399 Filters 
22400 \emph default
22401 are programs that read a given data stream and output a manipulated data
22402  stream.
22403  That way, a WEB file (consisting of literate code) can be turned into a
22404  file consisting only of C program code or \SpecialChar LaTeX
22405  code.
22406 \end_layout
22407
22408 \end_inset
22409
22410  
22411 \end_layout
22412
22413 \begin_layout Itemize
22414 すでに利用可能となっているフィルタの良質なコレクションがある(HTMLはその一つです).
22415 \end_layout
22416
22417 \begin_layout Itemize
22418 無料である.
22419 \end_layout
22420
22421 \begin_layout Standard
22422 Nowebのウェブページは
22423 \end_layout
22424
22425 \begin_layout Quote
22426 Nowebホームページ 
22427 \begin_inset Flex URL
22428 status collapsed
22429
22430 \begin_layout Plain Layout
22431
22432 http://www.cs.virginia.edu/~nr/noweb/
22433 \end_layout
22434
22435 \end_inset
22436
22437
22438 \end_layout
22439
22440 \begin_layout Standard
22441 にあります.ここから始めれば,たくさんの興味深いリンクや,文芸プログラミングの用例にたどり着くことができます.
22442 \end_layout
22443
22444 \begin_layout Subsection
22445 \SpecialChar LyX
22446 とNowebを使った文芸プログラミング
22447 \end_layout
22448
22449 \begin_layout Standard
22450 \SpecialChar LyX
22451 における文芸プログラミングのサポートは,\SpecialChar LyX
22452 の汎用変換機構を使用して実現しています.このサポートは「Noweb非依存」的な方法で提供されているので,LyXの設定を変
22453 更するだけで,自分の好きな他の文芸プログラミングツールを使って,この新しい\SpecialChar LyX
22454 の機能を利用することができます.
22455 \end_layout
22456
22457 \begin_layout Subsubsection
22458 ドキュメントとコードの生成(weavingおよびtangling)
22459 \end_layout
22460
22461 \begin_layout Paragraph
22462 nowebモジュールの使用
22463 \end_layout
22464
22465 \begin_layout Standard
22466 Nowebと\SpecialChar LyX
22467 の導入に成功したならば,新規文書を開いたときにはいつも,文書クラスを選択した後,
22468 \family sans
22469 文書\SpecialChar menuseparator
22470 設定
22471 \family default
22472 メニューで「noweb」モジュールを追加するようにしてください.Nowebが正しく導入されていれば,「モジュール」リンクをクリックした際,利用可能リストに「no
22473 web」モジュールが表示され,文書に追加できるようになっています.
22474 \end_layout
22475
22476 \begin_layout Paragraph
22477 コードの入力
22478 \end_layout
22479
22480 \begin_layout Standard
22481 \SpecialChar LyX
22482 では,
22483 \lang english
22484 custom inset
22485 \lang japanese
22486  
22487 \begin_inset Flex Noun
22488 status collapsed
22489
22490 \begin_layout Plain Layout
22491 Chunk
22492 \end_layout
22493
22494 \end_inset
22495
22496 という名前のレイアウトを使えば,コードを入力することができます.Nowebは次のようにchunks を区切ります.
22497 \end_layout
22498
22499 \begin_layout LyX-Code
22500 <<My code>>=
22501 \end_layout
22502
22503 \begin_layout LyX-Code
22504   code
22505 \end_layout
22506
22507 \begin_layout LyX-Code
22508   more code
22509 \end_layout
22510
22511 \begin_layout LyX-Code
22512   even more code
22513 \end_layout
22514
22515 \begin_layout LyX-Code
22516   @
22517 \end_layout
22518
22519 \begin_layout Standard
22520 問題は<<と@の間にあるものを完全にそのままの形で扱わなければならないことです.つまり,\SpecialChar LyX
22521 は,この間に書かれたものを特別に解釈することは決してあってはなりません.
22522 これも
22523 \begin_inset Flex Noun
22524 status collapsed
22525
22526 \begin_layout Plain Layout
22527 Chunk
22528 \end_layout
22529
22530 \end_inset
22531
22532 によって取り扱われ,
22533 \lang english
22534 text inset
22535 \lang japanese
22536 通常の段落のように見えますが,自由に空白を入れることができます.
22537 \end_layout
22538
22539 \begin_layout Standard
22540 特殊な注釈として,chunk内でNowebの「%def」を使えば,Nowebのidentifierの相互参照に項目を加えることができます.次の例を見てください.
22541 \end_layout
22542
22543 \begin_layout LyX-Code
22544 <<My chunk>>=
22545 \end_layout
22546
22547 \begin_layout LyX-Code
22548 def some_function(args):
22549 \end_layout
22550
22551 \begin_layout LyX-Code
22552    "This is the doc string for this function."
22553 \end_layout
22554
22555 \begin_layout LyX-Code
22556    print "My args: ", args
22557 \end_layout
22558
22559 \begin_layout LyX-Code
22560 @ %def some_function
22561 \end_layout
22562
22563 \begin_layout Standard
22564 これをどのように使って,その結果相互参照がどうなるかは
22565 \emph on
22566 LIBDIR/examples/listerrors.lyx
22567 \emph default
22568 の中の文芸pythonプログラムを見るとよくわかります.
22569 \end_layout
22570
22571 \begin_layout Paragraph
22572 説明文書の生成
22573 \end_layout
22574
22575 \begin_layout Standard
22576 この時点で,適切な文書クラスを持ち,いくつかのコードとテキストが入った新規文書ファイルが作成されているはずです.これをどうやって印刷したらいいのでしょう.答えは
22577 簡単で,通常の文書で行うように
22578 \family sans
22579 文書\SpecialChar menuseparator
22580 表示
22581 \family default
22582 等を選ぶだけです.特別な手続きは必要ありません.
22583 \end_layout
22584
22585 \begin_layout Standard
22586 理解を助けるために,\SpecialChar LyX
22587 の内部で何が起っているかを説明しておきましょう.
22588 \end_layout
22589
22590 \begin_layout Enumerate
22591
22592 \family sans
22593 文書\SpecialChar menuseparator
22594 更新
22595 \family default
22596 が選択されると,\SpecialChar LaTeX
22597 ファイルがつくられます.
22598 \end_layout
22599
22600 \begin_deeper
22601 \begin_layout Standard
22602 文書が文芸プログラミング用のクラスであった場合には,拡張子に(
22603 \begin_inset Flex MenuItem
22604 status collapsed
22605
22606 \begin_layout Plain Layout
22607 設定
22608 \end_layout
22609
22610 \end_inset
22611
22612 パネルで設定した)文芸プログラム用のものがつけられます.それ以外は .texが拡張子に使われます.
22613 \end_layout
22614
22615 \end_deeper
22616 \begin_layout Enumerate
22617 違いがファイル名だけなのに注意してください.\SpecialChar LyX
22618 による特別な処理は必要ありません.
22619 \begin_inset Flex Noun
22620 status collapsed
22621
22622 \begin_layout Plain Layout
22623 Chunk
22624 \end_layout
22625
22626 \end_inset
22627
22628
22629 \lang english
22630 inset
22631 \lang japanese
22632 環境でコードを入力するのだけがポイントです.
22633 \end_layout
22634
22635 \begin_layout Enumerate
22636 文書が何らかの文芸プログラムクラスなら,\SpecialChar LyX
22637 は,\SpecialChar LyX
22638 からNowebへの内部変換子を用い,それからNowebから\SpecialChar LaTeX
22639 への変換子
22640 \begin_inset Foot
22641 status collapsed
22642
22643 \begin_layout Plain Layout
22644 これらの変換子は,
22645 \family sans
22646 ツール\SpecialChar menuseparator
22647 設定
22648 \family default
22649 パネルの変換子タブに定義されています.変換子の一般的な情報については,取扱説明書『
22650 \emph on
22651 カスタマイズ篇
22652 \emph default
22653 』の「
22654 \emph on
22655 変換子
22656 \emph default
22657 」の節をご覧ください.
22658 \end_layout
22659
22660 \end_inset
22661
22662 を使って\SpecialChar LaTeX
22663 ファイルを生成します.
22664 \end_layout
22665
22666 \begin_deeper
22667 \begin_layout Standard
22668 それ以外の場合はこのステップを飛ばします.
22669 \end_layout
22670
22671 \end_deeper
22672 \begin_layout Enumerate
22673 最後に\SpecialChar LaTeX
22674 が実行され,通常の文書と同じ後処理が行われます.
22675 \end_layout
22676
22677 \begin_layout Standard
22678 様々な変換子が実行するコマンドを変更すれば,簡単に,特定の「文芸プログラムツール」から変更することができます.
22679 \end_layout
22680
22681 \begin_layout Paragraph
22682 コードの生成
22683 \end_layout
22684
22685 \begin_layout Standard
22686 ビルドメニューが選ばれた場合や,それに対応するツールバーのボタンが押された場合,上のステップ1と同様に\SpecialChar LaTeX
22687 ファイルが生成されます.それから\SpecialChar LyX
22688
22689 \family typewriter
22690 Noweb->Program
22691 \family default
22692 のコンバータを起動します.通常は,このコンバータは(他のコンバータと同じように)2つの部分からできています.
22693 \end_layout
22694
22695 \begin_layout Enumerate
22696 変換プログラム.このプログラムは,一つのフォーマットから他のフォーマットへの変換を行います(この場合は,Nowebフォーマットからプログラムの疑似フォーマットへ
22697 変換します).
22698 \end_layout
22699
22700 \begin_layout Enumerate
22701 エラーログ解析子.これはエラーメッセージを\SpecialChar LyX
22702 が理解できる形へ書き直します.これによって,\SpecialChar LyX
22703 はファイルバッファの正しい位置へエラーボックスを配置することができます.
22704 \end_layout
22705
22706 \begin_layout Standard
22707 冒頭部,「変換子」設定は
22708 \end_layout
22709
22710 \begin_layout LyX-Code
22711
22712 \family typewriter
22713 build-script $$i $$r
22714 \end_layout
22715
22716 \begin_layout Standard
22717 と指定します.これは基本的に,\SpecialChar LyX
22718
22719 \begin_inset Quotes erd
22720 \end_inset
22721
22722
22723 \family typewriter
22724 build-script
22725 \family default
22726
22727 \begin_inset Quotes erd
22728 \end_inset
22729
22730 (プログラムかスクリプト名)を(一般には\SpecialChar LyX
22731 の一時ファイル用のディレクトリにつくられる),Nowebファイルの名前と元の\SpecialChar LyX
22732 ファイルのディレクトリパスを使って呼び出すこ
22733 とを意味しています.
22734 \end_layout
22735
22736 \begin_layout Standard
22737 以下に「build-script」の一例を書いておきます.パスが通っているディレクトリに置いて使います.
22738 \end_layout
22739
22740 \begin_layout LyX-Code
22741
22742 \family sans
22743 #!/bin/sh
22744 \end_layout
22745
22746 \begin_layout LyX-Code
22747
22748 \family sans
22749 #
22750 \end_layout
22751
22752 \begin_layout LyX-Code
22753
22754 \family sans
22755 notangle -Rbuild-script $1 | env NOWEB_SOURCE=$1 NOWEB_OUTPUT_DIR=$2 sh
22756 \end_layout
22757
22758 \begin_layout Standard
22759 変換子設定の次の部分は「フラグ」で,これは
22760 \end_layout
22761
22762 \begin_layout LyX-Code
22763
22764 \family typewriter
22765 parselog=$$s/scripts/listerrors
22766 \end_layout
22767
22768 \begin_layout Standard
22769 に設定されます.
22770 \begin_inset Newline newline
22771 \end_inset
22772
22773 これは,
22774 \begin_inset Quotes erd
22775 \end_inset
22776
22777 build-script
22778 \begin_inset Quotes erd
22779 \end_inset
22780
22781 プロセスが生成したエラーを
22782 \begin_inset Quotes erd
22783 \end_inset
22784
22785 listerrors
22786 \begin_inset Quotes erd
22787 \end_inset
22788
22789 プログラムを介して処理するものです.
22790 \end_layout
22791
22792 \begin_layout Standard
22793 ビルドは,通常\SpecialChar LyX
22794 の一時ディレクトリで行われるので,変換によって生成されたファイルはそのディレクトリに置かれます.\SpecialChar LyX
22795 は,主要ファイルとみなされるものをコピーして取り出
22796 しますが,
22797 \family typewriter
22798 Noweb→プログラム
22799 \family default
22800 変換は複数のファイルを生成することがあるので,\SpecialChar LyX
22801 を閉じる際に大半が削除される可能性があります.これが,NOWEB_OUTPUT_DIR環境変数を渡して,build
22802 -script chunkが生成したファイルをその場所に置かれるようにする理由です.
22803 \end_layout
22804
22805 \begin_layout Paragraph
22806 文章中でのプログラムの構築操作の説明
22807 \end_layout
22808
22809 \begin_layout Standard
22810 \SpecialChar LyX
22811 とNowebの統合の最後の部分は,
22812 \begin_inset Quotes eld
22813 \end_inset
22814
22815 build-script
22816 \begin_inset Quotes erd
22817 \end_inset
22818
22819  chunkです.一般に,あなたのプログラムの構築操作の説明それ自身をchunkに入れて文章中に含めなければなりません.上の例のnoweb用のbuild-scr
22820 iptでは,chunkを見つけるのにnotangleコマンドを使い,shを使って起動します.
22821 \end_layout
22822
22823 \begin_layout Standard
22824 以下に典型的なchunkがどのようなものかを書いておきます.
22825 \end_layout
22826
22827 \begin_layout LyX-Code
22828 <<build-script>>=
22829 \begin_inset Newline newline
22830 \end_inset
22831
22832
22833 \end_layout
22834
22835 \begin_layout LyX-Code
22836 #!/bin/sh
22837 \begin_inset Newline newline
22838 \end_inset
22839
22840
22841 \begin_inset Newline newline
22842 \end_inset
22843
22844 if [ -z "${NOWEB_SOURCE}" ]
22845 \begin_inset Newline newline
22846 \end_inset
22847
22848 then
22849 \end_layout
22850
22851 \begin_layout LyX-Code
22852 NOWEB_SOURCE=myfile.nw
22853 \begin_inset Newline newline
22854 \end_inset
22855
22856 fi
22857 \begin_inset Newline newline
22858 \end_inset
22859
22860 [...
22861  code to extract files ...
22862  use NOWEB_OUTPUT_DIR here ...]
22863 \begin_inset Newline newline
22864 \end_inset
22865
22866 [...
22867  code to compile files ...]
22868 \begin_inset Newline newline
22869 \end_inset
22870
22871 @
22872 \end_layout
22873
22874 \begin_layout Standard
22875
22876 \emph on
22877 LIBDIR/examples/listerrors.lyx
22878 \emph default
22879
22880 \emph on
22881 LIBDIR/examples/Literate.lyx
22882 \emph default
22883 を見てください.この2つのファイルには異なる実装のlisterrorsプログラムが含まれていて,これまで説明してきた各々の部分が全体としてどのようになるかをわか
22884 ってもらうための例です.また,
22885 \emph on
22886 LIBDIR/examples/noweb2lyx.lyx
22887 \emph default
22888 も見てください.面白いことに,これらの3つのファイルは,Python,C,Perlが各々使われていて,\SpecialChar LyX
22889 の文芸プログラミングのサポートがプログラム言語に依存しない
22890 ことを示しています.
22891 \end_layout
22892
22893 \begin_layout Subsubsection
22894 \SpecialChar LyX
22895 の設定
22896 \end_layout
22897
22898 \begin_layout Standard
22899 すべての文芸プログラムのための設定は,
22900 \family sans
22901 ツール\SpecialChar menuseparator
22902 設定
22903 \family default
22904 パネルの「ファイル処理」タブですることができます.重要な部分を見ておきましょう.
22905 \end_layout
22906
22907 \begin_layout Description
22908 「NoWeb」形式 ファイル形式タブで設定します.ここで,Noweb特有の設定を行います.
22909 \family sans
22910 GUI名
22911 \family default
22912
22913 \family typewriter
22914 NoWeb
22915 \family default
22916 に,拡張子を
22917 \family typewriter
22918 .nw
22919 \family default
22920 に設定してください.これによって,\SpecialChar LyX
22921 に変換プロセスの第一段階でつくられるファイルに
22922 \family typewriter
22923 .nw
22924 \family default
22925 という拡張子をつけることを指示します.
22926 \end_layout
22927
22928 \begin_layout Description
22929 プログラム形式 これは,変換の終着点を示すためだけの,空の形式です(これがあることで,変換子を作ることができます).
22930 \end_layout
22931
22932 \begin_layout Description
22933
22934 \family sans
22935 NoWeb
22936 \family default
22937 ->
22938 \family sans
22939 \SpecialChar LaTeX
22940
22941 \family default
22942  この変換子は,文芸的文書の「weaving」を行います.Nowebの場合,「
22943 \family typewriter
22944 noweave -delay -index $$i > $$o
22945 \family default
22946 」に設定されます.
22947 \end_layout
22948
22949 \begin_layout Description
22950
22951 \family sans
22952 NoWeb
22953 \family default
22954 ->
22955 \family sans
22956 Program
22957 \family default
22958  これは「tangling」を行います.上述のように,変換子は「
22959 \family typewriter
22960 build-script $$i $$r
22961 \family default
22962 」,フラグは「
22963 \family typewriter
22964 parselog=$$s/scripts/listerrors
22965 \family default
22966 」となります.
22967 \end_layout
22968
22969 \begin_layout Subsubsection
22970 デバッグ機能拡張
22971 \end_layout
22972
22973 \begin_layout Standard
22974 ddd/gdbまたは他のデバッガで使える「server-goto-file-row」関数が新たに\SpecialChar LyX
22975 サーバに実装されました.
22976 \end_layout
22977
22978 \begin_layout Standard
22979 ddd/gdbでデバッグしているとき,一つの
22980 \begin_inset Flex Ruby
22981 status collapsed
22982
22983 \begin_layout Plain Layout
22984
22985 \begin_inset Argument post:1
22986 status collapsed
22987
22988 \begin_layout Plain Layout
22989 キー
22990 \end_layout
22991
22992 \end_inset
22993
22994
22995 \end_layout
22996
22997 \end_inset
22998
22999 ストロークで現在実行している位置でテキストエディタを起動できます.既定のdddの設定ではShift-Ctrl-Vになっています.この設定はdddで
23000 \begin_inset Flex MenuItem
23001 status collapsed
23002
23003 \begin_layout Plain Layout
23004 ツール\SpecialChar menuseparator
23005 設定\SpecialChar menuseparator
23006 ファイル書式
23007 \end_layout
23008
23009 \end_inset
23010
23011 ウインドウを表示して,
23012 \begin_inset Flex MenuItem
23013 status collapsed
23014
23015 \begin_layout Plain Layout
23016 編集プログラム
23017 \end_layout
23018
23019 \end_inset
23020
23021 エントリを変えると変えることができます.
23022 \end_layout
23023
23024 \begin_layout Standard
23025 新しい\SpecialChar LyX
23026 サーバの関数と,このdddの機能を使うために
23027 \begin_inset Flex MenuItem
23028 status collapsed
23029
23030 \begin_layout Plain Layout
23031 編集プログラム
23032 \end_layout
23033
23034 \end_inset
23035
23036 を次のように設定してください.
23037 \end_layout
23038
23039 \begin_layout LyX-Code
23040
23041 \family sans
23042 echo "LYXCMD:monitor:server-goto-file-row:@FILE@ @LINE@" >~/.lyxpipe.in
23043 \end_layout
23044
23045 \begin_layout Standard
23046 こうしておくとdddを使っていてプログラムの編集したい場所があったとき,(dddのウインドウで)Shift-Ctrl-Vを押すだけでdddは\SpecialChar LyX
23047 サーバに情報を送り,\SpecialChar LyX
23048
23049 は同じファイルを表示し,カーソルはdddが示した場所へあらわれます.これでもうデバッグの最中に推測しながらスクロールして場所を探す必要がなくなります.
23050 \end_layout
23051
23052 \begin_layout Standard
23053 この機能が動くには\SpecialChar LyX
23054 サーバが利用可能でなければなりません(既定では\SpecialChar LyX
23055 サーバーは使えないようになっています)
23056 \end_layout
23057
23058 \begin_layout Standard
23059
23060 \lang english
23061 Sec.
23062 \begin_inset space ~
23063 \end_inset
23064
23065
23066 \begin_inset CommandInset ref
23067 LatexCommand ref
23068 reference "sec:Starting-the-Server"
23069
23070 \end_inset
23071
23072  explains how to do that.
23073 \end_layout
23074
23075 \begin_layout Subsubsection
23076 ツールバー拡張
23077 \end_layout
23078
23079 \begin_layout Standard
23080 ツールバーに加えることのできる6つの新しいボタンがあります.そのうちの5つのボタンは段落環境へのショートカットです.
23081 \family sans
23082 標準
23083 \family default
23084 ・節・
23085 \family sans
23086 \SpecialChar LaTeX
23087
23088 \family default
23089
23090 \family sans
23091 \SpecialChar LyX
23092 コード
23093 \family default
23094
23095 \lang english
23096 Four of these buttons are short cuts to layout styles: 
23097 \family sans
23098 Standard
23099 \family default
23100
23101 \family sans
23102 Section
23103 \family default
23104
23105 \family sans
23106 \SpecialChar LaTeX
23107
23108 \family default
23109 , and 
23110 \family sans
23111 \SpecialChar LyX
23112 -Code
23113 \family default
23114 , one for the custom inset 
23115 \family sans
23116 Chunk
23117 \family default
23118 .
23119 \lang japanese
23120 最後の一つはファイルメニュー項目の「Build Program」への
23121 \begin_inset Flex Ruby
23122 status collapsed
23123
23124 \begin_layout Plain Layout
23125
23126 \family roman
23127 \series medium
23128 \shape up
23129 \size normal
23130 \emph off
23131 \bar no
23132 \noun off
23133 \color none
23134 捷径
23135 \family default
23136 \series default
23137 \shape default
23138 \size default
23139 \emph default
23140 \bar default
23141 \noun default
23142 \color inherit
23143
23144 \begin_inset Argument post:1
23145 status collapsed
23146
23147 \begin_layout Plain Layout
23148 ショートカット
23149 \end_layout
23150
23151 \end_inset
23152
23153
23154 \end_layout
23155
23156 \end_inset
23157
23158 です.
23159 \end_layout
23160
23161 \begin_layout Standard
23162 \SpecialChar LyX
23163 はツールバーで使うためのいくつものボタンを用意しています.私のツールバーはこの6つのショートカットに
23164 \begin_inset Flex MenuItem
23165 status collapsed
23166
23167 \begin_layout Plain Layout
23168 文書\SpecialChar menuseparator
23169 更新\SpecialChar menuseparator
23170 DVI
23171 \end_layout
23172
23173 \end_inset
23174
23175
23176 \begin_inset Flex MenuItem
23177 status collapsed
23178
23179 \begin_layout Plain Layout
23180 文書\SpecialChar menuseparator
23181 表示\SpecialChar menuseparator
23182 DVI
23183 \end_layout
23184
23185 \end_inset
23186
23187 を組み合わせたものになっています.
23188 \end_layout
23189
23190 \begin_layout LyX-Code
23191 Toolbar
23192 \end_layout
23193
23194 \begin_layout LyX-Code
23195   Layouts
23196 \end_layout
23197
23198 \begin_layout LyX-Code
23199   Icon "layout Standard"
23200 \end_layout
23201
23202 \begin_layout LyX-Code
23203   Icon "layout Section"
23204 \end_layout
23205
23206 \begin_layout LyX-Code
23207   Icon "layout \SpecialChar LaTeX
23208 "
23209 \end_layout
23210
23211 \begin_layout LyX-Code
23212   Icon "layout \SpecialChar LyX
23213 -Code"
23214 \end_layout
23215
23216 \begin_layout LyX-Code
23217   Icon "
23218 \lang english
23219 flex.insert 
23220 \lang japanese
23221 Chunk"
23222 \end_layout
23223
23224 \begin_layout LyX-Code
23225   Separator
23226 \end_layout
23227
23228 \begin_layout LyX-Code
23229   Icon "buffer-view"
23230 \end_layout
23231
23232 \begin_layout LyX-Code
23233   Icon "buffer-typeset"
23234 \end_layout
23235
23236 \begin_layout LyX-Code
23237   Icon "build-program"
23238 \end_layout
23239
23240 \begin_layout LyX-Code
23241   Separator
23242 \end_layout
23243
23244 \begin_layout LyX-Code
23245 .
23246 \end_layout
23247
23248 \begin_layout LyX-Code
23249 .
23250 \end_layout
23251
23252 \begin_layout LyX-Code
23253 .
23254 \end_layout
23255
23256 \begin_layout LyX-Code
23257 End
23258 \end_layout
23259
23260 \begin_layout Subsubsection
23261 色の変更
23262 \end_layout
23263
23264 \begin_layout Standard
23265 \SpecialChar LyX
23266 ではいくつもの色を
23267 \begin_inset Flex MenuItem
23268 status collapsed
23269
23270 \begin_layout Plain Layout
23271 設定
23272 \end_layout
23273
23274 \end_inset
23275
23276 で変えることができます.人々が困りがちなのは,\SpecialChar LaTeX
23277 フォント色でしょう.これは,既定では赤になっていますが,chunkは\SpecialChar LaTeX
23278 フォントを使うことになっていて,文芸プログラミ
23279 ング文書には多くのchunkが現れるために,すべて赤で見ていると疲れてしまうかもしれません.これは,
23280 \begin_inset Flex MenuItem
23281 status collapsed
23282
23283 \begin_layout Plain Layout
23284 操作性\SpecialChar menuseparator
23285
23286 \end_layout
23287
23288 \end_inset
23289
23290 タブで変更することができます.
23291 \end_layout
23292
23293 \begin_layout Standard
23294 もう一つは,改行文字が画面に表示されていることでしょう.改行文字の色を背景の色と同じにすることで改行文字を見えなくできます.私は改行文字を背景の色に似ているが少
23295 し違う色にすることを勧めます.こうすると,改行文字があるのはわかりますが,じゃまにならないでしょう.
23296 \end_layout
23297
23298 \begin_layout Subsection
23299 \SpecialChar LyX
23300 とknitr/Sweave
23301 \end_layout
23302
23303 \begin_layout Standard
23304 knitrとSweaveへのサポートについては,用例ファイル
23305 \emph on
23306 knitr.lyx
23307 \emph default
23308 とSweave取扱説明書(
23309 \family sans
23310 ヘルプ\SpecialChar menuseparator
23311 用途別説明書
23312 \family default
23313 メニュー)に説明があります.
23314 \end_layout
23315
23316 \begin_layout Chapter
23317 特殊機能
23318 \begin_inset CommandInset label
23319 LatexCommand label
23320 name "chap:Special-features"
23321
23322 \end_inset
23323
23324
23325 \end_layout
23326
23327 \begin_layout Standard
23328 \SpecialChar LyX
23329 では,\SpecialChar LaTeX
23330 で可能なことは何でも出来ます.すべての\SpecialChar LaTeX
23331 の機能を直接サポートできるわけではありませんが,どんな場合でも\SpecialChar TeX
23332 コードを使用することはできます.本章は,ユーザの興味が
23333 有りそうな特別な機能について,若干取り上げます.図表やフロート,ボックス,注釈に関する特別な機能については,取扱説明書『
23334 \emph on
23335 埋込オブジェクト篇
23336 \emph default
23337 』をご参照ください.
23338 \end_layout
23339
23340 \begin_layout Section
23341 多段組
23342 \end_layout
23343
23344 \begin_layout Standard
23345 この機能は,文書設定の
23346 \family sans
23347 本文レイアウト
23348 \family default
23349 にある
23350 \family sans
23351 二段組文書
23352 \family default
23353 とは別の機能です.文書全体に二段組を行いたい場合には,
23354 \family sans
23355 二段組文書
23356 \family default
23357 オプションを利用することをお勧めします.その他の場合には,本機能をご使用ください.
23358 \end_layout
23359
23360 \begin_layout Standard
23361 文書中で多段組を行うには,\SpecialChar LaTeX
23362 パッケージ
23363 \family sans
23364 multicol
23365 \family default
23366
23367 \begin_inset Index idx
23368 status collapsed
23369
23370 \begin_layout Plain Layout
23371 \SpecialChar LaTeX
23372 ぱっけーじ @ \SpecialChar LaTeX
23373 パッケージ ! multicol
23374 \end_layout
23375
23376 \end_inset
23377
23378 を導入した上で,(
23379 \family sans
23380 文書\SpecialChar menuseparator
23381 設定\SpecialChar menuseparator
23382 モジュール
23383 \family default
23384 メニューから)
23385 \family sans
23386 多段組
23387 \family default
23388 モジュールを読み込んでください.
23389 \end_layout
23390
23391 \begin_layout Standard
23392 多段組中の脚注は,ページ下部に置かれ,各段の下ごとには置かれません.各段においては,フロートに
23393 \family sans
23394 段をまたぐ
23395 \family default
23396 オプションを使用する必要があるほかは,通常通りの使用をすることができます.
23397 \end_layout
23398
23399 \begin_layout Subsection
23400 基本
23401 \end_layout
23402
23403 \begin_layout Standard
23404 文章中で二段組を使用したい場合には,段組を始める場所で
23405 \family sans
23406 挿入\SpecialChar menuseparator
23407 任意設定差込枠\SpecialChar menuseparator
23408 多段組
23409 \family default
23410 メニューを使用して,多段組差込枠を挿入してください.二段組で印字されるべき文章は,全てこの差込枠の中に書いてください.
23411 \end_layout
23412
23413 \begin_layout Standard
23414 下記はその用例です.
23415 \end_layout
23416
23417 \begin_layout Standard
23418 \noindent
23419 \begin_inset Flex Multiple Columns
23420 status open
23421
23422 \begin_layout Plain Layout
23423 \noindent
23424
23425 \series bold
23426 \size small
23427 The Adventure of the Empty House
23428 \series default
23429
23430 \begin_inset Newline newline
23431 \end_inset
23432
23433 by Sir Arthur Conan Doyle
23434 \end_layout
23435
23436 \begin_layout Plain Layout
23437
23438 \size small
23439 It was in the spring of the year 1894 that all London was interested, and
23440  the fashionable world dismayed, by the murder of the Honourable Ronald
23441  Adair under most unusual and inexplicable circumstances.
23442  The public has already learned those particulars of the crime which came
23443  out in the police investigation, but a good deal was suppressed upon that
23444  occasion, since the case for the prosecution was so overwhelmingly strong
23445  that it was not necessary to bring forward all the facts.
23446  Only now, at the end of nearly ten years, am I allowed to supply those
23447  missing links which make up the whole of that remarkable chain.
23448  The crime was of interest in itself, but that interest was as nothing to
23449  me compared to the inconceivable sequel, which afforded me the greatest
23450  shock and surprise of any event in my adventurous life.
23451  Even now, after this long interval, I find myself thrilling as I think
23452  of it, and feeling once more that sudden flood of joy, amazement, and increduli
23453 ty which utterly submerged my mind.
23454  Let me say to that public, which has shown some interest in those glimpses
23455  which I have occasionally given them of the thoughts and actions of a very
23456  remarkable man, that they are not to blame me if I have not shared my knowledge
23457  with them, for I should have considered it my first duty to do so, had
23458  I not been barred by a positive prohibition from his own lips, which was
23459  only withdrawn upon the third of last month.
23460 \end_layout
23461
23462 \end_inset
23463
23464
23465 \end_layout
23466
23467 \begin_layout Standard
23468 三段以上にするには,カーソルを多段組差込枠の内部において,挿入\SpecialChar menuseparator
23469 段数メニューを使用してください.この差込枠の中に,欲しい段数を書き入れます(三段組の場合には「3」
23470 と書きます).
23471 \begin_inset Newline newline
23472 \end_inset
23473
23474 下記は三段組の例です.
23475 \end_layout
23476
23477 \begin_layout Standard
23478 \begin_inset Flex Multiple Columns
23479 status open
23480
23481 \begin_layout Plain Layout
23482
23483 \size footnotesize
23484 \begin_inset Argument 1
23485 status open
23486
23487 \begin_layout Plain Layout
23488 3
23489 \end_layout
23490
23491 \end_inset
23492
23493 It can be imagined that my close intimacy with Sherlock Holmes had interested
23494  me deeply in crime, and that after his disappearance I never failed to
23495  read with care the various problems which came before the public.
23496  And I even attempted, more than once, for my own private satisfaction,
23497  to employ his methods in their solution, though with indifferent success.
23498  There was none, however, which appealed to me like this tragedy of Ronald
23499  Adair.
23500  As I read the evidence at the inquest, which led up to a verdict of willful
23501  murder against some person or persons unknown, I realized more clearly
23502  than I had ever done the loss which the community had sustained by the
23503  death of Sherlock Holmes.
23504  There were points about this strange business which would, I was sure,
23505  have specially appealed to him, and the efforts of the police would have
23506  been supplemented, or more probably anticipated, by the trained observation
23507  and the alert mind of the first criminal agent in Europe.
23508  All day, as I drove upon my round, I turned over the case in my mind and
23509  found no explanation which appeared to me to be adequate.
23510  At the risk of telling a twice-told tale, I will recapitulate the facts
23511  as they were known to the public at the conclusion of the inquest.
23512 \end_layout
23513
23514 \end_inset
23515
23516
23517 \end_layout
23518
23519 \begin_layout Standard
23520 お望みならば10段組まで組むことができますが,文書の読者にとっては,あまり気持ちのいいものではないでしょう.
23521 \end_layout
23522
23523 \begin_layout Standard
23524 \begin_inset Newpage newpage
23525 \end_inset
23526
23527
23528 \end_layout
23529
23530 \begin_layout Subsection
23531 段組中の段組
23532 \end_layout
23533
23534 \begin_layout Standard
23535 また,段中に段を組むこともできます.
23536 \end_layout
23537
23538 \begin_layout Standard
23539 \begin_inset Flex Multiple Columns
23540 status open
23541
23542 \begin_layout Plain Layout
23543
23544 \size footnotesize
23545 The Honourable Ronald Adair was the second son of the Earl of Maynooth,
23546  at that time governor of one of the Australian colonies.
23547  Adair's mother had returned from Australia to undergo the operation for
23548  cataract, and she, her son Ronald, and her daughter Hilda were living together
23549  at 427 Park Lane.
23550 \end_layout
23551
23552 \begin_layout Plain Layout
23553 \begin_inset Flex Multiple Columns
23554 status open
23555
23556 \begin_layout Plain Layout
23557
23558 \size footnotesize
23559 The youth moved in the best society–had, so far as was known, no enemies
23560  and no particular vices.
23561  He had been engaged to Miss Edith Woodley, of Carstairs, but the engagement
23562  had been broken off by mutual consent some months before, and there was
23563  no sign that it had left any very profound feeling behind it.
23564  For the rest {sic} the man's life moved in a narrow and conventional circle,
23565  for his habits were quiet and his nature unemotional.
23566  Yet it was upon this easy-going young aristocrat that death came, in most
23567  strange and unexpected form, between the hours of ten and eleven-twenty
23568  on the night of March 30, 1894.
23569 \end_layout
23570
23571 \end_inset
23572
23573
23574 \end_layout
23575
23576 \begin_layout Plain Layout
23577
23578 \size footnotesize
23579 Ronald Adair was fond of cards–playing continually, but never for such stakes
23580  as would hurt him.
23581  He was a member of the Baldwin, the Cavendish, and the Bagatelle card clubs.
23582  It was shown that, after dinner on the day of his death, he had played
23583  a rubber of whist at the latter club.
23584  He had also played there in the afternoon.
23585
23586 \size default
23587  
23588 \size footnotesize
23589 The evidence of those who had played with him– Mr.
23590  Murray, Sir John Hardy, and Colonel Moran–showed that the game was whist,
23591  and that there was a fairly equal fall of the cards.
23592  Adair might have lost five pounds, but not more.
23593  His fortune was a considerable one, and such a loss could not in any way
23594  affect him.
23595  He had played nearly every day at one club or other, but he was a cautious
23596  player, and usually rose a winner.
23597  It came out in evidence that, in partnership with Colonel Moran, he had
23598  actually won as much as four hundred and twenty pounds in a sitting, some
23599  weeks before, from Godfrey Milner and Lord Balmoral.
23600  So much for his recent history as it came out at the inquest.
23601 \end_layout
23602
23603 \end_inset
23604
23605
23606 \end_layout
23607
23608 \begin_layout Subsection
23609 応用例
23610 \end_layout
23611
23612 \begin_layout Standard
23613 本節の用例は,多段組のさらに特別な機能を示すためのものです.
23614 \end_layout
23615
23616 \begin_layout Standard
23617 多段組機能についてさらに知りたい場合には,\SpecialChar LaTeX
23618
23619 \family sans
23620 パッケージmulticol
23621 \family default
23622
23623 \lang english
23624
23625 \begin_inset CommandInset href
23626 LatexCommand href
23627 name "documentation"
23628 target "http://mirror.ctan.org/macros/latex/required/tools/multicol.pdf"
23629 literal "false"
23630
23631 \end_inset
23632
23633
23634 \lang japanese
23635 の取扱説明書をご覧ください.
23636 \end_layout
23637
23638 \begin_layout Subsubsection
23639 序文
23640 \end_layout
23641
23642 \begin_layout Standard
23643 多段組に序文を追記するには,カーソルを多段組差込枠内部に置き,
23644 \family sans
23645 挿入\SpecialChar menuseparator
23646 序文
23647 \family default
23648 メニューを使用してください.序文は,この差込枠内に書いてください.
23649 \begin_inset Newline newline
23650 \end_inset
23651
23652 序文のある文章の例を掲げます.
23653 \end_layout
23654
23655 \begin_layout Standard
23656 \begin_inset VSpace bigskip
23657 \end_inset
23658
23659
23660 \end_layout
23661
23662 \begin_layout Standard
23663 \begin_inset Flex Multiple Columns
23664 status open
23665
23666 \begin_layout Plain Layout
23667 \begin_inset Argument 2
23668 status open
23669
23670 \begin_layout Plain Layout
23671 And the story continues and continues and continues and continues\SpecialChar ldots
23672
23673 \end_layout
23674
23675 \end_inset
23676
23677
23678 \size small
23679 On the evening of the crime, he returned from the club exactly at ten.
23680  His mother and sister were out spending the evening with a relation.
23681  The servant deposed that she heard him enter the front room on the second
23682  floor, generally used as his sitting-room.
23683  She had lit a fire there, and as it smoked she had opened the window.
23684  No sound was heard from the room until eleven-twenty, the hour of the return
23685  of Lady Maynooth and her daughter.
23686  Desiring to say good-night, she attempted to enter her son's room.
23687  The door was locked on the inside, and no answer could be got to their
23688  cries and knocking.
23689  Help was obtained, and the door forced.
23690  The unfortunate young man was found lying near the table.
23691  His head had been horribly mutilated by an expanding revolver bullet, but
23692  no weapon of any sort was to be found in the room.
23693 \end_layout
23694
23695 \end_inset
23696
23697
23698 \end_layout
23699
23700 \begin_layout Standard
23701 最初の\SpecialChar TeX
23702 コードの後に,節宣言コマンドを\SpecialChar TeX
23703 コードとして使用すれば,節見出しを前書きとして使用することができます.例えば,
23704 \end_layout
23705
23706 \begin_layout Standard
23707
23708 \series bold
23709
23710 \backslash
23711 subsection{小節見出し}
23712 \end_layout
23713
23714 \begin_layout Standard
23715 というコマンドは,小節を生成します.以下の例では,前書きが小々節になっています.
23716 \end_layout
23717
23718 \begin_layout Standard
23719 \begin_inset Flex Multiple Columns
23720 status open
23721
23722 \begin_layout Plain Layout
23723 \begin_inset Argument 2
23724 status open
23725
23726 \begin_layout Plain Layout
23727 \begin_inset ERT
23728 status collapsed
23729
23730 \begin_layout Plain Layout
23731
23732
23733 \backslash
23734 subsubsection{
23735 \end_layout
23736
23737 \end_inset
23738
23739 これは序文の小々節見出しです
23740 \begin_inset ERT
23741 status collapsed
23742
23743 \begin_layout Plain Layout
23744
23745 }
23746 \end_layout
23747
23748 \end_inset
23749
23750
23751 \end_layout
23752
23753 \end_inset
23754
23755
23756 \size small
23757 A minute examination of the circumstances served only to make the case more
23758  complex.
23759  In the first place, no reason could be given why the young man should have
23760  fastened the door upon the inside.
23761  There was the possibility that the murderer had done this, and had afterwards
23762  escaped by the window.
23763  The drop was at least twenty feet, however, and a bed of crocuses in full
23764  bloom lay beneath.
23765  Neither the flowers nor the earth showed any sign of having been disturbed,
23766  nor were there any marks upon the narrow strip of grass which separated
23767  the house from the road.
23768  Apparently, therefore, it was the young man himself who had fastened the
23769  door.
23770  But how did he come by his death? No one could have climbed up to the window
23771  without leaving traces.
23772  Suppose a man had fired through the window, he would indeed be a remarkable
23773  shot who could with a revolver inflict so deadly a wound.
23774  Again, Park Lane is a frequented thoroughfare; there is a cab stand within
23775  a hundred yards of the house.
23776  No one had heard a shot.
23777 \end_layout
23778
23779 \end_inset
23780
23781
23782 \end_layout
23783
23784 \begin_layout Standard
23785 多段組を開始する部分に,必要とされる6行を確保出来るだけの垂直スペースがページに残されていない場合,多段組の前に改行が挿入されます.前書きの行数如何では,この必
23786 要行数を変更したいかもしれません.これは,カーソルを多段組差込枠内部の(もしあれば)序文の後に置き,
23787 \family sans
23788 挿入\SpecialChar menuseparator
23789 改頁前の余白
23790 \family default
23791 メニューを使用することで設定できます.この差込枠に,余白の大きさを「5cm」などと書き込んでください.
23792 \end_layout
23793
23794 \begin_layout Standard
23795 以下の例では,「
23796 \family sans
23797 7
23798 \backslash
23799 baselineskip
23800 \family default
23801 」を用いて,必要行数を7行に指定しています(コマンド
23802 \family sans
23803
23804 \backslash
23805 baselineskip
23806 \family default
23807 は\SpecialChar TeX
23808 コードとして入力する必要があります).
23809 \end_layout
23810
23811 \begin_layout Standard
23812 \begin_inset Flex Multiple Columns
23813 status open
23814
23815 \begin_layout Plain Layout
23816 \begin_inset Argument 3
23817 status open
23818
23819 \begin_layout Plain Layout
23820 7
23821 \begin_inset ERT
23822 status collapsed
23823
23824 \begin_layout Plain Layout
23825
23826
23827 \backslash
23828 baselineskip
23829 \end_layout
23830
23831 \end_inset
23832
23833
23834 \end_layout
23835
23836 \end_inset
23837
23838
23839 \size small
23840 On the evening of the crime, he returned from the club exactly at ten.
23841  His mother and sister were out spending the evening with a relation.
23842  The servant deposed that she heard him enter the front room on the second
23843  floor, generally used as his sitting-room.
23844  She had lit a fire there, and as it smoked she had opened the window.
23845  No sound was heard from the room until eleven-twenty, the hour of the return
23846  of Lady Maynooth and her daughter.
23847  Desiring to say good-night, she attempted to enter her son's room.
23848  The door was locked on the inside, and no answer could be got to their
23849  cries and knocking.
23850  Help was obtained, and the door forced.
23851  The unfortunate young man was found lying near the table.
23852  His head had been horribly mutilated by an expanding revolver bullet, but
23853  no weapon of any sort was to be found in the room.
23854 \end_layout
23855
23856 \end_inset
23857
23858
23859 \end_layout
23860
23861 \begin_layout Subsubsection
23862 周囲の余白
23863 \end_layout
23864
23865 \begin_layout Standard
23866 多段組の前後の余白は,長さ
23867 \series bold
23868
23869 \backslash
23870
23871 \family sans
23872 \series default
23873 multicolsepを変えることで変更することができます
23874 \family default
23875 .例えば,\SpecialChar TeX
23876 コードで書かれたコマンド
23877 \end_layout
23878
23879 \begin_layout LyX-Code
23880
23881 \family sans
23882
23883 \backslash
23884 setlength{
23885 \backslash
23886 multicolsep}{3cm}
23887 \end_layout
23888
23889 \begin_layout Standard
23890 は,その値を3
23891 \begin_inset space \thinspace{}
23892 \end_inset
23893
23894 cmに変更します.この変更は,多段組が始まる前に指定しなくてはなりません.既定値は13
23895 \begin_inset space \thinspace{}
23896 \end_inset
23897
23898 ptです.
23899 \end_layout
23900
23901 \begin_layout Standard
23902 以下の例では,
23903 \series bold
23904
23905 \backslash
23906
23907 \family sans
23908 \series default
23909 multicolsepは2
23910 \family default
23911 .5
23912 \begin_inset space \thinspace{}
23913 \end_inset
23914
23915 cmに指定されています.
23916 \end_layout
23917
23918 \begin_layout Standard
23919 \begin_inset ERT
23920 status open
23921
23922 \begin_layout Plain Layout
23923
23924
23925 \backslash
23926 setlength{
23927 \backslash
23928 multicolsep}{2.5cm}
23929 \end_layout
23930
23931 \end_inset
23932
23933
23934 \end_layout
23935
23936 \begin_layout Standard
23937 \begin_inset Flex Multiple Columns
23938 status open
23939
23940 \begin_layout Plain Layout
23941
23942 \size small
23943 All day I turned these facts over in my mind, endeavouring to hit upon some
23944  theory which could reconcile them all, and to find that line of least resistanc
23945 e which my poor friend had declared to be the starting-point of every investigat
23946 ion.
23947  I confess that I made little progress.
23948  In the evening I strolled across the Park, and found myself about six o'clock
23949  at the Oxford Street end of Park Lane.
23950  A group of loafers upon the pavements, all staring up at a particular window,
23951  directed me to the house which I had come to see.
23952  A tall, thin man with coloured glasses, whom I strongly suspected of being
23953  a plain-clothes detective, was pointing out some theory of his own, while
23954  the others crowded round to listen to what he said.
23955  I got as near him as I could, but his observations seemed to me to be absurd,
23956  so I withdrew again in some disgust.
23957  As I did so I struck against an elderly, deformed man, who had been behind
23958  me, and I knocked down several books which he was carrying.
23959 \end_layout
23960
23961 \end_inset
23962
23963
23964 \end_layout
23965
23966 \begin_layout Standard
23967 \begin_inset Note Greyedout
23968 status open
23969
23970 \begin_layout Plain Layout
23971
23972 \series bold
23973 【註】
23974 \backslash
23975
23976 \family sans
23977 \series default
23978 setlengthで指定した値は
23979 \family default
23980 ,再度変更されるまでは,以降のすべての多段組で使用されます.
23981 \end_layout
23982
23983 \end_inset
23984
23985
23986 \end_layout
23987
23988 \begin_layout Standard
23989 \begin_inset ERT
23990 status collapsed
23991
23992 \begin_layout Plain Layout
23993
23994
23995 \backslash
23996 setlength{
23997 \backslash
23998 multicolsep}{13pt}
23999 \end_layout
24000
24001 \end_inset
24002
24003
24004 \begin_inset Note Note
24005 status collapsed
24006
24007 \begin_layout Plain Layout
24008
24009 \lang english
24010 go back to the default
24011 \end_layout
24012
24013 \end_inset
24014
24015
24016 \end_layout
24017
24018 \begin_layout Standard
24019 \begin_inset Newpage newpage
24020 \end_inset
24021
24022
24023 \end_layout
24024
24025 \begin_layout Subsubsection
24026 改段
24027 \end_layout
24028
24029 \begin_layout Standard
24030 改段は,文章中の階段を行いたい位置に,\SpecialChar TeX
24031 コードで,コマンド
24032 \series bold
24033
24034 \backslash
24035
24036 \family sans
24037 \series default
24038 columnbreak{}
24039 \family default
24040 を挿入すれば,強制的に行うことができます.ただし,多くの場合,文章中に空白が挿入されることに注意してください.
24041 \begin_inset Newline newline
24042 \end_inset
24043
24044 以下が用例です.
24045 \end_layout
24046
24047 \begin_layout Standard
24048 \begin_inset Flex Multiple Columns
24049 status open
24050
24051 \begin_layout Plain Layout
24052
24053 \size small
24054 \begin_inset Quotes eld
24055 \end_inset
24056
24057 You're surprised to see me, sir,
24058 \begin_inset Quotes erd
24059 \end_inset
24060
24061  said he, in a strange, croaking voice.
24062 \end_layout
24063
24064 \begin_layout Plain Layout
24065
24066 \size small
24067 I acknowledged that I was.
24068 \end_layout
24069
24070 \begin_layout Plain Layout
24071
24072 \size small
24073 \begin_inset Quotes eld
24074 \end_inset
24075
24076 Well, I've a conscience, sir, and when I chanced to see you go into this
24077  house, as I came hobbling after you, I thought to myself, I'll just step
24078  in and see that kind gentleman, and tell him that if I was a bit gruff
24079  in my manner there was not any harm meant, and that I am much obliged to
24080  him for picking up my books.
24081 \begin_inset Quotes erd
24082 \end_inset
24083
24084
24085 \end_layout
24086
24087 \begin_layout Plain Layout
24088
24089 \size small
24090 \begin_inset Quotes eld
24091 \end_inset
24092
24093 You make too much of a trifle,
24094 \begin_inset Quotes erd
24095 \end_inset
24096
24097  said I.
24098  
24099 \begin_inset Quotes eld
24100 \end_inset
24101
24102 May I ask how you knew who I was?
24103 \begin_inset Quotes erd
24104 \end_inset
24105
24106  AFTER THIS SENTENCE THE COLUMN BREAK IS FORCED.
24107 \begin_inset ERT
24108 status collapsed
24109
24110 \begin_layout Plain Layout
24111
24112
24113 \backslash
24114 columnbreak{}
24115 \end_layout
24116
24117 \end_inset
24118
24119
24120 \end_layout
24121
24122 \begin_layout Plain Layout
24123
24124 \size small
24125 \begin_inset Quotes eld
24126 \end_inset
24127
24128 Well, sir, if it isn't too great a liberty, I am a neighbour of yours, for
24129  you'll find my little bookshop at the corner of Church Street, and very
24130  happy to see you, I am sure.
24131  Maybe you collect yourself, sir.
24132  Here's 
24133 \noun on
24134 British
24135 \begin_inset space ~
24136 \end_inset
24137
24138 Birds
24139 \noun default
24140 , and 
24141 \noun on
24142 Catullus
24143 \noun default
24144 , and 
24145 \noun on
24146 The Holy War
24147 \noun default
24148 –a bargain, every one of them.
24149  With five volumes you could just fill that gap on that second shelf.
24150  It looks untidy, does it not, sir?
24151 \begin_inset Quotes erd
24152 \end_inset
24153
24154
24155 \end_layout
24156
24157 \end_inset
24158
24159
24160 \end_layout
24161
24162 \begin_layout Subsubsection
24163 段間隔
24164 \end_layout
24165
24166 \begin_layout Standard
24167 段幅は自動的に計算されますが,段の間の余白は指定することができます.これは,長さ
24168 \series bold
24169
24170 \backslash
24171
24172 \family sans
24173 \series default
24174 columnsepを変更することで実現できます
24175 \family default
24176 .既定値は10
24177 \begin_inset space \thinspace{}
24178 \end_inset
24179
24180 ptです.以下は
24181 \series bold
24182
24183 \backslash
24184
24185 \family sans
24186 \series default
24187 columnsepを3
24188 \family default
24189
24190 \begin_inset space \thinspace{}
24191 \end_inset
24192
24193 cmに設定した例です.
24194 \end_layout
24195
24196 \begin_layout Standard
24197 \begin_inset ERT
24198 status open
24199
24200 \begin_layout Plain Layout
24201
24202
24203 \backslash
24204 setlength{
24205 \backslash
24206 columnsep}{3cm}
24207 \end_layout
24208
24209 \end_inset
24210
24211
24212 \end_layout
24213
24214 \begin_layout Standard
24215 \begin_inset Flex Multiple Columns
24216 status open
24217
24218 \begin_layout Plain Layout
24219
24220 \size small
24221 My observations of No.
24222 \begin_inset space \space{}
24223 \end_inset
24224
24225 427 Park Lane did little to clear up the problem in which I was interested.
24226  The house was separated from the street by a low wall and railing, the
24227  whole not more than five feet high.
24228  It was perfectly easy, therefore, for anyone to get into the garden, but
24229  the window was entirely inaccessible, since there was no water pipe or
24230  anything which could help the most active man to climb it.
24231  More puzzled than ever, I retraced my steps to Kensington.
24232  I had not been in my study five minutes when the maid entered to say that
24233  a person desired to see me.
24234  To my astonishment it was none other than my strange old book collector,
24235  his sharp, wizened face peering out from a frame of white hair, and his
24236  precious volumes, a dozen of them at least, wedged under his right arm.
24237 \end_layout
24238
24239 \end_inset
24240
24241
24242 \end_layout
24243
24244 \begin_layout Standard
24245 \begin_inset ERT
24246 status collapsed
24247
24248 \begin_layout Plain Layout
24249
24250
24251 \backslash
24252 setlength{
24253 \backslash
24254 columnsep}{10pt}
24255 \end_layout
24256
24257 \end_inset
24258
24259
24260 \begin_inset Note Note
24261 status collapsed
24262
24263 \begin_layout Plain Layout
24264
24265 \lang english
24266 go back to the default
24267 \end_layout
24268
24269 \end_inset
24270
24271
24272 \end_layout
24273
24274 \begin_layout Subsubsection
24275 垂直線
24276 \end_layout
24277
24278 \begin_layout Standard
24279 段間には,長さ
24280 \series bold
24281
24282 \backslash
24283
24284 \family sans
24285 \series default
24286 columnsepruleの幅を持つ罫線が描かれます
24287 \family default
24288 .罫線幅を0
24289 \begin_inset space \thinspace{}
24290 \end_inset
24291
24292 ptにすると(これが既定値です),罫線は出力されません.以下の例では,段を分かつ線は2
24293 \begin_inset space \thinspace{}
24294 \end_inset
24295
24296 pt幅に設定されています.
24297 \end_layout
24298
24299 \begin_layout Standard
24300 \begin_inset ERT
24301 status open
24302
24303 \begin_layout Plain Layout
24304
24305
24306 \backslash
24307 setlength{
24308 \backslash
24309 columnseprule}{2pt}
24310 \end_layout
24311
24312 \end_inset
24313
24314
24315 \end_layout
24316
24317 \begin_layout Standard
24318 \begin_inset Flex Multiple Columns
24319 status open
24320
24321 \begin_layout Plain Layout
24322
24323 \size small
24324 \begin_inset Quotes eld
24325 \end_inset
24326
24327 You're surprised to see me, sir,
24328 \begin_inset Quotes erd
24329 \end_inset
24330
24331  said he, in a strange, croaking voice.
24332 \end_layout
24333
24334 \begin_layout Plain Layout
24335
24336 \size small
24337 I acknowledged that I was.
24338 \end_layout
24339
24340 \begin_layout Plain Layout
24341
24342 \size small
24343 \begin_inset Quotes eld
24344 \end_inset
24345
24346 Well, I've a conscience, sir, and when I chanced to see you go into this
24347  house, as I came hobbling after you, I thought to myself, I'll just step
24348  in and see that kind gentleman, and tell him that if I was a bit gruff
24349  in my manner there was not any harm meant, and that I am much obliged to
24350  him for picking up my books.
24351 \begin_inset Quotes erd
24352 \end_inset
24353
24354
24355 \end_layout
24356
24357 \begin_layout Plain Layout
24358
24359 \size small
24360 \begin_inset Quotes eld
24361 \end_inset
24362
24363 You make too much of a trifle,
24364 \begin_inset Quotes erd
24365 \end_inset
24366
24367  said I.
24368  
24369 \begin_inset Quotes eld
24370 \end_inset
24371
24372 May I ask how you knew who I was?
24373 \begin_inset Quotes erd
24374 \end_inset
24375
24376
24377 \end_layout
24378
24379 \begin_layout Plain Layout
24380
24381 \size small
24382 \begin_inset Quotes eld
24383 \end_inset
24384
24385 Well, sir, if it isn't too great a liberty, I am a neighbour of yours, for
24386  you'll find my little bookshop at the corner of Church Street, and very
24387  happy to see you, I am sure.
24388  Maybe you collect yourself, sir.
24389  Here's 
24390 \noun on
24391 British
24392 \begin_inset space ~
24393 \end_inset
24394
24395 Birds
24396 \noun default
24397 , and 
24398 \noun on
24399 Catullus
24400 \noun default
24401 , and 
24402 \noun on
24403 The Holy War
24404 \noun default
24405 –a bargain, every one of them.
24406  With five volumes you could just fill that gap on that second shelf.
24407  It looks untidy, does it not, sir?
24408 \begin_inset Quotes erd
24409 \end_inset
24410
24411
24412 \end_layout
24413
24414 \end_inset
24415
24416
24417 \end_layout
24418
24419 \begin_layout Standard
24420 \begin_inset VSpace defskip
24421 \end_inset
24422
24423
24424 \end_layout
24425
24426 \begin_layout LyX-Code
24427 罫線は,コマンド
24428 \series bold
24429
24430 \backslash
24431
24432 \family sans
24433 \series default
24434 columnseprulecolorを再定義すれば
24435 \family default
24436 ,着色することができます.これは,多段組差込枠の前に\SpecialChar TeX
24437 コードで以下のコマンドを挿入すれば,実現できます.
24438 \begin_inset Newline newline
24439 \end_inset
24440
24441
24442 \family sans
24443
24444 \backslash
24445 renewcommand{
24446 \backslash
24447 columnseprulecolor}{
24448 \backslash
24449 color{red}}
24450 \family default
24451
24452 \begin_inset Newline newline
24453 \end_inset
24454
24455
24456 \family sans
24457 このコマンド中のredをお好みの色に変更してください
24458 \family default
24459 .既定色とユーザー定義色の全てを使用することができます.既定色とユーザー定義色についての詳細な情報は,取扱説明書『
24460 \emph on
24461 埋込オブジェクト篇
24462 \emph default
24463 』の「
24464 \emph on
24465 色付き表
24466 \emph default
24467 」の節をご覧ください.既定色に戻すには,以下のコマンドを挿入してください.
24468 \begin_inset Newline newline
24469 \end_inset
24470
24471
24472 \family sans
24473
24474 \backslash
24475 renewcommand{
24476 \backslash
24477 columnseprulecolor}{
24478 \backslash
24479 normalcolor}
24480 \family default
24481
24482 \begin_inset Newline newline
24483 \end_inset
24484
24485 以下は,シアン色の罫線と1
24486 \begin_inset space \thinspace{}
24487 \end_inset
24488
24489 cmの段間隔を持つ例です.
24490 \end_layout
24491
24492 \begin_layout Standard
24493 \begin_inset ERT
24494 status open
24495
24496 \begin_layout Plain Layout
24497
24498
24499 \backslash
24500 setlength{
24501 \backslash
24502 columnsep}{1cm}
24503 \end_layout
24504
24505 \begin_layout Plain Layout
24506
24507
24508 \backslash
24509 renewcommand{
24510 \backslash
24511 columnseprulecolor}{
24512 \backslash
24513 color{cyan}}
24514 \end_layout
24515
24516 \end_inset
24517
24518
24519 \end_layout
24520
24521 \begin_layout Standard
24522 \begin_inset Flex Multiple Columns
24523 status open
24524
24525 \begin_layout Plain Layout
24526
24527 \size small
24528 \begin_inset Quotes eld
24529 \end_inset
24530
24531 You're surprised to see me, sir,
24532 \begin_inset Quotes erd
24533 \end_inset
24534
24535  said he, in a strange, croaking voice.
24536 \end_layout
24537
24538 \begin_layout Plain Layout
24539
24540 \size small
24541 I acknowledged that I was.
24542 \end_layout
24543
24544 \begin_layout Plain Layout
24545
24546 \size small
24547 \begin_inset Quotes eld
24548 \end_inset
24549
24550 Well, I've a conscience, sir, and when I chanced to see you go into this
24551  house, as I came hobbling after you, I thought to myself, I'll just step
24552  in and see that kind gentleman, and tell him that if I was a bit gruff
24553  in my manner there was not any harm meant, and that I am much obliged to
24554  him for picking up my books.
24555 \begin_inset Quotes erd
24556 \end_inset
24557
24558
24559 \end_layout
24560
24561 \begin_layout Plain Layout
24562
24563 \size small
24564 \begin_inset Quotes eld
24565 \end_inset
24566
24567 You make too much of a trifle,
24568 \begin_inset Quotes erd
24569 \end_inset
24570
24571  said I.
24572  
24573 \begin_inset Quotes eld
24574 \end_inset
24575
24576 May I ask how you knew who I was?
24577 \begin_inset Quotes erd
24578 \end_inset
24579
24580
24581 \end_layout
24582
24583 \begin_layout Plain Layout
24584
24585 \size small
24586 \begin_inset Quotes eld
24587 \end_inset
24588
24589 Well, sir, if it isn't too great a liberty, I am a neighbour of yours, for
24590  you'll find my little bookshop at the corner of Church Street, and very
24591  happy to see you, I am sure.
24592  Maybe you collect yourself, sir.
24593  Here's 
24594 \noun on
24595 British
24596 \begin_inset space ~
24597 \end_inset
24598
24599 Birds
24600 \noun default
24601 , and 
24602 \noun on
24603 Catullus
24604 \noun default
24605 , and 
24606 \noun on
24607 The Holy War
24608 \noun default
24609 –a bargain, every one of them.
24610  With five volumes you could just fill that gap on that second shelf.
24611  It looks untidy, does it not, sir?
24612 \begin_inset Quotes erd
24613 \end_inset
24614
24615
24616 \end_layout
24617
24618 \end_inset
24619
24620
24621 \end_layout
24622
24623 \begin_layout Standard
24624 \begin_inset ERT
24625 status collapsed
24626
24627 \begin_layout Plain Layout
24628
24629
24630 \backslash
24631 setlength{
24632 \backslash
24633 columnseprule}{0pt}
24634 \end_layout
24635
24636 \begin_layout Plain Layout
24637
24638
24639 \backslash
24640 renewcommand{
24641 \backslash
24642 columnseprulecolor}{
24643 \backslash
24644 normalcolor}
24645 \end_layout
24646
24647 \end_inset
24648
24649
24650 \begin_inset Note Note
24651 status collapsed
24652
24653 \begin_layout Plain Layout
24654
24655 \lang english
24656 go back to the default
24657 \end_layout
24658
24659 \end_inset
24660
24661
24662 \end_layout
24663
24664 \begin_layout Standard
24665 \begin_inset Newpage newpage
24666 \end_inset
24667
24668
24669 \end_layout
24670
24671 \begin_layout Section
24672 標準的でない形の段落
24673 \end_layout
24674
24675 \begin_layout Standard
24676 \noindent
24677 \SpecialChar LaTeX
24678 は,他のテキストプロセッサと同様に,既定で長方形の段落を使用します.しかし,例えば,ポスターや招待状,詩などの特殊な場合には,段落の形を好きなように変えることが
24679 できます.これは,文書設定で
24680 \family sans
24681 任意設定の段落形
24682 \family default
24683 モジュールを読み込んで,\SpecialChar LaTeX
24684
24685 \family sans
24686 パッケージshapeparを使用させるようにすれば
24687 \family default
24688 ,実現できます.
24689 \end_layout
24690
24691 \begin_layout Subsection
24692 既定の形
24693 \end_layout
24694
24695 \begin_layout Standard
24696
24697 \series bold
24698 shapepar
24699 \series default
24700 は,以下の形を提供しています.
24701 \end_layout
24702
24703 \begin_layout Standard
24704 \begin_inset Tabular
24705 <lyxtabular version="3" rows="13" columns="3">
24706 <features booktabs="true" islongtable="true" longtabularalignment="center">
24707 <column alignment="center" valignment="middle" width="16col%">
24708 <column alignment="center" valignment="middle" width="40col%">
24709 <column alignment="center" valignment="middle" width="35col%">
24710 <row endhead="true">
24711 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
24712 \begin_inset Text
24713
24714 \begin_layout Plain Layout
24715 名称
24716 \end_layout
24717
24718 \end_inset
24719 </cell>
24720 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
24721 \begin_inset Text
24722
24723 \begin_layout Plain Layout
24724 説明
24725 \end_layout
24726
24727 \end_inset
24728 </cell>
24729 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
24730 \begin_inset Text
24731
24732 \begin_layout Plain Layout
24733 備考
24734 \end_layout
24735
24736 \end_inset
24737 </cell>
24738 </row>
24739 <row>
24740 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24741 \begin_inset Text
24742
24743 \begin_layout Plain Layout
24744 CDlabel
24745 \end_layout
24746
24747 \end_inset
24748 </cell>
24749 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24750 \begin_inset Text
24751
24752 \begin_layout Plain Layout
24753 丸い穴の開いたドーナツ型(CD/DVD大)
24754 \end_layout
24755
24756 \end_inset
24757 </cell>
24758 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24759 \begin_inset Text
24760
24761 \begin_layout Plain Layout
24762 伸縮不可.多くの文字を入れられないことに注意.
24763 \end_layout
24764
24765 \end_inset
24766 </cell>
24767 </row>
24768 <row>
24769 <cell alignment="center" valignment="top" topline="true" usebox="none">
24770 \begin_inset Text
24771
24772 \begin_layout Plain Layout
24773 Circle
24774 \end_layout
24775
24776 \end_inset
24777 </cell>
24778 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24779 \begin_inset Text
24780
24781 \begin_layout Plain Layout
24782
24783 \end_layout
24784
24785 \end_inset
24786 </cell>
24787 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24788 \begin_inset Text
24789
24790 \begin_layout Plain Layout
24791 脆弱.計算に失敗することも.
24792 \end_layout
24793
24794 \end_inset
24795 </cell>
24796 </row>
24797 <row>
24798 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24799 \begin_inset Text
24800
24801 \begin_layout Plain Layout
24802 Diamond
24803 \end_layout
24804
24805 \end_inset
24806 </cell>
24807 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24808 \begin_inset Text
24809
24810 \begin_layout Plain Layout
24811 菱形(シンボル的に
24812 \begin_inset Quotes eld
24813 \end_inset
24814
24815 diamond
24816 \begin_inset Quotes erd
24817 \end_inset
24818
24819 と表記)
24820 \end_layout
24821
24822 \end_inset
24823 </cell>
24824 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24825 \begin_inset Text
24826
24827 \begin_layout Plain Layout
24828 -
24829 \end_layout
24830
24831 \end_inset
24832 </cell>
24833 </row>
24834 <row>
24835 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24836 \begin_inset Text
24837
24838 \begin_layout Plain Layout
24839 Heart
24840 \end_layout
24841
24842 \end_inset
24843 </cell>
24844 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24845 \begin_inset Text
24846
24847 \begin_layout Plain Layout
24848 ハート型
24849 \end_layout
24850
24851 \end_inset
24852 </cell>
24853 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24854 \begin_inset Text
24855
24856 \begin_layout Plain Layout
24857 -
24858 \end_layout
24859
24860 \end_inset
24861 </cell>
24862 </row>
24863 <row>
24864 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24865 \begin_inset Text
24866
24867 \begin_layout Plain Layout
24868 Hexagon
24869 \end_layout
24870
24871 \end_inset
24872 </cell>
24873 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24874 \begin_inset Text
24875
24876 \begin_layout Plain Layout
24877 六角形
24878 \end_layout
24879
24880 \end_inset
24881 </cell>
24882 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24883 \begin_inset Text
24884
24885 \begin_layout Plain Layout
24886 -
24887 \end_layout
24888
24889 \end_inset
24890 </cell>
24891 </row>
24892 <row>
24893 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24894 \begin_inset Text
24895
24896 \begin_layout Plain Layout
24897 Nut
24898 \end_layout
24899
24900 \end_inset
24901 </cell>
24902 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24903 \begin_inset Text
24904
24905 \begin_layout Plain Layout
24906 ナット型(丸い穴の開いた六角形)
24907 \end_layout
24908
24909 \end_inset
24910 </cell>
24911 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24912 \begin_inset Text
24913
24914 \begin_layout Plain Layout
24915 -
24916 \end_layout
24917
24918 \end_inset
24919 </cell>
24920 </row>
24921 <row>
24922 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24923 \begin_inset Text
24924
24925 \begin_layout Plain Layout
24926 Square
24927 \end_layout
24928
24929 \end_inset
24930 </cell>
24931 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24932 \begin_inset Text
24933
24934 \begin_layout Plain Layout
24935 正方形
24936 \end_layout
24937
24938 \end_inset
24939 </cell>
24940 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24941 \begin_inset Text
24942
24943 \begin_layout Plain Layout
24944 -
24945 \end_layout
24946
24947 \end_inset
24948 </cell>
24949 </row>
24950 <row>
24951 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
24952 \begin_inset Text
24953
24954 \begin_layout Plain Layout
24955 Star
24956 \end_layout
24957
24958 \end_inset
24959 </cell>
24960 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
24961 \begin_inset Text
24962
24963 \begin_layout Plain Layout
24964 五芒星
24965 \end_layout
24966
24967 \end_inset
24968 </cell>
24969 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
24970 \begin_inset Text
24971
24972 \begin_layout Plain Layout
24973 -
24974 \end_layout
24975
24976 \end_inset
24977 </cell>
24978 </row>
24979 <row>
24980 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24981 \begin_inset Text
24982
24983 \begin_layout Plain Layout
24984 Candle
24985 \end_layout
24986
24987 \end_inset
24988 </cell>
24989 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24990 \begin_inset Text
24991
24992 \begin_layout Plain Layout
24993 燃えるろうそく
24994 \end_layout
24995
24996 \end_inset
24997 </cell>
24998 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24999 \begin_inset Text
25000
25001 \begin_layout Plain Layout
25002 -
25003 \end_layout
25004
25005 \end_inset
25006 </cell>
25007 </row>
25008 <row>
25009 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25010 \begin_inset Text
25011
25012 \begin_layout Plain Layout
25013 Drop down/up
25014 \end_layout
25015
25016 \end_inset
25017 </cell>
25018 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25019 \begin_inset Text
25020
25021 \begin_layout Plain Layout
25022 雫型/逆雫型
25023 \end_layout
25024
25025 \end_inset
25026 </cell>
25027 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25028 \begin_inset Text
25029
25030 \begin_layout Plain Layout
25031 脆弱.計算に失敗することも.
25032 \end_layout
25033
25034 \end_inset
25035 </cell>
25036 </row>
25037 <row>
25038 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25039 \begin_inset Text
25040
25041 \begin_layout Plain Layout
25042 \SpecialChar TeX
25043
25044 \end_layout
25045
25046 \end_inset
25047 </cell>
25048 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25049 \begin_inset Text
25050
25051 \begin_layout Plain Layout
25052 \SpecialChar TeX
25053 ロゴ
25054 \end_layout
25055
25056 \end_inset
25057 </cell>
25058 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25059 \begin_inset Text
25060
25061 \begin_layout Plain Layout
25062 -
25063 \end_layout
25064
25065 \end_inset
25066 </cell>
25067 </row>
25068 <row>
25069 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
25070 \begin_inset Text
25071
25072 \begin_layout Plain Layout
25073 Triangle up/down/
25074 \begin_inset Newline newline
25075 \end_inset
25076
25077 left/right
25078 \end_layout
25079
25080 \end_inset
25081 </cell>
25082 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
25083 \begin_inset Text
25084
25085 \begin_layout Plain Layout
25086 各方向の三角形
25087 \end_layout
25088
25089 \end_inset
25090 </cell>
25091 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
25092 \begin_inset Text
25093
25094 \begin_layout Plain Layout
25095 -
25096 \end_layout
25097
25098 \end_inset
25099 </cell>
25100 </row>
25101 </lyxtabular>
25102
25103 \end_inset
25104
25105
25106 \end_layout
25107
25108 \begin_layout Standard
25109 段落に形を適用するには,\SpecialChar LyX
25110 ツールバー中の環境プルダウンボックスから形を選んでください.
25111 \end_layout
25112
25113 \begin_layout Standard
25114 \begin_inset Newpage newpage
25115 \end_inset
25116
25117
25118 \end_layout
25119
25120 \begin_layout Standard
25121 以下は,ナット型の段落の例です.
25122 \end_layout
25123
25124 \begin_layout Standard
25125 \begin_inset VSpace bigskip
25126 \end_inset
25127
25128
25129 \end_layout
25130
25131 \begin_layout Nut
25132
25133 \lang latin
25134 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
25135  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
25136  voluptua.
25137  At vero eos et accusam et justo duo dolores et ea rebum.
25138  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
25139  sit amet.
25140  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
25141  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
25142  voluptua.
25143 \end_layout
25144
25145 \begin_layout Standard
25146 \begin_inset VSpace bigskip
25147 \end_inset
25148
25149
25150 \end_layout
25151
25152 \begin_layout Standard
25153 \begin_inset Note Greyedout
25154 status open
25155
25156 \begin_layout Plain Layout
25157
25158 \series bold
25159 【註】
25160 \family sans
25161 \series default
25162 shapepar段落は改頁にまたがることはできません
25163 \family default
25164
25165 \end_layout
25166
25167 \end_inset
25168
25169
25170 \end_layout
25171
25172 \begin_layout Standard
25173 \begin_inset VSpace bigskip
25174 \end_inset
25175
25176
25177 \end_layout
25178
25179 \begin_layout Standard
25180
25181 \family sans
25182 shapeparは
25183 \family default
25184 ,段落中にどれだけ文章が含まれようとも,常に形を維持しようとします.したがって,段落の大きさは,含まれている文章量によって変化しますので,段落の大きさがページ余
25185 白にはみ出してしまうことがあります.寸法が伸縮することを示すために,文章量を二倍にした例を見てみましょう.
25186 \end_layout
25187
25188 \begin_layout Standard
25189 \begin_inset Newpage newpage
25190 \end_inset
25191
25192
25193 \end_layout
25194
25195 \begin_layout Nut
25196
25197 \lang latin
25198 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
25199  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
25200  voluptua.
25201  At vero eos et accusam et justo duo dolores et ea rebum.
25202  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
25203  sit amet.
25204  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
25205  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
25206  voluptua.
25207  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
25208  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
25209  voluptua.
25210  At vero eos et accusam et justo duo dolores et ea rebum.
25211  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
25212  sit amet.
25213  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
25214  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
25215  voluptua.
25216 \end_layout
25217
25218 \begin_layout Standard
25219 \begin_inset VSpace bigskip
25220 \end_inset
25221
25222
25223 \end_layout
25224
25225 \begin_layout Standard
25226 ただし,
25227 \family sans
25228 CDlabel
25229 \family default
25230 形は例外です.これは,CD/DVDの寸法に収まらなくてはならないので,伸縮しません.したがって,形に収まる文章量は限られています.
25231 \begin_inset Newline newline
25232 \end_inset
25233
25234
25235 \family sans
25236 drop
25237 \family default
25238 形と
25239 \family sans
25240 circle
25241 \family default
25242 形は脆弱で,文章量によっては寸法計算が失敗する可能性があります.この場合,
25243 \begin_inset Quotes eld
25244 \end_inset
25245
25246 Arithmetic overflow
25247 \begin_inset Quotes erd
25248 \end_inset
25249
25250 という\SpecialChar LaTeX
25251 エラーが発生します.この時は,文章の一部を追加したり削除したりするか,どれもうまくいかなければ別の形を使用してください.
25252 \end_layout
25253
25254 \begin_layout Standard
25255 \begin_inset VSpace bigskip
25256 \end_inset
25257
25258
25259 \end_layout
25260
25261 \begin_layout Standard
25262 先端のある形では,先端部の文字列で,\SpecialChar LaTeX
25263 のハイフネーションルーチンが失敗することがあります.したがって,この部分の文章には,ハイフネーション位置
25264 \family sans
25265 (
25266 \begin_inset Info
25267 type  "shortcut"
25268 arg   "specialchar-insert hyphenation"
25269 \end_inset
25270
25271
25272 \family default
25273 )を指定することが往々にして必要になります.
25274 \end_layout
25275
25276 \begin_layout Standard
25277 \begin_inset VSpace bigskip
25278 \end_inset
25279
25280
25281 \end_layout
25282
25283 \begin_layout Standard
25284 Shapepar段落は,常に中央揃えか,左の縁が左ページ余白に接するように配置されます.したがって,これらの段落を揃えるのに段落ダイアログを使用することはできま
25285 せん.解決方法としては,段落をミニページかparboxの中において,このボックスを揃えることです.ここでの問題は,ボックスの正しい幅を見出すことです.もしボック
25286 スの幅が広すぎれば,ボックスを中央揃えにしたとしても,ボックスの左側が付いてしまうので中央揃えになりません.そこで,正しい幅を見出すまでは,若干試行錯誤しなくて
25287 はならないかもしれません.以下は,二つのハート形の段落です.一つ目は揃え指定がなく,二つ目は右揃えにしてあります.
25288 \end_layout
25289
25290 \begin_layout Standard
25291 \begin_inset Newpage newpage
25292 \end_inset
25293
25294
25295 \end_layout
25296
25297 \begin_layout Heart
25298 \noindent
25299
25300 \lang latin
25301 Lo\SpecialChar softhyphen
25302 rem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
25303  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
25304  voluptua.
25305  At vero eos et accusam et justo duo dolores et ea rebum.
25306  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
25307  sit amet.
25308 \end_layout
25309
25310 \begin_layout Standard
25311 \begin_inset VSpace bigskip
25312 \end_inset
25313
25314
25315 \end_layout
25316
25317 \begin_layout Standard
25318 \noindent
25319 \align right
25320 \begin_inset Box Frameless
25321 position "t"
25322 hor_pos "c"
25323 has_inner_box 1
25324 inner_pos "t"
25325 use_parbox 1
25326 use_makebox 0
25327 width "42col%"
25328 special "none"
25329 height "1in"
25330 height_special "totalheight"
25331 thickness "0.4pt"
25332 separation "3pt"
25333 shadowsize "4pt"
25334 framecolor "black"
25335 backgroundcolor "none"
25336 status open
25337
25338 \begin_layout Heart
25339 \noindent
25340
25341 \lang latin
25342 Lo\SpecialChar softhyphen
25343 rem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
25344  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
25345  voluptua.
25346  At vero eos et accusam et justo duo dolores et ea rebum.
25347  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
25348  sit amet.
25349 \end_layout
25350
25351 \end_inset
25352
25353
25354 \end_layout
25355
25356 \begin_layout Subsection
25357 任意の形
25358 \end_layout
25359
25360 \begin_layout Standard
25361 ユーザーは,どのような形であれ,定義することができます.これを手動で行うのは,全ての座標を指定しなくてはならないので,かなりの労力を必要とします.しかし,以下の
25362 ように,コンピューターに座標を計算させる方法もあります.
25363 \end_layout
25364
25365 \begin_layout Enumerate
25366 プログラム
25367 \begin_inset CommandInset href
25368 LatexCommand href
25369 name "Jpgfdraw"
25370 target "http://www.ctan.org/tex-archive/graphics/jpgfdraw"
25371 literal "false"
25372
25373 \end_inset
25374
25375 を導入します.
25376 \end_layout
25377
25378 \begin_layout Enumerate
25379
25380 \family sans
25381 Jpgfdraw
25382 \family default
25383 内で,メニュー
25384 \family sans
25385 TeX/LaTeX\SpecialChar menuseparator
25386 Settings\SpecialChar menuseparator
25387 Set Normal Size
25388 \family default
25389 で文書中で使用しているフォント寸を選択します.例えば,この文書は12
25390 \begin_inset space \thinspace{}
25391 \end_inset
25392
25393 pt寸を使用しています.
25394 \end_layout
25395
25396 \begin_layout Enumerate
25397 形を描きます.
25398 \end_layout
25399
25400 \begin_layout Enumerate
25401 メニュー
25402 \family sans
25403 TeX/LaTeX\SpecialChar menuseparator
25404 Shapepar
25405 \family default
25406 を使用して,形の座標をエクスポートします.現れるダイアログで,形の外枠を座標に使うか,パス自体を使うかを指定します.
25407 \begin_inset Foot
25408 status collapsed
25409
25410 \begin_layout Plain Layout
25411 詳細については,
25412 \begin_inset CommandInset href
25413 LatexCommand href
25414 target "http://www.dickimaw-books.com/apps/jpgfdraw/manual/shapepar.html"
25415 literal "false"
25416
25417 \end_inset
25418
25419 を参照してください.
25420 \end_layout
25421
25422 \end_inset
25423
25424
25425 \end_layout
25426
25427 \begin_layout Standard
25428 座標は\SpecialChar TeX
25429 ファイルに書き込まれます.これを\SpecialChar LyX
25430 文書で使用するには,
25431 \end_layout
25432
25433 \begin_layout Enumerate
25434 段落の最初の文字の前(もしくは空の段落内)にカーソルを置きます.
25435 \end_layout
25436
25437 \begin_layout Enumerate
25438 \SpecialChar LyX
25439
25440 \family sans
25441 挿入\SpecialChar menuseparator
25442 ファイル\SpecialChar menuseparator
25443 子文書
25444 \family default
25445 メニューでファイルを選択し,
25446 \family sans
25447 取り込みの型
25448 \family default
25449 として
25450 \family sans
25451 Input
25452 \family default
25453 を選択してください.
25454 \end_layout
25455
25456 \begin_layout Standard
25457 \begin_inset VSpace defskip
25458 \end_inset
25459
25460
25461 \end_layout
25462
25463 \begin_layout Standard
25464 \begin_inset Note Greyedout
25465 status open
25466
25467 \begin_layout Plain Layout
25468
25469 \series bold
25470 【註】
25471 \series default
25472 変更した形は,現在の段落にのみ適用されます.次の段落では全て通常に戻ります.したがって,段落定義ファイルは,形を変えたい段落全てで読み込まれなくてはなりません.
25473 \end_layout
25474
25475 \end_inset
25476
25477
25478 \end_layout
25479
25480 \begin_layout Standard
25481 \begin_inset VSpace bigskip
25482 \end_inset
25483
25484
25485 \end_layout
25486
25487 \begin_layout Standard
25488 以下の用例をご覧ください.
25489 \end_layout
25490
25491 \begin_layout Standard
25492 \begin_inset VSpace bigskip
25493 \end_inset
25494
25495
25496 \end_layout
25497
25498 \begin_layout Standard
25499 \begin_inset CommandInset include
25500 LatexCommand input
25501 filename "../SpecialParagraphShape.tex"
25502
25503 \end_inset
25504
25505
25506 \lang latin
25507 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
25508  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
25509  voluptua.
25510  At vero eos et accusam et justo duo dolores et ea rebum.
25511  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
25512  sit amet.
25513  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
25514  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
25515  voluptua.
25516 \end_layout
25517
25518 \begin_layout Standard
25519 \begin_inset VSpace bigskip
25520 \end_inset
25521
25522
25523 \end_layout
25524
25525 \begin_layout Standard
25526
25527 \series bold
25528 【ヒント】
25529 \family sans
25530 \series default
25531 Jpgfdraw
25532 \family default
25533 で複雑な形を描く場合,まず形を好きなプログラムで描き,出来上がった画像を
25534 \family sans
25535 Jpgfdraw
25536 \family default
25537 に読み込む方法があります.この場合,画像の外枠に沿って,直線またはスプラインを描くだけですみます.
25538 \end_layout
25539
25540 \begin_layout Standard
25541 \begin_inset VSpace bigskip
25542 \end_inset
25543
25544
25545 \end_layout
25546
25547 \begin_layout Standard
25548
25549 \family sans
25550 任意の段落形
25551 \family default
25552 モジュールは,
25553 \family sans
25554 shapepar
25555 \family default
25556
25557 \family sans
25558 Shapepar
25559 \family default
25560 の二つのコマンドも提供していて,任意の形を座標毎に定義するのに使用することができます.
25561 \begin_inset Foot
25562 status collapsed
25563
25564 \begin_layout Plain Layout
25565 これらのコマンドは,上述の全ての形で内部的に使用されています.
25566 \end_layout
25567
25568 \end_inset
25569
25570 これらのスタイルがどのように使われていて,どのような設定ができるのかについての詳しい情報は,
25571 \family sans
25572 shapeparパッケージの取扱説明書
25573 \family default
25574 \lang english
25575  
25576 \lang ngerman
25577
25578 \begin_inset CommandInset href
25579 LatexCommand href
25580 name "documentation"
25581 target "http://mirrors.ctan.org/macros/latex/contrib/shapepar/shapepar.pdf"
25582 literal "false"
25583
25584 \end_inset
25585
25586
25587 \lang japanese
25588 をご覧ください.
25589 \end_layout
25590
25591 \end_body
25592 \end_document