]> git.lyx.org Git - lyx.git/blob - lib/doc/ja/Additional.lyx
docs: update URL of Astronomy & Astrophysics
[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 /systemlyxdir/doc/ja/
7 \textclass scrbook
8 \begin_preamble
9 % DO NOT ALTER THIS PREAMBLE!!!
10 %
11 % This preamble is designed to ensure that the manual prints
12 % out as advertised. If you mess with this preamble,
13 % parts of the manual may not print out as expected.  If you
14 % have problems LaTeXing this file, please contact 
15 % the documentation team
16 % email: lyx-docs@lists.lyx.org
17
18 % 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 \end_header
176
177 \begin_body
178
179 \begin_layout Title
180 \SpecialChar LyX
181 の高度な機能
182 \begin_inset Newline newline
183 \end_inset
184
185
186 \size large
187 第2.3.x版
188 \end_layout
189
190 \begin_layout Author
191 \SpecialChar LyX
192 プロジェクトチーム
193 \begin_inset Foot
194 status collapsed
195
196 \begin_layout Plain Layout
197 このファイルは主にRichard Heckによって管理されています.コメントをされたい場合や誤りを発見された場合には,\SpecialChar LyX
198 文書化メーリングリスト
199 \begin_inset Flex Code
200 status open
201
202 \begin_layout Plain Layout
203 \noindent
204
205 \family typewriter
206 <lyx-docs@lists.lyx.org>
207 \end_layout
208
209 \end_inset
210
211 に英文にてお知らせ下さい.この文書の翻訳は,当初人見光太郎氏が行った貢献に基づいています.
212 \end_layout
213
214 \end_inset
215
216  
217 \end_layout
218
219 \begin_layout Standard
220 \begin_inset CommandInset toc
221 LatexCommand tableofcontents
222
223 \end_inset
224
225
226 \end_layout
227
228 \begin_layout Chapter
229 はじめに
230 \end_layout
231
232 \begin_layout Standard
233 いまお読みの取扱説明書『
234 \emph on
235 \SpecialChar LyX
236 拡張機能篇
237 \emph default
238 』は,基本的には『
239 \emph on
240 ユーザーの手引き
241 \emph default
242 』の第二部です.これらの文書を別部とした理由は,単純に『
243 \emph on
244 ユーザーの手引き
245 \emph default
246 』がすでに大部となっていることと,『
247 \emph on
248 ユーザーの手引き
249 \emph default
250 』が,ほとんどの文書を作成する上で必要な基本機能をすべて説明してしまっているためです.一方で,\SpecialChar LyX
251 プロジェクトチームは,\SpecialChar LyX
252 を各設定ファイルと外部パッケージによって拡張
253 可能な状態にしておくことを長期的な目標にしています.つまり,ある\SpecialChar LaTeX
254 パッケージをサポートしたい場合に,\SpecialChar LyX
255 自身に変更を加えることなく,当該パッケージ用のレイアウトファイ
256 ル(ないしモジュール)を作成すればいいようにしているのです.すでにこのような形で,いくつもの新機能がユーザーによって追加されています.この取扱説明書は,そのよう
257 な形での貢献を文書化する冊子として位置付けられています.
258 \end_layout
259
260 \begin_layout Standard
261 この取扱説明書では,ファックスのサポート・バージョン管理・SGMLサポートのような,正しく機能するためには追加的なソフトウェアを必要とする特殊機能についても説明
262 しています.さらに,\SpecialChar LaTeX
263 の強力な機能を直接使って文書を美しく仕上げるための,\SpecialChar LaTeX
264 ツールやテクニックを述べた章も収録しています.つきつめれば,\SpecialChar LyX
265 とはあくまでWYSIWYMた
266 ることを企図しているため,\SpecialChar LaTeX
267 の全機能の一部へのインタフェースは用意するものの,すべてを用意することはないでしょう.
268 \end_layout
269
270 \begin_layout Standard
271 もし,まだ『
272 \emph on
273 はじめの一歩
274 \emph default
275 』をお読みでなかったら,この取扱説明書から読みはじめるのは誤りです.『
276 \emph on
277 はじめの一歩
278 \emph default
279 』には,全取扱説明書に共通の表記法と書式が説明されていますので,まずそれからお読みください.さらに,この取扱説明書を読もうとする前に,『
280 \emph on
281 ユーザーの手引き
282 \emph default
283 』をよくお読みになって,\SpecialChar LyX
284 の全基本機能を習得してください.
285 \end_layout
286
287 \begin_layout Standard
288 この取扱説明書の取り上げられている話題は,\SpecialChar LyX
289 が\SpecialChar LaTeX
290 にどう関わっているかに強く関係していますので,まず次章では,\SpecialChar LyX
291 の内部動作がどうなっているか,LyXに希望する\SpecialChar LaTeX
292 コードを正
293 確に生成させるにはどうしたらいいかを収録しています.本章は,あきらかに熟練\SpecialChar LyX
294 ユーザー向けの章となっています.
295 \end_layout
296
297 \begin_layout Chapter
298 \SpecialChar LyX
299 と\SpecialChar LaTeX
300
301 \end_layout
302
303 \begin_layout Section
304 \SpecialChar LyX
305 は\SpecialChar LaTeX
306 をどう使っているか
307 \end_layout
308
309 \begin_layout Standard
310 本章
311 \family roman
312 \series medium
313 \shape up
314 \size normal
315 \emph off
316 \bar no
317 \noun off
318 \color none
319 は,\SpecialChar TeX
320 熟練者と\SpecialChar LaTeX
321 に興味のある方向けの章です.ここでは,\SpecialChar LyX
322 と\SpecialChar LaTeX
323 が,印刷可能な出力を生成するのに,どのように協働しているのかを説明します.全取扱説明書中で本章だけは,\SpecialChar LaTeX
324 のこと
325 を多少なりともご存知であることを前提とします.
326 \end_layout
327
328 \begin_layout Standard
329
330 \family roman
331 \series medium
332 \shape up
333 \size normal
334 \emph off
335 \bar no
336 \noun off
337 \color none
338 かつて\SpecialChar LyX
339 は,「\SpecialChar LaTeX
340
341 \family default
342 \series default
343 \shape default
344 \size default
345 \emph default
346 \bar default
347 \noun default
348 \color inherit
349 WYSIWYM
350 \family roman
351 \series medium
352 \shape up
353 \size normal
354 \emph off
355 \bar no
356 \noun off
357 \color none
358 なフロントエンド」と呼ばれていましたが,いまではこれは正しくありません.\SpecialChar LaTeX
359 のフロントエンドは,いくつも出回っています
360 \begin_inset Foot
361 status collapsed
362
363 \begin_layout Plain Layout
364
365 \family roman
366 \series medium
367 \shape up
368 \size normal
369 \emph off
370 \bar no
371 \noun off
372 \color none
373 有名なものとしては,Linux上の\SpecialChar TeX
374 makerとkile,OSX上の\SpecialChar TeX
375 shopなどがあります.もちろんviとemacsの\SpecialChar LaTeX
376 モードも含まれます.
377 \end_layout
378
379 \end_inset
380
381 .これらは,基本的に\SpecialChar LaTeX
382 を走らせる機能を有し,編集中のファイルのエラーを表示する機能を持ったテキストエディタです.\SpecialChar LyX
383 も,エディタであり,\SpecialChar LaTeX
384 を走らせる機能を有し,ファイル
385 中のエラーを指摘しますが,それ以上にもっともっと多くのことをしてくれます.
386 \family default
387 \series default
388 \shape default
389 \size default
390 \emph default
391 \bar default
392 \noun default
393 \color inherit
394 ひとつには,
395 \family roman
396 \series medium
397 \shape up
398 \size normal
399 \emph off
400 \bar no
401 \noun off
402 \color none
403 \SpecialChar LyX
404 を効果的に使うのに,\SpecialChar LaTeX
405 の知識が必要とされないことが挙げられます.また\SpecialChar LyX
406 は,それ自身,いくつかの拡張を\SpecialChar LaTeX
407 に加えています.時間のあるときにでも,いちど以下の手順を試してみ
408 てください.まず
409 \family sans
410 \series default
411 \shape default
412 \size default
413 \emph default
414 \bar default
415 \noun default
416 \color inherit
417
418 \begin_inset Flex MenuItem
419 status collapsed
420
421 \begin_layout Plain Layout
422
423 \family sans
424 ファイル
425 \end_layout
426
427 \end_inset
428
429
430 \family roman
431 \series medium
432 \shape up
433 \size normal
434 \emph off
435 \bar no
436 \noun off
437 \color none
438 メニューから
439 \family sans
440 \series default
441 \shape default
442 \size default
443 \emph default
444 \bar default
445 \noun default
446 \color inherit
447
448 \begin_inset Flex MenuItem
449 status collapsed
450
451 \begin_layout Plain Layout
452
453 \family sans
454 エクスポート\SpecialChar menuseparator
455 LaTeX
456 \end_layout
457
458 \end_inset
459
460
461 \family roman
462 \series medium
463 \shape up
464 \size normal
465 \emph off
466 \bar no
467 \noun off
468 \color none
469 (あるいは
470 \family sans
471 \series default
472 \shape default
473 \size default
474 \emph default
475 \bar default
476 \noun default
477 \color inherit
478
479 \begin_inset Flex MenuItem
480 status collapsed
481
482 \begin_layout Plain Layout
483
484 \family sans
485 表示\SpecialChar menuseparator
486 ソースを閲覧
487 \end_layout
488
489 \end_inset
490
491
492 \family roman
493 \series medium
494 \shape up
495 \size normal
496 \emph off
497 \bar no
498 \noun off
499 \color none
500 )を選択し,そこから出力される
501 \begin_inset Flex Code
502 status collapsed
503
504 \begin_layout Plain Layout
505
506 \family typewriter
507 .tex
508 \end_layout
509
510 \end_inset
511
512 ファイルのプリアンブルをご覧ください.\SpecialChar LyX
513 によって特別に定義された新しいマクロが複数定義されていることに気づかれるはずです
514 \family default
515 \series default
516 \shape default
517 \size default
518 \emph default
519 \bar default
520 \noun default
521 \color inherit
522 .これらのマクロは,文書中で使用する機能に応じて,自動的に定義されます.
523 \end_layout
524
525 \begin_layout Standard
526
527 \family roman
528 \series medium
529 \shape up
530 \size normal
531 \emph off
532 \bar no
533 \noun off
534 \color none
535 自動的に\SpecialChar LaTeX
536 を実行するコマンドが,以下のようにいくつかあります.
537 \end_layout
538
539 \begin_layout Itemize
540 \begin_inset Flex MenuItem
541 status collapsed
542
543 \begin_layout Plain Layout
544 表示\SpecialChar menuseparator
545 書式
546 \end_layout
547
548 \end_inset
549
550
551 \end_layout
552
553 \begin_layout Itemize
554
555 \family sans
556 \begin_inset Flex MenuItem
557 status collapsed
558
559 \begin_layout Plain Layout
560
561 \bar no
562 表示\SpecialChar menuseparator
563 更新\SpecialChar menuseparator
564
565 \bar default
566 書式
567 \end_layout
568
569 \end_inset
570
571
572 \end_layout
573
574 \begin_layout Standard
575
576 \family roman
577 \series medium
578 \shape up
579 \size normal
580 \emph off
581 \bar no
582 \noun off
583 \color none
584 これらは,最後に\SpecialChar LaTeX
585 を実行してからファイルに変更が加えられた場合のみ,\SpecialChar LaTeX
586 を実行します.
587 \end_layout
588
589 \begin_layout Standard
590
591 \family roman
592 \series medium
593 \shape up
594 \size normal
595 \emph off
596 \bar no
597 \noun off
598 \color none
599 \SpecialChar LyX
600 が編集中のファイルを\SpecialChar LaTeX
601 にかけるとき,\SpecialChar LyX
602 は以下の段階をふみます.
603 \end_layout
604
605 \begin_layout Enumerate
606
607 \family roman
608 \series medium
609 \shape up
610 \size normal
611 \emph off
612 \bar no
613 \noun off
614 \color none
615 文書を\SpecialChar LaTeX
616 に変換し,ファイルの拡張子を
617 \begin_inset Flex Code
618 status collapsed
619
620 \begin_layout Plain Layout
621
622 \family roman
623 \series medium
624 \shape up
625 \size normal
626 \emph off
627 \bar no
628 \noun off
629 \color none
630 .lyx
631 \end_layout
632
633 \end_inset
634
635 から
636 \begin_inset Flex Code
637 status collapsed
638
639 \begin_layout Plain Layout
640
641 \family roman
642 \series medium
643 \shape up
644 \size normal
645 \emph off
646 \bar no
647 \noun off
648 \color none
649 .tex
650 \end_layout
651
652 \end_inset
653
654 に変えて保存.
655 \end_layout
656
657 \begin_layout Enumerate
658
659 \family roman
660 \series medium
661 \shape up
662 \size normal
663 \emph off
664 \bar no
665 \noun off
666 \color none
667 この
668 \begin_inset Flex Code
669 status collapsed
670
671 \begin_layout Plain Layout
672
673 \family roman
674 \series medium
675 \shape up
676 \size normal
677 \emph off
678 \bar no
679 \noun off
680 \color none
681 .tex
682 \end_layout
683
684 \end_inset
685
686 ファイルに対して(必要に応じて複数回)\SpecialChar LaTeX
687 を実行し,\SpecialChar LaTeX
688 ファイルをコンパイルするのに必要な他のコマンド(
689 \begin_inset Flex Code
690 status collapsed
691
692 \begin_layout Plain Layout
693
694 \family roman
695 \series medium
696 \shape up
697 \size normal
698 \emph off
699 \bar no
700 \noun off
701 \color none
702 bibtex
703 \end_layout
704
705 \end_inset
706
707
708 \begin_inset Flex Code
709 status collapsed
710
711 \begin_layout Plain Layout
712
713 \family roman
714 \series medium
715 \shape up
716 \size normal
717 \emph off
718 \bar no
719 \noun off
720 \color none
721 makeindex
722 \end_layout
723
724 \end_inset
725
726 など)を実行..
727 \end_layout
728
729 \begin_layout Enumerate
730
731 \family roman
732 \series medium
733 \shape up
734 \size normal
735 \emph off
736 \bar no
737 \noun off
738 \color none
739 もしエラーがあれば,エラーログを表示.
740 \end_layout
741
742 \begin_layout Standard
743
744 \family roman
745 \series medium
746 \shape up
747 \size normal
748 \emph off
749 \bar no
750 \noun off
751 \color none
752 \SpecialChar LaTeX
753
754 \family sans
755 \series default
756 \shape default
757 \size default
758 \emph default
759 \bar default
760 \noun default
761 \color inherit
762
763 \begin_inset Flex MenuItem
764 status collapsed
765
766 \begin_layout Plain Layout
767
768 \family sans
769 表示\SpecialChar menuseparator
770 DVI
771 \end_layout
772
773 \end_inset
774
775
776 \family roman
777 \series medium
778 \shape up
779 \size normal
780 \emph off
781 \bar no
782 \noun off
783 \color none
784 を使用して実行した場合には,\SpecialChar LyX
785 はこの後,DVIビューアを実行してDVIファイルを表示します.
786 \begin_inset Flex MenuItem
787 status collapsed
788
789 \begin_layout Plain Layout
790
791 \family roman
792 \series medium
793 \shape up
794 \size normal
795 \emph off
796 \bar no
797 \noun off
798 \color none
799 表示\SpecialChar menuseparator
800 PostScript
801 \end_layout
802
803 \end_inset
804
805 を使用した場合には,\SpecialChar LyX
806 はさらに以下の段階をふみます.
807 \end_layout
808
809 \begin_layout Itemize
810
811 \family roman
812 \series medium
813 \shape up
814 \size normal
815 \emph off
816 \bar no
817 \noun off
818 \color none
819 \begin_inset Flex Code
820 status collapsed
821
822 \begin_layout Plain Layout
823
824 \family typewriter
825 dvips
826 \end_layout
827
828 \end_inset
829
830 を実行して,
831 \family default
832 \series default
833 \shape default
834 \size default
835 \emph default
836 \bar default
837 \noun default
838 \color inherit
839 DVI
840 \family roman
841 \series medium
842 \shape up
843 \size normal
844 \emph off
845 \bar no
846 \noun off
847 \color none
848 ファイルをPostScript
849 \family default
850 \series default
851 \shape default
852 \size default
853 \emph default
854 \bar default
855 \noun default
856 \color inherit
857 に変換.
858 \end_layout
859
860 \begin_layout Itemize
861
862 \family roman
863 \series medium
864 \shape up
865 \size normal
866 \emph off
867 \bar no
868 \noun off
869 \color none
870 \begin_inset Flex Code
871 status collapsed
872
873 \begin_layout Plain Layout
874
875 \family typewriter
876 ghostview
877 \end_layout
878
879 \end_inset
880
881 などのPostScriptビューアを実行して,PostScript
882 \family default
883 \series default
884 \shape default
885 \size default
886 \emph default
887 \bar default
888 \noun default
889 \color inherit
890 ファイルを表示.
891 \end_layout
892
893 \begin_layout Standard
894 \SpecialChar LyX
895 は,他の書式を表示したりエクスポートしたりする際にも,同様のことを行います.
896 \end_layout
897
898 \begin_layout Section
899 \SpecialChar LaTeX
900 ファイルを\SpecialChar LyX
901 に読み込む
902 \end_layout
903
904 \begin_layout Standard
905 \SpecialChar LyX
906
907 \family sans
908
909 \begin_inset Flex MenuItem
910 status collapsed
911
912 \begin_layout Plain Layout
913
914 \family sans
915 ファイル\SpecialChar menuseparator
916 インポート\SpecialChar menuseparator
917 LaTeX
918 \end_layout
919
920 \end_inset
921
922
923 \family roman
924 \series medium
925 \shape up
926 \size normal
927 \emph off
928 \bar no
929 \noun off
930 \color none
931 コマンドを使用すると,\SpecialChar LaTeX
932 ファイルを
933 \family default
934 \series default
935 \shape default
936 \size default
937 \emph default
938 \bar default
939 \noun default
940  
941 \family roman
942 \series medium
943 \shape up
944 \size normal
945 \emph off
946 \bar no
947 \noun off
948 \SpecialChar LyX
949 にインポートすることができます.このコマンドは,
950 \family typewriter
951 \series default
952 \shape default
953 \size default
954 \emph default
955 \bar default
956 \noun default
957 \color inherit
958
959 \begin_inset Flex Code
960 status collapsed
961
962 \begin_layout Plain Layout
963
964 \family typewriter
965 tex2lyx
966 \end_layout
967
968 \end_inset
969
970
971 \family roman
972 \series medium
973 \shape up
974 \size normal
975 \emph off
976 \bar no
977 \noun off
978 \color none
979 というプログラムを呼び出し,
980 \family typewriter
981 \series default
982 \shape default
983 \size default
984 \emph default
985 \bar default
986 \noun default
987 \color inherit
988
989 \begin_inset Flex Code
990 status collapsed
991
992 \begin_layout Plain Layout
993
994 \family typewriter
995 foo.tex
996 \end_layout
997
998 \end_inset
999
1000
1001 \family default
1002 などというファイルから
1003 \begin_inset Flex Code
1004 status collapsed
1005
1006 \begin_layout Plain Layout
1007
1008 \family typewriter
1009 foo.lyx
1010 \end_layout
1011
1012 \end_inset
1013
1014 を生成します.\SpecialChar LyX
1015 は,この変換したファイルを開きます
1016 \begin_inset Foot
1017 status collapsed
1018
1019 \begin_layout Plain Layout
1020 \begin_inset Flex Code
1021 status collapsed
1022
1023 \begin_layout Plain Layout
1024 tex2lyx
1025 \end_layout
1026
1027 \end_inset
1028
1029 は,もちろんコマンドラインから実行することもできます.
1030 \end_layout
1031
1032 \end_inset
1033
1034
1035 \end_layout
1036
1037 \begin_layout Standard
1038
1039 \family typewriter
1040 \begin_inset Flex Code
1041 status collapsed
1042
1043 \begin_layout Plain Layout
1044
1045 \family typewriter
1046 tex2lyx
1047 \end_layout
1048
1049 \end_inset
1050
1051
1052 \family roman
1053 \series medium
1054 \shape up
1055 \size normal
1056 \emph off
1057 \bar no
1058 \noun off
1059 \color none
1060 は,文法的に正しい\SpecialChar LaTeX
1061 ファイルのほとんどを変換することができますが,すべてを変換できるわけではありません.
1062 \family typewriter
1063 \series default
1064 \shape default
1065 \size default
1066 \emph default
1067 \bar default
1068 \noun default
1069 \color inherit
1070
1071 \begin_inset Flex Code
1072 status collapsed
1073
1074 \begin_layout Plain Layout
1075
1076 \family typewriter
1077 tex2lyx
1078 \end_layout
1079
1080 \end_inset
1081
1082
1083 \family roman
1084 \series medium
1085 \shape up
1086 \size normal
1087 \emph off
1088 \bar no
1089 \noun off
1090 \color none
1091 は,理解不能な部分は\SpecialChar TeX
1092 コードボックスの形で残しますので,ファイルを
1093 \family typewriter
1094 \series default
1095 \shape default
1096 \size default
1097 \emph default
1098 \bar default
1099 \noun default
1100 \color inherit
1101
1102 \begin_inset Flex Code
1103 status collapsed
1104
1105 \begin_layout Plain Layout
1106
1107 \family typewriter
1108 tex2lyx
1109 \end_layout
1110
1111 \end_inset
1112
1113
1114 \family roman
1115 \series medium
1116 \shape up
1117 \size normal
1118 \emph off
1119 \bar no
1120 \noun off
1121 \color none
1122 で変換したのち,\SpecialChar TeX
1123 コードボックスを探して,手動で正しく編集してください.
1124 \end_layout
1125
1126 \begin_layout Standard
1127
1128 \family roman
1129 \series medium
1130 \shape up
1131 \size normal
1132 \emph off
1133 \bar no
1134 \noun off
1135 \color none
1136 \SpecialChar TeX
1137 コードボックスがなにかご存じなければ,次節をお読みください.
1138 \end_layout
1139
1140 \begin_layout Section
1141 \SpecialChar LyX
1142 文書に\SpecialChar TeX
1143 コードを挿入する
1144 \begin_inset CommandInset label
1145 LatexCommand label
1146 name "sec:TeXコードを挿入する"
1147
1148 \end_inset
1149
1150
1151 \end_layout
1152
1153 \begin_layout Standard
1154
1155 \family roman
1156 \series medium
1157 \shape up
1158 \size normal
1159 \emph off
1160 \bar no
1161 \noun off
1162 \color none
1163 どの\SpecialChar LyX
1164 文書にもつねに\SpecialChar TeX
1165 コードを挿入することが可能であるというきわめて単純な理由によって,\SpecialChar LaTeX
1166 にできることは,つねに\SpecialChar LyX
1167 でも行うことができます.一方,\SpecialChar LyX
1168 は,すべての\SpecialChar LaTeX
1169 構成物を\SpecialChar LyX
1170 内に
1171 表示できるわけではなく,将来的にもそうならないでしょう.かりに\SpecialChar LaTeX
1172 コマンドを\SpecialChar LyX
1173 文書に挿入する必要が出てきた場合には,
1174 \begin_inset Flex Code
1175 status collapsed
1176
1177 \begin_layout Plain Layout
1178
1179 \family roman
1180 \series medium
1181 \shape up
1182 \size normal
1183 \emph off
1184 \bar no
1185 \noun off
1186 \color none
1187 \SpecialChar TeX
1188 コード
1189 \end_layout
1190
1191 \end_inset
1192
1193 ボックスを使用してください.これは,
1194 \family sans
1195 \series default
1196 \shape default
1197 \size default
1198 \emph default
1199 \bar default
1200 \noun default
1201 \color inherit
1202
1203 \begin_inset Flex MenuItem
1204 status collapsed
1205
1206 \begin_layout Plain Layout
1207
1208 \family sans
1209 挿入\SpecialChar menuseparator
1210 TeXコード
1211 \end_layout
1212
1213 \end_inset
1214
1215
1216 \family roman
1217 \series medium
1218 \shape up
1219 \size normal
1220 \emph off
1221 \bar no
1222 \noun off
1223 \color none
1224 若しくは
1225 \family default
1226 \series default
1227 \shape default
1228 \size default
1229 \emph default
1230 \bar default
1231 \noun default
1232 \color inherit
1233
1234 \begin_inset Flex Ruby
1235 status collapsed
1236
1237 \begin_layout Plain Layout
1238
1239 \family roman
1240 \series medium
1241 \shape up
1242 \size normal
1243 \emph off
1244 \bar no
1245 \noun off
1246 \color none
1247 捷径
1248 \family default
1249 \series default
1250 \shape default
1251 \size default
1252 \emph default
1253 \bar default
1254 \noun default
1255 \color inherit
1256
1257 \begin_inset Argument post:1
1258 status collapsed
1259
1260 \begin_layout Plain Layout
1261 ショートカット
1262 \end_layout
1263
1264 \end_inset
1265
1266
1267 \end_layout
1268
1269 \end_inset
1270
1271
1272 \begin_inset Flex Ruby
1273 status collapsed
1274
1275 \begin_layout Plain Layout
1276
1277 \family roman
1278 \series medium
1279 \shape up
1280 \size normal
1281 \emph off
1282 \bar no
1283 \noun off
1284 \color none
1285
1286 \begin_inset Argument post:1
1287 status collapsed
1288
1289 \begin_layout Plain Layout
1290 キー
1291 \end_layout
1292
1293 \end_inset
1294
1295
1296 \end_layout
1297
1298 \end_inset
1299
1300
1301 \begin_inset Info
1302 type  "shortcut"
1303 arg   "ert-insert"
1304 \end_inset
1305
1306
1307 \family roman
1308 \series medium
1309 \shape up
1310 \size normal
1311 \emph off
1312 \bar no
1313 \noun off
1314 \color none
1315 で,文書中に挿入することができます.
1316 \end_layout
1317
1318 \begin_layout Standard
1319 以下は,\SpecialChar LaTeX
1320 コマンドを\SpecialChar LyX
1321 文書中に挿入する例です.コードは以下のようになっているとしましょう.
1322 \end_layout
1323
1324 \begin_layout LyX-Code
1325
1326 \backslash
1327 begin{tabular}{ll}
1328 \begin_inset Newline newline
1329 \end_inset
1330
1331
1332 \backslash
1333 begin{minipage}{5cm}
1334 \begin_inset Newline newline
1335 \end_inset
1336
1337 これは,ミニページ環境の例です.
1338 \begin_inset Newline newline
1339 \end_inset
1340
1341 これには,
1342 \begin_inset Newline newline
1343 \end_inset
1344
1345 (フロートでない)図表を
1346 \begin_inset Newline newline
1347 \end_inset
1348
1349 含め,ほとんど何でも
1350 \begin_inset Newline newline
1351 \end_inset
1352
1353 入れることができます. 
1354 \begin_inset Newline newline
1355 \end_inset
1356
1357
1358 \backslash
1359 end{minipage}
1360 \begin_inset Newline newline
1361 \end_inset
1362
1363 &
1364 \begin_inset Newline newline
1365 \end_inset
1366
1367
1368 \backslash
1369 begin{minipage}{5cm}
1370 \begin_inset Newline newline
1371 \end_inset
1372
1373
1374 \backslash
1375 begin{verbatim}
1376 \begin_inset Newline newline
1377 \end_inset
1378
1379
1380 \backslash
1381 begin{minipage}{5cm}
1382 \begin_inset Newline newline
1383 \end_inset
1384
1385 これは...
1386  
1387 \begin_inset Newline newline
1388 \end_inset
1389
1390
1391 \backslash
1392 end{minipage}
1393 \begin_inset Newline newline
1394 \end_inset
1395
1396
1397 \backslash
1398 end{verbatim}
1399 \begin_inset Newline newline
1400 \end_inset
1401
1402
1403 \backslash
1404 end{minipage}
1405 \begin_inset Newline newline
1406 \end_inset
1407
1408
1409 \backslash
1410 end{tabular}
1411 \end_layout
1412
1413 \begin_layout LyX-Code
1414
1415 \end_layout
1416
1417 \begin_layout Standard
1418 上記のテキストを含んだ
1419 \begin_inset Flex Code
1420 status collapsed
1421
1422 \begin_layout Plain Layout
1423 \SpecialChar TeX
1424 コード
1425 \end_layout
1426
1427 \end_inset
1428
1429 ボックスが,この段落の直後にあります.この取扱説明書を\SpecialChar LyX
1430 上でご覧になっていれば,\SpecialChar TeX
1431 コード差込枠のみが見えるはずです.印刷した取扱説明書をご覧であれば,実際の結果が見
1432 れるはずです.
1433 \end_layout
1434
1435 \begin_layout Standard
1436 \begin_inset VSpace bigskip
1437 \end_inset
1438
1439
1440 \begin_inset ERT
1441 status open
1442
1443 \begin_layout Plain Layout
1444
1445
1446 \backslash
1447 begin{tabular}{ll}
1448 \end_layout
1449
1450 \begin_layout Plain Layout
1451
1452
1453 \backslash
1454 begin{minipage}{5cm}
1455 \end_layout
1456
1457 \begin_layout Plain Layout
1458
1459 これは,ミニページ環境の例です.これには,(フロートでない)図表を含め,ほとんど何でも入れることができます. 
1460 \backslash
1461 end{minipage}
1462 \end_layout
1463
1464 \begin_layout Plain Layout
1465
1466 &
1467 \end_layout
1468
1469 \begin_layout Plain Layout
1470
1471
1472 \backslash
1473 begin{minipage}{5cm}
1474 \end_layout
1475
1476 \begin_layout Plain Layout
1477
1478
1479 \backslash
1480 begin{verbatim}
1481 \end_layout
1482
1483 \begin_layout Plain Layout
1484
1485
1486 \backslash
1487 begin{minipage}{5cm}
1488 \end_layout
1489
1490 \begin_layout Plain Layout
1491
1492 これは...
1493  
1494 \backslash
1495 end{minipage}
1496 \end_layout
1497
1498 \begin_layout Plain Layout
1499
1500
1501 \backslash
1502 end{verbatim}
1503 \end_layout
1504
1505 \begin_layout Plain Layout
1506
1507
1508 \backslash
1509 end{minipage}
1510 \end_layout
1511
1512 \begin_layout Plain Layout
1513
1514
1515 \backslash
1516 end{tabular}
1517 \end_layout
1518
1519 \end_inset
1520
1521
1522 \begin_inset VSpace bigskip
1523 \end_inset
1524
1525
1526 \end_layout
1527
1528 \begin_layout Standard
1529
1530 \family roman
1531 \series medium
1532 \shape up
1533 \size normal
1534 \emph off
1535 \bar no
1536 \noun off
1537 \color none
1538 \SpecialChar TeX
1539 コードを使用する方法に加えて,複雑な\SpecialChar LaTeX
1540 コードを含む部分を別ファイルとして作成しておき,そのファイルをインクルードするのに
1541 \begin_inset Flex MenuItem
1542 status collapsed
1543
1544 \begin_layout Plain Layout
1545
1546 \family roman
1547 \series medium
1548 \shape up
1549 \size normal
1550 \emph off
1551 \bar no
1552 \noun off
1553 \color none
1554 挿入\SpecialChar menuseparator
1555 ファイル\SpecialChar menuseparator
1556 子文書
1557 \end_layout
1558
1559 \end_inset
1560
1561 を使用する方法もあります(取り込みの型として
1562 \begin_inset Flex Code
1563 status collapsed
1564
1565 \begin_layout Plain Layout
1566
1567 \family roman
1568 \series medium
1569 \shape up
1570 \size normal
1571 \emph off
1572 \bar no
1573 \noun off
1574 \color none
1575 Input
1576 \end_layout
1577
1578 \end_inset
1579
1580 を選択しなくてはなりません).この方法をとる場合には,.texファイルが正しく動作することが
1581 \family default
1582 \series default
1583 \shape default
1584 \size default
1585 \emph on
1586 \bar default
1587 \noun default
1588 \color inherit
1589 確認できている
1590 \family roman
1591 \series medium
1592 \shape up
1593 \size normal
1594 \emph off
1595 \bar no
1596 \noun off
1597 \color none
1598 場合のみに限った方がよいでしょう.さもないと,\SpecialChar LaTeX
1599 エラーを追跡するたいへんな作業を行わなくてはならなくなります.
1600 \end_layout
1601
1602 \begin_layout Standard
1603
1604 \family roman
1605 \series medium
1606 \shape up
1607 \size normal
1608 \emph off
1609 \bar no
1610 \noun off
1611 \color none
1612 最後に,いくつか強調しておくべきことがあります.
1613 \end_layout
1614
1615 \begin_layout Itemize
1616
1617 \family roman
1618 \series medium
1619 \shape up
1620 \size normal
1621 \emph off
1622 \bar no
1623 \noun off
1624 \color none
1625 \SpecialChar LyX
1626 は,あなたの\SpecialChar LaTeX
1627 コードが正しいかどうかを
1628 \family default
1629 \series default
1630 \shape default
1631 \size default
1632 \emph on
1633 \bar default
1634 \noun default
1635 \color inherit
1636 チェックしません
1637 \family roman
1638 \series medium
1639 \shape up
1640 \size normal
1641 \emph off
1642 \bar no
1643 \noun off
1644 \color none
1645
1646 \end_layout
1647
1648 \begin_layout Itemize
1649
1650 \family roman
1651 \series medium
1652 \shape up
1653 \size normal
1654 \emph off
1655 \bar no
1656 \noun off
1657 \color none
1658 車輪の再発明をしないようにご注意ください.
1659 \end_layout
1660
1661 \begin_layout Standard
1662
1663 \family roman
1664 \series medium
1665 \shape up
1666 \size normal
1667 \emph off
1668 \bar no
1669 \noun off
1670 \color none
1671 二番目の点に関して,\SpecialChar LyX
1672 はひじょうにたくさんの機能を装備しており,その数は増えつづけています.ご自身で\SpecialChar LaTeX
1673 コードを書かなくてはならないと思い込む前に,LyXがこれこれの
1674 機能をもっていないことを,取扱説明書で確実に確かめてください.さらに世の中には,封筒のラベルから美しい複数ページにわたる表を作るものまで,ありとあらゆることを行
1675 う膨大な数の\SpecialChar LaTeX
1676 パッケージが存在します.
1677 \family default
1678 \series default
1679 \shape default
1680 \size default
1681 \emph default
1682 \bar default
1683 \noun default
1684 \color inherit
1685 詳細については,
1686 \begin_inset CommandInset href
1687 LatexCommand href
1688 name "CTAN"
1689 target "http://www.ctan.org/"
1690 literal "false"
1691
1692 \end_inset
1693
1694
1695 \family roman
1696 \series medium
1697 \shape up
1698 \size normal
1699 \emph off
1700 \bar no
1701 \noun off
1702 \color none
1703 と第
1704 \begin_inset CommandInset ref
1705 LatexCommand ref
1706 reference "chap:Special-features"
1707
1708 \end_inset
1709
1710 節をご覧ください.
1711 \end_layout
1712
1713 \begin_layout Standard
1714
1715 \family roman
1716 \series medium
1717 \shape up
1718 \size normal
1719 \emph off
1720 \bar no
1721 \noun off
1722 \color none
1723 もし,文書中で例外的に手の込んだことをなさりたければ,かならず良い\SpecialChar LaTeX
1724 関連書籍を参考とするようにしてください.『
1725 \family default
1726 \series default
1727 \shape default
1728 \size default
1729 \emph on
1730 \bar default
1731 \noun default
1732 \color inherit
1733 ユーザーの手引き
1734 \family roman
1735 \series medium
1736 \shape up
1737 \size normal
1738 \emph off
1739 \bar no
1740 \noun off
1741 \color none
1742 』の書誌情報に多くの\SpecialChar LaTeX
1743 関連書籍が引用されています.
1744 \end_layout
1745
1746 \begin_layout Section
1747 \SpecialChar LyX
1748 と\SpecialChar LaTeX
1749 プリアンブル
1750 \end_layout
1751
1752 \begin_layout Subsection
1753 \SpecialChar LaTeX
1754 プリアンブルについて
1755 \end_layout
1756
1757 \begin_layout Standard
1758
1759 \family roman
1760 \series medium
1761 \shape up
1762 \size normal
1763 \emph off
1764 \bar no
1765 \noun off
1766 \color none
1767 すでに\SpecialChar LaTeX
1768 についてご存知であれば,ここでプリアンブル(前置文)が何に向いているか説明する必要はないでしょう.もしご存じなければ,以下の説明で大まかな理解は得られるは
1769 ずです.詳しくは\SpecialChar LaTeX
1770 関連書籍をご参照ください.いずれにしても,以下で\SpecialChar LyX
1771 文書の\SpecialChar LaTeX
1772 プリアンブルで何ができるか,または何をする必要がないか説明をしますので,以下の各要点はお読
1773 みになった方が良いでしょう.
1774 \end_layout
1775
1776 \begin_layout Standard
1777
1778 \family roman
1779 \series medium
1780 \shape up
1781 \size normal
1782 \emph off
1783 \bar no
1784 \noun off
1785 \color none
1786 \SpecialChar LaTeX
1787 プリアンブルは,\SpecialChar LaTeX
1788 文書のいちばん始め,本文の
1789 \family default
1790 \series default
1791 \shape default
1792 \size default
1793 \emph on
1794 \bar default
1795 \noun default
1796 \color inherit
1797
1798 \family roman
1799 \series medium
1800 \shape up
1801 \size normal
1802 \emph off
1803 \bar no
1804 \noun off
1805 \color none
1806 の部分に来ます.ここでは以下のことを行います.
1807 \end_layout
1808
1809 \begin_layout Itemize
1810
1811 \family roman
1812 \series medium
1813 \shape up
1814 \size normal
1815 \emph off
1816 \bar no
1817 \noun off
1818 \color none
1819 文書クラス(ドキュメントクラス)の宣言.
1820 \begin_inset Newline newline
1821 \end_inset
1822
1823 これは\SpecialChar LyX
1824 がすでに行ってくれています.もしあなたが熟達した\SpecialChar LaTeX
1825 使いであり,自作の文書クラスを使いたい場合には,取扱説明書『
1826 \family default
1827 \series default
1828 \shape default
1829 \size default
1830 \emph on
1831 \bar default
1832 \noun default
1833 \color inherit
1834 カスタマイズ篇
1835 \family roman
1836 \series medium
1837 \shape up
1838 \size normal
1839 \emph off
1840 \bar no
1841 \noun off
1842 \color none
1843 』をご覧になれば,\SpecialChar LyX
1844 に自作文書クラスへの仲介を行わせるにはどうすればよいかの情報があります.
1845 \end_layout
1846
1847 \begin_layout Itemize
1848
1849 \family roman
1850 \series medium
1851 \shape up
1852 \size normal
1853 \emph off
1854 \bar no
1855 \noun off
1856 \color none
1857 パッケージ使用の宣言.
1858 \begin_inset Newline newline
1859 \end_inset
1860
1861 \SpecialChar LaTeX
1862 パッケージは,パッケージがプリアンブルで宣言された場合のみ,文書中で利用可能となる,追加コマンド群を提供します.パッケージをインクルードすると,特別なコマンドが
1863 提供されることに加え,文書に変更を加えることができます.例えば
1864 \family typewriter
1865 \series default
1866 \shape default
1867 \size default
1868 \emph default
1869 \bar default
1870 \noun default
1871 \color inherit
1872
1873 \family roman
1874 \series medium
1875 \shape up
1876 \size normal
1877 \emph off
1878 \bar no
1879 \noun off
1880 \color none
1881
1882 \begin_inset Flex Code
1883 status collapsed
1884
1885 \begin_layout Plain Layout
1886
1887 \family typewriter
1888 indentfirst
1889 \end_layout
1890
1891 \end_inset
1892
1893 パッケージは,すべての段落の最初の行を字下げします.他にも,ラベルや宛名書き,余白設定等の様々なパッケージがあります.
1894 \end_layout
1895
1896 \begin_layout Itemize
1897
1898 \family roman
1899 \series medium
1900 \shape up
1901 \size normal
1902 \emph off
1903 \bar no
1904 \noun off
1905 \color none
1906 カウンタ・変数・長さ・幅の設定.
1907 \begin_inset Newline newline
1908 \end_inset
1909
1910 \SpecialChar LaTeX
1911 のカウンタと変数の中には,プリアンブルでグローバルに
1912 \family default
1913 \series default
1914 \shape default
1915 \size default
1916 \emph default
1917 \bar default
1918 \noun default
1919 \color inherit
1920 設定
1921 \emph on
1922 しないかぎり
1923 \family roman
1924 \series medium
1925 \shape up
1926 \size normal
1927 \emph off
1928 \bar no
1929 \noun off
1930 \color none
1931 ,望んだ効果を持たないものがあります.(文書中で設定したり再設定したりすることのできる変数もあります.)余白は,プリアンブルで設定しなくてはならない変数の代表例
1932 です.他には,箇条書きに付けるラベル書式が挙げられます.じつは,この設定は文書中どこでもできるのですが,プリアンブルでいちどだけ設定するのが望ましい方法です.
1933 \end_layout
1934
1935 \begin_layout Itemize
1936
1937 \family roman
1938 \series medium
1939 \shape up
1940 \size normal
1941 \emph off
1942 \bar no
1943 \noun off
1944 \color none
1945 ユーザー定義コマンドの宣言(
1946 \begin_inset Flex Code
1947 status collapsed
1948
1949 \begin_layout Plain Layout
1950
1951 \family roman
1952 \series medium
1953 \shape up
1954 \size normal
1955 \emph off
1956 \bar no
1957 \noun off
1958 \color none
1959
1960 \backslash
1961 newcommand
1962 \end_layout
1963
1964 \end_inset
1965
1966 または
1967 \begin_inset Flex Code
1968 status collapsed
1969
1970 \begin_layout Plain Layout
1971
1972 \family roman
1973 \series medium
1974 \shape up
1975 \size normal
1976 \emph off
1977 \bar no
1978 \noun off
1979 \color none
1980
1981 \backslash
1982 renewcommand
1983 \end_layout
1984
1985 \end_inset
1986
1987 を使用).
1988 \begin_inset Newline newline
1989 \end_inset
1990
1991 ユーザー定義コマンドは,文書中で頻出する\SpecialChar LaTeX
1992 コマンドの短縮形です.このようなコマンドを宣言するには,プリアンブルが適した場所ですが,どこで宣言することも
1993 \family default
1994 \series default
1995 \shape default
1996 \size default
1997 \emph on
1998 \bar default
1999 \noun default
2000 \color inherit
2001 可能
2002 \family roman
2003 \series medium
2004 \shape up
2005 \size normal
2006 \emph off
2007 \bar no
2008 \noun off
2009 \color none
2010 です(もちろんコマンドが初めて使用される場所よりも前です).あまりないことではありますが,お使いの文書中に生の\SpecialChar LaTeX
2011 コードがあふれている場合には便利でしょう.
2012 \end_layout
2013
2014 \begin_layout Standard
2015
2016 \family roman
2017 \series medium
2018 \shape up
2019 \size normal
2020 \emph off
2021 \bar no
2022 \noun off
2023 \color none
2024 \SpecialChar LyX
2025 は,その生成する
2026 \begin_inset Flex Code
2027 status collapsed
2028
2029 \begin_layout Plain Layout
2030
2031 \family roman
2032 \series medium
2033 \shape up
2034 \size normal
2035 \emph off
2036 \bar no
2037 \noun off
2038 \color none
2039 .tex
2040 \end_layout
2041
2042 \end_inset
2043
2044 ファイルのプリアンブルに,それ自身の定義を追加します.これによって,\SpecialChar LyX
2045 の生成する\SpecialChar LaTeX
2046 ファイルの可搬性を高めています.
2047 \end_layout
2048
2049 \begin_layout Subsection
2050 プリアンブルの変更
2051 \end_layout
2052
2053 \begin_layout Standard
2054
2055 \family roman
2056 \series medium
2057 \shape up
2058 \size normal
2059 \emph off
2060 \bar no
2061 \noun off
2062 \color none
2063 \SpecialChar LyX
2064 が\SpecialChar LaTeX
2065 ファイルのプリアンブルに追加するコマンドは,つねに同じです.これは,\SpecialChar LyX
2066 自体にパッチを当てないかぎり変更できないようになっています.しかしながら,
2067 \begin_inset Flex MenuItem
2068 status collapsed
2069
2070 \begin_layout Plain Layout
2071
2072 \family roman
2073 \series medium
2074 \shape up
2075 \size normal
2076 \emph off
2077 \bar no
2078 \noun off
2079 \color none
2080 文書\SpecialChar menuseparator
2081 設定
2082 \end_layout
2083
2084 \end_inset
2085
2086 ダイアログの
2087 \begin_inset Flex MenuItem
2088 status collapsed
2089
2090 \begin_layout Plain Layout
2091
2092 \family roman
2093 \series medium
2094 \shape up
2095 \size normal
2096 \emph off
2097 \bar no
2098 \noun off
2099 \color none
2100 \SpecialChar LaTeX
2101 プリアンブル
2102 \end_layout
2103
2104 \end_inset
2105
2106 の項から,プリアンブルに追加をすることはできます.\SpecialChar LyX
2107 は,
2108 \family sans
2109 \series default
2110 \shape default
2111 \size default
2112 \emph default
2113 \bar default
2114 \noun default
2115 \color inherit
2116
2117 \begin_inset Flex MenuItem
2118 status collapsed
2119
2120 \begin_layout Plain Layout
2121
2122 \family sans
2123 プリアンブル
2124 \end_layout
2125
2126 \end_inset
2127
2128
2129 \family roman
2130 \series medium
2131 \shape up
2132 \size normal
2133 \emph off
2134 \bar no
2135 \noun off
2136 \color none
2137 ダイアログ内のすべてのものを,\SpecialChar LyX
2138 埋込みのプリアンブルに付け加えます.ご自身の宣言をプリアンブルに追加する前に,あなたがしようとしていることを\SpecialChar LyX
2139 がすでにサポートしてい
2140 ないかどうか確認してください(車輪の再発明をしないように,とはすでに申しあげたことです).
2141 \family default
2142 \series default
2143 \shape default
2144 \size default
2145 \emph default
2146 \bar default
2147 \noun default
2148 \color inherit
2149 また,
2150 \emph on
2151 プリアンブルコードが正しいことを確認してください.
2152 \emph default
2153 \SpecialChar LyX
2154 は,プリアンブルをチェックしません.
2155 \family roman
2156 \series medium
2157 \shape up
2158 \size normal
2159 \emph off
2160 \bar no
2161 \noun off
2162 \color none
2163 もしエラーがあれば,「
2164 \begin_inset Flex Code
2165 status collapsed
2166
2167 \begin_layout Plain Layout
2168
2169 \family roman
2170 \series medium
2171 \shape up
2172 \size normal
2173 \emph off
2174 \bar no
2175 \noun off
2176 \color none
2177 Missing 
2178 \backslash
2179 begin{document}
2180 \end_layout
2181
2182 \end_inset
2183
2184 」といったエラーが出ることでしょう.このようなエラーが出たときは,プリアンブルを再確認してください.
2185 \end_layout
2186
2187 \begin_layout Subsection
2188
2189 \end_layout
2190
2191 \begin_layout Standard
2192
2193 \family roman
2194 \series medium
2195 \shape up
2196 \size normal
2197 \emph off
2198 \bar no
2199 \noun off
2200 \color none
2201 以下は,プリアンブルに追加できるものとその効果を示す例です.
2202 \end_layout
2203
2204 \begin_layout Subsubsection
2205 例1:オフセット
2206 \end_layout
2207
2208 \begin_layout Standard
2209
2210 \family roman
2211 \series medium
2212 \shape up
2213 \size normal
2214 \emph off
2215 \bar no
2216 \noun off
2217 \color none
2218 \SpecialChar LaTeX
2219 には
2220 \family default
2221 \series default
2222 \shape default
2223 \size default
2224 \emph default
2225 \bar default
2226 \noun default
2227 \color inherit
2228
2229 \family roman
2230 \series medium
2231 \shape up
2232 \size normal
2233 \emph off
2234 \bar no
2235 \noun off
2236 \color none
2237
2238 \begin_inset Flex Code
2239 status collapsed
2240
2241 \begin_layout Plain Layout
2242
2243 \family typewriter
2244
2245 \backslash
2246 hoffset
2247 \end_layout
2248
2249 \end_inset
2250
2251
2252 \family typewriter
2253 \series default
2254 \shape default
2255 \size default
2256 \emph default
2257 \bar default
2258 \noun default
2259 \color inherit
2260
2261 \begin_inset Flex Code
2262 status collapsed
2263
2264 \begin_layout Plain Layout
2265
2266 \family typewriter
2267
2268 \backslash
2269 voffset
2270 \end_layout
2271
2272 \end_inset
2273
2274
2275 \family roman
2276 \series medium
2277 \shape up
2278 \size normal
2279 \emph off
2280 \bar no
2281 \noun off
2282 \color none
2283 というページ位置を制御する2つの変数があります.その機能は名前から明らかなとおりです.これらの変数は,ラベルを印刷するときなどに便利です.往々にして,印刷用紙の
2284 寸法とそのうち実際に印字可能な範囲は同じではありません.ここに
2285 \begin_inset Flex Code
2286 status collapsed
2287
2288 \begin_layout Plain Layout
2289
2290 \family typewriter
2291
2292 \backslash
2293 hoffset
2294 \end_layout
2295
2296 \end_inset
2297
2298
2299 \family typewriter
2300 \series default
2301 \shape default
2302 \size default
2303 \emph default
2304 \bar default
2305 \noun default
2306 \color inherit
2307
2308 \begin_inset Flex Code
2309 status collapsed
2310
2311 \begin_layout Plain Layout
2312
2313 \family typewriter
2314
2315 \backslash
2316 voffset
2317 \end_layout
2318
2319 \end_inset
2320
2321
2322 \family default
2323 が役立つわけです.
2324 \end_layout
2325
2326 \begin_layout Standard
2327
2328 \family roman
2329 \series medium
2330 \shape up
2331 \size normal
2332 \emph off
2333 \bar no
2334 \noun off
2335 \color none
2336 \begin_inset Flex Code
2337 status collapsed
2338
2339 \begin_layout Plain Layout
2340
2341 \family typewriter
2342
2343 \backslash
2344 hoffset
2345 \end_layout
2346
2347 \end_inset
2348
2349
2350 \family typewriter
2351 \series default
2352 \shape default
2353 \size default
2354 \emph default
2355 \bar default
2356 \noun default
2357 \color inherit
2358
2359 \begin_inset Flex Code
2360 status collapsed
2361
2362 \begin_layout Plain Layout
2363
2364 \family typewriter
2365
2366 \backslash
2367 voffset
2368 \end_layout
2369
2370 \end_inset
2371
2372
2373 \family roman
2374 \series medium
2375 \shape up
2376 \size normal
2377 \emph off
2378 \bar no
2379 \noun off
2380 \color none
2381 の既定値はともに0ポイント,つまりページをシフトしません.残念ながら,DVIドライバによってはつねにページをシフトすることがあるようです.我々には,どうしてその
2382 ようなことをするのか,そしてシスアドがどうしてそれを修正しないのか理解できませんが,もし個人的に管理できないシステムで\SpecialChar LyX
2383 を使用していて,シスアドがお馬鹿さんである
2384 場合には,
2385 \begin_inset Flex Code
2386 status collapsed
2387
2388 \begin_layout Plain Layout
2389
2390 \family typewriter
2391
2392 \backslash
2393 hoffset
2394 \end_layout
2395
2396 \end_inset
2397
2398
2399 \family typewriter
2400 \series default
2401 \shape default
2402 \size default
2403 \emph default
2404 \bar default
2405 \noun default
2406 \color inherit
2407
2408 \begin_inset Flex Code
2409 status collapsed
2410
2411 \begin_layout Plain Layout
2412
2413 \family typewriter
2414
2415 \backslash
2416 voffset
2417 \end_layout
2418
2419 \end_inset
2420
2421
2422 \family roman
2423 \series medium
2424 \shape up
2425 \size normal
2426 \emph off
2427 \bar no
2428 \noun off
2429 \color none
2430 が役に立ちます.かりに,上余白と左余白がつねに0.5インチずつ大きすぎるものとしましょう.その場合は,以下をプリアンブルに追加するとよいでしょう.
2431 \end_layout
2432
2433 \begin_layout LyX-Code
2434
2435 \backslash
2436 setlength{
2437 \backslash
2438 hoffset}{-0.5 in}
2439 \end_layout
2440
2441 \begin_layout LyX-Code
2442
2443 \backslash
2444 setlength{
2445 \backslash
2446 voffset}{-0.5 in}
2447 \end_layout
2448
2449 \begin_layout Standard
2450
2451 \family roman
2452 \series medium
2453 \shape up
2454 \size normal
2455 \emph off
2456 \bar no
2457 \noun off
2458 \color none
2459 これで余白が修正されます.
2460 \end_layout
2461
2462 \begin_layout Subsubsection
2463 例2:ラベル
2464 \end_layout
2465
2466 \begin_layout Standard
2467
2468 \family roman
2469 \series medium
2470 \shape up
2471 \size normal
2472 \emph off
2473 \bar no
2474 \noun off
2475 \color none
2476 いま,たくさんの宛名ラベルを印刷をしたいものとしましょう.ラベルシートを印刷するために便利な
2477 \begin_inset Flex Code
2478 status collapsed
2479
2480 \begin_layout Plain Layout
2481
2482 \family typewriter
2483 labels.sty
2484 \end_layout
2485
2486 \end_inset
2487
2488 という\SpecialChar LaTeX
2489 パッケージが,お近くのCTANアーカイブで入手可能です.お使いのシステムには,既定ではこのパッケージは導入されていないかもしれません.ご自身でお確かめくだ
2490 さい.また,このパッケージの取扱説明書を読まれたいかもしれませんが,それもご自身にお任せします.これは使用例ですので,このパッケージをどう使うかの例だけお見せす
2491 ることにします.
2492 \end_layout
2493
2494 \begin_layout Standard
2495
2496 \family roman
2497 \series medium
2498 \shape up
2499 \size normal
2500 \emph off
2501 \bar no
2502 \noun off
2503 \color none
2504 まず,
2505 \begin_inset Flex Code
2506 status collapsed
2507
2508 \begin_layout Plain Layout
2509
2510 \family sans
2511 article
2512 \end_layout
2513
2514 \end_inset
2515
2516 文書クラスを使用していることをご確認ください.次に,以下のような設定をプリアンブルに追加しなければなりません.
2517 \end_layout
2518
2519 \begin_layout LyX-Code
2520
2521 \backslash
2522 usepackage{labels}
2523 \end_layout
2524
2525 \begin_layout LyX-Code
2526
2527 \backslash
2528 LabelCols=3
2529 \end_layout
2530
2531 \begin_layout LyX-Code
2532
2533 \backslash
2534 LabelRows=7
2535 \end_layout
2536
2537 \begin_layout LyX-Code
2538
2539 \backslash
2540 LeftBorder=8mm
2541 \end_layout
2542
2543 \begin_layout LyX-Code
2544
2545 \backslash
2546 RightBorder=8mm
2547 \end_layout
2548
2549 \begin_layout LyX-Code
2550
2551 \backslash
2552 TopBorder=9mm
2553 \end_layout
2554
2555 \begin_layout LyX-Code
2556
2557 \backslash
2558 BottomBorder=2mm
2559 \end_layout
2560
2561 \begin_layout Standard
2562
2563 \family roman
2564 \series medium
2565 \shape up
2566 \size normal
2567 \emph off
2568 \bar no
2569 \noun off
2570 \color none
2571 これは
2572 \family default
2573 \series default
2574 \shape default
2575 \size default
2576 \emph default
2577 \bar default
2578 \noun default
2579 \color inherit
2580 Averyラベルシートのストック5360
2581 \family roman
2582 \series medium
2583 \shape up
2584 \size normal
2585 \emph off
2586 \bar no
2587 \noun off
2588 \color none
2589 番を使用する場合の設定です.これで,各宛名を
2590 \begin_inset Flex Code
2591 status collapsed
2592
2593 \begin_layout Plain Layout
2594
2595 \family typewriter
2596
2597 \backslash
2598 begin{labels}
2599 \end_layout
2600
2601 \end_inset
2602
2603
2604 \family typewriter
2605 \series default
2606 \shape default
2607 \size default
2608 \emph default
2609 \bar default
2610 \noun default
2611 \color inherit
2612
2613 \begin_inset Flex Code
2614 status collapsed
2615
2616 \begin_layout Plain Layout
2617
2618 \family typewriter
2619
2620 \backslash
2621 end{labels}
2622 \end_layout
2623
2624 \end_inset
2625
2626
2627 \family roman
2628 \series medium
2629 \shape up
2630 \size normal
2631 \emph off
2632 \bar no
2633 \noun off
2634 \color none
2635 で囲めば,宛名ラベルの印刷をすることができます.本機能およびその他の機能に関しては,
2636 \begin_inset Flex Code
2637 status collapsed
2638
2639 \begin_layout Plain Layout
2640
2641 \family typewriter
2642 labels.sty
2643 \end_layout
2644
2645 \end_inset
2646
2647 の取扱説明書に説明されています.
2648 \end_layout
2649
2650 \begin_layout Standard
2651
2652 \family roman
2653 \series medium
2654 \shape up
2655 \size normal
2656 \emph off
2657 \bar no
2658 \noun off
2659 \color none
2660 そのうち誰かが,このパッケージを直接サポートする\SpecialChar LyX
2661 レイアウトファイルを作ってくれるかもしれません.その誰かはあなたかもしれません.
2662 \end_layout
2663
2664 \begin_layout Subsubsection
2665 例3: 段落の字下げ
2666 \end_layout
2667
2668 \begin_layout Standard
2669
2670 \family roman
2671 \series medium
2672 \shape up
2673 \size normal
2674 \emph off
2675 \bar no
2676 \noun off
2677 \color none
2678 アメリカ人は
2679 \family default
2680 \series default
2681 \shape default
2682 \size default
2683 \emph default
2684 \bar default
2685 \noun default
2686 \color inherit
2687
2688 \emph on
2689 すべての
2690 \family roman
2691 \series medium
2692 \shape up
2693 \size normal
2694 \emph off
2695 \bar no
2696 \noun off
2697 \color none
2698 段落の最初の行を字下げするように教育されています.そのために彼らの他の変な習慣と同じく,いつものようにすべての段落の最初の行を下げるまで,アメリカ人はごちゃごち
2699 ゃと文句を言いつづけるのです
2700 \family default
2701 \series default
2702 \shape default
2703 \size default
2704 \emph default
2705 \bar default
2706 \noun default
2707 \color inherit
2708 .(これはユーモアです.(ほんと?)
2709 \emph on
2710 ユーモアですってば
2711 \emph default
2712 .)
2713 \end_layout
2714
2715 \begin_layout Standard
2716
2717 \family roman
2718 \series medium
2719 \shape up
2720 \size normal
2721 \emph off
2722 \bar no
2723 \noun off
2724 \color none
2725 もちろん,これは標準的な組版ルールではありません.書籍では,典型的には,他の段落のあとにくる段落
2726 \family default
2727 \series default
2728 \shape default
2729 \size default
2730 \emph on
2731 \bar default
2732 \noun default
2733 \color inherit
2734 のみ
2735 \family roman
2736 \series medium
2737 \shape up
2738 \size normal
2739 \emph off
2740 \bar no
2741 \noun off
2742 \color none
2743 字下げを行ないます.一行めを字下げをするそもそもの目的は,隣接する段落から区別するためです.したがって,図のあとや節の最初の段落など,先行する段落がない場合には
2744 ,字下げをする必要はないのです.
2745 \end_layout
2746
2747 \begin_layout Standard
2748
2749 \family roman
2750 \series medium
2751 \shape up
2752 \size normal
2753 \emph off
2754 \bar no
2755 \noun off
2756 \color none
2757 けれどもあなたが典型的なアメリカ人なら(ユーーモアですって!),そのような小難しいことはかまわずに,いつもどおりの字下げをせずにはいられないでしょう!プリアンブ
2758 ルに次の行を加えて下さい.
2759 \end_layout
2760
2761 \begin_layout LyX-Code
2762
2763 \backslash
2764 usepackage{indentfirst}
2765 \end_layout
2766
2767 \begin_layout Standard
2768
2769 \family roman
2770 \series medium
2771 \shape up
2772 \size normal
2773 \emph off
2774 \bar no
2775 \noun off
2776 \color none
2777 もしお使いの\SpecialChar TeX
2778 頒布版が脳死状態でなければ,このパッケージが入っているはずなので,建国の父たちが意図したように,すべての段落が字下げされます.
2779 \end_layout
2780
2781 \begin_layout Subsubsection
2782 例4:この文書
2783 \end_layout
2784
2785 \begin_layout Standard
2786
2787 \family roman
2788 \series medium
2789 \shape up
2790 \size normal
2791 \emph off
2792 \bar no
2793 \noun off
2794 \color none
2795 この文書のプリアンブルを見てみると,どのような高度な設定ができるか,おおまかな理解が得られるでしょう.また第
2796 \family default
2797 \series default
2798 \shape default
2799 \size default
2800 \emph default
2801 \bar default
2802 \noun default
2803 \color inherit
2804
2805 \begin_inset CommandInset ref
2806 LatexCommand ref
2807 reference "chap:Special-features"
2808
2809 \end_inset
2810
2811
2812 \family roman
2813 \series medium
2814 \shape up
2815 \size normal
2816 \emph off
2817 \bar no
2818 \noun off
2819 \color none
2820 章には,他の例や,\SpecialChar LaTeX
2821 の各種の「汚い技」があります.
2822 \end_layout
2823
2824 \begin_layout Section
2825 \SpecialChar LyX
2826 および\SpecialChar LaTeX
2827 のエラー
2828 \end_layout
2829
2830 \begin_layout Standard
2831
2832 \family roman
2833 \series medium
2834 \shape up
2835 \size normal
2836 \emph off
2837 \bar no
2838 \noun off
2839 \color none
2840 \SpecialChar LyX
2841 が\SpecialChar LaTeX
2842 を呼び出す際,\SpecialChar LyX
2843 は\SpecialChar LaTeX
2844 に,かりにエラーがあったとしても楽観的に無視して先に進むように指示します.その後\SpecialChar LyX
2845 は,\SpecialChar LaTeX
2846 の実行ログファイルを事後処理用に使います.ログファイルを分
2847 析したのち,\SpecialChar LyX
2848 はエラーを一覧表示するダイアログを表示します.エラーのうちどれかをクリックすると,\SpecialChar LyX
2849 ファイル中,そのエラーの発生した場所に表示を移動します
2850 \begin_inset Foot
2851 status collapsed
2852
2853 \begin_layout Plain Layout
2854
2855 \family roman
2856 \series medium
2857 \shape up
2858 \size normal
2859 \emph off
2860 \bar no
2861 \noun off
2862 \color none
2863 正確にいうと,通常は,です.ログファイルの分析は難しい仕事ですので,\SpecialChar LyX
2864 はつねに正しい行に連れて行ってくれるとは限りません.ときには,\SpecialChar LaTeX
2865 がある行にエラーがあると報告し
2866 たとしても,実際のエラーはそれよりも前であることもあります.これは,プログラムで閉じ括弧を忘れたときに似ていなくもありません.エラーは表示されますが,実際にエラ
2867 ーのある場所よりも後ろでエラーが報告されるのです.
2868 \end_layout
2869
2870 \end_inset
2871
2872
2873 \family default
2874 \series default
2875 \shape default
2876 \size default
2877 \emph default
2878 \bar default
2879 \noun default
2880 \color inherit
2881
2882 \end_layout
2883
2884 \begin_layout Standard
2885
2886 \family roman
2887 \series medium
2888 \shape up
2889 \size normal
2890 \emph off
2891 \bar no
2892 \noun off
2893 \color none
2894 人によっては,ログファイルを直接ご覧になりたいかもしれません.これは,
2895 \begin_inset Flex MenuItem
2896 status collapsed
2897
2898 \begin_layout Plain Layout
2899
2900 \family roman
2901 \series medium
2902 \shape up
2903 \size normal
2904 \emph off
2905 \bar no
2906 \noun off
2907 \color none
2908 文書\SpecialChar menuseparator
2909 LaTeXログ
2910 \end_layout
2911
2912 \end_inset
2913
2914 で見ることができます.エラーメッセージや警告には,よく見かけるものがいくつかありますので,それらをここに収録しておきます.ここにないエラーや警告に関しては,La\SpecialChar TeX
2915
2916 関連の良書を参照してください.
2917 \end_layout
2918
2919 \begin_layout Itemize
2920
2921 \family typewriter
2922 \begin_inset Flex Code
2923 status collapsed
2924
2925 \begin_layout Plain Layout
2926
2927 \family typewriter
2928 LaTeX Warning
2929 \end_layout
2930
2931 \end_inset
2932
2933
2934 \family roman
2935 \series medium
2936 \shape up
2937 \size normal
2938 \emph off
2939 \bar no
2940 \noun off
2941 \color none
2942
2943 \begin_inset Newline newline
2944 \end_inset
2945
2946 これで始まるメッセージは,\SpecialChar LaTeX
2947 コード自体を「デバッグ」するための警告メッセージです.相互参照や書誌情報を追加したり変更した場合に,もう一度\SpecialChar LaTeX
2948 を実行する必要があることを
2949 知らせるために,このようなメッセージが表示されます.このメッセージは,だいたいにおいて無視しても大丈夫です.
2950 \end_layout
2951
2952 \begin_layout Itemize
2953
2954 \family typewriter
2955 \begin_inset Flex Code
2956 status collapsed
2957
2958 \begin_layout Plain Layout
2959
2960 \family typewriter
2961 LaTeX Font Warning
2962 \end_layout
2963
2964 \end_inset
2965
2966
2967 \family roman
2968 \series medium
2969 \shape up
2970 \size normal
2971 \emph off
2972 \bar no
2973 \noun off
2974 \color none
2975
2976 \begin_inset Newline newline
2977 \end_inset
2978
2979 \SpecialChar LaTeX
2980 がフォントを見つけられなかったと言う警告メッセージです.多くの場合,このメッセージの後に,\SpecialChar LaTeX
2981 が使用した代替フォントに関する情報が続きます.これも無視して構いません
2982
2983 \end_layout
2984
2985 \begin_layout Itemize
2986
2987 \family roman
2988 \series medium
2989 \shape up
2990 \size normal
2991 \emph off
2992 \bar no
2993 \noun off
2994 \color none
2995 \begin_inset Flex Code
2996 status collapsed
2997
2998 \begin_layout Plain Layout
2999
3000 \family typewriter
3001 Overfull 
3002 \backslash
3003 hbox
3004 \end_layout
3005
3006 \end_inset
3007
3008
3009 \begin_inset Newline newline
3010 \end_inset
3011
3012 \SpecialChar LaTeX
3013 は,
3014 \family default
3015 \series default
3016 \shape default
3017 \size default
3018 \emph on
3019 \bar default
3020 \noun default
3021 \color inherit
3022 ほぼどんなときでも
3023 \family roman
3024 \series medium
3025 \shape up
3026 \size normal
3027 \emph off
3028 \bar no
3029 \noun off
3030 \color none
3031 この警告を吐き出します.どんな文書を書いたとしても,このメッセージは,少なくとも1つは出てくるようです.これは,一行が長すぎて右余白にはみ出してしまったという警
3032 告であり,
3033 \family default
3034 \series default
3035 \shape default
3036 \size default
3037 \emph default
3038 \bar default
3039 \noun default
3040 \color inherit
3041 \SpecialChar LaTeX
3042
3043 \family roman
3044 \series medium
3045 \shape up
3046 \size normal
3047 \emph off
3048 \bar no
3049 \noun off
3050 \color none
3051 が適切な改行方法を見つけられなかった時に生じます(タイプライタ体では自動改行を許されないため頻発することが知られています).ほとんどの場合,最終出力を見ても判別
3052 できないくらい(せいぜい1ポイントか2ポイント)です.しかしながら,時には目に見えて余白にはみ出してしまうこともあるので,その場合には,最終出力では修正したいと
3053 思うことでしょう.
3054 \begin_inset Newline newline
3055 \end_inset
3056
3057 全体的にoverfull行の数をできるだけ少なくする方法はいくつかあります.
3058 \family sans
3059 \series default
3060 \shape default
3061 \size default
3062 \emph default
3063 \bar default
3064 \noun default
3065 \color inherit
3066 文書\SpecialChar menuseparator
3067 設定\SpecialChar menuseparator
3068 フォント
3069 \family roman
3070 \series medium
3071 \shape up
3072 \size normal
3073 \emph off
3074 \bar no
3075 \noun off
3076 \color none
3077
3078 \family sans
3079 \series default
3080 \shape default
3081 \size default
3082 \emph default
3083 \bar default
3084 \noun default
3085 \color inherit
3086 マイクロタイポグラフィ拡張を有効にする
3087 \family roman
3088 \series medium
3089 \shape up
3090 \size normal
3091 \emph off
3092 \bar no
3093 \noun off
3094 \color none
3095 をクリックすると,大幅な改善が見込めます.さらに,
3096 \family sans
3097 \series default
3098 \shape default
3099 \size default
3100 \emph default
3101 \bar default
3102 \noun default
3103 \color inherit
3104 文書\SpecialChar menuseparator
3105 設定\SpecialChar menuseparator
3106 プリアンブル
3107 \family roman
3108 \series medium
3109 \shape up
3110 \size normal
3111 \emph off
3112 \bar no
3113 \noun off
3114 \color none
3115 に以下のような
3116 \family default
3117 \series default
3118 \shape default
3119 \size default
3120 \emph default
3121 \bar default
3122 \noun default
3123 \color inherit
3124 \SpecialChar LaTeX
3125
3126 \family roman
3127 \series medium
3128 \shape up
3129 \size normal
3130 \emph off
3131 \bar no
3132 \noun off
3133 \color none
3134 コードを書いても,overfull行の数は,通常,大幅に減少します(この文書のプリアンブルにも使用しています).
3135 \end_layout
3136
3137 \begin_deeper
3138 \begin_layout LyX-Code
3139
3140 \backslash
3141 tolerance 1414
3142 \begin_inset Newline newline
3143 \end_inset
3144
3145
3146 \backslash
3147 hbadness 1414
3148 \begin_inset Newline newline
3149 \end_inset
3150
3151
3152 \backslash
3153 emergencystretch 1.5em
3154 \begin_inset Newline newline
3155 \end_inset
3156
3157
3158 \backslash
3159 hfuzz 0.3pt
3160 \end_layout
3161
3162 \begin_layout Standard
3163 しかしながら,場合によっては,改行が正しく行われるように,文章そのものを書き換えなくてはならない場合もあります
3164 \begin_inset Foot
3165 status collapsed
3166
3167 \begin_layout Plain Layout
3168 詳細は,
3169 \begin_inset Flex URL
3170 status open
3171
3172 \begin_layout Plain Layout
3173
3174 http://www.tex.ac.uk/FAQ-overfull.html
3175 \end_layout
3176
3177 \end_inset
3178
3179 を参照してください.
3180 \end_layout
3181
3182 \end_inset
3183
3184
3185 \end_layout
3186
3187 \begin_layout Standard
3188 何れにしても,少なくとも文書の完成版では,各行の確認を行うべきです.はみ出過ぎているものがあれば,目で見ればわかるでしょう
3189 \begin_inset Foot
3190 status collapsed
3191
3192 \begin_layout Plain Layout
3193
3194 \family sans
3195 文書\SpecialChar menuseparator
3196 設定
3197 \family default
3198 で「draft」オプションを有効にすることもできます.すると,overfull行の余白には,\SpecialChar LaTeX
3199 が黒い四角を描画してくれます.
3200 \end_layout
3201
3202 \end_inset
3203
3204
3205 \end_layout
3206
3207 \end_deeper
3208 \begin_layout Itemize
3209
3210 \family typewriter
3211 \begin_inset Flex Code
3212 status collapsed
3213
3214 \begin_layout Plain Layout
3215
3216 \family typewriter
3217 Underfull 
3218 \backslash
3219 hbox
3220 \end_layout
3221
3222 \end_inset
3223
3224
3225 \begin_inset Newline newline
3226 \end_inset
3227
3228
3229 \family roman
3230 \series medium
3231 \shape up
3232 \size normal
3233 \emph off
3234 \bar no
3235 \noun off
3236 \color none
3237 これは上の警告と違ってあまり出てきません.これも,
3238 \family default
3239 \series default
3240 \shape default
3241 \size default
3242 \emph default
3243 \bar default
3244 \noun default
3245 \color inherit
3246 \SpecialChar LaTeX
3247
3248 \family roman
3249 \series medium
3250 \shape up
3251 \size normal
3252 \emph off
3253 \bar no
3254 \noun off
3255 \color none
3256 が適切な改行方法を見つけられずに,間延びした行を生成せざるを得なかった時に起こります.overfull行と同様,外見上の問題がないかどうか確認してください.
3257 \end_layout
3258
3259 \begin_layout Itemize
3260 \begin_inset Flex Code
3261 status collapsed
3262
3263 \begin_layout Plain Layout
3264
3265 \family typewriter
3266 Overfull 
3267 \backslash
3268 vbox
3269 \end_layout
3270
3271 \end_inset
3272
3273
3274 \family typewriter
3275
3276 \begin_inset Flex Code
3277 status collapsed
3278
3279 \begin_layout Plain Layout
3280
3281 \family typewriter
3282 Underfull 
3283 \backslash
3284 vbox
3285 \end_layout
3286
3287 \end_inset
3288
3289
3290 \family default
3291
3292 \begin_inset Newline newline
3293 \end_inset
3294
3295
3296 \family roman
3297 \series medium
3298 \shape up
3299 \size normal
3300 \emph off
3301 \bar no
3302 \noun off
3303 \color none
3304 ページ区切りに問題があったという警告です.この場合も,出力を目で確認してください.何か問題があれば,見てすぐわかります.
3305 \end_layout
3306
3307 \begin_layout Itemize
3308
3309 \family typewriter
3310 \begin_inset Flex Code
3311 status collapsed
3312
3313 \begin_layout Plain Layout
3314
3315 \family typewriter
3316 LaTeX Error: File 
3317 \begin_inset Quotes els
3318 \end_inset
3319
3320 Xxxx
3321 \begin_inset Quotes ers
3322 \end_inset
3323
3324  not found
3325 \end_layout
3326
3327 \end_inset
3328
3329
3330 \family roman
3331 \series medium
3332 \shape up
3333 \size normal
3334 \emph off
3335 \bar no
3336 \noun off
3337 \color none
3338
3339 \begin_inset Newline newline
3340 \end_inset
3341
3342 ファイル「Xxxx」が,システムに導入されていません.これは通常,文書が必要としている\SpecialChar LaTeX
3343 パッケージに,導入済でないものがある場合に現れます.プリアンブルに変更を加
3344 えておらず,
3345 \begin_inset Flex Code
3346 status collapsed
3347
3348 \begin_layout Plain Layout
3349
3350 \family typewriter
3351
3352 \backslash
3353 usepackage{}
3354 \end_layout
3355
3356 \end_inset
3357
3358 コマンドも使用していないとすれば,\SpecialChar LyX
3359 が読み込もうしているパッケージに存在しないものがあるということです.
3360 \family default
3361 \series default
3362 \shape default
3363 \size default
3364 \emph default
3365 \bar default
3366 \noun default
3367 \color inherit
3368
3369 \begin_inset Flex MenuItem
3370 status collapsed
3371
3372 \begin_layout Plain Layout
3373 ヘルプ\SpecialChar menuseparator
3374 \SpecialChar LaTeX
3375 の設定
3376 \end_layout
3377
3378 \end_inset
3379
3380
3381 \family roman
3382 \series medium
3383 \shape up
3384 \size normal
3385 \emph off
3386 \bar no
3387 \noun off
3388 \color none
3389 を使用して,\SpecialChar LyX
3390 が認識しているパッケージの一覧を得てください.このファイルは,(
3391 \begin_inset Flex MenuItem
3392 status collapsed
3393
3394 \begin_layout Plain Layout
3395
3396 \family roman
3397 \series medium
3398 \shape up
3399 \size normal
3400 \emph off
3401 \bar no
3402 \noun off
3403 \color none
3404 ツール\SpecialChar menuseparator
3405 再設定
3406 \end_layout
3407
3408 \end_inset
3409
3410 を使用して)\SpecialChar LyX
3411 の再設定を行うたびに更新され,どのパッケージが検出されたか,それらのパッケージが何をするものかを表示します.
3412 \begin_inset Newline newline
3413 \end_inset
3414
3415
3416 \family sans
3417 \series default
3418 \shape default
3419 \size default
3420 \emph default
3421 \bar default
3422 \noun default
3423 \color inherit
3424
3425 \begin_inset Flex Code
3426 status collapsed
3427
3428 \begin_layout Plain Layout
3429
3430 \family sans
3431
3432 \backslash
3433 usepackage{}
3434 \end_layout
3435
3436 \end_inset
3437
3438
3439 \family roman
3440 \series medium
3441 \shape up
3442 \size normal
3443 \emph off
3444 \bar no
3445 \noun off
3446 \color none
3447 コマンドを使っていて,肝心のパッケージが導入されていない場合には,ご自身で導入する必要があります.
3448 \end_layout
3449
3450 \begin_layout Itemize
3451
3452 \family typewriter
3453 \begin_inset Flex Code
3454 status collapsed
3455
3456 \begin_layout Plain Layout
3457
3458 \family typewriter
3459 LaTeX Error: Unknown option
3460 \end_layout
3461
3462 \end_inset
3463
3464
3465 \family roman
3466 \series medium
3467 \shape up
3468 \size normal
3469 \emph off
3470 \bar no
3471 \noun off
3472 \color none
3473
3474 \begin_inset Newline newline
3475 \end_inset
3476
3477 このように始まるエラーメッセージは,パッケージに誤ったあるいは未定義のオプションが指定されていることを伝えようとするものです.パッケージの取扱説明書をご確認くだ
3478 さい.
3479 \end_layout
3480
3481 \begin_layout Itemize
3482
3483 \family typewriter
3484 \begin_inset Flex Code
3485 status collapsed
3486
3487 \begin_layout Plain Layout
3488
3489 \family typewriter
3490 Undefined control sequence
3491 \end_layout
3492
3493 \end_inset
3494
3495
3496 \family roman
3497 \series medium
3498 \shape up
3499 \size normal
3500 \emph off
3501 \bar no
3502 \noun off
3503 \color none
3504
3505 \begin_inset Newline newline
3506 \end_inset
3507
3508 お使いの文書に\SpecialChar LaTeX
3509 コードを挿入した際,打ち間違いをしてしまうと,このようなメッセージが表示されます.あるいは,パッケージを読み込ませるのを忘れたのかもしれません.い
3510 ずれにしても,このメッセージは,あなたが未定義のコマンドを使用したことを示しています.
3511 \end_layout
3512
3513 \begin_layout Standard
3514
3515 \family roman
3516 \series medium
3517 \shape up
3518 \size normal
3519 \emph off
3520 \bar no
3521 \noun off
3522 \color none
3523 これ以外にも,エラーメッセージや警告メッセージがあります.一般に,読んで意味がすぐにわかるものは,\SpecialChar LaTeX
3524 のメッセージです.何を言っているのかさっぱりわからないものもあ
3525 りますが,通常これらは,\SpecialChar TeX
3526 のメッセージであり,それが何を意味しているのか,どのように解読すればいいのか,
3527 \family default
3528 \series default
3529 \shape default
3530 \size default
3531 \emph on
3532 \bar default
3533 \noun default
3534 \color inherit
3535 まったく
3536 \family roman
3537 \series medium
3538 \shape up
3539 \size normal
3540 \emph off
3541 \bar no
3542 \noun off
3543 \color none
3544 手がかりがありません.誰もわからないのです.
3545 \end_layout
3546
3547 \begin_layout Standard
3548
3549 \family roman
3550 \series medium
3551 \shape up
3552 \size normal
3553 \emph off
3554 \bar no
3555 \noun off
3556 \color none
3557 エラーメッセージが表示された場合は,つねに以下のチェックリストにしたがった方がよいでしょう.
3558 \end_layout
3559
3560 \begin_layout Enumerate
3561
3562 \family roman
3563 \series medium
3564 \shape up
3565 \size normal
3566 \emph off
3567 \bar no
3568 \noun off
3569 \color none
3570 ご自分で挿入した\SpecialChar LaTeX
3571 コードに打ち間違いがないかどうか確かめる.
3572 \end_layout
3573
3574 \begin_layout Enumerate
3575
3576 \family roman
3577 \series medium
3578 \shape up
3579 \size normal
3580 \emph off
3581 \bar no
3582 \noun off
3583 \color none
3584 打ち間違いがなければ,コマンドを正しく使ったかどうか確かめる.
3585 \end_layout
3586
3587 \begin_layout Enumerate
3588
3589 \family roman
3590 \series medium
3591 \shape up
3592 \size normal
3593 \emph off
3594 \bar no
3595 \noun off
3596 \color none
3597 文書のもっともはじめの部分にエラーボックスが多数積み上がった場合には—特に
3598 \begin_inset Flex Code
3599 status collapsed
3600
3601 \begin_layout Plain Layout
3602
3603 \family roman
3604 \series medium
3605 \shape up
3606 \size normal
3607 \emph off
3608 \bar no
3609 \noun off
3610 \color none
3611 Missing 
3612 \backslash
3613 begin{document}
3614 \end_layout
3615
3616 \end_inset
3617
3618 が表示されているならば—,プリアンブルにエラーがあることを意味します.プリアンブルのデバックを行ってください.
3619 \end_layout
3620
3621 \begin_layout Enumerate
3622
3623 \family roman
3624 \series medium
3625 \shape up
3626 \size normal
3627 \emph off
3628 \bar no
3629 \noun off
3630 \color none
3631 プリアンブルに何も追加せず,文書に\SpecialChar LaTeX
3632 コードをまったく挿入しなかった場合には,\SpecialChar LaTeX
3633 頒布版自体をまず疑ってください.導入されていないパッケージを探しだして,導入してくださ
3634 い.
3635 \end_layout
3636
3637 \begin_layout Enumerate
3638
3639 \family roman
3640 \series medium
3641 \shape up
3642 \size normal
3643 \emph off
3644 \bar no
3645 \noun off
3646 \color none
3647 導入されていないパッケージはなかったものとしましょう.\SpecialChar LyX
3648 を微調整するオプションを使用していますか.特に,手動で
3649 \begin_inset Flex Code
3650 status collapsed
3651
3652 \begin_layout Plain Layout
3653
3654 \family sans
3655 Protected
3656 \begin_inset space ~
3657 \end_inset
3658
3659 Blank
3660 \end_layout
3661
3662 \end_inset
3663
3664
3665 \begin_inset Flex Code
3666 status collapsed
3667
3668 \begin_layout Plain Layout
3669
3670 \family sans
3671 Linebreak
3672 \end_layout
3673
3674 \end_inset
3675
3676
3677 \family sans
3678 \series default
3679 \shape default
3680 \size default
3681 \emph default
3682 \bar default
3683 \noun default
3684 \color inherit
3685
3686 \begin_inset Flex Code
3687 status collapsed
3688
3689 \begin_layout Plain Layout
3690
3691 \family sans
3692 Pagebreak
3693 \end_layout
3694
3695 \end_inset
3696
3697
3698 \family roman
3699 \series medium
3700 \shape up
3701 \size normal
3702 \emph off
3703 \bar no
3704 \noun off
3705 \color none
3706 などをたくさん挿入するなど,微調整オプションを
3707 \family default
3708 \series default
3709 \shape default
3710 \size default
3711 \emph on
3712 \bar default
3713 \noun default
3714 \color inherit
3715 悪用
3716 \family roman
3717 \series medium
3718 \shape up
3719 \size normal
3720 \emph off
3721 \bar no
3722 \noun off
3723 \color none
3724 していませんか.適切な段落環境を使用する代わりに,これらを使用してその場をしのごうとしていませんか.
3725 \end_layout
3726
3727 \begin_layout Enumerate
3728
3729 \family roman
3730 \series medium
3731 \shape up
3732 \size normal
3733 \emph off
3734 \bar no
3735 \noun off
3736 \color none
3737 微調整オプションはまったく使用しておらず,規則に乗っ取って作業していたものとしましょう.何か曲芸のようなことをしようとはしていませんか.数式や表中で,たとえば表
3738 のセルに図を入れるなど,おかしなことをしようとしていませんか.
3739 \end_layout
3740
3741 \begin_layout Enumerate
3742 \SpecialChar LaTeX
3743 が改行位置を見つけられないほど長い一節がありませんか.既定では,改行するために単語間に空白をたくさん追加することを,\SpecialChar LaTeX
3744 はかなり嫌います.可能であれば,問題が生じな
3745 いように段落を修正するのが望ましいでしょう.
3746 \end_layout
3747
3748 \begin_layout Enumerate
3749
3750 \family roman
3751 \series medium
3752 \shape up
3753 \size normal
3754 \emph off
3755 \bar no
3756 \noun off
3757 \color none
3758 入れ子の階層を深くしすぎていませんか.\SpecialChar LyX
3759 は,(今のところ)環境の入れ子の階層が制限内にあるかチェックしません.かりに,環境を17段の入れ子にしたりしていたら,それ
3760 が原因です(\SpecialChar LaTeX
3761 の上限は5段です).
3762 \end_layout
3763
3764 \begin_layout Enumerate
3765
3766 \family roman
3767 \series medium
3768 \shape up
3769 \size normal
3770 \emph off
3771 \bar no
3772 \noun off
3773 \color none
3774 エラーメッセージは発生しないけれども,出力がひどいものとしましょう.図表が幅が広すぎたり長すぎてページに収まらない場合には,
3775 \end_layout
3776
3777 \begin_deeper
3778 \begin_layout Enumerate
3779
3780 \family roman
3781 \series medium
3782 \shape up
3783 \size normal
3784 \emph off
3785 \bar no
3786 \noun off
3787 \color none
3788 図がページに合うように大きさを変える,
3789 \end_layout
3790
3791 \begin_layout Enumerate
3792
3793 \family roman
3794 \series medium
3795 \shape up
3796 \size normal
3797 \emph off
3798 \bar no
3799 \noun off
3800 \color none
3801 表がページに合うように削る,
3802 \end_layout
3803
3804 \begin_layout Standard
3805
3806 \family roman
3807 \series medium
3808 \shape up
3809 \size normal
3810 \emph off
3811 \bar no
3812 \noun off
3813 \color none
3814 などの手段を採る必要があります.
3815 \end_layout
3816
3817 \end_deeper
3818 \begin_layout Enumerate
3819 他に出力におかしいところがあり,曲芸をやろうとしたり微調整オプションでしのごうとしたりはしていないとすれば,何がおかしいのか確定的なことは言えません.
3820 \end_layout
3821
3822 \begin_layout Standard
3823
3824 \family roman
3825 \series medium
3826 \shape up
3827 \size normal
3828 \emph off
3829 \bar no
3830 \noun off
3831 \color none
3832 これらすべてが役に立たないとすれば,
3833 \family default
3834 \series default
3835 \shape default
3836 \size default
3837 \emph on
3838 \bar default
3839 \noun default
3840 \color inherit
3841 ひょっとしたら
3842 \family roman
3843 \series medium
3844 \shape up
3845 \size normal
3846 \emph off
3847 \bar no
3848 \noun off
3849 \color none
3850 \SpecialChar LyX
3851 のバグを発見したのかもしれません‥‥.
3852 \end_layout
3853
3854 \begin_layout Chapter
3855 補完ツール
3856 \end_layout
3857
3858 \begin_layout Section
3859 Bib\SpecialChar TeX
3860 あるいはBiblatexによる書誌情報のカスタマイズ
3861 \end_layout
3862
3863 \begin_layout Standard
3864 Bib\SpecialChar TeX
3865 あるいは
3866 \family sans
3867 Biblatex
3868 \family default
3869 の基本的な使用法は,『
3870 \emph on
3871 ユーザーの手引き
3872 \emph default
3873 』の「
3874 \emph on
3875 文献データベース
3876 \emph default
3877 」の節に説明があります.以下の各小節では,\SpecialChar LyX
3878 でサポートされている書誌情報の特別な機能について説明することとします.
3879 \end_layout
3880
3881 \begin_layout Subsection
3882 他の引用様式
3883 \end_layout
3884
3885 \begin_layout Standard
3886 標準のBib\SpecialChar TeX
3887 は,引用された著作を参照するのに,([12]のように)数字を使用します.しかし,多くの科学分野で,これとは異なる引用様式が用いられています.もっとも
3888 よく見られるのは,著者-出版年様式(例:Knuth 1984a)です.\SpecialChar LyX
3889 は,この様式を提供する3つのパッケージ
3890 \begin_inset Flex Code
3891 status collapsed
3892
3893 \begin_layout Plain Layout
3894 biblatex
3895 \end_layout
3896
3897 \end_inset
3898
3899
3900 \begin_inset Flex Code
3901 status collapsed
3902
3903 \begin_layout Plain Layout
3904 natbib
3905 \end_layout
3906
3907 \end_inset
3908
3909
3910 \begin_inset Flex Code
3911 status collapsed
3912
3913 \begin_layout Plain Layout
3914 jurabib
3915 \end_layout
3916
3917 \end_inset
3918
3919 をサポートしています.これらのパッケージには,それぞれ長所短所がありますが,ここでは詳細に立ち入る紙幅がありません.単純な著者-出版年様式(あるいは著者-番号)
3920 様式が欲しい場合や,無数にある
3921 \begin_inset Flex Code
3922 status collapsed
3923
3924 \begin_layout Plain Layout
3925 natbib
3926 \end_layout
3927
3928 \end_inset
3929
3930 用スタイルファイルのうちどれかを使用したい場合には,定評のある
3931 \begin_inset Flex Code
3932 status collapsed
3933
3934 \begin_layout Plain Layout
3935 natbib
3936 \end_layout
3937
3938 \end_inset
3939
3940 パッケージがおそらくよい選択でしょう.法学でよく用いられる引用様式を探している場合には,
3941 \begin_inset Flex Code
3942 status collapsed
3943
3944 \begin_layout Plain Layout
3945 jurabib
3946 \end_layout
3947
3948 \end_inset
3949
3950 パッケージの利用を考えるとよいかもしれません.整形を完全に制御したい場合や,ibidem・脚註引用・タイトル全引用・400 BCなどの)複雑な日時形式・英語以外
3951 への完全な現地語化のような複雑な機能を使用したい場合には,機能面で他のパッケージを凌駕している
3952 \begin_inset Flex Code
3953 status collapsed
3954
3955 \begin_layout Plain Layout
3956 biblatex
3957 \end_layout
3958
3959 \end_inset
3960
3961 をぜひとも考えるべきでしょう.ただし,同時に
3962 \begin_inset Flex Code
3963 status collapsed
3964
3965 \begin_layout Plain Layout
3966 biblatex
3967 \end_layout
3968
3969 \end_inset
3970
3971 はたいへん重く,リソース消費量も多いことに注意してください.
3972 \end_layout
3973
3974 \begin_layout Standard
3975 \SpecialChar LyX
3976 での各パッケージの取扱い方は,ほぼ同じです.
3977 \begin_inset Flex MenuItem
3978 status collapsed
3979
3980 \begin_layout Plain Layout
3981 文書\SpecialChar menuseparator
3982 設定
3983 \end_layout
3984
3985 \end_inset
3986
3987 メニューを開き,
3988 \begin_inset Flex MenuItem
3989 status collapsed
3990
3991 \begin_layout Plain Layout
3992 書誌情報
3993 \end_layout
3994
3995 \end_inset
3996
3997 項目から
3998 \begin_inset Flex Noun
3999 status collapsed
4000
4001 \begin_layout Plain Layout
4002 Biblatex
4003 \end_layout
4004
4005 \end_inset
4006
4007
4008 \begin_inset Flex Noun
4009 status collapsed
4010
4011 \begin_layout Plain Layout
4012 Biblatex (Natbibモード)
4013 \end_layout
4014
4015 \end_inset
4016
4017
4018 \begin_inset Flex Noun
4019 status collapsed
4020
4021 \begin_layout Plain Layout
4022 Natbib (BibTeX)
4023 \end_layout
4024
4025 \end_inset
4026
4027
4028 \begin_inset Flex Noun
4029 status collapsed
4030
4031 \begin_layout Plain Layout
4032 Jurabib (BibTeX)
4033 \end_layout
4034
4035 \end_inset
4036
4037 のいずれかを選択してください(各選択肢についての詳細は,ユーザーの手引きの第6.5.3節を参照のこと).これらのパッケージによって,引用ダイアログに機能が追加され,
4038 参照の様式が選択できるようになります(「Knuth 1984」,「Knuth (1984)」,「Knuth, 1984」,「1984」など).各パッケージは,専
4039 用にデザインされたスタイルファイルを必要とすることに注意してください.これらは全てそれ自身のスタイルファイルを同梱していますが,他にもたくさんの追加されたスタイ
4040 ルファイルがありますし,
4041 \begin_inset Flex Code
4042 status collapsed
4043
4044 \begin_layout Plain Layout
4045 natbib
4046 \end_layout
4047
4048 \end_inset
4049
4050 に至っては,対話的なスタイルファイルビルダーさえ存在します
4051 \begin_inset Foot
4052 status collapsed
4053
4054 \begin_layout Plain Layout
4055 \begin_inset Flex URL
4056 status open
4057
4058 \begin_layout Plain Layout
4059
4060 ftp://ctan.tug.org/tex-archive/macros/latex/contrib/custom-bib/
4061 \end_layout
4062
4063 \end_inset
4064
4065 をご参照ください.
4066 \end_layout
4067
4068 \end_inset
4069
4070
4071 \end_layout
4072
4073 \begin_layout Subsection
4074 区分された書誌情報
4075 \end_layout
4076
4077 \begin_layout Standard
4078 場合によっては,書誌情報をいくつかの節に分ける必要があることがあります.たとえば,あなたが歴史家であるとすれば,出典と学術文献を分ける機能は,おそらく「必需品」
4079 でさえあります.残念ながら,Bib\SpecialChar TeX
4080 自身ではこのようなことができません.しかし,適切な\SpecialChar LaTeX
4081 パッケージの助けを借りると,Bib\SpecialChar TeX
4082 をこのような必要性を満たすように拡張するこ
4083 とができます.
4084 \end_layout
4085
4086 \begin_layout Standard
4087 \SpecialChar LyX
4088 は,このようなパッケージの一つである
4089 \begin_inset Flex Code
4090 status collapsed
4091
4092 \begin_layout Plain Layout
4093 bibtopic
4094 \end_layout
4095
4096 \end_inset
4097
4098
4099 \begin_inset Foot
4100 status collapsed
4101
4102 \begin_layout Plain Layout
4103 \begin_inset Flex URL
4104 status open
4105
4106 \begin_layout Plain Layout
4107
4108 ftp://ctan.tug.org/tex-archive/macros/latex/contrib/bibtopic/
4109 \end_layout
4110
4111 \end_inset
4112
4113 から入手可能です.
4114 \end_layout
4115
4116 \end_inset
4117
4118 をそのままでサポートします.このパッケージの長所は,(
4119 \begin_inset Flex Code
4120 status collapsed
4121
4122 \begin_layout Plain Layout
4123 multibib
4124 \end_layout
4125
4126 \end_inset
4127
4128 のような他のパッケージと比較すると)新規の引用コマンドを定義する必要がないことです.そのかわりに,書誌情報の違う節には,その節向けの項目を収録した別の文献データ
4129 ベースを用意する必要があります.たとえば,書誌情報を「出典」の節と「学術文献」の節に分けたい場合には,それぞれの文献データベース,たとえば
4130 \begin_inset Flex Code
4131 status collapsed
4132
4133 \begin_layout Plain Layout
4134 souces.bib
4135 \end_layout
4136
4137 \end_inset
4138
4139
4140 \begin_inset Flex Code
4141 status collapsed
4142
4143 \begin_layout Plain Layout
4144 scientific.bib
4145 \end_layout
4146
4147 \end_inset
4148
4149 とを作成する必要があります.
4150 \end_layout
4151
4152 \begin_layout Standard
4153 \begin_inset Flex MenuItem
4154 status collapsed
4155
4156 \begin_layout Plain Layout
4157 文書\SpecialChar menuseparator
4158 設定
4159 \end_layout
4160
4161 \end_inset
4162
4163 を開いて
4164 \begin_inset Flex MenuItem
4165 status collapsed
4166
4167 \begin_layout Plain Layout
4168 書誌情報
4169 \end_layout
4170
4171 \end_inset
4172
4173 の下の
4174 \begin_inset Flex MenuItem
4175 status collapsed
4176
4177 \begin_layout Plain Layout
4178 区分された書誌情報
4179 \end_layout
4180
4181 \end_inset
4182
4183 をチェックしてください.すると,書誌情報の各節に一つずつ,複数の書誌情報を挿入することができます.上記の例では,Bib\SpecialChar TeX
4184 書誌情報
4185 \begin_inset Flex Code
4186 status collapsed
4187
4188 \begin_layout Plain Layout
4189 sources.bib
4190 \end_layout
4191
4192 \end_inset
4193
4194 と二つめの文献データベース
4195 \begin_inset Flex Code
4196 status collapsed
4197
4198 \begin_layout Plain Layout
4199 scientific.bib
4200 \end_layout
4201
4202 \end_inset
4203
4204 を挿入します.各節に同じスタイルを用いるか異なるスタイルを用いるかは自由です.くわえて,書誌情報の節に,指定したデータベースの「引用されたすべての参照」を載せる
4205 (これが既定です)か,「引用されなかったすべての参照」を載せるか,あるいは「すべての参照」を載せるかを選択することができます.これは,もし書誌情報を「本文に引用
4206 された出典」・「本文に引用されていない出典」・「学術文献」の三つの節に分割したい場合に,便利でありましょう.各節の見出しは,通常の節や小節として入れることができ
4207 ます.
4208 \begin_inset Flex Code
4209 status collapsed
4210
4211 \begin_layout Plain Layout
4212 bibtopic
4213 \end_layout
4214
4215 \end_inset
4216
4217 は,書誌情報用の見出しを取り除いてしまいますので,手動でこれを追加しなくてはなりません(たとえば章*や節*などをお使いください).
4218 \end_layout
4219
4220 \begin_layout Standard
4221
4222 \family sans
4223 Biblatex
4224 \family default
4225 の場合には,手順が多少異なります.
4226 \family typewriter
4227 bibtopic
4228 \family default
4229
4230 \family sans
4231 Biblatex
4232 \family default
4233 では動作しませんので,
4234 \family sans
4235 Biblatex
4236 \family default
4237 使用中は前述の
4238 \begin_inset Flex Noun
4239 status collapsed
4240
4241 \begin_layout Plain Layout
4242 区分された書誌情報
4243 \end_layout
4244
4245 \end_inset
4246
4247 オプションは無効になります.しかしながら,
4248 \family sans
4249 Biblatex
4250 \family default
4251 は区分された書誌情報を生成する独自の方法を提供しています.書誌情報項目の
4252 \begin_inset Flex Code
4253 status collapsed
4254
4255 \begin_layout Plain Layout
4256 keywords
4257 \end_layout
4258
4259 \end_inset
4260
4261 項目オプションにキーワードを書き込み,書誌情報セクションをキーワードでフィルターに掛けることもできますし(
4262 \begin_inset Flex Noun
4263 status collapsed
4264
4265 \begin_layout Plain Layout
4266 Biblatexが生成した書誌情報
4267 \end_layout
4268
4269 \end_inset
4270
4271 ボタンを右クリックすると開くダイアログで,
4272 \begin_inset Flex Noun
4273 status collapsed
4274
4275 \begin_layout Plain Layout
4276 オプション
4277 \end_layout
4278
4279 \end_inset
4280
4281 フィールドに
4282 \begin_inset Flex Code
4283 status collapsed
4284
4285 \begin_layout Plain Layout
4286 keyword=指定キーワード
4287 \end_layout
4288
4289 \end_inset
4290
4291 と書き込みます),あるいは,上述の
4292 \begin_inset Flex Noun
4293 status collapsed
4294
4295 \begin_layout Plain Layout
4296 オプション
4297 \end_layout
4298
4299 \end_inset
4300
4301 フィールドに,例えば
4302 \begin_inset Flex Code
4303 status collapsed
4304
4305 \begin_layout Plain Layout
4306 type=book
4307 \end_layout
4308
4309 \end_inset
4310
4311
4312 \begin_inset Flex Code
4313 status collapsed
4314
4315 \begin_layout Plain Layout
4316 nottype=collection
4317 \end_layout
4318
4319 \end_inset
4320
4321 と入力することで,(
4322 \emph on
4323 book
4324 \emph default
4325
4326 \emph on
4327 article
4328 \emph default
4329 などの)項目型によりフィルターを掛けることもできます.あるいは,各項目を割り当てるための,いわゆる「書誌情報カテゴリ」を作ることもできます.詳細については,Bi
4330 blatex取扱説明書の
4331 \emph on
4332 区分された書誌情報
4333 \emph default
4334 の節をご参照ください.
4335 \end_layout
4336
4337 \begin_layout Subsection
4338 複数の書誌情報
4339 \begin_inset CommandInset label
4340 LatexCommand label
4341 name "subsec:複数の書誌情報"
4342
4343 \end_inset
4344
4345
4346 \end_layout
4347
4348 \begin_layout Standard
4349 各部・章・節・小節・子文書ごとの書誌情報など,複数の書誌情報も\SpecialChar LyX
4350 ではサポートされています.これを有効にするためには,
4351 \begin_inset Flex Noun
4352 status collapsed
4353
4354 \begin_layout Plain Layout
4355 文書\SpecialChar menuseparator
4356 設定\SpecialChar menuseparator
4357 書誌情報
4358 \end_layout
4359
4360 \end_inset
4361
4362 を開き,
4363 \begin_inset Flex Noun
4364 status collapsed
4365
4366 \begin_layout Plain Layout
4367 複数の書誌情報
4368 \end_layout
4369
4370 \end_inset
4371
4372 コンボボックスで必要な単位(「節毎」など)を選択してください.それから,執筆中文書の(節などの)各単位に,Bib(la)\SpecialChar TeX
4373 書誌情報を加えてください.出力時に,現在
4374 の単位に含まれる文献参照のみが含まれた,分割された書誌情報が生成されます.
4375 \end_layout
4376
4377 \begin_layout Standard
4378 Bib\SpecialChar TeX
4379 を使用する場合には,複数の書誌情報を生成するのに,
4380 \begin_inset Flex Code
4381 status collapsed
4382
4383 \begin_layout Plain Layout
4384 chapterbib
4385 \end_layout
4386
4387 \end_inset
4388
4389 パッケージか
4390 \begin_inset Flex Code
4391 status collapsed
4392
4393 \begin_layout Plain Layout
4394 bibtopic
4395 \end_layout
4396
4397 \end_inset
4398
4399 パッケージが使用されます.「子文書毎」を選択し,
4400 \begin_inset Flex Noun
4401 status collapsed
4402
4403 \begin_layout Plain Layout
4404 区分された書誌情報
4405 \end_layout
4406
4407 \end_inset
4408
4409 にチェックを入れ
4410 \emph on
4411 ない
4412 \emph default
4413 場合には,前者のパッケージが使用されますが,その他の場合には,すべて
4414 \begin_inset Flex Code
4415 status collapsed
4416
4417 \begin_layout Plain Layout
4418 bibtopic
4419 \end_layout
4420
4421 \end_inset
4422
4423 パッケージが使用されます
4424 \begin_inset Foot
4425 status collapsed
4426
4427 \begin_layout Plain Layout
4428 別のアプローチとして,もし
4429 \begin_inset Flex Noun
4430 status collapsed
4431
4432 \begin_layout Plain Layout
4433 \SpecialChar TeX
4434 コード
4435 \end_layout
4436
4437 \end_inset
4438
4439 を使っても良いという気があるならば(第
4440 \begin_inset CommandInset ref
4441 LatexCommand ref
4442 reference "sec:TeXコードを挿入する"
4443 plural "false"
4444 caps "false"
4445 noprefix "false"
4446
4447 \end_inset
4448
4449 節参照),
4450 \begin_inset Flex Code
4451 status collapsed
4452
4453 \begin_layout Plain Layout
4454 bibunits
4455 \end_layout
4456
4457 \end_inset
4458
4459 パッケージを使用する方法があります.
4460 \end_layout
4461
4462 \end_inset
4463
4464
4465 \begin_inset Flex Code
4466 status collapsed
4467
4468 \begin_layout Plain Layout
4469 bibtopic
4470 \end_layout
4471
4472 \end_inset
4473
4474 パッケージが使用される場合,\SpecialChar LyX
4475 は特定の単位を生成するために,その単位を
4476 \begin_inset Flex Code
4477 status collapsed
4478
4479 \begin_layout Plain Layout
4480 bibtopic
4481 \end_layout
4482
4483 \end_inset
4484
4485
4486 \begin_inset Flex Code
4487 status collapsed
4488
4489 \begin_layout Plain Layout
4490
4491 \backslash
4492 begin{btUnit}
4493 \end_layout
4494
4495 \end_inset
4496
4497
4498 \begin_inset Flex Code
4499 status collapsed
4500
4501 \begin_layout Plain Layout
4502
4503 \backslash
4504 end{btUnit}
4505 \end_layout
4506
4507 \end_inset
4508
4509 で囲みます.このアプローチには,いくつかの制限があることに注意してください.まず,全ての文献参照はいずれかの
4510 \begin_inset Flex Code
4511 status collapsed
4512
4513 \begin_layout Plain Layout
4514 btUnit
4515 \end_layout
4516
4517 \end_inset
4518
4519 の中になくてはなりません.そのため,定義された単位の外にある引用(たとえば「節毎」を使用した場合の,第1節の前)は,「???」と表示されてしまいます.(このよう
4520 な制限を回避するなどのため)
4521 \begin_inset Flex Code
4522 status collapsed
4523
4524 \begin_layout Plain Layout
4525
4526 \backslash
4527 begin{btUnit}
4528 \end_layout
4529
4530 \end_inset
4531
4532
4533 \begin_inset Flex Code
4534 status collapsed
4535
4536 \begin_layout Plain Layout
4537
4538 \backslash
4539 end{btUnit}
4540 \end_layout
4541
4542 \end_inset
4543
4544 を\SpecialChar TeX
4545 コードで入力して,自前の単位を生成することもできます.ただし,
4546 \begin_inset Flex Code
4547 status collapsed
4548
4549 \begin_layout Plain Layout
4550 btUnit
4551 \end_layout
4552
4553 \end_inset
4554
4555 は入れ子にすることができないことに注意してください.第二の制限は,
4556 \begin_inset Flex Code
4557 status collapsed
4558
4559 \begin_layout Plain Layout
4560 bibtopic
4561 \end_layout
4562
4563 \end_inset
4564
4565 は,引用のないものも含めて,つねに書誌情報データベースの参照すべてを保持してしまうということです.これにより奇妙なラベルが付されることがあります(例えば,データ
4566 ベース中にMillerという著者の2014年の著作が2つあり,その1つだけが引用されている場合,ラベルは「Miller 2014b」などとなってしまいます).
4567 \end_layout
4568
4569 \begin_layout Standard
4570
4571 \family sans
4572 Biblatex
4573 \family default
4574 を使用する場合には,
4575 \begin_inset Flex Code
4576 status collapsed
4577
4578 \begin_layout Plain Layout
4579 refsection
4580 \end_layout
4581
4582 \end_inset
4583
4584 オプションが代わりに使用されます.特定の単位が必要な時には,それらの開始時に\SpecialChar TeX
4585 コードで
4586 \begin_inset Flex Code
4587 status collapsed
4588
4589 \begin_layout Plain Layout
4590
4591 \backslash
4592 newrefsection
4593 \end_layout
4594
4595 \end_inset
4596
4597 または
4598 \begin_inset Flex Code
4599 status collapsed
4600
4601 \begin_layout Plain Layout
4602
4603 \backslash
4604 newrefsegment
4605 \end_layout
4606
4607 \end_inset
4608
4609 と書きます.単位の終了箇所も制御したい場合には,代わりに
4610 \begin_inset Flex Code
4611 status collapsed
4612
4613 \begin_layout Plain Layout
4614
4615 \backslash
4616 begin{refsection}
4617 \end_layout
4618
4619 \end_inset
4620
4621  \SpecialChar ldots
4622  
4623 \begin_inset Flex Code
4624 status collapsed
4625
4626 \begin_layout Plain Layout
4627
4628 \backslash
4629 end{refsection}
4630 \end_layout
4631
4632 \end_inset
4633
4634 環境を使ってください.ただし,
4635 \begin_inset Flex Code
4636 status collapsed
4637
4638 \begin_layout Plain Layout
4639 refsection
4640 \end_layout
4641
4642 \end_inset
4643
4644 関連は入れ子にできないことに注意してください.現行単位毎の書誌情報に加えて,
4645 \family sans
4646 Biblatex
4647 \family default
4648 はすべての書誌情報を,後で一箇所(例えば文末)に出力する簡単な方法も提供しています.そのためには,Bib(la)TeX差込枠ダイアログの内容コンボボックスで「文
4649 献参照単位全て」を選択してください.この話題についての詳細は,
4650 \family sans
4651 Biblatex
4652 \family default
4653 の取扱説明書を参照してください.
4654 \end_layout
4655
4656 \begin_layout Section
4657 複合文書
4658 \end_layout
4659
4660 \begin_layout Subsection
4661 一般的な操作
4662 \end_layout
4663
4664 \begin_layout Standard
4665 たくさんの節を含んだ大きなファイルで作業をする場合,文書をいくつかのファイルに分割した方が往々にして便利ですし,場合によっては,表部分にはしょっちゅう変更が加え
4666 られるけれども,その前の文章はつねに同じであるようなケースもあるでしょう.このような場合には,複合文書を利用することを,まずご検討ください.たとえば,科学論文は
4667 通常,導入部・所見・結果・議論・結論の五つの節から成ります.これら各節を別々の\SpecialChar LyX
4668 ファイルにして,タイトル・著者・概要・書誌情報等と,これら五つのインクルード
4669 \begin_inset Foot
4670 status collapsed
4671
4672 \begin_layout Plain Layout
4673
4674 \series bold
4675 (訳註)
4676 \series default
4677 「取り込む」の意です.原語「include」に対する訳語として,プログラミング用語の「インクルードする」以外に適語がないので,ここではプログラミング用語をそのま
4678 ま使用します.
4679 \end_layout
4680
4681 \end_inset
4682
4683 ファイルを持つ,もう一つ別の「マスター」ファイルを作成するようにすることができます.これらの各ファイルは,単にマスターファイルにインクルードされるだけでなく,単
4684 独でも出力したり印刷したりすることのできる完全な\SpecialChar LyX
4685 ファイルであるように注意することが重要です.しかも,これらの各ファイルは,同じ文書クラスでなくてはなりません.a
4686 rticleクラスとbookクラスを混在させるようなことはなさらないでください.\SpecialChar LaTeX
4687 ファイルをインクルードすることもできますが,このファイルにはプリアンブルがあって
4688 はなりません(
4689 \begin_inset Flex Code
4690 status collapsed
4691
4692 \begin_layout Plain Layout
4693
4694 \backslash
4695 begin{document}
4696 \end_layout
4697
4698 \end_inset
4699
4700 行とその前のすべて,および
4701 \begin_inset Flex Code
4702 status collapsed
4703
4704 \begin_layout Plain Layout
4705
4706 \backslash
4707 end{document}行
4708 \end_layout
4709
4710 \end_inset
4711
4712 は削除しておかなければなりません).さもないと,DVIファイルを作成する際にエラーが発生するでしょう.
4713 \end_layout
4714
4715 \begin_layout Standard
4716 \SpecialChar LyX
4717 では,
4718 \family sans
4719 挿入\SpecialChar menuseparator
4720 ファイル\SpecialChar menuseparator
4721 子文書
4722 \family default
4723 で簡単にファイルをインクルードすることができます.このメニューを選んでクリックすると,カーソルの現在位置に小さな枠が挿入されます.この枠をクリックすると,ダイア
4724 ログが現れるので,そこでインクルードするファイルとインクルード方法を選択することができます.
4725 \end_layout
4726
4727 \begin_layout Standard
4728 ファイル選択ボックスは,いまや自明でしょう.インクルード方法には,「include」・「input」・「verbatim」の三つがあります.「include」と
4729 「input」は多くの点で類似していますが,いくつかの大きな違いがあります.
4730 \end_layout
4731
4732 \begin_layout Enumerate
4733 「include」されたファイルは新規頁から組版されるのに対し,「input」されたファイルは現在のページから組版されます.
4734 \end_layout
4735
4736 \begin_layout Enumerate
4737 「include」されたファイルは,それら自身がさらに他のファイル(「孫ファイル」)を「include」することはできません.一方で,「input」は無限に下層
4738 inputを持つことができます.
4739 \end_layout
4740
4741 \begin_layout Enumerate
4742 「include」は選ばれた「include」ファイルの出力しか許しませんが,実際の(ページ割りなどの)カウンタや参照は保持されます(詳細については埋込オブジェ
4743 クト説明書の子文書の節を参照のこと).したがって,子文書にアウトソースされた章については「include」が好まれる方式ですが,任意のファイル継承がある場合には
4744 「input」の方が良いでしょう.
4745 \end_layout
4746
4747 \begin_layout Standard
4748 「verbatim」インクルードファイルでは,ファイルの内容がそのまま(つまり「
4749 \begin_inset Flex Code
4750 status collapsed
4751
4752 \begin_layout Plain Layout
4753 verbatim
4754 \end_layout
4755
4756 \end_inset
4757
4758 」モードで)固定幅タイプライタフォントで組版されます.通常,このファイルの空白は,通常の\SpecialChar LyX
4759 での空白の取扱いとは違って,連続した複数の空白がそのまま出力されるものの
4760 ,単なる見えない空白です.ただし,
4761 \family sans
4762
4763 \begin_inset Flex MenuItem
4764 status collapsed
4765
4766 \begin_layout Plain Layout
4767
4768 \family sans
4769 出力の空白に印付けをする
4770 \end_layout
4771
4772 \end_inset
4773
4774
4775 \family default
4776 チェックボックスを有効にすると,空白が存在することを明確にするために空白の印が出力されます.
4777 \end_layout
4778
4779 \begin_layout Standard
4780 一般的に,親ファイルは,組版前に完全な\SpecialChar LaTeX
4781 ファイルに変換されますが,インクルードされるファイルはプリアンブル情報を全く持たない\SpecialChar LaTeX
4782 ファイルに変換されます.
4783 \end_layout
4784
4785 \begin_layout Subsection
4786 ファイル間の相互参照
4787 \end_layout
4788
4789 \begin_layout Standard
4790 \begin_inset Box Shadowbox
4791 position "t"
4792 hor_pos "c"
4793 has_inner_box 1
4794 inner_pos "t"
4795 use_parbox 0
4796 use_makebox 0
4797 width "100col%"
4798 special "none"
4799 height "1in"
4800 height_special "totalheight"
4801 thickness "0.4pt"
4802 separation "3pt"
4803 shadowsize "4pt"
4804 framecolor "black"
4805 backgroundcolor "none"
4806 status open
4807
4808 \begin_layout Plain Layout
4809 この節の内容は,すでに古くなっています.既定のマスター文書についてと,マスターが開いているときに子文書をどう開くかについて記述する必要があります.[[要修正]]
4810 \end_layout
4811
4812 \end_inset
4813
4814
4815 \end_layout
4816
4817 \begin_layout Standard
4818 異なるファイル間に相互参照を設定することも可能です.まず,すべての関係するファイルを開いてください.例として,2つのファイルを扱う場合を考え,各ファイルをA・B
4819 と呼びます.BがAにインクルードされるファイルだとします.Aにラベルを入れて,Bで参照したいとしましょう.文書Bで相互参照ダイアログを開いて,使用する「バッファ
4820 」を選んでください.
4821 \end_layout
4822
4823 \begin_layout Subsection
4824 すべての子文書での書誌情報
4825 \end_layout
4826
4827 \begin_layout Standard
4828 子文書を使って作業する場合,全体の書誌情報を文末に一つだけ置きたいのだけれども,子文書単独で出力する時に限り,子文書分を抽出した書誌情報が付けられるようにしたい
4829 ことがあります.以下にその方法を説明します.
4830 \end_layout
4831
4832 \begin_layout Standard
4833 親文書には,全体の書誌情報が出力されるべき場所(親ファイルでも子ファイルでも)に,書誌情報差込枠を挿入するだけです.書誌情報差込枠を親ファイルに置いた場合,文献
4834 参照はすべての子文書に継承されるので,各子文書の引用ダイアログで使用できるようになります.
4835 \end_layout
4836
4837 \begin_layout Standard
4838 子文書限定の書誌情報については,子文書内の,子文書が独立にコンパイルされた時に書誌情報が出力されるべき場所に,書誌情報差込枠を挿入します.その際,この差込枠を,
4839 たとえば「子文書のみ」などと名付けた派生枝の中に置く(
4840 \family sans
4841 挿入\SpecialChar menuseparator
4842 派生枝\SpecialChar menuseparator
4843 新規派生枝を挿入...
4844 \family default
4845 )のが肝要です.そして,子文書の中でこの派生枝を有効にし(
4846 \family sans
4847 文書\SpecialChar menuseparator
4848 設定...\SpecialChar menuseparator
4849 派生枝
4850 \family default
4851 ),親文書で無効にします(
4852 \family sans
4853 文書\SpecialChar menuseparator
4854 設定...\SpecialChar menuseparator
4855 派生枝
4856 \family default
4857 ).こうすることで,子文書中の書誌情報は,親文書中では無視され,子文書中では有効になります.
4858 \end_layout
4859
4860 \begin_layout Standard
4861 複数の書誌情報が必要な場合(親文書中でも子文書ごとに書誌情報を出力するなど)は,第
4862 \begin_inset CommandInset ref
4863 LatexCommand ref
4864 reference "subsec:複数の書誌情報"
4865 plural "false"
4866 caps "false"
4867 noprefix "false"
4868
4869 \end_inset
4870
4871 節を参照してください.
4872 \end_layout
4873
4874 \begin_layout Section
4875 \SpecialChar LyX
4876 書庫
4877 \end_layout
4878
4879 \begin_layout Standard
4880 しばしばユーザーは,出版社に送ったり,共著者とやりとりするために,\SpecialChar LyX
4881 ファイルを,その依存する全画像(及び他のファイル)と「同梱」する必要に迫られることがあります.\SpecialChar LyX
4882
4883  2.0には,この過程を自動化するPythonスクリプト(
4884 \begin_inset Flex Code
4885 status collapsed
4886
4887 \begin_layout Plain Layout
4888 lyxpak.py
4889 \end_layout
4890
4891 \end_inset
4892
4893 )が含まれています.これを使うには,
4894 \begin_inset Flex Code
4895 status collapsed
4896
4897 \begin_layout Plain Layout
4898 zipfile
4899 \end_layout
4900
4901 \end_inset
4902
4903  pythonモジュールまたは
4904 \begin_inset Flex Code
4905 status collapsed
4906
4907 \begin_layout Plain Layout
4908 tarfile
4909 \end_layout
4910
4911 \end_inset
4912
4913  pythonモジュールが,システムに導入済みであることが必要です.既定設定では,Unix系システムでは,
4914 \begin_inset Flex Code
4915 status collapsed
4916
4917 \begin_layout Plain Layout
4918 gzip
4919 \end_layout
4920
4921 \end_inset
4922
4923 圧縮
4924 \begin_inset Flex Code
4925 status collapsed
4926
4927 \begin_layout Plain Layout
4928 tar
4929 \end_layout
4930
4931 \end_inset
4932
4933 ファイル形式が優先され,Windowsでは
4934 \begin_inset Flex Code
4935 status collapsed
4936
4937 \begin_layout Plain Layout
4938 zip
4939 \end_layout
4940
4941 \end_inset
4942
4943 形式が優先されます.
4944 \end_layout
4945
4946 \begin_layout Standard
4947 \SpecialChar LyX
4948 の環境構成時には,「\SpecialChar LyX
4949 書庫」を書き出すことができるようにスクリプトが準備され,
4950 \begin_inset Flex MenuItem
4951 status collapsed
4952
4953 \begin_layout Plain Layout
4954 ファイル\SpecialChar menuseparator
4955 書き出し
4956 \end_layout
4957
4958 \end_inset
4959
4960 の下で利用可能となります.
4961 \end_layout
4962
4963 \begin_layout Standard
4964 \begin_inset Flex MenuItem
4965 status collapsed
4966
4967 \begin_layout Plain Layout
4968 ツール\SpecialChar menuseparator
4969 設定\SpecialChar menuseparator
4970 ファイル処理\SpecialChar menuseparator
4971 変換子
4972 \end_layout
4973
4974 \end_inset
4975
4976
4977 \begin_inset Flex MenuItem
4978 status collapsed
4979
4980 \begin_layout Plain Layout
4981 \SpecialChar LyX
4982 \SpecialChar menuseparator
4983 \SpecialChar LyX
4984 書庫
4985 \end_layout
4986
4987 \end_inset
4988
4989 変換子に,
4990 \begin_inset Flex Code
4991 status collapsed
4992
4993 \begin_layout Plain Layout
4994 -t
4995 \end_layout
4996
4997 \end_inset
4998
4999 スイッチや
5000 \begin_inset Flex Code
5001 status collapsed
5002
5003 \begin_layout Plain Layout
5004 -z
5005 \end_layout
5006
5007 \end_inset
5008
5009 スイッチを加えることで,プラットホームとは独立に,
5010 \begin_inset Flex Code
5011 status collapsed
5012
5013 \begin_layout Plain Layout
5014 tar
5015 \end_layout
5016
5017 \end_inset
5018
5019 形式や
5020 \begin_inset Flex Code
5021 status collapsed
5022
5023 \begin_layout Plain Layout
5024 zip
5025 \end_layout
5026
5027 \end_inset
5028
5029 形式を強制することができます(スイッチは,スクリプト名の前ではなく,後ろに加えてください).
5030 \end_layout
5031
5032 \begin_layout Section
5033 装飾的なヘッダ・フッタ
5034 \end_layout
5035
5036 \begin_layout Standard
5037 既定のページレイアウトは,どちらかといえば素っ気ないものです.
5038 \begin_inset Flex Code
5039 status collapsed
5040
5041 \begin_layout Plain Layout
5042 article
5043 \end_layout
5044
5045 \end_inset
5046
5047 文書クラスの場合には,ページの下の真ん中にページ番号がつくだけです.この取扱説明書はKOMA-scriptのbookクラスなので,すこしは凝ってますが,ほんとう
5048 に着飾るには,『
5049 \emph on
5050 ユーザーの手引き
5051 \emph default
5052 』に述べられているように,文書ページスタイルを「装飾的(fancy)」に設定する必要があります.この節では,望んだとおりの効果を得るために,\SpecialChar LaTeX
5053 プリアンブルに挿入す
5054 る必要のある\SpecialChar LaTeX
5055 コードについて解説します.
5056 \end_layout
5057
5058 \begin_layout Standard
5059 ページへッダは,「left(左)」・「center(中央)」・「right(右)」と命名された3つのフィールドに分けられています.フッタも同様に3つのフィールド
5060 に分類されています.これらのフィールドをもっとも簡単に設定する\SpecialChar LaTeX
5061 コマンドには,
5062 \family typewriter
5063
5064 \begin_inset Flex Code
5065 status collapsed
5066
5067 \begin_layout Plain Layout
5068
5069 \family typewriter
5070
5071 \backslash
5072 lhead
5073 \end_layout
5074
5075 \end_inset
5076
5077
5078 \family default
5079
5080 \family typewriter
5081
5082 \begin_inset Flex Code
5083 status collapsed
5084
5085 \begin_layout Plain Layout
5086
5087 \family typewriter
5088
5089 \backslash
5090 chead
5091 \end_layout
5092
5093 \end_inset
5094
5095
5096 \family default
5097
5098 \family typewriter
5099
5100 \begin_inset Flex Code
5101 status collapsed
5102
5103 \begin_layout Plain Layout
5104
5105 \family typewriter
5106
5107 \backslash
5108 rhead
5109 \end_layout
5110
5111 \end_inset
5112
5113
5114 \family default
5115
5116 \begin_inset Flex Code
5117 status collapsed
5118
5119 \begin_layout Plain Layout
5120
5121 \backslash
5122 lfoot
5123 \end_layout
5124
5125 \end_inset
5126
5127 などがあります.かりに,各ページの左上端に自分の名前を入れたいものとしましょう.次のようなコマンドをプリアンブルに入れるだけです.
5128 \end_layout
5129
5130 \begin_layout Standard
5131
5132 \family typewriter
5133
5134 \backslash
5135 lhead{物書 はじめ}
5136 \end_layout
5137
5138 \begin_layout Standard
5139 これで自分の名前が左上に現れます.フィールドに取り除きたい既定の内容がある場合(往々にして中央のフッタにはページ番号が入ります)には,空の引数を持つコマンドを入
5140 れるだけです.すなわち,
5141 \end_layout
5142
5143 \begin_layout Standard
5144
5145 \family typewriter
5146
5147 \backslash
5148 cfoot{}
5149 \begin_inset Newline newline
5150 \end_inset
5151
5152
5153 \family default
5154 とします.
5155 \end_layout
5156
5157 \begin_layout Standard
5158 もっと美しくしてみましょう.節番号を「第‥節」という言葉といっしょに(第3節のように)左上に入れ,ページ番号を(4ページのように)右上に,自分の名前を左下に,日
5159 付を右下に入れます.以下のコマンドをプリアンブルに入れます.
5160 \end_layout
5161
5162 \begin_layout Standard
5163
5164 \family typewriter
5165
5166 \backslash
5167 lhead{第
5168 \backslash
5169 thesection 節}
5170 \end_layout
5171
5172 \begin_layout Standard
5173
5174 \family typewriter
5175
5176 \backslash
5177 chead{}
5178 \end_layout
5179
5180 \begin_layout Standard
5181
5182 \family typewriter
5183
5184 \backslash
5185 rhead{
5186 \backslash
5187 thepage ページ}
5188 \end_layout
5189
5190 \begin_layout Standard
5191
5192 \family typewriter
5193
5194 \backslash
5195 lfoot{物書 はじめ}
5196 \end_layout
5197
5198 \begin_layout Standard
5199
5200 \family typewriter
5201
5202 \backslash
5203 cfoot{}
5204 \end_layout
5205
5206 \begin_layout Standard
5207
5208 \family typewriter
5209
5210 \backslash
5211 rfoot{
5212 \backslash
5213 today}
5214 \end_layout
5215
5216 \begin_layout Standard
5217 コマンド
5218 \family typewriter
5219
5220 \begin_inset Flex Code
5221 status collapsed
5222
5223 \begin_layout Plain Layout
5224
5225 \family typewriter
5226
5227 \backslash
5228 thesecti
5229 \family default
5230 o
5231 \family typewriter
5232 n
5233 \end_layout
5234
5235 \end_inset
5236
5237
5238 \family default
5239
5240 \begin_inset Flex Code
5241 status collapsed
5242
5243 \begin_layout Plain Layout
5244
5245 \family typewriter
5246
5247 \backslash
5248 thepa
5249 \family default
5250 ge
5251 \end_layout
5252
5253 \end_inset
5254
5255 は,それぞれ\SpecialChar LaTeX
5256 の節カウンタおよびページカウンタを取得するもので,これによって現在の節番号とページ番号を印字します.
5257 \begin_inset Flex Code
5258 status collapsed
5259
5260 \begin_layout Plain Layout
5261
5262 \family typewriter
5263
5264 \backslash
5265 tod
5266 \family default
5267 ay
5268 \end_layout
5269
5270 \end_inset
5271
5272 は,今日の日付を印字するものです.
5273 \end_layout
5274
5275 \begin_layout Standard
5276 へッダ下またはフッタ上に描かれる罫線の太さも変更することができます.もし罫線が必要なければ,太さを0にしてください.ヘッダ罫線は,既定では0.4ptの太さであり,
5277 フッタ罫線は0ptです.太さを変更するには,
5278 \family typewriter
5279
5280 \begin_inset Flex Code
5281 status collapsed
5282
5283 \begin_layout Plain Layout
5284
5285 \family typewriter
5286
5287 \backslash
5288 renewcommand{
5289 \backslash
5290 headrulewidth}{0.4pt}
5291 \end_layout
5292
5293 \end_inset
5294
5295
5296 \family default
5297
5298 \family typewriter
5299
5300 \begin_inset Flex Code
5301 status collapsed
5302
5303 \begin_layout Plain Layout
5304
5305 \family typewriter
5306
5307 \backslash
5308 renewcommand{
5309 \backslash
5310 footrulewidth}{0.4pt}
5311 \end_layout
5312
5313 \end_inset
5314
5315
5316 \family default
5317 のようなコマンドを使用してください.
5318 \end_layout
5319
5320 \begin_layout Standard
5321 \begin_inset Flex Code
5322 status collapsed
5323
5324 \begin_layout Plain Layout
5325
5326 \family typewriter
5327
5328 \backslash
5329 thispagestyle{empty}
5330 \end_layout
5331
5332 \end_inset
5333
5334
5335 \begin_inset Flex Code
5336 status collapsed
5337
5338 \begin_layout Plain Layout
5339
5340 \family typewriter
5341
5342 \backslash
5343 thispagestyle{plain}
5344 \end_layout
5345
5346 \end_inset
5347
5348
5349 \begin_inset Flex Code
5350 status collapsed
5351
5352 \begin_layout Plain Layout
5353
5354 \family typewriter
5355
5356 \backslash
5357 thispagestyle{fancy}
5358 \end_layout
5359
5360 \end_inset
5361
5362 のようなコマンドを使えば,各ページごとにへッダ・フッタ設定を有効にしたり無効にしたりすることができます.設定を変更したいページに,これらのコマンドを\SpecialChar TeX
5363 コードとして
5364 挿入してください.実は,タイトルページは,その後のページは大域的に装飾的(fancy)に設定されていれば装飾的(fancy)になるにもかかわらず,既定でプレーン
5365 (plain)になるように設定されているのです.
5366 \end_layout
5367
5368 \begin_layout Standard
5369 奇数ページの左上だけに何かを挿入するなど,もっと複雑なコマンドもあるのですが,詳しい解説は
5370 \begin_inset Flex Code
5371 status collapsed
5372
5373 \begin_layout Plain Layout
5374
5375 \family typewriter
5376 fancyhdr
5377 \end_layout
5378
5379 \end_inset
5380
5381 パッケージの取扱説明書をご参照ください(
5382 \begin_inset Flex Code
5383 status collapsed
5384
5385 \begin_layout Plain Layout
5386 fancyhdr.dvi
5387 \end_layout
5388
5389 \end_inset
5390
5391 を探してください).
5392 \end_layout
5393
5394 \begin_layout Standard
5395 最後の例として,へッダやフッタに画像を挿入できることを取り上げましょう.会社のロゴをページ左上に入れたいものとします.たとえば,
5396 \end_layout
5397
5398 \begin_layout Standard
5399
5400 \family typewriter
5401
5402 \backslash
5403 lhead{
5404 \backslash
5405 resizebox{1in}{!}{
5406 \backslash
5407 includegraphics{logo.eps}}}
5408 \end_layout
5409
5410 \begin_layout Standard
5411 \noindent
5412 とすれば,これを実現できます(文書中に他に画像を挿入していない場合には,
5413 \begin_inset Newline newline
5414 \end_inset
5415
5416
5417 \begin_inset Flex Code
5418 status collapsed
5419
5420 \begin_layout Plain Layout
5421 \noindent
5422
5423 \family typewriter
5424
5425 \backslash
5426 usepackage{graphics}
5427 \end_layout
5428
5429 \end_inset
5430
5431 をプリアンブルに宣言する必要があります).
5432 \end_layout
5433
5434 \begin_layout Section
5435 箇条書き(記号)ブリットの指定
5436 \begin_inset CommandInset label
5437 LatexCommand label
5438 name "sec:ブリット"
5439
5440 \end_inset
5441
5442
5443 \end_layout
5444
5445 \begin_layout Standard
5446
5447 \noun on
5448 Allan Rae文
5449 \end_layout
5450
5451 \begin_layout Subsection
5452 はじめに
5453 \end_layout
5454
5455 \begin_layout Standard
5456 \SpecialChar LyX
5457 には,ブリットの形が216個準備されていて,簡単なダイアログから呼び出すことができます.このダイアログを使えば,箇条書き(記号)の各階層で使うブリットの形を変更
5458 することができます.この設定は文書全体に共通なので,段落ごとに別のブリットを指定することはできません
5459 \begin_inset Foot
5460 status collapsed
5461
5462 \begin_layout Plain Layout
5463 正確には可能ですが,手動で行う必要があります.
5464 \end_layout
5465
5466 \end_inset
5467
5468
5469 \end_layout
5470
5471 \begin_layout Subsection
5472 外見
5473 \end_layout
5474
5475 \begin_layout Standard
5476 メニュー項目の
5477 \begin_inset Flex MenuItem
5478 status collapsed
5479
5480 \begin_layout Plain Layout
5481 文書\SpecialChar menuseparator
5482 設定
5483 \end_layout
5484
5485 \end_inset
5486
5487 を選択してダイアログを開き,
5488 \begin_inset Flex MenuItem
5489 status collapsed
5490
5491 \begin_layout Plain Layout
5492 ブリット
5493 \end_layout
5494
5495 \end_inset
5496
5497 タブを選択してください.
5498 \end_layout
5499
5500 \begin_layout Standard
5501 このダイアログは,ブリット形の一覧表を提示します.
5502 \begin_inset Flex MenuItem
5503 status collapsed
5504
5505 \begin_layout Plain Layout
5506 フォント
5507 \end_layout
5508
5509 \end_inset
5510
5511 と書いてあるドロップダウンメニューで,6つの各ブリット形パネルを切り替えることができます.また,一覧表左の
5512 \begin_inset Flex MenuItem
5513 status collapsed
5514
5515 \begin_layout Plain Layout
5516 階層
5517 \end_layout
5518
5519 \end_inset
5520
5521 パネルは,変更したい階層を選択するものです.
5522 \begin_inset Flex MenuItem
5523 status collapsed
5524
5525 \begin_layout Plain Layout
5526 任意のブリット
5527 \end_layout
5528
5529 \end_inset
5530
5531 では,指定したい\SpecialChar LaTeX
5532 表現を入力することができます.任意のブリットを指定した場合には,そのコマンドが必要とするパッケージを\SpecialChar LaTeX
5533 プリアンブルで指定する必要があります.
5534 \end_layout
5535
5536 \begin_layout Standard
5537 6つのパネルは,それぞれが必要とするパッケージによって分類されています.下記は,フォント名と\SpecialChar LaTeX
5538 パッケージの対応表です.
5539 \end_layout
5540
5541 \begin_layout Standard
5542 \align center
5543 \begin_inset Tabular
5544 <lyxtabular version="3" rows="7" columns="2">
5545 <features tabularvalignment="middle">
5546 <column alignment="center" valignment="top" width="0pt">
5547 <column alignment="center" valignment="top" width="0pt">
5548 <row>
5549 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5550 \begin_inset Text
5551
5552 \begin_layout Plain Layout
5553 フォント
5554 \end_layout
5555
5556 \end_inset
5557 </cell>
5558 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
5559 \begin_inset Text
5560
5561 \begin_layout Plain Layout
5562
5563 \family roman
5564 \series medium
5565 \shape up
5566 \size normal
5567 \emph off
5568 \bar no
5569 \noun off
5570 \color none
5571 必要とするパッケージ
5572 \end_layout
5573
5574 \end_inset
5575 </cell>
5576 </row>
5577 <row>
5578 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5579 \begin_inset Text
5580
5581 \begin_layout Plain Layout
5582
5583 \family sans
5584 標準
5585 \end_layout
5586
5587 \end_inset
5588 </cell>
5589 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5590 \begin_inset Text
5591
5592 \begin_layout Plain Layout
5593
5594 \series medium
5595 \shape up
5596 \size normal
5597 \emph off
5598 \bar no
5599 \noun off
5600 \color none
5601 \SpecialChar LaTeX
5602
5603 \family roman
5604 本体
5605 \end_layout
5606
5607 \end_inset
5608 </cell>
5609 </row>
5610 <row>
5611 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5612 \begin_inset Text
5613
5614 \begin_layout Plain Layout
5615
5616 \family sans
5617 \series medium
5618 \shape up
5619 \size normal
5620 \emph off
5621 \bar no
5622 \noun off
5623 \color none
5624 数式
5625 \end_layout
5626
5627 \end_inset
5628 </cell>
5629 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5630 \begin_inset Text
5631
5632 \begin_layout Plain Layout
5633
5634 \family typewriter
5635 \series medium
5636 \shape up
5637 \size normal
5638 \emph off
5639 \bar no
5640 \noun off
5641 \color none
5642 amssymb.sty
5643 \end_layout
5644
5645 \end_inset
5646 </cell>
5647 </row>
5648 <row>
5649 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5650 \begin_inset Text
5651
5652 \begin_layout Plain Layout
5653
5654 \family sans
5655 \series medium
5656 \shape up
5657 \size normal
5658 \emph off
5659 \bar no
5660 \noun off
5661 \color none
5662 絵文字1
5663 \end_layout
5664
5665 \end_inset
5666 </cell>
5667 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5668 \begin_inset Text
5669
5670 \begin_layout Plain Layout
5671
5672 \family typewriter
5673 \series medium
5674 \shape up
5675 \size normal
5676 \emph off
5677 \bar no
5678 \noun off
5679 \color none
5680 pifont.sty
5681 \end_layout
5682
5683 \end_inset
5684 </cell>
5685 </row>
5686 <row>
5687 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5688 \begin_inset Text
5689
5690 \begin_layout Plain Layout
5691
5692 \family sans
5693 \series medium
5694 \shape up
5695 \size normal
5696 \emph off
5697 \bar no
5698 \noun off
5699 \color none
5700 絵文字2
5701 \end_layout
5702
5703 \end_inset
5704 </cell>
5705 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5706 \begin_inset Text
5707
5708 \begin_layout Plain Layout
5709
5710 \family typewriter
5711 \series medium
5712 \shape up
5713 \size normal
5714 \emph off
5715 \bar no
5716 \noun off
5717 \color none
5718 pifont.sty
5719 \end_layout
5720
5721 \end_inset
5722 </cell>
5723 </row>
5724 <row>
5725 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5726 \begin_inset Text
5727
5728 \begin_layout Plain Layout
5729
5730 \family sans
5731 \series medium
5732 \shape up
5733 \size normal
5734 \emph off
5735 \bar no
5736 \noun off
5737 \color none
5738 絵文字3
5739 \end_layout
5740
5741 \end_inset
5742 </cell>
5743 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5744 \begin_inset Text
5745
5746 \begin_layout Plain Layout
5747
5748 \family typewriter
5749 \series medium
5750 \shape up
5751 \size normal
5752 \emph off
5753 \bar no
5754 \noun off
5755 \color none
5756 pifont.sty
5757 \end_layout
5758
5759 \end_inset
5760 </cell>
5761 </row>
5762 <row>
5763 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5764 \begin_inset Text
5765
5766 \begin_layout Plain Layout
5767
5768 \family sans
5769 \series medium
5770 \shape up
5771 \size normal
5772 \emph off
5773 \bar no
5774 \noun off
5775 \color none
5776 絵文字4
5777 \end_layout
5778
5779 \end_inset
5780 </cell>
5781 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
5782 \begin_inset Text
5783
5784 \begin_layout Plain Layout
5785
5786 \family typewriter
5787 \series medium
5788 \shape up
5789 \size normal
5790 \emph off
5791 \bar no
5792 \noun off
5793 \color none
5794 pifont.sty
5795 \end_layout
5796
5797 \end_inset
5798 </cell>
5799 </row>
5800 </lyxtabular>
5801
5802 \end_inset
5803
5804
5805 \end_layout
5806
5807 \begin_layout Standard
5808 \SpecialChar LyX
5809 は,ユーザーが導入されていないパッケージのブリットを使用したとしても,警告を発しません.ファイルを閲覧したり印刷したりしようとしたときに\SpecialChar LaTeX
5810 エラーが出るようならば,
5811 パッケージが導入されていない可能性が大です
5812 \begin_inset Foot
5813 status collapsed
5814
5815 \begin_layout Plain Layout
5816 \SpecialChar LyX
5817 が,パッケージがなくてもブリットを使用することを許すのは,編集をここで行ったとしても,別のところへエクスポートする可能性があるからです.
5818 \end_layout
5819
5820 \end_inset
5821
5822
5823 \end_layout
5824
5825 \begin_layout Subsection
5826 使用法
5827 \end_layout
5828
5829 \begin_layout Standard
5830 変更したいブリット階層を選んで,ブリット形と寸法を選択してください.何らかの変更を加えたとしても,\SpecialChar LyX
5831 上には反映されませんが,文書の表示を行えば確認されます.
5832 \end_layout
5833
5834 \begin_layout Standard
5835 ブリット形は,適切な階層のブリットボタンをマウスで右クリックすれば,簡単に既定値に初期化することができます
5836 \begin_inset Foot
5837 status open
5838
5839 \begin_layout Plain Layout
5840 もし
5841 \emph on
5842 本当に
5843 \emph default
5844 段落ごとに異なるブリットの形を使いたいならば,\SpecialChar TeX
5845 コードを使って少し手を汚す必要があります.この場合も,ブリット選択ダイアログを使えば,さまざまな形のLaTeXコー
5846 ドを確認することができるので手助けとなるでしょう.任意に設定した段落をつくるには,以下のような選択肢があります.
5847 \end_layout
5848
5849 \begin_layout Plain Layout
5850 \begin_inset ERT
5851 status open
5852
5853 \begin_layout Plain Layout
5854
5855
5856 \backslash
5857 let
5858 \backslash
5859 savelabelitemi=
5860 \backslash
5861 labelitemi
5862 \end_layout
5863
5864 \end_inset
5865
5866
5867 \end_layout
5868
5869 \begin_layout Plain Layout
5870 \begin_inset ERT
5871 status open
5872
5873 \begin_layout Plain Layout
5874
5875
5876 \backslash
5877 renewcommand
5878 \backslash
5879 labelitemi[0]{
5880 \backslash
5881 small
5882 \backslash
5883 (
5884 \backslash
5885 sharp
5886 \backslash
5887 )}
5888 \end_layout
5889
5890 \end_inset
5891
5892
5893 \end_layout
5894
5895 \begin_layout Itemize
5896 特定の階層の新しいブリット形を指定するには,\SpecialChar LaTeX
5897 コマンド
5898 \begin_inset Flex Code
5899 status collapsed
5900
5901 \begin_layout Plain Layout
5902
5903 \family typewriter
5904
5905 \backslash
5906 renewcommand{}{}
5907 \end_layout
5908
5909 \end_inset
5910
5911 を使用します.あとで現在のブリット形に戻すことができるように,現在のブリット形を保存しておく必要もあります.ここで使っている箇条書きでは,第1階層のブリットを変
5912 更するために,以下の\SpecialChar LaTeX
5913 コードが使用されています.
5914 \end_layout
5915
5916 \begin_deeper
5917 \begin_layout LyX-Code
5918
5919 \family typewriter
5920
5921 \backslash
5922 let
5923 \backslash
5924 savelabelitemi=
5925 \backslash
5926 labelitemi
5927 \end_layout
5928
5929 \begin_layout LyX-Code
5930
5931 \family typewriter
5932
5933 \backslash
5934 renewcommand
5935 \backslash
5936 labelitemi[0]{
5937 \backslash
5938 small
5939 \backslash
5940 (
5941 \backslash
5942 sharp
5943 \backslash
5944 )}
5945 \end_layout
5946
5947 \end_deeper
5948 \begin_layout Itemize
5949 箇条書き(記号)の階層は,
5950 \begin_inset Flex Code
5951 status collapsed
5952
5953 \begin_layout Plain Layout
5954
5955 \backslash
5956 labelitem
5957 \end_layout
5958
5959 \end_inset
5960
5961 コマンドの一部にローマ数字で指定されていることに注意してください.
5962 \end_layout
5963
5964 \begin_layout Itemize
5965 \begin_inset Argument item:1
5966 status open
5967
5968 \begin_layout Plain Layout
5969 \begin_inset ERT
5970 status open
5971
5972 \begin_layout Plain Layout
5973
5974
5975 \backslash
5976 (
5977 \backslash
5978 star
5979 \backslash
5980 )
5981 \end_layout
5982
5983 \end_inset
5984
5985
5986 \end_layout
5987
5988 \end_inset
5989
5990 各項目のブリットを指定するには,
5991 \begin_inset Flex Code
5992 status collapsed
5993
5994 \begin_layout Plain Layout
5995 \SpecialChar TeX
5996 コード
5997 \end_layout
5998
5999 \end_inset
6000
6001 として入力したブリット形を,行頭に「ユーザ設定」項目差込枠(挿入\SpecialChar menuseparator
6002 ユーザ設定項目)に入れて挿入してください.たとえば,この項目の行頭には
6003 \family typewriter
6004
6005 \begin_inset Flex Code
6006 status collapsed
6007
6008 \begin_layout Plain Layout
6009
6010 \family typewriter
6011
6012 \backslash
6013 (
6014 \backslash
6015 star
6016 \backslash
6017 )
6018 \end_layout
6019
6020 \end_inset
6021
6022
6023 \family default
6024 が指定されています.
6025 \end_layout
6026
6027 \begin_layout Plain Layout
6028 \begin_inset ERT
6029 status open
6030
6031 \begin_layout Plain Layout
6032
6033
6034 \backslash
6035 renewcommand
6036 \backslash
6037 labelitemi[0]{
6038 \backslash
6039 savelabelitemi}
6040 \end_layout
6041
6042 \end_inset
6043
6044
6045 \end_layout
6046
6047 \begin_layout Plain Layout
6048 文書全体で使用するブリット形が有効であるようにするために,labelitemを元の設定に戻す必要があります.そのためには,以下のようにします.
6049 \end_layout
6050
6051 \begin_layout LyX-Code
6052
6053 \family typewriter
6054
6055 \backslash
6056 renewcommand
6057 \backslash
6058 labelitemi[0]{
6059 \backslash
6060 savelabelitemi}
6061 \end_layout
6062
6063 \end_inset
6064
6065
6066 \end_layout
6067
6068 \begin_layout Chapter
6069 \SpecialChar LyX
6070 とインターネット網
6071 \end_layout
6072
6073 \begin_layout Standard
6074 \SpecialChar LyX
6075 は,これまでも長い間,HTMLを始めとするウェブフレンドリーな文書諸形式への書き出しをサポートしてきました.しかしながら,第2.0版以前では,HTMLへの書き出し
6076 は,常に外部変換子を用いることで実現されていました
6077 \begin_inset Foot
6078 status collapsed
6079
6080 \begin_layout Plain Layout
6081 \SpecialChar LyX
6082 で外部変換子を使うことについての詳細は,取扱説明書『
6083 \emph on
6084 カスタマイズ篇
6085 \emph default
6086 』の「
6087 \emph on
6088 変換子
6089 \emph default
6090 」の節をご覧ください.
6091 \end_layout
6092
6093 \end_inset
6094
6095 .これらは2つのグループに大別できます.1つは,
6096 \begin_inset Flex Code
6097 status collapsed
6098
6099 \begin_layout Plain Layout
6100 htlatex
6101 \end_layout
6102
6103 \end_inset
6104
6105
6106 \begin_inset Flex Code
6107 status collapsed
6108
6109 \begin_layout Plain Layout
6110 html2latex
6111 \end_layout
6112
6113 \end_inset
6114
6115
6116 \begin_inset Flex Code
6117 status collapsed
6118
6119 \begin_layout Plain Layout
6120 plastex
6121 \end_layout
6122
6123 \end_inset
6124
6125 のように,\SpecialChar LaTeX
6126 を中間形式として用い,その\SpecialChar LaTeX
6127 を生成するのに\SpecialChar LyX
6128 を用いるもの.2つめは,
6129 \begin_inset Flex Code
6130 status collapsed
6131
6132 \begin_layout Plain Layout
6133 e\SpecialChar LyX
6134 er
6135 \end_layout
6136
6137 \end_inset
6138
6139 のように,直接\SpecialChar LyX
6140 ファイルに働きかける変換子です.これらは,それぞれに長所・短所を有しています.
6141 \end_layout
6142
6143 \begin_layout Standard
6144 \SpecialChar LaTeX
6145 ベースの変換子は,原則として,\SpecialChar LaTeX
6146 が書きだす文書についてのすべてを知っているという長所があります.この種の変換子は,例えば,特定のコードのくだりが,\SpecialChar LyX
6147 によって生成され
6148 たのか,\SpecialChar TeX
6149 コードで書かれたのかについては気にしません.これらの変換子は,
6150 \begin_inset Flex Code
6151 status collapsed
6152
6153 \begin_layout Plain Layout
6154 aux
6155 \end_layout
6156
6157 \end_inset
6158
6159 ファイルやカウンタや参照を取り扱うことができ,Bib\SpecialChar TeX
6160 が生成する
6161 \begin_inset Flex Code
6162 status collapsed
6163
6164 \begin_layout Plain Layout
6165 bbl
6166 \end_layout
6167
6168 \end_inset
6169
6170 ファイルも利用することがよくあります.一方で,\SpecialChar LaTeX
6171 は解析の非常に難しい言語であり—\SpecialChar TeX
6172 自身だけが\SpecialChar TeX
6173 を理解することができると言われたりすることがあります—,\SpecialChar LaTeX
6174 ベースの変換子は
6175 ,非常に簡単な文法に見えるものでさえ飲み込めず,複雑なものになると全く歯が立たないこともあります.例えば,この現行を書いている時点では,取扱説明書『
6176 \emph on
6177 埋込オブジェクト篇
6178 \emph default
6179 』は,他の変換子では書き出しができるのに,
6180 \begin_inset Flex Code
6181 status collapsed
6182
6183 \begin_layout Plain Layout
6184 htlatex
6185 \end_layout
6186
6187 \end_inset
6188
6189 では行うことができません.他には,数式をどう取り扱うかという問題があります.これらの変換子の典型的なものは,数式を小さな画像に変換して,HTML文書からこれらの
6190 画像へのリンクを張ります.これらの画像は,実は\SpecialChar LaTeX
6191 によって生成されているので,正確です.しかしながら,これらはうまく伸縮できないので,実際の文書の中で表現されるよう
6192 に—フォント寸が凡そ正しくなるように—見せようとすると,大変な苦労を伴います.
6193 \end_layout
6194
6195 \begin_layout Standard
6196 Alex Fernandezの
6197 \begin_inset Flex Code
6198 status collapsed
6199
6200 \begin_layout Plain Layout
6201 e\SpecialChar LyX
6202 er
6203 \end_layout
6204
6205 \end_inset
6206
6207
6208 \begin_inset CommandInset href
6209 LatexCommand href
6210 name "http://elyxer.nongnu.org/"
6211 target "http://elyxer.nongnu.org/"
6212 literal "false"
6213
6214 \end_inset
6215
6216 )は,これらの問題の一部を解決します.特に,これは数式を画像に変換するのではなく,HTMLとCSSを組み合わせて数式を生成するので,生成される数式は完璧な大きさ
6217 に伸縮されて表示されます.しかしながら,ちょっとだけ複雑な数式でさえ,
6218 \begin_inset Flex Code
6219 status collapsed
6220
6221 \begin_layout Plain Layout
6222 htlatex
6223 \end_layout
6224
6225 \end_inset
6226
6227 よりも質が落ちます.これはHTMLの限界を示しています
6228 \begin_inset Foot
6229 status collapsed
6230
6231 \begin_layout Plain Layout
6232 とはいえ,
6233 \begin_inset Flex Code
6234 status collapsed
6235
6236 \begin_layout Plain Layout
6237 e\SpecialChar LyX
6238 er
6239 \end_layout
6240
6241 \end_inset
6242
6243 では,数式用にjsMathとMathJaxを使用することもできます.ただし,この設定はグローバルにしか設定することができず,バックエンドで実行させるサーバへのア
6244 クセスが利用できる必要があります.
6245 \end_layout
6246
6247 \end_inset
6248
6249 .さらに重要なことは(少なくとも第1.1.1版においては),
6250 \begin_inset Flex Code
6251 status collapsed
6252
6253 \begin_layout Plain Layout
6254 e\SpecialChar LyX
6255 er
6256 \end_layout
6257
6258 \end_inset
6259
6260 は数式マクロを一部しかサポートしておらず,ユーザ定義の段落様式や文字様式をサポートしていません.これらの制約によって,\SpecialChar LyX
6261 ユーザが生成する文書の多くにとっては,
6262 \begin_inset Flex Code
6263 status collapsed
6264
6265 \begin_layout Plain Layout
6266 e\SpecialChar LyX
6267 er
6268 \end_layout
6269
6270 \end_inset
6271
6272 は不向きなものになっています.もちろん,原理的に,これらの問題を解決することもできたのですが,\SpecialChar LyX
6273 開発陣は別の方法を採ることとし,\SpecialChar LyX
6274 が\SpecialChar LaTeX
6275 やDocBook,平文を書き出す
6276 ことができるのと同様に,\SpecialChar LyX
6277 自身にXHTMLを書きだす能力を身につけさせることとしたのです.
6278 \end_layout
6279
6280 \begin_layout Standard
6281 この原稿執筆時点では,XHTML出力は開発途上であり,おそらく「実験的」機能として解されるべきでしょう
6282 \begin_inset Foot
6283 status open
6284
6285 \begin_layout Plain Layout
6286 \SpecialChar LyX
6287 ソースツリーもしくは
6288 \begin_inset CommandInset href
6289 LatexCommand href
6290 name "オンラインでのアクセス"
6291 target "http://www.lyx.org/trac/browser/lyx-devel/trunk/development/HTML/HTML.notes"
6292 literal "false"
6293
6294 \end_inset
6295
6296 にある
6297 \begin_inset Flex Code
6298 status collapsed
6299
6300 \begin_layout Plain Layout
6301 development/HTML/HTML.notes
6302 \end_layout
6303
6304 \end_inset
6305
6306 ファイルには,通常,XHTML出力の現状についての最新の情報が収録されています.
6307 \begin_inset CommandInset href
6308 LatexCommand href
6309 name "バグ追跡ページ"
6310 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"
6311 literal "false"
6312
6313 \end_inset
6314
6315 にあるXHTML関連バグ一覧も参照のこと.
6316 \end_layout
6317
6318 \end_inset
6319
6320 .それでもこのアプローチは,他の2つの方法よりも,潜在的な利点がいくつもあるので,開発陣はこの方法を選択したのです.
6321 \end_layout
6322
6323 \begin_layout Standard
6324 これらの利点は,主に,XHTML出力ルーチンが\SpecialChar LyX
6325 の一部となっているため,\SpecialChar LyX
6326 が出力する文書について\SpecialChar LyX
6327 が関知しているところのものは,すべて知り得るというところから来ていま
6328
6329 \begin_inset Foot
6330 status collapsed
6331
6332 \begin_layout Plain Layout
6333 他には,これらのルーチンが\SpecialChar LyX
6334 内部にあるため,\SpecialChar LyX
6335 ファイル形式や既存の差込枠の文法に変更があっても,影響を受けずに済むという利点もあります.
6336 \end_layout
6337
6338 \end_inset
6339
6340 .つまり,XHTML出力ルーチンは,(文書構造に表示されるような形での)目次や,それぞれの段落様式に関連付けられたカウンタや,ユーザ定義の様式についても知ってい
6341 るのです.XHTML出力ルーチンは,国際化について\SpecialChar LyX
6342 が関知しているものも知っているので,ちょうどその時に有効になっている言語に依存して,「Chapter
6343  1」と出力されたり,「Kapitel 1」と出力されたりするのです.
6344 \end_layout
6345
6346 \begin_layout Standard
6347 汎く一般的に,出力ルーチンは,\SpecialChar LyX
6348 が文書レイアウトについて関知しているものは知っており,したがって,文書が画面上にどのように描画されるかも知っています.文書をXHT
6349 MLに出力するときには,この情報を利用します.特に,\SpecialChar LyX
6350 は,文書を画面上に描画するときに使用するレイアウト情報に対応したCSSスタイル情報を
6351 \emph on
6352 自動的に
6353 \emph default
6354 生成します.もし節見出しが,\SpecialChar LyX
6355 中でサンセリフ体かつボールド体であるとすると,(既定では)ウェブブラウザに表示した時にも,サンセリフでボールドになります.これは,節
6356 のような定義済み様式だけでなく,ユーザ定義のものも含めて,すべての様式でそうです.実際,XHTML出力ルーチンは,ユーザ定義の段落・文字様式と,\SpecialChar LyX
6357 自身の定義済み様
6358 式とを区別しません.どちらの場合も,\SpecialChar LyX
6359 が様式について関知しているところのものは,全てレイアウトファイルに含まれています.これは,脚注のような定義済み差込枠や,各種
6360 ユーザ設定差込枠でもそうです.
6361 \end_layout
6362
6363 \begin_layout Standard
6364 結果として,XHTML出力は,レイアウトファイルやモジュールを通して,\SpecialChar LaTeX
6365 出力と全く同じように,ユーザが設定したり拡張したりすることができるのです.詳細については,
6366 取扱説明書『
6367 \emph on
6368 カスタマイズ篇
6369 \emph default
6370 』の第5章をごらんください.
6371 \end_layout
6372
6373 \begin_layout Standard
6374 本章の残りでは,XHTML出力についての,さらに詳細な情報について取り扱い,その制約や,制約の回避の仕方を取り扱います.
6375 \end_layout
6376
6377 \begin_layout Section
6378 XHTMLにおける数式出力
6379 \end_layout
6380
6381 \begin_layout Standard
6382 \SpecialChar LyX
6383 では,数式描画に4つの方法を選択できます.以下に示すように,それぞれに利点と欠点があります.
6384 \end_layout
6385
6386 \begin_layout Itemize
6387 MathML
6388 \begin_inset Newline newline
6389 \end_inset
6390
6391 MathMLは,ウェブ上で数学を用いるために,特にデザインされたXMLの一方言であり,これをサポートするブラウザ上では,通常,特に美しい表現が得られます.欠点は
6392 ,すべてのブラウザがMathMLをサポートしているわけではないという事と,FirefoxのようなGeckoベースのブラウザでも,サポートが完璧ではないという事で
6393 す.
6394 \begin_inset Newline newline
6395 \end_inset
6396
6397 例えば,数式が
6398 \begin_inset Flex Code
6399 status collapsed
6400
6401 \begin_layout Plain Layout
6402 xymatrix
6403 \end_layout
6404
6405 \end_inset
6406
6407 パッケージを使用していたり,\SpecialChar TeX
6408 コードを使用しているなどで,もし\SpecialChar LyX
6409 が数式をMathMLとして描画できないとすると,\SpecialChar LyX
6410 は数式を代わりに画像として出力します.
6411  
6412 \end_layout
6413
6414 \begin_layout Itemize
6415 HTML
6416 \begin_inset Newline newline
6417 \end_inset
6418
6419 前述のとおり,
6420 \begin_inset Flex Code
6421 status collapsed
6422
6423 \begin_layout Plain Layout
6424 elyxer
6425 \end_layout
6426
6427 \end_inset
6428
6429 は,数式をCSSで装飾したHTMLとして出力します
6430 \begin_inset Foot
6431 status collapsed
6432
6433 \begin_layout Plain Layout
6434 \SpecialChar LyX
6435 は,
6436 \begin_inset Flex Code
6437 status collapsed
6438
6439 \begin_layout Plain Layout
6440 elyxer
6441 \end_layout
6442
6443 \end_inset
6444
6445 からのHTML出力のために,CSSの一部を拝借しています.
6446 \end_layout
6447
6448 \end_inset
6449
6450 .簡単な数式では,これは非常にうまく行きますが,少し複雑な数式になると,
6451 \begin_inset Flex Code
6452 status collapsed
6453
6454 \begin_layout Plain Layout
6455 elyxer
6456 \end_layout
6457
6458 \end_inset
6459
6460 は歯が立たなくなります.それでも,この方法は非常に広くサポートされているという利点があり,かなり簡単な数式を少しだけ含んでいるような文書に適しているでしょう.
6461 \begin_inset Newline newline
6462 \end_inset
6463
6464 例えば,数式が
6465 \begin_inset Flex Code
6466 status collapsed
6467
6468 \begin_layout Plain Layout
6469 xymatrix
6470 \end_layout
6471
6472 \end_inset
6473
6474 パッケージを使用していたり,\SpecialChar TeX
6475 コードを使用しているなどで,もし\SpecialChar LyX
6476 が数式をHTMLとして描画できないとすると,\SpecialChar LyX
6477 は数式を代わりに画像として出力します.
6478  
6479 \end_layout
6480
6481 \begin_layout Itemize
6482 画像
6483 \begin_inset Newline newline
6484 \end_inset
6485
6486
6487 \begin_inset Flex Code
6488 status collapsed
6489
6490 \begin_layout Plain Layout
6491 htlatex
6492 \end_layout
6493
6494 \end_inset
6495
6496 のように,\SpecialChar LyX
6497 は数式を画像としても出力できます.この画像は,実は,自動プレビューで使用されているものと全く同じです
6498 \begin_inset Foot
6499 status collapsed
6500
6501 \begin_layout Plain Layout
6502 ただし,画像を出力に使うために,自動プレビューを入にしておく必要は
6503 \emph on
6504 ありません
6505 \emph default
6506
6507 \end_layout
6508
6509 \end_inset
6510
6511 .この方法の利点は,画像が他ならぬ\SpecialChar LaTeX
6512 によって生成されているので,非常に正確であることです.欠点は,前述したとおり,画像がビットマップなので,伸縮が全くうまく行かな
6513 かったり,コピーが出来なかったりといったことがあります.
6514 \begin_inset Newline newline
6515 \end_inset
6516
6517 画像の寸法は,
6518 \begin_inset Flex MenuItem
6519 status collapsed
6520
6521 \begin_layout Plain Layout
6522 文書\SpecialChar menuseparator
6523 設定\SpecialChar menuseparator
6524 形式
6525 \end_layout
6526
6527 \end_inset
6528
6529 の「数式画像の伸縮」パラメータを変更することで制御できます
6530 \begin_inset Foot
6531 status collapsed
6532
6533 \begin_layout Plain Layout
6534 必要な方のために述べておくと,これは,画像の解像度をdpi(1インチあたりドット数)で制御するためのもので,75dpiを基準としています.
6535 \end_layout
6536
6537 \end_inset
6538
6539
6540 \begin_inset Newline newline
6541 \end_inset
6542
6543 もし\SpecialChar LyX
6544 が,何らかの理由によって数式の画像を生成できない(例えば,必要な\SpecialChar LaTeX
6545 パッケージが導入済みでないなど)ときは,回避策として,生の\SpecialChar LaTeX
6546 を出力します.
6547 \end_layout
6548
6549 \begin_layout Itemize
6550 \SpecialChar LaTeX
6551
6552 \begin_inset Newline newline
6553 \end_inset
6554
6555 最後に,\SpecialChar LyX
6556 は,数式を\SpecialChar LaTeX
6557 としても出力することができます.この方法は,最終手段としての出力方法である一方で,HTML文書に埋め込まれた\SpecialChar LaTeX
6558 を描画するのにJavaScript
6559 を使用する,
6560 \begin_inset CommandInset href
6561 LatexCommand href
6562 name "jsMath"
6563 target "http://www.math.union.edu/~dpvc/jsMath/"
6564 literal "false"
6565
6566 \end_inset
6567
6568 のようなツールとともに使用することもできます.\SpecialChar LyX
6569 は,jsMathで必要とされているのと同じように,\SpecialChar LaTeX
6570 部分を,
6571 \begin_inset Flex Code
6572 status collapsed
6573
6574 \begin_layout Plain Layout
6575 span
6576 \end_layout
6577
6578 \end_inset
6579
6580 (行内数式用)または
6581 \begin_inset Flex Code
6582 status collapsed
6583
6584 \begin_layout Plain Layout
6585 div
6586 \end_layout
6587
6588 \end_inset
6589
6590 (別行立て数式用)に
6591 \begin_inset Flex Code
6592 status collapsed
6593
6594 \begin_layout Plain Layout
6595 class='math'
6596 \end_layout
6597
6598 \end_inset
6599
6600 を指定したもので,包んで出力します.
6601 \end_layout
6602
6603 \begin_layout Standard
6604 これらの出力方法のいずれかを
6605 \begin_inset Flex MenuItem
6606 status collapsed
6607
6608 \begin_layout Plain Layout
6609 文書\SpecialChar menuseparator
6610 設定\SpecialChar menuseparator
6611 形式
6612 \end_layout
6613
6614 \end_inset
6615
6616 で選択しなくてはなりません.既定では,\SpecialChar LyX
6617 はMathMLで出力を行います.これは,文書全体に適用される設定となります.
6618 \end_layout
6619
6620 \begin_layout Standard
6621 最後に,\SpecialChar LyX
6622 では,例えば,MathMLではあまりうまく出力されないような差込枠に対して,別の出力方法を選択できる選択肢が用意されています
6623 \begin_inset Foot
6624 status collapsed
6625
6626 \begin_layout Plain Layout
6627 その他にも,\SpecialChar LyX
6628 は,差込枠に\SpecialChar TeX
6629 コードが含まれていると画像出力に回帰するので,数式中に
6630 \begin_inset Formula $a=b\relax$
6631 \end_inset
6632
6633 のような無害な\SpecialChar TeX
6634 コードを挿入することによって,画像出力を強制することができます.
6635 \end_layout
6636
6637 \end_inset
6638
6639
6640 \end_layout
6641
6642 \begin_layout Section
6643 書誌情報と引用
6644 \end_layout
6645
6646 \begin_layout Standard
6647 XHTML出力は,書誌情報と引用を完全にサポートしています.
6648 \end_layout
6649
6650 \begin_layout Standard
6651 引用ラベルは,\SpecialChar LyX
6652 画面上のラベルを生成するのと同じ機構で生成されているので,出力中のラベルは,\SpecialChar LyX
6653 中の外見と同質またはそれよりも上質な仕上がりとなっています.連番引用を
6654 使用している場合には,\SpecialChar LyX
6655 は,画面上で表示されるような各カッコに囲まれた引用鍵を単純に表示するのではなく,[1]や[17]などの連番ラベルを出力します.著者-出版年
6656 形式の引用を使用している場合で,同じ著者-出版年の組み合わせが複数ある場合,\SpecialChar LyX
6657 は,Bib\SpecialChar TeX
6658 が行うように出版年に小文字を付します.ラベルは,書誌情報項目とともに印字さ
6659 れます.現在のところ,角括弧を丸括弧に変更するなど,ラベルの外見を変更する手段はありませんのでご注意ください.
6660 \end_layout
6661
6662 \begin_layout Standard
6663 書誌情報出力は,引用ダイアログで文献情報表示を取り扱うのと同じ機構で取り扱われているので,XHTML出力は,引用ダイアログで特定の文献項目を表示させた時のものに
6664 非常によく似ています.整形の仕方は,レイアウトファイルや望ましくはモジュールでカスタマイズすることができます.詳細については,取扱説明書『カスタマイズ篇』をご覧
6665 ください.
6666 \end_layout
6667
6668 \begin_layout Standard
6669 現在のところ,主だった瑕疵は,相互参照された情報が,関連した項目の全てに印字されてしまうことです.つまり,以下のような表示が為されます.
6670 \end_layout
6671
6672 \begin_layout Quote
6673 Jason Stanley, 
6674 \begin_inset Quotes eld
6675 \end_inset
6676
6677 Context and Logical Form
6678 \begin_inset Quotes erd
6679 \end_inset
6680
6681 , in 
6682 \emph on
6683 Language in Context: Selected Essays
6684 \emph default
6685  (Oxford: Oxford University Press, 2007), pp.
6686  30–68.
6687 \end_layout
6688
6689 \begin_layout Quote
6690 Jason Stanley, 
6691 \begin_inset Quotes eld
6692 \end_inset
6693
6694 Semantics in Context
6695 \begin_inset Quotes erd
6696 \end_inset
6697
6698 , in 
6699 \emph on
6700 Language in Context: Selected Essays
6701 \emph default
6702  (Oxford: Oxford University Press, 2007), pp.
6703  201–30.
6704 \end_layout
6705
6706 \begin_layout Standard
6707 これは,遠くないうちに修正されるでしょう.
6708 \end_layout
6709
6710 \begin_layout Standard
6711 現在のところ,節ごとの書誌情報出力はサポートされていません.複数の書誌情報がある場合には,\SpecialChar LyX
6712 は同じ情報を繰り返し出力してしまいます.
6713 \end_layout
6714
6715 \begin_layout Section
6716 索引
6717 \end_layout
6718
6719 \begin_layout Standard
6720 \SpecialChar LyX
6721 は,索引をXHTMLとして書きだすことができますが,現在のところ,若干の制約があります.
6722 \end_layout
6723
6724 \begin_layout Standard
6725 索引の書き出しは,
6726 \emph on
6727 ユーザーの手引き
6728 \emph default
6729 の索引の節に書かれているような手の込んだ方法を使おうとしないほうが,信頼性が保てます
6730 \begin_inset Foot
6731 status collapsed
6732
6733 \begin_layout Plain Layout
6734 ここでの主な問題は,これらの操作の際に,\SpecialChar LyX
6735 自身は何もしていないという点です.つまり,生の\SpecialChar LaTeX
6736 で入力しなくてはならないようなものをそのまま入力しているのです.
6737 \end_layout
6738
6739 \end_inset
6740
6741 .当該節の小節見出しに沿って,それらがどう処理されるかを説明しましょう.
6742 \end_layout
6743
6744 \begin_layout Itemize
6745 索引項目のグループ化(下層項目): \SpecialChar LyX
6746 はこれらをサポートしようと努めていますが,項目は「 ! 」(感嘆符の周りに空白)で分離しなくてはなりません.これは,そうしな
6747 いと数式などで使われているエスケープされた感嘆符をチェックするのが非常に難しくなるからです.
6748 \end_layout
6749
6750 \begin_layout Itemize
6751 ページ範囲: ページ範囲については,XHTMLでは意味がないので,全くサポートされません.その代わりに,引用項目のはじめと終わりの頁それぞれに,2つの索引項目が
6752 得られるだけです.
6753 \end_layout
6754
6755 \begin_layout Itemize
6756 相互参照: 相互参照のサポートはありません.\SpecialChar LyX
6757 が「|see\SpecialChar ldots
6758 」という下だりを持つ項目を検出すると,その部分はただ無視されて,残りの部分が通常の索引項目だとみなされま
6759 す.
6760 \end_layout
6761
6762 \begin_layout Itemize
6763 索引項目の整序: \SpecialChar LyX
6764 は整序順の変更をサポートします.\SpecialChar LyX
6765 は,最初に検出した「@」の前の部分を取り出して,それを整序に用い,最初の「@」の後の部分を実際の項目として取り
6766 出します.現在のところ,\SpecialChar LyX
6767 はエスケープされた「@」を取り扱わないので,電子メールアドレスを索引に使わないでください.
6768 \end_layout
6769
6770 \begin_layout Itemize
6771 索引項目のレイアウト: 項目は,テキスト様式ダイアログを使うなり,\SpecialChar LyX
6772 内で使用可能な方法を用いることで,索引項目を成形することができます.「項目|textbf」のよ
6773 うな文法はサポートされません.\SpecialChar LyX
6774 は,項目内にパイプ記号「|」を検出すると,パイプ記号とその後に続くものすべてを削除してしまいます.
6775 \end_layout
6776
6777 \begin_layout Itemize
6778 複数の索引: 複数の索引はサポートされていません.すべての項目は,ひとつの大きな索引として印字されます.索引が何度も印字されることを防ぐため,中心となる索引だけ
6779 を印字しますので,その索引は必ず置くようにしてください.
6780 \end_layout
6781
6782 \begin_layout Section
6783 記号一覧および用語集
6784 \end_layout
6785
6786 \begin_layout Standard
6787 現在のところ,用語集のサポートはありません.この機能の追加は,比較的容易だと思われますので,あなたの貢献をお待ちしております.
6788 \end_layout
6789
6790 \begin_layout Chapter
6791 \SpecialChar LyX
6792 サーバー
6793 \begin_inset CommandInset label
6794 LatexCommand label
6795 name "chap:LyXサーバー"
6796
6797 \end_inset
6798
6799
6800 \end_layout
6801
6802 \begin_layout Section
6803 はじめに
6804 \end_layout
6805
6806 \begin_layout Standard
6807 「\SpecialChar LyX
6808 サーバー」を使用すると,他のプログラムが,\SpecialChar LyX
6809 と通信したり,\SpecialChar LyX
6810 コマンドを実行させたり,\SpecialChar LyX
6811 の内部状態に関する情報を取得したりすることができるようになります.これは熟練し
6812 たユーザー向けの機能ですが,便利なはずです.たとえば,\SpecialChar LyX
6813 サーバーに書き込むことによって,JabRefのような書誌情報管理ソフトが,LyXに文献引用を「押し込む」こ
6814 とが可能となります.
6815 \end_layout
6816
6817 \begin_layout Section
6818 \SpecialChar LyX
6819 サーバーを開始するには
6820 \begin_inset CommandInset label
6821 LatexCommand label
6822 name "sec:サーバーを開始するには"
6823
6824 \end_inset
6825
6826
6827 \end_layout
6828
6829 \begin_layout Standard
6830 \SpecialChar LyX
6831 サーバーは,名前をつけたパイプの対を利用することで機能します.パイプは,通常
6832 \begin_inset Flex Code
6833 status collapsed
6834
6835 \begin_layout Plain Layout
6836 UserDir
6837 \end_layout
6838
6839 \end_inset
6840
6841 の下に作られ(Windowsを除く.Windowsでは,名前を付けた
6842 \emph on
6843 ローカルの
6844 \emph default
6845 パイプは
6846 \begin_inset Flex Code
6847 status collapsed
6848
6849 \begin_layout Plain Layout
6850
6851 \backslash
6852
6853 \backslash
6854 .
6855 \backslash
6856 pipe
6857 \end_layout
6858
6859 \end_inset
6860
6861 に特別なオブジェクトとして置かれます),「
6862 \begin_inset Flex Code
6863 status collapsed
6864
6865 \begin_layout Plain Layout
6866 .lyxpipe.in
6867 \end_layout
6868
6869 \end_inset
6870
6871 」および「
6872 \begin_inset Flex Code
6873 status collapsed
6874
6875 \begin_layout Plain Layout
6876 .lyxpipe.out
6877 \end_layout
6878
6879 \end_inset
6880
6881 」という名前がついています.外部プログラムは,
6882 \begin_inset Flex Code
6883 status collapsed
6884
6885 \begin_layout Plain Layout
6886 .lyxpipe.in
6887 \end_layout
6888
6889 \end_inset
6890
6891 に書き込みを行い,戻りデータを
6892 \begin_inset Flex Code
6893 status collapsed
6894
6895 \begin_layout Plain Layout
6896 .lyxpipe.out
6897 \end_layout
6898
6899 \end_inset
6900
6901 から読み出します.パイプ名の語幹は,
6902 \begin_inset Flex MenuItem
6903 status collapsed
6904
6905 \begin_layout Plain Layout
6906 ツール\SpecialChar menuseparator
6907 設定
6908 \end_layout
6909
6910 \end_inset
6911
6912 から,たとえば「
6913 \begin_inset Flex Code
6914 status collapsed
6915
6916 \begin_layout Plain Layout
6917 /home/myhome/lyxpipe
6918 \end_layout
6919
6920 \end_inset
6921
6922 」あるいはWindowsでは「
6923 \begin_inset Flex Code
6924 status collapsed
6925
6926 \begin_layout Plain Layout
6927
6928 \backslash
6929
6930 \backslash
6931 .
6932 \backslash
6933 pipe
6934 \backslash
6935 lyxpipe
6936 \end_layout
6937
6938 \end_inset
6939
6940 」などに設定することができます(ここで,lyxpipe以外の任意のファイルパス,例えば
6941 \begin_inset Flex Code
6942 status collapsed
6943
6944 \begin_layout Plain Layout
6945 "
6946 \backslash
6947
6948 \backslash
6949 .
6950 \backslash
6951 pipe
6952 \backslash
6953 my
6954 \backslash
6955 lyx
6956 \backslash
6957 pipe"
6958 \end_layout
6959
6960 \end_inset
6961
6962 なども使用できます).サーバーを開始するためには,これを
6963 \emph on
6964 手動で設定しなくてはなりません
6965 \emph default
6966
6967 \end_layout
6968
6969 \begin_layout Standard
6970 \SpecialChar LyX
6971 は,パイプを生成するに際して,「
6972 \begin_inset Flex Code
6973 status collapsed
6974
6975 \begin_layout Plain Layout
6976 .in
6977 \end_layout
6978
6979 \end_inset
6980
6981 」および「
6982 \begin_inset Flex Code
6983 status collapsed
6984
6985 \begin_layout Plain Layout
6986 .out
6987 \end_layout
6988
6989 \end_inset
6990
6991 」を付け加えます.パイプがすでに存在していれば,\SpecialChar LyX
6992 は他の\SpecialChar LyX
6993 プロセスがすでに実行中であると判断して,サーバーを開始しません.POSIX(Unix型)システムでは,なん
6994 らかの理由で,\SpecialChar LyX
6995 が終了する際に使用されていない「古い」パイプが削除されずに残ったりすると,\SpecialChar LyX
6996 はこれを削除しようとします.何らかの理由でこれが失敗した場合,手動でパイ
6997 プを削除したのちに,\SpecialChar LyX
6998 を再起動する必要があります.Windowsでは,プログラムが終了したりクラッシュしたりすると,OSがパイプを削除するので,「古い」パイプが残
6999 ることはありません.
7000 \end_layout
7001
7002 \begin_layout Standard
7003 サーバーを使用する\SpecialChar LyX
7004 プロセスを複数起動するには,それぞれのプロセスに,別のユーザーディレクトリを使用させたり,別々の
7005 \begin_inset Flex Code
7006 status collapsed
7007
7008 \begin_layout Plain Layout
7009 preferences
7010 \end_layout
7011
7012 \end_inset
7013
7014 ファイルを使用させるなど,別々の設定を使用する必要があります.
7015 \end_layout
7016
7017 \begin_layout Standard
7018 クライアントプログラムを開発しようとされているのであれば,\SpecialChar LyX
7019 サーバーからのデバッグ情報を有効にすると便利かもしれません.そのためには,Lyxを
7020 \begin_inset Flex Code
7021 status collapsed
7022
7023 \begin_layout Plain Layout
7024 lyx -dbg lyxserver
7025 \end_layout
7026
7027 \end_inset
7028
7029 として起動してください.
7030 \end_layout
7031
7032 \begin_layout Standard
7033 C++言語で書かれた完全なサンプルクライアントが,ソース頒布版の
7034 \begin_inset Newline newline
7035 \end_inset
7036
7037
7038 \begin_inset Flex Code
7039 status collapsed
7040
7041 \begin_layout Plain Layout
7042 development/lyxserver/server_monitor.cpp
7043 \end_layout
7044
7045 \end_inset
7046
7047 にあります.
7048 \end_layout
7049
7050 \begin_layout Standard
7051 もう一つの便利なツールとして,
7052 \begin_inset Flex Code
7053 status collapsed
7054
7055 \begin_layout Plain Layout
7056 src/client/lyxclient
7057 \end_layout
7058
7059 \end_inset
7060
7061 にあるコマンドラインベースのクライアントがあります.
7062 \end_layout
7063
7064 \begin_layout Section
7065 通常の通信
7066 \end_layout
7067
7068 \begin_layout Standard
7069 \SpecialChar LyX
7070 コールを発行するには,クライアントはASCIIテキスト行を入力パイプに書き込みまなくてはなりません.この行は,以下の書式を持ちます.
7071 \end_layout
7072
7073 \begin_layout Quote
7074 LYXCMD:
7075 \emph on
7076 クライアント名
7077 \emph default
7078 :
7079 \emph on
7080 関数
7081 \emph default
7082 :
7083 \emph on
7084 引数
7085 \end_layout
7086
7087 \begin_layout Description
7088 クライアント名 は,クライアントが自由に選べる名前です.これが用いられるのは,クライアントが他の要求クライアントから結果を見分けることができるように,\SpecialChar LyX
7089 が返答をす
7090 る際,クライアント名をエコーするときだけです.
7091 \end_layout
7092
7093 \begin_layout Description
7094 関数 は,\SpecialChar LyX
7095 に実行させたい関数です.これは,ミニバッファで使用するコマンドと同じです.
7096 \end_layout
7097
7098 \begin_layout Description
7099 引数 は,一部の関数のみに効力を持つオプションの引数です(たとえば,「自己挿入」LFUNは,現在のカーソル位置に引数を文章として挿入します).
7100 \end_layout
7101
7102 \begin_layout Standard
7103 \SpecialChar LyX
7104 からの返答は,出力パイプに送り出され,
7105 \end_layout
7106
7107 \begin_layout Quote
7108 INFO:
7109 \emph on
7110 クライアント名
7111 \emph default
7112 :
7113 \emph on
7114 関数
7115 \emph default
7116 :
7117 \emph on
7118 データ
7119 \end_layout
7120
7121 \begin_layout Standard
7122 の書式をしています.ここで
7123 \emph on
7124 クライアント名
7125 \emph default
7126
7127 \emph on
7128 関数
7129 \emph default
7130 は,コマンド要求からそのままエコーされますが,
7131 \emph on
7132 データ
7133 \emph default
7134 はコマンド実行の結果に依存した,多少なりとも有用な情報です.「font-state」のような一部のコマンドは,\SpecialChar LyX
7135 の内部状態に関する情報を返しますが,空のデータ応答
7136 を返すものもあります.空のデータ返答は,コマンド実行が無事終わったことを意味します.
7137 \end_layout
7138
7139 \begin_layout Standard
7140 エラーが発生した場合の\SpecialChar LyX
7141 の返答は
7142 \end_layout
7143
7144 \begin_layout Quote
7145 ERROR:
7146 \emph on
7147 クライアント名
7148 \emph default
7149 :
7150 \emph on
7151 関数
7152 \emph default
7153 :
7154 \emph on
7155 エラーメッセージ
7156 \end_layout
7157
7158 \begin_layout Standard
7159 の書式をしており,
7160 \emph on
7161 エラーメッセージ
7162 \emph default
7163 には,なぜコマンドが失敗したかの説明が入っているはずです.
7164 \end_layout
7165
7166 \begin_layout Standard
7167 (例)
7168 \end_layout
7169
7170 \begin_layout LyX-Code
7171 echo "LYXCMD:test:beginning-of-buffer:" >~/.lyxpipe.in
7172 \begin_inset Newline newline
7173 \end_inset
7174
7175 echo "LYXCMD:test:get-xy:" >~/.lyxpipe.in
7176 \begin_inset Newline newline
7177 \end_inset
7178
7179 read a <~/.lyxpipe.out
7180 \begin_inset Newline newline
7181 \end_inset
7182
7183 echo $a
7184 \end_layout
7185
7186 \begin_layout Section
7187 通知
7188 \end_layout
7189
7190 \begin_layout Standard
7191 \SpecialChar LyX
7192 は,発生しているイベントを,非同期的にクライアントに通知することができます.いまのところ,ユーザーがある
7193 \begin_inset Flex Ruby
7194 status collapsed
7195
7196 \begin_layout Plain Layout
7197
7198 \begin_inset Argument post:1
7199 status collapsed
7200
7201 \begin_layout Plain Layout
7202 キー
7203 \end_layout
7204
7205 \end_inset
7206
7207
7208 \end_layout
7209
7210 \end_inset
7211
7212 列を関数「notify」に割り当てているときのみ,\SpecialChar LyX
7213 はこの通知を行います.\SpecialChar LyX
7214 が送る文字列の書式は
7215 \end_layout
7216
7217 \begin_layout Quote
7218 \begin_inset Flex Code
7219 status collapsed
7220
7221 \begin_layout Plain Layout
7222 NOTIFY:
7223 \end_layout
7224
7225 \end_inset
7226
7227
7228 \emph on
7229 鍵列
7230 \end_layout
7231
7232 \begin_layout Standard
7233 となっていて,
7234 \emph on
7235 鍵列
7236 \emph default
7237 は,ユーザーが実際に打鍵した鍵列の印字表現になります.
7238 \end_layout
7239
7240 \begin_layout Standard
7241 この機構は,\SpecialChar LyX
7242 のコマンド群を拡張してマクロを実装するのに使用することができます.なんらかの鍵列を「notify」に割り当ててください.それから出力パイプで待機する
7243 クライアントを起動し,鍵列に応じたコマンドを読み込み,一つないし複数の\SpecialChar LyX
7244 コマンドを発行する\SpecialChar LyX
7245 要求と\SpecialChar LyX
7246 コールを使用する関数を開始するのです.
7247 \end_layout
7248
7249 \begin_layout Section
7250 単純な\SpecialChar LyX
7251 サーバープロトコル
7252 \end_layout
7253
7254 \begin_layout Standard
7255 \SpecialChar LyX
7256 は,セッション管理に使用することができる単純なプロトコルを実装しています.メッセージは,すべて
7257 \end_layout
7258
7259 \begin_layout Quote
7260 LYXSRV:
7261 \emph on
7262 クライアント名
7263 \emph default
7264 :
7265 \emph on
7266 プロトコルメッセージ
7267 \end_layout
7268
7269 \begin_layout Standard
7270 の書式をしており,
7271 \emph on
7272 プロトコルメッセージ
7273 \emph default
7274 は「hello」ないし「bye」です.クライアントから「hello」を受け取ると,\SpecialChar LyX
7275 はメッセージを聴いていることをクライアントに伝えるために返答をし,\SpecialChar LyX
7276 が終了するこ
7277 とをクライアントに伝えるのには,\SpecialChar LyX
7278 が「bye」を送信します.
7279 \end_layout
7280
7281 \begin_layout Section
7282 DVIとPDFの遡及検索
7283 \end_layout
7284
7285 \begin_layout Standard
7286 DVI/PDFビューア
7287 \begin_inset Foot
7288 status collapsed
7289
7290 \begin_layout Plain Layout
7291 PDFの遡及検索機能を提供しているビューアには,KDE/Linux上のOkularと
7292 \lang english
7293 Qpdfview on Unix
7294 \lang japanese
7295 とMac OS X上のSkim,Windows上のSumatraPDFがあります.
7296 \end_layout
7297
7298 \end_inset
7299
7300 には,遡及検索(reverse searchないしinverse searchと呼ばれます)機能を提供しているものがあります.これを使えば,DVI/PDF出力の
7301 特定の場所をクリックすることによって,\SpecialChar LyX
7302 の文書中で対応する行にカーソルを移動させることができます.これを実現するためには,ビューアは\SpecialChar LyX
7303 と情報交換を行う必要があります
7304 .これは,命名パイプ(
7305 \emph on
7306 lyxpipe
7307 \emph default
7308 )を使用するか,\SpecialChar LyX
7309 が作業ディレクトリに生成するUNIXドメインソケット(
7310 \emph on
7311 lyxsocket
7312 \emph default
7313 )を使用する(これは
7314 \begin_inset Flex Code
7315 status collapsed
7316
7317 \begin_layout Plain Layout
7318 lyxclient
7319 \end_layout
7320
7321 \end_inset
7322
7323 プログラムが\SpecialChar LyX
7324 と通信するのに使用している方法です)ことで,\SpecialChar LyX
7325 サーバを経由して実現することができます.場合によっては,ビューアと\SpecialChar LyX
7326 を橋渡しする補助スクリプトを必要とする
7327 ことがあるかもしれませんが,それ以外は,ビューアは\SpecialChar LyX
7328 と直接通信することができます.これは,選んだビューアと基本ソフトに依存します.また,必要とされるビューアの設定
7329 法と遡及検索が実際に行われる方法とにも依存します.したがって,下記では個々のビューア毎の遡及検索の設定の仕方を説明することとします.その前に,DVI/PDF出力
7330 で遡及検索を有効にするためには,一般に何が必要とされるかを説明します.
7331 \end_layout
7332
7333 \begin_layout Subsection
7334 \begin_inset CommandInset label
7335 LatexCommand label
7336 name "subsec:遡及検索"
7337
7338 \end_inset
7339
7340 自動有効化
7341 \end_layout
7342
7343 \begin_layout Standard
7344 ツールバーで
7345 \begin_inset Info
7346 type  "icon"
7347 arg   "buffer-toggle-output-sync"
7348 \end_inset
7349
7350 ボタンを押せば,ほとんどの場合,\SpecialChar LyX
7351 がすべてをうまくこなしてくれます.あるいは,
7352 \begin_inset Flex MenuItem
7353 status collapsed
7354
7355 \begin_layout Plain Layout
7356 文書\SpecialChar menuseparator
7357 設定\SpecialChar menuseparator
7358 形式
7359 \end_layout
7360
7361 \end_inset
7362
7363 メニューで
7364 \begin_inset Flex MenuItem
7365 status collapsed
7366
7367 \begin_layout Plain Layout
7368 出力と同期
7369 \end_layout
7370
7371 \end_inset
7372
7373 にチェックを入れることで有効にすることもできます.その場合,\SpecialChar LyX
7374 は,自動的に,必要なSync\SpecialChar TeX
7375 マクロ(PDFの場合)や,srcltxパッケージ(DVIの場合)を挿入し
7376 てくれます.このオプションは,
7377 \begin_inset Flex MenuItem
7378 status collapsed
7379
7380 \begin_layout Plain Layout
7381 表示/更新
7382 \end_layout
7383
7384 \end_inset
7385
7386 ツールバーからも容易にアクセスすることができます.
7387 \end_layout
7388
7389 \begin_layout Standard
7390 もし,これとは別の設定が必要な場合には,
7391 \begin_inset Flex MenuItem
7392 status collapsed
7393
7394 \begin_layout Plain Layout
7395 文書\SpecialChar menuseparator
7396 設定\SpecialChar menuseparator
7397 出力\SpecialChar menuseparator
7398 出力と同期
7399 \end_layout
7400
7401 \end_inset
7402
7403 の直下にあるドロップダウンボックスから,自製マクロを選択ないし入力することができます.
7404 \end_layout
7405
7406 \begin_layout Standard
7407 方式として
7408 \begin_inset Flex Code
7409 status collapsed
7410
7411 \begin_layout Plain Layout
7412
7413 \backslash
7414 synctex=1
7415 \end_layout
7416
7417 \end_inset
7418
7419 を用いると,gzip圧縮が有効となることに注意してください.使用しているビューアがgzip圧縮をサポートしていない場合には,代わりに
7420 \begin_inset Flex Code
7421 status collapsed
7422
7423 \begin_layout Plain Layout
7424
7425 \backslash
7426 synctex=-1
7427 \end_layout
7428
7429 \end_inset
7430
7431 を指定してください.
7432 \end_layout
7433
7434 \begin_layout Standard
7435 また,
7436 \begin_inset Flex Code
7437 status collapsed
7438
7439 \begin_layout Plain Layout
7440 srcltx
7441 \end_layout
7442
7443 \end_inset
7444
7445 パッケージや
7446 \begin_inset Flex Code
7447 status collapsed
7448
7449 \begin_layout Plain Layout
7450 src-specials
7451 \end_layout
7452
7453 \end_inset
7454
7455 を取り込むと,組版上,不具合が生じることがあるのでご注意ください.したがって,
7456 \begin_inset Flex Code
7457 status collapsed
7458
7459 \begin_layout Plain Layout
7460 srcltx
7461 \end_layout
7462
7463 \end_inset
7464
7465 パッケージや
7466 \begin_inset Flex Code
7467 status collapsed
7468
7469 \begin_layout Plain Layout
7470 src-specials
7471 \end_layout
7472
7473 \end_inset
7474
7475 を使用している場合には,最終版を組版する際には,出力同期を無効にするべきです.
7476 \end_layout
7477
7478 \begin_layout Standard
7479 自動設定でカバーされている範囲よりも,さらに特殊なものが必要な場合には,出力同期を手動で設定する仕方を述べた次節をお読みください.自動設定で事足りる場合には,自
7480 動設定・手動設定ともに必要となるビューア上の設定を述べた,第
7481 \begin_inset CommandInset ref
7482 LatexCommand ref
7483 reference "subsec:特定のビューアを設定して使うには"
7484
7485 \end_inset
7486
7487 節に進むことができます.
7488 \end_layout
7489
7490 \begin_layout Subsection
7491 手動有効化
7492 \end_layout
7493
7494 \begin_layout Standard
7495 \SpecialChar LaTeX
7496 は,遡及検索のために複数の方法を提供しています.ある方法は
7497 \begin_inset Flex Code
7498 status collapsed
7499
7500 \begin_layout Plain Layout
7501 latex/pdflatex
7502 \end_layout
7503
7504 \end_inset
7505
7506 プログラムに組み込まれており,他の方法は外部パッケージとして提供されています.どちらを選択するかは,お使いの\SpecialChar LaTeX
7507 頒布版が既に特定の方法を提供しているか(組み込みによ
7508 る方法は比較的新しいものです)と,お使いのビューアがそれに対応しているかに依存します.使用可能な方法を以下に述べます.
7509 \end_layout
7510
7511 \begin_layout Subsubsection*
7512 src-special経由のDVI組み込み検索(DVIのみ)
7513 \end_layout
7514
7515 \begin_layout Standard
7516 この方法は,DVIファイルに遡及検索に必要な情報を追加するものです.これは,かなり前の\SpecialChar LaTeX
7517 から利用可能となっており(比較的最近の\SpecialChar LaTeX
7518 頒布版はすべて対応しています),安定
7519 して動作します.これを有効にするには,
7520 \begin_inset Flex MenuItem
7521 status collapsed
7522
7523 \begin_layout Plain Layout
7524 設定\SpecialChar menuseparator
7525 ファイル処理\SpecialChar menuseparator
7526 変換子
7527 \end_layout
7528
7529 \end_inset
7530
7531
7532 \begin_inset Flex MenuItem
7533 status collapsed
7534
7535 \begin_layout Plain Layout
7536 LaTeX (plain)->DVI
7537 \end_layout
7538
7539 \end_inset
7540
7541 ないし
7542 \begin_inset Flex MenuItem
7543 status collapsed
7544
7545 \begin_layout Plain Layout
7546 LaTeX (plain)->DraftDVI
7547 \end_layout
7548
7549 \end_inset
7550
7551 変換子を
7552 \begin_inset Flex Code
7553 status collapsed
7554
7555 \begin_layout Plain Layout
7556 latex -src-specials $$i
7557 \end_layout
7558
7559 \end_inset
7560
7561 に変更します.もしこれが動作しないときは,お使いの\SpecialChar LaTeX
7562 エンジンが違うオプションを必要としていないか確認してください(頒布版によっては文法の異なることがあります).
7563 \end_layout
7564
7565 \begin_layout Subsubsection*
7566 外部パッケージ(PDFSyncおよびsrcltx)
7567 \end_layout
7568
7569 \begin_layout Standard
7570
7571 \emph on
7572 pdfsync
7573 \emph default
7574 および
7575 \emph on
7576 srcltx
7577 \emph default
7578 パッケージは,PDF出力(pdflatex経由)およびDVI出力での遡及検索を提供します.これを有効にするには,\SpecialChar LyX
7579 プリアンブルで以下のようにパッケージを読み込んで
7580 ください.
7581 \end_layout
7582
7583 \begin_layout Itemize
7584 PDFの遡及検索には
7585 \begin_inset Flex Code
7586 status collapsed
7587
7588 \begin_layout Plain Layout
7589
7590 \backslash
7591 usepackage{pdfsync}
7592 \end_layout
7593
7594 \end_inset
7595
7596
7597 \end_layout
7598
7599 \begin_layout Itemize
7600 DVIの遡及検索には
7601 \begin_inset Flex Code
7602 status collapsed
7603
7604 \begin_layout Plain Layout
7605
7606 \backslash
7607 usepackage[active]{srcltx}
7608 \end_layout
7609
7610 \end_inset
7611
7612
7613 \end_layout
7614
7615 \begin_layout Standard
7616 と書きます.DVIとPDFの両方の遡及検索を実行できるようにするためには,プリアンブルに以下の行を挿入する方法があります.
7617 \end_layout
7618
7619 \begin_layout LyX-Code
7620
7621 \backslash
7622 usepackage{ifpdf}
7623 \begin_inset Newline newline
7624 \end_inset
7625
7626
7627 \backslash
7628 ifpdf
7629 \begin_inset Newline newline
7630 \end_inset
7631
7632   
7633 \backslash
7634 usepackage{pdfsync}
7635 \begin_inset Newline newline
7636 \end_inset
7637
7638
7639 \backslash
7640 else
7641 \begin_inset Newline newline
7642 \end_inset
7643
7644   
7645 \backslash
7646 usepackage[active]{srcltx}
7647 \begin_inset Newline newline
7648 \end_inset
7649
7650
7651 \backslash
7652 fi
7653 \end_layout
7654
7655 \begin_layout Standard
7656 このようにすれば,DVIでもPDF(pdflatex)でも正しいパッケージを使いながら,ファイルを閲覧することができます.
7657 \end_layout
7658
7659 \begin_layout Standard
7660 なお,PDFSyncは,文書の出力レイアウトに干渉する可能性があるので注意してください.したがって,仕上がり文書ではPDFSyncを無効にすることをお勧めします
7661
7662 \end_layout
7663
7664 \begin_layout Subsubsection*
7665 Sync\SpecialChar TeX
7666 を使った組み込み遡及検索(DVIおよびPDF)
7667 \end_layout
7668
7669 \begin_layout Standard
7670 \begin_inset Flex Code
7671 status collapsed
7672
7673 \begin_layout Plain Layout
7674 (pdf)latex
7675 \end_layout
7676
7677 \end_inset
7678
7679 の最近のバージョンは,PDFおよびDVI両方の遡及検索を組み込みでサポートしています.このいわゆる
7680 \emph on
7681 Sync\SpecialChar TeX
7682
7683 \emph default
7684 機能は,主に,PDFSyncパッケージをpdftexプログラムへ統合したことと,それをsrc-specialsアプローチへ取り込んだことの成果です.これを使用す
7685 るためには,少なくとも\SpecialChar TeX
7686 Live 2008か最近のMik\SpecialChar TeX
7687 頒布版が必要です.また,既にSync\SpecialChar TeX
7688 サポートを提供しているPDFビューアは少ししかありません(UNIX上の
7689 OkularとQpdfview,Mac上のSkim,及びWindows上のSumatraPDFなど.詳細は次節を参照のこと).
7690 \end_layout
7691
7692 \begin_layout Standard
7693 DVI出力でSync\SpecialChar TeX
7694 を有効にするには,
7695 \begin_inset Flex MenuItem
7696 status collapsed
7697
7698 \begin_layout Plain Layout
7699 設定\SpecialChar menuseparator
7700 ファイル処理\SpecialChar menuseparator
7701 変換子
7702 \end_layout
7703
7704 \end_inset
7705
7706
7707 \begin_inset Flex Noun
7708 status collapsed
7709
7710 \begin_layout Plain Layout
7711 LaTeX (plain) -> DVI
7712 \end_layout
7713
7714 \end_inset
7715
7716 ないし
7717 \begin_inset Flex Noun
7718 status collapsed
7719
7720 \begin_layout Plain Layout
7721 LaTeX (plain) -> DraftDVI
7722 \end_layout
7723
7724 \end_inset
7725
7726 変換子を
7727 \begin_inset Flex Code
7728 status collapsed
7729
7730 \begin_layout Plain Layout
7731 latex -synctex=1 $$i
7732 \end_layout
7733
7734 \end_inset
7735
7736 に変更します.PDF出力用には,
7737 \begin_inset Flex Noun
7738 status collapsed
7739
7740 \begin_layout Plain Layout
7741 LaTeX (pdflatex) -> PDF (pdflatex)
7742 \end_layout
7743
7744 \end_inset
7745
7746 変換子を
7747 \begin_inset Flex Code
7748 status collapsed
7749
7750 \begin_layout Plain Layout
7751 pdflatex -synctex=1 $$i
7752 \end_layout
7753
7754 \end_inset
7755
7756 に変更してください.お使いのビューアが下記に記述されていない場合や,万一うまくいかない場合にはまた,ビューアをSync\SpecialChar TeX
7757 で使うのに設定を行う必要があるかどうか,お
7758 使いのビューアの取扱説明書をご確認ください.
7759 \begin_inset Foot
7760 status collapsed
7761
7762 \begin_layout Plain Layout
7763 \begin_inset Flex Code
7764 status collapsed
7765
7766 \begin_layout Plain Layout
7767 -synctex=1
7768 \end_layout
7769
7770 \end_inset
7771
7772 オプションは,gzip圧縮を有効にします.お使いのビューアがgzip圧縮をサポートしていない場合には,代わりに
7773 \begin_inset Flex Code
7774 status collapsed
7775
7776 \begin_layout Plain Layout
7777 -synctex=-1
7778 \end_layout
7779
7780 \end_inset
7781
7782 を使用してください.
7783 \end_layout
7784
7785 \end_inset
7786
7787
7788 \end_layout
7789
7790 \begin_layout Subsection
7791 特定のビューアを設定して使うには
7792 \begin_inset CommandInset label
7793 LatexCommand label
7794 name "subsec:特定のビューアを設定して使うには"
7795
7796 \end_inset
7797
7798
7799 \end_layout
7800
7801 \begin_layout Subsubsection*
7802 Xdvi(全プラットフォーム)
7803 \end_layout
7804
7805 \begin_layout Standard
7806 \SpecialChar LyX
7807 は,
7808 \begin_inset Flex Code
7809 status collapsed
7810
7811 \begin_layout Plain Layout
7812 lyxclient
7813 \end_layout
7814
7815 \end_inset
7816
7817 プログラムを自動的に使うのに必要なフックを,既に提供しているので,
7818 \begin_inset Flex Code
7819 status collapsed
7820
7821 \begin_layout Plain Layout
7822 xdvi
7823 \end_layout
7824
7825 \end_inset
7826
7827 を使用する場合には,DVI遡及検索を実行するのに他にするべきことはありません.使用中の文書を上記で述べたように設定するだけです(遡及検索は,Ctrl-クリックか
7828 ,Mac OS X上ではAlt-クリックで始動します).
7829 \end_layout
7830
7831 \begin_layout Standard
7832 しかし,何らかの理由で,\SpecialChar LyX
7833 と通信するのにソケットではなく命名パイプを使用したい場合には,
7834 \begin_inset Flex MenuItem
7835 status collapsed
7836
7837 \begin_layout Plain Layout
7838 設定\SpecialChar menuseparator
7839 ファイル処理\SpecialChar menuseparator
7840 ファイル書式
7841 \end_layout
7842
7843 \end_inset
7844
7845 のDVIビューアを
7846 \begin_inset Flex Code
7847 status collapsed
7848
7849 \begin_layout Plain Layout
7850 xdvi -editor "lyxeditor.sh %f %l"
7851 \end_layout
7852
7853 \end_inset
7854
7855
7856 \begin_inset Flex Code
7857 status collapsed
7858
7859 \begin_layout Plain Layout
7860 lyxeditor.sh
7861 \end_layout
7862
7863 \end_inset
7864
7865 は適切なスクリプト名)に変更してください
7866 \begin_inset Foot
7867 status collapsed
7868
7869 \begin_layout Plain Layout
7870 Mac OS X上では,
7871 \begin_inset Flex Code
7872 status collapsed
7873
7874 \begin_layout Plain Layout
7875 DISPLAY=:0.0 xdvi -editor "lyxeditor.sh %f %l"
7876 \end_layout
7877
7878 \end_inset
7879
7880 としなくてはなりません.
7881 \end_layout
7882
7883 \end_inset
7884
7885 .たとえば,最低限のシェルスクリプトは
7886 \end_layout
7887
7888 \begin_layout LyX-Code
7889 #!/bin/sh
7890 \begin_inset Newline newline
7891 \end_inset
7892
7893 LYXPIPE="/path/to/lyxpipe"
7894 \begin_inset Newline newline
7895 \end_inset
7896
7897 COMMAND="LYXCMD:revdvi:server-goto-file-row:$1 $2"
7898 \begin_inset Newline newline
7899 \end_inset
7900
7901 echo "$COMMAND" > "${LYXPIPE}".in || exit
7902 \begin_inset Newline newline
7903 \end_inset
7904
7905 read TMP < "${LYXPIPE}".out || exit
7906 \end_layout
7907
7908 \begin_layout Standard
7909 のようになります.ここで
7910 \begin_inset Flex Code
7911 status collapsed
7912
7913 \begin_layout Plain Layout
7914 /path/to/lyxpipe
7915 \end_layout
7916
7917 \end_inset
7918
7919 は,
7920 \begin_inset Flex MenuItem
7921 status collapsed
7922
7923 \begin_layout Plain Layout
7924 設定\SpecialChar menuseparator
7925 パス
7926 \end_layout
7927
7928 \end_inset
7929
7930 で指定したLyXServerパイプのパスを指定してください.
7931 \begin_inset Foot
7932 status collapsed
7933
7934 \begin_layout Plain Layout
7935 ソース頒布版の
7936 \begin_inset Flex Code
7937 status collapsed
7938
7939 \begin_layout Plain Layout
7940 development/tools
7941 \end_layout
7942
7943 \end_inset
7944
7945 フォルダには,ユーザが設定した
7946 \emph on
7947 lyxpipe
7948 \emph default
7949 を探し出す
7950 \begin_inset Flex Code
7951 status collapsed
7952
7953 \begin_layout Plain Layout
7954 lyxeditor
7955 \end_layout
7956
7957 \end_inset
7958
7959 スクリプトがあります.
7960 \end_layout
7961
7962 \end_inset
7963
7964
7965 \end_layout
7966
7967 \begin_layout Subsubsection*
7968 MacDviX(Mac OS X)
7969 \end_layout
7970
7971 \begin_layout Standard
7972 \begin_inset Flex Code
7973 status collapsed
7974
7975 \begin_layout Plain Layout
7976 /Applications/MacDviX_Folder/calleditor.script
7977 \end_layout
7978
7979 \end_inset
7980
7981 の終わりに
7982 \end_layout
7983
7984 \begin_layout LyX-Code
7985 /Applications/LyX.app/Contents/MacOS/lyxeditor "$2" $1
7986 \begin_inset Newline newline
7987 \end_inset
7988
7989 exit 1
7990 \end_layout
7991
7992 \begin_layout Standard
7993 という行を付け加えてください.Applicationsフォルダ以外の場所に\SpecialChar LyX
7994 を導入した場合には,それに従って上記の行を修正してください.
7995 \end_layout
7996
7997 \begin_layout Standard
7998 遡及検索は,Alt-クリック(OPTION-クリック)で始動します.
7999 \end_layout
8000
8001 \begin_layout Subsubsection*
8002 Skim(Mac OS X)
8003 \end_layout
8004
8005 \begin_layout Standard
8006 \begin_inset Flex MenuItem
8007 status collapsed
8008
8009 \begin_layout Plain Layout
8010 設定\SpecialChar menuseparator
8011 ファイル処理\SpecialChar menuseparator
8012 ファイル書式\SpecialChar menuseparator
8013 PDF (pdflatex)
8014 \end_layout
8015
8016 \end_inset
8017
8018 のビューア設定に
8019 \begin_inset Flex Code
8020 status collapsed
8021
8022 \begin_layout Plain Layout
8023 open -a Skim.app $$i
8024 \end_layout
8025
8026 \end_inset
8027
8028 と入力し,
8029 \begin_inset Flex MenuItem
8030 status collapsed
8031
8032 \begin_layout Plain Layout
8033 Skim\SpecialChar menuseparator
8034 設定\SpecialChar menuseparator
8035 Sync
8036 \end_layout
8037
8038 \end_inset
8039
8040 でLyXを選択してください.
8041 \end_layout
8042
8043 \begin_layout Standard
8044 遡及検索は,COMMAND-SHIFT-クリックで始動します.
8045 \end_layout
8046
8047 \begin_layout Subsubsection*
8048 Evince(GNOME)
8049 \end_layout
8050
8051 \begin_layout Standard
8052 Evinceでは遡及検索はそのままでは動きませんが,サードパーティのヘルパースクリプトを使用すれば,利用可能になります.詳細については,
8053 \begin_inset CommandInset href
8054 LatexCommand href
8055 target "http://wiki.lyx.org/LyX/SyncTeX"
8056 literal "false"
8057
8058 \end_inset
8059
8060 を参照してください.
8061 \end_layout
8062
8063 \begin_layout Subsubsection*
8064 Okular(KDE)
8065 \end_layout
8066
8067 \begin_layout Standard
8068 \begin_inset Flex Noun
8069 status collapsed
8070
8071 \begin_layout Plain Layout
8072 設定\SpecialChar menuseparator
8073 Okularを設定\SpecialChar menuseparator
8074 エディタ
8075 \end_layout
8076
8077 \end_inset
8078
8079 で「Lyxクライアント」をエディタとして選択してください.これによって適切なコマンド(
8080 \begin_inset Flex Code
8081 status collapsed
8082
8083 \begin_layout Plain Layout
8084 lyxclient -g %f %l
8085 \end_layout
8086
8087 \end_inset
8088
8089 )が挿入されます.
8090 \end_layout
8091
8092 \begin_layout Standard
8093 遡及検索は,SHIFT-クリックで始動します.
8094 \end_layout
8095
8096 \begin_layout Subsubsection*
8097 Qpdfview(UNIX)
8098 \end_layout
8099
8100 \begin_layout Standard
8101 Qpdfviewは,第0.3.5版以降,Sync\SpecialChar TeX
8102 をサポートしています.
8103 \begin_inset Flex MenuItem
8104 status collapsed
8105
8106 \begin_layout Plain Layout
8107 Edit\SpecialChar menuseparator
8108 Settings\SpecialChar menuseparator
8109 Behavior
8110 \end_layout
8111
8112 \end_inset
8113
8114 を開いて「Source editor」項目の入力フィールドをクリックし,
8115 \begin_inset Flex Code
8116 status collapsed
8117
8118 \begin_layout Plain Layout
8119 lyxclient -g %1 %2
8120 \end_layout
8121
8122 \end_inset
8123
8124 というコマンドを入力してください.
8125 \end_layout
8126
8127 \begin_layout Standard
8128 遡及検索は,ダブルクリックで始動します.
8129 \end_layout
8130
8131 \begin_layout Subsubsection*
8132 YAP(Windows)
8133 \end_layout
8134
8135 \begin_layout Standard
8136 yapを起動し,
8137 \begin_inset Flex MenuItem
8138 status collapsed
8139
8140 \begin_layout Plain Layout
8141 View\SpecialChar menuseparator
8142 Options
8143 \end_layout
8144
8145 \end_inset
8146
8147 メニューを選択し,「Inverse DVI Search」タブを選択します.「New\SpecialChar ldots
8148 」ボタンをクリックして開くウィンドウの「Name:」フィールドに「\SpecialChar LyX
8149
8150  Editor」(または自分の好きな名称)と入力してください.「\SpecialChar ldots
8151 」というラベルのボタンをクリックしてファイルダイアログを開き,バッチファイル
8152 \begin_inset Flex Code
8153 status collapsed
8154
8155 \begin_layout Plain Layout
8156 lyxeditor.bat
8157 \end_layout
8158
8159 \end_inset
8160
8161 (以下参照)のあるディレクトリを見つけます.
8162 \begin_inset Flex Code
8163 status collapsed
8164
8165 \begin_layout Plain Layout
8166 lyxeditor.bat
8167 \end_layout
8168
8169 \end_inset
8170
8171 を選択してプログラムの引数を
8172 \begin_inset Flex Code
8173 status collapsed
8174
8175 \begin_layout Plain Layout
8176 %f %l
8177 \end_layout
8178
8179 \end_inset
8180
8181 と指定してください.
8182 \begin_inset Flex Code
8183 status collapsed
8184
8185 \begin_layout Plain Layout
8186 lyxeditor.bat
8187 \end_layout
8188
8189 \end_inset
8190
8191 は,
8192 \emph on
8193 lyxpipe
8194 \emph default
8195 を通じて\SpecialChar LyX
8196 と通信するためのラッパとして使用され,以下のようになっています.
8197 \end_layout
8198
8199 \begin_layout LyX-Code
8200 @echo off
8201 \begin_inset Newline newline
8202 \end_inset
8203
8204 echo LYXCMD:revdvi:server-goto-file-row:%~1 %2> 
8205 \backslash
8206
8207 \backslash
8208 .
8209 \backslash
8210 pipe
8211 \backslash
8212 lyxpipe.in
8213 \begin_inset Newline newline
8214 \end_inset
8215
8216 type 
8217 \backslash
8218
8219 \backslash
8220 .
8221 \backslash
8222 pipe
8223 \backslash
8224 lyxpipe.out
8225 \end_layout
8226
8227 \begin_layout Standard
8228 \SpecialChar LyX
8229 で指定した\SpecialChar LyX
8230 Serverパイプパスが,
8231 \begin_inset Flex Code
8232 status collapsed
8233
8234 \begin_layout Plain Layout
8235
8236 \backslash
8237
8238 \backslash
8239 .
8240 \backslash
8241 pipe
8242 \backslash
8243 lyxpipe
8244 \end_layout
8245
8246 \end_inset
8247
8248 となっていることを確認するか,
8249 \begin_inset Flex Code
8250 status collapsed
8251
8252 \begin_layout Plain Layout
8253 lyxeditor.bat
8254 \end_layout
8255
8256 \end_inset
8257
8258 ラッパの方を適切に修正してください.
8259 \end_layout
8260
8261 \begin_layout Standard
8262 yapでは,遡及検索はダブルクリックで始動します.
8263 \end_layout
8264
8265 \begin_layout Subsubsection*
8266 SumatraPDF(Windows)
8267 \end_layout
8268
8269 \begin_layout Standard
8270 SumatraPDFを遡及検索で使用するためには,
8271 \begin_inset Flex MenuItem
8272 status collapsed
8273
8274 \begin_layout Plain Layout
8275 設定\SpecialChar menuseparator
8276 ファイル処理\SpecialChar menuseparator
8277 ファイル書式\SpecialChar menuseparator
8278 PDF (pdflatex)
8279 \end_layout
8280
8281 \end_inset
8282
8283 のビューア設定で
8284 \begin_inset Flex Code
8285 status collapsed
8286
8287 \begin_layout Plain Layout
8288 SumatraPDF -inverse-search "lyxeditor.bat "%f" %l"
8289 \end_layout
8290
8291 \end_inset
8292
8293
8294 \begin_inset Flex Code
8295 status collapsed
8296
8297 \begin_layout Plain Layout
8298 lyxeditor.bat
8299 \end_layout
8300
8301 \end_inset
8302
8303 は上記のラッパ)と入力してください.SumatraPDF.exeがコマンドPATHにない場合,フルファイル名を使用してください.
8304 \end_layout
8305
8306 \begin_layout Standard
8307 遡及検索はダブルクリックで始動します.
8308 \end_layout
8309
8310 \begin_layout Subsubsection*
8311 YAP(Cygwin)
8312 \end_layout
8313
8314 \begin_layout Standard
8315 まずはじめに,yapがWindows環境での既定のDVIビューアになっていることを確認してから,yapを起動し,
8316 \begin_inset Flex MenuItem
8317 status collapsed
8318
8319 \begin_layout Plain Layout
8320 View\SpecialChar menuseparator
8321 Options
8322 \end_layout
8323
8324 \end_inset
8325
8326 メニューを選択し,「Inverse DVI Search」タブを選択します.「New\SpecialChar ldots
8327 」ボタンをクリックして開くウィンドウの「Name:」フィールドに「\SpecialChar LyX
8328
8329  Editor」(または自分の好きな名称)と入力してください.「\SpecialChar ldots
8330 」というラベルのボタンをクリックしてファイルダイアログを開き,バッチファイル
8331 \begin_inset Flex Code
8332 status collapsed
8333
8334 \begin_layout Plain Layout
8335 lyxeditor.exe
8336 \end_layout
8337
8338 \end_inset
8339
8340 プログラム(これは,Cygwinでは既定で\SpecialChar LyX
8341 実行ファイルとともに導入されます)のあるディレクトリを見つけます.
8342 \begin_inset Flex Code
8343 status collapsed
8344
8345 \begin_layout Plain Layout
8346 lyxeditor.exe
8347 \end_layout
8348
8349 \end_inset
8350
8351 を選択してプログラムの引数を
8352 \begin_inset Flex Code
8353 status collapsed
8354
8355 \begin_layout Plain Layout
8356 -g %f %l
8357 \end_layout
8358
8359 \end_inset
8360
8361 と指定してください.これによって,\SpecialChar LyX
8362 との通信に
8363 \emph on
8364 lyxsocket
8365 \emph default
8366 が使用されるようになります.何らかの理由で
8367 \emph on
8368 lyxpipe
8369 \emph default
8370 を使用したい場合には,
8371 \begin_inset Flex Code
8372 status collapsed
8373
8374 \begin_layout Plain Layout
8375 -g
8376 \end_layout
8377
8378 \end_inset
8379
8380 オプションを削除して,\SpecialChar LyX
8381 設定で\SpecialChar LyX
8382 Serverパイプパスを指定することを忘れないでください.
8383 \end_layout
8384
8385 \begin_layout Standard
8386 yapでは,遡及検索はダブルクリックで始動します.
8387 \end_layout
8388
8389 \begin_layout Subsubsection*
8390 SumatraPDF(Cygwin)
8391 \end_layout
8392
8393 \begin_layout Standard
8394 SumatraPDFを遡及検索で使用するためには,
8395 \begin_inset Flex MenuItem
8396 status collapsed
8397
8398 \begin_layout Plain Layout
8399 設定\SpecialChar menuseparator
8400 ファイル処理\SpecialChar menuseparator
8401 ファイル書式\SpecialChar menuseparator
8402 PDF (pdflatex)
8403 \end_layout
8404
8405 \end_inset
8406
8407 のビューア設定で
8408 \begin_inset Flex Code
8409 status collapsed
8410
8411 \begin_layout Plain Layout
8412 SumatraPDF.sh
8413 \end_layout
8414
8415 \end_inset
8416
8417 と入力してください.ここで
8418 \begin_inset Flex Code
8419 status collapsed
8420
8421 \begin_layout Plain Layout
8422 SumatraPDF.sh
8423 \end_layout
8424
8425 \end_inset
8426
8427 は以下のようなスクリプトです(お使いのコマンドパスに置きます.
8428 \begin_inset Flex Code
8429 status collapsed
8430
8431 \begin_layout Plain Layout
8432 /usr/local/bin
8433 \end_layout
8434
8435 \end_inset
8436
8437 がもっとも良い選択肢でしょう).
8438 \end_layout
8439
8440 \begin_layout LyX-Code
8441 #!/bin/bash
8442 \begin_inset Newline newline
8443 \end_inset
8444
8445 cd $(dirname $1)
8446 \begin_inset Newline newline
8447 \end_inset
8448
8449 SumatraPDF -inverse-search "lyxeditor -g %f %l" $(basename $1)
8450 \end_layout
8451
8452 \begin_layout Standard
8453 SumatraPDFは,Windowsネイティブのアプリケーションであり,\SpecialChar LyX
8454 のCygwin版が使用するPOSIXパスを理解しないので,このラッパスクリプトが必要と
8455 なります.SumatraPDF.exeがお使いのコマンドパスにない場合は,上記のスクリプトでPOSIXのフルパスを使用してください.
8456 \begin_inset Flex Code
8457 status collapsed
8458
8459 \begin_layout Plain Layout
8460 -g
8461 \end_layout
8462
8463 \end_inset
8464
8465
8466 \emph on
8467 lyxsocket
8468 \emph default
8469 経由の通信を有効にします.ここでも,
8470 \emph on
8471 lyxpipe
8472 \emph default
8473 を使用したい場合には,
8474 \begin_inset Flex Code
8475 status collapsed
8476
8477 \begin_layout Plain Layout
8478 -g
8479 \end_layout
8480
8481 \end_inset
8482
8483 オプションを削除して,\SpecialChar LyX
8484 設定で\SpecialChar LyX
8485 Serverパイプパスを指定することを忘れないでください.
8486 \end_layout
8487
8488 \begin_layout Standard
8489 遡及検索はダブルクリックで始動します.
8490 \end_layout
8491
8492 \begin_layout Section
8493 順検索
8494 \end_layout
8495
8496 \begin_layout Standard
8497 順検索とは,名前が示すとおり,いわば遡及検索の「逆」を意味します.すなわち,\SpecialChar LyX
8498 内部から,ビューアに特定の箇所を表示させることを可能にします.(以下に説明するように
8499 )もし順検索の準備ができていれば,カーソルを\SpecialChar LyX
8500 文書の好きなところに置いて,
8501 \begin_inset Flex MenuItem
8502 status collapsed
8503
8504 \begin_layout Plain Layout
8505 移動\SpecialChar menuseparator
8506 順検索
8507 \end_layout
8508
8509 \end_inset
8510
8511 を選択すると(あるいはマウスの右クリックで表示される文脈依存メニューから
8512 \begin_inset Flex MenuItem
8513 status collapsed
8514
8515 \begin_layout Plain Layout
8516 順検索
8517 \end_layout
8518
8519 \end_inset
8520
8521 を選択してもよい),ビューアも同じ箇所に移動します.もちろん,使用しているビューアが,この機能をサポートしていなくてはなりません.
8522 \end_layout
8523
8524 \begin_layout Standard
8525 順検索を有効にするためには,生成されたPDF/DVI出力ファイルに,\SpecialChar TeX
8526 ソースに関する情報を追加する必要があります.これは,第
8527 \begin_inset CommandInset ref
8528 LatexCommand ref
8529 reference "subsec:遡及検索"
8530
8531 \end_inset
8532
8533 節に述べられている方法で実行することができます.
8534 \end_layout
8535
8536 \begin_layout Standard
8537 次に,
8538 \begin_inset Flex MenuItem
8539 status collapsed
8540
8541 \begin_layout Plain Layout
8542 ツール\SpecialChar menuseparator
8543 設定\SpecialChar menuseparator
8544 出力\SpecialChar menuseparator
8545 一般
8546 \end_layout
8547
8548 \end_inset
8549
8550 で自分の使うビューアを利用するように,\SpecialChar LyX
8551 を設定する必要があります.いくつかのビューアについては,試験済みの設定が前もって準備されており,ドロップダウンリストから選
8552 択することができます.これらの設定の何れも意にそぐわない場合には,ご自身で適切な設定を見つけ出して入力しなくてはなりません.定義文法は,以下の変数を使用します.
8553 \end_layout
8554
8555 \begin_layout Itemize
8556 \begin_inset Flex Code
8557 status collapsed
8558
8559 \begin_layout Plain Layout
8560 $$n
8561 \end_layout
8562
8563 \end_inset
8564
8565 :行番号
8566 \end_layout
8567
8568 \begin_layout Itemize
8569 \begin_inset Flex Code
8570 status collapsed
8571
8572 \begin_layout Plain Layout
8573 $$t
8574 \end_layout
8575
8576 \end_inset
8577
8578 :書き出された(一時).texファイル名(パスを除く)
8579 \end_layout
8580
8581 \begin_layout Itemize
8582 \begin_inset Flex Code
8583 status collapsed
8584
8585 \begin_layout Plain Layout
8586 $$f
8587 \end_layout
8588
8589 \end_inset
8590
8591 :書き出された(一時).texファイル名(パスを含む)
8592 \end_layout
8593
8594 \begin_layout Itemize
8595 \begin_inset Flex Code
8596 status collapsed
8597
8598 \begin_layout Plain Layout
8599 $$o
8600 \end_layout
8601
8602 \end_inset
8603
8604 :書き出された出力ファイル名(どちらが一時ディレクトリに存在するかに依存して,dviあるいはpdf).
8605 \end_layout
8606
8607 \begin_layout Standard
8608 yap・xdvi・okular
8609 \begin_inset Foot
8610 status collapsed
8611
8612 \begin_layout Plain Layout
8613 \begin_inset Flex Noun
8614 status collapsed
8615
8616 \begin_layout Plain Layout
8617 ツール\SpecialChar menuseparator
8618 設定\SpecialChar menuseparator
8619 ファイル処理\SpecialChar menuseparator
8620 ファイル形式
8621 \end_layout
8622
8623 \end_inset
8624
8625
8626 \begin_inset Flex Code
8627 status collapsed
8628
8629 \begin_layout Plain Layout
8630 okular –unique
8631 \end_layout
8632
8633 \end_inset
8634
8635 と設定すると良いでしょう.
8636 \end_layout
8637
8638 \end_inset
8639
8640 ・qpdfview・Sumatra PDF
8641 \begin_inset Foot
8642 status collapsed
8643
8644 \begin_layout Plain Layout
8645 SumatraPDFは,外部プログラムCMCDDE(
8646 \begin_inset CommandInset href
8647 LatexCommand href
8648 target "http://www.istri.fr/spip/zip/CMCDDE.zip"
8649 literal "false"
8650
8651 \end_inset
8652
8653 からダウンロード可能)を通じてDDEコマンドを使用することもできます.
8654 \end_layout
8655
8656 \end_inset
8657
8658 など,一部のビューアでしか,完全な順検索機能は提供されていないことに注意してください
8659 \begin_inset Foot
8660 status collapsed
8661
8662 \begin_layout Plain Layout
8663 SumatraPDFも,外部プログラムCMCDDEを通じて,DDEコマンドを使用することができます.CMCDDEは,
8664 \begin_inset CommandInset href
8665 LatexCommand href
8666 target "http://www.istri.fr/spip/zip/CMCDDE.zip"
8667 literal "false"
8668
8669 \end_inset
8670
8671 からダウンロードすることができます.
8672 \end_layout
8673
8674 \end_inset
8675
8676 .Evince
8677 \begin_inset Foot
8678 status collapsed
8679
8680 \begin_layout Plain Layout
8681 Evinceでの順検索は,サードパーティのヘルパースクリプトを使用すれば,利用可能になります.詳細については,
8682 \begin_inset CommandInset href
8683 LatexCommand href
8684 target "http://wiki.lyx.org/LyX/SyncTeX"
8685 literal "false"
8686
8687 \end_inset
8688
8689 を参照してください.
8690 \end_layout
8691
8692 \end_inset
8693
8694 など他のビューアには,順検索を使用するのに,追加のツールを必要とするものもあります.広く使われているPDFビューアの多く(特にAdobe Reader)は,順検
8695 索を全く提供していませんが,他の一部のビューア(たとえばxpdf)では,少なくとも,文書を読み込み直したり,ファイルの特定ページに移動することはできますので,少
8696 なくとも「近く」には移動することができます.この後者の機能は,synctexの外部コールで提供されています(事前に用意されている用例をご覧ください).
8697 \end_layout
8698
8699 \begin_layout Standard
8700 順検索は,DVI出力とPDF出力の双方で動作します.\SpecialChar LyX
8701 は,過去にあなたが使用したプレビュー形式をチェックして(つまり,一時ディレクトリにどちらの形式が存在するかを
8702 チェックして),その形式に適切な設定を選択します.
8703 \end_layout
8704
8705 \begin_layout Chapter
8706 特別な文書クラス
8707 \end_layout
8708
8709 \begin_layout Section
8710 A&Aの論文
8711 \end_layout
8712
8713 \begin_layout Standard
8714
8715 \noun on
8716 Peter Sütterlin文
8717 \end_layout
8718
8719 \begin_layout Subsection
8720 はじめに
8721 \end_layout
8722
8723 \begin_layout Standard
8724 この節では,文書クラス
8725 \family typewriter
8726 aa.cls
8727 \family default
8728 第5.01版を使用して科学雑誌
8729 \emph on
8730 Astronomy and Astrophysics
8731 \emph default
8732 (『天文学と宇宙物理学』: 
8733 \begin_inset Flex URL
8734 status collapsed
8735
8736 \begin_layout Plain Layout
8737
8738 https://www.aanda.org/
8739 \end_layout
8740
8741 \end_inset
8742
8743 )に投稿する論文を執筆するための\SpecialChar LyX
8744 の使用法を説明します.このパッケージは,FTPサイト
8745 \end_layout
8746
8747 \begin_layout Standard
8748 \align center
8749 \begin_inset VSpace medskip
8750 \end_inset
8751
8752
8753 \begin_inset Flex URL
8754 status collapsed
8755
8756 \begin_layout Plain Layout
8757
8758 ftp://ftp.edpsciences.org/pub/aa/readme.html
8759 \end_layout
8760
8761 \end_inset
8762
8763
8764 \begin_inset VSpace medskip
8765 \end_inset
8766
8767
8768 \end_layout
8769
8770 \begin_layout Standard
8771 \noindent
8772 からダウンロードすることができます.
8773 \end_layout
8774
8775 \begin_layout Standard
8776 このパッケージには取扱説明書がついていますが,本節は,本来の取扱説明書の代わりとなることを意図したものではなく,あなたの論文を正しい様式に整えるための小さな案内
8777 書であるに過ぎません.
8778 \end_layout
8779
8780 \begin_layout Standard
8781 この学術誌の出版元は,2001年1月1日以降,Springer社からEDP Science社に変更されていることにご注意ください.この出版社の変更によって,th
8782 esaurusコマンドの廃止など,スタイルファイルに若干の変更が加わっています.\SpecialChar LyX
8783 のaaクラスは,スタイルファイルの最新版(第5.01版)をサポートしています.もし
8784 古い版が装備されている場合には,更新してください.互換性のために,古い(第4版)レイアウトは,
8785 \family sans
8786 article (A&A V4)
8787 \family default
8788 として残してあります.
8789 \family typewriter
8790 $\SpecialChar LyX
8791 Dir/layouts/aapaper.layout
8792 \family default
8793 のコメントをご参照ください.
8794 \end_layout
8795
8796 \begin_layout Subsection
8797 最初の一歩
8798 \end_layout
8799
8800 \begin_layout Standard
8801 \SpecialChar LyX
8802 とともに頒布されている例示用のひな型を土台として,書き始めることをお勧めします.ひな型を使用しない場合には,以下の設定にしてください.
8803 \end_layout
8804
8805 \begin_layout Itemize
8806
8807 \family sans
8808 文書\SpecialChar menuseparator
8809 設定
8810 \family default
8811 ダイアログで
8812 \family sans
8813 article (A&A)
8814 \family default
8815 を選択してください(まぁ,これは自明ですね).
8816 \end_layout
8817
8818 \begin_layout Itemize
8819
8820 \family sans
8821 ページレイアウト
8822 \family default
8823 オプションは変更しないで,既定値のままに設定しておいてください.全体のレイアウトはマクロが行うので,何も変更してはいけません.
8824 \end_layout
8825
8826 \begin_layout Subsection
8827 へッダ部
8828 \end_layout
8829
8830 \begin_layout Standard
8831 最初に入力すべきものは,へッダ情報です.ヘッダ情報には,以下の7つの項目があり,いくつかは必須ではありません.
8832 \end_layout
8833
8834 \begin_layout Itemize
8835
8836 \family sans
8837 タイトル
8838 \family default
8839 :[必須]
8840 \end_layout
8841
8842 \begin_layout Itemize
8843
8844 \family sans
8845 サブタイトル
8846 \family default
8847 :[非必須]
8848 \end_layout
8849
8850 \begin_layout Itemize
8851
8852 \family sans
8853 著者
8854 \family default
8855 :[必須]
8856 \end_layout
8857
8858 \begin_layout Itemize
8859
8860 \family sans
8861 住所
8862 \family default
8863 :[必須]
8864 \end_layout
8865
8866 \begin_layout Itemize
8867
8868 \family sans
8869 抜き刷り
8870 \family default
8871 :[非必須]著者が複数いる場合,抜き刷りの送付を依頼するのに連絡すべき人を記す.
8872 \end_layout
8873
8874 \begin_layout Itemize
8875
8876 \family sans
8877 メール
8878 \family default
8879 :[非必須]連絡用の電子メールアドレス.
8880 \end_layout
8881
8882 \begin_layout Itemize
8883
8884 \family sans
8885 日付
8886 \family default
8887 :[必須]推奨されるフォーマットは,
8888 \family typewriter
8889 Received: <日付>; Accepted <日付>
8890 \family default
8891 です.
8892 \end_layout
8893
8894 \begin_layout Standard
8895
8896 \family typewriter
8897
8898 \backslash
8899 maketitle
8900 \family default
8901 コマンドは,へッダが終了した場所に,\SpecialChar LyX
8902 が自動的に入れてくれるので,手動で挿入する必要はありません.各項目の順序は関係ありませんが,見た目のためと,実際の文書のレイ
8903 アウトに合わせるために,上記の順序を維持しておくと良いでしょう.
8904 \end_layout
8905
8906 \begin_layout Standard
8907 現住所の付記などのために,へッダ部に脚注を挿入したい場合には,
8908 \family sans
8909 挿入\SpecialChar menuseparator
8910 脚注
8911 \family default
8912 を使用して標準の脚注を挿入してください.この場合には,\SpecialChar LyX
8913 は自動的に
8914 \family typewriter
8915
8916 \backslash
8917 thanks{}
8918 \family default
8919 を使用します.
8920 \end_layout
8921
8922 \begin_layout Standard
8923
8924 \family sans
8925 編集\SpecialChar menuseparator
8926 文字様式
8927 \family default
8928 の下に,タイトル関連の2つの差込枠があります.
8929 \end_layout
8930
8931 \begin_layout Itemize
8932
8933 \family sans
8934 所属機関
8935 \family default
8936 は,対応する著者・所属機関の対を標識するためのものです.所属機関には,
8937 \family sans
8938 住所
8939 \family default
8940 フィールドに現れるのと同じ順序で連番が振られますので,各著者に標識を付けてください.
8941 \end_layout
8942
8943 \begin_layout Itemize
8944
8945 \family sans
8946 電子メール
8947 \family default
8948 は,至急連絡用に電子メールアドレスを付するものです.
8949 \end_layout
8950
8951 \begin_layout Standard
8952 これらのトピックの他に,このマクロは,\SpecialChar LyX
8953 が対応していない,以下のもう一つの\SpecialChar LaTeX
8954 コマンドを使用します.
8955 \end_layout
8956
8957 \begin_layout Itemize
8958 複数の著者名あるいは所属名を区切るための
8959 \family typewriter
8960
8961 \backslash
8962 and
8963 \end_layout
8964
8965 \begin_layout Standard
8966 \SpecialChar LyX
8967 中に対応したコマンドを入力し,\SpecialChar LaTeX
8968 コードとしてマークしてください.用例を参照のこと.
8969 \end_layout
8970
8971 \begin_layout Subsection
8972 概要
8973 \end_layout
8974
8975 \begin_layout Standard
8976 概要は,へッダ部の直後に置きます.第5版から,概要は環境からコマンドに変更され,一段落に限るという制限が加えられました.さらに,ここにはキーワードを含む項目を入
8977 れなくてはなりません.これには,キーワード段落様式を使用してください.用例にある論文を参照してください.
8978 \end_layout
8979
8980 \begin_layout Subsection
8981 サポートされる環境
8982 \end_layout
8983
8984 \begin_layout Standard
8985 A&A論文用レイアウトでは,文章を構造化するために,以下の環境がサポートされています.
8986 \end_layout
8987
8988 \begin_layout Itemize
8989
8990 \family sans
8991 標準
8992 \end_layout
8993
8994 \begin_layout Itemize
8995
8996 \family sans
8997
8998 \end_layout
8999
9000 \begin_layout Itemize
9001
9002 \family sans
9003 小節
9004 \end_layout
9005
9006 \begin_layout Itemize
9007
9008 \family sans
9009 小々節
9010 \end_layout
9011
9012 \begin_layout Itemize
9013
9014 \family sans
9015 箇条書き(記号)
9016 \end_layout
9017
9018 \begin_layout Itemize
9019
9020 \family sans
9021 箇条書き(連番)
9022 \end_layout
9023
9024 \begin_layout Itemize
9025
9026 \family sans
9027 箇条書き(記述)
9028 \end_layout
9029
9030 \begin_layout Itemize
9031
9032 \family sans
9033 キャプション
9034 \end_layout
9035
9036 \begin_layout Itemize
9037
9038 \family sans
9039 概要
9040 \end_layout
9041
9042 \begin_layout Itemize
9043
9044 \family sans
9045 謝辞(Acknowledgment)
9046 \end_layout
9047
9048 \begin_layout Itemize
9049
9050 \family sans
9051 書誌情報
9052 \end_layout
9053
9054 \begin_layout Itemize
9055
9056 \family sans
9057 \SpecialChar LaTeX
9058
9059 \end_layout
9060
9061 \begin_layout Subsection
9062 \SpecialChar LyX
9063 でサポートされていないコマンド
9064 \end_layout
9065
9066 \begin_layout Standard
9067 \SpecialChar LyX
9068
9069 \family sans
9070 articleA&A)
9071 \family default
9072 レイアウトでは,まだサポートされていないコマンドがあります.そのうちいくつかは既に紹介しましたが,網羅するために,以下にすべて列挙しておきます.
9073 \end_layout
9074
9075 \begin_layout Itemize
9076
9077 \family typewriter
9078
9079 \backslash
9080 and
9081 \end_layout
9082
9083 \begin_layout Itemize
9084
9085 \family typewriter
9086
9087 \backslash
9088 authorrunning
9089 \end_layout
9090
9091 \begin_layout Itemize
9092
9093 \family typewriter
9094
9095 \backslash
9096 object{}
9097 \end_layout
9098
9099 \begin_layout Itemize
9100
9101 \family typewriter
9102
9103 \backslash
9104 titlerunning{}
9105 \end_layout
9106
9107 \begin_layout Standard
9108 これらのコマンドのいずれかを使いたい場合には,自分で入力する必要があります.
9109 \series bold
9110 これを\SpecialChar LaTeX
9111 コマンドとしてマークすることを忘れないで下さい.
9112 \end_layout
9113
9114 \begin_layout Subsection
9115 図フロートおよび表フロート
9116 \end_layout
9117
9118 \begin_layout Standard
9119 \SpecialChar LyX
9120 は,必要なフロート環境
9121 \family sans
9122 figure
9123 \family default
9124
9125 \family sans
9126 figure*
9127 \family default
9128
9129 \family sans
9130 table
9131 \family default
9132
9133 \family sans
9134 table*
9135 \family default
9136 をサポートしていますので,ここでは詳しい説明はしません.
9137 \emph on
9138 ユーザーの手引き
9139 \emph default
9140 をご覧ください.ただ,表は左揃えにしなくてはならないことに注意して下さい.そうするためには,表を選択して,
9141 \family sans
9142 編集\SpecialChar menuseparator
9143 段落設定
9144 \family default
9145 で配置を変更してください.
9146 \end_layout
9147
9148 \begin_layout Standard
9149 一つだけ,特別なものがあります.それは,図横にキャプションを配置する図です.この図を作成するには,以下のようにしなくてはなりません.
9150 \end_layout
9151
9152 \begin_layout Enumerate
9153
9154 \family sans
9155 挿入\SpecialChar menuseparator
9156 フロート\SpecialChar menuseparator
9157
9158 \family default
9159 を使って,幅広の図フロートを作成します.それから,図フロートのラベルを右クリックして
9160 \begin_inset Flex MenuItem
9161 status collapsed
9162
9163 \begin_layout Plain Layout
9164 設定\SpecialChar ldots
9165
9166 \end_layout
9167
9168 \end_inset
9169
9170 を選択し,それで開かれる
9171 \family sans
9172 フロートの設定
9173 \family default
9174 ダイアログで
9175 \family sans
9176 段をまたぐ
9177 \family default
9178 を有効にして,
9179 \family sans
9180 OK
9181 \family default
9182 ボタンを押します.
9183 \end_layout
9184
9185 \begin_layout Enumerate
9186 キャプション文を入力します.
9187 \end_layout
9188
9189 \begin_layout Enumerate
9190 キャプションの前にカーソルを移動し,
9191 \family sans
9192 Return
9193 \family default
9194 を押して,カーソルをキャプションの上に移動します.
9195 \end_layout
9196
9197 \begin_layout Enumerate
9198 図を挿入します.
9199 \end_layout
9200
9201 \begin_layout Enumerate
9202 カーソルを図の後ろに置いて,
9203 \family sans
9204 挿入\SpecialChar menuseparator
9205 整形\SpecialChar menuseparator
9206 水平方向の空白
9207 \family default
9208 を選択して
9209 \family sans
9210 水平方向の空白の設定
9211 \family default
9212 ダイアログを開き,
9213 \family sans
9214 空白
9215 \family default
9216 ドロップダウンから
9217 \family sans
9218 水平フィル
9219 \family default
9220 を選択して,水平フィルを挿入します.
9221 \end_layout
9222
9223 \begin_layout Enumerate
9224
9225 \family sans
9226 挿入\SpecialChar menuseparator
9227 TeXコード
9228 \family default
9229 を選択して,\SpecialChar TeX
9230 差込枠を挿入します.
9231 \end_layout
9232
9233 \begin_layout Enumerate
9234 \SpecialChar TeX
9235 差込枠中に
9236 \family typewriter
9237
9238 \backslash
9239 parbox[b]{55mm}{
9240 \family default
9241 と入力します.
9242 \series bold
9243 ここでは波括弧を閉じないでください.
9244 \end_layout
9245
9246 \begin_layout Enumerate
9247 カーソルをキャプション文の後ろに移動し,
9248 \family sans
9249 挿入\SpecialChar menuseparator
9250 TeXコード
9251 \family default
9252 を選択して,別の\SpecialChar TeX
9253 差込枠を挿入し,その中に閉じ括弧を入力します .
9254 \end_layout
9255
9256 \begin_layout Standard
9257 例示用論文中の図もご参照ください.
9258 \end_layout
9259
9260 \begin_layout Subsection
9261 Refereeレイアウト
9262 \end_layout
9263
9264 \begin_layout Standard
9265 投稿用には,論文を特別なダブルスペースレイアウトに整形しなくてはなりません.このためには,文書クラスに
9266 \family typewriter
9267 referee
9268 \family default
9269 オプションを与える必要があります.これは,
9270 \family sans
9271 文書\SpecialChar menuseparator
9272 設定
9273 \family default
9274 ダイアログの
9275 \family sans
9276 任意設定
9277 \family default
9278 クラスオプションフィールドを使って行うことができます.この欄に
9279 \family typewriter
9280 referee
9281 \family default
9282 と云う文字列を入力してください.
9283 \end_layout
9284
9285 \begin_layout Subsection
9286 例示用論文
9287 \end_layout
9288
9289 \begin_layout Standard
9290
9291 \family sans
9292 Examples
9293 \family default
9294 ディレクトリには,\SpecialChar LyX
9295 で書かれた例示用論文が収録されています.これは,元のマクロパッケージの例示用論文を\SpecialChar LyX
9296 用に直したものです.これはヒントを得るために使用したり,元の
9297  \SpecialChar LaTeX
9298 コードと\SpecialChar LyX
9299 での書き方の比較に使ったりしてください.
9300 \end_layout
9301
9302 \begin_layout Section
9303 AAS\SpecialChar TeX
9304
9305 \end_layout
9306
9307 \begin_layout Standard
9308
9309 \noun on
9310 Mike Ressler
9311 \noun default
9312
9313 \end_layout
9314
9315 \begin_layout Subsection
9316 はじめに
9317 \end_layout
9318
9319 \begin_layout Standard
9320 AAS\SpecialChar TeX
9321 は,American Astronomical Society(アメリカ天文学会)が発行するAstrophysical Journal(宇宙物理学雑誌)同
9322 誌のLettersとSupplementを含む)・Astronomical Journal(天文学雑誌)・Publications of the
9323  Astronomical Society of the Pacific(太平洋天文学会誌)三誌への電子投稿を可能にするために,同学会が作成したマクロ集です.\SpecialChar LyX
9324
9325 ,これらの文書を生成する上で,なかでも数式・引用・画像処理能力において,優れたツールであることが認識されています.\SpecialChar LyX
9326 は,同マクロ第5.0版以降を必要としており,でき
9327 ればここで説明されている第6.0版以降が望まれます.第5.0版未満の版は,\SpecialChar LaTeX
9328 2.09で使用するよう企図されているため,根本的に\SpecialChar LyX
9329 とは互換性がありません.AAS\SpecialChar TeX
9330 パッケージは
9331 ,以下のAAS\SpecialChar TeX
9332 ウェブサイトからダウンロードできるでしょう.
9333 \end_layout
9334
9335 \begin_layout Standard
9336 \align center
9337 \begin_inset VSpace medskip
9338 \end_inset
9339
9340
9341 \begin_inset Flex URL
9342 status collapsed
9343
9344 \begin_layout Plain Layout
9345
9346 https://aas.org/aastex/aastex-downloads
9347 \end_layout
9348
9349 \end_inset
9350
9351
9352 \begin_inset VSpace medskip
9353 \end_inset
9354
9355
9356 \end_layout
9357
9358 \begin_layout Standard
9359 パッケージ中には,完備したユーザーの手引きが収録されていますので,\SpecialChar LyX
9360 で論文を書き始める前に,その中身を完全に理解しておく必要があります.\SpecialChar LyX
9361 は,AASTeXの全コマン
9362 ドを理解する必然性をなくすものではなく,すべてを手入力する苦労を減らすだけです.仕上がりの\SpecialChar LaTeX
9363 文書が,論文を投稿しようとしているジャーナルの要求事項に完全に合致して
9364 いることを確認するのは,あなたの責任です.
9365 \end_layout
9366
9367 \begin_layout Subsection
9368 新しい論文を書き始める
9369 \end_layout
9370
9371 \begin_layout Standard
9372 論文を書き始めるには,AAS\SpecialChar TeX
9373 ひな型ファイルを土台に始めることを強くお勧めします.
9374 \begin_inset Flex MenuItem
9375 status collapsed
9376
9377 \begin_layout Plain Layout
9378 ファイル\SpecialChar menuseparator
9379 新規(ひな型使用)
9380 \end_layout
9381
9382 \end_inset
9383
9384 をクリックして,新しいファイル名を入力し,ひな型
9385 \family typewriter
9386 aastex6.lyx
9387 \family default
9388 を選んでください.これには,論文原稿のほとんどに共通して使われるフィールドが書き込まれています.書き込まれている文字列(括弧
9389 \family typewriter
9390 <>
9391 \family default
9392 を含む)を正しい情報で上書きしてください.AAS\SpecialChar TeX
9393 コマンド・AAS\SpecialChar TeX
9394 環境の多くは,\SpecialChar LyX
9395 中で直接実行することができますが,できないものもあります.このようなコマンドは,直
9396 接La\SpecialChar TeX
9397 コードを入力して,それを\SpecialChar TeX
9398 コードとしてマークしなければなりません.このようなコマンドは,\SpecialChar TeX
9399 コードあるいはEvil Red Text(邪悪な赤い文)と呼ばれます
9400 .AAS\SpecialChar TeX
9401 文書に必要とされる \SpecialChar TeX
9402 コードを最小にするようには努力しました.
9403 \end_layout
9404
9405 \begin_layout Subsection
9406 論文を書き終わったら
9407 \end_layout
9408
9409 \begin_layout Standard
9410 論文を満足する水準で書き終え,プレビューや印刷が正しく為されているとしても,まだ学術誌に投稿する前にしなくてはならない「後処理」が残されています.
9411 \end_layout
9412
9413 \begin_layout Enumerate
9414 論文を \SpecialChar LaTeX
9415 ファイルとして書き出します(
9416 \family sans
9417 ファイル\SpecialChar menuseparator
9418 書き出し\SpecialChar menuseparator
9419 LaTeX
9420 \family default
9421 ).
9422 \end_layout
9423
9424 \begin_layout Enumerate
9425 出力した
9426 \family typewriter
9427 .tex
9428 \family default
9429 ファイルを好きなエディタで編集します.
9430 \end_layout
9431
9432 \begin_deeper
9433 \begin_layout Enumerate
9434
9435 \family typewriter
9436
9437 \backslash
9438 documentclass
9439 \family default
9440 コマンドよりも前のコメント行を削除します.
9441 \end_layout
9442
9443 \begin_layout Enumerate
9444
9445 \family typewriter
9446
9447 \backslash
9448 usepackage...{fontenc}
9449 \family default
9450 という行があれば(通常は
9451 \family typewriter
9452
9453 \backslash
9454 documentclass
9455 \family default
9456 の直後にあります)削除します.また,
9457 \family typewriter
9458
9459 \backslash
9460 secnumdepth
9461 \family default
9462 行があれば,これも削除します.
9463 \end_layout
9464
9465 \begin_layout Enumerate
9466 \SpecialChar LaTeX
9467 プリアンブル中に意図的に置いたコマンド(
9468 \family typewriter
9469 .tex
9470 \family default
9471 ファイル中,「User specified \SpecialChar LaTeX
9472  commands」というコメントの直後にあります)を除いて,
9473 \family typewriter
9474
9475 \backslash
9476 makeatletter
9477 \family default
9478
9479 \family typewriter
9480
9481 \backslash
9482 makeatother
9483 \family default
9484 の間のもの(これらのコマンドを含む)をすべて削除します.
9485 \end_layout
9486
9487 \end_deeper
9488 \begin_layout Enumerate
9489 編集後のファイルを \SpecialChar LaTeX
9490 にかけて,正しく処理されることを確認します.
9491 \end_layout
9492
9493 \begin_layout Enumerate
9494 学術誌の要求事項を再読して,ファイル名と書式が正しいことを確認します.
9495 \end_layout
9496
9497 \begin_layout Enumerate
9498 投稿してください.
9499 \end_layout
9500
9501 \begin_layout Subsection
9502 特定のコマンドに関するコメント
9503 \end_layout
9504
9505 \begin_layout Standard
9506 AAS\SpecialChar TeX
9507 ユーザーの手引き(
9508 \family typewriter
9509 aasguide.tex
9510 \family default
9511 )に,各AAS\SpecialChar TeX
9512 コマンドの詳しい説明があるので,ここでは,各コマンドの使用法の詳細な説明は行いません.そこで,ここではユーザーの手引きに現れるとおりに一覧を列挙し
9513 て,必要なところだけコメントを加えることにしましょう.
9514 \end_layout
9515
9516 \begin_layout Subsubsection
9517 期待通りに動作するもの
9518 \end_layout
9519
9520 \begin_layout Standard
9521 これらは期待通りに動作するので,ここでは列挙するだけにして,コマンドの説明されている節を挙げておきます.
9522 \family typewriter
9523
9524 \backslash
9525 documentclass
9526 \family default
9527  (2.1.1)・
9528 \family typewriter
9529
9530 \backslash
9531 begin{document}
9532 \family default
9533  (2.2)・
9534 \family typewriter
9535
9536 \backslash
9537 title
9538 \family default
9539  (2.3)・
9540 \family typewriter
9541
9542 \backslash
9543 author
9544 \family default
9545  (2.3)・
9546 \family typewriter
9547
9548 \backslash
9549 affil
9550 \family default
9551  (2.3)・
9552 \family typewriter
9553
9554 \backslash
9555 abstract
9556 \family default
9557  (2.4)・
9558 \family typewriter
9559
9560 \backslash
9561 keywords
9562 \family default
9563  (2.5)・
9564 \family typewriter
9565
9566 \backslash
9567 section
9568 \family default
9569  (2.7)・
9570 \family typewriter
9571
9572 \backslash
9573 subsection
9574 \family default
9575  (2.7)・
9576 \family typewriter
9577
9578 \backslash
9579 subsubsection
9580 \family default
9581  (2.7)・
9582 \family typewriter
9583
9584 \backslash
9585 paragraph
9586 \family default
9587  (2.7)・
9588 \family typewriter
9589
9590 \backslash
9591 facility
9592 \family default
9593  (2.10)・
9594 \family typewriter
9595
9596 \backslash
9597 begin{displaymath}
9598 \family default
9599  (2.12)・
9600 \family typewriter
9601
9602 \backslash
9603 begin{equation}
9604 \family default
9605  (2.12)・
9606 \family typewriter
9607
9608 \backslash
9609 begin{eqnarray}
9610 \family default
9611  (2.12)・
9612 \family typewriter
9613
9614 \backslash
9615 begin{mathletters}
9616 \family default
9617  (2.12)・
9618 \family typewriter
9619
9620 \backslash
9621 begin{thebibliography}
9622 \family default
9623  (2.13.1)・
9624 \family typewriter
9625
9626 \backslash
9627 bibitem
9628 \family default
9629  (2.13.2)・全引用コマンドとその派生(2.13.2)・一般的なgraphicx図コマンド(2.14.1)・
9630 \family typewriter
9631
9632 \backslash
9633 begin{table}
9634 \family default
9635  (2.15.4)・
9636 \family typewriter
9637
9638 \backslash
9639 begin{tabular}
9640 \family default
9641  (2.15.4)・
9642 \family typewriter
9643
9644 \backslash
9645 caption
9646 \family default
9647  (2.15.4)・
9648 \family typewriter
9649
9650 \backslash
9651 label
9652 \family default
9653  (他にもあるが特に2.15.4)・
9654 \family typewriter
9655
9656 \backslash
9657 tablerefs
9658 \family default
9659  (2.15.5)・
9660 \family typewriter
9661
9662 \backslash
9663 tablecomments
9664 \family default
9665  (2.15.5)・
9666 \family typewriter
9667
9668 \backslash
9669 url
9670 \family default
9671  (2.17.4)・
9672 \family typewriter
9673
9674 \backslash
9675 end{document}
9676 \family default
9677  (2.18).
9678 \end_layout
9679
9680 \begin_layout Standard
9681 以下のスタイルオプションも正しく動作します.
9682 \family typewriter
9683 longabstract
9684 \family default
9685  (2.4)・
9686 \family typewriter
9687 preprint
9688 \family default
9689  (3.2.1)・
9690 \family typewriter
9691 preprint2
9692 \family default
9693  (3.2.2)・
9694 \family typewriter
9695 eqsecnum
9696 \family default
9697  (3.3)・
9698 \family typewriter
9699 flushrt
9700 \family default
9701  (3.4).これらは,
9702 \begin_inset Flex MenuItem
9703 status collapsed
9704
9705 \begin_layout Plain Layout
9706 文書\SpecialChar menuseparator
9707 設定
9708 \end_layout
9709
9710 \end_inset
9711
9712 にある,
9713 \family sans
9714 クラスオプション
9715 \family default
9716
9717 \family sans
9718 任意設定
9719 \family default
9720 ボックスに入力してください.
9721 \end_layout
9722
9723 \begin_layout Subsubsection
9724 動作するが,若干説明が必要なもの
9725 \end_layout
9726
9727 \begin_layout Standard
9728 以下のコマンドは動作しますが,若干の説明が必要です.
9729 \end_layout
9730
9731 \begin_layout Itemize
9732 以下の項目は,学術誌の編集者向けに取ってあるものですが,どうしても必要ならば,\SpecialChar LaTeX
9733 プリアンブルに入れることができます.
9734 \family typewriter
9735
9736 \backslash
9737 received
9738 \family default
9739
9740 \family typewriter
9741
9742 \backslash
9743 revised
9744 \family default
9745
9746 \family typewriter
9747
9748 \backslash
9749 accepted
9750 \family default
9751
9752 \family typewriter
9753
9754 \backslash
9755 ccc
9756 \family default
9757
9758 \family typewriter
9759 cpright
9760 \family default
9761 (すべて 2.1.3).
9762 \end_layout
9763
9764 \begin_layout Itemize
9765 以下の項目は,\SpecialChar LaTeX
9766 のプリアンブルに置くことができるもので,これらは,ひな型ファイルには,空の引数と共に含まれています.
9767 \family typewriter
9768
9769 \backslash
9770 slugcomment
9771 \family default
9772 (2.1.4)・
9773 \family typewriter
9774
9775 \backslash
9776 shorttitle
9777 \family default
9778 (2.1.5)・
9779 \family typewriter
9780
9781 \backslash
9782 shortauthors
9783 \family default
9784 (2.1.5).
9785 \end_layout
9786
9787 \begin_layout Itemize
9788
9789 \family typewriter
9790
9791 \backslash
9792 email
9793 \family default
9794 (2.3)―「単独で」使うことはできますが,段落の途中で使うことはできません.埋め込む必要がある場合には,\SpecialChar TeX
9795 コードを使用してください.
9796 \end_layout
9797
9798 \begin_layout Itemize
9799
9800 \family typewriter
9801
9802 \backslash
9803 and
9804 \family default
9805 (2.3)―後ろに{}が付記されます.これはエラーの原因にはなりません.
9806 \end_layout
9807
9808 \begin_layout Itemize
9809
9810 \family typewriter
9811
9812 \backslash
9813 notetoeditor
9814 \family default
9815 (2.6)―「単独で」使うことはできますが,段落の途中で使うことはできません.埋め込む必要がある場合には,\SpecialChar TeX
9816 コードを使用してください.
9817 \end_layout
9818
9819 \begin_layout Itemize
9820
9821 \family typewriter
9822
9823 \backslash
9824 placetable
9825 \family default
9826 (2.8)―相互参照用タグを挿入することはできません.手動でタグ名を入力する必要があります.
9827 \end_layout
9828
9829 \begin_layout Itemize
9830
9831 \family typewriter
9832
9833 \backslash
9834 placefigure
9835 \family default
9836 (2.8)—
9837 \family typewriter
9838
9839 \backslash
9840 placetable
9841 \family default
9842 と同様.
9843 \end_layout
9844
9845 \begin_layout Itemize
9846
9847 \family typewriter
9848
9849 \backslash
9850 acknowledgements
9851 \family default
9852 (2.9)―後ろに{}が付記されます.これはエラーの原因にはなりません.
9853 \end_layout
9854
9855 \begin_layout Itemize
9856
9857 \family typewriter
9858
9859 \backslash
9860 appendix
9861 \family default
9862 (2.11)―後ろに{}が付記されます.これはエラーの原因にはなりません.
9863 \end_layout
9864
9865 \begin_layout Itemize
9866
9867 \family typewriter
9868
9869 \backslash
9870 figcaption
9871 \family default
9872 (2.14.2)―文章のはじめにカーソルを置いて
9873 \begin_inset Flex MenuItem
9874 status collapsed
9875
9876 \begin_layout Plain Layout
9877 挿入\SpecialChar menuseparator
9878 短縮タイトル
9879 \end_layout
9880
9881 \end_inset
9882
9883 を選択すれば,非必須のファイル名引数を挿入することができます.「短縮タイトル」とありますが,
9884 \family typewriter
9885
9886 \backslash
9887 figcaption
9888 \family default
9889 が必要とする型の非必須引数を挿入します.望むらくはいつの日か改名されることでしょう.
9890 \end_layout
9891
9892 \begin_layout Itemize
9893
9894 \family typewriter
9895
9896 \backslash
9897 objectname
9898 \family default
9899 (2.17.1)―非必須パラメータとしてカタログIDを取る以外は,
9900 \family typewriter
9901
9902 \backslash
9903 figcaption
9904 \family default
9905 と同様.
9906 \end_layout
9907
9908 \begin_layout Itemize
9909
9910 \family typewriter
9911
9912 \backslash
9913 dataset
9914 \family default
9915 (2.17.1)―非必須パラメータとしてカタログIDを取る以外は,
9916 \family typewriter
9917
9918 \backslash
9919 figcaption
9920 \family default
9921 と同様.
9922 \end_layout
9923
9924 \begin_layout Subsubsection
9925 実装されていないため,\SpecialChar TeX
9926 コードを使用するもの
9927 \end_layout
9928
9929 \begin_layout Standard
9930
9931 \family typewriter
9932
9933 \backslash
9934 eqnum
9935 \family default
9936 (2.12)・
9937 \family typewriter
9938
9939 \backslash
9940 setcounter{equation}
9941 \family default
9942 (2.12)・学術誌名略語(2.12.4)・
9943 \family typewriter
9944
9945 \backslash
9946 figurenum
9947 \family default
9948 (2.14.1)・
9949 \family typewriter
9950
9951 \backslash
9952 epsscale
9953 \family default
9954 (2.14.1)・
9955 \family typewriter
9956
9957 \backslash
9958 plotone
9959 \family default
9960 (2.14.1)・
9961 \family typewriter
9962
9963 \backslash
9964 plottwo
9965 \family default
9966 (2.14.1)・
9967 \family typewriter
9968
9969 \backslash
9970 tablenum
9971 \family default
9972 (2.15.4)・
9973 \family typewriter
9974
9975 \backslash
9976 tableline
9977 \family default
9978 (2.15.4:入れたい場所の後ろに,左側セルの最初の要素として挿入する.表中では,\SpecialChar LyX
9979 の方法は使わないでください)・
9980 \family typewriter
9981
9982 \backslash
9983 tablenotemark
9984 \family default
9985 (2.15.5)・
9986 \family typewriter
9987
9988 \backslash
9989 tablenotetext
9990 \family default
9991 (2.15.5)・補遺(2.17)の大半
9992 \family typewriter
9993
9994 \backslash
9995 objectname
9996 \family default
9997
9998 \family typewriter
9999
10000 \backslash
10001 dataset
10002 \family default
10003
10004 \family typewriter
10005
10006 \backslash
10007 url
10008 \family default
10009
10010 \family typewriter
10011
10012 \backslash
10013 email
10014 \family default
10015 を除く.上記参照)・
10016 \family typewriter
10017
10018 \backslash
10019 singlespace
10020 \family default
10021 (3.1)・
10022 \family typewriter
10023
10024 \backslash
10025 doublespace
10026 \family default
10027 (3.1)・
10028 \family typewriter
10029
10030 \backslash
10031 onecolumn
10032 \family default
10033 (3.2)・
10034 \family typewriter
10035
10036 \backslash
10037 twocolumn
10038 \family default
10039 (3.2)
10040 \end_layout
10041
10042 \begin_layout Subsubsection
10043 実装できないもの
10044 \end_layout
10045
10046 \begin_layout Standard
10047 references(2.12.3)環境とdeluxetable(2.14)環境は,少なくとも意味のあるような形で実装することができないので,無視してください.もし,
10048 絶対に,どうしても,deluxetableを使う必要があるならば,テキストエディタで別ファイルとして編集し,
10049 \begin_inset Flex MenuItem
10050 status collapsed
10051
10052 \begin_layout Plain Layout
10053 挿入\SpecialChar menuseparator
10054 ファイル
10055 \begin_inset Formula $\text{\textipa{}}$
10056 \end_inset
10057
10058 \SpecialChar menuseparator
10059 子文書
10060 \end_layout
10061
10062 \end_inset
10063
10064 を使用して,\SpecialChar LyX
10065 ファイルに読み込むことを推奨します.この実例は,
10066 \family typewriter
10067 aas_sample.lyx
10068 \family default
10069 ファイルをご参照ください.
10070 \end_layout
10071
10072 \begin_layout Subsection
10073 FAQとヒントと技とその他の考察
10074 \end_layout
10075
10076 \begin_layout Subsubsection
10077 \SpecialChar LyX
10078 をAAS\SpecialChar TeX
10079 と協調させる
10080 \end_layout
10081
10082 \begin_layout Standard
10083 \SpecialChar LyX
10084 に,新しいレイアウトと文書クラスを認識させるには若干コツが要ります.もしうまく行かなかったら,次のようにしてみてください.
10085 \end_layout
10086
10087 \begin_layout Enumerate
10088 \SpecialChar LaTeX
10089 が,AAS\SpecialChar TeX
10090 を検出できることを確認してください.AAS\SpecialChar TeX
10091 頒布版に含まれる
10092 \family typewriter
10093 sample.tex
10094 \family default
10095 (あるいは
10096 \family typewriter
10097 table.tex
10098 \family default
10099 でも可)を,\SpecialChar LaTeX
10100 やAAS\SpecialChar TeX
10101 とまったく関係のないディレクトリにコピーして,
10102 \family typewriter
10103 sample.tex
10104 \family default
10105 を\SpecialChar LaTeX
10106 にかけてください.
10107 \end_layout
10108
10109 \begin_layout Enumerate
10110
10111 \family typewriter
10112 aastex.layout
10113 \family default
10114 が,\SpecialChar LyX
10115
10116 \family typewriter
10117 layouts
10118 \family default
10119 フォルダにあることを確認してください.
10120 \end_layout
10121
10122 \begin_layout Enumerate
10123 \SpecialChar LyX
10124 中から
10125 \family sans
10126 ツール\SpecialChar menuseparator
10127 環境構成
10128 \family default
10129 を再度実行し,\SpecialChar LyX
10130 を再起動してください.
10131 \end_layout
10132
10133 \begin_layout Enumerate
10134 ひな型ではなく,通常の新規ファイルを開いてください.AAS\SpecialChar TeX
10135 が,
10136 \family sans
10137 文書\SpecialChar menuseparator
10138 設定
10139 \family default
10140 のクラス一覧に表示されていますか?
10141 \end_layout
10142
10143 \begin_layout Standard
10144 既存のAAS\SpecialChar TeX
10145 文書を処理する際に,AAS\SpecialChar TeX
10146 レイアウトを見つけられないとか,「タイトルレイアウトと通常のレイアウトを混在させないでください」といった警告が出るようであ
10147 れば,正しい導入が行われていません.
10148 \end_layout
10149
10150 \begin_layout Subsubsection
10151 表を処理する際の\SpecialChar LaTeX
10152 エラー
10153 \end_layout
10154
10155 \begin_layout Standard
10156 既定では,\SpecialChar LyX
10157 は,表のキャプションやタイトルを中央揃えにしようと試みます.これはAAS\SpecialChar TeX
10158 と悪い相互干渉を発生させるようですので,キャプションやタイトルのどこかをクリッ
10159 クして,
10160 \family sans
10161 編集\SpecialChar menuseparator
10162 段落設定
10163 \family default
10164 を選択し,
10165 \family sans
10166 配置
10167 \family default
10168
10169 \family sans
10170 両端揃え
10171 \family default
10172 に設定してください.私のところではこれで解決しました.
10173 \end_layout
10174
10175 \begin_layout Subsubsection
10176 書誌情報
10177 \end_layout
10178
10179 \begin_layout Standard
10180 若干の注意があります.(1)文献項目の本文中の空白取りが少しおかしくなることがあるようです.書誌情報を入力する際には,最後の著者と,著作年を入れる括弧の間にスペ
10181 ースを
10182 \emph on
10183 入れない
10184 \emph default
10185 ようにしてください.たとえば,
10186 \family typewriter
10187 Ressler(1992)
10188 \family default
10189 はいいですが,
10190 \family typewriter
10191 Ressler (1992)
10192 \family default
10193 ではだめです.(2)書誌情報の入力の仕方は,必ずしも自明ではありません.もっとも簡単な方法は,文書の最後に,最初の書誌情報をまず書き込み,それを
10194 \family sans
10195 書誌情報
10196 \family default
10197 環境としてマークすることです.すると,入力したものの前に,小さな灰色のボックスが現れます.このボックスをクリックして,残りの情報を入力してください.新しい書誌情
10198 報を追加するには,既存の書誌情報の後ろでリターンを押します.すると,新しいボックスの付いた新規行が出てくるので,後は同様にしてください.
10199 \end_layout
10200
10201 \begin_layout Subsubsection
10202 EPSファイルの読み込み
10203 \end_layout
10204
10205 \begin_layout Standard
10206 AAS\SpecialChar TeX
10207 には,自前の図関連コマンド(たとえば
10208 \family typewriter
10209
10210 \backslash
10211 plotone
10212 \family default
10213 )がありますが,私は(既定のgraphicxを使った)\SpecialChar LaTeX
10214 の標準図コマンドの方がずっと好きです.望めば,図フロートボックスに,\SpecialChar TeX
10215 コードで
10216 \family typewriter
10217
10218 \backslash
10219 plotone
10220 \family default
10221 等のコマンドを挿入することはできますが,私には正しいレイアウトを得ることができた試しがありません.標準の画像コマンドを使えば,\SpecialChar LyX
10222 は,
10223 \family typewriter
10224
10225 \backslash
10226 usepackage{graphics}
10227 \family default
10228 コマンドを\SpecialChar LaTeX
10229 プリアンブルに挿入し,図を\SpecialChar LaTeX2e
10230 の標準的な方法で取り扱って,文章の中にちりばめます.現在,ApJは,ちょうどこのようにして作成した図を受け入れていますが,A
10231 Jはまだ「すべてを末尾に積み上げる」方法を使用しているかもしれません.
10232 \end_layout
10233
10234 \begin_layout Subsubsection
10235 可能だったが,実装しなかったもの
10236 \end_layout
10237
10238 \begin_layout Standard
10239 「素敵な」ものの中には,実装することも可能だったけれども,あえて実装しなかったものがあります.たとえば,紙の原稿ではダブルスペースであったとしても,\SpecialChar LyX
10240 ウィンドウ中
10241 で,文章をダブルスペースにする意味はないと考えました.また,preprint様式とpreprint2様式を,独立したレイアウトにすることもしませんでした.いずれ
10242 にしても,執筆時間のほとんどを,平の原稿モードで使うのがほとんどですから,これらの機能でディスクスペースを消費しないことにしました.
10243 \end_layout
10244
10245 \begin_layout Subsection
10246 最後に
10247 \end_layout
10248
10249 \begin_layout Standard
10250 これまでに進んできた道のりは,長い人も短い人もいることでしょう.私には,ApJとAJに発表した論文がありますが,その努力の98
10251 \begin_inset space \thinspace{}
10252 \end_inset
10253
10254 %は\SpecialChar LyX
10255 上で為されました.残りの2
10256 \begin_inset space \thinspace{}
10257 \end_inset
10258
10259 %が,\SpecialChar LaTeX
10260 での後処理と若干の後片付けです.投稿の過程では何のトラブルもなく,これらの学術誌が通常の投稿原稿と違う点に気づくことはなかったでしょう.ですから,がんばっ
10261 て発表してください!
10262 \end_layout
10263
10264 \begin_layout Section
10265 AMS \SpecialChar LaTeX
10266
10267 \end_layout
10268
10269 \begin_layout Standard
10270
10271 \noun on
10272 David Johnson
10273 \noun default
10274 文 
10275 \noun on
10276 Richard Heck
10277 \noun default
10278 改訂
10279 \begin_inset VSpace bigskip
10280 \end_inset
10281
10282
10283 \end_layout
10284
10285 \begin_layout Standard
10286 AMS \SpecialChar LaTeX
10287 レイアウトは,American Mathematical Society(アメリカ数学会)の刊行物に投稿する数学論文用のスタイルです.レイアウトは,特定
10288 の学術誌向けに仕立てられてはいませんが,簡単にそうすることができます.各学術誌毎の指示については,AMSの説明書をご参照ください(通常は,\SpecialChar TeX
10289 出力中の一行を変更する
10290 必要があるだけです).AMSの説明書は,ウェブWeb上の
10291 \begin_inset Flex URL
10292 status open
10293
10294 \begin_layout Plain Layout
10295
10296 http://www.ams.org
10297 \end_layout
10298
10299 \end_inset
10300
10301 か,FTPで
10302 \begin_inset Flex URL
10303 status open
10304
10305 \begin_layout Plain Layout
10306
10307 ftp://ftp.ams.org/pub/tex/amslatex/
10308 \end_layout
10309
10310 \end_inset
10311
10312 から入手することができます.これらのレイアウトは,数学的な文章を書くのであれば,どんなときでも適切かつ有用であるはずです.
10313 \end_layout
10314
10315 \begin_layout Standard
10316 基本となるAMS \SpecialChar LaTeX
10317 レイアウトには,以下の二つがあります.
10318 \end_layout
10319
10320 \begin_layout Itemize
10321 amsart:標準のAMS article書式.
10322 \end_layout
10323
10324 \begin_layout Itemize
10325 amsbook:標準のAMS book(実際はモノグラフ)書式.
10326 \end_layout
10327
10328 \begin_layout Standard
10329 これらのレイアウトには,それ自身では,AMSクラスを使用するのに必要最低限のものしか含まれていません.特に,定理や補題などを設定するのに使用される「theore
10330 m」環境は,何一つ含まれていません.これらは,代わりに
10331 \begin_inset Flex Code
10332 status collapsed
10333
10334 \begin_layout Plain Layout
10335 定理(AMS)
10336 \end_layout
10337
10338 \end_inset
10339
10340 モジュールに収録されており,AMSクラスのいずれかを選択すると,このモジュールが既定で読み込まれるようになっています(これは別のクラスでも使用することができ,別
10341 のものに変えたいときは取り除くこともできます).少し使用頻度の低いものとしては,
10342 \begin_inset Flex Code
10343 status collapsed
10344
10345 \begin_layout Plain Layout
10346 定理(AMS拡張)
10347 \end_layout
10348
10349 \end_inset
10350
10351 モジュールがあり,これは手動で読み込む必要があります.
10352 \end_layout
10353
10354 \begin_layout Standard
10355 既定では,定理類は,文書を通して連番が振られますが,これは
10356 \begin_inset Flex Code
10357 status collapsed
10358
10359 \begin_layout Plain Layout
10360 定理(節毎連番)
10361 \end_layout
10362
10363 \end_inset
10364
10365 モジュールを読み込めば変更することができ,
10366 \begin_inset Flex Code
10367 status collapsed
10368
10369 \begin_layout Plain Layout
10370 book (AMS)
10371 \end_layout
10372
10373 \end_inset
10374
10375 を使用している場合には
10376 \begin_inset Flex Code
10377 status collapsed
10378
10379 \begin_layout Plain Layout
10380 定理(章毎連番)
10381 \end_layout
10382
10383 \end_inset
10384
10385 を用いても変更することができます.これらを用いると,出力は
10386 \begin_inset Formula $n.m$
10387 \end_inset
10388
10389 のようになり,最初の数字は節番号(または章番号),次の数字はそれまで同節内(章内)に現れた出力の全数を表します.大半の環境は,連番なしでも用いることができます.
10390 連番なしのものは,環境名の後ろにアスタリスクを付けたもので表されます.連番なしの出力
10391 \emph on
10392 のみ
10393 \emph default
10394 が欲しい場合には,
10395 \begin_inset Flex Code
10396 status collapsed
10397
10398 \begin_layout Plain Layout
10399 定理(連番なし)
10400 \end_layout
10401
10402 \end_inset
10403
10404 モジュールを用います.
10405 \end_layout
10406
10407 \begin_layout Standard
10408 これらのモジュールは,AMSクラスで使用する
10409 \emph on
10410 必要はない
10411 \emph default
10412 ことに注意してください.
10413 \begin_inset Flex Code
10414 status collapsed
10415
10416 \begin_layout Plain Layout
10417 定理(AMS)
10418 \end_layout
10419
10420 \end_inset
10421
10422 モジュールや上述の他のモジュールは,他のクラス,たとえば
10423 \begin_inset Flex Code
10424 status collapsed
10425
10426 \begin_layout Plain Layout
10427 article
10428 \end_layout
10429
10430 \end_inset
10431
10432
10433 \begin_inset Flex Code
10434 status collapsed
10435
10436 \begin_layout Plain Layout
10437 report
10438 \end_layout
10439
10440 \end_inset
10441
10442
10443 \begin_inset Flex Code
10444 status collapsed
10445
10446 \begin_layout Plain Layout
10447 book (KOMA-script)
10448 \end_layout
10449
10450 \end_inset
10451
10452 などで問題なく使用することができます.
10453 \end_layout
10454
10455 \begin_layout Subsection
10456 これらのレイアウトが提供するもの
10457 \end_layout
10458
10459 \begin_layout Standard
10460 これらのレイアウトが提供している環境を列挙すると,長い一覧となります.AMS-\SpecialChar LaTeX
10461 では,実のところ,「theorem」環境の派生型を際限なく定義していくことが可能で
10462 す.しかし,AMSは,\SpecialChar LyX
10463 で利用可能になっている環境のみを使用することを推奨しています.
10464 \end_layout
10465
10466 \begin_layout Standard
10467 \begin_inset Flex Code
10468 status collapsed
10469
10470 \begin_layout Plain Layout
10471 article (AMS)
10472 \end_layout
10473
10474 \end_inset
10475
10476
10477 \begin_inset Flex Code
10478 status collapsed
10479
10480 \begin_layout Plain Layout
10481 book (AMS)
10482 \end_layout
10483
10484 \end_inset
10485
10486 には,——
10487 \begin_inset space ~
10488 \end_inset
10489
10490
10491 \begin_inset Flex Noun
10492 status collapsed
10493
10494 \begin_layout Plain Layout
10495
10496 \end_layout
10497
10498 \end_inset
10499
10500
10501 \begin_inset Flex Noun
10502 status collapsed
10503
10504 \begin_layout Plain Layout
10505 書誌情報
10506 \end_layout
10507
10508 \end_inset
10509
10510
10511 \begin_inset Flex Noun
10512 status collapsed
10513
10514 \begin_layout Plain Layout
10515 タイトル
10516 \end_layout
10517
10518 \end_inset
10519
10520
10521 \begin_inset Flex Noun
10522 status collapsed
10523
10524 \begin_layout Plain Layout
10525 著者
10526 \end_layout
10527
10528 \end_inset
10529
10530
10531 \begin_inset Flex Noun
10532 status collapsed
10533
10534 \begin_layout Plain Layout
10535 日付
10536 \end_layout
10537
10538 \end_inset
10539
10540 のような標準環境の他に
10541 \begin_inset space ~
10542 \end_inset
10543
10544 ——
10545 \begin_inset space ~
10546 \end_inset
10547
10548 以下の環境があります.
10549 \end_layout
10550
10551 \begin_layout Description
10552 住所 これは著者の恒久的な住所です.
10553 \end_layout
10554
10555 \begin_layout Description
10556 現在の住所 住所と別に指定されているときには,著者の投稿時の仮初めの住所です.
10557 \end_layout
10558
10559 \begin_layout Description
10560 電子メール 著者の電子メールアドレス
10561 \end_layout
10562
10563 \begin_layout Description
10564 URL 著者のウェブアドレス.任意.
10565 \end_layout
10566
10567 \begin_layout Description
10568 キーワード 論文中で論じられているトピックを識別するためのキーワードやキーフレーズ.
10569 \end_layout
10570
10571 \begin_layout Description
10572 分野分類 
10573 \emph on
10574 Mathematical Reviews
10575 \emph default
10576 に説明が公表されているAMS Subject Classificationsの分類番号を指します.上述したAMSのウェブサイトでも,オンラインで見ることができま
10577 す.
10578 \end_layout
10579
10580 \begin_layout Description
10581 謝辞
10582 \end_layout
10583
10584 \begin_layout Description
10585 献呈
10586 \end_layout
10587
10588 \begin_layout Description
10589 翻訳者
10590 \end_layout
10591
10592 \begin_layout Standard
10593 以下の環境は,
10594 \begin_inset Flex Code
10595 status collapsed
10596
10597 \begin_layout Plain Layout
10598 定理
10599 \end_layout
10600
10601 \end_inset
10602
10603 モジュールと
10604 \begin_inset Flex Code
10605 status collapsed
10606
10607 \begin_layout Plain Layout
10608 定理(AMS)
10609 \end_layout
10610
10611 \end_inset
10612
10613 モジュールの両方で提供され,後者の場合には,星付き(連番なし)版と星なし(連番)版の両方が提供されます.
10614 \begin_inset Flex Code
10615 status collapsed
10616
10617 \begin_layout Plain Layout
10618 定理(連番なし)
10619 \end_layout
10620
10621 \end_inset
10622
10623 モジュールでは,同環境の星付き版だけが提供されます.
10624 \end_layout
10625
10626 \begin_layout Theorem
10627 これは,通常,得られた主要な結果を叙述するのに使用されます.
10628 \end_layout
10629
10630 \begin_layout Corollary*
10631 これは直前の叙述から比較的直接に導き出せる結果を叙述するのに使います.これも主要な結果であることがあります.
10632 \end_layout
10633
10634 \begin_layout Lemma
10635 他の叙述を証明するために必要とされる,比較的小さな結果です.
10636 \end_layout
10637
10638 \begin_layout Proposition
10639 議論されている一般的な理論に(希望的には)何かを付け加えるような,主要ではない結果です.
10640 \end_layout
10641
10642 \begin_layout Conjecture
10643 正当化を与えずに述べられた叙述で,著者には証明法がわからないけれども,正しいと(少なくとも著者にとっては)思われるものです.
10644 \end_layout
10645
10646 \begin_layout Definition*
10647 これは自明でしょう.この環境のフォントは,前述の環境とは異なるフォントが使用されます.
10648 \end_layout
10649
10650 \begin_layout Problem
10651 これが何を指すかは必ずしも特定されていません.ご自分で解明してください.
10652 \end_layout
10653
10654 \begin_layout Exercise*
10655 この環境の説明を記述せよ.
10656 \end_layout
10657
10658 \begin_layout Note
10659 この環境もtheorem型,通常は重要性の低い所見に用いられます.
10660 \end_layout
10661
10662 \begin_layout Claim*
10663 より大きな結果の証明を与える途中で,しばしば用いられます.
10664 \end_layout
10665
10666 \begin_layout Case
10667 一般的に,これらはある条件の特定の場合を取り上げて,長い議論を区切るのに用いられます.
10668 \end_layout
10669
10670 \begin_layout Case
10671 ケースの連番の枠組みは,それ自身で独立していて,他の連番の叙述とは区別されます.
10672 \end_layout
10673
10674 \begin_layout Proof
10675 この環境の最後には,証了記号(通常は四角ですがスタイルによって変わります)が置かれます.この環境の中に別の環境を入れたい——たとえばケース環境など——場合で,証
10676 了記号は証明環境の終わりにのみ現れるようにしたい場合には,他の環境は証明環境の中に入れ子にしなくてはなりません.入れ子に関する情報については,
10677 \emph on
10678 ユーザーの手引き
10679 \emph default
10680
10681 \emph on
10682 環境を入れ子にする
10683 \emph default
10684 の節をご覧ください.
10685 \end_layout
10686
10687 \begin_layout Standard
10688 そして,以下は
10689 \begin_inset Flex Code
10690 status collapsed
10691
10692 \begin_layout Plain Layout
10693 定理(AMS拡張)
10694 \end_layout
10695
10696 \end_inset
10697
10698 で提供されるものです.
10699 \end_layout
10700
10701 \begin_layout Criterion*
10702 必要とされる条件です.
10703 \end_layout
10704
10705 \begin_layout Algorithm*
10706 使用する一般的手順です.
10707 \end_layout
10708
10709 \begin_layout Axiom*
10710 議論されている系内部で真と仮定される性質や命題です.
10711 \end_layout
10712
10713 \begin_layout Condition*
10714 議論の現在の文脈で仮定されている条件を述べるのに,よく用いられます.
10715 \end_layout
10716
10717 \begin_layout Note*
10718 注記と同様です.
10719 \end_layout
10720
10721 \begin_layout Notation*
10722 表記法の説明に用いられます.
10723 \end_layout
10724
10725 \begin_layout Summary
10726 本当に説明する必要がありますか?
10727 \end_layout
10728
10729 \begin_layout Acknowledgement*
10730 謝辞(acknowledgement)です.
10731 \end_layout
10732
10733 \begin_layout Conclusion*
10734 長い議論の終わりに時々用いられます.
10735 \end_layout
10736
10737 \begin_layout Fact
10738 命題と同様の用いられ方をしますが,だいたい長くないものに使われるようです.
10739 \end_layout
10740
10741 \begin_layout Standard
10742 さらに,AMSクラスは,AMS \SpecialChar LaTeX
10743 パッケージとAMSフォントパッケージを自動的に提供します.これらの環境を使用するためには,お使いのシステム上で利用可能となってい
10744 る必要があります.
10745 \end_layout
10746
10747 \begin_layout Section
10748 AGU各誌(
10749 \family sans
10750 aguplus)
10751 \end_layout
10752
10753 \begin_layout Standard
10754
10755 \noun on
10756 Martin Vermeer
10757 \noun default
10758
10759 \end_layout
10760
10761 \begin_layout Subsection
10762 概要
10763 \end_layout
10764
10765 \begin_layout Standard
10766 これはAmerican Geophysical Society(アメリカ地球物理学会) の各学術誌向けのレイアウトファイルです.AGU発行のクラスファイルおよび
10767 AGUplusの両方(これらは
10768 \begin_inset Flex URL
10769 status collapsed
10770
10771 \begin_layout Plain Layout
10772
10773 http://publications.agu.org/files/2013/08/AGU-LaTeX.zip
10774 \end_layout
10775
10776 \end_inset
10777
10778 にあります)が導入されていることが必要です.
10779 \end_layout
10780
10781 \begin_layout Subsection
10782 新しいスタイル
10783 \end_layout
10784
10785 \begin_layout Standard
10786
10787 \family sans
10788 段落
10789 \family default
10790 および
10791 \family sans
10792 段落*
10793 \family default
10794 は,定義し直されています.\SpecialChar LyX
10795 の画面では,依然として
10796 \family sans
10797 段落
10798 \family default
10799
10800 \family sans
10801 段落*
10802 \family default
10803 と表示されますが,AGUクラスにおける\SpecialChar LaTeX
10804 の対応物は,
10805 \family sans
10806 Subsubsubsection
10807 \family default
10808
10809 \family sans
10810 Subsubsubsection*
10811 \family default
10812 です.
10813 \end_layout
10814
10815 \begin_layout Standard
10816 新しく定義されたスタイルには,
10817 \family sans
10818 左ヘッダ
10819 \family default
10820
10821 \family sans
10822 右ヘッダ
10823 \family default
10824
10825 \family sans
10826 受理日
10827 \family default
10828
10829 \family sans
10830 改訂
10831 \family default
10832
10833 \family sans
10834 採択日
10835 \family default
10836
10837 \family sans
10838 CCC
10839 \family default
10840
10841 \family sans
10842 論文ID
10843 \family default
10844
10845 \family sans
10846 著者住所
10847 \family default
10848
10849 \family sans
10850 廃棄用コメント
10851 \family default
10852 があります.これらは,ほとんど草稿用属性で,AGUクラス説明書で説明されています.
10853 \end_layout
10854
10855 \begin_layout Standard
10856 おそらく,これはまだ恐ろしく不完全です.
10857 \end_layout
10858
10859 \begin_layout Subsection
10860 新しいフロート
10861 \end_layout
10862
10863 \begin_layout Standard
10864
10865 \family sans
10866 平面表(Planotable
10867 \family default
10868 )と
10869 \family sans
10870 挿絵
10871 \family default
10872 (Plate)が新しいフロートです.また,
10873 \family sans
10874 表キャプション
10875 \family default
10876 も付け加えられています.
10877 \end_layout
10878
10879 \begin_layout Subsection
10880 サポートされている学術誌
10881 \end_layout
10882
10883 \begin_layout Itemize
10884
10885 \emph on
10886 Journal of Geophysical Research
10887 \emph default
10888
10889 \family typewriter
10890 jgrga.layout
10891 \family default
10892  — Martin Vermeer
10893 \end_layout
10894
10895 \begin_layout Standard
10896 ここにあなたの作ったものを加えてください.難しくはありません.
10897 \family typewriter
10898 jgrga.layout
10899 \family default
10900 と 
10901 \family typewriter
10902 aguplus.inc
10903 \family default
10904 を用例として見てください.
10905 \end_layout
10906
10907 \begin_layout Subsection
10908 バグと注意すべきこと
10909 \end_layout
10910
10911 \begin_layout Standard
10912 新しいレイアウトを使うためには,新規文書の作成時に以下の手順を行う必要があります.
10913 \end_layout
10914
10915 \begin_layout Enumerate
10916
10917 \emph on
10918 babelを無効にしてください.
10919 \emph default
10920 これは,
10921 \family sans
10922 ツール\SpecialChar menuseparator
10923 設定
10924 \family default
10925 メニュー項目で行うことができます(AGUの論文は常に英語ですよね.ですから他の言語は
10926 \emph on
10927 選ばないで下さい
10928 \emph default
10929 ).
10930 \end_layout
10931
10932 \begin_layout Enumerate
10933 使用文書の追加オプションフィールドに
10934 \family typewriter
10935 jgrga
10936 \family default
10937 と入力してください(すみません,これはバグです).
10938 \end_layout
10939
10940 \begin_layout Enumerate
10941 Bib\SpecialChar TeX
10942 差込枠の2番目のフィールドに
10943 \family sans
10944 agu
10945 \family default
10946 と入力して,書誌情報のスタイルに
10947 \family typewriter
10948 agu.bst
10949 \family default
10950 を使用していることを確認してください.標準スタイルはうまく動作しません.
10951 \end_layout
10952
10953 \begin_layout Section
10954 Broadway
10955 \end_layout
10956
10957 \begin_layout Standard
10958
10959 \noun on
10960 Garst Reese
10961 \noun default
10962
10963 \end_layout
10964
10965 \begin_layout Subsection
10966 はじめに
10967 \end_layout
10968
10969 \begin_layout Standard
10970 Broadwayは演劇を書くためのものです.書式はHollywoodよりも装飾的で,それほど標準化されていません.この書式はワークショップに向いているでしょう.
10971 \end_layout
10972
10973 \begin_layout Subsection
10974 特別な問題
10975 \end_layout
10976
10977 \begin_layout Standard
10978 Hollywoodと同様です.
10979 \end_layout
10980
10981 \begin_layout Subsection
10982 特別の機能
10983 \end_layout
10984
10985 \begin_layout Standard
10986
10987 \family sans
10988 話者
10989 \family default
10990 の名前をラベルとして挿入し,名前を挿入する際には,このラベルを相互参照してください.相互参照ダイアログには,登場人物の現在の配役が表示されます.
10991 \end_layout
10992
10993 \begin_layout Subsection
10994 用紙寸法と余白
10995 \end_layout
10996
10997 \begin_layout Standard
10998 USレター寸法で,余白は左1.6インチ,右0.75インチ,上0.5インチ,下0.75インチです.
10999 \end_layout
11000
11001 \begin_layout Subsection
11002 環境
11003 \end_layout
11004
11005 \begin_layout Standard
11006 以下の環境を使うことができます.右に記してある
11007 \begin_inset Flex Ruby
11008 status collapsed
11009
11010 \begin_layout Plain Layout
11011
11012 \begin_inset Argument post:1
11013 status collapsed
11014
11015 \begin_layout Plain Layout
11016 キー
11017 \end_layout
11018
11019 \end_inset
11020
11021
11022 \end_layout
11023
11024 \end_inset
11025
11026 割当ては,broadway.bindを使った場合のものです.
11027 \end_layout
11028
11029 \begin_layout Itemize
11030
11031 \family sans
11032 標準
11033 \begin_inset Newline newline
11034 \end_inset
11035
11036
11037 \family default
11038 これは使わなくていいはずですが,他の環境が当てはまらない場合のためにここに挙げておきます.
11039 \end_layout
11040
11041 \begin_layout Itemize
11042
11043 \family sans
11044 ト書き
11045 \begin_inset space \hfill{}
11046 \end_inset
11047
11048 M-z n
11049 \begin_inset Newline newline
11050 \end_inset
11051
11052
11053 \family default
11054 舞台設定と動作の説明に用います.最初に話者名をすべて大文字で書いておきます.
11055 \end_layout
11056
11057 \begin_layout Itemize
11058
11059 \family sans
11060
11061 \begin_inset space \hfill{}
11062 \end_inset
11063
11064 M-z a
11065 \begin_inset Newline newline
11066 \end_inset
11067
11068
11069 \family default
11070 自動的に連番が振られます.連番は,画面上ではアラビア数字ですが,出力ではローマ数字です.
11071 \end_layout
11072
11073 \begin_layout Itemize
11074
11075 \family sans
11076 幕*
11077 \begin_inset space \hfill{}
11078 \end_inset
11079
11080 M-z S at
11081 \begin_inset Newline newline
11082 \end_inset
11083
11084
11085 \family default
11086 幕の副題です.単に中央揃えの文になります.
11087 \end_layout
11088
11089 \begin_layout Itemize
11090
11091 \family sans
11092 場面
11093 \begin_inset space \hfill{}
11094 \end_inset
11095
11096 M-z S-S
11097 \begin_inset Newline newline
11098 \end_inset
11099
11100
11101 \family default
11102 自動的に連番は振られませんので,手動で番号を付けてください.これは私がどうすればいいか分からなかったためです.
11103 \end_layout
11104
11105 \begin_layout Itemize
11106
11107 \family sans
11108 幕開きに:
11109 \begin_inset space \hfill{}
11110 \end_inset
11111
11112 M-z S-R
11113 \begin_inset Newline newline
11114 \end_inset
11115
11116
11117 \family default
11118 ト書きの特殊な場合で,カーテンが上がるときの舞台設定と動作を説明します.
11119 \end_layout
11120
11121 \begin_layout Itemize
11122
11123 \family sans
11124 話者
11125 \begin_inset space \hfill{}
11126 \end_inset
11127
11128 M-z s
11129 \begin_inset Newline newline
11130 \end_inset
11131
11132
11133 \family default
11134 話者(役者)の配役です.すべて大文字で中央揃えに置かれます.
11135 \end_layout
11136
11137 \begin_layout Itemize
11138
11139 \family sans
11140 括弧付き
11141 \begin_inset space \hfill{}
11142 \end_inset
11143
11144 M-z p
11145 \begin_inset Newline newline
11146 \end_inset
11147
11148
11149 \family default
11150 話者への指示です.括弧は自動的に挿入されます.画面上には左括弧(のみが表示されますが,印字出力には両方の括弧が表示されます.この環境は,
11151 \family sans
11152 対話
11153 \family default
11154 の中だけで使用されます. 
11155 \end_layout
11156
11157 \begin_layout Itemize
11158
11159 \family sans
11160 対話
11161 \begin_inset space \hfill{}
11162 \end_inset
11163
11164 M-z d
11165 \begin_inset Newline newline
11166 \end_inset
11167
11168
11169 \family default
11170 話者の言う内容.
11171 \end_layout
11172
11173 \begin_layout Itemize
11174
11175 \family sans
11176 幕切れ
11177 \begin_inset space \hfill{}
11178 \end_inset
11179
11180 M-z S-C
11181 \begin_inset Newline newline
11182 \end_inset
11183
11184
11185 \family default
11186 幕が降ります.
11187 \end_layout
11188
11189 \begin_layout Itemize
11190
11191 \family sans
11192 タイトル
11193 \begin_inset space \hfill{}
11194 \end_inset
11195
11196 M-z S-T
11197 \end_layout
11198
11199 \begin_layout Itemize
11200
11201 \family sans
11202 著者
11203 \begin_inset space \hfill{}
11204 \end_inset
11205
11206 M-z S-A
11207 \end_layout
11208
11209 \begin_layout Itemize
11210
11211 \family sans
11212 右寄せ住所
11213 \begin_inset space \hfill{}
11214 \end_inset
11215
11216 M-z r
11217 \end_layout
11218
11219 \begin_layout Section
11220 Dinbrief
11221 \end_layout
11222
11223 \begin_layout Standard
11224 文書クラス
11225 \family sans
11226 dinbrief
11227 \family default
11228 は,ドイツの慣習に則った書簡の組版を行うのに用いられます.ひな型ファイルが
11229 \family typewriter
11230 .../lyx/share/templates
11231 \family default
11232 にあるので,それを土台として使用してください.
11233 \end_layout
11234
11235 \begin_layout Section
11236 EGS各誌
11237 \family sans
11238 (egs)
11239 \end_layout
11240
11241 \begin_layout Standard
11242
11243 \noun on
11244 Martin Vermeer
11245 \noun default
11246
11247 \end_layout
11248
11249 \begin_layout Subsection
11250 概要
11251 \end_layout
11252
11253 \begin_layout Standard
11254 これはEuropean Geophysical Society(欧州地球物理学会)の学術誌向けのレイアウトファイルです.必要とされる
11255 \family typewriter
11256 egs.cls
11257 \family default
11258 は,EGSのウェブサイト
11259 \begin_inset Flex URL
11260 status collapsed
11261
11262 \begin_layout Plain Layout
11263
11264 http://www.copernicus.org/
11265 \end_layout
11266
11267 \end_inset
11268
11269 からダウンロードできます.
11270 \end_layout
11271
11272 \begin_layout Subsection
11273 新しいスタイル
11274 \end_layout
11275
11276 \begin_layout Standard
11277 新しいスタイルとして,
11278 \family sans
11279 右寄せ住所
11280 \family default
11281
11282 \family sans
11283 \SpecialChar LaTeX
11284 タイトル
11285 \family default
11286
11287 \family sans
11288 所属
11289 \family default
11290
11291 \family sans
11292 学術誌名
11293 \family default
11294
11295 \family sans
11296 原稿番号
11297 \family default
11298
11299 \family sans
11300 筆頭著者
11301 \family default
11302
11303 \family sans
11304 受理日
11305 \family default
11306
11307 \family sans
11308 採択日
11309 \family default
11310
11311 \family sans
11312 オフセット
11313 \family default
11314 があります.現在のレイアウトファイルは,残念ながらほとんどモジュール化されておらず,さまざまな
11315 \family typewriter
11316 std*.inc
11317 \family default
11318 ファイルを読み込む形に変えた方が便利になると思われます.
11319 \end_layout
11320
11321 \begin_layout Section
11322 Elsevier各誌
11323 \end_layout
11324
11325 \begin_layout Standard
11326 \SpecialChar LyX
11327 ひな型ファイルの
11328 \family typewriter
11329 elsarticle.lyx
11330 \family default
11331 を参照してください.必要な情報は全てそこにあります.
11332 \end_layout
11333
11334 \begin_layout Section
11335 Foils別名Foil\SpecialChar TeX
11336
11337 \begin_inset CommandInset label
11338 LatexCommand label
11339 name "sec:foiltex"
11340
11341 \end_inset
11342
11343
11344 \end_layout
11345
11346 \begin_layout Standard
11347
11348 \noun on
11349 Allan Rae
11350 \noun default
11351
11352 \end_layout
11353
11354 \begin_layout Subsection
11355 はじめに
11356 \end_layout
11357
11358 \begin_layout Standard
11359 本節では,プレゼンテーション用のスライドを作るための,\SpecialChar LyX
11360 の使用法を解説します.スライドを作ることのできる文書クラスには,slides・Foil\SpecialChar TeX
11361 ・seminar・b
11362 eamer・powerdotといったクラスがありますが,本節では,そのうちslidesの解説を行います.
11363 \end_layout
11364
11365 \begin_layout Standard
11366 誤解のないように,わかりやすく明確に,もう一度言っておきます.
11367 \end_layout
11368
11369 \begin_layout Standard
11370 \begin_inset VSpace bigskip
11371 \end_inset
11372
11373
11374 \end_layout
11375
11376 \begin_layout Standard
11377 \align center
11378
11379 \size large
11380 本節は「
11381 \family sans
11382 FoilTeX
11383 \family default
11384 」クラス
11385 \emph on
11386 のみの
11387 \emph default
11388 解説を行います.
11389 \end_layout
11390
11391 \begin_layout Standard
11392 \begin_inset VSpace bigskip
11393 \end_inset
11394
11395
11396 \end_layout
11397
11398 \begin_layout Standard
11399
11400 \family sans
11401 transparencies (slides)
11402 \family default
11403 」の解説をお探しであれば,第
11404 \begin_inset CommandInset ref
11405 LatexCommand ref
11406 reference "sec:slitex"
11407
11408 \end_inset
11409
11410 節をご覧ください.お使いのコンピュータに
11411 \family sans
11412 foils
11413 \family default
11414 クラス
11415 \family sans
11416 FoilTeX
11417 \family default
11418 が導入されていなければ,
11419 \family sans
11420 foils
11421 \family default
11422 ほど良くはありませんが,おそらく
11423 \family sans
11424 slides
11425 \family default
11426 クラスを使わざるをえないでしょう.
11427 \end_layout
11428
11429 \begin_layout Standard
11430
11431 \family sans
11432 foils
11433 \family default
11434 クラスは,\SpecialChar LaTeX2e
11435 の一部として含まれている\SpecialChar LaTeX
11436 クラスファイル
11437 \family sans
11438 foils.cls
11439 \family default
11440 の第2.1版とともに使われるように設計されています.
11441 \end_layout
11442
11443 \begin_layout Subsection
11444 最初の一歩
11445 \end_layout
11446
11447 \begin_layout Standard
11448 いうまでもなく,この文書クラスを使うには,
11449 \family sans
11450 文書\SpecialChar menuseparator
11451 設定\SpecialChar menuseparator
11452 文書クラス
11453 \family default
11454 メニューの
11455 \family sans
11456 文書クラス
11457 \family default
11458 ドロップダウンで「
11459 \family sans
11460 FoilTeX
11461 \family default
11462 」を選択する必要があります.また,
11463 \family sans
11464 文書設定
11465 \family default
11466 ダイアログ中には,以下のように,このクラスに特有の設定がいくつかあることを知っておかなくてはなりません.
11467 \end_layout
11468
11469 \begin_layout Itemize
11470
11471 \family sans
11472 文書設定
11473 \family default
11474 ダイアログ中の,
11475 \family sans
11476 両面文書
11477 \family default
11478 オプションと
11479 \family sans
11480 二段組文書
11481 \family default
11482 オプションは変更しないでください.これらは 
11483 \family sans
11484 foils
11485 \family default
11486 クラスでは無視されます.
11487 \end_layout
11488
11489 \begin_layout Itemize
11490 既定のフォント寸法は20ptであり,17
11491 \begin_inset space \thinspace{}
11492 \end_inset
11493
11494 pt・25
11495 \begin_inset space \thinspace{}
11496 \end_inset
11497
11498 pt・30
11499 \begin_inset space \thinspace{}
11500 \end_inset
11501
11502 ptを選択することも可能です.
11503 \end_layout
11504
11505 \begin_layout Itemize
11506 既定のフォントは
11507 \family sans
11508 sans
11509 \family default
11510  
11511 \family sans
11512 serif
11513 \family default
11514 ですが,数式ではすべて,通常のローマン体が使用されます.
11515 \end_layout
11516
11517 \begin_layout Itemize
11518 Foil\SpecialChar TeX
11519 は,35
11520 \begin_inset space \thinspace{}
11521 \end_inset
11522
11523 mmスライド用の特殊寸法の他,A4とレター大の用紙寸法をサポートします.A5・B5・リーガル・エグゼクティブ大の用紙寸法はサポートしていません.
11524 \end_layout
11525
11526 \begin_layout Itemize
11527
11528 \family sans
11529 フロートの配置
11530 \family default
11531 の設定は無視されますので,わざわざ変更する必要はありません.フロートはすべて,本文中で定義された位置に表示されます.
11532 \end_layout
11533
11534 \begin_layout Itemize
11535 このクラスの
11536 \family sans
11537 ページレイアウト
11538 \family default
11539 の設定は,若干異なった挙動を示します.Foil\SpecialChar TeX
11540 では,ユーザ定義のロゴをはじめ,フッタとへッダに広範な設定ができます.詳細については第
11541 \begin_inset CommandInset ref
11542 LatexCommand ref
11543 reference "sec:foilfoot"
11544
11545 \end_inset
11546
11547 節をご覧ください.タイトルページは,文書中の他のページとは異なった取扱がなされ,ページ番号は
11548 \emph on
11549 つねに
11550 \emph default
11551 付けられず,(ロゴが定義されていれば)ロゴは,
11552 \emph on
11553 つねに
11554 \emph default
11555 ページ下部中央に表示されます.使用できるページ様式とその挙動は,以下の通りです.
11556 \end_layout
11557
11558 \begin_deeper
11559 \begin_layout Labeling
11560 \labelwidthstring MMMMMMM
11561
11562 \family sans
11563 \series bold
11564 empty
11565 \family default
11566 \series default
11567  最終出力には,ページ番号をはじめ,へッダ・フッタが出力されません(もちろん脚注は除きます).
11568 \end_layout
11569
11570 \begin_layout Labeling
11571 \labelwidthstring MMMMMMM
11572
11573 \family sans
11574 \series bold
11575 plain
11576 \family default
11577 \series default
11578  最終出力には,ページ番号がページ下部の中央に出力されますが,他のへッダ・フッタは出力されません(脚注除く).
11579 \end_layout
11580
11581 \begin_layout Labeling
11582 \labelwidthstring MMMMMMM
11583
11584 \series bold
11585 foilheadings
11586 \series default
11587  ページ番号が右下隅に出力されます.追記したへッダ・フッタも出力されます.これが既定値です.
11588 \end_layout
11589
11590 \begin_layout Labeling
11591 \labelwidthstring MMMMMMM
11592
11593 \series bold
11594 fancy
11595 \series default
11596  これは
11597 \family sans
11598 fancyheadings
11599 \family default
11600 パッケージを使えるようにします.ただし,Foil\SpecialChar TeX
11601 パッケージの作者は,ページレイアウトが崩れる可能性があるので,これを使用することは勧めないと言及しています.
11602 \end_layout
11603
11604 \end_deeper
11605 \begin_layout Subsubsection
11606 任意設定クラスオプション
11607 \end_layout
11608
11609 \begin_layout Standard
11610 以下のオプションは
11611 \family sans
11612 文書設定
11613 \family default
11614 ダイアログの任意設定クラスオプションボックスで使うことができます.
11615 \end_layout
11616
11617 \begin_layout Labeling
11618 \labelwidthstring MMMMMMx
11619
11620 \series bold
11621 35mmSlide
11622 \series default
11623  これは,ページレイアウトを縦7.33インチ横11インチに設定します.これは35
11624 \begin_inset space \space{}
11625 \end_inset
11626
11627 mmスライドの縦横比にほぼ等しく,このメディアを作る作業が若干易しくなります.
11628 \end_layout
11629
11630 \begin_layout Labeling
11631 \labelwidthstring MMMMMMx
11632
11633 \series bold
11634 headrule
11635 \series default
11636  タイトルページを除くすべてのページのへッダの下に罫線を入れます.
11637 \end_layout
11638
11639 \begin_layout Labeling
11640 \labelwidthstring MMMMMMx
11641
11642 \series bold
11643 footrule
11644 \series default
11645  タイトルページを除くすべてのページのフッタの上に罫線を入れます.
11646 \end_layout
11647
11648 \begin_layout Labeling
11649 \labelwidthstring MMMMMMx
11650
11651 \series bold
11652 dvips
11653 \series default
11654  これは,新規
11655 \family sans
11656 foils
11657 \family default
11658 文書を作成する度に自動的に設定されます.このオプションは,横向きに設定されたページを回転させるのに,dvipsドライバを使うようFoil\SpecialChar TeX
11659 に指示します.
11660 \end_layout
11661
11662 \begin_layout Labeling
11663 \labelwidthstring MMMMMMx
11664
11665 \series bold
11666 landscape
11667 \series default
11668  このオプションは,用紙寸法を横向きページ大に変更するだけで,回転は行いません.したがって,このオプションを使う場合は,各ページを回転させる外部プログラムを使用
11669 する,プリンタに用紙を横向きに給紙する必要があります.また,このオプションは,
11670 \family sans
11671 Foilhead
11672 \family default
11673 環境と
11674 \family sans
11675 Rotatefoilhead
11676 \family default
11677 環境の役割を逆転させることに注意してください(これらの環境については次節で説明します).
11678 \end_layout
11679
11680 \begin_layout Labeling
11681 \labelwidthstring MMMMMMx
11682
11683 \series bold
11684 leqno
11685 \series default
11686  数式番号を左側に付けます.
11687 \end_layout
11688
11689 \begin_layout Labeling
11690 \labelwidthstring MMMMMMx
11691
11692 \series bold
11693 fleqn
11694 \series default
11695  数式を左揃えにします.
11696 \end_layout
11697
11698 \begin_layout Subsection
11699 サポートされる環境
11700 \end_layout
11701
11702 \begin_layout Standard
11703 他のクラスで標準的にサポートされている環境は,
11704 \family sans
11705 foils
11706 \family default
11707 クラスでもサポートされています.それ以外に,Foil\SpecialChar TeX
11708 が提供している環境と,\SpecialChar LyX
11709 が付け加えた環境があります.以下の環境は,他のクラスと共通の環境です.
11710 \end_layout
11711
11712 \begin_layout Standard
11713
11714 \family sans
11715 \begin_inset Flex Multiple Columns
11716 status open
11717
11718 \begin_layout Itemize
11719
11720 \family sans
11721 標準
11722 \end_layout
11723
11724 \begin_layout Itemize
11725
11726 \family sans
11727 箇条書き(記号)
11728 \end_layout
11729
11730 \begin_layout Itemize
11731
11732 \family sans
11733 箇条書き(連番)
11734 \end_layout
11735
11736 \begin_layout Itemize
11737
11738 \family sans
11739 箇条書き(記述)
11740 \end_layout
11741
11742 \begin_layout Itemize
11743
11744 \family sans
11745 箇条書き(リスト)
11746 \end_layout
11747
11748 \begin_layout Itemize
11749
11750 \family sans
11751 \SpecialChar LyX
11752 コード
11753 \end_layout
11754
11755 \begin_layout Itemize
11756
11757 \family sans
11758 詩句
11759 \end_layout
11760
11761 \begin_layout Itemize
11762
11763 \family sans
11764 引用(字下げあり)
11765 \end_layout
11766
11767 \begin_layout Itemize
11768
11769 \family sans
11770 引用(字下げなし)
11771 \end_layout
11772
11773 \begin_layout Itemize
11774
11775 \family sans
11776 タイトル
11777 \end_layout
11778
11779 \begin_layout Itemize
11780
11781 \family sans
11782 著者
11783 \end_layout
11784
11785 \begin_layout Itemize
11786
11787 \family sans
11788 日付
11789 \end_layout
11790
11791 \begin_layout Itemize
11792
11793 \family sans
11794 概要
11795 \end_layout
11796
11797 \begin_layout Itemize
11798
11799 \family sans
11800 書誌情報
11801 \end_layout
11802
11803 \begin_layout Itemize
11804
11805 \family sans
11806 住所
11807 \end_layout
11808
11809 \begin_layout Itemize
11810
11811 \family sans
11812 右寄せ住所
11813 \end_layout
11814
11815 \end_inset
11816
11817
11818 \end_layout
11819
11820 \begin_layout Standard
11821 つまり,節区切りを除けば,主な環境のすべてです.一枚のスライドは,基本的にタイトルと本文を備えた自己完結した節なので,
11822 \family sans
11823 Foil
11824 \family default
11825 \SpecialChar TeX
11826 は新しいスライドを始める以下のようなコマンドを備えています.
11827 \end_layout
11828
11829 \begin_layout Itemize
11830
11831 \family sans
11832 スライドタイトル(Foilhead)
11833 \end_layout
11834
11835 \begin_layout Itemize
11836
11837 \family sans
11838 横置きスライドタイトル(Rotatefoilhead)
11839 \end_layout
11840
11841 \begin_layout Standard
11842 \SpecialChar LyX
11843 は,以下のような,これらを若干修正した環境も用意しています.
11844 \end_layout
11845
11846 \begin_layout Itemize
11847
11848 \family sans
11849 スライドタイトル(小)(ShortFoilhead)
11850 \end_layout
11851
11852 \begin_layout Itemize
11853
11854 \family sans
11855 横置きスライドタイトル(小)(ShortRotatefoilhead)
11856 \end_layout
11857
11858 \begin_layout Standard
11859 これらの違いは次節で説明します.
11860 \end_layout
11861
11862 \begin_layout Standard
11863 スライドは,アイデアを説明したり,新しい定理を説明したりするのにしばしば使われるので,
11864 \family sans
11865 Foil
11866 \family default
11867 \SpecialChar TeX
11868 はそれらを説明するのに便利な環境を幅広く用意しています.
11869 \end_layout
11870
11871 \begin_layout Standard
11872
11873 \family sans
11874 \begin_inset Flex Multiple Columns
11875 status open
11876
11877 \begin_layout Itemize
11878
11879 \family sans
11880 定理
11881 \end_layout
11882
11883 \begin_layout Itemize
11884
11885 \family sans
11886 補題
11887 \end_layout
11888
11889 \begin_layout Itemize
11890
11891 \family sans
11892
11893 \end_layout
11894
11895 \begin_layout Itemize
11896
11897 \family sans
11898 命題
11899 \end_layout
11900
11901 \begin_layout Itemize
11902
11903 \family sans
11904 定義
11905 \end_layout
11906
11907 \begin_layout Itemize
11908
11909 \family sans
11910 証明
11911 \end_layout
11912
11913 \begin_layout Itemize
11914
11915 \family sans
11916 定理*
11917 \end_layout
11918
11919 \begin_layout Itemize
11920
11921 \family sans
11922 補題*
11923 \end_layout
11924
11925 \begin_layout Itemize
11926
11927 \family sans
11928 系*
11929 \end_layout
11930
11931 \begin_layout Itemize
11932
11933 \family sans
11934 命題*
11935 \end_layout
11936
11937 \begin_layout Itemize
11938
11939 \family sans
11940 定義*
11941 \end_layout
11942
11943 \end_inset
11944
11945
11946 \end_layout
11947
11948 \begin_layout Standard
11949 星付き版は連番が振られず,星なし版は連番が振られます.他に,\SpecialChar LyX
11950 で追加された以下の2つの箇条書き環境があります.
11951 \end_layout
11952
11953 \begin_layout Itemize
11954
11955 \family sans
11956 箇条書き(チック)
11957 \end_layout
11958
11959 \begin_layout Itemize
11960
11961 \family sans
11962 箇条書き(クロス)
11963 \end_layout
11964
11965 \begin_layout Standard
11966 Foil\SpecialChar TeX
11967 には,強力なヘッダ機能とフッタ機能があり,これらはプリアンブルで設定するのが最良ですが,文章中のどこでも設定することができます.もし文書中でこれらの設定
11968 を変更したい場合には,スライドの一番上,foilheadの直後で行うのが良いでしょう.
11969 \end_layout
11970
11971 \begin_layout Standard
11972 この目的のためには,以下のコマンドスタイルがあります(
11973 \shape smallcaps
11974 Martin Vermeer).
11975 \end_layout
11976
11977 \begin_layout Standard
11978 \begin_inset Flex Multiple Columns
11979 status open
11980
11981 \begin_layout Itemize
11982
11983 \family sans
11984 グラフィックスロゴ
11985 \end_layout
11986
11987 \begin_layout Itemize
11988
11989 \family sans
11990 配布制限
11991 \end_layout
11992
11993 \begin_layout Itemize
11994
11995 \family sans
11996 右フッタ
11997 \end_layout
11998
11999 \begin_layout Itemize
12000
12001 \family sans
12002 右ヘッダ
12003 \end_layout
12004
12005 \begin_layout Itemize
12006
12007 \family sans
12008 左ヘッダ
12009 \end_layout
12010
12011 \begin_deeper
12012 \begin_layout Plain Layout
12013 \begin_inset space ~
12014 \end_inset
12015
12016
12017 \end_layout
12018
12019 \end_deeper
12020 \end_inset
12021
12022
12023 \end_layout
12024
12025 \begin_layout Standard
12026 Foil\SpecialChar TeX
12027 が提供しているコマンドで,\SpecialChar LyX
12028 が直接サポートしていないコマンドもありますが,これらの説明と使い方については,第
12029 \begin_inset CommandInset ref
12030 LatexCommand ref
12031 reference "sec:unsuppfoils"
12032
12033 \end_inset
12034
12035 節で行います.
12036 \end_layout
12037
12038 \begin_layout Subsection
12039 スライドの組を作る
12040 \end_layout
12041
12042 \begin_layout Standard
12043 この節は,様々な環境を使ってスライドの組を作る方法を簡単に紹介します.スライド組の例をご覧になりたい場合は,\SpecialChar LyX
12044
12045 \family typewriter
12046 examples
12047 \family default
12048 フォルダにある
12049 \family typewriter
12050 Foils.lyx
12051 \family default
12052 ファイルをご覧ください.
12053 \end_layout
12054
12055 \begin_layout Subsubsection
12056 タイトルページを作る
12057 \end_layout
12058
12059 \begin_layout Standard
12060
12061 \family sans
12062 タイトル
12063 \family default
12064
12065 \family sans
12066 著者
12067 \family default
12068
12069 \family sans
12070 日付
12071 \family default
12072
12073 \family sans
12074 概要
12075 \family default
12076 環境のある他のクラスとは異なり,
12077 \family sans
12078 foils
12079 \family default
12080 は独立したページにタイトルを作成します.
12081 \family sans
12082 日付
12083 \family default
12084 環境を使用しなかった場合には,\SpecialChar LaTeX
12085 は(出力を生成し直したときにはいつも)その時点の日付を挿入します.
12086 \end_layout
12087
12088 \begin_layout Subsubsection
12089 新しいスライドを開始する
12090 \end_layout
12091
12092 \begin_layout Standard
12093 前述のように,新しいスライドを開始するには,4つの方法があります.縦向きのスライドを開始するには,
12094 \family sans
12095 スライドタイトル(Foilhead)
12096 \family default
12097
12098 \family sans
12099 スライドタイトル(小)(ShortFoilhead)
12100 \family default
12101 を使用します.両環境の違いは,スライドタイトル(foilhead)とスライド本文の間の余白の違いです.
12102 \end_layout
12103
12104 \begin_layout Standard
12105 横向きのスライドは,
12106 \family sans
12107 横向きスライドタイトル(Rotatefoilhead)
12108 \family default
12109 か横向きスライドタイトル(小)(
12110 \family sans
12111 ShortRotatefoilhead)
12112 \family default
12113 環境を使用して生成します.ここでも両環境の違いは,タイトルと本文の間の余白のみです.どちらの場合も,(小)と記された版は,タイトルと本文の間の余白が,0.5インチ
12114 (約1.27cm)小さくなります.
12115 \end_layout
12116
12117 \begin_layout Standard
12118 横向きのスライドをサポートする際,一つ問題となるのは,スライドを回転させようと思うと,PostScript出力を生成するのに
12119 \family typewriter
12120 dvips
12121 \family default
12122 ドライバを使用することを要求してしまうことです.もしスライドをプリンタに横に給紙することができれば,
12123 \family typewriter
12124 dvips
12125 \family default
12126 ドライバを持っていなくても,横向きのスライドをつくることができます ;-)
12127 \end_layout
12128
12129 \begin_layout Subsubsection
12130 定理・補題・証明など
12131 \end_layout
12132
12133 \begin_layout Standard
12134 これらの環境の同じ型をお互いに直接続けて置くことはできません.通常の段落開業を用いると,2つの環境をマージしたかのように,前の環境が延長されるだけです.そうでは
12135 なく,いわゆる分離線を挿入する必要があります.
12136 \emph on
12137 ユーザーの手引き
12138 \emph default
12139 の「
12140 \emph on
12141 入れ子の分離
12142 \emph default
12143 」の節を参照してください.
12144 \end_layout
12145
12146 \begin_layout Subsubsection
12147 箇条書き
12148 \end_layout
12149
12150 \begin_layout Standard
12151 他のクラスでも共通にサポートされている箇条書き様式すべてに加えて,二つの新しい様式を使用することができます.ここでは,その新しい様式のみを説明することにします.
12152 他の箇条書き環境について詳しく知りたい場合には,
12153 \emph on
12154 ユーザーの手引き
12155 \emph default
12156 をご覧ください.記号による箇条書きを使用したい場合には,上記第
12157 \begin_inset CommandInset ref
12158 LatexCommand ref
12159 reference "sec:ブリット"
12160
12161 \end_inset
12162
12163 節の
12164 \family sans
12165 箇条書き(記号)ブリットの指定
12166 \family default
12167 の節も,読まれることが望ましいでしょう.
12168 \end_layout
12169
12170 \begin_layout Standard
12171
12172 \family sans
12173 箇条書き(チック)
12174 \family default
12175
12176 \family sans
12177 箇条書き(クロス)
12178 \family default
12179 の二つの新しい様式は,チェック印や
12180 \begin_inset Formula $\times$
12181 \end_inset
12182
12183 印を箇条書きのラベルに使用する専用の環境を提供することで,予定一覧や正誤一覧を作りやすくするように設計されたものです.これらの箇条書きは,
12184 \family sans
12185 箇条書き(記号)
12186 \family default
12187 の派生型を専用に用意したものに過ぎません.ただし,これらは,
12188 \family typewriter
12189 psnfss
12190 \family default
12191 パッケージが導入済であることを要求します.
12192 \end_layout
12193
12194 \begin_layout Subsubsection
12195 図と表
12196 \end_layout
12197
12198 \begin_layout Standard
12199 Foil\SpecialChar TeX
12200 では,図表フロートは,本文中の挿入箇所にこれらが正確に表示されるように再定義されており,ページの上部やユーザー指定場所に押しのけたりはしないようになって
12201 います.たとえフロート配置の設定に変更を加えたとしても,単に無視されます.
12202 \end_layout
12203
12204 \begin_layout Subsubsection
12205 ページヘッダおよびページフッタ
12206 \begin_inset CommandInset label
12207 LatexCommand label
12208 name "sec:foilfoot"
12209
12210 \end_inset
12211
12212
12213 \end_layout
12214
12215 \begin_layout Standard
12216
12217 \family sans
12218 グラフィックスロゴ
12219 \family default
12220
12221 \family sans
12222 配布制限
12223 \family default
12224 の二つは,左フッタ文を制御するものです.前者は,グラフィックスのロゴをスライドに入れるためのもので,既定値は「-Typeset by 
12225 \family sans
12226 Foil
12227 \family default
12228 \SpecialChar TeX
12229 -」となっています.後者は,「機密事項」などのように,聴衆に秘密区分を提示することを意図しています.既定値では,何も設定されていません.
12230 \end_layout
12231
12232 \begin_layout Standard
12233 スライドの残り三隅には,
12234 \family sans
12235 右フッタ
12236 \family default
12237 (既定ではページ番号)・
12238 \family sans
12239 右ヘッダ
12240 \family default
12241 (右上)・
12242 \family sans
12243 左ヘッダ
12244 \family default
12245 (左上)を使って文字を入れることができます.
12246 \end_layout
12247
12248 \begin_layout Subsection
12249 サポートされない 
12250 \family sans
12251 Foil
12252 \family default
12253 \SpecialChar TeX
12254 機能
12255 \begin_inset CommandInset label
12256 LatexCommand label
12257 name "sec:unsuppfoils"
12258
12259 \end_inset
12260
12261
12262 \end_layout
12263
12264 \begin_layout Standard
12265 以下で言及されているコマンドは,
12266 \family sans
12267 \SpecialChar LaTeX
12268
12269 \family default
12270 環境内で設定されるか,他の環境中の
12271 \family sans
12272 \SpecialChar TeX
12273 コード
12274 \family default
12275 として設定される必要があります.
12276 \end_layout
12277
12278 \begin_layout Subsubsection
12279 長さ
12280 \end_layout
12281
12282 \begin_layout Standard
12283 長さは,すべて
12284 \family typewriter
12285
12286 \backslash
12287 setlength{
12288 \family default
12289 \emph on
12290 長さ名
12291 \family typewriter
12292 \emph default
12293 }{
12294 \family default
12295 \emph on
12296 新規長さ
12297 \family typewriter
12298 \emph default
12299 }
12300 \family default
12301 コマンドで調節されます.ここで
12302 \emph on
12303 長さ名
12304 \emph default
12305 は,変更したい長さに付けられている名前で置き換え,
12306 \emph on
12307 新規長さ
12308 \emph default
12309 は,その長さの値で置き換えます.長さはすべて,インチ(in)・ミリメートル(mm)・ポイント(pt)のような長さ単位か,
12310 \family typewriter
12311
12312 \backslash
12313 textwidth
12314 \family default
12315 のように文書比あるいはフォント基準の長さで指定する必要があります.
12316 \end_layout
12317
12318 \begin_layout Standard
12319
12320 \family typewriter
12321
12322 \backslash
12323 foilheadskip
12324 \family default
12325 で指定される長さを調節することによって,スライドタイトルとスライド本文の間の余白を変更することができます.たとえば,スライドタイトルをすべて0.5
12326 \begin_inset space \space{}
12327 \end_inset
12328
12329 inだけスライド本文に近づけるには,プリアンブルに
12330 \family typewriter
12331
12332 \backslash
12333 setlength{
12334 \backslash
12335 foilheadskip}{-0.5in}
12336 \family default
12337 と書き込みます.
12338 \end_layout
12339
12340 \begin_layout Standard
12341 フロート周囲の余白は,以下の長さを設定することで調整することができます.
12342 \end_layout
12343
12344 \begin_layout Labeling
12345 \labelwidthstring MMMMMMMMMMM
12346
12347 \family typewriter
12348
12349 \backslash
12350 abovefloatskip
12351 \family default
12352  本文とフロート上辺との間隔
12353 \end_layout
12354
12355 \begin_layout Labeling
12356 \labelwidthstring MMMMMMMMMMM
12357
12358 \family typewriter
12359
12360 \backslash
12361 abovecaptionskip
12362 \family default
12363  フロートとキャプションとの間隔
12364 \end_layout
12365
12366 \begin_layout Labeling
12367 \labelwidthstring MMMMMMMMMMM
12368
12369 \family typewriter
12370
12371 \backslash
12372 belowcaptionskip
12373 \family default
12374  キャプションとそれに続く本文との間隔
12375 \end_layout
12376
12377 \begin_layout Labeling
12378 \labelwidthstring MMMMMMMMMMM
12379
12380 \family typewriter
12381
12382 \backslash
12383 captionwidth
12384 \family default
12385  この長さを調整することでキャプションを,周囲の本文より短くすることができます.
12386 \family typewriter
12387
12388 \backslash
12389 textwidth
12390 \family default
12391 に対する相対的な長さで調整するのが最も良いでしょう.
12392 \end_layout
12393
12394 \begin_layout Standard
12395 以下のようなタイトルページ関連の長さもあり,タイトルが長い場合や,著者が複数いる場合に使うと便利かもしれません.
12396 \end_layout
12397
12398 \begin_layout Labeling
12399 \labelwidthstring MMMMMMMMMMM
12400
12401 \family typewriter
12402
12403 \backslash
12404 abovetitleskip
12405 \family default
12406  へッダとタイトルとの間隔
12407 \end_layout
12408
12409 \begin_layout Labeling
12410 \labelwidthstring MMMMMMMMMMM
12411
12412 \family typewriter
12413
12414 \backslash
12415 titleauthorskip
12416 \family default
12417  
12418 \family sans
12419 タイトル
12420 \family default
12421 環境と
12422 \family sans
12423 著者
12424 \family default
12425 環境との間隔
12426 \end_layout
12427
12428 \begin_layout Labeling
12429 \labelwidthstring MMMMMMMMMMM
12430
12431 \family typewriter
12432
12433 \backslash
12434 authorauthorskip
12435 \family default
12436  著者が複数いる場合の
12437 \family sans
12438 著者
12439 \family default
12440 行の間隔
12441 \end_layout
12442
12443 \begin_layout Labeling
12444 \labelwidthstring MMMMMMMMMMM
12445
12446 \family typewriter
12447
12448 \backslash
12449 authordateskip
12450 \family default
12451  
12452 \family sans
12453 著者
12454 \family default
12455
12456 \family sans
12457 日付
12458 \family default
12459 との間隔
12460 \end_layout
12461
12462 \begin_layout Labeling
12463 \labelwidthstring MMMMMMMMMMM
12464
12465 \family typewriter
12466
12467 \backslash
12468 dateabstractskip
12469 \family default
12470  
12471 \family sans
12472 日付
12473 \family default
12474
12475 \family sans
12476 概要
12477 \family default
12478 との間隔
12479 \end_layout
12480
12481 \begin_layout Standard
12482 最後に紹介する長さ関連コマンドは,箇条書き環境すべてに使用できるものです.
12483 \family typewriter
12484
12485 \backslash
12486 zerolistvertdimens
12487 \family default
12488 を箇条書き環境の内側に置くと,項目間の垂直余白がすべて取り除かれます.これは長さではなくコマンドなので,上述のもののように
12489 \family typewriter
12490
12491 \backslash
12492 setlength
12493 \family default
12494 を使う必要がないことに注意してください.
12495 \end_layout
12496
12497 \begin_layout Subsubsection
12498 へッダとフッタ
12499 \end_layout
12500
12501 \begin_layout Standard
12502
12503 \family typewriter
12504
12505 \backslash
12506 LogoOn
12507 \family default
12508 および
12509 \family typewriter
12510
12511 \backslash
12512 LogoOff
12513 \family default
12514 は,
12515 \family typewriter
12516 MyLogo
12517 \family default
12518 で定義したロゴを特定のページに入れるかどうかを制御します.
12519 \family typewriter
12520
12521 \backslash
12522 LogoOff
12523 \family default
12524 をプリアンブルに入れると,全スライドからロゴが取り除かれます.特定のスライドにのみロゴを付けたくない場合は,当該ページのスライドタイトルの直後に直接
12525 \family typewriter
12526
12527 \backslash
12528 LogoOff
12529 \family default
12530 を置き,次のスライドタイトルの直後に直接
12531 \family typewriter
12532
12533 \backslash
12534 LogoOn
12535 \family default
12536 を置いてください.
12537 \end_layout
12538
12539 \begin_layout Standard
12540
12541 \family sans
12542 文書レイアウト
12543 \family default
12544 ダイアログで
12545 \family sans
12546 fancy
12547 \family default
12548 ページ様式を使用することを選択した場合には,横置きページのヘッダとフッタが回転後も正しく配置されるように,プリアンブルに
12549 \family typewriter
12550
12551 \backslash
12552 let
12553 \backslash
12554 headwidth
12555 \backslash
12556 textwidth
12557 \family default
12558 を加える必要があるでしょう.これは,
12559 \family sans
12560 fancyheadings
12561 \family default
12562 パッケージが提供するページレイアウトと
12563 \family sans
12564 foils
12565 \family default
12566 クラスの提供するページレイアウトの間に衝突が発生するためです.
12567 \end_layout
12568
12569 \begin_layout Section
12570 Hollywood(Hollywoodスペック・スクリプト)
12571 \end_layout
12572
12573 \begin_layout Standard
12574
12575 \noun on
12576 Garst Reese
12577 \noun default
12578
12579 \end_layout
12580
12581 \begin_layout Subsection
12582 はじめに
12583 \end_layout
12584
12585 \begin_layout Standard
12586 脚本を正しい書式で書くことは,ハリウッドにおける「通過儀礼」です.ハリウッドの脚本は,読み手が内容に集中できるようにし,俳優にとっても読みやすくかつ親しみやすい
12587 ように設計されています.脚本の1ページは,映画の1分でなければならず,銀幕上で見えたり聞こえたりしないものは,脚本に混入してはなりません.また,全体を通してCo
12588 urier 12
12589 \begin_inset space \space{}
12590 \end_inset
12591
12592 ptフォントを使わなければならず,イタリック体は用いてはいけません.
12593 \end_layout
12594
12595 \begin_layout Subsection
12596 特別な問題
12597 \end_layout
12598
12599 \begin_layout Standard
12600 話者の行は,文の途中で改行することは
12601 \emph on
12602 決して
12603 \emph default
12604 あってはなりません.もし話者行の塊が,次頁にまたがる場合には,
12605 \family sans
12606 話者
12607 \family default
12608 名を再度書き,その後に(Cont'd)と加えます.
12609 \end_layout
12610
12611 \begin_layout Subsection
12612 特別な機能
12613 \end_layout
12614
12615 \begin_layout Standard
12616
12617 \family sans
12618 話者
12619 \family default
12620 名はラベルとして挿入し,話者名を挿入するには,そのラベルを相互参照してください.相互参照ダイアログは,登場人物の現在の配役を表示することになります.これは,ト書
12621 きに話者名を挿入するのにも使用することができます.
12622 \end_layout
12623
12624 \begin_layout Subsection
12625 用紙寸法と余白
12626 \end_layout
12627
12628 \begin_layout Standard
12629 USレター寸法で,左余白1.6インチ・右余白0.75インチ・上余白0.5インチ・下余白0.75インチです.
12630 \end_layout
12631
12632 \begin_layout Subsection
12633 環境
12634 \end_layout
12635
12636 \begin_layout Standard
12637 以下の環境が利用可能です.右に示されている
12638 \begin_inset Flex Ruby
12639 status collapsed
12640
12641 \begin_layout Plain Layout
12642
12643 \begin_inset Argument post:1
12644 status collapsed
12645
12646 \begin_layout Plain Layout
12647 キー
12648 \end_layout
12649
12650 \end_inset
12651
12652
12653 \end_layout
12654
12655 \end_inset
12656
12657 割当てを使用するには,hollywood.bindを使用してください.
12658 \end_layout
12659
12660 \begin_layout Itemize
12661
12662 \family sans
12663 一般
12664 \begin_inset Newline newline
12665 \end_inset
12666
12667
12668 \family default
12669 他の環境が動作しない場合に使用しますが,これを使うことは避けるようにしてください.
12670 \end_layout
12671
12672 \begin_layout Itemize
12673 フェイドイン:
12674 \begin_inset space \hfill{}
12675 \end_inset
12676
12677
12678 \family sans
12679 M-z S-I
12680 \family default
12681
12682 \begin_inset Newline newline
12683 \end_inset
12684
12685 通常,この後には「Sallyは目を覚ますと」のように続きます.
12686 \end_layout
12687
12688 \begin_layout Itemize
12689
12690 \family sans
12691 屋内:
12692 \begin_inset space \hfill{}
12693 \end_inset
12694
12695 M-z i
12696 \begin_inset Newline newline
12697 \end_inset
12698
12699
12700 \family default
12701 新しい屋内(INTERIOR)カメラの設定を指定します.この後には,かならずDAYやNIGHTなどを指定して,必要な照明を定義します.この行はすべて大文字で書き
12702 ます.
12703 \end_layout
12704
12705 \begin_layout Itemize
12706
12707 \family sans
12708 屋外:
12709 \begin_inset space \hfill{}
12710 \end_inset
12711
12712 M-z e
12713 \begin_inset Newline newline
12714 \end_inset
12715
12716
12717 \family default
12718 屋外(EXTERIOR)カメラの設定を指定します.この行はすべて大文字で書きます.
12719 \end_layout
12720
12721 \begin_layout Itemize
12722
12723 \family sans
12724 話者
12725 \begin_inset space \hfill{}
12726 \end_inset
12727
12728 M-z s
12729 \begin_inset Newline newline
12730 \end_inset
12731
12732
12733 \family default
12734 話す役.
12735 \end_layout
12736
12737 \begin_layout Itemize
12738
12739 \family sans
12740 括弧付き
12741 \begin_inset space \hfill{}
12742 \end_inset
12743
12744 M-z p
12745 \begin_inset Newline newline
12746 \end_inset
12747
12748 話者
12749 \family default
12750 への指示.自動的に括弧()が挿入されます.
12751 \end_layout
12752
12753 \begin_layout Itemize
12754
12755 \family sans
12756 対話
12757 \begin_inset space \hfill{}
12758 \end_inset
12759
12760 M-z d
12761 \begin_inset Newline newline
12762 \end_inset
12763
12764 話者
12765 \family default
12766 が話す内容.
12767 \end_layout
12768
12769 \begin_layout Itemize
12770
12771 \family sans
12772 画面遷移
12773 \begin_inset space \hfill{}
12774 \end_inset
12775
12776 M-z t
12777 \begin_inset Newline newline
12778 \end_inset
12779
12780
12781 \family default
12782 カメラの動きの指示.例:CUT TO:.
12783 \end_layout
12784
12785 \begin_layout Itemize
12786
12787 \family sans
12788 フェイドアウト:
12789 \begin_inset space \hfill{}
12790 \end_inset
12791
12792 M-z S-I
12793 \end_layout
12794
12795 \begin_layout Itemize
12796
12797 \family sans
12798 著者
12799 \begin_inset space \hfill{}
12800 \end_inset
12801
12802 M-z S-A
12803 \end_layout
12804
12805 \begin_layout Itemize
12806
12807 \family sans
12808 タイトル
12809 \begin_inset space \hfill{}
12810 \end_inset
12811
12812 M-z S-T
12813 \end_layout
12814
12815 \begin_layout Itemize
12816
12817 \family sans
12818 右寄せ住所
12819 \begin_inset space \hfill{}
12820 \end_inset
12821
12822 M-z r
12823 \end_layout
12824
12825 \begin_layout Subsection
12826 脚本で使われる特別な用語
12827 \end_layout
12828
12829 \begin_layout Itemize
12830 (O.S) — off screen
12831 \end_layout
12832
12833 \begin_layout Itemize
12834 (V.0) — voice over
12835 \end_layout
12836
12837 \begin_layout Itemize
12838 b.g.
12839  — background
12840 \end_layout
12841
12842 \begin_layout Itemize
12843 C.U.
12844  — close-up
12845 \end_layout
12846
12847 \begin_layout Itemize
12848 PAN — camera movement
12849 \end_layout
12850
12851 \begin_layout Itemize
12852 INSERT — cut to close-up of
12853 \end_layout
12854
12855 \begin_layout Section
12856 ijmpcおよびijmpd
12857 \end_layout
12858
12859 \begin_layout Standard
12860
12861 \noun on
12862 Panayotis Papasotiriou
12863 \noun default
12864
12865 \end_layout
12866
12867 \begin_layout Subsection
12868 概観
12869 \end_layout
12870
12871 \begin_layout Standard
12872 ijpmcパッケージは,
12873 \emph on
12874 International Journal of Modern Physics C
12875 \emph default
12876 への電子投稿を可能にするためのマクロ集です.同様に,ijpmdパッケージは,
12877 \emph on
12878 International Journal of Modern Physics D
12879 \emph default
12880 へ投稿する現行を作成するためのものです.両誌ともWorld Scientific社の刊行です.対応する文書クラス名は,それぞれ
12881 \family typewriter
12882 ws-ijmpc.cls
12883 \family default
12884 および
12885 \family typewriter
12886 ws-ijmpd.cls
12887 \family default
12888 です.これらのファイルは,著者のための指針とともに,
12889 \begin_inset Flex URL
12890 status collapsed
12891
12892 \begin_layout Plain Layout
12893
12894 http://www.worldscinet.com/ijmpc/mkt/guidelines.shtml
12895 \end_layout
12896
12897 \end_inset
12898
12899 および
12900 \begin_inset Flex URL
12901 status collapsed
12902
12903 \begin_layout Plain Layout
12904
12905 http://www.worldscinet.com/ijmpd/mkt/guidelines.shtml
12906 \end_layout
12907
12908 \end_inset
12909
12910 の各サイトからダウンロードすることができます.両パッケージは,標準「article」パッケージの修正版であり,両者は(一部を除き)ほぼ同一です.\SpecialChar LyX
12911 は,これらのパッ
12912 ケージのほとんどの機能をサポートしています.私は両誌へ投稿する論文を\SpecialChar LyX
12913 で書き上げましたが,何らの問題も生じませんでした.
12914 \end_layout
12915
12916 \begin_layout Subsection
12917 論文を書く
12918 \end_layout
12919
12920 \begin_layout Standard
12921 通常と同じく,論文を書く上で最も易しい方法は,ひな型を使って書き始めることです.
12922 \family sans
12923 ファイル\SpecialChar menuseparator
12924 新規(ひな型使用)
12925 \family default
12926 をクリックして,ひな型
12927 \family typewriter
12928 ijmpc.lyx
12929 \family default
12930 もしくは
12931 \family typewriter
12932 ijmpd.lyx
12933 \family default
12934 を選択してください.すると,原稿で良く使用されるフィールドを含んだ,ほぼ空の文書ができますので,既存のフィールド(鍵括弧
12935 \family typewriter
12936 <>
12937 \family default
12938 を含む)を正しい情報で置き換えてください.以下の各点にご留意ください.
12939 \end_layout
12940
12941 \begin_layout Enumerate
12942 両パッケージでは,フォント寸法や文書のページ様式を変更することが禁じられているので,\SpecialChar LyX
12943 中でこれらを変更することはできません.
12944 \end_layout
12945
12946 \begin_layout Enumerate
12947 文書言語は変更してはいけません.論文をプレビューする前に,babelパッケージが使用されていないことを確認してください.これは,
12948 \begin_inset Info
12949 type  "menu"
12950 arg   "dialog-show document"
12951 \end_inset
12952
12953  
12954 \family sans
12955 \SpecialChar menuseparator
12956 言語
12957 \family default
12958 をクリックして,
12959 \family sans
12960 言語パッケージ
12961 \family default
12962 に「なし」を選択してください.
12963 \end_layout
12964
12965 \begin_layout Enumerate
12966 キーワードを定義するに際しては,「キーワード」様式を用いなくてはなりません.
12967 \end_layout
12968
12969 \begin_layout Enumerate
12970 ijmpcパッケージが提供する「分類コード」様式は,PACS番号のような分類コードを定義するのに使用することができます.この機能は,ijmpdパッケージではサポ
12971 ートされていませんので,ご注意ください.
12972 \end_layout
12973
12974 \begin_layout Enumerate
12975 「定義」「ステップ」「例」「注記」「記法」「定理」「証明」「系」「補題」「命題」「命題(Prop)」「問題」「主張」「予想」といった新しい環境を使用することがで
12976 きます.これらの使い方は,大凡自明でしょう.\SpecialChar LyX
12977 は,これらの環境をすべてサポートし,それぞれについて,適切なラベルと文字様式および連番スキームを使用します.
12978 \end_layout
12979
12980 \begin_layout Enumerate
12981 両パッケージは,単純な引用を使用しますので,natbibパッケージは使用してはなりません.\SpecialChar LyX
12982 中では,引用参照は通常通り表示されますが,出力では上付き文字として表示
12983 されます.引用に通常の本文を使用したい場合には,「See Ref.
12984 \begin_inset space \space{}
12985 \end_inset
12986
12987
12988 \family typewriter
12989
12990 \backslash
12991 refcite{
12992 \family default
12993
12994 \begin_inset Flex Ruby
12995 status collapsed
12996
12997 \begin_layout Plain Layout
12998
12999 \family typewriter
13000
13001 \family default
13002
13003 \begin_inset Argument post:1
13004 status collapsed
13005
13006 \begin_layout Plain Layout
13007 キー
13008 \end_layout
13009
13010 \end_inset
13011
13012
13013 \end_layout
13014
13015 \end_inset
13016
13017
13018 \family typewriter
13019 }
13020 \family default
13021 」のように
13022 \family typewriter
13023 refcite
13024 \family default
13025 コマンドを使用してください.
13026 \end_layout
13027
13028 \begin_layout Enumerate
13029 両パッケージには,「謝辞」環境がありません.謝辞を置くには,「節*」環境を使用してください.
13030 \end_layout
13031
13032 \begin_layout Enumerate
13033 付録は,論文中,謝辞の
13034 \emph on
13035
13036 \emph default
13037 かつ書誌情報の
13038 \emph on
13039
13040 \emph default
13041 であれば,入れることができます.\SpecialChar LyX
13042 上では,「付録領域」という特別な環境があり,これを使って付録の開始位置を指定することができます.この環境は空のままにしておかなく
13043 てはなりません.この環境は,\SpecialChar LaTeX
13044 コマンドを書き出すだけで,実際に出力は行いません.\SpecialChar LyX
13045 上では,青字で「Appendix」という単語が表示され,この箇所より後の節はすべて
13046 付録であることを明示します.「付録領域」は,最初の付録の前に
13047 \emph on
13048 なくてはならない
13049 \emph default
13050 ことに注意してください.さもなくば,出力中において,付録はすべて通常の節として連番が振られてしまいます.
13051 \end_layout
13052
13053 \begin_layout Enumerate
13054 ijmpcおよびijmpdパッケージは,表キャプションを実装するのに
13055 \family typewriter
13056 tbl
13057 \family default
13058 コマンドを使用します.そのため,\SpecialChar LyX
13059 が作成した表は正しく印字されますが,そのキャプションは無視されます.しかし,\SpecialChar TeX
13060 コードを少し使えば,この問題を回避して,キャプション
13061 を望み通り印字することができるようになります.そうするには,表フロートを通常通り作成して,キャプションを削除し,代わりに\SpecialChar TeX
13062 コードで
13063 \family typewriter
13064
13065 \backslash
13066 tbl{表キャプション}{
13067 \family default
13068 (ママ)と入れます.そこに表の内容を入れて,直後を\SpecialChar TeX
13069 コード
13070 \family typewriter
13071 }
13072 \family default
13073 で閉じてください.このからくりがどのように実装されているかを見るには,ひな型ファイルに入っている表の例を精査してみてください.別の方法としては,表キャプションが
13074 欲しい場合に,表フロート全体を
13075 \family typewriter
13076 .tex
13077 \family default
13078 ファイルに収め,このファイルを\SpecialChar LyX
13079 文書に取り込んでください(
13080 \family sans
13081 挿入\SpecialChar menuseparator
13082 ファイル\SpecialChar menuseparator
13083 子文書
13084 \family default
13085 ).表フロートの作り方についての詳細は,各パッケージに含まれている
13086 \family typewriter
13087 ws-ijmpc.tex
13088 \family default
13089 または
13090 \family typewriter
13091 ws-ijmpd.tex
13092 \family default
13093 ファイルをご覧ください.
13094 \end_layout
13095
13096 \begin_layout Subsection
13097 原稿を投稿するための準備
13098 \end_layout
13099
13100 \begin_layout Standard
13101 論文を投稿する前には,\SpecialChar LyX
13102 文書を\SpecialChar LaTeX
13103 ファイルに書き出し(
13104 \family sans
13105 ファイル\SpecialChar menuseparator
13106 書き出し\SpecialChar menuseparator
13107 \SpecialChar LaTeX
13108
13109 \family default
13110
13111 \begin_inset Foot
13112 status open
13113
13114 \begin_layout Plain Layout
13115 実は,\SpecialChar LaTeX
13116  (plain)とpdflatexとの間で選択ができます.論文を準備するのにpdflatexを使用しようとするのであれば,取り込んである画像がPDF形式に
13117 変換され,pdflatexで使用できるように,pdflatexオプションを指定しなくてはなりません.
13118 \end_layout
13119
13120 \end_inset
13121
13122 ,その
13123 \family typewriter
13124 .tex
13125 \family default
13126 ファイルに以下の変更を加える必要があります.
13127 \end_layout
13128
13129 \begin_layout Enumerate
13130
13131 \family typewriter
13132
13133 \backslash
13134 documentclass
13135 \family default
13136 コマンドより前にあるコメント行を削除する.
13137 \end_layout
13138
13139 \begin_layout Enumerate
13140 自身で明示的に\SpecialChar LaTeX
13141 プリアンブルに置いたコマンドを除き,
13142 \family typewriter
13143
13144 \backslash
13145 makeatletter
13146 \family default
13147 コマンドと
13148 \family typewriter
13149
13150 \backslash
13151 makeatother
13152 \family default
13153 コマンドの間にあるものをすべて削除する.
13154 \end_layout
13155
13156 \begin_layout Standard
13157 こうして修正を加えた
13158 \family typewriter
13159 .tex
13160 \family default
13161 ファイルを保存し,必要な回数\SpecialChar LaTeX
13162 で処理してください.それによって得られた
13163 \family typewriter
13164 .dvi
13165 \family default
13166 文書も確認された方がよろしいでしょう.
13167 \end_layout
13168
13169 \begin_layout Section
13170 iopart
13171 \end_layout
13172
13173 \begin_layout Standard
13174
13175 \noun on
13176 Uwe Stöhr
13177 \noun default
13178
13179 \end_layout
13180
13181 \begin_layout Subsection
13182 概要
13183 \end_layout
13184
13185 \begin_layout Standard
13186 iopartパッケージは,Institute of Physics(イギリス物理学会)発行の学術誌へ電子的に投稿する原稿を作成するための文書クラスを提供していま
13187 す.iopartクラスを使用した論文作成方法の著者用説明書は,ウェブサイト
13188 \begin_inset Flex URL
13189 status collapsed
13190
13191 \begin_layout Plain Layout
13192
13193 ftp://ftp.iop.org/pub/journals/latex2e
13194 \end_layout
13195
13196 \end_inset
13197
13198 からiopartパッケージとともにダウンロード可能です.
13199 \end_layout
13200
13201 \begin_layout Subsection
13202 論文を書く
13203 \end_layout
13204
13205 \begin_layout Standard
13206 論文を書くもっとも簡単な方法は,ファイル\SpecialChar menuseparator
13207 新規(ひな型使用)\SpecialChar ldots
13208 にあるひな型
13209 \emph on
13210 IOP-article.lyx
13211 \emph default
13212 を土台にすることです.このひな型は,特定の環境の使用法についても説明しています.もっとも重要な助言として,以下の点にご注意ください.
13213 \end_layout
13214
13215 \begin_layout Itemize
13216 文書がPDF・PS・DVIにコンパイルできるようにするためには,
13217 \family sans
13218 文書\SpecialChar menuseparator
13219 設定\SpecialChar ldots
13220 \SpecialChar menuseparator
13221 数式オプション
13222 \family default
13223 で,AMSパッケージが読み込まれていないことを確認してください!
13224 \end_layout
13225
13226 \begin_layout Itemize
13227 タイトル環境の選択如何によって,論文の種類が定義されます.種類毎に以下の環境をタイトルに使用してください.
13228 \end_layout
13229
13230 \begin_deeper
13231 \begin_layout Itemize
13232 論文用には
13233 \family sans
13234 タイトル
13235 \end_layout
13236
13237 \begin_layout Itemize
13238 Review用には
13239 \family sans
13240 Review
13241 \end_layout
13242
13243 \begin_layout Itemize
13244 Topical review用には
13245 \family sans
13246 Topical
13247 \end_layout
13248
13249 \begin_layout Itemize
13250 Comment用には
13251 \family sans
13252 Comment
13253 \end_layout
13254
13255 \begin_layout Itemize
13256 Note用には
13257 \family sans
13258 注釈
13259 \end_layout
13260
13261 \begin_layout Itemize
13262 論文用には
13263 \family sans
13264 Paper
13265 \family default
13266 (タイトルと同じ)
13267 \end_layout
13268
13269 \begin_layout Itemize
13270 Preliminary communication用には
13271 \family sans
13272 Prelim
13273 \end_layout
13274
13275 \begin_layout Itemize
13276 Rapid communication用には
13277 \family sans
13278 Rapid
13279 \end_layout
13280
13281 \begin_layout Itemize
13282 編集者へのLetterには
13283 \family sans
13284 書簡
13285 \end_layout
13286
13287 \end_deeper
13288 \begin_layout Itemize
13289
13290 \family sans
13291 書簡
13292 \family default
13293 以外のタイトル環境には,すべて短縮タイトルをつけることもできます.
13294 \end_layout
13295
13296 \begin_layout Itemize
13297 \SpecialChar LyX
13298 では直接にサポートされていませんが,一般的なタイトル環境として
13299 \family sans
13300 Article
13301 \family default
13302 があります.執筆する文書が,他のタイトル型にそぐわない場合には,\SpecialChar TeX
13303 コードでこれを指定することができます.
13304 \end_layout
13305
13306 \begin_layout Standard
13307 特別な表や数式組版に関するヒントなど,詳しい情報については,IOP著者用ガイドラインを参照してください.
13308 \end_layout
13309
13310 \begin_layout Section
13311 Kluwer
13312 \end_layout
13313
13314 \begin_layout Standard
13315
13316 \noun on
13317 Panayotis Papasotiriou
13318 \noun default
13319
13320 \end_layout
13321
13322 \begin_layout Subsection
13323 概要
13324 \end_layout
13325
13326 \begin_layout Standard
13327 Kluwerパッケージは,Kluwer Academic Publishers社が発行する学術誌への電子投稿を可能にするために,同社が作成したマクロ集です.同社
13328 の発行誌のうち,(少なくとも私の専門内で)もっともよく知られているものは,
13329 \emph on
13330 Astrophysics and Space Science
13331 \emph default
13332 (『宇宙物理学と宇宙科学』)と
13333 \emph on
13334 Solar Physics
13335 \emph default
13336 (『太陽系物理学』)ですが,他にも多くの学術誌があります(
13337 \begin_inset Flex URL
13338 status collapsed
13339
13340 \begin_layout Plain Layout
13341
13342 http://www.wkap.nl/jrnllist.htm/JRNLHOME
13343 \end_layout
13344
13345 \end_inset
13346
13347 に全覧があります).Kluwerパッケージは,
13348 \begin_inset Flex URL
13349 status collapsed
13350
13351 \begin_layout Plain Layout
13352
13353 http://www.wkap.nl/kaphtml.htm/STYLEFILES
13354 \end_layout
13355
13356 \end_inset
13357
13358 からダウンロードできます.完全なユーザーの手引きも同パッケージ内に収録されています(個別にダウンロードすることも可能です).
13359 \end_layout
13360
13361 \begin_layout Standard
13362 \SpecialChar LyX
13363 は,このパッケージの機能の多くをサポートしていますが,すべてではありません.しかし,\SpecialChar TeX
13364 コードを必要とするのは,パッケージ中のいくつかの「変わった」コマンドだけにな
13365 りました(
13366 \begin_inset CommandInset ref
13367 LatexCommand ref
13368 reference "subsec:kluwer_peculiarities"
13369
13370 \end_inset
13371
13372 参照).最近,私は\SpecialChar LyX
13373 を使って書いた論文を
13374 \emph on
13375 Astrophysics and Space Science
13376 \emph default
13377 に投稿しましたが,何らの問題も発生しませんでした.
13378 \end_layout
13379
13380 \begin_layout Subsection
13381 論文を書く
13382 \end_layout
13383
13384 \begin_layout Standard
13385 論文を書き始めるには,ひな型ファイルKluwerを使うのが最も簡単です.
13386 \family sans
13387 ファイル\SpecialChar menuseparator
13388 新規(ひな型使用)
13389 \family default
13390 をクリックし,ひな型
13391 \family typewriter
13392 kluwer.lyx
13393 \family default
13394 を選択してください.これは,原稿に通常必要となる各フィールドと,それらの使用法が短く書かれただけの,(ほとんど)何も書かれていない文書です.他のテンプレートと同
13395 様に,既存の文章を(括弧
13396 \family typewriter
13397 <>
13398 \family default
13399 を含む)正しい情報で上書きしてください.
13400 \end_layout
13401
13402 \begin_layout Subsection
13403 投稿の準備
13404 \end_layout
13405
13406 \begin_layout Standard
13407 AAS\SpecialChar TeX
13408 パッケージと同様,論文を投稿する前に,以下のような「後処理」を行う必要があります.
13409 \end_layout
13410
13411 \begin_layout Enumerate
13412
13413 \family sans
13414 ファイル\SpecialChar menuseparator
13415 書き出し\SpecialChar menuseparator
13416 LateX
13417 \family default
13418 をクリックして,論文を\SpecialChar LaTeX
13419 ファイルに書き出す.
13420 \end_layout
13421
13422 \begin_layout Enumerate
13423 生成された
13424 \family typewriter
13425 .tex
13426 \family default
13427 ファイルに,テキストエディタを使用して,以下のような変更を加える.
13428 \end_layout
13429
13430 \begin_deeper
13431 \begin_layout Enumerate
13432
13433 \family typewriter
13434
13435 \backslash
13436 documentclass
13437 \family default
13438 コマンドより前にあるコメント行を削除する.
13439 \end_layout
13440
13441 \begin_layout Enumerate
13442 意図的に\SpecialChar LaTeX
13443 プリアンブルに加えたコマンドを除き,
13444 \family typewriter
13445
13446 \backslash
13447 makeatletter
13448 \family default
13449 から 
13450 \family typewriter
13451
13452 \backslash
13453 makeatother
13454 \family default
13455 の間にあるものを,これらのコマンドも含め,すべて削除する.
13456 \end_layout
13457
13458 \begin_layout Standard
13459 変更した
13460 \family typewriter
13461 .tex
13462 \family default
13463 ファイルを保存する.
13464 \end_layout
13465
13466 \end_deeper
13467 \begin_layout Enumerate
13468 この
13469 \family typewriter
13470 .tex
13471 \family default
13472 ファイルを必要な回数(通常3回以内)だけ\SpecialChar LaTeX
13473 にかける.
13474 \end_layout
13475
13476 \begin_layout Enumerate
13477 生成された
13478 \family typewriter
13479 .dvi
13480 \family default
13481 ファイルを
13482 \family sans
13483 xdvi
13484 \family default
13485 などを使って開き,問題がないか確認する(間違いをしていない限り問題ないはずです).
13486 \end_layout
13487
13488 \begin_layout Subsection
13489 Kluwerパッケージの「風変わり」な特徴
13490 \begin_inset CommandInset label
13491 LatexCommand label
13492 name "subsec:kluwer_peculiarities"
13493
13494 \end_inset
13495
13496
13497 \end_layout
13498
13499 \begin_layout Standard
13500 Kluwerパッケージには,以下のような「風変わりな」特徴があります.
13501 \end_layout
13502
13503 \begin_layout Enumerate
13504 複数の論文を1つの\SpecialChar LaTeX
13505 ファイルへ入れることができます
13506 \begin_inset Foot
13507 status collapsed
13508
13509 \begin_layout Plain Layout
13510 わざわざこんなことをする必要はないでしょう.
13511 \end_layout
13512
13513 \end_inset
13514
13515 .各論文は,「article」環境で囲まなくてはなりません.残念ながら,1つの論文だけを書く場合でも,この環境を省略することはできません.つまり,各論文は
13516 \family typewriter
13517
13518 \backslash
13519 begin{article}
13520 \family default
13521 で始まり,
13522 \family typewriter
13523
13524 \backslash
13525 end{article}
13526 \family default
13527 で終わります.この環境を\SpecialChar LyX
13528 に実装することも可能でしたが,醜い上に初心者を混乱させる可能性があるので,実装することはしませんでした.したがって,これらの命令(
13529 \family typewriter
13530
13531 \backslash
13532 begin{article}
13533 \family default
13534
13535 \family typewriter
13536
13537 \backslash
13538 end{article}
13539 \family default
13540 )は,直接本文中に入力して,\SpecialChar LaTeX
13541 コード(「\SpecialChar TeX
13542 コード」のことです)としてマークする必要があります.
13543 \end_layout
13544
13545 \begin_layout Enumerate
13546 論文の冒頭に置く情報(タイトル・サブタイトル・著者名・所属・ヘッダ用タイトル・ヘッダ用著者名・概要・キーワード)は,「opening」とよばれる環境に入れなくて
13547 はなりません.これは\SpecialChar LyX
13548 では実装されていませんので,タイトルやサブタイトルなどは,2つの\SpecialChar TeX
13549 コード行(
13550 \family typewriter
13551
13552 \backslash
13553 begin{opening}
13554 \family default
13555 および
13556 \family typewriter
13557
13558 \backslash
13559 end{opening}
13560 \family default
13561 )の間に入れる必要があります.
13562 \end_layout
13563
13564 \begin_layout Enumerate
13565 ユーザーの手引きによれば,書誌情報の各項目のラベルは,
13566 \family typewriter
13567
13568 \begin_inset Newline newline
13569 \end_inset
13570
13571
13572 \backslash
13573 protect
13574 \backslash
13575 citeauthoryear{
13576 \family default
13577 \emph on
13578 著者名
13579 \family typewriter
13580 \emph default
13581 }{
13582 \family default
13583 \emph on
13584
13585 \family typewriter
13586 \emph default
13587 }
13588 \family default
13589  と書く必要があります.
13590 \end_layout
13591
13592 \begin_layout Standard
13593 ひな型
13594 \family typewriter
13595 kluwer.lyx
13596 \family default
13597 は,これらの風変わりな点がすべて考慮されています.このひな型を使用して,論文を新たに書きはじめる場合には,特別なことを行う必要はありません.以下の点にのみ留意し
13598 てください.
13599 \end_layout
13600
13601 \begin_layout Enumerate
13602 ひな型にある\SpecialChar TeX
13603 コードを削除しないでください.
13604 \end_layout
13605
13606 \begin_layout Enumerate
13607 新しい書誌情報項目を入力する場合には,ひな型に例示されている書誌情報項目をコピーして,必要に応じて修正してください.
13608 \end_layout
13609
13610 \begin_layout Section
13611 Koma-Script
13612 \end_layout
13613
13614 \begin_layout Standard
13615
13616 \noun on
13617 Bernd Rellermeyer
13618 \noun default
13619
13620 \end_layout
13621
13622 \begin_layout Subsection
13623 概要
13624 \end_layout
13625
13626 \begin_layout Standard
13627 \SpecialChar LyX
13628 の文書クラス
13629 \emph on
13630 article (koma-script)
13631 \emph default
13632
13633 \emph on
13634 report (koma-script)
13635 \emph default
13636
13637 \emph on
13638 book
13639 \emph default
13640  
13641 \emph on
13642 (koma-script)
13643 \emph default
13644
13645 \emph on
13646 letter
13647 \emph default
13648  
13649 \emph on
13650 (koma-script)
13651 \emph default
13652 は,それぞれKoma-Scriptファミリーの\SpecialChar LaTeX
13653 文書クラス
13654 \family typewriter
13655 scrartcl.cls
13656 \family default
13657
13658 \family typewriter
13659 scrreprt.cls
13660 \family default
13661
13662 \family typewriter
13663 scrbook.cls
13664 \family default
13665
13666 \family typewriter
13667 scrlettr.cls
13668 \family default
13669 に対応しています.これらは,標準文書クラス
13670 \family typewriter
13671 article.cls
13672 \family default
13673
13674 \family typewriter
13675 report.cls
13676 \family default
13677
13678 \family typewriter
13679 book.cls
13680 \family default
13681
13682 \family typewriter
13683 letter.cls
13684 \family default
13685 の代替物であり,これらよりも多くの点でヨーロッパに於ける活版印刷の慣例に合致します.
13686 \end_layout
13687
13688 \begin_layout Itemize
13689 標準文字寸法は,
13690 \emph on
13691 article (koma-script)
13692 \emph default
13693
13694 \emph on
13695 report (koma-script)
13696 \emph default
13697
13698 \emph on
13699 book (koma-script)
13700 \emph default
13701 で11pt,
13702 \emph on
13703 letter (koma-script)
13704 \emph default
13705 で12ptです.
13706 \end_layout
13707
13708 \begin_layout Itemize
13709 見出しや箇条書き(記述)環境のラベル,および
13710 \emph on
13711 letter (koma-script)
13712 \emph default
13713 文書クラスの要素の多くでは,ボールド体サンセリフフォントが使われます
13714 \begin_inset Foot
13715 status collapsed
13716
13717 \begin_layout Plain Layout
13718 ボールド体サンセリフフォントには,古いcmフォントと新しいecフォントの間に大きな違いがあり,特に見出しの表示の違いが際立ちます.比較すると,ecボールドサンセ
13719 リフフォントの方が,少し細く見えます.ecフォントを使用する際に「通常の」外観が欲しい場合には,
13720 \shape smallcaps
13721 Walter Schmidt
13722 \shape default
13723 作の\SpecialChar LaTeX
13724 パッケージ
13725 \family typewriter
13726 cmsd.sty
13727 \family default
13728 が役立ちます.
13729 \end_layout
13730
13731 \end_inset
13732
13733 .章見出しの連番は,節見出しの連番と同様に行われ,別行立てで「 Chapter\SpecialChar ldots
13734 」という行がつきません.さらに,多くのオプションによって,見出しの外観を修正するこ
13735 とができます(\SpecialChar LyX
13736 では,
13737 \family sans
13738 文書\SpecialChar menuseparator
13739 設定
13740 \family default
13741 ダイアログの
13742 \family sans
13743 クラスオプション
13744 \family default
13745 フィールドで指定します).これらのオプションの独語での詳細な説明が,Koma-Scriptの取扱説明書
13746 \emph on
13747 scrguide
13748 \emph default
13749 にあります.
13750 \end_layout
13751
13752 \begin_layout Itemize
13753 Koma-Script文書クラスで,印字部分をデザインする主な方法は,
13754 \family sans
13755 BCOR
13756 \family default
13757 オプションまたは
13758 \family sans
13759 DIV
13760 \family default
13761 オプションを使う方法です(\SpecialChar LyX
13762 では,
13763 \family sans
13764 文書\SpecialChar menuseparator
13765 設定
13766 \family default
13767 ダイアログの
13768 \family sans
13769 クラスオプション
13770 \family default
13771 フィールドで指定します).これらのオプションは
13772 \family sans
13773 文書\SpecialChar menuseparator
13774 設定
13775 \family default
13776 ダイアログのオプションと同様に,ページ余白を明示的に変更することができます.これらとその他印字領域オプションのドイツ語での詳細な説明が,Koma-Script取
13777 扱説明書
13778 \emph on
13779 scrguide
13780 \emph default
13781 にあります.
13782 \end_layout
13783
13784 \begin_layout Itemize
13785 Koma-Scriptファミリーの\SpecialChar LaTeX
13786 文書クラスには,多くの追加コマンドが定義されています.それらのうち,\SpecialChar LyX
13787 で意味を持つものは,対応する段落環境として実装されています
13788
13789 \end_layout
13790
13791 \begin_layout Standard
13792 Koma-Scriptファミリーの\SpecialChar LaTeX
13793 文書クラスに関する独語の詳細な説明が,Koma-Script取扱説明書
13794 \emph on
13795 scrguide
13796 \emph default
13797 にあります
13798 \begin_inset Foot
13799 status collapsed
13800
13801 \begin_layout Plain Layout
13802 英語翻訳版の
13803 \emph on
13804 screnggu
13805 \emph default
13806 もありますが,完訳ではありません.
13807 \end_layout
13808
13809 \end_inset
13810
13811 .以下の各節では,\SpecialChar LyX
13812 に関係する側面のみ説明致します.
13813 \end_layout
13814
13815 \begin_layout Subsection
13816 article (koma-script)・report (koma-script)・book (koma-script)
13817 \end_layout
13818
13819 \begin_layout Standard
13820 文書クラス
13821 \emph on
13822 article (koma-script)
13823 \emph default
13824
13825 \emph on
13826 report (koma-script)
13827 \emph default
13828
13829 \emph on
13830 book
13831 \emph default
13832  
13833 \emph on
13834 (koma-script)
13835 \emph default
13836 は,それぞれレイアウトファイル
13837 \family typewriter
13838 scrartcl.layout
13839 \family default
13840
13841 \family typewriter
13842 scrreprt.layou
13843 \family default
13844 t・
13845 \family typewriter
13846 crbook.layout
13847 \family default
13848 によって実装されています.これらは,対応する標準文書クラス
13849 \emph on
13850 article
13851 \emph default
13852
13853 \emph on
13854 report
13855 \emph default
13856
13857 \emph on
13858 book
13859 \emph default
13860 の段落環境を,若干の修正を加えた上ですべて含んでいますが,\SpecialChar LyX
13861 固有の
13862 \family sans
13863 箇条書き(一覧)
13864 \family default
13865 環境は例外であり,同じ機能を持つ新しい
13866 \family sans
13867 ラベリング
13868 \family default
13869 環境で置き換えられています.この
13870 \family sans
13871 ラベリング
13872 \family default
13873 環境以外にも,新しい段落環境が多く追加されています.これらは,
13874 \emph on
13875 letter (koma-script)
13876 \emph default
13877 には含まれていないのでご注意ください.
13878 \end_layout
13879
13880 \begin_layout Itemize
13881
13882 \family sans
13883 部(addpart)
13884 \family default
13885
13886 \family sans
13887 章(addchap)
13888 \family default
13889
13890 \family sans
13891 節(addsec)
13892 \family default
13893 :これらは,それぞれ
13894 \family sans
13895 部*
13896 \family default
13897
13898 \family sans
13899 章*
13900 \family default
13901
13902 \family sans
13903 節*
13904 \family default
13905 と同等の働きをしますが,加えて目次に項目が表示されるようになります.
13906 \family sans
13907 部(addpart)
13908 \family default
13909
13910 \family sans
13911 章(addchap)
13912 \family default
13913 は,
13914 \emph on
13915 article (koma-script)
13916 \emph default
13917 には収録されていません.
13918 \end_layout
13919
13920 \begin_layout Itemize
13921
13922 \family sans
13923 章(addchap*)
13924 \family default
13925
13926 \family sans
13927 節(addsec*)
13928 \family default
13929 :これらは,
13930 \family sans
13931 章(addchap
13932 \family default
13933 )と
13934 \family sans
13935 節(addsec)
13936 \family default
13937 とまったく同等に動作しますが,加えてランニングへッダを取り除きます.
13938 \family sans
13939 章(addchap*)
13940 \family default
13941 は, 
13942 \emph on
13943 article (koma-script)
13944 \emph default
13945 には収録されていません
13946 \begin_inset Foot
13947 status collapsed
13948
13949 \begin_layout Plain Layout
13950
13951 \emph on
13952 book (koma-script)
13953 \emph default
13954
13955 \emph on
13956 report (koma-script)
13957 \emph default
13958 には,
13959 \family typewriter
13960
13961 \backslash
13962 addpart*
13963 \family default
13964 コマンドもありますが,これは
13965 \family sans
13966 Part*
13967 \family default
13968 と同一なので,\SpecialChar LyX
13969 では実装されていません.
13970 \end_layout
13971
13972 \end_inset
13973
13974
13975 \end_layout
13976
13977 \begin_layout Itemize
13978
13979 \family sans
13980 小見出し(minisec)
13981 \family default
13982 :これは文書構造に現れない形で,続く段落の直上に標準文字寸法の見出しを付けます.
13983 \end_layout
13984
13985 \begin_layout Itemize
13986
13987 \family sans
13988 上部キャプション
13989 \family default
13990
13991 \family sans
13992 下部キャプション
13993 \family default
13994 は,ある要素の上部ないし下部にキャプションを配置する際,位置に応じて正しく余白取りを行う特別なキャプションです(組版規則に厳密に従うならば,表キャプションは,つ
13995 ねに表の上に置くべきでしょう).また,クラスオプション
13996 \family typewriter
13997 tablecaptionsabove
13998 \family default
13999 を用いれば,キャプションを指定すると,表には
14000 \family sans
14001 上部キャプション
14002 \family default
14003 が,図には
14004 \family sans
14005 下部キャプション
14006 \family default
14007 が適用されるようになります.これを使用するためには,Koma-Script第2.8q版以上が必要です.
14008 \end_layout
14009
14010 \begin_layout Itemize
14011
14012 \family sans
14013 格言(dictum)
14014 \family default
14015 :これは,章頭などに警句を置くのに用いることができます.オプション引数(
14016 \family sans
14017 挿入\SpecialChar menuseparator
14018 格言著者
14019 \family default
14020 )を用いれば,格言の作者を入れることができます.格言と作者の間は,線で区切られます.これを使用するためには,Koma-Script第2.8q版以上が必要です.
14021 \family sans
14022 格言(dictum)
14023 \family default
14024 は,
14025 \emph on
14026 article (koma-script)
14027 \emph default
14028 には収録されていません.
14029 \end_layout
14030
14031 \begin_layout Standard
14032 以下の各環境は,標準の
14033 \family sans
14034 タイトル
14035 \family default
14036
14037 \family sans
14038 著者
14039 \family default
14040
14041 \family sans
14042 日付
14043 \family default
14044 とともに文書のタイトル領域を形成します.これらは,最初の「通常の」段落よりも前に置かれる必要があります
14045 \begin_inset Foot
14046 status collapsed
14047
14048 \begin_layout Plain Layout
14049 つまり,対応する\SpecialChar LaTeX
14050 コマンドが
14051 \family typewriter
14052
14053 \backslash
14054 maketitle
14055 \family default
14056 コマンドよりも前に現れなくてはなりません.
14057 \end_layout
14058
14059 \end_inset
14060
14061 .これらの環境が2度以上使用された場合には,後に使用されたものが前のものを上書きします.つまり最後に使用したもののみが有効になります.しかしながら,
14062 \family sans
14063 タイトル
14064 \family default
14065
14066 \family sans
14067 著者
14068 \family default
14069
14070 \family sans
14071 日付
14072 \family default
14073 のような異なる環境の順序を変更しても,生成された文書には何の効果も生じません.
14074 \end_layout
14075
14076 \begin_layout Itemize
14077
14078 \family sans
14079 主題
14080 \family default
14081 :通常のタイトル部(
14082 \family sans
14083 タイトル
14084 \family default
14085
14086 \family sans
14087 著者
14088 \family default
14089
14090 \family sans
14091 日付
14092 \family default
14093 )の上に,文書の主題用の中央揃えの段落を生成します.
14094 \end_layout
14095
14096 \begin_layout Itemize
14097
14098 \family sans
14099 出版社
14100 \family default
14101 :通常のタイトル部(
14102 \family sans
14103 タイトル
14104 \family default
14105
14106 \family sans
14107 著者
14108 \family default
14109
14110 \family sans
14111 日付
14112 \family default
14113 )の下に,出版社名用の中央揃えの段落を生成します.
14114 \end_layout
14115
14116 \begin_layout Itemize
14117
14118 \family sans
14119 献呈
14120 \family default
14121
14122 \emph on
14123 report (koma-script)
14124 \emph default
14125
14126 \emph on
14127 book (koma-script)
14128 \emph default
14129 では,タイトル頁の次に,献辞用の中央揃えの段落を独立した頁として生成します.
14130 \emph on
14131 article (koma-script)
14132 \emph default
14133 の場合は,通常のタイトル部(
14134 \family sans
14135 タイトル
14136 \family default
14137
14138 \family sans
14139 著者
14140 \family default
14141
14142 \family sans
14143 日付
14144 \family default
14145 )の下に献辞用の中央揃えの段落を生成します.
14146 \end_layout
14147
14148 \begin_layout Itemize
14149
14150 \family sans
14151 タイトル頭書き
14152 \family default
14153 :通常のタイトル部(
14154 \family sans
14155 タイトル
14156 \family default
14157
14158 \family sans
14159 著者
14160 \family default
14161
14162 \family sans
14163 日付
14164 \family default
14165 )の上に,文書頭書き用の左揃えの段落を生成します.
14166 \end_layout
14167
14168 \begin_layout Itemize
14169
14170 \family sans
14171 扉裏上部
14172 \family default
14173
14174 \emph on
14175 report (koma-script)
14176 \emph default
14177 や 
14178 \emph on
14179 book (koma-script)
14180 \emph default
14181 の両面印刷において,扉裏上部に左揃え段落を生成します.片面印刷や,
14182 \emph on
14183 article (koma-script)
14184 \emph default
14185 では何の効果も生じません.
14186 \end_layout
14187
14188 \begin_layout Itemize
14189
14190 \family sans
14191 扉裏下部
14192 \family default
14193
14194 \emph on
14195 report (koma-script)
14196 \emph default
14197 や 
14198 \emph on
14199 book (koma-script)
14200 \emph default
14201 の両面印刷において,扉裏下部に左揃え段落を生成します.片面印刷や,
14202 \emph on
14203 article (koma-script)
14204 \emph default
14205 では何の効果も生じません.
14206 \end_layout
14207
14208 \begin_layout Itemize
14209
14210 \family sans
14211 追加タイトル
14212 \family default
14213 :実際の文書の前に,整形を行わない段落から成る,特殊な「汚い」ページを生成します.
14214 \end_layout
14215
14216 \begin_layout Standard
14217 文書クラス
14218 \emph on
14219 article (koma-script)
14220 \emph default
14221
14222 \emph on
14223 report (koma-script)
14224 \emph default
14225
14226 \emph on
14227 book (koma-script)
14228 \emph default
14229 の 各レイアウトファイルは,
14230 \family typewriter
14231 scrmacros.inc
14232 \family default
14233 ファイルを読み込みます.このファイルは,ユーザ環境を定義する場所として想定されています.s
14234 \family typewriter
14235 crmacros.inc
14236 \family default
14237 を,個人用レイアウトディレクトリにコピーして編集してください!
14238 \end_layout
14239
14240 \begin_layout Subsection
14241 letter (koma-script)
14242 \end_layout
14243
14244 \begin_layout Description
14245 \noindent
14246
14247 \family sans
14248 \series bold
14249 註:
14250 \family default
14251 \series default
14252  本節は,廃版となっている
14253 \family sans
14254 KOMA-Script-Letter (v.
14255 \begin_inset space ~
14256 \end_inset
14257
14258 1)
14259 \family default
14260 について論じています.これは,最近のKOMAリリースでは収録もされていません.現行の
14261 \family sans
14262 KOMA-Script-Letter (v.
14263 \begin_inset space ~
14264 \end_inset
14265
14266 2)
14267 \family default
14268 については,次節を参照してください!
14269 \end_layout
14270
14271 \begin_layout Standard
14272 \noindent
14273 文書クラス
14274 \emph on
14275 letter (koma-script)
14276 \emph default
14277 は,レイアウトファイル 
14278 \family typewriter
14279 scrlettr.layout
14280 \family default
14281 で実装されています.このレイアウトファイルには,対応する標準文書クラス
14282 \emph on
14283 letter
14284 \emph default
14285 の全段落環境が,部分的に変更を加えた形で収録されていますが,\SpecialChar LyX
14286 固有環境の
14287 \family sans
14288 \SpecialChar LyX
14289 コード
14290 \family default
14291
14292 \family sans
14293 コメント
14294 \family default
14295
14296 \family sans
14297 箇条書き(一覧
14298 \family default
14299 )は,新しく
14300 \family sans
14301 ラベリング
14302 \family default
14303 環境に置き換えられています.それ以外にも,標準文書クラスとは異なり,標準環境の
14304 \family sans
14305 \SpecialChar LaTeX
14306
14307 \family default
14308
14309 \family sans
14310 引用(字下げあり)
14311 \family default
14312
14313 \family sans
14314 引用(字下げなし)
14315 \family default
14316
14317 \family sans
14318 詩句
14319 \family default
14320 が収録されています.さらに,新しいletter固有環境がたくさん追加されています.
14321 \end_layout
14322
14323 \begin_layout Standard
14324 この文書クラスで作成した書簡の外観は,様々な\SpecialChar LaTeX
14325 コマンドを\SpecialChar LaTeX
14326 プリアンブルに置くことで制御することができます
14327 \begin_inset Foot
14328 status collapsed
14329
14330 \begin_layout Plain Layout
14331 例えば,名前と住所の入った書簡ヘッダの標準的外観は,きわめて頑固です.「普通の」へッダは,プリアンブル中に以下のようなコマンドを入れることで生成することができま
14332 す.
14333 \end_layout
14334
14335 \begin_layout LyX-Code
14336
14337 \backslash
14338 firsthead{
14339 \backslash
14340 parbox[b]{
14341 \backslash
14342 textwidth}
14343 \end_layout
14344
14345 \begin_layout LyX-Code
14346   {
14347 \backslash
14348 ignorespaces 
14349 \backslash
14350 fromname
14351 \backslash
14352
14353 \backslash
14354  
14355 \backslash
14356 ignorespaces 
14357 \backslash
14358 fromaddress}} 
14359 \end_layout
14360
14361 \begin_layout LyX-Code
14362
14363 \backslash
14364 nexthead{
14365 \backslash
14366 parbox[b]{
14367 \backslash
14368 textwidth}
14369 \end_layout
14370
14371 \begin_layout LyX-Code
14372   {
14373 \backslash
14374 ignorespaces 
14375 \backslash
14376 fromname 
14377 \backslash
14378 hfill 
14379 \backslash
14380 ignorespaces 
14381 \backslash
14382 pagename
14383 \backslash
14384
14385 \end_layout
14386
14387 \begin_layout LyX-Code
14388
14389 \backslash
14390 thepage}}
14391 \end_layout
14392
14393 \end_inset
14394
14395 .これらの\SpecialChar LaTeX
14396 コマンドのドイツ語での詳細な説明は,Koma-Scriptの取扱説明書
14397 \emph on
14398 scrguide
14399 \emph default
14400 にあります.この方法で,書簡の著者は,個人用書簡レイアウトを作ることができます.
14401 \end_layout
14402
14403 \begin_layout Standard
14404
14405 \family sans
14406 書簡
14407 \family default
14408 環境および
14409 \family sans
14410 頭語
14411 \family default
14412 環境は,書簡の冒頭部を定義するもので,すべての書簡で使用しなくてはなりません.\SpecialChar LyX
14413 文書クラスでは,これらの環境を強調するために,左余白にそれぞれ
14414 \shape italic
14415 L
14416 \shape default
14417
14418 \shape italic
14419 O
14420 \shape default
14421 という文字が表示されます.同一ファイル中には,複数の書簡を書くことができます.
14422 \family sans
14423 頭語
14424 \family default
14425 環境は,同じ受取人への書簡を新しく書き出すものであり,
14426 \family sans
14427 書簡
14428 \family default
14429 環境は,新しい受取人を生成するものです.
14430 \family sans
14431 結語
14432 \family default
14433
14434 \family sans
14435 PS
14436 \family default
14437
14438 \family sans
14439 CC
14440 \family default
14441
14442 \family sans
14443 Encl
14444 \family default
14445 は,通常の段落環境なので,同一の書簡中でも何度も使用することができます.
14446 \end_layout
14447
14448 \begin_layout Itemize
14449
14450 \family sans
14451 書簡
14452 \family default
14453 :受取人のための段落をつくり,暗黙に書簡の開始を定義します.
14454 \end_layout
14455
14456 \begin_layout Itemize
14457
14458 \family sans
14459 頭語
14460 \family default
14461 :敬称のための段落をつくり,暗黙に新しい書簡を開始します.
14462 \end_layout
14463
14464 \begin_layout Itemize
14465
14466 \family sans
14467 結語
14468 \family default
14469 :結語のための段落をつくります.
14470 \end_layout
14471
14472 \begin_layout Itemize
14473
14474 \family sans
14475 PS
14476 \family default
14477 :追伸のための段落をつくります.
14478 \end_layout
14479
14480 \begin_layout Itemize
14481
14482 \family sans
14483 CC
14484 \family default
14485 :同報一覧のための段落をつくります.
14486 \end_layout
14487
14488 \begin_layout Itemize
14489
14490 \family sans
14491 Encl
14492 \family default
14493 :同封物のための段落をつくります.
14494 \end_layout
14495
14496 \begin_layout Standard
14497
14498 \family sans
14499 名前
14500 \family default
14501
14502 \family sans
14503 署名
14504 \family default
14505
14506 \family sans
14507 住所
14508 \family default
14509
14510 \family sans
14511 電話
14512 \family default
14513
14514 \family sans
14515 場所(Place
14516 \family default
14517 )・
14518 \family sans
14519 返送先住所
14520 \family default
14521
14522 \family sans
14523 配送手段(Specialmail)
14524 \family default
14525
14526 \family sans
14527 場所
14528 \family default
14529
14530 \family sans
14531 タイトル
14532 \family default
14533
14534 \family sans
14535 主題
14536 \family default
14537 は,情報入力を促すラベルの付いた入力環境で,文書クラスが適切な処理を行います
14538 \begin_inset Foot
14539 status collapsed
14540
14541 \begin_layout Plain Layout
14542 上述の
14543 \family sans
14544 書簡
14545 \family default
14546
14547 \family sans
14548 頭語
14549 \family default
14550 が,これらのような入力環境でないのは,矛盾しているように感じられるかもしれません.しかしながら,これら2つの環境は特別の意味を持っているために,これらは左余白に
14551 一文字をマークした通常の段落環境として実装しました.さらに,
14552 \family sans
14553 頭語
14554 \family default
14555 環境と
14556 \family sans
14557 結語
14558 \family default
14559 環境が著しく異なって見えると対称性が損なわれることになるのも理由の一つです.
14560 \end_layout
14561
14562 \end_inset
14563
14564 .これらの環境は,対応する
14565 \family sans
14566 頭語
14567 \family default
14568 環境の前に置く必要があります.
14569 \end_layout
14570
14571 \begin_layout Standard
14572 生成された書簡の実際の外観は,特定の環境の使い方だけではなく,他の要素にも依存するため,これらの環境をWYSIWYGとして実装することには,あまり意味がありませ
14573 ん.たとえば,
14574 \family sans
14575 署名
14576 \family default
14577 環境で入力した署名は,標準的な挙動では,同じ書簡に
14578 \family sans
14579 結語
14580 \family default
14581 環境も使用されているときのみ,書簡の出力に現れます.
14582 \family sans
14583 電話
14584 \family default
14585 環境に入力された値は,標準的な挙動では,書簡の出力には全く表示されません.書簡のヘッダを自由にデザインできることは,前出の脚注で示してあります.
14586 \end_layout
14587
14588 \begin_layout Standard
14589 入力環境は,空の段落として使うことができます.これは,たとえば
14590 \family sans
14591 署名
14592 \family default
14593 環境の場合に有効です.
14594 \family sans
14595 署名
14596 \family default
14597 環境を全く使用しない場合は,標準的な挙動では,
14598 \family sans
14599 名前
14600 \family default
14601 環境の値が署名として使用されますが,空の
14602 \family sans
14603 署名
14604 \family default
14605 環境を作成しておくと,署名の値は無定義となりません.
14606 \end_layout
14607
14608 \begin_layout Standard
14609 入力環境を使用すると,個人データ(名前や住所など)が既に入力された入力環境と,後から入力するデータの入力環境を備えた,書簡のひな型を作成することができます.
14610 \end_layout
14611
14612 \begin_layout Itemize
14613
14614 \family sans
14615 名前
14616 \family default
14617 :送り主の名前.標準的な挙動では,書簡のヘッダ部にスモールキャップ体の中央揃えの段落として表示されます.
14618 \end_layout
14619
14620 \begin_layout Itemize
14621
14622 \family sans
14623 署名
14624 \family default
14625 :送り主の署名.標準的な挙動では,
14626 \family sans
14627 結語
14628 \family default
14629 環境の下に表示されます.
14630 \family sans
14631 署名
14632 \family default
14633 環境を使用しないと,代わりに
14634 \family sans
14635 名前
14636 \family default
14637 環境の値が表示されます.
14638 \end_layout
14639
14640 \begin_layout Itemize
14641
14642 \family sans
14643 住所
14644 \family default
14645 :送り主の住所.標準的な挙動では,書簡ヘッダの送り主の名前の下に中央揃えの段落として表示されます.
14646 \end_layout
14647
14648 \begin_layout Itemize
14649
14650 \family sans
14651 電話
14652 \family default
14653 :送り主の電話番号.標準的な挙動では,\SpecialChar LaTeX
14654 変数
14655 \family typewriter
14656
14657 \backslash
14658 telephonenum
14659 \family default
14660 を設定するだけです.
14661 \end_layout
14662
14663 \begin_layout Itemize
14664
14665 \family sans
14666 場所(Place)
14667 \family default
14668 :書簡を書いた場所.
14669 \end_layout
14670
14671 \begin_layout Itemize
14672
14673 \family sans
14674 日付
14675 \family default
14676 :書簡を書いた日付.
14677 \family sans
14678 場所(Place)
14679 \family default
14680
14681 \family sans
14682 日付
14683 \family default
14684 は,標準的な挙動では,受取人フィールドの下に,単一の右揃え行として場所と日付を生成します.空の
14685 \family sans
14686 日付
14687 \family default
14688 環境を作成しておくと,
14689 \family sans
14690 場所(Place)
14691 \family default
14692 の値如何に関わらず,場所も日付も表示されません.
14693 \family sans
14694 日付
14695 \family default
14696 環境を使用しない場合には,書簡を出力した日付が使用されます.
14697 \end_layout
14698
14699 \begin_layout Itemize
14700
14701 \family sans
14702 返送先住所
14703 \family default
14704 :送り主の返送先住所.標準的な挙動では,受取人の上に小文字のサンセリフ体フォントで表示されます.
14705 \end_layout
14706
14707 \begin_layout Itemize
14708
14709 \family sans
14710 特別便
14711 \family default
14712 :特別便の情報.標準的な挙動では,受取人フィールドの上かつ返送先住所の下に,下線付きで表示されます.
14713 \end_layout
14714
14715 \begin_layout Itemize
14716
14717 \family sans
14718 場所
14719 \family default
14720 :追加情報.標準的な挙動では,受取人フィールドの下の右側に表示されます.
14721 \end_layout
14722
14723 \begin_layout Itemize
14724
14725 \family sans
14726 タイトル
14727 \family default
14728 :書簡の題名.標準的な挙動では,主題の上に大きなボールド体サンセリフフォントで表示されます.
14729 \end_layout
14730
14731 \begin_layout Itemize
14732
14733 \family sans
14734 主題
14735 \family default
14736 :書簡の主題.標準的な挙動では,
14737 \family sans
14738 頭語
14739 \family default
14740 環境の上にボールド体で表示されます.
14741 \end_layout
14742
14743 \begin_layout Standard
14744
14745 \family sans
14746 Yourref・Yourmail・Myref・顧客・インボイス
14747 \family default
14748 といった環境は,
14749 \family sans
14750 タイトル
14751 \family default
14752 行の上に「Your ref.」・「Your letter of」・「Our ref.」・「Customer no.」・「Invoice no.」・「Date」といったフ
14753 ィールド行を持つ,ビジネス書簡を作成します.日付フィールドには,
14754 \family sans
14755 日付
14756 \family default
14757 環境の値が使用されます.しかしながら,これらの「ビジネス書簡環境」の一つを使用した場合には,
14758 \family sans
14759 場所(Place)
14760 \family default
14761 の値は書簡には表示されなくなり,\SpecialChar LaTeX
14762 変数
14763 \family typewriter
14764
14765 \backslash
14766 fromplace
14767 \family default
14768 が設定させるだけになります.通常時に,受取人フィールドの下に右揃えで出力される場所と日付の出力は,抑制されます.これらのビジネス環境は,ラベル付きの入力環境とし
14769 て実装されており,対応する
14770 \family sans
14771 頭語
14772 \family default
14773 環境よりも前に置く必要があります.
14774 \end_layout
14775
14776 \begin_layout Itemize
14777
14778 \family sans
14779 Yourref
14780 \family default
14781 : Your ref.
14782 \end_layout
14783
14784 \begin_layout Itemize
14785
14786 \family sans
14787 Yourmail
14788 \family default
14789 : Your letter of.
14790 \end_layout
14791
14792 \begin_layout Itemize
14793
14794 \family sans
14795 Myref
14796 \family default
14797 : Our ref.
14798 \end_layout
14799
14800 \begin_layout Itemize
14801
14802 \family sans
14803 Customer
14804 \family default
14805 : Customer no.
14806 \end_layout
14807
14808 \begin_layout Itemize
14809
14810 \family sans
14811 Invoice
14812 \family default
14813 : Invoice no.
14814 \end_layout
14815
14816 \begin_layout Subsection
14817 新しいletterクラス:letter (koma-script v.2)
14818 \end_layout
14819
14820 \begin_layout Standard
14821 by 
14822 \noun on
14823 Jürgen Spitzmüller
14824 \begin_inset VSpace medskip
14825 \end_inset
14826
14827
14828 \end_layout
14829
14830 \begin_layout Standard
14831 \noindent
14832 Koma-Script第2.8版では,新しいletterクラス
14833 \family typewriter
14834 scrlttr2
14835 \family default
14836 が導入されたため,
14837 \family typewriter
14838 scrlettr
14839 \family default
14840 は廃止されてサポート対象外となりました.これは—\SpecialChar LaTeX
14841 側で—全く新しいインターフェイスを持っており,旧クラスとは互換性がありません.したがって,\SpecialChar LyX
14842 は両者をサポートしてい
14843 ますが,新しい方のクラスを使用することを推奨します.
14844 \end_layout
14845
14846 \begin_layout Standard
14847 このクラスは,
14848 \emph on
14849 letter (koma-script)
14850 \emph default
14851 と同一の機能に加えて,新しい機能をいくつかサポートしています.基本となる項目は,
14852 \family sans
14853 住所
14854 \family default
14855 (受取人の住所,旧レイアウトの
14856 \family sans
14857 書簡
14858 \family default
14859 と同じ)・
14860 \family sans
14861 頭語
14862 \family default
14863
14864 \family sans
14865 結語
14866 \family default
14867 です.
14868 \family sans
14869 次の住所
14870 \family default
14871 は別の書簡を新しく開始します(つまり一文書あたり複数の書簡を書くことができます).新しく付け加えられた項目は,送り主の
14872 \family sans
14873 電子メール
14874 \family default
14875
14876 \family sans
14877 URL
14878 \family default
14879
14880 \family sans
14881 ファックス
14882 \family default
14883
14884 \family sans
14885 銀行
14886 \family default
14887 ,およびヘッダに(
14888 \family sans
14889 挿入\SpecialChar menuseparator
14890
14891 \family default
14892 で)
14893 \family sans
14894 ロゴ
14895 \family default
14896 を入れることができるようになった点です.
14897 \end_layout
14898
14899 \begin_layout Standard
14900 しかしながら,もっとも大きな改善は,書簡のレイアウトを,ほとんどどんなニーズにも合わせて設定できるようになった点でしょう.これはプリアンブルか,クラスオプション
14901 として読み込まれる特別なスタイルファイル(「レタークラスオプション」,拡張子
14902 \family typewriter
14903 *.lco
14904 \family default
14905 )によって設定することができます
14906 \begin_inset Foot
14907 status collapsed
14908
14909 \begin_layout Plain Layout
14910 KOMAパッケージには,既定の
14911 \family typewriter
14912 *.lco
14913 \family default
14914 ファイルがいくつか収録されています.たとえば,ドイツの組版規則に則った
14915 \family typewriter
14916 DIN.lco
14917 \family default
14918 や,旧
14919 \family typewriter
14920 scrlettr
14921 \family default
14922 クラスの既定レイアウトを提供する
14923 \family typewriter
14924 KOMAold.lco
14925 \family default
14926 などです.たとえば後者は,
14927 \family sans
14928 文書\SpecialChar menuseparator
14929 設定\SpecialChar menuseparator
14930 文書クラス\SpecialChar menuseparator
14931 クラスオプション
14932 \family default
14933 フィールドにクラスオプション
14934 \family typewriter
14935 KOMAold
14936 \family default
14937 を加えることで読み込むことができます.
14938 \end_layout
14939
14940 \end_inset
14941
14942 .用例としては,\SpecialChar LyX
14943 に収録されているひな型
14944 \emph on
14945 koma-letter2
14946 \emph default
14947 をご覧ください.詳細な解説は,Koma-Script取扱説明書(
14948 \emph on
14949 scrguide
14950 \emph default
14951 )にあります.
14952 \end_layout
14953
14954 \begin_layout Subsection
14955 問題点
14956 \end_layout
14957
14958 \begin_layout Standard
14959 Koma-Script文書クラスを\SpecialChar LyX
14960 上に表示する上で,\SpecialChar LyX
14961 の内部処理が若干の問題を生じめます.
14962 \end_layout
14963
14964 \begin_layout Itemize
14965
14966 \family sans
14967
14968 \family default
14969 環境の章番号は,章見出しと同じ行ではなく,その上に表示されます.これは,レイアウトファイル中の
14970 \family sans
14971 Counter_Chapter
14972 \family default
14973 ラベル型に対する\SpecialChar LyX
14974 の内部処理が原因です.
14975 \end_layout
14976
14977 \begin_layout Itemize
14978
14979 \family sans
14980 章(addchap)
14981 \family default
14982
14983 \family sans
14984 節(addsec)
14985 \family default
14986 環境の見出しは,「本当の」\SpecialChar LaTeX
14987 の目次には追加されますが,\SpecialChar LyX
14988 の目次(
14989 \family sans
14990 移動
14991 \family default
14992 メニュー)には追加されません.
14993 \end_layout
14994
14995 \begin_layout Itemize
14996
14997 \emph on
14998 letter
14999 \emph default
15000 文書クラスでの段落は,垂直スペースによる段落区切りで表示され,字下げはされません.これが標準的な挙動となっていて,特別な\SpecialChar LaTeX
15001 コマンドは必要ありません.しかし,
15002 \family sans
15003 文書\SpecialChar menuseparator
15004 設定
15005 \family default
15006 ダイアログでは,対応するラジオボタンは
15007 \family sans
15008 字下げ
15009 \family default
15010 に設定されています.
15011 \family sans
15012 垂直スペース
15013 \family default
15014 は,隙間を空けるために,文書に\SpecialChar LaTeX
15015 コマンドをつねに追加するようになっていますが,この文書クラスの場合には,そのような挙動が望まれないためです.
15016 \end_layout
15017
15018 \begin_layout Section
15019 Memoir
15020 \end_layout
15021
15022 \begin_layout Standard
15023
15024 \noun on
15025 Jürgen Spitzmüller
15026 \noun default
15027
15028 \end_layout
15029
15030 \begin_layout Subsection
15031 概観
15032 \end_layout
15033
15034 \begin_layout Standard
15035 Memoirは,非常に強力で,着実に改良が加えられている文書クラスであり,フィクションとノンフィクションの文学作品用に設計されています.その目的は,ユーザーに,
15036 文書の組版に関して最大限の裁量を得させることにあります.Memoirは,標準bookクラスに基づいていますが,articleクラスをエミュレートすることもできま
15037 す(以下参照).
15038 \end_layout
15039
15040 \begin_layout Standard
15041 Memoir開発者であるPeter Wilsonは,\SpecialChar LaTeX
15042 の世界での,多くの便利なパッケージの作者として知られていますが,それらのほとんどは,Memoirに統合されま
15043 した.このため,章のデザインや,目次や付録などのレイアウトを,はるかに簡単に行うことができます.しかしながら,\SpecialChar LyX
15044 は,これらすべての素晴らしい機能をネイティブでサポ
15045 ートしているわけではありません.これらのうちいくつかは,将来のリリースで追加されるかもしれませんが
15046 \begin_inset Foot
15047 status collapsed
15048
15049 \begin_layout Plain Layout
15050 もし提案があれば,ぜひ
15051 \begin_inset Flex URL
15052 status collapsed
15053
15054 \begin_layout Plain Layout
15055
15056 lyx-devel@lists.lyx.org
15057 \end_layout
15058
15059 \end_inset
15060
15061 までお送り下さい.
15062 \end_layout
15063
15064 \end_inset
15065
15066 ,\SpecialChar LyX
15067 のフレームワークが持つ制約のために,おそらく決して追加されることのないと考えられるものも多数あります.もちろん,ネイティブな\SpecialChar LaTeX
15068 コマンド(\SpecialChar TeX
15069 コード
15070 \begin_inset Foot
15071 status collapsed
15072
15073 \begin_layout Plain Layout
15074 【参考】詳細は,第
15075 \begin_inset CommandInset ref
15076 LatexCommand ref
15077 reference "sec:TeXコードを挿入する"
15078
15079 \end_inset
15080
15081 節参照.
15082 \end_layout
15083
15084 \end_inset
15085
15086 )の助けを借りれば,全機能を使用できます.この節では,\SpecialChar LyX
15087 がネイティブにサポートしている機能についてのみ,列挙するものとします.詳細な説明(および他の機能)について
15088 は,Memoirクラスの詳しい取扱説明書
15089 \begin_inset Foot
15090 status collapsed
15091
15092 \begin_layout Plain Layout
15093 【参考】
15094 \begin_inset Flex URL
15095 status collapsed
15096
15097 \begin_layout Plain Layout
15098
15099 CTAN:/macros/latex/memoir/memman.pdf
15100 \end_layout
15101
15102 \end_inset
15103
15104
15105 \end_layout
15106
15107 \end_inset
15108
15109 をご覧になることをお勧めします.この取扱説明書は,本クラスのユーザーの手引きであるのみに留まらず,良い組版に関する包括的な解説であり,それ自身が良い組版の傑出し
15110 た用例となっています.
15111 \end_layout
15112
15113 \begin_layout Subsection
15114 基本的な機能と制約
15115 \end_layout
15116
15117 \begin_layout Standard
15118 Memoirは,基本的に,標準bookクラスの全機能をサポートしています.しかしながら,以下に示すような若干の違いがあります.
15119 \end_layout
15120
15121 \begin_layout Description
15122 フォント寸法: Memoirでは,9・10・11・12・14・17と,より広い範囲のフォント寸法が使用可能です.
15123 \end_layout
15124
15125 \begin_layout Description
15126 ページ様式: Memoirパッケージとfancyhdrパッケージとのコマンドの衝突のため(両パッケージは同じ名前のコマンドを定義しているため,\SpecialChar LaTeX
15127 が混乱させられます
15128 ),fancyページ様式は使用できません.その代わり,Memoirには,多くの独自のページ様式が付属してきます(
15129 \family sans
15130 文書\SpecialChar menuseparator
15131 設定\SpecialChar menuseparator
15132 ページレイアウト
15133 \family default
15134 参照).これらを章題ページに使用したい場合には,コマンド
15135 \family typewriter
15136
15137 \backslash
15138 chapterstyle
15139 \family default
15140 を,本文またはプリアンブルに記述する必要があります(例えば,
15141 \family typewriter
15142
15143 \backslash
15144 chapterstyle{companion}
15145 \family default
15146 など).
15147 \end_layout
15148
15149 \begin_layout Description
15150 節分け: 標準クラスでは,節分けコマンド(章・節・小節等)は,非必須引数を一つ取ることができます.これを用いて,目次やヘッダ用に別のタイトルを指定することができ
15151 ます(たとえば,タイトルが長すぎる場合などに用います).\SpecialChar LyX
15152 では,章や節の始めで
15153 \family sans
15154 挿入\SpecialChar menuseparator
15155 短縮タイトル
15156 \family default
15157 を使えば,これを指定することができます.一方,Memoirでは,第2の非必須引数を取ることができ,目次用のタイトルとヘッダ用のタイトルの指定を分離しています.\SpecialChar LyX
15158
15159 は,
15160 \family sans
15161 挿入
15162 \family default
15163 メニューから
15164 \family sans
15165 短縮タイトル
15166 \family default
15167 の特定の派生形の形で利用できます.
15168 \end_layout
15169
15170 \begin_layout Description
15171 目次・図一覧・表一覧: 標準クラス(および他の多くのクラス)では,目次と図一覧および表一覧は,自動的に新規頁に置かれます.Memoirは,これとは別の方針を採り
15172 ます.改頁を行いたい場合は,手動で頁区切りを入れなくてはなりません.
15173 \end_layout
15174
15175 \begin_layout Description
15176 タイトル頁: 理由は不明ですが,Memoirはタイトルページに丁付けを行います(標準クラスでは,タイトルページは「empty」様式).タイトル頁に丁付けを行いた
15177 くない場合には,プリアンブルに
15178 \family typewriter
15179
15180 \backslash
15181 aliaspagestyle{title}{empty}
15182 \family default
15183 と入力してください.
15184 \end_layout
15185
15186 \begin_layout Description
15187 Article: クラスオプション
15188 \emph on
15189 article
15190 \emph default
15191 を用いる(
15192 \family sans
15193 文書\SpecialChar menuseparator
15194 設定\SpecialChar menuseparator
15195 文書クラス\SpecialChar menuseparator
15196 クラスオプション\SpecialChar menuseparator
15197 任意設定
15198 \family default
15199 で入力)と,article様式をエミュレートできます.すなわち,(脚注・図・表等の)カウンタは,章毎にリセットされず,次の章は頁を改めず(ただし,「本物の」ar
15200 ticleクラスとは違って,頁を改めることも可),部はbookクラスと同様に,独立の頁を使用します.
15201 \end_layout
15202
15203 \begin_layout Description
15204 Oldfontcommands: \SpecialChar LaTeX
15205 旧2.09版で使用されていた旧いフォントコマンド(
15206 \family typewriter
15207
15208 \backslash
15209 rm
15210 \family default
15211
15212 \family typewriter
15213
15214 \backslash
15215 it
15216 \family default
15217 など)は,Memoirにおいては,既定では使用することができません.Memoirがこれらのコマンドを検知すると,エラーを発して\SpecialChar LaTeX
15218 を停止させます.しかし,クラスオプ
15219 ション
15220 \emph on
15221 oldfontcommands
15222 \emph default
15223 を指定すると,これらのコマンドが容認され,エラーの代わりに警告を発するのみとなります(これによって,少なくとも\SpecialChar LaTeX
15224 は停止しなくなります).まだ,多くのパッケージと,
15225 就中多くのBib\SpecialChar TeX
15226 スタイルファイルが,これらのコマンドを使用しているので,我々はこのオプションを既定で使うこととしました.
15227 \end_layout
15228
15229 \begin_layout Subsection
15230 追加された機能
15231 \end_layout
15232
15233 \begin_layout Standard
15234 \SpecialChar LyX
15235 でサポートされる機能(今のところそれほど多くはありません)を簡単に説明しましょう.詳しくはMemoirの取扱説明書
15236 \begin_inset Foot
15237 status collapsed
15238
15239 \begin_layout Plain Layout
15240 \begin_inset Flex URL
15241 status collapsed
15242
15243 \begin_layout Plain Layout
15244
15245 CTAN:/macros/latex/memoir/memman.pdf
15246 \end_layout
15247
15248 \end_inset
15249
15250
15251 \end_layout
15252
15253 \end_inset
15254
15255 を見てください.
15256 \end_layout
15257
15258 \begin_layout Description
15259 概要: 概要が,追加された機能として扱われているのを不思議に思われるかもしれませんが,bookクラスとしては追加された機能なのです.通常bookクラスには概要は
15260 ないのですが,memoirにはあります.これは,どこでも何回でも自由に使うことができます.
15261 \end_layout
15262
15263 \begin_layout Description
15264 章要約: この古い組版様式はご覧になったことがあるかも知れません.章の内容が,見出しの下と目次に要約されているものです(たとえば,「我らが英雄がトロヤに到着する
15265 .彼は友人を失うが,新たな友人を得る.」など).章要約(chapterprecis)はこれを行います.したがって,章要約は章の下でのみ意味を持ちます.
15266 \end_layout
15267
15268 \begin_layout Description
15269 題辞: 題辞(epigraph)は章頭の,気の利いた標語やモットーです.題辞環境は,そのような標語を組む洗練された方法を提供します.標語本体(本文)とその著者(
15270 出典:非必須)は,短い線で区切られます.著者(出典)は,
15271 \family sans
15272 挿入\SpecialChar menuseparator
15273 題辞出典
15274 \family default
15275 で入力できます.
15276 \end_layout
15277
15278 \begin_layout Description
15279 詩題: Memoirには(複雑で隠喩的なものも含めて)詩を組版するための多くの機能がありますが,\SpecialChar LyX
15280 は,そのうちいくつかしかサポートしていません.詩題はその一つです
15281 .これは詩用の中央揃えタイトルで,目次にも表示されます(詩句が詩の標準環境です.Memoirには,詩句の拡張版もありますが,これらを使うためには\SpecialChar TeX
15282 コードを使用しな
15283 くてはなりません.これらの環境は通常の詩句環境の中に入れ子にしなくてはならないのですが,\SpecialChar LyX
15284 ではそれができないためです).
15285 \end_layout
15286
15287 \begin_layout Description
15288 詩題*: 目次に現れない他は詩題と同じです.
15289 \end_layout
15290
15291 \begin_layout Section
15292 Article (mwart)・book (mwbk)・report (mwrep)
15293 \begin_inset Argument status
15294 status collapsed
15295
15296 \begin_layout Plain Layout
15297 The 
15298 \family typewriter
15299 mw
15300 \family default
15301  Classes
15302 \end_layout
15303
15304 \end_inset
15305
15306
15307 \end_layout
15308
15309 \begin_layout Standard
15310
15311 \noun on
15312 Tomasz Luczak
15313 \noun default
15314
15315 \end_layout
15316
15317 \begin_layout Standard
15318 \SpecialChar LyX
15319 文書クラス
15320 \emph on
15321 article (mwart)
15322 \emph default
15323
15324 \emph on
15325 report (mwrep)・book
15326 \emph default
15327  
15328 \emph on
15329 (mwbk)
15330 \emph default
15331 は,それぞれ\SpecialChar LaTeX
15332 文書クラス
15333 \family typewriter
15334 mwart.cls
15335 \family default
15336
15337 \family typewriter
15338 mwrep.cls
15339 \family default
15340
15341 \family typewriter
15342 mwbk.cls
15343 \family default
15344 に対応しています.これらは,標準の
15345 \family typewriter
15346 article.cls
15347 \family default
15348
15349 \family typewriter
15350 report.cls
15351 \family default
15352
15353 \family typewriter
15354 book.cls
15355 \family default
15356 を代替するものであり,多くの点で,ポーランド語の組版慣習によく適合しています.
15357 \end_layout
15358
15359 \begin_layout Standard
15360 基本的な違いは,次の点です.
15361 \end_layout
15362
15363 \begin_layout Itemize
15364 付番のない見出し(
15365 \family sans
15366 節*
15367 \family default
15368 などの星付き)も目次に加えられます.
15369 \end_layout
15370
15371 \begin_layout Itemize
15372 以下のページスタイルの追加
15373 \end_layout
15374
15375 \begin_deeper
15376 \begin_layout Description
15377 uheadings 分離線付きヘッダ
15378 \end_layout
15379
15380 \begin_layout Description
15381 myheadings 
15382 \family typewriter
15383
15384 \backslash
15385 markright
15386 \family default
15387 コマンドおよび
15388 \family typewriter
15389
15390 \backslash
15391 markboth
15392 \family default
15393 コマンドで設定するカスタムヘッダ
15394 \end_layout
15395
15396 \begin_layout Description
15397 myuheadings 分離線付きカスタムヘッダ
15398 \end_layout
15399
15400 \begin_layout Description
15401 outer ページの外側にページ番号
15402 \end_layout
15403
15404 \end_deeper
15405 \begin_layout Itemize
15406 オプション
15407 \end_layout
15408
15409 \begin_deeper
15410 \begin_layout Description
15411 rmheadings セリフ体見出し — 既定
15412 \end_layout
15413
15414 \begin_layout Description
15415 sfheadings サンセリフ体見出し
15416 \end_layout
15417
15418 \begin_layout Description
15419 authortitle タイトルページは,著者名・タイトルの順で配置 — 既定
15420 \end_layout
15421
15422 \begin_layout Description
15423 titleauthor タイトルページは,タイトル・著者名の順で配置
15424 \end_layout
15425
15426 \begin_layout Description
15427 withmarginpar ページ上に余白のための場所を確保
15428 \end_layout
15429
15430 \end_deeper
15431 \begin_layout Section
15432 Paper
15433 \end_layout
15434
15435 \begin_layout Standard
15436
15437 \family sans
15438 paper
15439 \family default
15440 文書クラスは標準
15441 \family sans
15442 article
15443 \family default
15444 クラスの代替となるものです.これは
15445 \family sans
15446 同様の
15447 \family default
15448 機能を提供しますが,サンセリフ体の節見出し・ヘッディング等を持つこちらのレイアウトの方が気に入るかも知れません.
15449 \end_layout
15450
15451 \begin_layout Section
15452 Rev\SpecialChar TeX
15453 4
15454 \end_layout
15455
15456 \begin_layout Standard
15457 by 
15458 \noun on
15459 Amir Karger
15460 \end_layout
15461
15462 \begin_layout Standard
15463 \begin_inset VSpace bigskip
15464 \end_inset
15465
15466
15467 \end_layout
15468
15469 \begin_layout Standard
15470 \noindent
15471
15472 \family sans
15473 Revtex
15474 \begin_inset space ~
15475 \end_inset
15476
15477 4
15478 \family default
15479 テキストクラスは,アメリカ物理学会のRev\SpecialChar TeX
15480  4.0(1999年5月の
15481 \begin_inset Formula $\beta$
15482 \end_inset
15483
15484 リリース)クラスで動作します.
15485 \end_layout
15486
15487 \begin_layout Standard
15488 \SpecialChar LyX
15489 には,Rev\SpecialChar TeX
15490  3.1で動作する
15491 \family sans
15492 Revtex
15493 \family default
15494 テキストクラスもあります.しかしながら,第3.1版は\SpecialChar LaTeX
15495  2.09で動作するものであり,基本的に時代遅れなものになっています.\SpecialChar LyX
15496 は\SpecialChar LaTeX2e
15497 を必要とすることから,第3.1版は\SpecialChar LyX
15498 とうまく
15499 協調しないことを意味しますが,動作するようには調整してあります.Rev\SpecialChar TeX
15500  4.0は,\SpecialChar LaTeX2e
15501 で素直に動作するようにデザインされているので,\SpecialChar LyX
15502
15503 \family sans
15504 Rev\SpecialChar TeX
15505
15506 \begin_inset space ~
15507 \end_inset
15508
15509 4
15510 \family default
15511 テキストクラスの組で使用するのは,たいへん簡単です.
15512 \end_layout
15513
15514 \begin_layout Standard
15515 この取扱説明書は,Rev\SpecialChar TeX
15516  4.0の説明書の
15517 \emph on
15518 補完
15519 \emph default
15520 として使用されることを前提としています.したがって,ここではRev\SpecialChar TeX
15521 固有マクロの説明はせず,必要な場合にはプリアンブルに何と書けば良いかを知っているものとして説明
15522 します.
15523 \end_layout
15524
15525 \begin_layout Subsection
15526 導入
15527 \end_layout
15528
15529 \begin_layout Standard
15530 Rev\SpecialChar TeX
15531  4パッケージのREADMEファイルにあるとおり,ともかくRev\SpecialChar TeX
15532  4を導入しなくてはなりません.パッケージは,The Rev\SpecialChar TeX
15533  4 Web
15534  Site 
15535 \begin_inset Flex URL
15536 status collapsed
15537
15538 \begin_layout Plain Layout
15539
15540 http://publish.aps.org/revtex4/
15541 \end_layout
15542
15543 \end_inset
15544
15545 から入手することができます.これを\SpecialChar LaTeX
15546 が検出することのできる場所に導入してください.それから,適当に選んだディレクトリ(もといクラスファイルを導入したのとは異なるデ
15547 ィレクトリ)で簡単なRev\SpecialChar TeX
15548  4文書を \SpecialChar LaTeX
15549 でコンパイルできるかどうか確認してください.この後,\SpecialChar LyX
15550 を環境構成すると,クラスファイルを検出し,Rev\SpecialChar TeX
15551 4テキストクラスが使用
15552 できるようになるはずです.
15553 \end_layout
15554
15555 \begin_layout Standard
15556 使い始めるには,
15557 \family typewriter
15558 tex2lyx
15559 \family default
15560 を使ってRev\SpecialChar TeX
15561  4文書を読み込むか,またはひな型ディレクトリにある
15562 \family sans
15563 Revtex
15564 \begin_inset space ~
15565 \end_inset
15566
15567 4
15568 \family default
15569 のひな型を使うのが,おそらく一番簡単な方法でしょう.
15570 \end_layout
15571
15572 \begin_layout Subsection
15573 プリアンブルに関すること
15574 \end_layout
15575
15576 \begin_layout Standard
15577
15578 \family typewriter
15579
15580 \backslash
15581 documentclass
15582 \family default
15583 に与える「preprint」や「aps」のような非必須引数は,他のクラス同様,
15584 \family sans
15585 文書\SpecialChar menuseparator
15586 設定\SpecialChar menuseparator
15587 文書クラス
15588 \family default
15589
15590 \family sans
15591 クラスオプション
15592 \family default
15593 フィールドに入れます.Rev\SpecialChar TeX
15594 では,少なくとも一つの非必須引数が必要なことに注意してください.
15595 \end_layout
15596
15597 \begin_layout Standard
15598
15599 \family typewriter
15600
15601 \backslash
15602 draft
15603 \family default
15604 など他のプリアンブルは,他のクラス同様,
15605 \family sans
15606 文書\SpecialChar menuseparator
15607 設定\SpecialChar menuseparator
15608 \SpecialChar LaTeX
15609 プリアンブル
15610 \family default
15611 に入れてください.
15612 \end_layout
15613
15614 \begin_layout Subsection
15615 レイアウト
15616 \end_layout
15617
15618 \begin_layout Standard
15619 レイアウトは,基本的にRev\SpecialChar TeX
15620 4.0のコマンドに対応しています.たとえば,Emailレイアウトは,
15621 \family typewriter
15622
15623 \backslash
15624 email{}
15625 \family default
15626 に対応しています.(少なくともRev\SpecialChar TeX
15627  4.0 Beta現在では)
15628 \family sans
15629 住所
15630 \family default
15631
15632 \family sans
15633 所属
15634 \family default
15635 はまったく同じものなので,両方を使う必要はありません
15636 \begin_inset Foot
15637 status collapsed
15638
15639 \begin_layout Plain Layout
15640 ついでながら,
15641 \family typewriter
15642 tex2lyx
15643 \family default
15644 は両方とも対応しているので,
15645 \family typewriter
15646
15647 \backslash
15648 address
15649 \family default
15650
15651 \family typewriter
15652
15653 \backslash
15654 affiliation
15655 \family default
15656 のどちらも翻訳することができます.
15657 \end_layout
15658
15659 \end_inset
15660
15661
15662 \end_layout
15663
15664 \begin_layout Subsection
15665 重要な注意
15666 \end_layout
15667
15668 \begin_layout Standard
15669 Rev\SpecialChar TeX
15670  4には,バグを引き起こしがちなために,気をつけなくてはならない特殊な面がいくつかあるため,\SpecialChar LyX
15671 ではさらに気をつけなくてはなりません.
15672 \end_layout
15673
15674 \begin_layout Standard
15675 Rev\SpecialChar TeX
15676 では,
15677 \family typewriter
15678
15679 \backslash
15680 thanks
15681 \family default
15682 コマンドは,
15683 \family typewriter
15684
15685 \backslash
15686 author
15687 \family default
15688 コマンドの
15689 \emph on
15690 外側
15691 \emph default
15692 に来なくてはなりません.\SpecialChar LyX
15693 では,独立した
15694 \family sans
15695 感謝
15696 \family default
15697 レイアウトがこの働きをします.直接
15698 \family sans
15699 ,著者
15700 \family default
15701 レイアウトに脚注を付けてしまうと,おかしなことが起こる可能性があります.詳細については,Rev\SpecialChar TeX
15702  4の取扱説明書をご覧ください.
15703 \end_layout
15704
15705 \begin_layout Standard
15706 また,
15707 \family sans
15708 著者電子メール
15709 \family default
15710
15711 \family sans
15712 著者URL・感謝(thanks)
15713 \family default
15714 レイアウトは,
15715 \family sans
15716 著者
15717 \family default
15718 レイアウトと
15719 \family sans
15720 住所(
15721 \family default
15722 または同等の
15723 \family sans
15724 所属
15725 \family default
15726 )レイアウトの間に置かなければなりません.
15727 \family sans
15728 感謝(thanks)
15729 \family default
15730
15731 \family sans
15732 住所
15733 \family default
15734 の後に置いてしまうと,\SpecialChar LaTeX
15735 はコンパイルに失敗します.
15736 \end_layout
15737
15738 \begin_layout Section
15739 Springer学術誌(
15740 \family sans
15741 svjour)
15742 \end_layout
15743
15744 \begin_layout Standard
15745
15746 \noun on
15747 Martin Vermeer
15748 \noun default
15749
15750 \end_layout
15751
15752 \begin_layout Subsection
15753 説明
15754 \end_layout
15755
15756 \begin_layout Standard
15757 これは,Springer Verlag社発行のいくつかの学術誌で使用されている書式のレイアウトファイルです.
15758 \begin_inset Flex URL
15759 status collapsed
15760
15761 \begin_layout Plain Layout
15762
15763 http://www.springer.de/author/tex/help-journals.html
15764 \end_layout
15765
15766 \end_inset
15767
15768 に必要なクラスファイル(\SpecialChar LaTeX2e
15769 用になりました)とそれに対応する学術誌の一覧があります.このレイアウトはモジュール式になっています.つまり,全ジャーナル共通部分は
15770 \family typewriter
15771 svjour.inc
15772 \family default
15773 に実装されており,各誌個別のレイアウトファイル(たとえばJournal of Geodesy用の
15774 \family typewriter
15775 svjog.layout
15776 \family default
15777 など)から取り込むことができます.
15778 \end_layout
15779
15780 \begin_layout Standard
15781 このことは,上記の学術誌一覧にある他のSpringer誌のサポートを実装するためには,
15782 \family typewriter
15783 svjog.layout
15784 \family default
15785 に書かれている指示に従って,自作の
15786 \family typewriter
15787 sv
15788 \family default
15789 <学術誌名>
15790 \family typewriter
15791 .layout
15792 \family default
15793 を書くだけで良いことを意味します.
15794 \end_layout
15795
15796 \begin_layout Standard
15797 このレイアウトは,Journal of Geodesyに対してのみ,充分な試験が為されています.
15798 \family typewriter
15799 svjour
15800 \family default
15801
15802 \family typewriter
15803 svjog
15804 \family default
15805 は,標準\SpecialChar LyX
15806 頒布版に収録済みです.関連するクラスファイルを(Springerからダウンロードして)適切なディレクトリに導入し,\SpecialChar LaTeX
15807 を再設定した後(teTeXの場合は,必
15808 要に応じてroot権限で
15809 \family typewriter
15810 texhash
15811 \family default
15812 を実行します),\SpecialChar LyX
15813 を環境構成すれば,動作するはずです.
15814 \end_layout
15815
15816 \begin_layout Subsection
15817 新スタイル
15818 \end_layout
15819
15820 \begin_layout Standard
15821 多くの定理環境 — 
15822 \family sans
15823 主張
15824 \family default
15825
15826 \family sans
15827 推論
15828 \family default
15829 ・\SpecialChar ldots
15830
15831 \family sans
15832 定理
15833 \family default
15834
15835 \end_layout
15836
15837 \begin_layout Standard
15838
15839 \family sans
15840 ヘッドノート
15841 \family default
15842
15843 \family sans
15844 献呈
15845 \family default
15846
15847 \family sans
15848 サブタイトル・ヘッダ用\SpecialChar LaTeX
15849 タイトル・ヘッダ用著者名・所属機関・メール・オフプリント・キーワード・謝辞(acknowledgements)・謝辞(acknowledg
15850 ement)
15851 \family default
15852 .詳しくは Springerのクラスファイルの説明書を読んでください.
15853 \end_layout
15854
15855 \begin_layout Subsection
15856 サポートしているジャーナル
15857 \end_layout
15858
15859 \begin_layout Itemize
15860
15861 \emph on
15862 Journal of Geodesy
15863 \emph default
15864
15865 \family typewriter
15866 svjog.layout
15867 \family default
15868  — Martin Vermeer
15869 \end_layout
15870
15871 \begin_layout Itemize
15872
15873 \emph on
15874 Probability Theory and Related Fields
15875 \emph default
15876
15877 \family typewriter
15878 svprobth.layout
15879 \family default
15880  — Jean-Marc Lasgouttes
15881 \end_layout
15882
15883 \begin_layout Standard
15884 あなた自身のレイアウトファイルをつくってください.難しくはありません.
15885 \end_layout
15886
15887 \begin_layout Subsection
15888 Credits
15889 \end_layout
15890
15891 \begin_layout Standard
15892 これらのファイルは,以前の 
15893 \family typewriter
15894 ejour2.layout
15895 \family default
15896 をもとにしています.
15897 \family typewriter
15898 ejour2.layout
15899 \family default
15900 は Springerの\SpecialChar LaTeX
15901  2.09用のスタイルファイルを使った素人細工のようなレイアウトファイルです.これらのファイルはすでにありません.Jean-Marc
15902  Lasgouttesのおかげで \SpecialChar LyX
15903 のレイアウトファイルのメカニズムをよりよく理解することができました.
15904 \end_layout
15905
15906 \begin_layout Subsection
15907 バグ
15908 \end_layout
15909
15910 \begin_layout Standard
15911 多分あります.以前の 
15912 \family typewriter
15913 ejour2
15914 \family default
15915 よりは少なくなっているとは思いますが.
15916 \end_layout
15917
15918 \begin_layout Section
15919 Slides別名
15920 \noun on
15921 Sli\SpecialChar TeX
15922
15923 \noun default
15924
15925 \begin_inset Foot
15926 status collapsed
15927
15928 \begin_layout Plain Layout
15929 (訳註)この節の内容は,全般的に古くなっています.
15930 \end_layout
15931
15932 \end_inset
15933
15934
15935 \begin_inset CommandInset label
15936 LatexCommand label
15937 name "sec:slitex"
15938
15939 \end_inset
15940
15941
15942 \end_layout
15943
15944 \begin_layout Standard
15945
15946 \noun on
15947 John Weiss
15948 \noun default
15949
15950 \end_layout
15951
15952 \begin_layout Subsection
15953 はじめに
15954 \end_layout
15955
15956 \begin_layout Standard
15957 本節では,オーバーへッドプロジェクタ用のスライドをつくるのに,\SpecialChar LyX
15958 をどのように使えばよいかを説明します.これを行う文書クラスには,既定のslideクラスと
15959 \family sans
15960 Foil\SpecialChar TeX
15961
15962 \family default
15963 スライドクラスの2つがあります.本節は前者について説明を行います.
15964 \end_layout
15965
15966 \begin_layout Standard
15967 誤解のないように,正しく明確に,もう一度言っておきます.
15968 \end_layout
15969
15970 \begin_layout Standard
15971 \begin_inset VSpace bigskip
15972 \end_inset
15973
15974
15975 \end_layout
15976
15977 \begin_layout Standard
15978 \align center
15979
15980 \size large
15981 本節は文書クラス
15982 \begin_inset Quotes eld
15983 \end_inset
15984
15985
15986 \family sans
15987 transparencies (slides)
15988 \family default
15989
15990 \begin_inset Quotes erd
15991 \end_inset
15992
15993
15994 \emph on
15995 のみ
15996 \emph default
15997 を説明しています.
15998 \end_layout
15999
16000 \begin_layout Standard
16001 \begin_inset VSpace bigskip
16002 \end_inset
16003
16004
16005 \end_layout
16006
16007 \begin_layout Standard
16008
16009 \family sans
16010 「slides (Foil\SpecialChar TeX
16011 )
16012 \family default
16013 」の説明をお探しならば,第
16014 \begin_inset CommandInset ref
16015 LatexCommand ref
16016 reference "sec:foiltex"
16017
16018 \end_inset
16019
16020 節をご覧ください.
16021 \family sans
16022 foils
16023 \family default
16024 クラス「
16025 \family sans
16026 slides (Foil\SpecialChar TeX
16027 )
16028 \family default
16029 」は,実際,本節で説明している既定
16030 \family sans
16031 slides
16032 \family default
16033 クラスよりも良いようです
16034 \begin_inset Foot
16035 status collapsed
16036
16037 \begin_layout Plain Layout
16038 \SpecialChar ldots
16039
16040 \family sans
16041 Foil\SpecialChar TeX
16042
16043 \family default
16044 の支持者からは聞いています.けれども私は使ったことがないので,本当かどうか確かめようがありません.
16045 \end_layout
16046
16047 \end_inset
16048
16049
16050 \end_layout
16051
16052 \begin_layout Standard
16053 このクラスは,旧SLI\SpecialChar TeX
16054 パッケージを\SpecialChar LaTeX2e
16055 用に改良したものです.\SpecialChar LaTeX2e
16056 頒布版すべてが,このクラス(以下では単に「
16057 \family sans
16058 slides
16059 \family default
16060 」と述べることにします)を含んでいるので,あなたもお持ちのはずです.前述の
16061 \family sans
16062 foils
16063 \family default
16064 のように,同じくオーバーへッドプロジェクタ用のスライドを生成しながら,このクラスよりも良い仕事をするクラスもあります.しかしながら,オーバーレイを生成するなど,
16065 他のクラスにはできないが
16066 \family sans
16067 slides
16068 \family default
16069 ならばできることもあります.詳しくは以下をお読みください.
16070 \end_layout
16071
16072 \begin_layout Subsection
16073 使い始めるには
16074 \begin_inset CommandInset label
16075 LatexCommand label
16076 name "sec:slidesetup"
16077
16078 \end_inset
16079
16080
16081 \end_layout
16082
16083 \begin_layout Standard
16084 当然ながら,この文書クラスを使用するには,
16085 \family sans
16086 文書\SpecialChar menuseparator
16087 設定
16088 \family default
16089 ダイアログのクラスリストから「
16090 \family sans
16091 transparencies (slides)
16092 \family default
16093 」を選択しなくてはなりません.このクラスについて,以下のように,特に知っておいた方が良いことがいくつかあります.
16094 \end_layout
16095
16096 \begin_layout Itemize
16097
16098 \family sans
16099 用紙方向
16100 \family default
16101
16102 \family sans
16103 二段組文書
16104 \family default
16105 の各オプションは,あえて変更する必要はありません.これらのオプションは,
16106 \family sans
16107 slides
16108 \family default
16109 クラスではサポートされていないので,効果がありません.
16110 \end_layout
16111
16112 \begin_layout Itemize
16113
16114 \family sans
16115 ヘディング様式
16116 \family default
16117 オプションは,このクラスでは少し異なった振る舞いをします.各選択肢とその機能は,以下の通りです.
16118 \end_layout
16119
16120 \begin_deeper
16121 \begin_layout Description
16122 プレーン(plain) 最終出力の右下隅にページ番号が付きます.
16123 \end_layout
16124
16125 \begin_layout Description
16126 設定(headings)
16127 \family sans
16128  プレーン(plain)
16129 \family default
16130 と同様ですが,それ以外にあなたが指定したタイムマーカーをすべて出力します.これが既定値です.
16131 \end_layout
16132
16133 \begin_layout Description
16134 空 最終出力には,ページ番号もタイムマーカーも位置揃えマーカーも出力されません.
16135 \end_layout
16136
16137 \end_deeper
16138 \begin_layout Itemize
16139
16140 \family sans
16141 slides
16142 \family default
16143 クラスには,もう一つ
16144 \family typewriter
16145 clock
16146 \family default
16147 というオプションがあります.これを使用するには,
16148 \family sans
16149 クラスオプション
16150 \family default
16151 に「
16152 \family typewriter
16153 clock
16154 \family default
16155 」と入力してください.
16156 \end_layout
16157
16158 \begin_deeper
16159 \begin_layout Standard
16160 このオプションを使うと,
16161 \family sans
16162 注釈
16163 \family default
16164 にタイムマーカーを加えることができます.詳細は,第
16165 \begin_inset CommandInset ref
16166 LatexCommand ref
16167 reference "sec:スライド注釈"
16168
16169 \end_inset
16170
16171 節をご覧ください.
16172 \end_layout
16173
16174 \end_deeper
16175 \begin_layout Standard
16176
16177 \family sans
16178 slides
16179 \family default
16180 クラスを用いた文書を自動的にセットアップするには,ひな型ファイル「
16181 \family typewriter
16182 slides.lyx
16183 \family default
16184 」を使用することもできます(新規ファイルを開く際に
16185 \family sans
16186 ファイル\SpecialChar menuseparator
16187 新規(ひな型使用)
16188 \family default
16189 を使用してください).ひな型ファイルには,このクラスが使用する特別な段落環境の用例も含まれています.これらについては,以下で説明します.
16190 \end_layout
16191
16192 \begin_layout Subsection
16193 段落環境
16194 \end_layout
16195
16196 \begin_layout Subsubsection
16197
16198 \family sans
16199 サポートされている環境
16200 \end_layout
16201
16202 \begin_layout Standard
16203 新しく
16204 \family sans
16205 slides
16206 \family default
16207 文書を開いたときにまず気付くのは,フォント寸法とフォント族の違いでしょう.ここでは,
16208 \family sans
16209 サンセリフ体
16210 \family default
16211 フォントの
16212 \family sans
16213 極大
16214 \family default
16215 寸法が用いられており,出力でもこのフォントが使用されます.これは,現在スライドを作成中であることの「目印」だと考えてください.出力スライドは大きなフォントを使用
16216 するため,書ける場所は少なくなります.もちろん,既定の大きな画面フォントはWYSIWYGではなく,スライドであることの目印に過ぎません.
16217 \end_layout
16218
16219 \begin_layout Standard
16220 次に気付くのは,(ツールバー左端の)段落環境プルダウンボックスが変わっていることでしょう.通常見かける環境の多くがなくなって,代わりに5つの新しい環境が入ってい
16221 ます.これは,
16222 \family sans
16223 slides
16224 \family default
16225 クラスが,標準段落環境のうち以下のものしかサポートしていないためです.
16226 \end_layout
16227
16228 \begin_layout Itemize
16229
16230 \family sans
16231 標準
16232 \end_layout
16233
16234 \begin_layout Itemize
16235
16236 \family sans
16237 箇条書き(記号)
16238 \end_layout
16239
16240 \begin_layout Itemize
16241
16242 \family sans
16243 箇条書き(連番)
16244 \end_layout
16245
16246 \begin_layout Itemize
16247
16248 \family sans
16249 箇条書き(記述)
16250 \end_layout
16251
16252 \begin_layout Itemize
16253
16254 \family sans
16255 箇条書き(一覧)
16256 \end_layout
16257
16258 \begin_layout Itemize
16259
16260 \family sans
16261 引用(字下げあり)
16262 \end_layout
16263
16264 \begin_layout Itemize
16265
16266 \family sans
16267 引用(字下げなし)
16268 \end_layout
16269
16270 \begin_layout Itemize
16271
16272 \family sans
16273 詩句
16274 \end_layout
16275
16276 \begin_layout Itemize
16277
16278 \family sans
16279 キャプション
16280 \end_layout
16281
16282 \begin_layout Itemize
16283
16284 \family sans
16285 \SpecialChar LyX
16286 コード
16287 \end_layout
16288
16289 \begin_layout Standard
16290 これ以外の標準的な環境,例えば節見出し用の環境などは
16291 \family sans
16292 slides
16293 \family default
16294 クラスでは使えません.
16295 \end_layout
16296
16297 \begin_layout Standard
16298 一方,以下の新しい環境があります.
16299 \end_layout
16300
16301 \begin_layout Itemize
16302
16303 \family sans
16304 スライド
16305 \end_layout
16306
16307 \begin_layout Itemize
16308
16309 \family sans
16310 オーバーレイ
16311 \end_layout
16312
16313 \begin_layout Itemize
16314
16315 \family sans
16316 注釈
16317 \end_layout
16318
16319 \begin_layout Itemize
16320
16321 \family sans
16322 不可視文
16323 \end_layout
16324
16325 \begin_layout Itemize
16326
16327 \family sans
16328 可視文
16329 \end_layout
16330
16331 \begin_layout Standard
16332 これら5つの環境は,\SpecialChar LyX
16333 の「機能」のために使い方に癖があります.ご存じのように,\SpecialChar LyX
16334 では,空の段落環境に他の環境を入れることができません.それ自体は素晴らしいデザインな
16335 のですが,これは,スライドを平文以外では書き始めることができないことを意味します.これを取り扱うためには,ちょっとした「\SpecialChar LaTeX
16336 マジック」が必要になります.
16337 \end_layout
16338
16339 \begin_layout Subsubsection
16340 新環境の癖
16341 \begin_inset CommandInset label
16342 LatexCommand label
16343 name "sec:スライドの癖"
16344
16345 \end_inset
16346
16347
16348 \end_layout
16349
16350 \begin_layout Standard
16351 5つの新しい環境にはすべて,\SpecialChar LyX
16352 現行版の制約に由来する癖があります.いま述べたように,\SpecialChar LyX
16353 では,環境を別の環境で開始することが禁止されています.これを回避するために,
16354 \family sans
16355 スライド
16356 \family default
16357 環境は『
16358 \emph on
16359 ユーザーの手引き
16360 \emph default
16361 』で述べられているような段落環境ではなくなっています.
16362 \end_layout
16363
16364 \begin_layout Standard
16365
16366 \family sans
16367 スライド
16368 \family default
16369
16370 \family sans
16371 オーバーレイ
16372 \family default
16373
16374 \family sans
16375 注釈
16376 \family default
16377 は「疑似環境」だとお考えください.これらは節見出しや「
16378 \family sans
16379 キャプション
16380 \family default
16381 」のように見えますが,実際には(必要なら前段落を終了して)新しい段落環境を開始します.同様に,
16382 \family sans
16383 不可視文
16384 \family default
16385
16386 \family sans
16387 可視文
16388 \family default
16389 も「疑似コマンド」とお考えください.この2つは特定のアクションを行います.
16390 \end_layout
16391
16392 \begin_layout Standard
16393
16394 \family sans
16395 スライド
16396 \family default
16397
16398 \family sans
16399 オーバーレイ
16400 \family default
16401
16402 \family sans
16403 注釈
16404 \family default
16405
16406 \family sans
16407 不可視文
16408 \family default
16409
16410 \family sans
16411 可視文
16412 \family default
16413 の5環境に共通しているのは,長めのラベルを持つことです.このラベルに続く文章—通常は段落環境の内容になるはずですが—は,
16414 \family sans
16415 スライド
16416 \family default
16417
16418 \family sans
16419 オーバーレイ
16420 \family default
16421
16422 \family sans
16423 注釈
16424 \family default
16425
16426 \family sans
16427 不可視文
16428 \family default
16429
16430 \family sans
16431 可視文
16432 \family default
16433 では,まったく意味がなく,\SpecialChar LyX
16434 はこの部分を完全に無視します.これらの5つの環境の内容は,完全に空のままにしておいて構いません.
16435 \end_layout
16436
16437 \begin_layout Standard
16438 長めのラベルの後に文章を入れる
16439 \emph on
16440 必要は
16441 \emph default
16442 まったく
16443 \emph on
16444 ない
16445 \emph default
16446 とはいえ,何か書いておきたいこともあるかもしれません.たとえば,スライドの内容に関する短い説明などがそうでしょう.この場合,いつもどおり説明用のコメントを入力し
16447
16448 \family sans
16449 Return
16450 \family default
16451 を押してください.
16452 \end_layout
16453
16454 \begin_layout Standard
16455 一方,説明文を入れたくない場合には,\SpecialChar LyX
16456 の制約に直面します.自然が真空を憎むように,\SpecialChar LyX
16457 では,古い環境に何かを置くまでは,その中に新しい環境を入れることができません.そ
16458 こで以下のようにしてください.
16459 \end_layout
16460
16461 \begin_layout Itemize
16462 新しい
16463 \family sans
16464 スライド
16465 \family default
16466
16467 \family sans
16468 オーバーレイ
16469 \family default
16470
16471 \family sans
16472 注釈
16473 \family default
16474
16475 \family sans
16476 不可視文
16477 \family default
16478
16479 \family sans
16480 可視文
16481 \family default
16482
16483 \emph on
16484 中に入れる
16485 \emph default
16486 文章を入力してください.
16487 \end_layout
16488
16489 \begin_layout Itemize
16490 段落の先頭に移動します.
16491 \end_layout
16492
16493 \begin_layout Itemize
16494 次に
16495 \family sans
16496 Return
16497 \family default
16498 を押します.
16499 \end_layout
16500
16501 \begin_layout Itemize
16502 最後に,この新しい空の段落を
16503 \family sans
16504 スライド
16505 \family default
16506
16507 \family sans
16508 オーバーレイ
16509 \family default
16510
16511 \family sans
16512 注釈
16513 \family default
16514
16515 \family sans
16516 不可視文
16517 \family default
16518
16519 \family sans
16520 可視文
16521 \family default
16522 に変更します.
16523 \end_layout
16524
16525 \begin_layout Standard
16526 将来の\SpecialChar LyX
16527 では,このような癖が解決されることを祈っています\SpecialChar ldots
16528
16529 \begin_inset Foot
16530 status collapsed
16531
16532 \begin_layout Plain Layout
16533 (訳註)ここの記述は古くなっています.
16534 \end_layout
16535
16536 \end_inset
16537
16538
16539 \end_layout
16540
16541 \begin_layout Subsection
16542
16543 \family sans
16544 スライド
16545 \family default
16546
16547 \family sans
16548 オーバーレイ
16549 \family default
16550
16551 \family sans
16552 注釈で発表用のスライドを作る
16553 \end_layout
16554
16555 \begin_layout Subsubsection
16556
16557 \family sans
16558 スライド
16559 \family default
16560 環境を使う
16561 \end_layout
16562
16563 \begin_layout Standard
16564 もし本節が,実際のプレゼンテーションの作り方を教えてくれるものと期待されているとすれば,大いにがっかりされるかもしれません.当然ながら,プレゼンテーション用の資
16565 料を準備するうえで
16566 \family sans
16567 slides
16568 \family default
16569 クラスを役立てる方法を詳しく説明はしますが,内容をどうするかはあなた次第です(そしてこれも\SpecialChar LyX
16570 の哲学です).
16571 \end_layout
16572
16573 \begin_layout Standard
16574
16575 \family sans
16576 スライド
16577 \family default
16578 環境を選択すれば(方法は第
16579 \begin_inset CommandInset ref
16580 LatexCommand ref
16581 reference "sec:スライドの癖"
16582
16583 \end_inset
16584
16585 節参照のこと),\SpecialChar LyX
16586 は新規スライドを開始します.この環境ないし「疑似環境」のラベルは,鮮やかな青で「新規スライド:」と表示されます.この環境の後のテキスト環境や段落
16587 環境は,すべて新規スライドに入ります.簡単ですよね.
16588 \end_layout
16589
16590 \begin_layout Standard
16591 Slidesは,おそらく\SpecialChar LyX
16592 の中で強制的に改頁をしなくてはならない唯一のクラスです(これは
16593 \family sans
16594 段落レイアウト
16595 \family default
16596 ダイアログで指定できます).実際,一つのスライドの内容を入力し終わったら,改頁したくなるはずです.仮に一つのスライドに物理的に入りきらない文章を入力したとすると
16597 ,入りきらない部分は,次の新規スライドにまわされます.しかしながら,入りきらない部分のスライドにはページ番号が付きませんので,こうするのはお勧めしません.その上
16598 ,一枚に収まらないスライドでは,
16599 \family sans
16600 オーバーレイ
16601 \family default
16602 を使用すると干渉する恐れがあります.
16603 \end_layout
16604
16605 \begin_layout Standard
16606
16607 \family sans
16608 オーバーレイ
16609 \family default
16610 環境と
16611 \family sans
16612 注釈
16613 \family default
16614 環境も,
16615 \family sans
16616 スライド
16617 \family default
16618 環境と同様の動作を示します.これらは,青の代わりに鮮やかなマゼンタで,それぞれ「
16619 \noun on
16620 新規オーバーレイ
16621 \noun default
16622 :」ないし「
16623 \noun on
16624 新規注釈:
16625 \noun default
16626 」というラベルを表示します.ラベルのフォントも,3つの環境でそれぞれ異なるものが使用されます.
16627 \end_layout
16628
16629 \begin_layout Standard
16630
16631 \family sans
16632 スライド
16633 \family default
16634 と同様に,
16635 \family sans
16636 オーバーレイ
16637 \family default
16638
16639 \family sans
16640 注釈
16641 \family default
16642 の内容が,一つのスライドないしページに物理的に収まりきらない場合には,余分は新規スライドに回されます.この場合には,
16643 \family sans
16644 注釈
16645 \family default
16646
16647 \family sans
16648 オーバーレイ
16649 \family default
16650 の本来の目的が達せられなくなりますので,ここでもこのような状態は避けるべきでしょう.
16651 \end_layout
16652
16653 \begin_layout Subsubsection
16654
16655 \family sans
16656 スライドでオーバーレイを使用する
16657 \end_layout
16658
16659 \begin_layout Standard
16660
16661 \family sans
16662 オーバーレイ
16663 \family default
16664 の背後にある考え方は,別のスライドの上にスライドを載せようとするものです.メインの
16665 \family sans
16666 スライド
16667 \family default
16668 に図があるとき,関連した文章を表示する前に,図について議論を進めたいと思うことがあるかもしれません.これを行うひとつの方法は,
16669 \family sans
16670 スライド
16671 \family default
16672 で後に表示したい部分に黒い紙の蓋を貼り付けてしまうことですが,この方法は,たとえばグラフを他のグラフに重ねたい場合などには,うまく行きません.この場合には,二つ
16673 のグラフを揃えるために,重ねる二つのスライドを,喋りながら手探りで揃えなくてはなりません.これらのような場合には,
16674 \family sans
16675 オーバーレイ
16676 \family default
16677 環境を使えば,もっと楽になります.
16678 \end_layout
16679
16680 \begin_layout Standard
16681
16682 \family sans
16683 オーバーレイ
16684 \family default
16685 は,「親」
16686 \family sans
16687 スライド
16688 \family default
16689 のページ番号を引継ぎ,その後に「
16690 \family typewriter
16691 -a
16692 \family default
16693 」を付け加えます
16694 \begin_inset Foot
16695 status collapsed
16696
16697 \begin_layout Plain Layout
16698 想像できるように,複数のオーバーレイがあれば,「
16699 \family typewriter
16700 -a
16701 \family default
16702 」「
16703 \family typewriter
16704 -b
16705 \family default
16706 」「
16707 \family typewriter
16708 -c
16709 \family default
16710 」などが親スライドのページ番号に付け加えられます.
16711 \end_layout
16712
16713 \end_inset
16714
16715 .当然のことながら,
16716 \family sans
16717 スライド
16718 \family default
16719
16720 \family sans
16721 オーバーレイ
16722 \family default
16723 の内容は両方とも,1枚のスライドに物理的に収まるようになっていなければなりません.
16724 \family sans
16725 オーバーレイ
16726 \family default
16727
16728 \family sans
16729 スライド
16730 \family default
16731 の「一部」であると考えるのがよいでしょう.\SpecialChar LyX
16732 では,
16733 \family sans
16734 オーバーレイ
16735 \family default
16736 のラベルを
16737 \family sans
16738 スライド
16739 \family default
16740 のラベルよりも下げることで,このことを視覚的に表しています.また,印刷可能な出力を生成すると,
16741 \family sans
16742 オーバーレイ
16743 \family default
16744 と親
16745 \family sans
16746 スライド
16747 \family default
16748 両方の四隅に,揃えマーカーがあることに気づかれるはずです.これは,2枚のスライドを物理的に重ね合わせるための補助となるものです.
16749 \end_layout
16750
16751 \begin_layout Standard
16752 2つのスライドをオーバーレイさせる際の大きな問題は,2枚のスライドの内容を揃えることです.2枚目のスライドのグラフには,どれだけの余白を残しておくべきなのでしょ
16753 うか?さらにややこしく,2枚目のスライドにグラフと文章を入れたいときに,その間に割り込んでしまうような文章がメインスライドにある場合には,どうでしょうか?正しい
16754 寸法の垂直スペースを挿入してみることもできるでしょう.しかし,もっと良い方法として,
16755 \family sans
16756 不可視文
16757 \family default
16758
16759 \family sans
16760 可視文
16761 \family default
16762 を使用する方法があります.
16763 \end_layout
16764
16765 \begin_layout Standard
16766 これらの名前が意味するとおり,
16767 \family sans
16768 不可視文
16769 \family default
16770
16771 \family sans
16772 可視文
16773 \family default
16774 は,それぞれ続く文章すべてを見えなくしたり見えるようにしたりするコマンド型の段落環境です.しかしながら,第
16775 \begin_inset CommandInset ref
16776 LatexCommand ref
16777 reference "sec:スライドの癖"
16778
16779 \end_inset
16780
16781 節で述べたように,この2つの環境の
16782 \emph on
16783
16784 \emph default
16785 には何も置くことができません.
16786 \family sans
16787 不可視文
16788 \family default
16789 を作成すると,「<以下不可視文>」と書かれた水色のラベルが,ページに中央揃えで表示されます.このラベルに続く段落は,それが置かれるべき
16790 \family sans
16791 スライド
16792 \family default
16793 (あるいは
16794 \family sans
16795 オーバーレイ
16796 \family default
16797 ;どちらでも同じことです)部分に,代わりに空白の部分が置かれます.
16798 \end_layout
16799
16800 \begin_layout Standard
16801
16802 \family sans
16803 可視文
16804 \family default
16805 の場合には,中央揃えのラベルは,鮮やかな緑の「<以下可視文>」となります.このラベル以降の段落は,通常通りの挙動を示します.新規の
16806 \family sans
16807 スライド
16808 \family default
16809
16810 \family sans
16811 オーバーレイ
16812 \family default
16813
16814 \family sans
16815 注釈
16816 \family default
16817 を開始すると,
16818 \family sans
16819 不可視文
16820 \family default
16821 は自動的に終了されることに注意してください.したがって,
16822 \family sans
16823 スライド
16824 \family default
16825 の終わりでは,
16826 \family sans
16827 可視文
16828 \family default
16829 を使用する必要はありません.
16830 \end_layout
16831
16832 \begin_layout Standard
16833 ここまでで,
16834 \family sans
16835 スライド
16836 \family default
16837
16838 \family sans
16839 オーバーレイ
16840 \family default
16841 上で
16842 \family sans
16843 不可視文
16844 \family default
16845
16846 \family sans
16847 可視文
16848 \family default
16849 を適切に使用して,スライドをオーバーレイさせる方法が明らかになったことと思います.
16850 \end_layout
16851
16852 \begin_layout Enumerate
16853 メインのスライドか
16854 \family sans
16855 オーバーレイ
16856 \family default
16857 かに関わらず,スライド上に現れるすべてを含んだ
16858 \family sans
16859 スライド
16860 \family default
16861 を作成します.
16862 \end_layout
16863
16864 \begin_layout Enumerate
16865
16866 \family sans
16867 オーバーレイ
16868 \family default
16869 のみに表示するすべての図や段落の前に,
16870 \family sans
16871 不可視文
16872 \family default
16873 環境を挿入し,必要ならば,
16874 \family sans
16875 オーバーレイ
16876 \family default
16877 のみの文章の後に
16878 \family sans
16879 可視文
16880 \family default
16881 環境を挿入します.
16882 \end_layout
16883
16884 \begin_layout Enumerate
16885
16886 \family sans
16887 スライド
16888 \family default
16889 の直後から,
16890 \family sans
16891 オーバーレイ
16892 \family default
16893 を開始します.
16894 \end_layout
16895
16896 \begin_layout Enumerate
16897 この
16898 \family sans
16899 スライド
16900 \family default
16901 の内容を
16902 \family sans
16903 オーバーレイ
16904 \family default
16905 にコピーします.
16906 \end_layout
16907
16908 \begin_layout Enumerate
16909
16910 \family sans
16911 オーバーレイ
16912 \family default
16913 内部の
16914 \family sans
16915 不可視文
16916 \family default
16917 行をすべて
16918 \family sans
16919 不可視文
16920 \family default
16921 に変更し,
16922 \family sans
16923 可視文
16924 \family default
16925
16926 \family sans
16927 不可視文
16928 \family default
16929 に変更します.
16930 \end_layout
16931
16932 \begin_layout Standard
16933 これだけです.これで
16934 \family sans
16935 オーバーレイ
16936 \family default
16937 ができあがりました.
16938 \end_layout
16939
16940 \begin_layout Standard
16941 \SpecialChar LyX
16942  
16943 \family sans
16944 slides
16945 \family default
16946 クラスをデザインする上で,ひとつ残された問題があります.段落途中の文章を不可視にしたり,不可視段落の途中の文章を再度可視にしたりすることはできないのです.これを
16947 実現するためには,\SpecialChar LaTeX
16948 コードを埋め込む必要があります
16949 \begin_inset Foot
16950 status collapsed
16951
16952 \begin_layout Plain Layout
16953 このコマンドは,
16954 \end_layout
16955
16956 \begin_layout Itemize
16957
16958 \family typewriter
16959 {
16960 \backslash
16961 invisible \SpecialChar ldots
16962  }
16963 \end_layout
16964
16965 \begin_layout Itemize
16966
16967 \family typewriter
16968 {
16969 \backslash
16970 visible \SpecialChar ldots
16971  }
16972 \end_layout
16973
16974 \begin_layout Plain Layout
16975 \SpecialChar ldots
16976 のような形となり,\SpecialChar TeX
16977 としてマークする必要があります.「可視性」を変更したい文章は,波括弧のあいだ(そして
16978 \family typewriter
16979
16980 \backslash
16981 invisible
16982 \family default
16983 ないし
16984 \family typewriter
16985
16986 \backslash
16987 visible
16988 \family default
16989 コマンドの後ろ)に入れます.\SpecialChar TeX
16990 としてマークする方法がわからない場合は,
16991 \emph on
16992 ユーザーの手引き
16993 \emph default
16994 をご参照ください.
16995 \end_layout
16996
16997 \end_inset
16998
16999
17000 \end_layout
17001
17002 \begin_layout Subsubsection
17003
17004 \family sans
17005 スライドで注釈を使う
17006 \family default
17007
17008 \begin_inset CommandInset label
17009 LatexCommand label
17010 name "sec:スライド注釈"
17011
17012 \end_inset
17013
17014
17015 \end_layout
17016
17017 \begin_layout Standard
17018
17019 \family sans
17020 オーバーレイ
17021 \family default
17022 と同様,
17023 \family sans
17024 注釈
17025 \family default
17026 も「親」
17027 \family sans
17028 スライド
17029 \family default
17030 に関連付けられています.ここでも\SpecialChar LyX
17031
17032 \family sans
17033 スライド
17034 \family default
17035 クラスは視覚的な効果を与えています.
17036 \family sans
17037 注釈
17038 \family default
17039 のラベルは
17040 \family sans
17041 スライド
17042 \family default
17043 よりも短く(オーバーレイのラベルよりも長いですが),
17044 \family sans
17045 オーバーレイ
17046 \family default
17047 のラベルと同様,派手な赤紫色です.加えて,印刷した
17048 \family sans
17049 注釈
17050 \family default
17051 には,「親」スライドのページ番号に「
17052 \family typewriter
17053 -
17054 \family default
17055 1」「
17056 \family typewriter
17057 -
17058 \family default
17059 2」「
17060 \family typewriter
17061 -
17062 \family default
17063 3」等を付けたページ番号が付けられます.1つの
17064 \family sans
17065 スライド
17066 \family default
17067 には,複数の
17068 \family sans
17069 注釈
17070 \family default
17071 を関連付けることができるので,
17072 \family sans
17073 スライド
17074 \family default
17075
17076 \family sans
17077 オーバーレイ
17078 \family default
17079 と同じように,長い注釈は,1枚の紙に収まるように分割したいと思われるに違いありません.
17080 \end_layout
17081
17082 \begin_layout Standard
17083
17084 \family sans
17085 注釈
17086 \family default
17087 の目的は明らかです.
17088 \family sans
17089 スライド
17090 \family default
17091 に関して付け加えたいことを書き留めておくことです.特定の
17092 \family sans
17093 スライド
17094 \family default
17095 についての覚書として使うこともできます.後者の場合には,タイムマーカを利用したいこともあるかもしれません.現在のところ,\SpecialChar LyX
17096
17097 \family sans
17098 スライド
17099 \family default
17100 クラスは,
17101 \noun on
17102 Sli
17103 \noun default
17104 \SpecialChar TeX
17105 の機能であるタイムマーカを「ネイティブには」サポートしていません.したがって,\SpecialChar LaTeX
17106 コードを使用することに頼らなくてはなりません.
17107 \end_layout
17108
17109 \begin_layout Standard
17110 タイムマーカを使用するには,クラスオプション「
17111 \family typewriter
17112 clock
17113 \family default
17114 」を追加指定する必要があります(第
17115 \begin_inset CommandInset ref
17116 LatexCommand ref
17117 reference "sec:slidesetup"
17118
17119 \end_inset
17120
17121 節参照).このオプションはタイムマーカ機能を有効にして,生成したすべての
17122 \family sans
17123 注釈
17124 \family default
17125 の左下にタイムマーカを表示します.タイムマーカに表示するものを設定するには,\SpecialChar LaTeX
17126 コマンド「
17127 \family typewriter
17128
17129 \backslash
17130 settime{}
17131 \family default
17132 」および「
17133 \family typewriter
17134
17135 \backslash
17136 addtime{}
17137 \family default
17138 」を使用します.両コマンドは,秒で測った時間を引数にとります.「
17139 \family typewriter
17140
17141 \backslash
17142 settime{}
17143 \family default
17144 」は,タイムマーカを特定の時間に設定し,「
17145 \family typewriter
17146
17147 \backslash
17148 addtime{}
17149 \family default
17150 」は,タイムマーカを指定した分だけ進めます.このようにタイムマーカと
17151 \family sans
17152 注釈
17153 \family default
17154 を用いれば,特定の
17155 \family sans
17156 スライド
17157 \family default
17158 にどれだけの時間をかけるのか忘れないでいられます.
17159 \end_layout
17160
17161 \begin_layout Standard
17162 最後に,説明しておくべき機能がもう一つあります.当然ながら,
17163 \family sans
17164 スライド
17165 \family default
17166
17167 \family sans
17168 オーバーレイ
17169 \family default
17170 はすべてスライドに,
17171 \family sans
17172 注釈
17173 \family default
17174 はすべて普通の紙に印刷したいはずです.しかしながら,
17175 \family sans
17176 注釈
17177 \family default
17178 は関連付けられた親スライドの直後に
17179 \emph on
17180 来なくてはなりません
17181 \emph default
17182 .ユーザーはどうしたら良いのでしょうか.
17183 \end_layout
17184
17185 \begin_layout Standard
17186 幸いなことに,どれを印刷するか選択することを可能にする\SpecialChar LaTeX
17187 コマンドが,2種類あります.どちらも文書のプリアンブルに記述されなくてはなりません.コマンド「
17188 \family typewriter
17189
17190 \backslash
17191 onlyslides{
17192 \backslash
17193 slides}
17194 \family default
17195 」は,出力に
17196 \family sans
17197 スライド
17198 \family default
17199
17200 \family sans
17201 オーバーレイ
17202 \family default
17203 のみが含まれるようにするものです.同様に,「
17204 \family typewriter
17205
17206 \backslash
17207 onlynotes{
17208 \backslash
17209 notes}
17210 \family default
17211 」は
17212 \family sans
17213 注釈
17214 \family default
17215 以外の出力をすべて抑制します.私のアドバイスとしては,両コマンドをプリアンブルに書いておいて,最初は両方ともコメントアウトしておくと良いでしょう.そうすれば,執
17216 筆時にはプレゼンテーション全体をプレビューすることができます.いったん書き終えたならば,二つのうち一方のコメントを外して,印刷したい方を選ぶことができます.私な
17217 らば,まず
17218 \family typewriter
17219
17220 \backslash
17221 onlyslides{
17222 \backslash
17223 slides}
17224 \family default
17225 のコメントを外して,現ファイル名に「*
17226 \family typewriter
17227 -slides
17228 \family default
17229 」を付けた新たなファイルに出力を行ない,今度はこの行をふたたびコメントアウトするとともに,「
17230 \family typewriter
17231
17232 \backslash
17233 onlynotes{
17234 \backslash
17235 notes
17236 \family default
17237 }」のコメントを外して,これを「
17238 \family typewriter
17239 *-notes.ps
17240 \family default
17241 」というファイルに出力します.そうすれば,必要に応じて,スライドまたは通常の紙をプリンタにセットし,一方のファイルをプリンタに送ればよいのです.
17242 \end_layout
17243
17244 \begin_layout Standard
17245
17246 \family typewriter
17247
17248 \backslash
17249 onlyslides{}
17250 \family default
17251 」および「
17252 \family typewriter
17253
17254 \backslash
17255 onlynotes{}
17256 \family default
17257 」コマンドには,他の引数を与えることもできます.詳しくは,\SpecialChar LaTeX
17258 の良書をご覧ください.
17259 \end_layout
17260
17261 \begin_layout Subsection
17262
17263 \family sans
17264 slides
17265 \family default
17266 クラスのひな型ファイル
17267 \end_layout
17268
17269 \begin_layout Standard
17270
17271 \family sans
17272 slides
17273 \family default
17274 クラス用のひな型ファイルとして「
17275 \family typewriter
17276 slides.lyx
17277 \family default
17278 」が提供されています.これを使用するには,新しいプレゼンテーションを作り始める際に,
17279 \family sans
17280 ファイル\SpecialChar menuseparator
17281 新規(ひな型使用)
17282 \family default
17283 メニューを選択してください.すると新規ファイルには,
17284 \family sans
17285 スライド
17286 \family default
17287
17288 \family sans
17289 オーバーレイ
17290 \family default
17291
17292 \family sans
17293 注釈
17294 \family default
17295 の組が,例として含まれており,
17296 \family sans
17297 スライド
17298 \family default
17299
17300 \family sans
17301 オーバーレイ
17302 \family default
17303 には,さらに
17304 \family sans
17305 不可視文
17306 \family default
17307
17308 \family sans
17309 可視文
17310 \family default
17311 の使用例も含まれています.また,プリアンブルには,次のように書き込まれています.
17312 \end_layout
17313
17314 \begin_layout LyX-Code
17315 % Uncomment to print out only slides and overlays
17316 \end_layout
17317
17318 \begin_layout LyX-Code
17319 %
17320 \end_layout
17321
17322 \begin_layout LyX-Code
17323 %
17324 \backslash
17325 onlyslides{
17326 \backslash
17327 slides}
17328 \begin_inset Newline newline
17329 \end_inset
17330
17331  
17332 \end_layout
17333
17334 \begin_layout LyX-Code
17335 % Uncomment to print out only notes
17336 \end_layout
17337
17338 \begin_layout LyX-Code
17339 %
17340 \end_layout
17341
17342 \begin_layout LyX-Code
17343 %
17344 \backslash
17345 onlynotes{
17346 \backslash
17347 notes}
17348 \end_layout
17349
17350 \begin_layout Standard
17351 最後に,私はこの文書クラスを,\SpecialChar LaTeX2e
17352 の組み込みクラスである「
17353 \noun on
17354 Sli\SpecialChar TeX
17355
17356 \noun default
17357 エミュレーション」クラスをサポートする目的で作成しました.私も\SpecialChar LyX
17358 チームの他のメンバーも,この組み込みスライドクラスを使用することに賛成したり反対したりするものでは
17359 ありません.これは単に,ユーザーがこれを使いたかったり必要としたりしたときのためにあるものです.プレゼンテーションを作成するためには,
17360 \family sans
17361 Foils
17362 \family default
17363 クラス(第
17364 \begin_inset CommandInset ref
17365 LatexCommand ref
17366 reference "sec:foiltex"
17367
17368 \end_inset
17369
17370 節参照)や「
17371 \family typewriter
17372 seminar
17373 \family default
17374 」パッケージ(一部の\SpecialChar TeX
17375 頒布版に含まれています)のように,他の\SpecialChar LaTeX2e
17376 クラスも存在します.私はこれらについては知らないのですが,他にどのようなことができるのか試してみてくだ
17377 さい.
17378 \end_layout
17379
17380 \begin_layout Chapter
17381 ソフトウェアを追加する必要がある \SpecialChar LyX
17382 機能
17383 \end_layout
17384
17385 \begin_layout Section
17386 \SpecialChar TeX
17387 のチェック
17388 \end_layout
17389
17390 \begin_layout Standard
17391
17392 \noun on
17393 Asger Alstrup
17394 \noun default
17395
17396 \end_layout
17397
17398 \begin_layout Subsection
17399 はじめに
17400 \end_layout
17401
17402 \begin_layout Standard
17403
17404 \family typewriter
17405 chktex
17406 \family default
17407 プログラムが導入されていると
17408 \begin_inset Foot
17409 status collapsed
17410
17411 \begin_layout Plain Layout
17412 \SpecialChar LaTeX
17413 頒布版としてMiK\SpecialChar TeX
17414 を使用している場合には,
17415 \family typewriter
17416 chktex
17417 \family default
17418 はまだ利用可能ではありません.
17419 \end_layout
17420
17421 \end_inset
17422
17423
17424 \family sans
17425 ツール
17426 \family default
17427 メニューの下に,
17428 \family sans
17429 \SpecialChar TeX
17430 構文チェック
17431 \family default
17432 という項目が表示されます.
17433 \family typewriter
17434 chktex
17435 \family default
17436 は,CTAN
17437 \begin_inset Newline newline
17438 \end_inset
17439
17440
17441 \begin_inset CommandInset href
17442 LatexCommand href
17443 target "http://www.ctan.org/tex-archive/help/Catalogue/entries/chktex.html"
17444 literal "false"
17445
17446 \end_inset
17447
17448 から入手することができます.
17449 \end_layout
17450
17451 \begin_layout Standard
17452
17453 \family sans
17454 Chk\SpecialChar TeX
17455
17456 \family default
17457 パッケージは,\SpecialChar LaTeX
17458 の構成物には直感的でないものもあり,すぐ忘れてしまいがちであるのに不満を感じた
17459 \begin_inset Flex Noun
17460 status collapsed
17461
17462 \begin_layout Plain Layout
17463 Jens T.
17464  Berger Thielemann
17465 \end_layout
17466
17467 \end_inset
17468
17469 が書いたプログラムです.このプログラムは,\SpecialChar LaTeX
17470 ファイルを走査して,ファイルの整合性をチェックし,犯しがちな誤りを見つけ出します.別の技術用語では,LaTeXにおける
17471 \family typewriter
17472 lint
17473 \family default
17474 であるとも言えます.
17475 \end_layout
17476
17477 \begin_layout Standard
17478 さて,\SpecialChar LyX
17479 はつねに正しい\SpecialChar LaTeX
17480 ファイルを生成するはずなのに,文法チェッカーは\SpecialChar LyX
17481 で何をするというのでしょうか.答えは簡単です.
17482 \family typewriter
17483 lint
17484 \family default
17485 がC言語プログラムの
17486 \emph on
17487 文法
17488 \emph default
17489 をチェックするだけでなく,打ち間違いによる
17490 \emph on
17491 意味上の
17492 \emph default
17493 チェックも行うように,
17494 \family sans
17495 Chk\SpecialChar TeX
17496
17497 \family default
17498 は,文法エラーの他に犯しがちな
17499 \emph on
17500 写植上の
17501 \emph default
17502 誤りも検出してくれるからです.
17503 \family sans
17504 Chk\SpecialChar TeX
17505
17506 \family default
17507 は,以下のような誤りを検出することができます.
17508 \end_layout
17509
17510 \begin_layout Itemize
17511 省略記号の検出:
17512 \begin_inset Newline newline
17513 \end_inset
17514
17515 ...ではなく\SpecialChar ldots
17516 を使わなくてはなりません
17517 \end_layout
17518
17519 \begin_layout Itemize
17520 括弧の前後にスペースを置かない:
17521 \begin_inset Newline newline
17522 \end_inset
17523
17524 ( wrong spacing ):誤った空白
17525 \end_layout
17526
17527 \begin_layout Itemize
17528 よく使われる省略形の後ろは通常スペースにする:
17529 \begin_inset Newline newline
17530 \end_inset
17531
17532 e.
17533 \begin_inset space \thinspace{}
17534 \end_inset
17535
17536 g.
17537 \begin_inset space \space{}
17538 \end_inset
17539
17540 is too wide spacing.:広すぎる空白
17541 \end_layout
17542
17543 \begin_layout Itemize
17544 直前の文章が大文字で終わっているときに,文末スペースに直す:
17545 \begin_inset Newline newline
17546 \end_inset
17547
17548 This is a TEST.
17549  And this is wrong spacing.:誤った空白
17550 \end_layout
17551
17552 \begin_layout Itemize
17553 ラベルや類似コマンドの前のスペース:
17554 \begin_inset Newline newline
17555 \end_inset
17556
17557 ラベルが別のページに行ってしまわないように,ラベルは文章に接していなくてはなりません. 
17558 \begin_inset CommandInset label
17559 LatexCommand label
17560 name "sec:chktex"
17561
17562 \end_inset
17563
17564  
17565 \begin_inset Foot
17566 status collapsed
17567
17568 \begin_layout Plain Layout
17569 この脚注は,正しくないページに行ってしまう恐れがあります.
17570 \end_layout
17571
17572 \end_inset
17573
17574  このラベルは離れすぎです.
17575 \end_layout
17576
17577 \begin_layout Itemize
17578 参照の前にハードスペースではなくスペース:
17579 \begin_inset Newline newline
17580 \end_inset
17581
17582 運が悪ければ,参照文字列と参照番号のあいだでちょうど改行されてしまい,残念な結果となります.第
17583 \begin_inset CommandInset ref
17584 LatexCommand ref
17585 reference "sec:chktex"
17586
17587 \end_inset
17588
17589 節をご覧ください.
17590 \end_layout
17591
17592 \begin_layout Itemize
17593 数字のあいだで
17594 \begin_inset Formula $\times$
17595 \end_inset
17596
17597 ではなく「x」が使われている:
17598 \begin_inset Newline newline
17599 \end_inset
17600
17601 2x2は,
17602 \begin_inset Formula $2\times2$
17603 \end_inset
17604
17605 よりも安っぽく見えます.
17606 \end_layout
17607
17608 \begin_layout Standard
17609 などなど\SpecialChar ldots
17610
17611 \family sans
17612 Chk\SpecialChar TeX
17613
17614 \family default
17615 は,印刷する前に文書を「仕上げる」上で,たいへん価値のあるツールです.必須のスペルチェックを終えた直後,組版の微調整をする前には,これを実行するべきです.
17616 \end_layout
17617
17618 \begin_layout Subsection
17619 使いかた
17620 \end_layout
17621
17622 \begin_layout Standard
17623 このプログラムを導入したならば,使うのは
17624 \family sans
17625 ツール\SpecialChar menuseparator
17626 \SpecialChar TeX
17627 構文チェック
17628 \family default
17629 を選択するだけなので簡単です.こうすると,\SpecialChar LyX
17630 は使用中の文書の\SpecialChar LaTeX
17631 ファイルを生成して,
17632 \family sans
17633 Chk\SpecialChar TeX
17634
17635 \family default
17636 を起動し,当該ファイルを検査しますが,
17637 \family sans
17638 Chk\SpecialChar TeX
17639
17640 \family default
17641 から警告があった場合には,それを含んだ「エラーボックス」を\SpecialChar LyX
17642 中に挿入します.警告は,誤りのある箇所のそばに置かれるので,メニュー項目の
17643 \family sans
17644 移動\SpecialChar menuseparator
17645 エラー
17646 \family default
17647 を選択するか,既定の
17648 \family typewriter
17649 cua
17650 \family default
17651
17652 \begin_inset Flex Ruby
17653 status collapsed
17654
17655 \begin_layout Plain Layout
17656
17657 \begin_inset Argument post:1
17658 status collapsed
17659
17660 \begin_layout Plain Layout
17661 キー
17662 \end_layout
17663
17664 \end_inset
17665
17666
17667 \end_layout
17668
17669 \end_inset
17670
17671 設定ファイルならば
17672 \begin_inset Flex Ruby
17673 status collapsed
17674
17675 \begin_layout Plain Layout
17676
17677 \family roman
17678 \series medium
17679 \shape up
17680 \size normal
17681 \emph off
17682 \bar no
17683 \noun off
17684 \color none
17685 捷径
17686 \family default
17687 \series default
17688 \shape default
17689 \size default
17690 \emph default
17691 \bar default
17692 \noun default
17693 \color inherit
17694
17695 \begin_inset Argument post:1
17696 status collapsed
17697
17698 \begin_layout Plain Layout
17699 ショートカット
17700 \end_layout
17701
17702 \end_inset
17703
17704
17705 \end_layout
17706
17707 \end_inset
17708
17709
17710 \family sans
17711 C-g
17712 \family default
17713 を押せば,簡単に警告の箇所を見出すことができます.エラーボックスを開けるには,マウスでボックスをクリックするか,
17714 \family typewriter
17715 cua
17716 \family default
17717 鍵設定の場合には捷径鍵
17718 \family sans
17719 C-i
17720 \family default
17721
17722 \family typewriter
17723 emacs
17724 \family default
17725 鍵設定の場合は捷径鍵
17726 \family sans
17727 C-o
17728 \family default
17729 を押します.警告を読み,それが誤りを示していれば修正します.警告が何を意味しているか理解しにくい場合には,無視しても問題はありません.画面上の文書と,
17730 \family sans
17731 Chk\SpecialChar TeX
17732
17733 \family default
17734 を起動する際に行なわれる実際の技術的な操作のあいだには,隠された層があり,この隔たりのせいで,一部の警告が不可解なものになったり,明らかに馬鹿げたものになる場合
17735 があるのです.
17736 \end_layout
17737
17738 \begin_layout Standard
17739 本文書自体,この機能を確認する良い材料になりますので,実行してみてください.すると,かなりの量の警告が出るはずです.これはコンピュータが敏感すぎるせいですので,
17740 警告のほとんどは実際には警告に値しません.
17741 \end_layout
17742
17743 \begin_layout Subsection
17744 微調整のしかた
17745 \end_layout
17746
17747 \begin_layout Standard
17748 場合によっては,
17749 \family sans
17750 Chk\SpecialChar TeX
17751
17752 \family default
17753 は,あなたが望むよりも煩すぎると思うかもしれません.そのような場合には,必要と思うまで
17754 \family sans
17755 Chk\SpecialChar TeX
17756
17757 \family default
17758 を無効にするか,あなたにもう少し合うように
17759 \family sans
17760 Chk\SpecialChar TeX
17761
17762 \family default
17763 を調整することができます.
17764 \end_layout
17765
17766 \begin_layout Standard
17767
17768 \family sans
17769 Chk\SpecialChar TeX
17770
17771 \family default
17772 は調整や拡張がひじょうに柔軟なのですが,\SpecialChar LyX
17773 における
17774 \family sans
17775 Chk\SpecialChar TeX
17776
17777 \family default
17778 関連の問題が,それですべて解決すると思うべきではありません.\SpecialChar LyX
17779 は,
17780 \family sans
17781 Chk\SpecialChar TeX
17782
17783 \family default
17784 出力
17785 \begin_inset Foot
17786 status collapsed
17787
17788 \begin_layout Plain Layout
17789
17790 \family sans
17791 chktex
17792 \family default
17793 の実際の出力は,
17794 \family sans
17795 chktex
17796 \family default
17797 を実行した直後に
17798 \family sans
17799 文書\SpecialChar menuseparator
17800 \SpecialChar LaTeX
17801 ログ
17802 \family default
17803 を使えば見ることができます.
17804 \end_layout
17805
17806 \end_inset
17807
17808 から得た行番号と内部構造を一致させるため,やや特殊な\SpecialChar LaTeX
17809 ファイルを生成しなくてはならないので,警告の一部は正しく表示されていないように見えるでしょう.これに対処する
17810 ためには,以下の2つの方法があります.
17811 \end_layout
17812
17813 \begin_layout Itemize
17814
17815 \family sans
17816 \begin_inset Flex MenuItem
17817 status collapsed
17818
17819 \begin_layout Plain Layout
17820
17821 \family sans
17822 ツール\SpecialChar menuseparator
17823 設定\SpecialChar menuseparator
17824 出力\SpecialChar menuseparator
17825 \SpecialChar LaTeX
17826 \SpecialChar menuseparator
17827 Check\SpecialChar TeX
17828 コマンド
17829 \end_layout
17830
17831 \end_inset
17832
17833
17834 \family default
17835 中の
17836 \family sans
17837 Chk\SpecialChar TeX
17838
17839 \family default
17840 起動コマンドラインを調整するか,グローバルな
17841 \family sans
17842 Chk\SpecialChar TeX
17843
17844 \family default
17845 の設定ファイル(通常は
17846 \begin_inset Flex Code
17847 status collapsed
17848
17849 \begin_layout Plain Layout
17850 chktexrc
17851 \end_layout
17852
17853 \end_inset
17854
17855 ファイル)を調整します.コマンドラインからどの警告を有効・無効にできるかは以下をご覧ください.
17856 \end_layout
17857
17858 \begin_layout Itemize
17859
17860 \family sans
17861 ファイル\SpecialChar menuseparator
17862 書き出し\SpecialChar menuseparator
17863 \SpecialChar LaTeX
17864
17865 \family default
17866 を使って文書を\SpecialChar LaTeX
17867 ファイルに変換し,そのファイルに対して
17868 \family typewriter
17869 chktex
17870 \family default
17871 を手動で実行します.このようにすると,\SpecialChar LyX
17872 文書中の対応箇所を見つけるのがやや面倒ですが,少し我慢すれば見つけることができます.
17873 \end_layout
17874
17875 \begin_layout Standard
17876 以下は,
17877 \family sans
17878 設定
17879 \family default
17880 で有効化・無効化できる警告メッセージです.警告を無効にするには
17881 \family typewriter
17882 -n#
17883 \family default
17884 ,有効にするには
17885 \family typewriter
17886 -w#
17887 \family default
17888 を用います.イタリック表示の項目は,既定で無効となっています.既定値は "
17889 \family typewriter
17890 chktex -n1 -n3 -n6 -n9 -n22 -n25 -n30 -n38
17891 \family default
17892 "です.
17893 \end_layout
17894
17895 \begin_layout Standard
17896 \SpecialChar LyX
17897 は,
17898 \family typewriter
17899 chktex
17900 \family default
17901 と通信するために,他のコマンドラインパラメータを特定の方法で使用しているため,メッセージを有効化・無効化する以外のオプションを使うべきではありません.
17902 \end_layout
17903
17904 \begin_layout Enumerate
17905
17906 \size small
17907 \emph on
17908 Command terminated with space.
17909 \end_layout
17910
17911 \begin_layout Enumerate
17912
17913 \size small
17914 Non-breaking space (
17915 \begin_inset Quotes eld
17916 \end_inset
17917
17918
17919 \family typewriter
17920 ~
17921 \family default
17922
17923 \begin_inset Quotes erd
17924 \end_inset
17925
17926 ) should have been used.
17927 \end_layout
17928
17929 \begin_layout Enumerate
17930
17931 \size small
17932 \emph on
17933 You should enclose the previous parenthesis with 
17934 \begin_inset Quotes eld
17935 \end_inset
17936
17937
17938 \family typewriter
17939 {}
17940 \family default
17941
17942 \begin_inset Quotes erd
17943 \end_inset
17944
17945 .
17946 \end_layout
17947
17948 \begin_layout Enumerate
17949
17950 \size small
17951 Italic correction (
17952 \begin_inset Quotes eld
17953 \end_inset
17954
17955
17956 \family typewriter
17957
17958 \backslash
17959 /
17960 \family default
17961
17962 \begin_inset Quotes erd
17963 \end_inset
17964
17965 ) found in non-italic buffer.
17966 \end_layout
17967
17968 \begin_layout Enumerate
17969
17970 \size small
17971 Italic correction (
17972 \begin_inset Quotes eld
17973 \end_inset
17974
17975
17976 \family typewriter
17977
17978 \backslash
17979 /
17980 \family default
17981
17982 \begin_inset Quotes erd
17983 \end_inset
17984
17985 ) found more than once.
17986 \end_layout
17987
17988 \begin_layout Enumerate
17989
17990 \size small
17991 \emph on
17992 No italic correction (
17993 \begin_inset Quotes eld
17994 \end_inset
17995
17996
17997 \family typewriter
17998
17999 \backslash
18000 /
18001 \family default
18002
18003 \begin_inset Quotes erd
18004 \end_inset
18005
18006 ) found.
18007 \end_layout
18008
18009 \begin_layout Enumerate
18010
18011 \size small
18012 Accent command 
18013 \begin_inset Quotes eld
18014 \end_inset
18015
18016
18017 \family typewriter
18018 cmd
18019 \family default
18020
18021 \begin_inset Quotes erd
18022 \end_inset
18023
18024  needs use of 
18025 \begin_inset Quotes eld
18026 \end_inset
18027
18028
18029 \family typewriter
18030 cmd
18031 \family default
18032
18033 \begin_inset Quotes erd
18034 \end_inset
18035
18036 .
18037 \end_layout
18038
18039 \begin_layout Enumerate
18040
18041 \size small
18042 Wrong length of dash may have been used.
18043 \end_layout
18044
18045 \begin_layout Enumerate
18046
18047 \size small
18048 \emph on
18049 \begin_inset Quotes eld
18050 \end_inset
18051
18052
18053 \family typewriter
18054 %s
18055 \family default
18056
18057 \begin_inset Quotes erd
18058 \end_inset
18059
18060  expected, found 
18061 \begin_inset Quotes eld
18062 \end_inset
18063
18064
18065 \family typewriter
18066 %s
18067 \family default
18068
18069 \begin_inset Quotes erd
18070 \end_inset
18071
18072 .
18073 \end_layout
18074
18075 \begin_layout Enumerate
18076
18077 \size small
18078 Solo 
18079 \begin_inset Quotes eld
18080 \end_inset
18081
18082
18083 \family typewriter
18084 %s
18085 \family default
18086
18087 \begin_inset Quotes erd
18088 \end_inset
18089
18090  found.
18091 \end_layout
18092
18093 \begin_layout Enumerate
18094
18095 \size small
18096 You should use 
18097 \begin_inset Quotes eld
18098 \end_inset
18099
18100
18101 \family typewriter
18102 %s
18103 \family default
18104
18105 \begin_inset Quotes erd
18106 \end_inset
18107
18108  to achieve an ellipsis.
18109 \end_layout
18110
18111 \begin_layout Enumerate
18112
18113 \size small
18114 Inter-word spacing (
18115 \begin_inset Quotes eld
18116 \end_inset
18117
18118
18119 \family typewriter
18120
18121 \backslash
18122
18123 \family default
18124  
18125 \begin_inset Quotes eld
18126 \end_inset
18127
18128 ) should perhaps be used.
18129 \end_layout
18130
18131 \begin_layout Enumerate
18132
18133 \size small
18134 Inter-sentence spacing (
18135 \begin_inset Quotes eld
18136 \end_inset
18137
18138
18139 \family typewriter
18140
18141 \backslash
18142 @
18143 \family default
18144
18145 \begin_inset Quotes erd
18146 \end_inset
18147
18148 ) should perhaps be used.
18149 \end_layout
18150
18151 \begin_layout Enumerate
18152
18153 \size small
18154 Could not find argument for command.
18155 \end_layout
18156
18157 \begin_layout Enumerate
18158
18159 \size small
18160 No match found for 
18161 \begin_inset Quotes eld
18162 \end_inset
18163
18164
18165 \family typewriter
18166 %s
18167 \family default
18168
18169 \begin_inset Quotes erd
18170 \end_inset
18171
18172 .
18173 \end_layout
18174
18175 \begin_layout Enumerate
18176
18177 \size small
18178 Math mode still on at end of \SpecialChar LaTeX
18179  file.
18180 \end_layout
18181
18182 \begin_layout Enumerate
18183
18184 \size small
18185 Number of 
18186 \begin_inset Quotes eld
18187 \end_inset
18188
18189
18190 \family typewriter
18191 char
18192 \family default
18193
18194 \begin_inset Quotes erd
18195 \end_inset
18196
18197  doesn't match the number of 
18198 \begin_inset Quotes eld
18199 \end_inset
18200
18201
18202 \family typewriter
18203 char
18204 \family default
18205
18206 \begin_inset Quotes erd
18207 \end_inset
18208
18209 .
18210 \end_layout
18211
18212 \begin_layout Enumerate
18213
18214 \size small
18215 You should use either 
18216 \family typewriter
18217
18218 \begin_inset Quotes eld
18219 \end_inset
18220
18221
18222 \family default
18223  or 
18224 \family typewriter
18225
18226 \begin_inset Quotes erd
18227 \end_inset
18228
18229
18230 \family default
18231  as an alternative to 
18232 \begin_inset Quotes eld
18233 \end_inset
18234
18235
18236 \family typewriter
18237 "
18238 \family default
18239
18240 \begin_inset Quotes erd
18241 \end_inset
18242
18243 .
18244 \end_layout
18245
18246 \begin_layout Enumerate
18247
18248 \size small
18249 You should use "
18250 \family typewriter
18251 '
18252 \family default
18253 " (ASCII 39) instead of "" (ASCII 180).
18254 \end_layout
18255
18256 \begin_layout Enumerate
18257
18258 \size small
18259 User-specified pattern found.
18260 \end_layout
18261
18262 \begin_layout Enumerate
18263
18264 \size small
18265 This command might not be intended.
18266 \end_layout
18267
18268 \begin_layout Enumerate
18269
18270 \size small
18271 \emph on
18272 Comment displayed.
18273 \end_layout
18274
18275 \begin_layout Enumerate
18276
18277 \size small
18278 Either 
18279 \family typewriter
18280 ''
18281 \backslash
18282 ,'
18283 \family default
18284  or 
18285 \family typewriter
18286 '
18287 \backslash
18288 ,''
18289 \family default
18290  will look better.
18291 \end_layout
18292
18293 \begin_layout Enumerate
18294
18295 \size small
18296 Delete this space to maintain correct page references.
18297 \end_layout
18298
18299 \begin_layout Enumerate
18300
18301 \size small
18302 \emph on
18303 You might wish to put this between a pair of 
18304 \begin_inset Quotes eld
18305 \end_inset
18306
18307
18308 \family typewriter
18309 {}
18310 \family default
18311
18312 \begin_inset Quotes erd
18313 \end_inset
18314
18315 .
18316 \end_layout
18317
18318 \begin_layout Enumerate
18319
18320 \size small
18321 You ought to remove spaces in front of punctuation.
18322 \end_layout
18323
18324 \begin_layout Enumerate
18325
18326 \size small
18327 Could not execute \SpecialChar LaTeX
18328  command.
18329 \end_layout
18330
18331 \begin_layout Enumerate
18332
18333 \size small
18334 Don't use 
18335 \family typewriter
18336
18337 \backslash
18338 /
18339 \family default
18340  in front of small punctuation.
18341 \end_layout
18342
18343 \begin_layout Enumerate
18344
18345 \family typewriter
18346 \size small
18347 $
18348 \backslash
18349 times$
18350 \family default
18351  may look prettier here.
18352 \end_layout
18353
18354 \begin_layout Enumerate
18355
18356 \size small
18357 \emph on
18358 Multiple spaces detected in output.
18359 \end_layout
18360
18361 \begin_layout Enumerate
18362
18363 \size small
18364 This text may be ignored.
18365 \end_layout
18366
18367 \begin_layout Enumerate
18368
18369 \size small
18370 Use 
18371 \family typewriter
18372
18373 \begin_inset Quotes eld
18374 \end_inset
18375
18376
18377 \family default
18378  to begin quotation, not 
18379 \family typewriter
18380 '
18381 \family default
18382 .
18383 \end_layout
18384
18385 \begin_layout Enumerate
18386
18387 \size small
18388 Use 
18389 \family typewriter
18390 '
18391 \family default
18392  to end quotation, not 
18393 \family typewriter
18394
18395 \begin_inset Quotes eld
18396 \end_inset
18397
18398
18399 \family default
18400 .
18401 \end_layout
18402
18403 \begin_layout Enumerate
18404
18405 \size small
18406 Don't mix quotes.
18407 \end_layout
18408
18409 \begin_layout Enumerate
18410
18411 \size small
18412 You should perhaps use 
18413 \begin_inset Quotes eld
18414 \end_inset
18415
18416
18417 \family typewriter
18418 cmd
18419 \family default
18420
18421 \begin_inset Quotes erd
18422 \end_inset
18423
18424  instead.
18425 \end_layout
18426
18427 \begin_layout Enumerate
18428
18429 \size small
18430 You should put a space in front of/after parenthesis.
18431 \end_layout
18432
18433 \begin_layout Enumerate
18434
18435 \size small
18436 You should avoid spaces in front of/after parenthesis.
18437 \end_layout
18438
18439 \begin_layout Enumerate
18440
18441 \size small
18442 \emph on
18443 You should not use punctuation in front of/after quotes.
18444 \end_layout
18445
18446 \begin_layout Enumerate
18447
18448 \size small
18449 Double space found.
18450 \end_layout
18451
18452 \begin_layout Enumerate
18453
18454 \size small
18455 You should put punctuation outside inner/inside display math mode.
18456 \end_layout
18457
18458 \begin_layout Enumerate
18459
18460 \size small
18461 You ought to not use primitive \SpecialChar TeX
18462  in \SpecialChar LaTeX
18463  code.
18464 \end_layout
18465
18466 \begin_layout Enumerate
18467
18468 \size small
18469 You should remove spaces in front of 
18470 \begin_inset Quotes eld
18471 \end_inset
18472
18473
18474 \family typewriter
18475 %s
18476 \family default
18477
18478 \begin_inset Quotes erd
18479 \end_inset
18480
18481
18482 \end_layout
18483
18484 \begin_layout Enumerate
18485
18486 \size small
18487 \begin_inset Quotes eld
18488 \end_inset
18489
18490
18491 \family typewriter
18492 %s
18493 \family default
18494
18495 \begin_inset Quotes erd
18496 \end_inset
18497
18498  is normally not followed by 
18499 \begin_inset Quotes eld
18500 \end_inset
18501
18502
18503 \family typewriter
18504 %c
18505 \family default
18506
18507 \begin_inset Quotes erd
18508 \end_inset
18509
18510 .
18511 \end_layout
18512
18513 \begin_layout Standard
18514 \SpecialChar LyX
18515 の将来の版では,このツール(およびその縮小版
18516 \family typewriter
18517 lacheck
18518 \family default
18519 )の力を最大限引き出すように,より完備したインターフェイスを提供できればと考えています.しかし,現状でも十分に役立つものとなっています.ある程度長さがある既存文
18520 書に使用してみていただければ,きっと驚かれることでしょう.
18521 \end_layout
18522
18523 \begin_layout Section
18524 \SpecialChar LyX
18525 でのバージョン管理
18526 \end_layout
18527
18528 \begin_layout Standard
18529
18530 \noun on
18531 Lars Bullik Bjønnes
18532 \noun default
18533 および
18534 \noun on
18535 Pavel Sanda
18536 \noun default
18537
18538 \end_layout
18539
18540 \begin_layout Subsection
18541 はじめに
18542 \end_layout
18543
18544 \begin_layout Standard
18545 \SpecialChar LyX
18546 は,今ではもっとも基本的なRCS/CVS/SVN/GITコマンドをサポートしています.もしもっと洗練されたことを行いたい場合には,ターミナル上から手動で行う必要
18547 があります.
18548 \end_layout
18549
18550 \begin_layout Standard
18551 また,CVSのサポートは,subversionのサポートほど良くないので,CVSよりもSVNを使うことをお勧めします.Subversionを学び始めるには,SV
18552 N Book
18553 \begin_inset Foot
18554 status collapsed
18555
18556 \begin_layout Plain Layout
18557 \begin_inset CommandInset href
18558 LatexCommand href
18559 target "http://svnbook.red-bean.com/"
18560 literal "false"
18561
18562 \end_inset
18563
18564
18565 \end_layout
18566
18567 \end_inset
18568
18569 が良いでしょう.RCSの場合は,「rsintro」をお読みください(これはmanファイルです.
18570 \family typewriter
18571 man rcsintro
18572 \family default
18573 で読めます).このファイルは,RCSの基本機能のすべてを説明しています.特に,RCSディレクトリに関するコメントと,マスターRCSファイル(
18574 \family typewriter
18575 ,v
18576 \family default
18577 で終わるファイルです)の概念に注意を払ってください.
18578 \end_layout
18579
18580 \begin_layout Standard
18581 \SpecialChar LyX
18582 で実際にバージョン管理機能を使い始める前に,RCS/CVS/SVN/GITの使用法に習熟しておかなくてはなりません.\SpecialChar LyX
18583 で\SpecialChar LyX
18584 への実装においては,GNU
18585  RCSまたはCVS/SVNパッケージの最新版を仮定しています.旧版への保証はありません.ログメッセージのほとんどは,現在のところ操作後には表示されません.確認
18586 したい場合には,メッセージ面で確かめてください.バージョン管理を常用するユーザーには,VCツールバーが便利でしょう.これは
18587 \family sans
18588 表示\SpecialChar menuseparator
18589 ツールバー\SpecialChar menuseparator
18590 バージョン管理
18591 \family default
18592 で有効にできます.
18593 \end_layout
18594
18595 \begin_layout Standard
18596 自製の外部コマンドを導入したい場合には,
18597 \emph on
18598 \SpecialChar LyX
18599 関数
18600 \emph default
18601 説明書の
18602 \begin_inset Flex Code
18603 status collapsed
18604
18605 \begin_layout Plain Layout
18606 vc-command
18607 \end_layout
18608
18609 \end_inset
18610
18611 を確認してください.
18612 \end_layout
18613
18614 \begin_layout Standard
18615 バージョン管理機能を使用している場合には,文書を非圧縮形式で保存をすることを強く推奨します(
18616 \family sans
18617 文書\SpecialChar menuseparator
18618 圧縮
18619 \family default
18620 にチェックが入っていれば外してください).非圧縮LyX文書はテキストファイルであるため,バージョン管理システムが,二つのバージョンをマージすることができます.一
18621 方,圧縮LyXファイルはバイナリファイルであるため,バージョン管理システムはマージすることができません.
18622 \end_layout
18623
18624 \begin_layout Subsection
18625 \SpecialChar LyX
18626 におけるRCSコマンド
18627 \end_layout
18628
18629 \begin_layout Standard
18630 以下の節では\SpecialChar LyX
18631 でサポートされているRCSコマンドを説明します.それらのコマンドは
18632 \family sans
18633 ファイル\SpecialChar menuseparator
18634 バージョン管理
18635 \family default
18636 のサブメニューにあります.\SpecialChar LyX
18637 は,RCS 5.7/5.8に対して試験されています.
18638 \end_layout
18639
18640 \begin_layout Subsubsection
18641
18642 \family sans
18643 登録
18644 \end_layout
18645
18646 \begin_layout Standard
18647 文書がバージョン管理の下にない場合には,これがメニューにあらわれる唯一の項目です.文書がバージョン管理下にあれば,項目
18648 \family sans
18649 登録
18650 \family default
18651 は不可視になります.
18652 \end_layout
18653
18654 \begin_layout Standard
18655 このコマンドは,文書をRCSに登録します(CVSが管理しているディレクトリ下にない場合).すると対話的に,文書の最初の説明を入力するように尋ねられます.すると文
18656 書は読み込み専用モードになるので,変更を加えるためには
18657 \family sans
18658 チェックアウトして編集
18659 \family default
18660 を実行する必要があります.バージョン管理下にある文書は,ミニバッファのファイル名の後ろに「 [RCS:<バージョン> <ロック>]」という項目が表示されます.
18661 \end_layout
18662
18663 \begin_layout Standard
18664 実行されるRCSコマンドは:
18665 \end_layout
18666
18667 \begin_layout LyX-Code
18668
18669 \family typewriter
18670 ci -q -u -i -t-"<初期説明文>" <ファイル名>
18671 \end_layout
18672
18673 \begin_layout Standard
18674 スイッチについて知りたい場合は,
18675 \family typewriter
18676 man ci
18677 \family default
18678 を読んでください.
18679 \end_layout
18680
18681 \begin_layout Subsubsection
18682
18683 \family sans
18684 変更をチェックインする
18685 \end_layout
18686
18687 \begin_layout Standard
18688 ファイルの編集が終わると,その変更をチェックインします.このとき,変更についての説明文を求められます.これは履歴ログに記録されます.バージョン番号は繰り上がり,
18689 変更がマスターRCSファイルに適用され,文書がアンロックされて読み込み専用モードになります.
18690 \end_layout
18691
18692 \begin_layout Itemize
18693 RCSコマンド:
18694 \family typewriter
18695 ci -q -u -m"<説明文>" <ファイル名>
18696 \end_layout
18697
18698 \begin_layout Subsubsection
18699
18700 \family sans
18701 チェックアウトして編集
18702 \end_layout
18703
18704 \begin_layout Standard
18705 これは,文書をロックして編集できるようにします.そしてあなただけが文書を読み書きできるようにします.通常は,しばらくの間,文書を編集し,それが終わると変更をチェ
18706 ックインします.あなたがファイルをロックしたことを反映して,ステータスラインが変わります.
18707 \end_layout
18708
18709 \begin_layout Itemize
18710 RCSコマンド:
18711 \family typewriter
18712 co -q -l <ファイル名>
18713 \end_layout
18714
18715 \begin_layout Subsubsection
18716
18717 \family sans
18718 リポジトリのバージョンに戻す
18719 \end_layout
18720
18721 \begin_layout Standard
18722 これは,最終チェックイン以降,文書に加えられた変更をすべて破棄します.変更が破棄される前に,警告が発せられます.
18723 \end_layout
18724
18725 \begin_layout Itemize
18726 RCSコマンド:
18727 \family typewriter
18728 co -f -u<バージョン> <ファイル名>
18729 \end_layout
18730
18731 \begin_layout Subsubsection
18732
18733 \family sans
18734 コピー
18735 \end_layout
18736
18737 \begin_layout Standard
18738 これは,現行文書のコピーを生成します.RCSは,コピー操作を自前ではサポートしませんので,バージョン履歴には保存されず,新コピーは新規ファイルとして追加されます
18739 .最後のチェックイン以降,変更が加えられていないサラの文書であることが要求されます.ファイル名とコピー操作の説明を入力するように促され,その後,新コピーがローカ
18740 ルとリポジトリの両方に生成されます.コピーされた文書と元の文書の親ディレクトリが異なる場合には,コピーにインクルードされたファイルの相対パスは,(
18741 \family sans
18742 ファイル\SpecialChar menuseparator
18743 名前をつけて保存\SpecialChar ldots
18744
18745 \family default
18746 と同様に)全て調整されます.最後に,元の文書の代わりに,コピーされたファイルが読み込まれます.
18747 \end_layout
18748
18749 \begin_layout Labeling
18750 \labelwidthstring 00.00.0000
18751 RCSコマンド: 
18752 \begin_inset space ~
18753 \end_inset
18754
18755
18756 \begin_inset Newline newline
18757 \end_inset
18758
18759
18760 \begin_inset Flex Code
18761 status collapsed
18762
18763 \begin_layout Plain Layout
18764 "ファイル名"
18765 \end_layout
18766
18767 \end_inset
18768
18769
18770 \begin_inset Flex Code
18771 status collapsed
18772
18773 \begin_layout Plain Layout
18774 "新ファイル名"
18775 \end_layout
18776
18777 \end_inset
18778
18779 にコピーする場合
18780 \begin_inset Newline newline
18781 \end_inset
18782
18783
18784 \begin_inset Flex Code
18785 status collapsed
18786
18787 \begin_layout Plain Layout
18788 ci -q -u -i "<新ファイル名>"
18789 \end_layout
18790
18791 \end_inset
18792
18793
18794 \end_layout
18795
18796 \begin_layout Subsubsection
18797
18798 \family sans
18799 最後のチェックインを取り消す
18800 \end_layout
18801
18802 \begin_layout Standard
18803 これは,最後のチェックインがあたかも為されなかったかのようにします.\SpecialChar LyX
18804 に読み込まれた文書に変更は加えられませんが,マスターRCSファイルから最後のバージョンが削除
18805 されます.
18806 \end_layout
18807
18808 \begin_layout Itemize
18809 RCSコマンド:
18810 \family typewriter
18811 rcs -o<バージョン> <ファイル名>
18812 \end_layout
18813
18814 \begin_layout Subsubsection
18815
18816 \family sans
18817 履歴を表示
18818 \end_layout
18819
18820 \begin_layout Standard
18821 RCS文書の完全な履歴を表示します.ブラウザ中に,
18822 \family typewriter
18823 rlog <ファイル名>
18824 \family default
18825 の出力が表示されます.詳細は
18826 \family typewriter
18827 man rlog
18828 \family default
18829 をご覧ください.
18830 \end_layout
18831
18832 \begin_layout Subsubsection
18833 改訂情報
18834 \end_layout
18835
18836 \begin_layout Standard
18837 \SpecialChar LyX
18838 は,RCSバージョン番号情報(のみ)をサポートしています.詳細については,
18839 \begin_inset CommandInset ref
18840 LatexCommand ref
18841 reference "subsec:VCS改訂情報"
18842
18843 \end_inset
18844
18845 を参照.
18846 \end_layout
18847
18848 \begin_layout Subsection
18849 \SpecialChar LyX
18850 におけるCVSコマンド
18851 \end_layout
18852
18853 \begin_layout Standard
18854 \SpecialChar LyX
18855 は,現在CVSを一部サポートしています.そのコマンドは,
18856 \family sans
18857 ファイル\SpecialChar menuseparator
18858 バージョン管理
18859 \family default
18860 サブメニューにあります.バージョン管理システムSVNの方が強力なので,可能ならばCVSではなく,SVNを使用してください.
18861 \end_layout
18862
18863 \begin_layout Subsubsection
18864 CVSの一般的な利用法
18865 \end_layout
18866
18867 \begin_layout Standard
18868 CVSを初めて使いたい場合には,外部ツールを使用して自分のレポジトリを作成し,作業コピーをチェックアウトする必要があります.クライアント=サーバーモデルを使用し
18869 ている場合には,最初のレポジトリチェックアウトを行う前にログインする必要があるかもしれません.
18870 \end_layout
18871
18872 \begin_layout Standard
18873 改訂管理下にある文書のレポジトリを他人も利用している場合に,同一文書の同一箇所に別々の変更を加えてしまうと問題が発生します.標準的なCVSレポジトリは,ファイル
18874 ロッキング機構を有しません.これは驚くべきことかもしれませんが,コンフリクトは,文書の同じ箇所の特定の内容について,人々が意見を異にしている場合にのみ発生します
18875 .したがって,共著者同士がコンスタントにコミュニケーションを交わしていれば,このようなコンフリクトは滅多に発生しません.もしコミュニケーションがなければ,いずれ
18876 にしても根本的な問題があるわけです.それにもかかわらず,いわゆる「予備付きチェックアウト」を使用したいと思う人々もいます.この場合,最初にチェックアウトした際に
18877 ,全ファイルの作業コピーは読み込み専用にされ,ユーザーは,作業コピーを書き込み可能にする特別なコマンドを使用した後,編集を開始することになります.変更をチェック
18878 インすると,作業コピーは読み込み専用状態に戻ります.\SpecialChar LyX
18879 で予備付きチェックアウトを利用したい場合には,
18880 \begin_inset Flex Code
18881 status collapsed
18882
18883 \begin_layout Plain Layout
18884 .cvsrc
18885 \end_layout
18886
18887 \end_inset
18888
18889 ファイルを編集して,
18890 \begin_inset Flex Code
18891 status collapsed
18892
18893 \begin_layout Plain Layout
18894 cvs -r
18895 \end_layout
18896
18897 \end_inset
18898
18899 という行を書き加える必要があります.この方法の利点は,文書のうち,書き込み可能コピーを誰が使用しているかを見ることができることです.ただし,一人のユーザーだけが
18900 コピーを書き込み可能にしているとは限りません.
18901 \end_layout
18902
18903 \begin_layout Standard
18904 \SpecialChar LyX
18905 は,あなたが予備付きチェックアウトを使用しているか,予備なしチェックアウトを利用しているか,推測しようと試みます.使用中の作業コピーが読み込み専用になっているか
18906 ,あるいはそれが書き込み可能であって,CVS/Baseサブディレクトリに使用中文書のコピーが存在している場合には,予備付きチェックアウトを使用しているものと仮定
18907 し,そうでない場合には予備なしチェックアウトを使用しているものと仮定します.予備付きチェックアウトが検出された場合には,作業コピーが読み込み専用の場合に書き込み
18908 可能にするためには,
18909 \begin_inset Flex MenuItem
18910 status collapsed
18911
18912 \begin_layout Plain Layout
18913 チェックアウト
18914 \end_layout
18915
18916 \end_inset
18917
18918 メニューを使用しなくてはなりません.その後,
18919 \begin_inset Flex MenuItem
18920 status collapsed
18921
18922 \begin_layout Plain Layout
18923 チェックイン
18924 \end_layout
18925
18926 \end_inset
18927
18928 メニューが利用可能になるので,自分が加えた変更をリポジトリに移した後,作業コピーを再び読み込み専用にする際には,これを使用します.
18929 \end_layout
18930
18931 \begin_layout Standard
18932 CVSの詳細な情報は,
18933 \begin_inset Flex URL
18934 status collapsed
18935
18936 \begin_layout Plain Layout
18937
18938 http://www.nongnu.org/cvs
18939 \end_layout
18940
18941 \end_inset
18942
18943
18944 \begin_inset Flex URL
18945 status collapsed
18946
18947 \begin_layout Plain Layout
18948
18949 http://ximbiot.com/cvs
18950 \end_layout
18951
18952 \end_inset
18953
18954 にあります.
18955 \end_layout
18956
18957 \begin_layout Standard
18958 以下に言及するサブコマンドとスイッチを理解するには,
18959 \family typewriter
18960 man cvs
18961 \family default
18962 をお読みください.
18963 \end_layout
18964
18965 \begin_layout Subsubsection
18966 登録
18967 \end_layout
18968
18969 \begin_layout Standard
18970 お使いの文書が改訂管理下に置かれていなければ,メニューにはこの項目だけが表示されます.もし改訂管理が有効ならば,
18971 \family sans
18972 登録
18973 \family default
18974 項目は表示されません.
18975 \end_layout
18976
18977 \begin_layout Standard
18978 本コマンドは,既に文書ディレクトリをCVS管理下に置いている場合に
18979 \series bold
18980 \emph on
18981 のみ
18982 \series default
18983 \emph default
18984 (すなわち
18985 \begin_inset Flex Code
18986 status collapsed
18987
18988 \begin_layout Plain Layout
18989 CVS/Entries
18990 \end_layout
18991
18992 \end_inset
18993
18994 ファイルが存在する場合にのみ),お使いの文書をCVSに登録します.つまり,外部ツールを使用して,アーカイブを自分で作成ないしチェックアウトしなくてはならないこと
18995 を意味します(このステップを忘れてしまうと,\SpecialChar LyX
18996 は文書をRCSに登録します).
18997 \end_layout
18998
18999 \begin_layout Standard
19000 すると,文書の最初の説明文を入力するように促されます.登録したファイルは,まだチェックインされたわけではないことに注意してください.
19001 \end_layout
19002
19003 \begin_layout Standard
19004 実行されるCVSコマンドは,
19005 \family typewriter
19006 cvs -q add -m"<入力した説明文>" "<ファイル名>"
19007 \family default
19008  です.
19009 \end_layout
19010
19011 \begin_layout Standard
19012 上記および他のすべてのCVSコマンドにおける
19013 \family typewriter
19014 "<ファイル名>"
19015 \family default
19016 は,「カレント作業ディレクトリをファイルの場所に移動し,パスコンポーネントを除いたファイル名を引数として使用する」という意味になります.
19017 \end_layout
19018
19019 \begin_layout Subsubsection
19020 変更のチェックイン
19021 \end_layout
19022
19023 \begin_layout Standard
19024 ファイルの編集を終えたら,変更をコミットします.このとき,文書に変更が加えられていれば,変更の説明文を入れるよう促されます.その後,変更がレポジトリに書き込まれ
19025 ます.文書を変更せず,予備付きチェックアウトが検出された場合,
19026 \begin_inset Flex MenuItem
19027 status collapsed
19028
19029 \begin_layout Plain Layout
19030 チェックアウト
19031 \end_layout
19032
19033 \end_inset
19034
19035 で作られた予備は取り消されます.
19036 \end_layout
19037
19038 \begin_layout Labeling
19039 \labelwidthstring 00.00.0000
19040 CVSコマンド: 
19041 \begin_inset space ~
19042 \end_inset
19043
19044
19045 \begin_inset Newline newline
19046 \end_inset
19047
19048
19049 \begin_inset Flex Code
19050 status collapsed
19051
19052 \begin_layout Plain Layout
19053 cvs -q commit -m"<入力した説明文>" "<ファイル名>"
19054 \end_layout
19055
19056 \end_inset
19057
19058 あるいは
19059 \begin_inset Newline newline
19060 \end_inset
19061
19062
19063 \begin_inset Flex Code
19064 status collapsed
19065
19066 \begin_layout Plain Layout
19067 cvs -q unedit "<ファイル名>"
19068 \end_layout
19069
19070 \end_inset
19071
19072
19073 \end_layout
19074
19075 \begin_layout Subsubsection
19076 変更のチェックアウト
19077 \end_layout
19078
19079 \begin_layout Standard
19080 レポジトリを他人と共有している場合,他人の加えた変更を自らの作業コピーに取り込まなくてはならないことがあります.
19081 \end_layout
19082
19083 \begin_layout Standard
19084 CVSコマンド:
19085 \family typewriter
19086 cvs -q update "<ファイル名>"
19087 \end_layout
19088
19089 \begin_layout Standard
19090 読み込み専用チェックアウトが検出された場合,作業コピーを書き込み可能にし予備を作成します.
19091 \end_layout
19092
19093 \begin_layout Standard
19094 CVSコマンド:
19095 \family typewriter
19096 cvs -q edit "<ファイル名>"
19097 \end_layout
19098
19099 \begin_layout Subsubsection
19100 レポジトリ版に戻す
19101 \end_layout
19102
19103 \begin_layout Standard
19104 これは,最後のチェックイン以降,文書に加えられた変更をすべて廃棄します.変更が廃棄される前に警告が表示されます.最初にファイルが削除され,次にCVS更新コマンド
19105 が実行されます.
19106 \end_layout
19107
19108 \begin_layout Standard
19109 CVSコマンド:
19110 \family typewriter
19111 cvs -q update "<ファイル名>"
19112 \end_layout
19113
19114 \begin_layout Standard
19115 予備付きチェックアウトが検出され,作業コピーに変更がない場合,予備のみが取り消されます.
19116 \end_layout
19117
19118 \begin_layout Standard
19119 CVSコマンド:
19120 \family typewriter
19121 cvs -q unedit "<ファイル名>"
19122 \end_layout
19123
19124 \begin_layout Subsubsection
19125
19126 \family sans
19127 コピー
19128 \end_layout
19129
19130 \begin_layout Standard
19131 これは,現行文書のコピーを生成します.CVSは,コピー操作を自前ではサポートしませんので,バージョン履歴には保存されず,新コピーは新規ファイルとして追加されます
19132 .最後のチェックイン以降,変更が加えられていないサラの文書であることが要求されます.ファイル名とコピー操作の説明を入力するように促され,その後,新コピーがローカ
19133 ルとリポジトリの両方に生成されます.コピーされた文書と元の文書の親ディレクトリが異なる場合には,コピーにインクルードされたファイルの相対パスは,(
19134 \family sans
19135 ファイル\SpecialChar menuseparator
19136 名前をつけて保存\SpecialChar ldots
19137
19138 \family default
19139 と同様に)全て調整されます.最後に,元の文書の代わりに,コピーされたファイルが読み込まれます.
19140 \end_layout
19141
19142 \begin_layout Labeling
19143 \labelwidthstring 00.00.0000
19144 CVSコマンド: 
19145 \begin_inset space ~
19146 \end_inset
19147
19148
19149 \begin_inset Newline newline
19150 \end_inset
19151
19152
19153 \begin_inset Flex Code
19154 status collapsed
19155
19156 \begin_layout Plain Layout
19157 "<ファイル名>"
19158 \end_layout
19159
19160 \end_inset
19161
19162
19163 \begin_inset Flex Code
19164 status collapsed
19165
19166 \begin_layout Plain Layout
19167 "<新ファイル名>"
19168 \end_layout
19169
19170 \end_inset
19171
19172 にコピーする場合
19173 \begin_inset Newline newline
19174 \end_inset
19175
19176
19177 \begin_inset Flex Code
19178 status collapsed
19179
19180 \begin_layout Plain Layout
19181 cvs -q add "<新ファイル名>"
19182 \end_layout
19183
19184 \end_inset
19185
19186
19187 \end_layout
19188
19189 \begin_layout Subsubsection
19190 ファイル名変更
19191 \end_layout
19192
19193 \begin_layout Standard
19194 これは,現行文書のファイル名を変更します.CVSは,ファイル名変更操作を自前ではサポートしませんので,バージョン履歴には保存されず,名称変更後のファイルは,新規
19195 ファイルとして追加されます.最後のチェックイン以降,変更が加えられていないサラの文書であることが要求されます.ファイル名とコピー操作の説明を入力するように促され
19196 ,その後,ローカルとリポジトリの両方でファイル名が変更されます.新旧ファイル名の文書の親ディレクトリが異なる場合には,コピーにインクルードされたファイルの相対パ
19197 スは,(
19198 \family sans
19199 ファイル\SpecialChar menuseparator
19200 名前をつけて保存\SpecialChar ldots
19201
19202 \family default
19203 と同様に)全て調整されます.最後に,新ファイル名を使ってファイルが再度読み込まれます.
19204 \end_layout
19205
19206 \begin_layout Labeling
19207 \labelwidthstring 00.00.0000
19208 CVSコマンド: 
19209 \begin_inset space ~
19210 \end_inset
19211
19212
19213 \begin_inset Newline newline
19214 \end_inset
19215
19216
19217 \begin_inset Flex Code
19218 status collapsed
19219
19220 \begin_layout Plain Layout
19221 "<ファイル名>"
19222 \end_layout
19223
19224 \end_inset
19225
19226
19227 \begin_inset Flex Code
19228 status collapsed
19229
19230 \begin_layout Plain Layout
19231 "<新ファイル名>"
19232 \end_layout
19233
19234 \end_inset
19235
19236 に変更する場合 
19237 \begin_inset space ~
19238 \end_inset
19239
19240
19241 \begin_inset Newline newline
19242 \end_inset
19243
19244
19245 \begin_inset Flex Code
19246 status collapsed
19247
19248 \begin_layout Plain Layout
19249 cvs -q add "<新ファイル名>"
19250 \end_layout
19251
19252 \end_inset
19253
19254  
19255 \begin_inset space ~
19256 \end_inset
19257
19258
19259 \begin_inset Newline newline
19260 \end_inset
19261
19262
19263 \begin_inset Flex Code
19264 status collapsed
19265
19266 \begin_layout Plain Layout
19267 cvs -q remove "<ファイル名>"
19268 \end_layout
19269
19270 \end_inset
19271
19272
19273 \end_layout
19274
19275 \begin_layout Subsubsection
19276 ローカルディレクトリチェックアウトのレポジトリからの更新
19277 \end_layout
19278
19279 \begin_layout Standard
19280 子文書や図を含んだり,外部
19281 \begin_inset Flex Code
19282 status collapsed
19283
19284 \begin_layout Plain Layout
19285 .tex
19286 \end_layout
19287
19288 \end_inset
19289
19290 ファイルを取り込むなど,文書が複雑になるにつれ,バージョン管理の利用は複雑になります.\SpecialChar LyX
19291 は,文書が存在するツリー全体の更新をサポートします.これは,CVSの使用法
19292 について詳しい知識のない人々や,レポジトリに追加素材をコミットする野望のない人々と共同作業をするような場合に,特に便利です.ファイル構造は,すべての外部ファイル
19293 が,文書と同じディレクトリかそのサブディレクトリに来るように組織する必要があります.いずれにしても,複合文書を新しいディレクトリを建てて収容するのは,望ましい習
19294 慣です.
19295 \end_layout
19296
19297 \begin_layout Standard
19298 コマンド
19299 \begin_inset Flex Code
19300 status collapsed
19301
19302 \begin_layout Plain Layout
19303 レポジトリを使ってローカル辞書を更新
19304 \end_layout
19305
19306 \end_inset
19307
19308 は,ディレクトリ全体を更新します.ローカルの変更が検出された場合には,更新を開始する前にユーザーに警告が発せられます.マージコンフリクトが発生した場合には,コン
19309 フリクトを起こしている部分の新旧バージョンが,両方とも最終文書に置かれますので,マージの結果を見直し,修正する必要があります.コンフリクトは,
19310 \begin_inset Flex Code
19311 status collapsed
19312
19313 \begin_layout Plain Layout
19314 <<<<<<<
19315 \end_layout
19316
19317 \end_inset
19318
19319
19320 \begin_inset Flex Code
19321 status collapsed
19322
19323 \begin_layout Plain Layout
19324 >>>>>>>
19325 \end_layout
19326
19327 \end_inset
19328
19329 の対に囲まれ,
19330 \begin_inset Flex Code
19331 status collapsed
19332
19333 \begin_layout Plain Layout
19334 =======
19335 \end_layout
19336
19337 \end_inset
19338
19339 で区切られて表示されます.最初の部分は,文書名に続いて,更新操作前のバージョンが置かれています.第2の部分は,
19340 \begin_inset Flex Code
19341 status collapsed
19342
19343 \begin_layout Plain Layout
19344 >
19345 \end_layout
19346
19347 \end_inset
19348
19349 記号列の後にバージョン番号に続いて,レポジトリ版が置かれます.
19350 \end_layout
19351
19352 \begin_layout Labeling
19353 \labelwidthstring 00.00.0000
19354 CVSコマンド: 
19355 \begin_inset space ~
19356 \end_inset
19357
19358
19359 \begin_inset Newline newline
19360 \end_inset
19361
19362
19363 \begin_inset Flex Code
19364 status collapsed
19365
19366 \begin_layout Plain Layout
19367 cd $path; cvs diff "."
19368 \end_layout
19369
19370 \end_inset
19371
19372 (変更が検出された場合には知らせる)
19373 \begin_inset Newline newline
19374 \end_inset
19375
19376
19377 \begin_inset Flex Code
19378 status collapsed
19379
19380 \begin_layout Plain Layout
19381 cd $path; cvs -q update "."
19382 \end_layout
19383
19384 \end_inset
19385
19386
19387 \end_layout
19388
19389 \begin_layout Standard
19390 ここで
19391 \begin_inset Flex Code
19392 status collapsed
19393
19394 \begin_layout Plain Layout
19395 $path
19396 \end_layout
19397
19398 \end_inset
19399
19400 は文書パスを表します.
19401 \end_layout
19402
19403 \begin_layout Subsubsection
19404 履歴を表示
19405 \end_layout
19406
19407 \begin_layout Standard
19408 これは,CVS文書の全履歴を表示します.
19409 \begin_inset Flex Code
19410 status collapsed
19411
19412 \begin_layout Plain Layout
19413 cvs log 
19414 \begin_inset Quotes eld
19415 \end_inset
19416
19417 <ファイル名>
19418 \begin_inset Quotes erd
19419 \end_inset
19420
19421
19422 \end_layout
19423
19424 \end_inset
19425
19426 の出力がブラウザに表示されます.
19427 \end_layout
19428
19429 \begin_layout Subsubsection
19430 改訂情報
19431 \end_layout
19432
19433 \begin_layout Standard
19434 \SpecialChar LyX
19435 は,CVS版数・著者名・最終コミットの日時をサポートします.これらの情報は,すべて
19436 \family typewriter
19437 cvs log -r <ファイル名>
19438 \family default
19439 によって抽出されます.詳細については,第
19440 \begin_inset CommandInset ref
19441 LatexCommand ref
19442 reference "subsec:VCS改訂情報"
19443
19444 \end_inset
19445
19446 節を参照してください.
19447 \end_layout
19448
19449 \begin_layout Subsection
19450 \SpecialChar LyX
19451 におけるSVNコマンド
19452 \end_layout
19453
19454 \begin_layout Standard
19455 \SpecialChar LyX
19456 は,現在SVNを一部サポートしています.そのコマンドは,
19457 \begin_inset Flex MenuItem
19458 status collapsed
19459
19460 \begin_layout Plain Layout
19461 ファイル\SpecialChar menuseparator
19462 バージョン管理
19463 \end_layout
19464
19465 \end_inset
19466
19467 メニューにあります.レポジトリへのアクセスに,ssh経由のパスワード保護アクセスを使用している場合には,端末ウィンドウでの入力を促されます.\SpecialChar LyX
19468 は,SVN
19469  1.5・1.6・1.7・1.8に対して試験されています
19470 \begin_inset Foot
19471 status collapsed
19472
19473 \begin_layout Plain Layout
19474 ほとんどのコマンドは,1.4でも動作します.
19475 \begin_inset CommandInset ref
19476 LatexCommand ref
19477 reference "subsec:レポジトリからSVN同期"
19478 plural "false"
19479 caps "false"
19480 noprefix "false"
19481
19482 \end_inset
19483
19484 を参照してください.SVN 1.8では,ファイルがロックされている時にパーミッション変更点を戻してしまうという現時点では未解決の問題が存在しています.
19485 \end_layout
19486
19487 \end_inset
19488
19489
19490 \end_layout
19491
19492 \begin_layout Subsubsection
19493 登録
19494 \end_layout
19495
19496 \begin_layout Standard
19497 お使いの文書が改訂管理下に置かれていなければ,メニューにはこの項目だけが表示されます.もし改訂管理が有効ならば,
19498 \family sans
19499 登録
19500 \family default
19501 項目は表示されません.
19502 \end_layout
19503
19504 \begin_layout Standard
19505 本コマンドは,既に文書のあるディレクトリをSVN管理下に置いている場合に
19506 \emph on
19507 のみ
19508 \emph default
19509 (すなわち
19510 \begin_inset Flex Code
19511 status collapsed
19512
19513 \begin_layout Plain Layout
19514 .svn/entries
19515 \end_layout
19516
19517 \end_inset
19518
19519 ファイルが存在する場合にのみ),お使いの文書をSVNに登録します.つまり,アーカイブはご自分でチェックアウトしなくてはなりません.
19520 \end_layout
19521
19522 \begin_layout Standard
19523 すると,文書の最初の説明文を入力するように促されます.登録したファイルは,まだコミットされたわけではないことに注意してください.
19524 \end_layout
19525
19526 \begin_layout Standard
19527 実行されるSVNコマンドは,
19528 \begin_inset Flex Code
19529 status collapsed
19530
19531 \begin_layout Plain Layout
19532 svn add -q 
19533 \begin_inset Quotes qld
19534 \end_inset
19535
19536 <ファイル名>
19537 \begin_inset Quotes qld
19538 \end_inset
19539
19540
19541 \end_layout
19542
19543 \end_inset
19544
19545 です.
19546 \end_layout
19547
19548 \begin_layout Standard
19549 スイッチの説明は
19550 \begin_inset Flex Code
19551 status collapsed
19552
19553 \begin_layout Plain Layout
19554 man svn
19555 \end_layout
19556
19557 \end_inset
19558
19559 をお読みください.
19560 \end_layout
19561
19562 \begin_layout Subsubsection
19563 変更をチェックイン
19564 \end_layout
19565
19566 \begin_layout Standard
19567 ファイルの編集を終えたら,変更をコミットします.このとき,変更の説明文を入れるよう促されます.その後,変更がコミットされます.
19568 \end_layout
19569
19570 \begin_layout Standard
19571 SVNコマンド
19572 \begin_inset Foot
19573 status collapsed
19574
19575 \begin_layout Plain Layout
19576 ロックが有効になっていない場合です.第
19577 \begin_inset CommandInset ref
19578 LatexCommand ref
19579 reference "subsec:SVNファイルロック"
19580
19581 \end_inset
19582
19583 節をご覧ください.
19584 \end_layout
19585
19586 \end_inset
19587
19588
19589 \begin_inset Flex Code
19590 status collapsed
19591
19592 \begin_layout Plain Layout
19593 svn commit -q -m"<入力した説明文>" "<ファイル名>"
19594 \end_layout
19595
19596 \end_inset
19597
19598
19599 \end_layout
19600
19601 \begin_layout Subsubsection
19602 チェックアウトして編集
19603 \end_layout
19604
19605 \begin_layout Standard
19606 このファイルの変更点をレポジトリから取得して更新します.すべての干渉点は,手動で解決しなくてはならないので,この機能を使う前にSVNのマージ法と干渉解決法を理解
19607 しておくようにしてください.
19608 \end_layout
19609
19610 \begin_layout Standard
19611 SVNコマンド
19612 \begin_inset Foot
19613 status collapsed
19614
19615 \begin_layout Plain Layout
19616 同上.
19617 \end_layout
19618
19619 \end_inset
19620
19621
19622 \begin_inset Flex Code
19623 status collapsed
19624
19625 \begin_layout Plain Layout
19626 svn update –non-interactive 
19627 \begin_inset Quotes qld
19628 \end_inset
19629
19630 <ファイル名>
19631 \begin_inset Quotes qld
19632 \end_inset
19633
19634
19635 \end_layout
19636
19637 \end_inset
19638
19639
19640 \end_layout
19641
19642 \begin_layout Subsubsection
19643 リポジトリ版に戻す
19644 \end_layout
19645
19646 \begin_layout Standard
19647 これは,最後のチェックイン以降,文書に加えられた変更をすべて廃棄します.変更が廃棄される前に警告が表示されます.
19648 \end_layout
19649
19650 \begin_layout Standard
19651 SVNコマンド:
19652 \begin_inset Flex Code
19653 status collapsed
19654
19655 \begin_layout Plain Layout
19656 svn revert -q 
19657 \begin_inset Quotes qld
19658 \end_inset
19659
19660 <ファイル名>
19661 \begin_inset Quotes qld
19662 \end_inset
19663
19664
19665 \end_layout
19666
19667 \end_inset
19668
19669
19670 \end_layout
19671
19672 \begin_layout Subsubsection
19673
19674 \family sans
19675 コピー
19676 \end_layout
19677
19678 \begin_layout Standard
19679 これは,現行文書のコピーを生成します.最後のチェックイン以降,変更が加えられていないサラの文書であることが要求されます.ファイル名とコピー操作の説明を入力するよ
19680 うに促され,その後,新コピーがローカルとリポジトリの両方に生成されます.コピーされた文書と元の文書の親ディレクトリが異なる場合には,コピーにインクルードされたフ
19681 ァイルの相対パスは,(
19682 \family sans
19683 ファイル\SpecialChar menuseparator
19684 名前をつけて保存\SpecialChar ldots
19685
19686 \family default
19687 と同様に)全て調整されます.最後に,元の文書の代わりに,コピーされたファイルが読み込まれます.
19688 \end_layout
19689
19690 \begin_layout Labeling
19691 \labelwidthstring 00.00.0000
19692 SVNコマンド: 
19693 \begin_inset space ~
19694 \end_inset
19695
19696
19697 \begin_inset Newline newline
19698 \end_inset
19699
19700
19701 \begin_inset Flex Code
19702 status collapsed
19703
19704 \begin_layout Plain Layout
19705 svn copy -q "<ファイル名>" "<新ファイル名>"
19706 \end_layout
19707
19708 \end_inset
19709
19710
19711 \begin_inset space ~
19712 \end_inset
19713
19714
19715 \begin_inset Newline newline
19716 \end_inset
19717
19718
19719 \begin_inset Flex Code
19720 status collapsed
19721
19722 \begin_layout Plain Layout
19723 svn commit
19724 \end_layout
19725
19726 \end_inset
19727
19728
19729 \end_layout
19730
19731 \begin_layout Subsubsection
19732 ファイル名変更
19733 \end_layout
19734
19735 \begin_layout Standard
19736 これは,現行文書のファイル名を変更します.最後のチェックイン以降,変更が加えられていないサラの文書であることが要求されます.ファイル名とコピー操作の説明を入力す
19737 るように促され,その後,ローカルとリポジトリの両方でファイル名が変更されます.新旧ファイル名の文書の親ディレクトリが異なる場合には,コピーにインクルードされたフ
19738 ァイルの相対パスは,(
19739 \family sans
19740 ファイル\SpecialChar menuseparator
19741 名前をつけて保存\SpecialChar ldots
19742
19743 \family default
19744 と同様に)全て調整されます.最後に,新ファイル名を使ってファイルが再度読み込まれます.
19745 \end_layout
19746
19747 \begin_layout Labeling
19748 \labelwidthstring 00.00.0000
19749 SVNコマンド: 
19750 \begin_inset space ~
19751 \end_inset
19752
19753
19754 \begin_inset Newline newline
19755 \end_inset
19756
19757
19758 \begin_inset Flex Code
19759 status collapsed
19760
19761 \begin_layout Plain Layout
19762 svn move -q add "<ファイル名>" "<新ファイル名>"
19763 \end_layout
19764
19765 \end_inset
19766
19767
19768 \begin_inset Newline newline
19769 \end_inset
19770
19771
19772 \begin_inset Flex Code
19773 status collapsed
19774
19775 \begin_layout Plain Layout
19776 svn commit
19777 \end_layout
19778
19779 \end_inset
19780
19781
19782 \end_layout
19783
19784 \begin_layout Subsubsection
19785 \begin_inset CommandInset label
19786 LatexCommand label
19787 name "subsec:レポジトリからSVN同期"
19788
19789 \end_inset
19790
19791 レポジトリを使ったローカルディレクトリの同期
19792 \begin_inset Foot
19793 status collapsed
19794
19795 \begin_layout Plain Layout
19796 このコマンドは,subversion 
19797 \begin_inset Formula $\geqq1.5$
19798 \end_inset
19799
19800 でのみ動作することに注意してください.
19801 \end_layout
19802
19803 \end_inset
19804
19805
19806 \end_layout
19807
19808 \begin_layout Standard
19809 上記の各コマンドはすべて,共通の短所を持っています.すなわち,これらのコマンドは現在の文書しか取り扱わないのです.もし,作業中の文書に図を含めたり,外部
19810 \begin_inset Flex Code
19811 status collapsed
19812
19813 \begin_layout Plain Layout
19814 .tex
19815 \end_layout
19816
19817 \end_inset
19818
19819 ファイルを取り込んだりすれば,管理はずっと複雑になります.そこで\SpecialChar LyX
19820 は,文書のおいてあるツリー全体の更新をサポートします
19821 \begin_inset Foot
19822 status collapsed
19823
19824 \begin_layout Plain Layout
19825 すべての外部ファイルが,文書と同じディレクトリかそれ以下のサブディレクトリに来るようにファイル構造を構成する必要があります.
19826 \end_layout
19827
19828 \end_inset
19829
19830 .これは,subversion管理を知らなかったりレポジトリに新しい素材をコミットする勇気のない人たちと共同作業をする羽目になったときに,ひじょうに役に立ちます
19831
19832 \end_layout
19833
19834 \begin_layout Standard
19835 \begin_inset Flex Code
19836 status collapsed
19837
19838 \begin_layout Plain Layout
19839 ローカル辞書をレポジトリを使って更新
19840 \end_layout
19841
19842 \end_inset
19843
19844 コマンドは,ディレクトリ全体を更新し,マージに衝突が発生した場合には,ローカル版は保存されるので,意図しないデータロスが発生しません.ローカルな変更が発見された
19845 場合には,更新が開始される前にユーザに警告が与えられます.
19846 \end_layout
19847
19848 \begin_layout Labeling
19849 \labelwidthstring 00.00.0000
19850 SVNコマンド: 
19851 \begin_inset space ~
19852 \end_inset
19853
19854
19855 \begin_inset Newline newline
19856 \end_inset
19857
19858
19859 \begin_inset Flex Code
19860 status collapsed
19861
19862 \begin_layout Plain Layout
19863 svn diff $path(変更が発見された場合には通知します)
19864 \begin_inset Newline newline
19865 \end_inset
19866
19867 svn update –accept mine-full $path
19868 \end_layout
19869
19870 \end_inset
19871
19872
19873 \end_layout
19874
19875 \begin_layout Standard
19876 ここで
19877 \begin_inset Flex Code
19878 status collapsed
19879
19880 \begin_layout Plain Layout
19881 $path
19882 \end_layout
19883
19884 \end_inset
19885
19886 は文書のパスを示します.
19887 \end_layout
19888
19889 \begin_layout Subsubsection
19890 履歴を表示
19891 \end_layout
19892
19893 \begin_layout Standard
19894 これは,SVN文書の全履歴を表示します.
19895 \begin_inset Flex Code
19896 status collapsed
19897
19898 \begin_layout Plain Layout
19899 svn log 
19900 \begin_inset Quotes qld
19901 \end_inset
19902
19903 <ファイル名>
19904 \begin_inset Quotes qld
19905 \end_inset
19906
19907
19908 \end_layout
19909
19910 \end_inset
19911
19912 の出力がブラウザに表示されます.
19913 \end_layout
19914
19915 \begin_layout Subsubsection
19916 ファイルロック
19917 \begin_inset CommandInset label
19918 LatexCommand label
19919 name "subsec:SVNファイルロック"
19920
19921 \end_inset
19922
19923
19924 \end_layout
19925
19926 \begin_layout Standard
19927 別々の改訂管理システム間でファイルを交換しようとすると,二人のユーザが同じ文書(の一部)を編集している場合,マージが衝突する問題を引き起こします.そのような衝突
19928 が発生した場合,手動で解決しなくてはならなくなりますが,その合理的な解決法としては,与えられた時間に一人のユーザだけがファイルを編集することが許されるように保証
19929 するための,何らかのロック機構を導入することが考えられます.
19930 \end_layout
19931
19932 \begin_layout Standard
19933 SVNには,このように相互に排他的なファイルアクセスを提供する機構が二つあります.ロックと,
19934 \begin_inset Flex Code
19935 status collapsed
19936
19937 \begin_layout Plain Layout
19938 svn:needs-lock
19939 \end_layout
19940
19941 \end_inset
19942
19943 svnファイル特性に依拠した書き込み権限の自動設定(第
19944 \begin_inset CommandInset ref
19945 LatexCommand ref
19946 reference "subsec:自動ロック特性"
19947
19948 \end_inset
19949
19950 節を参照)です
19951 \begin_inset Foot
19952 status collapsed
19953
19954 \begin_layout Plain Layout
19955 \begin_inset Flex URL
19956 status open
19957
19958 \begin_layout Plain Layout
19959
19960 http://svnbook.red-bean.com/en/1.2/svn.advanced.locking.html
19961 \end_layout
19962
19963 \end_inset
19964
19965
19966 \end_layout
19967
19968 \end_inset
19969
19970 .ある文書について,この特性が検出されたときには,\SpecialChar LyX
19971 は自動的に文書編集にSVNロックを使用するようになり,チェックイン・チェックアウト機構はRCSと同じ枠組みに切
19972 り替わります.これは特に,\SpecialChar LyX
19973 でのファイルの使われ方に以下の二つのモードがあることを意味します.
19974 \end_layout
19975
19976 \begin_layout Itemize
19977 非ロック状態.読み込まれたファイルは,読み込み専用モードになります.編集するためには,チェックアウトする必要があります.
19978 \emph on
19979 チェックアウト
19980 \emph default
19981 を行うと,レポジトリからの更新と,書き込みロックの獲得が行われます.ロックの獲得ができないと,非ロック状態から出ることができません.
19982 \end_layout
19983
19984 \begin_layout Itemize
19985 ロック状態.読み込まれたファイルは,「通常の」編集モードになります.他のユーザには,このファイルを編集する許可が与えられません.
19986 \emph on
19987 チェックイン
19988 \emph default
19989 を行うと,変更のコミットと書き込みロックの解放が行われます.文書に変更が加えられなかった場合には,コミットは実行されず
19990 \begin_inset Foot
19991 status collapsed
19992
19993 \begin_layout Plain Layout
19994 コミットは実行されないのに,コミットメッセージを入力するよう促されますが,驚かないでください.
19995 \end_layout
19996
19997 \end_inset
19998
19999 ,書き込みロックの解放のみが行われます.
20000 \end_layout
20001
20002 \begin_layout Standard
20003 SVNコマンド:
20004 \end_layout
20005
20006 \begin_layout Labeling
20007 \labelwidthstring 00.00.0000
20008 チェックイン: 
20009 \begin_inset Flex Code
20010 status collapsed
20011
20012 \begin_layout Plain Layout
20013 svn commit -q -m
20014 \begin_inset Quotes erd
20015 \end_inset
20016
20017 <説明>
20018 \begin_inset Quotes erd
20019 \end_inset
20020
20021  
20022 \begin_inset Quotes eld
20023 \end_inset
20024
20025 <ファイル名>
20026 \begin_inset Quotes erd
20027 \end_inset
20028
20029
20030 \end_layout
20031
20032 \end_inset
20033
20034
20035 \begin_inset Newline newline
20036 \end_inset
20037
20038
20039 \begin_inset Flex Code
20040 status collapsed
20041
20042 \begin_layout Plain Layout
20043 svn unlock 
20044 \begin_inset Quotes eld
20045 \end_inset
20046
20047 <ファイル名>
20048 \begin_inset Quotes erd
20049 \end_inset
20050
20051
20052 \end_layout
20053
20054 \end_inset
20055
20056
20057 \end_layout
20058
20059 \begin_layout Labeling
20060 \labelwidthstring 00.00.0000
20061 チェックアウト: 
20062 \begin_inset Flex Code
20063 status collapsed
20064
20065 \begin_layout Plain Layout
20066 svn update 
20067 \begin_inset Quotes eld
20068 \end_inset
20069
20070 <ファイル名>
20071 \begin_inset Quotes erd
20072 \end_inset
20073
20074
20075 \end_layout
20076
20077 \end_inset
20078
20079
20080 \begin_inset Newline newline
20081 \end_inset
20082
20083
20084 \begin_inset Flex Code
20085 status collapsed
20086
20087 \begin_layout Plain Layout
20088 svn unlock 
20089 \begin_inset Quotes eld
20090 \end_inset
20091
20092 <ファイル名>
20093 \begin_inset Quotes erd
20094 \end_inset
20095
20096
20097 \end_layout
20098
20099 \end_inset
20100
20101
20102 \end_layout
20103
20104 \begin_layout Subsubsection
20105 自動ロック特性
20106 \begin_inset CommandInset label
20107 LatexCommand label
20108 name "subsec:自動ロック特性"
20109
20110 \end_inset
20111
20112
20113 \end_layout
20114
20115 \begin_layout Standard
20116 上述したような
20117 \begin_inset Flex Code
20118 status collapsed
20119
20120 \begin_layout Plain Layout
20121 .lyx
20122 \end_layout
20123
20124 \end_inset
20125
20126 ファイルに対する書き込み権限の自動設定は,
20127 \begin_inset Flex MenuItem
20128 status collapsed
20129
20130 \begin_layout Plain Layout
20131 ファイル\SpecialChar menuseparator
20132 バージョン管理\SpecialChar menuseparator
20133 ロック特性を使用
20134 \end_layout
20135
20136 \end_inset
20137
20138 で行うことができます.このコマンドは,SVNサーバでファイルがロックされていないときのみ使用可能状態になります(つまり,使用するにはチェックアウトが必要です).
20139 \end_layout
20140
20141 \begin_layout Standard
20142 SVNコマンド:
20143 \end_layout
20144
20145 \begin_layout Labeling
20146 \labelwidthstring 00.00.0000
20147 チェックイン: 
20148 \begin_inset Flex Code
20149 status collapsed
20150
20151 \begin_layout Plain Layout
20152 svn propset svn:needs-lock ON 
20153 \begin_inset Quotes eld
20154 \end_inset
20155
20156 <ファイル名>
20157 \begin_inset Quotes erd
20158 \end_inset
20159
20160
20161 \end_layout
20162
20163 \end_inset
20164
20165
20166 \end_layout
20167
20168 \begin_layout Labeling
20169 \labelwidthstring 00.00.0000
20170 チェックアウト: 
20171 \begin_inset Flex Code
20172 status collapsed
20173
20174 \begin_layout Plain Layout
20175 svn propdel svn:needs-lock 
20176 \begin_inset Quotes eld
20177 \end_inset
20178
20179 <ファイル名>
20180 \begin_inset Quotes erd
20181 \end_inset
20182
20183
20184 \end_layout
20185
20186 \end_inset
20187
20188
20189 \end_layout
20190
20191 \begin_layout Subsubsection
20192 \begin_inset CommandInset label
20193 LatexCommand label
20194 name "subsec:VCS改訂情報"
20195
20196 \end_inset
20197
20198 文書の改訂情報
20199 \end_layout
20200
20201 \begin_layout Standard
20202 文書中で改訂情報を有効化するにはいくつかの方法があります.
20203 \end_layout
20204
20205 \begin_layout Itemize
20206 \SpecialChar LyX
20207 による直接サポート
20208 \end_layout
20209
20210 \begin_deeper
20211 \begin_layout Itemize
20212 ツリー改訂情報(
20213 \begin_inset Flex Code
20214 status collapsed
20215
20216 \begin_layout Plain Layout
20217 vcs-tree-revision
20218 \end_layout
20219
20220 \end_inset
20221
20222 ).
20223 \begin_inset Flex Code
20224 status collapsed
20225
20226 \begin_layout Plain Layout
20227 svnversion
20228 \end_layout
20229
20230 \end_inset
20231
20232 コマンドの出力を返します.下記の表が,結果の読み方のヒントを与えるでしょう.
20233 \end_layout
20234
20235 \begin_layout Standard
20236 \align center
20237 \begin_inset Tabular
20238 <lyxtabular version="3" rows="6" columns="2">
20239 <features tabularvalignment="middle">
20240 <column alignment="center" valignment="top">
20241 <column alignment="center" valignment="top">
20242 <row>
20243 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
20244 \begin_inset Text
20245
20246 \begin_layout Plain Layout
20247 出力
20248 \end_layout
20249
20250 \end_inset
20251 </cell>
20252 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
20253 \begin_inset Text
20254
20255 \begin_layout Plain Layout
20256 意味
20257 \end_layout
20258
20259 \end_inset
20260 </cell>
20261 </row>
20262 <row>
20263 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20264 \begin_inset Text
20265
20266 \begin_layout Plain Layout
20267 4123:4168
20268 \end_layout
20269
20270 \end_inset
20271 </cell>
20272 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20273 \begin_inset Text
20274
20275 \begin_layout Plain Layout
20276 改訂版の混合した作業コピー
20277 \end_layout
20278
20279 \end_inset
20280 </cell>
20281 </row>
20282 <row>
20283 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20284 \begin_inset Text
20285
20286 \begin_layout Plain Layout
20287 4168M
20288 \end_layout
20289
20290 \end_inset
20291 </cell>
20292 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20293 \begin_inset Text
20294
20295 \begin_layout Plain Layout
20296 修正された作業コピー
20297 \end_layout
20298
20299 \end_inset
20300 </cell>
20301 </row>
20302 <row>
20303 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20304 \begin_inset Text
20305
20306 \begin_layout Plain Layout
20307 4123S
20308 \end_layout
20309
20310 \end_inset
20311 </cell>
20312 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20313 \begin_inset Text
20314
20315 \begin_layout Plain Layout
20316 スイッチされた作業コピー
20317 \end_layout
20318
20319 \end_inset
20320 </cell>
20321 </row>
20322 <row>
20323 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20324 \begin_inset Text
20325
20326 \begin_layout Plain Layout
20327 4123P
20328 \end_layout
20329
20330 \end_inset
20331 </cell>
20332 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20333 \begin_inset Text
20334
20335 \begin_layout Plain Layout
20336 チェックアウト頻度が低かったことによる不完全な作業コピー
20337 \end_layout
20338
20339 \end_inset
20340 </cell>
20341 </row>
20342 <row>
20343 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
20344 \begin_inset Text
20345
20346 \begin_layout Plain Layout
20347 4123:4168MS
20348 \end_layout
20349
20350 \end_inset
20351 </cell>
20352 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
20353 \begin_inset Text
20354
20355 \begin_layout Plain Layout
20356 改訂版が混合し,修正され,スイッチされた作業コピー
20357 \end_layout
20358
20359 \end_inset
20360 </cell>
20361 </row>
20362 </lyxtabular>
20363
20364 \end_inset
20365
20366
20367 \end_layout
20368
20369 \begin_layout Itemize
20370 ファイル改訂情報.
20371 \begin_inset Flex Code
20372 status collapsed
20373
20374 \begin_layout Plain Layout
20375 svn
20376 \begin_inset space ~
20377 \end_inset
20378
20379 info
20380 \begin_inset space ~
20381 \end_inset
20382
20383 –xml
20384 \begin_inset space ~
20385 \end_inset
20386
20387 file.lyx
20388 \end_layout
20389
20390 \end_inset
20391
20392 の出力を解析したものが返されます.サポートされるフラグは
20393 \end_layout
20394
20395 \begin_deeper
20396 \begin_layout Itemize
20397 最終コミットのバージョン番号(
20398 \begin_inset Flex Code
20399 status collapsed
20400
20401 \begin_layout Plain Layout
20402 vcs-revision
20403 \end_layout
20404
20405 \end_inset
20406
20407
20408 \end_layout
20409
20410 \begin_layout Itemize
20411 最終コミットの著者(
20412 \begin_inset Flex Code
20413 status collapsed
20414
20415 \begin_layout Plain Layout
20416 vcs-author
20417 \end_layout
20418
20419 \end_inset
20420
20421
20422 \end_layout
20423
20424 \begin_layout Itemize
20425 最終コミットの日付(
20426 \begin_inset Flex Code
20427 status collapsed
20428
20429 \begin_layout Plain Layout
20430 vcs-date
20431 \end_layout
20432
20433 \end_inset
20434
20435
20436 \end_layout
20437
20438 \begin_layout Itemize
20439 最終コミットの時間(
20440 \begin_inset Flex Code
20441 status collapsed
20442
20443 \begin_layout Plain Layout
20444 vcs-time
20445 \end_layout
20446
20447 \end_inset
20448
20449
20450 \end_layout
20451
20452 \end_deeper
20453 \begin_layout Standard
20454 これらの情報は,情報差込枠で得ることができます(例:
20455 \begin_inset Flex Code
20456 status collapsed
20457
20458 \begin_layout Plain Layout
20459 info-insert buffer vcs-date
20460 \end_layout
20461
20462 \end_inset
20463
20464 ).これらの情報は,ファイルをsvn管理下に置いたときのみ(すなわち使用中文書の
20465 \begin_inset Flex Code
20466 status collapsed
20467
20468 \begin_layout Plain Layout
20469 .svn
20470 \end_layout
20471
20472 \end_inset
20473
20474 ディレクトリがあるときのみ)利用可能です.
20475 \end_layout
20476
20477 \end_deeper
20478 \begin_layout Itemize
20479 もう一つの—ハッカー的な—方法は,SVNキーワードを使用する方法です
20480 \begin_inset Foot
20481 status collapsed
20482
20483 \begin_layout Plain Layout
20484 http://svnbook.red-bean.com/en/1.4/svn.advanced.props.special.keywords.html
20485 \end_layout
20486
20487 \end_inset
20488
20489 .簡単に言えば,ファイルキーワード特性を設定して(例:
20490 \family sans
20491 svn propset svn:keywords 'Rev' file.lyx
20492 \family default
20493 ),文書中にキーワード\SpecialChar TeX
20494 コード
20495 \begin_inset Foot
20496 status collapsed
20497
20498 \begin_layout Plain Layout
20499 これは,\SpecialChar LyX
20500 がキーワードタグの途中で改行してしまわないことを確実にするための,簡単な方法です.
20501 \end_layout
20502
20503 \end_inset
20504
20505 タグ(例:
20506 \begin_inset Flex Code
20507 status collapsed
20508
20509 \begin_layout Plain Layout
20510 $Rev$
20511 \end_layout
20512
20513 \end_inset
20514
20515 )を貼り付けるのです.このようにして,SVNクライアントは,各更新やコミットの後に自動的に改訂番号を代入することができるのです(例:
20516 \begin_inset Flex Code
20517 status collapsed
20518
20519 \begin_layout Plain Layout
20520 $Rev: 59 $
20521 \end_layout
20522
20523 \end_inset
20524
20525 ).このアプローチにはいくつか問題があります.第一に,\SpecialChar TeX
20526 の世界では「$」文字は数式を表すのに使われるので,\SpecialChar LyX
20527 中の
20528 \begin_inset Formula $Rev$
20529 \end_inset
20530
20531 という数式表現が,すべて
20532 \begin_inset Formula $Rev:59$
20533 \end_inset
20534
20535 になってしまいます.その他のId・Date・Authorなどといったキーワードも同様です.第二に,SVN出力は使用中のロケールに依存するので,Dateが用いられ
20536 ると,SVNは,問題を引き起こすような文字列を容易に生成してしまいます.第三に,文書中には,番号だけでなく「Rev: 59」という文字列全体が表示されてしまいま
20537 す.Subversionがユーザ定義のキーワードを実装するまでは,このアプローチを信頼性を持って使用したり,\SpecialChar LyX
20538 がこれを直接サポートすることは,難しそうです.
20539 \end_layout
20540
20541 \begin_layout Subsection
20542 SVNとWindows環境
20543 \end_layout
20544
20545 \begin_layout Quote
20546 ユーザが,かなり早いうちに自分自身でコマンドライン操作を理解できないのであれば,TortoiseSVNを使った方が賢明でしょう.—P.
20547  A.
20548  ルービン
20549 \end_layout
20550
20551 \begin_layout Subsubsection
20552 準備
20553 \end_layout
20554
20555 \begin_layout Standard
20556 \SpecialChar LyX
20557 を導入して,Subversionレポジトリへのアクセス権を持っている他に,ユーザはSubversionクライアントプログラムを導入する必要があります.クライアン
20558 トプログラムのWindows用インストーラは
20559 \begin_inset CommandInset href
20560 LatexCommand href
20561 name "CollabNet"
20562 target "http://www.collab.net/nonav/downloads/subversion/"
20563 literal "false"
20564
20565 \end_inset
20566
20567 にあります.ユーザは
20568 \begin_inset CommandInset href
20569 LatexCommand href
20570 name "TortoiseSVN"
20571 target "http://tortoisesvn.tigris.org/"
20572 literal "false"
20573
20574 \end_inset
20575
20576 も導入することを考えるでしょう.これはSubversionの操作をWindows Explorerのコンテクスト(右クリック)メニューに統合します.\SpecialChar LyX
20577 外部で行う操
20578 作は,一般的にExplorerコンテクストメニューを使った方が便利です.TortoiseSVNは,\SpecialChar LyX
20579 自身が使用するクライアントプログラムの代わりとは成りませんので
20580 ,注意してください.
20581 \end_layout
20582
20583 \begin_layout Subsubsection
20584 文書をSubversion管理下に置くには
20585 \end_layout
20586
20587 \begin_layout Standard
20588 \SpecialChar LyX
20589 文書をSubversionのバージョン管理下に置く前に,その親ディレクトリをバージョン管理下に置かなくてはなりません.文書を,既にレポジトリに存在するプロジェク
20590 トに追加する際には,新規文書が置かれることになるディレクトリへ,プロジェクトをチェックアウトすることによって実現します.プロジェクト自体がバージョン管理下にない
20591 場合(たとえばこの文書が新規プロジェクトの最初のファイルである場合)には,このディレクトリをレポジトリにインポートしなくてはなりません.これは,\SpecialChar LyX
20592 の外部で行います
20593 .インポートもチェックアウトも共に,TortoiseSVNを使えば,Explorerのコンテクストメニューから簡単に終えることができます.あるいは,DOSプロン
20594 プトでコマンドライン・クライアントを使って成し遂げることもできます.TortoiseSVNを使ったプロジェクトのインポート手続きを下記で説明します.レポジトリは
20595 既に存在し,新規プロジェクトを
20596 \begin_inset Flex Code
20597 status collapsed
20598
20599 \begin_layout Plain Layout
20600 C:
20601 \backslash
20602 new project
20603 \end_layout
20604
20605 \end_inset
20606
20607 で開始するものとします.Subversionクライアントプログラムを使うための情報を得るには,DOSシェルで
20608 \begin_inset Flex Code
20609 status collapsed
20610
20611 \begin_layout Plain Layout
20612 svn –help
20613 \end_layout
20614
20615 \end_inset
20616
20617 を実行してください.
20618 \end_layout
20619
20620 \begin_layout Enumerate
20621 Windows Explorerで
20622 \begin_inset Flex Code
20623 status collapsed
20624
20625 \begin_layout Plain Layout
20626 C:
20627 \backslash
20628 new project
20629 \end_layout
20630
20631 \end_inset
20632
20633 を見つけ出して右クリックし,
20634 \begin_inset Flex MenuItem
20635 status collapsed
20636
20637 \begin_layout Plain Layout
20638 TortoiseSVN\SpecialChar menuseparator
20639 Repo-browser
20640 \end_layout
20641
20642 \end_inset
20643
20644 を選択してください.必要であれば,レポジトリのURLを調整し,OKをクリックしてください.
20645 \end_layout
20646
20647 \begin_layout Enumerate
20648 新規プロジェクトフォルダを置くレポジトリレベル(多くの場合最上位レベル)を右クリックし,
20649 \begin_inset Flex MenuItem
20650 status collapsed
20651
20652 \begin_layout Plain Layout
20653 Create folder\SpecialChar ldots
20654
20655 \end_layout
20656
20657 \end_inset
20658
20659 をクリックしてください.プロジェクトフォルダの名称を入力してOKをクリックしてください.必要であればログファイル用のメッセージを入力し,再びOKをクリックしてく
20660 ださい.新規プロジェクトフォルダがレポジトリに現れるはずです.最後にOKを再度クリックして,レポジトリブラウザを終了してください.
20661 \end_layout
20662
20663 \begin_layout Enumerate
20664 再度
20665 \begin_inset Flex Code
20666 status collapsed
20667
20668 \begin_layout Plain Layout
20669 C:
20670 \backslash
20671 new project
20672 \end_layout
20673
20674 \end_inset
20675
20676 を右クリックし,今度は
20677 \begin_inset Flex MenuItem
20678 status collapsed
20679
20680 \begin_layout Plain Layout
20681 SVN Checkout\SpecialChar ldots
20682
20683 \end_layout
20684
20685 \end_inset
20686
20687 を選択してください.レポジトリにたった今作成した,プロジェクトフォルダのURLを選択し,チェックアウトディレクトリを
20688 \begin_inset Flex Code
20689 status collapsed
20690
20691 \begin_layout Plain Layout
20692 C:
20693 \backslash
20694 new project
20695 \end_layout
20696
20697 \end_inset
20698
20699 に設定してから,OKをクリックしてください.フォルダが空でないことを警告されますが,OKをクリックして進んでください.すると,
20700 \begin_inset Flex Code
20701 status collapsed
20702
20703 \begin_layout Plain Layout
20704 C:
20705 \backslash
20706 new project
20707 \end_layout
20708
20709 \end_inset
20710
20711 の下に
20712 \begin_inset Flex Code
20713 status collapsed
20714
20715 \begin_layout Plain Layout
20716 .svn
20717 \end_layout
20718
20719 \end_inset
20720
20721 ディレクトリが作成されます.
20722 \end_layout
20723
20724 \begin_layout Enumerate
20725 \SpecialChar LyX
20726 で文書を新規作成するか開くかして,
20727 \begin_inset Flex MenuItem
20728 status collapsed
20729
20730 \begin_layout Plain Layout
20731 ファイル\SpecialChar menuseparator
20732 バージョン管理\SpecialChar menuseparator
20733 登録
20734 \end_layout
20735
20736 \end_inset
20737
20738 をクリックします.ログメッセージを入力してOKをクリックし,文書をバージョン管理にコミットしてください.
20739 \end_layout
20740
20741 \begin_layout Standard
20742 爾後,
20743 \begin_inset Flex MenuItem
20744 status collapsed
20745
20746 \begin_layout Plain Layout
20747 ファイル\SpecialChar menuseparator
20748 バージョン管理
20749 \end_layout
20750
20751 \end_inset
20752
20753 メニューのすべての機能が使用できるようになります.Windows ExplorerのTortoiseSVNコンテクストメニューか,コマンドプロンプトでのSubv
20754 ersionクライアントプログラムを使用して,文書をチェックイン・チェックアウトしたり,履歴を見たりといったことができるようになります.
20755 \end_layout
20756
20757 \begin_layout Subsubsection
20758 Windows下でSVNと共にSSHトンネルを使うには
20759 \end_layout
20760
20761 \begin_layout Standard
20762 Linuxに較べて,WindowsでSVNクライアントをSSH経由で通信するようにさせるのは,かなり厄介な仕事です.どのようにクライアント側を設定すればよいか,
20763 少なくとも幾分かのヒントをお示しするつもりですが,sshとWindowsコマンドラインの知識が前もって必要であり,それと共にかなりの量のフラストレーションが溜ま
20764 ることを覚悟しておいてください.
20765 \end_layout
20766
20767 \begin_layout Enumerate
20768 前節で述べたように,Windows用のSVNクライアントを入手してください.これが新規の導入である場合には,何らかのSVNコマンド(たとえば
20769 \begin_inset Flex Code
20770 status collapsed
20771
20772 \begin_layout Plain Layout
20773 svn –version
20774 \end_layout
20775
20776 \end_inset
20777
20778 )を実行して,configファイル群を生成させてください.これらは後で変更を加える必要があります.
20779 \end_layout
20780
20781 \begin_layout Enumerate
20782 Windows用のsshクライアントを選んでください.選択肢はたくさんありますが,ここではPutty tools
20783 \begin_inset Foot
20784 status open
20785
20786 \begin_layout Plain Layout
20787 \begin_inset Flex URL
20788 status collapsed
20789
20790 \begin_layout Plain Layout
20791
20792 http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html
20793 \end_layout
20794
20795 \end_inset
20796
20797
20798 \end_layout
20799
20800 \end_inset
20801
20802 のものを使用することとしましょう.クライアントが接続の度にパスワードを訊いてこないように,接続を自動化する必要があります.簡単にするために,追加的なパスワード保
20803 護などを加えない
20804 \begin_inset Flex Ruby
20805 status collapsed
20806
20807 \begin_layout Plain Layout
20808
20809 \begin_inset Argument post:1
20810 status collapsed
20811
20812 \begin_layout Plain Layout
20813 キー
20814 \end_layout
20815
20816 \end_inset
20817
20818
20819 \end_layout
20820
20821 \end_inset
20822
20823 のみを使用することとします.
20824 \end_layout
20825
20826 \begin_deeper
20827 \begin_layout Enumerate
20828 \begin_inset Flex Code
20829 status collapsed
20830
20831 \begin_layout Plain Layout
20832 puttygen
20833 \end_layout
20834
20835 \end_inset
20836
20837 を使って鍵を生成します..ppkプライベート鍵ファイルを保存し,パブリック鍵ファイルはサーバ側に置きます.SVNサーバがLinuxで走っている場合,このパブリック
20838 鍵の書式はLinuxのopensshと互換性がないために,「Public key for pasting into OpenSSH authorized_key
20839 s file:」編集フィールドから,直接サーバの
20840 \begin_inset Flex Code
20841 status collapsed
20842
20843 \begin_layout Plain Layout
20844 ~/.ssh/authorized_keys
20845 \end_layout
20846
20847 \end_inset
20848
20849 または
20850 \begin_inset Flex Code
20851 status collapsed
20852
20853 \begin_layout Plain Layout
20854 authorized_keys2
20855 \end_layout
20856
20857 \end_inset
20858
20859 ファイルにコピー&ペーストを行わなくてはならないことに注意してください.
20860 \end_layout
20861
20862 \begin_layout Enumerate
20863 Puttyのplinkを入手してください.SVNのconfigファイル
20864 \begin_inset Foot
20865 status collapsed
20866
20867 \begin_layout Plain Layout
20868 正確なパスはWindowsのバージョンに依りますが,通常は
20869 \begin_inset Flex Code
20870 status collapsed
20871
20872 \begin_layout Plain Layout
20873 c:
20874 \backslash
20875 Documents and Settings
20876 \backslash
20877 user
20878 \backslash
20879 Application Data
20880 \backslash
20881 Subversion
20882 \backslash
20883 config
20884 \end_layout
20885
20886 \end_inset
20887
20888
20889 \begin_inset Flex Code
20890 status collapsed
20891
20892 \begin_layout Plain Layout
20893 AppData
20894 \backslash
20895 Roaming
20896 \backslash
20897 Subversion
20898 \end_layout
20899
20900 \end_inset
20901
20902 辺りにあります.
20903 \end_layout
20904
20905 \end_inset
20906
20907 中の
20908 \begin_inset Flex Code
20909 status collapsed
20910
20911 \begin_layout Plain Layout
20912 [tunnels]
20913 \end_layout
20914
20915 \end_inset
20916
20917 セクションにsshコマンドを設定してください.例:
20918 \begin_inset Flex Code
20919 status collapsed
20920
20921 \begin_layout Plain Layout
20922 ssh=c:/path/plink.exe -i c:/path/private_key.ppk
20923 \end_layout
20924
20925 \end_inset
20926
20927
20928 \begin_inset Foot
20929 status collapsed
20930
20931 \begin_layout Plain Layout
20932 通常,正確なコマンドを機能させるには長い時間がかかり,それは多くの物事に依存します.たとえば,リモートサーバがPuttyなどの既定セッションとして保存されないよ
20933 うにしてください.うまく行かない場合には,まずSVNなしでplink経由の接続を試してください.
20934 \end_layout
20935
20936 \end_inset
20937
20938
20939 \end_layout
20940
20941 \end_deeper
20942 \begin_layout Enumerate
20943 SVNアーカイブをチェックアウトしてください.例:
20944 \begin_inset Newline newline
20945 \end_inset
20946
20947
20948 \begin_inset Flex Code
20949 status collapsed
20950
20951 \begin_layout Plain Layout
20952 svn co svn+ssh://user@server/repository_path
20953 \end_layout
20954
20955 \end_inset
20956
20957
20958 \end_layout
20959
20960 \begin_layout Subsubsection
20961 行末変換
20962 \end_layout
20963
20964 \begin_layout Standard
20965 共著者同士がLinuxとWindowsを混在させているとき,\SpecialChar LyX
20966 は.lyxファイル中で異なった行末記号を使用することになります.これは,\SpecialChar LyX
20967 の機能に関する限り問題になりま
20968 せんが,コミット差分は巨大になり,マージではコンフリクトを引き起こしがちです.幸いにして,SVNは,.lyxファイルを
20969 \begin_inset Flex Code
20970 status collapsed
20971
20972 \begin_layout Plain Layout
20973 native
20974 \end_layout
20975
20976 \end_inset
20977
20978 モードに切り替える際
20979 \begin_inset Foot
20980 status collapsed
20981
20982 \begin_layout Plain Layout
20983 手短には
20984 \begin_inset Flex Code
20985 status collapsed
20986
20987 \begin_layout Plain Layout
20988 svn propset svn:eol-style native FILE_NAME
20989 \end_layout
20990
20991 \end_inset
20992
20993
20994 \end_layout
20995
20996 \end_inset
20997
20998 ,CR/LF問題をどのように取り扱えばいいかを知っているので大丈夫です
20999 \begin_inset Foot
21000 status collapsed
21001
21002 \begin_layout Plain Layout
21003 \begin_inset Flex URL
21004 status collapsed
21005
21006 \begin_layout Plain Layout
21007
21008 http://svnbook.red-bean.com/en/1.4/svn.advanced.props.file-portability.html
21009 \end_layout
21010
21011 \end_inset
21012
21013
21014 \end_layout
21015
21016 \end_inset
21017
21018
21019 \end_layout
21020
21021 \begin_layout Subsection
21022 \SpecialChar LyX
21023 におけるGITコマンド
21024 \end_layout
21025
21026 \begin_layout Standard
21027 \SpecialChar LyX
21028 で,最小限のGITコマンドがサポートされるようになりました.これらのコマンドは,
21029 \family sans
21030 ファイル\SpecialChar menuseparator
21031 バージョン管理
21032 \family default
21033 にあります.リポジトリのアクセスに,パスワード保護されたsshを使用している場合には,ターミナルウィンドウでの操作をするように促されます.\SpecialChar LyX
21034 は,GIT
21035  1.7に対して試験を行っています
21036 \begin_inset Foot
21037 status collapsed
21038
21039 \begin_layout Plain Layout
21040 Windowsユーザーはgitにパスが通っていることを確認する必要があります.これは,\SpecialChar LyX
21041 中から
21042 \family sans
21043 ツール\SpecialChar menuseparator
21044 設定\SpecialChar menuseparator
21045 パス\SpecialChar menuseparator
21046 PATH接頭辞
21047 \family default
21048 で設定できます.
21049 \end_layout
21050
21051 \end_inset
21052
21053
21054 \end_layout
21055
21056 \begin_layout Standard
21057 GITと他のバージョン管理システムとの大きな相違点は,GITの配布形態にあります.伝統的なバージョン管理システムでは,リポジトリをホストする,中心となるサーバー
21058 があります.ユーザーは変更点をサーバーにコミットし,他のユーザーが行った更新分をサーバーから受け取ります.一方,GITでは,ユーザーは,ローカルのリポジトリにコ
21059 ミットを行います.ローカルリポジトリは,GITコマンドの
21060 \begin_inset Flex Code
21061 status open
21062
21063 \begin_layout Plain Layout
21064 pull
21065 \end_layout
21066
21067 \end_inset
21068
21069 または
21070 \begin_inset Flex Code
21071 status open
21072
21073 \begin_layout Plain Layout
21074 push
21075 \end_layout
21076
21077 \end_inset
21078
21079 を使って,1つ以上のリモートリポジトリと同期されます.\SpecialChar LyX
21080 は,リモートのGITリポジトリとは,一切関わりません.CVSやSVNの集権的リポジトリに対して行うのと同じ
21081 ことを,ローカルのリポジトリに対してのみ行います.リモートのGITリポジトリを使用している場合には,お好みのGITクライアントを使用して,
21082 \begin_inset Flex Code
21083 status open
21084
21085 \begin_layout Plain Layout
21086 pull
21087 \end_layout
21088
21089 \end_inset
21090
21091 または
21092 \begin_inset Flex Code
21093 status open
21094
21095 \begin_layout Plain Layout
21096 push
21097 \end_layout
21098
21099 \end_inset
21100
21101 の操作を行う必要があります.
21102 \end_layout
21103
21104 \begin_layout Subsubsection
21105 登録
21106 \end_layout
21107
21108 \begin_layout Standard
21109 お使いの文書が改訂管理下に置かれていなければ,メニューにはこの項目だけが表示されます.もし改訂管理が有効ならば,
21110 \family sans
21111 登録
21112 \family default
21113 項目は表示されません.
21114 \end_layout
21115
21116 \begin_layout Standard
21117 本コマンドは,既に文書のあるディレクトリをGIT管理下に置いている場合に
21118 \emph on
21119 のみ
21120 \emph default
21121 (すなわち
21122 \begin_inset Flex Code
21123 status collapsed
21124
21125 \begin_layout Plain Layout
21126 .git/index
21127 \end_layout
21128
21129 \end_inset
21130
21131 ファイルが存在する場合にのみ),お使いの文書をGITに登録します.つまり,アーカイブはご自分でチェックアウトしなくてはなりません.
21132 \end_layout
21133
21134 \begin_layout Standard
21135 すると,文書の最初の説明文を入力するように促されます.登録したファイルは,まだコミットされたわけではないことに注意してください.
21136 \end_layout
21137
21138 \begin_layout Standard
21139 実行されるGITコマンドは,
21140 \begin_inset Flex Code
21141 status collapsed
21142
21143 \begin_layout Plain Layout
21144 git add "<ファイル名>"
21145 \end_layout
21146
21147 \end_inset
21148
21149 です.
21150 \end_layout
21151
21152 \begin_layout Standard
21153 スイッチの説明は
21154 \begin_inset Flex Code
21155 status collapsed
21156
21157 \begin_layout Plain Layout
21158 man git
21159 \end_layout
21160
21161 \end_inset
21162
21163 をお読みください.
21164 \end_layout
21165
21166 \begin_layout Subsubsection
21167 変更をチェックイン
21168 \end_layout
21169
21170 \begin_layout Standard
21171 ファイルの編集を終えたら,変更をコミットします.このとき,変更の説明文を入れるよう促されます.その後,変更がコミットされます.
21172 \end_layout
21173
21174 \begin_layout Standard
21175 GITコマンド:
21176 \begin_inset Flex Code
21177 status collapsed
21178
21179 \begin_layout Plain Layout
21180 git commit -q -m
21181 \begin_inset Quotes erd
21182 \end_inset
21183
21184 <入力した説明文>
21185 \begin_inset Quotes erd
21186 \end_inset
21187
21188  "<ファイル名>"
21189 \end_layout
21190
21191 \end_inset
21192
21193
21194 \end_layout
21195
21196 \begin_layout Subsubsection
21197 リポジトリ版に戻す
21198 \end_layout
21199
21200 \begin_layout Standard
21201 これは,最後のチェックイン以降,文書に加えられた変更をすべて廃棄します.変更が廃棄される前に警告が表示されます.
21202 \end_layout
21203
21204 \begin_layout Standard
21205 GITコマンド:
21206 \begin_inset Flex Code
21207 status collapsed
21208
21209 \begin_layout Plain Layout
21210 git checkout -q 
21211 \begin_inset Quotes qld
21212 \end_inset
21213
21214 <ファイル名>
21215 \begin_inset Quotes qld
21216 \end_inset
21217
21218
21219 \end_layout
21220
21221 \end_inset
21222
21223
21224 \end_layout
21225
21226 \begin_layout Subsubsection
21227 ファイル名変更
21228 \end_layout
21229
21230 \begin_layout Standard
21231 これは,現行文書のファイル名を変更します.最後のチェックイン以降,変更が加えられていないサラの文書であることが要求されます.ファイル名とコピー操作の説明を入力す
21232 るように促され,その後,ローカルとリポジトリの両方でファイル名が変更されます.新旧ファイル名の文書の親ディレクトリが異なる場合には,コピーにインクルードされたフ
21233 ァイルの相対パスは,(
21234 \family sans
21235 ファイル\SpecialChar menuseparator
21236 名前をつけて保存\SpecialChar ldots
21237
21238 \family default
21239 と同様に)全て調整されます.最後に,新ファイル名を使ってファイルが再度読み込まれます.
21240 \end_layout
21241
21242 \begin_layout Labeling
21243 \labelwidthstring 00.00.0000
21244 GITコマンド: 
21245 \begin_inset space ~
21246 \end_inset
21247
21248
21249 \begin_inset Newline newline
21250 \end_inset
21251
21252
21253 \begin_inset Flex Code
21254 status collapsed
21255
21256 \begin_layout Plain Layout
21257 git mv "<ファイル名>" "<新ファイル名>"
21258 \end_layout
21259
21260 \end_inset
21261
21262
21263 \begin_inset Newline newline
21264 \end_inset
21265
21266
21267 \begin_inset Flex Code
21268 status collapsed
21269
21270 \begin_layout Plain Layout
21271 git commit
21272 \end_layout
21273
21274 \end_inset
21275
21276
21277 \end_layout
21278
21279 \begin_layout Subsubsection
21280 履歴を表示
21281 \end_layout
21282
21283 \begin_layout Standard
21284 これは,GIT文書の全履歴を表示します.
21285 \begin_inset Flex Code
21286 status collapsed
21287
21288 \begin_layout Plain Layout
21289 git log 
21290 \begin_inset Quotes qld
21291 \end_inset
21292
21293 <ファイル名>
21294 \begin_inset Quotes qld
21295 \end_inset
21296
21297
21298 \end_layout
21299
21300 \end_inset
21301
21302 の出力がブラウザに表示されます.
21303 \end_layout
21304
21305 \begin_layout Subsubsection
21306 改訂情報
21307 \end_layout
21308
21309 \begin_layout Standard
21310 \SpecialChar LyX
21311 は,ファイルの最終コミットのGITハッシュ番号・著者名・最終コミットの日時をサポートします.これらの情報は,すべて
21312 \family typewriter
21313 git log -n 1 --pretty=format:%H%n%an%n%ai
21314 \family default
21315 によって抽出されます.ツリーバージョン情報は,
21316 \family typewriter
21317 git describe --abbrev --dirty --long
21318 \family default
21319 で取得されます.詳細については,第
21320 \begin_inset CommandInset ref
21321 LatexCommand ref
21322 reference "subsec:VCS改訂情報"
21323
21324 \end_inset
21325
21326 節を参照してください.
21327 \end_layout
21328
21329 \begin_layout Subsection
21330 さらなる調整
21331 \end_layout
21332
21333 \begin_layout Standard
21334 最近になって
21335 \begin_inset Flex Code
21336 status collapsed
21337
21338 \begin_layout Plain Layout
21339 vc-command
21340 \end_layout
21341
21342 \end_inset
21343
21344 機構が付け加えられたおかげで,\SpecialChar LyX
21345 のパワーユーザは,改訂管理のための自製コマンドを作ることができるようになりました.
21346 \end_layout
21347
21348 \begin_layout Standard
21349 たとえば,以下のようにして,二つのTortoiseSVNコマンドを直接統合することができます.
21350 \end_layout
21351
21352 \begin_layout Description
21353 コミット: 
21354 \begin_inset Flex Code
21355 status collapsed
21356
21357 \begin_layout Plain Layout
21358 vc-command DR "." "TortoiseProc /command:commit /path:$$p"
21359 \end_layout
21360
21361 \end_inset
21362
21363
21364 \end_layout
21365
21366 \begin_layout Description
21367 元に戻す: 
21368 \begin_inset Flex Code
21369 status collapsed
21370
21371 \begin_layout Plain Layout
21372 vc-command DR "." "TortoiseProc /command:revert /path:$$p"
21373 \end_layout
21374
21375 \end_inset
21376
21377
21378 \end_layout
21379
21380 \begin_layout Subsection
21381 バージョン管理と文書比較
21382 \end_layout
21383
21384 \begin_layout Standard
21385 バージョン管理は,通常
21386 \begin_inset Flex Code
21387 status collapsed
21388
21389 \begin_layout Plain Layout
21390 diff
21391 \end_layout
21392
21393 \end_inset
21394
21395 ダンプを生成することによって,改訂版の間の変更点を検査するのが,典型的な使用法です.これは平文ファイルには有効なのですが,複雑な構造を持つ\SpecialChar LyX
21396 ファイルの場合には,あ
21397 まり便利ではありません.そこで,\SpecialChar LyX
21398 は独自の文書比較機能を提供しています.この機能を呼び出すには2つの方法があります.1つは,\SpecialChar LyX
21399
21400 \begin_inset Flex Code
21401 status collapsed
21402
21403 \begin_layout Plain Layout
21404 vc-compare
21405 \end_layout
21406
21407 \end_inset
21408
21409 関数を直接呼び出す方法であり(詳細は\SpecialChar LyX
21410 関数説明書を参照),もう1つはツールバーアイコン
21411 \begin_inset Info
21412 type  "icon"
21413 arg   "vc-compare"
21414 \end_inset
21415
21416 による方法,さらにはメニュー項目
21417 \begin_inset Info
21418 type  "menu"
21419 arg   "vc-compare"
21420 \end_inset
21421
21422 を使用する方法です.当該文書のうち,任意の2つの改訂版を比較することもできますし,編集中の現行版を古い改訂版と比較することもできます(このとき改訂版遡及数「
21423 \begin_inset Flex MenuItem
21424 status collapsed
21425
21426 \begin_layout Plain Layout
21427 0
21428 \end_layout
21429
21430 \end_inset
21431
21432 」は,編集中のファイルと最後にコミットした改訂版との比較を意味します).
21433 \end_layout
21434
21435 \begin_layout Standard
21436 この機能は,SVNとRCSでサポートされていますが,RCSは,より複雑なバージョン付けスキームを持っているため,制約があります.ダイアログ中で改訂版を指定する際
21437 の数字は,つねにRCS改訂番号の最後の数を指し示します(例:「1.2.35」版のときには「35」).現在のところ,改訂のGIT表記はサポートされておらず,
21438 \begin_inset Flex Code
21439 status collapsed
21440
21441 \begin_layout Plain Layout
21442 HEAD~X
21443 \end_layout
21444
21445 \end_inset
21446
21447
21448 \lang english
21449 .
21450 \lang japanese
21451 の形で表記されるXステップ前の改訂版を,編集中文書と比較することのみが可能です.
21452 \end_layout
21453
21454 \begin_layout Section
21455 文芸プログラミング
21456 \end_layout
21457
21458 \begin_layout Standard
21459
21460 \noun on
21461 Kayvan Sylvan
21462 \noun default
21463 (kayvan@sylvan.com)改訂 
21464 \noun on
21465 Edmar Wienskoski Jr.
21466 \noun default
21467 (edmar-w-jr@technologist.com)原文
21468 \end_layout
21469
21470 \begin_layout Subsection
21471 はじめに
21472 \end_layout
21473
21474 \begin_layout Standard
21475 この節の主な目的は,文芸的プログラミング(literate programming)のために,\SpecialChar LyX
21476 をどう使えばよいかをお見せすることです.ここでは,あなたがこのプロ
21477 グラミング技術をよくご存じで,「tangling」や「weaving」の意味するところを知っているものとして説明します.そうでない場合には,以下の各節にあるウェ
21478 ブリンクをたどってください.そこには,かつての開発の歴史から最新のツールチップまで,たくさんの良質なドキュメンテーションがあります.
21479 \end_layout
21480
21481 \begin_layout Standard
21482 また,あなたが,\SpecialChar LyX
21483 の設定を変更することを厭わない程度まで\SpecialChar LyX
21484 に習熟しており,Xリソースファイルにも親しんでいることを前提にしています.そうでない場合は,あなたの必要と
21485 するトピックを扱っている,\SpecialChar LyX
21486 の他の説明書で調べてください.
21487 \end_layout
21488
21489 \begin_layout Subsection
21490 文芸プログラミング
21491 \end_layout
21492
21493 \begin_layout Standard
21494 以下は,文芸プログラミング FAQからの抜粋です.
21495 \end_layout
21496
21497 \begin_layout Quotation
21498 文芸プログラミングは,人間が読むのに適した形でのドキュメンテーションとソースの組合わせです.実際,文芸的プログラムは楽しい読み物であるべきであり,さらには参加し
21499 たいとさえ思わせるべきなのです!(ボブ,ごめん.言わずにはいれなかった.)一般的に,文芸プログラムは,ソースとドキュメンテーションを同一ファイル上に結合したもの
21500 です.そして,文芸プログラミングツールは,ファイルを解析して,読むことのできるドキュメンテーションか,あるいはコンパイル可能なソースを生成します.文芸プログラミ
21501 ングのWEBスタイルは,D.
21502 \begin_inset space \thinspace{}
21503 \end_inset
21504
21505 E.
21506  Knuthが,\SpecialChar TeX
21507 組版ソフトウエアを開発中に作り出したものです.
21508 \end_layout
21509
21510 \begin_layout Standard
21511 他のエキスパートの発言です.
21512 \end_layout
21513
21514 \begin_layout Quotation
21515
21516 \emph on
21517 文芸プログラミングは,冗長なコメント付けと何が違いますか?
21518 \end_layout
21519
21520 \begin_layout Quotation
21521 3つの際立った特徴があります.重要な順に列挙すれば,
21522 \end_layout
21523
21524 \begin_deeper
21525 \begin_layout Itemize
21526 推敲の順序が柔軟
21527 \end_layout
21528
21529 \begin_layout Itemize
21530 ブラウジングの自動サポート
21531 \end_layout
21532
21533 \begin_layout Itemize
21534 特に図式と数式を含んだドキュメンテーションの組版
21535 \end_layout
21536
21537 \end_deeper
21538 \begin_layout Quotation
21539 などがあります.
21540 \end_layout
21541
21542 \begin_layout Standard
21543 あなたの興味に火を付けたところで書誌情報を見てみましょう.
21544 \end_layout
21545
21546 \begin_layout Subsubsection
21547 書誌情報
21548 \end_layout
21549
21550 \begin_layout Standard
21551 完全な文芸プログラミング FAQは
21552 \end_layout
21553
21554 \begin_layout Quote
21555 Literate Programming FAQ 
21556 \begin_inset Flex URL
21557 status collapsed
21558
21559 \begin_layout Plain Layout
21560
21561 http://www.xmarks.com/site/shelob.ce.ttu.edu/daves/lpfaq/faq.html
21562 \end_layout
21563
21564 \end_inset
21565
21566
21567 \end_layout
21568
21569 \begin_layout Standard
21570 にあります.
21571 \end_layout
21572
21573 \begin_layout Standard
21574 このFAQには,23(二十三です!)の文芸プログラミング用ツールが列挙されています.一部のツールは,特定のプログラミング言語用に特化したものですが,一般的な対象
21575 を持つものもあります.私は自分で使うのに,いくつかの理由から
21576 \noun on
21577 Noweb
21578 \noun default
21579 を選びました.
21580 \end_layout
21581
21582 \begin_layout Itemize
21583 説明文書を\SpecialChar LaTeX
21584 でもHTMLでも出力できる.
21585 \end_layout
21586
21587 \begin_layout Itemize
21588 オープンアーキテクチャを持っているので,新しいフィルタをプラグインとして加えたり
21589 \begin_inset Foot
21590 status collapsed
21591
21592 \begin_layout Plain Layout
21593
21594 \emph on
21595 フィルタ
21596 \emph default
21597 は,与えられたデータストリームを読み込み,操作されたデータストリームを出力するプログラムです.このようにして,(文芸コードを含んだ)WEBファイルを,Cプログラ
21598 ムコードや\SpecialChar LaTeX
21599 コードのみを含むファイルに変換することができます.
21600 \end_layout
21601
21602 \end_inset
21603
21604 ,自分が必要な特別な処理を実行することが容易である.
21605 \end_layout
21606
21607 \begin_layout Itemize
21608 すでに利用可能となっているフィルタの良質なコレクションがある(HTMLはその一つです).
21609 \end_layout
21610
21611 \begin_layout Itemize
21612 無料である.
21613 \end_layout
21614
21615 \begin_layout Standard
21616 Nowebのウェブページは
21617 \end_layout
21618
21619 \begin_layout Quote
21620 Nowebホームページ 
21621 \begin_inset Flex URL
21622 status collapsed
21623
21624 \begin_layout Plain Layout
21625
21626 https://www.cs.tufts.edu/~nr/noweb/
21627 \end_layout
21628
21629 \end_inset
21630
21631
21632 \end_layout
21633
21634 \begin_layout Standard
21635 にあります.ここから始めれば,たくさんの興味深いリンクや,文芸プログラミングの用例にたどり着くことができます.
21636 \end_layout
21637
21638 \begin_layout Subsection
21639 \SpecialChar LyX
21640 とNowebを使った文芸プログラミング
21641 \end_layout
21642
21643 \begin_layout Standard
21644 \SpecialChar LyX
21645 における文芸プログラミングのサポートは,\SpecialChar LyX
21646 の汎用変換機構を使用して実現しています.このサポートは「Noweb非依存」的な方法で提供されているので,LyXの設定を変
21647 更するだけで,自分の好きな他の文芸プログラミングツールを使って,この新しい\SpecialChar LyX
21648 の機能を利用することができます.
21649 \end_layout
21650
21651 \begin_layout Subsubsection
21652 ドキュメントとコードの生成(weavingおよびtangling)
21653 \end_layout
21654
21655 \begin_layout Paragraph
21656 nowebモジュールの使用
21657 \end_layout
21658
21659 \begin_layout Standard
21660 Nowebと\SpecialChar LyX
21661 の導入に成功したならば,新規文書を開いたときにはいつも,文書クラスを選択した後,
21662 \family sans
21663 文書\SpecialChar menuseparator
21664 設定
21665 \family default
21666 メニューで「noweb」モジュールを追加するようにしてください.Nowebが正しく導入されていれば,「モジュール」リンクをクリックした際,利用可能リストに「no
21667 web」モジュールが表示され,文書に追加できるようになっています.
21668 \end_layout
21669
21670 \begin_layout Paragraph
21671 コードの入力
21672 \end_layout
21673
21674 \begin_layout Standard
21675 \SpecialChar LyX
21676 では,
21677 \begin_inset Flex Noun
21678 status collapsed
21679
21680 \begin_layout Plain Layout
21681 Chunk
21682 \end_layout
21683
21684 \end_inset
21685
21686 という名前の拡張差込枠を使えば,コードを入力することができます.Nowebは次のようにchunks を区切ります.
21687 \end_layout
21688
21689 \begin_layout LyX-Code
21690 <<My code>>=
21691 \end_layout
21692
21693 \begin_layout LyX-Code
21694   code
21695 \end_layout
21696
21697 \begin_layout LyX-Code
21698   more code
21699 \end_layout
21700
21701 \begin_layout LyX-Code
21702   even more code
21703 \end_layout
21704
21705 \begin_layout LyX-Code
21706   @
21707 \end_layout
21708
21709 \begin_layout Standard
21710 問題は<<と@の間にあるものを完全にそのままの形で扱わなければならないことです.つまり,\SpecialChar LyX
21711 は,この間に書かれたものを特別に解釈することは決してあってはなりません.
21712 これも
21713 \begin_inset Flex Noun
21714 status collapsed
21715
21716 \begin_layout Plain Layout
21717 Chunk
21718 \end_layout
21719
21720 \end_inset
21721
21722 によって取り扱われ,通常のテキスト差込枠のように見えますが,自由に空白を入れることができます.
21723 \end_layout
21724
21725 \begin_layout Standard
21726 特殊な注釈として,chunk内でNowebの「%def」を使えば,Nowebのidentifierの相互参照に項目を加えることができます.次の例を見てください.
21727 \end_layout
21728
21729 \begin_layout LyX-Code
21730 <<My chunk>>=
21731 \end_layout
21732
21733 \begin_layout LyX-Code
21734 def some_function(args):
21735 \end_layout
21736
21737 \begin_layout LyX-Code
21738    "This is the doc string for this function."
21739 \end_layout
21740
21741 \begin_layout LyX-Code
21742    print "My args: ", args
21743 \end_layout
21744
21745 \begin_layout LyX-Code
21746 @ %def some_function
21747 \end_layout
21748
21749 \begin_layout Standard
21750 これをどのように使って,その結果相互参照がどうなるかは
21751 \emph on
21752 LIBDIR/examples/listerrors.lyx
21753 \emph default
21754 の中の文芸pythonプログラムを見るとよくわかります.
21755 \end_layout
21756
21757 \begin_layout Paragraph
21758 説明文書の生成
21759 \end_layout
21760
21761 \begin_layout Standard
21762 この時点で,適切な文書クラスを持ち,いくつかのコードとテキストが入った新規文書ファイルが作成されているはずです.これをどうやって印刷したらいいのでしょう.答えは
21763 簡単で,通常の文書で行うように
21764 \family sans
21765 文書\SpecialChar menuseparator
21766 表示
21767 \family default
21768 等を選ぶだけです.特別な手続きは必要ありません.
21769 \end_layout
21770
21771 \begin_layout Standard
21772 理解を助けるために,\SpecialChar LyX
21773 の内部で何が起っているかを説明しておきましょう.
21774 \end_layout
21775
21776 \begin_layout Enumerate
21777
21778 \family sans
21779 文書\SpecialChar menuseparator
21780 更新
21781 \family default
21782 が選択されると,\SpecialChar LaTeX
21783 ファイルがつくられます.
21784 \end_layout
21785
21786 \begin_deeper
21787 \begin_layout Standard
21788 文書が文芸プログラミング用のクラスであった場合には,拡張子に(
21789 \begin_inset Flex MenuItem
21790 status collapsed
21791
21792 \begin_layout Plain Layout
21793 設定
21794 \end_layout
21795
21796 \end_inset
21797
21798 パネルで設定した)文芸プログラム用のものがつけられます.それ以外は .texが拡張子に使われます.
21799 \end_layout
21800
21801 \end_deeper
21802 \begin_layout Enumerate
21803 違いがファイル名だけなのに注意してください.\SpecialChar LyX
21804 による特別な処理は必要ありません.
21805 \begin_inset Flex Noun
21806 status collapsed
21807
21808 \begin_layout Plain Layout
21809 Chunk
21810 \end_layout
21811
21812 \end_inset
21813
21814 差込枠でコードを入力するのだけがポイントです.
21815 \end_layout
21816
21817 \begin_layout Enumerate
21818 文書が何らかの文芸プログラムクラスなら,\SpecialChar LyX
21819 は,\SpecialChar LyX
21820 からNowebへの内部変換子を用い,それからNowebから\SpecialChar LaTeX
21821 への変換子
21822 \begin_inset Foot
21823 status collapsed
21824
21825 \begin_layout Plain Layout
21826 これらの変換子は,
21827 \family sans
21828 ツール\SpecialChar menuseparator
21829 設定
21830 \family default
21831 パネルの変換子タブに定義されています.変換子の一般的な情報については,取扱説明書『
21832 \emph on
21833 カスタマイズ篇
21834 \emph default
21835 』の「
21836 \emph on
21837 変換子
21838 \emph default
21839 」の節をご覧ください.
21840 \end_layout
21841
21842 \end_inset
21843
21844 を使って\SpecialChar LaTeX
21845 ファイルを生成します.
21846 \end_layout
21847
21848 \begin_deeper
21849 \begin_layout Standard
21850 それ以外の場合はこのステップを飛ばします.
21851 \end_layout
21852
21853 \end_deeper
21854 \begin_layout Enumerate
21855 最後に\SpecialChar LaTeX
21856 が実行され,通常の文書と同じ後処理が行われます.
21857 \end_layout
21858
21859 \begin_layout Standard
21860 様々な変換子が実行するコマンドを変更すれば,簡単に,特定の「文芸プログラムツール」から変更することができます.
21861 \end_layout
21862
21863 \begin_layout Paragraph
21864 コードの生成
21865 \end_layout
21866
21867 \begin_layout Standard
21868 ビルドメニューが選ばれた場合や,それに対応するツールバーのボタンが押された場合,上のステップ1と同様に\SpecialChar LaTeX
21869 ファイルが生成されます.それから\SpecialChar LyX
21870
21871 \family typewriter
21872 Noweb->Program
21873 \family default
21874 のコンバータを起動します.通常は,このコンバータは(他のコンバータと同じように)2つの部分からできています.
21875 \end_layout
21876
21877 \begin_layout Enumerate
21878 変換プログラム.このプログラムは,一つのフォーマットから他のフォーマットへの変換を行います(この場合は,Nowebフォーマットからプログラムの疑似フォーマットへ
21879 変換します).
21880 \end_layout
21881
21882 \begin_layout Enumerate
21883 エラーログ解析子.これはエラーメッセージを\SpecialChar LyX
21884 が理解できる形へ書き直します.これによって,\SpecialChar LyX
21885 はファイルバッファの正しい位置へエラーボックスを配置することができます.
21886 \end_layout
21887
21888 \begin_layout Standard
21889 冒頭部,「変換子」設定は
21890 \end_layout
21891
21892 \begin_layout LyX-Code
21893
21894 \family typewriter
21895 build-script $$i $$r
21896 \end_layout
21897
21898 \begin_layout Standard
21899 と指定します.これは基本的に,\SpecialChar LyX
21900
21901 \begin_inset Quotes erd
21902 \end_inset
21903
21904
21905 \family typewriter
21906 build-script
21907 \family default
21908
21909 \begin_inset Quotes erd
21910 \end_inset
21911
21912 (プログラムかスクリプト名)を(一般には\SpecialChar LyX
21913 の一時ファイル用のディレクトリにつくられる),Nowebファイルの名前と元の\SpecialChar LyX
21914 ファイルのディレクトリパスを使って呼び出すこ
21915 とを意味しています.
21916 \end_layout
21917
21918 \begin_layout Standard
21919 以下に「build-script」の一例を書いておきます.パスが通っているディレクトリに置いて使います.
21920 \end_layout
21921
21922 \begin_layout LyX-Code
21923
21924 \family sans
21925 #!/bin/sh
21926 \end_layout
21927
21928 \begin_layout LyX-Code
21929
21930 \family sans
21931 #
21932 \end_layout
21933
21934 \begin_layout LyX-Code
21935
21936 \family sans
21937 notangle -Rbuild-script $1 | env NOWEB_SOURCE=$1 NOWEB_OUTPUT_DIR=$2 sh
21938 \end_layout
21939
21940 \begin_layout Standard
21941 変換子設定の次の部分は「フラグ」で,これは
21942 \end_layout
21943
21944 \begin_layout LyX-Code
21945
21946 \family typewriter
21947 parselog=$$s/scripts/listerrors
21948 \end_layout
21949
21950 \begin_layout Standard
21951 に設定されます.
21952 \begin_inset Newline newline
21953 \end_inset
21954
21955 これは,
21956 \begin_inset Quotes erd
21957 \end_inset
21958
21959 build-script
21960 \begin_inset Quotes erd
21961 \end_inset
21962
21963 プロセスが生成したエラーを
21964 \begin_inset Quotes erd
21965 \end_inset
21966
21967 listerrors
21968 \begin_inset Quotes erd
21969 \end_inset
21970
21971 プログラムを介して処理するものです.
21972 \end_layout
21973
21974 \begin_layout Standard
21975 ビルドは,通常\SpecialChar LyX
21976 の一時ディレクトリで行われるので,変換によって生成されたファイルはそのディレクトリに置かれます.\SpecialChar LyX
21977 は,主要ファイルとみなされるものをコピーして取り出
21978 しますが,
21979 \family typewriter
21980 Noweb→プログラム
21981 \family default
21982 変換は複数のファイルを生成することがあるので,\SpecialChar LyX
21983 を閉じる際に大半が削除される可能性があります.これが,NOWEB_OUTPUT_DIR環境変数を渡して,build
21984 -script chunkが生成したファイルをその場所に置かれるようにする理由です.
21985 \end_layout
21986
21987 \begin_layout Paragraph
21988 文章中でのプログラムの構築操作の説明
21989 \end_layout
21990
21991 \begin_layout Standard
21992 \SpecialChar LyX
21993 とNowebの統合の最後の部分は,
21994 \begin_inset Quotes eld
21995 \end_inset
21996
21997 build-script
21998 \begin_inset Quotes erd
21999 \end_inset
22000
22001  chunkです.一般に,あなたのプログラムの構築操作の説明それ自身をchunkに入れて文章中に含めなければなりません.上の例のnoweb用のbuild-scr
22002 iptでは,chunkを見つけるのにnotangleコマンドを使い,shを使って起動します.
22003 \end_layout
22004
22005 \begin_layout Standard
22006 以下に典型的なchunkがどのようなものかを書いておきます.
22007 \end_layout
22008
22009 \begin_layout LyX-Code
22010 <<build-script>>=
22011 \begin_inset Newline newline
22012 \end_inset
22013
22014
22015 \end_layout
22016
22017 \begin_layout LyX-Code
22018 #!/bin/sh
22019 \begin_inset Newline newline
22020 \end_inset
22021
22022
22023 \begin_inset Newline newline
22024 \end_inset
22025
22026 if [ -z "${NOWEB_SOURCE}" ]
22027 \begin_inset Newline newline
22028 \end_inset
22029
22030 then
22031 \end_layout
22032
22033 \begin_layout LyX-Code
22034 NOWEB_SOURCE=myfile.nw
22035 \begin_inset Newline newline
22036 \end_inset
22037
22038 fi
22039 \begin_inset Newline newline
22040 \end_inset
22041
22042 [...
22043  code to extract files ...
22044  use NOWEB_OUTPUT_DIR here ...]
22045 \begin_inset Newline newline
22046 \end_inset
22047
22048 [...
22049  code to compile files ...]
22050 \begin_inset Newline newline
22051 \end_inset
22052
22053 @
22054 \end_layout
22055
22056 \begin_layout Standard
22057
22058 \emph on
22059 LIBDIR/examples/listerrors.lyx
22060 \emph default
22061
22062 \emph on
22063 LIBDIR/examples/Literate.lyx
22064 \emph default
22065 を見てください.この2つのファイルには異なる実装のlisterrorsプログラムが含まれていて,これまで説明してきた各々の部分が全体としてどのようになるかをわか
22066 ってもらうための例です.また,
22067 \emph on
22068 LIBDIR/examples/noweb2lyx.lyx
22069 \emph default
22070 も見てください.面白いことに,これらの3つのファイルは,Python,C,Perlが各々使われていて,\SpecialChar LyX
22071 の文芸プログラミングのサポートがプログラム言語に依存しない
22072 ことを示しています.
22073 \end_layout
22074
22075 \begin_layout Subsubsection
22076 \SpecialChar LyX
22077 の設定
22078 \end_layout
22079
22080 \begin_layout Standard
22081 すべての文芸プログラムのための設定は,
22082 \family sans
22083 ツール\SpecialChar menuseparator
22084 設定
22085 \family default
22086 パネルの「ファイル処理」タブですることができます.重要な部分を見ておきましょう.
22087 \end_layout
22088
22089 \begin_layout Description
22090 「NoWeb」形式 ファイル形式タブで設定します.ここで,Noweb特有の設定を行います.
22091 \family sans
22092 GUI名
22093 \family default
22094
22095 \family typewriter
22096 NoWeb
22097 \family default
22098 に,拡張子を
22099 \family typewriter
22100 .nw
22101 \family default
22102 に設定してください.これによって,\SpecialChar LyX
22103 に変換プロセスの第一段階でつくられるファイルに
22104 \family typewriter
22105 .nw
22106 \family default
22107 という拡張子をつけることを指示します.
22108 \end_layout
22109
22110 \begin_layout Description
22111 プログラム形式 これは,変換の終着点を示すためだけの,空の形式です(これがあることで,変換子を作ることができます).
22112 \end_layout
22113
22114 \begin_layout Description
22115
22116 \family sans
22117 NoWeb
22118 \family default
22119 ->
22120 \family sans
22121 \SpecialChar LaTeX
22122
22123 \family default
22124  この変換子は,文芸的文書の「weaving」を行います.Nowebの場合,「
22125 \family typewriter
22126 noweave -delay -index $$i > $$o
22127 \family default
22128 」に設定されます.
22129 \end_layout
22130
22131 \begin_layout Description
22132
22133 \family sans
22134 NoWeb
22135 \family default
22136 ->
22137 \family sans
22138 Program
22139 \family default
22140  これは「tangling」を行います.上述のように,変換子は「
22141 \family typewriter
22142 build-script $$i $$r
22143 \family default
22144 」,フラグは「
22145 \family typewriter
22146 parselog=$$s/scripts/listerrors
22147 \family default
22148 」となります.
22149 \end_layout
22150
22151 \begin_layout Subsubsection
22152 デバッグ機能拡張
22153 \end_layout
22154
22155 \begin_layout Standard
22156 ddd/gdbまたは他のデバッガで使える「server-goto-file-row」関数が新たに\SpecialChar LyX
22157 サーバに実装されました.
22158 \end_layout
22159
22160 \begin_layout Standard
22161 ddd/gdbでデバッグしているとき,一つの
22162 \begin_inset Flex Ruby
22163 status collapsed
22164
22165 \begin_layout Plain Layout
22166
22167 \begin_inset Argument post:1
22168 status collapsed
22169
22170 \begin_layout Plain Layout
22171 キー
22172 \end_layout
22173
22174 \end_inset
22175
22176
22177 \end_layout
22178
22179 \end_inset
22180
22181 ストロークで現在実行している位置でテキストエディタを起動できます.既定のdddの設定ではShift-Ctrl-Vになっています.この設定はdddで
22182 \begin_inset Flex MenuItem
22183 status collapsed
22184
22185 \begin_layout Plain Layout
22186 ツール\SpecialChar menuseparator
22187 設定\SpecialChar menuseparator
22188 ファイル書式
22189 \end_layout
22190
22191 \end_inset
22192
22193 ウインドウを表示して,
22194 \begin_inset Flex MenuItem
22195 status collapsed
22196
22197 \begin_layout Plain Layout
22198 編集プログラム
22199 \end_layout
22200
22201 \end_inset
22202
22203 エントリを変えると変えることができます.
22204 \end_layout
22205
22206 \begin_layout Standard
22207 新しい\SpecialChar LyX
22208 サーバの関数と,このdddの機能を使うために
22209 \begin_inset Flex MenuItem
22210 status collapsed
22211
22212 \begin_layout Plain Layout
22213 編集プログラム
22214 \end_layout
22215
22216 \end_inset
22217
22218 を次のように設定してください.
22219 \end_layout
22220
22221 \begin_layout LyX-Code
22222
22223 \family sans
22224 echo "LYXCMD:monitor:server-goto-file-row:@FILE@ @LINE@" >~/.lyxpipe.in
22225 \end_layout
22226
22227 \begin_layout Standard
22228 こうしておくとdddを使っていてプログラムの編集したい場所があったとき,(dddのウインドウで)Shift-Ctrl-Vを押すだけでdddは\SpecialChar LyX
22229 サーバに情報を送り,\SpecialChar LyX
22230
22231 は同じファイルを表示し,カーソルはdddが示した場所へあらわれます.これでもうデバッグの最中に推測しながらスクロールして場所を探す必要がなくなります.
22232 \end_layout
22233
22234 \begin_layout Standard
22235 この機能が動くには\SpecialChar LyX
22236 サーバが利用可能でなければなりません(既定では\SpecialChar LyX
22237 サーバーは使えないようになっています).
22238 \end_layout
22239
22240 \begin_layout Standard
22241
22242 \begin_inset CommandInset ref
22243 LatexCommand ref
22244 reference "sec:サーバーを開始するには"
22245
22246 \end_inset
22247
22248 節にその方法が説明されています.
22249 \end_layout
22250
22251 \begin_layout Subsubsection
22252 ツールバー拡張
22253 \end_layout
22254
22255 \begin_layout Standard
22256 ツールバーに加えることのできる6つの新しいボタンがあります.そのうちの4つのボタンは
22257 \family sans
22258 標準
22259 \family default
22260 ・節・
22261 \family sans
22262 \SpecialChar LaTeX
22263
22264 \family default
22265
22266 \family sans
22267 \SpecialChar LyX
22268 コード
22269 \family default
22270 の段落環境へのショートカットであり,1つは拡張差込枠
22271 \family sans
22272 Chunk
22273 \family default
22274 へのショートカットです.最後の一つはファイルメニュー項目の「Build Program」への
22275 \begin_inset Flex Ruby
22276 status collapsed
22277
22278 \begin_layout Plain Layout
22279
22280 \family roman
22281 \series medium
22282 \shape up
22283 \size normal
22284 \emph off
22285 \bar no
22286 \noun off
22287 \color none
22288 捷径
22289 \family default
22290 \series default
22291 \shape default
22292 \size default
22293 \emph default
22294 \bar default
22295 \noun default
22296 \color inherit
22297
22298 \begin_inset Argument post:1
22299 status collapsed
22300
22301 \begin_layout Plain Layout
22302 ショートカット
22303 \end_layout
22304
22305 \end_inset
22306
22307
22308 \end_layout
22309
22310 \end_inset
22311
22312 です.
22313 \end_layout
22314
22315 \begin_layout Standard
22316 \SpecialChar LyX
22317 はツールバーで使うためのいくつものボタンを用意しています.私のツールバーはこの6つのショートカットに
22318 \begin_inset Flex MenuItem
22319 status collapsed
22320
22321 \begin_layout Plain Layout
22322 文書\SpecialChar menuseparator
22323 更新\SpecialChar menuseparator
22324 DVI
22325 \end_layout
22326
22327 \end_inset
22328
22329
22330 \begin_inset Flex MenuItem
22331 status collapsed
22332
22333 \begin_layout Plain Layout
22334 文書\SpecialChar menuseparator
22335 表示\SpecialChar menuseparator
22336 DVI
22337 \end_layout
22338
22339 \end_inset
22340
22341 を組み合わせたものになっています.
22342 \end_layout
22343
22344 \begin_layout LyX-Code
22345 Toolbar
22346 \end_layout
22347
22348 \begin_layout LyX-Code
22349   Layouts
22350 \end_layout
22351
22352 \begin_layout LyX-Code
22353   Icon "layout Standard"
22354 \end_layout
22355
22356 \begin_layout LyX-Code
22357   Icon "layout Section"
22358 \end_layout
22359
22360 \begin_layout LyX-Code
22361   Icon "layout latex"
22362 \end_layout
22363
22364 \begin_layout LyX-Code
22365   Icon "layout \SpecialChar LyX
22366 -Code"
22367 \end_layout
22368
22369 \begin_layout LyX-Code
22370   Icon "flex.insert Chunk"
22371 \end_layout
22372
22373 \begin_layout LyX-Code
22374   Separator
22375 \end_layout
22376
22377 \begin_layout LyX-Code
22378   Icon "buffer-view"
22379 \end_layout
22380
22381 \begin_layout LyX-Code
22382   Icon "buffer-typeset"
22383 \end_layout
22384
22385 \begin_layout LyX-Code
22386   Icon "build-program"
22387 \end_layout
22388
22389 \begin_layout LyX-Code
22390   Separator
22391 \end_layout
22392
22393 \begin_layout LyX-Code
22394 .
22395 \end_layout
22396
22397 \begin_layout LyX-Code
22398 .
22399 \end_layout
22400
22401 \begin_layout LyX-Code
22402 .
22403 \end_layout
22404
22405 \begin_layout LyX-Code
22406 End
22407 \end_layout
22408
22409 \begin_layout Subsubsection
22410 色の変更
22411 \end_layout
22412
22413 \begin_layout Standard
22414 \SpecialChar LyX
22415 ではいくつもの色を
22416 \begin_inset Flex MenuItem
22417 status collapsed
22418
22419 \begin_layout Plain Layout
22420 設定
22421 \end_layout
22422
22423 \end_inset
22424
22425 で変えることができます.人々が困りがちなのは,\SpecialChar LaTeX
22426 フォント色でしょう.これは,既定では赤になっていますが,chunkは\SpecialChar LaTeX
22427 フォントを使うことになっていて,文芸プログラミ
22428 ング文書には多くのchunkが現れるために,すべて赤で見ていると疲れてしまうかもしれません.これは,
22429 \begin_inset Flex MenuItem
22430 status collapsed
22431
22432 \begin_layout Plain Layout
22433 操作性\SpecialChar menuseparator
22434
22435 \end_layout
22436
22437 \end_inset
22438
22439 タブで変更することができます.
22440 \end_layout
22441
22442 \begin_layout Standard
22443 もう一つは,改行文字が画面に表示されていることでしょう.改行文字の色を背景の色と同じにすることで改行文字を見えなくできます.私は改行文字を背景の色に似ているが少
22444 し違う色にすることを勧めます.こうすると,改行文字があるのはわかりますが,じゃまにならないでしょう.
22445 \end_layout
22446
22447 \begin_layout Subsection
22448 \SpecialChar LyX
22449 とknitr/Sweave
22450 \end_layout
22451
22452 \begin_layout Standard
22453 knitrとSweaveへのサポートについては,用例ファイル
22454 \emph on
22455 knitr.lyx
22456 \emph default
22457 とSweave取扱説明書(
22458 \family sans
22459 ヘルプ\SpecialChar menuseparator
22460 用途別説明書
22461 \family default
22462 メニュー)に説明があります.
22463 \end_layout
22464
22465 \begin_layout Chapter
22466 特殊機能
22467 \begin_inset CommandInset label
22468 LatexCommand label
22469 name "chap:Special-features"
22470
22471 \end_inset
22472
22473
22474 \end_layout
22475
22476 \begin_layout Standard
22477 \SpecialChar LyX
22478 では,\SpecialChar LaTeX
22479 で可能なことは何でも出来ます.すべての\SpecialChar LaTeX
22480 の機能を直接サポートできるわけではありませんが,どんな場合でも\SpecialChar TeX
22481 コードを使用することはできます.本章は,ユーザの興味が
22482 有りそうな特別な機能について,若干取り上げます.図表やフロート,ボックス,注釈に関する特別な機能については,取扱説明書『
22483 \emph on
22484 埋込オブジェクト篇
22485 \emph default
22486 』をご参照ください.
22487 \end_layout
22488
22489 \begin_layout Section
22490 多段組
22491 \end_layout
22492
22493 \begin_layout Standard
22494 この機能は,文書設定の
22495 \family sans
22496 本文レイアウト
22497 \family default
22498 にある
22499 \family sans
22500 二段組文書
22501 \family default
22502 とは別の機能です.文書全体に二段組を行いたい場合には,
22503 \family sans
22504 二段組文書
22505 \family default
22506 オプションを利用することをお勧めします.その他の場合には,本機能をご使用ください.
22507 \end_layout
22508
22509 \begin_layout Standard
22510 文書中で多段組を行うには,\SpecialChar LaTeX
22511 パッケージ
22512 \begin_inset Flex Code
22513 status collapsed
22514
22515 \begin_layout Plain Layout
22516 multicol
22517 \end_layout
22518
22519 \end_inset
22520
22521
22522 \begin_inset Index idx
22523 status collapsed
22524
22525 \begin_layout Plain Layout
22526 \SpecialChar LaTeX
22527 ぱっけーじ @ \SpecialChar LaTeX
22528 パッケージ ! multicol
22529 \end_layout
22530
22531 \end_inset
22532
22533 を導入した上で,(
22534 \family sans
22535 文書\SpecialChar menuseparator
22536 設定\SpecialChar menuseparator
22537 モジュール
22538 \family default
22539 メニューから)
22540 \family sans
22541 多段組
22542 \family default
22543 モジュールを読み込んでください.
22544 \end_layout
22545
22546 \begin_layout Standard
22547 多段組中の脚注は,ページ下部に置かれ,各段の下ごとには置かれません.各段においては,フロートに
22548 \family sans
22549 段をまたぐ
22550 \family default
22551 オプションを使用する必要があるほかは,通常通りの使用をすることができます.
22552 \end_layout
22553
22554 \begin_layout Subsection
22555 基本
22556 \end_layout
22557
22558 \begin_layout Standard
22559 文章中で二段組を使用したい場合には,段組を始める場所で
22560 \family sans
22561 挿入\SpecialChar menuseparator
22562 任意設定差込枠\SpecialChar menuseparator
22563 多段組
22564 \family default
22565 メニューを使用して,多段組差込枠を挿入してください.二段組で印字されるべき文章は,全てこの差込枠の中に書いてください.
22566 \end_layout
22567
22568 \begin_layout Standard
22569 下記はその用例です.
22570 \end_layout
22571
22572 \begin_layout Standard
22573 \noindent
22574 \begin_inset Flex Multiple Columns
22575 status open
22576
22577 \begin_layout Plain Layout
22578 \noindent
22579
22580 \series bold
22581 \size small
22582 The Adventure of the Empty House
22583 \series default
22584
22585 \begin_inset Newline newline
22586 \end_inset
22587
22588 by Sir Arthur Conan Doyle
22589 \end_layout
22590
22591 \begin_layout Plain Layout
22592
22593 \size small
22594 It was in the spring of the year 1894 that all London was interested, and
22595  the fashionable world dismayed, by the murder of the Honourable Ronald
22596  Adair under most unusual and inexplicable circumstances.
22597  The public has already learned those particulars of the crime which came
22598  out in the police investigation, but a good deal was suppressed upon that
22599  occasion, since the case for the prosecution was so overwhelmingly strong
22600  that it was not necessary to bring forward all the facts.
22601  Only now, at the end of nearly ten years, am I allowed to supply those
22602  missing links which make up the whole of that remarkable chain.
22603  The crime was of interest in itself, but that interest was as nothing to
22604  me compared to the inconceivable sequel, which afforded me the greatest
22605  shock and surprise of any event in my adventurous life.
22606  Even now, after this long interval, I find myself thrilling as I think
22607  of it, and feeling once more that sudden flood of joy, amazement, and increduli
22608 ty which utterly submerged my mind.
22609  Let me say to that public, which has shown some interest in those glimpses
22610  which I have occasionally given them of the thoughts and actions of a very
22611  remarkable man, that they are not to blame me if I have not shared my knowledge
22612  with them, for I should have considered it my first duty to do so, had
22613  I not been barred by a positive prohibition from his own lips, which was
22614  only withdrawn upon the third of last month.
22615 \end_layout
22616
22617 \end_inset
22618
22619
22620 \end_layout
22621
22622 \begin_layout Standard
22623 三段以上にするには,カーソルを多段組差込枠の内部において,挿入\SpecialChar menuseparator
22624 段数メニューを使用してください.この差込枠の中に,欲しい段数を書き入れます(三段組の場合には「3」
22625 と書きます).
22626 \begin_inset Newline newline
22627 \end_inset
22628
22629 下記は三段組の例です.
22630 \end_layout
22631
22632 \begin_layout Standard
22633 \begin_inset Flex Multiple Columns
22634 status open
22635
22636 \begin_layout Plain Layout
22637
22638 \size footnotesize
22639 \begin_inset Argument 1
22640 status open
22641
22642 \begin_layout Plain Layout
22643
22644 3
22645 \end_layout
22646
22647 \end_inset
22648
22649 It can be imagined that my close intimacy with Sherlock Holmes had interested
22650  me deeply in crime, and that after his disappearance I never failed to
22651  read with care the various problems which came before the public.
22652  And I even attempted, more than once, for my own private satisfaction,
22653  to employ his methods in their solution, though with indifferent success.
22654  There was none, however, which appealed to me like this tragedy of Ronald
22655  Adair.
22656  As I read the evidence at the inquest, which led up to a verdict of willful
22657  murder against some person or persons unknown, I realized more clearly
22658  than I had ever done the loss which the community had sustained by the
22659  death of Sherlock Holmes.
22660  There were points about this strange business which would, I was sure,
22661  have specially appealed to him, and the efforts of the police would have
22662  been supplemented, or more probably anticipated, by the trained observation
22663  and the alert mind of the first criminal agent in Europe.
22664  All day, as I drove upon my round, I turned over the case in my mind and
22665  found no explanation which appeared to me to be adequate.
22666  At the risk of telling a twice-told tale, I will recapitulate the facts
22667  as they were known to the public at the conclusion of the inquest.
22668 \end_layout
22669
22670 \end_inset
22671
22672
22673 \end_layout
22674
22675 \begin_layout Standard
22676 お望みならば10段組まで組むことができますが,文書の読者にとっては,あまり気持ちのいいものではないでしょう.
22677 \end_layout
22678
22679 \begin_layout Standard
22680 \begin_inset Newpage newpage
22681 \end_inset
22682
22683
22684 \end_layout
22685
22686 \begin_layout Subsection
22687 段組中の段組
22688 \end_layout
22689
22690 \begin_layout Standard
22691 また,段中に段を組むこともできます.
22692 \end_layout
22693
22694 \begin_layout Standard
22695 \begin_inset Flex Multiple Columns
22696 status open
22697
22698 \begin_layout Plain Layout
22699
22700 \size footnotesize
22701 The Honourable Ronald Adair was the second son of the Earl of Maynooth,
22702  at that time governor of one of the Australian colonies.
22703  Adair's mother had returned from Australia to undergo the operation for
22704  cataract, and she, her son Ronald, and her daughter Hilda were living together
22705  at 427 Park Lane.
22706 \end_layout
22707
22708 \begin_layout Plain Layout
22709 \begin_inset Flex Multiple Columns
22710 status open
22711
22712 \begin_layout Plain Layout
22713
22714 \size footnotesize
22715 The youth moved in the best society–had, so far as was known, no enemies
22716  and no particular vices.
22717  He had been engaged to Miss Edith Woodley, of Carstairs, but the engagement
22718  had been broken off by mutual consent some months before, and there was
22719  no sign that it had left any very profound feeling behind it.
22720  For the rest {sic} the man's life moved in a narrow and conventional circle,
22721  for his habits were quiet and his nature unemotional.
22722  Yet it was upon this easy-going young aristocrat that death came, in most
22723  strange and unexpected form, between the hours of ten and eleven-twenty
22724  on the night of March 30, 1894.
22725 \end_layout
22726
22727 \end_inset
22728
22729
22730 \end_layout
22731
22732 \begin_layout Plain Layout
22733
22734 \size footnotesize
22735 Ronald Adair was fond of cards–playing continually, but never for such stakes
22736  as would hurt him.
22737  He was a member of the Baldwin, the Cavendish, and the Bagatelle card clubs.
22738  It was shown that, after dinner on the day of his death, he had played
22739  a rubber of whist at the latter club.
22740  He had also played there in the afternoon.
22741
22742 \size default
22743  
22744 \size footnotesize
22745 The evidence of those who had played with him– Mr.
22746  Murray, Sir John Hardy, and Colonel Moran–showed that the game was whist,
22747  and that there was a fairly equal fall of the cards.
22748  Adair might have lost five pounds, but not more.
22749  His fortune was a considerable one, and such a loss could not in any way
22750  affect him.
22751  He had played nearly every day at one club or other, but he was a cautious
22752  player, and usually rose a winner.
22753  It came out in evidence that, in partnership with Colonel Moran, he had
22754  actually won as much as four hundred and twenty pounds in a sitting, some
22755  weeks before, from Godfrey Milner and Lord Balmoral.
22756  So much for his recent history as it came out at the inquest.
22757 \end_layout
22758
22759 \end_inset
22760
22761
22762 \end_layout
22763
22764 \begin_layout Subsection
22765 応用例
22766 \end_layout
22767
22768 \begin_layout Standard
22769 本節の用例は,多段組のさらに特別な機能を示すためのものです.
22770 \end_layout
22771
22772 \begin_layout Standard
22773 多段組機能についてさらに知りたい場合には,\SpecialChar LaTeX
22774 パッケージ
22775 \begin_inset Flex Code
22776 status collapsed
22777
22778 \begin_layout Plain Layout
22779 multicol
22780 \end_layout
22781
22782 \end_inset
22783
22784
22785 \begin_inset CommandInset href
22786 LatexCommand href
22787 name "取扱説明書"
22788 target "http://mirror.ctan.org/macros/latex/required/tools/multicol.pdf"
22789 literal "false"
22790
22791 \end_inset
22792
22793 をご覧ください.
22794 \end_layout
22795
22796 \begin_layout Subsubsection
22797 序文
22798 \end_layout
22799
22800 \begin_layout Standard
22801 多段組に序文を追記するには,カーソルを多段組差込枠内部に置き,
22802 \family sans
22803 挿入\SpecialChar menuseparator
22804 序文
22805 \family default
22806 メニューを使用してください.序文は,この差込枠内に書いてください.
22807 \begin_inset Newline newline
22808 \end_inset
22809
22810 序文のある文章の例を掲げます.
22811 \end_layout
22812
22813 \begin_layout Standard
22814 \begin_inset VSpace bigskip
22815 \end_inset
22816
22817
22818 \end_layout
22819
22820 \begin_layout Standard
22821 \begin_inset Flex Multiple Columns
22822 status open
22823
22824 \begin_layout Plain Layout
22825 \begin_inset Argument 2
22826 status open
22827
22828 \begin_layout Plain Layout
22829 And the story continues and continues and continues and continues\SpecialChar ldots
22830
22831 \end_layout
22832
22833 \end_inset
22834
22835
22836 \size small
22837 On the evening of the crime, he returned from the club exactly at ten.
22838  His mother and sister were out spending the evening with a relation.
22839  The servant deposed that she heard him enter the front room on the second
22840  floor, generally used as his sitting-room.
22841  She had lit a fire there, and as it smoked she had opened the window.
22842  No sound was heard from the room until eleven-twenty, the hour of the return
22843  of Lady Maynooth and her daughter.
22844  Desiring to say good-night, she attempted to enter her son's room.
22845  The door was locked on the inside, and no answer could be got to their
22846  cries and knocking.
22847  Help was obtained, and the door forced.
22848  The unfortunate young man was found lying near the table.
22849  His head had been horribly mutilated by an expanding revolver bullet, but
22850  no weapon of any sort was to be found in the room.
22851 \end_layout
22852
22853 \end_inset
22854
22855
22856 \end_layout
22857
22858 \begin_layout Standard
22859 最初の\SpecialChar TeX
22860 コードの後に,節宣言コマンドを\SpecialChar TeX
22861 コードとして使用すれば,節見出しを前書きとして使用することができます.例えば,
22862 \end_layout
22863
22864 \begin_layout Standard
22865
22866 \series bold
22867
22868 \backslash
22869 subsection{小節見出し}
22870 \end_layout
22871
22872 \begin_layout Standard
22873 というコマンドは,小節を生成します.以下の例では,前書きが小々節になっています.
22874 \end_layout
22875
22876 \begin_layout Standard
22877 \begin_inset Flex Multiple Columns
22878 status open
22879
22880 \begin_layout Plain Layout
22881 \begin_inset Argument 2
22882 status open
22883
22884 \begin_layout Plain Layout
22885 \begin_inset ERT
22886 status collapsed
22887
22888 \begin_layout Plain Layout
22889
22890
22891 \backslash
22892 subsubsection{
22893 \end_layout
22894
22895 \end_inset
22896
22897 これは序文の小々節見出しです
22898 \begin_inset ERT
22899 status collapsed
22900
22901 \begin_layout Plain Layout
22902
22903 }
22904 \end_layout
22905
22906 \end_inset
22907
22908
22909 \end_layout
22910
22911 \end_inset
22912
22913
22914 \size small
22915 A minute examination of the circumstances served only to make the case more
22916  complex.
22917  In the first place, no reason could be given why the young man should have
22918  fastened the door upon the inside.
22919  There was the possibility that the murderer had done this, and had afterwards
22920  escaped by the window.
22921  The drop was at least twenty feet, however, and a bed of crocuses in full
22922  bloom lay beneath.
22923  Neither the flowers nor the earth showed any sign of having been disturbed,
22924  nor were there any marks upon the narrow strip of grass which separated
22925  the house from the road.
22926  Apparently, therefore, it was the young man himself who had fastened the
22927  door.
22928  But how did he come by his death? No one could have climbed up to the window
22929  without leaving traces.
22930  Suppose a man had fired through the window, he would indeed be a remarkable
22931  shot who could with a revolver inflict so deadly a wound.
22932  Again, Park Lane is a frequented thoroughfare; there is a cab stand within
22933  a hundred yards of the house.
22934  No one had heard a shot.
22935 \end_layout
22936
22937 \end_inset
22938
22939
22940 \end_layout
22941
22942 \begin_layout Standard
22943 多段組を開始する部分に,必要とされる6行を確保出来るだけの垂直スペースがページに残されていない場合,多段組の前に改行が挿入されます.前書きの行数如何では,この必
22944 要行数を変更したいかもしれません.これは,カーソルを多段組差込枠内部の(もしあれば)序文の後に置き,
22945 \family sans
22946 挿入\SpecialChar menuseparator
22947 改頁前の余白
22948 \family default
22949 メニューを使用することで設定できます.この差込枠に,余白の大きさを「5cm」などと書き込んでください.
22950 \end_layout
22951
22952 \begin_layout Standard
22953 以下の例では,
22954 \begin_inset Flex Code
22955 status collapsed
22956
22957 \begin_layout Plain Layout
22958 7
22959 \backslash
22960 baselineskip
22961 \end_layout
22962
22963 \end_inset
22964
22965 を用いて,必要行数を7行に指定しています(コマンド
22966 \begin_inset Flex Code
22967 status collapsed
22968
22969 \begin_layout Plain Layout
22970
22971 \backslash
22972 baselineskip
22973 \end_layout
22974
22975 \end_inset
22976
22977 は\SpecialChar TeX
22978 コードとして入力する必要があります).
22979 \end_layout
22980
22981 \begin_layout Standard
22982 \begin_inset Flex Multiple Columns
22983 status open
22984
22985 \begin_layout Plain Layout
22986 \begin_inset Argument 3
22987 status open
22988
22989 \begin_layout Plain Layout
22990 7
22991 \begin_inset ERT
22992 status collapsed
22993
22994 \begin_layout Plain Layout
22995
22996
22997 \backslash
22998 baselineskip
22999 \end_layout
23000
23001 \end_inset
23002
23003
23004 \end_layout
23005
23006 \end_inset
23007
23008
23009 \size small
23010 On the evening of the crime, he returned from the club exactly at ten.
23011  His mother and sister were out spending the evening with a relation.
23012  The servant deposed that she heard him enter the front room on the second
23013  floor, generally used as his sitting-room.
23014  She had lit a fire there, and as it smoked she had opened the window.
23015  No sound was heard from the room until eleven-twenty, the hour of the return
23016  of Lady Maynooth and her daughter.
23017  Desiring to say good-night, she attempted to enter her son's room.
23018  The door was locked on the inside, and no answer could be got to their
23019  cries and knocking.
23020  Help was obtained, and the door forced.
23021  The unfortunate young man was found lying near the table.
23022  His head had been horribly mutilated by an expanding revolver bullet, but
23023  no weapon of any sort was to be found in the room.
23024 \end_layout
23025
23026 \end_inset
23027
23028
23029 \end_layout
23030
23031 \begin_layout Subsubsection
23032 周囲の余白
23033 \end_layout
23034
23035 \begin_layout Standard
23036 多段組の前後の余白は,長さ
23037 \begin_inset Flex Code
23038 status collapsed
23039
23040 \begin_layout Plain Layout
23041
23042 \backslash
23043 multicolsep
23044 \end_layout
23045
23046 \end_inset
23047
23048 を変えることで変更することができます.例えば,\SpecialChar TeX
23049 コードで書かれたコマンド
23050 \end_layout
23051
23052 \begin_layout LyX-Code
23053
23054 \family sans
23055
23056 \backslash
23057 setlength{
23058 \backslash
23059 multicolsep}{3cm}
23060 \end_layout
23061
23062 \begin_layout Standard
23063 は,その値を3
23064 \begin_inset space \thinspace{}
23065 \end_inset
23066
23067 cmに変更します.この変更は,多段組が始まる前に指定しなくてはなりません.既定値は13
23068 \begin_inset space \thinspace{}
23069 \end_inset
23070
23071 ptです.
23072 \end_layout
23073
23074 \begin_layout Standard
23075 以下の例では,
23076 \begin_inset Flex Code
23077 status collapsed
23078
23079 \begin_layout Plain Layout
23080
23081 \backslash
23082 multicolsep
23083 \end_layout
23084
23085 \end_inset
23086
23087 は2.5
23088 \begin_inset space \thinspace{}
23089 \end_inset
23090
23091 cmに指定されています.
23092 \end_layout
23093
23094 \begin_layout Standard
23095 \begin_inset ERT
23096 status open
23097
23098 \begin_layout Plain Layout
23099
23100
23101 \backslash
23102 setlength{
23103 \backslash
23104 multicolsep}{2.5cm}
23105 \end_layout
23106
23107 \end_inset
23108
23109
23110 \end_layout
23111
23112 \begin_layout Standard
23113 \begin_inset Flex Multiple Columns
23114 status open
23115
23116 \begin_layout Plain Layout
23117
23118 \size small
23119 All day I turned these facts over in my mind, endeavouring to hit upon some
23120  theory which could reconcile them all, and to find that line of least resistanc
23121 e which my poor friend had declared to be the starting-point of every investigat
23122 ion.
23123  I confess that I made little progress.
23124  In the evening I strolled across the Park, and found myself about six o'clock
23125  at the Oxford Street end of Park Lane.
23126  A group of loafers upon the pavements, all staring up at a particular window,
23127  directed me to the house which I had come to see.
23128  A tall, thin man with coloured glasses, whom I strongly suspected of being
23129  a plain-clothes detective, was pointing out some theory of his own, while
23130  the others crowded round to listen to what he said.
23131  I got as near him as I could, but his observations seemed to me to be absurd,
23132  so I withdrew again in some disgust.
23133  As I did so I struck against an elderly, deformed man, who had been behind
23134  me, and I knocked down several books which he was carrying.
23135 \end_layout
23136
23137 \end_inset
23138
23139
23140 \end_layout
23141
23142 \begin_layout Standard
23143 \begin_inset Note Greyedout
23144 status open
23145
23146 \begin_layout Plain Layout
23147
23148 \series bold
23149 【註】
23150 \series default
23151
23152 \begin_inset Flex Code
23153 status collapsed
23154
23155 \begin_layout Plain Layout
23156
23157 \backslash
23158 setlength
23159 \end_layout
23160
23161 \end_inset
23162
23163 で指定した値は,再度変更されるまでは,以降のすべての多段組で使用されます.
23164 \end_layout
23165
23166 \end_inset
23167
23168
23169 \end_layout
23170
23171 \begin_layout Standard
23172 \begin_inset ERT
23173 status collapsed
23174
23175 \begin_layout Plain Layout
23176
23177
23178 \backslash
23179 setlength{
23180 \backslash
23181 multicolsep}{13pt}
23182 \end_layout
23183
23184 \end_inset
23185
23186
23187 \begin_inset Note Note
23188 status collapsed
23189
23190 \begin_layout Plain Layout
23191
23192 \lang english
23193 go back to the default
23194 \end_layout
23195
23196 \end_inset
23197
23198
23199 \end_layout
23200
23201 \begin_layout Standard
23202 \begin_inset Newpage newpage
23203 \end_inset
23204
23205
23206 \end_layout
23207
23208 \begin_layout Subsubsection
23209 改段
23210 \end_layout
23211
23212 \begin_layout Standard
23213 改段は,文章中の階段を行いたい位置に,\SpecialChar TeX
23214 コードで,コマンド
23215 \begin_inset Flex Code
23216 status collapsed
23217
23218 \begin_layout Plain Layout
23219
23220 \backslash
23221 columnbreak{}
23222 \end_layout
23223
23224 \end_inset
23225
23226 を挿入すれば,強制的に行うことができます.ただし,多くの場合,文章中に空白が挿入されることに注意してください.
23227 \begin_inset Newline newline
23228 \end_inset
23229
23230 以下が用例です.
23231 \end_layout
23232
23233 \begin_layout Standard
23234 \begin_inset Flex Multiple Columns
23235 status open
23236
23237 \begin_layout Plain Layout
23238
23239 \size small
23240 \begin_inset Quotes eld
23241 \end_inset
23242
23243 You're surprised to see me, sir,
23244 \begin_inset Quotes erd
23245 \end_inset
23246
23247  said he, in a strange, croaking voice.
23248 \end_layout
23249
23250 \begin_layout Plain Layout
23251
23252 \size small
23253 I acknowledged that I was.
23254 \end_layout
23255
23256 \begin_layout Plain Layout
23257
23258 \size small
23259 \begin_inset Quotes eld
23260 \end_inset
23261
23262 Well, I've a conscience, sir, and when I chanced to see you go into this
23263  house, as I came hobbling after you, I thought to myself, I'll just step
23264  in and see that kind gentleman, and tell him that if I was a bit gruff
23265  in my manner there was not any harm meant, and that I am much obliged to
23266  him for picking up my books.
23267 \begin_inset Quotes erd
23268 \end_inset
23269
23270
23271 \end_layout
23272
23273 \begin_layout Plain Layout
23274
23275 \size small
23276 \begin_inset Quotes eld
23277 \end_inset
23278
23279 You make too much of a trifle,
23280 \begin_inset Quotes erd
23281 \end_inset
23282
23283  said I.
23284  
23285 \begin_inset Quotes eld
23286 \end_inset
23287
23288 May I ask how you knew who I was?
23289 \begin_inset Quotes erd
23290 \end_inset
23291
23292  AFTER THIS SENTENCE THE COLUMN BREAK IS FORCED.
23293 \begin_inset ERT
23294 status collapsed
23295
23296 \begin_layout Plain Layout
23297
23298
23299 \backslash
23300 columnbreak{}
23301 \end_layout
23302
23303 \end_inset
23304
23305
23306 \end_layout
23307
23308 \begin_layout Plain Layout
23309
23310 \size small
23311 \begin_inset Quotes eld
23312 \end_inset
23313
23314 Well, sir, if it isn't too great a liberty, I am a neighbour of yours, for
23315  you'll find my little bookshop at the corner of Church Street, and very
23316  happy to see you, I am sure.
23317  Maybe you collect yourself, sir.
23318  Here's 
23319 \noun on
23320 British
23321 \begin_inset space ~
23322 \end_inset
23323
23324 Birds
23325 \noun default
23326 , and 
23327 \noun on
23328 Catullus
23329 \noun default
23330 , and 
23331 \noun on
23332 The Holy War
23333 \noun default
23334 –a bargain, every one of them.
23335  With five volumes you could just fill that gap on that second shelf.
23336  It looks untidy, does it not, sir?
23337 \begin_inset Quotes erd
23338 \end_inset
23339
23340
23341 \end_layout
23342
23343 \end_inset
23344
23345
23346 \end_layout
23347
23348 \begin_layout Subsubsection
23349 段間隔
23350 \end_layout
23351
23352 \begin_layout Standard
23353 段幅は自動的に計算されますが,段の間の余白は指定することができます.これは,長さ
23354 \begin_inset Flex Code
23355 status collapsed
23356
23357 \begin_layout Plain Layout
23358
23359 \backslash
23360 columnsep
23361 \end_layout
23362
23363 \end_inset
23364
23365 を変更することで実現できます.既定値は10
23366 \begin_inset space \thinspace{}
23367 \end_inset
23368
23369 ptです.以下は
23370 \begin_inset Flex Code
23371 status collapsed
23372
23373 \begin_layout Plain Layout
23374
23375 \backslash
23376 columnsep
23377 \end_layout
23378
23379 \end_inset
23380
23381 を3
23382 \begin_inset space \thinspace{}
23383 \end_inset
23384
23385 cmに設定した例です.
23386 \end_layout
23387
23388 \begin_layout Standard
23389 \begin_inset ERT
23390 status open
23391
23392 \begin_layout Plain Layout
23393
23394
23395 \backslash
23396 setlength{
23397 \backslash
23398 columnsep}{3cm}
23399 \end_layout
23400
23401 \end_inset
23402
23403
23404 \end_layout
23405
23406 \begin_layout Standard
23407 \begin_inset Flex Multiple Columns
23408 status open
23409
23410 \begin_layout Plain Layout
23411
23412 \size small
23413 My observations of No.
23414 \begin_inset space \space{}
23415 \end_inset
23416
23417 427 Park Lane did little to clear up the problem in which I was interested.
23418  The house was separated from the street by a low wall and railing, the
23419  whole not more than five feet high.
23420  It was perfectly easy, therefore, for anyone to get into the garden, but
23421  the window was entirely inaccessible, since there was no water pipe or
23422  anything which could help the most active man to climb it.
23423  More puzzled than ever, I retraced my steps to Kensington.
23424  I had not been in my study five minutes when the maid entered to say that
23425  a person desired to see me.
23426  To my astonishment it was none other than my strange old book collector,
23427  his sharp, wizened face peering out from a frame of white hair, and his
23428  precious volumes, a dozen of them at least, wedged under his right arm.
23429 \end_layout
23430
23431 \end_inset
23432
23433
23434 \end_layout
23435
23436 \begin_layout Standard
23437 \begin_inset ERT
23438 status collapsed
23439
23440 \begin_layout Plain Layout
23441
23442
23443 \backslash
23444 setlength{
23445 \backslash
23446 columnsep}{10pt}
23447 \end_layout
23448
23449 \end_inset
23450
23451
23452 \begin_inset Note Note
23453 status collapsed
23454
23455 \begin_layout Plain Layout
23456
23457 \lang english
23458 go back to the default
23459 \end_layout
23460
23461 \end_inset
23462
23463
23464 \end_layout
23465
23466 \begin_layout Subsubsection
23467 垂直線
23468 \end_layout
23469
23470 \begin_layout Standard
23471 段間には,長さ
23472 \begin_inset Flex Code
23473 status collapsed
23474
23475 \begin_layout Plain Layout
23476
23477 \backslash
23478 columnseprule
23479 \end_layout
23480
23481 \end_inset
23482
23483 の幅を持つ罫線が描かれます.罫線幅を0
23484 \begin_inset space \thinspace{}
23485 \end_inset
23486
23487 ptにすると(これが既定値です),罫線は出力されません.以下の例では,段を分かつ線は2
23488 \begin_inset space \thinspace{}
23489 \end_inset
23490
23491 pt幅に設定されています.
23492 \end_layout
23493
23494 \begin_layout Standard
23495 \begin_inset ERT
23496 status open
23497
23498 \begin_layout Plain Layout
23499
23500
23501 \backslash
23502 setlength{
23503 \backslash
23504 columnseprule}{2pt}
23505 \end_layout
23506
23507 \end_inset
23508
23509
23510 \end_layout
23511
23512 \begin_layout Standard
23513 \begin_inset Flex Multiple Columns
23514 status open
23515
23516 \begin_layout Plain Layout
23517
23518 \size small
23519 \begin_inset Quotes eld
23520 \end_inset
23521
23522 You're surprised to see me, sir,
23523 \begin_inset Quotes erd
23524 \end_inset
23525
23526  said he, in a strange, croaking voice.
23527 \end_layout
23528
23529 \begin_layout Plain Layout
23530
23531 \size small
23532 I acknowledged that I was.
23533 \end_layout
23534
23535 \begin_layout Plain Layout
23536
23537 \size small
23538 \begin_inset Quotes eld
23539 \end_inset
23540
23541 Well, I've a conscience, sir, and when I chanced to see you go into this
23542  house, as I came hobbling after you, I thought to myself, I'll just step
23543  in and see that kind gentleman, and tell him that if I was a bit gruff
23544  in my manner there was not any harm meant, and that I am much obliged to
23545  him for picking up my books.
23546 \begin_inset Quotes erd
23547 \end_inset
23548
23549
23550 \end_layout
23551
23552 \begin_layout Plain Layout
23553
23554 \size small
23555 \begin_inset Quotes eld
23556 \end_inset
23557
23558 You make too much of a trifle,
23559 \begin_inset Quotes erd
23560 \end_inset
23561
23562  said I.
23563  
23564 \begin_inset Quotes eld
23565 \end_inset
23566
23567 May I ask how you knew who I was?
23568 \begin_inset Quotes erd
23569 \end_inset
23570
23571
23572 \end_layout
23573
23574 \begin_layout Plain Layout
23575
23576 \size small
23577 \begin_inset Quotes eld
23578 \end_inset
23579
23580 Well, sir, if it isn't too great a liberty, I am a neighbour of yours, for
23581  you'll find my little bookshop at the corner of Church Street, and very
23582  happy to see you, I am sure.
23583  Maybe you collect yourself, sir.
23584  Here's 
23585 \noun on
23586 British
23587 \begin_inset space ~
23588 \end_inset
23589
23590 Birds
23591 \noun default
23592 , and 
23593 \noun on
23594 Catullus
23595 \noun default
23596 , and 
23597 \noun on
23598 The Holy War
23599 \noun default
23600 –a bargain, every one of them.
23601  With five volumes you could just fill that gap on that second shelf.
23602  It looks untidy, does it not, sir?
23603 \begin_inset Quotes erd
23604 \end_inset
23605
23606
23607 \end_layout
23608
23609 \end_inset
23610
23611
23612 \end_layout
23613
23614 \begin_layout Standard
23615 \begin_inset VSpace defskip
23616 \end_inset
23617
23618
23619 \end_layout
23620
23621 \begin_layout Standard
23622 罫線は,コマンド
23623 \begin_inset Flex Code
23624 status collapsed
23625
23626 \begin_layout Plain Layout
23627
23628 \backslash
23629 columnseprulecolor
23630 \end_layout
23631
23632 \end_inset
23633
23634 を再定義すれば,着色することができます.これは,多段組差込枠の前に\SpecialChar TeX
23635 コードで以下のコマンドを挿入すれば,実現できます.
23636 \end_layout
23637
23638 \begin_layout LyX-Code
23639
23640 \backslash
23641 renewcommand{
23642 \backslash
23643 columnseprulecolor}{
23644 \backslash
23645 color{red}}
23646 \end_layout
23647
23648 \begin_layout Standard
23649 このコマンド中の
23650 \begin_inset Flex Code
23651 status collapsed
23652
23653 \begin_layout Plain Layout
23654
23655 \backslash
23656 red
23657 \end_layout
23658
23659 \end_inset
23660
23661 をお好みの色に変更してください.既定色とユーザー定義色の全てを使用することができます.既定色とユーザー定義色についての詳細な情報は,取扱説明書『埋込オブジェクト
23662 篇』の「色付き表」の節をご覧ください.既定色に戻すには,以下のコマンドを挿入してください.
23663 \end_layout
23664
23665 \begin_layout LyX-Code
23666
23667 \backslash
23668 renewcommand{
23669 \backslash
23670 columnseprulecolor}{
23671 \backslash
23672 normalcolor}
23673 \end_layout
23674
23675 \begin_layout Standard
23676 以下は,シアン色の罫線と1
23677 \begin_inset space \thinspace{}
23678 \end_inset
23679
23680 cmの段間隔を持つ例です.
23681 \end_layout
23682
23683 \begin_layout Standard
23684 \begin_inset ERT
23685 status open
23686
23687 \begin_layout Plain Layout
23688
23689
23690 \backslash
23691 setlength{
23692 \backslash
23693 columnsep}{1cm}
23694 \end_layout
23695
23696 \begin_layout Plain Layout
23697
23698
23699 \backslash
23700 renewcommand{
23701 \backslash
23702 columnseprulecolor}{
23703 \backslash
23704 color{cyan}}
23705 \end_layout
23706
23707 \end_inset
23708
23709
23710 \end_layout
23711
23712 \begin_layout Standard
23713 \begin_inset Flex Multiple Columns
23714 status open
23715
23716 \begin_layout Plain Layout
23717
23718 \size small
23719 \begin_inset Quotes eld
23720 \end_inset
23721
23722 You're surprised to see me, sir,
23723 \begin_inset Quotes erd
23724 \end_inset
23725
23726  said he, in a strange, croaking voice.
23727 \end_layout
23728
23729 \begin_layout Plain Layout
23730
23731 \size small
23732 I acknowledged that I was.
23733 \end_layout
23734
23735 \begin_layout Plain Layout
23736
23737 \size small
23738 \begin_inset Quotes eld
23739 \end_inset
23740
23741 Well, I've a conscience, sir, and when I chanced to see you go into this
23742  house, as I came hobbling after you, I thought to myself, I'll just step
23743  in and see that kind gentleman, and tell him that if I was a bit gruff
23744  in my manner there was not any harm meant, and that I am much obliged to
23745  him for picking up my books.
23746 \begin_inset Quotes erd
23747 \end_inset
23748
23749
23750 \end_layout
23751
23752 \begin_layout Plain Layout
23753
23754 \size small
23755 \begin_inset Quotes eld
23756 \end_inset
23757
23758 You make too much of a trifle,
23759 \begin_inset Quotes erd
23760 \end_inset
23761
23762  said I.
23763  
23764 \begin_inset Quotes eld
23765 \end_inset
23766
23767 May I ask how you knew who I was?
23768 \begin_inset Quotes erd
23769 \end_inset
23770
23771
23772 \end_layout
23773
23774 \begin_layout Plain Layout
23775
23776 \size small
23777 \begin_inset Quotes eld
23778 \end_inset
23779
23780 Well, sir, if it isn't too great a liberty, I am a neighbour of yours, for
23781  you'll find my little bookshop at the corner of Church Street, and very
23782  happy to see you, I am sure.
23783  Maybe you collect yourself, sir.
23784  Here's 
23785 \noun on
23786 British
23787 \begin_inset space ~
23788 \end_inset
23789
23790 Birds
23791 \noun default
23792 , and 
23793 \noun on
23794 Catullus
23795 \noun default
23796 , and 
23797 \noun on
23798 The Holy War
23799 \noun default
23800 –a bargain, every one of them.
23801  With five volumes you could just fill that gap on that second shelf.
23802  It looks untidy, does it not, sir?
23803 \begin_inset Quotes erd
23804 \end_inset
23805
23806
23807 \end_layout
23808
23809 \end_inset
23810
23811
23812 \end_layout
23813
23814 \begin_layout Standard
23815 \begin_inset ERT
23816 status collapsed
23817
23818 \begin_layout Plain Layout
23819
23820
23821 \backslash
23822 setlength{
23823 \backslash
23824 columnseprule}{0pt}
23825 \end_layout
23826
23827 \begin_layout Plain Layout
23828
23829
23830 \backslash
23831 renewcommand{
23832 \backslash
23833 columnseprulecolor}{
23834 \backslash
23835 normalcolor}
23836 \end_layout
23837
23838 \end_inset
23839
23840
23841 \begin_inset Note Note
23842 status collapsed
23843
23844 \begin_layout Plain Layout
23845
23846 \lang english
23847 go back to the default
23848 \end_layout
23849
23850 \end_inset
23851
23852
23853 \end_layout
23854
23855 \begin_layout Standard
23856 \begin_inset Newpage newpage
23857 \end_inset
23858
23859
23860 \end_layout
23861
23862 \begin_layout Section
23863 標準的でない形の段落
23864 \end_layout
23865
23866 \begin_layout Standard
23867 \noindent
23868 \SpecialChar LaTeX
23869 は,他のテキストプロセッサと同様に,既定で長方形の段落を使用します.しかし,例えば,ポスターや招待状,詩などの特殊な場合には,段落の形を好きなように変えることが
23870 できます.これは,文書設定で
23871 \family sans
23872 任意設定の段落形
23873 \family default
23874 モジュールを読み込んで,\SpecialChar LaTeX
23875 パッケージ
23876 \begin_inset Flex Code
23877 status collapsed
23878
23879 \begin_layout Plain Layout
23880 \noindent
23881 shapepar
23882 \end_layout
23883
23884 \end_inset
23885
23886 を使用させるようにすれば,実現できます.
23887 \end_layout
23888
23889 \begin_layout Subsection
23890 既定の形
23891 \end_layout
23892
23893 \begin_layout Standard
23894
23895 \series bold
23896 shapepar
23897 \series default
23898 は,以下の形を提供しています.
23899 \end_layout
23900
23901 \begin_layout Standard
23902 \begin_inset Tabular
23903 <lyxtabular version="3" rows="13" columns="3">
23904 <features booktabs="true" islongtable="true" longtabularalignment="center">
23905 <column alignment="center" valignment="middle" width="16col%">
23906 <column alignment="center" valignment="middle" width="40col%">
23907 <column alignment="center" valignment="middle" width="35col%">
23908 <row endhead="true">
23909 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23910 \begin_inset Text
23911
23912 \begin_layout Plain Layout
23913 名称
23914 \end_layout
23915
23916 \end_inset
23917 </cell>
23918 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23919 \begin_inset Text
23920
23921 \begin_layout Plain Layout
23922 説明
23923 \end_layout
23924
23925 \end_inset
23926 </cell>
23927 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
23928 \begin_inset Text
23929
23930 \begin_layout Plain Layout
23931 備考
23932 \end_layout
23933
23934 \end_inset
23935 </cell>
23936 </row>
23937 <row>
23938 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23939 \begin_inset Text
23940
23941 \begin_layout Plain Layout
23942 CDlabel
23943 \end_layout
23944
23945 \end_inset
23946 </cell>
23947 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23948 \begin_inset Text
23949
23950 \begin_layout Plain Layout
23951 丸い穴の開いたドーナツ型(CD/DVD大)
23952 \end_layout
23953
23954 \end_inset
23955 </cell>
23956 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23957 \begin_inset Text
23958
23959 \begin_layout Plain Layout
23960 伸縮不可.多くの文字を入れられないことに注意.
23961 \end_layout
23962
23963 \end_inset
23964 </cell>
23965 </row>
23966 <row>
23967 <cell alignment="center" valignment="top" topline="true" usebox="none">
23968 \begin_inset Text
23969
23970 \begin_layout Plain Layout
23971 Circle
23972 \end_layout
23973
23974 \end_inset
23975 </cell>
23976 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23977 \begin_inset Text
23978
23979 \begin_layout Plain Layout
23980
23981 \end_layout
23982
23983 \end_inset
23984 </cell>
23985 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23986 \begin_inset Text
23987
23988 \begin_layout Plain Layout
23989 脆弱.計算に失敗することも.
23990 \end_layout
23991
23992 \end_inset
23993 </cell>
23994 </row>
23995 <row>
23996 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23997 \begin_inset Text
23998
23999 \begin_layout Plain Layout
24000 Diamond
24001 \end_layout
24002
24003 \end_inset
24004 </cell>
24005 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24006 \begin_inset Text
24007
24008 \begin_layout Plain Layout
24009 菱形(シンボル的に
24010 \begin_inset Quotes eld
24011 \end_inset
24012
24013 diamond
24014 \begin_inset Quotes erd
24015 \end_inset
24016
24017 と表記)
24018 \end_layout
24019
24020 \end_inset
24021 </cell>
24022 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24023 \begin_inset Text
24024
24025 \begin_layout Plain Layout
24026 -
24027 \end_layout
24028
24029 \end_inset
24030 </cell>
24031 </row>
24032 <row>
24033 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24034 \begin_inset Text
24035
24036 \begin_layout Plain Layout
24037 Heart
24038 \end_layout
24039
24040 \end_inset
24041 </cell>
24042 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24043 \begin_inset Text
24044
24045 \begin_layout Plain Layout
24046 ハート型
24047 \end_layout
24048
24049 \end_inset
24050 </cell>
24051 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24052 \begin_inset Text
24053
24054 \begin_layout Plain Layout
24055 -
24056 \end_layout
24057
24058 \end_inset
24059 </cell>
24060 </row>
24061 <row>
24062 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24063 \begin_inset Text
24064
24065 \begin_layout Plain Layout
24066 Hexagon
24067 \end_layout
24068
24069 \end_inset
24070 </cell>
24071 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24072 \begin_inset Text
24073
24074 \begin_layout Plain Layout
24075 六角形
24076 \end_layout
24077
24078 \end_inset
24079 </cell>
24080 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24081 \begin_inset Text
24082
24083 \begin_layout Plain Layout
24084 -
24085 \end_layout
24086
24087 \end_inset
24088 </cell>
24089 </row>
24090 <row>
24091 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24092 \begin_inset Text
24093
24094 \begin_layout Plain Layout
24095 Nut
24096 \end_layout
24097
24098 \end_inset
24099 </cell>
24100 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24101 \begin_inset Text
24102
24103 \begin_layout Plain Layout
24104 ナット型(丸い穴の開いた六角形)
24105 \end_layout
24106
24107 \end_inset
24108 </cell>
24109 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24110 \begin_inset Text
24111
24112 \begin_layout Plain Layout
24113 -
24114 \end_layout
24115
24116 \end_inset
24117 </cell>
24118 </row>
24119 <row>
24120 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24121 \begin_inset Text
24122
24123 \begin_layout Plain Layout
24124 Square
24125 \end_layout
24126
24127 \end_inset
24128 </cell>
24129 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24130 \begin_inset Text
24131
24132 \begin_layout Plain Layout
24133 正方形
24134 \end_layout
24135
24136 \end_inset
24137 </cell>
24138 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24139 \begin_inset Text
24140
24141 \begin_layout Plain Layout
24142 -
24143 \end_layout
24144
24145 \end_inset
24146 </cell>
24147 </row>
24148 <row>
24149 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
24150 \begin_inset Text
24151
24152 \begin_layout Plain Layout
24153 Star
24154 \end_layout
24155
24156 \end_inset
24157 </cell>
24158 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
24159 \begin_inset Text
24160
24161 \begin_layout Plain Layout
24162 五芒星
24163 \end_layout
24164
24165 \end_inset
24166 </cell>
24167 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
24168 \begin_inset Text
24169
24170 \begin_layout Plain Layout
24171 -
24172 \end_layout
24173
24174 \end_inset
24175 </cell>
24176 </row>
24177 <row>
24178 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24179 \begin_inset Text
24180
24181 \begin_layout Plain Layout
24182 Candle
24183 \end_layout
24184
24185 \end_inset
24186 </cell>
24187 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24188 \begin_inset Text
24189
24190 \begin_layout Plain Layout
24191 燃えるろうそく
24192 \end_layout
24193
24194 \end_inset
24195 </cell>
24196 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24197 \begin_inset Text
24198
24199 \begin_layout Plain Layout
24200 -
24201 \end_layout
24202
24203 \end_inset
24204 </cell>
24205 </row>
24206 <row>
24207 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24208 \begin_inset Text
24209
24210 \begin_layout Plain Layout
24211 Drop down/up
24212 \end_layout
24213
24214 \end_inset
24215 </cell>
24216 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24217 \begin_inset Text
24218
24219 \begin_layout Plain Layout
24220 雫型/逆雫型
24221 \end_layout
24222
24223 \end_inset
24224 </cell>
24225 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24226 \begin_inset Text
24227
24228 \begin_layout Plain Layout
24229 脆弱.計算に失敗することも.
24230 \end_layout
24231
24232 \end_inset
24233 </cell>
24234 </row>
24235 <row>
24236 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24237 \begin_inset Text
24238
24239 \begin_layout Plain Layout
24240 \SpecialChar TeX
24241
24242 \end_layout
24243
24244 \end_inset
24245 </cell>
24246 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24247 \begin_inset Text
24248
24249 \begin_layout Plain Layout
24250 \SpecialChar TeX
24251 ロゴ
24252 \end_layout
24253
24254 \end_inset
24255 </cell>
24256 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24257 \begin_inset Text
24258
24259 \begin_layout Plain Layout
24260 -
24261 \end_layout
24262
24263 \end_inset
24264 </cell>
24265 </row>
24266 <row>
24267 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
24268 \begin_inset Text
24269
24270 \begin_layout Plain Layout
24271 Triangle up/down/
24272 \begin_inset Newline newline
24273 \end_inset
24274
24275 left/right
24276 \end_layout
24277
24278 \end_inset
24279 </cell>
24280 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
24281 \begin_inset Text
24282
24283 \begin_layout Plain Layout
24284 各方向の三角形
24285 \end_layout
24286
24287 \end_inset
24288 </cell>
24289 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
24290 \begin_inset Text
24291
24292 \begin_layout Plain Layout
24293 -
24294 \end_layout
24295
24296 \end_inset
24297 </cell>
24298 </row>
24299 </lyxtabular>
24300
24301 \end_inset
24302
24303
24304 \end_layout
24305
24306 \begin_layout Standard
24307 段落に形を適用するには,\SpecialChar LyX
24308 ツールバー中の環境プルダウンボックスから形を選んでください.
24309 \end_layout
24310
24311 \begin_layout Standard
24312 \begin_inset Newpage newpage
24313 \end_inset
24314
24315
24316 \end_layout
24317
24318 \begin_layout Standard
24319 以下は,ナット型の段落の例です.
24320 \end_layout
24321
24322 \begin_layout Standard
24323 \begin_inset VSpace bigskip
24324 \end_inset
24325
24326
24327 \end_layout
24328
24329 \begin_layout Nut
24330
24331 \lang latin
24332 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
24333  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
24334  voluptua.
24335  At vero eos et accusam et justo duo dolores et ea rebum.
24336  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
24337  sit amet.
24338  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
24339  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
24340  voluptua.
24341 \end_layout
24342
24343 \begin_layout Standard
24344 \begin_inset VSpace bigskip
24345 \end_inset
24346
24347
24348 \end_layout
24349
24350 \begin_layout Standard
24351 \begin_inset Note Greyedout
24352 status open
24353
24354 \begin_layout Plain Layout
24355
24356 \series bold
24357 【註】
24358 \family sans
24359 \series default
24360 shapepar
24361 \family default
24362 段落は改頁にまたがることはできません.
24363 \end_layout
24364
24365 \end_inset
24366
24367
24368 \end_layout
24369
24370 \begin_layout Standard
24371 \begin_inset VSpace bigskip
24372 \end_inset
24373
24374
24375 \end_layout
24376
24377 \begin_layout Standard
24378 \begin_inset Flex Code
24379 status collapsed
24380
24381 \begin_layout Plain Layout
24382 \noindent
24383 shapepar
24384 \end_layout
24385
24386 \end_inset
24387
24388 は,段落中にどれだけ文章が含まれようとも,常に形を維持しようとします.したがって,段落の大きさは,含まれている文章量によって変化しますので,段落の大きさがページ
24389 余白にはみ出してしまうことがあります.寸法が伸縮することを示すために,文章量を二倍にした例を見てみましょう.
24390 \end_layout
24391
24392 \begin_layout Standard
24393 \begin_inset Newpage newpage
24394 \end_inset
24395
24396
24397 \end_layout
24398
24399 \begin_layout Nut
24400
24401 \lang latin
24402 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
24403  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
24404  voluptua.
24405  At vero eos et accusam et justo duo dolores et ea rebum.
24406  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
24407  sit amet.
24408  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
24409  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
24410  voluptua.
24411  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
24412  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
24413  voluptua.
24414  At vero eos et accusam et justo duo dolores et ea rebum.
24415  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
24416  sit amet.
24417  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
24418  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
24419  voluptua.
24420 \end_layout
24421
24422 \begin_layout Standard
24423 \begin_inset VSpace bigskip
24424 \end_inset
24425
24426
24427 \end_layout
24428
24429 \begin_layout Standard
24430 ただし,
24431 \family sans
24432 CDlabel
24433 \family default
24434 形は例外です.これは,CD/DVDの寸法に収まらなくてはならないので,伸縮しません.したがって,形に収まる文章量は限られています.
24435 \begin_inset Newline newline
24436 \end_inset
24437
24438
24439 \family sans
24440 drop
24441 \family default
24442 形と
24443 \family sans
24444 circle
24445 \family default
24446 形は脆弱で,文章量によっては寸法計算が失敗する可能性があります.この場合,
24447 \begin_inset Quotes eld
24448 \end_inset
24449
24450 Arithmetic overflow
24451 \begin_inset Quotes erd
24452 \end_inset
24453
24454 という\SpecialChar LaTeX
24455 エラーが発生します.この時は,文章の一部を追加したり削除したりするか,どれもうまくいかなければ別の形を使用してください.
24456 \end_layout
24457
24458 \begin_layout Standard
24459 \begin_inset VSpace bigskip
24460 \end_inset
24461
24462
24463 \end_layout
24464
24465 \begin_layout Standard
24466 先端のある形では,先端部の文字列で,\SpecialChar LaTeX
24467 のハイフネーションルーチンが失敗することがあります.したがって,この部分の文章には,ハイフネーション位置
24468 \family sans
24469
24470 \begin_inset Info
24471 type  "shortcut"
24472 arg   "specialchar-insert hyphenation"
24473 \end_inset
24474
24475
24476 \family default
24477 )を指定することが往々にして必要になります.
24478 \end_layout
24479
24480 \begin_layout Standard
24481 \begin_inset VSpace bigskip
24482 \end_inset
24483
24484
24485 \end_layout
24486
24487 \begin_layout Standard
24488 Shapepar段落は,常に中央揃えか,左の縁が左ページ余白に接するように配置されます.したがって,これらの段落を揃えるのに段落ダイアログを使用することはできま
24489 せん.解決方法としては,段落をミニページかparboxの中において,このボックスを揃えることです.ここでの問題は,ボックスの正しい幅を見出すことです.もしボック
24490 スの幅が広すぎれば,ボックスを中央揃えにしたとしても,ボックスの左側が付いてしまうので中央揃えになりません.そこで,正しい幅を見出すまでは,若干試行錯誤しなくて
24491 はならないかもしれません.以下は,二つのハート形の段落です.一つ目は揃え指定がなく,二つ目は右揃えにしてあります.
24492 \end_layout
24493
24494 \begin_layout Standard
24495 \begin_inset Newpage newpage
24496 \end_inset
24497
24498
24499 \end_layout
24500
24501 \begin_layout Heart
24502 \noindent
24503
24504 \lang latin
24505 Lo\SpecialChar softhyphen
24506 rem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
24507  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
24508  voluptua.
24509  At vero eos et accusam et justo duo dolores et ea rebum.
24510  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
24511  sit amet.
24512 \end_layout
24513
24514 \begin_layout Standard
24515 \begin_inset VSpace bigskip
24516 \end_inset
24517
24518
24519 \end_layout
24520
24521 \begin_layout Standard
24522 \noindent
24523 \align right
24524 \begin_inset Box Frameless
24525 position "t"
24526 hor_pos "c"
24527 has_inner_box 1
24528 inner_pos "t"
24529 use_parbox 1
24530 use_makebox 0
24531 width "42col%"
24532 special "none"
24533 height "1in"
24534 height_special "totalheight"
24535 thickness "0.4pt"
24536 separation "3pt"
24537 shadowsize "4pt"
24538 framecolor "black"
24539 backgroundcolor "none"
24540 status open
24541
24542 \begin_layout Heart
24543 \noindent
24544
24545 \lang latin
24546 Lo\SpecialChar softhyphen
24547 rem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
24548  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
24549  voluptua.
24550  At vero eos et accusam et justo duo dolores et ea rebum.
24551  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
24552  sit amet.
24553 \end_layout
24554
24555 \end_inset
24556
24557
24558 \end_layout
24559
24560 \begin_layout Subsection
24561 任意の形
24562 \end_layout
24563
24564 \begin_layout Standard
24565 ユーザーは,どのような形であれ,定義することができます.これを手動で行うのは,全ての座標を指定しなくてはならないので,かなりの労力を必要とします.しかし,以下の
24566 ように,コンピューターに座標を計算させる方法もあります.
24567 \end_layout
24568
24569 \begin_layout Enumerate
24570 プログラム
24571 \begin_inset CommandInset href
24572 LatexCommand href
24573 name "Jpgfdraw"
24574 target "http://www.ctan.org/tex-archive/graphics/jpgfdraw"
24575 literal "false"
24576
24577 \end_inset
24578
24579 を導入します.
24580 \end_layout
24581
24582 \begin_layout Enumerate
24583
24584 \family sans
24585 Jpgfdraw
24586 \family default
24587 内で,メニュー
24588 \family sans
24589 TeX/LaTeX\SpecialChar menuseparator
24590 Settings\SpecialChar menuseparator
24591 Set Normal Size
24592 \family default
24593 で文書中で使用しているフォント寸を選択します.例えば,この文書は12
24594 \begin_inset space \thinspace{}
24595 \end_inset
24596
24597 pt寸を使用しています.
24598 \end_layout
24599
24600 \begin_layout Enumerate
24601 形を描きます.
24602 \end_layout
24603
24604 \begin_layout Enumerate
24605 メニュー
24606 \family sans
24607 TeX/LaTeX\SpecialChar menuseparator
24608 Shapepar
24609 \family default
24610 を使用して,形の座標をエクスポートします.現れるダイアログで,形の外枠を座標に使うか,パス自体を使うかを指定します.
24611 \begin_inset Foot
24612 status collapsed
24613
24614 \begin_layout Plain Layout
24615 詳細については,
24616 \begin_inset CommandInset href
24617 LatexCommand href
24618 target "http://www.dickimaw-books.com/apps/jpgfdraw/manual/shapepar.html"
24619 literal "false"
24620
24621 \end_inset
24622
24623 を参照してください.
24624 \end_layout
24625
24626 \end_inset
24627
24628
24629 \end_layout
24630
24631 \begin_layout Standard
24632 座標は\SpecialChar TeX
24633 ファイルに書き込まれます.これを\SpecialChar LyX
24634 文書で使用するには,
24635 \end_layout
24636
24637 \begin_layout Enumerate
24638 段落の最初の文字の前(もしくは空の段落内)にカーソルを置きます.
24639 \end_layout
24640
24641 \begin_layout Enumerate
24642 \SpecialChar LyX
24643
24644 \family sans
24645 挿入\SpecialChar menuseparator
24646 ファイル\SpecialChar menuseparator
24647 子文書
24648 \family default
24649 メニューでファイルを選択し,
24650 \family sans
24651 取り込みの型
24652 \family default
24653 として
24654 \family sans
24655 Input
24656 \family default
24657 を選択してください.
24658 \end_layout
24659
24660 \begin_layout Standard
24661 \begin_inset VSpace defskip
24662 \end_inset
24663
24664
24665 \end_layout
24666
24667 \begin_layout Standard
24668 \begin_inset Note Greyedout
24669 status open
24670
24671 \begin_layout Plain Layout
24672
24673 \series bold
24674 【註】
24675 \series default
24676 変更した形は,現在の段落にのみ適用されます.次の段落では全て通常に戻ります.したがって,段落定義ファイルは,形を変えたい段落全てで読み込まれなくてはなりません.
24677 \end_layout
24678
24679 \end_inset
24680
24681
24682 \end_layout
24683
24684 \begin_layout Standard
24685 \begin_inset VSpace bigskip
24686 \end_inset
24687
24688
24689 \end_layout
24690
24691 \begin_layout Standard
24692 以下の用例をご覧ください.
24693 \end_layout
24694
24695 \begin_layout Standard
24696 \begin_inset VSpace bigskip
24697 \end_inset
24698
24699
24700 \end_layout
24701
24702 \begin_layout Standard
24703 \begin_inset CommandInset include
24704 LatexCommand input
24705 filename "../SpecialParagraphShape.tex"
24706
24707 \end_inset
24708
24709
24710 \lang latin
24711 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
24712  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
24713  voluptua.
24714  At vero eos et accusam et justo duo dolores et ea rebum.
24715  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
24716  sit amet.
24717  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
24718  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
24719  voluptua.
24720 \end_layout
24721
24722 \begin_layout Standard
24723 \begin_inset VSpace bigskip
24724 \end_inset
24725
24726
24727 \end_layout
24728
24729 \begin_layout Standard
24730
24731 \series bold
24732 【ヒント】
24733 \family sans
24734 \series default
24735 Jpgfdraw
24736 \family default
24737 で複雑な形を描く場合,まず形を好きなプログラムで描き,出来上がった画像を
24738 \family sans
24739 Jpgfdraw
24740 \family default
24741 に読み込む方法があります.この場合,画像の外枠に沿って,直線またはスプラインを描くだけですみます.
24742 \end_layout
24743
24744 \begin_layout Standard
24745 \begin_inset VSpace bigskip
24746 \end_inset
24747
24748
24749 \end_layout
24750
24751 \begin_layout Standard
24752
24753 \family sans
24754 任意の段落形
24755 \family default
24756 モジュールは,
24757 \family sans
24758 shapepar
24759 \family default
24760
24761 \family sans
24762 Shapepar
24763 \family default
24764 の二つのコマンドも提供していて,任意の形を座標毎に定義するのに使用することができます.
24765 \begin_inset Foot
24766 status collapsed
24767
24768 \begin_layout Plain Layout
24769 これらのコマンドは,上述の全ての形で内部的に使用されています.
24770 \end_layout
24771
24772 \end_inset
24773
24774 これらのスタイルがどのように使われていて,どのような設定ができるのかについての詳しい情報は,
24775 \begin_inset Flex Code
24776 status collapsed
24777
24778 \begin_layout Plain Layout
24779 \noindent
24780 shapepar
24781 \end_layout
24782
24783 \end_inset
24784
24785  をご覧ください.
24786 \end_layout
24787
24788 \end_body
24789 \end_document