]> git.lyx.org Git - lyx.git/blob - lib/doc/ja/Additional.lyx
Copy the recent Additiona.lyx changes wrt forward/reverse search to the localized...
[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.
183 \change_deleted 34634807 1499890737
184 2
185 \change_inserted 34634807 1499890737
186 3
187 \change_unchanged
188 .x版
189 \end_layout
190
191 \begin_layout Author
192 \SpecialChar LyX
193 プロジェクトチーム
194 \begin_inset Foot
195 status collapsed
196
197 \begin_layout Plain Layout
198 このファイルは主にRichard Heckによって管理されています.コメントをされたい場合や誤りを発見された場合には,\SpecialChar LyX
199 文書化メーリングリスト
200 \begin_inset Flex Code
201 status open
202
203 \begin_layout Plain Layout
204 \noindent
205
206 \family typewriter
207 <lyx-docs@lists.lyx.org>
208 \end_layout
209
210 \end_inset
211
212 に英文にてお知らせ下さい.この文書の翻訳は,当初人見光太郎氏が行った貢献に基づいています.
213 \end_layout
214
215 \end_inset
216
217  
218 \end_layout
219
220 \begin_layout Standard
221 \begin_inset CommandInset toc
222 LatexCommand tableofcontents
223
224 \end_inset
225
226
227 \end_layout
228
229 \begin_layout Chapter
230 はじめに
231 \end_layout
232
233 \begin_layout Standard
234 いまお読みの取扱説明書『
235 \emph on
236 \SpecialChar LyX
237 拡張機能篇
238 \emph default
239 』は,基本的には『
240 \emph on
241 ユーザーの手引き
242 \emph default
243 』の第二部です.これらの文書を別部とした理由は,単純に『
244 \emph on
245 ユーザーの手引き
246 \emph default
247 』がすでに大部となっていることと,『
248 \emph on
249 ユーザーの手引き
250 \emph default
251 』が,ほとんどの文書を作成する上で必要な基本機能をすべて説明してしまっているためです.一方で,\SpecialChar LyX
252 プロジェクトチームは,\SpecialChar LyX
253 を各設定ファイルと外部パッケージによって拡張
254 可能な状態にしておくことを長期的な目標にしています.つまり,ある\SpecialChar LaTeX
255 パッケージをサポートしたい場合に,\SpecialChar LyX
256 自身に変更を加えることなく,当該パッケージ用のレイアウトファイ
257 ル(ないしモジュール)を作成すればいいようにしているのです.すでにこのような形で,いくつもの新機能がユーザーによって追加されています.この取扱説明書は,そのよう
258 な形での貢献を文書化する冊子として位置付けられています.
259 \end_layout
260
261 \begin_layout Standard
262 この取扱説明書では,ファックスのサポート・バージョン管理・SGMLサポートのような,正しく機能するためには追加的なソフトウェアを必要とする特殊機能についても説明
263 しています.さらに,\SpecialChar LaTeX
264 の強力な機能を直接使って文書を美しく仕上げるための,\SpecialChar LaTeX
265 ツールやテクニックを述べた章も収録しています.つきつめれば,\SpecialChar LyX
266 とはあくまでWYSIWYMた
267 ることを企図しているため,\SpecialChar LaTeX
268 の全機能の一部へのインタフェースは用意するものの,すべてを用意することはないでしょう.
269 \end_layout
270
271 \begin_layout Standard
272 もし,まだ『
273 \emph on
274 はじめの一歩
275 \emph default
276 』をお読みでなかったら,この取扱説明書から読みはじめるのは誤りです.『
277 \emph on
278 はじめの一歩
279 \emph default
280 』には,全取扱説明書に共通の表記法と書式が説明されていますので,まずそれからお読みください.さらに,この取扱説明書を読もうとする前に,『
281 \emph on
282 ユーザーの手引き
283 \emph default
284 』をよくお読みになって,\SpecialChar LyX
285 の全基本機能を習得してください.
286 \end_layout
287
288 \begin_layout Standard
289 この取扱説明書の取り上げられている話題は,\SpecialChar LyX
290 が\SpecialChar LaTeX
291 にどう関わっているかに強く関係していますので,まず次章では,\SpecialChar LyX
292 の内部動作がどうなっているか,LyXに希望する\SpecialChar LaTeX
293 コードを正
294 確に生成させるにはどうしたらいいかを収録しています.本章は,あきらかに熟練\SpecialChar LyX
295 ユーザー向けの章となっています.
296 \end_layout
297
298 \begin_layout Chapter
299 \SpecialChar LyX
300 と\SpecialChar LaTeX
301
302 \end_layout
303
304 \begin_layout Section
305 \SpecialChar LyX
306 は\SpecialChar LaTeX
307 をどう使っているか
308 \end_layout
309
310 \begin_layout Standard
311 本章
312 \family roman
313 \series medium
314 \shape up
315 \size normal
316 \emph off
317 \bar no
318 \noun off
319 \color none
320 は,\SpecialChar TeX
321 熟練者と\SpecialChar LaTeX
322 に興味のある方向けの章です.ここでは,\SpecialChar LyX
323 と\SpecialChar LaTeX
324 が,印刷可能な出力を生成するのに,どのように協働しているのかを説明します.全取扱説明書中で本章だけは,\SpecialChar LaTeX
325 のこと
326 を多少なりともご存知であることを前提とします.
327 \end_layout
328
329 \begin_layout Standard
330
331 \family roman
332 \series medium
333 \shape up
334 \size normal
335 \emph off
336 \bar no
337 \noun off
338 \color none
339 かつて\SpecialChar LyX
340 は,「\SpecialChar LaTeX
341
342 \family default
343 \series default
344 \shape default
345 \size default
346 \emph default
347 \bar default
348 \noun default
349 \color inherit
350 WYSIWYM
351 \family roman
352 \series medium
353 \shape up
354 \size normal
355 \emph off
356 \bar no
357 \noun off
358 \color none
359 なフロントエンド」と呼ばれていましたが,いまではこれは正しくありません.\SpecialChar LaTeX
360 のフロントエンドは,いくつも出回っています
361 \begin_inset Foot
362 status collapsed
363
364 \begin_layout Plain Layout
365
366 \family roman
367 \series medium
368 \shape up
369 \size normal
370 \emph off
371 \bar no
372 \noun off
373 \color none
374 有名なものとしては,Linux上の\SpecialChar TeX
375 makerとkile,OSX上の\SpecialChar TeX
376 shopなどがあります.もちろんviとemacsの\SpecialChar LaTeX
377 モードも含まれます.
378 \end_layout
379
380 \end_inset
381
382 .これらは,基本的に\SpecialChar LaTeX
383 を走らせる機能を有し,編集中のファイルのエラーを表示する機能を持ったテキストエディタです.\SpecialChar LyX
384 も,エディタであり,\SpecialChar LaTeX
385 を走らせる機能を有し,ファイル
386 中のエラーを指摘しますが,それ以上にもっともっと多くのことをしてくれます.
387 \family default
388 \series default
389 \shape default
390 \size default
391 \emph default
392 \bar default
393 \noun default
394 \color inherit
395 ひとつには,
396 \family roman
397 \series medium
398 \shape up
399 \size normal
400 \emph off
401 \bar no
402 \noun off
403 \color none
404 \SpecialChar LyX
405 を効果的に使うのに,\SpecialChar LaTeX
406 の知識が必要とされないことが挙げられます.また\SpecialChar LyX
407 は,それ自身,いくつかの拡張を\SpecialChar LaTeX
408 に加えています.時間のあるときにでも,いちど以下の手順を試してみ
409 てください.まず
410 \family sans
411 \series default
412 \shape default
413 \size default
414 \emph default
415 \bar default
416 \noun default
417 \color inherit
418
419 \begin_inset Flex MenuItem
420 status collapsed
421
422 \begin_layout Plain Layout
423
424 \family sans
425 ファイル
426 \end_layout
427
428 \end_inset
429
430
431 \family roman
432 \series medium
433 \shape up
434 \size normal
435 \emph off
436 \bar no
437 \noun off
438 \color none
439 メニューから
440 \family sans
441 \series default
442 \shape default
443 \size default
444 \emph default
445 \bar default
446 \noun default
447 \color inherit
448
449 \begin_inset Flex MenuItem
450 status collapsed
451
452 \begin_layout Plain Layout
453
454 \family sans
455 エクスポート\SpecialChar menuseparator
456 LaTeX
457 \end_layout
458
459 \end_inset
460
461
462 \family roman
463 \series medium
464 \shape up
465 \size normal
466 \emph off
467 \bar no
468 \noun off
469 \color none
470 (あるいは
471 \family sans
472 \series default
473 \shape default
474 \size default
475 \emph default
476 \bar default
477 \noun default
478 \color inherit
479
480 \begin_inset Flex MenuItem
481 status collapsed
482
483 \begin_layout Plain Layout
484
485 \family sans
486 表示\SpecialChar menuseparator
487 ソースを閲覧
488 \end_layout
489
490 \end_inset
491
492
493 \family roman
494 \series medium
495 \shape up
496 \size normal
497 \emph off
498 \bar no
499 \noun off
500 \color none
501 )を選択し,そこから出力される
502 \begin_inset Flex Code
503 status collapsed
504
505 \begin_layout Plain Layout
506
507 \family typewriter
508 .tex
509 \end_layout
510
511 \end_inset
512
513 ファイルのプリアンブルをご覧ください.\SpecialChar LyX
514 によって特別に定義された新しいマクロが複数定義されていることに気づかれるはずです
515 \family default
516 \series default
517 \shape default
518 \size default
519 \emph default
520 \bar default
521 \noun default
522 \color inherit
523 .これらのマクロは,文書中で使用する機能に応じて,自動的に定義されます.
524 \end_layout
525
526 \begin_layout Standard
527
528 \family roman
529 \series medium
530 \shape up
531 \size normal
532 \emph off
533 \bar no
534 \noun off
535 \color none
536 自動的に\SpecialChar LaTeX
537 を実行するコマンドが,以下のようにいくつかあります.
538 \end_layout
539
540 \begin_layout Itemize
541 \begin_inset Flex MenuItem
542 status collapsed
543
544 \begin_layout Plain Layout
545 表示\SpecialChar menuseparator
546 書式
547 \end_layout
548
549 \end_inset
550
551
552 \end_layout
553
554 \begin_layout Itemize
555
556 \family sans
557 \begin_inset Flex MenuItem
558 status collapsed
559
560 \begin_layout Plain Layout
561
562 \bar no
563 表示\SpecialChar menuseparator
564 更新\SpecialChar menuseparator
565
566 \bar default
567 書式
568 \end_layout
569
570 \end_inset
571
572
573 \end_layout
574
575 \begin_layout Standard
576
577 \family roman
578 \series medium
579 \shape up
580 \size normal
581 \emph off
582 \bar no
583 \noun off
584 \color none
585 これらは,最後に\SpecialChar LaTeX
586 を実行してからファイルに変更が加えられた場合のみ,\SpecialChar LaTeX
587 を実行します.
588 \end_layout
589
590 \begin_layout Standard
591
592 \family roman
593 \series medium
594 \shape up
595 \size normal
596 \emph off
597 \bar no
598 \noun off
599 \color none
600 \SpecialChar LyX
601 が編集中のファイルを\SpecialChar LaTeX
602 にかけるとき,\SpecialChar LyX
603 は以下の段階をふみます.
604 \end_layout
605
606 \begin_layout Enumerate
607
608 \family roman
609 \series medium
610 \shape up
611 \size normal
612 \emph off
613 \bar no
614 \noun off
615 \color none
616 文書を\SpecialChar LaTeX
617 に変換し,ファイルの拡張子を
618 \begin_inset Flex Code
619 status collapsed
620
621 \begin_layout Plain Layout
622
623 \family roman
624 \series medium
625 \shape up
626 \size normal
627 \emph off
628 \bar no
629 \noun off
630 \color none
631 .lyx
632 \end_layout
633
634 \end_inset
635
636 から
637 \begin_inset Flex Code
638 status collapsed
639
640 \begin_layout Plain Layout
641
642 \family roman
643 \series medium
644 \shape up
645 \size normal
646 \emph off
647 \bar no
648 \noun off
649 \color none
650 .tex
651 \end_layout
652
653 \end_inset
654
655 に変えて保存.
656 \end_layout
657
658 \begin_layout Enumerate
659
660 \family roman
661 \series medium
662 \shape up
663 \size normal
664 \emph off
665 \bar no
666 \noun off
667 \color none
668 この
669 \begin_inset Flex Code
670 status collapsed
671
672 \begin_layout Plain Layout
673
674 \family roman
675 \series medium
676 \shape up
677 \size normal
678 \emph off
679 \bar no
680 \noun off
681 \color none
682 .tex
683 \end_layout
684
685 \end_inset
686
687 ファイルに対して(必要に応じて複数回)\SpecialChar LaTeX
688 を実行し,\SpecialChar LaTeX
689 ファイルをコンパイルするのに必要な他のコマンド(
690 \begin_inset Flex Code
691 status collapsed
692
693 \begin_layout Plain Layout
694
695 \family roman
696 \series medium
697 \shape up
698 \size normal
699 \emph off
700 \bar no
701 \noun off
702 \color none
703 bibtex
704 \end_layout
705
706 \end_inset
707
708
709 \begin_inset Flex Code
710 status collapsed
711
712 \begin_layout Plain Layout
713
714 \family roman
715 \series medium
716 \shape up
717 \size normal
718 \emph off
719 \bar no
720 \noun off
721 \color none
722 makeindex
723 \end_layout
724
725 \end_inset
726
727 など)を実行..
728 \end_layout
729
730 \begin_layout Enumerate
731
732 \family roman
733 \series medium
734 \shape up
735 \size normal
736 \emph off
737 \bar no
738 \noun off
739 \color none
740 もしエラーがあれば,エラーログを表示.
741 \end_layout
742
743 \begin_layout Standard
744
745 \family roman
746 \series medium
747 \shape up
748 \size normal
749 \emph off
750 \bar no
751 \noun off
752 \color none
753 \SpecialChar LaTeX
754
755 \family sans
756 \series default
757 \shape default
758 \size default
759 \emph default
760 \bar default
761 \noun default
762 \color inherit
763
764 \begin_inset Flex MenuItem
765 status collapsed
766
767 \begin_layout Plain Layout
768
769 \family sans
770 表示\SpecialChar menuseparator
771 DVI
772 \end_layout
773
774 \end_inset
775
776
777 \family roman
778 \series medium
779 \shape up
780 \size normal
781 \emph off
782 \bar no
783 \noun off
784 \color none
785 を使用して実行した場合には,\SpecialChar LyX
786 はこの後,DVIビューアを実行してDVIファイルを表示します.
787 \begin_inset Flex MenuItem
788 status collapsed
789
790 \begin_layout Plain Layout
791
792 \family roman
793 \series medium
794 \shape up
795 \size normal
796 \emph off
797 \bar no
798 \noun off
799 \color none
800 表示\SpecialChar menuseparator
801 PostScript
802 \end_layout
803
804 \end_inset
805
806 を使用した場合には,\SpecialChar LyX
807 はさらに以下の段階をふみます.
808 \end_layout
809
810 \begin_layout Itemize
811
812 \family roman
813 \series medium
814 \shape up
815 \size normal
816 \emph off
817 \bar no
818 \noun off
819 \color none
820 \begin_inset Flex Code
821 status collapsed
822
823 \begin_layout Plain Layout
824
825 \family typewriter
826 dvips
827 \end_layout
828
829 \end_inset
830
831 を実行して,
832 \family default
833 \series default
834 \shape default
835 \size default
836 \emph default
837 \bar default
838 \noun default
839 \color inherit
840 DVI
841 \family roman
842 \series medium
843 \shape up
844 \size normal
845 \emph off
846 \bar no
847 \noun off
848 \color none
849 ファイルをPostScript
850 \family default
851 \series default
852 \shape default
853 \size default
854 \emph default
855 \bar default
856 \noun default
857 \color inherit
858 に変換.
859 \end_layout
860
861 \begin_layout Itemize
862
863 \family roman
864 \series medium
865 \shape up
866 \size normal
867 \emph off
868 \bar no
869 \noun off
870 \color none
871 \begin_inset Flex Code
872 status collapsed
873
874 \begin_layout Plain Layout
875
876 \family typewriter
877 ghostview
878 \end_layout
879
880 \end_inset
881
882 などのPostScriptビューアを実行して,PostScript
883 \family default
884 \series default
885 \shape default
886 \size default
887 \emph default
888 \bar default
889 \noun default
890 \color inherit
891 ファイルを表示.
892 \end_layout
893
894 \begin_layout Standard
895 \SpecialChar LyX
896 は,他の書式を表示したりエクスポートしたりする際にも,同様のことを行います.
897 \end_layout
898
899 \begin_layout Section
900 \SpecialChar LaTeX
901 ファイルを\SpecialChar LyX
902 に読み込む
903 \end_layout
904
905 \begin_layout Standard
906 \SpecialChar LyX
907
908 \family sans
909
910 \begin_inset Flex MenuItem
911 status collapsed
912
913 \begin_layout Plain Layout
914
915 \family sans
916 ファイル\SpecialChar menuseparator
917 インポート\SpecialChar menuseparator
918 LaTeX
919 \end_layout
920
921 \end_inset
922
923
924 \family roman
925 \series medium
926 \shape up
927 \size normal
928 \emph off
929 \bar no
930 \noun off
931 \color none
932 コマンドを使用すると,\SpecialChar LaTeX
933 ファイルを
934 \family default
935 \series default
936 \shape default
937 \size default
938 \emph default
939 \bar default
940 \noun default
941  
942 \family roman
943 \series medium
944 \shape up
945 \size normal
946 \emph off
947 \bar no
948 \noun off
949 \SpecialChar LyX
950 にインポートすることができます.このコマンドは,
951 \family typewriter
952 \series default
953 \shape default
954 \size default
955 \emph default
956 \bar default
957 \noun default
958 \color inherit
959
960 \begin_inset Flex Code
961 status collapsed
962
963 \begin_layout Plain Layout
964
965 \family typewriter
966 tex2lyx
967 \end_layout
968
969 \end_inset
970
971
972 \family roman
973 \series medium
974 \shape up
975 \size normal
976 \emph off
977 \bar no
978 \noun off
979 \color none
980 というプログラムを呼び出し,
981 \family typewriter
982 \series default
983 \shape default
984 \size default
985 \emph default
986 \bar default
987 \noun default
988 \color inherit
989
990 \begin_inset Flex Code
991 status collapsed
992
993 \begin_layout Plain Layout
994
995 \family typewriter
996 foo.tex
997 \end_layout
998
999 \end_inset
1000
1001
1002 \family default
1003 などというファイルから
1004 \begin_inset Flex Code
1005 status collapsed
1006
1007 \begin_layout Plain Layout
1008
1009 \family typewriter
1010 foo.lyx
1011 \end_layout
1012
1013 \end_inset
1014
1015 を生成します.\SpecialChar LyX
1016 は,この変換したファイルを開きます
1017 \begin_inset Foot
1018 status collapsed
1019
1020 \begin_layout Plain Layout
1021 \begin_inset Flex Code
1022 status collapsed
1023
1024 \begin_layout Plain Layout
1025 tex2lyx
1026 \end_layout
1027
1028 \end_inset
1029
1030 は,もちろんコマンドラインから実行することもできます.
1031 \end_layout
1032
1033 \end_inset
1034
1035
1036 \end_layout
1037
1038 \begin_layout Standard
1039
1040 \family typewriter
1041 \begin_inset Flex Code
1042 status collapsed
1043
1044 \begin_layout Plain Layout
1045
1046 \family typewriter
1047 tex2lyx
1048 \end_layout
1049
1050 \end_inset
1051
1052
1053 \family roman
1054 \series medium
1055 \shape up
1056 \size normal
1057 \emph off
1058 \bar no
1059 \noun off
1060 \color none
1061 は,文法的に正しい\SpecialChar LaTeX
1062 ファイルのほとんどを変換することができますが,すべてを変換できるわけではありません.
1063 \family typewriter
1064 \series default
1065 \shape default
1066 \size default
1067 \emph default
1068 \bar default
1069 \noun default
1070 \color inherit
1071
1072 \begin_inset Flex Code
1073 status collapsed
1074
1075 \begin_layout Plain Layout
1076
1077 \family typewriter
1078 tex2lyx
1079 \end_layout
1080
1081 \end_inset
1082
1083
1084 \family roman
1085 \series medium
1086 \shape up
1087 \size normal
1088 \emph off
1089 \bar no
1090 \noun off
1091 \color none
1092 は,理解不能な部分は\SpecialChar TeX
1093 コードボックスの形で残しますので,ファイルを
1094 \family typewriter
1095 \series default
1096 \shape default
1097 \size default
1098 \emph default
1099 \bar default
1100 \noun default
1101 \color inherit
1102
1103 \begin_inset Flex Code
1104 status collapsed
1105
1106 \begin_layout Plain Layout
1107
1108 \family typewriter
1109 tex2lyx
1110 \end_layout
1111
1112 \end_inset
1113
1114
1115 \family roman
1116 \series medium
1117 \shape up
1118 \size normal
1119 \emph off
1120 \bar no
1121 \noun off
1122 \color none
1123 で変換したのち,\SpecialChar TeX
1124 コードボックスを探して,手動で正しく編集してください.
1125 \end_layout
1126
1127 \begin_layout Standard
1128
1129 \family roman
1130 \series medium
1131 \shape up
1132 \size normal
1133 \emph off
1134 \bar no
1135 \noun off
1136 \color none
1137 \SpecialChar TeX
1138 コードボックスがなにかご存じなければ,次節をお読みください.
1139 \end_layout
1140
1141 \begin_layout Section
1142 \SpecialChar LaTeX
1143 コードを挿入する
1144 \begin_inset CommandInset label
1145 LatexCommand label
1146 name "sec:LaTeXコードを挿入する"
1147
1148 \end_inset
1149
1150
1151 \end_layout
1152
1153 \begin_layout Standard
1154
1155 \family roman
1156 \series medium
1157 \shape up
1158 \size normal
1159 \emph off
1160 \bar no
1161 \noun off
1162 \color none
1163 どの\SpecialChar LyX
1164 文書にもつねに\SpecialChar TeX
1165 コードを挿入することが可能であるというきわめて単純な理由によって,\SpecialChar LaTeX
1166 にできることは,つねに\SpecialChar LyX
1167 でも行うことができます.一方,\SpecialChar LyX
1168 は,すべての\SpecialChar LaTeX
1169 構成物を\SpecialChar LyX
1170 内に
1171 表示できるわけではなく,将来的にもそうならないでしょう.かりに\SpecialChar LaTeX
1172 コマンドを\SpecialChar LyX
1173 文書に挿入する必要が出てきた場合には,
1174 \begin_inset Flex Code
1175 status collapsed
1176
1177 \begin_layout Plain Layout
1178
1179 \family roman
1180 \series medium
1181 \shape up
1182 \size normal
1183 \emph off
1184 \bar no
1185 \noun off
1186 \color none
1187 \SpecialChar TeX
1188 コード
1189 \end_layout
1190
1191 \end_inset
1192
1193 ボックスを使用してください.これは,
1194 \family sans
1195 \series default
1196 \shape default
1197 \size default
1198 \emph default
1199 \bar default
1200 \noun default
1201 \color inherit
1202
1203 \begin_inset Flex MenuItem
1204 status collapsed
1205
1206 \begin_layout Plain Layout
1207
1208 \family sans
1209 挿入\SpecialChar menuseparator
1210 TeXコード
1211 \end_layout
1212
1213 \end_inset
1214
1215
1216 \family roman
1217 \series medium
1218 \shape up
1219 \size normal
1220 \emph off
1221 \bar no
1222 \noun off
1223 \color none
1224 若しくは
1225 \family default
1226 \series default
1227 \shape default
1228 \size default
1229 \emph default
1230 \bar default
1231 \noun default
1232 \color inherit
1233
1234 \begin_inset Flex Ruby
1235 status collapsed
1236
1237 \begin_layout Plain Layout
1238
1239 \family roman
1240 \series medium
1241 \shape up
1242 \size normal
1243 \emph off
1244 \bar no
1245 \noun off
1246 \color none
1247 捷径
1248 \family default
1249 \series default
1250 \shape default
1251 \size default
1252 \emph default
1253 \bar default
1254 \noun default
1255 \color inherit
1256
1257 \begin_inset Argument post:1
1258 status collapsed
1259
1260 \begin_layout Plain Layout
1261 ショートカット
1262 \end_layout
1263
1264 \end_inset
1265
1266
1267 \end_layout
1268
1269 \end_inset
1270
1271
1272 \begin_inset Flex Ruby
1273 status collapsed
1274
1275 \begin_layout Plain Layout
1276
1277 \family roman
1278 \series medium
1279 \shape up
1280 \size normal
1281 \emph off
1282 \bar no
1283 \noun off
1284 \color none
1285
1286 \begin_inset Argument post:1
1287 status collapsed
1288
1289 \begin_layout Plain Layout
1290 キー
1291 \end_layout
1292
1293 \end_inset
1294
1295
1296 \end_layout
1297
1298 \end_inset
1299
1300
1301 \begin_inset Info
1302 type  "shortcut"
1303 arg   "ert-insert"
1304 \end_inset
1305
1306
1307 \family roman
1308 \series medium
1309 \shape up
1310 \size normal
1311 \emph off
1312 \bar no
1313 \noun off
1314 \color none
1315 で,文書中に挿入することができます.
1316 \end_layout
1317
1318 \begin_layout Standard
1319 以下は,\SpecialChar LaTeX
1320 コマンドを\SpecialChar LyX
1321 文書中に挿入する例です.コードは以下のようになっているとしましょう.
1322 \end_layout
1323
1324 \begin_layout LyX-Code
1325
1326 \backslash
1327 begin{tabular}{ll}
1328 \begin_inset Newline newline
1329 \end_inset
1330
1331
1332 \backslash
1333 begin{minipage}{5cm}
1334 \begin_inset Newline newline
1335 \end_inset
1336
1337 これは,ミニページ環境の例です.
1338 \begin_inset Newline newline
1339 \end_inset
1340
1341 これには,
1342 \begin_inset Newline newline
1343 \end_inset
1344
1345 (フロートでない)図表を
1346 \begin_inset Newline newline
1347 \end_inset
1348
1349 含め,ほとんど何でも
1350 \begin_inset Newline newline
1351 \end_inset
1352
1353 入れることができます. 
1354 \begin_inset Newline newline
1355 \end_inset
1356
1357
1358 \backslash
1359 end{minipage}
1360 \begin_inset Newline newline
1361 \end_inset
1362
1363 &
1364 \begin_inset Newline newline
1365 \end_inset
1366
1367
1368 \backslash
1369 begin{minipage}{5cm}
1370 \begin_inset Newline newline
1371 \end_inset
1372
1373
1374 \backslash
1375 begin{verbatim}
1376 \begin_inset Newline newline
1377 \end_inset
1378
1379
1380 \backslash
1381 begin{minipage}{5cm}
1382 \begin_inset Newline newline
1383 \end_inset
1384
1385 これは...
1386  
1387 \begin_inset Newline newline
1388 \end_inset
1389
1390
1391 \backslash
1392 end{minipage}
1393 \begin_inset Newline newline
1394 \end_inset
1395
1396
1397 \backslash
1398 end{verbatim}
1399 \begin_inset Newline newline
1400 \end_inset
1401
1402
1403 \backslash
1404 end{minipage}
1405 \begin_inset Newline newline
1406 \end_inset
1407
1408
1409 \backslash
1410 end{tabular}
1411 \end_layout
1412
1413 \begin_layout LyX-Code
1414
1415 \end_layout
1416
1417 \begin_layout Standard
1418 上記のテキストを含んだ
1419 \begin_inset Flex Code
1420 status collapsed
1421
1422 \begin_layout Plain Layout
1423 \SpecialChar TeX
1424 コード
1425 \end_layout
1426
1427 \end_inset
1428
1429 ボックスが,この段落の直後にあります.この取扱説明書を\SpecialChar LyX
1430 上でご覧になっていれば,\SpecialChar TeX
1431 コード差込枠のみが見えるはずです.印刷した取扱説明書をご覧であれば,実際の結果が見
1432 れるはずです.
1433 \end_layout
1434
1435 \begin_layout Standard
1436 \begin_inset VSpace bigskip
1437 \end_inset
1438
1439
1440 \begin_inset ERT
1441 status open
1442
1443 \begin_layout Plain Layout
1444
1445
1446 \backslash
1447 begin{tabular}{ll}
1448 \end_layout
1449
1450 \begin_layout Plain Layout
1451
1452
1453 \backslash
1454 begin{minipage}{5cm}
1455 \end_layout
1456
1457 \begin_layout Plain Layout
1458
1459 これは,ミニページ環境の例です.これには,(フロートでない)図表を含め,ほとんど何でも入れることができます. 
1460 \backslash
1461 end{minipage}
1462 \end_layout
1463
1464 \begin_layout Plain Layout
1465
1466 &
1467 \end_layout
1468
1469 \begin_layout Plain Layout
1470
1471
1472 \backslash
1473 begin{minipage}{5cm}
1474 \end_layout
1475
1476 \begin_layout Plain Layout
1477
1478
1479 \backslash
1480 begin{verbatim}
1481 \end_layout
1482
1483 \begin_layout Plain Layout
1484
1485
1486 \backslash
1487 begin{minipage}{5cm}
1488 \end_layout
1489
1490 \begin_layout Plain Layout
1491
1492 これは...
1493  
1494 \backslash
1495 end{minipage}
1496 \end_layout
1497
1498 \begin_layout Plain Layout
1499
1500
1501 \backslash
1502 end{verbatim}
1503 \end_layout
1504
1505 \begin_layout Plain Layout
1506
1507
1508 \backslash
1509 end{minipage}
1510 \end_layout
1511
1512 \begin_layout Plain Layout
1513
1514
1515 \backslash
1516 end{tabular}
1517 \end_layout
1518
1519 \end_inset
1520
1521
1522 \begin_inset VSpace bigskip
1523 \end_inset
1524
1525
1526 \end_layout
1527
1528 \begin_layout Standard
1529
1530 \family roman
1531 \series medium
1532 \shape up
1533 \size normal
1534 \emph off
1535 \bar no
1536 \noun off
1537 \color none
1538 \SpecialChar TeX
1539 コードを使用する方法に加えて,複雑な\SpecialChar LaTeX
1540 コードを含む部分を別ファイルとして作成しておき,そのファイルをインクルードするのに
1541 \begin_inset Flex MenuItem
1542 status collapsed
1543
1544 \begin_layout Plain Layout
1545
1546 \family roman
1547 \series medium
1548 \shape up
1549 \size normal
1550 \emph off
1551 \bar no
1552 \noun off
1553 \color none
1554 挿入\SpecialChar menuseparator
1555 ファイル\SpecialChar menuseparator
1556 子文書
1557 \end_layout
1558
1559 \end_inset
1560
1561 を使用する方法もあります(取り込みの型として
1562 \begin_inset Flex Code
1563 status collapsed
1564
1565 \begin_layout Plain Layout
1566
1567 \family roman
1568 \series medium
1569 \shape up
1570 \size normal
1571 \emph off
1572 \bar no
1573 \noun off
1574 \color none
1575 Input
1576 \end_layout
1577
1578 \end_inset
1579
1580 を選択しなくてはなりません).この方法をとる場合には,.texファイルが正しく動作することが
1581 \family default
1582 \series default
1583 \shape default
1584 \size default
1585 \emph on
1586 \bar default
1587 \noun default
1588 \color inherit
1589 確認できている
1590 \family roman
1591 \series medium
1592 \shape up
1593 \size normal
1594 \emph off
1595 \bar no
1596 \noun off
1597 \color none
1598 場合のみに限った方がよいでしょう.さもないと,\SpecialChar LaTeX
1599 エラーを追跡するたいへんな作業を行わなくてはならなくなります.
1600 \end_layout
1601
1602 \begin_layout Standard
1603
1604 \family roman
1605 \series medium
1606 \shape up
1607 \size normal
1608 \emph off
1609 \bar no
1610 \noun off
1611 \color none
1612 最後に,いくつか強調しておくべきことがあります.
1613 \end_layout
1614
1615 \begin_layout Itemize
1616
1617 \family roman
1618 \series medium
1619 \shape up
1620 \size normal
1621 \emph off
1622 \bar no
1623 \noun off
1624 \color none
1625 \SpecialChar LyX
1626 は,あなたの\SpecialChar LaTeX
1627 コードが正しいかどうかを
1628 \family default
1629 \series default
1630 \shape default
1631 \size default
1632 \emph on
1633 \bar default
1634 \noun default
1635 \color inherit
1636 チェックしません
1637 \family roman
1638 \series medium
1639 \shape up
1640 \size normal
1641 \emph off
1642 \bar no
1643 \noun off
1644 \color none
1645
1646 \end_layout
1647
1648 \begin_layout Itemize
1649
1650 \family roman
1651 \series medium
1652 \shape up
1653 \size normal
1654 \emph off
1655 \bar no
1656 \noun off
1657 \color none
1658 車輪の再発明をしないようにご注意ください.
1659 \end_layout
1660
1661 \begin_layout Standard
1662
1663 \family roman
1664 \series medium
1665 \shape up
1666 \size normal
1667 \emph off
1668 \bar no
1669 \noun off
1670 \color none
1671 二番目の点に関して,\SpecialChar LyX
1672 はひじょうにたくさんの機能を装備しており,その数は増えつづけています.ご自身で\SpecialChar LaTeX
1673 コードを書かなくてはならないと思い込む前に,LyXがこれこれの
1674 機能をもっていないことを,取扱説明書で確実に確かめてください.さらに世の中には,封筒のラベルから美しい複数ページにわたる表を作るものまで,ありとあらゆることを行
1675 う膨大な数の\SpecialChar LaTeX
1676 パッケージが存在します.
1677 \family default
1678 \series default
1679 \shape default
1680 \size default
1681 \emph default
1682 \bar default
1683 \noun default
1684 \color inherit
1685 詳細については,
1686 \begin_inset CommandInset href
1687 LatexCommand href
1688 name "CTAN"
1689 target "http://www.ctan.org/"
1690 literal "false"
1691
1692 \end_inset
1693
1694
1695 \family roman
1696 \series medium
1697 \shape up
1698 \size normal
1699 \emph off
1700 \bar no
1701 \noun off
1702 \color none
1703 と第
1704 \begin_inset CommandInset ref
1705 LatexCommand ref
1706 reference "chap:Special-features"
1707
1708 \end_inset
1709
1710 節をご覧ください.
1711 \end_layout
1712
1713 \begin_layout Standard
1714
1715 \family roman
1716 \series medium
1717 \shape up
1718 \size normal
1719 \emph off
1720 \bar no
1721 \noun off
1722 \color none
1723 もし,文書中で例外的に手の込んだことをなさりたければ,かならず良い\SpecialChar LaTeX
1724 関連書籍を参考とするようにしてください.『
1725 \family default
1726 \series default
1727 \shape default
1728 \size default
1729 \emph on
1730 \bar default
1731 \noun default
1732 \color inherit
1733 ユーザーの手引き
1734 \family roman
1735 \series medium
1736 \shape up
1737 \size normal
1738 \emph off
1739 \bar no
1740 \noun off
1741 \color none
1742 』の書誌情報に多くの\SpecialChar LaTeX
1743 関連書籍が引用されています.
1744 \end_layout
1745
1746 \begin_layout Section
1747 \SpecialChar LyX
1748 と\SpecialChar LaTeX
1749 プリアンブル
1750 \end_layout
1751
1752 \begin_layout Subsection
1753 \SpecialChar LaTeX
1754 プリアンブルについて
1755 \end_layout
1756
1757 \begin_layout Standard
1758
1759 \family roman
1760 \series medium
1761 \shape up
1762 \size normal
1763 \emph off
1764 \bar no
1765 \noun off
1766 \color none
1767 すでに\SpecialChar LaTeX
1768 についてご存知であれば,ここでプリアンブル(前置文)が何に向いているか説明する必要はないでしょう.もしご存じなければ,以下の説明で大まかな理解は得られるは
1769 ずです.詳しくは\SpecialChar LaTeX
1770 関連書籍をご参照ください.いずれにしても,以下で\SpecialChar LyX
1771 文書の\SpecialChar LaTeX
1772 プリアンブルで何ができるか,または何をする必要がないか説明をしますので,以下の各要点はお読
1773 みになった方が良いでしょう.
1774 \end_layout
1775
1776 \begin_layout Standard
1777
1778 \family roman
1779 \series medium
1780 \shape up
1781 \size normal
1782 \emph off
1783 \bar no
1784 \noun off
1785 \color none
1786 \SpecialChar LaTeX
1787 プリアンブルは,\SpecialChar LaTeX
1788 文書のいちばん始め,本文の
1789 \family default
1790 \series default
1791 \shape default
1792 \size default
1793 \emph on
1794 \bar default
1795 \noun default
1796 \color inherit
1797
1798 \family roman
1799 \series medium
1800 \shape up
1801 \size normal
1802 \emph off
1803 \bar no
1804 \noun off
1805 \color none
1806 の部分に来ます.ここでは以下のことを行います.
1807 \end_layout
1808
1809 \begin_layout Itemize
1810
1811 \family roman
1812 \series medium
1813 \shape up
1814 \size normal
1815 \emph off
1816 \bar no
1817 \noun off
1818 \color none
1819 文書クラス(ドキュメントクラス)の宣言.
1820 \begin_inset Newline newline
1821 \end_inset
1822
1823 これは\SpecialChar LyX
1824 がすでに行ってくれています.もしあなたが熟達した\SpecialChar LaTeX
1825 使いであり,自作の文書クラスを使いたい場合には,取扱説明書『
1826 \family default
1827 \series default
1828 \shape default
1829 \size default
1830 \emph on
1831 \bar default
1832 \noun default
1833 \color inherit
1834 カスタマイズ篇
1835 \family roman
1836 \series medium
1837 \shape up
1838 \size normal
1839 \emph off
1840 \bar no
1841 \noun off
1842 \color none
1843 』をご覧になれば,\SpecialChar LyX
1844 に自作文書クラスへの仲介を行わせるにはどうすればよいかの情報があります.
1845 \end_layout
1846
1847 \begin_layout Itemize
1848
1849 \family roman
1850 \series medium
1851 \shape up
1852 \size normal
1853 \emph off
1854 \bar no
1855 \noun off
1856 \color none
1857 パッケージ使用の宣言.
1858 \begin_inset Newline newline
1859 \end_inset
1860
1861 \SpecialChar LaTeX
1862 パッケージは,パッケージがプリアンブルで宣言された場合のみ,文書中で利用可能となる,追加コマンド群を提供します.パッケージをインクルードすると,特別なコマンドが
1863 提供されることに加え,文書に変更を加えることができます.例えば
1864 \family typewriter
1865 \series default
1866 \shape default
1867 \size default
1868 \emph default
1869 \bar default
1870 \noun default
1871 \color inherit
1872
1873 \family roman
1874 \series medium
1875 \shape up
1876 \size normal
1877 \emph off
1878 \bar no
1879 \noun off
1880 \color none
1881
1882 \begin_inset Flex Code
1883 status collapsed
1884
1885 \begin_layout Plain Layout
1886
1887 \family typewriter
1888 indentfirst
1889 \end_layout
1890
1891 \end_inset
1892
1893 パッケージは,すべての段落の最初の行を字下げします.他にも,ラベルや宛名書き,余白設定等の様々なパッケージがあります.
1894 \end_layout
1895
1896 \begin_layout Itemize
1897
1898 \family roman
1899 \series medium
1900 \shape up
1901 \size normal
1902 \emph off
1903 \bar no
1904 \noun off
1905 \color none
1906 カウンタ・変数・長さ・幅の設定.
1907 \begin_inset Newline newline
1908 \end_inset
1909
1910 \SpecialChar LaTeX
1911 のカウンタと変数の中には,プリアンブルでグローバルに
1912 \family default
1913 \series default
1914 \shape default
1915 \size default
1916 \emph default
1917 \bar default
1918 \noun default
1919 \color inherit
1920 設定
1921 \emph on
1922 しないかぎり
1923 \family roman
1924 \series medium
1925 \shape up
1926 \size normal
1927 \emph off
1928 \bar no
1929 \noun off
1930 \color none
1931 ,望んだ効果を持たないものがあります.(文書中で設定したり再設定したりすることのできる変数もあります.)余白は,プリアンブルで設定しなくてはならない変数の代表例
1932 です.他には,箇条書きに付けるラベル書式が挙げられます.じつは,この設定は文書中どこでもできるのですが,プリアンブルでいちどだけ設定するのが望ましい方法です.
1933 \end_layout
1934
1935 \begin_layout Itemize
1936
1937 \family roman
1938 \series medium
1939 \shape up
1940 \size normal
1941 \emph off
1942 \bar no
1943 \noun off
1944 \color none
1945 ユーザー定義コマンドの宣言(
1946 \begin_inset Flex Code
1947 status collapsed
1948
1949 \begin_layout Plain Layout
1950
1951 \family roman
1952 \series medium
1953 \shape up
1954 \size normal
1955 \emph off
1956 \bar no
1957 \noun off
1958 \color none
1959
1960 \backslash
1961 newcommand
1962 \end_layout
1963
1964 \end_inset
1965
1966 または
1967 \begin_inset Flex Code
1968 status collapsed
1969
1970 \begin_layout Plain Layout
1971
1972 \family roman
1973 \series medium
1974 \shape up
1975 \size normal
1976 \emph off
1977 \bar no
1978 \noun off
1979 \color none
1980
1981 \backslash
1982 renewcommand
1983 \end_layout
1984
1985 \end_inset
1986
1987 を使用).
1988 \begin_inset Newline newline
1989 \end_inset
1990
1991 ユーザー定義コマンドは,文書中で頻出する\SpecialChar LaTeX
1992 コマンドの短縮形です.このようなコマンドを宣言するには,プリアンブルが適した場所ですが,どこで宣言することも
1993 \family default
1994 \series default
1995 \shape default
1996 \size default
1997 \emph on
1998 \bar default
1999 \noun default
2000 \color inherit
2001 可能
2002 \family roman
2003 \series medium
2004 \shape up
2005 \size normal
2006 \emph off
2007 \bar no
2008 \noun off
2009 \color none
2010 です(もちろんコマンドが初めて使用される場所よりも前です).あまりないことではありますが,お使いの文書中に生の\SpecialChar LaTeX
2011 コードがあふれている場合には便利でしょう.
2012 \end_layout
2013
2014 \begin_layout Standard
2015
2016 \family roman
2017 \series medium
2018 \shape up
2019 \size normal
2020 \emph off
2021 \bar no
2022 \noun off
2023 \color none
2024 \SpecialChar LyX
2025 は,その生成する
2026 \begin_inset Flex Code
2027 status collapsed
2028
2029 \begin_layout Plain Layout
2030
2031 \family roman
2032 \series medium
2033 \shape up
2034 \size normal
2035 \emph off
2036 \bar no
2037 \noun off
2038 \color none
2039 .tex
2040 \end_layout
2041
2042 \end_inset
2043
2044 ファイルのプリアンブルに,それ自身の定義を追加します.これによって,\SpecialChar LyX
2045 の生成する\SpecialChar LaTeX
2046 ファイルの可搬性を高めています.
2047 \end_layout
2048
2049 \begin_layout Subsection
2050 プリアンブルの変更
2051 \end_layout
2052
2053 \begin_layout Standard
2054
2055 \family roman
2056 \series medium
2057 \shape up
2058 \size normal
2059 \emph off
2060 \bar no
2061 \noun off
2062 \color none
2063 \SpecialChar LyX
2064 が\SpecialChar LaTeX
2065 ファイルのプリアンブルに追加するコマンドは,つねに同じです.これは,\SpecialChar LyX
2066 自体にパッチを当てないかぎり変更できないようになっています.しかしながら,
2067 \begin_inset Flex MenuItem
2068 status collapsed
2069
2070 \begin_layout Plain Layout
2071
2072 \family roman
2073 \series medium
2074 \shape up
2075 \size normal
2076 \emph off
2077 \bar no
2078 \noun off
2079 \color none
2080 文書\SpecialChar menuseparator
2081 設定
2082 \end_layout
2083
2084 \end_inset
2085
2086 ダイアログの
2087 \begin_inset Flex MenuItem
2088 status collapsed
2089
2090 \begin_layout Plain Layout
2091
2092 \family roman
2093 \series medium
2094 \shape up
2095 \size normal
2096 \emph off
2097 \bar no
2098 \noun off
2099 \color none
2100 \SpecialChar LaTeX
2101 プリアンブル
2102 \end_layout
2103
2104 \end_inset
2105
2106 の項から,プリアンブルに追加をすることはできます.\SpecialChar LyX
2107 は,
2108 \family sans
2109 \series default
2110 \shape default
2111 \size default
2112 \emph default
2113 \bar default
2114 \noun default
2115 \color inherit
2116
2117 \begin_inset Flex MenuItem
2118 status collapsed
2119
2120 \begin_layout Plain Layout
2121
2122 \family sans
2123 プリアンブル
2124 \end_layout
2125
2126 \end_inset
2127
2128
2129 \family roman
2130 \series medium
2131 \shape up
2132 \size normal
2133 \emph off
2134 \bar no
2135 \noun off
2136 \color none
2137 ダイアログ内のすべてのものを,\SpecialChar LyX
2138 埋込みのプリアンブルに付け加えます.ご自身の宣言をプリアンブルに追加する前に,あなたがしようとしていることを\SpecialChar LyX
2139 がすでにサポートしてい
2140 ないかどうか確認してください(車輪の再発明をしないように,とはすでに申しあげたことです).
2141 \family default
2142 \series default
2143 \shape default
2144 \size default
2145 \emph default
2146 \bar default
2147 \noun default
2148 \color inherit
2149 また,
2150 \emph on
2151 プリアンブルコードが正しいことを確認してください.
2152 \emph default
2153 \SpecialChar LyX
2154 は,プリアンブルをチェックしません.
2155 \family roman
2156 \series medium
2157 \shape up
2158 \size normal
2159 \emph off
2160 \bar no
2161 \noun off
2162 \color none
2163 もしエラーがあれば,「
2164 \begin_inset Flex Code
2165 status collapsed
2166
2167 \begin_layout Plain Layout
2168
2169 \family roman
2170 \series medium
2171 \shape up
2172 \size normal
2173 \emph off
2174 \bar no
2175 \noun off
2176 \color none
2177 Missing 
2178 \backslash
2179 begin{document}
2180 \end_layout
2181
2182 \end_inset
2183
2184 」といったエラーが出ることでしょう.このようなエラーが出たときは,プリアンブルを再確認してください.
2185 \end_layout
2186
2187 \begin_layout Subsection
2188
2189 \end_layout
2190
2191 \begin_layout Standard
2192
2193 \family roman
2194 \series medium
2195 \shape up
2196 \size normal
2197 \emph off
2198 \bar no
2199 \noun off
2200 \color none
2201 以下は,プリアンブルに追加できるものとその効果を示す例です.
2202 \end_layout
2203
2204 \begin_layout Subsubsection
2205 例1:オフセット
2206 \end_layout
2207
2208 \begin_layout Standard
2209
2210 \family roman
2211 \series medium
2212 \shape up
2213 \size normal
2214 \emph off
2215 \bar no
2216 \noun off
2217 \color none
2218 \SpecialChar LaTeX
2219 には
2220 \family default
2221 \series default
2222 \shape default
2223 \size default
2224 \emph default
2225 \bar default
2226 \noun default
2227 \color inherit
2228
2229 \family roman
2230 \series medium
2231 \shape up
2232 \size normal
2233 \emph off
2234 \bar no
2235 \noun off
2236 \color none
2237
2238 \begin_inset Flex Code
2239 status collapsed
2240
2241 \begin_layout Plain Layout
2242
2243 \family typewriter
2244
2245 \backslash
2246 hoffset
2247 \end_layout
2248
2249 \end_inset
2250
2251
2252 \family typewriter
2253 \series default
2254 \shape default
2255 \size default
2256 \emph default
2257 \bar default
2258 \noun default
2259 \color inherit
2260
2261 \begin_inset Flex Code
2262 status collapsed
2263
2264 \begin_layout Plain Layout
2265
2266 \family typewriter
2267
2268 \backslash
2269 voffset
2270 \end_layout
2271
2272 \end_inset
2273
2274
2275 \family roman
2276 \series medium
2277 \shape up
2278 \size normal
2279 \emph off
2280 \bar no
2281 \noun off
2282 \color none
2283 というページ位置を制御する2つの変数があります.その機能は名前から明らかなとおりです.これらの変数は,ラベルを印刷するときなどに便利です.往々にして,印刷用紙の
2284 寸法とそのうち実際に印字可能な範囲は同じではありません.ここに
2285 \begin_inset Flex Code
2286 status collapsed
2287
2288 \begin_layout Plain Layout
2289
2290 \family typewriter
2291
2292 \backslash
2293 hoffset
2294 \end_layout
2295
2296 \end_inset
2297
2298
2299 \family typewriter
2300 \series default
2301 \shape default
2302 \size default
2303 \emph default
2304 \bar default
2305 \noun default
2306 \color inherit
2307
2308 \begin_inset Flex Code
2309 status collapsed
2310
2311 \begin_layout Plain Layout
2312
2313 \family typewriter
2314
2315 \backslash
2316 voffset
2317 \end_layout
2318
2319 \end_inset
2320
2321
2322 \family default
2323 が役立つわけです.
2324 \end_layout
2325
2326 \begin_layout Standard
2327
2328 \family roman
2329 \series medium
2330 \shape up
2331 \size normal
2332 \emph off
2333 \bar no
2334 \noun off
2335 \color none
2336 \begin_inset Flex Code
2337 status collapsed
2338
2339 \begin_layout Plain Layout
2340
2341 \family typewriter
2342
2343 \backslash
2344 hoffset
2345 \end_layout
2346
2347 \end_inset
2348
2349
2350 \family typewriter
2351 \series default
2352 \shape default
2353 \size default
2354 \emph default
2355 \bar default
2356 \noun default
2357 \color inherit
2358
2359 \begin_inset Flex Code
2360 status collapsed
2361
2362 \begin_layout Plain Layout
2363
2364 \family typewriter
2365
2366 \backslash
2367 voffset
2368 \end_layout
2369
2370 \end_inset
2371
2372
2373 \family roman
2374 \series medium
2375 \shape up
2376 \size normal
2377 \emph off
2378 \bar no
2379 \noun off
2380 \color none
2381 の既定値はともに0ポイント,つまりページをシフトしません.残念ながら,DVIドライバによってはつねにページをシフトすることがあるようです.我々には,どうしてその
2382 ようなことをするのか,そしてシスアドがどうしてそれを修正しないのか理解できませんが,もし個人的に管理できないシステムで\SpecialChar LyX
2383 を使用していて,シスアドがお馬鹿さんである
2384 場合には,
2385 \begin_inset Flex Code
2386 status collapsed
2387
2388 \begin_layout Plain Layout
2389
2390 \family typewriter
2391
2392 \backslash
2393 hoffset
2394 \end_layout
2395
2396 \end_inset
2397
2398
2399 \family typewriter
2400 \series default
2401 \shape default
2402 \size default
2403 \emph default
2404 \bar default
2405 \noun default
2406 \color inherit
2407
2408 \begin_inset Flex Code
2409 status collapsed
2410
2411 \begin_layout Plain Layout
2412
2413 \family typewriter
2414
2415 \backslash
2416 voffset
2417 \end_layout
2418
2419 \end_inset
2420
2421
2422 \family roman
2423 \series medium
2424 \shape up
2425 \size normal
2426 \emph off
2427 \bar no
2428 \noun off
2429 \color none
2430 が役に立ちます.かりに,上余白と左余白がつねに0.5インチずつ大きすぎるものとしましょう.その場合は,以下をプリアンブルに追加するとよいでしょう.
2431 \end_layout
2432
2433 \begin_layout LyX-Code
2434
2435 \backslash
2436 setlength{
2437 \backslash
2438 hoffset}{-0.5 in}
2439 \end_layout
2440
2441 \begin_layout LyX-Code
2442
2443 \backslash
2444 setlength{
2445 \backslash
2446 voffset}{-0.5 in}
2447 \end_layout
2448
2449 \begin_layout Standard
2450
2451 \family roman
2452 \series medium
2453 \shape up
2454 \size normal
2455 \emph off
2456 \bar no
2457 \noun off
2458 \color none
2459 これで余白が修正されます.
2460 \end_layout
2461
2462 \begin_layout Subsubsection
2463 例2:ラベル
2464 \end_layout
2465
2466 \begin_layout Standard
2467
2468 \family roman
2469 \series medium
2470 \shape up
2471 \size normal
2472 \emph off
2473 \bar no
2474 \noun off
2475 \color none
2476 いま,たくさんの宛名ラベルを印刷をしたいものとしましょう.ラベルシートを印刷するために便利な
2477 \begin_inset Flex Code
2478 status collapsed
2479
2480 \begin_layout Plain Layout
2481
2482 \family typewriter
2483 labels.sty
2484 \end_layout
2485
2486 \end_inset
2487
2488 という\SpecialChar LaTeX
2489 パッケージが,お近くのCTANアーカイブで入手可能です.お使いのシステムには,既定ではこのパッケージは導入されていないかもしれません.ご自身でお確かめくだ
2490 さい.また,このパッケージの取扱説明書を読まれたいかもしれませんが,それもご自身にお任せします.これは使用例ですので,このパッケージをどう使うかの例だけお見せす
2491 ることにします.
2492 \end_layout
2493
2494 \begin_layout Standard
2495
2496 \family roman
2497 \series medium
2498 \shape up
2499 \size normal
2500 \emph off
2501 \bar no
2502 \noun off
2503 \color none
2504 まず,
2505 \begin_inset Flex Code
2506 status collapsed
2507
2508 \begin_layout Plain Layout
2509
2510 \family sans
2511 article
2512 \end_layout
2513
2514 \end_inset
2515
2516 文書クラスを使用していることをご確認ください.次に,以下のような設定をプリアンブルに追加しなければなりません.
2517 \end_layout
2518
2519 \begin_layout LyX-Code
2520
2521 \backslash
2522 usepackage{labels}
2523 \end_layout
2524
2525 \begin_layout LyX-Code
2526
2527 \backslash
2528 LabelCols=3
2529 \end_layout
2530
2531 \begin_layout LyX-Code
2532
2533 \backslash
2534 LabelRows=7
2535 \end_layout
2536
2537 \begin_layout LyX-Code
2538
2539 \backslash
2540 LeftBorder=8mm
2541 \end_layout
2542
2543 \begin_layout LyX-Code
2544
2545 \backslash
2546 RightBorder=8mm
2547 \end_layout
2548
2549 \begin_layout LyX-Code
2550
2551 \backslash
2552 TopBorder=9mm
2553 \end_layout
2554
2555 \begin_layout LyX-Code
2556
2557 \backslash
2558 BottomBorder=2mm
2559 \end_layout
2560
2561 \begin_layout Standard
2562
2563 \family roman
2564 \series medium
2565 \shape up
2566 \size normal
2567 \emph off
2568 \bar no
2569 \noun off
2570 \color none
2571 これは
2572 \family default
2573 \series default
2574 \shape default
2575 \size default
2576 \emph default
2577 \bar default
2578 \noun default
2579 \color inherit
2580 Averyラベルシートのストック5360
2581 \family roman
2582 \series medium
2583 \shape up
2584 \size normal
2585 \emph off
2586 \bar no
2587 \noun off
2588 \color none
2589 番を使用する場合の設定です.これで,各宛名を
2590 \begin_inset Flex Code
2591 status collapsed
2592
2593 \begin_layout Plain Layout
2594
2595 \family typewriter
2596
2597 \backslash
2598 begin{labels}
2599 \end_layout
2600
2601 \end_inset
2602
2603
2604 \family typewriter
2605 \series default
2606 \shape default
2607 \size default
2608 \emph default
2609 \bar default
2610 \noun default
2611 \color inherit
2612
2613 \begin_inset Flex Code
2614 status collapsed
2615
2616 \begin_layout Plain Layout
2617
2618 \family typewriter
2619
2620 \backslash
2621 end{labels}
2622 \end_layout
2623
2624 \end_inset
2625
2626
2627 \family roman
2628 \series medium
2629 \shape up
2630 \size normal
2631 \emph off
2632 \bar no
2633 \noun off
2634 \color none
2635 で囲めば,宛名ラベルの印刷をすることができます.本機能およびその他の機能に関しては,
2636 \begin_inset Flex Code
2637 status collapsed
2638
2639 \begin_layout Plain Layout
2640
2641 \family typewriter
2642 labels.sty
2643 \end_layout
2644
2645 \end_inset
2646
2647 の取扱説明書に説明されています.
2648 \end_layout
2649
2650 \begin_layout Standard
2651
2652 \family roman
2653 \series medium
2654 \shape up
2655 \size normal
2656 \emph off
2657 \bar no
2658 \noun off
2659 \color none
2660 そのうち誰かが,このパッケージを直接サポートする\SpecialChar LyX
2661 レイアウトファイルを作ってくれるかもしれません.その誰かはあなたかもしれません.
2662 \end_layout
2663
2664 \begin_layout Subsubsection
2665 例3: 段落の字下げ
2666 \end_layout
2667
2668 \begin_layout Standard
2669
2670 \family roman
2671 \series medium
2672 \shape up
2673 \size normal
2674 \emph off
2675 \bar no
2676 \noun off
2677 \color none
2678 アメリカ人は
2679 \family default
2680 \series default
2681 \shape default
2682 \size default
2683 \emph default
2684 \bar default
2685 \noun default
2686 \color inherit
2687
2688 \emph on
2689 すべての
2690 \family roman
2691 \series medium
2692 \shape up
2693 \size normal
2694 \emph off
2695 \bar no
2696 \noun off
2697 \color none
2698 段落の最初の行を字下げするように教育されています.そのために彼らの他の変な習慣と同じく,いつものようにすべての段落の最初の行を下げるまで,アメリカ人はごちゃごち
2699 ゃと文句を言いつづけるのです
2700 \family default
2701 \series default
2702 \shape default
2703 \size default
2704 \emph default
2705 \bar default
2706 \noun default
2707 \color inherit
2708 .(これはユーモアです.(ほんと?)
2709 \emph on
2710 ユーモアですってば
2711 \emph default
2712 .)
2713 \end_layout
2714
2715 \begin_layout Standard
2716
2717 \family roman
2718 \series medium
2719 \shape up
2720 \size normal
2721 \emph off
2722 \bar no
2723 \noun off
2724 \color none
2725 もちろん,これは標準的な組版ルールではありません.書籍では,典型的には,他の段落のあとにくる段落
2726 \family default
2727 \series default
2728 \shape default
2729 \size default
2730 \emph on
2731 \bar default
2732 \noun default
2733 \color inherit
2734 のみ
2735 \family roman
2736 \series medium
2737 \shape up
2738 \size normal
2739 \emph off
2740 \bar no
2741 \noun off
2742 \color none
2743 字下げを行ないます.一行めを字下げをするそもそもの目的は,隣接する段落から区別するためです.したがって,図のあとや節の最初の段落など,先行する段落がない場合には
2744 ,字下げをする必要はないのです.
2745 \end_layout
2746
2747 \begin_layout Standard
2748
2749 \family roman
2750 \series medium
2751 \shape up
2752 \size normal
2753 \emph off
2754 \bar no
2755 \noun off
2756 \color none
2757 けれどもあなたが典型的なアメリカ人なら(ユーーモアですって!),そのような小難しいことはかまわずに,いつもどおりの字下げをせずにはいられないでしょう!プリアンブ
2758 ルに次の行を加えて下さい.
2759 \end_layout
2760
2761 \begin_layout LyX-Code
2762
2763 \backslash
2764 usepackage{indentfirst}
2765 \end_layout
2766
2767 \begin_layout Standard
2768
2769 \family roman
2770 \series medium
2771 \shape up
2772 \size normal
2773 \emph off
2774 \bar no
2775 \noun off
2776 \color none
2777 もしお使いの\SpecialChar TeX
2778 頒布版が脳死状態でなければ,このパッケージが入っているはずなので,建国の父たちが意図したように,すべての段落が字下げされます.
2779 \end_layout
2780
2781 \begin_layout Subsubsection
2782 例4:この文書
2783 \end_layout
2784
2785 \begin_layout Standard
2786
2787 \family roman
2788 \series medium
2789 \shape up
2790 \size normal
2791 \emph off
2792 \bar no
2793 \noun off
2794 \color none
2795 この文書のプリアンブルを見てみると,どのような高度な設定ができるか,おおまかな理解が得られるでしょう.また第
2796 \family default
2797 \series default
2798 \shape default
2799 \size default
2800 \emph default
2801 \bar default
2802 \noun default
2803 \color inherit
2804
2805 \begin_inset CommandInset ref
2806 LatexCommand ref
2807 reference "chap:Special-features"
2808
2809 \end_inset
2810
2811
2812 \family roman
2813 \series medium
2814 \shape up
2815 \size normal
2816 \emph off
2817 \bar no
2818 \noun off
2819 \color none
2820 章には,他の例や,\SpecialChar LaTeX
2821 の各種の「汚い技」があります.
2822 \end_layout
2823
2824 \begin_layout Section
2825 \SpecialChar LyX
2826 および\SpecialChar LaTeX
2827 のエラー
2828 \end_layout
2829
2830 \begin_layout Standard
2831
2832 \family roman
2833 \series medium
2834 \shape up
2835 \size normal
2836 \emph off
2837 \bar no
2838 \noun off
2839 \color none
2840 \SpecialChar LyX
2841 が\SpecialChar LaTeX
2842 を呼び出す際,\SpecialChar LyX
2843 は\SpecialChar LaTeX
2844 に,かりにエラーがあったとしても楽観的に無視して先に進むように指示します.その後\SpecialChar LyX
2845 は,\SpecialChar LaTeX
2846 の実行ログファイルを事後処理用に使います.ログファイルを分
2847 析したのち,\SpecialChar LyX
2848 はエラーを一覧表示するダイアログを表示します.エラーのうちどれかをクリックすると,\SpecialChar LyX
2849 ファイル中,そのエラーの発生した場所に表示を移動します
2850 \begin_inset Foot
2851 status collapsed
2852
2853 \begin_layout Plain Layout
2854
2855 \family roman
2856 \series medium
2857 \shape up
2858 \size normal
2859 \emph off
2860 \bar no
2861 \noun off
2862 \color none
2863 正確にいうと,通常は,です.ログファイルの分析は難しい仕事ですので,\SpecialChar LyX
2864 はつねに正しい行に連れて行ってくれるとは限りません.ときには,\SpecialChar LaTeX
2865 がある行にエラーがあると報告し
2866 たとしても,実際のエラーはそれよりも前であることもあります.これは,プログラムで閉じ括弧を忘れたときに似ていなくもありません.エラーは表示されますが,実際にエラ
2867 ーのある場所よりも後ろでエラーが報告されるのです.
2868 \end_layout
2869
2870 \end_inset
2871
2872
2873 \family default
2874 \series default
2875 \shape default
2876 \size default
2877 \emph default
2878 \bar default
2879 \noun default
2880 \color inherit
2881
2882 \end_layout
2883
2884 \begin_layout Standard
2885
2886 \family roman
2887 \series medium
2888 \shape up
2889 \size normal
2890 \emph off
2891 \bar no
2892 \noun off
2893 \color none
2894 人によっては,ログファイルを直接ご覧になりたいかもしれません.これは,
2895 \begin_inset Flex MenuItem
2896 status collapsed
2897
2898 \begin_layout Plain Layout
2899
2900 \family roman
2901 \series medium
2902 \shape up
2903 \size normal
2904 \emph off
2905 \bar no
2906 \noun off
2907 \color none
2908 文書\SpecialChar menuseparator
2909 LaTeXログ
2910 \end_layout
2911
2912 \end_inset
2913
2914 で見ることができます.エラーメッセージや警告には,よく見かけるものがいくつかありますので,それらをここに収録しておきます.ここにないエラーや警告に関しては,La\SpecialChar TeX
2915
2916 関連の良書を参照してください.
2917 \end_layout
2918
2919 \begin_layout Itemize
2920
2921 \family typewriter
2922 \begin_inset Flex Code
2923 status collapsed
2924
2925 \begin_layout Plain Layout
2926
2927 \family typewriter
2928 LaTeX Warning
2929 \end_layout
2930
2931 \end_inset
2932
2933
2934 \family roman
2935 \series medium
2936 \shape up
2937 \size normal
2938 \emph off
2939 \bar no
2940 \noun off
2941 \color none
2942
2943 \begin_inset Newline newline
2944 \end_inset
2945
2946 これで始まるメッセージは,\SpecialChar LaTeX
2947 コード自体を「デバッグ」するための警告メッセージです.相互参照や書誌情報を追加したり変更した場合に,もう一度\SpecialChar LaTeX
2948 を実行する必要があることを
2949 知らせるために,このようなメッセージが表示されます.このメッセージは,だいたいにおいて無視しても大丈夫です.
2950 \end_layout
2951
2952 \begin_layout Itemize
2953
2954 \family typewriter
2955 \begin_inset Flex Code
2956 status collapsed
2957
2958 \begin_layout Plain Layout
2959
2960 \family typewriter
2961 LaTeX Font Warning
2962 \end_layout
2963
2964 \end_inset
2965
2966
2967 \family roman
2968 \series medium
2969 \shape up
2970 \size normal
2971 \emph off
2972 \bar no
2973 \noun off
2974 \color none
2975
2976 \begin_inset Newline newline
2977 \end_inset
2978
2979 \SpecialChar LaTeX
2980 がフォントを見つけられなかったと言う警告メッセージです.多くの場合,このメッセージの後に,\SpecialChar LaTeX
2981 が使用した代替フォントに関する情報が続きます.これも無視して構いません
2982
2983 \end_layout
2984
2985 \begin_layout Itemize
2986
2987 \family roman
2988 \series medium
2989 \shape up
2990 \size normal
2991 \emph off
2992 \bar no
2993 \noun off
2994 \color none
2995 \begin_inset Flex Code
2996 status collapsed
2997
2998 \begin_layout Plain Layout
2999
3000 \family typewriter
3001 Overfull 
3002 \backslash
3003 hbox
3004 \end_layout
3005
3006 \end_inset
3007
3008
3009 \begin_inset Newline newline
3010 \end_inset
3011
3012 \SpecialChar LaTeX
3013 は,
3014 \family default
3015 \series default
3016 \shape default
3017 \size default
3018 \emph on
3019 \bar default
3020 \noun default
3021 \color inherit
3022 ほぼどんなときでも
3023 \family roman
3024 \series medium
3025 \shape up
3026 \size normal
3027 \emph off
3028 \bar no
3029 \noun off
3030 \color none
3031 この警告を吐き出します.これは,一行が長すぎて右余白にはみ出してしまったという警告ですが,ほとんどの場合,最終出力を見ても判別できないくらい(せいぜい1ポイント
3032 か2ポイント)です.あるいは1文字か2文字右余白に出ているくらいです.\SpecialChar LaTeX
3033 は,どんな文書を書いても,少なくとも一つはこのメッセージを出すようです.
3034 \begin_inset Newline newline
3035 \end_inset
3036
3037 このメッセージは無視しても大丈夫です.何か行が長すぎるような問題があれば,目で見ればわかります.出力を目で確認してください
3038 \begin_inset Foot
3039 status collapsed
3040
3041 \begin_layout Plain Layout
3042 あるいは,
3043 \begin_inset Flex MenuItem
3044 status collapsed
3045
3046 \begin_layout Plain Layout
3047 文書\SpecialChar menuseparator
3048 設定
3049 \end_layout
3050
3051 \end_inset
3052
3053 で「draft」オプションを指定する方法もあります.こうすると,\SpecialChar LaTeX
3054 は,overfullの発生した行の余白に黒い四角を描画します.
3055 \end_layout
3056
3057 \end_inset
3058
3059
3060 \end_layout
3061
3062 \begin_layout Itemize
3063
3064 \family typewriter
3065 \begin_inset Flex Code
3066 status collapsed
3067
3068 \begin_layout Plain Layout
3069
3070 \family typewriter
3071 Underfull 
3072 \backslash
3073 hbox
3074 \end_layout
3075
3076 \end_inset
3077
3078
3079 \begin_inset Newline newline
3080 \end_inset
3081
3082
3083 \family roman
3084 \series medium
3085 \shape up
3086 \size normal
3087 \emph off
3088 \bar no
3089 \noun off
3090 \color none
3091 これは上の警告と違ってあまり出てきません.なぜだかは分かりませんが,\SpecialChar LaTeX
3092 は1行を短めにする印字するよりは,長めにする方が好きなようです.
3093 \end_layout
3094
3095 \begin_layout Itemize
3096 \begin_inset Flex Code
3097 status collapsed
3098
3099 \begin_layout Plain Layout
3100
3101 \family typewriter
3102 Overfull 
3103 \backslash
3104 vbox
3105 \end_layout
3106
3107 \end_inset
3108
3109
3110 \family typewriter
3111
3112 \begin_inset Flex Code
3113 status collapsed
3114
3115 \begin_layout Plain Layout
3116
3117 \family typewriter
3118 Underfull 
3119 \backslash
3120 vbox
3121 \end_layout
3122
3123 \end_inset
3124
3125
3126 \family default
3127
3128 \begin_inset Newline newline
3129 \end_inset
3130
3131
3132 \family roman
3133 \series medium
3134 \shape up
3135 \size normal
3136 \emph off
3137 \bar no
3138 \noun off
3139 \color none
3140 ページ区切りに問題があったという警告です.この場合も,出力を目で確認してください.何か問題があれば,見てすぐわかります.
3141 \end_layout
3142
3143 \begin_layout Itemize
3144
3145 \family typewriter
3146 \begin_inset Flex Code
3147 status collapsed
3148
3149 \begin_layout Plain Layout
3150
3151 \family typewriter
3152 LaTeX Error: File 
3153 \begin_inset Quotes els
3154 \end_inset
3155
3156 Xxxx
3157 \begin_inset Quotes ers
3158 \end_inset
3159
3160  not found
3161 \end_layout
3162
3163 \end_inset
3164
3165
3166 \family roman
3167 \series medium
3168 \shape up
3169 \size normal
3170 \emph off
3171 \bar no
3172 \noun off
3173 \color none
3174
3175 \begin_inset Newline newline
3176 \end_inset
3177
3178 ファイル「Xxxx」が,システムに導入されていません.これは通常,文書が必要としている\SpecialChar LaTeX
3179 パッケージに,導入済でないものがある場合に現れます.プリアンブルに変更を加
3180 えておらず,
3181 \begin_inset Flex Code
3182 status collapsed
3183
3184 \begin_layout Plain Layout
3185
3186 \family typewriter
3187
3188 \backslash
3189 usepackage{}
3190 \end_layout
3191
3192 \end_inset
3193
3194 コマンドも使用していないとすれば,\SpecialChar LyX
3195 が読み込もうしているパッケージに存在しないものがあるということです.
3196 \family default
3197 \series default
3198 \shape default
3199 \size default
3200 \emph default
3201 \bar default
3202 \noun default
3203 \color inherit
3204
3205 \begin_inset Flex MenuItem
3206 status collapsed
3207
3208 \begin_layout Plain Layout
3209 ヘルプ\SpecialChar menuseparator
3210 \SpecialChar LaTeX
3211 の設定
3212 \end_layout
3213
3214 \end_inset
3215
3216
3217 \family roman
3218 \series medium
3219 \shape up
3220 \size normal
3221 \emph off
3222 \bar no
3223 \noun off
3224 \color none
3225 を使用して,\SpecialChar LyX
3226 が認識しているパッケージの一覧を得てください.このファイルは,(
3227 \begin_inset Flex MenuItem
3228 status collapsed
3229
3230 \begin_layout Plain Layout
3231
3232 \family roman
3233 \series medium
3234 \shape up
3235 \size normal
3236 \emph off
3237 \bar no
3238 \noun off
3239 \color none
3240 ツール\SpecialChar menuseparator
3241 再設定
3242 \end_layout
3243
3244 \end_inset
3245
3246 を使用して)\SpecialChar LyX
3247 の再設定を行うたびに更新され,どのパッケージが検出されたか,それらのパッケージが何をするものかを表示します.
3248 \begin_inset Newline newline
3249 \end_inset
3250
3251
3252 \family sans
3253 \series default
3254 \shape default
3255 \size default
3256 \emph default
3257 \bar default
3258 \noun default
3259 \color inherit
3260
3261 \begin_inset Flex Code
3262 status collapsed
3263
3264 \begin_layout Plain Layout
3265
3266 \family sans
3267
3268 \backslash
3269 usepackage{}
3270 \end_layout
3271
3272 \end_inset
3273
3274
3275 \family roman
3276 \series medium
3277 \shape up
3278 \size normal
3279 \emph off
3280 \bar no
3281 \noun off
3282 \color none
3283 コマンドを使っていて,肝心のパッケージが導入されていない場合には,ご自身で導入する必要があります.
3284 \end_layout
3285
3286 \begin_layout Itemize
3287
3288 \family typewriter
3289 \begin_inset Flex Code
3290 status collapsed
3291
3292 \begin_layout Plain Layout
3293
3294 \family typewriter
3295 LaTeX Error: Unknown option
3296 \end_layout
3297
3298 \end_inset
3299
3300
3301 \family roman
3302 \series medium
3303 \shape up
3304 \size normal
3305 \emph off
3306 \bar no
3307 \noun off
3308 \color none
3309
3310 \begin_inset Newline newline
3311 \end_inset
3312
3313 このように始まるエラーメッセージは,パッケージに誤ったあるいは未定義のオプションが指定されていることを伝えようとするものです.パッケージの取扱説明書をご確認くだ
3314 さい.
3315 \end_layout
3316
3317 \begin_layout Itemize
3318
3319 \family typewriter
3320 \begin_inset Flex Code
3321 status collapsed
3322
3323 \begin_layout Plain Layout
3324
3325 \family typewriter
3326 Undefined control sequence
3327 \end_layout
3328
3329 \end_inset
3330
3331
3332 \family roman
3333 \series medium
3334 \shape up
3335 \size normal
3336 \emph off
3337 \bar no
3338 \noun off
3339 \color none
3340
3341 \begin_inset Newline newline
3342 \end_inset
3343
3344 お使いの文書に\SpecialChar LaTeX
3345 コードを挿入した際,打ち間違いをしてしまうと,このようなメッセージが表示されます.あるいは,パッケージを読み込ませるのを忘れたのかもしれません.い
3346 ずれにしても,このメッセージは,あなたが未定義のコマンドを使用したことを示しています.
3347 \end_layout
3348
3349 \begin_layout Standard
3350
3351 \family roman
3352 \series medium
3353 \shape up
3354 \size normal
3355 \emph off
3356 \bar no
3357 \noun off
3358 \color none
3359 これ以外にも,エラーメッセージや警告メッセージがあります.一般に,読んで意味がすぐにわかるものは,\SpecialChar LaTeX
3360 のメッセージです.何を言っているのかさっぱりわからないものもあ
3361 りますが,通常これらは,\SpecialChar TeX
3362 のメッセージであり,それが何を意味しているのか,どのように解読すればいいのか,
3363 \family default
3364 \series default
3365 \shape default
3366 \size default
3367 \emph on
3368 \bar default
3369 \noun default
3370 \color inherit
3371 まったく
3372 \family roman
3373 \series medium
3374 \shape up
3375 \size normal
3376 \emph off
3377 \bar no
3378 \noun off
3379 \color none
3380 手がかりがありません.誰もわからないのです.
3381 \end_layout
3382
3383 \begin_layout Standard
3384
3385 \family roman
3386 \series medium
3387 \shape up
3388 \size normal
3389 \emph off
3390 \bar no
3391 \noun off
3392 \color none
3393 エラーメッセージが表示された場合は,つねに以下のチェックリストにしたがった方がよいでしょう.
3394 \end_layout
3395
3396 \begin_layout Enumerate
3397
3398 \family roman
3399 \series medium
3400 \shape up
3401 \size normal
3402 \emph off
3403 \bar no
3404 \noun off
3405 \color none
3406 ご自分で挿入した\SpecialChar LaTeX
3407 コードに打ち間違いがないかどうか確かめる.
3408 \end_layout
3409
3410 \begin_layout Enumerate
3411
3412 \family roman
3413 \series medium
3414 \shape up
3415 \size normal
3416 \emph off
3417 \bar no
3418 \noun off
3419 \color none
3420 打ち間違いがなければ,コマンドを正しく使ったかどうか確かめる.
3421 \end_layout
3422
3423 \begin_layout Enumerate
3424
3425 \family roman
3426 \series medium
3427 \shape up
3428 \size normal
3429 \emph off
3430 \bar no
3431 \noun off
3432 \color none
3433 文書のもっともはじめの部分にエラーボックスが多数積み上がった場合には—特に
3434 \begin_inset Flex Code
3435 status collapsed
3436
3437 \begin_layout Plain Layout
3438
3439 \family roman
3440 \series medium
3441 \shape up
3442 \size normal
3443 \emph off
3444 \bar no
3445 \noun off
3446 \color none
3447 Missing 
3448 \backslash
3449 begin{document}
3450 \end_layout
3451
3452 \end_inset
3453
3454 が表示されているならば—,プリアンブルにエラーがあることを意味します.プリアンブルのデバックを行ってください.
3455 \end_layout
3456
3457 \begin_layout Enumerate
3458
3459 \family roman
3460 \series medium
3461 \shape up
3462 \size normal
3463 \emph off
3464 \bar no
3465 \noun off
3466 \color none
3467 プリアンブルに何も追加せず,文書に\SpecialChar LaTeX
3468 コードをまったく挿入しなかった場合には,\SpecialChar LaTeX
3469 頒布版自体をまず疑ってください.導入されていないパッケージを探しだして,導入してくださ
3470 い.
3471 \end_layout
3472
3473 \begin_layout Enumerate
3474
3475 \family roman
3476 \series medium
3477 \shape up
3478 \size normal
3479 \emph off
3480 \bar no
3481 \noun off
3482 \color none
3483 導入されていないパッケージはなかったものとしましょう.\SpecialChar LyX
3484 を微調整するオプションを使用していますか.特に,手動で
3485 \begin_inset Flex Code
3486 status collapsed
3487
3488 \begin_layout Plain Layout
3489
3490 \family sans
3491 Protected
3492 \begin_inset space ~
3493 \end_inset
3494
3495 Blank
3496 \end_layout
3497
3498 \end_inset
3499
3500
3501 \begin_inset Flex Code
3502 status collapsed
3503
3504 \begin_layout Plain Layout
3505
3506 \family sans
3507 Linebreak
3508 \end_layout
3509
3510 \end_inset
3511
3512
3513 \family sans
3514 \series default
3515 \shape default
3516 \size default
3517 \emph default
3518 \bar default
3519 \noun default
3520 \color inherit
3521
3522 \begin_inset Flex Code
3523 status collapsed
3524
3525 \begin_layout Plain Layout
3526
3527 \family sans
3528 Pagebreak
3529 \end_layout
3530
3531 \end_inset
3532
3533
3534 \family roman
3535 \series medium
3536 \shape up
3537 \size normal
3538 \emph off
3539 \bar no
3540 \noun off
3541 \color none
3542 などをたくさん挿入するなど,微調整オプションを
3543 \family default
3544 \series default
3545 \shape default
3546 \size default
3547 \emph on
3548 \bar default
3549 \noun default
3550 \color inherit
3551 悪用
3552 \family roman
3553 \series medium
3554 \shape up
3555 \size normal
3556 \emph off
3557 \bar no
3558 \noun off
3559 \color none
3560 していませんか.適切な段落環境を使用する代わりに,これらを使用してその場をしのごうとしていませんか.
3561 \end_layout
3562
3563 \begin_layout Enumerate
3564
3565 \family roman
3566 \series medium
3567 \shape up
3568 \size normal
3569 \emph off
3570 \bar no
3571 \noun off
3572 \color none
3573 微調整オプションはまったく使用しておらず,規則に乗っ取って作業していたものとしましょう.何か曲芸のようなことをしようとはしていませんか.数式や表中で,たとえば表
3574 のセルに図を入れるなど,おかしなことをしようとしていませんか.
3575 \end_layout
3576
3577 \begin_layout Enumerate
3578 \SpecialChar LaTeX
3579 が改行位置を見つけられないほど長い一節がありませんか.既定では,改行するために単語間に空白をたくさん追加することを,\SpecialChar LaTeX
3580 はかなり嫌います.可能であれば,問題が生じな
3581 いように段落を修正するのが望ましいでしょう.
3582 \end_layout
3583
3584 \begin_layout Enumerate
3585
3586 \family roman
3587 \series medium
3588 \shape up
3589 \size normal
3590 \emph off
3591 \bar no
3592 \noun off
3593 \color none
3594 入れ子の階層を深くしすぎていませんか.\SpecialChar LyX
3595 は,(今のところ)環境の入れ子の階層が制限内にあるかチェックしません.かりに,環境を17段の入れ子にしたりしていたら,それ
3596 が原因です(\SpecialChar LaTeX
3597 の上限は5段です).
3598 \end_layout
3599
3600 \begin_layout Enumerate
3601
3602 \family roman
3603 \series medium
3604 \shape up
3605 \size normal
3606 \emph off
3607 \bar no
3608 \noun off
3609 \color none
3610 エラーメッセージは発生しないけれども,出力がひどいものとしましょう.図表が幅が広すぎたり長すぎてページに収まらない場合には,
3611 \end_layout
3612
3613 \begin_deeper
3614 \begin_layout Enumerate
3615
3616 \family roman
3617 \series medium
3618 \shape up
3619 \size normal
3620 \emph off
3621 \bar no
3622 \noun off
3623 \color none
3624 図がページに合うように大きさを変える,
3625 \end_layout
3626
3627 \begin_layout Enumerate
3628
3629 \family roman
3630 \series medium
3631 \shape up
3632 \size normal
3633 \emph off
3634 \bar no
3635 \noun off
3636 \color none
3637 表がページに合うように削る,
3638 \end_layout
3639
3640 \begin_layout Standard
3641
3642 \family roman
3643 \series medium
3644 \shape up
3645 \size normal
3646 \emph off
3647 \bar no
3648 \noun off
3649 \color none
3650 などの手段を採る必要があります.
3651 \end_layout
3652
3653 \end_deeper
3654 \begin_layout Enumerate
3655 他に出力におかしいところがあり,曲芸をやろうとしたり微調整オプションでしのごうとしたりはしていないとすれば,何がおかしいのか確定的なことは言えません.
3656 \end_layout
3657
3658 \begin_layout Standard
3659
3660 \family roman
3661 \series medium
3662 \shape up
3663 \size normal
3664 \emph off
3665 \bar no
3666 \noun off
3667 \color none
3668 これらすべてが役に立たないとすれば,
3669 \family default
3670 \series default
3671 \shape default
3672 \size default
3673 \emph on
3674 \bar default
3675 \noun default
3676 \color inherit
3677 ひょっとしたら
3678 \family roman
3679 \series medium
3680 \shape up
3681 \size normal
3682 \emph off
3683 \bar no
3684 \noun off
3685 \color none
3686 \SpecialChar LyX
3687 のバグを発見したのかもしれません‥‥.
3688 \end_layout
3689
3690 \begin_layout Chapter
3691 補完ツール
3692 \end_layout
3693
3694 \begin_layout Section
3695 Bib\SpecialChar TeX
3696
3697 \change_inserted 34634807 1499889868
3698
3699 \lang english
3700  or Biblatex
3701 \change_unchanged
3702
3703 \lang japanese
3704 よる書誌情報のカスタマイズ
3705 \end_layout
3706
3707 \begin_layout Standard
3708 Bib\SpecialChar TeX
3709
3710 \change_inserted 34634807 1499889904
3711
3712 \lang english
3713  or 
3714 \family sans
3715 Biblatex
3716 \family default
3717  
3718 \change_unchanged
3719
3720 \lang japanese
3721 の基本的な使用法は,『
3722 \emph on
3723 ユーザーの手引き
3724 \emph default
3725 』の「
3726 \emph on
3727 文献データベース
3728 \change_deleted 34634807 1499889896
3729 (Bib\SpecialChar TeX
3730 )
3731 \change_unchanged
3732
3733 \emph default
3734 」の節に説明があります.以下の各小節では,\SpecialChar LyX
3735 でサポートされている書誌情報の特別な機能について説明することとします.
3736 \end_layout
3737
3738 \begin_layout Subsection
3739 他の引用様式
3740 \end_layout
3741
3742 \begin_layout Standard
3743 標準のBib\SpecialChar TeX
3744
3745 \change_deleted 34634807 1499890024
3746 は,引用された著作を参照するのに,([12]のように)数字を使用します.しかし,多くの科学分野で,これとは異なる引用様式が用いられています.もっともよく見られる
3747 のは,著者-出版年様式(例:Knuth 1984a)です.\SpecialChar LyX
3748 は,この様式を提供する2つのパッケージ
3749 \begin_inset Flex Code
3750 status collapsed
3751
3752 \begin_layout Plain Layout
3753 natbib
3754 \end_layout
3755
3756 \end_inset
3757
3758
3759 \begin_inset Flex Code
3760 status collapsed
3761
3762 \begin_layout Plain Layout
3763 jurabib
3764 \end_layout
3765
3766 \end_inset
3767
3768 をサポートしています.これらのパッケージには,それぞれ長所短所がありますが,ここでは詳細に立ち入る紙幅がありません.単純な著者-出版年様式(あるいは著者-番号)
3769 様式が欲しい場合や,無数にある
3770 \begin_inset Flex Code
3771 status collapsed
3772
3773 \begin_layout Plain Layout
3774 natbib
3775 \end_layout
3776
3777 \end_inset
3778
3779 用スタイルファイルのうちどれかを使用したい場合には,定評のある
3780 \begin_inset Flex Code
3781 status collapsed
3782
3783 \begin_layout Plain Layout
3784 natbib
3785 \end_layout
3786
3787 \end_inset
3788
3789 パッケージがおそらくよい選択でしょう.短縮タイトルによる参照や
3790 \emph on
3791 ibid.
3792 \emph default
3793 など,特別な機能が必要な場合には,
3794 \begin_inset Flex Code
3795 status collapsed
3796
3797 \begin_layout Plain Layout
3798 jurabib
3799 \end_layout
3800
3801 \end_inset
3802
3803 パッケージの利用を考えるとよいかもしれません.
3804 \end_layout
3805
3806 \begin_layout Standard
3807
3808 \change_deleted 34634807 1499890024
3809 \SpecialChar LyX
3810 での両パッケージの取扱い方は,ほぼ同じです.
3811 \begin_inset Flex MenuItem
3812 status collapsed
3813
3814 \begin_layout Plain Layout
3815 文書\SpecialChar menuseparator
3816 設定
3817 \end_layout
3818
3819 \end_inset
3820
3821 メニューを開き,
3822 \begin_inset Flex MenuItem
3823 status collapsed
3824
3825 \begin_layout Plain Layout
3826 書誌情報
3827 \end_layout
3828
3829 \end_inset
3830
3831 項目から
3832 \begin_inset Flex MenuItem
3833 status collapsed
3834
3835 \begin_layout Plain Layout
3836 Natbib
3837 \end_layout
3838
3839 \end_inset
3840
3841 オプションか
3842 \begin_inset Flex MenuItem
3843 status collapsed
3844
3845 \begin_layout Plain Layout
3846 Jurabib
3847 \end_layout
3848
3849 \end_inset
3850
3851 オプションを選択してください.これらのパッケージによって,引用ダイアログに機能が追加され,参照の様式が選択できるようになります(「Knuth 1984」,「Kn
3852 uth (1984)」,「Knuth, 1984」,「1984」など).両パッケージは,専用にデザインされたスタイルファイルを必要とすることに注意してください.
3853 両者ともそれ自身のスタイルファイルを同梱していますが,他にもたくさんの追加スタイルファイルがありますし,
3854 \begin_inset Flex Code
3855 status collapsed
3856
3857 \begin_layout Plain Layout
3858 natbib
3859 \end_layout
3860
3861 \end_inset
3862
3863 に至っては,対話的なスタイルファイルビルダーさえ存在します
3864 \begin_inset Foot
3865 status collapsed
3866
3867 \begin_layout Plain Layout
3868 \begin_inset Flex URL
3869 status open
3870
3871 \begin_layout Plain Layout
3872
3873 ftp://ctan.tug.org/tex-archive/macros/latex/contrib/custom-bib/
3874 \end_layout
3875
3876 \end_inset
3877
3878 をご参照ください.
3879 \end_layout
3880
3881 \end_inset
3882
3883
3884 \change_inserted 34634807 1499890031
3885
3886 \end_layout
3887
3888 \begin_layout Standard
3889
3890 \change_inserted 34634807 1499890044
3891
3892 \lang english
3893 Standard Bib\SpecialChar TeX
3894  uses numbers (e.
3895 \begin_inset space \thinspace{}
3896 \end_inset
3897
3898 g.
3899 \begin_inset space \space{}
3900 \end_inset
3901
3902
3903 \begin_inset Quotes eld
3904 \end_inset
3905
3906 [12]
3907 \begin_inset Quotes erd
3908 \end_inset
3909
3910 ) to refer to a cited work.
3911  However, in many scientific disciplines, other citation styles are in use.
3912  The most common one is the author-year style (e.
3913 \begin_inset space \thinspace{}
3914 \end_inset
3915
3916 g.
3917 \begin_inset space \space{}
3918 \end_inset
3919
3920
3921 \begin_inset Quotes eld
3922 \end_inset
3923
3924 Knuth 1984a
3925 \begin_inset Quotes erd
3926 \end_inset
3927
3928 ).
3929  \SpecialChar LyX
3930  supports three packages that provide this style, 
3931 \begin_inset Flex Code
3932 status collapsed
3933
3934 \begin_layout Plain Layout
3935
3936 \change_inserted 34634807 1499890044
3937
3938 \lang english
3939 biblatex
3940 \end_layout
3941
3942 \end_inset
3943
3944
3945 \begin_inset Flex Code
3946 status collapsed
3947
3948 \begin_layout Plain Layout
3949
3950 \change_inserted 34634807 1499890044
3951
3952 \lang english
3953 natbib
3954 \end_layout
3955
3956 \end_inset
3957
3958 , and 
3959 \begin_inset Flex Code
3960 status collapsed
3961
3962 \begin_layout Plain Layout
3963
3964 \change_inserted 34634807 1499890044
3965
3966 \lang english
3967 jurabib
3968 \end_layout
3969
3970 \end_inset
3971
3972 .
3973  Each of these packages has their pros and cons, which cannot be listed
3974  in detail.
3975  If you only want to have simple author-year (or author-numerical) style,
3976  or if you want to use one of the countless style files for 
3977 \begin_inset Flex Code
3978 status collapsed
3979
3980 \begin_layout Plain Layout
3981
3982 \change_inserted 34634807 1499890044
3983
3984 \lang english
3985 natbib
3986 \end_layout
3987
3988 \end_inset
3989
3990 , then the established 
3991 \begin_inset Flex Code
3992 status collapsed
3993
3994 \begin_layout Plain Layout
3995
3996 \change_inserted 34634807 1499890044
3997
3998 \lang english
3999 natbib
4000 \end_layout
4001
4002 \end_inset
4003
4004  package is probably your choice.
4005  If you look for specific citation styles common in law studies, you might
4006  consider the 
4007 \begin_inset Flex Code
4008 status collapsed
4009
4010 \begin_layout Plain Layout
4011
4012 \change_inserted 34634807 1499890044
4013
4014 \lang english
4015 jurabib
4016 \end_layout
4017
4018 \end_inset
4019
4020  package.
4021  If you want to have full control over the formatting or look for advanced
4022  features such as ibidem, footnote citations, full title citations, advanced
4023  date formats (such as 400 BC) or full localization to other languages than
4024  English, you should definitely consider 
4025 \begin_inset Flex Code
4026 status collapsed
4027
4028 \begin_layout Plain Layout
4029
4030 \change_inserted 34634807 1499890044
4031
4032 \lang english
4033 biblatex
4034 \end_layout
4035
4036 \end_inset
4037
4038 , which exceeds all other packages in terms of features, but is also quite
4039  heavy and more resource-hungry.
4040 \end_layout
4041
4042 \begin_layout Standard
4043
4044 \change_inserted 34634807 1499890044
4045
4046 \lang english
4047 The handling of these packages in \SpecialChar LyX
4048  is basically the same.
4049  Go to 
4050 \begin_inset Flex Noun
4051 status collapsed
4052
4053 \begin_layout Plain Layout
4054
4055 \change_inserted 34634807 1499890044
4056
4057 \lang english
4058 Document\SpecialChar menuseparator
4059 Settings
4060 \end_layout
4061
4062 \end_inset
4063
4064  and select under 
4065 \begin_inset Flex Noun
4066 status collapsed
4067
4068 \begin_layout Plain Layout
4069
4070 \change_inserted 34634807 1499890044
4071
4072 \lang english
4073 Bibliography
4074 \end_layout
4075
4076 \end_inset
4077
4078  the 
4079 \begin_inset Flex Noun
4080 status collapsed
4081
4082 \begin_layout Plain Layout
4083
4084 \change_inserted 34634807 1499890044
4085
4086 \lang english
4087 Style Format
4088 \end_layout
4089
4090 \end_inset
4091
4092  
4093 \begin_inset Flex Noun
4094 status collapsed
4095
4096 \begin_layout Plain Layout
4097
4098 \change_inserted 34634807 1499890044
4099
4100 \lang english
4101 Biblatex
4102 \end_layout
4103
4104 \end_inset
4105
4106
4107 \begin_inset Flex Noun
4108 status collapsed
4109
4110 \begin_layout Plain Layout
4111
4112 \change_inserted 34634807 1499890044
4113
4114 \lang english
4115 Biblatex (Natbib mode)
4116 \end_layout
4117
4118 \end_inset
4119
4120
4121 \begin_inset Flex Noun
4122 status collapsed
4123
4124 \begin_layout Plain Layout
4125
4126 \change_inserted 34634807 1499890044
4127
4128 \lang english
4129 Natbib (BibTeX)
4130 \end_layout
4131
4132 \end_inset
4133
4134  or 
4135 \begin_inset Flex Noun
4136 status collapsed
4137
4138 \begin_layout Plain Layout
4139
4140 \change_inserted 34634807 1499890044
4141
4142 \lang english
4143 Jurabib (BibTeX)
4144 \end_layout
4145
4146 \end_inset
4147
4148  (see sec.
4149 \begin_inset space ~
4150 \end_inset
4151
4152 6.5.3 in the User's Guide for more information on these choices).
4153  With all these packages, you will get some extra features in the citation
4154  dialog and you can select the style of the reference (
4155 \begin_inset Quotes eld
4156 \end_inset
4157
4158 Knuth 1984
4159 \begin_inset Quotes erd
4160 \end_inset
4161
4162
4163 \begin_inset Quotes eld
4164 \end_inset
4165
4166 Knuth (1984)
4167 \begin_inset Quotes erd
4168 \end_inset
4169
4170
4171 \begin_inset Quotes eld
4172 \end_inset
4173
4174 Knuth, 1984
4175 \begin_inset Quotes erd
4176 \end_inset
4177
4178
4179 \begin_inset Quotes eld
4180 \end_inset
4181
4182 1984
4183 \begin_inset Quotes erd
4184 \end_inset
4185
4186  etc.).
4187  Note that either package needs specifically designed style files.
4188  They all ship their own, but there are lots of additional style files,
4189  and there is even an interactive style file builder
4190 \begin_inset Foot
4191 status collapsed
4192
4193 \begin_layout Plain Layout
4194
4195 \change_inserted 34634807 1499890044
4196
4197 \lang english
4198 See 
4199 \begin_inset Flex URL
4200 status open
4201
4202 \begin_layout Plain Layout
4203
4204 \change_inserted 34634807 1499890044
4205
4206 ftp://ctan.tug.org/tex-archive/macros/latex/contrib/custom-bib/
4207 \end_layout
4208
4209 \end_inset
4210
4211
4212 \end_layout
4213
4214 \end_inset
4215
4216  for 
4217 \begin_inset Flex Code
4218 status collapsed
4219
4220 \begin_layout Plain Layout
4221
4222 \change_inserted 34634807 1499890044
4223
4224 \lang english
4225 natbib
4226 \end_layout
4227
4228 \end_inset
4229
4230 .
4231 \change_unchanged
4232
4233 \end_layout
4234
4235 \begin_layout Subsection
4236 節分けされた書誌情報
4237 \change_inserted 34634807 1499890054
4238
4239 \lang english
4240 Subdivided Bibliographies
4241 \change_unchanged
4242
4243 \end_layout
4244
4245 \begin_layout Standard
4246 場合によっては,書誌情報をいくつかの節に分ける必要があることがあります.たとえば,あなたが歴史家であるとすれば,出典と学術文献を分ける機能は,おそらく「必需品」
4247 でさえあります.残念ながら,Bib\SpecialChar TeX
4248 自身ではこのようなことができません.しかし,適切な\SpecialChar LaTeX
4249 パッケージの助けを借りると,Bib\SpecialChar TeX
4250 をこのような必要性を満たすように拡張するこ
4251 とができます.
4252 \end_layout
4253
4254 \begin_layout Standard
4255 \SpecialChar LyX
4256 は,このようなパッケージの一つである
4257 \begin_inset Flex Code
4258 status collapsed
4259
4260 \begin_layout Plain Layout
4261 bibtopic
4262 \end_layout
4263
4264 \end_inset
4265
4266
4267 \begin_inset Foot
4268 status collapsed
4269
4270 \begin_layout Plain Layout
4271 \begin_inset Flex URL
4272 status open
4273
4274 \begin_layout Plain Layout
4275
4276 ftp://ctan.tug.org/tex-archive/macros/latex/contrib/bibtopic/
4277 \end_layout
4278
4279 \end_inset
4280
4281 から入手可能です.
4282 \end_layout
4283
4284 \end_inset
4285
4286 をそのままでサポートします.このパッケージの長所は,(
4287 \begin_inset Flex Code
4288 status collapsed
4289
4290 \begin_layout Plain Layout
4291 multibib
4292 \end_layout
4293
4294 \end_inset
4295
4296 のような他のパッケージと比較すると)新規の引用コマンドを定義する必要がないことです.そのかわりに,書誌情報の違う節には,その節向けの項目を収録した別の文献データ
4297 ベースを用意する必要があります.たとえば,書誌情報を「出典」の節と「学術文献」の節に分けたい場合には,それぞれの文献データベース,たとえば
4298 \begin_inset Flex Code
4299 status collapsed
4300
4301 \begin_layout Plain Layout
4302 souces.bib
4303 \end_layout
4304
4305 \end_inset
4306
4307
4308 \begin_inset Flex Code
4309 status collapsed
4310
4311 \begin_layout Plain Layout
4312 scientific.bib
4313 \end_layout
4314
4315 \end_inset
4316
4317 とを作成する必要があります.
4318 \end_layout
4319
4320 \begin_layout Standard
4321 \begin_inset Flex MenuItem
4322 status collapsed
4323
4324 \begin_layout Plain Layout
4325 文書\SpecialChar menuseparator
4326 設定
4327 \end_layout
4328
4329 \end_inset
4330
4331 を開いて
4332 \begin_inset Flex MenuItem
4333 status collapsed
4334
4335 \begin_layout Plain Layout
4336 書誌情報
4337 \end_layout
4338
4339 \end_inset
4340
4341 の下の
4342 \begin_inset Flex MenuItem
4343 status collapsed
4344
4345 \begin_layout Plain Layout
4346 節分けされた書誌情報
4347 \end_layout
4348
4349 \end_inset
4350
4351
4352 \change_inserted 34634807 1499890087
4353
4354 \lang english
4355
4356 \begin_inset Flex Noun
4357 status collapsed
4358
4359 \begin_layout Plain Layout
4360
4361 \change_inserted 34634807 1499890087
4362
4363 \lang english
4364 Subdivided bibliography
4365 \end_layout
4366
4367 \end_inset
4368
4369
4370 \change_unchanged
4371
4372 \lang japanese
4373 をチェックしてください.すると,書誌情報の各節に一つずつ,複数の書誌情報を挿入することができます.上記の例では,Bib\SpecialChar TeX
4374 書誌情報
4375 \begin_inset Flex Code
4376 status collapsed
4377
4378 \begin_layout Plain Layout
4379 sources.bib
4380 \end_layout
4381
4382 \end_inset
4383
4384 と二つめの文献データベース
4385 \begin_inset Flex Code
4386 status collapsed
4387
4388 \begin_layout Plain Layout
4389 scientific.bib
4390 \end_layout
4391
4392 \end_inset
4393
4394 を挿入します.各節に同じスタイルを用いるか異なるスタイルを用いるかは自由です.くわえて,書誌情報の節に,指定したデータベースの「引用されたすべての参照」を載せる
4395 (これが既定です)か,「引用されなかったすべての参照」を載せるか,あるいは「すべての参照」を載せるかを選択することができます.これは,もし書誌情報を「本文に引用
4396 された出典」・「本文に引用されていない出典」・「学術文献」の三つの節に分割したい場合に,便利でありましょう.各節の見出しは,通常の節や小節として入れることができ
4397 ます.
4398 \begin_inset Flex Code
4399 status collapsed
4400
4401 \begin_layout Plain Layout
4402 bibtopic
4403 \end_layout
4404
4405 \end_inset
4406
4407 は,書誌情報用の見出しを取り除いてしまいますので,手動でこれを追加しなくてはなりません(たとえば章*や節*などをお使いください).
4408 \change_inserted 34634807 1499890105
4409
4410 \end_layout
4411
4412 \begin_layout Standard
4413
4414 \change_inserted 34634807 1499890107
4415
4416 \lang english
4417 With 
4418 \family sans
4419 Biblatex
4420 \family default
4421 , the procedure is a bit different.
4422  Since 
4423 \family typewriter
4424 bibtopic
4425 \family default
4426  does not work with 
4427 \family sans
4428 Biblatex
4429 \family default
4430 , the aforementioned 
4431 \begin_inset Flex Noun
4432 status collapsed
4433
4434 \begin_layout Plain Layout
4435
4436 \change_inserted 34634807 1499890107
4437
4438 \lang english
4439 Subdivided bibliography
4440 \end_layout
4441
4442 \end_inset
4443
4444  option is disabled if you use 
4445 \family sans
4446 Biblatex
4447 \family default
4448 .
4449  However, 
4450 \family sans
4451 Biblatex
4452 \family default
4453  provides its own means to generate subdivided bibliographies.
4454  You can either add keywords to bibliography entries via the 
4455 \begin_inset Flex Code
4456 status collapsed
4457
4458 \begin_layout Plain Layout
4459
4460 \change_inserted 34634807 1499890107
4461
4462 \lang english
4463 keywords
4464 \end_layout
4465
4466 \end_inset
4467
4468  entry option and then filter bibliography sections by keyword (by adding
4469  
4470 \begin_inset Flex Code
4471 status collapsed
4472
4473 \begin_layout Plain Layout
4474
4475 \change_inserted 34634807 1499890107
4476
4477 \lang english
4478 keyword=mykeyword
4479 \end_layout
4480
4481 \end_inset
4482
4483  to the 
4484 \begin_inset Flex Noun
4485 status collapsed
4486
4487 \begin_layout Plain Layout
4488
4489 \change_inserted 34634807 1499890107
4490
4491 \lang english
4492 Options
4493 \end_layout
4494
4495 \end_inset
4496
4497  field of the dialog that opens if you right-click on the 
4498 \begin_inset Flex Noun
4499 status collapsed
4500
4501 \begin_layout Plain Layout
4502
4503 \change_inserted 34634807 1499890107
4504
4505 \lang english
4506 Biblatex Generated Bibliography
4507 \end_layout
4508
4509 \end_inset
4510
4511  button), or you can filter by entry types (such as 
4512 \emph on
4513 book
4514 \emph default
4515  or 
4516 \emph on
4517 article
4518 \emph default
4519 ) by entering e.
4520 \begin_inset space \thinspace{}
4521 \end_inset
4522
4523 g.
4524  
4525 \begin_inset Flex Code
4526 status collapsed
4527
4528 \begin_layout Plain Layout
4529
4530 \change_inserted 34634807 1499890107
4531
4532 \lang english
4533 type=book
4534 \end_layout
4535
4536 \end_inset
4537
4538  or 
4539 \begin_inset Flex Code
4540 status collapsed
4541
4542 \begin_layout Plain Layout
4543
4544 \change_inserted 34634807 1499890107
4545
4546 \lang english
4547 nottype=collection
4548 \end_layout
4549
4550 \end_inset
4551
4552  to the mentioned 
4553 \begin_inset Flex Noun
4554 status collapsed
4555
4556 \begin_layout Plain Layout
4557
4558 \change_inserted 34634807 1499890107
4559
4560 \lang english
4561 Options
4562 \end_layout
4563
4564 \end_inset
4565
4566  field, or you can create so-called 
4567 \begin_inset Quotes eld
4568 \end_inset
4569
4570 Bibliography Categories
4571 \begin_inset Quotes erd
4572 \end_inset
4573
4574  to which you can assign individual entries.
4575  Please refer to the Biblatex manual, section 
4576 \emph on
4577 Subdivided Bibliographies
4578 \emph default
4579 , for details.
4580 \change_unchanged
4581
4582 \end_layout
4583
4584 \begin_layout Subsection
4585
4586 \change_deleted 34634807 1499890126
4587 複数の書誌情報
4588 \end_layout
4589
4590 \begin_layout Standard
4591
4592 \change_deleted 34634807 1499890126
4593 文書の節ごとあるいは章ごとの書誌情報など,複数の書誌情報はBib\SpecialChar TeX
4594 自身ではサポートされていません.しかしながら,もし若干の
4595 \begin_inset Flex Code
4596 status collapsed
4597
4598 \begin_layout Plain Layout
4599 \SpecialChar TeX
4600 コード
4601 \end_layout
4602
4603 \end_inset
4604
4605 (第
4606 \begin_inset CommandInset ref
4607 LatexCommand ref
4608 reference "sec:LaTeXコードを挿入する"
4609
4610 \end_inset
4611
4612 節を参照)を利用することを厭わなければ,\SpecialChar LyX
4613 で節分けされた書誌情報を作るのに使用されている(前節を参照)
4614 \begin_inset Flex Code
4615 status collapsed
4616
4617 \begin_layout Plain Layout
4618 bibtopic
4619 \end_layout
4620
4621 \end_inset
4622
4623 パッケージが,この課題を解決する簡単な方法を提供します
4624 \begin_inset Foot
4625 status collapsed
4626
4627 \begin_layout Plain Layout
4628 ほかに,
4629 \begin_inset Flex Code
4630 status collapsed
4631
4632 \begin_layout Plain Layout
4633 chapterbib
4634 \end_layout
4635
4636 \end_inset
4637
4638
4639 \begin_inset Flex Code
4640 status collapsed
4641
4642 \begin_layout Plain Layout
4643 bibunits
4644 \end_layout
4645
4646 \end_inset
4647
4648 パッケージを利用する方法もあります.
4649 \end_layout
4650
4651 \end_inset
4652
4653
4654 \end_layout
4655
4656 \begin_layout Standard
4657
4658 \change_deleted 34634807 1499890126
4659 まず
4660 \begin_inset Flex MenuItem
4661 status collapsed
4662
4663 \begin_layout Plain Layout
4664 文書\SpecialChar menuseparator
4665 設定
4666 \end_layout
4667
4668 \end_inset
4669
4670 に行って
4671 \begin_inset Flex MenuItem
4672 status collapsed
4673
4674 \begin_layout Plain Layout
4675 書誌情報
4676 \end_layout
4677
4678 \end_inset
4679
4680 の下の
4681 \begin_inset Flex MenuItem
4682 status collapsed
4683
4684 \begin_layout Plain Layout
4685 節分けされた書誌情報
4686 \end_layout
4687
4688 \end_inset
4689
4690 を有効にしてください.つぎに文書中において,書誌情報(Bib\SpecialChar TeX
4691 書誌情報本体を含む)の入った節を
4692 \begin_inset Flex Code
4693 status collapsed
4694
4695 \begin_layout Plain Layout
4696
4697 \backslash
4698 begin{btUnit}
4699 \end_layout
4700
4701 \end_inset
4702
4703
4704 \begin_inset Flex Code
4705 status collapsed
4706
4707 \begin_layout Plain Layout
4708
4709 \backslash
4710 end{btUnit}
4711 \end_layout
4712
4713 \end_inset
4714
4715 のあいだにはさまなくてはなりません(これらのコマンドは\SpecialChar TeX
4716 コードとして挿入する必要があります).書誌情報には,現在位置の
4717 \begin_inset Flex Code
4718 status collapsed
4719
4720 \begin_layout Plain Layout
4721 btUnit
4722 \end_layout
4723
4724 \end_inset
4725
4726 において引用されたすべての参照が含まれることになります.
4727 \series bold
4728 (註)
4729 \series default
4730 この方法を用いる場合には,すべての参照はいずれかの
4731 \begin_inset Flex Code
4732 status collapsed
4733
4734 \begin_layout Plain Layout
4735 btUnit
4736 \end_layout
4737
4738 \end_inset
4739
4740 内部になくてはなりません.また,
4741 \begin_inset Flex Code
4742 status collapsed
4743
4744 \begin_layout Plain Layout
4745 btUnit
4746 \end_layout
4747
4748 \end_inset
4749
4750 は入れ子構造にすることができません.
4751 \change_inserted 34634807 1499890142
4752
4753 \end_layout
4754
4755 \begin_layout Standard
4756
4757 \change_inserted 34634807 1499890144
4758
4759 \lang english
4760 Multiple bibliographies, e.
4761 \begin_inset space \thinspace{}
4762 \end_inset
4763
4764 g.
4765 \begin_inset space \space{}
4766 \end_inset
4767
4768 a bibliography for each part, chapter, section, subsection or child (sub-documen
4769 t) of the document, are also supported by \SpecialChar LyX
4770 .
4771  In order to enable it, go to 
4772 \begin_inset Flex Noun
4773 status collapsed
4774
4775 \begin_layout Plain Layout
4776
4777 \change_inserted 34634807 1499890144
4778
4779 \lang english
4780 Document\SpecialChar menuseparator
4781 Settings\SpecialChar menuseparator
4782 Bibliography
4783 \end_layout
4784
4785 \end_inset
4786
4787  and select the relevant unit (e.
4788 \begin_inset space \thinspace{}
4789 \end_inset
4790
4791 g., 
4792 \begin_inset Quotes eld
4793 \end_inset
4794
4795 per section
4796 \begin_inset Quotes erd
4797 \end_inset
4798
4799 ) in the 
4800 \begin_inset Flex Noun
4801 status collapsed
4802
4803 \begin_layout Plain Layout
4804
4805 \change_inserted 34634807 1499890144
4806
4807 \lang english
4808 Multiple Bibliographies
4809 \end_layout
4810
4811 \end_inset
4812
4813  combo box.
4814  Then add a Bib(la)\SpecialChar TeX
4815  bibliography to each unit (e.
4816 \begin_inset space \thinspace{}
4817 \end_inset
4818
4819 g., section) of your document.
4820  In the output, a separate bibliography, containing only the references
4821  done in the current unit is generated.
4822 \end_layout
4823
4824 \begin_layout Standard
4825
4826 \change_inserted 34634807 1499890144
4827
4828 \lang english
4829 If you use Bib\SpecialChar TeX
4830 , either the 
4831 \begin_inset Flex Code
4832 status collapsed
4833
4834 \begin_layout Plain Layout
4835
4836 \change_inserted 34634807 1499890144
4837
4838 \lang english
4839 chapterbib
4840 \end_layout
4841
4842 \end_inset
4843
4844  of the 
4845 \begin_inset Flex Code
4846 status collapsed
4847
4848 \begin_layout Plain Layout
4849
4850 \change_inserted 34634807 1499890144
4851
4852 \lang english
4853 bibtopic
4854 \end_layout
4855
4856 \end_inset
4857
4858  package is used to create multiple bibliographies.
4859  The former package is used if you select 
4860 \begin_inset Quotes eld
4861 \end_inset
4862
4863 per child document
4864 \begin_inset Quotes erd
4865 \end_inset
4866
4867  and do 
4868 \emph on
4869 not
4870 \emph default
4871  check 
4872 \begin_inset Flex Noun
4873 status collapsed
4874
4875 \begin_layout Plain Layout
4876
4877 \change_inserted 34634807 1499890144
4878
4879 \lang english
4880 Sectioned Bibliography
4881 \end_layout
4882
4883 \end_inset
4884
4885 .
4886  In all other cases, 
4887 \begin_inset Flex Code
4888 status collapsed
4889
4890 \begin_layout Plain Layout
4891
4892 \change_inserted 34634807 1499890144
4893
4894 \lang english
4895 bibtopic
4896 \end_layout
4897
4898 \end_inset
4899
4900  is used.
4901 \begin_inset Foot
4902 status collapsed
4903
4904 \begin_layout Plain Layout
4905
4906 \change_inserted 34634807 1499890144
4907
4908 \lang english
4909 An alternative approach, if you are willing to use some 
4910 \begin_inset Flex Noun
4911 status collapsed
4912
4913 \begin_layout Plain Layout
4914
4915 \change_inserted 34634807 1499890144
4916
4917 \lang english
4918 \SpecialChar TeX
4919  Code
4920 \end_layout
4921
4922 \end_inset
4923
4924  (see section
4925 \begin_inset space ~
4926 \end_inset
4927
4928
4929 \begin_inset CommandInset ref
4930 LatexCommand ref
4931 reference "sec:Inserting-TeX-Code"
4932
4933 \end_inset
4934
4935 ), is to use the 
4936 \begin_inset Flex Code
4937 status collapsed
4938
4939 \begin_layout Plain Layout
4940
4941 \change_inserted 34634807 1499890144
4942
4943 \lang english
4944 bibunits
4945 \end_layout
4946
4947 \end_inset
4948
4949  package.
4950 \end_layout
4951
4952 \end_inset
4953
4954  If 
4955 \begin_inset Flex Code
4956 status collapsed
4957
4958 \begin_layout Plain Layout
4959
4960 \change_inserted 34634807 1499890144
4961
4962 \lang english
4963 bibtopic
4964 \end_layout
4965
4966 \end_inset
4967
4968  is used, \SpecialChar LyX
4969  encloses the specified units in 
4970 \begin_inset Flex Code
4971 status collapsed
4972
4973 \begin_layout Plain Layout
4974
4975 \change_inserted 34634807 1499890144
4976
4977 \lang english
4978 bibtopic
4979 \end_layout
4980
4981 \end_inset
4982
4983 's 
4984 \begin_inset Flex Code
4985 status collapsed
4986
4987 \begin_layout Plain Layout
4988
4989 \change_inserted 34634807 1499890144
4990
4991 \lang english
4992
4993 \backslash
4994 begin{btUnit}
4995 \end_layout
4996
4997 \end_inset
4998
4999  and 
5000 \begin_inset Flex Code
5001 status collapsed
5002
5003 \begin_layout Plain Layout
5004
5005 \change_inserted 34634807 1499890144
5006
5007 \lang english
5008
5009 \backslash
5010 end{btUnit}
5011 \end_layout
5012
5013 \end_inset
5014
5015  in order to create the units.
5016  Note that this approach has some limitations.
5017  First, every citation reference has to be inside some 
5018 \begin_inset Flex Code
5019 status collapsed
5020
5021 \begin_layout Plain Layout
5022
5023 \change_inserted 34634807 1499890144
5024
5025 \lang english
5026 btUnit
5027 \end_layout
5028
5029 \end_inset
5030
5031 .
5032  So citations outside a defined unit (e.
5033 \begin_inset space \thinspace{}
5034 \end_inset
5035
5036 g., before the first section if you use 
5037 \begin_inset Quotes eld
5038 \end_inset
5039
5040 by section
5041 \begin_inset Quotes erd
5042 \end_inset
5043
5044 ) will appear as 
5045 \begin_inset Quotes eld
5046 \end_inset
5047
5048 ???
5049 \begin_inset Quotes erd
5050 \end_inset
5051
5052 .
5053  You can also create your own units by entering 
5054 \begin_inset Flex Code
5055 status collapsed
5056
5057 \begin_layout Plain Layout
5058
5059 \change_inserted 34634807 1499890144
5060
5061 \lang english
5062
5063 \backslash
5064 begin{btUnit}
5065 \end_layout
5066
5067 \end_inset
5068
5069  and 
5070 \begin_inset Flex Code
5071 status collapsed
5072
5073 \begin_layout Plain Layout
5074
5075 \change_inserted 34634807 1499890144
5076
5077 \lang english
5078
5079 \backslash
5080 end{btUnit}
5081 \end_layout
5082
5083 \end_inset
5084
5085  as \SpecialChar TeX
5086  code (for instance to work around the mentioned limitation).
5087  Note, though, that 
5088 \begin_inset Flex Code
5089 status collapsed
5090
5091 \begin_layout Plain Layout
5092
5093 \change_inserted 34634807 1499890144
5094
5095 \lang english
5096 btUnit
5097 \end_layout
5098
5099 \end_inset
5100
5101 s cannot be nested.
5102  A second limitation is that 
5103 \begin_inset Flex Code
5104 status collapsed
5105
5106 \begin_layout Plain Layout
5107
5108 \change_inserted 34634807 1499890144
5109
5110 \lang english
5111 bibtopic
5112 \end_layout
5113
5114 \end_inset
5115
5116  always processes all references of a bibliography database, even if they
5117  are not cited.
5118  This can result in odd labels (e.
5119 \begin_inset space \thinspace{}
5120 \end_inset
5121
5122 g.
5123  
5124 \begin_inset Quotes eld
5125 \end_inset
5126
5127 Miller 2014b
5128 \begin_inset Quotes erd
5129 \end_inset
5130
5131  if two works of this author from 2014 are in the database, even if only
5132  one is cited).
5133 \end_layout
5134
5135 \begin_layout Standard
5136
5137 \change_inserted 34634807 1499890144
5138
5139 \lang english
5140 If you use 
5141 \family sans
5142 Biblatex
5143 \family default
5144 , the 
5145 \begin_inset Flex Code
5146 status collapsed
5147
5148 \begin_layout Plain Layout
5149
5150 \change_inserted 34634807 1499890144
5151
5152 \lang english
5153 refsection
5154 \end_layout
5155
5156 \end_inset
5157
5158  option is used instead.
5159  If you need specific units, you can start them with the \SpecialChar TeX
5160  code 
5161 \begin_inset Flex Code
5162 status collapsed
5163
5164 \begin_layout Plain Layout
5165
5166 \change_inserted 34634807 1499890144
5167
5168 \lang english
5169
5170 \backslash
5171 newrefsection
5172 \end_layout
5173
5174 \end_inset
5175
5176  or 
5177 \begin_inset Flex Code
5178 status collapsed
5179
5180 \begin_layout Plain Layout
5181
5182 \change_inserted 34634807 1499890144
5183
5184 \lang english
5185
5186 \backslash
5187 newrefsegment
5188 \end_layout
5189
5190 \end_inset
5191
5192 , respectively.
5193  If you also want to control the end of the unit, use the environment 
5194 \begin_inset Flex Code
5195 status collapsed
5196
5197 \begin_layout Plain Layout
5198
5199 \change_inserted 34634807 1499890144
5200
5201 \lang english
5202
5203 \backslash
5204 begin{refsection}
5205 \end_layout
5206
5207 \end_inset
5208
5209  \SpecialChar ldots
5210  
5211 \begin_inset Flex Code
5212 status collapsed
5213
5214 \begin_layout Plain Layout
5215
5216 \change_inserted 34634807 1499890144
5217
5218 \lang english
5219
5220 \backslash
5221 end{refsection}
5222 \end_layout
5223
5224 \end_inset
5225
5226  instead.
5227  Note, though, that 
5228 \begin_inset Flex Code
5229 status collapsed
5230
5231 \begin_layout Plain Layout
5232
5233 \change_inserted 34634807 1499890144
5234
5235 \lang english
5236 refsection
5237 \end_layout
5238
5239 \end_inset
5240
5241 s cannot be nested.
5242  In addition to the individual bibliography of the current unit, 
5243 \family sans
5244 Biblatex
5245 \family default
5246  also provides an easy way to output all bibliographies, subsequently, at
5247  one place (e.
5248 \begin_inset space \thinspace{}
5249 \end_inset
5250
5251 g., at the end of the document).
5252  Select 
5253 \begin_inset Quotes eld
5254 \end_inset
5255
5256 all reference units
5257 \begin_inset Quotes erd
5258 \end_inset
5259
5260  from the Content combo box of the Bib(la)TeX inset dialog in order to achieve
5261  this.
5262  Please refer to the 
5263 \family sans
5264 Biblatex
5265 \family default
5266  manual for more information on this topic.
5267 \change_unchanged
5268
5269 \end_layout
5270
5271 \begin_layout Section
5272 複合文書
5273 \end_layout
5274
5275 \begin_layout Subsection
5276 一般的な操作
5277 \end_layout
5278
5279 \begin_layout Standard
5280 たくさんの節を含んだ大きなファイルで作業をする場合,文書をいくつかのファイルに分割した方が往々にして便利ですし,場合によっては,表部分にはしょっちゅう変更が加え
5281 られるけれども,その前の文章はつねに同じであるようなケースもあるでしょう.このような場合には,複合文書を利用することを,まずご検討ください.たとえば,科学論文は
5282 通常,導入部・所見・結果・議論・結論の五つの節から成ります.これら各節を別々の\SpecialChar LyX
5283 ファイルにして,タイトル・著者・概要・書誌情報等と,これら五つのインクルード
5284 \begin_inset Foot
5285 status collapsed
5286
5287 \begin_layout Plain Layout
5288
5289 \series bold
5290 (訳註)
5291 \series default
5292 「取り込む」の意です.原語「include」に対する訳語として,プログラミング用語の「インクルードする」以外に適語がないので,ここではプログラミング用語をそのま
5293 ま使用します.
5294 \end_layout
5295
5296 \end_inset
5297
5298 ファイルを持つ,もう一つ別の「マスター」ファイルを作成するようにすることができます.これらの各ファイルは,単にマスターファイルにインクルードされるだけでなく,単
5299 独でも出力したり印刷したりすることのできる完全な\SpecialChar LyX
5300 ファイルであるように注意することが重要です.しかも,これらの各ファイルは,同じ文書クラスでなくてはなりません.a
5301 rticleクラスとbookクラスを混在させるようなことはなさらないでください.\SpecialChar LaTeX
5302 ファイルをインクルードすることもできますが,このファイルにはプリアンブルがあって
5303 はなりません(
5304 \begin_inset Flex Code
5305 status collapsed
5306
5307 \begin_layout Plain Layout
5308
5309 \backslash
5310 begin{document}
5311 \end_layout
5312
5313 \end_inset
5314
5315 行とその前のすべて,および
5316 \begin_inset Flex Code
5317 status collapsed
5318
5319 \begin_layout Plain Layout
5320
5321 \backslash
5322 end{document}行
5323 \end_layout
5324
5325 \end_inset
5326
5327 は削除しておかなければなりません).さもないと,DVIファイルを作成する際にエラーが発生するでしょう.
5328 \end_layout
5329
5330 \begin_layout Standard
5331 \SpecialChar LyX
5332 では,
5333 \family sans
5334 挿入\SpecialChar menuseparator
5335 ファイル\SpecialChar menuseparator
5336 子文書
5337 \family default
5338 で簡単にファイルをインクルードすることができます.このメニューを選んでクリックすると,カーソルの現在位置に小さな枠が挿入されます.この枠をクリックすると,ダイア
5339 ログが現れるので,そこでインクルードするファイルとインクルード方法を選択することができます.
5340 \end_layout
5341
5342 \begin_layout Standard
5343 ファイル選択ボックスは,いまや自明でしょう.インクルード方法には,「include」・「input」・「verbatim」の三つがあります.「include」と
5344 「input」の違いは,正確には\SpecialChar LaTeX
5345 の達人にしか意味のないものですが,ほとんどの人にとって意味のある違いといえば,「include」されたファイルは新規頁から組版さ
5346 れるのに対し,「input」されたファイルは現在のページから組版される点です.
5347 \end_layout
5348
5349 \begin_layout Standard
5350 一般に,マスターファイルは,組版前に完全な\SpecialChar LaTeX
5351 ファイルに変換されますが,インクルードされるファイルは,プリアンブル情報をまったく持たない\SpecialChar LaTeX
5352 ファイルに変換されます.
5353 \end_layout
5354
5355 \begin_layout Standard
5356 「verbatim」インクルードファイルでは,ファイルの内容がそのまま(つまり「
5357 \begin_inset Flex Code
5358 status collapsed
5359
5360 \begin_layout Plain Layout
5361 verbatim
5362 \end_layout
5363
5364 \end_inset
5365
5366 」モードで)固定幅タイプライタフォントで組版されます.通常,このファイルの空白は,通常の\SpecialChar LyX
5367 での空白の取扱いとは違って,連続した複数の空白がそのまま出力されるものの
5368 ,単なる見えない空白です.ただし,
5369 \family sans
5370
5371 \begin_inset Flex MenuItem
5372 status collapsed
5373
5374 \begin_layout Plain Layout
5375
5376 \family sans
5377 出力の空白に印付けをする
5378 \end_layout
5379
5380 \end_inset
5381
5382
5383 \family default
5384 チェックボックスを有効にすると,空白が存在することを明確にするために空白の印が出力されます.
5385 \end_layout
5386
5387 \begin_layout Subsection
5388 ファイル間の相互参照
5389 \end_layout
5390
5391 \begin_layout Standard
5392 \begin_inset Box Shadowbox
5393 position "t"
5394 hor_pos "c"
5395 has_inner_box 1
5396 inner_pos "t"
5397 use_parbox 0
5398 use_makebox 0
5399 width "100col%"
5400 special "none"
5401 height "1in"
5402 height_special "totalheight"
5403 thickness "0.4pt"
5404 separation "3pt"
5405 shadowsize "4pt"
5406 framecolor "black"
5407 backgroundcolor "none"
5408 status open
5409
5410 \begin_layout Plain Layout
5411 この節の内容は,すでに古くなっています.既定のマスター文書についてと,マスターが開いているときに子文書をどう開くかについて記述する必要があります.[[要修正]]
5412 \end_layout
5413
5414 \end_inset
5415
5416
5417 \end_layout
5418
5419 \begin_layout Standard
5420 異なるファイル間に相互参照を設定することも可能です.まず,すべての関係するファイルを開いてください.例として,2つのファイルを扱う場合を考え,各ファイルをA・B
5421 と呼びます.BがAにインクルードされるファイルだとします.Aにラベルを入れて,Bで参照したいとしましょう.文書Bで相互参照ダイアログを開いて,使用する「バッファ
5422 」を選んでください.
5423 \end_layout
5424
5425 \begin_layout Subsection
5426 すべての子文書での書誌情報
5427 \end_layout
5428
5429 \begin_layout Standard
5430 \begin_inset Box Shadowbox
5431 position "t"
5432 hor_pos "c"
5433 has_inner_box 1
5434 inner_pos "t"
5435 use_parbox 0
5436 use_makebox 0
5437 width "100col%"
5438 special "none"
5439 height "1in"
5440 height_special "totalheight"
5441 thickness "0.4pt"
5442 separation "3pt"
5443 shadowsize "4pt"
5444 framecolor "black"
5445 backgroundcolor "none"
5446 status open
5447
5448 \begin_layout Plain Layout
5449 この節も更新が必要です.この点に関する内容がwikiにあるので,それをここにコピーすることも可か.
5450 \end_layout
5451
5452 \end_inset
5453
5454
5455 \end_layout
5456
5457 \begin_layout Standard
5458 すべての子文書の全文献項目を含んだ書誌情報一覧をコピーし,それをコメントに変更してください.このようにすることで,\SpecialChar LyX
5459 は.bibファイルを見つけることができ,書誌情報
5460 一覧を見えるようにせずとも簡単に参照を挿入することができるようになります.
5461 \end_layout
5462
5463 \begin_layout Standard
5464 書誌情報一覧がコメントにあるために,\SpecialChar LaTeX
5465 はそれを使用しないので,参照は[1]のようには表示されないで[?]のように表示されます.ひとつの解決法として,コメントをイン
5466 クルードする\SpecialChar LaTeX
5467 パッケージの
5468 \begin_inset Flex Code
5469 status collapsed
5470
5471 \begin_layout Plain Layout
5472 comment
5473 \end_layout
5474
5475 \end_inset
5476
5477 を使用して,ファイルを別々に処理する方法があります.そのためには,すべての子文書のプリアンブルに以下を書き加えてください.
5478 \end_layout
5479
5480 \begin_layout LyX-Code
5481
5482 \backslash
5483 usepackage{comment}
5484 \end_layout
5485
5486 \begin_layout LyX-Code
5487
5488 \backslash
5489 includecomment{comment}
5490 \end_layout
5491
5492 \begin_layout Standard
5493 \begin_inset Flex URL
5494 status collapsed
5495
5496 \begin_layout Plain Layout
5497
5498 http://wiki.lyx.org/FAQ/Unsorted#toc31
5499 \end_layout
5500
5501 \end_inset
5502
5503 も参照してください.
5504 \end_layout
5505
5506 \begin_layout Section
5507 \SpecialChar LyX
5508 書庫
5509 \end_layout
5510
5511 \begin_layout Standard
5512 しばしばユーザーは,出版社に送ったり,共著者とやりとりするために,\SpecialChar LyX
5513 ファイルを,その依存する全画像(及び他のファイル)と「同梱」する必要に迫られることがあります.\SpecialChar LyX
5514
5515  2.0には,この過程を自動化するPythonスクリプト(
5516 \begin_inset Flex Code
5517 status collapsed
5518
5519 \begin_layout Plain Layout
5520 lyxpak.py
5521 \end_layout
5522
5523 \end_inset
5524
5525 )が含まれています.これを使うには,
5526 \begin_inset Flex Code
5527 status collapsed
5528
5529 \begin_layout Plain Layout
5530 zipfile
5531 \end_layout
5532
5533 \end_inset
5534
5535  pythonモジュールまたは
5536 \begin_inset Flex Code
5537 status collapsed
5538
5539 \begin_layout Plain Layout
5540 tarfile
5541 \end_layout
5542
5543 \end_inset
5544
5545  pythonモジュールが,システムに導入済みであることが必要です.既定設定では,Unix系システムでは,
5546 \begin_inset Flex Code
5547 status collapsed
5548
5549 \begin_layout Plain Layout
5550 gzip
5551 \end_layout
5552
5553 \end_inset
5554
5555 圧縮
5556 \begin_inset Flex Code
5557 status collapsed
5558
5559 \begin_layout Plain Layout
5560 tar
5561 \end_layout
5562
5563 \end_inset
5564
5565 ファイル形式が優先され,Windowsでは
5566 \begin_inset Flex Code
5567 status collapsed
5568
5569 \begin_layout Plain Layout
5570 zip
5571 \end_layout
5572
5573 \end_inset
5574
5575 形式が優先されます.
5576 \end_layout
5577
5578 \begin_layout Standard
5579 \SpecialChar LyX
5580 の環境構成時には,「\SpecialChar LyX
5581 書庫」を書き出すことができるようにスクリプトが準備され,
5582 \begin_inset Flex MenuItem
5583 status collapsed
5584
5585 \begin_layout Plain Layout
5586 ファイル\SpecialChar menuseparator
5587 書き出し
5588 \end_layout
5589
5590 \end_inset
5591
5592 の下で利用可能となります.
5593 \end_layout
5594
5595 \begin_layout Standard
5596 \begin_inset Flex MenuItem
5597 status collapsed
5598
5599 \begin_layout Plain Layout
5600 ツール\SpecialChar menuseparator
5601 設定\SpecialChar menuseparator
5602 ファイル処理\SpecialChar menuseparator
5603 変換子
5604 \end_layout
5605
5606 \end_inset
5607
5608
5609 \begin_inset Flex MenuItem
5610 status collapsed
5611
5612 \begin_layout Plain Layout
5613 \SpecialChar LyX
5614 \SpecialChar menuseparator
5615 \SpecialChar LyX
5616 書庫
5617 \end_layout
5618
5619 \end_inset
5620
5621 変換子に,
5622 \begin_inset Flex Code
5623 status collapsed
5624
5625 \begin_layout Plain Layout
5626 -t
5627 \end_layout
5628
5629 \end_inset
5630
5631 スイッチや
5632 \begin_inset Flex Code
5633 status collapsed
5634
5635 \begin_layout Plain Layout
5636 -z
5637 \end_layout
5638
5639 \end_inset
5640
5641 スイッチを加えることで,プラットホームとは独立に,
5642 \begin_inset Flex Code
5643 status collapsed
5644
5645 \begin_layout Plain Layout
5646 tar
5647 \end_layout
5648
5649 \end_inset
5650
5651 形式や
5652 \begin_inset Flex Code
5653 status collapsed
5654
5655 \begin_layout Plain Layout
5656 zip
5657 \end_layout
5658
5659 \end_inset
5660
5661 形式を強制することができます(スイッチは,スクリプト名の前ではなく,後ろに加えてください).
5662 \end_layout
5663
5664 \begin_layout Section
5665 装飾的なヘッダ・フッタ
5666 \end_layout
5667
5668 \begin_layout Standard
5669 既定のページレイアウトは,どちらかといえば素っ気ないものです.
5670 \begin_inset Flex Code
5671 status collapsed
5672
5673 \begin_layout Plain Layout
5674 article
5675 \end_layout
5676
5677 \end_inset
5678
5679 文書クラスの場合には,ページの下の真ん中にページ番号がつくだけです.この取扱説明書はKOMA-scriptのbookクラスなので,すこしは凝ってますが,ほんとう
5680 に着飾るには,『
5681 \emph on
5682 ユーザーの手引き
5683 \emph default
5684 』に述べられているように,文書ページスタイルを「装飾的(fancy)」に設定する必要があります.この節では,望んだとおりの効果を得るために,\SpecialChar LaTeX
5685 プリアンブルに挿入す
5686 る必要のある\SpecialChar LaTeX
5687 コードについて解説します.
5688 \end_layout
5689
5690 \begin_layout Standard
5691 ページへッダは,「left(左)」・「center(中央)」・「right(右)」と命名された3つのフィールドに分けられています.フッタも同様に3つのフィールド
5692 に分類されています.これらのフィールドをもっとも簡単に設定する\SpecialChar LaTeX
5693 コマンドには,
5694 \family typewriter
5695
5696 \begin_inset Flex Code
5697 status collapsed
5698
5699 \begin_layout Plain Layout
5700
5701 \family typewriter
5702
5703 \backslash
5704 lhead
5705 \end_layout
5706
5707 \end_inset
5708
5709
5710 \family default
5711
5712 \family typewriter
5713
5714 \begin_inset Flex Code
5715 status collapsed
5716
5717 \begin_layout Plain Layout
5718
5719 \family typewriter
5720
5721 \backslash
5722 chead
5723 \end_layout
5724
5725 \end_inset
5726
5727
5728 \family default
5729
5730 \family typewriter
5731
5732 \begin_inset Flex Code
5733 status collapsed
5734
5735 \begin_layout Plain Layout
5736
5737 \family typewriter
5738
5739 \backslash
5740 rhead
5741 \end_layout
5742
5743 \end_inset
5744
5745
5746 \family default
5747
5748 \begin_inset Flex Code
5749 status collapsed
5750
5751 \begin_layout Plain Layout
5752
5753 \backslash
5754 lfoot
5755 \end_layout
5756
5757 \end_inset
5758
5759 などがあります.かりに,各ページの左上端に自分の名前を入れたいものとしましょう.次のようなコマンドをプリアンブルに入れるだけです.
5760 \end_layout
5761
5762 \begin_layout Standard
5763
5764 \family typewriter
5765
5766 \backslash
5767 lhead{物書 はじめ}
5768 \end_layout
5769
5770 \begin_layout Standard
5771 これで自分の名前が左上に現れます.フィールドに取り除きたい既定の内容がある場合(往々にして中央のフッタにはページ番号が入ります)には,空の引数を持つコマンドを入
5772 れるだけです.すなわち,
5773 \end_layout
5774
5775 \begin_layout Standard
5776
5777 \family typewriter
5778
5779 \backslash
5780 cfoot{}
5781 \begin_inset Newline newline
5782 \end_inset
5783
5784
5785 \family default
5786 とします.
5787 \end_layout
5788
5789 \begin_layout Standard
5790 もっと美しくしてみましょう.節番号を「第‥節」という言葉といっしょに(第3節のように)左上に入れ,ページ番号を(4ページのように)右上に,自分の名前を左下に,日
5791 付を右下に入れます.以下のコマンドをプリアンブルに入れます.
5792 \end_layout
5793
5794 \begin_layout Standard
5795
5796 \family typewriter
5797
5798 \backslash
5799 lhead{第
5800 \backslash
5801 thesection 節}
5802 \end_layout
5803
5804 \begin_layout Standard
5805
5806 \family typewriter
5807
5808 \backslash
5809 chead{}
5810 \end_layout
5811
5812 \begin_layout Standard
5813
5814 \family typewriter
5815
5816 \backslash
5817 rhead{
5818 \backslash
5819 thepage ページ}
5820 \end_layout
5821
5822 \begin_layout Standard
5823
5824 \family typewriter
5825
5826 \backslash
5827 lfoot{物書 はじめ}
5828 \end_layout
5829
5830 \begin_layout Standard
5831
5832 \family typewriter
5833
5834 \backslash
5835 cfoot{}
5836 \end_layout
5837
5838 \begin_layout Standard
5839
5840 \family typewriter
5841
5842 \backslash
5843 rfoot{
5844 \backslash
5845 today}
5846 \end_layout
5847
5848 \begin_layout Standard
5849 コマンド
5850 \family typewriter
5851
5852 \begin_inset Flex Code
5853 status collapsed
5854
5855 \begin_layout Plain Layout
5856
5857 \family typewriter
5858
5859 \backslash
5860 thesecti
5861 \family default
5862 o
5863 \family typewriter
5864 n
5865 \end_layout
5866
5867 \end_inset
5868
5869
5870 \family default
5871
5872 \begin_inset Flex Code
5873 status collapsed
5874
5875 \begin_layout Plain Layout
5876
5877 \family typewriter
5878
5879 \backslash
5880 thepa
5881 \family default
5882 ge
5883 \end_layout
5884
5885 \end_inset
5886
5887 は,それぞれ\SpecialChar LaTeX
5888 の節カウンタおよびページカウンタを取得するもので,これによって現在の節番号とページ番号を印字します.
5889 \begin_inset Flex Code
5890 status collapsed
5891
5892 \begin_layout Plain Layout
5893
5894 \family typewriter
5895
5896 \backslash
5897 tod
5898 \family default
5899 ay
5900 \end_layout
5901
5902 \end_inset
5903
5904 は,今日の日付を印字するものです.
5905 \end_layout
5906
5907 \begin_layout Standard
5908 へッダ下またはフッタ上に描かれる罫線の太さも変更することができます.もし罫線が必要なければ,太さを0にしてください.ヘッダ罫線は,既定では0.4ptの太さであり,
5909 フッタ罫線は0ptです.太さを変更するには,
5910 \family typewriter
5911
5912 \begin_inset Flex Code
5913 status collapsed
5914
5915 \begin_layout Plain Layout
5916
5917 \family typewriter
5918
5919 \backslash
5920 renewcommand{
5921 \backslash
5922 headrulewidth}{0.4pt}
5923 \end_layout
5924
5925 \end_inset
5926
5927
5928 \family default
5929
5930 \family typewriter
5931
5932 \begin_inset Flex Code
5933 status collapsed
5934
5935 \begin_layout Plain Layout
5936
5937 \family typewriter
5938
5939 \backslash
5940 renewcommand{
5941 \backslash
5942 footrulewidth}{0.4pt}
5943 \end_layout
5944
5945 \end_inset
5946
5947
5948 \family default
5949 のようなコマンドを使用してください.
5950 \end_layout
5951
5952 \begin_layout Standard
5953 \begin_inset Flex Code
5954 status collapsed
5955
5956 \begin_layout Plain Layout
5957
5958 \family typewriter
5959
5960 \backslash
5961 thispagestyle{empty}
5962 \end_layout
5963
5964 \end_inset
5965
5966
5967 \begin_inset Flex Code
5968 status collapsed
5969
5970 \begin_layout Plain Layout
5971
5972 \family typewriter
5973
5974 \backslash
5975 thispagestyle{plain}
5976 \end_layout
5977
5978 \end_inset
5979
5980
5981 \begin_inset Flex Code
5982 status collapsed
5983
5984 \begin_layout Plain Layout
5985
5986 \family typewriter
5987
5988 \backslash
5989 thispagestyle{fancy}
5990 \end_layout
5991
5992 \end_inset
5993
5994 のようなコマンドを使えば,各ページごとにへッダ・フッタ設定を有効にしたり無効にしたりすることができます.設定を変更したいページに,これらのコマンドを\SpecialChar TeX
5995 コードとして
5996 挿入してください.実は,タイトルページは,その後のページは大域的に装飾的(fancy)に設定されていれば装飾的(fancy)になるにもかかわらず,既定でプレーン
5997 (plain)になるように設定されているのです.
5998 \end_layout
5999
6000 \begin_layout Standard
6001 奇数ページの左上だけに何かを挿入するなど,もっと複雑なコマンドもあるのですが,詳しい解説は
6002 \begin_inset Flex Code
6003 status collapsed
6004
6005 \begin_layout Plain Layout
6006
6007 \family typewriter
6008 fancyhdr
6009 \end_layout
6010
6011 \end_inset
6012
6013 パッケージの取扱説明書をご参照ください(
6014 \begin_inset Flex Code
6015 status collapsed
6016
6017 \begin_layout Plain Layout
6018 fancyhdr.dvi
6019 \end_layout
6020
6021 \end_inset
6022
6023 を探してください).
6024 \end_layout
6025
6026 \begin_layout Standard
6027 最後の例として,へッダやフッタに画像を挿入できることを取り上げましょう.会社のロゴをページ左上に入れたいものとします.たとえば,
6028 \end_layout
6029
6030 \begin_layout Standard
6031
6032 \family typewriter
6033
6034 \backslash
6035 lhead{
6036 \backslash
6037 resizebox{1in}{!}{
6038 \backslash
6039 includegraphics{logo.eps}}}
6040 \end_layout
6041
6042 \begin_layout Standard
6043 \noindent
6044 とすれば,これを実現できます(文書中に他に画像を挿入していない場合には,
6045 \begin_inset Newline newline
6046 \end_inset
6047
6048
6049 \begin_inset Flex Code
6050 status collapsed
6051
6052 \begin_layout Plain Layout
6053 \noindent
6054
6055 \family typewriter
6056
6057 \backslash
6058 usepackage{graphics}
6059 \end_layout
6060
6061 \end_inset
6062
6063 をプリアンブルに宣言する必要があります).
6064 \end_layout
6065
6066 \begin_layout Section
6067 箇条書き(記号)ブリットの指定
6068 \begin_inset CommandInset label
6069 LatexCommand label
6070 name "sec:ブリット"
6071
6072 \end_inset
6073
6074
6075 \end_layout
6076
6077 \begin_layout Standard
6078
6079 \noun on
6080 Allan Rae文
6081 \end_layout
6082
6083 \begin_layout Subsection
6084 はじめに
6085 \end_layout
6086
6087 \begin_layout Standard
6088 \SpecialChar LyX
6089 には,ブリットの形が216個準備されていて,簡単なダイアログから呼び出すことができます.このダイアログを使えば,箇条書き(記号)の各階層で使うブリットの形を変更
6090 することができます.この設定は文書全体に共通なので,段落ごとに別のブリットを指定することはできません
6091 \begin_inset Foot
6092 status collapsed
6093
6094 \begin_layout Plain Layout
6095 正確には可能ですが,手動で行う必要があります.
6096 \end_layout
6097
6098 \end_inset
6099
6100
6101 \end_layout
6102
6103 \begin_layout Subsection
6104 外見
6105 \end_layout
6106
6107 \begin_layout Standard
6108 メニュー項目の
6109 \begin_inset Flex MenuItem
6110 status collapsed
6111
6112 \begin_layout Plain Layout
6113 文書\SpecialChar menuseparator
6114 設定
6115 \end_layout
6116
6117 \end_inset
6118
6119 を選択してダイアログを開き,
6120 \begin_inset Flex MenuItem
6121 status collapsed
6122
6123 \begin_layout Plain Layout
6124 ブリット
6125 \end_layout
6126
6127 \end_inset
6128
6129 タブを選択してください.
6130 \end_layout
6131
6132 \begin_layout Standard
6133 このダイアログは,ブリット形の一覧表を提示します.
6134 \begin_inset Flex MenuItem
6135 status collapsed
6136
6137 \begin_layout Plain Layout
6138 フォント
6139 \end_layout
6140
6141 \end_inset
6142
6143 と書いてあるドロップダウンメニューで,6つの各ブリット形パネルを切り替えることができます.また,一覧表左の
6144 \begin_inset Flex MenuItem
6145 status collapsed
6146
6147 \begin_layout Plain Layout
6148 階層
6149 \end_layout
6150
6151 \end_inset
6152
6153 パネルは,変更したい階層を選択するものです.
6154 \begin_inset Flex MenuItem
6155 status collapsed
6156
6157 \begin_layout Plain Layout
6158 任意のブリット
6159 \end_layout
6160
6161 \end_inset
6162
6163 では,指定したい\SpecialChar LaTeX
6164 表現を入力することができます.任意のブリットを指定した場合には,そのコマンドが必要とするパッケージを\SpecialChar LaTeX
6165 プリアンブルで指定する必要があります.
6166 \end_layout
6167
6168 \begin_layout Standard
6169 6つのパネルは,それぞれが必要とするパッケージによって分類されています.下記は,フォント名と\SpecialChar LaTeX
6170 パッケージの対応表です.
6171 \end_layout
6172
6173 \begin_layout Standard
6174 \align center
6175 \begin_inset Tabular
6176 <lyxtabular version="3" rows="7" columns="2">
6177 <features tabularvalignment="middle">
6178 <column alignment="center" valignment="top" width="0pt">
6179 <column alignment="center" valignment="top" width="0pt">
6180 <row>
6181 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6182 \begin_inset Text
6183
6184 \begin_layout Plain Layout
6185 フォント
6186 \end_layout
6187
6188 \end_inset
6189 </cell>
6190 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6191 \begin_inset Text
6192
6193 \begin_layout Plain Layout
6194
6195 \family roman
6196 \series medium
6197 \shape up
6198 \size normal
6199 \emph off
6200 \bar no
6201 \noun off
6202 \color none
6203 必要とするパッケージ
6204 \end_layout
6205
6206 \end_inset
6207 </cell>
6208 </row>
6209 <row>
6210 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6211 \begin_inset Text
6212
6213 \begin_layout Plain Layout
6214
6215 \family sans
6216 標準
6217 \end_layout
6218
6219 \end_inset
6220 </cell>
6221 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6222 \begin_inset Text
6223
6224 \begin_layout Plain Layout
6225
6226 \series medium
6227 \shape up
6228 \size normal
6229 \emph off
6230 \bar no
6231 \noun off
6232 \color none
6233 \SpecialChar LaTeX
6234
6235 \family roman
6236 本体
6237 \end_layout
6238
6239 \end_inset
6240 </cell>
6241 </row>
6242 <row>
6243 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6244 \begin_inset Text
6245
6246 \begin_layout Plain Layout
6247
6248 \family sans
6249 \series medium
6250 \shape up
6251 \size normal
6252 \emph off
6253 \bar no
6254 \noun off
6255 \color none
6256 数式
6257 \end_layout
6258
6259 \end_inset
6260 </cell>
6261 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6262 \begin_inset Text
6263
6264 \begin_layout Plain Layout
6265
6266 \family typewriter
6267 \series medium
6268 \shape up
6269 \size normal
6270 \emph off
6271 \bar no
6272 \noun off
6273 \color none
6274 amssymb.sty
6275 \end_layout
6276
6277 \end_inset
6278 </cell>
6279 </row>
6280 <row>
6281 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6282 \begin_inset Text
6283
6284 \begin_layout Plain Layout
6285
6286 \family sans
6287 \series medium
6288 \shape up
6289 \size normal
6290 \emph off
6291 \bar no
6292 \noun off
6293 \color none
6294 絵文字1
6295 \end_layout
6296
6297 \end_inset
6298 </cell>
6299 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6300 \begin_inset Text
6301
6302 \begin_layout Plain Layout
6303
6304 \family typewriter
6305 \series medium
6306 \shape up
6307 \size normal
6308 \emph off
6309 \bar no
6310 \noun off
6311 \color none
6312 pifont.sty
6313 \end_layout
6314
6315 \end_inset
6316 </cell>
6317 </row>
6318 <row>
6319 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6320 \begin_inset Text
6321
6322 \begin_layout Plain Layout
6323
6324 \family sans
6325 \series medium
6326 \shape up
6327 \size normal
6328 \emph off
6329 \bar no
6330 \noun off
6331 \color none
6332 絵文字2
6333 \end_layout
6334
6335 \end_inset
6336 </cell>
6337 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6338 \begin_inset Text
6339
6340 \begin_layout Plain Layout
6341
6342 \family typewriter
6343 \series medium
6344 \shape up
6345 \size normal
6346 \emph off
6347 \bar no
6348 \noun off
6349 \color none
6350 pifont.sty
6351 \end_layout
6352
6353 \end_inset
6354 </cell>
6355 </row>
6356 <row>
6357 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6358 \begin_inset Text
6359
6360 \begin_layout Plain Layout
6361
6362 \family sans
6363 \series medium
6364 \shape up
6365 \size normal
6366 \emph off
6367 \bar no
6368 \noun off
6369 \color none
6370 絵文字3
6371 \end_layout
6372
6373 \end_inset
6374 </cell>
6375 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6376 \begin_inset Text
6377
6378 \begin_layout Plain Layout
6379
6380 \family typewriter
6381 \series medium
6382 \shape up
6383 \size normal
6384 \emph off
6385 \bar no
6386 \noun off
6387 \color none
6388 pifont.sty
6389 \end_layout
6390
6391 \end_inset
6392 </cell>
6393 </row>
6394 <row>
6395 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6396 \begin_inset Text
6397
6398 \begin_layout Plain Layout
6399
6400 \family sans
6401 \series medium
6402 \shape up
6403 \size normal
6404 \emph off
6405 \bar no
6406 \noun off
6407 \color none
6408 絵文字4
6409 \end_layout
6410
6411 \end_inset
6412 </cell>
6413 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6414 \begin_inset Text
6415
6416 \begin_layout Plain Layout
6417
6418 \family typewriter
6419 \series medium
6420 \shape up
6421 \size normal
6422 \emph off
6423 \bar no
6424 \noun off
6425 \color none
6426 pifont.sty
6427 \end_layout
6428
6429 \end_inset
6430 </cell>
6431 </row>
6432 </lyxtabular>
6433
6434 \end_inset
6435
6436
6437 \end_layout
6438
6439 \begin_layout Standard
6440 \SpecialChar LyX
6441 は,ユーザーが導入されていないパッケージのブリットを使用したとしても,警告を発しません.ファイルを閲覧したり印刷したりしようとしたときに\SpecialChar LaTeX
6442 エラーが出るようならば,
6443 パッケージが導入されていない可能性が大です
6444 \begin_inset Foot
6445 status collapsed
6446
6447 \begin_layout Plain Layout
6448 \SpecialChar LyX
6449 が,パッケージがなくてもブリットを使用することを許すのは,編集をここで行ったとしても,別のところへエクスポートする可能性があるからです.
6450 \end_layout
6451
6452 \end_inset
6453
6454
6455 \end_layout
6456
6457 \begin_layout Subsection
6458 使用法
6459 \end_layout
6460
6461 \begin_layout Standard
6462 変更したいブリット階層を選んで,ブリット形と寸法を選択してください.何らかの変更を加えたとしても,\SpecialChar LyX
6463 上には反映されませんが,文書の表示を行えば確認されます.
6464 \end_layout
6465
6466 \begin_layout Standard
6467 ブリット形は,適切な階層のブリットボタンをマウスで右クリックすれば,簡単に既定値に初期化することができます
6468 \begin_inset Foot
6469 status collapsed
6470
6471 \begin_layout Plain Layout
6472 もし
6473 \emph on
6474 本当に
6475 \emph default
6476 段落ごとに異なるブリットの形を使いたいならば,\SpecialChar TeX
6477 コードを使って少し手を汚す必要があります.この場合も,ブリット選択ダイアログを使えば,さまざまな形のLaTeXコー
6478 ドを確認することができるので手助けとなるでしょう.任意に設定した段落をつくるには,以下のような選択肢があります.
6479 \end_layout
6480
6481 \begin_layout Plain Layout
6482 \begin_inset ERT
6483 status open
6484
6485 \begin_layout Plain Layout
6486
6487
6488 \backslash
6489 let
6490 \backslash
6491 savelabelitemi=
6492 \backslash
6493 labelitemi
6494 \end_layout
6495
6496 \end_inset
6497
6498
6499 \end_layout
6500
6501 \begin_layout Plain Layout
6502 \begin_inset ERT
6503 status open
6504
6505 \begin_layout Plain Layout
6506
6507
6508 \backslash
6509 renewcommand
6510 \backslash
6511 labelitemi[0]{
6512 \backslash
6513 small
6514 \backslash
6515 (
6516 \backslash
6517 sharp
6518 \backslash
6519 )}
6520 \end_layout
6521
6522 \end_inset
6523
6524
6525 \end_layout
6526
6527 \begin_layout Itemize
6528 特定の階層の新しいブリット形を指定するには,\SpecialChar LaTeX
6529 コマンド
6530 \begin_inset Flex Code
6531 status collapsed
6532
6533 \begin_layout Plain Layout
6534
6535 \family typewriter
6536
6537 \backslash
6538 renewcommand{}{}
6539 \end_layout
6540
6541 \end_inset
6542
6543 を使用します.あとで現在のブリット形に戻すことができるように,現在のブリット形を保存しておく必要もあります.ここで使っている箇条書きでは,第1階層のブリットを変
6544 更するために,以下の\SpecialChar LaTeX
6545 コードが使用されています.
6546 \end_layout
6547
6548 \begin_deeper
6549 \begin_layout LyX-Code
6550
6551 \family typewriter
6552
6553 \backslash
6554 let
6555 \backslash
6556 savelabelitemi=
6557 \backslash
6558 labelitemi
6559 \end_layout
6560
6561 \begin_layout LyX-Code
6562
6563 \family typewriter
6564
6565 \backslash
6566 renewcommand
6567 \backslash
6568 labelitemi[0]{
6569 \backslash
6570 small
6571 \backslash
6572 (
6573 \backslash
6574 sharp
6575 \backslash
6576 )}
6577 \end_layout
6578
6579 \end_deeper
6580 \begin_layout Itemize
6581 箇条書き(記号)の階層は,
6582 \begin_inset Flex Code
6583 status collapsed
6584
6585 \begin_layout Plain Layout
6586
6587 \backslash
6588 labelitem
6589 \end_layout
6590
6591 \end_inset
6592
6593 コマンドの一部にローマ数字で指定されていることに注意してください.
6594 \end_layout
6595
6596 \begin_layout Itemize
6597 \begin_inset ERT
6598 status open
6599
6600 \begin_layout Plain Layout
6601
6602 [
6603 \backslash
6604 (
6605 \backslash
6606 star
6607 \backslash
6608 )]
6609 \end_layout
6610
6611 \end_inset
6612
6613 各項目のブリットを指定するには,角括弧で囲んだブリット形を,行頭に
6614 \begin_inset Flex Code
6615 status collapsed
6616
6617 \begin_layout Plain Layout
6618 \SpecialChar TeX
6619 コード
6620 \end_layout
6621
6622 \end_inset
6623
6624 として挿入してください.たとえば,この項目の行頭には
6625 \family typewriter
6626
6627 \begin_inset Flex Code
6628 status collapsed
6629
6630 \begin_layout Plain Layout
6631
6632 \family typewriter
6633 [
6634 \backslash
6635 (
6636 \backslash
6637 star
6638 \backslash
6639 )]
6640 \end_layout
6641
6642 \end_inset
6643
6644
6645 \family default
6646 が指定されています.
6647 \end_layout
6648
6649 \begin_layout Plain Layout
6650 \begin_inset ERT
6651 status open
6652
6653 \begin_layout Plain Layout
6654
6655
6656 \backslash
6657 renewcommand
6658 \backslash
6659 labelitemi[0]{
6660 \backslash
6661 savelabelitemi}
6662 \end_layout
6663
6664 \end_inset
6665
6666
6667 \end_layout
6668
6669 \begin_layout Plain Layout
6670 文書全体で使用するブリット形が有効であるようにするために,labelitemを元の設定に戻す必要があります.そのためには,以下のようにします.
6671 \end_layout
6672
6673 \begin_layout LyX-Code
6674
6675 \family typewriter
6676
6677 \backslash
6678 renewcommand
6679 \backslash
6680 labelitemi[0]{
6681 \backslash
6682 savelabelitemi}
6683 \end_layout
6684
6685 \end_inset
6686
6687
6688 \end_layout
6689
6690 \begin_layout Chapter
6691 \SpecialChar LyX
6692 とインターネット網
6693 \end_layout
6694
6695 \begin_layout Standard
6696 \SpecialChar LyX
6697 は,これまでも長い間,HTMLを始めとするウェブフレンドリーな文書諸形式への書き出しをサポートしてきました.しかしながら,第2.0版以前では,HTMLへの書き出し
6698 は,常に外部変換子を用いることで実現されていました
6699 \begin_inset Foot
6700 status collapsed
6701
6702 \begin_layout Plain Layout
6703 \SpecialChar LyX
6704 で外部変換子を使うことについての詳細は,取扱説明書『
6705 \emph on
6706 カスタマイズ篇
6707 \emph default
6708 』の「
6709 \emph on
6710 変換子
6711 \emph default
6712 」の節をご覧ください.
6713 \end_layout
6714
6715 \end_inset
6716
6717 .これらは2つのグループに大別できます.1つは,
6718 \begin_inset Flex Code
6719 status collapsed
6720
6721 \begin_layout Plain Layout
6722 htlatex
6723 \end_layout
6724
6725 \end_inset
6726
6727
6728 \begin_inset Flex Code
6729 status collapsed
6730
6731 \begin_layout Plain Layout
6732 html2latex
6733 \end_layout
6734
6735 \end_inset
6736
6737
6738 \begin_inset Flex Code
6739 status collapsed
6740
6741 \begin_layout Plain Layout
6742 plastex
6743 \end_layout
6744
6745 \end_inset
6746
6747 のように,\SpecialChar LaTeX
6748 を中間形式として用い,その\SpecialChar LaTeX
6749 を生成するのに\SpecialChar LyX
6750 を用いるもの.2つめは,
6751 \begin_inset Flex Code
6752 status collapsed
6753
6754 \begin_layout Plain Layout
6755 e\SpecialChar LyX
6756 er
6757 \end_layout
6758
6759 \end_inset
6760
6761 のように,直接\SpecialChar LyX
6762 ファイルに働きかける変換子です.これらは,それぞれに長所・短所を有しています.
6763 \end_layout
6764
6765 \begin_layout Standard
6766 \SpecialChar LaTeX
6767 ベースの変換子は,原則として,\SpecialChar LaTeX
6768 が書きだす文書についてのすべてを知っているという長所があります.この種の変換子は,例えば,特定のコードのくだりが,\SpecialChar LyX
6769 によって生成され
6770 たのか,\SpecialChar TeX
6771 コードで書かれたのかについては気にしません.これらの変換子は,
6772 \begin_inset Flex Code
6773 status collapsed
6774
6775 \begin_layout Plain Layout
6776 aux
6777 \end_layout
6778
6779 \end_inset
6780
6781 ファイルやカウンタや参照を取り扱うことができ,Bib\SpecialChar TeX
6782 が生成する
6783 \begin_inset Flex Code
6784 status collapsed
6785
6786 \begin_layout Plain Layout
6787 bbl
6788 \end_layout
6789
6790 \end_inset
6791
6792 ファイルも利用することがよくあります.一方で,\SpecialChar LaTeX
6793 は解析の非常に難しい言語であり—\SpecialChar TeX
6794 自身だけが\SpecialChar TeX
6795 を理解することができると言われたりすることがあります—,\SpecialChar LaTeX
6796 ベースの変換子は
6797 ,非常に簡単な文法に見えるものでさえ飲み込めず,複雑なものになると全く歯が立たないこともあります.例えば,この現行を書いている時点では,取扱説明書『
6798 \emph on
6799 埋込オブジェクト篇
6800 \emph default
6801 』は,他の変換子では書き出しができるのに,
6802 \begin_inset Flex Code
6803 status collapsed
6804
6805 \begin_layout Plain Layout
6806 htlatex
6807 \end_layout
6808
6809 \end_inset
6810
6811 では行うことができません.他には,数式をどう取り扱うかという問題があります.これらの変換子の典型的なものは,数式を小さな画像に変換して,HTML文書からこれらの
6812 画像へのリンクを張ります.これらの画像は,実は\SpecialChar LaTeX
6813 によって生成されているので,正確です.しかしながら,これらはうまく伸縮できないので,実際の文書の中で表現されるよう
6814 に—フォント寸が凡そ正しくなるように—見せようとすると,大変な苦労を伴います.
6815 \end_layout
6816
6817 \begin_layout Standard
6818 Alex Fernandezの
6819 \begin_inset Flex Code
6820 status collapsed
6821
6822 \begin_layout Plain Layout
6823 e\SpecialChar LyX
6824 er
6825 \end_layout
6826
6827 \end_inset
6828
6829  (
6830 \begin_inset CommandInset href
6831 LatexCommand href
6832 name "http://elyxer.nongnu.org/"
6833 target "http://elyxer.nongnu.org/"
6834 literal "false"
6835
6836 \end_inset
6837
6838 )は,これらの問題の一部を解決します.特に,これは数式を画像に変換するのではなく,HTMLとCSSを組み合わせて数式を生成するので,生成される数式は完璧な大きさ
6839 に伸縮されて表示されます.しかしながら,ちょっとだけ複雑な数式でさえ,
6840 \begin_inset Flex Code
6841 status collapsed
6842
6843 \begin_layout Plain Layout
6844 htlatex
6845 \end_layout
6846
6847 \end_inset
6848
6849 よりも質が落ちます.これはHTMLの限界を示しています
6850 \begin_inset Foot
6851 status collapsed
6852
6853 \begin_layout Plain Layout
6854 とはいえ,
6855 \begin_inset Flex Code
6856 status collapsed
6857
6858 \begin_layout Plain Layout
6859 e\SpecialChar LyX
6860 er
6861 \end_layout
6862
6863 \end_inset
6864
6865 では,数式用にjsMathとMathJaxを使用することもできます.ただし,この設定はグローバルにしか設定することができず,バックエンドで実行させるサーバへのア
6866 クセスが利用できる必要があります.
6867 \end_layout
6868
6869 \end_inset
6870
6871 .さらに重要なことは(少なくとも第1.1.1版においては),
6872 \begin_inset Flex Code
6873 status collapsed
6874
6875 \begin_layout Plain Layout
6876 e\SpecialChar LyX
6877 er
6878 \end_layout
6879
6880 \end_inset
6881
6882 は数式マクロを一部しかサポートしておらず,ユーザ定義の段落様式や文字様式をサポートしていません.これらの制約によって,\SpecialChar LyX
6883 ユーザが生成する文書の多くにとっては,
6884 \begin_inset Flex Code
6885 status collapsed
6886
6887 \begin_layout Plain Layout
6888 e\SpecialChar LyX
6889 er
6890 \end_layout
6891
6892 \end_inset
6893
6894 は不向きなものになっています.もちろん,原理的に,これらの問題を解決することもできたのですが,\SpecialChar LyX
6895 開発陣は別の方法を採ることとし,\SpecialChar LyX
6896 が\SpecialChar LaTeX
6897 やDocBook,平文を書き出す
6898 ことができるのと同様に,\SpecialChar LyX
6899 自身にXHTMLを書きだす能力を身につけさせることとしたのです.
6900 \end_layout
6901
6902 \begin_layout Standard
6903 この原稿執筆時点では,XHTML出力は開発途上であり,おそらく「実験的」機能として解されるべきでしょう
6904 \begin_inset Foot
6905 status collapsed
6906
6907 \begin_layout Plain Layout
6908 \SpecialChar LyX
6909 ソースツリーもしくは
6910 \begin_inset CommandInset href
6911 LatexCommand href
6912 name "オンラインでのアクセス"
6913 target "http://www.lyx.org/trac/browser/lyx-devel/trunk/development/HTML/HTML.notes"
6914 literal "false"
6915
6916 \end_inset
6917
6918 にある
6919 \begin_inset Flex Code
6920 status collapsed
6921
6922 \begin_layout Plain Layout
6923 development/HTML.notes
6924 \end_layout
6925
6926 \end_inset
6927
6928 ファイルには,通常,XHTML出力の現状についての最新の情報が収録されています.
6929 \begin_inset CommandInset href
6930 LatexCommand href
6931 name "バグ追跡ページ"
6932 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"
6933 literal "false"
6934
6935 \end_inset
6936
6937 にあるXHTML関連バグ一覧も参照のこと.
6938 \end_layout
6939
6940 \end_inset
6941
6942 .それでもこのアプローチは,他の2つの方法よりも,潜在的な利点がいくつもあるので,開発陣はこの方法を選択したのです.
6943 \end_layout
6944
6945 \begin_layout Standard
6946 これらの利点は,主に,XHTML出力ルーチンが\SpecialChar LyX
6947 の一部となっているため,\SpecialChar LyX
6948 が出力する文書について\SpecialChar LyX
6949 が関知しているところのものは,すべて知り得るというところから来ていま
6950
6951 \begin_inset Foot
6952 status collapsed
6953
6954 \begin_layout Plain Layout
6955 他には,これらのルーチンが\SpecialChar LyX
6956 内部にあるため,\SpecialChar LyX
6957 ファイル形式や既存の差込枠の文法に変更があっても,影響を受けずに済むという利点もあります.
6958 \end_layout
6959
6960 \end_inset
6961
6962 .つまり,XHTML出力ルーチンは,(文書構造に表示されるような形での)目次や,それぞれの段落様式に関連付けられたカウンタや,ユーザ定義の様式についても知ってい
6963 るのです.XHTML出力ルーチンは,国際化について\SpecialChar LyX
6964 が関知しているものも知っているので,ちょうどその時に有効になっている言語に依存して,「Chapter
6965  1」と出力されたり,「Kapitel 1」と出力されたりするのです.
6966 \end_layout
6967
6968 \begin_layout Standard
6969 汎く一般的に,出力ルーチンは,\SpecialChar LyX
6970 が文書レイアウトについて関知しているものは知っており,したがって,文書が画面上にどのように描画されるかも知っています.文書をXHT
6971 MLに出力するときには,この情報を利用します.特に,\SpecialChar LyX
6972 は,文書を画面上に描画するときに使用するレイアウト情報に対応したCSSスタイル情報を
6973 \emph on
6974 自動的に
6975 \emph default
6976 生成します.もし節見出しが,\SpecialChar LyX
6977 中でサンセリフ体かつボールド体であるとすると,(既定では)ウェブブラウザに表示した時にも,サンセリフでボールドになります.これは,節
6978 のような定義済み様式だけでなく,ユーザ定義のものも含めて,すべての様式でそうです.実際,XHTML出力ルーチンは,ユーザ定義の段落・文字様式と,\SpecialChar LyX
6979 自身の定義済み様
6980 式とを区別しません.どちらの場合も,\SpecialChar LyX
6981 が様式について関知しているところのものは,全てレイアウトファイルに含まれています.これは,脚注のような定義済み差込枠や,各種
6982 ユーザ設定差込枠でもそうです.
6983 \end_layout
6984
6985 \begin_layout Standard
6986 結果として,XHTML出力は,レイアウトファイルやモジュールを通して,\SpecialChar LaTeX
6987 出力と全く同じように,ユーザが設定したり拡張したりすることができるのです.詳細については,
6988 取扱説明書『
6989 \emph on
6990 カスタマイズ篇
6991 \emph default
6992 』の第5章をごらんください.
6993 \end_layout
6994
6995 \begin_layout Standard
6996 本章の残りでは,XHTML出力についての,さらに詳細な情報について取り扱い,その制約や,制約の回避の仕方を取り扱います.
6997 \end_layout
6998
6999 \begin_layout Section
7000 XHTMLにおける数式出力
7001 \end_layout
7002
7003 \begin_layout Standard
7004 \SpecialChar LyX
7005 では,数式描画に4つの方法を選択できます.以下に示すように,それぞれに利点と欠点があります.
7006 \end_layout
7007
7008 \begin_layout Itemize
7009 MathML
7010 \begin_inset Newline newline
7011 \end_inset
7012
7013 MathMLは,ウェブ上で数学を用いるために,特にデザインされたXMLの一方言であり,これをサポートするブラウザ上では,通常,特に美しい表現が得られます.欠点は
7014 ,すべてのブラウザがMathMLをサポートしているわけではないという事と,FirefoxのようなGeckoベースのブラウザでも,サポートが完璧ではないという事で
7015 す.
7016 \begin_inset Newline newline
7017 \end_inset
7018
7019 例えば,数式が
7020 \begin_inset Flex Code
7021 status collapsed
7022
7023 \begin_layout Plain Layout
7024 xymatrix
7025 \end_layout
7026
7027 \end_inset
7028
7029 パッケージを使用していたり,\SpecialChar TeX
7030 コードを使用しているなどで,もし\SpecialChar LyX
7031 が数式をMathMLとして描画できないとすると,\SpecialChar LyX
7032 は数式を代わりに画像として出力します.
7033  
7034 \end_layout
7035
7036 \begin_layout Itemize
7037 HTML
7038 \begin_inset Newline newline
7039 \end_inset
7040
7041 前述のとおり,
7042 \begin_inset Flex Code
7043 status collapsed
7044
7045 \begin_layout Plain Layout
7046 elyxer
7047 \end_layout
7048
7049 \end_inset
7050
7051 は,数式をCSSで装飾したHTMLとして出力します
7052 \begin_inset Foot
7053 status collapsed
7054
7055 \begin_layout Plain Layout
7056 \SpecialChar LyX
7057 は,
7058 \begin_inset Flex Code
7059 status collapsed
7060
7061 \begin_layout Plain Layout
7062 elyxer
7063 \end_layout
7064
7065 \end_inset
7066
7067 からのHTML出力のために,CSSの一部を拝借しています.
7068 \end_layout
7069
7070 \end_inset
7071
7072 .簡単な数式では,これは非常にうまく行きますが,少し複雑な数式になると,
7073 \begin_inset Flex Code
7074 status collapsed
7075
7076 \begin_layout Plain Layout
7077 elyxer
7078 \end_layout
7079
7080 \end_inset
7081
7082 は歯が立たなくなります.それでも,この方法は非常に広くサポートされているという利点があり,かなり簡単な数式を少しだけ含んでいるような文書に適しているでしょう.
7083 \begin_inset Newline newline
7084 \end_inset
7085
7086 例えば,数式が
7087 \begin_inset Flex Code
7088 status collapsed
7089
7090 \begin_layout Plain Layout
7091 xymatrix
7092 \end_layout
7093
7094 \end_inset
7095
7096 パッケージを使用していたり,\SpecialChar TeX
7097 コードを使用しているなどで,もし\SpecialChar LyX
7098 が数式をHTMLとして描画できないとすると,\SpecialChar LyX
7099 は数式を代わりに画像として出力します.
7100  
7101 \end_layout
7102
7103 \begin_layout Itemize
7104 画像
7105 \begin_inset Newline newline
7106 \end_inset
7107
7108
7109 \begin_inset Flex Code
7110 status collapsed
7111
7112 \begin_layout Plain Layout
7113 htlatex
7114 \end_layout
7115
7116 \end_inset
7117
7118 のように,\SpecialChar LyX
7119 は数式を画像としても出力できます.この画像は,実は,自動プレビューで使用されているものと全く同じです
7120 \begin_inset Foot
7121 status collapsed
7122
7123 \begin_layout Plain Layout
7124 ただし,画像を出力に使うために,自動プレビューを入にしておく必要は
7125 \emph on
7126 ありません
7127 \emph default
7128
7129 \end_layout
7130
7131 \end_inset
7132
7133 .この方法の利点は,画像が他ならぬ\SpecialChar LaTeX
7134 によって生成されているので,非常に正確であることです.欠点は,前述したとおり,画像がビットマップなので,伸縮が全くうまく行かな
7135 かったり,コピーが出来なかったりといったことがあります(執筆時点においては,数式の付番にも問題があります.
7136 \begin_inset CommandInset href
7137 LatexCommand href
7138 name "バグ 6894"
7139 target "http://www.lyx.org/trac/ticket/6894"
7140 literal "false"
7141
7142 \end_inset
7143
7144 を参照のこと.).
7145 \begin_inset Newline newline
7146 \end_inset
7147
7148 画像の寸法は,
7149 \begin_inset Flex MenuItem
7150 status collapsed
7151
7152 \begin_layout Plain Layout
7153 文書\SpecialChar menuseparator
7154 設定\SpecialChar menuseparator
7155 出力
7156 \end_layout
7157
7158 \end_inset
7159
7160 の「数式画像の伸縮」パラメータを変更することで制御できます
7161 \begin_inset Foot
7162 status collapsed
7163
7164 \begin_layout Plain Layout
7165 必要な方のために述べておくと,これは,画像の解像度をdpi (1インチあたりドット数)で制御するためのもので,75dpiを基準としています.
7166 \end_layout
7167
7168 \end_inset
7169
7170
7171 \begin_inset Newline newline
7172 \end_inset
7173
7174 もし\SpecialChar LyX
7175 が,何らかの理由によって数式の画像を生成できない(例えば,必要な\SpecialChar LaTeX
7176 パッケージが導入済みでないなど)ときは,回避策として,生の\SpecialChar LaTeX
7177 を出力します.
7178 \end_layout
7179
7180 \begin_layout Itemize
7181 \SpecialChar LaTeX
7182
7183 \begin_inset Newline newline
7184 \end_inset
7185
7186 最後に,\SpecialChar LyX
7187 は,数式を\SpecialChar LaTeX
7188 としても出力することができます.この方法は,最終手段としての出力方法である一方で,HTML文書に埋め込まれた\SpecialChar LaTeX
7189 を描画するのにJavaScript
7190 を使用する,
7191 \begin_inset CommandInset href
7192 LatexCommand href
7193 name "jsMath"
7194 target "http://www.math.union.edu/~dpvc/jsMath/"
7195 literal "false"
7196
7197 \end_inset
7198
7199 のようなツールとともに使用することもできます.\SpecialChar LyX
7200 は,jsMathで必要とされているのと同じように,\SpecialChar LaTeX
7201 部分を,
7202 \begin_inset Flex Code
7203 status collapsed
7204
7205 \begin_layout Plain Layout
7206 span
7207 \end_layout
7208
7209 \end_inset
7210
7211 (行内数式用)または
7212 \begin_inset Flex Code
7213 status collapsed
7214
7215 \begin_layout Plain Layout
7216 div
7217 \end_layout
7218
7219 \end_inset
7220
7221 (別行立て数式用)に
7222 \begin_inset Flex Code
7223 status collapsed
7224
7225 \begin_layout Plain Layout
7226 class='math'
7227 \end_layout
7228
7229 \end_inset
7230
7231 を指定したもので,包んで出力します.
7232 \end_layout
7233
7234 \begin_layout Standard
7235 これらの出力方法のいずれかを
7236 \begin_inset Flex MenuItem
7237 status collapsed
7238
7239 \begin_layout Plain Layout
7240 文書\SpecialChar menuseparator
7241 設定\SpecialChar menuseparator
7242 出力
7243 \end_layout
7244
7245 \end_inset
7246
7247 で選択しなくてはなりません.既定では,\SpecialChar LyX
7248 はMathMLで出力を行います.これは,文書全体に適用される設定となります.
7249 \end_layout
7250
7251 \begin_layout Standard
7252 最後に,\SpecialChar LyX
7253 では,例えば,MathMLではあまりうまく出力されないような差込枠に対して,別の出力方法を選択できる選択肢が用意されています
7254 \begin_inset Foot
7255 status collapsed
7256
7257 \begin_layout Plain Layout
7258 その他にも,\SpecialChar LyX
7259 は,差込枠に\SpecialChar TeX
7260 コードが含まれていると画像出力に回帰するので,数式中に
7261 \begin_inset Formula $a=b\relax$
7262 \end_inset
7263
7264 のような無害な\SpecialChar TeX
7265 コードを挿入することによって,画像出力を強制することができます.
7266 \end_layout
7267
7268 \end_inset
7269
7270
7271 \end_layout
7272
7273 \begin_layout Section
7274 書誌情報と引用
7275 \end_layout
7276
7277 \begin_layout Standard
7278 XHTML出力は,書誌情報と引用を完全にサポートしています.
7279 \end_layout
7280
7281 \begin_layout Standard
7282 引用ラベルは,\SpecialChar LyX
7283 画面上のラベルを生成するのと同じ機構で生成されているので,出力中のラベルは,\SpecialChar LyX
7284 中の外見と同質またはそれよりも上質な仕上がりとなっています.連番引用を
7285 使用している場合には,\SpecialChar LyX
7286 は,画面上で表示されるような各カッコに囲まれた引用鍵を単純に表示するのではなく,[1]や[17]などの連番ラベルを出力します.著者-出版年
7287 形式の引用を使用している場合で,同じ著者-出版年の組み合わせが複数ある場合,\SpecialChar LyX
7288 は,Bib\SpecialChar TeX
7289 が行うように出版年に小文字を付します.ラベルは,書誌情報項目とともに印字さ
7290 れます.現在のところ,角括弧を丸括弧に変更するなど,ラベルの外見を変更する手段はありませんのでご注意ください.
7291 \end_layout
7292
7293 \begin_layout Standard
7294 書誌情報出力は,引用ダイアログで文献情報表示を取り扱うのと同じ機構で取り扱われているので,XHTML出力は,引用ダイアログで特定の文献項目を表示させた時のものに
7295 非常によく似ています.整形の仕方は,レイアウトファイルや望ましくはモジュールでカスタマイズすることができます.詳細については,取扱説明書『カスタマイズ篇』をご覧
7296 ください.
7297 \end_layout
7298
7299 \begin_layout Standard
7300 現在のところ,主だった瑕疵は,相互参照された情報が,関連した項目の全てに印字されてしまうことです.つまり,以下のような表示が為されます.
7301 \end_layout
7302
7303 \begin_layout Quote
7304 Jason Stanley, 
7305 \begin_inset Quotes eld
7306 \end_inset
7307
7308 Context and Logical Form
7309 \begin_inset Quotes erd
7310 \end_inset
7311
7312 , in 
7313 \emph on
7314 Language in Context: Selected Essays
7315 \emph default
7316  (Oxford: Oxford University Press, 2007), pp.
7317  30–68.
7318 \end_layout
7319
7320 \begin_layout Quote
7321 Jason Stanley, 
7322 \begin_inset Quotes eld
7323 \end_inset
7324
7325 Semantics in Context
7326 \begin_inset Quotes erd
7327 \end_inset
7328
7329 , in 
7330 \emph on
7331 Language in Context: Selected Essays
7332 \emph default
7333  (Oxford: Oxford University Press, 2007), pp.
7334  201–30.
7335 \end_layout
7336
7337 \begin_layout Standard
7338 これは,遠くないうちに修正されるでしょう.
7339 \end_layout
7340
7341 \begin_layout Standard
7342 現在のところ,節ごとの書誌情報出力はサポートされていません.複数の書誌情報がある場合には,\SpecialChar LyX
7343 は同じ情報を繰り返し出力してしまいます.
7344 \end_layout
7345
7346 \begin_layout Section
7347 索引
7348 \end_layout
7349
7350 \begin_layout Standard
7351 \SpecialChar LyX
7352 は,索引をXHTMLとして書きだすことができますが,現在のところ,若干の制約があります.
7353 \end_layout
7354
7355 \begin_layout Standard
7356 索引の書き出しは,
7357 \emph on
7358 ユーザーの手引き
7359 \emph default
7360 の索引の節に書かれているような手の込んだ方法を使おうとしないほうが,信頼性が保てます
7361 \begin_inset Foot
7362 status collapsed
7363
7364 \begin_layout Plain Layout
7365 ここでの主な問題は,これらの操作の際に,\SpecialChar LyX
7366 自身は何もしていないという点です.つまり,生の\SpecialChar LaTeX
7367 で入力しなくてはならないようなものをそのまま入力しているのです.
7368 \end_layout
7369
7370 \end_inset
7371
7372 .当該節の小節見出しに沿って,それらがどう処理されるかを説明しましょう.
7373 \end_layout
7374
7375 \begin_layout Itemize
7376 索引項目のグループ化(下層項目): \SpecialChar LyX
7377 はこれらをサポートしようと努めていますが,項目は「 ! 」(感嘆符の周りに空白)で分離しなくてはなりません.これは,そうしな
7378 いと数式などで使われているエスケープされた感嘆符をチェックするのが非常に難しくなるからです.
7379 \end_layout
7380
7381 \begin_layout Itemize
7382 ページ範囲: ページ範囲については,XHTMLでは意味がないので,全くサポートされません.その代わりに,引用項目のはじめと終わりの頁それぞれに,2つの索引項目が
7383 得られるだけです.
7384 \end_layout
7385
7386 \begin_layout Itemize
7387 相互参照: 相互参照のサポートはありません.\SpecialChar LyX
7388 が「|see\SpecialChar ldots
7389 」という下だりを持つ項目を検出すると,その部分はただ無視されて,残りの部分が通常の索引項目だとみなされま
7390 す.
7391 \end_layout
7392
7393 \begin_layout Itemize
7394 索引項目の整序: \SpecialChar LyX
7395 は整序順の変更をサポートします.\SpecialChar LyX
7396 は,最初に検出した「@」の前の部分を取り出して,それを整序に用い,最初の「@」の後の部分を実際の項目として取り
7397 出します.現在のところ,\SpecialChar LyX
7398 はエスケープされた「@」を取り扱わないので,電子メールアドレスを索引に使わないでください.
7399 \end_layout
7400
7401 \begin_layout Itemize
7402 索引項目のレイアウト: 項目は,テキスト様式ダイアログを使うなり,\SpecialChar LyX
7403 内で使用可能な方法を用いることで,索引項目を成形することができます.「項目|textbf」のよ
7404 うな文法はサポートされません.\SpecialChar LyX
7405 は,項目内にパイプ記号「|」を検出すると,パイプ記号とその後に続くものすべてを削除してしまいます.
7406 \end_layout
7407
7408 \begin_layout Itemize
7409 複数の索引: 複数の索引はサポートされていません.すべての項目は,ひとつの大きな索引として印字されます.索引が何度も印字されることを防ぐため,中心となる索引だけ
7410 を印字しますので,その索引は必ず置くようにしてください.
7411 \end_layout
7412
7413 \begin_layout Section
7414 記号一覧および用語集
7415 \end_layout
7416
7417 \begin_layout Standard
7418 現在のところ,用語集のサポートはありません.この機能の追加は,比較的容易だと思われますので,あなたの貢献をお待ちしております.
7419 \end_layout
7420
7421 \begin_layout Chapter
7422 \SpecialChar LyX
7423 サーバー
7424 \begin_inset CommandInset label
7425 LatexCommand label
7426 name "chap:LyXサーバー"
7427
7428 \end_inset
7429
7430
7431 \end_layout
7432
7433 \begin_layout Section
7434 はじめに
7435 \end_layout
7436
7437 \begin_layout Standard
7438 「\SpecialChar LyX
7439 サーバー」を使用すると,他のプログラムが,\SpecialChar LyX
7440 と通信したり,\SpecialChar LyX
7441 コマンドを実行させたり,\SpecialChar LyX
7442 の内部状態に関する情報を取得したりすることができるようになります.これは熟練し
7443 たユーザー向けの機能ですが,便利なはずです.たとえば,\SpecialChar LyX
7444 サーバーに書き込むことによって,JabRefのような書誌情報管理ソフトが,LyXに文献引用を「押し込む」こ
7445 とが可能となります.
7446 \end_layout
7447
7448 \begin_layout Section
7449 \SpecialChar LyX
7450 サーバーを開始するには
7451 \end_layout
7452
7453 \begin_layout Standard
7454 \SpecialChar LyX
7455 サーバーは,名前をつけたパイプの対を利用することで機能します.パイプは,通常
7456 \begin_inset Flex Code
7457 status collapsed
7458
7459 \begin_layout Plain Layout
7460 UserDir
7461 \end_layout
7462
7463 \end_inset
7464
7465 の下に作られ(Windowsを除く.Windowsでは,名前を付けた
7466 \emph on
7467 ローカルの
7468 \emph default
7469 パイプは
7470 \begin_inset Flex Code
7471 status collapsed
7472
7473 \begin_layout Plain Layout
7474
7475 \backslash
7476
7477 \backslash
7478 .
7479 \backslash
7480 pipe
7481 \end_layout
7482
7483 \end_inset
7484
7485 に特別なオブジェクトとして置かれます),「
7486 \begin_inset Flex Code
7487 status collapsed
7488
7489 \begin_layout Plain Layout
7490 .lyxpipe.in
7491 \end_layout
7492
7493 \end_inset
7494
7495 」および「
7496 \begin_inset Flex Code
7497 status collapsed
7498
7499 \begin_layout Plain Layout
7500 .lyxpipe.out
7501 \end_layout
7502
7503 \end_inset
7504
7505 」という名前がついています.外部プログラムは,
7506 \begin_inset Flex Code
7507 status collapsed
7508
7509 \begin_layout Plain Layout
7510 .lyxpipe.in
7511 \end_layout
7512
7513 \end_inset
7514
7515 に書き込みを行い,戻りデータを
7516 \begin_inset Flex Code
7517 status collapsed
7518
7519 \begin_layout Plain Layout
7520 .lyxpipe.out
7521 \end_layout
7522
7523 \end_inset
7524
7525 から読み出します.パイプ名の語幹は,
7526 \begin_inset Flex MenuItem
7527 status collapsed
7528
7529 \begin_layout Plain Layout
7530 ツール\SpecialChar menuseparator
7531 設定
7532 \end_layout
7533
7534 \end_inset
7535
7536 から,たとえば「
7537 \begin_inset Flex Code
7538 status collapsed
7539
7540 \begin_layout Plain Layout
7541 /home/myhome/lyxpipe
7542 \end_layout
7543
7544 \end_inset
7545
7546 」あるいはWindowsでは「
7547 \begin_inset Flex Code
7548 status collapsed
7549
7550 \begin_layout Plain Layout
7551
7552 \backslash
7553
7554 \backslash
7555 .
7556 \backslash
7557 pipe
7558 \backslash
7559 lyxpipe
7560 \end_layout
7561
7562 \end_inset
7563
7564 」などに設定することができます(ここで,lyxpipe以外の任意のファイルパス,例えば
7565 \begin_inset Flex Code
7566 status collapsed
7567
7568 \begin_layout Plain Layout
7569 "
7570 \backslash
7571
7572 \backslash
7573 .
7574 \backslash
7575 pipe
7576 \backslash
7577 my
7578 \backslash
7579 lyx
7580 \backslash
7581 pipe"
7582 \end_layout
7583
7584 \end_inset
7585
7586 なども使用できます).サーバーを開始するためには,これを
7587 \emph on
7588 手動で設定しなくてはなりません
7589 \emph default
7590
7591 \end_layout
7592
7593 \begin_layout Standard
7594 \SpecialChar LyX
7595 は,パイプを生成するに際して,「
7596 \begin_inset Flex Code
7597 status collapsed
7598
7599 \begin_layout Plain Layout
7600 .in
7601 \end_layout
7602
7603 \end_inset
7604
7605 」および「
7606 \begin_inset Flex Code
7607 status collapsed
7608
7609 \begin_layout Plain Layout
7610 .out
7611 \end_layout
7612
7613 \end_inset
7614
7615 」を付け加えます.パイプがすでに存在していれば,\SpecialChar LyX
7616 は他の\SpecialChar LyX
7617 プロセスがすでに実行中であると判断して,サーバーを開始しません.POSIX(Unix型)システムでは,なん
7618 らかの理由で,\SpecialChar LyX
7619 が終了する際に使用されていない「古い」パイプが削除されずに残ったりすると,\SpecialChar LyX
7620 はこれを削除しようとします.何らかの理由でこれが失敗した場合,手動でパイ
7621 プを削除したのちに,\SpecialChar LyX
7622 を再起動する必要があります.Windowsでは,プログラムが終了したりクラッシュしたりすると,OSがパイプを削除するので,「古い」パイプが残
7623 ることはありません.
7624 \end_layout
7625
7626 \begin_layout Standard
7627 サーバーを使用する\SpecialChar LyX
7628 プロセスを複数起動するには,それぞれのプロセスに,別のユーザーディレクトリを使用させたり,別々の
7629 \begin_inset Flex Code
7630 status collapsed
7631
7632 \begin_layout Plain Layout
7633 preferences
7634 \end_layout
7635
7636 \end_inset
7637
7638 ファイルを使用させるなど,別々の設定を使用する必要があります.
7639 \end_layout
7640
7641 \begin_layout Standard
7642 クライアントプログラムを開発しようとされているのであれば,\SpecialChar LyX
7643 サーバーからのデバッグ情報を有効にすると便利かもしれません.そのためには,Lyxを
7644 \begin_inset Flex Code
7645 status collapsed
7646
7647 \begin_layout Plain Layout
7648 lyx -dbg lyxserver
7649 \end_layout
7650
7651 \end_inset
7652
7653 として起動してください.
7654 \end_layout
7655
7656 \begin_layout Standard
7657 C++言語で書かれた完全なサンプルクライアントが,ソース頒布版の
7658 \begin_inset Newline newline
7659 \end_inset
7660
7661
7662 \begin_inset Flex Code
7663 status collapsed
7664
7665 \begin_layout Plain Layout
7666 development/lyxserver/server_monitor.cpp
7667 \end_layout
7668
7669 \end_inset
7670
7671 にあります.
7672 \end_layout
7673
7674 \begin_layout Standard
7675 もう一つの便利なツールとして,
7676 \begin_inset Flex Code
7677 status collapsed
7678
7679 \begin_layout Plain Layout
7680 src/client/lyxclient
7681 \end_layout
7682
7683 \end_inset
7684
7685 にあるコマンドラインベースのクライアントがあります.
7686 \end_layout
7687
7688 \begin_layout Section
7689 通常の通信
7690 \end_layout
7691
7692 \begin_layout Standard
7693 \SpecialChar LyX
7694 コールを発行するには,クライアントはASCIIテキスト行を入力パイプに書き込みまなくてはなりません.この行は,以下の書式を持ちます.
7695 \end_layout
7696
7697 \begin_layout Quote
7698 LYXCMD:
7699 \emph on
7700 クライアント名
7701 \emph default
7702 :
7703 \emph on
7704 関数
7705 \emph default
7706 :
7707 \emph on
7708 引数
7709 \end_layout
7710
7711 \begin_layout Description
7712 クライアント名 は,クライアントが自由に選べる名前です.これが用いられるのは,クライアントが他の要求クライアントから結果を見分けることができるように,\SpecialChar LyX
7713 が返答をす
7714 る際,クライアント名をエコーするときだけです.
7715 \end_layout
7716
7717 \begin_layout Description
7718 関数 は,\SpecialChar LyX
7719 に実行させたい関数です.これは,ミニバッファで使用するコマンドと同じです.
7720 \end_layout
7721
7722 \begin_layout Description
7723 引数 は,一部の関数のみに効力を持つオプションの引数です(たとえば,「自己挿入」LFUNは,現在のカーソル位置に引数を文章として挿入します).
7724 \end_layout
7725
7726 \begin_layout Standard
7727 \SpecialChar LyX
7728 からの返答は,出力パイプに送り出され,
7729 \end_layout
7730
7731 \begin_layout Quote
7732 INFO:
7733 \emph on
7734 クライアント名
7735 \emph default
7736 :
7737 \emph on
7738 関数
7739 \emph default
7740 :
7741 \emph on
7742 データ
7743 \end_layout
7744
7745 \begin_layout Standard
7746 の書式をしています.ここで
7747 \emph on
7748 クライアント名
7749 \emph default
7750
7751 \emph on
7752 関数
7753 \emph default
7754 は,コマンド要求からそのままエコーされますが,
7755 \emph on
7756 データ
7757 \emph default
7758 はコマンド実行の結果に依存した,多少なりとも有用な情報です.「font-state」のような一部のコマンドは,\SpecialChar LyX
7759 の内部状態に関する情報を返しますが,空のデータ応答
7760 を返すものもあります.空のデータ返答は,コマンド実行が無事終わったことを意味します.
7761 \end_layout
7762
7763 \begin_layout Standard
7764 エラーが発生した場合の\SpecialChar LyX
7765 の返答は
7766 \end_layout
7767
7768 \begin_layout Quote
7769 ERROR:
7770 \emph on
7771 クライアント名
7772 \emph default
7773 :
7774 \emph on
7775 関数
7776 \emph default
7777 :
7778 \emph on
7779 エラーメッセージ
7780 \end_layout
7781
7782 \begin_layout Standard
7783 の書式をしており,
7784 \emph on
7785 エラーメッセージ
7786 \emph default
7787 には,なぜコマンドが失敗したかの説明が入っているはずです.
7788 \end_layout
7789
7790 \begin_layout Standard
7791 (例)
7792 \end_layout
7793
7794 \begin_layout LyX-Code
7795 echo "LYXCMD:test:beginning-of-buffer:" >~/.lyxpipe.in
7796 \begin_inset Newline newline
7797 \end_inset
7798
7799 echo "LYXCMD:test:get-xy:" >~/.lyxpipe.in
7800 \begin_inset Newline newline
7801 \end_inset
7802
7803 read a <~/.lyxpipe.out
7804 \begin_inset Newline newline
7805 \end_inset
7806
7807 echo $a
7808 \end_layout
7809
7810 \begin_layout Section
7811 通知
7812 \end_layout
7813
7814 \begin_layout Standard
7815 \SpecialChar LyX
7816 は,発生しているイベントを,非同期的にクライアントに通知することができます.いまのところ,ユーザーがある
7817 \begin_inset Flex Ruby
7818 status collapsed
7819
7820 \begin_layout Plain Layout
7821
7822 \begin_inset Argument post:1
7823 status collapsed
7824
7825 \begin_layout Plain Layout
7826 キー
7827 \end_layout
7828
7829 \end_inset
7830
7831
7832 \end_layout
7833
7834 \end_inset
7835
7836 列を関数「notify」に割り当てているときのみ,\SpecialChar LyX
7837 はこの通知を行います.\SpecialChar LyX
7838 が送る文字列の書式は
7839 \end_layout
7840
7841 \begin_layout Quote
7842 \begin_inset Flex Code
7843 status collapsed
7844
7845 \begin_layout Plain Layout
7846 NOTIFY:
7847 \end_layout
7848
7849 \end_inset
7850
7851
7852 \emph on
7853 鍵列
7854 \end_layout
7855
7856 \begin_layout Standard
7857 となっていて,
7858 \emph on
7859 鍵列
7860 \emph default
7861 は,ユーザーが実際に打鍵した鍵列の印字表現になります.
7862 \end_layout
7863
7864 \begin_layout Standard
7865 この機構は,\SpecialChar LyX
7866 のコマンド群を拡張してマクロを実装するのに使用することができます.なんらかの鍵列を「notify」に割り当ててください.それから出力パイプで待機する
7867 クライアントを起動し,鍵列に応じたコマンドを読み込み,一つないし複数の\SpecialChar LyX
7868 コマンドを発行する\SpecialChar LyX
7869 要求と\SpecialChar LyX
7870 コールを使用する関数を開始するのです.
7871 \end_layout
7872
7873 \begin_layout Section
7874 単純な\SpecialChar LyX
7875 サーバープロトコル
7876 \end_layout
7877
7878 \begin_layout Standard
7879 \SpecialChar LyX
7880 は,セッション管理に使用することができる単純なプロトコルを実装しています.メッセージは,すべて
7881 \end_layout
7882
7883 \begin_layout Quote
7884 LYXSRV:
7885 \emph on
7886 クライアント名
7887 \emph default
7888 :
7889 \emph on
7890 プロトコルメッセージ
7891 \end_layout
7892
7893 \begin_layout Standard
7894 の書式をしており,
7895 \emph on
7896 プロトコルメッセージ
7897 \emph default
7898 は「hello」ないし「bye」です.クライアントから「hello」を受け取ると,\SpecialChar LyX
7899 はメッセージを聴いていることをクライアントに伝えるために返答をし,\SpecialChar LyX
7900 が終了するこ
7901 とをクライアントに伝えるのには,\SpecialChar LyX
7902 が「bye」を送信します.
7903 \end_layout
7904
7905 \begin_layout Section
7906 DVIとPDFの遡及検索
7907 \end_layout
7908
7909 \begin_layout Standard
7910 DVI/PDFビューア
7911 \begin_inset Foot
7912 status collapsed
7913
7914 \begin_layout Plain Layout
7915 PDFの遡及検索機能を提供しているビューアには,KDE/Linux上のOkularと
7916 \lang english
7917 Qpdfview on Unix
7918 \lang japanese
7919 とMac OS X上のSkim,Windows上のSumatraPDFがあります.
7920 \end_layout
7921
7922 \end_inset
7923
7924 には,遡及検索(reverse searchないしinverse searchと呼ばれます)機能を提供しているものがあります.これを使えば,DVI/PDF出力の
7925 特定の場所をクリックすることによって,\SpecialChar LyX
7926 の文書中で対応する行にカーソルを移動させることができます.これを実現するためには,ビューアは\SpecialChar LyX
7927 と情報交換を行う必要があります
7928 .これは,命名パイプ(
7929 \emph on
7930 lyxpipe
7931 \emph default
7932 )を使用するか,\SpecialChar LyX
7933 が作業ディレクトリに生成するUNIXドメインソケット(
7934 \emph on
7935 lyxsocket
7936 \emph default
7937 )を使用する(これは
7938 \begin_inset Flex Code
7939 status collapsed
7940
7941 \begin_layout Plain Layout
7942 lyxclient
7943 \end_layout
7944
7945 \end_inset
7946
7947 プログラムが\SpecialChar LyX
7948 と通信するのに使用している方法です)ことで,\SpecialChar LyX
7949 サーバを経由して実現することができます.場合によっては,ビューアと\SpecialChar LyX
7950 を橋渡しする補助スクリプトを必要とする
7951 ことがあるかもしれませんが,それ以外は,ビューアは\SpecialChar LyX
7952 と直接通信することができます.これは,選んだビューアと基本ソフトに依存します.また,必要とされるビューアの設定
7953 法と遡及検索が実際に行われる方法とにも依存します.したがって,下記では個々のビューア毎の遡及検索の設定の仕方を説明することとします.その前に,DVI/PDF出力
7954 で遡及検索を有効にするためには,一般に何が必要とされるかを説明します.
7955 \end_layout
7956
7957 \begin_layout Subsection
7958 \begin_inset CommandInset label
7959 LatexCommand label
7960 name "subsec:遡及検索"
7961
7962 \end_inset
7963
7964 自動有効化
7965 \end_layout
7966
7967 \begin_layout Standard
7968 \begin_inset Flex MenuItem
7969 status collapsed
7970
7971 \begin_layout Plain Layout
7972 文書\SpecialChar menuseparator
7973 設定\SpecialChar menuseparator
7974 出力
7975 \end_layout
7976
7977 \end_inset
7978
7979 メニューで
7980 \begin_inset Flex MenuItem
7981 status collapsed
7982
7983 \begin_layout Plain Layout
7984 出力と同期
7985 \end_layout
7986
7987 \end_inset
7988
7989 オプションを有効にすれば,ほとんどの場合,\SpecialChar LyX
7990 がすべてをうまくこなしてくれます.その場合,\SpecialChar LyX
7991 は,自動的に,必要なSync\SpecialChar TeX
7992 マクロ(PDFの場合)や,srcltxパッケー
7993 ジ(DVIの場合)を挿入してくれます.このオプションは,
7994 \begin_inset Flex MenuItem
7995 status collapsed
7996
7997 \begin_layout Plain Layout
7998 表示/更新
7999 \end_layout
8000
8001 \end_inset
8002
8003 ツールバーからも容易にアクセスすることができます.
8004 \end_layout
8005
8006 \begin_layout Standard
8007 もし,これとは別の設定が必要な場合には,
8008 \begin_inset Flex MenuItem
8009 status collapsed
8010
8011 \begin_layout Plain Layout
8012 文書\SpecialChar menuseparator
8013 設定\SpecialChar menuseparator
8014 出力\SpecialChar menuseparator
8015 出力と同期
8016 \end_layout
8017
8018 \end_inset
8019
8020 の直下にあるドロップダウンボックスから,自製マクロを選択ないし入力することができます.
8021 \end_layout
8022
8023 \begin_layout Standard
8024 方式として
8025 \begin_inset Flex Code
8026 status collapsed
8027
8028 \begin_layout Plain Layout
8029
8030 \backslash
8031 synctex=1
8032 \end_layout
8033
8034 \end_inset
8035
8036 を用いると,gzip圧縮が有効となることに注意してください.使用しているビューアがgzip圧縮をサポートしていない場合には,代わりに
8037 \begin_inset Flex Code
8038 status collapsed
8039
8040 \begin_layout Plain Layout
8041
8042 \backslash
8043 synctex=-1
8044 \end_layout
8045
8046 \end_inset
8047
8048 を指定してください.
8049 \end_layout
8050
8051 \begin_layout Standard
8052 また,
8053 \begin_inset Flex Code
8054 status collapsed
8055
8056 \begin_layout Plain Layout
8057 srcltx
8058 \end_layout
8059
8060 \end_inset
8061
8062 パッケージや
8063 \begin_inset Flex Code
8064 status collapsed
8065
8066 \begin_layout Plain Layout
8067 src-specials
8068 \end_layout
8069
8070 \end_inset
8071
8072 を取り込むと,組版上,不具合が生じることがあるのでご注意ください.したがって,
8073 \begin_inset Flex Code
8074 status collapsed
8075
8076 \begin_layout Plain Layout
8077 srcltx
8078 \end_layout
8079
8080 \end_inset
8081
8082 パッケージや
8083 \begin_inset Flex Code
8084 status collapsed
8085
8086 \begin_layout Plain Layout
8087 src-specials
8088 \end_layout
8089
8090 \end_inset
8091
8092 を使用している場合には,最終版を組版する際には,出力同期を無効にするべきです.
8093 \end_layout
8094
8095 \begin_layout Standard
8096 自動設定でカバーされている範囲よりも,さらに特殊なものが必要な場合には,出力同期を手動で設定する仕方を述べた次節をお読みください.自動設定で事足りる場合には,自
8097 動設定・手動設定ともに必要となるビューア上の設定を述べた,第
8098 \begin_inset CommandInset ref
8099 LatexCommand ref
8100 reference "subsec:特定のビューアを設定して使うには"
8101
8102 \end_inset
8103
8104 節に進むことができます.
8105 \end_layout
8106
8107 \begin_layout Subsection
8108 手動有効化
8109 \end_layout
8110
8111 \begin_layout Standard
8112 \SpecialChar LaTeX
8113 は,遡及検索のために複数の方法を提供しています.ある方法は
8114 \begin_inset Flex Code
8115 status collapsed
8116
8117 \begin_layout Plain Layout
8118 latex/pdflatex
8119 \end_layout
8120
8121 \end_inset
8122
8123 プログラムに組み込まれており,他の方法は外部パッケージとして提供されています.どちらを選択するかは,お使いの\SpecialChar LaTeX
8124 頒布版が既に特定の方法を提供しているか(組み込みによ
8125 る方法は比較的新しいものです)と,お使いのビューアがそれに対応しているかに依存します.使用可能な方法を以下に述べます.
8126 \end_layout
8127
8128 \begin_layout Subsubsection*
8129 src-special経由のDVI組み込み検索(DVIのみ)
8130 \end_layout
8131
8132 \begin_layout Standard
8133 この方法は,DVIファイルに遡及検索に必要な情報を追加するものです.これは,かなり前の\SpecialChar LaTeX
8134 から利用可能となっており(比較的最近の\SpecialChar LaTeX
8135 頒布版はすべて対応しています),安定
8136 して動作します.これを有効にするには,
8137 \begin_inset Flex MenuItem
8138 status collapsed
8139
8140 \begin_layout Plain Layout
8141 設定\SpecialChar menuseparator
8142 ファイル処理\SpecialChar menuseparator
8143 変換子
8144 \end_layout
8145
8146 \end_inset
8147
8148
8149 \begin_inset Flex MenuItem
8150 status collapsed
8151
8152 \begin_layout Plain Layout
8153 LaTeX (plain)->DVI
8154 \end_layout
8155
8156 \end_inset
8157
8158 ないし
8159 \begin_inset Flex MenuItem
8160 status collapsed
8161
8162 \begin_layout Plain Layout
8163 LaTeX (plain)->DraftDVI
8164 \end_layout
8165
8166 \end_inset
8167
8168 変換子を
8169 \begin_inset Flex Code
8170 status collapsed
8171
8172 \begin_layout Plain Layout
8173 latex -src-specials $$i
8174 \end_layout
8175
8176 \end_inset
8177
8178 に変更します.もしこれが動作しないときは,お使いの\SpecialChar LaTeX
8179 エンジンが違うオプションを必要としていないか確認してください(頒布版によっては文法の異なることがあります).
8180 \end_layout
8181
8182 \begin_layout Subsubsection*
8183 外部パッケージ(PDFSyncおよびsrcltx)
8184 \end_layout
8185
8186 \begin_layout Standard
8187
8188 \emph on
8189 pdfsync
8190 \emph default
8191 および
8192 \emph on
8193 srcltx
8194 \emph default
8195 パッケージは,PDF出力(pdflatex経由)およびDVI出力での遡及検索を提供します.これを有効にするには,\SpecialChar LyX
8196 プリアンブルで以下のようにパッケージを読み込んで
8197 ください.
8198 \end_layout
8199
8200 \begin_layout Itemize
8201 PDFの遡及検索には
8202 \begin_inset Flex Code
8203 status collapsed
8204
8205 \begin_layout Plain Layout
8206
8207 \backslash
8208 usepackage{pdfsync}
8209 \end_layout
8210
8211 \end_inset
8212
8213
8214 \end_layout
8215
8216 \begin_layout Itemize
8217 DVIの遡及検索には
8218 \begin_inset Flex Code
8219 status collapsed
8220
8221 \begin_layout Plain Layout
8222
8223 \backslash
8224 usepackage[active]{srcltx}
8225 \end_layout
8226
8227 \end_inset
8228
8229
8230 \end_layout
8231
8232 \begin_layout Standard
8233 と書きます.DVIとPDFの両方の遡及検索を実行できるようにするためには,プリアンブルに以下の行を挿入する方法があります.
8234 \end_layout
8235
8236 \begin_layout LyX-Code
8237
8238 \backslash
8239 usepackage{ifpdf}
8240 \begin_inset Newline newline
8241 \end_inset
8242
8243
8244 \backslash
8245 ifpdf
8246 \begin_inset Newline newline
8247 \end_inset
8248
8249   
8250 \backslash
8251 usepackage{pdfsync}
8252 \begin_inset Newline newline
8253 \end_inset
8254
8255
8256 \backslash
8257 else
8258 \begin_inset Newline newline
8259 \end_inset
8260
8261   
8262 \backslash
8263 usepackage[active]{srcltx}
8264 \begin_inset Newline newline
8265 \end_inset
8266
8267
8268 \backslash
8269 fi
8270 \end_layout
8271
8272 \begin_layout Standard
8273 このようにすれば,DVIでもPDF(pdflatex)でも正しいパッケージを使いながら,ファイルを閲覧することができます.
8274 \end_layout
8275
8276 \begin_layout Standard
8277 なお,PDFSyncは,文書の出力レイアウトに干渉する可能性があるので注意してください.したがって,仕上がり文書ではPDFSyncを無効にすることをお勧めします
8278
8279 \end_layout
8280
8281 \begin_layout Subsubsection*
8282 Sync\SpecialChar TeX
8283 を使った組み込み遡及検索(DVIおよびPDF)
8284 \end_layout
8285
8286 \begin_layout Standard
8287 \begin_inset Flex Code
8288 status collapsed
8289
8290 \begin_layout Plain Layout
8291 (pdf)latex
8292 \end_layout
8293
8294 \end_inset
8295
8296 の最近のバージョンは,PDFおよびDVI両方の遡及検索を組み込みでサポートしています.このいわゆる
8297 \emph on
8298 Sync\SpecialChar TeX
8299
8300 \emph default
8301 機能は,主に,PDFSyncパッケージをpdftexプログラムへ統合したことと,それをsrc-specialsアプローチへ取り込んだことの成果です.これを使用す
8302 るためには,少なくとも\SpecialChar TeX
8303 Live 2008か最近のMik\SpecialChar TeX
8304 頒布版が必要です.また,既にSync\SpecialChar TeX
8305 サポートを提供しているPDFビューアは少ししかありません(UNIX上の
8306 OkularとQpdfview,Mac上のSkim,及びWindows上のSumatraPDF).
8307 \end_layout
8308
8309 \begin_layout Standard
8310 DVI出力でSync\SpecialChar TeX
8311 を有効にするには,
8312 \begin_inset Flex MenuItem
8313 status collapsed
8314
8315 \begin_layout Plain Layout
8316 設定\SpecialChar menuseparator
8317 ファイル処理\SpecialChar menuseparator
8318 変換子
8319 \end_layout
8320
8321 \end_inset
8322
8323
8324 \begin_inset Flex MenuItem
8325 status collapsed
8326
8327 \begin_layout Plain Layout
8328 LaTeX (plain)->DVI
8329 \end_layout
8330
8331 \end_inset
8332
8333 ないし
8334 \begin_inset Flex MenuItem
8335 status collapsed
8336
8337 \begin_layout Plain Layout
8338 LaTeX (plain)->DraftDVI
8339 \end_layout
8340
8341 \end_inset
8342
8343 変換子を
8344 \begin_inset Flex Code
8345 status collapsed
8346
8347 \begin_layout Plain Layout
8348 latex -synctex=1 $$i
8349 \end_layout
8350
8351 \end_inset
8352
8353 に変更します.PDF出力用には,
8354 \begin_inset Flex MenuItem
8355 status collapsed
8356
8357 \begin_layout Plain Layout
8358 LaTeX (pdflatex)->PDF (pdflatex)
8359 \end_layout
8360
8361 \end_inset
8362
8363 変換子を
8364 \begin_inset Flex Code
8365 status collapsed
8366
8367 \begin_layout Plain Layout
8368 pdflatex -synctex=1 $$i
8369 \end_layout
8370
8371 \end_inset
8372
8373 に変更してください.また,ビューアをSync\SpecialChar TeX
8374 で使うのに設定を行う必要があるかどうか,お使いのビューアの取扱説明書をご確認ください.
8375 \begin_inset Foot
8376 status collapsed
8377
8378 \begin_layout Plain Layout
8379 \begin_inset Flex Code
8380 status collapsed
8381
8382 \begin_layout Plain Layout
8383 -synctex=1
8384 \end_layout
8385
8386 \end_inset
8387
8388 オプションは,gzip圧縮を有効にします.お使いのビューアがgzip圧縮をサポートしていない場合には,代わりに
8389 \begin_inset Flex Code
8390 status collapsed
8391
8392 \begin_layout Plain Layout
8393 -synctex=-1
8394 \end_layout
8395
8396 \end_inset
8397
8398 を使用してください.
8399 \end_layout
8400
8401 \end_inset
8402
8403
8404 \end_layout
8405
8406 \begin_layout Subsection
8407 特定のビューアを設定して使うには
8408 \begin_inset CommandInset label
8409 LatexCommand label
8410 name "subsec:特定のビューアを設定して使うには"
8411
8412 \end_inset
8413
8414
8415 \end_layout
8416
8417 \begin_layout Subsubsection*
8418 Xdvi(全プラットフォーム)
8419 \end_layout
8420
8421 \begin_layout Standard
8422 \SpecialChar LyX
8423 は,
8424 \begin_inset Flex Code
8425 status collapsed
8426
8427 \begin_layout Plain Layout
8428 lyxclient
8429 \end_layout
8430
8431 \end_inset
8432
8433 プログラムを自動的に使うのに必要なフックを,既に提供しているので,
8434 \begin_inset Flex Code
8435 status collapsed
8436
8437 \begin_layout Plain Layout
8438 xdvi
8439 \end_layout
8440
8441 \end_inset
8442
8443 を使用する場合には,DVI遡及検索を実行するのに他にするべきことはありません.使用中の文書を上記で述べたように設定するだけです(遡及検索は,Ctrl-クリックか
8444 ,Mac OS X上ではAlt-クリックで始動します).
8445 \end_layout
8446
8447 \begin_layout Standard
8448 しかし,何らかの理由で,\SpecialChar LyX
8449 と通信するのにソケットではなく命名パイプを使用したい場合には,
8450 \begin_inset Flex MenuItem
8451 status collapsed
8452
8453 \begin_layout Plain Layout
8454 設定\SpecialChar menuseparator
8455 ファイル処理\SpecialChar menuseparator
8456 ファイル書式
8457 \end_layout
8458
8459 \end_inset
8460
8461 のDVIビューアを
8462 \begin_inset Flex Code
8463 status collapsed
8464
8465 \begin_layout Plain Layout
8466 xdvi -editor "lyxeditor.sh %f %l"
8467 \end_layout
8468
8469 \end_inset
8470
8471 (
8472 \begin_inset Flex Code
8473 status collapsed
8474
8475 \begin_layout Plain Layout
8476 lyxeditor.sh
8477 \end_layout
8478
8479 \end_inset
8480
8481 は適切なスクリプト名)に変更してください
8482 \begin_inset Foot
8483 status collapsed
8484
8485 \begin_layout Plain Layout
8486 Mac OS X上では,
8487 \begin_inset Flex Code
8488 status collapsed
8489
8490 \begin_layout Plain Layout
8491 DISPLAY=:0.0 xdvi -editor "lyxeditor.sh %f %l"
8492 \end_layout
8493
8494 \end_inset
8495
8496 としなくてはなりません.
8497 \end_layout
8498
8499 \end_inset
8500
8501 .たとえば,最低限のシェルスクリプトは
8502 \end_layout
8503
8504 \begin_layout LyX-Code
8505 #!/bin/sh
8506 \begin_inset Newline newline
8507 \end_inset
8508
8509 LYXPIPE="/path/to/lyxpipe"
8510 \begin_inset Newline newline
8511 \end_inset
8512
8513 COMMAND="LYXCMD:revdvi:server-goto-file-row:$1 $2"
8514 \begin_inset Newline newline
8515 \end_inset
8516
8517 echo "$COMMAND" > "${LYXPIPE}".in || exit
8518 \begin_inset Newline newline
8519 \end_inset
8520
8521 read TMP < "${LYXPIPE}".out || exit
8522 \end_layout
8523
8524 \begin_layout Standard
8525 のようになります.ここで
8526 \begin_inset Flex Code
8527 status collapsed
8528
8529 \begin_layout Plain Layout
8530 /path/to/lyxpipe
8531 \end_layout
8532
8533 \end_inset
8534
8535 は,
8536 \begin_inset Flex MenuItem
8537 status collapsed
8538
8539 \begin_layout Plain Layout
8540 設定\SpecialChar menuseparator
8541 パス
8542 \end_layout
8543
8544 \end_inset
8545
8546 で指定したLyXServerパイプのパスを指定してください.
8547 \begin_inset Foot
8548 status collapsed
8549
8550 \begin_layout Plain Layout
8551 ソース頒布版の
8552 \begin_inset Flex Code
8553 status collapsed
8554
8555 \begin_layout Plain Layout
8556 development/tools
8557 \end_layout
8558
8559 \end_inset
8560
8561 フォルダには,ユーザが設定した
8562 \emph on
8563 lyxpipe
8564 \emph default
8565 を探し出す
8566 \begin_inset Flex Code
8567 status collapsed
8568
8569 \begin_layout Plain Layout
8570 lyxeditor
8571 \end_layout
8572
8573 \end_inset
8574
8575 スクリプトがあります.
8576 \end_layout
8577
8578 \end_inset
8579
8580
8581 \end_layout
8582
8583 \begin_layout Subsubsection*
8584 MacDviX(Mac OS X)
8585 \end_layout
8586
8587 \begin_layout Standard
8588 \begin_inset Flex Code
8589 status collapsed
8590
8591 \begin_layout Plain Layout
8592 /Applications/MacDviX_Folder/calleditor.script
8593 \end_layout
8594
8595 \end_inset
8596
8597 の終わりに
8598 \end_layout
8599
8600 \begin_layout LyX-Code
8601 /Applications/LyX.app/Contents/MacOS/lyxeditor "$2" $1
8602 \begin_inset Newline newline
8603 \end_inset
8604
8605 exit 1
8606 \end_layout
8607
8608 \begin_layout Standard
8609 という行を付け加えてください.Applicationsフォルダ以外の場所に\SpecialChar LyX
8610 を導入した場合には,それに従って上記の行を修正してください.
8611 \end_layout
8612
8613 \begin_layout Standard
8614 遡及検索は,Alt-クリック(OPTION-クリック)で始動します.
8615 \end_layout
8616
8617 \begin_layout Subsubsection*
8618 Skim(Mac OS X)
8619 \end_layout
8620
8621 \begin_layout Standard
8622 \begin_inset Flex MenuItem
8623 status collapsed
8624
8625 \begin_layout Plain Layout
8626 設定\SpecialChar menuseparator
8627 ファイル処理\SpecialChar menuseparator
8628 ファイル書式\SpecialChar menuseparator
8629 PDF (pdflatex)
8630 \end_layout
8631
8632 \end_inset
8633
8634 のビューア設定に
8635 \begin_inset Flex Code
8636 status collapsed
8637
8638 \begin_layout Plain Layout
8639 open -a Skim.app $$i
8640 \end_layout
8641
8642 \end_inset
8643
8644 と入力し,
8645 \begin_inset Flex MenuItem
8646 status collapsed
8647
8648 \begin_layout Plain Layout
8649 Skim\SpecialChar menuseparator
8650 設定\SpecialChar menuseparator
8651 Sync
8652 \end_layout
8653
8654 \end_inset
8655
8656 でLyXを選択してください.
8657 \end_layout
8658
8659 \begin_layout Standard
8660 遡及検索は,COMMAND-SHIFT-クリックで始動します.
8661 \end_layout
8662
8663 \begin_layout Subsubsection*
8664
8665 \change_inserted -712698321 1500965366
8666
8667 \lang english
8668 Evince (GNOME)
8669 \end_layout
8670
8671 \begin_layout Standard
8672
8673 \change_inserted -712698321 1500965366
8674
8675 \lang english
8676 Reverse search with evince does not work out of the box, but it can be achieved
8677  by means of some third party helper scripts.
8678  Please refer to 
8679 \begin_inset CommandInset href
8680 LatexCommand href
8681 target "http://wiki.lyx.org/LyX/SyncTeX"
8682 literal "false"
8683
8684 \end_inset
8685
8686  for details.
8687 \end_layout
8688
8689 \begin_layout Subsubsection*
8690 Okular (KDE)
8691 \end_layout
8692
8693 \begin_layout Standard
8694 \begin_inset Flex MenuItem
8695 status collapsed
8696
8697 \begin_layout Plain Layout
8698 設定\SpecialChar menuseparator
8699 Okularを設定\SpecialChar ldots
8700 \SpecialChar menuseparator
8701 編集
8702 \end_layout
8703
8704 \end_inset
8705
8706 で「カスタムテキストエディタ」を選択し,コマンドに
8707 \begin_inset Flex Code
8708 status collapsed
8709
8710 \begin_layout Plain Layout
8711 lyxclient -g %f %l
8712 \end_layout
8713
8714 \end_inset
8715
8716 を加えてください.
8717 \end_layout
8718
8719 \begin_layout Standard
8720 遡及検索は,SHIFT-クリックで始動します.
8721 \end_layout
8722
8723 \begin_layout Subsubsection*
8724 Qpdfview (UNIX)
8725 \end_layout
8726
8727 \begin_layout Standard
8728 Qpdfviewは,第0.3.5版以降,Sync\SpecialChar TeX
8729 をサポートしています.
8730 \begin_inset Flex MenuItem
8731 status collapsed
8732
8733 \begin_layout Plain Layout
8734 Edit\SpecialChar menuseparator
8735 Settings\SpecialChar menuseparator
8736 Behavior
8737 \end_layout
8738
8739 \end_inset
8740
8741 を開いて「Source editor」項目の入力フィールドをクリックし,
8742 \begin_inset Flex Code
8743 status collapsed
8744
8745 \begin_layout Plain Layout
8746 lyxclient -g %1 %2
8747 \end_layout
8748
8749 \end_inset
8750
8751 というコマンドを入力してください.
8752 \end_layout
8753
8754 \begin_layout Standard
8755 遡及検索は,ダブルクリックで始動します.
8756 \end_layout
8757
8758 \begin_layout Subsubsection*
8759 YAP(Windows)
8760 \end_layout
8761
8762 \begin_layout Standard
8763 yapを起動し,
8764 \begin_inset Flex MenuItem
8765 status collapsed
8766
8767 \begin_layout Plain Layout
8768 View\SpecialChar menuseparator
8769 Options
8770 \end_layout
8771
8772 \end_inset
8773
8774 メニューを選択し,「Inverse DVI Search」タブを選択します.「New\SpecialChar ldots
8775 」ボタンをクリックして開くウィンドウの「Name:」フィールドに「\SpecialChar LyX
8776
8777  Editor」(または自分の好きな名称)と入力してください.「\SpecialChar ldots
8778 」というラベルのボタンをクリックしてファイルダイアログを開き,バッチファイル
8779 \begin_inset Flex Code
8780 status collapsed
8781
8782 \begin_layout Plain Layout
8783 lyxeditor.bat
8784 \end_layout
8785
8786 \end_inset
8787
8788 (以下参照)のあるディレクトリを見つけます.
8789 \begin_inset Flex Code
8790 status collapsed
8791
8792 \begin_layout Plain Layout
8793 lyxeditor.bat
8794 \end_layout
8795
8796 \end_inset
8797
8798 を選択してプログラムの引数を
8799 \begin_inset Flex Code
8800 status collapsed
8801
8802 \begin_layout Plain Layout
8803 %f %l
8804 \end_layout
8805
8806 \end_inset
8807
8808 と指定してください.
8809 \begin_inset Flex Code
8810 status collapsed
8811
8812 \begin_layout Plain Layout
8813 lyxeditor.bat
8814 \end_layout
8815
8816 \end_inset
8817
8818 は,
8819 \emph on
8820 lyxpipe
8821 \emph default
8822 を通じて\SpecialChar LyX
8823 と通信するためのラッパとして使用され,以下のようになっています.
8824 \end_layout
8825
8826 \begin_layout LyX-Code
8827 @echo off
8828 \begin_inset Newline newline
8829 \end_inset
8830
8831 echo LYXCMD:revdvi:server-goto-file-row:%~1 %2> 
8832 \backslash
8833
8834 \backslash
8835 .
8836 \backslash
8837 pipe
8838 \backslash
8839 lyxpipe.in
8840 \begin_inset Newline newline
8841 \end_inset
8842
8843 type 
8844 \backslash
8845
8846 \backslash
8847 .
8848 \backslash
8849 pipe
8850 \backslash
8851 lyxpipe.out
8852 \end_layout
8853
8854 \begin_layout Standard
8855 \SpecialChar LyX
8856 で指定した\SpecialChar LyX
8857 Serverパイプパスが,
8858 \begin_inset Flex Code
8859 status collapsed
8860
8861 \begin_layout Plain Layout
8862
8863 \backslash
8864
8865 \backslash
8866 .
8867 \backslash
8868 pipe
8869 \backslash
8870 lyxpipe
8871 \end_layout
8872
8873 \end_inset
8874
8875 となっていることを確認するか,
8876 \begin_inset Flex Code
8877 status collapsed
8878
8879 \begin_layout Plain Layout
8880 lyxeditor.bat
8881 \end_layout
8882
8883 \end_inset
8884
8885 ラッパの方を適切に修正してください.
8886 \end_layout
8887
8888 \begin_layout Standard
8889 yapでは,遡及検索はダブルクリックで始動します.
8890 \end_layout
8891
8892 \begin_layout Subsubsection*
8893 SumatraPDF(Windows)
8894 \end_layout
8895
8896 \begin_layout Standard
8897 SumatraPDFを遡及検索で使用するためには,
8898 \begin_inset Flex MenuItem
8899 status collapsed
8900
8901 \begin_layout Plain Layout
8902 設定\SpecialChar menuseparator
8903 ファイル処理\SpecialChar menuseparator
8904 ファイル書式\SpecialChar menuseparator
8905 PDF (pdflatex)
8906 \end_layout
8907
8908 \end_inset
8909
8910 のビューア設定で
8911 \begin_inset Flex Code
8912 status collapsed
8913
8914 \begin_layout Plain Layout
8915 SumatraPDF -inverse-search "lyxeditor.bat "%f" %l"
8916 \end_layout
8917
8918 \end_inset
8919
8920 (
8921 \begin_inset Flex Code
8922 status collapsed
8923
8924 \begin_layout Plain Layout
8925 lyxeditor.bat
8926 \end_layout
8927
8928 \end_inset
8929
8930 は上記のラッパ)と入力してください.SumatraPDF.exeがコマンドPATHにない場合,フルファイル名を使用してください.
8931 \end_layout
8932
8933 \begin_layout Standard
8934 遡及検索はダブルクリックで始動します.
8935 \end_layout
8936
8937 \begin_layout Subsubsection*
8938 YAP(Cygwin)
8939 \end_layout
8940
8941 \begin_layout Standard
8942 まずはじめに,yapがWindows環境での既定のDVIビューアになっていることを確認してから,yapを起動し,
8943 \begin_inset Flex MenuItem
8944 status collapsed
8945
8946 \begin_layout Plain Layout
8947 View\SpecialChar menuseparator
8948 Options
8949 \end_layout
8950
8951 \end_inset
8952
8953 メニューを選択し,「Inverse DVI Search」タブを選択します.「New\SpecialChar ldots
8954 」ボタンをクリックして開くウィンドウの「Name:」フィールドに「\SpecialChar LyX
8955
8956  Editor」(または自分の好きな名称)と入力してください.「\SpecialChar ldots
8957 」というラベルのボタンをクリックしてファイルダイアログを開き,バッチファイル
8958 \begin_inset Flex Code
8959 status collapsed
8960
8961 \begin_layout Plain Layout
8962 lyxeditor.exe
8963 \end_layout
8964
8965 \end_inset
8966
8967 プログラム(これは,Cygwinでは既定で\SpecialChar LyX
8968 実行ファイルとともに導入されます)のあるディレクトリを見つけます.
8969 \begin_inset Flex Code
8970 status collapsed
8971
8972 \begin_layout Plain Layout
8973 lyxeditor.exe
8974 \end_layout
8975
8976 \end_inset
8977
8978 を選択してプログラムの引数を
8979 \begin_inset Flex Code
8980 status collapsed
8981
8982 \begin_layout Plain Layout
8983 -g %f %l
8984 \end_layout
8985
8986 \end_inset
8987
8988 と指定してください.これによって,\SpecialChar LyX
8989 との通信に
8990 \emph on
8991 lyxsocket
8992 \emph default
8993 が使用されるようになります.何らかの理由で
8994 \emph on
8995 lyxpipe
8996 \emph default
8997 を使用したい場合には,
8998 \begin_inset Flex Code
8999 status collapsed
9000
9001 \begin_layout Plain Layout
9002 -g
9003 \end_layout
9004
9005 \end_inset
9006
9007 オプションを削除して,\SpecialChar LyX
9008 設定で\SpecialChar LyX
9009 Serverパイプパスを指定することを忘れないでください.
9010 \end_layout
9011
9012 \begin_layout Standard
9013 yapでは,遡及検索はダブルクリックで始動します.
9014 \end_layout
9015
9016 \begin_layout Subsubsection*
9017 SumatraPDF(Cygwin)
9018 \end_layout
9019
9020 \begin_layout Standard
9021 SumatraPDFを遡及検索で使用するためには,
9022 \begin_inset Flex MenuItem
9023 status collapsed
9024
9025 \begin_layout Plain Layout
9026 設定\SpecialChar menuseparator
9027 ファイル処理\SpecialChar menuseparator
9028 ファイル書式\SpecialChar menuseparator
9029 PDF (pdflatex)
9030 \end_layout
9031
9032 \end_inset
9033
9034 のビューア設定で
9035 \begin_inset Flex Code
9036 status collapsed
9037
9038 \begin_layout Plain Layout
9039 SumatraPDF.sh
9040 \end_layout
9041
9042 \end_inset
9043
9044 と入力してください.ここで
9045 \begin_inset Flex Code
9046 status collapsed
9047
9048 \begin_layout Plain Layout
9049 SumatraPDF.sh
9050 \end_layout
9051
9052 \end_inset
9053
9054 は以下のようなスクリプトです(お使いのコマンドパスに置きます.
9055 \begin_inset Flex Code
9056 status collapsed
9057
9058 \begin_layout Plain Layout
9059 /usr/local/bin
9060 \end_layout
9061
9062 \end_inset
9063
9064 がもっとも良い選択肢でしょう).
9065 \end_layout
9066
9067 \begin_layout LyX-Code
9068 #!/bin/bash
9069 \begin_inset Newline newline
9070 \end_inset
9071
9072 cd $(dirname $1)
9073 \begin_inset Newline newline
9074 \end_inset
9075
9076 SumatraPDF -inverse-search "lyxeditor -g %f %l" $(basename $1)
9077 \end_layout
9078
9079 \begin_layout Standard
9080 SumatraPDFは,Windowsネイティブのアプリケーションであり,\SpecialChar LyX
9081 のCygwin版が使用するPOSIXパスを理解しないので,このラッパスクリプトが必要と
9082 なります.SumatraPDF.exeがお使いのコマンドパスにない場合は,上記のスクリプトでPOSIXのフルパスを使用してください.
9083 \begin_inset Flex Code
9084 status collapsed
9085
9086 \begin_layout Plain Layout
9087 -g
9088 \end_layout
9089
9090 \end_inset
9091
9092
9093 \emph on
9094 lyxsocket
9095 \emph default
9096 経由の通信を有効にします.ここでも,
9097 \emph on
9098 lyxpipe
9099 \emph default
9100 を使用したい場合には,
9101 \begin_inset Flex Code
9102 status collapsed
9103
9104 \begin_layout Plain Layout
9105 -g
9106 \end_layout
9107
9108 \end_inset
9109
9110 オプションを削除して,\SpecialChar LyX
9111 設定で\SpecialChar LyX
9112 Serverパイプパスを指定することを忘れないでください.
9113 \end_layout
9114
9115 \begin_layout Standard
9116 遡及検索はダブルクリックで始動します.
9117 \end_layout
9118
9119 \begin_layout Section
9120 順検索
9121 \end_layout
9122
9123 \begin_layout Standard
9124 順検索とは,名前が示すとおり,いわば遡及検索の「逆」を意味します.すなわち,\SpecialChar LyX
9125 内部から,ビューアに特定の箇所を表示させることを可能にします.(以下に説明するように
9126 )もし順検索の準備ができていれば,カーソルを\SpecialChar LyX
9127 文書の好きなところに置いて,
9128 \begin_inset Flex MenuItem
9129 status collapsed
9130
9131 \begin_layout Plain Layout
9132 移動\SpecialChar menuseparator
9133 順検索
9134 \end_layout
9135
9136 \end_inset
9137
9138 を選択すると(あるいはマウスの右クリックで表示される文脈依存メニューから
9139 \begin_inset Flex MenuItem
9140 status collapsed
9141
9142 \begin_layout Plain Layout
9143 順検索
9144 \end_layout
9145
9146 \end_inset
9147
9148 を選択してもよい),ビューアも同じ箇所に移動します.もちろん,使用しているビューアが,この機能をサポートしていなくてはなりません.
9149 \end_layout
9150
9151 \begin_layout Standard
9152 順検索を有効にするためには,生成されたPDF/DVI出力ファイルに,\SpecialChar TeX
9153 ソースに関する情報を追加する必要があります.これは,第
9154 \begin_inset CommandInset ref
9155 LatexCommand ref
9156 reference "subsec:遡及検索"
9157
9158 \end_inset
9159
9160 節に述べられている方法で実行することができます.
9161 \end_layout
9162
9163 \begin_layout Standard
9164 次に,
9165 \begin_inset Flex MenuItem
9166 status collapsed
9167
9168 \begin_layout Plain Layout
9169 ツール\SpecialChar menuseparator
9170 設定\SpecialChar menuseparator
9171 出力\SpecialChar menuseparator
9172 一般
9173 \end_layout
9174
9175 \end_inset
9176
9177 で自分の使うビューアを利用するように,\SpecialChar LyX
9178 を設定する必要があります.いくつかのビューアについては,試験済みの設定が前もって準備されており,ドロップダウンリストから選
9179 択することができます.これらの設定の何れも意にそぐわない場合には,ご自身で適切な設定を見つけ出して入力しなくてはなりません.定義文法は,以下の変数を使用します.
9180 \end_layout
9181
9182 \begin_layout Itemize
9183 \begin_inset Flex Code
9184 status collapsed
9185
9186 \begin_layout Plain Layout
9187 $$n
9188 \end_layout
9189
9190 \end_inset
9191
9192 :行番号
9193 \end_layout
9194
9195 \begin_layout Itemize
9196 \begin_inset Flex Code
9197 status collapsed
9198
9199 \begin_layout Plain Layout
9200 $$t
9201 \end_layout
9202
9203 \end_inset
9204
9205 :書き出された(一時).texファイル名(パスを除く)
9206 \end_layout
9207
9208 \begin_layout Itemize
9209 \begin_inset Flex Code
9210 status collapsed
9211
9212 \begin_layout Plain Layout
9213 $$f
9214 \end_layout
9215
9216 \end_inset
9217
9218 :書き出された(一時).texファイル名(パスを含む)
9219 \end_layout
9220
9221 \begin_layout Itemize
9222 \begin_inset Flex Code
9223 status collapsed
9224
9225 \begin_layout Plain Layout
9226 $$o
9227 \end_layout
9228
9229 \end_inset
9230
9231 :書き出された出力ファイル名(どちらが一時ディレクトリに存在するかに依存して,dviあるいはpdf).
9232 \end_layout
9233
9234 \begin_layout Standard
9235
9236 \change_inserted -712698321 1500965418
9237 \begin_inset Note Note
9238 status open
9239
9240 \begin_layout Plain Layout
9241
9242 \change_inserted -712698321 1500965453
9243
9244 \lang english
9245 [Revision 2017-07-25]
9246 \end_layout
9247
9248 \begin_layout Plain Layout
9249
9250 \change_inserted -712698321 1500965440
9251
9252 \lang english
9253 Note that only some of the viewers provide full and usable forward search
9254  functionality out of the box, among them yap, xdvi, okular
9255 \begin_inset Foot
9256 status collapsed
9257
9258 \begin_layout Plain Layout
9259
9260 \change_inserted -712698321 1500965419
9261
9262 \lang english
9263 You might want to set 
9264 \begin_inset Flex Code
9265 status collapsed
9266
9267 \begin_layout Plain Layout
9268
9269 \change_inserted -712698321 1500965419
9270
9271 \lang english
9272 okular –unique
9273 \end_layout
9274
9275 \end_inset
9276
9277  in 
9278 \begin_inset Flex Noun
9279 status collapsed
9280
9281 \begin_layout Plain Layout
9282
9283 \change_inserted -712698321 1500965419
9284
9285 \lang english
9286 Tools\SpecialChar menuseparator
9287 Preferences\SpecialChar menuseparator
9288 File Handling\SpecialChar menuseparator
9289 File
9290 \begin_inset space ~
9291 \end_inset
9292
9293 Formats
9294 \end_layout
9295
9296 \end_inset
9297
9298
9299 \end_layout
9300
9301 \end_inset
9302
9303 , qpdfview, and SumatraPDF
9304 \begin_inset Foot
9305 status collapsed
9306
9307 \begin_layout Plain Layout
9308
9309 \change_inserted -712698321 1500965419
9310
9311 \lang english
9312 SumatraPDF can also use DDE commands through the external program CMCDDE
9313  — downloadable from 
9314 \begin_inset CommandInset href
9315 LatexCommand href
9316 target "http://www.istri.fr/spip/zip/CMCDDE.zip"
9317 literal "false"
9318
9319 \end_inset
9320
9321
9322 \end_layout
9323
9324 \end_inset
9325
9326 .
9327  Others, such as evince
9328 \begin_inset Foot
9329 status collapsed
9330
9331 \begin_layout Plain Layout
9332 \paragraph_spacing single
9333
9334 \change_inserted -712698321 1500965419
9335
9336 \lang english
9337 Forward search with evince can be achieved by means of third party helper
9338  scripts.
9339  Please refer to 
9340 \begin_inset CommandInset href
9341 LatexCommand href
9342 target "http://wiki.lyx.org/LyX/SyncTeX"
9343 literal "false"
9344
9345 \end_inset
9346
9347  for details.
9348 \end_layout
9349
9350 \end_inset
9351
9352 , require some extra tools in order to use forward search.
9353  While many of the widespread PDF viewers (most notably Adobe Reader) do
9354  not support forward search at all, some other viewers – e.
9355 \begin_inset space \thinspace{}
9356 \end_inset
9357
9358 g.
9359   xpdf – allow at least to reload the document and jump to a specific page
9360  of the file, so you can at least navigate 
9361 \begin_inset Quotes eld
9362 \end_inset
9363
9364 near
9365 \begin_inset Quotes erd
9366 \end_inset
9367
9368 .
9369  This latter functionality is provided by an external call of synctex (see
9370  the predefined example configurations).
9371 \change_unchanged
9372
9373 \end_layout
9374
9375 \end_inset
9376
9377
9378 \change_unchanged
9379 yap・xdvi・okular
9380 \begin_inset Foot
9381 status collapsed
9382
9383 \begin_layout Plain Layout
9384 \begin_inset Flex MenuItem
9385 status collapsed
9386
9387 \begin_layout Plain Layout
9388 ツール\SpecialChar menuseparator
9389 設定\SpecialChar menuseparator
9390 ファイル処理\SpecialChar menuseparator
9391 ファイル形式
9392 \end_layout
9393
9394 \end_inset
9395
9396
9397 \begin_inset Flex Code
9398 status collapsed
9399
9400 \begin_layout Plain Layout
9401 okular –unique
9402 \end_layout
9403
9404 \end_inset
9405
9406 と設定すると良いかもしれません.
9407 \end_layout
9408
9409 \end_inset
9410
9411 ・qpdfview・Sumatra PDFなど,一部のビューアでしか,完全な順検索機能は提供されていないことに注意してください
9412 \begin_inset Foot
9413 status collapsed
9414
9415 \begin_layout Plain Layout
9416 SumatraPDFも,外部プログラムCMCDDEを通じて,DDEコマンドを使用することができます.CMCDDEは,
9417 \begin_inset CommandInset href
9418 LatexCommand href
9419 target "http://www.istri.fr/spip/zip/CMCDDE.zip"
9420 literal "false"
9421
9422 \end_inset
9423
9424 からダウンロードすることができます.
9425 \end_layout
9426
9427 \end_inset
9428
9429 .広く使われているPDFビューアの多く(特にAdobe Reader)は,順検索を全く提供していませんが,他の一部のビューア(たとえばEvinceやxpdf)で
9430 は,少なくとも,文書を読み込み直したり,ファイルの特定ページに移動することはできますので,少なくとも「近く」には移動することができます.この後者の機能は,syn
9431 ctexの外部コールで提供されています(事前に用意されている用例をご覧ください).
9432 \end_layout
9433
9434 \begin_layout Standard
9435 順検索は,DVI出力とPDF出力の双方で動作します.\SpecialChar LyX
9436 は,過去にあなたが使用したプレビュー形式をチェックして(つまり,一時ディレクトリにどちらの形式が存在するかを
9437 チェックして),その形式に適切な設定を選択します.
9438 \end_layout
9439
9440 \begin_layout Chapter
9441 特別な文書クラス
9442 \end_layout
9443
9444 \begin_layout Section
9445 A&Aの論文
9446 \end_layout
9447
9448 \begin_layout Standard
9449
9450 \noun on
9451 Peter Sütterlin文
9452 \end_layout
9453
9454 \begin_layout Subsection
9455 はじめに
9456 \end_layout
9457
9458 \begin_layout Standard
9459 この節では,文書クラス
9460 \family typewriter
9461 aa.cls
9462 \family default
9463 第5.01版を使用して科学雑誌
9464 \emph on
9465 Astronomy and Astrophysics
9466 \emph default
9467 (『天文学と宇宙物理学』: 
9468 \begin_inset Flex URL
9469 status collapsed
9470
9471 \begin_layout Plain Layout
9472
9473 http://www.edpsciences.fr/aa/
9474 \end_layout
9475
9476 \end_inset
9477
9478 )に投稿する論文を執筆するための\SpecialChar LyX
9479 の使用法を説明します.このパッケージは,FTPサイト
9480 \end_layout
9481
9482 \begin_layout Standard
9483 \align center
9484 \begin_inset VSpace medskip
9485 \end_inset
9486
9487
9488 \begin_inset Flex URL
9489 status collapsed
9490
9491 \begin_layout Plain Layout
9492
9493 ftp://ftp.edpsciences.org/pub/aa/readme.html
9494 \end_layout
9495
9496 \end_inset
9497
9498
9499 \begin_inset VSpace medskip
9500 \end_inset
9501
9502
9503 \end_layout
9504
9505 \begin_layout Standard
9506 \noindent
9507 からダウンロードすることができます.
9508 \end_layout
9509
9510 \begin_layout Standard
9511 このパッケージには取扱説明書がついていますが,本節は,本来の取扱説明書の代わりとなることを意図したものではなく,あなたの論文を正しい様式に整えるための小さな案内
9512 書であるに過ぎません.
9513 \end_layout
9514
9515 \begin_layout Standard
9516 この学術誌の出版元は,2001年1月1日以降,Springer社からEDP Science社に変更されていることにご注意ください.この出版社の変更によって,th
9517 esaurusコマンドの廃止など,スタイルファイルに若干の変更が加わっています.\SpecialChar LyX
9518 のaaクラスは,スタイルファイルの最新版(第5.01版)をサポートしています.もし
9519 古い版が装備されている場合には,更新してください.互換性のために,古い(第4版)レイアウトは,
9520 \family sans
9521 article (A&A V4)
9522 \family default
9523 として残してあります.
9524 \family typewriter
9525 $\SpecialChar LyX
9526 Dir/layouts/aapaper.layout
9527 \family default
9528 のコメントをご参照ください.
9529 \end_layout
9530
9531 \begin_layout Subsection
9532 最初の一歩
9533 \end_layout
9534
9535 \begin_layout Standard
9536 \SpecialChar LyX
9537 とともに頒布されている例示用のひな型を土台として,書き始めることをお勧めします.ひな型を使用しない場合には,以下の設定にしてください.
9538 \end_layout
9539
9540 \begin_layout Itemize
9541
9542 \family sans
9543 文書\SpecialChar menuseparator
9544 設定
9545 \family default
9546 ダイアログで
9547 \family sans
9548 article (A&A)
9549 \family default
9550 を選択してください(まぁ,これは自明ですね).
9551 \end_layout
9552
9553 \begin_layout Itemize
9554
9555 \family sans
9556 ページレイアウト
9557 \family default
9558 オプションは変更しないで,既定値のままに設定しておいてください.全体のレイアウトはマクロが行うので,何も変更してはいけません.
9559 \end_layout
9560
9561 \begin_layout Subsection
9562 へッダ部
9563 \end_layout
9564
9565 \begin_layout Standard
9566 最初に入力すべきものは,へッダ情報です.ヘッダ情報には,以下の7つの項目があり,いくつかは必須ではありません.
9567 \end_layout
9568
9569 \begin_layout Itemize
9570
9571 \family sans
9572 タイトル
9573 \family default
9574 :[必須]
9575 \end_layout
9576
9577 \begin_layout Itemize
9578
9579 \family sans
9580 サブタイトル
9581 \family default
9582 :[非必須]
9583 \end_layout
9584
9585 \begin_layout Itemize
9586
9587 \family sans
9588 著者
9589 \family default
9590 :[必須]
9591 \end_layout
9592
9593 \begin_layout Itemize
9594
9595 \family sans
9596 住所
9597 \family default
9598 :[必須]
9599 \end_layout
9600
9601 \begin_layout Itemize
9602
9603 \family sans
9604 抜き刷り
9605 \family default
9606 :[非必須]著者が複数いる場合,抜き刷りの送付を依頼するのに連絡すべき人を記す.
9607 \end_layout
9608
9609 \begin_layout Itemize
9610
9611 \family sans
9612 メール
9613 \family default
9614 :[非必須]連絡用の電子メールアドレス.
9615 \end_layout
9616
9617 \begin_layout Itemize
9618
9619 \family sans
9620 日付
9621 \family default
9622 :[必須]推奨されるフォーマットは,
9623 \family typewriter
9624 Received: <日付>; Accepted <日付>
9625 \family default
9626 です.
9627 \end_layout
9628
9629 \begin_layout Standard
9630
9631 \family typewriter
9632
9633 \backslash
9634 maketitle
9635 \family default
9636 コマンドは,へッダが終了した場所に,\SpecialChar LyX
9637 が自動的に入れてくれるので,手動で挿入する必要はありません.各項目の順序は関係ありませんが,見た目のためと,実際の文書のレイ
9638 アウトに合わせるために,上記の順序を維持しておくと良いでしょう.
9639 \end_layout
9640
9641 \begin_layout Standard
9642 現住所の付記などのために,へッダ部に脚注を挿入したい場合には,
9643 \family sans
9644 挿入\SpecialChar menuseparator
9645 脚注
9646 \family default
9647 を使用して標準の脚注を挿入してください.この場合には,\SpecialChar LyX
9648 は自動的に
9649 \family typewriter
9650
9651 \backslash
9652 thanks{}
9653 \family default
9654 を使用します.
9655 \end_layout
9656
9657 \begin_layout Standard
9658 これらのトピックの他に,このマクロは,\SpecialChar LyX
9659 が対応していない,以下の3つの\SpecialChar LaTeX
9660 コマンドを使用します.
9661 \end_layout
9662
9663 \begin_layout Itemize
9664 複数の著者名あるいは所属名を区切るための
9665 \family typewriter
9666
9667 \backslash
9668 and
9669 \end_layout
9670
9671 \begin_layout Itemize
9672 著者と所属の対応付けをするための
9673 \family typewriter
9674
9675 \backslash
9676 inst{<番号>}
9677 \family default
9678 .所属は,
9679 \family sans
9680 住所
9681 \family default
9682 フィールドに現れる順に番号が付けられるので,各著者に番号マーカーを置く必要があります.
9683 \end_layout
9684
9685 \begin_layout Itemize
9686
9687 \family typewriter
9688
9689 \backslash
9690 email{アドレス}
9691 \family default
9692 は,至急連絡用に電子メールアドレスを付記します.
9693 \end_layout
9694
9695 \begin_layout Standard
9696 いずれの場合にも,\SpecialChar LyX
9697 中に対応したコマンドを入力し,\SpecialChar LaTeX
9698 コードとしてマークしてください.
9699 \begin_inset Flex Code
9700 status collapsed
9701
9702 \begin_layout Plain Layout
9703 $\SpecialChar LyX
9704 Dir/examples
9705 \end_layout
9706
9707 \end_inset
9708
9709 にある用例を参照してください.
9710 \end_layout
9711
9712 \begin_layout Subsection
9713 概要
9714 \end_layout
9715
9716 \begin_layout Standard
9717 概要は,へッダ部の直後に置きます.第5版から,概要は環境からコマンドに変更され,一段落に限るという制限が加えられました.さらに,ここにはキーワードを含む項目を入
9718 れなくてはなりません.これは,まだ\SpecialChar LyX
9719 では実装されていないため,\SpecialChar LaTeX
9720 コマンド
9721 \family typewriter
9722
9723 \backslash
9724 keywords{}
9725 \family default
9726 を手動で入力し,\SpecialChar LaTeX
9727 コードとしてマークする必要があります.用例にある論文を参照してください.
9728 \end_layout
9729
9730 \begin_layout Subsection
9731 サポートされる環境
9732 \end_layout
9733
9734 \begin_layout Standard
9735 A&A論文用レイアウトでは,文章を構造化するために,以下の環境がサポートされています.
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 概要
9790 \end_layout
9791
9792 \begin_layout Itemize
9793
9794 \family sans
9795 謝辞(Acknowledgment)
9796 \end_layout
9797
9798 \begin_layout Itemize
9799
9800 \family sans
9801 書誌情報
9802 \end_layout
9803
9804 \begin_layout Itemize
9805
9806 \family sans
9807 \SpecialChar LaTeX
9808
9809 \end_layout
9810
9811 \begin_layout Subsection
9812 \SpecialChar LyX
9813 でサポートされていないコマンド
9814 \end_layout
9815
9816 \begin_layout Standard
9817 \SpecialChar LyX
9818
9819 \family sans
9820 article (A&A)
9821 \family default
9822 レイアウトでは,まだサポートされていないコマンドがあります.そのうちいくつかは既に紹介しましたが,網羅するために,以下にすべて列挙しておきます.
9823 \end_layout
9824
9825 \begin_layout Itemize
9826
9827 \family typewriter
9828
9829 \backslash
9830 and
9831 \end_layout
9832
9833 \begin_layout Itemize
9834
9835 \family typewriter
9836
9837 \backslash
9838 email
9839 \end_layout
9840
9841 \begin_layout Itemize
9842
9843 \family typewriter
9844
9845 \backslash
9846 appendix
9847 \end_layout
9848
9849 \begin_layout Itemize
9850
9851 \family typewriter
9852
9853 \backslash
9854 authorrunning
9855 \end_layout
9856
9857 \begin_layout Itemize
9858
9859 \family typewriter
9860
9861 \backslash
9862 inst{}
9863 \end_layout
9864
9865 \begin_layout Itemize
9866
9867 \family typewriter
9868
9869 \backslash
9870 keywords{}
9871 \end_layout
9872
9873 \begin_layout Itemize
9874
9875 \family typewriter
9876
9877 \backslash
9878 object{}
9879 \end_layout
9880
9881 \begin_layout Itemize
9882
9883 \family typewriter
9884
9885 \backslash
9886 titlerunning{}
9887 \end_layout
9888
9889 \begin_layout Standard
9890 これらのコマンドのいずれかを使いたい場合には,自分で入力する必要があります.
9891 \series bold
9892 これを\SpecialChar LaTeX
9893 コマンドとしてマークすることを忘れないで下さい.
9894 \end_layout
9895
9896 \begin_layout Subsection
9897 図フロートおよび表フロート
9898 \end_layout
9899
9900 \begin_layout Standard
9901 \SpecialChar LyX
9902 は,必要なフロート環境
9903 \family sans
9904 figure
9905 \family default
9906
9907 \family sans
9908 figure*
9909 \family default
9910
9911 \family sans
9912 table
9913 \family default
9914
9915 \family sans
9916 table*
9917 \family default
9918 をサポートしていますので,ここでは詳しい説明はしません.
9919 \emph on
9920 ユーザーの手引き
9921 \emph default
9922 をご覧ください.ただ,表は左揃えにしなくてはならないことに注意して下さい.そうするためには,表を選択して,
9923 \family sans
9924 編集\SpecialChar menuseparator
9925 段落設定
9926 \family default
9927 で配置を変更してください.
9928 \end_layout
9929
9930 \begin_layout Standard
9931 一つだけ,特別なものがあります.それは,図横にキャプションを配置する図です.この図を作成するには,以下のようにしなくてはなりません.
9932 \end_layout
9933
9934 \begin_layout Enumerate
9935
9936 \family sans
9937 挿入\SpecialChar menuseparator
9938 フロート\SpecialChar menuseparator
9939
9940 \family default
9941 を使って,幅広の図フロートを作成します.それから,図フロートのラベルを右クリックして
9942 \begin_inset Flex MenuItem
9943 status collapsed
9944
9945 \begin_layout Plain Layout
9946 設定\SpecialChar ldots
9947
9948 \end_layout
9949
9950 \end_inset
9951
9952 を選択し,それで開かれる
9953 \family sans
9954 フロートの設定
9955 \family default
9956 ダイアログで
9957 \family sans
9958 段をまたぐ
9959 \family default
9960 を有効にして,
9961 \family sans
9962 OK
9963 \family default
9964 ボタンを押します.
9965 \end_layout
9966
9967 \begin_layout Enumerate
9968 キャプション文を入力します.
9969 \end_layout
9970
9971 \begin_layout Enumerate
9972 キャプションの前にカーソルを移動し,
9973 \family sans
9974 Return
9975 \family default
9976 を押して,カーソルをキャプションの上に移動します.
9977 \end_layout
9978
9979 \begin_layout Enumerate
9980 図を挿入します.
9981 \end_layout
9982
9983 \begin_layout Enumerate
9984 カーソルを図の後ろに置いて,
9985 \family sans
9986 挿入\SpecialChar menuseparator
9987 整形\SpecialChar menuseparator
9988 水平方向の空白
9989 \family default
9990 を選択して
9991 \family sans
9992 水平方向の空白の設定
9993 \family default
9994 ダイアログを開き,
9995 \family sans
9996 空白
9997 \family default
9998 ドロップダウンから
9999 \family sans
10000 水平フィル
10001 \family default
10002 を選択して,水平フィルを挿入します.
10003 \end_layout
10004
10005 \begin_layout Enumerate
10006
10007 \family sans
10008 挿入\SpecialChar menuseparator
10009 TeXコード
10010 \family default
10011 を選択して,\SpecialChar TeX
10012 差込枠を挿入します.
10013 \end_layout
10014
10015 \begin_layout Enumerate
10016 \SpecialChar TeX
10017 差込枠中に
10018 \family typewriter
10019
10020 \backslash
10021 parbox[b]{55mm}{
10022 \family default
10023 と入力します.
10024 \series bold
10025 ここでは波括弧を閉じないでください.
10026 \end_layout
10027
10028 \begin_layout Enumerate
10029 カーソルをキャプション文の後ろに移動し,
10030 \family sans
10031 挿入\SpecialChar menuseparator
10032 TeXコード
10033 \family default
10034 を選択して,別の\SpecialChar TeX
10035 差込枠を挿入し,その中に閉じ括弧を入力します .
10036 \end_layout
10037
10038 \begin_layout Standard
10039 例示用論文中の図もご参照ください.
10040 \end_layout
10041
10042 \begin_layout Subsection
10043 Refereeレイアウト
10044 \end_layout
10045
10046 \begin_layout Standard
10047 投稿用には,論文を特別なダブルスペースレイアウトに整形しなくてはなりません.このためには,文書クラスに
10048 \family typewriter
10049 referee
10050 \family default
10051 オプションを与える必要があります.これは,
10052 \family sans
10053 文書\SpecialChar menuseparator
10054 設定
10055 \family default
10056 ダイアログの
10057 \family sans
10058 任意設定
10059 \family default
10060 クラスオプションフィールドを使って行うことができます.この欄に
10061 \family typewriter
10062 referee
10063 \family default
10064 と云う文字列を入力してください.
10065 \end_layout
10066
10067 \begin_layout Subsection
10068 例示用論文
10069 \end_layout
10070
10071 \begin_layout Standard
10072
10073 \family sans
10074 Examples
10075 \family default
10076 ディレクトリには,\SpecialChar LyX
10077 で書かれた例示用論文が収録されています.これは,元のマクロパッケージの例示用論文を\SpecialChar LyX
10078 用に直したものです.これはヒントを得るために使用したり,元の
10079  \SpecialChar LaTeX
10080 コードと\SpecialChar LyX
10081 での書き方の比較に使ったりしてください.
10082 \end_layout
10083
10084 \begin_layout Section
10085 AAS\SpecialChar TeX
10086
10087 \end_layout
10088
10089 \begin_layout Standard
10090
10091 \noun on
10092 Mike Ressler
10093 \noun default
10094
10095 \end_layout
10096
10097 \begin_layout Subsection
10098 はじめに
10099 \end_layout
10100
10101 \begin_layout Standard
10102 AAS\SpecialChar TeX
10103 は,American Astronomical Society(アメリカ天文学会)が発行するAstrophysical Journal(宇宙物理学雑誌)同
10104 誌のLettersとSupplementを含む)・Astronomical Journal(天文学雑誌)・Publications of the
10105  Astronomical Society of the Pacific(太平洋天文学会誌)三誌への電子投稿を可能にするために,同学会が作成したマクロ集です.\SpecialChar LyX
10106
10107 ,これらの文書を生成する上で,なかでも数式・引用・画像処理能力において,優れたツールであることが認識されています.\SpecialChar LyX
10108 は,同マクロ第5.0版以降を必要としており,でき
10109 ればここで説明されている第5.2版以降が望まれます.第5.0版未満の版は,\SpecialChar LaTeX
10110 2.09で使用するよう企図されているため,根本的に\SpecialChar LyX
10111 とは互換性がありません.AAS\SpecialChar TeX
10112 パッケージは
10113 ,以下のAAS\SpecialChar TeX
10114 ウェブサイトからダウンロードできるでしょう.
10115 \end_layout
10116
10117 \begin_layout Standard
10118 \align center
10119 \begin_inset VSpace medskip
10120 \end_inset
10121
10122
10123 \begin_inset Flex URL
10124 status collapsed
10125
10126 \begin_layout Plain Layout
10127
10128 https://aas.org/aastex/aastex-downloads
10129 \end_layout
10130
10131 \end_inset
10132
10133
10134 \begin_inset VSpace medskip
10135 \end_inset
10136
10137
10138 \end_layout
10139
10140 \begin_layout Standard
10141 パッケージ中には,完備したユーザーの手引きが収録されていますので,\SpecialChar LyX
10142 で論文を書き始める前に,その中身を完全に理解しておく必要があります.\SpecialChar LyX
10143 は,AASTeXの全コマン
10144 ドを理解する必然性をなくすものではなく,すべてを手入力する苦労を減らすだけです.仕上がりの\SpecialChar LaTeX
10145 文書が,論文を投稿しようとしているジャーナルの要求事項に完全に合致して
10146 いることを確認するのは,あなたの責任です.
10147 \end_layout
10148
10149 \begin_layout Subsection
10150 新しい論文を書き始める
10151 \end_layout
10152
10153 \begin_layout Standard
10154 論文を書き始めるには,AAS\SpecialChar TeX
10155 ひな型ファイルを土台に始めることを強くお勧めします.
10156 \begin_inset Flex MenuItem
10157 status collapsed
10158
10159 \begin_layout Plain Layout
10160 ファイル\SpecialChar menuseparator
10161 新規(ひな型使用)
10162 \end_layout
10163
10164 \end_inset
10165
10166 をクリックして,新しいファイル名を入力し,ひな型
10167 \family typewriter
10168 aastex.lyx
10169 \family default
10170 を選んでください.これには,論文原稿のほとんどに共通して使われるフィールドが書き込まれています.書き込まれている文字列(括弧
10171 \family typewriter
10172 <>
10173 \family default
10174 を含む)を正しい情報で上書きしてください.AAS\SpecialChar TeX
10175 コマンド・AAS\SpecialChar TeX
10176 環境の多くは,\SpecialChar LyX
10177 中で直接実行することができますが,特に
10178 \family typewriter
10179
10180 \backslash
10181 altaffilmark
10182 \family default
10183
10184 \family typewriter
10185
10186 \backslash
10187 altaffiltext
10188 \family default
10189 のようにできないものもあります.この二つのコマンドは,ひな型ファイルを開いたとき,赤色に表示されているのですぐ目に入ることでしょう.このようなコマンドは,直接L
10190 a\SpecialChar TeX
10191 コードを入力して,それを\SpecialChar TeX
10192 コードとしてマークしなければなりません.このようなコマンドは,\SpecialChar TeX
10193 コードあるいはEvil Red Text(邪悪な赤い文)と呼ばれます.A
10194 AS\SpecialChar TeX
10195 文書に必要とされる \SpecialChar TeX
10196 コードを最小にするよう努力はしていますが,まだ望まれるほどにはなっていません.
10197 \end_layout
10198
10199 \begin_layout Subsection
10200 論文を書き終わったら
10201 \end_layout
10202
10203 \begin_layout Standard
10204 論文を満足する水準で書き終え,プレビューや印刷が正しく為されているとしても,まだ学術誌に投稿する前にしなくてはならない「後処理」が残されています.
10205 \end_layout
10206
10207 \begin_layout Enumerate
10208 論文を \SpecialChar LaTeX
10209 ファイルとして書き出します(
10210 \family sans
10211 ファイル\SpecialChar menuseparator
10212 書き出し\SpecialChar menuseparator
10213 LateX
10214 \family default
10215 ).
10216 \end_layout
10217
10218 \begin_layout Enumerate
10219 出力した
10220 \family typewriter
10221 .tex
10222 \family default
10223 ファイルを好きなエディタで編集します.
10224 \end_layout
10225
10226 \begin_deeper
10227 \begin_layout Enumerate
10228
10229 \family typewriter
10230
10231 \backslash
10232 documentclass
10233 \family default
10234 コマンドよりも前のコメント行を削除します.
10235 \end_layout
10236
10237 \begin_layout Enumerate
10238
10239 \family typewriter
10240
10241 \backslash
10242 usepackage...{fontenc}
10243 \family default
10244 という行があれば(通常は
10245 \family typewriter
10246
10247 \backslash
10248 documentclass
10249 \family default
10250 の直後にあります)削除します.また,
10251 \family typewriter
10252
10253 \backslash
10254 secnumdepth
10255 \family default
10256 行があれば,これも削除します.
10257 \end_layout
10258
10259 \begin_layout Enumerate
10260 \SpecialChar LaTeX
10261 プリアンブル中に意図的に置いたコマンド(
10262 \family typewriter
10263 .tex
10264 \family default
10265 ファイル中,「User specified \SpecialChar LaTeX
10266  commands」というコメントの直後にあります)を除いて,
10267 \family typewriter
10268
10269 \backslash
10270 makeatletter
10271 \family default
10272
10273 \family typewriter
10274
10275 \backslash
10276 makeatother
10277 \family default
10278 の間のもの(これらのコマンドを含む)をすべて削除します.
10279 \end_layout
10280
10281 \end_deeper
10282 \begin_layout Enumerate
10283 編集後のファイルを \SpecialChar LaTeX
10284 にかけて,正しく処理されることを確認します.
10285 \end_layout
10286
10287 \begin_layout Enumerate
10288 学術誌の要求事項を再読して,ファイル名と書式が正しいことを確認します.
10289 \end_layout
10290
10291 \begin_layout Enumerate
10292 投稿してください.
10293 \end_layout
10294
10295 \begin_layout Subsection
10296 特定のコマンドに関するコメント
10297 \end_layout
10298
10299 \begin_layout Standard
10300 AAS\SpecialChar TeX
10301 ユーザーの手引き(
10302 \family typewriter
10303 aasguide.tex
10304 \family default
10305 )に,各AAS\SpecialChar TeX
10306 コマンドの詳しい説明があるので,ここでは,各コマンドの使用法の詳細な説明は行いません.そこで,ここではユーザーの手引きに現れるとおりに一覧を列挙し
10307 て,必要なところだけコメントを加えることにしましょう.
10308 \end_layout
10309
10310 \begin_layout Subsubsection
10311 期待通りに動作するもの
10312 \end_layout
10313
10314 \begin_layout Standard
10315 これらは期待通りに動作するので,ここでは列挙するだけにして,コマンドの説明されている節を挙げておきます.
10316 \family typewriter
10317
10318 \backslash
10319 documentclass
10320 \family default
10321  (2.1.1)・
10322 \family typewriter
10323
10324 \backslash
10325 begin{document}
10326 \family default
10327  (2.2)・
10328 \family typewriter
10329
10330 \backslash
10331 title
10332 \family default
10333  (2.3)・
10334 \family typewriter
10335
10336 \backslash
10337 author
10338 \family default
10339  (2.3)・
10340 \family typewriter
10341
10342 \backslash
10343 affil
10344 \family default
10345  (2.3)・
10346 \family typewriter
10347
10348 \backslash
10349 abstract
10350 \family default
10351  (2.4)・
10352 \family typewriter
10353
10354 \backslash
10355 keywords
10356 \family default
10357  (2.5)・
10358 \family typewriter
10359
10360 \backslash
10361 section
10362 \family default
10363  (2.7)・
10364 \family typewriter
10365
10366 \backslash
10367 subsection
10368 \family default
10369  (2.7)・
10370 \family typewriter
10371
10372 \backslash
10373 subsubsection
10374 \family default
10375  (2.7)・
10376 \family typewriter
10377
10378 \backslash
10379 paragraph
10380 \family default
10381  (2.7)・
10382 \family typewriter
10383
10384 \backslash
10385 facility
10386 \family default
10387  (2.10)・
10388 \family typewriter
10389
10390 \backslash
10391 begin{displaymath}
10392 \family default
10393  (2.12)・
10394 \family typewriter
10395
10396 \backslash
10397 begin{equation}
10398 \family default
10399  (2.12)・
10400 \family typewriter
10401
10402 \backslash
10403 begin{eqnarray}
10404 \family default
10405  (2.12)・
10406 \family typewriter
10407
10408 \backslash
10409 begin{mathletters}
10410 \family default
10411  (2.12)・
10412 \family typewriter
10413
10414 \backslash
10415 begin{thebibliography}
10416 \family default
10417  (2.13.1)・
10418 \family typewriter
10419
10420 \backslash
10421 bibitem
10422 \family default
10423  (2.13.2)・全引用コマンドとその派生(2.13.2)・一般的なgraphicx図コマンド(2.14.1)・
10424 \family typewriter
10425
10426 \backslash
10427 begin{table}
10428 \family default
10429  (2.15.4)・
10430 \family typewriter
10431
10432 \backslash
10433 begin{tabular}
10434 \family default
10435  (2.15.4)・
10436 \family typewriter
10437
10438 \backslash
10439 caption
10440 \family default
10441  (2.15.4)・
10442 \family typewriter
10443
10444 \backslash
10445 label
10446 \family default
10447  (他にもあるが特に2.15.4)・
10448 \family typewriter
10449
10450 \backslash
10451 tablerefs
10452 \family default
10453  (2.15.5)・
10454 \family typewriter
10455
10456 \backslash
10457 tablecomments
10458 \family default
10459  (2.15.5)・
10460 \family typewriter
10461
10462 \backslash
10463 url
10464 \family default
10465  (2.17.4)・
10466 \family typewriter
10467
10468 \backslash
10469 end{document}
10470 \family default
10471  (2.18).
10472 \end_layout
10473
10474 \begin_layout Standard
10475 以下のスタイルオプションも正しく動作します.
10476 \family typewriter
10477 longabstract
10478 \family default
10479  (2.4)・
10480 \family typewriter
10481 preprint
10482 \family default
10483  (3.2.1)・
10484 \family typewriter
10485 preprint2
10486 \family default
10487  (3.2.2)・
10488 \family typewriter
10489 eqsecnum
10490 \family default
10491  (3.3)・
10492 \family typewriter
10493 flushrt
10494 \family default
10495  (3.4).これらは,
10496 \begin_inset Flex MenuItem
10497 status collapsed
10498
10499 \begin_layout Plain Layout
10500 文書\SpecialChar menuseparator
10501 設定
10502 \end_layout
10503
10504 \end_inset
10505
10506 にある,
10507 \family sans
10508 クラスオプション
10509 \family default
10510
10511 \family sans
10512 任意設定
10513 \family default
10514 ボックスに入力してください.
10515 \end_layout
10516
10517 \begin_layout Subsubsection
10518 動作するが,若干説明が必要なもの
10519 \end_layout
10520
10521 \begin_layout Standard
10522 以下のコマンドは動作しますが,若干の説明が必要です.
10523 \end_layout
10524
10525 \begin_layout Itemize
10526 以下の項目は,学術誌の編集者向けに取ってあるものですが,どうしても必要ならば,\SpecialChar LaTeX
10527 プリアンブルに入れることができます.
10528 \family typewriter
10529
10530 \backslash
10531 received
10532 \family default
10533
10534 \family typewriter
10535
10536 \backslash
10537 revised
10538 \family default
10539
10540 \family typewriter
10541
10542 \backslash
10543 accepted
10544 \family default
10545
10546 \family typewriter
10547
10548 \backslash
10549 ccc
10550 \family default
10551
10552 \family typewriter
10553 cpright
10554 \family default
10555 (すべて 2.1.3).
10556 \end_layout
10557
10558 \begin_layout Itemize
10559 以下の項目は,\SpecialChar LaTeX
10560 のプリアンブルに置くことができるもので,これらは,ひな型ファイルには,空の引数と共に含まれています.
10561 \family typewriter
10562
10563 \backslash
10564 slugcomment
10565 \family default
10566 (2.1.4)・
10567 \family typewriter
10568
10569 \backslash
10570 shorttitle
10571 \family default
10572 (2.1.5)・
10573 \family typewriter
10574
10575 \backslash
10576 shortauthors
10577 \family default
10578 (2.1.5).
10579 \end_layout
10580
10581 \begin_layout Itemize
10582
10583 \family typewriter
10584
10585 \backslash
10586 email
10587 \family default
10588 (2.3)―「単独で」使うことはできますが,段落の途中で使うことはできません.埋め込む必要がある場合には,\SpecialChar TeX
10589 コードを使用してください.
10590 \end_layout
10591
10592 \begin_layout Itemize
10593
10594 \family typewriter
10595
10596 \backslash
10597 and
10598 \family default
10599 (2.3)―後ろに{}が付記されます.これはエラーの原因にはなりません.
10600 \end_layout
10601
10602 \begin_layout Itemize
10603
10604 \family typewriter
10605
10606 \backslash
10607 notetoeditor
10608 \family default
10609 (2.6)―「単独で」使うことはできますが,段落の途中で使うことはできません.埋め込む必要がある場合には,\SpecialChar TeX
10610 コードを使用してください.
10611 \end_layout
10612
10613 \begin_layout Itemize
10614
10615 \family typewriter
10616
10617 \backslash
10618 placetable
10619 \family default
10620 (2.8)―相互参照用タグを挿入することはできません.手動でタグ名を入力する必要があります.
10621 \end_layout
10622
10623 \begin_layout Itemize
10624
10625 \family typewriter
10626
10627 \backslash
10628 placefigure
10629 \family default
10630 (2.8)—
10631 \family typewriter
10632
10633 \backslash
10634 placetable
10635 \family default
10636 と同様.
10637 \end_layout
10638
10639 \begin_layout Itemize
10640
10641 \family typewriter
10642
10643 \backslash
10644 acknowledgements
10645 \family default
10646 (2.9)―後ろに{}が付記されます.これはエラーの原因にはなりません.
10647 \end_layout
10648
10649 \begin_layout Itemize
10650
10651 \family typewriter
10652
10653 \backslash
10654 appendix
10655 \family default
10656 (2.11)―後ろに{}が付記されます.これはエラーの原因にはなりません.
10657 \end_layout
10658
10659 \begin_layout Itemize
10660
10661 \family typewriter
10662
10663 \backslash
10664 figcaption
10665 \family default
10666 (2.14.2)―文章のはじめにカーソルを置いて
10667 \begin_inset Flex MenuItem
10668 status collapsed
10669
10670 \begin_layout Plain Layout
10671 挿入\SpecialChar menuseparator
10672 短縮タイトル
10673 \end_layout
10674
10675 \end_inset
10676
10677 を選択すれば,非必須のファイル名引数を挿入することができます.「短縮タイトル」とありますが,
10678 \family typewriter
10679
10680 \backslash
10681 figcaption
10682 \family default
10683 が必要とする型の非必須引数を挿入します.望むらくはいつの日か改名されることでしょう.
10684 \end_layout
10685
10686 \begin_layout Itemize
10687
10688 \family typewriter
10689
10690 \backslash
10691 objectname
10692 \family default
10693 (2.17.1)―非必須パラメータとしてカタログIDを取る以外は,
10694 \family typewriter
10695
10696 \backslash
10697 figcaption
10698 \family default
10699 と同様.
10700 \end_layout
10701
10702 \begin_layout Itemize
10703
10704 \family typewriter
10705
10706 \backslash
10707 dataset
10708 \family default
10709 (2.17.1)―非必須パラメータとしてカタログIDを取る以外は,
10710 \family typewriter
10711
10712 \backslash
10713 figcaption
10714 \family default
10715 と同様.
10716 \end_layout
10717
10718 \begin_layout Subsubsection
10719 実装されていないため,\SpecialChar TeX
10720 コードを使用するもの
10721 \end_layout
10722
10723 \begin_layout Standard
10724
10725 \family typewriter
10726
10727 \backslash
10728 altaffilmark
10729 \family default
10730 (2.3)・
10731 \family typewriter
10732
10733 \backslash
10734 altaffiltext
10735 \family default
10736 (2.3)・
10737 \family typewriter
10738
10739 \backslash
10740 eqnum
10741 \family default
10742 (2.12)・
10743 \family typewriter
10744
10745 \backslash
10746 setcounter{equation}
10747 \family default
10748 (2.12)・学術誌名略語(2.12.4)・
10749 \family typewriter
10750
10751 \backslash
10752 figurenum
10753 \family default
10754 (2.14.1)・
10755 \family typewriter
10756
10757 \backslash
10758 epsscale
10759 \family default
10760 (2.14.1)・
10761 \family typewriter
10762
10763 \backslash
10764 plotone
10765 \family default
10766 (2.14.1)・
10767 \family typewriter
10768
10769 \backslash
10770 plottwo
10771 \family default
10772 (2.14.1)・
10773 \family typewriter
10774
10775 \backslash
10776 tablenum
10777 \family default
10778 (2.15.4)・
10779 \family typewriter
10780
10781 \backslash
10782 tableline
10783 \family default
10784 (2.15.4:入れたい場所の後ろに,左側セルの最初の要素として挿入する.表中では,\SpecialChar LyX
10785 の方法は使わないでください)・
10786 \family typewriter
10787
10788 \backslash
10789 tablenotemark
10790 \family default
10791 (2.15.5)・
10792 \family typewriter
10793
10794 \backslash
10795 tablenotetext
10796 \family default
10797 (2.15.5)・補遺(2.17)の大半(
10798 \family typewriter
10799
10800 \backslash
10801 objectname
10802 \family default
10803
10804 \family typewriter
10805
10806 \backslash
10807 dataset
10808 \family default
10809
10810 \family typewriter
10811
10812 \backslash
10813 url
10814 \family default
10815
10816 \family typewriter
10817
10818 \backslash
10819 email
10820 \family default
10821 を除く.上記参照)・
10822 \family typewriter
10823
10824 \backslash
10825 singlespace
10826 \family default
10827 (3.1)・
10828 \family typewriter
10829
10830 \backslash
10831 doublespace
10832 \family default
10833 (3.1)・
10834 \family typewriter
10835
10836 \backslash
10837 onecolumn
10838 \family default
10839 (3.2)・
10840 \family typewriter
10841
10842 \backslash
10843 twocolumn
10844 \family default
10845 (3.2)
10846 \end_layout
10847
10848 \begin_layout Subsubsection
10849 実装できないもの
10850 \end_layout
10851
10852 \begin_layout Standard
10853 references(2.12.3)環境とdeluxetable(2.14)環境は,少なくとも意味のあるような形で実装することができないので,無視してください.もし,
10854 絶対に,どうしても,deluxetableを使う必要があるならば,テキストエディタで別ファイルとして編集し,
10855 \begin_inset Flex MenuItem
10856 status collapsed
10857
10858 \begin_layout Plain Layout
10859 挿入\SpecialChar menuseparator
10860 ファイル
10861 \begin_inset Formula $\text{\textipa{}}$
10862 \end_inset
10863
10864 \SpecialChar menuseparator
10865 子文書
10866 \end_layout
10867
10868 \end_inset
10869
10870 を使用して,\SpecialChar LyX
10871 ファイルに読み込むことを推奨します.この実例は,
10872 \family typewriter
10873 aas_sample.lyx
10874 \family default
10875 ファイルをご参照ください.
10876 \end_layout
10877
10878 \begin_layout Subsection
10879 FAQとヒントと技とその他の考察
10880 \end_layout
10881
10882 \begin_layout Subsubsection
10883 \SpecialChar LyX
10884 をAAS\SpecialChar TeX
10885 と協調させる
10886 \end_layout
10887
10888 \begin_layout Standard
10889 \SpecialChar LyX
10890 に,新しいレイアウトと文書クラスを認識させるには若干コツが要ります.もしうまく行かなかったら,次のようにしてみてください.
10891 \end_layout
10892
10893 \begin_layout Enumerate
10894 \SpecialChar LaTeX
10895 が,AAS\SpecialChar TeX
10896 を検出できることを確認してください.AAS\SpecialChar TeX
10897 頒布版に含まれる
10898 \family typewriter
10899 sample.tex
10900 \family default
10901 (あるいは
10902 \family typewriter
10903 table.tex
10904 \family default
10905 でも可)を,\SpecialChar LaTeX
10906 やAAS\SpecialChar TeX
10907 とまったく関係のないディレクトリにコピーして,
10908 \family typewriter
10909 sample.tex
10910 \family default
10911 を\SpecialChar LaTeX
10912 にかけてください.
10913 \end_layout
10914
10915 \begin_layout Enumerate
10916
10917 \family typewriter
10918 aastex.layout
10919 \family default
10920 が,\SpecialChar LyX
10921
10922 \family typewriter
10923 layouts
10924 \family default
10925 フォルダにあることを確認してください.
10926 \end_layout
10927
10928 \begin_layout Enumerate
10929 \SpecialChar LyX
10930 中から
10931 \family sans
10932 ツール\SpecialChar menuseparator
10933 環境構成
10934 \family default
10935 を再度実行し,\SpecialChar LyX
10936 を再起動してください.
10937 \end_layout
10938
10939 \begin_layout Enumerate
10940 ひな型ではなく,通常の新規ファイルを開いてください.AAS\SpecialChar TeX
10941 が,
10942 \family sans
10943 文書\SpecialChar menuseparator
10944 設定
10945 \family default
10946 のクラス一覧に表示されていますか?
10947 \end_layout
10948
10949 \begin_layout Standard
10950 既存のAAS\SpecialChar TeX
10951 文書を処理する際に,AAS\SpecialChar TeX
10952 レイアウトを見つけられないとか,「タイトルレイアウトと通常のレイアウトを混在させないでください」といった警告が出るようであ
10953 れば,正しい導入が行われていません.
10954 \end_layout
10955
10956 \begin_layout Subsubsection
10957 表を処理する際の\SpecialChar LaTeX
10958 エラー
10959 \end_layout
10960
10961 \begin_layout Standard
10962 既定では,\SpecialChar LyX
10963 は,表のキャプションやタイトルを中央揃えにしようと試みます.これはAAS\SpecialChar TeX
10964 と悪い相互干渉を発生させるようですので,キャプションやタイトルのどこかをクリッ
10965 クして,
10966 \family sans
10967 編集\SpecialChar menuseparator
10968 段落設定
10969 \family default
10970 を選択し,
10971 \family sans
10972 配置
10973 \family default
10974
10975 \family sans
10976 両端揃え
10977 \family default
10978 に設定してください.私のところではこれで解決しました.
10979 \end_layout
10980
10981 \begin_layout Subsubsection
10982 書誌情報
10983 \end_layout
10984
10985 \begin_layout Standard
10986 若干の注意があります.(1)文献項目の本文中の空白取りが少しおかしくなることがあるようです.書誌情報を入力する際には,最後の著者と,著作年を入れる括弧の間にスペ
10987 ースを
10988 \emph on
10989 入れない
10990 \emph default
10991 ようにしてください.たとえば,
10992 \family typewriter
10993 Ressler(1992)
10994 \family default
10995 はいいですが,
10996 \family typewriter
10997 Ressler (1992)
10998 \family default
10999 ではだめです.(2)書誌情報の入力の仕方は,必ずしも自明ではありません.もっとも簡単な方法は,文書の最後に,最初の書誌情報をまず書き込み,それを
11000 \family sans
11001 書誌情報
11002 \family default
11003 環境としてマークすることです.すると,入力したものの前に,小さな灰色のボックスが現れます.このボックスをクリックして,残りの情報を入力してください.新しい書誌情
11004 報を追加するには,既存の書誌情報の後ろでリターンを押します.すると,新しいボックスの付いた新規行が出てくるので,後は同様にしてください.
11005 \end_layout
11006
11007 \begin_layout Subsubsection
11008 EPSファイルの読み込み
11009 \end_layout
11010
11011 \begin_layout Standard
11012 AAS\SpecialChar TeX
11013 には,自前の図関連コマンド(たとえば
11014 \family typewriter
11015
11016 \backslash
11017 plotone
11018 \family default
11019 )がありますが,私は(既定のgraphicxを使った)\SpecialChar LaTeX
11020 の標準図コマンドの方がずっと好きです.望めば,図フロートボックスに,\SpecialChar TeX
11021 コードで
11022 \family typewriter
11023
11024 \backslash
11025 plotone
11026 \family default
11027 等のコマンドを挿入することはできますが,私には正しいレイアウトを得ることができた試しがありません.標準の画像コマンドを使えば,\SpecialChar LyX
11028 は,
11029 \family typewriter
11030
11031 \backslash
11032 usepackage{graphics}
11033 \family default
11034 コマンドを\SpecialChar LaTeX
11035 プリアンブルに挿入し,図を\SpecialChar LaTeX2e
11036 の標準的な方法で取り扱って,文章の中にちりばめます.現在,ApJは,ちょうどこのようにして作成した図を受け入れていますが,A
11037 Jはまだ「すべてを末尾に積み上げる」方法を使用しているかもしれません.
11038 \end_layout
11039
11040 \begin_layout Subsubsection
11041 可能だったが,実装しなかったもの
11042 \end_layout
11043
11044 \begin_layout Standard
11045 「素敵な」ものの中には,実装することも可能だったけれども,あえて実装しなかったものがあります.たとえば,紙の原稿ではダブルスペースであったとしても,\SpecialChar LyX
11046 ウィンドウ中
11047 で,文章をダブルスペースにする意味はないと考えました.また,preprint様式とpreprint2様式を,独立したレイアウトにすることもしませんでした.いずれ
11048 にしても,執筆時間のほとんどを,平の原稿モードで使うのがほとんどですから,これらの機能でディスクスペースを消費しないことにしました.
11049 \end_layout
11050
11051 \begin_layout Subsection
11052 最後に
11053 \end_layout
11054
11055 \begin_layout Standard
11056 これまでに進んできた道のりは,長い人も短い人もいることでしょう.私には,ApJとAJに発表した論文がありますが,その努力の98
11057 \begin_inset space \thinspace{}
11058 \end_inset
11059
11060 %は\SpecialChar LyX
11061 上で為されました.残りの2
11062 \begin_inset space \thinspace{}
11063 \end_inset
11064
11065 %が,\SpecialChar LaTeX
11066 での後処理と若干の後片付けです.投稿の過程では何のトラブルもなく,これらの学術誌が通常の投稿原稿と違う点に気づくことはなかったでしょう.ですから,がんばっ
11067 て発表してください!
11068 \end_layout
11069
11070 \begin_layout Section
11071 AMS \SpecialChar LaTeX
11072
11073 \end_layout
11074
11075 \begin_layout Standard
11076
11077 \noun on
11078 David Johnson
11079 \noun default
11080 文 
11081 \noun on
11082 Richard Heck
11083 \noun default
11084 改訂
11085 \begin_inset VSpace bigskip
11086 \end_inset
11087
11088
11089 \end_layout
11090
11091 \begin_layout Standard
11092 AMS \SpecialChar LaTeX
11093 レイアウトは,American Mathematical Society(アメリカ数学会)の刊行物に投稿する数学論文用のスタイルです.レイアウトは,特定
11094 の学術誌向けに仕立てられてはいませんが,簡単にそうすることができます.各学術誌毎の指示については,AMSの説明書をご参照ください(通常は,\SpecialChar TeX
11095 出力中の一行を変更する
11096 必要があるだけです).AMSの説明書は,ウェブWeb上の
11097 \begin_inset Flex URL
11098 status open
11099
11100 \begin_layout Plain Layout
11101
11102 http://www.ams.org
11103 \end_layout
11104
11105 \end_inset
11106
11107 か,FTPで
11108 \begin_inset Flex URL
11109 status open
11110
11111 \begin_layout Plain Layout
11112
11113 ftp://ftp.ams.org/pub/tex/amslatex/
11114 \end_layout
11115
11116 \end_inset
11117
11118 から入手することができます.これらのレイアウトは,数学的な文章を書くのであれば,どんなときでも適切かつ有用であるはずです.
11119 \end_layout
11120
11121 \begin_layout Standard
11122 基本となるAMS \SpecialChar LaTeX
11123 レイアウトには,以下の二つがあります.
11124 \end_layout
11125
11126 \begin_layout Itemize
11127 amsart:標準のAMS article書式.
11128 \end_layout
11129
11130 \begin_layout Itemize
11131 amsbook:標準のAMS book(実際はモノグラフ)書式.
11132 \end_layout
11133
11134 \begin_layout Standard
11135 これらのレイアウトには,それ自身では,AMSクラスを使用するのに必要最低限のものしか含まれていません.特に,定理や補題などを設定するのに使用される「theore
11136 m」環境は,何一つ含まれていません.これらは,代わりに
11137 \begin_inset Flex Code
11138 status collapsed
11139
11140 \begin_layout Plain Layout
11141 定理(AMS)
11142 \end_layout
11143
11144 \end_inset
11145
11146 モジュールに収録されており,AMSクラスのいずれかを選択すると,このモジュールが既定で読み込まれるようになっています(これは別のクラスでも使用することができ,別
11147 のものに変えたいときは取り除くこともできます).少し使用頻度の低いものとしては,
11148 \begin_inset Flex Code
11149 status collapsed
11150
11151 \begin_layout Plain Layout
11152 定理(AMS拡張)
11153 \end_layout
11154
11155 \end_inset
11156
11157 モジュールがあり,これは手動で読み込む必要があります.
11158 \end_layout
11159
11160 \begin_layout Standard
11161 既定では,定理類は,文書を通して連番が振られますが,これは
11162 \begin_inset Flex Code
11163 status collapsed
11164
11165 \begin_layout Plain Layout
11166 定理(節毎連番)
11167 \end_layout
11168
11169 \end_inset
11170
11171 モジュールを読み込めば変更することができ,
11172 \begin_inset Flex Code
11173 status collapsed
11174
11175 \begin_layout Plain Layout
11176 book (AMS)
11177 \end_layout
11178
11179 \end_inset
11180
11181 を使用している場合には
11182 \begin_inset Flex Code
11183 status collapsed
11184
11185 \begin_layout Plain Layout
11186 定理(章毎連番)
11187 \end_layout
11188
11189 \end_inset
11190
11191 を用いても変更することができます.これらを用いると,出力は
11192 \begin_inset Formula $n.m$
11193 \end_inset
11194
11195 のようになり,最初の数字は節番号(または章番号),次の数字はそれまで同節内(章内)に現れた出力の全数を表します.大半の環境は,連番なしでも用いることができます.
11196 連番なしのものは,環境名の後ろにアスタリスクを付けたもので表されます.連番なしの出力
11197 \emph on
11198 のみ
11199 \emph default
11200 が欲しい場合には,
11201 \begin_inset Flex Code
11202 status collapsed
11203
11204 \begin_layout Plain Layout
11205 定理(連番なし)
11206 \end_layout
11207
11208 \end_inset
11209
11210 モジュールを用います.
11211 \end_layout
11212
11213 \begin_layout Standard
11214 これらのモジュールは,AMSクラスで使用する
11215 \emph on
11216 必要はない
11217 \emph default
11218 ことに注意してください.
11219 \begin_inset Flex Code
11220 status collapsed
11221
11222 \begin_layout Plain Layout
11223 定理(AMS)
11224 \end_layout
11225
11226 \end_inset
11227
11228 モジュールや上述の他のモジュールは,他のクラス,たとえば
11229 \begin_inset Flex Code
11230 status collapsed
11231
11232 \begin_layout Plain Layout
11233 article
11234 \end_layout
11235
11236 \end_inset
11237
11238
11239 \begin_inset Flex Code
11240 status collapsed
11241
11242 \begin_layout Plain Layout
11243 report
11244 \end_layout
11245
11246 \end_inset
11247
11248
11249 \begin_inset Flex Code
11250 status collapsed
11251
11252 \begin_layout Plain Layout
11253 book (KOMA-script)
11254 \end_layout
11255
11256 \end_inset
11257
11258 などで問題なく使用することができます.
11259 \end_layout
11260
11261 \begin_layout Subsection
11262 これらのレイアウトが提供するもの
11263 \end_layout
11264
11265 \begin_layout Standard
11266 これらのレイアウトが提供している環境を列挙すると,長い一覧となります.AMS-\SpecialChar LaTeX
11267 では,実のところ,「theorem」環境の派生型を際限なく定義していくことが可能で
11268 す.しかし,AMSは,\SpecialChar LyX
11269 で利用可能になっている環境のみを使用することを推奨しています.
11270 \end_layout
11271
11272 \begin_layout Standard
11273 \begin_inset Flex Code
11274 status collapsed
11275
11276 \begin_layout Plain Layout
11277 article (AMS)
11278 \end_layout
11279
11280 \end_inset
11281
11282
11283 \begin_inset Flex Code
11284 status collapsed
11285
11286 \begin_layout Plain Layout
11287 book (AMS)
11288 \end_layout
11289
11290 \end_inset
11291
11292 には,——
11293 \begin_inset space ~
11294 \end_inset
11295
11296
11297 \begin_inset Flex Noun
11298 status collapsed
11299
11300 \begin_layout Plain Layout
11301
11302 \end_layout
11303
11304 \end_inset
11305
11306
11307 \begin_inset Flex Noun
11308 status collapsed
11309
11310 \begin_layout Plain Layout
11311 書誌情報
11312 \end_layout
11313
11314 \end_inset
11315
11316
11317 \begin_inset Flex Noun
11318 status collapsed
11319
11320 \begin_layout Plain Layout
11321 タイトル
11322 \end_layout
11323
11324 \end_inset
11325
11326
11327 \begin_inset Flex Noun
11328 status collapsed
11329
11330 \begin_layout Plain Layout
11331 著者
11332 \end_layout
11333
11334 \end_inset
11335
11336
11337 \begin_inset Flex Noun
11338 status collapsed
11339
11340 \begin_layout Plain Layout
11341 日付
11342 \end_layout
11343
11344 \end_inset
11345
11346 のような標準環境の他に
11347 \begin_inset space ~
11348 \end_inset
11349
11350 ——
11351 \begin_inset space ~
11352 \end_inset
11353
11354 以下の環境があります.
11355 \end_layout
11356
11357 \begin_layout Description
11358 住所 これは著者の恒久的な住所です.
11359 \end_layout
11360
11361 \begin_layout Description
11362 現在の住所 住所と別に指定されているときには,著者の投稿時の仮初めの住所です.
11363 \end_layout
11364
11365 \begin_layout Description
11366 電子メール 著者の電子メールアドレス
11367 \end_layout
11368
11369 \begin_layout Description
11370 URL 著者のウェブアドレス.任意.
11371 \end_layout
11372
11373 \begin_layout Description
11374 キーワード 論文中で論じられているトピックを識別するためのキーワードやキーフレーズ.
11375 \end_layout
11376
11377 \begin_layout Description
11378 分野分類 
11379 \emph on
11380 Mathematical Reviews
11381 \emph default
11382 に説明が公表されているAMS Subject Classificationsの分類番号を指します.上述したAMSのウェブサイトでも,オンラインで見ることができま
11383 す.
11384 \end_layout
11385
11386 \begin_layout Description
11387 謝辞
11388 \end_layout
11389
11390 \begin_layout Description
11391 献呈
11392 \end_layout
11393
11394 \begin_layout Description
11395 翻訳者
11396 \end_layout
11397
11398 \begin_layout Standard
11399 以下の環境は,
11400 \begin_inset Flex Code
11401 status collapsed
11402
11403 \begin_layout Plain Layout
11404 定理
11405 \end_layout
11406
11407 \end_inset
11408
11409 モジュールと
11410 \begin_inset Flex Code
11411 status collapsed
11412
11413 \begin_layout Plain Layout
11414 定理(AMS)
11415 \end_layout
11416
11417 \end_inset
11418
11419 モジュールの両方で提供され,後者の場合には,星付き(連番なし)版と星なし(連番)版の両方が提供されます.
11420 \begin_inset Flex Code
11421 status collapsed
11422
11423 \begin_layout Plain Layout
11424 定理(連番なし)
11425 \end_layout
11426
11427 \end_inset
11428
11429 モジュールでは,同環境の星付き版だけが提供されます.
11430 \end_layout
11431
11432 \begin_layout Theorem
11433 これは,通常,得られた主要な結果を叙述するのに使用されます.
11434 \end_layout
11435
11436 \begin_layout Corollary*
11437 これは直前の叙述から比較的直接に導き出せる結果を叙述するのに使います.これも主要な結果であることがあります.
11438 \end_layout
11439
11440 \begin_layout Lemma
11441 他の叙述を証明するために必要とされる,比較的小さな結果です.
11442 \end_layout
11443
11444 \begin_layout Proposition
11445 議論されている一般的な理論に(希望的には)何かを付け加えるような,主要ではない結果です.
11446 \end_layout
11447
11448 \begin_layout Conjecture
11449 正当化を与えずに述べられた叙述で,著者には証明法がわからないけれども,正しいと(少なくとも著者にとっては)思われるものです.
11450 \end_layout
11451
11452 \begin_layout Definition*
11453 これは自明でしょう.この環境のフォントは,前述の環境とは異なるフォントが使用されます.
11454 \end_layout
11455
11456 \begin_layout Problem
11457 これが何を指すかは必ずしも特定されていません.ご自分で解明してください.
11458 \end_layout
11459
11460 \begin_layout Exercise*
11461 この環境の説明を記述せよ.
11462 \end_layout
11463
11464 \begin_layout Note
11465 この環境もtheorem型,通常は重要性の低い所見に用いられます.
11466 \end_layout
11467
11468 \begin_layout Claim*
11469 より大きな結果の証明を与える途中で,しばしば用いられます.
11470 \end_layout
11471
11472 \begin_layout Case
11473 一般的に,これらはある条件の特定の場合を取り上げて,長い議論を区切るのに用いられます.
11474 \end_layout
11475
11476 \begin_layout Case
11477 ケースの連番の枠組みは,それ自身で独立していて,他の連番の叙述とは区別されます.
11478 \end_layout
11479
11480 \begin_layout Proof
11481 この環境の最後には,証了記号(通常は四角ですがスタイルによって変わります)が置かれます.この環境の中に別の環境を入れたい——たとえばケース環境など——場合で,証
11482 了記号は証明環境の終わりにのみ現れるようにしたい場合には,他の環境は証明環境の中に入れ子にしなくてはなりません.入れ子に関する情報については,
11483 \emph on
11484 ユーザーの手引き
11485 \emph default
11486
11487 \emph on
11488 環境を入れ子にする
11489 \emph default
11490 の節をご覧ください.
11491 \end_layout
11492
11493 \begin_layout Standard
11494 そして,以下は
11495 \begin_inset Flex Code
11496 status collapsed
11497
11498 \begin_layout Plain Layout
11499 定理(AMS拡張)
11500 \end_layout
11501
11502 \end_inset
11503
11504 で提供されるものです.
11505 \end_layout
11506
11507 \begin_layout Criterion*
11508 必要とされる条件です.
11509 \end_layout
11510
11511 \begin_layout Algorithm*
11512 使用する一般的手順です.
11513 \end_layout
11514
11515 \begin_layout Axiom*
11516 議論されている系内部で真と仮定される性質や命題です.
11517 \end_layout
11518
11519 \begin_layout Condition*
11520 議論の現在の文脈で仮定されている条件を述べるのに,よく用いられます.
11521 \end_layout
11522
11523 \begin_layout Note*
11524 注記と同様です.
11525 \end_layout
11526
11527 \begin_layout Notation*
11528 表記法の説明に用いられます.
11529 \end_layout
11530
11531 \begin_layout Summary
11532 本当に説明する必要がありますか?
11533 \end_layout
11534
11535 \begin_layout Acknowledgement*
11536 謝辞(acknowledgement)です.
11537 \end_layout
11538
11539 \begin_layout Conclusion*
11540 長い議論の終わりに時々用いられます.
11541 \end_layout
11542
11543 \begin_layout Fact
11544 命題と同様の用いられ方をしますが,だいたい長くないものに使われるようです.
11545 \end_layout
11546
11547 \begin_layout Standard
11548 さらに,AMSクラスは,AMS \SpecialChar LaTeX
11549 パッケージとAMSフォントパッケージを自動的に提供します.これらの環境を使用するためには,お使いのシステム上で利用可能となってい
11550 る必要があります.
11551 \end_layout
11552
11553 \begin_layout Section
11554 AGU各誌(
11555 \family sans
11556 aguplus)
11557 \end_layout
11558
11559 \begin_layout Standard
11560
11561 \noun on
11562 Martin Vermeer
11563 \noun default
11564
11565 \end_layout
11566
11567 \begin_layout Subsection
11568 概要
11569 \end_layout
11570
11571 \begin_layout Standard
11572 これはAmerican Geophysical Society(アメリカ地球物理学会) の各学術誌向けのレイアウトファイルです.AGU発行のクラスファイルおよび
11573 AGUplusの両方(これらは
11574 \begin_inset Flex URL
11575 status collapsed
11576
11577 \begin_layout Plain Layout
11578
11579 http://publications.agu.org/files/2013/08/AGU-LaTeX.zip
11580 \end_layout
11581
11582 \end_inset
11583
11584 にあります)が導入されていることが必要です.
11585 \end_layout
11586
11587 \begin_layout Subsection
11588 新しいスタイル
11589 \end_layout
11590
11591 \begin_layout Standard
11592
11593 \family sans
11594 段落
11595 \family default
11596 および
11597 \family sans
11598 段落*
11599 \family default
11600 は,定義し直されています.\SpecialChar LyX
11601 の画面では,依然として
11602 \family sans
11603 段落
11604 \family default
11605
11606 \family sans
11607 段落*
11608 \family default
11609 と表示されますが,AGUクラスにおける\SpecialChar LaTeX
11610 の対応物は,
11611 \family sans
11612 Subsubsubsection
11613 \family default
11614
11615 \family sans
11616 Subsubsubsection*
11617 \family default
11618 です.
11619 \end_layout
11620
11621 \begin_layout Standard
11622 新しく定義されたスタイルには,
11623 \family sans
11624 左ヘッダ
11625 \family default
11626
11627 \family sans
11628 右ヘッダ
11629 \family default
11630
11631 \family sans
11632 受理日
11633 \family default
11634
11635 \family sans
11636 改訂
11637 \family default
11638
11639 \family sans
11640 採択日
11641 \family default
11642
11643 \family sans
11644 CCC
11645 \family default
11646
11647 \family sans
11648 論文ID
11649 \family default
11650
11651 \family sans
11652 著者住所
11653 \family default
11654
11655 \family sans
11656 廃棄用コメント
11657 \family default
11658 があります.これらは,ほとんど草稿用属性で,AGUクラス説明書で説明されています.
11659 \end_layout
11660
11661 \begin_layout Standard
11662 おそらく,これはまだ恐ろしく不完全です.
11663 \end_layout
11664
11665 \begin_layout Subsection
11666 新しいフロート
11667 \end_layout
11668
11669 \begin_layout Standard
11670
11671 \family sans
11672 平面表(Planotable
11673 \family default
11674 )と
11675 \family sans
11676 挿絵
11677 \family default
11678 (Plate)が新しいフロートです.また,
11679 \family sans
11680 表キャプション
11681 \family default
11682 も付け加えられています.
11683 \end_layout
11684
11685 \begin_layout Subsection
11686 サポートされている学術誌
11687 \end_layout
11688
11689 \begin_layout Itemize
11690
11691 \emph on
11692 Journal of Geophysical Research
11693 \emph default
11694
11695 \family typewriter
11696 jgrga.layout
11697 \family default
11698  — Martin Vermeer
11699 \end_layout
11700
11701 \begin_layout Standard
11702 ここにあなたの作ったものを加えてください.難しくはありません.
11703 \family typewriter
11704 jgrga.layout
11705 \family default
11706 と 
11707 \family typewriter
11708 aguplus.inc
11709 \family default
11710 を用例として見てください.
11711 \end_layout
11712
11713 \begin_layout Subsection
11714 バグと注意すべきこと
11715 \end_layout
11716
11717 \begin_layout Standard
11718 新しいレイアウトを使うためには,新規文書の作成時に以下の手順を行う必要があります.
11719 \end_layout
11720
11721 \begin_layout Enumerate
11722
11723 \emph on
11724 babelを無効にしてください.
11725 \emph default
11726 これは,
11727 \family sans
11728 ツール\SpecialChar menuseparator
11729 設定
11730 \family default
11731 メニュー項目で行うことができます(AGUの論文は常に英語ですよね.ですから他の言語は
11732 \emph on
11733 選ばないで下さい
11734 \emph default
11735 ).
11736 \end_layout
11737
11738 \begin_layout Enumerate
11739 使用文書の追加オプションフィールドに
11740 \family typewriter
11741 jgrga
11742 \family default
11743 と入力してください(すみません,これはバグです).
11744 \end_layout
11745
11746 \begin_layout Enumerate
11747 Bib\SpecialChar TeX
11748 差込枠の2番目のフィールドに
11749 \family sans
11750 agu
11751 \family default
11752 と入力して,書誌情報のスタイルに
11753 \family typewriter
11754 agu.bst
11755 \family default
11756 を使用していることを確認してください.標準スタイルはうまく動作しません.
11757 \end_layout
11758
11759 \begin_layout Section
11760 Broadway
11761 \end_layout
11762
11763 \begin_layout Standard
11764
11765 \noun on
11766 Garst Reese
11767 \noun default
11768
11769 \end_layout
11770
11771 \begin_layout Subsection
11772 はじめに
11773 \end_layout
11774
11775 \begin_layout Standard
11776 Broadwayは演劇を書くためのものです.書式はHollywoodよりも装飾的で,それほど標準化されていません.この書式はワークショップに向いているでしょう.
11777 \end_layout
11778
11779 \begin_layout Subsection
11780 特別な問題
11781 \end_layout
11782
11783 \begin_layout Standard
11784 Hollywoodと同様です.
11785 \end_layout
11786
11787 \begin_layout Subsection
11788 特別の機能
11789 \end_layout
11790
11791 \begin_layout Standard
11792
11793 \family sans
11794 話者
11795 \family default
11796 の名前をラベルとして挿入し,名前を挿入する際には,このラベルを相互参照してください.相互参照ダイアログには,登場人物の現在の配役が表示されます.
11797 \end_layout
11798
11799 \begin_layout Subsection
11800 用紙寸法と余白
11801 \end_layout
11802
11803 \begin_layout Standard
11804 USレター寸法で,余白は左1.6インチ,右0.75インチ,上0.5インチ,下0.75インチです.
11805 \end_layout
11806
11807 \begin_layout Subsection
11808 環境
11809 \end_layout
11810
11811 \begin_layout Standard
11812 以下の環境を使うことができます.右に記してある
11813 \begin_inset Flex Ruby
11814 status collapsed
11815
11816 \begin_layout Plain Layout
11817
11818 \begin_inset Argument post:1
11819 status collapsed
11820
11821 \begin_layout Plain Layout
11822 キー
11823 \end_layout
11824
11825 \end_inset
11826
11827
11828 \end_layout
11829
11830 \end_inset
11831
11832 割当ては,broadway.bindを使った場合のものです.
11833 \end_layout
11834
11835 \begin_layout Itemize
11836
11837 \family sans
11838 標準
11839 \begin_inset Newline newline
11840 \end_inset
11841
11842
11843 \family default
11844 これは使わなくていいはずですが,他の環境が当てはまらない場合のためにここに挙げておきます.
11845 \end_layout
11846
11847 \begin_layout Itemize
11848
11849 \family sans
11850 ト書き
11851 \begin_inset space \hfill{}
11852 \end_inset
11853
11854 M-z n
11855 \begin_inset Newline newline
11856 \end_inset
11857
11858
11859 \family default
11860 舞台設定と動作の説明に用います.最初に話者名をすべて大文字で書いておきます.
11861 \end_layout
11862
11863 \begin_layout Itemize
11864
11865 \family sans
11866
11867 \begin_inset space \hfill{}
11868 \end_inset
11869
11870 M-z a
11871 \begin_inset Newline newline
11872 \end_inset
11873
11874
11875 \family default
11876 自動的に連番が振られます.連番は,画面上ではアラビア数字ですが,出力ではローマ数字です.
11877 \end_layout
11878
11879 \begin_layout Itemize
11880
11881 \family sans
11882 幕*
11883 \begin_inset space \hfill{}
11884 \end_inset
11885
11886 M-z S at
11887 \begin_inset Newline newline
11888 \end_inset
11889
11890
11891 \family default
11892 幕の副題です.単に中央揃えの文になります.
11893 \end_layout
11894
11895 \begin_layout Itemize
11896
11897 \family sans
11898 場面
11899 \begin_inset space \hfill{}
11900 \end_inset
11901
11902 M-z S-S
11903 \begin_inset Newline newline
11904 \end_inset
11905
11906
11907 \family default
11908 自動的に連番は振られませんので,手動で番号を付けてください.これは私がどうすればいいか分からなかったためです.
11909 \end_layout
11910
11911 \begin_layout Itemize
11912
11913 \family sans
11914 幕開きに:
11915 \begin_inset space \hfill{}
11916 \end_inset
11917
11918 M-z S-R
11919 \begin_inset Newline newline
11920 \end_inset
11921
11922
11923 \family default
11924 ト書きの特殊な場合で,カーテンが上がるときの舞台設定と動作を説明します.
11925 \end_layout
11926
11927 \begin_layout Itemize
11928
11929 \family sans
11930 話者
11931 \begin_inset space \hfill{}
11932 \end_inset
11933
11934 M-z s
11935 \begin_inset Newline newline
11936 \end_inset
11937
11938
11939 \family default
11940 話者(役者)の配役です.すべて大文字で中央揃えに置かれます.
11941 \end_layout
11942
11943 \begin_layout Itemize
11944
11945 \family sans
11946 括弧付き
11947 \begin_inset space \hfill{}
11948 \end_inset
11949
11950 M-z p
11951 \begin_inset Newline newline
11952 \end_inset
11953
11954
11955 \family default
11956 話者への指示です.括弧は自動的に挿入されます.画面上には左括弧(のみが表示されますが,印字出力には両方の括弧が表示されます.この環境は,
11957 \family sans
11958 対話
11959 \family default
11960 の中だけで使用されます. 
11961 \end_layout
11962
11963 \begin_layout Itemize
11964
11965 \family sans
11966 対話
11967 \begin_inset space \hfill{}
11968 \end_inset
11969
11970 M-z d
11971 \begin_inset Newline newline
11972 \end_inset
11973
11974
11975 \family default
11976 話者の言う内容.
11977 \end_layout
11978
11979 \begin_layout Itemize
11980
11981 \family sans
11982 幕切れ
11983 \begin_inset space \hfill{}
11984 \end_inset
11985
11986 M-z S-C
11987 \begin_inset Newline newline
11988 \end_inset
11989
11990
11991 \family default
11992 幕が降ります.
11993 \end_layout
11994
11995 \begin_layout Itemize
11996
11997 \family sans
11998 タイトル
11999 \begin_inset space \hfill{}
12000 \end_inset
12001
12002 M-z S-T
12003 \end_layout
12004
12005 \begin_layout Itemize
12006
12007 \family sans
12008 著者
12009 \begin_inset space \hfill{}
12010 \end_inset
12011
12012 M-z S-A
12013 \end_layout
12014
12015 \begin_layout Itemize
12016
12017 \family sans
12018 右寄せ住所
12019 \begin_inset space \hfill{}
12020 \end_inset
12021
12022 M-z r
12023 \end_layout
12024
12025 \begin_layout Section
12026 Dinbrief
12027 \end_layout
12028
12029 \begin_layout Standard
12030 文書クラス
12031 \family sans
12032 dinbrief
12033 \family default
12034 は,ドイツの慣習に則った書簡の組版を行うのに用いられます.ひな型ファイルが
12035 \family typewriter
12036 .../lyx/share/templates
12037 \family default
12038 にあるので,それを土台として使用してください.
12039 \end_layout
12040
12041 \begin_layout Section
12042 EGS各誌
12043 \family sans
12044 (egs)
12045 \end_layout
12046
12047 \begin_layout Standard
12048
12049 \noun on
12050 Martin Vermeer
12051 \noun default
12052
12053 \end_layout
12054
12055 \begin_layout Subsection
12056 概要
12057 \end_layout
12058
12059 \begin_layout Standard
12060 これはEuropean Geophysical Society(欧州地球物理学会)の学術誌向けのレイアウトファイルです.必要とされる
12061 \family typewriter
12062 egs.cls
12063 \family default
12064 は,EGSのウェブサイト
12065 \begin_inset Flex URL
12066 status collapsed
12067
12068 \begin_layout Plain Layout
12069
12070 http://www.copernicus.org/
12071 \end_layout
12072
12073 \end_inset
12074
12075 からダウンロードできます.
12076 \end_layout
12077
12078 \begin_layout Subsection
12079 新しいスタイル
12080 \end_layout
12081
12082 \begin_layout Standard
12083 新しいスタイルとして,
12084 \family sans
12085 右寄せ住所
12086 \family default
12087
12088 \family sans
12089 \SpecialChar LaTeX
12090 タイトル
12091 \family default
12092
12093 \family sans
12094 所属
12095 \family default
12096
12097 \family sans
12098 学術誌名
12099 \family default
12100
12101 \family sans
12102 原稿番号
12103 \family default
12104
12105 \family sans
12106 筆頭著者
12107 \family default
12108
12109 \family sans
12110 受理日
12111 \family default
12112
12113 \family sans
12114 採択日
12115 \family default
12116
12117 \family sans
12118 オフセット
12119 \family default
12120 があります.現在のレイアウトファイルは,残念ながらほとんどモジュール化されておらず,さまざまな
12121 \family typewriter
12122 std*.inc
12123 \family default
12124 ファイルを読み込む形に変えた方が便利になると思われます.
12125 \end_layout
12126
12127 \begin_layout Section
12128 Elsevier各誌
12129 \end_layout
12130
12131 \begin_layout Standard
12132 \SpecialChar LyX
12133 ひな型ファイルの
12134 \family typewriter
12135 elsarticle.lyx
12136 \family default
12137 を参照してください.必要な情報は全てそこにあります.
12138 \end_layout
12139
12140 \begin_layout Section
12141 Foils (別名Foil\SpecialChar TeX
12142 )
12143 \begin_inset CommandInset label
12144 LatexCommand label
12145 name "sec:foiltex"
12146
12147 \end_inset
12148
12149
12150 \end_layout
12151
12152 \begin_layout Standard
12153
12154 \noun on
12155 Allan Rae
12156 \noun default
12157
12158 \end_layout
12159
12160 \begin_layout Subsection
12161 はじめに
12162 \end_layout
12163
12164 \begin_layout Standard
12165 本節では,プレゼンテーション用のスライドを作るための,\SpecialChar LyX
12166 の使用法を解説します.スライドを作ることのできる文書クラスには,slides・Foil\SpecialChar TeX
12167 ・seminar・b
12168 eamer・powerdotといったクラスがありますが,本節では,そのうちslidesの解説を行います.
12169 \end_layout
12170
12171 \begin_layout Standard
12172 誤解のないように,わかりやすく明確に,もう一度言っておきます.
12173 \end_layout
12174
12175 \begin_layout Standard
12176 \begin_inset VSpace bigskip
12177 \end_inset
12178
12179
12180 \end_layout
12181
12182 \begin_layout Standard
12183 \align center
12184
12185 \size large
12186 本節は「
12187 \family sans
12188 FoilTeX
12189 \family default
12190 」クラス
12191 \emph on
12192 のみの
12193 \emph default
12194 解説を行います.
12195 \end_layout
12196
12197 \begin_layout Standard
12198 \begin_inset VSpace bigskip
12199 \end_inset
12200
12201
12202 \end_layout
12203
12204 \begin_layout Standard
12205
12206 \family sans
12207 transparencies (slides)
12208 \family default
12209 」の解説をお探しであれば,第
12210 \begin_inset CommandInset ref
12211 LatexCommand ref
12212 reference "sec:slitex"
12213
12214 \end_inset
12215
12216 節をご覧ください.お使いのコンピュータに
12217 \family sans
12218 foils
12219 \family default
12220 クラス
12221 \family sans
12222 FoilTeX
12223 \family default
12224 が導入されていなければ,
12225 \family sans
12226 foils
12227 \family default
12228 ほど良くはありませんが,おそらく
12229 \family sans
12230 slides
12231 \family default
12232 クラスを使わざるをえないでしょう.
12233 \end_layout
12234
12235 \begin_layout Standard
12236
12237 \family sans
12238 foils
12239 \family default
12240 クラスは,\SpecialChar LaTeX2e
12241 の一部として含まれている\SpecialChar LaTeX
12242 クラスファイル
12243 \family sans
12244 foils.cls
12245 \family default
12246 の第2.1版とともに使われるように設計されています.
12247 \end_layout
12248
12249 \begin_layout Subsection
12250 最初の一歩
12251 \end_layout
12252
12253 \begin_layout Standard
12254 いうまでもなく,この文書クラスを使うには,
12255 \family sans
12256 文書\SpecialChar menuseparator
12257 設定\SpecialChar menuseparator
12258 文書クラス
12259 \family default
12260 メニューの
12261 \family sans
12262 文書クラス
12263 \family default
12264 ドロップダウンで「
12265 \family sans
12266 FoilTeX
12267 \family default
12268 」を選択する必要があります.また,
12269 \family sans
12270 文書設定
12271 \family default
12272 ダイアログ中には,以下のように,このクラスに特有の設定がいくつかあることを知っておかなくてはなりません.
12273 \end_layout
12274
12275 \begin_layout Itemize
12276
12277 \family sans
12278 文書設定
12279 \family default
12280 ダイアログ中の,
12281 \family sans
12282 両面文書
12283 \family default
12284 オプションと
12285 \family sans
12286 二段組文書
12287 \family default
12288 オプションは変更しないでください.これらは 
12289 \family sans
12290 foils
12291 \family default
12292 クラスでは無視されます.
12293 \end_layout
12294
12295 \begin_layout Itemize
12296 既定のフォント寸法は20ptであり,17
12297 \begin_inset space \thinspace{}
12298 \end_inset
12299
12300 pt・25
12301 \begin_inset space \thinspace{}
12302 \end_inset
12303
12304 pt・30
12305 \begin_inset space \thinspace{}
12306 \end_inset
12307
12308 ptを選択することも可能です.
12309 \end_layout
12310
12311 \begin_layout Itemize
12312 既定のフォントは
12313 \family sans
12314 sans
12315 \family default
12316  
12317 \family sans
12318 serif
12319 \family default
12320 ですが,数式ではすべて,通常のローマン体が使用されます.
12321 \end_layout
12322
12323 \begin_layout Itemize
12324 Foil\SpecialChar TeX
12325 は,35
12326 \begin_inset space \thinspace{}
12327 \end_inset
12328
12329 mmスライド用の特殊寸法の他,A4とレター大の用紙寸法をサポートします.A5・B5・リーガル・エグゼクティブ大の用紙寸法はサポートしていません.
12330 \end_layout
12331
12332 \begin_layout Itemize
12333
12334 \family sans
12335 フロートの配置
12336 \family default
12337 の設定は無視されますので,わざわざ変更する必要はありません.フロートはすべて,本文中で定義された位置に表示されます.
12338 \end_layout
12339
12340 \begin_layout Itemize
12341 このクラスの
12342 \family sans
12343 ページレイアウト
12344 \family default
12345 の設定は,若干異なった挙動を示します.Foil\SpecialChar TeX
12346 では,ユーザ定義のロゴをはじめ,フッタとへッダに広範な設定ができます.詳細については第
12347 \begin_inset CommandInset ref
12348 LatexCommand ref
12349 reference "sec:foilfoot"
12350
12351 \end_inset
12352
12353 節をご覧ください.タイトルページは,文書中の他のページとは異なった取扱がなされ,ページ番号は
12354 \emph on
12355 つねに
12356 \emph default
12357 付けられず,(ロゴが定義されていれば)ロゴは,
12358 \emph on
12359 つねに
12360 \emph default
12361 ページ下部中央に表示されます.使用できるページ様式とその挙動は,以下の通りです.
12362 \end_layout
12363
12364 \begin_deeper
12365 \begin_layout Labeling
12366 \labelwidthstring MMMMMMM
12367
12368 \family sans
12369 \series bold
12370 empty
12371 \family default
12372 \series default
12373  最終出力には,ページ番号をはじめ,へッダ・フッタが出力されません(もちろん脚注は除きます).
12374 \end_layout
12375
12376 \begin_layout Labeling
12377 \labelwidthstring MMMMMMM
12378
12379 \family sans
12380 \series bold
12381 plain
12382 \family default
12383 \series default
12384  最終出力には,ページ番号がページ下部の中央に出力されますが,他のへッダ・フッタは出力されません(脚注除く).
12385 \end_layout
12386
12387 \begin_layout Labeling
12388 \labelwidthstring MMMMMMM
12389
12390 \series bold
12391 foilheadings
12392 \series default
12393  ページ番号が右下隅に出力されます.追記したへッダ・フッタも出力されます.これが既定値です.
12394 \end_layout
12395
12396 \begin_layout Labeling
12397 \labelwidthstring MMMMMMM
12398
12399 \series bold
12400 fancy
12401 \series default
12402  これは
12403 \family sans
12404 fancyheadings
12405 \family default
12406 パッケージを使えるようにします.ただし,Foil\SpecialChar TeX
12407 パッケージの作者は,ページレイアウトが崩れる可能性があるので,これを使用することは勧めないと言及しています.
12408 \end_layout
12409
12410 \end_deeper
12411 \begin_layout Subsubsection
12412 任意設定クラスオプション
12413 \end_layout
12414
12415 \begin_layout Standard
12416 以下のオプションは
12417 \family sans
12418 文書設定
12419 \family default
12420 ダイアログの任意設定クラスオプションボックスで使うことができます.
12421 \end_layout
12422
12423 \begin_layout Labeling
12424 \labelwidthstring MMMMMMx
12425
12426 \series bold
12427 35mmSlide
12428 \series default
12429  これは,ページレイアウトを縦7.33インチ横11インチに設定します.これは35
12430 \begin_inset space \space{}
12431 \end_inset
12432
12433 mmスライドの縦横比にほぼ等しく,このメディアを作る作業が若干易しくなります.
12434 \end_layout
12435
12436 \begin_layout Labeling
12437 \labelwidthstring MMMMMMx
12438
12439 \series bold
12440 headrule
12441 \series default
12442  タイトルページを除くすべてのページのへッダの下に罫線を入れます.
12443 \end_layout
12444
12445 \begin_layout Labeling
12446 \labelwidthstring MMMMMMx
12447
12448 \series bold
12449 footrule
12450 \series default
12451  タイトルページを除くすべてのページのフッタの上に罫線を入れます.
12452 \end_layout
12453
12454 \begin_layout Labeling
12455 \labelwidthstring MMMMMMx
12456
12457 \series bold
12458 dvips
12459 \series default
12460  これは,新規
12461 \family sans
12462 foils
12463 \family default
12464 文書を作成する度に自動的に設定されます.このオプションは,横向きに設定されたページを回転させるのに,dvipsドライバを使うようFoil\SpecialChar TeX
12465 に指示します.
12466 \end_layout
12467
12468 \begin_layout Labeling
12469 \labelwidthstring MMMMMMx
12470
12471 \series bold
12472 landscape
12473 \series default
12474  このオプションは,用紙寸法を横向きページ大に変更するだけで,回転は行いません.したがって,このオプションを使う場合は,各ページを回転させる外部プログラムを使用
12475 する,プリンタに用紙を横向きに給紙する必要があります.また,このオプションは,
12476 \family sans
12477 Foilhead
12478 \family default
12479 環境と
12480 \family sans
12481 Rotatefoilhead
12482 \family default
12483 環境の役割を逆転させることに注意してください(これらの環境については次節で説明します).
12484 \end_layout
12485
12486 \begin_layout Labeling
12487 \labelwidthstring MMMMMMx
12488
12489 \series bold
12490 leqno
12491 \series default
12492  数式番号を左側に付けます.
12493 \end_layout
12494
12495 \begin_layout Labeling
12496 \labelwidthstring MMMMMMx
12497
12498 \series bold
12499 fleqn
12500 \series default
12501  数式を左揃えにします.
12502 \end_layout
12503
12504 \begin_layout Subsection
12505 サポートされる環境
12506 \end_layout
12507
12508 \begin_layout Standard
12509 他のクラスで標準的にサポートされている環境は,
12510 \family sans
12511 foils
12512 \family default
12513 クラスでもサポートされています.それ以外に,Foil\SpecialChar TeX
12514 が提供している環境と,\SpecialChar LyX
12515 が付け加えた環境があります.以下の環境は,他のクラスと共通の環境です.
12516 \end_layout
12517
12518 \begin_layout Standard
12519
12520 \family sans
12521 \begin_inset Flex Multiple Columns
12522 status open
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 箇条書き(リスト)
12552 \end_layout
12553
12554 \begin_layout Itemize
12555
12556 \family sans
12557 \SpecialChar LyX
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 \begin_layout Itemize
12628
12629 \family sans
12630 コメント
12631 \end_layout
12632
12633 \end_inset
12634
12635
12636 \end_layout
12637
12638 \begin_layout Standard
12639 つまり,節区切りを除けば,主な環境のすべてです.一枚のスライドは,基本的にタイトルと本文を備えた自己完結した節なので,
12640 \family sans
12641 Foil
12642 \family default
12643 \SpecialChar TeX
12644 は新しいスライドを始める以下のようなコマンドを備えています.
12645 \end_layout
12646
12647 \begin_layout Itemize
12648
12649 \family sans
12650 スライドタイトル(Foilhead)
12651 \end_layout
12652
12653 \begin_layout Itemize
12654
12655 \family sans
12656 横置きスライドタイトル(Rotatefoilhead)
12657 \end_layout
12658
12659 \begin_layout Standard
12660 \SpecialChar LyX
12661 は,以下のような,これらを若干修正した環境も用意しています.
12662 \end_layout
12663
12664 \begin_layout Itemize
12665
12666 \family sans
12667 スライドタイトル(小)(ShortFoilhead)
12668 \end_layout
12669
12670 \begin_layout Itemize
12671
12672 \family sans
12673 横置きスライドタイトル(小)(ShortRotatefoilhead)
12674 \end_layout
12675
12676 \begin_layout Standard
12677 これらの違いは次節で説明します.
12678 \end_layout
12679
12680 \begin_layout Standard
12681 スライドは,アイデアを説明したり,新しい定理を説明したりするのにしばしば使われるので,
12682 \family sans
12683 Foil
12684 \family default
12685 \SpecialChar TeX
12686 はそれらを説明するのに便利な環境を幅広く用意しています.
12687 \end_layout
12688
12689 \begin_layout Standard
12690
12691 \family sans
12692 \begin_inset Flex Multiple Columns
12693 status open
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 \begin_layout Itemize
12756
12757 \family sans
12758 定義*
12759 \end_layout
12760
12761 \end_inset
12762
12763
12764 \end_layout
12765
12766 \begin_layout Standard
12767 星付き版は連番が振られず,星なし版は連番が振られます.他に,\SpecialChar LyX
12768 で追加された以下の2つの箇条書き環境があります.
12769 \end_layout
12770
12771 \begin_layout Itemize
12772
12773 \family sans
12774 箇条書き(チック)
12775 \end_layout
12776
12777 \begin_layout Itemize
12778
12779 \family sans
12780 箇条書き(クロス)
12781 \end_layout
12782
12783 \begin_layout Standard
12784 Foil\SpecialChar TeX
12785 には,強力なヘッダ機能とフッタ機能があり,これらはプリアンブルで設定するのが最良ですが,文章中のどこでも設定することができます.もし文書中でこれらの設定
12786 を変更したい場合には,スライドの一番上,foilheadの直後で行うのが良いでしょう.
12787 \end_layout
12788
12789 \begin_layout Standard
12790 この目的のためには,以下のコマンドスタイルがあります(
12791 \shape smallcaps
12792 Martin Vermeer).
12793 \end_layout
12794
12795 \begin_layout Standard
12796 \begin_inset Flex Multiple Columns
12797 status open
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_layout Itemize
12824
12825 \family sans
12826 左ヘッダ
12827 \end_layout
12828
12829 \begin_deeper
12830 \begin_layout Plain Layout
12831 \begin_inset space ~
12832 \end_inset
12833
12834
12835 \end_layout
12836
12837 \end_deeper
12838 \end_inset
12839
12840
12841 \end_layout
12842
12843 \begin_layout Standard
12844 Foil\SpecialChar TeX
12845 が提供しているコマンドで,\SpecialChar LyX
12846 が直接サポートしていないコマンドもありますが,これらの説明と使い方については,第
12847 \begin_inset CommandInset ref
12848 LatexCommand ref
12849 reference "sec:unsuppfoils"
12850
12851 \end_inset
12852
12853 節で行います.
12854 \end_layout
12855
12856 \begin_layout Subsection
12857 スライドの組を作る
12858 \end_layout
12859
12860 \begin_layout Standard
12861 この節は,様々な環境を使ってスライドの組を作る方法を簡単に紹介します.スライド組の例をご覧になりたい場合は,\SpecialChar LyX
12862
12863 \family typewriter
12864 examples
12865 \family default
12866 フォルダにある
12867 \family typewriter
12868 Foils.lyx
12869 \family default
12870 ファイルをご覧ください.
12871 \end_layout
12872
12873 \begin_layout Subsubsection
12874 タイトルページを作る
12875 \end_layout
12876
12877 \begin_layout Standard
12878
12879 \family sans
12880 タイトル
12881 \family default
12882
12883 \family sans
12884 著者
12885 \family default
12886
12887 \family sans
12888 日付
12889 \family default
12890
12891 \family sans
12892 概要
12893 \family default
12894 環境のある他のクラスとは異なり,
12895 \family sans
12896 foils
12897 \family default
12898 は独立したページにタイトルを作成します.
12899 \family sans
12900 日付
12901 \family default
12902 環境を使用しなかった場合には,\SpecialChar LaTeX
12903 は(出力を生成し直したときにはいつも)その時点の日付を挿入します.
12904 \end_layout
12905
12906 \begin_layout Subsubsection
12907 新しいスライドを開始する
12908 \end_layout
12909
12910 \begin_layout Standard
12911 前述のように,新しいスライドを開始するには,4つの方法があります.縦向きのスライドを開始するには,
12912 \family sans
12913 スライドタイトル(Foilhead)
12914 \family default
12915
12916 \family sans
12917 スライドタイトル(小)(ShortFoilhead)
12918 \family default
12919 を使用します.両環境の違いは,スライドタイトル(foilhead)とスライド本文の間の余白の違いです.
12920 \end_layout
12921
12922 \begin_layout Standard
12923 横向きのスライドは,
12924 \family sans
12925 横向きスライドタイトル(Rotatefoilhead)
12926 \family default
12927 か横向きスライドタイトル(小)(
12928 \family sans
12929 ShortRotatefoilhead)
12930 \family default
12931 環境を使用して生成します.ここでも両環境の違いは,タイトルと本文の間の余白のみです.どちらの場合も,(小)と記された版は,タイトルと本文の間の余白が,0.5インチ
12932 (約1.27cm)小さくなります.
12933 \end_layout
12934
12935 \begin_layout Standard
12936 横向きのスライドをサポートする際,一つ問題となるのは,スライドを回転させようと思うと,PostScript出力を生成するのに
12937 \family typewriter
12938 dvips
12939 \family default
12940 ドライバを使用することを要求してしまうことです.もしスライドをプリンタに横に給紙することができれば,
12941 \family typewriter
12942 dvips
12943 \family default
12944 ドライバを持っていなくても,横向きのスライドをつくることができます ;-)
12945 \end_layout
12946
12947 \begin_layout Subsubsection
12948 定理・補題・証明など
12949 \end_layout
12950
12951 \begin_layout Standard
12952 \SpecialChar LyX
12953 中の小さなバグによって,これらの環境の同じ型をお互いに直接続けて置くことはできません.これらは何かによって分離されなくてはなりません.仮に二つ続けて置いても,2
12954 つの環境をマージしたかのように,前の環境が延長されるだけです.この問題を回避するにはどうすればよいのでしょうか.最も簡単な方法は,二つの環境の間に何か文章を置く
12955 か,あるいは二つの間に「
12956 \family typewriter
12957 %
12958 \family default
12959 」だけから成る\SpecialChar LaTeX
12960 環境を置くことです.これによって,\SpecialChar LyX
12961 は2つの別々の環境を生成するように強制され,正しい\SpecialChar LaTeX
12962 出力を得ることができます.\SpecialChar LyX
12963 頒布版に含まれる用例ファイルに例があ
12964 ります.この問題は,二つの同じ定理型環境を立て続けに置こうとした場合にのみ発生することに注意してください.
12965 \end_layout
12966
12967 \begin_layout Subsubsection
12968 箇条書き
12969 \end_layout
12970
12971 \begin_layout Standard
12972 他のクラスでも共通にサポートされている箇条書き様式すべてに加えて,二つの新しい様式を使用することができます.ここでは,その新しい様式のみを説明することにします.
12973 他の箇条書き環境について詳しく知りたい場合には,
12974 \emph on
12975 ユーザーの手引き
12976 \emph default
12977 をご覧ください.記号による箇条書きを使用したい場合には,上記第
12978 \begin_inset CommandInset ref
12979 LatexCommand ref
12980 reference "sec:ブリット"
12981
12982 \end_inset
12983
12984 節の
12985 \family sans
12986 箇条書き(記号)ブリットの指定
12987 \family default
12988 の節も,読まれることが望ましいでしょう.
12989 \end_layout
12990
12991 \begin_layout Standard
12992
12993 \family sans
12994 箇条書き(チック)
12995 \family default
12996
12997 \family sans
12998 箇条書き(クロス)
12999 \family default
13000 の二つの新しい様式は,チェック印や
13001 \begin_inset Formula $\times$
13002 \end_inset
13003
13004 印を箇条書きのラベルに使用する専用の環境を提供することで,予定一覧や正誤一覧を作りやすくするように設計されたものです.これらの箇条書きは,
13005 \family sans
13006 箇条書き(記号)
13007 \family default
13008 の派生型を専用に用意したものに過ぎません.ただし,これらは,
13009 \family typewriter
13010 psnfss
13011 \family default
13012 パッケージが導入済であることを要求します.
13013 \end_layout
13014
13015 \begin_layout Subsubsection
13016 図と表
13017 \end_layout
13018
13019 \begin_layout Standard
13020 Foil\SpecialChar TeX
13021 では,図表フロートは,本文中の挿入箇所にこれらが正確に表示されるように再定義されており,ページの上部やユーザー指定場所に押しのけたりはしないようになって
13022 います.たとえフロート配置の設定に変更を加えたとしても,単に無視されます.
13023 \end_layout
13024
13025 \begin_layout Subsubsection
13026 ページヘッダおよびページフッタ
13027 \begin_inset CommandInset label
13028 LatexCommand label
13029 name "sec:foilfoot"
13030
13031 \end_inset
13032
13033
13034 \end_layout
13035
13036 \begin_layout Standard
13037
13038 \family sans
13039 グラフィックスロゴ
13040 \family default
13041
13042 \family sans
13043 配布制限
13044 \family default
13045 の二つは,左フッタ文を制御するものです.前者は,グラフィックスのロゴをスライドに入れるためのもので,既定値は「-Typeset by 
13046 \family sans
13047 Foil
13048 \family default
13049 \SpecialChar TeX
13050 -」となっています.後者は,「機密事項」などのように,聴衆に秘密区分を提示することを意図しています.既定値では,何も設定されていません.
13051 \end_layout
13052
13053 \begin_layout Standard
13054 スライドの残り三隅には,
13055 \family sans
13056 右フッタ
13057 \family default
13058 (既定ではページ番号)・
13059 \family sans
13060 右ヘッダ
13061 \family default
13062 (右上)・
13063 \family sans
13064 左ヘッダ
13065 \family default
13066 (左上)を使って文字を入れることができます.
13067 \end_layout
13068
13069 \begin_layout Subsection
13070 サポートされない 
13071 \family sans
13072 Foil
13073 \family default
13074 \SpecialChar TeX
13075 機能
13076 \begin_inset CommandInset label
13077 LatexCommand label
13078 name "sec:unsuppfoils"
13079
13080 \end_inset
13081
13082
13083 \end_layout
13084
13085 \begin_layout Standard
13086 以下で言及されているコマンドは,
13087 \family sans
13088 \SpecialChar LaTeX
13089
13090 \family default
13091 環境内で設定されるか,他の環境中の
13092 \family sans
13093 \SpecialChar TeX
13094 コード
13095 \family default
13096 として設定される必要があります.
13097 \end_layout
13098
13099 \begin_layout Subsubsection
13100 長さ
13101 \end_layout
13102
13103 \begin_layout Standard
13104 長さは,すべて
13105 \family typewriter
13106
13107 \backslash
13108 setlength{
13109 \family default
13110 \emph on
13111 長さ名
13112 \family typewriter
13113 \emph default
13114 }{
13115 \family default
13116 \emph on
13117 新規長さ
13118 \family typewriter
13119 \emph default
13120 }
13121 \family default
13122 コマンドで調節されます.ここで
13123 \emph on
13124 長さ名
13125 \emph default
13126 は,変更したい長さに付けられている名前で置き換え,
13127 \emph on
13128 新規長さ
13129 \emph default
13130 は,その長さの値で置き換えます.長さはすべて,インチ(in)・ミリメートル(mm)・ポイント(pt)のような長さ単位か,
13131 \family typewriter
13132
13133 \backslash
13134 textwidth
13135 \family default
13136 のように文書比あるいはフォント基準の長さで指定する必要があります.
13137 \end_layout
13138
13139 \begin_layout Standard
13140
13141 \family typewriter
13142
13143 \backslash
13144 foilheadskip
13145 \family default
13146 で指定される長さを調節することによって,スライドタイトルとスライド本文の間の余白を変更することができます.たとえば,スライドタイトルをすべて0.5
13147 \begin_inset space \space{}
13148 \end_inset
13149
13150 inだけスライド本文に近づけるには,プリアンブルに
13151 \family typewriter
13152
13153 \backslash
13154 setlength{
13155 \backslash
13156 foilheadskip}{-0.5in}
13157 \family default
13158 と書き込みます.
13159 \end_layout
13160
13161 \begin_layout Standard
13162 フロート周囲の余白は,以下の長さを設定することで調整することができます.
13163 \end_layout
13164
13165 \begin_layout Labeling
13166 \labelwidthstring MMMMMMMMMMM
13167
13168 \family typewriter
13169
13170 \backslash
13171 abovefloatskip
13172 \family default
13173  本文とフロート上辺との間隔
13174 \end_layout
13175
13176 \begin_layout Labeling
13177 \labelwidthstring MMMMMMMMMMM
13178
13179 \family typewriter
13180
13181 \backslash
13182 abovecaptionskip
13183 \family default
13184  フロートとキャプションとの間隔
13185 \end_layout
13186
13187 \begin_layout Labeling
13188 \labelwidthstring MMMMMMMMMMM
13189
13190 \family typewriter
13191
13192 \backslash
13193 belowcaptionskip
13194 \family default
13195  キャプションとそれに続く本文との間隔
13196 \end_layout
13197
13198 \begin_layout Labeling
13199 \labelwidthstring MMMMMMMMMMM
13200
13201 \family typewriter
13202
13203 \backslash
13204 captionwidth
13205 \family default
13206  この長さを調整することでキャプションを,周囲の本文より短くすることができます.
13207 \family typewriter
13208
13209 \backslash
13210 textwidth
13211 \family default
13212 に対する相対的な長さで調整するのが最も良いでしょう.
13213 \end_layout
13214
13215 \begin_layout Standard
13216 以下のようなタイトルページ関連の長さもあり,タイトルが長い場合や,著者が複数いる場合に使うと便利かもしれません.
13217 \end_layout
13218
13219 \begin_layout Labeling
13220 \labelwidthstring MMMMMMMMMMM
13221
13222 \family typewriter
13223
13224 \backslash
13225 abovetitleskip
13226 \family default
13227  へッダとタイトルとの間隔
13228 \end_layout
13229
13230 \begin_layout Labeling
13231 \labelwidthstring MMMMMMMMMMM
13232
13233 \family typewriter
13234
13235 \backslash
13236 titleauthorskip
13237 \family default
13238  
13239 \family sans
13240 タイトル
13241 \family default
13242 環境と
13243 \family sans
13244 著者
13245 \family default
13246 環境との間隔
13247 \end_layout
13248
13249 \begin_layout Labeling
13250 \labelwidthstring MMMMMMMMMMM
13251
13252 \family typewriter
13253
13254 \backslash
13255 authorauthorskip
13256 \family default
13257  著者が複数いる場合の
13258 \family sans
13259 著者
13260 \family default
13261 行の間隔
13262 \end_layout
13263
13264 \begin_layout Labeling
13265 \labelwidthstring MMMMMMMMMMM
13266
13267 \family typewriter
13268
13269 \backslash
13270 authordateskip
13271 \family default
13272  
13273 \family sans
13274 著者
13275 \family default
13276
13277 \family sans
13278 日付
13279 \family default
13280 との間隔
13281 \end_layout
13282
13283 \begin_layout Labeling
13284 \labelwidthstring MMMMMMMMMMM
13285
13286 \family typewriter
13287
13288 \backslash
13289 dateabstractskip
13290 \family default
13291  
13292 \family sans
13293 日付
13294 \family default
13295
13296 \family sans
13297 概要
13298 \family default
13299 との間隔
13300 \end_layout
13301
13302 \begin_layout Standard
13303 最後に紹介する長さ関連コマンドは,箇条書き環境すべてに使用できるものです.
13304 \family typewriter
13305
13306 \backslash
13307 zerolistvertdimens
13308 \family default
13309 を箇条書き環境の内側に置くと,項目間の垂直余白がすべて取り除かれます.これは長さではなくコマンドなので,上述のもののように
13310 \family typewriter
13311
13312 \backslash
13313 setlength
13314 \family default
13315 を使う必要がないことに注意してください.
13316 \end_layout
13317
13318 \begin_layout Subsubsection
13319 へッダとフッタ
13320 \end_layout
13321
13322 \begin_layout Standard
13323
13324 \family typewriter
13325
13326 \backslash
13327 LogoOn
13328 \family default
13329 および
13330 \family typewriter
13331
13332 \backslash
13333 LogoOff
13334 \family default
13335 は,
13336 \family typewriter
13337 MyLogo
13338 \family default
13339 で定義したロゴを特定のページに入れるかどうかを制御します.
13340 \family typewriter
13341
13342 \backslash
13343 LogoOff
13344 \family default
13345 をプリアンブルに入れると,全スライドからロゴが取り除かれます.特定のスライドにのみロゴを付けたくない場合は,当該ページのスライドタイトルの直後に直接
13346 \family typewriter
13347
13348 \backslash
13349 LogoOff
13350 \family default
13351 を置き,次のスライドタイトルの直後に直接
13352 \family typewriter
13353
13354 \backslash
13355 LogoOn
13356 \family default
13357 を置いてください.
13358 \end_layout
13359
13360 \begin_layout Standard
13361
13362 \family sans
13363 文書レイアウト
13364 \family default
13365 ダイアログで
13366 \family sans
13367 fancy
13368 \family default
13369 ページ様式を使用することを選択した場合には,横置きページのヘッダとフッタが回転後も正しく配置されるように,プリアンブルに
13370 \family typewriter
13371
13372 \backslash
13373 let
13374 \backslash
13375 headwidth
13376 \backslash
13377 textwidth
13378 \family default
13379 を加える必要があるでしょう.これは,
13380 \family sans
13381 fancyheadings
13382 \family default
13383 パッケージが提供するページレイアウトと
13384 \family sans
13385 foils
13386 \family default
13387 クラスの提供するページレイアウトの間に衝突が発生するためです.
13388 \end_layout
13389
13390 \begin_layout Section
13391 Hollywood(Hollywoodスペック・スクリプト)
13392 \end_layout
13393
13394 \begin_layout Standard
13395
13396 \noun on
13397 Garst Reese
13398 \noun default
13399
13400 \end_layout
13401
13402 \begin_layout Subsection
13403 はじめに
13404 \end_layout
13405
13406 \begin_layout Standard
13407 脚本を正しい書式で書くことは,ハリウッドにおける「通過儀礼」です.ハリウッドの脚本は,読み手が内容に集中できるようにし,俳優にとっても読みやすくかつ親しみやすい
13408 ように設計されています.脚本の1ページは,映画の1分でなければならず,銀幕上で見えたり聞こえたりしないものは,脚本に混入してはなりません.また,全体を通してCo
13409 urier 12
13410 \begin_inset space \space{}
13411 \end_inset
13412
13413 ptフォントを使わなければならず,イタリック体は用いてはいけません.
13414 \end_layout
13415
13416 \begin_layout Subsection
13417 特別な問題
13418 \end_layout
13419
13420 \begin_layout Standard
13421 話者の行は,文の途中で改行することは
13422 \emph on
13423 決して
13424 \emph default
13425 あってはなりません.もし話者行の塊が,次頁にまたがる場合には,
13426 \family sans
13427 話者
13428 \family default
13429 名を再度書き,その後に(Cont'd)と加えます.
13430 \end_layout
13431
13432 \begin_layout Subsection
13433 特別な機能
13434 \end_layout
13435
13436 \begin_layout Standard
13437
13438 \family sans
13439 話者
13440 \family default
13441 名はラベルとして挿入し,話者名を挿入するには,そのラベルを相互参照してください.相互参照ダイアログは,登場人物の現在の配役を表示することになります.これは,ト書
13442 きに話者名を挿入するのにも使用することができます.
13443 \end_layout
13444
13445 \begin_layout Subsection
13446 用紙寸法と余白
13447 \end_layout
13448
13449 \begin_layout Standard
13450 USレター寸法で,左余白1.6インチ・右余白0.75インチ・上余白0.5インチ・下余白0.75インチです.
13451 \end_layout
13452
13453 \begin_layout Subsection
13454 環境
13455 \end_layout
13456
13457 \begin_layout Standard
13458 以下の環境が利用可能です.右に示されている
13459 \begin_inset Flex Ruby
13460 status collapsed
13461
13462 \begin_layout Plain Layout
13463
13464 \begin_inset Argument post:1
13465 status collapsed
13466
13467 \begin_layout Plain Layout
13468 キー
13469 \end_layout
13470
13471 \end_inset
13472
13473
13474 \end_layout
13475
13476 \end_inset
13477
13478 割当てを使用するには,hollywood.bindを使用してください.
13479 \end_layout
13480
13481 \begin_layout Itemize
13482
13483 \family sans
13484 一般
13485 \begin_inset Newline newline
13486 \end_inset
13487
13488
13489 \family default
13490 他の環境が動作しない場合に使用しますが,これを使うことは避けるようにしてください.
13491 \end_layout
13492
13493 \begin_layout Itemize
13494 フェイドイン:
13495 \begin_inset space \hfill{}
13496 \end_inset
13497
13498
13499 \family sans
13500 M-z S-I
13501 \family default
13502
13503 \begin_inset Newline newline
13504 \end_inset
13505
13506 通常,この後には「Sallyは目を覚ますと」のように続きます.
13507 \end_layout
13508
13509 \begin_layout Itemize
13510
13511 \family sans
13512 屋内:
13513 \begin_inset space \hfill{}
13514 \end_inset
13515
13516 M-z i
13517 \begin_inset Newline newline
13518 \end_inset
13519
13520
13521 \family default
13522 新しい屋内(INTERIOR)カメラの設定を指定します.この後には,かならずDAYやNIGHTなどを指定して,必要な照明を定義します.この行はすべて大文字で書き
13523 ます.
13524 \end_layout
13525
13526 \begin_layout Itemize
13527
13528 \family sans
13529 屋外:
13530 \begin_inset space \hfill{}
13531 \end_inset
13532
13533 M-z e
13534 \begin_inset Newline newline
13535 \end_inset
13536
13537
13538 \family default
13539 屋外(EXTERIOR)カメラの設定を指定します.この行はすべて大文字で書きます.
13540 \end_layout
13541
13542 \begin_layout Itemize
13543
13544 \family sans
13545 話者
13546 \begin_inset space \hfill{}
13547 \end_inset
13548
13549 M-z s
13550 \begin_inset Newline newline
13551 \end_inset
13552
13553
13554 \family default
13555 話す役.
13556 \end_layout
13557
13558 \begin_layout Itemize
13559
13560 \family sans
13561 括弧付き
13562 \begin_inset space \hfill{}
13563 \end_inset
13564
13565 M-z p
13566 \begin_inset Newline newline
13567 \end_inset
13568
13569 話者
13570 \family default
13571 への指示.自動的に括弧()が挿入されますが,\SpecialChar LyX
13572 上で表示されるのは,左括弧( のみです.印刷出力には右括弧も表示されます.
13573 \end_layout
13574
13575 \begin_layout Itemize
13576
13577 \family sans
13578 対話
13579 \begin_inset space \hfill{}
13580 \end_inset
13581
13582 M-z d
13583 \begin_inset Newline newline
13584 \end_inset
13585
13586 話者
13587 \family default
13588 が話す内容.
13589 \end_layout
13590
13591 \begin_layout Itemize
13592
13593 \family sans
13594 画面遷移
13595 \begin_inset space \hfill{}
13596 \end_inset
13597
13598 M-z t
13599 \begin_inset Newline newline
13600 \end_inset
13601
13602
13603 \family default
13604 カメラの動きの指示.例:CUT TO:.
13605 \end_layout
13606
13607 \begin_layout Itemize
13608
13609 \family sans
13610 フェイドアウト:
13611 \begin_inset space \hfill{}
13612 \end_inset
13613
13614 M-z S-I
13615 \end_layout
13616
13617 \begin_layout Itemize
13618
13619 \family sans
13620 著者
13621 \begin_inset space \hfill{}
13622 \end_inset
13623
13624 M-z S-A
13625 \end_layout
13626
13627 \begin_layout Itemize
13628
13629 \family sans
13630 タイトル
13631 \begin_inset space \hfill{}
13632 \end_inset
13633
13634 M-z S-T
13635 \end_layout
13636
13637 \begin_layout Itemize
13638
13639 \family sans
13640 右寄せ住所
13641 \begin_inset space \hfill{}
13642 \end_inset
13643
13644 M-z r
13645 \end_layout
13646
13647 \begin_layout Subsection
13648 脚本で使われる特別な用語
13649 \end_layout
13650
13651 \begin_layout Itemize
13652 (O.S) — off screen
13653 \end_layout
13654
13655 \begin_layout Itemize
13656 (V.0) — voice over
13657 \end_layout
13658
13659 \begin_layout Itemize
13660 b.g.
13661  — background
13662 \end_layout
13663
13664 \begin_layout Itemize
13665 C.U.
13666  — close-up
13667 \end_layout
13668
13669 \begin_layout Itemize
13670 PAN — camera movement
13671 \end_layout
13672
13673 \begin_layout Itemize
13674 INSERT — cut to close-up of
13675 \end_layout
13676
13677 \begin_layout Section
13678 ijmpcおよびijmpd
13679 \end_layout
13680
13681 \begin_layout Standard
13682
13683 \noun on
13684 Panayotis Papasotiriou
13685 \noun default
13686
13687 \end_layout
13688
13689 \begin_layout Subsection
13690 概観
13691 \end_layout
13692
13693 \begin_layout Standard
13694 ijpmcパッケージは,
13695 \emph on
13696 International Journal of Modern Physics C
13697 \emph default
13698 への電子投稿を可能にするためのマクロ集です.同様に,ijpmdパッケージは,
13699 \emph on
13700 International Journal of Modern Physics D
13701 \emph default
13702 へ投稿する現行を作成するためのものです.両誌ともWorld Scientific社の刊行です.対応する文書クラス名は,それぞれ
13703 \family typewriter
13704 ws-ijmpc.cls
13705 \family default
13706 および
13707 \family typewriter
13708 ws-ijmpd.cls
13709 \family default
13710 です.これらのファイルは,著者のための指針とともに,
13711 \begin_inset Flex URL
13712 status collapsed
13713
13714 \begin_layout Plain Layout
13715
13716 http://www.worldscinet.com/ijmpc/mkt/guidelines.shtml
13717 \end_layout
13718
13719 \end_inset
13720
13721 および
13722 \begin_inset Flex URL
13723 status collapsed
13724
13725 \begin_layout Plain Layout
13726
13727 http://www.worldscinet.com/ijmpd/mkt/guidelines.shtml
13728 \end_layout
13729
13730 \end_inset
13731
13732 の各サイトからダウンロードすることができます.両パッケージは,標準「article」パッケージの修正版であり,両者は(一部を除き)ほぼ同一です.\SpecialChar LyX
13733 は,これらのパッ
13734 ケージのほとんどの機能をサポートしています.私は両誌へ投稿する論文を\SpecialChar LyX
13735 で書き上げましたが,何らの問題も生じませんでした.
13736 \end_layout
13737
13738 \begin_layout Subsection
13739 論文を書く
13740 \end_layout
13741
13742 \begin_layout Standard
13743 通常と同じく,論文を書く上で最も易しい方法は,ひな型を使って書き始めることです.
13744 \family sans
13745 ファイル\SpecialChar menuseparator
13746 新規(ひな型使用)
13747 \family default
13748 をクリックして,ひな型
13749 \family typewriter
13750 ijmpc.lyx
13751 \family default
13752 もしくは
13753 \family typewriter
13754 ijmpd.lyx
13755 \family default
13756 を選択してください.すると,原稿で良く使用されるフィールドを含んだ,ほぼ空の文書ができますので,既存のフィールド(鍵括弧
13757 \family typewriter
13758 <>
13759 \family default
13760 を含む)を正しい情報で置き換えてください.以下の各点にご留意ください.
13761 \end_layout
13762
13763 \begin_layout Enumerate
13764 両パッケージでは,フォント寸法や文書のページ様式を変更することが禁じられているので,\SpecialChar LyX
13765 中でこれらを変更することはできません.
13766 \end_layout
13767
13768 \begin_layout Enumerate
13769 文書言語は変更してはいけません.論文をプレビューする前に,babelパッケージが使用されていないことを確認してください.これは,
13770 \family sans
13771 ツール\SpecialChar menuseparator
13772 設定
13773 \family default
13774 をクリックして,
13775 \family sans
13776 言語オプション
13777 \family default
13778 タブを選択し,言語設定で
13779 \family sans
13780 Babelを使う
13781 \family default
13782 チェックボックスを無効にしてから,
13783 \family sans
13784 適用
13785 \family default
13786 をクリックすれば,設定することができます(この変更を固定するなら
13787 \family sans
13788 保存
13789 \family default
13790 を押してください).
13791 \end_layout
13792
13793 \begin_layout Enumerate
13794 キーワードを定義するに際しては,「キーワード」様式を用いなくてはなりません.
13795 \end_layout
13796
13797 \begin_layout Enumerate
13798 ijmpcパッケージが提供する「分類コード」様式は,PACS番号のような分類コードを定義するのに使用することができます.この機能は,ijmpdパッケージではサポ
13799 ートされていませんので,ご注意ください.
13800 \end_layout
13801
13802 \begin_layout Enumerate
13803 「定義」「ステップ」「例」「注記」「記法」「定理」「証明」「系」「補題」「命題」「命題(Prop)」「問題」「主張」「予想」といった新しい環境を使用することがで
13804 きます.これらの使い方は,大凡自明でしょう.\SpecialChar LyX
13805 は,これらの環境をすべてサポートし,それぞれについて,適切なラベルと文字様式および連番スキームを使用します.
13806 \end_layout
13807
13808 \begin_layout Enumerate
13809 両パッケージは,単純な引用を使用しますので,natbibパッケージは使用してはなりません.\SpecialChar LyX
13810 中では,引用参照は通常通り表示されますが,出力では上付き文字として表示
13811 されます.引用に通常の本文を使用したい場合には,「See Ref.
13812 \begin_inset space \space{}
13813 \end_inset
13814
13815
13816 \family typewriter
13817
13818 \backslash
13819 refcite{
13820 \family default
13821
13822 \begin_inset Flex Ruby
13823 status collapsed
13824
13825 \begin_layout Plain Layout
13826
13827 \family typewriter
13828
13829 \family default
13830
13831 \begin_inset Argument post:1
13832 status collapsed
13833
13834 \begin_layout Plain Layout
13835 キー
13836 \end_layout
13837
13838 \end_inset
13839
13840
13841 \end_layout
13842
13843 \end_inset
13844
13845
13846 \family typewriter
13847 }
13848 \family default
13849 」のように
13850 \family typewriter
13851 refcite
13852 \family default
13853 コマンドを使用してください.
13854 \end_layout
13855
13856 \begin_layout Enumerate
13857 両パッケージには,「謝辞」環境がありません.謝辞を置くには,「節*」環境を使用してください.
13858 \end_layout
13859
13860 \begin_layout Enumerate
13861 付録は,論文中,謝辞の
13862 \emph on
13863
13864 \emph default
13865 かつ書誌情報の
13866 \emph on
13867
13868 \emph default
13869 であれば,入れることができます.\SpecialChar LyX
13870 上では,「付録領域」という特別な環境があり,これを使って付録の開始位置を指定することができます.この環境は空のままにしておかなく
13871 てはなりません.この環境は,\SpecialChar LaTeX
13872 コマンドを書き出すだけで,実際に出力は行いません.\SpecialChar LyX
13873 上では,青字で「Appendix」という単語が表示され,この箇所より後の節はすべて
13874 付録であることを明示します.「付録領域」は,最初の付録の前に
13875 \emph on
13876 なくてはならない
13877 \emph default
13878 ことに注意してください.さもなくば,出力中において,付録はすべて通常の節として連番が振られてしまいます.
13879 \end_layout
13880
13881 \begin_layout Enumerate
13882 ijmpcおよびijmpdパッケージは,表キャプションを実装するのに
13883 \family typewriter
13884 tbl
13885 \family default
13886 コマンドを使用します.そのため,\SpecialChar LyX
13887 が作成した表は正しく印字されますが,そのキャプションは無視されます.しかし,\SpecialChar TeX
13888 コードを少し使えば,この問題を回避して,キャプション
13889 を望み通り印字することができるようになります.そうするには,表フロートを通常通り作成して,キャプションを削除し,代わりに\SpecialChar TeX
13890 コードで
13891 \family typewriter
13892
13893 \backslash
13894 tbl{表キャプション}{
13895 \family default
13896 (ママ)と入れます.そこに表の内容を入れて,直後を\SpecialChar TeX
13897 コード
13898 \family typewriter
13899 }
13900 \family default
13901 で閉じてください.このからくりがどのように実装されているかを見るには,ひな型ファイルに入っている表の例を精査してみてください.別の方法としては,表キャプションが
13902 欲しい場合に,表フロート全体を
13903 \family typewriter
13904 .tex
13905 \family default
13906 ファイルに収め,このファイルを\SpecialChar LyX
13907 文書に取り込んでください(
13908 \family sans
13909 挿入\SpecialChar menuseparator
13910 ファイル\SpecialChar menuseparator
13911 子文書
13912 \family default
13913 ).表フロートの作り方についての詳細は,各パッケージに含まれている
13914 \family typewriter
13915 ws-ijmpc.tex
13916 \family default
13917 または
13918 \family typewriter
13919 ws-ijmpd.tex
13920 \family default
13921 ファイルをご覧ください.
13922 \end_layout
13923
13924 \begin_layout Subsection
13925 原稿を投稿するための準備
13926 \end_layout
13927
13928 \begin_layout Standard
13929 論文を投稿する前には,\SpecialChar LyX
13930 文書を\SpecialChar LaTeX
13931 ファイルに書き出し(
13932 \family sans
13933 ファイル\SpecialChar menuseparator
13934 書き出し\SpecialChar menuseparator
13935 \SpecialChar LaTeX
13936
13937 \family default
13938 )
13939 \begin_inset Foot
13940 status open
13941
13942 \begin_layout Plain Layout
13943 実は,\SpecialChar LaTeX
13944  (plain)とpdflatexとの間で選択ができます.論文を準備するのにpdflatexを使用しようとするのであれば,取り込んである画像がPDF形式に
13945 変換され,pdflatexで使用できるように,pdflatexオプションを指定しなくてはなりません.
13946 \end_layout
13947
13948 \end_inset
13949
13950 ,その
13951 \family typewriter
13952 .tex
13953 \family default
13954 ファイルに以下の変更を加える必要があります.
13955 \end_layout
13956
13957 \begin_layout Enumerate
13958
13959 \family typewriter
13960
13961 \backslash
13962 documentclass
13963 \family default
13964 コマンドより前にあるコメント行を削除する.
13965 \end_layout
13966
13967 \begin_layout Enumerate
13968 自身で明示的に\SpecialChar LaTeX
13969 プリアンブルに置いたコマンドを除き,
13970 \family typewriter
13971
13972 \backslash
13973 makeatletter
13974 \family default
13975 コマンドと
13976 \family typewriter
13977
13978 \backslash
13979 makeatother
13980 \family default
13981 コマンドの間にあるものをすべて削除する.
13982 \end_layout
13983
13984 \begin_layout Standard
13985 こうして修正を加えた
13986 \family typewriter
13987 .tex
13988 \family default
13989 ファイルを保存し,必要な回数\SpecialChar LaTeX
13990 で処理してください.それによって得られた
13991 \family typewriter
13992 .dvi
13993 \family default
13994 文書も確認された方がよろしいでしょう.
13995 \end_layout
13996
13997 \begin_layout Subsection
13998 \SpecialChar TeX
13999 コードの使用
14000 \end_layout
14001
14002 \begin_layout Standard
14003 \SpecialChar TeX
14004 コードを使用するのは,2つのコマンドに限られ,これらは文書の最初に置かれなくてはなりません.論文をひな型
14005 \family typewriter
14006 ijmpc.lyx
14007 \family default
14008 または
14009 \family typewriter
14010 ijmpd.lyx
14011 \family default
14012 を使用して書き始めた場合には,これら必要な\SpecialChar TeX
14013 コードは,すでに書き込まれています.通常,これらを削除する必要はありません.2つのうち1番めの\SpecialChar TeX
14014 コードのみが,奇数ページ
14015 および偶数ページの上部に印字する情報(それぞれ著者名と論文の短縮タイトル)を指定するために,修正する必要があります.この\SpecialChar TeX
14016 コードは,
14017 \family typewriter
14018
14019 \backslash
14020 markboth{著者名}{論文の短縮タイトル}
14021 \family default
14022 という形である必要があります.
14023 \end_layout
14024
14025 \begin_layout Section
14026 iopart
14027 \end_layout
14028
14029 \begin_layout Standard
14030
14031 \noun on
14032 Uwe Stöhr
14033 \noun default
14034
14035 \end_layout
14036
14037 \begin_layout Subsection
14038 概要
14039 \end_layout
14040
14041 \begin_layout Standard
14042 iopartパッケージは,Institute of Physics(イギリス物理学会)発行の学術誌へ電子的に投稿する原稿を作成するための文書クラスを提供していま
14043 す.iopartクラスを使用した論文作成方法の著者用説明書は,ウェブサイト
14044 \begin_inset Flex URL
14045 status collapsed
14046
14047 \begin_layout Plain Layout
14048
14049 ftp://ftp.iop.org/pub/journals/latex2e
14050 \end_layout
14051
14052 \end_inset
14053
14054 からiopartパッケージとともにダウンロード可能です.
14055 \end_layout
14056
14057 \begin_layout Subsection
14058 論文を書く
14059 \end_layout
14060
14061 \begin_layout Standard
14062 論文を書くもっとも簡単な方法は,\SpecialChar LyX
14063 の用例ファイルフォルダにある
14064 \emph on
14065 IOP-article.lyx
14066 \emph default
14067 を土台にすることです.このファイルを開き,新しい名前で保存して,書き始めてください.この用例ファイルは,特定の環境の使用法についても説明しています.もっとも重要
14068 な助言として,以下の点にご注意ください.
14069 \end_layout
14070
14071 \begin_layout Itemize
14072 文書がPDF・PS・DVIにコンパイルできるようにするためには,文書設定の
14073 \family sans
14074 数式オプション
14075 \family default
14076 で,二つの
14077 \family sans
14078 AMS mathパッケージを使う
14079 \family default
14080 関連オプションが有効になっていないことを確認してください!
14081 \end_layout
14082
14083 \begin_layout Itemize
14084 タイトル環境の選択如何によって,論文の種類が定義されます.種類毎に以下の環境をタイトルに使用してください.
14085 \end_layout
14086
14087 \begin_deeper
14088 \begin_layout Itemize
14089 論文用には
14090 \family sans
14091 タイトル
14092 \end_layout
14093
14094 \begin_layout Itemize
14095 Review用には
14096 \family sans
14097 Review
14098 \end_layout
14099
14100 \begin_layout Itemize
14101 Topical review用には
14102 \family sans
14103 Topical
14104 \end_layout
14105
14106 \begin_layout Itemize
14107 Comment用には
14108 \family sans
14109 Comment
14110 \end_layout
14111
14112 \begin_layout Itemize
14113 Note用には
14114 \family sans
14115 注釈
14116 \end_layout
14117
14118 \begin_layout Itemize
14119 論文用には
14120 \family sans
14121 Paper
14122 \family default
14123 (タイトルと同じ)
14124 \end_layout
14125
14126 \begin_layout Itemize
14127 Preliminary communication用には
14128 \family sans
14129 Prelim
14130 \end_layout
14131
14132 \begin_layout Itemize
14133 Rapid communication用には
14134 \family sans
14135 Rapid
14136 \end_layout
14137
14138 \begin_layout Itemize
14139 編集者へのLetterには
14140 \family sans
14141 書簡
14142 \end_layout
14143
14144 \end_deeper
14145 \begin_layout Itemize
14146
14147 \family sans
14148 書簡
14149 \family default
14150 以外のタイトル環境には,すべて短縮タイトルをつけることもできます.
14151 \end_layout
14152
14153 \begin_layout Itemize
14154 \SpecialChar LyX
14155 では直接にサポートされていませんが,一般的なタイトル環境として
14156 \family sans
14157 Article
14158 \family default
14159 があります.執筆する文書が,他のタイトル型にそぐわない場合には,\SpecialChar TeX
14160 コードでこれを指定することができます.
14161 \end_layout
14162
14163 \begin_layout Standard
14164 特別な表や数式組版に関するヒントなど,詳しい情報については,IOP著者用ガイドラインを参照してください.
14165 \end_layout
14166
14167 \begin_layout Section
14168 Kluwer
14169 \end_layout
14170
14171 \begin_layout Standard
14172
14173 \noun on
14174 Panayotis Papasotiriou
14175 \noun default
14176
14177 \end_layout
14178
14179 \begin_layout Subsection
14180 概要
14181 \end_layout
14182
14183 \begin_layout Standard
14184 Kluwerパッケージは,Kluwer Academic Publishers社が発行する学術誌への電子投稿を可能にするために,同社が作成したマクロ集です.同社
14185 の発行誌のうち,(少なくとも私の専門内で)もっともよく知られているものは,
14186 \emph on
14187 Astrophysics and Space Science
14188 \emph default
14189 (『宇宙物理学と宇宙科学』)と
14190 \emph on
14191 Solar Physics
14192 \emph default
14193 (『太陽系物理学』)ですが,他にも多くの学術誌があります(
14194 \begin_inset Flex URL
14195 status collapsed
14196
14197 \begin_layout Plain Layout
14198
14199 http://www.wkap.nl/jrnllist.htm/JRNLHOME
14200 \end_layout
14201
14202 \end_inset
14203
14204 に全覧があります).Kluwerパッケージは,
14205 \begin_inset Flex URL
14206 status collapsed
14207
14208 \begin_layout Plain Layout
14209
14210 http://www.wkap.nl/kaphtml.htm/STYLEFILES
14211 \end_layout
14212
14213 \end_inset
14214
14215 からダウンロードできます.完全なユーザーの手引きも同パッケージ内に収録されています(個別にダウンロードすることも可能です).
14216 \end_layout
14217
14218 \begin_layout Standard
14219 \SpecialChar LyX
14220 は,このパッケージの機能の多くをサポートしていますが,すべてではありません.しかし,\SpecialChar TeX
14221 コードを必要とするのは,パッケージ中のいくつかの「変わった」コマンドだけにな
14222 りました(
14223 \begin_inset CommandInset ref
14224 LatexCommand ref
14225 reference "subsec:kluwer_peculiarities"
14226
14227 \end_inset
14228
14229 参照).最近,私は\SpecialChar LyX
14230 を使って書いた論文を
14231 \emph on
14232 Astrophysics and Space Science
14233 \emph default
14234 に投稿しましたが,何らの問題も発生しませんでした.
14235 \end_layout
14236
14237 \begin_layout Subsection
14238 論文を書く
14239 \end_layout
14240
14241 \begin_layout Standard
14242 論文を書き始めるには,ひな型ファイルKluwerを使うのが最も簡単です.
14243 \family sans
14244 ファイル\SpecialChar menuseparator
14245 新規(ひな型使用)
14246 \family default
14247 をクリックし,ひな型
14248 \family typewriter
14249 kluwer.lyx
14250 \family default
14251 を選択してください.これは,原稿に通常必要となる各フィールドと,それらの使用法が短く書かれただけの,(ほとんど)何も書かれていない文書です.他のテンプレートと同
14252 様に,既存の文章を(括弧
14253 \family typewriter
14254 <>
14255 \family default
14256 を含む)正しい情報で上書きしてください.
14257 \end_layout
14258
14259 \begin_layout Subsection
14260 投稿の準備
14261 \end_layout
14262
14263 \begin_layout Standard
14264 AAS\SpecialChar TeX
14265 パッケージと同様,論文を投稿する前に,以下のような「後処理」を行う必要があります.
14266 \end_layout
14267
14268 \begin_layout Enumerate
14269
14270 \family sans
14271 ファイル\SpecialChar menuseparator
14272 書き出し\SpecialChar menuseparator
14273 LateX
14274 \family default
14275 をクリックして,論文を\SpecialChar LaTeX
14276 ファイルに書き出す.
14277 \end_layout
14278
14279 \begin_layout Enumerate
14280 生成された
14281 \family typewriter
14282 .tex
14283 \family default
14284 ファイルに,テキストエディタを使用して,以下のような変更を加える.
14285 \end_layout
14286
14287 \begin_deeper
14288 \begin_layout Enumerate
14289
14290 \family typewriter
14291
14292 \backslash
14293 documentclass
14294 \family default
14295 コマンドより前にあるコメント行を削除する.
14296 \end_layout
14297
14298 \begin_layout Enumerate
14299 意図的に\SpecialChar LaTeX
14300 プリアンブルに加えたコマンドを除き,
14301 \family typewriter
14302
14303 \backslash
14304 makeatletter
14305 \family default
14306 から 
14307 \family typewriter
14308
14309 \backslash
14310 makeatother
14311 \family default
14312 の間にあるものを,これらのコマンドも含め,すべて削除する.
14313 \end_layout
14314
14315 \begin_layout Standard
14316 変更した
14317 \family typewriter
14318 .tex
14319 \family default
14320 ファイルを保存する.
14321 \end_layout
14322
14323 \end_deeper
14324 \begin_layout Enumerate
14325 この
14326 \family typewriter
14327 .tex
14328 \family default
14329 ファイルを必要な回数(通常3回以内)だけ\SpecialChar LaTeX
14330 にかける.
14331 \end_layout
14332
14333 \begin_layout Enumerate
14334 生成された
14335 \family typewriter
14336 .dvi
14337 \family default
14338 ファイルを
14339 \family sans
14340 xdvi
14341 \family default
14342 などを使って開き,問題がないか確認する(間違いをしていない限り問題ないはずです).
14343 \end_layout
14344
14345 \begin_layout Subsection
14346 Kluwerパッケージの「風変わり」な特徴
14347 \begin_inset CommandInset label
14348 LatexCommand label
14349 name "subsec:kluwer_peculiarities"
14350
14351 \end_inset
14352
14353
14354 \end_layout
14355
14356 \begin_layout Standard
14357 Kluwerパッケージには,以下のような「風変わりな」特徴があります.
14358 \end_layout
14359
14360 \begin_layout Enumerate
14361 複数の論文を1つの\SpecialChar LaTeX
14362 ファイルへ入れることができます
14363 \begin_inset Foot
14364 status collapsed
14365
14366 \begin_layout Plain Layout
14367 わざわざこんなことをする必要はないでしょう.
14368 \end_layout
14369
14370 \end_inset
14371
14372 .各論文は,「article」環境で囲まなくてはなりません.残念ながら,1つの論文だけを書く場合でも,この環境を省略することはできません.つまり,各論文は
14373 \family typewriter
14374
14375 \backslash
14376 begin{article}
14377 \family default
14378 で始まり,
14379 \family typewriter
14380
14381 \backslash
14382 end{article}
14383 \family default
14384 で終わります.この環境を\SpecialChar LyX
14385 に実装することも可能でしたが,醜い上に初心者を混乱させる可能性があるので,実装することはしませんでした.したがって,これらの命令(
14386 \family typewriter
14387
14388 \backslash
14389 begin{article}
14390 \family default
14391
14392 \family typewriter
14393
14394 \backslash
14395 end{article}
14396 \family default
14397 )は,直接本文中に入力して,\SpecialChar LaTeX
14398 コード(「\SpecialChar TeX
14399 コード」のことです)としてマークする必要があります.
14400 \end_layout
14401
14402 \begin_layout Enumerate
14403 論文の冒頭に置く情報(タイトル・サブタイトル・著者名・所属・ヘッダ用タイトル・ヘッダ用著者名・概要・キーワード)は,「opening」とよばれる環境に入れなくて
14404 はなりません.これは\SpecialChar LyX
14405 では実装されていませんので,タイトルやサブタイトルなどは,2つの\SpecialChar TeX
14406 コード行(
14407 \family typewriter
14408
14409 \backslash
14410 begin{opening}
14411 \family default
14412 および
14413 \family typewriter
14414
14415 \backslash
14416 end{opening}
14417 \family default
14418 )の間に入れる必要があります.
14419 \end_layout
14420
14421 \begin_layout Enumerate
14422 ユーザーの手引きによれば,書誌情報の各項目のラベルは,
14423 \family typewriter
14424
14425 \begin_inset Newline newline
14426 \end_inset
14427
14428
14429 \backslash
14430 protect
14431 \backslash
14432 citeauthoryear{
14433 \family default
14434 \emph on
14435 著者名
14436 \family typewriter
14437 \emph default
14438 }{
14439 \family default
14440 \emph on
14441
14442 \family typewriter
14443 \emph default
14444 }
14445 \family default
14446  と書く必要があります.
14447 \end_layout
14448
14449 \begin_layout Standard
14450 ひな型
14451 \family typewriter
14452 kluwer.lyx
14453 \family default
14454 は,これらの風変わりな点がすべて考慮されています.このひな型を使用して,論文を新たに書きはじめる場合には,特別なことを行う必要はありません.以下の点にのみ留意し
14455 てください.
14456 \end_layout
14457
14458 \begin_layout Enumerate
14459 ひな型にある\SpecialChar TeX
14460 コードを削除しないでください.
14461 \end_layout
14462
14463 \begin_layout Enumerate
14464 新しい書誌情報項目を入力する場合には,ひな型に例示されている書誌情報項目をコピーして,必要に応じて修正してください.
14465 \end_layout
14466
14467 \begin_layout Section
14468 Koma-Script
14469 \end_layout
14470
14471 \begin_layout Standard
14472
14473 \noun on
14474 Bernd Rellermeyer
14475 \noun default
14476
14477 \end_layout
14478
14479 \begin_layout Subsection
14480 概要
14481 \end_layout
14482
14483 \begin_layout Standard
14484 \SpecialChar LyX
14485 の文書クラス
14486 \emph on
14487 article (koma-script)
14488 \emph default
14489
14490 \emph on
14491 report (koma-script)
14492 \emph default
14493
14494 \emph on
14495 book
14496 \emph default
14497  
14498 \emph on
14499 (koma-script)
14500 \emph default
14501
14502 \emph on
14503 letter
14504 \emph default
14505  
14506 \emph on
14507 (koma-script)
14508 \emph default
14509 は,それぞれKoma-Scriptファミリーの\SpecialChar LaTeX
14510 文書クラス
14511 \family typewriter
14512 scrartcl.cls
14513 \family default
14514
14515 \family typewriter
14516 scrreprt.cls
14517 \family default
14518
14519 \family typewriter
14520 scrbook.cls
14521 \family default
14522
14523 \family typewriter
14524 scrlettr.cls
14525 \family default
14526 に対応しています.これらは,標準文書クラス
14527 \family typewriter
14528 article.cls
14529 \family default
14530
14531 \family typewriter
14532 report.cls
14533 \family default
14534
14535 \family typewriter
14536 book.cls
14537 \family default
14538
14539 \family typewriter
14540 letter.cls
14541 \family default
14542 の代替物であり,これらよりも多くの点でヨーロッパに於ける活版印刷の慣例に合致します.
14543 \end_layout
14544
14545 \begin_layout Itemize
14546 標準文字寸法は,
14547 \emph on
14548 article (koma-script)
14549 \emph default
14550
14551 \emph on
14552 report (koma-script)
14553 \emph default
14554
14555 \emph on
14556 book (koma-script)
14557 \emph default
14558 で11pt,
14559 \emph on
14560 letter (koma-script)
14561 \emph default
14562 で12ptです.
14563 \end_layout
14564
14565 \begin_layout Itemize
14566 見出しや箇条書き(記述)環境のラベル,および
14567 \emph on
14568 letter (koma-script)
14569 \emph default
14570 文書クラスの要素の多くでは,ボールド体サンセリフフォントが使われます
14571 \begin_inset Foot
14572 status collapsed
14573
14574 \begin_layout Plain Layout
14575 ボールド体サンセリフフォントには,古いcmフォントと新しいecフォントの間に大きな違いがあり,特に見出しの表示の違いが際立ちます.比較すると,ecボールドサンセ
14576 リフフォントの方が,少し細く見えます.ecフォントを使用する際に「通常の」外観が欲しい場合には,
14577 \shape smallcaps
14578 Walter Schmidt
14579 \shape default
14580 作の\SpecialChar LaTeX
14581 パッケージ
14582 \family typewriter
14583 cmsd.sty
14584 \family default
14585 が役立ちます.
14586 \end_layout
14587
14588 \end_inset
14589
14590 .章見出しの連番は,節見出しの連番と同様に行われ,別行立てで「 Chapter\SpecialChar ldots
14591 」という行がつきません.さらに,多くのオプションによって,見出しの外観を修正するこ
14592 とができます(\SpecialChar LyX
14593 では,
14594 \family sans
14595 文書\SpecialChar menuseparator
14596 設定
14597 \family default
14598 ダイアログの
14599 \family sans
14600 クラスオプション
14601 \family default
14602 フィールドで指定します).これらのオプションの独語での詳細な説明が,Koma-Scriptの取扱説明書
14603 \emph on
14604 scrguide
14605 \emph default
14606 にあります.
14607 \end_layout
14608
14609 \begin_layout Itemize
14610 Koma-Script文書クラスで,印字部分をデザインする主な方法は,
14611 \family sans
14612 BCOR
14613 \family default
14614 オプションまたは
14615 \family sans
14616 DIV
14617 \family default
14618 オプションを使う方法です(\SpecialChar LyX
14619 では,
14620 \family sans
14621 文書\SpecialChar menuseparator
14622 設定
14623 \family default
14624 ダイアログの
14625 \family sans
14626 クラスオプション
14627 \family default
14628 フィールドで指定します).これらのオプションは
14629 \family sans
14630 文書\SpecialChar menuseparator
14631 設定
14632 \family default
14633 ダイアログのオプションと同様に,ページ余白を明示的に変更することができます.これらとその他印字領域オプションのドイツ語での詳細な説明が,Koma-Script取
14634 扱説明書
14635 \emph on
14636 scrguide
14637 \emph default
14638 にあります.
14639 \end_layout
14640
14641 \begin_layout Itemize
14642 Koma-Scriptファミリーの\SpecialChar LaTeX
14643 文書クラスには,多くの追加コマンドが定義されています.それらのうち,\SpecialChar LyX
14644 で意味を持つものは,対応する段落環境として実装されています
14645
14646 \end_layout
14647
14648 \begin_layout Standard
14649 Koma-Scriptファミリーの\SpecialChar LaTeX
14650 文書クラスに関する独語の詳細な説明が,Koma-Script取扱説明書
14651 \emph on
14652 scrguide
14653 \emph default
14654 にあります
14655 \begin_inset Foot
14656 status collapsed
14657
14658 \begin_layout Plain Layout
14659 英語翻訳版の
14660 \emph on
14661 screnggu
14662 \emph default
14663 もありますが,完訳ではありません.
14664 \end_layout
14665
14666 \end_inset
14667
14668 .以下の各節では,\SpecialChar LyX
14669 に関係する側面のみ説明致します.
14670 \end_layout
14671
14672 \begin_layout Subsection
14673 article (koma-script)・report (koma-script)・book (koma-script)
14674 \end_layout
14675
14676 \begin_layout Standard
14677 文書クラス
14678 \emph on
14679 article (koma-script)
14680 \emph default
14681
14682 \emph on
14683 report (koma-script)
14684 \emph default
14685
14686 \emph on
14687 book
14688 \emph default
14689  
14690 \emph on
14691 (koma-script)
14692 \emph default
14693 は,それぞれレイアウトファイル
14694 \family typewriter
14695 scrartcl.layout
14696 \family default
14697
14698 \family typewriter
14699 scrreprt.layou
14700 \family default
14701 t・
14702 \family typewriter
14703 crbook.layout
14704 \family default
14705 によって実装されています.これらは,対応する標準文書クラス
14706 \emph on
14707 article
14708 \emph default
14709
14710 \emph on
14711 report
14712 \emph default
14713
14714 \emph on
14715 book
14716 \emph default
14717 の段落環境を,若干の修正を加えた上ですべて含んでいますが,\SpecialChar LyX
14718 固有の
14719 \family sans
14720 箇条書き(一覧)
14721 \family default
14722 環境は例外であり,同じ機能を持つ新しい
14723 \family sans
14724 ラベリング
14725 \family default
14726 環境で置き換えられています.この
14727 \family sans
14728 ラベリング
14729 \family default
14730 環境以外にも,新しい段落環境が多く追加されています.これらは,
14731 \emph on
14732 letter (koma-script)
14733 \emph default
14734 には含まれていないのでご注意ください.
14735 \end_layout
14736
14737 \begin_layout Itemize
14738
14739 \family sans
14740 部(addpart)
14741 \family default
14742
14743 \family sans
14744 章(addchap)
14745 \family default
14746
14747 \family sans
14748 節(addsec)
14749 \family default
14750 :これらは,それぞれ
14751 \family sans
14752 部*
14753 \family default
14754
14755 \family sans
14756 章*
14757 \family default
14758
14759 \family sans
14760 節*
14761 \family default
14762 と同等の働きをしますが,加えて目次に項目が表示されるようになります.
14763 \family sans
14764 部(addpart)
14765 \family default
14766
14767 \family sans
14768 章(addchap)
14769 \family default
14770 は,
14771 \emph on
14772 article (koma-script)
14773 \emph default
14774 には収録されていません.
14775 \end_layout
14776
14777 \begin_layout Itemize
14778
14779 \family sans
14780 章(addchap*)
14781 \family default
14782
14783 \family sans
14784 節(addsec*)
14785 \family default
14786 :これらは,
14787 \family sans
14788 章(addchap
14789 \family default
14790 )と
14791 \family sans
14792 節(addsec)
14793 \family default
14794 とまったく同等に動作しますが,加えてランニングへッダを取り除きます.
14795 \family sans
14796 章(addchap*)
14797 \family default
14798 は, 
14799 \emph on
14800 article (koma-script)
14801 \emph default
14802 には収録されていません
14803 \begin_inset Foot
14804 status collapsed
14805
14806 \begin_layout Plain Layout
14807
14808 \emph on
14809 book (koma-script)
14810 \emph default
14811
14812 \emph on
14813 report (koma-script)
14814 \emph default
14815 には,
14816 \family typewriter
14817
14818 \backslash
14819 addpart*
14820 \family default
14821 コマンドもありますが,これは
14822 \family sans
14823 Part*
14824 \family default
14825 と同一なので,\SpecialChar LyX
14826 では実装されていません.
14827 \end_layout
14828
14829 \end_inset
14830
14831
14832 \end_layout
14833
14834 \begin_layout Itemize
14835
14836 \family sans
14837 小見出し(minisec)
14838 \family default
14839 :これは文書構造に現れない形で,続く段落の直上に標準文字寸法の見出しを付けます.
14840 \end_layout
14841
14842 \begin_layout Itemize
14843
14844 \family sans
14845 上部キャプション
14846 \family default
14847
14848 \family sans
14849 下部キャプション
14850 \family default
14851 は,ある要素の上部ないし下部にキャプションを配置する際,位置に応じて正しく余白取りを行う特別なキャプションです(組版規則に厳密に従うならば,表キャプションは,つ
14852 ねに表の上に置くべきでしょう).また,クラスオプション
14853 \family typewriter
14854 tablecaptionsabove
14855 \family default
14856 を用いれば,キャプションを指定すると,表には
14857 \family sans
14858 上部キャプション
14859 \family default
14860 が,図には
14861 \family sans
14862 下部キャプション
14863 \family default
14864 が適用されるようになります.これを使用するためには,Koma-Script第2.8q版以上が必要です.
14865 \end_layout
14866
14867 \begin_layout Itemize
14868
14869 \family sans
14870 格言(dictum)
14871 \family default
14872 :これは,章頭などに警句を置くのに用いることができます.オプション引数(
14873 \family sans
14874 挿入\SpecialChar menuseparator
14875 短縮タイトル
14876 \family default
14877 )を用いれば,格言の作者を入れることができます.格言と作者の間は,線で区切られます.これを使用するためには,Koma-Script第2.8q版以上が必要です.
14878 \family sans
14879 格言(dictum)
14880 \family default
14881 は,
14882 \emph on
14883 article (koma-script)
14884 \emph default
14885 には収録されていません.
14886 \end_layout
14887
14888 \begin_layout Standard
14889 以下の各環境は,標準の
14890 \family sans
14891 タイトル
14892 \family default
14893
14894 \family sans
14895 著者
14896 \family default
14897
14898 \family sans
14899 日付
14900 \family default
14901 とともに文書のタイトル領域を形成します.これらは,最初の「通常の」段落よりも前に置かれる必要があります
14902 \begin_inset Foot
14903 status collapsed
14904
14905 \begin_layout Plain Layout
14906 つまり,対応する\SpecialChar LaTeX
14907 コマンドが
14908 \family typewriter
14909
14910 \backslash
14911 maketitle
14912 \family default
14913 コマンドよりも前に現れなくてはなりません.
14914 \end_layout
14915
14916 \end_inset
14917
14918 .これらの環境が2度以上使用された場合には,後に使用されたものが前のものを上書きします.つまり最後に使用したもののみが有効になります.しかしながら,
14919 \family sans
14920 タイトル
14921 \family default
14922
14923 \family sans
14924 著者
14925 \family default
14926
14927 \family sans
14928 日付
14929 \family default
14930 のような異なる環境の順序を変更しても,生成された文書には何の効果も生じません.
14931 \end_layout
14932
14933 \begin_layout Itemize
14934
14935 \family sans
14936 主題
14937 \family default
14938 :通常のタイトル部(
14939 \family sans
14940 タイトル
14941 \family default
14942
14943 \family sans
14944 著者
14945 \family default
14946
14947 \family sans
14948 日付
14949 \family default
14950 )の上に,文書の主題用の中央揃えの段落を生成します.
14951 \end_layout
14952
14953 \begin_layout Itemize
14954
14955 \family sans
14956 出版社
14957 \family default
14958 :通常のタイトル部(
14959 \family sans
14960 タイトル
14961 \family default
14962
14963 \family sans
14964 著者
14965 \family default
14966
14967 \family sans
14968 日付
14969 \family default
14970 )の下に,出版社名用の中央揃えの段落を生成します.
14971 \end_layout
14972
14973 \begin_layout Itemize
14974
14975 \family sans
14976 献呈
14977 \family default
14978
14979 \emph on
14980 report (koma-script)
14981 \emph default
14982
14983 \emph on
14984 book (koma-script)
14985 \emph default
14986 では,タイトル頁の次に,献辞用の中央揃えの段落を独立した頁として生成します.
14987 \emph on
14988 article (koma-script)
14989 \emph default
14990 の場合は,通常のタイトル部(
14991 \family sans
14992 タイトル
14993 \family default
14994
14995 \family sans
14996 著者
14997 \family default
14998
14999 \family sans
15000 日付
15001 \family default
15002 )の下に献辞用の中央揃えの段落を生成します.
15003 \end_layout
15004
15005 \begin_layout Itemize
15006
15007 \family sans
15008 タイトル頭書き
15009 \family default
15010 :通常のタイトル部(
15011 \family sans
15012 タイトル
15013 \family default
15014
15015 \family sans
15016 著者
15017 \family default
15018
15019 \family sans
15020 日付
15021 \family default
15022 )の上に,文書頭書き用の左揃えの段落を生成します.
15023 \end_layout
15024
15025 \begin_layout Itemize
15026
15027 \family sans
15028 扉裏上部
15029 \family default
15030
15031 \emph on
15032 report (koma-script)
15033 \emph default
15034 や 
15035 \emph on
15036 book (koma-script)
15037 \emph default
15038 の両面印刷において,扉裏上部に左揃え段落を生成します.片面印刷や,
15039 \emph on
15040 article (koma-script)
15041 \emph default
15042 では何の効果も生じません.
15043 \end_layout
15044
15045 \begin_layout Itemize
15046
15047 \family sans
15048 扉裏下部
15049 \family default
15050
15051 \emph on
15052 report (koma-script)
15053 \emph default
15054 や 
15055 \emph on
15056 book (koma-script)
15057 \emph default
15058 の両面印刷において,扉裏下部に左揃え段落を生成します.片面印刷や,
15059 \emph on
15060 article (koma-script)
15061 \emph default
15062 では何の効果も生じません.
15063 \end_layout
15064
15065 \begin_layout Itemize
15066
15067 \family sans
15068 追加タイトル
15069 \family default
15070 :実際の文書の前に,整形を行わない段落から成る,特殊な「汚い」ページを生成します.
15071 \end_layout
15072
15073 \begin_layout Standard
15074 文書クラス
15075 \emph on
15076 article (koma-script)
15077 \emph default
15078
15079 \emph on
15080 report (koma-script)
15081 \emph default
15082
15083 \emph on
15084 book (koma-script)
15085 \emph default
15086 の 各レイアウトファイルは,
15087 \family typewriter
15088 scrmacros.inc
15089 \family default
15090 ファイルを読み込みます.このファイルは,ユーザ環境を定義する場所として想定されています.s
15091 \family typewriter
15092 crmacros.inc
15093 \family default
15094 を,個人用レイアウトディレクトリにコピーして編集してください!
15095 \end_layout
15096
15097 \begin_layout Subsection
15098 letter (koma-script)
15099 \end_layout
15100
15101 \begin_layout Standard
15102 \noindent
15103 文書クラス
15104 \emph on
15105 letter (koma-script)
15106 \emph default
15107 は,レイアウトファイル 
15108 \family typewriter
15109 scrlettr.layout
15110 \family default
15111 で実装されています.このレイアウトファイルには,対応する標準文書クラス
15112 \emph on
15113 letter
15114 \emph default
15115 の全段落環境が,部分的に変更を加えた形で収録されていますが,\SpecialChar LyX
15116 固有環境の
15117 \family sans
15118 \SpecialChar LyX
15119 コード
15120 \family default
15121
15122 \family sans
15123 コメント
15124 \family default
15125
15126 \family sans
15127 箇条書き(一覧
15128 \family default
15129 )は,新しく
15130 \family sans
15131 ラベリング
15132 \family default
15133 環境に置き換えられています.それ以外にも,標準文書クラスとは異なり,標準環境の
15134 \family sans
15135 \SpecialChar LaTeX
15136
15137 \family default
15138
15139 \family sans
15140 引用(字下げあり)
15141 \family default
15142
15143 \family sans
15144 引用(字下げなし)
15145 \family default
15146
15147 \family sans
15148 詩句
15149 \family default
15150 が収録されています.さらに,新しいletter固有環境がたくさん追加されています.
15151 \end_layout
15152
15153 \begin_layout Standard
15154 この文書クラスで作成した書簡の外観は,様々な\SpecialChar LaTeX
15155 コマンドを\SpecialChar LaTeX
15156 プリアンブルに置くことで制御することができます
15157 \begin_inset Foot
15158 status collapsed
15159
15160 \begin_layout Plain Layout
15161 例えば,名前と住所の入った書簡ヘッダの標準的外観は,きわめて頑固です.「普通の」へッダは,プリアンブル中に以下のようなコマンドを入れることで生成することができま
15162 す.
15163 \end_layout
15164
15165 \begin_layout LyX-Code
15166
15167 \backslash
15168 firsthead{
15169 \backslash
15170 parbox[b]{
15171 \backslash
15172 textwidth}
15173 \end_layout
15174
15175 \begin_layout LyX-Code
15176   {
15177 \backslash
15178 ignorespaces 
15179 \backslash
15180 fromname
15181 \backslash
15182
15183 \backslash
15184  
15185 \backslash
15186 ignorespaces 
15187 \backslash
15188 fromaddress}} 
15189 \end_layout
15190
15191 \begin_layout LyX-Code
15192
15193 \backslash
15194 nexthead{
15195 \backslash
15196 parbox[b]{
15197 \backslash
15198 textwidth}
15199 \end_layout
15200
15201 \begin_layout LyX-Code
15202   {
15203 \backslash
15204 ignorespaces 
15205 \backslash
15206 fromname 
15207 \backslash
15208 hfill 
15209 \backslash
15210 ignorespaces 
15211 \backslash
15212 pagename
15213 \backslash
15214
15215 \end_layout
15216
15217 \begin_layout LyX-Code
15218
15219 \backslash
15220 thepage}}
15221 \end_layout
15222
15223 \end_inset
15224
15225 .これらの\SpecialChar LaTeX
15226 コマンドのドイツ語での詳細な説明は,Koma-Scriptの取扱説明書
15227 \emph on
15228 scrguide
15229 \emph default
15230 にあります.この方法で,書簡の著者は,個人用書簡レイアウトを作ることができます.
15231 \end_layout
15232
15233 \begin_layout Standard
15234
15235 \family sans
15236 書簡
15237 \family default
15238 環境および
15239 \family sans
15240 頭語
15241 \family default
15242 環境は,書簡の冒頭部を定義するもので,すべての書簡で使用しなくてはなりません.\SpecialChar LyX
15243 文書クラスでは,これらの環境を強調するために,左余白にそれぞれ
15244 \shape italic
15245 L
15246 \shape default
15247
15248 \shape italic
15249 O
15250 \shape default
15251 という文字が表示されます.同一ファイル中には,複数の書簡を書くことができます.
15252 \family sans
15253 頭語
15254 \family default
15255 環境は,同じ受取人への書簡を新しく書き出すものであり,
15256 \family sans
15257 書簡
15258 \family default
15259 環境は,新しい受取人を生成するものです.
15260 \family sans
15261 結語
15262 \family default
15263
15264 \family sans
15265 PS
15266 \family default
15267
15268 \family sans
15269 CC
15270 \family default
15271
15272 \family sans
15273 Encl
15274 \family default
15275 は,通常の段落環境なので,同一の書簡中でも何度も使用することができます.
15276 \end_layout
15277
15278 \begin_layout Itemize
15279
15280 \family sans
15281 書簡
15282 \family default
15283 :受取人のための段落をつくり,暗黙に書簡の開始を定義します.
15284 \end_layout
15285
15286 \begin_layout Itemize
15287
15288 \family sans
15289 頭語
15290 \family default
15291 :敬称のための段落をつくり,暗黙に新しい書簡を開始します.
15292 \end_layout
15293
15294 \begin_layout Itemize
15295
15296 \family sans
15297 結語
15298 \family default
15299 :結語のための段落をつくります.
15300 \end_layout
15301
15302 \begin_layout Itemize
15303
15304 \family sans
15305 PS
15306 \family default
15307 :追伸のための段落をつくります.
15308 \end_layout
15309
15310 \begin_layout Itemize
15311
15312 \family sans
15313 CC
15314 \family default
15315 :同報一覧のための段落をつくります.
15316 \end_layout
15317
15318 \begin_layout Itemize
15319
15320 \family sans
15321 Encl
15322 \family default
15323 :同封物のための段落をつくります.
15324 \end_layout
15325
15326 \begin_layout Standard
15327
15328 \family sans
15329 名前
15330 \family default
15331
15332 \family sans
15333 署名
15334 \family default
15335
15336 \family sans
15337 住所
15338 \family default
15339
15340 \family sans
15341 電話
15342 \family default
15343
15344 \family sans
15345 場所(Place
15346 \family default
15347 )・
15348 \family sans
15349 返送先住所
15350 \family default
15351
15352 \family sans
15353 配送手段(Specialmail)
15354 \family default
15355
15356 \family sans
15357 場所
15358 \family default
15359
15360 \family sans
15361 タイトル
15362 \family default
15363
15364 \family sans
15365 主題
15366 \family default
15367 は,情報入力を促すラベルの付いた入力環境で,文書クラスが適切な処理を行います
15368 \begin_inset Foot
15369 status collapsed
15370
15371 \begin_layout Plain Layout
15372 上述の
15373 \family sans
15374 書簡
15375 \family default
15376
15377 \family sans
15378 頭語
15379 \family default
15380 が,これらのような入力環境でないのは,矛盾しているように感じられるかもしれません.しかしながら,これら2つの環境は特別の意味を持っているために,これらは左余白に
15381 一文字をマークした通常の段落環境として実装しました.さらに,
15382 \family sans
15383 頭語
15384 \family default
15385 環境と
15386 \family sans
15387 結語
15388 \family default
15389 環境が著しく異なって見えると対称性が損なわれることになるのも理由の一つです.
15390 \end_layout
15391
15392 \end_inset
15393
15394 .これらの環境は,対応する
15395 \family sans
15396 頭語
15397 \family default
15398 環境の前に置く必要があります.
15399 \end_layout
15400
15401 \begin_layout Standard
15402 生成された書簡の実際の外観は,特定の環境の使い方だけではなく,他の要素にも依存するため,これらの環境をWYSIWYGとして実装することには,あまり意味がありませ
15403 ん.たとえば,
15404 \family sans
15405 署名
15406 \family default
15407 環境で入力した署名は,標準的な挙動では,同じ書簡に
15408 \family sans
15409 結語
15410 \family default
15411 環境も使用されているときのみ,書簡の出力に現れます.
15412 \family sans
15413 電話
15414 \family default
15415 環境に入力された値は,標準的な挙動では,書簡の出力には全く表示されません.書簡のヘッダを自由にデザインできることは,前出の脚注で示してあります.
15416 \end_layout
15417
15418 \begin_layout Standard
15419 入力環境は,空の段落として使うことができます.これは,たとえば
15420 \family sans
15421 署名
15422 \family default
15423 環境の場合に有効です.
15424 \family sans
15425 署名
15426 \family default
15427 環境を全く使用しない場合は,標準的な挙動では,
15428 \family sans
15429 名前
15430 \family default
15431 環境の値が署名として使用されますが,空の
15432 \family sans
15433 署名
15434 \family default
15435 環境を作成しておくと,署名の値は無定義となりません.
15436 \end_layout
15437
15438 \begin_layout Standard
15439 入力環境を使用すると,個人データ(名前や住所など)が既に入力された入力環境と,後から入力するデータの入力環境を備えた,書簡のひな型を作成することができます.
15440 \end_layout
15441
15442 \begin_layout Itemize
15443
15444 \family sans
15445 名前
15446 \family default
15447 :送り主の名前.標準的な挙動では,書簡のヘッダ部にスモールキャップ体の中央揃えの段落として表示されます.
15448 \end_layout
15449
15450 \begin_layout Itemize
15451
15452 \family sans
15453 署名
15454 \family default
15455 :送り主の署名.標準的な挙動では,
15456 \family sans
15457 結語
15458 \family default
15459 環境の下に表示されます.
15460 \family sans
15461 署名
15462 \family default
15463 環境を使用しないと,代わりに
15464 \family sans
15465 名前
15466 \family default
15467 環境の値が表示されます.
15468 \end_layout
15469
15470 \begin_layout Itemize
15471
15472 \family sans
15473 住所
15474 \family default
15475 :送り主の住所.標準的な挙動では,書簡ヘッダの送り主の名前の下に中央揃えの段落として表示されます.
15476 \end_layout
15477
15478 \begin_layout Itemize
15479
15480 \family sans
15481 電話
15482 \family default
15483 :送り主の電話番号.標準的な挙動では,\SpecialChar LaTeX
15484 変数
15485 \family typewriter
15486
15487 \backslash
15488 telephonenum
15489 \family default
15490 を設定するだけです.
15491 \end_layout
15492
15493 \begin_layout Itemize
15494
15495 \family sans
15496 場所(Place)
15497 \family default
15498 :書簡を書いた場所.
15499 \end_layout
15500
15501 \begin_layout Itemize
15502
15503 \family sans
15504 日付
15505 \family default
15506 :書簡を書いた日付.
15507 \family sans
15508 場所(Place)
15509 \family default
15510
15511 \family sans
15512 日付
15513 \family default
15514 は,標準的な挙動では,受取人フィールドの下に,単一の右揃え行として場所と日付を生成します.空の
15515 \family sans
15516 日付
15517 \family default
15518 環境を作成しておくと,
15519 \family sans
15520 場所(Place)
15521 \family default
15522 の値如何に関わらず,場所も日付も表示されません.
15523 \family sans
15524 日付
15525 \family default
15526 環境を使用しない場合には,書簡を出力した日付が使用されます.
15527 \end_layout
15528
15529 \begin_layout Itemize
15530
15531 \family sans
15532 返送先住所
15533 \family default
15534 :送り主の返送先住所.標準的な挙動では,受取人の上に小文字のサンセリフ体フォントで表示されます.
15535 \end_layout
15536
15537 \begin_layout Itemize
15538
15539 \family sans
15540 特別便
15541 \family default
15542 :特別便の情報.標準的な挙動では,受取人フィールドの上かつ返送先住所の下に,下線付きで表示されます.
15543 \end_layout
15544
15545 \begin_layout Itemize
15546
15547 \family sans
15548 場所
15549 \family default
15550 :追加情報.標準的な挙動では,受取人フィールドの下の右側に表示されます.
15551 \end_layout
15552
15553 \begin_layout Itemize
15554
15555 \family sans
15556 タイトル
15557 \family default
15558 :書簡の題名.標準的な挙動では,主題の上に大きなボールド体サンセリフフォントで表示されます.
15559 \end_layout
15560
15561 \begin_layout Itemize
15562
15563 \family sans
15564 主題
15565 \family default
15566 :書簡の主題.標準的な挙動では,
15567 \family sans
15568 頭語
15569 \family default
15570 環境の上にボールド体で表示されます.
15571 \end_layout
15572
15573 \begin_layout Standard
15574
15575 \family sans
15576 Yourref・Yourmail・Myref・顧客・インボイス
15577 \family default
15578 といった環境は,
15579 \family sans
15580 タイトル
15581 \family default
15582 行の上に「Your ref.」・「Your letter of」・「Our ref.」・「Customer no.」・「Invoice no.」・「Date」といったフ
15583 ィールド行を持つ,ビジネス書簡を作成します.日付フィールドには,
15584 \family sans
15585 日付
15586 \family default
15587 環境の値が使用されます.しかしながら,これらの「ビジネス書簡環境」の一つを使用した場合には,
15588 \family sans
15589 場所(Place)
15590 \family default
15591 の値は書簡には表示されなくなり,\SpecialChar LaTeX
15592 変数
15593 \family typewriter
15594
15595 \backslash
15596 fromplace
15597 \family default
15598 が設定させるだけになります.通常時に,受取人フィールドの下に右揃えで出力される場所と日付の出力は,抑制されます.これらのビジネス環境は,ラベル付きの入力環境とし
15599 て実装されており,対応する
15600 \family sans
15601 頭語
15602 \family default
15603 環境よりも前に置く必要があります.
15604 \end_layout
15605
15606 \begin_layout Itemize
15607
15608 \family sans
15609 Yourref
15610 \family default
15611 : Your ref.
15612 \end_layout
15613
15614 \begin_layout Itemize
15615
15616 \family sans
15617 Yourmail
15618 \family default
15619 : Your letter of.
15620 \end_layout
15621
15622 \begin_layout Itemize
15623
15624 \family sans
15625 Myref
15626 \family default
15627 : Our ref.
15628 \end_layout
15629
15630 \begin_layout Itemize
15631
15632 \family sans
15633 Customer
15634 \family default
15635 : Customer no.
15636 \end_layout
15637
15638 \begin_layout Itemize
15639
15640 \family sans
15641 Invoice
15642 \family default
15643 : Invoice no.
15644 \end_layout
15645
15646 \begin_layout Subsection
15647 新しいletterクラス:letter (koma-script v.2)
15648 \end_layout
15649
15650 \begin_layout Standard
15651 by 
15652 \noun on
15653 Jürgen Spitzmüller
15654 \begin_inset VSpace medskip
15655 \end_inset
15656
15657
15658 \end_layout
15659
15660 \begin_layout Standard
15661 \noindent
15662 Koma-Script第2.8版では,新しいletterクラス
15663 \family typewriter
15664 scrlttr2
15665 \family default
15666 が導入されたため,
15667 \family typewriter
15668 scrlettr
15669 \family default
15670 は廃止されてサポート対象外となりました.これは—\SpecialChar LaTeX
15671 側で—全く新しいインターフェイスを持っており,旧クラスとは互換性がありません.したがって,\SpecialChar LyX
15672 は両者をサポートしてい
15673 ますが,新しい方のクラスを使用することを推奨します.
15674 \end_layout
15675
15676 \begin_layout Standard
15677 このクラスは,
15678 \emph on
15679 letter (koma-script)
15680 \emph default
15681 と同一の機能に加えて,新しい機能をいくつかサポートしています.基本となる項目は,
15682 \family sans
15683 住所
15684 \family default
15685 (受取人の住所,旧レイアウトの
15686 \family sans
15687 書簡
15688 \family default
15689 と同じ)・
15690 \family sans
15691 頭語
15692 \family default
15693
15694 \family sans
15695 結語
15696 \family default
15697 です.
15698 \family sans
15699 次の住所
15700 \family default
15701 は別の書簡を新しく開始します(つまり一文書あたり複数の書簡を書くことができます).新しく付け加えられた項目は,送り主の
15702 \family sans
15703 電子メール
15704 \family default
15705
15706 \family sans
15707 URL
15708 \family default
15709
15710 \family sans
15711 ファックス
15712 \family default
15713
15714 \family sans
15715 銀行
15716 \family default
15717 ,およびヘッダに(
15718 \family sans
15719 挿入\SpecialChar menuseparator
15720
15721 \family default
15722 で)
15723 \family sans
15724 ロゴ
15725 \family default
15726 を入れることができるようになった点です.
15727 \end_layout
15728
15729 \begin_layout Standard
15730 しかしながら,もっとも大きな改善は,書簡のレイアウトを,ほとんどどんなニーズにも合わせて設定できるようになった点でしょう.これはプリアンブルか,クラスオプション
15731 として読み込まれる特別なスタイルファイル(「レタークラスオプション」,拡張子
15732 \family typewriter
15733 *.lco
15734 \family default
15735 )によって設定することができます
15736 \begin_inset Foot
15737 status collapsed
15738
15739 \begin_layout Plain Layout
15740 KOMAパッケージには,既定の
15741 \family typewriter
15742 *.lco
15743 \family default
15744 ファイルがいくつか収録されています.たとえば,ドイツの組版規則に則った
15745 \family typewriter
15746 DIN.lco
15747 \family default
15748 や,旧
15749 \family typewriter
15750 scrlettr
15751 \family default
15752 クラスの既定レイアウトを提供する
15753 \family typewriter
15754 KOMAold.lco
15755 \family default
15756 などです.たとえば後者は,
15757 \family sans
15758 文書\SpecialChar menuseparator
15759 設定\SpecialChar menuseparator
15760 文書クラス\SpecialChar menuseparator
15761 クラスオプション
15762 \family default
15763 フィールドにクラスオプション
15764 \family typewriter
15765 KOMAold
15766 \family default
15767 を加えることで読み込むことができます.
15768 \end_layout
15769
15770 \end_inset
15771
15772 .用例としては,\SpecialChar LyX
15773 に収録されているひな型
15774 \emph on
15775 koma-letter2
15776 \emph default
15777 をご覧ください.詳細な解説は,Koma-Script取扱説明書(
15778 \emph on
15779 scrguide
15780 \emph default
15781 )にあります.
15782 \end_layout
15783
15784 \begin_layout Subsection
15785 問題点
15786 \end_layout
15787
15788 \begin_layout Standard
15789 Koma-Script文書クラスを\SpecialChar LyX
15790 上に表示する上で,\SpecialChar LyX
15791 の内部処理が若干の問題を生じめます.
15792 \end_layout
15793
15794 \begin_layout Itemize
15795
15796 \family sans
15797
15798 \family default
15799 環境の章番号は,章見出しと同じ行ではなく,その上に表示されます.これは,レイアウトファイル中の
15800 \family sans
15801 Counter_Chapter
15802 \family default
15803 ラベル型に対する\SpecialChar LyX
15804 の内部処理が原因です.
15805 \end_layout
15806
15807 \begin_layout Itemize
15808
15809 \family sans
15810 章(addchap)
15811 \family default
15812
15813 \family sans
15814 節(addsec)
15815 \family default
15816 環境の見出しは,「本当の」\SpecialChar LaTeX
15817 の目次には追加されますが,\SpecialChar LyX
15818 の目次(
15819 \family sans
15820 移動
15821 \family default
15822 メニュー)には追加されません.
15823 \end_layout
15824
15825 \begin_layout Itemize
15826
15827 \emph on
15828 letter
15829 \emph default
15830 文書クラスでの段落は,垂直スペースによる段落区切りで表示され,字下げはされません.これが標準的な挙動となっていて,特別な\SpecialChar LaTeX
15831 コマンドは必要ありません.しかし,
15832 \family sans
15833 文書\SpecialChar menuseparator
15834 設定
15835 \family default
15836 ダイアログでは,対応するラジオボタンは
15837 \family sans
15838 字下げ
15839 \family default
15840 に設定されています.
15841 \family sans
15842 垂直スペース
15843 \family default
15844 は,隙間を空けるために,文書に\SpecialChar LaTeX
15845 コマンドをつねに追加するようになっていますが,この文書クラスの場合には,そのような挙動が望まれないためです.
15846 \end_layout
15847
15848 \begin_layout Section
15849 Memoir
15850 \end_layout
15851
15852 \begin_layout Standard
15853
15854 \noun on
15855 Jürgen Spitzmüller
15856 \noun default
15857
15858 \end_layout
15859
15860 \begin_layout Subsection
15861 概観
15862 \end_layout
15863
15864 \begin_layout Standard
15865 Memoirは,非常に強力で,着実に改良が加えられている文書クラスであり,フィクションとノンフィクションの文学作品用に設計されています.その目的は,ユーザーに,
15866 文書の組版に関して最大限の裁量を得させることにあります.Memoirは,標準bookクラスに基づいていますが,articleクラスをエミュレートすることもできま
15867 す(以下参照).
15868 \end_layout
15869
15870 \begin_layout Standard
15871 Memoir開発者であるPeter Wilsonは,\SpecialChar LaTeX
15872 の世界での,多くの便利なパッケージの作者として知られていますが,それらのほとんどは,Memoirに統合されま
15873 した.このため,章のデザインや,目次や付録などのレイアウトを,はるかに簡単に行うことができます.しかしながら,\SpecialChar LyX
15874 は,これらすべての素晴らしい機能をネイティブでサポ
15875 ートしているわけではありません.これらのうちいくつかは,将来のリリースで追加されるかもしれませんが
15876 \begin_inset Foot
15877 status collapsed
15878
15879 \begin_layout Plain Layout
15880 もし提案があれば,ぜひ
15881 \begin_inset Flex URL
15882 status collapsed
15883
15884 \begin_layout Plain Layout
15885
15886 lyx-devel@lists.lyx.org
15887 \end_layout
15888
15889 \end_inset
15890
15891 までお送り下さい.
15892 \end_layout
15893
15894 \end_inset
15895
15896 ,\SpecialChar LyX
15897 のフレームワークが持つ制約のために,おそらく決して追加されることのないと考えられるものも多数あります.もちろん,ネイティブな\SpecialChar LaTeX
15898 コマンド(\SpecialChar TeX
15899 コード
15900 \begin_inset Foot
15901 status collapsed
15902
15903 \begin_layout Plain Layout
15904 【参考】詳細は,第
15905 \begin_inset CommandInset ref
15906 LatexCommand ref
15907 reference "sec:LaTeXコードを挿入する"
15908
15909 \end_inset
15910
15911 節参照.
15912 \end_layout
15913
15914 \end_inset
15915
15916 )の助けを借りれば,全機能を使用できます.この節では,\SpecialChar LyX
15917 がネイティブにサポートしている機能についてのみ,列挙するものとします.詳細な説明(および他の機能)について
15918 は,Memoirクラスの詳しい取扱説明書
15919 \begin_inset Foot
15920 status collapsed
15921
15922 \begin_layout Plain Layout
15923 【参考】
15924 \begin_inset Flex URL
15925 status collapsed
15926
15927 \begin_layout Plain Layout
15928
15929 CTAN:/macros/latex/memoir/memman.pdf
15930 \end_layout
15931
15932 \end_inset
15933
15934
15935 \end_layout
15936
15937 \end_inset
15938
15939 をご覧になることをお勧めします.この取扱説明書は,本クラスのユーザーの手引きであるのみに留まらず,良い組版に関する包括的な解説であり,それ自身が良い組版の傑出し
15940 た用例となっています.
15941 \end_layout
15942
15943 \begin_layout Subsection
15944 基本的な機能と制約
15945 \end_layout
15946
15947 \begin_layout Standard
15948 Memoirは,基本的に,標準bookクラスの全機能をサポートしています.しかしながら,以下に示すような若干の違いがあります.
15949 \end_layout
15950
15951 \begin_layout Description
15952 フォント寸法: Memoirでは,9・10・11・12・14・17と,より広い範囲のフォント寸法が使用可能です.
15953 \end_layout
15954
15955 \begin_layout Description
15956 ページ様式: Memoirパッケージとfancyhdrパッケージとのコマンドの衝突のため(両パッケージは同じ名前のコマンドを定義しているため,\SpecialChar LaTeX
15957 が混乱させられます
15958 ),fancyページ様式は使用できません.その代わり,Memoirには,多くの独自のページ様式が付属してきます(
15959 \family sans
15960 文書\SpecialChar menuseparator
15961 設定\SpecialChar menuseparator
15962 ページレイアウト
15963 \family default
15964 参照).これらを章題ページに使用したい場合には,コマンド
15965 \family typewriter
15966
15967 \backslash
15968 chapterstyle
15969 \family default
15970 を,本文またはプリアンブルに記述する必要があります(例えば,
15971 \family typewriter
15972
15973 \backslash
15974 chapterstyle{companion}
15975 \family default
15976 など).
15977 \end_layout
15978
15979 \begin_layout Description
15980 節分け: 標準クラスでは,節分けコマンド(章・節・小節等)は,非必須引数を一つ取ることができます.これを用いて,目次やヘッダ用に別のタイトルを指定することができ
15981 ます(たとえば,タイトルが長すぎる場合などに用います).\SpecialChar LyX
15982 では,章や節の始めで
15983 \family sans
15984 挿入\SpecialChar menuseparator
15985 短縮タイトル
15986 \family default
15987 を使えば,これを指定することができます.一方,Memoirでは,第2の非必須引数を取ることができ,目次用のタイトルとヘッダ用のタイトルの指定を分離しています.こ
15988 れを使えば,本文用と目次用とヘッダ用のタイトルの3種類を指定することができます.この機能を使用したい場合には,2つの非必須引数を入力して,最初のものに目次用,次
15989 のものにヘッダ用短縮タイトルを入れてください.
15990 \end_layout
15991
15992 \begin_layout Description
15993 目次・図一覧・表一覧: 標準クラス(および他の多くのクラス)では,目次と図一覧および表一覧は,自動的に新規頁に置かれます.Memoirは,これとは別の方針を採り
15994 ます.改頁を行いたい場合は,手動で頁区切りを入れなくてはなりません.
15995 \end_layout
15996
15997 \begin_layout Description
15998 タイトル頁: 理由は不明ですが,Memoirはタイトルページに丁付けを行います(標準クラスでは,タイトルページは「empty」様式).タイトル頁に丁付けを行いた
15999 くない場合には,プリアンブルに
16000 \family typewriter
16001
16002 \backslash
16003 aliaspagestyle{title}{empty}
16004 \family default
16005 と入力してください.
16006 \end_layout
16007
16008 \begin_layout Description
16009 Article: クラスオプション
16010 \emph on
16011 article
16012 \emph default
16013 を用いる(
16014 \family sans
16015 文書\SpecialChar menuseparator
16016 設定\SpecialChar menuseparator
16017 クラスオプション
16018 \family default
16019 で入力)と,article様式をエミュレートできます.すなわち,(脚注・図・表等の)カウンタは,章毎にリセットされず,次の章は頁を改めず(ただし,「本物の」ar
16020 ticleクラスとは違って,頁を改めることも可),部はbookクラスと同様に,独立の頁を使用します.
16021 \end_layout
16022
16023 \begin_layout Description
16024 Oldfontcommands: \SpecialChar LaTeX
16025 旧2.09版で使用されていた旧いフォントコマンド(
16026 \family typewriter
16027
16028 \backslash
16029 rm
16030 \family default
16031
16032 \family typewriter
16033
16034 \backslash
16035 it
16036 \family default
16037 など)は,Memoirにおいては,既定では使用することができません.Memoirがこれらのコマンドを検知すると,エラーを発して\SpecialChar LaTeX
16038 を停止させます.しかし,クラスオプ
16039 ション
16040 \emph on
16041 oldfontcommands
16042 \emph default
16043 を指定すると,これらのコマンドが容認され,エラーの代わりに警告を発するのみとなります(これによって,少なくとも\SpecialChar LaTeX
16044 は停止しなくなります).まだ,多くのパッケージと,
16045 就中多くのBib\SpecialChar TeX
16046 スタイルファイルが,これらのコマンドを使用しているので,我々はこのオプションを既定で使うこととしました.
16047 \end_layout
16048
16049 \begin_layout Subsection
16050 追加された機能
16051 \end_layout
16052
16053 \begin_layout Standard
16054 \SpecialChar LyX
16055 でサポートされる機能(今のところそれほど多くはありません)を簡単に説明しましょう.詳しくはMemoirの取扱説明書
16056 \begin_inset Foot
16057 status collapsed
16058
16059 \begin_layout Plain Layout
16060 \begin_inset Flex URL
16061 status collapsed
16062
16063 \begin_layout Plain Layout
16064
16065 CTAN:/macros/latex/memoir/memman.pdf
16066 \end_layout
16067
16068 \end_inset
16069
16070
16071 \end_layout
16072
16073 \end_inset
16074
16075 を見てください.
16076 \end_layout
16077
16078 \begin_layout Description
16079 概要: 概要が,追加された機能として扱われているのを不思議に思われるかもしれませんが,bookクラスとしては追加された機能なのです.通常bookクラスには概要は
16080 ないのですが,memoirにはあります.これは,どこでも何回でも自由に使うことができます.
16081 \end_layout
16082
16083 \begin_layout Description
16084 章要約: この古い組版様式はご覧になったことがあるかも知れません.章の内容が,見出しの下と目次に要約されているものです(たとえば,「我らが英雄がトロヤに到着する
16085 .彼は友人を失うが,新たな友人を得る.」など).章要約(chapterprecis)はこれを行います.したがって,章要約は章の下でのみ意味を持ちます.
16086 \end_layout
16087
16088 \begin_layout Description
16089 題辞: 題辞(epigraph)は章頭の,気の利いた標語やモットーです.題辞環境は,そのような標語を組む洗練された方法を提供します.標語本体(本文)とその著者(
16090 出典)は,短い線で区切られます.この環境には二つの引数(本文と出典)が必要なので,ここでも\SpecialChar LyX
16091 を少しだます必要があります.ここでは,2つの引数の間に,
16092 \emph on
16093 <標語>
16094 \family typewriter
16095 \emph default
16096 }{
16097 \family default
16098 \emph on
16099 <標語の著者>
16100 \emph default
16101 のように,(\SpecialChar TeX
16102 モードで)波括弧を入れなくてはなりません.
16103 \end_layout
16104
16105 \begin_layout Description
16106 詩題: Memoirには(複雑で隠喩的なものも含めて)詩を組版するための多くの機能がありますが,\SpecialChar LyX
16107 は,そのうちいくつかしかサポートしていません.詩題はその一つです
16108 .これは詩用の中央揃えタイトルで,目次にも表示されます(詩句が詩の標準環境です.Memoirには,詩句の拡張版もありますが,これらを使うためには\SpecialChar TeX
16109 コードを使用しな
16110 くてはなりません.これらの環境は通常の詩句環境の中に入れ子にしなくてはならないのですが,\SpecialChar LyX
16111 ではそれができないためです).
16112 \end_layout
16113
16114 \begin_layout Description
16115 詩題*: 目次に現れない他は詩題と同じです.
16116 \end_layout
16117
16118 \begin_layout Section
16119 Article (mwart)・book (mwbk)・report (mwrep)
16120 \begin_inset Argument status
16121 status collapsed
16122
16123 \begin_layout Plain Layout
16124 The 
16125 \family typewriter
16126 mw
16127 \family default
16128  Classes
16129 \end_layout
16130
16131 \end_inset
16132
16133
16134 \end_layout
16135
16136 \begin_layout Standard
16137
16138 \noun on
16139 Tomasz Luczak
16140 \noun default
16141
16142 \end_layout
16143
16144 \begin_layout Standard
16145 \SpecialChar LyX
16146 文書クラス
16147 \emph on
16148 article (mwart)
16149 \emph default
16150
16151 \emph on
16152 report (mwrep)・book
16153 \emph default
16154  
16155 \emph on
16156 (mwbk)
16157 \emph default
16158 は,それぞれ\SpecialChar LaTeX
16159 文書クラス
16160 \family typewriter
16161 mwart.cls
16162 \family default
16163
16164 \family typewriter
16165 mwrep.cls
16166 \family default
16167
16168 \family typewriter
16169 mwbk.cls
16170 \family default
16171 に対応しています.これらは,標準の
16172 \family typewriter
16173 article.cls
16174 \family default
16175
16176 \family typewriter
16177 report.cls
16178 \family default
16179
16180 \family typewriter
16181 book.cls
16182 \family default
16183 を代替するものであり,多くの点で,ポーランド語の組版慣習によく適合しています.
16184 \end_layout
16185
16186 \begin_layout Standard
16187 基本的な違いは,次の点です.
16188 \end_layout
16189
16190 \begin_layout Itemize
16191 付番のない見出し(
16192 \family sans
16193 節*
16194 \family default
16195 などの星付き)も目次に加えられます.
16196 \end_layout
16197
16198 \begin_layout Itemize
16199 以下のページスタイルの追加
16200 \end_layout
16201
16202 \begin_deeper
16203 \begin_layout Description
16204 uheadings 分離線付きヘッダ
16205 \end_layout
16206
16207 \begin_layout Description
16208 myheadings 
16209 \family typewriter
16210
16211 \backslash
16212 markright
16213 \family default
16214 コマンドおよび
16215 \family typewriter
16216
16217 \backslash
16218 markboth
16219 \family default
16220 コマンドで設定するカスタムヘッダ
16221 \end_layout
16222
16223 \begin_layout Description
16224 myuheadings 分離線付きカスタムヘッダ
16225 \end_layout
16226
16227 \begin_layout Description
16228 outer ページの外側にページ番号
16229 \end_layout
16230
16231 \end_deeper
16232 \begin_layout Itemize
16233 オプション
16234 \end_layout
16235
16236 \begin_deeper
16237 \begin_layout Description
16238 rmheadings セリフ体見出し — 既定
16239 \end_layout
16240
16241 \begin_layout Description
16242 sfheadings サンセリフ体見出し
16243 \end_layout
16244
16245 \begin_layout Description
16246 authortitle タイトルページは,著者名・タイトルの順で配置 — 既定
16247 \end_layout
16248
16249 \begin_layout Description
16250 titleauthor タイトルページは,タイトル・著者名の順で配置
16251 \end_layout
16252
16253 \begin_layout Description
16254 withmarginpar ページ上に余白のための場所を確保
16255 \end_layout
16256
16257 \end_deeper
16258 \begin_layout Section
16259 Paper
16260 \end_layout
16261
16262 \begin_layout Standard
16263
16264 \family sans
16265 paper
16266 \family default
16267 文書クラスは標準
16268 \family sans
16269 article
16270 \family default
16271 クラスの代替となるものです.これは
16272 \family sans
16273 同様の
16274 \family default
16275 機能を提供しますが,サンセリフ体の節見出し・ヘッディング等を持つこちらのレイアウトの方が気に入るかも知れません.
16276 \end_layout
16277
16278 \begin_layout Section
16279 Rev\SpecialChar TeX
16280 4
16281 \end_layout
16282
16283 \begin_layout Standard
16284 by 
16285 \noun on
16286 Amir Karger
16287 \end_layout
16288
16289 \begin_layout Standard
16290 \begin_inset VSpace bigskip
16291 \end_inset
16292
16293
16294 \end_layout
16295
16296 \begin_layout Standard
16297 \noindent
16298
16299 \family sans
16300 Revtex
16301 \begin_inset space ~
16302 \end_inset
16303
16304 4
16305 \family default
16306 テキストクラスは,アメリカ物理学会のRev\SpecialChar TeX
16307  4.0(1999年5月の
16308 \begin_inset Formula $\beta$
16309 \end_inset
16310
16311 リリース)クラスで動作します.
16312 \end_layout
16313
16314 \begin_layout Standard
16315 \SpecialChar LyX
16316 には,Rev\SpecialChar TeX
16317  3.1で動作する
16318 \family sans
16319 Revtex
16320 \family default
16321 テキストクラスもあります.しかしながら,第3.1版は\SpecialChar LaTeX
16322  2.09で動作するものであり,基本的に時代遅れなものになっています.\SpecialChar LyX
16323 は\SpecialChar LaTeX2e
16324 を必要とすることから,第3.1版は\SpecialChar LyX
16325 とうまく
16326 協調しないことを意味しますが,動作するようには調整してあります.Rev\SpecialChar TeX
16327  4.0は,\SpecialChar LaTeX2e
16328 で素直に動作するようにデザインされているので,\SpecialChar LyX
16329
16330 \family sans
16331 Rev\SpecialChar TeX
16332
16333 \begin_inset space ~
16334 \end_inset
16335
16336 4
16337 \family default
16338 テキストクラスの組で使用するのは,たいへん簡単です.
16339 \end_layout
16340
16341 \begin_layout Standard
16342 この取扱説明書は,Rev\SpecialChar TeX
16343  4.0の説明書の
16344 \emph on
16345 補完
16346 \emph default
16347 として使用されることを前提としています.したがって,ここではRev\SpecialChar TeX
16348 固有マクロの説明はせず,必要な場合にはプリアンブルに何と書けば良いかを知っているものとして説明
16349 します.
16350 \end_layout
16351
16352 \begin_layout Subsection
16353 導入
16354 \end_layout
16355
16356 \begin_layout Standard
16357 Rev\SpecialChar TeX
16358  4パッケージのREADMEファイルにあるとおり,ともかくRev\SpecialChar TeX
16359  4を導入しなくてはなりません.パッケージは,The Rev\SpecialChar TeX
16360  4 Web
16361  Site 
16362 \begin_inset Flex URL
16363 status collapsed
16364
16365 \begin_layout Plain Layout
16366
16367 http://publish.aps.org/revtex4/
16368 \end_layout
16369
16370 \end_inset
16371
16372 から入手することができます.これを\SpecialChar LaTeX
16373 が検出することのできる場所に導入してください.それから,適当に選んだディレクトリ(もといクラスファイルを導入したのとは異なるデ
16374 ィレクトリ)で簡単なRev\SpecialChar TeX
16375  4文書を \SpecialChar LaTeX
16376 でコンパイルできるかどうか確認してください.この後,\SpecialChar LyX
16377 を環境構成すると,クラスファイルを検出し,Rev\SpecialChar TeX
16378 4テキストクラスが使用
16379 できるようになるはずです.
16380 \end_layout
16381
16382 \begin_layout Standard
16383 使い始めるには,
16384 \family typewriter
16385 tex2lyx
16386 \family default
16387 を使ってRev\SpecialChar TeX
16388  4文書を読み込むか,またはひな型ディレクトリにある
16389 \family sans
16390 Revtex
16391 \begin_inset space ~
16392 \end_inset
16393
16394 4
16395 \family default
16396 のひな型を使うのが,おそらく一番簡単な方法でしょう.
16397 \end_layout
16398
16399 \begin_layout Subsection
16400 プリアンブルに関すること
16401 \end_layout
16402
16403 \begin_layout Standard
16404
16405 \family typewriter
16406
16407 \backslash
16408 documentclass
16409 \family default
16410 に与える「preprint」や「aps」のような非必須引数は,他のクラス同様,
16411 \family sans
16412 文書\SpecialChar menuseparator
16413 設定\SpecialChar menuseparator
16414 文書クラス
16415 \family default
16416
16417 \family sans
16418 クラスオプション
16419 \family default
16420 フィールドに入れます.Rev\SpecialChar TeX
16421 では,少なくとも一つの非必須引数が必要なことに注意してください.
16422 \end_layout
16423
16424 \begin_layout Standard
16425
16426 \family typewriter
16427
16428 \backslash
16429 draft
16430 \family default
16431 など他のプリアンブルは,他のクラス同様,
16432 \family sans
16433 文書\SpecialChar menuseparator
16434 設定\SpecialChar menuseparator
16435 \SpecialChar LaTeX
16436 プリアンブル
16437 \family default
16438 に入れてください.
16439 \end_layout
16440
16441 \begin_layout Subsection
16442 レイアウト
16443 \end_layout
16444
16445 \begin_layout Standard
16446 レイアウトは,基本的にRev\SpecialChar TeX
16447 4.0のコマンドに対応しています.たとえば,Emailレイアウトは,
16448 \family typewriter
16449
16450 \backslash
16451 email{}
16452 \family default
16453 に対応しています.(少なくともRev\SpecialChar TeX
16454  4.0 Beta現在では)
16455 \family sans
16456 住所
16457 \family default
16458
16459 \family sans
16460 所属
16461 \family default
16462 はまったく同じものなので,両方を使う必要はありません
16463 \begin_inset Foot
16464 status collapsed
16465
16466 \begin_layout Plain Layout
16467 ついでながら,
16468 \family typewriter
16469 tex2lyx
16470 \family default
16471 は両方とも対応しているので,
16472 \family typewriter
16473
16474 \backslash
16475 address
16476 \family default
16477
16478 \family typewriter
16479
16480 \backslash
16481 affiliation
16482 \family default
16483 のどちらも翻訳することができます.
16484 \end_layout
16485
16486 \end_inset
16487
16488
16489 \end_layout
16490
16491 \begin_layout Subsection
16492 重要な注意
16493 \end_layout
16494
16495 \begin_layout Standard
16496 Rev\SpecialChar TeX
16497  4には,バグを引き起こしがちなために,気をつけなくてはならない特殊な面がいくつかあるため,\SpecialChar LyX
16498 ではさらに気をつけなくてはなりません.
16499 \end_layout
16500
16501 \begin_layout Standard
16502 Rev\SpecialChar TeX
16503 では,
16504 \family typewriter
16505
16506 \backslash
16507 thanks
16508 \family default
16509 コマンドは,
16510 \family typewriter
16511
16512 \backslash
16513 author
16514 \family default
16515 コマンドの
16516 \emph on
16517 外側
16518 \emph default
16519 に来なくてはなりません.\SpecialChar LyX
16520 では,独立した
16521 \family sans
16522 感謝
16523 \family default
16524 レイアウトがこの働きをします.直接
16525 \family sans
16526 ,著者
16527 \family default
16528 レイアウトに脚注を付けてしまうと,おかしなことが起こる可能性があります.詳細については,Rev\SpecialChar TeX
16529  4の取扱説明書をご覧ください.
16530 \end_layout
16531
16532 \begin_layout Standard
16533 また,
16534 \family sans
16535 著者電子メール
16536 \family default
16537
16538 \family sans
16539 著者URL・感謝(thanks)
16540 \family default
16541 レイアウトは,
16542 \family sans
16543 著者
16544 \family default
16545 レイアウトと
16546 \family sans
16547 住所(
16548 \family default
16549 または同等の
16550 \family sans
16551 所属
16552 \family default
16553 )レイアウトの間に置かなければなりません.
16554 \family sans
16555 感謝(thanks)
16556 \family default
16557
16558 \family sans
16559 住所
16560 \family default
16561 の後に置いてしまうと,\SpecialChar LaTeX
16562 はコンパイルに失敗します.
16563 \end_layout
16564
16565 \begin_layout Subsection
16566 問題点
16567 \end_layout
16568
16569 \begin_layout Standard
16570 このレイアウトの主な問題点は,電子メールやタイトルのようなレイアウトに非必須引数を用いることができないことです(これはこのレイアウトだけの問題ではありません.例
16571 えば,節レイアウトも非必須引数を使用することができません).これは,たとえばページヘッダにヘッダ用タイトルを設定したい場合などには,ファイルを\SpecialChar LaTeX
16572 ファイルに変換した
16573 後に(これは最終的にAPSに原稿を送る際には行わなくてはなりません),テキストエディタを使って\SpecialChar LaTeX
16574 ファイルを編集し,非必須引数を書き加えなくてはならないということで
16575 す.これらのレイアウトがないと,
16576 \family typewriter
16577
16578 \backslash
16579 altaffiliation
16580 \family default
16581 (またそれと同等な
16582 \family typewriter
16583
16584 \backslash
16585 altaddress
16586 \family default
16587 )は使えませんので,対応するレイアウトは存在せず,手動で書き加える必要があります
16588 \begin_inset Foot
16589 status collapsed
16590
16591 \begin_layout Plain Layout
16592
16593 \emph on
16594 JMarcからの註:
16595 \emph default
16596  実は,\SpecialChar LyX
16597  1.3.0 では非必須引数を一部サポートしているのですが,このレイアウトは,まだこの機能を使うようにはアップデートされていないのです.
16598 \end_layout
16599
16600 \end_inset
16601
16602
16603 \end_layout
16604
16605 \begin_layout Section
16606 Springer学術誌(
16607 \family sans
16608 svjour)
16609 \end_layout
16610
16611 \begin_layout Standard
16612
16613 \noun on
16614 Martin Vermeer
16615 \noun default
16616
16617 \end_layout
16618
16619 \begin_layout Subsection
16620 説明
16621 \end_layout
16622
16623 \begin_layout Standard
16624 これは,Springer Verlag社発行のいくつかの学術誌で使用されている書式のレイアウトファイルです.
16625 \begin_inset Flex URL
16626 status collapsed
16627
16628 \begin_layout Plain Layout
16629
16630 http://www.springer.de/author/tex/help-journals.html
16631 \end_layout
16632
16633 \end_inset
16634
16635 に必要なクラスファイル(\SpecialChar LaTeX2e
16636 用になりました)とそれに対応する学術誌の一覧があります.このレイアウトはモジュール式になっています.つまり,全ジャーナル共通部分は
16637 \family typewriter
16638 svjour.inc
16639 \family default
16640 に実装されており,各誌個別のレイアウトファイル(たとえばJournal of Geodesy用の
16641 \family typewriter
16642 svjog.layout
16643 \family default
16644 など)から取り込むことができます.
16645 \end_layout
16646
16647 \begin_layout Standard
16648 このことは,上記の学術誌一覧にある他のSpringer誌のサポートを実装するためには,
16649 \family typewriter
16650 svjog.layout
16651 \family default
16652 に書かれている指示に従って,自作の
16653 \family typewriter
16654 sv
16655 \family default
16656 <学術誌名>
16657 \family typewriter
16658 .layout
16659 \family default
16660 を書くだけで良いことを意味します.
16661 \end_layout
16662
16663 \begin_layout Standard
16664 このレイアウトは,Journal of Geodesyに対してのみ,充分な試験が為されています.
16665 \family typewriter
16666 svjour
16667 \family default
16668
16669 \family typewriter
16670 svjog
16671 \family default
16672 は,標準\SpecialChar LyX
16673 頒布版に収録済みです.関連するクラスファイルを(Springerからダウンロードして)適切なディレクトリに導入し,\SpecialChar LaTeX
16674 を再設定した後(teTeXの場合は,必
16675 要に応じてroot権限で
16676 \family typewriter
16677 texhash
16678 \family default
16679 を実行します),\SpecialChar LyX
16680 を環境構成すれば,動作するはずです.
16681 \end_layout
16682
16683 \begin_layout Subsection
16684 新スタイル
16685 \end_layout
16686
16687 \begin_layout Standard
16688 多くの定理環境 — 
16689 \family sans
16690 主張
16691 \family default
16692
16693 \family sans
16694 推論
16695 \family default
16696 ・\SpecialChar ldots
16697
16698 \family sans
16699 定理
16700 \family default
16701
16702 \end_layout
16703
16704 \begin_layout Standard
16705
16706 \family sans
16707 ヘッドノート
16708 \family default
16709
16710 \family sans
16711 献呈
16712 \family default
16713
16714 \family sans
16715 サブタイトル・ヘッダ用\SpecialChar LaTeX
16716 タイトル・ヘッダ用著者名・所属機関・メール・オフプリント・キーワード・謝辞(acknowledgements)・謝辞(acknowledg
16717 ement)
16718 \family default
16719 .詳しくは Springerのクラスファイルの説明書を読んでください.
16720 \end_layout
16721
16722 \begin_layout Subsection
16723 サポートしているジャーナル
16724 \end_layout
16725
16726 \begin_layout Itemize
16727
16728 \emph on
16729 Journal of Geodesy
16730 \emph default
16731
16732 \family typewriter
16733 svjog.layout
16734 \family default
16735  — Martin Vermeer
16736 \end_layout
16737
16738 \begin_layout Itemize
16739
16740 \emph on
16741 Probability Theory and Related Fields
16742 \emph default
16743
16744 \family typewriter
16745 svprobth.layout
16746 \family default
16747  — Jean-Marc Lasgouttes
16748 \end_layout
16749
16750 \begin_layout Standard
16751 あなた自身のレイアウトファイルをつくってください.難しくはありません.
16752 \end_layout
16753
16754 \begin_layout Subsection
16755 Credits
16756 \end_layout
16757
16758 \begin_layout Standard
16759 これらのファイルは,以前の 
16760 \family typewriter
16761 ejour2.layout
16762 \family default
16763 をもとにしています.
16764 \family typewriter
16765 ejour2.layout
16766 \family default
16767 は Springerの\SpecialChar LaTeX
16768  2.09用のスタイルファイルを使った素人細工のようなレイアウトファイルです.これらのファイルはすでにありません.Jean-Marc
16769  Lasgouttesのおかげで \SpecialChar LyX
16770 のレイアウトファイルのメカニズムをよりよく理解することができました.
16771 \end_layout
16772
16773 \begin_layout Subsection
16774 バグ
16775 \end_layout
16776
16777 \begin_layout Standard
16778 多分あります.以前の 
16779 \family typewriter
16780 ejour2
16781 \family default
16782 よりは少なくなっているとは思いますが.
16783 \end_layout
16784
16785 \begin_layout Standard
16786 制限事項:定理環境の環境の番号は表示されません.#が表示されるだけです.
16787 \end_layout
16788
16789 \begin_layout Section
16790 Slides (別名
16791 \noun on
16792 Sli\SpecialChar TeX
16793
16794 \noun default
16795 )
16796 \begin_inset Foot
16797 status collapsed
16798
16799 \begin_layout Plain Layout
16800 (訳註)この節の内容は,全般的に古くなっています.
16801 \end_layout
16802
16803 \end_inset
16804
16805
16806 \begin_inset CommandInset label
16807 LatexCommand label
16808 name "sec:slitex"
16809
16810 \end_inset
16811
16812
16813 \end_layout
16814
16815 \begin_layout Standard
16816
16817 \noun on
16818 John Weiss
16819 \noun default
16820
16821 \end_layout
16822
16823 \begin_layout Subsection
16824 はじめに
16825 \end_layout
16826
16827 \begin_layout Standard
16828 本節では,オーバーへッドプロジェクタ用のスライドをつくるのに,\SpecialChar LyX
16829 をどのように使えばよいかを説明します.これを行う文書クラスには,既定のslideクラスと
16830 \family sans
16831 Foil\SpecialChar TeX
16832
16833 \family default
16834 スライドクラスの2つがあります.本節は前者について説明を行います.
16835 \end_layout
16836
16837 \begin_layout Standard
16838 誤解のないように,正しく明確に,もう一度言っておきます.
16839 \end_layout
16840
16841 \begin_layout Standard
16842 \begin_inset VSpace bigskip
16843 \end_inset
16844
16845
16846 \end_layout
16847
16848 \begin_layout Standard
16849 \align center
16850
16851 \size large
16852 本節は文書クラス
16853 \begin_inset Quotes eld
16854 \end_inset
16855
16856
16857 \family sans
16858 transparencies (slides)
16859 \family default
16860
16861 \begin_inset Quotes erd
16862 \end_inset
16863
16864
16865 \emph on
16866 のみ
16867 \emph default
16868 を説明しています.
16869 \end_layout
16870
16871 \begin_layout Standard
16872 \begin_inset VSpace bigskip
16873 \end_inset
16874
16875
16876 \end_layout
16877
16878 \begin_layout Standard
16879
16880 \family sans
16881 「slides (Foil\SpecialChar TeX
16882 )
16883 \family default
16884 」の説明をお探しならば,第
16885 \begin_inset CommandInset ref
16886 LatexCommand ref
16887 reference "sec:foiltex"
16888
16889 \end_inset
16890
16891 節をご覧ください.
16892 \family sans
16893 foils
16894 \family default
16895 クラス「
16896 \family sans
16897 slides (Foil\SpecialChar TeX
16898 )
16899 \family default
16900 」は,実際,本節で説明している既定
16901 \family sans
16902 slides
16903 \family default
16904 クラスよりも良いようです
16905 \begin_inset Foot
16906 status collapsed
16907
16908 \begin_layout Plain Layout
16909 \SpecialChar ldots
16910
16911 \family sans
16912 Foil\SpecialChar TeX
16913
16914 \family default
16915 の支持者からは聞いています.けれども私は使ったことがないので,本当かどうか確かめようがありません.
16916 \end_layout
16917
16918 \end_inset
16919
16920
16921 \end_layout
16922
16923 \begin_layout Standard
16924 このクラスは,旧SLI\SpecialChar TeX
16925 パッケージを\SpecialChar LaTeX2e
16926 用に改良したものです.\SpecialChar LaTeX2e
16927 頒布版すべてが,このクラス(以下では単に「
16928 \family sans
16929 slides
16930 \family default
16931 」と述べることにします)を含んでいるので,あなたもお持ちのはずです.前述の
16932 \family sans
16933 foils
16934 \family default
16935 のように,同じくオーバーへッドプロジェクタ用のスライドを生成しながら,このクラスよりも良い仕事をするクラスもあります.しかしながら,オーバーレイを生成するなど,
16936 他のクラスにはできないが
16937 \family sans
16938 slides
16939 \family default
16940 ならばできることもあります.詳しくは以下をお読みください.
16941 \end_layout
16942
16943 \begin_layout Subsection
16944 使い始めるには
16945 \begin_inset CommandInset label
16946 LatexCommand label
16947 name "sec:slidesetup"
16948
16949 \end_inset
16950
16951
16952 \end_layout
16953
16954 \begin_layout Standard
16955 当然ながら,この文書クラスを使用するには,
16956 \family sans
16957 文書\SpecialChar menuseparator
16958 設定
16959 \family default
16960 ダイアログのクラスリストから「
16961 \family sans
16962 transparencies (slides)
16963 \family default
16964 」を選択しなくてはなりません.このクラスについて,以下のように,特に知っておいた方が良いことがいくつかあります.
16965 \end_layout
16966
16967 \begin_layout Itemize
16968
16969 \family sans
16970 用紙方向
16971 \family default
16972
16973 \family sans
16974 二段組文書
16975 \family default
16976 の各オプションは,あえて変更する必要はありません.これらのオプションは,
16977 \family sans
16978 slides
16979 \family default
16980 クラスではサポートされていないので,効果がありません.
16981 \end_layout
16982
16983 \begin_layout Itemize
16984
16985 \family sans
16986 ヘディング様式
16987 \family default
16988 オプションは,このクラスでは少し異なった振る舞いをします.各選択肢とその機能は,以下の通りです.
16989 \end_layout
16990
16991 \begin_deeper
16992 \begin_layout Description
16993 プレーン(plain) 最終出力の右下隅にページ番号が付きます.
16994 \end_layout
16995
16996 \begin_layout Description
16997 設定(headings)
16998 \family sans
16999  プレーン(plain)
17000 \family default
17001 と同様ですが,それ以外にあなたが指定したタイムマーカーをすべて出力します.これが既定値です.
17002 \end_layout
17003
17004 \begin_layout Description
17005 空 最終出力には,ページ番号もタイムマーカーも位置揃えマーカーも出力されません.
17006 \end_layout
17007
17008 \end_deeper
17009 \begin_layout Itemize
17010
17011 \family sans
17012 slides
17013 \family default
17014 クラスには,もう一つ
17015 \family typewriter
17016 clock
17017 \family default
17018 というオプションがあります.これを使用するには,
17019 \family sans
17020 クラスオプション
17021 \family default
17022 に「
17023 \family typewriter
17024 clock
17025 \family default
17026 」と入力してください.
17027 \end_layout
17028
17029 \begin_deeper
17030 \begin_layout Standard
17031 このオプションを使うと,
17032 \family sans
17033 注釈
17034 \family default
17035 にタイムマーカーを加えることができます.詳細は,第
17036 \begin_inset CommandInset ref
17037 LatexCommand ref
17038 reference "sec:スライド注釈"
17039
17040 \end_inset
17041
17042 節をご覧ください.
17043 \end_layout
17044
17045 \end_deeper
17046 \begin_layout Standard
17047
17048 \family sans
17049 slides
17050 \family default
17051 クラスを用いた文書を自動的にセットアップするには,ひな型ファイル「
17052 \family typewriter
17053 slides.lyx
17054 \family default
17055 」を使用することもできます(新規ファイルを開く際に
17056 \family sans
17057 ファイル\SpecialChar menuseparator
17058 新規(ひな型使用)
17059 \family default
17060 を使用してください).ひな型ファイルには,このクラスが使用する特別な段落環境の用例も含まれています.これらについては,以下で説明します.
17061 \end_layout
17062
17063 \begin_layout Subsection
17064 段落環境
17065 \end_layout
17066
17067 \begin_layout Subsubsection
17068
17069 \family sans
17070 サポートされている環境
17071 \end_layout
17072
17073 \begin_layout Standard
17074 新しく
17075 \family sans
17076 slides
17077 \family default
17078 文書を開いたときにまず気付くのは,フォント寸法とフォント族の違いでしょう.ここでは,
17079 \family sans
17080 サンセリフ体
17081 \family default
17082 フォントの
17083 \family sans
17084 極大
17085 \family default
17086 寸法が用いられており,出力でもこのフォントが使用されます.これは,現在スライドを作成中であることの「目印」だと考えてください.出力スライドは大きなフォントを使用
17087 するため,書ける場所は少なくなります.もちろん,既定の大きな画面フォントはWYSIWYGではなく,スライドであることの目印に過ぎません.
17088 \end_layout
17089
17090 \begin_layout Standard
17091 次に気付くのは,(ツールバー左端の)段落環境プルダウンボックスが変わっていることでしょう.通常見かける環境の多くがなくなって,代わりに5つの新しい環境が入ってい
17092 ます.これは,
17093 \family sans
17094 slides
17095 \family default
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 キャプション
17151 \end_layout
17152
17153 \begin_layout Itemize
17154
17155 \family sans
17156 \SpecialChar LyX
17157 コード
17158 \end_layout
17159
17160 \begin_layout Itemize
17161
17162 \family sans
17163 コメント
17164 \end_layout
17165
17166 \begin_layout Standard
17167 これ以外の標準的な環境,例えば節見出し用の環境などは
17168 \family sans
17169 slides
17170 \family default
17171 クラスでは使えません.
17172 \end_layout
17173
17174 \begin_layout Standard
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 Itemize
17203
17204 \family sans
17205 可視文
17206 \end_layout
17207
17208 \begin_layout Standard
17209 これら5つの環境は,\SpecialChar LyX
17210 の「機能」のために使い方に癖があります.ご存じのように,\SpecialChar LyX
17211 では,空の段落環境に他の環境を入れることができません.それ自体は素晴らしいデザインな
17212 のですが,これは,スライドを平文以外では書き始めることができないことを意味します.これを取り扱うためには,ちょっとした「\SpecialChar LaTeX
17213 マジック」が必要になります.
17214 \end_layout
17215
17216 \begin_layout Subsubsection
17217 新環境の癖
17218 \begin_inset CommandInset label
17219 LatexCommand label
17220 name "sec:スライドの癖"
17221
17222 \end_inset
17223
17224
17225 \end_layout
17226
17227 \begin_layout Standard
17228 5つの新しい環境にはすべて,\SpecialChar LyX
17229 現行版の制約に由来する癖があります.いま述べたように,\SpecialChar LyX
17230 では,環境を別の環境で開始することが禁止されています.これを回避するために,
17231 \family sans
17232 スライド
17233 \family default
17234 環境は『
17235 \emph on
17236 ユーザーの手引き
17237 \emph default
17238 』で述べられているような段落環境ではなくなっています.
17239 \end_layout
17240
17241 \begin_layout Standard
17242
17243 \family sans
17244 スライド
17245 \family default
17246
17247 \family sans
17248 オーバーレイ
17249 \family default
17250
17251 \family sans
17252 注釈
17253 \family default
17254 は「疑似環境」だとお考えください.これらは節見出しや「
17255 \family sans
17256 キャプション
17257 \family default
17258 」のように見えますが,実際には(必要なら前段落を終了して)新しい段落環境を開始します.同様に,
17259 \family sans
17260 不可視文
17261 \family default
17262
17263 \family sans
17264 可視文
17265 \family default
17266 も「疑似コマンド」とお考えください.この2つは特定のアクションを行います.
17267 \end_layout
17268
17269 \begin_layout Standard
17270
17271 \family sans
17272 スライド
17273 \family default
17274
17275 \family sans
17276 オーバーレイ
17277 \family default
17278
17279 \family sans
17280 注釈
17281 \family default
17282
17283 \family sans
17284 不可視文
17285 \family default
17286
17287 \family sans
17288 可視文
17289 \family default
17290 の5環境に共通しているのは,長めのラベルを持つことです.このラベルに続く文章—通常は段落環境の内容になるはずですが—は,
17291 \family sans
17292 スライド
17293 \family default
17294
17295 \family sans
17296 オーバーレイ
17297 \family default
17298
17299 \family sans
17300 注釈
17301 \family default
17302
17303 \family sans
17304 不可視文
17305 \family default
17306
17307 \family sans
17308 可視文
17309 \family default
17310 では,まったく意味がなく,\SpecialChar LyX
17311 はこの部分を完全に無視します.これらの5つの環境の内容は,完全に空のままにしておいて構いません.
17312 \end_layout
17313
17314 \begin_layout Standard
17315 長めのラベルの後に文章を入れる
17316 \emph on
17317 必要は
17318 \emph default
17319 まったく
17320 \emph on
17321 ない
17322 \emph default
17323 とはいえ,何か書いておきたいこともあるかもしれません.たとえば,スライドの内容に関する短い説明などがそうでしょう.この場合,いつもどおり説明用のコメントを入力し
17324
17325 \family sans
17326 Return
17327 \family default
17328 を押してください.
17329 \end_layout
17330
17331 \begin_layout Standard
17332 一方,説明文を入れたくない場合には,\SpecialChar LyX
17333 の制約に直面します.自然が真空を憎むように,\SpecialChar LyX
17334 では,古い環境に何かを置くまでは,その中に新しい環境を入れることができません.そ
17335 こで以下のようにしてください.
17336 \end_layout
17337
17338 \begin_layout Itemize
17339 新しい
17340 \family sans
17341 スライド
17342 \family default
17343
17344 \family sans
17345 オーバーレイ
17346 \family default
17347
17348 \family sans
17349 注釈
17350 \family default
17351
17352 \family sans
17353 不可視文
17354 \family default
17355
17356 \family sans
17357 可視文
17358 \family default
17359
17360 \emph on
17361 中に入れる
17362 \emph default
17363 文章を入力してください.
17364 \end_layout
17365
17366 \begin_layout Itemize
17367 段落の先頭に移動します.
17368 \end_layout
17369
17370 \begin_layout Itemize
17371 次に
17372 \family sans
17373 Return
17374 \family default
17375 を押します.
17376 \end_layout
17377
17378 \begin_layout Itemize
17379 最後に,この新しい空の段落を
17380 \family sans
17381 スライド
17382 \family default
17383
17384 \family sans
17385 オーバーレイ
17386 \family default
17387
17388 \family sans
17389 注釈
17390 \family default
17391
17392 \family sans
17393 不可視文
17394 \family default
17395
17396 \family sans
17397 可視文
17398 \family default
17399 に変更します.
17400 \end_layout
17401
17402 \begin_layout Standard
17403 将来の\SpecialChar LyX
17404 では,このような癖が解決されることを祈っています\SpecialChar ldots
17405
17406 \begin_inset Foot
17407 status collapsed
17408
17409 \begin_layout Plain Layout
17410 (訳註)ここの記述は古くなっています.
17411 \end_layout
17412
17413 \end_inset
17414
17415
17416 \end_layout
17417
17418 \begin_layout Subsection
17419
17420 \family sans
17421 スライド
17422 \family default
17423
17424 \family sans
17425 オーバーレイ
17426 \family default
17427
17428 \family sans
17429 注釈で発表用のスライドを作る
17430 \end_layout
17431
17432 \begin_layout Subsubsection
17433
17434 \family sans
17435 スライド
17436 \family default
17437 環境を使う
17438 \end_layout
17439
17440 \begin_layout Standard
17441 もし本節が,実際のプレゼンテーションの作り方を教えてくれるものと期待されているとすれば,大いにがっかりされるかもしれません.当然ながら,プレゼンテーション用の資
17442 料を準備するうえで
17443 \family sans
17444 slides
17445 \family default
17446 クラスを役立てる方法を詳しく説明はしますが,内容をどうするかはあなた次第です(そしてこれも\SpecialChar LyX
17447 の哲学です).
17448 \end_layout
17449
17450 \begin_layout Standard
17451
17452 \family sans
17453 スライド
17454 \family default
17455 環境を選択すれば(方法は第
17456 \begin_inset CommandInset ref
17457 LatexCommand ref
17458 reference "sec:スライドの癖"
17459
17460 \end_inset
17461
17462 節参照のこと),\SpecialChar LyX
17463 は新規スライドを開始します.この環境ないし「疑似環境」のラベルは,鮮やかな青で「新規スライド:」と表示されます.この環境の後のテキスト環境や段落
17464 環境は,すべて新規スライドに入ります.簡単ですよね.
17465 \end_layout
17466
17467 \begin_layout Standard
17468 Slidesは,おそらく\SpecialChar LyX
17469 の中で強制的に改頁をしなくてはならない唯一のクラスです(これは
17470 \family sans
17471 段落レイアウト
17472 \family default
17473 ダイアログで指定できます).実際,一つのスライドの内容を入力し終わったら,改頁したくなるはずです.仮に一つのスライドに物理的に入りきらない文章を入力したとすると
17474 ,入りきらない部分は,次の新規スライドにまわされます.しかしながら,入りきらない部分のスライドにはページ番号が付きませんので,こうするのはお勧めしません.その上
17475 ,一枚に収まらないスライドでは,
17476 \family sans
17477 オーバーレイ
17478 \family default
17479 を使用すると干渉する恐れがあります.
17480 \end_layout
17481
17482 \begin_layout Standard
17483
17484 \family sans
17485 オーバーレイ
17486 \family default
17487 環境と
17488 \family sans
17489 注釈
17490 \family default
17491 環境も,
17492 \family sans
17493 スライド
17494 \family default
17495 環境と同様の動作を示します.これらは,青の代わりに鮮やかなマゼンタで,それぞれ「
17496 \noun on
17497 新規オーバーレイ
17498 \noun default
17499 :」ないし「
17500 \noun on
17501 新規注釈:
17502 \noun default
17503 」というラベルを表示します.ラベルのフォントも,3つの環境でそれぞれ異なるものが使用されます.
17504 \end_layout
17505
17506 \begin_layout Standard
17507
17508 \family sans
17509 スライド
17510 \family default
17511 と同様に,
17512 \family sans
17513 オーバーレイ
17514 \family default
17515
17516 \family sans
17517 注釈
17518 \family default
17519 の内容が,一つのスライドないしページに物理的に収まりきらない場合には,余分は新規スライドに回されます.この場合には,
17520 \family sans
17521 注釈
17522 \family default
17523
17524 \family sans
17525 オーバーレイ
17526 \family default
17527 の本来の目的が達せられなくなりますので,ここでもこのような状態は避けるべきでしょう.
17528 \end_layout
17529
17530 \begin_layout Subsubsection
17531
17532 \family sans
17533 スライドでオーバーレイを使用する
17534 \end_layout
17535
17536 \begin_layout Standard
17537
17538 \family sans
17539 オーバーレイ
17540 \family default
17541 の背後にある考え方は,別のスライドの上にスライドを載せようとするものです.メインの
17542 \family sans
17543 スライド
17544 \family default
17545 に図があるとき,関連した文章を表示する前に,図について議論を進めたいと思うことがあるかもしれません.これを行うひとつの方法は,
17546 \family sans
17547 スライド
17548 \family default
17549 で後に表示したい部分に黒い紙の蓋を貼り付けてしまうことですが,この方法は,たとえばグラフを他のグラフに重ねたい場合などには,うまく行きません.この場合には,二つ
17550 のグラフを揃えるために,重ねる二つのスライドを,喋りながら手探りで揃えなくてはなりません.これらのような場合には,
17551 \family sans
17552 オーバーレイ
17553 \family default
17554 環境を使えば,もっと楽になります.
17555 \end_layout
17556
17557 \begin_layout Standard
17558
17559 \family sans
17560 オーバーレイ
17561 \family default
17562 は,「親」
17563 \family sans
17564 スライド
17565 \family default
17566 のページ番号を引継ぎ,その後に「
17567 \family typewriter
17568 -a
17569 \family default
17570 」を付け加えます
17571 \begin_inset Foot
17572 status collapsed
17573
17574 \begin_layout Plain Layout
17575 想像できるように,複数のオーバーレイがあれば,「
17576 \family typewriter
17577 -a
17578 \family default
17579 」「
17580 \family typewriter
17581 -b
17582 \family default
17583 」「
17584 \family typewriter
17585 -c
17586 \family default
17587 」などが親スライドのページ番号に付け加えられます.
17588 \end_layout
17589
17590 \end_inset
17591
17592 .当然のことながら,
17593 \family sans
17594 スライド
17595 \family default
17596
17597 \family sans
17598 オーバーレイ
17599 \family default
17600 の内容は両方とも,1枚のスライドに物理的に収まるようになっていなければなりません.
17601 \family sans
17602 オーバーレイ
17603 \family default
17604
17605 \family sans
17606 スライド
17607 \family default
17608 の「一部」であると考えるのがよいでしょう.\SpecialChar LyX
17609 では,
17610 \family sans
17611 オーバーレイ
17612 \family default
17613 のラベルを
17614 \family sans
17615 スライド
17616 \family default
17617 のラベルよりも下げることで,このことを視覚的に表しています.また,印刷可能な出力を生成すると,
17618 \family sans
17619 オーバーレイ
17620 \family default
17621 と親
17622 \family sans
17623 スライド
17624 \family default
17625 両方の四隅に,揃えマーカーがあることに気づかれるはずです.これは,2枚のスライドを物理的に重ね合わせるための補助となるものです.
17626 \end_layout
17627
17628 \begin_layout Standard
17629 2つのスライドをオーバーレイさせる際の大きな問題は,2枚のスライドの内容を揃えることです.2枚目のスライドのグラフには,どれだけの余白を残しておくべきなのでしょ
17630 うか?さらにややこしく,2枚目のスライドにグラフと文章を入れたいときに,その間に割り込んでしまうような文章がメインスライドにある場合には,どうでしょうか?正しい
17631 寸法の垂直スペースを挿入してみることもできるでしょう.しかし,もっと良い方法として,
17632 \family sans
17633 不可視文
17634 \family default
17635
17636 \family sans
17637 可視文
17638 \family default
17639 を使用する方法があります.
17640 \end_layout
17641
17642 \begin_layout Standard
17643 これらの名前が意味するとおり,
17644 \family sans
17645 不可視文
17646 \family default
17647
17648 \family sans
17649 可視文
17650 \family default
17651 は,それぞれ続く文章すべてを見えなくしたり見えるようにしたりするコマンド型の段落環境です.しかしながら,第
17652 \begin_inset CommandInset ref
17653 LatexCommand ref
17654 reference "sec:スライドの癖"
17655
17656 \end_inset
17657
17658 節で述べたように,この2つの環境の
17659 \emph on
17660
17661 \emph default
17662 には何も置くことができません.
17663 \family sans
17664 不可視文
17665 \family default
17666 を作成すると,「<以下不可視文>」と書かれた水色のラベルが,ページに中央揃えで表示されます.このラベルに続く段落は,それが置かれるべき
17667 \family sans
17668 スライド
17669 \family default
17670 (あるいは
17671 \family sans
17672 オーバーレイ
17673 \family default
17674 ;どちらでも同じことです)部分に,代わりに空白の部分が置かれます.
17675 \end_layout
17676
17677 \begin_layout Standard
17678
17679 \family sans
17680 可視文
17681 \family default
17682 の場合には,中央揃えのラベルは,鮮やかな緑の「<以下可視文>」となります.このラベル以降の段落は,通常通りの挙動を示します.新規の
17683 \family sans
17684 スライド
17685 \family default
17686
17687 \family sans
17688 オーバーレイ
17689 \family default
17690
17691 \family sans
17692 注釈
17693 \family default
17694 を開始すると,
17695 \family sans
17696 不可視文
17697 \family default
17698 は自動的に終了されることに注意してください.したがって,
17699 \family sans
17700 スライド
17701 \family default
17702 の終わりでは,
17703 \family sans
17704 可視文
17705 \family default
17706 を使用する必要はありません.
17707 \end_layout
17708
17709 \begin_layout Standard
17710 ここまでで,
17711 \family sans
17712 スライド
17713 \family default
17714
17715 \family sans
17716 オーバーレイ
17717 \family default
17718 上で
17719 \family sans
17720 不可視文
17721 \family default
17722
17723 \family sans
17724 可視文
17725 \family default
17726 を適切に使用して,スライドをオーバーレイさせる方法が明らかになったことと思います.
17727 \end_layout
17728
17729 \begin_layout Enumerate
17730 メインのスライドか
17731 \family sans
17732 オーバーレイ
17733 \family default
17734 かに関わらず,スライド上に現れるすべてを含んだ
17735 \family sans
17736 スライド
17737 \family default
17738 を作成します.
17739 \end_layout
17740
17741 \begin_layout Enumerate
17742
17743 \family sans
17744 オーバーレイ
17745 \family default
17746 のみに表示するすべての図や段落の前に,
17747 \family sans
17748 不可視文
17749 \family default
17750 環境を挿入し,必要ならば,
17751 \family sans
17752 オーバーレイ
17753 \family default
17754 のみの文章の後に
17755 \family sans
17756 可視文
17757 \family default
17758 環境を挿入します.
17759 \end_layout
17760
17761 \begin_layout Enumerate
17762
17763 \family sans
17764 スライド
17765 \family default
17766 の直後から,
17767 \family sans
17768 オーバーレイ
17769 \family default
17770 を開始します.
17771 \end_layout
17772
17773 \begin_layout Enumerate
17774 この
17775 \family sans
17776 スライド
17777 \family default
17778 の内容を
17779 \family sans
17780 オーバーレイ
17781 \family default
17782 にコピーします.
17783 \end_layout
17784
17785 \begin_layout Enumerate
17786
17787 \family sans
17788 オーバーレイ
17789 \family default
17790 内部の
17791 \family sans
17792 不可視文
17793 \family default
17794 行をすべて
17795 \family sans
17796 不可視文
17797 \family default
17798 に変更し,
17799 \family sans
17800 可視文
17801 \family default
17802
17803 \family sans
17804 不可視文
17805 \family default
17806 に変更します.
17807 \end_layout
17808
17809 \begin_layout Standard
17810 これだけです.これで
17811 \family sans
17812 オーバーレイ
17813 \family default
17814 ができあがりました.
17815 \end_layout
17816
17817 \begin_layout Standard
17818 \SpecialChar LyX
17819  
17820 \family sans
17821 slides
17822 \family default
17823 クラスをデザインする上で,ひとつ残された問題があります.段落途中の文章を不可視にしたり,不可視段落の途中の文章を再度可視にしたりすることはできないのです.これを
17824 実現するためには,\SpecialChar LaTeX
17825 コードを埋め込む必要があります
17826 \begin_inset Foot
17827 status collapsed
17828
17829 \begin_layout Plain Layout
17830 このコマンドは,
17831 \end_layout
17832
17833 \begin_layout Itemize
17834
17835 \family typewriter
17836 {
17837 \backslash
17838 invisible \SpecialChar ldots
17839  }
17840 \end_layout
17841
17842 \begin_layout Itemize
17843
17844 \family typewriter
17845 {
17846 \backslash
17847 visible \SpecialChar ldots
17848  }
17849 \end_layout
17850
17851 \begin_layout Plain Layout
17852 \SpecialChar ldots
17853 のような形となり,\SpecialChar TeX
17854 としてマークする必要があります.「可視性」を変更したい文章は,波括弧のあいだ(そして
17855 \family typewriter
17856
17857 \backslash
17858 invisible
17859 \family default
17860 ないし
17861 \family typewriter
17862
17863 \backslash
17864 visible
17865 \family default
17866 コマンドの後ろ)に入れます.\SpecialChar TeX
17867 としてマークする方法がわからない場合は,
17868 \emph on
17869 ユーザーの手引き
17870 \emph default
17871 をご参照ください.
17872 \end_layout
17873
17874 \end_inset
17875
17876
17877 \end_layout
17878
17879 \begin_layout Subsubsection
17880
17881 \family sans
17882 スライドで注釈を使う
17883 \family default
17884
17885 \begin_inset CommandInset label
17886 LatexCommand label
17887 name "sec:スライド注釈"
17888
17889 \end_inset
17890
17891
17892 \end_layout
17893
17894 \begin_layout Standard
17895
17896 \family sans
17897 オーバーレイ
17898 \family default
17899 と同様,
17900 \family sans
17901 注釈
17902 \family default
17903 も「親」
17904 \family sans
17905 スライド
17906 \family default
17907 に関連付けられています.ここでも\SpecialChar LyX
17908
17909 \family sans
17910 スライド
17911 \family default
17912 クラスは視覚的な効果を与えています.
17913 \family sans
17914 注釈
17915 \family default
17916 のラベルは
17917 \family sans
17918 スライド
17919 \family default
17920 よりも短く(オーバーレイのラベルよりも長いですが),
17921 \family sans
17922 オーバーレイ
17923 \family default
17924 のラベルと同様,派手な赤紫色です.加えて,印刷した
17925 \family sans
17926 注釈
17927 \family default
17928 には,「親」スライドのページ番号に「
17929 \family typewriter
17930 -
17931 \family default
17932 1」「
17933 \family typewriter
17934 -
17935 \family default
17936 2」「
17937 \family typewriter
17938 -
17939 \family default
17940 3」等を付けたページ番号が付けられます.1つの
17941 \family sans
17942 スライド
17943 \family default
17944 には,複数の
17945 \family sans
17946 注釈
17947 \family default
17948 を関連付けることができるので,
17949 \family sans
17950 スライド
17951 \family default
17952
17953 \family sans
17954 オーバーレイ
17955 \family default
17956 と同じように,長い注釈は,1枚の紙に収まるように分割したいと思われるに違いありません.
17957 \end_layout
17958
17959 \begin_layout Standard
17960
17961 \family sans
17962 注釈
17963 \family default
17964 の目的は明らかです.
17965 \family sans
17966 スライド
17967 \family default
17968 に関して付け加えたいことを書き留めておくことです.特定の
17969 \family sans
17970 スライド
17971 \family default
17972 についての覚書として使うこともできます.後者の場合には,タイムマーカを利用したいこともあるかもしれません.現在のところ,\SpecialChar LyX
17973
17974 \family sans
17975 スライド
17976 \family default
17977 クラスは,
17978 \noun on
17979 Sli
17980 \noun default
17981 \SpecialChar TeX
17982 の機能であるタイムマーカを「ネイティブには」サポートしていません.したがって,\SpecialChar LaTeX
17983 コードを使用することに頼らなくてはなりません.
17984 \end_layout
17985
17986 \begin_layout Standard
17987 タイムマーカを使用するには,クラスオプション「
17988 \family typewriter
17989 clock
17990 \family default
17991 」を追加指定する必要があります(第
17992 \begin_inset CommandInset ref
17993 LatexCommand ref
17994 reference "sec:slidesetup"
17995
17996 \end_inset
17997
17998 節参照).このオプションはタイムマーカ機能を有効にして,生成したすべての
17999 \family sans
18000 注釈
18001 \family default
18002 の左下にタイムマーカを表示します.タイムマーカに表示するものを設定するには,\SpecialChar LaTeX
18003 コマンド「
18004 \family typewriter
18005
18006 \backslash
18007 settime{}
18008 \family default
18009 」および「
18010 \family typewriter
18011
18012 \backslash
18013 addtime{}
18014 \family default
18015 」を使用します.両コマンドは,秒で測った時間を引数にとります.「
18016 \family typewriter
18017
18018 \backslash
18019 settime{}
18020 \family default
18021 」は,タイムマーカを特定の時間に設定し,「
18022 \family typewriter
18023
18024 \backslash
18025 addtime{}
18026 \family default
18027 」は,タイムマーカを指定した分だけ進めます.このようにタイムマーカと
18028 \family sans
18029 注釈
18030 \family default
18031 を用いれば,特定の
18032 \family sans
18033 スライド
18034 \family default
18035 にどれだけの時間をかけるのか忘れないでいられます.
18036 \end_layout
18037
18038 \begin_layout Standard
18039 最後に,説明しておくべき機能がもう一つあります.当然ながら,
18040 \family sans
18041 スライド
18042 \family default
18043
18044 \family sans
18045 オーバーレイ
18046 \family default
18047 はすべてスライドに,
18048 \family sans
18049 注釈
18050 \family default
18051 はすべて普通の紙に印刷したいはずです.しかしながら,
18052 \family sans
18053 注釈
18054 \family default
18055 は関連付けられた親スライドの直後に
18056 \emph on
18057 来なくてはなりません
18058 \emph default
18059 .ユーザーはどうしたら良いのでしょうか.
18060 \end_layout
18061
18062 \begin_layout Standard
18063 幸いなことに,どれを印刷するか選択することを可能にする\SpecialChar LaTeX
18064 コマンドが,2種類あります.どちらも文書のプリアンブルに記述されなくてはなりません.コマンド「
18065 \family typewriter
18066
18067 \backslash
18068 onlyslides{
18069 \backslash
18070 slides}
18071 \family default
18072 」は,出力に
18073 \family sans
18074 スライド
18075 \family default
18076
18077 \family sans
18078 オーバーレイ
18079 \family default
18080 のみが含まれるようにするものです.同様に,「
18081 \family typewriter
18082
18083 \backslash
18084 onlynotes{
18085 \backslash
18086 notes}
18087 \family default
18088 」は
18089 \family sans
18090 注釈
18091 \family default
18092 以外の出力をすべて抑制します.私のアドバイスとしては,両コマンドをプリアンブルに書いておいて,最初は両方ともコメントアウトしておくと良いでしょう.そうすれば,執
18093 筆時にはプレゼンテーション全体をプレビューすることができます.いったん書き終えたならば,二つのうち一方のコメントを外して,印刷したい方を選ぶことができます.私な
18094 らば,まず
18095 \family typewriter
18096
18097 \backslash
18098 onlyslides{
18099 \backslash
18100 slides}
18101 \family default
18102 のコメントを外して,現ファイル名に「*
18103 \family typewriter
18104 -slides
18105 \family default
18106 」を付けた新たなファイルに出力を行ない,今度はこの行をふたたびコメントアウトするとともに,「
18107 \family typewriter
18108
18109 \backslash
18110 onlynotes{
18111 \backslash
18112 notes
18113 \family default
18114 }」のコメントを外して,これを「
18115 \family typewriter
18116 *-notes.ps
18117 \family default
18118 」というファイルに出力します.そうすれば,必要に応じて,スライドまたは通常の紙をプリンタにセットし,一方のファイルをプリンタに送ればよいのです.
18119 \end_layout
18120
18121 \begin_layout Standard
18122
18123 \family typewriter
18124
18125 \backslash
18126 onlyslides{}
18127 \family default
18128 」および「
18129 \family typewriter
18130
18131 \backslash
18132 onlynotes{}
18133 \family default
18134 」コマンドには,他の引数を与えることもできます.詳しくは,\SpecialChar LaTeX
18135 の良書をご覧ください.
18136 \end_layout
18137
18138 \begin_layout Subsection
18139
18140 \family sans
18141 slides
18142 \family default
18143 クラスのひな型ファイル
18144 \end_layout
18145
18146 \begin_layout Standard
18147
18148 \family sans
18149 slides
18150 \family default
18151 クラス用のひな型ファイルとして「
18152 \family typewriter
18153 slides.lyx
18154 \family default
18155 」が提供されています.これを使用するには,新しいプレゼンテーションを作り始める際に,
18156 \family sans
18157 ファイル\SpecialChar menuseparator
18158 新規(ひな型使用)
18159 \family default
18160 メニューを選択してください.すると新規ファイルには,
18161 \family sans
18162 スライド
18163 \family default
18164
18165 \family sans
18166 オーバーレイ
18167 \family default
18168
18169 \family sans
18170 注釈
18171 \family default
18172 の組が,例として含まれており,
18173 \family sans
18174 スライド
18175 \family default
18176
18177 \family sans
18178 オーバーレイ
18179 \family default
18180 には,さらに
18181 \family sans
18182 不可視文
18183 \family default
18184
18185 \family sans
18186 可視文
18187 \family default
18188 の使用例も含まれています.また,プリアンブルには,次のように書き込まれています.
18189 \end_layout
18190
18191 \begin_layout LyX-Code
18192 % Uncomment to print out only slides and overlays
18193 \end_layout
18194
18195 \begin_layout LyX-Code
18196 %
18197 \end_layout
18198
18199 \begin_layout LyX-Code
18200 %
18201 \backslash
18202 onlyslides{
18203 \backslash
18204 slides}
18205 \begin_inset Newline newline
18206 \end_inset
18207
18208  
18209 \end_layout
18210
18211 \begin_layout LyX-Code
18212 % Uncomment to print out only notes
18213 \end_layout
18214
18215 \begin_layout LyX-Code
18216 %
18217 \end_layout
18218
18219 \begin_layout LyX-Code
18220 %
18221 \backslash
18222 onlynotes{
18223 \backslash
18224 notes}
18225 \end_layout
18226
18227 \begin_layout Standard
18228 最後に,私はこの文書クラスを,\SpecialChar LaTeX2e
18229 の組み込みクラスである「
18230 \noun on
18231 Sli\SpecialChar TeX
18232
18233 \noun default
18234 エミュレーション」クラスをサポートする目的で作成しました.私も\SpecialChar LyX
18235 チームの他のメンバーも,この組み込みスライドクラスを使用することに賛成したり反対したりするものでは
18236 ありません.これは単に,ユーザーがこれを使いたかったり必要としたりしたときのためにあるものです.プレゼンテーションを作成するためには,
18237 \family sans
18238 Foils
18239 \family default
18240 クラス(第
18241 \begin_inset CommandInset ref
18242 LatexCommand ref
18243 reference "sec:foiltex"
18244
18245 \end_inset
18246
18247 節参照)や「
18248 \family typewriter
18249 seminar
18250 \family default
18251 」パッケージ(一部の\SpecialChar TeX
18252 頒布版に含まれています)のように,他の\SpecialChar LaTeX2e
18253 クラスも存在します.私はこれらについては知らないのですが,他にどのようなことができるのか試してみてくだ
18254 さい.
18255 \end_layout
18256
18257 \begin_layout Chapter
18258 ソフトウェアを追加する必要がある \SpecialChar LyX
18259 機能
18260 \end_layout
18261
18262 \begin_layout Section
18263 \SpecialChar TeX
18264 のチェック
18265 \end_layout
18266
18267 \begin_layout Standard
18268
18269 \noun on
18270 Asger Alstrup
18271 \noun default
18272
18273 \end_layout
18274
18275 \begin_layout Subsection
18276 はじめに
18277 \end_layout
18278
18279 \begin_layout Standard
18280
18281 \family typewriter
18282 chktex
18283 \family default
18284 プログラムが導入されていると
18285 \begin_inset Foot
18286 status collapsed
18287
18288 \begin_layout Plain Layout
18289 \SpecialChar LaTeX
18290 頒布版としてMiK\SpecialChar TeX
18291 を使用している場合には,
18292 \family typewriter
18293 chktex
18294 \family default
18295 はまだ利用可能ではありません.
18296 \end_layout
18297
18298 \end_inset
18299
18300
18301 \family sans
18302 ツール
18303 \family default
18304 メニューの下に,
18305 \family sans
18306 \SpecialChar TeX
18307 構文チェック
18308 \family default
18309 という項目が表示されます.
18310 \family typewriter
18311 chktex
18312 \family default
18313 は,CTAN
18314 \begin_inset Newline newline
18315 \end_inset
18316
18317
18318 \begin_inset CommandInset href
18319 LatexCommand href
18320 target "http://www.ctan.org/tex-archive/help/Catalogue/entries/chktex.html"
18321 literal "false"
18322
18323 \end_inset
18324
18325 から入手することができます.
18326 \end_layout
18327
18328 \begin_layout Standard
18329
18330 \family sans
18331 Chk\SpecialChar TeX
18332
18333 \family default
18334 パッケージは,\SpecialChar LaTeX
18335 の構成物には直感的でないものもあり,すぐ忘れてしまいがちであるのに不満を感じた
18336 \begin_inset Flex Noun
18337 status collapsed
18338
18339 \begin_layout Plain Layout
18340 Jens T.
18341  Berger Thielemann
18342 \end_layout
18343
18344 \end_inset
18345
18346 が書いたプログラムです.このプログラムは,\SpecialChar LaTeX
18347 ファイルを走査して,ファイルの整合性をチェックし,犯しがちな誤りを見つけ出します.別の技術用語では,LaTeXにおける
18348 \family typewriter
18349 lint
18350 \family default
18351 であるとも言えます.
18352 \end_layout
18353
18354 \begin_layout Standard
18355 さて,\SpecialChar LyX
18356 はつねに正しい\SpecialChar LaTeX
18357 ファイルを生成するはずなのに,文法チェッカーは\SpecialChar LyX
18358 で何をするというのでしょうか.答えは簡単です.
18359 \family typewriter
18360 lint
18361 \family default
18362 がC言語プログラムの
18363 \emph on
18364 文法
18365 \emph default
18366 をチェックするだけでなく,打ち間違いによる
18367 \emph on
18368 意味上の
18369 \emph default
18370 チェックも行うように,
18371 \family sans
18372 Chk\SpecialChar TeX
18373
18374 \family default
18375 は,文法エラーの他に犯しがちな
18376 \emph on
18377 写植上の
18378 \emph default
18379 誤りも検出してくれるからです.
18380 \family sans
18381 Chk\SpecialChar TeX
18382
18383 \family default
18384 は,以下のような誤りを検出することができます.
18385 \end_layout
18386
18387 \begin_layout Itemize
18388 省略記号の検出:
18389 \begin_inset Newline newline
18390 \end_inset
18391
18392 ...ではなく\SpecialChar ldots
18393 を使わなくてはなりません
18394 \end_layout
18395
18396 \begin_layout Itemize
18397 括弧の前後にスペースを置かない:
18398 \begin_inset Newline newline
18399 \end_inset
18400
18401 ( wrong spacing ):誤った空白
18402 \end_layout
18403
18404 \begin_layout Itemize
18405 よく使われる省略形の後ろは通常スペースにする:
18406 \begin_inset Newline newline
18407 \end_inset
18408
18409 e.
18410 \begin_inset space \thinspace{}
18411 \end_inset
18412
18413 g.
18414 \begin_inset space \space{}
18415 \end_inset
18416
18417 is too wide spacing.:広すぎる空白
18418 \end_layout
18419
18420 \begin_layout Itemize
18421 直前の文章が大文字で終わっているときに,文末スペースに直す:
18422 \begin_inset Newline newline
18423 \end_inset
18424
18425 This is a TEST.
18426  And this is wrong spacing.:誤った空白
18427 \end_layout
18428
18429 \begin_layout Itemize
18430 ラベルや類似コマンドの前のスペース:
18431 \begin_inset Newline newline
18432 \end_inset
18433
18434 ラベルが別のページに行ってしまわないように,ラベルは文章に接していなくてはなりません. 
18435 \begin_inset CommandInset label
18436 LatexCommand label
18437 name "sec:chktex"
18438
18439 \end_inset
18440
18441  
18442 \begin_inset Foot
18443 status collapsed
18444
18445 \begin_layout Plain Layout
18446 この脚注は,正しくないページに行ってしまう恐れがあります.
18447 \end_layout
18448
18449 \end_inset
18450
18451  このラベルは離れすぎです.
18452 \end_layout
18453
18454 \begin_layout Itemize
18455 参照の前にハードスペースではなくスペース:
18456 \begin_inset Newline newline
18457 \end_inset
18458
18459 運が悪ければ,参照文字列と参照番号のあいだでちょうど改行されてしまい,残念な結果となります.第
18460 \begin_inset CommandInset ref
18461 LatexCommand ref
18462 reference "sec:chktex"
18463
18464 \end_inset
18465
18466 節をご覧ください.
18467 \end_layout
18468
18469 \begin_layout Itemize
18470 数字のあいだで
18471 \begin_inset Formula $\times$
18472 \end_inset
18473
18474 ではなく「x」が使われている:
18475 \begin_inset Newline newline
18476 \end_inset
18477
18478 2x2は,
18479 \begin_inset Formula $2\times2$
18480 \end_inset
18481
18482 よりも安っぽく見えます.
18483 \end_layout
18484
18485 \begin_layout Standard
18486 などなど\SpecialChar ldots
18487
18488 \family sans
18489 Chk\SpecialChar TeX
18490
18491 \family default
18492 は,印刷する前に文書を「仕上げる」上で,たいへん価値のあるツールです.必須のスペルチェックを終えた直後,組版の微調整をする前には,これを実行するべきです.
18493 \end_layout
18494
18495 \begin_layout Subsection
18496 使いかた
18497 \end_layout
18498
18499 \begin_layout Standard
18500 このプログラムを導入したならば,使うのは
18501 \family sans
18502 ツール\SpecialChar menuseparator
18503 \SpecialChar TeX
18504 構文チェック
18505 \family default
18506 を選択するだけなので簡単です.こうすると,\SpecialChar LyX
18507 は使用中の文書の\SpecialChar LaTeX
18508 ファイルを生成して,
18509 \family sans
18510 Chk\SpecialChar TeX
18511
18512 \family default
18513 を起動し,当該ファイルを検査しますが,
18514 \family sans
18515 Chk\SpecialChar TeX
18516
18517 \family default
18518 から警告があった場合には,それを含んだ「エラーボックス」を\SpecialChar LyX
18519 中に挿入します.警告は,誤りのある箇所のそばに置かれるので,メニュー項目の
18520 \family sans
18521 移動\SpecialChar menuseparator
18522 エラー
18523 \family default
18524 を選択するか,既定の
18525 \family typewriter
18526 cua
18527 \family default
18528
18529 \begin_inset Flex Ruby
18530 status collapsed
18531
18532 \begin_layout Plain Layout
18533
18534 \begin_inset Argument post:1
18535 status collapsed
18536
18537 \begin_layout Plain Layout
18538 キー
18539 \end_layout
18540
18541 \end_inset
18542
18543
18544 \end_layout
18545
18546 \end_inset
18547
18548 設定ファイルならば
18549 \begin_inset Flex Ruby
18550 status collapsed
18551
18552 \begin_layout Plain Layout
18553
18554 \family roman
18555 \series medium
18556 \shape up
18557 \size normal
18558 \emph off
18559 \bar no
18560 \noun off
18561 \color none
18562 捷径
18563 \family default
18564 \series default
18565 \shape default
18566 \size default
18567 \emph default
18568 \bar default
18569 \noun default
18570 \color inherit
18571
18572 \begin_inset Argument post:1
18573 status collapsed
18574
18575 \begin_layout Plain Layout
18576 ショートカット
18577 \end_layout
18578
18579 \end_inset
18580
18581
18582 \end_layout
18583
18584 \end_inset
18585
18586
18587 \family sans
18588 C-g
18589 \family default
18590 を押せば,簡単に警告の箇所を見出すことができます.エラーボックスを開けるには,マウスでボックスをクリックするか,
18591 \family typewriter
18592 cua
18593 \family default
18594 鍵設定の場合には捷径鍵
18595 \family sans
18596 C-i
18597 \family default
18598
18599 \family typewriter
18600 emacs
18601 \family default
18602 鍵設定の場合は捷径鍵
18603 \family sans
18604 C-o
18605 \family default
18606 を押します.警告を読み,それが誤りを示していれば修正します.警告が何を意味しているか理解しにくい場合には,無視しても問題はありません.画面上の文書と,
18607 \family sans
18608 Chk\SpecialChar TeX
18609
18610 \family default
18611 を起動する際に行なわれる実際の技術的な操作のあいだには,隠された層があり,この隔たりのせいで,一部の警告が不可解なものになったり,明らかに馬鹿げたものになる場合
18612 があるのです.
18613 \end_layout
18614
18615 \begin_layout Standard
18616 本文書自体,この機能を確認する良い材料になりますので,実行してみてください.すると,かなりの量の警告が出るはずです.これはコンピュータが敏感すぎるせいですので,
18617 警告のほとんどは実際には警告に値しません.
18618 \end_layout
18619
18620 \begin_layout Subsection
18621 微調整のしかた
18622 \end_layout
18623
18624 \begin_layout Standard
18625 場合によっては,
18626 \family sans
18627 Chk\SpecialChar TeX
18628
18629 \family default
18630 は,あなたが望むよりも煩すぎると思うかもしれません.そのような場合には,必要と思うまで
18631 \family sans
18632 Chk\SpecialChar TeX
18633
18634 \family default
18635 を無効にするか,あなたにもう少し合うように
18636 \family sans
18637 Chk\SpecialChar TeX
18638
18639 \family default
18640 を調整することができます.
18641 \end_layout
18642
18643 \begin_layout Standard
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 関連の問題が,それですべて解決すると思うべきではありません.\SpecialChar LyX
18656 は,
18657 \family sans
18658 Chk\SpecialChar TeX
18659
18660 \family default
18661 出力
18662 \begin_inset Foot
18663 status collapsed
18664
18665 \begin_layout Plain Layout
18666
18667 \family sans
18668 chktex
18669 \family default
18670 の実際の出力は,
18671 \family sans
18672 chktex
18673 \family default
18674 を実行した直後に
18675 \family sans
18676 文書\SpecialChar menuseparator
18677 \SpecialChar LaTeX
18678 ログ
18679 \family default
18680 を使えば見ることができます.
18681 \end_layout
18682
18683 \end_inset
18684
18685 から得た行番号と内部構造を一致させるため,やや特殊な\SpecialChar LaTeX
18686 ファイルを生成しなくてはならないので,警告の一部は正しく表示されていないように見えるでしょう.これに対処する
18687 ためには,以下の2つの方法があります.
18688 \end_layout
18689
18690 \begin_layout Itemize
18691
18692 \family sans
18693 \begin_inset Flex MenuItem
18694 status collapsed
18695
18696 \begin_layout Plain Layout
18697
18698 \family sans
18699 ツール\SpecialChar menuseparator
18700 設定\SpecialChar menuseparator
18701 出力\SpecialChar menuseparator
18702 \SpecialChar LaTeX
18703 \SpecialChar menuseparator
18704 Check\SpecialChar TeX
18705 コマンド
18706 \end_layout
18707
18708 \end_inset
18709
18710
18711 \family default
18712 中の
18713 \family sans
18714 Chk\SpecialChar TeX
18715
18716 \family default
18717 起動コマンドラインを調整するか,グローバルな
18718 \family sans
18719 Chk\SpecialChar TeX
18720
18721 \family default
18722 の設定ファイル(通常は
18723 \begin_inset Flex Code
18724 status collapsed
18725
18726 \begin_layout Plain Layout
18727 chktexrc
18728 \end_layout
18729
18730 \end_inset
18731
18732 ファイル)を調整します.コマンドラインからどの警告を有効・無効にできるかは以下をご覧ください.
18733 \end_layout
18734
18735 \begin_layout Itemize
18736
18737 \family sans
18738 ファイル\SpecialChar menuseparator
18739 書き出し\SpecialChar menuseparator
18740 \SpecialChar LaTeX
18741
18742 \family default
18743 を使って文書を\SpecialChar LaTeX
18744 ファイルに変換し,そのファイルに対して
18745 \family typewriter
18746 chktex
18747 \family default
18748 を手動で実行します.このようにすると,\SpecialChar LyX
18749 文書中の対応箇所を見つけるのがやや面倒ですが,少し我慢すれば見つけることができます.
18750 \end_layout
18751
18752 \begin_layout Standard
18753 以下は,
18754 \family sans
18755 設定
18756 \family default
18757 で有効化・無効化できる警告メッセージです.警告を無効にするには
18758 \family typewriter
18759 -n#
18760 \family default
18761 ,有効にするには
18762 \family typewriter
18763 -w#
18764 \family default
18765 を用います.イタリック表示の項目は,既定で無効となっています.既定値は "
18766 \family typewriter
18767 chktex -n1 -n3 -n6 -n9 -n22 -n25 -n30 -n38
18768 \family default
18769 "です.
18770 \end_layout
18771
18772 \begin_layout Standard
18773 \SpecialChar LyX
18774 は,
18775 \family typewriter
18776 chktex
18777 \family default
18778 と通信するために,他のコマンドラインパラメータを特定の方法で使用しているため,メッセージを有効化・無効化する以外のオプションを使うべきではありません.
18779 \end_layout
18780
18781 \begin_layout Enumerate
18782
18783 \size small
18784 \emph on
18785 Command terminated with space.
18786 \end_layout
18787
18788 \begin_layout Enumerate
18789
18790 \size small
18791 Non-breaking space (
18792 \begin_inset Quotes eld
18793 \end_inset
18794
18795
18796 \family typewriter
18797 ~
18798 \family default
18799
18800 \begin_inset Quotes erd
18801 \end_inset
18802
18803 ) should have been used.
18804 \end_layout
18805
18806 \begin_layout Enumerate
18807
18808 \size small
18809 \emph on
18810 You should enclose the previous parenthesis with 
18811 \begin_inset Quotes eld
18812 \end_inset
18813
18814
18815 \family typewriter
18816 {}
18817 \family default
18818
18819 \begin_inset Quotes erd
18820 \end_inset
18821
18822 .
18823 \end_layout
18824
18825 \begin_layout Enumerate
18826
18827 \size small
18828 Italic correction (
18829 \begin_inset Quotes eld
18830 \end_inset
18831
18832
18833 \family typewriter
18834
18835 \backslash
18836 /
18837 \family default
18838
18839 \begin_inset Quotes erd
18840 \end_inset
18841
18842 ) found in non-italic buffer.
18843 \end_layout
18844
18845 \begin_layout Enumerate
18846
18847 \size small
18848 Italic correction (
18849 \begin_inset Quotes eld
18850 \end_inset
18851
18852
18853 \family typewriter
18854
18855 \backslash
18856 /
18857 \family default
18858
18859 \begin_inset Quotes erd
18860 \end_inset
18861
18862 ) found more than once.
18863 \end_layout
18864
18865 \begin_layout Enumerate
18866
18867 \size small
18868 \emph on
18869 No italic correction (
18870 \begin_inset Quotes eld
18871 \end_inset
18872
18873
18874 \family typewriter
18875
18876 \backslash
18877 /
18878 \family default
18879
18880 \begin_inset Quotes erd
18881 \end_inset
18882
18883 ) found.
18884 \end_layout
18885
18886 \begin_layout Enumerate
18887
18888 \size small
18889 Accent command 
18890 \begin_inset Quotes eld
18891 \end_inset
18892
18893
18894 \family typewriter
18895 cmd
18896 \family default
18897
18898 \begin_inset Quotes erd
18899 \end_inset
18900
18901  needs use of 
18902 \begin_inset Quotes eld
18903 \end_inset
18904
18905
18906 \family typewriter
18907 cmd
18908 \family default
18909
18910 \begin_inset Quotes erd
18911 \end_inset
18912
18913 .
18914 \end_layout
18915
18916 \begin_layout Enumerate
18917
18918 \size small
18919 Wrong length of dash may have been used.
18920 \end_layout
18921
18922 \begin_layout Enumerate
18923
18924 \size small
18925 \emph on
18926 \begin_inset Quotes eld
18927 \end_inset
18928
18929
18930 \family typewriter
18931 %s
18932 \family default
18933
18934 \begin_inset Quotes erd
18935 \end_inset
18936
18937  expected, found 
18938 \begin_inset Quotes eld
18939 \end_inset
18940
18941
18942 \family typewriter
18943 %s
18944 \family default
18945
18946 \begin_inset Quotes erd
18947 \end_inset
18948
18949 .
18950 \end_layout
18951
18952 \begin_layout Enumerate
18953
18954 \size small
18955 Solo 
18956 \begin_inset Quotes eld
18957 \end_inset
18958
18959
18960 \family typewriter
18961 %s
18962 \family default
18963
18964 \begin_inset Quotes erd
18965 \end_inset
18966
18967  found.
18968 \end_layout
18969
18970 \begin_layout Enumerate
18971
18972 \size small
18973 You should use 
18974 \begin_inset Quotes eld
18975 \end_inset
18976
18977
18978 \family typewriter
18979 %s
18980 \family default
18981
18982 \begin_inset Quotes erd
18983 \end_inset
18984
18985  to achieve an ellipsis.
18986 \end_layout
18987
18988 \begin_layout Enumerate
18989
18990 \size small
18991 Inter-word spacing (
18992 \begin_inset Quotes eld
18993 \end_inset
18994
18995
18996 \family typewriter
18997
18998 \backslash
18999
19000 \family default
19001  
19002 \begin_inset Quotes eld
19003 \end_inset
19004
19005 ) should perhaps be used.
19006 \end_layout
19007
19008 \begin_layout Enumerate
19009
19010 \size small
19011 Inter-sentence spacing (
19012 \begin_inset Quotes eld
19013 \end_inset
19014
19015
19016 \family typewriter
19017
19018 \backslash
19019 @
19020 \family default
19021
19022 \begin_inset Quotes erd
19023 \end_inset
19024
19025 ) should perhaps be used.
19026 \end_layout
19027
19028 \begin_layout Enumerate
19029
19030 \size small
19031 Could not find argument for command.
19032 \end_layout
19033
19034 \begin_layout Enumerate
19035
19036 \size small
19037 No match found for 
19038 \begin_inset Quotes eld
19039 \end_inset
19040
19041
19042 \family typewriter
19043 %s
19044 \family default
19045
19046 \begin_inset Quotes erd
19047 \end_inset
19048
19049 .
19050 \end_layout
19051
19052 \begin_layout Enumerate
19053
19054 \size small
19055 Math mode still on at end of \SpecialChar LaTeX
19056  file.
19057 \end_layout
19058
19059 \begin_layout Enumerate
19060
19061 \size small
19062 Number of 
19063 \begin_inset Quotes eld
19064 \end_inset
19065
19066
19067 \family typewriter
19068 char
19069 \family default
19070
19071 \begin_inset Quotes erd
19072 \end_inset
19073
19074  doesn't match the number of 
19075 \begin_inset Quotes eld
19076 \end_inset
19077
19078
19079 \family typewriter
19080 char
19081 \family default
19082
19083 \begin_inset Quotes erd
19084 \end_inset
19085
19086 .
19087 \end_layout
19088
19089 \begin_layout Enumerate
19090
19091 \size small
19092 You should use either 
19093 \family typewriter
19094
19095 \begin_inset Quotes eld
19096 \end_inset
19097
19098
19099 \family default
19100  or 
19101 \family typewriter
19102
19103 \begin_inset Quotes erd
19104 \end_inset
19105
19106
19107 \family default
19108  as an alternative to 
19109 \begin_inset Quotes eld
19110 \end_inset
19111
19112
19113 \family typewriter
19114 "
19115 \family default
19116
19117 \begin_inset Quotes erd
19118 \end_inset
19119
19120 .
19121 \end_layout
19122
19123 \begin_layout Enumerate
19124
19125 \size small
19126 You should use "
19127 \family typewriter
19128 '
19129 \family default
19130 " (ASCII 39) instead of "" (ASCII 180).
19131 \end_layout
19132
19133 \begin_layout Enumerate
19134
19135 \size small
19136 User-specified pattern found.
19137 \end_layout
19138
19139 \begin_layout Enumerate
19140
19141 \size small
19142 This command might not be intended.
19143 \end_layout
19144
19145 \begin_layout Enumerate
19146
19147 \size small
19148 \emph on
19149 Comment displayed.
19150 \end_layout
19151
19152 \begin_layout Enumerate
19153
19154 \size small
19155 Either 
19156 \family typewriter
19157 ''
19158 \backslash
19159 ,'
19160 \family default
19161  or 
19162 \family typewriter
19163 '
19164 \backslash
19165 ,''
19166 \family default
19167  will look better.
19168 \end_layout
19169
19170 \begin_layout Enumerate
19171
19172 \size small
19173 Delete this space to maintain correct page references.
19174 \end_layout
19175
19176 \begin_layout Enumerate
19177
19178 \size small
19179 \emph on
19180 You might wish to put this between a pair of 
19181 \begin_inset Quotes eld
19182 \end_inset
19183
19184
19185 \family typewriter
19186 {}
19187 \family default
19188
19189 \begin_inset Quotes erd
19190 \end_inset
19191
19192 .
19193 \end_layout
19194
19195 \begin_layout Enumerate
19196
19197 \size small
19198 You ought to remove spaces in front of punctuation.
19199 \end_layout
19200
19201 \begin_layout Enumerate
19202
19203 \size small
19204 Could not execute \SpecialChar LaTeX
19205  command.
19206 \end_layout
19207
19208 \begin_layout Enumerate
19209
19210 \size small
19211 Don't use 
19212 \family typewriter
19213
19214 \backslash
19215 /
19216 \family default
19217  in front of small punctuation.
19218 \end_layout
19219
19220 \begin_layout Enumerate
19221
19222 \family typewriter
19223 \size small
19224 $
19225 \backslash
19226 times$
19227 \family default
19228  may look prettier here.
19229 \end_layout
19230
19231 \begin_layout Enumerate
19232
19233 \size small
19234 \emph on
19235 Multiple spaces detected in output.
19236 \end_layout
19237
19238 \begin_layout Enumerate
19239
19240 \size small
19241 This text may be ignored.
19242 \end_layout
19243
19244 \begin_layout Enumerate
19245
19246 \size small
19247 Use 
19248 \family typewriter
19249
19250 \begin_inset Quotes eld
19251 \end_inset
19252
19253
19254 \family default
19255  to begin quotation, not 
19256 \family typewriter
19257 '
19258 \family default
19259 .
19260 \end_layout
19261
19262 \begin_layout Enumerate
19263
19264 \size small
19265 Use 
19266 \family typewriter
19267 '
19268 \family default
19269  to end quotation, not 
19270 \family typewriter
19271
19272 \begin_inset Quotes eld
19273 \end_inset
19274
19275
19276 \family default
19277 .
19278 \end_layout
19279
19280 \begin_layout Enumerate
19281
19282 \size small
19283 Don't mix quotes.
19284 \end_layout
19285
19286 \begin_layout Enumerate
19287
19288 \size small
19289 You should perhaps use 
19290 \begin_inset Quotes eld
19291 \end_inset
19292
19293
19294 \family typewriter
19295 cmd
19296 \family default
19297
19298 \begin_inset Quotes erd
19299 \end_inset
19300
19301  instead.
19302 \end_layout
19303
19304 \begin_layout Enumerate
19305
19306 \size small
19307 You should put a space in front of/after parenthesis.
19308 \end_layout
19309
19310 \begin_layout Enumerate
19311
19312 \size small
19313 You should avoid spaces in front of/after parenthesis.
19314 \end_layout
19315
19316 \begin_layout Enumerate
19317
19318 \size small
19319 \emph on
19320 You should not use punctuation in front of/after quotes.
19321 \end_layout
19322
19323 \begin_layout Enumerate
19324
19325 \size small
19326 Double space found.
19327 \end_layout
19328
19329 \begin_layout Enumerate
19330
19331 \size small
19332 You should put punctuation outside inner/inside display math mode.
19333 \end_layout
19334
19335 \begin_layout Enumerate
19336
19337 \size small
19338 You ought to not use primitive \SpecialChar TeX
19339  in \SpecialChar LaTeX
19340  code.
19341 \end_layout
19342
19343 \begin_layout Enumerate
19344
19345 \size small
19346 You should remove spaces in front of 
19347 \begin_inset Quotes eld
19348 \end_inset
19349
19350
19351 \family typewriter
19352 %s
19353 \family default
19354
19355 \begin_inset Quotes erd
19356 \end_inset
19357
19358
19359 \end_layout
19360
19361 \begin_layout Enumerate
19362
19363 \size small
19364 \begin_inset Quotes eld
19365 \end_inset
19366
19367
19368 \family typewriter
19369 %s
19370 \family default
19371
19372 \begin_inset Quotes erd
19373 \end_inset
19374
19375  is normally not followed by 
19376 \begin_inset Quotes eld
19377 \end_inset
19378
19379
19380 \family typewriter
19381 %c
19382 \family default
19383
19384 \begin_inset Quotes erd
19385 \end_inset
19386
19387 .
19388 \end_layout
19389
19390 \begin_layout Standard
19391 \SpecialChar LyX
19392 の将来の版では,このツール(およびその縮小版
19393 \family typewriter
19394 lacheck
19395 \family default
19396 )の力を最大限引き出すように,より完備したインターフェイスを提供できればと考えています.しかし,現状でも十分に役立つものとなっています.ある程度長さがある既存文
19397 書に使用してみていただければ,きっと驚かれることでしょう.
19398 \end_layout
19399
19400 \begin_layout Section
19401 \SpecialChar LyX
19402 でのバージョン管理
19403 \end_layout
19404
19405 \begin_layout Standard
19406
19407 \noun on
19408 Lars Bullik Bjønnes
19409 \noun default
19410 および
19411 \noun on
19412 Pavel Sanda
19413 \noun default
19414
19415 \end_layout
19416
19417 \begin_layout Subsection
19418 はじめに
19419 \end_layout
19420
19421 \begin_layout Standard
19422 \SpecialChar LyX
19423 は,今ではもっとも基本的なRCS/CVS/SVN/GITコマンドをサポートしています.もしもっと洗練されたことを行いたい場合には,ターミナル上から手動で行う必要
19424 があります.
19425 \end_layout
19426
19427 \begin_layout Standard
19428 また,CVSのサポートは,subversionのサポートほど良くないので,CVSよりもSVNを使うことをお勧めします.Subversionを学び始めるには,SV
19429 N Book
19430 \begin_inset Foot
19431 status collapsed
19432
19433 \begin_layout Plain Layout
19434 \begin_inset CommandInset href
19435 LatexCommand href
19436 target "http://svnbook.red-bean.com/"
19437 literal "false"
19438
19439 \end_inset
19440
19441
19442 \end_layout
19443
19444 \end_inset
19445
19446 が良いでしょう.RCSの場合は,「rsintro」をお読みください(これはmanファイルです.
19447 \family typewriter
19448 man rcsintro
19449 \family default
19450 で読めます).このファイルは,RCSの基本機能のすべてを説明しています.特に,RCSディレクトリに関するコメントと,マスターRCSファイル(
19451 \family typewriter
19452 ,v
19453 \family default
19454 で終わるファイルです)の概念に注意を払ってください.
19455 \end_layout
19456
19457 \begin_layout Standard
19458 \SpecialChar LyX
19459 で実際にバージョン管理機能を使い始める前に,RCS/CVS/SVN/GITの使用法に習熟しておかなくてはなりません.\SpecialChar LyX
19460 で\SpecialChar LyX
19461 への実装においては,GNU
19462  RCSまたはCVS/SVNパッケージの最新版を仮定しています.旧版への保証はありません.ログメッセージのほとんどは,現在のところ操作後には表示されません.確認
19463 したい場合には,メッセージ面で確かめてください.バージョン管理を常用するユーザーには,VCツールバーが便利でしょう.これは
19464 \family sans
19465 表示\SpecialChar menuseparator
19466 ツールバー\SpecialChar menuseparator
19467 バージョン管理
19468 \family default
19469 で有効にできます.
19470 \end_layout
19471
19472 \begin_layout Standard
19473 自製の外部コマンドを導入したい場合には,\SpecialChar LyX
19474 関数説明書のvcコマンドを確認してください.
19475 \end_layout
19476
19477 \begin_layout Standard
19478 バージョン管理機能を使用している場合には,文書を非圧縮形式で保存をすることを強く推奨します(
19479 \family sans
19480 文書\SpecialChar menuseparator
19481 圧縮
19482 \family default
19483 にチェックが入っていれば外してください).非圧縮LyX文書はテキストファイルであるため,バージョン管理システムが,二つのバージョンをマージすることができます.一
19484 方,圧縮LyXファイルはバイナリファイルであるため,バージョン管理システムはマージすることができません.
19485 \end_layout
19486
19487 \begin_layout Subsection
19488 \SpecialChar LyX
19489 におけるRCSコマンド
19490 \end_layout
19491
19492 \begin_layout Standard
19493 以下の節では\SpecialChar LyX
19494 でサポートされているRCSコマンドを説明します.それらのコマンドは
19495 \family sans
19496 ファイル\SpecialChar menuseparator
19497 バージョン管理
19498 \family default
19499 のサブメニューにあります.\SpecialChar LyX
19500 は,RCS 5.7/5.8に対して試験されています.
19501 \end_layout
19502
19503 \begin_layout Subsubsection
19504
19505 \family sans
19506 登録
19507 \end_layout
19508
19509 \begin_layout Standard
19510 文書がバージョン管理の下にない場合には,これがメニューにあらわれる唯一の項目です.文書がバージョン管理下にあれば,項目
19511 \family sans
19512 登録
19513 \family default
19514 は不可視になります.
19515 \end_layout
19516
19517 \begin_layout Standard
19518 このコマンドは,文書をRCSに登録します(CVSが管理しているディレクトリ下にない場合).すると対話的に,文書の最初の説明を入力するように尋ねられます.すると文
19519 書は読み込み専用モードになるので,変更を加えるためには
19520 \family sans
19521 チェックアウトして編集
19522 \family default
19523 を実行する必要があります.バージョン管理下にある文書は,ミニバッファのファイル名の後ろに「 [RCS:<バージョン> <ロック>]」という項目が表示されます.
19524 \end_layout
19525
19526 \begin_layout Standard
19527 実行されるRCSコマンドは:
19528 \family typewriter
19529
19530 \begin_inset Newline newline
19531 \end_inset
19532
19533 ci -q -u -i -t-"<初期説明文>" <ファイル名>
19534 \end_layout
19535
19536 \begin_layout Standard
19537 スイッチについて知りたい場合は,
19538 \family typewriter
19539 man ci
19540 \family default
19541 を読んでください.
19542 \end_layout
19543
19544 \begin_layout Subsubsection
19545
19546 \family sans
19547 変更をチェックインする
19548 \end_layout
19549
19550 \begin_layout Standard
19551 ファイルの編集が終わると,その変更をチェックインします.このとき,変更についての説明文を求められます.これは履歴ログに記録されます.バージョン番号は繰り上がり,
19552 変更がマスターRCSファイルに適用され,文書がアンロックされて読み込み専用モードになります.
19553 \end_layout
19554
19555 \begin_layout Standard
19556 RCSコマンド:
19557 \family typewriter
19558 ci -q -u -m"<説明文>" <ファイル名>
19559 \end_layout
19560
19561 \begin_layout Subsubsection
19562
19563 \family sans
19564 チェックアウトして編集
19565 \end_layout
19566
19567 \begin_layout Standard
19568 これは,文書をロックして編集できるようにします.そしてあなただけが文書を読み書きできるようにします.通常は,しばらくの間,文書を編集し,それが終わると変更をチェ
19569 ックインします.あなたがファイルをロックしたことを反映して,ステータスラインが変わります.
19570 \end_layout
19571
19572 \begin_layout Standard
19573 RCSコマンド:
19574 \family typewriter
19575 co -q -l <ファイル名>
19576 \end_layout
19577
19578 \begin_layout Subsubsection
19579
19580 \family sans
19581 リポジトリのバージョンに戻す
19582 \end_layout
19583
19584 \begin_layout Standard
19585 これは,最終チェックイン以降,文書に加えられた変更をすべて破棄します.変更が破棄される前に,警告が発せられます.
19586 \end_layout
19587
19588 \begin_layout Standard
19589 RCSコマンド:
19590 \family typewriter
19591 co -f -u<バージョン> <ファイル名>
19592 \end_layout
19593
19594 \begin_layout Subsubsection
19595
19596 \family sans
19597 コピー
19598 \end_layout
19599
19600 \begin_layout Standard
19601 これは,現行文書のコピーを生成します.RCSは,コピー操作を自前ではサポートしませんので,バージョン履歴には保存されず,新コピーは新規ファイルとして追加されます
19602 .最後のチェックイン以降,変更が加えられていないサラの文書であることが要求されます.ファイル名とコピー操作の説明を入力するように促され,その後,新コピーがローカ
19603 ルとリポジトリの両方に生成されます.コピーされた文書と元の文書の親ディレクトリが異なる場合には,コピーにインクルードされたファイルの相対パスは,(
19604 \family sans
19605 ファイル\SpecialChar menuseparator
19606 名前をつけて保存\SpecialChar ldots
19607
19608 \family default
19609 と同様に)全て調整されます.最後に,元の文書の代わりに,コピーされたファイルが読み込まれます.
19610 \end_layout
19611
19612 \begin_layout Labeling
19613 \labelwidthstring 00.00.0000
19614 RCSコマンド:
19615 \begin_inset Flex Code
19616 status collapsed
19617
19618 \begin_layout Plain Layout
19619 "ファイル名"
19620 \end_layout
19621
19622 \end_inset
19623
19624
19625 \family typewriter
19626 "新ファイル名"
19627 \family default
19628 にコピーする場合
19629 \end_layout
19630
19631 \begin_layout Labeling
19632 \labelwidthstring 00.00.0000
19633 \begin_inset Flex Code
19634 status collapsed
19635
19636 \begin_layout Plain Layout
19637 ci -q -u -i "<新ファイル名>"
19638 \end_layout
19639
19640 \end_inset
19641
19642
19643 \end_layout
19644
19645 \begin_layout Subsubsection
19646
19647 \family sans
19648 最後のチェックインを取り消す
19649 \end_layout
19650
19651 \begin_layout Standard
19652 これは,最後のチェックインがあたかも為されなかったかのようにします.\SpecialChar LyX
19653 に読み込まれた文書に変更は加えられませんが,マスターRCSファイルから最後のバージョンが削除
19654 されます.
19655 \end_layout
19656
19657 \begin_layout Standard
19658 RCSコマンド:
19659 \family typewriter
19660 rcs -o<バージョン> <ファイル名>
19661 \end_layout
19662
19663 \begin_layout Subsubsection
19664
19665 \family sans
19666 履歴を表示
19667 \end_layout
19668
19669 \begin_layout Standard
19670 RCS文書の完全な履歴を表示します.ブラウザ中に,
19671 \family typewriter
19672 rlog <ファイル名>
19673 \family default
19674 の出力が表示されます.詳細は
19675 \family typewriter
19676 man rlog
19677 \family default
19678 をご覧ください.
19679 \end_layout
19680
19681 \begin_layout Subsubsection
19682 改訂情報
19683 \end_layout
19684
19685 \begin_layout Standard
19686 \SpecialChar LyX
19687 は,RCSバージョン番号情報(のみ)をサポートしています.詳細については,
19688 \begin_inset CommandInset ref
19689 LatexCommand ref
19690 reference "subsec:VCS改訂情報"
19691
19692 \end_inset
19693
19694 を参照.
19695 \end_layout
19696
19697 \begin_layout Subsection
19698 \SpecialChar LyX
19699 におけるCVSコマンド
19700 \end_layout
19701
19702 \begin_layout Standard
19703 \SpecialChar LyX
19704 は,現在CVSを一部サポートしています.そのコマンドは,
19705 \family sans
19706 ファイル\SpecialChar menuseparator
19707 バージョン管理
19708 \family default
19709 サブメニューにあります.バージョン管理システムSVNの方が強力なので,可能ならばCVSではなく,SVNを使用してください.
19710 \end_layout
19711
19712 \begin_layout Subsubsection
19713 CVSの一般的な利用法
19714 \end_layout
19715
19716 \begin_layout Standard
19717 CVSを初めて使いたい場合には,外部ツールを使用して自分のレポジトリを作成し,作業コピーをチェックアウトする必要があります.クライアント=サーバーモデルを使用し
19718 ている場合には,最初のレポジトリチェックアウトを行う前にログインする必要があるかもしれません.
19719 \end_layout
19720
19721 \begin_layout Standard
19722 改訂管理下にある文書のレポジトリを他人も利用している場合に,同一文書の同一箇所に別々の変更を加えてしまうと問題が発生します.標準的なCVSレポジトリは,ファイル
19723 ロッキング機構を有しません.これは驚くべきことかもしれませんが,コンフリクトは,文書の同じ箇所の特定の内容について,人々が意見を異にしている場合にのみ発生します
19724 .したがって,共著者同士がコンスタントにコミュニケーションを交わしていれば,このようなコンフリクトは滅多に発生しません.もしコミュニケーションがなければ,いずれ
19725 にしても根本的な問題があるわけです.それにもかかわらず,いわゆる「予備付きチェックアウト」を使用したいと思う人々もいます.この場合,最初にチェックアウトした際に
19726 ,全ファイルの作業コピーは読み込み専用にされ,ユーザーは,作業コピーを書き込み可能にする特別なコマンドを使用した後,編集を開始することになります.変更をチェック
19727 インすると,作業コピーは読み込み専用状態に戻ります.\SpecialChar LyX
19728 で予備付きチェックアウトを利用したい場合には,
19729 \begin_inset Flex Code
19730 status collapsed
19731
19732 \begin_layout Plain Layout
19733 .cvsrc
19734 \end_layout
19735
19736 \end_inset
19737
19738 ファイルを編集して,
19739 \begin_inset Flex Code
19740 status collapsed
19741
19742 \begin_layout Plain Layout
19743 cvs -r
19744 \end_layout
19745
19746 \end_inset
19747
19748 という行を書き加える必要があります.この方法の利点は,文書のうち,書き込み可能コピーを誰が使用しているかを見ることができることです.ただし,一人のユーザーだけが
19749 コピーを書き込み可能にしているとは限りません.
19750 \end_layout
19751
19752 \begin_layout Standard
19753 \SpecialChar LyX
19754 は,あなたが予備付きチェックアウトを使用しているか,予備なしチェックアウトを利用しているか,推測しようと試みます.使用中の作業コピーが読み込み専用になっているか
19755 ,あるいはそれが書き込み可能であって,CVS/Baseサブディレクトリに使用中文書のコピーが存在している場合には,予備付きチェックアウトを使用しているものと仮定
19756 し,そうでない場合には予備なしチェックアウトを使用しているものと仮定します.予備付きチェックアウトが検出された場合には,作業コピーが読み込み専用の場合に書き込み
19757 可能にするためには,
19758 \begin_inset Flex MenuItem
19759 status collapsed
19760
19761 \begin_layout Plain Layout
19762 チェックアウト
19763 \end_layout
19764
19765 \end_inset
19766
19767 メニューを使用しなくてはなりません.その後,
19768 \begin_inset Flex MenuItem
19769 status collapsed
19770
19771 \begin_layout Plain Layout
19772 チェックイン
19773 \end_layout
19774
19775 \end_inset
19776
19777 メニューが利用可能になるので,自分が加えた変更をリポジトリに移した後,作業コピーを再び読み込み専用にする際には,これを使用します.
19778 \end_layout
19779
19780 \begin_layout Standard
19781 CVSの詳細な情報は,
19782 \begin_inset Flex URL
19783 status collapsed
19784
19785 \begin_layout Plain Layout
19786
19787 http://www.nongnu.org/cvs
19788 \end_layout
19789
19790 \end_inset
19791
19792
19793 \begin_inset Flex URL
19794 status collapsed
19795
19796 \begin_layout Plain Layout
19797
19798 http://ximbiot.com/cvs
19799 \end_layout
19800
19801 \end_inset
19802
19803 にあります.
19804 \end_layout
19805
19806 \begin_layout Standard
19807 以下に言及するサブコマンドとスイッチを理解するには,
19808 \family typewriter
19809 man cvs
19810 \family default
19811 をお読みください.
19812 \end_layout
19813
19814 \begin_layout Subsubsection
19815 登録
19816 \end_layout
19817
19818 \begin_layout Standard
19819 お使いの文書が改訂管理下に置かれていなければ,メニューにはこの項目だけが表示されます.もし改訂管理が有効ならば,
19820 \family sans
19821 登録
19822 \family default
19823 項目は表示されません.
19824 \end_layout
19825
19826 \begin_layout Standard
19827 本コマンドは,既に文書ディレクトリをCVS管理下に置いている場合に
19828 \series bold
19829 \emph on
19830 のみ
19831 \series default
19832 \emph default
19833 (すなわち
19834 \begin_inset Flex Code
19835 status collapsed
19836
19837 \begin_layout Plain Layout
19838 CVS/Entries
19839 \end_layout
19840
19841 \end_inset
19842
19843 ファイルが存在する場合にのみ),お使いの文書をCVSに登録します.つまり,外部ツールを使用して,アーカイブを自分で作成ないしチェックアウトしなくてはならないこと
19844 を意味します(このステップを忘れてしまうと,\SpecialChar LyX
19845 は文書をRCSに登録します).
19846 \end_layout
19847
19848 \begin_layout Standard
19849 すると,文書の最初の説明文を入力するように促されます.登録したファイルは,まだチェックインされたわけではないことに注意してください.
19850 \end_layout
19851
19852 \begin_layout Standard
19853 実行されるCVSコマンドは,
19854 \family typewriter
19855 cvs -q add -m"<入力した説明文>" "<ファイル名>"
19856 \family default
19857  です.
19858 \end_layout
19859
19860 \begin_layout Standard
19861 上記および他のすべてのCVSコマンドにおける
19862 \family typewriter
19863 "<ファイル名>"
19864 \family default
19865 は,「カレント作業ディレクトリをファイルの場所に移動し,パスコンポーネントを除いたファイル名を引数として使用する」という意味になります.
19866 \end_layout
19867
19868 \begin_layout Subsubsection
19869 変更のチェックイン
19870 \end_layout
19871
19872 \begin_layout Standard
19873 ファイルの編集を終えたら,変更をコミットします.このとき,文書に変更が加えられていれば,変更の説明文を入れるよう促されます.その後,変更がレポジトリに書き込まれ
19874 ます.文書を変更せず,予備付きチェックアウトが検出された場合,
19875 \begin_inset Flex MenuItem
19876 status collapsed
19877
19878 \begin_layout Plain Layout
19879 チェックアウト
19880 \end_layout
19881
19882 \end_inset
19883
19884 で作られた予備は取り消されます.
19885 \end_layout
19886
19887 \begin_layout Labeling
19888 \labelwidthstring 00.00.0000
19889 CVSコマンド: 
19890 \begin_inset space ~
19891 \end_inset
19892
19893
19894 \begin_inset Newline newline
19895 \end_inset
19896
19897
19898 \begin_inset Flex Code
19899 status collapsed
19900
19901 \begin_layout Plain Layout
19902 cvs -q commit -m"<入力した説明文>" "<ファイル名>"
19903 \end_layout
19904
19905 \end_inset
19906
19907 あるいは
19908 \begin_inset Newline newline
19909 \end_inset
19910
19911
19912 \begin_inset Flex Code
19913 status collapsed
19914
19915 \begin_layout Plain Layout
19916 cvs -q unedit "<ファイル名>"
19917 \end_layout
19918
19919 \end_inset
19920
19921
19922 \end_layout
19923
19924 \begin_layout Subsubsection
19925 変更のチェックアウト
19926 \end_layout
19927
19928 \begin_layout Standard
19929 レポジトリを他人と共有している場合,他人の加えた変更を自らの作業コピーに取り込まなくてはならないことがあります.
19930 \end_layout
19931
19932 \begin_layout Standard
19933 CVSコマンド:
19934 \family typewriter
19935 cvs -q update "<ファイル名>"
19936 \end_layout
19937
19938 \begin_layout Standard
19939 読み込み専用チェックアウトが検出された場合,作業コピーを書き込み可能にし予備を作成します.
19940 \end_layout
19941
19942 \begin_layout Standard
19943 CVSコマンド:
19944 \family typewriter
19945 cvs -q edit "<ファイル名>"
19946 \end_layout
19947
19948 \begin_layout Subsubsection
19949 レポジトリ版に戻す
19950 \end_layout
19951
19952 \begin_layout Standard
19953 これは,最後のチェックイン以降,文書に加えられた変更をすべて廃棄します.変更が廃棄される前に警告が表示されます.最初にファイルが削除され,次にCVS更新コマンド
19954 が実行されます.
19955 \end_layout
19956
19957 \begin_layout Standard
19958 CVSコマンド:
19959 \family typewriter
19960 cvs -q update "<ファイル名>"
19961 \end_layout
19962
19963 \begin_layout Standard
19964 予備付きチェックアウトが検出され,作業コピーに変更がない場合,予備のみが取り消されます.
19965 \end_layout
19966
19967 \begin_layout Standard
19968 CVSコマンド:
19969 \family typewriter
19970 cvs -q unedit "<ファイル名>"
19971 \end_layout
19972
19973 \begin_layout Subsubsection
19974
19975 \family sans
19976 コピー
19977 \end_layout
19978
19979 \begin_layout Standard
19980 これは,現行文書のコピーを生成します.CVSは,コピー操作を自前ではサポートしませんので,バージョン履歴には保存されず,新コピーは新規ファイルとして追加されます
19981 .最後のチェックイン以降,変更が加えられていないサラの文書であることが要求されます.ファイル名とコピー操作の説明を入力するように促され,その後,新コピーがローカ
19982 ルとリポジトリの両方に生成されます.コピーされた文書と元の文書の親ディレクトリが異なる場合には,コピーにインクルードされたファイルの相対パスは,(
19983 \family sans
19984 ファイル\SpecialChar menuseparator
19985 名前をつけて保存\SpecialChar ldots
19986
19987 \family default
19988 と同様に)全て調整されます.最後に,元の文書の代わりに,コピーされたファイルが読み込まれます.
19989 \end_layout
19990
19991 \begin_layout Labeling
19992 \labelwidthstring 00.00.0000
19993 CVSコマンド:
19994 \end_layout
19995
19996 \begin_layout Labeling
19997 \labelwidthstring 00.00.0000
19998 \begin_inset Flex Code
19999 status collapsed
20000
20001 \begin_layout Plain Layout
20002 "ファイル名"
20003 \end_layout
20004
20005 \end_inset
20006
20007
20008 \begin_inset Flex Code
20009 status collapsed
20010
20011 \begin_layout Plain Layout
20012 "新ファイル名"
20013 \end_layout
20014
20015 \end_inset
20016
20017 にコピーする場合
20018 \end_layout
20019
20020 \begin_layout Labeling
20021 \labelwidthstring 00.00.0000
20022 \begin_inset Flex Code
20023 status collapsed
20024
20025 \begin_layout Plain Layout
20026 cvs -q add "<新ファイル名>"
20027 \end_layout
20028
20029 \end_inset
20030
20031
20032 \end_layout
20033
20034 \begin_layout Subsubsection
20035 ファイル名変更
20036 \end_layout
20037
20038 \begin_layout Standard
20039 これは,現行文書のファイル名を変更します.CVSは,ファイル名変更操作を自前ではサポートしませんので,バージョン履歴には保存されず,名称変更後のファイルは,新規
20040 ファイルとして追加されます.最後のチェックイン以降,変更が加えられていないサラの文書であることが要求されます.ファイル名とコピー操作の説明を入力するように促され
20041 ,その後,ローカルとリポジトリの両方でファイル名が変更されます.新旧ファイル名の文書の親ディレクトリが異なる場合には,コピーにインクルードされたファイルの相対パ
20042 スは,(
20043 \family sans
20044 ファイル\SpecialChar menuseparator
20045 名前をつけて保存\SpecialChar ldots
20046
20047 \family default
20048 と同様に)全て調整されます.最後に,新ファイル名を使ってファイルが再度読み込まれます.
20049 \end_layout
20050
20051 \begin_layout Labeling
20052 \labelwidthstring 00.00.0000
20053 CVSコマンド:
20054 \end_layout
20055
20056 \begin_layout Labeling
20057 \labelwidthstring 00.00.0000
20058 \begin_inset Flex Code
20059 status collapsed
20060
20061 \begin_layout Plain Layout
20062 "ファイル名"
20063 \end_layout
20064
20065 \end_inset
20066
20067
20068 \begin_inset Flex Code
20069 status collapsed
20070
20071 \begin_layout Plain Layout
20072 "新ファイル名"
20073 \end_layout
20074
20075 \end_inset
20076
20077 に変更する場合
20078 \end_layout
20079
20080 \begin_layout Labeling
20081 \labelwidthstring 00.00.0000
20082 \begin_inset Flex Code
20083 status collapsed
20084
20085 \begin_layout Plain Layout
20086 cvs -q add "<新ファイル名>"
20087 \end_layout
20088
20089 \end_inset
20090
20091
20092 \end_layout
20093
20094 \begin_layout Labeling
20095 \labelwidthstring 00.00.0000
20096 \begin_inset Flex Code
20097 status collapsed
20098
20099 \begin_layout Plain Layout
20100 cvs -q remove "<ファイル名>"
20101 \end_layout
20102
20103 \end_inset
20104
20105
20106 \end_layout
20107
20108 \begin_layout Subsubsection
20109 ローカルディレクトリチェックアウトのレポジトリからの更新
20110 \end_layout
20111
20112 \begin_layout Standard
20113 子文書や図を含んだり,外部
20114 \begin_inset Flex Code
20115 status collapsed
20116
20117 \begin_layout Plain Layout
20118 .tex
20119 \end_layout
20120
20121 \end_inset
20122
20123 ファイルを取り込むなど,文書が複雑になるにつれ,バージョン管理の利用は複雑になります.\SpecialChar LyX
20124 は,文書が存在するツリー全体の更新をサポートします.これは,CVSの使用法
20125 について詳しい知識のない人々や,レポジトリに追加素材をコミットする野望のない人々と共同作業をするような場合に,特に便利です.ファイル構造は,すべての外部ファイル
20126 が,文書と同じディレクトリかそのサブディレクトリに来るように組織する必要があります.いずれにしても,複合文書を新しいディレクトリを建てて収容するのは,望ましい習
20127 慣です.
20128 \end_layout
20129
20130 \begin_layout Standard
20131 コマンド
20132 \begin_inset Flex Code
20133 status collapsed
20134
20135 \begin_layout Plain Layout
20136 レポジトリを使ってローカル辞書を更新
20137 \end_layout
20138
20139 \end_inset
20140
20141 は,ディレクトリ全体を更新します.ローカルの変更が検出された場合には,更新を開始する前にユーザーに警告が発せられます.マージコンフリクトが発生した場合には,コン
20142 フリクトを起こしている部分の新旧バージョンが,両方とも最終文書に置かれますので,マージの結果を見直し,修正する必要があります.コンフリクトは,
20143 \begin_inset Flex Code
20144 status collapsed
20145
20146 \begin_layout Plain Layout
20147 <<<<<<<
20148 \end_layout
20149
20150 \end_inset
20151
20152
20153 \begin_inset Flex Code
20154 status collapsed
20155
20156 \begin_layout Plain Layout
20157 >>>>>>>
20158 \end_layout
20159
20160 \end_inset
20161
20162 の対に囲まれ,
20163 \begin_inset Flex Code
20164 status collapsed
20165
20166 \begin_layout Plain Layout
20167 =======
20168 \end_layout
20169
20170 \end_inset
20171
20172 で区切られて表示されます.最初の部分は,文書名に続いて,更新操作前のバージョンが置かれています.第2の部分は,
20173 \begin_inset Flex Code
20174 status collapsed
20175
20176 \begin_layout Plain Layout
20177 >
20178 \end_layout
20179
20180 \end_inset
20181
20182 記号列の後にバージョン番号に続いて,レポジトリ版が置かれます.
20183 \end_layout
20184
20185 \begin_layout Labeling
20186 \labelwidthstring 00.00.0000
20187 CVSコマンド: 
20188 \begin_inset space ~
20189 \end_inset
20190
20191
20192 \begin_inset Newline newline
20193 \end_inset
20194
20195
20196 \begin_inset Flex Code
20197 status collapsed
20198
20199 \begin_layout Plain Layout
20200 cd $path; cvs diff "."
20201 \end_layout
20202
20203 \end_inset
20204
20205 (変更が検出された場合には知らせる)
20206 \begin_inset Newline newline
20207 \end_inset
20208
20209
20210 \begin_inset Flex Code
20211 status collapsed
20212
20213 \begin_layout Plain Layout
20214 cd $path; cvs -q update "."
20215 \end_layout
20216
20217 \end_inset
20218
20219
20220 \end_layout
20221
20222 \begin_layout Standard
20223 ここで
20224 \begin_inset Flex Code
20225 status collapsed
20226
20227 \begin_layout Plain Layout
20228 $path
20229 \end_layout
20230
20231 \end_inset
20232
20233 は文書パスを表します.
20234 \end_layout
20235
20236 \begin_layout Subsubsection
20237 履歴を表示
20238 \end_layout
20239
20240 \begin_layout Standard
20241 これは,CVS文書の全履歴を表示します.
20242 \begin_inset Flex Code
20243 status collapsed
20244
20245 \begin_layout Plain Layout
20246 cvs log 
20247 \begin_inset Quotes eld
20248 \end_inset
20249
20250 <ファイル名>
20251 \begin_inset Quotes erd
20252 \end_inset
20253
20254
20255 \end_layout
20256
20257 \end_inset
20258
20259 の出力がブラウザに表示されます.
20260 \end_layout
20261
20262 \begin_layout Subsubsection
20263 改訂情報
20264 \end_layout
20265
20266 \begin_layout Standard
20267 \SpecialChar LyX
20268 は,CVS版数・著者名・最終コミットの日時をサポートします.これらの情報は,すべて
20269 \family typewriter
20270 cvs log -r <ファイル名>
20271 \family default
20272 によって抽出されます.詳細については,第
20273 \begin_inset CommandInset ref
20274 LatexCommand ref
20275 reference "subsec:VCS改訂情報"
20276
20277 \end_inset
20278
20279 節を参照してください.
20280 \end_layout
20281
20282 \begin_layout Subsection
20283 \SpecialChar LyX
20284 におけるSVNコマンド
20285 \end_layout
20286
20287 \begin_layout Standard
20288 \SpecialChar LyX
20289 は,現在SVNを一部サポートしています.そのコマンドは,
20290 \begin_inset Flex MenuItem
20291 status collapsed
20292
20293 \begin_layout Plain Layout
20294 ファイル\SpecialChar menuseparator
20295 バージョン管理
20296 \end_layout
20297
20298 \end_inset
20299
20300 メニューにあります.レポジトリへのアクセスに,ssh経由のパスワード保護アクセスを使用している場合には,端末ウィンドウでの入力を促されます.\SpecialChar LyX
20301 は,SVN
20302  1.5および1.6に対して試験されています.
20303 \end_layout
20304
20305 \begin_layout Subsubsection
20306 登録
20307 \end_layout
20308
20309 \begin_layout Standard
20310 お使いの文書が改訂管理下に置かれていなければ,メニューにはこの項目だけが表示されます.もし改訂管理が有効ならば,
20311 \family sans
20312 登録
20313 \family default
20314 項目は表示されません.
20315 \end_layout
20316
20317 \begin_layout Standard
20318 本コマンドは,既に文書のあるディレクトリをSVN管理下に置いている場合に
20319 \emph on
20320 のみ
20321 \emph default
20322 (すなわち
20323 \begin_inset Flex Code
20324 status collapsed
20325
20326 \begin_layout Plain Layout
20327 .svn/entries
20328 \end_layout
20329
20330 \end_inset
20331
20332 ファイルが存在する場合にのみ),お使いの文書をSVNに登録します.つまり,アーカイブはご自分でチェックアウトしなくてはなりません.
20333 \end_layout
20334
20335 \begin_layout Standard
20336 すると,文書の最初の説明文を入力するように促されます.登録したファイルは,まだコミットされたわけではないことに注意してください.
20337 \end_layout
20338
20339 \begin_layout Standard
20340 実行されるSVNコマンドは,
20341 \begin_inset Flex Code
20342 status collapsed
20343
20344 \begin_layout Plain Layout
20345 svn add -q 
20346 \begin_inset Quotes eld
20347 \end_inset
20348
20349 <ファイル名>
20350 \begin_inset Quotes erd
20351 \end_inset
20352
20353
20354 \end_layout
20355
20356 \end_inset
20357
20358 です.
20359 \end_layout
20360
20361 \begin_layout Standard
20362 スイッチの説明は
20363 \begin_inset Flex Code
20364 status collapsed
20365
20366 \begin_layout Plain Layout
20367 man svn
20368 \end_layout
20369
20370 \end_inset
20371
20372 をお読みください.
20373 \end_layout
20374
20375 \begin_layout Subsubsection
20376 変更をチェックイン
20377 \end_layout
20378
20379 \begin_layout Standard
20380 ファイルの編集を終えたら,変更をコミットします.このとき,変更の説明文を入れるよう促されます.その後,変更がコミットされます.
20381 \end_layout
20382
20383 \begin_layout Standard
20384 SVNコマンド
20385 \begin_inset Foot
20386 status collapsed
20387
20388 \begin_layout Plain Layout
20389 ロックが有効になっていない場合です.第
20390 \begin_inset CommandInset ref
20391 LatexCommand ref
20392 reference "subsec:SVNファイルロック"
20393
20394 \end_inset
20395
20396 節をご覧ください.
20397 \end_layout
20398
20399 \end_inset
20400
20401
20402 \begin_inset Flex Code
20403 status collapsed
20404
20405 \begin_layout Plain Layout
20406 svn commit -q -m
20407 \begin_inset Quotes erd
20408 \end_inset
20409
20410 <入力した説明文>
20411 \begin_inset Quotes erd
20412 \end_inset
20413
20414  
20415 \begin_inset Quotes eld
20416 \end_inset
20417
20418 <ファイル名>
20419 \begin_inset Quotes erd
20420 \end_inset
20421
20422
20423 \end_layout
20424
20425 \end_inset
20426
20427
20428 \end_layout
20429
20430 \begin_layout Subsubsection
20431 チェックアウトして編集
20432 \end_layout
20433
20434 \begin_layout Standard
20435 このファイルの変更点をレポジトリから取得して更新します.すべての干渉点は,手動で解決しなくてはならないので,この機能を使う前にSVNのマージ法と干渉解決法を理解
20436 しておくようにしてください.
20437 \end_layout
20438
20439 \begin_layout Standard
20440 SVNコマンド
20441 \begin_inset Foot
20442 status collapsed
20443
20444 \begin_layout Plain Layout
20445 同上.
20446 \end_layout
20447
20448 \end_inset
20449
20450
20451 \begin_inset Flex Code
20452 status collapsed
20453
20454 \begin_layout Plain Layout
20455 svn update –non-interactive 
20456 \begin_inset Quotes eld
20457 \end_inset
20458
20459 <ファイル名>
20460 \begin_inset Quotes erd
20461 \end_inset
20462
20463
20464 \end_layout
20465
20466 \end_inset
20467
20468
20469 \end_layout
20470
20471 \begin_layout Subsubsection
20472 リポジトリ版に戻す
20473 \end_layout
20474
20475 \begin_layout Standard
20476 これは,最後のチェックイン以降,文書に加えられた変更をすべて廃棄します.変更が廃棄される前に警告が表示されます.
20477 \end_layout
20478
20479 \begin_layout Standard
20480 SVNコマンド:
20481 \begin_inset Flex Code
20482 status collapsed
20483
20484 \begin_layout Plain Layout
20485 svn revert -q 
20486 \begin_inset Quotes eld
20487 \end_inset
20488
20489 <ファイル名>
20490 \begin_inset Quotes erd
20491 \end_inset
20492
20493
20494 \end_layout
20495
20496 \end_inset
20497
20498
20499 \end_layout
20500
20501 \begin_layout Subsubsection
20502
20503 \family sans
20504 コピー
20505 \end_layout
20506
20507 \begin_layout Standard
20508 これは,現行文書のコピーを生成します.最後のチェックイン以降,変更が加えられていないサラの文書であることが要求されます.ファイル名とコピー操作の説明を入力するよ
20509 うに促され,その後,新コピーがローカルとリポジトリの両方に生成されます.コピーされた文書と元の文書の親ディレクトリが異なる場合には,コピーにインクルードされたフ
20510 ァイルの相対パスは,(
20511 \family sans
20512 ファイル\SpecialChar menuseparator
20513 名前をつけて保存\SpecialChar ldots
20514
20515 \family default
20516 と同様に)全て調整されます.最後に,元の文書の代わりに,コピーされたファイルが読み込まれます.
20517 \end_layout
20518
20519 \begin_layout Labeling
20520 \labelwidthstring 00.00.0000
20521 SVNコマンド:
20522 \end_layout
20523
20524 \begin_layout Labeling
20525 \labelwidthstring 00.00.0000
20526 \begin_inset Flex Code
20527 status collapsed
20528
20529 \begin_layout Plain Layout
20530 svn copy -q "<ファイル名>" "<新ファイル名>"
20531 \end_layout
20532
20533 \end_inset
20534
20535
20536 \end_layout
20537
20538 \begin_layout Labeling
20539 \labelwidthstring 00.00.0000
20540 \begin_inset Flex Code
20541 status collapsed
20542
20543 \begin_layout Plain Layout
20544 svn commit
20545 \end_layout
20546
20547 \end_inset
20548
20549
20550 \end_layout
20551
20552 \begin_layout Subsubsection
20553 ファイル名変更
20554 \end_layout
20555
20556 \begin_layout Standard
20557 これは,現行文書のファイル名を変更します.最後のチェックイン以降,変更が加えられていないサラの文書であることが要求されます.ファイル名とコピー操作の説明を入力す
20558 るように促され,その後,ローカルとリポジトリの両方でファイル名が変更されます.新旧ファイル名の文書の親ディレクトリが異なる場合には,コピーにインクルードされたフ
20559 ァイルの相対パスは,(
20560 \family sans
20561 ファイル\SpecialChar menuseparator
20562 名前をつけて保存\SpecialChar ldots
20563
20564 \family default
20565 と同様に)全て調整されます.最後に,新ファイル名を使ってファイルが再度読み込まれます.
20566 \end_layout
20567
20568 \begin_layout Labeling
20569 \labelwidthstring 00.00.0000
20570 SVNコマンド:
20571 \end_layout
20572
20573 \begin_layout Labeling
20574 \labelwidthstring 00.00.0000
20575 \begin_inset Flex Code
20576 status collapsed
20577
20578 \begin_layout Plain Layout
20579 svn move -q add "<ファイル名>" "<新ファイル名>"
20580 \end_layout
20581
20582 \end_inset
20583
20584
20585 \end_layout
20586
20587 \begin_layout Labeling
20588 \labelwidthstring 00.00.0000
20589 \begin_inset Flex Code
20590 status collapsed
20591
20592 \begin_layout Plain Layout
20593 svn commit
20594 \end_layout
20595
20596 \end_inset
20597
20598
20599 \end_layout
20600
20601 \begin_layout Subsubsection
20602 \begin_inset CommandInset label
20603 LatexCommand label
20604 name "subsec:レポジトリからSVN同期"
20605
20606 \end_inset
20607
20608 レポジトリを使ったローカルディレクトリの同期
20609 \begin_inset Foot
20610 status collapsed
20611
20612 \begin_layout Plain Layout
20613 このコマンドは,subversion 
20614 \begin_inset Formula $\geqq1.5$
20615 \end_inset
20616
20617 でのみ動作することに注意してください.
20618 \end_layout
20619
20620 \end_inset
20621
20622
20623 \end_layout
20624
20625 \begin_layout Standard
20626 上記の各コマンドはすべて,共通の短所を持っています.すなわち,これらのコマンドは現在の文書しか取り扱わないのです.もし,作業中の文書に図を含めたり,外部
20627 \begin_inset Flex Code
20628 status collapsed
20629
20630 \begin_layout Plain Layout
20631 .tex
20632 \end_layout
20633
20634 \end_inset
20635
20636 ファイルを取り込んだりすれば,管理はずっと複雑になります.そこで\SpecialChar LyX
20637 は,文書のおいてあるツリー全体の更新をサポートします
20638 \begin_inset Foot
20639 status collapsed
20640
20641 \begin_layout Plain Layout
20642 すべての外部ファイルが,文書と同じディレクトリかそれ以下のサブディレクトリに来るようにファイル構造を構成する必要があります.
20643 \end_layout
20644
20645 \end_inset
20646
20647 .これは,subversion管理を知らなかったりレポジトリに新しい素材をコミットする勇気のない人たちと共同作業をする羽目になったときに,ひじょうに役に立ちます
20648
20649 \end_layout
20650
20651 \begin_layout Standard
20652 \begin_inset Flex Code
20653 status collapsed
20654
20655 \begin_layout Plain Layout
20656 ローカル辞書をレポジトリを使って更新
20657 \end_layout
20658
20659 \end_inset
20660
20661 コマンドは,ディレクトリ全体を更新し,マージに衝突が発生した場合には,ローカル版は保存されるので,意図しないデータロスが発生しません.ローカルな変更が発見された
20662 場合には,更新が開始される前にユーザに警告が与えられます.
20663 \end_layout
20664
20665 \begin_layout Labeling
20666 \labelwidthstring 00.00.0000
20667 SVNコマンド: 
20668 \begin_inset space ~
20669 \end_inset
20670
20671
20672 \begin_inset Newline newline
20673 \end_inset
20674
20675
20676 \begin_inset Flex Code
20677 status collapsed
20678
20679 \begin_layout Plain Layout
20680 svn diff $path(変更が発見された場合には通知します)
20681 \begin_inset Newline newline
20682 \end_inset
20683
20684 svn update –accept mine-full $path
20685 \end_layout
20686
20687 \end_inset
20688
20689
20690 \end_layout
20691
20692 \begin_layout Standard
20693 ここで
20694 \begin_inset Flex Code
20695 status collapsed
20696
20697 \begin_layout Plain Layout
20698 $path
20699 \end_layout
20700
20701 \end_inset
20702
20703 は文書のパスを示します.
20704 \end_layout
20705
20706 \begin_layout Subsubsection
20707 履歴を表示
20708 \end_layout
20709
20710 \begin_layout Standard
20711 これは,SVN文書の全履歴を表示します.
20712 \begin_inset Flex Code
20713 status collapsed
20714
20715 \begin_layout Plain Layout
20716 svn log 
20717 \begin_inset Quotes eld
20718 \end_inset
20719
20720 <ファイル名>
20721 \begin_inset Quotes erd
20722 \end_inset
20723
20724
20725 \end_layout
20726
20727 \end_inset
20728
20729 の出力がブラウザに表示されます.
20730 \end_layout
20731
20732 \begin_layout Subsubsection
20733 ファイルロック
20734 \begin_inset CommandInset label
20735 LatexCommand label
20736 name "subsec:SVNファイルロック"
20737
20738 \end_inset
20739
20740
20741 \end_layout
20742
20743 \begin_layout Standard
20744 別々の改訂管理システム間でファイルを交換しようとすると,二人のユーザが同じ文書(の一部)を編集している場合,マージが衝突する問題を引き起こします.そのような衝突
20745 が発生した場合,手動で解決しなくてはならなくなりますが,その合理的な解決法としては,与えられた時間に一人のユーザだけがファイルを編集することが許されるように保証
20746 するための,何らかのロック機構を導入することが考えられます.
20747 \end_layout
20748
20749 \begin_layout Standard
20750 SVNには,このように相互に排他的なファイルアクセスを提供する機構が二つあります.ロックと,
20751 \begin_inset Flex Code
20752 status collapsed
20753
20754 \begin_layout Plain Layout
20755 svn:needs-lock
20756 \end_layout
20757
20758 \end_inset
20759
20760 svnファイル特性に依拠した書き込み権限の自動設定(第
20761 \begin_inset CommandInset ref
20762 LatexCommand ref
20763 reference "subsec:自動ロック特性"
20764
20765 \end_inset
20766
20767 節を参照)です
20768 \begin_inset Foot
20769 status collapsed
20770
20771 \begin_layout Plain Layout
20772 http://svnbook.red-bean.com/en/1.2/svn.advanced.locking.html
20773 \end_layout
20774
20775 \end_inset
20776
20777 .ある文書について,この特性が検出されたときには,\SpecialChar LyX
20778 は自動的に文書編集にSVNロックを使用するようになり,チェックイン・チェックアウト機構はRCSと同じ枠組みに切
20779 り替わります.これは特に,\SpecialChar LyX
20780 でのファイルの使われ方に以下の二つのモードがあることを意味します.
20781 \end_layout
20782
20783 \begin_layout Itemize
20784 非ロック状態.読み込まれたファイルは,読み込み専用モードになります.編集するためには,チェックアウトする必要があります.
20785 \emph on
20786 チェックアウト
20787 \emph default
20788 を行うと,レポジトリからの更新と,書き込みロックの獲得が行われます.ロックの獲得ができないと,非ロック状態から出ることができません.
20789 \end_layout
20790
20791 \begin_layout Itemize
20792 ロック状態.読み込まれたファイルは,「通常の」編集モードになります.他のユーザには,このファイルを編集する許可が与えられません.
20793 \emph on
20794 チェックイン
20795 \emph default
20796 を行うと,変更のコミットと書き込みロックの解放が行われます.文書に変更が加えられなかった場合には,コミットは実行されず
20797 \begin_inset Foot
20798 status collapsed
20799
20800 \begin_layout Plain Layout
20801 コミットは実行されないのに,コミットメッセージを入力するよう促されますが,驚かないでください.
20802 \end_layout
20803
20804 \end_inset
20805
20806 ,書き込みロックの解放のみが行われます.
20807 \end_layout
20808
20809 \begin_layout Standard
20810 SVNコマンド:
20811 \end_layout
20812
20813 \begin_layout Labeling
20814 \labelwidthstring 00.00.0000
20815 チェックイン: 
20816 \begin_inset Flex Code
20817 status collapsed
20818
20819 \begin_layout Plain Layout
20820 svn commit -q -m
20821 \begin_inset Quotes erd
20822 \end_inset
20823
20824 <説明>
20825 \begin_inset Quotes erd
20826 \end_inset
20827
20828  
20829 \begin_inset Quotes eld
20830 \end_inset
20831
20832 <ファイル名>
20833 \begin_inset Quotes erd
20834 \end_inset
20835
20836
20837 \end_layout
20838
20839 \end_inset
20840
20841
20842 \begin_inset Newline newline
20843 \end_inset
20844
20845
20846 \begin_inset Flex Code
20847 status collapsed
20848
20849 \begin_layout Plain Layout
20850 svn unlock 
20851 \begin_inset Quotes eld
20852 \end_inset
20853
20854 <ファイル名>
20855 \begin_inset Quotes erd
20856 \end_inset
20857
20858
20859 \end_layout
20860
20861 \end_inset
20862
20863
20864 \end_layout
20865
20866 \begin_layout Labeling
20867 \labelwidthstring 00.00.0000
20868 チェックアウト: 
20869 \begin_inset Flex Code
20870 status collapsed
20871
20872 \begin_layout Plain Layout
20873 svn update 
20874 \begin_inset Quotes eld
20875 \end_inset
20876
20877 <ファイル名>
20878 \begin_inset Quotes erd
20879 \end_inset
20880
20881
20882 \end_layout
20883
20884 \end_inset
20885
20886
20887 \begin_inset Newline newline
20888 \end_inset
20889
20890
20891 \begin_inset Flex Code
20892 status collapsed
20893
20894 \begin_layout Plain Layout
20895 svn unlock 
20896 \begin_inset Quotes eld
20897 \end_inset
20898
20899 <ファイル名>
20900 \begin_inset Quotes erd
20901 \end_inset
20902
20903
20904 \end_layout
20905
20906 \end_inset
20907
20908
20909 \end_layout
20910
20911 \begin_layout Subsubsection
20912 自動ロック特性
20913 \begin_inset CommandInset label
20914 LatexCommand label
20915 name "subsec:自動ロック特性"
20916
20917 \end_inset
20918
20919
20920 \end_layout
20921
20922 \begin_layout Standard
20923 上述したような
20924 \begin_inset Flex Code
20925 status collapsed
20926
20927 \begin_layout Plain Layout
20928 .lyx
20929 \end_layout
20930
20931 \end_inset
20932
20933 ファイルに対する書き込み権限の自動設定は,
20934 \begin_inset Flex MenuItem
20935 status collapsed
20936
20937 \begin_layout Plain Layout
20938 ファイル\SpecialChar menuseparator
20939 バージョン管理\SpecialChar menuseparator
20940 ロック特性を使用
20941 \end_layout
20942
20943 \end_inset
20944
20945 で行うことができます.このコマンドは,SVNサーバでファイルがロックされていないときのみ使用可能状態になります(つまり,使用するにはチェックアウトが必要です).
20946 \end_layout
20947
20948 \begin_layout Standard
20949 SVNコマンド:
20950 \end_layout
20951
20952 \begin_layout Labeling
20953 \labelwidthstring 00.00.0000
20954 チェックイン: 
20955 \begin_inset Flex Code
20956 status collapsed
20957
20958 \begin_layout Plain Layout
20959 svn propset svn:needs-lock ON 
20960 \begin_inset Quotes eld
20961 \end_inset
20962
20963 <ファイル名>
20964 \begin_inset Quotes erd
20965 \end_inset
20966
20967
20968 \end_layout
20969
20970 \end_inset
20971
20972
20973 \end_layout
20974
20975 \begin_layout Labeling
20976 \labelwidthstring 00.00.0000
20977 チェックアウト: 
20978 \begin_inset Flex Code
20979 status collapsed
20980
20981 \begin_layout Plain Layout
20982 svn propdel svn:needs-lock 
20983 \begin_inset Quotes eld
20984 \end_inset
20985
20986 <ファイル名>
20987 \begin_inset Quotes erd
20988 \end_inset
20989
20990
20991 \end_layout
20992
20993 \end_inset
20994
20995
20996 \end_layout
20997
20998 \begin_layout Subsubsection
20999 \begin_inset CommandInset label
21000 LatexCommand label
21001 name "subsec:VCS改訂情報"
21002
21003 \end_inset
21004
21005 文書の改訂情報
21006 \end_layout
21007
21008 \begin_layout Standard
21009 文書中で改訂情報を有効化するにはいくつかの方法があります.
21010 \end_layout
21011
21012 \begin_layout Itemize
21013 \SpecialChar LyX
21014 による直接サポート
21015 \end_layout
21016
21017 \begin_deeper
21018 \begin_layout Itemize
21019 ツリー改訂情報(
21020 \begin_inset Flex Code
21021 status collapsed
21022
21023 \begin_layout Plain Layout
21024 vcs-tree-revision
21025 \end_layout
21026
21027 \end_inset
21028
21029 ).
21030 \begin_inset Flex Code
21031 status collapsed
21032
21033 \begin_layout Plain Layout
21034 svnversion
21035 \end_layout
21036
21037 \end_inset
21038
21039 コマンドの出力を返します.下記の表が,結果の読み方のヒントを与えるでしょう.
21040 \end_layout
21041
21042 \begin_layout Standard
21043 \align center
21044 \begin_inset Tabular
21045 <lyxtabular version="3" rows="6" columns="2">
21046 <features tabularvalignment="middle">
21047 <column alignment="center" valignment="top">
21048 <column alignment="center" valignment="top">
21049 <row>
21050 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21051 \begin_inset Text
21052
21053 \begin_layout Plain Layout
21054 出力
21055 \end_layout
21056
21057 \end_inset
21058 </cell>
21059 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
21060 \begin_inset Text
21061
21062 \begin_layout Plain Layout
21063 意味
21064 \end_layout
21065
21066 \end_inset
21067 </cell>
21068 </row>
21069 <row>
21070 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21071 \begin_inset Text
21072
21073 \begin_layout Plain Layout
21074 4123:4168
21075 \end_layout
21076
21077 \end_inset
21078 </cell>
21079 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21080 \begin_inset Text
21081
21082 \begin_layout Plain Layout
21083 改訂版の混合した作業コピー
21084 \end_layout
21085
21086 \end_inset
21087 </cell>
21088 </row>
21089 <row>
21090 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21091 \begin_inset Text
21092
21093 \begin_layout Plain Layout
21094 4168M
21095 \end_layout
21096
21097 \end_inset
21098 </cell>
21099 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21100 \begin_inset Text
21101
21102 \begin_layout Plain Layout
21103 修正された作業コピー
21104 \end_layout
21105
21106 \end_inset
21107 </cell>
21108 </row>
21109 <row>
21110 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21111 \begin_inset Text
21112
21113 \begin_layout Plain Layout
21114 4123S
21115 \end_layout
21116
21117 \end_inset
21118 </cell>
21119 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21120 \begin_inset Text
21121
21122 \begin_layout Plain Layout
21123 スイッチされた作業コピー
21124 \end_layout
21125
21126 \end_inset
21127 </cell>
21128 </row>
21129 <row>
21130 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
21131 \begin_inset Text
21132
21133 \begin_layout Plain Layout
21134 4123P
21135 \end_layout
21136
21137 \end_inset
21138 </cell>
21139 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
21140 \begin_inset Text
21141
21142 \begin_layout Plain Layout
21143 チェックアウト頻度が低かったことによる不完全な作業コピー
21144 \end_layout
21145
21146 \end_inset
21147 </cell>
21148 </row>
21149 <row>
21150 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21151 \begin_inset Text
21152
21153 \begin_layout Plain Layout
21154 4123:4168MS
21155 \end_layout
21156
21157 \end_inset
21158 </cell>
21159 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
21160 \begin_inset Text
21161
21162 \begin_layout Plain Layout
21163 改訂版が混合し,修正され,スイッチされた作業コピー
21164 \end_layout
21165
21166 \end_inset
21167 </cell>
21168 </row>
21169 </lyxtabular>
21170
21171 \end_inset
21172
21173
21174 \end_layout
21175
21176 \begin_layout Itemize
21177 ファイル改訂情報.
21178 \begin_inset Flex Code
21179 status collapsed
21180
21181 \begin_layout Plain Layout
21182 svn
21183 \begin_inset space ~
21184 \end_inset
21185
21186 info
21187 \begin_inset space ~
21188 \end_inset
21189
21190 –xml
21191 \begin_inset space ~
21192 \end_inset
21193
21194 file.lyx
21195 \end_layout
21196
21197 \end_inset
21198
21199 の出力を解析したものが返されます.サポートされるフラグは
21200 \end_layout
21201
21202 \begin_deeper
21203 \begin_layout Itemize
21204 最終コミットのバージョン番号(
21205 \begin_inset Flex Code
21206 status collapsed
21207
21208 \begin_layout Plain Layout
21209 vcs-revision
21210 \end_layout
21211
21212 \end_inset
21213
21214 )
21215 \end_layout
21216
21217 \begin_layout Itemize
21218 最終コミットの著者(
21219 \begin_inset Flex Code
21220 status collapsed
21221
21222 \begin_layout Plain Layout
21223 vcs-author
21224 \end_layout
21225
21226 \end_inset
21227
21228 )
21229 \end_layout
21230
21231 \begin_layout Itemize
21232 最終コミットの日付(
21233 \begin_inset Flex Code
21234 status collapsed
21235
21236 \begin_layout Plain Layout
21237 vcs-date
21238 \end_layout
21239
21240 \end_inset
21241
21242 )
21243 \end_layout
21244
21245 \begin_layout Itemize
21246 最終コミットの時間(
21247 \begin_inset Flex Code
21248 status collapsed
21249
21250 \begin_layout Plain Layout
21251 vcs-time
21252 \end_layout
21253
21254 \end_inset
21255
21256 )
21257 \end_layout
21258
21259 \end_deeper
21260 \begin_layout Standard
21261 これらの情報は,情報差込枠で得ることができます(例:
21262 \begin_inset Flex Code
21263 status collapsed
21264
21265 \begin_layout Plain Layout
21266 info-insert buffer vcs-date
21267 \end_layout
21268
21269 \end_inset
21270
21271 ).これらの情報は,ファイルをsvn管理下に置いたときのみ(すなわち使用中文書の
21272 \begin_inset Flex Code
21273 status collapsed
21274
21275 \begin_layout Plain Layout
21276 .svn
21277 \end_layout
21278
21279 \end_inset
21280
21281 ディレクトリがあるときのみ)利用可能です.
21282 \end_layout
21283
21284 \end_deeper
21285 \begin_layout Itemize
21286 もう一つの—ハッカー的な—方法は,SVNキーワードを使用する方法です
21287 \begin_inset Foot
21288 status collapsed
21289
21290 \begin_layout Plain Layout
21291 http://svnbook.red-bean.com/en/1.4/svn.advanced.props.special.keywords.html
21292 \end_layout
21293
21294 \end_inset
21295
21296 .簡単に言えば,ファイルキーワード特性を設定して(例:
21297 \family sans
21298 svn propset svn:keywords 'Rev' file.lyx
21299 \family default
21300 ),文書中にキーワード\SpecialChar TeX
21301 コード
21302 \begin_inset Foot
21303 status collapsed
21304
21305 \begin_layout Plain Layout
21306 これは,\SpecialChar LyX
21307 がキーワードタグの途中で改行してしまわないことを確実にするための,簡単な方法です.
21308 \end_layout
21309
21310 \end_inset
21311
21312 タグ(例:
21313 \begin_inset ERT
21314 status open
21315
21316 \begin_layout Plain Layout
21317
21318 $Rev$
21319 \end_layout
21320
21321 \end_inset
21322
21323 )を貼り付けるのです.このようにして,SVNクライアントは,各更新やコミットの後に自動的に改訂番号を代入することができるのです(例
21324 \begin_inset ERT
21325 status open
21326
21327 \begin_layout Plain Layout
21328
21329 $Rev: 59 $
21330 \end_layout
21331
21332 \end_inset
21333
21334 ).このアプローチにはいくつか問題があります.第一に,\SpecialChar TeX
21335 の世界では「$」文字は数式を表すのに使われるので,\SpecialChar LyX
21336 中の
21337 \begin_inset Formula $Rev$
21338 \end_inset
21339
21340 という数式表現が,すべて
21341 \begin_inset Formula $Rev:59$
21342 \end_inset
21343
21344 になってしまいます.その他のId・Date・Authorなどといったキーワードも同様です.第二に,SVN出力は使用中のロケールに依存するので,Dateが用いられ
21345 ると,SVNは,問題を引き起こすような文字列を容易に生成してしまいます.第三に,文書中には,番号だけでなく「Rev:59」という文字列全体が表示されてしまいます
21346 .Subversionがユーザ定義のキーワードを実装するまでは,このアプローチを信頼性を持って使用したり,\SpecialChar LyX
21347 がこれを直接サポートすることは,難しそうです.
21348 \end_layout
21349
21350 \begin_layout Subsection
21351 SVNとWindows環境
21352 \end_layout
21353
21354 \begin_layout Quote
21355 ユーザが,かなり早いうちに自分自身でコマンドライン操作を理解できないのであれば,TortoiseSVNを使った方が賢明でしょう.—P.
21356  A.
21357  ルービン
21358 \end_layout
21359
21360 \begin_layout Subsubsection
21361 準備
21362 \end_layout
21363
21364 \begin_layout Standard
21365 \SpecialChar LyX
21366 を導入して,Subversionレポジトリへのアクセス権を持っている他に,ユーザはSubversionクライアントプログラムを導入する必要があります.クライアン
21367 トプログラムのWindows用インストーラは
21368 \begin_inset CommandInset href
21369 LatexCommand href
21370 name "CollabNet"
21371 target "http://www.collab.net/nonav/downloads/subversion/"
21372 literal "false"
21373
21374 \end_inset
21375
21376 にあります.ユーザは
21377 \begin_inset CommandInset href
21378 LatexCommand href
21379 name "TortoiseSVN"
21380 target "http://tortoisesvn.tigris.org/"
21381 literal "false"
21382
21383 \end_inset
21384
21385 も導入することを考えるでしょう.これはSubversionの操作をWindows Explorerのコンテクスト(右クリック)メニューに統合します.\SpecialChar LyX
21386 外部で行う操
21387 作は,一般的にExplorerコンテクストメニューを使った方が便利です.TortoiseSVNは,\SpecialChar LyX
21388 自身が使用するクライアントプログラムの代わりとは成りませんので
21389 ,注意してください.
21390 \end_layout
21391
21392 \begin_layout Subsubsection
21393 文書をSubversion管理下に置くには
21394 \end_layout
21395
21396 \begin_layout Standard
21397 \SpecialChar LyX
21398 文書をSubversionのバージョン管理下に置く前に,その親ディレクトリをバージョン管理下に置かなくてはなりません.文書を,既にレポジトリに存在するプロジェク
21399 トに追加する際には,新規文書が置かれることになるディレクトリへ,プロジェクトをチェックアウトすることによって実現します.プロジェクト自体がバージョン管理下にない
21400 場合(たとえばこの文書が新規プロジェクトの最初のファイルである場合)には,このディレクトリをレポジトリにインポートしなくてはなりません.これは,\SpecialChar LyX
21401 の外部で行います
21402 .インポートもチェックアウトも共に,TortoiseSVNを使えば,Explorerのコンテクストメニューから簡単に終えることができます.あるいは,DOSプロン
21403 プトでコマンドライン・クライアントを使って成し遂げることもできます.TortoiseSVNを使ったプロジェクトのインポート手続きを下記で説明します.レポジトリは
21404 既に存在し,新規プロジェクトを
21405 \begin_inset Flex Code
21406 status collapsed
21407
21408 \begin_layout Plain Layout
21409 C:
21410 \backslash
21411 new project
21412 \end_layout
21413
21414 \end_inset
21415
21416 で開始するものとします.Subversionクライアントプログラムを使うための情報を得るには,DOSシェルで
21417 \begin_inset Flex Code
21418 status collapsed
21419
21420 \begin_layout Plain Layout
21421 svn –help
21422 \end_layout
21423
21424 \end_inset
21425
21426 を実行してください.
21427 \end_layout
21428
21429 \begin_layout Enumerate
21430 Windows Explorerで
21431 \begin_inset Flex Code
21432 status collapsed
21433
21434 \begin_layout Plain Layout
21435 C:
21436 \backslash
21437 new project
21438 \end_layout
21439
21440 \end_inset
21441
21442 を見つけ出して右クリックし,
21443 \begin_inset Flex MenuItem
21444 status collapsed
21445
21446 \begin_layout Plain Layout
21447 TortoiseSVN\SpecialChar menuseparator
21448 Repo-browser
21449 \end_layout
21450
21451 \end_inset
21452
21453 を選択してください.必要であれば,レポジトリのURLを調整し,OKをクリックしてください.
21454 \end_layout
21455
21456 \begin_layout Enumerate
21457 新規プロジェクトフォルダを置くレポジトリレベル(多くの場合最上位レベル)を右クリックし,
21458 \begin_inset Flex MenuItem
21459 status collapsed
21460
21461 \begin_layout Plain Layout
21462 Create folder\SpecialChar ldots
21463
21464 \end_layout
21465
21466 \end_inset
21467
21468 をクリックしてください.プロジェクトフォルダの名称を入力してOKをクリックしてください.必要であればログファイル用のメッセージを入力し,再びOKをクリックしてく
21469 ださい.新規プロジェクトフォルダがレポジトリに現れるはずです.最後にOKを再度クリックして,レポジトリブラウザを終了してください.
21470 \end_layout
21471
21472 \begin_layout Enumerate
21473 再度
21474 \begin_inset Flex Code
21475 status collapsed
21476
21477 \begin_layout Plain Layout
21478 C:
21479 \backslash
21480 new project
21481 \end_layout
21482
21483 \end_inset
21484
21485 を右クリックし,今度は
21486 \begin_inset Flex MenuItem
21487 status collapsed
21488
21489 \begin_layout Plain Layout
21490 SVN Checkout\SpecialChar ldots
21491
21492 \end_layout
21493
21494 \end_inset
21495
21496 を選択してください.レポジトリにたった今作成した,プロジェクトフォルダのURLを選択し,チェックアウトディレクトリを
21497 \begin_inset Flex Code
21498 status collapsed
21499
21500 \begin_layout Plain Layout
21501 C:
21502 \backslash
21503 new project
21504 \end_layout
21505
21506 \end_inset
21507
21508 に設定してから,OKをクリックしてください.フォルダが空でないことを警告されますが,OKをクリックして進んでください.すると,
21509 \begin_inset Flex Code
21510 status collapsed
21511
21512 \begin_layout Plain Layout
21513 C:
21514 \backslash
21515 new project
21516 \end_layout
21517
21518 \end_inset
21519
21520 の下に
21521 \begin_inset Flex Code
21522 status collapsed
21523
21524 \begin_layout Plain Layout
21525 .svn
21526 \end_layout
21527
21528 \end_inset
21529
21530 ディレクトリが作成されます.
21531 \end_layout
21532
21533 \begin_layout Enumerate
21534 \SpecialChar LyX
21535 で文書を新規作成するか開くかして,
21536 \begin_inset Flex MenuItem
21537 status collapsed
21538
21539 \begin_layout Plain Layout
21540 ファイル\SpecialChar menuseparator
21541 バージョン管理\SpecialChar menuseparator
21542 登録
21543 \end_layout
21544
21545 \end_inset
21546
21547 をクリックします.ログメッセージを入力してOKをクリックし,文書をバージョン管理にコミットしてください.
21548 \end_layout
21549
21550 \begin_layout Standard
21551 爾後,
21552 \begin_inset Flex MenuItem
21553 status collapsed
21554
21555 \begin_layout Plain Layout
21556 ファイル\SpecialChar menuseparator
21557 バージョン管理
21558 \end_layout
21559
21560 \end_inset
21561
21562 メニューのすべての機能が使用できるようになります.Windows ExplorerのTortoiseSVNコンテクストメニューか,コマンドプロンプトでのSubv
21563 ersionクライアントプログラムを使用して,文書をチェックイン・チェックアウトしたり,履歴を見たりといったことができるようになります.
21564 \end_layout
21565
21566 \begin_layout Subsubsection
21567 Windows下でSVNと共にSSHトンネルを使うには
21568 \end_layout
21569
21570 \begin_layout Standard
21571 Linuxに較べて,WindowsでSVNクライアントをSSH経由で通信するようにさせるのは,かなり厄介な仕事です.どのようにクライアント側を設定すればよいか,
21572 少なくとも幾分かのヒントをお示しするつもりですが,sshとWindowsコマンドラインの知識が前もって必要であり,それと共にかなりの量のフラストレーションが溜ま
21573 ることを覚悟しておいてください.
21574 \end_layout
21575
21576 \begin_layout Enumerate
21577 前節で述べたように,Windows用のSVNクライアントを入手してください.これが新規の導入である場合には,何らかのSVNコマンド(たとえば
21578 \begin_inset Flex Code
21579 status collapsed
21580
21581 \begin_layout Plain Layout
21582 svn –version
21583 \end_layout
21584
21585 \end_inset
21586
21587 )を実行して,configファイル群を生成させてください.これらは後で変更を加える必要があります.
21588 \end_layout
21589
21590 \begin_layout Enumerate
21591 Windows用のsshクライアントを選んでください.選択肢はたくさんありますが,ここではPutty tools
21592 \begin_inset Foot
21593 status open
21594
21595 \begin_layout Plain Layout
21596 \begin_inset Flex URL
21597 status collapsed
21598
21599 \begin_layout Plain Layout
21600
21601 http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html
21602 \end_layout
21603
21604 \end_inset
21605
21606
21607 \end_layout
21608
21609 \end_inset
21610
21611 のものを使用することとしましょう.クライアントが接続の度にパスワードを訊いてこないように,接続を自動化する必要があります.簡単にするために,追加的なパスワード保
21612 護などを加えない
21613 \begin_inset Flex Ruby
21614 status collapsed
21615
21616 \begin_layout Plain Layout
21617
21618 \begin_inset Argument post:1
21619 status collapsed
21620
21621 \begin_layout Plain Layout
21622 キー
21623 \end_layout
21624
21625 \end_inset
21626
21627
21628 \end_layout
21629
21630 \end_inset
21631
21632 のみを使用することとします.
21633 \end_layout
21634
21635 \begin_deeper
21636 \begin_layout Enumerate
21637 \begin_inset Flex Code
21638 status collapsed
21639
21640 \begin_layout Plain Layout
21641 puttygen
21642 \end_layout
21643
21644 \end_inset
21645
21646 を使って鍵を生成します..ppkプライベート鍵ファイルを保存し,パブリック鍵ファイルはサーバ側に置きます.SVNサーバがLinuxで走っている場合,このパブリック
21647 鍵の書式はLinuxのopensshと互換性がないために,「Public key for pasting into OpenSSH authorized_key
21648 s file:」編集フィールドから,直接サーバの
21649 \begin_inset Flex Code
21650 status collapsed
21651
21652 \begin_layout Plain Layout
21653 ~/.ssh/authorized_keys
21654 \end_layout
21655
21656 \end_inset
21657
21658 または
21659 \begin_inset Flex Code
21660 status collapsed
21661
21662 \begin_layout Plain Layout
21663 authorized_keys2
21664 \end_layout
21665
21666 \end_inset
21667
21668 ファイルにコピー&ペーストを行わなくてはならないことに注意してください.
21669 \end_layout
21670
21671 \begin_layout Enumerate
21672 Puttyのplinkを入手してください.SVNのconfigファイル
21673 \begin_inset Foot
21674 status collapsed
21675
21676 \begin_layout Plain Layout
21677 正確なパスはWindowsのバージョンに依りますが,通常は
21678 \begin_inset Flex Code
21679 status collapsed
21680
21681 \begin_layout Plain Layout
21682 c:
21683 \backslash
21684 Documents and Settings
21685 \backslash
21686 user
21687 \backslash
21688 Application Data
21689 \backslash
21690 Subversion
21691 \backslash
21692 config
21693 \end_layout
21694
21695 \end_inset
21696
21697
21698 \begin_inset Flex Code
21699 status collapsed
21700
21701 \begin_layout Plain Layout
21702 AppData
21703 \backslash
21704 Roaming
21705 \backslash
21706 Subversion
21707 \end_layout
21708
21709 \end_inset
21710
21711 辺りにあります.
21712 \end_layout
21713
21714 \end_inset
21715
21716 中の
21717 \begin_inset Flex Code
21718 status collapsed
21719
21720 \begin_layout Plain Layout
21721 [tunnels]
21722 \end_layout
21723
21724 \end_inset
21725
21726 セクションにsshコマンドを設定してください.例:
21727 \begin_inset Flex Code
21728 status collapsed
21729
21730 \begin_layout Plain Layout
21731 ssh=c:/path/plink.exe -i c:/path/private_key.ppk
21732 \end_layout
21733
21734 \end_inset
21735
21736
21737 \begin_inset Foot
21738 status collapsed
21739
21740 \begin_layout Plain Layout
21741 通常,正確なコマンドを機能させるには長い時間がかかり,それは多くの物事に依存します.たとえば,リモートサーバがPuttyなどの既定セッションとして保存されないよ
21742 うにしてください.うまく行かない場合には,まずSVNなしでplink経由の接続を試してください.
21743 \end_layout
21744
21745 \end_inset
21746
21747
21748 \end_layout
21749
21750 \end_deeper
21751 \begin_layout Enumerate
21752 SVNアーカイブをチェックアウトしてください.例:
21753 \begin_inset Newline newline
21754 \end_inset
21755
21756
21757 \begin_inset Flex Code
21758 status collapsed
21759
21760 \begin_layout Plain Layout
21761 svn co svn+ssh://user@server/repository_path
21762 \end_layout
21763
21764 \end_inset
21765
21766
21767 \end_layout
21768
21769 \begin_layout Subsubsection
21770 行末変換
21771 \end_layout
21772
21773 \begin_layout Standard
21774 共著者同士がLinuxとWindowsを混在させているとき,\SpecialChar LyX
21775 は.lyxファイル中で異なった行末記号を使用することになります.これは,\SpecialChar LyX
21776 の機能に関する限り問題になりま
21777 せんが,コミット差分は巨大になり,マージではコンフリクトを引き起こしがちです.幸いにして,SVNは,.lyxファイルを
21778 \begin_inset Flex Code
21779 status collapsed
21780
21781 \begin_layout Plain Layout
21782 native
21783 \end_layout
21784
21785 \end_inset
21786
21787 モードに切り替える際
21788 \begin_inset Foot
21789 status collapsed
21790
21791 \begin_layout Plain Layout
21792 手短には
21793 \begin_inset Flex Code
21794 status collapsed
21795
21796 \begin_layout Plain Layout
21797 svn propset svn:eol-style native FILE_NAME
21798 \end_layout
21799
21800 \end_inset
21801
21802
21803 \end_layout
21804
21805 \end_inset
21806
21807 ,CR/LF問題をどのように取り扱えばいいかを知っているので大丈夫です
21808 \begin_inset Foot
21809 status collapsed
21810
21811 \begin_layout Plain Layout
21812 \begin_inset Flex URL
21813 status collapsed
21814
21815 \begin_layout Plain Layout
21816
21817 http://svnbook.red-bean.com/en/1.4/svn.advanced.props.file-portability.html
21818 \end_layout
21819
21820 \end_inset
21821
21822
21823 \end_layout
21824
21825 \end_inset
21826
21827
21828 \end_layout
21829
21830 \begin_layout Subsection
21831 \SpecialChar LyX
21832 におけるGITコマンド
21833 \end_layout
21834
21835 \begin_layout Standard
21836 \SpecialChar LyX
21837 で,最小限のGITコマンドがサポートされるようになりました.これらのコマンドは,
21838 \family sans
21839 ファイル\SpecialChar menuseparator
21840 バージョン管理
21841 \family default
21842 にあります.リポジトリのアクセスに,パスワード保護されたsshを使用している場合には,ターミナルウィンドウでの操作をするように促されます.\SpecialChar LyX
21843 は,GIT
21844  1.7に対して試験を行っています.
21845 \end_layout
21846
21847 \begin_layout Standard
21848 GITと他のバージョン管理システムとの大きな相違点は,GITの配布形態にあります.伝統的なバージョン管理システムでは,リポジトリをホストする,中心となるサーバー
21849 があります.ユーザーは変更点をサーバーにコミットし,他のユーザーが行った更新分をサーバーから受け取ります.一方,GITでは,ユーザーは,ローカルのリポジトリにコ
21850 ミットを行います.ローカルリポジトリは,GITコマンドの
21851 \begin_inset Flex Code
21852 status open
21853
21854 \begin_layout Plain Layout
21855 pull
21856 \end_layout
21857
21858 \end_inset
21859
21860 または
21861 \begin_inset Flex Code
21862 status open
21863
21864 \begin_layout Plain Layout
21865 push
21866 \end_layout
21867
21868 \end_inset
21869
21870 を使って,1つ以上のリモートリポジトリと同期されます.\SpecialChar LyX
21871 は,リモートのGITリポジトリとは,一切関わりません.CVSやSVNの集権的リポジトリに対して行うのと同じ
21872 ことを,ローカルのリポジトリに対してのみ行います.リモートのGITリポジトリを使用している場合には,お好みのGITクライアントを使用して,
21873 \begin_inset Flex Code
21874 status open
21875
21876 \begin_layout Plain Layout
21877 pull
21878 \end_layout
21879
21880 \end_inset
21881
21882 または
21883 \begin_inset Flex Code
21884 status open
21885
21886 \begin_layout Plain Layout
21887 push
21888 \end_layout
21889
21890 \end_inset
21891
21892 の操作を行う必要があります.
21893 \end_layout
21894
21895 \begin_layout Subsubsection
21896 登録
21897 \end_layout
21898
21899 \begin_layout Standard
21900 お使いの文書が改訂管理下に置かれていなければ,メニューにはこの項目だけが表示されます.もし改訂管理が有効ならば,
21901 \family sans
21902 登録
21903 \family default
21904 項目は表示されません.
21905 \end_layout
21906
21907 \begin_layout Standard
21908 本コマンドは,既に文書のあるディレクトリをGIT管理下に置いている場合に
21909 \emph on
21910 のみ
21911 \emph default
21912 (すなわち
21913 \begin_inset Flex Code
21914 status collapsed
21915
21916 \begin_layout Plain Layout
21917 .git/index
21918 \end_layout
21919
21920 \end_inset
21921
21922 ファイルが存在する場合にのみ),お使いの文書をGITに登録します.つまり,アーカイブはご自分でチェックアウトしなくてはなりません.
21923 \end_layout
21924
21925 \begin_layout Standard
21926 すると,文書の最初の説明文を入力するように促されます.登録したファイルは,まだコミットされたわけではないことに注意してください.
21927 \end_layout
21928
21929 \begin_layout Standard
21930 実行されるGITコマンドは,
21931 \begin_inset Flex Code
21932 status collapsed
21933
21934 \begin_layout Plain Layout
21935 git add "<ファイル名>"
21936 \end_layout
21937
21938 \end_inset
21939
21940 です.
21941 \end_layout
21942
21943 \begin_layout Standard
21944 スイッチの説明は
21945 \begin_inset Flex Code
21946 status collapsed
21947
21948 \begin_layout Plain Layout
21949 man git
21950 \end_layout
21951
21952 \end_inset
21953
21954 をお読みください.
21955 \end_layout
21956
21957 \begin_layout Subsubsection
21958 変更をチェックイン
21959 \end_layout
21960
21961 \begin_layout Standard
21962 ファイルの編集を終えたら,変更をコミットします.このとき,変更の説明文を入れるよう促されます.その後,変更がコミットされます.
21963 \end_layout
21964
21965 \begin_layout Standard
21966 GITコマンド:
21967 \begin_inset Flex Code
21968 status collapsed
21969
21970 \begin_layout Plain Layout
21971 git commit -q -m
21972 \begin_inset Quotes erd
21973 \end_inset
21974
21975 <入力した説明文>
21976 \begin_inset Quotes erd
21977 \end_inset
21978
21979  "<ファイル名>"
21980 \end_layout
21981
21982 \end_inset
21983
21984
21985 \end_layout
21986
21987 \begin_layout Subsubsection
21988 リポジトリ版に戻す
21989 \end_layout
21990
21991 \begin_layout Standard
21992 これは,最後のチェックイン以降,文書に加えられた変更をすべて廃棄します.変更が廃棄される前に警告が表示されます.
21993 \end_layout
21994
21995 \begin_layout Standard
21996 GITコマンド:
21997 \begin_inset Flex Code
21998 status collapsed
21999
22000 \begin_layout Plain Layout
22001 git checkout -q 
22002 \begin_inset Quotes eld
22003 \end_inset
22004
22005 <ファイル名>
22006 \begin_inset Quotes erd
22007 \end_inset
22008
22009
22010 \end_layout
22011
22012 \end_inset
22013
22014
22015 \end_layout
22016
22017 \begin_layout Subsubsection
22018 ファイル名変更
22019 \end_layout
22020
22021 \begin_layout Standard
22022 これは,現行文書のファイル名を変更します.最後のチェックイン以降,変更が加えられていないサラの文書であることが要求されます.ファイル名とコピー操作の説明を入力す
22023 るように促され,その後,ローカルとリポジトリの両方でファイル名が変更されます.新旧ファイル名の文書の親ディレクトリが異なる場合には,コピーにインクルードされたフ
22024 ァイルの相対パスは,(
22025 \family sans
22026 ファイル\SpecialChar menuseparator
22027 名前をつけて保存\SpecialChar ldots
22028
22029 \family default
22030 と同様に)全て調整されます.最後に,新ファイル名を使ってファイルが再度読み込まれます.
22031 \end_layout
22032
22033 \begin_layout Labeling
22034 \labelwidthstring 00.00.0000
22035 GITコマンド:
22036 \end_layout
22037
22038 \begin_layout Labeling
22039 \labelwidthstring 00.00.0000
22040 \begin_inset Flex Code
22041 status collapsed
22042
22043 \begin_layout Plain Layout
22044 git mv "<ファイル名>" "<新ファイル名>"
22045 \end_layout
22046
22047 \end_inset
22048
22049
22050 \end_layout
22051
22052 \begin_layout Labeling
22053 \labelwidthstring 00.00.0000
22054 \begin_inset Flex Code
22055 status collapsed
22056
22057 \begin_layout Plain Layout
22058 git commit
22059 \end_layout
22060
22061 \end_inset
22062
22063
22064 \end_layout
22065
22066 \begin_layout Subsubsection
22067 履歴を表示
22068 \end_layout
22069
22070 \begin_layout Standard
22071 これは,GIT文書の全履歴を表示します.
22072 \begin_inset Flex Code
22073 status collapsed
22074
22075 \begin_layout Plain Layout
22076 git log 
22077 \begin_inset Quotes eld
22078 \end_inset
22079
22080 <ファイル名>
22081 \begin_inset Quotes erd
22082 \end_inset
22083
22084
22085 \end_layout
22086
22087 \end_inset
22088
22089 の出力がブラウザに表示されます.
22090 \end_layout
22091
22092 \begin_layout Subsubsection
22093 改訂情報
22094 \end_layout
22095
22096 \begin_layout Standard
22097 \SpecialChar LyX
22098 は,ファイルの最終コミットのGITハッシュ番号・著者名・最終コミットの日時をサポートします.これらの情報は,すべて
22099 \family typewriter
22100 git log -n 1 --pretty=format:%H%n%an%n%ai
22101 \family default
22102 によって抽出されます.ツリーバージョン情報は,
22103 \family typewriter
22104 git describe --abbrev --dirty --long
22105 \family default
22106 で取得されます.詳細については,第
22107 \begin_inset CommandInset ref
22108 LatexCommand ref
22109 reference "subsec:VCS改訂情報"
22110
22111 \end_inset
22112
22113 節を参照してください.
22114 \end_layout
22115
22116 \begin_layout Subsection
22117 さらなる調整
22118 \end_layout
22119
22120 \begin_layout Standard
22121 vcコマンド機構が最近になって付け加えられたおかげで,\SpecialChar LyX
22122 のパワーユーザは,改訂管理のための自製コマンドを作ることができるようになりました.
22123 \end_layout
22124
22125 \begin_layout Standard
22126 たとえば,以下のようにして,二つのTortoiseSVNコマンドを直接統合することができます.
22127 \end_layout
22128
22129 \begin_layout Description
22130 コミット: 
22131 \begin_inset Flex Code
22132 status collapsed
22133
22134 \begin_layout Plain Layout
22135 vc-command DR "." "TortoiseProc /command:commit /path:$$p"
22136 \end_layout
22137
22138 \end_inset
22139
22140
22141 \end_layout
22142
22143 \begin_layout Description
22144 元に戻す: 
22145 \begin_inset Flex Code
22146 status collapsed
22147
22148 \begin_layout Plain Layout
22149 vc-command DR "." "TortoiseProc /command:revert /path:$$p"
22150 \end_layout
22151
22152 \end_inset
22153
22154
22155 \end_layout
22156
22157 \begin_layout Subsection
22158 バージョン管理と文書比較
22159 \end_layout
22160
22161 \begin_layout Standard
22162 バージョン管理は,通常
22163 \begin_inset Flex Code
22164 status collapsed
22165
22166 \begin_layout Plain Layout
22167 diff
22168 \end_layout
22169
22170 \end_inset
22171
22172 ダンプを生成することによって,改訂版の間の変更点を検査するのが,典型的な使用法です.これは平文ファイルには有効なのですが,複雑な構造を持つ\SpecialChar LyX
22173 ファイルの場合には,あ
22174 まり便利ではありません.そこで,\SpecialChar LyX
22175 は独自の文書比較機能を提供しています.この機能を呼び出すには2つの方法があります.1つは,\SpecialChar LyX
22176
22177 \begin_inset Flex Code
22178 status collapsed
22179
22180 \begin_layout Plain Layout
22181 VC_COMPARE
22182 \end_layout
22183
22184 \end_inset
22185
22186 関数を直接呼び出す方法であり(詳細は\SpecialChar LyX
22187 関数説明書を参照),もう1つは
22188 \begin_inset Flex MenuItem
22189 status collapsed
22190
22191 \begin_layout Plain Layout
22192 旧改訂と比較\SpecialChar ldots
22193
22194 \end_layout
22195
22196 \end_inset
22197
22198 メニューないしアイコンを使用する方法です.当該文書のうち,任意の2つの改訂版を比較することもできますし,編集中の現行版を古い改訂版と比較することもできます(この
22199 とき改訂版遡及数「
22200 \begin_inset Flex MenuItem
22201 status collapsed
22202
22203 \begin_layout Plain Layout
22204 0
22205 \end_layout
22206
22207 \end_inset
22208
22209 」は,編集中のファイルと最後にコミットした改訂版との比較を意味します).
22210 \end_layout
22211
22212 \begin_layout Standard
22213 この機能は,SVNとRCSでサポートされていますが,RCSは,より複雑なバージョン付けスキームを持っているため,制約があります.ダイアログ中で改訂版を指定する際
22214 の数字は,つねにRCS改訂番号の最後の数を指し示します(例:「1.2.35」版のときには「35」).現在のところ,改訂のGIT表記はサポートされておらず,HEAD~
22215 Xの形で表記されるXステップ前の改訂版を,編集中文書と比較することのみが可能です.
22216 \end_layout
22217
22218 \begin_layout Section
22219 文芸プログラミング
22220 \end_layout
22221
22222 \begin_layout Standard
22223
22224 \noun on
22225 Kayvan Sylvan
22226 \noun default
22227 (kayvan@sylvan.com)改訂 
22228 \noun on
22229 Edmar Wienskoski Jr.
22230 \noun default
22231 (edmar-w-jr@technologist.com)原文
22232 \end_layout
22233
22234 \begin_layout Subsection
22235 はじめに
22236 \end_layout
22237
22238 \begin_layout Standard
22239 この節の主な目的は,文芸的プログラミング(literate programming)のために,\SpecialChar LyX
22240 をどう使えばよいかをお見せすることです.ここでは,あなたがこのプロ
22241 グラミング技術をよくご存じで,「tangling」や「weaving」の意味するところを知っているものとして説明します.そうでない場合には,以下の各節にあるウェ
22242 ブリンクをたどってください.そこには,かつての開発の歴史から最新のツールチップまで,たくさんの良質なドキュメンテーションがあります.
22243 \end_layout
22244
22245 \begin_layout Standard
22246 また,あなたが,\SpecialChar LyX
22247 の設定を変更することを厭わない程度まで\SpecialChar LyX
22248 に習熟しており,Xリソースファイルにも親しんでいることを前提にしています.そうでない場合は,あなたの必要と
22249 するトピックを扱っている,\SpecialChar LyX
22250 の他の説明書で調べてください.
22251 \end_layout
22252
22253 \begin_layout Subsection
22254 文芸プログラミング
22255 \end_layout
22256
22257 \begin_layout Standard
22258 以下は,文芸プログラミング FAQからの抜粋です.
22259 \end_layout
22260
22261 \begin_layout Quotation
22262 文芸プログラミングは,人間が読むのに適した形でのドキュメンテーションとソースの組合わせです.実際,文芸的プログラムは楽しい読み物であるべきであり,さらには参加し
22263 たいとさえ思わせるべきなのです!(ボブ,ごめん.言わずにはいれなかった.)一般的に,文芸プログラムは,ソースとドキュメンテーションを同一ファイル上に結合したもの
22264 です.そして,文芸プログラミングツールは,ファイルを解析して,読むことのできるドキュメンテーションか,あるいはコンパイル可能なソースを生成します.文芸プログラミ
22265 ングのWEBスタイルは,D.
22266 \begin_inset space \thinspace{}
22267 \end_inset
22268
22269 E.
22270  Knuthが,\SpecialChar TeX
22271 組版ソフトウエアを開発中に作り出したものです.
22272 \end_layout
22273
22274 \begin_layout Standard
22275 他のエキスパートの発言です.
22276 \end_layout
22277
22278 \begin_layout Quotation
22279
22280 \emph on
22281 文芸プログラミングは,冗長なコメント付けと何が違いますか?
22282 \end_layout
22283
22284 \begin_layout Quotation
22285 3つの際立った特徴があります.重要な順に列挙すれば,
22286 \end_layout
22287
22288 \begin_deeper
22289 \begin_layout Itemize
22290 推敲の順序が柔軟
22291 \end_layout
22292
22293 \begin_layout Itemize
22294 ブラウジングの自動サポート
22295 \end_layout
22296
22297 \begin_layout Itemize
22298 特に図式と数式を含んだドキュメンテーションの組版
22299 \end_layout
22300
22301 \end_deeper
22302 \begin_layout Quotation
22303 などがあります.
22304 \end_layout
22305
22306 \begin_layout Standard
22307 あなたの興味に火を付けたところで書誌情報を見てみましょう.
22308 \end_layout
22309
22310 \begin_layout Subsubsection
22311 書誌情報
22312 \end_layout
22313
22314 \begin_layout Standard
22315 完全な文芸プログラミング FAQは
22316 \end_layout
22317
22318 \begin_layout Quote
22319 Literate Programming FAQ 
22320 \begin_inset Flex URL
22321 status collapsed
22322
22323 \begin_layout Plain Layout
22324
22325 http://www.xmarks.com/site/shelob.ce.ttu.edu/daves/lpfaq/faq.html
22326 \end_layout
22327
22328 \end_inset
22329
22330
22331 \end_layout
22332
22333 \begin_layout Standard
22334 にあります.
22335 \end_layout
22336
22337 \begin_layout Standard
22338 このFAQには,23(二十三です!)の文芸プログラミング用ツールが列挙されています.一部のツールは,特定のプログラミング言語用に特化したものですが,一般的な対象
22339 を持つものもあります.私は自分で使うのに,いくつかの理由から
22340 \noun on
22341 Noweb
22342 \noun default
22343 を選びました.
22344 \end_layout
22345
22346 \begin_layout Itemize
22347 説明文書を\SpecialChar LaTeX
22348 でもHTMLでも出力できる.
22349 \end_layout
22350
22351 \begin_layout Itemize
22352 開放的なアーキテクチャに持っているので,新しいフィルタをプラグインとして加えたり,自分が必要な特別な処理を実行することが容易である.
22353 \end_layout
22354
22355 \begin_layout Itemize
22356 すでに利用可能となっているフィルタの良質なコレクションがある(HTMLはその一つです).
22357 \end_layout
22358
22359 \begin_layout Itemize
22360 無料である.
22361 \end_layout
22362
22363 \begin_layout Standard
22364 Nowebのウェブページは
22365 \end_layout
22366
22367 \begin_layout Quote
22368 Nowebホームページ 
22369 \begin_inset Flex URL
22370 status collapsed
22371
22372 \begin_layout Plain Layout
22373
22374 http://www.cs.virginia.edu/~nr/noweb/
22375 \end_layout
22376
22377 \end_inset
22378
22379
22380 \end_layout
22381
22382 \begin_layout Standard
22383 にあります.ここから始めれば,たくさんの興味深いリンクや,文芸プログラミングの用例にたどり着くことができます.
22384 \end_layout
22385
22386 \begin_layout Subsection
22387 \SpecialChar LyX
22388 とNowebを使った文芸プログラミング
22389 \end_layout
22390
22391 \begin_layout Standard
22392 \SpecialChar LyX
22393 における文芸プログラミングのサポートは,\SpecialChar LyX
22394 の汎用変換機構を使用して実現しています.このサポートは「Noweb非依存」的な方法で提供されているので,LyXの設定を変
22395 更するだけで,自分の好きな他の文芸プログラミングツールを使って,この新しい\SpecialChar LyX
22396 の機能を利用することができます.
22397 \end_layout
22398
22399 \begin_layout Subsubsection
22400 ドキュメントとコードの生成(weavingおよびtangling)
22401 \end_layout
22402
22403 \begin_layout Paragraph
22404 nowebモジュールの使用
22405 \end_layout
22406
22407 \begin_layout Standard
22408 Nowebと\SpecialChar LyX
22409 の導入に成功したならば,新規文書を開いたときにはいつも,文書クラスを選択した後,
22410 \family sans
22411 文書\SpecialChar menuseparator
22412 設定
22413 \family default
22414 メニューで「noweb」モジュールを追加するようにしてください.Nowebが正しく導入されていれば,「モジュール」リンクをクリックした際,利用可能リストに「no
22415 web」モジュールが表示され,文書に追加できるようになっています.
22416 \end_layout
22417
22418 \begin_layout Paragraph
22419 コードの入力
22420 \end_layout
22421
22422 \begin_layout Standard
22423 \SpecialChar LyX
22424 では,
22425 \begin_inset Flex Noun
22426 status collapsed
22427
22428 \begin_layout Plain Layout
22429 Chunk
22430 \end_layout
22431
22432 \end_inset
22433
22434 という名前のレイアウトを使えば,コードを入力することができます.Nowebは次のようにchunks を区切ります.
22435 \end_layout
22436
22437 \begin_layout LyX-Code
22438 <<My code>>=
22439 \end_layout
22440
22441 \begin_layout LyX-Code
22442   code
22443 \end_layout
22444
22445 \begin_layout LyX-Code
22446   more code
22447 \end_layout
22448
22449 \begin_layout LyX-Code
22450   even more code
22451 \end_layout
22452
22453 \begin_layout LyX-Code
22454   @
22455 \end_layout
22456
22457 \begin_layout Standard
22458 問題は<<と@の間にあるものを完全にそのままの形で扱わなければならないことです.つまり,\SpecialChar LyX
22459 は,この間に書かれたものを特別に解釈することは決してあってはなりません.
22460 これも
22461 \begin_inset Flex Noun
22462 status collapsed
22463
22464 \begin_layout Plain Layout
22465 Chunk
22466 \end_layout
22467
22468 \end_inset
22469
22470 によって取り扱われ,通常の段落のように見えますが,自由に空白を入れることができます.
22471 \end_layout
22472
22473 \begin_layout Standard
22474 特殊な注釈として,chunk内でNowebの「%def」を使えば,Nowebのidentifierの相互参照に項目を加えることができます.次の例を見てください.
22475 \end_layout
22476
22477 \begin_layout LyX-Code
22478 <<My chunk>>=
22479 \end_layout
22480
22481 \begin_layout LyX-Code
22482 def some_function(args):
22483 \end_layout
22484
22485 \begin_layout LyX-Code
22486    "This is the doc string for this function."
22487 \end_layout
22488
22489 \begin_layout LyX-Code
22490    print "My args: ", args
22491 \end_layout
22492
22493 \begin_layout LyX-Code
22494 @ %def some_function
22495 \end_layout
22496
22497 \begin_layout Standard
22498 これをどのように使って,その結果相互参照がどうなるかは
22499 \emph on
22500 LIBDIR/examples/listerrors.lyx
22501 \emph default
22502 の中の文芸pythonプログラムを見るとよくわかります.
22503 \end_layout
22504
22505 \begin_layout Paragraph
22506 説明文書の生成
22507 \end_layout
22508
22509 \begin_layout Standard
22510 この時点で,適切な文書クラスを持ち,いくつかのコードとテキストが入った新規文書ファイルが作成されているはずです.これをどうやって印刷したらいいのでしょう.答えは
22511 簡単で,通常の文書で行うように
22512 \family sans
22513 文書\SpecialChar menuseparator
22514 表示
22515 \family default
22516 等を選ぶだけです.特別な手続きは必要ありません.
22517 \end_layout
22518
22519 \begin_layout Standard
22520 理解を助けるために,\SpecialChar LyX
22521 の内部で何が起っているかを説明しておきましょう.
22522 \end_layout
22523
22524 \begin_layout Enumerate
22525
22526 \family sans
22527 文書\SpecialChar menuseparator
22528 更新
22529 \family default
22530 が選択されると,\SpecialChar LaTeX
22531 ファイルがつくられます.
22532 \end_layout
22533
22534 \begin_deeper
22535 \begin_layout Standard
22536 文書が文芸プログラミング用のクラスであった場合には,拡張子に(
22537 \begin_inset Flex MenuItem
22538 status collapsed
22539
22540 \begin_layout Plain Layout
22541 設定
22542 \end_layout
22543
22544 \end_inset
22545
22546 パネルで設定した)文芸プログラム用のものがつけられます.それ以外は .texが拡張子に使われます.
22547 \end_layout
22548
22549 \end_deeper
22550 \begin_layout Enumerate
22551 違いがファイル名だけなのに注意してください.\SpecialChar LyX
22552 による特別な処理は必要ありません.
22553 \begin_inset Flex Noun
22554 status collapsed
22555
22556 \begin_layout Plain Layout
22557 Chunk
22558 \end_layout
22559
22560 \end_inset
22561
22562 環境でコードを入力するのだけがポイントです.
22563 \end_layout
22564
22565 \begin_layout Enumerate
22566 文書が何らかの文芸プログラムクラスなら,\SpecialChar LyX
22567 は,\SpecialChar LyX
22568 からNowebへの内部変換子を用い,それからNowebから\SpecialChar LaTeX
22569 への変換子
22570 \begin_inset Foot
22571 status collapsed
22572
22573 \begin_layout Plain Layout
22574 これらの変換子は,
22575 \family sans
22576 ツール\SpecialChar menuseparator
22577 設定
22578 \family default
22579 パネルの変換子タブに定義されています.変換子の一般的な情報については,取扱説明書『
22580 \emph on
22581 カスタマイズ篇
22582 \emph default
22583 』の「
22584 \emph on
22585 変換子
22586 \emph default
22587 」の節をご覧ください.
22588 \end_layout
22589
22590 \end_inset
22591
22592 を使って\SpecialChar LaTeX
22593 ファイルを生成します.
22594 \end_layout
22595
22596 \begin_deeper
22597 \begin_layout Standard
22598 それ以外の場合はこのステップを飛ばします.
22599 \end_layout
22600
22601 \end_deeper
22602 \begin_layout Enumerate
22603 最後に\SpecialChar LaTeX
22604 が実行され,通常の文書と同じ後処理が行われます.
22605 \end_layout
22606
22607 \begin_layout Standard
22608 様々な変換子が実行するコマンドを変更すれば,簡単に,特定の「文芸プログラムツール」から変更することができます.
22609 \end_layout
22610
22611 \begin_layout Paragraph
22612 コードの生成
22613 \end_layout
22614
22615 \begin_layout Standard
22616 ビルドメニューが選ばれた場合や,それに対応するツールバーのボタンが押された場合,上のステップ1と同様に\SpecialChar LaTeX
22617 ファイルが生成されます.それから\SpecialChar LyX
22618
22619 \family typewriter
22620 Noweb->Program
22621 \family default
22622 のコンバータを起動します.通常は,このコンバータは(他のコンバータと同じように)2つの部分からできています.
22623 \end_layout
22624
22625 \begin_layout Enumerate
22626 変換プログラム.このプログラムは,一つのフォーマットから他のフォーマットへの変換を行います(この場合は,Nowebフォーマットからプログラムの疑似フォーマットへ
22627 変換します).
22628 \end_layout
22629
22630 \begin_layout Enumerate
22631 エラーログ解析子.これはエラーメッセージを\SpecialChar LyX
22632 が理解できる形へ書き直します.これによって,\SpecialChar LyX
22633 はファイルバッファの正しい位置へエラーボックスを配置することができます.
22634 \end_layout
22635
22636 \begin_layout Standard
22637 冒頭部,「変換子」設定は
22638 \begin_inset Newline newline
22639 \end_inset
22640
22641
22642 \begin_inset Quotes eld
22643 \end_inset
22644
22645
22646 \family typewriter
22647 build-script $$i $$r
22648 \family default
22649
22650 \begin_inset Quotes erd
22651 \end_inset
22652
22653
22654 \begin_inset Newline newline
22655 \end_inset
22656
22657 と指定します.これは基本的に,\SpecialChar LyX
22658
22659 \begin_inset Quotes erd
22660 \end_inset
22661
22662
22663 \family typewriter
22664 build-script
22665 \family default
22666
22667 \begin_inset Quotes erd
22668 \end_inset
22669
22670 (プログラムかスクリプト名)を(一般には\SpecialChar LyX
22671 の一時ファイル用のディレクトリにつくられる),Nowebファイルの名前と元の\SpecialChar LyX
22672 ファイルのディレクトリパスを使って呼び出すこ
22673 とを意味しています.
22674 \end_layout
22675
22676 \begin_layout Standard
22677 以下に「build-script」の一例を書いておきます.パスが通っているディレクトリに置いて使います.
22678 \end_layout
22679
22680 \begin_layout Standard
22681 \begin_inset VSpace defskip
22682 \end_inset
22683
22684
22685 \begin_inset Newpage pagebreak
22686 \end_inset
22687
22688
22689 \end_layout
22690
22691 \begin_layout Standard
22692
22693 \family sans
22694 #!/bin/sh
22695 \end_layout
22696
22697 \begin_layout Standard
22698
22699 \family sans
22700 #
22701 \end_layout
22702
22703 \begin_layout Standard
22704
22705 \family sans
22706 notangle -Rbuild-script $1 | env NOWEB_SOURCE=$1 NOWEB_OUTPUT_DIR=$2 sh
22707 \end_layout
22708
22709 \begin_layout Standard
22710 \begin_inset VSpace defskip
22711 \end_inset
22712
22713
22714 \end_layout
22715
22716 \begin_layout Standard
22717 変換子設定の次の部分は「フラグ」で,これは
22718 \begin_inset Quotes erd
22719 \end_inset
22720
22721
22722 \family typewriter
22723 parselog=$$s/scripts/listerrors
22724 \family default
22725
22726 \begin_inset Quotes erd
22727 \end_inset
22728
22729 に設定されます.
22730 \begin_inset Newline newline
22731 \end_inset
22732
22733 これは,
22734 \begin_inset Quotes erd
22735 \end_inset
22736
22737 build-script
22738 \begin_inset Quotes erd
22739 \end_inset
22740
22741 プロセスが生成したエラーを
22742 \begin_inset Quotes erd
22743 \end_inset
22744
22745 listerrors
22746 \begin_inset Quotes erd
22747 \end_inset
22748
22749 プログラムを介して処理するものです.
22750 \end_layout
22751
22752 \begin_layout Standard
22753 ビルドは,通常\SpecialChar LyX
22754 の一時ディレクトリで行われるので,変換によって生成されたファイルはそのディレクトリに置かれます.\SpecialChar LyX
22755 は,主要ファイルとみなされるものをコピーして取り出
22756 しますが,
22757 \family typewriter
22758 Noweb→プログラム
22759 \family default
22760 変換は複数のファイルを生成することがあるので,\SpecialChar LyX
22761 を閉じる際に大半が削除される可能性があります.これが,NOWEB_OUTPUT_DIR環境変数を渡して,build
22762 -script chunkが生成したファイルをその場所に置かれるようにする理由です.
22763 \end_layout
22764
22765 \begin_layout Paragraph
22766 文章中でのプログラムの構築操作の説明
22767 \end_layout
22768
22769 \begin_layout Standard
22770 \SpecialChar LyX
22771 とNowebの統合の最後の部分は,
22772 \begin_inset Quotes eld
22773 \end_inset
22774
22775 build-script
22776 \begin_inset Quotes erd
22777 \end_inset
22778
22779  chunkです.一般に,あなたのプログラムの構築操作の説明それ自身をchunkに入れて文章中に含めなければなりません.上の例のnoweb用のbuild-scr
22780 iptでは,chunkを見つけるのにnotangleコマンドを使い,shを使って起動します.
22781 \end_layout
22782
22783 \begin_layout Standard
22784 以下に典型的なchunkがどのようなものかを書いておきます.
22785 \end_layout
22786
22787 \begin_layout LyX-Code
22788 <<build-script>>=
22789 \begin_inset Newline newline
22790 \end_inset
22791
22792
22793 \end_layout
22794
22795 \begin_layout LyX-Code
22796 #!/bin/sh
22797 \begin_inset Newline newline
22798 \end_inset
22799
22800
22801 \begin_inset Newline newline
22802 \end_inset
22803
22804 if [ -z "${NOWEB_SOURCE}" ]
22805 \begin_inset Newline newline
22806 \end_inset
22807
22808 then
22809 \end_layout
22810
22811 \begin_layout LyX-Code
22812 NOWEB_SOURCE=myfile.nw
22813 \begin_inset Newline newline
22814 \end_inset
22815
22816 fi
22817 \begin_inset Newline newline
22818 \end_inset
22819
22820 [...
22821  code to extract files ...
22822  use NOWEB_OUTPUT_DIR here ...]
22823 \begin_inset Newline newline
22824 \end_inset
22825
22826 [...
22827  code to compile files ...]
22828 \begin_inset Newline newline
22829 \end_inset
22830
22831 @
22832 \end_layout
22833
22834 \begin_layout Standard
22835
22836 \emph on
22837 LIBDIR/examples/listerrors.lyx
22838 \emph default
22839
22840 \emph on
22841 LIBDIR/examples/Literate.lyx
22842 \emph default
22843 を見てください.この2つのファイルには異なる実装のlisterrorsプログラムが含まれていて,これまで説明してきた各々の部分が全体としてどのようになるかをわか
22844 ってもらうための例です.また,
22845 \emph on
22846 LIBDIR/examples/noweb2lyx.lyx
22847 \emph default
22848 も見てください.面白いことに,これらの3つのファイルは,Python,C,Perlが各々使われていて,\SpecialChar LyX
22849 の文芸プログラミングのサポートがプログラム言語に依存しない
22850 ことを示しています.
22851 \end_layout
22852
22853 \begin_layout Subsubsection
22854 \SpecialChar LyX
22855 の設定
22856 \end_layout
22857
22858 \begin_layout Standard
22859 すべての文芸プログラムのための設定は,
22860 \family sans
22861 ツール\SpecialChar menuseparator
22862 設定
22863 \family default
22864 パネルの「ファイル処理」タブですることができます.重要な部分を見ておきましょう.
22865 \end_layout
22866
22867 \begin_layout Description
22868 「NoWeb」形式 ファイル形式タブで設定します.ここで,Noweb特有の設定を行います.
22869 \family sans
22870 GUI名
22871 \family default
22872
22873 \family typewriter
22874 NoWeb
22875 \family default
22876 に,拡張子を
22877 \family typewriter
22878 .nw
22879 \family default
22880 に設定してください.これによって,\SpecialChar LyX
22881 に変換プロセスの第一段階でつくられるファイルに
22882 \family typewriter
22883 .nw
22884 \family default
22885 という拡張子をつけることを指示します.
22886 \end_layout
22887
22888 \begin_layout Description
22889 プログラム形式 これは,変換の終着点を示すためだけの,空の形式です(これがあることで,変換子を作ることができます).
22890 \end_layout
22891
22892 \begin_layout Description
22893
22894 \family sans
22895 NoWeb
22896 \family default
22897 ->
22898 \family sans
22899 \SpecialChar LaTeX
22900
22901 \family default
22902  この変換子は,文芸的文書の「weaving」を行います.Nowebの場合,「
22903 \family typewriter
22904 noweave -delay -index $$i > $$o
22905 \family default
22906 」に設定されます.
22907 \end_layout
22908
22909 \begin_layout Description
22910
22911 \family sans
22912 NoWeb
22913 \family default
22914 ->
22915 \family sans
22916 Program
22917 \family default
22918  これは「tangling」を行います.上述のように,変換子は「
22919 \family typewriter
22920 build-script $$i $$r
22921 \family default
22922 」,フラグは「
22923 \family typewriter
22924 parselog=$$s/scripts/listerrors
22925 \family default
22926 」となります.
22927 \end_layout
22928
22929 \begin_layout Subsubsection
22930 デバッグ機能拡張
22931 \end_layout
22932
22933 \begin_layout Standard
22934 ddd/gdbまたは他のデバッガで使える「server-goto-file-row」関数が新たに\SpecialChar LyX
22935 サーバに実装されました.
22936 \end_layout
22937
22938 \begin_layout Standard
22939 ddd/gdbでデバッグしているとき,一つの
22940 \begin_inset Flex Ruby
22941 status collapsed
22942
22943 \begin_layout Plain Layout
22944
22945 \begin_inset Argument post:1
22946 status collapsed
22947
22948 \begin_layout Plain Layout
22949 キー
22950 \end_layout
22951
22952 \end_inset
22953
22954
22955 \end_layout
22956
22957 \end_inset
22958
22959 ストロークで現在実行している位置でテキストエディタを起動できます.既定のdddの設定ではShift-Ctrl-Vになっています.この設定はdddで
22960 \begin_inset Flex MenuItem
22961 status collapsed
22962
22963 \begin_layout Plain Layout
22964 ツール\SpecialChar menuseparator
22965 設定\SpecialChar menuseparator
22966 ファイル書式
22967 \end_layout
22968
22969 \end_inset
22970
22971 ウインドウを表示して,
22972 \begin_inset Flex MenuItem
22973 status collapsed
22974
22975 \begin_layout Plain Layout
22976 編集プログラム
22977 \end_layout
22978
22979 \end_inset
22980
22981 エントリを変えると変えることができます.
22982 \end_layout
22983
22984 \begin_layout Standard
22985 新しい\SpecialChar LyX
22986 サーバの関数と,このdddの機能を使うために
22987 \begin_inset Flex MenuItem
22988 status collapsed
22989
22990 \begin_layout Plain Layout
22991 編集プログラム
22992 \end_layout
22993
22994 \end_inset
22995
22996 を次のように設定してください.
22997 \end_layout
22998
22999 \begin_layout Standard
23000 \begin_inset VSpace defskip
23001 \end_inset
23002
23003
23004 \end_layout
23005
23006 \begin_layout Standard
23007
23008 \family sans
23009 echo "LYXCMD:monitor:server-goto-file-row:@FILE@ @LINE@" >~/.lyxpipe.in
23010 \end_layout
23011
23012 \begin_layout Standard
23013 \begin_inset VSpace defskip
23014 \end_inset
23015
23016
23017 \end_layout
23018
23019 \begin_layout Standard
23020 こうしておくとdddを使っていてプログラムの編集したい場所があったとき,(dddのウインドウで)Shift-Ctrl-Vを押すだけでdddは\SpecialChar LyX
23021 サーバに情報を送り,\SpecialChar LyX
23022
23023 は同じファイルを表示し,カーソルはdddが示した場所へあらわれます.これでもうデバッグの最中に推測しながらスクロールして場所を探す必要がなくなります.
23024 \end_layout
23025
23026 \begin_layout Standard
23027 この機能が動くには\SpecialChar LyX
23028 サーバが利用可能でなければなりません(既定では\SpecialChar LyX
23029 サーバーは使えないようになっています).\SpecialChar LyX
23030 サーバを使えるようにするには,
23031 \family sans
23032
23033 \begin_inset Flex MenuItem
23034 status collapsed
23035
23036 \begin_layout Plain Layout
23037
23038 \family sans
23039 設定
23040 \end_layout
23041
23042 \end_inset
23043
23044
23045 \family default
23046 (
23047 \family sans
23048
23049 \begin_inset Flex MenuItem
23050 status collapsed
23051
23052 \begin_layout Plain Layout
23053
23054 \family sans
23055 パス
23056 \end_layout
23057
23058 \end_inset
23059
23060
23061 \family default
23062 タブ)の
23063 \family sans
23064
23065 \begin_inset Flex MenuItem
23066 status collapsed
23067
23068 \begin_layout Plain Layout
23069
23070 \family sans
23071 \SpecialChar LyX
23072 サーバーパイプ
23073 \family default
23074
23075 \end_layout
23076
23077 \end_inset
23078
23079
23080 \family default
23081
23082 \begin_inset Quotes eld
23083 \end_inset
23084
23085
23086 \family typewriter
23087 /home/<your-home-directory>/.lyx/lyxpipe
23088 \family default
23089
23090 \begin_inset Quotes erd
23091 \end_inset
23092
23093  のようにパスを指定してください.
23094 \end_layout
23095
23096 \begin_layout Standard
23097 詳しくは第
23098 \begin_inset CommandInset ref
23099 LatexCommand ref
23100 reference "chap:LyXサーバー"
23101
23102 \end_inset
23103
23104 章を読んでください.
23105 \end_layout
23106
23107 \begin_layout Subsubsection
23108 ツールバー拡張
23109 \end_layout
23110
23111 \begin_layout Standard
23112 ツールバーに加えることのできる6つの新しいボタンがあります.そのうちの5つのボタンは段落環境へのショートカットです.
23113 \family sans
23114 標準
23115 \family default
23116 ・節・
23117 \family sans
23118 \SpecialChar LaTeX
23119
23120 \family default
23121
23122 \family sans
23123 \SpecialChar LyX
23124 コード
23125 \family default
23126
23127 \family sans
23128 Chunk
23129 \family default
23130 環境用のボタンを用意しています.最後の一つはファイルメニュー項目の「Build Program」への
23131 \begin_inset Flex Ruby
23132 status collapsed
23133
23134 \begin_layout Plain Layout
23135
23136 \family roman
23137 \series medium
23138 \shape up
23139 \size normal
23140 \emph off
23141 \bar no
23142 \noun off
23143 \color none
23144 捷径
23145 \family default
23146 \series default
23147 \shape default
23148 \size default
23149 \emph default
23150 \bar default
23151 \noun default
23152 \color inherit
23153
23154 \begin_inset Argument post:1
23155 status collapsed
23156
23157 \begin_layout Plain Layout
23158 ショートカット
23159 \end_layout
23160
23161 \end_inset
23162
23163
23164 \end_layout
23165
23166 \end_inset
23167
23168 です.
23169 \end_layout
23170
23171 \begin_layout Standard
23172 \SpecialChar LyX
23173 はツールバーで使うためのいくつものボタンを用意しています.私のツールバーはこの6つのショートカットに
23174 \begin_inset Flex MenuItem
23175 status collapsed
23176
23177 \begin_layout Plain Layout
23178 文書\SpecialChar menuseparator
23179 更新\SpecialChar menuseparator
23180 DVI
23181 \end_layout
23182
23183 \end_inset
23184
23185
23186 \begin_inset Flex MenuItem
23187 status collapsed
23188
23189 \begin_layout Plain Layout
23190 文書\SpecialChar menuseparator
23191 表示\SpecialChar menuseparator
23192 DVI
23193 \end_layout
23194
23195 \end_inset
23196
23197 を組み合わせたものになっています.
23198 \end_layout
23199
23200 \begin_layout LyX-Code
23201 Toolbar
23202 \end_layout
23203
23204 \begin_layout LyX-Code
23205   Layouts
23206 \end_layout
23207
23208 \begin_layout LyX-Code
23209   Icon "layout Standard"
23210 \end_layout
23211
23212 \begin_layout LyX-Code
23213   Icon "layout Section"
23214 \end_layout
23215
23216 \begin_layout LyX-Code
23217   Icon "layout \SpecialChar LaTeX
23218 "
23219 \end_layout
23220
23221 \begin_layout LyX-Code
23222   Icon "layout \SpecialChar LyX
23223 -Code"
23224 \end_layout
23225
23226 \begin_layout LyX-Code
23227   Icon "layout Chunk"
23228 \end_layout
23229
23230 \begin_layout LyX-Code
23231   Separator
23232 \end_layout
23233
23234 \begin_layout LyX-Code
23235   Icon "buffer-view"
23236 \end_layout
23237
23238 \begin_layout LyX-Code
23239   Icon "buffer-typeset"
23240 \end_layout
23241
23242 \begin_layout LyX-Code
23243   Icon "build-program"
23244 \end_layout
23245
23246 \begin_layout LyX-Code
23247   Separator
23248 \end_layout
23249
23250 \begin_layout LyX-Code
23251 .
23252 \end_layout
23253
23254 \begin_layout LyX-Code
23255 .
23256 \end_layout
23257
23258 \begin_layout LyX-Code
23259 .
23260 \end_layout
23261
23262 \begin_layout LyX-Code
23263 End
23264 \end_layout
23265
23266 \begin_layout Subsubsection
23267 色の変更
23268 \end_layout
23269
23270 \begin_layout Standard
23271 \SpecialChar LyX
23272 ではいくつもの色を
23273 \begin_inset Flex MenuItem
23274 status collapsed
23275
23276 \begin_layout Plain Layout
23277 設定
23278 \end_layout
23279
23280 \end_inset
23281
23282 で変えることができます.人々が困りがちなのは,\SpecialChar LaTeX
23283 フォント色でしょう.これは,既定では赤になっていますが,chunkは\SpecialChar LaTeX
23284 フォントを使うことになっていて,文芸プログラミ
23285 ング文書には多くのchunkが現れるために,すべて赤で見ていると疲れてしまうかもしれません.これは,
23286 \begin_inset Flex MenuItem
23287 status collapsed
23288
23289 \begin_layout Plain Layout
23290 操作性\SpecialChar menuseparator
23291
23292 \end_layout
23293
23294 \end_inset
23295
23296 タブで変更することができます.
23297 \end_layout
23298
23299 \begin_layout Standard
23300 もう一つは,改行文字が画面に表示されていることでしょう.改行文字の色を背景の色と同じにすることで改行文字を見えなくできます.私は改行文字を背景の色に似ているが少
23301 し違う色にすることを勧めます.こうすると,改行文字があるのはわかりますが,じゃまにならないでしょう.
23302 \end_layout
23303
23304 \begin_layout Subsection
23305 \SpecialChar LyX
23306 とknitr/Sweave
23307 \end_layout
23308
23309 \begin_layout Standard
23310 knitrとSweaveへのサポートについては,用例ファイル
23311 \emph on
23312 knitr.lyx
23313 \emph default
23314 とSweave取扱説明書(
23315 \family sans
23316 ヘルプ\SpecialChar menuseparator
23317 用途別説明書
23318 \family default
23319 メニュー)に説明があります.
23320 \end_layout
23321
23322 \begin_layout Chapter
23323 特殊機能
23324 \begin_inset CommandInset label
23325 LatexCommand label
23326 name "chap:Special-features"
23327
23328 \end_inset
23329
23330
23331 \end_layout
23332
23333 \begin_layout Standard
23334 \SpecialChar LyX
23335 では,\SpecialChar LaTeX
23336 で可能なことは何でも出来ます.すべての\SpecialChar LaTeX
23337 の機能を直接サポートできるわけではありませんが,どんな場合でも\SpecialChar TeX
23338 コードを使用することはできます.本章は,ユーザの興味が
23339 有りそうな特別な機能について,若干取り上げます.図表やフロート,ボックス,注釈に関する特別な機能については,取扱説明書『
23340 \emph on
23341 埋込オブジェクト篇
23342 \emph default
23343 』をご参照ください.
23344 \end_layout
23345
23346 \begin_layout Section
23347 多段組
23348 \end_layout
23349
23350 \begin_layout Standard
23351 この機能は,文書設定の
23352 \family sans
23353 本文レイアウト
23354 \family default
23355 にある
23356 \family sans
23357 二段組文書
23358 \family default
23359 とは別の機能です.文書全体に二段組を行いたい場合には,
23360 \family sans
23361 二段組文書
23362 \family default
23363 オプションを利用することをお勧めします.その他の場合には,本機能をご使用ください.
23364 \end_layout
23365
23366 \begin_layout Standard
23367 文書中で多段組を行うには,\SpecialChar LaTeX
23368 パッケージ
23369 \series bold
23370 multicol
23371 \series default
23372
23373 \begin_inset Index idx
23374 status collapsed
23375
23376 \begin_layout Plain Layout
23377 \SpecialChar LaTeX
23378 ぱっけーじ @ \SpecialChar LaTeX
23379 パッケージ ! multicol
23380 \end_layout
23381
23382 \end_inset
23383
23384 を導入した上で,(
23385 \family sans
23386 文書\SpecialChar menuseparator
23387 設定\SpecialChar menuseparator
23388 モジュール
23389 \family default
23390 メニューから)
23391 \family sans
23392 多段組
23393 \family default
23394 モジュールを読み込んでください.
23395 \end_layout
23396
23397 \begin_layout Standard
23398 多段組中の脚注は,ページ下部に置かれ,各段の下ごとには置かれません.各段においては,フロートに
23399 \family sans
23400 段をまたぐ
23401 \family default
23402 オプションを使用する必要があるほかは,通常通りの使用をすることができます.
23403 \end_layout
23404
23405 \begin_layout Subsection
23406 基本
23407 \end_layout
23408
23409 \begin_layout Standard
23410 文章中で二段組を使用したい場合には,段組を始める場所で
23411 \family sans
23412 挿入\SpecialChar menuseparator
23413 任意設定差込枠\SpecialChar menuseparator
23414 多段組
23415 \family default
23416 メニューを使用して,多段組差込枠を挿入してください.二段組で印字されるべき文章は,全てこの差込枠の中に書いてください.
23417 \end_layout
23418
23419 \begin_layout Standard
23420 下記はその用例です.
23421 \end_layout
23422
23423 \begin_layout Standard
23424 \noindent
23425 \begin_inset Flex Multiple Columns
23426 status open
23427
23428 \begin_layout Plain Layout
23429 \noindent
23430
23431 \series bold
23432 \size small
23433 The Adventure of the Empty House
23434 \series default
23435
23436 \begin_inset Newline newline
23437 \end_inset
23438
23439 by Sir Arthur Conan Doyle
23440 \end_layout
23441
23442 \begin_layout Plain Layout
23443
23444 \size small
23445 It was in the spring of the year 1894 that all London was interested, and
23446  the fashionable world dismayed, by the murder of the Honourable Ronald
23447  Adair under most unusual and inexplicable circumstances.
23448  The public has already learned those particulars of the crime which came
23449  out in the police investigation, but a good deal was suppressed upon that
23450  occasion, since the case for the prosecution was so overwhelmingly strong
23451  that it was not necessary to bring forward all the facts.
23452  Only now, at the end of nearly ten years, am I allowed to supply those
23453  missing links which make up the whole of that remarkable chain.
23454  The crime was of interest in itself, but that interest was as nothing to
23455  me compared to the inconceivable sequel, which afforded me the greatest
23456  shock and surprise of any event in my adventurous life.
23457  Even now, after this long interval, I find myself thrilling as I think
23458  of it, and feeling once more that sudden flood of joy, amazement, and increduli
23459 ty which utterly submerged my mind.
23460  Let me say to that public, which has shown some interest in those glimpses
23461  which I have occasionally given them of the thoughts and actions of a very
23462  remarkable man, that they are not to blame me if I have not shared my knowledge
23463  with them, for I should have considered it my first duty to do so, had
23464  I not been barred by a positive prohibition from his own lips, which was
23465  only withdrawn upon the third of last month.
23466 \end_layout
23467
23468 \end_inset
23469
23470
23471 \end_layout
23472
23473 \begin_layout Standard
23474 三段以上にするには,カーソルを多段組差込枠の内部において,挿入\SpecialChar menuseparator
23475 段数メニューを使用してください.この差込枠の中に,欲しい段数を書き入れます(三段組の場合には「3」
23476 と書きます).
23477 \begin_inset Newline newline
23478 \end_inset
23479
23480 下記は三段組の例です.
23481 \end_layout
23482
23483 \begin_layout Standard
23484 \begin_inset Flex Multiple Columns
23485 status open
23486
23487 \begin_layout Plain Layout
23488
23489 \size footnotesize
23490 \begin_inset Argument 1
23491 status open
23492
23493 \begin_layout Plain Layout
23494 3
23495 \end_layout
23496
23497 \end_inset
23498
23499 It can be imagined that my close intimacy with Sherlock Holmes had interested
23500  me deeply in crime, and that after his disappearance I never failed to
23501  read with care the various problems which came before the public.
23502  And I even attempted, more than once, for my own private satisfaction,
23503  to employ his methods in their solution, though with indifferent success.
23504  There was none, however, which appealed to me like this tragedy of Ronald
23505  Adair.
23506  As I read the evidence at the inquest, which led up to a verdict of willful
23507  murder against some person or persons unknown, I realized more clearly
23508  than I had ever done the loss which the community had sustained by the
23509  death of Sherlock Holmes.
23510  There were points about this strange business which would, I was sure,
23511  have specially appealed to him, and the efforts of the police would have
23512  been supplemented, or more probably anticipated, by the trained observation
23513  and the alert mind of the first criminal agent in Europe.
23514  All day, as I drove upon my round, I turned over the case in my mind and
23515  found no explanation which appeared to me to be adequate.
23516  At the risk of telling a twice-told tale, I will recapitulate the facts
23517  as they were known to the public at the conclusion of the inquest.
23518 \end_layout
23519
23520 \end_inset
23521
23522
23523 \end_layout
23524
23525 \begin_layout Standard
23526 お望みならば10段組まで組むことができますが,文書の読者にとっては,あまり気持ちのいいものではないでしょう.
23527 \end_layout
23528
23529 \begin_layout Standard
23530 \begin_inset Newpage newpage
23531 \end_inset
23532
23533
23534 \end_layout
23535
23536 \begin_layout Subsection
23537 段組中の段組
23538 \end_layout
23539
23540 \begin_layout Standard
23541 また,段中に段を組むこともできます.
23542 \end_layout
23543
23544 \begin_layout Standard
23545 \begin_inset Flex Multiple Columns
23546 status open
23547
23548 \begin_layout Plain Layout
23549
23550 \size footnotesize
23551 The Honourable Ronald Adair was the second son of the Earl of Maynooth,
23552  at that time governor of one of the Australian colonies.
23553  Adair's mother had returned from Australia to undergo the operation for
23554  cataract, and she, her son Ronald, and her daughter Hilda were living together
23555  at 427 Park Lane.
23556 \end_layout
23557
23558 \begin_layout Plain Layout
23559 \begin_inset Flex Multiple Columns
23560 status open
23561
23562 \begin_layout Plain Layout
23563
23564 \size footnotesize
23565 The youth moved in the best society–had, so far as was known, no enemies
23566  and no particular vices.
23567  He had been engaged to Miss Edith Woodley, of Carstairs, but the engagement
23568  had been broken off by mutual consent some months before, and there was
23569  no sign that it had left any very profound feeling behind it.
23570  For the rest {sic} the man's life moved in a narrow and conventional circle,
23571  for his habits were quiet and his nature unemotional.
23572  Yet it was upon this easy-going young aristocrat that death came, in most
23573  strange and unexpected form, between the hours of ten and eleven-twenty
23574  on the night of March 30, 1894.
23575 \end_layout
23576
23577 \end_inset
23578
23579
23580 \end_layout
23581
23582 \begin_layout Plain Layout
23583
23584 \size footnotesize
23585 Ronald Adair was fond of cards–playing continually, but never for such stakes
23586  as would hurt him.
23587  He was a member of the Baldwin, the Cavendish, and the Bagatelle card clubs.
23588  It was shown that, after dinner on the day of his death, he had played
23589  a rubber of whist at the latter club.
23590  He had also played there in the afternoon.
23591
23592 \size default
23593  
23594 \size footnotesize
23595 The evidence of those who had played with him– Mr.
23596  Murray, Sir John Hardy, and Colonel Moran–showed that the game was whist,
23597  and that there was a fairly equal fall of the cards.
23598  Adair might have lost five pounds, but not more.
23599  His fortune was a considerable one, and such a loss could not in any way
23600  affect him.
23601  He had played nearly every day at one club or other, but he was a cautious
23602  player, and usually rose a winner.
23603  It came out in evidence that, in partnership with Colonel Moran, he had
23604  actually won as much as four hundred and twenty pounds in a sitting, some
23605  weeks before, from Godfrey Milner and Lord Balmoral.
23606  So much for his recent history as it came out at the inquest.
23607 \end_layout
23608
23609 \end_inset
23610
23611
23612 \end_layout
23613
23614 \begin_layout Subsection
23615 応用例
23616 \end_layout
23617
23618 \begin_layout Standard
23619 本節の用例は,多段組のさらに特別な機能を示すためのものです.
23620 \end_layout
23621
23622 \begin_layout Standard
23623 多段組機能についてさらに知りたい場合には,\SpecialChar LaTeX
23624 パッケージ
23625 \series bold
23626 multicol
23627 \series default
23628
23629 \begin_inset CommandInset citation
23630 LatexCommand cite
23631 key "multicol"
23632 literal "true"
23633
23634 \end_inset
23635
23636 の取扱説明書をご覧ください.
23637 \end_layout
23638
23639 \begin_layout Subsubsection
23640 序文
23641 \end_layout
23642
23643 \begin_layout Standard
23644 多段組に序文を追記するには,カーソルを多段組差込枠内部に置き,
23645 \family sans
23646 挿入\SpecialChar menuseparator
23647 序文
23648 \family default
23649 メニューを使用してください.序文は,この差込枠内に書いてください.
23650 \begin_inset Newline newline
23651 \end_inset
23652
23653 序文のある文章の例を掲げます.
23654 \end_layout
23655
23656 \begin_layout Standard
23657 \begin_inset VSpace bigskip
23658 \end_inset
23659
23660
23661 \end_layout
23662
23663 \begin_layout Standard
23664 \begin_inset Flex Multiple Columns
23665 status open
23666
23667 \begin_layout Plain Layout
23668 \begin_inset Argument 2
23669 status open
23670
23671 \begin_layout Plain Layout
23672 And the story continues and continues and continues and continues\SpecialChar ldots
23673
23674 \end_layout
23675
23676 \end_inset
23677
23678
23679 \size small
23680 On the evening of the crime, he returned from the club exactly at ten.
23681  His mother and sister were out spending the evening with a relation.
23682  The servant deposed that she heard him enter the front room on the second
23683  floor, generally used as his sitting-room.
23684  She had lit a fire there, and as it smoked she had opened the window.
23685  No sound was heard from the room until eleven-twenty, the hour of the return
23686  of Lady Maynooth and her daughter.
23687  Desiring to say good-night, she attempted to enter her son's room.
23688  The door was locked on the inside, and no answer could be got to their
23689  cries and knocking.
23690  Help was obtained, and the door forced.
23691  The unfortunate young man was found lying near the table.
23692  His head had been horribly mutilated by an expanding revolver bullet, but
23693  no weapon of any sort was to be found in the room.
23694 \end_layout
23695
23696 \end_inset
23697
23698
23699 \end_layout
23700
23701 \begin_layout Standard
23702 最初の\SpecialChar TeX
23703 コードの後に,節宣言コマンドを\SpecialChar TeX
23704 コードとして使用すれば,節見出しを前書きとして使用することができます.例えば,
23705 \end_layout
23706
23707 \begin_layout Standard
23708
23709 \series bold
23710
23711 \backslash
23712 subsection{小節見出し}
23713 \end_layout
23714
23715 \begin_layout Standard
23716 というコマンドは,小節を生成します.以下の例では,前書きが小々節になっています.
23717 \end_layout
23718
23719 \begin_layout Standard
23720 \begin_inset Flex Multiple Columns
23721 status open
23722
23723 \begin_layout Plain Layout
23724 \begin_inset Argument 2
23725 status open
23726
23727 \begin_layout Plain Layout
23728 \begin_inset ERT
23729 status collapsed
23730
23731 \begin_layout Plain Layout
23732
23733
23734 \backslash
23735 subsubsection{
23736 \end_layout
23737
23738 \end_inset
23739
23740 これは序文の小々節見出しです
23741 \begin_inset ERT
23742 status collapsed
23743
23744 \begin_layout Plain Layout
23745
23746 }
23747 \end_layout
23748
23749 \end_inset
23750
23751
23752 \end_layout
23753
23754 \end_inset
23755
23756
23757 \size small
23758 A minute examination of the circumstances served only to make the case more
23759  complex.
23760  In the first place, no reason could be given why the young man should have
23761  fastened the door upon the inside.
23762  There was the possibility that the murderer had done this, and had afterwards
23763  escaped by the window.
23764  The drop was at least twenty feet, however, and a bed of crocuses in full
23765  bloom lay beneath.
23766  Neither the flowers nor the earth showed any sign of having been disturbed,
23767  nor were there any marks upon the narrow strip of grass which separated
23768  the house from the road.
23769  Apparently, therefore, it was the young man himself who had fastened the
23770  door.
23771  But how did he come by his death? No one could have climbed up to the window
23772  without leaving traces.
23773  Suppose a man had fired through the window, he would indeed be a remarkable
23774  shot who could with a revolver inflict so deadly a wound.
23775  Again, Park Lane is a frequented thoroughfare; there is a cab stand within
23776  a hundred yards of the house.
23777  No one had heard a shot.
23778 \end_layout
23779
23780 \end_inset
23781
23782
23783 \end_layout
23784
23785 \begin_layout Standard
23786 多段組を開始する部分に,必要とされる6行を確保出来るだけの垂直スペースがページに残されていない場合,多段組の前に改行が挿入されます.前書きの行数如何では,この必
23787 要行数を変更したいかもしれません.これは,カーソルを多段組差込枠内部の(もしあれば)序文の後に置き,
23788 \family sans
23789 挿入\SpecialChar menuseparator
23790 改頁前の余白
23791 \family default
23792 メニューを使用することで設定できます.この差込枠に,余白の大きさを「5cm」などと書き込んでください.
23793 \end_layout
23794
23795 \begin_layout Standard
23796 以下の例では,「7
23797 \backslash
23798 baselineskip」を用いて,必要行数を7行に指定しています(コマンド
23799 \series bold
23800
23801 \backslash
23802 baselineskip
23803 \series default
23804 は\SpecialChar TeX
23805 コードとして入力する必要があります).
23806 \end_layout
23807
23808 \begin_layout Standard
23809 \begin_inset Flex Multiple Columns
23810 status open
23811
23812 \begin_layout Plain Layout
23813 \begin_inset Argument 3
23814 status open
23815
23816 \begin_layout Plain Layout
23817 7
23818 \begin_inset ERT
23819 status collapsed
23820
23821 \begin_layout Plain Layout
23822
23823
23824 \backslash
23825 baselineskip
23826 \end_layout
23827
23828 \end_inset
23829
23830
23831 \end_layout
23832
23833 \end_inset
23834
23835
23836 \size small
23837 On the evening of the crime, he returned from the club exactly at ten.
23838  His mother and sister were out spending the evening with a relation.
23839  The servant deposed that she heard him enter the front room on the second
23840  floor, generally used as his sitting-room.
23841  She had lit a fire there, and as it smoked she had opened the window.
23842  No sound was heard from the room until eleven-twenty, the hour of the return
23843  of Lady Maynooth and her daughter.
23844  Desiring to say good-night, she attempted to enter her son's room.
23845  The door was locked on the inside, and no answer could be got to their
23846  cries and knocking.
23847  Help was obtained, and the door forced.
23848  The unfortunate young man was found lying near the table.
23849  His head had been horribly mutilated by an expanding revolver bullet, but
23850  no weapon of any sort was to be found in the room.
23851 \end_layout
23852
23853 \end_inset
23854
23855
23856 \end_layout
23857
23858 \begin_layout Subsubsection
23859 周囲の余白
23860 \end_layout
23861
23862 \begin_layout Standard
23863 多段組の前後の余白は,長さ
23864 \series bold
23865
23866 \backslash
23867 multicolsep
23868 \series default
23869 を変えることで変更することができます.例えば,\SpecialChar TeX
23870 コードで書かれたコマンド
23871 \end_layout
23872
23873 \begin_layout Standard
23874
23875 \series bold
23876
23877 \backslash
23878 setlength{
23879 \backslash
23880 multicolsep}{3cm}
23881 \end_layout
23882
23883 \begin_layout Standard
23884 は,その値を3
23885 \begin_inset space \thinspace{}
23886 \end_inset
23887
23888 cmに変更します.この変更は,多段組が始まる前に指定しなくてはなりません.既定値は13
23889 \begin_inset space \thinspace{}
23890 \end_inset
23891
23892 ptです.
23893 \end_layout
23894
23895 \begin_layout Standard
23896 以下の例では,
23897 \series bold
23898
23899 \backslash
23900 multicolsep
23901 \series default
23902 は2.5
23903 \begin_inset space \thinspace{}
23904 \end_inset
23905
23906 cmに指定されています.
23907 \end_layout
23908
23909 \begin_layout Standard
23910 \begin_inset ERT
23911 status open
23912
23913 \begin_layout Plain Layout
23914
23915
23916 \backslash
23917 setlength{
23918 \backslash
23919 multicolsep}{2.5cm}
23920 \end_layout
23921
23922 \end_inset
23923
23924
23925 \end_layout
23926
23927 \begin_layout Standard
23928 \begin_inset Flex Multiple Columns
23929 status open
23930
23931 \begin_layout Plain Layout
23932
23933 \size small
23934 All day I turned these facts over in my mind, endeavouring to hit upon some
23935  theory which could reconcile them all, and to find that line of least resistanc
23936 e which my poor friend had declared to be the starting-point of every investigat
23937 ion.
23938  I confess that I made little progress.
23939  In the evening I strolled across the Park, and found myself about six o'clock
23940  at the Oxford Street end of Park Lane.
23941  A group of loafers upon the pavements, all staring up at a particular window,
23942  directed me to the house which I had come to see.
23943  A tall, thin man with coloured glasses, whom I strongly suspected of being
23944  a plain-clothes detective, was pointing out some theory of his own, while
23945  the others crowded round to listen to what he said.
23946  I got as near him as I could, but his observations seemed to me to be absurd,
23947  so I withdrew again in some disgust.
23948  As I did so I struck against an elderly, deformed man, who had been behind
23949  me, and I knocked down several books which he was carrying.
23950 \end_layout
23951
23952 \end_inset
23953
23954
23955 \end_layout
23956
23957 \begin_layout Standard
23958 \begin_inset Note Greyedout
23959 status open
23960
23961 \begin_layout Plain Layout
23962
23963 \series bold
23964 【註】
23965 \backslash
23966 setlength
23967 \series default
23968 で指定した値は,再度変更されるまでは,以降のすべての多段組で使用されます.
23969 \end_layout
23970
23971 \end_inset
23972
23973
23974 \end_layout
23975
23976 \begin_layout Standard
23977 \begin_inset ERT
23978 status collapsed
23979
23980 \begin_layout Plain Layout
23981
23982
23983 \backslash
23984 setlength{
23985 \backslash
23986 multicolsep}{13pt}
23987 \end_layout
23988
23989 \end_inset
23990
23991
23992 \begin_inset Note Note
23993 status collapsed
23994
23995 \begin_layout Plain Layout
23996
23997 \lang english
23998 go back to the default
23999 \end_layout
24000
24001 \end_inset
24002
24003
24004 \end_layout
24005
24006 \begin_layout Standard
24007 \begin_inset Newpage newpage
24008 \end_inset
24009
24010
24011 \end_layout
24012
24013 \begin_layout Subsubsection
24014 改段
24015 \end_layout
24016
24017 \begin_layout Standard
24018 改段は,文章中の階段を行いたい位置に,\SpecialChar TeX
24019 コードで,コマンド
24020 \series bold
24021
24022 \backslash
24023 columnbreak{}
24024 \series default
24025 を挿入すれば,強制的に行うことができます.ただし,多くの場合,文章中に空白が挿入されることに注意してください.
24026 \begin_inset Newline newline
24027 \end_inset
24028
24029 以下が用例です.
24030 \end_layout
24031
24032 \begin_layout Standard
24033 \begin_inset Flex Multiple Columns
24034 status open
24035
24036 \begin_layout Plain Layout
24037
24038 \size small
24039 \begin_inset Quotes eld
24040 \end_inset
24041
24042 You're surprised to see me, sir,
24043 \begin_inset Quotes erd
24044 \end_inset
24045
24046  said he, in a strange, croaking voice.
24047 \end_layout
24048
24049 \begin_layout Plain Layout
24050
24051 \size small
24052 I acknowledged that I was.
24053 \end_layout
24054
24055 \begin_layout Plain Layout
24056
24057 \size small
24058 \begin_inset Quotes eld
24059 \end_inset
24060
24061 Well, I've a conscience, sir, and when I chanced to see you go into this
24062  house, as I came hobbling after you, I thought to myself, I'll just step
24063  in and see that kind gentleman, and tell him that if I was a bit gruff
24064  in my manner there was not any harm meant, and that I am much obliged to
24065  him for picking up my books.
24066 \begin_inset Quotes erd
24067 \end_inset
24068
24069
24070 \end_layout
24071
24072 \begin_layout Plain Layout
24073
24074 \size small
24075 \begin_inset Quotes eld
24076 \end_inset
24077
24078 You make too much of a trifle,
24079 \begin_inset Quotes erd
24080 \end_inset
24081
24082  said I.
24083  
24084 \begin_inset Quotes eld
24085 \end_inset
24086
24087 May I ask how you knew who I was?
24088 \begin_inset Quotes erd
24089 \end_inset
24090
24091  AFTER THIS SENTENCE THE COLUMN BREAK IS FORCED.
24092 \begin_inset ERT
24093 status collapsed
24094
24095 \begin_layout Plain Layout
24096
24097
24098 \backslash
24099 columnbreak{}
24100 \end_layout
24101
24102 \end_inset
24103
24104
24105 \end_layout
24106
24107 \begin_layout Plain Layout
24108
24109 \size small
24110 \begin_inset Quotes eld
24111 \end_inset
24112
24113 Well, sir, if it isn't too great a liberty, I am a neighbour of yours, for
24114  you'll find my little bookshop at the corner of Church Street, and very
24115  happy to see you, I am sure.
24116  Maybe you collect yourself, sir.
24117  Here's 
24118 \noun on
24119 British
24120 \begin_inset space ~
24121 \end_inset
24122
24123 Birds
24124 \noun default
24125 , and 
24126 \noun on
24127 Catullus
24128 \noun default
24129 , and 
24130 \noun on
24131 The Holy War
24132 \noun default
24133 –a bargain, every one of them.
24134  With five volumes you could just fill that gap on that second shelf.
24135  It looks untidy, does it not, sir?
24136 \begin_inset Quotes erd
24137 \end_inset
24138
24139
24140 \end_layout
24141
24142 \end_inset
24143
24144
24145 \end_layout
24146
24147 \begin_layout Subsubsection
24148 段間隔
24149 \end_layout
24150
24151 \begin_layout Standard
24152 段幅は自動的に計算されますが,段の間の余白は指定することができます.これは,長さ
24153 \series bold
24154
24155 \backslash
24156 columnsep
24157 \series default
24158 を変更することで実現できます.既定値は10
24159 \begin_inset space \thinspace{}
24160 \end_inset
24161
24162 ptです.以下は
24163 \series bold
24164
24165 \backslash
24166 columnsep
24167 \series default
24168 を3
24169 \begin_inset space \thinspace{}
24170 \end_inset
24171
24172 cmに設定した例です.
24173 \end_layout
24174
24175 \begin_layout Standard
24176 \begin_inset ERT
24177 status open
24178
24179 \begin_layout Plain Layout
24180
24181
24182 \backslash
24183 setlength{
24184 \backslash
24185 columnsep}{3cm}
24186 \end_layout
24187
24188 \end_inset
24189
24190
24191 \end_layout
24192
24193 \begin_layout Standard
24194 \begin_inset Flex Multiple Columns
24195 status open
24196
24197 \begin_layout Plain Layout
24198
24199 \size small
24200 My observations of No.
24201 \begin_inset space \space{}
24202 \end_inset
24203
24204 427 Park Lane did little to clear up the problem in which I was interested.
24205  The house was separated from the street by a low wall and railing, the
24206  whole not more than five feet high.
24207  It was perfectly easy, therefore, for anyone to get into the garden, but
24208  the window was entirely inaccessible, since there was no water pipe or
24209  anything which could help the most active man to climb it.
24210  More puzzled than ever, I retraced my steps to Kensington.
24211  I had not been in my study five minutes when the maid entered to say that
24212  a person desired to see me.
24213  To my astonishment it was none other than my strange old book collector,
24214  his sharp, wizened face peering out from a frame of white hair, and his
24215  precious volumes, a dozen of them at least, wedged under his right arm.
24216 \end_layout
24217
24218 \end_inset
24219
24220
24221 \end_layout
24222
24223 \begin_layout Standard
24224 \begin_inset ERT
24225 status collapsed
24226
24227 \begin_layout Plain Layout
24228
24229
24230 \backslash
24231 setlength{
24232 \backslash
24233 columnsep}{10pt}
24234 \end_layout
24235
24236 \end_inset
24237
24238
24239 \begin_inset Note Note
24240 status collapsed
24241
24242 \begin_layout Plain Layout
24243
24244 \lang english
24245 go back to the default
24246 \end_layout
24247
24248 \end_inset
24249
24250
24251 \end_layout
24252
24253 \begin_layout Subsubsection
24254 垂直線
24255 \end_layout
24256
24257 \begin_layout Standard
24258 段間には,長さ
24259 \series bold
24260
24261 \backslash
24262 columnseprule
24263 \series default
24264 の幅を持つ罫線が描かれます.罫線幅を0
24265 \begin_inset space \thinspace{}
24266 \end_inset
24267
24268 ptにすると(これが既定値です),罫線は出力されません.以下の例では,段を分かつ線は2
24269 \begin_inset space \thinspace{}
24270 \end_inset
24271
24272 pt幅に設定されています.
24273 \end_layout
24274
24275 \begin_layout Standard
24276 \begin_inset ERT
24277 status open
24278
24279 \begin_layout Plain Layout
24280
24281
24282 \backslash
24283 setlength{
24284 \backslash
24285 columnseprule}{2pt}
24286 \end_layout
24287
24288 \end_inset
24289
24290
24291 \end_layout
24292
24293 \begin_layout Standard
24294 \begin_inset Flex Multiple Columns
24295 status open
24296
24297 \begin_layout Plain Layout
24298
24299 \size small
24300 \begin_inset Quotes eld
24301 \end_inset
24302
24303 You're surprised to see me, sir,
24304 \begin_inset Quotes erd
24305 \end_inset
24306
24307  said he, in a strange, croaking voice.
24308 \end_layout
24309
24310 \begin_layout Plain Layout
24311
24312 \size small
24313 I acknowledged that I was.
24314 \end_layout
24315
24316 \begin_layout Plain Layout
24317
24318 \size small
24319 \begin_inset Quotes eld
24320 \end_inset
24321
24322 Well, I've a conscience, sir, and when I chanced to see you go into this
24323  house, as I came hobbling after you, I thought to myself, I'll just step
24324  in and see that kind gentleman, and tell him that if I was a bit gruff
24325  in my manner there was not any harm meant, and that I am much obliged to
24326  him for picking up my books.
24327 \begin_inset Quotes erd
24328 \end_inset
24329
24330
24331 \end_layout
24332
24333 \begin_layout Plain Layout
24334
24335 \size small
24336 \begin_inset Quotes eld
24337 \end_inset
24338
24339 You make too much of a trifle,
24340 \begin_inset Quotes erd
24341 \end_inset
24342
24343  said I.
24344  
24345 \begin_inset Quotes eld
24346 \end_inset
24347
24348 May I ask how you knew who I was?
24349 \begin_inset Quotes erd
24350 \end_inset
24351
24352
24353 \end_layout
24354
24355 \begin_layout Plain Layout
24356
24357 \size small
24358 \begin_inset Quotes eld
24359 \end_inset
24360
24361 Well, sir, if it isn't too great a liberty, I am a neighbour of yours, for
24362  you'll find my little bookshop at the corner of Church Street, and very
24363  happy to see you, I am sure.
24364  Maybe you collect yourself, sir.
24365  Here's 
24366 \noun on
24367 British
24368 \begin_inset space ~
24369 \end_inset
24370
24371 Birds
24372 \noun default
24373 , and 
24374 \noun on
24375 Catullus
24376 \noun default
24377 , and 
24378 \noun on
24379 The Holy War
24380 \noun default
24381 –a bargain, every one of them.
24382  With five volumes you could just fill that gap on that second shelf.
24383  It looks untidy, does it not, sir?
24384 \begin_inset Quotes erd
24385 \end_inset
24386
24387
24388 \end_layout
24389
24390 \end_inset
24391
24392
24393 \end_layout
24394
24395 \begin_layout Standard
24396 \begin_inset VSpace defskip
24397 \end_inset
24398
24399
24400 \end_layout
24401
24402 \begin_layout Standard
24403 罫線は,コマンド
24404 \series bold
24405
24406 \backslash
24407 columnseprulecolor
24408 \series default
24409 を再定義すれば,着色することができます.これは,多段組差込枠の前に\SpecialChar TeX
24410 コードで以下のコマンドを挿入すれば,実現できます.
24411 \begin_inset Newline newline
24412 \end_inset
24413
24414
24415 \series bold
24416
24417 \backslash
24418 renewcommand{
24419 \backslash
24420 columnseprulecolor}{
24421 \backslash
24422 color{red}}
24423 \series default
24424
24425 \begin_inset Newline newline
24426 \end_inset
24427
24428 このコマンド中の
24429 \series bold
24430 red
24431 \series default
24432 をお好みの色に変更してください.既定色とユーザー定義色の全てを使用することができます.既定色とユーザー定義色についての詳細な情報は,取扱説明書『
24433 \emph on
24434 埋込オブジェクト篇
24435 \emph default
24436 』の「
24437 \emph on
24438 色付き表
24439 \emph default
24440 」の節をご覧ください.既定色に戻すには,以下のコマンドを挿入してください.
24441 \begin_inset Newline newline
24442 \end_inset
24443
24444
24445 \series bold
24446
24447 \backslash
24448 renewcommand{
24449 \backslash
24450 columnseprulecolor}{
24451 \backslash
24452 normalcolor}
24453 \series default
24454
24455 \begin_inset Newline newline
24456 \end_inset
24457
24458 以下は,シアン色の罫線と1
24459 \begin_inset space \thinspace{}
24460 \end_inset
24461
24462 cmの段間隔を持つ例です.
24463 \end_layout
24464
24465 \begin_layout Standard
24466 \begin_inset ERT
24467 status open
24468
24469 \begin_layout Plain Layout
24470
24471
24472 \backslash
24473 setlength{
24474 \backslash
24475 columnsep}{1cm}
24476 \end_layout
24477
24478 \begin_layout Plain Layout
24479
24480
24481 \backslash
24482 renewcommand{
24483 \backslash
24484 columnseprulecolor}{
24485 \backslash
24486 color{cyan}}
24487 \end_layout
24488
24489 \end_inset
24490
24491
24492 \end_layout
24493
24494 \begin_layout Standard
24495 \begin_inset Flex Multiple Columns
24496 status open
24497
24498 \begin_layout Plain Layout
24499
24500 \size small
24501 \begin_inset Quotes eld
24502 \end_inset
24503
24504 You're surprised to see me, sir,
24505 \begin_inset Quotes erd
24506 \end_inset
24507
24508  said he, in a strange, croaking voice.
24509 \end_layout
24510
24511 \begin_layout Plain Layout
24512
24513 \size small
24514 I acknowledged that I was.
24515 \end_layout
24516
24517 \begin_layout Plain Layout
24518
24519 \size small
24520 \begin_inset Quotes eld
24521 \end_inset
24522
24523 Well, I've a conscience, sir, and when I chanced to see you go into this
24524  house, as I came hobbling after you, I thought to myself, I'll just step
24525  in and see that kind gentleman, and tell him that if I was a bit gruff
24526  in my manner there was not any harm meant, and that I am much obliged to
24527  him for picking up my books.
24528 \begin_inset Quotes erd
24529 \end_inset
24530
24531
24532 \end_layout
24533
24534 \begin_layout Plain Layout
24535
24536 \size small
24537 \begin_inset Quotes eld
24538 \end_inset
24539
24540 You make too much of a trifle,
24541 \begin_inset Quotes erd
24542 \end_inset
24543
24544  said I.
24545  
24546 \begin_inset Quotes eld
24547 \end_inset
24548
24549 May I ask how you knew who I was?
24550 \begin_inset Quotes erd
24551 \end_inset
24552
24553
24554 \end_layout
24555
24556 \begin_layout Plain Layout
24557
24558 \size small
24559 \begin_inset Quotes eld
24560 \end_inset
24561
24562 Well, sir, if it isn't too great a liberty, I am a neighbour of yours, for
24563  you'll find my little bookshop at the corner of Church Street, and very
24564  happy to see you, I am sure.
24565  Maybe you collect yourself, sir.
24566  Here's 
24567 \noun on
24568 British
24569 \begin_inset space ~
24570 \end_inset
24571
24572 Birds
24573 \noun default
24574 , and 
24575 \noun on
24576 Catullus
24577 \noun default
24578 , and 
24579 \noun on
24580 The Holy War
24581 \noun default
24582 –a bargain, every one of them.
24583  With five volumes you could just fill that gap on that second shelf.
24584  It looks untidy, does it not, sir?
24585 \begin_inset Quotes erd
24586 \end_inset
24587
24588
24589 \end_layout
24590
24591 \end_inset
24592
24593
24594 \end_layout
24595
24596 \begin_layout Standard
24597 \begin_inset ERT
24598 status collapsed
24599
24600 \begin_layout Plain Layout
24601
24602
24603 \backslash
24604 setlength{
24605 \backslash
24606 columnseprule}{0pt}
24607 \end_layout
24608
24609 \begin_layout Plain Layout
24610
24611
24612 \backslash
24613 renewcommand{
24614 \backslash
24615 columnseprulecolor}{
24616 \backslash
24617 normalcolor}
24618 \end_layout
24619
24620 \end_inset
24621
24622
24623 \begin_inset Note Note
24624 status collapsed
24625
24626 \begin_layout Plain Layout
24627
24628 \lang english
24629 go back to the default
24630 \end_layout
24631
24632 \end_inset
24633
24634
24635 \end_layout
24636
24637 \begin_layout Standard
24638 \begin_inset Newpage newpage
24639 \end_inset
24640
24641
24642 \end_layout
24643
24644 \begin_layout Section
24645 標準的でない形の段落
24646 \end_layout
24647
24648 \begin_layout Standard
24649 \noindent
24650 \SpecialChar LaTeX
24651 は,他のテキストプロセッサと同様に,既定で長方形の段落を使用します.しかし,例えば,ポスターや招待状,詩などの特殊な場合には,段落の形を好きなように変えることが
24652 できます.これは,文書設定で
24653 \family sans
24654 任意設定の段落形
24655 \family default
24656 モジュールを読み込んで,\SpecialChar LaTeX
24657 パッケージ
24658 \series bold
24659 shapepar
24660 \series default
24661 を使用させるようにすれば,実現できます.
24662 \end_layout
24663
24664 \begin_layout Subsection
24665 既定の形
24666 \end_layout
24667
24668 \begin_layout Standard
24669
24670 \series bold
24671 shapepar
24672 \series default
24673 は,以下の形を提供しています.
24674 \end_layout
24675
24676 \begin_layout Standard
24677 \begin_inset Tabular
24678 <lyxtabular version="3" rows="13" columns="3">
24679 <features booktabs="true" islongtable="true" longtabularalignment="center">
24680 <column alignment="center" valignment="middle" width="16col%">
24681 <column alignment="center" valignment="middle" width="40col%">
24682 <column alignment="center" valignment="middle" width="35col%">
24683 <row endhead="true">
24684 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
24685 \begin_inset Text
24686
24687 \begin_layout Plain Layout
24688 名称
24689 \end_layout
24690
24691 \end_inset
24692 </cell>
24693 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
24694 \begin_inset Text
24695
24696 \begin_layout Plain Layout
24697 説明
24698 \end_layout
24699
24700 \end_inset
24701 </cell>
24702 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
24703 \begin_inset Text
24704
24705 \begin_layout Plain Layout
24706 備考
24707 \end_layout
24708
24709 \end_inset
24710 </cell>
24711 </row>
24712 <row>
24713 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24714 \begin_inset Text
24715
24716 \begin_layout Plain Layout
24717 CDlabel
24718 \end_layout
24719
24720 \end_inset
24721 </cell>
24722 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24723 \begin_inset Text
24724
24725 \begin_layout Plain Layout
24726 丸い穴の開いたドーナツ型(CD/DVD大)
24727 \end_layout
24728
24729 \end_inset
24730 </cell>
24731 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24732 \begin_inset Text
24733
24734 \begin_layout Plain Layout
24735 伸縮不可.多くの文字を入れられないことに注意.
24736 \end_layout
24737
24738 \end_inset
24739 </cell>
24740 </row>
24741 <row>
24742 <cell alignment="center" valignment="top" topline="true" usebox="none">
24743 \begin_inset Text
24744
24745 \begin_layout Plain Layout
24746 Circle
24747 \end_layout
24748
24749 \end_inset
24750 </cell>
24751 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24752 \begin_inset Text
24753
24754 \begin_layout Plain Layout
24755
24756 \end_layout
24757
24758 \end_inset
24759 </cell>
24760 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24761 \begin_inset Text
24762
24763 \begin_layout Plain Layout
24764 脆弱.計算に失敗することも.
24765 \end_layout
24766
24767 \end_inset
24768 </cell>
24769 </row>
24770 <row>
24771 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24772 \begin_inset Text
24773
24774 \begin_layout Plain Layout
24775 Diamond
24776 \end_layout
24777
24778 \end_inset
24779 </cell>
24780 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24781 \begin_inset Text
24782
24783 \begin_layout Plain Layout
24784 菱形(シンボル的に
24785 \begin_inset Quotes eld
24786 \end_inset
24787
24788 diamond
24789 \begin_inset Quotes erd
24790 \end_inset
24791
24792 と表記)
24793 \end_layout
24794
24795 \end_inset
24796 </cell>
24797 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24798 \begin_inset Text
24799
24800 \begin_layout Plain Layout
24801 -
24802 \end_layout
24803
24804 \end_inset
24805 </cell>
24806 </row>
24807 <row>
24808 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24809 \begin_inset Text
24810
24811 \begin_layout Plain Layout
24812 Heart
24813 \end_layout
24814
24815 \end_inset
24816 </cell>
24817 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24818 \begin_inset Text
24819
24820 \begin_layout Plain Layout
24821 ハート型
24822 \end_layout
24823
24824 \end_inset
24825 </cell>
24826 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24827 \begin_inset Text
24828
24829 \begin_layout Plain Layout
24830 -
24831 \end_layout
24832
24833 \end_inset
24834 </cell>
24835 </row>
24836 <row>
24837 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24838 \begin_inset Text
24839
24840 \begin_layout Plain Layout
24841 Hexagon
24842 \end_layout
24843
24844 \end_inset
24845 </cell>
24846 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24847 \begin_inset Text
24848
24849 \begin_layout Plain Layout
24850 六角形
24851 \end_layout
24852
24853 \end_inset
24854 </cell>
24855 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24856 \begin_inset Text
24857
24858 \begin_layout Plain Layout
24859 -
24860 \end_layout
24861
24862 \end_inset
24863 </cell>
24864 </row>
24865 <row>
24866 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24867 \begin_inset Text
24868
24869 \begin_layout Plain Layout
24870 Nut
24871 \end_layout
24872
24873 \end_inset
24874 </cell>
24875 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24876 \begin_inset Text
24877
24878 \begin_layout Plain Layout
24879 ナット型(丸い穴の開いた六角形)
24880 \end_layout
24881
24882 \end_inset
24883 </cell>
24884 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24885 \begin_inset Text
24886
24887 \begin_layout Plain Layout
24888 -
24889 \end_layout
24890
24891 \end_inset
24892 </cell>
24893 </row>
24894 <row>
24895 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24896 \begin_inset Text
24897
24898 \begin_layout Plain Layout
24899 Square
24900 \end_layout
24901
24902 \end_inset
24903 </cell>
24904 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24905 \begin_inset Text
24906
24907 \begin_layout Plain Layout
24908 正方形
24909 \end_layout
24910
24911 \end_inset
24912 </cell>
24913 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24914 \begin_inset Text
24915
24916 \begin_layout Plain Layout
24917 -
24918 \end_layout
24919
24920 \end_inset
24921 </cell>
24922 </row>
24923 <row>
24924 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
24925 \begin_inset Text
24926
24927 \begin_layout Plain Layout
24928 Star
24929 \end_layout
24930
24931 \end_inset
24932 </cell>
24933 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
24934 \begin_inset Text
24935
24936 \begin_layout Plain Layout
24937 五芒星
24938 \end_layout
24939
24940 \end_inset
24941 </cell>
24942 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
24943 \begin_inset Text
24944
24945 \begin_layout Plain Layout
24946 -
24947 \end_layout
24948
24949 \end_inset
24950 </cell>
24951 </row>
24952 <row>
24953 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24954 \begin_inset Text
24955
24956 \begin_layout Plain Layout
24957 Candle
24958 \end_layout
24959
24960 \end_inset
24961 </cell>
24962 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24963 \begin_inset Text
24964
24965 \begin_layout Plain Layout
24966 燃えるろうそく
24967 \end_layout
24968
24969 \end_inset
24970 </cell>
24971 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24972 \begin_inset Text
24973
24974 \begin_layout Plain Layout
24975 -
24976 \end_layout
24977
24978 \end_inset
24979 </cell>
24980 </row>
24981 <row>
24982 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24983 \begin_inset Text
24984
24985 \begin_layout Plain Layout
24986 Drop down/up
24987 \end_layout
24988
24989 \end_inset
24990 </cell>
24991 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24992 \begin_inset Text
24993
24994 \begin_layout Plain Layout
24995 雫型/逆雫型
24996 \end_layout
24997
24998 \end_inset
24999 </cell>
25000 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25001 \begin_inset Text
25002
25003 \begin_layout Plain Layout
25004 脆弱.計算に失敗することも.
25005 \end_layout
25006
25007 \end_inset
25008 </cell>
25009 </row>
25010 <row>
25011 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25012 \begin_inset Text
25013
25014 \begin_layout Plain Layout
25015 \SpecialChar TeX
25016
25017 \end_layout
25018
25019 \end_inset
25020 </cell>
25021 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25022 \begin_inset Text
25023
25024 \begin_layout Plain Layout
25025 \SpecialChar TeX
25026 ロゴ
25027 \end_layout
25028
25029 \end_inset
25030 </cell>
25031 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25032 \begin_inset Text
25033
25034 \begin_layout Plain Layout
25035 -
25036 \end_layout
25037
25038 \end_inset
25039 </cell>
25040 </row>
25041 <row>
25042 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
25043 \begin_inset Text
25044
25045 \begin_layout Plain Layout
25046 Triangle up/down/
25047 \begin_inset Newline newline
25048 \end_inset
25049
25050 left/right
25051 \end_layout
25052
25053 \end_inset
25054 </cell>
25055 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
25056 \begin_inset Text
25057
25058 \begin_layout Plain Layout
25059 各方向の三角形
25060 \end_layout
25061
25062 \end_inset
25063 </cell>
25064 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
25065 \begin_inset Text
25066
25067 \begin_layout Plain Layout
25068 -
25069 \end_layout
25070
25071 \end_inset
25072 </cell>
25073 </row>
25074 </lyxtabular>
25075
25076 \end_inset
25077
25078
25079 \end_layout
25080
25081 \begin_layout Standard
25082 段落に形を適用するには,\SpecialChar LyX
25083 ツールバー中の環境プルダウンボックスから形を選んでください.
25084 \end_layout
25085
25086 \begin_layout Standard
25087 \begin_inset Newpage newpage
25088 \end_inset
25089
25090
25091 \end_layout
25092
25093 \begin_layout Standard
25094 以下は,ナット型の段落の例です.
25095 \end_layout
25096
25097 \begin_layout Standard
25098 \begin_inset VSpace bigskip
25099 \end_inset
25100
25101
25102 \end_layout
25103
25104 \begin_layout Nut
25105
25106 \lang latin
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  At vero eos et accusam et justo duo dolores et ea rebum.
25111  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
25112  sit amet.
25113  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
25114  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
25115  voluptua.
25116 \end_layout
25117
25118 \begin_layout Standard
25119 \begin_inset VSpace bigskip
25120 \end_inset
25121
25122
25123 \end_layout
25124
25125 \begin_layout Standard
25126 \begin_inset Note Greyedout
25127 status open
25128
25129 \begin_layout Plain Layout
25130
25131 \series bold
25132 【註】
25133 \series default
25134 shapepar段落は改頁にまたがることはできません.
25135 \end_layout
25136
25137 \end_inset
25138
25139
25140 \end_layout
25141
25142 \begin_layout Standard
25143 \begin_inset VSpace bigskip
25144 \end_inset
25145
25146
25147 \end_layout
25148
25149 \begin_layout Standard
25150
25151 \series bold
25152 shapepar
25153 \series default
25154 は,段落中にどれだけ文章が含まれようとも,常に形を維持しようとします.したがって,段落の大きさは,含まれている文章量によって変化しますので,段落の大きさがページ
25155 余白にはみ出してしまうことがあります.寸法が伸縮することを示すために,文章量を二倍にした例を見てみましょう.
25156 \end_layout
25157
25158 \begin_layout Standard
25159 \begin_inset Newpage newpage
25160 \end_inset
25161
25162
25163 \end_layout
25164
25165 \begin_layout Nut
25166
25167 \lang latin
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  At vero eos et accusam et justo duo dolores et ea rebum.
25172  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
25173  sit amet.
25174  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
25175  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
25176  voluptua.
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  At vero eos et accusam et justo duo dolores et ea rebum.
25181  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
25182  sit amet.
25183  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
25184  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
25185  voluptua.
25186 \end_layout
25187
25188 \begin_layout Standard
25189 \begin_inset VSpace bigskip
25190 \end_inset
25191
25192
25193 \end_layout
25194
25195 \begin_layout Standard
25196 ただし,
25197 \family sans
25198 CDlabel
25199 \family default
25200 形は例外です.これは,CD/DVDの寸法に収まらなくてはならないので,伸縮しません.したがって,形に収まる文章量は限られています.
25201 \begin_inset Newline newline
25202 \end_inset
25203
25204
25205 \family sans
25206 drop
25207 \family default
25208 形と
25209 \family sans
25210 circle
25211 \family default
25212 形は脆弱で,文章量によっては寸法計算が失敗する可能性があります.この場合,
25213 \begin_inset Quotes eld
25214 \end_inset
25215
25216 Arithmetic overflow
25217 \begin_inset Quotes erd
25218 \end_inset
25219
25220 という\SpecialChar LaTeX
25221 エラーが発生します.この時は,文章の一部を追加したり削除したりするか,どれもうまくいかなければ別の形を使用してください.
25222 \end_layout
25223
25224 \begin_layout Standard
25225 \begin_inset VSpace bigskip
25226 \end_inset
25227
25228
25229 \end_layout
25230
25231 \begin_layout Standard
25232 先端のある形では,先端部の文字列で,\SpecialChar LaTeX
25233 のハイフネーションルーチンが失敗することがあります.したがって,この部分の文章には,ハイフネーション位置
25234 \family sans
25235 (
25236 \begin_inset Info
25237 type  "shortcut"
25238 arg   "specialchar-insert hyphenation"
25239 \end_inset
25240
25241
25242 \family default
25243 )を指定することが往々にして必要になります.
25244 \end_layout
25245
25246 \begin_layout Standard
25247 \begin_inset VSpace bigskip
25248 \end_inset
25249
25250
25251 \end_layout
25252
25253 \begin_layout Standard
25254 Shapepar段落は,常に中央揃えか,左の縁が左ページ余白に接するように配置されます.したがって,これらの段落を揃えるのに段落ダイアログを使用することはできま
25255 せん.解決方法としては,段落をミニページかparboxの中において,このボックスを揃えることです.ここでの問題は,ボックスの正しい幅を見出すことです.もしボック
25256 スの幅が広すぎれば,ボックスを中央揃えにしたとしても,ボックスの左側が付いてしまうので中央揃えになりません.そこで,正しい幅を見出すまでは,若干試行錯誤しなくて
25257 はならないかもしれません.以下は,二つのハート形の段落です.一つ目は揃え指定がなく,二つ目は右揃えにしてあります.
25258 \end_layout
25259
25260 \begin_layout Standard
25261 \begin_inset Newpage newpage
25262 \end_inset
25263
25264
25265 \end_layout
25266
25267 \begin_layout Heart
25268 \noindent
25269
25270 \lang latin
25271 Lo\SpecialChar softhyphen
25272 rem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
25273  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
25274  voluptua.
25275  At vero eos et accusam et justo duo dolores et ea rebum.
25276  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
25277  sit amet.
25278 \end_layout
25279
25280 \begin_layout Standard
25281 \begin_inset VSpace bigskip
25282 \end_inset
25283
25284
25285 \end_layout
25286
25287 \begin_layout Standard
25288 \noindent
25289 \align right
25290 \begin_inset Box Frameless
25291 position "t"
25292 hor_pos "c"
25293 has_inner_box 1
25294 inner_pos "t"
25295 use_parbox 1
25296 use_makebox 0
25297 width "42col%"
25298 special "none"
25299 height "1in"
25300 height_special "totalheight"
25301 thickness "0.4pt"
25302 separation "3pt"
25303 shadowsize "4pt"
25304 framecolor "black"
25305 backgroundcolor "none"
25306 status open
25307
25308 \begin_layout Heart
25309 \noindent
25310
25311 \lang latin
25312 Lo\SpecialChar softhyphen
25313 rem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
25314  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
25315  voluptua.
25316  At vero eos et accusam et justo duo dolores et ea rebum.
25317  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
25318  sit amet.
25319 \end_layout
25320
25321 \end_inset
25322
25323
25324 \end_layout
25325
25326 \begin_layout Subsection
25327 任意の形
25328 \end_layout
25329
25330 \begin_layout Standard
25331 ユーザーは,どのような形であれ,定義することができます.これを手動で行うのは,全ての座標を指定しなくてはならないので,かなりの労力を必要とします.しかし,以下の
25332 ように,コンピューターに座標を計算させる方法もあります.
25333 \end_layout
25334
25335 \begin_layout Enumerate
25336 プログラム
25337 \begin_inset CommandInset href
25338 LatexCommand href
25339 name "Jpgfdraw"
25340 target "http://www.ctan.org/tex-archive/graphics/jpgfdraw"
25341 literal "false"
25342
25343 \end_inset
25344
25345 を導入します.
25346 \end_layout
25347
25348 \begin_layout Enumerate
25349
25350 \family sans
25351 Jpgfdraw
25352 \family default
25353 内で,メニュー
25354 \family sans
25355 TeX/LaTeX\SpecialChar menuseparator
25356 Settings\SpecialChar menuseparator
25357 Set Normal Size
25358 \family default
25359 で文書中で使用しているフォント寸を選択します.例えば,この文書は12
25360 \begin_inset space \thinspace{}
25361 \end_inset
25362
25363 pt寸を使用しています.
25364 \end_layout
25365
25366 \begin_layout Enumerate
25367 形を描きます.
25368 \end_layout
25369
25370 \begin_layout Enumerate
25371 メニュー
25372 \family sans
25373 TeX/LaTeX\SpecialChar menuseparator
25374 Shapepar
25375 \family default
25376 を使用して,形の座標をエクスポートします.現れるダイアログで,形の外枠を座標に使うか,パス自体を使うかを指定します.
25377 \begin_inset Foot
25378 status collapsed
25379
25380 \begin_layout Plain Layout
25381 詳細については,
25382 \begin_inset CommandInset href
25383 LatexCommand href
25384 target "http://www.dickimaw-books.com/apps/jpgfdraw/manual/shapepar.html"
25385 literal "false"
25386
25387 \end_inset
25388
25389 を参照してください.
25390 \end_layout
25391
25392 \end_inset
25393
25394
25395 \end_layout
25396
25397 \begin_layout Standard
25398 座標は\SpecialChar TeX
25399 ファイルに書き込まれます.これを\SpecialChar LyX
25400 文書で使用するには,
25401 \end_layout
25402
25403 \begin_layout Enumerate
25404 段落の最初の文字の前(もしくは空の段落内)にカーソルを置きます.
25405 \end_layout
25406
25407 \begin_layout Enumerate
25408 \SpecialChar LyX
25409
25410 \family sans
25411 挿入\SpecialChar menuseparator
25412 ファイル\SpecialChar menuseparator
25413 子文書
25414 \family default
25415 メニューでファイルを選択し,
25416 \family sans
25417 取り込みの型
25418 \family default
25419 として
25420 \family sans
25421 Input
25422 \family default
25423 を選択してください.
25424 \end_layout
25425
25426 \begin_layout Standard
25427 \begin_inset VSpace defskip
25428 \end_inset
25429
25430
25431 \end_layout
25432
25433 \begin_layout Standard
25434 \begin_inset Note Greyedout
25435 status open
25436
25437 \begin_layout Plain Layout
25438
25439 \series bold
25440 【註】
25441 \series default
25442 変更した形は,現在の段落にのみ適用されます.次の段落では全て通常に戻ります.したがって,段落定義ファイルは,形を変えたい段落全てで読み込まれなくてはなりません.
25443 \end_layout
25444
25445 \end_inset
25446
25447
25448 \end_layout
25449
25450 \begin_layout Standard
25451 \begin_inset VSpace bigskip
25452 \end_inset
25453
25454
25455 \end_layout
25456
25457 \begin_layout Standard
25458 以下の用例をご覧ください.
25459 \end_layout
25460
25461 \begin_layout Standard
25462 \begin_inset VSpace bigskip
25463 \end_inset
25464
25465
25466 \end_layout
25467
25468 \begin_layout Standard
25469 \begin_inset CommandInset include
25470 LatexCommand input
25471 filename "../SpecialParagraphShape.tex"
25472
25473 \end_inset
25474
25475
25476 \lang latin
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  At vero eos et accusam et justo duo dolores et ea rebum.
25481  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
25482  sit amet.
25483  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
25484  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
25485  voluptua.
25486 \end_layout
25487
25488 \begin_layout Standard
25489 \begin_inset VSpace bigskip
25490 \end_inset
25491
25492
25493 \end_layout
25494
25495 \begin_layout Standard
25496
25497 \series bold
25498 【ヒント】
25499 \family sans
25500 \series default
25501 Jpgfdraw
25502 \family default
25503 で複雑な形を描く場合,まず形を好きなプログラムで描き,出来上がった画像を
25504 \family sans
25505 Jpgfdraw
25506 \family default
25507 に読み込む方法があります.この場合,画像の外枠に沿って,直線またはスプラインを描くだけですみます.
25508 \end_layout
25509
25510 \begin_layout Standard
25511 \begin_inset VSpace bigskip
25512 \end_inset
25513
25514
25515 \end_layout
25516
25517 \begin_layout Standard
25518
25519 \family sans
25520 任意の段落形
25521 \family default
25522 モジュールは,
25523 \family sans
25524 shapepar
25525 \family default
25526
25527 \family sans
25528 Shapepar
25529 \family default
25530 の二つのコマンドも提供していて,任意の形を座標毎に定義するのに使用することができます.
25531 \begin_inset Foot
25532 status collapsed
25533
25534 \begin_layout Plain Layout
25535 これらのコマンドは,上述の全ての形で内部的に使用されています.
25536 \end_layout
25537
25538 \end_inset
25539
25540 これらのスタイルがどのように使われていて,どのような設定ができるのかについての詳しい情報は,
25541 \series bold
25542 shapepar
25543 \series default
25544 パッケージの取扱説明書
25545 \begin_inset CommandInset citation
25546 LatexCommand cite
25547 key "shapepar"
25548 literal "true"
25549
25550 \end_inset
25551
25552 をご覧ください.
25553 \end_layout
25554
25555 \begin_layout Bibliography
25556 \begin_inset CommandInset bibitem
25557 LatexCommand bibitem
25558 key "multicol"
25559 literal "true"
25560
25561 \end_inset
25562
25563 \SpecialChar LaTeX
25564 パッケージ
25565 \begin_inset CommandInset href
25566 LatexCommand href
25567 name "multicol"
25568 target "http://mirror.ctan.org/macros/latex/required/tools/multicol.pdf"
25569 literal "false"
25570
25571 \end_inset
25572
25573 の取扱説明書
25574 \end_layout
25575
25576 \begin_layout Bibliography
25577 \begin_inset CommandInset bibitem
25578 LatexCommand bibitem
25579 key "shapepar"
25580 literal "true"
25581
25582 \end_inset
25583
25584 \SpecialChar LaTeX
25585 パッケージ
25586 \begin_inset CommandInset href
25587 LatexCommand href
25588 name "shapepar"
25589 target "http://mirrors.ctan.org/macros/latex/contrib/shapepar/shapepar.pdf"
25590 literal "false"
25591
25592 \end_inset
25593
25594 の取扱説明書
25595 \end_layout
25596
25597 \end_body
25598 \end_document