]> git.lyx.org Git - lyx.git/blob - lib/doc/ja/Additional.lyx
doc files: accept some leftovers from change tracking
[lyx.git] / lib / doc / ja / Additional.lyx
1 #LyX 2.3 created this file. For more info see http://www.lyx.org/
2 \lyxformat 544
3 \begin_document
4 \begin_header
5 \save_transient_properties true
6 \origin /systemlyxdir/doc/ja/
7 \textclass scrbook
8 \begin_preamble
9 % DO NOT ALTER THIS PREAMBLE!!!
10 %
11 % This preamble is designed to ensure that the manual prints
12 % out as advertised. If you mess with this preamble,
13 % parts of the manual may not print out as expected.  If you
14 % have problems LaTeXing this file, please contact 
15 % the documentation team
16 % email: lyx-docs@lists.lyx.org
17
18 \IfFileExists{pxjahyper.sty}
19 {\usepackage{pxjahyper}}
20
21 % the pages of the TOC are numbered roman
22 % and a PDF-bookmark for the TOC is added
23 \pagenumbering{roman}
24 \let\myTOC\tableofcontents
25 \renewcommand{\tableofcontents}{%
26  \pdfbookmark[1]{\contentsname}{}
27  \myTOC
28  \cleardoublepage
29  \pagenumbering{arabic}}
30
31 % extra space for tables
32 \newcommand{\extratablespace}[1]{\noalign{\vskip#1}}
33
34 \usepackage{t1enc}
35 \end_preamble
36 \options bibliography=totoc,index=totoc,BCOR7.5mm,titlepage,captions=tableheading
37 \use_default_options false
38 \begin_modules
39 logicalmkup
40 theorems-ams
41 theorems-ams-extended
42 multicol
43 shapepar
44 \end_modules
45 \maintain_unincluded_children false
46 \begin_local_layout
47 Format 35
48 InsetLayout             Flex:MenuItem
49 LyxType         charstyle
50 LabelString           menu
51 LatexType             command
52 LatexName             menuitem
53 Font
54 Family              Sans
55 EndFont
56 Preamble
57 \newcommand*{\menuitem}[1]{{\sffamily #1}}
58 EndPreamble
59 End
60 InsetLayout             Flex:Ruby
61 LyxType         charstyle
62 LatexType               command
63 LatexName               ruby
64 BgColor         none
65 LabelString             "ルビ"
66 Decoration              Conglomerate
67 Argument post:1
68 LabelString     "ルビ文"
69 MenuString      "ルビ文(S)|S"
70 Decoration      Conglomerate
71 Font
72 Size            tiny
73 EndFont
74 LabelFont
75 Size            tiny
76 EndFont
77 Mandatory       1
78 EndArgument
79 Preamble
80 \IfFileExists{okumacro.sty}
81 {\usepackage{okumacro}}
82 {\newcommand{\ruby}[2]{#2}}
83 EndPreamble
84 End
85 \end_local_layout
86 \language japanese
87 \language_package default
88 \inputencoding auto
89 \fontencoding global
90 \font_roman "default" "default"
91 \font_sans "default" "default"
92 \font_typewriter "default" "default"
93 \font_math "auto" "auto"
94 \font_default_family default
95 \use_non_tex_fonts false
96 \font_sc false
97 \font_osf false
98 \font_sf_scale 100 100
99 \font_tt_scale 100 100
100 \use_microtype false
101 \use_dash_ligatures false
102 \graphics default
103 \default_output_format pdf3
104 \output_sync 0
105 \bibtex_command default
106 \index_command default
107 \paperfontsize 12
108 \spacing single
109 \use_hyperref true
110 \pdf_title "LyX's Additional Features manual"
111 \pdf_author "LyX Team"
112 \pdf_subject "LyX's additional features documentation"
113 \pdf_keywords "LyX, Documentation, Additional"
114 \pdf_bookmarks false
115 \pdf_bookmarksnumbered true
116 \pdf_bookmarksopen false
117 \pdf_bookmarksopenlevel 1
118 \pdf_breaklinks false
119 \pdf_pdfborder false
120 \pdf_colorlinks true
121 \pdf_backref false
122 \pdf_pdfusetitle false
123 \pdf_quoted_options "pdfencoding=pdfdoc, linkcolor=black, citecolor=black, urlcolor=blue, filecolor=blue, pdfpagelayout=OneColumn, pdfnewwindow=true, pdfstartview=XYZ, plainpages=false"
124 \papersize default
125 \use_geometry false
126 \use_package amsmath 1
127 \use_package amssymb 1
128 \use_package cancel 0
129 \use_package esint 0
130 \use_package mathdots 1
131 \use_package mathtools 0
132 \use_package mhchem 1
133 \use_package stackrel 0
134 \use_package stmaryrd 0
135 \use_package undertilde 0
136 \cite_engine basic
137 \cite_engine_type default
138 \biblio_style plain
139 \use_bibtopic false
140 \use_indices false
141 \paperorientation portrait
142 \suppress_date false
143 \justification true
144 \use_refstyle 0
145 \use_minted 0
146 \notefontcolor #0000ff
147 \index 索引
148 \shortcut idx
149 \color #008000
150 \end_index
151 \secnumdepth 3
152 \tocdepth 3
153 \paragraph_separation indent
154 \paragraph_indentation default
155 \is_math_indent 1
156 \math_indentation default
157 \math_numbering_side default
158 \quotes_style english
159 \dynamic_quotes 0
160 \papercolumns 1
161 \papersides 2
162 \paperpagestyle headings
163 \tracking_changes true
164 \output_changes false
165 \html_math_output 0
166 \html_css_as_file 0
167 \html_be_strict true
168 \author -712698321 "Jürgen Spitzmüller"
169 \author 34634807 "Jean-Pierre"
170 \end_header
171
172 \begin_body
173
174 \begin_layout Title
175 \SpecialChar LyX
176 の高度な機能
177 \begin_inset Newline newline
178 \end_inset
179
180
181 \size large
182 第2.3.x版
183 \end_layout
184
185 \begin_layout Author
186 \SpecialChar LyX
187 プロジェクトチーム
188 \begin_inset Foot
189 status collapsed
190
191 \begin_layout Plain Layout
192 このファイルは主にRichard Heckによって管理されています.コメントをされたい場合や誤りを発見された場合には,\SpecialChar LyX
193 文書化メーリングリスト
194 \begin_inset Flex Code
195 status open
196
197 \begin_layout Plain Layout
198 \noindent
199
200 \family typewriter
201 <lyx-docs@lists.lyx.org>
202 \end_layout
203
204 \end_inset
205
206 に英文にてお知らせ下さい.この文書の翻訳は,当初人見光太郎氏が行った貢献に基づいています.
207 \end_layout
208
209 \end_inset
210
211  
212 \end_layout
213
214 \begin_layout Standard
215 \begin_inset CommandInset toc
216 LatexCommand tableofcontents
217
218 \end_inset
219
220
221 \end_layout
222
223 \begin_layout Chapter
224 はじめに
225 \end_layout
226
227 \begin_layout Standard
228 いまお読みの取扱説明書『
229 \emph on
230 \SpecialChar LyX
231 拡張機能篇
232 \emph default
233 』は,基本的には『
234 \emph on
235 ユーザーの手引き
236 \emph default
237 』の第二部です.これらの文書を別部とした理由は,単純に『
238 \emph on
239 ユーザーの手引き
240 \emph default
241 』がすでに大部となっていることと,『
242 \emph on
243 ユーザーの手引き
244 \emph default
245 』が,ほとんどの文書を作成する上で必要な基本機能をすべて説明してしまっているためです.一方で,\SpecialChar LyX
246 プロジェクトチームは,\SpecialChar LyX
247 を各設定ファイルと外部パッケージによって拡張
248 可能な状態にしておくことを長期的な目標にしています.つまり,ある\SpecialChar LaTeX
249 パッケージをサポートしたい場合に,\SpecialChar LyX
250 自身に変更を加えることなく,当該パッケージ用のレイアウトファイ
251 ル(ないしモジュール)を作成すればいいようにしているのです.すでにこのような形で,いくつもの新機能がユーザーによって追加されています.この取扱説明書は,そのよう
252 な形での貢献を文書化する冊子として位置付けられています.
253 \end_layout
254
255 \begin_layout Standard
256 この取扱説明書では,ファックスのサポート・バージョン管理・SGMLサポートのような,正しく機能するためには追加的なソフトウェアを必要とする特殊機能についても説明
257 しています.さらに,\SpecialChar LaTeX
258 の強力な機能を直接使って文書を美しく仕上げるための,\SpecialChar LaTeX
259 ツールやテクニックを述べた章も収録しています.つきつめれば,\SpecialChar LyX
260 とはあくまでWYSIWYMた
261 ることを企図しているため,\SpecialChar LaTeX
262 の全機能の一部へのインタフェースは用意するものの,すべてを用意することはないでしょう.
263 \end_layout
264
265 \begin_layout Standard
266 もし,まだ『
267 \emph on
268 はじめの一歩
269 \emph default
270 』をお読みでなかったら,この取扱説明書から読みはじめるのは誤りです.『
271 \emph on
272 はじめの一歩
273 \emph default
274 』には,全取扱説明書に共通の表記法と書式が説明されていますので,まずそれからお読みください.さらに,この取扱説明書を読もうとする前に,『
275 \emph on
276 ユーザーの手引き
277 \emph default
278 』をよくお読みになって,\SpecialChar LyX
279 の全基本機能を習得してください.
280 \end_layout
281
282 \begin_layout Standard
283 この取扱説明書の取り上げられている話題は,\SpecialChar LyX
284 が\SpecialChar LaTeX
285 にどう関わっているかに強く関係していますので,まず次章では,\SpecialChar LyX
286 の内部動作がどうなっているか,LyXに希望する\SpecialChar LaTeX
287 コードを正
288 確に生成させるにはどうしたらいいかを収録しています.本章は,あきらかに熟練\SpecialChar LyX
289 ユーザー向けの章となっています.
290 \end_layout
291
292 \begin_layout Chapter
293 \SpecialChar LyX
294 と\SpecialChar LaTeX
295
296 \end_layout
297
298 \begin_layout Section
299 \SpecialChar LyX
300 は\SpecialChar LaTeX
301 をどう使っているか
302 \end_layout
303
304 \begin_layout Standard
305 本章
306 \family roman
307 \series medium
308 \shape up
309 \size normal
310 \emph off
311 \bar no
312 \noun off
313 \color none
314 は,\SpecialChar TeX
315 熟練者と\SpecialChar LaTeX
316 に興味のある方向けの章です.ここでは,\SpecialChar LyX
317 と\SpecialChar LaTeX
318 が,印刷可能な出力を生成するのに,どのように協働しているのかを説明します.全取扱説明書中で本章だけは,\SpecialChar LaTeX
319 のこと
320 を多少なりともご存知であることを前提とします.
321 \end_layout
322
323 \begin_layout Standard
324
325 \family roman
326 \series medium
327 \shape up
328 \size normal
329 \emph off
330 \bar no
331 \noun off
332 \color none
333 かつて\SpecialChar LyX
334 は,「\SpecialChar LaTeX
335
336 \family default
337 \series default
338 \shape default
339 \size default
340 \emph default
341 \bar default
342 \noun default
343 \color inherit
344 WYSIWYM
345 \family roman
346 \series medium
347 \shape up
348 \size normal
349 \emph off
350 \bar no
351 \noun off
352 \color none
353 なフロントエンド」と呼ばれていましたが,いまではこれは正しくありません.\SpecialChar LaTeX
354 のフロントエンドは,いくつも出回っています
355 \begin_inset Foot
356 status collapsed
357
358 \begin_layout Plain Layout
359
360 \family roman
361 \series medium
362 \shape up
363 \size normal
364 \emph off
365 \bar no
366 \noun off
367 \color none
368 有名なものとしては,Linux上の\SpecialChar TeX
369 makerとkile,OSX上の\SpecialChar TeX
370 shopなどがあります.もちろんviとemacsの\SpecialChar LaTeX
371 モードも含まれます.
372 \end_layout
373
374 \end_inset
375
376 .これらは,基本的に\SpecialChar LaTeX
377 を走らせる機能を有し,編集中のファイルのエラーを表示する機能を持ったテキストエディタです.\SpecialChar LyX
378 も,エディタであり,\SpecialChar LaTeX
379 を走らせる機能を有し,ファイル
380 中のエラーを指摘しますが,それ以上にもっともっと多くのことをしてくれます.
381 \family default
382 \series default
383 \shape default
384 \size default
385 \emph default
386 \bar default
387 \noun default
388 \color inherit
389 ひとつには,
390 \family roman
391 \series medium
392 \shape up
393 \size normal
394 \emph off
395 \bar no
396 \noun off
397 \color none
398 \SpecialChar LyX
399 を効果的に使うのに,\SpecialChar LaTeX
400 の知識が必要とされないことが挙げられます.また\SpecialChar LyX
401 は,それ自身,いくつかの拡張を\SpecialChar LaTeX
402 に加えています.時間のあるときにでも,いちど以下の手順を試してみ
403 てください.まず
404 \family sans
405 \series default
406 \shape default
407 \size default
408 \emph default
409 \bar default
410 \noun default
411 \color inherit
412
413 \begin_inset Flex MenuItem
414 status collapsed
415
416 \begin_layout Plain Layout
417
418 \family sans
419 ファイル
420 \end_layout
421
422 \end_inset
423
424
425 \family roman
426 \series medium
427 \shape up
428 \size normal
429 \emph off
430 \bar no
431 \noun off
432 \color none
433 メニューから
434 \family sans
435 \series default
436 \shape default
437 \size default
438 \emph default
439 \bar default
440 \noun default
441 \color inherit
442
443 \begin_inset Flex MenuItem
444 status collapsed
445
446 \begin_layout Plain Layout
447
448 \family sans
449 エクスポート\SpecialChar menuseparator
450 LaTeX
451 \end_layout
452
453 \end_inset
454
455
456 \family roman
457 \series medium
458 \shape up
459 \size normal
460 \emph off
461 \bar no
462 \noun off
463 \color none
464 (あるいは
465 \family sans
466 \series default
467 \shape default
468 \size default
469 \emph default
470 \bar default
471 \noun default
472 \color inherit
473
474 \begin_inset Flex MenuItem
475 status collapsed
476
477 \begin_layout Plain Layout
478
479 \family sans
480 表示\SpecialChar menuseparator
481 ソースを閲覧
482 \end_layout
483
484 \end_inset
485
486
487 \family roman
488 \series medium
489 \shape up
490 \size normal
491 \emph off
492 \bar no
493 \noun off
494 \color none
495 )を選択し,そこから出力される
496 \begin_inset Flex Code
497 status collapsed
498
499 \begin_layout Plain Layout
500
501 \family typewriter
502 .tex
503 \end_layout
504
505 \end_inset
506
507 ファイルのプリアンブルをご覧ください.\SpecialChar LyX
508 によって特別に定義された新しいマクロが複数定義されていることに気づかれるはずです
509 \family default
510 \series default
511 \shape default
512 \size default
513 \emph default
514 \bar default
515 \noun default
516 \color inherit
517 .これらのマクロは,文書中で使用する機能に応じて,自動的に定義されます.
518 \end_layout
519
520 \begin_layout Standard
521
522 \family roman
523 \series medium
524 \shape up
525 \size normal
526 \emph off
527 \bar no
528 \noun off
529 \color none
530 自動的に\SpecialChar LaTeX
531 を実行するコマンドが,以下のようにいくつかあります.
532 \end_layout
533
534 \begin_layout Itemize
535 \begin_inset Flex MenuItem
536 status collapsed
537
538 \begin_layout Plain Layout
539 表示\SpecialChar menuseparator
540 書式
541 \end_layout
542
543 \end_inset
544
545
546 \end_layout
547
548 \begin_layout Itemize
549
550 \family sans
551 \begin_inset Flex MenuItem
552 status collapsed
553
554 \begin_layout Plain Layout
555
556 \bar no
557 表示\SpecialChar menuseparator
558 更新\SpecialChar menuseparator
559
560 \bar default
561 書式
562 \end_layout
563
564 \end_inset
565
566
567 \end_layout
568
569 \begin_layout Standard
570
571 \family roman
572 \series medium
573 \shape up
574 \size normal
575 \emph off
576 \bar no
577 \noun off
578 \color none
579 これらは,最後に\SpecialChar LaTeX
580 を実行してからファイルに変更が加えられた場合のみ,\SpecialChar LaTeX
581 を実行します.
582 \end_layout
583
584 \begin_layout Standard
585
586 \family roman
587 \series medium
588 \shape up
589 \size normal
590 \emph off
591 \bar no
592 \noun off
593 \color none
594 \SpecialChar LyX
595 が編集中のファイルを\SpecialChar LaTeX
596 にかけるとき,\SpecialChar LyX
597 は以下の段階をふみます.
598 \end_layout
599
600 \begin_layout Enumerate
601
602 \family roman
603 \series medium
604 \shape up
605 \size normal
606 \emph off
607 \bar no
608 \noun off
609 \color none
610 文書を\SpecialChar LaTeX
611 に変換し,ファイルの拡張子を
612 \begin_inset Flex Code
613 status collapsed
614
615 \begin_layout Plain Layout
616
617 \family roman
618 \series medium
619 \shape up
620 \size normal
621 \emph off
622 \bar no
623 \noun off
624 \color none
625 .lyx
626 \end_layout
627
628 \end_inset
629
630 から
631 \begin_inset Flex Code
632 status collapsed
633
634 \begin_layout Plain Layout
635
636 \family roman
637 \series medium
638 \shape up
639 \size normal
640 \emph off
641 \bar no
642 \noun off
643 \color none
644 .tex
645 \end_layout
646
647 \end_inset
648
649 に変えて保存.
650 \end_layout
651
652 \begin_layout Enumerate
653
654 \family roman
655 \series medium
656 \shape up
657 \size normal
658 \emph off
659 \bar no
660 \noun off
661 \color none
662 この
663 \begin_inset Flex Code
664 status collapsed
665
666 \begin_layout Plain Layout
667
668 \family roman
669 \series medium
670 \shape up
671 \size normal
672 \emph off
673 \bar no
674 \noun off
675 \color none
676 .tex
677 \end_layout
678
679 \end_inset
680
681 ファイルに対して(必要に応じて複数回)\SpecialChar LaTeX
682 を実行し,\SpecialChar LaTeX
683 ファイルをコンパイルするのに必要な他のコマンド(
684 \begin_inset Flex Code
685 status collapsed
686
687 \begin_layout Plain Layout
688
689 \family roman
690 \series medium
691 \shape up
692 \size normal
693 \emph off
694 \bar no
695 \noun off
696 \color none
697 bibtex
698 \end_layout
699
700 \end_inset
701
702
703 \begin_inset Flex Code
704 status collapsed
705
706 \begin_layout Plain Layout
707
708 \family roman
709 \series medium
710 \shape up
711 \size normal
712 \emph off
713 \bar no
714 \noun off
715 \color none
716 makeindex
717 \end_layout
718
719 \end_inset
720
721 など)を実行..
722 \end_layout
723
724 \begin_layout Enumerate
725
726 \family roman
727 \series medium
728 \shape up
729 \size normal
730 \emph off
731 \bar no
732 \noun off
733 \color none
734 もしエラーがあれば,エラーログを表示.
735 \end_layout
736
737 \begin_layout Standard
738
739 \family roman
740 \series medium
741 \shape up
742 \size normal
743 \emph off
744 \bar no
745 \noun off
746 \color none
747 \SpecialChar LaTeX
748
749 \family sans
750 \series default
751 \shape default
752 \size default
753 \emph default
754 \bar default
755 \noun default
756 \color inherit
757
758 \begin_inset Flex MenuItem
759 status collapsed
760
761 \begin_layout Plain Layout
762
763 \family sans
764 表示\SpecialChar menuseparator
765 DVI
766 \end_layout
767
768 \end_inset
769
770
771 \family roman
772 \series medium
773 \shape up
774 \size normal
775 \emph off
776 \bar no
777 \noun off
778 \color none
779 を使用して実行した場合には,\SpecialChar LyX
780 はこの後,DVIビューアを実行してDVIファイルを表示します.
781 \begin_inset Flex MenuItem
782 status collapsed
783
784 \begin_layout Plain Layout
785
786 \family roman
787 \series medium
788 \shape up
789 \size normal
790 \emph off
791 \bar no
792 \noun off
793 \color none
794 表示\SpecialChar menuseparator
795 PostScript
796 \end_layout
797
798 \end_inset
799
800 を使用した場合には,\SpecialChar LyX
801 はさらに以下の段階をふみます.
802 \end_layout
803
804 \begin_layout Itemize
805
806 \family roman
807 \series medium
808 \shape up
809 \size normal
810 \emph off
811 \bar no
812 \noun off
813 \color none
814 \begin_inset Flex Code
815 status collapsed
816
817 \begin_layout Plain Layout
818
819 \family typewriter
820 dvips
821 \end_layout
822
823 \end_inset
824
825 を実行して,
826 \family default
827 \series default
828 \shape default
829 \size default
830 \emph default
831 \bar default
832 \noun default
833 \color inherit
834 DVI
835 \family roman
836 \series medium
837 \shape up
838 \size normal
839 \emph off
840 \bar no
841 \noun off
842 \color none
843 ファイルをPostScript
844 \family default
845 \series default
846 \shape default
847 \size default
848 \emph default
849 \bar default
850 \noun default
851 \color inherit
852 に変換.
853 \end_layout
854
855 \begin_layout Itemize
856
857 \family roman
858 \series medium
859 \shape up
860 \size normal
861 \emph off
862 \bar no
863 \noun off
864 \color none
865 \begin_inset Flex Code
866 status collapsed
867
868 \begin_layout Plain Layout
869
870 \family typewriter
871 ghostview
872 \end_layout
873
874 \end_inset
875
876 などのPostScriptビューアを実行して,PostScript
877 \family default
878 \series default
879 \shape default
880 \size default
881 \emph default
882 \bar default
883 \noun default
884 \color inherit
885 ファイルを表示.
886 \end_layout
887
888 \begin_layout Standard
889 \SpecialChar LyX
890 は,他の書式を表示したりエクスポートしたりする際にも,同様のことを行います.
891 \end_layout
892
893 \begin_layout Section
894 \SpecialChar LaTeX
895 ファイルを\SpecialChar LyX
896 に読み込む
897 \end_layout
898
899 \begin_layout Standard
900 \SpecialChar LyX
901
902 \family sans
903
904 \begin_inset Flex MenuItem
905 status collapsed
906
907 \begin_layout Plain Layout
908
909 \family sans
910 ファイル\SpecialChar menuseparator
911 インポート\SpecialChar menuseparator
912 LaTeX
913 \end_layout
914
915 \end_inset
916
917
918 \family roman
919 \series medium
920 \shape up
921 \size normal
922 \emph off
923 \bar no
924 \noun off
925 \color none
926 コマンドを使用すると,\SpecialChar LaTeX
927 ファイルを
928 \family default
929 \series default
930 \shape default
931 \size default
932 \emph default
933 \bar default
934 \noun default
935  
936 \family roman
937 \series medium
938 \shape up
939 \size normal
940 \emph off
941 \bar no
942 \noun off
943 \SpecialChar LyX
944 にインポートすることができます.このコマンドは,
945 \family typewriter
946 \series default
947 \shape default
948 \size default
949 \emph default
950 \bar default
951 \noun default
952 \color inherit
953
954 \begin_inset Flex Code
955 status collapsed
956
957 \begin_layout Plain Layout
958
959 \family typewriter
960 tex2lyx
961 \end_layout
962
963 \end_inset
964
965
966 \family roman
967 \series medium
968 \shape up
969 \size normal
970 \emph off
971 \bar no
972 \noun off
973 \color none
974 というプログラムを呼び出し,
975 \family typewriter
976 \series default
977 \shape default
978 \size default
979 \emph default
980 \bar default
981 \noun default
982 \color inherit
983
984 \begin_inset Flex Code
985 status collapsed
986
987 \begin_layout Plain Layout
988
989 \family typewriter
990 foo.tex
991 \end_layout
992
993 \end_inset
994
995
996 \family default
997 などというファイルから
998 \begin_inset Flex Code
999 status collapsed
1000
1001 \begin_layout Plain Layout
1002
1003 \family typewriter
1004 foo.lyx
1005 \end_layout
1006
1007 \end_inset
1008
1009 を生成します.\SpecialChar LyX
1010 は,この変換したファイルを開きます
1011 \begin_inset Foot
1012 status collapsed
1013
1014 \begin_layout Plain Layout
1015 \begin_inset Flex Code
1016 status collapsed
1017
1018 \begin_layout Plain Layout
1019 tex2lyx
1020 \end_layout
1021
1022 \end_inset
1023
1024 は,もちろんコマンドラインから実行することもできます.
1025 \end_layout
1026
1027 \end_inset
1028
1029
1030 \end_layout
1031
1032 \begin_layout Standard
1033
1034 \family typewriter
1035 \begin_inset Flex Code
1036 status collapsed
1037
1038 \begin_layout Plain Layout
1039
1040 \family typewriter
1041 tex2lyx
1042 \end_layout
1043
1044 \end_inset
1045
1046
1047 \family roman
1048 \series medium
1049 \shape up
1050 \size normal
1051 \emph off
1052 \bar no
1053 \noun off
1054 \color none
1055 は,文法的に正しい\SpecialChar LaTeX
1056 ファイルのほとんどを変換することができますが,すべてを変換できるわけではありません.
1057 \family typewriter
1058 \series default
1059 \shape default
1060 \size default
1061 \emph default
1062 \bar default
1063 \noun default
1064 \color inherit
1065
1066 \begin_inset Flex Code
1067 status collapsed
1068
1069 \begin_layout Plain Layout
1070
1071 \family typewriter
1072 tex2lyx
1073 \end_layout
1074
1075 \end_inset
1076
1077
1078 \family roman
1079 \series medium
1080 \shape up
1081 \size normal
1082 \emph off
1083 \bar no
1084 \noun off
1085 \color none
1086 は,理解不能な部分は\SpecialChar TeX
1087 コードボックスの形で残しますので,ファイルを
1088 \family typewriter
1089 \series default
1090 \shape default
1091 \size default
1092 \emph default
1093 \bar default
1094 \noun default
1095 \color inherit
1096
1097 \begin_inset Flex Code
1098 status collapsed
1099
1100 \begin_layout Plain Layout
1101
1102 \family typewriter
1103 tex2lyx
1104 \end_layout
1105
1106 \end_inset
1107
1108
1109 \family roman
1110 \series medium
1111 \shape up
1112 \size normal
1113 \emph off
1114 \bar no
1115 \noun off
1116 \color none
1117 で変換したのち,\SpecialChar TeX
1118 コードボックスを探して,手動で正しく編集してください.
1119 \end_layout
1120
1121 \begin_layout Standard
1122
1123 \family roman
1124 \series medium
1125 \shape up
1126 \size normal
1127 \emph off
1128 \bar no
1129 \noun off
1130 \color none
1131 \SpecialChar TeX
1132 コードボックスがなにかご存じなければ,次節をお読みください.
1133 \end_layout
1134
1135 \begin_layout Section
1136 \SpecialChar LaTeX
1137 コードを挿入する
1138 \begin_inset CommandInset label
1139 LatexCommand label
1140 name "sec:LaTeXコードを挿入する"
1141
1142 \end_inset
1143
1144
1145 \end_layout
1146
1147 \begin_layout Standard
1148
1149 \family roman
1150 \series medium
1151 \shape up
1152 \size normal
1153 \emph off
1154 \bar no
1155 \noun off
1156 \color none
1157 どの\SpecialChar LyX
1158 文書にもつねに\SpecialChar TeX
1159 コードを挿入することが可能であるというきわめて単純な理由によって,\SpecialChar LaTeX
1160 にできることは,つねに\SpecialChar LyX
1161 でも行うことができます.一方,\SpecialChar LyX
1162 は,すべての\SpecialChar LaTeX
1163 構成物を\SpecialChar LyX
1164 内に
1165 表示できるわけではなく,将来的にもそうならないでしょう.かりに\SpecialChar LaTeX
1166 コマンドを\SpecialChar LyX
1167 文書に挿入する必要が出てきた場合には,
1168 \begin_inset Flex Code
1169 status collapsed
1170
1171 \begin_layout Plain Layout
1172
1173 \family roman
1174 \series medium
1175 \shape up
1176 \size normal
1177 \emph off
1178 \bar no
1179 \noun off
1180 \color none
1181 \SpecialChar TeX
1182 コード
1183 \end_layout
1184
1185 \end_inset
1186
1187 ボックスを使用してください.これは,
1188 \family sans
1189 \series default
1190 \shape default
1191 \size default
1192 \emph default
1193 \bar default
1194 \noun default
1195 \color inherit
1196
1197 \begin_inset Flex MenuItem
1198 status collapsed
1199
1200 \begin_layout Plain Layout
1201
1202 \family sans
1203 挿入\SpecialChar menuseparator
1204 TeXコード
1205 \end_layout
1206
1207 \end_inset
1208
1209
1210 \family roman
1211 \series medium
1212 \shape up
1213 \size normal
1214 \emph off
1215 \bar no
1216 \noun off
1217 \color none
1218 若しくは
1219 \family default
1220 \series default
1221 \shape default
1222 \size default
1223 \emph default
1224 \bar default
1225 \noun default
1226 \color inherit
1227
1228 \begin_inset Flex Ruby
1229 status collapsed
1230
1231 \begin_layout Plain Layout
1232
1233 \family roman
1234 \series medium
1235 \shape up
1236 \size normal
1237 \emph off
1238 \bar no
1239 \noun off
1240 \color none
1241 捷径
1242 \family default
1243 \series default
1244 \shape default
1245 \size default
1246 \emph default
1247 \bar default
1248 \noun default
1249 \color inherit
1250
1251 \begin_inset Argument post:1
1252 status collapsed
1253
1254 \begin_layout Plain Layout
1255 ショートカット
1256 \end_layout
1257
1258 \end_inset
1259
1260
1261 \end_layout
1262
1263 \end_inset
1264
1265
1266 \begin_inset Flex Ruby
1267 status collapsed
1268
1269 \begin_layout Plain Layout
1270
1271 \family roman
1272 \series medium
1273 \shape up
1274 \size normal
1275 \emph off
1276 \bar no
1277 \noun off
1278 \color none
1279
1280 \begin_inset Argument post:1
1281 status collapsed
1282
1283 \begin_layout Plain Layout
1284 キー
1285 \end_layout
1286
1287 \end_inset
1288
1289
1290 \end_layout
1291
1292 \end_inset
1293
1294
1295 \begin_inset Info
1296 type  "shortcut"
1297 arg   "ert-insert"
1298 \end_inset
1299
1300
1301 \family roman
1302 \series medium
1303 \shape up
1304 \size normal
1305 \emph off
1306 \bar no
1307 \noun off
1308 \color none
1309 で,文書中に挿入することができます.
1310 \end_layout
1311
1312 \begin_layout Standard
1313 以下は,\SpecialChar LaTeX
1314 コマンドを\SpecialChar LyX
1315 文書中に挿入する例です.コードは以下のようになっているとしましょう.
1316 \end_layout
1317
1318 \begin_layout LyX-Code
1319
1320 \backslash
1321 begin{tabular}{ll}
1322 \begin_inset Newline newline
1323 \end_inset
1324
1325
1326 \backslash
1327 begin{minipage}{5cm}
1328 \begin_inset Newline newline
1329 \end_inset
1330
1331 これは,ミニページ環境の例です.
1332 \begin_inset Newline newline
1333 \end_inset
1334
1335 これには,
1336 \begin_inset Newline newline
1337 \end_inset
1338
1339 (フロートでない)図表を
1340 \begin_inset Newline newline
1341 \end_inset
1342
1343 含め,ほとんど何でも
1344 \begin_inset Newline newline
1345 \end_inset
1346
1347 入れることができます. 
1348 \begin_inset Newline newline
1349 \end_inset
1350
1351
1352 \backslash
1353 end{minipage}
1354 \begin_inset Newline newline
1355 \end_inset
1356
1357 &
1358 \begin_inset Newline newline
1359 \end_inset
1360
1361
1362 \backslash
1363 begin{minipage}{5cm}
1364 \begin_inset Newline newline
1365 \end_inset
1366
1367
1368 \backslash
1369 begin{verbatim}
1370 \begin_inset Newline newline
1371 \end_inset
1372
1373
1374 \backslash
1375 begin{minipage}{5cm}
1376 \begin_inset Newline newline
1377 \end_inset
1378
1379 これは...
1380  
1381 \begin_inset Newline newline
1382 \end_inset
1383
1384
1385 \backslash
1386 end{minipage}
1387 \begin_inset Newline newline
1388 \end_inset
1389
1390
1391 \backslash
1392 end{verbatim}
1393 \begin_inset Newline newline
1394 \end_inset
1395
1396
1397 \backslash
1398 end{minipage}
1399 \begin_inset Newline newline
1400 \end_inset
1401
1402
1403 \backslash
1404 end{tabular}
1405 \end_layout
1406
1407 \begin_layout LyX-Code
1408
1409 \end_layout
1410
1411 \begin_layout Standard
1412 上記のテキストを含んだ
1413 \begin_inset Flex Code
1414 status collapsed
1415
1416 \begin_layout Plain Layout
1417 \SpecialChar TeX
1418 コード
1419 \end_layout
1420
1421 \end_inset
1422
1423 ボックスが,この段落の直後にあります.この取扱説明書を\SpecialChar LyX
1424 上でご覧になっていれば,\SpecialChar TeX
1425 コード差込枠のみが見えるはずです.印刷した取扱説明書をご覧であれば,実際の結果が見
1426 れるはずです.
1427 \end_layout
1428
1429 \begin_layout Standard
1430 \begin_inset VSpace bigskip
1431 \end_inset
1432
1433
1434 \begin_inset ERT
1435 status open
1436
1437 \begin_layout Plain Layout
1438
1439
1440 \backslash
1441 begin{tabular}{ll}
1442 \end_layout
1443
1444 \begin_layout Plain Layout
1445
1446
1447 \backslash
1448 begin{minipage}{5cm}
1449 \end_layout
1450
1451 \begin_layout Plain Layout
1452
1453 これは,ミニページ環境の例です.これには,(フロートでない)図表を含め,ほとんど何でも入れることができます. 
1454 \backslash
1455 end{minipage}
1456 \end_layout
1457
1458 \begin_layout Plain Layout
1459
1460 &
1461 \end_layout
1462
1463 \begin_layout Plain Layout
1464
1465
1466 \backslash
1467 begin{minipage}{5cm}
1468 \end_layout
1469
1470 \begin_layout Plain Layout
1471
1472
1473 \backslash
1474 begin{verbatim}
1475 \end_layout
1476
1477 \begin_layout Plain Layout
1478
1479
1480 \backslash
1481 begin{minipage}{5cm}
1482 \end_layout
1483
1484 \begin_layout Plain Layout
1485
1486 これは...
1487  
1488 \backslash
1489 end{minipage}
1490 \end_layout
1491
1492 \begin_layout Plain Layout
1493
1494
1495 \backslash
1496 end{verbatim}
1497 \end_layout
1498
1499 \begin_layout Plain Layout
1500
1501
1502 \backslash
1503 end{minipage}
1504 \end_layout
1505
1506 \begin_layout Plain Layout
1507
1508
1509 \backslash
1510 end{tabular}
1511 \end_layout
1512
1513 \end_inset
1514
1515
1516 \begin_inset VSpace bigskip
1517 \end_inset
1518
1519
1520 \end_layout
1521
1522 \begin_layout Standard
1523
1524 \family roman
1525 \series medium
1526 \shape up
1527 \size normal
1528 \emph off
1529 \bar no
1530 \noun off
1531 \color none
1532 \SpecialChar TeX
1533 コードを使用する方法に加えて,複雑な\SpecialChar LaTeX
1534 コードを含む部分を別ファイルとして作成しておき,そのファイルをインクルードするのに
1535 \begin_inset Flex MenuItem
1536 status collapsed
1537
1538 \begin_layout Plain Layout
1539
1540 \family roman
1541 \series medium
1542 \shape up
1543 \size normal
1544 \emph off
1545 \bar no
1546 \noun off
1547 \color none
1548 挿入\SpecialChar menuseparator
1549 ファイル\SpecialChar menuseparator
1550 子文書
1551 \end_layout
1552
1553 \end_inset
1554
1555 を使用する方法もあります(取り込みの型として
1556 \begin_inset Flex Code
1557 status collapsed
1558
1559 \begin_layout Plain Layout
1560
1561 \family roman
1562 \series medium
1563 \shape up
1564 \size normal
1565 \emph off
1566 \bar no
1567 \noun off
1568 \color none
1569 Input
1570 \end_layout
1571
1572 \end_inset
1573
1574 を選択しなくてはなりません).この方法をとる場合には,.texファイルが正しく動作することが
1575 \family default
1576 \series default
1577 \shape default
1578 \size default
1579 \emph on
1580 \bar default
1581 \noun default
1582 \color inherit
1583 確認できている
1584 \family roman
1585 \series medium
1586 \shape up
1587 \size normal
1588 \emph off
1589 \bar no
1590 \noun off
1591 \color none
1592 場合のみに限った方がよいでしょう.さもないと,\SpecialChar LaTeX
1593 エラーを追跡するたいへんな作業を行わなくてはならなくなります.
1594 \end_layout
1595
1596 \begin_layout Standard
1597
1598 \family roman
1599 \series medium
1600 \shape up
1601 \size normal
1602 \emph off
1603 \bar no
1604 \noun off
1605 \color none
1606 最後に,いくつか強調しておくべきことがあります.
1607 \end_layout
1608
1609 \begin_layout Itemize
1610
1611 \family roman
1612 \series medium
1613 \shape up
1614 \size normal
1615 \emph off
1616 \bar no
1617 \noun off
1618 \color none
1619 \SpecialChar LyX
1620 は,あなたの\SpecialChar LaTeX
1621 コードが正しいかどうかを
1622 \family default
1623 \series default
1624 \shape default
1625 \size default
1626 \emph on
1627 \bar default
1628 \noun default
1629 \color inherit
1630 チェックしません
1631 \family roman
1632 \series medium
1633 \shape up
1634 \size normal
1635 \emph off
1636 \bar no
1637 \noun off
1638 \color none
1639
1640 \end_layout
1641
1642 \begin_layout Itemize
1643
1644 \family roman
1645 \series medium
1646 \shape up
1647 \size normal
1648 \emph off
1649 \bar no
1650 \noun off
1651 \color none
1652 車輪の再発明をしないようにご注意ください.
1653 \end_layout
1654
1655 \begin_layout Standard
1656
1657 \family roman
1658 \series medium
1659 \shape up
1660 \size normal
1661 \emph off
1662 \bar no
1663 \noun off
1664 \color none
1665 二番目の点に関して,\SpecialChar LyX
1666 はひじょうにたくさんの機能を装備しており,その数は増えつづけています.ご自身で\SpecialChar LaTeX
1667 コードを書かなくてはならないと思い込む前に,LyXがこれこれの
1668 機能をもっていないことを,取扱説明書で確実に確かめてください.さらに世の中には,封筒のラベルから美しい複数ページにわたる表を作るものまで,ありとあらゆることを行
1669 う膨大な数の\SpecialChar LaTeX
1670 パッケージが存在します.
1671 \family default
1672 \series default
1673 \shape default
1674 \size default
1675 \emph default
1676 \bar default
1677 \noun default
1678 \color inherit
1679 詳細については,
1680 \begin_inset CommandInset href
1681 LatexCommand href
1682 name "CTAN"
1683 target "http://www.ctan.org/"
1684 literal "false"
1685
1686 \end_inset
1687
1688
1689 \family roman
1690 \series medium
1691 \shape up
1692 \size normal
1693 \emph off
1694 \bar no
1695 \noun off
1696 \color none
1697 と第
1698 \begin_inset CommandInset ref
1699 LatexCommand ref
1700 reference "chap:Special-features"
1701
1702 \end_inset
1703
1704 節をご覧ください.
1705 \end_layout
1706
1707 \begin_layout Standard
1708
1709 \family roman
1710 \series medium
1711 \shape up
1712 \size normal
1713 \emph off
1714 \bar no
1715 \noun off
1716 \color none
1717 もし,文書中で例外的に手の込んだことをなさりたければ,かならず良い\SpecialChar LaTeX
1718 関連書籍を参考とするようにしてください.『
1719 \family default
1720 \series default
1721 \shape default
1722 \size default
1723 \emph on
1724 \bar default
1725 \noun default
1726 \color inherit
1727 ユーザーの手引き
1728 \family roman
1729 \series medium
1730 \shape up
1731 \size normal
1732 \emph off
1733 \bar no
1734 \noun off
1735 \color none
1736 』の書誌情報に多くの\SpecialChar LaTeX
1737 関連書籍が引用されています.
1738 \end_layout
1739
1740 \begin_layout Section
1741 \SpecialChar LyX
1742 と\SpecialChar LaTeX
1743 プリアンブル
1744 \end_layout
1745
1746 \begin_layout Subsection
1747 \SpecialChar LaTeX
1748 プリアンブルについて
1749 \end_layout
1750
1751 \begin_layout Standard
1752
1753 \family roman
1754 \series medium
1755 \shape up
1756 \size normal
1757 \emph off
1758 \bar no
1759 \noun off
1760 \color none
1761 すでに\SpecialChar LaTeX
1762 についてご存知であれば,ここでプリアンブル(前置文)が何に向いているか説明する必要はないでしょう.もしご存じなければ,以下の説明で大まかな理解は得られるは
1763 ずです.詳しくは\SpecialChar LaTeX
1764 関連書籍をご参照ください.いずれにしても,以下で\SpecialChar LyX
1765 文書の\SpecialChar LaTeX
1766 プリアンブルで何ができるか,または何をする必要がないか説明をしますので,以下の各要点はお読
1767 みになった方が良いでしょう.
1768 \end_layout
1769
1770 \begin_layout Standard
1771
1772 \family roman
1773 \series medium
1774 \shape up
1775 \size normal
1776 \emph off
1777 \bar no
1778 \noun off
1779 \color none
1780 \SpecialChar LaTeX
1781 プリアンブルは,\SpecialChar LaTeX
1782 文書のいちばん始め,本文の
1783 \family default
1784 \series default
1785 \shape default
1786 \size default
1787 \emph on
1788 \bar default
1789 \noun default
1790 \color inherit
1791
1792 \family roman
1793 \series medium
1794 \shape up
1795 \size normal
1796 \emph off
1797 \bar no
1798 \noun off
1799 \color none
1800 の部分に来ます.ここでは以下のことを行います.
1801 \end_layout
1802
1803 \begin_layout Itemize
1804
1805 \family roman
1806 \series medium
1807 \shape up
1808 \size normal
1809 \emph off
1810 \bar no
1811 \noun off
1812 \color none
1813 文書クラス(ドキュメントクラス)の宣言.
1814 \begin_inset Newline newline
1815 \end_inset
1816
1817 これは\SpecialChar LyX
1818 がすでに行ってくれています.もしあなたが熟達した\SpecialChar LaTeX
1819 使いであり,自作の文書クラスを使いたい場合には,取扱説明書『
1820 \family default
1821 \series default
1822 \shape default
1823 \size default
1824 \emph on
1825 \bar default
1826 \noun default
1827 \color inherit
1828 カスタマイズ篇
1829 \family roman
1830 \series medium
1831 \shape up
1832 \size normal
1833 \emph off
1834 \bar no
1835 \noun off
1836 \color none
1837 』をご覧になれば,\SpecialChar LyX
1838 に自作文書クラスへの仲介を行わせるにはどうすればよいかの情報があります.
1839 \end_layout
1840
1841 \begin_layout Itemize
1842
1843 \family roman
1844 \series medium
1845 \shape up
1846 \size normal
1847 \emph off
1848 \bar no
1849 \noun off
1850 \color none
1851 パッケージ使用の宣言.
1852 \begin_inset Newline newline
1853 \end_inset
1854
1855 \SpecialChar LaTeX
1856 パッケージは,パッケージがプリアンブルで宣言された場合のみ,文書中で利用可能となる,追加コマンド群を提供します.パッケージをインクルードすると,特別なコマンドが
1857 提供されることに加え,文書に変更を加えることができます.例えば
1858 \family typewriter
1859 \series default
1860 \shape default
1861 \size default
1862 \emph default
1863 \bar default
1864 \noun default
1865 \color inherit
1866
1867 \family roman
1868 \series medium
1869 \shape up
1870 \size normal
1871 \emph off
1872 \bar no
1873 \noun off
1874 \color none
1875
1876 \begin_inset Flex Code
1877 status collapsed
1878
1879 \begin_layout Plain Layout
1880
1881 \family typewriter
1882 indentfirst
1883 \end_layout
1884
1885 \end_inset
1886
1887 パッケージは,すべての段落の最初の行を字下げします.他にも,ラベルや宛名書き,余白設定等の様々なパッケージがあります.
1888 \end_layout
1889
1890 \begin_layout Itemize
1891
1892 \family roman
1893 \series medium
1894 \shape up
1895 \size normal
1896 \emph off
1897 \bar no
1898 \noun off
1899 \color none
1900 カウンタ・変数・長さ・幅の設定.
1901 \begin_inset Newline newline
1902 \end_inset
1903
1904 \SpecialChar LaTeX
1905 のカウンタと変数の中には,プリアンブルでグローバルに
1906 \family default
1907 \series default
1908 \shape default
1909 \size default
1910 \emph default
1911 \bar default
1912 \noun default
1913 \color inherit
1914 設定
1915 \emph on
1916 しないかぎり
1917 \family roman
1918 \series medium
1919 \shape up
1920 \size normal
1921 \emph off
1922 \bar no
1923 \noun off
1924 \color none
1925 ,望んだ効果を持たないものがあります.(文書中で設定したり再設定したりすることのできる変数もあります.)余白は,プリアンブルで設定しなくてはならない変数の代表例
1926 です.他には,箇条書きに付けるラベル書式が挙げられます.じつは,この設定は文書中どこでもできるのですが,プリアンブルでいちどだけ設定するのが望ましい方法です.
1927 \end_layout
1928
1929 \begin_layout Itemize
1930
1931 \family roman
1932 \series medium
1933 \shape up
1934 \size normal
1935 \emph off
1936 \bar no
1937 \noun off
1938 \color none
1939 ユーザー定義コマンドの宣言(
1940 \begin_inset Flex Code
1941 status collapsed
1942
1943 \begin_layout Plain Layout
1944
1945 \family roman
1946 \series medium
1947 \shape up
1948 \size normal
1949 \emph off
1950 \bar no
1951 \noun off
1952 \color none
1953
1954 \backslash
1955 newcommand
1956 \end_layout
1957
1958 \end_inset
1959
1960 または
1961 \begin_inset Flex Code
1962 status collapsed
1963
1964 \begin_layout Plain Layout
1965
1966 \family roman
1967 \series medium
1968 \shape up
1969 \size normal
1970 \emph off
1971 \bar no
1972 \noun off
1973 \color none
1974
1975 \backslash
1976 renewcommand
1977 \end_layout
1978
1979 \end_inset
1980
1981 を使用).
1982 \begin_inset Newline newline
1983 \end_inset
1984
1985 ユーザー定義コマンドは,文書中で頻出する\SpecialChar LaTeX
1986 コマンドの短縮形です.このようなコマンドを宣言するには,プリアンブルが適した場所ですが,どこで宣言することも
1987 \family default
1988 \series default
1989 \shape default
1990 \size default
1991 \emph on
1992 \bar default
1993 \noun default
1994 \color inherit
1995 可能
1996 \family roman
1997 \series medium
1998 \shape up
1999 \size normal
2000 \emph off
2001 \bar no
2002 \noun off
2003 \color none
2004 です(もちろんコマンドが初めて使用される場所よりも前です).あまりないことではありますが,お使いの文書中に生の\SpecialChar LaTeX
2005 コードがあふれている場合には便利でしょう.
2006 \end_layout
2007
2008 \begin_layout Standard
2009
2010 \family roman
2011 \series medium
2012 \shape up
2013 \size normal
2014 \emph off
2015 \bar no
2016 \noun off
2017 \color none
2018 \SpecialChar LyX
2019 は,その生成する
2020 \begin_inset Flex Code
2021 status collapsed
2022
2023 \begin_layout Plain Layout
2024
2025 \family roman
2026 \series medium
2027 \shape up
2028 \size normal
2029 \emph off
2030 \bar no
2031 \noun off
2032 \color none
2033 .tex
2034 \end_layout
2035
2036 \end_inset
2037
2038 ファイルのプリアンブルに,それ自身の定義を追加します.これによって,\SpecialChar LyX
2039 の生成する\SpecialChar LaTeX
2040 ファイルの可搬性を高めています.
2041 \end_layout
2042
2043 \begin_layout Subsection
2044 プリアンブルの変更
2045 \end_layout
2046
2047 \begin_layout Standard
2048
2049 \family roman
2050 \series medium
2051 \shape up
2052 \size normal
2053 \emph off
2054 \bar no
2055 \noun off
2056 \color none
2057 \SpecialChar LyX
2058 が\SpecialChar LaTeX
2059 ファイルのプリアンブルに追加するコマンドは,つねに同じです.これは,\SpecialChar LyX
2060 自体にパッチを当てないかぎり変更できないようになっています.しかしながら,
2061 \begin_inset Flex MenuItem
2062 status collapsed
2063
2064 \begin_layout Plain Layout
2065
2066 \family roman
2067 \series medium
2068 \shape up
2069 \size normal
2070 \emph off
2071 \bar no
2072 \noun off
2073 \color none
2074 文書\SpecialChar menuseparator
2075 設定
2076 \end_layout
2077
2078 \end_inset
2079
2080 ダイアログの
2081 \begin_inset Flex MenuItem
2082 status collapsed
2083
2084 \begin_layout Plain Layout
2085
2086 \family roman
2087 \series medium
2088 \shape up
2089 \size normal
2090 \emph off
2091 \bar no
2092 \noun off
2093 \color none
2094 \SpecialChar LaTeX
2095 プリアンブル
2096 \end_layout
2097
2098 \end_inset
2099
2100 の項から,プリアンブルに追加をすることはできます.\SpecialChar LyX
2101 は,
2102 \family sans
2103 \series default
2104 \shape default
2105 \size default
2106 \emph default
2107 \bar default
2108 \noun default
2109 \color inherit
2110
2111 \begin_inset Flex MenuItem
2112 status collapsed
2113
2114 \begin_layout Plain Layout
2115
2116 \family sans
2117 プリアンブル
2118 \end_layout
2119
2120 \end_inset
2121
2122
2123 \family roman
2124 \series medium
2125 \shape up
2126 \size normal
2127 \emph off
2128 \bar no
2129 \noun off
2130 \color none
2131 ダイアログ内のすべてのものを,\SpecialChar LyX
2132 埋込みのプリアンブルに付け加えます.ご自身の宣言をプリアンブルに追加する前に,あなたがしようとしていることを\SpecialChar LyX
2133 がすでにサポートしてい
2134 ないかどうか確認してください(車輪の再発明をしないように,とはすでに申しあげたことです).
2135 \family default
2136 \series default
2137 \shape default
2138 \size default
2139 \emph default
2140 \bar default
2141 \noun default
2142 \color inherit
2143 また,
2144 \emph on
2145 プリアンブルコードが正しいことを確認してください.
2146 \emph default
2147 \SpecialChar LyX
2148 は,プリアンブルをチェックしません.
2149 \family roman
2150 \series medium
2151 \shape up
2152 \size normal
2153 \emph off
2154 \bar no
2155 \noun off
2156 \color none
2157 もしエラーがあれば,「
2158 \begin_inset Flex Code
2159 status collapsed
2160
2161 \begin_layout Plain Layout
2162
2163 \family roman
2164 \series medium
2165 \shape up
2166 \size normal
2167 \emph off
2168 \bar no
2169 \noun off
2170 \color none
2171 Missing 
2172 \backslash
2173 begin{document}
2174 \end_layout
2175
2176 \end_inset
2177
2178 」といったエラーが出ることでしょう.このようなエラーが出たときは,プリアンブルを再確認してください.
2179 \end_layout
2180
2181 \begin_layout Subsection
2182
2183 \end_layout
2184
2185 \begin_layout Standard
2186
2187 \family roman
2188 \series medium
2189 \shape up
2190 \size normal
2191 \emph off
2192 \bar no
2193 \noun off
2194 \color none
2195 以下は,プリアンブルに追加できるものとその効果を示す例です.
2196 \end_layout
2197
2198 \begin_layout Subsubsection
2199 例1:オフセット
2200 \end_layout
2201
2202 \begin_layout Standard
2203
2204 \family roman
2205 \series medium
2206 \shape up
2207 \size normal
2208 \emph off
2209 \bar no
2210 \noun off
2211 \color none
2212 \SpecialChar LaTeX
2213 には
2214 \family default
2215 \series default
2216 \shape default
2217 \size default
2218 \emph default
2219 \bar default
2220 \noun default
2221 \color inherit
2222
2223 \family roman
2224 \series medium
2225 \shape up
2226 \size normal
2227 \emph off
2228 \bar no
2229 \noun off
2230 \color none
2231
2232 \begin_inset Flex Code
2233 status collapsed
2234
2235 \begin_layout Plain Layout
2236
2237 \family typewriter
2238
2239 \backslash
2240 hoffset
2241 \end_layout
2242
2243 \end_inset
2244
2245
2246 \family typewriter
2247 \series default
2248 \shape default
2249 \size default
2250 \emph default
2251 \bar default
2252 \noun default
2253 \color inherit
2254
2255 \begin_inset Flex Code
2256 status collapsed
2257
2258 \begin_layout Plain Layout
2259
2260 \family typewriter
2261
2262 \backslash
2263 voffset
2264 \end_layout
2265
2266 \end_inset
2267
2268
2269 \family roman
2270 \series medium
2271 \shape up
2272 \size normal
2273 \emph off
2274 \bar no
2275 \noun off
2276 \color none
2277 というページ位置を制御する2つの変数があります.その機能は名前から明らかなとおりです.これらの変数は,ラベルを印刷するときなどに便利です.往々にして,印刷用紙の
2278 寸法とそのうち実際に印字可能な範囲は同じではありません.ここに
2279 \begin_inset Flex Code
2280 status collapsed
2281
2282 \begin_layout Plain Layout
2283
2284 \family typewriter
2285
2286 \backslash
2287 hoffset
2288 \end_layout
2289
2290 \end_inset
2291
2292
2293 \family typewriter
2294 \series default
2295 \shape default
2296 \size default
2297 \emph default
2298 \bar default
2299 \noun default
2300 \color inherit
2301
2302 \begin_inset Flex Code
2303 status collapsed
2304
2305 \begin_layout Plain Layout
2306
2307 \family typewriter
2308
2309 \backslash
2310 voffset
2311 \end_layout
2312
2313 \end_inset
2314
2315
2316 \family default
2317 が役立つわけです.
2318 \end_layout
2319
2320 \begin_layout Standard
2321
2322 \family roman
2323 \series medium
2324 \shape up
2325 \size normal
2326 \emph off
2327 \bar no
2328 \noun off
2329 \color none
2330 \begin_inset Flex Code
2331 status collapsed
2332
2333 \begin_layout Plain Layout
2334
2335 \family typewriter
2336
2337 \backslash
2338 hoffset
2339 \end_layout
2340
2341 \end_inset
2342
2343
2344 \family typewriter
2345 \series default
2346 \shape default
2347 \size default
2348 \emph default
2349 \bar default
2350 \noun default
2351 \color inherit
2352
2353 \begin_inset Flex Code
2354 status collapsed
2355
2356 \begin_layout Plain Layout
2357
2358 \family typewriter
2359
2360 \backslash
2361 voffset
2362 \end_layout
2363
2364 \end_inset
2365
2366
2367 \family roman
2368 \series medium
2369 \shape up
2370 \size normal
2371 \emph off
2372 \bar no
2373 \noun off
2374 \color none
2375 の既定値はともに0ポイント,つまりページをシフトしません.残念ながら,DVIドライバによってはつねにページをシフトすることがあるようです.我々には,どうしてその
2376 ようなことをするのか,そしてシスアドがどうしてそれを修正しないのか理解できませんが,もし個人的に管理できないシステムで\SpecialChar LyX
2377 を使用していて,シスアドがお馬鹿さんである
2378 場合には,
2379 \begin_inset Flex Code
2380 status collapsed
2381
2382 \begin_layout Plain Layout
2383
2384 \family typewriter
2385
2386 \backslash
2387 hoffset
2388 \end_layout
2389
2390 \end_inset
2391
2392
2393 \family typewriter
2394 \series default
2395 \shape default
2396 \size default
2397 \emph default
2398 \bar default
2399 \noun default
2400 \color inherit
2401
2402 \begin_inset Flex Code
2403 status collapsed
2404
2405 \begin_layout Plain Layout
2406
2407 \family typewriter
2408
2409 \backslash
2410 voffset
2411 \end_layout
2412
2413 \end_inset
2414
2415
2416 \family roman
2417 \series medium
2418 \shape up
2419 \size normal
2420 \emph off
2421 \bar no
2422 \noun off
2423 \color none
2424 が役に立ちます.かりに,上余白と左余白がつねに0.5インチずつ大きすぎるものとしましょう.その場合は,以下をプリアンブルに追加するとよいでしょう.
2425 \end_layout
2426
2427 \begin_layout LyX-Code
2428
2429 \backslash
2430 setlength{
2431 \backslash
2432 hoffset}{-0.5 in}
2433 \end_layout
2434
2435 \begin_layout LyX-Code
2436
2437 \backslash
2438 setlength{
2439 \backslash
2440 voffset}{-0.5 in}
2441 \end_layout
2442
2443 \begin_layout Standard
2444
2445 \family roman
2446 \series medium
2447 \shape up
2448 \size normal
2449 \emph off
2450 \bar no
2451 \noun off
2452 \color none
2453 これで余白が修正されます.
2454 \end_layout
2455
2456 \begin_layout Subsubsection
2457 例2:ラベル
2458 \end_layout
2459
2460 \begin_layout Standard
2461
2462 \family roman
2463 \series medium
2464 \shape up
2465 \size normal
2466 \emph off
2467 \bar no
2468 \noun off
2469 \color none
2470 いま,たくさんの宛名ラベルを印刷をしたいものとしましょう.ラベルシートを印刷するために便利な
2471 \begin_inset Flex Code
2472 status collapsed
2473
2474 \begin_layout Plain Layout
2475
2476 \family typewriter
2477 labels.sty
2478 \end_layout
2479
2480 \end_inset
2481
2482 という\SpecialChar LaTeX
2483 パッケージが,お近くのCTANアーカイブで入手可能です.お使いのシステムには,既定ではこのパッケージは導入されていないかもしれません.ご自身でお確かめくだ
2484 さい.また,このパッケージの取扱説明書を読まれたいかもしれませんが,それもご自身にお任せします.これは使用例ですので,このパッケージをどう使うかの例だけお見せす
2485 ることにします.
2486 \end_layout
2487
2488 \begin_layout Standard
2489
2490 \family roman
2491 \series medium
2492 \shape up
2493 \size normal
2494 \emph off
2495 \bar no
2496 \noun off
2497 \color none
2498 まず,
2499 \begin_inset Flex Code
2500 status collapsed
2501
2502 \begin_layout Plain Layout
2503
2504 \family sans
2505 article
2506 \end_layout
2507
2508 \end_inset
2509
2510 文書クラスを使用していることをご確認ください.次に,以下のような設定をプリアンブルに追加しなければなりません.
2511 \end_layout
2512
2513 \begin_layout LyX-Code
2514
2515 \backslash
2516 usepackage{labels}
2517 \end_layout
2518
2519 \begin_layout LyX-Code
2520
2521 \backslash
2522 LabelCols=3
2523 \end_layout
2524
2525 \begin_layout LyX-Code
2526
2527 \backslash
2528 LabelRows=7
2529 \end_layout
2530
2531 \begin_layout LyX-Code
2532
2533 \backslash
2534 LeftBorder=8mm
2535 \end_layout
2536
2537 \begin_layout LyX-Code
2538
2539 \backslash
2540 RightBorder=8mm
2541 \end_layout
2542
2543 \begin_layout LyX-Code
2544
2545 \backslash
2546 TopBorder=9mm
2547 \end_layout
2548
2549 \begin_layout LyX-Code
2550
2551 \backslash
2552 BottomBorder=2mm
2553 \end_layout
2554
2555 \begin_layout Standard
2556
2557 \family roman
2558 \series medium
2559 \shape up
2560 \size normal
2561 \emph off
2562 \bar no
2563 \noun off
2564 \color none
2565 これは
2566 \family default
2567 \series default
2568 \shape default
2569 \size default
2570 \emph default
2571 \bar default
2572 \noun default
2573 \color inherit
2574 Averyラベルシートのストック5360
2575 \family roman
2576 \series medium
2577 \shape up
2578 \size normal
2579 \emph off
2580 \bar no
2581 \noun off
2582 \color none
2583 番を使用する場合の設定です.これで,各宛名を
2584 \begin_inset Flex Code
2585 status collapsed
2586
2587 \begin_layout Plain Layout
2588
2589 \family typewriter
2590
2591 \backslash
2592 begin{labels}
2593 \end_layout
2594
2595 \end_inset
2596
2597
2598 \family typewriter
2599 \series default
2600 \shape default
2601 \size default
2602 \emph default
2603 \bar default
2604 \noun default
2605 \color inherit
2606
2607 \begin_inset Flex Code
2608 status collapsed
2609
2610 \begin_layout Plain Layout
2611
2612 \family typewriter
2613
2614 \backslash
2615 end{labels}
2616 \end_layout
2617
2618 \end_inset
2619
2620
2621 \family roman
2622 \series medium
2623 \shape up
2624 \size normal
2625 \emph off
2626 \bar no
2627 \noun off
2628 \color none
2629 で囲めば,宛名ラベルの印刷をすることができます.本機能およびその他の機能に関しては,
2630 \begin_inset Flex Code
2631 status collapsed
2632
2633 \begin_layout Plain Layout
2634
2635 \family typewriter
2636 labels.sty
2637 \end_layout
2638
2639 \end_inset
2640
2641 の取扱説明書に説明されています.
2642 \end_layout
2643
2644 \begin_layout Standard
2645
2646 \family roman
2647 \series medium
2648 \shape up
2649 \size normal
2650 \emph off
2651 \bar no
2652 \noun off
2653 \color none
2654 そのうち誰かが,このパッケージを直接サポートする\SpecialChar LyX
2655 レイアウトファイルを作ってくれるかもしれません.その誰かはあなたかもしれません.
2656 \end_layout
2657
2658 \begin_layout Subsubsection
2659 例3: 段落の字下げ
2660 \end_layout
2661
2662 \begin_layout Standard
2663
2664 \family roman
2665 \series medium
2666 \shape up
2667 \size normal
2668 \emph off
2669 \bar no
2670 \noun off
2671 \color none
2672 アメリカ人は
2673 \family default
2674 \series default
2675 \shape default
2676 \size default
2677 \emph default
2678 \bar default
2679 \noun default
2680 \color inherit
2681
2682 \emph on
2683 すべての
2684 \family roman
2685 \series medium
2686 \shape up
2687 \size normal
2688 \emph off
2689 \bar no
2690 \noun off
2691 \color none
2692 段落の最初の行を字下げするように教育されています.そのために彼らの他の変な習慣と同じく,いつものようにすべての段落の最初の行を下げるまで,アメリカ人はごちゃごち
2693 ゃと文句を言いつづけるのです
2694 \family default
2695 \series default
2696 \shape default
2697 \size default
2698 \emph default
2699 \bar default
2700 \noun default
2701 \color inherit
2702 .(これはユーモアです.(ほんと?)
2703 \emph on
2704 ユーモアですってば
2705 \emph default
2706 .)
2707 \end_layout
2708
2709 \begin_layout Standard
2710
2711 \family roman
2712 \series medium
2713 \shape up
2714 \size normal
2715 \emph off
2716 \bar no
2717 \noun off
2718 \color none
2719 もちろん,これは標準的な組版ルールではありません.書籍では,典型的には,他の段落のあとにくる段落
2720 \family default
2721 \series default
2722 \shape default
2723 \size default
2724 \emph on
2725 \bar default
2726 \noun default
2727 \color inherit
2728 のみ
2729 \family roman
2730 \series medium
2731 \shape up
2732 \size normal
2733 \emph off
2734 \bar no
2735 \noun off
2736 \color none
2737 字下げを行ないます.一行めを字下げをするそもそもの目的は,隣接する段落から区別するためです.したがって,図のあとや節の最初の段落など,先行する段落がない場合には
2738 ,字下げをする必要はないのです.
2739 \end_layout
2740
2741 \begin_layout Standard
2742
2743 \family roman
2744 \series medium
2745 \shape up
2746 \size normal
2747 \emph off
2748 \bar no
2749 \noun off
2750 \color none
2751 けれどもあなたが典型的なアメリカ人なら(ユーーモアですって!),そのような小難しいことはかまわずに,いつもどおりの字下げをせずにはいられないでしょう!プリアンブ
2752 ルに次の行を加えて下さい.
2753 \end_layout
2754
2755 \begin_layout LyX-Code
2756
2757 \backslash
2758 usepackage{indentfirst}
2759 \end_layout
2760
2761 \begin_layout Standard
2762
2763 \family roman
2764 \series medium
2765 \shape up
2766 \size normal
2767 \emph off
2768 \bar no
2769 \noun off
2770 \color none
2771 もしお使いの\SpecialChar TeX
2772 頒布版が脳死状態でなければ,このパッケージが入っているはずなので,建国の父たちが意図したように,すべての段落が字下げされます.
2773 \end_layout
2774
2775 \begin_layout Subsubsection
2776 例4:この文書
2777 \end_layout
2778
2779 \begin_layout Standard
2780
2781 \family roman
2782 \series medium
2783 \shape up
2784 \size normal
2785 \emph off
2786 \bar no
2787 \noun off
2788 \color none
2789 この文書のプリアンブルを見てみると,どのような高度な設定ができるか,おおまかな理解が得られるでしょう.また第
2790 \family default
2791 \series default
2792 \shape default
2793 \size default
2794 \emph default
2795 \bar default
2796 \noun default
2797 \color inherit
2798
2799 \begin_inset CommandInset ref
2800 LatexCommand ref
2801 reference "chap:Special-features"
2802
2803 \end_inset
2804
2805
2806 \family roman
2807 \series medium
2808 \shape up
2809 \size normal
2810 \emph off
2811 \bar no
2812 \noun off
2813 \color none
2814 章には,他の例や,\SpecialChar LaTeX
2815 の各種の「汚い技」があります.
2816 \end_layout
2817
2818 \begin_layout Section
2819 \SpecialChar LyX
2820 および\SpecialChar LaTeX
2821 のエラー
2822 \end_layout
2823
2824 \begin_layout Standard
2825
2826 \family roman
2827 \series medium
2828 \shape up
2829 \size normal
2830 \emph off
2831 \bar no
2832 \noun off
2833 \color none
2834 \SpecialChar LyX
2835 が\SpecialChar LaTeX
2836 を呼び出す際,\SpecialChar LyX
2837 は\SpecialChar LaTeX
2838 に,かりにエラーがあったとしても楽観的に無視して先に進むように指示します.その後\SpecialChar LyX
2839 は,\SpecialChar LaTeX
2840 の実行ログファイルを事後処理用に使います.ログファイルを分
2841 析したのち,\SpecialChar LyX
2842 はエラーを一覧表示するダイアログを表示します.エラーのうちどれかをクリックすると,\SpecialChar LyX
2843 ファイル中,そのエラーの発生した場所に表示を移動します
2844 \begin_inset Foot
2845 status collapsed
2846
2847 \begin_layout Plain Layout
2848
2849 \family roman
2850 \series medium
2851 \shape up
2852 \size normal
2853 \emph off
2854 \bar no
2855 \noun off
2856 \color none
2857 正確にいうと,通常は,です.ログファイルの分析は難しい仕事ですので,\SpecialChar LyX
2858 はつねに正しい行に連れて行ってくれるとは限りません.ときには,\SpecialChar LaTeX
2859 がある行にエラーがあると報告し
2860 たとしても,実際のエラーはそれよりも前であることもあります.これは,プログラムで閉じ括弧を忘れたときに似ていなくもありません.エラーは表示されますが,実際にエラ
2861 ーのある場所よりも後ろでエラーが報告されるのです.
2862 \end_layout
2863
2864 \end_inset
2865
2866
2867 \family default
2868 \series default
2869 \shape default
2870 \size default
2871 \emph default
2872 \bar default
2873 \noun default
2874 \color inherit
2875
2876 \end_layout
2877
2878 \begin_layout Standard
2879
2880 \family roman
2881 \series medium
2882 \shape up
2883 \size normal
2884 \emph off
2885 \bar no
2886 \noun off
2887 \color none
2888 人によっては,ログファイルを直接ご覧になりたいかもしれません.これは,
2889 \begin_inset Flex MenuItem
2890 status collapsed
2891
2892 \begin_layout Plain Layout
2893
2894 \family roman
2895 \series medium
2896 \shape up
2897 \size normal
2898 \emph off
2899 \bar no
2900 \noun off
2901 \color none
2902 文書\SpecialChar menuseparator
2903 LaTeXログ
2904 \end_layout
2905
2906 \end_inset
2907
2908 で見ることができます.エラーメッセージや警告には,よく見かけるものがいくつかありますので,それらをここに収録しておきます.ここにないエラーや警告に関しては,La\SpecialChar TeX
2909
2910 関連の良書を参照してください.
2911 \end_layout
2912
2913 \begin_layout Itemize
2914
2915 \family typewriter
2916 \begin_inset Flex Code
2917 status collapsed
2918
2919 \begin_layout Plain Layout
2920
2921 \family typewriter
2922 LaTeX Warning
2923 \end_layout
2924
2925 \end_inset
2926
2927
2928 \family roman
2929 \series medium
2930 \shape up
2931 \size normal
2932 \emph off
2933 \bar no
2934 \noun off
2935 \color none
2936
2937 \begin_inset Newline newline
2938 \end_inset
2939
2940 これで始まるメッセージは,\SpecialChar LaTeX
2941 コード自体を「デバッグ」するための警告メッセージです.相互参照や書誌情報を追加したり変更した場合に,もう一度\SpecialChar LaTeX
2942 を実行する必要があることを
2943 知らせるために,このようなメッセージが表示されます.このメッセージは,だいたいにおいて無視しても大丈夫です.
2944 \end_layout
2945
2946 \begin_layout Itemize
2947
2948 \family typewriter
2949 \begin_inset Flex Code
2950 status collapsed
2951
2952 \begin_layout Plain Layout
2953
2954 \family typewriter
2955 LaTeX Font Warning
2956 \end_layout
2957
2958 \end_inset
2959
2960
2961 \family roman
2962 \series medium
2963 \shape up
2964 \size normal
2965 \emph off
2966 \bar no
2967 \noun off
2968 \color none
2969
2970 \begin_inset Newline newline
2971 \end_inset
2972
2973 \SpecialChar LaTeX
2974 がフォントを見つけられなかったと言う警告メッセージです.多くの場合,このメッセージの後に,\SpecialChar LaTeX
2975 が使用した代替フォントに関する情報が続きます.これも無視して構いません
2976
2977 \end_layout
2978
2979 \begin_layout Itemize
2980
2981 \family roman
2982 \series medium
2983 \shape up
2984 \size normal
2985 \emph off
2986 \bar no
2987 \noun off
2988 \color none
2989 \begin_inset Flex Code
2990 status collapsed
2991
2992 \begin_layout Plain Layout
2993
2994 \family typewriter
2995 Overfull 
2996 \backslash
2997 hbox
2998 \end_layout
2999
3000 \end_inset
3001
3002
3003 \begin_inset Newline newline
3004 \end_inset
3005
3006 \SpecialChar LaTeX
3007 は,
3008 \family default
3009 \series default
3010 \shape default
3011 \size default
3012 \emph on
3013 \bar default
3014 \noun default
3015 \color inherit
3016 ほぼどんなときでも
3017 \family roman
3018 \series medium
3019 \shape up
3020 \size normal
3021 \emph off
3022 \bar no
3023 \noun off
3024 \color none
3025 この警告を吐き出します.これは,一行が長すぎて右余白にはみ出してしまったという警告ですが,ほとんどの場合,最終出力を見ても判別できないくらい(せいぜい1ポイント
3026 か2ポイント)です.あるいは1文字か2文字右余白に出ているくらいです.\SpecialChar LaTeX
3027 は,どんな文書を書いても,少なくとも一つはこのメッセージを出すようです.
3028 \begin_inset Newline newline
3029 \end_inset
3030
3031 このメッセージは無視しても大丈夫です.何か行が長すぎるような問題があれば,目で見ればわかります.出力を目で確認してください
3032 \begin_inset Foot
3033 status collapsed
3034
3035 \begin_layout Plain Layout
3036 あるいは,
3037 \begin_inset Flex MenuItem
3038 status collapsed
3039
3040 \begin_layout Plain Layout
3041 文書\SpecialChar menuseparator
3042 設定
3043 \end_layout
3044
3045 \end_inset
3046
3047 で「draft」オプションを指定する方法もあります.こうすると,\SpecialChar LaTeX
3048 は,overfullの発生した行の余白に黒い四角を描画します.
3049 \end_layout
3050
3051 \end_inset
3052
3053
3054 \end_layout
3055
3056 \begin_layout Itemize
3057
3058 \family typewriter
3059 \begin_inset Flex Code
3060 status collapsed
3061
3062 \begin_layout Plain Layout
3063
3064 \family typewriter
3065 Underfull 
3066 \backslash
3067 hbox
3068 \end_layout
3069
3070 \end_inset
3071
3072
3073 \begin_inset Newline newline
3074 \end_inset
3075
3076
3077 \family roman
3078 \series medium
3079 \shape up
3080 \size normal
3081 \emph off
3082 \bar no
3083 \noun off
3084 \color none
3085 これは上の警告と違ってあまり出てきません.なぜだかは分かりませんが,\SpecialChar LaTeX
3086 は1行を短めにする印字するよりは,長めにする方が好きなようです.
3087 \end_layout
3088
3089 \begin_layout Itemize
3090 \begin_inset Flex Code
3091 status collapsed
3092
3093 \begin_layout Plain Layout
3094
3095 \family typewriter
3096 Overfull 
3097 \backslash
3098 vbox
3099 \end_layout
3100
3101 \end_inset
3102
3103
3104 \family typewriter
3105
3106 \begin_inset Flex Code
3107 status collapsed
3108
3109 \begin_layout Plain Layout
3110
3111 \family typewriter
3112 Underfull 
3113 \backslash
3114 vbox
3115 \end_layout
3116
3117 \end_inset
3118
3119
3120 \family default
3121
3122 \begin_inset Newline newline
3123 \end_inset
3124
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 ページ区切りに問題があったという警告です.この場合も,出力を目で確認してください.何か問題があれば,見てすぐわかります.
3135 \end_layout
3136
3137 \begin_layout Itemize
3138
3139 \family typewriter
3140 \begin_inset Flex Code
3141 status collapsed
3142
3143 \begin_layout Plain Layout
3144
3145 \family typewriter
3146 LaTeX Error: File 
3147 \begin_inset Quotes els
3148 \end_inset
3149
3150 Xxxx
3151 \begin_inset Quotes ers
3152 \end_inset
3153
3154  not found
3155 \end_layout
3156
3157 \end_inset
3158
3159
3160 \family roman
3161 \series medium
3162 \shape up
3163 \size normal
3164 \emph off
3165 \bar no
3166 \noun off
3167 \color none
3168
3169 \begin_inset Newline newline
3170 \end_inset
3171
3172 ファイル「Xxxx」が,システムに導入されていません.これは通常,文書が必要としている\SpecialChar LaTeX
3173 パッケージに,導入済でないものがある場合に現れます.プリアンブルに変更を加
3174 えておらず,
3175 \begin_inset Flex Code
3176 status collapsed
3177
3178 \begin_layout Plain Layout
3179
3180 \family typewriter
3181
3182 \backslash
3183 usepackage{}
3184 \end_layout
3185
3186 \end_inset
3187
3188 コマンドも使用していないとすれば,\SpecialChar LyX
3189 が読み込もうしているパッケージに存在しないものがあるということです.
3190 \family default
3191 \series default
3192 \shape default
3193 \size default
3194 \emph default
3195 \bar default
3196 \noun default
3197 \color inherit
3198
3199 \begin_inset Flex MenuItem
3200 status collapsed
3201
3202 \begin_layout Plain Layout
3203 ヘルプ\SpecialChar menuseparator
3204 \SpecialChar LaTeX
3205 の設定
3206 \end_layout
3207
3208 \end_inset
3209
3210
3211 \family roman
3212 \series medium
3213 \shape up
3214 \size normal
3215 \emph off
3216 \bar no
3217 \noun off
3218 \color none
3219 を使用して,\SpecialChar LyX
3220 が認識しているパッケージの一覧を得てください.このファイルは,(
3221 \begin_inset Flex MenuItem
3222 status collapsed
3223
3224 \begin_layout Plain Layout
3225
3226 \family roman
3227 \series medium
3228 \shape up
3229 \size normal
3230 \emph off
3231 \bar no
3232 \noun off
3233 \color none
3234 ツール\SpecialChar menuseparator
3235 再設定
3236 \end_layout
3237
3238 \end_inset
3239
3240 を使用して)\SpecialChar LyX
3241 の再設定を行うたびに更新され,どのパッケージが検出されたか,それらのパッケージが何をするものかを表示します.
3242 \begin_inset Newline newline
3243 \end_inset
3244
3245
3246 \family sans
3247 \series default
3248 \shape default
3249 \size default
3250 \emph default
3251 \bar default
3252 \noun default
3253 \color inherit
3254
3255 \begin_inset Flex Code
3256 status collapsed
3257
3258 \begin_layout Plain Layout
3259
3260 \family sans
3261
3262 \backslash
3263 usepackage{}
3264 \end_layout
3265
3266 \end_inset
3267
3268
3269 \family roman
3270 \series medium
3271 \shape up
3272 \size normal
3273 \emph off
3274 \bar no
3275 \noun off
3276 \color none
3277 コマンドを使っていて,肝心のパッケージが導入されていない場合には,ご自身で導入する必要があります.
3278 \end_layout
3279
3280 \begin_layout Itemize
3281
3282 \family typewriter
3283 \begin_inset Flex Code
3284 status collapsed
3285
3286 \begin_layout Plain Layout
3287
3288 \family typewriter
3289 LaTeX Error: Unknown option
3290 \end_layout
3291
3292 \end_inset
3293
3294
3295 \family roman
3296 \series medium
3297 \shape up
3298 \size normal
3299 \emph off
3300 \bar no
3301 \noun off
3302 \color none
3303
3304 \begin_inset Newline newline
3305 \end_inset
3306
3307 このように始まるエラーメッセージは,パッケージに誤ったあるいは未定義のオプションが指定されていることを伝えようとするものです.パッケージの取扱説明書をご確認くだ
3308 さい.
3309 \end_layout
3310
3311 \begin_layout Itemize
3312
3313 \family typewriter
3314 \begin_inset Flex Code
3315 status collapsed
3316
3317 \begin_layout Plain Layout
3318
3319 \family typewriter
3320 Undefined control sequence
3321 \end_layout
3322
3323 \end_inset
3324
3325
3326 \family roman
3327 \series medium
3328 \shape up
3329 \size normal
3330 \emph off
3331 \bar no
3332 \noun off
3333 \color none
3334
3335 \begin_inset Newline newline
3336 \end_inset
3337
3338 お使いの文書に\SpecialChar LaTeX
3339 コードを挿入した際,打ち間違いをしてしまうと,このようなメッセージが表示されます.あるいは,パッケージを読み込ませるのを忘れたのかもしれません.い
3340 ずれにしても,このメッセージは,あなたが未定義のコマンドを使用したことを示しています.
3341 \end_layout
3342
3343 \begin_layout Standard
3344
3345 \family roman
3346 \series medium
3347 \shape up
3348 \size normal
3349 \emph off
3350 \bar no
3351 \noun off
3352 \color none
3353 これ以外にも,エラーメッセージや警告メッセージがあります.一般に,読んで意味がすぐにわかるものは,\SpecialChar LaTeX
3354 のメッセージです.何を言っているのかさっぱりわからないものもあ
3355 りますが,通常これらは,\SpecialChar TeX
3356 のメッセージであり,それが何を意味しているのか,どのように解読すればいいのか,
3357 \family default
3358 \series default
3359 \shape default
3360 \size default
3361 \emph on
3362 \bar default
3363 \noun default
3364 \color inherit
3365 まったく
3366 \family roman
3367 \series medium
3368 \shape up
3369 \size normal
3370 \emph off
3371 \bar no
3372 \noun off
3373 \color none
3374 手がかりがありません.誰もわからないのです.
3375 \end_layout
3376
3377 \begin_layout Standard
3378
3379 \family roman
3380 \series medium
3381 \shape up
3382 \size normal
3383 \emph off
3384 \bar no
3385 \noun off
3386 \color none
3387 エラーメッセージが表示された場合は,つねに以下のチェックリストにしたがった方がよいでしょう.
3388 \end_layout
3389
3390 \begin_layout Enumerate
3391
3392 \family roman
3393 \series medium
3394 \shape up
3395 \size normal
3396 \emph off
3397 \bar no
3398 \noun off
3399 \color none
3400 ご自分で挿入した\SpecialChar LaTeX
3401 コードに打ち間違いがないかどうか確かめる.
3402 \end_layout
3403
3404 \begin_layout Enumerate
3405
3406 \family roman
3407 \series medium
3408 \shape up
3409 \size normal
3410 \emph off
3411 \bar no
3412 \noun off
3413 \color none
3414 打ち間違いがなければ,コマンドを正しく使ったかどうか確かめる.
3415 \end_layout
3416
3417 \begin_layout Enumerate
3418
3419 \family roman
3420 \series medium
3421 \shape up
3422 \size normal
3423 \emph off
3424 \bar no
3425 \noun off
3426 \color none
3427 文書のもっともはじめの部分にエラーボックスが多数積み上がった場合には—特に
3428 \begin_inset Flex Code
3429 status collapsed
3430
3431 \begin_layout Plain Layout
3432
3433 \family roman
3434 \series medium
3435 \shape up
3436 \size normal
3437 \emph off
3438 \bar no
3439 \noun off
3440 \color none
3441 Missing 
3442 \backslash
3443 begin{document}
3444 \end_layout
3445
3446 \end_inset
3447
3448 が表示されているならば—,プリアンブルにエラーがあることを意味します.プリアンブルのデバックを行ってください.
3449 \end_layout
3450
3451 \begin_layout Enumerate
3452
3453 \family roman
3454 \series medium
3455 \shape up
3456 \size normal
3457 \emph off
3458 \bar no
3459 \noun off
3460 \color none
3461 プリアンブルに何も追加せず,文書に\SpecialChar LaTeX
3462 コードをまったく挿入しなかった場合には,\SpecialChar LaTeX
3463 頒布版自体をまず疑ってください.導入されていないパッケージを探しだして,導入してくださ
3464 い.
3465 \end_layout
3466
3467 \begin_layout Enumerate
3468
3469 \family roman
3470 \series medium
3471 \shape up
3472 \size normal
3473 \emph off
3474 \bar no
3475 \noun off
3476 \color none
3477 導入されていないパッケージはなかったものとしましょう.\SpecialChar LyX
3478 を微調整するオプションを使用していますか.特に,手動で
3479 \begin_inset Flex Code
3480 status collapsed
3481
3482 \begin_layout Plain Layout
3483
3484 \family sans
3485 Protected
3486 \begin_inset space ~
3487 \end_inset
3488
3489 Blank
3490 \end_layout
3491
3492 \end_inset
3493
3494
3495 \begin_inset Flex Code
3496 status collapsed
3497
3498 \begin_layout Plain Layout
3499
3500 \family sans
3501 Linebreak
3502 \end_layout
3503
3504 \end_inset
3505
3506
3507 \family sans
3508 \series default
3509 \shape default
3510 \size default
3511 \emph default
3512 \bar default
3513 \noun default
3514 \color inherit
3515
3516 \begin_inset Flex Code
3517 status collapsed
3518
3519 \begin_layout Plain Layout
3520
3521 \family sans
3522 Pagebreak
3523 \end_layout
3524
3525 \end_inset
3526
3527
3528 \family roman
3529 \series medium
3530 \shape up
3531 \size normal
3532 \emph off
3533 \bar no
3534 \noun off
3535 \color none
3536 などをたくさん挿入するなど,微調整オプションを
3537 \family default
3538 \series default
3539 \shape default
3540 \size default
3541 \emph on
3542 \bar default
3543 \noun default
3544 \color inherit
3545 悪用
3546 \family roman
3547 \series medium
3548 \shape up
3549 \size normal
3550 \emph off
3551 \bar no
3552 \noun off
3553 \color none
3554 していませんか.適切な段落環境を使用する代わりに,これらを使用してその場をしのごうとしていませんか.
3555 \end_layout
3556
3557 \begin_layout Enumerate
3558
3559 \family roman
3560 \series medium
3561 \shape up
3562 \size normal
3563 \emph off
3564 \bar no
3565 \noun off
3566 \color none
3567 微調整オプションはまったく使用しておらず,規則に乗っ取って作業していたものとしましょう.何か曲芸のようなことをしようとはしていませんか.数式や表中で,たとえば表
3568 のセルに図を入れるなど,おかしなことをしようとしていませんか.
3569 \end_layout
3570
3571 \begin_layout Enumerate
3572 \SpecialChar LaTeX
3573 が改行位置を見つけられないほど長い一節がありませんか.既定では,改行するために単語間に空白をたくさん追加することを,\SpecialChar LaTeX
3574 はかなり嫌います.可能であれば,問題が生じな
3575 いように段落を修正するのが望ましいでしょう.
3576 \end_layout
3577
3578 \begin_layout Enumerate
3579
3580 \family roman
3581 \series medium
3582 \shape up
3583 \size normal
3584 \emph off
3585 \bar no
3586 \noun off
3587 \color none
3588 入れ子の階層を深くしすぎていませんか.\SpecialChar LyX
3589 は,(今のところ)環境の入れ子の階層が制限内にあるかチェックしません.かりに,環境を17段の入れ子にしたりしていたら,それ
3590 が原因です(\SpecialChar LaTeX
3591 の上限は5段です).
3592 \end_layout
3593
3594 \begin_layout Enumerate
3595
3596 \family roman
3597 \series medium
3598 \shape up
3599 \size normal
3600 \emph off
3601 \bar no
3602 \noun off
3603 \color none
3604 エラーメッセージは発生しないけれども,出力がひどいものとしましょう.図表が幅が広すぎたり長すぎてページに収まらない場合には,
3605 \end_layout
3606
3607 \begin_deeper
3608 \begin_layout Enumerate
3609
3610 \family roman
3611 \series medium
3612 \shape up
3613 \size normal
3614 \emph off
3615 \bar no
3616 \noun off
3617 \color none
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 表がページに合うように削る,
3632 \end_layout
3633
3634 \begin_layout Standard
3635
3636 \family roman
3637 \series medium
3638 \shape up
3639 \size normal
3640 \emph off
3641 \bar no
3642 \noun off
3643 \color none
3644 などの手段を採る必要があります.
3645 \end_layout
3646
3647 \end_deeper
3648 \begin_layout Enumerate
3649 他に出力におかしいところがあり,曲芸をやろうとしたり微調整オプションでしのごうとしたりはしていないとすれば,何がおかしいのか確定的なことは言えません.
3650 \end_layout
3651
3652 \begin_layout Standard
3653
3654 \family roman
3655 \series medium
3656 \shape up
3657 \size normal
3658 \emph off
3659 \bar no
3660 \noun off
3661 \color none
3662 これらすべてが役に立たないとすれば,
3663 \family default
3664 \series default
3665 \shape default
3666 \size default
3667 \emph on
3668 \bar default
3669 \noun default
3670 \color inherit
3671 ひょっとしたら
3672 \family roman
3673 \series medium
3674 \shape up
3675 \size normal
3676 \emph off
3677 \bar no
3678 \noun off
3679 \color none
3680 \SpecialChar LyX
3681 のバグを発見したのかもしれません‥‥.
3682 \end_layout
3683
3684 \begin_layout Chapter
3685 補完ツール
3686 \end_layout
3687
3688 \begin_layout Section
3689 Bib\SpecialChar TeX
3690
3691 \change_inserted 34634807 1499889868
3692
3693 \lang english
3694  or Biblatex
3695 \change_unchanged
3696
3697 \lang japanese
3698 よる書誌情報のカスタマイズ
3699 \end_layout
3700
3701 \begin_layout Standard
3702 Bib\SpecialChar TeX
3703
3704 \change_inserted 34634807 1499889904
3705
3706 \lang english
3707  or 
3708 \family sans
3709 Biblatex
3710 \family default
3711  
3712 \change_unchanged
3713
3714 \lang japanese
3715 の基本的な使用法は,『
3716 \emph on
3717 ユーザーの手引き
3718 \emph default
3719 』の「
3720 \emph on
3721 文献データベース
3722 \change_deleted 34634807 1499889896
3723 (Bib\SpecialChar TeX
3724 )
3725 \change_unchanged
3726
3727 \emph default
3728 」の節に説明があります.以下の各小節では,\SpecialChar LyX
3729 でサポートされている書誌情報の特別な機能について説明することとします.
3730 \end_layout
3731
3732 \begin_layout Subsection
3733 他の引用様式
3734 \end_layout
3735
3736 \begin_layout Standard
3737 標準のBib\SpecialChar TeX
3738
3739 \change_deleted 34634807 1499890024
3740 は,引用された著作を参照するのに,([12]のように)数字を使用します.しかし,多くの科学分野で,これとは異なる引用様式が用いられています.もっともよく見られる
3741 のは,著者-出版年様式(例:Knuth 1984a)です.\SpecialChar LyX
3742 は,この様式を提供する2つのパッケージ
3743 \begin_inset Flex Code
3744 status collapsed
3745
3746 \begin_layout Plain Layout
3747 natbib
3748 \end_layout
3749
3750 \end_inset
3751
3752
3753 \begin_inset Flex Code
3754 status collapsed
3755
3756 \begin_layout Plain Layout
3757 jurabib
3758 \end_layout
3759
3760 \end_inset
3761
3762 をサポートしています.これらのパッケージには,それぞれ長所短所がありますが,ここでは詳細に立ち入る紙幅がありません.単純な著者-出版年様式(あるいは著者-番号)
3763 様式が欲しい場合や,無数にある
3764 \begin_inset Flex Code
3765 status collapsed
3766
3767 \begin_layout Plain Layout
3768 natbib
3769 \end_layout
3770
3771 \end_inset
3772
3773 用スタイルファイルのうちどれかを使用したい場合には,定評のある
3774 \begin_inset Flex Code
3775 status collapsed
3776
3777 \begin_layout Plain Layout
3778 natbib
3779 \end_layout
3780
3781 \end_inset
3782
3783 パッケージがおそらくよい選択でしょう.短縮タイトルによる参照や
3784 \emph on
3785 ibid.
3786 \emph default
3787 など,特別な機能が必要な場合には,
3788 \begin_inset Flex Code
3789 status collapsed
3790
3791 \begin_layout Plain Layout
3792 jurabib
3793 \end_layout
3794
3795 \end_inset
3796
3797 パッケージの利用を考えるとよいかもしれません.
3798 \end_layout
3799
3800 \begin_layout Standard
3801
3802 \change_deleted 34634807 1499890024
3803 \SpecialChar LyX
3804 での両パッケージの取扱い方は,ほぼ同じです.
3805 \begin_inset Flex MenuItem
3806 status collapsed
3807
3808 \begin_layout Plain Layout
3809 文書\SpecialChar menuseparator
3810 設定
3811 \end_layout
3812
3813 \end_inset
3814
3815 メニューを開き,
3816 \begin_inset Flex MenuItem
3817 status collapsed
3818
3819 \begin_layout Plain Layout
3820 書誌情報
3821 \end_layout
3822
3823 \end_inset
3824
3825 項目から
3826 \begin_inset Flex MenuItem
3827 status collapsed
3828
3829 \begin_layout Plain Layout
3830 Natbib
3831 \end_layout
3832
3833 \end_inset
3834
3835 オプションか
3836 \begin_inset Flex MenuItem
3837 status collapsed
3838
3839 \begin_layout Plain Layout
3840 Jurabib
3841 \end_layout
3842
3843 \end_inset
3844
3845 オプションを選択してください.これらのパッケージによって,引用ダイアログに機能が追加され,参照の様式が選択できるようになります(「Knuth 1984」,「Kn
3846 uth (1984)」,「Knuth, 1984」,「1984」など).両パッケージは,専用にデザインされたスタイルファイルを必要とすることに注意してください.
3847 両者ともそれ自身のスタイルファイルを同梱していますが,他にもたくさんの追加スタイルファイルがありますし,
3848 \begin_inset Flex Code
3849 status collapsed
3850
3851 \begin_layout Plain Layout
3852 natbib
3853 \end_layout
3854
3855 \end_inset
3856
3857 に至っては,対話的なスタイルファイルビルダーさえ存在します
3858 \begin_inset Foot
3859 status collapsed
3860
3861 \begin_layout Plain Layout
3862 \begin_inset Flex URL
3863 status open
3864
3865 \begin_layout Plain Layout
3866
3867 ftp://ctan.tug.org/tex-archive/macros/latex/contrib/custom-bib/
3868 \end_layout
3869
3870 \end_inset
3871
3872 をご参照ください.
3873 \end_layout
3874
3875 \end_inset
3876
3877
3878 \change_inserted 34634807 1499890031
3879
3880 \end_layout
3881
3882 \begin_layout Standard
3883
3884 \change_inserted 34634807 1499890044
3885
3886 \lang english
3887 Standard Bib\SpecialChar TeX
3888  uses numbers (e.
3889 \begin_inset space \thinspace{}
3890 \end_inset
3891
3892 g.
3893 \begin_inset space \space{}
3894 \end_inset
3895
3896
3897 \begin_inset Quotes eld
3898 \end_inset
3899
3900 [12]
3901 \begin_inset Quotes erd
3902 \end_inset
3903
3904 ) to refer to a cited work.
3905  However, in many scientific disciplines, other citation styles are in use.
3906  The most common one is the author-year style (e.
3907 \begin_inset space \thinspace{}
3908 \end_inset
3909
3910 g.
3911 \begin_inset space \space{}
3912 \end_inset
3913
3914
3915 \begin_inset Quotes eld
3916 \end_inset
3917
3918 Knuth 1984a
3919 \begin_inset Quotes erd
3920 \end_inset
3921
3922 ).
3923  \SpecialChar LyX
3924  supports three packages that provide this style, 
3925 \begin_inset Flex Code
3926 status collapsed
3927
3928 \begin_layout Plain Layout
3929
3930 \change_inserted 34634807 1499890044
3931
3932 \lang english
3933 biblatex
3934 \end_layout
3935
3936 \end_inset
3937
3938
3939 \begin_inset Flex Code
3940 status collapsed
3941
3942 \begin_layout Plain Layout
3943
3944 \change_inserted 34634807 1499890044
3945
3946 \lang english
3947 natbib
3948 \end_layout
3949
3950 \end_inset
3951
3952 , and 
3953 \begin_inset Flex Code
3954 status collapsed
3955
3956 \begin_layout Plain Layout
3957
3958 \change_inserted 34634807 1499890044
3959
3960 \lang english
3961 jurabib
3962 \end_layout
3963
3964 \end_inset
3965
3966 .
3967  Each of these packages has their pros and cons, which cannot be listed
3968  in detail.
3969  If you only want to have simple author-year (or author-numerical) style,
3970  or if you want to use one of the countless style files for 
3971 \begin_inset Flex Code
3972 status collapsed
3973
3974 \begin_layout Plain Layout
3975
3976 \change_inserted 34634807 1499890044
3977
3978 \lang english
3979 natbib
3980 \end_layout
3981
3982 \end_inset
3983
3984 , then the established 
3985 \begin_inset Flex Code
3986 status collapsed
3987
3988 \begin_layout Plain Layout
3989
3990 \change_inserted 34634807 1499890044
3991
3992 \lang english
3993 natbib
3994 \end_layout
3995
3996 \end_inset
3997
3998  package is probably your choice.
3999  If you look for specific citation styles common in law studies, you might
4000  consider the 
4001 \begin_inset Flex Code
4002 status collapsed
4003
4004 \begin_layout Plain Layout
4005
4006 \change_inserted 34634807 1499890044
4007
4008 \lang english
4009 jurabib
4010 \end_layout
4011
4012 \end_inset
4013
4014  package.
4015  If you want to have full control over the formatting or look for advanced
4016  features such as ibidem, footnote citations, full title citations, advanced
4017  date formats (such as 400 BC) or full localization to other languages than
4018  English, you should definitely consider 
4019 \begin_inset Flex Code
4020 status collapsed
4021
4022 \begin_layout Plain Layout
4023
4024 \change_inserted 34634807 1499890044
4025
4026 \lang english
4027 biblatex
4028 \end_layout
4029
4030 \end_inset
4031
4032 , which exceeds all other packages in terms of features, but is also quite
4033  heavy and more resource-hungry.
4034 \end_layout
4035
4036 \begin_layout Standard
4037
4038 \change_inserted 34634807 1499890044
4039
4040 \lang english
4041 The handling of these packages in \SpecialChar LyX
4042  is basically the same.
4043  Go to 
4044 \begin_inset Flex Noun
4045 status collapsed
4046
4047 \begin_layout Plain Layout
4048
4049 \change_inserted 34634807 1499890044
4050
4051 \lang english
4052 Document\SpecialChar menuseparator
4053 Settings
4054 \end_layout
4055
4056 \end_inset
4057
4058  and select under 
4059 \begin_inset Flex Noun
4060 status collapsed
4061
4062 \begin_layout Plain Layout
4063
4064 \change_inserted 34634807 1499890044
4065
4066 \lang english
4067 Bibliography
4068 \end_layout
4069
4070 \end_inset
4071
4072  the 
4073 \begin_inset Flex Noun
4074 status collapsed
4075
4076 \begin_layout Plain Layout
4077
4078 \change_inserted 34634807 1499890044
4079
4080 \lang english
4081 Style Format
4082 \end_layout
4083
4084 \end_inset
4085
4086  
4087 \begin_inset Flex Noun
4088 status collapsed
4089
4090 \begin_layout Plain Layout
4091
4092 \change_inserted 34634807 1499890044
4093
4094 \lang english
4095 Biblatex
4096 \end_layout
4097
4098 \end_inset
4099
4100
4101 \begin_inset Flex Noun
4102 status collapsed
4103
4104 \begin_layout Plain Layout
4105
4106 \change_inserted 34634807 1499890044
4107
4108 \lang english
4109 Biblatex (Natbib mode)
4110 \end_layout
4111
4112 \end_inset
4113
4114
4115 \begin_inset Flex Noun
4116 status collapsed
4117
4118 \begin_layout Plain Layout
4119
4120 \change_inserted 34634807 1499890044
4121
4122 \lang english
4123 Natbib (BibTeX)
4124 \end_layout
4125
4126 \end_inset
4127
4128  or 
4129 \begin_inset Flex Noun
4130 status collapsed
4131
4132 \begin_layout Plain Layout
4133
4134 \change_inserted 34634807 1499890044
4135
4136 \lang english
4137 Jurabib (BibTeX)
4138 \end_layout
4139
4140 \end_inset
4141
4142  (see sec.
4143 \begin_inset space ~
4144 \end_inset
4145
4146 6.5.3 in the User's Guide for more information on these choices).
4147  With all these packages, you will get some extra features in the citation
4148  dialog and you can select the style of the reference (
4149 \begin_inset Quotes eld
4150 \end_inset
4151
4152 Knuth 1984
4153 \begin_inset Quotes erd
4154 \end_inset
4155
4156
4157 \begin_inset Quotes eld
4158 \end_inset
4159
4160 Knuth (1984)
4161 \begin_inset Quotes erd
4162 \end_inset
4163
4164
4165 \begin_inset Quotes eld
4166 \end_inset
4167
4168 Knuth, 1984
4169 \begin_inset Quotes erd
4170 \end_inset
4171
4172
4173 \begin_inset Quotes eld
4174 \end_inset
4175
4176 1984
4177 \begin_inset Quotes erd
4178 \end_inset
4179
4180  etc.).
4181  Note that either package needs specifically designed style files.
4182  They all ship their own, but there are lots of additional style files,
4183  and there is even an interactive style file builder
4184 \begin_inset Foot
4185 status collapsed
4186
4187 \begin_layout Plain Layout
4188
4189 \change_inserted 34634807 1499890044
4190
4191 \lang english
4192 See 
4193 \begin_inset Flex URL
4194 status open
4195
4196 \begin_layout Plain Layout
4197
4198 \change_inserted 34634807 1499890044
4199
4200 ftp://ctan.tug.org/tex-archive/macros/latex/contrib/custom-bib/
4201 \end_layout
4202
4203 \end_inset
4204
4205
4206 \end_layout
4207
4208 \end_inset
4209
4210  for 
4211 \begin_inset Flex Code
4212 status collapsed
4213
4214 \begin_layout Plain Layout
4215
4216 \change_inserted 34634807 1499890044
4217
4218 \lang english
4219 natbib
4220 \end_layout
4221
4222 \end_inset
4223
4224 .
4225 \change_unchanged
4226
4227 \end_layout
4228
4229 \begin_layout Subsection
4230 節分けされた書誌情報
4231 \change_inserted 34634807 1499890054
4232
4233 \lang english
4234 Subdivided Bibliographies
4235 \change_unchanged
4236
4237 \end_layout
4238
4239 \begin_layout Standard
4240 場合によっては,書誌情報をいくつかの節に分ける必要があることがあります.たとえば,あなたが歴史家であるとすれば,出典と学術文献を分ける機能は,おそらく「必需品」
4241 でさえあります.残念ながら,Bib\SpecialChar TeX
4242 自身ではこのようなことができません.しかし,適切な\SpecialChar LaTeX
4243 パッケージの助けを借りると,Bib\SpecialChar TeX
4244 をこのような必要性を満たすように拡張するこ
4245 とができます.
4246 \end_layout
4247
4248 \begin_layout Standard
4249 \SpecialChar LyX
4250 は,このようなパッケージの一つである
4251 \begin_inset Flex Code
4252 status collapsed
4253
4254 \begin_layout Plain Layout
4255 bibtopic
4256 \end_layout
4257
4258 \end_inset
4259
4260
4261 \begin_inset Foot
4262 status collapsed
4263
4264 \begin_layout Plain Layout
4265 \begin_inset Flex URL
4266 status open
4267
4268 \begin_layout Plain Layout
4269
4270 ftp://ctan.tug.org/tex-archive/macros/latex/contrib/bibtopic/
4271 \end_layout
4272
4273 \end_inset
4274
4275 から入手可能です.
4276 \end_layout
4277
4278 \end_inset
4279
4280 をそのままでサポートします.このパッケージの長所は,(
4281 \begin_inset Flex Code
4282 status collapsed
4283
4284 \begin_layout Plain Layout
4285 multibib
4286 \end_layout
4287
4288 \end_inset
4289
4290 のような他のパッケージと比較すると)新規の引用コマンドを定義する必要がないことです.そのかわりに,書誌情報の違う節には,その節向けの項目を収録した別の文献データ
4291 ベースを用意する必要があります.たとえば,書誌情報を「出典」の節と「学術文献」の節に分けたい場合には,それぞれの文献データベース,たとえば
4292 \begin_inset Flex Code
4293 status collapsed
4294
4295 \begin_layout Plain Layout
4296 souces.bib
4297 \end_layout
4298
4299 \end_inset
4300
4301
4302 \begin_inset Flex Code
4303 status collapsed
4304
4305 \begin_layout Plain Layout
4306 scientific.bib
4307 \end_layout
4308
4309 \end_inset
4310
4311 とを作成する必要があります.
4312 \end_layout
4313
4314 \begin_layout Standard
4315 \begin_inset Flex MenuItem
4316 status collapsed
4317
4318 \begin_layout Plain Layout
4319 文書\SpecialChar menuseparator
4320 設定
4321 \end_layout
4322
4323 \end_inset
4324
4325 を開いて
4326 \begin_inset Flex MenuItem
4327 status collapsed
4328
4329 \begin_layout Plain Layout
4330 書誌情報
4331 \end_layout
4332
4333 \end_inset
4334
4335 の下の
4336 \begin_inset Flex MenuItem
4337 status collapsed
4338
4339 \begin_layout Plain Layout
4340 節分けされた書誌情報
4341 \end_layout
4342
4343 \end_inset
4344
4345
4346 \change_inserted 34634807 1499890087
4347
4348 \lang english
4349
4350 \begin_inset Flex Noun
4351 status collapsed
4352
4353 \begin_layout Plain Layout
4354
4355 \change_inserted 34634807 1499890087
4356
4357 \lang english
4358 Subdivided bibliography
4359 \end_layout
4360
4361 \end_inset
4362
4363
4364 \change_unchanged
4365
4366 \lang japanese
4367 をチェックしてください.すると,書誌情報の各節に一つずつ,複数の書誌情報を挿入することができます.上記の例では,Bib\SpecialChar TeX
4368 書誌情報
4369 \begin_inset Flex Code
4370 status collapsed
4371
4372 \begin_layout Plain Layout
4373 sources.bib
4374 \end_layout
4375
4376 \end_inset
4377
4378 と二つめの文献データベース
4379 \begin_inset Flex Code
4380 status collapsed
4381
4382 \begin_layout Plain Layout
4383 scientific.bib
4384 \end_layout
4385
4386 \end_inset
4387
4388 を挿入します.各節に同じスタイルを用いるか異なるスタイルを用いるかは自由です.くわえて,書誌情報の節に,指定したデータベースの「引用されたすべての参照」を載せる
4389 (これが既定です)か,「引用されなかったすべての参照」を載せるか,あるいは「すべての参照」を載せるかを選択することができます.これは,もし書誌情報を「本文に引用
4390 された出典」・「本文に引用されていない出典」・「学術文献」の三つの節に分割したい場合に,便利でありましょう.各節の見出しは,通常の節や小節として入れることができ
4391 ます.
4392 \begin_inset Flex Code
4393 status collapsed
4394
4395 \begin_layout Plain Layout
4396 bibtopic
4397 \end_layout
4398
4399 \end_inset
4400
4401 は,書誌情報用の見出しを取り除いてしまいますので,手動でこれを追加しなくてはなりません(たとえば章*や節*などをお使いください).
4402 \change_inserted 34634807 1499890105
4403
4404 \end_layout
4405
4406 \begin_layout Standard
4407
4408 \change_inserted 34634807 1499890107
4409
4410 \lang english
4411 With 
4412 \family sans
4413 Biblatex
4414 \family default
4415 , the procedure is a bit different.
4416  Since 
4417 \family typewriter
4418 bibtopic
4419 \family default
4420  does not work with 
4421 \family sans
4422 Biblatex
4423 \family default
4424 , the aforementioned 
4425 \begin_inset Flex Noun
4426 status collapsed
4427
4428 \begin_layout Plain Layout
4429
4430 \change_inserted 34634807 1499890107
4431
4432 \lang english
4433 Subdivided bibliography
4434 \end_layout
4435
4436 \end_inset
4437
4438  option is disabled if you use 
4439 \family sans
4440 Biblatex
4441 \family default
4442 .
4443  However, 
4444 \family sans
4445 Biblatex
4446 \family default
4447  provides its own means to generate subdivided bibliographies.
4448  You can either add keywords to bibliography entries via the 
4449 \begin_inset Flex Code
4450 status collapsed
4451
4452 \begin_layout Plain Layout
4453
4454 \change_inserted 34634807 1499890107
4455
4456 \lang english
4457 keywords
4458 \end_layout
4459
4460 \end_inset
4461
4462  entry option and then filter bibliography sections by keyword (by adding
4463  
4464 \begin_inset Flex Code
4465 status collapsed
4466
4467 \begin_layout Plain Layout
4468
4469 \change_inserted 34634807 1499890107
4470
4471 \lang english
4472 keyword=mykeyword
4473 \end_layout
4474
4475 \end_inset
4476
4477  to the 
4478 \begin_inset Flex Noun
4479 status collapsed
4480
4481 \begin_layout Plain Layout
4482
4483 \change_inserted 34634807 1499890107
4484
4485 \lang english
4486 Options
4487 \end_layout
4488
4489 \end_inset
4490
4491  field of the dialog that opens if you right-click on the 
4492 \begin_inset Flex Noun
4493 status collapsed
4494
4495 \begin_layout Plain Layout
4496
4497 \change_inserted 34634807 1499890107
4498
4499 \lang english
4500 Biblatex Generated Bibliography
4501 \end_layout
4502
4503 \end_inset
4504
4505  button), or you can filter by entry types (such as 
4506 \emph on
4507 book
4508 \emph default
4509  or 
4510 \emph on
4511 article
4512 \emph default
4513 ) by entering e.
4514 \begin_inset space \thinspace{}
4515 \end_inset
4516
4517 g.
4518  
4519 \begin_inset Flex Code
4520 status collapsed
4521
4522 \begin_layout Plain Layout
4523
4524 \change_inserted 34634807 1499890107
4525
4526 \lang english
4527 type=book
4528 \end_layout
4529
4530 \end_inset
4531
4532  or 
4533 \begin_inset Flex Code
4534 status collapsed
4535
4536 \begin_layout Plain Layout
4537
4538 \change_inserted 34634807 1499890107
4539
4540 \lang english
4541 nottype=collection
4542 \end_layout
4543
4544 \end_inset
4545
4546  to the mentioned 
4547 \begin_inset Flex Noun
4548 status collapsed
4549
4550 \begin_layout Plain Layout
4551
4552 \change_inserted 34634807 1499890107
4553
4554 \lang english
4555 Options
4556 \end_layout
4557
4558 \end_inset
4559
4560  field, or you can create so-called 
4561 \begin_inset Quotes eld
4562 \end_inset
4563
4564 Bibliography Categories
4565 \begin_inset Quotes erd
4566 \end_inset
4567
4568  to which you can assign individual entries.
4569  Please refer to the Biblatex manual, section 
4570 \emph on
4571 Subdivided Bibliographies
4572 \emph default
4573 , for details.
4574 \change_unchanged
4575
4576 \end_layout
4577
4578 \begin_layout Subsection
4579
4580 \change_deleted 34634807 1499890126
4581 複数の書誌情報
4582 \end_layout
4583
4584 \begin_layout Standard
4585
4586 \change_deleted 34634807 1499890126
4587 文書の節ごとあるいは章ごとの書誌情報など,複数の書誌情報はBib\SpecialChar TeX
4588 自身ではサポートされていません.しかしながら,もし若干の
4589 \begin_inset Flex Code
4590 status collapsed
4591
4592 \begin_layout Plain Layout
4593 \SpecialChar TeX
4594 コード
4595 \end_layout
4596
4597 \end_inset
4598
4599 (第
4600 \begin_inset CommandInset ref
4601 LatexCommand ref
4602 reference "sec:LaTeXコードを挿入する"
4603
4604 \end_inset
4605
4606 節を参照)を利用することを厭わなければ,\SpecialChar LyX
4607 で節分けされた書誌情報を作るのに使用されている(前節を参照)
4608 \begin_inset Flex Code
4609 status collapsed
4610
4611 \begin_layout Plain Layout
4612 bibtopic
4613 \end_layout
4614
4615 \end_inset
4616
4617 パッケージが,この課題を解決する簡単な方法を提供します
4618 \begin_inset Foot
4619 status collapsed
4620
4621 \begin_layout Plain Layout
4622 ほかに,
4623 \begin_inset Flex Code
4624 status collapsed
4625
4626 \begin_layout Plain Layout
4627 chapterbib
4628 \end_layout
4629
4630 \end_inset
4631
4632
4633 \begin_inset Flex Code
4634 status collapsed
4635
4636 \begin_layout Plain Layout
4637 bibunits
4638 \end_layout
4639
4640 \end_inset
4641
4642 パッケージを利用する方法もあります.
4643 \end_layout
4644
4645 \end_inset
4646
4647
4648 \end_layout
4649
4650 \begin_layout Standard
4651
4652 \change_deleted 34634807 1499890126
4653 まず
4654 \begin_inset Flex MenuItem
4655 status collapsed
4656
4657 \begin_layout Plain Layout
4658 文書\SpecialChar menuseparator
4659 設定
4660 \end_layout
4661
4662 \end_inset
4663
4664 に行って
4665 \begin_inset Flex MenuItem
4666 status collapsed
4667
4668 \begin_layout Plain Layout
4669 書誌情報
4670 \end_layout
4671
4672 \end_inset
4673
4674 の下の
4675 \begin_inset Flex MenuItem
4676 status collapsed
4677
4678 \begin_layout Plain Layout
4679 節分けされた書誌情報
4680 \end_layout
4681
4682 \end_inset
4683
4684 を有効にしてください.つぎに文書中において,書誌情報(Bib\SpecialChar TeX
4685 書誌情報本体を含む)の入った節を
4686 \begin_inset Flex Code
4687 status collapsed
4688
4689 \begin_layout Plain Layout
4690
4691 \backslash
4692 begin{btUnit}
4693 \end_layout
4694
4695 \end_inset
4696
4697
4698 \begin_inset Flex Code
4699 status collapsed
4700
4701 \begin_layout Plain Layout
4702
4703 \backslash
4704 end{btUnit}
4705 \end_layout
4706
4707 \end_inset
4708
4709 のあいだにはさまなくてはなりません(これらのコマンドは\SpecialChar TeX
4710 コードとして挿入する必要があります).書誌情報には,現在位置の
4711 \begin_inset Flex Code
4712 status collapsed
4713
4714 \begin_layout Plain Layout
4715 btUnit
4716 \end_layout
4717
4718 \end_inset
4719
4720 において引用されたすべての参照が含まれることになります.
4721 \series bold
4722 (註)
4723 \series default
4724 この方法を用いる場合には,すべての参照はいずれかの
4725 \begin_inset Flex Code
4726 status collapsed
4727
4728 \begin_layout Plain Layout
4729 btUnit
4730 \end_layout
4731
4732 \end_inset
4733
4734 内部になくてはなりません.また,
4735 \begin_inset Flex Code
4736 status collapsed
4737
4738 \begin_layout Plain Layout
4739 btUnit
4740 \end_layout
4741
4742 \end_inset
4743
4744 は入れ子構造にすることができません.
4745 \change_inserted 34634807 1499890142
4746
4747 \end_layout
4748
4749 \begin_layout Standard
4750
4751 \change_inserted 34634807 1499890144
4752
4753 \lang english
4754 Multiple bibliographies, e.
4755 \begin_inset space \thinspace{}
4756 \end_inset
4757
4758 g.
4759 \begin_inset space \space{}
4760 \end_inset
4761
4762 a bibliography for each part, chapter, section, subsection or child (sub-documen
4763 t) of the document, are also supported by \SpecialChar LyX
4764 .
4765  In order to enable it, go to 
4766 \begin_inset Flex Noun
4767 status collapsed
4768
4769 \begin_layout Plain Layout
4770
4771 \change_inserted 34634807 1499890144
4772
4773 \lang english
4774 Document\SpecialChar menuseparator
4775 Settings\SpecialChar menuseparator
4776 Bibliography
4777 \end_layout
4778
4779 \end_inset
4780
4781  and select the relevant unit (e.
4782 \begin_inset space \thinspace{}
4783 \end_inset
4784
4785 g., 
4786 \begin_inset Quotes eld
4787 \end_inset
4788
4789 per section
4790 \begin_inset Quotes erd
4791 \end_inset
4792
4793 ) in the 
4794 \begin_inset Flex Noun
4795 status collapsed
4796
4797 \begin_layout Plain Layout
4798
4799 \change_inserted 34634807 1499890144
4800
4801 \lang english
4802 Multiple Bibliographies
4803 \end_layout
4804
4805 \end_inset
4806
4807  combo box.
4808  Then add a Bib(la)\SpecialChar TeX
4809  bibliography to each unit (e.
4810 \begin_inset space \thinspace{}
4811 \end_inset
4812
4813 g., section) of your document.
4814  In the output, a separate bibliography, containing only the references
4815  done in the current unit is generated.
4816 \end_layout
4817
4818 \begin_layout Standard
4819
4820 \change_inserted 34634807 1499890144
4821
4822 \lang english
4823 If you use Bib\SpecialChar TeX
4824 , either the 
4825 \begin_inset Flex Code
4826 status collapsed
4827
4828 \begin_layout Plain Layout
4829
4830 \change_inserted 34634807 1499890144
4831
4832 \lang english
4833 chapterbib
4834 \end_layout
4835
4836 \end_inset
4837
4838  of the 
4839 \begin_inset Flex Code
4840 status collapsed
4841
4842 \begin_layout Plain Layout
4843
4844 \change_inserted 34634807 1499890144
4845
4846 \lang english
4847 bibtopic
4848 \end_layout
4849
4850 \end_inset
4851
4852  package is used to create multiple bibliographies.
4853  The former package is used if you select 
4854 \begin_inset Quotes eld
4855 \end_inset
4856
4857 per child document
4858 \begin_inset Quotes erd
4859 \end_inset
4860
4861  and do 
4862 \emph on
4863 not
4864 \emph default
4865  check 
4866 \begin_inset Flex Noun
4867 status collapsed
4868
4869 \begin_layout Plain Layout
4870
4871 \change_inserted 34634807 1499890144
4872
4873 \lang english
4874 Sectioned Bibliography
4875 \end_layout
4876
4877 \end_inset
4878
4879 .
4880  In all other cases, 
4881 \begin_inset Flex Code
4882 status collapsed
4883
4884 \begin_layout Plain Layout
4885
4886 \change_inserted 34634807 1499890144
4887
4888 \lang english
4889 bibtopic
4890 \end_layout
4891
4892 \end_inset
4893
4894  is used.
4895 \begin_inset Foot
4896 status collapsed
4897
4898 \begin_layout Plain Layout
4899
4900 \change_inserted 34634807 1499890144
4901
4902 \lang english
4903 An alternative approach, if you are willing to use some 
4904 \begin_inset Flex Noun
4905 status collapsed
4906
4907 \begin_layout Plain Layout
4908
4909 \change_inserted 34634807 1499890144
4910
4911 \lang english
4912 \SpecialChar TeX
4913  Code
4914 \end_layout
4915
4916 \end_inset
4917
4918  (see section
4919 \begin_inset space ~
4920 \end_inset
4921
4922
4923 \begin_inset CommandInset ref
4924 LatexCommand ref
4925 reference "sec:Inserting-TeX-Code"
4926
4927 \end_inset
4928
4929 ), is to use the 
4930 \begin_inset Flex Code
4931 status collapsed
4932
4933 \begin_layout Plain Layout
4934
4935 \change_inserted 34634807 1499890144
4936
4937 \lang english
4938 bibunits
4939 \end_layout
4940
4941 \end_inset
4942
4943  package.
4944 \end_layout
4945
4946 \end_inset
4947
4948  If 
4949 \begin_inset Flex Code
4950 status collapsed
4951
4952 \begin_layout Plain Layout
4953
4954 \change_inserted 34634807 1499890144
4955
4956 \lang english
4957 bibtopic
4958 \end_layout
4959
4960 \end_inset
4961
4962  is used, \SpecialChar LyX
4963  encloses the specified units in 
4964 \begin_inset Flex Code
4965 status collapsed
4966
4967 \begin_layout Plain Layout
4968
4969 \change_inserted 34634807 1499890144
4970
4971 \lang english
4972 bibtopic
4973 \end_layout
4974
4975 \end_inset
4976
4977 's 
4978 \begin_inset Flex Code
4979 status collapsed
4980
4981 \begin_layout Plain Layout
4982
4983 \change_inserted 34634807 1499890144
4984
4985 \lang english
4986
4987 \backslash
4988 begin{btUnit}
4989 \end_layout
4990
4991 \end_inset
4992
4993  and 
4994 \begin_inset Flex Code
4995 status collapsed
4996
4997 \begin_layout Plain Layout
4998
4999 \change_inserted 34634807 1499890144
5000
5001 \lang english
5002
5003 \backslash
5004 end{btUnit}
5005 \end_layout
5006
5007 \end_inset
5008
5009  in order to create the units.
5010  Note that this approach has some limitations.
5011  First, every citation reference has to be inside some 
5012 \begin_inset Flex Code
5013 status collapsed
5014
5015 \begin_layout Plain Layout
5016
5017 \change_inserted 34634807 1499890144
5018
5019 \lang english
5020 btUnit
5021 \end_layout
5022
5023 \end_inset
5024
5025 .
5026  So citations outside a defined unit (e.
5027 \begin_inset space \thinspace{}
5028 \end_inset
5029
5030 g., before the first section if you use 
5031 \begin_inset Quotes eld
5032 \end_inset
5033
5034 by section
5035 \begin_inset Quotes erd
5036 \end_inset
5037
5038 ) will appear as 
5039 \begin_inset Quotes eld
5040 \end_inset
5041
5042 ???
5043 \begin_inset Quotes erd
5044 \end_inset
5045
5046 .
5047  You can also create your own units by entering 
5048 \begin_inset Flex Code
5049 status collapsed
5050
5051 \begin_layout Plain Layout
5052
5053 \change_inserted 34634807 1499890144
5054
5055 \lang english
5056
5057 \backslash
5058 begin{btUnit}
5059 \end_layout
5060
5061 \end_inset
5062
5063  and 
5064 \begin_inset Flex Code
5065 status collapsed
5066
5067 \begin_layout Plain Layout
5068
5069 \change_inserted 34634807 1499890144
5070
5071 \lang english
5072
5073 \backslash
5074 end{btUnit}
5075 \end_layout
5076
5077 \end_inset
5078
5079  as \SpecialChar TeX
5080  code (for instance to work around the mentioned limitation).
5081  Note, though, that 
5082 \begin_inset Flex Code
5083 status collapsed
5084
5085 \begin_layout Plain Layout
5086
5087 \change_inserted 34634807 1499890144
5088
5089 \lang english
5090 btUnit
5091 \end_layout
5092
5093 \end_inset
5094
5095 s cannot be nested.
5096  A second limitation is that 
5097 \begin_inset Flex Code
5098 status collapsed
5099
5100 \begin_layout Plain Layout
5101
5102 \change_inserted 34634807 1499890144
5103
5104 \lang english
5105 bibtopic
5106 \end_layout
5107
5108 \end_inset
5109
5110  always processes all references of a bibliography database, even if they
5111  are not cited.
5112  This can result in odd labels (e.
5113 \begin_inset space \thinspace{}
5114 \end_inset
5115
5116 g.
5117  
5118 \begin_inset Quotes eld
5119 \end_inset
5120
5121 Miller 2014b
5122 \begin_inset Quotes erd
5123 \end_inset
5124
5125  if two works of this author from 2014 are in the database, even if only
5126  one is cited).
5127 \end_layout
5128
5129 \begin_layout Standard
5130
5131 \change_inserted 34634807 1499890144
5132
5133 \lang english
5134 If you use 
5135 \family sans
5136 Biblatex
5137 \family default
5138 , the 
5139 \begin_inset Flex Code
5140 status collapsed
5141
5142 \begin_layout Plain Layout
5143
5144 \change_inserted 34634807 1499890144
5145
5146 \lang english
5147 refsection
5148 \end_layout
5149
5150 \end_inset
5151
5152  option is used instead.
5153  If you need specific units, you can start them with the \SpecialChar TeX
5154  code 
5155 \begin_inset Flex Code
5156 status collapsed
5157
5158 \begin_layout Plain Layout
5159
5160 \change_inserted 34634807 1499890144
5161
5162 \lang english
5163
5164 \backslash
5165 newrefsection
5166 \end_layout
5167
5168 \end_inset
5169
5170  or 
5171 \begin_inset Flex Code
5172 status collapsed
5173
5174 \begin_layout Plain Layout
5175
5176 \change_inserted 34634807 1499890144
5177
5178 \lang english
5179
5180 \backslash
5181 newrefsegment
5182 \end_layout
5183
5184 \end_inset
5185
5186 , respectively.
5187  If you also want to control the end of the unit, use the environment 
5188 \begin_inset Flex Code
5189 status collapsed
5190
5191 \begin_layout Plain Layout
5192
5193 \change_inserted 34634807 1499890144
5194
5195 \lang english
5196
5197 \backslash
5198 begin{refsection}
5199 \end_layout
5200
5201 \end_inset
5202
5203  \SpecialChar ldots
5204  
5205 \begin_inset Flex Code
5206 status collapsed
5207
5208 \begin_layout Plain Layout
5209
5210 \change_inserted 34634807 1499890144
5211
5212 \lang english
5213
5214 \backslash
5215 end{refsection}
5216 \end_layout
5217
5218 \end_inset
5219
5220  instead.
5221  Note, though, that 
5222 \begin_inset Flex Code
5223 status collapsed
5224
5225 \begin_layout Plain Layout
5226
5227 \change_inserted 34634807 1499890144
5228
5229 \lang english
5230 refsection
5231 \end_layout
5232
5233 \end_inset
5234
5235 s cannot be nested.
5236  In addition to the individual bibliography of the current unit, 
5237 \family sans
5238 Biblatex
5239 \family default
5240  also provides an easy way to output all bibliographies, subsequently, at
5241  one place (e.
5242 \begin_inset space \thinspace{}
5243 \end_inset
5244
5245 g., at the end of the document).
5246  Select 
5247 \begin_inset Quotes eld
5248 \end_inset
5249
5250 all reference units
5251 \begin_inset Quotes erd
5252 \end_inset
5253
5254  from the Content combo box of the Bib(la)TeX inset dialog in order to achieve
5255  this.
5256  Please refer to the 
5257 \family sans
5258 Biblatex
5259 \family default
5260  manual for more information on this topic.
5261 \change_unchanged
5262
5263 \end_layout
5264
5265 \begin_layout Section
5266 複合文書
5267 \end_layout
5268
5269 \begin_layout Subsection
5270 一般的な操作
5271 \end_layout
5272
5273 \begin_layout Standard
5274 たくさんの節を含んだ大きなファイルで作業をする場合,文書をいくつかのファイルに分割した方が往々にして便利ですし,場合によっては,表部分にはしょっちゅう変更が加え
5275 られるけれども,その前の文章はつねに同じであるようなケースもあるでしょう.このような場合には,複合文書を利用することを,まずご検討ください.たとえば,科学論文は
5276 通常,導入部・所見・結果・議論・結論の五つの節から成ります.これら各節を別々の\SpecialChar LyX
5277 ファイルにして,タイトル・著者・概要・書誌情報等と,これら五つのインクルード
5278 \begin_inset Foot
5279 status collapsed
5280
5281 \begin_layout Plain Layout
5282
5283 \series bold
5284 (訳註)
5285 \series default
5286 「取り込む」の意です.原語「include」に対する訳語として,プログラミング用語の「インクルードする」以外に適語がないので,ここではプログラミング用語をそのま
5287 ま使用します.
5288 \end_layout
5289
5290 \end_inset
5291
5292 ファイルを持つ,もう一つ別の「マスター」ファイルを作成するようにすることができます.これらの各ファイルは,単にマスターファイルにインクルードされるだけでなく,単
5293 独でも出力したり印刷したりすることのできる完全な\SpecialChar LyX
5294 ファイルであるように注意することが重要です.しかも,これらの各ファイルは,同じ文書クラスでなくてはなりません.a
5295 rticleクラスとbookクラスを混在させるようなことはなさらないでください.\SpecialChar LaTeX
5296 ファイルをインクルードすることもできますが,このファイルにはプリアンブルがあって
5297 はなりません(
5298 \begin_inset Flex Code
5299 status collapsed
5300
5301 \begin_layout Plain Layout
5302
5303 \backslash
5304 begin{document}
5305 \end_layout
5306
5307 \end_inset
5308
5309 行とその前のすべて,および
5310 \begin_inset Flex Code
5311 status collapsed
5312
5313 \begin_layout Plain Layout
5314
5315 \backslash
5316 end{document}行
5317 \end_layout
5318
5319 \end_inset
5320
5321 は削除しておかなければなりません).さもないと,DVIファイルを作成する際にエラーが発生するでしょう.
5322 \end_layout
5323
5324 \begin_layout Standard
5325 \SpecialChar LyX
5326 では,
5327 \family sans
5328 挿入\SpecialChar menuseparator
5329 ファイル\SpecialChar menuseparator
5330 子文書
5331 \family default
5332 で簡単にファイルをインクルードすることができます.このメニューを選んでクリックすると,カーソルの現在位置に小さな枠が挿入されます.この枠をクリックすると,ダイア
5333 ログが現れるので,そこでインクルードするファイルとインクルード方法を選択することができます.
5334 \end_layout
5335
5336 \begin_layout Standard
5337 ファイル選択ボックスは,いまや自明でしょう.インクルード方法には,「include」・「input」・「verbatim」の三つがあります.「include」と
5338 「input」の違いは,正確には\SpecialChar LaTeX
5339 の達人にしか意味のないものですが,ほとんどの人にとって意味のある違いといえば,「include」されたファイルは新規頁から組版さ
5340 れるのに対し,「input」されたファイルは現在のページから組版される点です.
5341 \end_layout
5342
5343 \begin_layout Standard
5344 一般に,マスターファイルは,組版前に完全な\SpecialChar LaTeX
5345 ファイルに変換されますが,インクルードされるファイルは,プリアンブル情報をまったく持たない\SpecialChar LaTeX
5346 ファイルに変換されます.
5347 \end_layout
5348
5349 \begin_layout Standard
5350 「verbatim」インクルードファイルでは,ファイルの内容がそのまま(つまり「
5351 \begin_inset Flex Code
5352 status collapsed
5353
5354 \begin_layout Plain Layout
5355 verbatim
5356 \end_layout
5357
5358 \end_inset
5359
5360 」モードで)固定幅タイプライタフォントで組版されます.通常,このファイルの空白は,通常の\SpecialChar LyX
5361 での空白の取扱いとは違って,連続した複数の空白がそのまま出力されるものの
5362 ,単なる見えない空白です.ただし,
5363 \family sans
5364
5365 \begin_inset Flex MenuItem
5366 status collapsed
5367
5368 \begin_layout Plain Layout
5369
5370 \family sans
5371 出力の空白に印付けをする
5372 \end_layout
5373
5374 \end_inset
5375
5376
5377 \family default
5378 チェックボックスを有効にすると,空白が存在することを明確にするために空白の印が出力されます.
5379 \end_layout
5380
5381 \begin_layout Subsection
5382 ファイル間の相互参照
5383 \end_layout
5384
5385 \begin_layout Standard
5386 \begin_inset Box Shadowbox
5387 position "t"
5388 hor_pos "c"
5389 has_inner_box 1
5390 inner_pos "t"
5391 use_parbox 0
5392 use_makebox 0
5393 width "100col%"
5394 special "none"
5395 height "1in"
5396 height_special "totalheight"
5397 thickness "0.4pt"
5398 separation "3pt"
5399 shadowsize "4pt"
5400 framecolor "black"
5401 backgroundcolor "none"
5402 status open
5403
5404 \begin_layout Plain Layout
5405 この節の内容は,すでに古くなっています.既定のマスター文書についてと,マスターが開いているときに子文書をどう開くかについて記述する必要があります.[[要修正]]
5406 \end_layout
5407
5408 \end_inset
5409
5410
5411 \end_layout
5412
5413 \begin_layout Standard
5414 異なるファイル間に相互参照を設定することも可能です.まず,すべての関係するファイルを開いてください.例として,2つのファイルを扱う場合を考え,各ファイルをA・B
5415 と呼びます.BがAにインクルードされるファイルだとします.Aにラベルを入れて,Bで参照したいとしましょう.文書Bで相互参照ダイアログを開いて,使用する「バッファ
5416 」を選んでください.
5417 \end_layout
5418
5419 \begin_layout Subsection
5420 すべての子文書での書誌情報
5421 \end_layout
5422
5423 \begin_layout Standard
5424 \begin_inset Box Shadowbox
5425 position "t"
5426 hor_pos "c"
5427 has_inner_box 1
5428 inner_pos "t"
5429 use_parbox 0
5430 use_makebox 0
5431 width "100col%"
5432 special "none"
5433 height "1in"
5434 height_special "totalheight"
5435 thickness "0.4pt"
5436 separation "3pt"
5437 shadowsize "4pt"
5438 framecolor "black"
5439 backgroundcolor "none"
5440 status open
5441
5442 \begin_layout Plain Layout
5443 この節も更新が必要です.この点に関する内容がwikiにあるので,それをここにコピーすることも可か.
5444 \end_layout
5445
5446 \end_inset
5447
5448
5449 \end_layout
5450
5451 \begin_layout Standard
5452 すべての子文書の全文献項目を含んだ書誌情報一覧をコピーし,それをコメントに変更してください.このようにすることで,\SpecialChar LyX
5453 は.bibファイルを見つけることができ,書誌情報
5454 一覧を見えるようにせずとも簡単に参照を挿入することができるようになります.
5455 \end_layout
5456
5457 \begin_layout Standard
5458 書誌情報一覧がコメントにあるために,\SpecialChar LaTeX
5459 はそれを使用しないので,参照は[1]のようには表示されないで[?]のように表示されます.ひとつの解決法として,コメントをイン
5460 クルードする\SpecialChar LaTeX
5461 パッケージの
5462 \begin_inset Flex Code
5463 status collapsed
5464
5465 \begin_layout Plain Layout
5466 comment
5467 \end_layout
5468
5469 \end_inset
5470
5471 を使用して,ファイルを別々に処理する方法があります.そのためには,すべての子文書のプリアンブルに以下を書き加えてください.
5472 \end_layout
5473
5474 \begin_layout LyX-Code
5475
5476 \backslash
5477 usepackage{comment}
5478 \end_layout
5479
5480 \begin_layout LyX-Code
5481
5482 \backslash
5483 includecomment{comment}
5484 \end_layout
5485
5486 \begin_layout Standard
5487 \begin_inset Flex URL
5488 status collapsed
5489
5490 \begin_layout Plain Layout
5491
5492 http://wiki.lyx.org/FAQ/Unsorted#toc31
5493 \end_layout
5494
5495 \end_inset
5496
5497 も参照してください.
5498 \end_layout
5499
5500 \begin_layout Section
5501 \SpecialChar LyX
5502 書庫
5503 \end_layout
5504
5505 \begin_layout Standard
5506 しばしばユーザーは,出版社に送ったり,共著者とやりとりするために,\SpecialChar LyX
5507 ファイルを,その依存する全画像(及び他のファイル)と「同梱」する必要に迫られることがあります.\SpecialChar LyX
5508
5509  2.0には,この過程を自動化するPythonスクリプト(
5510 \begin_inset Flex Code
5511 status collapsed
5512
5513 \begin_layout Plain Layout
5514 lyxpak.py
5515 \end_layout
5516
5517 \end_inset
5518
5519 )が含まれています.これを使うには,
5520 \begin_inset Flex Code
5521 status collapsed
5522
5523 \begin_layout Plain Layout
5524 zipfile
5525 \end_layout
5526
5527 \end_inset
5528
5529  pythonモジュールまたは
5530 \begin_inset Flex Code
5531 status collapsed
5532
5533 \begin_layout Plain Layout
5534 tarfile
5535 \end_layout
5536
5537 \end_inset
5538
5539  pythonモジュールが,システムに導入済みであることが必要です.既定設定では,Unix系システムでは,
5540 \begin_inset Flex Code
5541 status collapsed
5542
5543 \begin_layout Plain Layout
5544 gzip
5545 \end_layout
5546
5547 \end_inset
5548
5549 圧縮
5550 \begin_inset Flex Code
5551 status collapsed
5552
5553 \begin_layout Plain Layout
5554 tar
5555 \end_layout
5556
5557 \end_inset
5558
5559 ファイル形式が優先され,Windowsでは
5560 \begin_inset Flex Code
5561 status collapsed
5562
5563 \begin_layout Plain Layout
5564 zip
5565 \end_layout
5566
5567 \end_inset
5568
5569 形式が優先されます.
5570 \end_layout
5571
5572 \begin_layout Standard
5573 \SpecialChar LyX
5574 の環境構成時には,「\SpecialChar LyX
5575 書庫」を書き出すことができるようにスクリプトが準備され,
5576 \begin_inset Flex MenuItem
5577 status collapsed
5578
5579 \begin_layout Plain Layout
5580 ファイル\SpecialChar menuseparator
5581 書き出し
5582 \end_layout
5583
5584 \end_inset
5585
5586 の下で利用可能となります.
5587 \end_layout
5588
5589 \begin_layout Standard
5590 \begin_inset Flex MenuItem
5591 status collapsed
5592
5593 \begin_layout Plain Layout
5594 ツール\SpecialChar menuseparator
5595 設定\SpecialChar menuseparator
5596 ファイル処理\SpecialChar menuseparator
5597 変換子
5598 \end_layout
5599
5600 \end_inset
5601
5602
5603 \begin_inset Flex MenuItem
5604 status collapsed
5605
5606 \begin_layout Plain Layout
5607 \SpecialChar LyX
5608 \SpecialChar menuseparator
5609 \SpecialChar LyX
5610 書庫
5611 \end_layout
5612
5613 \end_inset
5614
5615 変換子に,
5616 \begin_inset Flex Code
5617 status collapsed
5618
5619 \begin_layout Plain Layout
5620 -t
5621 \end_layout
5622
5623 \end_inset
5624
5625 スイッチや
5626 \begin_inset Flex Code
5627 status collapsed
5628
5629 \begin_layout Plain Layout
5630 -z
5631 \end_layout
5632
5633 \end_inset
5634
5635 スイッチを加えることで,プラットホームとは独立に,
5636 \begin_inset Flex Code
5637 status collapsed
5638
5639 \begin_layout Plain Layout
5640 tar
5641 \end_layout
5642
5643 \end_inset
5644
5645 形式や
5646 \begin_inset Flex Code
5647 status collapsed
5648
5649 \begin_layout Plain Layout
5650 zip
5651 \end_layout
5652
5653 \end_inset
5654
5655 形式を強制することができます(スイッチは,スクリプト名の前ではなく,後ろに加えてください).
5656 \end_layout
5657
5658 \begin_layout Section
5659 装飾的なヘッダ・フッタ
5660 \end_layout
5661
5662 \begin_layout Standard
5663 既定のページレイアウトは,どちらかといえば素っ気ないものです.
5664 \begin_inset Flex Code
5665 status collapsed
5666
5667 \begin_layout Plain Layout
5668 article
5669 \end_layout
5670
5671 \end_inset
5672
5673 文書クラスの場合には,ページの下の真ん中にページ番号がつくだけです.この取扱説明書はKOMA-scriptのbookクラスなので,すこしは凝ってますが,ほんとう
5674 に着飾るには,『
5675 \emph on
5676 ユーザーの手引き
5677 \emph default
5678 』に述べられているように,文書ページスタイルを「装飾的(fancy)」に設定する必要があります.この節では,望んだとおりの効果を得るために,\SpecialChar LaTeX
5679 プリアンブルに挿入す
5680 る必要のある\SpecialChar LaTeX
5681 コードについて解説します.
5682 \end_layout
5683
5684 \begin_layout Standard
5685 ページへッダは,「left(左)」・「center(中央)」・「right(右)」と命名された3つのフィールドに分けられています.フッタも同様に3つのフィールド
5686 に分類されています.これらのフィールドをもっとも簡単に設定する\SpecialChar LaTeX
5687 コマンドには,
5688 \family typewriter
5689
5690 \begin_inset Flex Code
5691 status collapsed
5692
5693 \begin_layout Plain Layout
5694
5695 \family typewriter
5696
5697 \backslash
5698 lhead
5699 \end_layout
5700
5701 \end_inset
5702
5703
5704 \family default
5705
5706 \family typewriter
5707
5708 \begin_inset Flex Code
5709 status collapsed
5710
5711 \begin_layout Plain Layout
5712
5713 \family typewriter
5714
5715 \backslash
5716 chead
5717 \end_layout
5718
5719 \end_inset
5720
5721
5722 \family default
5723
5724 \family typewriter
5725
5726 \begin_inset Flex Code
5727 status collapsed
5728
5729 \begin_layout Plain Layout
5730
5731 \family typewriter
5732
5733 \backslash
5734 rhead
5735 \end_layout
5736
5737 \end_inset
5738
5739
5740 \family default
5741
5742 \begin_inset Flex Code
5743 status collapsed
5744
5745 \begin_layout Plain Layout
5746
5747 \backslash
5748 lfoot
5749 \end_layout
5750
5751 \end_inset
5752
5753 などがあります.かりに,各ページの左上端に自分の名前を入れたいものとしましょう.次のようなコマンドをプリアンブルに入れるだけです.
5754 \end_layout
5755
5756 \begin_layout Standard
5757
5758 \family typewriter
5759
5760 \backslash
5761 lhead{物書 はじめ}
5762 \end_layout
5763
5764 \begin_layout Standard
5765 これで自分の名前が左上に現れます.フィールドに取り除きたい既定の内容がある場合(往々にして中央のフッタにはページ番号が入ります)には,空の引数を持つコマンドを入
5766 れるだけです.すなわち,
5767 \end_layout
5768
5769 \begin_layout Standard
5770
5771 \family typewriter
5772
5773 \backslash
5774 cfoot{}
5775 \begin_inset Newline newline
5776 \end_inset
5777
5778
5779 \family default
5780 とします.
5781 \end_layout
5782
5783 \begin_layout Standard
5784 もっと美しくしてみましょう.節番号を「第‥節」という言葉といっしょに(第3節のように)左上に入れ,ページ番号を(4ページのように)右上に,自分の名前を左下に,日
5785 付を右下に入れます.以下のコマンドをプリアンブルに入れます.
5786 \end_layout
5787
5788 \begin_layout Standard
5789
5790 \family typewriter
5791
5792 \backslash
5793 lhead{第
5794 \backslash
5795 thesection 節}
5796 \end_layout
5797
5798 \begin_layout Standard
5799
5800 \family typewriter
5801
5802 \backslash
5803 chead{}
5804 \end_layout
5805
5806 \begin_layout Standard
5807
5808 \family typewriter
5809
5810 \backslash
5811 rhead{
5812 \backslash
5813 thepage ページ}
5814 \end_layout
5815
5816 \begin_layout Standard
5817
5818 \family typewriter
5819
5820 \backslash
5821 lfoot{物書 はじめ}
5822 \end_layout
5823
5824 \begin_layout Standard
5825
5826 \family typewriter
5827
5828 \backslash
5829 cfoot{}
5830 \end_layout
5831
5832 \begin_layout Standard
5833
5834 \family typewriter
5835
5836 \backslash
5837 rfoot{
5838 \backslash
5839 today}
5840 \end_layout
5841
5842 \begin_layout Standard
5843 コマンド
5844 \family typewriter
5845
5846 \begin_inset Flex Code
5847 status collapsed
5848
5849 \begin_layout Plain Layout
5850
5851 \family typewriter
5852
5853 \backslash
5854 thesecti
5855 \family default
5856 o
5857 \family typewriter
5858 n
5859 \end_layout
5860
5861 \end_inset
5862
5863
5864 \family default
5865
5866 \begin_inset Flex Code
5867 status collapsed
5868
5869 \begin_layout Plain Layout
5870
5871 \family typewriter
5872
5873 \backslash
5874 thepa
5875 \family default
5876 ge
5877 \end_layout
5878
5879 \end_inset
5880
5881 は,それぞれ\SpecialChar LaTeX
5882 の節カウンタおよびページカウンタを取得するもので,これによって現在の節番号とページ番号を印字します.
5883 \begin_inset Flex Code
5884 status collapsed
5885
5886 \begin_layout Plain Layout
5887
5888 \family typewriter
5889
5890 \backslash
5891 tod
5892 \family default
5893 ay
5894 \end_layout
5895
5896 \end_inset
5897
5898 は,今日の日付を印字するものです.
5899 \end_layout
5900
5901 \begin_layout Standard
5902 へッダ下またはフッタ上に描かれる罫線の太さも変更することができます.もし罫線が必要なければ,太さを0にしてください.ヘッダ罫線は,既定では0.4ptの太さであり,
5903 フッタ罫線は0ptです.太さを変更するには,
5904 \family typewriter
5905
5906 \begin_inset Flex Code
5907 status collapsed
5908
5909 \begin_layout Plain Layout
5910
5911 \family typewriter
5912
5913 \backslash
5914 renewcommand{
5915 \backslash
5916 headrulewidth}{0.4pt}
5917 \end_layout
5918
5919 \end_inset
5920
5921
5922 \family default
5923
5924 \family typewriter
5925
5926 \begin_inset Flex Code
5927 status collapsed
5928
5929 \begin_layout Plain Layout
5930
5931 \family typewriter
5932
5933 \backslash
5934 renewcommand{
5935 \backslash
5936 footrulewidth}{0.4pt}
5937 \end_layout
5938
5939 \end_inset
5940
5941
5942 \family default
5943 のようなコマンドを使用してください.
5944 \end_layout
5945
5946 \begin_layout Standard
5947 \begin_inset Flex Code
5948 status collapsed
5949
5950 \begin_layout Plain Layout
5951
5952 \family typewriter
5953
5954 \backslash
5955 thispagestyle{empty}
5956 \end_layout
5957
5958 \end_inset
5959
5960
5961 \begin_inset Flex Code
5962 status collapsed
5963
5964 \begin_layout Plain Layout
5965
5966 \family typewriter
5967
5968 \backslash
5969 thispagestyle{plain}
5970 \end_layout
5971
5972 \end_inset
5973
5974
5975 \begin_inset Flex Code
5976 status collapsed
5977
5978 \begin_layout Plain Layout
5979
5980 \family typewriter
5981
5982 \backslash
5983 thispagestyle{fancy}
5984 \end_layout
5985
5986 \end_inset
5987
5988 のようなコマンドを使えば,各ページごとにへッダ・フッタ設定を有効にしたり無効にしたりすることができます.設定を変更したいページに,これらのコマンドを\SpecialChar TeX
5989 コードとして
5990 挿入してください.実は,タイトルページは,その後のページは大域的に装飾的(fancy)に設定されていれば装飾的(fancy)になるにもかかわらず,既定でプレーン
5991 (plain)になるように設定されているのです.
5992 \end_layout
5993
5994 \begin_layout Standard
5995 奇数ページの左上だけに何かを挿入するなど,もっと複雑なコマンドもあるのですが,詳しい解説は
5996 \begin_inset Flex Code
5997 status collapsed
5998
5999 \begin_layout Plain Layout
6000
6001 \family typewriter
6002 fancyhdr
6003 \end_layout
6004
6005 \end_inset
6006
6007 パッケージの取扱説明書をご参照ください(
6008 \begin_inset Flex Code
6009 status collapsed
6010
6011 \begin_layout Plain Layout
6012 fancyhdr.dvi
6013 \end_layout
6014
6015 \end_inset
6016
6017 を探してください).
6018 \end_layout
6019
6020 \begin_layout Standard
6021 最後の例として,へッダやフッタに画像を挿入できることを取り上げましょう.会社のロゴをページ左上に入れたいものとします.たとえば,
6022 \end_layout
6023
6024 \begin_layout Standard
6025
6026 \family typewriter
6027
6028 \backslash
6029 lhead{
6030 \backslash
6031 resizebox{1in}{!}{
6032 \backslash
6033 includegraphics{logo.eps}}}
6034 \end_layout
6035
6036 \begin_layout Standard
6037 \noindent
6038 とすれば,これを実現できます(文書中に他に画像を挿入していない場合には,
6039 \begin_inset Newline newline
6040 \end_inset
6041
6042
6043 \begin_inset Flex Code
6044 status collapsed
6045
6046 \begin_layout Plain Layout
6047 \noindent
6048
6049 \family typewriter
6050
6051 \backslash
6052 usepackage{graphics}
6053 \end_layout
6054
6055 \end_inset
6056
6057 をプリアンブルに宣言する必要があります).
6058 \end_layout
6059
6060 \begin_layout Section
6061 箇条書き(記号)ブリットの指定
6062 \begin_inset CommandInset label
6063 LatexCommand label
6064 name "sec:ブリット"
6065
6066 \end_inset
6067
6068
6069 \end_layout
6070
6071 \begin_layout Standard
6072
6073 \noun on
6074 Allan Rae文
6075 \end_layout
6076
6077 \begin_layout Subsection
6078 はじめに
6079 \end_layout
6080
6081 \begin_layout Standard
6082 \SpecialChar LyX
6083 には,ブリットの形が216個準備されていて,簡単なダイアログから呼び出すことができます.このダイアログを使えば,箇条書き(記号)の各階層で使うブリットの形を変更
6084 することができます.この設定は文書全体に共通なので,段落ごとに別のブリットを指定することはできません
6085 \begin_inset Foot
6086 status collapsed
6087
6088 \begin_layout Plain Layout
6089 正確には可能ですが,手動で行う必要があります.
6090 \end_layout
6091
6092 \end_inset
6093
6094
6095 \end_layout
6096
6097 \begin_layout Subsection
6098 外見
6099 \end_layout
6100
6101 \begin_layout Standard
6102 メニュー項目の
6103 \begin_inset Flex MenuItem
6104 status collapsed
6105
6106 \begin_layout Plain Layout
6107 文書\SpecialChar menuseparator
6108 設定
6109 \end_layout
6110
6111 \end_inset
6112
6113 を選択してダイアログを開き,
6114 \begin_inset Flex MenuItem
6115 status collapsed
6116
6117 \begin_layout Plain Layout
6118 ブリット
6119 \end_layout
6120
6121 \end_inset
6122
6123 タブを選択してください.
6124 \end_layout
6125
6126 \begin_layout Standard
6127 このダイアログは,ブリット形の一覧表を提示します.
6128 \begin_inset Flex MenuItem
6129 status collapsed
6130
6131 \begin_layout Plain Layout
6132 フォント
6133 \end_layout
6134
6135 \end_inset
6136
6137 と書いてあるドロップダウンメニューで,6つの各ブリット形パネルを切り替えることができます.また,一覧表左の
6138 \begin_inset Flex MenuItem
6139 status collapsed
6140
6141 \begin_layout Plain Layout
6142 階層
6143 \end_layout
6144
6145 \end_inset
6146
6147 パネルは,変更したい階層を選択するものです.
6148 \begin_inset Flex MenuItem
6149 status collapsed
6150
6151 \begin_layout Plain Layout
6152 任意のブリット
6153 \end_layout
6154
6155 \end_inset
6156
6157 では,指定したい\SpecialChar LaTeX
6158 表現を入力することができます.任意のブリットを指定した場合には,そのコマンドが必要とするパッケージを\SpecialChar LaTeX
6159 プリアンブルで指定する必要があります.
6160 \end_layout
6161
6162 \begin_layout Standard
6163 6つのパネルは,それぞれが必要とするパッケージによって分類されています.下記は,フォント名と\SpecialChar LaTeX
6164 パッケージの対応表です.
6165 \end_layout
6166
6167 \begin_layout Standard
6168 \align center
6169 \begin_inset Tabular
6170 <lyxtabular version="3" rows="7" columns="2">
6171 <features tabularvalignment="middle">
6172 <column alignment="center" valignment="top" width="0pt">
6173 <column alignment="center" valignment="top" width="0pt">
6174 <row>
6175 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6176 \begin_inset Text
6177
6178 \begin_layout Plain Layout
6179 フォント
6180 \end_layout
6181
6182 \end_inset
6183 </cell>
6184 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6185 \begin_inset Text
6186
6187 \begin_layout Plain Layout
6188
6189 \family roman
6190 \series medium
6191 \shape up
6192 \size normal
6193 \emph off
6194 \bar no
6195 \noun off
6196 \color none
6197 必要とするパッケージ
6198 \end_layout
6199
6200 \end_inset
6201 </cell>
6202 </row>
6203 <row>
6204 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6205 \begin_inset Text
6206
6207 \begin_layout Plain Layout
6208
6209 \family sans
6210 標準
6211 \end_layout
6212
6213 \end_inset
6214 </cell>
6215 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6216 \begin_inset Text
6217
6218 \begin_layout Plain Layout
6219
6220 \series medium
6221 \shape up
6222 \size normal
6223 \emph off
6224 \bar no
6225 \noun off
6226 \color none
6227 \SpecialChar LaTeX
6228
6229 \family roman
6230 本体
6231 \end_layout
6232
6233 \end_inset
6234 </cell>
6235 </row>
6236 <row>
6237 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6238 \begin_inset Text
6239
6240 \begin_layout Plain Layout
6241
6242 \family sans
6243 \series medium
6244 \shape up
6245 \size normal
6246 \emph off
6247 \bar no
6248 \noun off
6249 \color none
6250 数式
6251 \end_layout
6252
6253 \end_inset
6254 </cell>
6255 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6256 \begin_inset Text
6257
6258 \begin_layout Plain Layout
6259
6260 \family typewriter
6261 \series medium
6262 \shape up
6263 \size normal
6264 \emph off
6265 \bar no
6266 \noun off
6267 \color none
6268 amssymb.sty
6269 \end_layout
6270
6271 \end_inset
6272 </cell>
6273 </row>
6274 <row>
6275 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6276 \begin_inset Text
6277
6278 \begin_layout Plain Layout
6279
6280 \family sans
6281 \series medium
6282 \shape up
6283 \size normal
6284 \emph off
6285 \bar no
6286 \noun off
6287 \color none
6288 絵文字1
6289 \end_layout
6290
6291 \end_inset
6292 </cell>
6293 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6294 \begin_inset Text
6295
6296 \begin_layout Plain Layout
6297
6298 \family typewriter
6299 \series medium
6300 \shape up
6301 \size normal
6302 \emph off
6303 \bar no
6304 \noun off
6305 \color none
6306 pifont.sty
6307 \end_layout
6308
6309 \end_inset
6310 </cell>
6311 </row>
6312 <row>
6313 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6314 \begin_inset Text
6315
6316 \begin_layout Plain Layout
6317
6318 \family sans
6319 \series medium
6320 \shape up
6321 \size normal
6322 \emph off
6323 \bar no
6324 \noun off
6325 \color none
6326 絵文字2
6327 \end_layout
6328
6329 \end_inset
6330 </cell>
6331 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6332 \begin_inset Text
6333
6334 \begin_layout Plain Layout
6335
6336 \family typewriter
6337 \series medium
6338 \shape up
6339 \size normal
6340 \emph off
6341 \bar no
6342 \noun off
6343 \color none
6344 pifont.sty
6345 \end_layout
6346
6347 \end_inset
6348 </cell>
6349 </row>
6350 <row>
6351 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6352 \begin_inset Text
6353
6354 \begin_layout Plain Layout
6355
6356 \family sans
6357 \series medium
6358 \shape up
6359 \size normal
6360 \emph off
6361 \bar no
6362 \noun off
6363 \color none
6364 絵文字3
6365 \end_layout
6366
6367 \end_inset
6368 </cell>
6369 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6370 \begin_inset Text
6371
6372 \begin_layout Plain Layout
6373
6374 \family typewriter
6375 \series medium
6376 \shape up
6377 \size normal
6378 \emph off
6379 \bar no
6380 \noun off
6381 \color none
6382 pifont.sty
6383 \end_layout
6384
6385 \end_inset
6386 </cell>
6387 </row>
6388 <row>
6389 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6390 \begin_inset Text
6391
6392 \begin_layout Plain Layout
6393
6394 \family sans
6395 \series medium
6396 \shape up
6397 \size normal
6398 \emph off
6399 \bar no
6400 \noun off
6401 \color none
6402 絵文字4
6403 \end_layout
6404
6405 \end_inset
6406 </cell>
6407 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6408 \begin_inset Text
6409
6410 \begin_layout Plain Layout
6411
6412 \family typewriter
6413 \series medium
6414 \shape up
6415 \size normal
6416 \emph off
6417 \bar no
6418 \noun off
6419 \color none
6420 pifont.sty
6421 \end_layout
6422
6423 \end_inset
6424 </cell>
6425 </row>
6426 </lyxtabular>
6427
6428 \end_inset
6429
6430
6431 \end_layout
6432
6433 \begin_layout Standard
6434 \SpecialChar LyX
6435 は,ユーザーが導入されていないパッケージのブリットを使用したとしても,警告を発しません.ファイルを閲覧したり印刷したりしようとしたときに\SpecialChar LaTeX
6436 エラーが出るようならば,
6437 パッケージが導入されていない可能性が大です
6438 \begin_inset Foot
6439 status collapsed
6440
6441 \begin_layout Plain Layout
6442 \SpecialChar LyX
6443 が,パッケージがなくてもブリットを使用することを許すのは,編集をここで行ったとしても,別のところへエクスポートする可能性があるからです.
6444 \end_layout
6445
6446 \end_inset
6447
6448
6449 \end_layout
6450
6451 \begin_layout Subsection
6452 使用法
6453 \end_layout
6454
6455 \begin_layout Standard
6456 変更したいブリット階層を選んで,ブリット形と寸法を選択してください.何らかの変更を加えたとしても,\SpecialChar LyX
6457 上には反映されませんが,文書の表示を行えば確認されます.
6458 \end_layout
6459
6460 \begin_layout Standard
6461 ブリット形は,適切な階層のブリットボタンをマウスで右クリックすれば,簡単に既定値に初期化することができます
6462 \begin_inset Foot
6463 status collapsed
6464
6465 \begin_layout Plain Layout
6466 もし
6467 \emph on
6468 本当に
6469 \emph default
6470 段落ごとに異なるブリットの形を使いたいならば,\SpecialChar TeX
6471 コードを使って少し手を汚す必要があります.この場合も,ブリット選択ダイアログを使えば,さまざまな形のLaTeXコー
6472 ドを確認することができるので手助けとなるでしょう.任意に設定した段落をつくるには,以下のような選択肢があります.
6473 \end_layout
6474
6475 \begin_layout Plain Layout
6476 \begin_inset ERT
6477 status open
6478
6479 \begin_layout Plain Layout
6480
6481
6482 \backslash
6483 let
6484 \backslash
6485 savelabelitemi=
6486 \backslash
6487 labelitemi
6488 \end_layout
6489
6490 \end_inset
6491
6492
6493 \end_layout
6494
6495 \begin_layout Plain Layout
6496 \begin_inset ERT
6497 status open
6498
6499 \begin_layout Plain Layout
6500
6501
6502 \backslash
6503 renewcommand
6504 \backslash
6505 labelitemi[0]{
6506 \backslash
6507 small
6508 \backslash
6509 (
6510 \backslash
6511 sharp
6512 \backslash
6513 )}
6514 \end_layout
6515
6516 \end_inset
6517
6518
6519 \end_layout
6520
6521 \begin_layout Itemize
6522 特定の階層の新しいブリット形を指定するには,\SpecialChar LaTeX
6523 コマンド
6524 \begin_inset Flex Code
6525 status collapsed
6526
6527 \begin_layout Plain Layout
6528
6529 \family typewriter
6530
6531 \backslash
6532 renewcommand{}{}
6533 \end_layout
6534
6535 \end_inset
6536
6537 を使用します.あとで現在のブリット形に戻すことができるように,現在のブリット形を保存しておく必要もあります.ここで使っている箇条書きでは,第1階層のブリットを変
6538 更するために,以下の\SpecialChar LaTeX
6539 コードが使用されています.
6540 \end_layout
6541
6542 \begin_deeper
6543 \begin_layout LyX-Code
6544
6545 \family typewriter
6546
6547 \backslash
6548 let
6549 \backslash
6550 savelabelitemi=
6551 \backslash
6552 labelitemi
6553 \end_layout
6554
6555 \begin_layout LyX-Code
6556
6557 \family typewriter
6558
6559 \backslash
6560 renewcommand
6561 \backslash
6562 labelitemi[0]{
6563 \backslash
6564 small
6565 \backslash
6566 (
6567 \backslash
6568 sharp
6569 \backslash
6570 )}
6571 \end_layout
6572
6573 \end_deeper
6574 \begin_layout Itemize
6575 箇条書き(記号)の階層は,
6576 \begin_inset Flex Code
6577 status collapsed
6578
6579 \begin_layout Plain Layout
6580
6581 \backslash
6582 labelitem
6583 \end_layout
6584
6585 \end_inset
6586
6587 コマンドの一部にローマ数字で指定されていることに注意してください.
6588 \end_layout
6589
6590 \begin_layout Itemize
6591 \begin_inset ERT
6592 status open
6593
6594 \begin_layout Plain Layout
6595
6596 [
6597 \backslash
6598 (
6599 \backslash
6600 star
6601 \backslash
6602 )]
6603 \end_layout
6604
6605 \end_inset
6606
6607 各項目のブリットを指定するには,角括弧で囲んだブリット形を,行頭に
6608 \begin_inset Flex Code
6609 status collapsed
6610
6611 \begin_layout Plain Layout
6612 \SpecialChar TeX
6613 コード
6614 \end_layout
6615
6616 \end_inset
6617
6618 として挿入してください.たとえば,この項目の行頭には
6619 \family typewriter
6620
6621 \begin_inset Flex Code
6622 status collapsed
6623
6624 \begin_layout Plain Layout
6625
6626 \family typewriter
6627 [
6628 \backslash
6629 (
6630 \backslash
6631 star
6632 \backslash
6633 )]
6634 \end_layout
6635
6636 \end_inset
6637
6638
6639 \family default
6640 が指定されています.
6641 \end_layout
6642
6643 \begin_layout Plain Layout
6644 \begin_inset ERT
6645 status open
6646
6647 \begin_layout Plain Layout
6648
6649
6650 \backslash
6651 renewcommand
6652 \backslash
6653 labelitemi[0]{
6654 \backslash
6655 savelabelitemi}
6656 \end_layout
6657
6658 \end_inset
6659
6660
6661 \end_layout
6662
6663 \begin_layout Plain Layout
6664 文書全体で使用するブリット形が有効であるようにするために,labelitemを元の設定に戻す必要があります.そのためには,以下のようにします.
6665 \end_layout
6666
6667 \begin_layout LyX-Code
6668
6669 \family typewriter
6670
6671 \backslash
6672 renewcommand
6673 \backslash
6674 labelitemi[0]{
6675 \backslash
6676 savelabelitemi}
6677 \end_layout
6678
6679 \end_inset
6680
6681
6682 \end_layout
6683
6684 \begin_layout Chapter
6685 \SpecialChar LyX
6686 とインターネット網
6687 \end_layout
6688
6689 \begin_layout Standard
6690 \SpecialChar LyX
6691 は,これまでも長い間,HTMLを始めとするウェブフレンドリーな文書諸形式への書き出しをサポートしてきました.しかしながら,第2.0版以前では,HTMLへの書き出し
6692 は,常に外部変換子を用いることで実現されていました
6693 \begin_inset Foot
6694 status collapsed
6695
6696 \begin_layout Plain Layout
6697 \SpecialChar LyX
6698 で外部変換子を使うことについての詳細は,取扱説明書『
6699 \emph on
6700 カスタマイズ篇
6701 \emph default
6702 』の「
6703 \emph on
6704 変換子
6705 \emph default
6706 」の節をご覧ください.
6707 \end_layout
6708
6709 \end_inset
6710
6711 .これらは2つのグループに大別できます.1つは,
6712 \begin_inset Flex Code
6713 status collapsed
6714
6715 \begin_layout Plain Layout
6716 htlatex
6717 \end_layout
6718
6719 \end_inset
6720
6721
6722 \begin_inset Flex Code
6723 status collapsed
6724
6725 \begin_layout Plain Layout
6726 html2latex
6727 \end_layout
6728
6729 \end_inset
6730
6731
6732 \begin_inset Flex Code
6733 status collapsed
6734
6735 \begin_layout Plain Layout
6736 plastex
6737 \end_layout
6738
6739 \end_inset
6740
6741 のように,\SpecialChar LaTeX
6742 を中間形式として用い,その\SpecialChar LaTeX
6743 を生成するのに\SpecialChar LyX
6744 を用いるもの.2つめは,
6745 \begin_inset Flex Code
6746 status collapsed
6747
6748 \begin_layout Plain Layout
6749 e\SpecialChar LyX
6750 er
6751 \end_layout
6752
6753 \end_inset
6754
6755 のように,直接\SpecialChar LyX
6756 ファイルに働きかける変換子です.これらは,それぞれに長所・短所を有しています.
6757 \end_layout
6758
6759 \begin_layout Standard
6760 \SpecialChar LaTeX
6761 ベースの変換子は,原則として,\SpecialChar LaTeX
6762 が書きだす文書についてのすべてを知っているという長所があります.この種の変換子は,例えば,特定のコードのくだりが,\SpecialChar LyX
6763 によって生成され
6764 たのか,\SpecialChar TeX
6765 コードで書かれたのかについては気にしません.これらの変換子は,
6766 \begin_inset Flex Code
6767 status collapsed
6768
6769 \begin_layout Plain Layout
6770 aux
6771 \end_layout
6772
6773 \end_inset
6774
6775 ファイルやカウンタや参照を取り扱うことができ,Bib\SpecialChar TeX
6776 が生成する
6777 \begin_inset Flex Code
6778 status collapsed
6779
6780 \begin_layout Plain Layout
6781 bbl
6782 \end_layout
6783
6784 \end_inset
6785
6786 ファイルも利用することがよくあります.一方で,\SpecialChar LaTeX
6787 は解析の非常に難しい言語であり—\SpecialChar TeX
6788 自身だけが\SpecialChar TeX
6789 を理解することができると言われたりすることがあります—,\SpecialChar LaTeX
6790 ベースの変換子は
6791 ,非常に簡単な文法に見えるものでさえ飲み込めず,複雑なものになると全く歯が立たないこともあります.例えば,この現行を書いている時点では,取扱説明書『
6792 \emph on
6793 埋込オブジェクト篇
6794 \emph default
6795 』は,他の変換子では書き出しができるのに,
6796 \begin_inset Flex Code
6797 status collapsed
6798
6799 \begin_layout Plain Layout
6800 htlatex
6801 \end_layout
6802
6803 \end_inset
6804
6805 では行うことができません.他には,数式をどう取り扱うかという問題があります.これらの変換子の典型的なものは,数式を小さな画像に変換して,HTML文書からこれらの
6806 画像へのリンクを張ります.これらの画像は,実は\SpecialChar LaTeX
6807 によって生成されているので,正確です.しかしながら,これらはうまく伸縮できないので,実際の文書の中で表現されるよう
6808 に—フォント寸が凡そ正しくなるように—見せようとすると,大変な苦労を伴います.
6809 \end_layout
6810
6811 \begin_layout Standard
6812 Alex Fernandezの
6813 \begin_inset Flex Code
6814 status collapsed
6815
6816 \begin_layout Plain Layout
6817 e\SpecialChar LyX
6818 er
6819 \end_layout
6820
6821 \end_inset
6822
6823  (
6824 \begin_inset CommandInset href
6825 LatexCommand href
6826 name "http://elyxer.nongnu.org/"
6827 target "http://elyxer.nongnu.org/"
6828 literal "false"
6829
6830 \end_inset
6831
6832 )は,これらの問題の一部を解決します.特に,これは数式を画像に変換するのではなく,HTMLとCSSを組み合わせて数式を生成するので,生成される数式は完璧な大きさ
6833 に伸縮されて表示されます.しかしながら,ちょっとだけ複雑な数式でさえ,
6834 \begin_inset Flex Code
6835 status collapsed
6836
6837 \begin_layout Plain Layout
6838 htlatex
6839 \end_layout
6840
6841 \end_inset
6842
6843 よりも質が落ちます.これはHTMLの限界を示しています
6844 \begin_inset Foot
6845 status collapsed
6846
6847 \begin_layout Plain Layout
6848 とはいえ,
6849 \begin_inset Flex Code
6850 status collapsed
6851
6852 \begin_layout Plain Layout
6853 e\SpecialChar LyX
6854 er
6855 \end_layout
6856
6857 \end_inset
6858
6859 では,数式用にjsMathとMathJaxを使用することもできます.ただし,この設定はグローバルにしか設定することができず,バックエンドで実行させるサーバへのア
6860 クセスが利用できる必要があります.
6861 \end_layout
6862
6863 \end_inset
6864
6865 .さらに重要なことは(少なくとも第1.1.1版においては),
6866 \begin_inset Flex Code
6867 status collapsed
6868
6869 \begin_layout Plain Layout
6870 e\SpecialChar LyX
6871 er
6872 \end_layout
6873
6874 \end_inset
6875
6876 は数式マクロを一部しかサポートしておらず,ユーザ定義の段落様式や文字様式をサポートしていません.これらの制約によって,\SpecialChar LyX
6877 ユーザが生成する文書の多くにとっては,
6878 \begin_inset Flex Code
6879 status collapsed
6880
6881 \begin_layout Plain Layout
6882 e\SpecialChar LyX
6883 er
6884 \end_layout
6885
6886 \end_inset
6887
6888 は不向きなものになっています.もちろん,原理的に,これらの問題を解決することもできたのですが,\SpecialChar LyX
6889 開発陣は別の方法を採ることとし,\SpecialChar LyX
6890 が\SpecialChar LaTeX
6891 やDocBook,平文を書き出す
6892 ことができるのと同様に,\SpecialChar LyX
6893 自身にXHTMLを書きだす能力を身につけさせることとしたのです.
6894 \end_layout
6895
6896 \begin_layout Standard
6897 この原稿執筆時点では,XHTML出力は開発途上であり,おそらく「実験的」機能として解されるべきでしょう
6898 \begin_inset Foot
6899 status collapsed
6900
6901 \begin_layout Plain Layout
6902 \SpecialChar LyX
6903 ソースツリーもしくは
6904 \begin_inset CommandInset href
6905 LatexCommand href
6906 name "オンラインでのアクセス"
6907 target "http://www.lyx.org/trac/browser/lyx-devel/trunk/development/HTML/HTML.notes"
6908 literal "false"
6909
6910 \end_inset
6911
6912 にある
6913 \begin_inset Flex Code
6914 status collapsed
6915
6916 \begin_layout Plain Layout
6917 development/HTML.notes
6918 \end_layout
6919
6920 \end_inset
6921
6922 ファイルには,通常,XHTML出力の現状についての最新の情報が収録されています.
6923 \begin_inset CommandInset href
6924 LatexCommand href
6925 name "バグ追跡ページ"
6926 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"
6927 literal "false"
6928
6929 \end_inset
6930
6931 にあるXHTML関連バグ一覧も参照のこと.
6932 \end_layout
6933
6934 \end_inset
6935
6936 .それでもこのアプローチは,他の2つの方法よりも,潜在的な利点がいくつもあるので,開発陣はこの方法を選択したのです.
6937 \end_layout
6938
6939 \begin_layout Standard
6940 これらの利点は,主に,XHTML出力ルーチンが\SpecialChar LyX
6941 の一部となっているため,\SpecialChar LyX
6942 が出力する文書について\SpecialChar LyX
6943 が関知しているところのものは,すべて知り得るというところから来ていま
6944
6945 \begin_inset Foot
6946 status collapsed
6947
6948 \begin_layout Plain Layout
6949 他には,これらのルーチンが\SpecialChar LyX
6950 内部にあるため,\SpecialChar LyX
6951 ファイル形式や既存の差込枠の文法に変更があっても,影響を受けずに済むという利点もあります.
6952 \end_layout
6953
6954 \end_inset
6955
6956 .つまり,XHTML出力ルーチンは,(文書構造に表示されるような形での)目次や,それぞれの段落様式に関連付けられたカウンタや,ユーザ定義の様式についても知ってい
6957 るのです.XHTML出力ルーチンは,国際化について\SpecialChar LyX
6958 が関知しているものも知っているので,ちょうどその時に有効になっている言語に依存して,「Chapter
6959  1」と出力されたり,「Kapitel 1」と出力されたりするのです.
6960 \end_layout
6961
6962 \begin_layout Standard
6963 汎く一般的に,出力ルーチンは,\SpecialChar LyX
6964 が文書レイアウトについて関知しているものは知っており,したがって,文書が画面上にどのように描画されるかも知っています.文書をXHT
6965 MLに出力するときには,この情報を利用します.特に,\SpecialChar LyX
6966 は,文書を画面上に描画するときに使用するレイアウト情報に対応したCSSスタイル情報を
6967 \emph on
6968 自動的に
6969 \emph default
6970 生成します.もし節見出しが,\SpecialChar LyX
6971 中でサンセリフ体かつボールド体であるとすると,(既定では)ウェブブラウザに表示した時にも,サンセリフでボールドになります.これは,節
6972 のような定義済み様式だけでなく,ユーザ定義のものも含めて,すべての様式でそうです.実際,XHTML出力ルーチンは,ユーザ定義の段落・文字様式と,\SpecialChar LyX
6973 自身の定義済み様
6974 式とを区別しません.どちらの場合も,\SpecialChar LyX
6975 が様式について関知しているところのものは,全てレイアウトファイルに含まれています.これは,脚注のような定義済み差込枠や,各種
6976 ユーザ設定差込枠でもそうです.
6977 \end_layout
6978
6979 \begin_layout Standard
6980 結果として,XHTML出力は,レイアウトファイルやモジュールを通して,\SpecialChar LaTeX
6981 出力と全く同じように,ユーザが設定したり拡張したりすることができるのです.詳細については,
6982 取扱説明書『
6983 \emph on
6984 カスタマイズ篇
6985 \emph default
6986 』の第5章をごらんください.
6987 \end_layout
6988
6989 \begin_layout Standard
6990 本章の残りでは,XHTML出力についての,さらに詳細な情報について取り扱い,その制約や,制約の回避の仕方を取り扱います.
6991 \end_layout
6992
6993 \begin_layout Section
6994 XHTMLにおける数式出力
6995 \end_layout
6996
6997 \begin_layout Standard
6998 \SpecialChar LyX
6999 では,数式描画に4つの方法を選択できます.以下に示すように,それぞれに利点と欠点があります.
7000 \end_layout
7001
7002 \begin_layout Itemize
7003 MathML
7004 \begin_inset Newline newline
7005 \end_inset
7006
7007 MathMLは,ウェブ上で数学を用いるために,特にデザインされたXMLの一方言であり,これをサポートするブラウザ上では,通常,特に美しい表現が得られます.欠点は
7008 ,すべてのブラウザがMathMLをサポートしているわけではないという事と,FirefoxのようなGeckoベースのブラウザでも,サポートが完璧ではないという事で
7009 す.
7010 \begin_inset Newline newline
7011 \end_inset
7012
7013 例えば,数式が
7014 \begin_inset Flex Code
7015 status collapsed
7016
7017 \begin_layout Plain Layout
7018 xymatrix
7019 \end_layout
7020
7021 \end_inset
7022
7023 パッケージを使用していたり,\SpecialChar TeX
7024 コードを使用しているなどで,もし\SpecialChar LyX
7025 が数式をMathMLとして描画できないとすると,\SpecialChar LyX
7026 は数式を代わりに画像として出力します.
7027  
7028 \end_layout
7029
7030 \begin_layout Itemize
7031 HTML
7032 \begin_inset Newline newline
7033 \end_inset
7034
7035 前述のとおり,
7036 \begin_inset Flex Code
7037 status collapsed
7038
7039 \begin_layout Plain Layout
7040 elyxer
7041 \end_layout
7042
7043 \end_inset
7044
7045 は,数式をCSSで装飾したHTMLとして出力します
7046 \begin_inset Foot
7047 status collapsed
7048
7049 \begin_layout Plain Layout
7050 \SpecialChar LyX
7051 は,
7052 \begin_inset Flex Code
7053 status collapsed
7054
7055 \begin_layout Plain Layout
7056 elyxer
7057 \end_layout
7058
7059 \end_inset
7060
7061 からのHTML出力のために,CSSの一部を拝借しています.
7062 \end_layout
7063
7064 \end_inset
7065
7066 .簡単な数式では,これは非常にうまく行きますが,少し複雑な数式になると,
7067 \begin_inset Flex Code
7068 status collapsed
7069
7070 \begin_layout Plain Layout
7071 elyxer
7072 \end_layout
7073
7074 \end_inset
7075
7076 は歯が立たなくなります.それでも,この方法は非常に広くサポートされているという利点があり,かなり簡単な数式を少しだけ含んでいるような文書に適しているでしょう.
7077 \begin_inset Newline newline
7078 \end_inset
7079
7080 例えば,数式が
7081 \begin_inset Flex Code
7082 status collapsed
7083
7084 \begin_layout Plain Layout
7085 xymatrix
7086 \end_layout
7087
7088 \end_inset
7089
7090 パッケージを使用していたり,\SpecialChar TeX
7091 コードを使用しているなどで,もし\SpecialChar LyX
7092 が数式をHTMLとして描画できないとすると,\SpecialChar LyX
7093 は数式を代わりに画像として出力します.
7094  
7095 \end_layout
7096
7097 \begin_layout Itemize
7098 画像
7099 \begin_inset Newline newline
7100 \end_inset
7101
7102
7103 \begin_inset Flex Code
7104 status collapsed
7105
7106 \begin_layout Plain Layout
7107 htlatex
7108 \end_layout
7109
7110 \end_inset
7111
7112 のように,\SpecialChar LyX
7113 は数式を画像としても出力できます.この画像は,実は,自動プレビューで使用されているものと全く同じです
7114 \begin_inset Foot
7115 status collapsed
7116
7117 \begin_layout Plain Layout
7118 ただし,画像を出力に使うために,自動プレビューを入にしておく必要は
7119 \emph on
7120 ありません
7121 \emph default
7122
7123 \end_layout
7124
7125 \end_inset
7126
7127 .この方法の利点は,画像が他ならぬ\SpecialChar LaTeX
7128 によって生成されているので,非常に正確であることです.欠点は,前述したとおり,画像がビットマップなので,伸縮が全くうまく行かな
7129 かったり,コピーが出来なかったりといったことがあります(執筆時点においては,数式の付番にも問題があります.
7130 \begin_inset CommandInset href
7131 LatexCommand href
7132 name "バグ 6894"
7133 target "http://www.lyx.org/trac/ticket/6894"
7134 literal "false"
7135
7136 \end_inset
7137
7138 を参照のこと.).
7139 \begin_inset Newline newline
7140 \end_inset
7141
7142 画像の寸法は,
7143 \begin_inset Flex MenuItem
7144 status collapsed
7145
7146 \begin_layout Plain Layout
7147 文書\SpecialChar menuseparator
7148 設定\SpecialChar menuseparator
7149 出力
7150 \end_layout
7151
7152 \end_inset
7153
7154 の「数式画像の伸縮」パラメータを変更することで制御できます
7155 \begin_inset Foot
7156 status collapsed
7157
7158 \begin_layout Plain Layout
7159 必要な方のために述べておくと,これは,画像の解像度をdpi (1インチあたりドット数)で制御するためのもので,75dpiを基準としています.
7160 \end_layout
7161
7162 \end_inset
7163
7164
7165 \begin_inset Newline newline
7166 \end_inset
7167
7168 もし\SpecialChar LyX
7169 が,何らかの理由によって数式の画像を生成できない(例えば,必要な\SpecialChar LaTeX
7170 パッケージが導入済みでないなど)ときは,回避策として,生の\SpecialChar LaTeX
7171 を出力します.
7172 \end_layout
7173
7174 \begin_layout Itemize
7175 \SpecialChar LaTeX
7176
7177 \begin_inset Newline newline
7178 \end_inset
7179
7180 最後に,\SpecialChar LyX
7181 は,数式を\SpecialChar LaTeX
7182 としても出力することができます.この方法は,最終手段としての出力方法である一方で,HTML文書に埋め込まれた\SpecialChar LaTeX
7183 を描画するのにJavaScript
7184 を使用する,
7185 \begin_inset CommandInset href
7186 LatexCommand href
7187 name "jsMath"
7188 target "http://www.math.union.edu/~dpvc/jsMath/"
7189 literal "false"
7190
7191 \end_inset
7192
7193 のようなツールとともに使用することもできます.\SpecialChar LyX
7194 は,jsMathで必要とされているのと同じように,\SpecialChar LaTeX
7195 部分を,
7196 \begin_inset Flex Code
7197 status collapsed
7198
7199 \begin_layout Plain Layout
7200 span
7201 \end_layout
7202
7203 \end_inset
7204
7205 (行内数式用)または
7206 \begin_inset Flex Code
7207 status collapsed
7208
7209 \begin_layout Plain Layout
7210 div
7211 \end_layout
7212
7213 \end_inset
7214
7215 (別行立て数式用)に
7216 \begin_inset Flex Code
7217 status collapsed
7218
7219 \begin_layout Plain Layout
7220 class='math'
7221 \end_layout
7222
7223 \end_inset
7224
7225 を指定したもので,包んで出力します.
7226 \end_layout
7227
7228 \begin_layout Standard
7229 これらの出力方法のいずれかを
7230 \begin_inset Flex MenuItem
7231 status collapsed
7232
7233 \begin_layout Plain Layout
7234 文書\SpecialChar menuseparator
7235 設定\SpecialChar menuseparator
7236 出力
7237 \end_layout
7238
7239 \end_inset
7240
7241 で選択しなくてはなりません.既定では,\SpecialChar LyX
7242 はMathMLで出力を行います.これは,文書全体に適用される設定となります.
7243 \end_layout
7244
7245 \begin_layout Standard
7246 最後に,\SpecialChar LyX
7247 では,例えば,MathMLではあまりうまく出力されないような差込枠に対して,別の出力方法を選択できる選択肢が用意されています
7248 \begin_inset Foot
7249 status collapsed
7250
7251 \begin_layout Plain Layout
7252 その他にも,\SpecialChar LyX
7253 は,差込枠に\SpecialChar TeX
7254 コードが含まれていると画像出力に回帰するので,数式中に
7255 \begin_inset Formula $a=b\relax$
7256 \end_inset
7257
7258 のような無害な\SpecialChar TeX
7259 コードを挿入することによって,画像出力を強制することができます.
7260 \end_layout
7261
7262 \end_inset
7263
7264
7265 \end_layout
7266
7267 \begin_layout Section
7268 書誌情報と引用
7269 \end_layout
7270
7271 \begin_layout Standard
7272 XHTML出力は,書誌情報と引用を完全にサポートしています.
7273 \end_layout
7274
7275 \begin_layout Standard
7276 引用ラベルは,\SpecialChar LyX
7277 画面上のラベルを生成するのと同じ機構で生成されているので,出力中のラベルは,\SpecialChar LyX
7278 中の外見と同質またはそれよりも上質な仕上がりとなっています.連番引用を
7279 使用している場合には,\SpecialChar LyX
7280 は,画面上で表示されるような各カッコに囲まれた引用鍵を単純に表示するのではなく,[1]や[17]などの連番ラベルを出力します.著者-出版年
7281 形式の引用を使用している場合で,同じ著者-出版年の組み合わせが複数ある場合,\SpecialChar LyX
7282 は,Bib\SpecialChar TeX
7283 が行うように出版年に小文字を付します.ラベルは,書誌情報項目とともに印字さ
7284 れます.現在のところ,角括弧を丸括弧に変更するなど,ラベルの外見を変更する手段はありませんのでご注意ください.
7285 \end_layout
7286
7287 \begin_layout Standard
7288 書誌情報出力は,引用ダイアログで文献情報表示を取り扱うのと同じ機構で取り扱われているので,XHTML出力は,引用ダイアログで特定の文献項目を表示させた時のものに
7289 非常によく似ています.整形の仕方は,レイアウトファイルや望ましくはモジュールでカスタマイズすることができます.詳細については,取扱説明書『カスタマイズ篇』をご覧
7290 ください.
7291 \end_layout
7292
7293 \begin_layout Standard
7294 現在のところ,主だった瑕疵は,相互参照された情報が,関連した項目の全てに印字されてしまうことです.つまり,以下のような表示が為されます.
7295 \end_layout
7296
7297 \begin_layout Quote
7298 Jason Stanley, 
7299 \begin_inset Quotes eld
7300 \end_inset
7301
7302 Context and Logical Form
7303 \begin_inset Quotes erd
7304 \end_inset
7305
7306 , in 
7307 \emph on
7308 Language in Context: Selected Essays
7309 \emph default
7310  (Oxford: Oxford University Press, 2007), pp.
7311  30–68.
7312 \end_layout
7313
7314 \begin_layout Quote
7315 Jason Stanley, 
7316 \begin_inset Quotes eld
7317 \end_inset
7318
7319 Semantics in Context
7320 \begin_inset Quotes erd
7321 \end_inset
7322
7323 , in 
7324 \emph on
7325 Language in Context: Selected Essays
7326 \emph default
7327  (Oxford: Oxford University Press, 2007), pp.
7328  201–30.
7329 \end_layout
7330
7331 \begin_layout Standard
7332 これは,遠くないうちに修正されるでしょう.
7333 \end_layout
7334
7335 \begin_layout Standard
7336 現在のところ,節ごとの書誌情報出力はサポートされていません.複数の書誌情報がある場合には,\SpecialChar LyX
7337 は同じ情報を繰り返し出力してしまいます.
7338 \end_layout
7339
7340 \begin_layout Section
7341 索引
7342 \end_layout
7343
7344 \begin_layout Standard
7345 \SpecialChar LyX
7346 は,索引をXHTMLとして書きだすことができますが,現在のところ,若干の制約があります.
7347 \end_layout
7348
7349 \begin_layout Standard
7350 索引の書き出しは,
7351 \emph on
7352 ユーザーの手引き
7353 \emph default
7354 の索引の節に書かれているような手の込んだ方法を使おうとしないほうが,信頼性が保てます
7355 \begin_inset Foot
7356 status collapsed
7357
7358 \begin_layout Plain Layout
7359 ここでの主な問題は,これらの操作の際に,\SpecialChar LyX
7360 自身は何もしていないという点です.つまり,生の\SpecialChar LaTeX
7361 で入力しなくてはならないようなものをそのまま入力しているのです.
7362 \end_layout
7363
7364 \end_inset
7365
7366 .当該節の小節見出しに沿って,それらがどう処理されるかを説明しましょう.
7367 \end_layout
7368
7369 \begin_layout Itemize
7370 索引項目のグループ化(下層項目): \SpecialChar LyX
7371 はこれらをサポートしようと努めていますが,項目は「 ! 」(感嘆符の周りに空白)で分離しなくてはなりません.これは,そうしな
7372 いと数式などで使われているエスケープされた感嘆符をチェックするのが非常に難しくなるからです.
7373 \end_layout
7374
7375 \begin_layout Itemize
7376 ページ範囲: ページ範囲については,XHTMLでは意味がないので,全くサポートされません.その代わりに,引用項目のはじめと終わりの頁それぞれに,2つの索引項目が
7377 得られるだけです.
7378 \end_layout
7379
7380 \begin_layout Itemize
7381 相互参照: 相互参照のサポートはありません.\SpecialChar LyX
7382 が「|see\SpecialChar ldots
7383 」という下だりを持つ項目を検出すると,その部分はただ無視されて,残りの部分が通常の索引項目だとみなされま
7384 す.
7385 \end_layout
7386
7387 \begin_layout Itemize
7388 索引項目の整序: \SpecialChar LyX
7389 は整序順の変更をサポートします.\SpecialChar LyX
7390 は,最初に検出した「@」の前の部分を取り出して,それを整序に用い,最初の「@」の後の部分を実際の項目として取り
7391 出します.現在のところ,\SpecialChar LyX
7392 はエスケープされた「@」を取り扱わないので,電子メールアドレスを索引に使わないでください.
7393 \end_layout
7394
7395 \begin_layout Itemize
7396 索引項目のレイアウト: 項目は,テキスト様式ダイアログを使うなり,\SpecialChar LyX
7397 内で使用可能な方法を用いることで,索引項目を成形することができます.「項目|textbf」のよ
7398 うな文法はサポートされません.\SpecialChar LyX
7399 は,項目内にパイプ記号「|」を検出すると,パイプ記号とその後に続くものすべてを削除してしまいます.
7400 \end_layout
7401
7402 \begin_layout Itemize
7403 複数の索引: 複数の索引はサポートされていません.すべての項目は,ひとつの大きな索引として印字されます.索引が何度も印字されることを防ぐため,中心となる索引だけ
7404 を印字しますので,その索引は必ず置くようにしてください.
7405 \end_layout
7406
7407 \begin_layout Section
7408 記号一覧および用語集
7409 \end_layout
7410
7411 \begin_layout Standard
7412 現在のところ,用語集のサポートはありません.この機能の追加は,比較的容易だと思われますので,あなたの貢献をお待ちしております.
7413 \end_layout
7414
7415 \begin_layout Chapter
7416 \SpecialChar LyX
7417 サーバー
7418 \begin_inset CommandInset label
7419 LatexCommand label
7420 name "chap:LyXサーバー"
7421
7422 \end_inset
7423
7424
7425 \end_layout
7426
7427 \begin_layout Section
7428 はじめに
7429 \end_layout
7430
7431 \begin_layout Standard
7432 「\SpecialChar LyX
7433 サーバー」を使用すると,他のプログラムが,\SpecialChar LyX
7434 と通信したり,\SpecialChar LyX
7435 コマンドを実行させたり,\SpecialChar LyX
7436 の内部状態に関する情報を取得したりすることができるようになります.これは熟練し
7437 たユーザー向けの機能ですが,便利なはずです.たとえば,\SpecialChar LyX
7438 サーバーに書き込むことによって,JabRefのような書誌情報管理ソフトが,LyXに文献引用を「押し込む」こ
7439 とが可能となります.
7440 \end_layout
7441
7442 \begin_layout Section
7443 \SpecialChar LyX
7444 サーバーを開始するには
7445 \end_layout
7446
7447 \begin_layout Standard
7448 \SpecialChar LyX
7449 サーバーは,名前をつけたパイプの対を利用することで機能します.パイプは,通常
7450 \begin_inset Flex Code
7451 status collapsed
7452
7453 \begin_layout Plain Layout
7454 UserDir
7455 \end_layout
7456
7457 \end_inset
7458
7459 の下に作られ(Windowsを除く.Windowsでは,名前を付けた
7460 \emph on
7461 ローカルの
7462 \emph default
7463 パイプは
7464 \begin_inset Flex Code
7465 status collapsed
7466
7467 \begin_layout Plain Layout
7468
7469 \backslash
7470
7471 \backslash
7472 .
7473 \backslash
7474 pipe
7475 \end_layout
7476
7477 \end_inset
7478
7479 に特別なオブジェクトとして置かれます),「
7480 \begin_inset Flex Code
7481 status collapsed
7482
7483 \begin_layout Plain Layout
7484 .lyxpipe.in
7485 \end_layout
7486
7487 \end_inset
7488
7489 」および「
7490 \begin_inset Flex Code
7491 status collapsed
7492
7493 \begin_layout Plain Layout
7494 .lyxpipe.out
7495 \end_layout
7496
7497 \end_inset
7498
7499 」という名前がついています.外部プログラムは,
7500 \begin_inset Flex Code
7501 status collapsed
7502
7503 \begin_layout Plain Layout
7504 .lyxpipe.in
7505 \end_layout
7506
7507 \end_inset
7508
7509 に書き込みを行い,戻りデータを
7510 \begin_inset Flex Code
7511 status collapsed
7512
7513 \begin_layout Plain Layout
7514 .lyxpipe.out
7515 \end_layout
7516
7517 \end_inset
7518
7519 から読み出します.パイプ名の語幹は,
7520 \begin_inset Flex MenuItem
7521 status collapsed
7522
7523 \begin_layout Plain Layout
7524 ツール\SpecialChar menuseparator
7525 設定
7526 \end_layout
7527
7528 \end_inset
7529
7530 から,たとえば「
7531 \begin_inset Flex Code
7532 status collapsed
7533
7534 \begin_layout Plain Layout
7535 /home/myhome/lyxpipe
7536 \end_layout
7537
7538 \end_inset
7539
7540 」あるいはWindowsでは「
7541 \begin_inset Flex Code
7542 status collapsed
7543
7544 \begin_layout Plain Layout
7545
7546 \backslash
7547
7548 \backslash
7549 .
7550 \backslash
7551 pipe
7552 \backslash
7553 lyxpipe
7554 \end_layout
7555
7556 \end_inset
7557
7558 」などに設定することができます(ここで,lyxpipe以外の任意のファイルパス,例えば
7559 \begin_inset Flex Code
7560 status collapsed
7561
7562 \begin_layout Plain Layout
7563 "
7564 \backslash
7565
7566 \backslash
7567 .
7568 \backslash
7569 pipe
7570 \backslash
7571 my
7572 \backslash
7573 lyx
7574 \backslash
7575 pipe"
7576 \end_layout
7577
7578 \end_inset
7579
7580 なども使用できます).サーバーを開始するためには,これを
7581 \emph on
7582 手動で設定しなくてはなりません
7583 \emph default
7584
7585 \end_layout
7586
7587 \begin_layout Standard
7588 \SpecialChar LyX
7589 は,パイプを生成するに際して,「
7590 \begin_inset Flex Code
7591 status collapsed
7592
7593 \begin_layout Plain Layout
7594 .in
7595 \end_layout
7596
7597 \end_inset
7598
7599 」および「
7600 \begin_inset Flex Code
7601 status collapsed
7602
7603 \begin_layout Plain Layout
7604 .out
7605 \end_layout
7606
7607 \end_inset
7608
7609 」を付け加えます.パイプがすでに存在していれば,\SpecialChar LyX
7610 は他の\SpecialChar LyX
7611 プロセスがすでに実行中であると判断して,サーバーを開始しません.POSIX(Unix型)システムでは,なん
7612 らかの理由で,\SpecialChar LyX
7613 が終了する際に使用されていない「古い」パイプが削除されずに残ったりすると,\SpecialChar LyX
7614 はこれを削除しようとします.何らかの理由でこれが失敗した場合,手動でパイ
7615 プを削除したのちに,\SpecialChar LyX
7616 を再起動する必要があります.Windowsでは,プログラムが終了したりクラッシュしたりすると,OSがパイプを削除するので,「古い」パイプが残
7617 ることはありません.
7618 \end_layout
7619
7620 \begin_layout Standard
7621 サーバーを使用する\SpecialChar LyX
7622 プロセスを複数起動するには,それぞれのプロセスに,別のユーザーディレクトリを使用させたり,別々の
7623 \begin_inset Flex Code
7624 status collapsed
7625
7626 \begin_layout Plain Layout
7627 preferences
7628 \end_layout
7629
7630 \end_inset
7631
7632 ファイルを使用させるなど,別々の設定を使用する必要があります.
7633 \end_layout
7634
7635 \begin_layout Standard
7636 クライアントプログラムを開発しようとされているのであれば,\SpecialChar LyX
7637 サーバーからのデバッグ情報を有効にすると便利かもしれません.そのためには,Lyxを
7638 \begin_inset Flex Code
7639 status collapsed
7640
7641 \begin_layout Plain Layout
7642 lyx -dbg lyxserver
7643 \end_layout
7644
7645 \end_inset
7646
7647 として起動してください.
7648 \end_layout
7649
7650 \begin_layout Standard
7651 C++言語で書かれた完全なサンプルクライアントが,ソース頒布版の
7652 \begin_inset Newline newline
7653 \end_inset
7654
7655
7656 \begin_inset Flex Code
7657 status collapsed
7658
7659 \begin_layout Plain Layout
7660 development/lyxserver/server_monitor.cpp
7661 \end_layout
7662
7663 \end_inset
7664
7665 にあります.
7666 \end_layout
7667
7668 \begin_layout Standard
7669 もう一つの便利なツールとして,
7670 \begin_inset Flex Code
7671 status collapsed
7672
7673 \begin_layout Plain Layout
7674 src/client/lyxclient
7675 \end_layout
7676
7677 \end_inset
7678
7679 にあるコマンドラインベースのクライアントがあります.
7680 \end_layout
7681
7682 \begin_layout Section
7683 通常の通信
7684 \end_layout
7685
7686 \begin_layout Standard
7687 \SpecialChar LyX
7688 コールを発行するには,クライアントはASCIIテキスト行を入力パイプに書き込みまなくてはなりません.この行は,以下の書式を持ちます.
7689 \end_layout
7690
7691 \begin_layout Quote
7692 LYXCMD:
7693 \emph on
7694 クライアント名
7695 \emph default
7696 :
7697 \emph on
7698 関数
7699 \emph default
7700 :
7701 \emph on
7702 引数
7703 \end_layout
7704
7705 \begin_layout Description
7706 クライアント名 は,クライアントが自由に選べる名前です.これが用いられるのは,クライアントが他の要求クライアントから結果を見分けることができるように,\SpecialChar LyX
7707 が返答をす
7708 る際,クライアント名をエコーするときだけです.
7709 \end_layout
7710
7711 \begin_layout Description
7712 関数 は,\SpecialChar LyX
7713 に実行させたい関数です.これは,ミニバッファで使用するコマンドと同じです.
7714 \end_layout
7715
7716 \begin_layout Description
7717 引数 は,一部の関数のみに効力を持つオプションの引数です(たとえば,「自己挿入」LFUNは,現在のカーソル位置に引数を文章として挿入します).
7718 \end_layout
7719
7720 \begin_layout Standard
7721 \SpecialChar LyX
7722 からの返答は,出力パイプに送り出され,
7723 \end_layout
7724
7725 \begin_layout Quote
7726 INFO:
7727 \emph on
7728 クライアント名
7729 \emph default
7730 :
7731 \emph on
7732 関数
7733 \emph default
7734 :
7735 \emph on
7736 データ
7737 \end_layout
7738
7739 \begin_layout Standard
7740 の書式をしています.ここで
7741 \emph on
7742 クライアント名
7743 \emph default
7744
7745 \emph on
7746 関数
7747 \emph default
7748 は,コマンド要求からそのままエコーされますが,
7749 \emph on
7750 データ
7751 \emph default
7752 はコマンド実行の結果に依存した,多少なりとも有用な情報です.「font-state」のような一部のコマンドは,\SpecialChar LyX
7753 の内部状態に関する情報を返しますが,空のデータ応答
7754 を返すものもあります.空のデータ返答は,コマンド実行が無事終わったことを意味します.
7755 \end_layout
7756
7757 \begin_layout Standard
7758 エラーが発生した場合の\SpecialChar LyX
7759 の返答は
7760 \end_layout
7761
7762 \begin_layout Quote
7763 ERROR:
7764 \emph on
7765 クライアント名
7766 \emph default
7767 :
7768 \emph on
7769 関数
7770 \emph default
7771 :
7772 \emph on
7773 エラーメッセージ
7774 \end_layout
7775
7776 \begin_layout Standard
7777 の書式をしており,
7778 \emph on
7779 エラーメッセージ
7780 \emph default
7781 には,なぜコマンドが失敗したかの説明が入っているはずです.
7782 \end_layout
7783
7784 \begin_layout Standard
7785 (例)
7786 \end_layout
7787
7788 \begin_layout LyX-Code
7789 echo "LYXCMD:test:beginning-of-buffer:" >~/.lyxpipe.in
7790 \begin_inset Newline newline
7791 \end_inset
7792
7793 echo "LYXCMD:test:get-xy:" >~/.lyxpipe.in
7794 \begin_inset Newline newline
7795 \end_inset
7796
7797 read a <~/.lyxpipe.out
7798 \begin_inset Newline newline
7799 \end_inset
7800
7801 echo $a
7802 \end_layout
7803
7804 \begin_layout Section
7805 通知
7806 \end_layout
7807
7808 \begin_layout Standard
7809 \SpecialChar LyX
7810 は,発生しているイベントを,非同期的にクライアントに通知することができます.いまのところ,ユーザーがある
7811 \begin_inset Flex Ruby
7812 status collapsed
7813
7814 \begin_layout Plain Layout
7815
7816 \begin_inset Argument post:1
7817 status collapsed
7818
7819 \begin_layout Plain Layout
7820 キー
7821 \end_layout
7822
7823 \end_inset
7824
7825
7826 \end_layout
7827
7828 \end_inset
7829
7830 列を関数「notify」に割り当てているときのみ,\SpecialChar LyX
7831 はこの通知を行います.\SpecialChar LyX
7832 が送る文字列の書式は
7833 \end_layout
7834
7835 \begin_layout Quote
7836 \begin_inset Flex Code
7837 status collapsed
7838
7839 \begin_layout Plain Layout
7840 NOTIFY:
7841 \end_layout
7842
7843 \end_inset
7844
7845
7846 \emph on
7847 鍵列
7848 \end_layout
7849
7850 \begin_layout Standard
7851 となっていて,
7852 \emph on
7853 鍵列
7854 \emph default
7855 は,ユーザーが実際に打鍵した鍵列の印字表現になります.
7856 \end_layout
7857
7858 \begin_layout Standard
7859 この機構は,\SpecialChar LyX
7860 のコマンド群を拡張してマクロを実装するのに使用することができます.なんらかの鍵列を「notify」に割り当ててください.それから出力パイプで待機する
7861 クライアントを起動し,鍵列に応じたコマンドを読み込み,一つないし複数の\SpecialChar LyX
7862 コマンドを発行する\SpecialChar LyX
7863 要求と\SpecialChar LyX
7864 コールを使用する関数を開始するのです.
7865 \end_layout
7866
7867 \begin_layout Section
7868 単純な\SpecialChar LyX
7869 サーバープロトコル
7870 \end_layout
7871
7872 \begin_layout Standard
7873 \SpecialChar LyX
7874 は,セッション管理に使用することができる単純なプロトコルを実装しています.メッセージは,すべて
7875 \end_layout
7876
7877 \begin_layout Quote
7878 LYXSRV:
7879 \emph on
7880 クライアント名
7881 \emph default
7882 :
7883 \emph on
7884 プロトコルメッセージ
7885 \end_layout
7886
7887 \begin_layout Standard
7888 の書式をしており,
7889 \emph on
7890 プロトコルメッセージ
7891 \emph default
7892 は「hello」ないし「bye」です.クライアントから「hello」を受け取ると,\SpecialChar LyX
7893 はメッセージを聴いていることをクライアントに伝えるために返答をし,\SpecialChar LyX
7894 が終了するこ
7895 とをクライアントに伝えるのには,\SpecialChar LyX
7896 が「bye」を送信します.
7897 \end_layout
7898
7899 \begin_layout Section
7900 DVIとPDFの遡及検索
7901 \end_layout
7902
7903 \begin_layout Standard
7904 DVI/PDFビューア
7905 \begin_inset Foot
7906 status collapsed
7907
7908 \begin_layout Plain Layout
7909 PDFの遡及検索機能を提供しているビューアには,KDE/Linux上のOkularと
7910 \lang english
7911 Qpdfview on Unix
7912 \lang japanese
7913 とMac OS X上のSkim,Windows上のSumatraPDFがあります.
7914 \end_layout
7915
7916 \end_inset
7917
7918 には,遡及検索(reverse searchないしinverse searchと呼ばれます)機能を提供しているものがあります.これを使えば,DVI/PDF出力の
7919 特定の場所をクリックすることによって,\SpecialChar LyX
7920 の文書中で対応する行にカーソルを移動させることができます.これを実現するためには,ビューアは\SpecialChar LyX
7921 と情報交換を行う必要があります
7922 .これは,命名パイプ(
7923 \emph on
7924 lyxpipe
7925 \emph default
7926 )を使用するか,\SpecialChar LyX
7927 が作業ディレクトリに生成するUNIXドメインソケット(
7928 \emph on
7929 lyxsocket
7930 \emph default
7931 )を使用する(これは
7932 \begin_inset Flex Code
7933 status collapsed
7934
7935 \begin_layout Plain Layout
7936 lyxclient
7937 \end_layout
7938
7939 \end_inset
7940
7941 プログラムが\SpecialChar LyX
7942 と通信するのに使用している方法です)ことで,\SpecialChar LyX
7943 サーバを経由して実現することができます.場合によっては,ビューアと\SpecialChar LyX
7944 を橋渡しする補助スクリプトを必要とする
7945 ことがあるかもしれませんが,それ以外は,ビューアは\SpecialChar LyX
7946 と直接通信することができます.これは,選んだビューアと基本ソフトに依存します.また,必要とされるビューアの設定
7947 法と遡及検索が実際に行われる方法とにも依存します.したがって,下記では個々のビューア毎の遡及検索の設定の仕方を説明することとします.その前に,DVI/PDF出力
7948 で遡及検索を有効にするためには,一般に何が必要とされるかを説明します.
7949 \end_layout
7950
7951 \begin_layout Subsection
7952 \begin_inset CommandInset label
7953 LatexCommand label
7954 name "subsec:遡及検索"
7955
7956 \end_inset
7957
7958 自動有効化
7959 \end_layout
7960
7961 \begin_layout Standard
7962 \begin_inset Flex MenuItem
7963 status collapsed
7964
7965 \begin_layout Plain Layout
7966 文書\SpecialChar menuseparator
7967 設定\SpecialChar menuseparator
7968 出力
7969 \end_layout
7970
7971 \end_inset
7972
7973 メニューで
7974 \begin_inset Flex MenuItem
7975 status collapsed
7976
7977 \begin_layout Plain Layout
7978 出力と同期
7979 \end_layout
7980
7981 \end_inset
7982
7983 オプションを有効にすれば,ほとんどの場合,\SpecialChar LyX
7984 がすべてをうまくこなしてくれます.その場合,\SpecialChar LyX
7985 は,自動的に,必要なSync\SpecialChar TeX
7986 マクロ(PDFの場合)や,srcltxパッケー
7987 ジ(DVIの場合)を挿入してくれます.このオプションは,
7988 \begin_inset Flex MenuItem
7989 status collapsed
7990
7991 \begin_layout Plain Layout
7992 表示/更新
7993 \end_layout
7994
7995 \end_inset
7996
7997 ツールバーからも容易にアクセスすることができます.
7998 \end_layout
7999
8000 \begin_layout Standard
8001 もし,これとは別の設定が必要な場合には,
8002 \begin_inset Flex MenuItem
8003 status collapsed
8004
8005 \begin_layout Plain Layout
8006 文書\SpecialChar menuseparator
8007 設定\SpecialChar menuseparator
8008 出力\SpecialChar menuseparator
8009 出力と同期
8010 \end_layout
8011
8012 \end_inset
8013
8014 の直下にあるドロップダウンボックスから,自製マクロを選択ないし入力することができます.
8015 \end_layout
8016
8017 \begin_layout Standard
8018 方式として
8019 \begin_inset Flex Code
8020 status collapsed
8021
8022 \begin_layout Plain Layout
8023
8024 \backslash
8025 synctex=1
8026 \end_layout
8027
8028 \end_inset
8029
8030 を用いると,gzip圧縮が有効となることに注意してください.使用しているビューアがgzip圧縮をサポートしていない場合には,代わりに
8031 \begin_inset Flex Code
8032 status collapsed
8033
8034 \begin_layout Plain Layout
8035
8036 \backslash
8037 synctex=-1
8038 \end_layout
8039
8040 \end_inset
8041
8042 を指定してください.
8043 \end_layout
8044
8045 \begin_layout Standard
8046 また,
8047 \begin_inset Flex Code
8048 status collapsed
8049
8050 \begin_layout Plain Layout
8051 srcltx
8052 \end_layout
8053
8054 \end_inset
8055
8056 パッケージや
8057 \begin_inset Flex Code
8058 status collapsed
8059
8060 \begin_layout Plain Layout
8061 src-specials
8062 \end_layout
8063
8064 \end_inset
8065
8066 を取り込むと,組版上,不具合が生じることがあるのでご注意ください.したがって,
8067 \begin_inset Flex Code
8068 status collapsed
8069
8070 \begin_layout Plain Layout
8071 srcltx
8072 \end_layout
8073
8074 \end_inset
8075
8076 パッケージや
8077 \begin_inset Flex Code
8078 status collapsed
8079
8080 \begin_layout Plain Layout
8081 src-specials
8082 \end_layout
8083
8084 \end_inset
8085
8086 を使用している場合には,最終版を組版する際には,出力同期を無効にするべきです.
8087 \end_layout
8088
8089 \begin_layout Standard
8090 自動設定でカバーされている範囲よりも,さらに特殊なものが必要な場合には,出力同期を手動で設定する仕方を述べた次節をお読みください.自動設定で事足りる場合には,自
8091 動設定・手動設定ともに必要となるビューア上の設定を述べた,第
8092 \begin_inset CommandInset ref
8093 LatexCommand ref
8094 reference "subsec:特定のビューアを設定して使うには"
8095
8096 \end_inset
8097
8098 節に進むことができます.
8099 \end_layout
8100
8101 \begin_layout Subsection
8102 手動有効化
8103 \end_layout
8104
8105 \begin_layout Standard
8106 \SpecialChar LaTeX
8107 は,遡及検索のために複数の方法を提供しています.ある方法は
8108 \begin_inset Flex Code
8109 status collapsed
8110
8111 \begin_layout Plain Layout
8112 latex/pdflatex
8113 \end_layout
8114
8115 \end_inset
8116
8117 プログラムに組み込まれており,他の方法は外部パッケージとして提供されています.どちらを選択するかは,お使いの\SpecialChar LaTeX
8118 頒布版が既に特定の方法を提供しているか(組み込みによ
8119 る方法は比較的新しいものです)と,お使いのビューアがそれに対応しているかに依存します.使用可能な方法を以下に述べます.
8120 \end_layout
8121
8122 \begin_layout Subsubsection*
8123 src-special経由のDVI組み込み検索(DVIのみ)
8124 \end_layout
8125
8126 \begin_layout Standard
8127 この方法は,DVIファイルに遡及検索に必要な情報を追加するものです.これは,かなり前の\SpecialChar LaTeX
8128 から利用可能となっており(比較的最近の\SpecialChar LaTeX
8129 頒布版はすべて対応しています),安定
8130 して動作します.これを有効にするには,
8131 \begin_inset Flex MenuItem
8132 status collapsed
8133
8134 \begin_layout Plain Layout
8135 設定\SpecialChar menuseparator
8136 ファイル処理\SpecialChar menuseparator
8137 変換子
8138 \end_layout
8139
8140 \end_inset
8141
8142
8143 \begin_inset Flex MenuItem
8144 status collapsed
8145
8146 \begin_layout Plain Layout
8147 LaTeX (plain)->DVI
8148 \end_layout
8149
8150 \end_inset
8151
8152 ないし
8153 \begin_inset Flex MenuItem
8154 status collapsed
8155
8156 \begin_layout Plain Layout
8157 LaTeX (plain)->DraftDVI
8158 \end_layout
8159
8160 \end_inset
8161
8162 変換子を
8163 \begin_inset Flex Code
8164 status collapsed
8165
8166 \begin_layout Plain Layout
8167 latex -src-specials $$i
8168 \end_layout
8169
8170 \end_inset
8171
8172 に変更します.もしこれが動作しないときは,お使いの\SpecialChar LaTeX
8173 エンジンが違うオプションを必要としていないか確認してください(頒布版によっては文法の異なることがあります).
8174 \end_layout
8175
8176 \begin_layout Subsubsection*
8177 外部パッケージ(PDFSyncおよびsrcltx)
8178 \end_layout
8179
8180 \begin_layout Standard
8181
8182 \emph on
8183 pdfsync
8184 \emph default
8185 および
8186 \emph on
8187 srcltx
8188 \emph default
8189 パッケージは,PDF出力(pdflatex経由)およびDVI出力での遡及検索を提供します.これを有効にするには,\SpecialChar LyX
8190 プリアンブルで以下のようにパッケージを読み込んで
8191 ください.
8192 \end_layout
8193
8194 \begin_layout Itemize
8195 PDFの遡及検索には
8196 \begin_inset Flex Code
8197 status collapsed
8198
8199 \begin_layout Plain Layout
8200
8201 \backslash
8202 usepackage{pdfsync}
8203 \end_layout
8204
8205 \end_inset
8206
8207
8208 \end_layout
8209
8210 \begin_layout Itemize
8211 DVIの遡及検索には
8212 \begin_inset Flex Code
8213 status collapsed
8214
8215 \begin_layout Plain Layout
8216
8217 \backslash
8218 usepackage[active]{srcltx}
8219 \end_layout
8220
8221 \end_inset
8222
8223
8224 \end_layout
8225
8226 \begin_layout Standard
8227 と書きます.DVIとPDFの両方の遡及検索を実行できるようにするためには,プリアンブルに以下の行を挿入する方法があります.
8228 \end_layout
8229
8230 \begin_layout LyX-Code
8231
8232 \backslash
8233 usepackage{ifpdf}
8234 \begin_inset Newline newline
8235 \end_inset
8236
8237
8238 \backslash
8239 ifpdf
8240 \begin_inset Newline newline
8241 \end_inset
8242
8243   
8244 \backslash
8245 usepackage{pdfsync}
8246 \begin_inset Newline newline
8247 \end_inset
8248
8249
8250 \backslash
8251 else
8252 \begin_inset Newline newline
8253 \end_inset
8254
8255   
8256 \backslash
8257 usepackage[active]{srcltx}
8258 \begin_inset Newline newline
8259 \end_inset
8260
8261
8262 \backslash
8263 fi
8264 \end_layout
8265
8266 \begin_layout Standard
8267 このようにすれば,DVIでもPDF(pdflatex)でも正しいパッケージを使いながら,ファイルを閲覧することができます.
8268 \end_layout
8269
8270 \begin_layout Standard
8271 なお,PDFSyncは,文書の出力レイアウトに干渉する可能性があるので注意してください.したがって,仕上がり文書ではPDFSyncを無効にすることをお勧めします
8272
8273 \end_layout
8274
8275 \begin_layout Subsubsection*
8276 Sync\SpecialChar TeX
8277 を使った組み込み遡及検索(DVIおよびPDF)
8278 \end_layout
8279
8280 \begin_layout Standard
8281 \begin_inset Flex Code
8282 status collapsed
8283
8284 \begin_layout Plain Layout
8285 (pdf)latex
8286 \end_layout
8287
8288 \end_inset
8289
8290 の最近のバージョンは,PDFおよびDVI両方の遡及検索を組み込みでサポートしています.このいわゆる
8291 \emph on
8292 Sync\SpecialChar TeX
8293
8294 \emph default
8295 機能は,主に,PDFSyncパッケージをpdftexプログラムへ統合したことと,それをsrc-specialsアプローチへ取り込んだことの成果です.これを使用す
8296 るためには,少なくとも\SpecialChar TeX
8297 Live 2008か最近のMik\SpecialChar TeX
8298 頒布版が必要です.また,既にSync\SpecialChar TeX
8299 サポートを提供しているPDFビューアは少ししかありません(UNIX上の
8300 OkularとQpdfview,Mac上のSkim,及びWindows上のSumatraPDF).
8301 \end_layout
8302
8303 \begin_layout Standard
8304 DVI出力でSync\SpecialChar TeX
8305 を有効にするには,
8306 \begin_inset Flex MenuItem
8307 status collapsed
8308
8309 \begin_layout Plain Layout
8310 設定\SpecialChar menuseparator
8311 ファイル処理\SpecialChar menuseparator
8312 変換子
8313 \end_layout
8314
8315 \end_inset
8316
8317
8318 \begin_inset Flex MenuItem
8319 status collapsed
8320
8321 \begin_layout Plain Layout
8322 LaTeX (plain)->DVI
8323 \end_layout
8324
8325 \end_inset
8326
8327 ないし
8328 \begin_inset Flex MenuItem
8329 status collapsed
8330
8331 \begin_layout Plain Layout
8332 LaTeX (plain)->DraftDVI
8333 \end_layout
8334
8335 \end_inset
8336
8337 変換子を
8338 \begin_inset Flex Code
8339 status collapsed
8340
8341 \begin_layout Plain Layout
8342 latex -synctex=1 $$i
8343 \end_layout
8344
8345 \end_inset
8346
8347 に変更します.PDF出力用には,
8348 \begin_inset Flex MenuItem
8349 status collapsed
8350
8351 \begin_layout Plain Layout
8352 LaTeX (pdflatex)->PDF (pdflatex)
8353 \end_layout
8354
8355 \end_inset
8356
8357 変換子を
8358 \begin_inset Flex Code
8359 status collapsed
8360
8361 \begin_layout Plain Layout
8362 pdflatex -synctex=1 $$i
8363 \end_layout
8364
8365 \end_inset
8366
8367 に変更してください.また,ビューアをSync\SpecialChar TeX
8368 で使うのに設定を行う必要があるかどうか,お使いのビューアの取扱説明書をご確認ください.
8369 \begin_inset Foot
8370 status collapsed
8371
8372 \begin_layout Plain Layout
8373 \begin_inset Flex Code
8374 status collapsed
8375
8376 \begin_layout Plain Layout
8377 -synctex=1
8378 \end_layout
8379
8380 \end_inset
8381
8382 オプションは,gzip圧縮を有効にします.お使いのビューアがgzip圧縮をサポートしていない場合には,代わりに
8383 \begin_inset Flex Code
8384 status collapsed
8385
8386 \begin_layout Plain Layout
8387 -synctex=-1
8388 \end_layout
8389
8390 \end_inset
8391
8392 を使用してください.
8393 \end_layout
8394
8395 \end_inset
8396
8397
8398 \end_layout
8399
8400 \begin_layout Subsection
8401 特定のビューアを設定して使うには
8402 \begin_inset CommandInset label
8403 LatexCommand label
8404 name "subsec:特定のビューアを設定して使うには"
8405
8406 \end_inset
8407
8408
8409 \end_layout
8410
8411 \begin_layout Subsubsection*
8412 Xdvi(全プラットフォーム)
8413 \end_layout
8414
8415 \begin_layout Standard
8416 \SpecialChar LyX
8417 は,
8418 \begin_inset Flex Code
8419 status collapsed
8420
8421 \begin_layout Plain Layout
8422 lyxclient
8423 \end_layout
8424
8425 \end_inset
8426
8427 プログラムを自動的に使うのに必要なフックを,既に提供しているので,
8428 \begin_inset Flex Code
8429 status collapsed
8430
8431 \begin_layout Plain Layout
8432 xdvi
8433 \end_layout
8434
8435 \end_inset
8436
8437 を使用する場合には,DVI遡及検索を実行するのに他にするべきことはありません.使用中の文書を上記で述べたように設定するだけです(遡及検索は,Ctrl-クリックか
8438 ,Mac OS X上ではAlt-クリックで始動します).
8439 \end_layout
8440
8441 \begin_layout Standard
8442 しかし,何らかの理由で,\SpecialChar LyX
8443 と通信するのにソケットではなく命名パイプを使用したい場合には,
8444 \begin_inset Flex MenuItem
8445 status collapsed
8446
8447 \begin_layout Plain Layout
8448 設定\SpecialChar menuseparator
8449 ファイル処理\SpecialChar menuseparator
8450 ファイル書式
8451 \end_layout
8452
8453 \end_inset
8454
8455 のDVIビューアを
8456 \begin_inset Flex Code
8457 status collapsed
8458
8459 \begin_layout Plain Layout
8460 xdvi -editor "lyxeditor.sh %f %l"
8461 \end_layout
8462
8463 \end_inset
8464
8465 (
8466 \begin_inset Flex Code
8467 status collapsed
8468
8469 \begin_layout Plain Layout
8470 lyxeditor.sh
8471 \end_layout
8472
8473 \end_inset
8474
8475 は適切なスクリプト名)に変更してください
8476 \begin_inset Foot
8477 status collapsed
8478
8479 \begin_layout Plain Layout
8480 Mac OS X上では,
8481 \begin_inset Flex Code
8482 status collapsed
8483
8484 \begin_layout Plain Layout
8485 DISPLAY=:0.0 xdvi -editor "lyxeditor.sh %f %l"
8486 \end_layout
8487
8488 \end_inset
8489
8490 としなくてはなりません.
8491 \end_layout
8492
8493 \end_inset
8494
8495 .たとえば,最低限のシェルスクリプトは
8496 \end_layout
8497
8498 \begin_layout LyX-Code
8499 #!/bin/sh
8500 \begin_inset Newline newline
8501 \end_inset
8502
8503 LYXPIPE="/path/to/lyxpipe"
8504 \begin_inset Newline newline
8505 \end_inset
8506
8507 COMMAND="LYXCMD:revdvi:server-goto-file-row:$1 $2"
8508 \begin_inset Newline newline
8509 \end_inset
8510
8511 echo "$COMMAND" > "${LYXPIPE}".in || exit
8512 \begin_inset Newline newline
8513 \end_inset
8514
8515 read TMP < "${LYXPIPE}".out || exit
8516 \end_layout
8517
8518 \begin_layout Standard
8519 のようになります.ここで
8520 \begin_inset Flex Code
8521 status collapsed
8522
8523 \begin_layout Plain Layout
8524 /path/to/lyxpipe
8525 \end_layout
8526
8527 \end_inset
8528
8529 は,
8530 \begin_inset Flex MenuItem
8531 status collapsed
8532
8533 \begin_layout Plain Layout
8534 設定\SpecialChar menuseparator
8535 パス
8536 \end_layout
8537
8538 \end_inset
8539
8540 で指定したLyXServerパイプのパスを指定してください.
8541 \begin_inset Foot
8542 status collapsed
8543
8544 \begin_layout Plain Layout
8545 ソース頒布版の
8546 \begin_inset Flex Code
8547 status collapsed
8548
8549 \begin_layout Plain Layout
8550 development/tools
8551 \end_layout
8552
8553 \end_inset
8554
8555 フォルダには,ユーザが設定した
8556 \emph on
8557 lyxpipe
8558 \emph default
8559 を探し出す
8560 \begin_inset Flex Code
8561 status collapsed
8562
8563 \begin_layout Plain Layout
8564 lyxeditor
8565 \end_layout
8566
8567 \end_inset
8568
8569 スクリプトがあります.
8570 \end_layout
8571
8572 \end_inset
8573
8574
8575 \end_layout
8576
8577 \begin_layout Subsubsection*
8578 MacDviX(Mac OS X)
8579 \end_layout
8580
8581 \begin_layout Standard
8582 \begin_inset Flex Code
8583 status collapsed
8584
8585 \begin_layout Plain Layout
8586 /Applications/MacDviX_Folder/calleditor.script
8587 \end_layout
8588
8589 \end_inset
8590
8591 の終わりに
8592 \end_layout
8593
8594 \begin_layout LyX-Code
8595 /Applications/LyX.app/Contents/MacOS/lyxeditor "$2" $1
8596 \begin_inset Newline newline
8597 \end_inset
8598
8599 exit 1
8600 \end_layout
8601
8602 \begin_layout Standard
8603 という行を付け加えてください.Applicationsフォルダ以外の場所に\SpecialChar LyX
8604 を導入した場合には,それに従って上記の行を修正してください.
8605 \end_layout
8606
8607 \begin_layout Standard
8608 遡及検索は,Alt-クリック(OPTION-クリック)で始動します.
8609 \end_layout
8610
8611 \begin_layout Subsubsection*
8612 Skim(Mac OS X)
8613 \end_layout
8614
8615 \begin_layout Standard
8616 \begin_inset Flex MenuItem
8617 status collapsed
8618
8619 \begin_layout Plain Layout
8620 設定\SpecialChar menuseparator
8621 ファイル処理\SpecialChar menuseparator
8622 ファイル書式\SpecialChar menuseparator
8623 PDF (pdflatex)
8624 \end_layout
8625
8626 \end_inset
8627
8628 のビューア設定に
8629 \begin_inset Flex Code
8630 status collapsed
8631
8632 \begin_layout Plain Layout
8633 open -a Skim.app $$i
8634 \end_layout
8635
8636 \end_inset
8637
8638 と入力し,
8639 \begin_inset Flex MenuItem
8640 status collapsed
8641
8642 \begin_layout Plain Layout
8643 Skim\SpecialChar menuseparator
8644 設定\SpecialChar menuseparator
8645 Sync
8646 \end_layout
8647
8648 \end_inset
8649
8650 でLyXを選択してください.
8651 \end_layout
8652
8653 \begin_layout Standard
8654 遡及検索は,COMMAND-SHIFT-クリックで始動します.
8655 \end_layout
8656
8657 \begin_layout Subsubsection*
8658
8659 \change_inserted -712698321 1500965366
8660
8661 \lang english
8662 Evince (GNOME)
8663 \end_layout
8664
8665 \begin_layout Standard
8666
8667 \change_inserted -712698321 1500965366
8668
8669 \lang english
8670 Reverse search with evince does not work out of the box, but it can be achieved
8671  by means of some third party helper scripts.
8672  Please refer to 
8673 \begin_inset CommandInset href
8674 LatexCommand href
8675 target "http://wiki.lyx.org/LyX/SyncTeX"
8676 literal "false"
8677
8678 \end_inset
8679
8680  for details.
8681 \end_layout
8682
8683 \begin_layout Subsubsection*
8684 Okular (KDE)
8685 \end_layout
8686
8687 \begin_layout Standard
8688 \begin_inset Flex MenuItem
8689 status collapsed
8690
8691 \begin_layout Plain Layout
8692 設定\SpecialChar menuseparator
8693 Okularを設定\SpecialChar ldots
8694 \SpecialChar menuseparator
8695 編集
8696 \end_layout
8697
8698 \end_inset
8699
8700 で「カスタムテキストエディタ」を選択し,コマンドに
8701 \begin_inset Flex Code
8702 status collapsed
8703
8704 \begin_layout Plain Layout
8705 lyxclient -g %f %l
8706 \end_layout
8707
8708 \end_inset
8709
8710 を加えてください.
8711 \end_layout
8712
8713 \begin_layout Standard
8714 遡及検索は,SHIFT-クリックで始動します.
8715 \end_layout
8716
8717 \begin_layout Subsubsection*
8718 Qpdfview (UNIX)
8719 \end_layout
8720
8721 \begin_layout Standard
8722 Qpdfviewは,第0.3.5版以降,Sync\SpecialChar TeX
8723 をサポートしています.
8724 \begin_inset Flex MenuItem
8725 status collapsed
8726
8727 \begin_layout Plain Layout
8728 Edit\SpecialChar menuseparator
8729 Settings\SpecialChar menuseparator
8730 Behavior
8731 \end_layout
8732
8733 \end_inset
8734
8735 を開いて「Source editor」項目の入力フィールドをクリックし,
8736 \begin_inset Flex Code
8737 status collapsed
8738
8739 \begin_layout Plain Layout
8740 lyxclient -g %1 %2
8741 \end_layout
8742
8743 \end_inset
8744
8745 というコマンドを入力してください.
8746 \end_layout
8747
8748 \begin_layout Standard
8749 遡及検索は,ダブルクリックで始動します.
8750 \end_layout
8751
8752 \begin_layout Subsubsection*
8753 YAP(Windows)
8754 \end_layout
8755
8756 \begin_layout Standard
8757 yapを起動し,
8758 \begin_inset Flex MenuItem
8759 status collapsed
8760
8761 \begin_layout Plain Layout
8762 View\SpecialChar menuseparator
8763 Options
8764 \end_layout
8765
8766 \end_inset
8767
8768 メニューを選択し,「Inverse DVI Search」タブを選択します.「New\SpecialChar ldots
8769 」ボタンをクリックして開くウィンドウの「Name:」フィールドに「\SpecialChar LyX
8770
8771  Editor」(または自分の好きな名称)と入力してください.「\SpecialChar ldots
8772 」というラベルのボタンをクリックしてファイルダイアログを開き,バッチファイル
8773 \begin_inset Flex Code
8774 status collapsed
8775
8776 \begin_layout Plain Layout
8777 lyxeditor.bat
8778 \end_layout
8779
8780 \end_inset
8781
8782 (以下参照)のあるディレクトリを見つけます.
8783 \begin_inset Flex Code
8784 status collapsed
8785
8786 \begin_layout Plain Layout
8787 lyxeditor.bat
8788 \end_layout
8789
8790 \end_inset
8791
8792 を選択してプログラムの引数を
8793 \begin_inset Flex Code
8794 status collapsed
8795
8796 \begin_layout Plain Layout
8797 %f %l
8798 \end_layout
8799
8800 \end_inset
8801
8802 と指定してください.
8803 \begin_inset Flex Code
8804 status collapsed
8805
8806 \begin_layout Plain Layout
8807 lyxeditor.bat
8808 \end_layout
8809
8810 \end_inset
8811
8812 は,
8813 \emph on
8814 lyxpipe
8815 \emph default
8816 を通じて\SpecialChar LyX
8817 と通信するためのラッパとして使用され,以下のようになっています.
8818 \end_layout
8819
8820 \begin_layout LyX-Code
8821 @echo off
8822 \begin_inset Newline newline
8823 \end_inset
8824
8825 echo LYXCMD:revdvi:server-goto-file-row:%~1 %2> 
8826 \backslash
8827
8828 \backslash
8829 .
8830 \backslash
8831 pipe
8832 \backslash
8833 lyxpipe.in
8834 \begin_inset Newline newline
8835 \end_inset
8836
8837 type 
8838 \backslash
8839
8840 \backslash
8841 .
8842 \backslash
8843 pipe
8844 \backslash
8845 lyxpipe.out
8846 \end_layout
8847
8848 \begin_layout Standard
8849 \SpecialChar LyX
8850 で指定した\SpecialChar LyX
8851 Serverパイプパスが,
8852 \begin_inset Flex Code
8853 status collapsed
8854
8855 \begin_layout Plain Layout
8856
8857 \backslash
8858
8859 \backslash
8860 .
8861 \backslash
8862 pipe
8863 \backslash
8864 lyxpipe
8865 \end_layout
8866
8867 \end_inset
8868
8869 となっていることを確認するか,
8870 \begin_inset Flex Code
8871 status collapsed
8872
8873 \begin_layout Plain Layout
8874 lyxeditor.bat
8875 \end_layout
8876
8877 \end_inset
8878
8879 ラッパの方を適切に修正してください.
8880 \end_layout
8881
8882 \begin_layout Standard
8883 yapでは,遡及検索はダブルクリックで始動します.
8884 \end_layout
8885
8886 \begin_layout Subsubsection*
8887 SumatraPDF(Windows)
8888 \end_layout
8889
8890 \begin_layout Standard
8891 SumatraPDFを遡及検索で使用するためには,
8892 \begin_inset Flex MenuItem
8893 status collapsed
8894
8895 \begin_layout Plain Layout
8896 設定\SpecialChar menuseparator
8897 ファイル処理\SpecialChar menuseparator
8898 ファイル書式\SpecialChar menuseparator
8899 PDF (pdflatex)
8900 \end_layout
8901
8902 \end_inset
8903
8904 のビューア設定で
8905 \begin_inset Flex Code
8906 status collapsed
8907
8908 \begin_layout Plain Layout
8909 SumatraPDF -inverse-search "lyxeditor.bat "%f" %l"
8910 \end_layout
8911
8912 \end_inset
8913
8914 (
8915 \begin_inset Flex Code
8916 status collapsed
8917
8918 \begin_layout Plain Layout
8919 lyxeditor.bat
8920 \end_layout
8921
8922 \end_inset
8923
8924 は上記のラッパ)と入力してください.SumatraPDF.exeがコマンドPATHにない場合,フルファイル名を使用してください.
8925 \end_layout
8926
8927 \begin_layout Standard
8928 遡及検索はダブルクリックで始動します.
8929 \end_layout
8930
8931 \begin_layout Subsubsection*
8932 YAP(Cygwin)
8933 \end_layout
8934
8935 \begin_layout Standard
8936 まずはじめに,yapがWindows環境での既定のDVIビューアになっていることを確認してから,yapを起動し,
8937 \begin_inset Flex MenuItem
8938 status collapsed
8939
8940 \begin_layout Plain Layout
8941 View\SpecialChar menuseparator
8942 Options
8943 \end_layout
8944
8945 \end_inset
8946
8947 メニューを選択し,「Inverse DVI Search」タブを選択します.「New\SpecialChar ldots
8948 」ボタンをクリックして開くウィンドウの「Name:」フィールドに「\SpecialChar LyX
8949
8950  Editor」(または自分の好きな名称)と入力してください.「\SpecialChar ldots
8951 」というラベルのボタンをクリックしてファイルダイアログを開き,バッチファイル
8952 \begin_inset Flex Code
8953 status collapsed
8954
8955 \begin_layout Plain Layout
8956 lyxeditor.exe
8957 \end_layout
8958
8959 \end_inset
8960
8961 プログラム(これは,Cygwinでは既定で\SpecialChar LyX
8962 実行ファイルとともに導入されます)のあるディレクトリを見つけます.
8963 \begin_inset Flex Code
8964 status collapsed
8965
8966 \begin_layout Plain Layout
8967 lyxeditor.exe
8968 \end_layout
8969
8970 \end_inset
8971
8972 を選択してプログラムの引数を
8973 \begin_inset Flex Code
8974 status collapsed
8975
8976 \begin_layout Plain Layout
8977 -g %f %l
8978 \end_layout
8979
8980 \end_inset
8981
8982 と指定してください.これによって,\SpecialChar LyX
8983 との通信に
8984 \emph on
8985 lyxsocket
8986 \emph default
8987 が使用されるようになります.何らかの理由で
8988 \emph on
8989 lyxpipe
8990 \emph default
8991 を使用したい場合には,
8992 \begin_inset Flex Code
8993 status collapsed
8994
8995 \begin_layout Plain Layout
8996 -g
8997 \end_layout
8998
8999 \end_inset
9000
9001 オプションを削除して,\SpecialChar LyX
9002 設定で\SpecialChar LyX
9003 Serverパイプパスを指定することを忘れないでください.
9004 \end_layout
9005
9006 \begin_layout Standard
9007 yapでは,遡及検索はダブルクリックで始動します.
9008 \end_layout
9009
9010 \begin_layout Subsubsection*
9011 SumatraPDF(Cygwin)
9012 \end_layout
9013
9014 \begin_layout Standard
9015 SumatraPDFを遡及検索で使用するためには,
9016 \begin_inset Flex MenuItem
9017 status collapsed
9018
9019 \begin_layout Plain Layout
9020 設定\SpecialChar menuseparator
9021 ファイル処理\SpecialChar menuseparator
9022 ファイル書式\SpecialChar menuseparator
9023 PDF (pdflatex)
9024 \end_layout
9025
9026 \end_inset
9027
9028 のビューア設定で
9029 \begin_inset Flex Code
9030 status collapsed
9031
9032 \begin_layout Plain Layout
9033 SumatraPDF.sh
9034 \end_layout
9035
9036 \end_inset
9037
9038 と入力してください.ここで
9039 \begin_inset Flex Code
9040 status collapsed
9041
9042 \begin_layout Plain Layout
9043 SumatraPDF.sh
9044 \end_layout
9045
9046 \end_inset
9047
9048 は以下のようなスクリプトです(お使いのコマンドパスに置きます.
9049 \begin_inset Flex Code
9050 status collapsed
9051
9052 \begin_layout Plain Layout
9053 /usr/local/bin
9054 \end_layout
9055
9056 \end_inset
9057
9058 がもっとも良い選択肢でしょう).
9059 \end_layout
9060
9061 \begin_layout LyX-Code
9062 #!/bin/bash
9063 \begin_inset Newline newline
9064 \end_inset
9065
9066 cd $(dirname $1)
9067 \begin_inset Newline newline
9068 \end_inset
9069
9070 SumatraPDF -inverse-search "lyxeditor -g %f %l" $(basename $1)
9071 \end_layout
9072
9073 \begin_layout Standard
9074 SumatraPDFは,Windowsネイティブのアプリケーションであり,\SpecialChar LyX
9075 のCygwin版が使用するPOSIXパスを理解しないので,このラッパスクリプトが必要と
9076 なります.SumatraPDF.exeがお使いのコマンドパスにない場合は,上記のスクリプトでPOSIXのフルパスを使用してください.
9077 \begin_inset Flex Code
9078 status collapsed
9079
9080 \begin_layout Plain Layout
9081 -g
9082 \end_layout
9083
9084 \end_inset
9085
9086
9087 \emph on
9088 lyxsocket
9089 \emph default
9090 経由の通信を有効にします.ここでも,
9091 \emph on
9092 lyxpipe
9093 \emph default
9094 を使用したい場合には,
9095 \begin_inset Flex Code
9096 status collapsed
9097
9098 \begin_layout Plain Layout
9099 -g
9100 \end_layout
9101
9102 \end_inset
9103
9104 オプションを削除して,\SpecialChar LyX
9105 設定で\SpecialChar LyX
9106 Serverパイプパスを指定することを忘れないでください.
9107 \end_layout
9108
9109 \begin_layout Standard
9110 遡及検索はダブルクリックで始動します.
9111 \end_layout
9112
9113 \begin_layout Section
9114 順検索
9115 \end_layout
9116
9117 \begin_layout Standard
9118 順検索とは,名前が示すとおり,いわば遡及検索の「逆」を意味します.すなわち,\SpecialChar LyX
9119 内部から,ビューアに特定の箇所を表示させることを可能にします.(以下に説明するように
9120 )もし順検索の準備ができていれば,カーソルを\SpecialChar LyX
9121 文書の好きなところに置いて,
9122 \begin_inset Flex MenuItem
9123 status collapsed
9124
9125 \begin_layout Plain Layout
9126 移動\SpecialChar menuseparator
9127 順検索
9128 \end_layout
9129
9130 \end_inset
9131
9132 を選択すると(あるいはマウスの右クリックで表示される文脈依存メニューから
9133 \begin_inset Flex MenuItem
9134 status collapsed
9135
9136 \begin_layout Plain Layout
9137 順検索
9138 \end_layout
9139
9140 \end_inset
9141
9142 を選択してもよい),ビューアも同じ箇所に移動します.もちろん,使用しているビューアが,この機能をサポートしていなくてはなりません.
9143 \end_layout
9144
9145 \begin_layout Standard
9146 順検索を有効にするためには,生成されたPDF/DVI出力ファイルに,\SpecialChar TeX
9147 ソースに関する情報を追加する必要があります.これは,第
9148 \begin_inset CommandInset ref
9149 LatexCommand ref
9150 reference "subsec:遡及検索"
9151
9152 \end_inset
9153
9154 節に述べられている方法で実行することができます.
9155 \end_layout
9156
9157 \begin_layout Standard
9158 次に,
9159 \begin_inset Flex MenuItem
9160 status collapsed
9161
9162 \begin_layout Plain Layout
9163 ツール\SpecialChar menuseparator
9164 設定\SpecialChar menuseparator
9165 出力\SpecialChar menuseparator
9166 一般
9167 \end_layout
9168
9169 \end_inset
9170
9171 で自分の使うビューアを利用するように,\SpecialChar LyX
9172 を設定する必要があります.いくつかのビューアについては,試験済みの設定が前もって準備されており,ドロップダウンリストから選
9173 択することができます.これらの設定の何れも意にそぐわない場合には,ご自身で適切な設定を見つけ出して入力しなくてはなりません.定義文法は,以下の変数を使用します.
9174 \end_layout
9175
9176 \begin_layout Itemize
9177 \begin_inset Flex Code
9178 status collapsed
9179
9180 \begin_layout Plain Layout
9181 $$n
9182 \end_layout
9183
9184 \end_inset
9185
9186 :行番号
9187 \end_layout
9188
9189 \begin_layout Itemize
9190 \begin_inset Flex Code
9191 status collapsed
9192
9193 \begin_layout Plain Layout
9194 $$t
9195 \end_layout
9196
9197 \end_inset
9198
9199 :書き出された(一時).texファイル名(パスを除く)
9200 \end_layout
9201
9202 \begin_layout Itemize
9203 \begin_inset Flex Code
9204 status collapsed
9205
9206 \begin_layout Plain Layout
9207 $$f
9208 \end_layout
9209
9210 \end_inset
9211
9212 :書き出された(一時).texファイル名(パスを含む)
9213 \end_layout
9214
9215 \begin_layout Itemize
9216 \begin_inset Flex Code
9217 status collapsed
9218
9219 \begin_layout Plain Layout
9220 $$o
9221 \end_layout
9222
9223 \end_inset
9224
9225 :書き出された出力ファイル名(どちらが一時ディレクトリに存在するかに依存して,dviあるいはpdf).
9226 \end_layout
9227
9228 \begin_layout Standard
9229
9230 \change_inserted -712698321 1500965418
9231 \begin_inset Note Note
9232 status open
9233
9234 \begin_layout Plain Layout
9235
9236 \change_inserted -712698321 1500965453
9237
9238 \lang english
9239 [Revision 2017-07-25]
9240 \end_layout
9241
9242 \begin_layout Plain Layout
9243
9244 \change_inserted -712698321 1500965440
9245
9246 \lang english
9247 Note that only some of the viewers provide full and usable forward search
9248  functionality out of the box, among them yap, xdvi, okular
9249 \begin_inset Foot
9250 status collapsed
9251
9252 \begin_layout Plain Layout
9253
9254 \change_inserted -712698321 1500965419
9255
9256 \lang english
9257 You might want to set 
9258 \begin_inset Flex Code
9259 status collapsed
9260
9261 \begin_layout Plain Layout
9262
9263 \change_inserted -712698321 1500965419
9264
9265 \lang english
9266 okular –unique
9267 \end_layout
9268
9269 \end_inset
9270
9271  in 
9272 \begin_inset Flex Noun
9273 status collapsed
9274
9275 \begin_layout Plain Layout
9276
9277 \change_inserted -712698321 1500965419
9278
9279 \lang english
9280 Tools\SpecialChar menuseparator
9281 Preferences\SpecialChar menuseparator
9282 File Handling\SpecialChar menuseparator
9283 File
9284 \begin_inset space ~
9285 \end_inset
9286
9287 Formats
9288 \end_layout
9289
9290 \end_inset
9291
9292
9293 \end_layout
9294
9295 \end_inset
9296
9297 , qpdfview, and SumatraPDF
9298 \begin_inset Foot
9299 status collapsed
9300
9301 \begin_layout Plain Layout
9302
9303 \change_inserted -712698321 1500965419
9304
9305 \lang english
9306 SumatraPDF can also use DDE commands through the external program CMCDDE
9307  — downloadable from 
9308 \begin_inset CommandInset href
9309 LatexCommand href
9310 target "http://www.istri.fr/spip/zip/CMCDDE.zip"
9311 literal "false"
9312
9313 \end_inset
9314
9315
9316 \end_layout
9317
9318 \end_inset
9319
9320 .
9321  Others, such as evince
9322 \begin_inset Foot
9323 status collapsed
9324
9325 \begin_layout Plain Layout
9326 \paragraph_spacing single
9327
9328 \change_inserted -712698321 1500965419
9329
9330 \lang english
9331 Forward search with evince can be achieved by means of third party helper
9332  scripts.
9333  Please refer to 
9334 \begin_inset CommandInset href
9335 LatexCommand href
9336 target "http://wiki.lyx.org/LyX/SyncTeX"
9337 literal "false"
9338
9339 \end_inset
9340
9341  for details.
9342 \end_layout
9343
9344 \end_inset
9345
9346 , require some extra tools in order to use forward search.
9347  While many of the widespread PDF viewers (most notably Adobe Reader) do
9348  not support forward search at all, some other viewers – e.
9349 \begin_inset space \thinspace{}
9350 \end_inset
9351
9352 g.
9353   xpdf – allow at least to reload the document and jump to a specific page
9354  of the file, so you can at least navigate 
9355 \begin_inset Quotes eld
9356 \end_inset
9357
9358 near
9359 \begin_inset Quotes erd
9360 \end_inset
9361
9362 .
9363  This latter functionality is provided by an external call of synctex (see
9364  the predefined example configurations).
9365 \change_unchanged
9366
9367 \end_layout
9368
9369 \end_inset
9370
9371
9372 \change_unchanged
9373 yap・xdvi・okular
9374 \begin_inset Foot
9375 status collapsed
9376
9377 \begin_layout Plain Layout
9378 \begin_inset Flex MenuItem
9379 status collapsed
9380
9381 \begin_layout Plain Layout
9382 ツール\SpecialChar menuseparator
9383 設定\SpecialChar menuseparator
9384 ファイル処理\SpecialChar menuseparator
9385 ファイル形式
9386 \end_layout
9387
9388 \end_inset
9389
9390
9391 \begin_inset Flex Code
9392 status collapsed
9393
9394 \begin_layout Plain Layout
9395 okular –unique
9396 \end_layout
9397
9398 \end_inset
9399
9400 と設定すると良いかもしれません.
9401 \end_layout
9402
9403 \end_inset
9404
9405 ・qpdfview・Sumatra PDFなど,一部のビューアでしか,完全な順検索機能は提供されていないことに注意してください
9406 \begin_inset Foot
9407 status collapsed
9408
9409 \begin_layout Plain Layout
9410 SumatraPDFも,外部プログラムCMCDDEを通じて,DDEコマンドを使用することができます.CMCDDEは,
9411 \begin_inset CommandInset href
9412 LatexCommand href
9413 target "http://www.istri.fr/spip/zip/CMCDDE.zip"
9414 literal "false"
9415
9416 \end_inset
9417
9418 からダウンロードすることができます.
9419 \end_layout
9420
9421 \end_inset
9422
9423 .広く使われているPDFビューアの多く(特にAdobe Reader)は,順検索を全く提供していませんが,他の一部のビューア(たとえばEvinceやxpdf)で
9424 は,少なくとも,文書を読み込み直したり,ファイルの特定ページに移動することはできますので,少なくとも「近く」には移動することができます.この後者の機能は,syn
9425 ctexの外部コールで提供されています(事前に用意されている用例をご覧ください).
9426 \end_layout
9427
9428 \begin_layout Standard
9429 順検索は,DVI出力とPDF出力の双方で動作します.\SpecialChar LyX
9430 は,過去にあなたが使用したプレビュー形式をチェックして(つまり,一時ディレクトリにどちらの形式が存在するかを
9431 チェックして),その形式に適切な設定を選択します.
9432 \end_layout
9433
9434 \begin_layout Chapter
9435 特別な文書クラス
9436 \end_layout
9437
9438 \begin_layout Section
9439 A&Aの論文
9440 \end_layout
9441
9442 \begin_layout Standard
9443
9444 \noun on
9445 Peter Sütterlin文
9446 \end_layout
9447
9448 \begin_layout Subsection
9449 はじめに
9450 \end_layout
9451
9452 \begin_layout Standard
9453 この節では,文書クラス
9454 \family typewriter
9455 aa.cls
9456 \family default
9457 第5.01版を使用して科学雑誌
9458 \emph on
9459 Astronomy and Astrophysics
9460 \emph default
9461 (『天文学と宇宙物理学』: 
9462 \begin_inset Flex URL
9463 status collapsed
9464
9465 \begin_layout Plain Layout
9466
9467 http://www.edpsciences.fr/aa/
9468 \end_layout
9469
9470 \end_inset
9471
9472 )に投稿する論文を執筆するための\SpecialChar LyX
9473 の使用法を説明します.このパッケージは,FTPサイト
9474 \end_layout
9475
9476 \begin_layout Standard
9477 \align center
9478 \begin_inset VSpace medskip
9479 \end_inset
9480
9481
9482 \begin_inset Flex URL
9483 status collapsed
9484
9485 \begin_layout Plain Layout
9486
9487 ftp://ftp.edpsciences.org/pub/aa/readme.html
9488 \end_layout
9489
9490 \end_inset
9491
9492
9493 \begin_inset VSpace medskip
9494 \end_inset
9495
9496
9497 \end_layout
9498
9499 \begin_layout Standard
9500 \noindent
9501 からダウンロードすることができます.
9502 \end_layout
9503
9504 \begin_layout Standard
9505 このパッケージには取扱説明書がついていますが,本節は,本来の取扱説明書の代わりとなることを意図したものではなく,あなたの論文を正しい様式に整えるための小さな案内
9506 書であるに過ぎません.
9507 \end_layout
9508
9509 \begin_layout Standard
9510 この学術誌の出版元は,2001年1月1日以降,Springer社からEDP Science社に変更されていることにご注意ください.この出版社の変更によって,th
9511 esaurusコマンドの廃止など,スタイルファイルに若干の変更が加わっています.\SpecialChar LyX
9512 のaaクラスは,スタイルファイルの最新版(第5.01版)をサポートしています.もし
9513 古い版が装備されている場合には,更新してください.互換性のために,古い(第4版)レイアウトは,
9514 \family sans
9515 article (A&A V4)
9516 \family default
9517 として残してあります.
9518 \family typewriter
9519 $\SpecialChar LyX
9520 Dir/layouts/aapaper.layout
9521 \family default
9522 のコメントをご参照ください.
9523 \end_layout
9524
9525 \begin_layout Subsection
9526 最初の一歩
9527 \end_layout
9528
9529 \begin_layout Standard
9530 \SpecialChar LyX
9531 とともに頒布されている例示用のひな型を土台として,書き始めることをお勧めします.ひな型を使用しない場合には,以下の設定にしてください.
9532 \end_layout
9533
9534 \begin_layout Itemize
9535
9536 \family sans
9537 文書\SpecialChar menuseparator
9538 設定
9539 \family default
9540 ダイアログで
9541 \family sans
9542 article (A&A)
9543 \family default
9544 を選択してください(まぁ,これは自明ですね).
9545 \end_layout
9546
9547 \begin_layout Itemize
9548
9549 \family sans
9550 ページレイアウト
9551 \family default
9552 オプションは変更しないで,既定値のままに設定しておいてください.全体のレイアウトはマクロが行うので,何も変更してはいけません.
9553 \end_layout
9554
9555 \begin_layout Subsection
9556 へッダ部
9557 \end_layout
9558
9559 \begin_layout Standard
9560 最初に入力すべきものは,へッダ情報です.ヘッダ情報には,以下の7つの項目があり,いくつかは必須ではありません.
9561 \end_layout
9562
9563 \begin_layout Itemize
9564
9565 \family sans
9566 タイトル
9567 \family default
9568 :[必須]
9569 \end_layout
9570
9571 \begin_layout Itemize
9572
9573 \family sans
9574 サブタイトル
9575 \family default
9576 :[非必須]
9577 \end_layout
9578
9579 \begin_layout Itemize
9580
9581 \family sans
9582 著者
9583 \family default
9584 :[必須]
9585 \end_layout
9586
9587 \begin_layout Itemize
9588
9589 \family sans
9590 住所
9591 \family default
9592 :[必須]
9593 \end_layout
9594
9595 \begin_layout Itemize
9596
9597 \family sans
9598 抜き刷り
9599 \family default
9600 :[非必須]著者が複数いる場合,抜き刷りの送付を依頼するのに連絡すべき人を記す.
9601 \end_layout
9602
9603 \begin_layout Itemize
9604
9605 \family sans
9606 メール
9607 \family default
9608 :[非必須]連絡用の電子メールアドレス.
9609 \end_layout
9610
9611 \begin_layout Itemize
9612
9613 \family sans
9614 日付
9615 \family default
9616 :[必須]推奨されるフォーマットは,
9617 \family typewriter
9618 Received: <日付>; Accepted <日付>
9619 \family default
9620 です.
9621 \end_layout
9622
9623 \begin_layout Standard
9624
9625 \family typewriter
9626
9627 \backslash
9628 maketitle
9629 \family default
9630 コマンドは,へッダが終了した場所に,\SpecialChar LyX
9631 が自動的に入れてくれるので,手動で挿入する必要はありません.各項目の順序は関係ありませんが,見た目のためと,実際の文書のレイ
9632 アウトに合わせるために,上記の順序を維持しておくと良いでしょう.
9633 \end_layout
9634
9635 \begin_layout Standard
9636 現住所の付記などのために,へッダ部に脚注を挿入したい場合には,
9637 \family sans
9638 挿入\SpecialChar menuseparator
9639 脚注
9640 \family default
9641 を使用して標準の脚注を挿入してください.この場合には,\SpecialChar LyX
9642 は自動的に
9643 \family typewriter
9644
9645 \backslash
9646 thanks{}
9647 \family default
9648 を使用します.
9649 \end_layout
9650
9651 \begin_layout Standard
9652 これらのトピックの他に,このマクロは,\SpecialChar LyX
9653 が対応していない,以下の3つの\SpecialChar LaTeX
9654 コマンドを使用します.
9655 \end_layout
9656
9657 \begin_layout Itemize
9658 複数の著者名あるいは所属名を区切るための
9659 \family typewriter
9660
9661 \backslash
9662 and
9663 \end_layout
9664
9665 \begin_layout Itemize
9666 著者と所属の対応付けをするための
9667 \family typewriter
9668
9669 \backslash
9670 inst{<番号>}
9671 \family default
9672 .所属は,
9673 \family sans
9674 住所
9675 \family default
9676 フィールドに現れる順に番号が付けられるので,各著者に番号マーカーを置く必要があります.
9677 \end_layout
9678
9679 \begin_layout Itemize
9680
9681 \family typewriter
9682
9683 \backslash
9684 email{アドレス}
9685 \family default
9686 は,至急連絡用に電子メールアドレスを付記します.
9687 \end_layout
9688
9689 \begin_layout Standard
9690 いずれの場合にも,\SpecialChar LyX
9691 中に対応したコマンドを入力し,\SpecialChar LaTeX
9692 コードとしてマークしてください.
9693 \begin_inset Flex Code
9694 status collapsed
9695
9696 \begin_layout Plain Layout
9697 $\SpecialChar LyX
9698 Dir/examples
9699 \end_layout
9700
9701 \end_inset
9702
9703 にある用例を参照してください.
9704 \end_layout
9705
9706 \begin_layout Subsection
9707 概要
9708 \end_layout
9709
9710 \begin_layout Standard
9711 概要は,へッダ部の直後に置きます.第5版から,概要は環境からコマンドに変更され,一段落に限るという制限が加えられました.さらに,ここにはキーワードを含む項目を入
9712 れなくてはなりません.これは,まだ\SpecialChar LyX
9713 では実装されていないため,\SpecialChar LaTeX
9714 コマンド
9715 \family typewriter
9716
9717 \backslash
9718 keywords{}
9719 \family default
9720 を手動で入力し,\SpecialChar LaTeX
9721 コードとしてマークする必要があります.用例にある論文を参照してください.
9722 \end_layout
9723
9724 \begin_layout Subsection
9725 サポートされる環境
9726 \end_layout
9727
9728 \begin_layout Standard
9729 A&A論文用レイアウトでは,文章を構造化するために,以下の環境がサポートされています.
9730 \end_layout
9731
9732 \begin_layout Itemize
9733
9734 \family sans
9735 標準
9736 \end_layout
9737
9738 \begin_layout Itemize
9739
9740 \family sans
9741
9742 \end_layout
9743
9744 \begin_layout Itemize
9745
9746 \family sans
9747 小節
9748 \end_layout
9749
9750 \begin_layout Itemize
9751
9752 \family sans
9753 小々節
9754 \end_layout
9755
9756 \begin_layout Itemize
9757
9758 \family sans
9759 箇条書き(記号)
9760 \end_layout
9761
9762 \begin_layout Itemize
9763
9764 \family sans
9765 箇条書き(連番)
9766 \end_layout
9767
9768 \begin_layout Itemize
9769
9770 \family sans
9771 箇条書き(記述)
9772 \end_layout
9773
9774 \begin_layout Itemize
9775
9776 \family sans
9777 キャプション
9778 \end_layout
9779
9780 \begin_layout Itemize
9781
9782 \family sans
9783 概要
9784 \end_layout
9785
9786 \begin_layout Itemize
9787
9788 \family sans
9789 謝辞(Acknowledgment)
9790 \end_layout
9791
9792 \begin_layout Itemize
9793
9794 \family sans
9795 書誌情報
9796 \end_layout
9797
9798 \begin_layout Itemize
9799
9800 \family sans
9801 \SpecialChar LaTeX
9802
9803 \end_layout
9804
9805 \begin_layout Subsection
9806 \SpecialChar LyX
9807 でサポートされていないコマンド
9808 \end_layout
9809
9810 \begin_layout Standard
9811 \SpecialChar LyX
9812
9813 \family sans
9814 article (A&A)
9815 \family default
9816 レイアウトでは,まだサポートされていないコマンドがあります.そのうちいくつかは既に紹介しましたが,網羅するために,以下にすべて列挙しておきます.
9817 \end_layout
9818
9819 \begin_layout Itemize
9820
9821 \family typewriter
9822
9823 \backslash
9824 and
9825 \end_layout
9826
9827 \begin_layout Itemize
9828
9829 \family typewriter
9830
9831 \backslash
9832 email
9833 \end_layout
9834
9835 \begin_layout Itemize
9836
9837 \family typewriter
9838
9839 \backslash
9840 appendix
9841 \end_layout
9842
9843 \begin_layout Itemize
9844
9845 \family typewriter
9846
9847 \backslash
9848 authorrunning
9849 \end_layout
9850
9851 \begin_layout Itemize
9852
9853 \family typewriter
9854
9855 \backslash
9856 inst{}
9857 \end_layout
9858
9859 \begin_layout Itemize
9860
9861 \family typewriter
9862
9863 \backslash
9864 keywords{}
9865 \end_layout
9866
9867 \begin_layout Itemize
9868
9869 \family typewriter
9870
9871 \backslash
9872 object{}
9873 \end_layout
9874
9875 \begin_layout Itemize
9876
9877 \family typewriter
9878
9879 \backslash
9880 titlerunning{}
9881 \end_layout
9882
9883 \begin_layout Standard
9884 これらのコマンドのいずれかを使いたい場合には,自分で入力する必要があります.
9885 \series bold
9886 これを\SpecialChar LaTeX
9887 コマンドとしてマークすることを忘れないで下さい.
9888 \end_layout
9889
9890 \begin_layout Subsection
9891 図フロートおよび表フロート
9892 \end_layout
9893
9894 \begin_layout Standard
9895 \SpecialChar LyX
9896 は,必要なフロート環境
9897 \family sans
9898 figure
9899 \family default
9900
9901 \family sans
9902 figure*
9903 \family default
9904
9905 \family sans
9906 table
9907 \family default
9908
9909 \family sans
9910 table*
9911 \family default
9912 をサポートしていますので,ここでは詳しい説明はしません.
9913 \emph on
9914 ユーザーの手引き
9915 \emph default
9916 をご覧ください.ただ,表は左揃えにしなくてはならないことに注意して下さい.そうするためには,表を選択して,
9917 \family sans
9918 編集\SpecialChar menuseparator
9919 段落設定
9920 \family default
9921 で配置を変更してください.
9922 \end_layout
9923
9924 \begin_layout Standard
9925 一つだけ,特別なものがあります.それは,図横にキャプションを配置する図です.この図を作成するには,以下のようにしなくてはなりません.
9926 \end_layout
9927
9928 \begin_layout Enumerate
9929
9930 \family sans
9931 挿入\SpecialChar menuseparator
9932 フロート\SpecialChar menuseparator
9933
9934 \family default
9935 を使って,幅広の図フロートを作成します.それから,図フロートのラベルを右クリックして
9936 \begin_inset Flex MenuItem
9937 status collapsed
9938
9939 \begin_layout Plain Layout
9940 設定\SpecialChar ldots
9941
9942 \end_layout
9943
9944 \end_inset
9945
9946 を選択し,それで開かれる
9947 \family sans
9948 フロートの設定
9949 \family default
9950 ダイアログで
9951 \family sans
9952 段をまたぐ
9953 \family default
9954 を有効にして,
9955 \family sans
9956 OK
9957 \family default
9958 ボタンを押します.
9959 \end_layout
9960
9961 \begin_layout Enumerate
9962 キャプション文を入力します.
9963 \end_layout
9964
9965 \begin_layout Enumerate
9966 キャプションの前にカーソルを移動し,
9967 \family sans
9968 Return
9969 \family default
9970 を押して,カーソルをキャプションの上に移動します.
9971 \end_layout
9972
9973 \begin_layout Enumerate
9974 図を挿入します.
9975 \end_layout
9976
9977 \begin_layout Enumerate
9978 カーソルを図の後ろに置いて,
9979 \family sans
9980 挿入\SpecialChar menuseparator
9981 整形\SpecialChar menuseparator
9982 水平方向の空白
9983 \family default
9984 を選択して
9985 \family sans
9986 水平方向の空白の設定
9987 \family default
9988 ダイアログを開き,
9989 \family sans
9990 空白
9991 \family default
9992 ドロップダウンから
9993 \family sans
9994 水平フィル
9995 \family default
9996 を選択して,水平フィルを挿入します.
9997 \end_layout
9998
9999 \begin_layout Enumerate
10000
10001 \family sans
10002 挿入\SpecialChar menuseparator
10003 TeXコード
10004 \family default
10005 を選択して,\SpecialChar TeX
10006 差込枠を挿入します.
10007 \end_layout
10008
10009 \begin_layout Enumerate
10010 \SpecialChar TeX
10011 差込枠中に
10012 \family typewriter
10013
10014 \backslash
10015 parbox[b]{55mm}{
10016 \family default
10017 と入力します.
10018 \series bold
10019 ここでは波括弧を閉じないでください.
10020 \end_layout
10021
10022 \begin_layout Enumerate
10023 カーソルをキャプション文の後ろに移動し,
10024 \family sans
10025 挿入\SpecialChar menuseparator
10026 TeXコード
10027 \family default
10028 を選択して,別の\SpecialChar TeX
10029 差込枠を挿入し,その中に閉じ括弧を入力します .
10030 \end_layout
10031
10032 \begin_layout Standard
10033 例示用論文中の図もご参照ください.
10034 \end_layout
10035
10036 \begin_layout Subsection
10037 Refereeレイアウト
10038 \end_layout
10039
10040 \begin_layout Standard
10041 投稿用には,論文を特別なダブルスペースレイアウトに整形しなくてはなりません.このためには,文書クラスに
10042 \family typewriter
10043 referee
10044 \family default
10045 オプションを与える必要があります.これは,
10046 \family sans
10047 文書\SpecialChar menuseparator
10048 設定
10049 \family default
10050 ダイアログの
10051 \family sans
10052 任意設定
10053 \family default
10054 クラスオプションフィールドを使って行うことができます.この欄に
10055 \family typewriter
10056 referee
10057 \family default
10058 と云う文字列を入力してください.
10059 \end_layout
10060
10061 \begin_layout Subsection
10062 例示用論文
10063 \end_layout
10064
10065 \begin_layout Standard
10066
10067 \family sans
10068 Examples
10069 \family default
10070 ディレクトリには,\SpecialChar LyX
10071 で書かれた例示用論文が収録されています.これは,元のマクロパッケージの例示用論文を\SpecialChar LyX
10072 用に直したものです.これはヒントを得るために使用したり,元の
10073  \SpecialChar LaTeX
10074 コードと\SpecialChar LyX
10075 での書き方の比較に使ったりしてください.
10076 \end_layout
10077
10078 \begin_layout Section
10079 AAS\SpecialChar TeX
10080
10081 \end_layout
10082
10083 \begin_layout Standard
10084
10085 \noun on
10086 Mike Ressler
10087 \noun default
10088
10089 \end_layout
10090
10091 \begin_layout Subsection
10092 はじめに
10093 \end_layout
10094
10095 \begin_layout Standard
10096 AAS\SpecialChar TeX
10097 は,American Astronomical Society(アメリカ天文学会)が発行するAstrophysical Journal(宇宙物理学雑誌)同
10098 誌のLettersとSupplementを含む)・Astronomical Journal(天文学雑誌)・Publications of the
10099  Astronomical Society of the Pacific(太平洋天文学会誌)三誌への電子投稿を可能にするために,同学会が作成したマクロ集です.\SpecialChar LyX
10100
10101 ,これらの文書を生成する上で,なかでも数式・引用・画像処理能力において,優れたツールであることが認識されています.\SpecialChar LyX
10102 は,同マクロ第5.0版以降を必要としており,でき
10103 ればここで説明されている第5.2版以降が望まれます.第5.0版未満の版は,\SpecialChar LaTeX
10104 2.09で使用するよう企図されているため,根本的に\SpecialChar LyX
10105 とは互換性がありません.AAS\SpecialChar TeX
10106 パッケージは
10107 ,以下のAAS\SpecialChar TeX
10108 ウェブサイトからダウンロードできるでしょう.
10109 \end_layout
10110
10111 \begin_layout Standard
10112 \align center
10113 \begin_inset VSpace medskip
10114 \end_inset
10115
10116
10117 \begin_inset Flex URL
10118 status collapsed
10119
10120 \begin_layout Plain Layout
10121
10122 https://aas.org/aastex/aastex-downloads
10123 \end_layout
10124
10125 \end_inset
10126
10127
10128 \begin_inset VSpace medskip
10129 \end_inset
10130
10131
10132 \end_layout
10133
10134 \begin_layout Standard
10135 パッケージ中には,完備したユーザーの手引きが収録されていますので,\SpecialChar LyX
10136 で論文を書き始める前に,その中身を完全に理解しておく必要があります.\SpecialChar LyX
10137 は,AASTeXの全コマン
10138 ドを理解する必然性をなくすものではなく,すべてを手入力する苦労を減らすだけです.仕上がりの\SpecialChar LaTeX
10139 文書が,論文を投稿しようとしているジャーナルの要求事項に完全に合致して
10140 いることを確認するのは,あなたの責任です.
10141 \end_layout
10142
10143 \begin_layout Subsection
10144 新しい論文を書き始める
10145 \end_layout
10146
10147 \begin_layout Standard
10148 論文を書き始めるには,AAS\SpecialChar TeX
10149 ひな型ファイルを土台に始めることを強くお勧めします.
10150 \begin_inset Flex MenuItem
10151 status collapsed
10152
10153 \begin_layout Plain Layout
10154 ファイル\SpecialChar menuseparator
10155 新規(ひな型使用)
10156 \end_layout
10157
10158 \end_inset
10159
10160 をクリックして,新しいファイル名を入力し,ひな型
10161 \family typewriter
10162 aastex.lyx
10163 \family default
10164 を選んでください.これには,論文原稿のほとんどに共通して使われるフィールドが書き込まれています.書き込まれている文字列(括弧
10165 \family typewriter
10166 <>
10167 \family default
10168 を含む)を正しい情報で上書きしてください.AAS\SpecialChar TeX
10169 コマンド・AAS\SpecialChar TeX
10170 環境の多くは,\SpecialChar LyX
10171 中で直接実行することができますが,特に
10172 \family typewriter
10173
10174 \backslash
10175 altaffilmark
10176 \family default
10177
10178 \family typewriter
10179
10180 \backslash
10181 altaffiltext
10182 \family default
10183 のようにできないものもあります.この二つのコマンドは,ひな型ファイルを開いたとき,赤色に表示されているのですぐ目に入ることでしょう.このようなコマンドは,直接L
10184 a\SpecialChar TeX
10185 コードを入力して,それを\SpecialChar TeX
10186 コードとしてマークしなければなりません.このようなコマンドは,\SpecialChar TeX
10187 コードあるいはEvil Red Text(邪悪な赤い文)と呼ばれます.A
10188 AS\SpecialChar TeX
10189 文書に必要とされる \SpecialChar TeX
10190 コードを最小にするよう努力はしていますが,まだ望まれるほどにはなっていません.
10191 \end_layout
10192
10193 \begin_layout Subsection
10194 論文を書き終わったら
10195 \end_layout
10196
10197 \begin_layout Standard
10198 論文を満足する水準で書き終え,プレビューや印刷が正しく為されているとしても,まだ学術誌に投稿する前にしなくてはならない「後処理」が残されています.
10199 \end_layout
10200
10201 \begin_layout Enumerate
10202 論文を \SpecialChar LaTeX
10203 ファイルとして書き出します(
10204 \family sans
10205 ファイル\SpecialChar menuseparator
10206 書き出し\SpecialChar menuseparator
10207 LateX
10208 \family default
10209 ).
10210 \end_layout
10211
10212 \begin_layout Enumerate
10213 出力した
10214 \family typewriter
10215 .tex
10216 \family default
10217 ファイルを好きなエディタで編集します.
10218 \end_layout
10219
10220 \begin_deeper
10221 \begin_layout Enumerate
10222
10223 \family typewriter
10224
10225 \backslash
10226 documentclass
10227 \family default
10228 コマンドよりも前のコメント行を削除します.
10229 \end_layout
10230
10231 \begin_layout Enumerate
10232
10233 \family typewriter
10234
10235 \backslash
10236 usepackage...{fontenc}
10237 \family default
10238 という行があれば(通常は
10239 \family typewriter
10240
10241 \backslash
10242 documentclass
10243 \family default
10244 の直後にあります)削除します.また,
10245 \family typewriter
10246
10247 \backslash
10248 secnumdepth
10249 \family default
10250 行があれば,これも削除します.
10251 \end_layout
10252
10253 \begin_layout Enumerate
10254 \SpecialChar LaTeX
10255 プリアンブル中に意図的に置いたコマンド(
10256 \family typewriter
10257 .tex
10258 \family default
10259 ファイル中,「User specified \SpecialChar LaTeX
10260  commands」というコメントの直後にあります)を除いて,
10261 \family typewriter
10262
10263 \backslash
10264 makeatletter
10265 \family default
10266
10267 \family typewriter
10268
10269 \backslash
10270 makeatother
10271 \family default
10272 の間のもの(これらのコマンドを含む)をすべて削除します.
10273 \end_layout
10274
10275 \end_deeper
10276 \begin_layout Enumerate
10277 編集後のファイルを \SpecialChar LaTeX
10278 にかけて,正しく処理されることを確認します.
10279 \end_layout
10280
10281 \begin_layout Enumerate
10282 学術誌の要求事項を再読して,ファイル名と書式が正しいことを確認します.
10283 \end_layout
10284
10285 \begin_layout Enumerate
10286 投稿してください.
10287 \end_layout
10288
10289 \begin_layout Subsection
10290 特定のコマンドに関するコメント
10291 \end_layout
10292
10293 \begin_layout Standard
10294 AAS\SpecialChar TeX
10295 ユーザーの手引き(
10296 \family typewriter
10297 aasguide.tex
10298 \family default
10299 )に,各AAS\SpecialChar TeX
10300 コマンドの詳しい説明があるので,ここでは,各コマンドの使用法の詳細な説明は行いません.そこで,ここではユーザーの手引きに現れるとおりに一覧を列挙し
10301 て,必要なところだけコメントを加えることにしましょう.
10302 \end_layout
10303
10304 \begin_layout Subsubsection
10305 期待通りに動作するもの
10306 \end_layout
10307
10308 \begin_layout Standard
10309 これらは期待通りに動作するので,ここでは列挙するだけにして,コマンドの説明されている節を挙げておきます.
10310 \family typewriter
10311
10312 \backslash
10313 documentclass
10314 \family default
10315  (2.1.1)・
10316 \family typewriter
10317
10318 \backslash
10319 begin{document}
10320 \family default
10321  (2.2)・
10322 \family typewriter
10323
10324 \backslash
10325 title
10326 \family default
10327  (2.3)・
10328 \family typewriter
10329
10330 \backslash
10331 author
10332 \family default
10333  (2.3)・
10334 \family typewriter
10335
10336 \backslash
10337 affil
10338 \family default
10339  (2.3)・
10340 \family typewriter
10341
10342 \backslash
10343 abstract
10344 \family default
10345  (2.4)・
10346 \family typewriter
10347
10348 \backslash
10349 keywords
10350 \family default
10351  (2.5)・
10352 \family typewriter
10353
10354 \backslash
10355 section
10356 \family default
10357  (2.7)・
10358 \family typewriter
10359
10360 \backslash
10361 subsection
10362 \family default
10363  (2.7)・
10364 \family typewriter
10365
10366 \backslash
10367 subsubsection
10368 \family default
10369  (2.7)・
10370 \family typewriter
10371
10372 \backslash
10373 paragraph
10374 \family default
10375  (2.7)・
10376 \family typewriter
10377
10378 \backslash
10379 facility
10380 \family default
10381  (2.10)・
10382 \family typewriter
10383
10384 \backslash
10385 begin{displaymath}
10386 \family default
10387  (2.12)・
10388 \family typewriter
10389
10390 \backslash
10391 begin{equation}
10392 \family default
10393  (2.12)・
10394 \family typewriter
10395
10396 \backslash
10397 begin{eqnarray}
10398 \family default
10399  (2.12)・
10400 \family typewriter
10401
10402 \backslash
10403 begin{mathletters}
10404 \family default
10405  (2.12)・
10406 \family typewriter
10407
10408 \backslash
10409 begin{thebibliography}
10410 \family default
10411  (2.13.1)・
10412 \family typewriter
10413
10414 \backslash
10415 bibitem
10416 \family default
10417  (2.13.2)・全引用コマンドとその派生(2.13.2)・一般的なgraphicx図コマンド(2.14.1)・
10418 \family typewriter
10419
10420 \backslash
10421 begin{table}
10422 \family default
10423  (2.15.4)・
10424 \family typewriter
10425
10426 \backslash
10427 begin{tabular}
10428 \family default
10429  (2.15.4)・
10430 \family typewriter
10431
10432 \backslash
10433 caption
10434 \family default
10435  (2.15.4)・
10436 \family typewriter
10437
10438 \backslash
10439 label
10440 \family default
10441  (他にもあるが特に2.15.4)・
10442 \family typewriter
10443
10444 \backslash
10445 tablerefs
10446 \family default
10447  (2.15.5)・
10448 \family typewriter
10449
10450 \backslash
10451 tablecomments
10452 \family default
10453  (2.15.5)・
10454 \family typewriter
10455
10456 \backslash
10457 url
10458 \family default
10459  (2.17.4)・
10460 \family typewriter
10461
10462 \backslash
10463 end{document}
10464 \family default
10465  (2.18).
10466 \end_layout
10467
10468 \begin_layout Standard
10469 以下のスタイルオプションも正しく動作します.
10470 \family typewriter
10471 longabstract
10472 \family default
10473  (2.4)・
10474 \family typewriter
10475 preprint
10476 \family default
10477  (3.2.1)・
10478 \family typewriter
10479 preprint2
10480 \family default
10481  (3.2.2)・
10482 \family typewriter
10483 eqsecnum
10484 \family default
10485  (3.3)・
10486 \family typewriter
10487 flushrt
10488 \family default
10489  (3.4).これらは,
10490 \begin_inset Flex MenuItem
10491 status collapsed
10492
10493 \begin_layout Plain Layout
10494 文書\SpecialChar menuseparator
10495 設定
10496 \end_layout
10497
10498 \end_inset
10499
10500 にある,
10501 \family sans
10502 クラスオプション
10503 \family default
10504
10505 \family sans
10506 任意設定
10507 \family default
10508 ボックスに入力してください.
10509 \end_layout
10510
10511 \begin_layout Subsubsection
10512 動作するが,若干説明が必要なもの
10513 \end_layout
10514
10515 \begin_layout Standard
10516 以下のコマンドは動作しますが,若干の説明が必要です.
10517 \end_layout
10518
10519 \begin_layout Itemize
10520 以下の項目は,学術誌の編集者向けに取ってあるものですが,どうしても必要ならば,\SpecialChar LaTeX
10521 プリアンブルに入れることができます.
10522 \family typewriter
10523
10524 \backslash
10525 received
10526 \family default
10527
10528 \family typewriter
10529
10530 \backslash
10531 revised
10532 \family default
10533
10534 \family typewriter
10535
10536 \backslash
10537 accepted
10538 \family default
10539
10540 \family typewriter
10541
10542 \backslash
10543 ccc
10544 \family default
10545
10546 \family typewriter
10547 cpright
10548 \family default
10549 (すべて 2.1.3).
10550 \end_layout
10551
10552 \begin_layout Itemize
10553 以下の項目は,\SpecialChar LaTeX
10554 のプリアンブルに置くことができるもので,これらは,ひな型ファイルには,空の引数と共に含まれています.
10555 \family typewriter
10556
10557 \backslash
10558 slugcomment
10559 \family default
10560 (2.1.4)・
10561 \family typewriter
10562
10563 \backslash
10564 shorttitle
10565 \family default
10566 (2.1.5)・
10567 \family typewriter
10568
10569 \backslash
10570 shortauthors
10571 \family default
10572 (2.1.5).
10573 \end_layout
10574
10575 \begin_layout Itemize
10576
10577 \family typewriter
10578
10579 \backslash
10580 email
10581 \family default
10582 (2.3)―「単独で」使うことはできますが,段落の途中で使うことはできません.埋め込む必要がある場合には,\SpecialChar TeX
10583 コードを使用してください.
10584 \end_layout
10585
10586 \begin_layout Itemize
10587
10588 \family typewriter
10589
10590 \backslash
10591 and
10592 \family default
10593 (2.3)―後ろに{}が付記されます.これはエラーの原因にはなりません.
10594 \end_layout
10595
10596 \begin_layout Itemize
10597
10598 \family typewriter
10599
10600 \backslash
10601 notetoeditor
10602 \family default
10603 (2.6)―「単独で」使うことはできますが,段落の途中で使うことはできません.埋め込む必要がある場合には,\SpecialChar TeX
10604 コードを使用してください.
10605 \end_layout
10606
10607 \begin_layout Itemize
10608
10609 \family typewriter
10610
10611 \backslash
10612 placetable
10613 \family default
10614 (2.8)―相互参照用タグを挿入することはできません.手動でタグ名を入力する必要があります.
10615 \end_layout
10616
10617 \begin_layout Itemize
10618
10619 \family typewriter
10620
10621 \backslash
10622 placefigure
10623 \family default
10624 (2.8)—
10625 \family typewriter
10626
10627 \backslash
10628 placetable
10629 \family default
10630 と同様.
10631 \end_layout
10632
10633 \begin_layout Itemize
10634
10635 \family typewriter
10636
10637 \backslash
10638 acknowledgements
10639 \family default
10640 (2.9)―後ろに{}が付記されます.これはエラーの原因にはなりません.
10641 \end_layout
10642
10643 \begin_layout Itemize
10644
10645 \family typewriter
10646
10647 \backslash
10648 appendix
10649 \family default
10650 (2.11)―後ろに{}が付記されます.これはエラーの原因にはなりません.
10651 \end_layout
10652
10653 \begin_layout Itemize
10654
10655 \family typewriter
10656
10657 \backslash
10658 figcaption
10659 \family default
10660 (2.14.2)―文章のはじめにカーソルを置いて
10661 \begin_inset Flex MenuItem
10662 status collapsed
10663
10664 \begin_layout Plain Layout
10665 挿入\SpecialChar menuseparator
10666 短縮タイトル
10667 \end_layout
10668
10669 \end_inset
10670
10671 を選択すれば,非必須のファイル名引数を挿入することができます.「短縮タイトル」とありますが,
10672 \family typewriter
10673
10674 \backslash
10675 figcaption
10676 \family default
10677 が必要とする型の非必須引数を挿入します.望むらくはいつの日か改名されることでしょう.
10678 \end_layout
10679
10680 \begin_layout Itemize
10681
10682 \family typewriter
10683
10684 \backslash
10685 objectname
10686 \family default
10687 (2.17.1)―非必須パラメータとしてカタログIDを取る以外は,
10688 \family typewriter
10689
10690 \backslash
10691 figcaption
10692 \family default
10693 と同様.
10694 \end_layout
10695
10696 \begin_layout Itemize
10697
10698 \family typewriter
10699
10700 \backslash
10701 dataset
10702 \family default
10703 (2.17.1)―非必須パラメータとしてカタログIDを取る以外は,
10704 \family typewriter
10705
10706 \backslash
10707 figcaption
10708 \family default
10709 と同様.
10710 \end_layout
10711
10712 \begin_layout Subsubsection
10713 実装されていないため,\SpecialChar TeX
10714 コードを使用するもの
10715 \end_layout
10716
10717 \begin_layout Standard
10718
10719 \family typewriter
10720
10721 \backslash
10722 altaffilmark
10723 \family default
10724 (2.3)・
10725 \family typewriter
10726
10727 \backslash
10728 altaffiltext
10729 \family default
10730 (2.3)・
10731 \family typewriter
10732
10733 \backslash
10734 eqnum
10735 \family default
10736 (2.12)・
10737 \family typewriter
10738
10739 \backslash
10740 setcounter{equation}
10741 \family default
10742 (2.12)・学術誌名略語(2.12.4)・
10743 \family typewriter
10744
10745 \backslash
10746 figurenum
10747 \family default
10748 (2.14.1)・
10749 \family typewriter
10750
10751 \backslash
10752 epsscale
10753 \family default
10754 (2.14.1)・
10755 \family typewriter
10756
10757 \backslash
10758 plotone
10759 \family default
10760 (2.14.1)・
10761 \family typewriter
10762
10763 \backslash
10764 plottwo
10765 \family default
10766 (2.14.1)・
10767 \family typewriter
10768
10769 \backslash
10770 tablenum
10771 \family default
10772 (2.15.4)・
10773 \family typewriter
10774
10775 \backslash
10776 tableline
10777 \family default
10778 (2.15.4:入れたい場所の後ろに,左側セルの最初の要素として挿入する.表中では,\SpecialChar LyX
10779 の方法は使わないでください)・
10780 \family typewriter
10781
10782 \backslash
10783 tablenotemark
10784 \family default
10785 (2.15.5)・
10786 \family typewriter
10787
10788 \backslash
10789 tablenotetext
10790 \family default
10791 (2.15.5)・補遺(2.17)の大半(
10792 \family typewriter
10793
10794 \backslash
10795 objectname
10796 \family default
10797
10798 \family typewriter
10799
10800 \backslash
10801 dataset
10802 \family default
10803
10804 \family typewriter
10805
10806 \backslash
10807 url
10808 \family default
10809
10810 \family typewriter
10811
10812 \backslash
10813 email
10814 \family default
10815 を除く.上記参照)・
10816 \family typewriter
10817
10818 \backslash
10819 singlespace
10820 \family default
10821 (3.1)・
10822 \family typewriter
10823
10824 \backslash
10825 doublespace
10826 \family default
10827 (3.1)・
10828 \family typewriter
10829
10830 \backslash
10831 onecolumn
10832 \family default
10833 (3.2)・
10834 \family typewriter
10835
10836 \backslash
10837 twocolumn
10838 \family default
10839 (3.2)
10840 \end_layout
10841
10842 \begin_layout Subsubsection
10843 実装できないもの
10844 \end_layout
10845
10846 \begin_layout Standard
10847 references(2.12.3)環境とdeluxetable(2.14)環境は,少なくとも意味のあるような形で実装することができないので,無視してください.もし,
10848 絶対に,どうしても,deluxetableを使う必要があるならば,テキストエディタで別ファイルとして編集し,
10849 \begin_inset Flex MenuItem
10850 status collapsed
10851
10852 \begin_layout Plain Layout
10853 挿入\SpecialChar menuseparator
10854 ファイル
10855 \begin_inset Formula $\text{\textipa{}}$
10856 \end_inset
10857
10858 \SpecialChar menuseparator
10859 子文書
10860 \end_layout
10861
10862 \end_inset
10863
10864 を使用して,\SpecialChar LyX
10865 ファイルに読み込むことを推奨します.この実例は,
10866 \family typewriter
10867 aas_sample.lyx
10868 \family default
10869 ファイルをご参照ください.
10870 \end_layout
10871
10872 \begin_layout Subsection
10873 FAQとヒントと技とその他の考察
10874 \end_layout
10875
10876 \begin_layout Subsubsection
10877 \SpecialChar LyX
10878 をAAS\SpecialChar TeX
10879 と協調させる
10880 \end_layout
10881
10882 \begin_layout Standard
10883 \SpecialChar LyX
10884 に,新しいレイアウトと文書クラスを認識させるには若干コツが要ります.もしうまく行かなかったら,次のようにしてみてください.
10885 \end_layout
10886
10887 \begin_layout Enumerate
10888 \SpecialChar LaTeX
10889 が,AAS\SpecialChar TeX
10890 を検出できることを確認してください.AAS\SpecialChar TeX
10891 頒布版に含まれる
10892 \family typewriter
10893 sample.tex
10894 \family default
10895 (あるいは
10896 \family typewriter
10897 table.tex
10898 \family default
10899 でも可)を,\SpecialChar LaTeX
10900 やAAS\SpecialChar TeX
10901 とまったく関係のないディレクトリにコピーして,
10902 \family typewriter
10903 sample.tex
10904 \family default
10905 を\SpecialChar LaTeX
10906 にかけてください.
10907 \end_layout
10908
10909 \begin_layout Enumerate
10910
10911 \family typewriter
10912 aastex.layout
10913 \family default
10914 が,\SpecialChar LyX
10915
10916 \family typewriter
10917 layouts
10918 \family default
10919 フォルダにあることを確認してください.
10920 \end_layout
10921
10922 \begin_layout Enumerate
10923 \SpecialChar LyX
10924 中から
10925 \family sans
10926 ツール\SpecialChar menuseparator
10927 環境構成
10928 \family default
10929 を再度実行し,\SpecialChar LyX
10930 を再起動してください.
10931 \end_layout
10932
10933 \begin_layout Enumerate
10934 ひな型ではなく,通常の新規ファイルを開いてください.AAS\SpecialChar TeX
10935 が,
10936 \family sans
10937 文書\SpecialChar menuseparator
10938 設定
10939 \family default
10940 のクラス一覧に表示されていますか?
10941 \end_layout
10942
10943 \begin_layout Standard
10944 既存のAAS\SpecialChar TeX
10945 文書を処理する際に,AAS\SpecialChar TeX
10946 レイアウトを見つけられないとか,「タイトルレイアウトと通常のレイアウトを混在させないでください」といった警告が出るようであ
10947 れば,正しい導入が行われていません.
10948 \end_layout
10949
10950 \begin_layout Subsubsection
10951 表を処理する際の\SpecialChar LaTeX
10952 エラー
10953 \end_layout
10954
10955 \begin_layout Standard
10956 既定では,\SpecialChar LyX
10957 は,表のキャプションやタイトルを中央揃えにしようと試みます.これはAAS\SpecialChar TeX
10958 と悪い相互干渉を発生させるようですので,キャプションやタイトルのどこかをクリッ
10959 クして,
10960 \family sans
10961 編集\SpecialChar menuseparator
10962 段落設定
10963 \family default
10964 を選択し,
10965 \family sans
10966 配置
10967 \family default
10968
10969 \family sans
10970 両端揃え
10971 \family default
10972 に設定してください.私のところではこれで解決しました.
10973 \end_layout
10974
10975 \begin_layout Subsubsection
10976 書誌情報
10977 \end_layout
10978
10979 \begin_layout Standard
10980 若干の注意があります.(1)文献項目の本文中の空白取りが少しおかしくなることがあるようです.書誌情報を入力する際には,最後の著者と,著作年を入れる括弧の間にスペ
10981 ースを
10982 \emph on
10983 入れない
10984 \emph default
10985 ようにしてください.たとえば,
10986 \family typewriter
10987 Ressler(1992)
10988 \family default
10989 はいいですが,
10990 \family typewriter
10991 Ressler (1992)
10992 \family default
10993 ではだめです.(2)書誌情報の入力の仕方は,必ずしも自明ではありません.もっとも簡単な方法は,文書の最後に,最初の書誌情報をまず書き込み,それを
10994 \family sans
10995 書誌情報
10996 \family default
10997 環境としてマークすることです.すると,入力したものの前に,小さな灰色のボックスが現れます.このボックスをクリックして,残りの情報を入力してください.新しい書誌情
10998 報を追加するには,既存の書誌情報の後ろでリターンを押します.すると,新しいボックスの付いた新規行が出てくるので,後は同様にしてください.
10999 \end_layout
11000
11001 \begin_layout Subsubsection
11002 EPSファイルの読み込み
11003 \end_layout
11004
11005 \begin_layout Standard
11006 AAS\SpecialChar TeX
11007 には,自前の図関連コマンド(たとえば
11008 \family typewriter
11009
11010 \backslash
11011 plotone
11012 \family default
11013 )がありますが,私は(既定のgraphicxを使った)\SpecialChar LaTeX
11014 の標準図コマンドの方がずっと好きです.望めば,図フロートボックスに,\SpecialChar TeX
11015 コードで
11016 \family typewriter
11017
11018 \backslash
11019 plotone
11020 \family default
11021 等のコマンドを挿入することはできますが,私には正しいレイアウトを得ることができた試しがありません.標準の画像コマンドを使えば,\SpecialChar LyX
11022 は,
11023 \family typewriter
11024
11025 \backslash
11026 usepackage{graphics}
11027 \family default
11028 コマンドを\SpecialChar LaTeX
11029 プリアンブルに挿入し,図を\SpecialChar LaTeX2e
11030 の標準的な方法で取り扱って,文章の中にちりばめます.現在,ApJは,ちょうどこのようにして作成した図を受け入れていますが,A
11031 Jはまだ「すべてを末尾に積み上げる」方法を使用しているかもしれません.
11032 \end_layout
11033
11034 \begin_layout Subsubsection
11035 可能だったが,実装しなかったもの
11036 \end_layout
11037
11038 \begin_layout Standard
11039 「素敵な」ものの中には,実装することも可能だったけれども,あえて実装しなかったものがあります.たとえば,紙の原稿ではダブルスペースであったとしても,\SpecialChar LyX
11040 ウィンドウ中
11041 で,文章をダブルスペースにする意味はないと考えました.また,preprint様式とpreprint2様式を,独立したレイアウトにすることもしませんでした.いずれ
11042 にしても,執筆時間のほとんどを,平の原稿モードで使うのがほとんどですから,これらの機能でディスクスペースを消費しないことにしました.
11043 \end_layout
11044
11045 \begin_layout Subsection
11046 最後に
11047 \end_layout
11048
11049 \begin_layout Standard
11050 これまでに進んできた道のりは,長い人も短い人もいることでしょう.私には,ApJとAJに発表した論文がありますが,その努力の98
11051 \begin_inset space \thinspace{}
11052 \end_inset
11053
11054 %は\SpecialChar LyX
11055 上で為されました.残りの2
11056 \begin_inset space \thinspace{}
11057 \end_inset
11058
11059 %が,\SpecialChar LaTeX
11060 での後処理と若干の後片付けです.投稿の過程では何のトラブルもなく,これらの学術誌が通常の投稿原稿と違う点に気づくことはなかったでしょう.ですから,がんばっ
11061 て発表してください!
11062 \end_layout
11063
11064 \begin_layout Section
11065 AMS \SpecialChar LaTeX
11066
11067 \end_layout
11068
11069 \begin_layout Standard
11070
11071 \noun on
11072 David Johnson
11073 \noun default
11074 文 
11075 \noun on
11076 Richard Heck
11077 \noun default
11078 改訂
11079 \begin_inset VSpace bigskip
11080 \end_inset
11081
11082
11083 \end_layout
11084
11085 \begin_layout Standard
11086 AMS \SpecialChar LaTeX
11087 レイアウトは,American Mathematical Society(アメリカ数学会)の刊行物に投稿する数学論文用のスタイルです.レイアウトは,特定
11088 の学術誌向けに仕立てられてはいませんが,簡単にそうすることができます.各学術誌毎の指示については,AMSの説明書をご参照ください(通常は,\SpecialChar TeX
11089 出力中の一行を変更する
11090 必要があるだけです).AMSの説明書は,ウェブWeb上の
11091 \begin_inset Flex URL
11092 status open
11093
11094 \begin_layout Plain Layout
11095
11096 http://www.ams.org
11097 \end_layout
11098
11099 \end_inset
11100
11101 か,FTPで
11102 \begin_inset Flex URL
11103 status open
11104
11105 \begin_layout Plain Layout
11106
11107 ftp://ftp.ams.org/pub/tex/amslatex/
11108 \end_layout
11109
11110 \end_inset
11111
11112 から入手することができます.これらのレイアウトは,数学的な文章を書くのであれば,どんなときでも適切かつ有用であるはずです.
11113 \end_layout
11114
11115 \begin_layout Standard
11116 基本となるAMS \SpecialChar LaTeX
11117 レイアウトには,以下の二つがあります.
11118 \end_layout
11119
11120 \begin_layout Itemize
11121 amsart:標準のAMS article書式.
11122 \end_layout
11123
11124 \begin_layout Itemize
11125 amsbook:標準のAMS book(実際はモノグラフ)書式.
11126 \end_layout
11127
11128 \begin_layout Standard
11129 これらのレイアウトには,それ自身では,AMSクラスを使用するのに必要最低限のものしか含まれていません.特に,定理や補題などを設定するのに使用される「theore
11130 m」環境は,何一つ含まれていません.これらは,代わりに
11131 \begin_inset Flex Code
11132 status collapsed
11133
11134 \begin_layout Plain Layout
11135 定理(AMS)
11136 \end_layout
11137
11138 \end_inset
11139
11140 モジュールに収録されており,AMSクラスのいずれかを選択すると,このモジュールが既定で読み込まれるようになっています(これは別のクラスでも使用することができ,別
11141 のものに変えたいときは取り除くこともできます).少し使用頻度の低いものとしては,
11142 \begin_inset Flex Code
11143 status collapsed
11144
11145 \begin_layout Plain Layout
11146 定理(AMS拡張)
11147 \end_layout
11148
11149 \end_inset
11150
11151 モジュールがあり,これは手動で読み込む必要があります.
11152 \end_layout
11153
11154 \begin_layout Standard
11155 既定では,定理類は,文書を通して連番が振られますが,これは
11156 \begin_inset Flex Code
11157 status collapsed
11158
11159 \begin_layout Plain Layout
11160 定理(節毎連番)
11161 \end_layout
11162
11163 \end_inset
11164
11165 モジュールを読み込めば変更することができ,
11166 \begin_inset Flex Code
11167 status collapsed
11168
11169 \begin_layout Plain Layout
11170 book (AMS)
11171 \end_layout
11172
11173 \end_inset
11174
11175 を使用している場合には
11176 \begin_inset Flex Code
11177 status collapsed
11178
11179 \begin_layout Plain Layout
11180 定理(章毎連番)
11181 \end_layout
11182
11183 \end_inset
11184
11185 を用いても変更することができます.これらを用いると,出力は
11186 \begin_inset Formula $n.m$
11187 \end_inset
11188
11189 のようになり,最初の数字は節番号(または章番号),次の数字はそれまで同節内(章内)に現れた出力の全数を表します.大半の環境は,連番なしでも用いることができます.
11190 連番なしのものは,環境名の後ろにアスタリスクを付けたもので表されます.連番なしの出力
11191 \emph on
11192 のみ
11193 \emph default
11194 が欲しい場合には,
11195 \begin_inset Flex Code
11196 status collapsed
11197
11198 \begin_layout Plain Layout
11199 定理(連番なし)
11200 \end_layout
11201
11202 \end_inset
11203
11204 モジュールを用います.
11205 \end_layout
11206
11207 \begin_layout Standard
11208 これらのモジュールは,AMSクラスで使用する
11209 \emph on
11210 必要はない
11211 \emph default
11212 ことに注意してください.
11213 \begin_inset Flex Code
11214 status collapsed
11215
11216 \begin_layout Plain Layout
11217 定理(AMS)
11218 \end_layout
11219
11220 \end_inset
11221
11222 モジュールや上述の他のモジュールは,他のクラス,たとえば
11223 \begin_inset Flex Code
11224 status collapsed
11225
11226 \begin_layout Plain Layout
11227 article
11228 \end_layout
11229
11230 \end_inset
11231
11232
11233 \begin_inset Flex Code
11234 status collapsed
11235
11236 \begin_layout Plain Layout
11237 report
11238 \end_layout
11239
11240 \end_inset
11241
11242
11243 \begin_inset Flex Code
11244 status collapsed
11245
11246 \begin_layout Plain Layout
11247 book (KOMA-script)
11248 \end_layout
11249
11250 \end_inset
11251
11252 などで問題なく使用することができます.
11253 \end_layout
11254
11255 \begin_layout Subsection
11256 これらのレイアウトが提供するもの
11257 \end_layout
11258
11259 \begin_layout Standard
11260 これらのレイアウトが提供している環境を列挙すると,長い一覧となります.AMS-\SpecialChar LaTeX
11261 では,実のところ,「theorem」環境の派生型を際限なく定義していくことが可能で
11262 す.しかし,AMSは,\SpecialChar LyX
11263 で利用可能になっている環境のみを使用することを推奨しています.
11264 \end_layout
11265
11266 \begin_layout Standard
11267 \begin_inset Flex Code
11268 status collapsed
11269
11270 \begin_layout Plain Layout
11271 article (AMS)
11272 \end_layout
11273
11274 \end_inset
11275
11276
11277 \begin_inset Flex Code
11278 status collapsed
11279
11280 \begin_layout Plain Layout
11281 book (AMS)
11282 \end_layout
11283
11284 \end_inset
11285
11286 には,——
11287 \begin_inset space ~
11288 \end_inset
11289
11290
11291 \begin_inset Flex Noun
11292 status collapsed
11293
11294 \begin_layout Plain Layout
11295
11296 \end_layout
11297
11298 \end_inset
11299
11300
11301 \begin_inset Flex Noun
11302 status collapsed
11303
11304 \begin_layout Plain Layout
11305 書誌情報
11306 \end_layout
11307
11308 \end_inset
11309
11310
11311 \begin_inset Flex Noun
11312 status collapsed
11313
11314 \begin_layout Plain Layout
11315 タイトル
11316 \end_layout
11317
11318 \end_inset
11319
11320
11321 \begin_inset Flex Noun
11322 status collapsed
11323
11324 \begin_layout Plain Layout
11325 著者
11326 \end_layout
11327
11328 \end_inset
11329
11330
11331 \begin_inset Flex Noun
11332 status collapsed
11333
11334 \begin_layout Plain Layout
11335 日付
11336 \end_layout
11337
11338 \end_inset
11339
11340 のような標準環境の他に
11341 \begin_inset space ~
11342 \end_inset
11343
11344 ——
11345 \begin_inset space ~
11346 \end_inset
11347
11348 以下の環境があります.
11349 \end_layout
11350
11351 \begin_layout Description
11352 住所 これは著者の恒久的な住所です.
11353 \end_layout
11354
11355 \begin_layout Description
11356 現在の住所 住所と別に指定されているときには,著者の投稿時の仮初めの住所です.
11357 \end_layout
11358
11359 \begin_layout Description
11360 電子メール 著者の電子メールアドレス
11361 \end_layout
11362
11363 \begin_layout Description
11364 URL 著者のウェブアドレス.任意.
11365 \end_layout
11366
11367 \begin_layout Description
11368 キーワード 論文中で論じられているトピックを識別するためのキーワードやキーフレーズ.
11369 \end_layout
11370
11371 \begin_layout Description
11372 分野分類 
11373 \emph on
11374 Mathematical Reviews
11375 \emph default
11376 に説明が公表されているAMS Subject Classificationsの分類番号を指します.上述したAMSのウェブサイトでも,オンラインで見ることができま
11377 す.
11378 \end_layout
11379
11380 \begin_layout Description
11381 謝辞
11382 \end_layout
11383
11384 \begin_layout Description
11385 献呈
11386 \end_layout
11387
11388 \begin_layout Description
11389 翻訳者
11390 \end_layout
11391
11392 \begin_layout Standard
11393 以下の環境は,
11394 \begin_inset Flex Code
11395 status collapsed
11396
11397 \begin_layout Plain Layout
11398 定理
11399 \end_layout
11400
11401 \end_inset
11402
11403 モジュールと
11404 \begin_inset Flex Code
11405 status collapsed
11406
11407 \begin_layout Plain Layout
11408 定理(AMS)
11409 \end_layout
11410
11411 \end_inset
11412
11413 モジュールの両方で提供され,後者の場合には,星付き(連番なし)版と星なし(連番)版の両方が提供されます.
11414 \begin_inset Flex Code
11415 status collapsed
11416
11417 \begin_layout Plain Layout
11418 定理(連番なし)
11419 \end_layout
11420
11421 \end_inset
11422
11423 モジュールでは,同環境の星付き版だけが提供されます.
11424 \end_layout
11425
11426 \begin_layout Theorem
11427 これは,通常,得られた主要な結果を叙述するのに使用されます.
11428 \end_layout
11429
11430 \begin_layout Corollary*
11431 これは直前の叙述から比較的直接に導き出せる結果を叙述するのに使います.これも主要な結果であることがあります.
11432 \end_layout
11433
11434 \begin_layout Lemma
11435 他の叙述を証明するために必要とされる,比較的小さな結果です.
11436 \end_layout
11437
11438 \begin_layout Proposition
11439 議論されている一般的な理論に(希望的には)何かを付け加えるような,主要ではない結果です.
11440 \end_layout
11441
11442 \begin_layout Conjecture
11443 正当化を与えずに述べられた叙述で,著者には証明法がわからないけれども,正しいと(少なくとも著者にとっては)思われるものです.
11444 \end_layout
11445
11446 \begin_layout Definition*
11447 これは自明でしょう.この環境のフォントは,前述の環境とは異なるフォントが使用されます.
11448 \end_layout
11449
11450 \begin_layout Problem
11451 これが何を指すかは必ずしも特定されていません.ご自分で解明してください.
11452 \end_layout
11453
11454 \begin_layout Exercise*
11455 この環境の説明を記述せよ.
11456 \end_layout
11457
11458 \begin_layout Note
11459 この環境もtheorem型,通常は重要性の低い所見に用いられます.
11460 \end_layout
11461
11462 \begin_layout Claim*
11463 より大きな結果の証明を与える途中で,しばしば用いられます.
11464 \end_layout
11465
11466 \begin_layout Case
11467 一般的に,これらはある条件の特定の場合を取り上げて,長い議論を区切るのに用いられます.
11468 \end_layout
11469
11470 \begin_layout Case
11471 ケースの連番の枠組みは,それ自身で独立していて,他の連番の叙述とは区別されます.
11472 \end_layout
11473
11474 \begin_layout Proof
11475 この環境の最後には,証了記号(通常は四角ですがスタイルによって変わります)が置かれます.この環境の中に別の環境を入れたい——たとえばケース環境など——場合で,証
11476 了記号は証明環境の終わりにのみ現れるようにしたい場合には,他の環境は証明環境の中に入れ子にしなくてはなりません.入れ子に関する情報については,
11477 \emph on
11478 ユーザーの手引き
11479 \emph default
11480
11481 \emph on
11482 環境を入れ子にする
11483 \emph default
11484 の節をご覧ください.
11485 \end_layout
11486
11487 \begin_layout Standard
11488 そして,以下は
11489 \begin_inset Flex Code
11490 status collapsed
11491
11492 \begin_layout Plain Layout
11493 定理(AMS拡張)
11494 \end_layout
11495
11496 \end_inset
11497
11498 で提供されるものです.
11499 \end_layout
11500
11501 \begin_layout Criterion*
11502 必要とされる条件です.
11503 \end_layout
11504
11505 \begin_layout Algorithm*
11506 使用する一般的手順です.
11507 \end_layout
11508
11509 \begin_layout Axiom*
11510 議論されている系内部で真と仮定される性質や命題です.
11511 \end_layout
11512
11513 \begin_layout Condition*
11514 議論の現在の文脈で仮定されている条件を述べるのに,よく用いられます.
11515 \end_layout
11516
11517 \begin_layout Note*
11518 注記と同様です.
11519 \end_layout
11520
11521 \begin_layout Notation*
11522 表記法の説明に用いられます.
11523 \end_layout
11524
11525 \begin_layout Summary
11526 本当に説明する必要がありますか?
11527 \end_layout
11528
11529 \begin_layout Acknowledgement*
11530 謝辞(acknowledgement)です.
11531 \end_layout
11532
11533 \begin_layout Conclusion*
11534 長い議論の終わりに時々用いられます.
11535 \end_layout
11536
11537 \begin_layout Fact
11538 命題と同様の用いられ方をしますが,だいたい長くないものに使われるようです.
11539 \end_layout
11540
11541 \begin_layout Standard
11542 さらに,AMSクラスは,AMS \SpecialChar LaTeX
11543 パッケージとAMSフォントパッケージを自動的に提供します.これらの環境を使用するためには,お使いのシステム上で利用可能となってい
11544 る必要があります.
11545 \end_layout
11546
11547 \begin_layout Section
11548 AGU各誌(
11549 \family sans
11550 aguplus)
11551 \end_layout
11552
11553 \begin_layout Standard
11554
11555 \noun on
11556 Martin Vermeer
11557 \noun default
11558
11559 \end_layout
11560
11561 \begin_layout Subsection
11562 概要
11563 \end_layout
11564
11565 \begin_layout Standard
11566 これはAmerican Geophysical Society(アメリカ地球物理学会) の各学術誌向けのレイアウトファイルです.AGU発行のクラスファイルおよび
11567 AGUplusの両方(これらは
11568 \begin_inset Flex URL
11569 status collapsed
11570
11571 \begin_layout Plain Layout
11572
11573 http://publications.agu.org/files/2013/08/AGU-LaTeX.zip
11574 \end_layout
11575
11576 \end_inset
11577
11578 にあります)が導入されていることが必要です.
11579 \end_layout
11580
11581 \begin_layout Subsection
11582 新しいスタイル
11583 \end_layout
11584
11585 \begin_layout Standard
11586
11587 \family sans
11588 段落
11589 \family default
11590 および
11591 \family sans
11592 段落*
11593 \family default
11594 は,定義し直されています.\SpecialChar LyX
11595 の画面では,依然として
11596 \family sans
11597 段落
11598 \family default
11599
11600 \family sans
11601 段落*
11602 \family default
11603 と表示されますが,AGUクラスにおける\SpecialChar LaTeX
11604 の対応物は,
11605 \family sans
11606 Subsubsubsection
11607 \family default
11608
11609 \family sans
11610 Subsubsubsection*
11611 \family default
11612 です.
11613 \end_layout
11614
11615 \begin_layout Standard
11616 新しく定義されたスタイルには,
11617 \family sans
11618 左ヘッダ
11619 \family default
11620
11621 \family sans
11622 右ヘッダ
11623 \family default
11624
11625 \family sans
11626 受理日
11627 \family default
11628
11629 \family sans
11630 改訂
11631 \family default
11632
11633 \family sans
11634 採択日
11635 \family default
11636
11637 \family sans
11638 CCC
11639 \family default
11640
11641 \family sans
11642 論文ID
11643 \family default
11644
11645 \family sans
11646 著者住所
11647 \family default
11648
11649 \family sans
11650 廃棄用コメント
11651 \family default
11652 があります.これらは,ほとんど草稿用属性で,AGUクラス説明書で説明されています.
11653 \end_layout
11654
11655 \begin_layout Standard
11656 おそらく,これはまだ恐ろしく不完全です.
11657 \end_layout
11658
11659 \begin_layout Subsection
11660 新しいフロート
11661 \end_layout
11662
11663 \begin_layout Standard
11664
11665 \family sans
11666 平面表(Planotable
11667 \family default
11668 )と
11669 \family sans
11670 挿絵
11671 \family default
11672 (Plate)が新しいフロートです.また,
11673 \family sans
11674 表キャプション
11675 \family default
11676 も付け加えられています.
11677 \end_layout
11678
11679 \begin_layout Subsection
11680 サポートされている学術誌
11681 \end_layout
11682
11683 \begin_layout Itemize
11684
11685 \emph on
11686 Journal of Geophysical Research
11687 \emph default
11688
11689 \family typewriter
11690 jgrga.layout
11691 \family default
11692  — Martin Vermeer
11693 \end_layout
11694
11695 \begin_layout Standard
11696 ここにあなたの作ったものを加えてください.難しくはありません.
11697 \family typewriter
11698 jgrga.layout
11699 \family default
11700 と 
11701 \family typewriter
11702 aguplus.inc
11703 \family default
11704 を用例として見てください.
11705 \end_layout
11706
11707 \begin_layout Subsection
11708 バグと注意すべきこと
11709 \end_layout
11710
11711 \begin_layout Standard
11712 新しいレイアウトを使うためには,新規文書の作成時に以下の手順を行う必要があります.
11713 \end_layout
11714
11715 \begin_layout Enumerate
11716
11717 \emph on
11718 babelを無効にしてください.
11719 \emph default
11720 これは,
11721 \family sans
11722 ツール\SpecialChar menuseparator
11723 設定
11724 \family default
11725 メニュー項目で行うことができます(AGUの論文は常に英語ですよね.ですから他の言語は
11726 \emph on
11727 選ばないで下さい
11728 \emph default
11729 ).
11730 \end_layout
11731
11732 \begin_layout Enumerate
11733 使用文書の追加オプションフィールドに
11734 \family typewriter
11735 jgrga
11736 \family default
11737 と入力してください(すみません,これはバグです).
11738 \end_layout
11739
11740 \begin_layout Enumerate
11741 Bib\SpecialChar TeX
11742 差込枠の2番目のフィールドに
11743 \family sans
11744 agu
11745 \family default
11746 と入力して,書誌情報のスタイルに
11747 \family typewriter
11748 agu.bst
11749 \family default
11750 を使用していることを確認してください.標準スタイルはうまく動作しません.
11751 \end_layout
11752
11753 \begin_layout Section
11754 Broadway
11755 \end_layout
11756
11757 \begin_layout Standard
11758
11759 \noun on
11760 Garst Reese
11761 \noun default
11762
11763 \end_layout
11764
11765 \begin_layout Subsection
11766 はじめに
11767 \end_layout
11768
11769 \begin_layout Standard
11770 Broadwayは演劇を書くためのものです.書式はHollywoodよりも装飾的で,それほど標準化されていません.この書式はワークショップに向いているでしょう.
11771 \end_layout
11772
11773 \begin_layout Subsection
11774 特別な問題
11775 \end_layout
11776
11777 \begin_layout Standard
11778 Hollywoodと同様です.
11779 \end_layout
11780
11781 \begin_layout Subsection
11782 特別の機能
11783 \end_layout
11784
11785 \begin_layout Standard
11786
11787 \family sans
11788 話者
11789 \family default
11790 の名前をラベルとして挿入し,名前を挿入する際には,このラベルを相互参照してください.相互参照ダイアログには,登場人物の現在の配役が表示されます.
11791 \end_layout
11792
11793 \begin_layout Subsection
11794 用紙寸法と余白
11795 \end_layout
11796
11797 \begin_layout Standard
11798 USレター寸法で,余白は左1.6インチ,右0.75インチ,上0.5インチ,下0.75インチです.
11799 \end_layout
11800
11801 \begin_layout Subsection
11802 環境
11803 \end_layout
11804
11805 \begin_layout Standard
11806 以下の環境を使うことができます.右に記してある
11807 \begin_inset Flex Ruby
11808 status collapsed
11809
11810 \begin_layout Plain Layout
11811
11812 \begin_inset Argument post:1
11813 status collapsed
11814
11815 \begin_layout Plain Layout
11816 キー
11817 \end_layout
11818
11819 \end_inset
11820
11821
11822 \end_layout
11823
11824 \end_inset
11825
11826 割当ては,broadway.bindを使った場合のものです.
11827 \end_layout
11828
11829 \begin_layout Itemize
11830
11831 \family sans
11832 標準
11833 \begin_inset Newline newline
11834 \end_inset
11835
11836
11837 \family default
11838 これは使わなくていいはずですが,他の環境が当てはまらない場合のためにここに挙げておきます.
11839 \end_layout
11840
11841 \begin_layout Itemize
11842
11843 \family sans
11844 ト書き
11845 \begin_inset space \hfill{}
11846 \end_inset
11847
11848 M-z n
11849 \begin_inset Newline newline
11850 \end_inset
11851
11852
11853 \family default
11854 舞台設定と動作の説明に用います.最初に話者名をすべて大文字で書いておきます.
11855 \end_layout
11856
11857 \begin_layout Itemize
11858
11859 \family sans
11860
11861 \begin_inset space \hfill{}
11862 \end_inset
11863
11864 M-z a
11865 \begin_inset Newline newline
11866 \end_inset
11867
11868
11869 \family default
11870 自動的に連番が振られます.連番は,画面上ではアラビア数字ですが,出力ではローマ数字です.
11871 \end_layout
11872
11873 \begin_layout Itemize
11874
11875 \family sans
11876 幕*
11877 \begin_inset space \hfill{}
11878 \end_inset
11879
11880 M-z S at
11881 \begin_inset Newline newline
11882 \end_inset
11883
11884
11885 \family default
11886 幕の副題です.単に中央揃えの文になります.
11887 \end_layout
11888
11889 \begin_layout Itemize
11890
11891 \family sans
11892 場面
11893 \begin_inset space \hfill{}
11894 \end_inset
11895
11896 M-z S-S
11897 \begin_inset Newline newline
11898 \end_inset
11899
11900
11901 \family default
11902 自動的に連番は振られませんので,手動で番号を付けてください.これは私がどうすればいいか分からなかったためです.
11903 \end_layout
11904
11905 \begin_layout Itemize
11906
11907 \family sans
11908 幕開きに:
11909 \begin_inset space \hfill{}
11910 \end_inset
11911
11912 M-z S-R
11913 \begin_inset Newline newline
11914 \end_inset
11915
11916
11917 \family default
11918 ト書きの特殊な場合で,カーテンが上がるときの舞台設定と動作を説明します.
11919 \end_layout
11920
11921 \begin_layout Itemize
11922
11923 \family sans
11924 話者
11925 \begin_inset space \hfill{}
11926 \end_inset
11927
11928 M-z s
11929 \begin_inset Newline newline
11930 \end_inset
11931
11932
11933 \family default
11934 話者(役者)の配役です.すべて大文字で中央揃えに置かれます.
11935 \end_layout
11936
11937 \begin_layout Itemize
11938
11939 \family sans
11940 括弧付き
11941 \begin_inset space \hfill{}
11942 \end_inset
11943
11944 M-z p
11945 \begin_inset Newline newline
11946 \end_inset
11947
11948
11949 \family default
11950 話者への指示です.括弧は自動的に挿入されます.画面上には左括弧(のみが表示されますが,印字出力には両方の括弧が表示されます.この環境は,
11951 \family sans
11952 対話
11953 \family default
11954 の中だけで使用されます. 
11955 \end_layout
11956
11957 \begin_layout Itemize
11958
11959 \family sans
11960 対話
11961 \begin_inset space \hfill{}
11962 \end_inset
11963
11964 M-z d
11965 \begin_inset Newline newline
11966 \end_inset
11967
11968
11969 \family default
11970 話者の言う内容.
11971 \end_layout
11972
11973 \begin_layout Itemize
11974
11975 \family sans
11976 幕切れ
11977 \begin_inset space \hfill{}
11978 \end_inset
11979
11980 M-z S-C
11981 \begin_inset Newline newline
11982 \end_inset
11983
11984
11985 \family default
11986 幕が降ります.
11987 \end_layout
11988
11989 \begin_layout Itemize
11990
11991 \family sans
11992 タイトル
11993 \begin_inset space \hfill{}
11994 \end_inset
11995
11996 M-z S-T
11997 \end_layout
11998
11999 \begin_layout Itemize
12000
12001 \family sans
12002 著者
12003 \begin_inset space \hfill{}
12004 \end_inset
12005
12006 M-z S-A
12007 \end_layout
12008
12009 \begin_layout Itemize
12010
12011 \family sans
12012 右寄せ住所
12013 \begin_inset space \hfill{}
12014 \end_inset
12015
12016 M-z r
12017 \end_layout
12018
12019 \begin_layout Section
12020 Dinbrief
12021 \end_layout
12022
12023 \begin_layout Standard
12024 文書クラス
12025 \family sans
12026 dinbrief
12027 \family default
12028 は,ドイツの慣習に則った書簡の組版を行うのに用いられます.ひな型ファイルが
12029 \family typewriter
12030 .../lyx/share/templates
12031 \family default
12032 にあるので,それを土台として使用してください.
12033 \end_layout
12034
12035 \begin_layout Section
12036 EGS各誌
12037 \family sans
12038 (egs)
12039 \end_layout
12040
12041 \begin_layout Standard
12042
12043 \noun on
12044 Martin Vermeer
12045 \noun default
12046
12047 \end_layout
12048
12049 \begin_layout Subsection
12050 概要
12051 \end_layout
12052
12053 \begin_layout Standard
12054 これはEuropean Geophysical Society(欧州地球物理学会)の学術誌向けのレイアウトファイルです.必要とされる
12055 \family typewriter
12056 egs.cls
12057 \family default
12058 は,EGSのウェブサイト
12059 \begin_inset Flex URL
12060 status collapsed
12061
12062 \begin_layout Plain Layout
12063
12064 http://www.copernicus.org/
12065 \end_layout
12066
12067 \end_inset
12068
12069 からダウンロードできます.
12070 \end_layout
12071
12072 \begin_layout Subsection
12073 新しいスタイル
12074 \end_layout
12075
12076 \begin_layout Standard
12077 新しいスタイルとして,
12078 \family sans
12079 右寄せ住所
12080 \family default
12081
12082 \family sans
12083 \SpecialChar LaTeX
12084 タイトル
12085 \family default
12086
12087 \family sans
12088 所属
12089 \family default
12090
12091 \family sans
12092 学術誌名
12093 \family default
12094
12095 \family sans
12096 原稿番号
12097 \family default
12098
12099 \family sans
12100 筆頭著者
12101 \family default
12102
12103 \family sans
12104 受理日
12105 \family default
12106
12107 \family sans
12108 採択日
12109 \family default
12110
12111 \family sans
12112 オフセット
12113 \family default
12114 があります.現在のレイアウトファイルは,残念ながらほとんどモジュール化されておらず,さまざまな
12115 \family typewriter
12116 std*.inc
12117 \family default
12118 ファイルを読み込む形に変えた方が便利になると思われます.
12119 \end_layout
12120
12121 \begin_layout Section
12122 Elsevier各誌
12123 \end_layout
12124
12125 \begin_layout Standard
12126 \SpecialChar LyX
12127 ひな型ファイルの
12128 \family typewriter
12129 elsarticle.lyx
12130 \family default
12131 を参照してください.必要な情報は全てそこにあります.
12132 \end_layout
12133
12134 \begin_layout Section
12135 Foils (別名Foil\SpecialChar TeX
12136 )
12137 \begin_inset CommandInset label
12138 LatexCommand label
12139 name "sec:foiltex"
12140
12141 \end_inset
12142
12143
12144 \end_layout
12145
12146 \begin_layout Standard
12147
12148 \noun on
12149 Allan Rae
12150 \noun default
12151
12152 \end_layout
12153
12154 \begin_layout Subsection
12155 はじめに
12156 \end_layout
12157
12158 \begin_layout Standard
12159 本節では,プレゼンテーション用のスライドを作るための,\SpecialChar LyX
12160 の使用法を解説します.スライドを作ることのできる文書クラスには,slides・Foil\SpecialChar TeX
12161 ・seminar・b
12162 eamer・powerdotといったクラスがありますが,本節では,そのうちslidesの解説を行います.
12163 \end_layout
12164
12165 \begin_layout Standard
12166 誤解のないように,わかりやすく明確に,もう一度言っておきます.
12167 \end_layout
12168
12169 \begin_layout Standard
12170 \begin_inset VSpace bigskip
12171 \end_inset
12172
12173
12174 \end_layout
12175
12176 \begin_layout Standard
12177 \align center
12178
12179 \size large
12180 本節は「
12181 \family sans
12182 FoilTeX
12183 \family default
12184 」クラス
12185 \emph on
12186 のみの
12187 \emph default
12188 解説を行います.
12189 \end_layout
12190
12191 \begin_layout Standard
12192 \begin_inset VSpace bigskip
12193 \end_inset
12194
12195
12196 \end_layout
12197
12198 \begin_layout Standard
12199
12200 \family sans
12201 transparencies (slides)
12202 \family default
12203 」の解説をお探しであれば,第
12204 \begin_inset CommandInset ref
12205 LatexCommand ref
12206 reference "sec:slitex"
12207
12208 \end_inset
12209
12210 節をご覧ください.お使いのコンピュータに
12211 \family sans
12212 foils
12213 \family default
12214 クラス
12215 \family sans
12216 FoilTeX
12217 \family default
12218 が導入されていなければ,
12219 \family sans
12220 foils
12221 \family default
12222 ほど良くはありませんが,おそらく
12223 \family sans
12224 slides
12225 \family default
12226 クラスを使わざるをえないでしょう.
12227 \end_layout
12228
12229 \begin_layout Standard
12230
12231 \family sans
12232 foils
12233 \family default
12234 クラスは,\SpecialChar LaTeX2e
12235 の一部として含まれている\SpecialChar LaTeX
12236 クラスファイル
12237 \family sans
12238 foils.cls
12239 \family default
12240 の第2.1版とともに使われるように設計されています.
12241 \end_layout
12242
12243 \begin_layout Subsection
12244 最初の一歩
12245 \end_layout
12246
12247 \begin_layout Standard
12248 いうまでもなく,この文書クラスを使うには,
12249 \family sans
12250 文書\SpecialChar menuseparator
12251 設定\SpecialChar menuseparator
12252 文書クラス
12253 \family default
12254 メニューの
12255 \family sans
12256 文書クラス
12257 \family default
12258 ドロップダウンで「
12259 \family sans
12260 FoilTeX
12261 \family default
12262 」を選択する必要があります.また,
12263 \family sans
12264 文書設定
12265 \family default
12266 ダイアログ中には,以下のように,このクラスに特有の設定がいくつかあることを知っておかなくてはなりません.
12267 \end_layout
12268
12269 \begin_layout Itemize
12270
12271 \family sans
12272 文書設定
12273 \family default
12274 ダイアログ中の,
12275 \family sans
12276 両面文書
12277 \family default
12278 オプションと
12279 \family sans
12280 二段組文書
12281 \family default
12282 オプションは変更しないでください.これらは 
12283 \family sans
12284 foils
12285 \family default
12286 クラスでは無視されます.
12287 \end_layout
12288
12289 \begin_layout Itemize
12290 既定のフォント寸法は20ptであり,17
12291 \begin_inset space \thinspace{}
12292 \end_inset
12293
12294 pt・25
12295 \begin_inset space \thinspace{}
12296 \end_inset
12297
12298 pt・30
12299 \begin_inset space \thinspace{}
12300 \end_inset
12301
12302 ptを選択することも可能です.
12303 \end_layout
12304
12305 \begin_layout Itemize
12306 既定のフォントは
12307 \family sans
12308 sans
12309 \family default
12310  
12311 \family sans
12312 serif
12313 \family default
12314 ですが,数式ではすべて,通常のローマン体が使用されます.
12315 \end_layout
12316
12317 \begin_layout Itemize
12318 Foil\SpecialChar TeX
12319 は,35
12320 \begin_inset space \thinspace{}
12321 \end_inset
12322
12323 mmスライド用の特殊寸法の他,A4とレター大の用紙寸法をサポートします.A5・B5・リーガル・エグゼクティブ大の用紙寸法はサポートしていません.
12324 \end_layout
12325
12326 \begin_layout Itemize
12327
12328 \family sans
12329 フロートの配置
12330 \family default
12331 の設定は無視されますので,わざわざ変更する必要はありません.フロートはすべて,本文中で定義された位置に表示されます.
12332 \end_layout
12333
12334 \begin_layout Itemize
12335 このクラスの
12336 \family sans
12337 ページレイアウト
12338 \family default
12339 の設定は,若干異なった挙動を示します.Foil\SpecialChar TeX
12340 では,ユーザ定義のロゴをはじめ,フッタとへッダに広範な設定ができます.詳細については第
12341 \begin_inset CommandInset ref
12342 LatexCommand ref
12343 reference "sec:foilfoot"
12344
12345 \end_inset
12346
12347 節をご覧ください.タイトルページは,文書中の他のページとは異なった取扱がなされ,ページ番号は
12348 \emph on
12349 つねに
12350 \emph default
12351 付けられず,(ロゴが定義されていれば)ロゴは,
12352 \emph on
12353 つねに
12354 \emph default
12355 ページ下部中央に表示されます.使用できるページ様式とその挙動は,以下の通りです.
12356 \end_layout
12357
12358 \begin_deeper
12359 \begin_layout Labeling
12360 \labelwidthstring MMMMMMM
12361
12362 \family sans
12363 \series bold
12364 empty
12365 \family default
12366 \series default
12367  最終出力には,ページ番号をはじめ,へッダ・フッタが出力されません(もちろん脚注は除きます).
12368 \end_layout
12369
12370 \begin_layout Labeling
12371 \labelwidthstring MMMMMMM
12372
12373 \family sans
12374 \series bold
12375 plain
12376 \family default
12377 \series default
12378  最終出力には,ページ番号がページ下部の中央に出力されますが,他のへッダ・フッタは出力されません(脚注除く).
12379 \end_layout
12380
12381 \begin_layout Labeling
12382 \labelwidthstring MMMMMMM
12383
12384 \series bold
12385 foilheadings
12386 \series default
12387  ページ番号が右下隅に出力されます.追記したへッダ・フッタも出力されます.これが既定値です.
12388 \end_layout
12389
12390 \begin_layout Labeling
12391 \labelwidthstring MMMMMMM
12392
12393 \series bold
12394 fancy
12395 \series default
12396  これは
12397 \family sans
12398 fancyheadings
12399 \family default
12400 パッケージを使えるようにします.ただし,Foil\SpecialChar TeX
12401 パッケージの作者は,ページレイアウトが崩れる可能性があるので,これを使用することは勧めないと言及しています.
12402 \end_layout
12403
12404 \end_deeper
12405 \begin_layout Subsubsection
12406 任意設定クラスオプション
12407 \end_layout
12408
12409 \begin_layout Standard
12410 以下のオプションは
12411 \family sans
12412 文書設定
12413 \family default
12414 ダイアログの任意設定クラスオプションボックスで使うことができます.
12415 \end_layout
12416
12417 \begin_layout Labeling
12418 \labelwidthstring MMMMMMx
12419
12420 \series bold
12421 35mmSlide
12422 \series default
12423  これは,ページレイアウトを縦7.33インチ横11インチに設定します.これは35
12424 \begin_inset space \space{}
12425 \end_inset
12426
12427 mmスライドの縦横比にほぼ等しく,このメディアを作る作業が若干易しくなります.
12428 \end_layout
12429
12430 \begin_layout Labeling
12431 \labelwidthstring MMMMMMx
12432
12433 \series bold
12434 headrule
12435 \series default
12436  タイトルページを除くすべてのページのへッダの下に罫線を入れます.
12437 \end_layout
12438
12439 \begin_layout Labeling
12440 \labelwidthstring MMMMMMx
12441
12442 \series bold
12443 footrule
12444 \series default
12445  タイトルページを除くすべてのページのフッタの上に罫線を入れます.
12446 \end_layout
12447
12448 \begin_layout Labeling
12449 \labelwidthstring MMMMMMx
12450
12451 \series bold
12452 dvips
12453 \series default
12454  これは,新規
12455 \family sans
12456 foils
12457 \family default
12458 文書を作成する度に自動的に設定されます.このオプションは,横向きに設定されたページを回転させるのに,dvipsドライバを使うようFoil\SpecialChar TeX
12459 に指示します.
12460 \end_layout
12461
12462 \begin_layout Labeling
12463 \labelwidthstring MMMMMMx
12464
12465 \series bold
12466 landscape
12467 \series default
12468  このオプションは,用紙寸法を横向きページ大に変更するだけで,回転は行いません.したがって,このオプションを使う場合は,各ページを回転させる外部プログラムを使用
12469 する,プリンタに用紙を横向きに給紙する必要があります.また,このオプションは,
12470 \family sans
12471 Foilhead
12472 \family default
12473 環境と
12474 \family sans
12475 Rotatefoilhead
12476 \family default
12477 環境の役割を逆転させることに注意してください(これらの環境については次節で説明します).
12478 \end_layout
12479
12480 \begin_layout Labeling
12481 \labelwidthstring MMMMMMx
12482
12483 \series bold
12484 leqno
12485 \series default
12486  数式番号を左側に付けます.
12487 \end_layout
12488
12489 \begin_layout Labeling
12490 \labelwidthstring MMMMMMx
12491
12492 \series bold
12493 fleqn
12494 \series default
12495  数式を左揃えにします.
12496 \end_layout
12497
12498 \begin_layout Subsection
12499 サポートされる環境
12500 \end_layout
12501
12502 \begin_layout Standard
12503 他のクラスで標準的にサポートされている環境は,
12504 \family sans
12505 foils
12506 \family default
12507 クラスでもサポートされています.それ以外に,Foil\SpecialChar TeX
12508 が提供している環境と,\SpecialChar LyX
12509 が付け加えた環境があります.以下の環境は,他のクラスと共通の環境です.
12510 \end_layout
12511
12512 \begin_layout Standard
12513
12514 \family sans
12515 \begin_inset Flex Multiple Columns
12516 status open
12517
12518 \begin_layout Itemize
12519
12520 \family sans
12521 標準
12522 \end_layout
12523
12524 \begin_layout Itemize
12525
12526 \family sans
12527 箇条書き(記号)
12528 \end_layout
12529
12530 \begin_layout Itemize
12531
12532 \family sans
12533 箇条書き(連番)
12534 \end_layout
12535
12536 \begin_layout Itemize
12537
12538 \family sans
12539 箇条書き(記述)
12540 \end_layout
12541
12542 \begin_layout Itemize
12543
12544 \family sans
12545 箇条書き(リスト)
12546 \end_layout
12547
12548 \begin_layout Itemize
12549
12550 \family sans
12551 \SpecialChar LyX
12552 コード
12553 \end_layout
12554
12555 \begin_layout Itemize
12556
12557 \family sans
12558 詩句
12559 \end_layout
12560
12561 \begin_layout Itemize
12562
12563 \family sans
12564 引用(字下げあり)
12565 \end_layout
12566
12567 \begin_layout Itemize
12568
12569 \family sans
12570 引用(字下げなし)
12571 \end_layout
12572
12573 \begin_layout Itemize
12574
12575 \family sans
12576 タイトル
12577 \end_layout
12578
12579 \begin_layout Itemize
12580
12581 \family sans
12582 著者
12583 \end_layout
12584
12585 \begin_layout Itemize
12586
12587 \family sans
12588 日付
12589 \end_layout
12590
12591 \begin_layout Itemize
12592
12593 \family sans
12594 概要
12595 \end_layout
12596
12597 \begin_layout Itemize
12598
12599 \family sans
12600 書誌情報
12601 \end_layout
12602
12603 \begin_layout Itemize
12604
12605 \family sans
12606 住所
12607 \end_layout
12608
12609 \begin_layout Itemize
12610
12611 \family sans
12612 右寄せ住所
12613 \end_layout
12614
12615 \begin_layout Itemize
12616
12617 \family sans
12618 キャプション
12619 \end_layout
12620
12621 \begin_layout Itemize
12622
12623 \family sans
12624 コメント
12625 \end_layout
12626
12627 \end_inset
12628
12629
12630 \end_layout
12631
12632 \begin_layout Standard
12633 つまり,節区切りを除けば,主な環境のすべてです.一枚のスライドは,基本的にタイトルと本文を備えた自己完結した節なので,
12634 \family sans
12635 Foil
12636 \family default
12637 \SpecialChar TeX
12638 は新しいスライドを始める以下のようなコマンドを備えています.
12639 \end_layout
12640
12641 \begin_layout Itemize
12642
12643 \family sans
12644 スライドタイトル(Foilhead)
12645 \end_layout
12646
12647 \begin_layout Itemize
12648
12649 \family sans
12650 横置きスライドタイトル(Rotatefoilhead)
12651 \end_layout
12652
12653 \begin_layout Standard
12654 \SpecialChar LyX
12655 は,以下のような,これらを若干修正した環境も用意しています.
12656 \end_layout
12657
12658 \begin_layout Itemize
12659
12660 \family sans
12661 スライドタイトル(小)(ShortFoilhead)
12662 \end_layout
12663
12664 \begin_layout Itemize
12665
12666 \family sans
12667 横置きスライドタイトル(小)(ShortRotatefoilhead)
12668 \end_layout
12669
12670 \begin_layout Standard
12671 これらの違いは次節で説明します.
12672 \end_layout
12673
12674 \begin_layout Standard
12675 スライドは,アイデアを説明したり,新しい定理を説明したりするのにしばしば使われるので,
12676 \family sans
12677 Foil
12678 \family default
12679 \SpecialChar TeX
12680 はそれらを説明するのに便利な環境を幅広く用意しています.
12681 \end_layout
12682
12683 \begin_layout Standard
12684
12685 \family sans
12686 \begin_inset Flex Multiple Columns
12687 status open
12688
12689 \begin_layout Itemize
12690
12691 \family sans
12692 定理
12693 \end_layout
12694
12695 \begin_layout Itemize
12696
12697 \family sans
12698 補題
12699 \end_layout
12700
12701 \begin_layout Itemize
12702
12703 \family sans
12704
12705 \end_layout
12706
12707 \begin_layout Itemize
12708
12709 \family sans
12710 命題
12711 \end_layout
12712
12713 \begin_layout Itemize
12714
12715 \family sans
12716 定義
12717 \end_layout
12718
12719 \begin_layout Itemize
12720
12721 \family sans
12722 証明
12723 \end_layout
12724
12725 \begin_layout Itemize
12726
12727 \family sans
12728 定理*
12729 \end_layout
12730
12731 \begin_layout Itemize
12732
12733 \family sans
12734 補題*
12735 \end_layout
12736
12737 \begin_layout Itemize
12738
12739 \family sans
12740 系*
12741 \end_layout
12742
12743 \begin_layout Itemize
12744
12745 \family sans
12746 命題*
12747 \end_layout
12748
12749 \begin_layout Itemize
12750
12751 \family sans
12752 定義*
12753 \end_layout
12754
12755 \end_inset
12756
12757
12758 \end_layout
12759
12760 \begin_layout Standard
12761 星付き版は連番が振られず,星なし版は連番が振られます.他に,\SpecialChar LyX
12762 で追加された以下の2つの箇条書き環境があります.
12763 \end_layout
12764
12765 \begin_layout Itemize
12766
12767 \family sans
12768 箇条書き(チック)
12769 \end_layout
12770
12771 \begin_layout Itemize
12772
12773 \family sans
12774 箇条書き(クロス)
12775 \end_layout
12776
12777 \begin_layout Standard
12778 Foil\SpecialChar TeX
12779 には,強力なヘッダ機能とフッタ機能があり,これらはプリアンブルで設定するのが最良ですが,文章中のどこでも設定することができます.もし文書中でこれらの設定
12780 を変更したい場合には,スライドの一番上,foilheadの直後で行うのが良いでしょう.
12781 \end_layout
12782
12783 \begin_layout Standard
12784 この目的のためには,以下のコマンドスタイルがあります(
12785 \shape smallcaps
12786 Martin Vermeer).
12787 \end_layout
12788
12789 \begin_layout Standard
12790 \begin_inset Flex Multiple Columns
12791 status open
12792
12793 \begin_layout Itemize
12794
12795 \family sans
12796 グラフィックスロゴ
12797 \end_layout
12798
12799 \begin_layout Itemize
12800
12801 \family sans
12802 配布制限
12803 \end_layout
12804
12805 \begin_layout Itemize
12806
12807 \family sans
12808 右フッタ
12809 \end_layout
12810
12811 \begin_layout Itemize
12812
12813 \family sans
12814 右ヘッダ
12815 \end_layout
12816
12817 \begin_layout Itemize
12818
12819 \family sans
12820 左ヘッダ
12821 \end_layout
12822
12823 \begin_deeper
12824 \begin_layout Plain Layout
12825 \begin_inset space ~
12826 \end_inset
12827
12828
12829 \end_layout
12830
12831 \end_deeper
12832 \end_inset
12833
12834
12835 \end_layout
12836
12837 \begin_layout Standard
12838 Foil\SpecialChar TeX
12839 が提供しているコマンドで,\SpecialChar LyX
12840 が直接サポートしていないコマンドもありますが,これらの説明と使い方については,第
12841 \begin_inset CommandInset ref
12842 LatexCommand ref
12843 reference "sec:unsuppfoils"
12844
12845 \end_inset
12846
12847 節で行います.
12848 \end_layout
12849
12850 \begin_layout Subsection
12851 スライドの組を作る
12852 \end_layout
12853
12854 \begin_layout Standard
12855 この節は,様々な環境を使ってスライドの組を作る方法を簡単に紹介します.スライド組の例をご覧になりたい場合は,\SpecialChar LyX
12856
12857 \family typewriter
12858 examples
12859 \family default
12860 フォルダにある
12861 \family typewriter
12862 Foils.lyx
12863 \family default
12864 ファイルをご覧ください.
12865 \end_layout
12866
12867 \begin_layout Subsubsection
12868 タイトルページを作る
12869 \end_layout
12870
12871 \begin_layout Standard
12872
12873 \family sans
12874 タイトル
12875 \family default
12876
12877 \family sans
12878 著者
12879 \family default
12880
12881 \family sans
12882 日付
12883 \family default
12884
12885 \family sans
12886 概要
12887 \family default
12888 環境のある他のクラスとは異なり,
12889 \family sans
12890 foils
12891 \family default
12892 は独立したページにタイトルを作成します.
12893 \family sans
12894 日付
12895 \family default
12896 環境を使用しなかった場合には,\SpecialChar LaTeX
12897 は(出力を生成し直したときにはいつも)その時点の日付を挿入します.
12898 \end_layout
12899
12900 \begin_layout Subsubsection
12901 新しいスライドを開始する
12902 \end_layout
12903
12904 \begin_layout Standard
12905 前述のように,新しいスライドを開始するには,4つの方法があります.縦向きのスライドを開始するには,
12906 \family sans
12907 スライドタイトル(Foilhead)
12908 \family default
12909
12910 \family sans
12911 スライドタイトル(小)(ShortFoilhead)
12912 \family default
12913 を使用します.両環境の違いは,スライドタイトル(foilhead)とスライド本文の間の余白の違いです.
12914 \end_layout
12915
12916 \begin_layout Standard
12917 横向きのスライドは,
12918 \family sans
12919 横向きスライドタイトル(Rotatefoilhead)
12920 \family default
12921 か横向きスライドタイトル(小)(
12922 \family sans
12923 ShortRotatefoilhead)
12924 \family default
12925 環境を使用して生成します.ここでも両環境の違いは,タイトルと本文の間の余白のみです.どちらの場合も,(小)と記された版は,タイトルと本文の間の余白が,0.5インチ
12926 (約1.27cm)小さくなります.
12927 \end_layout
12928
12929 \begin_layout Standard
12930 横向きのスライドをサポートする際,一つ問題となるのは,スライドを回転させようと思うと,PostScript出力を生成するのに
12931 \family typewriter
12932 dvips
12933 \family default
12934 ドライバを使用することを要求してしまうことです.もしスライドをプリンタに横に給紙することができれば,
12935 \family typewriter
12936 dvips
12937 \family default
12938 ドライバを持っていなくても,横向きのスライドをつくることができます ;-)
12939 \end_layout
12940
12941 \begin_layout Subsubsection
12942 定理・補題・証明など
12943 \end_layout
12944
12945 \begin_layout Standard
12946 \SpecialChar LyX
12947 中の小さなバグによって,これらの環境の同じ型をお互いに直接続けて置くことはできません.これらは何かによって分離されなくてはなりません.仮に二つ続けて置いても,2
12948 つの環境をマージしたかのように,前の環境が延長されるだけです.この問題を回避するにはどうすればよいのでしょうか.最も簡単な方法は,二つの環境の間に何か文章を置く
12949 か,あるいは二つの間に「
12950 \family typewriter
12951 %
12952 \family default
12953 」だけから成る\SpecialChar LaTeX
12954 環境を置くことです.これによって,\SpecialChar LyX
12955 は2つの別々の環境を生成するように強制され,正しい\SpecialChar LaTeX
12956 出力を得ることができます.\SpecialChar LyX
12957 頒布版に含まれる用例ファイルに例があ
12958 ります.この問題は,二つの同じ定理型環境を立て続けに置こうとした場合にのみ発生することに注意してください.
12959 \end_layout
12960
12961 \begin_layout Subsubsection
12962 箇条書き
12963 \end_layout
12964
12965 \begin_layout Standard
12966 他のクラスでも共通にサポートされている箇条書き様式すべてに加えて,二つの新しい様式を使用することができます.ここでは,その新しい様式のみを説明することにします.
12967 他の箇条書き環境について詳しく知りたい場合には,
12968 \emph on
12969 ユーザーの手引き
12970 \emph default
12971 をご覧ください.記号による箇条書きを使用したい場合には,上記第
12972 \begin_inset CommandInset ref
12973 LatexCommand ref
12974 reference "sec:ブリット"
12975
12976 \end_inset
12977
12978 節の
12979 \family sans
12980 箇条書き(記号)ブリットの指定
12981 \family default
12982 の節も,読まれることが望ましいでしょう.
12983 \end_layout
12984
12985 \begin_layout Standard
12986
12987 \family sans
12988 箇条書き(チック)
12989 \family default
12990
12991 \family sans
12992 箇条書き(クロス)
12993 \family default
12994 の二つの新しい様式は,チェック印や
12995 \begin_inset Formula $\times$
12996 \end_inset
12997
12998 印を箇条書きのラベルに使用する専用の環境を提供することで,予定一覧や正誤一覧を作りやすくするように設計されたものです.これらの箇条書きは,
12999 \family sans
13000 箇条書き(記号)
13001 \family default
13002 の派生型を専用に用意したものに過ぎません.ただし,これらは,
13003 \family typewriter
13004 psnfss
13005 \family default
13006 パッケージが導入済であることを要求します.
13007 \end_layout
13008
13009 \begin_layout Subsubsection
13010 図と表
13011 \end_layout
13012
13013 \begin_layout Standard
13014 Foil\SpecialChar TeX
13015 では,図表フロートは,本文中の挿入箇所にこれらが正確に表示されるように再定義されており,ページの上部やユーザー指定場所に押しのけたりはしないようになって
13016 います.たとえフロート配置の設定に変更を加えたとしても,単に無視されます.
13017 \end_layout
13018
13019 \begin_layout Subsubsection
13020 ページヘッダおよびページフッタ
13021 \begin_inset CommandInset label
13022 LatexCommand label
13023 name "sec:foilfoot"
13024
13025 \end_inset
13026
13027
13028 \end_layout
13029
13030 \begin_layout Standard
13031
13032 \family sans
13033 グラフィックスロゴ
13034 \family default
13035
13036 \family sans
13037 配布制限
13038 \family default
13039 の二つは,左フッタ文を制御するものです.前者は,グラフィックスのロゴをスライドに入れるためのもので,既定値は「-Typeset by 
13040 \family sans
13041 Foil
13042 \family default
13043 \SpecialChar TeX
13044 -」となっています.後者は,「機密事項」などのように,聴衆に秘密区分を提示することを意図しています.既定値では,何も設定されていません.
13045 \end_layout
13046
13047 \begin_layout Standard
13048 スライドの残り三隅には,
13049 \family sans
13050 右フッタ
13051 \family default
13052 (既定ではページ番号)・
13053 \family sans
13054 右ヘッダ
13055 \family default
13056 (右上)・
13057 \family sans
13058 左ヘッダ
13059 \family default
13060 (左上)を使って文字を入れることができます.
13061 \end_layout
13062
13063 \begin_layout Subsection
13064 サポートされない 
13065 \family sans
13066 Foil
13067 \family default
13068 \SpecialChar TeX
13069 機能
13070 \begin_inset CommandInset label
13071 LatexCommand label
13072 name "sec:unsuppfoils"
13073
13074 \end_inset
13075
13076
13077 \end_layout
13078
13079 \begin_layout Standard
13080 以下で言及されているコマンドは,
13081 \family sans
13082 \SpecialChar LaTeX
13083
13084 \family default
13085 環境内で設定されるか,他の環境中の
13086 \family sans
13087 \SpecialChar TeX
13088 コード
13089 \family default
13090 として設定される必要があります.
13091 \end_layout
13092
13093 \begin_layout Subsubsection
13094 長さ
13095 \end_layout
13096
13097 \begin_layout Standard
13098 長さは,すべて
13099 \family typewriter
13100
13101 \backslash
13102 setlength{
13103 \family default
13104 \emph on
13105 長さ名
13106 \family typewriter
13107 \emph default
13108 }{
13109 \family default
13110 \emph on
13111 新規長さ
13112 \family typewriter
13113 \emph default
13114 }
13115 \family default
13116 コマンドで調節されます.ここで
13117 \emph on
13118 長さ名
13119 \emph default
13120 は,変更したい長さに付けられている名前で置き換え,
13121 \emph on
13122 新規長さ
13123 \emph default
13124 は,その長さの値で置き換えます.長さはすべて,インチ(in)・ミリメートル(mm)・ポイント(pt)のような長さ単位か,
13125 \family typewriter
13126
13127 \backslash
13128 textwidth
13129 \family default
13130 のように文書比あるいはフォント基準の長さで指定する必要があります.
13131 \end_layout
13132
13133 \begin_layout Standard
13134
13135 \family typewriter
13136
13137 \backslash
13138 foilheadskip
13139 \family default
13140 で指定される長さを調節することによって,スライドタイトルとスライド本文の間の余白を変更することができます.たとえば,スライドタイトルをすべて0.5
13141 \begin_inset space \space{}
13142 \end_inset
13143
13144 inだけスライド本文に近づけるには,プリアンブルに
13145 \family typewriter
13146
13147 \backslash
13148 setlength{
13149 \backslash
13150 foilheadskip}{-0.5in}
13151 \family default
13152 と書き込みます.
13153 \end_layout
13154
13155 \begin_layout Standard
13156 フロート周囲の余白は,以下の長さを設定することで調整することができます.
13157 \end_layout
13158
13159 \begin_layout Labeling
13160 \labelwidthstring MMMMMMMMMMM
13161
13162 \family typewriter
13163
13164 \backslash
13165 abovefloatskip
13166 \family default
13167  本文とフロート上辺との間隔
13168 \end_layout
13169
13170 \begin_layout Labeling
13171 \labelwidthstring MMMMMMMMMMM
13172
13173 \family typewriter
13174
13175 \backslash
13176 abovecaptionskip
13177 \family default
13178  フロートとキャプションとの間隔
13179 \end_layout
13180
13181 \begin_layout Labeling
13182 \labelwidthstring MMMMMMMMMMM
13183
13184 \family typewriter
13185
13186 \backslash
13187 belowcaptionskip
13188 \family default
13189  キャプションとそれに続く本文との間隔
13190 \end_layout
13191
13192 \begin_layout Labeling
13193 \labelwidthstring MMMMMMMMMMM
13194
13195 \family typewriter
13196
13197 \backslash
13198 captionwidth
13199 \family default
13200  この長さを調整することでキャプションを,周囲の本文より短くすることができます.
13201 \family typewriter
13202
13203 \backslash
13204 textwidth
13205 \family default
13206 に対する相対的な長さで調整するのが最も良いでしょう.
13207 \end_layout
13208
13209 \begin_layout Standard
13210 以下のようなタイトルページ関連の長さもあり,タイトルが長い場合や,著者が複数いる場合に使うと便利かもしれません.
13211 \end_layout
13212
13213 \begin_layout Labeling
13214 \labelwidthstring MMMMMMMMMMM
13215
13216 \family typewriter
13217
13218 \backslash
13219 abovetitleskip
13220 \family default
13221  へッダとタイトルとの間隔
13222 \end_layout
13223
13224 \begin_layout Labeling
13225 \labelwidthstring MMMMMMMMMMM
13226
13227 \family typewriter
13228
13229 \backslash
13230 titleauthorskip
13231 \family default
13232  
13233 \family sans
13234 タイトル
13235 \family default
13236 環境と
13237 \family sans
13238 著者
13239 \family default
13240 環境との間隔
13241 \end_layout
13242
13243 \begin_layout Labeling
13244 \labelwidthstring MMMMMMMMMMM
13245
13246 \family typewriter
13247
13248 \backslash
13249 authorauthorskip
13250 \family default
13251  著者が複数いる場合の
13252 \family sans
13253 著者
13254 \family default
13255 行の間隔
13256 \end_layout
13257
13258 \begin_layout Labeling
13259 \labelwidthstring MMMMMMMMMMM
13260
13261 \family typewriter
13262
13263 \backslash
13264 authordateskip
13265 \family default
13266  
13267 \family sans
13268 著者
13269 \family default
13270
13271 \family sans
13272 日付
13273 \family default
13274 との間隔
13275 \end_layout
13276
13277 \begin_layout Labeling
13278 \labelwidthstring MMMMMMMMMMM
13279
13280 \family typewriter
13281
13282 \backslash
13283 dateabstractskip
13284 \family default
13285  
13286 \family sans
13287 日付
13288 \family default
13289
13290 \family sans
13291 概要
13292 \family default
13293 との間隔
13294 \end_layout
13295
13296 \begin_layout Standard
13297 最後に紹介する長さ関連コマンドは,箇条書き環境すべてに使用できるものです.
13298 \family typewriter
13299
13300 \backslash
13301 zerolistvertdimens
13302 \family default
13303 を箇条書き環境の内側に置くと,項目間の垂直余白がすべて取り除かれます.これは長さではなくコマンドなので,上述のもののように
13304 \family typewriter
13305
13306 \backslash
13307 setlength
13308 \family default
13309 を使う必要がないことに注意してください.
13310 \end_layout
13311
13312 \begin_layout Subsubsection
13313 へッダとフッタ
13314 \end_layout
13315
13316 \begin_layout Standard
13317
13318 \family typewriter
13319
13320 \backslash
13321 LogoOn
13322 \family default
13323 および
13324 \family typewriter
13325
13326 \backslash
13327 LogoOff
13328 \family default
13329 は,
13330 \family typewriter
13331 MyLogo
13332 \family default
13333 で定義したロゴを特定のページに入れるかどうかを制御します.
13334 \family typewriter
13335
13336 \backslash
13337 LogoOff
13338 \family default
13339 をプリアンブルに入れると,全スライドからロゴが取り除かれます.特定のスライドにのみロゴを付けたくない場合は,当該ページのスライドタイトルの直後に直接
13340 \family typewriter
13341
13342 \backslash
13343 LogoOff
13344 \family default
13345 を置き,次のスライドタイトルの直後に直接
13346 \family typewriter
13347
13348 \backslash
13349 LogoOn
13350 \family default
13351 を置いてください.
13352 \end_layout
13353
13354 \begin_layout Standard
13355
13356 \family sans
13357 文書レイアウト
13358 \family default
13359 ダイアログで
13360 \family sans
13361 fancy
13362 \family default
13363 ページ様式を使用することを選択した場合には,横置きページのヘッダとフッタが回転後も正しく配置されるように,プリアンブルに
13364 \family typewriter
13365
13366 \backslash
13367 let
13368 \backslash
13369 headwidth
13370 \backslash
13371 textwidth
13372 \family default
13373 を加える必要があるでしょう.これは,
13374 \family sans
13375 fancyheadings
13376 \family default
13377 パッケージが提供するページレイアウトと
13378 \family sans
13379 foils
13380 \family default
13381 クラスの提供するページレイアウトの間に衝突が発生するためです.
13382 \end_layout
13383
13384 \begin_layout Section
13385 Hollywood(Hollywoodスペック・スクリプト)
13386 \end_layout
13387
13388 \begin_layout Standard
13389
13390 \noun on
13391 Garst Reese
13392 \noun default
13393
13394 \end_layout
13395
13396 \begin_layout Subsection
13397 はじめに
13398 \end_layout
13399
13400 \begin_layout Standard
13401 脚本を正しい書式で書くことは,ハリウッドにおける「通過儀礼」です.ハリウッドの脚本は,読み手が内容に集中できるようにし,俳優にとっても読みやすくかつ親しみやすい
13402 ように設計されています.脚本の1ページは,映画の1分でなければならず,銀幕上で見えたり聞こえたりしないものは,脚本に混入してはなりません.また,全体を通してCo
13403 urier 12
13404 \begin_inset space \space{}
13405 \end_inset
13406
13407 ptフォントを使わなければならず,イタリック体は用いてはいけません.
13408 \end_layout
13409
13410 \begin_layout Subsection
13411 特別な問題
13412 \end_layout
13413
13414 \begin_layout Standard
13415 話者の行は,文の途中で改行することは
13416 \emph on
13417 決して
13418 \emph default
13419 あってはなりません.もし話者行の塊が,次頁にまたがる場合には,
13420 \family sans
13421 話者
13422 \family default
13423 名を再度書き,その後に(Cont'd)と加えます.
13424 \end_layout
13425
13426 \begin_layout Subsection
13427 特別な機能
13428 \end_layout
13429
13430 \begin_layout Standard
13431
13432 \family sans
13433 話者
13434 \family default
13435 名はラベルとして挿入し,話者名を挿入するには,そのラベルを相互参照してください.相互参照ダイアログは,登場人物の現在の配役を表示することになります.これは,ト書
13436 きに話者名を挿入するのにも使用することができます.
13437 \end_layout
13438
13439 \begin_layout Subsection
13440 用紙寸法と余白
13441 \end_layout
13442
13443 \begin_layout Standard
13444 USレター寸法で,左余白1.6インチ・右余白0.75インチ・上余白0.5インチ・下余白0.75インチです.
13445 \end_layout
13446
13447 \begin_layout Subsection
13448 環境
13449 \end_layout
13450
13451 \begin_layout Standard
13452 以下の環境が利用可能です.右に示されている
13453 \begin_inset Flex Ruby
13454 status collapsed
13455
13456 \begin_layout Plain Layout
13457
13458 \begin_inset Argument post:1
13459 status collapsed
13460
13461 \begin_layout Plain Layout
13462 キー
13463 \end_layout
13464
13465 \end_inset
13466
13467
13468 \end_layout
13469
13470 \end_inset
13471
13472 割当てを使用するには,hollywood.bindを使用してください.
13473 \end_layout
13474
13475 \begin_layout Itemize
13476
13477 \family sans
13478 一般
13479 \begin_inset Newline newline
13480 \end_inset
13481
13482
13483 \family default
13484 他の環境が動作しない場合に使用しますが,これを使うことは避けるようにしてください.
13485 \end_layout
13486
13487 \begin_layout Itemize
13488 フェイドイン:
13489 \begin_inset space \hfill{}
13490 \end_inset
13491
13492
13493 \family sans
13494 M-z S-I
13495 \family default
13496
13497 \begin_inset Newline newline
13498 \end_inset
13499
13500 通常,この後には「Sallyは目を覚ますと」のように続きます.
13501 \end_layout
13502
13503 \begin_layout Itemize
13504
13505 \family sans
13506 屋内:
13507 \begin_inset space \hfill{}
13508 \end_inset
13509
13510 M-z i
13511 \begin_inset Newline newline
13512 \end_inset
13513
13514
13515 \family default
13516 新しい屋内(INTERIOR)カメラの設定を指定します.この後には,かならずDAYやNIGHTなどを指定して,必要な照明を定義します.この行はすべて大文字で書き
13517 ます.
13518 \end_layout
13519
13520 \begin_layout Itemize
13521
13522 \family sans
13523 屋外:
13524 \begin_inset space \hfill{}
13525 \end_inset
13526
13527 M-z e
13528 \begin_inset Newline newline
13529 \end_inset
13530
13531
13532 \family default
13533 屋外(EXTERIOR)カメラの設定を指定します.この行はすべて大文字で書きます.
13534 \end_layout
13535
13536 \begin_layout Itemize
13537
13538 \family sans
13539 話者
13540 \begin_inset space \hfill{}
13541 \end_inset
13542
13543 M-z s
13544 \begin_inset Newline newline
13545 \end_inset
13546
13547
13548 \family default
13549 話す役.
13550 \end_layout
13551
13552 \begin_layout Itemize
13553
13554 \family sans
13555 括弧付き
13556 \begin_inset space \hfill{}
13557 \end_inset
13558
13559 M-z p
13560 \begin_inset Newline newline
13561 \end_inset
13562
13563 話者
13564 \family default
13565 への指示.自動的に括弧()が挿入されますが,\SpecialChar LyX
13566 上で表示されるのは,左括弧( のみです.印刷出力には右括弧も表示されます.
13567 \end_layout
13568
13569 \begin_layout Itemize
13570
13571 \family sans
13572 対話
13573 \begin_inset space \hfill{}
13574 \end_inset
13575
13576 M-z d
13577 \begin_inset Newline newline
13578 \end_inset
13579
13580 話者
13581 \family default
13582 が話す内容.
13583 \end_layout
13584
13585 \begin_layout Itemize
13586
13587 \family sans
13588 画面遷移
13589 \begin_inset space \hfill{}
13590 \end_inset
13591
13592 M-z t
13593 \begin_inset Newline newline
13594 \end_inset
13595
13596
13597 \family default
13598 カメラの動きの指示.例:CUT TO:.
13599 \end_layout
13600
13601 \begin_layout Itemize
13602
13603 \family sans
13604 フェイドアウト:
13605 \begin_inset space \hfill{}
13606 \end_inset
13607
13608 M-z S-I
13609 \end_layout
13610
13611 \begin_layout Itemize
13612
13613 \family sans
13614 著者
13615 \begin_inset space \hfill{}
13616 \end_inset
13617
13618 M-z S-A
13619 \end_layout
13620
13621 \begin_layout Itemize
13622
13623 \family sans
13624 タイトル
13625 \begin_inset space \hfill{}
13626 \end_inset
13627
13628 M-z S-T
13629 \end_layout
13630
13631 \begin_layout Itemize
13632
13633 \family sans
13634 右寄せ住所
13635 \begin_inset space \hfill{}
13636 \end_inset
13637
13638 M-z r
13639 \end_layout
13640
13641 \begin_layout Subsection
13642 脚本で使われる特別な用語
13643 \end_layout
13644
13645 \begin_layout Itemize
13646 (O.S) — off screen
13647 \end_layout
13648
13649 \begin_layout Itemize
13650 (V.0) — voice over
13651 \end_layout
13652
13653 \begin_layout Itemize
13654 b.g.
13655  — background
13656 \end_layout
13657
13658 \begin_layout Itemize
13659 C.U.
13660  — close-up
13661 \end_layout
13662
13663 \begin_layout Itemize
13664 PAN — camera movement
13665 \end_layout
13666
13667 \begin_layout Itemize
13668 INSERT — cut to close-up of
13669 \end_layout
13670
13671 \begin_layout Section
13672 ijmpcおよびijmpd
13673 \end_layout
13674
13675 \begin_layout Standard
13676
13677 \noun on
13678 Panayotis Papasotiriou
13679 \noun default
13680
13681 \end_layout
13682
13683 \begin_layout Subsection
13684 概観
13685 \end_layout
13686
13687 \begin_layout Standard
13688 ijpmcパッケージは,
13689 \emph on
13690 International Journal of Modern Physics C
13691 \emph default
13692 への電子投稿を可能にするためのマクロ集です.同様に,ijpmdパッケージは,
13693 \emph on
13694 International Journal of Modern Physics D
13695 \emph default
13696 へ投稿する現行を作成するためのものです.両誌ともWorld Scientific社の刊行です.対応する文書クラス名は,それぞれ
13697 \family typewriter
13698 ws-ijmpc.cls
13699 \family default
13700 および
13701 \family typewriter
13702 ws-ijmpd.cls
13703 \family default
13704 です.これらのファイルは,著者のための指針とともに,
13705 \begin_inset Flex URL
13706 status collapsed
13707
13708 \begin_layout Plain Layout
13709
13710 http://www.worldscinet.com/ijmpc/mkt/guidelines.shtml
13711 \end_layout
13712
13713 \end_inset
13714
13715 および
13716 \begin_inset Flex URL
13717 status collapsed
13718
13719 \begin_layout Plain Layout
13720
13721 http://www.worldscinet.com/ijmpd/mkt/guidelines.shtml
13722 \end_layout
13723
13724 \end_inset
13725
13726 の各サイトからダウンロードすることができます.両パッケージは,標準「article」パッケージの修正版であり,両者は(一部を除き)ほぼ同一です.\SpecialChar LyX
13727 は,これらのパッ
13728 ケージのほとんどの機能をサポートしています.私は両誌へ投稿する論文を\SpecialChar LyX
13729 で書き上げましたが,何らの問題も生じませんでした.
13730 \end_layout
13731
13732 \begin_layout Subsection
13733 論文を書く
13734 \end_layout
13735
13736 \begin_layout Standard
13737 通常と同じく,論文を書く上で最も易しい方法は,ひな型を使って書き始めることです.
13738 \family sans
13739 ファイル\SpecialChar menuseparator
13740 新規(ひな型使用)
13741 \family default
13742 をクリックして,ひな型
13743 \family typewriter
13744 ijmpc.lyx
13745 \family default
13746 もしくは
13747 \family typewriter
13748 ijmpd.lyx
13749 \family default
13750 を選択してください.すると,原稿で良く使用されるフィールドを含んだ,ほぼ空の文書ができますので,既存のフィールド(鍵括弧
13751 \family typewriter
13752 <>
13753 \family default
13754 を含む)を正しい情報で置き換えてください.以下の各点にご留意ください.
13755 \end_layout
13756
13757 \begin_layout Enumerate
13758 両パッケージでは,フォント寸法や文書のページ様式を変更することが禁じられているので,\SpecialChar LyX
13759 中でこれらを変更することはできません.
13760 \end_layout
13761
13762 \begin_layout Enumerate
13763 文書言語は変更してはいけません.論文をプレビューする前に,babelパッケージが使用されていないことを確認してください.これは,
13764 \family sans
13765 ツール\SpecialChar menuseparator
13766 設定
13767 \family default
13768 をクリックして,
13769 \family sans
13770 言語オプション
13771 \family default
13772 タブを選択し,言語設定で
13773 \family sans
13774 Babelを使う
13775 \family default
13776 チェックボックスを無効にしてから,
13777 \family sans
13778 適用
13779 \family default
13780 をクリックすれば,設定することができます(この変更を固定するなら
13781 \family sans
13782 保存
13783 \family default
13784 を押してください).
13785 \end_layout
13786
13787 \begin_layout Enumerate
13788 キーワードを定義するに際しては,「キーワード」様式を用いなくてはなりません.
13789 \end_layout
13790
13791 \begin_layout Enumerate
13792 ijmpcパッケージが提供する「分類コード」様式は,PACS番号のような分類コードを定義するのに使用することができます.この機能は,ijmpdパッケージではサポ
13793 ートされていませんので,ご注意ください.
13794 \end_layout
13795
13796 \begin_layout Enumerate
13797 「定義」「ステップ」「例」「注記」「記法」「定理」「証明」「系」「補題」「命題」「命題(Prop)」「問題」「主張」「予想」といった新しい環境を使用することがで
13798 きます.これらの使い方は,大凡自明でしょう.\SpecialChar LyX
13799 は,これらの環境をすべてサポートし,それぞれについて,適切なラベルと文字様式および連番スキームを使用します.
13800 \end_layout
13801
13802 \begin_layout Enumerate
13803 両パッケージは,単純な引用を使用しますので,natbibパッケージは使用してはなりません.\SpecialChar LyX
13804 中では,引用参照は通常通り表示されますが,出力では上付き文字として表示
13805 されます.引用に通常の本文を使用したい場合には,「See Ref.
13806 \begin_inset space \space{}
13807 \end_inset
13808
13809
13810 \family typewriter
13811
13812 \backslash
13813 refcite{
13814 \family default
13815
13816 \begin_inset Flex Ruby
13817 status collapsed
13818
13819 \begin_layout Plain Layout
13820
13821 \family typewriter
13822
13823 \family default
13824
13825 \begin_inset Argument post:1
13826 status collapsed
13827
13828 \begin_layout Plain Layout
13829 キー
13830 \end_layout
13831
13832 \end_inset
13833
13834
13835 \end_layout
13836
13837 \end_inset
13838
13839
13840 \family typewriter
13841 }
13842 \family default
13843 」のように
13844 \family typewriter
13845 refcite
13846 \family default
13847 コマンドを使用してください.
13848 \end_layout
13849
13850 \begin_layout Enumerate
13851 両パッケージには,「謝辞」環境がありません.謝辞を置くには,「節*」環境を使用してください.
13852 \end_layout
13853
13854 \begin_layout Enumerate
13855 付録は,論文中,謝辞の
13856 \emph on
13857
13858 \emph default
13859 かつ書誌情報の
13860 \emph on
13861
13862 \emph default
13863 であれば,入れることができます.\SpecialChar LyX
13864 上では,「付録領域」という特別な環境があり,これを使って付録の開始位置を指定することができます.この環境は空のままにしておかなく
13865 てはなりません.この環境は,\SpecialChar LaTeX
13866 コマンドを書き出すだけで,実際に出力は行いません.\SpecialChar LyX
13867 上では,青字で「Appendix」という単語が表示され,この箇所より後の節はすべて
13868 付録であることを明示します.「付録領域」は,最初の付録の前に
13869 \emph on
13870 なくてはならない
13871 \emph default
13872 ことに注意してください.さもなくば,出力中において,付録はすべて通常の節として連番が振られてしまいます.
13873 \end_layout
13874
13875 \begin_layout Enumerate
13876 ijmpcおよびijmpdパッケージは,表キャプションを実装するのに
13877 \family typewriter
13878 tbl
13879 \family default
13880 コマンドを使用します.そのため,\SpecialChar LyX
13881 が作成した表は正しく印字されますが,そのキャプションは無視されます.しかし,\SpecialChar TeX
13882 コードを少し使えば,この問題を回避して,キャプション
13883 を望み通り印字することができるようになります.そうするには,表フロートを通常通り作成して,キャプションを削除し,代わりに\SpecialChar TeX
13884 コードで
13885 \family typewriter
13886
13887 \backslash
13888 tbl{表キャプション}{
13889 \family default
13890 (ママ)と入れます.そこに表の内容を入れて,直後を\SpecialChar TeX
13891 コード
13892 \family typewriter
13893 }
13894 \family default
13895 で閉じてください.このからくりがどのように実装されているかを見るには,ひな型ファイルに入っている表の例を精査してみてください.別の方法としては,表キャプションが
13896 欲しい場合に,表フロート全体を
13897 \family typewriter
13898 .tex
13899 \family default
13900 ファイルに収め,このファイルを\SpecialChar LyX
13901 文書に取り込んでください(
13902 \family sans
13903 挿入\SpecialChar menuseparator
13904 ファイル\SpecialChar menuseparator
13905 子文書
13906 \family default
13907 ).表フロートの作り方についての詳細は,各パッケージに含まれている
13908 \family typewriter
13909 ws-ijmpc.tex
13910 \family default
13911 または
13912 \family typewriter
13913 ws-ijmpd.tex
13914 \family default
13915 ファイルをご覧ください.
13916 \end_layout
13917
13918 \begin_layout Subsection
13919 原稿を投稿するための準備
13920 \end_layout
13921
13922 \begin_layout Standard
13923 論文を投稿する前には,\SpecialChar LyX
13924 文書を\SpecialChar LaTeX
13925 ファイルに書き出し(
13926 \family sans
13927 ファイル\SpecialChar menuseparator
13928 書き出し\SpecialChar menuseparator
13929 \SpecialChar LaTeX
13930
13931 \family default
13932 )
13933 \begin_inset Foot
13934 status open
13935
13936 \begin_layout Plain Layout
13937 実は,\SpecialChar LaTeX
13938  (plain)とpdflatexとの間で選択ができます.論文を準備するのにpdflatexを使用しようとするのであれば,取り込んである画像がPDF形式に
13939 変換され,pdflatexで使用できるように,pdflatexオプションを指定しなくてはなりません.
13940 \end_layout
13941
13942 \end_inset
13943
13944 ,その
13945 \family typewriter
13946 .tex
13947 \family default
13948 ファイルに以下の変更を加える必要があります.
13949 \end_layout
13950
13951 \begin_layout Enumerate
13952
13953 \family typewriter
13954
13955 \backslash
13956 documentclass
13957 \family default
13958 コマンドより前にあるコメント行を削除する.
13959 \end_layout
13960
13961 \begin_layout Enumerate
13962 自身で明示的に\SpecialChar LaTeX
13963 プリアンブルに置いたコマンドを除き,
13964 \family typewriter
13965
13966 \backslash
13967 makeatletter
13968 \family default
13969 コマンドと
13970 \family typewriter
13971
13972 \backslash
13973 makeatother
13974 \family default
13975 コマンドの間にあるものをすべて削除する.
13976 \end_layout
13977
13978 \begin_layout Standard
13979 こうして修正を加えた
13980 \family typewriter
13981 .tex
13982 \family default
13983 ファイルを保存し,必要な回数\SpecialChar LaTeX
13984 で処理してください.それによって得られた
13985 \family typewriter
13986 .dvi
13987 \family default
13988 文書も確認された方がよろしいでしょう.
13989 \end_layout
13990
13991 \begin_layout Subsection
13992 \SpecialChar TeX
13993 コードの使用
13994 \end_layout
13995
13996 \begin_layout Standard
13997 \SpecialChar TeX
13998 コードを使用するのは,2つのコマンドに限られ,これらは文書の最初に置かれなくてはなりません.論文をひな型
13999 \family typewriter
14000 ijmpc.lyx
14001 \family default
14002 または
14003 \family typewriter
14004 ijmpd.lyx
14005 \family default
14006 を使用して書き始めた場合には,これら必要な\SpecialChar TeX
14007 コードは,すでに書き込まれています.通常,これらを削除する必要はありません.2つのうち1番めの\SpecialChar TeX
14008 コードのみが,奇数ページ
14009 および偶数ページの上部に印字する情報(それぞれ著者名と論文の短縮タイトル)を指定するために,修正する必要があります.この\SpecialChar TeX
14010 コードは,
14011 \family typewriter
14012
14013 \backslash
14014 markboth{著者名}{論文の短縮タイトル}
14015 \family default
14016 という形である必要があります.
14017 \end_layout
14018
14019 \begin_layout Section
14020 iopart
14021 \end_layout
14022
14023 \begin_layout Standard
14024
14025 \noun on
14026 Uwe Stöhr
14027 \noun default
14028
14029 \end_layout
14030
14031 \begin_layout Subsection
14032 概要
14033 \end_layout
14034
14035 \begin_layout Standard
14036 iopartパッケージは,Institute of Physics(イギリス物理学会)発行の学術誌へ電子的に投稿する原稿を作成するための文書クラスを提供していま
14037 す.iopartクラスを使用した論文作成方法の著者用説明書は,ウェブサイト
14038 \begin_inset Flex URL
14039 status collapsed
14040
14041 \begin_layout Plain Layout
14042
14043 ftp://ftp.iop.org/pub/journals/latex2e
14044 \end_layout
14045
14046 \end_inset
14047
14048 からiopartパッケージとともにダウンロード可能です.
14049 \end_layout
14050
14051 \begin_layout Subsection
14052 論文を書く
14053 \end_layout
14054
14055 \begin_layout Standard
14056 論文を書くもっとも簡単な方法は,\SpecialChar LyX
14057 の用例ファイルフォルダにある
14058 \emph on
14059 IOP-article.lyx
14060 \emph default
14061 を土台にすることです.このファイルを開き,新しい名前で保存して,書き始めてください.この用例ファイルは,特定の環境の使用法についても説明しています.もっとも重要
14062 な助言として,以下の点にご注意ください.
14063 \end_layout
14064
14065 \begin_layout Itemize
14066 文書がPDF・PS・DVIにコンパイルできるようにするためには,文書設定の
14067 \family sans
14068 数式オプション
14069 \family default
14070 で,二つの
14071 \family sans
14072 AMS mathパッケージを使う
14073 \family default
14074 関連オプションが有効になっていないことを確認してください!
14075 \end_layout
14076
14077 \begin_layout Itemize
14078 タイトル環境の選択如何によって,論文の種類が定義されます.種類毎に以下の環境をタイトルに使用してください.
14079 \end_layout
14080
14081 \begin_deeper
14082 \begin_layout Itemize
14083 論文用には
14084 \family sans
14085 タイトル
14086 \end_layout
14087
14088 \begin_layout Itemize
14089 Review用には
14090 \family sans
14091 Review
14092 \end_layout
14093
14094 \begin_layout Itemize
14095 Topical review用には
14096 \family sans
14097 Topical
14098 \end_layout
14099
14100 \begin_layout Itemize
14101 Comment用には
14102 \family sans
14103 Comment
14104 \end_layout
14105
14106 \begin_layout Itemize
14107 Note用には
14108 \family sans
14109 注釈
14110 \end_layout
14111
14112 \begin_layout Itemize
14113 論文用には
14114 \family sans
14115 Paper
14116 \family default
14117 (タイトルと同じ)
14118 \end_layout
14119
14120 \begin_layout Itemize
14121 Preliminary communication用には
14122 \family sans
14123 Prelim
14124 \end_layout
14125
14126 \begin_layout Itemize
14127 Rapid communication用には
14128 \family sans
14129 Rapid
14130 \end_layout
14131
14132 \begin_layout Itemize
14133 編集者へのLetterには
14134 \family sans
14135 書簡
14136 \end_layout
14137
14138 \end_deeper
14139 \begin_layout Itemize
14140
14141 \family sans
14142 書簡
14143 \family default
14144 以外のタイトル環境には,すべて短縮タイトルをつけることもできます.
14145 \end_layout
14146
14147 \begin_layout Itemize
14148 \SpecialChar LyX
14149 では直接にサポートされていませんが,一般的なタイトル環境として
14150 \family sans
14151 Article
14152 \family default
14153 があります.執筆する文書が,他のタイトル型にそぐわない場合には,\SpecialChar TeX
14154 コードでこれを指定することができます.
14155 \end_layout
14156
14157 \begin_layout Standard
14158 特別な表や数式組版に関するヒントなど,詳しい情報については,IOP著者用ガイドラインを参照してください.
14159 \end_layout
14160
14161 \begin_layout Section
14162 Kluwer
14163 \end_layout
14164
14165 \begin_layout Standard
14166
14167 \noun on
14168 Panayotis Papasotiriou
14169 \noun default
14170
14171 \end_layout
14172
14173 \begin_layout Subsection
14174 概要
14175 \end_layout
14176
14177 \begin_layout Standard
14178 Kluwerパッケージは,Kluwer Academic Publishers社が発行する学術誌への電子投稿を可能にするために,同社が作成したマクロ集です.同社
14179 の発行誌のうち,(少なくとも私の専門内で)もっともよく知られているものは,
14180 \emph on
14181 Astrophysics and Space Science
14182 \emph default
14183 (『宇宙物理学と宇宙科学』)と
14184 \emph on
14185 Solar Physics
14186 \emph default
14187 (『太陽系物理学』)ですが,他にも多くの学術誌があります(
14188 \begin_inset Flex URL
14189 status collapsed
14190
14191 \begin_layout Plain Layout
14192
14193 http://www.wkap.nl/jrnllist.htm/JRNLHOME
14194 \end_layout
14195
14196 \end_inset
14197
14198 に全覧があります).Kluwerパッケージは,
14199 \begin_inset Flex URL
14200 status collapsed
14201
14202 \begin_layout Plain Layout
14203
14204 http://www.wkap.nl/kaphtml.htm/STYLEFILES
14205 \end_layout
14206
14207 \end_inset
14208
14209 からダウンロードできます.完全なユーザーの手引きも同パッケージ内に収録されています(個別にダウンロードすることも可能です).
14210 \end_layout
14211
14212 \begin_layout Standard
14213 \SpecialChar LyX
14214 は,このパッケージの機能の多くをサポートしていますが,すべてではありません.しかし,\SpecialChar TeX
14215 コードを必要とするのは,パッケージ中のいくつかの「変わった」コマンドだけにな
14216 りました(
14217 \begin_inset CommandInset ref
14218 LatexCommand ref
14219 reference "subsec:kluwer_peculiarities"
14220
14221 \end_inset
14222
14223 参照).最近,私は\SpecialChar LyX
14224 を使って書いた論文を
14225 \emph on
14226 Astrophysics and Space Science
14227 \emph default
14228 に投稿しましたが,何らの問題も発生しませんでした.
14229 \end_layout
14230
14231 \begin_layout Subsection
14232 論文を書く
14233 \end_layout
14234
14235 \begin_layout Standard
14236 論文を書き始めるには,ひな型ファイルKluwerを使うのが最も簡単です.
14237 \family sans
14238 ファイル\SpecialChar menuseparator
14239 新規(ひな型使用)
14240 \family default
14241 をクリックし,ひな型
14242 \family typewriter
14243 kluwer.lyx
14244 \family default
14245 を選択してください.これは,原稿に通常必要となる各フィールドと,それらの使用法が短く書かれただけの,(ほとんど)何も書かれていない文書です.他のテンプレートと同
14246 様に,既存の文章を(括弧
14247 \family typewriter
14248 <>
14249 \family default
14250 を含む)正しい情報で上書きしてください.
14251 \end_layout
14252
14253 \begin_layout Subsection
14254 投稿の準備
14255 \end_layout
14256
14257 \begin_layout Standard
14258 AAS\SpecialChar TeX
14259 パッケージと同様,論文を投稿する前に,以下のような「後処理」を行う必要があります.
14260 \end_layout
14261
14262 \begin_layout Enumerate
14263
14264 \family sans
14265 ファイル\SpecialChar menuseparator
14266 書き出し\SpecialChar menuseparator
14267 LateX
14268 \family default
14269 をクリックして,論文を\SpecialChar LaTeX
14270 ファイルに書き出す.
14271 \end_layout
14272
14273 \begin_layout Enumerate
14274 生成された
14275 \family typewriter
14276 .tex
14277 \family default
14278 ファイルに,テキストエディタを使用して,以下のような変更を加える.
14279 \end_layout
14280
14281 \begin_deeper
14282 \begin_layout Enumerate
14283
14284 \family typewriter
14285
14286 \backslash
14287 documentclass
14288 \family default
14289 コマンドより前にあるコメント行を削除する.
14290 \end_layout
14291
14292 \begin_layout Enumerate
14293 意図的に\SpecialChar LaTeX
14294 プリアンブルに加えたコマンドを除き,
14295 \family typewriter
14296
14297 \backslash
14298 makeatletter
14299 \family default
14300 から 
14301 \family typewriter
14302
14303 \backslash
14304 makeatother
14305 \family default
14306 の間にあるものを,これらのコマンドも含め,すべて削除する.
14307 \end_layout
14308
14309 \begin_layout Standard
14310 変更した
14311 \family typewriter
14312 .tex
14313 \family default
14314 ファイルを保存する.
14315 \end_layout
14316
14317 \end_deeper
14318 \begin_layout Enumerate
14319 この
14320 \family typewriter
14321 .tex
14322 \family default
14323 ファイルを必要な回数(通常3回以内)だけ\SpecialChar LaTeX
14324 にかける.
14325 \end_layout
14326
14327 \begin_layout Enumerate
14328 生成された
14329 \family typewriter
14330 .dvi
14331 \family default
14332 ファイルを
14333 \family sans
14334 xdvi
14335 \family default
14336 などを使って開き,問題がないか確認する(間違いをしていない限り問題ないはずです).
14337 \end_layout
14338
14339 \begin_layout Subsection
14340 Kluwerパッケージの「風変わり」な特徴
14341 \begin_inset CommandInset label
14342 LatexCommand label
14343 name "subsec:kluwer_peculiarities"
14344
14345 \end_inset
14346
14347
14348 \end_layout
14349
14350 \begin_layout Standard
14351 Kluwerパッケージには,以下のような「風変わりな」特徴があります.
14352 \end_layout
14353
14354 \begin_layout Enumerate
14355 複数の論文を1つの\SpecialChar LaTeX
14356 ファイルへ入れることができます
14357 \begin_inset Foot
14358 status collapsed
14359
14360 \begin_layout Plain Layout
14361 わざわざこんなことをする必要はないでしょう.
14362 \end_layout
14363
14364 \end_inset
14365
14366 .各論文は,「article」環境で囲まなくてはなりません.残念ながら,1つの論文だけを書く場合でも,この環境を省略することはできません.つまり,各論文は
14367 \family typewriter
14368
14369 \backslash
14370 begin{article}
14371 \family default
14372 で始まり,
14373 \family typewriter
14374
14375 \backslash
14376 end{article}
14377 \family default
14378 で終わります.この環境を\SpecialChar LyX
14379 に実装することも可能でしたが,醜い上に初心者を混乱させる可能性があるので,実装することはしませんでした.したがって,これらの命令(
14380 \family typewriter
14381
14382 \backslash
14383 begin{article}
14384 \family default
14385
14386 \family typewriter
14387
14388 \backslash
14389 end{article}
14390 \family default
14391 )は,直接本文中に入力して,\SpecialChar LaTeX
14392 コード(「\SpecialChar TeX
14393 コード」のことです)としてマークする必要があります.
14394 \end_layout
14395
14396 \begin_layout Enumerate
14397 論文の冒頭に置く情報(タイトル・サブタイトル・著者名・所属・ヘッダ用タイトル・ヘッダ用著者名・概要・キーワード)は,「opening」とよばれる環境に入れなくて
14398 はなりません.これは\SpecialChar LyX
14399 では実装されていませんので,タイトルやサブタイトルなどは,2つの\SpecialChar TeX
14400 コード行(
14401 \family typewriter
14402
14403 \backslash
14404 begin{opening}
14405 \family default
14406 および
14407 \family typewriter
14408
14409 \backslash
14410 end{opening}
14411 \family default
14412 )の間に入れる必要があります.
14413 \end_layout
14414
14415 \begin_layout Enumerate
14416 ユーザーの手引きによれば,書誌情報の各項目のラベルは,
14417 \family typewriter
14418
14419 \begin_inset Newline newline
14420 \end_inset
14421
14422
14423 \backslash
14424 protect
14425 \backslash
14426 citeauthoryear{
14427 \family default
14428 \emph on
14429 著者名
14430 \family typewriter
14431 \emph default
14432 }{
14433 \family default
14434 \emph on
14435
14436 \family typewriter
14437 \emph default
14438 }
14439 \family default
14440  と書く必要があります.
14441 \end_layout
14442
14443 \begin_layout Standard
14444 ひな型
14445 \family typewriter
14446 kluwer.lyx
14447 \family default
14448 は,これらの風変わりな点がすべて考慮されています.このひな型を使用して,論文を新たに書きはじめる場合には,特別なことを行う必要はありません.以下の点にのみ留意し
14449 てください.
14450 \end_layout
14451
14452 \begin_layout Enumerate
14453 ひな型にある\SpecialChar TeX
14454 コードを削除しないでください.
14455 \end_layout
14456
14457 \begin_layout Enumerate
14458 新しい書誌情報項目を入力する場合には,ひな型に例示されている書誌情報項目をコピーして,必要に応じて修正してください.
14459 \end_layout
14460
14461 \begin_layout Section
14462 Koma-Script
14463 \end_layout
14464
14465 \begin_layout Standard
14466
14467 \noun on
14468 Bernd Rellermeyer
14469 \noun default
14470
14471 \end_layout
14472
14473 \begin_layout Subsection
14474 概要
14475 \end_layout
14476
14477 \begin_layout Standard
14478 \SpecialChar LyX
14479 の文書クラス
14480 \emph on
14481 article (koma-script)
14482 \emph default
14483
14484 \emph on
14485 report (koma-script)
14486 \emph default
14487
14488 \emph on
14489 book
14490 \emph default
14491  
14492 \emph on
14493 (koma-script)
14494 \emph default
14495
14496 \emph on
14497 letter
14498 \emph default
14499  
14500 \emph on
14501 (koma-script)
14502 \emph default
14503 は,それぞれKoma-Scriptファミリーの\SpecialChar LaTeX
14504 文書クラス
14505 \family typewriter
14506 scrartcl.cls
14507 \family default
14508
14509 \family typewriter
14510 scrreprt.cls
14511 \family default
14512
14513 \family typewriter
14514 scrbook.cls
14515 \family default
14516
14517 \family typewriter
14518 scrlettr.cls
14519 \family default
14520 に対応しています.これらは,標準文書クラス
14521 \family typewriter
14522 article.cls
14523 \family default
14524
14525 \family typewriter
14526 report.cls
14527 \family default
14528
14529 \family typewriter
14530 book.cls
14531 \family default
14532
14533 \family typewriter
14534 letter.cls
14535 \family default
14536 の代替物であり,これらよりも多くの点でヨーロッパに於ける活版印刷の慣例に合致します.
14537 \end_layout
14538
14539 \begin_layout Itemize
14540 標準文字寸法は,
14541 \emph on
14542 article (koma-script)
14543 \emph default
14544
14545 \emph on
14546 report (koma-script)
14547 \emph default
14548
14549 \emph on
14550 book (koma-script)
14551 \emph default
14552 で11pt,
14553 \emph on
14554 letter (koma-script)
14555 \emph default
14556 で12ptです.
14557 \end_layout
14558
14559 \begin_layout Itemize
14560 見出しや箇条書き(記述)環境のラベル,および
14561 \emph on
14562 letter (koma-script)
14563 \emph default
14564 文書クラスの要素の多くでは,ボールド体サンセリフフォントが使われます
14565 \begin_inset Foot
14566 status collapsed
14567
14568 \begin_layout Plain Layout
14569 ボールド体サンセリフフォントには,古いcmフォントと新しいecフォントの間に大きな違いがあり,特に見出しの表示の違いが際立ちます.比較すると,ecボールドサンセ
14570 リフフォントの方が,少し細く見えます.ecフォントを使用する際に「通常の」外観が欲しい場合には,
14571 \shape smallcaps
14572 Walter Schmidt
14573 \shape default
14574 作の\SpecialChar LaTeX
14575 パッケージ
14576 \family typewriter
14577 cmsd.sty
14578 \family default
14579 が役立ちます.
14580 \end_layout
14581
14582 \end_inset
14583
14584 .章見出しの連番は,節見出しの連番と同様に行われ,別行立てで「 Chapter\SpecialChar ldots
14585 」という行がつきません.さらに,多くのオプションによって,見出しの外観を修正するこ
14586 とができます(\SpecialChar LyX
14587 では,
14588 \family sans
14589 文書\SpecialChar menuseparator
14590 設定
14591 \family default
14592 ダイアログの
14593 \family sans
14594 クラスオプション
14595 \family default
14596 フィールドで指定します).これらのオプションの独語での詳細な説明が,Koma-Scriptの取扱説明書
14597 \emph on
14598 scrguide
14599 \emph default
14600 にあります.
14601 \end_layout
14602
14603 \begin_layout Itemize
14604 Koma-Script文書クラスで,印字部分をデザインする主な方法は,
14605 \family sans
14606 BCOR
14607 \family default
14608 オプションまたは
14609 \family sans
14610 DIV
14611 \family default
14612 オプションを使う方法です(\SpecialChar LyX
14613 では,
14614 \family sans
14615 文書\SpecialChar menuseparator
14616 設定
14617 \family default
14618 ダイアログの
14619 \family sans
14620 クラスオプション
14621 \family default
14622 フィールドで指定します).これらのオプションは
14623 \family sans
14624 文書\SpecialChar menuseparator
14625 設定
14626 \family default
14627 ダイアログのオプションと同様に,ページ余白を明示的に変更することができます.これらとその他印字領域オプションのドイツ語での詳細な説明が,Koma-Script取
14628 扱説明書
14629 \emph on
14630 scrguide
14631 \emph default
14632 にあります.
14633 \end_layout
14634
14635 \begin_layout Itemize
14636 Koma-Scriptファミリーの\SpecialChar LaTeX
14637 文書クラスには,多くの追加コマンドが定義されています.それらのうち,\SpecialChar LyX
14638 で意味を持つものは,対応する段落環境として実装されています
14639
14640 \end_layout
14641
14642 \begin_layout Standard
14643 Koma-Scriptファミリーの\SpecialChar LaTeX
14644 文書クラスに関する独語の詳細な説明が,Koma-Script取扱説明書
14645 \emph on
14646 scrguide
14647 \emph default
14648 にあります
14649 \begin_inset Foot
14650 status collapsed
14651
14652 \begin_layout Plain Layout
14653 英語翻訳版の
14654 \emph on
14655 screnggu
14656 \emph default
14657 もありますが,完訳ではありません.
14658 \end_layout
14659
14660 \end_inset
14661
14662 .以下の各節では,\SpecialChar LyX
14663 に関係する側面のみ説明致します.
14664 \end_layout
14665
14666 \begin_layout Subsection
14667 article (koma-script)・report (koma-script)・book (koma-script)
14668 \end_layout
14669
14670 \begin_layout Standard
14671 文書クラス
14672 \emph on
14673 article (koma-script)
14674 \emph default
14675
14676 \emph on
14677 report (koma-script)
14678 \emph default
14679
14680 \emph on
14681 book
14682 \emph default
14683  
14684 \emph on
14685 (koma-script)
14686 \emph default
14687 は,それぞれレイアウトファイル
14688 \family typewriter
14689 scrartcl.layout
14690 \family default
14691
14692 \family typewriter
14693 scrreprt.layou
14694 \family default
14695 t・
14696 \family typewriter
14697 crbook.layout
14698 \family default
14699 によって実装されています.これらは,対応する標準文書クラス
14700 \emph on
14701 article
14702 \emph default
14703
14704 \emph on
14705 report
14706 \emph default
14707
14708 \emph on
14709 book
14710 \emph default
14711 の段落環境を,若干の修正を加えた上ですべて含んでいますが,\SpecialChar LyX
14712 固有の
14713 \family sans
14714 箇条書き(一覧)
14715 \family default
14716 環境は例外であり,同じ機能を持つ新しい
14717 \family sans
14718 ラベリング
14719 \family default
14720 環境で置き換えられています.この
14721 \family sans
14722 ラベリング
14723 \family default
14724 環境以外にも,新しい段落環境が多く追加されています.これらは,
14725 \emph on
14726 letter (koma-script)
14727 \emph default
14728 には含まれていないのでご注意ください.
14729 \end_layout
14730
14731 \begin_layout Itemize
14732
14733 \family sans
14734 部(addpart)
14735 \family default
14736
14737 \family sans
14738 章(addchap)
14739 \family default
14740
14741 \family sans
14742 節(addsec)
14743 \family default
14744 :これらは,それぞれ
14745 \family sans
14746 部*
14747 \family default
14748
14749 \family sans
14750 章*
14751 \family default
14752
14753 \family sans
14754 節*
14755 \family default
14756 と同等の働きをしますが,加えて目次に項目が表示されるようになります.
14757 \family sans
14758 部(addpart)
14759 \family default
14760
14761 \family sans
14762 章(addchap)
14763 \family default
14764 は,
14765 \emph on
14766 article (koma-script)
14767 \emph default
14768 には収録されていません.
14769 \end_layout
14770
14771 \begin_layout Itemize
14772
14773 \family sans
14774 章(addchap*)
14775 \family default
14776
14777 \family sans
14778 節(addsec*)
14779 \family default
14780 :これらは,
14781 \family sans
14782 章(addchap
14783 \family default
14784 )と
14785 \family sans
14786 節(addsec)
14787 \family default
14788 とまったく同等に動作しますが,加えてランニングへッダを取り除きます.
14789 \family sans
14790 章(addchap*)
14791 \family default
14792 は, 
14793 \emph on
14794 article (koma-script)
14795 \emph default
14796 には収録されていません
14797 \begin_inset Foot
14798 status collapsed
14799
14800 \begin_layout Plain Layout
14801
14802 \emph on
14803 book (koma-script)
14804 \emph default
14805
14806 \emph on
14807 report (koma-script)
14808 \emph default
14809 には,
14810 \family typewriter
14811
14812 \backslash
14813 addpart*
14814 \family default
14815 コマンドもありますが,これは
14816 \family sans
14817 Part*
14818 \family default
14819 と同一なので,\SpecialChar LyX
14820 では実装されていません.
14821 \end_layout
14822
14823 \end_inset
14824
14825
14826 \end_layout
14827
14828 \begin_layout Itemize
14829
14830 \family sans
14831 小見出し(minisec)
14832 \family default
14833 :これは文書構造に現れない形で,続く段落の直上に標準文字寸法の見出しを付けます.
14834 \end_layout
14835
14836 \begin_layout Itemize
14837
14838 \family sans
14839 上部キャプション
14840 \family default
14841
14842 \family sans
14843 下部キャプション
14844 \family default
14845 は,ある要素の上部ないし下部にキャプションを配置する際,位置に応じて正しく余白取りを行う特別なキャプションです(組版規則に厳密に従うならば,表キャプションは,つ
14846 ねに表の上に置くべきでしょう).また,クラスオプション
14847 \family typewriter
14848 tablecaptionsabove
14849 \family default
14850 を用いれば,キャプションを指定すると,表には
14851 \family sans
14852 上部キャプション
14853 \family default
14854 が,図には
14855 \family sans
14856 下部キャプション
14857 \family default
14858 が適用されるようになります.これを使用するためには,Koma-Script第2.8q版以上が必要です.
14859 \end_layout
14860
14861 \begin_layout Itemize
14862
14863 \family sans
14864 格言(dictum)
14865 \family default
14866 :これは,章頭などに警句を置くのに用いることができます.オプション引数(
14867 \family sans
14868 挿入\SpecialChar menuseparator
14869 短縮タイトル
14870 \family default
14871 )を用いれば,格言の作者を入れることができます.格言と作者の間は,線で区切られます.これを使用するためには,Koma-Script第2.8q版以上が必要です.
14872 \family sans
14873 格言(dictum)
14874 \family default
14875 は,
14876 \emph on
14877 article (koma-script)
14878 \emph default
14879 には収録されていません.
14880 \end_layout
14881
14882 \begin_layout Standard
14883 以下の各環境は,標準の
14884 \family sans
14885 タイトル
14886 \family default
14887
14888 \family sans
14889 著者
14890 \family default
14891
14892 \family sans
14893 日付
14894 \family default
14895 とともに文書のタイトル領域を形成します.これらは,最初の「通常の」段落よりも前に置かれる必要があります
14896 \begin_inset Foot
14897 status collapsed
14898
14899 \begin_layout Plain Layout
14900 つまり,対応する\SpecialChar LaTeX
14901 コマンドが
14902 \family typewriter
14903
14904 \backslash
14905 maketitle
14906 \family default
14907 コマンドよりも前に現れなくてはなりません.
14908 \end_layout
14909
14910 \end_inset
14911
14912 .これらの環境が2度以上使用された場合には,後に使用されたものが前のものを上書きします.つまり最後に使用したもののみが有効になります.しかしながら,
14913 \family sans
14914 タイトル
14915 \family default
14916
14917 \family sans
14918 著者
14919 \family default
14920
14921 \family sans
14922 日付
14923 \family default
14924 のような異なる環境の順序を変更しても,生成された文書には何の効果も生じません.
14925 \end_layout
14926
14927 \begin_layout Itemize
14928
14929 \family sans
14930 主題
14931 \family default
14932 :通常のタイトル部(
14933 \family sans
14934 タイトル
14935 \family default
14936
14937 \family sans
14938 著者
14939 \family default
14940
14941 \family sans
14942 日付
14943 \family default
14944 )の上に,文書の主題用の中央揃えの段落を生成します.
14945 \end_layout
14946
14947 \begin_layout Itemize
14948
14949 \family sans
14950 出版社
14951 \family default
14952 :通常のタイトル部(
14953 \family sans
14954 タイトル
14955 \family default
14956
14957 \family sans
14958 著者
14959 \family default
14960
14961 \family sans
14962 日付
14963 \family default
14964 )の下に,出版社名用の中央揃えの段落を生成します.
14965 \end_layout
14966
14967 \begin_layout Itemize
14968
14969 \family sans
14970 献呈
14971 \family default
14972
14973 \emph on
14974 report (koma-script)
14975 \emph default
14976
14977 \emph on
14978 book (koma-script)
14979 \emph default
14980 では,タイトル頁の次に,献辞用の中央揃えの段落を独立した頁として生成します.
14981 \emph on
14982 article (koma-script)
14983 \emph default
14984 の場合は,通常のタイトル部(
14985 \family sans
14986 タイトル
14987 \family default
14988
14989 \family sans
14990 著者
14991 \family default
14992
14993 \family sans
14994 日付
14995 \family default
14996 )の下に献辞用の中央揃えの段落を生成します.
14997 \end_layout
14998
14999 \begin_layout Itemize
15000
15001 \family sans
15002 タイトル頭書き
15003 \family default
15004 :通常のタイトル部(
15005 \family sans
15006 タイトル
15007 \family default
15008
15009 \family sans
15010 著者
15011 \family default
15012
15013 \family sans
15014 日付
15015 \family default
15016 )の上に,文書頭書き用の左揃えの段落を生成します.
15017 \end_layout
15018
15019 \begin_layout Itemize
15020
15021 \family sans
15022 扉裏上部
15023 \family default
15024
15025 \emph on
15026 report (koma-script)
15027 \emph default
15028 や 
15029 \emph on
15030 book (koma-script)
15031 \emph default
15032 の両面印刷において,扉裏上部に左揃え段落を生成します.片面印刷や,
15033 \emph on
15034 article (koma-script)
15035 \emph default
15036 では何の効果も生じません.
15037 \end_layout
15038
15039 \begin_layout Itemize
15040
15041 \family sans
15042 扉裏下部
15043 \family default
15044
15045 \emph on
15046 report (koma-script)
15047 \emph default
15048 や 
15049 \emph on
15050 book (koma-script)
15051 \emph default
15052 の両面印刷において,扉裏下部に左揃え段落を生成します.片面印刷や,
15053 \emph on
15054 article (koma-script)
15055 \emph default
15056 では何の効果も生じません.
15057 \end_layout
15058
15059 \begin_layout Itemize
15060
15061 \family sans
15062 追加タイトル
15063 \family default
15064 :実際の文書の前に,整形を行わない段落から成る,特殊な「汚い」ページを生成します.
15065 \end_layout
15066
15067 \begin_layout Standard
15068 文書クラス
15069 \emph on
15070 article (koma-script)
15071 \emph default
15072
15073 \emph on
15074 report (koma-script)
15075 \emph default
15076
15077 \emph on
15078 book (koma-script)
15079 \emph default
15080 の 各レイアウトファイルは,
15081 \family typewriter
15082 scrmacros.inc
15083 \family default
15084 ファイルを読み込みます.このファイルは,ユーザ環境を定義する場所として想定されています.s
15085 \family typewriter
15086 crmacros.inc
15087 \family default
15088 を,個人用レイアウトディレクトリにコピーして編集してください!
15089 \end_layout
15090
15091 \begin_layout Subsection
15092 letter (koma-script)
15093 \end_layout
15094
15095 \begin_layout Standard
15096 \noindent
15097 文書クラス
15098 \emph on
15099 letter (koma-script)
15100 \emph default
15101 は,レイアウトファイル 
15102 \family typewriter
15103 scrlettr.layout
15104 \family default
15105 で実装されています.このレイアウトファイルには,対応する標準文書クラス
15106 \emph on
15107 letter
15108 \emph default
15109 の全段落環境が,部分的に変更を加えた形で収録されていますが,\SpecialChar LyX
15110 固有環境の
15111 \family sans
15112 \SpecialChar LyX
15113 コード
15114 \family default
15115
15116 \family sans
15117 コメント
15118 \family default
15119
15120 \family sans
15121 箇条書き(一覧
15122 \family default
15123 )は,新しく
15124 \family sans
15125 ラベリング
15126 \family default
15127 環境に置き換えられています.それ以外にも,標準文書クラスとは異なり,標準環境の
15128 \family sans
15129 \SpecialChar LaTeX
15130
15131 \family default
15132
15133 \family sans
15134 引用(字下げあり)
15135 \family default
15136
15137 \family sans
15138 引用(字下げなし)
15139 \family default
15140
15141 \family sans
15142 詩句
15143 \family default
15144 が収録されています.さらに,新しいletter固有環境がたくさん追加されています.
15145 \end_layout
15146
15147 \begin_layout Standard
15148 この文書クラスで作成した書簡の外観は,様々な\SpecialChar LaTeX
15149 コマンドを\SpecialChar LaTeX
15150 プリアンブルに置くことで制御することができます
15151 \begin_inset Foot
15152 status collapsed
15153
15154 \begin_layout Plain Layout
15155 例えば,名前と住所の入った書簡ヘッダの標準的外観は,きわめて頑固です.「普通の」へッダは,プリアンブル中に以下のようなコマンドを入れることで生成することができま
15156 す.
15157 \end_layout
15158
15159 \begin_layout LyX-Code
15160
15161 \backslash
15162 firsthead{
15163 \backslash
15164 parbox[b]{
15165 \backslash
15166 textwidth}
15167 \end_layout
15168
15169 \begin_layout LyX-Code
15170   {
15171 \backslash
15172 ignorespaces 
15173 \backslash
15174 fromname
15175 \backslash
15176
15177 \backslash
15178  
15179 \backslash
15180 ignorespaces 
15181 \backslash
15182 fromaddress}} 
15183 \end_layout
15184
15185 \begin_layout LyX-Code
15186
15187 \backslash
15188 nexthead{
15189 \backslash
15190 parbox[b]{
15191 \backslash
15192 textwidth}
15193 \end_layout
15194
15195 \begin_layout LyX-Code
15196   {
15197 \backslash
15198 ignorespaces 
15199 \backslash
15200 fromname 
15201 \backslash
15202 hfill 
15203 \backslash
15204 ignorespaces 
15205 \backslash
15206 pagename
15207 \backslash
15208
15209 \end_layout
15210
15211 \begin_layout LyX-Code
15212
15213 \backslash
15214 thepage}}
15215 \end_layout
15216
15217 \end_inset
15218
15219 .これらの\SpecialChar LaTeX
15220 コマンドのドイツ語での詳細な説明は,Koma-Scriptの取扱説明書
15221 \emph on
15222 scrguide
15223 \emph default
15224 にあります.この方法で,書簡の著者は,個人用書簡レイアウトを作ることができます.
15225 \end_layout
15226
15227 \begin_layout Standard
15228
15229 \family sans
15230 書簡
15231 \family default
15232 環境および
15233 \family sans
15234 頭語
15235 \family default
15236 環境は,書簡の冒頭部を定義するもので,すべての書簡で使用しなくてはなりません.\SpecialChar LyX
15237 文書クラスでは,これらの環境を強調するために,左余白にそれぞれ
15238 \shape italic
15239 L
15240 \shape default
15241
15242 \shape italic
15243 O
15244 \shape default
15245 という文字が表示されます.同一ファイル中には,複数の書簡を書くことができます.
15246 \family sans
15247 頭語
15248 \family default
15249 環境は,同じ受取人への書簡を新しく書き出すものであり,
15250 \family sans
15251 書簡
15252 \family default
15253 環境は,新しい受取人を生成するものです.
15254 \family sans
15255 結語
15256 \family default
15257
15258 \family sans
15259 PS
15260 \family default
15261
15262 \family sans
15263 CC
15264 \family default
15265
15266 \family sans
15267 Encl
15268 \family default
15269 は,通常の段落環境なので,同一の書簡中でも何度も使用することができます.
15270 \end_layout
15271
15272 \begin_layout Itemize
15273
15274 \family sans
15275 書簡
15276 \family default
15277 :受取人のための段落をつくり,暗黙に書簡の開始を定義します.
15278 \end_layout
15279
15280 \begin_layout Itemize
15281
15282 \family sans
15283 頭語
15284 \family default
15285 :敬称のための段落をつくり,暗黙に新しい書簡を開始します.
15286 \end_layout
15287
15288 \begin_layout Itemize
15289
15290 \family sans
15291 結語
15292 \family default
15293 :結語のための段落をつくります.
15294 \end_layout
15295
15296 \begin_layout Itemize
15297
15298 \family sans
15299 PS
15300 \family default
15301 :追伸のための段落をつくります.
15302 \end_layout
15303
15304 \begin_layout Itemize
15305
15306 \family sans
15307 CC
15308 \family default
15309 :同報一覧のための段落をつくります.
15310 \end_layout
15311
15312 \begin_layout Itemize
15313
15314 \family sans
15315 Encl
15316 \family default
15317 :同封物のための段落をつくります.
15318 \end_layout
15319
15320 \begin_layout Standard
15321
15322 \family sans
15323 名前
15324 \family default
15325
15326 \family sans
15327 署名
15328 \family default
15329
15330 \family sans
15331 住所
15332 \family default
15333
15334 \family sans
15335 電話
15336 \family default
15337
15338 \family sans
15339 場所(Place
15340 \family default
15341 )・
15342 \family sans
15343 返送先住所
15344 \family default
15345
15346 \family sans
15347 配送手段(Specialmail)
15348 \family default
15349
15350 \family sans
15351 場所
15352 \family default
15353
15354 \family sans
15355 タイトル
15356 \family default
15357
15358 \family sans
15359 主題
15360 \family default
15361 は,情報入力を促すラベルの付いた入力環境で,文書クラスが適切な処理を行います
15362 \begin_inset Foot
15363 status collapsed
15364
15365 \begin_layout Plain Layout
15366 上述の
15367 \family sans
15368 書簡
15369 \family default
15370
15371 \family sans
15372 頭語
15373 \family default
15374 が,これらのような入力環境でないのは,矛盾しているように感じられるかもしれません.しかしながら,これら2つの環境は特別の意味を持っているために,これらは左余白に
15375 一文字をマークした通常の段落環境として実装しました.さらに,
15376 \family sans
15377 頭語
15378 \family default
15379 環境と
15380 \family sans
15381 結語
15382 \family default
15383 環境が著しく異なって見えると対称性が損なわれることになるのも理由の一つです.
15384 \end_layout
15385
15386 \end_inset
15387
15388 .これらの環境は,対応する
15389 \family sans
15390 頭語
15391 \family default
15392 環境の前に置く必要があります.
15393 \end_layout
15394
15395 \begin_layout Standard
15396 生成された書簡の実際の外観は,特定の環境の使い方だけではなく,他の要素にも依存するため,これらの環境をWYSIWYGとして実装することには,あまり意味がありませ
15397 ん.たとえば,
15398 \family sans
15399 署名
15400 \family default
15401 環境で入力した署名は,標準的な挙動では,同じ書簡に
15402 \family sans
15403 結語
15404 \family default
15405 環境も使用されているときのみ,書簡の出力に現れます.
15406 \family sans
15407 電話
15408 \family default
15409 環境に入力された値は,標準的な挙動では,書簡の出力には全く表示されません.書簡のヘッダを自由にデザインできることは,前出の脚注で示してあります.
15410 \end_layout
15411
15412 \begin_layout Standard
15413 入力環境は,空の段落として使うことができます.これは,たとえば
15414 \family sans
15415 署名
15416 \family default
15417 環境の場合に有効です.
15418 \family sans
15419 署名
15420 \family default
15421 環境を全く使用しない場合は,標準的な挙動では,
15422 \family sans
15423 名前
15424 \family default
15425 環境の値が署名として使用されますが,空の
15426 \family sans
15427 署名
15428 \family default
15429 環境を作成しておくと,署名の値は無定義となりません.
15430 \end_layout
15431
15432 \begin_layout Standard
15433 入力環境を使用すると,個人データ(名前や住所など)が既に入力された入力環境と,後から入力するデータの入力環境を備えた,書簡のひな型を作成することができます.
15434 \end_layout
15435
15436 \begin_layout Itemize
15437
15438 \family sans
15439 名前
15440 \family default
15441 :送り主の名前.標準的な挙動では,書簡のヘッダ部にスモールキャップ体の中央揃えの段落として表示されます.
15442 \end_layout
15443
15444 \begin_layout Itemize
15445
15446 \family sans
15447 署名
15448 \family default
15449 :送り主の署名.標準的な挙動では,
15450 \family sans
15451 結語
15452 \family default
15453 環境の下に表示されます.
15454 \family sans
15455 署名
15456 \family default
15457 環境を使用しないと,代わりに
15458 \family sans
15459 名前
15460 \family default
15461 環境の値が表示されます.
15462 \end_layout
15463
15464 \begin_layout Itemize
15465
15466 \family sans
15467 住所
15468 \family default
15469 :送り主の住所.標準的な挙動では,書簡ヘッダの送り主の名前の下に中央揃えの段落として表示されます.
15470 \end_layout
15471
15472 \begin_layout Itemize
15473
15474 \family sans
15475 電話
15476 \family default
15477 :送り主の電話番号.標準的な挙動では,\SpecialChar LaTeX
15478 変数
15479 \family typewriter
15480
15481 \backslash
15482 telephonenum
15483 \family default
15484 を設定するだけです.
15485 \end_layout
15486
15487 \begin_layout Itemize
15488
15489 \family sans
15490 場所(Place)
15491 \family default
15492 :書簡を書いた場所.
15493 \end_layout
15494
15495 \begin_layout Itemize
15496
15497 \family sans
15498 日付
15499 \family default
15500 :書簡を書いた日付.
15501 \family sans
15502 場所(Place)
15503 \family default
15504
15505 \family sans
15506 日付
15507 \family default
15508 は,標準的な挙動では,受取人フィールドの下に,単一の右揃え行として場所と日付を生成します.空の
15509 \family sans
15510 日付
15511 \family default
15512 環境を作成しておくと,
15513 \family sans
15514 場所(Place)
15515 \family default
15516 の値如何に関わらず,場所も日付も表示されません.
15517 \family sans
15518 日付
15519 \family default
15520 環境を使用しない場合には,書簡を出力した日付が使用されます.
15521 \end_layout
15522
15523 \begin_layout Itemize
15524
15525 \family sans
15526 返送先住所
15527 \family default
15528 :送り主の返送先住所.標準的な挙動では,受取人の上に小文字のサンセリフ体フォントで表示されます.
15529 \end_layout
15530
15531 \begin_layout Itemize
15532
15533 \family sans
15534 特別便
15535 \family default
15536 :特別便の情報.標準的な挙動では,受取人フィールドの上かつ返送先住所の下に,下線付きで表示されます.
15537 \end_layout
15538
15539 \begin_layout Itemize
15540
15541 \family sans
15542 場所
15543 \family default
15544 :追加情報.標準的な挙動では,受取人フィールドの下の右側に表示されます.
15545 \end_layout
15546
15547 \begin_layout Itemize
15548
15549 \family sans
15550 タイトル
15551 \family default
15552 :書簡の題名.標準的な挙動では,主題の上に大きなボールド体サンセリフフォントで表示されます.
15553 \end_layout
15554
15555 \begin_layout Itemize
15556
15557 \family sans
15558 主題
15559 \family default
15560 :書簡の主題.標準的な挙動では,
15561 \family sans
15562 頭語
15563 \family default
15564 環境の上にボールド体で表示されます.
15565 \end_layout
15566
15567 \begin_layout Standard
15568
15569 \family sans
15570 Yourref・Yourmail・Myref・顧客・インボイス
15571 \family default
15572 といった環境は,
15573 \family sans
15574 タイトル
15575 \family default
15576 行の上に「Your ref.」・「Your letter of」・「Our ref.」・「Customer no.」・「Invoice no.」・「Date」といったフ
15577 ィールド行を持つ,ビジネス書簡を作成します.日付フィールドには,
15578 \family sans
15579 日付
15580 \family default
15581 環境の値が使用されます.しかしながら,これらの「ビジネス書簡環境」の一つを使用した場合には,
15582 \family sans
15583 場所(Place)
15584 \family default
15585 の値は書簡には表示されなくなり,\SpecialChar LaTeX
15586 変数
15587 \family typewriter
15588
15589 \backslash
15590 fromplace
15591 \family default
15592 が設定させるだけになります.通常時に,受取人フィールドの下に右揃えで出力される場所と日付の出力は,抑制されます.これらのビジネス環境は,ラベル付きの入力環境とし
15593 て実装されており,対応する
15594 \family sans
15595 頭語
15596 \family default
15597 環境よりも前に置く必要があります.
15598 \end_layout
15599
15600 \begin_layout Itemize
15601
15602 \family sans
15603 Yourref
15604 \family default
15605 : Your ref.
15606 \end_layout
15607
15608 \begin_layout Itemize
15609
15610 \family sans
15611 Yourmail
15612 \family default
15613 : Your letter of.
15614 \end_layout
15615
15616 \begin_layout Itemize
15617
15618 \family sans
15619 Myref
15620 \family default
15621 : Our ref.
15622 \end_layout
15623
15624 \begin_layout Itemize
15625
15626 \family sans
15627 Customer
15628 \family default
15629 : Customer no.
15630 \end_layout
15631
15632 \begin_layout Itemize
15633
15634 \family sans
15635 Invoice
15636 \family default
15637 : Invoice no.
15638 \end_layout
15639
15640 \begin_layout Subsection
15641 新しいletterクラス:letter (koma-script v.2)
15642 \end_layout
15643
15644 \begin_layout Standard
15645 by 
15646 \noun on
15647 Jürgen Spitzmüller
15648 \begin_inset VSpace medskip
15649 \end_inset
15650
15651
15652 \end_layout
15653
15654 \begin_layout Standard
15655 \noindent
15656 Koma-Script第2.8版では,新しいletterクラス
15657 \family typewriter
15658 scrlttr2
15659 \family default
15660 が導入されたため,
15661 \family typewriter
15662 scrlettr
15663 \family default
15664 は廃止されてサポート対象外となりました.これは—\SpecialChar LaTeX
15665 側で—全く新しいインターフェイスを持っており,旧クラスとは互換性がありません.したがって,\SpecialChar LyX
15666 は両者をサポートしてい
15667 ますが,新しい方のクラスを使用することを推奨します.
15668 \end_layout
15669
15670 \begin_layout Standard
15671 このクラスは,
15672 \emph on
15673 letter (koma-script)
15674 \emph default
15675 と同一の機能に加えて,新しい機能をいくつかサポートしています.基本となる項目は,
15676 \family sans
15677 住所
15678 \family default
15679 (受取人の住所,旧レイアウトの
15680 \family sans
15681 書簡
15682 \family default
15683 と同じ)・
15684 \family sans
15685 頭語
15686 \family default
15687
15688 \family sans
15689 結語
15690 \family default
15691 です.
15692 \family sans
15693 次の住所
15694 \family default
15695 は別の書簡を新しく開始します(つまり一文書あたり複数の書簡を書くことができます).新しく付け加えられた項目は,送り主の
15696 \family sans
15697 電子メール
15698 \family default
15699
15700 \family sans
15701 URL
15702 \family default
15703
15704 \family sans
15705 ファックス
15706 \family default
15707
15708 \family sans
15709 銀行
15710 \family default
15711 ,およびヘッダに(
15712 \family sans
15713 挿入\SpecialChar menuseparator
15714
15715 \family default
15716 で)
15717 \family sans
15718 ロゴ
15719 \family default
15720 を入れることができるようになった点です.
15721 \end_layout
15722
15723 \begin_layout Standard
15724 しかしながら,もっとも大きな改善は,書簡のレイアウトを,ほとんどどんなニーズにも合わせて設定できるようになった点でしょう.これはプリアンブルか,クラスオプション
15725 として読み込まれる特別なスタイルファイル(「レタークラスオプション」,拡張子
15726 \family typewriter
15727 *.lco
15728 \family default
15729 )によって設定することができます
15730 \begin_inset Foot
15731 status collapsed
15732
15733 \begin_layout Plain Layout
15734 KOMAパッケージには,既定の
15735 \family typewriter
15736 *.lco
15737 \family default
15738 ファイルがいくつか収録されています.たとえば,ドイツの組版規則に則った
15739 \family typewriter
15740 DIN.lco
15741 \family default
15742 や,旧
15743 \family typewriter
15744 scrlettr
15745 \family default
15746 クラスの既定レイアウトを提供する
15747 \family typewriter
15748 KOMAold.lco
15749 \family default
15750 などです.たとえば後者は,
15751 \family sans
15752 文書\SpecialChar menuseparator
15753 設定\SpecialChar menuseparator
15754 文書クラス\SpecialChar menuseparator
15755 クラスオプション
15756 \family default
15757 フィールドにクラスオプション
15758 \family typewriter
15759 KOMAold
15760 \family default
15761 を加えることで読み込むことができます.
15762 \end_layout
15763
15764 \end_inset
15765
15766 .用例としては,\SpecialChar LyX
15767 に収録されているひな型
15768 \emph on
15769 koma-letter2
15770 \emph default
15771 をご覧ください.詳細な解説は,Koma-Script取扱説明書(
15772 \emph on
15773 scrguide
15774 \emph default
15775 )にあります.
15776 \end_layout
15777
15778 \begin_layout Subsection
15779 問題点
15780 \end_layout
15781
15782 \begin_layout Standard
15783 Koma-Script文書クラスを\SpecialChar LyX
15784 上に表示する上で,\SpecialChar LyX
15785 の内部処理が若干の問題を生じめます.
15786 \end_layout
15787
15788 \begin_layout Itemize
15789
15790 \family sans
15791
15792 \family default
15793 環境の章番号は,章見出しと同じ行ではなく,その上に表示されます.これは,レイアウトファイル中の
15794 \family sans
15795 Counter_Chapter
15796 \family default
15797 ラベル型に対する\SpecialChar LyX
15798 の内部処理が原因です.
15799 \end_layout
15800
15801 \begin_layout Itemize
15802
15803 \family sans
15804 章(addchap)
15805 \family default
15806
15807 \family sans
15808 節(addsec)
15809 \family default
15810 環境の見出しは,「本当の」\SpecialChar LaTeX
15811 の目次には追加されますが,\SpecialChar LyX
15812 の目次(
15813 \family sans
15814 移動
15815 \family default
15816 メニュー)には追加されません.
15817 \end_layout
15818
15819 \begin_layout Itemize
15820
15821 \emph on
15822 letter
15823 \emph default
15824 文書クラスでの段落は,垂直スペースによる段落区切りで表示され,字下げはされません.これが標準的な挙動となっていて,特別な\SpecialChar LaTeX
15825 コマンドは必要ありません.しかし,
15826 \family sans
15827 文書\SpecialChar menuseparator
15828 設定
15829 \family default
15830 ダイアログでは,対応するラジオボタンは
15831 \family sans
15832 字下げ
15833 \family default
15834 に設定されています.
15835 \family sans
15836 垂直スペース
15837 \family default
15838 は,隙間を空けるために,文書に\SpecialChar LaTeX
15839 コマンドをつねに追加するようになっていますが,この文書クラスの場合には,そのような挙動が望まれないためです.
15840 \end_layout
15841
15842 \begin_layout Section
15843 Memoir
15844 \end_layout
15845
15846 \begin_layout Standard
15847
15848 \noun on
15849 Jürgen Spitzmüller
15850 \noun default
15851
15852 \end_layout
15853
15854 \begin_layout Subsection
15855 概観
15856 \end_layout
15857
15858 \begin_layout Standard
15859 Memoirは,非常に強力で,着実に改良が加えられている文書クラスであり,フィクションとノンフィクションの文学作品用に設計されています.その目的は,ユーザーに,
15860 文書の組版に関して最大限の裁量を得させることにあります.Memoirは,標準bookクラスに基づいていますが,articleクラスをエミュレートすることもできま
15861 す(以下参照).
15862 \end_layout
15863
15864 \begin_layout Standard
15865 Memoir開発者であるPeter Wilsonは,\SpecialChar LaTeX
15866 の世界での,多くの便利なパッケージの作者として知られていますが,それらのほとんどは,Memoirに統合されま
15867 した.このため,章のデザインや,目次や付録などのレイアウトを,はるかに簡単に行うことができます.しかしながら,\SpecialChar LyX
15868 は,これらすべての素晴らしい機能をネイティブでサポ
15869 ートしているわけではありません.これらのうちいくつかは,将来のリリースで追加されるかもしれませんが
15870 \begin_inset Foot
15871 status collapsed
15872
15873 \begin_layout Plain Layout
15874 もし提案があれば,ぜひ
15875 \begin_inset Flex URL
15876 status collapsed
15877
15878 \begin_layout Plain Layout
15879
15880 lyx-devel@lists.lyx.org
15881 \end_layout
15882
15883 \end_inset
15884
15885 までお送り下さい.
15886 \end_layout
15887
15888 \end_inset
15889
15890 ,\SpecialChar LyX
15891 のフレームワークが持つ制約のために,おそらく決して追加されることのないと考えられるものも多数あります.もちろん,ネイティブな\SpecialChar LaTeX
15892 コマンド(\SpecialChar TeX
15893 コード
15894 \begin_inset Foot
15895 status collapsed
15896
15897 \begin_layout Plain Layout
15898 【参考】詳細は,第
15899 \begin_inset CommandInset ref
15900 LatexCommand ref
15901 reference "sec:LaTeXコードを挿入する"
15902
15903 \end_inset
15904
15905 節参照.
15906 \end_layout
15907
15908 \end_inset
15909
15910 )の助けを借りれば,全機能を使用できます.この節では,\SpecialChar LyX
15911 がネイティブにサポートしている機能についてのみ,列挙するものとします.詳細な説明(および他の機能)について
15912 は,Memoirクラスの詳しい取扱説明書
15913 \begin_inset Foot
15914 status collapsed
15915
15916 \begin_layout Plain Layout
15917 【参考】
15918 \begin_inset Flex URL
15919 status collapsed
15920
15921 \begin_layout Plain Layout
15922
15923 CTAN:/macros/latex/memoir/memman.pdf
15924 \end_layout
15925
15926 \end_inset
15927
15928
15929 \end_layout
15930
15931 \end_inset
15932
15933 をご覧になることをお勧めします.この取扱説明書は,本クラスのユーザーの手引きであるのみに留まらず,良い組版に関する包括的な解説であり,それ自身が良い組版の傑出し
15934 た用例となっています.
15935 \end_layout
15936
15937 \begin_layout Subsection
15938 基本的な機能と制約
15939 \end_layout
15940
15941 \begin_layout Standard
15942 Memoirは,基本的に,標準bookクラスの全機能をサポートしています.しかしながら,以下に示すような若干の違いがあります.
15943 \end_layout
15944
15945 \begin_layout Description
15946 フォント寸法: Memoirでは,9・10・11・12・14・17と,より広い範囲のフォント寸法が使用可能です.
15947 \end_layout
15948
15949 \begin_layout Description
15950 ページ様式: Memoirパッケージとfancyhdrパッケージとのコマンドの衝突のため(両パッケージは同じ名前のコマンドを定義しているため,\SpecialChar LaTeX
15951 が混乱させられます
15952 ),fancyページ様式は使用できません.その代わり,Memoirには,多くの独自のページ様式が付属してきます(
15953 \family sans
15954 文書\SpecialChar menuseparator
15955 設定\SpecialChar menuseparator
15956 ページレイアウト
15957 \family default
15958 参照).これらを章題ページに使用したい場合には,コマンド
15959 \family typewriter
15960
15961 \backslash
15962 chapterstyle
15963 \family default
15964 を,本文またはプリアンブルに記述する必要があります(例えば,
15965 \family typewriter
15966
15967 \backslash
15968 chapterstyle{companion}
15969 \family default
15970 など).
15971 \end_layout
15972
15973 \begin_layout Description
15974 節分け: 標準クラスでは,節分けコマンド(章・節・小節等)は,非必須引数を一つ取ることができます.これを用いて,目次やヘッダ用に別のタイトルを指定することができ
15975 ます(たとえば,タイトルが長すぎる場合などに用います).\SpecialChar LyX
15976 では,章や節の始めで
15977 \family sans
15978 挿入\SpecialChar menuseparator
15979 短縮タイトル
15980 \family default
15981 を使えば,これを指定することができます.一方,Memoirでは,第2の非必須引数を取ることができ,目次用のタイトルとヘッダ用のタイトルの指定を分離しています.こ
15982 れを使えば,本文用と目次用とヘッダ用のタイトルの3種類を指定することができます.この機能を使用したい場合には,2つの非必須引数を入力して,最初のものに目次用,次
15983 のものにヘッダ用短縮タイトルを入れてください.
15984 \end_layout
15985
15986 \begin_layout Description
15987 目次・図一覧・表一覧: 標準クラス(および他の多くのクラス)では,目次と図一覧および表一覧は,自動的に新規頁に置かれます.Memoirは,これとは別の方針を採り
15988 ます.改頁を行いたい場合は,手動で頁区切りを入れなくてはなりません.
15989 \end_layout
15990
15991 \begin_layout Description
15992 タイトル頁: 理由は不明ですが,Memoirはタイトルページに丁付けを行います(標準クラスでは,タイトルページは「empty」様式).タイトル頁に丁付けを行いた
15993 くない場合には,プリアンブルに
15994 \family typewriter
15995
15996 \backslash
15997 aliaspagestyle{title}{empty}
15998 \family default
15999 と入力してください.
16000 \end_layout
16001
16002 \begin_layout Description
16003 Article: クラスオプション
16004 \emph on
16005 article
16006 \emph default
16007 を用いる(
16008 \family sans
16009 文書\SpecialChar menuseparator
16010 設定\SpecialChar menuseparator
16011 クラスオプション
16012 \family default
16013 で入力)と,article様式をエミュレートできます.すなわち,(脚注・図・表等の)カウンタは,章毎にリセットされず,次の章は頁を改めず(ただし,「本物の」ar
16014 ticleクラスとは違って,頁を改めることも可),部はbookクラスと同様に,独立の頁を使用します.
16015 \end_layout
16016
16017 \begin_layout Description
16018 Oldfontcommands: \SpecialChar LaTeX
16019 旧2.09版で使用されていた旧いフォントコマンド(
16020 \family typewriter
16021
16022 \backslash
16023 rm
16024 \family default
16025
16026 \family typewriter
16027
16028 \backslash
16029 it
16030 \family default
16031 など)は,Memoirにおいては,既定では使用することができません.Memoirがこれらのコマンドを検知すると,エラーを発して\SpecialChar LaTeX
16032 を停止させます.しかし,クラスオプ
16033 ション
16034 \emph on
16035 oldfontcommands
16036 \emph default
16037 を指定すると,これらのコマンドが容認され,エラーの代わりに警告を発するのみとなります(これによって,少なくとも\SpecialChar LaTeX
16038 は停止しなくなります).まだ,多くのパッケージと,
16039 就中多くのBib\SpecialChar TeX
16040 スタイルファイルが,これらのコマンドを使用しているので,我々はこのオプションを既定で使うこととしました.
16041 \end_layout
16042
16043 \begin_layout Subsection
16044 追加された機能
16045 \end_layout
16046
16047 \begin_layout Standard
16048 \SpecialChar LyX
16049 でサポートされる機能(今のところそれほど多くはありません)を簡単に説明しましょう.詳しくはMemoirの取扱説明書
16050 \begin_inset Foot
16051 status collapsed
16052
16053 \begin_layout Plain Layout
16054 \begin_inset Flex URL
16055 status collapsed
16056
16057 \begin_layout Plain Layout
16058
16059 CTAN:/macros/latex/memoir/memman.pdf
16060 \end_layout
16061
16062 \end_inset
16063
16064
16065 \end_layout
16066
16067 \end_inset
16068
16069 を見てください.
16070 \end_layout
16071
16072 \begin_layout Description
16073 概要: 概要が,追加された機能として扱われているのを不思議に思われるかもしれませんが,bookクラスとしては追加された機能なのです.通常bookクラスには概要は
16074 ないのですが,memoirにはあります.これは,どこでも何回でも自由に使うことができます.
16075 \end_layout
16076
16077 \begin_layout Description
16078 章要約: この古い組版様式はご覧になったことがあるかも知れません.章の内容が,見出しの下と目次に要約されているものです(たとえば,「我らが英雄がトロヤに到着する
16079 .彼は友人を失うが,新たな友人を得る.」など).章要約(chapterprecis)はこれを行います.したがって,章要約は章の下でのみ意味を持ちます.
16080 \end_layout
16081
16082 \begin_layout Description
16083 題辞: 題辞(epigraph)は章頭の,気の利いた標語やモットーです.題辞環境は,そのような標語を組む洗練された方法を提供します.標語本体(本文)とその著者(
16084 出典)は,短い線で区切られます.この環境には二つの引数(本文と出典)が必要なので,ここでも\SpecialChar LyX
16085 を少しだます必要があります.ここでは,2つの引数の間に,
16086 \emph on
16087 <標語>
16088 \family typewriter
16089 \emph default
16090 }{
16091 \family default
16092 \emph on
16093 <標語の著者>
16094 \emph default
16095 のように,(\SpecialChar TeX
16096 モードで)波括弧を入れなくてはなりません.
16097 \end_layout
16098
16099 \begin_layout Description
16100 詩題: Memoirには(複雑で隠喩的なものも含めて)詩を組版するための多くの機能がありますが,\SpecialChar LyX
16101 は,そのうちいくつかしかサポートしていません.詩題はその一つです
16102 .これは詩用の中央揃えタイトルで,目次にも表示されます(詩句が詩の標準環境です.Memoirには,詩句の拡張版もありますが,これらを使うためには\SpecialChar TeX
16103 コードを使用しな
16104 くてはなりません.これらの環境は通常の詩句環境の中に入れ子にしなくてはならないのですが,\SpecialChar LyX
16105 ではそれができないためです).
16106 \end_layout
16107
16108 \begin_layout Description
16109 詩題*: 目次に現れない他は詩題と同じです.
16110 \end_layout
16111
16112 \begin_layout Section
16113 Article (mwart)・book (mwbk)・report (mwrep)
16114 \begin_inset Argument status
16115 status collapsed
16116
16117 \begin_layout Plain Layout
16118 The 
16119 \family typewriter
16120 mw
16121 \family default
16122  Classes
16123 \end_layout
16124
16125 \end_inset
16126
16127
16128 \end_layout
16129
16130 \begin_layout Standard
16131
16132 \noun on
16133 Tomasz Luczak
16134 \noun default
16135
16136 \end_layout
16137
16138 \begin_layout Standard
16139 \SpecialChar LyX
16140 文書クラス
16141 \emph on
16142 article (mwart)
16143 \emph default
16144
16145 \emph on
16146 report (mwrep)・book
16147 \emph default
16148  
16149 \emph on
16150 (mwbk)
16151 \emph default
16152 は,それぞれ\SpecialChar LaTeX
16153 文書クラス
16154 \family typewriter
16155 mwart.cls
16156 \family default
16157
16158 \family typewriter
16159 mwrep.cls
16160 \family default
16161
16162 \family typewriter
16163 mwbk.cls
16164 \family default
16165 に対応しています.これらは,標準の
16166 \family typewriter
16167 article.cls
16168 \family default
16169
16170 \family typewriter
16171 report.cls
16172 \family default
16173
16174 \family typewriter
16175 book.cls
16176 \family default
16177 を代替するものであり,多くの点で,ポーランド語の組版慣習によく適合しています.
16178 \end_layout
16179
16180 \begin_layout Standard
16181 基本的な違いは,次の点です.
16182 \end_layout
16183
16184 \begin_layout Itemize
16185 付番のない見出し(
16186 \family sans
16187 節*
16188 \family default
16189 などの星付き)も目次に加えられます.
16190 \end_layout
16191
16192 \begin_layout Itemize
16193 以下のページスタイルの追加
16194 \end_layout
16195
16196 \begin_deeper
16197 \begin_layout Description
16198 uheadings 分離線付きヘッダ
16199 \end_layout
16200
16201 \begin_layout Description
16202 myheadings 
16203 \family typewriter
16204
16205 \backslash
16206 markright
16207 \family default
16208 コマンドおよび
16209 \family typewriter
16210
16211 \backslash
16212 markboth
16213 \family default
16214 コマンドで設定するカスタムヘッダ
16215 \end_layout
16216
16217 \begin_layout Description
16218 myuheadings 分離線付きカスタムヘッダ
16219 \end_layout
16220
16221 \begin_layout Description
16222 outer ページの外側にページ番号
16223 \end_layout
16224
16225 \end_deeper
16226 \begin_layout Itemize
16227 オプション
16228 \end_layout
16229
16230 \begin_deeper
16231 \begin_layout Description
16232 rmheadings セリフ体見出し — 既定
16233 \end_layout
16234
16235 \begin_layout Description
16236 sfheadings サンセリフ体見出し
16237 \end_layout
16238
16239 \begin_layout Description
16240 authortitle タイトルページは,著者名・タイトルの順で配置 — 既定
16241 \end_layout
16242
16243 \begin_layout Description
16244 titleauthor タイトルページは,タイトル・著者名の順で配置
16245 \end_layout
16246
16247 \begin_layout Description
16248 withmarginpar ページ上に余白のための場所を確保
16249 \end_layout
16250
16251 \end_deeper
16252 \begin_layout Section
16253 Paper
16254 \end_layout
16255
16256 \begin_layout Standard
16257
16258 \family sans
16259 paper
16260 \family default
16261 文書クラスは標準
16262 \family sans
16263 article
16264 \family default
16265 クラスの代替となるものです.これは
16266 \family sans
16267 同様の
16268 \family default
16269 機能を提供しますが,サンセリフ体の節見出し・ヘッディング等を持つこちらのレイアウトの方が気に入るかも知れません.
16270 \end_layout
16271
16272 \begin_layout Section
16273 Rev\SpecialChar TeX
16274 4
16275 \end_layout
16276
16277 \begin_layout Standard
16278 by 
16279 \noun on
16280 Amir Karger
16281 \end_layout
16282
16283 \begin_layout Standard
16284 \begin_inset VSpace bigskip
16285 \end_inset
16286
16287
16288 \end_layout
16289
16290 \begin_layout Standard
16291 \noindent
16292
16293 \family sans
16294 Revtex
16295 \begin_inset space ~
16296 \end_inset
16297
16298 4
16299 \family default
16300 テキストクラスは,アメリカ物理学会のRev\SpecialChar TeX
16301  4.0(1999年5月の
16302 \begin_inset Formula $\beta$
16303 \end_inset
16304
16305 リリース)クラスで動作します.
16306 \end_layout
16307
16308 \begin_layout Standard
16309 \SpecialChar LyX
16310 には,Rev\SpecialChar TeX
16311  3.1で動作する
16312 \family sans
16313 Revtex
16314 \family default
16315 テキストクラスもあります.しかしながら,第3.1版は\SpecialChar LaTeX
16316  2.09で動作するものであり,基本的に時代遅れなものになっています.\SpecialChar LyX
16317 は\SpecialChar LaTeX2e
16318 を必要とすることから,第3.1版は\SpecialChar LyX
16319 とうまく
16320 協調しないことを意味しますが,動作するようには調整してあります.Rev\SpecialChar TeX
16321  4.0は,\SpecialChar LaTeX2e
16322 で素直に動作するようにデザインされているので,\SpecialChar LyX
16323
16324 \family sans
16325 Rev\SpecialChar TeX
16326
16327 \begin_inset space ~
16328 \end_inset
16329
16330 4
16331 \family default
16332 テキストクラスの組で使用するのは,たいへん簡単です.
16333 \end_layout
16334
16335 \begin_layout Standard
16336 この取扱説明書は,Rev\SpecialChar TeX
16337  4.0の説明書の
16338 \emph on
16339 補完
16340 \emph default
16341 として使用されることを前提としています.したがって,ここではRev\SpecialChar TeX
16342 固有マクロの説明はせず,必要な場合にはプリアンブルに何と書けば良いかを知っているものとして説明
16343 します.
16344 \end_layout
16345
16346 \begin_layout Subsection
16347 導入
16348 \end_layout
16349
16350 \begin_layout Standard
16351 Rev\SpecialChar TeX
16352  4パッケージのREADMEファイルにあるとおり,ともかくRev\SpecialChar TeX
16353  4を導入しなくてはなりません.パッケージは,The Rev\SpecialChar TeX
16354  4 Web
16355  Site 
16356 \begin_inset Flex URL
16357 status collapsed
16358
16359 \begin_layout Plain Layout
16360
16361 http://publish.aps.org/revtex4/
16362 \end_layout
16363
16364 \end_inset
16365
16366 から入手することができます.これを\SpecialChar LaTeX
16367 が検出することのできる場所に導入してください.それから,適当に選んだディレクトリ(もといクラスファイルを導入したのとは異なるデ
16368 ィレクトリ)で簡単なRev\SpecialChar TeX
16369  4文書を \SpecialChar LaTeX
16370 でコンパイルできるかどうか確認してください.この後,\SpecialChar LyX
16371 を環境構成すると,クラスファイルを検出し,Rev\SpecialChar TeX
16372 4テキストクラスが使用
16373 できるようになるはずです.
16374 \end_layout
16375
16376 \begin_layout Standard
16377 使い始めるには,
16378 \family typewriter
16379 tex2lyx
16380 \family default
16381 を使ってRev\SpecialChar TeX
16382  4文書を読み込むか,またはひな型ディレクトリにある
16383 \family sans
16384 Revtex
16385 \begin_inset space ~
16386 \end_inset
16387
16388 4
16389 \family default
16390 のひな型を使うのが,おそらく一番簡単な方法でしょう.
16391 \end_layout
16392
16393 \begin_layout Subsection
16394 プリアンブルに関すること
16395 \end_layout
16396
16397 \begin_layout Standard
16398
16399 \family typewriter
16400
16401 \backslash
16402 documentclass
16403 \family default
16404 に与える「preprint」や「aps」のような非必須引数は,他のクラス同様,
16405 \family sans
16406 文書\SpecialChar menuseparator
16407 設定\SpecialChar menuseparator
16408 文書クラス
16409 \family default
16410
16411 \family sans
16412 クラスオプション
16413 \family default
16414 フィールドに入れます.Rev\SpecialChar TeX
16415 では,少なくとも一つの非必須引数が必要なことに注意してください.
16416 \end_layout
16417
16418 \begin_layout Standard
16419
16420 \family typewriter
16421
16422 \backslash
16423 draft
16424 \family default
16425 など他のプリアンブルは,他のクラス同様,
16426 \family sans
16427 文書\SpecialChar menuseparator
16428 設定\SpecialChar menuseparator
16429 \SpecialChar LaTeX
16430 プリアンブル
16431 \family default
16432 に入れてください.
16433 \end_layout
16434
16435 \begin_layout Subsection
16436 レイアウト
16437 \end_layout
16438
16439 \begin_layout Standard
16440 レイアウトは,基本的にRev\SpecialChar TeX
16441 4.0のコマンドに対応しています.たとえば,Emailレイアウトは,
16442 \family typewriter
16443
16444 \backslash
16445 email{}
16446 \family default
16447 に対応しています.(少なくともRev\SpecialChar TeX
16448  4.0 Beta現在では)
16449 \family sans
16450 住所
16451 \family default
16452
16453 \family sans
16454 所属
16455 \family default
16456 はまったく同じものなので,両方を使う必要はありません
16457 \begin_inset Foot
16458 status collapsed
16459
16460 \begin_layout Plain Layout
16461 ついでながら,
16462 \family typewriter
16463 tex2lyx
16464 \family default
16465 は両方とも対応しているので,
16466 \family typewriter
16467
16468 \backslash
16469 address
16470 \family default
16471
16472 \family typewriter
16473
16474 \backslash
16475 affiliation
16476 \family default
16477 のどちらも翻訳することができます.
16478 \end_layout
16479
16480 \end_inset
16481
16482
16483 \end_layout
16484
16485 \begin_layout Subsection
16486 重要な注意
16487 \end_layout
16488
16489 \begin_layout Standard
16490 Rev\SpecialChar TeX
16491  4には,バグを引き起こしがちなために,気をつけなくてはならない特殊な面がいくつかあるため,\SpecialChar LyX
16492 ではさらに気をつけなくてはなりません.
16493 \end_layout
16494
16495 \begin_layout Standard
16496 Rev\SpecialChar TeX
16497 では,
16498 \family typewriter
16499
16500 \backslash
16501 thanks
16502 \family default
16503 コマンドは,
16504 \family typewriter
16505
16506 \backslash
16507 author
16508 \family default
16509 コマンドの
16510 \emph on
16511 外側
16512 \emph default
16513 に来なくてはなりません.\SpecialChar LyX
16514 では,独立した
16515 \family sans
16516 感謝
16517 \family default
16518 レイアウトがこの働きをします.直接
16519 \family sans
16520 ,著者
16521 \family default
16522 レイアウトに脚注を付けてしまうと,おかしなことが起こる可能性があります.詳細については,Rev\SpecialChar TeX
16523  4の取扱説明書をご覧ください.
16524 \end_layout
16525
16526 \begin_layout Standard
16527 また,
16528 \family sans
16529 著者電子メール
16530 \family default
16531
16532 \family sans
16533 著者URL・感謝(thanks)
16534 \family default
16535 レイアウトは,
16536 \family sans
16537 著者
16538 \family default
16539 レイアウトと
16540 \family sans
16541 住所(
16542 \family default
16543 または同等の
16544 \family sans
16545 所属
16546 \family default
16547 )レイアウトの間に置かなければなりません.
16548 \family sans
16549 感謝(thanks)
16550 \family default
16551
16552 \family sans
16553 住所
16554 \family default
16555 の後に置いてしまうと,\SpecialChar LaTeX
16556 はコンパイルに失敗します.
16557 \end_layout
16558
16559 \begin_layout Subsection
16560 問題点
16561 \end_layout
16562
16563 \begin_layout Standard
16564 このレイアウトの主な問題点は,電子メールやタイトルのようなレイアウトに非必須引数を用いることができないことです(これはこのレイアウトだけの問題ではありません.例
16565 えば,節レイアウトも非必須引数を使用することができません).これは,たとえばページヘッダにヘッダ用タイトルを設定したい場合などには,ファイルを\SpecialChar LaTeX
16566 ファイルに変換した
16567 後に(これは最終的にAPSに原稿を送る際には行わなくてはなりません),テキストエディタを使って\SpecialChar LaTeX
16568 ファイルを編集し,非必須引数を書き加えなくてはならないということで
16569 す.これらのレイアウトがないと,
16570 \family typewriter
16571
16572 \backslash
16573 altaffiliation
16574 \family default
16575 (またそれと同等な
16576 \family typewriter
16577
16578 \backslash
16579 altaddress
16580 \family default
16581 )は使えませんので,対応するレイアウトは存在せず,手動で書き加える必要があります
16582 \begin_inset Foot
16583 status collapsed
16584
16585 \begin_layout Plain Layout
16586
16587 \emph on
16588 JMarcからの註:
16589 \emph default
16590  実は,\SpecialChar LyX
16591  1.3.0 では非必須引数を一部サポートしているのですが,このレイアウトは,まだこの機能を使うようにはアップデートされていないのです.
16592 \end_layout
16593
16594 \end_inset
16595
16596
16597 \end_layout
16598
16599 \begin_layout Section
16600 Springer学術誌(
16601 \family sans
16602 svjour)
16603 \end_layout
16604
16605 \begin_layout Standard
16606
16607 \noun on
16608 Martin Vermeer
16609 \noun default
16610
16611 \end_layout
16612
16613 \begin_layout Subsection
16614 説明
16615 \end_layout
16616
16617 \begin_layout Standard
16618 これは,Springer Verlag社発行のいくつかの学術誌で使用されている書式のレイアウトファイルです.
16619 \begin_inset Flex URL
16620 status collapsed
16621
16622 \begin_layout Plain Layout
16623
16624 http://www.springer.de/author/tex/help-journals.html
16625 \end_layout
16626
16627 \end_inset
16628
16629 に必要なクラスファイル(\SpecialChar LaTeX2e
16630 用になりました)とそれに対応する学術誌の一覧があります.このレイアウトはモジュール式になっています.つまり,全ジャーナル共通部分は
16631 \family typewriter
16632 svjour.inc
16633 \family default
16634 に実装されており,各誌個別のレイアウトファイル(たとえばJournal of Geodesy用の
16635 \family typewriter
16636 svjog.layout
16637 \family default
16638 など)から取り込むことができます.
16639 \end_layout
16640
16641 \begin_layout Standard
16642 このことは,上記の学術誌一覧にある他のSpringer誌のサポートを実装するためには,
16643 \family typewriter
16644 svjog.layout
16645 \family default
16646 に書かれている指示に従って,自作の
16647 \family typewriter
16648 sv
16649 \family default
16650 <学術誌名>
16651 \family typewriter
16652 .layout
16653 \family default
16654 を書くだけで良いことを意味します.
16655 \end_layout
16656
16657 \begin_layout Standard
16658 このレイアウトは,Journal of Geodesyに対してのみ,充分な試験が為されています.
16659 \family typewriter
16660 svjour
16661 \family default
16662
16663 \family typewriter
16664 svjog
16665 \family default
16666 は,標準\SpecialChar LyX
16667 頒布版に収録済みです.関連するクラスファイルを(Springerからダウンロードして)適切なディレクトリに導入し,\SpecialChar LaTeX
16668 を再設定した後(teTeXの場合は,必
16669 要に応じてroot権限で
16670 \family typewriter
16671 texhash
16672 \family default
16673 を実行します),\SpecialChar LyX
16674 を環境構成すれば,動作するはずです.
16675 \end_layout
16676
16677 \begin_layout Subsection
16678 新スタイル
16679 \end_layout
16680
16681 \begin_layout Standard
16682 多くの定理環境 — 
16683 \family sans
16684 主張
16685 \family default
16686
16687 \family sans
16688 推論
16689 \family default
16690 ・\SpecialChar ldots
16691
16692 \family sans
16693 定理
16694 \family default
16695
16696 \end_layout
16697
16698 \begin_layout Standard
16699
16700 \family sans
16701 ヘッドノート
16702 \family default
16703
16704 \family sans
16705 献呈
16706 \family default
16707
16708 \family sans
16709 サブタイトル・ヘッダ用\SpecialChar LaTeX
16710 タイトル・ヘッダ用著者名・所属機関・メール・オフプリント・キーワード・謝辞(acknowledgements)・謝辞(acknowledg
16711 ement)
16712 \family default
16713 .詳しくは Springerのクラスファイルの説明書を読んでください.
16714 \end_layout
16715
16716 \begin_layout Subsection
16717 サポートしているジャーナル
16718 \end_layout
16719
16720 \begin_layout Itemize
16721
16722 \emph on
16723 Journal of Geodesy
16724 \emph default
16725
16726 \family typewriter
16727 svjog.layout
16728 \family default
16729  — Martin Vermeer
16730 \end_layout
16731
16732 \begin_layout Itemize
16733
16734 \emph on
16735 Probability Theory and Related Fields
16736 \emph default
16737
16738 \family typewriter
16739 svprobth.layout
16740 \family default
16741  — Jean-Marc Lasgouttes
16742 \end_layout
16743
16744 \begin_layout Standard
16745 あなた自身のレイアウトファイルをつくってください.難しくはありません.
16746 \end_layout
16747
16748 \begin_layout Subsection
16749 Credits
16750 \end_layout
16751
16752 \begin_layout Standard
16753 これらのファイルは,以前の 
16754 \family typewriter
16755 ejour2.layout
16756 \family default
16757 をもとにしています.
16758 \family typewriter
16759 ejour2.layout
16760 \family default
16761 は Springerの\SpecialChar LaTeX
16762  2.09用のスタイルファイルを使った素人細工のようなレイアウトファイルです.これらのファイルはすでにありません.Jean-Marc
16763  Lasgouttesのおかげで \SpecialChar LyX
16764 のレイアウトファイルのメカニズムをよりよく理解することができました.
16765 \end_layout
16766
16767 \begin_layout Subsection
16768 バグ
16769 \end_layout
16770
16771 \begin_layout Standard
16772 多分あります.以前の 
16773 \family typewriter
16774 ejour2
16775 \family default
16776 よりは少なくなっているとは思いますが.
16777 \end_layout
16778
16779 \begin_layout Standard
16780 制限事項:定理環境の環境の番号は表示されません.#が表示されるだけです.
16781 \end_layout
16782
16783 \begin_layout Section
16784 Slides (別名
16785 \noun on
16786 Sli\SpecialChar TeX
16787
16788 \noun default
16789 )
16790 \begin_inset Foot
16791 status collapsed
16792
16793 \begin_layout Plain Layout
16794 (訳註)この節の内容は,全般的に古くなっています.
16795 \end_layout
16796
16797 \end_inset
16798
16799
16800 \begin_inset CommandInset label
16801 LatexCommand label
16802 name "sec:slitex"
16803
16804 \end_inset
16805
16806
16807 \end_layout
16808
16809 \begin_layout Standard
16810
16811 \noun on
16812 John Weiss
16813 \noun default
16814
16815 \end_layout
16816
16817 \begin_layout Subsection
16818 はじめに
16819 \end_layout
16820
16821 \begin_layout Standard
16822 本節では,オーバーへッドプロジェクタ用のスライドをつくるのに,\SpecialChar LyX
16823 をどのように使えばよいかを説明します.これを行う文書クラスには,既定のslideクラスと
16824 \family sans
16825 Foil\SpecialChar TeX
16826
16827 \family default
16828 スライドクラスの2つがあります.本節は前者について説明を行います.
16829 \end_layout
16830
16831 \begin_layout Standard
16832 誤解のないように,正しく明確に,もう一度言っておきます.
16833 \end_layout
16834
16835 \begin_layout Standard
16836 \begin_inset VSpace bigskip
16837 \end_inset
16838
16839
16840 \end_layout
16841
16842 \begin_layout Standard
16843 \align center
16844
16845 \size large
16846 本節は文書クラス
16847 \begin_inset Quotes eld
16848 \end_inset
16849
16850
16851 \family sans
16852 transparencies (slides)
16853 \family default
16854
16855 \begin_inset Quotes erd
16856 \end_inset
16857
16858
16859 \emph on
16860 のみ
16861 \emph default
16862 を説明しています.
16863 \end_layout
16864
16865 \begin_layout Standard
16866 \begin_inset VSpace bigskip
16867 \end_inset
16868
16869
16870 \end_layout
16871
16872 \begin_layout Standard
16873
16874 \family sans
16875 「slides (Foil\SpecialChar TeX
16876 )
16877 \family default
16878 」の説明をお探しならば,第
16879 \begin_inset CommandInset ref
16880 LatexCommand ref
16881 reference "sec:foiltex"
16882
16883 \end_inset
16884
16885 節をご覧ください.
16886 \family sans
16887 foils
16888 \family default
16889 クラス「
16890 \family sans
16891 slides (Foil\SpecialChar TeX
16892 )
16893 \family default
16894 」は,実際,本節で説明している既定
16895 \family sans
16896 slides
16897 \family default
16898 クラスよりも良いようです
16899 \begin_inset Foot
16900 status collapsed
16901
16902 \begin_layout Plain Layout
16903 \SpecialChar ldots
16904
16905 \family sans
16906 Foil\SpecialChar TeX
16907
16908 \family default
16909 の支持者からは聞いています.けれども私は使ったことがないので,本当かどうか確かめようがありません.
16910 \end_layout
16911
16912 \end_inset
16913
16914
16915 \end_layout
16916
16917 \begin_layout Standard
16918 このクラスは,旧SLI\SpecialChar TeX
16919 パッケージを\SpecialChar LaTeX2e
16920 用に改良したものです.\SpecialChar LaTeX2e
16921 頒布版すべてが,このクラス(以下では単に「
16922 \family sans
16923 slides
16924 \family default
16925 」と述べることにします)を含んでいるので,あなたもお持ちのはずです.前述の
16926 \family sans
16927 foils
16928 \family default
16929 のように,同じくオーバーへッドプロジェクタ用のスライドを生成しながら,このクラスよりも良い仕事をするクラスもあります.しかしながら,オーバーレイを生成するなど,
16930 他のクラスにはできないが
16931 \family sans
16932 slides
16933 \family default
16934 ならばできることもあります.詳しくは以下をお読みください.
16935 \end_layout
16936
16937 \begin_layout Subsection
16938 使い始めるには
16939 \begin_inset CommandInset label
16940 LatexCommand label
16941 name "sec:slidesetup"
16942
16943 \end_inset
16944
16945
16946 \end_layout
16947
16948 \begin_layout Standard
16949 当然ながら,この文書クラスを使用するには,
16950 \family sans
16951 文書\SpecialChar menuseparator
16952 設定
16953 \family default
16954 ダイアログのクラスリストから「
16955 \family sans
16956 transparencies (slides)
16957 \family default
16958 」を選択しなくてはなりません.このクラスについて,以下のように,特に知っておいた方が良いことがいくつかあります.
16959 \end_layout
16960
16961 \begin_layout Itemize
16962
16963 \family sans
16964 用紙方向
16965 \family default
16966
16967 \family sans
16968 二段組文書
16969 \family default
16970 の各オプションは,あえて変更する必要はありません.これらのオプションは,
16971 \family sans
16972 slides
16973 \family default
16974 クラスではサポートされていないので,効果がありません.
16975 \end_layout
16976
16977 \begin_layout Itemize
16978
16979 \family sans
16980 ヘディング様式
16981 \family default
16982 オプションは,このクラスでは少し異なった振る舞いをします.各選択肢とその機能は,以下の通りです.
16983 \end_layout
16984
16985 \begin_deeper
16986 \begin_layout Description
16987 プレーン(plain) 最終出力の右下隅にページ番号が付きます.
16988 \end_layout
16989
16990 \begin_layout Description
16991 設定(headings)
16992 \family sans
16993  プレーン(plain)
16994 \family default
16995 と同様ですが,それ以外にあなたが指定したタイムマーカーをすべて出力します.これが既定値です.
16996 \end_layout
16997
16998 \begin_layout Description
16999 空 最終出力には,ページ番号もタイムマーカーも位置揃えマーカーも出力されません.
17000 \end_layout
17001
17002 \end_deeper
17003 \begin_layout Itemize
17004
17005 \family sans
17006 slides
17007 \family default
17008 クラスには,もう一つ
17009 \family typewriter
17010 clock
17011 \family default
17012 というオプションがあります.これを使用するには,
17013 \family sans
17014 クラスオプション
17015 \family default
17016 に「
17017 \family typewriter
17018 clock
17019 \family default
17020 」と入力してください.
17021 \end_layout
17022
17023 \begin_deeper
17024 \begin_layout Standard
17025 このオプションを使うと,
17026 \family sans
17027 注釈
17028 \family default
17029 にタイムマーカーを加えることができます.詳細は,第
17030 \begin_inset CommandInset ref
17031 LatexCommand ref
17032 reference "sec:スライド注釈"
17033
17034 \end_inset
17035
17036 節をご覧ください.
17037 \end_layout
17038
17039 \end_deeper
17040 \begin_layout Standard
17041
17042 \family sans
17043 slides
17044 \family default
17045 クラスを用いた文書を自動的にセットアップするには,ひな型ファイル「
17046 \family typewriter
17047 slides.lyx
17048 \family default
17049 」を使用することもできます(新規ファイルを開く際に
17050 \family sans
17051 ファイル\SpecialChar menuseparator
17052 新規(ひな型使用)
17053 \family default
17054 を使用してください).ひな型ファイルには,このクラスが使用する特別な段落環境の用例も含まれています.これらについては,以下で説明します.
17055 \end_layout
17056
17057 \begin_layout Subsection
17058 段落環境
17059 \end_layout
17060
17061 \begin_layout Subsubsection
17062
17063 \family sans
17064 サポートされている環境
17065 \end_layout
17066
17067 \begin_layout Standard
17068 新しく
17069 \family sans
17070 slides
17071 \family default
17072 文書を開いたときにまず気付くのは,フォント寸法とフォント族の違いでしょう.ここでは,
17073 \family sans
17074 サンセリフ体
17075 \family default
17076 フォントの
17077 \family sans
17078 極大
17079 \family default
17080 寸法が用いられており,出力でもこのフォントが使用されます.これは,現在スライドを作成中であることの「目印」だと考えてください.出力スライドは大きなフォントを使用
17081 するため,書ける場所は少なくなります.もちろん,既定の大きな画面フォントはWYSIWYGではなく,スライドであることの目印に過ぎません.
17082 \end_layout
17083
17084 \begin_layout Standard
17085 次に気付くのは,(ツールバー左端の)段落環境プルダウンボックスが変わっていることでしょう.通常見かける環境の多くがなくなって,代わりに5つの新しい環境が入ってい
17086 ます.これは,
17087 \family sans
17088 slides
17089 \family default
17090 クラスが,標準段落環境のうち以下のものしかサポートしていないためです.
17091 \end_layout
17092
17093 \begin_layout Itemize
17094
17095 \family sans
17096 標準
17097 \end_layout
17098
17099 \begin_layout Itemize
17100
17101 \family sans
17102 箇条書き(記号)
17103 \end_layout
17104
17105 \begin_layout Itemize
17106
17107 \family sans
17108 箇条書き(連番)
17109 \end_layout
17110
17111 \begin_layout Itemize
17112
17113 \family sans
17114 箇条書き(記述)
17115 \end_layout
17116
17117 \begin_layout Itemize
17118
17119 \family sans
17120 箇条書き(一覧)
17121 \end_layout
17122
17123 \begin_layout Itemize
17124
17125 \family sans
17126 引用(字下げあり)
17127 \end_layout
17128
17129 \begin_layout Itemize
17130
17131 \family sans
17132 引用(字下げなし)
17133 \end_layout
17134
17135 \begin_layout Itemize
17136
17137 \family sans
17138 詩句
17139 \end_layout
17140
17141 \begin_layout Itemize
17142
17143 \family sans
17144 キャプション
17145 \end_layout
17146
17147 \begin_layout Itemize
17148
17149 \family sans
17150 \SpecialChar LyX
17151 コード
17152 \end_layout
17153
17154 \begin_layout Itemize
17155
17156 \family sans
17157 コメント
17158 \end_layout
17159
17160 \begin_layout Standard
17161 これ以外の標準的な環境,例えば節見出し用の環境などは
17162 \family sans
17163 slides
17164 \family default
17165 クラスでは使えません.
17166 \end_layout
17167
17168 \begin_layout Standard
17169 一方,以下の新しい環境があります.
17170 \end_layout
17171
17172 \begin_layout Itemize
17173
17174 \family sans
17175 スライド
17176 \end_layout
17177
17178 \begin_layout Itemize
17179
17180 \family sans
17181 オーバーレイ
17182 \end_layout
17183
17184 \begin_layout Itemize
17185
17186 \family sans
17187 注釈
17188 \end_layout
17189
17190 \begin_layout Itemize
17191
17192 \family sans
17193 不可視文
17194 \end_layout
17195
17196 \begin_layout Itemize
17197
17198 \family sans
17199 可視文
17200 \end_layout
17201
17202 \begin_layout Standard
17203 これら5つの環境は,\SpecialChar LyX
17204 の「機能」のために使い方に癖があります.ご存じのように,\SpecialChar LyX
17205 では,空の段落環境に他の環境を入れることができません.それ自体は素晴らしいデザインな
17206 のですが,これは,スライドを平文以外では書き始めることができないことを意味します.これを取り扱うためには,ちょっとした「\SpecialChar LaTeX
17207 マジック」が必要になります.
17208 \end_layout
17209
17210 \begin_layout Subsubsection
17211 新環境の癖
17212 \begin_inset CommandInset label
17213 LatexCommand label
17214 name "sec:スライドの癖"
17215
17216 \end_inset
17217
17218
17219 \end_layout
17220
17221 \begin_layout Standard
17222 5つの新しい環境にはすべて,\SpecialChar LyX
17223 現行版の制約に由来する癖があります.いま述べたように,\SpecialChar LyX
17224 では,環境を別の環境で開始することが禁止されています.これを回避するために,
17225 \family sans
17226 スライド
17227 \family default
17228 環境は『
17229 \emph on
17230 ユーザーの手引き
17231 \emph default
17232 』で述べられているような段落環境ではなくなっています.
17233 \end_layout
17234
17235 \begin_layout Standard
17236
17237 \family sans
17238 スライド
17239 \family default
17240
17241 \family sans
17242 オーバーレイ
17243 \family default
17244
17245 \family sans
17246 注釈
17247 \family default
17248 は「疑似環境」だとお考えください.これらは節見出しや「
17249 \family sans
17250 キャプション
17251 \family default
17252 」のように見えますが,実際には(必要なら前段落を終了して)新しい段落環境を開始します.同様に,
17253 \family sans
17254 不可視文
17255 \family default
17256
17257 \family sans
17258 可視文
17259 \family default
17260 も「疑似コマンド」とお考えください.この2つは特定のアクションを行います.
17261 \end_layout
17262
17263 \begin_layout Standard
17264
17265 \family sans
17266 スライド
17267 \family default
17268
17269 \family sans
17270 オーバーレイ
17271 \family default
17272
17273 \family sans
17274 注釈
17275 \family default
17276
17277 \family sans
17278 不可視文
17279 \family default
17280
17281 \family sans
17282 可視文
17283 \family default
17284 の5環境に共通しているのは,長めのラベルを持つことです.このラベルに続く文章—通常は段落環境の内容になるはずですが—は,
17285 \family sans
17286 スライド
17287 \family default
17288
17289 \family sans
17290 オーバーレイ
17291 \family default
17292
17293 \family sans
17294 注釈
17295 \family default
17296
17297 \family sans
17298 不可視文
17299 \family default
17300
17301 \family sans
17302 可視文
17303 \family default
17304 では,まったく意味がなく,\SpecialChar LyX
17305 はこの部分を完全に無視します.これらの5つの環境の内容は,完全に空のままにしておいて構いません.
17306 \end_layout
17307
17308 \begin_layout Standard
17309 長めのラベルの後に文章を入れる
17310 \emph on
17311 必要は
17312 \emph default
17313 まったく
17314 \emph on
17315 ない
17316 \emph default
17317 とはいえ,何か書いておきたいこともあるかもしれません.たとえば,スライドの内容に関する短い説明などがそうでしょう.この場合,いつもどおり説明用のコメントを入力し
17318
17319 \family sans
17320 Return
17321 \family default
17322 を押してください.
17323 \end_layout
17324
17325 \begin_layout Standard
17326 一方,説明文を入れたくない場合には,\SpecialChar LyX
17327 の制約に直面します.自然が真空を憎むように,\SpecialChar LyX
17328 では,古い環境に何かを置くまでは,その中に新しい環境を入れることができません.そ
17329 こで以下のようにしてください.
17330 \end_layout
17331
17332 \begin_layout Itemize
17333 新しい
17334 \family sans
17335 スライド
17336 \family default
17337
17338 \family sans
17339 オーバーレイ
17340 \family default
17341
17342 \family sans
17343 注釈
17344 \family default
17345
17346 \family sans
17347 不可視文
17348 \family default
17349
17350 \family sans
17351 可視文
17352 \family default
17353
17354 \emph on
17355 中に入れる
17356 \emph default
17357 文章を入力してください.
17358 \end_layout
17359
17360 \begin_layout Itemize
17361 段落の先頭に移動します.
17362 \end_layout
17363
17364 \begin_layout Itemize
17365 次に
17366 \family sans
17367 Return
17368 \family default
17369 を押します.
17370 \end_layout
17371
17372 \begin_layout Itemize
17373 最後に,この新しい空の段落を
17374 \family sans
17375 スライド
17376 \family default
17377
17378 \family sans
17379 オーバーレイ
17380 \family default
17381
17382 \family sans
17383 注釈
17384 \family default
17385
17386 \family sans
17387 不可視文
17388 \family default
17389
17390 \family sans
17391 可視文
17392 \family default
17393 に変更します.
17394 \end_layout
17395
17396 \begin_layout Standard
17397 将来の\SpecialChar LyX
17398 では,このような癖が解決されることを祈っています\SpecialChar ldots
17399
17400 \begin_inset Foot
17401 status collapsed
17402
17403 \begin_layout Plain Layout
17404 (訳註)ここの記述は古くなっています.
17405 \end_layout
17406
17407 \end_inset
17408
17409
17410 \end_layout
17411
17412 \begin_layout Subsection
17413
17414 \family sans
17415 スライド
17416 \family default
17417
17418 \family sans
17419 オーバーレイ
17420 \family default
17421
17422 \family sans
17423 注釈で発表用のスライドを作る
17424 \end_layout
17425
17426 \begin_layout Subsubsection
17427
17428 \family sans
17429 スライド
17430 \family default
17431 環境を使う
17432 \end_layout
17433
17434 \begin_layout Standard
17435 もし本節が,実際のプレゼンテーションの作り方を教えてくれるものと期待されているとすれば,大いにがっかりされるかもしれません.当然ながら,プレゼンテーション用の資
17436 料を準備するうえで
17437 \family sans
17438 slides
17439 \family default
17440 クラスを役立てる方法を詳しく説明はしますが,内容をどうするかはあなた次第です(そしてこれも\SpecialChar LyX
17441 の哲学です).
17442 \end_layout
17443
17444 \begin_layout Standard
17445
17446 \family sans
17447 スライド
17448 \family default
17449 環境を選択すれば(方法は第
17450 \begin_inset CommandInset ref
17451 LatexCommand ref
17452 reference "sec:スライドの癖"
17453
17454 \end_inset
17455
17456 節参照のこと),\SpecialChar LyX
17457 は新規スライドを開始します.この環境ないし「疑似環境」のラベルは,鮮やかな青で「新規スライド:」と表示されます.この環境の後のテキスト環境や段落
17458 環境は,すべて新規スライドに入ります.簡単ですよね.
17459 \end_layout
17460
17461 \begin_layout Standard
17462 Slidesは,おそらく\SpecialChar LyX
17463 の中で強制的に改頁をしなくてはならない唯一のクラスです(これは
17464 \family sans
17465 段落レイアウト
17466 \family default
17467 ダイアログで指定できます).実際,一つのスライドの内容を入力し終わったら,改頁したくなるはずです.仮に一つのスライドに物理的に入りきらない文章を入力したとすると
17468 ,入りきらない部分は,次の新規スライドにまわされます.しかしながら,入りきらない部分のスライドにはページ番号が付きませんので,こうするのはお勧めしません.その上
17469 ,一枚に収まらないスライドでは,
17470 \family sans
17471 オーバーレイ
17472 \family default
17473 を使用すると干渉する恐れがあります.
17474 \end_layout
17475
17476 \begin_layout Standard
17477
17478 \family sans
17479 オーバーレイ
17480 \family default
17481 環境と
17482 \family sans
17483 注釈
17484 \family default
17485 環境も,
17486 \family sans
17487 スライド
17488 \family default
17489 環境と同様の動作を示します.これらは,青の代わりに鮮やかなマゼンタで,それぞれ「
17490 \noun on
17491 新規オーバーレイ
17492 \noun default
17493 :」ないし「
17494 \noun on
17495 新規注釈:
17496 \noun default
17497 」というラベルを表示します.ラベルのフォントも,3つの環境でそれぞれ異なるものが使用されます.
17498 \end_layout
17499
17500 \begin_layout Standard
17501
17502 \family sans
17503 スライド
17504 \family default
17505 と同様に,
17506 \family sans
17507 オーバーレイ
17508 \family default
17509
17510 \family sans
17511 注釈
17512 \family default
17513 の内容が,一つのスライドないしページに物理的に収まりきらない場合には,余分は新規スライドに回されます.この場合には,
17514 \family sans
17515 注釈
17516 \family default
17517
17518 \family sans
17519 オーバーレイ
17520 \family default
17521 の本来の目的が達せられなくなりますので,ここでもこのような状態は避けるべきでしょう.
17522 \end_layout
17523
17524 \begin_layout Subsubsection
17525
17526 \family sans
17527 スライドでオーバーレイを使用する
17528 \end_layout
17529
17530 \begin_layout Standard
17531
17532 \family sans
17533 オーバーレイ
17534 \family default
17535 の背後にある考え方は,別のスライドの上にスライドを載せようとするものです.メインの
17536 \family sans
17537 スライド
17538 \family default
17539 に図があるとき,関連した文章を表示する前に,図について議論を進めたいと思うことがあるかもしれません.これを行うひとつの方法は,
17540 \family sans
17541 スライド
17542 \family default
17543 で後に表示したい部分に黒い紙の蓋を貼り付けてしまうことですが,この方法は,たとえばグラフを他のグラフに重ねたい場合などには,うまく行きません.この場合には,二つ
17544 のグラフを揃えるために,重ねる二つのスライドを,喋りながら手探りで揃えなくてはなりません.これらのような場合には,
17545 \family sans
17546 オーバーレイ
17547 \family default
17548 環境を使えば,もっと楽になります.
17549 \end_layout
17550
17551 \begin_layout Standard
17552
17553 \family sans
17554 オーバーレイ
17555 \family default
17556 は,「親」
17557 \family sans
17558 スライド
17559 \family default
17560 のページ番号を引継ぎ,その後に「
17561 \family typewriter
17562 -a
17563 \family default
17564 」を付け加えます
17565 \begin_inset Foot
17566 status collapsed
17567
17568 \begin_layout Plain Layout
17569 想像できるように,複数のオーバーレイがあれば,「
17570 \family typewriter
17571 -a
17572 \family default
17573 」「
17574 \family typewriter
17575 -b
17576 \family default
17577 」「
17578 \family typewriter
17579 -c
17580 \family default
17581 」などが親スライドのページ番号に付け加えられます.
17582 \end_layout
17583
17584 \end_inset
17585
17586 .当然のことながら,
17587 \family sans
17588 スライド
17589 \family default
17590
17591 \family sans
17592 オーバーレイ
17593 \family default
17594 の内容は両方とも,1枚のスライドに物理的に収まるようになっていなければなりません.
17595 \family sans
17596 オーバーレイ
17597 \family default
17598
17599 \family sans
17600 スライド
17601 \family default
17602 の「一部」であると考えるのがよいでしょう.\SpecialChar LyX
17603 では,
17604 \family sans
17605 オーバーレイ
17606 \family default
17607 のラベルを
17608 \family sans
17609 スライド
17610 \family default
17611 のラベルよりも下げることで,このことを視覚的に表しています.また,印刷可能な出力を生成すると,
17612 \family sans
17613 オーバーレイ
17614 \family default
17615 と親
17616 \family sans
17617 スライド
17618 \family default
17619 両方の四隅に,揃えマーカーがあることに気づかれるはずです.これは,2枚のスライドを物理的に重ね合わせるための補助となるものです.
17620 \end_layout
17621
17622 \begin_layout Standard
17623 2つのスライドをオーバーレイさせる際の大きな問題は,2枚のスライドの内容を揃えることです.2枚目のスライドのグラフには,どれだけの余白を残しておくべきなのでしょ
17624 うか?さらにややこしく,2枚目のスライドにグラフと文章を入れたいときに,その間に割り込んでしまうような文章がメインスライドにある場合には,どうでしょうか?正しい
17625 寸法の垂直スペースを挿入してみることもできるでしょう.しかし,もっと良い方法として,
17626 \family sans
17627 不可視文
17628 \family default
17629
17630 \family sans
17631 可視文
17632 \family default
17633 を使用する方法があります.
17634 \end_layout
17635
17636 \begin_layout Standard
17637 これらの名前が意味するとおり,
17638 \family sans
17639 不可視文
17640 \family default
17641
17642 \family sans
17643 可視文
17644 \family default
17645 は,それぞれ続く文章すべてを見えなくしたり見えるようにしたりするコマンド型の段落環境です.しかしながら,第
17646 \begin_inset CommandInset ref
17647 LatexCommand ref
17648 reference "sec:スライドの癖"
17649
17650 \end_inset
17651
17652 節で述べたように,この2つの環境の
17653 \emph on
17654
17655 \emph default
17656 には何も置くことができません.
17657 \family sans
17658 不可視文
17659 \family default
17660 を作成すると,「<以下不可視文>」と書かれた水色のラベルが,ページに中央揃えで表示されます.このラベルに続く段落は,それが置かれるべき
17661 \family sans
17662 スライド
17663 \family default
17664 (あるいは
17665 \family sans
17666 オーバーレイ
17667 \family default
17668 ;どちらでも同じことです)部分に,代わりに空白の部分が置かれます.
17669 \end_layout
17670
17671 \begin_layout Standard
17672
17673 \family sans
17674 可視文
17675 \family default
17676 の場合には,中央揃えのラベルは,鮮やかな緑の「<以下可視文>」となります.このラベル以降の段落は,通常通りの挙動を示します.新規の
17677 \family sans
17678 スライド
17679 \family default
17680
17681 \family sans
17682 オーバーレイ
17683 \family default
17684
17685 \family sans
17686 注釈
17687 \family default
17688 を開始すると,
17689 \family sans
17690 不可視文
17691 \family default
17692 は自動的に終了されることに注意してください.したがって,
17693 \family sans
17694 スライド
17695 \family default
17696 の終わりでは,
17697 \family sans
17698 可視文
17699 \family default
17700 を使用する必要はありません.
17701 \end_layout
17702
17703 \begin_layout Standard
17704 ここまでで,
17705 \family sans
17706 スライド
17707 \family default
17708
17709 \family sans
17710 オーバーレイ
17711 \family default
17712 上で
17713 \family sans
17714 不可視文
17715 \family default
17716
17717 \family sans
17718 可視文
17719 \family default
17720 を適切に使用して,スライドをオーバーレイさせる方法が明らかになったことと思います.
17721 \end_layout
17722
17723 \begin_layout Enumerate
17724 メインのスライドか
17725 \family sans
17726 オーバーレイ
17727 \family default
17728 かに関わらず,スライド上に現れるすべてを含んだ
17729 \family sans
17730 スライド
17731 \family default
17732 を作成します.
17733 \end_layout
17734
17735 \begin_layout Enumerate
17736
17737 \family sans
17738 オーバーレイ
17739 \family default
17740 のみに表示するすべての図や段落の前に,
17741 \family sans
17742 不可視文
17743 \family default
17744 環境を挿入し,必要ならば,
17745 \family sans
17746 オーバーレイ
17747 \family default
17748 のみの文章の後に
17749 \family sans
17750 可視文
17751 \family default
17752 環境を挿入します.
17753 \end_layout
17754
17755 \begin_layout Enumerate
17756
17757 \family sans
17758 スライド
17759 \family default
17760 の直後から,
17761 \family sans
17762 オーバーレイ
17763 \family default
17764 を開始します.
17765 \end_layout
17766
17767 \begin_layout Enumerate
17768 この
17769 \family sans
17770 スライド
17771 \family default
17772 の内容を
17773 \family sans
17774 オーバーレイ
17775 \family default
17776 にコピーします.
17777 \end_layout
17778
17779 \begin_layout Enumerate
17780
17781 \family sans
17782 オーバーレイ
17783 \family default
17784 内部の
17785 \family sans
17786 不可視文
17787 \family default
17788 行をすべて
17789 \family sans
17790 不可視文
17791 \family default
17792 に変更し,
17793 \family sans
17794 可視文
17795 \family default
17796
17797 \family sans
17798 不可視文
17799 \family default
17800 に変更します.
17801 \end_layout
17802
17803 \begin_layout Standard
17804 これだけです.これで
17805 \family sans
17806 オーバーレイ
17807 \family default
17808 ができあがりました.
17809 \end_layout
17810
17811 \begin_layout Standard
17812 \SpecialChar LyX
17813  
17814 \family sans
17815 slides
17816 \family default
17817 クラスをデザインする上で,ひとつ残された問題があります.段落途中の文章を不可視にしたり,不可視段落の途中の文章を再度可視にしたりすることはできないのです.これを
17818 実現するためには,\SpecialChar LaTeX
17819 コードを埋め込む必要があります
17820 \begin_inset Foot
17821 status collapsed
17822
17823 \begin_layout Plain Layout
17824 このコマンドは,
17825 \end_layout
17826
17827 \begin_layout Itemize
17828
17829 \family typewriter
17830 {
17831 \backslash
17832 invisible \SpecialChar ldots
17833  }
17834 \end_layout
17835
17836 \begin_layout Itemize
17837
17838 \family typewriter
17839 {
17840 \backslash
17841 visible \SpecialChar ldots
17842  }
17843 \end_layout
17844
17845 \begin_layout Plain Layout
17846 \SpecialChar ldots
17847 のような形となり,\SpecialChar TeX
17848 としてマークする必要があります.「可視性」を変更したい文章は,波括弧のあいだ(そして
17849 \family typewriter
17850
17851 \backslash
17852 invisible
17853 \family default
17854 ないし
17855 \family typewriter
17856
17857 \backslash
17858 visible
17859 \family default
17860 コマンドの後ろ)に入れます.\SpecialChar TeX
17861 としてマークする方法がわからない場合は,
17862 \emph on
17863 ユーザーの手引き
17864 \emph default
17865 をご参照ください.
17866 \end_layout
17867
17868 \end_inset
17869
17870
17871 \end_layout
17872
17873 \begin_layout Subsubsection
17874
17875 \family sans
17876 スライドで注釈を使う
17877 \family default
17878
17879 \begin_inset CommandInset label
17880 LatexCommand label
17881 name "sec:スライド注釈"
17882
17883 \end_inset
17884
17885
17886 \end_layout
17887
17888 \begin_layout Standard
17889
17890 \family sans
17891 オーバーレイ
17892 \family default
17893 と同様,
17894 \family sans
17895 注釈
17896 \family default
17897 も「親」
17898 \family sans
17899 スライド
17900 \family default
17901 に関連付けられています.ここでも\SpecialChar LyX
17902
17903 \family sans
17904 スライド
17905 \family default
17906 クラスは視覚的な効果を与えています.
17907 \family sans
17908 注釈
17909 \family default
17910 のラベルは
17911 \family sans
17912 スライド
17913 \family default
17914 よりも短く(オーバーレイのラベルよりも長いですが),
17915 \family sans
17916 オーバーレイ
17917 \family default
17918 のラベルと同様,派手な赤紫色です.加えて,印刷した
17919 \family sans
17920 注釈
17921 \family default
17922 には,「親」スライドのページ番号に「
17923 \family typewriter
17924 -
17925 \family default
17926 1」「
17927 \family typewriter
17928 -
17929 \family default
17930 2」「
17931 \family typewriter
17932 -
17933 \family default
17934 3」等を付けたページ番号が付けられます.1つの
17935 \family sans
17936 スライド
17937 \family default
17938 には,複数の
17939 \family sans
17940 注釈
17941 \family default
17942 を関連付けることができるので,
17943 \family sans
17944 スライド
17945 \family default
17946
17947 \family sans
17948 オーバーレイ
17949 \family default
17950 と同じように,長い注釈は,1枚の紙に収まるように分割したいと思われるに違いありません.
17951 \end_layout
17952
17953 \begin_layout Standard
17954
17955 \family sans
17956 注釈
17957 \family default
17958 の目的は明らかです.
17959 \family sans
17960 スライド
17961 \family default
17962 に関して付け加えたいことを書き留めておくことです.特定の
17963 \family sans
17964 スライド
17965 \family default
17966 についての覚書として使うこともできます.後者の場合には,タイムマーカを利用したいこともあるかもしれません.現在のところ,\SpecialChar LyX
17967
17968 \family sans
17969 スライド
17970 \family default
17971 クラスは,
17972 \noun on
17973 Sli
17974 \noun default
17975 \SpecialChar TeX
17976 の機能であるタイムマーカを「ネイティブには」サポートしていません.したがって,\SpecialChar LaTeX
17977 コードを使用することに頼らなくてはなりません.
17978 \end_layout
17979
17980 \begin_layout Standard
17981 タイムマーカを使用するには,クラスオプション「
17982 \family typewriter
17983 clock
17984 \family default
17985 」を追加指定する必要があります(第
17986 \begin_inset CommandInset ref
17987 LatexCommand ref
17988 reference "sec:slidesetup"
17989
17990 \end_inset
17991
17992 節参照).このオプションはタイムマーカ機能を有効にして,生成したすべての
17993 \family sans
17994 注釈
17995 \family default
17996 の左下にタイムマーカを表示します.タイムマーカに表示するものを設定するには,\SpecialChar LaTeX
17997 コマンド「
17998 \family typewriter
17999
18000 \backslash
18001 settime{}
18002 \family default
18003 」および「
18004 \family typewriter
18005
18006 \backslash
18007 addtime{}
18008 \family default
18009 」を使用します.両コマンドは,秒で測った時間を引数にとります.「
18010 \family typewriter
18011
18012 \backslash
18013 settime{}
18014 \family default
18015 」は,タイムマーカを特定の時間に設定し,「
18016 \family typewriter
18017
18018 \backslash
18019 addtime{}
18020 \family default
18021 」は,タイムマーカを指定した分だけ進めます.このようにタイムマーカと
18022 \family sans
18023 注釈
18024 \family default
18025 を用いれば,特定の
18026 \family sans
18027 スライド
18028 \family default
18029 にどれだけの時間をかけるのか忘れないでいられます.
18030 \end_layout
18031
18032 \begin_layout Standard
18033 最後に,説明しておくべき機能がもう一つあります.当然ながら,
18034 \family sans
18035 スライド
18036 \family default
18037
18038 \family sans
18039 オーバーレイ
18040 \family default
18041 はすべてスライドに,
18042 \family sans
18043 注釈
18044 \family default
18045 はすべて普通の紙に印刷したいはずです.しかしながら,
18046 \family sans
18047 注釈
18048 \family default
18049 は関連付けられた親スライドの直後に
18050 \emph on
18051 来なくてはなりません
18052 \emph default
18053 .ユーザーはどうしたら良いのでしょうか.
18054 \end_layout
18055
18056 \begin_layout Standard
18057 幸いなことに,どれを印刷するか選択することを可能にする\SpecialChar LaTeX
18058 コマンドが,2種類あります.どちらも文書のプリアンブルに記述されなくてはなりません.コマンド「
18059 \family typewriter
18060
18061 \backslash
18062 onlyslides{
18063 \backslash
18064 slides}
18065 \family default
18066 」は,出力に
18067 \family sans
18068 スライド
18069 \family default
18070
18071 \family sans
18072 オーバーレイ
18073 \family default
18074 のみが含まれるようにするものです.同様に,「
18075 \family typewriter
18076
18077 \backslash
18078 onlynotes{
18079 \backslash
18080 notes}
18081 \family default
18082 」は
18083 \family sans
18084 注釈
18085 \family default
18086 以外の出力をすべて抑制します.私のアドバイスとしては,両コマンドをプリアンブルに書いておいて,最初は両方ともコメントアウトしておくと良いでしょう.そうすれば,執
18087 筆時にはプレゼンテーション全体をプレビューすることができます.いったん書き終えたならば,二つのうち一方のコメントを外して,印刷したい方を選ぶことができます.私な
18088 らば,まず
18089 \family typewriter
18090
18091 \backslash
18092 onlyslides{
18093 \backslash
18094 slides}
18095 \family default
18096 のコメントを外して,現ファイル名に「*
18097 \family typewriter
18098 -slides
18099 \family default
18100 」を付けた新たなファイルに出力を行ない,今度はこの行をふたたびコメントアウトするとともに,「
18101 \family typewriter
18102
18103 \backslash
18104 onlynotes{
18105 \backslash
18106 notes
18107 \family default
18108 }」のコメントを外して,これを「
18109 \family typewriter
18110 *-notes.ps
18111 \family default
18112 」というファイルに出力します.そうすれば,必要に応じて,スライドまたは通常の紙をプリンタにセットし,一方のファイルをプリンタに送ればよいのです.
18113 \end_layout
18114
18115 \begin_layout Standard
18116
18117 \family typewriter
18118
18119 \backslash
18120 onlyslides{}
18121 \family default
18122 」および「
18123 \family typewriter
18124
18125 \backslash
18126 onlynotes{}
18127 \family default
18128 」コマンドには,他の引数を与えることもできます.詳しくは,\SpecialChar LaTeX
18129 の良書をご覧ください.
18130 \end_layout
18131
18132 \begin_layout Subsection
18133
18134 \family sans
18135 slides
18136 \family default
18137 クラスのひな型ファイル
18138 \end_layout
18139
18140 \begin_layout Standard
18141
18142 \family sans
18143 slides
18144 \family default
18145 クラス用のひな型ファイルとして「
18146 \family typewriter
18147 slides.lyx
18148 \family default
18149 」が提供されています.これを使用するには,新しいプレゼンテーションを作り始める際に,
18150 \family sans
18151 ファイル\SpecialChar menuseparator
18152 新規(ひな型使用)
18153 \family default
18154 メニューを選択してください.すると新規ファイルには,
18155 \family sans
18156 スライド
18157 \family default
18158
18159 \family sans
18160 オーバーレイ
18161 \family default
18162
18163 \family sans
18164 注釈
18165 \family default
18166 の組が,例として含まれており,
18167 \family sans
18168 スライド
18169 \family default
18170
18171 \family sans
18172 オーバーレイ
18173 \family default
18174 には,さらに
18175 \family sans
18176 不可視文
18177 \family default
18178
18179 \family sans
18180 可視文
18181 \family default
18182 の使用例も含まれています.また,プリアンブルには,次のように書き込まれています.
18183 \end_layout
18184
18185 \begin_layout LyX-Code
18186 % Uncomment to print out only slides and overlays
18187 \end_layout
18188
18189 \begin_layout LyX-Code
18190 %
18191 \end_layout
18192
18193 \begin_layout LyX-Code
18194 %
18195 \backslash
18196 onlyslides{
18197 \backslash
18198 slides}
18199 \begin_inset Newline newline
18200 \end_inset
18201
18202  
18203 \end_layout
18204
18205 \begin_layout LyX-Code
18206 % Uncomment to print out only notes
18207 \end_layout
18208
18209 \begin_layout LyX-Code
18210 %
18211 \end_layout
18212
18213 \begin_layout LyX-Code
18214 %
18215 \backslash
18216 onlynotes{
18217 \backslash
18218 notes}
18219 \end_layout
18220
18221 \begin_layout Standard
18222 最後に,私はこの文書クラスを,\SpecialChar LaTeX2e
18223 の組み込みクラスである「
18224 \noun on
18225 Sli\SpecialChar TeX
18226
18227 \noun default
18228 エミュレーション」クラスをサポートする目的で作成しました.私も\SpecialChar LyX
18229 チームの他のメンバーも,この組み込みスライドクラスを使用することに賛成したり反対したりするものでは
18230 ありません.これは単に,ユーザーがこれを使いたかったり必要としたりしたときのためにあるものです.プレゼンテーションを作成するためには,
18231 \family sans
18232 Foils
18233 \family default
18234 クラス(第
18235 \begin_inset CommandInset ref
18236 LatexCommand ref
18237 reference "sec:foiltex"
18238
18239 \end_inset
18240
18241 節参照)や「
18242 \family typewriter
18243 seminar
18244 \family default
18245 」パッケージ(一部の\SpecialChar TeX
18246 頒布版に含まれています)のように,他の\SpecialChar LaTeX2e
18247 クラスも存在します.私はこれらについては知らないのですが,他にどのようなことができるのか試してみてくだ
18248 さい.
18249 \end_layout
18250
18251 \begin_layout Chapter
18252 ソフトウェアを追加する必要がある \SpecialChar LyX
18253 機能
18254 \end_layout
18255
18256 \begin_layout Section
18257 \SpecialChar TeX
18258 のチェック
18259 \end_layout
18260
18261 \begin_layout Standard
18262
18263 \noun on
18264 Asger Alstrup
18265 \noun default
18266
18267 \end_layout
18268
18269 \begin_layout Subsection
18270 はじめに
18271 \end_layout
18272
18273 \begin_layout Standard
18274
18275 \family typewriter
18276 chktex
18277 \family default
18278 プログラムが導入されていると
18279 \begin_inset Foot
18280 status collapsed
18281
18282 \begin_layout Plain Layout
18283 \SpecialChar LaTeX
18284 頒布版としてMiK\SpecialChar TeX
18285 を使用している場合には,
18286 \family typewriter
18287 chktex
18288 \family default
18289 はまだ利用可能ではありません.
18290 \end_layout
18291
18292 \end_inset
18293
18294
18295 \family sans
18296 ツール
18297 \family default
18298 メニューの下に,
18299 \family sans
18300 \SpecialChar TeX
18301 構文チェック
18302 \family default
18303 という項目が表示されます.
18304 \family typewriter
18305 chktex
18306 \family default
18307 は,CTAN
18308 \begin_inset Newline newline
18309 \end_inset
18310
18311
18312 \begin_inset CommandInset href
18313 LatexCommand href
18314 target "http://www.ctan.org/tex-archive/help/Catalogue/entries/chktex.html"
18315 literal "false"
18316
18317 \end_inset
18318
18319 から入手することができます.
18320 \end_layout
18321
18322 \begin_layout Standard
18323
18324 \family sans
18325 Chk\SpecialChar TeX
18326
18327 \family default
18328 パッケージは,\SpecialChar LaTeX
18329 の構成物には直感的でないものもあり,すぐ忘れてしまいがちであるのに不満を感じた
18330 \begin_inset Flex Noun
18331 status collapsed
18332
18333 \begin_layout Plain Layout
18334 Jens T.
18335  Berger Thielemann
18336 \end_layout
18337
18338 \end_inset
18339
18340 が書いたプログラムです.このプログラムは,\SpecialChar LaTeX
18341 ファイルを走査して,ファイルの整合性をチェックし,犯しがちな誤りを見つけ出します.別の技術用語では,LaTeXにおける
18342 \family typewriter
18343 lint
18344 \family default
18345 であるとも言えます.
18346 \end_layout
18347
18348 \begin_layout Standard
18349 さて,\SpecialChar LyX
18350 はつねに正しい\SpecialChar LaTeX
18351 ファイルを生成するはずなのに,文法チェッカーは\SpecialChar LyX
18352 で何をするというのでしょうか.答えは簡単です.
18353 \family typewriter
18354 lint
18355 \family default
18356 がC言語プログラムの
18357 \emph on
18358 文法
18359 \emph default
18360 をチェックするだけでなく,打ち間違いによる
18361 \emph on
18362 意味上の
18363 \emph default
18364 チェックも行うように,
18365 \family sans
18366 Chk\SpecialChar TeX
18367
18368 \family default
18369 は,文法エラーの他に犯しがちな
18370 \emph on
18371 写植上の
18372 \emph default
18373 誤りも検出してくれるからです.
18374 \family sans
18375 Chk\SpecialChar TeX
18376
18377 \family default
18378 は,以下のような誤りを検出することができます.
18379 \end_layout
18380
18381 \begin_layout Itemize
18382 省略記号の検出:
18383 \begin_inset Newline newline
18384 \end_inset
18385
18386 ...ではなく\SpecialChar ldots
18387 を使わなくてはなりません
18388 \end_layout
18389
18390 \begin_layout Itemize
18391 括弧の前後にスペースを置かない:
18392 \begin_inset Newline newline
18393 \end_inset
18394
18395 ( wrong spacing ):誤った空白
18396 \end_layout
18397
18398 \begin_layout Itemize
18399 よく使われる省略形の後ろは通常スペースにする:
18400 \begin_inset Newline newline
18401 \end_inset
18402
18403 e.
18404 \begin_inset space \thinspace{}
18405 \end_inset
18406
18407 g.
18408 \begin_inset space \space{}
18409 \end_inset
18410
18411 is too wide spacing.:広すぎる空白
18412 \end_layout
18413
18414 \begin_layout Itemize
18415 直前の文章が大文字で終わっているときに,文末スペースに直す:
18416 \begin_inset Newline newline
18417 \end_inset
18418
18419 This is a TEST.
18420  And this is wrong spacing.:誤った空白
18421 \end_layout
18422
18423 \begin_layout Itemize
18424 ラベルや類似コマンドの前のスペース:
18425 \begin_inset Newline newline
18426 \end_inset
18427
18428 ラベルが別のページに行ってしまわないように,ラベルは文章に接していなくてはなりません. 
18429 \begin_inset CommandInset label
18430 LatexCommand label
18431 name "sec:chktex"
18432
18433 \end_inset
18434
18435  
18436 \begin_inset Foot
18437 status collapsed
18438
18439 \begin_layout Plain Layout
18440 この脚注は,正しくないページに行ってしまう恐れがあります.
18441 \end_layout
18442
18443 \end_inset
18444
18445  このラベルは離れすぎです.
18446 \end_layout
18447
18448 \begin_layout Itemize
18449 参照の前にハードスペースではなくスペース:
18450 \begin_inset Newline newline
18451 \end_inset
18452
18453 運が悪ければ,参照文字列と参照番号のあいだでちょうど改行されてしまい,残念な結果となります.第
18454 \begin_inset CommandInset ref
18455 LatexCommand ref
18456 reference "sec:chktex"
18457
18458 \end_inset
18459
18460 節をご覧ください.
18461 \end_layout
18462
18463 \begin_layout Itemize
18464 数字のあいだで
18465 \begin_inset Formula $\times$
18466 \end_inset
18467
18468 ではなく「x」が使われている:
18469 \begin_inset Newline newline
18470 \end_inset
18471
18472 2x2は,
18473 \begin_inset Formula $2\times2$
18474 \end_inset
18475
18476 よりも安っぽく見えます.
18477 \end_layout
18478
18479 \begin_layout Standard
18480 などなど\SpecialChar ldots
18481
18482 \family sans
18483 Chk\SpecialChar TeX
18484
18485 \family default
18486 は,印刷する前に文書を「仕上げる」上で,たいへん価値のあるツールです.必須のスペルチェックを終えた直後,組版の微調整をする前には,これを実行するべきです.
18487 \end_layout
18488
18489 \begin_layout Subsection
18490 使いかた
18491 \end_layout
18492
18493 \begin_layout Standard
18494 このプログラムを導入したならば,使うのは
18495 \family sans
18496 ツール\SpecialChar menuseparator
18497 \SpecialChar TeX
18498 構文チェック
18499 \family default
18500 を選択するだけなので簡単です.こうすると,\SpecialChar LyX
18501 は使用中の文書の\SpecialChar LaTeX
18502 ファイルを生成して,
18503 \family sans
18504 Chk\SpecialChar TeX
18505
18506 \family default
18507 を起動し,当該ファイルを検査しますが,
18508 \family sans
18509 Chk\SpecialChar TeX
18510
18511 \family default
18512 から警告があった場合には,それを含んだ「エラーボックス」を\SpecialChar LyX
18513 中に挿入します.警告は,誤りのある箇所のそばに置かれるので,メニュー項目の
18514 \family sans
18515 移動\SpecialChar menuseparator
18516 エラー
18517 \family default
18518 を選択するか,既定の
18519 \family typewriter
18520 cua
18521 \family default
18522
18523 \begin_inset Flex Ruby
18524 status collapsed
18525
18526 \begin_layout Plain Layout
18527
18528 \begin_inset Argument post:1
18529 status collapsed
18530
18531 \begin_layout Plain Layout
18532 キー
18533 \end_layout
18534
18535 \end_inset
18536
18537
18538 \end_layout
18539
18540 \end_inset
18541
18542 設定ファイルならば
18543 \begin_inset Flex Ruby
18544 status collapsed
18545
18546 \begin_layout Plain Layout
18547
18548 \family roman
18549 \series medium
18550 \shape up
18551 \size normal
18552 \emph off
18553 \bar no
18554 \noun off
18555 \color none
18556 捷径
18557 \family default
18558 \series default
18559 \shape default
18560 \size default
18561 \emph default
18562 \bar default
18563 \noun default
18564 \color inherit
18565
18566 \begin_inset Argument post:1
18567 status collapsed
18568
18569 \begin_layout Plain Layout
18570 ショートカット
18571 \end_layout
18572
18573 \end_inset
18574
18575
18576 \end_layout
18577
18578 \end_inset
18579
18580
18581 \family sans
18582 C-g
18583 \family default
18584 を押せば,簡単に警告の箇所を見出すことができます.エラーボックスを開けるには,マウスでボックスをクリックするか,
18585 \family typewriter
18586 cua
18587 \family default
18588 鍵設定の場合には捷径鍵
18589 \family sans
18590 C-i
18591 \family default
18592
18593 \family typewriter
18594 emacs
18595 \family default
18596 鍵設定の場合は捷径鍵
18597 \family sans
18598 C-o
18599 \family default
18600 を押します.警告を読み,それが誤りを示していれば修正します.警告が何を意味しているか理解しにくい場合には,無視しても問題はありません.画面上の文書と,
18601 \family sans
18602 Chk\SpecialChar TeX
18603
18604 \family default
18605 を起動する際に行なわれる実際の技術的な操作のあいだには,隠された層があり,この隔たりのせいで,一部の警告が不可解なものになったり,明らかに馬鹿げたものになる場合
18606 があるのです.
18607 \end_layout
18608
18609 \begin_layout Standard
18610 本文書自体,この機能を確認する良い材料になりますので,実行してみてください.すると,かなりの量の警告が出るはずです.これはコンピュータが敏感すぎるせいですので,
18611 警告のほとんどは実際には警告に値しません.
18612 \end_layout
18613
18614 \begin_layout Subsection
18615 微調整のしかた
18616 \end_layout
18617
18618 \begin_layout Standard
18619 場合によっては,
18620 \family sans
18621 Chk\SpecialChar TeX
18622
18623 \family default
18624 は,あなたが望むよりも煩すぎると思うかもしれません.そのような場合には,必要と思うまで
18625 \family sans
18626 Chk\SpecialChar TeX
18627
18628 \family default
18629 を無効にするか,あなたにもう少し合うように
18630 \family sans
18631 Chk\SpecialChar TeX
18632
18633 \family default
18634 を調整することができます.
18635 \end_layout
18636
18637 \begin_layout Standard
18638
18639 \family sans
18640 Chk\SpecialChar TeX
18641
18642 \family default
18643 は調整や拡張がひじょうに柔軟なのですが,\SpecialChar LyX
18644 における
18645 \family sans
18646 Chk\SpecialChar TeX
18647
18648 \family default
18649 関連の問題が,それですべて解決すると思うべきではありません.\SpecialChar LyX
18650 は,
18651 \family sans
18652 Chk\SpecialChar TeX
18653
18654 \family default
18655 出力
18656 \begin_inset Foot
18657 status collapsed
18658
18659 \begin_layout Plain Layout
18660
18661 \family sans
18662 chktex
18663 \family default
18664 の実際の出力は,
18665 \family sans
18666 chktex
18667 \family default
18668 を実行した直後に
18669 \family sans
18670 文書\SpecialChar menuseparator
18671 \SpecialChar LaTeX
18672 ログ
18673 \family default
18674 を使えば見ることができます.
18675 \end_layout
18676
18677 \end_inset
18678
18679 から得た行番号と内部構造を一致させるため,やや特殊な\SpecialChar LaTeX
18680 ファイルを生成しなくてはならないので,警告の一部は正しく表示されていないように見えるでしょう.これに対処する
18681 ためには,以下の2つの方法があります.
18682 \end_layout
18683
18684 \begin_layout Itemize
18685
18686 \family sans
18687 \begin_inset Flex MenuItem
18688 status collapsed
18689
18690 \begin_layout Plain Layout
18691
18692 \family sans
18693 ツール\SpecialChar menuseparator
18694 設定\SpecialChar menuseparator
18695 出力\SpecialChar menuseparator
18696 \SpecialChar LaTeX
18697 \SpecialChar menuseparator
18698 Check\SpecialChar TeX
18699 コマンド
18700 \end_layout
18701
18702 \end_inset
18703
18704
18705 \family default
18706 中の
18707 \family sans
18708 Chk\SpecialChar TeX
18709
18710 \family default
18711 起動コマンドラインを調整するか,グローバルな
18712 \family sans
18713 Chk\SpecialChar TeX
18714
18715 \family default
18716 の設定ファイル(通常は
18717 \begin_inset Flex Code
18718 status collapsed
18719
18720 \begin_layout Plain Layout
18721 chktexrc
18722 \end_layout
18723
18724 \end_inset
18725
18726 ファイル)を調整します.コマンドラインからどの警告を有効・無効にできるかは以下をご覧ください.
18727 \end_layout
18728
18729 \begin_layout Itemize
18730
18731 \family sans
18732 ファイル\SpecialChar menuseparator
18733 書き出し\SpecialChar menuseparator
18734 \SpecialChar LaTeX
18735
18736 \family default
18737 を使って文書を\SpecialChar LaTeX
18738 ファイルに変換し,そのファイルに対して
18739 \family typewriter
18740 chktex
18741 \family default
18742 を手動で実行します.このようにすると,\SpecialChar LyX
18743 文書中の対応箇所を見つけるのがやや面倒ですが,少し我慢すれば見つけることができます.
18744 \end_layout
18745
18746 \begin_layout Standard
18747 以下は,
18748 \family sans
18749 設定
18750 \family default
18751 で有効化・無効化できる警告メッセージです.警告を無効にするには
18752 \family typewriter
18753 -n#
18754 \family default
18755 ,有効にするには
18756 \family typewriter
18757 -w#
18758 \family default
18759 を用います.イタリック表示の項目は,既定で無効となっています.既定値は "
18760 \family typewriter
18761 chktex -n1 -n3 -n6 -n9 -n22 -n25 -n30 -n38
18762 \family default
18763 "です.
18764 \end_layout
18765
18766 \begin_layout Standard
18767 \SpecialChar LyX
18768 は,
18769 \family typewriter
18770 chktex
18771 \family default
18772 と通信するために,他のコマンドラインパラメータを特定の方法で使用しているため,メッセージを有効化・無効化する以外のオプションを使うべきではありません.
18773 \end_layout
18774
18775 \begin_layout Enumerate
18776
18777 \size small
18778 \emph on
18779 Command terminated with space.
18780 \end_layout
18781
18782 \begin_layout Enumerate
18783
18784 \size small
18785 Non-breaking space (
18786 \begin_inset Quotes eld
18787 \end_inset
18788
18789
18790 \family typewriter
18791 ~
18792 \family default
18793
18794 \begin_inset Quotes erd
18795 \end_inset
18796
18797 ) should have been used.
18798 \end_layout
18799
18800 \begin_layout Enumerate
18801
18802 \size small
18803 \emph on
18804 You should enclose the previous parenthesis with 
18805 \begin_inset Quotes eld
18806 \end_inset
18807
18808
18809 \family typewriter
18810 {}
18811 \family default
18812
18813 \begin_inset Quotes erd
18814 \end_inset
18815
18816 .
18817 \end_layout
18818
18819 \begin_layout Enumerate
18820
18821 \size small
18822 Italic correction (
18823 \begin_inset Quotes eld
18824 \end_inset
18825
18826
18827 \family typewriter
18828
18829 \backslash
18830 /
18831 \family default
18832
18833 \begin_inset Quotes erd
18834 \end_inset
18835
18836 ) found in non-italic buffer.
18837 \end_layout
18838
18839 \begin_layout Enumerate
18840
18841 \size small
18842 Italic correction (
18843 \begin_inset Quotes eld
18844 \end_inset
18845
18846
18847 \family typewriter
18848
18849 \backslash
18850 /
18851 \family default
18852
18853 \begin_inset Quotes erd
18854 \end_inset
18855
18856 ) found more than once.
18857 \end_layout
18858
18859 \begin_layout Enumerate
18860
18861 \size small
18862 \emph on
18863 No italic correction (
18864 \begin_inset Quotes eld
18865 \end_inset
18866
18867
18868 \family typewriter
18869
18870 \backslash
18871 /
18872 \family default
18873
18874 \begin_inset Quotes erd
18875 \end_inset
18876
18877 ) found.
18878 \end_layout
18879
18880 \begin_layout Enumerate
18881
18882 \size small
18883 Accent command 
18884 \begin_inset Quotes eld
18885 \end_inset
18886
18887
18888 \family typewriter
18889 cmd
18890 \family default
18891
18892 \begin_inset Quotes erd
18893 \end_inset
18894
18895  needs use of 
18896 \begin_inset Quotes eld
18897 \end_inset
18898
18899
18900 \family typewriter
18901 cmd
18902 \family default
18903
18904 \begin_inset Quotes erd
18905 \end_inset
18906
18907 .
18908 \end_layout
18909
18910 \begin_layout Enumerate
18911
18912 \size small
18913 Wrong length of dash may have been used.
18914 \end_layout
18915
18916 \begin_layout Enumerate
18917
18918 \size small
18919 \emph on
18920 \begin_inset Quotes eld
18921 \end_inset
18922
18923
18924 \family typewriter
18925 %s
18926 \family default
18927
18928 \begin_inset Quotes erd
18929 \end_inset
18930
18931  expected, found 
18932 \begin_inset Quotes eld
18933 \end_inset
18934
18935
18936 \family typewriter
18937 %s
18938 \family default
18939
18940 \begin_inset Quotes erd
18941 \end_inset
18942
18943 .
18944 \end_layout
18945
18946 \begin_layout Enumerate
18947
18948 \size small
18949 Solo 
18950 \begin_inset Quotes eld
18951 \end_inset
18952
18953
18954 \family typewriter
18955 %s
18956 \family default
18957
18958 \begin_inset Quotes erd
18959 \end_inset
18960
18961  found.
18962 \end_layout
18963
18964 \begin_layout Enumerate
18965
18966 \size small
18967 You should use 
18968 \begin_inset Quotes eld
18969 \end_inset
18970
18971
18972 \family typewriter
18973 %s
18974 \family default
18975
18976 \begin_inset Quotes erd
18977 \end_inset
18978
18979  to achieve an ellipsis.
18980 \end_layout
18981
18982 \begin_layout Enumerate
18983
18984 \size small
18985 Inter-word spacing (
18986 \begin_inset Quotes eld
18987 \end_inset
18988
18989
18990 \family typewriter
18991
18992 \backslash
18993
18994 \family default
18995  
18996 \begin_inset Quotes eld
18997 \end_inset
18998
18999 ) should perhaps be used.
19000 \end_layout
19001
19002 \begin_layout Enumerate
19003
19004 \size small
19005 Inter-sentence spacing (
19006 \begin_inset Quotes eld
19007 \end_inset
19008
19009
19010 \family typewriter
19011
19012 \backslash
19013 @
19014 \family default
19015
19016 \begin_inset Quotes erd
19017 \end_inset
19018
19019 ) should perhaps be used.
19020 \end_layout
19021
19022 \begin_layout Enumerate
19023
19024 \size small
19025 Could not find argument for command.
19026 \end_layout
19027
19028 \begin_layout Enumerate
19029
19030 \size small
19031 No match found for 
19032 \begin_inset Quotes eld
19033 \end_inset
19034
19035
19036 \family typewriter
19037 %s
19038 \family default
19039
19040 \begin_inset Quotes erd
19041 \end_inset
19042
19043 .
19044 \end_layout
19045
19046 \begin_layout Enumerate
19047
19048 \size small
19049 Math mode still on at end of \SpecialChar LaTeX
19050  file.
19051 \end_layout
19052
19053 \begin_layout Enumerate
19054
19055 \size small
19056 Number of 
19057 \begin_inset Quotes eld
19058 \end_inset
19059
19060
19061 \family typewriter
19062 char
19063 \family default
19064
19065 \begin_inset Quotes erd
19066 \end_inset
19067
19068  doesn't match the number of 
19069 \begin_inset Quotes eld
19070 \end_inset
19071
19072
19073 \family typewriter
19074 char
19075 \family default
19076
19077 \begin_inset Quotes erd
19078 \end_inset
19079
19080 .
19081 \end_layout
19082
19083 \begin_layout Enumerate
19084
19085 \size small
19086 You should use either 
19087 \family typewriter
19088
19089 \begin_inset Quotes eld
19090 \end_inset
19091
19092
19093 \family default
19094  or 
19095 \family typewriter
19096
19097 \begin_inset Quotes erd
19098 \end_inset
19099
19100
19101 \family default
19102  as an alternative to 
19103 \begin_inset Quotes eld
19104 \end_inset
19105
19106
19107 \family typewriter
19108 "
19109 \family default
19110
19111 \begin_inset Quotes erd
19112 \end_inset
19113
19114 .
19115 \end_layout
19116
19117 \begin_layout Enumerate
19118
19119 \size small
19120 You should use "
19121 \family typewriter
19122 '
19123 \family default
19124 " (ASCII 39) instead of "" (ASCII 180).
19125 \end_layout
19126
19127 \begin_layout Enumerate
19128
19129 \size small
19130 User-specified pattern found.
19131 \end_layout
19132
19133 \begin_layout Enumerate
19134
19135 \size small
19136 This command might not be intended.
19137 \end_layout
19138
19139 \begin_layout Enumerate
19140
19141 \size small
19142 \emph on
19143 Comment displayed.
19144 \end_layout
19145
19146 \begin_layout Enumerate
19147
19148 \size small
19149 Either 
19150 \family typewriter
19151 ''
19152 \backslash
19153 ,'
19154 \family default
19155  or 
19156 \family typewriter
19157 '
19158 \backslash
19159 ,''
19160 \family default
19161  will look better.
19162 \end_layout
19163
19164 \begin_layout Enumerate
19165
19166 \size small
19167 Delete this space to maintain correct page references.
19168 \end_layout
19169
19170 \begin_layout Enumerate
19171
19172 \size small
19173 \emph on
19174 You might wish to put this between a pair of 
19175 \begin_inset Quotes eld
19176 \end_inset
19177
19178
19179 \family typewriter
19180 {}
19181 \family default
19182
19183 \begin_inset Quotes erd
19184 \end_inset
19185
19186 .
19187 \end_layout
19188
19189 \begin_layout Enumerate
19190
19191 \size small
19192 You ought to remove spaces in front of punctuation.
19193 \end_layout
19194
19195 \begin_layout Enumerate
19196
19197 \size small
19198 Could not execute \SpecialChar LaTeX
19199  command.
19200 \end_layout
19201
19202 \begin_layout Enumerate
19203
19204 \size small
19205 Don't use 
19206 \family typewriter
19207
19208 \backslash
19209 /
19210 \family default
19211  in front of small punctuation.
19212 \end_layout
19213
19214 \begin_layout Enumerate
19215
19216 \family typewriter
19217 \size small
19218 $
19219 \backslash
19220 times$
19221 \family default
19222  may look prettier here.
19223 \end_layout
19224
19225 \begin_layout Enumerate
19226
19227 \size small
19228 \emph on
19229 Multiple spaces detected in output.
19230 \end_layout
19231
19232 \begin_layout Enumerate
19233
19234 \size small
19235 This text may be ignored.
19236 \end_layout
19237
19238 \begin_layout Enumerate
19239
19240 \size small
19241 Use 
19242 \family typewriter
19243
19244 \begin_inset Quotes eld
19245 \end_inset
19246
19247
19248 \family default
19249  to begin quotation, not 
19250 \family typewriter
19251 '
19252 \family default
19253 .
19254 \end_layout
19255
19256 \begin_layout Enumerate
19257
19258 \size small
19259 Use 
19260 \family typewriter
19261 '
19262 \family default
19263  to end quotation, not 
19264 \family typewriter
19265
19266 \begin_inset Quotes eld
19267 \end_inset
19268
19269
19270 \family default
19271 .
19272 \end_layout
19273
19274 \begin_layout Enumerate
19275
19276 \size small
19277 Don't mix quotes.
19278 \end_layout
19279
19280 \begin_layout Enumerate
19281
19282 \size small
19283 You should perhaps use 
19284 \begin_inset Quotes eld
19285 \end_inset
19286
19287
19288 \family typewriter
19289 cmd
19290 \family default
19291
19292 \begin_inset Quotes erd
19293 \end_inset
19294
19295  instead.
19296 \end_layout
19297
19298 \begin_layout Enumerate
19299
19300 \size small
19301 You should put a space in front of/after parenthesis.
19302 \end_layout
19303
19304 \begin_layout Enumerate
19305
19306 \size small
19307 You should avoid spaces in front of/after parenthesis.
19308 \end_layout
19309
19310 \begin_layout Enumerate
19311
19312 \size small
19313 \emph on
19314 You should not use punctuation in front of/after quotes.
19315 \end_layout
19316
19317 \begin_layout Enumerate
19318
19319 \size small
19320 Double space found.
19321 \end_layout
19322
19323 \begin_layout Enumerate
19324
19325 \size small
19326 You should put punctuation outside inner/inside display math mode.
19327 \end_layout
19328
19329 \begin_layout Enumerate
19330
19331 \size small
19332 You ought to not use primitive \SpecialChar TeX
19333  in \SpecialChar LaTeX
19334  code.
19335 \end_layout
19336
19337 \begin_layout Enumerate
19338
19339 \size small
19340 You should remove spaces in front of 
19341 \begin_inset Quotes eld
19342 \end_inset
19343
19344
19345 \family typewriter
19346 %s
19347 \family default
19348
19349 \begin_inset Quotes erd
19350 \end_inset
19351
19352
19353 \end_layout
19354
19355 \begin_layout Enumerate
19356
19357 \size small
19358 \begin_inset Quotes eld
19359 \end_inset
19360
19361
19362 \family typewriter
19363 %s
19364 \family default
19365
19366 \begin_inset Quotes erd
19367 \end_inset
19368
19369  is normally not followed by 
19370 \begin_inset Quotes eld
19371 \end_inset
19372
19373
19374 \family typewriter
19375 %c
19376 \family default
19377
19378 \begin_inset Quotes erd
19379 \end_inset
19380
19381 .
19382 \end_layout
19383
19384 \begin_layout Standard
19385 \SpecialChar LyX
19386 の将来の版では,このツール(およびその縮小版
19387 \family typewriter
19388 lacheck
19389 \family default
19390 )の力を最大限引き出すように,より完備したインターフェイスを提供できればと考えています.しかし,現状でも十分に役立つものとなっています.ある程度長さがある既存文
19391 書に使用してみていただければ,きっと驚かれることでしょう.
19392 \end_layout
19393
19394 \begin_layout Section
19395 \SpecialChar LyX
19396 でのバージョン管理
19397 \end_layout
19398
19399 \begin_layout Standard
19400
19401 \noun on
19402 Lars Bullik Bjønnes
19403 \noun default
19404 および
19405 \noun on
19406 Pavel Sanda
19407 \noun default
19408
19409 \end_layout
19410
19411 \begin_layout Subsection
19412 はじめに
19413 \end_layout
19414
19415 \begin_layout Standard
19416 \SpecialChar LyX
19417 は,今ではもっとも基本的なRCS/CVS/SVN/GITコマンドをサポートしています.もしもっと洗練されたことを行いたい場合には,ターミナル上から手動で行う必要
19418 があります.
19419 \end_layout
19420
19421 \begin_layout Standard
19422 また,CVSのサポートは,subversionのサポートほど良くないので,CVSよりもSVNを使うことをお勧めします.Subversionを学び始めるには,SV
19423 N Book
19424 \begin_inset Foot
19425 status collapsed
19426
19427 \begin_layout Plain Layout
19428 \begin_inset CommandInset href
19429 LatexCommand href
19430 target "http://svnbook.red-bean.com/"
19431 literal "false"
19432
19433 \end_inset
19434
19435
19436 \end_layout
19437
19438 \end_inset
19439
19440 が良いでしょう.RCSの場合は,「rsintro」をお読みください(これはmanファイルです.
19441 \family typewriter
19442 man rcsintro
19443 \family default
19444 で読めます).このファイルは,RCSの基本機能のすべてを説明しています.特に,RCSディレクトリに関するコメントと,マスターRCSファイル(
19445 \family typewriter
19446 ,v
19447 \family default
19448 で終わるファイルです)の概念に注意を払ってください.
19449 \end_layout
19450
19451 \begin_layout Standard
19452 \SpecialChar LyX
19453 で実際にバージョン管理機能を使い始める前に,RCS/CVS/SVN/GITの使用法に習熟しておかなくてはなりません.\SpecialChar LyX
19454 で\SpecialChar LyX
19455 への実装においては,GNU
19456  RCSまたはCVS/SVNパッケージの最新版を仮定しています.旧版への保証はありません.ログメッセージのほとんどは,現在のところ操作後には表示されません.確認
19457 したい場合には,メッセージ面で確かめてください.バージョン管理を常用するユーザーには,VCツールバーが便利でしょう.これは
19458 \family sans
19459 表示\SpecialChar menuseparator
19460 ツールバー\SpecialChar menuseparator
19461 バージョン管理
19462 \family default
19463 で有効にできます.
19464 \end_layout
19465
19466 \begin_layout Standard
19467 自製の外部コマンドを導入したい場合には,\SpecialChar LyX
19468 関数説明書のvcコマンドを確認してください.
19469 \end_layout
19470
19471 \begin_layout Standard
19472 バージョン管理機能を使用している場合には,文書を非圧縮形式で保存をすることを強く推奨します(
19473 \family sans
19474 文書\SpecialChar menuseparator
19475 圧縮
19476 \family default
19477 にチェックが入っていれば外してください).非圧縮LyX文書はテキストファイルであるため,バージョン管理システムが,二つのバージョンをマージすることができます.一
19478 方,圧縮LyXファイルはバイナリファイルであるため,バージョン管理システムはマージすることができません.
19479 \end_layout
19480
19481 \begin_layout Subsection
19482 \SpecialChar LyX
19483 におけるRCSコマンド
19484 \end_layout
19485
19486 \begin_layout Standard
19487 以下の節では\SpecialChar LyX
19488 でサポートされているRCSコマンドを説明します.それらのコマンドは
19489 \family sans
19490 ファイル\SpecialChar menuseparator
19491 バージョン管理
19492 \family default
19493 のサブメニューにあります.\SpecialChar LyX
19494 は,RCS 5.7/5.8に対して試験されています.
19495 \end_layout
19496
19497 \begin_layout Subsubsection
19498
19499 \family sans
19500 登録
19501 \end_layout
19502
19503 \begin_layout Standard
19504 文書がバージョン管理の下にない場合には,これがメニューにあらわれる唯一の項目です.文書がバージョン管理下にあれば,項目
19505 \family sans
19506 登録
19507 \family default
19508 は不可視になります.
19509 \end_layout
19510
19511 \begin_layout Standard
19512 このコマンドは,文書をRCSに登録します(CVSが管理しているディレクトリ下にない場合).すると対話的に,文書の最初の説明を入力するように尋ねられます.すると文
19513 書は読み込み専用モードになるので,変更を加えるためには
19514 \family sans
19515 チェックアウトして編集
19516 \family default
19517 を実行する必要があります.バージョン管理下にある文書は,ミニバッファのファイル名の後ろに「 [RCS:<バージョン> <ロック>]」という項目が表示されます.
19518 \end_layout
19519
19520 \begin_layout Standard
19521 実行されるRCSコマンドは:
19522 \family typewriter
19523
19524 \begin_inset Newline newline
19525 \end_inset
19526
19527 ci -q -u -i -t-"<初期説明文>" <ファイル名>
19528 \end_layout
19529
19530 \begin_layout Standard
19531 スイッチについて知りたい場合は,
19532 \family typewriter
19533 man ci
19534 \family default
19535 を読んでください.
19536 \end_layout
19537
19538 \begin_layout Subsubsection
19539
19540 \family sans
19541 変更をチェックインする
19542 \end_layout
19543
19544 \begin_layout Standard
19545 ファイルの編集が終わると,その変更をチェックインします.このとき,変更についての説明文を求められます.これは履歴ログに記録されます.バージョン番号は繰り上がり,
19546 変更がマスターRCSファイルに適用され,文書がアンロックされて読み込み専用モードになります.
19547 \end_layout
19548
19549 \begin_layout Standard
19550 RCSコマンド:
19551 \family typewriter
19552 ci -q -u -m"<説明文>" <ファイル名>
19553 \end_layout
19554
19555 \begin_layout Subsubsection
19556
19557 \family sans
19558 チェックアウトして編集
19559 \end_layout
19560
19561 \begin_layout Standard
19562 これは,文書をロックして編集できるようにします.そしてあなただけが文書を読み書きできるようにします.通常は,しばらくの間,文書を編集し,それが終わると変更をチェ
19563 ックインします.あなたがファイルをロックしたことを反映して,ステータスラインが変わります.
19564 \end_layout
19565
19566 \begin_layout Standard
19567 RCSコマンド:
19568 \family typewriter
19569 co -q -l <ファイル名>
19570 \end_layout
19571
19572 \begin_layout Subsubsection
19573
19574 \family sans
19575 リポジトリのバージョンに戻す
19576 \end_layout
19577
19578 \begin_layout Standard
19579 これは,最終チェックイン以降,文書に加えられた変更をすべて破棄します.変更が破棄される前に,警告が発せられます.
19580 \end_layout
19581
19582 \begin_layout Standard
19583 RCSコマンド:
19584 \family typewriter
19585 co -f -u<バージョン> <ファイル名>
19586 \end_layout
19587
19588 \begin_layout Subsubsection
19589
19590 \family sans
19591 コピー
19592 \end_layout
19593
19594 \begin_layout Standard
19595 これは,現行文書のコピーを生成します.RCSは,コピー操作を自前ではサポートしませんので,バージョン履歴には保存されず,新コピーは新規ファイルとして追加されます
19596 .最後のチェックイン以降,変更が加えられていないサラの文書であることが要求されます.ファイル名とコピー操作の説明を入力するように促され,その後,新コピーがローカ
19597 ルとリポジトリの両方に生成されます.コピーされた文書と元の文書の親ディレクトリが異なる場合には,コピーにインクルードされたファイルの相対パスは,(
19598 \family sans
19599 ファイル\SpecialChar menuseparator
19600 名前をつけて保存\SpecialChar ldots
19601
19602 \family default
19603 と同様に)全て調整されます.最後に,元の文書の代わりに,コピーされたファイルが読み込まれます.
19604 \end_layout
19605
19606 \begin_layout Labeling
19607 \labelwidthstring 00.00.0000
19608 RCSコマンド:
19609 \begin_inset Flex Code
19610 status collapsed
19611
19612 \begin_layout Plain Layout
19613 "ファイル名"
19614 \end_layout
19615
19616 \end_inset
19617
19618
19619 \family typewriter
19620 "新ファイル名"
19621 \family default
19622 にコピーする場合
19623 \end_layout
19624
19625 \begin_layout Labeling
19626 \labelwidthstring 00.00.0000
19627 \begin_inset Flex Code
19628 status collapsed
19629
19630 \begin_layout Plain Layout
19631 ci -q -u -i "<新ファイル名>"
19632 \end_layout
19633
19634 \end_inset
19635
19636
19637 \end_layout
19638
19639 \begin_layout Subsubsection
19640
19641 \family sans
19642 最後のチェックインを取り消す
19643 \end_layout
19644
19645 \begin_layout Standard
19646 これは,最後のチェックインがあたかも為されなかったかのようにします.\SpecialChar LyX
19647 に読み込まれた文書に変更は加えられませんが,マスターRCSファイルから最後のバージョンが削除
19648 されます.
19649 \end_layout
19650
19651 \begin_layout Standard
19652 RCSコマンド:
19653 \family typewriter
19654 rcs -o<バージョン> <ファイル名>
19655 \end_layout
19656
19657 \begin_layout Subsubsection
19658
19659 \family sans
19660 履歴を表示
19661 \end_layout
19662
19663 \begin_layout Standard
19664 RCS文書の完全な履歴を表示します.ブラウザ中に,
19665 \family typewriter
19666 rlog <ファイル名>
19667 \family default
19668 の出力が表示されます.詳細は
19669 \family typewriter
19670 man rlog
19671 \family default
19672 をご覧ください.
19673 \end_layout
19674
19675 \begin_layout Subsubsection
19676 改訂情報
19677 \end_layout
19678
19679 \begin_layout Standard
19680 \SpecialChar LyX
19681 は,RCSバージョン番号情報(のみ)をサポートしています.詳細については,
19682 \begin_inset CommandInset ref
19683 LatexCommand ref
19684 reference "subsec:VCS改訂情報"
19685
19686 \end_inset
19687
19688 を参照.
19689 \end_layout
19690
19691 \begin_layout Subsection
19692 \SpecialChar LyX
19693 におけるCVSコマンド
19694 \end_layout
19695
19696 \begin_layout Standard
19697 \SpecialChar LyX
19698 は,現在CVSを一部サポートしています.そのコマンドは,
19699 \family sans
19700 ファイル\SpecialChar menuseparator
19701 バージョン管理
19702 \family default
19703 サブメニューにあります.バージョン管理システムSVNの方が強力なので,可能ならばCVSではなく,SVNを使用してください.
19704 \end_layout
19705
19706 \begin_layout Subsubsection
19707 CVSの一般的な利用法
19708 \end_layout
19709
19710 \begin_layout Standard
19711 CVSを初めて使いたい場合には,外部ツールを使用して自分のレポジトリを作成し,作業コピーをチェックアウトする必要があります.クライアント=サーバーモデルを使用し
19712 ている場合には,最初のレポジトリチェックアウトを行う前にログインする必要があるかもしれません.
19713 \end_layout
19714
19715 \begin_layout Standard
19716 改訂管理下にある文書のレポジトリを他人も利用している場合に,同一文書の同一箇所に別々の変更を加えてしまうと問題が発生します.標準的なCVSレポジトリは,ファイル
19717 ロッキング機構を有しません.これは驚くべきことかもしれませんが,コンフリクトは,文書の同じ箇所の特定の内容について,人々が意見を異にしている場合にのみ発生します
19718 .したがって,共著者同士がコンスタントにコミュニケーションを交わしていれば,このようなコンフリクトは滅多に発生しません.もしコミュニケーションがなければ,いずれ
19719 にしても根本的な問題があるわけです.それにもかかわらず,いわゆる「予備付きチェックアウト」を使用したいと思う人々もいます.この場合,最初にチェックアウトした際に
19720 ,全ファイルの作業コピーは読み込み専用にされ,ユーザーは,作業コピーを書き込み可能にする特別なコマンドを使用した後,編集を開始することになります.変更をチェック
19721 インすると,作業コピーは読み込み専用状態に戻ります.\SpecialChar LyX
19722 で予備付きチェックアウトを利用したい場合には,
19723 \begin_inset Flex Code
19724 status collapsed
19725
19726 \begin_layout Plain Layout
19727 .cvsrc
19728 \end_layout
19729
19730 \end_inset
19731
19732 ファイルを編集して,
19733 \begin_inset Flex Code
19734 status collapsed
19735
19736 \begin_layout Plain Layout
19737 cvs -r
19738 \end_layout
19739
19740 \end_inset
19741
19742 という行を書き加える必要があります.この方法の利点は,文書のうち,書き込み可能コピーを誰が使用しているかを見ることができることです.ただし,一人のユーザーだけが
19743 コピーを書き込み可能にしているとは限りません.
19744 \end_layout
19745
19746 \begin_layout Standard
19747 \SpecialChar LyX
19748 は,あなたが予備付きチェックアウトを使用しているか,予備なしチェックアウトを利用しているか,推測しようと試みます.使用中の作業コピーが読み込み専用になっているか
19749 ,あるいはそれが書き込み可能であって,CVS/Baseサブディレクトリに使用中文書のコピーが存在している場合には,予備付きチェックアウトを使用しているものと仮定
19750 し,そうでない場合には予備なしチェックアウトを使用しているものと仮定します.予備付きチェックアウトが検出された場合には,作業コピーが読み込み専用の場合に書き込み
19751 可能にするためには,
19752 \begin_inset Flex MenuItem
19753 status collapsed
19754
19755 \begin_layout Plain Layout
19756 チェックアウト
19757 \end_layout
19758
19759 \end_inset
19760
19761 メニューを使用しなくてはなりません.その後,
19762 \begin_inset Flex MenuItem
19763 status collapsed
19764
19765 \begin_layout Plain Layout
19766 チェックイン
19767 \end_layout
19768
19769 \end_inset
19770
19771 メニューが利用可能になるので,自分が加えた変更をリポジトリに移した後,作業コピーを再び読み込み専用にする際には,これを使用します.
19772 \end_layout
19773
19774 \begin_layout Standard
19775 CVSの詳細な情報は,
19776 \begin_inset Flex URL
19777 status collapsed
19778
19779 \begin_layout Plain Layout
19780
19781 http://www.nongnu.org/cvs
19782 \end_layout
19783
19784 \end_inset
19785
19786
19787 \begin_inset Flex URL
19788 status collapsed
19789
19790 \begin_layout Plain Layout
19791
19792 http://ximbiot.com/cvs
19793 \end_layout
19794
19795 \end_inset
19796
19797 にあります.
19798 \end_layout
19799
19800 \begin_layout Standard
19801 以下に言及するサブコマンドとスイッチを理解するには,
19802 \family typewriter
19803 man cvs
19804 \family default
19805 をお読みください.
19806 \end_layout
19807
19808 \begin_layout Subsubsection
19809 登録
19810 \end_layout
19811
19812 \begin_layout Standard
19813 お使いの文書が改訂管理下に置かれていなければ,メニューにはこの項目だけが表示されます.もし改訂管理が有効ならば,
19814 \family sans
19815 登録
19816 \family default
19817 項目は表示されません.
19818 \end_layout
19819
19820 \begin_layout Standard
19821 本コマンドは,既に文書ディレクトリをCVS管理下に置いている場合に
19822 \series bold
19823 \emph on
19824 のみ
19825 \series default
19826 \emph default
19827 (すなわち
19828 \begin_inset Flex Code
19829 status collapsed
19830
19831 \begin_layout Plain Layout
19832 CVS/Entries
19833 \end_layout
19834
19835 \end_inset
19836
19837 ファイルが存在する場合にのみ),お使いの文書をCVSに登録します.つまり,外部ツールを使用して,アーカイブを自分で作成ないしチェックアウトしなくてはならないこと
19838 を意味します(このステップを忘れてしまうと,\SpecialChar LyX
19839 は文書をRCSに登録します).
19840 \end_layout
19841
19842 \begin_layout Standard
19843 すると,文書の最初の説明文を入力するように促されます.登録したファイルは,まだチェックインされたわけではないことに注意してください.
19844 \end_layout
19845
19846 \begin_layout Standard
19847 実行されるCVSコマンドは,
19848 \family typewriter
19849 cvs -q add -m"<入力した説明文>" "<ファイル名>"
19850 \family default
19851  です.
19852 \end_layout
19853
19854 \begin_layout Standard
19855 上記および他のすべてのCVSコマンドにおける
19856 \family typewriter
19857 "<ファイル名>"
19858 \family default
19859 は,「カレント作業ディレクトリをファイルの場所に移動し,パスコンポーネントを除いたファイル名を引数として使用する」という意味になります.
19860 \end_layout
19861
19862 \begin_layout Subsubsection
19863 変更のチェックイン
19864 \end_layout
19865
19866 \begin_layout Standard
19867 ファイルの編集を終えたら,変更をコミットします.このとき,文書に変更が加えられていれば,変更の説明文を入れるよう促されます.その後,変更がレポジトリに書き込まれ
19868 ます.文書を変更せず,予備付きチェックアウトが検出された場合,
19869 \begin_inset Flex MenuItem
19870 status collapsed
19871
19872 \begin_layout Plain Layout
19873 チェックアウト
19874 \end_layout
19875
19876 \end_inset
19877
19878 で作られた予備は取り消されます.
19879 \end_layout
19880
19881 \begin_layout Labeling
19882 \labelwidthstring 00.00.0000
19883 CVSコマンド: 
19884 \begin_inset space ~
19885 \end_inset
19886
19887
19888 \begin_inset Newline newline
19889 \end_inset
19890
19891
19892 \begin_inset Flex Code
19893 status collapsed
19894
19895 \begin_layout Plain Layout
19896 cvs -q commit -m"<入力した説明文>" "<ファイル名>"
19897 \end_layout
19898
19899 \end_inset
19900
19901 あるいは
19902 \begin_inset Newline newline
19903 \end_inset
19904
19905
19906 \begin_inset Flex Code
19907 status collapsed
19908
19909 \begin_layout Plain Layout
19910 cvs -q unedit "<ファイル名>"
19911 \end_layout
19912
19913 \end_inset
19914
19915
19916 \end_layout
19917
19918 \begin_layout Subsubsection
19919 変更のチェックアウト
19920 \end_layout
19921
19922 \begin_layout Standard
19923 レポジトリを他人と共有している場合,他人の加えた変更を自らの作業コピーに取り込まなくてはならないことがあります.
19924 \end_layout
19925
19926 \begin_layout Standard
19927 CVSコマンド:
19928 \family typewriter
19929 cvs -q update "<ファイル名>"
19930 \end_layout
19931
19932 \begin_layout Standard
19933 読み込み専用チェックアウトが検出された場合,作業コピーを書き込み可能にし予備を作成します.
19934 \end_layout
19935
19936 \begin_layout Standard
19937 CVSコマンド:
19938 \family typewriter
19939 cvs -q edit "<ファイル名>"
19940 \end_layout
19941
19942 \begin_layout Subsubsection
19943 レポジトリ版に戻す
19944 \end_layout
19945
19946 \begin_layout Standard
19947 これは,最後のチェックイン以降,文書に加えられた変更をすべて廃棄します.変更が廃棄される前に警告が表示されます.最初にファイルが削除され,次にCVS更新コマンド
19948 が実行されます.
19949 \end_layout
19950
19951 \begin_layout Standard
19952 CVSコマンド:
19953 \family typewriter
19954 cvs -q update "<ファイル名>"
19955 \end_layout
19956
19957 \begin_layout Standard
19958 予備付きチェックアウトが検出され,作業コピーに変更がない場合,予備のみが取り消されます.
19959 \end_layout
19960
19961 \begin_layout Standard
19962 CVSコマンド:
19963 \family typewriter
19964 cvs -q unedit "<ファイル名>"
19965 \end_layout
19966
19967 \begin_layout Subsubsection
19968
19969 \family sans
19970 コピー
19971 \end_layout
19972
19973 \begin_layout Standard
19974 これは,現行文書のコピーを生成します.CVSは,コピー操作を自前ではサポートしませんので,バージョン履歴には保存されず,新コピーは新規ファイルとして追加されます
19975 .最後のチェックイン以降,変更が加えられていないサラの文書であることが要求されます.ファイル名とコピー操作の説明を入力するように促され,その後,新コピーがローカ
19976 ルとリポジトリの両方に生成されます.コピーされた文書と元の文書の親ディレクトリが異なる場合には,コピーにインクルードされたファイルの相対パスは,(
19977 \family sans
19978 ファイル\SpecialChar menuseparator
19979 名前をつけて保存\SpecialChar ldots
19980
19981 \family default
19982 と同様に)全て調整されます.最後に,元の文書の代わりに,コピーされたファイルが読み込まれます.
19983 \end_layout
19984
19985 \begin_layout Labeling
19986 \labelwidthstring 00.00.0000
19987 CVSコマンド:
19988 \end_layout
19989
19990 \begin_layout Labeling
19991 \labelwidthstring 00.00.0000
19992 \begin_inset Flex Code
19993 status collapsed
19994
19995 \begin_layout Plain Layout
19996 "ファイル名"
19997 \end_layout
19998
19999 \end_inset
20000
20001
20002 \begin_inset Flex Code
20003 status collapsed
20004
20005 \begin_layout Plain Layout
20006 "新ファイル名"
20007 \end_layout
20008
20009 \end_inset
20010
20011 にコピーする場合
20012 \end_layout
20013
20014 \begin_layout Labeling
20015 \labelwidthstring 00.00.0000
20016 \begin_inset Flex Code
20017 status collapsed
20018
20019 \begin_layout Plain Layout
20020 cvs -q add "<新ファイル名>"
20021 \end_layout
20022
20023 \end_inset
20024
20025
20026 \end_layout
20027
20028 \begin_layout Subsubsection
20029 ファイル名変更
20030 \end_layout
20031
20032 \begin_layout Standard
20033 これは,現行文書のファイル名を変更します.CVSは,ファイル名変更操作を自前ではサポートしませんので,バージョン履歴には保存されず,名称変更後のファイルは,新規
20034 ファイルとして追加されます.最後のチェックイン以降,変更が加えられていないサラの文書であることが要求されます.ファイル名とコピー操作の説明を入力するように促され
20035 ,その後,ローカルとリポジトリの両方でファイル名が変更されます.新旧ファイル名の文書の親ディレクトリが異なる場合には,コピーにインクルードされたファイルの相対パ
20036 スは,(
20037 \family sans
20038 ファイル\SpecialChar menuseparator
20039 名前をつけて保存\SpecialChar ldots
20040
20041 \family default
20042 と同様に)全て調整されます.最後に,新ファイル名を使ってファイルが再度読み込まれます.
20043 \end_layout
20044
20045 \begin_layout Labeling
20046 \labelwidthstring 00.00.0000
20047 CVSコマンド:
20048 \end_layout
20049
20050 \begin_layout Labeling
20051 \labelwidthstring 00.00.0000
20052 \begin_inset Flex Code
20053 status collapsed
20054
20055 \begin_layout Plain Layout
20056 "ファイル名"
20057 \end_layout
20058
20059 \end_inset
20060
20061
20062 \begin_inset Flex Code
20063 status collapsed
20064
20065 \begin_layout Plain Layout
20066 "新ファイル名"
20067 \end_layout
20068
20069 \end_inset
20070
20071 に変更する場合
20072 \end_layout
20073
20074 \begin_layout Labeling
20075 \labelwidthstring 00.00.0000
20076 \begin_inset Flex Code
20077 status collapsed
20078
20079 \begin_layout Plain Layout
20080 cvs -q add "<新ファイル名>"
20081 \end_layout
20082
20083 \end_inset
20084
20085
20086 \end_layout
20087
20088 \begin_layout Labeling
20089 \labelwidthstring 00.00.0000
20090 \begin_inset Flex Code
20091 status collapsed
20092
20093 \begin_layout Plain Layout
20094 cvs -q remove "<ファイル名>"
20095 \end_layout
20096
20097 \end_inset
20098
20099
20100 \end_layout
20101
20102 \begin_layout Subsubsection
20103 ローカルディレクトリチェックアウトのレポジトリからの更新
20104 \end_layout
20105
20106 \begin_layout Standard
20107 子文書や図を含んだり,外部
20108 \begin_inset Flex Code
20109 status collapsed
20110
20111 \begin_layout Plain Layout
20112 .tex
20113 \end_layout
20114
20115 \end_inset
20116
20117 ファイルを取り込むなど,文書が複雑になるにつれ,バージョン管理の利用は複雑になります.\SpecialChar LyX
20118 は,文書が存在するツリー全体の更新をサポートします.これは,CVSの使用法
20119 について詳しい知識のない人々や,レポジトリに追加素材をコミットする野望のない人々と共同作業をするような場合に,特に便利です.ファイル構造は,すべての外部ファイル
20120 が,文書と同じディレクトリかそのサブディレクトリに来るように組織する必要があります.いずれにしても,複合文書を新しいディレクトリを建てて収容するのは,望ましい習
20121 慣です.
20122 \end_layout
20123
20124 \begin_layout Standard
20125 コマンド
20126 \begin_inset Flex Code
20127 status collapsed
20128
20129 \begin_layout Plain Layout
20130 レポジトリを使ってローカル辞書を更新
20131 \end_layout
20132
20133 \end_inset
20134
20135 は,ディレクトリ全体を更新します.ローカルの変更が検出された場合には,更新を開始する前にユーザーに警告が発せられます.マージコンフリクトが発生した場合には,コン
20136 フリクトを起こしている部分の新旧バージョンが,両方とも最終文書に置かれますので,マージの結果を見直し,修正する必要があります.コンフリクトは,
20137 \begin_inset Flex Code
20138 status collapsed
20139
20140 \begin_layout Plain Layout
20141 <<<<<<<
20142 \end_layout
20143
20144 \end_inset
20145
20146
20147 \begin_inset Flex Code
20148 status collapsed
20149
20150 \begin_layout Plain Layout
20151 >>>>>>>
20152 \end_layout
20153
20154 \end_inset
20155
20156 の対に囲まれ,
20157 \begin_inset Flex Code
20158 status collapsed
20159
20160 \begin_layout Plain Layout
20161 =======
20162 \end_layout
20163
20164 \end_inset
20165
20166 で区切られて表示されます.最初の部分は,文書名に続いて,更新操作前のバージョンが置かれています.第2の部分は,
20167 \begin_inset Flex Code
20168 status collapsed
20169
20170 \begin_layout Plain Layout
20171 >
20172 \end_layout
20173
20174 \end_inset
20175
20176 記号列の後にバージョン番号に続いて,レポジトリ版が置かれます.
20177 \end_layout
20178
20179 \begin_layout Labeling
20180 \labelwidthstring 00.00.0000
20181 CVSコマンド: 
20182 \begin_inset space ~
20183 \end_inset
20184
20185
20186 \begin_inset Newline newline
20187 \end_inset
20188
20189
20190 \begin_inset Flex Code
20191 status collapsed
20192
20193 \begin_layout Plain Layout
20194 cd $path; cvs diff "."
20195 \end_layout
20196
20197 \end_inset
20198
20199 (変更が検出された場合には知らせる)
20200 \begin_inset Newline newline
20201 \end_inset
20202
20203
20204 \begin_inset Flex Code
20205 status collapsed
20206
20207 \begin_layout Plain Layout
20208 cd $path; cvs -q update "."
20209 \end_layout
20210
20211 \end_inset
20212
20213
20214 \end_layout
20215
20216 \begin_layout Standard
20217 ここで
20218 \begin_inset Flex Code
20219 status collapsed
20220
20221 \begin_layout Plain Layout
20222 $path
20223 \end_layout
20224
20225 \end_inset
20226
20227 は文書パスを表します.
20228 \end_layout
20229
20230 \begin_layout Subsubsection
20231 履歴を表示
20232 \end_layout
20233
20234 \begin_layout Standard
20235 これは,CVS文書の全履歴を表示します.
20236 \begin_inset Flex Code
20237 status collapsed
20238
20239 \begin_layout Plain Layout
20240 cvs log 
20241 \begin_inset Quotes eld
20242 \end_inset
20243
20244 <ファイル名>
20245 \begin_inset Quotes erd
20246 \end_inset
20247
20248
20249 \end_layout
20250
20251 \end_inset
20252
20253 の出力がブラウザに表示されます.
20254 \end_layout
20255
20256 \begin_layout Subsubsection
20257 改訂情報
20258 \end_layout
20259
20260 \begin_layout Standard
20261 \SpecialChar LyX
20262 は,CVS版数・著者名・最終コミットの日時をサポートします.これらの情報は,すべて
20263 \family typewriter
20264 cvs log -r <ファイル名>
20265 \family default
20266 によって抽出されます.詳細については,第
20267 \begin_inset CommandInset ref
20268 LatexCommand ref
20269 reference "subsec:VCS改訂情報"
20270
20271 \end_inset
20272
20273 節を参照してください.
20274 \end_layout
20275
20276 \begin_layout Subsection
20277 \SpecialChar LyX
20278 におけるSVNコマンド
20279 \end_layout
20280
20281 \begin_layout Standard
20282 \SpecialChar LyX
20283 は,現在SVNを一部サポートしています.そのコマンドは,
20284 \begin_inset Flex MenuItem
20285 status collapsed
20286
20287 \begin_layout Plain Layout
20288 ファイル\SpecialChar menuseparator
20289 バージョン管理
20290 \end_layout
20291
20292 \end_inset
20293
20294 メニューにあります.レポジトリへのアクセスに,ssh経由のパスワード保護アクセスを使用している場合には,端末ウィンドウでの入力を促されます.\SpecialChar LyX
20295 は,SVN
20296  1.5および1.6に対して試験されています.
20297 \end_layout
20298
20299 \begin_layout Subsubsection
20300 登録
20301 \end_layout
20302
20303 \begin_layout Standard
20304 お使いの文書が改訂管理下に置かれていなければ,メニューにはこの項目だけが表示されます.もし改訂管理が有効ならば,
20305 \family sans
20306 登録
20307 \family default
20308 項目は表示されません.
20309 \end_layout
20310
20311 \begin_layout Standard
20312 本コマンドは,既に文書のあるディレクトリをSVN管理下に置いている場合に
20313 \emph on
20314 のみ
20315 \emph default
20316 (すなわち
20317 \begin_inset Flex Code
20318 status collapsed
20319
20320 \begin_layout Plain Layout
20321 .svn/entries
20322 \end_layout
20323
20324 \end_inset
20325
20326 ファイルが存在する場合にのみ),お使いの文書をSVNに登録します.つまり,アーカイブはご自分でチェックアウトしなくてはなりません.
20327 \end_layout
20328
20329 \begin_layout Standard
20330 すると,文書の最初の説明文を入力するように促されます.登録したファイルは,まだコミットされたわけではないことに注意してください.
20331 \end_layout
20332
20333 \begin_layout Standard
20334 実行されるSVNコマンドは,
20335 \begin_inset Flex Code
20336 status collapsed
20337
20338 \begin_layout Plain Layout
20339 svn add -q 
20340 \begin_inset Quotes eld
20341 \end_inset
20342
20343 <ファイル名>
20344 \begin_inset Quotes erd
20345 \end_inset
20346
20347
20348 \end_layout
20349
20350 \end_inset
20351
20352 です.
20353 \end_layout
20354
20355 \begin_layout Standard
20356 スイッチの説明は
20357 \begin_inset Flex Code
20358 status collapsed
20359
20360 \begin_layout Plain Layout
20361 man svn
20362 \end_layout
20363
20364 \end_inset
20365
20366 をお読みください.
20367 \end_layout
20368
20369 \begin_layout Subsubsection
20370 変更をチェックイン
20371 \end_layout
20372
20373 \begin_layout Standard
20374 ファイルの編集を終えたら,変更をコミットします.このとき,変更の説明文を入れるよう促されます.その後,変更がコミットされます.
20375 \end_layout
20376
20377 \begin_layout Standard
20378 SVNコマンド
20379 \begin_inset Foot
20380 status collapsed
20381
20382 \begin_layout Plain Layout
20383 ロックが有効になっていない場合です.第
20384 \begin_inset CommandInset ref
20385 LatexCommand ref
20386 reference "subsec:SVNファイルロック"
20387
20388 \end_inset
20389
20390 節をご覧ください.
20391 \end_layout
20392
20393 \end_inset
20394
20395
20396 \begin_inset Flex Code
20397 status collapsed
20398
20399 \begin_layout Plain Layout
20400 svn commit -q -m
20401 \begin_inset Quotes erd
20402 \end_inset
20403
20404 <入力した説明文>
20405 \begin_inset Quotes erd
20406 \end_inset
20407
20408  
20409 \begin_inset Quotes eld
20410 \end_inset
20411
20412 <ファイル名>
20413 \begin_inset Quotes erd
20414 \end_inset
20415
20416
20417 \end_layout
20418
20419 \end_inset
20420
20421
20422 \end_layout
20423
20424 \begin_layout Subsubsection
20425 チェックアウトして編集
20426 \end_layout
20427
20428 \begin_layout Standard
20429 このファイルの変更点をレポジトリから取得して更新します.すべての干渉点は,手動で解決しなくてはならないので,この機能を使う前にSVNのマージ法と干渉解決法を理解
20430 しておくようにしてください.
20431 \end_layout
20432
20433 \begin_layout Standard
20434 SVNコマンド
20435 \begin_inset Foot
20436 status collapsed
20437
20438 \begin_layout Plain Layout
20439 同上.
20440 \end_layout
20441
20442 \end_inset
20443
20444
20445 \begin_inset Flex Code
20446 status collapsed
20447
20448 \begin_layout Plain Layout
20449 svn update –non-interactive 
20450 \begin_inset Quotes eld
20451 \end_inset
20452
20453 <ファイル名>
20454 \begin_inset Quotes erd
20455 \end_inset
20456
20457
20458 \end_layout
20459
20460 \end_inset
20461
20462
20463 \end_layout
20464
20465 \begin_layout Subsubsection
20466 リポジトリ版に戻す
20467 \end_layout
20468
20469 \begin_layout Standard
20470 これは,最後のチェックイン以降,文書に加えられた変更をすべて廃棄します.変更が廃棄される前に警告が表示されます.
20471 \end_layout
20472
20473 \begin_layout Standard
20474 SVNコマンド:
20475 \begin_inset Flex Code
20476 status collapsed
20477
20478 \begin_layout Plain Layout
20479 svn revert -q 
20480 \begin_inset Quotes eld
20481 \end_inset
20482
20483 <ファイル名>
20484 \begin_inset Quotes erd
20485 \end_inset
20486
20487
20488 \end_layout
20489
20490 \end_inset
20491
20492
20493 \end_layout
20494
20495 \begin_layout Subsubsection
20496
20497 \family sans
20498 コピー
20499 \end_layout
20500
20501 \begin_layout Standard
20502 これは,現行文書のコピーを生成します.最後のチェックイン以降,変更が加えられていないサラの文書であることが要求されます.ファイル名とコピー操作の説明を入力するよ
20503 うに促され,その後,新コピーがローカルとリポジトリの両方に生成されます.コピーされた文書と元の文書の親ディレクトリが異なる場合には,コピーにインクルードされたフ
20504 ァイルの相対パスは,(
20505 \family sans
20506 ファイル\SpecialChar menuseparator
20507 名前をつけて保存\SpecialChar ldots
20508
20509 \family default
20510 と同様に)全て調整されます.最後に,元の文書の代わりに,コピーされたファイルが読み込まれます.
20511 \end_layout
20512
20513 \begin_layout Labeling
20514 \labelwidthstring 00.00.0000
20515 SVNコマンド:
20516 \end_layout
20517
20518 \begin_layout Labeling
20519 \labelwidthstring 00.00.0000
20520 \begin_inset Flex Code
20521 status collapsed
20522
20523 \begin_layout Plain Layout
20524 svn copy -q "<ファイル名>" "<新ファイル名>"
20525 \end_layout
20526
20527 \end_inset
20528
20529
20530 \end_layout
20531
20532 \begin_layout Labeling
20533 \labelwidthstring 00.00.0000
20534 \begin_inset Flex Code
20535 status collapsed
20536
20537 \begin_layout Plain Layout
20538 svn commit
20539 \end_layout
20540
20541 \end_inset
20542
20543
20544 \end_layout
20545
20546 \begin_layout Subsubsection
20547 ファイル名変更
20548 \end_layout
20549
20550 \begin_layout Standard
20551 これは,現行文書のファイル名を変更します.最後のチェックイン以降,変更が加えられていないサラの文書であることが要求されます.ファイル名とコピー操作の説明を入力す
20552 るように促され,その後,ローカルとリポジトリの両方でファイル名が変更されます.新旧ファイル名の文書の親ディレクトリが異なる場合には,コピーにインクルードされたフ
20553 ァイルの相対パスは,(
20554 \family sans
20555 ファイル\SpecialChar menuseparator
20556 名前をつけて保存\SpecialChar ldots
20557
20558 \family default
20559 と同様に)全て調整されます.最後に,新ファイル名を使ってファイルが再度読み込まれます.
20560 \end_layout
20561
20562 \begin_layout Labeling
20563 \labelwidthstring 00.00.0000
20564 SVNコマンド:
20565 \end_layout
20566
20567 \begin_layout Labeling
20568 \labelwidthstring 00.00.0000
20569 \begin_inset Flex Code
20570 status collapsed
20571
20572 \begin_layout Plain Layout
20573 svn move -q add "<ファイル名>" "<新ファイル名>"
20574 \end_layout
20575
20576 \end_inset
20577
20578
20579 \end_layout
20580
20581 \begin_layout Labeling
20582 \labelwidthstring 00.00.0000
20583 \begin_inset Flex Code
20584 status collapsed
20585
20586 \begin_layout Plain Layout
20587 svn commit
20588 \end_layout
20589
20590 \end_inset
20591
20592
20593 \end_layout
20594
20595 \begin_layout Subsubsection
20596 \begin_inset CommandInset label
20597 LatexCommand label
20598 name "subsec:レポジトリからSVN同期"
20599
20600 \end_inset
20601
20602 レポジトリを使ったローカルディレクトリの同期
20603 \begin_inset Foot
20604 status collapsed
20605
20606 \begin_layout Plain Layout
20607 このコマンドは,subversion 
20608 \begin_inset Formula $\geqq1.5$
20609 \end_inset
20610
20611 でのみ動作することに注意してください.
20612 \end_layout
20613
20614 \end_inset
20615
20616
20617 \end_layout
20618
20619 \begin_layout Standard
20620 上記の各コマンドはすべて,共通の短所を持っています.すなわち,これらのコマンドは現在の文書しか取り扱わないのです.もし,作業中の文書に図を含めたり,外部
20621 \begin_inset Flex Code
20622 status collapsed
20623
20624 \begin_layout Plain Layout
20625 .tex
20626 \end_layout
20627
20628 \end_inset
20629
20630 ファイルを取り込んだりすれば,管理はずっと複雑になります.そこで\SpecialChar LyX
20631 は,文書のおいてあるツリー全体の更新をサポートします
20632 \begin_inset Foot
20633 status collapsed
20634
20635 \begin_layout Plain Layout
20636 すべての外部ファイルが,文書と同じディレクトリかそれ以下のサブディレクトリに来るようにファイル構造を構成する必要があります.
20637 \end_layout
20638
20639 \end_inset
20640
20641 .これは,subversion管理を知らなかったりレポジトリに新しい素材をコミットする勇気のない人たちと共同作業をする羽目になったときに,ひじょうに役に立ちます
20642
20643 \end_layout
20644
20645 \begin_layout Standard
20646 \begin_inset Flex Code
20647 status collapsed
20648
20649 \begin_layout Plain Layout
20650 ローカル辞書をレポジトリを使って更新
20651 \end_layout
20652
20653 \end_inset
20654
20655 コマンドは,ディレクトリ全体を更新し,マージに衝突が発生した場合には,ローカル版は保存されるので,意図しないデータロスが発生しません.ローカルな変更が発見された
20656 場合には,更新が開始される前にユーザに警告が与えられます.
20657 \end_layout
20658
20659 \begin_layout Labeling
20660 \labelwidthstring 00.00.0000
20661 SVNコマンド: 
20662 \begin_inset space ~
20663 \end_inset
20664
20665
20666 \begin_inset Newline newline
20667 \end_inset
20668
20669
20670 \begin_inset Flex Code
20671 status collapsed
20672
20673 \begin_layout Plain Layout
20674 svn diff $path(変更が発見された場合には通知します)
20675 \begin_inset Newline newline
20676 \end_inset
20677
20678 svn update –accept mine-full $path
20679 \end_layout
20680
20681 \end_inset
20682
20683
20684 \end_layout
20685
20686 \begin_layout Standard
20687 ここで
20688 \begin_inset Flex Code
20689 status collapsed
20690
20691 \begin_layout Plain Layout
20692 $path
20693 \end_layout
20694
20695 \end_inset
20696
20697 は文書のパスを示します.
20698 \end_layout
20699
20700 \begin_layout Subsubsection
20701 履歴を表示
20702 \end_layout
20703
20704 \begin_layout Standard
20705 これは,SVN文書の全履歴を表示します.
20706 \begin_inset Flex Code
20707 status collapsed
20708
20709 \begin_layout Plain Layout
20710 svn log 
20711 \begin_inset Quotes eld
20712 \end_inset
20713
20714 <ファイル名>
20715 \begin_inset Quotes erd
20716 \end_inset
20717
20718
20719 \end_layout
20720
20721 \end_inset
20722
20723 の出力がブラウザに表示されます.
20724 \end_layout
20725
20726 \begin_layout Subsubsection
20727 ファイルロック
20728 \begin_inset CommandInset label
20729 LatexCommand label
20730 name "subsec:SVNファイルロック"
20731
20732 \end_inset
20733
20734
20735 \end_layout
20736
20737 \begin_layout Standard
20738 別々の改訂管理システム間でファイルを交換しようとすると,二人のユーザが同じ文書(の一部)を編集している場合,マージが衝突する問題を引き起こします.そのような衝突
20739 が発生した場合,手動で解決しなくてはならなくなりますが,その合理的な解決法としては,与えられた時間に一人のユーザだけがファイルを編集することが許されるように保証
20740 するための,何らかのロック機構を導入することが考えられます.
20741 \end_layout
20742
20743 \begin_layout Standard
20744 SVNには,このように相互に排他的なファイルアクセスを提供する機構が二つあります.ロックと,
20745 \begin_inset Flex Code
20746 status collapsed
20747
20748 \begin_layout Plain Layout
20749 svn:needs-lock
20750 \end_layout
20751
20752 \end_inset
20753
20754 svnファイル特性に依拠した書き込み権限の自動設定(第
20755 \begin_inset CommandInset ref
20756 LatexCommand ref
20757 reference "subsec:自動ロック特性"
20758
20759 \end_inset
20760
20761 節を参照)です
20762 \begin_inset Foot
20763 status collapsed
20764
20765 \begin_layout Plain Layout
20766 http://svnbook.red-bean.com/en/1.2/svn.advanced.locking.html
20767 \end_layout
20768
20769 \end_inset
20770
20771 .ある文書について,この特性が検出されたときには,\SpecialChar LyX
20772 は自動的に文書編集にSVNロックを使用するようになり,チェックイン・チェックアウト機構はRCSと同じ枠組みに切
20773 り替わります.これは特に,\SpecialChar LyX
20774 でのファイルの使われ方に以下の二つのモードがあることを意味します.
20775 \end_layout
20776
20777 \begin_layout Itemize
20778 非ロック状態.読み込まれたファイルは,読み込み専用モードになります.編集するためには,チェックアウトする必要があります.
20779 \emph on
20780 チェックアウト
20781 \emph default
20782 を行うと,レポジトリからの更新と,書き込みロックの獲得が行われます.ロックの獲得ができないと,非ロック状態から出ることができません.
20783 \end_layout
20784
20785 \begin_layout Itemize
20786 ロック状態.読み込まれたファイルは,「通常の」編集モードになります.他のユーザには,このファイルを編集する許可が与えられません.
20787 \emph on
20788 チェックイン
20789 \emph default
20790 を行うと,変更のコミットと書き込みロックの解放が行われます.文書に変更が加えられなかった場合には,コミットは実行されず
20791 \begin_inset Foot
20792 status collapsed
20793
20794 \begin_layout Plain Layout
20795 コミットは実行されないのに,コミットメッセージを入力するよう促されますが,驚かないでください.
20796 \end_layout
20797
20798 \end_inset
20799
20800 ,書き込みロックの解放のみが行われます.
20801 \end_layout
20802
20803 \begin_layout Standard
20804 SVNコマンド:
20805 \end_layout
20806
20807 \begin_layout Labeling
20808 \labelwidthstring 00.00.0000
20809 チェックイン: 
20810 \begin_inset Flex Code
20811 status collapsed
20812
20813 \begin_layout Plain Layout
20814 svn commit -q -m
20815 \begin_inset Quotes erd
20816 \end_inset
20817
20818 <説明>
20819 \begin_inset Quotes erd
20820 \end_inset
20821
20822  
20823 \begin_inset Quotes eld
20824 \end_inset
20825
20826 <ファイル名>
20827 \begin_inset Quotes erd
20828 \end_inset
20829
20830
20831 \end_layout
20832
20833 \end_inset
20834
20835
20836 \begin_inset Newline newline
20837 \end_inset
20838
20839
20840 \begin_inset Flex Code
20841 status collapsed
20842
20843 \begin_layout Plain Layout
20844 svn unlock 
20845 \begin_inset Quotes eld
20846 \end_inset
20847
20848 <ファイル名>
20849 \begin_inset Quotes erd
20850 \end_inset
20851
20852
20853 \end_layout
20854
20855 \end_inset
20856
20857
20858 \end_layout
20859
20860 \begin_layout Labeling
20861 \labelwidthstring 00.00.0000
20862 チェックアウト: 
20863 \begin_inset Flex Code
20864 status collapsed
20865
20866 \begin_layout Plain Layout
20867 svn update 
20868 \begin_inset Quotes eld
20869 \end_inset
20870
20871 <ファイル名>
20872 \begin_inset Quotes erd
20873 \end_inset
20874
20875
20876 \end_layout
20877
20878 \end_inset
20879
20880
20881 \begin_inset Newline newline
20882 \end_inset
20883
20884
20885 \begin_inset Flex Code
20886 status collapsed
20887
20888 \begin_layout Plain Layout
20889 svn unlock 
20890 \begin_inset Quotes eld
20891 \end_inset
20892
20893 <ファイル名>
20894 \begin_inset Quotes erd
20895 \end_inset
20896
20897
20898 \end_layout
20899
20900 \end_inset
20901
20902
20903 \end_layout
20904
20905 \begin_layout Subsubsection
20906 自動ロック特性
20907 \begin_inset CommandInset label
20908 LatexCommand label
20909 name "subsec:自動ロック特性"
20910
20911 \end_inset
20912
20913
20914 \end_layout
20915
20916 \begin_layout Standard
20917 上述したような
20918 \begin_inset Flex Code
20919 status collapsed
20920
20921 \begin_layout Plain Layout
20922 .lyx
20923 \end_layout
20924
20925 \end_inset
20926
20927 ファイルに対する書き込み権限の自動設定は,
20928 \begin_inset Flex MenuItem
20929 status collapsed
20930
20931 \begin_layout Plain Layout
20932 ファイル\SpecialChar menuseparator
20933 バージョン管理\SpecialChar menuseparator
20934 ロック特性を使用
20935 \end_layout
20936
20937 \end_inset
20938
20939 で行うことができます.このコマンドは,SVNサーバでファイルがロックされていないときのみ使用可能状態になります(つまり,使用するにはチェックアウトが必要です).
20940 \end_layout
20941
20942 \begin_layout Standard
20943 SVNコマンド:
20944 \end_layout
20945
20946 \begin_layout Labeling
20947 \labelwidthstring 00.00.0000
20948 チェックイン: 
20949 \begin_inset Flex Code
20950 status collapsed
20951
20952 \begin_layout Plain Layout
20953 svn propset svn:needs-lock ON 
20954 \begin_inset Quotes eld
20955 \end_inset
20956
20957 <ファイル名>
20958 \begin_inset Quotes erd
20959 \end_inset
20960
20961
20962 \end_layout
20963
20964 \end_inset
20965
20966
20967 \end_layout
20968
20969 \begin_layout Labeling
20970 \labelwidthstring 00.00.0000
20971 チェックアウト: 
20972 \begin_inset Flex Code
20973 status collapsed
20974
20975 \begin_layout Plain Layout
20976 svn propdel svn:needs-lock 
20977 \begin_inset Quotes eld
20978 \end_inset
20979
20980 <ファイル名>
20981 \begin_inset Quotes erd
20982 \end_inset
20983
20984
20985 \end_layout
20986
20987 \end_inset
20988
20989
20990 \end_layout
20991
20992 \begin_layout Subsubsection
20993 \begin_inset CommandInset label
20994 LatexCommand label
20995 name "subsec:VCS改訂情報"
20996
20997 \end_inset
20998
20999 文書の改訂情報
21000 \end_layout
21001
21002 \begin_layout Standard
21003 文書中で改訂情報を有効化するにはいくつかの方法があります.
21004 \end_layout
21005
21006 \begin_layout Itemize
21007 \SpecialChar LyX
21008 による直接サポート
21009 \end_layout
21010
21011 \begin_deeper
21012 \begin_layout Itemize
21013 ツリー改訂情報(
21014 \begin_inset Flex Code
21015 status collapsed
21016
21017 \begin_layout Plain Layout
21018 vcs-tree-revision
21019 \end_layout
21020
21021 \end_inset
21022
21023 ).
21024 \begin_inset Flex Code
21025 status collapsed
21026
21027 \begin_layout Plain Layout
21028 svnversion
21029 \end_layout
21030
21031 \end_inset
21032
21033 コマンドの出力を返します.下記の表が,結果の読み方のヒントを与えるでしょう.
21034 \end_layout
21035
21036 \begin_layout Standard
21037 \align center
21038 \begin_inset Tabular
21039 <lyxtabular version="3" rows="6" columns="2">
21040 <features tabularvalignment="middle">
21041 <column alignment="center" valignment="top">
21042 <column alignment="center" valignment="top">
21043 <row>
21044 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21045 \begin_inset Text
21046
21047 \begin_layout Plain Layout
21048 出力
21049 \end_layout
21050
21051 \end_inset
21052 </cell>
21053 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
21054 \begin_inset Text
21055
21056 \begin_layout Plain Layout
21057 意味
21058 \end_layout
21059
21060 \end_inset
21061 </cell>
21062 </row>
21063 <row>
21064 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21065 \begin_inset Text
21066
21067 \begin_layout Plain Layout
21068 4123:4168
21069 \end_layout
21070
21071 \end_inset
21072 </cell>
21073 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21074 \begin_inset Text
21075
21076 \begin_layout Plain Layout
21077 改訂版の混合した作業コピー
21078 \end_layout
21079
21080 \end_inset
21081 </cell>
21082 </row>
21083 <row>
21084 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21085 \begin_inset Text
21086
21087 \begin_layout Plain Layout
21088 4168M
21089 \end_layout
21090
21091 \end_inset
21092 </cell>
21093 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21094 \begin_inset Text
21095
21096 \begin_layout Plain Layout
21097 修正された作業コピー
21098 \end_layout
21099
21100 \end_inset
21101 </cell>
21102 </row>
21103 <row>
21104 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21105 \begin_inset Text
21106
21107 \begin_layout Plain Layout
21108 4123S
21109 \end_layout
21110
21111 \end_inset
21112 </cell>
21113 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21114 \begin_inset Text
21115
21116 \begin_layout Plain Layout
21117 スイッチされた作業コピー
21118 \end_layout
21119
21120 \end_inset
21121 </cell>
21122 </row>
21123 <row>
21124 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21125 \begin_inset Text
21126
21127 \begin_layout Plain Layout
21128 4123P
21129 \end_layout
21130
21131 \end_inset
21132 </cell>
21133 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21134 \begin_inset Text
21135
21136 \begin_layout Plain Layout
21137 チェックアウト頻度が低かったことによる不完全な作業コピー
21138 \end_layout
21139
21140 \end_inset
21141 </cell>
21142 </row>
21143 <row>
21144 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21145 \begin_inset Text
21146
21147 \begin_layout Plain Layout
21148 4123:4168MS
21149 \end_layout
21150
21151 \end_inset
21152 </cell>
21153 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
21154 \begin_inset Text
21155
21156 \begin_layout Plain Layout
21157 改訂版が混合し,修正され,スイッチされた作業コピー
21158 \end_layout
21159
21160 \end_inset
21161 </cell>
21162 </row>
21163 </lyxtabular>
21164
21165 \end_inset
21166
21167
21168 \end_layout
21169
21170 \begin_layout Itemize
21171 ファイル改訂情報.
21172 \begin_inset Flex Code
21173 status collapsed
21174
21175 \begin_layout Plain Layout
21176 svn
21177 \begin_inset space ~
21178 \end_inset
21179
21180 info
21181 \begin_inset space ~
21182 \end_inset
21183
21184 –xml
21185 \begin_inset space ~
21186 \end_inset
21187
21188 file.lyx
21189 \end_layout
21190
21191 \end_inset
21192
21193 の出力を解析したものが返されます.サポートされるフラグは
21194 \end_layout
21195
21196 \begin_deeper
21197 \begin_layout Itemize
21198 最終コミットのバージョン番号(
21199 \begin_inset Flex Code
21200 status collapsed
21201
21202 \begin_layout Plain Layout
21203 vcs-revision
21204 \end_layout
21205
21206 \end_inset
21207
21208 )
21209 \end_layout
21210
21211 \begin_layout Itemize
21212 最終コミットの著者(
21213 \begin_inset Flex Code
21214 status collapsed
21215
21216 \begin_layout Plain Layout
21217 vcs-author
21218 \end_layout
21219
21220 \end_inset
21221
21222 )
21223 \end_layout
21224
21225 \begin_layout Itemize
21226 最終コミットの日付(
21227 \begin_inset Flex Code
21228 status collapsed
21229
21230 \begin_layout Plain Layout
21231 vcs-date
21232 \end_layout
21233
21234 \end_inset
21235
21236 )
21237 \end_layout
21238
21239 \begin_layout Itemize
21240 最終コミットの時間(
21241 \begin_inset Flex Code
21242 status collapsed
21243
21244 \begin_layout Plain Layout
21245 vcs-time
21246 \end_layout
21247
21248 \end_inset
21249
21250 )
21251 \end_layout
21252
21253 \end_deeper
21254 \begin_layout Standard
21255 これらの情報は,情報差込枠で得ることができます(例:
21256 \begin_inset Flex Code
21257 status collapsed
21258
21259 \begin_layout Plain Layout
21260 info-insert buffer vcs-date
21261 \end_layout
21262
21263 \end_inset
21264
21265 ).これらの情報は,ファイルをsvn管理下に置いたときのみ(すなわち使用中文書の
21266 \begin_inset Flex Code
21267 status collapsed
21268
21269 \begin_layout Plain Layout
21270 .svn
21271 \end_layout
21272
21273 \end_inset
21274
21275 ディレクトリがあるときのみ)利用可能です.
21276 \end_layout
21277
21278 \end_deeper
21279 \begin_layout Itemize
21280 もう一つの—ハッカー的な—方法は,SVNキーワードを使用する方法です
21281 \begin_inset Foot
21282 status collapsed
21283
21284 \begin_layout Plain Layout
21285 http://svnbook.red-bean.com/en/1.4/svn.advanced.props.special.keywords.html
21286 \end_layout
21287
21288 \end_inset
21289
21290 .簡単に言えば,ファイルキーワード特性を設定して(例:
21291 \family sans
21292 svn propset svn:keywords 'Rev' file.lyx
21293 \family default
21294 ),文書中にキーワード\SpecialChar TeX
21295 コード
21296 \begin_inset Foot
21297 status collapsed
21298
21299 \begin_layout Plain Layout
21300 これは,\SpecialChar LyX
21301 がキーワードタグの途中で改行してしまわないことを確実にするための,簡単な方法です.
21302 \end_layout
21303
21304 \end_inset
21305
21306 タグ(例:
21307 \begin_inset ERT
21308 status open
21309
21310 \begin_layout Plain Layout
21311
21312 $Rev$
21313 \end_layout
21314
21315 \end_inset
21316
21317 )を貼り付けるのです.このようにして,SVNクライアントは,各更新やコミットの後に自動的に改訂番号を代入することができるのです(例
21318 \begin_inset ERT
21319 status open
21320
21321 \begin_layout Plain Layout
21322
21323 $Rev: 59 $
21324 \end_layout
21325
21326 \end_inset
21327
21328 ).このアプローチにはいくつか問題があります.第一に,\SpecialChar TeX
21329 の世界では「$」文字は数式を表すのに使われるので,\SpecialChar LyX
21330 中の
21331 \begin_inset Formula $Rev$
21332 \end_inset
21333
21334 という数式表現が,すべて
21335 \begin_inset Formula $Rev:59$
21336 \end_inset
21337
21338 になってしまいます.その他のId・Date・Authorなどといったキーワードも同様です.第二に,SVN出力は使用中のロケールに依存するので,Dateが用いられ
21339 ると,SVNは,問題を引き起こすような文字列を容易に生成してしまいます.第三に,文書中には,番号だけでなく「Rev:59」という文字列全体が表示されてしまいます
21340 .Subversionがユーザ定義のキーワードを実装するまでは,このアプローチを信頼性を持って使用したり,\SpecialChar LyX
21341 がこれを直接サポートすることは,難しそうです.
21342 \end_layout
21343
21344 \begin_layout Subsection
21345 SVNとWindows環境
21346 \end_layout
21347
21348 \begin_layout Quote
21349 ユーザが,かなり早いうちに自分自身でコマンドライン操作を理解できないのであれば,TortoiseSVNを使った方が賢明でしょう.—P.
21350  A.
21351  ルービン
21352 \end_layout
21353
21354 \begin_layout Subsubsection
21355 準備
21356 \end_layout
21357
21358 \begin_layout Standard
21359 \SpecialChar LyX
21360 を導入して,Subversionレポジトリへのアクセス権を持っている他に,ユーザはSubversionクライアントプログラムを導入する必要があります.クライアン
21361 トプログラムのWindows用インストーラは
21362 \begin_inset CommandInset href
21363 LatexCommand href
21364 name "CollabNet"
21365 target "http://www.collab.net/nonav/downloads/subversion/"
21366 literal "false"
21367
21368 \end_inset
21369
21370 にあります.ユーザは
21371 \begin_inset CommandInset href
21372 LatexCommand href
21373 name "TortoiseSVN"
21374 target "http://tortoisesvn.tigris.org/"
21375 literal "false"
21376
21377 \end_inset
21378
21379 も導入することを考えるでしょう.これはSubversionの操作をWindows Explorerのコンテクスト(右クリック)メニューに統合します.\SpecialChar LyX
21380 外部で行う操
21381 作は,一般的にExplorerコンテクストメニューを使った方が便利です.TortoiseSVNは,\SpecialChar LyX
21382 自身が使用するクライアントプログラムの代わりとは成りませんので
21383 ,注意してください.
21384 \end_layout
21385
21386 \begin_layout Subsubsection
21387 文書をSubversion管理下に置くには
21388 \end_layout
21389
21390 \begin_layout Standard
21391 \SpecialChar LyX
21392 文書をSubversionのバージョン管理下に置く前に,その親ディレクトリをバージョン管理下に置かなくてはなりません.文書を,既にレポジトリに存在するプロジェク
21393 トに追加する際には,新規文書が置かれることになるディレクトリへ,プロジェクトをチェックアウトすることによって実現します.プロジェクト自体がバージョン管理下にない
21394 場合(たとえばこの文書が新規プロジェクトの最初のファイルである場合)には,このディレクトリをレポジトリにインポートしなくてはなりません.これは,\SpecialChar LyX
21395 の外部で行います
21396 .インポートもチェックアウトも共に,TortoiseSVNを使えば,Explorerのコンテクストメニューから簡単に終えることができます.あるいは,DOSプロン
21397 プトでコマンドライン・クライアントを使って成し遂げることもできます.TortoiseSVNを使ったプロジェクトのインポート手続きを下記で説明します.レポジトリは
21398 既に存在し,新規プロジェクトを
21399 \begin_inset Flex Code
21400 status collapsed
21401
21402 \begin_layout Plain Layout
21403 C:
21404 \backslash
21405 new project
21406 \end_layout
21407
21408 \end_inset
21409
21410 で開始するものとします.Subversionクライアントプログラムを使うための情報を得るには,DOSシェルで
21411 \begin_inset Flex Code
21412 status collapsed
21413
21414 \begin_layout Plain Layout
21415 svn –help
21416 \end_layout
21417
21418 \end_inset
21419
21420 を実行してください.
21421 \end_layout
21422
21423 \begin_layout Enumerate
21424 Windows Explorerで
21425 \begin_inset Flex Code
21426 status collapsed
21427
21428 \begin_layout Plain Layout
21429 C:
21430 \backslash
21431 new project
21432 \end_layout
21433
21434 \end_inset
21435
21436 を見つけ出して右クリックし,
21437 \begin_inset Flex MenuItem
21438 status collapsed
21439
21440 \begin_layout Plain Layout
21441 TortoiseSVN\SpecialChar menuseparator
21442 Repo-browser
21443 \end_layout
21444
21445 \end_inset
21446
21447 を選択してください.必要であれば,レポジトリのURLを調整し,OKをクリックしてください.
21448 \end_layout
21449
21450 \begin_layout Enumerate
21451 新規プロジェクトフォルダを置くレポジトリレベル(多くの場合最上位レベル)を右クリックし,
21452 \begin_inset Flex MenuItem
21453 status collapsed
21454
21455 \begin_layout Plain Layout
21456 Create folder\SpecialChar ldots
21457
21458 \end_layout
21459
21460 \end_inset
21461
21462 をクリックしてください.プロジェクトフォルダの名称を入力してOKをクリックしてください.必要であればログファイル用のメッセージを入力し,再びOKをクリックしてく
21463 ださい.新規プロジェクトフォルダがレポジトリに現れるはずです.最後にOKを再度クリックして,レポジトリブラウザを終了してください.
21464 \end_layout
21465
21466 \begin_layout Enumerate
21467 再度
21468 \begin_inset Flex Code
21469 status collapsed
21470
21471 \begin_layout Plain Layout
21472 C:
21473 \backslash
21474 new project
21475 \end_layout
21476
21477 \end_inset
21478
21479 を右クリックし,今度は
21480 \begin_inset Flex MenuItem
21481 status collapsed
21482
21483 \begin_layout Plain Layout
21484 SVN Checkout\SpecialChar ldots
21485
21486 \end_layout
21487
21488 \end_inset
21489
21490 を選択してください.レポジトリにたった今作成した,プロジェクトフォルダのURLを選択し,チェックアウトディレクトリを
21491 \begin_inset Flex Code
21492 status collapsed
21493
21494 \begin_layout Plain Layout
21495 C:
21496 \backslash
21497 new project
21498 \end_layout
21499
21500 \end_inset
21501
21502 に設定してから,OKをクリックしてください.フォルダが空でないことを警告されますが,OKをクリックして進んでください.すると,
21503 \begin_inset Flex Code
21504 status collapsed
21505
21506 \begin_layout Plain Layout
21507 C:
21508 \backslash
21509 new project
21510 \end_layout
21511
21512 \end_inset
21513
21514 の下に
21515 \begin_inset Flex Code
21516 status collapsed
21517
21518 \begin_layout Plain Layout
21519 .svn
21520 \end_layout
21521
21522 \end_inset
21523
21524 ディレクトリが作成されます.
21525 \end_layout
21526
21527 \begin_layout Enumerate
21528 \SpecialChar LyX
21529 で文書を新規作成するか開くかして,
21530 \begin_inset Flex MenuItem
21531 status collapsed
21532
21533 \begin_layout Plain Layout
21534 ファイル\SpecialChar menuseparator
21535 バージョン管理\SpecialChar menuseparator
21536 登録
21537 \end_layout
21538
21539 \end_inset
21540
21541 をクリックします.ログメッセージを入力してOKをクリックし,文書をバージョン管理にコミットしてください.
21542 \end_layout
21543
21544 \begin_layout Standard
21545 爾後,
21546 \begin_inset Flex MenuItem
21547 status collapsed
21548
21549 \begin_layout Plain Layout
21550 ファイル\SpecialChar menuseparator
21551 バージョン管理
21552 \end_layout
21553
21554 \end_inset
21555
21556 メニューのすべての機能が使用できるようになります.Windows ExplorerのTortoiseSVNコンテクストメニューか,コマンドプロンプトでのSubv
21557 ersionクライアントプログラムを使用して,文書をチェックイン・チェックアウトしたり,履歴を見たりといったことができるようになります.
21558 \end_layout
21559
21560 \begin_layout Subsubsection
21561 Windows下でSVNと共にSSHトンネルを使うには
21562 \end_layout
21563
21564 \begin_layout Standard
21565 Linuxに較べて,WindowsでSVNクライアントをSSH経由で通信するようにさせるのは,かなり厄介な仕事です.どのようにクライアント側を設定すればよいか,
21566 少なくとも幾分かのヒントをお示しするつもりですが,sshとWindowsコマンドラインの知識が前もって必要であり,それと共にかなりの量のフラストレーションが溜ま
21567 ることを覚悟しておいてください.
21568 \end_layout
21569
21570 \begin_layout Enumerate
21571 前節で述べたように,Windows用のSVNクライアントを入手してください.これが新規の導入である場合には,何らかのSVNコマンド(たとえば
21572 \begin_inset Flex Code
21573 status collapsed
21574
21575 \begin_layout Plain Layout
21576 svn –version
21577 \end_layout
21578
21579 \end_inset
21580
21581 )を実行して,configファイル群を生成させてください.これらは後で変更を加える必要があります.
21582 \end_layout
21583
21584 \begin_layout Enumerate
21585 Windows用のsshクライアントを選んでください.選択肢はたくさんありますが,ここではPutty tools
21586 \begin_inset Foot
21587 status open
21588
21589 \begin_layout Plain Layout
21590 \begin_inset Flex URL
21591 status collapsed
21592
21593 \begin_layout Plain Layout
21594
21595 http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html
21596 \end_layout
21597
21598 \end_inset
21599
21600
21601 \end_layout
21602
21603 \end_inset
21604
21605 のものを使用することとしましょう.クライアントが接続の度にパスワードを訊いてこないように,接続を自動化する必要があります.簡単にするために,追加的なパスワード保
21606 護などを加えない
21607 \begin_inset Flex Ruby
21608 status collapsed
21609
21610 \begin_layout Plain Layout
21611
21612 \begin_inset Argument post:1
21613 status collapsed
21614
21615 \begin_layout Plain Layout
21616 キー
21617 \end_layout
21618
21619 \end_inset
21620
21621
21622 \end_layout
21623
21624 \end_inset
21625
21626 のみを使用することとします.
21627 \end_layout
21628
21629 \begin_deeper
21630 \begin_layout Enumerate
21631 \begin_inset Flex Code
21632 status collapsed
21633
21634 \begin_layout Plain Layout
21635 puttygen
21636 \end_layout
21637
21638 \end_inset
21639
21640 を使って鍵を生成します..ppkプライベート鍵ファイルを保存し,パブリック鍵ファイルはサーバ側に置きます.SVNサーバがLinuxで走っている場合,このパブリック
21641 鍵の書式はLinuxのopensshと互換性がないために,「Public key for pasting into OpenSSH authorized_key
21642 s file:」編集フィールドから,直接サーバの
21643 \begin_inset Flex Code
21644 status collapsed
21645
21646 \begin_layout Plain Layout
21647 ~/.ssh/authorized_keys
21648 \end_layout
21649
21650 \end_inset
21651
21652 または
21653 \begin_inset Flex Code
21654 status collapsed
21655
21656 \begin_layout Plain Layout
21657 authorized_keys2
21658 \end_layout
21659
21660 \end_inset
21661
21662 ファイルにコピー&ペーストを行わなくてはならないことに注意してください.
21663 \end_layout
21664
21665 \begin_layout Enumerate
21666 Puttyのplinkを入手してください.SVNのconfigファイル
21667 \begin_inset Foot
21668 status collapsed
21669
21670 \begin_layout Plain Layout
21671 正確なパスはWindowsのバージョンに依りますが,通常は
21672 \begin_inset Flex Code
21673 status collapsed
21674
21675 \begin_layout Plain Layout
21676 c:
21677 \backslash
21678 Documents and Settings
21679 \backslash
21680 user
21681 \backslash
21682 Application Data
21683 \backslash
21684 Subversion
21685 \backslash
21686 config
21687 \end_layout
21688
21689 \end_inset
21690
21691
21692 \begin_inset Flex Code
21693 status collapsed
21694
21695 \begin_layout Plain Layout
21696 AppData
21697 \backslash
21698 Roaming
21699 \backslash
21700 Subversion
21701 \end_layout
21702
21703 \end_inset
21704
21705 辺りにあります.
21706 \end_layout
21707
21708 \end_inset
21709
21710 中の
21711 \begin_inset Flex Code
21712 status collapsed
21713
21714 \begin_layout Plain Layout
21715 [tunnels]
21716 \end_layout
21717
21718 \end_inset
21719
21720 セクションにsshコマンドを設定してください.例:
21721 \begin_inset Flex Code
21722 status collapsed
21723
21724 \begin_layout Plain Layout
21725 ssh=c:/path/plink.exe -i c:/path/private_key.ppk
21726 \end_layout
21727
21728 \end_inset
21729
21730
21731 \begin_inset Foot
21732 status collapsed
21733
21734 \begin_layout Plain Layout
21735 通常,正確なコマンドを機能させるには長い時間がかかり,それは多くの物事に依存します.たとえば,リモートサーバがPuttyなどの既定セッションとして保存されないよ
21736 うにしてください.うまく行かない場合には,まずSVNなしでplink経由の接続を試してください.
21737 \end_layout
21738
21739 \end_inset
21740
21741
21742 \end_layout
21743
21744 \end_deeper
21745 \begin_layout Enumerate
21746 SVNアーカイブをチェックアウトしてください.例:
21747 \begin_inset Newline newline
21748 \end_inset
21749
21750
21751 \begin_inset Flex Code
21752 status collapsed
21753
21754 \begin_layout Plain Layout
21755 svn co svn+ssh://user@server/repository_path
21756 \end_layout
21757
21758 \end_inset
21759
21760
21761 \end_layout
21762
21763 \begin_layout Subsubsection
21764 行末変換
21765 \end_layout
21766
21767 \begin_layout Standard
21768 共著者同士がLinuxとWindowsを混在させているとき,\SpecialChar LyX
21769 は.lyxファイル中で異なった行末記号を使用することになります.これは,\SpecialChar LyX
21770 の機能に関する限り問題になりま
21771 せんが,コミット差分は巨大になり,マージではコンフリクトを引き起こしがちです.幸いにして,SVNは,.lyxファイルを
21772 \begin_inset Flex Code
21773 status collapsed
21774
21775 \begin_layout Plain Layout
21776 native
21777 \end_layout
21778
21779 \end_inset
21780
21781 モードに切り替える際
21782 \begin_inset Foot
21783 status collapsed
21784
21785 \begin_layout Plain Layout
21786 手短には
21787 \begin_inset Flex Code
21788 status collapsed
21789
21790 \begin_layout Plain Layout
21791 svn propset svn:eol-style native FILE_NAME
21792 \end_layout
21793
21794 \end_inset
21795
21796
21797 \end_layout
21798
21799 \end_inset
21800
21801 ,CR/LF問題をどのように取り扱えばいいかを知っているので大丈夫です
21802 \begin_inset Foot
21803 status collapsed
21804
21805 \begin_layout Plain Layout
21806 \begin_inset Flex URL
21807 status collapsed
21808
21809 \begin_layout Plain Layout
21810
21811 http://svnbook.red-bean.com/en/1.4/svn.advanced.props.file-portability.html
21812 \end_layout
21813
21814 \end_inset
21815
21816
21817 \end_layout
21818
21819 \end_inset
21820
21821
21822 \end_layout
21823
21824 \begin_layout Subsection
21825 \SpecialChar LyX
21826 におけるGITコマンド
21827 \end_layout
21828
21829 \begin_layout Standard
21830 \SpecialChar LyX
21831 で,最小限のGITコマンドがサポートされるようになりました.これらのコマンドは,
21832 \family sans
21833 ファイル\SpecialChar menuseparator
21834 バージョン管理
21835 \family default
21836 にあります.リポジトリのアクセスに,パスワード保護されたsshを使用している場合には,ターミナルウィンドウでの操作をするように促されます.\SpecialChar LyX
21837 は,GIT
21838  1.7に対して試験を行っています.
21839 \end_layout
21840
21841 \begin_layout Standard
21842 GITと他のバージョン管理システムとの大きな相違点は,GITの配布形態にあります.伝統的なバージョン管理システムでは,リポジトリをホストする,中心となるサーバー
21843 があります.ユーザーは変更点をサーバーにコミットし,他のユーザーが行った更新分をサーバーから受け取ります.一方,GITでは,ユーザーは,ローカルのリポジトリにコ
21844 ミットを行います.ローカルリポジトリは,GITコマンドの
21845 \begin_inset Flex Code
21846 status open
21847
21848 \begin_layout Plain Layout
21849 pull
21850 \end_layout
21851
21852 \end_inset
21853
21854 または
21855 \begin_inset Flex Code
21856 status open
21857
21858 \begin_layout Plain Layout
21859 push
21860 \end_layout
21861
21862 \end_inset
21863
21864 を使って,1つ以上のリモートリポジトリと同期されます.\SpecialChar LyX
21865 は,リモートのGITリポジトリとは,一切関わりません.CVSやSVNの集権的リポジトリに対して行うのと同じ
21866 ことを,ローカルのリポジトリに対してのみ行います.リモートのGITリポジトリを使用している場合には,お好みのGITクライアントを使用して,
21867 \begin_inset Flex Code
21868 status open
21869
21870 \begin_layout Plain Layout
21871 pull
21872 \end_layout
21873
21874 \end_inset
21875
21876 または
21877 \begin_inset Flex Code
21878 status open
21879
21880 \begin_layout Plain Layout
21881 push
21882 \end_layout
21883
21884 \end_inset
21885
21886 の操作を行う必要があります.
21887 \end_layout
21888
21889 \begin_layout Subsubsection
21890 登録
21891 \end_layout
21892
21893 \begin_layout Standard
21894 お使いの文書が改訂管理下に置かれていなければ,メニューにはこの項目だけが表示されます.もし改訂管理が有効ならば,
21895 \family sans
21896 登録
21897 \family default
21898 項目は表示されません.
21899 \end_layout
21900
21901 \begin_layout Standard
21902 本コマンドは,既に文書のあるディレクトリをGIT管理下に置いている場合に
21903 \emph on
21904 のみ
21905 \emph default
21906 (すなわち
21907 \begin_inset Flex Code
21908 status collapsed
21909
21910 \begin_layout Plain Layout
21911 .git/index
21912 \end_layout
21913
21914 \end_inset
21915
21916 ファイルが存在する場合にのみ),お使いの文書をGITに登録します.つまり,アーカイブはご自分でチェックアウトしなくてはなりません.
21917 \end_layout
21918
21919 \begin_layout Standard
21920 すると,文書の最初の説明文を入力するように促されます.登録したファイルは,まだコミットされたわけではないことに注意してください.
21921 \end_layout
21922
21923 \begin_layout Standard
21924 実行されるGITコマンドは,
21925 \begin_inset Flex Code
21926 status collapsed
21927
21928 \begin_layout Plain Layout
21929 git add "<ファイル名>"
21930 \end_layout
21931
21932 \end_inset
21933
21934 です.
21935 \end_layout
21936
21937 \begin_layout Standard
21938 スイッチの説明は
21939 \begin_inset Flex Code
21940 status collapsed
21941
21942 \begin_layout Plain Layout
21943 man git
21944 \end_layout
21945
21946 \end_inset
21947
21948 をお読みください.
21949 \end_layout
21950
21951 \begin_layout Subsubsection
21952 変更をチェックイン
21953 \end_layout
21954
21955 \begin_layout Standard
21956 ファイルの編集を終えたら,変更をコミットします.このとき,変更の説明文を入れるよう促されます.その後,変更がコミットされます.
21957 \end_layout
21958
21959 \begin_layout Standard
21960 GITコマンド:
21961 \begin_inset Flex Code
21962 status collapsed
21963
21964 \begin_layout Plain Layout
21965 git commit -q -m
21966 \begin_inset Quotes erd
21967 \end_inset
21968
21969 <入力した説明文>
21970 \begin_inset Quotes erd
21971 \end_inset
21972
21973  "<ファイル名>"
21974 \end_layout
21975
21976 \end_inset
21977
21978
21979 \end_layout
21980
21981 \begin_layout Subsubsection
21982 リポジトリ版に戻す
21983 \end_layout
21984
21985 \begin_layout Standard
21986 これは,最後のチェックイン以降,文書に加えられた変更をすべて廃棄します.変更が廃棄される前に警告が表示されます.
21987 \end_layout
21988
21989 \begin_layout Standard
21990 GITコマンド:
21991 \begin_inset Flex Code
21992 status collapsed
21993
21994 \begin_layout Plain Layout
21995 git checkout -q 
21996 \begin_inset Quotes eld
21997 \end_inset
21998
21999 <ファイル名>
22000 \begin_inset Quotes erd
22001 \end_inset
22002
22003
22004 \end_layout
22005
22006 \end_inset
22007
22008
22009 \end_layout
22010
22011 \begin_layout Subsubsection
22012 ファイル名変更
22013 \end_layout
22014
22015 \begin_layout Standard
22016 これは,現行文書のファイル名を変更します.最後のチェックイン以降,変更が加えられていないサラの文書であることが要求されます.ファイル名とコピー操作の説明を入力す
22017 るように促され,その後,ローカルとリポジトリの両方でファイル名が変更されます.新旧ファイル名の文書の親ディレクトリが異なる場合には,コピーにインクルードされたフ
22018 ァイルの相対パスは,(
22019 \family sans
22020 ファイル\SpecialChar menuseparator
22021 名前をつけて保存\SpecialChar ldots
22022
22023 \family default
22024 と同様に)全て調整されます.最後に,新ファイル名を使ってファイルが再度読み込まれます.
22025 \end_layout
22026
22027 \begin_layout Labeling
22028 \labelwidthstring 00.00.0000
22029 GITコマンド:
22030 \end_layout
22031
22032 \begin_layout Labeling
22033 \labelwidthstring 00.00.0000
22034 \begin_inset Flex Code
22035 status collapsed
22036
22037 \begin_layout Plain Layout
22038 git mv "<ファイル名>" "<新ファイル名>"
22039 \end_layout
22040
22041 \end_inset
22042
22043
22044 \end_layout
22045
22046 \begin_layout Labeling
22047 \labelwidthstring 00.00.0000
22048 \begin_inset Flex Code
22049 status collapsed
22050
22051 \begin_layout Plain Layout
22052 git commit
22053 \end_layout
22054
22055 \end_inset
22056
22057
22058 \end_layout
22059
22060 \begin_layout Subsubsection
22061 履歴を表示
22062 \end_layout
22063
22064 \begin_layout Standard
22065 これは,GIT文書の全履歴を表示します.
22066 \begin_inset Flex Code
22067 status collapsed
22068
22069 \begin_layout Plain Layout
22070 git log 
22071 \begin_inset Quotes eld
22072 \end_inset
22073
22074 <ファイル名>
22075 \begin_inset Quotes erd
22076 \end_inset
22077
22078
22079 \end_layout
22080
22081 \end_inset
22082
22083 の出力がブラウザに表示されます.
22084 \end_layout
22085
22086 \begin_layout Subsubsection
22087 改訂情報
22088 \end_layout
22089
22090 \begin_layout Standard
22091 \SpecialChar LyX
22092 は,ファイルの最終コミットのGITハッシュ番号・著者名・最終コミットの日時をサポートします.これらの情報は,すべて
22093 \family typewriter
22094 git log -n 1 --pretty=format:%H%n%an%n%ai
22095 \family default
22096 によって抽出されます.ツリーバージョン情報は,
22097 \family typewriter
22098 git describe --abbrev --dirty --long
22099 \family default
22100 で取得されます.詳細については,第
22101 \begin_inset CommandInset ref
22102 LatexCommand ref
22103 reference "subsec:VCS改訂情報"
22104
22105 \end_inset
22106
22107 節を参照してください.
22108 \end_layout
22109
22110 \begin_layout Subsection
22111 さらなる調整
22112 \end_layout
22113
22114 \begin_layout Standard
22115 vcコマンド機構が最近になって付け加えられたおかげで,\SpecialChar LyX
22116 のパワーユーザは,改訂管理のための自製コマンドを作ることができるようになりました.
22117 \end_layout
22118
22119 \begin_layout Standard
22120 たとえば,以下のようにして,二つのTortoiseSVNコマンドを直接統合することができます.
22121 \end_layout
22122
22123 \begin_layout Description
22124 コミット: 
22125 \begin_inset Flex Code
22126 status collapsed
22127
22128 \begin_layout Plain Layout
22129 vc-command DR "." "TortoiseProc /command:commit /path:$$p"
22130 \end_layout
22131
22132 \end_inset
22133
22134
22135 \end_layout
22136
22137 \begin_layout Description
22138 元に戻す: 
22139 \begin_inset Flex Code
22140 status collapsed
22141
22142 \begin_layout Plain Layout
22143 vc-command DR "." "TortoiseProc /command:revert /path:$$p"
22144 \end_layout
22145
22146 \end_inset
22147
22148
22149 \end_layout
22150
22151 \begin_layout Subsection
22152 バージョン管理と文書比較
22153 \end_layout
22154
22155 \begin_layout Standard
22156 バージョン管理は,通常
22157 \begin_inset Flex Code
22158 status collapsed
22159
22160 \begin_layout Plain Layout
22161 diff
22162 \end_layout
22163
22164 \end_inset
22165
22166 ダンプを生成することによって,改訂版の間の変更点を検査するのが,典型的な使用法です.これは平文ファイルには有効なのですが,複雑な構造を持つ\SpecialChar LyX
22167 ファイルの場合には,あ
22168 まり便利ではありません.そこで,\SpecialChar LyX
22169 は独自の文書比較機能を提供しています.この機能を呼び出すには2つの方法があります.1つは,\SpecialChar LyX
22170
22171 \begin_inset Flex Code
22172 status collapsed
22173
22174 \begin_layout Plain Layout
22175 VC_COMPARE
22176 \end_layout
22177
22178 \end_inset
22179
22180 関数を直接呼び出す方法であり(詳細は\SpecialChar LyX
22181 関数説明書を参照),もう1つは
22182 \begin_inset Flex MenuItem
22183 status collapsed
22184
22185 \begin_layout Plain Layout
22186 旧改訂と比較\SpecialChar ldots
22187
22188 \end_layout
22189
22190 \end_inset
22191
22192 メニューないしアイコンを使用する方法です.当該文書のうち,任意の2つの改訂版を比較することもできますし,編集中の現行版を古い改訂版と比較することもできます(この
22193 とき改訂版遡及数「
22194 \begin_inset Flex MenuItem
22195 status collapsed
22196
22197 \begin_layout Plain Layout
22198 0
22199 \end_layout
22200
22201 \end_inset
22202
22203 」は,編集中のファイルと最後にコミットした改訂版との比較を意味します).
22204 \end_layout
22205
22206 \begin_layout Standard
22207 この機能は,SVNとRCSでサポートされていますが,RCSは,より複雑なバージョン付けスキームを持っているため,制約があります.ダイアログ中で改訂版を指定する際
22208 の数字は,つねにRCS改訂番号の最後の数を指し示します(例:「1.2.35」版のときには「35」).現在のところ,改訂のGIT表記はサポートされておらず,HEAD~
22209 Xの形で表記されるXステップ前の改訂版を,編集中文書と比較することのみが可能です.
22210 \end_layout
22211
22212 \begin_layout Section
22213 文芸プログラミング
22214 \end_layout
22215
22216 \begin_layout Standard
22217
22218 \noun on
22219 Kayvan Sylvan
22220 \noun default
22221 (kayvan@sylvan.com)改訂 
22222 \noun on
22223 Edmar Wienskoski Jr.
22224 \noun default
22225 (edmar-w-jr@technologist.com)原文
22226 \end_layout
22227
22228 \begin_layout Subsection
22229 はじめに
22230 \end_layout
22231
22232 \begin_layout Standard
22233 この節の主な目的は,文芸的プログラミング(literate programming)のために,\SpecialChar LyX
22234 をどう使えばよいかをお見せすることです.ここでは,あなたがこのプロ
22235 グラミング技術をよくご存じで,「tangling」や「weaving」の意味するところを知っているものとして説明します.そうでない場合には,以下の各節にあるウェ
22236 ブリンクをたどってください.そこには,かつての開発の歴史から最新のツールチップまで,たくさんの良質なドキュメンテーションがあります.
22237 \end_layout
22238
22239 \begin_layout Standard
22240 また,あなたが,\SpecialChar LyX
22241 の設定を変更することを厭わない程度まで\SpecialChar LyX
22242 に習熟しており,Xリソースファイルにも親しんでいることを前提にしています.そうでない場合は,あなたの必要と
22243 するトピックを扱っている,\SpecialChar LyX
22244 の他の説明書で調べてください.
22245 \end_layout
22246
22247 \begin_layout Subsection
22248 文芸プログラミング
22249 \end_layout
22250
22251 \begin_layout Standard
22252 以下は,文芸プログラミング FAQからの抜粋です.
22253 \end_layout
22254
22255 \begin_layout Quotation
22256 文芸プログラミングは,人間が読むのに適した形でのドキュメンテーションとソースの組合わせです.実際,文芸的プログラムは楽しい読み物であるべきであり,さらには参加し
22257 たいとさえ思わせるべきなのです!(ボブ,ごめん.言わずにはいれなかった.)一般的に,文芸プログラムは,ソースとドキュメンテーションを同一ファイル上に結合したもの
22258 です.そして,文芸プログラミングツールは,ファイルを解析して,読むことのできるドキュメンテーションか,あるいはコンパイル可能なソースを生成します.文芸プログラミ
22259 ングのWEBスタイルは,D.
22260 \begin_inset space \thinspace{}
22261 \end_inset
22262
22263 E.
22264  Knuthが,\SpecialChar TeX
22265 組版ソフトウエアを開発中に作り出したものです.
22266 \end_layout
22267
22268 \begin_layout Standard
22269 他のエキスパートの発言です.
22270 \end_layout
22271
22272 \begin_layout Quotation
22273
22274 \emph on
22275 文芸プログラミングは,冗長なコメント付けと何が違いますか?
22276 \end_layout
22277
22278 \begin_layout Quotation
22279 3つの際立った特徴があります.重要な順に列挙すれば,
22280 \end_layout
22281
22282 \begin_deeper
22283 \begin_layout Itemize
22284 推敲の順序が柔軟
22285 \end_layout
22286
22287 \begin_layout Itemize
22288 ブラウジングの自動サポート
22289 \end_layout
22290
22291 \begin_layout Itemize
22292 特に図式と数式を含んだドキュメンテーションの組版
22293 \end_layout
22294
22295 \end_deeper
22296 \begin_layout Quotation
22297 などがあります.
22298 \end_layout
22299
22300 \begin_layout Standard
22301 あなたの興味に火を付けたところで書誌情報を見てみましょう.
22302 \end_layout
22303
22304 \begin_layout Subsubsection
22305 書誌情報
22306 \end_layout
22307
22308 \begin_layout Standard
22309 完全な文芸プログラミング FAQは
22310 \end_layout
22311
22312 \begin_layout Quote
22313 Literate Programming FAQ 
22314 \begin_inset Flex URL
22315 status collapsed
22316
22317 \begin_layout Plain Layout
22318
22319 http://www.xmarks.com/site/shelob.ce.ttu.edu/daves/lpfaq/faq.html
22320 \end_layout
22321
22322 \end_inset
22323
22324
22325 \end_layout
22326
22327 \begin_layout Standard
22328 にあります.
22329 \end_layout
22330
22331 \begin_layout Standard
22332 このFAQには,23(二十三です!)の文芸プログラミング用ツールが列挙されています.一部のツールは,特定のプログラミング言語用に特化したものですが,一般的な対象
22333 を持つものもあります.私は自分で使うのに,いくつかの理由から
22334 \noun on
22335 Noweb
22336 \noun default
22337 を選びました.
22338 \end_layout
22339
22340 \begin_layout Itemize
22341 説明文書を\SpecialChar LaTeX
22342 でもHTMLでも出力できる.
22343 \end_layout
22344
22345 \begin_layout Itemize
22346 開放的なアーキテクチャに持っているので,新しいフィルタをプラグインとして加えたり,自分が必要な特別な処理を実行することが容易である.
22347 \end_layout
22348
22349 \begin_layout Itemize
22350 すでに利用可能となっているフィルタの良質なコレクションがある(HTMLはその一つです).
22351 \end_layout
22352
22353 \begin_layout Itemize
22354 無料である.
22355 \end_layout
22356
22357 \begin_layout Standard
22358 Nowebのウェブページは
22359 \end_layout
22360
22361 \begin_layout Quote
22362 Nowebホームページ 
22363 \begin_inset Flex URL
22364 status collapsed
22365
22366 \begin_layout Plain Layout
22367
22368 http://www.cs.virginia.edu/~nr/noweb/
22369 \end_layout
22370
22371 \end_inset
22372
22373
22374 \end_layout
22375
22376 \begin_layout Standard
22377 にあります.ここから始めれば,たくさんの興味深いリンクや,文芸プログラミングの用例にたどり着くことができます.
22378 \end_layout
22379
22380 \begin_layout Subsection
22381 \SpecialChar LyX
22382 とNowebを使った文芸プログラミング
22383 \end_layout
22384
22385 \begin_layout Standard
22386 \SpecialChar LyX
22387 における文芸プログラミングのサポートは,\SpecialChar LyX
22388 の汎用変換機構を使用して実現しています.このサポートは「Noweb非依存」的な方法で提供されているので,LyXの設定を変
22389 更するだけで,自分の好きな他の文芸プログラミングツールを使って,この新しい\SpecialChar LyX
22390 の機能を利用することができます.
22391 \end_layout
22392
22393 \begin_layout Subsubsection
22394 ドキュメントとコードの生成(weavingおよびtangling)
22395 \end_layout
22396
22397 \begin_layout Paragraph
22398 nowebモジュールの使用
22399 \end_layout
22400
22401 \begin_layout Standard
22402 Nowebと\SpecialChar LyX
22403 の導入に成功したならば,新規文書を開いたときにはいつも,文書クラスを選択した後,
22404 \family sans
22405 文書\SpecialChar menuseparator
22406 設定
22407 \family default
22408 メニューで「noweb」モジュールを追加するようにしてください.Nowebが正しく導入されていれば,「モジュール」リンクをクリックした際,利用可能リストに「no
22409 web」モジュールが表示され,文書に追加できるようになっています.
22410 \end_layout
22411
22412 \begin_layout Paragraph
22413 コードの入力
22414 \end_layout
22415
22416 \begin_layout Standard
22417 \SpecialChar LyX
22418 では,
22419 \begin_inset Flex Noun
22420 status collapsed
22421
22422 \begin_layout Plain Layout
22423 Chunk
22424 \end_layout
22425
22426 \end_inset
22427
22428 という名前のレイアウトを使えば,コードを入力することができます.Nowebは次のようにchunks を区切ります.
22429 \end_layout
22430
22431 \begin_layout LyX-Code
22432 <<My code>>=
22433 \end_layout
22434
22435 \begin_layout LyX-Code
22436   code
22437 \end_layout
22438
22439 \begin_layout LyX-Code
22440   more code
22441 \end_layout
22442
22443 \begin_layout LyX-Code
22444   even more code
22445 \end_layout
22446
22447 \begin_layout LyX-Code
22448   @
22449 \end_layout
22450
22451 \begin_layout Standard
22452 問題は<<と@の間にあるものを完全にそのままの形で扱わなければならないことです.つまり,\SpecialChar LyX
22453 は,この間に書かれたものを特別に解釈することは決してあってはなりません.
22454 これも
22455 \begin_inset Flex Noun
22456 status collapsed
22457
22458 \begin_layout Plain Layout
22459 Chunk
22460 \end_layout
22461
22462 \end_inset
22463
22464 によって取り扱われ,通常の段落のように見えますが,自由に空白を入れることができます.
22465 \end_layout
22466
22467 \begin_layout Standard
22468 特殊な注釈として,chunk内でNowebの「%def」を使えば,Nowebのidentifierの相互参照に項目を加えることができます.次の例を見てください.
22469 \end_layout
22470
22471 \begin_layout LyX-Code
22472 <<My chunk>>=
22473 \end_layout
22474
22475 \begin_layout LyX-Code
22476 def some_function(args):
22477 \end_layout
22478
22479 \begin_layout LyX-Code
22480    "This is the doc string for this function."
22481 \end_layout
22482
22483 \begin_layout LyX-Code
22484    print "My args: ", args
22485 \end_layout
22486
22487 \begin_layout LyX-Code
22488 @ %def some_function
22489 \end_layout
22490
22491 \begin_layout Standard
22492 これをどのように使って,その結果相互参照がどうなるかは
22493 \emph on
22494 LIBDIR/examples/listerrors.lyx
22495 \emph default
22496 の中の文芸pythonプログラムを見るとよくわかります.
22497 \end_layout
22498
22499 \begin_layout Paragraph
22500 説明文書の生成
22501 \end_layout
22502
22503 \begin_layout Standard
22504 この時点で,適切な文書クラスを持ち,いくつかのコードとテキストが入った新規文書ファイルが作成されているはずです.これをどうやって印刷したらいいのでしょう.答えは
22505 簡単で,通常の文書で行うように
22506 \family sans
22507 文書\SpecialChar menuseparator
22508 表示
22509 \family default
22510 等を選ぶだけです.特別な手続きは必要ありません.
22511 \end_layout
22512
22513 \begin_layout Standard
22514 理解を助けるために,\SpecialChar LyX
22515 の内部で何が起っているかを説明しておきましょう.
22516 \end_layout
22517
22518 \begin_layout Enumerate
22519
22520 \family sans
22521 文書\SpecialChar menuseparator
22522 更新
22523 \family default
22524 が選択されると,\SpecialChar LaTeX
22525 ファイルがつくられます.
22526 \end_layout
22527
22528 \begin_deeper
22529 \begin_layout Standard
22530 文書が文芸プログラミング用のクラスであった場合には,拡張子に(
22531 \begin_inset Flex MenuItem
22532 status collapsed
22533
22534 \begin_layout Plain Layout
22535 設定
22536 \end_layout
22537
22538 \end_inset
22539
22540 パネルで設定した)文芸プログラム用のものがつけられます.それ以外は .texが拡張子に使われます.
22541 \end_layout
22542
22543 \end_deeper
22544 \begin_layout Enumerate
22545 違いがファイル名だけなのに注意してください.\SpecialChar LyX
22546 による特別な処理は必要ありません.
22547 \begin_inset Flex Noun
22548 status collapsed
22549
22550 \begin_layout Plain Layout
22551 Chunk
22552 \end_layout
22553
22554 \end_inset
22555
22556 環境でコードを入力するのだけがポイントです.
22557 \end_layout
22558
22559 \begin_layout Enumerate
22560 文書が何らかの文芸プログラムクラスなら,\SpecialChar LyX
22561 は,\SpecialChar LyX
22562 からNowebへの内部変換子を用い,それからNowebから\SpecialChar LaTeX
22563 への変換子
22564 \begin_inset Foot
22565 status collapsed
22566
22567 \begin_layout Plain Layout
22568 これらの変換子は,
22569 \family sans
22570 ツール\SpecialChar menuseparator
22571 設定
22572 \family default
22573 パネルの変換子タブに定義されています.変換子の一般的な情報については,取扱説明書『
22574 \emph on
22575 カスタマイズ篇
22576 \emph default
22577 』の「
22578 \emph on
22579 変換子
22580 \emph default
22581 」の節をご覧ください.
22582 \end_layout
22583
22584 \end_inset
22585
22586 を使って\SpecialChar LaTeX
22587 ファイルを生成します.
22588 \end_layout
22589
22590 \begin_deeper
22591 \begin_layout Standard
22592 それ以外の場合はこのステップを飛ばします.
22593 \end_layout
22594
22595 \end_deeper
22596 \begin_layout Enumerate
22597 最後に\SpecialChar LaTeX
22598 が実行され,通常の文書と同じ後処理が行われます.
22599 \end_layout
22600
22601 \begin_layout Standard
22602 様々な変換子が実行するコマンドを変更すれば,簡単に,特定の「文芸プログラムツール」から変更することができます.
22603 \end_layout
22604
22605 \begin_layout Paragraph
22606 コードの生成
22607 \end_layout
22608
22609 \begin_layout Standard
22610 ビルドメニューが選ばれた場合や,それに対応するツールバーのボタンが押された場合,上のステップ1と同様に\SpecialChar LaTeX
22611 ファイルが生成されます.それから\SpecialChar LyX
22612
22613 \family typewriter
22614 Noweb->Program
22615 \family default
22616 のコンバータを起動します.通常は,このコンバータは(他のコンバータと同じように)2つの部分からできています.
22617 \end_layout
22618
22619 \begin_layout Enumerate
22620 変換プログラム.このプログラムは,一つのフォーマットから他のフォーマットへの変換を行います(この場合は,Nowebフォーマットからプログラムの疑似フォーマットへ
22621 変換します).
22622 \end_layout
22623
22624 \begin_layout Enumerate
22625 エラーログ解析子.これはエラーメッセージを\SpecialChar LyX
22626 が理解できる形へ書き直します.これによって,\SpecialChar LyX
22627 はファイルバッファの正しい位置へエラーボックスを配置することができます.
22628 \end_layout
22629
22630 \begin_layout Standard
22631 冒頭部,「変換子」設定は
22632 \begin_inset Newline newline
22633 \end_inset
22634
22635
22636 \begin_inset Quotes eld
22637 \end_inset
22638
22639
22640 \family typewriter
22641 build-script $$i $$r
22642 \family default
22643
22644 \begin_inset Quotes erd
22645 \end_inset
22646
22647
22648 \begin_inset Newline newline
22649 \end_inset
22650
22651 と指定します.これは基本的に,\SpecialChar LyX
22652
22653 \begin_inset Quotes erd
22654 \end_inset
22655
22656
22657 \family typewriter
22658 build-script
22659 \family default
22660
22661 \begin_inset Quotes erd
22662 \end_inset
22663
22664 (プログラムかスクリプト名)を(一般には\SpecialChar LyX
22665 の一時ファイル用のディレクトリにつくられる),Nowebファイルの名前と元の\SpecialChar LyX
22666 ファイルのディレクトリパスを使って呼び出すこ
22667 とを意味しています.
22668 \end_layout
22669
22670 \begin_layout Standard
22671 以下に「build-script」の一例を書いておきます.パスが通っているディレクトリに置いて使います.
22672 \end_layout
22673
22674 \begin_layout Standard
22675 \begin_inset VSpace defskip
22676 \end_inset
22677
22678
22679 \begin_inset Newpage pagebreak
22680 \end_inset
22681
22682
22683 \end_layout
22684
22685 \begin_layout Standard
22686
22687 \family sans
22688 #!/bin/sh
22689 \end_layout
22690
22691 \begin_layout Standard
22692
22693 \family sans
22694 #
22695 \end_layout
22696
22697 \begin_layout Standard
22698
22699 \family sans
22700 notangle -Rbuild-script $1 | env NOWEB_SOURCE=$1 NOWEB_OUTPUT_DIR=$2 sh
22701 \end_layout
22702
22703 \begin_layout Standard
22704 \begin_inset VSpace defskip
22705 \end_inset
22706
22707
22708 \end_layout
22709
22710 \begin_layout Standard
22711 変換子設定の次の部分は「フラグ」で,これは
22712 \begin_inset Quotes erd
22713 \end_inset
22714
22715
22716 \family typewriter
22717 parselog=$$s/scripts/listerrors
22718 \family default
22719
22720 \begin_inset Quotes erd
22721 \end_inset
22722
22723 に設定されます.
22724 \begin_inset Newline newline
22725 \end_inset
22726
22727 これは,
22728 \begin_inset Quotes erd
22729 \end_inset
22730
22731 build-script
22732 \begin_inset Quotes erd
22733 \end_inset
22734
22735 プロセスが生成したエラーを
22736 \begin_inset Quotes erd
22737 \end_inset
22738
22739 listerrors
22740 \begin_inset Quotes erd
22741 \end_inset
22742
22743 プログラムを介して処理するものです.
22744 \end_layout
22745
22746 \begin_layout Standard
22747 ビルドは,通常\SpecialChar LyX
22748 の一時ディレクトリで行われるので,変換によって生成されたファイルはそのディレクトリに置かれます.\SpecialChar LyX
22749 は,主要ファイルとみなされるものをコピーして取り出
22750 しますが,
22751 \family typewriter
22752 Noweb→プログラム
22753 \family default
22754 変換は複数のファイルを生成することがあるので,\SpecialChar LyX
22755 を閉じる際に大半が削除される可能性があります.これが,NOWEB_OUTPUT_DIR環境変数を渡して,build
22756 -script chunkが生成したファイルをその場所に置かれるようにする理由です.
22757 \end_layout
22758
22759 \begin_layout Paragraph
22760 文章中でのプログラムの構築操作の説明
22761 \end_layout
22762
22763 \begin_layout Standard
22764 \SpecialChar LyX
22765 とNowebの統合の最後の部分は,
22766 \begin_inset Quotes eld
22767 \end_inset
22768
22769 build-script
22770 \begin_inset Quotes erd
22771 \end_inset
22772
22773  chunkです.一般に,あなたのプログラムの構築操作の説明それ自身をchunkに入れて文章中に含めなければなりません.上の例のnoweb用のbuild-scr
22774 iptでは,chunkを見つけるのにnotangleコマンドを使い,shを使って起動します.
22775 \end_layout
22776
22777 \begin_layout Standard
22778 以下に典型的なchunkがどのようなものかを書いておきます.
22779 \end_layout
22780
22781 \begin_layout LyX-Code
22782 <<build-script>>=
22783 \begin_inset Newline newline
22784 \end_inset
22785
22786
22787 \end_layout
22788
22789 \begin_layout LyX-Code
22790 #!/bin/sh
22791 \begin_inset Newline newline
22792 \end_inset
22793
22794
22795 \begin_inset Newline newline
22796 \end_inset
22797
22798 if [ -z "${NOWEB_SOURCE}" ]
22799 \begin_inset Newline newline
22800 \end_inset
22801
22802 then
22803 \end_layout
22804
22805 \begin_layout LyX-Code
22806 NOWEB_SOURCE=myfile.nw
22807 \begin_inset Newline newline
22808 \end_inset
22809
22810 fi
22811 \begin_inset Newline newline
22812 \end_inset
22813
22814 [...
22815  code to extract files ...
22816  use NOWEB_OUTPUT_DIR here ...]
22817 \begin_inset Newline newline
22818 \end_inset
22819
22820 [...
22821  code to compile files ...]
22822 \begin_inset Newline newline
22823 \end_inset
22824
22825 @
22826 \end_layout
22827
22828 \begin_layout Standard
22829
22830 \emph on
22831 LIBDIR/examples/listerrors.lyx
22832 \emph default
22833
22834 \emph on
22835 LIBDIR/examples/Literate.lyx
22836 \emph default
22837 を見てください.この2つのファイルには異なる実装のlisterrorsプログラムが含まれていて,これまで説明してきた各々の部分が全体としてどのようになるかをわか
22838 ってもらうための例です.また,
22839 \emph on
22840 LIBDIR/examples/noweb2lyx.lyx
22841 \emph default
22842 も見てください.面白いことに,これらの3つのファイルは,Python,C,Perlが各々使われていて,\SpecialChar LyX
22843 の文芸プログラミングのサポートがプログラム言語に依存しない
22844 ことを示しています.
22845 \end_layout
22846
22847 \begin_layout Subsubsection
22848 \SpecialChar LyX
22849 の設定
22850 \end_layout
22851
22852 \begin_layout Standard
22853 すべての文芸プログラムのための設定は,
22854 \family sans
22855 ツール\SpecialChar menuseparator
22856 設定
22857 \family default
22858 パネルの「ファイル処理」タブですることができます.重要な部分を見ておきましょう.
22859 \end_layout
22860
22861 \begin_layout Description
22862 「NoWeb」形式 ファイル形式タブで設定します.ここで,Noweb特有の設定を行います.
22863 \family sans
22864 GUI名
22865 \family default
22866
22867 \family typewriter
22868 NoWeb
22869 \family default
22870 に,拡張子を
22871 \family typewriter
22872 .nw
22873 \family default
22874 に設定してください.これによって,\SpecialChar LyX
22875 に変換プロセスの第一段階でつくられるファイルに
22876 \family typewriter
22877 .nw
22878 \family default
22879 という拡張子をつけることを指示します.
22880 \end_layout
22881
22882 \begin_layout Description
22883 プログラム形式 これは,変換の終着点を示すためだけの,空の形式です(これがあることで,変換子を作ることができます).
22884 \end_layout
22885
22886 \begin_layout Description
22887
22888 \family sans
22889 NoWeb
22890 \family default
22891 ->
22892 \family sans
22893 \SpecialChar LaTeX
22894
22895 \family default
22896  この変換子は,文芸的文書の「weaving」を行います.Nowebの場合,「
22897 \family typewriter
22898 noweave -delay -index $$i > $$o
22899 \family default
22900 」に設定されます.
22901 \end_layout
22902
22903 \begin_layout Description
22904
22905 \family sans
22906 NoWeb
22907 \family default
22908 ->
22909 \family sans
22910 Program
22911 \family default
22912  これは「tangling」を行います.上述のように,変換子は「
22913 \family typewriter
22914 build-script $$i $$r
22915 \family default
22916 」,フラグは「
22917 \family typewriter
22918 parselog=$$s/scripts/listerrors
22919 \family default
22920 」となります.
22921 \end_layout
22922
22923 \begin_layout Subsubsection
22924 デバッグ機能拡張
22925 \end_layout
22926
22927 \begin_layout Standard
22928 ddd/gdbまたは他のデバッガで使える「server-goto-file-row」関数が新たに\SpecialChar LyX
22929 サーバに実装されました.
22930 \end_layout
22931
22932 \begin_layout Standard
22933 ddd/gdbでデバッグしているとき,一つの
22934 \begin_inset Flex Ruby
22935 status collapsed
22936
22937 \begin_layout Plain Layout
22938
22939 \begin_inset Argument post:1
22940 status collapsed
22941
22942 \begin_layout Plain Layout
22943 キー
22944 \end_layout
22945
22946 \end_inset
22947
22948
22949 \end_layout
22950
22951 \end_inset
22952
22953 ストロークで現在実行している位置でテキストエディタを起動できます.既定のdddの設定ではShift-Ctrl-Vになっています.この設定はdddで
22954 \begin_inset Flex MenuItem
22955 status collapsed
22956
22957 \begin_layout Plain Layout
22958 ツール\SpecialChar menuseparator
22959 設定\SpecialChar menuseparator
22960 ファイル書式
22961 \end_layout
22962
22963 \end_inset
22964
22965 ウインドウを表示して,
22966 \begin_inset Flex MenuItem
22967 status collapsed
22968
22969 \begin_layout Plain Layout
22970 編集プログラム
22971 \end_layout
22972
22973 \end_inset
22974
22975 エントリを変えると変えることができます.
22976 \end_layout
22977
22978 \begin_layout Standard
22979 新しい\SpecialChar LyX
22980 サーバの関数と,このdddの機能を使うために
22981 \begin_inset Flex MenuItem
22982 status collapsed
22983
22984 \begin_layout Plain Layout
22985 編集プログラム
22986 \end_layout
22987
22988 \end_inset
22989
22990 を次のように設定してください.
22991 \end_layout
22992
22993 \begin_layout Standard
22994 \begin_inset VSpace defskip
22995 \end_inset
22996
22997
22998 \end_layout
22999
23000 \begin_layout Standard
23001
23002 \family sans
23003 echo "LYXCMD:monitor:server-goto-file-row:@FILE@ @LINE@" >~/.lyxpipe.in
23004 \end_layout
23005
23006 \begin_layout Standard
23007 \begin_inset VSpace defskip
23008 \end_inset
23009
23010
23011 \end_layout
23012
23013 \begin_layout Standard
23014 こうしておくとdddを使っていてプログラムの編集したい場所があったとき,(dddのウインドウで)Shift-Ctrl-Vを押すだけでdddは\SpecialChar LyX
23015 サーバに情報を送り,\SpecialChar LyX
23016
23017 は同じファイルを表示し,カーソルはdddが示した場所へあらわれます.これでもうデバッグの最中に推測しながらスクロールして場所を探す必要がなくなります.
23018 \end_layout
23019
23020 \begin_layout Standard
23021 この機能が動くには\SpecialChar LyX
23022 サーバが利用可能でなければなりません(既定では\SpecialChar LyX
23023 サーバーは使えないようになっています).\SpecialChar LyX
23024 サーバを使えるようにするには,
23025 \family sans
23026
23027 \begin_inset Flex MenuItem
23028 status collapsed
23029
23030 \begin_layout Plain Layout
23031
23032 \family sans
23033 設定
23034 \end_layout
23035
23036 \end_inset
23037
23038
23039 \family default
23040 (
23041 \family sans
23042
23043 \begin_inset Flex MenuItem
23044 status collapsed
23045
23046 \begin_layout Plain Layout
23047
23048 \family sans
23049 パス
23050 \end_layout
23051
23052 \end_inset
23053
23054
23055 \family default
23056 タブ)の
23057 \family sans
23058
23059 \begin_inset Flex MenuItem
23060 status collapsed
23061
23062 \begin_layout Plain Layout
23063
23064 \family sans
23065 \SpecialChar LyX
23066 サーバーパイプ
23067 \family default
23068
23069 \end_layout
23070
23071 \end_inset
23072
23073
23074 \family default
23075
23076 \begin_inset Quotes eld
23077 \end_inset
23078
23079
23080 \family typewriter
23081 /home/<your-home-directory>/.lyx/lyxpipe
23082 \family default
23083
23084 \begin_inset Quotes erd
23085 \end_inset
23086
23087  のようにパスを指定してください.
23088 \end_layout
23089
23090 \begin_layout Standard
23091 詳しくは第
23092 \begin_inset CommandInset ref
23093 LatexCommand ref
23094 reference "chap:LyXサーバー"
23095
23096 \end_inset
23097
23098 章を読んでください.
23099 \end_layout
23100
23101 \begin_layout Subsubsection
23102 ツールバー拡張
23103 \end_layout
23104
23105 \begin_layout Standard
23106 ツールバーに加えることのできる6つの新しいボタンがあります.そのうちの5つのボタンは段落環境へのショートカットです.
23107 \family sans
23108 標準
23109 \family default
23110 ・節・
23111 \family sans
23112 \SpecialChar LaTeX
23113
23114 \family default
23115
23116 \family sans
23117 \SpecialChar LyX
23118 コード
23119 \family default
23120
23121 \family sans
23122 Chunk
23123 \family default
23124 環境用のボタンを用意しています.最後の一つはファイルメニュー項目の「Build Program」への
23125 \begin_inset Flex Ruby
23126 status collapsed
23127
23128 \begin_layout Plain Layout
23129
23130 \family roman
23131 \series medium
23132 \shape up
23133 \size normal
23134 \emph off
23135 \bar no
23136 \noun off
23137 \color none
23138 捷径
23139 \family default
23140 \series default
23141 \shape default
23142 \size default
23143 \emph default
23144 \bar default
23145 \noun default
23146 \color inherit
23147
23148 \begin_inset Argument post:1
23149 status collapsed
23150
23151 \begin_layout Plain Layout
23152 ショートカット
23153 \end_layout
23154
23155 \end_inset
23156
23157
23158 \end_layout
23159
23160 \end_inset
23161
23162 です.
23163 \end_layout
23164
23165 \begin_layout Standard
23166 \SpecialChar LyX
23167 はツールバーで使うためのいくつものボタンを用意しています.私のツールバーはこの6つのショートカットに
23168 \begin_inset Flex MenuItem
23169 status collapsed
23170
23171 \begin_layout Plain Layout
23172 文書\SpecialChar menuseparator
23173 更新\SpecialChar menuseparator
23174 DVI
23175 \end_layout
23176
23177 \end_inset
23178
23179
23180 \begin_inset Flex MenuItem
23181 status collapsed
23182
23183 \begin_layout Plain Layout
23184 文書\SpecialChar menuseparator
23185 表示\SpecialChar menuseparator
23186 DVI
23187 \end_layout
23188
23189 \end_inset
23190
23191 を組み合わせたものになっています.
23192 \end_layout
23193
23194 \begin_layout LyX-Code
23195 Toolbar
23196 \end_layout
23197
23198 \begin_layout LyX-Code
23199   Layouts
23200 \end_layout
23201
23202 \begin_layout LyX-Code
23203   Icon "layout Standard"
23204 \end_layout
23205
23206 \begin_layout LyX-Code
23207   Icon "layout Section"
23208 \end_layout
23209
23210 \begin_layout LyX-Code
23211   Icon "layout \SpecialChar LaTeX
23212 "
23213 \end_layout
23214
23215 \begin_layout LyX-Code
23216   Icon "layout \SpecialChar LyX
23217 -Code"
23218 \end_layout
23219
23220 \begin_layout LyX-Code
23221   Icon "layout Chunk"
23222 \end_layout
23223
23224 \begin_layout LyX-Code
23225   Separator
23226 \end_layout
23227
23228 \begin_layout LyX-Code
23229   Icon "buffer-view"
23230 \end_layout
23231
23232 \begin_layout LyX-Code
23233   Icon "buffer-typeset"
23234 \end_layout
23235
23236 \begin_layout LyX-Code
23237   Icon "build-program"
23238 \end_layout
23239
23240 \begin_layout LyX-Code
23241   Separator
23242 \end_layout
23243
23244 \begin_layout LyX-Code
23245 .
23246 \end_layout
23247
23248 \begin_layout LyX-Code
23249 .
23250 \end_layout
23251
23252 \begin_layout LyX-Code
23253 .
23254 \end_layout
23255
23256 \begin_layout LyX-Code
23257 End
23258 \end_layout
23259
23260 \begin_layout Subsubsection
23261 色の変更
23262 \end_layout
23263
23264 \begin_layout Standard
23265 \SpecialChar LyX
23266 ではいくつもの色を
23267 \begin_inset Flex MenuItem
23268 status collapsed
23269
23270 \begin_layout Plain Layout
23271 設定
23272 \end_layout
23273
23274 \end_inset
23275
23276 で変えることができます.人々が困りがちなのは,\SpecialChar LaTeX
23277 フォント色でしょう.これは,既定では赤になっていますが,chunkは\SpecialChar LaTeX
23278 フォントを使うことになっていて,文芸プログラミ
23279 ング文書には多くのchunkが現れるために,すべて赤で見ていると疲れてしまうかもしれません.これは,
23280 \begin_inset Flex MenuItem
23281 status collapsed
23282
23283 \begin_layout Plain Layout
23284 操作性\SpecialChar menuseparator
23285
23286 \end_layout
23287
23288 \end_inset
23289
23290 タブで変更することができます.
23291 \end_layout
23292
23293 \begin_layout Standard
23294 もう一つは,改行文字が画面に表示されていることでしょう.改行文字の色を背景の色と同じにすることで改行文字を見えなくできます.私は改行文字を背景の色に似ているが少
23295 し違う色にすることを勧めます.こうすると,改行文字があるのはわかりますが,じゃまにならないでしょう.
23296 \end_layout
23297
23298 \begin_layout Subsection
23299 \SpecialChar LyX
23300 とknitr/Sweave
23301 \end_layout
23302
23303 \begin_layout Standard
23304 knitrとSweaveへのサポートについては,用例ファイル
23305 \emph on
23306 knitr.lyx
23307 \emph default
23308 とSweave取扱説明書(
23309 \family sans
23310 ヘルプ\SpecialChar menuseparator
23311 用途別説明書
23312 \family default
23313 メニュー)に説明があります.
23314 \end_layout
23315
23316 \begin_layout Chapter
23317 特殊機能
23318 \begin_inset CommandInset label
23319 LatexCommand label
23320 name "chap:Special-features"
23321
23322 \end_inset
23323
23324
23325 \end_layout
23326
23327 \begin_layout Standard
23328 \SpecialChar LyX
23329 では,\SpecialChar LaTeX
23330 で可能なことは何でも出来ます.すべての\SpecialChar LaTeX
23331 の機能を直接サポートできるわけではありませんが,どんな場合でも\SpecialChar TeX
23332 コードを使用することはできます.本章は,ユーザの興味が
23333 有りそうな特別な機能について,若干取り上げます.図表やフロート,ボックス,注釈に関する特別な機能については,取扱説明書『
23334 \emph on
23335 埋込オブジェクト篇
23336 \emph default
23337 』をご参照ください.
23338 \end_layout
23339
23340 \begin_layout Section
23341 多段組
23342 \end_layout
23343
23344 \begin_layout Standard
23345 この機能は,文書設定の
23346 \family sans
23347 本文レイアウト
23348 \family default
23349 にある
23350 \family sans
23351 二段組文書
23352 \family default
23353 とは別の機能です.文書全体に二段組を行いたい場合には,
23354 \family sans
23355 二段組文書
23356 \family default
23357 オプションを利用することをお勧めします.その他の場合には,本機能をご使用ください.
23358 \end_layout
23359
23360 \begin_layout Standard
23361 文書中で多段組を行うには,\SpecialChar LaTeX
23362 パッケージ
23363 \series bold
23364 multicol
23365 \series default
23366
23367 \begin_inset Index idx
23368 status collapsed
23369
23370 \begin_layout Plain Layout
23371 \SpecialChar LaTeX
23372 ぱっけーじ @ \SpecialChar LaTeX
23373 パッケージ ! multicol
23374 \end_layout
23375
23376 \end_inset
23377
23378 を導入した上で,(
23379 \family sans
23380 文書\SpecialChar menuseparator
23381 設定\SpecialChar menuseparator
23382 モジュール
23383 \family default
23384 メニューから)
23385 \family sans
23386 多段組
23387 \family default
23388 モジュールを読み込んでください.
23389 \end_layout
23390
23391 \begin_layout Standard
23392 多段組中の脚注は,ページ下部に置かれ,各段の下ごとには置かれません.各段においては,フロートに
23393 \family sans
23394 段をまたぐ
23395 \family default
23396 オプションを使用する必要があるほかは,通常通りの使用をすることができます.
23397 \end_layout
23398
23399 \begin_layout Subsection
23400 基本
23401 \end_layout
23402
23403 \begin_layout Standard
23404 文章中で二段組を使用したい場合には,段組を始める場所で
23405 \family sans
23406 挿入\SpecialChar menuseparator
23407 任意設定差込枠\SpecialChar menuseparator
23408 多段組
23409 \family default
23410 メニューを使用して,多段組差込枠を挿入してください.二段組で印字されるべき文章は,全てこの差込枠の中に書いてください.
23411 \end_layout
23412
23413 \begin_layout Standard
23414 下記はその用例です.
23415 \end_layout
23416
23417 \begin_layout Standard
23418 \noindent
23419 \begin_inset Flex Multiple Columns
23420 status open
23421
23422 \begin_layout Plain Layout
23423 \noindent
23424
23425 \series bold
23426 \size small
23427 The Adventure of the Empty House
23428 \series default
23429
23430 \begin_inset Newline newline
23431 \end_inset
23432
23433 by Sir Arthur Conan Doyle
23434 \end_layout
23435
23436 \begin_layout Plain Layout
23437
23438 \size small
23439 It was in the spring of the year 1894 that all London was interested, and
23440  the fashionable world dismayed, by the murder of the Honourable Ronald
23441  Adair under most unusual and inexplicable circumstances.
23442  The public has already learned those particulars of the crime which came
23443  out in the police investigation, but a good deal was suppressed upon that
23444  occasion, since the case for the prosecution was so overwhelmingly strong
23445  that it was not necessary to bring forward all the facts.
23446  Only now, at the end of nearly ten years, am I allowed to supply those
23447  missing links which make up the whole of that remarkable chain.
23448  The crime was of interest in itself, but that interest was as nothing to
23449  me compared to the inconceivable sequel, which afforded me the greatest
23450  shock and surprise of any event in my adventurous life.
23451  Even now, after this long interval, I find myself thrilling as I think
23452  of it, and feeling once more that sudden flood of joy, amazement, and increduli
23453 ty which utterly submerged my mind.
23454  Let me say to that public, which has shown some interest in those glimpses
23455  which I have occasionally given them of the thoughts and actions of a very
23456  remarkable man, that they are not to blame me if I have not shared my knowledge
23457  with them, for I should have considered it my first duty to do so, had
23458  I not been barred by a positive prohibition from his own lips, which was
23459  only withdrawn upon the third of last month.
23460 \end_layout
23461
23462 \end_inset
23463
23464
23465 \end_layout
23466
23467 \begin_layout Standard
23468 三段以上にするには,カーソルを多段組差込枠の内部において,挿入\SpecialChar menuseparator
23469 段数メニューを使用してください.この差込枠の中に,欲しい段数を書き入れます(三段組の場合には「3」
23470 と書きます).
23471 \begin_inset Newline newline
23472 \end_inset
23473
23474 下記は三段組の例です.
23475 \end_layout
23476
23477 \begin_layout Standard
23478 \begin_inset Flex Multiple Columns
23479 status open
23480
23481 \begin_layout Plain Layout
23482
23483 \size footnotesize
23484 \begin_inset Argument 1
23485 status open
23486
23487 \begin_layout Plain Layout
23488 3
23489 \end_layout
23490
23491 \end_inset
23492
23493 It can be imagined that my close intimacy with Sherlock Holmes had interested
23494  me deeply in crime, and that after his disappearance I never failed to
23495  read with care the various problems which came before the public.
23496  And I even attempted, more than once, for my own private satisfaction,
23497  to employ his methods in their solution, though with indifferent success.
23498  There was none, however, which appealed to me like this tragedy of Ronald
23499  Adair.
23500  As I read the evidence at the inquest, which led up to a verdict of willful
23501  murder against some person or persons unknown, I realized more clearly
23502  than I had ever done the loss which the community had sustained by the
23503  death of Sherlock Holmes.
23504  There were points about this strange business which would, I was sure,
23505  have specially appealed to him, and the efforts of the police would have
23506  been supplemented, or more probably anticipated, by the trained observation
23507  and the alert mind of the first criminal agent in Europe.
23508  All day, as I drove upon my round, I turned over the case in my mind and
23509  found no explanation which appeared to me to be adequate.
23510  At the risk of telling a twice-told tale, I will recapitulate the facts
23511  as they were known to the public at the conclusion of the inquest.
23512 \end_layout
23513
23514 \end_inset
23515
23516
23517 \end_layout
23518
23519 \begin_layout Standard
23520 お望みならば10段組まで組むことができますが,文書の読者にとっては,あまり気持ちのいいものではないでしょう.
23521 \end_layout
23522
23523 \begin_layout Standard
23524 \begin_inset Newpage newpage
23525 \end_inset
23526
23527
23528 \end_layout
23529
23530 \begin_layout Subsection
23531 段組中の段組
23532 \end_layout
23533
23534 \begin_layout Standard
23535 また,段中に段を組むこともできます.
23536 \end_layout
23537
23538 \begin_layout Standard
23539 \begin_inset Flex Multiple Columns
23540 status open
23541
23542 \begin_layout Plain Layout
23543
23544 \size footnotesize
23545 The Honourable Ronald Adair was the second son of the Earl of Maynooth,
23546  at that time governor of one of the Australian colonies.
23547  Adair's mother had returned from Australia to undergo the operation for
23548  cataract, and she, her son Ronald, and her daughter Hilda were living together
23549  at 427 Park Lane.
23550 \end_layout
23551
23552 \begin_layout Plain Layout
23553 \begin_inset Flex Multiple Columns
23554 status open
23555
23556 \begin_layout Plain Layout
23557
23558 \size footnotesize
23559 The youth moved in the best society–had, so far as was known, no enemies
23560  and no particular vices.
23561  He had been engaged to Miss Edith Woodley, of Carstairs, but the engagement
23562  had been broken off by mutual consent some months before, and there was
23563  no sign that it had left any very profound feeling behind it.
23564  For the rest {sic} the man's life moved in a narrow and conventional circle,
23565  for his habits were quiet and his nature unemotional.
23566  Yet it was upon this easy-going young aristocrat that death came, in most
23567  strange and unexpected form, between the hours of ten and eleven-twenty
23568  on the night of March 30, 1894.
23569 \end_layout
23570
23571 \end_inset
23572
23573
23574 \end_layout
23575
23576 \begin_layout Plain Layout
23577
23578 \size footnotesize
23579 Ronald Adair was fond of cards–playing continually, but never for such stakes
23580  as would hurt him.
23581  He was a member of the Baldwin, the Cavendish, and the Bagatelle card clubs.
23582  It was shown that, after dinner on the day of his death, he had played
23583  a rubber of whist at the latter club.
23584  He had also played there in the afternoon.
23585
23586 \size default
23587  
23588 \size footnotesize
23589 The evidence of those who had played with him– Mr.
23590  Murray, Sir John Hardy, and Colonel Moran–showed that the game was whist,
23591  and that there was a fairly equal fall of the cards.
23592  Adair might have lost five pounds, but not more.
23593  His fortune was a considerable one, and such a loss could not in any way
23594  affect him.
23595  He had played nearly every day at one club or other, but he was a cautious
23596  player, and usually rose a winner.
23597  It came out in evidence that, in partnership with Colonel Moran, he had
23598  actually won as much as four hundred and twenty pounds in a sitting, some
23599  weeks before, from Godfrey Milner and Lord Balmoral.
23600  So much for his recent history as it came out at the inquest.
23601 \end_layout
23602
23603 \end_inset
23604
23605
23606 \end_layout
23607
23608 \begin_layout Subsection
23609 応用例
23610 \end_layout
23611
23612 \begin_layout Standard
23613 本節の用例は,多段組のさらに特別な機能を示すためのものです.
23614 \end_layout
23615
23616 \begin_layout Standard
23617 多段組機能についてさらに知りたい場合には,\SpecialChar LaTeX
23618 パッケージ
23619 \series bold
23620 multicol
23621 \series default
23622
23623 \begin_inset CommandInset citation
23624 LatexCommand cite
23625 key "multicol"
23626 literal "true"
23627
23628 \end_inset
23629
23630 の取扱説明書をご覧ください.
23631 \end_layout
23632
23633 \begin_layout Subsubsection
23634 序文
23635 \end_layout
23636
23637 \begin_layout Standard
23638 多段組に序文を追記するには,カーソルを多段組差込枠内部に置き,
23639 \family sans
23640 挿入\SpecialChar menuseparator
23641 序文
23642 \family default
23643 メニューを使用してください.序文は,この差込枠内に書いてください.
23644 \begin_inset Newline newline
23645 \end_inset
23646
23647 序文のある文章の例を掲げます.
23648 \end_layout
23649
23650 \begin_layout Standard
23651 \begin_inset VSpace bigskip
23652 \end_inset
23653
23654
23655 \end_layout
23656
23657 \begin_layout Standard
23658 \begin_inset Flex Multiple Columns
23659 status open
23660
23661 \begin_layout Plain Layout
23662 \begin_inset Argument 2
23663 status open
23664
23665 \begin_layout Plain Layout
23666 And the story continues and continues and continues and continues\SpecialChar ldots
23667
23668 \end_layout
23669
23670 \end_inset
23671
23672
23673 \size small
23674 On the evening of the crime, he returned from the club exactly at ten.
23675  His mother and sister were out spending the evening with a relation.
23676  The servant deposed that she heard him enter the front room on the second
23677  floor, generally used as his sitting-room.
23678  She had lit a fire there, and as it smoked she had opened the window.
23679  No sound was heard from the room until eleven-twenty, the hour of the return
23680  of Lady Maynooth and her daughter.
23681  Desiring to say good-night, she attempted to enter her son's room.
23682  The door was locked on the inside, and no answer could be got to their
23683  cries and knocking.
23684  Help was obtained, and the door forced.
23685  The unfortunate young man was found lying near the table.
23686  His head had been horribly mutilated by an expanding revolver bullet, but
23687  no weapon of any sort was to be found in the room.
23688 \end_layout
23689
23690 \end_inset
23691
23692
23693 \end_layout
23694
23695 \begin_layout Standard
23696 最初の\SpecialChar TeX
23697 コードの後に,節宣言コマンドを\SpecialChar TeX
23698 コードとして使用すれば,節見出しを前書きとして使用することができます.例えば,
23699 \end_layout
23700
23701 \begin_layout Standard
23702
23703 \series bold
23704
23705 \backslash
23706 subsection{小節見出し}
23707 \end_layout
23708
23709 \begin_layout Standard
23710 というコマンドは,小節を生成します.以下の例では,前書きが小々節になっています.
23711 \end_layout
23712
23713 \begin_layout Standard
23714 \begin_inset Flex Multiple Columns
23715 status open
23716
23717 \begin_layout Plain Layout
23718 \begin_inset Argument 2
23719 status open
23720
23721 \begin_layout Plain Layout
23722 \begin_inset ERT
23723 status collapsed
23724
23725 \begin_layout Plain Layout
23726
23727
23728 \backslash
23729 subsubsection{
23730 \end_layout
23731
23732 \end_inset
23733
23734 これは序文の小々節見出しです
23735 \begin_inset ERT
23736 status collapsed
23737
23738 \begin_layout Plain Layout
23739
23740 }
23741 \end_layout
23742
23743 \end_inset
23744
23745
23746 \end_layout
23747
23748 \end_inset
23749
23750
23751 \size small
23752 A minute examination of the circumstances served only to make the case more
23753  complex.
23754  In the first place, no reason could be given why the young man should have
23755  fastened the door upon the inside.
23756  There was the possibility that the murderer had done this, and had afterwards
23757  escaped by the window.
23758  The drop was at least twenty feet, however, and a bed of crocuses in full
23759  bloom lay beneath.
23760  Neither the flowers nor the earth showed any sign of having been disturbed,
23761  nor were there any marks upon the narrow strip of grass which separated
23762  the house from the road.
23763  Apparently, therefore, it was the young man himself who had fastened the
23764  door.
23765  But how did he come by his death? No one could have climbed up to the window
23766  without leaving traces.
23767  Suppose a man had fired through the window, he would indeed be a remarkable
23768  shot who could with a revolver inflict so deadly a wound.
23769  Again, Park Lane is a frequented thoroughfare; there is a cab stand within
23770  a hundred yards of the house.
23771  No one had heard a shot.
23772 \end_layout
23773
23774 \end_inset
23775
23776
23777 \end_layout
23778
23779 \begin_layout Standard
23780 多段組を開始する部分に,必要とされる6行を確保出来るだけの垂直スペースがページに残されていない場合,多段組の前に改行が挿入されます.前書きの行数如何では,この必
23781 要行数を変更したいかもしれません.これは,カーソルを多段組差込枠内部の(もしあれば)序文の後に置き,
23782 \family sans
23783 挿入\SpecialChar menuseparator
23784 改頁前の余白
23785 \family default
23786 メニューを使用することで設定できます.この差込枠に,余白の大きさを「5cm」などと書き込んでください.
23787 \end_layout
23788
23789 \begin_layout Standard
23790 以下の例では,「7
23791 \backslash
23792 baselineskip」を用いて,必要行数を7行に指定しています(コマンド
23793 \series bold
23794
23795 \backslash
23796 baselineskip
23797 \series default
23798 は\SpecialChar TeX
23799 コードとして入力する必要があります).
23800 \end_layout
23801
23802 \begin_layout Standard
23803 \begin_inset Flex Multiple Columns
23804 status open
23805
23806 \begin_layout Plain Layout
23807 \begin_inset Argument 3
23808 status open
23809
23810 \begin_layout Plain Layout
23811 7
23812 \begin_inset ERT
23813 status collapsed
23814
23815 \begin_layout Plain Layout
23816
23817
23818 \backslash
23819 baselineskip
23820 \end_layout
23821
23822 \end_inset
23823
23824
23825 \end_layout
23826
23827 \end_inset
23828
23829
23830 \size small
23831 On the evening of the crime, he returned from the club exactly at ten.
23832  His mother and sister were out spending the evening with a relation.
23833  The servant deposed that she heard him enter the front room on the second
23834  floor, generally used as his sitting-room.
23835  She had lit a fire there, and as it smoked she had opened the window.
23836  No sound was heard from the room until eleven-twenty, the hour of the return
23837  of Lady Maynooth and her daughter.
23838  Desiring to say good-night, she attempted to enter her son's room.
23839  The door was locked on the inside, and no answer could be got to their
23840  cries and knocking.
23841  Help was obtained, and the door forced.
23842  The unfortunate young man was found lying near the table.
23843  His head had been horribly mutilated by an expanding revolver bullet, but
23844  no weapon of any sort was to be found in the room.
23845 \end_layout
23846
23847 \end_inset
23848
23849
23850 \end_layout
23851
23852 \begin_layout Subsubsection
23853 周囲の余白
23854 \end_layout
23855
23856 \begin_layout Standard
23857 多段組の前後の余白は,長さ
23858 \series bold
23859
23860 \backslash
23861 multicolsep
23862 \series default
23863 を変えることで変更することができます.例えば,\SpecialChar TeX
23864 コードで書かれたコマンド
23865 \end_layout
23866
23867 \begin_layout Standard
23868
23869 \series bold
23870
23871 \backslash
23872 setlength{
23873 \backslash
23874 multicolsep}{3cm}
23875 \end_layout
23876
23877 \begin_layout Standard
23878 は,その値を3
23879 \begin_inset space \thinspace{}
23880 \end_inset
23881
23882 cmに変更します.この変更は,多段組が始まる前に指定しなくてはなりません.既定値は13
23883 \begin_inset space \thinspace{}
23884 \end_inset
23885
23886 ptです.
23887 \end_layout
23888
23889 \begin_layout Standard
23890 以下の例では,
23891 \series bold
23892
23893 \backslash
23894 multicolsep
23895 \series default
23896 は2.5
23897 \begin_inset space \thinspace{}
23898 \end_inset
23899
23900 cmに指定されています.
23901 \end_layout
23902
23903 \begin_layout Standard
23904 \begin_inset ERT
23905 status open
23906
23907 \begin_layout Plain Layout
23908
23909
23910 \backslash
23911 setlength{
23912 \backslash
23913 multicolsep}{2.5cm}
23914 \end_layout
23915
23916 \end_inset
23917
23918
23919 \end_layout
23920
23921 \begin_layout Standard
23922 \begin_inset Flex Multiple Columns
23923 status open
23924
23925 \begin_layout Plain Layout
23926
23927 \size small
23928 All day I turned these facts over in my mind, endeavouring to hit upon some
23929  theory which could reconcile them all, and to find that line of least resistanc
23930 e which my poor friend had declared to be the starting-point of every investigat
23931 ion.
23932  I confess that I made little progress.
23933  In the evening I strolled across the Park, and found myself about six o'clock
23934  at the Oxford Street end of Park Lane.
23935  A group of loafers upon the pavements, all staring up at a particular window,
23936  directed me to the house which I had come to see.
23937  A tall, thin man with coloured glasses, whom I strongly suspected of being
23938  a plain-clothes detective, was pointing out some theory of his own, while
23939  the others crowded round to listen to what he said.
23940  I got as near him as I could, but his observations seemed to me to be absurd,
23941  so I withdrew again in some disgust.
23942  As I did so I struck against an elderly, deformed man, who had been behind
23943  me, and I knocked down several books which he was carrying.
23944 \end_layout
23945
23946 \end_inset
23947
23948
23949 \end_layout
23950
23951 \begin_layout Standard
23952 \begin_inset Note Greyedout
23953 status open
23954
23955 \begin_layout Plain Layout
23956
23957 \series bold
23958 【註】
23959 \backslash
23960 setlength
23961 \series default
23962 で指定した値は,再度変更されるまでは,以降のすべての多段組で使用されます.
23963 \end_layout
23964
23965 \end_inset
23966
23967
23968 \end_layout
23969
23970 \begin_layout Standard
23971 \begin_inset ERT
23972 status collapsed
23973
23974 \begin_layout Plain Layout
23975
23976
23977 \backslash
23978 setlength{
23979 \backslash
23980 multicolsep}{13pt}
23981 \end_layout
23982
23983 \end_inset
23984
23985
23986 \begin_inset Note Note
23987 status collapsed
23988
23989 \begin_layout Plain Layout
23990
23991 \lang english
23992 go back to the default
23993 \end_layout
23994
23995 \end_inset
23996
23997
23998 \end_layout
23999
24000 \begin_layout Standard
24001 \begin_inset Newpage newpage
24002 \end_inset
24003
24004
24005 \end_layout
24006
24007 \begin_layout Subsubsection
24008 改段
24009 \end_layout
24010
24011 \begin_layout Standard
24012 改段は,文章中の階段を行いたい位置に,\SpecialChar TeX
24013 コードで,コマンド
24014 \series bold
24015
24016 \backslash
24017 columnbreak{}
24018 \series default
24019 を挿入すれば,強制的に行うことができます.ただし,多くの場合,文章中に空白が挿入されることに注意してください.
24020 \begin_inset Newline newline
24021 \end_inset
24022
24023 以下が用例です.
24024 \end_layout
24025
24026 \begin_layout Standard
24027 \begin_inset Flex Multiple Columns
24028 status open
24029
24030 \begin_layout Plain Layout
24031
24032 \size small
24033 \begin_inset Quotes eld
24034 \end_inset
24035
24036 You're surprised to see me, sir,
24037 \begin_inset Quotes erd
24038 \end_inset
24039
24040  said he, in a strange, croaking voice.
24041 \end_layout
24042
24043 \begin_layout Plain Layout
24044
24045 \size small
24046 I acknowledged that I was.
24047 \end_layout
24048
24049 \begin_layout Plain Layout
24050
24051 \size small
24052 \begin_inset Quotes eld
24053 \end_inset
24054
24055 Well, I've a conscience, sir, and when I chanced to see you go into this
24056  house, as I came hobbling after you, I thought to myself, I'll just step
24057  in and see that kind gentleman, and tell him that if I was a bit gruff
24058  in my manner there was not any harm meant, and that I am much obliged to
24059  him for picking up my books.
24060 \begin_inset Quotes erd
24061 \end_inset
24062
24063
24064 \end_layout
24065
24066 \begin_layout Plain Layout
24067
24068 \size small
24069 \begin_inset Quotes eld
24070 \end_inset
24071
24072 You make too much of a trifle,
24073 \begin_inset Quotes erd
24074 \end_inset
24075
24076  said I.
24077  
24078 \begin_inset Quotes eld
24079 \end_inset
24080
24081 May I ask how you knew who I was?
24082 \begin_inset Quotes erd
24083 \end_inset
24084
24085  AFTER THIS SENTENCE THE COLUMN BREAK IS FORCED.
24086 \begin_inset ERT
24087 status collapsed
24088
24089 \begin_layout Plain Layout
24090
24091
24092 \backslash
24093 columnbreak{}
24094 \end_layout
24095
24096 \end_inset
24097
24098
24099 \end_layout
24100
24101 \begin_layout Plain Layout
24102
24103 \size small
24104 \begin_inset Quotes eld
24105 \end_inset
24106
24107 Well, sir, if it isn't too great a liberty, I am a neighbour of yours, for
24108  you'll find my little bookshop at the corner of Church Street, and very
24109  happy to see you, I am sure.
24110  Maybe you collect yourself, sir.
24111  Here's 
24112 \noun on
24113 British
24114 \begin_inset space ~
24115 \end_inset
24116
24117 Birds
24118 \noun default
24119 , and 
24120 \noun on
24121 Catullus
24122 \noun default
24123 , and 
24124 \noun on
24125 The Holy War
24126 \noun default
24127 –a bargain, every one of them.
24128  With five volumes you could just fill that gap on that second shelf.
24129  It looks untidy, does it not, sir?
24130 \begin_inset Quotes erd
24131 \end_inset
24132
24133
24134 \end_layout
24135
24136 \end_inset
24137
24138
24139 \end_layout
24140
24141 \begin_layout Subsubsection
24142 段間隔
24143 \end_layout
24144
24145 \begin_layout Standard
24146 段幅は自動的に計算されますが,段の間の余白は指定することができます.これは,長さ
24147 \series bold
24148
24149 \backslash
24150 columnsep
24151 \series default
24152 を変更することで実現できます.既定値は10
24153 \begin_inset space \thinspace{}
24154 \end_inset
24155
24156 ptです.以下は
24157 \series bold
24158
24159 \backslash
24160 columnsep
24161 \series default
24162 を3
24163 \begin_inset space \thinspace{}
24164 \end_inset
24165
24166 cmに設定した例です.
24167 \end_layout
24168
24169 \begin_layout Standard
24170 \begin_inset ERT
24171 status open
24172
24173 \begin_layout Plain Layout
24174
24175
24176 \backslash
24177 setlength{
24178 \backslash
24179 columnsep}{3cm}
24180 \end_layout
24181
24182 \end_inset
24183
24184
24185 \end_layout
24186
24187 \begin_layout Standard
24188 \begin_inset Flex Multiple Columns
24189 status open
24190
24191 \begin_layout Plain Layout
24192
24193 \size small
24194 My observations of No.
24195 \begin_inset space \space{}
24196 \end_inset
24197
24198 427 Park Lane did little to clear up the problem in which I was interested.
24199  The house was separated from the street by a low wall and railing, the
24200  whole not more than five feet high.
24201  It was perfectly easy, therefore, for anyone to get into the garden, but
24202  the window was entirely inaccessible, since there was no water pipe or
24203  anything which could help the most active man to climb it.
24204  More puzzled than ever, I retraced my steps to Kensington.
24205  I had not been in my study five minutes when the maid entered to say that
24206  a person desired to see me.
24207  To my astonishment it was none other than my strange old book collector,
24208  his sharp, wizened face peering out from a frame of white hair, and his
24209  precious volumes, a dozen of them at least, wedged under his right arm.
24210 \end_layout
24211
24212 \end_inset
24213
24214
24215 \end_layout
24216
24217 \begin_layout Standard
24218 \begin_inset ERT
24219 status collapsed
24220
24221 \begin_layout Plain Layout
24222
24223
24224 \backslash
24225 setlength{
24226 \backslash
24227 columnsep}{10pt}
24228 \end_layout
24229
24230 \end_inset
24231
24232
24233 \begin_inset Note Note
24234 status collapsed
24235
24236 \begin_layout Plain Layout
24237
24238 \lang english
24239 go back to the default
24240 \end_layout
24241
24242 \end_inset
24243
24244
24245 \end_layout
24246
24247 \begin_layout Subsubsection
24248 垂直線
24249 \end_layout
24250
24251 \begin_layout Standard
24252 段間には,長さ
24253 \series bold
24254
24255 \backslash
24256 columnseprule
24257 \series default
24258 の幅を持つ罫線が描かれます.罫線幅を0
24259 \begin_inset space \thinspace{}
24260 \end_inset
24261
24262 ptにすると(これが既定値です),罫線は出力されません.以下の例では,段を分かつ線は2
24263 \begin_inset space \thinspace{}
24264 \end_inset
24265
24266 pt幅に設定されています.
24267 \end_layout
24268
24269 \begin_layout Standard
24270 \begin_inset ERT
24271 status open
24272
24273 \begin_layout Plain Layout
24274
24275
24276 \backslash
24277 setlength{
24278 \backslash
24279 columnseprule}{2pt}
24280 \end_layout
24281
24282 \end_inset
24283
24284
24285 \end_layout
24286
24287 \begin_layout Standard
24288 \begin_inset Flex Multiple Columns
24289 status open
24290
24291 \begin_layout Plain Layout
24292
24293 \size small
24294 \begin_inset Quotes eld
24295 \end_inset
24296
24297 You're surprised to see me, sir,
24298 \begin_inset Quotes erd
24299 \end_inset
24300
24301  said he, in a strange, croaking voice.
24302 \end_layout
24303
24304 \begin_layout Plain Layout
24305
24306 \size small
24307 I acknowledged that I was.
24308 \end_layout
24309
24310 \begin_layout Plain Layout
24311
24312 \size small
24313 \begin_inset Quotes eld
24314 \end_inset
24315
24316 Well, I've a conscience, sir, and when I chanced to see you go into this
24317  house, as I came hobbling after you, I thought to myself, I'll just step
24318  in and see that kind gentleman, and tell him that if I was a bit gruff
24319  in my manner there was not any harm meant, and that I am much obliged to
24320  him for picking up my books.
24321 \begin_inset Quotes erd
24322 \end_inset
24323
24324
24325 \end_layout
24326
24327 \begin_layout Plain Layout
24328
24329 \size small
24330 \begin_inset Quotes eld
24331 \end_inset
24332
24333 You make too much of a trifle,
24334 \begin_inset Quotes erd
24335 \end_inset
24336
24337  said I.
24338  
24339 \begin_inset Quotes eld
24340 \end_inset
24341
24342 May I ask how you knew who I was?
24343 \begin_inset Quotes erd
24344 \end_inset
24345
24346
24347 \end_layout
24348
24349 \begin_layout Plain Layout
24350
24351 \size small
24352 \begin_inset Quotes eld
24353 \end_inset
24354
24355 Well, sir, if it isn't too great a liberty, I am a neighbour of yours, for
24356  you'll find my little bookshop at the corner of Church Street, and very
24357  happy to see you, I am sure.
24358  Maybe you collect yourself, sir.
24359  Here's 
24360 \noun on
24361 British
24362 \begin_inset space ~
24363 \end_inset
24364
24365 Birds
24366 \noun default
24367 , and 
24368 \noun on
24369 Catullus
24370 \noun default
24371 , and 
24372 \noun on
24373 The Holy War
24374 \noun default
24375 –a bargain, every one of them.
24376  With five volumes you could just fill that gap on that second shelf.
24377  It looks untidy, does it not, sir?
24378 \begin_inset Quotes erd
24379 \end_inset
24380
24381
24382 \end_layout
24383
24384 \end_inset
24385
24386
24387 \end_layout
24388
24389 \begin_layout Standard
24390 \begin_inset VSpace defskip
24391 \end_inset
24392
24393
24394 \end_layout
24395
24396 \begin_layout Standard
24397 罫線は,コマンド
24398 \series bold
24399
24400 \backslash
24401 columnseprulecolor
24402 \series default
24403 を再定義すれば,着色することができます.これは,多段組差込枠の前に\SpecialChar TeX
24404 コードで以下のコマンドを挿入すれば,実現できます.
24405 \begin_inset Newline newline
24406 \end_inset
24407
24408
24409 \series bold
24410
24411 \backslash
24412 renewcommand{
24413 \backslash
24414 columnseprulecolor}{
24415 \backslash
24416 color{red}}
24417 \series default
24418
24419 \begin_inset Newline newline
24420 \end_inset
24421
24422 このコマンド中の
24423 \series bold
24424 red
24425 \series default
24426 をお好みの色に変更してください.既定色とユーザー定義色の全てを使用することができます.既定色とユーザー定義色についての詳細な情報は,取扱説明書『
24427 \emph on
24428 埋込オブジェクト篇
24429 \emph default
24430 』の「
24431 \emph on
24432 色付き表
24433 \emph default
24434 」の節をご覧ください.既定色に戻すには,以下のコマンドを挿入してください.
24435 \begin_inset Newline newline
24436 \end_inset
24437
24438
24439 \series bold
24440
24441 \backslash
24442 renewcommand{
24443 \backslash
24444 columnseprulecolor}{
24445 \backslash
24446 normalcolor}
24447 \series default
24448
24449 \begin_inset Newline newline
24450 \end_inset
24451
24452 以下は,シアン色の罫線と1
24453 \begin_inset space \thinspace{}
24454 \end_inset
24455
24456 cmの段間隔を持つ例です.
24457 \end_layout
24458
24459 \begin_layout Standard
24460 \begin_inset ERT
24461 status open
24462
24463 \begin_layout Plain Layout
24464
24465
24466 \backslash
24467 setlength{
24468 \backslash
24469 columnsep}{1cm}
24470 \end_layout
24471
24472 \begin_layout Plain Layout
24473
24474
24475 \backslash
24476 renewcommand{
24477 \backslash
24478 columnseprulecolor}{
24479 \backslash
24480 color{cyan}}
24481 \end_layout
24482
24483 \end_inset
24484
24485
24486 \end_layout
24487
24488 \begin_layout Standard
24489 \begin_inset Flex Multiple Columns
24490 status open
24491
24492 \begin_layout Plain Layout
24493
24494 \size small
24495 \begin_inset Quotes eld
24496 \end_inset
24497
24498 You're surprised to see me, sir,
24499 \begin_inset Quotes erd
24500 \end_inset
24501
24502  said he, in a strange, croaking voice.
24503 \end_layout
24504
24505 \begin_layout Plain Layout
24506
24507 \size small
24508 I acknowledged that I was.
24509 \end_layout
24510
24511 \begin_layout Plain Layout
24512
24513 \size small
24514 \begin_inset Quotes eld
24515 \end_inset
24516
24517 Well, I've a conscience, sir, and when I chanced to see you go into this
24518  house, as I came hobbling after you, I thought to myself, I'll just step
24519  in and see that kind gentleman, and tell him that if I was a bit gruff
24520  in my manner there was not any harm meant, and that I am much obliged to
24521  him for picking up my books.
24522 \begin_inset Quotes erd
24523 \end_inset
24524
24525
24526 \end_layout
24527
24528 \begin_layout Plain Layout
24529
24530 \size small
24531 \begin_inset Quotes eld
24532 \end_inset
24533
24534 You make too much of a trifle,
24535 \begin_inset Quotes erd
24536 \end_inset
24537
24538  said I.
24539  
24540 \begin_inset Quotes eld
24541 \end_inset
24542
24543 May I ask how you knew who I was?
24544 \begin_inset Quotes erd
24545 \end_inset
24546
24547
24548 \end_layout
24549
24550 \begin_layout Plain Layout
24551
24552 \size small
24553 \begin_inset Quotes eld
24554 \end_inset
24555
24556 Well, sir, if it isn't too great a liberty, I am a neighbour of yours, for
24557  you'll find my little bookshop at the corner of Church Street, and very
24558  happy to see you, I am sure.
24559  Maybe you collect yourself, sir.
24560  Here's 
24561 \noun on
24562 British
24563 \begin_inset space ~
24564 \end_inset
24565
24566 Birds
24567 \noun default
24568 , and 
24569 \noun on
24570 Catullus
24571 \noun default
24572 , and 
24573 \noun on
24574 The Holy War
24575 \noun default
24576 –a bargain, every one of them.
24577  With five volumes you could just fill that gap on that second shelf.
24578  It looks untidy, does it not, sir?
24579 \begin_inset Quotes erd
24580 \end_inset
24581
24582
24583 \end_layout
24584
24585 \end_inset
24586
24587
24588 \end_layout
24589
24590 \begin_layout Standard
24591 \begin_inset ERT
24592 status collapsed
24593
24594 \begin_layout Plain Layout
24595
24596
24597 \backslash
24598 setlength{
24599 \backslash
24600 columnseprule}{0pt}
24601 \end_layout
24602
24603 \begin_layout Plain Layout
24604
24605
24606 \backslash
24607 renewcommand{
24608 \backslash
24609 columnseprulecolor}{
24610 \backslash
24611 normalcolor}
24612 \end_layout
24613
24614 \end_inset
24615
24616
24617 \begin_inset Note Note
24618 status collapsed
24619
24620 \begin_layout Plain Layout
24621
24622 \lang english
24623 go back to the default
24624 \end_layout
24625
24626 \end_inset
24627
24628
24629 \end_layout
24630
24631 \begin_layout Standard
24632 \begin_inset Newpage newpage
24633 \end_inset
24634
24635
24636 \end_layout
24637
24638 \begin_layout Section
24639 標準的でない形の段落
24640 \end_layout
24641
24642 \begin_layout Standard
24643 \noindent
24644 \SpecialChar LaTeX
24645 は,他のテキストプロセッサと同様に,既定で長方形の段落を使用します.しかし,例えば,ポスターや招待状,詩などの特殊な場合には,段落の形を好きなように変えることが
24646 できます.これは,文書設定で
24647 \family sans
24648 任意設定の段落形
24649 \family default
24650 モジュールを読み込んで,\SpecialChar LaTeX
24651 パッケージ
24652 \series bold
24653 shapepar
24654 \series default
24655 を使用させるようにすれば,実現できます.
24656 \end_layout
24657
24658 \begin_layout Subsection
24659 既定の形
24660 \end_layout
24661
24662 \begin_layout Standard
24663
24664 \series bold
24665 shapepar
24666 \series default
24667 は,以下の形を提供しています.
24668 \end_layout
24669
24670 \begin_layout Standard
24671 \begin_inset Tabular
24672 <lyxtabular version="3" rows="13" columns="3">
24673 <features booktabs="true" islongtable="true" longtabularalignment="center">
24674 <column alignment="center" valignment="middle" width="16col%">
24675 <column alignment="center" valignment="middle" width="40col%">
24676 <column alignment="center" valignment="middle" width="35col%">
24677 <row endhead="true">
24678 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
24679 \begin_inset Text
24680
24681 \begin_layout Plain Layout
24682 名称
24683 \end_layout
24684
24685 \end_inset
24686 </cell>
24687 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
24688 \begin_inset Text
24689
24690 \begin_layout Plain Layout
24691 説明
24692 \end_layout
24693
24694 \end_inset
24695 </cell>
24696 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
24697 \begin_inset Text
24698
24699 \begin_layout Plain Layout
24700 備考
24701 \end_layout
24702
24703 \end_inset
24704 </cell>
24705 </row>
24706 <row>
24707 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24708 \begin_inset Text
24709
24710 \begin_layout Plain Layout
24711 CDlabel
24712 \end_layout
24713
24714 \end_inset
24715 </cell>
24716 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24717 \begin_inset Text
24718
24719 \begin_layout Plain Layout
24720 丸い穴の開いたドーナツ型(CD/DVD大)
24721 \end_layout
24722
24723 \end_inset
24724 </cell>
24725 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24726 \begin_inset Text
24727
24728 \begin_layout Plain Layout
24729 伸縮不可.多くの文字を入れられないことに注意.
24730 \end_layout
24731
24732 \end_inset
24733 </cell>
24734 </row>
24735 <row>
24736 <cell alignment="center" valignment="top" topline="true" usebox="none">
24737 \begin_inset Text
24738
24739 \begin_layout Plain Layout
24740 Circle
24741 \end_layout
24742
24743 \end_inset
24744 </cell>
24745 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24746 \begin_inset Text
24747
24748 \begin_layout Plain Layout
24749
24750 \end_layout
24751
24752 \end_inset
24753 </cell>
24754 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24755 \begin_inset Text
24756
24757 \begin_layout Plain Layout
24758 脆弱.計算に失敗することも.
24759 \end_layout
24760
24761 \end_inset
24762 </cell>
24763 </row>
24764 <row>
24765 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24766 \begin_inset Text
24767
24768 \begin_layout Plain Layout
24769 Diamond
24770 \end_layout
24771
24772 \end_inset
24773 </cell>
24774 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24775 \begin_inset Text
24776
24777 \begin_layout Plain Layout
24778 菱形(シンボル的に
24779 \begin_inset Quotes eld
24780 \end_inset
24781
24782 diamond
24783 \begin_inset Quotes erd
24784 \end_inset
24785
24786 と表記)
24787 \end_layout
24788
24789 \end_inset
24790 </cell>
24791 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24792 \begin_inset Text
24793
24794 \begin_layout Plain Layout
24795 -
24796 \end_layout
24797
24798 \end_inset
24799 </cell>
24800 </row>
24801 <row>
24802 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24803 \begin_inset Text
24804
24805 \begin_layout Plain Layout
24806 Heart
24807 \end_layout
24808
24809 \end_inset
24810 </cell>
24811 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24812 \begin_inset Text
24813
24814 \begin_layout Plain Layout
24815 ハート型
24816 \end_layout
24817
24818 \end_inset
24819 </cell>
24820 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24821 \begin_inset Text
24822
24823 \begin_layout Plain Layout
24824 -
24825 \end_layout
24826
24827 \end_inset
24828 </cell>
24829 </row>
24830 <row>
24831 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24832 \begin_inset Text
24833
24834 \begin_layout Plain Layout
24835 Hexagon
24836 \end_layout
24837
24838 \end_inset
24839 </cell>
24840 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24841 \begin_inset Text
24842
24843 \begin_layout Plain Layout
24844 六角形
24845 \end_layout
24846
24847 \end_inset
24848 </cell>
24849 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24850 \begin_inset Text
24851
24852 \begin_layout Plain Layout
24853 -
24854 \end_layout
24855
24856 \end_inset
24857 </cell>
24858 </row>
24859 <row>
24860 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24861 \begin_inset Text
24862
24863 \begin_layout Plain Layout
24864 Nut
24865 \end_layout
24866
24867 \end_inset
24868 </cell>
24869 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24870 \begin_inset Text
24871
24872 \begin_layout Plain Layout
24873 ナット型(丸い穴の開いた六角形)
24874 \end_layout
24875
24876 \end_inset
24877 </cell>
24878 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24879 \begin_inset Text
24880
24881 \begin_layout Plain Layout
24882 -
24883 \end_layout
24884
24885 \end_inset
24886 </cell>
24887 </row>
24888 <row>
24889 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24890 \begin_inset Text
24891
24892 \begin_layout Plain Layout
24893 Square
24894 \end_layout
24895
24896 \end_inset
24897 </cell>
24898 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24899 \begin_inset Text
24900
24901 \begin_layout Plain Layout
24902 正方形
24903 \end_layout
24904
24905 \end_inset
24906 </cell>
24907 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24908 \begin_inset Text
24909
24910 \begin_layout Plain Layout
24911 -
24912 \end_layout
24913
24914 \end_inset
24915 </cell>
24916 </row>
24917 <row>
24918 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
24919 \begin_inset Text
24920
24921 \begin_layout Plain Layout
24922 Star
24923 \end_layout
24924
24925 \end_inset
24926 </cell>
24927 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
24928 \begin_inset Text
24929
24930 \begin_layout Plain Layout
24931 五芒星
24932 \end_layout
24933
24934 \end_inset
24935 </cell>
24936 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
24937 \begin_inset Text
24938
24939 \begin_layout Plain Layout
24940 -
24941 \end_layout
24942
24943 \end_inset
24944 </cell>
24945 </row>
24946 <row>
24947 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24948 \begin_inset Text
24949
24950 \begin_layout Plain Layout
24951 Candle
24952 \end_layout
24953
24954 \end_inset
24955 </cell>
24956 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24957 \begin_inset Text
24958
24959 \begin_layout Plain Layout
24960 燃えるろうそく
24961 \end_layout
24962
24963 \end_inset
24964 </cell>
24965 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24966 \begin_inset Text
24967
24968 \begin_layout Plain Layout
24969 -
24970 \end_layout
24971
24972 \end_inset
24973 </cell>
24974 </row>
24975 <row>
24976 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24977 \begin_inset Text
24978
24979 \begin_layout Plain Layout
24980 Drop down/up
24981 \end_layout
24982
24983 \end_inset
24984 </cell>
24985 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24986 \begin_inset Text
24987
24988 \begin_layout Plain Layout
24989 雫型/逆雫型
24990 \end_layout
24991
24992 \end_inset
24993 </cell>
24994 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24995 \begin_inset Text
24996
24997 \begin_layout Plain Layout
24998 脆弱.計算に失敗することも.
24999 \end_layout
25000
25001 \end_inset
25002 </cell>
25003 </row>
25004 <row>
25005 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25006 \begin_inset Text
25007
25008 \begin_layout Plain Layout
25009 \SpecialChar TeX
25010
25011 \end_layout
25012
25013 \end_inset
25014 </cell>
25015 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25016 \begin_inset Text
25017
25018 \begin_layout Plain Layout
25019 \SpecialChar TeX
25020 ロゴ
25021 \end_layout
25022
25023 \end_inset
25024 </cell>
25025 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25026 \begin_inset Text
25027
25028 \begin_layout Plain Layout
25029 -
25030 \end_layout
25031
25032 \end_inset
25033 </cell>
25034 </row>
25035 <row>
25036 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
25037 \begin_inset Text
25038
25039 \begin_layout Plain Layout
25040 Triangle up/down/
25041 \begin_inset Newline newline
25042 \end_inset
25043
25044 left/right
25045 \end_layout
25046
25047 \end_inset
25048 </cell>
25049 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
25050 \begin_inset Text
25051
25052 \begin_layout Plain Layout
25053 各方向の三角形
25054 \end_layout
25055
25056 \end_inset
25057 </cell>
25058 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
25059 \begin_inset Text
25060
25061 \begin_layout Plain Layout
25062 -
25063 \end_layout
25064
25065 \end_inset
25066 </cell>
25067 </row>
25068 </lyxtabular>
25069
25070 \end_inset
25071
25072
25073 \end_layout
25074
25075 \begin_layout Standard
25076 段落に形を適用するには,\SpecialChar LyX
25077 ツールバー中の環境プルダウンボックスから形を選んでください.
25078 \end_layout
25079
25080 \begin_layout Standard
25081 \begin_inset Newpage newpage
25082 \end_inset
25083
25084
25085 \end_layout
25086
25087 \begin_layout Standard
25088 以下は,ナット型の段落の例です.
25089 \end_layout
25090
25091 \begin_layout Standard
25092 \begin_inset VSpace bigskip
25093 \end_inset
25094
25095
25096 \end_layout
25097
25098 \begin_layout Nut
25099
25100 \lang latin
25101 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
25102  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
25103  voluptua.
25104  At vero eos et accusam et justo duo dolores et ea rebum.
25105  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
25106  sit amet.
25107  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
25108  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
25109  voluptua.
25110 \end_layout
25111
25112 \begin_layout Standard
25113 \begin_inset VSpace bigskip
25114 \end_inset
25115
25116
25117 \end_layout
25118
25119 \begin_layout Standard
25120 \begin_inset Note Greyedout
25121 status open
25122
25123 \begin_layout Plain Layout
25124
25125 \series bold
25126 【註】
25127 \series default
25128 shapepar段落は改頁にまたがることはできません.
25129 \end_layout
25130
25131 \end_inset
25132
25133
25134 \end_layout
25135
25136 \begin_layout Standard
25137 \begin_inset VSpace bigskip
25138 \end_inset
25139
25140
25141 \end_layout
25142
25143 \begin_layout Standard
25144
25145 \series bold
25146 shapepar
25147 \series default
25148 は,段落中にどれだけ文章が含まれようとも,常に形を維持しようとします.したがって,段落の大きさは,含まれている文章量によって変化しますので,段落の大きさがページ
25149 余白にはみ出してしまうことがあります.寸法が伸縮することを示すために,文章量を二倍にした例を見てみましょう.
25150 \end_layout
25151
25152 \begin_layout Standard
25153 \begin_inset Newpage newpage
25154 \end_inset
25155
25156
25157 \end_layout
25158
25159 \begin_layout Nut
25160
25161 \lang latin
25162 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
25163  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
25164  voluptua.
25165  At vero eos et accusam et justo duo dolores et ea rebum.
25166  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
25167  sit amet.
25168  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
25169  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
25170  voluptua.
25171  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
25172  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
25173  voluptua.
25174  At vero eos et accusam et justo duo dolores et ea rebum.
25175  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
25176  sit amet.
25177  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
25178  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
25179  voluptua.
25180 \end_layout
25181
25182 \begin_layout Standard
25183 \begin_inset VSpace bigskip
25184 \end_inset
25185
25186
25187 \end_layout
25188
25189 \begin_layout Standard
25190 ただし,
25191 \family sans
25192 CDlabel
25193 \family default
25194 形は例外です.これは,CD/DVDの寸法に収まらなくてはならないので,伸縮しません.したがって,形に収まる文章量は限られています.
25195 \begin_inset Newline newline
25196 \end_inset
25197
25198
25199 \family sans
25200 drop
25201 \family default
25202 形と
25203 \family sans
25204 circle
25205 \family default
25206 形は脆弱で,文章量によっては寸法計算が失敗する可能性があります.この場合,
25207 \begin_inset Quotes eld
25208 \end_inset
25209
25210 Arithmetic overflow
25211 \begin_inset Quotes erd
25212 \end_inset
25213
25214 という\SpecialChar LaTeX
25215 エラーが発生します.この時は,文章の一部を追加したり削除したりするか,どれもうまくいかなければ別の形を使用してください.
25216 \end_layout
25217
25218 \begin_layout Standard
25219 \begin_inset VSpace bigskip
25220 \end_inset
25221
25222
25223 \end_layout
25224
25225 \begin_layout Standard
25226 先端のある形では,先端部の文字列で,\SpecialChar LaTeX
25227 のハイフネーションルーチンが失敗することがあります.したがって,この部分の文章には,ハイフネーション位置
25228 \family sans
25229 (
25230 \begin_inset Info
25231 type  "shortcut"
25232 arg   "specialchar-insert hyphenation"
25233 \end_inset
25234
25235
25236 \family default
25237 )を指定することが往々にして必要になります.
25238 \end_layout
25239
25240 \begin_layout Standard
25241 \begin_inset VSpace bigskip
25242 \end_inset
25243
25244
25245 \end_layout
25246
25247 \begin_layout Standard
25248 Shapepar段落は,常に中央揃えか,左の縁が左ページ余白に接するように配置されます.したがって,これらの段落を揃えるのに段落ダイアログを使用することはできま
25249 せん.解決方法としては,段落をミニページかparboxの中において,このボックスを揃えることです.ここでの問題は,ボックスの正しい幅を見出すことです.もしボック
25250 スの幅が広すぎれば,ボックスを中央揃えにしたとしても,ボックスの左側が付いてしまうので中央揃えになりません.そこで,正しい幅を見出すまでは,若干試行錯誤しなくて
25251 はならないかもしれません.以下は,二つのハート形の段落です.一つ目は揃え指定がなく,二つ目は右揃えにしてあります.
25252 \end_layout
25253
25254 \begin_layout Standard
25255 \begin_inset Newpage newpage
25256 \end_inset
25257
25258
25259 \end_layout
25260
25261 \begin_layout Heart
25262 \noindent
25263
25264 \lang latin
25265 Lo\SpecialChar softhyphen
25266 rem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
25267  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
25268  voluptua.
25269  At vero eos et accusam et justo duo dolores et ea rebum.
25270  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
25271  sit amet.
25272 \end_layout
25273
25274 \begin_layout Standard
25275 \begin_inset VSpace bigskip
25276 \end_inset
25277
25278
25279 \end_layout
25280
25281 \begin_layout Standard
25282 \noindent
25283 \align right
25284 \begin_inset Box Frameless
25285 position "t"
25286 hor_pos "c"
25287 has_inner_box 1
25288 inner_pos "t"
25289 use_parbox 1
25290 use_makebox 0
25291 width "42col%"
25292 special "none"
25293 height "1in"
25294 height_special "totalheight"
25295 thickness "0.4pt"
25296 separation "3pt"
25297 shadowsize "4pt"
25298 framecolor "black"
25299 backgroundcolor "none"
25300 status open
25301
25302 \begin_layout Heart
25303 \noindent
25304
25305 \lang latin
25306 Lo\SpecialChar softhyphen
25307 rem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
25308  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
25309  voluptua.
25310  At vero eos et accusam et justo duo dolores et ea rebum.
25311  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
25312  sit amet.
25313 \end_layout
25314
25315 \end_inset
25316
25317
25318 \end_layout
25319
25320 \begin_layout Subsection
25321 任意の形
25322 \end_layout
25323
25324 \begin_layout Standard
25325 ユーザーは,どのような形であれ,定義することができます.これを手動で行うのは,全ての座標を指定しなくてはならないので,かなりの労力を必要とします.しかし,以下の
25326 ように,コンピューターに座標を計算させる方法もあります.
25327 \end_layout
25328
25329 \begin_layout Enumerate
25330 プログラム
25331 \begin_inset CommandInset href
25332 LatexCommand href
25333 name "Jpgfdraw"
25334 target "http://www.ctan.org/tex-archive/graphics/jpgfdraw"
25335 literal "false"
25336
25337 \end_inset
25338
25339 を導入します.
25340 \end_layout
25341
25342 \begin_layout Enumerate
25343
25344 \family sans
25345 Jpgfdraw
25346 \family default
25347 内で,メニュー
25348 \family sans
25349 TeX/LaTeX\SpecialChar menuseparator
25350 Settings\SpecialChar menuseparator
25351 Set Normal Size
25352 \family default
25353 で文書中で使用しているフォント寸を選択します.例えば,この文書は12
25354 \begin_inset space \thinspace{}
25355 \end_inset
25356
25357 pt寸を使用しています.
25358 \end_layout
25359
25360 \begin_layout Enumerate
25361 形を描きます.
25362 \end_layout
25363
25364 \begin_layout Enumerate
25365 メニュー
25366 \family sans
25367 TeX/LaTeX\SpecialChar menuseparator
25368 Shapepar
25369 \family default
25370 を使用して,形の座標をエクスポートします.現れるダイアログで,形の外枠を座標に使うか,パス自体を使うかを指定します.
25371 \begin_inset Foot
25372 status collapsed
25373
25374 \begin_layout Plain Layout
25375 詳細については,
25376 \begin_inset CommandInset href
25377 LatexCommand href
25378 target "http://www.dickimaw-books.com/apps/jpgfdraw/manual/shapepar.html"
25379 literal "false"
25380
25381 \end_inset
25382
25383 を参照してください.
25384 \end_layout
25385
25386 \end_inset
25387
25388
25389 \end_layout
25390
25391 \begin_layout Standard
25392 座標は\SpecialChar TeX
25393 ファイルに書き込まれます.これを\SpecialChar LyX
25394 文書で使用するには,
25395 \end_layout
25396
25397 \begin_layout Enumerate
25398 段落の最初の文字の前(もしくは空の段落内)にカーソルを置きます.
25399 \end_layout
25400
25401 \begin_layout Enumerate
25402 \SpecialChar LyX
25403
25404 \family sans
25405 挿入\SpecialChar menuseparator
25406 ファイル\SpecialChar menuseparator
25407 子文書
25408 \family default
25409 メニューでファイルを選択し,
25410 \family sans
25411 取り込みの型
25412 \family default
25413 として
25414 \family sans
25415 Input
25416 \family default
25417 を選択してください.
25418 \end_layout
25419
25420 \begin_layout Standard
25421 \begin_inset VSpace defskip
25422 \end_inset
25423
25424
25425 \end_layout
25426
25427 \begin_layout Standard
25428 \begin_inset Note Greyedout
25429 status open
25430
25431 \begin_layout Plain Layout
25432
25433 \series bold
25434 【註】
25435 \series default
25436 変更した形は,現在の段落にのみ適用されます.次の段落では全て通常に戻ります.したがって,段落定義ファイルは,形を変えたい段落全てで読み込まれなくてはなりません.
25437 \end_layout
25438
25439 \end_inset
25440
25441
25442 \end_layout
25443
25444 \begin_layout Standard
25445 \begin_inset VSpace bigskip
25446 \end_inset
25447
25448
25449 \end_layout
25450
25451 \begin_layout Standard
25452 以下の用例をご覧ください.
25453 \end_layout
25454
25455 \begin_layout Standard
25456 \begin_inset VSpace bigskip
25457 \end_inset
25458
25459
25460 \end_layout
25461
25462 \begin_layout Standard
25463 \begin_inset CommandInset include
25464 LatexCommand input
25465 filename "../SpecialParagraphShape.tex"
25466
25467 \end_inset
25468
25469
25470 \lang latin
25471 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
25472  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
25473  voluptua.
25474  At vero eos et accusam et justo duo dolores et ea rebum.
25475  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
25476  sit amet.
25477  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
25478  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
25479  voluptua.
25480 \end_layout
25481
25482 \begin_layout Standard
25483 \begin_inset VSpace bigskip
25484 \end_inset
25485
25486
25487 \end_layout
25488
25489 \begin_layout Standard
25490
25491 \series bold
25492 【ヒント】
25493 \family sans
25494 \series default
25495 Jpgfdraw
25496 \family default
25497 で複雑な形を描く場合,まず形を好きなプログラムで描き,出来上がった画像を
25498 \family sans
25499 Jpgfdraw
25500 \family default
25501 に読み込む方法があります.この場合,画像の外枠に沿って,直線またはスプラインを描くだけですみます.
25502 \end_layout
25503
25504 \begin_layout Standard
25505 \begin_inset VSpace bigskip
25506 \end_inset
25507
25508
25509 \end_layout
25510
25511 \begin_layout Standard
25512
25513 \family sans
25514 任意の段落形
25515 \family default
25516 モジュールは,
25517 \family sans
25518 shapepar
25519 \family default
25520
25521 \family sans
25522 Shapepar
25523 \family default
25524 の二つのコマンドも提供していて,任意の形を座標毎に定義するのに使用することができます.
25525 \begin_inset Foot
25526 status collapsed
25527
25528 \begin_layout Plain Layout
25529 これらのコマンドは,上述の全ての形で内部的に使用されています.
25530 \end_layout
25531
25532 \end_inset
25533
25534 これらのスタイルがどのように使われていて,どのような設定ができるのかについての詳しい情報は,
25535 \series bold
25536 shapepar
25537 \series default
25538 パッケージの取扱説明書
25539 \begin_inset CommandInset citation
25540 LatexCommand cite
25541 key "shapepar"
25542 literal "true"
25543
25544 \end_inset
25545
25546 をご覧ください.
25547 \end_layout
25548
25549 \begin_layout Bibliography
25550 \begin_inset CommandInset bibitem
25551 LatexCommand bibitem
25552 key "multicol"
25553 literal "true"
25554
25555 \end_inset
25556
25557 \SpecialChar LaTeX
25558 パッケージ
25559 \begin_inset CommandInset href
25560 LatexCommand href
25561 name "multicol"
25562 target "http://mirror.ctan.org/macros/latex/required/tools/multicol.pdf"
25563 literal "false"
25564
25565 \end_inset
25566
25567 の取扱説明書
25568 \end_layout
25569
25570 \begin_layout Bibliography
25571 \begin_inset CommandInset bibitem
25572 LatexCommand bibitem
25573 key "shapepar"
25574 literal "true"
25575
25576 \end_inset
25577
25578 \SpecialChar LaTeX
25579 パッケージ
25580 \begin_inset CommandInset href
25581 LatexCommand href
25582 name "shapepar"
25583 target "http://mirrors.ctan.org/macros/latex/contrib/shapepar/shapepar.pdf"
25584 literal "false"
25585
25586 \end_inset
25587
25588 の取扱説明書
25589 \end_layout
25590
25591 \end_body
25592 \end_document