]> git.lyx.org Git - lyx.git/blob - lib/doc/ja/Additional.lyx
Reset default output format to default for Japanese docs.
[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 false
6 \origin unavailable
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 % the pages of the TOC are numbered roman
19 % and a PDF-bookmark for the TOC is added
20 \pagenumbering{roman}
21 \let\myTOC\tableofcontents
22 \renewcommand{\tableofcontents}{%
23  \pdfbookmark[1]{\contentsname}{}
24  \myTOC
25  \cleardoublepage
26  \pagenumbering{arabic}}
27
28 % extra space for tables
29 \newcommand{\extratablespace}[1]{\noalign{\vskip#1}}
30
31 % Improve line breaking
32 \tolerance 1414
33 \hbadness 1414
34 \emergencystretch 1.5em
35 \hfuzz 0.3pt
36
37 % additional setting for Japanese manual
38 \IfFileExists{pxjahyper.sty}
39 {\usepackage{pxjahyper}}
40
41 \usepackage{t1enc}
42 \end_preamble
43 \options bibliography=totoc,index=totoc,BCOR7.5mm,titlepage,captions=tableheading
44 \use_default_options false
45 \begin_modules
46 logicalmkup
47 theorems-ams
48 theorems-ams-extended
49 multicol
50 shapepar
51 \end_modules
52 \maintain_unincluded_children false
53 \begin_local_layout
54 Format 35
55 InsetLayout             Flex:MenuItem
56 LyxType         charstyle
57 LabelString           menu
58 LatexType             command
59 LatexName             menuitem
60 Font
61 Family              Sans
62 EndFont
63 Preamble
64 \newcommand*{\menuitem}[1]{{\sffamily #1}}
65 EndPreamble
66 End
67 InsetLayout             Flex:Ruby
68 LyxType         charstyle
69 LatexType               command
70 LatexName               ruby
71 BgColor         none
72 LabelString             "ルビ"
73 Decoration              Conglomerate
74 Argument post:1
75 LabelString     "ルビ文"
76 MenuString      "ルビ文(S)|S"
77 Decoration      Conglomerate
78 Font
79 Size            tiny
80 EndFont
81 LabelFont
82 Size            tiny
83 EndFont
84 Mandatory       1
85 EndArgument
86 Preamble
87 \IfFileExists{okumacro.sty}
88 {\usepackage{okumacro}}
89 {\newcommand{\ruby}[2]{#2}}
90 EndPreamble
91 End
92 \end_local_layout
93 \language japanese
94 \language_package default
95 \inputencoding auto
96 \fontencoding global
97 \font_roman "default" "default"
98 \font_sans "default" "default"
99 \font_typewriter "default" "default"
100 \font_math "auto" "auto"
101 \font_default_family default
102 \use_non_tex_fonts false
103 \font_sc false
104 \font_osf false
105 \font_sf_scale 100 100
106 \font_tt_scale 100 100
107 \use_microtype false
108 \use_dash_ligatures false
109 \graphics default
110 \default_output_format default
111 \output_sync 0
112 \bibtex_command default
113 \index_command default
114 \paperfontsize 12
115 \spacing single
116 \use_hyperref true
117 \pdf_title "LyX's Additional Features manual"
118 \pdf_author "LyX Team"
119 \pdf_subject "LyX's additional features documentation"
120 \pdf_keywords "LyX, Documentation, Additional"
121 \pdf_bookmarks false
122 \pdf_bookmarksnumbered true
123 \pdf_bookmarksopen false
124 \pdf_bookmarksopenlevel 1
125 \pdf_breaklinks false
126 \pdf_pdfborder false
127 \pdf_colorlinks true
128 \pdf_backref false
129 \pdf_pdfusetitle false
130 \pdf_quoted_options "pdfencoding=pdfdoc, linkcolor=black, citecolor=black, urlcolor=blue, filecolor=blue, pdfpagelayout=OneColumn, pdfnewwindow=true, pdfstartview=XYZ, plainpages=false"
131 \papersize default
132 \use_geometry false
133 \use_package amsmath 1
134 \use_package amssymb 1
135 \use_package cancel 0
136 \use_package esint 0
137 \use_package mathdots 1
138 \use_package mathtools 0
139 \use_package mhchem 1
140 \use_package stackrel 0
141 \use_package stmaryrd 0
142 \use_package undertilde 0
143 \cite_engine basic
144 \cite_engine_type default
145 \biblio_style plain
146 \use_bibtopic false
147 \use_indices false
148 \paperorientation portrait
149 \suppress_date false
150 \justification true
151 \use_refstyle 0
152 \use_minted 0
153 \notefontcolor #0000ff
154 \index 索引
155 \shortcut idx
156 \color #008000
157 \end_index
158 \secnumdepth 3
159 \tocdepth 3
160 \paragraph_separation indent
161 \paragraph_indentation default
162 \is_math_indent 1
163 \math_indentation default
164 \math_numbering_side default
165 \quotes_style english
166 \dynamic_quotes 0
167 \papercolumns 1
168 \papersides 2
169 \paperpagestyle headings
170 \tracking_changes false
171 \output_changes false
172 \html_math_output 0
173 \html_css_as_file 0
174 \html_be_strict true
175 \author -1196488707 "横田 宏治"
176 \end_header
177
178 \begin_body
179
180 \begin_layout Title
181 \SpecialChar LyX
182 の高度な機能
183 \begin_inset Newline newline
184 \end_inset
185
186
187 \size large
188 第2.3.x版
189 \end_layout
190
191 \begin_layout Author
192 \SpecialChar LyX
193 プロジェクトチーム
194 \begin_inset Foot
195 status collapsed
196
197 \begin_layout Plain Layout
198 このファイルは主にRichard Heckによって管理されています.コメントをされたい場合や誤りを発見された場合には,\SpecialChar LyX
199 文書化メーリングリスト
200 \begin_inset Flex Code
201 status open
202
203 \begin_layout Plain Layout
204 \noindent
205
206 \family typewriter
207 <lyx-docs@lists.lyx.org>
208 \end_layout
209
210 \end_inset
211
212 に英文にてお知らせ下さい.この文書の翻訳は,当初人見光太郎氏が行った貢献に基づいています.
213 \end_layout
214
215 \end_inset
216
217  
218 \end_layout
219
220 \begin_layout Standard
221 \begin_inset CommandInset toc
222 LatexCommand tableofcontents
223
224 \end_inset
225
226
227 \end_layout
228
229 \begin_layout Chapter
230 はじめに
231 \end_layout
232
233 \begin_layout Standard
234 いまお読みの取扱説明書『
235 \emph on
236 \SpecialChar LyX
237 拡張機能篇
238 \emph default
239 』は,基本的には『
240 \emph on
241 ユーザーの手引き
242 \emph default
243 』の第二部です.これらの文書を別部とした理由は,単純に『
244 \emph on
245 ユーザーの手引き
246 \emph default
247 』がすでに大部となっていることと,『
248 \emph on
249 ユーザーの手引き
250 \emph default
251 』が,ほとんどの文書を作成する上で必要な基本機能をすべて説明してしまっているためです.一方で,\SpecialChar LyX
252 プロジェクトチームは,\SpecialChar LyX
253 を各設定ファイルと外部パッケージによって拡張
254 可能な状態にしておくことを長期的な目標にしています.つまり,ある\SpecialChar LaTeX
255 パッケージをサポートしたい場合に,\SpecialChar LyX
256 自身に変更を加えることなく,当該パッケージ用のレイアウトファイ
257 ル(ないしモジュール)を作成すればいいようにしているのです.すでにこのような形で,いくつもの新機能がユーザーによって追加されています.この取扱説明書は,そのよう
258 な形での貢献を文書化する冊子として位置付けられています.
259 \end_layout
260
261 \begin_layout Standard
262 この取扱説明書では,ファックスのサポート・バージョン管理・SGMLサポートのような,正しく機能するためには追加的なソフトウェアを必要とする特殊機能についても説明
263 しています.さらに,\SpecialChar LaTeX
264 の強力な機能を直接使って文書を美しく仕上げるための,\SpecialChar LaTeX
265 ツールやテクニックを述べた章も収録しています.つきつめれば,\SpecialChar LyX
266 とはあくまでWYSIWYMた
267 ることを企図しているため,\SpecialChar LaTeX
268 の全機能の一部へのインタフェースは用意するものの,すべてを用意することはないでしょう.
269 \end_layout
270
271 \begin_layout Standard
272 もし,まだ『
273 \emph on
274 はじめの一歩
275 \emph default
276 』をお読みでなかったら,この取扱説明書から読みはじめるのは誤りです.『
277 \emph on
278 はじめの一歩
279 \emph default
280 』には,全取扱説明書に共通の表記法と書式が説明されていますので,まずそれからお読みください.さらに,この取扱説明書を読もうとする前に,『
281 \emph on
282 ユーザーの手引き
283 \emph default
284 』をよくお読みになって,\SpecialChar LyX
285 の全基本機能を習得してください.
286 \end_layout
287
288 \begin_layout Standard
289 この取扱説明書の取り上げられている話題は,\SpecialChar LyX
290 が\SpecialChar LaTeX
291 にどう関わっているかに強く関係していますので,まず次章では,\SpecialChar LyX
292 の内部動作がどうなっているか,LyXに希望する\SpecialChar LaTeX
293 コードを正
294 確に生成させるにはどうしたらいいかを収録しています.本章は,あきらかに熟練\SpecialChar LyX
295 ユーザー向けの章となっています.
296 \end_layout
297
298 \begin_layout Chapter
299 \SpecialChar LyX
300 と\SpecialChar LaTeX
301
302 \end_layout
303
304 \begin_layout Section
305 \SpecialChar LyX
306 は\SpecialChar LaTeX
307 をどう使っているか
308 \end_layout
309
310 \begin_layout Standard
311 本章
312 \family roman
313 \series medium
314 \shape up
315 \size normal
316 \emph off
317 \bar no
318 \noun off
319 \color none
320 は,\SpecialChar TeX
321 熟練者と\SpecialChar LaTeX
322 に興味のある方向けの章です.ここでは,\SpecialChar LyX
323 と\SpecialChar LaTeX
324 が,印刷可能な出力を生成するのに,どのように協働しているのかを説明します.全取扱説明書中で本章だけは,\SpecialChar LaTeX
325 のこと
326 を多少なりともご存知であることを前提とします.
327 \end_layout
328
329 \begin_layout Standard
330
331 \family roman
332 \series medium
333 \shape up
334 \size normal
335 \emph off
336 \bar no
337 \noun off
338 \color none
339 かつて\SpecialChar LyX
340 は,「\SpecialChar LaTeX
341
342 \family default
343 \series default
344 \shape default
345 \size default
346 \emph default
347 \bar default
348 \noun default
349 \color inherit
350 WYSIWYM
351 \family roman
352 \series medium
353 \shape up
354 \size normal
355 \emph off
356 \bar no
357 \noun off
358 \color none
359 なフロントエンド」と呼ばれていましたが,いまではこれは正しくありません.\SpecialChar LaTeX
360 のフロントエンドは,いくつも出回っています
361 \begin_inset Foot
362 status collapsed
363
364 \begin_layout Plain Layout
365
366 \family roman
367 \series medium
368 \shape up
369 \size normal
370 \emph off
371 \bar no
372 \noun off
373 \color none
374 有名なものとしては,Linux上の\SpecialChar TeX
375 makerとkile,OSX上の\SpecialChar TeX
376 shopなどがあります.もちろんviとemacsの\SpecialChar LaTeX
377 モードも含まれます.
378 \end_layout
379
380 \end_inset
381
382 .これらは,基本的に\SpecialChar LaTeX
383 を走らせる機能を有し,編集中のファイルのエラーを表示する機能を持ったテキストエディタです.\SpecialChar LyX
384 も,エディタであり,\SpecialChar LaTeX
385 を走らせる機能を有し,ファイル
386 中のエラーを指摘しますが,それ以上にもっともっと多くのことをしてくれます.
387 \family default
388 \series default
389 \shape default
390 \size default
391 \emph default
392 \bar default
393 \noun default
394 \color inherit
395 ひとつには,
396 \family roman
397 \series medium
398 \shape up
399 \size normal
400 \emph off
401 \bar no
402 \noun off
403 \color none
404 \SpecialChar LyX
405 を効果的に使うのに,\SpecialChar LaTeX
406 の知識が必要とされないことが挙げられます.また\SpecialChar LyX
407 は,それ自身,いくつかの拡張を\SpecialChar LaTeX
408 に加えています.時間のあるときにでも,いちど以下の手順を試してみ
409 てください.まず
410 \family sans
411 \series default
412 \shape default
413 \size default
414 \emph default
415 \bar default
416 \noun default
417 \color inherit
418
419 \begin_inset Flex MenuItem
420 status collapsed
421
422 \begin_layout Plain Layout
423
424 \family sans
425 ファイル
426 \end_layout
427
428 \end_inset
429
430
431 \family roman
432 \series medium
433 \shape up
434 \size normal
435 \emph off
436 \bar no
437 \noun off
438 \color none
439 メニューから
440 \family sans
441 \series default
442 \shape default
443 \size default
444 \emph default
445 \bar default
446 \noun default
447 \color inherit
448
449 \begin_inset Flex MenuItem
450 status collapsed
451
452 \begin_layout Plain Layout
453
454 \family sans
455 エクスポート\SpecialChar menuseparator
456 LaTeX
457 \end_layout
458
459 \end_inset
460
461
462 \family roman
463 \series medium
464 \shape up
465 \size normal
466 \emph off
467 \bar no
468 \noun off
469 \color none
470 (あるいは
471 \family sans
472 \series default
473 \shape default
474 \size default
475 \emph default
476 \bar default
477 \noun default
478 \color inherit
479
480 \begin_inset Flex MenuItem
481 status collapsed
482
483 \begin_layout Plain Layout
484
485 \family sans
486 表示\SpecialChar menuseparator
487 ソースを閲覧
488 \end_layout
489
490 \end_inset
491
492
493 \family roman
494 \series medium
495 \shape up
496 \size normal
497 \emph off
498 \bar no
499 \noun off
500 \color none
501 )を選択し,そこから出力される
502 \begin_inset Flex Code
503 status collapsed
504
505 \begin_layout Plain Layout
506
507 \family typewriter
508 .tex
509 \end_layout
510
511 \end_inset
512
513 ファイルのプリアンブルをご覧ください.\SpecialChar LyX
514 によって特別に定義された新しいマクロが複数定義されていることに気づかれるはずです
515 \family default
516 \series default
517 \shape default
518 \size default
519 \emph default
520 \bar default
521 \noun default
522 \color inherit
523 .これらのマクロは,文書中で使用する機能に応じて,自動的に定義されます.
524 \end_layout
525
526 \begin_layout Standard
527
528 \family roman
529 \series medium
530 \shape up
531 \size normal
532 \emph off
533 \bar no
534 \noun off
535 \color none
536 自動的に\SpecialChar LaTeX
537 を実行するコマンドが,以下のようにいくつかあります.
538 \end_layout
539
540 \begin_layout Itemize
541 \begin_inset Flex MenuItem
542 status collapsed
543
544 \begin_layout Plain Layout
545 表示\SpecialChar menuseparator
546 書式
547 \end_layout
548
549 \end_inset
550
551
552 \end_layout
553
554 \begin_layout Itemize
555
556 \family sans
557 \begin_inset Flex MenuItem
558 status collapsed
559
560 \begin_layout Plain Layout
561
562 \bar no
563 表示\SpecialChar menuseparator
564 更新\SpecialChar menuseparator
565
566 \bar default
567 書式
568 \end_layout
569
570 \end_inset
571
572
573 \end_layout
574
575 \begin_layout Standard
576
577 \family roman
578 \series medium
579 \shape up
580 \size normal
581 \emph off
582 \bar no
583 \noun off
584 \color none
585 これらは,最後に\SpecialChar LaTeX
586 を実行してからファイルに変更が加えられた場合のみ,\SpecialChar LaTeX
587 を実行します.
588 \end_layout
589
590 \begin_layout Standard
591
592 \family roman
593 \series medium
594 \shape up
595 \size normal
596 \emph off
597 \bar no
598 \noun off
599 \color none
600 \SpecialChar LyX
601 が編集中のファイルを\SpecialChar LaTeX
602 にかけるとき,\SpecialChar LyX
603 は以下の段階をふみます.
604 \end_layout
605
606 \begin_layout Enumerate
607
608 \family roman
609 \series medium
610 \shape up
611 \size normal
612 \emph off
613 \bar no
614 \noun off
615 \color none
616 文書を\SpecialChar LaTeX
617 に変換し,ファイルの拡張子を
618 \begin_inset Flex Code
619 status collapsed
620
621 \begin_layout Plain Layout
622
623 \family roman
624 \series medium
625 \shape up
626 \size normal
627 \emph off
628 \bar no
629 \noun off
630 \color none
631 .lyx
632 \end_layout
633
634 \end_inset
635
636 から
637 \begin_inset Flex Code
638 status collapsed
639
640 \begin_layout Plain Layout
641
642 \family roman
643 \series medium
644 \shape up
645 \size normal
646 \emph off
647 \bar no
648 \noun off
649 \color none
650 .tex
651 \end_layout
652
653 \end_inset
654
655 に変えて保存.
656 \end_layout
657
658 \begin_layout Enumerate
659
660 \family roman
661 \series medium
662 \shape up
663 \size normal
664 \emph off
665 \bar no
666 \noun off
667 \color none
668 この
669 \begin_inset Flex Code
670 status collapsed
671
672 \begin_layout Plain Layout
673
674 \family roman
675 \series medium
676 \shape up
677 \size normal
678 \emph off
679 \bar no
680 \noun off
681 \color none
682 .tex
683 \end_layout
684
685 \end_inset
686
687 ファイルに対して(必要に応じて複数回)\SpecialChar LaTeX
688 を実行し,\SpecialChar LaTeX
689 ファイルをコンパイルするのに必要な他のコマンド(
690 \begin_inset Flex Code
691 status collapsed
692
693 \begin_layout Plain Layout
694
695 \family roman
696 \series medium
697 \shape up
698 \size normal
699 \emph off
700 \bar no
701 \noun off
702 \color none
703 bibtex
704 \end_layout
705
706 \end_inset
707
708
709 \begin_inset Flex Code
710 status collapsed
711
712 \begin_layout Plain Layout
713
714 \family roman
715 \series medium
716 \shape up
717 \size normal
718 \emph off
719 \bar no
720 \noun off
721 \color none
722 makeindex
723 \end_layout
724
725 \end_inset
726
727 など)を実行..
728 \end_layout
729
730 \begin_layout Enumerate
731
732 \family roman
733 \series medium
734 \shape up
735 \size normal
736 \emph off
737 \bar no
738 \noun off
739 \color none
740 もしエラーがあれば,エラーログを表示.
741 \end_layout
742
743 \begin_layout Standard
744
745 \family roman
746 \series medium
747 \shape up
748 \size normal
749 \emph off
750 \bar no
751 \noun off
752 \color none
753 \SpecialChar LaTeX
754
755 \family sans
756 \series default
757 \shape default
758 \size default
759 \emph default
760 \bar default
761 \noun default
762 \color inherit
763
764 \begin_inset Flex MenuItem
765 status collapsed
766
767 \begin_layout Plain Layout
768
769 \family sans
770 表示\SpecialChar menuseparator
771 DVI
772 \end_layout
773
774 \end_inset
775
776
777 \family roman
778 \series medium
779 \shape up
780 \size normal
781 \emph off
782 \bar no
783 \noun off
784 \color none
785 を使用して実行した場合には,\SpecialChar LyX
786 はこの後,DVIビューアを実行してDVIファイルを表示します.
787 \begin_inset Flex MenuItem
788 status collapsed
789
790 \begin_layout Plain Layout
791
792 \family roman
793 \series medium
794 \shape up
795 \size normal
796 \emph off
797 \bar no
798 \noun off
799 \color none
800 表示\SpecialChar menuseparator
801 PostScript
802 \end_layout
803
804 \end_inset
805
806 を使用した場合には,\SpecialChar LyX
807 はさらに以下の段階をふみます.
808 \end_layout
809
810 \begin_layout Itemize
811
812 \family roman
813 \series medium
814 \shape up
815 \size normal
816 \emph off
817 \bar no
818 \noun off
819 \color none
820 \begin_inset Flex Code
821 status collapsed
822
823 \begin_layout Plain Layout
824
825 \family typewriter
826 dvips
827 \end_layout
828
829 \end_inset
830
831 を実行して,
832 \family default
833 \series default
834 \shape default
835 \size default
836 \emph default
837 \bar default
838 \noun default
839 \color inherit
840 DVI
841 \family roman
842 \series medium
843 \shape up
844 \size normal
845 \emph off
846 \bar no
847 \noun off
848 \color none
849 ファイルをPostScript
850 \family default
851 \series default
852 \shape default
853 \size default
854 \emph default
855 \bar default
856 \noun default
857 \color inherit
858 に変換.
859 \end_layout
860
861 \begin_layout Itemize
862
863 \family roman
864 \series medium
865 \shape up
866 \size normal
867 \emph off
868 \bar no
869 \noun off
870 \color none
871 \begin_inset Flex Code
872 status collapsed
873
874 \begin_layout Plain Layout
875
876 \family typewriter
877 ghostview
878 \end_layout
879
880 \end_inset
881
882 などのPostScriptビューアを実行して,PostScript
883 \family default
884 \series default
885 \shape default
886 \size default
887 \emph default
888 \bar default
889 \noun default
890 \color inherit
891 ファイルを表示.
892 \end_layout
893
894 \begin_layout Standard
895 \SpecialChar LyX
896 は,他の書式を表示したりエクスポートしたりする際にも,同様のことを行います.
897 \end_layout
898
899 \begin_layout Section
900 \SpecialChar LaTeX
901 ファイルを\SpecialChar LyX
902 に読み込む
903 \end_layout
904
905 \begin_layout Standard
906 \SpecialChar LyX
907
908 \family sans
909
910 \begin_inset Flex MenuItem
911 status collapsed
912
913 \begin_layout Plain Layout
914
915 \family sans
916 ファイル\SpecialChar menuseparator
917 インポート\SpecialChar menuseparator
918 LaTeX
919 \end_layout
920
921 \end_inset
922
923
924 \family roman
925 \series medium
926 \shape up
927 \size normal
928 \emph off
929 \bar no
930 \noun off
931 \color none
932 コマンドを使用すると,\SpecialChar LaTeX
933 ファイルを
934 \family default
935 \series default
936 \shape default
937 \size default
938 \emph default
939 \bar default
940 \noun default
941  
942 \family roman
943 \series medium
944 \shape up
945 \size normal
946 \emph off
947 \bar no
948 \noun off
949 \SpecialChar LyX
950 にインポートすることができます.このコマンドは,
951 \family typewriter
952 \series default
953 \shape default
954 \size default
955 \emph default
956 \bar default
957 \noun default
958 \color inherit
959
960 \begin_inset Flex Code
961 status collapsed
962
963 \begin_layout Plain Layout
964
965 \family typewriter
966 tex2lyx
967 \end_layout
968
969 \end_inset
970
971
972 \family roman
973 \series medium
974 \shape up
975 \size normal
976 \emph off
977 \bar no
978 \noun off
979 \color none
980 というプログラムを呼び出し,
981 \family typewriter
982 \series default
983 \shape default
984 \size default
985 \emph default
986 \bar default
987 \noun default
988 \color inherit
989
990 \begin_inset Flex Code
991 status collapsed
992
993 \begin_layout Plain Layout
994
995 \family typewriter
996 foo.tex
997 \end_layout
998
999 \end_inset
1000
1001
1002 \family default
1003 などというファイルから
1004 \begin_inset Flex Code
1005 status collapsed
1006
1007 \begin_layout Plain Layout
1008
1009 \family typewriter
1010 foo.lyx
1011 \end_layout
1012
1013 \end_inset
1014
1015 を生成します.\SpecialChar LyX
1016 は,この変換したファイルを開きます
1017 \begin_inset Foot
1018 status collapsed
1019
1020 \begin_layout Plain Layout
1021 \begin_inset Flex Code
1022 status collapsed
1023
1024 \begin_layout Plain Layout
1025 tex2lyx
1026 \end_layout
1027
1028 \end_inset
1029
1030 は,もちろんコマンドラインから実行することもできます.
1031 \end_layout
1032
1033 \end_inset
1034
1035
1036 \end_layout
1037
1038 \begin_layout Standard
1039
1040 \family typewriter
1041 \begin_inset Flex Code
1042 status collapsed
1043
1044 \begin_layout Plain Layout
1045
1046 \family typewriter
1047 tex2lyx
1048 \end_layout
1049
1050 \end_inset
1051
1052
1053 \family roman
1054 \series medium
1055 \shape up
1056 \size normal
1057 \emph off
1058 \bar no
1059 \noun off
1060 \color none
1061 は,文法的に正しい\SpecialChar LaTeX
1062 ファイルのほとんどを変換することができますが,すべてを変換できるわけではありません.
1063 \family typewriter
1064 \series default
1065 \shape default
1066 \size default
1067 \emph default
1068 \bar default
1069 \noun default
1070 \color inherit
1071
1072 \begin_inset Flex Code
1073 status collapsed
1074
1075 \begin_layout Plain Layout
1076
1077 \family typewriter
1078 tex2lyx
1079 \end_layout
1080
1081 \end_inset
1082
1083
1084 \family roman
1085 \series medium
1086 \shape up
1087 \size normal
1088 \emph off
1089 \bar no
1090 \noun off
1091 \color none
1092 は,理解不能な部分は\SpecialChar TeX
1093 コードボックスの形で残しますので,ファイルを
1094 \family typewriter
1095 \series default
1096 \shape default
1097 \size default
1098 \emph default
1099 \bar default
1100 \noun default
1101 \color inherit
1102
1103 \begin_inset Flex Code
1104 status collapsed
1105
1106 \begin_layout Plain Layout
1107
1108 \family typewriter
1109 tex2lyx
1110 \end_layout
1111
1112 \end_inset
1113
1114
1115 \family roman
1116 \series medium
1117 \shape up
1118 \size normal
1119 \emph off
1120 \bar no
1121 \noun off
1122 \color none
1123 で変換したのち,\SpecialChar TeX
1124 コードボックスを探して,手動で正しく編集してください.
1125 \end_layout
1126
1127 \begin_layout Standard
1128
1129 \family roman
1130 \series medium
1131 \shape up
1132 \size normal
1133 \emph off
1134 \bar no
1135 \noun off
1136 \color none
1137 \SpecialChar TeX
1138 コードボックスがなにかご存じなければ,次節をお読みください.
1139 \end_layout
1140
1141 \begin_layout Section
1142 \SpecialChar LyX
1143 文書に\SpecialChar TeX
1144 コードを挿入する
1145 \begin_inset CommandInset label
1146 LatexCommand label
1147 name "sec:TeXコードを挿入する"
1148
1149 \end_inset
1150
1151
1152 \end_layout
1153
1154 \begin_layout Standard
1155
1156 \family roman
1157 \series medium
1158 \shape up
1159 \size normal
1160 \emph off
1161 \bar no
1162 \noun off
1163 \color none
1164 どの\SpecialChar LyX
1165 文書にもつねに\SpecialChar TeX
1166 コードを挿入することが可能であるというきわめて単純な理由によって,\SpecialChar LaTeX
1167 にできることは,つねに\SpecialChar LyX
1168 でも行うことができます.一方,\SpecialChar LyX
1169 は,すべての\SpecialChar LaTeX
1170 構成物を\SpecialChar LyX
1171 内に
1172 表示できるわけではなく,将来的にもそうならないでしょう.かりに\SpecialChar LaTeX
1173 コマンドを\SpecialChar LyX
1174 文書に挿入する必要が出てきた場合には,
1175 \begin_inset Flex Code
1176 status collapsed
1177
1178 \begin_layout Plain Layout
1179
1180 \family roman
1181 \series medium
1182 \shape up
1183 \size normal
1184 \emph off
1185 \bar no
1186 \noun off
1187 \color none
1188 \SpecialChar TeX
1189 コード
1190 \end_layout
1191
1192 \end_inset
1193
1194 ボックスを使用してください.これは,
1195 \family sans
1196 \series default
1197 \shape default
1198 \size default
1199 \emph default
1200 \bar default
1201 \noun default
1202 \color inherit
1203
1204 \begin_inset Flex MenuItem
1205 status collapsed
1206
1207 \begin_layout Plain Layout
1208
1209 \family sans
1210 挿入\SpecialChar menuseparator
1211 TeXコード
1212 \end_layout
1213
1214 \end_inset
1215
1216
1217 \family roman
1218 \series medium
1219 \shape up
1220 \size normal
1221 \emph off
1222 \bar no
1223 \noun off
1224 \color none
1225 若しくは
1226 \family default
1227 \series default
1228 \shape default
1229 \size default
1230 \emph default
1231 \bar default
1232 \noun default
1233 \color inherit
1234
1235 \begin_inset Flex Ruby
1236 status collapsed
1237
1238 \begin_layout Plain Layout
1239
1240 \family roman
1241 \series medium
1242 \shape up
1243 \size normal
1244 \emph off
1245 \bar no
1246 \noun off
1247 \color none
1248 捷径
1249 \family default
1250 \series default
1251 \shape default
1252 \size default
1253 \emph default
1254 \bar default
1255 \noun default
1256 \color inherit
1257
1258 \begin_inset Argument post:1
1259 status collapsed
1260
1261 \begin_layout Plain Layout
1262 ショートカット
1263 \end_layout
1264
1265 \end_inset
1266
1267
1268 \end_layout
1269
1270 \end_inset
1271
1272
1273 \begin_inset Flex Ruby
1274 status collapsed
1275
1276 \begin_layout Plain Layout
1277
1278 \family roman
1279 \series medium
1280 \shape up
1281 \size normal
1282 \emph off
1283 \bar no
1284 \noun off
1285 \color none
1286
1287 \begin_inset Argument post:1
1288 status collapsed
1289
1290 \begin_layout Plain Layout
1291 キー
1292 \end_layout
1293
1294 \end_inset
1295
1296
1297 \end_layout
1298
1299 \end_inset
1300
1301
1302 \begin_inset Info
1303 type  "shortcut"
1304 arg   "ert-insert"
1305 \end_inset
1306
1307
1308 \family roman
1309 \series medium
1310 \shape up
1311 \size normal
1312 \emph off
1313 \bar no
1314 \noun off
1315 \color none
1316 で,文書中に挿入することができます.
1317 \end_layout
1318
1319 \begin_layout Standard
1320 以下は,\SpecialChar LaTeX
1321 コマンドを\SpecialChar LyX
1322 文書中に挿入する例です.コードは以下のようになっているとしましょう.
1323 \end_layout
1324
1325 \begin_layout LyX-Code
1326
1327 \backslash
1328 begin{tabular}{ll}
1329 \begin_inset Newline newline
1330 \end_inset
1331
1332
1333 \backslash
1334 begin{minipage}{5cm}
1335 \begin_inset Newline newline
1336 \end_inset
1337
1338 これは,ミニページ環境の例です.
1339 \begin_inset Newline newline
1340 \end_inset
1341
1342 これには,
1343 \begin_inset Newline newline
1344 \end_inset
1345
1346 (フロートでない)図表を
1347 \begin_inset Newline newline
1348 \end_inset
1349
1350 含め,ほとんど何でも
1351 \begin_inset Newline newline
1352 \end_inset
1353
1354 入れることができます. 
1355 \begin_inset Newline newline
1356 \end_inset
1357
1358
1359 \backslash
1360 end{minipage}
1361 \begin_inset Newline newline
1362 \end_inset
1363
1364 &
1365 \begin_inset Newline newline
1366 \end_inset
1367
1368
1369 \backslash
1370 begin{minipage}{5cm}
1371 \begin_inset Newline newline
1372 \end_inset
1373
1374
1375 \backslash
1376 begin{verbatim}
1377 \begin_inset Newline newline
1378 \end_inset
1379
1380
1381 \backslash
1382 begin{minipage}{5cm}
1383 \begin_inset Newline newline
1384 \end_inset
1385
1386 これは...
1387  
1388 \begin_inset Newline newline
1389 \end_inset
1390
1391
1392 \backslash
1393 end{minipage}
1394 \begin_inset Newline newline
1395 \end_inset
1396
1397
1398 \backslash
1399 end{verbatim}
1400 \begin_inset Newline newline
1401 \end_inset
1402
1403
1404 \backslash
1405 end{minipage}
1406 \begin_inset Newline newline
1407 \end_inset
1408
1409
1410 \backslash
1411 end{tabular}
1412 \end_layout
1413
1414 \begin_layout LyX-Code
1415
1416 \end_layout
1417
1418 \begin_layout Standard
1419 上記のテキストを含んだ
1420 \begin_inset Flex Code
1421 status collapsed
1422
1423 \begin_layout Plain Layout
1424 \SpecialChar TeX
1425 コード
1426 \end_layout
1427
1428 \end_inset
1429
1430 ボックスが,この段落の直後にあります.この取扱説明書を\SpecialChar LyX
1431 上でご覧になっていれば,\SpecialChar TeX
1432 コード差込枠のみが見えるはずです.印刷した取扱説明書をご覧であれば,実際の結果が見
1433 れるはずです.
1434 \end_layout
1435
1436 \begin_layout Standard
1437 \begin_inset VSpace bigskip
1438 \end_inset
1439
1440
1441 \begin_inset ERT
1442 status open
1443
1444 \begin_layout Plain Layout
1445
1446
1447 \backslash
1448 begin{tabular}{ll}
1449 \end_layout
1450
1451 \begin_layout Plain Layout
1452
1453
1454 \backslash
1455 begin{minipage}{5cm}
1456 \end_layout
1457
1458 \begin_layout Plain Layout
1459
1460 これは,ミニページ環境の例です.これには,(フロートでない)図表を含め,ほとんど何でも入れることができます. 
1461 \backslash
1462 end{minipage}
1463 \end_layout
1464
1465 \begin_layout Plain Layout
1466
1467 &
1468 \end_layout
1469
1470 \begin_layout Plain Layout
1471
1472
1473 \backslash
1474 begin{minipage}{5cm}
1475 \end_layout
1476
1477 \begin_layout Plain Layout
1478
1479
1480 \backslash
1481 begin{verbatim}
1482 \end_layout
1483
1484 \begin_layout Plain Layout
1485
1486
1487 \backslash
1488 begin{minipage}{5cm}
1489 \end_layout
1490
1491 \begin_layout Plain Layout
1492
1493 これは...
1494  
1495 \backslash
1496 end{minipage}
1497 \end_layout
1498
1499 \begin_layout Plain Layout
1500
1501
1502 \backslash
1503 end{verbatim}
1504 \end_layout
1505
1506 \begin_layout Plain Layout
1507
1508
1509 \backslash
1510 end{minipage}
1511 \end_layout
1512
1513 \begin_layout Plain Layout
1514
1515
1516 \backslash
1517 end{tabular}
1518 \end_layout
1519
1520 \end_inset
1521
1522
1523 \begin_inset VSpace bigskip
1524 \end_inset
1525
1526
1527 \end_layout
1528
1529 \begin_layout Standard
1530
1531 \family roman
1532 \series medium
1533 \shape up
1534 \size normal
1535 \emph off
1536 \bar no
1537 \noun off
1538 \color none
1539 \SpecialChar TeX
1540 コードを使用する方法に加えて,複雑な\SpecialChar LaTeX
1541 コードを含む部分を別ファイルとして作成しておき,そのファイルをインクルードするのに
1542 \begin_inset Flex MenuItem
1543 status collapsed
1544
1545 \begin_layout Plain Layout
1546
1547 \family roman
1548 \series medium
1549 \shape up
1550 \size normal
1551 \emph off
1552 \bar no
1553 \noun off
1554 \color none
1555 挿入\SpecialChar menuseparator
1556 ファイル\SpecialChar menuseparator
1557 子文書
1558 \end_layout
1559
1560 \end_inset
1561
1562 を使用する方法もあります(取り込みの型として
1563 \begin_inset Flex Code
1564 status collapsed
1565
1566 \begin_layout Plain Layout
1567
1568 \family roman
1569 \series medium
1570 \shape up
1571 \size normal
1572 \emph off
1573 \bar no
1574 \noun off
1575 \color none
1576 Input
1577 \end_layout
1578
1579 \end_inset
1580
1581 を選択しなくてはなりません).この方法をとる場合には,.texファイルが正しく動作することが
1582 \family default
1583 \series default
1584 \shape default
1585 \size default
1586 \emph on
1587 \bar default
1588 \noun default
1589 \color inherit
1590 確認できている
1591 \family roman
1592 \series medium
1593 \shape up
1594 \size normal
1595 \emph off
1596 \bar no
1597 \noun off
1598 \color none
1599 場合のみに限った方がよいでしょう.さもないと,\SpecialChar LaTeX
1600 エラーを追跡するたいへんな作業を行わなくてはならなくなります.
1601 \end_layout
1602
1603 \begin_layout Standard
1604
1605 \family roman
1606 \series medium
1607 \shape up
1608 \size normal
1609 \emph off
1610 \bar no
1611 \noun off
1612 \color none
1613 最後に,いくつか強調しておくべきことがあります.
1614 \end_layout
1615
1616 \begin_layout Itemize
1617
1618 \family roman
1619 \series medium
1620 \shape up
1621 \size normal
1622 \emph off
1623 \bar no
1624 \noun off
1625 \color none
1626 \SpecialChar LyX
1627 は,あなたの\SpecialChar LaTeX
1628 コードが正しいかどうかを
1629 \family default
1630 \series default
1631 \shape default
1632 \size default
1633 \emph on
1634 \bar default
1635 \noun default
1636 \color inherit
1637 チェックしません
1638 \family roman
1639 \series medium
1640 \shape up
1641 \size normal
1642 \emph off
1643 \bar no
1644 \noun off
1645 \color none
1646
1647 \end_layout
1648
1649 \begin_layout Itemize
1650
1651 \family roman
1652 \series medium
1653 \shape up
1654 \size normal
1655 \emph off
1656 \bar no
1657 \noun off
1658 \color none
1659 車輪の再発明をしないようにご注意ください.
1660 \end_layout
1661
1662 \begin_layout Standard
1663
1664 \family roman
1665 \series medium
1666 \shape up
1667 \size normal
1668 \emph off
1669 \bar no
1670 \noun off
1671 \color none
1672 二番目の点に関して,\SpecialChar LyX
1673 はひじょうにたくさんの機能を装備しており,その数は増えつづけています.ご自身で\SpecialChar LaTeX
1674 コードを書かなくてはならないと思い込む前に,LyXがこれこれの
1675 機能をもっていないことを,取扱説明書で確実に確かめてください.さらに世の中には,封筒のラベルから美しい複数ページにわたる表を作るものまで,ありとあらゆることを行
1676 う膨大な数の\SpecialChar LaTeX
1677 パッケージが存在します.
1678 \family default
1679 \series default
1680 \shape default
1681 \size default
1682 \emph default
1683 \bar default
1684 \noun default
1685 \color inherit
1686 詳細については,
1687 \begin_inset CommandInset href
1688 LatexCommand href
1689 name "CTAN"
1690 target "http://www.ctan.org/"
1691 literal "false"
1692
1693 \end_inset
1694
1695
1696 \family roman
1697 \series medium
1698 \shape up
1699 \size normal
1700 \emph off
1701 \bar no
1702 \noun off
1703 \color none
1704 と第
1705 \begin_inset CommandInset ref
1706 LatexCommand ref
1707 reference "chap:Special-features"
1708
1709 \end_inset
1710
1711 節をご覧ください.
1712 \end_layout
1713
1714 \begin_layout Standard
1715
1716 \family roman
1717 \series medium
1718 \shape up
1719 \size normal
1720 \emph off
1721 \bar no
1722 \noun off
1723 \color none
1724 もし,文書中で例外的に手の込んだことをなさりたければ,かならず良い\SpecialChar LaTeX
1725 関連書籍を参考とするようにしてください.『
1726 \family default
1727 \series default
1728 \shape default
1729 \size default
1730 \emph on
1731 \bar default
1732 \noun default
1733 \color inherit
1734 ユーザーの手引き
1735 \family roman
1736 \series medium
1737 \shape up
1738 \size normal
1739 \emph off
1740 \bar no
1741 \noun off
1742 \color none
1743 』の書誌情報に多くの\SpecialChar LaTeX
1744 関連書籍が引用されています.
1745 \end_layout
1746
1747 \begin_layout Section
1748 \SpecialChar LyX
1749 と\SpecialChar LaTeX
1750 プリアンブル
1751 \end_layout
1752
1753 \begin_layout Subsection
1754 \SpecialChar LaTeX
1755 プリアンブルについて
1756 \end_layout
1757
1758 \begin_layout Standard
1759
1760 \family roman
1761 \series medium
1762 \shape up
1763 \size normal
1764 \emph off
1765 \bar no
1766 \noun off
1767 \color none
1768 すでに\SpecialChar LaTeX
1769 についてご存知であれば,ここでプリアンブル(前置文)が何に向いているか説明する必要はないでしょう.もしご存じなければ,以下の説明で大まかな理解は得られるは
1770 ずです.詳しくは\SpecialChar LaTeX
1771 関連書籍をご参照ください.いずれにしても,以下で\SpecialChar LyX
1772 文書の\SpecialChar LaTeX
1773 プリアンブルで何ができるか,または何をする必要がないか説明をしますので,以下の各要点はお読
1774 みになった方が良いでしょう.
1775 \end_layout
1776
1777 \begin_layout Standard
1778
1779 \family roman
1780 \series medium
1781 \shape up
1782 \size normal
1783 \emph off
1784 \bar no
1785 \noun off
1786 \color none
1787 \SpecialChar LaTeX
1788 プリアンブルは,\SpecialChar LaTeX
1789 文書のいちばん始め,本文の
1790 \family default
1791 \series default
1792 \shape default
1793 \size default
1794 \emph on
1795 \bar default
1796 \noun default
1797 \color inherit
1798
1799 \family roman
1800 \series medium
1801 \shape up
1802 \size normal
1803 \emph off
1804 \bar no
1805 \noun off
1806 \color none
1807 の部分に来ます.ここでは以下のことを行います.
1808 \end_layout
1809
1810 \begin_layout Itemize
1811
1812 \family roman
1813 \series medium
1814 \shape up
1815 \size normal
1816 \emph off
1817 \bar no
1818 \noun off
1819 \color none
1820 文書クラス(ドキュメントクラス)の宣言.
1821 \begin_inset Newline newline
1822 \end_inset
1823
1824 これは\SpecialChar LyX
1825 がすでに行ってくれています.もしあなたが熟達した\SpecialChar LaTeX
1826 使いであり,自作の文書クラスを使いたい場合には,取扱説明書『
1827 \family default
1828 \series default
1829 \shape default
1830 \size default
1831 \emph on
1832 \bar default
1833 \noun default
1834 \color inherit
1835 カスタマイズ篇
1836 \family roman
1837 \series medium
1838 \shape up
1839 \size normal
1840 \emph off
1841 \bar no
1842 \noun off
1843 \color none
1844 』をご覧になれば,\SpecialChar LyX
1845 に自作文書クラスへの仲介を行わせるにはどうすればよいかの情報があります.
1846 \end_layout
1847
1848 \begin_layout Itemize
1849
1850 \family roman
1851 \series medium
1852 \shape up
1853 \size normal
1854 \emph off
1855 \bar no
1856 \noun off
1857 \color none
1858 パッケージ使用の宣言.
1859 \begin_inset Newline newline
1860 \end_inset
1861
1862 \SpecialChar LaTeX
1863 パッケージは,パッケージがプリアンブルで宣言された場合のみ,文書中で利用可能となる,追加コマンド群を提供します.パッケージをインクルードすると,特別なコマンドが
1864 提供されることに加え,文書に変更を加えることができます.例えば
1865 \family typewriter
1866 \series default
1867 \shape default
1868 \size default
1869 \emph default
1870 \bar default
1871 \noun default
1872 \color inherit
1873
1874 \family roman
1875 \series medium
1876 \shape up
1877 \size normal
1878 \emph off
1879 \bar no
1880 \noun off
1881 \color none
1882
1883 \begin_inset Flex Code
1884 status collapsed
1885
1886 \begin_layout Plain Layout
1887
1888 \family typewriter
1889 indentfirst
1890 \end_layout
1891
1892 \end_inset
1893
1894 パッケージは,すべての段落の最初の行を字下げします.他にも,ラベルや宛名書き,余白設定等の様々なパッケージがあります.
1895 \end_layout
1896
1897 \begin_layout Itemize
1898
1899 \family roman
1900 \series medium
1901 \shape up
1902 \size normal
1903 \emph off
1904 \bar no
1905 \noun off
1906 \color none
1907 カウンタ・変数・長さ・幅の設定.
1908 \begin_inset Newline newline
1909 \end_inset
1910
1911 \SpecialChar LaTeX
1912 のカウンタと変数の中には,プリアンブルでグローバルに
1913 \family default
1914 \series default
1915 \shape default
1916 \size default
1917 \emph default
1918 \bar default
1919 \noun default
1920 \color inherit
1921 設定
1922 \emph on
1923 しないかぎり
1924 \family roman
1925 \series medium
1926 \shape up
1927 \size normal
1928 \emph off
1929 \bar no
1930 \noun off
1931 \color none
1932 ,望んだ効果を持たないものがあります.(文書中で設定したり再設定したりすることのできる変数もあります.)余白は,プリアンブルで設定しなくてはならない変数の代表例
1933 です.他には,箇条書きに付けるラベル書式が挙げられます.じつは,この設定は文書中どこでもできるのですが,プリアンブルでいちどだけ設定するのが望ましい方法です.
1934 \end_layout
1935
1936 \begin_layout Itemize
1937
1938 \family roman
1939 \series medium
1940 \shape up
1941 \size normal
1942 \emph off
1943 \bar no
1944 \noun off
1945 \color none
1946 ユーザー定義コマンドの宣言(
1947 \begin_inset Flex Code
1948 status collapsed
1949
1950 \begin_layout Plain Layout
1951
1952 \family roman
1953 \series medium
1954 \shape up
1955 \size normal
1956 \emph off
1957 \bar no
1958 \noun off
1959 \color none
1960
1961 \backslash
1962 newcommand
1963 \end_layout
1964
1965 \end_inset
1966
1967 または
1968 \begin_inset Flex Code
1969 status collapsed
1970
1971 \begin_layout Plain Layout
1972
1973 \family roman
1974 \series medium
1975 \shape up
1976 \size normal
1977 \emph off
1978 \bar no
1979 \noun off
1980 \color none
1981
1982 \backslash
1983 renewcommand
1984 \end_layout
1985
1986 \end_inset
1987
1988 を使用).
1989 \begin_inset Newline newline
1990 \end_inset
1991
1992 ユーザー定義コマンドは,文書中で頻出する\SpecialChar LaTeX
1993 コマンドの短縮形です.このようなコマンドを宣言するには,プリアンブルが適した場所ですが,どこで宣言することも
1994 \family default
1995 \series default
1996 \shape default
1997 \size default
1998 \emph on
1999 \bar default
2000 \noun default
2001 \color inherit
2002 可能
2003 \family roman
2004 \series medium
2005 \shape up
2006 \size normal
2007 \emph off
2008 \bar no
2009 \noun off
2010 \color none
2011 です(もちろんコマンドが初めて使用される場所よりも前です).あまりないことではありますが,お使いの文書中に生の\SpecialChar LaTeX
2012 コードがあふれている場合には便利でしょう.
2013 \end_layout
2014
2015 \begin_layout Standard
2016
2017 \family roman
2018 \series medium
2019 \shape up
2020 \size normal
2021 \emph off
2022 \bar no
2023 \noun off
2024 \color none
2025 \SpecialChar LyX
2026 は,その生成する
2027 \begin_inset Flex Code
2028 status collapsed
2029
2030 \begin_layout Plain Layout
2031
2032 \family roman
2033 \series medium
2034 \shape up
2035 \size normal
2036 \emph off
2037 \bar no
2038 \noun off
2039 \color none
2040 .tex
2041 \end_layout
2042
2043 \end_inset
2044
2045 ファイルのプリアンブルに,それ自身の定義を追加します.これによって,\SpecialChar LyX
2046 の生成する\SpecialChar LaTeX
2047 ファイルの可搬性を高めています.
2048 \end_layout
2049
2050 \begin_layout Subsection
2051 プリアンブルの変更
2052 \end_layout
2053
2054 \begin_layout Standard
2055
2056 \family roman
2057 \series medium
2058 \shape up
2059 \size normal
2060 \emph off
2061 \bar no
2062 \noun off
2063 \color none
2064 \SpecialChar LyX
2065 が\SpecialChar LaTeX
2066 ファイルのプリアンブルに追加するコマンドは,つねに同じです.これは,\SpecialChar LyX
2067 自体にパッチを当てないかぎり変更できないようになっています.しかしながら,
2068 \begin_inset Flex MenuItem
2069 status collapsed
2070
2071 \begin_layout Plain Layout
2072
2073 \family roman
2074 \series medium
2075 \shape up
2076 \size normal
2077 \emph off
2078 \bar no
2079 \noun off
2080 \color none
2081 文書\SpecialChar menuseparator
2082 設定
2083 \end_layout
2084
2085 \end_inset
2086
2087 ダイアログの
2088 \begin_inset Flex MenuItem
2089 status collapsed
2090
2091 \begin_layout Plain Layout
2092
2093 \family roman
2094 \series medium
2095 \shape up
2096 \size normal
2097 \emph off
2098 \bar no
2099 \noun off
2100 \color none
2101 \SpecialChar LaTeX
2102 プリアンブル
2103 \end_layout
2104
2105 \end_inset
2106
2107 の項から,プリアンブルに追加をすることはできます.\SpecialChar LyX
2108 は,
2109 \family sans
2110 \series default
2111 \shape default
2112 \size default
2113 \emph default
2114 \bar default
2115 \noun default
2116 \color inherit
2117
2118 \begin_inset Flex MenuItem
2119 status collapsed
2120
2121 \begin_layout Plain Layout
2122
2123 \family sans
2124 プリアンブル
2125 \end_layout
2126
2127 \end_inset
2128
2129
2130 \family roman
2131 \series medium
2132 \shape up
2133 \size normal
2134 \emph off
2135 \bar no
2136 \noun off
2137 \color none
2138 ダイアログ内のすべてのものを,\SpecialChar LyX
2139 埋込みのプリアンブルに付け加えます.ご自身の宣言をプリアンブルに追加する前に,あなたがしようとしていることを\SpecialChar LyX
2140 がすでにサポートしてい
2141 ないかどうか確認してください(車輪の再発明をしないように,とはすでに申しあげたことです).
2142 \family default
2143 \series default
2144 \shape default
2145 \size default
2146 \emph default
2147 \bar default
2148 \noun default
2149 \color inherit
2150 また,
2151 \emph on
2152 プリアンブルコードが正しいことを確認してください.
2153 \emph default
2154 \SpecialChar LyX
2155 は,プリアンブルをチェックしません.
2156 \family roman
2157 \series medium
2158 \shape up
2159 \size normal
2160 \emph off
2161 \bar no
2162 \noun off
2163 \color none
2164 もしエラーがあれば,「
2165 \begin_inset Flex Code
2166 status collapsed
2167
2168 \begin_layout Plain Layout
2169
2170 \family roman
2171 \series medium
2172 \shape up
2173 \size normal
2174 \emph off
2175 \bar no
2176 \noun off
2177 \color none
2178 Missing 
2179 \backslash
2180 begin{document}
2181 \end_layout
2182
2183 \end_inset
2184
2185 」といったエラーが出ることでしょう.このようなエラーが出たときは,プリアンブルを再確認してください.
2186 \end_layout
2187
2188 \begin_layout Subsection
2189
2190 \end_layout
2191
2192 \begin_layout Standard
2193
2194 \family roman
2195 \series medium
2196 \shape up
2197 \size normal
2198 \emph off
2199 \bar no
2200 \noun off
2201 \color none
2202 以下は,プリアンブルに追加できるものとその効果を示す例です.
2203 \end_layout
2204
2205 \begin_layout Subsubsection
2206 例1:オフセット
2207 \end_layout
2208
2209 \begin_layout Standard
2210
2211 \family roman
2212 \series medium
2213 \shape up
2214 \size normal
2215 \emph off
2216 \bar no
2217 \noun off
2218 \color none
2219 \SpecialChar LaTeX
2220 には
2221 \family default
2222 \series default
2223 \shape default
2224 \size default
2225 \emph default
2226 \bar default
2227 \noun default
2228 \color inherit
2229
2230 \family roman
2231 \series medium
2232 \shape up
2233 \size normal
2234 \emph off
2235 \bar no
2236 \noun off
2237 \color none
2238
2239 \begin_inset Flex Code
2240 status collapsed
2241
2242 \begin_layout Plain Layout
2243
2244 \family typewriter
2245
2246 \backslash
2247 hoffset
2248 \end_layout
2249
2250 \end_inset
2251
2252
2253 \family typewriter
2254 \series default
2255 \shape default
2256 \size default
2257 \emph default
2258 \bar default
2259 \noun default
2260 \color inherit
2261
2262 \begin_inset Flex Code
2263 status collapsed
2264
2265 \begin_layout Plain Layout
2266
2267 \family typewriter
2268
2269 \backslash
2270 voffset
2271 \end_layout
2272
2273 \end_inset
2274
2275
2276 \family roman
2277 \series medium
2278 \shape up
2279 \size normal
2280 \emph off
2281 \bar no
2282 \noun off
2283 \color none
2284 というページ位置を制御する2つの変数があります.その機能は名前から明らかなとおりです.これらの変数は,ラベルを印刷するときなどに便利です.往々にして,印刷用紙の
2285 寸法とそのうち実際に印字可能な範囲は同じではありません.ここに
2286 \begin_inset Flex Code
2287 status collapsed
2288
2289 \begin_layout Plain Layout
2290
2291 \family typewriter
2292
2293 \backslash
2294 hoffset
2295 \end_layout
2296
2297 \end_inset
2298
2299
2300 \family typewriter
2301 \series default
2302 \shape default
2303 \size default
2304 \emph default
2305 \bar default
2306 \noun default
2307 \color inherit
2308
2309 \begin_inset Flex Code
2310 status collapsed
2311
2312 \begin_layout Plain Layout
2313
2314 \family typewriter
2315
2316 \backslash
2317 voffset
2318 \end_layout
2319
2320 \end_inset
2321
2322
2323 \family default
2324 が役立つわけです.
2325 \end_layout
2326
2327 \begin_layout Standard
2328
2329 \family roman
2330 \series medium
2331 \shape up
2332 \size normal
2333 \emph off
2334 \bar no
2335 \noun off
2336 \color none
2337 \begin_inset Flex Code
2338 status collapsed
2339
2340 \begin_layout Plain Layout
2341
2342 \family typewriter
2343
2344 \backslash
2345 hoffset
2346 \end_layout
2347
2348 \end_inset
2349
2350
2351 \family typewriter
2352 \series default
2353 \shape default
2354 \size default
2355 \emph default
2356 \bar default
2357 \noun default
2358 \color inherit
2359
2360 \begin_inset Flex Code
2361 status collapsed
2362
2363 \begin_layout Plain Layout
2364
2365 \family typewriter
2366
2367 \backslash
2368 voffset
2369 \end_layout
2370
2371 \end_inset
2372
2373
2374 \family roman
2375 \series medium
2376 \shape up
2377 \size normal
2378 \emph off
2379 \bar no
2380 \noun off
2381 \color none
2382 の既定値はともに0ポイント,つまりページをシフトしません.残念ながら,DVIドライバによってはつねにページをシフトすることがあるようです.我々には,どうしてその
2383 ようなことをするのか,そしてシスアドがどうしてそれを修正しないのか理解できませんが,もし個人的に管理できないシステムで\SpecialChar LyX
2384 を使用していて,シスアドがお馬鹿さんである
2385 場合には,
2386 \begin_inset Flex Code
2387 status collapsed
2388
2389 \begin_layout Plain Layout
2390
2391 \family typewriter
2392
2393 \backslash
2394 hoffset
2395 \end_layout
2396
2397 \end_inset
2398
2399
2400 \family typewriter
2401 \series default
2402 \shape default
2403 \size default
2404 \emph default
2405 \bar default
2406 \noun default
2407 \color inherit
2408
2409 \begin_inset Flex Code
2410 status collapsed
2411
2412 \begin_layout Plain Layout
2413
2414 \family typewriter
2415
2416 \backslash
2417 voffset
2418 \end_layout
2419
2420 \end_inset
2421
2422
2423 \family roman
2424 \series medium
2425 \shape up
2426 \size normal
2427 \emph off
2428 \bar no
2429 \noun off
2430 \color none
2431 が役に立ちます.かりに,上余白と左余白がつねに0.5インチずつ大きすぎるものとしましょう.その場合は,以下をプリアンブルに追加するとよいでしょう.
2432 \end_layout
2433
2434 \begin_layout LyX-Code
2435
2436 \backslash
2437 setlength{
2438 \backslash
2439 hoffset}{-0.5 in}
2440 \end_layout
2441
2442 \begin_layout LyX-Code
2443
2444 \backslash
2445 setlength{
2446 \backslash
2447 voffset}{-0.5 in}
2448 \end_layout
2449
2450 \begin_layout Standard
2451
2452 \family roman
2453 \series medium
2454 \shape up
2455 \size normal
2456 \emph off
2457 \bar no
2458 \noun off
2459 \color none
2460 これで余白が修正されます.
2461 \end_layout
2462
2463 \begin_layout Subsubsection
2464 例2:ラベル
2465 \end_layout
2466
2467 \begin_layout Standard
2468
2469 \family roman
2470 \series medium
2471 \shape up
2472 \size normal
2473 \emph off
2474 \bar no
2475 \noun off
2476 \color none
2477 いま,たくさんの宛名ラベルを印刷をしたいものとしましょう.ラベルシートを印刷するために便利な
2478 \begin_inset Flex Code
2479 status collapsed
2480
2481 \begin_layout Plain Layout
2482
2483 \family typewriter
2484 labels.sty
2485 \end_layout
2486
2487 \end_inset
2488
2489 という\SpecialChar LaTeX
2490 パッケージが,お近くのCTANアーカイブで入手可能です.お使いのシステムには,既定ではこのパッケージは導入されていないかもしれません.ご自身でお確かめくだ
2491 さい.また,このパッケージの取扱説明書を読まれたいかもしれませんが,それもご自身にお任せします.これは使用例ですので,このパッケージをどう使うかの例だけお見せす
2492 ることにします.
2493 \end_layout
2494
2495 \begin_layout Standard
2496
2497 \family roman
2498 \series medium
2499 \shape up
2500 \size normal
2501 \emph off
2502 \bar no
2503 \noun off
2504 \color none
2505 まず,
2506 \begin_inset Flex Code
2507 status collapsed
2508
2509 \begin_layout Plain Layout
2510
2511 \family sans
2512 article
2513 \end_layout
2514
2515 \end_inset
2516
2517 文書クラスを使用していることをご確認ください.次に,以下のような設定をプリアンブルに追加しなければなりません.
2518 \end_layout
2519
2520 \begin_layout LyX-Code
2521
2522 \backslash
2523 usepackage{labels}
2524 \end_layout
2525
2526 \begin_layout LyX-Code
2527
2528 \backslash
2529 LabelCols=3
2530 \end_layout
2531
2532 \begin_layout LyX-Code
2533
2534 \backslash
2535 LabelRows=7
2536 \end_layout
2537
2538 \begin_layout LyX-Code
2539
2540 \backslash
2541 LeftBorder=8mm
2542 \end_layout
2543
2544 \begin_layout LyX-Code
2545
2546 \backslash
2547 RightBorder=8mm
2548 \end_layout
2549
2550 \begin_layout LyX-Code
2551
2552 \backslash
2553 TopBorder=9mm
2554 \end_layout
2555
2556 \begin_layout LyX-Code
2557
2558 \backslash
2559 BottomBorder=2mm
2560 \end_layout
2561
2562 \begin_layout Standard
2563
2564 \family roman
2565 \series medium
2566 \shape up
2567 \size normal
2568 \emph off
2569 \bar no
2570 \noun off
2571 \color none
2572 これは
2573 \family default
2574 \series default
2575 \shape default
2576 \size default
2577 \emph default
2578 \bar default
2579 \noun default
2580 \color inherit
2581 Averyラベルシートのストック5360
2582 \family roman
2583 \series medium
2584 \shape up
2585 \size normal
2586 \emph off
2587 \bar no
2588 \noun off
2589 \color none
2590 番を使用する場合の設定です.これで,各宛名を
2591 \begin_inset Flex Code
2592 status collapsed
2593
2594 \begin_layout Plain Layout
2595
2596 \family typewriter
2597
2598 \backslash
2599 begin{labels}
2600 \end_layout
2601
2602 \end_inset
2603
2604
2605 \family typewriter
2606 \series default
2607 \shape default
2608 \size default
2609 \emph default
2610 \bar default
2611 \noun default
2612 \color inherit
2613
2614 \begin_inset Flex Code
2615 status collapsed
2616
2617 \begin_layout Plain Layout
2618
2619 \family typewriter
2620
2621 \backslash
2622 end{labels}
2623 \end_layout
2624
2625 \end_inset
2626
2627
2628 \family roman
2629 \series medium
2630 \shape up
2631 \size normal
2632 \emph off
2633 \bar no
2634 \noun off
2635 \color none
2636 で囲めば,宛名ラベルの印刷をすることができます.本機能およびその他の機能に関しては,
2637 \begin_inset Flex Code
2638 status collapsed
2639
2640 \begin_layout Plain Layout
2641
2642 \family typewriter
2643 labels.sty
2644 \end_layout
2645
2646 \end_inset
2647
2648 の取扱説明書に説明されています.
2649 \end_layout
2650
2651 \begin_layout Standard
2652
2653 \family roman
2654 \series medium
2655 \shape up
2656 \size normal
2657 \emph off
2658 \bar no
2659 \noun off
2660 \color none
2661 そのうち誰かが,このパッケージを直接サポートする\SpecialChar LyX
2662 レイアウトファイルを作ってくれるかもしれません.その誰かはあなたかもしれません.
2663 \end_layout
2664
2665 \begin_layout Subsubsection
2666 例3: 段落の字下げ
2667 \end_layout
2668
2669 \begin_layout Standard
2670
2671 \family roman
2672 \series medium
2673 \shape up
2674 \size normal
2675 \emph off
2676 \bar no
2677 \noun off
2678 \color none
2679 アメリカ人は
2680 \family default
2681 \series default
2682 \shape default
2683 \size default
2684 \emph default
2685 \bar default
2686 \noun default
2687 \color inherit
2688
2689 \emph on
2690 すべての
2691 \family roman
2692 \series medium
2693 \shape up
2694 \size normal
2695 \emph off
2696 \bar no
2697 \noun off
2698 \color none
2699 段落の最初の行を字下げするように教育されています.そのために彼らの他の変な習慣と同じく,いつものようにすべての段落の最初の行を下げるまで,アメリカ人はごちゃごち
2700 ゃと文句を言いつづけるのです
2701 \family default
2702 \series default
2703 \shape default
2704 \size default
2705 \emph default
2706 \bar default
2707 \noun default
2708 \color inherit
2709 .(これはユーモアです.(ほんと?)
2710 \emph on
2711 ユーモアですってば
2712 \emph default
2713 .)
2714 \end_layout
2715
2716 \begin_layout Standard
2717
2718 \family roman
2719 \series medium
2720 \shape up
2721 \size normal
2722 \emph off
2723 \bar no
2724 \noun off
2725 \color none
2726 もちろん,これは標準的な組版ルールではありません.書籍では,典型的には,他の段落のあとにくる段落
2727 \family default
2728 \series default
2729 \shape default
2730 \size default
2731 \emph on
2732 \bar default
2733 \noun default
2734 \color inherit
2735 のみ
2736 \family roman
2737 \series medium
2738 \shape up
2739 \size normal
2740 \emph off
2741 \bar no
2742 \noun off
2743 \color none
2744 字下げを行ないます.一行めを字下げをするそもそもの目的は,隣接する段落から区別するためです.したがって,図のあとや節の最初の段落など,先行する段落がない場合には
2745 ,字下げをする必要はないのです.
2746 \end_layout
2747
2748 \begin_layout Standard
2749
2750 \family roman
2751 \series medium
2752 \shape up
2753 \size normal
2754 \emph off
2755 \bar no
2756 \noun off
2757 \color none
2758 けれどもあなたが典型的なアメリカ人なら(ユーーモアですって!),そのような小難しいことはかまわずに,いつもどおりの字下げをせずにはいられないでしょう!プリアンブ
2759 ルに次の行を加えて下さい.
2760 \end_layout
2761
2762 \begin_layout LyX-Code
2763
2764 \backslash
2765 usepackage{indentfirst}
2766 \end_layout
2767
2768 \begin_layout Standard
2769
2770 \family roman
2771 \series medium
2772 \shape up
2773 \size normal
2774 \emph off
2775 \bar no
2776 \noun off
2777 \color none
2778 もしお使いの\SpecialChar TeX
2779 頒布版が脳死状態でなければ,このパッケージが入っているはずなので,建国の父たちが意図したように,すべての段落が字下げされます.
2780 \end_layout
2781
2782 \begin_layout Subsubsection
2783 例4:この文書
2784 \end_layout
2785
2786 \begin_layout Standard
2787
2788 \family roman
2789 \series medium
2790 \shape up
2791 \size normal
2792 \emph off
2793 \bar no
2794 \noun off
2795 \color none
2796 この文書のプリアンブルを見てみると,どのような高度な設定ができるか,おおまかな理解が得られるでしょう.また第
2797 \family default
2798 \series default
2799 \shape default
2800 \size default
2801 \emph default
2802 \bar default
2803 \noun default
2804 \color inherit
2805
2806 \begin_inset CommandInset ref
2807 LatexCommand ref
2808 reference "chap:Special-features"
2809
2810 \end_inset
2811
2812
2813 \family roman
2814 \series medium
2815 \shape up
2816 \size normal
2817 \emph off
2818 \bar no
2819 \noun off
2820 \color none
2821 章には,他の例や,\SpecialChar LaTeX
2822 の各種の「汚い技」があります.
2823 \end_layout
2824
2825 \begin_layout Section
2826 \SpecialChar LyX
2827 および\SpecialChar LaTeX
2828 のエラー
2829 \end_layout
2830
2831 \begin_layout Standard
2832
2833 \family roman
2834 \series medium
2835 \shape up
2836 \size normal
2837 \emph off
2838 \bar no
2839 \noun off
2840 \color none
2841 \SpecialChar LyX
2842 が\SpecialChar LaTeX
2843 を呼び出す際,\SpecialChar LyX
2844 は\SpecialChar LaTeX
2845 に,かりにエラーがあったとしても楽観的に無視して先に進むように指示します.その後\SpecialChar LyX
2846 は,\SpecialChar LaTeX
2847 の実行ログファイルを事後処理用に使います.ログファイルを分
2848 析したのち,\SpecialChar LyX
2849 はエラーを一覧表示するダイアログを表示します.エラーのうちどれかをクリックすると,\SpecialChar LyX
2850 ファイル中,そのエラーの発生した場所に表示を移動します
2851 \begin_inset Foot
2852 status collapsed
2853
2854 \begin_layout Plain Layout
2855
2856 \family roman
2857 \series medium
2858 \shape up
2859 \size normal
2860 \emph off
2861 \bar no
2862 \noun off
2863 \color none
2864 正確にいうと,通常は,です.ログファイルの分析は難しい仕事ですので,\SpecialChar LyX
2865 はつねに正しい行に連れて行ってくれるとは限りません.ときには,\SpecialChar LaTeX
2866 がある行にエラーがあると報告し
2867 たとしても,実際のエラーはそれよりも前であることもあります.これは,プログラムで閉じ括弧を忘れたときに似ていなくもありません.エラーは表示されますが,実際にエラ
2868 ーのある場所よりも後ろでエラーが報告されるのです.
2869 \end_layout
2870
2871 \end_inset
2872
2873
2874 \family default
2875 \series default
2876 \shape default
2877 \size default
2878 \emph default
2879 \bar default
2880 \noun default
2881 \color inherit
2882
2883 \end_layout
2884
2885 \begin_layout Standard
2886
2887 \family roman
2888 \series medium
2889 \shape up
2890 \size normal
2891 \emph off
2892 \bar no
2893 \noun off
2894 \color none
2895 人によっては,ログファイルを直接ご覧になりたいかもしれません.これは,
2896 \begin_inset Flex MenuItem
2897 status collapsed
2898
2899 \begin_layout Plain Layout
2900
2901 \family roman
2902 \series medium
2903 \shape up
2904 \size normal
2905 \emph off
2906 \bar no
2907 \noun off
2908 \color none
2909 文書\SpecialChar menuseparator
2910 LaTeXログ
2911 \end_layout
2912
2913 \end_inset
2914
2915 で見ることができます.エラーメッセージや警告には,よく見かけるものがいくつかありますので,それらをここに収録しておきます.ここにないエラーや警告に関しては,La\SpecialChar TeX
2916
2917 関連の良書を参照してください.
2918 \end_layout
2919
2920 \begin_layout Itemize
2921
2922 \family typewriter
2923 \begin_inset Flex Code
2924 status collapsed
2925
2926 \begin_layout Plain Layout
2927
2928 \family typewriter
2929 LaTeX Warning
2930 \end_layout
2931
2932 \end_inset
2933
2934
2935 \family roman
2936 \series medium
2937 \shape up
2938 \size normal
2939 \emph off
2940 \bar no
2941 \noun off
2942 \color none
2943
2944 \begin_inset Newline newline
2945 \end_inset
2946
2947 これで始まるメッセージは,\SpecialChar LaTeX
2948 コード自体を「デバッグ」するための警告メッセージです.相互参照や書誌情報を追加したり変更した場合に,もう一度\SpecialChar LaTeX
2949 を実行する必要があることを
2950 知らせるために,このようなメッセージが表示されます.このメッセージは,だいたいにおいて無視しても大丈夫です.
2951 \end_layout
2952
2953 \begin_layout Itemize
2954
2955 \family typewriter
2956 \begin_inset Flex Code
2957 status collapsed
2958
2959 \begin_layout Plain Layout
2960
2961 \family typewriter
2962 LaTeX Font Warning
2963 \end_layout
2964
2965 \end_inset
2966
2967
2968 \family roman
2969 \series medium
2970 \shape up
2971 \size normal
2972 \emph off
2973 \bar no
2974 \noun off
2975 \color none
2976
2977 \begin_inset Newline newline
2978 \end_inset
2979
2980 \SpecialChar LaTeX
2981 がフォントを見つけられなかったと言う警告メッセージです.多くの場合,このメッセージの後に,\SpecialChar LaTeX
2982 が使用した代替フォントに関する情報が続きます.これも無視して構いません
2983
2984 \end_layout
2985
2986 \begin_layout Itemize
2987
2988 \family roman
2989 \series medium
2990 \shape up
2991 \size normal
2992 \emph off
2993 \bar no
2994 \noun off
2995 \color none
2996 \begin_inset Flex Code
2997 status collapsed
2998
2999 \begin_layout Plain Layout
3000
3001 \family typewriter
3002 Overfull 
3003 \backslash
3004 hbox
3005 \end_layout
3006
3007 \end_inset
3008
3009
3010 \begin_inset Newline newline
3011 \end_inset
3012
3013 \SpecialChar LaTeX
3014 は,
3015 \family default
3016 \series default
3017 \shape default
3018 \size default
3019 \emph on
3020 \bar default
3021 \noun default
3022 \color inherit
3023 ほぼどんなときでも
3024 \family roman
3025 \series medium
3026 \shape up
3027 \size normal
3028 \emph off
3029 \bar no
3030 \noun off
3031 \color none
3032 この警告を吐き出します.どんな文書を書いたとしても,このメッセージは,少なくとも1つは出てくるようです.これは,一行が長すぎて右余白にはみ出してしまったという警
3033 告であり,
3034 \family default
3035 \series default
3036 \shape default
3037 \size default
3038 \emph default
3039 \bar default
3040 \noun default
3041 \color inherit
3042 \SpecialChar LaTeX
3043
3044 \family roman
3045 \series medium
3046 \shape up
3047 \size normal
3048 \emph off
3049 \bar no
3050 \noun off
3051 \color none
3052 が適切な改行方法を見つけられなかった時に生じます(タイプライタ体では自動改行を許されないため頻発することが知られています).ほとんどの場合,最終出力を見ても判別
3053 できないくらい(せいぜい1ポイントか2ポイント)です.しかしながら,時には目に見えて余白にはみ出してしまうこともあるので,その場合には,最終出力では修正したいと
3054 思うことでしょう.
3055 \begin_inset Newline newline
3056 \end_inset
3057
3058 全体的にoverfull行の数をできるだけ少なくする方法はいくつかあります.
3059 \family sans
3060 \series default
3061 \shape default
3062 \size default
3063 \emph default
3064 \bar default
3065 \noun default
3066 \color inherit
3067 文書\SpecialChar menuseparator
3068 設定\SpecialChar menuseparator
3069 フォント
3070 \family roman
3071 \series medium
3072 \shape up
3073 \size normal
3074 \emph off
3075 \bar no
3076 \noun off
3077 \color none
3078
3079 \family sans
3080 \series default
3081 \shape default
3082 \size default
3083 \emph default
3084 \bar default
3085 \noun default
3086 \color inherit
3087 マイクロタイポグラフィ拡張を有効にする
3088 \family roman
3089 \series medium
3090 \shape up
3091 \size normal
3092 \emph off
3093 \bar no
3094 \noun off
3095 \color none
3096 をクリックすると,大幅な改善が見込めます.さらに,
3097 \family sans
3098 \series default
3099 \shape default
3100 \size default
3101 \emph default
3102 \bar default
3103 \noun default
3104 \color inherit
3105 文書\SpecialChar menuseparator
3106 設定\SpecialChar menuseparator
3107 プリアンブル
3108 \family roman
3109 \series medium
3110 \shape up
3111 \size normal
3112 \emph off
3113 \bar no
3114 \noun off
3115 \color none
3116 に以下のような
3117 \family default
3118 \series default
3119 \shape default
3120 \size default
3121 \emph default
3122 \bar default
3123 \noun default
3124 \color inherit
3125 \SpecialChar LaTeX
3126
3127 \family roman
3128 \series medium
3129 \shape up
3130 \size normal
3131 \emph off
3132 \bar no
3133 \noun off
3134 \color none
3135 コードを書いても,overfull行の数は,通常,大幅に減少します(この文書のプリアンブルにも使用しています).
3136 \end_layout
3137
3138 \begin_deeper
3139 \begin_layout LyX-Code
3140
3141 \backslash
3142 tolerance 1414
3143 \begin_inset Newline newline
3144 \end_inset
3145
3146
3147 \backslash
3148 hbadness 1414
3149 \begin_inset Newline newline
3150 \end_inset
3151
3152
3153 \backslash
3154 emergencystretch 1.5em
3155 \begin_inset Newline newline
3156 \end_inset
3157
3158
3159 \backslash
3160 hfuzz 0.3pt
3161 \end_layout
3162
3163 \begin_layout Standard
3164 しかしながら,場合によっては,改行が正しく行われるように,文章そのものを書き換えなくてはならない場合もあります
3165 \begin_inset Foot
3166 status collapsed
3167
3168 \begin_layout Plain Layout
3169 詳細は,
3170 \begin_inset Flex URL
3171 status open
3172
3173 \begin_layout Plain Layout
3174
3175 http://www.tex.ac.uk/FAQ-overfull.html
3176 \end_layout
3177
3178 \end_inset
3179
3180 を参照してください.
3181 \end_layout
3182
3183 \end_inset
3184
3185
3186 \end_layout
3187
3188 \begin_layout Standard
3189 何れにしても,少なくとも文書の完成版では,各行の確認を行うべきです.はみ出過ぎているものがあれば,目で見ればわかるでしょう
3190 \begin_inset Foot
3191 status collapsed
3192
3193 \begin_layout Plain Layout
3194
3195 \family sans
3196 文書\SpecialChar menuseparator
3197 設定
3198 \family default
3199 で「draft」オプションを有効にすることもできます.すると,overfull行の余白には,\SpecialChar LaTeX
3200 が黒い四角を描画してくれます.
3201 \end_layout
3202
3203 \end_inset
3204
3205
3206 \end_layout
3207
3208 \end_deeper
3209 \begin_layout Itemize
3210
3211 \family typewriter
3212 \begin_inset Flex Code
3213 status collapsed
3214
3215 \begin_layout Plain Layout
3216
3217 \family typewriter
3218 Underfull 
3219 \backslash
3220 hbox
3221 \end_layout
3222
3223 \end_inset
3224
3225
3226 \begin_inset Newline newline
3227 \end_inset
3228
3229
3230 \family roman
3231 \series medium
3232 \shape up
3233 \size normal
3234 \emph off
3235 \bar no
3236 \noun off
3237 \color none
3238 これは上の警告と違ってあまり出てきません.これも,
3239 \family default
3240 \series default
3241 \shape default
3242 \size default
3243 \emph default
3244 \bar default
3245 \noun default
3246 \color inherit
3247 \SpecialChar LaTeX
3248
3249 \family roman
3250 \series medium
3251 \shape up
3252 \size normal
3253 \emph off
3254 \bar no
3255 \noun off
3256 \color none
3257 が適切な改行方法を見つけられずに,間延びした行を生成せざるを得なかった時に起こります.overfull行と同様,外見上の問題がないかどうか確認してください.
3258 \end_layout
3259
3260 \begin_layout Itemize
3261 \begin_inset Flex Code
3262 status collapsed
3263
3264 \begin_layout Plain Layout
3265
3266 \family typewriter
3267 Overfull 
3268 \backslash
3269 vbox
3270 \end_layout
3271
3272 \end_inset
3273
3274
3275 \family typewriter
3276
3277 \begin_inset Flex Code
3278 status collapsed
3279
3280 \begin_layout Plain Layout
3281
3282 \family typewriter
3283 Underfull 
3284 \backslash
3285 vbox
3286 \end_layout
3287
3288 \end_inset
3289
3290
3291 \family default
3292
3293 \begin_inset Newline newline
3294 \end_inset
3295
3296
3297 \family roman
3298 \series medium
3299 \shape up
3300 \size normal
3301 \emph off
3302 \bar no
3303 \noun off
3304 \color none
3305 ページ区切りに問題があったという警告です.この場合も,出力を目で確認してください.何か問題があれば,見てすぐわかります.
3306 \end_layout
3307
3308 \begin_layout Itemize
3309
3310 \family typewriter
3311 \begin_inset Flex Code
3312 status collapsed
3313
3314 \begin_layout Plain Layout
3315
3316 \family typewriter
3317 LaTeX Error: File 
3318 \begin_inset Quotes els
3319 \end_inset
3320
3321 Xxxx
3322 \begin_inset Quotes ers
3323 \end_inset
3324
3325  not found
3326 \end_layout
3327
3328 \end_inset
3329
3330
3331 \family roman
3332 \series medium
3333 \shape up
3334 \size normal
3335 \emph off
3336 \bar no
3337 \noun off
3338 \color none
3339
3340 \begin_inset Newline newline
3341 \end_inset
3342
3343 ファイル「Xxxx」が,システムに導入されていません.これは通常,文書が必要としている\SpecialChar LaTeX
3344 パッケージに,導入済でないものがある場合に現れます.プリアンブルに変更を加
3345 えておらず,
3346 \begin_inset Flex Code
3347 status collapsed
3348
3349 \begin_layout Plain Layout
3350
3351 \family typewriter
3352
3353 \backslash
3354 usepackage{}
3355 \end_layout
3356
3357 \end_inset
3358
3359 コマンドも使用していないとすれば,\SpecialChar LyX
3360 が読み込もうしているパッケージに存在しないものがあるということです.
3361 \family default
3362 \series default
3363 \shape default
3364 \size default
3365 \emph default
3366 \bar default
3367 \noun default
3368 \color inherit
3369
3370 \begin_inset Flex MenuItem
3371 status collapsed
3372
3373 \begin_layout Plain Layout
3374 ヘルプ\SpecialChar menuseparator
3375 \SpecialChar LaTeX
3376 の設定
3377 \end_layout
3378
3379 \end_inset
3380
3381
3382 \family roman
3383 \series medium
3384 \shape up
3385 \size normal
3386 \emph off
3387 \bar no
3388 \noun off
3389 \color none
3390 を使用して,\SpecialChar LyX
3391 が認識しているパッケージの一覧を得てください.このファイルは,(
3392 \begin_inset Flex MenuItem
3393 status collapsed
3394
3395 \begin_layout Plain Layout
3396
3397 \family roman
3398 \series medium
3399 \shape up
3400 \size normal
3401 \emph off
3402 \bar no
3403 \noun off
3404 \color none
3405 ツール\SpecialChar menuseparator
3406 再設定
3407 \end_layout
3408
3409 \end_inset
3410
3411 を使用して)\SpecialChar LyX
3412 の再設定を行うたびに更新され,どのパッケージが検出されたか,それらのパッケージが何をするものかを表示します.
3413 \begin_inset Newline newline
3414 \end_inset
3415
3416
3417 \family sans
3418 \series default
3419 \shape default
3420 \size default
3421 \emph default
3422 \bar default
3423 \noun default
3424 \color inherit
3425
3426 \begin_inset Flex Code
3427 status collapsed
3428
3429 \begin_layout Plain Layout
3430
3431 \family sans
3432
3433 \backslash
3434 usepackage{}
3435 \end_layout
3436
3437 \end_inset
3438
3439
3440 \family roman
3441 \series medium
3442 \shape up
3443 \size normal
3444 \emph off
3445 \bar no
3446 \noun off
3447 \color none
3448 コマンドを使っていて,肝心のパッケージが導入されていない場合には,ご自身で導入する必要があります.
3449 \end_layout
3450
3451 \begin_layout Itemize
3452
3453 \family typewriter
3454 \begin_inset Flex Code
3455 status collapsed
3456
3457 \begin_layout Plain Layout
3458
3459 \family typewriter
3460 LaTeX Error: Unknown option
3461 \end_layout
3462
3463 \end_inset
3464
3465
3466 \family roman
3467 \series medium
3468 \shape up
3469 \size normal
3470 \emph off
3471 \bar no
3472 \noun off
3473 \color none
3474
3475 \begin_inset Newline newline
3476 \end_inset
3477
3478 このように始まるエラーメッセージは,パッケージに誤ったあるいは未定義のオプションが指定されていることを伝えようとするものです.パッケージの取扱説明書をご確認くだ
3479 さい.
3480 \end_layout
3481
3482 \begin_layout Itemize
3483
3484 \family typewriter
3485 \begin_inset Flex Code
3486 status collapsed
3487
3488 \begin_layout Plain Layout
3489
3490 \family typewriter
3491 Undefined control sequence
3492 \end_layout
3493
3494 \end_inset
3495
3496
3497 \family roman
3498 \series medium
3499 \shape up
3500 \size normal
3501 \emph off
3502 \bar no
3503 \noun off
3504 \color none
3505
3506 \begin_inset Newline newline
3507 \end_inset
3508
3509 お使いの文書に\SpecialChar LaTeX
3510 コードを挿入した際,打ち間違いをしてしまうと,このようなメッセージが表示されます.あるいは,パッケージを読み込ませるのを忘れたのかもしれません.い
3511 ずれにしても,このメッセージは,あなたが未定義のコマンドを使用したことを示しています.
3512 \end_layout
3513
3514 \begin_layout Standard
3515
3516 \family roman
3517 \series medium
3518 \shape up
3519 \size normal
3520 \emph off
3521 \bar no
3522 \noun off
3523 \color none
3524 これ以外にも,エラーメッセージや警告メッセージがあります.一般に,読んで意味がすぐにわかるものは,\SpecialChar LaTeX
3525 のメッセージです.何を言っているのかさっぱりわからないものもあ
3526 りますが,通常これらは,\SpecialChar TeX
3527 のメッセージであり,それが何を意味しているのか,どのように解読すればいいのか,
3528 \family default
3529 \series default
3530 \shape default
3531 \size default
3532 \emph on
3533 \bar default
3534 \noun default
3535 \color inherit
3536 まったく
3537 \family roman
3538 \series medium
3539 \shape up
3540 \size normal
3541 \emph off
3542 \bar no
3543 \noun off
3544 \color none
3545 手がかりがありません.誰もわからないのです.
3546 \end_layout
3547
3548 \begin_layout Standard
3549
3550 \family roman
3551 \series medium
3552 \shape up
3553 \size normal
3554 \emph off
3555 \bar no
3556 \noun off
3557 \color none
3558 エラーメッセージが表示された場合は,つねに以下のチェックリストにしたがった方がよいでしょう.
3559 \end_layout
3560
3561 \begin_layout Enumerate
3562
3563 \family roman
3564 \series medium
3565 \shape up
3566 \size normal
3567 \emph off
3568 \bar no
3569 \noun off
3570 \color none
3571 ご自分で挿入した\SpecialChar LaTeX
3572 コードに打ち間違いがないかどうか確かめる.
3573 \end_layout
3574
3575 \begin_layout Enumerate
3576
3577 \family roman
3578 \series medium
3579 \shape up
3580 \size normal
3581 \emph off
3582 \bar no
3583 \noun off
3584 \color none
3585 打ち間違いがなければ,コマンドを正しく使ったかどうか確かめる.
3586 \end_layout
3587
3588 \begin_layout Enumerate
3589
3590 \family roman
3591 \series medium
3592 \shape up
3593 \size normal
3594 \emph off
3595 \bar no
3596 \noun off
3597 \color none
3598 文書のもっともはじめの部分にエラーボックスが多数積み上がった場合には—特に
3599 \begin_inset Flex Code
3600 status collapsed
3601
3602 \begin_layout Plain Layout
3603
3604 \family roman
3605 \series medium
3606 \shape up
3607 \size normal
3608 \emph off
3609 \bar no
3610 \noun off
3611 \color none
3612 Missing 
3613 \backslash
3614 begin{document}
3615 \end_layout
3616
3617 \end_inset
3618
3619 が表示されているならば—,プリアンブルにエラーがあることを意味します.プリアンブルのデバックを行ってください.
3620 \end_layout
3621
3622 \begin_layout Enumerate
3623
3624 \family roman
3625 \series medium
3626 \shape up
3627 \size normal
3628 \emph off
3629 \bar no
3630 \noun off
3631 \color none
3632 プリアンブルに何も追加せず,文書に\SpecialChar LaTeX
3633 コードをまったく挿入しなかった場合には,\SpecialChar LaTeX
3634 頒布版自体をまず疑ってください.導入されていないパッケージを探しだして,導入してくださ
3635 い.
3636 \end_layout
3637
3638 \begin_layout Enumerate
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 導入されていないパッケージはなかったものとしましょう.\SpecialChar LyX
3649 を微調整するオプションを使用していますか.特に,手動で
3650 \begin_inset Flex Code
3651 status collapsed
3652
3653 \begin_layout Plain Layout
3654
3655 \family sans
3656 Protected
3657 \begin_inset space ~
3658 \end_inset
3659
3660 Blank
3661 \end_layout
3662
3663 \end_inset
3664
3665
3666 \begin_inset Flex Code
3667 status collapsed
3668
3669 \begin_layout Plain Layout
3670
3671 \family sans
3672 Linebreak
3673 \end_layout
3674
3675 \end_inset
3676
3677
3678 \family sans
3679 \series default
3680 \shape default
3681 \size default
3682 \emph default
3683 \bar default
3684 \noun default
3685 \color inherit
3686
3687 \begin_inset Flex Code
3688 status collapsed
3689
3690 \begin_layout Plain Layout
3691
3692 \family sans
3693 Pagebreak
3694 \end_layout
3695
3696 \end_inset
3697
3698
3699 \family roman
3700 \series medium
3701 \shape up
3702 \size normal
3703 \emph off
3704 \bar no
3705 \noun off
3706 \color none
3707 などをたくさん挿入するなど,微調整オプションを
3708 \family default
3709 \series default
3710 \shape default
3711 \size default
3712 \emph on
3713 \bar default
3714 \noun default
3715 \color inherit
3716 悪用
3717 \family roman
3718 \series medium
3719 \shape up
3720 \size normal
3721 \emph off
3722 \bar no
3723 \noun off
3724 \color none
3725 していませんか.適切な段落環境を使用する代わりに,これらを使用してその場をしのごうとしていませんか.
3726 \end_layout
3727
3728 \begin_layout Enumerate
3729
3730 \family roman
3731 \series medium
3732 \shape up
3733 \size normal
3734 \emph off
3735 \bar no
3736 \noun off
3737 \color none
3738 微調整オプションはまったく使用しておらず,規則に乗っ取って作業していたものとしましょう.何か曲芸のようなことをしようとはしていませんか.数式や表中で,たとえば表
3739 のセルに図を入れるなど,おかしなことをしようとしていませんか.
3740 \end_layout
3741
3742 \begin_layout Enumerate
3743 \SpecialChar LaTeX
3744 が改行位置を見つけられないほど長い一節がありませんか.既定では,改行するために単語間に空白をたくさん追加することを,\SpecialChar LaTeX
3745 はかなり嫌います.可能であれば,問題が生じな
3746 いように段落を修正するのが望ましいでしょう.
3747 \end_layout
3748
3749 \begin_layout Enumerate
3750
3751 \family roman
3752 \series medium
3753 \shape up
3754 \size normal
3755 \emph off
3756 \bar no
3757 \noun off
3758 \color none
3759 入れ子の階層を深くしすぎていませんか.\SpecialChar LyX
3760 は,(今のところ)環境の入れ子の階層が制限内にあるかチェックしません.かりに,環境を17段の入れ子にしたりしていたら,それ
3761 が原因です(\SpecialChar LaTeX
3762 の上限は5段です).
3763 \end_layout
3764
3765 \begin_layout Enumerate
3766
3767 \family roman
3768 \series medium
3769 \shape up
3770 \size normal
3771 \emph off
3772 \bar no
3773 \noun off
3774 \color none
3775 エラーメッセージは発生しないけれども,出力がひどいものとしましょう.図表が幅が広すぎたり長すぎてページに収まらない場合には,
3776 \end_layout
3777
3778 \begin_deeper
3779 \begin_layout Enumerate
3780
3781 \family roman
3782 \series medium
3783 \shape up
3784 \size normal
3785 \emph off
3786 \bar no
3787 \noun off
3788 \color none
3789 図がページに合うように大きさを変える,
3790 \end_layout
3791
3792 \begin_layout Enumerate
3793
3794 \family roman
3795 \series medium
3796 \shape up
3797 \size normal
3798 \emph off
3799 \bar no
3800 \noun off
3801 \color none
3802 表がページに合うように削る,
3803 \end_layout
3804
3805 \begin_layout Standard
3806
3807 \family roman
3808 \series medium
3809 \shape up
3810 \size normal
3811 \emph off
3812 \bar no
3813 \noun off
3814 \color none
3815 などの手段を採る必要があります.
3816 \end_layout
3817
3818 \end_deeper
3819 \begin_layout Enumerate
3820 他に出力におかしいところがあり,曲芸をやろうとしたり微調整オプションでしのごうとしたりはしていないとすれば,何がおかしいのか確定的なことは言えません.
3821 \end_layout
3822
3823 \begin_layout Standard
3824
3825 \family roman
3826 \series medium
3827 \shape up
3828 \size normal
3829 \emph off
3830 \bar no
3831 \noun off
3832 \color none
3833 これらすべてが役に立たないとすれば,
3834 \family default
3835 \series default
3836 \shape default
3837 \size default
3838 \emph on
3839 \bar default
3840 \noun default
3841 \color inherit
3842 ひょっとしたら
3843 \family roman
3844 \series medium
3845 \shape up
3846 \size normal
3847 \emph off
3848 \bar no
3849 \noun off
3850 \color none
3851 \SpecialChar LyX
3852 のバグを発見したのかもしれません‥‥.
3853 \end_layout
3854
3855 \begin_layout Chapter
3856 補完ツール
3857 \end_layout
3858
3859 \begin_layout Section
3860 Bib\SpecialChar TeX
3861 あるいはBiblatexによる書誌情報のカスタマイズ
3862 \end_layout
3863
3864 \begin_layout Standard
3865 Bib\SpecialChar TeX
3866 あるいは
3867 \family sans
3868 Biblatex
3869 \family default
3870 の基本的な使用法は,『
3871 \emph on
3872 ユーザーの手引き
3873 \emph default
3874 』の「
3875 \emph on
3876 文献データベース
3877 \emph default
3878 」の節に説明があります.以下の各小節では,\SpecialChar LyX
3879 でサポートされている書誌情報の特別な機能について説明することとします.
3880 \end_layout
3881
3882 \begin_layout Subsection
3883 他の引用様式
3884 \end_layout
3885
3886 \begin_layout Standard
3887 標準のBib\SpecialChar TeX
3888 は,引用された著作を参照するのに,([12]のように)数字を使用します.しかし,多くの科学分野で,これとは異なる引用様式が用いられています.もっとも
3889 よく見られるのは,著者-出版年様式(例:Knuth 1984a)です.\SpecialChar LyX
3890 は,この様式を提供する3つのパッケージ
3891 \begin_inset Flex Code
3892 status collapsed
3893
3894 \begin_layout Plain Layout
3895 biblatex
3896 \end_layout
3897
3898 \end_inset
3899
3900
3901 \begin_inset Flex Code
3902 status collapsed
3903
3904 \begin_layout Plain Layout
3905 natbib
3906 \end_layout
3907
3908 \end_inset
3909
3910
3911 \begin_inset Flex Code
3912 status collapsed
3913
3914 \begin_layout Plain Layout
3915 jurabib
3916 \end_layout
3917
3918 \end_inset
3919
3920 をサポートしています.これらのパッケージには,それぞれ長所短所がありますが,ここでは詳細に立ち入る紙幅がありません.単純な著者-出版年様式(あるいは著者-番号)
3921 様式が欲しい場合や,無数にある
3922 \begin_inset Flex Code
3923 status collapsed
3924
3925 \begin_layout Plain Layout
3926 natbib
3927 \end_layout
3928
3929 \end_inset
3930
3931 用スタイルファイルのうちどれかを使用したい場合には,定評のある
3932 \begin_inset Flex Code
3933 status collapsed
3934
3935 \begin_layout Plain Layout
3936 natbib
3937 \end_layout
3938
3939 \end_inset
3940
3941 パッケージがおそらくよい選択でしょう.法学でよく用いられる引用様式を探している場合には,
3942 \begin_inset Flex Code
3943 status collapsed
3944
3945 \begin_layout Plain Layout
3946 jurabib
3947 \end_layout
3948
3949 \end_inset
3950
3951 パッケージの利用を考えるとよいかもしれません.整形を完全に制御したい場合や,ibidem・脚註引用・タイトル全引用・400 BCなどの)複雑な日時形式・英語以外
3952 への完全な現地語化のような複雑な機能を使用したい場合には,機能面で他のパッケージを凌駕している
3953 \begin_inset Flex Code
3954 status collapsed
3955
3956 \begin_layout Plain Layout
3957 biblatex
3958 \end_layout
3959
3960 \end_inset
3961
3962 をぜひとも考えるべきでしょう.ただし,同時に
3963 \begin_inset Flex Code
3964 status collapsed
3965
3966 \begin_layout Plain Layout
3967 biblatex
3968 \end_layout
3969
3970 \end_inset
3971
3972 はたいへん重く,リソース消費量も多いことに注意してください.
3973 \end_layout
3974
3975 \begin_layout Standard
3976 \SpecialChar LyX
3977 での各パッケージの取扱い方は,ほぼ同じです.
3978 \begin_inset Flex MenuItem
3979 status collapsed
3980
3981 \begin_layout Plain Layout
3982 文書\SpecialChar menuseparator
3983 設定
3984 \end_layout
3985
3986 \end_inset
3987
3988 メニューを開き,
3989 \begin_inset Flex MenuItem
3990 status collapsed
3991
3992 \begin_layout Plain Layout
3993 書誌情報
3994 \end_layout
3995
3996 \end_inset
3997
3998 項目から
3999 \begin_inset Flex Noun
4000 status collapsed
4001
4002 \begin_layout Plain Layout
4003 Biblatex
4004 \end_layout
4005
4006 \end_inset
4007
4008
4009 \begin_inset Flex Noun
4010 status collapsed
4011
4012 \begin_layout Plain Layout
4013 Biblatex (Natbibモード)
4014 \end_layout
4015
4016 \end_inset
4017
4018
4019 \begin_inset Flex Noun
4020 status collapsed
4021
4022 \begin_layout Plain Layout
4023 Natbib (BibTeX)
4024 \end_layout
4025
4026 \end_inset
4027
4028
4029 \begin_inset Flex Noun
4030 status collapsed
4031
4032 \begin_layout Plain Layout
4033 Jurabib (BibTeX)
4034 \end_layout
4035
4036 \end_inset
4037
4038 のいずれかを選択してください(各選択肢についての詳細は,ユーザーの手引きの第6.5.3節を参照のこと).これらのパッケージによって,引用ダイアログに機能が追加され,
4039 参照の様式が選択できるようになります(「Knuth 1984」,「Knuth (1984)」,「Knuth, 1984」,「1984」など).各パッケージは,専
4040 用にデザインされたスタイルファイルを必要とすることに注意してください.これらは全てそれ自身のスタイルファイルを同梱していますが,他にもたくさんの追加されたスタイ
4041 ルファイルがありますし,
4042 \begin_inset Flex Code
4043 status collapsed
4044
4045 \begin_layout Plain Layout
4046 natbib
4047 \end_layout
4048
4049 \end_inset
4050
4051 に至っては,対話的なスタイルファイルビルダーさえ存在します
4052 \begin_inset Foot
4053 status collapsed
4054
4055 \begin_layout Plain Layout
4056 \begin_inset Flex URL
4057 status open
4058
4059 \begin_layout Plain Layout
4060
4061 ftp://ctan.tug.org/tex-archive/macros/latex/contrib/custom-bib/
4062 \end_layout
4063
4064 \end_inset
4065
4066 をご参照ください.
4067 \end_layout
4068
4069 \end_inset
4070
4071
4072 \end_layout
4073
4074 \begin_layout Subsection
4075 区分された書誌情報
4076 \end_layout
4077
4078 \begin_layout Standard
4079 場合によっては,書誌情報をいくつかの節に分ける必要があることがあります.たとえば,あなたが歴史家であるとすれば,出典と学術文献を分ける機能は,おそらく「必需品」
4080 でさえあります.残念ながら,Bib\SpecialChar TeX
4081 自身ではこのようなことができません.しかし,適切な\SpecialChar LaTeX
4082 パッケージの助けを借りると,Bib\SpecialChar TeX
4083 をこのような必要性を満たすように拡張するこ
4084 とができます.
4085 \end_layout
4086
4087 \begin_layout Standard
4088 \SpecialChar LyX
4089 は,このようなパッケージの一つである
4090 \begin_inset Flex Code
4091 status collapsed
4092
4093 \begin_layout Plain Layout
4094 bibtopic
4095 \end_layout
4096
4097 \end_inset
4098
4099
4100 \begin_inset Foot
4101 status collapsed
4102
4103 \begin_layout Plain Layout
4104 \begin_inset Flex URL
4105 status open
4106
4107 \begin_layout Plain Layout
4108
4109 ftp://ctan.tug.org/tex-archive/macros/latex/contrib/bibtopic/
4110 \end_layout
4111
4112 \end_inset
4113
4114 から入手可能です.
4115 \end_layout
4116
4117 \end_inset
4118
4119 をそのままでサポートします.このパッケージの長所は,(
4120 \begin_inset Flex Code
4121 status collapsed
4122
4123 \begin_layout Plain Layout
4124 multibib
4125 \end_layout
4126
4127 \end_inset
4128
4129 のような他のパッケージと比較すると)新規の引用コマンドを定義する必要がないことです.そのかわりに,書誌情報の違う節には,その節向けの項目を収録した別の文献データ
4130 ベースを用意する必要があります.たとえば,書誌情報を「出典」の節と「学術文献」の節に分けたい場合には,それぞれの文献データベース,たとえば
4131 \begin_inset Flex Code
4132 status collapsed
4133
4134 \begin_layout Plain Layout
4135 souces.bib
4136 \end_layout
4137
4138 \end_inset
4139
4140
4141 \begin_inset Flex Code
4142 status collapsed
4143
4144 \begin_layout Plain Layout
4145 scientific.bib
4146 \end_layout
4147
4148 \end_inset
4149
4150 とを作成する必要があります.
4151 \end_layout
4152
4153 \begin_layout Standard
4154 \begin_inset Flex MenuItem
4155 status collapsed
4156
4157 \begin_layout Plain Layout
4158 文書\SpecialChar menuseparator
4159 設定
4160 \end_layout
4161
4162 \end_inset
4163
4164 を開いて
4165 \begin_inset Flex MenuItem
4166 status collapsed
4167
4168 \begin_layout Plain Layout
4169 書誌情報
4170 \end_layout
4171
4172 \end_inset
4173
4174 の下の
4175 \begin_inset Flex MenuItem
4176 status collapsed
4177
4178 \begin_layout Plain Layout
4179 区分された書誌情報
4180 \end_layout
4181
4182 \end_inset
4183
4184 をチェックしてください.すると,書誌情報の各節に一つずつ,複数の書誌情報を挿入することができます.上記の例では,Bib\SpecialChar TeX
4185 書誌情報
4186 \begin_inset Flex Code
4187 status collapsed
4188
4189 \begin_layout Plain Layout
4190 sources.bib
4191 \end_layout
4192
4193 \end_inset
4194
4195 と二つめの文献データベース
4196 \begin_inset Flex Code
4197 status collapsed
4198
4199 \begin_layout Plain Layout
4200 scientific.bib
4201 \end_layout
4202
4203 \end_inset
4204
4205 を挿入します.各節に同じスタイルを用いるか異なるスタイルを用いるかは自由です.くわえて,書誌情報の節に,指定したデータベースの「引用されたすべての参照」を載せる
4206 (これが既定です)か,「引用されなかったすべての参照」を載せるか,あるいは「すべての参照」を載せるかを選択することができます.これは,もし書誌情報を「本文に引用
4207 された出典」・「本文に引用されていない出典」・「学術文献」の三つの節に分割したい場合に,便利でありましょう.各節の見出しは,通常の節や小節として入れることができ
4208 ます.
4209 \begin_inset Flex Code
4210 status collapsed
4211
4212 \begin_layout Plain Layout
4213 bibtopic
4214 \end_layout
4215
4216 \end_inset
4217
4218 は,書誌情報用の見出しを取り除いてしまいますので,手動でこれを追加しなくてはなりません(たとえば章*や節*などをお使いください).
4219 \end_layout
4220
4221 \begin_layout Standard
4222
4223 \family sans
4224 Biblatex
4225 \family default
4226 の場合には,手順が多少異なります.
4227 \family typewriter
4228 bibtopic
4229 \family default
4230
4231 \family sans
4232 Biblatex
4233 \family default
4234 では動作しませんので,
4235 \family sans
4236 Biblatex
4237 \family default
4238 使用中は前述の
4239 \begin_inset Flex Noun
4240 status collapsed
4241
4242 \begin_layout Plain Layout
4243 区分された書誌情報
4244 \end_layout
4245
4246 \end_inset
4247
4248 オプションは無効になります.しかしながら,
4249 \family sans
4250 Biblatex
4251 \family default
4252 は区分された書誌情報を生成する独自の方法を提供しています.書誌情報項目の
4253 \begin_inset Flex Code
4254 status collapsed
4255
4256 \begin_layout Plain Layout
4257 keywords
4258 \end_layout
4259
4260 \end_inset
4261
4262 項目オプションにキーワードを書き込み,書誌情報セクションをキーワードでフィルターに掛けることもできますし(
4263 \begin_inset Flex Noun
4264 status collapsed
4265
4266 \begin_layout Plain Layout
4267 Biblatexが生成した書誌情報
4268 \end_layout
4269
4270 \end_inset
4271
4272 ボタンを右クリックすると開くダイアログで,
4273 \begin_inset Flex Noun
4274 status collapsed
4275
4276 \begin_layout Plain Layout
4277 オプション
4278 \end_layout
4279
4280 \end_inset
4281
4282 フィールドに
4283 \begin_inset Flex Code
4284 status collapsed
4285
4286 \begin_layout Plain Layout
4287 keyword=指定キーワード
4288 \end_layout
4289
4290 \end_inset
4291
4292 と書き込みます),あるいは,上述の
4293 \begin_inset Flex Noun
4294 status collapsed
4295
4296 \begin_layout Plain Layout
4297 オプション
4298 \end_layout
4299
4300 \end_inset
4301
4302 フィールドに,例えば
4303 \begin_inset Flex Code
4304 status collapsed
4305
4306 \begin_layout Plain Layout
4307 type=book
4308 \end_layout
4309
4310 \end_inset
4311
4312
4313 \begin_inset Flex Code
4314 status collapsed
4315
4316 \begin_layout Plain Layout
4317 nottype=collection
4318 \end_layout
4319
4320 \end_inset
4321
4322 と入力することで,(
4323 \emph on
4324 book
4325 \emph default
4326
4327 \emph on
4328 article
4329 \emph default
4330 などの)項目型によりフィルターを掛けることもできます.あるいは,各項目を割り当てるための,いわゆる「書誌情報カテゴリ」を作ることもできます.詳細については,Bi
4331 blatex取扱説明書の
4332 \emph on
4333 区分された書誌情報
4334 \emph default
4335 の節をご参照ください.
4336 \end_layout
4337
4338 \begin_layout Subsection
4339 複数の書誌情報
4340 \begin_inset CommandInset label
4341 LatexCommand label
4342 name "subsec:複数の書誌情報"
4343
4344 \end_inset
4345
4346
4347 \end_layout
4348
4349 \begin_layout Standard
4350 各部・章・節・小節・子文書ごとの書誌情報など,複数の書誌情報も\SpecialChar LyX
4351 ではサポートされています.これを有効にするためには,
4352 \begin_inset Flex Noun
4353 status collapsed
4354
4355 \begin_layout Plain Layout
4356 文書\SpecialChar menuseparator
4357 設定\SpecialChar menuseparator
4358 書誌情報
4359 \end_layout
4360
4361 \end_inset
4362
4363 を開き,
4364 \begin_inset Flex Noun
4365 status collapsed
4366
4367 \begin_layout Plain Layout
4368 複数の書誌情報
4369 \end_layout
4370
4371 \end_inset
4372
4373 コンボボックスで必要な単位(「節毎」など)を選択してください.それから,執筆中文書の(節などの)各単位に,Bib(la)\SpecialChar TeX
4374 書誌情報を加えてください.出力時に,現在
4375 の単位に含まれる文献参照のみが含まれた,分割された書誌情報が生成されます.
4376 \end_layout
4377
4378 \begin_layout Standard
4379 Bib\SpecialChar TeX
4380 を使用する場合には,複数の書誌情報を生成するのに,
4381 \begin_inset Flex Code
4382 status collapsed
4383
4384 \begin_layout Plain Layout
4385 chapterbib
4386 \end_layout
4387
4388 \end_inset
4389
4390 パッケージか
4391 \begin_inset Flex Code
4392 status collapsed
4393
4394 \begin_layout Plain Layout
4395 bibtopic
4396 \end_layout
4397
4398 \end_inset
4399
4400 パッケージが使用されます.「子文書毎」を選択し,
4401 \begin_inset Flex Noun
4402 status collapsed
4403
4404 \begin_layout Plain Layout
4405 区分された書誌情報
4406 \end_layout
4407
4408 \end_inset
4409
4410 にチェックを入れ
4411 \emph on
4412 ない
4413 \emph default
4414 場合には,前者のパッケージが使用されますが,その他の場合には,すべて
4415 \begin_inset Flex Code
4416 status collapsed
4417
4418 \begin_layout Plain Layout
4419 bibtopic
4420 \end_layout
4421
4422 \end_inset
4423
4424 パッケージが使用されます
4425 \begin_inset Foot
4426 status collapsed
4427
4428 \begin_layout Plain Layout
4429 別のアプローチとして,もし
4430 \begin_inset Flex Noun
4431 status collapsed
4432
4433 \begin_layout Plain Layout
4434 \SpecialChar TeX
4435 コード
4436 \end_layout
4437
4438 \end_inset
4439
4440 を使っても良いという気があるならば(第
4441 \begin_inset CommandInset ref
4442 LatexCommand ref
4443 reference "sec:TeXコードを挿入する"
4444 plural "false"
4445 caps "false"
4446 noprefix "false"
4447
4448 \end_inset
4449
4450 節参照),
4451 \begin_inset Flex Code
4452 status collapsed
4453
4454 \begin_layout Plain Layout
4455 bibunits
4456 \end_layout
4457
4458 \end_inset
4459
4460 パッケージを使用する方法があります.
4461 \end_layout
4462
4463 \end_inset
4464
4465
4466 \begin_inset Flex Code
4467 status collapsed
4468
4469 \begin_layout Plain Layout
4470 bibtopic
4471 \end_layout
4472
4473 \end_inset
4474
4475 パッケージが使用される場合,\SpecialChar LyX
4476 は特定の単位を生成するために,その単位を
4477 \begin_inset Flex Code
4478 status collapsed
4479
4480 \begin_layout Plain Layout
4481 bibtopic
4482 \end_layout
4483
4484 \end_inset
4485
4486
4487 \begin_inset Flex Code
4488 status collapsed
4489
4490 \begin_layout Plain Layout
4491
4492 \backslash
4493 begin{btUnit}
4494 \end_layout
4495
4496 \end_inset
4497
4498
4499 \begin_inset Flex Code
4500 status collapsed
4501
4502 \begin_layout Plain Layout
4503
4504 \backslash
4505 end{btUnit}
4506 \end_layout
4507
4508 \end_inset
4509
4510 で囲みます.このアプローチには,いくつかの制限があることに注意してください.まず,全ての文献参照はいずれかの
4511 \begin_inset Flex Code
4512 status collapsed
4513
4514 \begin_layout Plain Layout
4515 btUnit
4516 \end_layout
4517
4518 \end_inset
4519
4520 の中になくてはなりません.そのため,定義された単位の外にある引用(たとえば「節毎」を使用した場合の,第1節の前)は,「???」と表示されてしまいます.(このよう
4521 な制限を回避するなどのため)
4522 \begin_inset Flex Code
4523 status collapsed
4524
4525 \begin_layout Plain Layout
4526
4527 \backslash
4528 begin{btUnit}
4529 \end_layout
4530
4531 \end_inset
4532
4533
4534 \begin_inset Flex Code
4535 status collapsed
4536
4537 \begin_layout Plain Layout
4538
4539 \backslash
4540 end{btUnit}
4541 \end_layout
4542
4543 \end_inset
4544
4545 を\SpecialChar TeX
4546 コードで入力して,自前の単位を生成することもできます.ただし,
4547 \begin_inset Flex Code
4548 status collapsed
4549
4550 \begin_layout Plain Layout
4551 btUnit
4552 \end_layout
4553
4554 \end_inset
4555
4556 は入れ子にすることができないことに注意してください.第二の制限は,
4557 \begin_inset Flex Code
4558 status collapsed
4559
4560 \begin_layout Plain Layout
4561 bibtopic
4562 \end_layout
4563
4564 \end_inset
4565
4566 は,引用のないものも含めて,つねに書誌情報データベースの参照すべてを保持してしまうということです.これにより奇妙なラベルが付されることがあります(例えば,データ
4567 ベース中にMillerという著者の2014年の著作が2つあり,その1つだけが引用されている場合,ラベルは「Miller 2014b」などとなってしまいます).
4568 \end_layout
4569
4570 \begin_layout Standard
4571
4572 \family sans
4573 Biblatex
4574 \family default
4575 を使用する場合には,
4576 \begin_inset Flex Code
4577 status collapsed
4578
4579 \begin_layout Plain Layout
4580 refsection
4581 \end_layout
4582
4583 \end_inset
4584
4585 オプションが代わりに使用されます.特定の単位が必要な時には,それらの開始時に\SpecialChar TeX
4586 コードで
4587 \begin_inset Flex Code
4588 status collapsed
4589
4590 \begin_layout Plain Layout
4591
4592 \backslash
4593 newrefsection
4594 \end_layout
4595
4596 \end_inset
4597
4598 または
4599 \begin_inset Flex Code
4600 status collapsed
4601
4602 \begin_layout Plain Layout
4603
4604 \backslash
4605 newrefsegment
4606 \end_layout
4607
4608 \end_inset
4609
4610 と書きます.単位の終了箇所も制御したい場合には,代わりに
4611 \begin_inset Flex Code
4612 status collapsed
4613
4614 \begin_layout Plain Layout
4615
4616 \backslash
4617 begin{refsection}
4618 \end_layout
4619
4620 \end_inset
4621
4622  \SpecialChar ldots
4623  
4624 \begin_inset Flex Code
4625 status collapsed
4626
4627 \begin_layout Plain Layout
4628
4629 \backslash
4630 end{refsection}
4631 \end_layout
4632
4633 \end_inset
4634
4635 環境を使ってください.ただし,
4636 \begin_inset Flex Code
4637 status collapsed
4638
4639 \begin_layout Plain Layout
4640 refsection
4641 \end_layout
4642
4643 \end_inset
4644
4645 関連は入れ子にできないことに注意してください.現行単位毎の書誌情報に加えて,
4646 \family sans
4647 Biblatex
4648 \family default
4649 はすべての書誌情報を,後で一箇所(例えば文末)に出力する簡単な方法も提供しています.そのためには,Bib(la)TeX差込枠ダイアログの内容コンボボックスで「文
4650 献参照単位全て」を選択してください.この話題についての詳細は,
4651 \family sans
4652 Biblatex
4653 \family default
4654 の取扱説明書を参照してください.
4655 \end_layout
4656
4657 \begin_layout Section
4658 複合文書
4659 \end_layout
4660
4661 \begin_layout Subsection
4662 一般的な操作
4663 \end_layout
4664
4665 \begin_layout Standard
4666 たくさんの節を含んだ大きなファイルで作業をする場合,文書をいくつかのファイルに分割した方が往々にして便利ですし,場合によっては,表部分にはしょっちゅう変更が加え
4667 られるけれども,その前の文章はつねに同じであるようなケースもあるでしょう.このような場合には,複合文書を利用することを,まずご検討ください.たとえば,科学論文は
4668 通常,導入部・所見・結果・議論・結論の五つの節から成ります.これら各節を別々の\SpecialChar LyX
4669 ファイルにして,タイトル・著者・概要・書誌情報等と,これら五つのインクルード
4670 \begin_inset Foot
4671 status collapsed
4672
4673 \begin_layout Plain Layout
4674
4675 \series bold
4676 (訳註)
4677 \series default
4678 「取り込む」の意です.原語「include」に対する訳語として,プログラミング用語の「インクルードする」以外に適語がないので,ここではプログラミング用語をそのま
4679 ま使用します.
4680 \end_layout
4681
4682 \end_inset
4683
4684 ファイルを持つ,もう一つ別の「マスター」ファイルを作成するようにすることができます.これらの各ファイルは,単にマスターファイルにインクルードされるだけでなく,単
4685 独でも出力したり印刷したりすることのできる完全な\SpecialChar LyX
4686 ファイルであるように注意することが重要です.しかも,これらの各ファイルは,同じ文書クラスでなくてはなりません.a
4687 rticleクラスとbookクラスを混在させるようなことはなさらないでください.\SpecialChar LaTeX
4688 ファイルをインクルードすることもできますが,このファイルにはプリアンブルがあって
4689 はなりません(
4690 \begin_inset Flex Code
4691 status collapsed
4692
4693 \begin_layout Plain Layout
4694
4695 \backslash
4696 begin{document}
4697 \end_layout
4698
4699 \end_inset
4700
4701 行とその前のすべて,および
4702 \begin_inset Flex Code
4703 status collapsed
4704
4705 \begin_layout Plain Layout
4706
4707 \backslash
4708 end{document}行
4709 \end_layout
4710
4711 \end_inset
4712
4713 は削除しておかなければなりません).さもないと,DVIファイルを作成する際にエラーが発生するでしょう.
4714 \end_layout
4715
4716 \begin_layout Standard
4717 \SpecialChar LyX
4718 では,
4719 \family sans
4720 挿入\SpecialChar menuseparator
4721 ファイル\SpecialChar menuseparator
4722 子文書
4723 \family default
4724 で簡単にファイルをインクルードすることができます.このメニューを選んでクリックすると,カーソルの現在位置に小さな枠が挿入されます.この枠をクリックすると,ダイア
4725 ログが現れるので,そこでインクルードするファイルとインクルード方法を選択することができます.
4726 \end_layout
4727
4728 \begin_layout Standard
4729 ファイル選択ボックスは,いまや自明でしょう.インクルード方法には,「include」・「input」・「verbatim」の三つがあります.「include」と
4730 「input」は多くの点で類似していますが,いくつかの大きな違いがあります.
4731 \end_layout
4732
4733 \begin_layout Enumerate
4734 「include」されたファイルは新規頁から組版されるのに対し,「input」されたファイルは現在のページから組版されます.
4735 \end_layout
4736
4737 \begin_layout Enumerate
4738 「include」されたファイルは,それら自身がさらに他のファイル(「孫ファイル」)を「include」することはできません.一方で,「input」は無限に下層
4739 inputを持つことができます.
4740 \end_layout
4741
4742 \begin_layout Enumerate
4743 「include」は選ばれた「include」ファイルの出力しか許しませんが,実際の(ページ割りなどの)カウンタや参照は保持されます(詳細については埋込オブジェ
4744 クト説明書の子文書の節を参照のこと).したがって,子文書にアウトソースされた章については「include」が好まれる方式ですが,任意のファイル継承がある場合には
4745 「input」の方が良いでしょう.
4746 \end_layout
4747
4748 \begin_layout Standard
4749 「verbatim」インクルードファイルでは,ファイルの内容がそのまま(つまり「
4750 \begin_inset Flex Code
4751 status collapsed
4752
4753 \begin_layout Plain Layout
4754 verbatim
4755 \end_layout
4756
4757 \end_inset
4758
4759 」モードで)固定幅タイプライタフォントで組版されます.通常,このファイルの空白は,通常の\SpecialChar LyX
4760 での空白の取扱いとは違って,連続した複数の空白がそのまま出力されるものの
4761 ,単なる見えない空白です.ただし,
4762 \family sans
4763
4764 \begin_inset Flex MenuItem
4765 status collapsed
4766
4767 \begin_layout Plain Layout
4768
4769 \family sans
4770 出力の空白に印付けをする
4771 \end_layout
4772
4773 \end_inset
4774
4775
4776 \family default
4777 チェックボックスを有効にすると,空白が存在することを明確にするために空白の印が出力されます.
4778 \end_layout
4779
4780 \begin_layout Standard
4781 一般的に,親ファイルは,組版前に完全な\SpecialChar LaTeX
4782 ファイルに変換されますが,インクルードされるファイルはプリアンブル情報を全く持たない\SpecialChar LaTeX
4783 ファイルに変換されます.
4784 \end_layout
4785
4786 \begin_layout Subsection
4787 ファイル間の相互参照
4788 \end_layout
4789
4790 \begin_layout Standard
4791 \begin_inset Box Shadowbox
4792 position "t"
4793 hor_pos "c"
4794 has_inner_box 1
4795 inner_pos "t"
4796 use_parbox 0
4797 use_makebox 0
4798 width "100col%"
4799 special "none"
4800 height "1in"
4801 height_special "totalheight"
4802 thickness "0.4pt"
4803 separation "3pt"
4804 shadowsize "4pt"
4805 framecolor "black"
4806 backgroundcolor "none"
4807 status open
4808
4809 \begin_layout Plain Layout
4810 この節の内容は,すでに古くなっています.既定のマスター文書についてと,マスターが開いているときに子文書をどう開くかについて記述する必要があります.[[要修正]]
4811 \end_layout
4812
4813 \end_inset
4814
4815
4816 \end_layout
4817
4818 \begin_layout Standard
4819 異なるファイル間に相互参照を設定することも可能です.まず,すべての関係するファイルを開いてください.例として,2つのファイルを扱う場合を考え,各ファイルをA・B
4820 と呼びます.BがAにインクルードされるファイルだとします.Aにラベルを入れて,Bで参照したいとしましょう.文書Bで相互参照ダイアログを開いて,使用する「バッファ
4821 」を選んでください.
4822 \end_layout
4823
4824 \begin_layout Subsection
4825 すべての子文書での書誌情報
4826 \end_layout
4827
4828 \begin_layout Standard
4829 子文書を使って作業する場合,全体の書誌情報を文末に一つだけ置きたいのだけれども,子文書単独で出力する時に限り,子文書分を抽出した書誌情報が付けられるようにしたい
4830 ことがあります.以下にその方法を説明します.
4831 \end_layout
4832
4833 \begin_layout Standard
4834 親文書には,全体の書誌情報が出力されるべき場所(親ファイルでも子ファイルでも)に,書誌情報差込枠を挿入するだけです.書誌情報差込枠を親ファイルに置いた場合,文献
4835 参照はすべての子文書に継承されるので,各子文書の引用ダイアログで使用できるようになります.
4836 \end_layout
4837
4838 \begin_layout Standard
4839 子文書限定の書誌情報については,子文書内の,子文書が独立にコンパイルされた時に書誌情報が出力されるべき場所に,書誌情報差込枠を挿入します.その際,この差込枠を,
4840 たとえば「子文書のみ」などと名付けた派生枝の中に置く(
4841 \family sans
4842 挿入\SpecialChar menuseparator
4843 派生枝\SpecialChar menuseparator
4844 新規派生枝を挿入...
4845 \family default
4846 )のが肝要です.そして,子文書の中でこの派生枝を有効にし(
4847 \family sans
4848 文書\SpecialChar menuseparator
4849 設定...\SpecialChar menuseparator
4850 派生枝
4851 \family default
4852 ),親文書で無効にします(
4853 \family sans
4854 文書\SpecialChar menuseparator
4855 設定...\SpecialChar menuseparator
4856 派生枝
4857 \family default
4858 ).こうすることで,子文書中の書誌情報は,親文書中では無視され,子文書中では有効になります.
4859 \end_layout
4860
4861 \begin_layout Standard
4862 複数の書誌情報が必要な場合(親文書中でも子文書ごとに書誌情報を出力するなど)は,第
4863 \begin_inset CommandInset ref
4864 LatexCommand ref
4865 reference "subsec:複数の書誌情報"
4866 plural "false"
4867 caps "false"
4868 noprefix "false"
4869
4870 \end_inset
4871
4872 節を参照してください.
4873 \end_layout
4874
4875 \begin_layout Section
4876 \SpecialChar LyX
4877 書庫
4878 \end_layout
4879
4880 \begin_layout Standard
4881 しばしばユーザーは,出版社に送ったり,共著者とやりとりするために,\SpecialChar LyX
4882 ファイルを,その依存する全画像(及び他のファイル)と「同梱」する必要に迫られることがあります.\SpecialChar LyX
4883
4884  2.0には,この過程を自動化するPythonスクリプト(
4885 \begin_inset Flex Code
4886 status collapsed
4887
4888 \begin_layout Plain Layout
4889 lyxpak.py
4890 \end_layout
4891
4892 \end_inset
4893
4894 )が含まれています.これを使うには,
4895 \begin_inset Flex Code
4896 status collapsed
4897
4898 \begin_layout Plain Layout
4899 zipfile
4900 \end_layout
4901
4902 \end_inset
4903
4904  pythonモジュールまたは
4905 \begin_inset Flex Code
4906 status collapsed
4907
4908 \begin_layout Plain Layout
4909 tarfile
4910 \end_layout
4911
4912 \end_inset
4913
4914  pythonモジュールが,システムに導入済みであることが必要です.既定設定では,Unix系システムでは,
4915 \begin_inset Flex Code
4916 status collapsed
4917
4918 \begin_layout Plain Layout
4919 gzip
4920 \end_layout
4921
4922 \end_inset
4923
4924 圧縮
4925 \begin_inset Flex Code
4926 status collapsed
4927
4928 \begin_layout Plain Layout
4929 tar
4930 \end_layout
4931
4932 \end_inset
4933
4934 ファイル形式が優先され,Windowsでは
4935 \begin_inset Flex Code
4936 status collapsed
4937
4938 \begin_layout Plain Layout
4939 zip
4940 \end_layout
4941
4942 \end_inset
4943
4944 形式が優先されます.
4945 \end_layout
4946
4947 \begin_layout Standard
4948 \SpecialChar LyX
4949 の環境構成時には,「\SpecialChar LyX
4950 書庫」を書き出すことができるようにスクリプトが準備され,
4951 \begin_inset Flex MenuItem
4952 status collapsed
4953
4954 \begin_layout Plain Layout
4955 ファイル\SpecialChar menuseparator
4956 書き出し
4957 \end_layout
4958
4959 \end_inset
4960
4961 の下で利用可能となります.
4962 \end_layout
4963
4964 \begin_layout Standard
4965 \begin_inset Flex MenuItem
4966 status collapsed
4967
4968 \begin_layout Plain Layout
4969 ツール\SpecialChar menuseparator
4970 設定\SpecialChar menuseparator
4971 ファイル処理\SpecialChar menuseparator
4972 変換子
4973 \end_layout
4974
4975 \end_inset
4976
4977
4978 \begin_inset Flex MenuItem
4979 status collapsed
4980
4981 \begin_layout Plain Layout
4982 \SpecialChar LyX
4983 \SpecialChar menuseparator
4984 \SpecialChar LyX
4985 書庫
4986 \end_layout
4987
4988 \end_inset
4989
4990 変換子に,
4991 \begin_inset Flex Code
4992 status collapsed
4993
4994 \begin_layout Plain Layout
4995 -t
4996 \end_layout
4997
4998 \end_inset
4999
5000 スイッチや
5001 \begin_inset Flex Code
5002 status collapsed
5003
5004 \begin_layout Plain Layout
5005 -z
5006 \end_layout
5007
5008 \end_inset
5009
5010 スイッチを加えることで,プラットホームとは独立に,
5011 \begin_inset Flex Code
5012 status collapsed
5013
5014 \begin_layout Plain Layout
5015 tar
5016 \end_layout
5017
5018 \end_inset
5019
5020 形式や
5021 \begin_inset Flex Code
5022 status collapsed
5023
5024 \begin_layout Plain Layout
5025 zip
5026 \end_layout
5027
5028 \end_inset
5029
5030 形式を強制することができます(スイッチは,スクリプト名の前ではなく,後ろに加えてください).
5031 \end_layout
5032
5033 \begin_layout Section
5034 装飾的なヘッダ・フッタ
5035 \end_layout
5036
5037 \begin_layout Standard
5038 既定のページレイアウトは,どちらかといえば素っ気ないものです.
5039 \begin_inset Flex Code
5040 status collapsed
5041
5042 \begin_layout Plain Layout
5043 article
5044 \end_layout
5045
5046 \end_inset
5047
5048 文書クラスの場合には,ページの下の真ん中にページ番号がつくだけです.この取扱説明書はKOMA-scriptのbookクラスなので,すこしは凝ってますが,ほんとう
5049 に着飾るには,『
5050 \emph on
5051 ユーザーの手引き
5052 \emph default
5053 』に述べられているように,文書ページスタイルを「装飾的(fancy)」に設定する必要があります.この節では,望んだとおりの効果を得るために,\SpecialChar LaTeX
5054 プリアンブルに挿入す
5055 る必要のある\SpecialChar LaTeX
5056 コードについて解説します.
5057 \end_layout
5058
5059 \begin_layout Standard
5060 ページへッダは,「left(左)」・「center(中央)」・「right(右)」と命名された3つのフィールドに分けられています.フッタも同様に3つのフィールド
5061 に分類されています.これらのフィールドをもっとも簡単に設定する\SpecialChar LaTeX
5062 コマンドには,
5063 \family typewriter
5064
5065 \begin_inset Flex Code
5066 status collapsed
5067
5068 \begin_layout Plain Layout
5069
5070 \family typewriter
5071
5072 \backslash
5073 lhead
5074 \end_layout
5075
5076 \end_inset
5077
5078
5079 \family default
5080
5081 \family typewriter
5082
5083 \begin_inset Flex Code
5084 status collapsed
5085
5086 \begin_layout Plain Layout
5087
5088 \family typewriter
5089
5090 \backslash
5091 chead
5092 \end_layout
5093
5094 \end_inset
5095
5096
5097 \family default
5098
5099 \family typewriter
5100
5101 \begin_inset Flex Code
5102 status collapsed
5103
5104 \begin_layout Plain Layout
5105
5106 \family typewriter
5107
5108 \backslash
5109 rhead
5110 \end_layout
5111
5112 \end_inset
5113
5114
5115 \family default
5116
5117 \begin_inset Flex Code
5118 status collapsed
5119
5120 \begin_layout Plain Layout
5121
5122 \backslash
5123 lfoot
5124 \end_layout
5125
5126 \end_inset
5127
5128 などがあります.かりに,各ページの左上端に自分の名前を入れたいものとしましょう.次のようなコマンドをプリアンブルに入れるだけです.
5129 \end_layout
5130
5131 \begin_layout Standard
5132
5133 \family typewriter
5134
5135 \backslash
5136 lhead{物書 はじめ}
5137 \end_layout
5138
5139 \begin_layout Standard
5140 これで自分の名前が左上に現れます.フィールドに取り除きたい既定の内容がある場合(往々にして中央のフッタにはページ番号が入ります)には,空の引数を持つコマンドを入
5141 れるだけです.すなわち,
5142 \end_layout
5143
5144 \begin_layout Standard
5145
5146 \family typewriter
5147
5148 \backslash
5149 cfoot{}
5150 \begin_inset Newline newline
5151 \end_inset
5152
5153
5154 \family default
5155 とします.
5156 \end_layout
5157
5158 \begin_layout Standard
5159 もっと美しくしてみましょう.節番号を「第‥節」という言葉といっしょに(第3節のように)左上に入れ,ページ番号を(4ページのように)右上に,自分の名前を左下に,日
5160 付を右下に入れます.以下のコマンドをプリアンブルに入れます.
5161 \end_layout
5162
5163 \begin_layout Standard
5164
5165 \family typewriter
5166
5167 \backslash
5168 lhead{第
5169 \backslash
5170 thesection 節}
5171 \end_layout
5172
5173 \begin_layout Standard
5174
5175 \family typewriter
5176
5177 \backslash
5178 chead{}
5179 \end_layout
5180
5181 \begin_layout Standard
5182
5183 \family typewriter
5184
5185 \backslash
5186 rhead{
5187 \backslash
5188 thepage ページ}
5189 \end_layout
5190
5191 \begin_layout Standard
5192
5193 \family typewriter
5194
5195 \backslash
5196 lfoot{物書 はじめ}
5197 \end_layout
5198
5199 \begin_layout Standard
5200
5201 \family typewriter
5202
5203 \backslash
5204 cfoot{}
5205 \end_layout
5206
5207 \begin_layout Standard
5208
5209 \family typewriter
5210
5211 \backslash
5212 rfoot{
5213 \backslash
5214 today}
5215 \end_layout
5216
5217 \begin_layout Standard
5218 コマンド
5219 \family typewriter
5220
5221 \begin_inset Flex Code
5222 status collapsed
5223
5224 \begin_layout Plain Layout
5225
5226 \family typewriter
5227
5228 \backslash
5229 thesecti
5230 \family default
5231 o
5232 \family typewriter
5233 n
5234 \end_layout
5235
5236 \end_inset
5237
5238
5239 \family default
5240
5241 \begin_inset Flex Code
5242 status collapsed
5243
5244 \begin_layout Plain Layout
5245
5246 \family typewriter
5247
5248 \backslash
5249 thepa
5250 \family default
5251 ge
5252 \end_layout
5253
5254 \end_inset
5255
5256 は,それぞれ\SpecialChar LaTeX
5257 の節カウンタおよびページカウンタを取得するもので,これによって現在の節番号とページ番号を印字します.
5258 \begin_inset Flex Code
5259 status collapsed
5260
5261 \begin_layout Plain Layout
5262
5263 \family typewriter
5264
5265 \backslash
5266 tod
5267 \family default
5268 ay
5269 \end_layout
5270
5271 \end_inset
5272
5273 は,今日の日付を印字するものです.
5274 \end_layout
5275
5276 \begin_layout Standard
5277 へッダ下またはフッタ上に描かれる罫線の太さも変更することができます.もし罫線が必要なければ,太さを0にしてください.ヘッダ罫線は,既定では0.4ptの太さであり,
5278 フッタ罫線は0ptです.太さを変更するには,
5279 \family typewriter
5280
5281 \begin_inset Flex Code
5282 status collapsed
5283
5284 \begin_layout Plain Layout
5285
5286 \family typewriter
5287
5288 \backslash
5289 renewcommand{
5290 \backslash
5291 headrulewidth}{0.4pt}
5292 \end_layout
5293
5294 \end_inset
5295
5296
5297 \family default
5298
5299 \family typewriter
5300
5301 \begin_inset Flex Code
5302 status collapsed
5303
5304 \begin_layout Plain Layout
5305
5306 \family typewriter
5307
5308 \backslash
5309 renewcommand{
5310 \backslash
5311 footrulewidth}{0.4pt}
5312 \end_layout
5313
5314 \end_inset
5315
5316
5317 \family default
5318 のようなコマンドを使用してください.
5319 \end_layout
5320
5321 \begin_layout Standard
5322 \begin_inset Flex Code
5323 status collapsed
5324
5325 \begin_layout Plain Layout
5326
5327 \family typewriter
5328
5329 \backslash
5330 thispagestyle{empty}
5331 \end_layout
5332
5333 \end_inset
5334
5335
5336 \begin_inset Flex Code
5337 status collapsed
5338
5339 \begin_layout Plain Layout
5340
5341 \family typewriter
5342
5343 \backslash
5344 thispagestyle{plain}
5345 \end_layout
5346
5347 \end_inset
5348
5349
5350 \begin_inset Flex Code
5351 status collapsed
5352
5353 \begin_layout Plain Layout
5354
5355 \family typewriter
5356
5357 \backslash
5358 thispagestyle{fancy}
5359 \end_layout
5360
5361 \end_inset
5362
5363 のようなコマンドを使えば,各ページごとにへッダ・フッタ設定を有効にしたり無効にしたりすることができます.設定を変更したいページに,これらのコマンドを\SpecialChar TeX
5364 コードとして
5365 挿入してください.実は,タイトルページは,その後のページは大域的に装飾的(fancy)に設定されていれば装飾的(fancy)になるにもかかわらず,既定でプレーン
5366 (plain)になるように設定されているのです.
5367 \end_layout
5368
5369 \begin_layout Standard
5370 奇数ページの左上だけに何かを挿入するなど,もっと複雑なコマンドもあるのですが,詳しい解説は
5371 \begin_inset Flex Code
5372 status collapsed
5373
5374 \begin_layout Plain Layout
5375
5376 \family typewriter
5377 fancyhdr
5378 \end_layout
5379
5380 \end_inset
5381
5382 パッケージの取扱説明書をご参照ください(
5383 \begin_inset Flex Code
5384 status collapsed
5385
5386 \begin_layout Plain Layout
5387 fancyhdr.dvi
5388 \end_layout
5389
5390 \end_inset
5391
5392 を探してください).
5393 \end_layout
5394
5395 \begin_layout Standard
5396 最後の例として,へッダやフッタに画像を挿入できることを取り上げましょう.会社のロゴをページ左上に入れたいものとします.たとえば,
5397 \end_layout
5398
5399 \begin_layout Standard
5400
5401 \family typewriter
5402
5403 \backslash
5404 lhead{
5405 \backslash
5406 resizebox{1in}{!}{
5407 \backslash
5408 includegraphics{logo.eps}}}
5409 \end_layout
5410
5411 \begin_layout Standard
5412 \noindent
5413 とすれば,これを実現できます(文書中に他に画像を挿入していない場合には,
5414 \begin_inset Newline newline
5415 \end_inset
5416
5417
5418 \begin_inset Flex Code
5419 status collapsed
5420
5421 \begin_layout Plain Layout
5422 \noindent
5423
5424 \family typewriter
5425
5426 \backslash
5427 usepackage{graphics}
5428 \end_layout
5429
5430 \end_inset
5431
5432 をプリアンブルに宣言する必要があります).
5433 \end_layout
5434
5435 \begin_layout Section
5436 箇条書き(記号)ブリットの指定
5437 \begin_inset CommandInset label
5438 LatexCommand label
5439 name "sec:ブリット"
5440
5441 \end_inset
5442
5443
5444 \end_layout
5445
5446 \begin_layout Standard
5447
5448 \noun on
5449 Allan Rae文
5450 \end_layout
5451
5452 \begin_layout Subsection
5453 はじめに
5454 \end_layout
5455
5456 \begin_layout Standard
5457 \SpecialChar LyX
5458 には,ブリットの形が216個準備されていて,簡単なダイアログから呼び出すことができます.このダイアログを使えば,箇条書き(記号)の各階層で使うブリットの形を変更
5459 することができます.この設定は文書全体に共通なので,段落ごとに別のブリットを指定することはできません
5460 \begin_inset Foot
5461 status collapsed
5462
5463 \begin_layout Plain Layout
5464 正確には可能ですが,手動で行う必要があります.
5465 \end_layout
5466
5467 \end_inset
5468
5469
5470 \end_layout
5471
5472 \begin_layout Subsection
5473 外見
5474 \end_layout
5475
5476 \begin_layout Standard
5477 メニュー項目の
5478 \begin_inset Flex MenuItem
5479 status collapsed
5480
5481 \begin_layout Plain Layout
5482 文書\SpecialChar menuseparator
5483 設定
5484 \end_layout
5485
5486 \end_inset
5487
5488 を選択してダイアログを開き,
5489 \begin_inset Flex MenuItem
5490 status collapsed
5491
5492 \begin_layout Plain Layout
5493 ブリット
5494 \end_layout
5495
5496 \end_inset
5497
5498 タブを選択してください.
5499 \end_layout
5500
5501 \begin_layout Standard
5502 このダイアログは,ブリット形の一覧表を提示します.
5503 \begin_inset Flex MenuItem
5504 status collapsed
5505
5506 \begin_layout Plain Layout
5507 フォント
5508 \end_layout
5509
5510 \end_inset
5511
5512 と書いてあるドロップダウンメニューで,6つの各ブリット形パネルを切り替えることができます.また,一覧表左の
5513 \begin_inset Flex MenuItem
5514 status collapsed
5515
5516 \begin_layout Plain Layout
5517 階層
5518 \end_layout
5519
5520 \end_inset
5521
5522 パネルは,変更したい階層を選択するものです.
5523 \begin_inset Flex MenuItem
5524 status collapsed
5525
5526 \begin_layout Plain Layout
5527 任意のブリット
5528 \end_layout
5529
5530 \end_inset
5531
5532 では,指定したい\SpecialChar LaTeX
5533 表現を入力することができます.任意のブリットを指定した場合には,そのコマンドが必要とするパッケージを\SpecialChar LaTeX
5534 プリアンブルで指定する必要があります.
5535 \end_layout
5536
5537 \begin_layout Standard
5538 6つのパネルは,それぞれが必要とするパッケージによって分類されています.下記は,フォント名と\SpecialChar LaTeX
5539 パッケージの対応表です.
5540 \end_layout
5541
5542 \begin_layout Standard
5543 \align center
5544 \begin_inset Tabular
5545 <lyxtabular version="3" rows="7" columns="2">
5546 <features tabularvalignment="middle">
5547 <column alignment="center" valignment="top" width="0pt">
5548 <column alignment="center" valignment="top" width="0pt">
5549 <row>
5550 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5551 \begin_inset Text
5552
5553 \begin_layout Plain Layout
5554 フォント
5555 \end_layout
5556
5557 \end_inset
5558 </cell>
5559 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
5560 \begin_inset Text
5561
5562 \begin_layout Plain Layout
5563
5564 \family roman
5565 \series medium
5566 \shape up
5567 \size normal
5568 \emph off
5569 \bar no
5570 \noun off
5571 \color none
5572 必要とするパッケージ
5573 \end_layout
5574
5575 \end_inset
5576 </cell>
5577 </row>
5578 <row>
5579 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5580 \begin_inset Text
5581
5582 \begin_layout Plain Layout
5583
5584 \family sans
5585 標準
5586 \end_layout
5587
5588 \end_inset
5589 </cell>
5590 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5591 \begin_inset Text
5592
5593 \begin_layout Plain Layout
5594
5595 \series medium
5596 \shape up
5597 \size normal
5598 \emph off
5599 \bar no
5600 \noun off
5601 \color none
5602 \SpecialChar LaTeX
5603
5604 \family roman
5605 本体
5606 \end_layout
5607
5608 \end_inset
5609 </cell>
5610 </row>
5611 <row>
5612 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5613 \begin_inset Text
5614
5615 \begin_layout Plain Layout
5616
5617 \family sans
5618 \series medium
5619 \shape up
5620 \size normal
5621 \emph off
5622 \bar no
5623 \noun off
5624 \color none
5625 数式
5626 \end_layout
5627
5628 \end_inset
5629 </cell>
5630 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5631 \begin_inset Text
5632
5633 \begin_layout Plain Layout
5634
5635 \family typewriter
5636 \series medium
5637 \shape up
5638 \size normal
5639 \emph off
5640 \bar no
5641 \noun off
5642 \color none
5643 amssymb.sty
5644 \end_layout
5645
5646 \end_inset
5647 </cell>
5648 </row>
5649 <row>
5650 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5651 \begin_inset Text
5652
5653 \begin_layout Plain Layout
5654
5655 \family sans
5656 \series medium
5657 \shape up
5658 \size normal
5659 \emph off
5660 \bar no
5661 \noun off
5662 \color none
5663 絵文字1
5664 \end_layout
5665
5666 \end_inset
5667 </cell>
5668 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5669 \begin_inset Text
5670
5671 \begin_layout Plain Layout
5672
5673 \family typewriter
5674 \series medium
5675 \shape up
5676 \size normal
5677 \emph off
5678 \bar no
5679 \noun off
5680 \color none
5681 pifont.sty
5682 \end_layout
5683
5684 \end_inset
5685 </cell>
5686 </row>
5687 <row>
5688 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5689 \begin_inset Text
5690
5691 \begin_layout Plain Layout
5692
5693 \family sans
5694 \series medium
5695 \shape up
5696 \size normal
5697 \emph off
5698 \bar no
5699 \noun off
5700 \color none
5701 絵文字2
5702 \end_layout
5703
5704 \end_inset
5705 </cell>
5706 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5707 \begin_inset Text
5708
5709 \begin_layout Plain Layout
5710
5711 \family typewriter
5712 \series medium
5713 \shape up
5714 \size normal
5715 \emph off
5716 \bar no
5717 \noun off
5718 \color none
5719 pifont.sty
5720 \end_layout
5721
5722 \end_inset
5723 </cell>
5724 </row>
5725 <row>
5726 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5727 \begin_inset Text
5728
5729 \begin_layout Plain Layout
5730
5731 \family sans
5732 \series medium
5733 \shape up
5734 \size normal
5735 \emph off
5736 \bar no
5737 \noun off
5738 \color none
5739 絵文字3
5740 \end_layout
5741
5742 \end_inset
5743 </cell>
5744 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5745 \begin_inset Text
5746
5747 \begin_layout Plain Layout
5748
5749 \family typewriter
5750 \series medium
5751 \shape up
5752 \size normal
5753 \emph off
5754 \bar no
5755 \noun off
5756 \color none
5757 pifont.sty
5758 \end_layout
5759
5760 \end_inset
5761 </cell>
5762 </row>
5763 <row>
5764 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5765 \begin_inset Text
5766
5767 \begin_layout Plain Layout
5768
5769 \family sans
5770 \series medium
5771 \shape up
5772 \size normal
5773 \emph off
5774 \bar no
5775 \noun off
5776 \color none
5777 絵文字4
5778 \end_layout
5779
5780 \end_inset
5781 </cell>
5782 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
5783 \begin_inset Text
5784
5785 \begin_layout Plain Layout
5786
5787 \family typewriter
5788 \series medium
5789 \shape up
5790 \size normal
5791 \emph off
5792 \bar no
5793 \noun off
5794 \color none
5795 pifont.sty
5796 \end_layout
5797
5798 \end_inset
5799 </cell>
5800 </row>
5801 </lyxtabular>
5802
5803 \end_inset
5804
5805
5806 \end_layout
5807
5808 \begin_layout Standard
5809 \SpecialChar LyX
5810 は,ユーザーが導入されていないパッケージのブリットを使用したとしても,警告を発しません.ファイルを閲覧したり印刷したりしようとしたときに\SpecialChar LaTeX
5811 エラーが出るようならば,
5812 パッケージが導入されていない可能性が大です
5813 \begin_inset Foot
5814 status collapsed
5815
5816 \begin_layout Plain Layout
5817 \SpecialChar LyX
5818 が,パッケージがなくてもブリットを使用することを許すのは,編集をここで行ったとしても,別のところへエクスポートする可能性があるからです.
5819 \end_layout
5820
5821 \end_inset
5822
5823
5824 \end_layout
5825
5826 \begin_layout Subsection
5827 使用法
5828 \end_layout
5829
5830 \begin_layout Standard
5831 変更したいブリット階層を選んで,ブリット形と寸法を選択してください.何らかの変更を加えたとしても,\SpecialChar LyX
5832 上には反映されませんが,文書の表示を行えば確認されます.
5833 \end_layout
5834
5835 \begin_layout Standard
5836 ブリット形は,適切な階層のブリットボタンをマウスで右クリックすれば,簡単に既定値に初期化することができます
5837 \begin_inset Foot
5838 status open
5839
5840 \begin_layout Plain Layout
5841 もし
5842 \emph on
5843 本当に
5844 \emph default
5845 段落ごとに異なるブリットの形を使いたいならば,\SpecialChar TeX
5846 コードを使って少し手を汚す必要があります.この場合も,ブリット選択ダイアログを使えば,さまざまな形のLaTeXコー
5847 ドを確認することができるので手助けとなるでしょう.任意に設定した段落をつくるには,以下のような選択肢があります.
5848 \end_layout
5849
5850 \begin_layout Plain Layout
5851 \begin_inset ERT
5852 status open
5853
5854 \begin_layout Plain Layout
5855
5856
5857 \backslash
5858 let
5859 \backslash
5860 savelabelitemi=
5861 \backslash
5862 labelitemi
5863 \end_layout
5864
5865 \end_inset
5866
5867
5868 \end_layout
5869
5870 \begin_layout Plain Layout
5871 \begin_inset ERT
5872 status open
5873
5874 \begin_layout Plain Layout
5875
5876
5877 \backslash
5878 renewcommand
5879 \backslash
5880 labelitemi[0]{
5881 \backslash
5882 small
5883 \backslash
5884 (
5885 \backslash
5886 sharp
5887 \backslash
5888 )}
5889 \end_layout
5890
5891 \end_inset
5892
5893
5894 \end_layout
5895
5896 \begin_layout Itemize
5897 特定の階層の新しいブリット形を指定するには,\SpecialChar LaTeX
5898 コマンド
5899 \begin_inset Flex Code
5900 status collapsed
5901
5902 \begin_layout Plain Layout
5903
5904 \family typewriter
5905
5906 \backslash
5907 renewcommand{}{}
5908 \end_layout
5909
5910 \end_inset
5911
5912 を使用します.あとで現在のブリット形に戻すことができるように,現在のブリット形を保存しておく必要もあります.ここで使っている箇条書きでは,第1階層のブリットを変
5913 更するために,以下の\SpecialChar LaTeX
5914 コードが使用されています.
5915 \end_layout
5916
5917 \begin_deeper
5918 \begin_layout LyX-Code
5919
5920 \family typewriter
5921
5922 \backslash
5923 let
5924 \backslash
5925 savelabelitemi=
5926 \backslash
5927 labelitemi
5928 \end_layout
5929
5930 \begin_layout LyX-Code
5931
5932 \family typewriter
5933
5934 \backslash
5935 renewcommand
5936 \backslash
5937 labelitemi[0]{
5938 \backslash
5939 small
5940 \backslash
5941 (
5942 \backslash
5943 sharp
5944 \backslash
5945 )}
5946 \end_layout
5947
5948 \end_deeper
5949 \begin_layout Itemize
5950 箇条書き(記号)の階層は,
5951 \begin_inset Flex Code
5952 status collapsed
5953
5954 \begin_layout Plain Layout
5955
5956 \backslash
5957 labelitem
5958 \end_layout
5959
5960 \end_inset
5961
5962 コマンドの一部にローマ数字で指定されていることに注意してください.
5963 \end_layout
5964
5965 \begin_layout Itemize
5966 \begin_inset Argument item:1
5967 status open
5968
5969 \begin_layout Plain Layout
5970 \begin_inset ERT
5971 status open
5972
5973 \begin_layout Plain Layout
5974
5975
5976 \backslash
5977 (
5978 \backslash
5979 star
5980 \backslash
5981 )
5982 \end_layout
5983
5984 \end_inset
5985
5986
5987 \end_layout
5988
5989 \end_inset
5990
5991 各項目のブリットを指定するには,
5992 \begin_inset Flex Code
5993 status collapsed
5994
5995 \begin_layout Plain Layout
5996 \SpecialChar TeX
5997 コード
5998 \end_layout
5999
6000 \end_inset
6001
6002 として入力したブリット形を,行頭に「ユーザ設定」項目差込枠(挿入\SpecialChar menuseparator
6003 ユーザ設定項目)に入れて挿入してください.たとえば,この項目の行頭には
6004 \family typewriter
6005
6006 \begin_inset Flex Code
6007 status collapsed
6008
6009 \begin_layout Plain Layout
6010
6011 \family typewriter
6012
6013 \backslash
6014 (
6015 \backslash
6016 star
6017 \backslash
6018 )
6019 \end_layout
6020
6021 \end_inset
6022
6023
6024 \family default
6025 が指定されています.
6026 \end_layout
6027
6028 \begin_layout Plain Layout
6029 \begin_inset ERT
6030 status open
6031
6032 \begin_layout Plain Layout
6033
6034
6035 \backslash
6036 renewcommand
6037 \backslash
6038 labelitemi[0]{
6039 \backslash
6040 savelabelitemi}
6041 \end_layout
6042
6043 \end_inset
6044
6045
6046 \end_layout
6047
6048 \begin_layout Plain Layout
6049 文書全体で使用するブリット形が有効であるようにするために,labelitemを元の設定に戻す必要があります.そのためには,以下のようにします.
6050 \end_layout
6051
6052 \begin_layout LyX-Code
6053
6054 \family typewriter
6055
6056 \backslash
6057 renewcommand
6058 \backslash
6059 labelitemi[0]{
6060 \backslash
6061 savelabelitemi}
6062 \end_layout
6063
6064 \end_inset
6065
6066
6067 \end_layout
6068
6069 \begin_layout Chapter
6070 \SpecialChar LyX
6071 とインターネット網
6072 \end_layout
6073
6074 \begin_layout Standard
6075 \SpecialChar LyX
6076 は,これまでも長い間,HTMLを始めとするウェブフレンドリーな文書諸形式への書き出しをサポートしてきました.しかしながら,第2.0版以前では,HTMLへの書き出し
6077 は,常に外部変換子を用いることで実現されていました
6078 \begin_inset Foot
6079 status collapsed
6080
6081 \begin_layout Plain Layout
6082 \SpecialChar LyX
6083 で外部変換子を使うことについての詳細は,取扱説明書『
6084 \emph on
6085 カスタマイズ篇
6086 \emph default
6087 』の「
6088 \emph on
6089 変換子
6090 \emph default
6091 」の節をご覧ください.
6092 \end_layout
6093
6094 \end_inset
6095
6096 .これらは2つのグループに大別できます.1つは,
6097 \begin_inset Flex Code
6098 status collapsed
6099
6100 \begin_layout Plain Layout
6101 htlatex
6102 \end_layout
6103
6104 \end_inset
6105
6106
6107 \begin_inset Flex Code
6108 status collapsed
6109
6110 \begin_layout Plain Layout
6111 html2latex
6112 \end_layout
6113
6114 \end_inset
6115
6116
6117 \begin_inset Flex Code
6118 status collapsed
6119
6120 \begin_layout Plain Layout
6121 plastex
6122 \end_layout
6123
6124 \end_inset
6125
6126 のように,\SpecialChar LaTeX
6127 を中間形式として用い,その\SpecialChar LaTeX
6128 を生成するのに\SpecialChar LyX
6129 を用いるもの.2つめは,
6130 \begin_inset Flex Code
6131 status collapsed
6132
6133 \begin_layout Plain Layout
6134 e\SpecialChar LyX
6135 er
6136 \end_layout
6137
6138 \end_inset
6139
6140 のように,直接\SpecialChar LyX
6141 ファイルに働きかける変換子です.これらは,それぞれに長所・短所を有しています.
6142 \end_layout
6143
6144 \begin_layout Standard
6145 \SpecialChar LaTeX
6146 ベースの変換子は,原則として,\SpecialChar LaTeX
6147 が書きだす文書についてのすべてを知っているという長所があります.この種の変換子は,例えば,特定のコードのくだりが,\SpecialChar LyX
6148 によって生成され
6149 たのか,\SpecialChar TeX
6150 コードで書かれたのかについては気にしません.これらの変換子は,
6151 \begin_inset Flex Code
6152 status collapsed
6153
6154 \begin_layout Plain Layout
6155 aux
6156 \end_layout
6157
6158 \end_inset
6159
6160 ファイルやカウンタや参照を取り扱うことができ,Bib\SpecialChar TeX
6161 が生成する
6162 \begin_inset Flex Code
6163 status collapsed
6164
6165 \begin_layout Plain Layout
6166 bbl
6167 \end_layout
6168
6169 \end_inset
6170
6171 ファイルも利用することがよくあります.一方で,\SpecialChar LaTeX
6172 は解析の非常に難しい言語であり—\SpecialChar TeX
6173 自身だけが\SpecialChar TeX
6174 を理解することができると言われたりすることがあります—,\SpecialChar LaTeX
6175 ベースの変換子は
6176 ,非常に簡単な文法に見えるものでさえ飲み込めず,複雑なものになると全く歯が立たないこともあります.例えば,この現行を書いている時点では,取扱説明書『
6177 \emph on
6178 埋込オブジェクト篇
6179 \emph default
6180 』は,他の変換子では書き出しができるのに,
6181 \begin_inset Flex Code
6182 status collapsed
6183
6184 \begin_layout Plain Layout
6185 htlatex
6186 \end_layout
6187
6188 \end_inset
6189
6190 では行うことができません.他には,数式をどう取り扱うかという問題があります.これらの変換子の典型的なものは,数式を小さな画像に変換して,HTML文書からこれらの
6191 画像へのリンクを張ります.これらの画像は,実は\SpecialChar LaTeX
6192 によって生成されているので,正確です.しかしながら,これらはうまく伸縮できないので,実際の文書の中で表現されるよう
6193 に—フォント寸が凡そ正しくなるように—見せようとすると,大変な苦労を伴います.
6194 \end_layout
6195
6196 \begin_layout Standard
6197 Alex Fernandezの
6198 \begin_inset Flex Code
6199 status collapsed
6200
6201 \begin_layout Plain Layout
6202 e\SpecialChar LyX
6203 er
6204 \end_layout
6205
6206 \end_inset
6207
6208
6209 \begin_inset CommandInset href
6210 LatexCommand href
6211 name "http://elyxer.nongnu.org/"
6212 target "http://elyxer.nongnu.org/"
6213 literal "false"
6214
6215 \end_inset
6216
6217 )は,これらの問題の一部を解決します.特に,これは数式を画像に変換するのではなく,HTMLとCSSを組み合わせて数式を生成するので,生成される数式は完璧な大きさ
6218 に伸縮されて表示されます.しかしながら,ちょっとだけ複雑な数式でさえ,
6219 \begin_inset Flex Code
6220 status collapsed
6221
6222 \begin_layout Plain Layout
6223 htlatex
6224 \end_layout
6225
6226 \end_inset
6227
6228 よりも質が落ちます.これはHTMLの限界を示しています
6229 \begin_inset Foot
6230 status collapsed
6231
6232 \begin_layout Plain Layout
6233 とはいえ,
6234 \begin_inset Flex Code
6235 status collapsed
6236
6237 \begin_layout Plain Layout
6238 e\SpecialChar LyX
6239 er
6240 \end_layout
6241
6242 \end_inset
6243
6244 では,数式用にjsMathとMathJaxを使用することもできます.ただし,この設定はグローバルにしか設定することができず,バックエンドで実行させるサーバへのア
6245 クセスが利用できる必要があります.
6246 \end_layout
6247
6248 \end_inset
6249
6250 .さらに重要なことは(少なくとも第1.1.1版においては),
6251 \begin_inset Flex Code
6252 status collapsed
6253
6254 \begin_layout Plain Layout
6255 e\SpecialChar LyX
6256 er
6257 \end_layout
6258
6259 \end_inset
6260
6261 は数式マクロを一部しかサポートしておらず,ユーザ定義の段落様式や文字様式をサポートしていません.これらの制約によって,\SpecialChar LyX
6262 ユーザが生成する文書の多くにとっては,
6263 \begin_inset Flex Code
6264 status collapsed
6265
6266 \begin_layout Plain Layout
6267 e\SpecialChar LyX
6268 er
6269 \end_layout
6270
6271 \end_inset
6272
6273 は不向きなものになっています.もちろん,原理的に,これらの問題を解決することもできたのですが,\SpecialChar LyX
6274 開発陣は別の方法を採ることとし,\SpecialChar LyX
6275 が\SpecialChar LaTeX
6276 やDocBook,平文を書き出す
6277 ことができるのと同様に,\SpecialChar LyX
6278 自身にXHTMLを書きだす能力を身につけさせることとしたのです.
6279 \end_layout
6280
6281 \begin_layout Standard
6282 この原稿執筆時点では,XHTML出力は開発途上であり,おそらく「実験的」機能として解されるべきでしょう
6283 \begin_inset Foot
6284 status open
6285
6286 \begin_layout Plain Layout
6287 \SpecialChar LyX
6288 ソースツリーもしくは
6289 \begin_inset CommandInset href
6290 LatexCommand href
6291 name "オンラインでのアクセス"
6292 target "http://www.lyx.org/trac/browser/lyx-devel/trunk/development/HTML/HTML.notes"
6293 literal "false"
6294
6295 \end_inset
6296
6297 にある
6298 \begin_inset Flex Code
6299 status collapsed
6300
6301 \begin_layout Plain Layout
6302 development/HTML/HTML.notes
6303 \end_layout
6304
6305 \end_inset
6306
6307 ファイルには,通常,XHTML出力の現状についての最新の情報が収録されています.
6308 \begin_inset CommandInset href
6309 LatexCommand href
6310 name "バグ追跡ページ"
6311 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"
6312 literal "false"
6313
6314 \end_inset
6315
6316 にあるXHTML関連バグ一覧も参照のこと.
6317 \end_layout
6318
6319 \end_inset
6320
6321 .それでもこのアプローチは,他の2つの方法よりも,潜在的な利点がいくつもあるので,開発陣はこの方法を選択したのです.
6322 \end_layout
6323
6324 \begin_layout Standard
6325 これらの利点は,主に,XHTML出力ルーチンが\SpecialChar LyX
6326 の一部となっているため,\SpecialChar LyX
6327 が出力する文書について\SpecialChar LyX
6328 が関知しているところのものは,すべて知り得るというところから来ていま
6329
6330 \begin_inset Foot
6331 status collapsed
6332
6333 \begin_layout Plain Layout
6334 他には,これらのルーチンが\SpecialChar LyX
6335 内部にあるため,\SpecialChar LyX
6336 ファイル形式や既存の差込枠の文法に変更があっても,影響を受けずに済むという利点もあります.
6337 \end_layout
6338
6339 \end_inset
6340
6341 .つまり,XHTML出力ルーチンは,(文書構造に表示されるような形での)目次や,それぞれの段落様式に関連付けられたカウンタや,ユーザ定義の様式についても知ってい
6342 るのです.XHTML出力ルーチンは,国際化について\SpecialChar LyX
6343 が関知しているものも知っているので,ちょうどその時に有効になっている言語に依存して,「Chapter
6344  1」と出力されたり,「Kapitel 1」と出力されたりするのです.
6345 \end_layout
6346
6347 \begin_layout Standard
6348 汎く一般的に,出力ルーチンは,\SpecialChar LyX
6349 が文書レイアウトについて関知しているものは知っており,したがって,文書が画面上にどのように描画されるかも知っています.文書をXHT
6350 MLに出力するときには,この情報を利用します.特に,\SpecialChar LyX
6351 は,文書を画面上に描画するときに使用するレイアウト情報に対応したCSSスタイル情報を
6352 \emph on
6353 自動的に
6354 \emph default
6355 生成します.もし節見出しが,\SpecialChar LyX
6356 中でサンセリフ体かつボールド体であるとすると,(既定では)ウェブブラウザに表示した時にも,サンセリフでボールドになります.これは,節
6357 のような定義済み様式だけでなく,ユーザ定義のものも含めて,すべての様式でそうです.実際,XHTML出力ルーチンは,ユーザ定義の段落・文字様式と,\SpecialChar LyX
6358 自身の定義済み様
6359 式とを区別しません.どちらの場合も,\SpecialChar LyX
6360 が様式について関知しているところのものは,全てレイアウトファイルに含まれています.これは,脚注のような定義済み差込枠や,各種
6361 ユーザ設定差込枠でもそうです.
6362 \end_layout
6363
6364 \begin_layout Standard
6365 結果として,XHTML出力は,レイアウトファイルやモジュールを通して,\SpecialChar LaTeX
6366 出力と全く同じように,ユーザが設定したり拡張したりすることができるのです.詳細については,
6367 取扱説明書『
6368 \emph on
6369 カスタマイズ篇
6370 \emph default
6371 』の第5章をごらんください.
6372 \end_layout
6373
6374 \begin_layout Standard
6375 本章の残りでは,XHTML出力についての,さらに詳細な情報について取り扱い,その制約や,制約の回避の仕方を取り扱います.
6376 \end_layout
6377
6378 \begin_layout Section
6379 XHTMLにおける数式出力
6380 \end_layout
6381
6382 \begin_layout Standard
6383 \SpecialChar LyX
6384 では,数式描画に4つの方法を選択できます.以下に示すように,それぞれに利点と欠点があります.
6385 \end_layout
6386
6387 \begin_layout Itemize
6388 MathML
6389 \begin_inset Newline newline
6390 \end_inset
6391
6392 MathMLは,ウェブ上で数学を用いるために,特にデザインされたXMLの一方言であり,これをサポートするブラウザ上では,通常,特に美しい表現が得られます.欠点は
6393 ,すべてのブラウザがMathMLをサポートしているわけではないという事と,FirefoxのようなGeckoベースのブラウザでも,サポートが完璧ではないという事で
6394 す.
6395 \begin_inset Newline newline
6396 \end_inset
6397
6398 例えば,数式が
6399 \begin_inset Flex Code
6400 status collapsed
6401
6402 \begin_layout Plain Layout
6403 xymatrix
6404 \end_layout
6405
6406 \end_inset
6407
6408 パッケージを使用していたり,\SpecialChar TeX
6409 コードを使用しているなどで,もし\SpecialChar LyX
6410 が数式をMathMLとして描画できないとすると,\SpecialChar LyX
6411 は数式を代わりに画像として出力します.
6412  
6413 \end_layout
6414
6415 \begin_layout Itemize
6416 HTML
6417 \begin_inset Newline newline
6418 \end_inset
6419
6420 前述のとおり,
6421 \begin_inset Flex Code
6422 status collapsed
6423
6424 \begin_layout Plain Layout
6425 elyxer
6426 \end_layout
6427
6428 \end_inset
6429
6430 は,数式をCSSで装飾したHTMLとして出力します
6431 \begin_inset Foot
6432 status collapsed
6433
6434 \begin_layout Plain Layout
6435 \SpecialChar LyX
6436 は,
6437 \begin_inset Flex Code
6438 status collapsed
6439
6440 \begin_layout Plain Layout
6441 elyxer
6442 \end_layout
6443
6444 \end_inset
6445
6446 からのHTML出力のために,CSSの一部を拝借しています.
6447 \end_layout
6448
6449 \end_inset
6450
6451 .簡単な数式では,これは非常にうまく行きますが,少し複雑な数式になると,
6452 \begin_inset Flex Code
6453 status collapsed
6454
6455 \begin_layout Plain Layout
6456 elyxer
6457 \end_layout
6458
6459 \end_inset
6460
6461 は歯が立たなくなります.それでも,この方法は非常に広くサポートされているという利点があり,かなり簡単な数式を少しだけ含んでいるような文書に適しているでしょう.
6462 \begin_inset Newline newline
6463 \end_inset
6464
6465 例えば,数式が
6466 \begin_inset Flex Code
6467 status collapsed
6468
6469 \begin_layout Plain Layout
6470 xymatrix
6471 \end_layout
6472
6473 \end_inset
6474
6475 パッケージを使用していたり,\SpecialChar TeX
6476 コードを使用しているなどで,もし\SpecialChar LyX
6477 が数式をHTMLとして描画できないとすると,\SpecialChar LyX
6478 は数式を代わりに画像として出力します.
6479  
6480 \end_layout
6481
6482 \begin_layout Itemize
6483 画像
6484 \begin_inset Newline newline
6485 \end_inset
6486
6487
6488 \begin_inset Flex Code
6489 status collapsed
6490
6491 \begin_layout Plain Layout
6492 htlatex
6493 \end_layout
6494
6495 \end_inset
6496
6497 のように,\SpecialChar LyX
6498 は数式を画像としても出力できます.この画像は,実は,自動プレビューで使用されているものと全く同じです
6499 \begin_inset Foot
6500 status collapsed
6501
6502 \begin_layout Plain Layout
6503 ただし,画像を出力に使うために,自動プレビューを入にしておく必要は
6504 \emph on
6505 ありません
6506 \emph default
6507
6508 \end_layout
6509
6510 \end_inset
6511
6512 .この方法の利点は,画像が他ならぬ\SpecialChar LaTeX
6513 によって生成されているので,非常に正確であることです.欠点は,前述したとおり,画像がビットマップなので,伸縮が全くうまく行かな
6514 かったり,コピーが出来なかったりといったことがあります.
6515 \begin_inset Newline newline
6516 \end_inset
6517
6518 画像の寸法は,
6519 \begin_inset Flex MenuItem
6520 status collapsed
6521
6522 \begin_layout Plain Layout
6523 文書\SpecialChar menuseparator
6524 設定\SpecialChar menuseparator
6525 形式
6526 \end_layout
6527
6528 \end_inset
6529
6530 の「数式画像の伸縮」パラメータを変更することで制御できます
6531 \begin_inset Foot
6532 status collapsed
6533
6534 \begin_layout Plain Layout
6535 必要な方のために述べておくと,これは,画像の解像度をdpi(1インチあたりドット数)で制御するためのもので,75dpiを基準としています.
6536 \end_layout
6537
6538 \end_inset
6539
6540
6541 \begin_inset Newline newline
6542 \end_inset
6543
6544 もし\SpecialChar LyX
6545 が,何らかの理由によって数式の画像を生成できない(例えば,必要な\SpecialChar LaTeX
6546 パッケージが導入済みでないなど)ときは,回避策として,生の\SpecialChar LaTeX
6547 を出力します.
6548 \end_layout
6549
6550 \begin_layout Itemize
6551 \SpecialChar LaTeX
6552
6553 \begin_inset Newline newline
6554 \end_inset
6555
6556 最後に,\SpecialChar LyX
6557 は,数式を\SpecialChar LaTeX
6558 としても出力することができます.この方法は,最終手段としての出力方法である一方で,HTML文書に埋め込まれた\SpecialChar LaTeX
6559 を描画するのにJavaScript
6560 を使用する,
6561 \begin_inset CommandInset href
6562 LatexCommand href
6563 name "jsMath"
6564 target "http://www.math.union.edu/~dpvc/jsMath/"
6565 literal "false"
6566
6567 \end_inset
6568
6569 のようなツールとともに使用することもできます.\SpecialChar LyX
6570 は,jsMathで必要とされているのと同じように,\SpecialChar LaTeX
6571 部分を,
6572 \begin_inset Flex Code
6573 status collapsed
6574
6575 \begin_layout Plain Layout
6576 span
6577 \end_layout
6578
6579 \end_inset
6580
6581 (行内数式用)または
6582 \begin_inset Flex Code
6583 status collapsed
6584
6585 \begin_layout Plain Layout
6586 div
6587 \end_layout
6588
6589 \end_inset
6590
6591 (別行立て数式用)に
6592 \begin_inset Flex Code
6593 status collapsed
6594
6595 \begin_layout Plain Layout
6596 class='math'
6597 \end_layout
6598
6599 \end_inset
6600
6601 を指定したもので,包んで出力します.
6602 \end_layout
6603
6604 \begin_layout Standard
6605 これらの出力方法のいずれかを
6606 \begin_inset Flex MenuItem
6607 status collapsed
6608
6609 \begin_layout Plain Layout
6610 文書\SpecialChar menuseparator
6611 設定\SpecialChar menuseparator
6612 形式
6613 \end_layout
6614
6615 \end_inset
6616
6617 で選択しなくてはなりません.既定では,\SpecialChar LyX
6618 はMathMLで出力を行います.これは,文書全体に適用される設定となります.
6619 \end_layout
6620
6621 \begin_layout Standard
6622 最後に,\SpecialChar LyX
6623 では,例えば,MathMLではあまりうまく出力されないような差込枠に対して,別の出力方法を選択できる選択肢が用意されています
6624 \begin_inset Foot
6625 status collapsed
6626
6627 \begin_layout Plain Layout
6628 その他にも,\SpecialChar LyX
6629 は,差込枠に\SpecialChar TeX
6630 コードが含まれていると画像出力に回帰するので,数式中に
6631 \begin_inset Formula $a=b\relax$
6632 \end_inset
6633
6634 のような無害な\SpecialChar TeX
6635 コードを挿入することによって,画像出力を強制することができます.
6636 \end_layout
6637
6638 \end_inset
6639
6640
6641 \end_layout
6642
6643 \begin_layout Section
6644 書誌情報と引用
6645 \end_layout
6646
6647 \begin_layout Standard
6648 XHTML出力は,書誌情報と引用を完全にサポートしています.
6649 \end_layout
6650
6651 \begin_layout Standard
6652 引用ラベルは,\SpecialChar LyX
6653 画面上のラベルを生成するのと同じ機構で生成されているので,出力中のラベルは,\SpecialChar LyX
6654 中の外見と同質またはそれよりも上質な仕上がりとなっています.連番引用を
6655 使用している場合には,\SpecialChar LyX
6656 は,画面上で表示されるような各カッコに囲まれた引用鍵を単純に表示するのではなく,[1]や[17]などの連番ラベルを出力します.著者-出版年
6657 形式の引用を使用している場合で,同じ著者-出版年の組み合わせが複数ある場合,\SpecialChar LyX
6658 は,Bib\SpecialChar TeX
6659 が行うように出版年に小文字を付します.ラベルは,書誌情報項目とともに印字さ
6660 れます.現在のところ,角括弧を丸括弧に変更するなど,ラベルの外見を変更する手段はありませんのでご注意ください.
6661 \end_layout
6662
6663 \begin_layout Standard
6664 書誌情報出力は,引用ダイアログで文献情報表示を取り扱うのと同じ機構で取り扱われているので,XHTML出力は,引用ダイアログで特定の文献項目を表示させた時のものに
6665 非常によく似ています.整形の仕方は,レイアウトファイルや望ましくはモジュールでカスタマイズすることができます.詳細については,取扱説明書『カスタマイズ篇』をご覧
6666 ください.
6667 \end_layout
6668
6669 \begin_layout Standard
6670 現在のところ,主だった瑕疵は,相互参照された情報が,関連した項目の全てに印字されてしまうことです.つまり,以下のような表示が為されます.
6671 \end_layout
6672
6673 \begin_layout Quote
6674 Jason Stanley, 
6675 \begin_inset Quotes eld
6676 \end_inset
6677
6678 Context and Logical Form
6679 \begin_inset Quotes erd
6680 \end_inset
6681
6682 , in 
6683 \emph on
6684 Language in Context: Selected Essays
6685 \emph default
6686  (Oxford: Oxford University Press, 2007), pp.
6687  30–68.
6688 \end_layout
6689
6690 \begin_layout Quote
6691 Jason Stanley, 
6692 \begin_inset Quotes eld
6693 \end_inset
6694
6695 Semantics in Context
6696 \begin_inset Quotes erd
6697 \end_inset
6698
6699 , in 
6700 \emph on
6701 Language in Context: Selected Essays
6702 \emph default
6703  (Oxford: Oxford University Press, 2007), pp.
6704  201–30.
6705 \end_layout
6706
6707 \begin_layout Standard
6708 これは,遠くないうちに修正されるでしょう.
6709 \end_layout
6710
6711 \begin_layout Standard
6712 現在のところ,節ごとの書誌情報出力はサポートされていません.複数の書誌情報がある場合には,\SpecialChar LyX
6713 は同じ情報を繰り返し出力してしまいます.
6714 \end_layout
6715
6716 \begin_layout Section
6717 索引
6718 \end_layout
6719
6720 \begin_layout Standard
6721 \SpecialChar LyX
6722 は,索引をXHTMLとして書きだすことができますが,現在のところ,若干の制約があります.
6723 \end_layout
6724
6725 \begin_layout Standard
6726 索引の書き出しは,
6727 \emph on
6728 ユーザーの手引き
6729 \emph default
6730 の索引の節に書かれているような手の込んだ方法を使おうとしないほうが,信頼性が保てます
6731 \begin_inset Foot
6732 status collapsed
6733
6734 \begin_layout Plain Layout
6735 ここでの主な問題は,これらの操作の際に,\SpecialChar LyX
6736 自身は何もしていないという点です.つまり,生の\SpecialChar LaTeX
6737 で入力しなくてはならないようなものをそのまま入力しているのです.
6738 \end_layout
6739
6740 \end_inset
6741
6742 .当該節の小節見出しに沿って,それらがどう処理されるかを説明しましょう.
6743 \end_layout
6744
6745 \begin_layout Itemize
6746 索引項目のグループ化(下層項目): \SpecialChar LyX
6747 はこれらをサポートしようと努めていますが,項目は「 ! 」(感嘆符の周りに空白)で分離しなくてはなりません.これは,そうしな
6748 いと数式などで使われているエスケープされた感嘆符をチェックするのが非常に難しくなるからです.
6749 \end_layout
6750
6751 \begin_layout Itemize
6752 ページ範囲: ページ範囲については,XHTMLでは意味がないので,全くサポートされません.その代わりに,引用項目のはじめと終わりの頁それぞれに,2つの索引項目が
6753 得られるだけです.
6754 \end_layout
6755
6756 \begin_layout Itemize
6757 相互参照: 相互参照のサポートはありません.\SpecialChar LyX
6758 が「|see\SpecialChar ldots
6759 」という下だりを持つ項目を検出すると,その部分はただ無視されて,残りの部分が通常の索引項目だとみなされま
6760 す.
6761 \end_layout
6762
6763 \begin_layout Itemize
6764 索引項目の整序: \SpecialChar LyX
6765 は整序順の変更をサポートします.\SpecialChar LyX
6766 は,最初に検出した「@」の前の部分を取り出して,それを整序に用い,最初の「@」の後の部分を実際の項目として取り
6767 出します.現在のところ,\SpecialChar LyX
6768 はエスケープされた「@」を取り扱わないので,電子メールアドレスを索引に使わないでください.
6769 \end_layout
6770
6771 \begin_layout Itemize
6772 索引項目のレイアウト: 項目は,テキスト様式ダイアログを使うなり,\SpecialChar LyX
6773 内で使用可能な方法を用いることで,索引項目を成形することができます.「項目|textbf」のよ
6774 うな文法はサポートされません.\SpecialChar LyX
6775 は,項目内にパイプ記号「|」を検出すると,パイプ記号とその後に続くものすべてを削除してしまいます.
6776 \end_layout
6777
6778 \begin_layout Itemize
6779 複数の索引: 複数の索引はサポートされていません.すべての項目は,ひとつの大きな索引として印字されます.索引が何度も印字されることを防ぐため,中心となる索引だけ
6780 を印字しますので,その索引は必ず置くようにしてください.
6781 \end_layout
6782
6783 \begin_layout Section
6784 記号一覧および用語集
6785 \end_layout
6786
6787 \begin_layout Standard
6788 現在のところ,用語集のサポートはありません.この機能の追加は,比較的容易だと思われますので,あなたの貢献をお待ちしております.
6789 \end_layout
6790
6791 \begin_layout Chapter
6792 \SpecialChar LyX
6793 サーバー
6794 \begin_inset CommandInset label
6795 LatexCommand label
6796 name "chap:LyXサーバー"
6797
6798 \end_inset
6799
6800
6801 \end_layout
6802
6803 \begin_layout Section
6804 はじめに
6805 \end_layout
6806
6807 \begin_layout Standard
6808 「\SpecialChar LyX
6809 サーバー」を使用すると,他のプログラムが,\SpecialChar LyX
6810 と通信したり,\SpecialChar LyX
6811 コマンドを実行させたり,\SpecialChar LyX
6812 の内部状態に関する情報を取得したりすることができるようになります.これは熟練し
6813 たユーザー向けの機能ですが,便利なはずです.たとえば,\SpecialChar LyX
6814 サーバーに書き込むことによって,JabRefのような書誌情報管理ソフトが,LyXに文献引用を「押し込む」こ
6815 とが可能となります.
6816 \end_layout
6817
6818 \begin_layout Section
6819 \SpecialChar LyX
6820 サーバーを開始するには
6821 \begin_inset CommandInset label
6822 LatexCommand label
6823 name "sec:サーバーを開始するには"
6824
6825 \end_inset
6826
6827
6828 \end_layout
6829
6830 \begin_layout Standard
6831 \SpecialChar LyX
6832 サーバーは,名前をつけたパイプの対を利用することで機能します.パイプは,通常
6833 \begin_inset Flex Code
6834 status collapsed
6835
6836 \begin_layout Plain Layout
6837 UserDir
6838 \end_layout
6839
6840 \end_inset
6841
6842 の下に作られ(Windowsを除く.Windowsでは,名前を付けた
6843 \emph on
6844 ローカルの
6845 \emph default
6846 パイプは
6847 \begin_inset Flex Code
6848 status collapsed
6849
6850 \begin_layout Plain Layout
6851
6852 \backslash
6853
6854 \backslash
6855 .
6856 \backslash
6857 pipe
6858 \end_layout
6859
6860 \end_inset
6861
6862 に特別なオブジェクトとして置かれます),「
6863 \begin_inset Flex Code
6864 status collapsed
6865
6866 \begin_layout Plain Layout
6867 .lyxpipe.in
6868 \end_layout
6869
6870 \end_inset
6871
6872 」および「
6873 \begin_inset Flex Code
6874 status collapsed
6875
6876 \begin_layout Plain Layout
6877 .lyxpipe.out
6878 \end_layout
6879
6880 \end_inset
6881
6882 」という名前がついています.外部プログラムは,
6883 \begin_inset Flex Code
6884 status collapsed
6885
6886 \begin_layout Plain Layout
6887 .lyxpipe.in
6888 \end_layout
6889
6890 \end_inset
6891
6892 に書き込みを行い,戻りデータを
6893 \begin_inset Flex Code
6894 status collapsed
6895
6896 \begin_layout Plain Layout
6897 .lyxpipe.out
6898 \end_layout
6899
6900 \end_inset
6901
6902 から読み出します.パイプ名の語幹は,
6903 \begin_inset Flex MenuItem
6904 status collapsed
6905
6906 \begin_layout Plain Layout
6907 ツール\SpecialChar menuseparator
6908 設定
6909 \end_layout
6910
6911 \end_inset
6912
6913 から,たとえば「
6914 \begin_inset Flex Code
6915 status collapsed
6916
6917 \begin_layout Plain Layout
6918 /home/myhome/lyxpipe
6919 \end_layout
6920
6921 \end_inset
6922
6923 」あるいはWindowsでは「
6924 \begin_inset Flex Code
6925 status collapsed
6926
6927 \begin_layout Plain Layout
6928
6929 \backslash
6930
6931 \backslash
6932 .
6933 \backslash
6934 pipe
6935 \backslash
6936 lyxpipe
6937 \end_layout
6938
6939 \end_inset
6940
6941 」などに設定することができます(ここで,lyxpipe以外の任意のファイルパス,例えば
6942 \begin_inset Flex Code
6943 status collapsed
6944
6945 \begin_layout Plain Layout
6946 "
6947 \backslash
6948
6949 \backslash
6950 .
6951 \backslash
6952 pipe
6953 \backslash
6954 my
6955 \backslash
6956 lyx
6957 \backslash
6958 pipe"
6959 \end_layout
6960
6961 \end_inset
6962
6963 なども使用できます).サーバーを開始するためには,これを
6964 \emph on
6965 手動で設定しなくてはなりません
6966 \emph default
6967
6968 \end_layout
6969
6970 \begin_layout Standard
6971 \SpecialChar LyX
6972 は,パイプを生成するに際して,「
6973 \begin_inset Flex Code
6974 status collapsed
6975
6976 \begin_layout Plain Layout
6977 .in
6978 \end_layout
6979
6980 \end_inset
6981
6982 」および「
6983 \begin_inset Flex Code
6984 status collapsed
6985
6986 \begin_layout Plain Layout
6987 .out
6988 \end_layout
6989
6990 \end_inset
6991
6992 」を付け加えます.パイプがすでに存在していれば,\SpecialChar LyX
6993 は他の\SpecialChar LyX
6994 プロセスがすでに実行中であると判断して,サーバーを開始しません.POSIX(Unix型)システムでは,なん
6995 らかの理由で,\SpecialChar LyX
6996 が終了する際に使用されていない「古い」パイプが削除されずに残ったりすると,\SpecialChar LyX
6997 はこれを削除しようとします.何らかの理由でこれが失敗した場合,手動でパイ
6998 プを削除したのちに,\SpecialChar LyX
6999 を再起動する必要があります.Windowsでは,プログラムが終了したりクラッシュしたりすると,OSがパイプを削除するので,「古い」パイプが残
7000 ることはありません.
7001 \end_layout
7002
7003 \begin_layout Standard
7004 サーバーを使用する\SpecialChar LyX
7005 プロセスを複数起動するには,それぞれのプロセスに,別のユーザーディレクトリを使用させたり,別々の
7006 \begin_inset Flex Code
7007 status collapsed
7008
7009 \begin_layout Plain Layout
7010 preferences
7011 \end_layout
7012
7013 \end_inset
7014
7015 ファイルを使用させるなど,別々の設定を使用する必要があります.
7016 \end_layout
7017
7018 \begin_layout Standard
7019 クライアントプログラムを開発しようとされているのであれば,\SpecialChar LyX
7020 サーバーからのデバッグ情報を有効にすると便利かもしれません.そのためには,Lyxを
7021 \begin_inset Flex Code
7022 status collapsed
7023
7024 \begin_layout Plain Layout
7025 lyx -dbg lyxserver
7026 \end_layout
7027
7028 \end_inset
7029
7030 として起動してください.
7031 \end_layout
7032
7033 \begin_layout Standard
7034 C++言語で書かれた完全なサンプルクライアントが,ソース頒布版の
7035 \begin_inset Newline newline
7036 \end_inset
7037
7038
7039 \begin_inset Flex Code
7040 status collapsed
7041
7042 \begin_layout Plain Layout
7043 development/lyxserver/server_monitor.cpp
7044 \end_layout
7045
7046 \end_inset
7047
7048 にあります.
7049 \end_layout
7050
7051 \begin_layout Standard
7052 もう一つの便利なツールとして,
7053 \begin_inset Flex Code
7054 status collapsed
7055
7056 \begin_layout Plain Layout
7057 src/client/lyxclient
7058 \end_layout
7059
7060 \end_inset
7061
7062 にあるコマンドラインベースのクライアントがあります.
7063 \end_layout
7064
7065 \begin_layout Section
7066 通常の通信
7067 \end_layout
7068
7069 \begin_layout Standard
7070 \SpecialChar LyX
7071 コールを発行するには,クライアントはASCIIテキスト行を入力パイプに書き込みまなくてはなりません.この行は,以下の書式を持ちます.
7072 \end_layout
7073
7074 \begin_layout Quote
7075 LYXCMD:
7076 \emph on
7077 クライアント名
7078 \emph default
7079 :
7080 \emph on
7081 関数
7082 \emph default
7083 :
7084 \emph on
7085 引数
7086 \end_layout
7087
7088 \begin_layout Description
7089 クライアント名 は,クライアントが自由に選べる名前です.これが用いられるのは,クライアントが他の要求クライアントから結果を見分けることができるように,\SpecialChar LyX
7090 が返答をす
7091 る際,クライアント名をエコーするときだけです.
7092 \end_layout
7093
7094 \begin_layout Description
7095 関数 は,\SpecialChar LyX
7096 に実行させたい関数です.これは,ミニバッファで使用するコマンドと同じです.
7097 \end_layout
7098
7099 \begin_layout Description
7100 引数 は,一部の関数のみに効力を持つオプションの引数です(たとえば,「自己挿入」LFUNは,現在のカーソル位置に引数を文章として挿入します).
7101 \end_layout
7102
7103 \begin_layout Standard
7104 \SpecialChar LyX
7105 からの返答は,出力パイプに送り出され,
7106 \end_layout
7107
7108 \begin_layout Quote
7109 INFO:
7110 \emph on
7111 クライアント名
7112 \emph default
7113 :
7114 \emph on
7115 関数
7116 \emph default
7117 :
7118 \emph on
7119 データ
7120 \end_layout
7121
7122 \begin_layout Standard
7123 の書式をしています.ここで
7124 \emph on
7125 クライアント名
7126 \emph default
7127
7128 \emph on
7129 関数
7130 \emph default
7131 は,コマンド要求からそのままエコーされますが,
7132 \emph on
7133 データ
7134 \emph default
7135 はコマンド実行の結果に依存した,多少なりとも有用な情報です.「font-state」のような一部のコマンドは,\SpecialChar LyX
7136 の内部状態に関する情報を返しますが,空のデータ応答
7137 を返すものもあります.空のデータ返答は,コマンド実行が無事終わったことを意味します.
7138 \end_layout
7139
7140 \begin_layout Standard
7141 エラーが発生した場合の\SpecialChar LyX
7142 の返答は
7143 \end_layout
7144
7145 \begin_layout Quote
7146 ERROR:
7147 \emph on
7148 クライアント名
7149 \emph default
7150 :
7151 \emph on
7152 関数
7153 \emph default
7154 :
7155 \emph on
7156 エラーメッセージ
7157 \end_layout
7158
7159 \begin_layout Standard
7160 の書式をしており,
7161 \emph on
7162 エラーメッセージ
7163 \emph default
7164 には,なぜコマンドが失敗したかの説明が入っているはずです.
7165 \end_layout
7166
7167 \begin_layout Standard
7168 (例)
7169 \end_layout
7170
7171 \begin_layout LyX-Code
7172 echo "LYXCMD:test:beginning-of-buffer:" >~/.lyxpipe.in
7173 \begin_inset Newline newline
7174 \end_inset
7175
7176 echo "LYXCMD:test:get-xy:" >~/.lyxpipe.in
7177 \begin_inset Newline newline
7178 \end_inset
7179
7180 read a <~/.lyxpipe.out
7181 \begin_inset Newline newline
7182 \end_inset
7183
7184 echo $a
7185 \end_layout
7186
7187 \begin_layout Section
7188 通知
7189 \end_layout
7190
7191 \begin_layout Standard
7192 \SpecialChar LyX
7193 は,発生しているイベントを,非同期的にクライアントに通知することができます.いまのところ,ユーザーがある
7194 \begin_inset Flex Ruby
7195 status collapsed
7196
7197 \begin_layout Plain Layout
7198
7199 \begin_inset Argument post:1
7200 status collapsed
7201
7202 \begin_layout Plain Layout
7203 キー
7204 \end_layout
7205
7206 \end_inset
7207
7208
7209 \end_layout
7210
7211 \end_inset
7212
7213 列を関数「notify」に割り当てているときのみ,\SpecialChar LyX
7214 はこの通知を行います.\SpecialChar LyX
7215 が送る文字列の書式は
7216 \end_layout
7217
7218 \begin_layout Quote
7219 \begin_inset Flex Code
7220 status collapsed
7221
7222 \begin_layout Plain Layout
7223 NOTIFY:
7224 \end_layout
7225
7226 \end_inset
7227
7228
7229 \emph on
7230 鍵列
7231 \end_layout
7232
7233 \begin_layout Standard
7234 となっていて,
7235 \emph on
7236 鍵列
7237 \emph default
7238 は,ユーザーが実際に打鍵した鍵列の印字表現になります.
7239 \end_layout
7240
7241 \begin_layout Standard
7242 この機構は,\SpecialChar LyX
7243 のコマンド群を拡張してマクロを実装するのに使用することができます.なんらかの鍵列を「notify」に割り当ててください.それから出力パイプで待機する
7244 クライアントを起動し,鍵列に応じたコマンドを読み込み,一つないし複数の\SpecialChar LyX
7245 コマンドを発行する\SpecialChar LyX
7246 要求と\SpecialChar LyX
7247 コールを使用する関数を開始するのです.
7248 \end_layout
7249
7250 \begin_layout Section
7251 単純な\SpecialChar LyX
7252 サーバープロトコル
7253 \end_layout
7254
7255 \begin_layout Standard
7256 \SpecialChar LyX
7257 は,セッション管理に使用することができる単純なプロトコルを実装しています.メッセージは,すべて
7258 \end_layout
7259
7260 \begin_layout Quote
7261 LYXSRV:
7262 \emph on
7263 クライアント名
7264 \emph default
7265 :
7266 \emph on
7267 プロトコルメッセージ
7268 \end_layout
7269
7270 \begin_layout Standard
7271 の書式をしており,
7272 \emph on
7273 プロトコルメッセージ
7274 \emph default
7275 は「hello」ないし「bye」です.クライアントから「hello」を受け取ると,\SpecialChar LyX
7276 はメッセージを聴いていることをクライアントに伝えるために返答をし,\SpecialChar LyX
7277 が終了するこ
7278 とをクライアントに伝えるのには,\SpecialChar LyX
7279 が「bye」を送信します.
7280 \end_layout
7281
7282 \begin_layout Section
7283 DVIとPDFの遡及検索
7284 \end_layout
7285
7286 \begin_layout Standard
7287 DVI/PDFビューア
7288 \begin_inset Foot
7289 status collapsed
7290
7291 \begin_layout Plain Layout
7292 PDFの遡及検索機能を提供しているビューアには,KDE/Linux上のOkularと
7293 \lang english
7294 Qpdfview on Unix
7295 \lang japanese
7296 とMac OS X上のSkim,Windows上のSumatraPDFがあります.
7297 \end_layout
7298
7299 \end_inset
7300
7301 には,遡及検索(reverse searchないしinverse searchと呼ばれます)機能を提供しているものがあります.これを使えば,DVI/PDF出力の
7302 特定の場所をクリックすることによって,\SpecialChar LyX
7303 の文書中で対応する行にカーソルを移動させることができます.これを実現するためには,ビューアは\SpecialChar LyX
7304 と情報交換を行う必要があります
7305 .これは,命名パイプ(
7306 \emph on
7307 lyxpipe
7308 \emph default
7309 )を使用するか,\SpecialChar LyX
7310 が作業ディレクトリに生成するUNIXドメインソケット(
7311 \emph on
7312 lyxsocket
7313 \emph default
7314 )を使用する(これは
7315 \begin_inset Flex Code
7316 status collapsed
7317
7318 \begin_layout Plain Layout
7319 lyxclient
7320 \end_layout
7321
7322 \end_inset
7323
7324 プログラムが\SpecialChar LyX
7325 と通信するのに使用している方法です)ことで,\SpecialChar LyX
7326 サーバを経由して実現することができます.場合によっては,ビューアと\SpecialChar LyX
7327 を橋渡しする補助スクリプトを必要とする
7328 ことがあるかもしれませんが,それ以外は,ビューアは\SpecialChar LyX
7329 と直接通信することができます.これは,選んだビューアと基本ソフトに依存します.また,必要とされるビューアの設定
7330 法と遡及検索が実際に行われる方法とにも依存します.したがって,下記では個々のビューア毎の遡及検索の設定の仕方を説明することとします.その前に,DVI/PDF出力
7331 で遡及検索を有効にするためには,一般に何が必要とされるかを説明します.
7332 \end_layout
7333
7334 \begin_layout Subsection
7335 \begin_inset CommandInset label
7336 LatexCommand label
7337 name "subsec:遡及検索"
7338
7339 \end_inset
7340
7341 自動有効化
7342 \end_layout
7343
7344 \begin_layout Standard
7345 ツールバーで
7346 \begin_inset Info
7347 type  "icon"
7348 arg   "buffer-toggle-output-sync"
7349 \end_inset
7350
7351 ボタンを押せば,ほとんどの場合,\SpecialChar LyX
7352 がすべてをうまくこなしてくれます.あるいは,
7353 \begin_inset Flex MenuItem
7354 status collapsed
7355
7356 \begin_layout Plain Layout
7357 文書\SpecialChar menuseparator
7358 設定\SpecialChar menuseparator
7359 形式
7360 \end_layout
7361
7362 \end_inset
7363
7364 メニューで
7365 \begin_inset Flex MenuItem
7366 status collapsed
7367
7368 \begin_layout Plain Layout
7369 出力と同期
7370 \end_layout
7371
7372 \end_inset
7373
7374 にチェックを入れることで有効にすることもできます.その場合,\SpecialChar LyX
7375 は,自動的に,必要なSync\SpecialChar TeX
7376 マクロ(PDFの場合)や,srcltxパッケージ(DVIの場合)を挿入し
7377 てくれます.このオプションは,
7378 \begin_inset Flex MenuItem
7379 status collapsed
7380
7381 \begin_layout Plain Layout
7382 表示/更新
7383 \end_layout
7384
7385 \end_inset
7386
7387 ツールバーからも容易にアクセスすることができます.
7388 \end_layout
7389
7390 \begin_layout Standard
7391 もし,これとは別の設定が必要な場合には,
7392 \begin_inset Flex MenuItem
7393 status collapsed
7394
7395 \begin_layout Plain Layout
7396 文書\SpecialChar menuseparator
7397 設定\SpecialChar menuseparator
7398 出力\SpecialChar menuseparator
7399 出力と同期
7400 \end_layout
7401
7402 \end_inset
7403
7404 の直下にあるドロップダウンボックスから,自製マクロを選択ないし入力することができます.
7405 \end_layout
7406
7407 \begin_layout Standard
7408 方式として
7409 \begin_inset Flex Code
7410 status collapsed
7411
7412 \begin_layout Plain Layout
7413
7414 \backslash
7415 synctex=1
7416 \end_layout
7417
7418 \end_inset
7419
7420 を用いると,gzip圧縮が有効となることに注意してください.使用しているビューアがgzip圧縮をサポートしていない場合には,代わりに
7421 \begin_inset Flex Code
7422 status collapsed
7423
7424 \begin_layout Plain Layout
7425
7426 \backslash
7427 synctex=-1
7428 \end_layout
7429
7430 \end_inset
7431
7432 を指定してください.
7433 \end_layout
7434
7435 \begin_layout Standard
7436 また,
7437 \begin_inset Flex Code
7438 status collapsed
7439
7440 \begin_layout Plain Layout
7441 srcltx
7442 \end_layout
7443
7444 \end_inset
7445
7446 パッケージや
7447 \begin_inset Flex Code
7448 status collapsed
7449
7450 \begin_layout Plain Layout
7451 src-specials
7452 \end_layout
7453
7454 \end_inset
7455
7456 を取り込むと,組版上,不具合が生じることがあるのでご注意ください.したがって,
7457 \begin_inset Flex Code
7458 status collapsed
7459
7460 \begin_layout Plain Layout
7461 srcltx
7462 \end_layout
7463
7464 \end_inset
7465
7466 パッケージや
7467 \begin_inset Flex Code
7468 status collapsed
7469
7470 \begin_layout Plain Layout
7471 src-specials
7472 \end_layout
7473
7474 \end_inset
7475
7476 を使用している場合には,最終版を組版する際には,出力同期を無効にするべきです.
7477 \end_layout
7478
7479 \begin_layout Standard
7480 自動設定でカバーされている範囲よりも,さらに特殊なものが必要な場合には,出力同期を手動で設定する仕方を述べた次節をお読みください.自動設定で事足りる場合には,自
7481 動設定・手動設定ともに必要となるビューア上の設定を述べた,第
7482 \begin_inset CommandInset ref
7483 LatexCommand ref
7484 reference "subsec:特定のビューアを設定して使うには"
7485
7486 \end_inset
7487
7488 節に進むことができます.
7489 \end_layout
7490
7491 \begin_layout Subsection
7492 手動有効化
7493 \end_layout
7494
7495 \begin_layout Standard
7496 \SpecialChar LaTeX
7497 は,遡及検索のために複数の方法を提供しています.ある方法は
7498 \begin_inset Flex Code
7499 status collapsed
7500
7501 \begin_layout Plain Layout
7502 latex/pdflatex
7503 \end_layout
7504
7505 \end_inset
7506
7507 プログラムに組み込まれており,他の方法は外部パッケージとして提供されています.どちらを選択するかは,お使いの\SpecialChar LaTeX
7508 頒布版が既に特定の方法を提供しているか(組み込みによ
7509 る方法は比較的新しいものです)と,お使いのビューアがそれに対応しているかに依存します.使用可能な方法を以下に述べます.
7510 \end_layout
7511
7512 \begin_layout Subsubsection*
7513 src-special経由のDVI組み込み検索(DVIのみ)
7514 \end_layout
7515
7516 \begin_layout Standard
7517 この方法は,DVIファイルに遡及検索に必要な情報を追加するものです.これは,かなり前の\SpecialChar LaTeX
7518 から利用可能となっており(比較的最近の\SpecialChar LaTeX
7519 頒布版はすべて対応しています),安定
7520 して動作します.これを有効にするには,
7521 \begin_inset Flex MenuItem
7522 status collapsed
7523
7524 \begin_layout Plain Layout
7525 設定\SpecialChar menuseparator
7526 ファイル処理\SpecialChar menuseparator
7527 変換子
7528 \end_layout
7529
7530 \end_inset
7531
7532
7533 \begin_inset Flex MenuItem
7534 status collapsed
7535
7536 \begin_layout Plain Layout
7537 LaTeX (plain)->DVI
7538 \end_layout
7539
7540 \end_inset
7541
7542 ないし
7543 \begin_inset Flex MenuItem
7544 status collapsed
7545
7546 \begin_layout Plain Layout
7547 LaTeX (plain)->DraftDVI
7548 \end_layout
7549
7550 \end_inset
7551
7552 変換子を
7553 \begin_inset Flex Code
7554 status collapsed
7555
7556 \begin_layout Plain Layout
7557 latex -src-specials $$i
7558 \end_layout
7559
7560 \end_inset
7561
7562 に変更します.もしこれが動作しないときは,お使いの\SpecialChar LaTeX
7563 エンジンが違うオプションを必要としていないか確認してください(頒布版によっては文法の異なることがあります).
7564 \end_layout
7565
7566 \begin_layout Subsubsection*
7567 外部パッケージ(PDFSyncおよびsrcltx)
7568 \end_layout
7569
7570 \begin_layout Standard
7571
7572 \emph on
7573 pdfsync
7574 \emph default
7575 および
7576 \emph on
7577 srcltx
7578 \emph default
7579 パッケージは,PDF出力(pdflatex経由)およびDVI出力での遡及検索を提供します.これを有効にするには,\SpecialChar LyX
7580 プリアンブルで以下のようにパッケージを読み込んで
7581 ください.
7582 \end_layout
7583
7584 \begin_layout Itemize
7585 PDFの遡及検索には
7586 \begin_inset Flex Code
7587 status collapsed
7588
7589 \begin_layout Plain Layout
7590
7591 \backslash
7592 usepackage{pdfsync}
7593 \end_layout
7594
7595 \end_inset
7596
7597
7598 \end_layout
7599
7600 \begin_layout Itemize
7601 DVIの遡及検索には
7602 \begin_inset Flex Code
7603 status collapsed
7604
7605 \begin_layout Plain Layout
7606
7607 \backslash
7608 usepackage[active]{srcltx}
7609 \end_layout
7610
7611 \end_inset
7612
7613
7614 \end_layout
7615
7616 \begin_layout Standard
7617 と書きます.DVIとPDFの両方の遡及検索を実行できるようにするためには,プリアンブルに以下の行を挿入する方法があります.
7618 \end_layout
7619
7620 \begin_layout LyX-Code
7621
7622 \backslash
7623 usepackage{ifpdf}
7624 \begin_inset Newline newline
7625 \end_inset
7626
7627
7628 \backslash
7629 ifpdf
7630 \begin_inset Newline newline
7631 \end_inset
7632
7633   
7634 \backslash
7635 usepackage{pdfsync}
7636 \begin_inset Newline newline
7637 \end_inset
7638
7639
7640 \backslash
7641 else
7642 \begin_inset Newline newline
7643 \end_inset
7644
7645   
7646 \backslash
7647 usepackage[active]{srcltx}
7648 \begin_inset Newline newline
7649 \end_inset
7650
7651
7652 \backslash
7653 fi
7654 \end_layout
7655
7656 \begin_layout Standard
7657 このようにすれば,DVIでもPDF(pdflatex)でも正しいパッケージを使いながら,ファイルを閲覧することができます.
7658 \end_layout
7659
7660 \begin_layout Standard
7661 なお,PDFSyncは,文書の出力レイアウトに干渉する可能性があるので注意してください.したがって,仕上がり文書ではPDFSyncを無効にすることをお勧めします
7662
7663 \end_layout
7664
7665 \begin_layout Subsubsection*
7666 Sync\SpecialChar TeX
7667 を使った組み込み遡及検索(DVIおよびPDF)
7668 \end_layout
7669
7670 \begin_layout Standard
7671 \begin_inset Flex Code
7672 status collapsed
7673
7674 \begin_layout Plain Layout
7675 (pdf)latex
7676 \end_layout
7677
7678 \end_inset
7679
7680 の最近のバージョンは,PDFおよびDVI両方の遡及検索を組み込みでサポートしています.このいわゆる
7681 \emph on
7682 Sync\SpecialChar TeX
7683
7684 \emph default
7685 機能は,主に,PDFSyncパッケージをpdftexプログラムへ統合したことと,それをsrc-specialsアプローチへ取り込んだことの成果です.これを使用す
7686 るためには,少なくとも\SpecialChar TeX
7687 Live 2008か最近のMik\SpecialChar TeX
7688 頒布版が必要です.また,既にSync\SpecialChar TeX
7689 サポートを提供しているPDFビューアは少ししかありません(UNIX上の
7690 OkularとQpdfview,Mac上のSkim,及びWindows上のSumatraPDFなど.詳細は次節を参照のこと).
7691 \end_layout
7692
7693 \begin_layout Standard
7694 DVI出力でSync\SpecialChar TeX
7695 を有効にするには,
7696 \begin_inset Flex MenuItem
7697 status collapsed
7698
7699 \begin_layout Plain Layout
7700 設定\SpecialChar menuseparator
7701 ファイル処理\SpecialChar menuseparator
7702 変換子
7703 \end_layout
7704
7705 \end_inset
7706
7707
7708 \begin_inset Flex Noun
7709 status collapsed
7710
7711 \begin_layout Plain Layout
7712 LaTeX (plain) -> DVI
7713 \end_layout
7714
7715 \end_inset
7716
7717 ないし
7718 \begin_inset Flex Noun
7719 status collapsed
7720
7721 \begin_layout Plain Layout
7722 LaTeX (plain) -> DraftDVI
7723 \end_layout
7724
7725 \end_inset
7726
7727 変換子を
7728 \begin_inset Flex Code
7729 status collapsed
7730
7731 \begin_layout Plain Layout
7732 latex -synctex=1 $$i
7733 \end_layout
7734
7735 \end_inset
7736
7737 に変更します.PDF出力用には,
7738 \begin_inset Flex Noun
7739 status collapsed
7740
7741 \begin_layout Plain Layout
7742 LaTeX (pdflatex) -> PDF (pdflatex)
7743 \end_layout
7744
7745 \end_inset
7746
7747 変換子を
7748 \begin_inset Flex Code
7749 status collapsed
7750
7751 \begin_layout Plain Layout
7752 pdflatex -synctex=1 $$i
7753 \end_layout
7754
7755 \end_inset
7756
7757 に変更してください.お使いのビューアが下記に記述されていない場合や,万一うまくいかない場合にはまた,ビューアをSync\SpecialChar TeX
7758 で使うのに設定を行う必要があるかどうか,お
7759 使いのビューアの取扱説明書をご確認ください.
7760 \begin_inset Foot
7761 status collapsed
7762
7763 \begin_layout Plain Layout
7764 \begin_inset Flex Code
7765 status collapsed
7766
7767 \begin_layout Plain Layout
7768 -synctex=1
7769 \end_layout
7770
7771 \end_inset
7772
7773 オプションは,gzip圧縮を有効にします.お使いのビューアがgzip圧縮をサポートしていない場合には,代わりに
7774 \begin_inset Flex Code
7775 status collapsed
7776
7777 \begin_layout Plain Layout
7778 -synctex=-1
7779 \end_layout
7780
7781 \end_inset
7782
7783 を使用してください.
7784 \end_layout
7785
7786 \end_inset
7787
7788
7789 \end_layout
7790
7791 \begin_layout Subsection
7792 特定のビューアを設定して使うには
7793 \begin_inset CommandInset label
7794 LatexCommand label
7795 name "subsec:特定のビューアを設定して使うには"
7796
7797 \end_inset
7798
7799
7800 \end_layout
7801
7802 \begin_layout Subsubsection*
7803 Xdvi(全プラットフォーム)
7804 \end_layout
7805
7806 \begin_layout Standard
7807 \SpecialChar LyX
7808 は,
7809 \begin_inset Flex Code
7810 status collapsed
7811
7812 \begin_layout Plain Layout
7813 lyxclient
7814 \end_layout
7815
7816 \end_inset
7817
7818 プログラムを自動的に使うのに必要なフックを,既に提供しているので,
7819 \begin_inset Flex Code
7820 status collapsed
7821
7822 \begin_layout Plain Layout
7823 xdvi
7824 \end_layout
7825
7826 \end_inset
7827
7828 を使用する場合には,DVI遡及検索を実行するのに他にするべきことはありません.使用中の文書を上記で述べたように設定するだけです(遡及検索は,Ctrl-クリックか
7829 ,Mac OS X上ではAlt-クリックで始動します).
7830 \end_layout
7831
7832 \begin_layout Standard
7833 しかし,何らかの理由で,\SpecialChar LyX
7834 と通信するのにソケットではなく命名パイプを使用したい場合には,
7835 \begin_inset Flex MenuItem
7836 status collapsed
7837
7838 \begin_layout Plain Layout
7839 設定\SpecialChar menuseparator
7840 ファイル処理\SpecialChar menuseparator
7841 ファイル書式
7842 \end_layout
7843
7844 \end_inset
7845
7846 のDVIビューアを
7847 \begin_inset Flex Code
7848 status collapsed
7849
7850 \begin_layout Plain Layout
7851 xdvi -editor "lyxeditor.sh %f %l"
7852 \end_layout
7853
7854 \end_inset
7855
7856
7857 \begin_inset Flex Code
7858 status collapsed
7859
7860 \begin_layout Plain Layout
7861 lyxeditor.sh
7862 \end_layout
7863
7864 \end_inset
7865
7866 は適切なスクリプト名)に変更してください
7867 \begin_inset Foot
7868 status collapsed
7869
7870 \begin_layout Plain Layout
7871 Mac OS X上では,
7872 \begin_inset Flex Code
7873 status collapsed
7874
7875 \begin_layout Plain Layout
7876 DISPLAY=:0.0 xdvi -editor "lyxeditor.sh %f %l"
7877 \end_layout
7878
7879 \end_inset
7880
7881 としなくてはなりません.
7882 \end_layout
7883
7884 \end_inset
7885
7886 .たとえば,最低限のシェルスクリプトは
7887 \end_layout
7888
7889 \begin_layout LyX-Code
7890 #!/bin/sh
7891 \begin_inset Newline newline
7892 \end_inset
7893
7894 LYXPIPE="/path/to/lyxpipe"
7895 \begin_inset Newline newline
7896 \end_inset
7897
7898 COMMAND="LYXCMD:revdvi:server-goto-file-row:$1 $2"
7899 \begin_inset Newline newline
7900 \end_inset
7901
7902 echo "$COMMAND" > "${LYXPIPE}".in || exit
7903 \begin_inset Newline newline
7904 \end_inset
7905
7906 read TMP < "${LYXPIPE}".out || exit
7907 \end_layout
7908
7909 \begin_layout Standard
7910 のようになります.ここで
7911 \begin_inset Flex Code
7912 status collapsed
7913
7914 \begin_layout Plain Layout
7915 /path/to/lyxpipe
7916 \end_layout
7917
7918 \end_inset
7919
7920 は,
7921 \begin_inset Flex MenuItem
7922 status collapsed
7923
7924 \begin_layout Plain Layout
7925 設定\SpecialChar menuseparator
7926 パス
7927 \end_layout
7928
7929 \end_inset
7930
7931 で指定したLyXServerパイプのパスを指定してください.
7932 \begin_inset Foot
7933 status collapsed
7934
7935 \begin_layout Plain Layout
7936 ソース頒布版の
7937 \begin_inset Flex Code
7938 status collapsed
7939
7940 \begin_layout Plain Layout
7941 development/tools
7942 \end_layout
7943
7944 \end_inset
7945
7946 フォルダには,ユーザが設定した
7947 \emph on
7948 lyxpipe
7949 \emph default
7950 を探し出す
7951 \begin_inset Flex Code
7952 status collapsed
7953
7954 \begin_layout Plain Layout
7955 lyxeditor
7956 \end_layout
7957
7958 \end_inset
7959
7960 スクリプトがあります.
7961 \end_layout
7962
7963 \end_inset
7964
7965
7966 \end_layout
7967
7968 \begin_layout Subsubsection*
7969 MacDviX(Mac OS X)
7970 \end_layout
7971
7972 \begin_layout Standard
7973 \begin_inset Flex Code
7974 status collapsed
7975
7976 \begin_layout Plain Layout
7977 /Applications/MacDviX_Folder/calleditor.script
7978 \end_layout
7979
7980 \end_inset
7981
7982 の終わりに
7983 \end_layout
7984
7985 \begin_layout LyX-Code
7986 /Applications/LyX.app/Contents/MacOS/lyxeditor "$2" $1
7987 \begin_inset Newline newline
7988 \end_inset
7989
7990 exit 1
7991 \end_layout
7992
7993 \begin_layout Standard
7994 という行を付け加えてください.Applicationsフォルダ以外の場所に\SpecialChar LyX
7995 を導入した場合には,それに従って上記の行を修正してください.
7996 \end_layout
7997
7998 \begin_layout Standard
7999 遡及検索は,Alt-クリック(OPTION-クリック)で始動します.
8000 \end_layout
8001
8002 \begin_layout Subsubsection*
8003 Skim(Mac OS X)
8004 \end_layout
8005
8006 \begin_layout Standard
8007 \begin_inset Flex MenuItem
8008 status collapsed
8009
8010 \begin_layout Plain Layout
8011 設定\SpecialChar menuseparator
8012 ファイル処理\SpecialChar menuseparator
8013 ファイル書式\SpecialChar menuseparator
8014 PDF (pdflatex)
8015 \end_layout
8016
8017 \end_inset
8018
8019 のビューア設定に
8020 \begin_inset Flex Code
8021 status collapsed
8022
8023 \begin_layout Plain Layout
8024 open -a Skim.app $$i
8025 \end_layout
8026
8027 \end_inset
8028
8029 と入力し,
8030 \begin_inset Flex MenuItem
8031 status collapsed
8032
8033 \begin_layout Plain Layout
8034 Skim\SpecialChar menuseparator
8035 設定\SpecialChar menuseparator
8036 Sync
8037 \end_layout
8038
8039 \end_inset
8040
8041 でLyXを選択してください.
8042 \end_layout
8043
8044 \begin_layout Standard
8045 遡及検索は,COMMAND-SHIFT-クリックで始動します.
8046 \end_layout
8047
8048 \begin_layout Subsubsection*
8049 Evince(GNOME)
8050 \end_layout
8051
8052 \begin_layout Standard
8053 Evinceでは遡及検索はそのままでは動きませんが,サードパーティのヘルパースクリプトを使用すれば,利用可能になります.詳細については,
8054 \begin_inset CommandInset href
8055 LatexCommand href
8056 target "http://wiki.lyx.org/LyX/SyncTeX"
8057 literal "false"
8058
8059 \end_inset
8060
8061 を参照してください.
8062 \end_layout
8063
8064 \begin_layout Subsubsection*
8065 Okular(KDE)
8066 \end_layout
8067
8068 \begin_layout Standard
8069 \begin_inset Flex Noun
8070 status collapsed
8071
8072 \begin_layout Plain Layout
8073 設定\SpecialChar menuseparator
8074 Okularを設定\SpecialChar menuseparator
8075 エディタ
8076 \end_layout
8077
8078 \end_inset
8079
8080 で「Lyxクライアント」をエディタとして選択してください.これによって適切なコマンド(
8081 \begin_inset Flex Code
8082 status collapsed
8083
8084 \begin_layout Plain Layout
8085 lyxclient -g %f %l
8086 \end_layout
8087
8088 \end_inset
8089
8090 )が挿入されます.
8091 \end_layout
8092
8093 \begin_layout Standard
8094 遡及検索は,SHIFT-クリックで始動します.
8095 \end_layout
8096
8097 \begin_layout Subsubsection*
8098 Qpdfview(UNIX)
8099 \end_layout
8100
8101 \begin_layout Standard
8102 Qpdfviewは,第0.3.5版以降,Sync\SpecialChar TeX
8103 をサポートしています.
8104 \begin_inset Flex MenuItem
8105 status collapsed
8106
8107 \begin_layout Plain Layout
8108 Edit\SpecialChar menuseparator
8109 Settings\SpecialChar menuseparator
8110 Behavior
8111 \end_layout
8112
8113 \end_inset
8114
8115 を開いて「Source editor」項目の入力フィールドをクリックし,
8116 \begin_inset Flex Code
8117 status collapsed
8118
8119 \begin_layout Plain Layout
8120 lyxclient -g %1 %2
8121 \end_layout
8122
8123 \end_inset
8124
8125 というコマンドを入力してください.
8126 \end_layout
8127
8128 \begin_layout Standard
8129 遡及検索は,ダブルクリックで始動します.
8130 \end_layout
8131
8132 \begin_layout Subsubsection*
8133 YAP(Windows)
8134 \end_layout
8135
8136 \begin_layout Standard
8137 yapを起動し,
8138 \begin_inset Flex MenuItem
8139 status collapsed
8140
8141 \begin_layout Plain Layout
8142 View\SpecialChar menuseparator
8143 Options
8144 \end_layout
8145
8146 \end_inset
8147
8148 メニューを選択し,「Inverse DVI Search」タブを選択します.「New\SpecialChar ldots
8149 」ボタンをクリックして開くウィンドウの「Name:」フィールドに「\SpecialChar LyX
8150
8151  Editor」(または自分の好きな名称)と入力してください.「\SpecialChar ldots
8152 」というラベルのボタンをクリックしてファイルダイアログを開き,バッチファイル
8153 \begin_inset Flex Code
8154 status collapsed
8155
8156 \begin_layout Plain Layout
8157 lyxeditor.bat
8158 \end_layout
8159
8160 \end_inset
8161
8162 (以下参照)のあるディレクトリを見つけます.
8163 \begin_inset Flex Code
8164 status collapsed
8165
8166 \begin_layout Plain Layout
8167 lyxeditor.bat
8168 \end_layout
8169
8170 \end_inset
8171
8172 を選択してプログラムの引数を
8173 \begin_inset Flex Code
8174 status collapsed
8175
8176 \begin_layout Plain Layout
8177 %f %l
8178 \end_layout
8179
8180 \end_inset
8181
8182 と指定してください.
8183 \begin_inset Flex Code
8184 status collapsed
8185
8186 \begin_layout Plain Layout
8187 lyxeditor.bat
8188 \end_layout
8189
8190 \end_inset
8191
8192 は,
8193 \emph on
8194 lyxpipe
8195 \emph default
8196 を通じて\SpecialChar LyX
8197 と通信するためのラッパとして使用され,以下のようになっています.
8198 \end_layout
8199
8200 \begin_layout LyX-Code
8201 @echo off
8202 \begin_inset Newline newline
8203 \end_inset
8204
8205 echo LYXCMD:revdvi:server-goto-file-row:%~1 %2> 
8206 \backslash
8207
8208 \backslash
8209 .
8210 \backslash
8211 pipe
8212 \backslash
8213 lyxpipe.in
8214 \begin_inset Newline newline
8215 \end_inset
8216
8217 type 
8218 \backslash
8219
8220 \backslash
8221 .
8222 \backslash
8223 pipe
8224 \backslash
8225 lyxpipe.out
8226 \end_layout
8227
8228 \begin_layout Standard
8229 \SpecialChar LyX
8230 で指定した\SpecialChar LyX
8231 Serverパイプパスが,
8232 \begin_inset Flex Code
8233 status collapsed
8234
8235 \begin_layout Plain Layout
8236
8237 \backslash
8238
8239 \backslash
8240 .
8241 \backslash
8242 pipe
8243 \backslash
8244 lyxpipe
8245 \end_layout
8246
8247 \end_inset
8248
8249 となっていることを確認するか,
8250 \begin_inset Flex Code
8251 status collapsed
8252
8253 \begin_layout Plain Layout
8254 lyxeditor.bat
8255 \end_layout
8256
8257 \end_inset
8258
8259 ラッパの方を適切に修正してください.
8260 \end_layout
8261
8262 \begin_layout Standard
8263 yapでは,遡及検索はダブルクリックで始動します.
8264 \end_layout
8265
8266 \begin_layout Subsubsection*
8267 SumatraPDF(Windows)
8268 \end_layout
8269
8270 \begin_layout Standard
8271 SumatraPDFを遡及検索で使用するためには,
8272 \begin_inset Flex MenuItem
8273 status collapsed
8274
8275 \begin_layout Plain Layout
8276 設定\SpecialChar menuseparator
8277 ファイル処理\SpecialChar menuseparator
8278 ファイル書式\SpecialChar menuseparator
8279 PDF (pdflatex)
8280 \end_layout
8281
8282 \end_inset
8283
8284 のビューア設定で
8285 \begin_inset Flex Code
8286 status collapsed
8287
8288 \begin_layout Plain Layout
8289 SumatraPDF -inverse-search "lyxeditor.bat "%f" %l"
8290 \end_layout
8291
8292 \end_inset
8293
8294
8295 \begin_inset Flex Code
8296 status collapsed
8297
8298 \begin_layout Plain Layout
8299 lyxeditor.bat
8300 \end_layout
8301
8302 \end_inset
8303
8304 は上記のラッパ)と入力してください.SumatraPDF.exeがコマンドPATHにない場合,フルファイル名を使用してください.
8305 \end_layout
8306
8307 \begin_layout Standard
8308 遡及検索はダブルクリックで始動します.
8309 \end_layout
8310
8311 \begin_layout Subsubsection*
8312 YAP(Cygwin)
8313 \end_layout
8314
8315 \begin_layout Standard
8316 まずはじめに,yapがWindows環境での既定のDVIビューアになっていることを確認してから,yapを起動し,
8317 \begin_inset Flex MenuItem
8318 status collapsed
8319
8320 \begin_layout Plain Layout
8321 View\SpecialChar menuseparator
8322 Options
8323 \end_layout
8324
8325 \end_inset
8326
8327 メニューを選択し,「Inverse DVI Search」タブを選択します.「New\SpecialChar ldots
8328 」ボタンをクリックして開くウィンドウの「Name:」フィールドに「\SpecialChar LyX
8329
8330  Editor」(または自分の好きな名称)と入力してください.「\SpecialChar ldots
8331 」というラベルのボタンをクリックしてファイルダイアログを開き,バッチファイル
8332 \begin_inset Flex Code
8333 status collapsed
8334
8335 \begin_layout Plain Layout
8336 lyxeditor.exe
8337 \end_layout
8338
8339 \end_inset
8340
8341 プログラム(これは,Cygwinでは既定で\SpecialChar LyX
8342 実行ファイルとともに導入されます)のあるディレクトリを見つけます.
8343 \begin_inset Flex Code
8344 status collapsed
8345
8346 \begin_layout Plain Layout
8347 lyxeditor.exe
8348 \end_layout
8349
8350 \end_inset
8351
8352 を選択してプログラムの引数を
8353 \begin_inset Flex Code
8354 status collapsed
8355
8356 \begin_layout Plain Layout
8357 -g %f %l
8358 \end_layout
8359
8360 \end_inset
8361
8362 と指定してください.これによって,\SpecialChar LyX
8363 との通信に
8364 \emph on
8365 lyxsocket
8366 \emph default
8367 が使用されるようになります.何らかの理由で
8368 \emph on
8369 lyxpipe
8370 \emph default
8371 を使用したい場合には,
8372 \begin_inset Flex Code
8373 status collapsed
8374
8375 \begin_layout Plain Layout
8376 -g
8377 \end_layout
8378
8379 \end_inset
8380
8381 オプションを削除して,\SpecialChar LyX
8382 設定で\SpecialChar LyX
8383 Serverパイプパスを指定することを忘れないでください.
8384 \end_layout
8385
8386 \begin_layout Standard
8387 yapでは,遡及検索はダブルクリックで始動します.
8388 \end_layout
8389
8390 \begin_layout Subsubsection*
8391 SumatraPDF(Cygwin)
8392 \end_layout
8393
8394 \begin_layout Standard
8395 SumatraPDFを遡及検索で使用するためには,
8396 \begin_inset Flex MenuItem
8397 status collapsed
8398
8399 \begin_layout Plain Layout
8400 設定\SpecialChar menuseparator
8401 ファイル処理\SpecialChar menuseparator
8402 ファイル書式\SpecialChar menuseparator
8403 PDF (pdflatex)
8404 \end_layout
8405
8406 \end_inset
8407
8408 のビューア設定で
8409 \begin_inset Flex Code
8410 status collapsed
8411
8412 \begin_layout Plain Layout
8413 SumatraPDF.sh
8414 \end_layout
8415
8416 \end_inset
8417
8418 と入力してください.ここで
8419 \begin_inset Flex Code
8420 status collapsed
8421
8422 \begin_layout Plain Layout
8423 SumatraPDF.sh
8424 \end_layout
8425
8426 \end_inset
8427
8428 は以下のようなスクリプトです(お使いのコマンドパスに置きます.
8429 \begin_inset Flex Code
8430 status collapsed
8431
8432 \begin_layout Plain Layout
8433 /usr/local/bin
8434 \end_layout
8435
8436 \end_inset
8437
8438 がもっとも良い選択肢でしょう).
8439 \end_layout
8440
8441 \begin_layout LyX-Code
8442 #!/bin/bash
8443 \begin_inset Newline newline
8444 \end_inset
8445
8446 cd $(dirname $1)
8447 \begin_inset Newline newline
8448 \end_inset
8449
8450 SumatraPDF -inverse-search "lyxeditor -g %f %l" $(basename $1)
8451 \end_layout
8452
8453 \begin_layout Standard
8454 SumatraPDFは,Windowsネイティブのアプリケーションであり,\SpecialChar LyX
8455 のCygwin版が使用するPOSIXパスを理解しないので,このラッパスクリプトが必要と
8456 なります.SumatraPDF.exeがお使いのコマンドパスにない場合は,上記のスクリプトでPOSIXのフルパスを使用してください.
8457 \begin_inset Flex Code
8458 status collapsed
8459
8460 \begin_layout Plain Layout
8461 -g
8462 \end_layout
8463
8464 \end_inset
8465
8466
8467 \emph on
8468 lyxsocket
8469 \emph default
8470 経由の通信を有効にします.ここでも,
8471 \emph on
8472 lyxpipe
8473 \emph default
8474 を使用したい場合には,
8475 \begin_inset Flex Code
8476 status collapsed
8477
8478 \begin_layout Plain Layout
8479 -g
8480 \end_layout
8481
8482 \end_inset
8483
8484 オプションを削除して,\SpecialChar LyX
8485 設定で\SpecialChar LyX
8486 Serverパイプパスを指定することを忘れないでください.
8487 \end_layout
8488
8489 \begin_layout Standard
8490 遡及検索はダブルクリックで始動します.
8491 \end_layout
8492
8493 \begin_layout Section
8494 順検索
8495 \end_layout
8496
8497 \begin_layout Standard
8498 順検索とは,名前が示すとおり,いわば遡及検索の「逆」を意味します.すなわち,\SpecialChar LyX
8499 内部から,ビューアに特定の箇所を表示させることを可能にします.(以下に説明するように
8500 )もし順検索の準備ができていれば,カーソルを\SpecialChar LyX
8501 文書の好きなところに置いて,
8502 \begin_inset Flex MenuItem
8503 status collapsed
8504
8505 \begin_layout Plain Layout
8506 移動\SpecialChar menuseparator
8507 順検索
8508 \end_layout
8509
8510 \end_inset
8511
8512 を選択すると(あるいはマウスの右クリックで表示される文脈依存メニューから
8513 \begin_inset Flex MenuItem
8514 status collapsed
8515
8516 \begin_layout Plain Layout
8517 順検索
8518 \end_layout
8519
8520 \end_inset
8521
8522 を選択してもよい),ビューアも同じ箇所に移動します.もちろん,使用しているビューアが,この機能をサポートしていなくてはなりません.
8523 \end_layout
8524
8525 \begin_layout Standard
8526 順検索を有効にするためには,生成されたPDF/DVI出力ファイルに,\SpecialChar TeX
8527 ソースに関する情報を追加する必要があります.これは,第
8528 \begin_inset CommandInset ref
8529 LatexCommand ref
8530 reference "subsec:遡及検索"
8531
8532 \end_inset
8533
8534 節に述べられている方法で実行することができます.
8535 \end_layout
8536
8537 \begin_layout Standard
8538 次に,
8539 \begin_inset Flex MenuItem
8540 status collapsed
8541
8542 \begin_layout Plain Layout
8543 ツール\SpecialChar menuseparator
8544 設定\SpecialChar menuseparator
8545 出力\SpecialChar menuseparator
8546 一般
8547 \end_layout
8548
8549 \end_inset
8550
8551 で自分の使うビューアを利用するように,\SpecialChar LyX
8552 を設定する必要があります.いくつかのビューアについては,試験済みの設定が前もって準備されており,ドロップダウンリストから選
8553 択することができます.これらの設定の何れも意にそぐわない場合には,ご自身で適切な設定を見つけ出して入力しなくてはなりません.定義文法は,以下の変数を使用します.
8554 \end_layout
8555
8556 \begin_layout Itemize
8557 \begin_inset Flex Code
8558 status collapsed
8559
8560 \begin_layout Plain Layout
8561 $$n
8562 \end_layout
8563
8564 \end_inset
8565
8566 :行番号
8567 \end_layout
8568
8569 \begin_layout Itemize
8570 \begin_inset Flex Code
8571 status collapsed
8572
8573 \begin_layout Plain Layout
8574 $$t
8575 \end_layout
8576
8577 \end_inset
8578
8579 :書き出された(一時).texファイル名(パスを除く)
8580 \end_layout
8581
8582 \begin_layout Itemize
8583 \begin_inset Flex Code
8584 status collapsed
8585
8586 \begin_layout Plain Layout
8587 $$f
8588 \end_layout
8589
8590 \end_inset
8591
8592 :書き出された(一時).texファイル名(パスを含む)
8593 \end_layout
8594
8595 \begin_layout Itemize
8596 \begin_inset Flex Code
8597 status collapsed
8598
8599 \begin_layout Plain Layout
8600 $$o
8601 \end_layout
8602
8603 \end_inset
8604
8605 :書き出された出力ファイル名(どちらが一時ディレクトリに存在するかに依存して,dviあるいはpdf).
8606 \end_layout
8607
8608 \begin_layout Standard
8609 yap・xdvi・okular
8610 \begin_inset Foot
8611 status collapsed
8612
8613 \begin_layout Plain Layout
8614 \begin_inset Flex Noun
8615 status collapsed
8616
8617 \begin_layout Plain Layout
8618 ツール\SpecialChar menuseparator
8619 設定\SpecialChar menuseparator
8620 ファイル処理\SpecialChar menuseparator
8621 ファイル形式
8622 \end_layout
8623
8624 \end_inset
8625
8626
8627 \begin_inset Flex Code
8628 status collapsed
8629
8630 \begin_layout Plain Layout
8631 okular –unique
8632 \end_layout
8633
8634 \end_inset
8635
8636 と設定すると良いでしょう.
8637 \end_layout
8638
8639 \end_inset
8640
8641 ・qpdfview・Sumatra PDF
8642 \begin_inset Foot
8643 status collapsed
8644
8645 \begin_layout Plain Layout
8646 SumatraPDFは,外部プログラムCMCDDE(
8647 \begin_inset CommandInset href
8648 LatexCommand href
8649 target "http://www.istri.fr/spip/zip/CMCDDE.zip"
8650 literal "false"
8651
8652 \end_inset
8653
8654 からダウンロード可能)を通じてDDEコマンドを使用することもできます.
8655 \end_layout
8656
8657 \end_inset
8658
8659 など,一部のビューアでしか,完全な順検索機能は提供されていないことに注意してください
8660 \begin_inset Foot
8661 status collapsed
8662
8663 \begin_layout Plain Layout
8664 SumatraPDFも,外部プログラムCMCDDEを通じて,DDEコマンドを使用することができます.CMCDDEは,
8665 \begin_inset CommandInset href
8666 LatexCommand href
8667 target "http://www.istri.fr/spip/zip/CMCDDE.zip"
8668 literal "false"
8669
8670 \end_inset
8671
8672 からダウンロードすることができます.
8673 \end_layout
8674
8675 \end_inset
8676
8677 .Evince
8678 \begin_inset Foot
8679 status collapsed
8680
8681 \begin_layout Plain Layout
8682 Evinceでの順検索は,サードパーティのヘルパースクリプトを使用すれば,利用可能になります.詳細については,
8683 \begin_inset CommandInset href
8684 LatexCommand href
8685 target "http://wiki.lyx.org/LyX/SyncTeX"
8686 literal "false"
8687
8688 \end_inset
8689
8690 を参照してください.
8691 \end_layout
8692
8693 \end_inset
8694
8695 など他のビューアには,順検索を使用するのに,追加のツールを必要とするものもあります.広く使われているPDFビューアの多く(特にAdobe Reader)は,順検
8696 索を全く提供していませんが,他の一部のビューア(たとえばxpdf)では,少なくとも,文書を読み込み直したり,ファイルの特定ページに移動することはできますので,少
8697 なくとも「近く」には移動することができます.この後者の機能は,synctexの外部コールで提供されています(事前に用意されている用例をご覧ください).
8698 \end_layout
8699
8700 \begin_layout Standard
8701 順検索は,DVI出力とPDF出力の双方で動作します.\SpecialChar LyX
8702 は,過去にあなたが使用したプレビュー形式をチェックして(つまり,一時ディレクトリにどちらの形式が存在するかを
8703 チェックして),その形式に適切な設定を選択します.
8704 \end_layout
8705
8706 \begin_layout Chapter
8707 特別な文書クラス
8708 \end_layout
8709
8710 \begin_layout Section
8711 A&Aの論文
8712 \end_layout
8713
8714 \begin_layout Standard
8715
8716 \noun on
8717 Peter Sütterlin文
8718 \end_layout
8719
8720 \begin_layout Subsection
8721 はじめに
8722 \end_layout
8723
8724 \begin_layout Standard
8725 この節では,文書クラス
8726 \family typewriter
8727 aa.cls
8728 \family default
8729 第5.01版を使用して科学雑誌
8730 \emph on
8731 Astronomy and Astrophysics
8732 \emph default
8733 (『天文学と宇宙物理学』: 
8734 \begin_inset Flex URL
8735 status collapsed
8736
8737 \begin_layout Plain Layout
8738
8739 http://www.edpsciences.fr/aa/
8740 \end_layout
8741
8742 \end_inset
8743
8744 )に投稿する論文を執筆するための\SpecialChar LyX
8745 の使用法を説明します.このパッケージは,FTPサイト
8746 \end_layout
8747
8748 \begin_layout Standard
8749 \align center
8750 \begin_inset VSpace medskip
8751 \end_inset
8752
8753
8754 \begin_inset Flex URL
8755 status collapsed
8756
8757 \begin_layout Plain Layout
8758
8759 ftp://ftp.edpsciences.org/pub/aa/readme.html
8760 \end_layout
8761
8762 \end_inset
8763
8764
8765 \begin_inset VSpace medskip
8766 \end_inset
8767
8768
8769 \end_layout
8770
8771 \begin_layout Standard
8772 \noindent
8773 からダウンロードすることができます.
8774 \end_layout
8775
8776 \begin_layout Standard
8777 このパッケージには取扱説明書がついていますが,本節は,本来の取扱説明書の代わりとなることを意図したものではなく,あなたの論文を正しい様式に整えるための小さな案内
8778 書であるに過ぎません.
8779 \end_layout
8780
8781 \begin_layout Standard
8782 この学術誌の出版元は,2001年1月1日以降,Springer社からEDP Science社に変更されていることにご注意ください.この出版社の変更によって,th
8783 esaurusコマンドの廃止など,スタイルファイルに若干の変更が加わっています.\SpecialChar LyX
8784 のaaクラスは,スタイルファイルの最新版(第5.01版)をサポートしています.もし
8785 古い版が装備されている場合には,更新してください.互換性のために,古い(第4版)レイアウトは,
8786 \family sans
8787 article (A&A V4)
8788 \family default
8789 として残してあります.
8790 \family typewriter
8791 $\SpecialChar LyX
8792 Dir/layouts/aapaper.layout
8793 \family default
8794 のコメントをご参照ください.
8795 \end_layout
8796
8797 \begin_layout Subsection
8798 最初の一歩
8799 \end_layout
8800
8801 \begin_layout Standard
8802 \SpecialChar LyX
8803 とともに頒布されている例示用のひな型を土台として,書き始めることをお勧めします.ひな型を使用しない場合には,以下の設定にしてください.
8804 \end_layout
8805
8806 \begin_layout Itemize
8807
8808 \family sans
8809 文書\SpecialChar menuseparator
8810 設定
8811 \family default
8812 ダイアログで
8813 \family sans
8814 article (A&A)
8815 \family default
8816 を選択してください(まぁ,これは自明ですね).
8817 \end_layout
8818
8819 \begin_layout Itemize
8820
8821 \family sans
8822 ページレイアウト
8823 \family default
8824 オプションは変更しないで,既定値のままに設定しておいてください.全体のレイアウトはマクロが行うので,何も変更してはいけません.
8825 \end_layout
8826
8827 \begin_layout Subsection
8828 へッダ部
8829 \end_layout
8830
8831 \begin_layout Standard
8832 最初に入力すべきものは,へッダ情報です.ヘッダ情報には,以下の7つの項目があり,いくつかは必須ではありません.
8833 \end_layout
8834
8835 \begin_layout Itemize
8836
8837 \family sans
8838 タイトル
8839 \family default
8840 :[必須]
8841 \end_layout
8842
8843 \begin_layout Itemize
8844
8845 \family sans
8846 サブタイトル
8847 \family default
8848 :[非必須]
8849 \end_layout
8850
8851 \begin_layout Itemize
8852
8853 \family sans
8854 著者
8855 \family default
8856 :[必須]
8857 \end_layout
8858
8859 \begin_layout Itemize
8860
8861 \family sans
8862 住所
8863 \family default
8864 :[必須]
8865 \end_layout
8866
8867 \begin_layout Itemize
8868
8869 \family sans
8870 抜き刷り
8871 \family default
8872 :[非必須]著者が複数いる場合,抜き刷りの送付を依頼するのに連絡すべき人を記す.
8873 \end_layout
8874
8875 \begin_layout Itemize
8876
8877 \family sans
8878 メール
8879 \family default
8880 :[非必須]連絡用の電子メールアドレス.
8881 \end_layout
8882
8883 \begin_layout Itemize
8884
8885 \family sans
8886 日付
8887 \family default
8888 :[必須]推奨されるフォーマットは,
8889 \family typewriter
8890 Received: <日付>; Accepted <日付>
8891 \family default
8892 です.
8893 \end_layout
8894
8895 \begin_layout Standard
8896
8897 \family typewriter
8898
8899 \backslash
8900 maketitle
8901 \family default
8902 コマンドは,へッダが終了した場所に,\SpecialChar LyX
8903 が自動的に入れてくれるので,手動で挿入する必要はありません.各項目の順序は関係ありませんが,見た目のためと,実際の文書のレイ
8904 アウトに合わせるために,上記の順序を維持しておくと良いでしょう.
8905 \end_layout
8906
8907 \begin_layout Standard
8908 現住所の付記などのために,へッダ部に脚注を挿入したい場合には,
8909 \family sans
8910 挿入\SpecialChar menuseparator
8911 脚注
8912 \family default
8913 を使用して標準の脚注を挿入してください.この場合には,\SpecialChar LyX
8914 は自動的に
8915 \family typewriter
8916
8917 \backslash
8918 thanks{}
8919 \family default
8920 を使用します.
8921 \end_layout
8922
8923 \begin_layout Standard
8924
8925 \family sans
8926 編集\SpecialChar menuseparator
8927 文字様式
8928 \family default
8929 の下に,タイトル関連の2つの差込枠があります.
8930 \end_layout
8931
8932 \begin_layout Itemize
8933
8934 \family sans
8935 所属機関
8936 \family default
8937 は,対応する著者・所属機関の対を標識するためのものです.所属機関には,
8938 \family sans
8939 住所
8940 \family default
8941 フィールドに現れるのと同じ順序で連番が振られますので,各著者に標識を付けてください.
8942 \end_layout
8943
8944 \begin_layout Itemize
8945
8946 \family sans
8947 電子メール
8948 \family default
8949 は,至急連絡用に電子メールアドレスを付するものです.
8950 \end_layout
8951
8952 \begin_layout Standard
8953 これらのトピックの他に,このマクロは,\SpecialChar LyX
8954 が対応していない,以下のもう一つの\SpecialChar LaTeX
8955 コマンドを使用します.
8956 \end_layout
8957
8958 \begin_layout Itemize
8959 複数の著者名あるいは所属名を区切るための
8960 \family typewriter
8961
8962 \backslash
8963 and
8964 \end_layout
8965
8966 \begin_layout Standard
8967 \SpecialChar LyX
8968 中に対応したコマンドを入力し,\SpecialChar LaTeX
8969 コードとしてマークしてください.用例を参照のこと.
8970 \end_layout
8971
8972 \begin_layout Subsection
8973 概要
8974 \end_layout
8975
8976 \begin_layout Standard
8977 概要は,へッダ部の直後に置きます.第5版から,概要は環境からコマンドに変更され,一段落に限るという制限が加えられました.さらに,ここにはキーワードを含む項目を入
8978 れなくてはなりません.これには,キーワード段落様式を使用してください.用例にある論文を参照してください.
8979 \end_layout
8980
8981 \begin_layout Subsection
8982 サポートされる環境
8983 \end_layout
8984
8985 \begin_layout Standard
8986 A&A論文用レイアウトでは,文章を構造化するために,以下の環境がサポートされています.
8987 \end_layout
8988
8989 \begin_layout Itemize
8990
8991 \family sans
8992 標準
8993 \end_layout
8994
8995 \begin_layout Itemize
8996
8997 \family sans
8998
8999 \end_layout
9000
9001 \begin_layout Itemize
9002
9003 \family sans
9004 小節
9005 \end_layout
9006
9007 \begin_layout Itemize
9008
9009 \family sans
9010 小々節
9011 \end_layout
9012
9013 \begin_layout Itemize
9014
9015 \family sans
9016 箇条書き(記号)
9017 \end_layout
9018
9019 \begin_layout Itemize
9020
9021 \family sans
9022 箇条書き(連番)
9023 \end_layout
9024
9025 \begin_layout Itemize
9026
9027 \family sans
9028 箇条書き(記述)
9029 \end_layout
9030
9031 \begin_layout Itemize
9032
9033 \family sans
9034 キャプション
9035 \end_layout
9036
9037 \begin_layout Itemize
9038
9039 \family sans
9040 概要
9041 \end_layout
9042
9043 \begin_layout Itemize
9044
9045 \family sans
9046 謝辞(Acknowledgment)
9047 \end_layout
9048
9049 \begin_layout Itemize
9050
9051 \family sans
9052 書誌情報
9053 \end_layout
9054
9055 \begin_layout Itemize
9056
9057 \family sans
9058 \SpecialChar LaTeX
9059
9060 \end_layout
9061
9062 \begin_layout Subsection
9063 \SpecialChar LyX
9064 でサポートされていないコマンド
9065 \end_layout
9066
9067 \begin_layout Standard
9068 \SpecialChar LyX
9069
9070 \family sans
9071 articleA&A)
9072 \family default
9073 レイアウトでは,まだサポートされていないコマンドがあります.そのうちいくつかは既に紹介しましたが,網羅するために,以下にすべて列挙しておきます.
9074 \end_layout
9075
9076 \begin_layout Itemize
9077
9078 \family typewriter
9079
9080 \backslash
9081 and
9082 \end_layout
9083
9084 \begin_layout Itemize
9085
9086 \family typewriter
9087
9088 \backslash
9089 authorrunning
9090 \end_layout
9091
9092 \begin_layout Itemize
9093
9094 \family typewriter
9095
9096 \backslash
9097 object{}
9098 \end_layout
9099
9100 \begin_layout Itemize
9101
9102 \family typewriter
9103
9104 \backslash
9105 titlerunning{}
9106 \end_layout
9107
9108 \begin_layout Standard
9109 これらのコマンドのいずれかを使いたい場合には,自分で入力する必要があります.
9110 \series bold
9111 これを\SpecialChar LaTeX
9112 コマンドとしてマークすることを忘れないで下さい.
9113 \end_layout
9114
9115 \begin_layout Subsection
9116 図フロートおよび表フロート
9117 \end_layout
9118
9119 \begin_layout Standard
9120 \SpecialChar LyX
9121 は,必要なフロート環境
9122 \family sans
9123 figure
9124 \family default
9125
9126 \family sans
9127 figure*
9128 \family default
9129
9130 \family sans
9131 table
9132 \family default
9133
9134 \family sans
9135 table*
9136 \family default
9137 をサポートしていますので,ここでは詳しい説明はしません.
9138 \emph on
9139 ユーザーの手引き
9140 \emph default
9141 をご覧ください.ただ,表は左揃えにしなくてはならないことに注意して下さい.そうするためには,表を選択して,
9142 \family sans
9143 編集\SpecialChar menuseparator
9144 段落設定
9145 \family default
9146 で配置を変更してください.
9147 \end_layout
9148
9149 \begin_layout Standard
9150 一つだけ,特別なものがあります.それは,図横にキャプションを配置する図です.この図を作成するには,以下のようにしなくてはなりません.
9151 \end_layout
9152
9153 \begin_layout Enumerate
9154
9155 \family sans
9156 挿入\SpecialChar menuseparator
9157 フロート\SpecialChar menuseparator
9158
9159 \family default
9160 を使って,幅広の図フロートを作成します.それから,図フロートのラベルを右クリックして
9161 \begin_inset Flex MenuItem
9162 status collapsed
9163
9164 \begin_layout Plain Layout
9165 設定\SpecialChar ldots
9166
9167 \end_layout
9168
9169 \end_inset
9170
9171 を選択し,それで開かれる
9172 \family sans
9173 フロートの設定
9174 \family default
9175 ダイアログで
9176 \family sans
9177 段をまたぐ
9178 \family default
9179 を有効にして,
9180 \family sans
9181 OK
9182 \family default
9183 ボタンを押します.
9184 \end_layout
9185
9186 \begin_layout Enumerate
9187 キャプション文を入力します.
9188 \end_layout
9189
9190 \begin_layout Enumerate
9191 キャプションの前にカーソルを移動し,
9192 \family sans
9193 Return
9194 \family default
9195 を押して,カーソルをキャプションの上に移動します.
9196 \end_layout
9197
9198 \begin_layout Enumerate
9199 図を挿入します.
9200 \end_layout
9201
9202 \begin_layout Enumerate
9203 カーソルを図の後ろに置いて,
9204 \family sans
9205 挿入\SpecialChar menuseparator
9206 整形\SpecialChar menuseparator
9207 水平方向の空白
9208 \family default
9209 を選択して
9210 \family sans
9211 水平方向の空白の設定
9212 \family default
9213 ダイアログを開き,
9214 \family sans
9215 空白
9216 \family default
9217 ドロップダウンから
9218 \family sans
9219 水平フィル
9220 \family default
9221 を選択して,水平フィルを挿入します.
9222 \end_layout
9223
9224 \begin_layout Enumerate
9225
9226 \family sans
9227 挿入\SpecialChar menuseparator
9228 TeXコード
9229 \family default
9230 を選択して,\SpecialChar TeX
9231 差込枠を挿入します.
9232 \end_layout
9233
9234 \begin_layout Enumerate
9235 \SpecialChar TeX
9236 差込枠中に
9237 \family typewriter
9238
9239 \backslash
9240 parbox[b]{55mm}{
9241 \family default
9242 と入力します.
9243 \series bold
9244 ここでは波括弧を閉じないでください.
9245 \end_layout
9246
9247 \begin_layout Enumerate
9248 カーソルをキャプション文の後ろに移動し,
9249 \family sans
9250 挿入\SpecialChar menuseparator
9251 TeXコード
9252 \family default
9253 を選択して,別の\SpecialChar TeX
9254 差込枠を挿入し,その中に閉じ括弧を入力します .
9255 \end_layout
9256
9257 \begin_layout Standard
9258 例示用論文中の図もご参照ください.
9259 \end_layout
9260
9261 \begin_layout Subsection
9262 Refereeレイアウト
9263 \end_layout
9264
9265 \begin_layout Standard
9266 投稿用には,論文を特別なダブルスペースレイアウトに整形しなくてはなりません.このためには,文書クラスに
9267 \family typewriter
9268 referee
9269 \family default
9270 オプションを与える必要があります.これは,
9271 \family sans
9272 文書\SpecialChar menuseparator
9273 設定
9274 \family default
9275 ダイアログの
9276 \family sans
9277 任意設定
9278 \family default
9279 クラスオプションフィールドを使って行うことができます.この欄に
9280 \family typewriter
9281 referee
9282 \family default
9283 と云う文字列を入力してください.
9284 \end_layout
9285
9286 \begin_layout Subsection
9287 例示用論文
9288 \end_layout
9289
9290 \begin_layout Standard
9291
9292 \family sans
9293 Examples
9294 \family default
9295 ディレクトリには,\SpecialChar LyX
9296 で書かれた例示用論文が収録されています.これは,元のマクロパッケージの例示用論文を\SpecialChar LyX
9297 用に直したものです.これはヒントを得るために使用したり,元の
9298  \SpecialChar LaTeX
9299 コードと\SpecialChar LyX
9300 での書き方の比較に使ったりしてください.
9301 \end_layout
9302
9303 \begin_layout Section
9304 AAS\SpecialChar TeX
9305
9306 \end_layout
9307
9308 \begin_layout Standard
9309
9310 \noun on
9311 Mike Ressler
9312 \noun default
9313
9314 \end_layout
9315
9316 \begin_layout Subsection
9317 はじめに
9318 \end_layout
9319
9320 \begin_layout Standard
9321 AAS\SpecialChar TeX
9322 は,American Astronomical Society(アメリカ天文学会)が発行するAstrophysical Journal(宇宙物理学雑誌)同
9323 誌のLettersとSupplementを含む)・Astronomical Journal(天文学雑誌)・Publications of the
9324  Astronomical Society of the Pacific(太平洋天文学会誌)三誌への電子投稿を可能にするために,同学会が作成したマクロ集です.\SpecialChar LyX
9325
9326 ,これらの文書を生成する上で,なかでも数式・引用・画像処理能力において,優れたツールであることが認識されています.\SpecialChar LyX
9327 は,同マクロ第5.0版以降を必要としており,でき
9328 ればここで説明されている第6.0版以降が望まれます.第5.0版未満の版は,\SpecialChar LaTeX
9329 2.09で使用するよう企図されているため,根本的に\SpecialChar LyX
9330 とは互換性がありません.AAS\SpecialChar TeX
9331 パッケージは
9332 ,以下のAAS\SpecialChar TeX
9333 ウェブサイトからダウンロードできるでしょう.
9334 \end_layout
9335
9336 \begin_layout Standard
9337 \align center
9338 \begin_inset VSpace medskip
9339 \end_inset
9340
9341
9342 \begin_inset Flex URL
9343 status collapsed
9344
9345 \begin_layout Plain Layout
9346
9347 https://aas.org/aastex/aastex-downloads
9348 \end_layout
9349
9350 \end_inset
9351
9352
9353 \begin_inset VSpace medskip
9354 \end_inset
9355
9356
9357 \end_layout
9358
9359 \begin_layout Standard
9360 パッケージ中には,完備したユーザーの手引きが収録されていますので,\SpecialChar LyX
9361 で論文を書き始める前に,その中身を完全に理解しておく必要があります.\SpecialChar LyX
9362 は,AASTeXの全コマン
9363 ドを理解する必然性をなくすものではなく,すべてを手入力する苦労を減らすだけです.仕上がりの\SpecialChar LaTeX
9364 文書が,論文を投稿しようとしているジャーナルの要求事項に完全に合致して
9365 いることを確認するのは,あなたの責任です.
9366 \end_layout
9367
9368 \begin_layout Subsection
9369 新しい論文を書き始める
9370 \end_layout
9371
9372 \begin_layout Standard
9373 論文を書き始めるには,AAS\SpecialChar TeX
9374 ひな型ファイルを土台に始めることを強くお勧めします.
9375 \begin_inset Flex MenuItem
9376 status collapsed
9377
9378 \begin_layout Plain Layout
9379 ファイル\SpecialChar menuseparator
9380 新規(ひな型使用)
9381 \end_layout
9382
9383 \end_inset
9384
9385 をクリックして,新しいファイル名を入力し,ひな型
9386 \family typewriter
9387 aastex6.lyx
9388 \family default
9389 を選んでください.これには,論文原稿のほとんどに共通して使われるフィールドが書き込まれています.書き込まれている文字列(括弧
9390 \family typewriter
9391 <>
9392 \family default
9393 を含む)を正しい情報で上書きしてください.AAS\SpecialChar TeX
9394 コマンド・AAS\SpecialChar TeX
9395 環境の多くは,\SpecialChar LyX
9396 中で直接実行することができますが,できないものもあります.このようなコマンドは,直
9397 接La\SpecialChar TeX
9398 コードを入力して,それを\SpecialChar TeX
9399 コードとしてマークしなければなりません.このようなコマンドは,\SpecialChar TeX
9400 コードあるいはEvil Red Text(邪悪な赤い文)と呼ばれます
9401 .AAS\SpecialChar TeX
9402 文書に必要とされる \SpecialChar TeX
9403 コードを最小にするようには努力しました.
9404 \end_layout
9405
9406 \begin_layout Subsection
9407 論文を書き終わったら
9408 \end_layout
9409
9410 \begin_layout Standard
9411 論文を満足する水準で書き終え,プレビューや印刷が正しく為されているとしても,まだ学術誌に投稿する前にしなくてはならない「後処理」が残されています.
9412 \end_layout
9413
9414 \begin_layout Enumerate
9415 論文を \SpecialChar LaTeX
9416 ファイルとして書き出します(
9417 \family sans
9418 ファイル\SpecialChar menuseparator
9419 書き出し\SpecialChar menuseparator
9420 LaTeX
9421 \family default
9422 ).
9423 \end_layout
9424
9425 \begin_layout Enumerate
9426 出力した
9427 \family typewriter
9428 .tex
9429 \family default
9430 ファイルを好きなエディタで編集します.
9431 \end_layout
9432
9433 \begin_deeper
9434 \begin_layout Enumerate
9435
9436 \family typewriter
9437
9438 \backslash
9439 documentclass
9440 \family default
9441 コマンドよりも前のコメント行を削除します.
9442 \end_layout
9443
9444 \begin_layout Enumerate
9445
9446 \family typewriter
9447
9448 \backslash
9449 usepackage...{fontenc}
9450 \family default
9451 という行があれば(通常は
9452 \family typewriter
9453
9454 \backslash
9455 documentclass
9456 \family default
9457 の直後にあります)削除します.また,
9458 \family typewriter
9459
9460 \backslash
9461 secnumdepth
9462 \family default
9463 行があれば,これも削除します.
9464 \end_layout
9465
9466 \begin_layout Enumerate
9467 \SpecialChar LaTeX
9468 プリアンブル中に意図的に置いたコマンド(
9469 \family typewriter
9470 .tex
9471 \family default
9472 ファイル中,「User specified \SpecialChar LaTeX
9473  commands」というコメントの直後にあります)を除いて,
9474 \family typewriter
9475
9476 \backslash
9477 makeatletter
9478 \family default
9479
9480 \family typewriter
9481
9482 \backslash
9483 makeatother
9484 \family default
9485 の間のもの(これらのコマンドを含む)をすべて削除します.
9486 \end_layout
9487
9488 \end_deeper
9489 \begin_layout Enumerate
9490 編集後のファイルを \SpecialChar LaTeX
9491 にかけて,正しく処理されることを確認します.
9492 \end_layout
9493
9494 \begin_layout Enumerate
9495 学術誌の要求事項を再読して,ファイル名と書式が正しいことを確認します.
9496 \end_layout
9497
9498 \begin_layout Enumerate
9499 投稿してください.
9500 \end_layout
9501
9502 \begin_layout Subsection
9503 特定のコマンドに関するコメント
9504 \end_layout
9505
9506 \begin_layout Standard
9507 AAS\SpecialChar TeX
9508 ユーザーの手引き(
9509 \family typewriter
9510 aasguide.tex
9511 \family default
9512 )に,各AAS\SpecialChar TeX
9513 コマンドの詳しい説明があるので,ここでは,各コマンドの使用法の詳細な説明は行いません.そこで,ここではユーザーの手引きに現れるとおりに一覧を列挙し
9514 て,必要なところだけコメントを加えることにしましょう.
9515 \end_layout
9516
9517 \begin_layout Subsubsection
9518 期待通りに動作するもの
9519 \end_layout
9520
9521 \begin_layout Standard
9522 これらは期待通りに動作するので,ここでは列挙するだけにして,コマンドの説明されている節を挙げておきます.
9523 \family typewriter
9524
9525 \backslash
9526 documentclass
9527 \family default
9528  (2.1.1)・
9529 \family typewriter
9530
9531 \backslash
9532 begin{document}
9533 \family default
9534  (2.2)・
9535 \family typewriter
9536
9537 \backslash
9538 title
9539 \family default
9540  (2.3)・
9541 \family typewriter
9542
9543 \backslash
9544 author
9545 \family default
9546  (2.3)・
9547 \family typewriter
9548
9549 \backslash
9550 affil
9551 \family default
9552  (2.3)・
9553 \family typewriter
9554
9555 \backslash
9556 abstract
9557 \family default
9558  (2.4)・
9559 \family typewriter
9560
9561 \backslash
9562 keywords
9563 \family default
9564  (2.5)・
9565 \family typewriter
9566
9567 \backslash
9568 section
9569 \family default
9570  (2.7)・
9571 \family typewriter
9572
9573 \backslash
9574 subsection
9575 \family default
9576  (2.7)・
9577 \family typewriter
9578
9579 \backslash
9580 subsubsection
9581 \family default
9582  (2.7)・
9583 \family typewriter
9584
9585 \backslash
9586 paragraph
9587 \family default
9588  (2.7)・
9589 \family typewriter
9590
9591 \backslash
9592 facility
9593 \family default
9594  (2.10)・
9595 \family typewriter
9596
9597 \backslash
9598 begin{displaymath}
9599 \family default
9600  (2.12)・
9601 \family typewriter
9602
9603 \backslash
9604 begin{equation}
9605 \family default
9606  (2.12)・
9607 \family typewriter
9608
9609 \backslash
9610 begin{eqnarray}
9611 \family default
9612  (2.12)・
9613 \family typewriter
9614
9615 \backslash
9616 begin{mathletters}
9617 \family default
9618  (2.12)・
9619 \family typewriter
9620
9621 \backslash
9622 begin{thebibliography}
9623 \family default
9624  (2.13.1)・
9625 \family typewriter
9626
9627 \backslash
9628 bibitem
9629 \family default
9630  (2.13.2)・全引用コマンドとその派生(2.13.2)・一般的なgraphicx図コマンド(2.14.1)・
9631 \family typewriter
9632
9633 \backslash
9634 begin{table}
9635 \family default
9636  (2.15.4)・
9637 \family typewriter
9638
9639 \backslash
9640 begin{tabular}
9641 \family default
9642  (2.15.4)・
9643 \family typewriter
9644
9645 \backslash
9646 caption
9647 \family default
9648  (2.15.4)・
9649 \family typewriter
9650
9651 \backslash
9652 label
9653 \family default
9654  (他にもあるが特に2.15.4)・
9655 \family typewriter
9656
9657 \backslash
9658 tablerefs
9659 \family default
9660  (2.15.5)・
9661 \family typewriter
9662
9663 \backslash
9664 tablecomments
9665 \family default
9666  (2.15.5)・
9667 \family typewriter
9668
9669 \backslash
9670 url
9671 \family default
9672  (2.17.4)・
9673 \family typewriter
9674
9675 \backslash
9676 end{document}
9677 \family default
9678  (2.18).
9679 \end_layout
9680
9681 \begin_layout Standard
9682 以下のスタイルオプションも正しく動作します.
9683 \family typewriter
9684 longabstract
9685 \family default
9686  (2.4)・
9687 \family typewriter
9688 preprint
9689 \family default
9690  (3.2.1)・
9691 \family typewriter
9692 preprint2
9693 \family default
9694  (3.2.2)・
9695 \family typewriter
9696 eqsecnum
9697 \family default
9698  (3.3)・
9699 \family typewriter
9700 flushrt
9701 \family default
9702  (3.4).これらは,
9703 \begin_inset Flex MenuItem
9704 status collapsed
9705
9706 \begin_layout Plain Layout
9707 文書\SpecialChar menuseparator
9708 設定
9709 \end_layout
9710
9711 \end_inset
9712
9713 にある,
9714 \family sans
9715 クラスオプション
9716 \family default
9717
9718 \family sans
9719 任意設定
9720 \family default
9721 ボックスに入力してください.
9722 \end_layout
9723
9724 \begin_layout Subsubsection
9725 動作するが,若干説明が必要なもの
9726 \end_layout
9727
9728 \begin_layout Standard
9729 以下のコマンドは動作しますが,若干の説明が必要です.
9730 \end_layout
9731
9732 \begin_layout Itemize
9733 以下の項目は,学術誌の編集者向けに取ってあるものですが,どうしても必要ならば,\SpecialChar LaTeX
9734 プリアンブルに入れることができます.
9735 \family typewriter
9736
9737 \backslash
9738 received
9739 \family default
9740
9741 \family typewriter
9742
9743 \backslash
9744 revised
9745 \family default
9746
9747 \family typewriter
9748
9749 \backslash
9750 accepted
9751 \family default
9752
9753 \family typewriter
9754
9755 \backslash
9756 ccc
9757 \family default
9758
9759 \family typewriter
9760 cpright
9761 \family default
9762 (すべて 2.1.3).
9763 \end_layout
9764
9765 \begin_layout Itemize
9766 以下の項目は,\SpecialChar LaTeX
9767 のプリアンブルに置くことができるもので,これらは,ひな型ファイルには,空の引数と共に含まれています.
9768 \family typewriter
9769
9770 \backslash
9771 slugcomment
9772 \family default
9773 (2.1.4)・
9774 \family typewriter
9775
9776 \backslash
9777 shorttitle
9778 \family default
9779 (2.1.5)・
9780 \family typewriter
9781
9782 \backslash
9783 shortauthors
9784 \family default
9785 (2.1.5).
9786 \end_layout
9787
9788 \begin_layout Itemize
9789
9790 \family typewriter
9791
9792 \backslash
9793 email
9794 \family default
9795 (2.3)―「単独で」使うことはできますが,段落の途中で使うことはできません.埋め込む必要がある場合には,\SpecialChar TeX
9796 コードを使用してください.
9797 \end_layout
9798
9799 \begin_layout Itemize
9800
9801 \family typewriter
9802
9803 \backslash
9804 and
9805 \family default
9806 (2.3)―後ろに{}が付記されます.これはエラーの原因にはなりません.
9807 \end_layout
9808
9809 \begin_layout Itemize
9810
9811 \family typewriter
9812
9813 \backslash
9814 notetoeditor
9815 \family default
9816 (2.6)―「単独で」使うことはできますが,段落の途中で使うことはできません.埋め込む必要がある場合には,\SpecialChar TeX
9817 コードを使用してください.
9818 \end_layout
9819
9820 \begin_layout Itemize
9821
9822 \family typewriter
9823
9824 \backslash
9825 placetable
9826 \family default
9827 (2.8)―相互参照用タグを挿入することはできません.手動でタグ名を入力する必要があります.
9828 \end_layout
9829
9830 \begin_layout Itemize
9831
9832 \family typewriter
9833
9834 \backslash
9835 placefigure
9836 \family default
9837 (2.8)—
9838 \family typewriter
9839
9840 \backslash
9841 placetable
9842 \family default
9843 と同様.
9844 \end_layout
9845
9846 \begin_layout Itemize
9847
9848 \family typewriter
9849
9850 \backslash
9851 acknowledgements
9852 \family default
9853 (2.9)―後ろに{}が付記されます.これはエラーの原因にはなりません.
9854 \end_layout
9855
9856 \begin_layout Itemize
9857
9858 \family typewriter
9859
9860 \backslash
9861 appendix
9862 \family default
9863 (2.11)―後ろに{}が付記されます.これはエラーの原因にはなりません.
9864 \end_layout
9865
9866 \begin_layout Itemize
9867
9868 \family typewriter
9869
9870 \backslash
9871 figcaption
9872 \family default
9873 (2.14.2)―文章のはじめにカーソルを置いて
9874 \begin_inset Flex MenuItem
9875 status collapsed
9876
9877 \begin_layout Plain Layout
9878 挿入\SpecialChar menuseparator
9879 短縮タイトル
9880 \end_layout
9881
9882 \end_inset
9883
9884 を選択すれば,非必須のファイル名引数を挿入することができます.「短縮タイトル」とありますが,
9885 \family typewriter
9886
9887 \backslash
9888 figcaption
9889 \family default
9890 が必要とする型の非必須引数を挿入します.望むらくはいつの日か改名されることでしょう.
9891 \end_layout
9892
9893 \begin_layout Itemize
9894
9895 \family typewriter
9896
9897 \backslash
9898 objectname
9899 \family default
9900 (2.17.1)―非必須パラメータとしてカタログIDを取る以外は,
9901 \family typewriter
9902
9903 \backslash
9904 figcaption
9905 \family default
9906 と同様.
9907 \end_layout
9908
9909 \begin_layout Itemize
9910
9911 \family typewriter
9912
9913 \backslash
9914 dataset
9915 \family default
9916 (2.17.1)―非必須パラメータとしてカタログIDを取る以外は,
9917 \family typewriter
9918
9919 \backslash
9920 figcaption
9921 \family default
9922 と同様.
9923 \end_layout
9924
9925 \begin_layout Subsubsection
9926 実装されていないため,\SpecialChar TeX
9927 コードを使用するもの
9928 \end_layout
9929
9930 \begin_layout Standard
9931
9932 \family typewriter
9933
9934 \backslash
9935 eqnum
9936 \family default
9937 (2.12)・
9938 \family typewriter
9939
9940 \backslash
9941 setcounter{equation}
9942 \family default
9943 (2.12)・学術誌名略語(2.12.4)・
9944 \family typewriter
9945
9946 \backslash
9947 figurenum
9948 \family default
9949 (2.14.1)・
9950 \family typewriter
9951
9952 \backslash
9953 epsscale
9954 \family default
9955 (2.14.1)・
9956 \family typewriter
9957
9958 \backslash
9959 plotone
9960 \family default
9961 (2.14.1)・
9962 \family typewriter
9963
9964 \backslash
9965 plottwo
9966 \family default
9967 (2.14.1)・
9968 \family typewriter
9969
9970 \backslash
9971 tablenum
9972 \family default
9973 (2.15.4)・
9974 \family typewriter
9975
9976 \backslash
9977 tableline
9978 \family default
9979 (2.15.4:入れたい場所の後ろに,左側セルの最初の要素として挿入する.表中では,\SpecialChar LyX
9980 の方法は使わないでください)・
9981 \family typewriter
9982
9983 \backslash
9984 tablenotemark
9985 \family default
9986 (2.15.5)・
9987 \family typewriter
9988
9989 \backslash
9990 tablenotetext
9991 \family default
9992 (2.15.5)・補遺(2.17)の大半
9993 \family typewriter
9994
9995 \backslash
9996 objectname
9997 \family default
9998
9999 \family typewriter
10000
10001 \backslash
10002 dataset
10003 \family default
10004
10005 \family typewriter
10006
10007 \backslash
10008 url
10009 \family default
10010
10011 \family typewriter
10012
10013 \backslash
10014 email
10015 \family default
10016 を除く.上記参照)・
10017 \family typewriter
10018
10019 \backslash
10020 singlespace
10021 \family default
10022 (3.1)・
10023 \family typewriter
10024
10025 \backslash
10026 doublespace
10027 \family default
10028 (3.1)・
10029 \family typewriter
10030
10031 \backslash
10032 onecolumn
10033 \family default
10034 (3.2)・
10035 \family typewriter
10036
10037 \backslash
10038 twocolumn
10039 \family default
10040 (3.2)
10041 \end_layout
10042
10043 \begin_layout Subsubsection
10044 実装できないもの
10045 \end_layout
10046
10047 \begin_layout Standard
10048 references(2.12.3)環境とdeluxetable(2.14)環境は,少なくとも意味のあるような形で実装することができないので,無視してください.もし,
10049 絶対に,どうしても,deluxetableを使う必要があるならば,テキストエディタで別ファイルとして編集し,
10050 \begin_inset Flex MenuItem
10051 status collapsed
10052
10053 \begin_layout Plain Layout
10054 挿入\SpecialChar menuseparator
10055 ファイル
10056 \begin_inset Formula $\text{\textipa{}}$
10057 \end_inset
10058
10059 \SpecialChar menuseparator
10060 子文書
10061 \end_layout
10062
10063 \end_inset
10064
10065 を使用して,\SpecialChar LyX
10066 ファイルに読み込むことを推奨します.この実例は,
10067 \family typewriter
10068 aas_sample.lyx
10069 \family default
10070 ファイルをご参照ください.
10071 \end_layout
10072
10073 \begin_layout Subsection
10074 FAQとヒントと技とその他の考察
10075 \end_layout
10076
10077 \begin_layout Subsubsection
10078 \SpecialChar LyX
10079 をAAS\SpecialChar TeX
10080 と協調させる
10081 \end_layout
10082
10083 \begin_layout Standard
10084 \SpecialChar LyX
10085 に,新しいレイアウトと文書クラスを認識させるには若干コツが要ります.もしうまく行かなかったら,次のようにしてみてください.
10086 \end_layout
10087
10088 \begin_layout Enumerate
10089 \SpecialChar LaTeX
10090 が,AAS\SpecialChar TeX
10091 を検出できることを確認してください.AAS\SpecialChar TeX
10092 頒布版に含まれる
10093 \family typewriter
10094 sample.tex
10095 \family default
10096 (あるいは
10097 \family typewriter
10098 table.tex
10099 \family default
10100 でも可)を,\SpecialChar LaTeX
10101 やAAS\SpecialChar TeX
10102 とまったく関係のないディレクトリにコピーして,
10103 \family typewriter
10104 sample.tex
10105 \family default
10106 を\SpecialChar LaTeX
10107 にかけてください.
10108 \end_layout
10109
10110 \begin_layout Enumerate
10111
10112 \family typewriter
10113 aastex.layout
10114 \family default
10115 が,\SpecialChar LyX
10116
10117 \family typewriter
10118 layouts
10119 \family default
10120 フォルダにあることを確認してください.
10121 \end_layout
10122
10123 \begin_layout Enumerate
10124 \SpecialChar LyX
10125 中から
10126 \family sans
10127 ツール\SpecialChar menuseparator
10128 環境構成
10129 \family default
10130 を再度実行し,\SpecialChar LyX
10131 を再起動してください.
10132 \end_layout
10133
10134 \begin_layout Enumerate
10135 ひな型ではなく,通常の新規ファイルを開いてください.AAS\SpecialChar TeX
10136 が,
10137 \family sans
10138 文書\SpecialChar menuseparator
10139 設定
10140 \family default
10141 のクラス一覧に表示されていますか?
10142 \end_layout
10143
10144 \begin_layout Standard
10145 既存のAAS\SpecialChar TeX
10146 文書を処理する際に,AAS\SpecialChar TeX
10147 レイアウトを見つけられないとか,「タイトルレイアウトと通常のレイアウトを混在させないでください」といった警告が出るようであ
10148 れば,正しい導入が行われていません.
10149 \end_layout
10150
10151 \begin_layout Subsubsection
10152 表を処理する際の\SpecialChar LaTeX
10153 エラー
10154 \end_layout
10155
10156 \begin_layout Standard
10157 既定では,\SpecialChar LyX
10158 は,表のキャプションやタイトルを中央揃えにしようと試みます.これはAAS\SpecialChar TeX
10159 と悪い相互干渉を発生させるようですので,キャプションやタイトルのどこかをクリッ
10160 クして,
10161 \family sans
10162 編集\SpecialChar menuseparator
10163 段落設定
10164 \family default
10165 を選択し,
10166 \family sans
10167 配置
10168 \family default
10169
10170 \family sans
10171 両端揃え
10172 \family default
10173 に設定してください.私のところではこれで解決しました.
10174 \end_layout
10175
10176 \begin_layout Subsubsection
10177 書誌情報
10178 \end_layout
10179
10180 \begin_layout Standard
10181 若干の注意があります.(1)文献項目の本文中の空白取りが少しおかしくなることがあるようです.書誌情報を入力する際には,最後の著者と,著作年を入れる括弧の間にスペ
10182 ースを
10183 \emph on
10184 入れない
10185 \emph default
10186 ようにしてください.たとえば,
10187 \family typewriter
10188 Ressler(1992)
10189 \family default
10190 はいいですが,
10191 \family typewriter
10192 Ressler (1992)
10193 \family default
10194 ではだめです.(2)書誌情報の入力の仕方は,必ずしも自明ではありません.もっとも簡単な方法は,文書の最後に,最初の書誌情報をまず書き込み,それを
10195 \family sans
10196 書誌情報
10197 \family default
10198 環境としてマークすることです.すると,入力したものの前に,小さな灰色のボックスが現れます.このボックスをクリックして,残りの情報を入力してください.新しい書誌情
10199 報を追加するには,既存の書誌情報の後ろでリターンを押します.すると,新しいボックスの付いた新規行が出てくるので,後は同様にしてください.
10200 \end_layout
10201
10202 \begin_layout Subsubsection
10203 EPSファイルの読み込み
10204 \end_layout
10205
10206 \begin_layout Standard
10207 AAS\SpecialChar TeX
10208 には,自前の図関連コマンド(たとえば
10209 \family typewriter
10210
10211 \backslash
10212 plotone
10213 \family default
10214 )がありますが,私は(既定のgraphicxを使った)\SpecialChar LaTeX
10215 の標準図コマンドの方がずっと好きです.望めば,図フロートボックスに,\SpecialChar TeX
10216 コードで
10217 \family typewriter
10218
10219 \backslash
10220 plotone
10221 \family default
10222 等のコマンドを挿入することはできますが,私には正しいレイアウトを得ることができた試しがありません.標準の画像コマンドを使えば,\SpecialChar LyX
10223 は,
10224 \family typewriter
10225
10226 \backslash
10227 usepackage{graphics}
10228 \family default
10229 コマンドを\SpecialChar LaTeX
10230 プリアンブルに挿入し,図を\SpecialChar LaTeX2e
10231 の標準的な方法で取り扱って,文章の中にちりばめます.現在,ApJは,ちょうどこのようにして作成した図を受け入れていますが,A
10232 Jはまだ「すべてを末尾に積み上げる」方法を使用しているかもしれません.
10233 \end_layout
10234
10235 \begin_layout Subsubsection
10236 可能だったが,実装しなかったもの
10237 \end_layout
10238
10239 \begin_layout Standard
10240 「素敵な」ものの中には,実装することも可能だったけれども,あえて実装しなかったものがあります.たとえば,紙の原稿ではダブルスペースであったとしても,\SpecialChar LyX
10241 ウィンドウ中
10242 で,文章をダブルスペースにする意味はないと考えました.また,preprint様式とpreprint2様式を,独立したレイアウトにすることもしませんでした.いずれ
10243 にしても,執筆時間のほとんどを,平の原稿モードで使うのがほとんどですから,これらの機能でディスクスペースを消費しないことにしました.
10244 \end_layout
10245
10246 \begin_layout Subsection
10247 最後に
10248 \end_layout
10249
10250 \begin_layout Standard
10251 これまでに進んできた道のりは,長い人も短い人もいることでしょう.私には,ApJとAJに発表した論文がありますが,その努力の98
10252 \begin_inset space \thinspace{}
10253 \end_inset
10254
10255 %は\SpecialChar LyX
10256 上で為されました.残りの2
10257 \begin_inset space \thinspace{}
10258 \end_inset
10259
10260 %が,\SpecialChar LaTeX
10261 での後処理と若干の後片付けです.投稿の過程では何のトラブルもなく,これらの学術誌が通常の投稿原稿と違う点に気づくことはなかったでしょう.ですから,がんばっ
10262 て発表してください!
10263 \end_layout
10264
10265 \begin_layout Section
10266 AMS \SpecialChar LaTeX
10267
10268 \end_layout
10269
10270 \begin_layout Standard
10271
10272 \noun on
10273 David Johnson
10274 \noun default
10275 文 
10276 \noun on
10277 Richard Heck
10278 \noun default
10279 改訂
10280 \begin_inset VSpace bigskip
10281 \end_inset
10282
10283
10284 \end_layout
10285
10286 \begin_layout Standard
10287 AMS \SpecialChar LaTeX
10288 レイアウトは,American Mathematical Society(アメリカ数学会)の刊行物に投稿する数学論文用のスタイルです.レイアウトは,特定
10289 の学術誌向けに仕立てられてはいませんが,簡単にそうすることができます.各学術誌毎の指示については,AMSの説明書をご参照ください(通常は,\SpecialChar TeX
10290 出力中の一行を変更する
10291 必要があるだけです).AMSの説明書は,ウェブWeb上の
10292 \begin_inset Flex URL
10293 status open
10294
10295 \begin_layout Plain Layout
10296
10297 http://www.ams.org
10298 \end_layout
10299
10300 \end_inset
10301
10302 か,FTPで
10303 \begin_inset Flex URL
10304 status open
10305
10306 \begin_layout Plain Layout
10307
10308 ftp://ftp.ams.org/pub/tex/amslatex/
10309 \end_layout
10310
10311 \end_inset
10312
10313 から入手することができます.これらのレイアウトは,数学的な文章を書くのであれば,どんなときでも適切かつ有用であるはずです.
10314 \end_layout
10315
10316 \begin_layout Standard
10317 基本となるAMS \SpecialChar LaTeX
10318 レイアウトには,以下の二つがあります.
10319 \end_layout
10320
10321 \begin_layout Itemize
10322 amsart:標準のAMS article書式.
10323 \end_layout
10324
10325 \begin_layout Itemize
10326 amsbook:標準のAMS book(実際はモノグラフ)書式.
10327 \end_layout
10328
10329 \begin_layout Standard
10330 これらのレイアウトには,それ自身では,AMSクラスを使用するのに必要最低限のものしか含まれていません.特に,定理や補題などを設定するのに使用される「theore
10331 m」環境は,何一つ含まれていません.これらは,代わりに
10332 \begin_inset Flex Code
10333 status collapsed
10334
10335 \begin_layout Plain Layout
10336 定理(AMS)
10337 \end_layout
10338
10339 \end_inset
10340
10341 モジュールに収録されており,AMSクラスのいずれかを選択すると,このモジュールが既定で読み込まれるようになっています(これは別のクラスでも使用することができ,別
10342 のものに変えたいときは取り除くこともできます).少し使用頻度の低いものとしては,
10343 \begin_inset Flex Code
10344 status collapsed
10345
10346 \begin_layout Plain Layout
10347 定理(AMS拡張)
10348 \end_layout
10349
10350 \end_inset
10351
10352 モジュールがあり,これは手動で読み込む必要があります.
10353 \end_layout
10354
10355 \begin_layout Standard
10356 既定では,定理類は,文書を通して連番が振られますが,これは
10357 \begin_inset Flex Code
10358 status collapsed
10359
10360 \begin_layout Plain Layout
10361 定理(節毎連番)
10362 \end_layout
10363
10364 \end_inset
10365
10366 モジュールを読み込めば変更することができ,
10367 \begin_inset Flex Code
10368 status collapsed
10369
10370 \begin_layout Plain Layout
10371 book (AMS)
10372 \end_layout
10373
10374 \end_inset
10375
10376 を使用している場合には
10377 \begin_inset Flex Code
10378 status collapsed
10379
10380 \begin_layout Plain Layout
10381 定理(章毎連番)
10382 \end_layout
10383
10384 \end_inset
10385
10386 を用いても変更することができます.これらを用いると,出力は
10387 \begin_inset Formula $n.m$
10388 \end_inset
10389
10390 のようになり,最初の数字は節番号(または章番号),次の数字はそれまで同節内(章内)に現れた出力の全数を表します.大半の環境は,連番なしでも用いることができます.
10391 連番なしのものは,環境名の後ろにアスタリスクを付けたもので表されます.連番なしの出力
10392 \emph on
10393 のみ
10394 \emph default
10395 が欲しい場合には,
10396 \begin_inset Flex Code
10397 status collapsed
10398
10399 \begin_layout Plain Layout
10400 定理(連番なし)
10401 \end_layout
10402
10403 \end_inset
10404
10405 モジュールを用います.
10406 \end_layout
10407
10408 \begin_layout Standard
10409 これらのモジュールは,AMSクラスで使用する
10410 \emph on
10411 必要はない
10412 \emph default
10413 ことに注意してください.
10414 \begin_inset Flex Code
10415 status collapsed
10416
10417 \begin_layout Plain Layout
10418 定理(AMS)
10419 \end_layout
10420
10421 \end_inset
10422
10423 モジュールや上述の他のモジュールは,他のクラス,たとえば
10424 \begin_inset Flex Code
10425 status collapsed
10426
10427 \begin_layout Plain Layout
10428 article
10429 \end_layout
10430
10431 \end_inset
10432
10433
10434 \begin_inset Flex Code
10435 status collapsed
10436
10437 \begin_layout Plain Layout
10438 report
10439 \end_layout
10440
10441 \end_inset
10442
10443
10444 \begin_inset Flex Code
10445 status collapsed
10446
10447 \begin_layout Plain Layout
10448 book (KOMA-script)
10449 \end_layout
10450
10451 \end_inset
10452
10453 などで問題なく使用することができます.
10454 \end_layout
10455
10456 \begin_layout Subsection
10457 これらのレイアウトが提供するもの
10458 \end_layout
10459
10460 \begin_layout Standard
10461 これらのレイアウトが提供している環境を列挙すると,長い一覧となります.AMS-\SpecialChar LaTeX
10462 では,実のところ,「theorem」環境の派生型を際限なく定義していくことが可能で
10463 す.しかし,AMSは,\SpecialChar LyX
10464 で利用可能になっている環境のみを使用することを推奨しています.
10465 \end_layout
10466
10467 \begin_layout Standard
10468 \begin_inset Flex Code
10469 status collapsed
10470
10471 \begin_layout Plain Layout
10472 article (AMS)
10473 \end_layout
10474
10475 \end_inset
10476
10477
10478 \begin_inset Flex Code
10479 status collapsed
10480
10481 \begin_layout Plain Layout
10482 book (AMS)
10483 \end_layout
10484
10485 \end_inset
10486
10487 には,——
10488 \begin_inset space ~
10489 \end_inset
10490
10491
10492 \begin_inset Flex Noun
10493 status collapsed
10494
10495 \begin_layout Plain Layout
10496
10497 \end_layout
10498
10499 \end_inset
10500
10501
10502 \begin_inset Flex Noun
10503 status collapsed
10504
10505 \begin_layout Plain Layout
10506 書誌情報
10507 \end_layout
10508
10509 \end_inset
10510
10511
10512 \begin_inset Flex Noun
10513 status collapsed
10514
10515 \begin_layout Plain Layout
10516 タイトル
10517 \end_layout
10518
10519 \end_inset
10520
10521
10522 \begin_inset Flex Noun
10523 status collapsed
10524
10525 \begin_layout Plain Layout
10526 著者
10527 \end_layout
10528
10529 \end_inset
10530
10531
10532 \begin_inset Flex Noun
10533 status collapsed
10534
10535 \begin_layout Plain Layout
10536 日付
10537 \end_layout
10538
10539 \end_inset
10540
10541 のような標準環境の他に
10542 \begin_inset space ~
10543 \end_inset
10544
10545 ——
10546 \begin_inset space ~
10547 \end_inset
10548
10549 以下の環境があります.
10550 \end_layout
10551
10552 \begin_layout Description
10553 住所 これは著者の恒久的な住所です.
10554 \end_layout
10555
10556 \begin_layout Description
10557 現在の住所 住所と別に指定されているときには,著者の投稿時の仮初めの住所です.
10558 \end_layout
10559
10560 \begin_layout Description
10561 電子メール 著者の電子メールアドレス
10562 \end_layout
10563
10564 \begin_layout Description
10565 URL 著者のウェブアドレス.任意.
10566 \end_layout
10567
10568 \begin_layout Description
10569 キーワード 論文中で論じられているトピックを識別するためのキーワードやキーフレーズ.
10570 \end_layout
10571
10572 \begin_layout Description
10573 分野分類 
10574 \emph on
10575 Mathematical Reviews
10576 \emph default
10577 に説明が公表されているAMS Subject Classificationsの分類番号を指します.上述したAMSのウェブサイトでも,オンラインで見ることができま
10578 す.
10579 \end_layout
10580
10581 \begin_layout Description
10582 謝辞
10583 \end_layout
10584
10585 \begin_layout Description
10586 献呈
10587 \end_layout
10588
10589 \begin_layout Description
10590 翻訳者
10591 \end_layout
10592
10593 \begin_layout Standard
10594 以下の環境は,
10595 \begin_inset Flex Code
10596 status collapsed
10597
10598 \begin_layout Plain Layout
10599 定理
10600 \end_layout
10601
10602 \end_inset
10603
10604 モジュールと
10605 \begin_inset Flex Code
10606 status collapsed
10607
10608 \begin_layout Plain Layout
10609 定理(AMS)
10610 \end_layout
10611
10612 \end_inset
10613
10614 モジュールの両方で提供され,後者の場合には,星付き(連番なし)版と星なし(連番)版の両方が提供されます.
10615 \begin_inset Flex Code
10616 status collapsed
10617
10618 \begin_layout Plain Layout
10619 定理(連番なし)
10620 \end_layout
10621
10622 \end_inset
10623
10624 モジュールでは,同環境の星付き版だけが提供されます.
10625 \end_layout
10626
10627 \begin_layout Theorem
10628 これは,通常,得られた主要な結果を叙述するのに使用されます.
10629 \end_layout
10630
10631 \begin_layout Corollary*
10632 これは直前の叙述から比較的直接に導き出せる結果を叙述するのに使います.これも主要な結果であることがあります.
10633 \end_layout
10634
10635 \begin_layout Lemma
10636 他の叙述を証明するために必要とされる,比較的小さな結果です.
10637 \end_layout
10638
10639 \begin_layout Proposition
10640 議論されている一般的な理論に(希望的には)何かを付け加えるような,主要ではない結果です.
10641 \end_layout
10642
10643 \begin_layout Conjecture
10644 正当化を与えずに述べられた叙述で,著者には証明法がわからないけれども,正しいと(少なくとも著者にとっては)思われるものです.
10645 \end_layout
10646
10647 \begin_layout Definition*
10648 これは自明でしょう.この環境のフォントは,前述の環境とは異なるフォントが使用されます.
10649 \end_layout
10650
10651 \begin_layout Problem
10652 これが何を指すかは必ずしも特定されていません.ご自分で解明してください.
10653 \end_layout
10654
10655 \begin_layout Exercise*
10656 この環境の説明を記述せよ.
10657 \end_layout
10658
10659 \begin_layout Note
10660 この環境もtheorem型,通常は重要性の低い所見に用いられます.
10661 \end_layout
10662
10663 \begin_layout Claim*
10664 より大きな結果の証明を与える途中で,しばしば用いられます.
10665 \end_layout
10666
10667 \begin_layout Case
10668 一般的に,これらはある条件の特定の場合を取り上げて,長い議論を区切るのに用いられます.
10669 \end_layout
10670
10671 \begin_layout Case
10672 ケースの連番の枠組みは,それ自身で独立していて,他の連番の叙述とは区別されます.
10673 \end_layout
10674
10675 \begin_layout Proof
10676 この環境の最後には,証了記号(通常は四角ですがスタイルによって変わります)が置かれます.この環境の中に別の環境を入れたい——たとえばケース環境など——場合で,証
10677 了記号は証明環境の終わりにのみ現れるようにしたい場合には,他の環境は証明環境の中に入れ子にしなくてはなりません.入れ子に関する情報については,
10678 \emph on
10679 ユーザーの手引き
10680 \emph default
10681
10682 \emph on
10683 環境を入れ子にする
10684 \emph default
10685 の節をご覧ください.
10686 \end_layout
10687
10688 \begin_layout Standard
10689 そして,以下は
10690 \begin_inset Flex Code
10691 status collapsed
10692
10693 \begin_layout Plain Layout
10694 定理(AMS拡張)
10695 \end_layout
10696
10697 \end_inset
10698
10699 で提供されるものです.
10700 \end_layout
10701
10702 \begin_layout Criterion*
10703 必要とされる条件です.
10704 \end_layout
10705
10706 \begin_layout Algorithm*
10707 使用する一般的手順です.
10708 \end_layout
10709
10710 \begin_layout Axiom*
10711 議論されている系内部で真と仮定される性質や命題です.
10712 \end_layout
10713
10714 \begin_layout Condition*
10715 議論の現在の文脈で仮定されている条件を述べるのに,よく用いられます.
10716 \end_layout
10717
10718 \begin_layout Note*
10719 注記と同様です.
10720 \end_layout
10721
10722 \begin_layout Notation*
10723 表記法の説明に用いられます.
10724 \end_layout
10725
10726 \begin_layout Summary
10727 本当に説明する必要がありますか?
10728 \end_layout
10729
10730 \begin_layout Acknowledgement*
10731 謝辞(acknowledgement)です.
10732 \end_layout
10733
10734 \begin_layout Conclusion*
10735 長い議論の終わりに時々用いられます.
10736 \end_layout
10737
10738 \begin_layout Fact
10739 命題と同様の用いられ方をしますが,だいたい長くないものに使われるようです.
10740 \end_layout
10741
10742 \begin_layout Standard
10743 さらに,AMSクラスは,AMS \SpecialChar LaTeX
10744 パッケージとAMSフォントパッケージを自動的に提供します.これらの環境を使用するためには,お使いのシステム上で利用可能となってい
10745 る必要があります.
10746 \end_layout
10747
10748 \begin_layout Section
10749 AGU各誌(
10750 \family sans
10751 aguplus)
10752 \end_layout
10753
10754 \begin_layout Standard
10755
10756 \noun on
10757 Martin Vermeer
10758 \noun default
10759
10760 \end_layout
10761
10762 \begin_layout Subsection
10763 概要
10764 \end_layout
10765
10766 \begin_layout Standard
10767 これはAmerican Geophysical Society(アメリカ地球物理学会) の各学術誌向けのレイアウトファイルです.AGU発行のクラスファイルおよび
10768 AGUplusの両方(これらは
10769 \begin_inset Flex URL
10770 status collapsed
10771
10772 \begin_layout Plain Layout
10773
10774 http://publications.agu.org/files/2013/08/AGU-LaTeX.zip
10775 \end_layout
10776
10777 \end_inset
10778
10779 にあります)が導入されていることが必要です.
10780 \end_layout
10781
10782 \begin_layout Subsection
10783 新しいスタイル
10784 \end_layout
10785
10786 \begin_layout Standard
10787
10788 \family sans
10789 段落
10790 \family default
10791 および
10792 \family sans
10793 段落*
10794 \family default
10795 は,定義し直されています.\SpecialChar LyX
10796 の画面では,依然として
10797 \family sans
10798 段落
10799 \family default
10800
10801 \family sans
10802 段落*
10803 \family default
10804 と表示されますが,AGUクラスにおける\SpecialChar LaTeX
10805 の対応物は,
10806 \family sans
10807 Subsubsubsection
10808 \family default
10809
10810 \family sans
10811 Subsubsubsection*
10812 \family default
10813 です.
10814 \end_layout
10815
10816 \begin_layout Standard
10817 新しく定義されたスタイルには,
10818 \family sans
10819 左ヘッダ
10820 \family default
10821
10822 \family sans
10823 右ヘッダ
10824 \family default
10825
10826 \family sans
10827 受理日
10828 \family default
10829
10830 \family sans
10831 改訂
10832 \family default
10833
10834 \family sans
10835 採択日
10836 \family default
10837
10838 \family sans
10839 CCC
10840 \family default
10841
10842 \family sans
10843 論文ID
10844 \family default
10845
10846 \family sans
10847 著者住所
10848 \family default
10849
10850 \family sans
10851 廃棄用コメント
10852 \family default
10853 があります.これらは,ほとんど草稿用属性で,AGUクラス説明書で説明されています.
10854 \end_layout
10855
10856 \begin_layout Standard
10857 おそらく,これはまだ恐ろしく不完全です.
10858 \end_layout
10859
10860 \begin_layout Subsection
10861 新しいフロート
10862 \end_layout
10863
10864 \begin_layout Standard
10865
10866 \family sans
10867 平面表(Planotable
10868 \family default
10869 )と
10870 \family sans
10871 挿絵
10872 \family default
10873 (Plate)が新しいフロートです.また,
10874 \family sans
10875 表キャプション
10876 \family default
10877 も付け加えられています.
10878 \end_layout
10879
10880 \begin_layout Subsection
10881 サポートされている学術誌
10882 \end_layout
10883
10884 \begin_layout Itemize
10885
10886 \emph on
10887 Journal of Geophysical Research
10888 \emph default
10889
10890 \family typewriter
10891 jgrga.layout
10892 \family default
10893  — Martin Vermeer
10894 \end_layout
10895
10896 \begin_layout Standard
10897 ここにあなたの作ったものを加えてください.難しくはありません.
10898 \family typewriter
10899 jgrga.layout
10900 \family default
10901 と 
10902 \family typewriter
10903 aguplus.inc
10904 \family default
10905 を用例として見てください.
10906 \end_layout
10907
10908 \begin_layout Subsection
10909 バグと注意すべきこと
10910 \end_layout
10911
10912 \begin_layout Standard
10913 新しいレイアウトを使うためには,新規文書の作成時に以下の手順を行う必要があります.
10914 \end_layout
10915
10916 \begin_layout Enumerate
10917
10918 \emph on
10919 babelを無効にしてください.
10920 \emph default
10921 これは,
10922 \family sans
10923 ツール\SpecialChar menuseparator
10924 設定
10925 \family default
10926 メニュー項目で行うことができます(AGUの論文は常に英語ですよね.ですから他の言語は
10927 \emph on
10928 選ばないで下さい
10929 \emph default
10930 ).
10931 \end_layout
10932
10933 \begin_layout Enumerate
10934 使用文書の追加オプションフィールドに
10935 \family typewriter
10936 jgrga
10937 \family default
10938 と入力してください(すみません,これはバグです).
10939 \end_layout
10940
10941 \begin_layout Enumerate
10942 Bib\SpecialChar TeX
10943 差込枠の2番目のフィールドに
10944 \family sans
10945 agu
10946 \family default
10947 と入力して,書誌情報のスタイルに
10948 \family typewriter
10949 agu.bst
10950 \family default
10951 を使用していることを確認してください.標準スタイルはうまく動作しません.
10952 \end_layout
10953
10954 \begin_layout Section
10955 Broadway
10956 \end_layout
10957
10958 \begin_layout Standard
10959
10960 \noun on
10961 Garst Reese
10962 \noun default
10963
10964 \end_layout
10965
10966 \begin_layout Subsection
10967 はじめに
10968 \end_layout
10969
10970 \begin_layout Standard
10971 Broadwayは演劇を書くためのものです.書式はHollywoodよりも装飾的で,それほど標準化されていません.この書式はワークショップに向いているでしょう.
10972 \end_layout
10973
10974 \begin_layout Subsection
10975 特別な問題
10976 \end_layout
10977
10978 \begin_layout Standard
10979 Hollywoodと同様です.
10980 \end_layout
10981
10982 \begin_layout Subsection
10983 特別の機能
10984 \end_layout
10985
10986 \begin_layout Standard
10987
10988 \family sans
10989 話者
10990 \family default
10991 の名前をラベルとして挿入し,名前を挿入する際には,このラベルを相互参照してください.相互参照ダイアログには,登場人物の現在の配役が表示されます.
10992 \end_layout
10993
10994 \begin_layout Subsection
10995 用紙寸法と余白
10996 \end_layout
10997
10998 \begin_layout Standard
10999 USレター寸法で,余白は左1.6インチ,右0.75インチ,上0.5インチ,下0.75インチです.
11000 \end_layout
11001
11002 \begin_layout Subsection
11003 環境
11004 \end_layout
11005
11006 \begin_layout Standard
11007 以下の環境を使うことができます.右に記してある
11008 \begin_inset Flex Ruby
11009 status collapsed
11010
11011 \begin_layout Plain Layout
11012
11013 \begin_inset Argument post:1
11014 status collapsed
11015
11016 \begin_layout Plain Layout
11017 キー
11018 \end_layout
11019
11020 \end_inset
11021
11022
11023 \end_layout
11024
11025 \end_inset
11026
11027 割当ては,broadway.bindを使った場合のものです.
11028 \end_layout
11029
11030 \begin_layout Itemize
11031
11032 \family sans
11033 標準
11034 \begin_inset Newline newline
11035 \end_inset
11036
11037
11038 \family default
11039 これは使わなくていいはずですが,他の環境が当てはまらない場合のためにここに挙げておきます.
11040 \end_layout
11041
11042 \begin_layout Itemize
11043
11044 \family sans
11045 ト書き
11046 \begin_inset space \hfill{}
11047 \end_inset
11048
11049 M-z n
11050 \begin_inset Newline newline
11051 \end_inset
11052
11053
11054 \family default
11055 舞台設定と動作の説明に用います.最初に話者名をすべて大文字で書いておきます.
11056 \end_layout
11057
11058 \begin_layout Itemize
11059
11060 \family sans
11061
11062 \begin_inset space \hfill{}
11063 \end_inset
11064
11065 M-z a
11066 \begin_inset Newline newline
11067 \end_inset
11068
11069
11070 \family default
11071 自動的に連番が振られます.連番は,画面上ではアラビア数字ですが,出力ではローマ数字です.
11072 \end_layout
11073
11074 \begin_layout Itemize
11075
11076 \family sans
11077 幕*
11078 \begin_inset space \hfill{}
11079 \end_inset
11080
11081 M-z S at
11082 \begin_inset Newline newline
11083 \end_inset
11084
11085
11086 \family default
11087 幕の副題です.単に中央揃えの文になります.
11088 \end_layout
11089
11090 \begin_layout Itemize
11091
11092 \family sans
11093 場面
11094 \begin_inset space \hfill{}
11095 \end_inset
11096
11097 M-z S-S
11098 \begin_inset Newline newline
11099 \end_inset
11100
11101
11102 \family default
11103 自動的に連番は振られませんので,手動で番号を付けてください.これは私がどうすればいいか分からなかったためです.
11104 \end_layout
11105
11106 \begin_layout Itemize
11107
11108 \family sans
11109 幕開きに:
11110 \begin_inset space \hfill{}
11111 \end_inset
11112
11113 M-z S-R
11114 \begin_inset Newline newline
11115 \end_inset
11116
11117
11118 \family default
11119 ト書きの特殊な場合で,カーテンが上がるときの舞台設定と動作を説明します.
11120 \end_layout
11121
11122 \begin_layout Itemize
11123
11124 \family sans
11125 話者
11126 \begin_inset space \hfill{}
11127 \end_inset
11128
11129 M-z s
11130 \begin_inset Newline newline
11131 \end_inset
11132
11133
11134 \family default
11135 話者(役者)の配役です.すべて大文字で中央揃えに置かれます.
11136 \end_layout
11137
11138 \begin_layout Itemize
11139
11140 \family sans
11141 括弧付き
11142 \begin_inset space \hfill{}
11143 \end_inset
11144
11145 M-z p
11146 \begin_inset Newline newline
11147 \end_inset
11148
11149
11150 \family default
11151 話者への指示です.括弧は自動的に挿入されます.画面上には左括弧(のみが表示されますが,印字出力には両方の括弧が表示されます.この環境は,
11152 \family sans
11153 対話
11154 \family default
11155 の中だけで使用されます. 
11156 \end_layout
11157
11158 \begin_layout Itemize
11159
11160 \family sans
11161 対話
11162 \begin_inset space \hfill{}
11163 \end_inset
11164
11165 M-z d
11166 \begin_inset Newline newline
11167 \end_inset
11168
11169
11170 \family default
11171 話者の言う内容.
11172 \end_layout
11173
11174 \begin_layout Itemize
11175
11176 \family sans
11177 幕切れ
11178 \begin_inset space \hfill{}
11179 \end_inset
11180
11181 M-z S-C
11182 \begin_inset Newline newline
11183 \end_inset
11184
11185
11186 \family default
11187 幕が降ります.
11188 \end_layout
11189
11190 \begin_layout Itemize
11191
11192 \family sans
11193 タイトル
11194 \begin_inset space \hfill{}
11195 \end_inset
11196
11197 M-z S-T
11198 \end_layout
11199
11200 \begin_layout Itemize
11201
11202 \family sans
11203 著者
11204 \begin_inset space \hfill{}
11205 \end_inset
11206
11207 M-z S-A
11208 \end_layout
11209
11210 \begin_layout Itemize
11211
11212 \family sans
11213 右寄せ住所
11214 \begin_inset space \hfill{}
11215 \end_inset
11216
11217 M-z r
11218 \end_layout
11219
11220 \begin_layout Section
11221 Dinbrief
11222 \end_layout
11223
11224 \begin_layout Standard
11225 文書クラス
11226 \family sans
11227 dinbrief
11228 \family default
11229 は,ドイツの慣習に則った書簡の組版を行うのに用いられます.ひな型ファイルが
11230 \family typewriter
11231 .../lyx/share/templates
11232 \family default
11233 にあるので,それを土台として使用してください.
11234 \end_layout
11235
11236 \begin_layout Section
11237 EGS各誌
11238 \family sans
11239 (egs)
11240 \end_layout
11241
11242 \begin_layout Standard
11243
11244 \noun on
11245 Martin Vermeer
11246 \noun default
11247
11248 \end_layout
11249
11250 \begin_layout Subsection
11251 概要
11252 \end_layout
11253
11254 \begin_layout Standard
11255 これはEuropean Geophysical Society(欧州地球物理学会)の学術誌向けのレイアウトファイルです.必要とされる
11256 \family typewriter
11257 egs.cls
11258 \family default
11259 は,EGSのウェブサイト
11260 \begin_inset Flex URL
11261 status collapsed
11262
11263 \begin_layout Plain Layout
11264
11265 http://www.copernicus.org/
11266 \end_layout
11267
11268 \end_inset
11269
11270 からダウンロードできます.
11271 \end_layout
11272
11273 \begin_layout Subsection
11274 新しいスタイル
11275 \end_layout
11276
11277 \begin_layout Standard
11278 新しいスタイルとして,
11279 \family sans
11280 右寄せ住所
11281 \family default
11282
11283 \family sans
11284 \SpecialChar LaTeX
11285 タイトル
11286 \family default
11287
11288 \family sans
11289 所属
11290 \family default
11291
11292 \family sans
11293 学術誌名
11294 \family default
11295
11296 \family sans
11297 原稿番号
11298 \family default
11299
11300 \family sans
11301 筆頭著者
11302 \family default
11303
11304 \family sans
11305 受理日
11306 \family default
11307
11308 \family sans
11309 採択日
11310 \family default
11311
11312 \family sans
11313 オフセット
11314 \family default
11315 があります.現在のレイアウトファイルは,残念ながらほとんどモジュール化されておらず,さまざまな
11316 \family typewriter
11317 std*.inc
11318 \family default
11319 ファイルを読み込む形に変えた方が便利になると思われます.
11320 \end_layout
11321
11322 \begin_layout Section
11323 Elsevier各誌
11324 \end_layout
11325
11326 \begin_layout Standard
11327 \SpecialChar LyX
11328 ひな型ファイルの
11329 \family typewriter
11330 elsarticle.lyx
11331 \family default
11332 を参照してください.必要な情報は全てそこにあります.
11333 \end_layout
11334
11335 \begin_layout Section
11336 Foils別名Foil\SpecialChar TeX
11337
11338 \begin_inset CommandInset label
11339 LatexCommand label
11340 name "sec:foiltex"
11341
11342 \end_inset
11343
11344
11345 \end_layout
11346
11347 \begin_layout Standard
11348
11349 \noun on
11350 Allan Rae
11351 \noun default
11352
11353 \end_layout
11354
11355 \begin_layout Subsection
11356 はじめに
11357 \end_layout
11358
11359 \begin_layout Standard
11360 本節では,プレゼンテーション用のスライドを作るための,\SpecialChar LyX
11361 の使用法を解説します.スライドを作ることのできる文書クラスには,slides・Foil\SpecialChar TeX
11362 ・seminar・b
11363 eamer・powerdotといったクラスがありますが,本節では,そのうちslidesの解説を行います.
11364 \end_layout
11365
11366 \begin_layout Standard
11367 誤解のないように,わかりやすく明確に,もう一度言っておきます.
11368 \end_layout
11369
11370 \begin_layout Standard
11371 \begin_inset VSpace bigskip
11372 \end_inset
11373
11374
11375 \end_layout
11376
11377 \begin_layout Standard
11378 \align center
11379
11380 \size large
11381 本節は「
11382 \family sans
11383 FoilTeX
11384 \family default
11385 」クラス
11386 \emph on
11387 のみの
11388 \emph default
11389 解説を行います.
11390 \end_layout
11391
11392 \begin_layout Standard
11393 \begin_inset VSpace bigskip
11394 \end_inset
11395
11396
11397 \end_layout
11398
11399 \begin_layout Standard
11400
11401 \family sans
11402 transparencies (slides)
11403 \family default
11404 」の解説をお探しであれば,第
11405 \begin_inset CommandInset ref
11406 LatexCommand ref
11407 reference "sec:slitex"
11408
11409 \end_inset
11410
11411 節をご覧ください.お使いのコンピュータに
11412 \family sans
11413 foils
11414 \family default
11415 クラス
11416 \family sans
11417 FoilTeX
11418 \family default
11419 が導入されていなければ,
11420 \family sans
11421 foils
11422 \family default
11423 ほど良くはありませんが,おそらく
11424 \family sans
11425 slides
11426 \family default
11427 クラスを使わざるをえないでしょう.
11428 \end_layout
11429
11430 \begin_layout Standard
11431
11432 \family sans
11433 foils
11434 \family default
11435 クラスは,\SpecialChar LaTeX2e
11436 の一部として含まれている\SpecialChar LaTeX
11437 クラスファイル
11438 \family sans
11439 foils.cls
11440 \family default
11441 の第2.1版とともに使われるように設計されています.
11442 \end_layout
11443
11444 \begin_layout Subsection
11445 最初の一歩
11446 \end_layout
11447
11448 \begin_layout Standard
11449 いうまでもなく,この文書クラスを使うには,
11450 \family sans
11451 文書\SpecialChar menuseparator
11452 設定\SpecialChar menuseparator
11453 文書クラス
11454 \family default
11455 メニューの
11456 \family sans
11457 文書クラス
11458 \family default
11459 ドロップダウンで「
11460 \family sans
11461 FoilTeX
11462 \family default
11463 」を選択する必要があります.また,
11464 \family sans
11465 文書設定
11466 \family default
11467 ダイアログ中には,以下のように,このクラスに特有の設定がいくつかあることを知っておかなくてはなりません.
11468 \end_layout
11469
11470 \begin_layout Itemize
11471
11472 \family sans
11473 文書設定
11474 \family default
11475 ダイアログ中の,
11476 \family sans
11477 両面文書
11478 \family default
11479 オプションと
11480 \family sans
11481 二段組文書
11482 \family default
11483 オプションは変更しないでください.これらは 
11484 \family sans
11485 foils
11486 \family default
11487 クラスでは無視されます.
11488 \end_layout
11489
11490 \begin_layout Itemize
11491 既定のフォント寸法は20ptであり,17
11492 \begin_inset space \thinspace{}
11493 \end_inset
11494
11495 pt・25
11496 \begin_inset space \thinspace{}
11497 \end_inset
11498
11499 pt・30
11500 \begin_inset space \thinspace{}
11501 \end_inset
11502
11503 ptを選択することも可能です.
11504 \end_layout
11505
11506 \begin_layout Itemize
11507 既定のフォントは
11508 \family sans
11509 sans
11510 \family default
11511  
11512 \family sans
11513 serif
11514 \family default
11515 ですが,数式ではすべて,通常のローマン体が使用されます.
11516 \end_layout
11517
11518 \begin_layout Itemize
11519 Foil\SpecialChar TeX
11520 は,35
11521 \begin_inset space \thinspace{}
11522 \end_inset
11523
11524 mmスライド用の特殊寸法の他,A4とレター大の用紙寸法をサポートします.A5・B5・リーガル・エグゼクティブ大の用紙寸法はサポートしていません.
11525 \end_layout
11526
11527 \begin_layout Itemize
11528
11529 \family sans
11530 フロートの配置
11531 \family default
11532 の設定は無視されますので,わざわざ変更する必要はありません.フロートはすべて,本文中で定義された位置に表示されます.
11533 \end_layout
11534
11535 \begin_layout Itemize
11536 このクラスの
11537 \family sans
11538 ページレイアウト
11539 \family default
11540 の設定は,若干異なった挙動を示します.Foil\SpecialChar TeX
11541 では,ユーザ定義のロゴをはじめ,フッタとへッダに広範な設定ができます.詳細については第
11542 \begin_inset CommandInset ref
11543 LatexCommand ref
11544 reference "sec:foilfoot"
11545
11546 \end_inset
11547
11548 節をご覧ください.タイトルページは,文書中の他のページとは異なった取扱がなされ,ページ番号は
11549 \emph on
11550 つねに
11551 \emph default
11552 付けられず,(ロゴが定義されていれば)ロゴは,
11553 \emph on
11554 つねに
11555 \emph default
11556 ページ下部中央に表示されます.使用できるページ様式とその挙動は,以下の通りです.
11557 \end_layout
11558
11559 \begin_deeper
11560 \begin_layout Labeling
11561 \labelwidthstring MMMMMMM
11562
11563 \family sans
11564 \series bold
11565 empty
11566 \family default
11567 \series default
11568  最終出力には,ページ番号をはじめ,へッダ・フッタが出力されません(もちろん脚注は除きます).
11569 \end_layout
11570
11571 \begin_layout Labeling
11572 \labelwidthstring MMMMMMM
11573
11574 \family sans
11575 \series bold
11576 plain
11577 \family default
11578 \series default
11579  最終出力には,ページ番号がページ下部の中央に出力されますが,他のへッダ・フッタは出力されません(脚注除く).
11580 \end_layout
11581
11582 \begin_layout Labeling
11583 \labelwidthstring MMMMMMM
11584
11585 \series bold
11586 foilheadings
11587 \series default
11588  ページ番号が右下隅に出力されます.追記したへッダ・フッタも出力されます.これが既定値です.
11589 \end_layout
11590
11591 \begin_layout Labeling
11592 \labelwidthstring MMMMMMM
11593
11594 \series bold
11595 fancy
11596 \series default
11597  これは
11598 \family sans
11599 fancyheadings
11600 \family default
11601 パッケージを使えるようにします.ただし,Foil\SpecialChar TeX
11602 パッケージの作者は,ページレイアウトが崩れる可能性があるので,これを使用することは勧めないと言及しています.
11603 \end_layout
11604
11605 \end_deeper
11606 \begin_layout Subsubsection
11607 任意設定クラスオプション
11608 \end_layout
11609
11610 \begin_layout Standard
11611 以下のオプションは
11612 \family sans
11613 文書設定
11614 \family default
11615 ダイアログの任意設定クラスオプションボックスで使うことができます.
11616 \end_layout
11617
11618 \begin_layout Labeling
11619 \labelwidthstring MMMMMMx
11620
11621 \series bold
11622 35mmSlide
11623 \series default
11624  これは,ページレイアウトを縦7.33インチ横11インチに設定します.これは35
11625 \begin_inset space \space{}
11626 \end_inset
11627
11628 mmスライドの縦横比にほぼ等しく,このメディアを作る作業が若干易しくなります.
11629 \end_layout
11630
11631 \begin_layout Labeling
11632 \labelwidthstring MMMMMMx
11633
11634 \series bold
11635 headrule
11636 \series default
11637  タイトルページを除くすべてのページのへッダの下に罫線を入れます.
11638 \end_layout
11639
11640 \begin_layout Labeling
11641 \labelwidthstring MMMMMMx
11642
11643 \series bold
11644 footrule
11645 \series default
11646  タイトルページを除くすべてのページのフッタの上に罫線を入れます.
11647 \end_layout
11648
11649 \begin_layout Labeling
11650 \labelwidthstring MMMMMMx
11651
11652 \series bold
11653 dvips
11654 \series default
11655  これは,新規
11656 \family sans
11657 foils
11658 \family default
11659 文書を作成する度に自動的に設定されます.このオプションは,横向きに設定されたページを回転させるのに,dvipsドライバを使うようFoil\SpecialChar TeX
11660 に指示します.
11661 \end_layout
11662
11663 \begin_layout Labeling
11664 \labelwidthstring MMMMMMx
11665
11666 \series bold
11667 landscape
11668 \series default
11669  このオプションは,用紙寸法を横向きページ大に変更するだけで,回転は行いません.したがって,このオプションを使う場合は,各ページを回転させる外部プログラムを使用
11670 する,プリンタに用紙を横向きに給紙する必要があります.また,このオプションは,
11671 \family sans
11672 Foilhead
11673 \family default
11674 環境と
11675 \family sans
11676 Rotatefoilhead
11677 \family default
11678 環境の役割を逆転させることに注意してください(これらの環境については次節で説明します).
11679 \end_layout
11680
11681 \begin_layout Labeling
11682 \labelwidthstring MMMMMMx
11683
11684 \series bold
11685 leqno
11686 \series default
11687  数式番号を左側に付けます.
11688 \end_layout
11689
11690 \begin_layout Labeling
11691 \labelwidthstring MMMMMMx
11692
11693 \series bold
11694 fleqn
11695 \series default
11696  数式を左揃えにします.
11697 \end_layout
11698
11699 \begin_layout Subsection
11700 サポートされる環境
11701 \end_layout
11702
11703 \begin_layout Standard
11704 他のクラスで標準的にサポートされている環境は,
11705 \family sans
11706 foils
11707 \family default
11708 クラスでもサポートされています.それ以外に,Foil\SpecialChar TeX
11709 が提供している環境と,\SpecialChar LyX
11710 が付け加えた環境があります.以下の環境は,他のクラスと共通の環境です.
11711 \end_layout
11712
11713 \begin_layout Standard
11714
11715 \family sans
11716 \begin_inset Flex Multiple Columns
11717 status open
11718
11719 \begin_layout Itemize
11720
11721 \family sans
11722 標準
11723 \end_layout
11724
11725 \begin_layout Itemize
11726
11727 \family sans
11728 箇条書き(記号)
11729 \end_layout
11730
11731 \begin_layout Itemize
11732
11733 \family sans
11734 箇条書き(連番)
11735 \end_layout
11736
11737 \begin_layout Itemize
11738
11739 \family sans
11740 箇条書き(記述)
11741 \end_layout
11742
11743 \begin_layout Itemize
11744
11745 \family sans
11746 箇条書き(リスト)
11747 \end_layout
11748
11749 \begin_layout Itemize
11750
11751 \family sans
11752 \SpecialChar LyX
11753 コード
11754 \end_layout
11755
11756 \begin_layout Itemize
11757
11758 \family sans
11759 詩句
11760 \end_layout
11761
11762 \begin_layout Itemize
11763
11764 \family sans
11765 引用(字下げあり)
11766 \end_layout
11767
11768 \begin_layout Itemize
11769
11770 \family sans
11771 引用(字下げなし)
11772 \end_layout
11773
11774 \begin_layout Itemize
11775
11776 \family sans
11777 タイトル
11778 \end_layout
11779
11780 \begin_layout Itemize
11781
11782 \family sans
11783 著者
11784 \end_layout
11785
11786 \begin_layout Itemize
11787
11788 \family sans
11789 日付
11790 \end_layout
11791
11792 \begin_layout Itemize
11793
11794 \family sans
11795 概要
11796 \end_layout
11797
11798 \begin_layout Itemize
11799
11800 \family sans
11801 書誌情報
11802 \end_layout
11803
11804 \begin_layout Itemize
11805
11806 \family sans
11807 住所
11808 \end_layout
11809
11810 \begin_layout Itemize
11811
11812 \family sans
11813 右寄せ住所
11814 \end_layout
11815
11816 \end_inset
11817
11818
11819 \end_layout
11820
11821 \begin_layout Standard
11822 つまり,節区切りを除けば,主な環境のすべてです.一枚のスライドは,基本的にタイトルと本文を備えた自己完結した節なので,
11823 \family sans
11824 Foil
11825 \family default
11826 \SpecialChar TeX
11827 は新しいスライドを始める以下のようなコマンドを備えています.
11828 \end_layout
11829
11830 \begin_layout Itemize
11831
11832 \family sans
11833 スライドタイトル(Foilhead)
11834 \end_layout
11835
11836 \begin_layout Itemize
11837
11838 \family sans
11839 横置きスライドタイトル(Rotatefoilhead)
11840 \end_layout
11841
11842 \begin_layout Standard
11843 \SpecialChar LyX
11844 は,以下のような,これらを若干修正した環境も用意しています.
11845 \end_layout
11846
11847 \begin_layout Itemize
11848
11849 \family sans
11850 スライドタイトル(小)(ShortFoilhead)
11851 \end_layout
11852
11853 \begin_layout Itemize
11854
11855 \family sans
11856 横置きスライドタイトル(小)(ShortRotatefoilhead)
11857 \end_layout
11858
11859 \begin_layout Standard
11860 これらの違いは次節で説明します.
11861 \end_layout
11862
11863 \begin_layout Standard
11864 スライドは,アイデアを説明したり,新しい定理を説明したりするのにしばしば使われるので,
11865 \family sans
11866 Foil
11867 \family default
11868 \SpecialChar TeX
11869 はそれらを説明するのに便利な環境を幅広く用意しています.
11870 \end_layout
11871
11872 \begin_layout Standard
11873
11874 \family sans
11875 \begin_inset Flex Multiple Columns
11876 status open
11877
11878 \begin_layout Itemize
11879
11880 \family sans
11881 定理
11882 \end_layout
11883
11884 \begin_layout Itemize
11885
11886 \family sans
11887 補題
11888 \end_layout
11889
11890 \begin_layout Itemize
11891
11892 \family sans
11893
11894 \end_layout
11895
11896 \begin_layout Itemize
11897
11898 \family sans
11899 命題
11900 \end_layout
11901
11902 \begin_layout Itemize
11903
11904 \family sans
11905 定義
11906 \end_layout
11907
11908 \begin_layout Itemize
11909
11910 \family sans
11911 証明
11912 \end_layout
11913
11914 \begin_layout Itemize
11915
11916 \family sans
11917 定理*
11918 \end_layout
11919
11920 \begin_layout Itemize
11921
11922 \family sans
11923 補題*
11924 \end_layout
11925
11926 \begin_layout Itemize
11927
11928 \family sans
11929 系*
11930 \end_layout
11931
11932 \begin_layout Itemize
11933
11934 \family sans
11935 命題*
11936 \end_layout
11937
11938 \begin_layout Itemize
11939
11940 \family sans
11941 定義*
11942 \end_layout
11943
11944 \end_inset
11945
11946
11947 \end_layout
11948
11949 \begin_layout Standard
11950 星付き版は連番が振られず,星なし版は連番が振られます.他に,\SpecialChar LyX
11951 で追加された以下の2つの箇条書き環境があります.
11952 \end_layout
11953
11954 \begin_layout Itemize
11955
11956 \family sans
11957 箇条書き(チック)
11958 \end_layout
11959
11960 \begin_layout Itemize
11961
11962 \family sans
11963 箇条書き(クロス)
11964 \end_layout
11965
11966 \begin_layout Standard
11967 Foil\SpecialChar TeX
11968 には,強力なヘッダ機能とフッタ機能があり,これらはプリアンブルで設定するのが最良ですが,文章中のどこでも設定することができます.もし文書中でこれらの設定
11969 を変更したい場合には,スライドの一番上,foilheadの直後で行うのが良いでしょう.
11970 \end_layout
11971
11972 \begin_layout Standard
11973 この目的のためには,以下のコマンドスタイルがあります(
11974 \shape smallcaps
11975 Martin Vermeer).
11976 \end_layout
11977
11978 \begin_layout Standard
11979 \begin_inset Flex Multiple Columns
11980 status open
11981
11982 \begin_layout Itemize
11983
11984 \family sans
11985 グラフィックスロゴ
11986 \end_layout
11987
11988 \begin_layout Itemize
11989
11990 \family sans
11991 配布制限
11992 \end_layout
11993
11994 \begin_layout Itemize
11995
11996 \family sans
11997 右フッタ
11998 \end_layout
11999
12000 \begin_layout Itemize
12001
12002 \family sans
12003 右ヘッダ
12004 \end_layout
12005
12006 \begin_layout Itemize
12007
12008 \family sans
12009 左ヘッダ
12010 \end_layout
12011
12012 \begin_deeper
12013 \begin_layout Plain Layout
12014 \begin_inset space ~
12015 \end_inset
12016
12017
12018 \end_layout
12019
12020 \end_deeper
12021 \end_inset
12022
12023
12024 \end_layout
12025
12026 \begin_layout Standard
12027 Foil\SpecialChar TeX
12028 が提供しているコマンドで,\SpecialChar LyX
12029 が直接サポートしていないコマンドもありますが,これらの説明と使い方については,第
12030 \begin_inset CommandInset ref
12031 LatexCommand ref
12032 reference "sec:unsuppfoils"
12033
12034 \end_inset
12035
12036 節で行います.
12037 \end_layout
12038
12039 \begin_layout Subsection
12040 スライドの組を作る
12041 \end_layout
12042
12043 \begin_layout Standard
12044 この節は,様々な環境を使ってスライドの組を作る方法を簡単に紹介します.スライド組の例をご覧になりたい場合は,\SpecialChar LyX
12045
12046 \family typewriter
12047 examples
12048 \family default
12049 フォルダにある
12050 \family typewriter
12051 Foils.lyx
12052 \family default
12053 ファイルをご覧ください.
12054 \end_layout
12055
12056 \begin_layout Subsubsection
12057 タイトルページを作る
12058 \end_layout
12059
12060 \begin_layout Standard
12061
12062 \family sans
12063 タイトル
12064 \family default
12065
12066 \family sans
12067 著者
12068 \family default
12069
12070 \family sans
12071 日付
12072 \family default
12073
12074 \family sans
12075 概要
12076 \family default
12077 環境のある他のクラスとは異なり,
12078 \family sans
12079 foils
12080 \family default
12081 は独立したページにタイトルを作成します.
12082 \family sans
12083 日付
12084 \family default
12085 環境を使用しなかった場合には,\SpecialChar LaTeX
12086 は(出力を生成し直したときにはいつも)その時点の日付を挿入します.
12087 \end_layout
12088
12089 \begin_layout Subsubsection
12090 新しいスライドを開始する
12091 \end_layout
12092
12093 \begin_layout Standard
12094 前述のように,新しいスライドを開始するには,4つの方法があります.縦向きのスライドを開始するには,
12095 \family sans
12096 スライドタイトル(Foilhead)
12097 \family default
12098
12099 \family sans
12100 スライドタイトル(小)(ShortFoilhead)
12101 \family default
12102 を使用します.両環境の違いは,スライドタイトル(foilhead)とスライド本文の間の余白の違いです.
12103 \end_layout
12104
12105 \begin_layout Standard
12106 横向きのスライドは,
12107 \family sans
12108 横向きスライドタイトル(Rotatefoilhead)
12109 \family default
12110 か横向きスライドタイトル(小)(
12111 \family sans
12112 ShortRotatefoilhead)
12113 \family default
12114 環境を使用して生成します.ここでも両環境の違いは,タイトルと本文の間の余白のみです.どちらの場合も,(小)と記された版は,タイトルと本文の間の余白が,0.5インチ
12115 (約1.27cm)小さくなります.
12116 \end_layout
12117
12118 \begin_layout Standard
12119 横向きのスライドをサポートする際,一つ問題となるのは,スライドを回転させようと思うと,PostScript出力を生成するのに
12120 \family typewriter
12121 dvips
12122 \family default
12123 ドライバを使用することを要求してしまうことです.もしスライドをプリンタに横に給紙することができれば,
12124 \family typewriter
12125 dvips
12126 \family default
12127 ドライバを持っていなくても,横向きのスライドをつくることができます ;-)
12128 \end_layout
12129
12130 \begin_layout Subsubsection
12131 定理・補題・証明など
12132 \end_layout
12133
12134 \begin_layout Standard
12135 これらの環境の同じ型をお互いに直接続けて置くことはできません.通常の段落開業を用いると,2つの環境をマージしたかのように,前の環境が延長されるだけです.そうでは
12136 なく,いわゆる分離線を挿入する必要があります.
12137 \emph on
12138 ユーザーの手引き
12139 \emph default
12140 の「
12141 \emph on
12142 入れ子の分離
12143 \emph default
12144 」の節を参照してください.
12145 \end_layout
12146
12147 \begin_layout Subsubsection
12148 箇条書き
12149 \end_layout
12150
12151 \begin_layout Standard
12152 他のクラスでも共通にサポートされている箇条書き様式すべてに加えて,二つの新しい様式を使用することができます.ここでは,その新しい様式のみを説明することにします.
12153 他の箇条書き環境について詳しく知りたい場合には,
12154 \emph on
12155 ユーザーの手引き
12156 \emph default
12157 をご覧ください.記号による箇条書きを使用したい場合には,上記第
12158 \begin_inset CommandInset ref
12159 LatexCommand ref
12160 reference "sec:ブリット"
12161
12162 \end_inset
12163
12164 節の
12165 \family sans
12166 箇条書き(記号)ブリットの指定
12167 \family default
12168 の節も,読まれることが望ましいでしょう.
12169 \end_layout
12170
12171 \begin_layout Standard
12172
12173 \family sans
12174 箇条書き(チック)
12175 \family default
12176
12177 \family sans
12178 箇条書き(クロス)
12179 \family default
12180 の二つの新しい様式は,チェック印や
12181 \begin_inset Formula $\times$
12182 \end_inset
12183
12184 印を箇条書きのラベルに使用する専用の環境を提供することで,予定一覧や正誤一覧を作りやすくするように設計されたものです.これらの箇条書きは,
12185 \family sans
12186 箇条書き(記号)
12187 \family default
12188 の派生型を専用に用意したものに過ぎません.ただし,これらは,
12189 \family typewriter
12190 psnfss
12191 \family default
12192 パッケージが導入済であることを要求します.
12193 \end_layout
12194
12195 \begin_layout Subsubsection
12196 図と表
12197 \end_layout
12198
12199 \begin_layout Standard
12200 Foil\SpecialChar TeX
12201 では,図表フロートは,本文中の挿入箇所にこれらが正確に表示されるように再定義されており,ページの上部やユーザー指定場所に押しのけたりはしないようになって
12202 います.たとえフロート配置の設定に変更を加えたとしても,単に無視されます.
12203 \end_layout
12204
12205 \begin_layout Subsubsection
12206 ページヘッダおよびページフッタ
12207 \begin_inset CommandInset label
12208 LatexCommand label
12209 name "sec:foilfoot"
12210
12211 \end_inset
12212
12213
12214 \end_layout
12215
12216 \begin_layout Standard
12217
12218 \family sans
12219 グラフィックスロゴ
12220 \family default
12221
12222 \family sans
12223 配布制限
12224 \family default
12225 の二つは,左フッタ文を制御するものです.前者は,グラフィックスのロゴをスライドに入れるためのもので,既定値は「-Typeset by 
12226 \family sans
12227 Foil
12228 \family default
12229 \SpecialChar TeX
12230 -」となっています.後者は,「機密事項」などのように,聴衆に秘密区分を提示することを意図しています.既定値では,何も設定されていません.
12231 \end_layout
12232
12233 \begin_layout Standard
12234 スライドの残り三隅には,
12235 \family sans
12236 右フッタ
12237 \family default
12238 (既定ではページ番号)・
12239 \family sans
12240 右ヘッダ
12241 \family default
12242 (右上)・
12243 \family sans
12244 左ヘッダ
12245 \family default
12246 (左上)を使って文字を入れることができます.
12247 \end_layout
12248
12249 \begin_layout Subsection
12250 サポートされない 
12251 \family sans
12252 Foil
12253 \family default
12254 \SpecialChar TeX
12255 機能
12256 \begin_inset CommandInset label
12257 LatexCommand label
12258 name "sec:unsuppfoils"
12259
12260 \end_inset
12261
12262
12263 \end_layout
12264
12265 \begin_layout Standard
12266 以下で言及されているコマンドは,
12267 \family sans
12268 \SpecialChar LaTeX
12269
12270 \family default
12271 環境内で設定されるか,他の環境中の
12272 \family sans
12273 \SpecialChar TeX
12274 コード
12275 \family default
12276 として設定される必要があります.
12277 \end_layout
12278
12279 \begin_layout Subsubsection
12280 長さ
12281 \end_layout
12282
12283 \begin_layout Standard
12284 長さは,すべて
12285 \family typewriter
12286
12287 \backslash
12288 setlength{
12289 \family default
12290 \emph on
12291 長さ名
12292 \family typewriter
12293 \emph default
12294 }{
12295 \family default
12296 \emph on
12297 新規長さ
12298 \family typewriter
12299 \emph default
12300 }
12301 \family default
12302 コマンドで調節されます.ここで
12303 \emph on
12304 長さ名
12305 \emph default
12306 は,変更したい長さに付けられている名前で置き換え,
12307 \emph on
12308 新規長さ
12309 \emph default
12310 は,その長さの値で置き換えます.長さはすべて,インチ(in)・ミリメートル(mm)・ポイント(pt)のような長さ単位か,
12311 \family typewriter
12312
12313 \backslash
12314 textwidth
12315 \family default
12316 のように文書比あるいはフォント基準の長さで指定する必要があります.
12317 \end_layout
12318
12319 \begin_layout Standard
12320
12321 \family typewriter
12322
12323 \backslash
12324 foilheadskip
12325 \family default
12326 で指定される長さを調節することによって,スライドタイトルとスライド本文の間の余白を変更することができます.たとえば,スライドタイトルをすべて0.5
12327 \begin_inset space \space{}
12328 \end_inset
12329
12330 inだけスライド本文に近づけるには,プリアンブルに
12331 \family typewriter
12332
12333 \backslash
12334 setlength{
12335 \backslash
12336 foilheadskip}{-0.5in}
12337 \family default
12338 と書き込みます.
12339 \end_layout
12340
12341 \begin_layout Standard
12342 フロート周囲の余白は,以下の長さを設定することで調整することができます.
12343 \end_layout
12344
12345 \begin_layout Labeling
12346 \labelwidthstring MMMMMMMMMMM
12347
12348 \family typewriter
12349
12350 \backslash
12351 abovefloatskip
12352 \family default
12353  本文とフロート上辺との間隔
12354 \end_layout
12355
12356 \begin_layout Labeling
12357 \labelwidthstring MMMMMMMMMMM
12358
12359 \family typewriter
12360
12361 \backslash
12362 abovecaptionskip
12363 \family default
12364  フロートとキャプションとの間隔
12365 \end_layout
12366
12367 \begin_layout Labeling
12368 \labelwidthstring MMMMMMMMMMM
12369
12370 \family typewriter
12371
12372 \backslash
12373 belowcaptionskip
12374 \family default
12375  キャプションとそれに続く本文との間隔
12376 \end_layout
12377
12378 \begin_layout Labeling
12379 \labelwidthstring MMMMMMMMMMM
12380
12381 \family typewriter
12382
12383 \backslash
12384 captionwidth
12385 \family default
12386  この長さを調整することでキャプションを,周囲の本文より短くすることができます.
12387 \family typewriter
12388
12389 \backslash
12390 textwidth
12391 \family default
12392 に対する相対的な長さで調整するのが最も良いでしょう.
12393 \end_layout
12394
12395 \begin_layout Standard
12396 以下のようなタイトルページ関連の長さもあり,タイトルが長い場合や,著者が複数いる場合に使うと便利かもしれません.
12397 \end_layout
12398
12399 \begin_layout Labeling
12400 \labelwidthstring MMMMMMMMMMM
12401
12402 \family typewriter
12403
12404 \backslash
12405 abovetitleskip
12406 \family default
12407  へッダとタイトルとの間隔
12408 \end_layout
12409
12410 \begin_layout Labeling
12411 \labelwidthstring MMMMMMMMMMM
12412
12413 \family typewriter
12414
12415 \backslash
12416 titleauthorskip
12417 \family default
12418  
12419 \family sans
12420 タイトル
12421 \family default
12422 環境と
12423 \family sans
12424 著者
12425 \family default
12426 環境との間隔
12427 \end_layout
12428
12429 \begin_layout Labeling
12430 \labelwidthstring MMMMMMMMMMM
12431
12432 \family typewriter
12433
12434 \backslash
12435 authorauthorskip
12436 \family default
12437  著者が複数いる場合の
12438 \family sans
12439 著者
12440 \family default
12441 行の間隔
12442 \end_layout
12443
12444 \begin_layout Labeling
12445 \labelwidthstring MMMMMMMMMMM
12446
12447 \family typewriter
12448
12449 \backslash
12450 authordateskip
12451 \family default
12452  
12453 \family sans
12454 著者
12455 \family default
12456
12457 \family sans
12458 日付
12459 \family default
12460 との間隔
12461 \end_layout
12462
12463 \begin_layout Labeling
12464 \labelwidthstring MMMMMMMMMMM
12465
12466 \family typewriter
12467
12468 \backslash
12469 dateabstractskip
12470 \family default
12471  
12472 \family sans
12473 日付
12474 \family default
12475
12476 \family sans
12477 概要
12478 \family default
12479 との間隔
12480 \end_layout
12481
12482 \begin_layout Standard
12483 最後に紹介する長さ関連コマンドは,箇条書き環境すべてに使用できるものです.
12484 \family typewriter
12485
12486 \backslash
12487 zerolistvertdimens
12488 \family default
12489 を箇条書き環境の内側に置くと,項目間の垂直余白がすべて取り除かれます.これは長さではなくコマンドなので,上述のもののように
12490 \family typewriter
12491
12492 \backslash
12493 setlength
12494 \family default
12495 を使う必要がないことに注意してください.
12496 \end_layout
12497
12498 \begin_layout Subsubsection
12499 へッダとフッタ
12500 \end_layout
12501
12502 \begin_layout Standard
12503
12504 \family typewriter
12505
12506 \backslash
12507 LogoOn
12508 \family default
12509 および
12510 \family typewriter
12511
12512 \backslash
12513 LogoOff
12514 \family default
12515 は,
12516 \family typewriter
12517 MyLogo
12518 \family default
12519 で定義したロゴを特定のページに入れるかどうかを制御します.
12520 \family typewriter
12521
12522 \backslash
12523 LogoOff
12524 \family default
12525 をプリアンブルに入れると,全スライドからロゴが取り除かれます.特定のスライドにのみロゴを付けたくない場合は,当該ページのスライドタイトルの直後に直接
12526 \family typewriter
12527
12528 \backslash
12529 LogoOff
12530 \family default
12531 を置き,次のスライドタイトルの直後に直接
12532 \family typewriter
12533
12534 \backslash
12535 LogoOn
12536 \family default
12537 を置いてください.
12538 \end_layout
12539
12540 \begin_layout Standard
12541
12542 \family sans
12543 文書レイアウト
12544 \family default
12545 ダイアログで
12546 \family sans
12547 fancy
12548 \family default
12549 ページ様式を使用することを選択した場合には,横置きページのヘッダとフッタが回転後も正しく配置されるように,プリアンブルに
12550 \family typewriter
12551
12552 \backslash
12553 let
12554 \backslash
12555 headwidth
12556 \backslash
12557 textwidth
12558 \family default
12559 を加える必要があるでしょう.これは,
12560 \family sans
12561 fancyheadings
12562 \family default
12563 パッケージが提供するページレイアウトと
12564 \family sans
12565 foils
12566 \family default
12567 クラスの提供するページレイアウトの間に衝突が発生するためです.
12568 \end_layout
12569
12570 \begin_layout Section
12571 Hollywood(Hollywoodスペック・スクリプト)
12572 \end_layout
12573
12574 \begin_layout Standard
12575
12576 \noun on
12577 Garst Reese
12578 \noun default
12579
12580 \end_layout
12581
12582 \begin_layout Subsection
12583 はじめに
12584 \end_layout
12585
12586 \begin_layout Standard
12587 脚本を正しい書式で書くことは,ハリウッドにおける「通過儀礼」です.ハリウッドの脚本は,読み手が内容に集中できるようにし,俳優にとっても読みやすくかつ親しみやすい
12588 ように設計されています.脚本の1ページは,映画の1分でなければならず,銀幕上で見えたり聞こえたりしないものは,脚本に混入してはなりません.また,全体を通してCo
12589 urier 12
12590 \begin_inset space \space{}
12591 \end_inset
12592
12593 ptフォントを使わなければならず,イタリック体は用いてはいけません.
12594 \end_layout
12595
12596 \begin_layout Subsection
12597 特別な問題
12598 \end_layout
12599
12600 \begin_layout Standard
12601 話者の行は,文の途中で改行することは
12602 \emph on
12603 決して
12604 \emph default
12605 あってはなりません.もし話者行の塊が,次頁にまたがる場合には,
12606 \family sans
12607 話者
12608 \family default
12609 名を再度書き,その後に(Cont'd)と加えます.
12610 \end_layout
12611
12612 \begin_layout Subsection
12613 特別な機能
12614 \end_layout
12615
12616 \begin_layout Standard
12617
12618 \family sans
12619 話者
12620 \family default
12621 名はラベルとして挿入し,話者名を挿入するには,そのラベルを相互参照してください.相互参照ダイアログは,登場人物の現在の配役を表示することになります.これは,ト書
12622 きに話者名を挿入するのにも使用することができます.
12623 \end_layout
12624
12625 \begin_layout Subsection
12626 用紙寸法と余白
12627 \end_layout
12628
12629 \begin_layout Standard
12630 USレター寸法で,左余白1.6インチ・右余白0.75インチ・上余白0.5インチ・下余白0.75インチです.
12631 \end_layout
12632
12633 \begin_layout Subsection
12634 環境
12635 \end_layout
12636
12637 \begin_layout Standard
12638 以下の環境が利用可能です.右に示されている
12639 \begin_inset Flex Ruby
12640 status collapsed
12641
12642 \begin_layout Plain Layout
12643
12644 \begin_inset Argument post:1
12645 status collapsed
12646
12647 \begin_layout Plain Layout
12648 キー
12649 \end_layout
12650
12651 \end_inset
12652
12653
12654 \end_layout
12655
12656 \end_inset
12657
12658 割当てを使用するには,hollywood.bindを使用してください.
12659 \end_layout
12660
12661 \begin_layout Itemize
12662
12663 \family sans
12664 一般
12665 \begin_inset Newline newline
12666 \end_inset
12667
12668
12669 \family default
12670 他の環境が動作しない場合に使用しますが,これを使うことは避けるようにしてください.
12671 \end_layout
12672
12673 \begin_layout Itemize
12674 フェイドイン:
12675 \begin_inset space \hfill{}
12676 \end_inset
12677
12678
12679 \family sans
12680 M-z S-I
12681 \family default
12682
12683 \begin_inset Newline newline
12684 \end_inset
12685
12686 通常,この後には「Sallyは目を覚ますと」のように続きます.
12687 \end_layout
12688
12689 \begin_layout Itemize
12690
12691 \family sans
12692 屋内:
12693 \begin_inset space \hfill{}
12694 \end_inset
12695
12696 M-z i
12697 \begin_inset Newline newline
12698 \end_inset
12699
12700
12701 \family default
12702 新しい屋内(INTERIOR)カメラの設定を指定します.この後には,かならずDAYやNIGHTなどを指定して,必要な照明を定義します.この行はすべて大文字で書き
12703 ます.
12704 \end_layout
12705
12706 \begin_layout Itemize
12707
12708 \family sans
12709 屋外:
12710 \begin_inset space \hfill{}
12711 \end_inset
12712
12713 M-z e
12714 \begin_inset Newline newline
12715 \end_inset
12716
12717
12718 \family default
12719 屋外(EXTERIOR)カメラの設定を指定します.この行はすべて大文字で書きます.
12720 \end_layout
12721
12722 \begin_layout Itemize
12723
12724 \family sans
12725 話者
12726 \begin_inset space \hfill{}
12727 \end_inset
12728
12729 M-z s
12730 \begin_inset Newline newline
12731 \end_inset
12732
12733
12734 \family default
12735 話す役.
12736 \end_layout
12737
12738 \begin_layout Itemize
12739
12740 \family sans
12741 括弧付き
12742 \begin_inset space \hfill{}
12743 \end_inset
12744
12745 M-z p
12746 \begin_inset Newline newline
12747 \end_inset
12748
12749 話者
12750 \family default
12751 への指示.自動的に括弧()が挿入されます.
12752 \end_layout
12753
12754 \begin_layout Itemize
12755
12756 \family sans
12757 対話
12758 \begin_inset space \hfill{}
12759 \end_inset
12760
12761 M-z d
12762 \begin_inset Newline newline
12763 \end_inset
12764
12765 話者
12766 \family default
12767 が話す内容.
12768 \end_layout
12769
12770 \begin_layout Itemize
12771
12772 \family sans
12773 画面遷移
12774 \begin_inset space \hfill{}
12775 \end_inset
12776
12777 M-z t
12778 \begin_inset Newline newline
12779 \end_inset
12780
12781
12782 \family default
12783 カメラの動きの指示.例:CUT TO:.
12784 \end_layout
12785
12786 \begin_layout Itemize
12787
12788 \family sans
12789 フェイドアウト:
12790 \begin_inset space \hfill{}
12791 \end_inset
12792
12793 M-z S-I
12794 \end_layout
12795
12796 \begin_layout Itemize
12797
12798 \family sans
12799 著者
12800 \begin_inset space \hfill{}
12801 \end_inset
12802
12803 M-z S-A
12804 \end_layout
12805
12806 \begin_layout Itemize
12807
12808 \family sans
12809 タイトル
12810 \begin_inset space \hfill{}
12811 \end_inset
12812
12813 M-z S-T
12814 \end_layout
12815
12816 \begin_layout Itemize
12817
12818 \family sans
12819 右寄せ住所
12820 \begin_inset space \hfill{}
12821 \end_inset
12822
12823 M-z r
12824 \end_layout
12825
12826 \begin_layout Subsection
12827 脚本で使われる特別な用語
12828 \end_layout
12829
12830 \begin_layout Itemize
12831 (O.S) — off screen
12832 \end_layout
12833
12834 \begin_layout Itemize
12835 (V.0) — voice over
12836 \end_layout
12837
12838 \begin_layout Itemize
12839 b.g.
12840  — background
12841 \end_layout
12842
12843 \begin_layout Itemize
12844 C.U.
12845  — close-up
12846 \end_layout
12847
12848 \begin_layout Itemize
12849 PAN — camera movement
12850 \end_layout
12851
12852 \begin_layout Itemize
12853 INSERT — cut to close-up of
12854 \end_layout
12855
12856 \begin_layout Section
12857 ijmpcおよびijmpd
12858 \end_layout
12859
12860 \begin_layout Standard
12861
12862 \noun on
12863 Panayotis Papasotiriou
12864 \noun default
12865
12866 \end_layout
12867
12868 \begin_layout Subsection
12869 概観
12870 \end_layout
12871
12872 \begin_layout Standard
12873 ijpmcパッケージは,
12874 \emph on
12875 International Journal of Modern Physics C
12876 \emph default
12877 への電子投稿を可能にするためのマクロ集です.同様に,ijpmdパッケージは,
12878 \emph on
12879 International Journal of Modern Physics D
12880 \emph default
12881 へ投稿する現行を作成するためのものです.両誌ともWorld Scientific社の刊行です.対応する文書クラス名は,それぞれ
12882 \family typewriter
12883 ws-ijmpc.cls
12884 \family default
12885 および
12886 \family typewriter
12887 ws-ijmpd.cls
12888 \family default
12889 です.これらのファイルは,著者のための指針とともに,
12890 \begin_inset Flex URL
12891 status collapsed
12892
12893 \begin_layout Plain Layout
12894
12895 http://www.worldscinet.com/ijmpc/mkt/guidelines.shtml
12896 \end_layout
12897
12898 \end_inset
12899
12900 および
12901 \begin_inset Flex URL
12902 status collapsed
12903
12904 \begin_layout Plain Layout
12905
12906 http://www.worldscinet.com/ijmpd/mkt/guidelines.shtml
12907 \end_layout
12908
12909 \end_inset
12910
12911 の各サイトからダウンロードすることができます.両パッケージは,標準「article」パッケージの修正版であり,両者は(一部を除き)ほぼ同一です.\SpecialChar LyX
12912 は,これらのパッ
12913 ケージのほとんどの機能をサポートしています.私は両誌へ投稿する論文を\SpecialChar LyX
12914 で書き上げましたが,何らの問題も生じませんでした.
12915 \end_layout
12916
12917 \begin_layout Subsection
12918 論文を書く
12919 \end_layout
12920
12921 \begin_layout Standard
12922 通常と同じく,論文を書く上で最も易しい方法は,ひな型を使って書き始めることです.
12923 \family sans
12924 ファイル\SpecialChar menuseparator
12925 新規(ひな型使用)
12926 \family default
12927 をクリックして,ひな型
12928 \family typewriter
12929 ijmpc.lyx
12930 \family default
12931 もしくは
12932 \family typewriter
12933 ijmpd.lyx
12934 \family default
12935 を選択してください.すると,原稿で良く使用されるフィールドを含んだ,ほぼ空の文書ができますので,既存のフィールド(鍵括弧
12936 \family typewriter
12937 <>
12938 \family default
12939 を含む)を正しい情報で置き換えてください.以下の各点にご留意ください.
12940 \end_layout
12941
12942 \begin_layout Enumerate
12943 両パッケージでは,フォント寸法や文書のページ様式を変更することが禁じられているので,\SpecialChar LyX
12944 中でこれらを変更することはできません.
12945 \end_layout
12946
12947 \begin_layout Enumerate
12948 文書言語は変更してはいけません.論文をプレビューする前に,babelパッケージが使用されていないことを確認してください.これは,
12949 \begin_inset Info
12950 type  "menu"
12951 arg   "dialog-show document"
12952 \end_inset
12953
12954  
12955 \family sans
12956 \SpecialChar menuseparator
12957 言語
12958 \family default
12959 をクリックして,
12960 \family sans
12961 言語パッケージ
12962 \family default
12963 に「なし」を選択してください.
12964 \end_layout
12965
12966 \begin_layout Enumerate
12967 キーワードを定義するに際しては,「キーワード」様式を用いなくてはなりません.
12968 \end_layout
12969
12970 \begin_layout Enumerate
12971 ijmpcパッケージが提供する「分類コード」様式は,PACS番号のような分類コードを定義するのに使用することができます.この機能は,ijmpdパッケージではサポ
12972 ートされていませんので,ご注意ください.
12973 \end_layout
12974
12975 \begin_layout Enumerate
12976 「定義」「ステップ」「例」「注記」「記法」「定理」「証明」「系」「補題」「命題」「命題(Prop)」「問題」「主張」「予想」といった新しい環境を使用することがで
12977 きます.これらの使い方は,大凡自明でしょう.\SpecialChar LyX
12978 は,これらの環境をすべてサポートし,それぞれについて,適切なラベルと文字様式および連番スキームを使用します.
12979 \end_layout
12980
12981 \begin_layout Enumerate
12982 両パッケージは,単純な引用を使用しますので,natbibパッケージは使用してはなりません.\SpecialChar LyX
12983 中では,引用参照は通常通り表示されますが,出力では上付き文字として表示
12984 されます.引用に通常の本文を使用したい場合には,「See Ref.
12985 \begin_inset space \space{}
12986 \end_inset
12987
12988
12989 \family typewriter
12990
12991 \backslash
12992 refcite{
12993 \family default
12994
12995 \begin_inset Flex Ruby
12996 status collapsed
12997
12998 \begin_layout Plain Layout
12999
13000 \family typewriter
13001
13002 \family default
13003
13004 \begin_inset Argument post:1
13005 status collapsed
13006
13007 \begin_layout Plain Layout
13008 キー
13009 \end_layout
13010
13011 \end_inset
13012
13013
13014 \end_layout
13015
13016 \end_inset
13017
13018
13019 \family typewriter
13020 }
13021 \family default
13022 」のように
13023 \family typewriter
13024 refcite
13025 \family default
13026 コマンドを使用してください.
13027 \end_layout
13028
13029 \begin_layout Enumerate
13030 両パッケージには,「謝辞」環境がありません.謝辞を置くには,「節*」環境を使用してください.
13031 \end_layout
13032
13033 \begin_layout Enumerate
13034 付録は,論文中,謝辞の
13035 \emph on
13036
13037 \emph default
13038 かつ書誌情報の
13039 \emph on
13040
13041 \emph default
13042 であれば,入れることができます.\SpecialChar LyX
13043 上では,「付録領域」という特別な環境があり,これを使って付録の開始位置を指定することができます.この環境は空のままにしておかなく
13044 てはなりません.この環境は,\SpecialChar LaTeX
13045 コマンドを書き出すだけで,実際に出力は行いません.\SpecialChar LyX
13046 上では,青字で「Appendix」という単語が表示され,この箇所より後の節はすべて
13047 付録であることを明示します.「付録領域」は,最初の付録の前に
13048 \emph on
13049 なくてはならない
13050 \emph default
13051 ことに注意してください.さもなくば,出力中において,付録はすべて通常の節として連番が振られてしまいます.
13052 \end_layout
13053
13054 \begin_layout Enumerate
13055 ijmpcおよびijmpdパッケージは,表キャプションを実装するのに
13056 \family typewriter
13057 tbl
13058 \family default
13059 コマンドを使用します.そのため,\SpecialChar LyX
13060 が作成した表は正しく印字されますが,そのキャプションは無視されます.しかし,\SpecialChar TeX
13061 コードを少し使えば,この問題を回避して,キャプション
13062 を望み通り印字することができるようになります.そうするには,表フロートを通常通り作成して,キャプションを削除し,代わりに\SpecialChar TeX
13063 コードで
13064 \family typewriter
13065
13066 \backslash
13067 tbl{表キャプション}{
13068 \family default
13069 (ママ)と入れます.そこに表の内容を入れて,直後を\SpecialChar TeX
13070 コード
13071 \family typewriter
13072 }
13073 \family default
13074 で閉じてください.このからくりがどのように実装されているかを見るには,ひな型ファイルに入っている表の例を精査してみてください.別の方法としては,表キャプションが
13075 欲しい場合に,表フロート全体を
13076 \family typewriter
13077 .tex
13078 \family default
13079 ファイルに収め,このファイルを\SpecialChar LyX
13080 文書に取り込んでください(
13081 \family sans
13082 挿入\SpecialChar menuseparator
13083 ファイル\SpecialChar menuseparator
13084 子文書
13085 \family default
13086 ).表フロートの作り方についての詳細は,各パッケージに含まれている
13087 \family typewriter
13088 ws-ijmpc.tex
13089 \family default
13090 または
13091 \family typewriter
13092 ws-ijmpd.tex
13093 \family default
13094 ファイルをご覧ください.
13095 \end_layout
13096
13097 \begin_layout Subsection
13098 原稿を投稿するための準備
13099 \end_layout
13100
13101 \begin_layout Standard
13102 論文を投稿する前には,\SpecialChar LyX
13103 文書を\SpecialChar LaTeX
13104 ファイルに書き出し(
13105 \family sans
13106 ファイル\SpecialChar menuseparator
13107 書き出し\SpecialChar menuseparator
13108 \SpecialChar LaTeX
13109
13110 \family default
13111
13112 \begin_inset Foot
13113 status open
13114
13115 \begin_layout Plain Layout
13116 実は,\SpecialChar LaTeX
13117  (plain)とpdflatexとの間で選択ができます.論文を準備するのにpdflatexを使用しようとするのであれば,取り込んである画像がPDF形式に
13118 変換され,pdflatexで使用できるように,pdflatexオプションを指定しなくてはなりません.
13119 \end_layout
13120
13121 \end_inset
13122
13123 ,その
13124 \family typewriter
13125 .tex
13126 \family default
13127 ファイルに以下の変更を加える必要があります.
13128 \end_layout
13129
13130 \begin_layout Enumerate
13131
13132 \family typewriter
13133
13134 \backslash
13135 documentclass
13136 \family default
13137 コマンドより前にあるコメント行を削除する.
13138 \end_layout
13139
13140 \begin_layout Enumerate
13141 自身で明示的に\SpecialChar LaTeX
13142 プリアンブルに置いたコマンドを除き,
13143 \family typewriter
13144
13145 \backslash
13146 makeatletter
13147 \family default
13148 コマンドと
13149 \family typewriter
13150
13151 \backslash
13152 makeatother
13153 \family default
13154 コマンドの間にあるものをすべて削除する.
13155 \end_layout
13156
13157 \begin_layout Standard
13158 こうして修正を加えた
13159 \family typewriter
13160 .tex
13161 \family default
13162 ファイルを保存し,必要な回数\SpecialChar LaTeX
13163 で処理してください.それによって得られた
13164 \family typewriter
13165 .dvi
13166 \family default
13167 文書も確認された方がよろしいでしょう.
13168 \end_layout
13169
13170 \begin_layout Section
13171 iopart
13172 \end_layout
13173
13174 \begin_layout Standard
13175
13176 \noun on
13177 Uwe Stöhr
13178 \noun default
13179
13180 \end_layout
13181
13182 \begin_layout Subsection
13183 概要
13184 \end_layout
13185
13186 \begin_layout Standard
13187 iopartパッケージは,Institute of Physics(イギリス物理学会)発行の学術誌へ電子的に投稿する原稿を作成するための文書クラスを提供していま
13188 す.iopartクラスを使用した論文作成方法の著者用説明書は,ウェブサイト
13189 \begin_inset Flex URL
13190 status collapsed
13191
13192 \begin_layout Plain Layout
13193
13194 ftp://ftp.iop.org/pub/journals/latex2e
13195 \end_layout
13196
13197 \end_inset
13198
13199 からiopartパッケージとともにダウンロード可能です.
13200 \end_layout
13201
13202 \begin_layout Subsection
13203 論文を書く
13204 \end_layout
13205
13206 \begin_layout Standard
13207 論文を書くもっとも簡単な方法は,ファイル\SpecialChar menuseparator
13208 新規(ひな型使用)\SpecialChar ldots
13209 にあるひな型
13210 \emph on
13211 IOP-article.lyx
13212 \emph default
13213 を土台にすることです.このひな型は,特定の環境の使用法についても説明しています.もっとも重要な助言として,以下の点にご注意ください.
13214 \end_layout
13215
13216 \begin_layout Itemize
13217 文書がPDF・PS・DVIにコンパイルできるようにするためには,
13218 \family sans
13219 文書\SpecialChar menuseparator
13220 設定\SpecialChar ldots
13221 \SpecialChar menuseparator
13222 数式オプション
13223 \family default
13224 で,AMSパッケージが読み込まれていないことを確認してください!
13225 \end_layout
13226
13227 \begin_layout Itemize
13228 タイトル環境の選択如何によって,論文の種類が定義されます.種類毎に以下の環境をタイトルに使用してください.
13229 \end_layout
13230
13231 \begin_deeper
13232 \begin_layout Itemize
13233 論文用には
13234 \family sans
13235 タイトル
13236 \end_layout
13237
13238 \begin_layout Itemize
13239 Review用には
13240 \family sans
13241 Review
13242 \end_layout
13243
13244 \begin_layout Itemize
13245 Topical review用には
13246 \family sans
13247 Topical
13248 \end_layout
13249
13250 \begin_layout Itemize
13251 Comment用には
13252 \family sans
13253 Comment
13254 \end_layout
13255
13256 \begin_layout Itemize
13257 Note用には
13258 \family sans
13259 注釈
13260 \end_layout
13261
13262 \begin_layout Itemize
13263 論文用には
13264 \family sans
13265 Paper
13266 \family default
13267 (タイトルと同じ)
13268 \end_layout
13269
13270 \begin_layout Itemize
13271 Preliminary communication用には
13272 \family sans
13273 Prelim
13274 \end_layout
13275
13276 \begin_layout Itemize
13277 Rapid communication用には
13278 \family sans
13279 Rapid
13280 \end_layout
13281
13282 \begin_layout Itemize
13283 編集者へのLetterには
13284 \family sans
13285 書簡
13286 \end_layout
13287
13288 \end_deeper
13289 \begin_layout Itemize
13290
13291 \family sans
13292 書簡
13293 \family default
13294 以外のタイトル環境には,すべて短縮タイトルをつけることもできます.
13295 \end_layout
13296
13297 \begin_layout Itemize
13298 \SpecialChar LyX
13299 では直接にサポートされていませんが,一般的なタイトル環境として
13300 \family sans
13301 Article
13302 \family default
13303 があります.執筆する文書が,他のタイトル型にそぐわない場合には,\SpecialChar TeX
13304 コードでこれを指定することができます.
13305 \end_layout
13306
13307 \begin_layout Standard
13308 特別な表や数式組版に関するヒントなど,詳しい情報については,IOP著者用ガイドラインを参照してください.
13309 \end_layout
13310
13311 \begin_layout Section
13312 Kluwer
13313 \end_layout
13314
13315 \begin_layout Standard
13316
13317 \noun on
13318 Panayotis Papasotiriou
13319 \noun default
13320
13321 \end_layout
13322
13323 \begin_layout Subsection
13324 概要
13325 \end_layout
13326
13327 \begin_layout Standard
13328 Kluwerパッケージは,Kluwer Academic Publishers社が発行する学術誌への電子投稿を可能にするために,同社が作成したマクロ集です.同社
13329 の発行誌のうち,(少なくとも私の専門内で)もっともよく知られているものは,
13330 \emph on
13331 Astrophysics and Space Science
13332 \emph default
13333 (『宇宙物理学と宇宙科学』)と
13334 \emph on
13335 Solar Physics
13336 \emph default
13337 (『太陽系物理学』)ですが,他にも多くの学術誌があります(
13338 \begin_inset Flex URL
13339 status collapsed
13340
13341 \begin_layout Plain Layout
13342
13343 http://www.wkap.nl/jrnllist.htm/JRNLHOME
13344 \end_layout
13345
13346 \end_inset
13347
13348 に全覧があります).Kluwerパッケージは,
13349 \begin_inset Flex URL
13350 status collapsed
13351
13352 \begin_layout Plain Layout
13353
13354 http://www.wkap.nl/kaphtml.htm/STYLEFILES
13355 \end_layout
13356
13357 \end_inset
13358
13359 からダウンロードできます.完全なユーザーの手引きも同パッケージ内に収録されています(個別にダウンロードすることも可能です).
13360 \end_layout
13361
13362 \begin_layout Standard
13363 \SpecialChar LyX
13364 は,このパッケージの機能の多くをサポートしていますが,すべてではありません.しかし,\SpecialChar TeX
13365 コードを必要とするのは,パッケージ中のいくつかの「変わった」コマンドだけにな
13366 りました(
13367 \begin_inset CommandInset ref
13368 LatexCommand ref
13369 reference "subsec:kluwer_peculiarities"
13370
13371 \end_inset
13372
13373 参照).最近,私は\SpecialChar LyX
13374 を使って書いた論文を
13375 \emph on
13376 Astrophysics and Space Science
13377 \emph default
13378 に投稿しましたが,何らの問題も発生しませんでした.
13379 \end_layout
13380
13381 \begin_layout Subsection
13382 論文を書く
13383 \end_layout
13384
13385 \begin_layout Standard
13386 論文を書き始めるには,ひな型ファイルKluwerを使うのが最も簡単です.
13387 \family sans
13388 ファイル\SpecialChar menuseparator
13389 新規(ひな型使用)
13390 \family default
13391 をクリックし,ひな型
13392 \family typewriter
13393 kluwer.lyx
13394 \family default
13395 を選択してください.これは,原稿に通常必要となる各フィールドと,それらの使用法が短く書かれただけの,(ほとんど)何も書かれていない文書です.他のテンプレートと同
13396 様に,既存の文章を(括弧
13397 \family typewriter
13398 <>
13399 \family default
13400 を含む)正しい情報で上書きしてください.
13401 \end_layout
13402
13403 \begin_layout Subsection
13404 投稿の準備
13405 \end_layout
13406
13407 \begin_layout Standard
13408 AAS\SpecialChar TeX
13409 パッケージと同様,論文を投稿する前に,以下のような「後処理」を行う必要があります.
13410 \end_layout
13411
13412 \begin_layout Enumerate
13413
13414 \family sans
13415 ファイル\SpecialChar menuseparator
13416 書き出し\SpecialChar menuseparator
13417 LateX
13418 \family default
13419 をクリックして,論文を\SpecialChar LaTeX
13420 ファイルに書き出す.
13421 \end_layout
13422
13423 \begin_layout Enumerate
13424 生成された
13425 \family typewriter
13426 .tex
13427 \family default
13428 ファイルに,テキストエディタを使用して,以下のような変更を加える.
13429 \end_layout
13430
13431 \begin_deeper
13432 \begin_layout Enumerate
13433
13434 \family typewriter
13435
13436 \backslash
13437 documentclass
13438 \family default
13439 コマンドより前にあるコメント行を削除する.
13440 \end_layout
13441
13442 \begin_layout Enumerate
13443 意図的に\SpecialChar LaTeX
13444 プリアンブルに加えたコマンドを除き,
13445 \family typewriter
13446
13447 \backslash
13448 makeatletter
13449 \family default
13450 から 
13451 \family typewriter
13452
13453 \backslash
13454 makeatother
13455 \family default
13456 の間にあるものを,これらのコマンドも含め,すべて削除する.
13457 \end_layout
13458
13459 \begin_layout Standard
13460 変更した
13461 \family typewriter
13462 .tex
13463 \family default
13464 ファイルを保存する.
13465 \end_layout
13466
13467 \end_deeper
13468 \begin_layout Enumerate
13469 この
13470 \family typewriter
13471 .tex
13472 \family default
13473 ファイルを必要な回数(通常3回以内)だけ\SpecialChar LaTeX
13474 にかける.
13475 \end_layout
13476
13477 \begin_layout Enumerate
13478 生成された
13479 \family typewriter
13480 .dvi
13481 \family default
13482 ファイルを
13483 \family sans
13484 xdvi
13485 \family default
13486 などを使って開き,問題がないか確認する(間違いをしていない限り問題ないはずです).
13487 \end_layout
13488
13489 \begin_layout Subsection
13490 Kluwerパッケージの「風変わり」な特徴
13491 \begin_inset CommandInset label
13492 LatexCommand label
13493 name "subsec:kluwer_peculiarities"
13494
13495 \end_inset
13496
13497
13498 \end_layout
13499
13500 \begin_layout Standard
13501 Kluwerパッケージには,以下のような「風変わりな」特徴があります.
13502 \end_layout
13503
13504 \begin_layout Enumerate
13505 複数の論文を1つの\SpecialChar LaTeX
13506 ファイルへ入れることができます
13507 \begin_inset Foot
13508 status collapsed
13509
13510 \begin_layout Plain Layout
13511 わざわざこんなことをする必要はないでしょう.
13512 \end_layout
13513
13514 \end_inset
13515
13516 .各論文は,「article」環境で囲まなくてはなりません.残念ながら,1つの論文だけを書く場合でも,この環境を省略することはできません.つまり,各論文は
13517 \family typewriter
13518
13519 \backslash
13520 begin{article}
13521 \family default
13522 で始まり,
13523 \family typewriter
13524
13525 \backslash
13526 end{article}
13527 \family default
13528 で終わります.この環境を\SpecialChar LyX
13529 に実装することも可能でしたが,醜い上に初心者を混乱させる可能性があるので,実装することはしませんでした.したがって,これらの命令(
13530 \family typewriter
13531
13532 \backslash
13533 begin{article}
13534 \family default
13535
13536 \family typewriter
13537
13538 \backslash
13539 end{article}
13540 \family default
13541 )は,直接本文中に入力して,\SpecialChar LaTeX
13542 コード(「\SpecialChar TeX
13543 コード」のことです)としてマークする必要があります.
13544 \end_layout
13545
13546 \begin_layout Enumerate
13547 論文の冒頭に置く情報(タイトル・サブタイトル・著者名・所属・ヘッダ用タイトル・ヘッダ用著者名・概要・キーワード)は,「opening」とよばれる環境に入れなくて
13548 はなりません.これは\SpecialChar LyX
13549 では実装されていませんので,タイトルやサブタイトルなどは,2つの\SpecialChar TeX
13550 コード行(
13551 \family typewriter
13552
13553 \backslash
13554 begin{opening}
13555 \family default
13556 および
13557 \family typewriter
13558
13559 \backslash
13560 end{opening}
13561 \family default
13562 )の間に入れる必要があります.
13563 \end_layout
13564
13565 \begin_layout Enumerate
13566 ユーザーの手引きによれば,書誌情報の各項目のラベルは,
13567 \family typewriter
13568
13569 \begin_inset Newline newline
13570 \end_inset
13571
13572
13573 \backslash
13574 protect
13575 \backslash
13576 citeauthoryear{
13577 \family default
13578 \emph on
13579 著者名
13580 \family typewriter
13581 \emph default
13582 }{
13583 \family default
13584 \emph on
13585
13586 \family typewriter
13587 \emph default
13588 }
13589 \family default
13590  と書く必要があります.
13591 \end_layout
13592
13593 \begin_layout Standard
13594 ひな型
13595 \family typewriter
13596 kluwer.lyx
13597 \family default
13598 は,これらの風変わりな点がすべて考慮されています.このひな型を使用して,論文を新たに書きはじめる場合には,特別なことを行う必要はありません.以下の点にのみ留意し
13599 てください.
13600 \end_layout
13601
13602 \begin_layout Enumerate
13603 ひな型にある\SpecialChar TeX
13604 コードを削除しないでください.
13605 \end_layout
13606
13607 \begin_layout Enumerate
13608 新しい書誌情報項目を入力する場合には,ひな型に例示されている書誌情報項目をコピーして,必要に応じて修正してください.
13609 \end_layout
13610
13611 \begin_layout Section
13612 Koma-Script
13613 \end_layout
13614
13615 \begin_layout Standard
13616
13617 \noun on
13618 Bernd Rellermeyer
13619 \noun default
13620
13621 \end_layout
13622
13623 \begin_layout Subsection
13624 概要
13625 \end_layout
13626
13627 \begin_layout Standard
13628 \SpecialChar LyX
13629 の文書クラス
13630 \emph on
13631 article (koma-script)
13632 \emph default
13633
13634 \emph on
13635 report (koma-script)
13636 \emph default
13637
13638 \emph on
13639 book
13640 \emph default
13641  
13642 \emph on
13643 (koma-script)
13644 \emph default
13645
13646 \emph on
13647 letter
13648 \emph default
13649  
13650 \emph on
13651 (koma-script)
13652 \emph default
13653 は,それぞれKoma-Scriptファミリーの\SpecialChar LaTeX
13654 文書クラス
13655 \family typewriter
13656 scrartcl.cls
13657 \family default
13658
13659 \family typewriter
13660 scrreprt.cls
13661 \family default
13662
13663 \family typewriter
13664 scrbook.cls
13665 \family default
13666
13667 \family typewriter
13668 scrlettr.cls
13669 \family default
13670 に対応しています.これらは,標準文書クラス
13671 \family typewriter
13672 article.cls
13673 \family default
13674
13675 \family typewriter
13676 report.cls
13677 \family default
13678
13679 \family typewriter
13680 book.cls
13681 \family default
13682
13683 \family typewriter
13684 letter.cls
13685 \family default
13686 の代替物であり,これらよりも多くの点でヨーロッパに於ける活版印刷の慣例に合致します.
13687 \end_layout
13688
13689 \begin_layout Itemize
13690 標準文字寸法は,
13691 \emph on
13692 article (koma-script)
13693 \emph default
13694
13695 \emph on
13696 report (koma-script)
13697 \emph default
13698
13699 \emph on
13700 book (koma-script)
13701 \emph default
13702 で11pt,
13703 \emph on
13704 letter (koma-script)
13705 \emph default
13706 で12ptです.
13707 \end_layout
13708
13709 \begin_layout Itemize
13710 見出しや箇条書き(記述)環境のラベル,および
13711 \emph on
13712 letter (koma-script)
13713 \emph default
13714 文書クラスの要素の多くでは,ボールド体サンセリフフォントが使われます
13715 \begin_inset Foot
13716 status collapsed
13717
13718 \begin_layout Plain Layout
13719 ボールド体サンセリフフォントには,古いcmフォントと新しいecフォントの間に大きな違いがあり,特に見出しの表示の違いが際立ちます.比較すると,ecボールドサンセ
13720 リフフォントの方が,少し細く見えます.ecフォントを使用する際に「通常の」外観が欲しい場合には,
13721 \shape smallcaps
13722 Walter Schmidt
13723 \shape default
13724 作の\SpecialChar LaTeX
13725 パッケージ
13726 \family typewriter
13727 cmsd.sty
13728 \family default
13729 が役立ちます.
13730 \end_layout
13731
13732 \end_inset
13733
13734 .章見出しの連番は,節見出しの連番と同様に行われ,別行立てで「 Chapter\SpecialChar ldots
13735 」という行がつきません.さらに,多くのオプションによって,見出しの外観を修正するこ
13736 とができます(\SpecialChar LyX
13737 では,
13738 \family sans
13739 文書\SpecialChar menuseparator
13740 設定
13741 \family default
13742 ダイアログの
13743 \family sans
13744 クラスオプション
13745 \family default
13746 フィールドで指定します).これらのオプションの独語での詳細な説明が,Koma-Scriptの取扱説明書
13747 \emph on
13748 scrguide
13749 \emph default
13750 にあります.
13751 \end_layout
13752
13753 \begin_layout Itemize
13754 Koma-Script文書クラスで,印字部分をデザインする主な方法は,
13755 \family sans
13756 BCOR
13757 \family default
13758 オプションまたは
13759 \family sans
13760 DIV
13761 \family default
13762 オプションを使う方法です(\SpecialChar LyX
13763 では,
13764 \family sans
13765 文書\SpecialChar menuseparator
13766 設定
13767 \family default
13768 ダイアログの
13769 \family sans
13770 クラスオプション
13771 \family default
13772 フィールドで指定します).これらのオプションは
13773 \family sans
13774 文書\SpecialChar menuseparator
13775 設定
13776 \family default
13777 ダイアログのオプションと同様に,ページ余白を明示的に変更することができます.これらとその他印字領域オプションのドイツ語での詳細な説明が,Koma-Script取
13778 扱説明書
13779 \emph on
13780 scrguide
13781 \emph default
13782 にあります.
13783 \end_layout
13784
13785 \begin_layout Itemize
13786 Koma-Scriptファミリーの\SpecialChar LaTeX
13787 文書クラスには,多くの追加コマンドが定義されています.それらのうち,\SpecialChar LyX
13788 で意味を持つものは,対応する段落環境として実装されています
13789
13790 \end_layout
13791
13792 \begin_layout Standard
13793 Koma-Scriptファミリーの\SpecialChar LaTeX
13794 文書クラスに関する独語の詳細な説明が,Koma-Script取扱説明書
13795 \emph on
13796 scrguide
13797 \emph default
13798 にあります
13799 \begin_inset Foot
13800 status collapsed
13801
13802 \begin_layout Plain Layout
13803 英語翻訳版の
13804 \emph on
13805 screnggu
13806 \emph default
13807 もありますが,完訳ではありません.
13808 \end_layout
13809
13810 \end_inset
13811
13812 .以下の各節では,\SpecialChar LyX
13813 に関係する側面のみ説明致します.
13814 \end_layout
13815
13816 \begin_layout Subsection
13817 article (koma-script)・report (koma-script)・book (koma-script)
13818 \end_layout
13819
13820 \begin_layout Standard
13821 文書クラス
13822 \emph on
13823 article (koma-script)
13824 \emph default
13825
13826 \emph on
13827 report (koma-script)
13828 \emph default
13829
13830 \emph on
13831 book
13832 \emph default
13833  
13834 \emph on
13835 (koma-script)
13836 \emph default
13837 は,それぞれレイアウトファイル
13838 \family typewriter
13839 scrartcl.layout
13840 \family default
13841
13842 \family typewriter
13843 scrreprt.layou
13844 \family default
13845 t・
13846 \family typewriter
13847 crbook.layout
13848 \family default
13849 によって実装されています.これらは,対応する標準文書クラス
13850 \emph on
13851 article
13852 \emph default
13853
13854 \emph on
13855 report
13856 \emph default
13857
13858 \emph on
13859 book
13860 \emph default
13861 の段落環境を,若干の修正を加えた上ですべて含んでいますが,\SpecialChar LyX
13862 固有の
13863 \family sans
13864 箇条書き(一覧)
13865 \family default
13866 環境は例外であり,同じ機能を持つ新しい
13867 \family sans
13868 ラベリング
13869 \family default
13870 環境で置き換えられています.この
13871 \family sans
13872 ラベリング
13873 \family default
13874 環境以外にも,新しい段落環境が多く追加されています.これらは,
13875 \emph on
13876 letter (koma-script)
13877 \emph default
13878 には含まれていないのでご注意ください.
13879 \end_layout
13880
13881 \begin_layout Itemize
13882
13883 \family sans
13884 部(addpart)
13885 \family default
13886
13887 \family sans
13888 章(addchap)
13889 \family default
13890
13891 \family sans
13892 節(addsec)
13893 \family default
13894 :これらは,それぞれ
13895 \family sans
13896 部*
13897 \family default
13898
13899 \family sans
13900 章*
13901 \family default
13902
13903 \family sans
13904 節*
13905 \family default
13906 と同等の働きをしますが,加えて目次に項目が表示されるようになります.
13907 \family sans
13908 部(addpart)
13909 \family default
13910
13911 \family sans
13912 章(addchap)
13913 \family default
13914 は,
13915 \emph on
13916 article (koma-script)
13917 \emph default
13918 には収録されていません.
13919 \end_layout
13920
13921 \begin_layout Itemize
13922
13923 \family sans
13924 章(addchap*)
13925 \family default
13926
13927 \family sans
13928 節(addsec*)
13929 \family default
13930 :これらは,
13931 \family sans
13932 章(addchap
13933 \family default
13934 )と
13935 \family sans
13936 節(addsec)
13937 \family default
13938 とまったく同等に動作しますが,加えてランニングへッダを取り除きます.
13939 \family sans
13940 章(addchap*)
13941 \family default
13942 は, 
13943 \emph on
13944 article (koma-script)
13945 \emph default
13946 には収録されていません
13947 \begin_inset Foot
13948 status collapsed
13949
13950 \begin_layout Plain Layout
13951
13952 \emph on
13953 book (koma-script)
13954 \emph default
13955
13956 \emph on
13957 report (koma-script)
13958 \emph default
13959 には,
13960 \family typewriter
13961
13962 \backslash
13963 addpart*
13964 \family default
13965 コマンドもありますが,これは
13966 \family sans
13967 Part*
13968 \family default
13969 と同一なので,\SpecialChar LyX
13970 では実装されていません.
13971 \end_layout
13972
13973 \end_inset
13974
13975
13976 \end_layout
13977
13978 \begin_layout Itemize
13979
13980 \family sans
13981 小見出し(minisec)
13982 \family default
13983 :これは文書構造に現れない形で,続く段落の直上に標準文字寸法の見出しを付けます.
13984 \end_layout
13985
13986 \begin_layout Itemize
13987
13988 \family sans
13989 上部キャプション
13990 \family default
13991
13992 \family sans
13993 下部キャプション
13994 \family default
13995 は,ある要素の上部ないし下部にキャプションを配置する際,位置に応じて正しく余白取りを行う特別なキャプションです(組版規則に厳密に従うならば,表キャプションは,つ
13996 ねに表の上に置くべきでしょう).また,クラスオプション
13997 \family typewriter
13998 tablecaptionsabove
13999 \family default
14000 を用いれば,キャプションを指定すると,表には
14001 \family sans
14002 上部キャプション
14003 \family default
14004 が,図には
14005 \family sans
14006 下部キャプション
14007 \family default
14008 が適用されるようになります.これを使用するためには,Koma-Script第2.8q版以上が必要です.
14009 \end_layout
14010
14011 \begin_layout Itemize
14012
14013 \family sans
14014 格言(dictum)
14015 \family default
14016 :これは,章頭などに警句を置くのに用いることができます.オプション引数(
14017 \family sans
14018 挿入\SpecialChar menuseparator
14019 格言著者
14020 \family default
14021 )を用いれば,格言の作者を入れることができます.格言と作者の間は,線で区切られます.これを使用するためには,Koma-Script第2.8q版以上が必要です.
14022 \family sans
14023 格言(dictum)
14024 \family default
14025 は,
14026 \emph on
14027 article (koma-script)
14028 \emph default
14029 には収録されていません.
14030 \end_layout
14031
14032 \begin_layout Standard
14033 以下の各環境は,標準の
14034 \family sans
14035 タイトル
14036 \family default
14037
14038 \family sans
14039 著者
14040 \family default
14041
14042 \family sans
14043 日付
14044 \family default
14045 とともに文書のタイトル領域を形成します.これらは,最初の「通常の」段落よりも前に置かれる必要があります
14046 \begin_inset Foot
14047 status collapsed
14048
14049 \begin_layout Plain Layout
14050 つまり,対応する\SpecialChar LaTeX
14051 コマンドが
14052 \family typewriter
14053
14054 \backslash
14055 maketitle
14056 \family default
14057 コマンドよりも前に現れなくてはなりません.
14058 \end_layout
14059
14060 \end_inset
14061
14062 .これらの環境が2度以上使用された場合には,後に使用されたものが前のものを上書きします.つまり最後に使用したもののみが有効になります.しかしながら,
14063 \family sans
14064 タイトル
14065 \family default
14066
14067 \family sans
14068 著者
14069 \family default
14070
14071 \family sans
14072 日付
14073 \family default
14074 のような異なる環境の順序を変更しても,生成された文書には何の効果も生じません.
14075 \end_layout
14076
14077 \begin_layout Itemize
14078
14079 \family sans
14080 主題
14081 \family default
14082 :通常のタイトル部(
14083 \family sans
14084 タイトル
14085 \family default
14086
14087 \family sans
14088 著者
14089 \family default
14090
14091 \family sans
14092 日付
14093 \family default
14094 )の上に,文書の主題用の中央揃えの段落を生成します.
14095 \end_layout
14096
14097 \begin_layout Itemize
14098
14099 \family sans
14100 出版社
14101 \family default
14102 :通常のタイトル部(
14103 \family sans
14104 タイトル
14105 \family default
14106
14107 \family sans
14108 著者
14109 \family default
14110
14111 \family sans
14112 日付
14113 \family default
14114 )の下に,出版社名用の中央揃えの段落を生成します.
14115 \end_layout
14116
14117 \begin_layout Itemize
14118
14119 \family sans
14120 献呈
14121 \family default
14122
14123 \emph on
14124 report (koma-script)
14125 \emph default
14126
14127 \emph on
14128 book (koma-script)
14129 \emph default
14130 では,タイトル頁の次に,献辞用の中央揃えの段落を独立した頁として生成します.
14131 \emph on
14132 article (koma-script)
14133 \emph default
14134 の場合は,通常のタイトル部(
14135 \family sans
14136 タイトル
14137 \family default
14138
14139 \family sans
14140 著者
14141 \family default
14142
14143 \family sans
14144 日付
14145 \family default
14146 )の下に献辞用の中央揃えの段落を生成します.
14147 \end_layout
14148
14149 \begin_layout Itemize
14150
14151 \family sans
14152 タイトル頭書き
14153 \family default
14154 :通常のタイトル部(
14155 \family sans
14156 タイトル
14157 \family default
14158
14159 \family sans
14160 著者
14161 \family default
14162
14163 \family sans
14164 日付
14165 \family default
14166 )の上に,文書頭書き用の左揃えの段落を生成します.
14167 \end_layout
14168
14169 \begin_layout Itemize
14170
14171 \family sans
14172 扉裏上部
14173 \family default
14174
14175 \emph on
14176 report (koma-script)
14177 \emph default
14178 や 
14179 \emph on
14180 book (koma-script)
14181 \emph default
14182 の両面印刷において,扉裏上部に左揃え段落を生成します.片面印刷や,
14183 \emph on
14184 article (koma-script)
14185 \emph default
14186 では何の効果も生じません.
14187 \end_layout
14188
14189 \begin_layout Itemize
14190
14191 \family sans
14192 扉裏下部
14193 \family default
14194
14195 \emph on
14196 report (koma-script)
14197 \emph default
14198 や 
14199 \emph on
14200 book (koma-script)
14201 \emph default
14202 の両面印刷において,扉裏下部に左揃え段落を生成します.片面印刷や,
14203 \emph on
14204 article (koma-script)
14205 \emph default
14206 では何の効果も生じません.
14207 \end_layout
14208
14209 \begin_layout Itemize
14210
14211 \family sans
14212 追加タイトル
14213 \family default
14214 :実際の文書の前に,整形を行わない段落から成る,特殊な「汚い」ページを生成します.
14215 \end_layout
14216
14217 \begin_layout Standard
14218 文書クラス
14219 \emph on
14220 article (koma-script)
14221 \emph default
14222
14223 \emph on
14224 report (koma-script)
14225 \emph default
14226
14227 \emph on
14228 book (koma-script)
14229 \emph default
14230 の 各レイアウトファイルは,
14231 \family typewriter
14232 scrmacros.inc
14233 \family default
14234 ファイルを読み込みます.このファイルは,ユーザ環境を定義する場所として想定されています.s
14235 \family typewriter
14236 crmacros.inc
14237 \family default
14238 を,個人用レイアウトディレクトリにコピーして編集してください!
14239 \end_layout
14240
14241 \begin_layout Subsection
14242 letter (koma-script)
14243 \end_layout
14244
14245 \begin_layout Description
14246 \noindent
14247
14248 \family sans
14249 \series bold
14250 註:
14251 \family default
14252 \series default
14253  本節は,廃版となっている
14254 \family sans
14255 KOMA-Script-Letter (v.
14256 \begin_inset space ~
14257 \end_inset
14258
14259 1)
14260 \family default
14261 について論じています.これは,最近のKOMAリリースでは収録もされていません.現行の
14262 \family sans
14263 KOMA-Script-Letter (v.
14264 \begin_inset space ~
14265 \end_inset
14266
14267 2)
14268 \family default
14269 については,次節を参照してください!
14270 \end_layout
14271
14272 \begin_layout Standard
14273 \noindent
14274 文書クラス
14275 \emph on
14276 letter (koma-script)
14277 \emph default
14278 は,レイアウトファイル 
14279 \family typewriter
14280 scrlettr.layout
14281 \family default
14282 で実装されています.このレイアウトファイルには,対応する標準文書クラス
14283 \emph on
14284 letter
14285 \emph default
14286 の全段落環境が,部分的に変更を加えた形で収録されていますが,\SpecialChar LyX
14287 固有環境の
14288 \family sans
14289 \SpecialChar LyX
14290 コード
14291 \family default
14292
14293 \family sans
14294 コメント
14295 \family default
14296
14297 \family sans
14298 箇条書き(一覧
14299 \family default
14300 )は,新しく
14301 \family sans
14302 ラベリング
14303 \family default
14304 環境に置き換えられています.それ以外にも,標準文書クラスとは異なり,標準環境の
14305 \family sans
14306 \SpecialChar LaTeX
14307
14308 \family default
14309
14310 \family sans
14311 引用(字下げあり)
14312 \family default
14313
14314 \family sans
14315 引用(字下げなし)
14316 \family default
14317
14318 \family sans
14319 詩句
14320 \family default
14321 が収録されています.さらに,新しいletter固有環境がたくさん追加されています.
14322 \end_layout
14323
14324 \begin_layout Standard
14325 この文書クラスで作成した書簡の外観は,様々な\SpecialChar LaTeX
14326 コマンドを\SpecialChar LaTeX
14327 プリアンブルに置くことで制御することができます
14328 \begin_inset Foot
14329 status collapsed
14330
14331 \begin_layout Plain Layout
14332 例えば,名前と住所の入った書簡ヘッダの標準的外観は,きわめて頑固です.「普通の」へッダは,プリアンブル中に以下のようなコマンドを入れることで生成することができま
14333 す.
14334 \end_layout
14335
14336 \begin_layout LyX-Code
14337
14338 \backslash
14339 firsthead{
14340 \backslash
14341 parbox[b]{
14342 \backslash
14343 textwidth}
14344 \end_layout
14345
14346 \begin_layout LyX-Code
14347   {
14348 \backslash
14349 ignorespaces 
14350 \backslash
14351 fromname
14352 \backslash
14353
14354 \backslash
14355  
14356 \backslash
14357 ignorespaces 
14358 \backslash
14359 fromaddress}} 
14360 \end_layout
14361
14362 \begin_layout LyX-Code
14363
14364 \backslash
14365 nexthead{
14366 \backslash
14367 parbox[b]{
14368 \backslash
14369 textwidth}
14370 \end_layout
14371
14372 \begin_layout LyX-Code
14373   {
14374 \backslash
14375 ignorespaces 
14376 \backslash
14377 fromname 
14378 \backslash
14379 hfill 
14380 \backslash
14381 ignorespaces 
14382 \backslash
14383 pagename
14384 \backslash
14385
14386 \end_layout
14387
14388 \begin_layout LyX-Code
14389
14390 \backslash
14391 thepage}}
14392 \end_layout
14393
14394 \end_inset
14395
14396 .これらの\SpecialChar LaTeX
14397 コマンドのドイツ語での詳細な説明は,Koma-Scriptの取扱説明書
14398 \emph on
14399 scrguide
14400 \emph default
14401 にあります.この方法で,書簡の著者は,個人用書簡レイアウトを作ることができます.
14402 \end_layout
14403
14404 \begin_layout Standard
14405
14406 \family sans
14407 書簡
14408 \family default
14409 環境および
14410 \family sans
14411 頭語
14412 \family default
14413 環境は,書簡の冒頭部を定義するもので,すべての書簡で使用しなくてはなりません.\SpecialChar LyX
14414 文書クラスでは,これらの環境を強調するために,左余白にそれぞれ
14415 \shape italic
14416 L
14417 \shape default
14418
14419 \shape italic
14420 O
14421 \shape default
14422 という文字が表示されます.同一ファイル中には,複数の書簡を書くことができます.
14423 \family sans
14424 頭語
14425 \family default
14426 環境は,同じ受取人への書簡を新しく書き出すものであり,
14427 \family sans
14428 書簡
14429 \family default
14430 環境は,新しい受取人を生成するものです.
14431 \family sans
14432 結語
14433 \family default
14434
14435 \family sans
14436 PS
14437 \family default
14438
14439 \family sans
14440 CC
14441 \family default
14442
14443 \family sans
14444 Encl
14445 \family default
14446 は,通常の段落環境なので,同一の書簡中でも何度も使用することができます.
14447 \end_layout
14448
14449 \begin_layout Itemize
14450
14451 \family sans
14452 書簡
14453 \family default
14454 :受取人のための段落をつくり,暗黙に書簡の開始を定義します.
14455 \end_layout
14456
14457 \begin_layout Itemize
14458
14459 \family sans
14460 頭語
14461 \family default
14462 :敬称のための段落をつくり,暗黙に新しい書簡を開始します.
14463 \end_layout
14464
14465 \begin_layout Itemize
14466
14467 \family sans
14468 結語
14469 \family default
14470 :結語のための段落をつくります.
14471 \end_layout
14472
14473 \begin_layout Itemize
14474
14475 \family sans
14476 PS
14477 \family default
14478 :追伸のための段落をつくります.
14479 \end_layout
14480
14481 \begin_layout Itemize
14482
14483 \family sans
14484 CC
14485 \family default
14486 :同報一覧のための段落をつくります.
14487 \end_layout
14488
14489 \begin_layout Itemize
14490
14491 \family sans
14492 Encl
14493 \family default
14494 :同封物のための段落をつくります.
14495 \end_layout
14496
14497 \begin_layout Standard
14498
14499 \family sans
14500 名前
14501 \family default
14502
14503 \family sans
14504 署名
14505 \family default
14506
14507 \family sans
14508 住所
14509 \family default
14510
14511 \family sans
14512 電話
14513 \family default
14514
14515 \family sans
14516 場所(Place
14517 \family default
14518 )・
14519 \family sans
14520 返送先住所
14521 \family default
14522
14523 \family sans
14524 配送手段(Specialmail)
14525 \family default
14526
14527 \family sans
14528 場所
14529 \family default
14530
14531 \family sans
14532 タイトル
14533 \family default
14534
14535 \family sans
14536 主題
14537 \family default
14538 は,情報入力を促すラベルの付いた入力環境で,文書クラスが適切な処理を行います
14539 \begin_inset Foot
14540 status collapsed
14541
14542 \begin_layout Plain Layout
14543 上述の
14544 \family sans
14545 書簡
14546 \family default
14547
14548 \family sans
14549 頭語
14550 \family default
14551 が,これらのような入力環境でないのは,矛盾しているように感じられるかもしれません.しかしながら,これら2つの環境は特別の意味を持っているために,これらは左余白に
14552 一文字をマークした通常の段落環境として実装しました.さらに,
14553 \family sans
14554 頭語
14555 \family default
14556 環境と
14557 \family sans
14558 結語
14559 \family default
14560 環境が著しく異なって見えると対称性が損なわれることになるのも理由の一つです.
14561 \end_layout
14562
14563 \end_inset
14564
14565 .これらの環境は,対応する
14566 \family sans
14567 頭語
14568 \family default
14569 環境の前に置く必要があります.
14570 \end_layout
14571
14572 \begin_layout Standard
14573 生成された書簡の実際の外観は,特定の環境の使い方だけではなく,他の要素にも依存するため,これらの環境をWYSIWYGとして実装することには,あまり意味がありませ
14574 ん.たとえば,
14575 \family sans
14576 署名
14577 \family default
14578 環境で入力した署名は,標準的な挙動では,同じ書簡に
14579 \family sans
14580 結語
14581 \family default
14582 環境も使用されているときのみ,書簡の出力に現れます.
14583 \family sans
14584 電話
14585 \family default
14586 環境に入力された値は,標準的な挙動では,書簡の出力には全く表示されません.書簡のヘッダを自由にデザインできることは,前出の脚注で示してあります.
14587 \end_layout
14588
14589 \begin_layout Standard
14590 入力環境は,空の段落として使うことができます.これは,たとえば
14591 \family sans
14592 署名
14593 \family default
14594 環境の場合に有効です.
14595 \family sans
14596 署名
14597 \family default
14598 環境を全く使用しない場合は,標準的な挙動では,
14599 \family sans
14600 名前
14601 \family default
14602 環境の値が署名として使用されますが,空の
14603 \family sans
14604 署名
14605 \family default
14606 環境を作成しておくと,署名の値は無定義となりません.
14607 \end_layout
14608
14609 \begin_layout Standard
14610 入力環境を使用すると,個人データ(名前や住所など)が既に入力された入力環境と,後から入力するデータの入力環境を備えた,書簡のひな型を作成することができます.
14611 \end_layout
14612
14613 \begin_layout Itemize
14614
14615 \family sans
14616 名前
14617 \family default
14618 :送り主の名前.標準的な挙動では,書簡のヘッダ部にスモールキャップ体の中央揃えの段落として表示されます.
14619 \end_layout
14620
14621 \begin_layout Itemize
14622
14623 \family sans
14624 署名
14625 \family default
14626 :送り主の署名.標準的な挙動では,
14627 \family sans
14628 結語
14629 \family default
14630 環境の下に表示されます.
14631 \family sans
14632 署名
14633 \family default
14634 環境を使用しないと,代わりに
14635 \family sans
14636 名前
14637 \family default
14638 環境の値が表示されます.
14639 \end_layout
14640
14641 \begin_layout Itemize
14642
14643 \family sans
14644 住所
14645 \family default
14646 :送り主の住所.標準的な挙動では,書簡ヘッダの送り主の名前の下に中央揃えの段落として表示されます.
14647 \end_layout
14648
14649 \begin_layout Itemize
14650
14651 \family sans
14652 電話
14653 \family default
14654 :送り主の電話番号.標準的な挙動では,\SpecialChar LaTeX
14655 変数
14656 \family typewriter
14657
14658 \backslash
14659 telephonenum
14660 \family default
14661 を設定するだけです.
14662 \end_layout
14663
14664 \begin_layout Itemize
14665
14666 \family sans
14667 場所(Place)
14668 \family default
14669 :書簡を書いた場所.
14670 \end_layout
14671
14672 \begin_layout Itemize
14673
14674 \family sans
14675 日付
14676 \family default
14677 :書簡を書いた日付.
14678 \family sans
14679 場所(Place)
14680 \family default
14681
14682 \family sans
14683 日付
14684 \family default
14685 は,標準的な挙動では,受取人フィールドの下に,単一の右揃え行として場所と日付を生成します.空の
14686 \family sans
14687 日付
14688 \family default
14689 環境を作成しておくと,
14690 \family sans
14691 場所(Place)
14692 \family default
14693 の値如何に関わらず,場所も日付も表示されません.
14694 \family sans
14695 日付
14696 \family default
14697 環境を使用しない場合には,書簡を出力した日付が使用されます.
14698 \end_layout
14699
14700 \begin_layout Itemize
14701
14702 \family sans
14703 返送先住所
14704 \family default
14705 :送り主の返送先住所.標準的な挙動では,受取人の上に小文字のサンセリフ体フォントで表示されます.
14706 \end_layout
14707
14708 \begin_layout Itemize
14709
14710 \family sans
14711 特別便
14712 \family default
14713 :特別便の情報.標準的な挙動では,受取人フィールドの上かつ返送先住所の下に,下線付きで表示されます.
14714 \end_layout
14715
14716 \begin_layout Itemize
14717
14718 \family sans
14719 場所
14720 \family default
14721 :追加情報.標準的な挙動では,受取人フィールドの下の右側に表示されます.
14722 \end_layout
14723
14724 \begin_layout Itemize
14725
14726 \family sans
14727 タイトル
14728 \family default
14729 :書簡の題名.標準的な挙動では,主題の上に大きなボールド体サンセリフフォントで表示されます.
14730 \end_layout
14731
14732 \begin_layout Itemize
14733
14734 \family sans
14735 主題
14736 \family default
14737 :書簡の主題.標準的な挙動では,
14738 \family sans
14739 頭語
14740 \family default
14741 環境の上にボールド体で表示されます.
14742 \end_layout
14743
14744 \begin_layout Standard
14745
14746 \family sans
14747 Yourref・Yourmail・Myref・顧客・インボイス
14748 \family default
14749 といった環境は,
14750 \family sans
14751 タイトル
14752 \family default
14753 行の上に「Your ref.」・「Your letter of」・「Our ref.」・「Customer no.」・「Invoice no.」・「Date」といったフ
14754 ィールド行を持つ,ビジネス書簡を作成します.日付フィールドには,
14755 \family sans
14756 日付
14757 \family default
14758 環境の値が使用されます.しかしながら,これらの「ビジネス書簡環境」の一つを使用した場合には,
14759 \family sans
14760 場所(Place)
14761 \family default
14762 の値は書簡には表示されなくなり,\SpecialChar LaTeX
14763 変数
14764 \family typewriter
14765
14766 \backslash
14767 fromplace
14768 \family default
14769 が設定させるだけになります.通常時に,受取人フィールドの下に右揃えで出力される場所と日付の出力は,抑制されます.これらのビジネス環境は,ラベル付きの入力環境とし
14770 て実装されており,対応する
14771 \family sans
14772 頭語
14773 \family default
14774 環境よりも前に置く必要があります.
14775 \end_layout
14776
14777 \begin_layout Itemize
14778
14779 \family sans
14780 Yourref
14781 \family default
14782 : Your ref.
14783 \end_layout
14784
14785 \begin_layout Itemize
14786
14787 \family sans
14788 Yourmail
14789 \family default
14790 : Your letter of.
14791 \end_layout
14792
14793 \begin_layout Itemize
14794
14795 \family sans
14796 Myref
14797 \family default
14798 : Our ref.
14799 \end_layout
14800
14801 \begin_layout Itemize
14802
14803 \family sans
14804 Customer
14805 \family default
14806 : Customer no.
14807 \end_layout
14808
14809 \begin_layout Itemize
14810
14811 \family sans
14812 Invoice
14813 \family default
14814 : Invoice no.
14815 \end_layout
14816
14817 \begin_layout Subsection
14818 新しいletterクラス:letter (koma-script v.2)
14819 \end_layout
14820
14821 \begin_layout Standard
14822 by 
14823 \noun on
14824 Jürgen Spitzmüller
14825 \begin_inset VSpace medskip
14826 \end_inset
14827
14828
14829 \end_layout
14830
14831 \begin_layout Standard
14832 \noindent
14833 Koma-Script第2.8版では,新しいletterクラス
14834 \family typewriter
14835 scrlttr2
14836 \family default
14837 が導入されたため,
14838 \family typewriter
14839 scrlettr
14840 \family default
14841 は廃止されてサポート対象外となりました.これは—\SpecialChar LaTeX
14842 側で—全く新しいインターフェイスを持っており,旧クラスとは互換性がありません.したがって,\SpecialChar LyX
14843 は両者をサポートしてい
14844 ますが,新しい方のクラスを使用することを推奨します.
14845 \end_layout
14846
14847 \begin_layout Standard
14848 このクラスは,
14849 \emph on
14850 letter (koma-script)
14851 \emph default
14852 と同一の機能に加えて,新しい機能をいくつかサポートしています.基本となる項目は,
14853 \family sans
14854 住所
14855 \family default
14856 (受取人の住所,旧レイアウトの
14857 \family sans
14858 書簡
14859 \family default
14860 と同じ)・
14861 \family sans
14862 頭語
14863 \family default
14864
14865 \family sans
14866 結語
14867 \family default
14868 です.
14869 \family sans
14870 次の住所
14871 \family default
14872 は別の書簡を新しく開始します(つまり一文書あたり複数の書簡を書くことができます).新しく付け加えられた項目は,送り主の
14873 \family sans
14874 電子メール
14875 \family default
14876
14877 \family sans
14878 URL
14879 \family default
14880
14881 \family sans
14882 ファックス
14883 \family default
14884
14885 \family sans
14886 銀行
14887 \family default
14888 ,およびヘッダに(
14889 \family sans
14890 挿入\SpecialChar menuseparator
14891
14892 \family default
14893 で)
14894 \family sans
14895 ロゴ
14896 \family default
14897 を入れることができるようになった点です.
14898 \end_layout
14899
14900 \begin_layout Standard
14901 しかしながら,もっとも大きな改善は,書簡のレイアウトを,ほとんどどんなニーズにも合わせて設定できるようになった点でしょう.これはプリアンブルか,クラスオプション
14902 として読み込まれる特別なスタイルファイル(「レタークラスオプション」,拡張子
14903 \family typewriter
14904 *.lco
14905 \family default
14906 )によって設定することができます
14907 \begin_inset Foot
14908 status collapsed
14909
14910 \begin_layout Plain Layout
14911 KOMAパッケージには,既定の
14912 \family typewriter
14913 *.lco
14914 \family default
14915 ファイルがいくつか収録されています.たとえば,ドイツの組版規則に則った
14916 \family typewriter
14917 DIN.lco
14918 \family default
14919 や,旧
14920 \family typewriter
14921 scrlettr
14922 \family default
14923 クラスの既定レイアウトを提供する
14924 \family typewriter
14925 KOMAold.lco
14926 \family default
14927 などです.たとえば後者は,
14928 \family sans
14929 文書\SpecialChar menuseparator
14930 設定\SpecialChar menuseparator
14931 文書クラス\SpecialChar menuseparator
14932 クラスオプション
14933 \family default
14934 フィールドにクラスオプション
14935 \family typewriter
14936 KOMAold
14937 \family default
14938 を加えることで読み込むことができます.
14939 \end_layout
14940
14941 \end_inset
14942
14943 .用例としては,\SpecialChar LyX
14944 に収録されているひな型
14945 \emph on
14946 koma-letter2
14947 \emph default
14948 をご覧ください.詳細な解説は,Koma-Script取扱説明書(
14949 \emph on
14950 scrguide
14951 \emph default
14952 )にあります.
14953 \end_layout
14954
14955 \begin_layout Subsection
14956 問題点
14957 \end_layout
14958
14959 \begin_layout Standard
14960 Koma-Script文書クラスを\SpecialChar LyX
14961 上に表示する上で,\SpecialChar LyX
14962 の内部処理が若干の問題を生じめます.
14963 \end_layout
14964
14965 \begin_layout Itemize
14966
14967 \family sans
14968
14969 \family default
14970 環境の章番号は,章見出しと同じ行ではなく,その上に表示されます.これは,レイアウトファイル中の
14971 \family sans
14972 Counter_Chapter
14973 \family default
14974 ラベル型に対する\SpecialChar LyX
14975 の内部処理が原因です.
14976 \end_layout
14977
14978 \begin_layout Itemize
14979
14980 \family sans
14981 章(addchap)
14982 \family default
14983
14984 \family sans
14985 節(addsec)
14986 \family default
14987 環境の見出しは,「本当の」\SpecialChar LaTeX
14988 の目次には追加されますが,\SpecialChar LyX
14989 の目次(
14990 \family sans
14991 移動
14992 \family default
14993 メニュー)には追加されません.
14994 \end_layout
14995
14996 \begin_layout Itemize
14997
14998 \emph on
14999 letter
15000 \emph default
15001 文書クラスでの段落は,垂直スペースによる段落区切りで表示され,字下げはされません.これが標準的な挙動となっていて,特別な\SpecialChar LaTeX
15002 コマンドは必要ありません.しかし,
15003 \family sans
15004 文書\SpecialChar menuseparator
15005 設定
15006 \family default
15007 ダイアログでは,対応するラジオボタンは
15008 \family sans
15009 字下げ
15010 \family default
15011 に設定されています.
15012 \family sans
15013 垂直スペース
15014 \family default
15015 は,隙間を空けるために,文書に\SpecialChar LaTeX
15016 コマンドをつねに追加するようになっていますが,この文書クラスの場合には,そのような挙動が望まれないためです.
15017 \end_layout
15018
15019 \begin_layout Section
15020 Memoir
15021 \end_layout
15022
15023 \begin_layout Standard
15024
15025 \noun on
15026 Jürgen Spitzmüller
15027 \noun default
15028
15029 \end_layout
15030
15031 \begin_layout Subsection
15032 概観
15033 \end_layout
15034
15035 \begin_layout Standard
15036 Memoirは,非常に強力で,着実に改良が加えられている文書クラスであり,フィクションとノンフィクションの文学作品用に設計されています.その目的は,ユーザーに,
15037 文書の組版に関して最大限の裁量を得させることにあります.Memoirは,標準bookクラスに基づいていますが,articleクラスをエミュレートすることもできま
15038 す(以下参照).
15039 \end_layout
15040
15041 \begin_layout Standard
15042 Memoir開発者であるPeter Wilsonは,\SpecialChar LaTeX
15043 の世界での,多くの便利なパッケージの作者として知られていますが,それらのほとんどは,Memoirに統合されま
15044 した.このため,章のデザインや,目次や付録などのレイアウトを,はるかに簡単に行うことができます.しかしながら,\SpecialChar LyX
15045 は,これらすべての素晴らしい機能をネイティブでサポ
15046 ートしているわけではありません.これらのうちいくつかは,将来のリリースで追加されるかもしれませんが
15047 \begin_inset Foot
15048 status collapsed
15049
15050 \begin_layout Plain Layout
15051 もし提案があれば,ぜひ
15052 \begin_inset Flex URL
15053 status collapsed
15054
15055 \begin_layout Plain Layout
15056
15057 lyx-devel@lists.lyx.org
15058 \end_layout
15059
15060 \end_inset
15061
15062 までお送り下さい.
15063 \end_layout
15064
15065 \end_inset
15066
15067 ,\SpecialChar LyX
15068 のフレームワークが持つ制約のために,おそらく決して追加されることのないと考えられるものも多数あります.もちろん,ネイティブな\SpecialChar LaTeX
15069 コマンド(\SpecialChar TeX
15070 コード
15071 \begin_inset Foot
15072 status collapsed
15073
15074 \begin_layout Plain Layout
15075 【参考】詳細は,第
15076 \begin_inset CommandInset ref
15077 LatexCommand ref
15078 reference "sec:TeXコードを挿入する"
15079
15080 \end_inset
15081
15082 節参照.
15083 \end_layout
15084
15085 \end_inset
15086
15087 )の助けを借りれば,全機能を使用できます.この節では,\SpecialChar LyX
15088 がネイティブにサポートしている機能についてのみ,列挙するものとします.詳細な説明(および他の機能)について
15089 は,Memoirクラスの詳しい取扱説明書
15090 \begin_inset Foot
15091 status collapsed
15092
15093 \begin_layout Plain Layout
15094 【参考】
15095 \begin_inset Flex URL
15096 status collapsed
15097
15098 \begin_layout Plain Layout
15099
15100 CTAN:/macros/latex/memoir/memman.pdf
15101 \end_layout
15102
15103 \end_inset
15104
15105
15106 \end_layout
15107
15108 \end_inset
15109
15110 をご覧になることをお勧めします.この取扱説明書は,本クラスのユーザーの手引きであるのみに留まらず,良い組版に関する包括的な解説であり,それ自身が良い組版の傑出し
15111 た用例となっています.
15112 \end_layout
15113
15114 \begin_layout Subsection
15115 基本的な機能と制約
15116 \end_layout
15117
15118 \begin_layout Standard
15119 Memoirは,基本的に,標準bookクラスの全機能をサポートしています.しかしながら,以下に示すような若干の違いがあります.
15120 \end_layout
15121
15122 \begin_layout Description
15123 フォント寸法: Memoirでは,9・10・11・12・14・17と,より広い範囲のフォント寸法が使用可能です.
15124 \end_layout
15125
15126 \begin_layout Description
15127 ページ様式: Memoirパッケージとfancyhdrパッケージとのコマンドの衝突のため(両パッケージは同じ名前のコマンドを定義しているため,\SpecialChar LaTeX
15128 が混乱させられます
15129 ),fancyページ様式は使用できません.その代わり,Memoirには,多くの独自のページ様式が付属してきます(
15130 \family sans
15131 文書\SpecialChar menuseparator
15132 設定\SpecialChar menuseparator
15133 ページレイアウト
15134 \family default
15135 参照).これらを章題ページに使用したい場合には,コマンド
15136 \family typewriter
15137
15138 \backslash
15139 chapterstyle
15140 \family default
15141 を,本文またはプリアンブルに記述する必要があります(例えば,
15142 \family typewriter
15143
15144 \backslash
15145 chapterstyle{companion}
15146 \family default
15147 など).
15148 \end_layout
15149
15150 \begin_layout Description
15151 節分け: 標準クラスでは,節分けコマンド(章・節・小節等)は,非必須引数を一つ取ることができます.これを用いて,目次やヘッダ用に別のタイトルを指定することができ
15152 ます(たとえば,タイトルが長すぎる場合などに用います).\SpecialChar LyX
15153 では,章や節の始めで
15154 \family sans
15155 挿入\SpecialChar menuseparator
15156 短縮タイトル
15157 \family default
15158 を使えば,これを指定することができます.一方,Memoirでは,第2の非必須引数を取ることができ,目次用のタイトルとヘッダ用のタイトルの指定を分離しています.\SpecialChar LyX
15159
15160 は,
15161 \family sans
15162 挿入
15163 \family default
15164 メニューから
15165 \family sans
15166 短縮タイトル
15167 \family default
15168 の特定の派生形の形で利用できます.
15169 \end_layout
15170
15171 \begin_layout Description
15172 目次・図一覧・表一覧: 標準クラス(および他の多くのクラス)では,目次と図一覧および表一覧は,自動的に新規頁に置かれます.Memoirは,これとは別の方針を採り
15173 ます.改頁を行いたい場合は,手動で頁区切りを入れなくてはなりません.
15174 \end_layout
15175
15176 \begin_layout Description
15177 タイトル頁: 理由は不明ですが,Memoirはタイトルページに丁付けを行います(標準クラスでは,タイトルページは「empty」様式).タイトル頁に丁付けを行いた
15178 くない場合には,プリアンブルに
15179 \family typewriter
15180
15181 \backslash
15182 aliaspagestyle{title}{empty}
15183 \family default
15184 と入力してください.
15185 \end_layout
15186
15187 \begin_layout Description
15188 Article: クラスオプション
15189 \emph on
15190 article
15191 \emph default
15192 を用いる(
15193 \family sans
15194 文書\SpecialChar menuseparator
15195 設定\SpecialChar menuseparator
15196 文書クラス\SpecialChar menuseparator
15197 クラスオプション\SpecialChar menuseparator
15198 任意設定
15199 \family default
15200 で入力)と,article様式をエミュレートできます.すなわち,(脚注・図・表等の)カウンタは,章毎にリセットされず,次の章は頁を改めず(ただし,「本物の」ar
15201 ticleクラスとは違って,頁を改めることも可),部はbookクラスと同様に,独立の頁を使用します.
15202 \end_layout
15203
15204 \begin_layout Description
15205 Oldfontcommands: \SpecialChar LaTeX
15206 旧2.09版で使用されていた旧いフォントコマンド(
15207 \family typewriter
15208
15209 \backslash
15210 rm
15211 \family default
15212
15213 \family typewriter
15214
15215 \backslash
15216 it
15217 \family default
15218 など)は,Memoirにおいては,既定では使用することができません.Memoirがこれらのコマンドを検知すると,エラーを発して\SpecialChar LaTeX
15219 を停止させます.しかし,クラスオプ
15220 ション
15221 \emph on
15222 oldfontcommands
15223 \emph default
15224 を指定すると,これらのコマンドが容認され,エラーの代わりに警告を発するのみとなります(これによって,少なくとも\SpecialChar LaTeX
15225 は停止しなくなります).まだ,多くのパッケージと,
15226 就中多くのBib\SpecialChar TeX
15227 スタイルファイルが,これらのコマンドを使用しているので,我々はこのオプションを既定で使うこととしました.
15228 \end_layout
15229
15230 \begin_layout Subsection
15231 追加された機能
15232 \end_layout
15233
15234 \begin_layout Standard
15235 \SpecialChar LyX
15236 でサポートされる機能(今のところそれほど多くはありません)を簡単に説明しましょう.詳しくはMemoirの取扱説明書
15237 \begin_inset Foot
15238 status collapsed
15239
15240 \begin_layout Plain Layout
15241 \begin_inset Flex URL
15242 status collapsed
15243
15244 \begin_layout Plain Layout
15245
15246 CTAN:/macros/latex/memoir/memman.pdf
15247 \end_layout
15248
15249 \end_inset
15250
15251
15252 \end_layout
15253
15254 \end_inset
15255
15256 を見てください.
15257 \end_layout
15258
15259 \begin_layout Description
15260 概要: 概要が,追加された機能として扱われているのを不思議に思われるかもしれませんが,bookクラスとしては追加された機能なのです.通常bookクラスには概要は
15261 ないのですが,memoirにはあります.これは,どこでも何回でも自由に使うことができます.
15262 \end_layout
15263
15264 \begin_layout Description
15265 章要約: この古い組版様式はご覧になったことがあるかも知れません.章の内容が,見出しの下と目次に要約されているものです(たとえば,「我らが英雄がトロヤに到着する
15266 .彼は友人を失うが,新たな友人を得る.」など).章要約(chapterprecis)はこれを行います.したがって,章要約は章の下でのみ意味を持ちます.
15267 \end_layout
15268
15269 \begin_layout Description
15270 題辞: 題辞(epigraph)は章頭の,気の利いた標語やモットーです.題辞環境は,そのような標語を組む洗練された方法を提供します.標語本体(本文)とその著者(
15271 出典:非必須)は,短い線で区切られます.著者(出典)は,
15272 \family sans
15273 挿入\SpecialChar menuseparator
15274 題辞出典
15275 \family default
15276 で入力できます.
15277 \end_layout
15278
15279 \begin_layout Description
15280 詩題: Memoirには(複雑で隠喩的なものも含めて)詩を組版するための多くの機能がありますが,\SpecialChar LyX
15281 は,そのうちいくつかしかサポートしていません.詩題はその一つです
15282 .これは詩用の中央揃えタイトルで,目次にも表示されます(詩句が詩の標準環境です.Memoirには,詩句の拡張版もありますが,これらを使うためには\SpecialChar TeX
15283 コードを使用しな
15284 くてはなりません.これらの環境は通常の詩句環境の中に入れ子にしなくてはならないのですが,\SpecialChar LyX
15285 ではそれができないためです).
15286 \end_layout
15287
15288 \begin_layout Description
15289 詩題*: 目次に現れない他は詩題と同じです.
15290 \end_layout
15291
15292 \begin_layout Section
15293 Article (mwart)・book (mwbk)・report (mwrep)
15294 \begin_inset Argument status
15295 status collapsed
15296
15297 \begin_layout Plain Layout
15298 The 
15299 \family typewriter
15300 mw
15301 \family default
15302  Classes
15303 \end_layout
15304
15305 \end_inset
15306
15307
15308 \end_layout
15309
15310 \begin_layout Standard
15311
15312 \noun on
15313 Tomasz Luczak
15314 \noun default
15315
15316 \end_layout
15317
15318 \begin_layout Standard
15319 \SpecialChar LyX
15320 文書クラス
15321 \emph on
15322 article (mwart)
15323 \emph default
15324
15325 \emph on
15326 report (mwrep)・book
15327 \emph default
15328  
15329 \emph on
15330 (mwbk)
15331 \emph default
15332 は,それぞれ\SpecialChar LaTeX
15333 文書クラス
15334 \family typewriter
15335 mwart.cls
15336 \family default
15337
15338 \family typewriter
15339 mwrep.cls
15340 \family default
15341
15342 \family typewriter
15343 mwbk.cls
15344 \family default
15345 に対応しています.これらは,標準の
15346 \family typewriter
15347 article.cls
15348 \family default
15349
15350 \family typewriter
15351 report.cls
15352 \family default
15353
15354 \family typewriter
15355 book.cls
15356 \family default
15357 を代替するものであり,多くの点で,ポーランド語の組版慣習によく適合しています.
15358 \end_layout
15359
15360 \begin_layout Standard
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 \end_layout
15375
15376 \begin_deeper
15377 \begin_layout Description
15378 uheadings 分離線付きヘッダ
15379 \end_layout
15380
15381 \begin_layout Description
15382 myheadings 
15383 \family typewriter
15384
15385 \backslash
15386 markright
15387 \family default
15388 コマンドおよび
15389 \family typewriter
15390
15391 \backslash
15392 markboth
15393 \family default
15394 コマンドで設定するカスタムヘッダ
15395 \end_layout
15396
15397 \begin_layout Description
15398 myuheadings 分離線付きカスタムヘッダ
15399 \end_layout
15400
15401 \begin_layout Description
15402 outer ページの外側にページ番号
15403 \end_layout
15404
15405 \end_deeper
15406 \begin_layout Itemize
15407 オプション
15408 \end_layout
15409
15410 \begin_deeper
15411 \begin_layout Description
15412 rmheadings セリフ体見出し — 既定
15413 \end_layout
15414
15415 \begin_layout Description
15416 sfheadings サンセリフ体見出し
15417 \end_layout
15418
15419 \begin_layout Description
15420 authortitle タイトルページは,著者名・タイトルの順で配置 — 既定
15421 \end_layout
15422
15423 \begin_layout Description
15424 titleauthor タイトルページは,タイトル・著者名の順で配置
15425 \end_layout
15426
15427 \begin_layout Description
15428 withmarginpar ページ上に余白のための場所を確保
15429 \end_layout
15430
15431 \end_deeper
15432 \begin_layout Section
15433 Paper
15434 \end_layout
15435
15436 \begin_layout Standard
15437
15438 \family sans
15439 paper
15440 \family default
15441 文書クラスは標準
15442 \family sans
15443 article
15444 \family default
15445 クラスの代替となるものです.これは
15446 \family sans
15447 同様の
15448 \family default
15449 機能を提供しますが,サンセリフ体の節見出し・ヘッディング等を持つこちらのレイアウトの方が気に入るかも知れません.
15450 \end_layout
15451
15452 \begin_layout Section
15453 Rev\SpecialChar TeX
15454 4
15455 \end_layout
15456
15457 \begin_layout Standard
15458 by 
15459 \noun on
15460 Amir Karger
15461 \end_layout
15462
15463 \begin_layout Standard
15464 \begin_inset VSpace bigskip
15465 \end_inset
15466
15467
15468 \end_layout
15469
15470 \begin_layout Standard
15471 \noindent
15472
15473 \family sans
15474 Revtex
15475 \begin_inset space ~
15476 \end_inset
15477
15478 4
15479 \family default
15480 テキストクラスは,アメリカ物理学会のRev\SpecialChar TeX
15481  4.0(1999年5月の
15482 \begin_inset Formula $\beta$
15483 \end_inset
15484
15485 リリース)クラスで動作します.
15486 \end_layout
15487
15488 \begin_layout Standard
15489 \SpecialChar LyX
15490 には,Rev\SpecialChar TeX
15491  3.1で動作する
15492 \family sans
15493 Revtex
15494 \family default
15495 テキストクラスもあります.しかしながら,第3.1版は\SpecialChar LaTeX
15496  2.09で動作するものであり,基本的に時代遅れなものになっています.\SpecialChar LyX
15497 は\SpecialChar LaTeX2e
15498 を必要とすることから,第3.1版は\SpecialChar LyX
15499 とうまく
15500 協調しないことを意味しますが,動作するようには調整してあります.Rev\SpecialChar TeX
15501  4.0は,\SpecialChar LaTeX2e
15502 で素直に動作するようにデザインされているので,\SpecialChar LyX
15503
15504 \family sans
15505 Rev\SpecialChar TeX
15506
15507 \begin_inset space ~
15508 \end_inset
15509
15510 4
15511 \family default
15512 テキストクラスの組で使用するのは,たいへん簡単です.
15513 \end_layout
15514
15515 \begin_layout Standard
15516 この取扱説明書は,Rev\SpecialChar TeX
15517  4.0の説明書の
15518 \emph on
15519 補完
15520 \emph default
15521 として使用されることを前提としています.したがって,ここではRev\SpecialChar TeX
15522 固有マクロの説明はせず,必要な場合にはプリアンブルに何と書けば良いかを知っているものとして説明
15523 します.
15524 \end_layout
15525
15526 \begin_layout Subsection
15527 導入
15528 \end_layout
15529
15530 \begin_layout Standard
15531 Rev\SpecialChar TeX
15532  4パッケージのREADMEファイルにあるとおり,ともかくRev\SpecialChar TeX
15533  4を導入しなくてはなりません.パッケージは,The Rev\SpecialChar TeX
15534  4 Web
15535  Site 
15536 \begin_inset Flex URL
15537 status collapsed
15538
15539 \begin_layout Plain Layout
15540
15541 http://publish.aps.org/revtex4/
15542 \end_layout
15543
15544 \end_inset
15545
15546 から入手することができます.これを\SpecialChar LaTeX
15547 が検出することのできる場所に導入してください.それから,適当に選んだディレクトリ(もといクラスファイルを導入したのとは異なるデ
15548 ィレクトリ)で簡単なRev\SpecialChar TeX
15549  4文書を \SpecialChar LaTeX
15550 でコンパイルできるかどうか確認してください.この後,\SpecialChar LyX
15551 を環境構成すると,クラスファイルを検出し,Rev\SpecialChar TeX
15552 4テキストクラスが使用
15553 できるようになるはずです.
15554 \end_layout
15555
15556 \begin_layout Standard
15557 使い始めるには,
15558 \family typewriter
15559 tex2lyx
15560 \family default
15561 を使ってRev\SpecialChar TeX
15562  4文書を読み込むか,またはひな型ディレクトリにある
15563 \family sans
15564 Revtex
15565 \begin_inset space ~
15566 \end_inset
15567
15568 4
15569 \family default
15570 のひな型を使うのが,おそらく一番簡単な方法でしょう.
15571 \end_layout
15572
15573 \begin_layout Subsection
15574 プリアンブルに関すること
15575 \end_layout
15576
15577 \begin_layout Standard
15578
15579 \family typewriter
15580
15581 \backslash
15582 documentclass
15583 \family default
15584 に与える「preprint」や「aps」のような非必須引数は,他のクラス同様,
15585 \family sans
15586 文書\SpecialChar menuseparator
15587 設定\SpecialChar menuseparator
15588 文書クラス
15589 \family default
15590
15591 \family sans
15592 クラスオプション
15593 \family default
15594 フィールドに入れます.Rev\SpecialChar TeX
15595 では,少なくとも一つの非必須引数が必要なことに注意してください.
15596 \end_layout
15597
15598 \begin_layout Standard
15599
15600 \family typewriter
15601
15602 \backslash
15603 draft
15604 \family default
15605 など他のプリアンブルは,他のクラス同様,
15606 \family sans
15607 文書\SpecialChar menuseparator
15608 設定\SpecialChar menuseparator
15609 \SpecialChar LaTeX
15610 プリアンブル
15611 \family default
15612 に入れてください.
15613 \end_layout
15614
15615 \begin_layout Subsection
15616 レイアウト
15617 \end_layout
15618
15619 \begin_layout Standard
15620 レイアウトは,基本的にRev\SpecialChar TeX
15621 4.0のコマンドに対応しています.たとえば,Emailレイアウトは,
15622 \family typewriter
15623
15624 \backslash
15625 email{}
15626 \family default
15627 に対応しています.(少なくともRev\SpecialChar TeX
15628  4.0 Beta現在では)
15629 \family sans
15630 住所
15631 \family default
15632
15633 \family sans
15634 所属
15635 \family default
15636 はまったく同じものなので,両方を使う必要はありません
15637 \begin_inset Foot
15638 status collapsed
15639
15640 \begin_layout Plain Layout
15641 ついでながら,
15642 \family typewriter
15643 tex2lyx
15644 \family default
15645 は両方とも対応しているので,
15646 \family typewriter
15647
15648 \backslash
15649 address
15650 \family default
15651
15652 \family typewriter
15653
15654 \backslash
15655 affiliation
15656 \family default
15657 のどちらも翻訳することができます.
15658 \end_layout
15659
15660 \end_inset
15661
15662
15663 \end_layout
15664
15665 \begin_layout Subsection
15666 重要な注意
15667 \end_layout
15668
15669 \begin_layout Standard
15670 Rev\SpecialChar TeX
15671  4には,バグを引き起こしがちなために,気をつけなくてはならない特殊な面がいくつかあるため,\SpecialChar LyX
15672 ではさらに気をつけなくてはなりません.
15673 \end_layout
15674
15675 \begin_layout Standard
15676 Rev\SpecialChar TeX
15677 では,
15678 \family typewriter
15679
15680 \backslash
15681 thanks
15682 \family default
15683 コマンドは,
15684 \family typewriter
15685
15686 \backslash
15687 author
15688 \family default
15689 コマンドの
15690 \emph on
15691 外側
15692 \emph default
15693 に来なくてはなりません.\SpecialChar LyX
15694 では,独立した
15695 \family sans
15696 感謝
15697 \family default
15698 レイアウトがこの働きをします.直接
15699 \family sans
15700 ,著者
15701 \family default
15702 レイアウトに脚注を付けてしまうと,おかしなことが起こる可能性があります.詳細については,Rev\SpecialChar TeX
15703  4の取扱説明書をご覧ください.
15704 \end_layout
15705
15706 \begin_layout Standard
15707 また,
15708 \family sans
15709 著者電子メール
15710 \family default
15711
15712 \family sans
15713 著者URL・感謝(thanks)
15714 \family default
15715 レイアウトは,
15716 \family sans
15717 著者
15718 \family default
15719 レイアウトと
15720 \family sans
15721 住所(
15722 \family default
15723 または同等の
15724 \family sans
15725 所属
15726 \family default
15727 )レイアウトの間に置かなければなりません.
15728 \family sans
15729 感謝(thanks)
15730 \family default
15731
15732 \family sans
15733 住所
15734 \family default
15735 の後に置いてしまうと,\SpecialChar LaTeX
15736 はコンパイルに失敗します.
15737 \end_layout
15738
15739 \begin_layout Section
15740 Springer学術誌(
15741 \family sans
15742 svjour)
15743 \end_layout
15744
15745 \begin_layout Standard
15746
15747 \noun on
15748 Martin Vermeer
15749 \noun default
15750
15751 \end_layout
15752
15753 \begin_layout Subsection
15754 説明
15755 \end_layout
15756
15757 \begin_layout Standard
15758 これは,Springer Verlag社発行のいくつかの学術誌で使用されている書式のレイアウトファイルです.
15759 \begin_inset Flex URL
15760 status collapsed
15761
15762 \begin_layout Plain Layout
15763
15764 http://www.springer.de/author/tex/help-journals.html
15765 \end_layout
15766
15767 \end_inset
15768
15769 に必要なクラスファイル(\SpecialChar LaTeX2e
15770 用になりました)とそれに対応する学術誌の一覧があります.このレイアウトはモジュール式になっています.つまり,全ジャーナル共通部分は
15771 \family typewriter
15772 svjour.inc
15773 \family default
15774 に実装されており,各誌個別のレイアウトファイル(たとえばJournal of Geodesy用の
15775 \family typewriter
15776 svjog.layout
15777 \family default
15778 など)から取り込むことができます.
15779 \end_layout
15780
15781 \begin_layout Standard
15782 このことは,上記の学術誌一覧にある他のSpringer誌のサポートを実装するためには,
15783 \family typewriter
15784 svjog.layout
15785 \family default
15786 に書かれている指示に従って,自作の
15787 \family typewriter
15788 sv
15789 \family default
15790 <学術誌名>
15791 \family typewriter
15792 .layout
15793 \family default
15794 を書くだけで良いことを意味します.
15795 \end_layout
15796
15797 \begin_layout Standard
15798 このレイアウトは,Journal of Geodesyに対してのみ,充分な試験が為されています.
15799 \family typewriter
15800 svjour
15801 \family default
15802
15803 \family typewriter
15804 svjog
15805 \family default
15806 は,標準\SpecialChar LyX
15807 頒布版に収録済みです.関連するクラスファイルを(Springerからダウンロードして)適切なディレクトリに導入し,\SpecialChar LaTeX
15808 を再設定した後(teTeXの場合は,必
15809 要に応じてroot権限で
15810 \family typewriter
15811 texhash
15812 \family default
15813 を実行します),\SpecialChar LyX
15814 を環境構成すれば,動作するはずです.
15815 \end_layout
15816
15817 \begin_layout Subsection
15818 新スタイル
15819 \end_layout
15820
15821 \begin_layout Standard
15822 多くの定理環境 — 
15823 \family sans
15824 主張
15825 \family default
15826
15827 \family sans
15828 推論
15829 \family default
15830 ・\SpecialChar ldots
15831
15832 \family sans
15833 定理
15834 \family default
15835
15836 \end_layout
15837
15838 \begin_layout Standard
15839
15840 \family sans
15841 ヘッドノート
15842 \family default
15843
15844 \family sans
15845 献呈
15846 \family default
15847
15848 \family sans
15849 サブタイトル・ヘッダ用\SpecialChar LaTeX
15850 タイトル・ヘッダ用著者名・所属機関・メール・オフプリント・キーワード・謝辞(acknowledgements)・謝辞(acknowledg
15851 ement)
15852 \family default
15853 .詳しくは Springerのクラスファイルの説明書を読んでください.
15854 \end_layout
15855
15856 \begin_layout Subsection
15857 サポートしているジャーナル
15858 \end_layout
15859
15860 \begin_layout Itemize
15861
15862 \emph on
15863 Journal of Geodesy
15864 \emph default
15865
15866 \family typewriter
15867 svjog.layout
15868 \family default
15869  — Martin Vermeer
15870 \end_layout
15871
15872 \begin_layout Itemize
15873
15874 \emph on
15875 Probability Theory and Related Fields
15876 \emph default
15877
15878 \family typewriter
15879 svprobth.layout
15880 \family default
15881  — Jean-Marc Lasgouttes
15882 \end_layout
15883
15884 \begin_layout Standard
15885 あなた自身のレイアウトファイルをつくってください.難しくはありません.
15886 \end_layout
15887
15888 \begin_layout Subsection
15889 Credits
15890 \end_layout
15891
15892 \begin_layout Standard
15893 これらのファイルは,以前の 
15894 \family typewriter
15895 ejour2.layout
15896 \family default
15897 をもとにしています.
15898 \family typewriter
15899 ejour2.layout
15900 \family default
15901 は Springerの\SpecialChar LaTeX
15902  2.09用のスタイルファイルを使った素人細工のようなレイアウトファイルです.これらのファイルはすでにありません.Jean-Marc
15903  Lasgouttesのおかげで \SpecialChar LyX
15904 のレイアウトファイルのメカニズムをよりよく理解することができました.
15905 \end_layout
15906
15907 \begin_layout Subsection
15908 バグ
15909 \end_layout
15910
15911 \begin_layout Standard
15912 多分あります.以前の 
15913 \family typewriter
15914 ejour2
15915 \family default
15916 よりは少なくなっているとは思いますが.
15917 \end_layout
15918
15919 \begin_layout Section
15920 Slides別名
15921 \noun on
15922 Sli\SpecialChar TeX
15923
15924 \noun default
15925
15926 \begin_inset Foot
15927 status collapsed
15928
15929 \begin_layout Plain Layout
15930 (訳註)この節の内容は,全般的に古くなっています.
15931 \end_layout
15932
15933 \end_inset
15934
15935
15936 \begin_inset CommandInset label
15937 LatexCommand label
15938 name "sec:slitex"
15939
15940 \end_inset
15941
15942
15943 \end_layout
15944
15945 \begin_layout Standard
15946
15947 \noun on
15948 John Weiss
15949 \noun default
15950
15951 \end_layout
15952
15953 \begin_layout Subsection
15954 はじめに
15955 \end_layout
15956
15957 \begin_layout Standard
15958 本節では,オーバーへッドプロジェクタ用のスライドをつくるのに,\SpecialChar LyX
15959 をどのように使えばよいかを説明します.これを行う文書クラスには,既定のslideクラスと
15960 \family sans
15961 Foil\SpecialChar TeX
15962
15963 \family default
15964 スライドクラスの2つがあります.本節は前者について説明を行います.
15965 \end_layout
15966
15967 \begin_layout Standard
15968 誤解のないように,正しく明確に,もう一度言っておきます.
15969 \end_layout
15970
15971 \begin_layout Standard
15972 \begin_inset VSpace bigskip
15973 \end_inset
15974
15975
15976 \end_layout
15977
15978 \begin_layout Standard
15979 \align center
15980
15981 \size large
15982 本節は文書クラス
15983 \begin_inset Quotes eld
15984 \end_inset
15985
15986
15987 \family sans
15988 transparencies (slides)
15989 \family default
15990
15991 \begin_inset Quotes erd
15992 \end_inset
15993
15994
15995 \emph on
15996 のみ
15997 \emph default
15998 を説明しています.
15999 \end_layout
16000
16001 \begin_layout Standard
16002 \begin_inset VSpace bigskip
16003 \end_inset
16004
16005
16006 \end_layout
16007
16008 \begin_layout Standard
16009
16010 \family sans
16011 「slides (Foil\SpecialChar TeX
16012 )
16013 \family default
16014 」の説明をお探しならば,第
16015 \begin_inset CommandInset ref
16016 LatexCommand ref
16017 reference "sec:foiltex"
16018
16019 \end_inset
16020
16021 節をご覧ください.
16022 \family sans
16023 foils
16024 \family default
16025 クラス「
16026 \family sans
16027 slides (Foil\SpecialChar TeX
16028 )
16029 \family default
16030 」は,実際,本節で説明している既定
16031 \family sans
16032 slides
16033 \family default
16034 クラスよりも良いようです
16035 \begin_inset Foot
16036 status collapsed
16037
16038 \begin_layout Plain Layout
16039 \SpecialChar ldots
16040
16041 \family sans
16042 Foil\SpecialChar TeX
16043
16044 \family default
16045 の支持者からは聞いています.けれども私は使ったことがないので,本当かどうか確かめようがありません.
16046 \end_layout
16047
16048 \end_inset
16049
16050
16051 \end_layout
16052
16053 \begin_layout Standard
16054 このクラスは,旧SLI\SpecialChar TeX
16055 パッケージを\SpecialChar LaTeX2e
16056 用に改良したものです.\SpecialChar LaTeX2e
16057 頒布版すべてが,このクラス(以下では単に「
16058 \family sans
16059 slides
16060 \family default
16061 」と述べることにします)を含んでいるので,あなたもお持ちのはずです.前述の
16062 \family sans
16063 foils
16064 \family default
16065 のように,同じくオーバーへッドプロジェクタ用のスライドを生成しながら,このクラスよりも良い仕事をするクラスもあります.しかしながら,オーバーレイを生成するなど,
16066 他のクラスにはできないが
16067 \family sans
16068 slides
16069 \family default
16070 ならばできることもあります.詳しくは以下をお読みください.
16071 \end_layout
16072
16073 \begin_layout Subsection
16074 使い始めるには
16075 \begin_inset CommandInset label
16076 LatexCommand label
16077 name "sec:slidesetup"
16078
16079 \end_inset
16080
16081
16082 \end_layout
16083
16084 \begin_layout Standard
16085 当然ながら,この文書クラスを使用するには,
16086 \family sans
16087 文書\SpecialChar menuseparator
16088 設定
16089 \family default
16090 ダイアログのクラスリストから「
16091 \family sans
16092 transparencies (slides)
16093 \family default
16094 」を選択しなくてはなりません.このクラスについて,以下のように,特に知っておいた方が良いことがいくつかあります.
16095 \end_layout
16096
16097 \begin_layout Itemize
16098
16099 \family sans
16100 用紙方向
16101 \family default
16102
16103 \family sans
16104 二段組文書
16105 \family default
16106 の各オプションは,あえて変更する必要はありません.これらのオプションは,
16107 \family sans
16108 slides
16109 \family default
16110 クラスではサポートされていないので,効果がありません.
16111 \end_layout
16112
16113 \begin_layout Itemize
16114
16115 \family sans
16116 ヘディング様式
16117 \family default
16118 オプションは,このクラスでは少し異なった振る舞いをします.各選択肢とその機能は,以下の通りです.
16119 \end_layout
16120
16121 \begin_deeper
16122 \begin_layout Description
16123 プレーン(plain) 最終出力の右下隅にページ番号が付きます.
16124 \end_layout
16125
16126 \begin_layout Description
16127 設定(headings)
16128 \family sans
16129  プレーン(plain)
16130 \family default
16131 と同様ですが,それ以外にあなたが指定したタイムマーカーをすべて出力します.これが既定値です.
16132 \end_layout
16133
16134 \begin_layout Description
16135 空 最終出力には,ページ番号もタイムマーカーも位置揃えマーカーも出力されません.
16136 \end_layout
16137
16138 \end_deeper
16139 \begin_layout Itemize
16140
16141 \family sans
16142 slides
16143 \family default
16144 クラスには,もう一つ
16145 \family typewriter
16146 clock
16147 \family default
16148 というオプションがあります.これを使用するには,
16149 \family sans
16150 クラスオプション
16151 \family default
16152 に「
16153 \family typewriter
16154 clock
16155 \family default
16156 」と入力してください.
16157 \end_layout
16158
16159 \begin_deeper
16160 \begin_layout Standard
16161 このオプションを使うと,
16162 \family sans
16163 注釈
16164 \family default
16165 にタイムマーカーを加えることができます.詳細は,第
16166 \begin_inset CommandInset ref
16167 LatexCommand ref
16168 reference "sec:スライド注釈"
16169
16170 \end_inset
16171
16172 節をご覧ください.
16173 \end_layout
16174
16175 \end_deeper
16176 \begin_layout Standard
16177
16178 \family sans
16179 slides
16180 \family default
16181 クラスを用いた文書を自動的にセットアップするには,ひな型ファイル「
16182 \family typewriter
16183 slides.lyx
16184 \family default
16185 」を使用することもできます(新規ファイルを開く際に
16186 \family sans
16187 ファイル\SpecialChar menuseparator
16188 新規(ひな型使用)
16189 \family default
16190 を使用してください).ひな型ファイルには,このクラスが使用する特別な段落環境の用例も含まれています.これらについては,以下で説明します.
16191 \end_layout
16192
16193 \begin_layout Subsection
16194 段落環境
16195 \end_layout
16196
16197 \begin_layout Subsubsection
16198
16199 \family sans
16200 サポートされている環境
16201 \end_layout
16202
16203 \begin_layout Standard
16204 新しく
16205 \family sans
16206 slides
16207 \family default
16208 文書を開いたときにまず気付くのは,フォント寸法とフォント族の違いでしょう.ここでは,
16209 \family sans
16210 サンセリフ体
16211 \family default
16212 フォントの
16213 \family sans
16214 極大
16215 \family default
16216 寸法が用いられており,出力でもこのフォントが使用されます.これは,現在スライドを作成中であることの「目印」だと考えてください.出力スライドは大きなフォントを使用
16217 するため,書ける場所は少なくなります.もちろん,既定の大きな画面フォントはWYSIWYGではなく,スライドであることの目印に過ぎません.
16218 \end_layout
16219
16220 \begin_layout Standard
16221 次に気付くのは,(ツールバー左端の)段落環境プルダウンボックスが変わっていることでしょう.通常見かける環境の多くがなくなって,代わりに5つの新しい環境が入ってい
16222 ます.これは,
16223 \family sans
16224 slides
16225 \family default
16226 クラスが,標準段落環境のうち以下のものしかサポートしていないためです.
16227 \end_layout
16228
16229 \begin_layout Itemize
16230
16231 \family sans
16232 標準
16233 \end_layout
16234
16235 \begin_layout Itemize
16236
16237 \family sans
16238 箇条書き(記号)
16239 \end_layout
16240
16241 \begin_layout Itemize
16242
16243 \family sans
16244 箇条書き(連番)
16245 \end_layout
16246
16247 \begin_layout Itemize
16248
16249 \family sans
16250 箇条書き(記述)
16251 \end_layout
16252
16253 \begin_layout Itemize
16254
16255 \family sans
16256 箇条書き(一覧)
16257 \end_layout
16258
16259 \begin_layout Itemize
16260
16261 \family sans
16262 引用(字下げあり)
16263 \end_layout
16264
16265 \begin_layout Itemize
16266
16267 \family sans
16268 引用(字下げなし)
16269 \end_layout
16270
16271 \begin_layout Itemize
16272
16273 \family sans
16274 詩句
16275 \end_layout
16276
16277 \begin_layout Itemize
16278
16279 \family sans
16280 キャプション
16281 \end_layout
16282
16283 \begin_layout Itemize
16284
16285 \family sans
16286 \SpecialChar LyX
16287 コード
16288 \end_layout
16289
16290 \begin_layout Standard
16291 これ以外の標準的な環境,例えば節見出し用の環境などは
16292 \family sans
16293 slides
16294 \family default
16295 クラスでは使えません.
16296 \end_layout
16297
16298 \begin_layout Standard
16299 一方,以下の新しい環境があります.
16300 \end_layout
16301
16302 \begin_layout Itemize
16303
16304 \family sans
16305 スライド
16306 \end_layout
16307
16308 \begin_layout Itemize
16309
16310 \family sans
16311 オーバーレイ
16312 \end_layout
16313
16314 \begin_layout Itemize
16315
16316 \family sans
16317 注釈
16318 \end_layout
16319
16320 \begin_layout Itemize
16321
16322 \family sans
16323 不可視文
16324 \end_layout
16325
16326 \begin_layout Itemize
16327
16328 \family sans
16329 可視文
16330 \end_layout
16331
16332 \begin_layout Standard
16333 これら5つの環境は,\SpecialChar LyX
16334 の「機能」のために使い方に癖があります.ご存じのように,\SpecialChar LyX
16335 では,空の段落環境に他の環境を入れることができません.それ自体は素晴らしいデザインな
16336 のですが,これは,スライドを平文以外では書き始めることができないことを意味します.これを取り扱うためには,ちょっとした「\SpecialChar LaTeX
16337 マジック」が必要になります.
16338 \end_layout
16339
16340 \begin_layout Subsubsection
16341 新環境の癖
16342 \begin_inset CommandInset label
16343 LatexCommand label
16344 name "sec:スライドの癖"
16345
16346 \end_inset
16347
16348
16349 \end_layout
16350
16351 \begin_layout Standard
16352 5つの新しい環境にはすべて,\SpecialChar LyX
16353 現行版の制約に由来する癖があります.いま述べたように,\SpecialChar LyX
16354 では,環境を別の環境で開始することが禁止されています.これを回避するために,
16355 \family sans
16356 スライド
16357 \family default
16358 環境は『
16359 \emph on
16360 ユーザーの手引き
16361 \emph default
16362 』で述べられているような段落環境ではなくなっています.
16363 \end_layout
16364
16365 \begin_layout Standard
16366
16367 \family sans
16368 スライド
16369 \family default
16370
16371 \family sans
16372 オーバーレイ
16373 \family default
16374
16375 \family sans
16376 注釈
16377 \family default
16378 は「疑似環境」だとお考えください.これらは節見出しや「
16379 \family sans
16380 キャプション
16381 \family default
16382 」のように見えますが,実際には(必要なら前段落を終了して)新しい段落環境を開始します.同様に,
16383 \family sans
16384 不可視文
16385 \family default
16386
16387 \family sans
16388 可視文
16389 \family default
16390 も「疑似コマンド」とお考えください.この2つは特定のアクションを行います.
16391 \end_layout
16392
16393 \begin_layout Standard
16394
16395 \family sans
16396 スライド
16397 \family default
16398
16399 \family sans
16400 オーバーレイ
16401 \family default
16402
16403 \family sans
16404 注釈
16405 \family default
16406
16407 \family sans
16408 不可視文
16409 \family default
16410
16411 \family sans
16412 可視文
16413 \family default
16414 の5環境に共通しているのは,長めのラベルを持つことです.このラベルに続く文章—通常は段落環境の内容になるはずですが—は,
16415 \family sans
16416 スライド
16417 \family default
16418
16419 \family sans
16420 オーバーレイ
16421 \family default
16422
16423 \family sans
16424 注釈
16425 \family default
16426
16427 \family sans
16428 不可視文
16429 \family default
16430
16431 \family sans
16432 可視文
16433 \family default
16434 では,まったく意味がなく,\SpecialChar LyX
16435 はこの部分を完全に無視します.これらの5つの環境の内容は,完全に空のままにしておいて構いません.
16436 \end_layout
16437
16438 \begin_layout Standard
16439 長めのラベルの後に文章を入れる
16440 \emph on
16441 必要は
16442 \emph default
16443 まったく
16444 \emph on
16445 ない
16446 \emph default
16447 とはいえ,何か書いておきたいこともあるかもしれません.たとえば,スライドの内容に関する短い説明などがそうでしょう.この場合,いつもどおり説明用のコメントを入力し
16448
16449 \family sans
16450 Return
16451 \family default
16452 を押してください.
16453 \end_layout
16454
16455 \begin_layout Standard
16456 一方,説明文を入れたくない場合には,\SpecialChar LyX
16457 の制約に直面します.自然が真空を憎むように,\SpecialChar LyX
16458 では,古い環境に何かを置くまでは,その中に新しい環境を入れることができません.そ
16459 こで以下のようにしてください.
16460 \end_layout
16461
16462 \begin_layout Itemize
16463 新しい
16464 \family sans
16465 スライド
16466 \family default
16467
16468 \family sans
16469 オーバーレイ
16470 \family default
16471
16472 \family sans
16473 注釈
16474 \family default
16475
16476 \family sans
16477 不可視文
16478 \family default
16479
16480 \family sans
16481 可視文
16482 \family default
16483
16484 \emph on
16485 中に入れる
16486 \emph default
16487 文章を入力してください.
16488 \end_layout
16489
16490 \begin_layout Itemize
16491 段落の先頭に移動します.
16492 \end_layout
16493
16494 \begin_layout Itemize
16495 次に
16496 \family sans
16497 Return
16498 \family default
16499 を押します.
16500 \end_layout
16501
16502 \begin_layout Itemize
16503 最後に,この新しい空の段落を
16504 \family sans
16505 スライド
16506 \family default
16507
16508 \family sans
16509 オーバーレイ
16510 \family default
16511
16512 \family sans
16513 注釈
16514 \family default
16515
16516 \family sans
16517 不可視文
16518 \family default
16519
16520 \family sans
16521 可視文
16522 \family default
16523 に変更します.
16524 \end_layout
16525
16526 \begin_layout Standard
16527 将来の\SpecialChar LyX
16528 では,このような癖が解決されることを祈っています\SpecialChar ldots
16529
16530 \begin_inset Foot
16531 status collapsed
16532
16533 \begin_layout Plain Layout
16534 (訳註)ここの記述は古くなっています.
16535 \end_layout
16536
16537 \end_inset
16538
16539
16540 \end_layout
16541
16542 \begin_layout Subsection
16543
16544 \family sans
16545 スライド
16546 \family default
16547
16548 \family sans
16549 オーバーレイ
16550 \family default
16551
16552 \family sans
16553 注釈で発表用のスライドを作る
16554 \end_layout
16555
16556 \begin_layout Subsubsection
16557
16558 \family sans
16559 スライド
16560 \family default
16561 環境を使う
16562 \end_layout
16563
16564 \begin_layout Standard
16565 もし本節が,実際のプレゼンテーションの作り方を教えてくれるものと期待されているとすれば,大いにがっかりされるかもしれません.当然ながら,プレゼンテーション用の資
16566 料を準備するうえで
16567 \family sans
16568 slides
16569 \family default
16570 クラスを役立てる方法を詳しく説明はしますが,内容をどうするかはあなた次第です(そしてこれも\SpecialChar LyX
16571 の哲学です).
16572 \end_layout
16573
16574 \begin_layout Standard
16575
16576 \family sans
16577 スライド
16578 \family default
16579 環境を選択すれば(方法は第
16580 \begin_inset CommandInset ref
16581 LatexCommand ref
16582 reference "sec:スライドの癖"
16583
16584 \end_inset
16585
16586 節参照のこと),\SpecialChar LyX
16587 は新規スライドを開始します.この環境ないし「疑似環境」のラベルは,鮮やかな青で「新規スライド:」と表示されます.この環境の後のテキスト環境や段落
16588 環境は,すべて新規スライドに入ります.簡単ですよね.
16589 \end_layout
16590
16591 \begin_layout Standard
16592 Slidesは,おそらく\SpecialChar LyX
16593 の中で強制的に改頁をしなくてはならない唯一のクラスです(これは
16594 \family sans
16595 段落レイアウト
16596 \family default
16597 ダイアログで指定できます).実際,一つのスライドの内容を入力し終わったら,改頁したくなるはずです.仮に一つのスライドに物理的に入りきらない文章を入力したとすると
16598 ,入りきらない部分は,次の新規スライドにまわされます.しかしながら,入りきらない部分のスライドにはページ番号が付きませんので,こうするのはお勧めしません.その上
16599 ,一枚に収まらないスライドでは,
16600 \family sans
16601 オーバーレイ
16602 \family default
16603 を使用すると干渉する恐れがあります.
16604 \end_layout
16605
16606 \begin_layout Standard
16607
16608 \family sans
16609 オーバーレイ
16610 \family default
16611 環境と
16612 \family sans
16613 注釈
16614 \family default
16615 環境も,
16616 \family sans
16617 スライド
16618 \family default
16619 環境と同様の動作を示します.これらは,青の代わりに鮮やかなマゼンタで,それぞれ「
16620 \noun on
16621 新規オーバーレイ
16622 \noun default
16623 :」ないし「
16624 \noun on
16625 新規注釈:
16626 \noun default
16627 」というラベルを表示します.ラベルのフォントも,3つの環境でそれぞれ異なるものが使用されます.
16628 \end_layout
16629
16630 \begin_layout Standard
16631
16632 \family sans
16633 スライド
16634 \family default
16635 と同様に,
16636 \family sans
16637 オーバーレイ
16638 \family default
16639
16640 \family sans
16641 注釈
16642 \family default
16643 の内容が,一つのスライドないしページに物理的に収まりきらない場合には,余分は新規スライドに回されます.この場合には,
16644 \family sans
16645 注釈
16646 \family default
16647
16648 \family sans
16649 オーバーレイ
16650 \family default
16651 の本来の目的が達せられなくなりますので,ここでもこのような状態は避けるべきでしょう.
16652 \end_layout
16653
16654 \begin_layout Subsubsection
16655
16656 \family sans
16657 スライドでオーバーレイを使用する
16658 \end_layout
16659
16660 \begin_layout Standard
16661
16662 \family sans
16663 オーバーレイ
16664 \family default
16665 の背後にある考え方は,別のスライドの上にスライドを載せようとするものです.メインの
16666 \family sans
16667 スライド
16668 \family default
16669 に図があるとき,関連した文章を表示する前に,図について議論を進めたいと思うことがあるかもしれません.これを行うひとつの方法は,
16670 \family sans
16671 スライド
16672 \family default
16673 で後に表示したい部分に黒い紙の蓋を貼り付けてしまうことですが,この方法は,たとえばグラフを他のグラフに重ねたい場合などには,うまく行きません.この場合には,二つ
16674 のグラフを揃えるために,重ねる二つのスライドを,喋りながら手探りで揃えなくてはなりません.これらのような場合には,
16675 \family sans
16676 オーバーレイ
16677 \family default
16678 環境を使えば,もっと楽になります.
16679 \end_layout
16680
16681 \begin_layout Standard
16682
16683 \family sans
16684 オーバーレイ
16685 \family default
16686 は,「親」
16687 \family sans
16688 スライド
16689 \family default
16690 のページ番号を引継ぎ,その後に「
16691 \family typewriter
16692 -a
16693 \family default
16694 」を付け加えます
16695 \begin_inset Foot
16696 status collapsed
16697
16698 \begin_layout Plain Layout
16699 想像できるように,複数のオーバーレイがあれば,「
16700 \family typewriter
16701 -a
16702 \family default
16703 」「
16704 \family typewriter
16705 -b
16706 \family default
16707 」「
16708 \family typewriter
16709 -c
16710 \family default
16711 」などが親スライドのページ番号に付け加えられます.
16712 \end_layout
16713
16714 \end_inset
16715
16716 .当然のことながら,
16717 \family sans
16718 スライド
16719 \family default
16720
16721 \family sans
16722 オーバーレイ
16723 \family default
16724 の内容は両方とも,1枚のスライドに物理的に収まるようになっていなければなりません.
16725 \family sans
16726 オーバーレイ
16727 \family default
16728
16729 \family sans
16730 スライド
16731 \family default
16732 の「一部」であると考えるのがよいでしょう.\SpecialChar LyX
16733 では,
16734 \family sans
16735 オーバーレイ
16736 \family default
16737 のラベルを
16738 \family sans
16739 スライド
16740 \family default
16741 のラベルよりも下げることで,このことを視覚的に表しています.また,印刷可能な出力を生成すると,
16742 \family sans
16743 オーバーレイ
16744 \family default
16745 と親
16746 \family sans
16747 スライド
16748 \family default
16749 両方の四隅に,揃えマーカーがあることに気づかれるはずです.これは,2枚のスライドを物理的に重ね合わせるための補助となるものです.
16750 \end_layout
16751
16752 \begin_layout Standard
16753 2つのスライドをオーバーレイさせる際の大きな問題は,2枚のスライドの内容を揃えることです.2枚目のスライドのグラフには,どれだけの余白を残しておくべきなのでしょ
16754 うか?さらにややこしく,2枚目のスライドにグラフと文章を入れたいときに,その間に割り込んでしまうような文章がメインスライドにある場合には,どうでしょうか?正しい
16755 寸法の垂直スペースを挿入してみることもできるでしょう.しかし,もっと良い方法として,
16756 \family sans
16757 不可視文
16758 \family default
16759
16760 \family sans
16761 可視文
16762 \family default
16763 を使用する方法があります.
16764 \end_layout
16765
16766 \begin_layout Standard
16767 これらの名前が意味するとおり,
16768 \family sans
16769 不可視文
16770 \family default
16771
16772 \family sans
16773 可視文
16774 \family default
16775 は,それぞれ続く文章すべてを見えなくしたり見えるようにしたりするコマンド型の段落環境です.しかしながら,第
16776 \begin_inset CommandInset ref
16777 LatexCommand ref
16778 reference "sec:スライドの癖"
16779
16780 \end_inset
16781
16782 節で述べたように,この2つの環境の
16783 \emph on
16784
16785 \emph default
16786 には何も置くことができません.
16787 \family sans
16788 不可視文
16789 \family default
16790 を作成すると,「<以下不可視文>」と書かれた水色のラベルが,ページに中央揃えで表示されます.このラベルに続く段落は,それが置かれるべき
16791 \family sans
16792 スライド
16793 \family default
16794 (あるいは
16795 \family sans
16796 オーバーレイ
16797 \family default
16798 ;どちらでも同じことです)部分に,代わりに空白の部分が置かれます.
16799 \end_layout
16800
16801 \begin_layout Standard
16802
16803 \family sans
16804 可視文
16805 \family default
16806 の場合には,中央揃えのラベルは,鮮やかな緑の「<以下可視文>」となります.このラベル以降の段落は,通常通りの挙動を示します.新規の
16807 \family sans
16808 スライド
16809 \family default
16810
16811 \family sans
16812 オーバーレイ
16813 \family default
16814
16815 \family sans
16816 注釈
16817 \family default
16818 を開始すると,
16819 \family sans
16820 不可視文
16821 \family default
16822 は自動的に終了されることに注意してください.したがって,
16823 \family sans
16824 スライド
16825 \family default
16826 の終わりでは,
16827 \family sans
16828 可視文
16829 \family default
16830 を使用する必要はありません.
16831 \end_layout
16832
16833 \begin_layout Standard
16834 ここまでで,
16835 \family sans
16836 スライド
16837 \family default
16838
16839 \family sans
16840 オーバーレイ
16841 \family default
16842 上で
16843 \family sans
16844 不可視文
16845 \family default
16846
16847 \family sans
16848 可視文
16849 \family default
16850 を適切に使用して,スライドをオーバーレイさせる方法が明らかになったことと思います.
16851 \end_layout
16852
16853 \begin_layout Enumerate
16854 メインのスライドか
16855 \family sans
16856 オーバーレイ
16857 \family default
16858 かに関わらず,スライド上に現れるすべてを含んだ
16859 \family sans
16860 スライド
16861 \family default
16862 を作成します.
16863 \end_layout
16864
16865 \begin_layout Enumerate
16866
16867 \family sans
16868 オーバーレイ
16869 \family default
16870 のみに表示するすべての図や段落の前に,
16871 \family sans
16872 不可視文
16873 \family default
16874 環境を挿入し,必要ならば,
16875 \family sans
16876 オーバーレイ
16877 \family default
16878 のみの文章の後に
16879 \family sans
16880 可視文
16881 \family default
16882 環境を挿入します.
16883 \end_layout
16884
16885 \begin_layout Enumerate
16886
16887 \family sans
16888 スライド
16889 \family default
16890 の直後から,
16891 \family sans
16892 オーバーレイ
16893 \family default
16894 を開始します.
16895 \end_layout
16896
16897 \begin_layout Enumerate
16898 この
16899 \family sans
16900 スライド
16901 \family default
16902 の内容を
16903 \family sans
16904 オーバーレイ
16905 \family default
16906 にコピーします.
16907 \end_layout
16908
16909 \begin_layout Enumerate
16910
16911 \family sans
16912 オーバーレイ
16913 \family default
16914 内部の
16915 \family sans
16916 不可視文
16917 \family default
16918 行をすべて
16919 \family sans
16920 不可視文
16921 \family default
16922 に変更し,
16923 \family sans
16924 可視文
16925 \family default
16926
16927 \family sans
16928 不可視文
16929 \family default
16930 に変更します.
16931 \end_layout
16932
16933 \begin_layout Standard
16934 これだけです.これで
16935 \family sans
16936 オーバーレイ
16937 \family default
16938 ができあがりました.
16939 \end_layout
16940
16941 \begin_layout Standard
16942 \SpecialChar LyX
16943  
16944 \family sans
16945 slides
16946 \family default
16947 クラスをデザインする上で,ひとつ残された問題があります.段落途中の文章を不可視にしたり,不可視段落の途中の文章を再度可視にしたりすることはできないのです.これを
16948 実現するためには,\SpecialChar LaTeX
16949 コードを埋め込む必要があります
16950 \begin_inset Foot
16951 status collapsed
16952
16953 \begin_layout Plain Layout
16954 このコマンドは,
16955 \end_layout
16956
16957 \begin_layout Itemize
16958
16959 \family typewriter
16960 {
16961 \backslash
16962 invisible \SpecialChar ldots
16963  }
16964 \end_layout
16965
16966 \begin_layout Itemize
16967
16968 \family typewriter
16969 {
16970 \backslash
16971 visible \SpecialChar ldots
16972  }
16973 \end_layout
16974
16975 \begin_layout Plain Layout
16976 \SpecialChar ldots
16977 のような形となり,\SpecialChar TeX
16978 としてマークする必要があります.「可視性」を変更したい文章は,波括弧のあいだ(そして
16979 \family typewriter
16980
16981 \backslash
16982 invisible
16983 \family default
16984 ないし
16985 \family typewriter
16986
16987 \backslash
16988 visible
16989 \family default
16990 コマンドの後ろ)に入れます.\SpecialChar TeX
16991 としてマークする方法がわからない場合は,
16992 \emph on
16993 ユーザーの手引き
16994 \emph default
16995 をご参照ください.
16996 \end_layout
16997
16998 \end_inset
16999
17000
17001 \end_layout
17002
17003 \begin_layout Subsubsection
17004
17005 \family sans
17006 スライドで注釈を使う
17007 \family default
17008
17009 \begin_inset CommandInset label
17010 LatexCommand label
17011 name "sec:スライド注釈"
17012
17013 \end_inset
17014
17015
17016 \end_layout
17017
17018 \begin_layout Standard
17019
17020 \family sans
17021 オーバーレイ
17022 \family default
17023 と同様,
17024 \family sans
17025 注釈
17026 \family default
17027 も「親」
17028 \family sans
17029 スライド
17030 \family default
17031 に関連付けられています.ここでも\SpecialChar LyX
17032
17033 \family sans
17034 スライド
17035 \family default
17036 クラスは視覚的な効果を与えています.
17037 \family sans
17038 注釈
17039 \family default
17040 のラベルは
17041 \family sans
17042 スライド
17043 \family default
17044 よりも短く(オーバーレイのラベルよりも長いですが),
17045 \family sans
17046 オーバーレイ
17047 \family default
17048 のラベルと同様,派手な赤紫色です.加えて,印刷した
17049 \family sans
17050 注釈
17051 \family default
17052 には,「親」スライドのページ番号に「
17053 \family typewriter
17054 -
17055 \family default
17056 1」「
17057 \family typewriter
17058 -
17059 \family default
17060 2」「
17061 \family typewriter
17062 -
17063 \family default
17064 3」等を付けたページ番号が付けられます.1つの
17065 \family sans
17066 スライド
17067 \family default
17068 には,複数の
17069 \family sans
17070 注釈
17071 \family default
17072 を関連付けることができるので,
17073 \family sans
17074 スライド
17075 \family default
17076
17077 \family sans
17078 オーバーレイ
17079 \family default
17080 と同じように,長い注釈は,1枚の紙に収まるように分割したいと思われるに違いありません.
17081 \end_layout
17082
17083 \begin_layout Standard
17084
17085 \family sans
17086 注釈
17087 \family default
17088 の目的は明らかです.
17089 \family sans
17090 スライド
17091 \family default
17092 に関して付け加えたいことを書き留めておくことです.特定の
17093 \family sans
17094 スライド
17095 \family default
17096 についての覚書として使うこともできます.後者の場合には,タイムマーカを利用したいこともあるかもしれません.現在のところ,\SpecialChar LyX
17097
17098 \family sans
17099 スライド
17100 \family default
17101 クラスは,
17102 \noun on
17103 Sli
17104 \noun default
17105 \SpecialChar TeX
17106 の機能であるタイムマーカを「ネイティブには」サポートしていません.したがって,\SpecialChar LaTeX
17107 コードを使用することに頼らなくてはなりません.
17108 \end_layout
17109
17110 \begin_layout Standard
17111 タイムマーカを使用するには,クラスオプション「
17112 \family typewriter
17113 clock
17114 \family default
17115 」を追加指定する必要があります(第
17116 \begin_inset CommandInset ref
17117 LatexCommand ref
17118 reference "sec:slidesetup"
17119
17120 \end_inset
17121
17122 節参照).このオプションはタイムマーカ機能を有効にして,生成したすべての
17123 \family sans
17124 注釈
17125 \family default
17126 の左下にタイムマーカを表示します.タイムマーカに表示するものを設定するには,\SpecialChar LaTeX
17127 コマンド「
17128 \family typewriter
17129
17130 \backslash
17131 settime{}
17132 \family default
17133 」および「
17134 \family typewriter
17135
17136 \backslash
17137 addtime{}
17138 \family default
17139 」を使用します.両コマンドは,秒で測った時間を引数にとります.「
17140 \family typewriter
17141
17142 \backslash
17143 settime{}
17144 \family default
17145 」は,タイムマーカを特定の時間に設定し,「
17146 \family typewriter
17147
17148 \backslash
17149 addtime{}
17150 \family default
17151 」は,タイムマーカを指定した分だけ進めます.このようにタイムマーカと
17152 \family sans
17153 注釈
17154 \family default
17155 を用いれば,特定の
17156 \family sans
17157 スライド
17158 \family default
17159 にどれだけの時間をかけるのか忘れないでいられます.
17160 \end_layout
17161
17162 \begin_layout Standard
17163 最後に,説明しておくべき機能がもう一つあります.当然ながら,
17164 \family sans
17165 スライド
17166 \family default
17167
17168 \family sans
17169 オーバーレイ
17170 \family default
17171 はすべてスライドに,
17172 \family sans
17173 注釈
17174 \family default
17175 はすべて普通の紙に印刷したいはずです.しかしながら,
17176 \family sans
17177 注釈
17178 \family default
17179 は関連付けられた親スライドの直後に
17180 \emph on
17181 来なくてはなりません
17182 \emph default
17183 .ユーザーはどうしたら良いのでしょうか.
17184 \end_layout
17185
17186 \begin_layout Standard
17187 幸いなことに,どれを印刷するか選択することを可能にする\SpecialChar LaTeX
17188 コマンドが,2種類あります.どちらも文書のプリアンブルに記述されなくてはなりません.コマンド「
17189 \family typewriter
17190
17191 \backslash
17192 onlyslides{
17193 \backslash
17194 slides}
17195 \family default
17196 」は,出力に
17197 \family sans
17198 スライド
17199 \family default
17200
17201 \family sans
17202 オーバーレイ
17203 \family default
17204 のみが含まれるようにするものです.同様に,「
17205 \family typewriter
17206
17207 \backslash
17208 onlynotes{
17209 \backslash
17210 notes}
17211 \family default
17212 」は
17213 \family sans
17214 注釈
17215 \family default
17216 以外の出力をすべて抑制します.私のアドバイスとしては,両コマンドをプリアンブルに書いておいて,最初は両方ともコメントアウトしておくと良いでしょう.そうすれば,執
17217 筆時にはプレゼンテーション全体をプレビューすることができます.いったん書き終えたならば,二つのうち一方のコメントを外して,印刷したい方を選ぶことができます.私な
17218 らば,まず
17219 \family typewriter
17220
17221 \backslash
17222 onlyslides{
17223 \backslash
17224 slides}
17225 \family default
17226 のコメントを外して,現ファイル名に「*
17227 \family typewriter
17228 -slides
17229 \family default
17230 」を付けた新たなファイルに出力を行ない,今度はこの行をふたたびコメントアウトするとともに,「
17231 \family typewriter
17232
17233 \backslash
17234 onlynotes{
17235 \backslash
17236 notes
17237 \family default
17238 }」のコメントを外して,これを「
17239 \family typewriter
17240 *-notes.ps
17241 \family default
17242 」というファイルに出力します.そうすれば,必要に応じて,スライドまたは通常の紙をプリンタにセットし,一方のファイルをプリンタに送ればよいのです.
17243 \end_layout
17244
17245 \begin_layout Standard
17246
17247 \family typewriter
17248
17249 \backslash
17250 onlyslides{}
17251 \family default
17252 」および「
17253 \family typewriter
17254
17255 \backslash
17256 onlynotes{}
17257 \family default
17258 」コマンドには,他の引数を与えることもできます.詳しくは,\SpecialChar LaTeX
17259 の良書をご覧ください.
17260 \end_layout
17261
17262 \begin_layout Subsection
17263
17264 \family sans
17265 slides
17266 \family default
17267 クラスのひな型ファイル
17268 \end_layout
17269
17270 \begin_layout Standard
17271
17272 \family sans
17273 slides
17274 \family default
17275 クラス用のひな型ファイルとして「
17276 \family typewriter
17277 slides.lyx
17278 \family default
17279 」が提供されています.これを使用するには,新しいプレゼンテーションを作り始める際に,
17280 \family sans
17281 ファイル\SpecialChar menuseparator
17282 新規(ひな型使用)
17283 \family default
17284 メニューを選択してください.すると新規ファイルには,
17285 \family sans
17286 スライド
17287 \family default
17288
17289 \family sans
17290 オーバーレイ
17291 \family default
17292
17293 \family sans
17294 注釈
17295 \family default
17296 の組が,例として含まれており,
17297 \family sans
17298 スライド
17299 \family default
17300
17301 \family sans
17302 オーバーレイ
17303 \family default
17304 には,さらに
17305 \family sans
17306 不可視文
17307 \family default
17308
17309 \family sans
17310 可視文
17311 \family default
17312 の使用例も含まれています.また,プリアンブルには,次のように書き込まれています.
17313 \end_layout
17314
17315 \begin_layout LyX-Code
17316 % Uncomment to print out only slides and overlays
17317 \end_layout
17318
17319 \begin_layout LyX-Code
17320 %
17321 \end_layout
17322
17323 \begin_layout LyX-Code
17324 %
17325 \backslash
17326 onlyslides{
17327 \backslash
17328 slides}
17329 \begin_inset Newline newline
17330 \end_inset
17331
17332  
17333 \end_layout
17334
17335 \begin_layout LyX-Code
17336 % Uncomment to print out only notes
17337 \end_layout
17338
17339 \begin_layout LyX-Code
17340 %
17341 \end_layout
17342
17343 \begin_layout LyX-Code
17344 %
17345 \backslash
17346 onlynotes{
17347 \backslash
17348 notes}
17349 \end_layout
17350
17351 \begin_layout Standard
17352 最後に,私はこの文書クラスを,\SpecialChar LaTeX2e
17353 の組み込みクラスである「
17354 \noun on
17355 Sli\SpecialChar TeX
17356
17357 \noun default
17358 エミュレーション」クラスをサポートする目的で作成しました.私も\SpecialChar LyX
17359 チームの他のメンバーも,この組み込みスライドクラスを使用することに賛成したり反対したりするものでは
17360 ありません.これは単に,ユーザーがこれを使いたかったり必要としたりしたときのためにあるものです.プレゼンテーションを作成するためには,
17361 \family sans
17362 Foils
17363 \family default
17364 クラス(第
17365 \begin_inset CommandInset ref
17366 LatexCommand ref
17367 reference "sec:foiltex"
17368
17369 \end_inset
17370
17371 節参照)や「
17372 \family typewriter
17373 seminar
17374 \family default
17375 」パッケージ(一部の\SpecialChar TeX
17376 頒布版に含まれています)のように,他の\SpecialChar LaTeX2e
17377 クラスも存在します.私はこれらについては知らないのですが,他にどのようなことができるのか試してみてくだ
17378 さい.
17379 \end_layout
17380
17381 \begin_layout Chapter
17382 ソフトウェアを追加する必要がある \SpecialChar LyX
17383 機能
17384 \end_layout
17385
17386 \begin_layout Section
17387 \SpecialChar TeX
17388 のチェック
17389 \end_layout
17390
17391 \begin_layout Standard
17392
17393 \noun on
17394 Asger Alstrup
17395 \noun default
17396
17397 \end_layout
17398
17399 \begin_layout Subsection
17400 はじめに
17401 \end_layout
17402
17403 \begin_layout Standard
17404
17405 \family typewriter
17406 chktex
17407 \family default
17408 プログラムが導入されていると
17409 \begin_inset Foot
17410 status collapsed
17411
17412 \begin_layout Plain Layout
17413 \SpecialChar LaTeX
17414 頒布版としてMiK\SpecialChar TeX
17415 を使用している場合には,
17416 \family typewriter
17417 chktex
17418 \family default
17419 はまだ利用可能ではありません.
17420 \end_layout
17421
17422 \end_inset
17423
17424
17425 \family sans
17426 ツール
17427 \family default
17428 メニューの下に,
17429 \family sans
17430 \SpecialChar TeX
17431 構文チェック
17432 \family default
17433 という項目が表示されます.
17434 \family typewriter
17435 chktex
17436 \family default
17437 は,CTAN
17438 \begin_inset Newline newline
17439 \end_inset
17440
17441
17442 \begin_inset CommandInset href
17443 LatexCommand href
17444 target "http://www.ctan.org/tex-archive/help/Catalogue/entries/chktex.html"
17445 literal "false"
17446
17447 \end_inset
17448
17449 から入手することができます.
17450 \end_layout
17451
17452 \begin_layout Standard
17453
17454 \family sans
17455 Chk\SpecialChar TeX
17456
17457 \family default
17458 パッケージは,\SpecialChar LaTeX
17459 の構成物には直感的でないものもあり,すぐ忘れてしまいがちであるのに不満を感じた
17460 \begin_inset Flex Noun
17461 status collapsed
17462
17463 \begin_layout Plain Layout
17464 Jens T.
17465  Berger Thielemann
17466 \end_layout
17467
17468 \end_inset
17469
17470 が書いたプログラムです.このプログラムは,\SpecialChar LaTeX
17471 ファイルを走査して,ファイルの整合性をチェックし,犯しがちな誤りを見つけ出します.別の技術用語では,LaTeXにおける
17472 \family typewriter
17473 lint
17474 \family default
17475 であるとも言えます.
17476 \end_layout
17477
17478 \begin_layout Standard
17479 さて,\SpecialChar LyX
17480 はつねに正しい\SpecialChar LaTeX
17481 ファイルを生成するはずなのに,文法チェッカーは\SpecialChar LyX
17482 で何をするというのでしょうか.答えは簡単です.
17483 \family typewriter
17484 lint
17485 \family default
17486 がC言語プログラムの
17487 \emph on
17488 文法
17489 \emph default
17490 をチェックするだけでなく,打ち間違いによる
17491 \emph on
17492 意味上の
17493 \emph default
17494 チェックも行うように,
17495 \family sans
17496 Chk\SpecialChar TeX
17497
17498 \family default
17499 は,文法エラーの他に犯しがちな
17500 \emph on
17501 写植上の
17502 \emph default
17503 誤りも検出してくれるからです.
17504 \family sans
17505 Chk\SpecialChar TeX
17506
17507 \family default
17508 は,以下のような誤りを検出することができます.
17509 \end_layout
17510
17511 \begin_layout Itemize
17512 省略記号の検出:
17513 \begin_inset Newline newline
17514 \end_inset
17515
17516 ...ではなく\SpecialChar ldots
17517 を使わなくてはなりません
17518 \end_layout
17519
17520 \begin_layout Itemize
17521 括弧の前後にスペースを置かない:
17522 \begin_inset Newline newline
17523 \end_inset
17524
17525 ( wrong spacing ):誤った空白
17526 \end_layout
17527
17528 \begin_layout Itemize
17529 よく使われる省略形の後ろは通常スペースにする:
17530 \begin_inset Newline newline
17531 \end_inset
17532
17533 e.
17534 \begin_inset space \thinspace{}
17535 \end_inset
17536
17537 g.
17538 \begin_inset space \space{}
17539 \end_inset
17540
17541 is too wide spacing.:広すぎる空白
17542 \end_layout
17543
17544 \begin_layout Itemize
17545 直前の文章が大文字で終わっているときに,文末スペースに直す:
17546 \begin_inset Newline newline
17547 \end_inset
17548
17549 This is a TEST.
17550  And this is wrong spacing.:誤った空白
17551 \end_layout
17552
17553 \begin_layout Itemize
17554 ラベルや類似コマンドの前のスペース:
17555 \begin_inset Newline newline
17556 \end_inset
17557
17558 ラベルが別のページに行ってしまわないように,ラベルは文章に接していなくてはなりません. 
17559 \begin_inset CommandInset label
17560 LatexCommand label
17561 name "sec:chktex"
17562
17563 \end_inset
17564
17565  
17566 \begin_inset Foot
17567 status collapsed
17568
17569 \begin_layout Plain Layout
17570 この脚注は,正しくないページに行ってしまう恐れがあります.
17571 \end_layout
17572
17573 \end_inset
17574
17575  このラベルは離れすぎです.
17576 \end_layout
17577
17578 \begin_layout Itemize
17579 参照の前にハードスペースではなくスペース:
17580 \begin_inset Newline newline
17581 \end_inset
17582
17583 運が悪ければ,参照文字列と参照番号のあいだでちょうど改行されてしまい,残念な結果となります.第
17584 \begin_inset CommandInset ref
17585 LatexCommand ref
17586 reference "sec:chktex"
17587
17588 \end_inset
17589
17590 節をご覧ください.
17591 \end_layout
17592
17593 \begin_layout Itemize
17594 数字のあいだで
17595 \begin_inset Formula $\times$
17596 \end_inset
17597
17598 ではなく「x」が使われている:
17599 \begin_inset Newline newline
17600 \end_inset
17601
17602 2x2は,
17603 \begin_inset Formula $2\times2$
17604 \end_inset
17605
17606 よりも安っぽく見えます.
17607 \end_layout
17608
17609 \begin_layout Standard
17610 などなど\SpecialChar ldots
17611
17612 \family sans
17613 Chk\SpecialChar TeX
17614
17615 \family default
17616 は,印刷する前に文書を「仕上げる」上で,たいへん価値のあるツールです.必須のスペルチェックを終えた直後,組版の微調整をする前には,これを実行するべきです.
17617 \end_layout
17618
17619 \begin_layout Subsection
17620 使いかた
17621 \end_layout
17622
17623 \begin_layout Standard
17624 このプログラムを導入したならば,使うのは
17625 \family sans
17626 ツール\SpecialChar menuseparator
17627 \SpecialChar TeX
17628 構文チェック
17629 \family default
17630 を選択するだけなので簡単です.こうすると,\SpecialChar LyX
17631 は使用中の文書の\SpecialChar LaTeX
17632 ファイルを生成して,
17633 \family sans
17634 Chk\SpecialChar TeX
17635
17636 \family default
17637 を起動し,当該ファイルを検査しますが,
17638 \family sans
17639 Chk\SpecialChar TeX
17640
17641 \family default
17642 から警告があった場合には,それを含んだ「エラーボックス」を\SpecialChar LyX
17643 中に挿入します.警告は,誤りのある箇所のそばに置かれるので,メニュー項目の
17644 \family sans
17645 移動\SpecialChar menuseparator
17646 エラー
17647 \family default
17648 を選択するか,既定の
17649 \family typewriter
17650 cua
17651 \family default
17652
17653 \begin_inset Flex Ruby
17654 status collapsed
17655
17656 \begin_layout Plain Layout
17657
17658 \begin_inset Argument post:1
17659 status collapsed
17660
17661 \begin_layout Plain Layout
17662 キー
17663 \end_layout
17664
17665 \end_inset
17666
17667
17668 \end_layout
17669
17670 \end_inset
17671
17672 設定ファイルならば
17673 \begin_inset Flex Ruby
17674 status collapsed
17675
17676 \begin_layout Plain Layout
17677
17678 \family roman
17679 \series medium
17680 \shape up
17681 \size normal
17682 \emph off
17683 \bar no
17684 \noun off
17685 \color none
17686 捷径
17687 \family default
17688 \series default
17689 \shape default
17690 \size default
17691 \emph default
17692 \bar default
17693 \noun default
17694 \color inherit
17695
17696 \begin_inset Argument post:1
17697 status collapsed
17698
17699 \begin_layout Plain Layout
17700 ショートカット
17701 \end_layout
17702
17703 \end_inset
17704
17705
17706 \end_layout
17707
17708 \end_inset
17709
17710
17711 \family sans
17712 C-g
17713 \family default
17714 を押せば,簡単に警告の箇所を見出すことができます.エラーボックスを開けるには,マウスでボックスをクリックするか,
17715 \family typewriter
17716 cua
17717 \family default
17718 鍵設定の場合には捷径鍵
17719 \family sans
17720 C-i
17721 \family default
17722
17723 \family typewriter
17724 emacs
17725 \family default
17726 鍵設定の場合は捷径鍵
17727 \family sans
17728 C-o
17729 \family default
17730 を押します.警告を読み,それが誤りを示していれば修正します.警告が何を意味しているか理解しにくい場合には,無視しても問題はありません.画面上の文書と,
17731 \family sans
17732 Chk\SpecialChar TeX
17733
17734 \family default
17735 を起動する際に行なわれる実際の技術的な操作のあいだには,隠された層があり,この隔たりのせいで,一部の警告が不可解なものになったり,明らかに馬鹿げたものになる場合
17736 があるのです.
17737 \end_layout
17738
17739 \begin_layout Standard
17740 本文書自体,この機能を確認する良い材料になりますので,実行してみてください.すると,かなりの量の警告が出るはずです.これはコンピュータが敏感すぎるせいですので,
17741 警告のほとんどは実際には警告に値しません.
17742 \end_layout
17743
17744 \begin_layout Subsection
17745 微調整のしかた
17746 \end_layout
17747
17748 \begin_layout Standard
17749 場合によっては,
17750 \family sans
17751 Chk\SpecialChar TeX
17752
17753 \family default
17754 は,あなたが望むよりも煩すぎると思うかもしれません.そのような場合には,必要と思うまで
17755 \family sans
17756 Chk\SpecialChar TeX
17757
17758 \family default
17759 を無効にするか,あなたにもう少し合うように
17760 \family sans
17761 Chk\SpecialChar TeX
17762
17763 \family default
17764 を調整することができます.
17765 \end_layout
17766
17767 \begin_layout Standard
17768
17769 \family sans
17770 Chk\SpecialChar TeX
17771
17772 \family default
17773 は調整や拡張がひじょうに柔軟なのですが,\SpecialChar LyX
17774 における
17775 \family sans
17776 Chk\SpecialChar TeX
17777
17778 \family default
17779 関連の問題が,それですべて解決すると思うべきではありません.\SpecialChar LyX
17780 は,
17781 \family sans
17782 Chk\SpecialChar TeX
17783
17784 \family default
17785 出力
17786 \begin_inset Foot
17787 status collapsed
17788
17789 \begin_layout Plain Layout
17790
17791 \family sans
17792 chktex
17793 \family default
17794 の実際の出力は,
17795 \family sans
17796 chktex
17797 \family default
17798 を実行した直後に
17799 \family sans
17800 文書\SpecialChar menuseparator
17801 \SpecialChar LaTeX
17802 ログ
17803 \family default
17804 を使えば見ることができます.
17805 \end_layout
17806
17807 \end_inset
17808
17809 から得た行番号と内部構造を一致させるため,やや特殊な\SpecialChar LaTeX
17810 ファイルを生成しなくてはならないので,警告の一部は正しく表示されていないように見えるでしょう.これに対処する
17811 ためには,以下の2つの方法があります.
17812 \end_layout
17813
17814 \begin_layout Itemize
17815
17816 \family sans
17817 \begin_inset Flex MenuItem
17818 status collapsed
17819
17820 \begin_layout Plain Layout
17821
17822 \family sans
17823 ツール\SpecialChar menuseparator
17824 設定\SpecialChar menuseparator
17825 出力\SpecialChar menuseparator
17826 \SpecialChar LaTeX
17827 \SpecialChar menuseparator
17828 Check\SpecialChar TeX
17829 コマンド
17830 \end_layout
17831
17832 \end_inset
17833
17834
17835 \family default
17836 中の
17837 \family sans
17838 Chk\SpecialChar TeX
17839
17840 \family default
17841 起動コマンドラインを調整するか,グローバルな
17842 \family sans
17843 Chk\SpecialChar TeX
17844
17845 \family default
17846 の設定ファイル(通常は
17847 \begin_inset Flex Code
17848 status collapsed
17849
17850 \begin_layout Plain Layout
17851 chktexrc
17852 \end_layout
17853
17854 \end_inset
17855
17856 ファイル)を調整します.コマンドラインからどの警告を有効・無効にできるかは以下をご覧ください.
17857 \end_layout
17858
17859 \begin_layout Itemize
17860
17861 \family sans
17862 ファイル\SpecialChar menuseparator
17863 書き出し\SpecialChar menuseparator
17864 \SpecialChar LaTeX
17865
17866 \family default
17867 を使って文書を\SpecialChar LaTeX
17868 ファイルに変換し,そのファイルに対して
17869 \family typewriter
17870 chktex
17871 \family default
17872 を手動で実行します.このようにすると,\SpecialChar LyX
17873 文書中の対応箇所を見つけるのがやや面倒ですが,少し我慢すれば見つけることができます.
17874 \end_layout
17875
17876 \begin_layout Standard
17877 以下は,
17878 \family sans
17879 設定
17880 \family default
17881 で有効化・無効化できる警告メッセージです.警告を無効にするには
17882 \family typewriter
17883 -n#
17884 \family default
17885 ,有効にするには
17886 \family typewriter
17887 -w#
17888 \family default
17889 を用います.イタリック表示の項目は,既定で無効となっています.既定値は "
17890 \family typewriter
17891 chktex -n1 -n3 -n6 -n9 -n22 -n25 -n30 -n38
17892 \family default
17893 "です.
17894 \end_layout
17895
17896 \begin_layout Standard
17897 \SpecialChar LyX
17898 は,
17899 \family typewriter
17900 chktex
17901 \family default
17902 と通信するために,他のコマンドラインパラメータを特定の方法で使用しているため,メッセージを有効化・無効化する以外のオプションを使うべきではありません.
17903 \end_layout
17904
17905 \begin_layout Enumerate
17906
17907 \size small
17908 \emph on
17909 Command terminated with space.
17910 \end_layout
17911
17912 \begin_layout Enumerate
17913
17914 \size small
17915 Non-breaking space (
17916 \begin_inset Quotes eld
17917 \end_inset
17918
17919
17920 \family typewriter
17921 ~
17922 \family default
17923
17924 \begin_inset Quotes erd
17925 \end_inset
17926
17927 ) should have been used.
17928 \end_layout
17929
17930 \begin_layout Enumerate
17931
17932 \size small
17933 \emph on
17934 You should enclose the previous parenthesis with 
17935 \begin_inset Quotes eld
17936 \end_inset
17937
17938
17939 \family typewriter
17940 {}
17941 \family default
17942
17943 \begin_inset Quotes erd
17944 \end_inset
17945
17946 .
17947 \end_layout
17948
17949 \begin_layout Enumerate
17950
17951 \size small
17952 Italic correction (
17953 \begin_inset Quotes eld
17954 \end_inset
17955
17956
17957 \family typewriter
17958
17959 \backslash
17960 /
17961 \family default
17962
17963 \begin_inset Quotes erd
17964 \end_inset
17965
17966 ) found in non-italic buffer.
17967 \end_layout
17968
17969 \begin_layout Enumerate
17970
17971 \size small
17972 Italic correction (
17973 \begin_inset Quotes eld
17974 \end_inset
17975
17976
17977 \family typewriter
17978
17979 \backslash
17980 /
17981 \family default
17982
17983 \begin_inset Quotes erd
17984 \end_inset
17985
17986 ) found more than once.
17987 \end_layout
17988
17989 \begin_layout Enumerate
17990
17991 \size small
17992 \emph on
17993 No italic correction (
17994 \begin_inset Quotes eld
17995 \end_inset
17996
17997
17998 \family typewriter
17999
18000 \backslash
18001 /
18002 \family default
18003
18004 \begin_inset Quotes erd
18005 \end_inset
18006
18007 ) found.
18008 \end_layout
18009
18010 \begin_layout Enumerate
18011
18012 \size small
18013 Accent command 
18014 \begin_inset Quotes eld
18015 \end_inset
18016
18017
18018 \family typewriter
18019 cmd
18020 \family default
18021
18022 \begin_inset Quotes erd
18023 \end_inset
18024
18025  needs use of 
18026 \begin_inset Quotes eld
18027 \end_inset
18028
18029
18030 \family typewriter
18031 cmd
18032 \family default
18033
18034 \begin_inset Quotes erd
18035 \end_inset
18036
18037 .
18038 \end_layout
18039
18040 \begin_layout Enumerate
18041
18042 \size small
18043 Wrong length of dash may have been used.
18044 \end_layout
18045
18046 \begin_layout Enumerate
18047
18048 \size small
18049 \emph on
18050 \begin_inset Quotes eld
18051 \end_inset
18052
18053
18054 \family typewriter
18055 %s
18056 \family default
18057
18058 \begin_inset Quotes erd
18059 \end_inset
18060
18061  expected, found 
18062 \begin_inset Quotes eld
18063 \end_inset
18064
18065
18066 \family typewriter
18067 %s
18068 \family default
18069
18070 \begin_inset Quotes erd
18071 \end_inset
18072
18073 .
18074 \end_layout
18075
18076 \begin_layout Enumerate
18077
18078 \size small
18079 Solo 
18080 \begin_inset Quotes eld
18081 \end_inset
18082
18083
18084 \family typewriter
18085 %s
18086 \family default
18087
18088 \begin_inset Quotes erd
18089 \end_inset
18090
18091  found.
18092 \end_layout
18093
18094 \begin_layout Enumerate
18095
18096 \size small
18097 You should use 
18098 \begin_inset Quotes eld
18099 \end_inset
18100
18101
18102 \family typewriter
18103 %s
18104 \family default
18105
18106 \begin_inset Quotes erd
18107 \end_inset
18108
18109  to achieve an ellipsis.
18110 \end_layout
18111
18112 \begin_layout Enumerate
18113
18114 \size small
18115 Inter-word spacing (
18116 \begin_inset Quotes eld
18117 \end_inset
18118
18119
18120 \family typewriter
18121
18122 \backslash
18123
18124 \family default
18125  
18126 \begin_inset Quotes eld
18127 \end_inset
18128
18129 ) should perhaps be used.
18130 \end_layout
18131
18132 \begin_layout Enumerate
18133
18134 \size small
18135 Inter-sentence spacing (
18136 \begin_inset Quotes eld
18137 \end_inset
18138
18139
18140 \family typewriter
18141
18142 \backslash
18143 @
18144 \family default
18145
18146 \begin_inset Quotes erd
18147 \end_inset
18148
18149 ) should perhaps be used.
18150 \end_layout
18151
18152 \begin_layout Enumerate
18153
18154 \size small
18155 Could not find argument for command.
18156 \end_layout
18157
18158 \begin_layout Enumerate
18159
18160 \size small
18161 No match found for 
18162 \begin_inset Quotes eld
18163 \end_inset
18164
18165
18166 \family typewriter
18167 %s
18168 \family default
18169
18170 \begin_inset Quotes erd
18171 \end_inset
18172
18173 .
18174 \end_layout
18175
18176 \begin_layout Enumerate
18177
18178 \size small
18179 Math mode still on at end of \SpecialChar LaTeX
18180  file.
18181 \end_layout
18182
18183 \begin_layout Enumerate
18184
18185 \size small
18186 Number of 
18187 \begin_inset Quotes eld
18188 \end_inset
18189
18190
18191 \family typewriter
18192 char
18193 \family default
18194
18195 \begin_inset Quotes erd
18196 \end_inset
18197
18198  doesn't match the number of 
18199 \begin_inset Quotes eld
18200 \end_inset
18201
18202
18203 \family typewriter
18204 char
18205 \family default
18206
18207 \begin_inset Quotes erd
18208 \end_inset
18209
18210 .
18211 \end_layout
18212
18213 \begin_layout Enumerate
18214
18215 \size small
18216 You should use either 
18217 \family typewriter
18218
18219 \begin_inset Quotes eld
18220 \end_inset
18221
18222
18223 \family default
18224  or 
18225 \family typewriter
18226
18227 \begin_inset Quotes erd
18228 \end_inset
18229
18230
18231 \family default
18232  as an alternative to 
18233 \begin_inset Quotes eld
18234 \end_inset
18235
18236
18237 \family typewriter
18238 "
18239 \family default
18240
18241 \begin_inset Quotes erd
18242 \end_inset
18243
18244 .
18245 \end_layout
18246
18247 \begin_layout Enumerate
18248
18249 \size small
18250 You should use "
18251 \family typewriter
18252 '
18253 \family default
18254 " (ASCII 39) instead of "" (ASCII 180).
18255 \end_layout
18256
18257 \begin_layout Enumerate
18258
18259 \size small
18260 User-specified pattern found.
18261 \end_layout
18262
18263 \begin_layout Enumerate
18264
18265 \size small
18266 This command might not be intended.
18267 \end_layout
18268
18269 \begin_layout Enumerate
18270
18271 \size small
18272 \emph on
18273 Comment displayed.
18274 \end_layout
18275
18276 \begin_layout Enumerate
18277
18278 \size small
18279 Either 
18280 \family typewriter
18281 ''
18282 \backslash
18283 ,'
18284 \family default
18285  or 
18286 \family typewriter
18287 '
18288 \backslash
18289 ,''
18290 \family default
18291  will look better.
18292 \end_layout
18293
18294 \begin_layout Enumerate
18295
18296 \size small
18297 Delete this space to maintain correct page references.
18298 \end_layout
18299
18300 \begin_layout Enumerate
18301
18302 \size small
18303 \emph on
18304 You might wish to put this between a pair of 
18305 \begin_inset Quotes eld
18306 \end_inset
18307
18308
18309 \family typewriter
18310 {}
18311 \family default
18312
18313 \begin_inset Quotes erd
18314 \end_inset
18315
18316 .
18317 \end_layout
18318
18319 \begin_layout Enumerate
18320
18321 \size small
18322 You ought to remove spaces in front of punctuation.
18323 \end_layout
18324
18325 \begin_layout Enumerate
18326
18327 \size small
18328 Could not execute \SpecialChar LaTeX
18329  command.
18330 \end_layout
18331
18332 \begin_layout Enumerate
18333
18334 \size small
18335 Don't use 
18336 \family typewriter
18337
18338 \backslash
18339 /
18340 \family default
18341  in front of small punctuation.
18342 \end_layout
18343
18344 \begin_layout Enumerate
18345
18346 \family typewriter
18347 \size small
18348 $
18349 \backslash
18350 times$
18351 \family default
18352  may look prettier here.
18353 \end_layout
18354
18355 \begin_layout Enumerate
18356
18357 \size small
18358 \emph on
18359 Multiple spaces detected in output.
18360 \end_layout
18361
18362 \begin_layout Enumerate
18363
18364 \size small
18365 This text may be ignored.
18366 \end_layout
18367
18368 \begin_layout Enumerate
18369
18370 \size small
18371 Use 
18372 \family typewriter
18373
18374 \begin_inset Quotes eld
18375 \end_inset
18376
18377
18378 \family default
18379  to begin quotation, not 
18380 \family typewriter
18381 '
18382 \family default
18383 .
18384 \end_layout
18385
18386 \begin_layout Enumerate
18387
18388 \size small
18389 Use 
18390 \family typewriter
18391 '
18392 \family default
18393  to end quotation, not 
18394 \family typewriter
18395
18396 \begin_inset Quotes eld
18397 \end_inset
18398
18399
18400 \family default
18401 .
18402 \end_layout
18403
18404 \begin_layout Enumerate
18405
18406 \size small
18407 Don't mix quotes.
18408 \end_layout
18409
18410 \begin_layout Enumerate
18411
18412 \size small
18413 You should perhaps use 
18414 \begin_inset Quotes eld
18415 \end_inset
18416
18417
18418 \family typewriter
18419 cmd
18420 \family default
18421
18422 \begin_inset Quotes erd
18423 \end_inset
18424
18425  instead.
18426 \end_layout
18427
18428 \begin_layout Enumerate
18429
18430 \size small
18431 You should put a space in front of/after parenthesis.
18432 \end_layout
18433
18434 \begin_layout Enumerate
18435
18436 \size small
18437 You should avoid spaces in front of/after parenthesis.
18438 \end_layout
18439
18440 \begin_layout Enumerate
18441
18442 \size small
18443 \emph on
18444 You should not use punctuation in front of/after quotes.
18445 \end_layout
18446
18447 \begin_layout Enumerate
18448
18449 \size small
18450 Double space found.
18451 \end_layout
18452
18453 \begin_layout Enumerate
18454
18455 \size small
18456 You should put punctuation outside inner/inside display math mode.
18457 \end_layout
18458
18459 \begin_layout Enumerate
18460
18461 \size small
18462 You ought to not use primitive \SpecialChar TeX
18463  in \SpecialChar LaTeX
18464  code.
18465 \end_layout
18466
18467 \begin_layout Enumerate
18468
18469 \size small
18470 You should remove spaces in front of 
18471 \begin_inset Quotes eld
18472 \end_inset
18473
18474
18475 \family typewriter
18476 %s
18477 \family default
18478
18479 \begin_inset Quotes erd
18480 \end_inset
18481
18482
18483 \end_layout
18484
18485 \begin_layout Enumerate
18486
18487 \size small
18488 \begin_inset Quotes eld
18489 \end_inset
18490
18491
18492 \family typewriter
18493 %s
18494 \family default
18495
18496 \begin_inset Quotes erd
18497 \end_inset
18498
18499  is normally not followed by 
18500 \begin_inset Quotes eld
18501 \end_inset
18502
18503
18504 \family typewriter
18505 %c
18506 \family default
18507
18508 \begin_inset Quotes erd
18509 \end_inset
18510
18511 .
18512 \end_layout
18513
18514 \begin_layout Standard
18515 \SpecialChar LyX
18516 の将来の版では,このツール(およびその縮小版
18517 \family typewriter
18518 lacheck
18519 \family default
18520 )の力を最大限引き出すように,より完備したインターフェイスを提供できればと考えています.しかし,現状でも十分に役立つものとなっています.ある程度長さがある既存文
18521 書に使用してみていただければ,きっと驚かれることでしょう.
18522 \end_layout
18523
18524 \begin_layout Section
18525 \SpecialChar LyX
18526 でのバージョン管理
18527 \end_layout
18528
18529 \begin_layout Standard
18530
18531 \noun on
18532 Lars Bullik Bjønnes
18533 \noun default
18534 および
18535 \noun on
18536 Pavel Sanda
18537 \noun default
18538
18539 \end_layout
18540
18541 \begin_layout Subsection
18542 はじめに
18543 \end_layout
18544
18545 \begin_layout Standard
18546 \SpecialChar LyX
18547 は,今ではもっとも基本的なRCS/CVS/SVN/GITコマンドをサポートしています.もしもっと洗練されたことを行いたい場合には,ターミナル上から手動で行う必要
18548 があります.
18549 \end_layout
18550
18551 \begin_layout Standard
18552 また,CVSのサポートは,subversionのサポートほど良くないので,CVSよりもSVNを使うことをお勧めします.Subversionを学び始めるには,SV
18553 N Book
18554 \begin_inset Foot
18555 status collapsed
18556
18557 \begin_layout Plain Layout
18558 \begin_inset CommandInset href
18559 LatexCommand href
18560 target "http://svnbook.red-bean.com/"
18561 literal "false"
18562
18563 \end_inset
18564
18565
18566 \end_layout
18567
18568 \end_inset
18569
18570 が良いでしょう.RCSの場合は,「rsintro」をお読みください(これはmanファイルです.
18571 \family typewriter
18572 man rcsintro
18573 \family default
18574 で読めます).このファイルは,RCSの基本機能のすべてを説明しています.特に,RCSディレクトリに関するコメントと,マスターRCSファイル(
18575 \family typewriter
18576 ,v
18577 \family default
18578 で終わるファイルです)の概念に注意を払ってください.
18579 \end_layout
18580
18581 \begin_layout Standard
18582 \SpecialChar LyX
18583 で実際にバージョン管理機能を使い始める前に,RCS/CVS/SVN/GITの使用法に習熟しておかなくてはなりません.\SpecialChar LyX
18584 で\SpecialChar LyX
18585 への実装においては,GNU
18586  RCSまたはCVS/SVNパッケージの最新版を仮定しています.旧版への保証はありません.ログメッセージのほとんどは,現在のところ操作後には表示されません.確認
18587 したい場合には,メッセージ面で確かめてください.バージョン管理を常用するユーザーには,VCツールバーが便利でしょう.これは
18588 \family sans
18589 表示\SpecialChar menuseparator
18590 ツールバー\SpecialChar menuseparator
18591 バージョン管理
18592 \family default
18593 で有効にできます.
18594 \end_layout
18595
18596 \begin_layout Standard
18597 自製の外部コマンドを導入したい場合には,
18598 \emph on
18599 \SpecialChar LyX
18600 関数
18601 \emph default
18602 説明書の
18603 \begin_inset Flex Code
18604 status collapsed
18605
18606 \begin_layout Plain Layout
18607 vc-command
18608 \end_layout
18609
18610 \end_inset
18611
18612 を確認してください.
18613 \end_layout
18614
18615 \begin_layout Standard
18616 バージョン管理機能を使用している場合には,文書を非圧縮形式で保存をすることを強く推奨します(
18617 \family sans
18618 文書\SpecialChar menuseparator
18619 圧縮
18620 \family default
18621 にチェックが入っていれば外してください).非圧縮LyX文書はテキストファイルであるため,バージョン管理システムが,二つのバージョンをマージすることができます.一
18622 方,圧縮LyXファイルはバイナリファイルであるため,バージョン管理システムはマージすることができません.
18623 \end_layout
18624
18625 \begin_layout Subsection
18626 \SpecialChar LyX
18627 におけるRCSコマンド
18628 \end_layout
18629
18630 \begin_layout Standard
18631 以下の節では\SpecialChar LyX
18632 でサポートされているRCSコマンドを説明します.それらのコマンドは
18633 \family sans
18634 ファイル\SpecialChar menuseparator
18635 バージョン管理
18636 \family default
18637 のサブメニューにあります.\SpecialChar LyX
18638 は,RCS 5.7/5.8に対して試験されています.
18639 \end_layout
18640
18641 \begin_layout Subsubsection
18642
18643 \family sans
18644 登録
18645 \end_layout
18646
18647 \begin_layout Standard
18648 文書がバージョン管理の下にない場合には,これがメニューにあらわれる唯一の項目です.文書がバージョン管理下にあれば,項目
18649 \family sans
18650 登録
18651 \family default
18652 は不可視になります.
18653 \end_layout
18654
18655 \begin_layout Standard
18656 このコマンドは,文書をRCSに登録します(CVSが管理しているディレクトリ下にない場合).すると対話的に,文書の最初の説明を入力するように尋ねられます.すると文
18657 書は読み込み専用モードになるので,変更を加えるためには
18658 \family sans
18659 チェックアウトして編集
18660 \family default
18661 を実行する必要があります.バージョン管理下にある文書は,ミニバッファのファイル名の後ろに「 [RCS:<バージョン> <ロック>]」という項目が表示されます.
18662 \end_layout
18663
18664 \begin_layout Standard
18665 実行されるRCSコマンドは:
18666 \end_layout
18667
18668 \begin_layout LyX-Code
18669
18670 \family typewriter
18671 ci -q -u -i -t-"<初期説明文>" <ファイル名>
18672 \end_layout
18673
18674 \begin_layout Standard
18675 スイッチについて知りたい場合は,
18676 \family typewriter
18677 man ci
18678 \family default
18679 を読んでください.
18680 \end_layout
18681
18682 \begin_layout Subsubsection
18683
18684 \family sans
18685 変更をチェックインする
18686 \end_layout
18687
18688 \begin_layout Standard
18689 ファイルの編集が終わると,その変更をチェックインします.このとき,変更についての説明文を求められます.これは履歴ログに記録されます.バージョン番号は繰り上がり,
18690 変更がマスターRCSファイルに適用され,文書がアンロックされて読み込み専用モードになります.
18691 \end_layout
18692
18693 \begin_layout Itemize
18694 RCSコマンド:
18695 \family typewriter
18696 ci -q -u -m"<説明文>" <ファイル名>
18697 \end_layout
18698
18699 \begin_layout Subsubsection
18700
18701 \family sans
18702 チェックアウトして編集
18703 \end_layout
18704
18705 \begin_layout Standard
18706 これは,文書をロックして編集できるようにします.そしてあなただけが文書を読み書きできるようにします.通常は,しばらくの間,文書を編集し,それが終わると変更をチェ
18707 ックインします.あなたがファイルをロックしたことを反映して,ステータスラインが変わります.
18708 \end_layout
18709
18710 \begin_layout Itemize
18711 RCSコマンド:
18712 \family typewriter
18713 co -q -l <ファイル名>
18714 \end_layout
18715
18716 \begin_layout Subsubsection
18717
18718 \family sans
18719 リポジトリのバージョンに戻す
18720 \end_layout
18721
18722 \begin_layout Standard
18723 これは,最終チェックイン以降,文書に加えられた変更をすべて破棄します.変更が破棄される前に,警告が発せられます.
18724 \end_layout
18725
18726 \begin_layout Itemize
18727 RCSコマンド:
18728 \family typewriter
18729 co -f -u<バージョン> <ファイル名>
18730 \end_layout
18731
18732 \begin_layout Subsubsection
18733
18734 \family sans
18735 コピー
18736 \end_layout
18737
18738 \begin_layout Standard
18739 これは,現行文書のコピーを生成します.RCSは,コピー操作を自前ではサポートしませんので,バージョン履歴には保存されず,新コピーは新規ファイルとして追加されます
18740 .最後のチェックイン以降,変更が加えられていないサラの文書であることが要求されます.ファイル名とコピー操作の説明を入力するように促され,その後,新コピーがローカ
18741 ルとリポジトリの両方に生成されます.コピーされた文書と元の文書の親ディレクトリが異なる場合には,コピーにインクルードされたファイルの相対パスは,(
18742 \family sans
18743 ファイル\SpecialChar menuseparator
18744 名前をつけて保存\SpecialChar ldots
18745
18746 \family default
18747 と同様に)全て調整されます.最後に,元の文書の代わりに,コピーされたファイルが読み込まれます.
18748 \end_layout
18749
18750 \begin_layout Labeling
18751 \labelwidthstring 00.00.0000
18752 RCSコマンド:
18753 \change_inserted -1196488707 1503192311
18754  
18755 \change_unchanged
18756
18757 \begin_inset space ~
18758 \end_inset
18759
18760
18761 \begin_inset Newline newline
18762 \end_inset
18763
18764
18765 \begin_inset Flex Code
18766 status collapsed
18767
18768 \begin_layout Plain Layout
18769 "ファイル名"
18770 \end_layout
18771
18772 \end_inset
18773
18774
18775 \begin_inset Flex Code
18776 status collapsed
18777
18778 \begin_layout Plain Layout
18779 "新ファイル名"
18780 \end_layout
18781
18782 \end_inset
18783
18784 にコピーする場合
18785 \begin_inset Newline newline
18786 \end_inset
18787
18788
18789 \begin_inset Flex Code
18790 status collapsed
18791
18792 \begin_layout Plain Layout
18793 ci -q -u -i "<新ファイル名>"
18794 \end_layout
18795
18796 \end_inset
18797
18798
18799 \end_layout
18800
18801 \begin_layout Subsubsection
18802
18803 \family sans
18804 最後のチェックインを取り消す
18805 \end_layout
18806
18807 \begin_layout Standard
18808 これは,最後のチェックインがあたかも為されなかったかのようにします.\SpecialChar LyX
18809 に読み込まれた文書に変更は加えられませんが,マスターRCSファイルから最後のバージョンが削除
18810 されます.
18811 \end_layout
18812
18813 \begin_layout Itemize
18814 RCSコマンド:
18815 \family typewriter
18816 rcs -o<バージョン> <ファイル名>
18817 \end_layout
18818
18819 \begin_layout Subsubsection
18820
18821 \family sans
18822 履歴を表示
18823 \end_layout
18824
18825 \begin_layout Standard
18826 RCS文書の完全な履歴を表示します.ブラウザ中に,
18827 \family typewriter
18828 rlog <ファイル名>
18829 \family default
18830 の出力が表示されます.詳細は
18831 \family typewriter
18832 man rlog
18833 \family default
18834 をご覧ください.
18835 \end_layout
18836
18837 \begin_layout Subsubsection
18838 改訂情報
18839 \end_layout
18840
18841 \begin_layout Standard
18842 \SpecialChar LyX
18843 は,RCSバージョン番号情報(のみ)をサポートしています.詳細については,
18844 \begin_inset CommandInset ref
18845 LatexCommand ref
18846 reference "subsec:VCS改訂情報"
18847
18848 \end_inset
18849
18850 を参照.
18851 \end_layout
18852
18853 \begin_layout Subsection
18854 \SpecialChar LyX
18855 におけるCVSコマンド
18856 \end_layout
18857
18858 \begin_layout Standard
18859 \SpecialChar LyX
18860 は,現在CVSを一部サポートしています.そのコマンドは,
18861 \family sans
18862 ファイル\SpecialChar menuseparator
18863 バージョン管理
18864 \family default
18865 サブメニューにあります.バージョン管理システムSVNの方が強力なので,可能ならばCVSではなく,SVNを使用してください.
18866 \end_layout
18867
18868 \begin_layout Subsubsection
18869 CVSの一般的な利用法
18870 \end_layout
18871
18872 \begin_layout Standard
18873 CVSを初めて使いたい場合には,外部ツールを使用して自分のレポジトリを作成し,作業コピーをチェックアウトする必要があります.クライアント=サーバーモデルを使用し
18874 ている場合には,最初のレポジトリチェックアウトを行う前にログインする必要があるかもしれません.
18875 \end_layout
18876
18877 \begin_layout Standard
18878 改訂管理下にある文書のレポジトリを他人も利用している場合に,同一文書の同一箇所に別々の変更を加えてしまうと問題が発生します.標準的なCVSレポジトリは,ファイル
18879 ロッキング機構を有しません.これは驚くべきことかもしれませんが,コンフリクトは,文書の同じ箇所の特定の内容について,人々が意見を異にしている場合にのみ発生します
18880 .したがって,共著者同士がコンスタントにコミュニケーションを交わしていれば,このようなコンフリクトは滅多に発生しません.もしコミュニケーションがなければ,いずれ
18881 にしても根本的な問題があるわけです.それにもかかわらず,いわゆる「予備付きチェックアウト」を使用したいと思う人々もいます.この場合,最初にチェックアウトした際に
18882 ,全ファイルの作業コピーは読み込み専用にされ,ユーザーは,作業コピーを書き込み可能にする特別なコマンドを使用した後,編集を開始することになります.変更をチェック
18883 インすると,作業コピーは読み込み専用状態に戻ります.\SpecialChar LyX
18884 で予備付きチェックアウトを利用したい場合には,
18885 \begin_inset Flex Code
18886 status collapsed
18887
18888 \begin_layout Plain Layout
18889 .cvsrc
18890 \end_layout
18891
18892 \end_inset
18893
18894 ファイルを編集して,
18895 \begin_inset Flex Code
18896 status collapsed
18897
18898 \begin_layout Plain Layout
18899 cvs -r
18900 \end_layout
18901
18902 \end_inset
18903
18904 という行を書き加える必要があります.この方法の利点は,文書のうち,書き込み可能コピーを誰が使用しているかを見ることができることです.ただし,一人のユーザーだけが
18905 コピーを書き込み可能にしているとは限りません.
18906 \end_layout
18907
18908 \begin_layout Standard
18909 \SpecialChar LyX
18910 は,あなたが予備付きチェックアウトを使用しているか,予備なしチェックアウトを利用しているか,推測しようと試みます.使用中の作業コピーが読み込み専用になっているか
18911 ,あるいはそれが書き込み可能であって,CVS/Baseサブディレクトリに使用中文書のコピーが存在している場合には,予備付きチェックアウトを使用しているものと仮定
18912 し,そうでない場合には予備なしチェックアウトを使用しているものと仮定します.予備付きチェックアウトが検出された場合には,作業コピーが読み込み専用の場合に書き込み
18913 可能にするためには,
18914 \begin_inset Flex MenuItem
18915 status collapsed
18916
18917 \begin_layout Plain Layout
18918 チェックアウト
18919 \end_layout
18920
18921 \end_inset
18922
18923 メニューを使用しなくてはなりません.その後,
18924 \begin_inset Flex MenuItem
18925 status collapsed
18926
18927 \begin_layout Plain Layout
18928 チェックイン
18929 \end_layout
18930
18931 \end_inset
18932
18933 メニューが利用可能になるので,自分が加えた変更をリポジトリに移した後,作業コピーを再び読み込み専用にする際には,これを使用します.
18934 \end_layout
18935
18936 \begin_layout Standard
18937 CVSの詳細な情報は,
18938 \begin_inset Flex URL
18939 status collapsed
18940
18941 \begin_layout Plain Layout
18942
18943 http://www.nongnu.org/cvs
18944 \end_layout
18945
18946 \end_inset
18947
18948
18949 \begin_inset Flex URL
18950 status collapsed
18951
18952 \begin_layout Plain Layout
18953
18954 http://ximbiot.com/cvs
18955 \end_layout
18956
18957 \end_inset
18958
18959 にあります.
18960 \end_layout
18961
18962 \begin_layout Standard
18963 以下に言及するサブコマンドとスイッチを理解するには,
18964 \family typewriter
18965 man cvs
18966 \family default
18967 をお読みください.
18968 \end_layout
18969
18970 \begin_layout Subsubsection
18971 登録
18972 \end_layout
18973
18974 \begin_layout Standard
18975 お使いの文書が改訂管理下に置かれていなければ,メニューにはこの項目だけが表示されます.もし改訂管理が有効ならば,
18976 \family sans
18977 登録
18978 \family default
18979 項目は表示されません.
18980 \end_layout
18981
18982 \begin_layout Standard
18983 本コマンドは,既に文書ディレクトリをCVS管理下に置いている場合に
18984 \series bold
18985 \emph on
18986 のみ
18987 \series default
18988 \emph default
18989 (すなわち
18990 \begin_inset Flex Code
18991 status collapsed
18992
18993 \begin_layout Plain Layout
18994 CVS/Entries
18995 \end_layout
18996
18997 \end_inset
18998
18999 ファイルが存在する場合にのみ),お使いの文書をCVSに登録します.つまり,外部ツールを使用して,アーカイブを自分で作成ないしチェックアウトしなくてはならないこと
19000 を意味します(このステップを忘れてしまうと,\SpecialChar LyX
19001 は文書をRCSに登録します).
19002 \end_layout
19003
19004 \begin_layout Standard
19005 すると,文書の最初の説明文を入力するように促されます.登録したファイルは,まだチェックインされたわけではないことに注意してください.
19006 \end_layout
19007
19008 \begin_layout Standard
19009 実行されるCVSコマンドは,
19010 \family typewriter
19011 cvs -q add -m"<入力した説明文>" "<ファイル名>"
19012 \family default
19013  です.
19014 \end_layout
19015
19016 \begin_layout Standard
19017 上記および他のすべてのCVSコマンドにおける
19018 \family typewriter
19019 "<ファイル名>"
19020 \family default
19021 は,「カレント作業ディレクトリをファイルの場所に移動し,パスコンポーネントを除いたファイル名を引数として使用する」という意味になります.
19022 \end_layout
19023
19024 \begin_layout Subsubsection
19025 変更のチェックイン
19026 \end_layout
19027
19028 \begin_layout Standard
19029 ファイルの編集を終えたら,変更をコミットします.このとき,文書に変更が加えられていれば,変更の説明文を入れるよう促されます.その後,変更がレポジトリに書き込まれ
19030 ます.文書を変更せず,予備付きチェックアウトが検出された場合,
19031 \begin_inset Flex MenuItem
19032 status collapsed
19033
19034 \begin_layout Plain Layout
19035 チェックアウト
19036 \end_layout
19037
19038 \end_inset
19039
19040 で作られた予備は取り消されます.
19041 \end_layout
19042
19043 \begin_layout Labeling
19044 \labelwidthstring 00.00.0000
19045 CVSコマンド: 
19046 \begin_inset space ~
19047 \end_inset
19048
19049
19050 \begin_inset Newline newline
19051 \end_inset
19052
19053
19054 \begin_inset Flex Code
19055 status collapsed
19056
19057 \begin_layout Plain Layout
19058 cvs -q commit -m"<入力した説明文>" "<ファイル名>"
19059 \end_layout
19060
19061 \end_inset
19062
19063 あるいは
19064 \begin_inset Newline newline
19065 \end_inset
19066
19067
19068 \begin_inset Flex Code
19069 status collapsed
19070
19071 \begin_layout Plain Layout
19072 cvs -q unedit "<ファイル名>"
19073 \end_layout
19074
19075 \end_inset
19076
19077
19078 \end_layout
19079
19080 \begin_layout Subsubsection
19081 変更のチェックアウト
19082 \end_layout
19083
19084 \begin_layout Standard
19085 レポジトリを他人と共有している場合,他人の加えた変更を自らの作業コピーに取り込まなくてはならないことがあります.
19086 \end_layout
19087
19088 \begin_layout Standard
19089 CVSコマンド:
19090 \family typewriter
19091 cvs -q update "<ファイル名>"
19092 \end_layout
19093
19094 \begin_layout Standard
19095 読み込み専用チェックアウトが検出された場合,作業コピーを書き込み可能にし予備を作成します.
19096 \end_layout
19097
19098 \begin_layout Standard
19099 CVSコマンド:
19100 \family typewriter
19101 cvs -q edit "<ファイル名>"
19102 \end_layout
19103
19104 \begin_layout Subsubsection
19105 レポジトリ版に戻す
19106 \end_layout
19107
19108 \begin_layout Standard
19109 これは,最後のチェックイン以降,文書に加えられた変更をすべて廃棄します.変更が廃棄される前に警告が表示されます.最初にファイルが削除され,次にCVS更新コマンド
19110 が実行されます.
19111 \end_layout
19112
19113 \begin_layout Standard
19114 CVSコマンド:
19115 \family typewriter
19116 cvs -q update "<ファイル名>"
19117 \end_layout
19118
19119 \begin_layout Standard
19120 予備付きチェックアウトが検出され,作業コピーに変更がない場合,予備のみが取り消されます.
19121 \end_layout
19122
19123 \begin_layout Standard
19124 CVSコマンド:
19125 \family typewriter
19126 cvs -q unedit "<ファイル名>"
19127 \end_layout
19128
19129 \begin_layout Subsubsection
19130
19131 \family sans
19132 コピー
19133 \end_layout
19134
19135 \begin_layout Standard
19136 これは,現行文書のコピーを生成します.CVSは,コピー操作を自前ではサポートしませんので,バージョン履歴には保存されず,新コピーは新規ファイルとして追加されます
19137 .最後のチェックイン以降,変更が加えられていないサラの文書であることが要求されます.ファイル名とコピー操作の説明を入力するように促され,その後,新コピーがローカ
19138 ルとリポジトリの両方に生成されます.コピーされた文書と元の文書の親ディレクトリが異なる場合には,コピーにインクルードされたファイルの相対パスは,(
19139 \family sans
19140 ファイル\SpecialChar menuseparator
19141 名前をつけて保存\SpecialChar ldots
19142
19143 \family default
19144 と同様に)全て調整されます.最後に,元の文書の代わりに,コピーされたファイルが読み込まれます.
19145 \end_layout
19146
19147 \begin_layout Labeling
19148 \labelwidthstring 00.00.0000
19149 CVSコマンド: 
19150 \begin_inset space ~
19151 \end_inset
19152
19153
19154 \begin_inset Newline newline
19155 \end_inset
19156
19157
19158 \begin_inset Flex Code
19159 status collapsed
19160
19161 \begin_layout Plain Layout
19162 "<ファイル名>"
19163 \end_layout
19164
19165 \end_inset
19166
19167
19168 \begin_inset Flex Code
19169 status collapsed
19170
19171 \begin_layout Plain Layout
19172 "<新ファイル名>"
19173 \end_layout
19174
19175 \end_inset
19176
19177 にコピーする場合
19178 \begin_inset Newline newline
19179 \end_inset
19180
19181
19182 \begin_inset Flex Code
19183 status collapsed
19184
19185 \begin_layout Plain Layout
19186 cvs -q add "<新ファイル名>"
19187 \end_layout
19188
19189 \end_inset
19190
19191
19192 \end_layout
19193
19194 \begin_layout Subsubsection
19195 ファイル名変更
19196 \end_layout
19197
19198 \begin_layout Standard
19199 これは,現行文書のファイル名を変更します.CVSは,ファイル名変更操作を自前ではサポートしませんので,バージョン履歴には保存されず,名称変更後のファイルは,新規
19200 ファイルとして追加されます.最後のチェックイン以降,変更が加えられていないサラの文書であることが要求されます.ファイル名とコピー操作の説明を入力するように促され
19201 ,その後,ローカルとリポジトリの両方でファイル名が変更されます.新旧ファイル名の文書の親ディレクトリが異なる場合には,コピーにインクルードされたファイルの相対パ
19202 スは,(
19203 \family sans
19204 ファイル\SpecialChar menuseparator
19205 名前をつけて保存\SpecialChar ldots
19206
19207 \family default
19208 と同様に)全て調整されます.最後に,新ファイル名を使ってファイルが再度読み込まれます.
19209 \end_layout
19210
19211 \begin_layout Labeling
19212 \labelwidthstring 00.00.0000
19213 CVSコマンド: 
19214 \begin_inset space ~
19215 \end_inset
19216
19217
19218 \begin_inset Newline newline
19219 \end_inset
19220
19221
19222 \begin_inset Flex Code
19223 status collapsed
19224
19225 \begin_layout Plain Layout
19226 "<ファイル名>"
19227 \end_layout
19228
19229 \end_inset
19230
19231
19232 \begin_inset Flex Code
19233 status collapsed
19234
19235 \begin_layout Plain Layout
19236 "<新ファイル名>"
19237 \end_layout
19238
19239 \end_inset
19240
19241 に変更する場合 
19242 \begin_inset space ~
19243 \end_inset
19244
19245
19246 \begin_inset Newline newline
19247 \end_inset
19248
19249
19250 \begin_inset Flex Code
19251 status collapsed
19252
19253 \begin_layout Plain Layout
19254 cvs -q add "<新ファイル名>"
19255 \end_layout
19256
19257 \end_inset
19258
19259  
19260 \begin_inset space ~
19261 \end_inset
19262
19263
19264 \begin_inset Newline newline
19265 \end_inset
19266
19267
19268 \begin_inset Flex Code
19269 status collapsed
19270
19271 \begin_layout Plain Layout
19272 cvs -q remove "<ファイル名>"
19273 \end_layout
19274
19275 \end_inset
19276
19277
19278 \end_layout
19279
19280 \begin_layout Subsubsection
19281 ローカルディレクトリチェックアウトのレポジトリからの更新
19282 \end_layout
19283
19284 \begin_layout Standard
19285 子文書や図を含んだり,外部
19286 \begin_inset Flex Code
19287 status collapsed
19288
19289 \begin_layout Plain Layout
19290 .tex
19291 \end_layout
19292
19293 \end_inset
19294
19295 ファイルを取り込むなど,文書が複雑になるにつれ,バージョン管理の利用は複雑になります.\SpecialChar LyX
19296 は,文書が存在するツリー全体の更新をサポートします.これは,CVSの使用法
19297 について詳しい知識のない人々や,レポジトリに追加素材をコミットする野望のない人々と共同作業をするような場合に,特に便利です.ファイル構造は,すべての外部ファイル
19298 が,文書と同じディレクトリかそのサブディレクトリに来るように組織する必要があります.いずれにしても,複合文書を新しいディレクトリを建てて収容するのは,望ましい習
19299 慣です.
19300 \end_layout
19301
19302 \begin_layout Standard
19303 コマンド
19304 \begin_inset Flex Code
19305 status collapsed
19306
19307 \begin_layout Plain Layout
19308 レポジトリを使ってローカル辞書を更新
19309 \end_layout
19310
19311 \end_inset
19312
19313 は,ディレクトリ全体を更新します.ローカルの変更が検出された場合には,更新を開始する前にユーザーに警告が発せられます.マージコンフリクトが発生した場合には,コン
19314 フリクトを起こしている部分の新旧バージョンが,両方とも最終文書に置かれますので,マージの結果を見直し,修正する必要があります.コンフリクトは,
19315 \begin_inset Flex Code
19316 status collapsed
19317
19318 \begin_layout Plain Layout
19319 <<<<<<<
19320 \end_layout
19321
19322 \end_inset
19323
19324
19325 \begin_inset Flex Code
19326 status collapsed
19327
19328 \begin_layout Plain Layout
19329 >>>>>>>
19330 \end_layout
19331
19332 \end_inset
19333
19334 の対に囲まれ,
19335 \begin_inset Flex Code
19336 status collapsed
19337
19338 \begin_layout Plain Layout
19339 =======
19340 \end_layout
19341
19342 \end_inset
19343
19344 で区切られて表示されます.最初の部分は,文書名に続いて,更新操作前のバージョンが置かれています.第2の部分は,
19345 \begin_inset Flex Code
19346 status collapsed
19347
19348 \begin_layout Plain Layout
19349 >
19350 \end_layout
19351
19352 \end_inset
19353
19354 記号列の後にバージョン番号に続いて,レポジトリ版が置かれます.
19355 \end_layout
19356
19357 \begin_layout Labeling
19358 \labelwidthstring 00.00.0000
19359 CVSコマンド: 
19360 \begin_inset space ~
19361 \end_inset
19362
19363
19364 \begin_inset Newline newline
19365 \end_inset
19366
19367
19368 \begin_inset Flex Code
19369 status collapsed
19370
19371 \begin_layout Plain Layout
19372 cd $path; cvs diff "."
19373 \end_layout
19374
19375 \end_inset
19376
19377 (変更が検出された場合には知らせる)
19378 \begin_inset Newline newline
19379 \end_inset
19380
19381
19382 \begin_inset Flex Code
19383 status collapsed
19384
19385 \begin_layout Plain Layout
19386 cd $path; cvs -q update "."
19387 \end_layout
19388
19389 \end_inset
19390
19391
19392 \end_layout
19393
19394 \begin_layout Standard
19395 ここで
19396 \begin_inset Flex Code
19397 status collapsed
19398
19399 \begin_layout Plain Layout
19400 $path
19401 \end_layout
19402
19403 \end_inset
19404
19405 は文書パスを表します.
19406 \end_layout
19407
19408 \begin_layout Subsubsection
19409 履歴を表示
19410 \end_layout
19411
19412 \begin_layout Standard
19413 これは,CVS文書の全履歴を表示します.
19414 \begin_inset Flex Code
19415 status collapsed
19416
19417 \begin_layout Plain Layout
19418 cvs log 
19419 \begin_inset Quotes eld
19420 \end_inset
19421
19422 <ファイル名>
19423 \begin_inset Quotes erd
19424 \end_inset
19425
19426
19427 \end_layout
19428
19429 \end_inset
19430
19431 の出力がブラウザに表示されます.
19432 \end_layout
19433
19434 \begin_layout Subsubsection
19435 改訂情報
19436 \end_layout
19437
19438 \begin_layout Standard
19439 \SpecialChar LyX
19440 は,CVS版数・著者名・最終コミットの日時をサポートします.これらの情報は,すべて
19441 \family typewriter
19442 cvs log -r <ファイル名>
19443 \family default
19444 によって抽出されます.詳細については,第
19445 \begin_inset CommandInset ref
19446 LatexCommand ref
19447 reference "subsec:VCS改訂情報"
19448
19449 \end_inset
19450
19451 節を参照してください.
19452 \end_layout
19453
19454 \begin_layout Subsection
19455 \SpecialChar LyX
19456 におけるSVNコマンド
19457 \end_layout
19458
19459 \begin_layout Standard
19460 \SpecialChar LyX
19461 は,現在SVNを一部サポートしています.そのコマンドは,
19462 \begin_inset Flex MenuItem
19463 status collapsed
19464
19465 \begin_layout Plain Layout
19466 ファイル\SpecialChar menuseparator
19467 バージョン管理
19468 \end_layout
19469
19470 \end_inset
19471
19472 メニューにあります.レポジトリへのアクセスに,ssh経由のパスワード保護アクセスを使用している場合には,端末ウィンドウでの入力を促されます.\SpecialChar LyX
19473 は,SVN
19474  1.5・1.6・1.7・1.8に対して試験されています
19475 \begin_inset Foot
19476 status collapsed
19477
19478 \begin_layout Plain Layout
19479 ほとんどのコマンドは,1.4でも動作します.
19480 \begin_inset CommandInset ref
19481 LatexCommand ref
19482 reference "subsec:レポジトリからSVN同期"
19483 plural "false"
19484 caps "false"
19485 noprefix "false"
19486
19487 \end_inset
19488
19489 を参照してください.SVN 1.8では,ファイルがロックされている時にパーミッション変更点を戻してしまうという現時点では未解決の問題が存在しています.
19490 \end_layout
19491
19492 \end_inset
19493
19494
19495 \end_layout
19496
19497 \begin_layout Subsubsection
19498 登録
19499 \end_layout
19500
19501 \begin_layout Standard
19502 お使いの文書が改訂管理下に置かれていなければ,メニューにはこの項目だけが表示されます.もし改訂管理が有効ならば,
19503 \family sans
19504 登録
19505 \family default
19506 項目は表示されません.
19507 \end_layout
19508
19509 \begin_layout Standard
19510 本コマンドは,既に文書のあるディレクトリをSVN管理下に置いている場合に
19511 \emph on
19512 のみ
19513 \emph default
19514 (すなわち
19515 \begin_inset Flex Code
19516 status collapsed
19517
19518 \begin_layout Plain Layout
19519 .svn/entries
19520 \end_layout
19521
19522 \end_inset
19523
19524 ファイルが存在する場合にのみ),お使いの文書をSVNに登録します.つまり,アーカイブはご自分でチェックアウトしなくてはなりません.
19525 \end_layout
19526
19527 \begin_layout Standard
19528 すると,文書の最初の説明文を入力するように促されます.登録したファイルは,まだコミットされたわけではないことに注意してください.
19529 \end_layout
19530
19531 \begin_layout Standard
19532 実行されるSVNコマンドは,
19533 \begin_inset Flex Code
19534 status collapsed
19535
19536 \begin_layout Plain Layout
19537 svn add -q 
19538 \begin_inset Quotes qld
19539 \end_inset
19540
19541 <ファイル名>
19542 \begin_inset Quotes qld
19543 \end_inset
19544
19545
19546 \end_layout
19547
19548 \end_inset
19549
19550 です.
19551 \end_layout
19552
19553 \begin_layout Standard
19554 スイッチの説明は
19555 \begin_inset Flex Code
19556 status collapsed
19557
19558 \begin_layout Plain Layout
19559 man svn
19560 \end_layout
19561
19562 \end_inset
19563
19564 をお読みください.
19565 \end_layout
19566
19567 \begin_layout Subsubsection
19568 変更をチェックイン
19569 \end_layout
19570
19571 \begin_layout Standard
19572 ファイルの編集を終えたら,変更をコミットします.このとき,変更の説明文を入れるよう促されます.その後,変更がコミットされます.
19573 \end_layout
19574
19575 \begin_layout Standard
19576 SVNコマンド
19577 \begin_inset Foot
19578 status collapsed
19579
19580 \begin_layout Plain Layout
19581 ロックが有効になっていない場合です.第
19582 \begin_inset CommandInset ref
19583 LatexCommand ref
19584 reference "subsec:SVNファイルロック"
19585
19586 \end_inset
19587
19588 節をご覧ください.
19589 \end_layout
19590
19591 \end_inset
19592
19593
19594 \begin_inset Flex Code
19595 status collapsed
19596
19597 \begin_layout Plain Layout
19598 svn commit -q -m"<入力した説明文>" "<ファイル名>"
19599 \end_layout
19600
19601 \end_inset
19602
19603
19604 \end_layout
19605
19606 \begin_layout Subsubsection
19607 チェックアウトして編集
19608 \end_layout
19609
19610 \begin_layout Standard
19611 このファイルの変更点をレポジトリから取得して更新します.すべての干渉点は,手動で解決しなくてはならないので,この機能を使う前にSVNのマージ法と干渉解決法を理解
19612 しておくようにしてください.
19613 \end_layout
19614
19615 \begin_layout Standard
19616 SVNコマンド
19617 \begin_inset Foot
19618 status collapsed
19619
19620 \begin_layout Plain Layout
19621 同上.
19622 \end_layout
19623
19624 \end_inset
19625
19626
19627 \begin_inset Flex Code
19628 status collapsed
19629
19630 \begin_layout Plain Layout
19631 svn update –non-interactive 
19632 \begin_inset Quotes qld
19633 \end_inset
19634
19635 <ファイル名>
19636 \begin_inset Quotes qld
19637 \end_inset
19638
19639
19640 \end_layout
19641
19642 \end_inset
19643
19644
19645 \end_layout
19646
19647 \begin_layout Subsubsection
19648 リポジトリ版に戻す
19649 \end_layout
19650
19651 \begin_layout Standard
19652 これは,最後のチェックイン以降,文書に加えられた変更をすべて廃棄します.変更が廃棄される前に警告が表示されます.
19653 \end_layout
19654
19655 \begin_layout Standard
19656 SVNコマンド:
19657 \begin_inset Flex Code
19658 status collapsed
19659
19660 \begin_layout Plain Layout
19661 svn revert -q 
19662 \begin_inset Quotes qld
19663 \end_inset
19664
19665 <ファイル名>
19666 \begin_inset Quotes qld
19667 \end_inset
19668
19669
19670 \end_layout
19671
19672 \end_inset
19673
19674
19675 \end_layout
19676
19677 \begin_layout Subsubsection
19678
19679 \family sans
19680 コピー
19681 \end_layout
19682
19683 \begin_layout Standard
19684 これは,現行文書のコピーを生成します.最後のチェックイン以降,変更が加えられていないサラの文書であることが要求されます.ファイル名とコピー操作の説明を入力するよ
19685 うに促され,その後,新コピーがローカルとリポジトリの両方に生成されます.コピーされた文書と元の文書の親ディレクトリが異なる場合には,コピーにインクルードされたフ
19686 ァイルの相対パスは,(
19687 \family sans
19688 ファイル\SpecialChar menuseparator
19689 名前をつけて保存\SpecialChar ldots
19690
19691 \family default
19692 と同様に)全て調整されます.最後に,元の文書の代わりに,コピーされたファイルが読み込まれます.
19693 \end_layout
19694
19695 \begin_layout Labeling
19696 \labelwidthstring 00.00.0000
19697 SVNコマンド:
19698 \change_inserted -1196488707 1503192295
19699  
19700 \change_unchanged
19701
19702 \begin_inset space ~
19703 \end_inset
19704
19705
19706 \begin_inset Newline newline
19707 \end_inset
19708
19709
19710 \begin_inset Flex Code
19711 status collapsed
19712
19713 \begin_layout Plain Layout
19714 svn copy -q "<ファイル名>" "<新ファイル名>"
19715 \end_layout
19716
19717 \end_inset
19718
19719
19720 \begin_inset space ~
19721 \end_inset
19722
19723
19724 \begin_inset Newline newline
19725 \end_inset
19726
19727
19728 \begin_inset Flex Code
19729 status collapsed
19730
19731 \begin_layout Plain Layout
19732 svn commit
19733 \end_layout
19734
19735 \end_inset
19736
19737
19738 \end_layout
19739
19740 \begin_layout Subsubsection
19741 ファイル名変更
19742 \end_layout
19743
19744 \begin_layout Standard
19745 これは,現行文書のファイル名を変更します.最後のチェックイン以降,変更が加えられていないサラの文書であることが要求されます.ファイル名とコピー操作の説明を入力す
19746 るように促され,その後,ローカルとリポジトリの両方でファイル名が変更されます.新旧ファイル名の文書の親ディレクトリが異なる場合には,コピーにインクルードされたフ
19747 ァイルの相対パスは,(
19748 \family sans
19749 ファイル\SpecialChar menuseparator
19750 名前をつけて保存\SpecialChar ldots
19751
19752 \family default
19753 と同様に)全て調整されます.最後に,新ファイル名を使ってファイルが再度読み込まれます.
19754 \end_layout
19755
19756 \begin_layout Labeling
19757 \labelwidthstring 00.00.0000
19758 SVNコマンド:
19759 \change_inserted -1196488707 1503192262
19760  
19761 \change_unchanged
19762
19763 \begin_inset space ~
19764 \end_inset
19765
19766
19767 \begin_inset Newline newline
19768 \end_inset
19769
19770
19771 \begin_inset Flex Code
19772 status collapsed
19773
19774 \begin_layout Plain Layout
19775 svn move -q add "<ファイル名>" "<新ファイル名>"
19776 \end_layout
19777
19778 \end_inset
19779
19780
19781 \begin_inset Newline newline
19782 \end_inset
19783
19784
19785 \begin_inset Flex Code
19786 status collapsed
19787
19788 \begin_layout Plain Layout
19789 svn commit
19790 \end_layout
19791
19792 \end_inset
19793
19794
19795 \end_layout
19796
19797 \begin_layout Subsubsection
19798 \begin_inset CommandInset label
19799 LatexCommand label
19800 name "subsec:レポジトリからSVN同期"
19801
19802 \end_inset
19803
19804 レポジトリを使ったローカルディレクトリの同期
19805 \begin_inset Foot
19806 status collapsed
19807
19808 \begin_layout Plain Layout
19809 このコマンドは,subversion 
19810 \begin_inset Formula $\geqq1.5$
19811 \end_inset
19812
19813 でのみ動作することに注意してください.
19814 \end_layout
19815
19816 \end_inset
19817
19818
19819 \end_layout
19820
19821 \begin_layout Standard
19822 上記の各コマンドはすべて,共通の短所を持っています.すなわち,これらのコマンドは現在の文書しか取り扱わないのです.もし,作業中の文書に図を含めたり,外部
19823 \begin_inset Flex Code
19824 status collapsed
19825
19826 \begin_layout Plain Layout
19827 .tex
19828 \end_layout
19829
19830 \end_inset
19831
19832 ファイルを取り込んだりすれば,管理はずっと複雑になります.そこで\SpecialChar LyX
19833 は,文書のおいてあるツリー全体の更新をサポートします
19834 \begin_inset Foot
19835 status collapsed
19836
19837 \begin_layout Plain Layout
19838 すべての外部ファイルが,文書と同じディレクトリかそれ以下のサブディレクトリに来るようにファイル構造を構成する必要があります.
19839 \end_layout
19840
19841 \end_inset
19842
19843 .これは,subversion管理を知らなかったりレポジトリに新しい素材をコミットする勇気のない人たちと共同作業をする羽目になったときに,ひじょうに役に立ちます
19844
19845 \end_layout
19846
19847 \begin_layout Standard
19848 \begin_inset Flex Code
19849 status collapsed
19850
19851 \begin_layout Plain Layout
19852 ローカル辞書をレポジトリを使って更新
19853 \end_layout
19854
19855 \end_inset
19856
19857 コマンドは,ディレクトリ全体を更新し,マージに衝突が発生した場合には,ローカル版は保存されるので,意図しないデータロスが発生しません.ローカルな変更が発見された
19858 場合には,更新が開始される前にユーザに警告が与えられます.
19859 \end_layout
19860
19861 \begin_layout Labeling
19862 \labelwidthstring 00.00.0000
19863 SVNコマンド: 
19864 \begin_inset space ~
19865 \end_inset
19866
19867
19868 \begin_inset Newline newline
19869 \end_inset
19870
19871
19872 \begin_inset Flex Code
19873 status collapsed
19874
19875 \begin_layout Plain Layout
19876 svn diff $path(変更が発見された場合には通知します)
19877 \begin_inset Newline newline
19878 \end_inset
19879
19880 svn update –accept mine-full $path
19881 \end_layout
19882
19883 \end_inset
19884
19885
19886 \end_layout
19887
19888 \begin_layout Standard
19889 ここで
19890 \begin_inset Flex Code
19891 status collapsed
19892
19893 \begin_layout Plain Layout
19894 $path
19895 \end_layout
19896
19897 \end_inset
19898
19899 は文書のパスを示します.
19900 \end_layout
19901
19902 \begin_layout Subsubsection
19903 履歴を表示
19904 \end_layout
19905
19906 \begin_layout Standard
19907 これは,SVN文書の全履歴を表示します.
19908 \begin_inset Flex Code
19909 status collapsed
19910
19911 \begin_layout Plain Layout
19912 svn log 
19913 \begin_inset Quotes qld
19914 \end_inset
19915
19916 <ファイル名>
19917 \begin_inset Quotes qld
19918 \end_inset
19919
19920
19921 \end_layout
19922
19923 \end_inset
19924
19925 の出力がブラウザに表示されます.
19926 \end_layout
19927
19928 \begin_layout Subsubsection
19929 ファイルロック
19930 \begin_inset CommandInset label
19931 LatexCommand label
19932 name "subsec:SVNファイルロック"
19933
19934 \end_inset
19935
19936
19937 \end_layout
19938
19939 \begin_layout Standard
19940 別々の改訂管理システム間でファイルを交換しようとすると,二人のユーザが同じ文書(の一部)を編集している場合,マージが衝突する問題を引き起こします.そのような衝突
19941 が発生した場合,手動で解決しなくてはならなくなりますが,その合理的な解決法としては,与えられた時間に一人のユーザだけがファイルを編集することが許されるように保証
19942 するための,何らかのロック機構を導入することが考えられます.
19943 \end_layout
19944
19945 \begin_layout Standard
19946 SVNには,このように相互に排他的なファイルアクセスを提供する機構が二つあります.ロックと,
19947 \begin_inset Flex Code
19948 status collapsed
19949
19950 \begin_layout Plain Layout
19951 svn:needs-lock
19952 \end_layout
19953
19954 \end_inset
19955
19956 svnファイル特性に依拠した書き込み権限の自動設定(第
19957 \begin_inset CommandInset ref
19958 LatexCommand ref
19959 reference "subsec:自動ロック特性"
19960
19961 \end_inset
19962
19963 節を参照)です
19964 \begin_inset Foot
19965 status collapsed
19966
19967 \begin_layout Plain Layout
19968 \begin_inset Flex URL
19969 status open
19970
19971 \begin_layout Plain Layout
19972
19973 http://svnbook.red-bean.com/en/1.2/svn.advanced.locking.html
19974 \end_layout
19975
19976 \end_inset
19977
19978
19979 \end_layout
19980
19981 \end_inset
19982
19983 .ある文書について,この特性が検出されたときには,\SpecialChar LyX
19984 は自動的に文書編集にSVNロックを使用するようになり,チェックイン・チェックアウト機構はRCSと同じ枠組みに切
19985 り替わります.これは特に,\SpecialChar LyX
19986 でのファイルの使われ方に以下の二つのモードがあることを意味します.
19987 \end_layout
19988
19989 \begin_layout Itemize
19990 非ロック状態.読み込まれたファイルは,読み込み専用モードになります.編集するためには,チェックアウトする必要があります.
19991 \emph on
19992 チェックアウト
19993 \emph default
19994 を行うと,レポジトリからの更新と,書き込みロックの獲得が行われます.ロックの獲得ができないと,非ロック状態から出ることができません.
19995 \end_layout
19996
19997 \begin_layout Itemize
19998 ロック状態.読み込まれたファイルは,「通常の」編集モードになります.他のユーザには,このファイルを編集する許可が与えられません.
19999 \emph on
20000 チェックイン
20001 \emph default
20002 を行うと,変更のコミットと書き込みロックの解放が行われます.文書に変更が加えられなかった場合には,コミットは実行されず
20003 \begin_inset Foot
20004 status collapsed
20005
20006 \begin_layout Plain Layout
20007 コミットは実行されないのに,コミットメッセージを入力するよう促されますが,驚かないでください.
20008 \end_layout
20009
20010 \end_inset
20011
20012 ,書き込みロックの解放のみが行われます.
20013 \end_layout
20014
20015 \begin_layout Standard
20016 SVNコマンド:
20017 \end_layout
20018
20019 \begin_layout Labeling
20020 \labelwidthstring 00.00.0000
20021 チェックイン: 
20022 \begin_inset Flex Code
20023 status collapsed
20024
20025 \begin_layout Plain Layout
20026 svn commit -q -m
20027 \begin_inset Quotes erd
20028 \end_inset
20029
20030 <説明>
20031 \begin_inset Quotes erd
20032 \end_inset
20033
20034  
20035 \begin_inset Quotes eld
20036 \end_inset
20037
20038 <ファイル名>
20039 \begin_inset Quotes erd
20040 \end_inset
20041
20042
20043 \end_layout
20044
20045 \end_inset
20046
20047
20048 \begin_inset Newline newline
20049 \end_inset
20050
20051
20052 \begin_inset Flex Code
20053 status collapsed
20054
20055 \begin_layout Plain Layout
20056 svn unlock 
20057 \begin_inset Quotes eld
20058 \end_inset
20059
20060 <ファイル名>
20061 \begin_inset Quotes erd
20062 \end_inset
20063
20064
20065 \end_layout
20066
20067 \end_inset
20068
20069
20070 \end_layout
20071
20072 \begin_layout Labeling
20073 \labelwidthstring 00.00.0000
20074 チェックアウト: 
20075 \begin_inset Flex Code
20076 status collapsed
20077
20078 \begin_layout Plain Layout
20079 svn update 
20080 \begin_inset Quotes eld
20081 \end_inset
20082
20083 <ファイル名>
20084 \begin_inset Quotes erd
20085 \end_inset
20086
20087
20088 \end_layout
20089
20090 \end_inset
20091
20092
20093 \begin_inset Newline newline
20094 \end_inset
20095
20096
20097 \begin_inset Flex Code
20098 status collapsed
20099
20100 \begin_layout Plain Layout
20101 svn unlock 
20102 \begin_inset Quotes eld
20103 \end_inset
20104
20105 <ファイル名>
20106 \begin_inset Quotes erd
20107 \end_inset
20108
20109
20110 \end_layout
20111
20112 \end_inset
20113
20114
20115 \end_layout
20116
20117 \begin_layout Subsubsection
20118 自動ロック特性
20119 \begin_inset CommandInset label
20120 LatexCommand label
20121 name "subsec:自動ロック特性"
20122
20123 \end_inset
20124
20125
20126 \end_layout
20127
20128 \begin_layout Standard
20129 上述したような
20130 \begin_inset Flex Code
20131 status collapsed
20132
20133 \begin_layout Plain Layout
20134 .lyx
20135 \end_layout
20136
20137 \end_inset
20138
20139 ファイルに対する書き込み権限の自動設定は,
20140 \begin_inset Flex MenuItem
20141 status collapsed
20142
20143 \begin_layout Plain Layout
20144 ファイル\SpecialChar menuseparator
20145 バージョン管理\SpecialChar menuseparator
20146 ロック特性を使用
20147 \end_layout
20148
20149 \end_inset
20150
20151 で行うことができます.このコマンドは,SVNサーバでファイルがロックされていないときのみ使用可能状態になります(つまり,使用するにはチェックアウトが必要です).
20152 \end_layout
20153
20154 \begin_layout Standard
20155 SVNコマンド:
20156 \end_layout
20157
20158 \begin_layout Labeling
20159 \labelwidthstring 00.00.0000
20160 チェックイン: 
20161 \begin_inset Flex Code
20162 status collapsed
20163
20164 \begin_layout Plain Layout
20165 svn propset svn:needs-lock ON 
20166 \begin_inset Quotes eld
20167 \end_inset
20168
20169 <ファイル名>
20170 \begin_inset Quotes erd
20171 \end_inset
20172
20173
20174 \end_layout
20175
20176 \end_inset
20177
20178
20179 \end_layout
20180
20181 \begin_layout Labeling
20182 \labelwidthstring 00.00.0000
20183 チェックアウト: 
20184 \begin_inset Flex Code
20185 status collapsed
20186
20187 \begin_layout Plain Layout
20188 svn propdel svn:needs-lock 
20189 \begin_inset Quotes eld
20190 \end_inset
20191
20192 <ファイル名>
20193 \begin_inset Quotes erd
20194 \end_inset
20195
20196
20197 \end_layout
20198
20199 \end_inset
20200
20201
20202 \end_layout
20203
20204 \begin_layout Subsubsection
20205 \begin_inset CommandInset label
20206 LatexCommand label
20207 name "subsec:VCS改訂情報"
20208
20209 \end_inset
20210
20211 文書の改訂情報
20212 \end_layout
20213
20214 \begin_layout Standard
20215 文書中で改訂情報を有効化するにはいくつかの方法があります.
20216 \end_layout
20217
20218 \begin_layout Itemize
20219 \SpecialChar LyX
20220 による直接サポート
20221 \end_layout
20222
20223 \begin_deeper
20224 \begin_layout Itemize
20225 ツリー改訂情報(
20226 \begin_inset Flex Code
20227 status collapsed
20228
20229 \begin_layout Plain Layout
20230 vcs-tree-revision
20231 \end_layout
20232
20233 \end_inset
20234
20235 ).
20236 \begin_inset Flex Code
20237 status collapsed
20238
20239 \begin_layout Plain Layout
20240 svnversion
20241 \end_layout
20242
20243 \end_inset
20244
20245 コマンドの出力を返します.下記の表が,結果の読み方のヒントを与えるでしょう.
20246 \end_layout
20247
20248 \begin_layout Standard
20249 \align center
20250 \begin_inset Tabular
20251 <lyxtabular version="3" rows="6" columns="2">
20252 <features tabularvalignment="middle">
20253 <column alignment="center" valignment="top">
20254 <column alignment="center" valignment="top">
20255 <row>
20256 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
20257 \begin_inset Text
20258
20259 \begin_layout Plain Layout
20260 出力
20261 \end_layout
20262
20263 \end_inset
20264 </cell>
20265 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
20266 \begin_inset Text
20267
20268 \begin_layout Plain Layout
20269 意味
20270 \end_layout
20271
20272 \end_inset
20273 </cell>
20274 </row>
20275 <row>
20276 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20277 \begin_inset Text
20278
20279 \begin_layout Plain Layout
20280 4123:4168
20281 \end_layout
20282
20283 \end_inset
20284 </cell>
20285 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20286 \begin_inset Text
20287
20288 \begin_layout Plain Layout
20289 改訂版の混合した作業コピー
20290 \end_layout
20291
20292 \end_inset
20293 </cell>
20294 </row>
20295 <row>
20296 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20297 \begin_inset Text
20298
20299 \begin_layout Plain Layout
20300 4168M
20301 \end_layout
20302
20303 \end_inset
20304 </cell>
20305 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20306 \begin_inset Text
20307
20308 \begin_layout Plain Layout
20309 修正された作業コピー
20310 \end_layout
20311
20312 \end_inset
20313 </cell>
20314 </row>
20315 <row>
20316 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20317 \begin_inset Text
20318
20319 \begin_layout Plain Layout
20320 4123S
20321 \end_layout
20322
20323 \end_inset
20324 </cell>
20325 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20326 \begin_inset Text
20327
20328 \begin_layout Plain Layout
20329 スイッチされた作業コピー
20330 \end_layout
20331
20332 \end_inset
20333 </cell>
20334 </row>
20335 <row>
20336 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20337 \begin_inset Text
20338
20339 \begin_layout Plain Layout
20340 4123P
20341 \end_layout
20342
20343 \end_inset
20344 </cell>
20345 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20346 \begin_inset Text
20347
20348 \begin_layout Plain Layout
20349 チェックアウト頻度が低かったことによる不完全な作業コピー
20350 \end_layout
20351
20352 \end_inset
20353 </cell>
20354 </row>
20355 <row>
20356 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
20357 \begin_inset Text
20358
20359 \begin_layout Plain Layout
20360 4123:4168MS
20361 \end_layout
20362
20363 \end_inset
20364 </cell>
20365 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
20366 \begin_inset Text
20367
20368 \begin_layout Plain Layout
20369 改訂版が混合し,修正され,スイッチされた作業コピー
20370 \end_layout
20371
20372 \end_inset
20373 </cell>
20374 </row>
20375 </lyxtabular>
20376
20377 \end_inset
20378
20379
20380 \end_layout
20381
20382 \begin_layout Itemize
20383 ファイル改訂情報.
20384 \begin_inset Flex Code
20385 status collapsed
20386
20387 \begin_layout Plain Layout
20388 svn
20389 \begin_inset space ~
20390 \end_inset
20391
20392 info
20393 \begin_inset space ~
20394 \end_inset
20395
20396 –xml
20397 \begin_inset space ~
20398 \end_inset
20399
20400 file.lyx
20401 \end_layout
20402
20403 \end_inset
20404
20405 の出力を解析したものが返されます.サポートされるフラグは
20406 \end_layout
20407
20408 \begin_deeper
20409 \begin_layout Itemize
20410 最終コミットのバージョン番号(
20411 \begin_inset Flex Code
20412 status collapsed
20413
20414 \begin_layout Plain Layout
20415 vcs-revision
20416 \end_layout
20417
20418 \end_inset
20419
20420
20421 \end_layout
20422
20423 \begin_layout Itemize
20424 最終コミットの著者(
20425 \begin_inset Flex Code
20426 status collapsed
20427
20428 \begin_layout Plain Layout
20429 vcs-author
20430 \end_layout
20431
20432 \end_inset
20433
20434
20435 \end_layout
20436
20437 \begin_layout Itemize
20438 最終コミットの日付(
20439 \begin_inset Flex Code
20440 status collapsed
20441
20442 \begin_layout Plain Layout
20443 vcs-date
20444 \end_layout
20445
20446 \end_inset
20447
20448
20449 \end_layout
20450
20451 \begin_layout Itemize
20452 最終コミットの時間(
20453 \begin_inset Flex Code
20454 status collapsed
20455
20456 \begin_layout Plain Layout
20457 vcs-time
20458 \end_layout
20459
20460 \end_inset
20461
20462
20463 \end_layout
20464
20465 \end_deeper
20466 \begin_layout Standard
20467 これらの情報は,情報差込枠で得ることができます(例:
20468 \begin_inset Flex Code
20469 status collapsed
20470
20471 \begin_layout Plain Layout
20472 info-insert buffer vcs-date
20473 \end_layout
20474
20475 \end_inset
20476
20477 ).これらの情報は,ファイルをsvn管理下に置いたときのみ(すなわち使用中文書の
20478 \begin_inset Flex Code
20479 status collapsed
20480
20481 \begin_layout Plain Layout
20482 .svn
20483 \end_layout
20484
20485 \end_inset
20486
20487 ディレクトリがあるときのみ)利用可能です.
20488 \end_layout
20489
20490 \end_deeper
20491 \begin_layout Itemize
20492 もう一つの—ハッカー的な—方法は,SVNキーワードを使用する方法です
20493 \begin_inset Foot
20494 status collapsed
20495
20496 \begin_layout Plain Layout
20497 http://svnbook.red-bean.com/en/1.4/svn.advanced.props.special.keywords.html
20498 \end_layout
20499
20500 \end_inset
20501
20502 .簡単に言えば,ファイルキーワード特性を設定して(例:
20503 \family sans
20504 svn propset svn:keywords 'Rev' file.lyx
20505 \family default
20506 ),文書中にキーワード\SpecialChar TeX
20507 コード
20508 \begin_inset Foot
20509 status collapsed
20510
20511 \begin_layout Plain Layout
20512 これは,\SpecialChar LyX
20513 がキーワードタグの途中で改行してしまわないことを確実にするための,簡単な方法です.
20514 \end_layout
20515
20516 \end_inset
20517
20518 タグ(例:
20519 \begin_inset Flex Code
20520 status collapsed
20521
20522 \begin_layout Plain Layout
20523 $Rev$
20524 \end_layout
20525
20526 \end_inset
20527
20528 )を貼り付けるのです.このようにして,SVNクライアントは,各更新やコミットの後に自動的に改訂番号を代入することができるのです(例:
20529 \begin_inset Flex Code
20530 status collapsed
20531
20532 \begin_layout Plain Layout
20533 $Rev: 59 $
20534 \end_layout
20535
20536 \end_inset
20537
20538 ).このアプローチにはいくつか問題があります.第一に,\SpecialChar TeX
20539 の世界では「$」文字は数式を表すのに使われるので,\SpecialChar LyX
20540 中の
20541 \begin_inset Formula $Rev$
20542 \end_inset
20543
20544 という数式表現が,すべて
20545 \begin_inset Formula $Rev:59$
20546 \end_inset
20547
20548 になってしまいます.その他のId・Date・Authorなどといったキーワードも同様です.第二に,SVN出力は使用中のロケールに依存するので,Dateが用いられ
20549 ると,SVNは,問題を引き起こすような文字列を容易に生成してしまいます.第三に,文書中には,番号だけでなく「Rev: 59」という文字列全体が表示されてしまいま
20550 す.Subversionがユーザ定義のキーワードを実装するまでは,このアプローチを信頼性を持って使用したり,\SpecialChar LyX
20551 がこれを直接サポートすることは,難しそうです.
20552 \end_layout
20553
20554 \begin_layout Subsection
20555 SVNとWindows環境
20556 \end_layout
20557
20558 \begin_layout Quote
20559 ユーザが,かなり早いうちに自分自身でコマンドライン操作を理解できないのであれば,TortoiseSVNを使った方が賢明でしょう.—P.
20560  A.
20561  ルービン
20562 \end_layout
20563
20564 \begin_layout Subsubsection
20565 準備
20566 \end_layout
20567
20568 \begin_layout Standard
20569 \SpecialChar LyX
20570 を導入して,Subversionレポジトリへのアクセス権を持っている他に,ユーザはSubversionクライアントプログラムを導入する必要があります.クライアン
20571 トプログラムのWindows用インストーラは
20572 \begin_inset CommandInset href
20573 LatexCommand href
20574 name "CollabNet"
20575 target "http://www.collab.net/nonav/downloads/subversion/"
20576 literal "false"
20577
20578 \end_inset
20579
20580 にあります.ユーザは
20581 \begin_inset CommandInset href
20582 LatexCommand href
20583 name "TortoiseSVN"
20584 target "http://tortoisesvn.tigris.org/"
20585 literal "false"
20586
20587 \end_inset
20588
20589 も導入することを考えるでしょう.これはSubversionの操作をWindows Explorerのコンテクスト(右クリック)メニューに統合します.\SpecialChar LyX
20590 外部で行う操
20591 作は,一般的にExplorerコンテクストメニューを使った方が便利です.TortoiseSVNは,\SpecialChar LyX
20592 自身が使用するクライアントプログラムの代わりとは成りませんので
20593 ,注意してください.
20594 \end_layout
20595
20596 \begin_layout Subsubsection
20597 文書をSubversion管理下に置くには
20598 \end_layout
20599
20600 \begin_layout Standard
20601 \SpecialChar LyX
20602 文書をSubversionのバージョン管理下に置く前に,その親ディレクトリをバージョン管理下に置かなくてはなりません.文書を,既にレポジトリに存在するプロジェク
20603 トに追加する際には,新規文書が置かれることになるディレクトリへ,プロジェクトをチェックアウトすることによって実現します.プロジェクト自体がバージョン管理下にない
20604 場合(たとえばこの文書が新規プロジェクトの最初のファイルである場合)には,このディレクトリをレポジトリにインポートしなくてはなりません.これは,\SpecialChar LyX
20605 の外部で行います
20606 .インポートもチェックアウトも共に,TortoiseSVNを使えば,Explorerのコンテクストメニューから簡単に終えることができます.あるいは,DOSプロン
20607 プトでコマンドライン・クライアントを使って成し遂げることもできます.TortoiseSVNを使ったプロジェクトのインポート手続きを下記で説明します.レポジトリは
20608 既に存在し,新規プロジェクトを
20609 \begin_inset Flex Code
20610 status collapsed
20611
20612 \begin_layout Plain Layout
20613 C:
20614 \backslash
20615 new project
20616 \end_layout
20617
20618 \end_inset
20619
20620 で開始するものとします.Subversionクライアントプログラムを使うための情報を得るには,DOSシェルで
20621 \begin_inset Flex Code
20622 status collapsed
20623
20624 \begin_layout Plain Layout
20625 svn –help
20626 \end_layout
20627
20628 \end_inset
20629
20630 を実行してください.
20631 \end_layout
20632
20633 \begin_layout Enumerate
20634 Windows Explorerで
20635 \begin_inset Flex Code
20636 status collapsed
20637
20638 \begin_layout Plain Layout
20639 C:
20640 \backslash
20641 new project
20642 \end_layout
20643
20644 \end_inset
20645
20646 を見つけ出して右クリックし,
20647 \begin_inset Flex MenuItem
20648 status collapsed
20649
20650 \begin_layout Plain Layout
20651 TortoiseSVN\SpecialChar menuseparator
20652 Repo-browser
20653 \end_layout
20654
20655 \end_inset
20656
20657 を選択してください.必要であれば,レポジトリのURLを調整し,OKをクリックしてください.
20658 \end_layout
20659
20660 \begin_layout Enumerate
20661 新規プロジェクトフォルダを置くレポジトリレベル(多くの場合最上位レベル)を右クリックし,
20662 \begin_inset Flex MenuItem
20663 status collapsed
20664
20665 \begin_layout Plain Layout
20666 Create folder\SpecialChar ldots
20667
20668 \end_layout
20669
20670 \end_inset
20671
20672 をクリックしてください.プロジェクトフォルダの名称を入力してOKをクリックしてください.必要であればログファイル用のメッセージを入力し,再びOKをクリックしてく
20673 ださい.新規プロジェクトフォルダがレポジトリに現れるはずです.最後にOKを再度クリックして,レポジトリブラウザを終了してください.
20674 \end_layout
20675
20676 \begin_layout Enumerate
20677 再度
20678 \begin_inset Flex Code
20679 status collapsed
20680
20681 \begin_layout Plain Layout
20682 C:
20683 \backslash
20684 new project
20685 \end_layout
20686
20687 \end_inset
20688
20689 を右クリックし,今度は
20690 \begin_inset Flex MenuItem
20691 status collapsed
20692
20693 \begin_layout Plain Layout
20694 SVN Checkout\SpecialChar ldots
20695
20696 \end_layout
20697
20698 \end_inset
20699
20700 を選択してください.レポジトリにたった今作成した,プロジェクトフォルダのURLを選択し,チェックアウトディレクトリを
20701 \begin_inset Flex Code
20702 status collapsed
20703
20704 \begin_layout Plain Layout
20705 C:
20706 \backslash
20707 new project
20708 \end_layout
20709
20710 \end_inset
20711
20712 に設定してから,OKをクリックしてください.フォルダが空でないことを警告されますが,OKをクリックして進んでください.すると,
20713 \begin_inset Flex Code
20714 status collapsed
20715
20716 \begin_layout Plain Layout
20717 C:
20718 \backslash
20719 new project
20720 \end_layout
20721
20722 \end_inset
20723
20724 の下に
20725 \begin_inset Flex Code
20726 status collapsed
20727
20728 \begin_layout Plain Layout
20729 .svn
20730 \end_layout
20731
20732 \end_inset
20733
20734 ディレクトリが作成されます.
20735 \end_layout
20736
20737 \begin_layout Enumerate
20738 \SpecialChar LyX
20739 で文書を新規作成するか開くかして,
20740 \begin_inset Flex MenuItem
20741 status collapsed
20742
20743 \begin_layout Plain Layout
20744 ファイル\SpecialChar menuseparator
20745 バージョン管理\SpecialChar menuseparator
20746 登録
20747 \end_layout
20748
20749 \end_inset
20750
20751 をクリックします.ログメッセージを入力してOKをクリックし,文書をバージョン管理にコミットしてください.
20752 \end_layout
20753
20754 \begin_layout Standard
20755 爾後,
20756 \begin_inset Flex MenuItem
20757 status collapsed
20758
20759 \begin_layout Plain Layout
20760 ファイル\SpecialChar menuseparator
20761 バージョン管理
20762 \end_layout
20763
20764 \end_inset
20765
20766 メニューのすべての機能が使用できるようになります.Windows ExplorerのTortoiseSVNコンテクストメニューか,コマンドプロンプトでのSubv
20767 ersionクライアントプログラムを使用して,文書をチェックイン・チェックアウトしたり,履歴を見たりといったことができるようになります.
20768 \end_layout
20769
20770 \begin_layout Subsubsection
20771 Windows下でSVNと共にSSHトンネルを使うには
20772 \end_layout
20773
20774 \begin_layout Standard
20775 Linuxに較べて,WindowsでSVNクライアントをSSH経由で通信するようにさせるのは,かなり厄介な仕事です.どのようにクライアント側を設定すればよいか,
20776 少なくとも幾分かのヒントをお示しするつもりですが,sshとWindowsコマンドラインの知識が前もって必要であり,それと共にかなりの量のフラストレーションが溜ま
20777 ることを覚悟しておいてください.
20778 \end_layout
20779
20780 \begin_layout Enumerate
20781 前節で述べたように,Windows用のSVNクライアントを入手してください.これが新規の導入である場合には,何らかのSVNコマンド(たとえば
20782 \begin_inset Flex Code
20783 status collapsed
20784
20785 \begin_layout Plain Layout
20786 svn –version
20787 \end_layout
20788
20789 \end_inset
20790
20791 )を実行して,configファイル群を生成させてください.これらは後で変更を加える必要があります.
20792 \end_layout
20793
20794 \begin_layout Enumerate
20795 Windows用のsshクライアントを選んでください.選択肢はたくさんありますが,ここではPutty tools
20796 \begin_inset Foot
20797 status open
20798
20799 \begin_layout Plain Layout
20800 \begin_inset Flex URL
20801 status collapsed
20802
20803 \begin_layout Plain Layout
20804
20805 http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html
20806 \end_layout
20807
20808 \end_inset
20809
20810
20811 \end_layout
20812
20813 \end_inset
20814
20815 のものを使用することとしましょう.クライアントが接続の度にパスワードを訊いてこないように,接続を自動化する必要があります.簡単にするために,追加的なパスワード保
20816 護などを加えない
20817 \begin_inset Flex Ruby
20818 status collapsed
20819
20820 \begin_layout Plain Layout
20821
20822 \begin_inset Argument post:1
20823 status collapsed
20824
20825 \begin_layout Plain Layout
20826 キー
20827 \end_layout
20828
20829 \end_inset
20830
20831
20832 \end_layout
20833
20834 \end_inset
20835
20836 のみを使用することとします.
20837 \end_layout
20838
20839 \begin_deeper
20840 \begin_layout Enumerate
20841 \begin_inset Flex Code
20842 status collapsed
20843
20844 \begin_layout Plain Layout
20845 puttygen
20846 \end_layout
20847
20848 \end_inset
20849
20850 を使って鍵を生成します..ppkプライベート鍵ファイルを保存し,パブリック鍵ファイルはサーバ側に置きます.SVNサーバがLinuxで走っている場合,このパブリック
20851 鍵の書式はLinuxのopensshと互換性がないために,「Public key for pasting into OpenSSH authorized_key
20852 s file:」編集フィールドから,直接サーバの
20853 \begin_inset Flex Code
20854 status collapsed
20855
20856 \begin_layout Plain Layout
20857 ~/.ssh/authorized_keys
20858 \end_layout
20859
20860 \end_inset
20861
20862 または
20863 \begin_inset Flex Code
20864 status collapsed
20865
20866 \begin_layout Plain Layout
20867 authorized_keys2
20868 \end_layout
20869
20870 \end_inset
20871
20872 ファイルにコピー&ペーストを行わなくてはならないことに注意してください.
20873 \end_layout
20874
20875 \begin_layout Enumerate
20876 Puttyのplinkを入手してください.SVNのconfigファイル
20877 \begin_inset Foot
20878 status collapsed
20879
20880 \begin_layout Plain Layout
20881 正確なパスはWindowsのバージョンに依りますが,通常は
20882 \begin_inset Flex Code
20883 status collapsed
20884
20885 \begin_layout Plain Layout
20886 c:
20887 \backslash
20888 Documents and Settings
20889 \backslash
20890 user
20891 \backslash
20892 Application Data
20893 \backslash
20894 Subversion
20895 \backslash
20896 config
20897 \end_layout
20898
20899 \end_inset
20900
20901
20902 \begin_inset Flex Code
20903 status collapsed
20904
20905 \begin_layout Plain Layout
20906 AppData
20907 \backslash
20908 Roaming
20909 \backslash
20910 Subversion
20911 \end_layout
20912
20913 \end_inset
20914
20915 辺りにあります.
20916 \end_layout
20917
20918 \end_inset
20919
20920 中の
20921 \begin_inset Flex Code
20922 status collapsed
20923
20924 \begin_layout Plain Layout
20925 [tunnels]
20926 \end_layout
20927
20928 \end_inset
20929
20930 セクションにsshコマンドを設定してください.例:
20931 \begin_inset Flex Code
20932 status collapsed
20933
20934 \begin_layout Plain Layout
20935 ssh=c:/path/plink.exe -i c:/path/private_key.ppk
20936 \end_layout
20937
20938 \end_inset
20939
20940
20941 \begin_inset Foot
20942 status collapsed
20943
20944 \begin_layout Plain Layout
20945 通常,正確なコマンドを機能させるには長い時間がかかり,それは多くの物事に依存します.たとえば,リモートサーバがPuttyなどの既定セッションとして保存されないよ
20946 うにしてください.うまく行かない場合には,まずSVNなしでplink経由の接続を試してください.
20947 \end_layout
20948
20949 \end_inset
20950
20951
20952 \end_layout
20953
20954 \end_deeper
20955 \begin_layout Enumerate
20956 SVNアーカイブをチェックアウトしてください.例:
20957 \begin_inset Newline newline
20958 \end_inset
20959
20960
20961 \begin_inset Flex Code
20962 status collapsed
20963
20964 \begin_layout Plain Layout
20965 svn co svn+ssh://user@server/repository_path
20966 \end_layout
20967
20968 \end_inset
20969
20970
20971 \end_layout
20972
20973 \begin_layout Subsubsection
20974 行末変換
20975 \end_layout
20976
20977 \begin_layout Standard
20978 共著者同士がLinuxとWindowsを混在させているとき,\SpecialChar LyX
20979 は.lyxファイル中で異なった行末記号を使用することになります.これは,\SpecialChar LyX
20980 の機能に関する限り問題になりま
20981 せんが,コミット差分は巨大になり,マージではコンフリクトを引き起こしがちです.幸いにして,SVNは,.lyxファイルを
20982 \begin_inset Flex Code
20983 status collapsed
20984
20985 \begin_layout Plain Layout
20986 native
20987 \end_layout
20988
20989 \end_inset
20990
20991 モードに切り替える際
20992 \begin_inset Foot
20993 status collapsed
20994
20995 \begin_layout Plain Layout
20996 手短には
20997 \begin_inset Flex Code
20998 status collapsed
20999
21000 \begin_layout Plain Layout
21001 svn propset svn:eol-style native FILE_NAME
21002 \end_layout
21003
21004 \end_inset
21005
21006
21007 \end_layout
21008
21009 \end_inset
21010
21011 ,CR/LF問題をどのように取り扱えばいいかを知っているので大丈夫です
21012 \begin_inset Foot
21013 status collapsed
21014
21015 \begin_layout Plain Layout
21016 \begin_inset Flex URL
21017 status collapsed
21018
21019 \begin_layout Plain Layout
21020
21021 http://svnbook.red-bean.com/en/1.4/svn.advanced.props.file-portability.html
21022 \end_layout
21023
21024 \end_inset
21025
21026
21027 \end_layout
21028
21029 \end_inset
21030
21031
21032 \end_layout
21033
21034 \begin_layout Subsection
21035 \SpecialChar LyX
21036 におけるGITコマンド
21037 \end_layout
21038
21039 \begin_layout Standard
21040 \SpecialChar LyX
21041 で,最小限のGITコマンドがサポートされるようになりました.これらのコマンドは,
21042 \family sans
21043 ファイル\SpecialChar menuseparator
21044 バージョン管理
21045 \family default
21046 にあります.リポジトリのアクセスに,パスワード保護されたsshを使用している場合には,ターミナルウィンドウでの操作をするように促されます.\SpecialChar LyX
21047 は,GIT
21048  1.7に対して試験を行っています
21049 \begin_inset Foot
21050 status collapsed
21051
21052 \begin_layout Plain Layout
21053 Windowsユーザーはgitにパスが通っていることを確認する必要があります.これは,\SpecialChar LyX
21054 中から
21055 \family sans
21056 ツール\SpecialChar menuseparator
21057 設定\SpecialChar menuseparator
21058 パス\SpecialChar menuseparator
21059 PATH接頭辞
21060 \family default
21061 で設定できます.
21062 \end_layout
21063
21064 \end_inset
21065
21066
21067 \end_layout
21068
21069 \begin_layout Standard
21070 GITと他のバージョン管理システムとの大きな相違点は,GITの配布形態にあります.伝統的なバージョン管理システムでは,リポジトリをホストする,中心となるサーバー
21071 があります.ユーザーは変更点をサーバーにコミットし,他のユーザーが行った更新分をサーバーから受け取ります.一方,GITでは,ユーザーは,ローカルのリポジトリにコ
21072 ミットを行います.ローカルリポジトリは,GITコマンドの
21073 \begin_inset Flex Code
21074 status open
21075
21076 \begin_layout Plain Layout
21077 pull
21078 \end_layout
21079
21080 \end_inset
21081
21082 または
21083 \begin_inset Flex Code
21084 status open
21085
21086 \begin_layout Plain Layout
21087 push
21088 \end_layout
21089
21090 \end_inset
21091
21092 を使って,1つ以上のリモートリポジトリと同期されます.\SpecialChar LyX
21093 は,リモートのGITリポジトリとは,一切関わりません.CVSやSVNの集権的リポジトリに対して行うのと同じ
21094 ことを,ローカルのリポジトリに対してのみ行います.リモートのGITリポジトリを使用している場合には,お好みのGITクライアントを使用して,
21095 \begin_inset Flex Code
21096 status open
21097
21098 \begin_layout Plain Layout
21099 pull
21100 \end_layout
21101
21102 \end_inset
21103
21104 または
21105 \begin_inset Flex Code
21106 status open
21107
21108 \begin_layout Plain Layout
21109 push
21110 \end_layout
21111
21112 \end_inset
21113
21114 の操作を行う必要があります.
21115 \end_layout
21116
21117 \begin_layout Subsubsection
21118 登録
21119 \end_layout
21120
21121 \begin_layout Standard
21122 お使いの文書が改訂管理下に置かれていなければ,メニューにはこの項目だけが表示されます.もし改訂管理が有効ならば,
21123 \family sans
21124 登録
21125 \family default
21126 項目は表示されません.
21127 \end_layout
21128
21129 \begin_layout Standard
21130 本コマンドは,既に文書のあるディレクトリをGIT管理下に置いている場合に
21131 \emph on
21132 のみ
21133 \emph default
21134 (すなわち
21135 \begin_inset Flex Code
21136 status collapsed
21137
21138 \begin_layout Plain Layout
21139 .git/index
21140 \end_layout
21141
21142 \end_inset
21143
21144 ファイルが存在する場合にのみ),お使いの文書をGITに登録します.つまり,アーカイブはご自分でチェックアウトしなくてはなりません.
21145 \end_layout
21146
21147 \begin_layout Standard
21148 すると,文書の最初の説明文を入力するように促されます.登録したファイルは,まだコミットされたわけではないことに注意してください.
21149 \end_layout
21150
21151 \begin_layout Standard
21152 実行されるGITコマンドは,
21153 \begin_inset Flex Code
21154 status collapsed
21155
21156 \begin_layout Plain Layout
21157 git add "<ファイル名>"
21158 \end_layout
21159
21160 \end_inset
21161
21162 です.
21163 \end_layout
21164
21165 \begin_layout Standard
21166 スイッチの説明は
21167 \begin_inset Flex Code
21168 status collapsed
21169
21170 \begin_layout Plain Layout
21171 man git
21172 \end_layout
21173
21174 \end_inset
21175
21176 をお読みください.
21177 \end_layout
21178
21179 \begin_layout Subsubsection
21180 変更をチェックイン
21181 \end_layout
21182
21183 \begin_layout Standard
21184 ファイルの編集を終えたら,変更をコミットします.このとき,変更の説明文を入れるよう促されます.その後,変更がコミットされます.
21185 \end_layout
21186
21187 \begin_layout Standard
21188 GITコマンド:
21189 \begin_inset Flex Code
21190 status collapsed
21191
21192 \begin_layout Plain Layout
21193 git commit -q -m
21194 \begin_inset Quotes erd
21195 \end_inset
21196
21197 <入力した説明文>
21198 \begin_inset Quotes erd
21199 \end_inset
21200
21201  "<ファイル名>"
21202 \end_layout
21203
21204 \end_inset
21205
21206
21207 \end_layout
21208
21209 \begin_layout Subsubsection
21210 リポジトリ版に戻す
21211 \end_layout
21212
21213 \begin_layout Standard
21214 これは,最後のチェックイン以降,文書に加えられた変更をすべて廃棄します.変更が廃棄される前に警告が表示されます.
21215 \end_layout
21216
21217 \begin_layout Standard
21218 GITコマンド:
21219 \begin_inset Flex Code
21220 status collapsed
21221
21222 \begin_layout Plain Layout
21223 git checkout -q 
21224 \begin_inset Quotes qld
21225 \end_inset
21226
21227 <ファイル名>
21228 \begin_inset Quotes qld
21229 \end_inset
21230
21231
21232 \end_layout
21233
21234 \end_inset
21235
21236
21237 \end_layout
21238
21239 \begin_layout Subsubsection
21240 ファイル名変更
21241 \end_layout
21242
21243 \begin_layout Standard
21244 これは,現行文書のファイル名を変更します.最後のチェックイン以降,変更が加えられていないサラの文書であることが要求されます.ファイル名とコピー操作の説明を入力す
21245 るように促され,その後,ローカルとリポジトリの両方でファイル名が変更されます.新旧ファイル名の文書の親ディレクトリが異なる場合には,コピーにインクルードされたフ
21246 ァイルの相対パスは,(
21247 \family sans
21248 ファイル\SpecialChar menuseparator
21249 名前をつけて保存\SpecialChar ldots
21250
21251 \family default
21252 と同様に)全て調整されます.最後に,新ファイル名を使ってファイルが再度読み込まれます.
21253 \end_layout
21254
21255 \begin_layout Labeling
21256 \labelwidthstring 00.00.0000
21257 GITコマンド: 
21258 \begin_inset space ~
21259 \end_inset
21260
21261
21262 \begin_inset Newline newline
21263 \end_inset
21264
21265
21266 \begin_inset Flex Code
21267 status collapsed
21268
21269 \begin_layout Plain Layout
21270 git mv "<ファイル名>" "<新ファイル名>"
21271 \end_layout
21272
21273 \end_inset
21274
21275
21276 \begin_inset Newline newline
21277 \end_inset
21278
21279
21280 \begin_inset Flex Code
21281 status collapsed
21282
21283 \begin_layout Plain Layout
21284 git commit
21285 \end_layout
21286
21287 \end_inset
21288
21289
21290 \end_layout
21291
21292 \begin_layout Subsubsection
21293 履歴を表示
21294 \end_layout
21295
21296 \begin_layout Standard
21297 これは,GIT文書の全履歴を表示します.
21298 \begin_inset Flex Code
21299 status collapsed
21300
21301 \begin_layout Plain Layout
21302 git log 
21303 \begin_inset Quotes qld
21304 \end_inset
21305
21306 <ファイル名>
21307 \begin_inset Quotes qld
21308 \end_inset
21309
21310
21311 \end_layout
21312
21313 \end_inset
21314
21315 の出力がブラウザに表示されます.
21316 \end_layout
21317
21318 \begin_layout Subsubsection
21319 改訂情報
21320 \end_layout
21321
21322 \begin_layout Standard
21323 \SpecialChar LyX
21324 は,ファイルの最終コミットのGITハッシュ番号・著者名・最終コミットの日時をサポートします.これらの情報は,すべて
21325 \family typewriter
21326 git log -n 1 --pretty=format:%H%n%an%n%ai
21327 \family default
21328 によって抽出されます.ツリーバージョン情報は,
21329 \family typewriter
21330 git describe --abbrev --dirty --long
21331 \family default
21332 で取得されます.詳細については,第
21333 \begin_inset CommandInset ref
21334 LatexCommand ref
21335 reference "subsec:VCS改訂情報"
21336
21337 \end_inset
21338
21339 節を参照してください.
21340 \end_layout
21341
21342 \begin_layout Subsection
21343 さらなる調整
21344 \end_layout
21345
21346 \begin_layout Standard
21347 最近になって
21348 \begin_inset Flex Code
21349 status collapsed
21350
21351 \begin_layout Plain Layout
21352 vc-command
21353 \end_layout
21354
21355 \end_inset
21356
21357 機構が付け加えられたおかげで,\SpecialChar LyX
21358 のパワーユーザは,改訂管理のための自製コマンドを作ることができるようになりました.
21359 \end_layout
21360
21361 \begin_layout Standard
21362 たとえば,以下のようにして,二つのTortoiseSVNコマンドを直接統合することができます.
21363 \end_layout
21364
21365 \begin_layout Description
21366 コミット: 
21367 \begin_inset Flex Code
21368 status collapsed
21369
21370 \begin_layout Plain Layout
21371 vc-command DR "." "TortoiseProc /command:commit /path:$$p"
21372 \end_layout
21373
21374 \end_inset
21375
21376
21377 \end_layout
21378
21379 \begin_layout Description
21380 元に戻す: 
21381 \begin_inset Flex Code
21382 status collapsed
21383
21384 \begin_layout Plain Layout
21385 vc-command DR "." "TortoiseProc /command:revert /path:$$p"
21386 \end_layout
21387
21388 \end_inset
21389
21390
21391 \end_layout
21392
21393 \begin_layout Subsection
21394 バージョン管理と文書比較
21395 \end_layout
21396
21397 \begin_layout Standard
21398 バージョン管理は,通常
21399 \begin_inset Flex Code
21400 status collapsed
21401
21402 \begin_layout Plain Layout
21403 diff
21404 \end_layout
21405
21406 \end_inset
21407
21408 ダンプを生成することによって,改訂版の間の変更点を検査するのが,典型的な使用法です.これは平文ファイルには有効なのですが,複雑な構造を持つ\SpecialChar LyX
21409 ファイルの場合には,あ
21410 まり便利ではありません.そこで,\SpecialChar LyX
21411 は独自の文書比較機能を提供しています.この機能を呼び出すには2つの方法があります.1つは,\SpecialChar LyX
21412
21413 \begin_inset Flex Code
21414 status collapsed
21415
21416 \begin_layout Plain Layout
21417 vc-compare
21418 \end_layout
21419
21420 \end_inset
21421
21422 関数を直接呼び出す方法であり(詳細は\SpecialChar LyX
21423 関数説明書を参照),もう1つはツールバーアイコン
21424 \begin_inset Info
21425 type  "icon"
21426 arg   "vc-compare"
21427 \end_inset
21428
21429 による方法,さらにはメニュー項目
21430 \begin_inset Info
21431 type  "menu"
21432 arg   "vc-compare"
21433 \end_inset
21434
21435 を使用する方法です.当該文書のうち,任意の2つの改訂版を比較することもできますし,編集中の現行版を古い改訂版と比較することもできます(このとき改訂版遡及数「
21436 \begin_inset Flex MenuItem
21437 status collapsed
21438
21439 \begin_layout Plain Layout
21440 0
21441 \end_layout
21442
21443 \end_inset
21444
21445 」は,編集中のファイルと最後にコミットした改訂版との比較を意味します).
21446 \end_layout
21447
21448 \begin_layout Standard
21449 この機能は,SVNとRCSでサポートされていますが,RCSは,より複雑なバージョン付けスキームを持っているため,制約があります.ダイアログ中で改訂版を指定する際
21450 の数字は,つねにRCS改訂番号の最後の数を指し示します(例:「1.2.35」版のときには「35」).現在のところ,改訂のGIT表記はサポートされておらず,
21451 \begin_inset Flex Code
21452 status collapsed
21453
21454 \begin_layout Plain Layout
21455 HEAD~X
21456 \end_layout
21457
21458 \end_inset
21459
21460
21461 \lang english
21462 .
21463 \lang japanese
21464 の形で表記されるXステップ前の改訂版を,編集中文書と比較することのみが可能です.
21465 \end_layout
21466
21467 \begin_layout Section
21468 文芸プログラミング
21469 \end_layout
21470
21471 \begin_layout Standard
21472
21473 \noun on
21474 Kayvan Sylvan
21475 \noun default
21476 (kayvan@sylvan.com)改訂 
21477 \noun on
21478 Edmar Wienskoski Jr.
21479 \noun default
21480 (edmar-w-jr@technologist.com)原文
21481 \end_layout
21482
21483 \begin_layout Subsection
21484 はじめに
21485 \end_layout
21486
21487 \begin_layout Standard
21488 この節の主な目的は,文芸的プログラミング(literate programming)のために,\SpecialChar LyX
21489 をどう使えばよいかをお見せすることです.ここでは,あなたがこのプロ
21490 グラミング技術をよくご存じで,「tangling」や「weaving」の意味するところを知っているものとして説明します.そうでない場合には,以下の各節にあるウェ
21491 ブリンクをたどってください.そこには,かつての開発の歴史から最新のツールチップまで,たくさんの良質なドキュメンテーションがあります.
21492 \end_layout
21493
21494 \begin_layout Standard
21495 また,あなたが,\SpecialChar LyX
21496 の設定を変更することを厭わない程度まで\SpecialChar LyX
21497 に習熟しており,Xリソースファイルにも親しんでいることを前提にしています.そうでない場合は,あなたの必要と
21498 するトピックを扱っている,\SpecialChar LyX
21499 の他の説明書で調べてください.
21500 \end_layout
21501
21502 \begin_layout Subsection
21503 文芸プログラミング
21504 \end_layout
21505
21506 \begin_layout Standard
21507 以下は,文芸プログラミング FAQからの抜粋です.
21508 \end_layout
21509
21510 \begin_layout Quotation
21511 文芸プログラミングは,人間が読むのに適した形でのドキュメンテーションとソースの組合わせです.実際,文芸的プログラムは楽しい読み物であるべきであり,さらには参加し
21512 たいとさえ思わせるべきなのです!(ボブ,ごめん.言わずにはいれなかった.)一般的に,文芸プログラムは,ソースとドキュメンテーションを同一ファイル上に結合したもの
21513 です.そして,文芸プログラミングツールは,ファイルを解析して,読むことのできるドキュメンテーションか,あるいはコンパイル可能なソースを生成します.文芸プログラミ
21514 ングのWEBスタイルは,D.
21515 \begin_inset space \thinspace{}
21516 \end_inset
21517
21518 E.
21519  Knuthが,\SpecialChar TeX
21520 組版ソフトウエアを開発中に作り出したものです.
21521 \end_layout
21522
21523 \begin_layout Standard
21524 他のエキスパートの発言です.
21525 \end_layout
21526
21527 \begin_layout Quotation
21528
21529 \emph on
21530 文芸プログラミングは,冗長なコメント付けと何が違いますか?
21531 \end_layout
21532
21533 \begin_layout Quotation
21534 3つの際立った特徴があります.重要な順に列挙すれば,
21535 \end_layout
21536
21537 \begin_deeper
21538 \begin_layout Itemize
21539 推敲の順序が柔軟
21540 \end_layout
21541
21542 \begin_layout Itemize
21543 ブラウジングの自動サポート
21544 \end_layout
21545
21546 \begin_layout Itemize
21547 特に図式と数式を含んだドキュメンテーションの組版
21548 \end_layout
21549
21550 \end_deeper
21551 \begin_layout Quotation
21552 などがあります.
21553 \end_layout
21554
21555 \begin_layout Standard
21556 あなたの興味に火を付けたところで書誌情報を見てみましょう.
21557 \end_layout
21558
21559 \begin_layout Subsubsection
21560 書誌情報
21561 \end_layout
21562
21563 \begin_layout Standard
21564 完全な文芸プログラミング FAQは
21565 \end_layout
21566
21567 \begin_layout Quote
21568 Literate Programming FAQ 
21569 \begin_inset Flex URL
21570 status collapsed
21571
21572 \begin_layout Plain Layout
21573
21574 http://www.xmarks.com/site/shelob.ce.ttu.edu/daves/lpfaq/faq.html
21575 \end_layout
21576
21577 \end_inset
21578
21579
21580 \end_layout
21581
21582 \begin_layout Standard
21583 にあります.
21584 \end_layout
21585
21586 \begin_layout Standard
21587 このFAQには,23(二十三です!)の文芸プログラミング用ツールが列挙されています.一部のツールは,特定のプログラミング言語用に特化したものですが,一般的な対象
21588 を持つものもあります.私は自分で使うのに,いくつかの理由から
21589 \noun on
21590 Noweb
21591 \noun default
21592 を選びました.
21593 \end_layout
21594
21595 \begin_layout Itemize
21596 説明文書を\SpecialChar LaTeX
21597 でもHTMLでも出力できる.
21598 \end_layout
21599
21600 \begin_layout Itemize
21601 オープンアーキテクチャを持っているので,新しいフィルタをプラグインとして加えたり
21602 \begin_inset Foot
21603 status collapsed
21604
21605 \begin_layout Plain Layout
21606
21607 \emph on
21608 フィルタ
21609 \emph default
21610 は,与えられたデータストリームを読み込み,操作されたデータストリームを出力するプログラムです.このようにして,(文芸コードを含んだ)WEBファイルを,Cプログラ
21611 ムコードや\SpecialChar LaTeX
21612 コードのみを含むファイルに変換することができます.
21613 \end_layout
21614
21615 \end_inset
21616
21617 ,自分が必要な特別な処理を実行することが容易である.
21618 \end_layout
21619
21620 \begin_layout Itemize
21621 すでに利用可能となっているフィルタの良質なコレクションがある(HTMLはその一つです).
21622 \end_layout
21623
21624 \begin_layout Itemize
21625 無料である.
21626 \end_layout
21627
21628 \begin_layout Standard
21629 Nowebのウェブページは
21630 \end_layout
21631
21632 \begin_layout Quote
21633 Nowebホームページ 
21634 \begin_inset Flex URL
21635 status collapsed
21636
21637 \begin_layout Plain Layout
21638
21639 http://www.cs.virginia.edu/~nr/noweb/
21640 \end_layout
21641
21642 \end_inset
21643
21644
21645 \end_layout
21646
21647 \begin_layout Standard
21648 にあります.ここから始めれば,たくさんの興味深いリンクや,文芸プログラミングの用例にたどり着くことができます.
21649 \end_layout
21650
21651 \begin_layout Subsection
21652 \SpecialChar LyX
21653 とNowebを使った文芸プログラミング
21654 \end_layout
21655
21656 \begin_layout Standard
21657 \SpecialChar LyX
21658 における文芸プログラミングのサポートは,\SpecialChar LyX
21659 の汎用変換機構を使用して実現しています.このサポートは「Noweb非依存」的な方法で提供されているので,LyXの設定を変
21660 更するだけで,自分の好きな他の文芸プログラミングツールを使って,この新しい\SpecialChar LyX
21661 の機能を利用することができます.
21662 \end_layout
21663
21664 \begin_layout Subsubsection
21665 ドキュメントとコードの生成(weavingおよびtangling)
21666 \end_layout
21667
21668 \begin_layout Paragraph
21669 nowebモジュールの使用
21670 \end_layout
21671
21672 \begin_layout Standard
21673 Nowebと\SpecialChar LyX
21674 の導入に成功したならば,新規文書を開いたときにはいつも,文書クラスを選択した後,
21675 \family sans
21676 文書\SpecialChar menuseparator
21677 設定
21678 \family default
21679 メニューで「noweb」モジュールを追加するようにしてください.Nowebが正しく導入されていれば,「モジュール」リンクをクリックした際,利用可能リストに「no
21680 web」モジュールが表示され,文書に追加できるようになっています.
21681 \end_layout
21682
21683 \begin_layout Paragraph
21684 コードの入力
21685 \end_layout
21686
21687 \begin_layout Standard
21688 \SpecialChar LyX
21689 では,
21690 \begin_inset Flex Noun
21691 status collapsed
21692
21693 \begin_layout Plain Layout
21694 Chunk
21695 \end_layout
21696
21697 \end_inset
21698
21699 という名前の拡張差込枠を使えば,コードを入力することができます.Nowebは次のようにchunks を区切ります.
21700 \end_layout
21701
21702 \begin_layout LyX-Code
21703 <<My code>>=
21704 \end_layout
21705
21706 \begin_layout LyX-Code
21707   code
21708 \end_layout
21709
21710 \begin_layout LyX-Code
21711   more code
21712 \end_layout
21713
21714 \begin_layout LyX-Code
21715   even more code
21716 \end_layout
21717
21718 \begin_layout LyX-Code
21719   @
21720 \end_layout
21721
21722 \begin_layout Standard
21723 問題は<<と@の間にあるものを完全にそのままの形で扱わなければならないことです.つまり,\SpecialChar LyX
21724 は,この間に書かれたものを特別に解釈することは決してあってはなりません.
21725 これも
21726 \begin_inset Flex Noun
21727 status collapsed
21728
21729 \begin_layout Plain Layout
21730 Chunk
21731 \end_layout
21732
21733 \end_inset
21734
21735 によって取り扱われ,通常のテキスト差込枠のように見えますが,自由に空白を入れることができます.
21736 \end_layout
21737
21738 \begin_layout Standard
21739 特殊な注釈として,chunk内でNowebの「%def」を使えば,Nowebのidentifierの相互参照に項目を加えることができます.次の例を見てください.
21740 \end_layout
21741
21742 \begin_layout LyX-Code
21743 <<My chunk>>=
21744 \end_layout
21745
21746 \begin_layout LyX-Code
21747 def some_function(args):
21748 \end_layout
21749
21750 \begin_layout LyX-Code
21751    "This is the doc string for this function."
21752 \end_layout
21753
21754 \begin_layout LyX-Code
21755    print "My args: ", args
21756 \end_layout
21757
21758 \begin_layout LyX-Code
21759 @ %def some_function
21760 \end_layout
21761
21762 \begin_layout Standard
21763 これをどのように使って,その結果相互参照がどうなるかは
21764 \emph on
21765 LIBDIR/examples/listerrors.lyx
21766 \emph default
21767 の中の文芸pythonプログラムを見るとよくわかります.
21768 \end_layout
21769
21770 \begin_layout Paragraph
21771 説明文書の生成
21772 \end_layout
21773
21774 \begin_layout Standard
21775 この時点で,適切な文書クラスを持ち,いくつかのコードとテキストが入った新規文書ファイルが作成されているはずです.これをどうやって印刷したらいいのでしょう.答えは
21776 簡単で,通常の文書で行うように
21777 \family sans
21778 文書\SpecialChar menuseparator
21779 表示
21780 \family default
21781 等を選ぶだけです.特別な手続きは必要ありません.
21782 \end_layout
21783
21784 \begin_layout Standard
21785 理解を助けるために,\SpecialChar LyX
21786 の内部で何が起っているかを説明しておきましょう.
21787 \end_layout
21788
21789 \begin_layout Enumerate
21790
21791 \family sans
21792 文書\SpecialChar menuseparator
21793 更新
21794 \family default
21795 が選択されると,\SpecialChar LaTeX
21796 ファイルがつくられます.
21797 \end_layout
21798
21799 \begin_deeper
21800 \begin_layout Standard
21801 文書が文芸プログラミング用のクラスであった場合には,拡張子に(
21802 \begin_inset Flex MenuItem
21803 status collapsed
21804
21805 \begin_layout Plain Layout
21806 設定
21807 \end_layout
21808
21809 \end_inset
21810
21811 パネルで設定した)文芸プログラム用のものがつけられます.それ以外は .texが拡張子に使われます.
21812 \end_layout
21813
21814 \end_deeper
21815 \begin_layout Enumerate
21816 違いがファイル名だけなのに注意してください.\SpecialChar LyX
21817 による特別な処理は必要ありません.
21818 \begin_inset Flex Noun
21819 status collapsed
21820
21821 \begin_layout Plain Layout
21822 Chunk
21823 \end_layout
21824
21825 \end_inset
21826
21827 差込枠でコードを入力するのだけがポイントです.
21828 \end_layout
21829
21830 \begin_layout Enumerate
21831 文書が何らかの文芸プログラムクラスなら,\SpecialChar LyX
21832 は,\SpecialChar LyX
21833 からNowebへの内部変換子を用い,それからNowebから\SpecialChar LaTeX
21834 への変換子
21835 \begin_inset Foot
21836 status collapsed
21837
21838 \begin_layout Plain Layout
21839 これらの変換子は,
21840 \family sans
21841 ツール\SpecialChar menuseparator
21842 設定
21843 \family default
21844 パネルの変換子タブに定義されています.変換子の一般的な情報については,取扱説明書『
21845 \emph on
21846 カスタマイズ篇
21847 \emph default
21848 』の「
21849 \emph on
21850 変換子
21851 \emph default
21852 」の節をご覧ください.
21853 \end_layout
21854
21855 \end_inset
21856
21857 を使って\SpecialChar LaTeX
21858 ファイルを生成します.
21859 \end_layout
21860
21861 \begin_deeper
21862 \begin_layout Standard
21863 それ以外の場合はこのステップを飛ばします.
21864 \end_layout
21865
21866 \end_deeper
21867 \begin_layout Enumerate
21868 最後に\SpecialChar LaTeX
21869 が実行され,通常の文書と同じ後処理が行われます.
21870 \end_layout
21871
21872 \begin_layout Standard
21873 様々な変換子が実行するコマンドを変更すれば,簡単に,特定の「文芸プログラムツール」から変更することができます.
21874 \end_layout
21875
21876 \begin_layout Paragraph
21877 コードの生成
21878 \end_layout
21879
21880 \begin_layout Standard
21881 ビルドメニューが選ばれた場合や,それに対応するツールバーのボタンが押された場合,上のステップ1と同様に\SpecialChar LaTeX
21882 ファイルが生成されます.それから\SpecialChar LyX
21883
21884 \family typewriter
21885 Noweb->Program
21886 \family default
21887 のコンバータを起動します.通常は,このコンバータは(他のコンバータと同じように)2つの部分からできています.
21888 \end_layout
21889
21890 \begin_layout Enumerate
21891 変換プログラム.このプログラムは,一つのフォーマットから他のフォーマットへの変換を行います(この場合は,Nowebフォーマットからプログラムの疑似フォーマットへ
21892 変換します).
21893 \end_layout
21894
21895 \begin_layout Enumerate
21896 エラーログ解析子.これはエラーメッセージを\SpecialChar LyX
21897 が理解できる形へ書き直します.これによって,\SpecialChar LyX
21898 はファイルバッファの正しい位置へエラーボックスを配置することができます.
21899 \end_layout
21900
21901 \begin_layout Standard
21902 冒頭部,「変換子」設定は
21903 \end_layout
21904
21905 \begin_layout LyX-Code
21906
21907 \family typewriter
21908 build-script $$i $$r
21909 \end_layout
21910
21911 \begin_layout Standard
21912 と指定します.これは基本的に,\SpecialChar LyX
21913
21914 \begin_inset Quotes erd
21915 \end_inset
21916
21917
21918 \family typewriter
21919 build-script
21920 \family default
21921
21922 \begin_inset Quotes erd
21923 \end_inset
21924
21925 (プログラムかスクリプト名)を(一般には\SpecialChar LyX
21926 の一時ファイル用のディレクトリにつくられる),Nowebファイルの名前と元の\SpecialChar LyX
21927 ファイルのディレクトリパスを使って呼び出すこ
21928 とを意味しています.
21929 \end_layout
21930
21931 \begin_layout Standard
21932 以下に「build-script」の一例を書いておきます.パスが通っているディレクトリに置いて使います.
21933 \end_layout
21934
21935 \begin_layout LyX-Code
21936
21937 \family sans
21938 #!/bin/sh
21939 \end_layout
21940
21941 \begin_layout LyX-Code
21942
21943 \family sans
21944 #
21945 \end_layout
21946
21947 \begin_layout LyX-Code
21948
21949 \family sans
21950 notangle -Rbuild-script $1 | env NOWEB_SOURCE=$1 NOWEB_OUTPUT_DIR=$2 sh
21951 \end_layout
21952
21953 \begin_layout Standard
21954 変換子設定の次の部分は「フラグ」で,これは
21955 \end_layout
21956
21957 \begin_layout LyX-Code
21958
21959 \family typewriter
21960 parselog=$$s/scripts/listerrors
21961 \end_layout
21962
21963 \begin_layout Standard
21964 に設定されます.
21965 \begin_inset Newline newline
21966 \end_inset
21967
21968 これは,
21969 \begin_inset Quotes erd
21970 \end_inset
21971
21972 build-script
21973 \begin_inset Quotes erd
21974 \end_inset
21975
21976 プロセスが生成したエラーを
21977 \begin_inset Quotes erd
21978 \end_inset
21979
21980 listerrors
21981 \begin_inset Quotes erd
21982 \end_inset
21983
21984 プログラムを介して処理するものです.
21985 \end_layout
21986
21987 \begin_layout Standard
21988 ビルドは,通常\SpecialChar LyX
21989 の一時ディレクトリで行われるので,変換によって生成されたファイルはそのディレクトリに置かれます.\SpecialChar LyX
21990 は,主要ファイルとみなされるものをコピーして取り出
21991 しますが,
21992 \family typewriter
21993 Noweb→プログラム
21994 \family default
21995 変換は複数のファイルを生成することがあるので,\SpecialChar LyX
21996 を閉じる際に大半が削除される可能性があります.これが,NOWEB_OUTPUT_DIR環境変数を渡して,build
21997 -script chunkが生成したファイルをその場所に置かれるようにする理由です.
21998 \end_layout
21999
22000 \begin_layout Paragraph
22001 文章中でのプログラムの構築操作の説明
22002 \end_layout
22003
22004 \begin_layout Standard
22005 \SpecialChar LyX
22006 とNowebの統合の最後の部分は,
22007 \begin_inset Quotes eld
22008 \end_inset
22009
22010 build-script
22011 \begin_inset Quotes erd
22012 \end_inset
22013
22014  chunkです.一般に,あなたのプログラムの構築操作の説明それ自身をchunkに入れて文章中に含めなければなりません.上の例のnoweb用のbuild-scr
22015 iptでは,chunkを見つけるのにnotangleコマンドを使い,shを使って起動します.
22016 \end_layout
22017
22018 \begin_layout Standard
22019 以下に典型的なchunkがどのようなものかを書いておきます.
22020 \end_layout
22021
22022 \begin_layout LyX-Code
22023 <<build-script>>=
22024 \begin_inset Newline newline
22025 \end_inset
22026
22027
22028 \end_layout
22029
22030 \begin_layout LyX-Code
22031 #!/bin/sh
22032 \begin_inset Newline newline
22033 \end_inset
22034
22035
22036 \begin_inset Newline newline
22037 \end_inset
22038
22039 if [ -z "${NOWEB_SOURCE}" ]
22040 \begin_inset Newline newline
22041 \end_inset
22042
22043 then
22044 \end_layout
22045
22046 \begin_layout LyX-Code
22047 NOWEB_SOURCE=myfile.nw
22048 \begin_inset Newline newline
22049 \end_inset
22050
22051 fi
22052 \begin_inset Newline newline
22053 \end_inset
22054
22055 [...
22056  code to extract files ...
22057  use NOWEB_OUTPUT_DIR here ...]
22058 \begin_inset Newline newline
22059 \end_inset
22060
22061 [...
22062  code to compile files ...]
22063 \begin_inset Newline newline
22064 \end_inset
22065
22066 @
22067 \end_layout
22068
22069 \begin_layout Standard
22070
22071 \emph on
22072 LIBDIR/examples/listerrors.lyx
22073 \emph default
22074
22075 \emph on
22076 LIBDIR/examples/Literate.lyx
22077 \emph default
22078 を見てください.この2つのファイルには異なる実装のlisterrorsプログラムが含まれていて,これまで説明してきた各々の部分が全体としてどのようになるかをわか
22079 ってもらうための例です.また,
22080 \emph on
22081 LIBDIR/examples/noweb2lyx.lyx
22082 \emph default
22083 も見てください.面白いことに,これらの3つのファイルは,Python,C,Perlが各々使われていて,\SpecialChar LyX
22084 の文芸プログラミングのサポートがプログラム言語に依存しない
22085 ことを示しています.
22086 \end_layout
22087
22088 \begin_layout Subsubsection
22089 \SpecialChar LyX
22090 の設定
22091 \end_layout
22092
22093 \begin_layout Standard
22094 すべての文芸プログラムのための設定は,
22095 \family sans
22096 ツール\SpecialChar menuseparator
22097 設定
22098 \family default
22099 パネルの「ファイル処理」タブですることができます.重要な部分を見ておきましょう.
22100 \end_layout
22101
22102 \begin_layout Description
22103 「NoWeb」形式 ファイル形式タブで設定します.ここで,Noweb特有の設定を行います.
22104 \family sans
22105 GUI名
22106 \family default
22107
22108 \family typewriter
22109 NoWeb
22110 \family default
22111 に,拡張子を
22112 \family typewriter
22113 .nw
22114 \family default
22115 に設定してください.これによって,\SpecialChar LyX
22116 に変換プロセスの第一段階でつくられるファイルに
22117 \family typewriter
22118 .nw
22119 \family default
22120 という拡張子をつけることを指示します.
22121 \end_layout
22122
22123 \begin_layout Description
22124 プログラム形式 これは,変換の終着点を示すためだけの,空の形式です(これがあることで,変換子を作ることができます).
22125 \end_layout
22126
22127 \begin_layout Description
22128
22129 \family sans
22130 NoWeb
22131 \family default
22132 ->
22133 \family sans
22134 \SpecialChar LaTeX
22135
22136 \family default
22137  この変換子は,文芸的文書の「weaving」を行います.Nowebの場合,「
22138 \family typewriter
22139 noweave -delay -index $$i > $$o
22140 \family default
22141 」に設定されます.
22142 \end_layout
22143
22144 \begin_layout Description
22145
22146 \family sans
22147 NoWeb
22148 \family default
22149 ->
22150 \family sans
22151 Program
22152 \family default
22153  これは「tangling」を行います.上述のように,変換子は「
22154 \family typewriter
22155 build-script $$i $$r
22156 \family default
22157 」,フラグは「
22158 \family typewriter
22159 parselog=$$s/scripts/listerrors
22160 \family default
22161 」となります.
22162 \end_layout
22163
22164 \begin_layout Subsubsection
22165 デバッグ機能拡張
22166 \end_layout
22167
22168 \begin_layout Standard
22169 ddd/gdbまたは他のデバッガで使える「server-goto-file-row」関数が新たに\SpecialChar LyX
22170 サーバに実装されました.
22171 \end_layout
22172
22173 \begin_layout Standard
22174 ddd/gdbでデバッグしているとき,一つの
22175 \begin_inset Flex Ruby
22176 status collapsed
22177
22178 \begin_layout Plain Layout
22179
22180 \begin_inset Argument post:1
22181 status collapsed
22182
22183 \begin_layout Plain Layout
22184 キー
22185 \end_layout
22186
22187 \end_inset
22188
22189
22190 \end_layout
22191
22192 \end_inset
22193
22194 ストロークで現在実行している位置でテキストエディタを起動できます.既定のdddの設定ではShift-Ctrl-Vになっています.この設定はdddで
22195 \begin_inset Flex MenuItem
22196 status collapsed
22197
22198 \begin_layout Plain Layout
22199 ツール\SpecialChar menuseparator
22200 設定\SpecialChar menuseparator
22201 ファイル書式
22202 \end_layout
22203
22204 \end_inset
22205
22206 ウインドウを表示して,
22207 \begin_inset Flex MenuItem
22208 status collapsed
22209
22210 \begin_layout Plain Layout
22211 編集プログラム
22212 \end_layout
22213
22214 \end_inset
22215
22216 エントリを変えると変えることができます.
22217 \end_layout
22218
22219 \begin_layout Standard
22220 新しい\SpecialChar LyX
22221 サーバの関数と,このdddの機能を使うために
22222 \begin_inset Flex MenuItem
22223 status collapsed
22224
22225 \begin_layout Plain Layout
22226 編集プログラム
22227 \end_layout
22228
22229 \end_inset
22230
22231 を次のように設定してください.
22232 \end_layout
22233
22234 \begin_layout LyX-Code
22235
22236 \family sans
22237 echo "LYXCMD:monitor:server-goto-file-row:@FILE@ @LINE@" >~/.lyxpipe.in
22238 \end_layout
22239
22240 \begin_layout Standard
22241 こうしておくとdddを使っていてプログラムの編集したい場所があったとき,(dddのウインドウで)Shift-Ctrl-Vを押すだけでdddは\SpecialChar LyX
22242 サーバに情報を送り,\SpecialChar LyX
22243
22244 は同じファイルを表示し,カーソルはdddが示した場所へあらわれます.これでもうデバッグの最中に推測しながらスクロールして場所を探す必要がなくなります.
22245 \end_layout
22246
22247 \begin_layout Standard
22248 この機能が動くには\SpecialChar LyX
22249 サーバが利用可能でなければなりません(既定では\SpecialChar LyX
22250 サーバーは使えないようになっています).
22251 \end_layout
22252
22253 \begin_layout Standard
22254
22255 \begin_inset CommandInset ref
22256 LatexCommand ref
22257 reference "sec:サーバーを開始するには"
22258
22259 \end_inset
22260
22261 節にその方法が説明されています.
22262 \end_layout
22263
22264 \begin_layout Subsubsection
22265 ツールバー拡張
22266 \end_layout
22267
22268 \begin_layout Standard
22269 ツールバーに加えることのできる6つの新しいボタンがあります.そのうちの4つのボタンは
22270 \family sans
22271 標準
22272 \family default
22273 ・節・
22274 \family sans
22275 \SpecialChar LaTeX
22276
22277 \family default
22278
22279 \family sans
22280 \SpecialChar LyX
22281 コード
22282 \family default
22283 の段落環境へのショートカットであり,1つは拡張差込枠
22284 \family sans
22285 Chunk
22286 \family default
22287 へのショートカットです.最後の一つはファイルメニュー項目の「Build Program」への
22288 \begin_inset Flex Ruby
22289 status collapsed
22290
22291 \begin_layout Plain Layout
22292
22293 \family roman
22294 \series medium
22295 \shape up
22296 \size normal
22297 \emph off
22298 \bar no
22299 \noun off
22300 \color none
22301 捷径
22302 \family default
22303 \series default
22304 \shape default
22305 \size default
22306 \emph default
22307 \bar default
22308 \noun default
22309 \color inherit
22310
22311 \begin_inset Argument post:1
22312 status collapsed
22313
22314 \begin_layout Plain Layout
22315 ショートカット
22316 \end_layout
22317
22318 \end_inset
22319
22320
22321 \end_layout
22322
22323 \end_inset
22324
22325 です.
22326 \end_layout
22327
22328 \begin_layout Standard
22329 \SpecialChar LyX
22330 はツールバーで使うためのいくつものボタンを用意しています.私のツールバーはこの6つのショートカットに
22331 \begin_inset Flex MenuItem
22332 status collapsed
22333
22334 \begin_layout Plain Layout
22335 文書\SpecialChar menuseparator
22336 更新\SpecialChar menuseparator
22337 DVI
22338 \end_layout
22339
22340 \end_inset
22341
22342
22343 \begin_inset Flex MenuItem
22344 status collapsed
22345
22346 \begin_layout Plain Layout
22347 文書\SpecialChar menuseparator
22348 表示\SpecialChar menuseparator
22349 DVI
22350 \end_layout
22351
22352 \end_inset
22353
22354 を組み合わせたものになっています.
22355 \end_layout
22356
22357 \begin_layout LyX-Code
22358 Toolbar
22359 \end_layout
22360
22361 \begin_layout LyX-Code
22362   Layouts
22363 \end_layout
22364
22365 \begin_layout LyX-Code
22366   Icon "layout Standard"
22367 \end_layout
22368
22369 \begin_layout LyX-Code
22370   Icon "layout Section"
22371 \end_layout
22372
22373 \begin_layout LyX-Code
22374   Icon "layout latex"
22375 \end_layout
22376
22377 \begin_layout LyX-Code
22378   Icon "layout \SpecialChar LyX
22379 -Code"
22380 \end_layout
22381
22382 \begin_layout LyX-Code
22383   Icon "flex.insert Chunk"
22384 \end_layout
22385
22386 \begin_layout LyX-Code
22387   Separator
22388 \end_layout
22389
22390 \begin_layout LyX-Code
22391   Icon "buffer-view"
22392 \end_layout
22393
22394 \begin_layout LyX-Code
22395   Icon "buffer-typeset"
22396 \end_layout
22397
22398 \begin_layout LyX-Code
22399   Icon "build-program"
22400 \end_layout
22401
22402 \begin_layout LyX-Code
22403   Separator
22404 \end_layout
22405
22406 \begin_layout LyX-Code
22407 .
22408 \end_layout
22409
22410 \begin_layout LyX-Code
22411 .
22412 \end_layout
22413
22414 \begin_layout LyX-Code
22415 .
22416 \end_layout
22417
22418 \begin_layout LyX-Code
22419 End
22420 \end_layout
22421
22422 \begin_layout Subsubsection
22423 色の変更
22424 \end_layout
22425
22426 \begin_layout Standard
22427 \SpecialChar LyX
22428 ではいくつもの色を
22429 \begin_inset Flex MenuItem
22430 status collapsed
22431
22432 \begin_layout Plain Layout
22433 設定
22434 \end_layout
22435
22436 \end_inset
22437
22438 で変えることができます.人々が困りがちなのは,\SpecialChar LaTeX
22439 フォント色でしょう.これは,既定では赤になっていますが,chunkは\SpecialChar LaTeX
22440 フォントを使うことになっていて,文芸プログラミ
22441 ング文書には多くのchunkが現れるために,すべて赤で見ていると疲れてしまうかもしれません.これは,
22442 \begin_inset Flex MenuItem
22443 status collapsed
22444
22445 \begin_layout Plain Layout
22446 操作性\SpecialChar menuseparator
22447
22448 \end_layout
22449
22450 \end_inset
22451
22452 タブで変更することができます.
22453 \end_layout
22454
22455 \begin_layout Standard
22456 もう一つは,改行文字が画面に表示されていることでしょう.改行文字の色を背景の色と同じにすることで改行文字を見えなくできます.私は改行文字を背景の色に似ているが少
22457 し違う色にすることを勧めます.こうすると,改行文字があるのはわかりますが,じゃまにならないでしょう.
22458 \end_layout
22459
22460 \begin_layout Subsection
22461 \SpecialChar LyX
22462 とknitr/Sweave
22463 \end_layout
22464
22465 \begin_layout Standard
22466 knitrとSweaveへのサポートについては,用例ファイル
22467 \emph on
22468 knitr.lyx
22469 \emph default
22470 とSweave取扱説明書(
22471 \family sans
22472 ヘルプ\SpecialChar menuseparator
22473 用途別説明書
22474 \family default
22475 メニュー)に説明があります.
22476 \end_layout
22477
22478 \begin_layout Chapter
22479 特殊機能
22480 \begin_inset CommandInset label
22481 LatexCommand label
22482 name "chap:Special-features"
22483
22484 \end_inset
22485
22486
22487 \end_layout
22488
22489 \begin_layout Standard
22490 \SpecialChar LyX
22491 では,\SpecialChar LaTeX
22492 で可能なことは何でも出来ます.すべての\SpecialChar LaTeX
22493 の機能を直接サポートできるわけではありませんが,どんな場合でも\SpecialChar TeX
22494 コードを使用することはできます.本章は,ユーザの興味が
22495 有りそうな特別な機能について,若干取り上げます.図表やフロート,ボックス,注釈に関する特別な機能については,取扱説明書『
22496 \emph on
22497 埋込オブジェクト篇
22498 \emph default
22499 』をご参照ください.
22500 \end_layout
22501
22502 \begin_layout Section
22503 多段組
22504 \end_layout
22505
22506 \begin_layout Standard
22507 この機能は,文書設定の
22508 \family sans
22509 本文レイアウト
22510 \family default
22511 にある
22512 \family sans
22513 二段組文書
22514 \family default
22515 とは別の機能です.文書全体に二段組を行いたい場合には,
22516 \family sans
22517 二段組文書
22518 \family default
22519 オプションを利用することをお勧めします.その他の場合には,本機能をご使用ください.
22520 \end_layout
22521
22522 \begin_layout Standard
22523 文書中で多段組を行うには,\SpecialChar LaTeX
22524 パッケージ
22525 \begin_inset Flex Code
22526 status collapsed
22527
22528 \begin_layout Plain Layout
22529 multicol
22530 \end_layout
22531
22532 \end_inset
22533
22534
22535 \begin_inset Index idx
22536 status collapsed
22537
22538 \begin_layout Plain Layout
22539 \SpecialChar LaTeX
22540 ぱっけーじ @ \SpecialChar LaTeX
22541 パッケージ ! multicol
22542 \end_layout
22543
22544 \end_inset
22545
22546 を導入した上で,(
22547 \family sans
22548 文書\SpecialChar menuseparator
22549 設定\SpecialChar menuseparator
22550 モジュール
22551 \family default
22552 メニューから)
22553 \family sans
22554 多段組
22555 \family default
22556 モジュールを読み込んでください.
22557 \end_layout
22558
22559 \begin_layout Standard
22560 多段組中の脚注は,ページ下部に置かれ,各段の下ごとには置かれません.各段においては,フロートに
22561 \family sans
22562 段をまたぐ
22563 \family default
22564 オプションを使用する必要があるほかは,通常通りの使用をすることができます.
22565 \end_layout
22566
22567 \begin_layout Subsection
22568 基本
22569 \end_layout
22570
22571 \begin_layout Standard
22572 文章中で二段組を使用したい場合には,段組を始める場所で
22573 \family sans
22574 挿入\SpecialChar menuseparator
22575 任意設定差込枠\SpecialChar menuseparator
22576 多段組
22577 \family default
22578 メニューを使用して,多段組差込枠を挿入してください.二段組で印字されるべき文章は,全てこの差込枠の中に書いてください.
22579 \end_layout
22580
22581 \begin_layout Standard
22582 下記はその用例です.
22583 \end_layout
22584
22585 \begin_layout Standard
22586 \noindent
22587 \begin_inset Flex Multiple Columns
22588 status open
22589
22590 \begin_layout Plain Layout
22591 \noindent
22592
22593 \series bold
22594 \size small
22595 The Adventure of the Empty House
22596 \series default
22597
22598 \begin_inset Newline newline
22599 \end_inset
22600
22601 by Sir Arthur Conan Doyle
22602 \end_layout
22603
22604 \begin_layout Plain Layout
22605
22606 \size small
22607 It was in the spring of the year 1894 that all London was interested, and
22608  the fashionable world dismayed, by the murder of the Honourable Ronald
22609  Adair under most unusual and inexplicable circumstances.
22610  The public has already learned those particulars of the crime which came
22611  out in the police investigation, but a good deal was suppressed upon that
22612  occasion, since the case for the prosecution was so overwhelmingly strong
22613  that it was not necessary to bring forward all the facts.
22614  Only now, at the end of nearly ten years, am I allowed to supply those
22615  missing links which make up the whole of that remarkable chain.
22616  The crime was of interest in itself, but that interest was as nothing to
22617  me compared to the inconceivable sequel, which afforded me the greatest
22618  shock and surprise of any event in my adventurous life.
22619  Even now, after this long interval, I find myself thrilling as I think
22620  of it, and feeling once more that sudden flood of joy, amazement, and increduli
22621 ty which utterly submerged my mind.
22622  Let me say to that public, which has shown some interest in those glimpses
22623  which I have occasionally given them of the thoughts and actions of a very
22624  remarkable man, that they are not to blame me if I have not shared my knowledge
22625  with them, for I should have considered it my first duty to do so, had
22626  I not been barred by a positive prohibition from his own lips, which was
22627  only withdrawn upon the third of last month.
22628 \end_layout
22629
22630 \end_inset
22631
22632
22633 \end_layout
22634
22635 \begin_layout Standard
22636 三段以上にするには,カーソルを多段組差込枠の内部において,挿入\SpecialChar menuseparator
22637 段数メニューを使用してください.この差込枠の中に,欲しい段数を書き入れます(三段組の場合には「3」
22638 と書きます).
22639 \begin_inset Newline newline
22640 \end_inset
22641
22642 下記は三段組の例です.
22643 \end_layout
22644
22645 \begin_layout Standard
22646 \begin_inset Flex Multiple Columns
22647 status open
22648
22649 \begin_layout Plain Layout
22650
22651 \size footnotesize
22652 \begin_inset Argument 1
22653 status open
22654
22655 \begin_layout Plain Layout
22656 3
22657 \end_layout
22658
22659 \end_inset
22660
22661 It can be imagined that my close intimacy with Sherlock Holmes had interested
22662  me deeply in crime, and that after his disappearance I never failed to
22663  read with care the various problems which came before the public.
22664  And I even attempted, more than once, for my own private satisfaction,
22665  to employ his methods in their solution, though with indifferent success.
22666  There was none, however, which appealed to me like this tragedy of Ronald
22667  Adair.
22668  As I read the evidence at the inquest, which led up to a verdict of willful
22669  murder against some person or persons unknown, I realized more clearly
22670  than I had ever done the loss which the community had sustained by the
22671  death of Sherlock Holmes.
22672  There were points about this strange business which would, I was sure,
22673  have specially appealed to him, and the efforts of the police would have
22674  been supplemented, or more probably anticipated, by the trained observation
22675  and the alert mind of the first criminal agent in Europe.
22676  All day, as I drove upon my round, I turned over the case in my mind and
22677  found no explanation which appeared to me to be adequate.
22678  At the risk of telling a twice-told tale, I will recapitulate the facts
22679  as they were known to the public at the conclusion of the inquest.
22680 \end_layout
22681
22682 \end_inset
22683
22684
22685 \end_layout
22686
22687 \begin_layout Standard
22688 お望みならば10段組まで組むことができますが,文書の読者にとっては,あまり気持ちのいいものではないでしょう.
22689 \end_layout
22690
22691 \begin_layout Standard
22692 \begin_inset Newpage newpage
22693 \end_inset
22694
22695
22696 \end_layout
22697
22698 \begin_layout Subsection
22699 段組中の段組
22700 \end_layout
22701
22702 \begin_layout Standard
22703 また,段中に段を組むこともできます.
22704 \end_layout
22705
22706 \begin_layout Standard
22707 \begin_inset Flex Multiple Columns
22708 status open
22709
22710 \begin_layout Plain Layout
22711
22712 \size footnotesize
22713 The Honourable Ronald Adair was the second son of the Earl of Maynooth,
22714  at that time governor of one of the Australian colonies.
22715  Adair's mother had returned from Australia to undergo the operation for
22716  cataract, and she, her son Ronald, and her daughter Hilda were living together
22717  at 427 Park Lane.
22718 \end_layout
22719
22720 \begin_layout Plain Layout
22721 \begin_inset Flex Multiple Columns
22722 status open
22723
22724 \begin_layout Plain Layout
22725
22726 \size footnotesize
22727 The youth moved in the best society–had, so far as was known, no enemies
22728  and no particular vices.
22729  He had been engaged to Miss Edith Woodley, of Carstairs, but the engagement
22730  had been broken off by mutual consent some months before, and there was
22731  no sign that it had left any very profound feeling behind it.
22732  For the rest {sic} the man's life moved in a narrow and conventional circle,
22733  for his habits were quiet and his nature unemotional.
22734  Yet it was upon this easy-going young aristocrat that death came, in most
22735  strange and unexpected form, between the hours of ten and eleven-twenty
22736  on the night of March 30, 1894.
22737 \end_layout
22738
22739 \end_inset
22740
22741
22742 \end_layout
22743
22744 \begin_layout Plain Layout
22745
22746 \size footnotesize
22747 Ronald Adair was fond of cards–playing continually, but never for such stakes
22748  as would hurt him.
22749  He was a member of the Baldwin, the Cavendish, and the Bagatelle card clubs.
22750  It was shown that, after dinner on the day of his death, he had played
22751  a rubber of whist at the latter club.
22752  He had also played there in the afternoon.
22753
22754 \size default
22755  
22756 \size footnotesize
22757 The evidence of those who had played with him– Mr.
22758  Murray, Sir John Hardy, and Colonel Moran–showed that the game was whist,
22759  and that there was a fairly equal fall of the cards.
22760  Adair might have lost five pounds, but not more.
22761  His fortune was a considerable one, and such a loss could not in any way
22762  affect him.
22763  He had played nearly every day at one club or other, but he was a cautious
22764  player, and usually rose a winner.
22765  It came out in evidence that, in partnership with Colonel Moran, he had
22766  actually won as much as four hundred and twenty pounds in a sitting, some
22767  weeks before, from Godfrey Milner and Lord Balmoral.
22768  So much for his recent history as it came out at the inquest.
22769 \end_layout
22770
22771 \end_inset
22772
22773
22774 \end_layout
22775
22776 \begin_layout Subsection
22777 応用例
22778 \end_layout
22779
22780 \begin_layout Standard
22781 本節の用例は,多段組のさらに特別な機能を示すためのものです.
22782 \end_layout
22783
22784 \begin_layout Standard
22785 多段組機能についてさらに知りたい場合には,\SpecialChar LaTeX
22786 パッケージ
22787 \begin_inset Flex Code
22788 status collapsed
22789
22790 \begin_layout Plain Layout
22791 multicol
22792 \end_layout
22793
22794 \end_inset
22795
22796
22797 \begin_inset CommandInset href
22798 LatexCommand href
22799 name "取扱説明書"
22800 target "http://mirror.ctan.org/macros/latex/required/tools/multicol.pdf"
22801 literal "false"
22802
22803 \end_inset
22804
22805 をご覧ください.
22806 \end_layout
22807
22808 \begin_layout Subsubsection
22809 序文
22810 \end_layout
22811
22812 \begin_layout Standard
22813 多段組に序文を追記するには,カーソルを多段組差込枠内部に置き,
22814 \family sans
22815 挿入\SpecialChar menuseparator
22816 序文
22817 \family default
22818 メニューを使用してください.序文は,この差込枠内に書いてください.
22819 \begin_inset Newline newline
22820 \end_inset
22821
22822 序文のある文章の例を掲げます.
22823 \end_layout
22824
22825 \begin_layout Standard
22826 \begin_inset VSpace bigskip
22827 \end_inset
22828
22829
22830 \end_layout
22831
22832 \begin_layout Standard
22833 \begin_inset Flex Multiple Columns
22834 status open
22835
22836 \begin_layout Plain Layout
22837 \begin_inset Argument 2
22838 status open
22839
22840 \begin_layout Plain Layout
22841 And the story continues and continues and continues and continues\SpecialChar ldots
22842
22843 \end_layout
22844
22845 \end_inset
22846
22847
22848 \size small
22849 On the evening of the crime, he returned from the club exactly at ten.
22850  His mother and sister were out spending the evening with a relation.
22851  The servant deposed that she heard him enter the front room on the second
22852  floor, generally used as his sitting-room.
22853  She had lit a fire there, and as it smoked she had opened the window.
22854  No sound was heard from the room until eleven-twenty, the hour of the return
22855  of Lady Maynooth and her daughter.
22856  Desiring to say good-night, she attempted to enter her son's room.
22857  The door was locked on the inside, and no answer could be got to their
22858  cries and knocking.
22859  Help was obtained, and the door forced.
22860  The unfortunate young man was found lying near the table.
22861  His head had been horribly mutilated by an expanding revolver bullet, but
22862  no weapon of any sort was to be found in the room.
22863 \end_layout
22864
22865 \end_inset
22866
22867
22868 \end_layout
22869
22870 \begin_layout Standard
22871 最初の\SpecialChar TeX
22872 コードの後に,節宣言コマンドを\SpecialChar TeX
22873 コードとして使用すれば,節見出しを前書きとして使用することができます.例えば,
22874 \end_layout
22875
22876 \begin_layout Standard
22877
22878 \series bold
22879
22880 \backslash
22881 subsection{小節見出し}
22882 \end_layout
22883
22884 \begin_layout Standard
22885 というコマンドは,小節を生成します.以下の例では,前書きが小々節になっています.
22886 \end_layout
22887
22888 \begin_layout Standard
22889 \begin_inset Flex Multiple Columns
22890 status open
22891
22892 \begin_layout Plain Layout
22893 \begin_inset Argument 2
22894 status open
22895
22896 \begin_layout Plain Layout
22897 \begin_inset ERT
22898 status collapsed
22899
22900 \begin_layout Plain Layout
22901
22902
22903 \backslash
22904 subsubsection{
22905 \end_layout
22906
22907 \end_inset
22908
22909 これは序文の小々節見出しです
22910 \begin_inset ERT
22911 status collapsed
22912
22913 \begin_layout Plain Layout
22914
22915 }
22916 \end_layout
22917
22918 \end_inset
22919
22920
22921 \end_layout
22922
22923 \end_inset
22924
22925
22926 \size small
22927 A minute examination of the circumstances served only to make the case more
22928  complex.
22929  In the first place, no reason could be given why the young man should have
22930  fastened the door upon the inside.
22931  There was the possibility that the murderer had done this, and had afterwards
22932  escaped by the window.
22933  The drop was at least twenty feet, however, and a bed of crocuses in full
22934  bloom lay beneath.
22935  Neither the flowers nor the earth showed any sign of having been disturbed,
22936  nor were there any marks upon the narrow strip of grass which separated
22937  the house from the road.
22938  Apparently, therefore, it was the young man himself who had fastened the
22939  door.
22940  But how did he come by his death? No one could have climbed up to the window
22941  without leaving traces.
22942  Suppose a man had fired through the window, he would indeed be a remarkable
22943  shot who could with a revolver inflict so deadly a wound.
22944  Again, Park Lane is a frequented thoroughfare; there is a cab stand within
22945  a hundred yards of the house.
22946  No one had heard a shot.
22947 \end_layout
22948
22949 \end_inset
22950
22951
22952 \end_layout
22953
22954 \begin_layout Standard
22955 多段組を開始する部分に,必要とされる6行を確保出来るだけの垂直スペースがページに残されていない場合,多段組の前に改行が挿入されます.前書きの行数如何では,この必
22956 要行数を変更したいかもしれません.これは,カーソルを多段組差込枠内部の(もしあれば)序文の後に置き,
22957 \family sans
22958 挿入\SpecialChar menuseparator
22959 改頁前の余白
22960 \family default
22961 メニューを使用することで設定できます.この差込枠に,余白の大きさを「5cm」などと書き込んでください.
22962 \end_layout
22963
22964 \begin_layout Standard
22965 以下の例では,
22966 \begin_inset Flex Code
22967 status collapsed
22968
22969 \begin_layout Plain Layout
22970 7
22971 \backslash
22972 baselineskip
22973 \end_layout
22974
22975 \end_inset
22976
22977 を用いて,必要行数を7行に指定しています(コマンド
22978 \begin_inset Flex Code
22979 status collapsed
22980
22981 \begin_layout Plain Layout
22982
22983 \backslash
22984 baselineskip
22985 \end_layout
22986
22987 \end_inset
22988
22989 は\SpecialChar TeX
22990 コードとして入力する必要があります).
22991 \end_layout
22992
22993 \begin_layout Standard
22994 \begin_inset Flex Multiple Columns
22995 status open
22996
22997 \begin_layout Plain Layout
22998 \begin_inset Argument 3
22999 status open
23000
23001 \begin_layout Plain Layout
23002 7
23003 \begin_inset ERT
23004 status collapsed
23005
23006 \begin_layout Plain Layout
23007
23008
23009 \backslash
23010 baselineskip
23011 \end_layout
23012
23013 \end_inset
23014
23015
23016 \end_layout
23017
23018 \end_inset
23019
23020
23021 \size small
23022 On the evening of the crime, he returned from the club exactly at ten.
23023  His mother and sister were out spending the evening with a relation.
23024  The servant deposed that she heard him enter the front room on the second
23025  floor, generally used as his sitting-room.
23026  She had lit a fire there, and as it smoked she had opened the window.
23027  No sound was heard from the room until eleven-twenty, the hour of the return
23028  of Lady Maynooth and her daughter.
23029  Desiring to say good-night, she attempted to enter her son's room.
23030  The door was locked on the inside, and no answer could be got to their
23031  cries and knocking.
23032  Help was obtained, and the door forced.
23033  The unfortunate young man was found lying near the table.
23034  His head had been horribly mutilated by an expanding revolver bullet, but
23035  no weapon of any sort was to be found in the room.
23036 \end_layout
23037
23038 \end_inset
23039
23040
23041 \end_layout
23042
23043 \begin_layout Subsubsection
23044 周囲の余白
23045 \end_layout
23046
23047 \begin_layout Standard
23048 多段組の前後の余白は,長さ
23049 \begin_inset Flex Code
23050 status collapsed
23051
23052 \begin_layout Plain Layout
23053
23054 \backslash
23055 multicolsep
23056 \end_layout
23057
23058 \end_inset
23059
23060 を変えることで変更することができます.例えば,\SpecialChar TeX
23061 コードで書かれたコマンド
23062 \end_layout
23063
23064 \begin_layout LyX-Code
23065
23066 \family sans
23067
23068 \backslash
23069 setlength{
23070 \backslash
23071 multicolsep}{3cm}
23072 \end_layout
23073
23074 \begin_layout Standard
23075 は,その値を3
23076 \begin_inset space \thinspace{}
23077 \end_inset
23078
23079 cmに変更します.この変更は,多段組が始まる前に指定しなくてはなりません.既定値は13
23080 \begin_inset space \thinspace{}
23081 \end_inset
23082
23083 ptです.
23084 \end_layout
23085
23086 \begin_layout Standard
23087 以下の例では,
23088 \begin_inset Flex Code
23089 status collapsed
23090
23091 \begin_layout Plain Layout
23092
23093 \backslash
23094 multicolsep
23095 \end_layout
23096
23097 \end_inset
23098
23099 は2.5
23100 \begin_inset space \thinspace{}
23101 \end_inset
23102
23103 cmに指定されています.
23104 \end_layout
23105
23106 \begin_layout Standard
23107 \begin_inset ERT
23108 status open
23109
23110 \begin_layout Plain Layout
23111
23112
23113 \backslash
23114 setlength{
23115 \backslash
23116 multicolsep}{2.5cm}
23117 \end_layout
23118
23119 \end_inset
23120
23121
23122 \end_layout
23123
23124 \begin_layout Standard
23125 \begin_inset Flex Multiple Columns
23126 status open
23127
23128 \begin_layout Plain Layout
23129
23130 \size small
23131 All day I turned these facts over in my mind, endeavouring to hit upon some
23132  theory which could reconcile them all, and to find that line of least resistanc
23133 e which my poor friend had declared to be the starting-point of every investigat
23134 ion.
23135  I confess that I made little progress.
23136  In the evening I strolled across the Park, and found myself about six o'clock
23137  at the Oxford Street end of Park Lane.
23138  A group of loafers upon the pavements, all staring up at a particular window,
23139  directed me to the house which I had come to see.
23140  A tall, thin man with coloured glasses, whom I strongly suspected of being
23141  a plain-clothes detective, was pointing out some theory of his own, while
23142  the others crowded round to listen to what he said.
23143  I got as near him as I could, but his observations seemed to me to be absurd,
23144  so I withdrew again in some disgust.
23145  As I did so I struck against an elderly, deformed man, who had been behind
23146  me, and I knocked down several books which he was carrying.
23147 \end_layout
23148
23149 \end_inset
23150
23151
23152 \end_layout
23153
23154 \begin_layout Standard
23155 \begin_inset Note Greyedout
23156 status open
23157
23158 \begin_layout Plain Layout
23159
23160 \series bold
23161 【註】
23162 \series default
23163
23164 \begin_inset Flex Code
23165 status collapsed
23166
23167 \begin_layout Plain Layout
23168
23169 \backslash
23170 setlength
23171 \end_layout
23172
23173 \end_inset
23174
23175 で指定した値は,再度変更されるまでは,以降のすべての多段組で使用されます.
23176 \end_layout
23177
23178 \end_inset
23179
23180
23181 \end_layout
23182
23183 \begin_layout Standard
23184 \begin_inset ERT
23185 status collapsed
23186
23187 \begin_layout Plain Layout
23188
23189
23190 \backslash
23191 setlength{
23192 \backslash
23193 multicolsep}{13pt}
23194 \end_layout
23195
23196 \end_inset
23197
23198
23199 \begin_inset Note Note
23200 status collapsed
23201
23202 \begin_layout Plain Layout
23203
23204 \lang english
23205 go back to the default
23206 \end_layout
23207
23208 \end_inset
23209
23210
23211 \end_layout
23212
23213 \begin_layout Standard
23214 \begin_inset Newpage newpage
23215 \end_inset
23216
23217
23218 \end_layout
23219
23220 \begin_layout Subsubsection
23221 改段
23222 \end_layout
23223
23224 \begin_layout Standard
23225 改段は,文章中の階段を行いたい位置に,\SpecialChar TeX
23226 コードで,コマンド
23227 \begin_inset Flex Code
23228 status collapsed
23229
23230 \begin_layout Plain Layout
23231
23232 \backslash
23233 columnbreak{}
23234 \end_layout
23235
23236 \end_inset
23237
23238 を挿入すれば,強制的に行うことができます.ただし,多くの場合,文章中に空白が挿入されることに注意してください.
23239 \begin_inset Newline newline
23240 \end_inset
23241
23242 以下が用例です.
23243 \end_layout
23244
23245 \begin_layout Standard
23246 \begin_inset Flex Multiple Columns
23247 status open
23248
23249 \begin_layout Plain Layout
23250
23251 \size small
23252 \begin_inset Quotes eld
23253 \end_inset
23254
23255 You're surprised to see me, sir,
23256 \begin_inset Quotes erd
23257 \end_inset
23258
23259  said he, in a strange, croaking voice.
23260 \end_layout
23261
23262 \begin_layout Plain Layout
23263
23264 \size small
23265 I acknowledged that I was.
23266 \end_layout
23267
23268 \begin_layout Plain Layout
23269
23270 \size small
23271 \begin_inset Quotes eld
23272 \end_inset
23273
23274 Well, I've a conscience, sir, and when I chanced to see you go into this
23275  house, as I came hobbling after you, I thought to myself, I'll just step
23276  in and see that kind gentleman, and tell him that if I was a bit gruff
23277  in my manner there was not any harm meant, and that I am much obliged to
23278  him for picking up my books.
23279 \begin_inset Quotes erd
23280 \end_inset
23281
23282
23283 \end_layout
23284
23285 \begin_layout Plain Layout
23286
23287 \size small
23288 \begin_inset Quotes eld
23289 \end_inset
23290
23291 You make too much of a trifle,
23292 \begin_inset Quotes erd
23293 \end_inset
23294
23295  said I.
23296  
23297 \begin_inset Quotes eld
23298 \end_inset
23299
23300 May I ask how you knew who I was?
23301 \begin_inset Quotes erd
23302 \end_inset
23303
23304  AFTER THIS SENTENCE THE COLUMN BREAK IS FORCED.
23305 \begin_inset ERT
23306 status collapsed
23307
23308 \begin_layout Plain Layout
23309
23310
23311 \backslash
23312 columnbreak{}
23313 \end_layout
23314
23315 \end_inset
23316
23317
23318 \end_layout
23319
23320 \begin_layout Plain Layout
23321
23322 \size small
23323 \begin_inset Quotes eld
23324 \end_inset
23325
23326 Well, sir, if it isn't too great a liberty, I am a neighbour of yours, for
23327  you'll find my little bookshop at the corner of Church Street, and very
23328  happy to see you, I am sure.
23329  Maybe you collect yourself, sir.
23330  Here's 
23331 \noun on
23332 British
23333 \begin_inset space ~
23334 \end_inset
23335
23336 Birds
23337 \noun default
23338 , and 
23339 \noun on
23340 Catullus
23341 \noun default
23342 , and 
23343 \noun on
23344 The Holy War
23345 \noun default
23346 –a bargain, every one of them.
23347  With five volumes you could just fill that gap on that second shelf.
23348  It looks untidy, does it not, sir?
23349 \begin_inset Quotes erd
23350 \end_inset
23351
23352
23353 \end_layout
23354
23355 \end_inset
23356
23357
23358 \end_layout
23359
23360 \begin_layout Subsubsection
23361 段間隔
23362 \end_layout
23363
23364 \begin_layout Standard
23365 段幅は自動的に計算されますが,段の間の余白は指定することができます.これは,長さ
23366 \begin_inset Flex Code
23367 status collapsed
23368
23369 \begin_layout Plain Layout
23370
23371 \backslash
23372 columnsep
23373 \end_layout
23374
23375 \end_inset
23376
23377 を変更することで実現できます.既定値は10
23378 \begin_inset space \thinspace{}
23379 \end_inset
23380
23381 ptです.以下は
23382 \begin_inset Flex Code
23383 status collapsed
23384
23385 \begin_layout Plain Layout
23386
23387 \backslash
23388 columnsep
23389 \end_layout
23390
23391 \end_inset
23392
23393 を3
23394 \begin_inset space \thinspace{}
23395 \end_inset
23396
23397 cmに設定した例です.
23398 \end_layout
23399
23400 \begin_layout Standard
23401 \begin_inset ERT
23402 status open
23403
23404 \begin_layout Plain Layout
23405
23406
23407 \backslash
23408 setlength{
23409 \backslash
23410 columnsep}{3cm}
23411 \end_layout
23412
23413 \end_inset
23414
23415
23416 \end_layout
23417
23418 \begin_layout Standard
23419 \begin_inset Flex Multiple Columns
23420 status open
23421
23422 \begin_layout Plain Layout
23423
23424 \size small
23425 My observations of No.
23426 \begin_inset space \space{}
23427 \end_inset
23428
23429 427 Park Lane did little to clear up the problem in which I was interested.
23430  The house was separated from the street by a low wall and railing, the
23431  whole not more than five feet high.
23432  It was perfectly easy, therefore, for anyone to get into the garden, but
23433  the window was entirely inaccessible, since there was no water pipe or
23434  anything which could help the most active man to climb it.
23435  More puzzled than ever, I retraced my steps to Kensington.
23436  I had not been in my study five minutes when the maid entered to say that
23437  a person desired to see me.
23438  To my astonishment it was none other than my strange old book collector,
23439  his sharp, wizened face peering out from a frame of white hair, and his
23440  precious volumes, a dozen of them at least, wedged under his right arm.
23441 \end_layout
23442
23443 \end_inset
23444
23445
23446 \end_layout
23447
23448 \begin_layout Standard
23449 \begin_inset ERT
23450 status collapsed
23451
23452 \begin_layout Plain Layout
23453
23454
23455 \backslash
23456 setlength{
23457 \backslash
23458 columnsep}{10pt}
23459 \end_layout
23460
23461 \end_inset
23462
23463
23464 \begin_inset Note Note
23465 status collapsed
23466
23467 \begin_layout Plain Layout
23468
23469 \lang english
23470 go back to the default
23471 \end_layout
23472
23473 \end_inset
23474
23475
23476 \end_layout
23477
23478 \begin_layout Subsubsection
23479 垂直線
23480 \end_layout
23481
23482 \begin_layout Standard
23483 段間には,長さ
23484 \begin_inset Flex Code
23485 status collapsed
23486
23487 \begin_layout Plain Layout
23488
23489 \backslash
23490 columnseprule
23491 \end_layout
23492
23493 \end_inset
23494
23495 の幅を持つ罫線が描かれます.罫線幅を0
23496 \begin_inset space \thinspace{}
23497 \end_inset
23498
23499 ptにすると(これが既定値です),罫線は出力されません.以下の例では,段を分かつ線は2
23500 \begin_inset space \thinspace{}
23501 \end_inset
23502
23503 pt幅に設定されています.
23504 \end_layout
23505
23506 \begin_layout Standard
23507 \begin_inset ERT
23508 status open
23509
23510 \begin_layout Plain Layout
23511
23512
23513 \backslash
23514 setlength{
23515 \backslash
23516 columnseprule}{2pt}
23517 \end_layout
23518
23519 \end_inset
23520
23521
23522 \end_layout
23523
23524 \begin_layout Standard
23525 \begin_inset Flex Multiple Columns
23526 status open
23527
23528 \begin_layout Plain Layout
23529
23530 \size small
23531 \begin_inset Quotes eld
23532 \end_inset
23533
23534 You're surprised to see me, sir,
23535 \begin_inset Quotes erd
23536 \end_inset
23537
23538  said he, in a strange, croaking voice.
23539 \end_layout
23540
23541 \begin_layout Plain Layout
23542
23543 \size small
23544 I acknowledged that I was.
23545 \end_layout
23546
23547 \begin_layout Plain Layout
23548
23549 \size small
23550 \begin_inset Quotes eld
23551 \end_inset
23552
23553 Well, I've a conscience, sir, and when I chanced to see you go into this
23554  house, as I came hobbling after you, I thought to myself, I'll just step
23555  in and see that kind gentleman, and tell him that if I was a bit gruff
23556  in my manner there was not any harm meant, and that I am much obliged to
23557  him for picking up my books.
23558 \begin_inset Quotes erd
23559 \end_inset
23560
23561
23562 \end_layout
23563
23564 \begin_layout Plain Layout
23565
23566 \size small
23567 \begin_inset Quotes eld
23568 \end_inset
23569
23570 You make too much of a trifle,
23571 \begin_inset Quotes erd
23572 \end_inset
23573
23574  said I.
23575  
23576 \begin_inset Quotes eld
23577 \end_inset
23578
23579 May I ask how you knew who I was?
23580 \begin_inset Quotes erd
23581 \end_inset
23582
23583
23584 \end_layout
23585
23586 \begin_layout Plain Layout
23587
23588 \size small
23589 \begin_inset Quotes eld
23590 \end_inset
23591
23592 Well, sir, if it isn't too great a liberty, I am a neighbour of yours, for
23593  you'll find my little bookshop at the corner of Church Street, and very
23594  happy to see you, I am sure.
23595  Maybe you collect yourself, sir.
23596  Here's 
23597 \noun on
23598 British
23599 \begin_inset space ~
23600 \end_inset
23601
23602 Birds
23603 \noun default
23604 , and 
23605 \noun on
23606 Catullus
23607 \noun default
23608 , and 
23609 \noun on
23610 The Holy War
23611 \noun default
23612 –a bargain, every one of them.
23613  With five volumes you could just fill that gap on that second shelf.
23614  It looks untidy, does it not, sir?
23615 \begin_inset Quotes erd
23616 \end_inset
23617
23618
23619 \end_layout
23620
23621 \end_inset
23622
23623
23624 \end_layout
23625
23626 \begin_layout Standard
23627 \begin_inset VSpace defskip
23628 \end_inset
23629
23630
23631 \end_layout
23632
23633 \begin_layout Standard
23634 罫線は,コマンド
23635 \begin_inset Flex Code
23636 status collapsed
23637
23638 \begin_layout Plain Layout
23639
23640 \backslash
23641 columnseprulecolor
23642 \end_layout
23643
23644 \end_inset
23645
23646 を再定義すれば,着色することができます.これは,多段組差込枠の前に\SpecialChar TeX
23647 コードで以下のコマンドを挿入すれば,実現できます.
23648 \end_layout
23649
23650 \begin_layout LyX-Code
23651
23652 \backslash
23653 renewcommand{
23654 \backslash
23655 columnseprulecolor}{
23656 \backslash
23657 color{red}}
23658 \end_layout
23659
23660 \begin_layout Standard
23661 このコマンド中の
23662 \begin_inset Flex Code
23663 status collapsed
23664
23665 \begin_layout Plain Layout
23666
23667 \backslash
23668 red
23669 \end_layout
23670
23671 \end_inset
23672
23673 をお好みの色に変更してください.既定色とユーザー定義色の全てを使用することができます.既定色とユーザー定義色についての詳細な情報は,取扱説明書『埋込オブジェクト
23674 篇』の「色付き表」の節をご覧ください.既定色に戻すには,以下のコマンドを挿入してください.
23675 \end_layout
23676
23677 \begin_layout LyX-Code
23678
23679 \backslash
23680 renewcommand{
23681 \backslash
23682 columnseprulecolor}{
23683 \backslash
23684 normalcolor}
23685 \end_layout
23686
23687 \begin_layout Standard
23688 以下は,シアン色の罫線と1
23689 \begin_inset space \thinspace{}
23690 \end_inset
23691
23692 cmの段間隔を持つ例です.
23693 \end_layout
23694
23695 \begin_layout Standard
23696 \begin_inset ERT
23697 status open
23698
23699 \begin_layout Plain Layout
23700
23701
23702 \backslash
23703 setlength{
23704 \backslash
23705 columnsep}{1cm}
23706 \end_layout
23707
23708 \begin_layout Plain Layout
23709
23710
23711 \backslash
23712 renewcommand{
23713 \backslash
23714 columnseprulecolor}{
23715 \backslash
23716 color{cyan}}
23717 \end_layout
23718
23719 \end_inset
23720
23721
23722 \end_layout
23723
23724 \begin_layout Standard
23725 \begin_inset Flex Multiple Columns
23726 status open
23727
23728 \begin_layout Plain Layout
23729
23730 \size small
23731 \begin_inset Quotes eld
23732 \end_inset
23733
23734 You're surprised to see me, sir,
23735 \begin_inset Quotes erd
23736 \end_inset
23737
23738  said he, in a strange, croaking voice.
23739 \end_layout
23740
23741 \begin_layout Plain Layout
23742
23743 \size small
23744 I acknowledged that I was.
23745 \end_layout
23746
23747 \begin_layout Plain Layout
23748
23749 \size small
23750 \begin_inset Quotes eld
23751 \end_inset
23752
23753 Well, I've a conscience, sir, and when I chanced to see you go into this
23754  house, as I came hobbling after you, I thought to myself, I'll just step
23755  in and see that kind gentleman, and tell him that if I was a bit gruff
23756  in my manner there was not any harm meant, and that I am much obliged to
23757  him for picking up my books.
23758 \begin_inset Quotes erd
23759 \end_inset
23760
23761
23762 \end_layout
23763
23764 \begin_layout Plain Layout
23765
23766 \size small
23767 \begin_inset Quotes eld
23768 \end_inset
23769
23770 You make too much of a trifle,
23771 \begin_inset Quotes erd
23772 \end_inset
23773
23774  said I.
23775  
23776 \begin_inset Quotes eld
23777 \end_inset
23778
23779 May I ask how you knew who I was?
23780 \begin_inset Quotes erd
23781 \end_inset
23782
23783
23784 \end_layout
23785
23786 \begin_layout Plain Layout
23787
23788 \size small
23789 \begin_inset Quotes eld
23790 \end_inset
23791
23792 Well, sir, if it isn't too great a liberty, I am a neighbour of yours, for
23793  you'll find my little bookshop at the corner of Church Street, and very
23794  happy to see you, I am sure.
23795  Maybe you collect yourself, sir.
23796  Here's 
23797 \noun on
23798 British
23799 \begin_inset space ~
23800 \end_inset
23801
23802 Birds
23803 \noun default
23804 , and 
23805 \noun on
23806 Catullus
23807 \noun default
23808 , and 
23809 \noun on
23810 The Holy War
23811 \noun default
23812 –a bargain, every one of them.
23813  With five volumes you could just fill that gap on that second shelf.
23814  It looks untidy, does it not, sir?
23815 \begin_inset Quotes erd
23816 \end_inset
23817
23818
23819 \end_layout
23820
23821 \end_inset
23822
23823
23824 \end_layout
23825
23826 \begin_layout Standard
23827 \begin_inset ERT
23828 status collapsed
23829
23830 \begin_layout Plain Layout
23831
23832
23833 \backslash
23834 setlength{
23835 \backslash
23836 columnseprule}{0pt}
23837 \end_layout
23838
23839 \begin_layout Plain Layout
23840
23841
23842 \backslash
23843 renewcommand{
23844 \backslash
23845 columnseprulecolor}{
23846 \backslash
23847 normalcolor}
23848 \end_layout
23849
23850 \end_inset
23851
23852
23853 \begin_inset Note Note
23854 status collapsed
23855
23856 \begin_layout Plain Layout
23857
23858 \lang english
23859 go back to the default
23860 \end_layout
23861
23862 \end_inset
23863
23864
23865 \end_layout
23866
23867 \begin_layout Standard
23868 \begin_inset Newpage newpage
23869 \end_inset
23870
23871
23872 \end_layout
23873
23874 \begin_layout Section
23875 標準的でない形の段落
23876 \end_layout
23877
23878 \begin_layout Standard
23879 \noindent
23880 \SpecialChar LaTeX
23881 は,他のテキストプロセッサと同様に,既定で長方形の段落を使用します.しかし,例えば,ポスターや招待状,詩などの特殊な場合には,段落の形を好きなように変えることが
23882 できます.これは,文書設定で
23883 \family sans
23884 任意設定の段落形
23885 \family default
23886 モジュールを読み込んで,\SpecialChar LaTeX
23887 パッケージ
23888 \begin_inset Flex Code
23889 status collapsed
23890
23891 \begin_layout Plain Layout
23892 \noindent
23893 shapepar
23894 \end_layout
23895
23896 \end_inset
23897
23898 を使用させるようにすれば,実現できます.
23899 \end_layout
23900
23901 \begin_layout Subsection
23902 既定の形
23903 \end_layout
23904
23905 \begin_layout Standard
23906
23907 \series bold
23908 shapepar
23909 \series default
23910 は,以下の形を提供しています.
23911 \end_layout
23912
23913 \begin_layout Standard
23914 \begin_inset Tabular
23915 <lyxtabular version="3" rows="13" columns="3">
23916 <features booktabs="true" islongtable="true" longtabularalignment="center">
23917 <column alignment="center" valignment="middle" width="16col%">
23918 <column alignment="center" valignment="middle" width="40col%">
23919 <column alignment="center" valignment="middle" width="35col%">
23920 <row endhead="true">
23921 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23922 \begin_inset Text
23923
23924 \begin_layout Plain Layout
23925 名称
23926 \end_layout
23927
23928 \end_inset
23929 </cell>
23930 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23931 \begin_inset Text
23932
23933 \begin_layout Plain Layout
23934 説明
23935 \end_layout
23936
23937 \end_inset
23938 </cell>
23939 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
23940 \begin_inset Text
23941
23942 \begin_layout Plain Layout
23943 備考
23944 \end_layout
23945
23946 \end_inset
23947 </cell>
23948 </row>
23949 <row>
23950 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23951 \begin_inset Text
23952
23953 \begin_layout Plain Layout
23954 CDlabel
23955 \end_layout
23956
23957 \end_inset
23958 </cell>
23959 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23960 \begin_inset Text
23961
23962 \begin_layout Plain Layout
23963 丸い穴の開いたドーナツ型(CD/DVD大)
23964 \end_layout
23965
23966 \end_inset
23967 </cell>
23968 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23969 \begin_inset Text
23970
23971 \begin_layout Plain Layout
23972 伸縮不可.多くの文字を入れられないことに注意.
23973 \end_layout
23974
23975 \end_inset
23976 </cell>
23977 </row>
23978 <row>
23979 <cell alignment="center" valignment="top" topline="true" usebox="none">
23980 \begin_inset Text
23981
23982 \begin_layout Plain Layout
23983 Circle
23984 \end_layout
23985
23986 \end_inset
23987 </cell>
23988 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23989 \begin_inset Text
23990
23991 \begin_layout Plain Layout
23992
23993 \end_layout
23994
23995 \end_inset
23996 </cell>
23997 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23998 \begin_inset Text
23999
24000 \begin_layout Plain Layout
24001 脆弱.計算に失敗することも.
24002 \end_layout
24003
24004 \end_inset
24005 </cell>
24006 </row>
24007 <row>
24008 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24009 \begin_inset Text
24010
24011 \begin_layout Plain Layout
24012 Diamond
24013 \end_layout
24014
24015 \end_inset
24016 </cell>
24017 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24018 \begin_inset Text
24019
24020 \begin_layout Plain Layout
24021 菱形(シンボル的に
24022 \begin_inset Quotes eld
24023 \end_inset
24024
24025 diamond
24026 \begin_inset Quotes erd
24027 \end_inset
24028
24029 と表記)
24030 \end_layout
24031
24032 \end_inset
24033 </cell>
24034 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24035 \begin_inset Text
24036
24037 \begin_layout Plain Layout
24038 -
24039 \end_layout
24040
24041 \end_inset
24042 </cell>
24043 </row>
24044 <row>
24045 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24046 \begin_inset Text
24047
24048 \begin_layout Plain Layout
24049 Heart
24050 \end_layout
24051
24052 \end_inset
24053 </cell>
24054 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24055 \begin_inset Text
24056
24057 \begin_layout Plain Layout
24058 ハート型
24059 \end_layout
24060
24061 \end_inset
24062 </cell>
24063 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24064 \begin_inset Text
24065
24066 \begin_layout Plain Layout
24067 -
24068 \end_layout
24069
24070 \end_inset
24071 </cell>
24072 </row>
24073 <row>
24074 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24075 \begin_inset Text
24076
24077 \begin_layout Plain Layout
24078 Hexagon
24079 \end_layout
24080
24081 \end_inset
24082 </cell>
24083 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24084 \begin_inset Text
24085
24086 \begin_layout Plain Layout
24087 六角形
24088 \end_layout
24089
24090 \end_inset
24091 </cell>
24092 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24093 \begin_inset Text
24094
24095 \begin_layout Plain Layout
24096 -
24097 \end_layout
24098
24099 \end_inset
24100 </cell>
24101 </row>
24102 <row>
24103 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24104 \begin_inset Text
24105
24106 \begin_layout Plain Layout
24107 Nut
24108 \end_layout
24109
24110 \end_inset
24111 </cell>
24112 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24113 \begin_inset Text
24114
24115 \begin_layout Plain Layout
24116 ナット型(丸い穴の開いた六角形)
24117 \end_layout
24118
24119 \end_inset
24120 </cell>
24121 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24122 \begin_inset Text
24123
24124 \begin_layout Plain Layout
24125 -
24126 \end_layout
24127
24128 \end_inset
24129 </cell>
24130 </row>
24131 <row>
24132 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24133 \begin_inset Text
24134
24135 \begin_layout Plain Layout
24136 Square
24137 \end_layout
24138
24139 \end_inset
24140 </cell>
24141 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24142 \begin_inset Text
24143
24144 \begin_layout Plain Layout
24145 正方形
24146 \end_layout
24147
24148 \end_inset
24149 </cell>
24150 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24151 \begin_inset Text
24152
24153 \begin_layout Plain Layout
24154 -
24155 \end_layout
24156
24157 \end_inset
24158 </cell>
24159 </row>
24160 <row>
24161 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
24162 \begin_inset Text
24163
24164 \begin_layout Plain Layout
24165 Star
24166 \end_layout
24167
24168 \end_inset
24169 </cell>
24170 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
24171 \begin_inset Text
24172
24173 \begin_layout Plain Layout
24174 五芒星
24175 \end_layout
24176
24177 \end_inset
24178 </cell>
24179 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
24180 \begin_inset Text
24181
24182 \begin_layout Plain Layout
24183 -
24184 \end_layout
24185
24186 \end_inset
24187 </cell>
24188 </row>
24189 <row>
24190 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24191 \begin_inset Text
24192
24193 \begin_layout Plain Layout
24194 Candle
24195 \end_layout
24196
24197 \end_inset
24198 </cell>
24199 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24200 \begin_inset Text
24201
24202 \begin_layout Plain Layout
24203 燃えるろうそく
24204 \end_layout
24205
24206 \end_inset
24207 </cell>
24208 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24209 \begin_inset Text
24210
24211 \begin_layout Plain Layout
24212 -
24213 \end_layout
24214
24215 \end_inset
24216 </cell>
24217 </row>
24218 <row>
24219 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24220 \begin_inset Text
24221
24222 \begin_layout Plain Layout
24223 Drop down/up
24224 \end_layout
24225
24226 \end_inset
24227 </cell>
24228 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24229 \begin_inset Text
24230
24231 \begin_layout Plain Layout
24232 雫型/逆雫型
24233 \end_layout
24234
24235 \end_inset
24236 </cell>
24237 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24238 \begin_inset Text
24239
24240 \begin_layout Plain Layout
24241 脆弱.計算に失敗することも.
24242 \end_layout
24243
24244 \end_inset
24245 </cell>
24246 </row>
24247 <row>
24248 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24249 \begin_inset Text
24250
24251 \begin_layout Plain Layout
24252 \SpecialChar TeX
24253
24254 \end_layout
24255
24256 \end_inset
24257 </cell>
24258 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24259 \begin_inset Text
24260
24261 \begin_layout Plain Layout
24262 \SpecialChar TeX
24263 ロゴ
24264 \end_layout
24265
24266 \end_inset
24267 </cell>
24268 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24269 \begin_inset Text
24270
24271 \begin_layout Plain Layout
24272 -
24273 \end_layout
24274
24275 \end_inset
24276 </cell>
24277 </row>
24278 <row>
24279 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
24280 \begin_inset Text
24281
24282 \begin_layout Plain Layout
24283 Triangle up/down/
24284 \begin_inset Newline newline
24285 \end_inset
24286
24287 left/right
24288 \end_layout
24289
24290 \end_inset
24291 </cell>
24292 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
24293 \begin_inset Text
24294
24295 \begin_layout Plain Layout
24296 各方向の三角形
24297 \end_layout
24298
24299 \end_inset
24300 </cell>
24301 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
24302 \begin_inset Text
24303
24304 \begin_layout Plain Layout
24305 -
24306 \end_layout
24307
24308 \end_inset
24309 </cell>
24310 </row>
24311 </lyxtabular>
24312
24313 \end_inset
24314
24315
24316 \end_layout
24317
24318 \begin_layout Standard
24319 段落に形を適用するには,\SpecialChar LyX
24320 ツールバー中の環境プルダウンボックスから形を選んでください.
24321 \end_layout
24322
24323 \begin_layout Standard
24324 \begin_inset Newpage newpage
24325 \end_inset
24326
24327
24328 \end_layout
24329
24330 \begin_layout Standard
24331 以下は,ナット型の段落の例です.
24332 \end_layout
24333
24334 \begin_layout Standard
24335 \begin_inset VSpace bigskip
24336 \end_inset
24337
24338
24339 \end_layout
24340
24341 \begin_layout Nut
24342
24343 \lang latin
24344 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
24345  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
24346  voluptua.
24347  At vero eos et accusam et justo duo dolores et ea rebum.
24348  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
24349  sit amet.
24350  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
24351  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
24352  voluptua.
24353 \end_layout
24354
24355 \begin_layout Standard
24356 \begin_inset VSpace bigskip
24357 \end_inset
24358
24359
24360 \end_layout
24361
24362 \begin_layout Standard
24363 \begin_inset Note Greyedout
24364 status open
24365
24366 \begin_layout Plain Layout
24367
24368 \series bold
24369 【註】
24370 \family sans
24371 \series default
24372 shapepar
24373 \family default
24374 段落は改頁にまたがることはできません.
24375 \end_layout
24376
24377 \end_inset
24378
24379
24380 \end_layout
24381
24382 \begin_layout Standard
24383 \begin_inset VSpace bigskip
24384 \end_inset
24385
24386
24387 \end_layout
24388
24389 \begin_layout Standard
24390 \begin_inset Flex Code
24391 status collapsed
24392
24393 \begin_layout Plain Layout
24394 \noindent
24395 shapepar
24396 \end_layout
24397
24398 \end_inset
24399
24400 は,段落中にどれだけ文章が含まれようとも,常に形を維持しようとします.したがって,段落の大きさは,含まれている文章量によって変化しますので,段落の大きさがページ
24401 余白にはみ出してしまうことがあります.寸法が伸縮することを示すために,文章量を二倍にした例を見てみましょう.
24402 \end_layout
24403
24404 \begin_layout Standard
24405 \begin_inset Newpage newpage
24406 \end_inset
24407
24408
24409 \end_layout
24410
24411 \begin_layout Nut
24412
24413 \lang latin
24414 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
24415  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
24416  voluptua.
24417  At vero eos et accusam et justo duo dolores et ea rebum.
24418  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
24419  sit amet.
24420  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
24421  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
24422  voluptua.
24423  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
24424  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
24425  voluptua.
24426  At vero eos et accusam et justo duo dolores et ea rebum.
24427  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
24428  sit amet.
24429  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
24430  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
24431  voluptua.
24432 \end_layout
24433
24434 \begin_layout Standard
24435 \begin_inset VSpace bigskip
24436 \end_inset
24437
24438
24439 \end_layout
24440
24441 \begin_layout Standard
24442 ただし,
24443 \family sans
24444 CDlabel
24445 \family default
24446 形は例外です.これは,CD/DVDの寸法に収まらなくてはならないので,伸縮しません.したがって,形に収まる文章量は限られています.
24447 \begin_inset Newline newline
24448 \end_inset
24449
24450
24451 \family sans
24452 drop
24453 \family default
24454 形と
24455 \family sans
24456 circle
24457 \family default
24458 形は脆弱で,文章量によっては寸法計算が失敗する可能性があります.この場合,
24459 \begin_inset Quotes eld
24460 \end_inset
24461
24462 Arithmetic overflow
24463 \begin_inset Quotes erd
24464 \end_inset
24465
24466 という\SpecialChar LaTeX
24467 エラーが発生します.この時は,文章の一部を追加したり削除したりするか,どれもうまくいかなければ別の形を使用してください.
24468 \end_layout
24469
24470 \begin_layout Standard
24471 \begin_inset VSpace bigskip
24472 \end_inset
24473
24474
24475 \end_layout
24476
24477 \begin_layout Standard
24478 先端のある形では,先端部の文字列で,\SpecialChar LaTeX
24479 のハイフネーションルーチンが失敗することがあります.したがって,この部分の文章には,ハイフネーション位置
24480 \family sans
24481
24482 \begin_inset Info
24483 type  "shortcut"
24484 arg   "specialchar-insert hyphenation"
24485 \end_inset
24486
24487
24488 \family default
24489 )を指定することが往々にして必要になります.
24490 \end_layout
24491
24492 \begin_layout Standard
24493 \begin_inset VSpace bigskip
24494 \end_inset
24495
24496
24497 \end_layout
24498
24499 \begin_layout Standard
24500 Shapepar段落は,常に中央揃えか,左の縁が左ページ余白に接するように配置されます.したがって,これらの段落を揃えるのに段落ダイアログを使用することはできま
24501 せん.解決方法としては,段落をミニページかparboxの中において,このボックスを揃えることです.ここでの問題は,ボックスの正しい幅を見出すことです.もしボック
24502 スの幅が広すぎれば,ボックスを中央揃えにしたとしても,ボックスの左側が付いてしまうので中央揃えになりません.そこで,正しい幅を見出すまでは,若干試行錯誤しなくて
24503 はならないかもしれません.以下は,二つのハート形の段落です.一つ目は揃え指定がなく,二つ目は右揃えにしてあります.
24504 \end_layout
24505
24506 \begin_layout Standard
24507 \begin_inset Newpage newpage
24508 \end_inset
24509
24510
24511 \end_layout
24512
24513 \begin_layout Heart
24514 \noindent
24515
24516 \lang latin
24517 Lo\SpecialChar softhyphen
24518 rem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
24519  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
24520  voluptua.
24521  At vero eos et accusam et justo duo dolores et ea rebum.
24522  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
24523  sit amet.
24524 \end_layout
24525
24526 \begin_layout Standard
24527 \begin_inset VSpace bigskip
24528 \end_inset
24529
24530
24531 \end_layout
24532
24533 \begin_layout Standard
24534 \noindent
24535 \align right
24536 \begin_inset Box Frameless
24537 position "t"
24538 hor_pos "c"
24539 has_inner_box 1
24540 inner_pos "t"
24541 use_parbox 1
24542 use_makebox 0
24543 width "42col%"
24544 special "none"
24545 height "1in"
24546 height_special "totalheight"
24547 thickness "0.4pt"
24548 separation "3pt"
24549 shadowsize "4pt"
24550 framecolor "black"
24551 backgroundcolor "none"
24552 status open
24553
24554 \begin_layout Heart
24555 \noindent
24556
24557 \lang latin
24558 Lo\SpecialChar softhyphen
24559 rem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
24560  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
24561  voluptua.
24562  At vero eos et accusam et justo duo dolores et ea rebum.
24563  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
24564  sit amet.
24565 \end_layout
24566
24567 \end_inset
24568
24569
24570 \end_layout
24571
24572 \begin_layout Subsection
24573 任意の形
24574 \end_layout
24575
24576 \begin_layout Standard
24577 ユーザーは,どのような形であれ,定義することができます.これを手動で行うのは,全ての座標を指定しなくてはならないので,かなりの労力を必要とします.しかし,以下の
24578 ように,コンピューターに座標を計算させる方法もあります.
24579 \end_layout
24580
24581 \begin_layout Enumerate
24582 プログラム
24583 \begin_inset CommandInset href
24584 LatexCommand href
24585 name "Jpgfdraw"
24586 target "http://www.ctan.org/tex-archive/graphics/jpgfdraw"
24587 literal "false"
24588
24589 \end_inset
24590
24591 を導入します.
24592 \end_layout
24593
24594 \begin_layout Enumerate
24595
24596 \family sans
24597 Jpgfdraw
24598 \family default
24599 内で,メニュー
24600 \family sans
24601 TeX/LaTeX\SpecialChar menuseparator
24602 Settings\SpecialChar menuseparator
24603 Set Normal Size
24604 \family default
24605 で文書中で使用しているフォント寸を選択します.例えば,この文書は12
24606 \begin_inset space \thinspace{}
24607 \end_inset
24608
24609 pt寸を使用しています.
24610 \end_layout
24611
24612 \begin_layout Enumerate
24613 形を描きます.
24614 \end_layout
24615
24616 \begin_layout Enumerate
24617 メニュー
24618 \family sans
24619 TeX/LaTeX\SpecialChar menuseparator
24620 Shapepar
24621 \family default
24622 を使用して,形の座標をエクスポートします.現れるダイアログで,形の外枠を座標に使うか,パス自体を使うかを指定します.
24623 \begin_inset Foot
24624 status collapsed
24625
24626 \begin_layout Plain Layout
24627 詳細については,
24628 \begin_inset CommandInset href
24629 LatexCommand href
24630 target "http://www.dickimaw-books.com/apps/jpgfdraw/manual/shapepar.html"
24631 literal "false"
24632
24633 \end_inset
24634
24635 を参照してください.
24636 \end_layout
24637
24638 \end_inset
24639
24640
24641 \end_layout
24642
24643 \begin_layout Standard
24644 座標は\SpecialChar TeX
24645 ファイルに書き込まれます.これを\SpecialChar LyX
24646 文書で使用するには,
24647 \end_layout
24648
24649 \begin_layout Enumerate
24650 段落の最初の文字の前(もしくは空の段落内)にカーソルを置きます.
24651 \end_layout
24652
24653 \begin_layout Enumerate
24654 \SpecialChar LyX
24655
24656 \family sans
24657 挿入\SpecialChar menuseparator
24658 ファイル\SpecialChar menuseparator
24659 子文書
24660 \family default
24661 メニューでファイルを選択し,
24662 \family sans
24663 取り込みの型
24664 \family default
24665 として
24666 \family sans
24667 Input
24668 \family default
24669 を選択してください.
24670 \end_layout
24671
24672 \begin_layout Standard
24673 \begin_inset VSpace defskip
24674 \end_inset
24675
24676
24677 \end_layout
24678
24679 \begin_layout Standard
24680 \begin_inset Note Greyedout
24681 status open
24682
24683 \begin_layout Plain Layout
24684
24685 \series bold
24686 【註】
24687 \series default
24688 変更した形は,現在の段落にのみ適用されます.次の段落では全て通常に戻ります.したがって,段落定義ファイルは,形を変えたい段落全てで読み込まれなくてはなりません.
24689 \end_layout
24690
24691 \end_inset
24692
24693
24694 \end_layout
24695
24696 \begin_layout Standard
24697 \begin_inset VSpace bigskip
24698 \end_inset
24699
24700
24701 \end_layout
24702
24703 \begin_layout Standard
24704 以下の用例をご覧ください.
24705 \end_layout
24706
24707 \begin_layout Standard
24708 \begin_inset VSpace bigskip
24709 \end_inset
24710
24711
24712 \end_layout
24713
24714 \begin_layout Standard
24715 \begin_inset CommandInset include
24716 LatexCommand input
24717 filename "/Applications/LyX-2.3.0dev.app/Contents/Resources/doc/SpecialParagraphShape.tex"
24718
24719 \end_inset
24720
24721
24722 \lang latin
24723 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
24724  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
24725  voluptua.
24726  At vero eos et accusam et justo duo dolores et ea rebum.
24727  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
24728  sit amet.
24729  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
24730  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
24731  voluptua.
24732 \end_layout
24733
24734 \begin_layout Standard
24735 \begin_inset VSpace bigskip
24736 \end_inset
24737
24738
24739 \end_layout
24740
24741 \begin_layout Standard
24742
24743 \series bold
24744 【ヒント】
24745 \family sans
24746 \series default
24747 Jpgfdraw
24748 \family default
24749 で複雑な形を描く場合,まず形を好きなプログラムで描き,出来上がった画像を
24750 \family sans
24751 Jpgfdraw
24752 \family default
24753 に読み込む方法があります.この場合,画像の外枠に沿って,直線またはスプラインを描くだけですみます.
24754 \end_layout
24755
24756 \begin_layout Standard
24757 \begin_inset VSpace bigskip
24758 \end_inset
24759
24760
24761 \end_layout
24762
24763 \begin_layout Standard
24764
24765 \family sans
24766 任意の段落形
24767 \family default
24768 モジュールは,
24769 \family sans
24770 shapepar
24771 \family default
24772
24773 \family sans
24774 Shapepar
24775 \family default
24776 の二つのコマンドも提供していて,任意の形を座標毎に定義するのに使用することができます.
24777 \begin_inset Foot
24778 status collapsed
24779
24780 \begin_layout Plain Layout
24781 これらのコマンドは,上述の全ての形で内部的に使用されています.
24782 \end_layout
24783
24784 \end_inset
24785
24786 これらのスタイルがどのように使われていて,どのような設定ができるのかについての詳しい情報は,
24787 \begin_inset Flex Code
24788 status collapsed
24789
24790 \begin_layout Plain Layout
24791 \noindent
24792 shapepar
24793 \end_layout
24794
24795 \end_inset
24796
24797  をご覧ください.
24798 \end_layout
24799
24800 \end_body
24801 \end_document