]> git.lyx.org Git - lyx.git/blob - lib/doc/ja/Additional.lyx
EmbeddedObjects.lyx: some tweaks
[lyx.git] / lib / doc / ja / Additional.lyx
1 #LyX 2.2 created this file. For more info see http://www.lyx.org/
2 \lyxformat 504
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 fleqn,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 \graphics default
101 \default_output_format default
102 \output_sync 0
103 \bibtex_command default
104 \index_command default
105 \paperfontsize 12
106 \spacing single
107 \use_hyperref true
108 \pdf_title "LyX's Additional Features manual"
109 \pdf_author "LyX Team"
110 \pdf_subject "LyX's additional features documentation"
111 \pdf_keywords "LyX, Documentation, Additional"
112 \pdf_bookmarks false
113 \pdf_bookmarksnumbered true
114 \pdf_bookmarksopen false
115 \pdf_bookmarksopenlevel 1
116 \pdf_breaklinks false
117 \pdf_pdfborder false
118 \pdf_colorlinks true
119 \pdf_backref false
120 \pdf_pdfusetitle false
121 \pdf_quoted_options "pdfencoding=pdfdoc, linkcolor=black, citecolor=black, urlcolor=blue, filecolor=blue, pdfpagelayout=OneColumn, pdfnewwindow=true, pdfstartview=XYZ, plainpages=false"
122 \papersize default
123 \use_geometry false
124 \use_package amsmath 1
125 \use_package amssymb 1
126 \use_package cancel 0
127 \use_package esint 0
128 \use_package mathdots 1
129 \use_package mathtools 0
130 \use_package mhchem 1
131 \use_package stackrel 0
132 \use_package stmaryrd 0
133 \use_package undertilde 0
134 \cite_engine basic
135 \cite_engine_type default
136 \biblio_style plain
137 \use_bibtopic false
138 \use_indices false
139 \paperorientation portrait
140 \suppress_date false
141 \justification true
142 \use_refstyle 0
143 \notefontcolor #0000ff
144 \index 索引
145 \shortcut idx
146 \color #008000
147 \end_index
148 \secnumdepth 3
149 \tocdepth 3
150 \paragraph_separation indent
151 \paragraph_indentation default
152 \quotes_language english
153 \papercolumns 1
154 \papersides 2
155 \paperpagestyle headings
156 \tracking_changes false
157 \output_changes false
158 \html_math_output 0
159 \html_css_as_file 0
160 \html_be_strict true
161 \end_header
162
163 \begin_body
164
165 \begin_layout Title
166 \SpecialChar LyX
167 の高度な機能
168 \begin_inset Newline newline
169 \end_inset
170
171
172 \size large
173 第2.2.x版
174 \end_layout
175
176 \begin_layout Author
177 \SpecialChar LyX
178 プロジェクトチーム
179 \begin_inset Foot
180 status collapsed
181
182 \begin_layout Plain Layout
183 このファイルは主にRichard Heckによって管理されています。コメントをされたい場合や誤りを発見された場合には、\SpecialChar LyX
184 文書化メーリングリスト
185 \begin_inset Flex Code
186 status open
187
188 \begin_layout Plain Layout
189 \noindent
190
191 \family typewriter
192 <lyx-docs@lists.lyx.org>
193 \end_layout
194
195 \end_inset
196
197 に英文にてお知らせ下さい。この文書の翻訳は、当初人見光太郎氏が行った貢献に基づいています。
198 \end_layout
199
200 \end_inset
201
202  
203 \end_layout
204
205 \begin_layout Standard
206 \begin_inset CommandInset toc
207 LatexCommand tableofcontents
208
209 \end_inset
210
211
212 \end_layout
213
214 \begin_layout Chapter
215 はじめに
216 \end_layout
217
218 \begin_layout Standard
219 いまお読みの取扱説明書『
220 \emph on
221 \SpecialChar LyX
222 拡張機能篇
223 \emph default
224 』は、基本的には『
225 \emph on
226 ユーザーの手引き
227 \emph default
228 』の第二部です。これらの文書を別部とした理由は、単純に『
229 \emph on
230 ユーザーの手引き
231 \emph default
232 』がすでに大部となっていることと、『
233 \emph on
234 ユーザーの手引き
235 \emph default
236 』が、ほとんどの文書を作成する上で必要な基本機能をすべて説明してしまっているためです。一方で、\SpecialChar LyX
237 プロジェクトチームは、\SpecialChar LyX
238 を各設定ファイルと外部パッケージによって拡張
239 可能な状態にしておくことを長期的な目標にしています。つまり、ある\SpecialChar LaTeX
240 パッケージをサポートしたい場合に、\SpecialChar LyX
241 自身に変更を加えることなく、当該パッケージ用のレイアウトファイ
242 ル(ないしモジュール)を作成すればいいようにしているのです。すでにこのような形で、いくつもの新機能がユーザーによって追加されています。この取扱説明書は、そのよう
243 な形での貢献を文書化する冊子として位置付けられています。
244 \end_layout
245
246 \begin_layout Standard
247 この取扱説明書では、ファックスのサポート・バージョン管理・SGMLサポートのような、正しく機能するためには追加的なソフトウェアを必要とする特殊機能についても説明
248 しています。さらに、\SpecialChar LaTeX
249 の強力な機能を直接使って文書を美しく仕上げるための、\SpecialChar LaTeX
250 ツールやテクニックを述べた章も収録しています。つきつめれば、\SpecialChar LyX
251 とはあくまでWYSIWYMた
252 ることを企図しているため、\SpecialChar LaTeX
253 の全機能の一部へのインタフェースは用意するものの、すべてを用意することはないでしょう。
254 \end_layout
255
256 \begin_layout Standard
257 もし、まだ『
258 \emph on
259 はじめの一歩
260 \emph default
261 』をお読みでなかったら、この取扱説明書から読みはじめるのは誤りです。『
262 \emph on
263 はじめの一歩
264 \emph default
265 』には、全取扱説明書に共通の表記法と書式が説明されていますので、まずそれからお読みください。さらに、この取扱説明書を読もうとする前に、『
266 \emph on
267 ユーザーの手引き
268 \emph default
269 』をよくお読みになって、\SpecialChar LyX
270 の全基本機能を習得してください。
271 \end_layout
272
273 \begin_layout Standard
274 この取扱説明書の取り上げられている話題は、\SpecialChar LyX
275 が\SpecialChar LaTeX
276 にどう関わっているかに強く関係していますので、まず次章では、\SpecialChar LyX
277 の内部動作がどうなっているか、LyXに希望する\SpecialChar LaTeX
278 コードを正
279 確に生成させるにはどうしたらいいかを収録しています。本章は、あきらかに熟練\SpecialChar LyX
280 ユーザー向けの章となっています。
281 \end_layout
282
283 \begin_layout Chapter
284 \SpecialChar LyX
285 と\SpecialChar LaTeX
286
287 \end_layout
288
289 \begin_layout Section
290 \SpecialChar LyX
291 は\SpecialChar LaTeX
292 をどう使っているか
293 \end_layout
294
295 \begin_layout Standard
296 本章
297 \family roman
298 \series medium
299 \shape up
300 \size normal
301 \emph off
302 \bar no
303 \noun off
304 \color none
305 は、\SpecialChar TeX
306 熟練者と\SpecialChar LaTeX
307 に興味のある方向けの章です。ここでは、\SpecialChar LyX
308 と\SpecialChar LaTeX
309 が、印刷可能な出力を生成するのに、どのように協働しているのかを説明します。全取扱説明書中で本章だけは、\SpecialChar LaTeX
310 のこと
311 を多少なりともご存知であることを前提とします。
312 \end_layout
313
314 \begin_layout Standard
315
316 \family roman
317 \series medium
318 \shape up
319 \size normal
320 \emph off
321 \bar no
322 \noun off
323 \color none
324 かつて\SpecialChar LyX
325 は、「\SpecialChar LaTeX
326
327 \family default
328 \series default
329 \shape default
330 \size default
331 \emph default
332 \bar default
333 \noun default
334 \color inherit
335 WYSIWYM
336 \family roman
337 \series medium
338 \shape up
339 \size normal
340 \emph off
341 \bar no
342 \noun off
343 \color none
344 なフロントエンド」と呼ばれていましたが、いまではこれは正しくありません。\SpecialChar LaTeX
345 のフロントエンドは、いくつも出回っています
346 \begin_inset Foot
347 status collapsed
348
349 \begin_layout Plain Layout
350
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 有名なものとしては、Linux上の\SpecialChar TeX
360 makerとkile、OSX上の\SpecialChar TeX
361 shopなどがあります。もちろんviとemacsの\SpecialChar LaTeX
362 モードも含まれます。
363 \end_layout
364
365 \end_inset
366
367 。これらは、基本的に\SpecialChar LaTeX
368 を走らせる機能を有し、編集中のファイルのエラーを表示する機能を持ったテキストエディタです。\SpecialChar LyX
369 も、エディタであり、\SpecialChar LaTeX
370 を走らせる機能を有し、ファイル
371 中のエラーを指摘しますが、それ以上にもっともっと多くのことをしてくれます。
372 \family default
373 \series default
374 \shape default
375 \size default
376 \emph default
377 \bar default
378 \noun default
379 \color inherit
380 ひとつには、
381 \family roman
382 \series medium
383 \shape up
384 \size normal
385 \emph off
386 \bar no
387 \noun off
388 \color none
389 \SpecialChar LyX
390 を効果的に使うのに、\SpecialChar LaTeX
391 の知識が必要とされないことが挙げられます。また\SpecialChar LyX
392 は、それ自身、いくつかの拡張を\SpecialChar LaTeX
393 に加えています。時間のあるときにでも、いちど以下の手順を試してみ
394 てください。まず
395 \family sans
396 \series default
397 \shape default
398 \size default
399 \emph default
400 \bar default
401 \noun default
402 \color inherit
403
404 \begin_inset Flex MenuItem
405 status collapsed
406
407 \begin_layout Plain Layout
408
409 \family sans
410 ファイル
411 \end_layout
412
413 \end_inset
414
415
416 \family roman
417 \series medium
418 \shape up
419 \size normal
420 \emph off
421 \bar no
422 \noun off
423 \color none
424 メニューから
425 \family sans
426 \series default
427 \shape default
428 \size default
429 \emph default
430 \bar default
431 \noun default
432 \color inherit
433
434 \begin_inset Flex MenuItem
435 status collapsed
436
437 \begin_layout Plain Layout
438
439 \family sans
440 エクスポート\SpecialChar menuseparator
441 \SpecialChar LaTeX
442
443 \end_layout
444
445 \end_inset
446
447
448 \family roman
449 \series medium
450 \shape up
451 \size normal
452 \emph off
453 \bar no
454 \noun off
455 \color none
456 (あるいは
457 \family sans
458 \series default
459 \shape default
460 \size default
461 \emph default
462 \bar default
463 \noun default
464 \color inherit
465
466 \begin_inset Flex MenuItem
467 status collapsed
468
469 \begin_layout Plain Layout
470
471 \family sans
472 表示\SpecialChar menuseparator
473 ソースを閲覧
474 \end_layout
475
476 \end_inset
477
478
479 \family roman
480 \series medium
481 \shape up
482 \size normal
483 \emph off
484 \bar no
485 \noun off
486 \color none
487 )を選択し、そこから出力される
488 \begin_inset Flex Code
489 status collapsed
490
491 \begin_layout Plain Layout
492
493 \family typewriter
494 .tex
495 \end_layout
496
497 \end_inset
498
499 ファイルのプリアンブルをご覧ください。\SpecialChar LyX
500 によって特別に定義された新しいマクロが複数定義されていることに気づかれるはずです
501 \family default
502 \series default
503 \shape default
504 \size default
505 \emph default
506 \bar default
507 \noun default
508 \color inherit
509 。これらのマクロは、文書中で使用する機能に応じて、自動的に定義されます。
510 \end_layout
511
512 \begin_layout Standard
513
514 \family roman
515 \series medium
516 \shape up
517 \size normal
518 \emph off
519 \bar no
520 \noun off
521 \color none
522 自動的に\SpecialChar LaTeX
523 を実行するコマンドが、以下のようにいくつかあります。
524 \end_layout
525
526 \begin_layout Itemize
527 \begin_inset Flex MenuItem
528 status collapsed
529
530 \begin_layout Plain Layout
531 表示\SpecialChar menuseparator
532
533 \emph on
534 書式
535 \end_layout
536
537 \end_inset
538
539
540 \end_layout
541
542 \begin_layout Itemize
543
544 \family sans
545 \begin_inset Flex MenuItem
546 status collapsed
547
548 \begin_layout Plain Layout
549
550 \bar no
551 表示\SpecialChar menuseparator
552 更新\SpecialChar menuseparator
553
554 \emph on
555 書式
556 \end_layout
557
558 \end_inset
559
560
561 \end_layout
562
563 \begin_layout Itemize
564
565 \family sans
566 \begin_inset Flex MenuItem
567 status collapsed
568
569 \begin_layout Plain Layout
570 ファイル\SpecialChar menuseparator
571 印刷
572 \end_layout
573
574 \end_inset
575
576
577 \end_layout
578
579 \begin_layout Itemize
580
581 \family sans
582 \begin_inset Flex MenuItem
583 status collapsed
584
585 \begin_layout Plain Layout
586 ファイル\SpecialChar menuseparator
587 ファックス
588 \end_layout
589
590 \end_inset
591
592
593 \end_layout
594
595 \begin_layout Standard
596
597 \family roman
598 \series medium
599 \shape up
600 \size normal
601 \emph off
602 \bar no
603 \noun off
604 \color none
605 これらは、最後に\SpecialChar LaTeX
606 を実行してからファイルに変更が加えられた場合のみ、\SpecialChar LaTeX
607 を実行します。
608 \end_layout
609
610 \begin_layout Standard
611
612 \family roman
613 \series medium
614 \shape up
615 \size normal
616 \emph off
617 \bar no
618 \noun off
619 \color none
620 \SpecialChar LyX
621 が編集中のファイルを\SpecialChar LaTeX
622 にかけるとき、\SpecialChar LyX
623 は以下の段階をふみます。
624 \end_layout
625
626 \begin_layout Enumerate
627
628 \family roman
629 \series medium
630 \shape up
631 \size normal
632 \emph off
633 \bar no
634 \noun off
635 \color none
636 文書を\SpecialChar LaTeX
637 に変換し、ファイルの拡張子を
638 \begin_inset Flex Code
639 status collapsed
640
641 \begin_layout Plain Layout
642
643 \family roman
644 \series medium
645 \shape up
646 \size normal
647 \emph off
648 \bar no
649 \noun off
650 \color none
651 .lyx
652 \end_layout
653
654 \end_inset
655
656 から
657 \begin_inset Flex Code
658 status collapsed
659
660 \begin_layout Plain Layout
661
662 \family roman
663 \series medium
664 \shape up
665 \size normal
666 \emph off
667 \bar no
668 \noun off
669 \color none
670 .tex
671 \end_layout
672
673 \end_inset
674
675 に変えて保存。
676 \end_layout
677
678 \begin_layout Enumerate
679
680 \family roman
681 \series medium
682 \shape up
683 \size normal
684 \emph off
685 \bar no
686 \noun off
687 \color none
688 この
689 \begin_inset Flex Code
690 status collapsed
691
692 \begin_layout Plain Layout
693
694 \family roman
695 \series medium
696 \shape up
697 \size normal
698 \emph off
699 \bar no
700 \noun off
701 \color none
702 .tex
703 \end_layout
704
705 \end_inset
706
707 ファイルに対して(必要に応じて複数回)\SpecialChar LaTeX
708 を実行し、\SpecialChar LaTeX
709 ファイルをコンパイルするのに必要な他のコマンド(
710 \begin_inset Flex Code
711 status collapsed
712
713 \begin_layout Plain Layout
714
715 \family roman
716 \series medium
717 \shape up
718 \size normal
719 \emph off
720 \bar no
721 \noun off
722 \color none
723 bibtex
724 \end_layout
725
726 \end_inset
727
728
729 \begin_inset Flex Code
730 status collapsed
731
732 \begin_layout Plain Layout
733
734 \family roman
735 \series medium
736 \shape up
737 \size normal
738 \emph off
739 \bar no
740 \noun off
741 \color none
742 makeindex
743 \end_layout
744
745 \end_inset
746
747 など)を実行。。
748 \end_layout
749
750 \begin_layout Enumerate
751
752 \family roman
753 \series medium
754 \shape up
755 \size normal
756 \emph off
757 \bar no
758 \noun off
759 \color none
760 もしエラーがあれば、エラーログを表示。
761 \end_layout
762
763 \begin_layout Standard
764
765 \family roman
766 \series medium
767 \shape up
768 \size normal
769 \emph off
770 \bar no
771 \noun off
772 \color none
773 \SpecialChar LaTeX
774
775 \family sans
776 \series default
777 \shape default
778 \size default
779 \emph default
780 \bar default
781 \noun default
782 \color inherit
783
784 \begin_inset Flex MenuItem
785 status collapsed
786
787 \begin_layout Plain Layout
788
789 \family sans
790 表示\SpecialChar menuseparator
791 DVI
792 \end_layout
793
794 \end_inset
795
796
797 \family roman
798 \series medium
799 \shape up
800 \size normal
801 \emph off
802 \bar no
803 \noun off
804 \color none
805 を使用して実行した場合には、\SpecialChar LyX
806 はこの後、DVIビューアを実行してDVIファイルを表示します。
807 \begin_inset Flex MenuItem
808 status collapsed
809
810 \begin_layout Plain Layout
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 表示\SpecialChar menuseparator
821 PostScript
822 \end_layout
823
824 \end_inset
825
826 を使用した場合には、\SpecialChar LyX
827 はさらに以下の段階をふみます。
828 \end_layout
829
830 \begin_layout Itemize
831
832 \family roman
833 \series medium
834 \shape up
835 \size normal
836 \emph off
837 \bar no
838 \noun off
839 \color none
840 \begin_inset Flex Code
841 status collapsed
842
843 \begin_layout Plain Layout
844
845 \family typewriter
846 dvips
847 \end_layout
848
849 \end_inset
850
851 を実行して、
852 \family default
853 \series default
854 \shape default
855 \size default
856 \emph default
857 \bar default
858 \noun default
859 \color inherit
860 DVI
861 \family roman
862 \series medium
863 \shape up
864 \size normal
865 \emph off
866 \bar no
867 \noun off
868 \color none
869 ファイルをPostScript®
870 \family default
871 \series default
872 \shape default
873 \size default
874 \emph default
875 \bar default
876 \noun default
877 \color inherit
878 に変換。
879 \end_layout
880
881 \begin_layout Itemize
882
883 \family roman
884 \series medium
885 \shape up
886 \size normal
887 \emph off
888 \bar no
889 \noun off
890 \color none
891 \begin_inset Flex Code
892 status collapsed
893
894 \begin_layout Plain Layout
895
896 \family typewriter
897 ghostview
898 \end_layout
899
900 \end_inset
901
902 などのPostScript®ビューアを実行して、PostScript®
903 \family default
904 \series default
905 \shape default
906 \size default
907 \emph default
908 \bar default
909 \noun default
910 \color inherit
911 ファイルを表示。
912 \end_layout
913
914 \begin_layout Standard
915 \SpecialChar LyX
916 は、他の書式を表示したりエクスポートしたりする際にも、同様のことを行います。
917 \end_layout
918
919 \begin_layout Section
920 \SpecialChar LaTeX
921 ファイルを\SpecialChar LyX
922 に読み込む
923 \end_layout
924
925 \begin_layout Standard
926 \SpecialChar LyX
927
928 \family sans
929
930 \begin_inset Flex MenuItem
931 status collapsed
932
933 \begin_layout Plain Layout
934
935 \family sans
936 ファイル\SpecialChar menuseparator
937 インポート\SpecialChar menuseparator
938 \SpecialChar LaTeX
939
940 \end_layout
941
942 \end_inset
943
944
945 \family roman
946 \series medium
947 \shape up
948 \size normal
949 \emph off
950 \bar no
951 \noun off
952 \color none
953 コマンドを使用すると、\SpecialChar LaTeX
954 ファイルを
955 \family default
956 \series default
957 \shape default
958 \size default
959 \emph default
960 \bar default
961 \noun default
962  
963 \family roman
964 \series medium
965 \shape up
966 \size normal
967 \emph off
968 \bar no
969 \noun off
970 \SpecialChar LyX
971 にインポートすることができます。このコマンドは、
972 \family typewriter
973 \series default
974 \shape default
975 \size default
976 \emph default
977 \bar default
978 \noun default
979 \color inherit
980
981 \begin_inset Flex Code
982 status collapsed
983
984 \begin_layout Plain Layout
985
986 \family typewriter
987 tex2lyx
988 \end_layout
989
990 \end_inset
991
992
993 \family roman
994 \series medium
995 \shape up
996 \size normal
997 \emph off
998 \bar no
999 \noun off
1000 \color none
1001 というプログラムを呼び出し、
1002 \family typewriter
1003 \series default
1004 \shape default
1005 \size default
1006 \emph default
1007 \bar default
1008 \noun default
1009 \color inherit
1010
1011 \begin_inset Flex Code
1012 status collapsed
1013
1014 \begin_layout Plain Layout
1015
1016 \family typewriter
1017 foo.tex
1018 \end_layout
1019
1020 \end_inset
1021
1022
1023 \family default
1024 などというファイルから
1025 \begin_inset Flex Code
1026 status collapsed
1027
1028 \begin_layout Plain Layout
1029
1030 \family typewriter
1031 foo.lyx
1032 \end_layout
1033
1034 \end_inset
1035
1036 を生成します。\SpecialChar LyX
1037 は、この変換したファイルを開きます
1038 \begin_inset Foot
1039 status collapsed
1040
1041 \begin_layout Plain Layout
1042 \begin_inset Flex Code
1043 status collapsed
1044
1045 \begin_layout Plain Layout
1046 tex2lyx
1047 \end_layout
1048
1049 \end_inset
1050
1051 は、もちろんコマンドラインから実行することもできます。
1052 \end_layout
1053
1054 \end_inset
1055
1056
1057 \end_layout
1058
1059 \begin_layout Standard
1060
1061 \family typewriter
1062 \begin_inset Flex Code
1063 status collapsed
1064
1065 \begin_layout Plain Layout
1066
1067 \family typewriter
1068 tex2lyx
1069 \end_layout
1070
1071 \end_inset
1072
1073
1074 \family roman
1075 \series medium
1076 \shape up
1077 \size normal
1078 \emph off
1079 \bar no
1080 \noun off
1081 \color none
1082 は、文法的に正しい\SpecialChar LaTeX
1083 ファイルのほとんどを変換することができますが、すべてを変換できるわけではありません。
1084 \family typewriter
1085 \series default
1086 \shape default
1087 \size default
1088 \emph default
1089 \bar default
1090 \noun default
1091 \color inherit
1092
1093 \begin_inset Flex Code
1094 status collapsed
1095
1096 \begin_layout Plain Layout
1097
1098 \family typewriter
1099 tex2lyx
1100 \end_layout
1101
1102 \end_inset
1103
1104
1105 \family roman
1106 \series medium
1107 \shape up
1108 \size normal
1109 \emph off
1110 \bar no
1111 \noun off
1112 \color none
1113 は、理解不能な部分は\SpecialChar TeX
1114 コードボックスの形で残しますので、ファイルを
1115 \family typewriter
1116 \series default
1117 \shape default
1118 \size default
1119 \emph default
1120 \bar default
1121 \noun default
1122 \color inherit
1123
1124 \begin_inset Flex Code
1125 status collapsed
1126
1127 \begin_layout Plain Layout
1128
1129 \family typewriter
1130 tex2lyx
1131 \end_layout
1132
1133 \end_inset
1134
1135
1136 \family roman
1137 \series medium
1138 \shape up
1139 \size normal
1140 \emph off
1141 \bar no
1142 \noun off
1143 \color none
1144 で変換したのち、\SpecialChar TeX
1145 コードボックスを探して、手動で正しく編集してください。
1146 \end_layout
1147
1148 \begin_layout Standard
1149
1150 \family roman
1151 \series medium
1152 \shape up
1153 \size normal
1154 \emph off
1155 \bar no
1156 \noun off
1157 \color none
1158 \SpecialChar TeX
1159 コードボックスがなにかご存じなければ、次節をお読みください。
1160 \end_layout
1161
1162 \begin_layout Section
1163 \SpecialChar LaTeX
1164 コードを挿入する
1165 \begin_inset CommandInset label
1166 LatexCommand label
1167 name "sec:LaTeXコードを挿入する"
1168
1169 \end_inset
1170
1171
1172 \end_layout
1173
1174 \begin_layout Standard
1175
1176 \family roman
1177 \series medium
1178 \shape up
1179 \size normal
1180 \emph off
1181 \bar no
1182 \noun off
1183 \color none
1184 どの\SpecialChar LyX
1185 文書にもつねに\SpecialChar TeX
1186 コードを挿入することが可能であるというきわめて単純な理由によって、\SpecialChar LaTeX
1187 にできることは、つねに\SpecialChar LyX
1188 でも行うことができます。一方、\SpecialChar LyX
1189 は、すべての\SpecialChar LaTeX
1190 構成物を\SpecialChar LyX
1191 内に
1192 表示できるわけではなく、将来的にもそうならないでしょう。かりに\SpecialChar LaTeX
1193 コマンドを\SpecialChar LyX
1194 文書に挿入する必要が出てきた場合には、
1195 \begin_inset Flex Code
1196 status collapsed
1197
1198 \begin_layout Plain Layout
1199
1200 \family roman
1201 \series medium
1202 \shape up
1203 \size normal
1204 \emph off
1205 \bar no
1206 \noun off
1207 \color none
1208 \SpecialChar TeX
1209 コード
1210 \end_layout
1211
1212 \end_inset
1213
1214 ボックスを使用してください。これは、
1215 \family sans
1216 \series default
1217 \shape default
1218 \size default
1219 \emph default
1220 \bar default
1221 \noun default
1222 \color inherit
1223
1224 \begin_inset Flex MenuItem
1225 status collapsed
1226
1227 \begin_layout Plain Layout
1228
1229 \family sans
1230 挿入\SpecialChar menuseparator
1231 \SpecialChar TeX
1232 コード
1233 \end_layout
1234
1235 \end_inset
1236
1237
1238 \family roman
1239 \series medium
1240 \shape up
1241 \size normal
1242 \emph off
1243 \bar no
1244 \noun off
1245 \color none
1246 若しくは
1247 \family default
1248 \series default
1249 \shape default
1250 \size default
1251 \emph default
1252 \bar default
1253 \noun default
1254 \color inherit
1255
1256 \begin_inset Flex Ruby
1257 status collapsed
1258
1259 \begin_layout Plain Layout
1260
1261 \family roman
1262 \series medium
1263 \shape up
1264 \size normal
1265 \emph off
1266 \bar no
1267 \noun off
1268 \color none
1269 捷径
1270 \family default
1271 \series default
1272 \shape default
1273 \size default
1274 \emph default
1275 \bar default
1276 \noun default
1277 \color inherit
1278
1279 \begin_inset Argument post:1
1280 status collapsed
1281
1282 \begin_layout Plain Layout
1283 ショートカット
1284 \end_layout
1285
1286 \end_inset
1287
1288
1289 \end_layout
1290
1291 \end_inset
1292
1293
1294 \begin_inset Flex Ruby
1295 status collapsed
1296
1297 \begin_layout Plain Layout
1298
1299 \family roman
1300 \series medium
1301 \shape up
1302 \size normal
1303 \emph off
1304 \bar no
1305 \noun off
1306 \color none
1307
1308 \begin_inset Argument post:1
1309 status collapsed
1310
1311 \begin_layout Plain Layout
1312 キー
1313 \end_layout
1314
1315 \end_inset
1316
1317
1318 \end_layout
1319
1320 \end_inset
1321
1322
1323 \begin_inset Info
1324 type  "shortcut"
1325 arg   "ert-insert"
1326 \end_inset
1327
1328
1329 \family roman
1330 \series medium
1331 \shape up
1332 \size normal
1333 \emph off
1334 \bar no
1335 \noun off
1336 \color none
1337 で、文書中に挿入することができます。
1338 \end_layout
1339
1340 \begin_layout Standard
1341 以下は、\SpecialChar LaTeX
1342 コマンドを\SpecialChar LyX
1343 文書中に挿入する例です。コードは以下のようになっているとしましょう。
1344 \end_layout
1345
1346 \begin_layout LyX-Code
1347
1348 \backslash
1349 begin{tabular}{ll}
1350 \begin_inset Newline newline
1351 \end_inset
1352
1353
1354 \backslash
1355 begin{minipage}{5cm}
1356 \begin_inset Newline newline
1357 \end_inset
1358
1359 これは、ミニページ環境の例です。
1360 \begin_inset Newline newline
1361 \end_inset
1362
1363 これには、
1364 \begin_inset Newline newline
1365 \end_inset
1366
1367 (フロートでない)図表を
1368 \begin_inset Newline newline
1369 \end_inset
1370
1371 含め、ほとんど何でも
1372 \begin_inset Newline newline
1373 \end_inset
1374
1375 入れることができます。 
1376 \begin_inset Newline newline
1377 \end_inset
1378
1379
1380 \backslash
1381 end{minipage}
1382 \begin_inset Newline newline
1383 \end_inset
1384
1385 &
1386 \begin_inset Newline newline
1387 \end_inset
1388
1389
1390 \backslash
1391 begin{minipage}{5cm}
1392 \begin_inset Newline newline
1393 \end_inset
1394
1395
1396 \backslash
1397 begin{verbatim}
1398 \begin_inset Newline newline
1399 \end_inset
1400
1401
1402 \backslash
1403 begin{minipage}{5cm}
1404 \begin_inset Newline newline
1405 \end_inset
1406
1407 これは...
1408  
1409 \begin_inset Newline newline
1410 \end_inset
1411
1412
1413 \backslash
1414 end{minipage}
1415 \begin_inset Newline newline
1416 \end_inset
1417
1418
1419 \backslash
1420 end{verbatim}
1421 \begin_inset Newline newline
1422 \end_inset
1423
1424
1425 \backslash
1426 end{minipage}
1427 \begin_inset Newline newline
1428 \end_inset
1429
1430
1431 \backslash
1432 end{tabular}
1433 \end_layout
1434
1435 \begin_layout LyX-Code
1436
1437 \end_layout
1438
1439 \begin_layout Standard
1440 上記のテキストを含んだ
1441 \begin_inset Flex Code
1442 status collapsed
1443
1444 \begin_layout Plain Layout
1445 \SpecialChar TeX
1446 コード
1447 \end_layout
1448
1449 \end_inset
1450
1451 ボックスが、この段落の直後にあります。この取扱説明書を\SpecialChar LyX
1452 上でご覧になっていれば、\SpecialChar TeX
1453 コード差込枠のみが見えるはずです。印刷した取扱説明書をご覧であれば、実際の結果が見
1454 れるはずです。
1455 \end_layout
1456
1457 \begin_layout Standard
1458 \begin_inset VSpace bigskip
1459 \end_inset
1460
1461
1462 \begin_inset ERT
1463 status open
1464
1465 \begin_layout Plain Layout
1466
1467
1468 \backslash
1469 begin{tabular}{ll}
1470 \end_layout
1471
1472 \begin_layout Plain Layout
1473
1474
1475 \backslash
1476 begin{minipage}{5cm}
1477 \end_layout
1478
1479 \begin_layout Plain Layout
1480
1481 これは、ミニページ環境の例です。これには、(フロートでない)図表を含め、ほとんど何でも入れることができます。 
1482 \backslash
1483 end{minipage}
1484 \end_layout
1485
1486 \begin_layout Plain Layout
1487
1488 &
1489 \end_layout
1490
1491 \begin_layout Plain Layout
1492
1493
1494 \backslash
1495 begin{minipage}{5cm}
1496 \end_layout
1497
1498 \begin_layout Plain Layout
1499
1500
1501 \backslash
1502 begin{verbatim}
1503 \end_layout
1504
1505 \begin_layout Plain Layout
1506
1507
1508 \backslash
1509 begin{minipage}{5cm}
1510 \end_layout
1511
1512 \begin_layout Plain Layout
1513
1514 これは...
1515  
1516 \backslash
1517 end{minipage}
1518 \end_layout
1519
1520 \begin_layout Plain Layout
1521
1522
1523 \backslash
1524 end{verbatim}
1525 \end_layout
1526
1527 \begin_layout Plain Layout
1528
1529
1530 \backslash
1531 end{minipage}
1532 \end_layout
1533
1534 \begin_layout Plain Layout
1535
1536
1537 \backslash
1538 end{tabular}
1539 \end_layout
1540
1541 \end_inset
1542
1543
1544 \begin_inset VSpace bigskip
1545 \end_inset
1546
1547
1548 \end_layout
1549
1550 \begin_layout Standard
1551
1552 \family roman
1553 \series medium
1554 \shape up
1555 \size normal
1556 \emph off
1557 \bar no
1558 \noun off
1559 \color none
1560 \SpecialChar TeX
1561 コードを使用する方法に加えて、複雑な\SpecialChar LaTeX
1562 コードを含む部分を別ファイルとして作成しておき、そのファイルをインクルードするのに
1563 \begin_inset Flex MenuItem
1564 status collapsed
1565
1566 \begin_layout Plain Layout
1567
1568 \family roman
1569 \series medium
1570 \shape up
1571 \size normal
1572 \emph off
1573 \bar no
1574 \noun off
1575 \color none
1576 挿入\SpecialChar menuseparator
1577 ファイル\SpecialChar menuseparator
1578 子文書
1579 \end_layout
1580
1581 \end_inset
1582
1583 を使用する方法もあります(取り込みの型として
1584 \begin_inset Flex Code
1585 status collapsed
1586
1587 \begin_layout Plain Layout
1588
1589 \family roman
1590 \series medium
1591 \shape up
1592 \size normal
1593 \emph off
1594 \bar no
1595 \noun off
1596 \color none
1597 Input
1598 \end_layout
1599
1600 \end_inset
1601
1602 を選択しなくてはなりません)。この方法をとる場合には、.texファイルが正しく動作することが
1603 \family default
1604 \series default
1605 \shape default
1606 \size default
1607 \emph on
1608 \bar default
1609 \noun default
1610 \color inherit
1611 確認できている
1612 \family roman
1613 \series medium
1614 \shape up
1615 \size normal
1616 \emph off
1617 \bar no
1618 \noun off
1619 \color none
1620 場合のみに限った方がよいでしょう。さもないと、\SpecialChar LaTeX
1621 エラーを追跡するたいへんな作業を行わなくてはならなくなります。
1622 \end_layout
1623
1624 \begin_layout Standard
1625
1626 \family roman
1627 \series medium
1628 \shape up
1629 \size normal
1630 \emph off
1631 \bar no
1632 \noun off
1633 \color none
1634 最後に、いくつか強調しておくべきことがあります。
1635 \end_layout
1636
1637 \begin_layout Itemize
1638
1639 \family roman
1640 \series medium
1641 \shape up
1642 \size normal
1643 \emph off
1644 \bar no
1645 \noun off
1646 \color none
1647 \SpecialChar LyX
1648 は、あなたの\SpecialChar LaTeX
1649 コードが正しいかどうかを
1650 \family default
1651 \series default
1652 \shape default
1653 \size default
1654 \emph on
1655 \bar default
1656 \noun default
1657 \color inherit
1658 チェックしません
1659 \family roman
1660 \series medium
1661 \shape up
1662 \size normal
1663 \emph off
1664 \bar no
1665 \noun off
1666 \color none
1667
1668 \end_layout
1669
1670 \begin_layout Itemize
1671
1672 \family roman
1673 \series medium
1674 \shape up
1675 \size normal
1676 \emph off
1677 \bar no
1678 \noun off
1679 \color none
1680 車輪の再発明をしないようにご注意ください。
1681 \end_layout
1682
1683 \begin_layout Standard
1684
1685 \family roman
1686 \series medium
1687 \shape up
1688 \size normal
1689 \emph off
1690 \bar no
1691 \noun off
1692 \color none
1693 二番目の点に関して、\SpecialChar LyX
1694 はひじょうにたくさんの機能を装備しており、その数は増えつづけています。ご自身で\SpecialChar LaTeX
1695 コードを書かなくてはならないと思い込む前に、LyXがこれこれの
1696 機能をもっていないことを、取扱説明書で確実に確かめてください。さらに世の中には、封筒のラベルから美しい複数ページにわたる表を作るものまで、ありとあらゆることを行
1697 う膨大な数の\SpecialChar LaTeX
1698 パッケージが存在します。
1699 \family default
1700 \series default
1701 \shape default
1702 \size default
1703 \emph default
1704 \bar default
1705 \noun default
1706 \color inherit
1707 詳細については、
1708 \begin_inset CommandInset href
1709 LatexCommand href
1710 name "CTAN"
1711 target "http://www.ctan.org/"
1712
1713 \end_inset
1714
1715
1716 \family roman
1717 \series medium
1718 \shape up
1719 \size normal
1720 \emph off
1721 \bar no
1722 \noun off
1723 \color none
1724 と第
1725 \begin_inset CommandInset ref
1726 LatexCommand ref
1727 reference "chap:Special-features"
1728
1729 \end_inset
1730
1731 節をご覧ください。
1732 \end_layout
1733
1734 \begin_layout Standard
1735
1736 \family roman
1737 \series medium
1738 \shape up
1739 \size normal
1740 \emph off
1741 \bar no
1742 \noun off
1743 \color none
1744 もし、文書中で例外的に手の込んだことをなさりたければ、かならず良い\SpecialChar LaTeX
1745 関連書籍を参考とするようにしてください。『
1746 \family default
1747 \series default
1748 \shape default
1749 \size default
1750 \emph on
1751 \bar default
1752 \noun default
1753 \color inherit
1754 ユーザーの手引き
1755 \family roman
1756 \series medium
1757 \shape up
1758 \size normal
1759 \emph off
1760 \bar no
1761 \noun off
1762 \color none
1763 』の書誌情報に多くの\SpecialChar LaTeX
1764 関連書籍が引用されています。
1765 \end_layout
1766
1767 \begin_layout Section
1768 \SpecialChar LyX
1769 と\SpecialChar LaTeX
1770 プリアンブル
1771 \end_layout
1772
1773 \begin_layout Subsection
1774 \SpecialChar LaTeX
1775 プリアンブルについて
1776 \end_layout
1777
1778 \begin_layout Standard
1779
1780 \family roman
1781 \series medium
1782 \shape up
1783 \size normal
1784 \emph off
1785 \bar no
1786 \noun off
1787 \color none
1788 すでに\SpecialChar LaTeX
1789 についてご存知であれば、ここでプリアンブル(前置文)が何に向いているか説明する必要はないでしょう。もしご存じなければ、以下の説明で大まかな理解は得られるは
1790 ずです。詳しくは\SpecialChar LaTeX
1791 関連書籍をご参照ください。いずれにしても、以下で\SpecialChar LyX
1792 文書の\SpecialChar LaTeX
1793 プリアンブルで何ができるか、または何をする必要がないか説明をしますので、以下の各要点はお読
1794 みになった方が良いでしょう。
1795 \end_layout
1796
1797 \begin_layout Standard
1798
1799 \family roman
1800 \series medium
1801 \shape up
1802 \size normal
1803 \emph off
1804 \bar no
1805 \noun off
1806 \color none
1807 \SpecialChar LaTeX
1808 プリアンブルは、\SpecialChar LaTeX
1809 文書のいちばん始め、本文の
1810 \family default
1811 \series default
1812 \shape default
1813 \size default
1814 \emph on
1815 \bar default
1816 \noun default
1817 \color inherit
1818
1819 \family roman
1820 \series medium
1821 \shape up
1822 \size normal
1823 \emph off
1824 \bar no
1825 \noun off
1826 \color none
1827 の部分に来ます。ここでは以下のことを行います。
1828 \end_layout
1829
1830 \begin_layout Itemize
1831
1832 \family roman
1833 \series medium
1834 \shape up
1835 \size normal
1836 \emph off
1837 \bar no
1838 \noun off
1839 \color none
1840 文書クラス(ドキュメントクラス)の宣言。
1841 \begin_inset Newline newline
1842 \end_inset
1843
1844 これは\SpecialChar LyX
1845 がすでに行ってくれています。もしあなたが熟達した\SpecialChar LaTeX
1846 使いであり、自作の文書クラスを使いたい場合には、取扱説明書『
1847 \family default
1848 \series default
1849 \shape default
1850 \size default
1851 \emph on
1852 \bar default
1853 \noun default
1854 \color inherit
1855 カスタマイズ篇
1856 \family roman
1857 \series medium
1858 \shape up
1859 \size normal
1860 \emph off
1861 \bar no
1862 \noun off
1863 \color none
1864 』をご覧になれば、\SpecialChar LyX
1865 に自作文書クラスへの仲介を行わせるにはどうすればよいかの情報があります。
1866 \end_layout
1867
1868 \begin_layout Itemize
1869
1870 \family roman
1871 \series medium
1872 \shape up
1873 \size normal
1874 \emph off
1875 \bar no
1876 \noun off
1877 \color none
1878 パッケージ使用の宣言。
1879 \begin_inset Newline newline
1880 \end_inset
1881
1882 \SpecialChar LaTeX
1883 パッケージは、パッケージがプリアンブルで宣言された場合のみ、文書中で利用可能となる、追加コマンド群を提供します。パッケージをインクルードすると、特別なコマンドが
1884 提供されることに加え、文書に変更を加えることができます。例えば
1885 \family typewriter
1886 \series default
1887 \shape default
1888 \size default
1889 \emph default
1890 \bar default
1891 \noun default
1892 \color inherit
1893
1894 \family roman
1895 \series medium
1896 \shape up
1897 \size normal
1898 \emph off
1899 \bar no
1900 \noun off
1901 \color none
1902
1903 \begin_inset Flex Code
1904 status collapsed
1905
1906 \begin_layout Plain Layout
1907
1908 \family typewriter
1909 indentfirst
1910 \end_layout
1911
1912 \end_inset
1913
1914 パッケージは、すべての段落の最初の行を字下げします。他にも、ラベルや宛名書き、余白設定等の様々なパッケージがあります。
1915 \end_layout
1916
1917 \begin_layout Itemize
1918
1919 \family roman
1920 \series medium
1921 \shape up
1922 \size normal
1923 \emph off
1924 \bar no
1925 \noun off
1926 \color none
1927 カウンタ・変数・長さ・幅の設定。
1928 \begin_inset Newline newline
1929 \end_inset
1930
1931 \SpecialChar LaTeX
1932 のカウンタと変数の中には、プリアンブルでグローバルに
1933 \family default
1934 \series default
1935 \shape default
1936 \size default
1937 \emph default
1938 \bar default
1939 \noun default
1940 \color inherit
1941 設定
1942 \emph on
1943 しないかぎり
1944 \family roman
1945 \series medium
1946 \shape up
1947 \size normal
1948 \emph off
1949 \bar no
1950 \noun off
1951 \color none
1952 、望んだ効果を持たないものがあります。(文書中で設定したり再設定したりすることのできる変数もあります。)余白は、プリアンブルで設定しなくてはならない変数の代表例
1953 です。他には、箇条書きに付けるラベル書式が挙げられます。じつは、この設定は文書中どこでもできるのですが、プリアンブルでいちどだけ設定するのが望ましい方法です。
1954 \end_layout
1955
1956 \begin_layout Itemize
1957
1958 \family roman
1959 \series medium
1960 \shape up
1961 \size normal
1962 \emph off
1963 \bar no
1964 \noun off
1965 \color none
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 newcommand
1983 \end_layout
1984
1985 \end_inset
1986
1987 または
1988 \begin_inset Flex Code
1989 status collapsed
1990
1991 \begin_layout Plain Layout
1992
1993 \family roman
1994 \series medium
1995 \shape up
1996 \size normal
1997 \emph off
1998 \bar no
1999 \noun off
2000 \color none
2001
2002 \backslash
2003 renewcommand
2004 \end_layout
2005
2006 \end_inset
2007
2008 を使用)。
2009 \begin_inset Newline newline
2010 \end_inset
2011
2012 ユーザー定義コマンドは、文書中で頻出する\SpecialChar LaTeX
2013 コマンドの短縮形です。このようなコマンドを宣言するには、プリアンブルが適した場所ですが、どこで宣言することも
2014 \family default
2015 \series default
2016 \shape default
2017 \size default
2018 \emph on
2019 \bar default
2020 \noun default
2021 \color inherit
2022 可能
2023 \family roman
2024 \series medium
2025 \shape up
2026 \size normal
2027 \emph off
2028 \bar no
2029 \noun off
2030 \color none
2031 です(もちろんコマンドが初めて使用される場所よりも前です)。あまりないことではありますが、お使いの文書中に生の\SpecialChar LaTeX
2032 コードがあふれている場合には便利でしょう。
2033 \end_layout
2034
2035 \begin_layout Standard
2036
2037 \family roman
2038 \series medium
2039 \shape up
2040 \size normal
2041 \emph off
2042 \bar no
2043 \noun off
2044 \color none
2045 \SpecialChar LyX
2046 は、その生成する
2047 \begin_inset Flex Code
2048 status collapsed
2049
2050 \begin_layout Plain Layout
2051
2052 \family roman
2053 \series medium
2054 \shape up
2055 \size normal
2056 \emph off
2057 \bar no
2058 \noun off
2059 \color none
2060 .tex
2061 \end_layout
2062
2063 \end_inset
2064
2065 ファイルのプリアンブルに、それ自身の定義を追加します。これによって、\SpecialChar LyX
2066 の生成する\SpecialChar LaTeX
2067 ファイルの可搬性を高めています。
2068 \end_layout
2069
2070 \begin_layout Subsection
2071 プリアンブルの変更
2072 \end_layout
2073
2074 \begin_layout Standard
2075
2076 \family roman
2077 \series medium
2078 \shape up
2079 \size normal
2080 \emph off
2081 \bar no
2082 \noun off
2083 \color none
2084 \SpecialChar LyX
2085 が\SpecialChar LaTeX
2086 ファイルのプリアンブルに追加するコマンドは、つねに同じです。これは、\SpecialChar LyX
2087 自体にパッチを当てないかぎり変更できないようになっています。しかしながら、
2088 \begin_inset Flex MenuItem
2089 status collapsed
2090
2091 \begin_layout Plain Layout
2092
2093 \family roman
2094 \series medium
2095 \shape up
2096 \size normal
2097 \emph off
2098 \bar no
2099 \noun off
2100 \color none
2101 文書\SpecialChar menuseparator
2102 設定
2103 \end_layout
2104
2105 \end_inset
2106
2107 ダイアログの
2108 \begin_inset Flex MenuItem
2109 status collapsed
2110
2111 \begin_layout Plain Layout
2112
2113 \family roman
2114 \series medium
2115 \shape up
2116 \size normal
2117 \emph off
2118 \bar no
2119 \noun off
2120 \color none
2121 \SpecialChar LaTeX
2122 プリアンブル
2123 \end_layout
2124
2125 \end_inset
2126
2127 の項から、プリアンブルに追加をすることはできます。\SpecialChar LyX
2128 は、
2129 \family sans
2130 \series default
2131 \shape default
2132 \size default
2133 \emph default
2134 \bar default
2135 \noun default
2136 \color inherit
2137
2138 \begin_inset Flex MenuItem
2139 status collapsed
2140
2141 \begin_layout Plain Layout
2142
2143 \family sans
2144 プリアンブル
2145 \end_layout
2146
2147 \end_inset
2148
2149
2150 \family roman
2151 \series medium
2152 \shape up
2153 \size normal
2154 \emph off
2155 \bar no
2156 \noun off
2157 \color none
2158 ダイアログ内のすべてのものを、\SpecialChar LyX
2159 埋込みのプリアンブルに付け加えます。ご自身の宣言をプリアンブルに追加する前に、あなたがしようとしていることを\SpecialChar LyX
2160 がすでにサポートしてい
2161 ないかどうか確認してください(車輪の再発明をしないように、とはすでに申しあげたことです)。
2162 \family default
2163 \series default
2164 \shape default
2165 \size default
2166 \emph default
2167 \bar default
2168 \noun default
2169 \color inherit
2170 また、
2171 \emph on
2172 プリアンブルコードが正しいことを確認してください。
2173 \emph default
2174 \SpecialChar LyX
2175 は、プリアンブルをチェックしません。
2176 \family roman
2177 \series medium
2178 \shape up
2179 \size normal
2180 \emph off
2181 \bar no
2182 \noun off
2183 \color none
2184 もしエラーがあれば、「
2185 \begin_inset Flex Code
2186 status collapsed
2187
2188 \begin_layout Plain Layout
2189
2190 \family roman
2191 \series medium
2192 \shape up
2193 \size normal
2194 \emph off
2195 \bar no
2196 \noun off
2197 \color none
2198 Missing 
2199 \backslash
2200 begin{document}
2201 \end_layout
2202
2203 \end_inset
2204
2205 」といったエラーが出ることでしょう。このようなエラーが出たときは、プリアンブルを再確認してください。
2206 \end_layout
2207
2208 \begin_layout Subsection
2209
2210 \end_layout
2211
2212 \begin_layout Standard
2213
2214 \family roman
2215 \series medium
2216 \shape up
2217 \size normal
2218 \emph off
2219 \bar no
2220 \noun off
2221 \color none
2222 以下は、プリアンブルに追加できるものとその効果を示す例です。
2223 \end_layout
2224
2225 \begin_layout Subsubsection
2226 例1:オフセット
2227 \end_layout
2228
2229 \begin_layout Standard
2230
2231 \family roman
2232 \series medium
2233 \shape up
2234 \size normal
2235 \emph off
2236 \bar no
2237 \noun off
2238 \color none
2239 \SpecialChar LaTeX
2240 には
2241 \family default
2242 \series default
2243 \shape default
2244 \size default
2245 \emph default
2246 \bar default
2247 \noun default
2248 \color inherit
2249
2250 \family roman
2251 \series medium
2252 \shape up
2253 \size normal
2254 \emph off
2255 \bar no
2256 \noun off
2257 \color none
2258
2259 \begin_inset Flex Code
2260 status collapsed
2261
2262 \begin_layout Plain Layout
2263
2264 \family typewriter
2265
2266 \backslash
2267 hoffset
2268 \end_layout
2269
2270 \end_inset
2271
2272
2273 \family typewriter
2274 \series default
2275 \shape default
2276 \size default
2277 \emph default
2278 \bar default
2279 \noun default
2280 \color inherit
2281
2282 \begin_inset Flex Code
2283 status collapsed
2284
2285 \begin_layout Plain Layout
2286
2287 \family typewriter
2288
2289 \backslash
2290 voffset
2291 \end_layout
2292
2293 \end_inset
2294
2295
2296 \family roman
2297 \series medium
2298 \shape up
2299 \size normal
2300 \emph off
2301 \bar no
2302 \noun off
2303 \color none
2304 というページ位置を制御する2つの変数があります。その機能は名前から明らかなとおりです。これらの変数は、ラベルを印刷するときなどに便利です。往々にして、印刷用紙の
2305 寸法とそのうち実際に印字可能な範囲は同じではありません。ここに
2306 \begin_inset Flex Code
2307 status collapsed
2308
2309 \begin_layout Plain Layout
2310
2311 \family typewriter
2312
2313 \backslash
2314 hoffset
2315 \end_layout
2316
2317 \end_inset
2318
2319
2320 \family typewriter
2321 \series default
2322 \shape default
2323 \size default
2324 \emph default
2325 \bar default
2326 \noun default
2327 \color inherit
2328
2329 \begin_inset Flex Code
2330 status collapsed
2331
2332 \begin_layout Plain Layout
2333
2334 \family typewriter
2335
2336 \backslash
2337 voffset
2338 \end_layout
2339
2340 \end_inset
2341
2342
2343 \family default
2344 が役立つわけです。
2345 \end_layout
2346
2347 \begin_layout Standard
2348
2349 \family roman
2350 \series medium
2351 \shape up
2352 \size normal
2353 \emph off
2354 \bar no
2355 \noun off
2356 \color none
2357 \begin_inset Flex Code
2358 status collapsed
2359
2360 \begin_layout Plain Layout
2361
2362 \family typewriter
2363
2364 \backslash
2365 hoffset
2366 \end_layout
2367
2368 \end_inset
2369
2370
2371 \family typewriter
2372 \series default
2373 \shape default
2374 \size default
2375 \emph default
2376 \bar default
2377 \noun default
2378 \color inherit
2379
2380 \begin_inset Flex Code
2381 status collapsed
2382
2383 \begin_layout Plain Layout
2384
2385 \family typewriter
2386
2387 \backslash
2388 voffset
2389 \end_layout
2390
2391 \end_inset
2392
2393
2394 \family roman
2395 \series medium
2396 \shape up
2397 \size normal
2398 \emph off
2399 \bar no
2400 \noun off
2401 \color none
2402 の既定値はともに0ポイント、つまりページをシフトしません。残念ながら、DVIドライバによってはつねにページをシフトすることがあるようです。我々には、どうしてその
2403 ようなことをするのか、そしてシスアドがどうしてそれを修正しないのか理解できませんが、もし個人的に管理できないシステムで\SpecialChar LyX
2404 を使用していて、シスアドがお馬鹿さんである
2405 場合には、
2406 \begin_inset Flex Code
2407 status collapsed
2408
2409 \begin_layout Plain Layout
2410
2411 \family typewriter
2412
2413 \backslash
2414 hoffset
2415 \end_layout
2416
2417 \end_inset
2418
2419
2420 \family typewriter
2421 \series default
2422 \shape default
2423 \size default
2424 \emph default
2425 \bar default
2426 \noun default
2427 \color inherit
2428
2429 \begin_inset Flex Code
2430 status collapsed
2431
2432 \begin_layout Plain Layout
2433
2434 \family typewriter
2435
2436 \backslash
2437 voffset
2438 \end_layout
2439
2440 \end_inset
2441
2442
2443 \family roman
2444 \series medium
2445 \shape up
2446 \size normal
2447 \emph off
2448 \bar no
2449 \noun off
2450 \color none
2451 が役に立ちます。かりに、上余白と左余白がつねに0.5インチずつ大きすぎるものとしましょう。その場合は、以下をプリアンブルに追加するとよいでしょう。
2452 \end_layout
2453
2454 \begin_layout LyX-Code
2455
2456 \backslash
2457 setlength{
2458 \backslash
2459 hoffset}{-0.5 in}
2460 \end_layout
2461
2462 \begin_layout LyX-Code
2463
2464 \backslash
2465 setlength{
2466 \backslash
2467 voffset}{-0.5 in}
2468 \end_layout
2469
2470 \begin_layout Standard
2471
2472 \family roman
2473 \series medium
2474 \shape up
2475 \size normal
2476 \emph off
2477 \bar no
2478 \noun off
2479 \color none
2480 これで余白が修正されます。
2481 \end_layout
2482
2483 \begin_layout Subsubsection
2484 例2:ラベル
2485 \end_layout
2486
2487 \begin_layout Standard
2488
2489 \family roman
2490 \series medium
2491 \shape up
2492 \size normal
2493 \emph off
2494 \bar no
2495 \noun off
2496 \color none
2497 いま、たくさんの宛名ラベルを印刷をしたいものとしましょう。ラベルシートを印刷するために便利な
2498 \begin_inset Flex Code
2499 status collapsed
2500
2501 \begin_layout Plain Layout
2502
2503 \family typewriter
2504 labels.sty
2505 \end_layout
2506
2507 \end_inset
2508
2509 という\SpecialChar LaTeX
2510 パッケージが、お近くのCTANアーカイブで入手可能です。お使いのシステムには、既定ではこのパッケージは導入されていないかもしれません。ご自身でお確かめくだ
2511 さい。また、このパッケージの取扱説明書を読まれたいかもしれませんが、それもご自身にお任せします。これは使用例ですので、このパッケージをどう使うかの例だけお見せす
2512 ることにします。
2513 \end_layout
2514
2515 \begin_layout Standard
2516
2517 \family roman
2518 \series medium
2519 \shape up
2520 \size normal
2521 \emph off
2522 \bar no
2523 \noun off
2524 \color none
2525 まず、
2526 \begin_inset Flex Code
2527 status collapsed
2528
2529 \begin_layout Plain Layout
2530
2531 \family sans
2532 article
2533 \end_layout
2534
2535 \end_inset
2536
2537 文書クラスを使用していることをご確認ください。次に、以下のような設定をプリアンブルに追加しなければなりません。
2538 \end_layout
2539
2540 \begin_layout LyX-Code
2541
2542 \backslash
2543 usepackage{labels}
2544 \end_layout
2545
2546 \begin_layout LyX-Code
2547
2548 \backslash
2549 LabelCols=3
2550 \end_layout
2551
2552 \begin_layout LyX-Code
2553
2554 \backslash
2555 LabelRows=7
2556 \end_layout
2557
2558 \begin_layout LyX-Code
2559
2560 \backslash
2561 LeftBorder=8mm
2562 \end_layout
2563
2564 \begin_layout LyX-Code
2565
2566 \backslash
2567 RightBorder=8mm
2568 \end_layout
2569
2570 \begin_layout LyX-Code
2571
2572 \backslash
2573 TopBorder=9mm
2574 \end_layout
2575
2576 \begin_layout LyX-Code
2577
2578 \backslash
2579 BottomBorder=2mm
2580 \end_layout
2581
2582 \begin_layout Standard
2583
2584 \family roman
2585 \series medium
2586 \shape up
2587 \size normal
2588 \emph off
2589 \bar no
2590 \noun off
2591 \color none
2592 これは
2593 \family default
2594 \series default
2595 \shape default
2596 \size default
2597 \emph default
2598 \bar default
2599 \noun default
2600 \color inherit
2601 Avery®ラベルシートのストック5360
2602 \family roman
2603 \series medium
2604 \shape up
2605 \size normal
2606 \emph off
2607 \bar no
2608 \noun off
2609 \color none
2610 番を使用する場合の設定です。これで、各宛名を
2611 \begin_inset Flex Code
2612 status collapsed
2613
2614 \begin_layout Plain Layout
2615
2616 \family typewriter
2617
2618 \backslash
2619 begin{labels}
2620 \end_layout
2621
2622 \end_inset
2623
2624
2625 \family typewriter
2626 \series default
2627 \shape default
2628 \size default
2629 \emph default
2630 \bar default
2631 \noun default
2632 \color inherit
2633
2634 \begin_inset Flex Code
2635 status collapsed
2636
2637 \begin_layout Plain Layout
2638
2639 \family typewriter
2640
2641 \backslash
2642 end{labels}
2643 \end_layout
2644
2645 \end_inset
2646
2647
2648 \family roman
2649 \series medium
2650 \shape up
2651 \size normal
2652 \emph off
2653 \bar no
2654 \noun off
2655 \color none
2656 で囲めば、宛名ラベルの印刷をすることができます。本機能およびその他の機能に関しては、
2657 \begin_inset Flex Code
2658 status collapsed
2659
2660 \begin_layout Plain Layout
2661
2662 \family typewriter
2663 labels.sty
2664 \end_layout
2665
2666 \end_inset
2667
2668 の取扱説明書に説明されています。
2669 \end_layout
2670
2671 \begin_layout Standard
2672
2673 \family roman
2674 \series medium
2675 \shape up
2676 \size normal
2677 \emph off
2678 \bar no
2679 \noun off
2680 \color none
2681 そのうち誰かが、このパッケージを直接サポートする\SpecialChar LyX
2682 レイアウトファイルを作ってくれるかもしれません。その誰かはあなたかもしれません。
2683 \end_layout
2684
2685 \begin_layout Subsubsection
2686 例3: 段落の字下げ
2687 \end_layout
2688
2689 \begin_layout Standard
2690
2691 \family roman
2692 \series medium
2693 \shape up
2694 \size normal
2695 \emph off
2696 \bar no
2697 \noun off
2698 \color none
2699 アメリカ人は
2700 \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 \family roman
2712 \series medium
2713 \shape up
2714 \size normal
2715 \emph off
2716 \bar no
2717 \noun off
2718 \color none
2719 段落の最初の行を字下げするように教育されています。そのために彼らの他の変な習慣と同じく、いつものようにすべての段落の最初の行を下げるまで、アメリカ人はごちゃごち
2720 ゃと文句を言いつづけるのです
2721 \family default
2722 \series default
2723 \shape default
2724 \size default
2725 \emph default
2726 \bar default
2727 \noun default
2728 \color inherit
2729 。(これはユーモアです。(ほんと?)
2730 \emph on
2731 ユーモアですってば
2732 \emph default
2733 。)
2734 \end_layout
2735
2736 \begin_layout Standard
2737
2738 \family roman
2739 \series medium
2740 \shape up
2741 \size normal
2742 \emph off
2743 \bar no
2744 \noun off
2745 \color none
2746 もちろん、これは標準的な組版ルールではありません。書籍では、典型的には、他の段落のあとにくる段落
2747 \family default
2748 \series default
2749 \shape default
2750 \size default
2751 \emph on
2752 \bar default
2753 \noun default
2754 \color inherit
2755 のみ
2756 \family roman
2757 \series medium
2758 \shape up
2759 \size normal
2760 \emph off
2761 \bar no
2762 \noun off
2763 \color none
2764 字下げを行ないます。一行めを字下げをするそもそもの目的は、隣接する段落から区別するためです。したがって、図のあとや節の最初の段落など、先行する段落がない場合には
2765 、字下げをする必要はないのです。
2766 \end_layout
2767
2768 \begin_layout Standard
2769
2770 \family roman
2771 \series medium
2772 \shape up
2773 \size normal
2774 \emph off
2775 \bar no
2776 \noun off
2777 \color none
2778 けれどもあなたが典型的なアメリカ人なら(ユーーモアですって!)、そのような小難しいことはかまわずに、いつもどおりの字下げをせずにはいられないでしょう!プリアンブ
2779 ルに次の行を加えて下さい。
2780 \end_layout
2781
2782 \begin_layout LyX-Code
2783
2784 \backslash
2785 usepackage{indentfirst}
2786 \end_layout
2787
2788 \begin_layout Standard
2789
2790 \family roman
2791 \series medium
2792 \shape up
2793 \size normal
2794 \emph off
2795 \bar no
2796 \noun off
2797 \color none
2798 もしお使いの\SpecialChar TeX
2799 頒布版が脳死状態でなければ、このパッケージが入っているはずなので、建国の父たちが意図したように、すべての段落が字下げされます。
2800 \end_layout
2801
2802 \begin_layout Subsubsection
2803 例4:この文書
2804 \end_layout
2805
2806 \begin_layout Standard
2807
2808 \family roman
2809 \series medium
2810 \shape up
2811 \size normal
2812 \emph off
2813 \bar no
2814 \noun off
2815 \color none
2816 この文書のプリアンブルを見てみると、どのような高度な設定ができるか、おおまかな理解が得られるでしょう。また第
2817 \family default
2818 \series default
2819 \shape default
2820 \size default
2821 \emph default
2822 \bar default
2823 \noun default
2824 \color inherit
2825
2826 \begin_inset CommandInset ref
2827 LatexCommand ref
2828 reference "chap:Special-features"
2829
2830 \end_inset
2831
2832
2833 \family roman
2834 \series medium
2835 \shape up
2836 \size normal
2837 \emph off
2838 \bar no
2839 \noun off
2840 \color none
2841 章には、他の例や、\SpecialChar LaTeX
2842 の各種の「汚い技」があります。
2843 \end_layout
2844
2845 \begin_layout Section
2846 \SpecialChar LyX
2847 および\SpecialChar LaTeX
2848 のエラー
2849 \end_layout
2850
2851 \begin_layout Standard
2852
2853 \family roman
2854 \series medium
2855 \shape up
2856 \size normal
2857 \emph off
2858 \bar no
2859 \noun off
2860 \color none
2861 \SpecialChar LyX
2862 が\SpecialChar LaTeX
2863 を呼び出す際、\SpecialChar LyX
2864 は\SpecialChar LaTeX
2865 に、かりにエラーがあったとしても楽観的に無視して先に進むように指示します。その後\SpecialChar LyX
2866 は、\SpecialChar LaTeX
2867 の実行ログファイルを事後処理用に使います。ログファイルを分
2868 析したのち、\SpecialChar LyX
2869 はエラーを一覧表示するダイアログを表示します。エラーのうちどれかをクリックすると、\SpecialChar LyX
2870 ファイル中、そのエラーの発生した場所に表示を移動します
2871 \begin_inset Foot
2872 status collapsed
2873
2874 \begin_layout Plain Layout
2875
2876 \family roman
2877 \series medium
2878 \shape up
2879 \size normal
2880 \emph off
2881 \bar no
2882 \noun off
2883 \color none
2884 正確にいうと、通常は、です。ログファイルの分析は難しい仕事ですので、\SpecialChar LyX
2885 はつねに正しい行に連れて行ってくれるとは限りません。ときには、\SpecialChar LaTeX
2886 がある行にエラーがあると報告し
2887 たとしても、実際のエラーはそれよりも前であることもあります。これは、プログラムで閉じ括弧を忘れたときに似ていなくもありません。エラーは表示されますが、実際にエラ
2888 ーのある場所よりも後ろでエラーが報告されるのです。
2889 \end_layout
2890
2891 \end_inset
2892
2893
2894 \family default
2895 \series default
2896 \shape default
2897 \size default
2898 \emph default
2899 \bar default
2900 \noun default
2901 \color inherit
2902
2903 \end_layout
2904
2905 \begin_layout Standard
2906
2907 \family roman
2908 \series medium
2909 \shape up
2910 \size normal
2911 \emph off
2912 \bar no
2913 \noun off
2914 \color none
2915 人によっては、ログファイルを直接ご覧になりたいかもしれません。これは、
2916 \begin_inset Flex MenuItem
2917 status collapsed
2918
2919 \begin_layout Plain Layout
2920
2921 \family roman
2922 \series medium
2923 \shape up
2924 \size normal
2925 \emph off
2926 \bar no
2927 \noun off
2928 \color none
2929 文書\SpecialChar menuseparator
2930 \SpecialChar LaTeX
2931 ログ
2932 \end_layout
2933
2934 \end_inset
2935
2936 で見ることができます。エラーメッセージや警告には、よく見かけるものがいくつかありますので、それらをここに収録しておきます。ここにないエラーや警告に関しては、La\SpecialChar TeX
2937
2938 関連の良書を参照してください。
2939 \end_layout
2940
2941 \begin_layout Itemize
2942
2943 \family typewriter
2944 \begin_inset Flex Code
2945 status collapsed
2946
2947 \begin_layout Plain Layout
2948
2949 \family typewriter
2950 LaTe
2951 \begin_inset ERT
2952 status collapsed
2953
2954 \begin_layout Plain Layout
2955
2956 {}
2957 \end_layout
2958
2959 \end_inset
2960
2961 X 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 typewriter
2988 \begin_inset Flex Code
2989 status collapsed
2990
2991 \begin_layout Plain Layout
2992
2993 \family typewriter
2994 LaTe
2995 \begin_inset ERT
2996 status collapsed
2997
2998 \begin_layout Plain Layout
2999
3000 {}
3001 \end_layout
3002
3003 \end_inset
3004
3005 X Font Warning
3006 \end_layout
3007
3008 \end_inset
3009
3010
3011 \family roman
3012 \series medium
3013 \shape up
3014 \size normal
3015 \emph off
3016 \bar no
3017 \noun off
3018 \color none
3019
3020 \begin_inset Newline newline
3021 \end_inset
3022
3023 \SpecialChar LaTeX
3024 がフォントを見つけられなかったと言う警告メッセージです。多くの場合、このメッセージの後に、\SpecialChar LaTeX
3025 が使用した代替フォントに関する情報が続きます。これも無視して構いません
3026
3027 \end_layout
3028
3029 \begin_layout Itemize
3030
3031 \family roman
3032 \series medium
3033 \shape up
3034 \size normal
3035 \emph off
3036 \bar no
3037 \noun off
3038 \color none
3039 \begin_inset Flex Code
3040 status collapsed
3041
3042 \begin_layout Plain Layout
3043
3044 \family typewriter
3045 Overfull 
3046 \backslash
3047 hbox
3048 \end_layout
3049
3050 \end_inset
3051
3052
3053 \begin_inset Newline newline
3054 \end_inset
3055
3056 \SpecialChar LaTeX
3057 は、
3058 \family default
3059 \series default
3060 \shape default
3061 \size default
3062 \emph on
3063 \bar default
3064 \noun default
3065 \color inherit
3066 ほぼどんなときでも
3067 \family roman
3068 \series medium
3069 \shape up
3070 \size normal
3071 \emph off
3072 \bar no
3073 \noun off
3074 \color none
3075 この警告を吐き出します。これは、一行が長すぎて右余白にはみ出してしまったという警告ですが、ほとんどの場合、最終出力を見ても判別できないくらい(せいぜい1ポイント
3076 か2ポイント)です。あるいは1文字か2文字右余白に出ているくらいです。\SpecialChar LaTeX
3077 は、どんな文書を書いても、少なくとも一つはこのメッセージを出すようです。
3078 \begin_inset Newline newline
3079 \end_inset
3080
3081 このメッセージは無視しても大丈夫です。何か行が長すぎるような問題があれば、目で見ればわかります。出力を目で確認してください
3082 \begin_inset Foot
3083 status collapsed
3084
3085 \begin_layout Plain Layout
3086 あるいは、
3087 \begin_inset Flex MenuItem
3088 status collapsed
3089
3090 \begin_layout Plain Layout
3091 文書\SpecialChar menuseparator
3092 設定
3093 \end_layout
3094
3095 \end_inset
3096
3097 で「draft」オプションを指定する方法もあります。こうすると、\SpecialChar LaTeX
3098 は、overfullの発生した行の余白に黒い四角を描画します。
3099 \end_layout
3100
3101 \end_inset
3102
3103
3104 \end_layout
3105
3106 \begin_layout Itemize
3107
3108 \family typewriter
3109 \begin_inset Flex Code
3110 status collapsed
3111
3112 \begin_layout Plain Layout
3113
3114 \family typewriter
3115 Underfull 
3116 \backslash
3117 hbox
3118 \end_layout
3119
3120 \end_inset
3121
3122
3123 \begin_inset Newline newline
3124 \end_inset
3125
3126
3127 \family roman
3128 \series medium
3129 \shape up
3130 \size normal
3131 \emph off
3132 \bar no
3133 \noun off
3134 \color none
3135 これは上の警告と違ってあまり出てきません。なぜだかは分かりませんが、\SpecialChar LaTeX
3136 は1行を短めにする印字するよりは、長めにする方が好きなようです。
3137 \end_layout
3138
3139 \begin_layout Itemize
3140 \begin_inset Flex Code
3141 status collapsed
3142
3143 \begin_layout Plain Layout
3144
3145 \family typewriter
3146 Overfull 
3147 \backslash
3148 vbox
3149 \end_layout
3150
3151 \end_inset
3152
3153
3154 \family typewriter
3155
3156 \begin_inset Flex Code
3157 status collapsed
3158
3159 \begin_layout Plain Layout
3160
3161 \family typewriter
3162 Underfull 
3163 \backslash
3164 vbox
3165 \end_layout
3166
3167 \end_inset
3168
3169
3170 \family default
3171
3172 \begin_inset Newline newline
3173 \end_inset
3174
3175
3176 \family roman
3177 \series medium
3178 \shape up
3179 \size normal
3180 \emph off
3181 \bar no
3182 \noun off
3183 \color none
3184 ページ区切りに問題があったという警告です。この場合も、出力を目で確認してください。何か問題があれば、見てすぐわかります。
3185 \end_layout
3186
3187 \begin_layout Itemize
3188
3189 \family typewriter
3190 \begin_inset Flex Code
3191 status collapsed
3192
3193 \begin_layout Plain Layout
3194
3195 \family typewriter
3196 LaTe
3197 \begin_inset ERT
3198 status collapsed
3199
3200 \begin_layout Plain Layout
3201
3202 {}
3203 \end_layout
3204
3205 \end_inset
3206
3207 X Error: File 
3208 \begin_inset Quotes els
3209 \end_inset
3210
3211 Xxxx
3212 \begin_inset Quotes ers
3213 \end_inset
3214
3215  not found
3216 \end_layout
3217
3218 \end_inset
3219
3220
3221 \family roman
3222 \series medium
3223 \shape up
3224 \size normal
3225 \emph off
3226 \bar no
3227 \noun off
3228 \color none
3229
3230 \begin_inset Newline newline
3231 \end_inset
3232
3233 ファイル「Xxxx」が、システムに導入されていません。これは通常、文書が必要としている\SpecialChar LaTeX
3234 パッケージに、導入済でないものがある場合に現れます。プリアンブルに変更を加
3235 えておらず、
3236 \begin_inset Flex Code
3237 status collapsed
3238
3239 \begin_layout Plain Layout
3240
3241 \family typewriter
3242
3243 \backslash
3244 usepackage{}
3245 \end_layout
3246
3247 \end_inset
3248
3249 コマンドも使用していないとすれば、\SpecialChar LyX
3250 が読み込もうしているパッケージに存在しないものがあるということです。
3251 \family default
3252 \series default
3253 \shape default
3254 \size default
3255 \emph default
3256 \bar default
3257 \noun default
3258 \color inherit
3259
3260 \begin_inset Flex MenuItem
3261 status collapsed
3262
3263 \begin_layout Plain Layout
3264 ヘルプ\SpecialChar menuseparator
3265 \SpecialChar LaTeX
3266 の設定
3267 \end_layout
3268
3269 \end_inset
3270
3271
3272 \family roman
3273 \series medium
3274 \shape up
3275 \size normal
3276 \emph off
3277 \bar no
3278 \noun off
3279 \color none
3280 を使用して、\SpecialChar LyX
3281 が認識しているパッケージの一覧を得てください。このファイルは、(
3282 \begin_inset Flex MenuItem
3283 status collapsed
3284
3285 \begin_layout Plain Layout
3286
3287 \family roman
3288 \series medium
3289 \shape up
3290 \size normal
3291 \emph off
3292 \bar no
3293 \noun off
3294 \color none
3295 ツール\SpecialChar menuseparator
3296 再設定
3297 \end_layout
3298
3299 \end_inset
3300
3301 を使用して)\SpecialChar LyX
3302 の再設定を行うたびに更新され、どのパッケージが検出されたか、それらのパッケージが何をするものかを表示します。
3303 \begin_inset Newline newline
3304 \end_inset
3305
3306
3307 \family sans
3308 \series default
3309 \shape default
3310 \size default
3311 \emph default
3312 \bar default
3313 \noun default
3314 \color inherit
3315
3316 \begin_inset Flex Code
3317 status collapsed
3318
3319 \begin_layout Plain Layout
3320
3321 \family sans
3322
3323 \backslash
3324 usepackage{}
3325 \end_layout
3326
3327 \end_inset
3328
3329
3330 \family roman
3331 \series medium
3332 \shape up
3333 \size normal
3334 \emph off
3335 \bar no
3336 \noun off
3337 \color none
3338 コマンドを使っていて、肝心のパッケージが導入されていない場合には、ご自身で導入する必要があります。
3339 \end_layout
3340
3341 \begin_layout Itemize
3342
3343 \family typewriter
3344 \begin_inset Flex Code
3345 status collapsed
3346
3347 \begin_layout Plain Layout
3348
3349 \family typewriter
3350 LaTe
3351 \begin_inset ERT
3352 status collapsed
3353
3354 \begin_layout Plain Layout
3355
3356 {}
3357 \end_layout
3358
3359 \end_inset
3360
3361 X Error: Unknown option
3362 \end_layout
3363
3364 \end_inset
3365
3366
3367 \family roman
3368 \series medium
3369 \shape up
3370 \size normal
3371 \emph off
3372 \bar no
3373 \noun off
3374 \color none
3375
3376 \begin_inset Newline newline
3377 \end_inset
3378
3379 このように始まるエラーメッセージは、パッケージに誤ったあるいは未定義のオプションが指定されていることを伝えようとするものです。パッケージの取扱説明書をご確認くだ
3380 さい。
3381 \end_layout
3382
3383 \begin_layout Itemize
3384
3385 \family typewriter
3386 \begin_inset Flex Code
3387 status collapsed
3388
3389 \begin_layout Plain Layout
3390
3391 \family typewriter
3392 Undefined control sequence
3393 \end_layout
3394
3395 \end_inset
3396
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
3407 \begin_inset Newline newline
3408 \end_inset
3409
3410 お使いの文書に\SpecialChar LaTeX
3411 コードを挿入した際、打ち間違いをしてしまうと、このようなメッセージが表示されます。あるいは、パッケージを読み込ませるのを忘れたのかもしれません。い
3412 ずれにしても、このメッセージは、あなたが未定義のコマンドを使用したことを示しています。
3413 \end_layout
3414
3415 \begin_layout Standard
3416
3417 \family roman
3418 \series medium
3419 \shape up
3420 \size normal
3421 \emph off
3422 \bar no
3423 \noun off
3424 \color none
3425 これ以外にも、エラーメッセージや警告メッセージがあります。一般に、読んで意味がすぐにわかるものは、\SpecialChar LaTeX
3426 のメッセージです。何を言っているのかさっぱりわからないものもあ
3427 りますが、通常これらは、\SpecialChar TeX
3428 のメッセージであり、それが何を意味しているのか、どのように解読すればいいのか、
3429 \family default
3430 \series default
3431 \shape default
3432 \size default
3433 \emph on
3434 \bar default
3435 \noun default
3436 \color inherit
3437 まったく
3438 \family roman
3439 \series medium
3440 \shape up
3441 \size normal
3442 \emph off
3443 \bar no
3444 \noun off
3445 \color none
3446 手がかりがありません。誰もわからないのです。
3447 \end_layout
3448
3449 \begin_layout Standard
3450
3451 \family roman
3452 \series medium
3453 \shape up
3454 \size normal
3455 \emph off
3456 \bar no
3457 \noun off
3458 \color none
3459 エラーメッセージが表示された場合は、つねに以下のチェックリストにしたがった方がよいでしょう。
3460 \end_layout
3461
3462 \begin_layout Enumerate
3463
3464 \family roman
3465 \series medium
3466 \shape up
3467 \size normal
3468 \emph off
3469 \bar no
3470 \noun off
3471 \color none
3472 ご自分で挿入した\SpecialChar LaTeX
3473 コードに打ち間違いがないかどうか確かめる。
3474 \end_layout
3475
3476 \begin_layout Enumerate
3477
3478 \family roman
3479 \series medium
3480 \shape up
3481 \size normal
3482 \emph off
3483 \bar no
3484 \noun off
3485 \color none
3486 打ち間違いがなければ、コマンドを正しく使ったかどうか確かめる。
3487 \end_layout
3488
3489 \begin_layout Enumerate
3490
3491 \family roman
3492 \series medium
3493 \shape up
3494 \size normal
3495 \emph off
3496 \bar no
3497 \noun off
3498 \color none
3499 文書のもっともはじめの部分にエラーボックスが多数積み上がった場合には—特に
3500 \begin_inset Flex Code
3501 status collapsed
3502
3503 \begin_layout Plain Layout
3504
3505 \family roman
3506 \series medium
3507 \shape up
3508 \size normal
3509 \emph off
3510 \bar no
3511 \noun off
3512 \color none
3513 Missing 
3514 \backslash
3515 begin{document}
3516 \end_layout
3517
3518 \end_inset
3519
3520 が表示されているならば—、プリアンブルにエラーがあることを意味します。プリアンブルのデバックを行ってください。
3521 \end_layout
3522
3523 \begin_layout Enumerate
3524
3525 \family roman
3526 \series medium
3527 \shape up
3528 \size normal
3529 \emph off
3530 \bar no
3531 \noun off
3532 \color none
3533 プリアンブルに何も追加せず、文書に\SpecialChar LaTeX
3534 コードをまったく挿入しなかった場合には、\SpecialChar LaTeX
3535 頒布版自体をまず疑ってください。導入されていないパッケージを探しだして、導入してくださ
3536 い。
3537 \end_layout
3538
3539 \begin_layout Enumerate
3540
3541 \family roman
3542 \series medium
3543 \shape up
3544 \size normal
3545 \emph off
3546 \bar no
3547 \noun off
3548 \color none
3549 導入されていないパッケージはなかったものとしましょう。\SpecialChar LyX
3550 を微調整するオプションを使用していますか。特に、手動で
3551 \begin_inset Flex Code
3552 status collapsed
3553
3554 \begin_layout Plain Layout
3555
3556 \family sans
3557 Protected
3558 \begin_inset space ~
3559 \end_inset
3560
3561 Blank
3562 \end_layout
3563
3564 \end_inset
3565
3566
3567 \begin_inset Flex Code
3568 status collapsed
3569
3570 \begin_layout Plain Layout
3571
3572 \family sans
3573 Linebreak
3574 \end_layout
3575
3576 \end_inset
3577
3578
3579 \family sans
3580 \series default
3581 \shape default
3582 \size default
3583 \emph default
3584 \bar default
3585 \noun default
3586 \color inherit
3587
3588 \begin_inset Flex Code
3589 status collapsed
3590
3591 \begin_layout Plain Layout
3592
3593 \family sans
3594 Pagebreak
3595 \end_layout
3596
3597 \end_inset
3598
3599
3600 \family roman
3601 \series medium
3602 \shape up
3603 \size normal
3604 \emph off
3605 \bar no
3606 \noun off
3607 \color none
3608 などをたくさん挿入するなど、微調整オプションを
3609 \family default
3610 \series default
3611 \shape default
3612 \size default
3613 \emph on
3614 \bar default
3615 \noun default
3616 \color inherit
3617 悪用
3618 \family roman
3619 \series medium
3620 \shape up
3621 \size normal
3622 \emph off
3623 \bar no
3624 \noun off
3625 \color none
3626 していませんか。適切な段落環境を使用する代わりに、これらを使用してその場をしのごうとしていませんか。
3627 \end_layout
3628
3629 \begin_layout Enumerate
3630
3631 \family roman
3632 \series medium
3633 \shape up
3634 \size normal
3635 \emph off
3636 \bar no
3637 \noun off
3638 \color none
3639 微調整オプションはまったく使用しておらず、規則に乗っ取って作業していたものとしましょう。何か曲芸のようなことをしようとはしていませんか。数式や表中で、たとえば表
3640 のセルに図を入れるなど、おかしなことをしようとしていませんか。
3641 \end_layout
3642
3643 \begin_layout Enumerate
3644 \SpecialChar LaTeX
3645 が改行位置を見つけられないほど長い一節がありませんか。既定では、改行するために単語間に空白をたくさん追加することを、\SpecialChar LaTeX
3646 はかなり嫌います。可能であれば、問題が生じな
3647 いように段落を修正するのが望ましいでしょう。
3648 \end_layout
3649
3650 \begin_layout Enumerate
3651
3652 \family roman
3653 \series medium
3654 \shape up
3655 \size normal
3656 \emph off
3657 \bar no
3658 \noun off
3659 \color none
3660 入れ子の階層を深くしすぎていませんか。\SpecialChar LyX
3661 は、(今のところ)環境の入れ子の階層が制限内にあるかチェックしません。かりに、環境を17段の入れ子にしたりしていたら、それ
3662 が原因です(\SpecialChar LaTeX
3663 の上限は5段です)。
3664 \end_layout
3665
3666 \begin_layout Enumerate
3667
3668 \family roman
3669 \series medium
3670 \shape up
3671 \size normal
3672 \emph off
3673 \bar no
3674 \noun off
3675 \color none
3676 エラーメッセージは発生しないけれども、出力がひどいものとしましょう。図表が幅が広すぎたり長すぎてページに収まらない場合には、
3677 \family default
3678 \series default
3679 \shape default
3680 \size default
3681 \bar default
3682 \color inherit
3683
3684 \begin_inset Separator parbreak
3685 \end_inset
3686
3687
3688 \end_layout
3689
3690 \begin_deeper
3691 \begin_layout Enumerate
3692
3693 \family roman
3694 \series medium
3695 \shape up
3696 \size normal
3697 \emph off
3698 \bar no
3699 \noun off
3700 \color none
3701 図がページに合うように大きさを変える、
3702 \end_layout
3703
3704 \begin_layout Enumerate
3705
3706 \family roman
3707 \series medium
3708 \shape up
3709 \size normal
3710 \emph off
3711 \bar no
3712 \noun off
3713 \color none
3714 表がページに合うように削る、
3715 \end_layout
3716
3717 \begin_layout Standard
3718
3719 \family roman
3720 \series medium
3721 \shape up
3722 \size normal
3723 \emph off
3724 \bar no
3725 \noun off
3726 \color none
3727 などの手段を採る必要があります。
3728 \end_layout
3729
3730 \end_deeper
3731 \begin_layout Enumerate
3732 他に出力におかしいところがあり、曲芸をやろうとしたり微調整オプションでしのごうとしたりはしていないとすれば、何がおかしいのか確定的なことは言えません。
3733 \end_layout
3734
3735 \begin_layout Standard
3736
3737 \family roman
3738 \series medium
3739 \shape up
3740 \size normal
3741 \emph off
3742 \bar no
3743 \noun off
3744 \color none
3745 これらすべてが役に立たないとすれば、
3746 \family default
3747 \series default
3748 \shape default
3749 \size default
3750 \emph on
3751 \bar default
3752 \noun default
3753 \color inherit
3754 ひょっとしたら
3755 \family roman
3756 \series medium
3757 \shape up
3758 \size normal
3759 \emph off
3760 \bar no
3761 \noun off
3762 \color none
3763 \SpecialChar LyX
3764 のバグを発見したのかもしれません‥‥。
3765 \end_layout
3766
3767 \begin_layout Chapter
3768 補完ツール
3769 \end_layout
3770
3771 \begin_layout Section
3772 Bib\SpecialChar TeX
3773 による書誌情報のカスタマイズ
3774 \end_layout
3775
3776 \begin_layout Standard
3777 Bib\SpecialChar TeX
3778 の基本的な使用法は、『
3779 \emph on
3780 ユーザーの手引き
3781 \emph default
3782 』の「
3783 \emph on
3784 文献データベース(Bib\SpecialChar TeX
3785 )
3786 \emph default
3787 」の節に説明があります。以下の各小節では、\SpecialChar LyX
3788 でサポートされている書誌情報の特別な機能について説明することとします。
3789 \end_layout
3790
3791 \begin_layout Subsection
3792 他の引用様式
3793 \end_layout
3794
3795 \begin_layout Standard
3796 標準のBib\SpecialChar TeX
3797 は、引用された著作を参照するのに、([12]のように)数字を使用します。しかし、多くの科学分野で、これとは異なる引用様式が用いられています。もっとも
3798 よく見られるのは、著者-出版年様式(例:Knuth 1984a)です。\SpecialChar LyX
3799 は、この様式を提供する2つのパッケージ
3800 \begin_inset Flex Code
3801 status collapsed
3802
3803 \begin_layout Plain Layout
3804 natbib
3805 \end_layout
3806
3807 \end_inset
3808
3809
3810 \begin_inset Flex Code
3811 status collapsed
3812
3813 \begin_layout Plain Layout
3814 jurabib
3815 \end_layout
3816
3817 \end_inset
3818
3819 をサポートしています。これらのパッケージには、それぞれ長所短所がありますが、ここでは詳細に立ち入る紙幅がありません。単純な著者-出版年様式(あるいは著者-番号)
3820 様式が欲しい場合や、無数にある
3821 \begin_inset Flex Code
3822 status collapsed
3823
3824 \begin_layout Plain Layout
3825 natbib
3826 \end_layout
3827
3828 \end_inset
3829
3830 用スタイルファイルのうちどれかを使用したい場合には、定評のある
3831 \begin_inset Flex Code
3832 status collapsed
3833
3834 \begin_layout Plain Layout
3835 natbib
3836 \end_layout
3837
3838 \end_inset
3839
3840 パッケージがおそらくよい選択でしょう。短縮タイトルによる参照や
3841 \emph on
3842 ibid.
3843 \emph default
3844 など、特別な機能が必要な場合には、
3845 \begin_inset Flex Code
3846 status collapsed
3847
3848 \begin_layout Plain Layout
3849 jurabib
3850 \end_layout
3851
3852 \end_inset
3853
3854 パッケージの利用を考えるとよいかもしれません。
3855 \end_layout
3856
3857 \begin_layout Standard
3858 \SpecialChar LyX
3859 での両パッケージの取扱い方は、ほぼ同じです。
3860 \begin_inset Flex MenuItem
3861 status collapsed
3862
3863 \begin_layout Plain Layout
3864 文書\SpecialChar menuseparator
3865 設定
3866 \end_layout
3867
3868 \end_inset
3869
3870 メニューを開き、
3871 \begin_inset Flex MenuItem
3872 status collapsed
3873
3874 \begin_layout Plain Layout
3875 書誌情報
3876 \end_layout
3877
3878 \end_inset
3879
3880 項目から
3881 \begin_inset Flex MenuItem
3882 status collapsed
3883
3884 \begin_layout Plain Layout
3885 Natbib
3886 \end_layout
3887
3888 \end_inset
3889
3890 オプションか
3891 \begin_inset Flex MenuItem
3892 status collapsed
3893
3894 \begin_layout Plain Layout
3895 Jurabib
3896 \end_layout
3897
3898 \end_inset
3899
3900 オプションを選択してください。これらのパッケージによって、引用ダイアログに機能が追加され、参照の様式が選択できるようになります(「Knuth 1984」、「Kn
3901 uth (1984)」、「Knuth, 1984」、「1984」など)。両パッケージは、専用にデザインされたスタイルファイルを必要とすることに注意してください。
3902 両者ともそれ自身のスタイルファイルを同梱していますが、他にもたくさんの追加スタイルファイルがありますし、
3903 \begin_inset Flex Code
3904 status collapsed
3905
3906 \begin_layout Plain Layout
3907 natbib
3908 \end_layout
3909
3910 \end_inset
3911
3912 に至っては、対話的なスタイルファイルビルダーさえ存在します
3913 \begin_inset Foot
3914 status collapsed
3915
3916 \begin_layout Plain Layout
3917 \begin_inset Flex URL
3918 status open
3919
3920 \begin_layout Plain Layout
3921
3922 ftp://ctan.tug.org/tex-archive/macros/latex/contrib/custom-bib/
3923 \end_layout
3924
3925 \end_inset
3926
3927 をご参照ください。
3928 \end_layout
3929
3930 \end_inset
3931
3932
3933 \end_layout
3934
3935 \begin_layout Subsection
3936 節分けされた書誌情報
3937 \end_layout
3938
3939 \begin_layout Standard
3940 場合によっては、書誌情報をいくつかの節に分ける必要があることがあります。たとえば、あなたが歴史家であるとすれば、出典と学術文献を分ける機能は、おそらく「必需品」
3941 でさえあります。残念ながら、Bib\SpecialChar TeX
3942 自身ではこのようなことができません。しかし、適切な\SpecialChar LaTeX
3943 パッケージの助けを借りると、Bib\SpecialChar TeX
3944 をこのような必要性を満たすように拡張するこ
3945 とができます。
3946 \end_layout
3947
3948 \begin_layout Standard
3949 \SpecialChar LyX
3950 は、このようなパッケージの一つである
3951 \begin_inset Flex Code
3952 status collapsed
3953
3954 \begin_layout Plain Layout
3955 bibtopic
3956 \end_layout
3957
3958 \end_inset
3959
3960
3961 \begin_inset Foot
3962 status collapsed
3963
3964 \begin_layout Plain Layout
3965 \begin_inset Flex URL
3966 status open
3967
3968 \begin_layout Plain Layout
3969
3970 ftp://ctan.tug.org/tex-archive/macros/latex/contrib/bibtopic/
3971 \end_layout
3972
3973 \end_inset
3974
3975 から入手可能です。
3976 \end_layout
3977
3978 \end_inset
3979
3980 をそのままでサポートします。このパッケージの長所は、(
3981 \begin_inset Flex Code
3982 status collapsed
3983
3984 \begin_layout Plain Layout
3985 multibib
3986 \end_layout
3987
3988 \end_inset
3989
3990 のような他のパッケージと比較すると)新規の引用コマンドを定義する必要がないことです。そのかわりに、書誌情報の違う節には、その節向けの項目を収録した別の文献データ
3991 ベースを用意する必要があります。たとえば、書誌情報を「出典」の節と「学術文献」の節に分けたい場合には、それぞれの文献データベース、たとえば
3992 \begin_inset Flex Code
3993 status collapsed
3994
3995 \begin_layout Plain Layout
3996 souces.bib
3997 \end_layout
3998
3999 \end_inset
4000
4001
4002 \begin_inset Flex Code
4003 status collapsed
4004
4005 \begin_layout Plain Layout
4006 scientific.bib
4007 \end_layout
4008
4009 \end_inset
4010
4011 とを作成する必要があります。
4012 \end_layout
4013
4014 \begin_layout Standard
4015 \begin_inset Flex MenuItem
4016 status collapsed
4017
4018 \begin_layout Plain Layout
4019 文書\SpecialChar menuseparator
4020 設定
4021 \end_layout
4022
4023 \end_inset
4024
4025 を開いて
4026 \begin_inset Flex MenuItem
4027 status collapsed
4028
4029 \begin_layout Plain Layout
4030 書誌情報
4031 \end_layout
4032
4033 \end_inset
4034
4035 の下の
4036 \begin_inset Flex MenuItem
4037 status collapsed
4038
4039 \begin_layout Plain Layout
4040 節分けされた書誌情報
4041 \end_layout
4042
4043 \end_inset
4044
4045 をチェックしてください。すると、書誌情報の各節に一つずつ、複数の書誌情報を挿入することができます。上記の例では、Bib\SpecialChar TeX
4046 書誌情報
4047 \begin_inset Flex Code
4048 status collapsed
4049
4050 \begin_layout Plain Layout
4051 sources.bib
4052 \end_layout
4053
4054 \end_inset
4055
4056 と二つめの文献データベース
4057 \begin_inset Flex Code
4058 status collapsed
4059
4060 \begin_layout Plain Layout
4061 scientific.bib
4062 \end_layout
4063
4064 \end_inset
4065
4066 を挿入します。各節に同じスタイルを用いるか異なるスタイルを用いるかは自由です。くわえて、書誌情報の節に、指定したデータベースの「引用されたすべての参照」を載せる
4067 (これが既定です)か、「引用されなかったすべての参照」を載せるか、あるいは「すべての参照」を載せるかを選択することができます。これは、もし書誌情報を「本文に引用
4068 された出典」・「本文に引用されていない出典」・「学術文献」の三つの節に分割したい場合に、便利でありましょう。各節の見出しは、通常の節や小節として入れることができ
4069 ます。
4070 \begin_inset Flex Code
4071 status collapsed
4072
4073 \begin_layout Plain Layout
4074 bibtopic
4075 \end_layout
4076
4077 \end_inset
4078
4079 は、書誌情報用の見出しを取り除いてしまいますので、手動でこれを追加しなくてはなりません(たとえば章*や節*などをお使いください)。
4080 \end_layout
4081
4082 \begin_layout Subsection
4083 複数の書誌情報
4084 \end_layout
4085
4086 \begin_layout Standard
4087 文書の節ごとあるいは章ごとの書誌情報など、複数の書誌情報はBib\SpecialChar TeX
4088 自身ではサポートされていません。しかしながら、もし若干の
4089 \begin_inset Flex Code
4090 status collapsed
4091
4092 \begin_layout Plain Layout
4093 \SpecialChar TeX
4094 コード
4095 \end_layout
4096
4097 \end_inset
4098
4099 (第
4100 \begin_inset CommandInset ref
4101 LatexCommand ref
4102 reference "sec:LaTeXコードを挿入する"
4103
4104 \end_inset
4105
4106 節を参照)を利用することを厭わなければ、\SpecialChar LyX
4107 で節分けされた書誌情報を作るのに使用されている(前節を参照)
4108 \begin_inset Flex Code
4109 status collapsed
4110
4111 \begin_layout Plain Layout
4112 bibtopic
4113 \end_layout
4114
4115 \end_inset
4116
4117 パッケージが、この課題を解決する簡単な方法を提供します
4118 \begin_inset Foot
4119 status collapsed
4120
4121 \begin_layout Plain Layout
4122 ほかに、
4123 \begin_inset Flex Code
4124 status collapsed
4125
4126 \begin_layout Plain Layout
4127 chapterbib
4128 \end_layout
4129
4130 \end_inset
4131
4132
4133 \begin_inset Flex Code
4134 status collapsed
4135
4136 \begin_layout Plain Layout
4137 bibunits
4138 \end_layout
4139
4140 \end_inset
4141
4142 パッケージを利用する方法もあります。
4143 \end_layout
4144
4145 \end_inset
4146
4147
4148 \end_layout
4149
4150 \begin_layout Standard
4151 まず
4152 \begin_inset Flex MenuItem
4153 status collapsed
4154
4155 \begin_layout Plain Layout
4156 文書\SpecialChar menuseparator
4157 設定
4158 \end_layout
4159
4160 \end_inset
4161
4162 に行って
4163 \begin_inset Flex MenuItem
4164 status collapsed
4165
4166 \begin_layout Plain Layout
4167 書誌情報
4168 \end_layout
4169
4170 \end_inset
4171
4172 の下の
4173 \begin_inset Flex MenuItem
4174 status collapsed
4175
4176 \begin_layout Plain Layout
4177 節分けされた書誌情報
4178 \end_layout
4179
4180 \end_inset
4181
4182 を有効にしてください。つぎに文書中において、書誌情報(Bib\SpecialChar TeX
4183 書誌情報本体を含む)の入った節を
4184 \begin_inset Flex Code
4185 status collapsed
4186
4187 \begin_layout Plain Layout
4188
4189 \backslash
4190 begin{btUnit}
4191 \end_layout
4192
4193 \end_inset
4194
4195
4196 \begin_inset Flex Code
4197 status collapsed
4198
4199 \begin_layout Plain Layout
4200
4201 \backslash
4202 end{btUnit}
4203 \end_layout
4204
4205 \end_inset
4206
4207 のあいだにはさまなくてはなりません(これらのコマンドは\SpecialChar TeX
4208 コードとして挿入する必要があります)。書誌情報には、現在位置の
4209 \begin_inset Flex Code
4210 status collapsed
4211
4212 \begin_layout Plain Layout
4213 btUnit
4214 \end_layout
4215
4216 \end_inset
4217
4218 において引用されたすべての参照が含まれることになります。
4219 \series bold
4220 (註)
4221 \series default
4222 この方法を用いる場合には、すべての参照はいずれかの
4223 \begin_inset Flex Code
4224 status collapsed
4225
4226 \begin_layout Plain Layout
4227 btUnit
4228 \end_layout
4229
4230 \end_inset
4231
4232 内部になくてはなりません。また、
4233 \begin_inset Flex Code
4234 status collapsed
4235
4236 \begin_layout Plain Layout
4237 btUnit
4238 \end_layout
4239
4240 \end_inset
4241
4242 は入れ子構造にすることができません。
4243 \end_layout
4244
4245 \begin_layout Section
4246 複合文書
4247 \end_layout
4248
4249 \begin_layout Subsection
4250 一般的な操作
4251 \end_layout
4252
4253 \begin_layout Standard
4254 たくさんの節を含んだ大きなファイルで作業をする場合、文書をいくつかのファイルに分割した方が往々にして便利ですし、場合によっては、表部分にはしょっちゅう変更が加え
4255 られるけれども、その前の文章はつねに同じであるようなケースもあるでしょう。このような場合には、複合文書を利用することを、まずご検討ください。たとえば、科学論文は
4256 通常、導入部・所見・結果・議論・結論の五つの節から成ります。これら各節を別々の\SpecialChar LyX
4257 ファイルにして、タイトル・著者・概要・書誌情報等と、これら五つのインクルード
4258 \begin_inset Foot
4259 status collapsed
4260
4261 \begin_layout Plain Layout
4262
4263 \series bold
4264 (訳註)
4265 \series default
4266 「取り込む」の意です。原語「include」に対する訳語として、プログラミング用語の「インクルードする」以外に適語がないので、ここではプログラミング用語をそのま
4267 ま使用します。
4268 \end_layout
4269
4270 \end_inset
4271
4272 ファイルを持つ、もう一つ別の「マスター」ファイルを作成するようにすることができます。これらの各ファイルは、単にマスターファイルにインクルードされるだけでなく、単
4273 独でも出力したり印刷したりすることのできる完全な\SpecialChar LyX
4274 ファイルであるように注意することが重要です。しかも、これらの各ファイルは、同じ文書クラスでなくてはなりません。a
4275 rticleクラスとbookクラスを混在させるようなことはなさらないでください。\SpecialChar LaTeX
4276 ファイルをインクルードすることもできますが、このファイルにはプリアンブルがあって
4277 はなりません(
4278 \begin_inset Flex Code
4279 status collapsed
4280
4281 \begin_layout Plain Layout
4282
4283 \backslash
4284 begin{document}
4285 \end_layout
4286
4287 \end_inset
4288
4289 行とその前のすべて、および
4290 \begin_inset Flex Code
4291 status collapsed
4292
4293 \begin_layout Plain Layout
4294
4295 \backslash
4296 end{document}行
4297 \end_layout
4298
4299 \end_inset
4300
4301 は削除しておかなければなりません)。さもないと、DVIファイルを作成する際にエラーが発生するでしょう。
4302 \end_layout
4303
4304 \begin_layout Standard
4305 \SpecialChar LyX
4306 では、
4307 \family sans
4308 挿入\SpecialChar menuseparator
4309 ファイル\SpecialChar menuseparator
4310 子文書
4311 \family default
4312 で簡単にファイルをインクルードすることができます。このメニューを選んでクリックすると、カーソルの現在位置に小さな枠が挿入されます。この枠をクリックすると、ダイア
4313 ログが現れるので、そこでインクルードするファイルとインクルード方法を選択することができます。
4314 \end_layout
4315
4316 \begin_layout Standard
4317 ファイル選択ボックスは、いまや自明でしょう。インクルード方法には、「include」・「input」・「verbatim」の三つがあります。「include」と
4318 「input」の違いは、正確には\SpecialChar LaTeX
4319 の達人にしか意味のないものですが、ほとんどの人にとって意味のある違いといえば、「include」されたファイルは新規頁から組版さ
4320 れるのに対し、「input」されたファイルは現在のページから組版される点です。
4321 \end_layout
4322
4323 \begin_layout Standard
4324 一般に、マスターファイルは、組版前に完全な\SpecialChar LaTeX
4325 ファイルに変換されますが、インクルードされるファイルは、プリアンブル情報をまったく持たない\SpecialChar LaTeX
4326 ファイルに変換されます。
4327 \end_layout
4328
4329 \begin_layout Standard
4330 「verbatim」インクルードファイルでは、ファイルの内容がそのまま(つまり「
4331 \begin_inset Flex Code
4332 status collapsed
4333
4334 \begin_layout Plain Layout
4335 verbatim
4336 \end_layout
4337
4338 \end_inset
4339
4340 」モードで)固定幅タイプライタフォントで組版されます。通常、このファイルの空白は、通常の\SpecialChar LyX
4341 での空白の取扱いとは違って、連続した複数の空白がそのまま出力されるものの
4342 、単なる見えない空白です。ただし、
4343 \family sans
4344
4345 \begin_inset Flex MenuItem
4346 status collapsed
4347
4348 \begin_layout Plain Layout
4349
4350 \family sans
4351 出力の空白に印付けをする
4352 \end_layout
4353
4354 \end_inset
4355
4356
4357 \family default
4358 チェックボックスを有効にすると、空白が存在することを明確にするために空白の印が出力されます。
4359 \end_layout
4360
4361 \begin_layout Subsection
4362 ファイル間の相互参照
4363 \end_layout
4364
4365 \begin_layout Standard
4366 \begin_inset Box Shadowbox
4367 position "t"
4368 hor_pos "c"
4369 has_inner_box 1
4370 inner_pos "t"
4371 use_parbox 0
4372 use_makebox 0
4373 width "100col%"
4374 special "none"
4375 height "1in"
4376 height_special "totalheight"
4377 thickness "0.4pt"
4378 separation "3pt"
4379 shadowsize "4pt"
4380 framecolor "black"
4381 backgroundcolor "none"
4382 status open
4383
4384 \begin_layout Plain Layout
4385 この節の内容は、すでに古くなっています。既定のマスター文書についてと、マスターが開いているときに子文書をどう開くかについて記述する必要があります。[[要修正]]
4386 \end_layout
4387
4388 \end_inset
4389
4390
4391 \end_layout
4392
4393 \begin_layout Standard
4394 異なるファイル間に相互参照を設定することも可能です。まず、すべての関係するファイルを開いてください。例として、2つのファイルを扱う場合を考え、各ファイルをA・B
4395 と呼びます。BがAにインクルードされるファイルだとします。Aにラベルを入れて、Bで参照したいとしましょう。文書Bで相互参照ダイアログを開いて、使用する「バッファ
4396 」を選んでください。
4397 \end_layout
4398
4399 \begin_layout Subsection
4400 すべての子文書での書誌情報
4401 \end_layout
4402
4403 \begin_layout Standard
4404 \begin_inset Box Shadowbox
4405 position "t"
4406 hor_pos "c"
4407 has_inner_box 1
4408 inner_pos "t"
4409 use_parbox 0
4410 use_makebox 0
4411 width "100col%"
4412 special "none"
4413 height "1in"
4414 height_special "totalheight"
4415 thickness "0.4pt"
4416 separation "3pt"
4417 shadowsize "4pt"
4418 framecolor "black"
4419 backgroundcolor "none"
4420 status open
4421
4422 \begin_layout Plain Layout
4423 この節も更新が必要です。この点に関する内容がwikiにあるので、それをここにコピーすることも可か。
4424 \end_layout
4425
4426 \end_inset
4427
4428
4429 \end_layout
4430
4431 \begin_layout Standard
4432 すべての子文書の全文献項目を含んだ書誌情報一覧をコピーし、それをコメントに変更してください。このようにすることで、\SpecialChar LyX
4433 は.bibファイルを見つけることができ、書誌情報
4434 一覧を見えるようにせずとも簡単に参照を挿入することができるようになります。
4435 \end_layout
4436
4437 \begin_layout Standard
4438 書誌情報一覧がコメントにあるために、\SpecialChar LaTeX
4439 はそれを使用しないので、参照は[1]のようには表示されないで[?]のように表示されます。ひとつの解決法として、コメントをイン
4440 クルードする\SpecialChar LaTeX
4441 パッケージの
4442 \begin_inset Flex Code
4443 status collapsed
4444
4445 \begin_layout Plain Layout
4446 comment
4447 \end_layout
4448
4449 \end_inset
4450
4451 を使用して、ファイルを別々に処理する方法があります。そのためには、すべての子文書のプリアンブルに以下を書き加えてください。
4452 \end_layout
4453
4454 \begin_layout LyX-Code
4455
4456 \backslash
4457 usepackage{comment}
4458 \end_layout
4459
4460 \begin_layout LyX-Code
4461
4462 \backslash
4463 includecomment{comment}
4464 \end_layout
4465
4466 \begin_layout Standard
4467 \begin_inset Flex URL
4468 status collapsed
4469
4470 \begin_layout Plain Layout
4471
4472 http://wiki.lyx.org/FAQ/Unsorted#toc31
4473 \end_layout
4474
4475 \end_inset
4476
4477 も参照してください。
4478 \end_layout
4479
4480 \begin_layout Section
4481 \SpecialChar LyX
4482 書庫
4483 \end_layout
4484
4485 \begin_layout Standard
4486 しばしばユーザーは、出版社に送ったり、共著者とやりとりするために、\SpecialChar LyX
4487 ファイルを、その依存する全画像(及び他のファイル)と「同梱」する必要に迫られることがあります。\SpecialChar LyX
4488
4489  2.0には、この過程を自動化するPythonスクリプト(
4490 \begin_inset Flex Code
4491 status collapsed
4492
4493 \begin_layout Plain Layout
4494 lyxpak.py
4495 \end_layout
4496
4497 \end_inset
4498
4499 )が含まれています。これを使うには、
4500 \begin_inset Flex Code
4501 status collapsed
4502
4503 \begin_layout Plain Layout
4504 zipfile
4505 \end_layout
4506
4507 \end_inset
4508
4509  pythonモジュールまたは
4510 \begin_inset Flex Code
4511 status collapsed
4512
4513 \begin_layout Plain Layout
4514 tarfile
4515 \end_layout
4516
4517 \end_inset
4518
4519  pythonモジュールが、システムに導入済みであることが必要です。既定設定では、Unix系システムでは、
4520 \begin_inset Flex Code
4521 status collapsed
4522
4523 \begin_layout Plain Layout
4524 gzip
4525 \end_layout
4526
4527 \end_inset
4528
4529 圧縮
4530 \begin_inset Flex Code
4531 status collapsed
4532
4533 \begin_layout Plain Layout
4534 tar
4535 \end_layout
4536
4537 \end_inset
4538
4539 ファイル形式が優先され、Windowsでは
4540 \begin_inset Flex Code
4541 status collapsed
4542
4543 \begin_layout Plain Layout
4544 zip
4545 \end_layout
4546
4547 \end_inset
4548
4549 形式が優先されます。
4550 \end_layout
4551
4552 \begin_layout Standard
4553 \SpecialChar LyX
4554 の環境構成時には、「\SpecialChar LyX
4555 書庫」を書き出すことができるようにスクリプトが準備され、
4556 \begin_inset Flex MenuItem
4557 status collapsed
4558
4559 \begin_layout Plain Layout
4560 ファイル\SpecialChar menuseparator
4561 書き出し
4562 \end_layout
4563
4564 \end_inset
4565
4566 の下で利用可能となります。
4567 \end_layout
4568
4569 \begin_layout Standard
4570 \begin_inset Flex MenuItem
4571 status collapsed
4572
4573 \begin_layout Plain Layout
4574 ツール\SpecialChar menuseparator
4575 設定\SpecialChar menuseparator
4576 ファイル処理\SpecialChar menuseparator
4577 変換子
4578 \end_layout
4579
4580 \end_inset
4581
4582
4583 \begin_inset Flex MenuItem
4584 status collapsed
4585
4586 \begin_layout Plain Layout
4587 \SpecialChar LyX
4588 \SpecialChar menuseparator
4589 \SpecialChar LyX
4590 書庫
4591 \end_layout
4592
4593 \end_inset
4594
4595 変換子に、
4596 \begin_inset Flex Code
4597 status collapsed
4598
4599 \begin_layout Plain Layout
4600 -t
4601 \end_layout
4602
4603 \end_inset
4604
4605 スイッチや
4606 \begin_inset Flex Code
4607 status collapsed
4608
4609 \begin_layout Plain Layout
4610 -z
4611 \end_layout
4612
4613 \end_inset
4614
4615 スイッチを加えることで、プラットホームとは独立に、
4616 \begin_inset Flex Code
4617 status collapsed
4618
4619 \begin_layout Plain Layout
4620 tar
4621 \end_layout
4622
4623 \end_inset
4624
4625 形式や
4626 \begin_inset Flex Code
4627 status collapsed
4628
4629 \begin_layout Plain Layout
4630 zip
4631 \end_layout
4632
4633 \end_inset
4634
4635 形式を強制することができます(スイッチは、スクリプト名の前ではなく、後ろに加えてください)。
4636 \end_layout
4637
4638 \begin_layout Section
4639 装飾的なヘッダ・フッタ
4640 \end_layout
4641
4642 \begin_layout Standard
4643 既定のページレイアウトは、どちらかといえば素っ気ないものです。
4644 \begin_inset Flex Code
4645 status collapsed
4646
4647 \begin_layout Plain Layout
4648 article
4649 \end_layout
4650
4651 \end_inset
4652
4653 文書クラスの場合には、ページの下の真ん中にページ番号がつくだけです。この取扱説明書はKOMA-scriptのbookクラスなので、すこしは凝ってますが、ほんとう
4654 に着飾るには、『
4655 \emph on
4656 ユーザーの手引き
4657 \emph default
4658 』に述べられているように、文書ページスタイルを「装飾的(fancy)」に設定する必要があります。この節では、望んだとおりの効果を得るために、\SpecialChar LaTeX
4659 プリアンブルに挿入す
4660 る必要のある\SpecialChar LaTeX
4661 コードについて解説します。
4662 \end_layout
4663
4664 \begin_layout Standard
4665 ページへッダは、「left(左)」・「center(中央)」・「right(右)」と命名された3つのフィールドに分けられています。フッタも同様に3つのフィールド
4666 に分類されています。これらのフィールドをもっとも簡単に設定する\SpecialChar LaTeX
4667 コマンドには、
4668 \family typewriter
4669
4670 \begin_inset Flex Code
4671 status collapsed
4672
4673 \begin_layout Plain Layout
4674
4675 \family typewriter
4676
4677 \backslash
4678 lhead
4679 \end_layout
4680
4681 \end_inset
4682
4683
4684 \family default
4685
4686 \family typewriter
4687
4688 \begin_inset Flex Code
4689 status collapsed
4690
4691 \begin_layout Plain Layout
4692
4693 \family typewriter
4694
4695 \backslash
4696 chead
4697 \end_layout
4698
4699 \end_inset
4700
4701
4702 \family default
4703
4704 \family typewriter
4705
4706 \begin_inset Flex Code
4707 status collapsed
4708
4709 \begin_layout Plain Layout
4710
4711 \family typewriter
4712
4713 \backslash
4714 rhead
4715 \end_layout
4716
4717 \end_inset
4718
4719
4720 \family default
4721
4722 \begin_inset Flex Code
4723 status collapsed
4724
4725 \begin_layout Plain Layout
4726
4727 \backslash
4728 lfoot
4729 \end_layout
4730
4731 \end_inset
4732
4733 などがあります。かりに、各ページの左上端に自分の名前を入れたいものとしましょう。次のようなコマンドをプリアンブルに入れるだけです。
4734 \end_layout
4735
4736 \begin_layout Standard
4737
4738 \family typewriter
4739
4740 \backslash
4741 lhead{物書 はじめ}
4742 \end_layout
4743
4744 \begin_layout Standard
4745 これで自分の名前が左上に現れます。フィールドに取り除きたい既定の内容がある場合(往々にして中央のフッタにはページ番号が入ります)には、空の引数を持つコマンドを入
4746 れるだけです。すなわち、
4747 \end_layout
4748
4749 \begin_layout Standard
4750
4751 \family typewriter
4752
4753 \backslash
4754 cfoot{}
4755 \begin_inset Newline newline
4756 \end_inset
4757
4758
4759 \family default
4760 とします。
4761 \end_layout
4762
4763 \begin_layout Standard
4764 もっと美しくしてみましょう。節番号を「第‥節」という言葉といっしょに(第3節のように)左上に入れ、ページ番号を(4ページのように)右上に、自分の名前を左下に、日
4765 付を右下に入れます。以下のコマンドをプリアンブルに入れます。
4766 \end_layout
4767
4768 \begin_layout Standard
4769
4770 \family typewriter
4771
4772 \backslash
4773 lhead{第
4774 \backslash
4775 thesection 節}
4776 \end_layout
4777
4778 \begin_layout Standard
4779
4780 \family typewriter
4781
4782 \backslash
4783 chead{}
4784 \end_layout
4785
4786 \begin_layout Standard
4787
4788 \family typewriter
4789
4790 \backslash
4791 rhead{
4792 \backslash
4793 thepage ページ}
4794 \end_layout
4795
4796 \begin_layout Standard
4797
4798 \family typewriter
4799
4800 \backslash
4801 lfoot{物書 はじめ}
4802 \end_layout
4803
4804 \begin_layout Standard
4805
4806 \family typewriter
4807
4808 \backslash
4809 cfoot{}
4810 \end_layout
4811
4812 \begin_layout Standard
4813
4814 \family typewriter
4815
4816 \backslash
4817 rfoot{
4818 \backslash
4819 today}
4820 \end_layout
4821
4822 \begin_layout Standard
4823 コマンド
4824 \family typewriter
4825
4826 \begin_inset Flex Code
4827 status collapsed
4828
4829 \begin_layout Plain Layout
4830
4831 \family typewriter
4832
4833 \backslash
4834 thesecti
4835 \family default
4836 o
4837 \family typewriter
4838 n
4839 \end_layout
4840
4841 \end_inset
4842
4843
4844 \family default
4845
4846 \begin_inset Flex Code
4847 status collapsed
4848
4849 \begin_layout Plain Layout
4850
4851 \family typewriter
4852
4853 \backslash
4854 thepa
4855 \family default
4856 ge
4857 \end_layout
4858
4859 \end_inset
4860
4861 は、それぞれ\SpecialChar LaTeX
4862 の節カウンタおよびページカウンタを取得するもので、これによって現在の節番号とページ番号を印字します。
4863 \begin_inset Flex Code
4864 status collapsed
4865
4866 \begin_layout Plain Layout
4867
4868 \family typewriter
4869
4870 \backslash
4871 tod
4872 \family default
4873 ay
4874 \end_layout
4875
4876 \end_inset
4877
4878 は、今日の日付を印字するものです。
4879 \end_layout
4880
4881 \begin_layout Standard
4882 へッダ下またはフッタ上に描かれる罫線の太さも変更することができます。もし罫線が必要なければ、太さを0にしてください。ヘッダ罫線は、既定では0.4ptの太さであり、
4883 フッタ罫線は0ptです。太さを変更するには、
4884 \family typewriter
4885
4886 \begin_inset Flex Code
4887 status collapsed
4888
4889 \begin_layout Plain Layout
4890
4891 \family typewriter
4892
4893 \backslash
4894 renewcommand{
4895 \backslash
4896 headrulewidth}{0.4pt}
4897 \end_layout
4898
4899 \end_inset
4900
4901
4902 \family default
4903
4904 \family typewriter
4905
4906 \begin_inset Flex Code
4907 status collapsed
4908
4909 \begin_layout Plain Layout
4910
4911 \family typewriter
4912
4913 \backslash
4914 renewcommand{
4915 \backslash
4916 footrulewidth}{0.4pt}
4917 \end_layout
4918
4919 \end_inset
4920
4921
4922 \family default
4923 のようなコマンドを使用してください。
4924 \end_layout
4925
4926 \begin_layout Standard
4927 \begin_inset Flex Code
4928 status collapsed
4929
4930 \begin_layout Plain Layout
4931
4932 \family typewriter
4933
4934 \backslash
4935 thispagestyle{empty}
4936 \end_layout
4937
4938 \end_inset
4939
4940
4941 \begin_inset Flex Code
4942 status collapsed
4943
4944 \begin_layout Plain Layout
4945
4946 \family typewriter
4947
4948 \backslash
4949 thispagestyle{plain}
4950 \end_layout
4951
4952 \end_inset
4953
4954
4955 \begin_inset Flex Code
4956 status collapsed
4957
4958 \begin_layout Plain Layout
4959
4960 \family typewriter
4961
4962 \backslash
4963 thispagestyle{fancy}
4964 \end_layout
4965
4966 \end_inset
4967
4968 のようなコマンドを使えば、各ページごとにへッダ・フッタ設定を有効にしたり無効にしたりすることができます。設定を変更したいページに、これらのコマンドを\SpecialChar TeX
4969 コードとして
4970 挿入してください。実は、タイトルページは、その後のページは大域的に装飾的(fancy)に設定されていれば装飾的(fancy)になるにもかかわらず、既定でプレーン
4971 (plain)になるように設定されているのです。
4972 \end_layout
4973
4974 \begin_layout Standard
4975 奇数ページの左上だけに何かを挿入するなど、もっと複雑なコマンドもあるのですが、詳しい解説は
4976 \begin_inset Flex Code
4977 status collapsed
4978
4979 \begin_layout Plain Layout
4980
4981 \family typewriter
4982 fancyhdr
4983 \end_layout
4984
4985 \end_inset
4986
4987 パッケージの取扱説明書をご参照ください(
4988 \begin_inset Flex Code
4989 status collapsed
4990
4991 \begin_layout Plain Layout
4992 fancyhdr.dvi
4993 \end_layout
4994
4995 \end_inset
4996
4997 を探してください)。
4998 \end_layout
4999
5000 \begin_layout Standard
5001 最後の例として、へッダやフッタに画像を挿入できることを取り上げましょう。会社のロゴをページ左上に入れたいものとします。たとえば、
5002 \end_layout
5003
5004 \begin_layout Standard
5005
5006 \family typewriter
5007
5008 \backslash
5009 lhead{
5010 \backslash
5011 resizebox{1in}{!}{
5012 \backslash
5013 includegraphics{logo.eps}}}
5014 \end_layout
5015
5016 \begin_layout Standard
5017 \noindent
5018 とすれば、これを実現できます(文書中に他に画像を挿入していない場合には、
5019 \begin_inset Newline newline
5020 \end_inset
5021
5022
5023 \begin_inset Flex Code
5024 status collapsed
5025
5026 \begin_layout Plain Layout
5027 \noindent
5028
5029 \family typewriter
5030
5031 \backslash
5032 usepackage{graphics}
5033 \end_layout
5034
5035 \end_inset
5036
5037 をプリアンブルに宣言する必要があります)。
5038 \end_layout
5039
5040 \begin_layout Section
5041 箇条書き(記号)ブリットの指定
5042 \begin_inset CommandInset label
5043 LatexCommand label
5044 name "sec:ブリット"
5045
5046 \end_inset
5047
5048
5049 \end_layout
5050
5051 \begin_layout Standard
5052
5053 \noun on
5054 Allan Rae文
5055 \end_layout
5056
5057 \begin_layout Subsection
5058 はじめに
5059 \end_layout
5060
5061 \begin_layout Standard
5062 \SpecialChar LyX
5063 には、ブリットの形が216個準備されていて、簡単なダイアログから呼び出すことができます。このダイアログを使えば、箇条書き(記号)の各階層で使うブリットの形を変更
5064 することができます。この設定は文書全体に共通なので、段落ごとに別のブリットを指定することはできません
5065 \begin_inset Foot
5066 status collapsed
5067
5068 \begin_layout Plain Layout
5069 正確には可能ですが、手動で行う必要があります。
5070 \end_layout
5071
5072 \end_inset
5073
5074
5075 \end_layout
5076
5077 \begin_layout Subsection
5078 外見
5079 \end_layout
5080
5081 \begin_layout Standard
5082 メニュー項目の
5083 \begin_inset Flex MenuItem
5084 status collapsed
5085
5086 \begin_layout Plain Layout
5087 文書\SpecialChar menuseparator
5088 設定
5089 \end_layout
5090
5091 \end_inset
5092
5093 を選択してダイアログを開き、
5094 \begin_inset Flex MenuItem
5095 status collapsed
5096
5097 \begin_layout Plain Layout
5098 ブリット
5099 \end_layout
5100
5101 \end_inset
5102
5103 タブを選択してください。
5104 \end_layout
5105
5106 \begin_layout Standard
5107 このダイアログは、ブリット形の一覧表を提示します。
5108 \begin_inset Flex MenuItem
5109 status collapsed
5110
5111 \begin_layout Plain Layout
5112 フォント
5113 \end_layout
5114
5115 \end_inset
5116
5117 と書いてあるドロップダウンメニューで、6つの各ブリット形パネルを切り替えることができます。また、一覧表左の
5118 \begin_inset Flex MenuItem
5119 status collapsed
5120
5121 \begin_layout Plain Layout
5122 階層
5123 \end_layout
5124
5125 \end_inset
5126
5127 パネルは、変更したい階層を選択するものです。
5128 \begin_inset Flex MenuItem
5129 status collapsed
5130
5131 \begin_layout Plain Layout
5132 任意のブリット
5133 \end_layout
5134
5135 \end_inset
5136
5137 では、指定したい\SpecialChar LaTeX
5138 表現を入力することができます。任意のブリットを指定した場合には、そのコマンドが必要とするパッケージを\SpecialChar LaTeX
5139 プリアンブルで指定する必要があります。
5140 \end_layout
5141
5142 \begin_layout Standard
5143 6つのパネルは、それぞれが必要とするパッケージによって分類されています。下記は、フォント名と\SpecialChar LaTeX
5144 パッケージの対応表です。
5145 \begin_inset Separator parbreak
5146 \end_inset
5147
5148
5149 \end_layout
5150
5151 \begin_layout Standard
5152 \align center
5153 \begin_inset Tabular
5154 <lyxtabular version="3" rows="7" columns="2">
5155 <features tabularvalignment="middle">
5156 <column alignment="center" valignment="top" width="0pt">
5157 <column alignment="center" valignment="top" width="0pt">
5158 <row>
5159 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5160 \begin_inset Text
5161
5162 \begin_layout Plain Layout
5163 フォント
5164 \end_layout
5165
5166 \end_inset
5167 </cell>
5168 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
5169 \begin_inset Text
5170
5171 \begin_layout Plain Layout
5172
5173 \family roman
5174 \series medium
5175 \shape up
5176 \size normal
5177 \emph off
5178 \bar no
5179 \noun off
5180 \color none
5181 必要とするパッケージ
5182 \end_layout
5183
5184 \end_inset
5185 </cell>
5186 </row>
5187 <row>
5188 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5189 \begin_inset Text
5190
5191 \begin_layout Plain Layout
5192
5193 \family sans
5194 標準
5195 \end_layout
5196
5197 \end_inset
5198 </cell>
5199 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5200 \begin_inset Text
5201
5202 \begin_layout Plain Layout
5203
5204 \series medium
5205 \shape up
5206 \size normal
5207 \emph off
5208 \bar no
5209 \noun off
5210 \color none
5211 \SpecialChar LaTeX
5212
5213 \family roman
5214 本体
5215 \end_layout
5216
5217 \end_inset
5218 </cell>
5219 </row>
5220 <row>
5221 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5222 \begin_inset Text
5223
5224 \begin_layout Plain Layout
5225
5226 \family sans
5227 \series medium
5228 \shape up
5229 \size normal
5230 \emph off
5231 \bar no
5232 \noun off
5233 \color none
5234 数式
5235 \end_layout
5236
5237 \end_inset
5238 </cell>
5239 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5240 \begin_inset Text
5241
5242 \begin_layout Plain Layout
5243
5244 \family typewriter
5245 \series medium
5246 \shape up
5247 \size normal
5248 \emph off
5249 \bar no
5250 \noun off
5251 \color none
5252 amssymb.sty
5253 \end_layout
5254
5255 \end_inset
5256 </cell>
5257 </row>
5258 <row>
5259 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5260 \begin_inset Text
5261
5262 \begin_layout Plain Layout
5263
5264 \family sans
5265 \series medium
5266 \shape up
5267 \size normal
5268 \emph off
5269 \bar no
5270 \noun off
5271 \color none
5272 絵文字1
5273 \end_layout
5274
5275 \end_inset
5276 </cell>
5277 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5278 \begin_inset Text
5279
5280 \begin_layout Plain Layout
5281
5282 \family typewriter
5283 \series medium
5284 \shape up
5285 \size normal
5286 \emph off
5287 \bar no
5288 \noun off
5289 \color none
5290 pifont.sty
5291 \end_layout
5292
5293 \end_inset
5294 </cell>
5295 </row>
5296 <row>
5297 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5298 \begin_inset Text
5299
5300 \begin_layout Plain Layout
5301
5302 \family sans
5303 \series medium
5304 \shape up
5305 \size normal
5306 \emph off
5307 \bar no
5308 \noun off
5309 \color none
5310 絵文字2
5311 \end_layout
5312
5313 \end_inset
5314 </cell>
5315 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5316 \begin_inset Text
5317
5318 \begin_layout Plain Layout
5319
5320 \family typewriter
5321 \series medium
5322 \shape up
5323 \size normal
5324 \emph off
5325 \bar no
5326 \noun off
5327 \color none
5328 pifont.sty
5329 \end_layout
5330
5331 \end_inset
5332 </cell>
5333 </row>
5334 <row>
5335 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5336 \begin_inset Text
5337
5338 \begin_layout Plain Layout
5339
5340 \family sans
5341 \series medium
5342 \shape up
5343 \size normal
5344 \emph off
5345 \bar no
5346 \noun off
5347 \color none
5348 絵文字3
5349 \end_layout
5350
5351 \end_inset
5352 </cell>
5353 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5354 \begin_inset Text
5355
5356 \begin_layout Plain Layout
5357
5358 \family typewriter
5359 \series medium
5360 \shape up
5361 \size normal
5362 \emph off
5363 \bar no
5364 \noun off
5365 \color none
5366 pifont.sty
5367 \end_layout
5368
5369 \end_inset
5370 </cell>
5371 </row>
5372 <row>
5373 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5374 \begin_inset Text
5375
5376 \begin_layout Plain Layout
5377
5378 \family sans
5379 \series medium
5380 \shape up
5381 \size normal
5382 \emph off
5383 \bar no
5384 \noun off
5385 \color none
5386 絵文字4
5387 \end_layout
5388
5389 \end_inset
5390 </cell>
5391 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
5392 \begin_inset Text
5393
5394 \begin_layout Plain Layout
5395
5396 \family typewriter
5397 \series medium
5398 \shape up
5399 \size normal
5400 \emph off
5401 \bar no
5402 \noun off
5403 \color none
5404 pifont.sty
5405 \end_layout
5406
5407 \end_inset
5408 </cell>
5409 </row>
5410 </lyxtabular>
5411
5412 \end_inset
5413
5414
5415 \end_layout
5416
5417 \begin_layout Standard
5418 \SpecialChar LyX
5419 は、ユーザーが導入されていないパッケージのブリットを使用したとしても、警告を発しません。ファイルを閲覧したり印刷したりしようとしたときに\SpecialChar LaTeX
5420 エラーが出るようならば、
5421 パッケージが導入されていない可能性が大です
5422 \begin_inset Foot
5423 status collapsed
5424
5425 \begin_layout Plain Layout
5426 \SpecialChar LyX
5427 が、パッケージがなくてもブリットを使用することを許すのは、編集をここで行ったとしても、別のところへエクスポートする可能性があるからです。
5428 \end_layout
5429
5430 \end_inset
5431
5432
5433 \end_layout
5434
5435 \begin_layout Subsection
5436 使用法
5437 \end_layout
5438
5439 \begin_layout Standard
5440 変更したいブリット階層を選んで、ブリット形と寸法を選択してください。何らかの変更を加えたとしても、\SpecialChar LyX
5441 上には反映されませんが、文書の表示を行えば確認されます。
5442 \end_layout
5443
5444 \begin_layout Standard
5445 ブリット形は、適切な階層のブリットボタンをマウスで右クリックすれば、簡単に既定値に初期化することができます
5446 \begin_inset Foot
5447 status collapsed
5448
5449 \begin_layout Plain Layout
5450 もし
5451 \emph on
5452 本当に
5453 \emph default
5454 段落ごとに異なるブリットの形を使いたいならば、\SpecialChar TeX
5455 コードを使って少し手を汚す必要があります。この場合も、ブリット選択ダイアログを使えば、さまざまな形のLaTeXコー
5456 ドを確認することができるので手助けとなるでしょう。任意に設定した段落をつくるには、以下のような選択肢があります。
5457 \end_layout
5458
5459 \begin_layout Plain Layout
5460 \begin_inset ERT
5461 status open
5462
5463 \begin_layout Plain Layout
5464
5465
5466 \backslash
5467 let
5468 \backslash
5469 savelabelitemi=
5470 \backslash
5471 labelitemi
5472 \end_layout
5473
5474 \end_inset
5475
5476
5477 \end_layout
5478
5479 \begin_layout Plain Layout
5480 \begin_inset ERT
5481 status open
5482
5483 \begin_layout Plain Layout
5484
5485
5486 \backslash
5487 renewcommand
5488 \backslash
5489 labelitemi[0]{
5490 \backslash
5491 small
5492 \backslash
5493 (
5494 \backslash
5495 sharp
5496 \backslash
5497 )}
5498 \end_layout
5499
5500 \end_inset
5501
5502
5503 \end_layout
5504
5505 \begin_layout Itemize
5506 特定の階層の新しいブリット形を指定するには、\SpecialChar LaTeX
5507 コマンド
5508 \begin_inset Flex Code
5509 status collapsed
5510
5511 \begin_layout Plain Layout
5512
5513 \family typewriter
5514
5515 \backslash
5516 renewcommand{}{}
5517 \end_layout
5518
5519 \end_inset
5520
5521 を使用します。あとで現在のブリット形に戻すことができるように、現在のブリット形を保存しておく必要もあります。ここで使っている箇条書きでは、第1階層のブリットを変
5522 更するために、以下の\SpecialChar LaTeX
5523 コードが使用されています。
5524 \begin_inset Separator parbreak
5525 \end_inset
5526
5527
5528 \end_layout
5529
5530 \begin_deeper
5531 \begin_layout LyX-Code
5532
5533 \family typewriter
5534
5535 \backslash
5536 let
5537 \backslash
5538 savelabelitemi=
5539 \backslash
5540 labelitemi
5541 \end_layout
5542
5543 \begin_layout LyX-Code
5544
5545 \family typewriter
5546
5547 \backslash
5548 renewcommand
5549 \backslash
5550 labelitemi[0]{
5551 \backslash
5552 small
5553 \backslash
5554 (
5555 \backslash
5556 sharp
5557 \backslash
5558 )}
5559 \end_layout
5560
5561 \end_deeper
5562 \begin_layout Itemize
5563 箇条書き(記号)の階層は、
5564 \begin_inset Flex Code
5565 status collapsed
5566
5567 \begin_layout Plain Layout
5568
5569 \backslash
5570 labelitem
5571 \end_layout
5572
5573 \end_inset
5574
5575 コマンドの一部にローマ数字で指定されていることに注意してください。
5576 \end_layout
5577
5578 \begin_layout Itemize
5579 \begin_inset ERT
5580 status open
5581
5582 \begin_layout Plain Layout
5583
5584 [
5585 \backslash
5586 (
5587 \backslash
5588 star
5589 \backslash
5590 )]
5591 \end_layout
5592
5593 \end_inset
5594
5595 各項目のブリットを指定するには、角括弧で囲んだブリット形を、行頭に
5596 \begin_inset Flex Code
5597 status collapsed
5598
5599 \begin_layout Plain Layout
5600 \SpecialChar TeX
5601 コード
5602 \end_layout
5603
5604 \end_inset
5605
5606 として挿入してください。たとえば、この項目の行頭には
5607 \family typewriter
5608
5609 \begin_inset Flex Code
5610 status collapsed
5611
5612 \begin_layout Plain Layout
5613
5614 \family typewriter
5615 [
5616 \backslash
5617 (
5618 \backslash
5619 star
5620 \backslash
5621 )]
5622 \end_layout
5623
5624 \end_inset
5625
5626
5627 \family default
5628 が指定されています。
5629 \end_layout
5630
5631 \begin_layout Plain Layout
5632 \begin_inset ERT
5633 status open
5634
5635 \begin_layout Plain Layout
5636
5637
5638 \backslash
5639 renewcommand
5640 \backslash
5641 labelitemi[0]{
5642 \backslash
5643 savelabelitemi}
5644 \end_layout
5645
5646 \end_inset
5647
5648
5649 \end_layout
5650
5651 \begin_layout Plain Layout
5652 文書全体で使用するブリット形が有効であるようにするために、labelitemを元の設定に戻す必要があります。そのためには、以下のようにします。
5653 \end_layout
5654
5655 \begin_layout LyX-Code
5656
5657 \family typewriter
5658
5659 \backslash
5660 renewcommand
5661 \backslash
5662 labelitemi[0]{
5663 \backslash
5664 savelabelitemi}
5665 \end_layout
5666
5667 \end_inset
5668
5669
5670 \end_layout
5671
5672 \begin_layout Chapter
5673 \SpecialChar LyX
5674 とインターネット網
5675 \end_layout
5676
5677 \begin_layout Standard
5678 \SpecialChar LyX
5679 は、これまでも長い間、HTMLを始めとするウェブフレンドリーな文書諸形式への書き出しをサポートしてきました。しかしながら、第2.0版以前では、HTMLへの書き出し
5680 は、常に外部変換子を用いることで実現されていました
5681 \begin_inset Foot
5682 status collapsed
5683
5684 \begin_layout Plain Layout
5685 \SpecialChar LyX
5686 で外部変換子を使うことについての詳細は、取扱説明書『
5687 \emph on
5688 カスタマイズ篇
5689 \emph default
5690 』の「
5691 \emph on
5692 変換子
5693 \emph default
5694 」の節をご覧ください。
5695 \end_layout
5696
5697 \end_inset
5698
5699 。これらは2つのグループに大別できます。1つは、
5700 \begin_inset Flex Code
5701 status collapsed
5702
5703 \begin_layout Plain Layout
5704 htlatex
5705 \end_layout
5706
5707 \end_inset
5708
5709
5710 \begin_inset Flex Code
5711 status collapsed
5712
5713 \begin_layout Plain Layout
5714 html2latex
5715 \end_layout
5716
5717 \end_inset
5718
5719
5720 \begin_inset Flex Code
5721 status collapsed
5722
5723 \begin_layout Plain Layout
5724 plastex
5725 \end_layout
5726
5727 \end_inset
5728
5729 のように、\SpecialChar LaTeX
5730 を中間形式として用い、その\SpecialChar LaTeX
5731 を生成するのに\SpecialChar LyX
5732 を用いるもの。2つめは、
5733 \begin_inset Flex Code
5734 status collapsed
5735
5736 \begin_layout Plain Layout
5737 e\SpecialChar LyX
5738 er
5739 \end_layout
5740
5741 \end_inset
5742
5743 のように、直接\SpecialChar LyX
5744 ファイルに働きかける変換子です。これらは、それぞれに長所・短所を有しています。
5745 \end_layout
5746
5747 \begin_layout Standard
5748 \SpecialChar LaTeX
5749 ベースの変換子は、原則として、\SpecialChar LaTeX
5750 が書きだす文書についてのすべてを知っているという長所があります。この種の変換子は、例えば、特定のコードのくだりが、\SpecialChar LyX
5751 によって生成され
5752 たのか、\SpecialChar TeX
5753 コードで書かれたのかについては気にしません。これらの変換子は、
5754 \begin_inset Flex Code
5755 status collapsed
5756
5757 \begin_layout Plain Layout
5758 aux
5759 \end_layout
5760
5761 \end_inset
5762
5763 ファイルやカウンタや参照を取り扱うことができ、Bib\SpecialChar TeX
5764 が生成する
5765 \begin_inset Flex Code
5766 status collapsed
5767
5768 \begin_layout Plain Layout
5769 bbl
5770 \end_layout
5771
5772 \end_inset
5773
5774 ファイルも利用することがよくあります。一方で、\SpecialChar LaTeX
5775 は解析の非常に難しい言語であり—\SpecialChar TeX
5776 自身だけが\SpecialChar TeX
5777 を理解することができると言われたりすることがあります—、\SpecialChar LaTeX
5778 ベースの変換子は
5779 、非常に簡単な文法に見えるものでさえ飲み込めず、複雑なものになると全く歯が立たないこともあります。例えば、この現行を書いている時点では、取扱説明書『
5780 \emph on
5781 埋込オブジェクト篇
5782 \emph default
5783 』は、他の変換子では書き出しができるのに、
5784 \begin_inset Flex Code
5785 status collapsed
5786
5787 \begin_layout Plain Layout
5788 htlatex
5789 \end_layout
5790
5791 \end_inset
5792
5793 では行うことができません。他には、数式をどう取り扱うかという問題があります。これらの変換子の典型的なものは、数式を小さな画像に変換して、HTML文書からこれらの
5794 画像へのリンクを張ります。これらの画像は、実は\SpecialChar LaTeX
5795 によって生成されているので、正確です。しかしながら、これらはうまく伸縮できないので、実際の文書の中で表現されるよう
5796 に—フォント寸が凡そ正しくなるように—見せようとすると、大変な苦労を伴います。
5797 \end_layout
5798
5799 \begin_layout Standard
5800 Alex Fernandezの
5801 \begin_inset Flex Code
5802 status collapsed
5803
5804 \begin_layout Plain Layout
5805 e\SpecialChar LyX
5806 er
5807 \end_layout
5808
5809 \end_inset
5810
5811  (
5812 \begin_inset CommandInset href
5813 LatexCommand href
5814 name "http://elyxer.nongnu.org/"
5815 target "http://elyxer.nongnu.org/"
5816
5817 \end_inset
5818
5819 )は、これらの問題の一部を解決します。特に、これは数式を画像に変換するのではなく、HTMLとCSSを組み合わせて数式を生成するので、生成される数式は完璧な大きさ
5820 に伸縮されて表示されます。しかしながら、ちょっとだけ複雑な数式でさえ、
5821 \begin_inset Flex Code
5822 status collapsed
5823
5824 \begin_layout Plain Layout
5825 htlatex
5826 \end_layout
5827
5828 \end_inset
5829
5830 よりも質が落ちます。これはHTMLの限界を示しています
5831 \begin_inset Foot
5832 status collapsed
5833
5834 \begin_layout Plain Layout
5835 とはいえ、
5836 \begin_inset Flex Code
5837 status collapsed
5838
5839 \begin_layout Plain Layout
5840 e\SpecialChar LyX
5841 er
5842 \end_layout
5843
5844 \end_inset
5845
5846 では、数式用にjsMathとMathJaxを使用することもできます。ただし、この設定はグローバルにしか設定することができず、バックエンドで実行させるサーバへのア
5847 クセスが利用できる必要があります。
5848 \end_layout
5849
5850 \end_inset
5851
5852 。さらに重要なことは(少なくとも第1.1.1版においては)、
5853 \begin_inset Flex Code
5854 status collapsed
5855
5856 \begin_layout Plain Layout
5857 e\SpecialChar LyX
5858 er
5859 \end_layout
5860
5861 \end_inset
5862
5863 は数式マクロを一部しかサポートしておらず、ユーザ定義の段落様式や文字様式をサポートしていません。これらの制約によって、\SpecialChar LyX
5864 ユーザが生成する文書の多くにとっては、
5865 \begin_inset Flex Code
5866 status collapsed
5867
5868 \begin_layout Plain Layout
5869 e\SpecialChar LyX
5870 er
5871 \end_layout
5872
5873 \end_inset
5874
5875 は不向きなものになっています。もちろん、原理的に、これらの問題を解決することもできたのですが、\SpecialChar LyX
5876 開発陣は別の方法を採ることとし、\SpecialChar LyX
5877 が\SpecialChar LaTeX
5878 やDocBook、平文を書き出す
5879 ことができるのと同様に、\SpecialChar LyX
5880 自身にXHTMLを書きだす能力を身につけさせることとしたのです。
5881 \end_layout
5882
5883 \begin_layout Standard
5884 この原稿執筆時点では、XHTML出力は開発途上であり、おそらく「実験的」機能として解されるべきでしょう
5885 \begin_inset Foot
5886 status collapsed
5887
5888 \begin_layout Plain Layout
5889 \SpecialChar LyX
5890 ソースツリーもしくは
5891 \begin_inset CommandInset href
5892 LatexCommand href
5893 name "オンラインでのアクセス"
5894 target "http://www.lyx.org/trac/browser/lyx-devel/trunk/development/HTML/HTML.notes"
5895
5896 \end_inset
5897
5898 にある
5899 \begin_inset Flex Code
5900 status collapsed
5901
5902 \begin_layout Plain Layout
5903 development/HTML.notes
5904 \end_layout
5905
5906 \end_inset
5907
5908 ファイルには、通常、XHTML出力の現状についての最新の情報が収録されています。
5909 \begin_inset CommandInset href
5910 LatexCommand href
5911 name "バグ追跡ページ"
5912 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"
5913
5914 \end_inset
5915
5916 にあるXHTML関連バグ一覧も参照のこと。
5917 \end_layout
5918
5919 \end_inset
5920
5921 。それでもこのアプローチは、他の2つの方法よりも、潜在的な利点がいくつもあるので、開発陣はこの方法を選択したのです。
5922 \end_layout
5923
5924 \begin_layout Standard
5925 これらの利点は、主に、XHTML出力ルーチンが\SpecialChar LyX
5926 の一部となっているため、\SpecialChar LyX
5927 が出力する文書について\SpecialChar LyX
5928 が関知しているところのものは、すべて知り得るというところから来ていま
5929
5930 \begin_inset Foot
5931 status collapsed
5932
5933 \begin_layout Plain Layout
5934 他には、これらのルーチンが\SpecialChar LyX
5935 内部にあるため、\SpecialChar LyX
5936 ファイル形式や既存の差込枠の文法に変更があっても、影響を受けずに済むという利点もあります。
5937 \end_layout
5938
5939 \end_inset
5940
5941 。つまり、XHTML出力ルーチンは、(文書構造に表示されるような形での)目次や、それぞれの段落様式に関連付けられたカウンタや、ユーザ定義の様式についても知ってい
5942 るのです。XHTML出力ルーチンは、国際化について\SpecialChar LyX
5943 が関知しているものも知っているので、ちょうどその時に有効になっている言語に依存して、「Chapter
5944  1」と出力されたり、「Kapitel 1」と出力されたりするのです。
5945 \end_layout
5946
5947 \begin_layout Standard
5948 汎く一般的に、出力ルーチンは、\SpecialChar LyX
5949 が文書レイアウトについて関知しているものは知っており、したがって、文書が画面上にどのように描画されるかも知っています。文書をXHT
5950 MLに出力するときには、この情報を利用します。特に、\SpecialChar LyX
5951 は、文書を画面上に描画するときに使用するレイアウト情報に対応したCSSスタイル情報を
5952 \emph on
5953 自動的に
5954 \emph default
5955 生成します。もし節見出しが、\SpecialChar LyX
5956 中でサンセリフ体かつボールド体であるとすると、(既定では)ウェブブラウザに表示した時にも、サンセリフでボールドになります。これは、節
5957 のような定義済み様式だけでなく、ユーザ定義のものも含めて、すべての様式でそうです。実際、XHTML出力ルーチンは、ユーザ定義の段落・文字様式と、\SpecialChar LyX
5958 自身の定義済み様
5959 式とを区別しません。どちらの場合も、\SpecialChar LyX
5960 が様式について関知しているところのものは、全てレイアウトファイルに含まれています。これは、脚注のような定義済み差込枠や、各種
5961 ユーザ設定差込枠でもそうです。
5962 \end_layout
5963
5964 \begin_layout Standard
5965 結果として、XHTML出力は、レイアウトファイルやモジュールを通して、\SpecialChar LaTeX
5966 出力と全く同じように、ユーザが設定したり拡張したりすることができるのです。詳細については、
5967 取扱説明書『
5968 \emph on
5969 カスタマイズ篇
5970 \emph default
5971 』の第5章をごらんください。
5972 \end_layout
5973
5974 \begin_layout Standard
5975 本章の残りでは、XHTML出力についての、さらに詳細な情報について取り扱い、その制約や、制約の回避の仕方を取り扱います。
5976 \end_layout
5977
5978 \begin_layout Section
5979 XHTMLにおける数式出力
5980 \end_layout
5981
5982 \begin_layout Standard
5983 \SpecialChar LyX
5984 では、数式描画に4つの方法を選択できます。以下に示すように、それぞれに利点と欠点があります。
5985 \end_layout
5986
5987 \begin_layout Itemize
5988 MathML
5989 \begin_inset Newline newline
5990 \end_inset
5991
5992 MathMLは、ウェブ上で数学を用いるために、特にデザインされたXMLの一方言であり、これをサポートするブラウザ上では、通常、特に美しい表現が得られます。欠点は
5993 、すべてのブラウザがMathMLをサポートしているわけではないという事と、FirefoxのようなGeckoベースのブラウザでも、サポートが完璧ではないという事で
5994 す。
5995 \begin_inset Newline newline
5996 \end_inset
5997
5998 例えば、数式が
5999 \begin_inset Flex Code
6000 status collapsed
6001
6002 \begin_layout Plain Layout
6003 xymatrix
6004 \end_layout
6005
6006 \end_inset
6007
6008 パッケージを使用していたり、\SpecialChar TeX
6009 コードを使用しているなどで、もし\SpecialChar LyX
6010 が数式をMathMLとして描画できないとすると、\SpecialChar LyX
6011 は数式を代わりに画像として出力します。
6012  
6013 \end_layout
6014
6015 \begin_layout Itemize
6016 HTML
6017 \begin_inset Newline newline
6018 \end_inset
6019
6020 前述のとおり、
6021 \begin_inset Flex Code
6022 status collapsed
6023
6024 \begin_layout Plain Layout
6025 elyxer
6026 \end_layout
6027
6028 \end_inset
6029
6030 は、数式をCSSで装飾したHTMLとして出力します
6031 \begin_inset Foot
6032 status collapsed
6033
6034 \begin_layout Plain Layout
6035 \SpecialChar LyX
6036 は、
6037 \begin_inset Flex Code
6038 status collapsed
6039
6040 \begin_layout Plain Layout
6041 elyxer
6042 \end_layout
6043
6044 \end_inset
6045
6046 からのHTML出力のために、CSSの一部を拝借しています。
6047 \end_layout
6048
6049 \end_inset
6050
6051 。簡単な数式では、これは非常にうまく行きますが、少し複雑な数式になると、
6052 \begin_inset Flex Code
6053 status collapsed
6054
6055 \begin_layout Plain Layout
6056 elyxer
6057 \end_layout
6058
6059 \end_inset
6060
6061 は歯が立たなくなります。それでも、この方法は非常に広くサポートされているという利点があり、かなり簡単な数式を少しだけ含んでいるような文書に適しているでしょう。
6062 \begin_inset Newline newline
6063 \end_inset
6064
6065 例えば、数式が
6066 \begin_inset Flex Code
6067 status collapsed
6068
6069 \begin_layout Plain Layout
6070 xymatrix
6071 \end_layout
6072
6073 \end_inset
6074
6075 パッケージを使用していたり、\SpecialChar TeX
6076 コードを使用しているなどで、もし\SpecialChar LyX
6077 が数式をHTMLとして描画できないとすると、\SpecialChar LyX
6078 は数式を代わりに画像として出力します。
6079  
6080 \end_layout
6081
6082 \begin_layout Itemize
6083 画像
6084 \begin_inset Newline newline
6085 \end_inset
6086
6087
6088 \begin_inset Flex Code
6089 status collapsed
6090
6091 \begin_layout Plain Layout
6092 htlatex
6093 \end_layout
6094
6095 \end_inset
6096
6097 のように、\SpecialChar LyX
6098 は数式を画像としても出力できます。この画像は、実は、自動プレビューで使用されているものと全く同じです
6099 \begin_inset Foot
6100 status collapsed
6101
6102 \begin_layout Plain Layout
6103 ただし、画像を出力に使うために、自動プレビューを入にしておく必要は
6104 \emph on
6105 ありません
6106 \emph default
6107
6108 \end_layout
6109
6110 \end_inset
6111
6112 。この方法の利点は、画像が他ならぬ\SpecialChar LaTeX
6113 によって生成されているので、非常に正確であることです。欠点は、前述したとおり、画像がビットマップなので、伸縮が全くうまく行かな
6114 かったり、コピーが出来なかったりといったことがあります(執筆時点においては、数式の付番にも問題があります。
6115 \begin_inset CommandInset href
6116 LatexCommand href
6117 name "バグ 6894"
6118 target "http://www.lyx.org/trac/ticket/6894"
6119
6120 \end_inset
6121
6122 を参照のこと。)。
6123 \begin_inset Newline newline
6124 \end_inset
6125
6126 画像の寸法は、
6127 \begin_inset Flex MenuItem
6128 status collapsed
6129
6130 \begin_layout Plain Layout
6131 文書\SpecialChar menuseparator
6132 設定\SpecialChar menuseparator
6133 出力
6134 \end_layout
6135
6136 \end_inset
6137
6138 の「数式画像の伸縮」パラメータを変更することで制御できます
6139 \begin_inset Foot
6140 status collapsed
6141
6142 \begin_layout Plain Layout
6143 必要な方のために述べておくと、これは、画像の解像度をdpi (1インチあたりドット数)で制御するためのもので、75dpiを基準としています。
6144 \end_layout
6145
6146 \end_inset
6147
6148
6149 \begin_inset Newline newline
6150 \end_inset
6151
6152 もし\SpecialChar LyX
6153 が、何らかの理由によって数式の画像を生成できない(例えば、必要な\SpecialChar LaTeX
6154 パッケージが導入済みでないなど)ときは、回避策として、生の\SpecialChar LaTeX
6155 を出力します。
6156 \end_layout
6157
6158 \begin_layout Itemize
6159 \SpecialChar LaTeX
6160
6161 \begin_inset Newline newline
6162 \end_inset
6163
6164 最後に、\SpecialChar LyX
6165 は、数式を\SpecialChar LaTeX
6166 としても出力することができます。この方法は、最終手段としての出力方法である一方で、HTML文書に埋め込まれた\SpecialChar LaTeX
6167 を描画するのにJavaScript
6168 を使用する、
6169 \begin_inset CommandInset href
6170 LatexCommand href
6171 name "jsMath"
6172 target "http://www.math.union.edu/~dpvc/jsMath/"
6173
6174 \end_inset
6175
6176 のようなツールとともに使用することもできます。\SpecialChar LyX
6177 は、jsMathで必要とされているのと同じように、\SpecialChar LaTeX
6178 部分を、
6179 \begin_inset Flex Code
6180 status collapsed
6181
6182 \begin_layout Plain Layout
6183 span
6184 \end_layout
6185
6186 \end_inset
6187
6188 (行内数式用)または
6189 \begin_inset Flex Code
6190 status collapsed
6191
6192 \begin_layout Plain Layout
6193 div
6194 \end_layout
6195
6196 \end_inset
6197
6198 (別行立て数式用)に
6199 \begin_inset Flex Code
6200 status collapsed
6201
6202 \begin_layout Plain Layout
6203 class='math'
6204 \end_layout
6205
6206 \end_inset
6207
6208 を指定したもので、包んで出力します。
6209 \end_layout
6210
6211 \begin_layout Standard
6212 これらの出力方法のいずれかを
6213 \begin_inset Flex MenuItem
6214 status collapsed
6215
6216 \begin_layout Plain Layout
6217 文書\SpecialChar menuseparator
6218 設定\SpecialChar menuseparator
6219 出力
6220 \end_layout
6221
6222 \end_inset
6223
6224 で選択しなくてはなりません。既定では、\SpecialChar LyX
6225 はMathMLで出力を行います。これは、文書全体に適用される設定となります。
6226 \end_layout
6227
6228 \begin_layout Standard
6229 最後に、\SpecialChar LyX
6230 では、例えば、MathMLではあまりうまく出力されないような差込枠に対して、別の出力方法を選択できる選択肢が用意されています
6231 \begin_inset Foot
6232 status collapsed
6233
6234 \begin_layout Plain Layout
6235 その他にも、\SpecialChar LyX
6236 は、差込枠に\SpecialChar TeX
6237 コードが含まれていると画像出力に回帰するので、数式中に
6238 \begin_inset Formula $a=b\relax$
6239 \end_inset
6240
6241 のような無害な\SpecialChar TeX
6242 コードを挿入することによって、画像出力を強制することができます。
6243 \end_layout
6244
6245 \end_inset
6246
6247
6248 \end_layout
6249
6250 \begin_layout Section
6251 書誌情報と引用
6252 \end_layout
6253
6254 \begin_layout Standard
6255 XHTML出力は、書誌情報と引用を完全にサポートしています。
6256 \end_layout
6257
6258 \begin_layout Standard
6259 引用ラベルは、\SpecialChar LyX
6260 画面上のラベルを生成するのと同じ機構で生成されているので、出力中のラベルは、\SpecialChar LyX
6261 中の外見と同質またはそれよりも上質な仕上がりとなっています。連番引用を
6262 使用している場合には、\SpecialChar LyX
6263 は、画面上で表示されるような各カッコに囲まれた引用鍵を単純に表示するのではなく、[1]や[17]などの連番ラベルを出力します。著者-出版年
6264 形式の引用を使用している場合で、同じ著者-出版年の組み合わせが複数ある場合、\SpecialChar LyX
6265 は、Bib\SpecialChar TeX
6266 が行うように出版年に小文字を付します。ラベルは、書誌情報項目とともに印字さ
6267 れます。現在のところ、角括弧を丸括弧に変更するなど、ラベルの外見を変更する手段はありませんのでご注意ください。
6268 \end_layout
6269
6270 \begin_layout Standard
6271 書誌情報出力は、引用ダイアログで文献情報表示を取り扱うのと同じ機構で取り扱われているので、XHTML出力は、引用ダイアログで特定の文献項目を表示させた時のものに
6272 非常によく似ています。整形の仕方は、レイアウトファイルや望ましくはモジュールでカスタマイズすることができます。詳細については、取扱説明書『カスタマイズ篇』をご覧
6273 ください。
6274 \end_layout
6275
6276 \begin_layout Standard
6277 現在のところ、主だった瑕疵は、相互参照された情報が、関連した項目の全てに印字されてしまうことです。つまり、以下のような表示が為されます。
6278 \end_layout
6279
6280 \begin_layout Quote
6281 Jason Stanley, 
6282 \begin_inset Quotes eld
6283 \end_inset
6284
6285 Context and Logical Form
6286 \begin_inset Quotes erd
6287 \end_inset
6288
6289 , in 
6290 \emph on
6291 Language in Context: Selected Essays
6292 \emph default
6293  (Oxford: Oxford University Press, 2007), pp.
6294  30–68.
6295 \end_layout
6296
6297 \begin_layout Quote
6298 Jason Stanley, 
6299 \begin_inset Quotes eld
6300 \end_inset
6301
6302 Semantics in Context
6303 \begin_inset Quotes erd
6304 \end_inset
6305
6306 , in 
6307 \emph on
6308 Language in Context: Selected Essays
6309 \emph default
6310  (Oxford: Oxford University Press, 2007), pp.
6311  201–30.
6312 \end_layout
6313
6314 \begin_layout Standard
6315 これは、遠くないうちに修正されるでしょう。
6316 \end_layout
6317
6318 \begin_layout Standard
6319 現在のところ、節ごとの書誌情報出力はサポートされていません。複数の書誌情報がある場合には、\SpecialChar LyX
6320 は同じ情報を繰り返し出力してしまいます。
6321 \end_layout
6322
6323 \begin_layout Section
6324 索引
6325 \end_layout
6326
6327 \begin_layout Standard
6328 \SpecialChar LyX
6329 は、索引をXHTMLとして書きだすことができますが、現在のところ、若干の制約があります。
6330 \end_layout
6331
6332 \begin_layout Standard
6333 索引の書き出しは、
6334 \emph on
6335 ユーザーの手引き
6336 \emph default
6337 の索引の節に書かれているような手の込んだ方法を使おうとしないほうが、信頼性が保てます
6338 \begin_inset Foot
6339 status collapsed
6340
6341 \begin_layout Plain Layout
6342 ここでの主な問題は、これらの操作の際に、\SpecialChar LyX
6343 自身は何もしていないという点です。つまり、生の\SpecialChar LaTeX
6344 で入力しなくてはならないようなものをそのまま入力しているのです。
6345 \end_layout
6346
6347 \end_inset
6348
6349 。当該節の小節見出しに沿って、それらがどう処理されるかを説明しましょう。
6350 \end_layout
6351
6352 \begin_layout Itemize
6353 索引項目のグループ化(下層項目): \SpecialChar LyX
6354 はこれらをサポートしようと努めていますが、項目は「 ! 」(感嘆符の周りに空白)で分離しなくてはなりません。これは、そうしな
6355 いと数式などで使われているエスケープされた感嘆符をチェックするのが非常に難しくなるからです。
6356 \end_layout
6357
6358 \begin_layout Itemize
6359 ページ範囲: ページ範囲については、XHTMLでは意味がないので、全くサポートされません。その代わりに、引用項目のはじめと終わりの頁それぞれに、2つの索引項目が
6360 得られるだけです。
6361 \end_layout
6362
6363 \begin_layout Itemize
6364 相互参照: 相互参照のサポートはありません。\SpecialChar LyX
6365 が「|see\SpecialChar ldots
6366 」という下だりを持つ項目を検出すると、その部分はただ無視されて、残りの部分が通常の索引項目だとみなされま
6367 す。
6368 \end_layout
6369
6370 \begin_layout Itemize
6371 索引項目の整序: \SpecialChar LyX
6372 は整序順の変更をサポートします。\SpecialChar LyX
6373 は、最初に検出した「@」の前の部分を取り出して、それを整序に用い、最初の「@」の後の部分を実際の項目として取り
6374 出します。現在のところ、\SpecialChar LyX
6375 はエスケープされた「@」を取り扱わないので、電子メールアドレスを索引に使わないでください。
6376 \end_layout
6377
6378 \begin_layout Itemize
6379 索引項目のレイアウト: 項目は、テキスト様式ダイアログを使うなり、\SpecialChar LyX
6380 内で使用可能な方法を用いることで、索引項目を成形することができます。「項目|textbf」のよ
6381 うな文法はサポートされません。\SpecialChar LyX
6382 は、項目内にパイプ記号「|」を検出すると、パイプ記号とその後に続くものすべてを削除してしまいます。
6383 \end_layout
6384
6385 \begin_layout Itemize
6386 複数の索引: 複数の索引はサポートされていません。すべての項目は、ひとつの大きな索引として印字されます。索引が何度も印字されることを防ぐため、中心となる索引だけ
6387 を印字しますので、その索引は必ず置くようにしてください。
6388 \end_layout
6389
6390 \begin_layout Section
6391 記号一覧および用語集
6392 \end_layout
6393
6394 \begin_layout Standard
6395 現在のところ、用語集のサポートはありません。この機能の追加は、比較的容易だと思われますので、あなたの貢献をお待ちしております。
6396 \end_layout
6397
6398 \begin_layout Chapter
6399 \SpecialChar LyX
6400 サーバー
6401 \begin_inset CommandInset label
6402 LatexCommand label
6403 name "chap:LyXサーバー"
6404
6405 \end_inset
6406
6407
6408 \end_layout
6409
6410 \begin_layout Section
6411 はじめに
6412 \end_layout
6413
6414 \begin_layout Standard
6415 「\SpecialChar LyX
6416 サーバー」を使用すると、他のプログラムが、\SpecialChar LyX
6417 と通信したり、\SpecialChar LyX
6418 コマンドを実行させたり、\SpecialChar LyX
6419 の内部状態に関する情報を取得したりすることができるようになります。これは熟練し
6420 たユーザー向けの機能ですが、便利なはずです。たとえば、\SpecialChar LyX
6421 サーバーに書き込むことによって、JabRefのような書誌情報管理ソフトが、LyXに文献引用を「押し込む」こ
6422 とが可能となります。
6423 \end_layout
6424
6425 \begin_layout Section
6426 \SpecialChar LyX
6427 サーバーを開始するには
6428 \end_layout
6429
6430 \begin_layout Standard
6431 \SpecialChar LyX
6432 サーバーは、名前をつけたパイプの対を利用することで機能します。パイプは、通常
6433 \begin_inset Flex Code
6434 status collapsed
6435
6436 \begin_layout Plain Layout
6437 UserDir
6438 \end_layout
6439
6440 \end_inset
6441
6442 の下に作られ(Windowsを除く。Windowsでは、名前を付けた
6443 \emph on
6444 ローカルの
6445 \emph default
6446 パイプは
6447 \begin_inset Flex Code
6448 status collapsed
6449
6450 \begin_layout Plain Layout
6451
6452 \backslash
6453
6454 \backslash
6455 .
6456 \backslash
6457 pipe
6458 \end_layout
6459
6460 \end_inset
6461
6462 に特別なオブジェクトとして置かれます)、「
6463 \begin_inset Flex Code
6464 status collapsed
6465
6466 \begin_layout Plain Layout
6467 .lyxpipe.in
6468 \end_layout
6469
6470 \end_inset
6471
6472 」および「
6473 \begin_inset Flex Code
6474 status collapsed
6475
6476 \begin_layout Plain Layout
6477 .lyxpipe.out
6478 \end_layout
6479
6480 \end_inset
6481
6482 」という名前がついています。外部プログラムは、
6483 \begin_inset Flex Code
6484 status collapsed
6485
6486 \begin_layout Plain Layout
6487 .lyxpipe.in
6488 \end_layout
6489
6490 \end_inset
6491
6492 に書き込みを行い、戻りデータを
6493 \begin_inset Flex Code
6494 status collapsed
6495
6496 \begin_layout Plain Layout
6497 .lyxpipe.out
6498 \end_layout
6499
6500 \end_inset
6501
6502 から読み出します。パイプ名の語幹は、
6503 \begin_inset Flex MenuItem
6504 status collapsed
6505
6506 \begin_layout Plain Layout
6507 ツール\SpecialChar menuseparator
6508 設定
6509 \end_layout
6510
6511 \end_inset
6512
6513 から、たとえば「
6514 \begin_inset Flex Code
6515 status collapsed
6516
6517 \begin_layout Plain Layout
6518 /home/myhome/lyxpipe
6519 \end_layout
6520
6521 \end_inset
6522
6523 」あるいはWindowsでは「
6524 \begin_inset Flex Code
6525 status collapsed
6526
6527 \begin_layout Plain Layout
6528
6529 \backslash
6530
6531 \backslash
6532 .
6533 \backslash
6534 pipe
6535 \backslash
6536 lyxpipe
6537 \end_layout
6538
6539 \end_inset
6540
6541 」などに設定することができます
6542 \lang english
6543 (where any working path instead of lyxpipe can be used, for example 
6544 \begin_inset Flex Code
6545 status collapsed
6546
6547 \begin_layout Plain Layout
6548
6549 \lang english
6550 "
6551 \backslash
6552
6553 \backslash
6554 .
6555 \backslash
6556 pipe
6557 \backslash
6558 my
6559 \backslash
6560 lyx
6561 \backslash
6562 pipe"
6563 \end_layout
6564
6565 \end_inset
6566
6567  would also work)
6568 \lang japanese
6569 。サーバーを開始するためには、これを
6570 \emph on
6571 手動で設定しなくてはなりません
6572 \emph default
6573
6574 \end_layout
6575
6576 \begin_layout Standard
6577 \SpecialChar LyX
6578 は、パイプを生成するに際して、「
6579 \begin_inset Flex Code
6580 status collapsed
6581
6582 \begin_layout Plain Layout
6583 .in
6584 \end_layout
6585
6586 \end_inset
6587
6588 」および「
6589 \begin_inset Flex Code
6590 status collapsed
6591
6592 \begin_layout Plain Layout
6593 .out
6594 \end_layout
6595
6596 \end_inset
6597
6598 」を付け加えます。パイプがすでに存在していれば、\SpecialChar LyX
6599 は他の\SpecialChar LyX
6600 プロセスがすでに実行中であると判断して、サーバーを開始しません。POSIX(Unix型)システムでは、なん
6601 らかの理由で、\SpecialChar LyX
6602 が終了する際に使用されていない「古い」パイプが削除されずに残ったりすると、\SpecialChar LyX
6603 はこれを削除しようとします。何らかの理由でこれが失敗した場合、手動でパイ
6604 プを削除したのちに、\SpecialChar LyX
6605 を再起動する必要があります。Windowsでは、プログラムが終了したりクラッシュしたりすると、OSがパイプを削除するので、「古い」パイプが残
6606 ることはありません。
6607 \end_layout
6608
6609 \begin_layout Standard
6610 サーバーを使用する\SpecialChar LyX
6611 プロセスを複数起動するには、それぞれのプロセスに、別のユーザーディレクトリを使用させたり、別々の
6612 \begin_inset Flex Code
6613 status collapsed
6614
6615 \begin_layout Plain Layout
6616 preferences
6617 \end_layout
6618
6619 \end_inset
6620
6621 ファイルを使用させるなど、別々の設定を使用する必要があります。
6622 \end_layout
6623
6624 \begin_layout Standard
6625 クライアントプログラムを開発しようとされているのであれば、\SpecialChar LyX
6626 サーバーからのデバッグ情報を有効にすると便利かもしれません。そのためには、Lyxを
6627 \begin_inset Flex Code
6628 status collapsed
6629
6630 \begin_layout Plain Layout
6631 lyx -dbg lyxserver
6632 \end_layout
6633
6634 \end_inset
6635
6636 として起動してください。
6637 \end_layout
6638
6639 \begin_layout Standard
6640 C++言語で書かれた完全なサンプルクライアントが、ソース頒布版の
6641 \begin_inset Newline newline
6642 \end_inset
6643
6644
6645 \begin_inset Flex Code
6646 status collapsed
6647
6648 \begin_layout Plain Layout
6649 development/lyxserver/server_monitor.cpp
6650 \end_layout
6651
6652 \end_inset
6653
6654 にあります。
6655 \end_layout
6656
6657 \begin_layout Standard
6658 もう一つの便利なツールとして、
6659 \begin_inset Flex Code
6660 status collapsed
6661
6662 \begin_layout Plain Layout
6663 src/client/lyxclient
6664 \end_layout
6665
6666 \end_inset
6667
6668 にあるコマンドラインベースのクライアントがあります。
6669 \end_layout
6670
6671 \begin_layout Section
6672 通常の通信
6673 \end_layout
6674
6675 \begin_layout Standard
6676 \SpecialChar LyX
6677 コールを発行するには、クライアントはASCIIテキスト行を入力パイプに書き込みまなくてはなりません。この行は、以下の書式を持ちます。
6678 \end_layout
6679
6680 \begin_layout Quote
6681 LYXCMD:
6682 \emph on
6683 クライアント名
6684 \emph default
6685 :
6686 \emph on
6687 関数
6688 \emph default
6689 :
6690 \emph on
6691 引数
6692 \end_layout
6693
6694 \begin_layout Description
6695 クライアント名 は、クライアントが自由に選べる名前です。これが用いられるのは、クライアントが他の要求クライアントから結果を見分けることができるように、\SpecialChar LyX
6696 が返答をす
6697 る際、クライアント名をエコーするときだけです。
6698 \end_layout
6699
6700 \begin_layout Description
6701 関数 は、\SpecialChar LyX
6702 に実行させたい関数です。これは、ミニバッファで使用するコマンドと同じです。
6703 \end_layout
6704
6705 \begin_layout Description
6706 引数 は、一部の関数のみに効力を持つオプションの引数です(たとえば、「自己挿入」LFUNは、現在のカーソル位置に引数を文章として挿入します)。
6707 \end_layout
6708
6709 \begin_layout Standard
6710 \SpecialChar LyX
6711 からの返答は、出力パイプに送り出され、
6712 \end_layout
6713
6714 \begin_layout Quote
6715 INFO:
6716 \emph on
6717 クライアント名
6718 \emph default
6719 :
6720 \emph on
6721 関数
6722 \emph default
6723 :
6724 \emph on
6725 データ
6726 \end_layout
6727
6728 \begin_layout Standard
6729 の書式をしています。ここで
6730 \emph on
6731 クライアント名
6732 \emph default
6733
6734 \emph on
6735 関数
6736 \emph default
6737 は、コマンド要求からそのままエコーされますが、
6738 \emph on
6739 データ
6740 \emph default
6741 はコマンド実行の結果に依存した、多少なりとも有用な情報です。「font-state」のような一部のコマンドは、\SpecialChar LyX
6742 の内部状態に関する情報を返しますが、空のデータ応答
6743 を返すものもあります。空のデータ返答は、コマンド実行が無事終わったことを意味します。
6744 \end_layout
6745
6746 \begin_layout Standard
6747 エラーが発生した場合の\SpecialChar LyX
6748 の返答は
6749 \end_layout
6750
6751 \begin_layout Quote
6752 ERROR:
6753 \emph on
6754 クライアント名
6755 \emph default
6756 :
6757 \emph on
6758 関数
6759 \emph default
6760 :
6761 \emph on
6762 エラーメッセージ
6763 \end_layout
6764
6765 \begin_layout Standard
6766 の書式をしており、
6767 \emph on
6768 エラーメッセージ
6769 \emph default
6770 には、なぜコマンドが失敗したかの説明が入っているはずです。
6771 \end_layout
6772
6773 \begin_layout Standard
6774 (例)
6775 \end_layout
6776
6777 \begin_layout LyX-Code
6778 echo "LYXCMD:test:beginning-of-buffer:" >~/.lyxpipe.in
6779 \begin_inset Newline newline
6780 \end_inset
6781
6782 echo "LYXCMD:test:get-xy:" >~/.lyxpipe.in
6783 \begin_inset Newline newline
6784 \end_inset
6785
6786 read a <~/.lyxpipe.out
6787 \begin_inset Newline newline
6788 \end_inset
6789
6790 echo $a
6791 \end_layout
6792
6793 \begin_layout Section
6794 通知
6795 \end_layout
6796
6797 \begin_layout Standard
6798 \SpecialChar LyX
6799 は、発生しているイベントを、非同期的にクライアントに通知することができます。いまのところ、ユーザーがある
6800 \begin_inset Flex Ruby
6801 status collapsed
6802
6803 \begin_layout Plain Layout
6804
6805 \begin_inset Argument post:1
6806 status collapsed
6807
6808 \begin_layout Plain Layout
6809 キー
6810 \end_layout
6811
6812 \end_inset
6813
6814
6815 \end_layout
6816
6817 \end_inset
6818
6819 列を関数「notify」に割り当てているときのみ、\SpecialChar LyX
6820 はこの通知を行います。\SpecialChar LyX
6821 が送る文字列の書式は
6822 \end_layout
6823
6824 \begin_layout Quote
6825 \begin_inset Flex Code
6826 status collapsed
6827
6828 \begin_layout Plain Layout
6829 NOTIFY:
6830 \end_layout
6831
6832 \end_inset
6833
6834
6835 \emph on
6836 鍵列
6837 \end_layout
6838
6839 \begin_layout Standard
6840 となっていて、
6841 \emph on
6842 鍵列
6843 \emph default
6844 は、ユーザーが実際に打鍵した鍵列の印字表現になります。
6845 \end_layout
6846
6847 \begin_layout Standard
6848 この機構は、\SpecialChar LyX
6849 のコマンド群を拡張してマクロを実装するのに使用することができます。なんらかの鍵列を「notify」に割り当ててください。それから出力パイプで待機する
6850 クライアントを起動し、鍵列に応じたコマンドを読み込み、一つないし複数の\SpecialChar LyX
6851 コマンドを発行する\SpecialChar LyX
6852 要求と\SpecialChar LyX
6853 コールを使用する関数を開始するのです。
6854 \end_layout
6855
6856 \begin_layout Section
6857 単純な\SpecialChar LyX
6858 サーバープロトコル
6859 \end_layout
6860
6861 \begin_layout Standard
6862 \SpecialChar LyX
6863 は、セッション管理に使用することができる単純なプロトコルを実装しています。メッセージは、すべて
6864 \end_layout
6865
6866 \begin_layout Quote
6867 LYXSRV:
6868 \emph on
6869 クライアント名
6870 \emph default
6871 :
6872 \emph on
6873 プロトコルメッセージ
6874 \end_layout
6875
6876 \begin_layout Standard
6877 の書式をしており、
6878 \emph on
6879 プロトコルメッセージ
6880 \emph default
6881 は「hello」ないし「bye」です。クライアントから「hello」を受け取ると、\SpecialChar LyX
6882 はメッセージを聴いていることをクライアントに伝えるために返答をし、\SpecialChar LyX
6883 が終了するこ
6884 とをクライアントに伝えるのには、\SpecialChar LyX
6885 が「bye」を送信します。
6886 \end_layout
6887
6888 \begin_layout Section
6889 DVIとPDFの遡及検索
6890 \end_layout
6891
6892 \begin_layout Standard
6893 DVI/PDFビューア
6894 \begin_inset Foot
6895 status collapsed
6896
6897 \begin_layout Plain Layout
6898 PDFの遡及検索機能を提供しているビューアには、KDE/Linux上のOkularと
6899 \lang english
6900 Qpdfview on Unix
6901 \lang japanese
6902 とMac OS X上のSkim、Windows上のSumatraPDFがあります。
6903 \end_layout
6904
6905 \end_inset
6906
6907 には、遡及検索(reverse searchないしinverse searchと呼ばれます)機能を提供しているものがあります。これを使えば、DVI/PDF出力の
6908 特定の場所をクリックすることによって、\SpecialChar LyX
6909 の文書中で対応する行にカーソルを移動させることができます。これを実現するためには、ビューアは\SpecialChar LyX
6910 と情報交換を行う必要があります
6911 。これは、命名パイプ(
6912 \emph on
6913 lyxpipe
6914 \emph default
6915 )を使用するか、\SpecialChar LyX
6916 が作業ディレクトリに生成するUNIXドメインソケット(
6917 \emph on
6918 lyxsocket
6919 \emph default
6920 )を使用する(これは
6921 \begin_inset Flex Code
6922 status collapsed
6923
6924 \begin_layout Plain Layout
6925 lyxclient
6926 \end_layout
6927
6928 \end_inset
6929
6930 プログラムが\SpecialChar LyX
6931 と通信するのに使用している方法です)ことで、\SpecialChar LyX
6932 サーバを経由して実現することができます。場合によっては、ビューアと\SpecialChar LyX
6933 を橋渡しする補助スクリプトを必要とする
6934 ことがあるかもしれませんが、それ以外は、ビューアは\SpecialChar LyX
6935 と直接通信することができます。これは、選んだビューアと基本ソフトに依存します。また、必要とされるビューアの設定
6936 法と遡及検索が実際に行われる方法とにも依存します。したがって、下記では個々のビューア毎の遡及検索の設定の仕方を説明することとします。その前に、DVI/PDF出力
6937 で遡及検索を有効にするためには、一般に何が必要とされるかを説明します。
6938 \end_layout
6939
6940 \begin_layout Subsection
6941 \begin_inset CommandInset label
6942 LatexCommand label
6943 name "subsec:遡及検索"
6944
6945 \end_inset
6946
6947 自動有効化
6948 \end_layout
6949
6950 \begin_layout Standard
6951 \begin_inset Flex MenuItem
6952 status collapsed
6953
6954 \begin_layout Plain Layout
6955 文書\SpecialChar menuseparator
6956 設定\SpecialChar menuseparator
6957 出力
6958 \end_layout
6959
6960 \end_inset
6961
6962 メニューで
6963 \begin_inset Flex MenuItem
6964 status collapsed
6965
6966 \begin_layout Plain Layout
6967 出力と同期
6968 \end_layout
6969
6970 \end_inset
6971
6972 オプションを有効にすれば、ほとんどの場合、\SpecialChar LyX
6973 がすべてをうまくこなしてくれます。その場合、\SpecialChar LyX
6974 は、自動的に、必要なSync\SpecialChar TeX
6975 マクロ(PDFの場合)や、srcltxパッケー
6976 ジ(DVIの場合)を挿入してくれます。このオプションは、
6977 \begin_inset Flex MenuItem
6978 status collapsed
6979
6980 \begin_layout Plain Layout
6981 表示/更新
6982 \end_layout
6983
6984 \end_inset
6985
6986 ツールバーからも容易にアクセスすることができます。
6987 \end_layout
6988
6989 \begin_layout Standard
6990 もし、これとは別の設定が必要な場合には、
6991 \begin_inset Flex MenuItem
6992 status collapsed
6993
6994 \begin_layout Plain Layout
6995 文書\SpecialChar menuseparator
6996 設定\SpecialChar menuseparator
6997 出力\SpecialChar menuseparator
6998 出力と同期
6999 \end_layout
7000
7001 \end_inset
7002
7003 の直下にあるドロップダウンボックスから、自製マクロを選択ないし入力することができます。
7004 \end_layout
7005
7006 \begin_layout Standard
7007 方式として
7008 \begin_inset Flex Code
7009 status collapsed
7010
7011 \begin_layout Plain Layout
7012
7013 \backslash
7014 synctex=1
7015 \end_layout
7016
7017 \end_inset
7018
7019 を用いると、gzip圧縮が有効となることに注意してください。使用しているビューアがgzip圧縮をサポートしていない場合には、代わりに
7020 \begin_inset Flex Code
7021 status collapsed
7022
7023 \begin_layout Plain Layout
7024
7025 \backslash
7026 synctex=-1
7027 \end_layout
7028
7029 \end_inset
7030
7031 を指定してください。
7032 \end_layout
7033
7034 \begin_layout Standard
7035 また、
7036 \begin_inset Flex Code
7037 status collapsed
7038
7039 \begin_layout Plain Layout
7040 srcltx
7041 \end_layout
7042
7043 \end_inset
7044
7045 パッケージや
7046 \begin_inset Flex Code
7047 status collapsed
7048
7049 \begin_layout Plain Layout
7050 src-specials
7051 \end_layout
7052
7053 \end_inset
7054
7055 を取り込むと、組版上、不具合が生じることがあるのでご注意ください。したがって、
7056 \begin_inset Flex Code
7057 status collapsed
7058
7059 \begin_layout Plain Layout
7060 srcltx
7061 \end_layout
7062
7063 \end_inset
7064
7065 パッケージや
7066 \begin_inset Flex Code
7067 status collapsed
7068
7069 \begin_layout Plain Layout
7070 src-specials
7071 \end_layout
7072
7073 \end_inset
7074
7075 を使用している場合には、最終版を組版する際には、出力同期を無効にするべきです。
7076 \end_layout
7077
7078 \begin_layout Standard
7079 自動設定でカバーされている範囲よりも、さらに特殊なものが必要な場合には、出力同期を手動で設定する仕方を述べた次節をお読みください。自動設定で事足りる場合には、自
7080 動設定・手動設定ともに必要となるビューア上の設定を述べた、第
7081 \begin_inset CommandInset ref
7082 LatexCommand ref
7083 reference "subsec:特定のビューアを設定して使うには"
7084
7085 \end_inset
7086
7087 節に進むことができます。
7088 \end_layout
7089
7090 \begin_layout Subsection
7091 手動有効化
7092 \end_layout
7093
7094 \begin_layout Standard
7095 \SpecialChar LaTeX
7096 は、遡及検索のために複数の方法を提供しています。ある方法は
7097 \begin_inset Flex Code
7098 status collapsed
7099
7100 \begin_layout Plain Layout
7101 latex/pdflatex
7102 \end_layout
7103
7104 \end_inset
7105
7106 プログラムに組み込まれており、他の方法は外部パッケージとして提供されています。どちらを選択するかは、お使いの\SpecialChar LaTeX
7107 頒布版が既に特定の方法を提供しているか(組み込みによ
7108 る方法は比較的新しいものです)と、お使いのビューアがそれに対応しているかに依存します。使用可能な方法を以下に述べます。
7109 \end_layout
7110
7111 \begin_layout Subsubsection*
7112 src-special経由のDVI組み込み検索(DVIのみ)
7113 \end_layout
7114
7115 \begin_layout Standard
7116 この方法は、DVIファイルに遡及検索に必要な情報を追加するものです。これは、かなり前の\SpecialChar LaTeX
7117 から利用可能となっており(比較的最近の\SpecialChar LaTeX
7118 頒布版はすべて対応しています)、安定
7119 して動作します。これを有効にするには、
7120 \begin_inset Flex MenuItem
7121 status collapsed
7122
7123 \begin_layout Plain Layout
7124 設定\SpecialChar menuseparator
7125 ファイル処理\SpecialChar menuseparator
7126 変換子
7127 \end_layout
7128
7129 \end_inset
7130
7131
7132 \begin_inset Flex MenuItem
7133 status collapsed
7134
7135 \begin_layout Plain Layout
7136 LaTeX (plain)->DVI
7137 \end_layout
7138
7139 \end_inset
7140
7141 ないし
7142 \begin_inset Flex MenuItem
7143 status collapsed
7144
7145 \begin_layout Plain Layout
7146 LaTeX (plain)->DraftDVI
7147 \end_layout
7148
7149 \end_inset
7150
7151 変換子を
7152 \begin_inset Flex Code
7153 status collapsed
7154
7155 \begin_layout Plain Layout
7156 latex -src-specials $$i
7157 \end_layout
7158
7159 \end_inset
7160
7161 に変更します。もしこれが動作しないときは、お使いの\SpecialChar LaTeX
7162 エンジンが違うオプションを必要としていないか確認してください(頒布版によっては文法の異なることがあります)。
7163 \end_layout
7164
7165 \begin_layout Subsubsection*
7166 外部パッケージ(PDFSyncおよびsrcltx)
7167 \end_layout
7168
7169 \begin_layout Standard
7170
7171 \emph on
7172 pdfsync
7173 \emph default
7174 および
7175 \emph on
7176 srcltx
7177 \emph default
7178 パッケージは、PDF出力(pdflatex経由)およびDVI出力での遡及検索を提供します。これを有効にするには、\SpecialChar LyX
7179 プリアンブルで以下のようにパッケージを読み込んで
7180 ください。
7181 \end_layout
7182
7183 \begin_layout Itemize
7184 PDFの遡及検索には
7185 \begin_inset Flex Code
7186 status collapsed
7187
7188 \begin_layout Plain Layout
7189
7190 \backslash
7191 usepackage{pdfsync}
7192 \end_layout
7193
7194 \end_inset
7195
7196
7197 \end_layout
7198
7199 \begin_layout Itemize
7200 DVIの遡及検索には
7201 \begin_inset Flex Code
7202 status collapsed
7203
7204 \begin_layout Plain Layout
7205
7206 \backslash
7207 usepackage[active]{srcltx}
7208 \end_layout
7209
7210 \end_inset
7211
7212
7213 \end_layout
7214
7215 \begin_layout Standard
7216 と書きます。DVIとPDFの両方の遡及検索を実行できるようにするためには、プリアンブルに以下の行を挿入する方法があります。
7217 \end_layout
7218
7219 \begin_layout LyX-Code
7220
7221 \backslash
7222 usepackage{ifpdf}
7223 \begin_inset Newline newline
7224 \end_inset
7225
7226
7227 \backslash
7228 ifpdf
7229 \begin_inset Newline newline
7230 \end_inset
7231
7232   
7233 \backslash
7234 usepackage{pdfsync}
7235 \begin_inset Newline newline
7236 \end_inset
7237
7238
7239 \backslash
7240 else
7241 \begin_inset Newline newline
7242 \end_inset
7243
7244   
7245 \backslash
7246 usepackage[active]{srcltx}
7247 \begin_inset Newline newline
7248 \end_inset
7249
7250
7251 \backslash
7252 fi
7253 \end_layout
7254
7255 \begin_layout Standard
7256 このようにすれば、DVIでもPDF(pdflatex)でも正しいパッケージを使いながら、ファイルを閲覧することができます。
7257 \end_layout
7258
7259 \begin_layout Standard
7260 なお、PDFSyncは、文書の出力レイアウトに干渉する可能性があるので注意してください。したがって、仕上がり文書ではPDFSyncを無効にすることをお勧めします
7261
7262 \end_layout
7263
7264 \begin_layout Subsubsection*
7265 Sync\SpecialChar TeX
7266 を使った組み込み遡及検索(DVIおよびPDF)
7267 \end_layout
7268
7269 \begin_layout Standard
7270 \begin_inset Flex Code
7271 status collapsed
7272
7273 \begin_layout Plain Layout
7274 (pdf)latex
7275 \end_layout
7276
7277 \end_inset
7278
7279 の最近のバージョンは、PDFおよびDVI両方の遡及検索を組み込みでサポートしています。このいわゆる
7280 \emph on
7281 Sync\SpecialChar TeX
7282
7283 \emph default
7284 機能は、主に、PDFSyncパッケージをpdftexプログラムへ統合したことと、それをsrc-specialsアプローチへ取り込んだことの成果です。これを使用す
7285 るためには、少なくとも\SpecialChar TeX
7286 Live 2008か最近のMik\SpecialChar TeX
7287 頒布版が必要です。また、既にSync\SpecialChar TeX
7288 サポートを提供しているPDFビューアは少ししかありません(
7289 \lang english
7290 Okular and Qpdfview on Unix, 
7291 \lang japanese
7292 Mac上のSkimとWindows上のSumatraPDF)。
7293 \end_layout
7294
7295 \begin_layout Standard
7296 DVI出力でSync\SpecialChar TeX
7297 を有効にするには、
7298 \begin_inset Flex MenuItem
7299 status collapsed
7300
7301 \begin_layout Plain Layout
7302 設定\SpecialChar menuseparator
7303 ファイル処理\SpecialChar menuseparator
7304 変換子
7305 \end_layout
7306
7307 \end_inset
7308
7309
7310 \begin_inset Flex MenuItem
7311 status collapsed
7312
7313 \begin_layout Plain Layout
7314 LaTeX (plain)->DVI
7315 \end_layout
7316
7317 \end_inset
7318
7319 ないし
7320 \begin_inset Flex MenuItem
7321 status collapsed
7322
7323 \begin_layout Plain Layout
7324 LaTeX (plain)->DraftDVI
7325 \end_layout
7326
7327 \end_inset
7328
7329 変換子を
7330 \begin_inset Flex Code
7331 status collapsed
7332
7333 \begin_layout Plain Layout
7334 latex -synctex=1 $$i
7335 \end_layout
7336
7337 \end_inset
7338
7339 に変更します。PDF出力用には、
7340 \begin_inset Flex MenuItem
7341 status collapsed
7342
7343 \begin_layout Plain Layout
7344 LaTeX (pdflatex)->PDF (pdflatex)
7345 \end_layout
7346
7347 \end_inset
7348
7349 変換子を
7350 \begin_inset Flex Code
7351 status collapsed
7352
7353 \begin_layout Plain Layout
7354 pdflatex -synctex=1 $$i
7355 \end_layout
7356
7357 \end_inset
7358
7359 に変更してください。また、ビューアをSync\SpecialChar TeX
7360 で使うのに設定を行う必要があるかどうか、お使いのビューアの取扱説明書をご確認ください。
7361 \begin_inset Foot
7362 status collapsed
7363
7364 \begin_layout Plain Layout
7365 \begin_inset Flex Code
7366 status collapsed
7367
7368 \begin_layout Plain Layout
7369 -synctex=1
7370 \end_layout
7371
7372 \end_inset
7373
7374 オプションは、gzip圧縮を有効にします。お使いのビューアがgzip圧縮をサポートしていない場合には、代わりに
7375 \begin_inset Flex Code
7376 status collapsed
7377
7378 \begin_layout Plain Layout
7379 -synctex=-1
7380 \end_layout
7381
7382 \end_inset
7383
7384 を使用してください。
7385 \end_layout
7386
7387 \end_inset
7388
7389
7390 \end_layout
7391
7392 \begin_layout Subsection
7393 特定のビューアを設定して使うには
7394 \begin_inset CommandInset label
7395 LatexCommand label
7396 name "subsec:特定のビューアを設定して使うには"
7397
7398 \end_inset
7399
7400
7401 \end_layout
7402
7403 \begin_layout Subsubsection*
7404 Xdvi(全プラットフォーム)
7405 \end_layout
7406
7407 \begin_layout Standard
7408 \SpecialChar LyX
7409 は、
7410 \begin_inset Flex Code
7411 status collapsed
7412
7413 \begin_layout Plain Layout
7414 lyxclient
7415 \end_layout
7416
7417 \end_inset
7418
7419 プログラムを自動的に使うのに必要なフックを、既に提供しているので、
7420 \begin_inset Flex Code
7421 status collapsed
7422
7423 \begin_layout Plain Layout
7424 xdvi
7425 \end_layout
7426
7427 \end_inset
7428
7429 を使用する場合には、DVI遡及検索を実行するのに他にするべきことはありません。使用中の文書を上記で述べたように設定するだけです(遡及検索は、Ctrl-クリックか
7430 、Mac OS X上ではAlt-クリックで始動します)。
7431 \end_layout
7432
7433 \begin_layout Standard
7434 しかし、何らかの理由で、\SpecialChar LyX
7435 と通信するのにソケットではなく命名パイプを使用したい場合には、
7436 \begin_inset Flex MenuItem
7437 status collapsed
7438
7439 \begin_layout Plain Layout
7440 設定\SpecialChar menuseparator
7441 ファイル処理\SpecialChar menuseparator
7442 ファイル書式
7443 \end_layout
7444
7445 \end_inset
7446
7447 のDVIビューアを
7448 \lang english
7449
7450 \begin_inset Foot
7451 status collapsed
7452
7453 \begin_layout Plain Layout
7454
7455 \lang english
7456 On Mac OSX you have to use 
7457 \begin_inset Flex Code
7458 status collapsed
7459
7460 \begin_layout Plain Layout
7461
7462 \lang english
7463 DISPLAY=:0.0 xdvi -editor "lyxeditor.sh %f %l"
7464 \end_layout
7465
7466 \end_inset
7467
7468
7469 \end_layout
7470
7471 \end_inset
7472
7473
7474 \lang japanese
7475
7476 \begin_inset Flex Code
7477 status collapsed
7478
7479 \begin_layout Plain Layout
7480 xdvi -editor "lyxeditor.sh %f %l"
7481 \end_layout
7482
7483 \end_inset
7484
7485 (
7486 \begin_inset Flex Code
7487 status collapsed
7488
7489 \begin_layout Plain Layout
7490 lyxeditor.sh
7491 \end_layout
7492
7493 \end_inset
7494
7495 は適切なスクリプト名)に変更してください。たとえば、最低限のシェルスクリプトは
7496 \end_layout
7497
7498 \begin_layout LyX-Code
7499 #!/bin/sh
7500 \begin_inset Newline newline
7501 \end_inset
7502
7503 LYXPIPE="/path/to/lyxpipe"
7504 \begin_inset Newline newline
7505 \end_inset
7506
7507 COMMAND="LYXCMD:revdvi:server-goto-file-row:$1 $2"
7508 \begin_inset Newline newline
7509 \end_inset
7510
7511 echo "$COMMAND" > "${LYXPIPE}".in || exit
7512 \begin_inset Newline newline
7513 \end_inset
7514
7515 read TMP < "${LYXPIPE}".out || exit
7516 \end_layout
7517
7518 \begin_layout Standard
7519 のようになります。ここで
7520 \begin_inset Flex Code
7521 status collapsed
7522
7523 \begin_layout Plain Layout
7524 /path/to/lyxpipe
7525 \end_layout
7526
7527 \end_inset
7528
7529 は、
7530 \begin_inset Flex MenuItem
7531 status collapsed
7532
7533 \begin_layout Plain Layout
7534 設定\SpecialChar menuseparator
7535 パス
7536 \end_layout
7537
7538 \end_inset
7539
7540 で指定したLyXServerパイプのパスを指定してください。
7541 \begin_inset Foot
7542 status collapsed
7543
7544 \begin_layout Plain Layout
7545 ソース頒布版の
7546 \begin_inset Flex Code
7547 status collapsed
7548
7549 \begin_layout Plain Layout
7550 development/tools
7551 \end_layout
7552
7553 \end_inset
7554
7555 フォルダには、ユーザが設定した
7556 \emph on
7557 lyxpipe
7558 \emph default
7559 を探し出す
7560 \begin_inset Flex Code
7561 status collapsed
7562
7563 \begin_layout Plain Layout
7564 lyxeditor
7565 \end_layout
7566
7567 \end_inset
7568
7569 スクリプトがあります。
7570 \end_layout
7571
7572 \end_inset
7573
7574
7575 \end_layout
7576
7577 \begin_layout Subsubsection*
7578 MacDviX(Mac OS X)
7579 \end_layout
7580
7581 \begin_layout Standard
7582 \begin_inset Flex Code
7583 status collapsed
7584
7585 \begin_layout Plain Layout
7586 /Applications/MacDviX_Folder/calleditor.script
7587 \end_layout
7588
7589 \end_inset
7590
7591 の終わりに
7592 \end_layout
7593
7594 \begin_layout LyX-Code
7595 /Applications/LyX.app/Contents/MacOS/lyxeditor "$2" $1
7596 \begin_inset Newline newline
7597 \end_inset
7598
7599 exit 1
7600 \end_layout
7601
7602 \begin_layout Standard
7603 という行を付け加えてください。Applicationsフォルダ以外の場所に\SpecialChar LyX
7604 を導入した場合には、それに従って上記の行を修正してください。
7605 \end_layout
7606
7607 \begin_layout Standard
7608 遡及検索は、Alt-クリック(OPTION-クリック)で始動します。
7609 \end_layout
7610
7611 \begin_layout Subsubsection*
7612 Skim(Mac OS X)
7613 \end_layout
7614
7615 \begin_layout Standard
7616 \begin_inset Flex MenuItem
7617 status collapsed
7618
7619 \begin_layout Plain Layout
7620 設定\SpecialChar menuseparator
7621 ファイル処理\SpecialChar menuseparator
7622 ファイル書式\SpecialChar menuseparator
7623 PDF (pdflatex)
7624 \end_layout
7625
7626 \end_inset
7627
7628 のビューア設定に
7629 \begin_inset Flex Code
7630 status collapsed
7631
7632 \begin_layout Plain Layout
7633 open -a Skim.app $$i
7634 \end_layout
7635
7636 \end_inset
7637
7638 と入力し、
7639 \begin_inset Flex MenuItem
7640 status collapsed
7641
7642 \begin_layout Plain Layout
7643 Skim\SpecialChar menuseparator
7644 設定\SpecialChar menuseparator
7645 Sync
7646 \end_layout
7647
7648 \end_inset
7649
7650 でLyXを選択してください。
7651 \end_layout
7652
7653 \begin_layout Standard
7654 遡及検索は、COMMAND-SHIFT-クリックで始動します。
7655 \end_layout
7656
7657 \begin_layout Subsubsection*
7658 Okular (KDE)
7659 \end_layout
7660
7661 \begin_layout Standard
7662 \begin_inset Flex MenuItem
7663 status collapsed
7664
7665 \begin_layout Plain Layout
7666 設定\SpecialChar menuseparator
7667 Okularを設定\SpecialChar ldots
7668 \SpecialChar menuseparator
7669 編集
7670 \end_layout
7671
7672 \end_inset
7673
7674 で「カスタムテキストエディタ」を選択し、コマンドに
7675 \begin_inset Flex Code
7676 status collapsed
7677
7678 \begin_layout Plain Layout
7679 lyxclient -g %f %l
7680 \end_layout
7681
7682 \end_inset
7683
7684 を加えてください。
7685 \end_layout
7686
7687 \begin_layout Standard
7688 遡及検索は、SHIFT-クリックで始動します。
7689 \end_layout
7690
7691 \begin_layout Subsubsection*
7692
7693 \lang english
7694 Qpdfview (Unix)
7695 \end_layout
7696
7697 \begin_layout Standard
7698
7699 \lang english
7700 Qpdfview supports Sync\SpecialChar TeX
7701  since version 0.3.5.
7702  Go to 
7703 \begin_inset Flex MenuItem
7704 status collapsed
7705
7706 \begin_layout Plain Layout
7707
7708 \lang english
7709 Edit\SpecialChar menuseparator
7710 Settings\SpecialChar menuseparator
7711 Behavior
7712 \end_layout
7713
7714 \end_inset
7715
7716 , click on the input field of the 
7717 \begin_inset Quotes eld
7718 \end_inset
7719
7720 Source editor
7721 \begin_inset Quotes erd
7722 \end_inset
7723
7724  item and add the command 
7725 \begin_inset Flex Code
7726 status collapsed
7727
7728 \begin_layout Plain Layout
7729
7730 \lang english
7731 lyxclient -g %1 %2
7732 \end_layout
7733
7734 \end_inset
7735
7736 .
7737 \end_layout
7738
7739 \begin_layout Standard
7740
7741 \lang english
7742 Reverse search is triggered by double-click.
7743 \end_layout
7744
7745 \begin_layout Subsubsection*
7746 YAP(Windows)
7747 \end_layout
7748
7749 \begin_layout Standard
7750 yapを起動し、
7751 \begin_inset Flex MenuItem
7752 status collapsed
7753
7754 \begin_layout Plain Layout
7755 View\SpecialChar menuseparator
7756 Options
7757 \end_layout
7758
7759 \end_inset
7760
7761 メニューを選択し、「Inverse DVI Search」タブを選択します。「New\SpecialChar ldots
7762 」ボタンをクリックして開くウィンドウの「Name:」フィールドに「\SpecialChar LyX
7763
7764  Editor」(または自分の好きな名称)と入力してください。「\SpecialChar ldots
7765 」というラベルのボタンをクリックしてファイルダイアログを開き、バッチファイル
7766 \begin_inset Flex Code
7767 status collapsed
7768
7769 \begin_layout Plain Layout
7770 lyxeditor.bat
7771 \end_layout
7772
7773 \end_inset
7774
7775 (以下参照)のあるディレクトリを見つけます。
7776 \begin_inset Flex Code
7777 status collapsed
7778
7779 \begin_layout Plain Layout
7780 lyxeditor.bat
7781 \end_layout
7782
7783 \end_inset
7784
7785 を選択してプログラムの引数を
7786 \begin_inset Flex Code
7787 status collapsed
7788
7789 \begin_layout Plain Layout
7790 %f %l
7791 \end_layout
7792
7793 \end_inset
7794
7795 と指定してください。
7796 \begin_inset Flex Code
7797 status collapsed
7798
7799 \begin_layout Plain Layout
7800 lyxeditor.bat
7801 \end_layout
7802
7803 \end_inset
7804
7805 は、
7806 \emph on
7807 lyxpipe
7808 \emph default
7809 を通じて\SpecialChar LyX
7810 と通信するためのラッパとして使用され、以下のようになっています。
7811 \end_layout
7812
7813 \begin_layout LyX-Code
7814 @echo off
7815 \begin_inset Newline newline
7816 \end_inset
7817
7818 echo LYXCMD:revdvi:server-goto-file-row:%1 %2> 
7819 \backslash
7820
7821 \backslash
7822 .
7823 \backslash
7824 pipe
7825 \backslash
7826 lyxpipe.in
7827 \begin_inset Newline newline
7828 \end_inset
7829
7830 type 
7831 \backslash
7832
7833 \backslash
7834 .
7835 \backslash
7836 pipe
7837 \backslash
7838 lyxpipe.out
7839 \end_layout
7840
7841 \begin_layout Standard
7842 \SpecialChar LyX
7843 で指定した\SpecialChar LyX
7844 Serverパイプパスが、
7845 \begin_inset Flex Code
7846 status collapsed
7847
7848 \begin_layout Plain Layout
7849
7850 \backslash
7851
7852 \backslash
7853 .
7854 \backslash
7855 pipe
7856 \backslash
7857 lyxpipe
7858 \end_layout
7859
7860 \end_inset
7861
7862 となっていることを確認するか、
7863 \begin_inset Flex Code
7864 status collapsed
7865
7866 \begin_layout Plain Layout
7867 lyxeditor.bat
7868 \end_layout
7869
7870 \end_inset
7871
7872 ラッパの方を適切に修正してください。
7873 \end_layout
7874
7875 \begin_layout Standard
7876 yapでは、遡及検索はダブルクリックで始動します。
7877 \end_layout
7878
7879 \begin_layout Subsubsection*
7880 SumatraPDF(Windows)
7881 \end_layout
7882
7883 \begin_layout Standard
7884 SumatraPDFを遡及検索で使用するためには、
7885 \begin_inset Flex MenuItem
7886 status collapsed
7887
7888 \begin_layout Plain Layout
7889 設定\SpecialChar menuseparator
7890 ファイル処理\SpecialChar menuseparator
7891 ファイル書式\SpecialChar menuseparator
7892 PDF (pdflatex)
7893 \end_layout
7894
7895 \end_inset
7896
7897 のビューア設定で
7898 \begin_inset Flex Code
7899 status collapsed
7900
7901 \begin_layout Plain Layout
7902 SumatraPDF -inverse-search 
7903 \begin_inset Quotes eld
7904 \end_inset
7905
7906 lyxeditor.bat %f %l
7907 \begin_inset Quotes erd
7908 \end_inset
7909
7910
7911 \end_layout
7912
7913 \end_inset
7914
7915 (
7916 \begin_inset Flex Code
7917 status collapsed
7918
7919 \begin_layout Plain Layout
7920 lyxeditor.bat
7921 \end_layout
7922
7923 \end_inset
7924
7925 は上記のラッパ)と入力してください。SumatraPDF.exeがコマンドPATHにない場合、フルファイル名を使用してください。
7926 \end_layout
7927
7928 \begin_layout Standard
7929 遡及検索はダブルクリックで始動します。
7930 \end_layout
7931
7932 \begin_layout Subsubsection*
7933 YAP(Cygwin)
7934 \end_layout
7935
7936 \begin_layout Standard
7937 まずはじめに、yapがWindows環境での既定のDVIビューアになっていることを確認してから、yapを起動し、
7938 \begin_inset Flex MenuItem
7939 status collapsed
7940
7941 \begin_layout Plain Layout
7942 View\SpecialChar menuseparator
7943 Options
7944 \end_layout
7945
7946 \end_inset
7947
7948 メニューを選択し、「Inverse DVI Search」タブを選択します。「New\SpecialChar ldots
7949 」ボタンをクリックして開くウィンドウの「Name:」フィールドに「\SpecialChar LyX
7950
7951  Editor」(または自分の好きな名称)と入力してください。「\SpecialChar ldots
7952 」というラベルのボタンをクリックしてファイルダイアログを開き、バッチファイル
7953 \begin_inset Flex Code
7954 status collapsed
7955
7956 \begin_layout Plain Layout
7957 lyxeditor.exe
7958 \end_layout
7959
7960 \end_inset
7961
7962 プログラム(これは、Cygwinでは既定で\SpecialChar LyX
7963 実行ファイルとともに導入されます)のあるディレクトリを見つけます。
7964 \begin_inset Flex Code
7965 status collapsed
7966
7967 \begin_layout Plain Layout
7968 lyxeditor.exe
7969 \end_layout
7970
7971 \end_inset
7972
7973 を選択してプログラムの引数を
7974 \begin_inset Flex Code
7975 status collapsed
7976
7977 \begin_layout Plain Layout
7978 -g %f %l
7979 \end_layout
7980
7981 \end_inset
7982
7983 と指定してください。これによって、\SpecialChar LyX
7984 との通信に
7985 \emph on
7986 lyxsocket
7987 \emph default
7988 が使用されるようになります。何らかの理由で
7989 \emph on
7990 lyxpipe
7991 \emph default
7992 を使用したい場合には、
7993 \begin_inset Flex Code
7994 status collapsed
7995
7996 \begin_layout Plain Layout
7997 -g
7998 \end_layout
7999
8000 \end_inset
8001
8002 オプションを削除して、\SpecialChar LyX
8003 設定で\SpecialChar LyX
8004 Serverパイプパスを指定することを忘れないでください。
8005 \end_layout
8006
8007 \begin_layout Standard
8008 yapでは、遡及検索はダブルクリックで始動します。
8009 \end_layout
8010
8011 \begin_layout Subsubsection*
8012 SumatraPDF(Cygwin)
8013 \end_layout
8014
8015 \begin_layout Standard
8016 SumatraPDFを遡及検索で使用するためには、
8017 \begin_inset Flex MenuItem
8018 status collapsed
8019
8020 \begin_layout Plain Layout
8021 設定\SpecialChar menuseparator
8022 ファイル処理\SpecialChar menuseparator
8023 ファイル書式\SpecialChar menuseparator
8024 PDF (pdflatex)
8025 \end_layout
8026
8027 \end_inset
8028
8029 のビューア設定で
8030 \begin_inset Flex Code
8031 status collapsed
8032
8033 \begin_layout Plain Layout
8034 SumatraPDF.sh
8035 \end_layout
8036
8037 \end_inset
8038
8039 と入力してください。ここで
8040 \begin_inset Flex Code
8041 status collapsed
8042
8043 \begin_layout Plain Layout
8044 SumatraPDF.sh
8045 \end_layout
8046
8047 \end_inset
8048
8049 は以下のようなスクリプトです(お使いのコマンドパスに置きます。
8050 \begin_inset Flex Code
8051 status collapsed
8052
8053 \begin_layout Plain Layout
8054 /usr/local/bin
8055 \end_layout
8056
8057 \end_inset
8058
8059 がもっとも良い選択肢でしょう)。
8060 \end_layout
8061
8062 \begin_layout LyX-Code
8063 #!/bin/bash
8064 \begin_inset Newline newline
8065 \end_inset
8066
8067 cd $(dirname $1)
8068 \begin_inset Newline newline
8069 \end_inset
8070
8071 SumatraPDF -inverse-search "lyxeditor -g %f %l" $(basename $1)
8072 \end_layout
8073
8074 \begin_layout Standard
8075 SumatraPDFは、Windowsネイティブのアプリケーションであり、\SpecialChar LyX
8076 のCygwin版が使用するPOSIXパスを理解しないので、このラッパスクリプトが必要と
8077 なります。SumatraPDF.exeがお使いのコマンドパスにない場合は、上記のスクリプトでPOSIXのフルパスを使用してください。
8078 \begin_inset Flex Code
8079 status collapsed
8080
8081 \begin_layout Plain Layout
8082 -g
8083 \end_layout
8084
8085 \end_inset
8086
8087
8088 \emph on
8089 lyxsocket
8090 \emph default
8091 経由の通信を有効にします。ここでも、
8092 \emph on
8093 lyxpipe
8094 \emph default
8095 を使用したい場合には、
8096 \begin_inset Flex Code
8097 status collapsed
8098
8099 \begin_layout Plain Layout
8100 -g
8101 \end_layout
8102
8103 \end_inset
8104
8105 オプションを削除して、\SpecialChar LyX
8106 設定で\SpecialChar LyX
8107 Serverパイプパスを指定することを忘れないでください。
8108 \end_layout
8109
8110 \begin_layout Standard
8111 遡及検索はダブルクリックで始動します。
8112 \end_layout
8113
8114 \begin_layout Section
8115 順検索
8116 \end_layout
8117
8118 \begin_layout Standard
8119 順検索とは、名前が示すとおり、いわば遡及検索の「逆」を意味します。すなわち、\SpecialChar LyX
8120 内部から、ビューアに特定の箇所を表示させることを可能にします。(以下に説明するように
8121 )もし順検索の準備ができていれば、カーソルを\SpecialChar LyX
8122 文書の好きなところに置いて、
8123 \begin_inset Flex MenuItem
8124 status collapsed
8125
8126 \begin_layout Plain Layout
8127 移動\SpecialChar menuseparator
8128 順検索
8129 \end_layout
8130
8131 \end_inset
8132
8133 を選択すると(あるいはマウスの右クリックで表示される文脈依存メニューから
8134 \begin_inset Flex MenuItem
8135 status collapsed
8136
8137 \begin_layout Plain Layout
8138 順検索
8139 \end_layout
8140
8141 \end_inset
8142
8143 を選択してもよい)、ビューアも同じ箇所に移動します。もちろん、使用しているビューアが、この機能をサポートしていなくてはなりません。
8144 \end_layout
8145
8146 \begin_layout Standard
8147 順検索を有効にするためには、生成されたPDF/DVI出力ファイルに、\SpecialChar TeX
8148 ソースに関する情報を追加する必要があります。これは、第
8149 \begin_inset CommandInset ref
8150 LatexCommand ref
8151 reference "subsec:遡及検索"
8152
8153 \end_inset
8154
8155 節に述べられている方法で実行することができます。
8156 \end_layout
8157
8158 \begin_layout Standard
8159 次に、
8160 \begin_inset Flex MenuItem
8161 status collapsed
8162
8163 \begin_layout Plain Layout
8164 ツール\SpecialChar menuseparator
8165 設定\SpecialChar menuseparator
8166 出力\SpecialChar menuseparator
8167 一般
8168 \end_layout
8169
8170 \end_inset
8171
8172 で自分の使うビューアを利用するように、\SpecialChar LyX
8173 を設定する必要があります。いくつかのビューアについては、試験済みの設定が前もって準備されており、ドロップダウンリストから選
8174 択することができます。これらの設定の何れも意にそぐわない場合には、ご自身で適切な設定を見つけ出して入力しなくてはなりません。定義文法は、以下の変数を使用します。
8175 \end_layout
8176
8177 \begin_layout Itemize
8178 \begin_inset Flex Code
8179 status collapsed
8180
8181 \begin_layout Plain Layout
8182 $$n
8183 \end_layout
8184
8185 \end_inset
8186
8187 :行番号
8188 \end_layout
8189
8190 \begin_layout Itemize
8191 \begin_inset Flex Code
8192 status collapsed
8193
8194 \begin_layout Plain Layout
8195 $$t
8196 \end_layout
8197
8198 \end_inset
8199
8200 :書き出された(一時).texファイル名(パスを除く)
8201 \end_layout
8202
8203 \begin_layout Itemize
8204 \begin_inset Flex Code
8205 status collapsed
8206
8207 \begin_layout Plain Layout
8208 $$f
8209 \end_layout
8210
8211 \end_inset
8212
8213 :書き出された(一時).texファイル名(パスを含む)
8214 \end_layout
8215
8216 \begin_layout Itemize
8217 \begin_inset Flex Code
8218 status collapsed
8219
8220 \begin_layout Plain Layout
8221 $$o
8222 \end_layout
8223
8224 \end_inset
8225
8226 :書き出された出力ファイル名(どちらが一時ディレクトリに存在するかに依存して、dviあるいはpdf)。
8227 \end_layout
8228
8229 \begin_layout Standard
8230 yap・xdvi・okular
8231 \begin_inset Foot
8232 status collapsed
8233
8234 \begin_layout Plain Layout
8235 \begin_inset Flex MenuItem
8236 status collapsed
8237
8238 \begin_layout Plain Layout
8239 ツール\SpecialChar menuseparator
8240 設定\SpecialChar menuseparator
8241 ファイル処理\SpecialChar menuseparator
8242 ファイル形式
8243 \end_layout
8244
8245 \end_inset
8246
8247
8248 \begin_inset Flex Code
8249 status collapsed
8250
8251 \begin_layout Plain Layout
8252 okular –unique
8253 \end_layout
8254
8255 \end_inset
8256
8257 と設定すると良いかもしれません。
8258 \end_layout
8259
8260 \end_inset
8261
8262 ・qpdfview・Sumatra PDFなど、一部のビューアでしか、完全な順検索機能は提供されていないことに注意してください
8263 \lang english
8264
8265 \begin_inset Foot
8266 status collapsed
8267
8268 \begin_layout Plain Layout
8269
8270 \lang english
8271 SumatraPDF can also use DDE commands through the external program CMCDDE
8272  — downloadable from 
8273 \begin_inset CommandInset href
8274 LatexCommand href
8275 target "http://www.istri.fr/spip/zip/CMCDDE.zip"
8276
8277 \end_inset
8278
8279
8280 \end_layout
8281
8282 \end_inset
8283
8284
8285 \lang japanese
8286 。広く使われているPDFビューアの多く(特にAdobe Reader)は、順検索を全く提供していませんが、他の一部のビューア(たとえばEvinceやxpdf)で
8287 は、少なくとも、文書を読み込み直したり、ファイルの特定ページに移動することはできますので、少なくとも「近く」には移動することができます。この後者の機能は、syn
8288 ctexの外部コールで提供されています(事前に用意されている用例をご覧ください)。
8289 \end_layout
8290
8291 \begin_layout Standard
8292 順検索は、DVI出力とPDF出力の双方で動作します。\SpecialChar LyX
8293 は、過去にあなたが使用したプレビュー形式をチェックして(つまり、一時ディレクトリにどちらの形式が存在するかを
8294 チェックして)、その形式に適切な設定を選択します。
8295 \end_layout
8296
8297 \begin_layout Chapter
8298 特別な文書クラス
8299 \end_layout
8300
8301 \begin_layout Section
8302 A&Aの論文
8303 \end_layout
8304
8305 \begin_layout Standard
8306
8307 \noun on
8308 Peter Sütterlin文
8309 \end_layout
8310
8311 \begin_layout Subsection
8312 はじめに
8313 \end_layout
8314
8315 \begin_layout Standard
8316 この節では、文書クラス
8317 \family typewriter
8318 aa.cls
8319 \family default
8320 第5.01版を使用して科学雑誌
8321 \emph on
8322 Astronomy and Astrophysics
8323 \emph default
8324 (『天文学と宇宙物理学』: 
8325 \begin_inset Flex URL
8326 status collapsed
8327
8328 \begin_layout Plain Layout
8329
8330 http://www.edpsciences.fr/aa/
8331 \end_layout
8332
8333 \end_inset
8334
8335 )に投稿する論文を執筆するための\SpecialChar LyX
8336 の使用法を説明します。このパッケージは、FTPサイト
8337 \begin_inset Separator parbreak
8338 \end_inset
8339
8340
8341 \end_layout
8342
8343 \begin_layout Standard
8344 \align center
8345 \begin_inset VSpace medskip
8346 \end_inset
8347
8348
8349 \begin_inset Flex URL
8350 status collapsed
8351
8352 \begin_layout Plain Layout
8353
8354 ftp://ftp.edpsciences.org/pub/aa/readme.html
8355 \end_layout
8356
8357 \end_inset
8358
8359
8360 \begin_inset VSpace medskip
8361 \end_inset
8362
8363
8364 \end_layout
8365
8366 \begin_layout Standard
8367 \noindent
8368 からダウンロードすることができます。
8369 \end_layout
8370
8371 \begin_layout Standard
8372 このパッケージには取扱説明書がついていますが、本節は、本来の取扱説明書の代わりとなることを意図したものではなく、あなたの論文を正しい様式に整えるための小さな案内
8373 書であるに過ぎません。
8374 \end_layout
8375
8376 \begin_layout Standard
8377 この学術誌の出版元は、2001年1月1日以降、Springer社からEDP Science社に変更されていることにご注意ください。この出版社の変更によって、th
8378 esaurusコマンドの廃止など、スタイルファイルに若干の変更が加わっています。\SpecialChar LyX
8379 のaaクラスは、スタイルファイルの最新版(第5.01版)をサポートしています。もし
8380 古い版が装備されている場合には、更新してください。互換性のために、古い(第4版)レイアウトは、
8381 \family sans
8382 article (A&A V4)
8383 \family default
8384 として残してあります。
8385 \family typewriter
8386 $\SpecialChar LyX
8387 Dir/layouts/aapaper.layout
8388 \family default
8389 のコメントをご参照ください。
8390 \end_layout
8391
8392 \begin_layout Subsection
8393 最初の一歩
8394 \end_layout
8395
8396 \begin_layout Standard
8397 \SpecialChar LyX
8398 とともに頒布されている例示用のひな型を土台として、書き始めることをお勧めします。ひな型を使用しない場合には、以下の設定にしてください。
8399 \end_layout
8400
8401 \begin_layout Itemize
8402
8403 \family sans
8404 文書\SpecialChar menuseparator
8405 設定
8406 \family default
8407 ダイアログで
8408 \family sans
8409 article (A&A)
8410 \family default
8411 を選択してください(まぁ、これは自明ですね)。
8412 \end_layout
8413
8414 \begin_layout Itemize
8415
8416 \family sans
8417 ページレイアウト
8418 \family default
8419 オプションは変更しないで、既定値のままに設定しておいてください。全体のレイアウトはマクロが行うので、何も変更してはいけません。
8420 \end_layout
8421
8422 \begin_layout Subsection
8423 へッダ部
8424 \end_layout
8425
8426 \begin_layout Standard
8427 最初に入力すべきものは、へッダ情報です。ヘッダ情報には、以下の7つの項目があり、いくつかは必須ではありません。
8428 \end_layout
8429
8430 \begin_layout Itemize
8431
8432 \family sans
8433 タイトル
8434 \family default
8435 :[必須]
8436 \end_layout
8437
8438 \begin_layout Itemize
8439
8440 \family sans
8441 サブタイトル
8442 \family default
8443 :[非必須]
8444 \end_layout
8445
8446 \begin_layout Itemize
8447
8448 \family sans
8449 著者
8450 \family default
8451 :[必須]
8452 \end_layout
8453
8454 \begin_layout Itemize
8455
8456 \family sans
8457 住所
8458 \family default
8459 :[必須]
8460 \end_layout
8461
8462 \begin_layout Itemize
8463
8464 \family sans
8465 抜き刷り
8466 \family default
8467 :[非必須]著者が複数いる場合、抜き刷りの送付を依頼するのに連絡すべき人を記す。
8468 \end_layout
8469
8470 \begin_layout Itemize
8471
8472 \family sans
8473 メール
8474 \family default
8475 :[非必須]連絡用の電子メールアドレス。
8476 \end_layout
8477
8478 \begin_layout Itemize
8479
8480 \family sans
8481 日付
8482 \family default
8483 :[必須]推奨されるフォーマットは、
8484 \family typewriter
8485 Received: <日付>; Accepted <日付>
8486 \family default
8487 です。
8488 \end_layout
8489
8490 \begin_layout Standard
8491
8492 \family typewriter
8493
8494 \backslash
8495 maketitle
8496 \family default
8497 コマンドは、へッダが終了した場所に、\SpecialChar LyX
8498 が自動的に入れてくれるので、手動で挿入する必要はありません。各項目の順序は関係ありませんが、見た目のためと、実際の文書のレイ
8499 アウトに合わせるために、上記の順序を維持しておくと良いでしょう。
8500 \end_layout
8501
8502 \begin_layout Standard
8503 現住所の付記などのために、へッダ部に脚注を挿入したい場合には、
8504 \family sans
8505 挿入\SpecialChar menuseparator
8506 脚注
8507 \family default
8508 を使用して標準の脚注を挿入してください。この場合には、\SpecialChar LyX
8509 は自動的に
8510 \family typewriter
8511
8512 \backslash
8513 thanks{}
8514 \family default
8515 を使用します。
8516 \end_layout
8517
8518 \begin_layout Standard
8519 これらのトピックの他に、このマクロは、\SpecialChar LyX
8520 が対応していない、以下の3つの\SpecialChar LaTeX
8521 コマンドを使用します。
8522 \end_layout
8523
8524 \begin_layout Itemize
8525 複数の著者名あるいは所属名を区切るための
8526 \family typewriter
8527
8528 \backslash
8529 and
8530 \end_layout
8531
8532 \begin_layout Itemize
8533 著者と所属の対応付けをするための
8534 \family typewriter
8535
8536 \backslash
8537 inst{<番号>}
8538 \family default
8539 。所属は、
8540 \family sans
8541 住所
8542 \family default
8543 フィールドに現れる順に番号が付けられるので、各著者に番号マーカーを置く必要があります。
8544 \end_layout
8545
8546 \begin_layout Itemize
8547
8548 \family typewriter
8549
8550 \backslash
8551 email{アドレス}
8552 \family default
8553 は、至急連絡用に電子メールアドレスを付記します。
8554 \end_layout
8555
8556 \begin_layout Standard
8557 いずれの場合にも、\SpecialChar LyX
8558 中に対応したコマンドを入力し、\SpecialChar LaTeX
8559 コードとしてマークしてください。
8560 \begin_inset Flex Code
8561 status collapsed
8562
8563 \begin_layout Plain Layout
8564 $\SpecialChar LyX
8565 Dir/examples
8566 \end_layout
8567
8568 \end_inset
8569
8570 にある用例を参照してください。
8571 \end_layout
8572
8573 \begin_layout Subsection
8574 概要
8575 \end_layout
8576
8577 \begin_layout Standard
8578 概要は、へッダ部の直後に置きます。第5版から、概要は環境からコマンドに変更され、一段落に限るという制限が加えられました。さらに、ここにはキーワードを含む項目を入
8579 れなくてはなりません。これは、まだ\SpecialChar LyX
8580 では実装されていないため、\SpecialChar LaTeX
8581 コマンド
8582 \family typewriter
8583
8584 \backslash
8585 keywords{}
8586 \family default
8587 を手動で入力し、\SpecialChar LaTeX
8588 コードとしてマークする必要があります。用例にある論文を参照してください。
8589 \end_layout
8590
8591 \begin_layout Subsection
8592 サポートされる環境
8593 \end_layout
8594
8595 \begin_layout Standard
8596 A&A論文用レイアウトでは、文章を構造化するために、以下の環境がサポートされています。
8597 \end_layout
8598
8599 \begin_layout Itemize
8600
8601 \family sans
8602 標準
8603 \end_layout
8604
8605 \begin_layout Itemize
8606
8607 \family sans
8608
8609 \end_layout
8610
8611 \begin_layout Itemize
8612
8613 \family sans
8614 小節
8615 \end_layout
8616
8617 \begin_layout Itemize
8618
8619 \family sans
8620 小々節
8621 \end_layout
8622
8623 \begin_layout Itemize
8624
8625 \family sans
8626 箇条書き(記号)
8627 \end_layout
8628
8629 \begin_layout Itemize
8630
8631 \family sans
8632 箇条書き(連番)
8633 \end_layout
8634
8635 \begin_layout Itemize
8636
8637 \family sans
8638 箇条書き(記述)
8639 \end_layout
8640
8641 \begin_layout Itemize
8642
8643 \family sans
8644 キャプション
8645 \end_layout
8646
8647 \begin_layout Itemize
8648
8649 \family sans
8650 概要
8651 \end_layout
8652
8653 \begin_layout Itemize
8654
8655 \family sans
8656 謝辞(Acknowledgment)
8657 \end_layout
8658
8659 \begin_layout Itemize
8660
8661 \family sans
8662 書誌情報
8663 \end_layout
8664
8665 \begin_layout Itemize
8666
8667 \family sans
8668 \SpecialChar LaTeX
8669
8670 \end_layout
8671
8672 \begin_layout Subsection
8673 \SpecialChar LyX
8674 でサポートされていないコマンド
8675 \end_layout
8676
8677 \begin_layout Standard
8678 \SpecialChar LyX
8679
8680 \family sans
8681 article (A&A)
8682 \family default
8683 レイアウトでは、まだサポートされていないコマンドがあります。そのうちいくつかは既に紹介しましたが、網羅するために、以下にすべて列挙しておきます。
8684 \end_layout
8685
8686 \begin_layout Itemize
8687
8688 \family typewriter
8689
8690 \backslash
8691 and
8692 \end_layout
8693
8694 \begin_layout Itemize
8695
8696 \family typewriter
8697
8698 \backslash
8699 email
8700 \end_layout
8701
8702 \begin_layout Itemize
8703
8704 \family typewriter
8705
8706 \backslash
8707 appendix
8708 \end_layout
8709
8710 \begin_layout Itemize
8711
8712 \family typewriter
8713
8714 \backslash
8715 authorrunning
8716 \end_layout
8717
8718 \begin_layout Itemize
8719
8720 \family typewriter
8721
8722 \backslash
8723 inst{}
8724 \end_layout
8725
8726 \begin_layout Itemize
8727
8728 \family typewriter
8729
8730 \backslash
8731 keywords{}
8732 \end_layout
8733
8734 \begin_layout Itemize
8735
8736 \family typewriter
8737
8738 \backslash
8739 object{}
8740 \end_layout
8741
8742 \begin_layout Itemize
8743
8744 \family typewriter
8745
8746 \backslash
8747 titlerunning{}
8748 \end_layout
8749
8750 \begin_layout Standard
8751 これらのコマンドのいずれかを使いたい場合には、自分で入力する必要があります。
8752 \series bold
8753 これを\SpecialChar LaTeX
8754 コマンドとしてマークすることを忘れないで下さい。
8755 \end_layout
8756
8757 \begin_layout Subsection
8758 図フロートおよび表フロート
8759 \end_layout
8760
8761 \begin_layout Standard
8762 \SpecialChar LyX
8763 は、必要なフロート環境
8764 \family sans
8765 figure
8766 \family default
8767
8768 \family sans
8769 figure*
8770 \family default
8771
8772 \family sans
8773 table
8774 \family default
8775
8776 \family sans
8777 table*
8778 \family default
8779 をサポートしていますので、ここでは詳しい説明はしません。
8780 \emph on
8781 ユーザーの手引き
8782 \emph default
8783 をご覧ください。ただ、表は左揃えにしなくてはならないことに注意して下さい。そうするためには、表を選択して、
8784 \family sans
8785 編集\SpecialChar menuseparator
8786 段落設定
8787 \family default
8788 で配置を変更してください。
8789 \end_layout
8790
8791 \begin_layout Standard
8792 一つだけ、特別なものがあります。それは、図横にキャプションを配置する図です。この図を作成するには、以下のようにしなくてはなりません。
8793 \end_layout
8794
8795 \begin_layout Enumerate
8796
8797 \family sans
8798 挿入\SpecialChar menuseparator
8799 フロート\SpecialChar menuseparator
8800
8801 \family default
8802 を使って、幅広の図フロートを作成します。それから、図フロートのラベルを右クリックして
8803 \begin_inset Flex MenuItem
8804 status collapsed
8805
8806 \begin_layout Plain Layout
8807 設定\SpecialChar ldots
8808
8809 \end_layout
8810
8811 \end_inset
8812
8813 を選択し、それで開かれる
8814 \family sans
8815 フロートの設定
8816 \family default
8817 ダイアログで
8818 \family sans
8819 段をまたぐ
8820 \family default
8821 を有効にして、
8822 \family sans
8823 OK
8824 \family default
8825 ボタンを押します。
8826 \end_layout
8827
8828 \begin_layout Enumerate
8829 キャプション文を入力します。
8830 \end_layout
8831
8832 \begin_layout Enumerate
8833 キャプションの前にカーソルを移動し、
8834 \family sans
8835 Return
8836 \family default
8837 を押して、カーソルをキャプションの上に移動します。
8838 \end_layout
8839
8840 \begin_layout Enumerate
8841 図を挿入します。
8842 \end_layout
8843
8844 \begin_layout Enumerate
8845 カーソルを図の後ろに置いて、
8846 \family sans
8847 挿入\SpecialChar menuseparator
8848 整形
8849 \bar under
8850 \SpecialChar menuseparator
8851
8852 \bar default
8853 水平方向の空白
8854 \family default
8855 を選択して
8856 \family sans
8857 水平方向の空白の設定
8858 \family default
8859 ダイアログを開き、
8860 \family sans
8861 空白
8862 \family default
8863 ドロップダウンから
8864 \family sans
8865 水平フィル
8866 \family default
8867 を選択して、水平フィルを挿入します。
8868 \end_layout
8869
8870 \begin_layout Enumerate
8871
8872 \family sans
8873 挿入\SpecialChar menuseparator
8874 \SpecialChar TeX
8875 コード
8876 \family default
8877 を選択して、\SpecialChar TeX
8878 差込枠を挿入します。
8879 \end_layout
8880
8881 \begin_layout Enumerate
8882 \SpecialChar TeX
8883 差込枠中に
8884 \family typewriter
8885
8886 \backslash
8887 parbox[b]{55mm}{
8888 \family default
8889 と入力します。
8890 \series bold
8891 ここでは波括弧を閉じないでください。
8892 \end_layout
8893
8894 \begin_layout Enumerate
8895 カーソルをキャプション文の後ろに移動し、
8896 \family sans
8897 挿入\SpecialChar menuseparator
8898 \SpecialChar TeX
8899 コード
8900 \family default
8901 を選択して、別の\SpecialChar TeX
8902 差込枠を挿入し、その中に閉じ括弧を入力します 。
8903 \end_layout
8904
8905 \begin_layout Standard
8906 例示用論文中の図もご参照ください。
8907 \end_layout
8908
8909 \begin_layout Subsection
8910 Refereeレイアウト
8911 \end_layout
8912
8913 \begin_layout Standard
8914 投稿用には、論文を特別なダブルスペースレイアウトに整形しなくてはなりません。このためには、文書クラスに
8915 \family typewriter
8916 referee
8917 \family default
8918 オプションを与える必要があります。これは、
8919 \family sans
8920 文書\SpecialChar menuseparator
8921 設定
8922 \family default
8923 ダイアログの
8924 \family sans
8925 任意設定
8926 \family default
8927 クラスオプションフィールドを使って行うことができます。この欄に
8928 \family typewriter
8929 referee
8930 \family default
8931 と云う文字列を入力してください。
8932 \end_layout
8933
8934 \begin_layout Subsection
8935 例示用論文
8936 \end_layout
8937
8938 \begin_layout Standard
8939
8940 \family sans
8941 Examples
8942 \family default
8943 ディレクトリには、\SpecialChar LyX
8944 で書かれた例示用論文が収録されています。これは、元のマクロパッケージの例示用論文を\SpecialChar LyX
8945 用に直したものです。これはヒントを得るために使用したり、元の
8946  \SpecialChar LaTeX
8947 コードと\SpecialChar LyX
8948 での書き方の比較に使ったりしてください。
8949 \end_layout
8950
8951 \begin_layout Section
8952 AAS\SpecialChar TeX
8953
8954 \end_layout
8955
8956 \begin_layout Standard
8957
8958 \noun on
8959 Mike Ressler
8960 \noun default
8961
8962 \end_layout
8963
8964 \begin_layout Subsection
8965 はじめに
8966 \end_layout
8967
8968 \begin_layout Standard
8969 AAS\SpecialChar TeX
8970 は、American Astronomical Society(アメリカ天文学会)が発行するAstrophysical Journal(宇宙物理学雑誌)同
8971 誌のLettersとSupplementを含む)・Astronomical Journal(天文学雑誌)・Publications of the
8972  Astronomical Society of the Pacific(太平洋天文学会誌)三誌への電子投稿を可能にするために、同学会が作成したマクロ集です。\SpecialChar LyX
8973
8974 、これらの文書を生成する上で、なかでも数式・引用・画像処理能力において、優れたツールであることが認識されています。\SpecialChar LyX
8975 は、同マクロ第5.0版以降を必要としており、でき
8976 ればここで説明されている第5.2版以降が望まれます。第5.0版未満の版は、\SpecialChar LaTeX
8977 2.09で使用するよう企図されているため、根本的に\SpecialChar LyX
8978 とは互換性がありません。AAS\SpecialChar TeX
8979 パッケージは
8980 、以下のAAS\SpecialChar TeX
8981 ウェブサイトからダウンロードできるでしょう。
8982 \begin_inset Separator parbreak
8983 \end_inset
8984
8985
8986 \end_layout
8987
8988 \begin_layout Standard
8989 \align center
8990 \begin_inset VSpace medskip
8991 \end_inset
8992
8993
8994 \begin_inset Flex URL
8995 status collapsed
8996
8997 \begin_layout Plain Layout
8998
8999 https://aas.org/aastex/aastex-downloads
9000 \end_layout
9001
9002 \end_inset
9003
9004
9005 \begin_inset VSpace medskip
9006 \end_inset
9007
9008
9009 \end_layout
9010
9011 \begin_layout Standard
9012 パッケージ中には、完備したユーザーの手引きが収録されていますので、\SpecialChar LyX
9013 で論文を書き始める前に、その中身を完全に理解しておく必要があります。\SpecialChar LyX
9014 は、AASTeXの全コマン
9015 ドを理解する必然性をなくすものではなく、すべてを手入力する苦労を減らすだけです。仕上がりの\SpecialChar LaTeX
9016 文書が、論文を投稿しようとしているジャーナルの要求事項に完全に合致して
9017 いることを確認するのは、あなたの責任です。
9018 \end_layout
9019
9020 \begin_layout Subsection
9021 新しい論文を書き始める
9022 \end_layout
9023
9024 \begin_layout Standard
9025 論文を書き始めるには、AAS\SpecialChar TeX
9026 ひな型ファイルを土台に始めることを強くお勧めします。
9027 \begin_inset Flex MenuItem
9028 status collapsed
9029
9030 \begin_layout Plain Layout
9031 ファイル\SpecialChar menuseparator
9032 新規(ひな型使用)
9033 \end_layout
9034
9035 \end_inset
9036
9037 をクリックして、新しいファイル名を入力し、ひな型
9038 \family typewriter
9039 aastex.lyx
9040 \family default
9041 を選んでください。これには、論文原稿のほとんどに共通して使われるフィールドが書き込まれています。書き込まれている文字列(括弧
9042 \family typewriter
9043 <>
9044 \family default
9045 を含む)を正しい情報で上書きしてください。AAS\SpecialChar TeX
9046 コマンド・AAS\SpecialChar TeX
9047 環境の多くは、\SpecialChar LyX
9048 中で直接実行することができますが、特に
9049 \family typewriter
9050
9051 \backslash
9052 altaffilmark
9053 \family default
9054
9055 \family typewriter
9056
9057 \backslash
9058 altaffiltext
9059 \family default
9060 のようにできないものもあります。この二つのコマンドは、ひな型ファイルを開いたとき、赤色に表示されているのですぐ目に入ることでしょう。このようなコマンドは、直接L
9061 a\SpecialChar TeX
9062 コードを入力して、それを\SpecialChar TeX
9063 コードとしてマークしなければなりません。このようなコマンドは、\SpecialChar TeX
9064 コードあるいはEvil Red Text(邪悪な赤い文)と呼ばれます。A
9065 AS\SpecialChar TeX
9066 文書に必要とされる \SpecialChar TeX
9067 コードを最小にするよう努力はしていますが、まだ望まれるほどにはなっていません。
9068 \end_layout
9069
9070 \begin_layout Subsection
9071 論文を書き終わったら
9072 \end_layout
9073
9074 \begin_layout Standard
9075 論文を満足する水準で書き終え、プレビューや印刷が正しく為されているとしても、まだ学術誌に投稿する前にしなくてはならない「後処理」が残されています。
9076 \end_layout
9077
9078 \begin_layout Enumerate
9079 論文を \SpecialChar LaTeX
9080 ファイルとして書き出します(
9081 \family sans
9082 ファイル\SpecialChar menuseparator
9083 書き出し\SpecialChar menuseparator
9084 LateX
9085 \family default
9086 )。
9087 \end_layout
9088
9089 \begin_layout Enumerate
9090 出力した
9091 \family typewriter
9092 .tex
9093 \family default
9094 ファイルを好きなエディタで編集します。
9095 \begin_inset Separator parbreak
9096 \end_inset
9097
9098
9099 \end_layout
9100
9101 \begin_deeper
9102 \begin_layout Enumerate
9103
9104 \family typewriter
9105
9106 \backslash
9107 documentclass
9108 \family default
9109 コマンドよりも前のコメント行を削除します。
9110 \end_layout
9111
9112 \begin_layout Enumerate
9113
9114 \family typewriter
9115
9116 \backslash
9117 usepackage...{fontenc}
9118 \family default
9119 という行があれば(通常は
9120 \family typewriter
9121
9122 \backslash
9123 documentclass
9124 \family default
9125 の直後にあります)削除します。また、
9126 \family typewriter
9127
9128 \backslash
9129 secnumdepth
9130 \family default
9131 行があれば、これも削除します。
9132 \end_layout
9133
9134 \begin_layout Enumerate
9135 \SpecialChar LaTeX
9136 プリアンブル中に意図的に置いたコマンド(
9137 \family typewriter
9138 .tex
9139 \family default
9140 ファイル中、「User specified \SpecialChar LaTeX
9141  commands」というコメントの直後にあります)を除いて、
9142 \family typewriter
9143
9144 \backslash
9145 makeatletter
9146 \family default
9147
9148 \family typewriter
9149
9150 \backslash
9151 makeatother
9152 \family default
9153 の間のもの(これらのコマンドを含む)をすべて削除します。
9154 \end_layout
9155
9156 \end_deeper
9157 \begin_layout Enumerate
9158 編集後のファイルを \SpecialChar LaTeX
9159 にかけて、正しく処理されることを確認します。
9160 \end_layout
9161
9162 \begin_layout Enumerate
9163 学術誌の要求事項を再読して、ファイル名と書式が正しいことを確認します。
9164 \end_layout
9165
9166 \begin_layout Enumerate
9167 投稿してください。
9168 \end_layout
9169
9170 \begin_layout Subsection
9171 特定のコマンドに関するコメント
9172 \end_layout
9173
9174 \begin_layout Standard
9175 AAS\SpecialChar TeX
9176 ユーザーの手引き(
9177 \family typewriter
9178 aasguide.tex
9179 \family default
9180 )に、各AAS\SpecialChar TeX
9181 コマンドの詳しい説明があるので、ここでは、各コマンドの使用法の詳細な説明は行いません。そこで、ここではユーザーの手引きに現れるとおりに一覧を列挙し
9182 て、必要なところだけコメントを加えることにしましょう。
9183 \end_layout
9184
9185 \begin_layout Subsubsection
9186 期待通りに動作するもの
9187 \end_layout
9188
9189 \begin_layout Standard
9190 これらは期待通りに動作するので、ここでは列挙するだけにして、コマンドの説明されている節を挙げておきます。
9191 \family typewriter
9192
9193 \backslash
9194 documentclass
9195 \family default
9196  (2.1.1)・
9197 \family typewriter
9198
9199 \backslash
9200 begin{document}
9201 \family default
9202  (2.2)・
9203 \family typewriter
9204
9205 \backslash
9206 title
9207 \family default
9208  (2.3)・
9209 \family typewriter
9210
9211 \backslash
9212 author
9213 \family default
9214  (2.3)・
9215 \family typewriter
9216
9217 \backslash
9218 affil
9219 \family default
9220  (2.3)・
9221 \family typewriter
9222
9223 \backslash
9224 abstract
9225 \family default
9226  (2.4)・
9227 \family typewriter
9228
9229 \backslash
9230 keywords
9231 \family default
9232  (2.5)・
9233 \family typewriter
9234
9235 \backslash
9236 section
9237 \family default
9238  (2.7)・
9239 \family typewriter
9240
9241 \backslash
9242 subsection
9243 \family default
9244  (2.7)・
9245 \family typewriter
9246
9247 \backslash
9248 subsubsection
9249 \family default
9250  (2.7)・
9251 \family typewriter
9252
9253 \backslash
9254 paragraph
9255 \family default
9256  (2.7)・
9257 \family typewriter
9258
9259 \backslash
9260 facility
9261 \family default
9262  (2.10)・
9263 \family typewriter
9264
9265 \backslash
9266 begin{displaymath}
9267 \family default
9268  (2.12)・
9269 \family typewriter
9270
9271 \backslash
9272 begin{equation}
9273 \family default
9274  (2.12)・
9275 \family typewriter
9276
9277 \backslash
9278 begin{eqnarray}
9279 \family default
9280  (2.12)・
9281 \family typewriter
9282
9283 \backslash
9284 begin{mathletters}
9285 \family default
9286  (2.12)・
9287 \family typewriter
9288
9289 \backslash
9290 begin{thebibliography}
9291 \family default
9292  (2.13.1)・
9293 \family typewriter
9294
9295 \backslash
9296 bibitem
9297 \family default
9298  (2.13.2)・全引用コマンドとその派生(2.13.2)・一般的なgraphicx図コマンド(2.14.1)・
9299 \family typewriter
9300
9301 \backslash
9302 begin{table}
9303 \family default
9304  (2.15.4)・
9305 \family typewriter
9306
9307 \backslash
9308 begin{tabular}
9309 \family default
9310  (2.15.4)・
9311 \family typewriter
9312
9313 \backslash
9314 caption
9315 \family default
9316  (2.15.4)・
9317 \family typewriter
9318
9319 \backslash
9320 label
9321 \family default
9322  (他にもあるが特に2.15.4)・
9323 \family typewriter
9324
9325 \backslash
9326 tablerefs
9327 \family default
9328  (2.15.5)・
9329 \family typewriter
9330
9331 \backslash
9332 tablecomments
9333 \family default
9334  (2.15.5)・
9335 \family typewriter
9336
9337 \backslash
9338 url
9339 \family default
9340  (2.17.4)・
9341 \family typewriter
9342
9343 \backslash
9344 end{document}
9345 \family default
9346  (2.18)。
9347 \end_layout
9348
9349 \begin_layout Standard
9350 以下のスタイルオプションも正しく動作します。
9351 \family typewriter
9352 longabstract
9353 \family default
9354  (2.4)・
9355 \family typewriter
9356 preprint
9357 \family default
9358  (3.2.1)・
9359 \family typewriter
9360 preprint2
9361 \family default
9362  (3.2.2)・
9363 \family typewriter
9364 eqsecnum
9365 \family default
9366  (3.3)・
9367 \family typewriter
9368 flushrt
9369 \family default
9370  (3.4)。これらは、
9371 \begin_inset Flex MenuItem
9372 status collapsed
9373
9374 \begin_layout Plain Layout
9375 文書\SpecialChar menuseparator
9376 設定
9377 \end_layout
9378
9379 \end_inset
9380
9381 にある、
9382 \family sans
9383 クラスオプション
9384 \family default
9385
9386 \family sans
9387 任意設定
9388 \family default
9389 ボックスに入力してください。
9390 \end_layout
9391
9392 \begin_layout Subsubsection
9393 動作するが、若干説明が必要なもの
9394 \end_layout
9395
9396 \begin_layout Standard
9397 以下のコマンドは動作しますが、若干の説明が必要です。
9398 \end_layout
9399
9400 \begin_layout Itemize
9401 以下の項目は、学術誌の編集者向けに取ってあるものですが、どうしても必要ならば、\SpecialChar LaTeX
9402 プリアンブルに入れることができます。
9403 \family typewriter
9404
9405 \backslash
9406 received
9407 \family default
9408
9409 \family typewriter
9410
9411 \backslash
9412 revised
9413 \family default
9414
9415 \family typewriter
9416
9417 \backslash
9418 accepted
9419 \family default
9420
9421 \family typewriter
9422
9423 \backslash
9424 ccc
9425 \family default
9426
9427 \family typewriter
9428 cpright
9429 \family default
9430 (すべて 2.1.3)。
9431 \end_layout
9432
9433 \begin_layout Itemize
9434 以下の項目は、\SpecialChar LaTeX
9435 のプリアンブルに置くことができるもので、これらは、ひな型ファイルには、空の引数と共に含まれています。
9436 \family typewriter
9437
9438 \backslash
9439 slugcomment
9440 \family default
9441 (2.1.4)・
9442 \family typewriter
9443
9444 \backslash
9445 shorttitle
9446 \family default
9447 (2.1.5)・
9448 \family typewriter
9449
9450 \backslash
9451 shortauthors
9452 \family default
9453 (2.1.5)。
9454 \end_layout
9455
9456 \begin_layout Itemize
9457
9458 \family typewriter
9459
9460 \backslash
9461 email
9462 \family default
9463 (2.3)―「単独で」使うことはできますが、段落の途中で使うことはできません。埋め込む必要がある場合には、\SpecialChar TeX
9464 コードを使用してください。
9465 \end_layout
9466
9467 \begin_layout Itemize
9468
9469 \family typewriter
9470
9471 \backslash
9472 and
9473 \family default
9474 (2.3)―後ろに{}が付記されます。これはエラーの原因にはなりません。
9475 \end_layout
9476
9477 \begin_layout Itemize
9478
9479 \family typewriter
9480
9481 \backslash
9482 notetoeditor
9483 \family default
9484 (2.6)―「単独で」使うことはできますが、段落の途中で使うことはできません。埋め込む必要がある場合には、\SpecialChar TeX
9485 コードを使用してください。
9486 \end_layout
9487
9488 \begin_layout Itemize
9489
9490 \family typewriter
9491
9492 \backslash
9493 placetable
9494 \family default
9495 (2.8)―相互参照用タグを挿入することはできません。手動でタグ名を入力する必要があります。
9496 \end_layout
9497
9498 \begin_layout Itemize
9499
9500 \family typewriter
9501
9502 \backslash
9503 placefigure
9504 \family default
9505 (2.8)—
9506 \family typewriter
9507
9508 \backslash
9509 placetable
9510 \family default
9511 と同様。
9512 \end_layout
9513
9514 \begin_layout Itemize
9515
9516 \family typewriter
9517
9518 \backslash
9519 acknowledgements
9520 \family default
9521 (2.9)―後ろに{}が付記されます。これはエラーの原因にはなりません。
9522 \end_layout
9523
9524 \begin_layout Itemize
9525
9526 \family typewriter
9527
9528 \backslash
9529 appendix
9530 \family default
9531 (2.11)―後ろに{}が付記されます。これはエラーの原因にはなりません。
9532 \end_layout
9533
9534 \begin_layout Itemize
9535
9536 \family typewriter
9537
9538 \backslash
9539 figcaption
9540 \family default
9541 (2.14.2)―文章のはじめにカーソルを置いて
9542 \begin_inset Flex MenuItem
9543 status collapsed
9544
9545 \begin_layout Plain Layout
9546 挿入\SpecialChar menuseparator
9547 短縮タイトル
9548 \end_layout
9549
9550 \end_inset
9551
9552 を選択すれば、非必須のファイル名引数を挿入することができます。「短縮タイトル」とありますが、
9553 \family typewriter
9554
9555 \backslash
9556 figcaption
9557 \family default
9558 が必要とする型の非必須引数を挿入します。望むらくはいつの日か改名されることでしょう。
9559 \end_layout
9560
9561 \begin_layout Itemize
9562
9563 \family typewriter
9564
9565 \backslash
9566 objectname
9567 \family default
9568 (2.17.1)―非必須パラメータとしてカタログIDを取る以外は、
9569 \family typewriter
9570
9571 \backslash
9572 figcaption
9573 \family default
9574 と同様。
9575 \end_layout
9576
9577 \begin_layout Itemize
9578
9579 \family typewriter
9580
9581 \backslash
9582 dataset
9583 \family default
9584 (2.17.1)―非必須パラメータとしてカタログIDを取る以外は、
9585 \family typewriter
9586
9587 \backslash
9588 figcaption
9589 \family default
9590 と同様。
9591 \end_layout
9592
9593 \begin_layout Subsubsection
9594 実装されていないため、\SpecialChar TeX
9595 コードを使用するもの
9596 \end_layout
9597
9598 \begin_layout Standard
9599
9600 \family typewriter
9601
9602 \backslash
9603 altaffilmark
9604 \family default
9605 (2.3)・
9606 \family typewriter
9607
9608 \backslash
9609 altaffiltext
9610 \family default
9611 (2.3)・
9612 \family typewriter
9613
9614 \backslash
9615 eqnum
9616 \family default
9617 (2.12)・
9618 \family typewriter
9619
9620 \backslash
9621 setcounter{equation}
9622 \family default
9623 (2.12)・学術誌名略語(2.12.4)・
9624 \family typewriter
9625
9626 \backslash
9627 figurenum
9628 \family default
9629 (2.14.1)・
9630 \family typewriter
9631
9632 \backslash
9633 epsscale
9634 \family default
9635 (2.14.1)・
9636 \family typewriter
9637
9638 \backslash
9639 plotone
9640 \family default
9641 (2.14.1)・
9642 \family typewriter
9643
9644 \backslash
9645 plottwo
9646 \family default
9647 (2.14.1)・
9648 \family typewriter
9649
9650 \backslash
9651 tablenum
9652 \family default
9653 (2.15.4)・
9654 \family typewriter
9655
9656 \backslash
9657 tableline
9658 \family default
9659 (2.15.4:入れたい場所の後ろに、左側セルの最初の要素として挿入する。表中では、\SpecialChar LyX
9660 の方法は使わないでください)・
9661 \family typewriter
9662
9663 \backslash
9664 tablenotemark
9665 \family default
9666 (2.15.5)・
9667 \family typewriter
9668
9669 \backslash
9670 tablenotetext
9671 \family default
9672 (2.15.5)・補遺(2.17)の大半(
9673 \family typewriter
9674
9675 \backslash
9676 objectname
9677 \family default
9678
9679 \family typewriter
9680
9681 \backslash
9682 dataset
9683 \family default
9684
9685 \family typewriter
9686
9687 \backslash
9688 url
9689 \family default
9690
9691 \family typewriter
9692
9693 \backslash
9694 email
9695 \family default
9696 を除く。上記参照)・
9697 \family typewriter
9698
9699 \backslash
9700 singlespace
9701 \family default
9702 (3.1)・
9703 \family typewriter
9704
9705 \backslash
9706 doublespace
9707 \family default
9708 (3.1)・
9709 \family typewriter
9710
9711 \backslash
9712 onecolumn
9713 \family default
9714 (3.2)・
9715 \family typewriter
9716
9717 \backslash
9718 twocolumn
9719 \family default
9720 (3.2)
9721 \end_layout
9722
9723 \begin_layout Subsubsection
9724 実装できないもの
9725 \end_layout
9726
9727 \begin_layout Standard
9728 references(2.12.3)環境とdeluxetable(2.14)環境は、少なくとも意味のあるような形で実装することができないので、無視してください。もし、
9729 絶対に、どうしても、deluxetableを使う必要があるならば、テキストエディタで別ファイルとして編集し、
9730 \begin_inset Flex MenuItem
9731 status collapsed
9732
9733 \begin_layout Plain Layout
9734 挿入\SpecialChar menuseparator
9735 ファイル
9736 \begin_inset Formula $\text{\textipa{}}$
9737 \end_inset
9738
9739 \SpecialChar menuseparator
9740 子文書
9741 \end_layout
9742
9743 \end_inset
9744
9745 を使用して、\SpecialChar LyX
9746 ファイルに読み込むことを推奨します。この実例は、
9747 \family typewriter
9748 aas_sample.lyx
9749 \family default
9750 ファイルをご参照ください。
9751 \end_layout
9752
9753 \begin_layout Subsection
9754 FAQとヒントと技とその他の考察
9755 \end_layout
9756
9757 \begin_layout Subsubsection
9758 \SpecialChar LyX
9759 をAAS\SpecialChar TeX
9760 と協調させる
9761 \end_layout
9762
9763 \begin_layout Standard
9764 \SpecialChar LyX
9765 に、新しいレイアウトと文書クラスを認識させるには若干コツが要ります。もしうまく行かなかったら、次のようにしてみてください。
9766 \end_layout
9767
9768 \begin_layout Enumerate
9769 \SpecialChar LaTeX
9770 が、AAS\SpecialChar TeX
9771 を検出できることを確認してください。AAS\SpecialChar TeX
9772 頒布版に含まれる
9773 \family typewriter
9774 sample.tex
9775 \family default
9776 (あるいは
9777 \family typewriter
9778 table.tex
9779 \family default
9780 でも可)を、\SpecialChar LaTeX
9781 やAAS\SpecialChar TeX
9782 とまったく関係のないディレクトリにコピーして、
9783 \family typewriter
9784 sample.tex
9785 \family default
9786 を\SpecialChar LaTeX
9787 にかけてください。
9788 \end_layout
9789
9790 \begin_layout Enumerate
9791
9792 \family typewriter
9793 aastex.layout
9794 \family default
9795 が、\SpecialChar LyX
9796
9797 \family typewriter
9798 layouts
9799 \family default
9800 フォルダにあることを確認してください。
9801 \end_layout
9802
9803 \begin_layout Enumerate
9804 \SpecialChar LyX
9805 中から
9806 \family sans
9807 ツール\SpecialChar menuseparator
9808 環境構成
9809 \family default
9810 を再度実行し、\SpecialChar LyX
9811 を再起動してください。
9812 \end_layout
9813
9814 \begin_layout Enumerate
9815 ひな型ではなく、通常の新規ファイルを開いてください。AAS\SpecialChar TeX
9816 が、
9817 \family sans
9818 文書\SpecialChar menuseparator
9819 設定
9820 \family default
9821 のクラス一覧に表示されていますか?
9822 \end_layout
9823
9824 \begin_layout Standard
9825 既存のAAS\SpecialChar TeX
9826 文書を処理する際に、AAS\SpecialChar TeX
9827 レイアウトを見つけられないとか、「タイトルレイアウトと通常のレイアウトを混在させないでください」といった警告が出るようであ
9828 れば、正しい導入が行われていません。
9829 \end_layout
9830
9831 \begin_layout Subsubsection
9832 表を処理する際の\SpecialChar LaTeX
9833 エラー
9834 \end_layout
9835
9836 \begin_layout Standard
9837 既定では、\SpecialChar LyX
9838 は、表のキャプションやタイトルを中央揃えにしようと試みます。これはAAS\SpecialChar TeX
9839 と悪い相互干渉を発生させるようですので、キャプションやタイトルのどこかをクリッ
9840 クして、
9841 \family sans
9842 編集\SpecialChar menuseparator
9843 段落設定
9844 \family default
9845 を選択し、
9846 \family sans
9847 配置
9848 \family default
9849
9850 \family sans
9851 両端揃え
9852 \family default
9853 に設定してください。私のところではこれで解決しました。
9854 \end_layout
9855
9856 \begin_layout Subsubsection
9857 書誌情報
9858 \end_layout
9859
9860 \begin_layout Standard
9861 若干の注意があります。(1)文献項目の本文中の空白取りが少しおかしくなることがあるようです。書誌情報を入力する際には、最後の著者と、著作年を入れる括弧の間にスペ
9862 ースを
9863 \emph on
9864 入れない
9865 \emph default
9866 ようにしてください。たとえば、
9867 \family typewriter
9868 Ressler(1992)
9869 \family default
9870 はいいですが、
9871 \family typewriter
9872 Ressler (1992)
9873 \family default
9874 ではだめです。(2)書誌情報の入力の仕方は、必ずしも自明ではありません。もっとも簡単な方法は、文書の最後に、最初の書誌情報をまず書き込み、それを
9875 \family sans
9876 書誌情報
9877 \family default
9878 環境としてマークすることです。すると、入力したものの前に、小さな灰色のボックスが現れます。このボックスをクリックして、残りの情報を入力してください。新しい書誌情
9879 報を追加するには、既存の書誌情報の後ろでリターンを押します。すると、新しいボックスの付いた新規行が出てくるので、後は同様にしてください。
9880 \end_layout
9881
9882 \begin_layout Subsubsection
9883 EPSファイルの読み込み
9884 \end_layout
9885
9886 \begin_layout Standard
9887 AAS\SpecialChar TeX
9888 には、自前の図関連コマンド(たとえば
9889 \family typewriter
9890
9891 \backslash
9892 plotone
9893 \family default
9894 )がありますが、私は(既定のgraphicxを使った)\SpecialChar LaTeX
9895 の標準図コマンドの方がずっと好きです。望めば、図フロートボックスに、\SpecialChar TeX
9896 コードで
9897 \family typewriter
9898
9899 \backslash
9900 plotone
9901 \family default
9902 等のコマンドを挿入することはできますが、私には正しいレイアウトを得ることができた試しがありません。標準の画像コマンドを使えば、\SpecialChar LyX
9903 は、
9904 \family typewriter
9905
9906 \backslash
9907 usepackage{graphics}
9908 \family default
9909 コマンドを\SpecialChar LaTeX
9910 プリアンブルに挿入し、図を\SpecialChar LaTeX2e
9911 の標準的な方法で取り扱って、文章の中にちりばめます。現在、ApJは、ちょうどこのようにして作成した図を受け入れていますが、A
9912 Jはまだ「すべてを末尾に積み上げる」方法を使用しているかもしれません。
9913 \end_layout
9914
9915 \begin_layout Subsubsection
9916 可能だったが、実装しなかったもの
9917 \end_layout
9918
9919 \begin_layout Standard
9920 「素敵な」ものの中には、実装することも可能だったけれども、あえて実装しなかったものがあります。たとえば、紙の原稿ではダブルスペースであったとしても、\SpecialChar LyX
9921 ウィンドウ中
9922 で、文章をダブルスペースにする意味はないと考えました。また、preprint様式とpreprint2様式を、独立したレイアウトにすることもしませんでした。いずれ
9923 にしても、執筆時間のほとんどを、平の原稿モードで使うのがほとんどですから、これらの機能でディスクスペースを消費しないことにしました。
9924 \end_layout
9925
9926 \begin_layout Subsection
9927 最後に
9928 \end_layout
9929
9930 \begin_layout Standard
9931 これまでに進んできた道のりは、長い人も短い人もいることでしょう。私には、ApJとAJに発表した論文がありますが、その努力の98
9932 \begin_inset space \thinspace{}
9933 \end_inset
9934
9935 %は\SpecialChar LyX
9936 上で為されました。残りの2
9937 \begin_inset space \thinspace{}
9938 \end_inset
9939
9940 %が、\SpecialChar LaTeX
9941 での後処理と若干の後片付けです。投稿の過程では何のトラブルもなく、これらの学術誌が通常の投稿原稿と違う点に気づくことはなかったでしょう。ですから、がんばっ
9942 て発表してください!
9943 \end_layout
9944
9945 \begin_layout Section
9946 AMS \SpecialChar LaTeX
9947
9948 \end_layout
9949
9950 \begin_layout Standard
9951
9952 \noun on
9953 David Johnson
9954 \noun default
9955 文 
9956 \noun on
9957 Richard Heck
9958 \noun default
9959 改訂
9960 \begin_inset VSpace bigskip
9961 \end_inset
9962
9963
9964 \end_layout
9965
9966 \begin_layout Standard
9967 AMS \SpecialChar LaTeX
9968 レイアウトは、American Mathematical Society(アメリカ数学会)の刊行物に投稿する数学論文用のスタイルです。レイアウトは、特定
9969 の学術誌向けに仕立てられてはいませんが、簡単にそうすることができます。各学術誌毎の指示については、AMSの説明書をご参照ください(通常は、\SpecialChar TeX
9970 出力中の一行を変更する
9971 必要があるだけです)。AMSの説明書は、ウェブWeb上の
9972 \begin_inset Flex URL
9973 status open
9974
9975 \begin_layout Plain Layout
9976
9977 http://www.ams.org
9978 \end_layout
9979
9980 \end_inset
9981
9982 か、FTPで
9983 \begin_inset Flex URL
9984 status open
9985
9986 \begin_layout Plain Layout
9987
9988 ftp://ftp.ams.org/pub/tex/amslatex/
9989 \end_layout
9990
9991 \end_inset
9992
9993 から入手することができます。これらのレイアウトは、数学的な文章を書くのであれば、どんなときでも適切かつ有用であるはずです。
9994 \end_layout
9995
9996 \begin_layout Standard
9997 基本となるAMS \SpecialChar LaTeX
9998 レイアウトには、以下の二つがあります。
9999 \end_layout
10000
10001 \begin_layout Itemize
10002 amsart:標準のAMS article書式。
10003 \end_layout
10004
10005 \begin_layout Itemize
10006 amsbook:標準のAMS book(実際はモノグラフ)書式。
10007 \end_layout
10008
10009 \begin_layout Standard
10010 これらのレイアウトには、それ自身では、AMSクラスを使用するのに必要最低限のものしか含まれていません。特に、定理や補題などを設定するのに使用される「theore
10011 m」環境は、何一つ含まれていません。これらは、代わりに
10012 \begin_inset Flex Code
10013 status collapsed
10014
10015 \begin_layout Plain Layout
10016 定理(AMS)
10017 \end_layout
10018
10019 \end_inset
10020
10021 モジュールに収録されており、AMSクラスのいずれかを選択すると、このモジュールが既定で読み込まれるようになっています(これは別のクラスでも使用することができ、別
10022 のものに変えたいときは取り除くこともできます)。少し使用頻度の低いものとしては、
10023 \begin_inset Flex Code
10024 status collapsed
10025
10026 \begin_layout Plain Layout
10027 定理(AMS拡張)
10028 \end_layout
10029
10030 \end_inset
10031
10032 モジュールがあり、これは手動で読み込む必要があります。
10033 \end_layout
10034
10035 \begin_layout Standard
10036 既定では、定理類は、文書を通して連番が振られますが、これは
10037 \begin_inset Flex Code
10038 status collapsed
10039
10040 \begin_layout Plain Layout
10041 定理(節毎連番)
10042 \end_layout
10043
10044 \end_inset
10045
10046 モジュールを読み込めば変更することができ、
10047 \begin_inset Flex Code
10048 status collapsed
10049
10050 \begin_layout Plain Layout
10051 book (AMS)
10052 \end_layout
10053
10054 \end_inset
10055
10056 を使用している場合には
10057 \begin_inset Flex Code
10058 status collapsed
10059
10060 \begin_layout Plain Layout
10061 定理(章毎連番)
10062 \end_layout
10063
10064 \end_inset
10065
10066 を用いても変更することができます。これらを用いると、出力は
10067 \begin_inset Formula $n.m$
10068 \end_inset
10069
10070 のようになり、最初の数字は節番号(または章番号)、次の数字はそれまで同節内(章内)に現れた出力の全数を表します。大半の環境は、連番なしでも用いることができます。
10071 連番なしのものは、環境名の後ろにアスタリスクを付けたもので表されます。連番なしの出力
10072 \emph on
10073 のみ
10074 \emph default
10075 が欲しい場合には、
10076 \begin_inset Flex Code
10077 status collapsed
10078
10079 \begin_layout Plain Layout
10080 定理(連番なし)
10081 \end_layout
10082
10083 \end_inset
10084
10085 モジュールを用います。
10086 \end_layout
10087
10088 \begin_layout Standard
10089 これらのモジュールは、AMSクラスで使用する
10090 \emph on
10091 必要はない
10092 \emph default
10093 ことに注意してください。
10094 \begin_inset Flex Code
10095 status collapsed
10096
10097 \begin_layout Plain Layout
10098 定理(AMS)
10099 \end_layout
10100
10101 \end_inset
10102
10103 モジュールや上述の他のモジュールは、他のクラス、たとえば
10104 \begin_inset Flex Code
10105 status collapsed
10106
10107 \begin_layout Plain Layout
10108 article
10109 \end_layout
10110
10111 \end_inset
10112
10113
10114 \begin_inset Flex Code
10115 status collapsed
10116
10117 \begin_layout Plain Layout
10118 report
10119 \end_layout
10120
10121 \end_inset
10122
10123
10124 \begin_inset Flex Code
10125 status collapsed
10126
10127 \begin_layout Plain Layout
10128 book (KOMA-script)
10129 \end_layout
10130
10131 \end_inset
10132
10133 などで問題なく使用することができます。
10134 \end_layout
10135
10136 \begin_layout Subsection
10137 これらのレイアウトが提供するもの
10138 \end_layout
10139
10140 \begin_layout Standard
10141 これらのレイアウトが提供している環境を列挙すると、長い一覧となります。AMS-\SpecialChar LaTeX
10142 では、実のところ、「theorem」環境の派生型を際限なく定義していくことが可能で
10143 す。しかし、AMSは、\SpecialChar LyX
10144 で利用可能になっている環境のみを使用することを推奨しています。
10145 \end_layout
10146
10147 \begin_layout Standard
10148 \begin_inset Flex Code
10149 status collapsed
10150
10151 \begin_layout Plain Layout
10152 article (AMS)
10153 \end_layout
10154
10155 \end_inset
10156
10157
10158 \begin_inset Flex Code
10159 status collapsed
10160
10161 \begin_layout Plain Layout
10162 book (AMS)
10163 \end_layout
10164
10165 \end_inset
10166
10167 には、——
10168 \begin_inset space ~
10169 \end_inset
10170
10171
10172 \begin_inset Flex Noun
10173 status collapsed
10174
10175 \begin_layout Plain Layout
10176
10177 \end_layout
10178
10179 \end_inset
10180
10181
10182 \begin_inset Flex Noun
10183 status collapsed
10184
10185 \begin_layout Plain Layout
10186 書誌情報
10187 \end_layout
10188
10189 \end_inset
10190
10191
10192 \begin_inset Flex Noun
10193 status collapsed
10194
10195 \begin_layout Plain Layout
10196 タイトル
10197 \end_layout
10198
10199 \end_inset
10200
10201
10202 \begin_inset Flex Noun
10203 status collapsed
10204
10205 \begin_layout Plain Layout
10206 著者
10207 \end_layout
10208
10209 \end_inset
10210
10211
10212 \begin_inset Flex Noun
10213 status collapsed
10214
10215 \begin_layout Plain Layout
10216 日付
10217 \end_layout
10218
10219 \end_inset
10220
10221 のような標準環境の他に
10222 \begin_inset space ~
10223 \end_inset
10224
10225 ——
10226 \begin_inset space ~
10227 \end_inset
10228
10229 以下の環境があります。
10230 \end_layout
10231
10232 \begin_layout Description
10233 住所 これは著者の恒久的な住所です。
10234 \end_layout
10235
10236 \begin_layout Description
10237 現在の住所 住所と別に指定されているときには、著者の投稿時の仮初めの住所です。
10238 \end_layout
10239
10240 \begin_layout Description
10241 電子メール 著者の電子メールアドレス
10242 \end_layout
10243
10244 \begin_layout Description
10245 URL 著者のウェブアドレス。任意。
10246 \end_layout
10247
10248 \begin_layout Description
10249 キーワード 論文中で論じられているトピックを識別するためのキーワードやキーフレーズ。
10250 \end_layout
10251
10252 \begin_layout Description
10253 分野分類 
10254 \emph on
10255 Mathematical Reviews
10256 \emph default
10257 に説明が公表されているAMS Subject Classificationsの分類番号を指します。上述したAMSのウェブサイトでも、オンラインで見ることができま
10258 す。
10259 \end_layout
10260
10261 \begin_layout Description
10262 謝辞
10263 \end_layout
10264
10265 \begin_layout Description
10266 献呈
10267 \end_layout
10268
10269 \begin_layout Description
10270 翻訳者
10271 \end_layout
10272
10273 \begin_layout Standard
10274 以下の環境は、
10275 \begin_inset Flex Code
10276 status collapsed
10277
10278 \begin_layout Plain Layout
10279 定理
10280 \end_layout
10281
10282 \end_inset
10283
10284 モジュールと
10285 \begin_inset Flex Code
10286 status collapsed
10287
10288 \begin_layout Plain Layout
10289 定理(AMS)
10290 \end_layout
10291
10292 \end_inset
10293
10294 モジュールの両方で提供され、後者の場合には、星付き(連番なし)版と星なし(連番)版の両方が提供されます。
10295 \begin_inset Flex Code
10296 status collapsed
10297
10298 \begin_layout Plain Layout
10299 定理(連番なし)
10300 \end_layout
10301
10302 \end_inset
10303
10304 モジュールでは、同環境の星付き版だけが提供されます。
10305 \end_layout
10306
10307 \begin_layout Theorem
10308 これは、通常、得られた主要な結果を叙述するのに使用されます。
10309 \end_layout
10310
10311 \begin_layout Corollary*
10312 これは直前の叙述から比較的直接に導き出せる結果を叙述するのに使います。これも主要な結果であることがあります。
10313 \end_layout
10314
10315 \begin_layout Lemma
10316 他の叙述を証明するために必要とされる、比較的小さな結果です。
10317 \end_layout
10318
10319 \begin_layout Proposition
10320 議論されている一般的な理論に(希望的には)何かを付け加えるような、主要ではない結果です。
10321 \end_layout
10322
10323 \begin_layout Conjecture
10324 正当化を与えずに述べられた叙述で、著者には証明法がわからないけれども、正しいと(少なくとも著者にとっては)思われるものです。
10325 \end_layout
10326
10327 \begin_layout Definition*
10328 これは自明でしょう。この環境のフォントは、前述の環境とは異なるフォントが使用されます。
10329 \end_layout
10330
10331 \begin_layout Problem
10332 これが何を指すかは必ずしも特定されていません。ご自分で解明してください。
10333 \end_layout
10334
10335 \begin_layout Exercise*
10336 この環境の説明を記述せよ。
10337 \end_layout
10338
10339 \begin_layout Note
10340 この環境もtheorem型、通常は重要性の低い所見に用いられます。
10341 \end_layout
10342
10343 \begin_layout Claim*
10344 より大きな結果の証明を与える途中で、しばしば用いられます。
10345 \end_layout
10346
10347 \begin_layout Case
10348 一般的に、これらはある条件の特定の場合を取り上げて、長い議論を区切るのに用いられます。
10349 \end_layout
10350
10351 \begin_layout Case
10352 ケースの連番の枠組みは、それ自身で独立していて、他の連番の叙述とは区別されます。
10353 \end_layout
10354
10355 \begin_layout Proof
10356 この環境の最後には、証了記号(通常は四角ですがスタイルによって変わります)が置かれます。この環境の中に別の環境を入れたい——たとえばケース環境など——場合で、証
10357 了記号は証明環境の終わりにのみ現れるようにしたい場合には、他の環境は証明環境の中に入れ子にしなくてはなりません。入れ子に関する情報については、
10358 \emph on
10359 ユーザーの手引き
10360 \emph default
10361
10362 \emph on
10363 環境を入れ子にする
10364 \emph default
10365 の節をご覧ください。
10366 \end_layout
10367
10368 \begin_layout Standard
10369 そして、以下は
10370 \begin_inset Flex Code
10371 status collapsed
10372
10373 \begin_layout Plain Layout
10374 定理(AMS拡張)
10375 \end_layout
10376
10377 \end_inset
10378
10379 で提供されるものです。
10380 \end_layout
10381
10382 \begin_layout Criterion*
10383 必要とされる条件です。
10384 \end_layout
10385
10386 \begin_layout Algorithm*
10387 使用する一般的手順です。
10388 \end_layout
10389
10390 \begin_layout Axiom*
10391 議論されている系内部で真と仮定される性質や命題です。
10392 \end_layout
10393
10394 \begin_layout Condition*
10395 議論の現在の文脈で仮定されている条件を述べるのに、よく用いられます。
10396 \end_layout
10397
10398 \begin_layout Note*
10399 注記と同様です。
10400 \end_layout
10401
10402 \begin_layout Notation*
10403 表記法の説明に用いられます。
10404 \end_layout
10405
10406 \begin_layout Summary
10407 本当に説明する必要がありますか?
10408 \end_layout
10409
10410 \begin_layout Acknowledgement*
10411 謝辞(acknowledgement)です。
10412 \end_layout
10413
10414 \begin_layout Conclusion*
10415 長い議論の終わりに時々用いられます。
10416 \end_layout
10417
10418 \begin_layout Fact
10419 命題と同様の用いられ方をしますが、だいたい長くないものに使われるようです。
10420 \end_layout
10421
10422 \begin_layout Standard
10423 さらに、AMSクラスは、AMS \SpecialChar LaTeX
10424 パッケージとAMSフォントパッケージを自動的に提供します。これらの環境を使用するためには、お使いのシステム上で利用可能となってい
10425 る必要があります。
10426 \end_layout
10427
10428 \begin_layout Section
10429 AGU各誌(
10430 \family sans
10431 aguplus)
10432 \end_layout
10433
10434 \begin_layout Standard
10435
10436 \noun on
10437 Martin Vermeer
10438 \noun default
10439
10440 \end_layout
10441
10442 \begin_layout Subsection
10443 概要
10444 \end_layout
10445
10446 \begin_layout Standard
10447 これはAmerican Geophysical Society(アメリカ地球物理学会) の各学術誌向けのレイアウトファイルです。AGU発行のクラスファイルおよび
10448 AGUplusの両方(これらは
10449 \begin_inset Flex URL
10450 status collapsed
10451
10452 \begin_layout Plain Layout
10453
10454 http://publications.agu.org/files/2013/08/AGU-LaTeX.zip
10455 \end_layout
10456
10457 \end_inset
10458
10459 にあります)が導入されていることが必要です。
10460 \end_layout
10461
10462 \begin_layout Subsection
10463 新しいスタイル
10464 \end_layout
10465
10466 \begin_layout Standard
10467
10468 \family sans
10469 段落
10470 \family default
10471 および
10472 \family sans
10473 段落*
10474 \family default
10475 は、定義し直されています。\SpecialChar LyX
10476 の画面では、依然として
10477 \family sans
10478 段落
10479 \family default
10480
10481 \family sans
10482 段落*
10483 \family default
10484 と表示されますが、AGUクラスにおける\SpecialChar LaTeX
10485 の対応物は、
10486 \family sans
10487 Subsubsubsection
10488 \family default
10489
10490 \family sans
10491 Subsubsubsection*
10492 \family default
10493 です。
10494 \end_layout
10495
10496 \begin_layout Standard
10497 新しく定義されたスタイルには、
10498 \family sans
10499 左ヘッダ
10500 \family default
10501
10502 \family sans
10503 右ヘッダ
10504 \family default
10505
10506 \family sans
10507 受理日
10508 \family default
10509
10510 \family sans
10511 改訂
10512 \family default
10513
10514 \family sans
10515 採択日
10516 \family default
10517
10518 \family sans
10519 CCC
10520 \family default
10521
10522 \family sans
10523 論文ID
10524 \family default
10525
10526 \family sans
10527 著者住所
10528 \family default
10529
10530 \family sans
10531 廃棄用コメント
10532 \family default
10533 があります。これらは、ほとんど草稿用属性で、AGUクラス説明書で説明されています。
10534 \end_layout
10535
10536 \begin_layout Standard
10537 おそらく、これはまだ恐ろしく不完全です。
10538 \end_layout
10539
10540 \begin_layout Subsection
10541 新しいフロート
10542 \end_layout
10543
10544 \begin_layout Standard
10545
10546 \family sans
10547 平面表(Planotable
10548 \family default
10549 )と
10550 \family sans
10551 挿絵
10552 \family default
10553 (Plate)が新しいフロートです。また、
10554 \family sans
10555 表キャプション
10556 \family default
10557 も付け加えられています。
10558 \end_layout
10559
10560 \begin_layout Subsection
10561 サポートされている学術誌
10562 \end_layout
10563
10564 \begin_layout Itemize
10565
10566 \emph on
10567 Journal of Geophysical Research
10568 \emph default
10569
10570 \family typewriter
10571 jgrga.layout
10572 \family default
10573  — Martin Vermeer
10574 \end_layout
10575
10576 \begin_layout Standard
10577 ここにあなたの作ったものを加えてください。難しくはありません。
10578 \family typewriter
10579 jgrga.layout
10580 \family default
10581 と 
10582 \family typewriter
10583 aguplus.inc
10584 \family default
10585 を用例として見てください。
10586 \end_layout
10587
10588 \begin_layout Subsection
10589 バグと注意すべきこと
10590 \end_layout
10591
10592 \begin_layout Standard
10593 新しいレイアウトを使うためには、新規文書の作成時に以下の手順を行う必要があります。
10594 \end_layout
10595
10596 \begin_layout Enumerate
10597
10598 \emph on
10599 babelを無効にしてください。
10600 \emph default
10601 これは、
10602 \family sans
10603 ツール\SpecialChar menuseparator
10604 設定
10605 \family default
10606 メニュー項目で行うことができます(AGUの論文は常に英語ですよね。ですから他の言語は
10607 \emph on
10608 選ばないで下さい
10609 \emph default
10610 )。
10611 \end_layout
10612
10613 \begin_layout Enumerate
10614 使用文書の追加オプションフィールドに
10615 \family typewriter
10616 jgrga
10617 \family default
10618 と入力してください(すみません、これはバグです)。
10619 \end_layout
10620
10621 \begin_layout Enumerate
10622 Bib\SpecialChar TeX
10623 差込枠の2番目のフィールドに
10624 \family sans
10625 agu
10626 \family default
10627 と入力して、書誌情報のスタイルに
10628 \family typewriter
10629 agu.bst
10630 \family default
10631 を使用していることを確認してください。標準スタイルはうまく動作しません。
10632 \end_layout
10633
10634 \begin_layout Section
10635 Broadway
10636 \end_layout
10637
10638 \begin_layout Standard
10639
10640 \noun on
10641 Garst Reese
10642 \noun default
10643
10644 \end_layout
10645
10646 \begin_layout Subsection
10647 はじめに
10648 \end_layout
10649
10650 \begin_layout Standard
10651 Broadwayは演劇を書くためのものです。書式はHollywoodよりも装飾的で、それほど標準化されていません。この書式はワークショップに向いているでしょう。
10652 \end_layout
10653
10654 \begin_layout Subsection
10655 特別な問題
10656 \end_layout
10657
10658 \begin_layout Standard
10659 Hollywoodと同様です。
10660 \end_layout
10661
10662 \begin_layout Subsection
10663 特別の機能
10664 \end_layout
10665
10666 \begin_layout Standard
10667
10668 \family sans
10669 話者
10670 \family default
10671 の名前をラベルとして挿入し、名前を挿入する際には、このラベルを相互参照してください。相互参照ダイアログには、登場人物の現在の配役が表示されます。
10672 \end_layout
10673
10674 \begin_layout Subsection
10675 用紙寸法と余白
10676 \end_layout
10677
10678 \begin_layout Standard
10679 USレター寸法で、余白は左1.6インチ、右0.75インチ、上0.5インチ、下0.75インチです。
10680 \end_layout
10681
10682 \begin_layout Subsection
10683 環境
10684 \end_layout
10685
10686 \begin_layout Standard
10687 以下の環境を使うことができます。右に記してある
10688 \begin_inset Flex Ruby
10689 status collapsed
10690
10691 \begin_layout Plain Layout
10692
10693 \begin_inset Argument post:1
10694 status collapsed
10695
10696 \begin_layout Plain Layout
10697 キー
10698 \end_layout
10699
10700 \end_inset
10701
10702
10703 \end_layout
10704
10705 \end_inset
10706
10707 割当ては、broadway.bindを使った場合のものです。
10708 \end_layout
10709
10710 \begin_layout Itemize
10711
10712 \family sans
10713 標準
10714 \begin_inset Newline newline
10715 \end_inset
10716
10717
10718 \family default
10719 これは使わなくていいはずですが、他の環境が当てはまらない場合のためにここに挙げておきます。
10720 \end_layout
10721
10722 \begin_layout Itemize
10723
10724 \family sans
10725 ト書き
10726 \begin_inset space \hfill{}
10727 \end_inset
10728
10729 M-z n
10730 \begin_inset Newline newline
10731 \end_inset
10732
10733
10734 \family default
10735 舞台設定と動作の説明に用います。最初に話者名をすべて大文字で書いておきます。
10736 \end_layout
10737
10738 \begin_layout Itemize
10739
10740 \family sans
10741
10742 \begin_inset space \hfill{}
10743 \end_inset
10744
10745 M-z a
10746 \begin_inset Newline newline
10747 \end_inset
10748
10749
10750 \family default
10751 自動的に連番が振られます。連番は、画面上ではアラビア数字ですが、出力ではローマ数字です。
10752 \end_layout
10753
10754 \begin_layout Itemize
10755
10756 \family sans
10757 幕*
10758 \begin_inset space \hfill{}
10759 \end_inset
10760
10761 M-z S at
10762 \begin_inset Newline newline
10763 \end_inset
10764
10765
10766 \family default
10767 幕の副題です。単に中央揃えの文になります。
10768 \end_layout
10769
10770 \begin_layout Itemize
10771
10772 \family sans
10773 場面
10774 \begin_inset space \hfill{}
10775 \end_inset
10776
10777 M-z S-S
10778 \begin_inset Newline newline
10779 \end_inset
10780
10781
10782 \family default
10783 自動的に連番は振られませんので、手動で番号を付けてください。これは私がどうすればいいか分からなかったためです。
10784 \end_layout
10785
10786 \begin_layout Itemize
10787
10788 \family sans
10789 幕開きに:
10790 \begin_inset space \hfill{}
10791 \end_inset
10792
10793 M-z S-R
10794 \begin_inset Newline newline
10795 \end_inset
10796
10797
10798 \family default
10799 ト書きの特殊な場合で、カーテンが上がるときの舞台設定と動作を説明します。
10800 \end_layout
10801
10802 \begin_layout Itemize
10803
10804 \family sans
10805 話者
10806 \begin_inset space \hfill{}
10807 \end_inset
10808
10809 M-z s
10810 \begin_inset Newline newline
10811 \end_inset
10812
10813
10814 \family default
10815 話者(役者)の配役です。すべて大文字で中央揃えに置かれます。
10816 \end_layout
10817
10818 \begin_layout Itemize
10819
10820 \family sans
10821 括弧付き
10822 \begin_inset space \hfill{}
10823 \end_inset
10824
10825 M-z p
10826 \begin_inset Newline newline
10827 \end_inset
10828
10829
10830 \family default
10831 話者への指示です。括弧は自動的に挿入されます。画面上には左括弧(のみが表示されますが、印字出力には両方の括弧が表示されます。この環境は、
10832 \family sans
10833 対話
10834 \family default
10835 の中だけで使用されます。 
10836 \end_layout
10837
10838 \begin_layout Itemize
10839
10840 \family sans
10841 対話
10842 \begin_inset space \hfill{}
10843 \end_inset
10844
10845 M-z d
10846 \begin_inset Newline newline
10847 \end_inset
10848
10849
10850 \family default
10851 話者の言う内容。
10852 \end_layout
10853
10854 \begin_layout Itemize
10855
10856 \family sans
10857 幕切れ
10858 \begin_inset space \hfill{}
10859 \end_inset
10860
10861 M-z S-C
10862 \begin_inset Newline newline
10863 \end_inset
10864
10865
10866 \family default
10867 幕が降ります。
10868 \end_layout
10869
10870 \begin_layout Itemize
10871
10872 \family sans
10873 タイトル
10874 \begin_inset space \hfill{}
10875 \end_inset
10876
10877 M-z S-T
10878 \end_layout
10879
10880 \begin_layout Itemize
10881
10882 \family sans
10883 著者
10884 \begin_inset space \hfill{}
10885 \end_inset
10886
10887 M-z S-A
10888 \end_layout
10889
10890 \begin_layout Itemize
10891
10892 \family sans
10893 右寄せ住所
10894 \begin_inset space \hfill{}
10895 \end_inset
10896
10897 M-z r
10898 \end_layout
10899
10900 \begin_layout Section
10901 Dinbrief
10902 \end_layout
10903
10904 \begin_layout Standard
10905 文書クラス
10906 \family sans
10907 dinbrief
10908 \family default
10909 は、ドイツの慣習に則った書簡の組版を行うのに用いられます。ひな型ファイルが
10910 \family typewriter
10911 .../lyx/share/templates
10912 \family default
10913 にあるので、それを土台として使用してください。
10914 \end_layout
10915
10916 \begin_layout Section
10917 EGS各誌
10918 \family sans
10919 (egs)
10920 \end_layout
10921
10922 \begin_layout Standard
10923
10924 \noun on
10925 Martin Vermeer
10926 \noun default
10927
10928 \end_layout
10929
10930 \begin_layout Subsection
10931 概要
10932 \end_layout
10933
10934 \begin_layout Standard
10935 これはEuropean Geophysical Society(欧州地球物理学会)の学術誌向けのレイアウトファイルです。必要とされる
10936 \family typewriter
10937 egs.cls
10938 \family default
10939 は、EGSのウェブサイト
10940 \begin_inset Flex URL
10941 status collapsed
10942
10943 \begin_layout Plain Layout
10944
10945 http://www.copernicus.org/
10946 \end_layout
10947
10948 \end_inset
10949
10950 からダウンロードできます。
10951 \end_layout
10952
10953 \begin_layout Subsection
10954 新しいスタイル
10955 \end_layout
10956
10957 \begin_layout Standard
10958 新しいスタイルとして、
10959 \family sans
10960 右寄せ住所
10961 \family default
10962
10963 \family sans
10964 \SpecialChar LaTeX
10965 タイトル
10966 \family default
10967
10968 \family sans
10969 所属
10970 \family default
10971
10972 \family sans
10973 学術誌名
10974 \family default
10975
10976 \family sans
10977 原稿番号
10978 \family default
10979
10980 \family sans
10981 筆頭著者
10982 \family default
10983
10984 \family sans
10985 受理日
10986 \family default
10987
10988 \family sans
10989 採択日
10990 \family default
10991
10992 \family sans
10993 オフセット
10994 \family default
10995 があります。現在のレイアウトファイルは、残念ながらほとんどモジュール化されておらず、さまざまな
10996 \family typewriter
10997 std*.inc
10998 \family default
10999 ファイルを読み込む形に変えた方が便利になると思われます。
11000 \end_layout
11001
11002 \begin_layout Section
11003 Elsevier各誌
11004 \end_layout
11005
11006 \begin_layout Standard
11007 \SpecialChar LyX
11008 ひな型ファイルの
11009 \family typewriter
11010 elsarticle.lyx
11011 \family default
11012 を参照してください。必要な情報は全てそこにあります。
11013 \end_layout
11014
11015 \begin_layout Section
11016 Foils (別名Foil\SpecialChar TeX
11017 )
11018 \begin_inset CommandInset label
11019 LatexCommand label
11020 name "sec:foiltex"
11021
11022 \end_inset
11023
11024
11025 \end_layout
11026
11027 \begin_layout Standard
11028
11029 \noun on
11030 Allan Rae
11031 \noun default
11032
11033 \end_layout
11034
11035 \begin_layout Subsection
11036 はじめに
11037 \end_layout
11038
11039 \begin_layout Standard
11040 本節では、プレゼンテーション用のスライドを作るための、\SpecialChar LyX
11041 の使用法を解説します。スライドを作ることのできる文書クラスには、slides・Foil\SpecialChar TeX
11042 ・seminar・b
11043 eamer・powerdotといったクラスがありますが、本節では、そのうちslidesの解説を行います。
11044 \end_layout
11045
11046 \begin_layout Standard
11047 誤解のないように、わかりやすく明確に、もう一度言っておきます。
11048 \end_layout
11049
11050 \begin_layout Standard
11051 \begin_inset VSpace bigskip
11052 \end_inset
11053
11054
11055 \end_layout
11056
11057 \begin_layout Standard
11058 \align center
11059
11060 \size large
11061 本節は「
11062 \family sans
11063 presentation (FoilT
11064 \size default
11065
11066 \begin_inset ERT
11067 status collapsed
11068
11069 \begin_layout Plain Layout
11070
11071 {}
11072 \end_layout
11073
11074 \end_inset
11075
11076
11077 \size large
11078 eX)
11079 \family default
11080 」クラス
11081 \emph on
11082 のみの
11083 \emph default
11084 解説を行います。
11085 \end_layout
11086
11087 \begin_layout Standard
11088 \begin_inset VSpace bigskip
11089 \end_inset
11090
11091
11092 \end_layout
11093
11094 \begin_layout Standard
11095
11096 \family sans
11097 transparencies (slides)
11098 \family default
11099 」の解説をお探しであれば、第
11100 \begin_inset CommandInset ref
11101 LatexCommand ref
11102 reference "sec:slitex"
11103
11104 \end_inset
11105
11106 節をご覧ください。お使いのコンピュータに
11107 \family sans
11108 foils
11109 \family default
11110 クラス(
11111 \family sans
11112 presentation (FoilT
11113 \begin_inset ERT
11114 status collapsed
11115
11116 \begin_layout Plain Layout
11117
11118 {}
11119 \end_layout
11120
11121 \end_inset
11122
11123 eX)
11124 \family default
11125 )が導入されていなければ、
11126 \family sans
11127 foils
11128 \family default
11129 ほど良くはありませんが、おそらく
11130 \family sans
11131 slides
11132 \family default
11133 クラスを使わざるをえないでしょう。
11134 \end_layout
11135
11136 \begin_layout Standard
11137
11138 \family sans
11139 foils
11140 \family default
11141 クラスは、\SpecialChar LaTeX2e
11142 の一部として含まれている\SpecialChar LaTeX
11143 クラスファイル
11144 \family sans
11145 foils.cls
11146 \family default
11147 の第2.1版とともに使われるように設計されています。
11148 \end_layout
11149
11150 \begin_layout Subsection
11151 最初の一歩
11152 \end_layout
11153
11154 \begin_layout Standard
11155 いうまでもなく、この文書クラスを使うには、
11156 \family sans
11157 文書\SpecialChar menuseparator
11158 設定\SpecialChar menuseparator
11159 文書クラス
11160 \family default
11161 メニューの
11162 \family sans
11163 文書クラス
11164 \family default
11165 ドロップダウンで「
11166 \family sans
11167 presentation (FoilT
11168 \begin_inset ERT
11169 status collapsed
11170
11171 \begin_layout Plain Layout
11172
11173 {}
11174 \end_layout
11175
11176 \end_inset
11177
11178 eX)
11179 \family default
11180 」を選択する必要があります。また、
11181 \family sans
11182 文書設定
11183 \family default
11184 ダイアログ中には、以下のように、このクラスに特有の設定がいくつかあることを知っておかなくてはなりません。
11185 \end_layout
11186
11187 \begin_layout Itemize
11188
11189 \family sans
11190 文書設定
11191 \family default
11192 ダイアログ中の、
11193 \family sans
11194 両面文書
11195 \family default
11196 オプションと
11197 \family sans
11198 二段組文書
11199 \family default
11200 オプションは変更しないでください。これらは 
11201 \family sans
11202 foils
11203 \family default
11204 クラスでは無視されます。
11205 \end_layout
11206
11207 \begin_layout Itemize
11208 既定のフォント寸法は20ptであり、17pt・25pt・30ptを選択することも可能です。
11209 \end_layout
11210
11211 \begin_layout Itemize
11212 既定のフォントは
11213 \family sans
11214 sans
11215 \family default
11216  
11217 \family sans
11218 serif
11219 \family default
11220 ですが、数式ではすべて、通常のローマン体が使用されます。
11221 \end_layout
11222
11223 \begin_layout Itemize
11224 Foil\SpecialChar TeX
11225 は、35
11226 \begin_inset space \thinspace{}
11227 \end_inset
11228
11229 mmスライド用の特殊寸法の他、A4とレター大の用紙寸法をサポートします。A5・B5・リーガル・エグゼクティブ大の用紙寸法はサポートしていません。
11230 \end_layout
11231
11232 \begin_layout Itemize
11233
11234 \family sans
11235 フロートの配置
11236 \family default
11237 の設定は無視されますので、わざわざ変更する必要はありません。フロートはすべて、本文中で定義された位置に表示されます。
11238 \end_layout
11239
11240 \begin_layout Itemize
11241 このクラスの
11242 \family sans
11243 ページレイアウト
11244 \family default
11245 の設定は、若干異なった挙動を示します。Foil\SpecialChar TeX
11246 では、ユーザ定義のロゴをはじめ、フッタとへッダに広範な設定ができます。詳細については第
11247 \begin_inset CommandInset ref
11248 LatexCommand ref
11249 reference "sec:foilfoot"
11250
11251 \end_inset
11252
11253 節をご覧ください。タイトルページは、文書中の他のページとは異なった取扱がなされ、ページ番号は
11254 \emph on
11255 つねに
11256 \emph default
11257 付けられず、(ロゴが定義されていれば)ロゴは、
11258 \emph on
11259 つねに
11260 \emph default
11261 ページ下部中央に表示されます。使用できるページ様式とその挙動は、以下の通りです。
11262 \begin_inset Separator parbreak
11263 \end_inset
11264
11265
11266 \end_layout
11267
11268 \begin_deeper
11269 \begin_layout Labeling
11270 \labelwidthstring MMMMMMM
11271
11272 \family sans
11273 \series bold
11274 empty
11275 \family default
11276 \series default
11277  最終出力には、ページ番号をはじめ、へッダ・フッタが出力されません(もちろん脚注は除きます)。
11278 \end_layout
11279
11280 \begin_layout Labeling
11281 \labelwidthstring MMMMMMM
11282
11283 \family sans
11284 \series bold
11285 plain
11286 \family default
11287 \series default
11288  最終出力には、ページ番号がページ下部の中央に出力されますが、他のへッダ・フッタは出力されません(脚注除く)。
11289 \end_layout
11290
11291 \begin_layout Labeling
11292 \labelwidthstring MMMMMMM
11293
11294 \series bold
11295 foilheadings
11296 \series default
11297  ページ番号が右下隅に出力されます。追記したへッダ・フッタも出力されます。これが既定値です。
11298 \end_layout
11299
11300 \begin_layout Labeling
11301 \labelwidthstring MMMMMMM
11302
11303 \series bold
11304 fancy
11305 \series default
11306  これは
11307 \family sans
11308 fancyheadings
11309 \family default
11310 パッケージを使えるようにします。ただし、Foil\SpecialChar TeX
11311 パッケージの作者は、ページレイアウトが崩れる可能性があるので、これを使用することは勧めないと言及しています。
11312 \end_layout
11313
11314 \end_deeper
11315 \begin_layout Subsubsection
11316 任意設定クラスオプション
11317 \end_layout
11318
11319 \begin_layout Standard
11320 以下のオプションは
11321 \family sans
11322 文書設定
11323 \family default
11324 ダイアログの任意設定クラスオプションボックスで使うことができます。
11325 \end_layout
11326
11327 \begin_layout Labeling
11328 \labelwidthstring MMMMMMx
11329
11330 \series bold
11331 35mmSlide
11332 \series default
11333  これは、ページレイアウトを縦7.33インチ横11インチに設定します。これは35
11334 \begin_inset space \space{}
11335 \end_inset
11336
11337 mmスライドの縦横比にほぼ等しく、このメディアを作る作業が若干易しくなります。
11338 \end_layout
11339
11340 \begin_layout Labeling
11341 \labelwidthstring MMMMMMx
11342
11343 \series bold
11344 headrule
11345 \series default
11346  タイトルページを除くすべてのページのへッダの下に罫線を入れます。
11347 \end_layout
11348
11349 \begin_layout Labeling
11350 \labelwidthstring MMMMMMx
11351
11352 \series bold
11353 footrule
11354 \series default
11355  タイトルページを除くすべてのページのフッタの上に罫線を入れます。
11356 \end_layout
11357
11358 \begin_layout Labeling
11359 \labelwidthstring MMMMMMx
11360
11361 \series bold
11362 dvips
11363 \series default
11364  これは、新規
11365 \family sans
11366 foils
11367 \family default
11368 文書を作成する度に自動的に設定されます。このオプションは、横向きに設定されたページを回転させるのに、dvipsドライバを使うようFoil\SpecialChar TeX
11369 に指示します。
11370 \end_layout
11371
11372 \begin_layout Labeling
11373 \labelwidthstring MMMMMMx
11374
11375 \series bold
11376 landscape
11377 \series default
11378  このオプションは、用紙寸法を横向きページ大に変更するだけで、回転は行いません。したがって、このオプションを使う場合は、各ページを回転させる外部プログラムを使用
11379 する、プリンタに用紙を横向きに給紙する必要があります。また、このオプションは、
11380 \family sans
11381 Foilhead
11382 \family default
11383 環境と
11384 \family sans
11385 Rotatefoilhead
11386 \family default
11387 環境の役割を逆転させることに注意してください(これらの環境については次節で説明します)。
11388 \end_layout
11389
11390 \begin_layout Labeling
11391 \labelwidthstring MMMMMMx
11392
11393 \series bold
11394 leqno
11395 \series default
11396  数式番号を左側に付けます。
11397 \end_layout
11398
11399 \begin_layout Labeling
11400 \labelwidthstring MMMMMMx
11401
11402 \series bold
11403 fleqn
11404 \series default
11405  数式を左揃えにします。
11406 \end_layout
11407
11408 \begin_layout Subsection
11409 サポートされる環境
11410 \end_layout
11411
11412 \begin_layout Standard
11413 他のクラスで標準的にサポートされている環境は、
11414 \family sans
11415 foils
11416 \family default
11417 クラスでもサポートされています。それ以外に、Foil\SpecialChar TeX
11418 が提供している環境と、\SpecialChar LyX
11419 が付け加えた環境があります。以下の環境は、他のクラスと共通の環境です。
11420 \end_layout
11421
11422 \begin_layout Standard
11423
11424 \family sans
11425 \begin_inset Flex Multiple Columns
11426 status open
11427
11428 \begin_layout Itemize
11429
11430 \family sans
11431 標準
11432 \end_layout
11433
11434 \begin_layout Itemize
11435
11436 \family sans
11437 箇条書き(記号)
11438 \end_layout
11439
11440 \begin_layout Itemize
11441
11442 \family sans
11443 箇条書き(連番)
11444 \end_layout
11445
11446 \begin_layout Itemize
11447
11448 \family sans
11449 箇条書き(記述)
11450 \end_layout
11451
11452 \begin_layout Itemize
11453
11454 \family sans
11455 箇条書き(リスト)
11456 \end_layout
11457
11458 \begin_layout Itemize
11459
11460 \family sans
11461 \SpecialChar LyX
11462 コード
11463 \end_layout
11464
11465 \begin_layout Itemize
11466
11467 \family sans
11468 詩句
11469 \end_layout
11470
11471 \begin_layout Itemize
11472
11473 \family sans
11474 引用(字下げあり)
11475 \end_layout
11476
11477 \begin_layout Itemize
11478
11479 \family sans
11480 引用(字下げなし)
11481 \end_layout
11482
11483 \begin_layout Itemize
11484
11485 \family sans
11486 タイトル
11487 \end_layout
11488
11489 \begin_layout Itemize
11490
11491 \family sans
11492 著者
11493 \end_layout
11494
11495 \begin_layout Itemize
11496
11497 \family sans
11498 日付
11499 \end_layout
11500
11501 \begin_layout Itemize
11502
11503 \family sans
11504 概要
11505 \end_layout
11506
11507 \begin_layout Itemize
11508
11509 \family sans
11510 書誌情報
11511 \end_layout
11512
11513 \begin_layout Itemize
11514
11515 \family sans
11516 住所
11517 \end_layout
11518
11519 \begin_layout Itemize
11520
11521 \family sans
11522 右寄せ住所
11523 \end_layout
11524
11525 \begin_layout Itemize
11526
11527 \family sans
11528 キャプション
11529 \end_layout
11530
11531 \begin_layout Itemize
11532
11533 \family sans
11534 コメント
11535 \end_layout
11536
11537 \end_inset
11538
11539
11540 \end_layout
11541
11542 \begin_layout Standard
11543 つまり、節区切りを除けば、主な環境のすべてです。一枚のスライドは、基本的にタイトルと本文を備えた自己完結した節なので、
11544 \family sans
11545 Foil
11546 \family default
11547 \SpecialChar TeX
11548 は新しいスライドを始める以下のようなコマンドを備えています。
11549 \end_layout
11550
11551 \begin_layout Itemize
11552
11553 \family sans
11554 スライドタイトル(Foilhead)
11555 \end_layout
11556
11557 \begin_layout Itemize
11558
11559 \family sans
11560 横置きスライドタイトル(Rotatefoilhead)
11561 \end_layout
11562
11563 \begin_layout Standard
11564 \SpecialChar LyX
11565 は、以下のような、これらを若干修正した環境も用意しています。
11566 \end_layout
11567
11568 \begin_layout Itemize
11569
11570 \family sans
11571 スライドタイトル(小)(ShortFoilhead)
11572 \end_layout
11573
11574 \begin_layout Itemize
11575
11576 \family sans
11577 横置きスライドタイトル(小)(ShortRotatefoilhead)
11578 \end_layout
11579
11580 \begin_layout Standard
11581 これらの違いは次節で説明します。
11582 \end_layout
11583
11584 \begin_layout Standard
11585 スライドは、アイデアを説明したり、新しい定理を説明したりするのにしばしば使われるので、
11586 \family sans
11587 Foil
11588 \family default
11589 \SpecialChar TeX
11590 はそれらを説明するのに便利な環境を幅広く用意しています。
11591 \end_layout
11592
11593 \begin_layout Standard
11594
11595 \family sans
11596 \begin_inset Flex Multiple Columns
11597 status open
11598
11599 \begin_layout Itemize
11600
11601 \family sans
11602 定理
11603 \end_layout
11604
11605 \begin_layout Itemize
11606
11607 \family sans
11608 補題
11609 \end_layout
11610
11611 \begin_layout Itemize
11612
11613 \family sans
11614
11615 \end_layout
11616
11617 \begin_layout Itemize
11618
11619 \family sans
11620 命題
11621 \end_layout
11622
11623 \begin_layout Itemize
11624
11625 \family sans
11626 定義
11627 \end_layout
11628
11629 \begin_layout Itemize
11630
11631 \family sans
11632 証明
11633 \end_layout
11634
11635 \begin_layout Itemize
11636
11637 \family sans
11638 定理*
11639 \end_layout
11640
11641 \begin_layout Itemize
11642
11643 \family sans
11644 補題*
11645 \end_layout
11646
11647 \begin_layout Itemize
11648
11649 \family sans
11650 系*
11651 \end_layout
11652
11653 \begin_layout Itemize
11654
11655 \family sans
11656 命題*
11657 \end_layout
11658
11659 \begin_layout Itemize
11660
11661 \family sans
11662 定義*
11663 \end_layout
11664
11665 \end_inset
11666
11667
11668 \end_layout
11669
11670 \begin_layout Standard
11671 星付き版は連番が振られず、星なし版は連番が振られます。他に、\SpecialChar LyX
11672 で追加された以下の2つの箇条書き環境があります。
11673 \end_layout
11674
11675 \begin_layout Itemize
11676
11677 \family sans
11678 箇条書き(チック)
11679 \end_layout
11680
11681 \begin_layout Itemize
11682
11683 \family sans
11684 箇条書き(クロス)
11685 \end_layout
11686
11687 \begin_layout Standard
11688 Foil\SpecialChar TeX
11689 には、強力なヘッダ機能とフッタ機能があり、これらはプリアンブルで設定するのが最良ですが、文章中のどこでも設定することができます。もし文書中でこれらの設定
11690 を変更したい場合には、スライドの一番上、foilheadの直後で行うのが良いでしょう。
11691 \end_layout
11692
11693 \begin_layout Standard
11694 この目的のためには、以下のコマンドスタイルがあります(
11695 \shape smallcaps
11696 Martin Vermeer)。
11697 \end_layout
11698
11699 \begin_layout Standard
11700 \begin_inset Flex Multiple Columns
11701 status open
11702
11703 \begin_layout Itemize
11704
11705 \family sans
11706 グラフィックスロゴ
11707 \end_layout
11708
11709 \begin_layout Itemize
11710
11711 \family sans
11712 配布制限
11713 \end_layout
11714
11715 \begin_layout Itemize
11716
11717 \family sans
11718 右フッタ
11719 \end_layout
11720
11721 \begin_layout Itemize
11722
11723 \family sans
11724 右ヘッダ
11725 \end_layout
11726
11727 \begin_layout Itemize
11728
11729 \family sans
11730 左ヘッダ
11731 \family default
11732
11733 \begin_inset Separator parbreak
11734 \end_inset
11735
11736
11737 \end_layout
11738
11739 \begin_deeper
11740 \begin_layout Plain Layout
11741 \begin_inset space ~
11742 \end_inset
11743
11744
11745 \end_layout
11746
11747 \end_deeper
11748 \end_inset
11749
11750
11751 \end_layout
11752
11753 \begin_layout Standard
11754 Foil\SpecialChar TeX
11755 が提供しているコマンドで、\SpecialChar LyX
11756 が直接サポートしていないコマンドもありますが、これらの説明と使い方については、第
11757 \begin_inset CommandInset ref
11758 LatexCommand ref
11759 reference "sec:unsuppfoils"
11760
11761 \end_inset
11762
11763 節で行います。
11764 \end_layout
11765
11766 \begin_layout Subsection
11767 スライドの組を作る
11768 \end_layout
11769
11770 \begin_layout Standard
11771 この節は、様々な環境を使ってスライドの組を作る方法を簡単に紹介します。スライド組の例をご覧になりたい場合は、\SpecialChar LyX
11772
11773 \family typewriter
11774 examples
11775 \family default
11776 フォルダにある
11777 \family typewriter
11778 Foils.lyx
11779 \family default
11780 ファイルをご覧ください。
11781 \end_layout
11782
11783 \begin_layout Subsubsection
11784 タイトルページを作る
11785 \end_layout
11786
11787 \begin_layout Standard
11788
11789 \family sans
11790 タイトル
11791 \family default
11792
11793 \family sans
11794 著者
11795 \family default
11796
11797 \family sans
11798 日付
11799 \family default
11800
11801 \family sans
11802 概要
11803 \family default
11804 環境のある他のクラスとは異なり、
11805 \family sans
11806 foils
11807 \family default
11808 は独立したページにタイトルを作成します。
11809 \family sans
11810 日付
11811 \family default
11812 環境を使用しなかった場合には、\SpecialChar LaTeX
11813 は(出力を生成し直したときにはいつも)その時点の日付を挿入します。
11814 \end_layout
11815
11816 \begin_layout Subsubsection
11817 新しいスライドを開始する
11818 \end_layout
11819
11820 \begin_layout Standard
11821 前述のように、新しいスライドを開始するには、4つの方法があります。縦向きのスライドを開始するには、
11822 \family sans
11823 スライドタイトル(Foilhead)
11824 \family default
11825
11826 \family sans
11827 スライドタイトル(小)(ShortFoilhead)
11828 \family default
11829 を使用します。両環境の違いは、スライドタイトル(foilhead)とスライド本文の間の余白の違いです。
11830 \end_layout
11831
11832 \begin_layout Standard
11833 横向きのスライドは、
11834 \family sans
11835 横向きスライドタイトル(Rotatefoilhead)
11836 \family default
11837 か横向きスライドタイトル(小)(
11838 \family sans
11839 ShortRotatefoilhead)
11840 \family default
11841 環境を使用して生成します。ここでも両環境の違いは、タイトルと本文の間の余白のみです。どちらの場合も、(小)と記された版は、タイトルと本文の間の余白が、0.5インチ
11842 (約1.27cm)小さくなります。
11843 \end_layout
11844
11845 \begin_layout Standard
11846 横向きのスライドをサポートする際、一つ問題となるのは、スライドを回転させようと思うと、PostScript出力を生成するのに
11847 \family typewriter
11848 dvips
11849 \family default
11850 ドライバを使用することを要求してしまうことです。もしスライドをプリンタに横に給紙することができれば、
11851 \family typewriter
11852 dvips
11853 \family default
11854 ドライバを持っていなくても、横向きのスライドをつくることができます ;-)
11855 \end_layout
11856
11857 \begin_layout Subsubsection
11858 定理・補題・証明など
11859 \end_layout
11860
11861 \begin_layout Standard
11862 \SpecialChar LyX
11863 中の小さなバグによって、これらの環境の同じ型をお互いに直接続けて置くことはできません。これらは何かによって分離されなくてはなりません。仮に二つ続けて置いても、2
11864 つの環境をマージしたかのように、前の環境が延長されるだけです。この問題を回避するにはどうすればよいのでしょうか。最も簡単な方法は、二つの環境の間に何か文章を置く
11865 か、あるいは二つの間に「
11866 \family typewriter
11867 %
11868 \family default
11869 」だけから成る\SpecialChar LaTeX
11870 環境を置くことです。これによって、\SpecialChar LyX
11871 は2つの別々の環境を生成するように強制され、正しい\SpecialChar LaTeX
11872 出力を得ることができます。\SpecialChar LyX
11873 頒布版に含まれる用例ファイルに例があ
11874 ります。この問題は、二つの同じ定理型環境を立て続けに置こうとした場合にのみ発生することに注意してください。
11875 \end_layout
11876
11877 \begin_layout Subsubsection
11878 箇条書き
11879 \end_layout
11880
11881 \begin_layout Standard
11882 他のクラスでも共通にサポートされている箇条書き様式すべてに加えて、二つの新しい様式を使用することができます。ここでは、その新しい様式のみを説明することにします。
11883 他の箇条書き環境について詳しく知りたい場合には、
11884 \emph on
11885 ユーザーの手引き
11886 \emph default
11887 をご覧ください。記号による箇条書きを使用したい場合には、上記第
11888 \begin_inset CommandInset ref
11889 LatexCommand ref
11890 reference "sec:ブリット"
11891
11892 \end_inset
11893
11894 節の
11895 \family sans
11896 箇条書き(記号)ブリットの指定
11897 \family default
11898 の節も、読まれることが望ましいでしょう。
11899 \end_layout
11900
11901 \begin_layout Standard
11902
11903 \family sans
11904 箇条書き(チック)
11905 \family default
11906
11907 \family sans
11908 箇条書き(クロス)
11909 \family default
11910 の二つの新しい様式は、チェック印や
11911 \begin_inset Formula $\times$
11912 \end_inset
11913
11914 印を箇条書きのラベルに使用する専用の環境を提供することで、予定一覧や正誤一覧を作りやすくするように設計されたものです。これらの箇条書きは、
11915 \family sans
11916 箇条書き(記号)
11917 \family default
11918 の派生型を専用に用意したものに過ぎません。ただし、これらは、
11919 \family typewriter
11920 psnfss
11921 \family default
11922 パッケージが導入済であることを要求します。
11923 \end_layout
11924
11925 \begin_layout Subsubsection
11926 図と表
11927 \end_layout
11928
11929 \begin_layout Standard
11930 Foil\SpecialChar TeX
11931 では、図表フロートは、本文中の挿入箇所にこれらが正確に表示されるように再定義されており、ページの上部やユーザー指定場所に押しのけたりはしないようになって
11932 います。たとえフロート配置の設定に変更を加えたとしても、単に無視されます。
11933 \end_layout
11934
11935 \begin_layout Subsubsection
11936 ページヘッダおよびページフッタ
11937 \begin_inset CommandInset label
11938 LatexCommand label
11939 name "sec:foilfoot"
11940
11941 \end_inset
11942
11943
11944 \end_layout
11945
11946 \begin_layout Standard
11947
11948 \family sans
11949 グラフィックスロゴ
11950 \family default
11951
11952 \family sans
11953 配布制限
11954 \family default
11955 の二つは、左フッタ文を制御するものです。前者は、グラフィックスのロゴをスライドに入れるためのもので、既定値は「-Typeset by 
11956 \family sans
11957 Foil
11958 \family default
11959 \SpecialChar TeX
11960 -」となっています。後者は、「機密事項」などのように、聴衆に秘密区分を提示することを意図しています。既定値では、何も設定されていません。
11961 \end_layout
11962
11963 \begin_layout Standard
11964 スライドの残り三隅には、
11965 \family sans
11966 右フッタ
11967 \family default
11968 (既定ではページ番号)・
11969 \family sans
11970 右ヘッダ
11971 \family default
11972 (右上)・
11973 \family sans
11974 左ヘッダ
11975 \family default
11976 (左上)を使って文字を入れることができます。
11977 \end_layout
11978
11979 \begin_layout Subsection
11980 サポートされない 
11981 \family sans
11982 Foil
11983 \family default
11984 \SpecialChar TeX
11985 機能
11986 \begin_inset CommandInset label
11987 LatexCommand label
11988 name "sec:unsuppfoils"
11989
11990 \end_inset
11991
11992
11993 \end_layout
11994
11995 \begin_layout Standard
11996 以下で言及されているコマンドは、
11997 \family sans
11998 \SpecialChar LaTeX
11999
12000 \family default
12001 環境内で設定されるか、他の環境中の
12002 \family sans
12003 \SpecialChar TeX
12004 コード
12005 \family default
12006 として設定される必要があります。
12007 \end_layout
12008
12009 \begin_layout Subsubsection
12010 長さ
12011 \end_layout
12012
12013 \begin_layout Standard
12014 長さは、すべて
12015 \family typewriter
12016
12017 \backslash
12018 setlength{
12019 \family default
12020 \emph on
12021 長さ名
12022 \family typewriter
12023 \emph default
12024 }{
12025 \family default
12026 \emph on
12027 新規長さ
12028 \family typewriter
12029 \emph default
12030 }
12031 \family default
12032 コマンドで調節されます。ここで
12033 \emph on
12034 長さ名
12035 \emph default
12036 は、変更したい長さに付けられている名前で置き換え、
12037 \emph on
12038 新規長さ
12039 \emph default
12040 は、その長さの値で置き換えます。長さはすべて、インチ(in)・ミリメートル(mm)・ポイント(pt)のような長さ単位か、
12041 \family typewriter
12042
12043 \backslash
12044 textwidth
12045 \family default
12046 のように文書比あるいはフォント基準の長さで指定する必要があります。
12047 \end_layout
12048
12049 \begin_layout Standard
12050
12051 \family typewriter
12052
12053 \backslash
12054 foilheadskip
12055 \family default
12056 で指定される長さを調節することによって、スライドタイトルとスライド本文の間の余白を変更することができます。たとえば、スライドタイトルをすべて0.5
12057 \begin_inset space \space{}
12058 \end_inset
12059
12060 inだけスライド本文に近づけるには、プリアンブルに
12061 \family typewriter
12062
12063 \backslash
12064 setlength{
12065 \backslash
12066 foilheadskip}{-0.5in}
12067 \family default
12068 と書き込みます。
12069 \end_layout
12070
12071 \begin_layout Standard
12072 フロート周囲の余白は、以下の長さを設定することで調整することができます。
12073 \end_layout
12074
12075 \begin_layout Labeling
12076 \labelwidthstring MMMMMMMMMMM
12077
12078 \family typewriter
12079
12080 \backslash
12081 abovefloatskip
12082 \family default
12083  本文とフロート上辺との間隔
12084 \end_layout
12085
12086 \begin_layout Labeling
12087 \labelwidthstring MMMMMMMMMMM
12088
12089 \family typewriter
12090
12091 \backslash
12092 abovecaptionskip
12093 \family default
12094  フロートとキャプションとの間隔
12095 \end_layout
12096
12097 \begin_layout Labeling
12098 \labelwidthstring MMMMMMMMMMM
12099
12100 \family typewriter
12101
12102 \backslash
12103 belowcaptionskip
12104 \family default
12105  キャプションとそれに続く本文との間隔
12106 \end_layout
12107
12108 \begin_layout Labeling
12109 \labelwidthstring MMMMMMMMMMM
12110
12111 \family typewriter
12112
12113 \backslash
12114 captionwidth
12115 \family default
12116  この長さを調整することでキャプションを、周囲の本文より短くすることができます。
12117 \family typewriter
12118
12119 \backslash
12120 textwidth
12121 \family default
12122 に対する相対的な長さで調整するのが最も良いでしょう。
12123 \end_layout
12124
12125 \begin_layout Standard
12126 以下のようなタイトルページ関連の長さもあり、タイトルが長い場合や、著者が複数いる場合に使うと便利かもしれません。
12127 \end_layout
12128
12129 \begin_layout Labeling
12130 \labelwidthstring MMMMMMMMMMM
12131
12132 \family typewriter
12133
12134 \backslash
12135 abovetitleskip
12136 \family default
12137  へッダとタイトルとの間隔
12138 \end_layout
12139
12140 \begin_layout Labeling
12141 \labelwidthstring MMMMMMMMMMM
12142
12143 \family typewriter
12144
12145 \backslash
12146 titleauthorskip
12147 \family default
12148  
12149 \family sans
12150 タイトル
12151 \family default
12152 環境と
12153 \family sans
12154 著者
12155 \family default
12156 環境との間隔
12157 \end_layout
12158
12159 \begin_layout Labeling
12160 \labelwidthstring MMMMMMMMMMM
12161
12162 \family typewriter
12163
12164 \backslash
12165 authorauthorskip
12166 \family default
12167  著者が複数いる場合の
12168 \family sans
12169 著者
12170 \family default
12171 行の間隔
12172 \end_layout
12173
12174 \begin_layout Labeling
12175 \labelwidthstring MMMMMMMMMMM
12176
12177 \family typewriter
12178
12179 \backslash
12180 authordateskip
12181 \family default
12182  
12183 \family sans
12184 著者
12185 \family default
12186
12187 \family sans
12188 日付
12189 \family default
12190 との間隔
12191 \end_layout
12192
12193 \begin_layout Labeling
12194 \labelwidthstring MMMMMMMMMMM
12195
12196 \family typewriter
12197
12198 \backslash
12199 dateabstractskip
12200 \family default
12201  
12202 \family sans
12203 日付
12204 \family default
12205
12206 \family sans
12207 概要
12208 \family default
12209 との間隔
12210 \end_layout
12211
12212 \begin_layout Standard
12213 最後に紹介する長さ関連コマンドは、箇条書き環境すべてに使用できるものです。
12214 \family typewriter
12215
12216 \backslash
12217 zerolistvertdimens
12218 \family default
12219 を箇条書き環境の内側に置くと、項目間の垂直余白がすべて取り除かれます。これは長さではなくコマンドなので、上述のもののように
12220 \family typewriter
12221
12222 \backslash
12223 setlength
12224 \family default
12225 を使う必要がないことに注意してください。
12226 \end_layout
12227
12228 \begin_layout Subsubsection
12229 へッダとフッタ
12230 \end_layout
12231
12232 \begin_layout Standard
12233
12234 \family typewriter
12235
12236 \backslash
12237 LogoOn
12238 \family default
12239 および
12240 \family typewriter
12241
12242 \backslash
12243 LogoOff
12244 \family default
12245 は、
12246 \family typewriter
12247 MyLogo
12248 \family default
12249 で定義したロゴを特定のページに入れるかどうかを制御します。
12250 \family typewriter
12251
12252 \backslash
12253 LogoOff
12254 \family default
12255 をプリアンブルに入れると、全スライドからロゴが取り除かれます。特定のスライドにのみロゴを付けたくない場合は、当該ページのスライドタイトルの直後に直接
12256 \family typewriter
12257
12258 \backslash
12259 LogoOff
12260 \family default
12261 を置き、次のスライドタイトルの直後に直接
12262 \family typewriter
12263
12264 \backslash
12265 LogoOn
12266 \family default
12267 を置いてください。
12268 \end_layout
12269
12270 \begin_layout Standard
12271
12272 \family sans
12273 文書レイアウト
12274 \family default
12275 ダイアログで
12276 \family sans
12277 fancy
12278 \family default
12279 ページ様式を使用することを選択した場合には、横置きページのヘッダとフッタが回転後も正しく配置されるように、プリアンブルに
12280 \family typewriter
12281
12282 \backslash
12283 let
12284 \backslash
12285 headwidth
12286 \backslash
12287 textwidth
12288 \family default
12289 を加える必要があるでしょう。これは、
12290 \family sans
12291 fancyheadings
12292 \family default
12293 パッケージが提供するページレイアウトと
12294 \family sans
12295 foils
12296 \family default
12297 クラスの提供するページレイアウトの間に衝突が発生するためです。
12298 \end_layout
12299
12300 \begin_layout Section
12301 Hollywood(Hollywoodスペック・スクリプト)
12302 \end_layout
12303
12304 \begin_layout Standard
12305
12306 \noun on
12307 Garst Reese
12308 \noun default
12309
12310 \end_layout
12311
12312 \begin_layout Subsection
12313 はじめに
12314 \end_layout
12315
12316 \begin_layout Standard
12317 脚本を正しい書式で書くことは、ハリウッドにおける「通過儀礼」です。ハリウッドの脚本は、読み手が内容に集中できるようにし、俳優にとっても読みやすくかつ親しみやすい
12318 ように設計されています。脚本の1ページは、映画の1分でなければならず、銀幕上で見えたり聞こえたりしないものは、脚本に混入してはなりません。また、全体を通してCo
12319 urier 12
12320 \begin_inset space \space{}
12321 \end_inset
12322
12323 ptフォントを使わなければならず、イタリック体は用いてはいけません。
12324 \end_layout
12325
12326 \begin_layout Subsection
12327 特別な問題
12328 \end_layout
12329
12330 \begin_layout Standard
12331 話者の行は、文の途中で改行することは
12332 \emph on
12333 決して
12334 \emph default
12335 あってはなりません。もし話者行の塊が、次頁にまたがる場合には、
12336 \family sans
12337 話者
12338 \family default
12339 名を再度書き、その後に(Cont'd)と加えます。
12340 \end_layout
12341
12342 \begin_layout Subsection
12343 特別な機能
12344 \end_layout
12345
12346 \begin_layout Standard
12347
12348 \family sans
12349 話者
12350 \family default
12351 名はラベルとして挿入し、話者名を挿入するには、そのラベルを相互参照してください。相互参照ダイアログは、登場人物の現在の配役を表示することになります。これは、ト書
12352 きに話者名を挿入するのにも使用することができます。
12353 \end_layout
12354
12355 \begin_layout Subsection
12356 用紙寸法と余白
12357 \end_layout
12358
12359 \begin_layout Standard
12360 USレター寸法で、左余白1.6インチ・右余白0.75インチ・上余白0.5インチ・下余白0.75インチです。
12361 \end_layout
12362
12363 \begin_layout Subsection
12364 環境
12365 \end_layout
12366
12367 \begin_layout Standard
12368 以下の環境が利用可能です。右に示されている
12369 \begin_inset Flex Ruby
12370 status collapsed
12371
12372 \begin_layout Plain Layout
12373
12374 \begin_inset Argument post:1
12375 status collapsed
12376
12377 \begin_layout Plain Layout
12378 キー
12379 \end_layout
12380
12381 \end_inset
12382
12383
12384 \end_layout
12385
12386 \end_inset
12387
12388 割当てを使用するには、hollywood.bindを使用してください。
12389 \end_layout
12390
12391 \begin_layout Itemize
12392
12393 \family sans
12394 一般
12395 \begin_inset Newline newline
12396 \end_inset
12397
12398
12399 \family default
12400 他の環境が動作しない場合に使用しますが、これを使うことは避けるようにしてください。
12401 \end_layout
12402
12403 \begin_layout Itemize
12404 フェイドイン:
12405 \begin_inset space \hfill{}
12406 \end_inset
12407
12408
12409 \family sans
12410 M-z S-I
12411 \family default
12412
12413 \begin_inset Newline newline
12414 \end_inset
12415
12416 通常、この後には「Sallyは目を覚ますと」のように続きます。
12417 \end_layout
12418
12419 \begin_layout Itemize
12420
12421 \family sans
12422 屋内:
12423 \begin_inset space \hfill{}
12424 \end_inset
12425
12426 M-z i
12427 \begin_inset Newline newline
12428 \end_inset
12429
12430
12431 \family default
12432 新しい屋内(INTERIOR)カメラの設定を指定します。この後には、かならずDAYやNIGHTなどを指定して、必要な照明を定義します。この行はすべて大文字で書き
12433 ます。
12434 \end_layout
12435
12436 \begin_layout Itemize
12437
12438 \family sans
12439 屋外:
12440 \begin_inset space \hfill{}
12441 \end_inset
12442
12443 M-z e
12444 \begin_inset Newline newline
12445 \end_inset
12446
12447
12448 \family default
12449 屋外(EXTERIOR)カメラの設定を指定します。この行はすべて大文字で書きます。
12450 \end_layout
12451
12452 \begin_layout Itemize
12453
12454 \family sans
12455 話者
12456 \begin_inset space \hfill{}
12457 \end_inset
12458
12459 M-z s
12460 \begin_inset Newline newline
12461 \end_inset
12462
12463
12464 \family default
12465 話す役。
12466 \end_layout
12467
12468 \begin_layout Itemize
12469
12470 \family sans
12471 括弧付き
12472 \begin_inset space \hfill{}
12473 \end_inset
12474
12475 M-z p
12476 \begin_inset Newline newline
12477 \end_inset
12478
12479 話者
12480 \family default
12481 への指示。自動的に括弧()が挿入されますが、\SpecialChar LyX
12482 上で表示されるのは、左括弧( のみです。印刷出力には右括弧も表示されます。
12483 \end_layout
12484
12485 \begin_layout Itemize
12486
12487 \family sans
12488 対話
12489 \begin_inset space \hfill{}
12490 \end_inset
12491
12492 M-z d
12493 \begin_inset Newline newline
12494 \end_inset
12495
12496 話者
12497 \family default
12498 が話す内容。
12499 \end_layout
12500
12501 \begin_layout Itemize
12502
12503 \family sans
12504 画面遷移
12505 \begin_inset space \hfill{}
12506 \end_inset
12507
12508 M-z t
12509 \begin_inset Newline newline
12510 \end_inset
12511
12512
12513 \family default
12514 カメラの動きの指示。例:CUT TO:。
12515 \end_layout
12516
12517 \begin_layout Itemize
12518
12519 \family sans
12520 フェイドアウト:
12521 \begin_inset space \hfill{}
12522 \end_inset
12523
12524 M-z S-I
12525 \end_layout
12526
12527 \begin_layout Itemize
12528
12529 \family sans
12530 著者
12531 \begin_inset space \hfill{}
12532 \end_inset
12533
12534 M-z S-A
12535 \end_layout
12536
12537 \begin_layout Itemize
12538
12539 \family sans
12540 タイトル
12541 \begin_inset space \hfill{}
12542 \end_inset
12543
12544 M-z S-T
12545 \end_layout
12546
12547 \begin_layout Itemize
12548
12549 \family sans
12550 右寄せ住所
12551 \begin_inset space \hfill{}
12552 \end_inset
12553
12554 M-z r
12555 \end_layout
12556
12557 \begin_layout Subsection
12558 脚本で使われる特別な用語
12559 \end_layout
12560
12561 \begin_layout Itemize
12562 (O.S) — off screen
12563 \end_layout
12564
12565 \begin_layout Itemize
12566 (V.0) — voice over
12567 \end_layout
12568
12569 \begin_layout Itemize
12570 b.g.
12571  — background
12572 \end_layout
12573
12574 \begin_layout Itemize
12575 C.U.
12576  — close-up
12577 \end_layout
12578
12579 \begin_layout Itemize
12580 PAN — camera movement
12581 \end_layout
12582
12583 \begin_layout Itemize
12584 INSERT — cut to close-up of
12585 \end_layout
12586
12587 \begin_layout Section
12588 ijmpcおよびijmpd
12589 \end_layout
12590
12591 \begin_layout Standard
12592
12593 \noun on
12594 Panayotis Papasotiriou
12595 \noun default
12596
12597 \end_layout
12598
12599 \begin_layout Subsection
12600 概観
12601 \end_layout
12602
12603 \begin_layout Standard
12604 ijpmcパッケージは、
12605 \emph on
12606 International Journal of Modern Physics C
12607 \emph default
12608 への電子投稿を可能にするためのマクロ集です。同様に、ijpmdパッケージは、
12609 \emph on
12610 International Journal of Modern Physics D
12611 \emph default
12612 へ投稿する現行を作成するためのものです。両誌ともWorld Scientific社の刊行です。対応する文書クラス名は、それぞれ
12613 \family typewriter
12614 ws-ijmpc.cls
12615 \family default
12616 および
12617 \family typewriter
12618 ws-ijmpd.cls
12619 \family default
12620 です。これらのファイルは、著者のための指針とともに、
12621 \begin_inset Flex URL
12622 status collapsed
12623
12624 \begin_layout Plain Layout
12625
12626 http://www.worldscinet.com/ijmpc/mkt/guidelines.shtml
12627 \end_layout
12628
12629 \end_inset
12630
12631 および
12632 \begin_inset Flex URL
12633 status collapsed
12634
12635 \begin_layout Plain Layout
12636
12637 http://www.worldscinet.com/ijmpd/mkt/guidelines.shtml
12638 \end_layout
12639
12640 \end_inset
12641
12642 の各サイトからダウンロードすることができます。両パッケージは、標準「article」パッケージの修正版であり、両者は(一部を除き)ほぼ同一です。\SpecialChar LyX
12643 は、これらのパッ
12644 ケージのほとんどの機能をサポートしています。私は両誌へ投稿する論文を\SpecialChar LyX
12645 で書き上げましたが、何らの問題も生じませんでした。
12646 \end_layout
12647
12648 \begin_layout Subsection
12649 論文を書く
12650 \end_layout
12651
12652 \begin_layout Standard
12653 通常と同じく、論文を書く上で最も易しい方法は、ひな型を使って書き始めることです。
12654 \family sans
12655 ファイル\SpecialChar menuseparator
12656 新規(ひな型使用)
12657 \family default
12658 をクリックして、ひな型
12659 \family typewriter
12660 ijmpc.lyx
12661 \family default
12662 もしくは
12663 \family typewriter
12664 ijmpd.lyx
12665 \family default
12666 を選択してください。すると、原稿で良く使用されるフィールドを含んだ、ほぼ空の文書ができますので、既存のフィールド(鍵括弧
12667 \family typewriter
12668 <>
12669 \family default
12670 を含む)を正しい情報で置き換えてください。以下の各点にご留意ください。
12671 \end_layout
12672
12673 \begin_layout Enumerate
12674 両パッケージでは、フォント寸法や文書のページ様式を変更することが禁じられているので、\SpecialChar LyX
12675 中でこれらを変更することはできません。
12676 \end_layout
12677
12678 \begin_layout Enumerate
12679 文書言語は変更してはいけません。論文をプレビューする前に、babelパッケージが使用されていないことを確認してください。これは、
12680 \family sans
12681 ツール\SpecialChar menuseparator
12682 設定
12683 \family default
12684 をクリックして、
12685 \family sans
12686 言語オプション
12687 \family default
12688 タブを選択し、言語設定で
12689 \family sans
12690 Babelを使う
12691 \family default
12692 チェックボックスを無効にしてから、
12693 \family sans
12694 適用
12695 \family default
12696 をクリックすれば、設定することができます(この変更を固定するなら
12697 \family sans
12698 保存
12699 \family default
12700 を押してください)。
12701 \end_layout
12702
12703 \begin_layout Enumerate
12704 キーワードを定義するに際しては、「キーワード」様式を用いなくてはなりません。
12705 \end_layout
12706
12707 \begin_layout Enumerate
12708 ijmpcパッケージが提供する「分類コード」様式は、PACS番号のような分類コードを定義するのに使用することができます。この機能は、ijmpdパッケージではサポ
12709 ートされていませんので、ご注意ください。
12710 \end_layout
12711
12712 \begin_layout Enumerate
12713 「定義」「ステップ」「例」「注記」「記法」「定理」「証明」「系」「補題」「命題」「命題(Prop)」「問題」「主張」「予想」といった新しい環境を使用することがで
12714 きます。これらの使い方は、大凡自明でしょう。\SpecialChar LyX
12715 は、これらの環境をすべてサポートし、それぞれについて、適切なラベルと文字様式および連番スキームを使用します。
12716 \end_layout
12717
12718 \begin_layout Enumerate
12719 両パッケージは、単純な引用を使用しますので、natbibパッケージは使用してはなりません。\SpecialChar LyX
12720 中では、引用参照は通常通り表示されますが、出力では上付き文字として表示
12721 されます。引用に通常の本文を使用したい場合には、「See Ref.
12722 \begin_inset space \space{}
12723 \end_inset
12724
12725
12726 \family typewriter
12727
12728 \backslash
12729 refcite{
12730 \family default
12731
12732 \begin_inset Flex Ruby
12733 status collapsed
12734
12735 \begin_layout Plain Layout
12736
12737 \family typewriter
12738
12739 \family default
12740
12741 \begin_inset Argument post:1
12742 status collapsed
12743
12744 \begin_layout Plain Layout
12745 キー
12746 \end_layout
12747
12748 \end_inset
12749
12750
12751 \end_layout
12752
12753 \end_inset
12754
12755
12756 \family typewriter
12757 }
12758 \family default
12759 」のように
12760 \family typewriter
12761 refcite
12762 \family default
12763 コマンドを使用してください。
12764 \end_layout
12765
12766 \begin_layout Enumerate
12767 両パッケージには、「謝辞」環境がありません。謝辞を置くには、「節*」環境を使用してください。
12768 \end_layout
12769
12770 \begin_layout Enumerate
12771 付録は、論文中、謝辞の
12772 \emph on
12773
12774 \emph default
12775 かつ書誌情報の
12776 \emph on
12777
12778 \emph default
12779 であれば、入れることができます。\SpecialChar LyX
12780 上では、「付録領域」という特別な環境があり、これを使って付録の開始位置を指定することができます。この環境は空のままにしておかなく
12781 てはなりません。この環境は、\SpecialChar LaTeX
12782 コマンドを書き出すだけで、実際に出力は行いません。\SpecialChar LyX
12783 上では、青字で「Appendix」という単語が表示され、この箇所より後の節はすべて
12784 付録であることを明示します。「付録領域」は、最初の付録の前に
12785 \emph on
12786 なくてはならない
12787 \emph default
12788 ことに注意してください。さもなくば、出力中において、付録はすべて通常の節として連番が振られてしまいます。
12789 \end_layout
12790
12791 \begin_layout Enumerate
12792 ijmpcおよびijmpdパッケージは、表キャプションを実装するのに
12793 \family typewriter
12794 tbl
12795 \family default
12796 コマンドを使用します。そのため、\SpecialChar LyX
12797 が作成した表は正しく印字されますが、そのキャプションは無視されます。しかし、\SpecialChar TeX
12798 コードを少し使えば、この問題を回避して、キャプション
12799 を望み通り印字することができるようになります。そうするには、表フロートを通常通り作成して、キャプションを削除し、代わりに\SpecialChar TeX
12800 コードで
12801 \family typewriter
12802
12803 \backslash
12804 tbl{表キャプション}{
12805 \family default
12806 (ママ)と入れます。そこに表の内容を入れて、直後を\SpecialChar TeX
12807 コード
12808 \family typewriter
12809 }
12810 \family default
12811 で閉じてください。このからくりがどのように実装されているかを見るには、ひな型ファイルに入っている表の例を精査してみてください。別の方法としては、表キャプションが
12812 欲しい場合に、表フロート全体を
12813 \family typewriter
12814 .tex
12815 \family default
12816 ファイルに収め、このファイルを\SpecialChar LyX
12817 文書に取り込んでください(
12818 \family sans
12819 挿入\SpecialChar menuseparator
12820 ファイル\SpecialChar menuseparator
12821 子文書
12822 \family default
12823 )。表フロートの作り方についての詳細は、各パッケージに含まれている
12824 \family typewriter
12825 ws-ijmpc.tex
12826 \family default
12827 または
12828 \family typewriter
12829 ws-ijmpd.tex
12830 \family default
12831 ファイルをご覧ください。
12832 \end_layout
12833
12834 \begin_layout Subsection
12835 原稿を投稿するための準備
12836 \end_layout
12837
12838 \begin_layout Standard
12839 論文を投稿する前には、\SpecialChar LyX
12840 文書を\SpecialChar LaTeX
12841 ファイルに書き出し(
12842 \family sans
12843 ファイル\SpecialChar menuseparator
12844 書き出し\SpecialChar menuseparator
12845 \SpecialChar LaTeX
12846
12847 \family default
12848 )
12849 \begin_inset Foot
12850 status open
12851
12852 \begin_layout Plain Layout
12853 実は、\SpecialChar LaTeX
12854  (plain)とpdflatexとの間で選択ができます。論文を準備するのにpdflatexを使用しようとするのであれば、取り込んである画像がPDF形式に
12855 変換され、pdflatexで使用できるように、pdflatexオプションを指定しなくてはなりません。
12856 \end_layout
12857
12858 \end_inset
12859
12860 、その
12861 \family typewriter
12862 .tex
12863 \family default
12864 ファイルに以下の変更を加える必要があります。
12865 \end_layout
12866
12867 \begin_layout Enumerate
12868
12869 \family typewriter
12870
12871 \backslash
12872 documentclass
12873 \family default
12874 コマンドより前にあるコメント行を削除する。
12875 \end_layout
12876
12877 \begin_layout Enumerate
12878 自身で明示的に\SpecialChar LaTeX
12879 プリアンブルに置いたコマンドを除き、
12880 \family typewriter
12881
12882 \backslash
12883 makeatletter
12884 \family default
12885 コマンドと
12886 \family typewriter
12887
12888 \backslash
12889 makeatother
12890 \family default
12891 コマンドの間にあるものをすべて削除する。
12892 \end_layout
12893
12894 \begin_layout Standard
12895 こうして修正を加えた
12896 \family typewriter
12897 .tex
12898 \family default
12899 ファイルを保存し、必要な回数\SpecialChar LaTeX
12900 で処理してください。それによって得られた
12901 \family typewriter
12902 .dvi
12903 \family default
12904 文書も確認された方がよろしいでしょう。
12905 \end_layout
12906
12907 \begin_layout Subsection
12908 \SpecialChar TeX
12909 コードの使用
12910 \end_layout
12911
12912 \begin_layout Standard
12913 \SpecialChar TeX
12914 コードを使用するのは、2つのコマンドに限られ、これらは文書の最初に置かれなくてはなりません。論文をひな型
12915 \family typewriter
12916 ijmpc.lyx
12917 \family default
12918 または
12919 \family typewriter
12920 ijmpd.lyx
12921 \family default
12922 を使用して書き始めた場合には、これら必要な\SpecialChar TeX
12923 コードは、すでに書き込まれています。通常、これらを削除する必要はありません。2つのうち1番めの\SpecialChar TeX
12924 コードのみが、奇数ページ
12925 および偶数ページの上部に印字する情報(それぞれ著者名と論文の短縮タイトル)を指定するために、修正する必要があります。この\SpecialChar TeX
12926 コードは、
12927 \family typewriter
12928
12929 \backslash
12930 markboth{著者名}{論文の短縮タイトル}
12931 \family default
12932 という形である必要があります。
12933 \end_layout
12934
12935 \begin_layout Section
12936 iopart
12937 \end_layout
12938
12939 \begin_layout Standard
12940
12941 \noun on
12942 Uwe Stöhr
12943 \noun default
12944
12945 \end_layout
12946
12947 \begin_layout Subsection
12948 概要
12949 \end_layout
12950
12951 \begin_layout Standard
12952 iopartパッケージは、Institute of Physics(イギリス物理学会)発行の学術誌へ電子的に投稿する原稿を作成するための文書クラスを提供していま
12953 す。iopartクラスを使用した論文作成方法の著者用説明書は、ウェブサイト
12954 \begin_inset Flex URL
12955 status collapsed
12956
12957 \begin_layout Plain Layout
12958
12959 ftp://ftp.iop.org/pub/journals/latex2e
12960 \end_layout
12961
12962 \end_inset
12963
12964 からiopartパッケージとともにダウンロード可能です。
12965 \end_layout
12966
12967 \begin_layout Subsection
12968 論文を書く
12969 \end_layout
12970
12971 \begin_layout Standard
12972 論文を書くもっとも簡単な方法は、\SpecialChar LyX
12973 の用例ファイルフォルダにある
12974 \emph on
12975 IOP-article.lyx
12976 \emph default
12977 を土台にすることです。このファイルを開き、新しい名前で保存して、書き始めてください。この用例ファイルは、特定の環境の使用法についても説明しています。もっとも重要
12978 な助言として、以下の点にご注意ください。
12979 \end_layout
12980
12981 \begin_layout Itemize
12982 文書がPDF・PS・DVIにコンパイルできるようにするためには、文書設定の
12983 \family sans
12984 数式オプション
12985 \family default
12986 で、二つの
12987 \family sans
12988 AMS mathパッケージを使う
12989 \family default
12990 関連オプションが有効になっていないことを確認してください!
12991 \end_layout
12992
12993 \begin_layout Itemize
12994 タイトル環境の選択如何によって、論文の種類が定義されます。種類毎に以下の環境をタイトルに使用してください。
12995 \begin_inset Separator parbreak
12996 \end_inset
12997
12998
12999 \end_layout
13000
13001 \begin_deeper
13002 \begin_layout Itemize
13003 論文用には
13004 \family sans
13005 タイトル
13006 \end_layout
13007
13008 \begin_layout Itemize
13009 Review用には
13010 \family sans
13011 Review
13012 \end_layout
13013
13014 \begin_layout Itemize
13015 Topical review用には
13016 \family sans
13017 Topical
13018 \end_layout
13019
13020 \begin_layout Itemize
13021 Comment用には
13022 \family sans
13023 Comment
13024 \end_layout
13025
13026 \begin_layout Itemize
13027 Note用には
13028 \family sans
13029 注釈
13030 \end_layout
13031
13032 \begin_layout Itemize
13033 論文用には
13034 \family sans
13035 Paper
13036 \family default
13037 (タイトルと同じ)
13038 \end_layout
13039
13040 \begin_layout Itemize
13041 Preliminary communication用には
13042 \family sans
13043 Prelim
13044 \end_layout
13045
13046 \begin_layout Itemize
13047 Rapid communication用には
13048 \family sans
13049 Rapid
13050 \end_layout
13051
13052 \begin_layout Itemize
13053 編集者へのLetterには
13054 \family sans
13055 書簡
13056 \end_layout
13057
13058 \end_deeper
13059 \begin_layout Itemize
13060
13061 \family sans
13062 書簡
13063 \family default
13064 以外のタイトル環境には、すべて短縮タイトルをつけることもできます。
13065 \end_layout
13066
13067 \begin_layout Itemize
13068 \SpecialChar LyX
13069 では直接にサポートされていませんが、一般的なタイトル環境として
13070 \family sans
13071 Article
13072 \family default
13073 があります。執筆する文書が、他のタイトル型にそぐわない場合には、\SpecialChar TeX
13074 コードでこれを指定することができます。
13075 \end_layout
13076
13077 \begin_layout Standard
13078 特別な表や数式組版に関するヒントなど、詳しい情報については、IOP著者用ガイドラインを参照してください。
13079 \end_layout
13080
13081 \begin_layout Section
13082 Kluwer
13083 \end_layout
13084
13085 \begin_layout Standard
13086
13087 \noun on
13088 Panayotis Papasotiriou
13089 \noun default
13090
13091 \end_layout
13092
13093 \begin_layout Subsection
13094 概要
13095 \end_layout
13096
13097 \begin_layout Standard
13098 Kluwerパッケージは、Kluwer Academic Publishers社が発行する学術誌への電子投稿を可能にするために、同社が作成したマクロ集です。同社
13099 の発行誌のうち、(少なくとも私の専門内で)もっともよく知られているものは、
13100 \emph on
13101 Astrophysics and Space Science
13102 \emph default
13103 (『宇宙物理学と宇宙科学』)と
13104 \emph on
13105 Solar Physics
13106 \emph default
13107 (『太陽系物理学』)ですが、他にも多くの学術誌があります(
13108 \begin_inset Flex URL
13109 status collapsed
13110
13111 \begin_layout Plain Layout
13112
13113 http://www.wkap.nl/jrnllist.htm/JRNLHOME
13114 \end_layout
13115
13116 \end_inset
13117
13118 に全覧があります)。Kluwerパッケージは、
13119 \begin_inset Flex URL
13120 status collapsed
13121
13122 \begin_layout Plain Layout
13123
13124 http://www.wkap.nl/kaphtml.htm/STYLEFILES
13125 \end_layout
13126
13127 \end_inset
13128
13129 からダウンロードできます。完全なユーザーの手引きも同パッケージ内に収録されています(個別にダウンロードすることも可能です)。
13130 \end_layout
13131
13132 \begin_layout Standard
13133 \SpecialChar LyX
13134 は、このパッケージの機能の多くをサポートしていますが、すべてではありません。しかし、\SpecialChar TeX
13135 コードを必要とするのは、パッケージ中のいくつかの「変わった」コマンドだけにな
13136 りました(
13137 \begin_inset CommandInset ref
13138 LatexCommand ref
13139 reference "subsec:kluwer_peculiarities"
13140
13141 \end_inset
13142
13143 参照)。最近、私は\SpecialChar LyX
13144 を使って書いた論文を
13145 \emph on
13146 Astrophysics and Space Science
13147 \emph default
13148 に投稿しましたが、何らの問題も発生しませんでした。
13149 \end_layout
13150
13151 \begin_layout Subsection
13152 論文を書く
13153 \end_layout
13154
13155 \begin_layout Standard
13156 論文を書き始めるには、ひな型ファイルKluwerを使うのが最も簡単です。
13157 \family sans
13158 ファイル\SpecialChar menuseparator
13159 新規(ひな型使用)
13160 \family default
13161 をクリックし、ひな型
13162 \family typewriter
13163 kluwer.lyx
13164 \family default
13165 を選択してください。これは、原稿に通常必要となる各フィールドと、それらの使用法が短く書かれただけの、(ほとんど)何も書かれていない文書です。他のテンプレートと同
13166 様に、既存の文章を(括弧
13167 \family typewriter
13168 <>
13169 \family default
13170 を含む)正しい情報で上書きしてください。
13171 \end_layout
13172
13173 \begin_layout Subsection
13174 投稿の準備
13175 \end_layout
13176
13177 \begin_layout Standard
13178 AAS\SpecialChar TeX
13179 パッケージと同様、論文を投稿する前に、以下のような「後処理」を行う必要があります。
13180 \end_layout
13181
13182 \begin_layout Enumerate
13183
13184 \family sans
13185 ファイル\SpecialChar menuseparator
13186 書き出し\SpecialChar menuseparator
13187 LateX
13188 \family default
13189 をクリックして、論文を\SpecialChar LaTeX
13190 ファイルに書き出す。
13191 \end_layout
13192
13193 \begin_layout Enumerate
13194 生成された
13195 \family typewriter
13196 .tex
13197 \family default
13198 ファイルに、テキストエディタを使用して、以下のような変更を加える。
13199 \begin_inset Separator parbreak
13200 \end_inset
13201
13202
13203 \end_layout
13204
13205 \begin_deeper
13206 \begin_layout Enumerate
13207
13208 \family typewriter
13209
13210 \backslash
13211 documentclass
13212 \family default
13213 コマンドより前にあるコメント行を削除する。
13214 \end_layout
13215
13216 \begin_layout Enumerate
13217 意図的に\SpecialChar LaTeX
13218 プリアンブルに加えたコマンドを除き、
13219 \family typewriter
13220
13221 \backslash
13222 makeatletter
13223 \family default
13224 から 
13225 \family typewriter
13226
13227 \backslash
13228 makeatother
13229 \family default
13230 の間にあるものを、これらのコマンドも含め、すべて削除する。
13231 \end_layout
13232
13233 \begin_layout Standard
13234 変更した
13235 \family typewriter
13236 .tex
13237 \family default
13238 ファイルを保存する。
13239 \end_layout
13240
13241 \end_deeper
13242 \begin_layout Enumerate
13243 この
13244 \family typewriter
13245 .tex
13246 \family default
13247 ファイルを必要な回数(通常3回以内)だけ\SpecialChar LaTeX
13248 にかける。
13249 \end_layout
13250
13251 \begin_layout Enumerate
13252 生成された
13253 \family typewriter
13254 .dvi
13255 \family default
13256 ファイルを
13257 \family sans
13258 xdvi
13259 \family default
13260 などを使って開き、問題がないか確認する(間違いをしていない限り問題ないはずです)。
13261 \end_layout
13262
13263 \begin_layout Subsection
13264 Kluwerパッケージの「風変わり」な特徴
13265 \begin_inset CommandInset label
13266 LatexCommand label
13267 name "subsec:kluwer_peculiarities"
13268
13269 \end_inset
13270
13271
13272 \end_layout
13273
13274 \begin_layout Standard
13275 Kluwerパッケージには、以下のような「風変わりな」特徴があります。
13276 \end_layout
13277
13278 \begin_layout Enumerate
13279 複数の論文を1つの\SpecialChar LaTeX
13280 ファイルへ入れることができます
13281 \begin_inset Foot
13282 status collapsed
13283
13284 \begin_layout Plain Layout
13285 わざわざこんなことをする必要はないでしょう。
13286 \end_layout
13287
13288 \end_inset
13289
13290 。各論文は、「article」環境で囲まなくてはなりません。残念ながら、1つの論文だけを書く場合でも、この環境を省略することはできません。つまり、各論文は
13291 \family typewriter
13292
13293 \backslash
13294 begin{article}
13295 \family default
13296 で始まり、
13297 \family typewriter
13298
13299 \backslash
13300 end{article}
13301 \family default
13302 で終わります。この環境を\SpecialChar LyX
13303 に実装することも可能でしたが、醜い上に初心者を混乱させる可能性があるので、実装することはしませんでした。したがって、これらの命令(
13304 \family typewriter
13305
13306 \backslash
13307 begin{article}
13308 \family default
13309
13310 \family typewriter
13311
13312 \backslash
13313 end{article}
13314 \family default
13315 )は、直接本文中に入力して、\SpecialChar LaTeX
13316 コード(「\SpecialChar TeX
13317 コード」のことです)としてマークする必要があります。
13318 \end_layout
13319
13320 \begin_layout Enumerate
13321 論文の冒頭に置く情報(タイトル・サブタイトル・著者名・所属・ヘッダ用タイトル・ヘッダ用著者名・概要・キーワード)は、「opening」とよばれる環境に入れなくて
13322 はなりません。これは\SpecialChar LyX
13323 では実装されていませんので、タイトルやサブタイトルなどは、2つの\SpecialChar TeX
13324 コード行(
13325 \family typewriter
13326
13327 \backslash
13328 begin{opening}
13329 \family default
13330 および
13331 \family typewriter
13332
13333 \backslash
13334 end{opening}
13335 \family default
13336 )の間に入れる必要があります。
13337 \end_layout
13338
13339 \begin_layout Enumerate
13340 ユーザーの手引きによれば、書誌情報の各項目のラベルは、
13341 \family typewriter
13342
13343 \begin_inset Newline newline
13344 \end_inset
13345
13346
13347 \backslash
13348 protect
13349 \backslash
13350 citeauthoryear{
13351 \family default
13352 \emph on
13353 著者名
13354 \family typewriter
13355 \emph default
13356 }{
13357 \family default
13358 \emph on
13359
13360 \family typewriter
13361 \emph default
13362 }
13363 \family default
13364  と書く必要があります。
13365 \end_layout
13366
13367 \begin_layout Standard
13368 ひな型
13369 \family typewriter
13370 kluwer.lyx
13371 \family default
13372 は、これらの風変わりな点がすべて考慮されています。このひな型を使用して、論文を新たに書きはじめる場合には、特別なことを行う必要はありません。以下の点にのみ留意し
13373 てください。
13374 \end_layout
13375
13376 \begin_layout Enumerate
13377 ひな型にある\SpecialChar TeX
13378 コードを削除しないでください。
13379 \end_layout
13380
13381 \begin_layout Enumerate
13382 新しい書誌情報項目を入力する場合には、ひな型に例示されている書誌情報項目をコピーして、必要に応じて修正してください。
13383 \end_layout
13384
13385 \begin_layout Section
13386 Koma-Script
13387 \end_layout
13388
13389 \begin_layout Standard
13390
13391 \noun on
13392 Bernd Rellermeyer
13393 \noun default
13394
13395 \end_layout
13396
13397 \begin_layout Subsection
13398 概要
13399 \end_layout
13400
13401 \begin_layout Standard
13402 \SpecialChar LyX
13403 の文書クラス
13404 \emph on
13405 article (koma-script)
13406 \emph default
13407
13408 \emph on
13409 report (koma-script)
13410 \emph default
13411
13412 \emph on
13413 book
13414 \emph default
13415  
13416 \emph on
13417 (koma-script)
13418 \emph default
13419
13420 \emph on
13421 letter
13422 \emph default
13423  
13424 \emph on
13425 (koma-script)
13426 \emph default
13427 は、それぞれKoma-Scriptファミリーの\SpecialChar LaTeX
13428 文書クラス
13429 \family typewriter
13430 scrartcl.cls
13431 \family default
13432
13433 \family typewriter
13434 scrreprt.cls
13435 \family default
13436
13437 \family typewriter
13438 scrbook.cls
13439 \family default
13440
13441 \family typewriter
13442 scrlettr.cls
13443 \family default
13444 に対応しています。これらは、標準文書クラス
13445 \family typewriter
13446 article.cls
13447 \family default
13448
13449 \family typewriter
13450 report.cls
13451 \family default
13452
13453 \family typewriter
13454 book.cls
13455 \family default
13456
13457 \family typewriter
13458 letter.cls
13459 \family default
13460 の代替物であり、これらよりも多くの点でヨーロッパに於ける活版印刷の慣例に合致します。
13461 \end_layout
13462
13463 \begin_layout Itemize
13464 標準文字寸法は、
13465 \emph on
13466 article (koma-script)
13467 \emph default
13468
13469 \emph on
13470 report (koma-script)
13471 \emph default
13472
13473 \emph on
13474 book (koma-script)
13475 \emph default
13476 で11pt、
13477 \emph on
13478 letter (koma-script)
13479 \emph default
13480 で12ptです。
13481 \end_layout
13482
13483 \begin_layout Itemize
13484 見出しや箇条書き(記述)環境のラベル、および
13485 \emph on
13486 letter (koma-script)
13487 \emph default
13488 文書クラスの要素の多くでは、ボールド体サンセリフフォントが使われます
13489 \begin_inset Foot
13490 status collapsed
13491
13492 \begin_layout Plain Layout
13493 ボールド体サンセリフフォントには、古いcmフォントと新しいecフォントの間に大きな違いがあり、特に見出しの表示の違いが際立ちます。比較すると、ecボールドサンセ
13494 リフフォントの方が、少し細く見えます。ecフォントを使用する際に「通常の」外観が欲しい場合には、
13495 \shape smallcaps
13496 Walter Schmidt
13497 \shape default
13498 作の\SpecialChar LaTeX
13499 パッケージ
13500 \family typewriter
13501 cmsd.sty
13502 \family default
13503 が役立ちます。
13504 \end_layout
13505
13506 \end_inset
13507
13508 。章見出しの連番は、節見出しの連番と同様に行われ、別行立てで「 Chapter\SpecialChar ldots
13509 」という行がつきません。さらに、多くのオプションによって、見出しの外観を修正するこ
13510 とができます(\SpecialChar LyX
13511 では、
13512 \family sans
13513 文書\SpecialChar menuseparator
13514 設定
13515 \family default
13516 ダイアログの
13517 \family sans
13518 クラスオプション
13519 \family default
13520 フィールドで指定します)。これらのオプションの独語での詳細な説明が、Koma-Scriptの取扱説明書
13521 \emph on
13522 scrguide
13523 \emph default
13524 にあります。
13525 \end_layout
13526
13527 \begin_layout Itemize
13528 Koma-Script文書クラスで、印字部分をデザインする主な方法は、
13529 \family sans
13530 BCOR
13531 \family default
13532 オプションまたは
13533 \family sans
13534 DIV
13535 \family default
13536 オプションを使う方法です(\SpecialChar LyX
13537 では、
13538 \family sans
13539 文書\SpecialChar menuseparator
13540 設定
13541 \family default
13542 ダイアログの
13543 \family sans
13544 クラスオプション
13545 \family default
13546 フィールドで指定します)。これらのオプションは
13547 \family sans
13548 文書\SpecialChar menuseparator
13549 設定
13550 \family default
13551 ダイアログのオプションと同様に、ページ余白を明示的に変更することができます。これらとその他印字領域オプションのドイツ語での詳細な説明が、Koma-Script取
13552 扱説明書
13553 \emph on
13554 scrguide
13555 \emph default
13556 にあります。
13557 \end_layout
13558
13559 \begin_layout Itemize
13560 Koma-Scriptファミリーの\SpecialChar LaTeX
13561 文書クラスには、多くの追加コマンドが定義されています。それらのうち、\SpecialChar LyX
13562 で意味を持つものは、対応する段落環境として実装されています
13563
13564 \end_layout
13565
13566 \begin_layout Standard
13567 Koma-Scriptファミリーの\SpecialChar LaTeX
13568 文書クラスに関する独語の詳細な説明が、Koma-Script取扱説明書
13569 \emph on
13570 scrguide
13571 \emph default
13572 にあります
13573 \begin_inset Foot
13574 status collapsed
13575
13576 \begin_layout Plain Layout
13577 英語翻訳版の
13578 \emph on
13579 screnggu
13580 \emph default
13581 もありますが、完訳ではありません。
13582 \end_layout
13583
13584 \end_inset
13585
13586 。以下の各節では、\SpecialChar LyX
13587 に関係する側面のみ説明致します。
13588 \end_layout
13589
13590 \begin_layout Subsection
13591 article (koma-script)・report (koma-script)・book (koma-script)
13592 \end_layout
13593
13594 \begin_layout Standard
13595 文書クラス
13596 \emph on
13597 article (koma-script)
13598 \emph default
13599
13600 \emph on
13601 report (koma-script)
13602 \emph default
13603
13604 \emph on
13605 book
13606 \emph default
13607  
13608 \emph on
13609 (koma-script)
13610 \emph default
13611 は、それぞれレイアウトファイル
13612 \family typewriter
13613 scrartcl.layout
13614 \family default
13615
13616 \family typewriter
13617 scrreprt.layou
13618 \family default
13619 t・
13620 \family typewriter
13621 crbook.layout
13622 \family default
13623 によって実装されています。これらは、対応する標準文書クラス
13624 \emph on
13625 article
13626 \emph default
13627
13628 \emph on
13629 report
13630 \emph default
13631
13632 \emph on
13633 book
13634 \emph default
13635 の段落環境を、若干の修正を加えた上ですべて含んでいますが、\SpecialChar LyX
13636 固有の
13637 \family sans
13638 箇条書き(一覧)
13639 \family default
13640 環境は例外であり、同じ機能を持つ新しい
13641 \family sans
13642 ラベリング
13643 \family default
13644 環境で置き換えられています。この
13645 \family sans
13646 ラベリング
13647 \family default
13648 環境以外にも、新しい段落環境が多く追加されています。これらは、
13649 \emph on
13650 letter (koma-script)
13651 \emph default
13652 には含まれていないのでご注意ください。
13653 \end_layout
13654
13655 \begin_layout Itemize
13656
13657 \family sans
13658 部(addpart)
13659 \family default
13660
13661 \family sans
13662 章(addchap)
13663 \family default
13664
13665 \family sans
13666 節(addsec)
13667 \family default
13668 :これらは、それぞれ
13669 \family sans
13670 部*
13671 \family default
13672
13673 \family sans
13674 章*
13675 \family default
13676
13677 \family sans
13678 節*
13679 \family default
13680 と同等の働きをしますが、加えて目次に項目が表示されるようになります。
13681 \family sans
13682 部(addpart)
13683 \family default
13684
13685 \family sans
13686 章(addchap)
13687 \family default
13688 は、
13689 \emph on
13690 article (koma-script)
13691 \emph default
13692 には収録されていません。
13693 \end_layout
13694
13695 \begin_layout Itemize
13696
13697 \family sans
13698 章(addchap*)
13699 \family default
13700
13701 \family sans
13702 節(addsec*)
13703 \family default
13704 :これらは、
13705 \family sans
13706 章(addchap
13707 \family default
13708 )と
13709 \family sans
13710 節(addsec)
13711 \family default
13712 とまったく同等に動作しますが、加えてランニングへッダを取り除きます。
13713 \family sans
13714 章(addchap*)
13715 \family default
13716 は、 
13717 \emph on
13718 article (koma-script)
13719 \emph default
13720 には収録されていません
13721 \begin_inset Foot
13722 status collapsed
13723
13724 \begin_layout Plain Layout
13725
13726 \emph on
13727 book (koma-script)
13728 \emph default
13729
13730 \emph on
13731 report (koma-script)
13732 \emph default
13733 には、
13734 \family typewriter
13735
13736 \backslash
13737 addpart*
13738 \family default
13739 コマンドもありますが、これは
13740 \family sans
13741 Part*
13742 \family default
13743 と同一なので、\SpecialChar LyX
13744 では実装されていません。
13745 \end_layout
13746
13747 \end_inset
13748
13749
13750 \end_layout
13751
13752 \begin_layout Itemize
13753
13754 \family sans
13755 小見出し(minisec)
13756 \family default
13757 :これは文書構造に現れない形で、続く段落の直上に標準文字寸法の見出しを付けます。
13758 \end_layout
13759
13760 \begin_layout Itemize
13761
13762 \family sans
13763 上部キャプション
13764 \family default
13765
13766 \family sans
13767 下部キャプション
13768 \family default
13769 は、ある要素の上部ないし下部にキャプションを配置する際、位置に応じて正しく余白取りを行う特別なキャプションです(組版規則に厳密に従うならば、表キャプションは、つ
13770 ねに表の上に置くべきでしょう)。また、クラスオプション
13771 \family typewriter
13772 tablecaptionsabove
13773 \family default
13774 を用いれば、キャプションを指定すると、表には
13775 \family sans
13776 上部キャプション
13777 \family default
13778 が、図には
13779 \family sans
13780 下部キャプション
13781 \family default
13782 が適用されるようになります。これを使用するためには、Koma-Script第2.8q版以上が必要です。
13783 \end_layout
13784
13785 \begin_layout Itemize
13786
13787 \family sans
13788 格言(dictum)
13789 \family default
13790 :これは、章頭などに警句を置くのに用いることができます。オプション引数(
13791 \family sans
13792 挿入\SpecialChar menuseparator
13793 短縮タイトル
13794 \family default
13795 )を用いれば、格言の作者を入れることができます。格言と作者の間は、線で区切られます。これを使用するためには、Koma-Script第2.8q版以上が必要です。
13796 \family sans
13797 格言(dictum)
13798 \family default
13799 は、
13800 \emph on
13801 article (koma-script)
13802 \emph default
13803 には収録されていません。
13804 \end_layout
13805
13806 \begin_layout Standard
13807 以下の各環境は、標準の
13808 \family sans
13809 タイトル
13810 \family default
13811
13812 \family sans
13813 著者
13814 \family default
13815
13816 \family sans
13817 日付
13818 \family default
13819 とともに文書のタイトル領域を形成します。これらは、最初の「通常の」段落よりも前に置かれる必要があります
13820 \begin_inset Foot
13821 status collapsed
13822
13823 \begin_layout Plain Layout
13824 つまり、対応する\SpecialChar LaTeX
13825 コマンドが
13826 \family typewriter
13827
13828 \backslash
13829 maketitle
13830 \family default
13831 コマンドよりも前に現れなくてはなりません。
13832 \end_layout
13833
13834 \end_inset
13835
13836 。これらの環境が2度以上使用された場合には、後に使用されたものが前のものを上書きします。つまり最後に使用したもののみが有効になります。しかしながら、
13837 \family sans
13838 タイトル
13839 \family default
13840
13841 \family sans
13842 著者
13843 \family default
13844
13845 \family sans
13846 日付
13847 \family default
13848 のような異なる環境の順序を変更しても、生成された文書には何の効果も生じません。
13849 \end_layout
13850
13851 \begin_layout Itemize
13852
13853 \family sans
13854 主題
13855 \family default
13856 :通常のタイトル部(
13857 \family sans
13858 タイトル
13859 \family default
13860
13861 \family sans
13862 著者
13863 \family default
13864
13865 \family sans
13866 日付
13867 \family default
13868 )の上に、文書の主題用の中央揃えの段落を生成します。
13869 \end_layout
13870
13871 \begin_layout Itemize
13872
13873 \family sans
13874 出版社
13875 \family default
13876 :通常のタイトル部(
13877 \family sans
13878 タイトル
13879 \family default
13880
13881 \family sans
13882 著者
13883 \family default
13884
13885 \family sans
13886 日付
13887 \family default
13888 )の下に、出版社名用の中央揃えの段落を生成します。
13889 \end_layout
13890
13891 \begin_layout Itemize
13892
13893 \family sans
13894 献呈
13895 \family default
13896
13897 \emph on
13898 report (koma-script)
13899 \emph default
13900
13901 \emph on
13902 book (koma-script)
13903 \emph default
13904 では、タイトル頁の次に、献辞用の中央揃えの段落を独立した頁として生成します。
13905 \emph on
13906 article (koma-script)
13907 \emph default
13908 の場合は、通常のタイトル部(
13909 \family sans
13910 タイトル
13911 \family default
13912
13913 \family sans
13914 著者
13915 \family default
13916
13917 \family sans
13918 日付
13919 \family default
13920 )の下に献辞用の中央揃えの段落を生成します。
13921 \end_layout
13922
13923 \begin_layout Itemize
13924
13925 \family sans
13926 タイトル頭書き
13927 \family default
13928 :通常のタイトル部(
13929 \family sans
13930 タイトル
13931 \family default
13932
13933 \family sans
13934 著者
13935 \family default
13936
13937 \family sans
13938 日付
13939 \family default
13940 )の上に、文書頭書き用の左揃えの段落を生成します。
13941 \end_layout
13942
13943 \begin_layout Itemize
13944
13945 \family sans
13946 扉裏上部
13947 \family default
13948
13949 \emph on
13950 report (koma-script)
13951 \emph default
13952 や 
13953 \emph on
13954 book (koma-script)
13955 \emph default
13956 の両面印刷において、扉裏上部に左揃え段落を生成します。片面印刷や、
13957 \emph on
13958 article (koma-script)
13959 \emph default
13960 では何の効果も生じません。
13961 \end_layout
13962
13963 \begin_layout Itemize
13964
13965 \family sans
13966 扉裏下部
13967 \family default
13968
13969 \emph on
13970 report (koma-script)
13971 \emph default
13972 や 
13973 \emph on
13974 book (koma-script)
13975 \emph default
13976 の両面印刷において、扉裏下部に左揃え段落を生成します。片面印刷や、
13977 \emph on
13978 article (koma-script)
13979 \emph default
13980 では何の効果も生じません。
13981 \end_layout
13982
13983 \begin_layout Itemize
13984
13985 \family sans
13986 追加タイトル
13987 \family default
13988 :実際の文書の前に、整形を行わない段落から成る、特殊な「汚い」ページを生成します。
13989 \end_layout
13990
13991 \begin_layout Standard
13992 文書クラス
13993 \emph on
13994 article (koma-script)
13995 \emph default
13996
13997 \emph on
13998 report (koma-script)
13999 \emph default
14000
14001 \emph on
14002 book (koma-script)
14003 \emph default
14004 の 各レイアウトファイルは、
14005 \family typewriter
14006 scrmacros.inc
14007 \family default
14008 ファイルを読み込みます。このファイルは、ユーザ環境を定義する場所として想定されています。s
14009 \family typewriter
14010 crmacros.inc
14011 \family default
14012 を、個人用レイアウトディレクトリにコピーして編集してください!
14013 \end_layout
14014
14015 \begin_layout Subsection
14016 letter (koma-script)
14017 \end_layout
14018
14019 \begin_layout Standard
14020 \noindent
14021 文書クラス
14022 \emph on
14023 letter (koma-script)
14024 \emph default
14025 は、レイアウトファイル 
14026 \family typewriter
14027 scrlettr.layout
14028 \family default
14029 で実装されています。このレイアウトファイルには、対応する標準文書クラス
14030 \emph on
14031 letter
14032 \emph default
14033 の全段落環境が、部分的に変更を加えた形で収録されていますが、\SpecialChar LyX
14034 固有環境の
14035 \family sans
14036 \SpecialChar LyX
14037 コード
14038 \family default
14039
14040 \family sans
14041 コメント
14042 \family default
14043
14044 \family sans
14045 箇条書き(一覧
14046 \family default
14047 )は、新しく
14048 \family sans
14049 ラベリング
14050 \family default
14051 環境に置き換えられています。それ以外にも、標準文書クラスとは異なり、標準環境の
14052 \family sans
14053 \SpecialChar LaTeX
14054
14055 \family default
14056
14057 \family sans
14058 引用(字下げあり)
14059 \family default
14060
14061 \family sans
14062 引用(字下げなし)
14063 \family default
14064
14065 \family sans
14066 詩句
14067 \family default
14068 が収録されています。さらに、新しいletter固有環境がたくさん追加されています。
14069 \end_layout
14070
14071 \begin_layout Standard
14072 この文書クラスで作成した書簡の外観は、様々な\SpecialChar LaTeX
14073 コマンドを\SpecialChar LaTeX
14074 プリアンブルに置くことで制御することができます
14075 \begin_inset Foot
14076 status collapsed
14077
14078 \begin_layout Plain Layout
14079 例えば、名前と住所の入った書簡ヘッダの標準的外観は、きわめて頑固です。「普通の」へッダは、プリアンブル中に以下のようなコマンドを入れることで生成することができま
14080 す。
14081 \end_layout
14082
14083 \begin_layout LyX-Code
14084
14085 \backslash
14086 firsthead{
14087 \backslash
14088 parbox[b]{
14089 \backslash
14090 textwidth}
14091 \end_layout
14092
14093 \begin_layout LyX-Code
14094   {
14095 \backslash
14096 ignorespaces 
14097 \backslash
14098 fromname
14099 \backslash
14100
14101 \backslash
14102  
14103 \backslash
14104 ignorespaces 
14105 \backslash
14106 fromaddress}} 
14107 \end_layout
14108
14109 \begin_layout LyX-Code
14110
14111 \backslash
14112 nexthead{
14113 \backslash
14114 parbox[b]{
14115 \backslash
14116 textwidth}
14117 \end_layout
14118
14119 \begin_layout LyX-Code
14120   {
14121 \backslash
14122 ignorespaces 
14123 \backslash
14124 fromname 
14125 \backslash
14126 hfill 
14127 \backslash
14128 ignorespaces 
14129 \backslash
14130 pagename
14131 \backslash
14132
14133 \end_layout
14134
14135 \begin_layout LyX-Code
14136
14137 \backslash
14138 thepage}}
14139 \end_layout
14140
14141 \end_inset
14142
14143 。これらの\SpecialChar LaTeX
14144 コマンドのドイツ語での詳細な説明は、Koma-Scriptの取扱説明書
14145 \emph on
14146 scrguide
14147 \emph default
14148 にあります。この方法で、書簡の著者は、個人用書簡レイアウトを作ることができます。
14149 \end_layout
14150
14151 \begin_layout Standard
14152
14153 \family sans
14154 書簡
14155 \family default
14156 環境および
14157 \family sans
14158 頭語
14159 \family default
14160 環境は、書簡の冒頭部を定義するもので、すべての書簡で使用しなくてはなりません。\SpecialChar LyX
14161 文書クラスでは、これらの環境を強調するために、左余白にそれぞれ
14162 \shape italic
14163 L
14164 \shape default
14165
14166 \shape italic
14167 O
14168 \shape default
14169 という文字が表示されます。同一ファイル中には、複数の書簡を書くことができます。
14170 \family sans
14171 頭語
14172 \family default
14173 環境は、同じ受取人への書簡を新しく書き出すものであり、
14174 \family sans
14175 書簡
14176 \family default
14177 環境は、新しい受取人を生成するものです。
14178 \family sans
14179 結語
14180 \family default
14181
14182 \family sans
14183 PS
14184 \family default
14185
14186 \family sans
14187 CC
14188 \family default
14189
14190 \family sans
14191 Encl
14192 \family default
14193 は、通常の段落環境なので、同一の書簡中でも何度も使用することができます。
14194 \end_layout
14195
14196 \begin_layout Itemize
14197
14198 \family sans
14199 書簡
14200 \family default
14201 :受取人のための段落をつくり、暗黙に書簡の開始を定義します。
14202 \end_layout
14203
14204 \begin_layout Itemize
14205
14206 \family sans
14207 頭語
14208 \family default
14209 :敬称のための段落をつくり、暗黙に新しい書簡を開始します。
14210 \end_layout
14211
14212 \begin_layout Itemize
14213
14214 \family sans
14215 結語
14216 \family default
14217 :結語のための段落をつくります。
14218 \end_layout
14219
14220 \begin_layout Itemize
14221
14222 \family sans
14223 PS
14224 \family default
14225 :追伸のための段落をつくります。
14226 \end_layout
14227
14228 \begin_layout Itemize
14229
14230 \family sans
14231 CC
14232 \family default
14233 :同報一覧のための段落をつくります。
14234 \end_layout
14235
14236 \begin_layout Itemize
14237
14238 \family sans
14239 Encl
14240 \family default
14241 :同封物のための段落をつくります。
14242 \end_layout
14243
14244 \begin_layout Standard
14245
14246 \family sans
14247 名前
14248 \family default
14249
14250 \family sans
14251 署名
14252 \family default
14253
14254 \family sans
14255 住所
14256 \family default
14257
14258 \family sans
14259 電話
14260 \family default
14261
14262 \family sans
14263 場所(Place
14264 \family default
14265 )・
14266 \family sans
14267 返送先住所
14268 \family default
14269
14270 \family sans
14271 配送手段(Specialmail)
14272 \family default
14273
14274 \family sans
14275 場所
14276 \family default
14277
14278 \family sans
14279 タイトル
14280 \family default
14281
14282 \family sans
14283 主題
14284 \family default
14285 は、情報入力を促すラベルの付いた入力環境で、文書クラスが適切な処理を行います
14286 \begin_inset Foot
14287 status collapsed
14288
14289 \begin_layout Plain Layout
14290 上述の
14291 \family sans
14292 書簡
14293 \family default
14294
14295 \family sans
14296 頭語
14297 \family default
14298 が、これらのような入力環境でないのは、矛盾しているように感じられるかもしれません。しかしながら、これら2つの環境は特別の意味を持っているために、これらは左余白に
14299 一文字をマークした通常の段落環境として実装しました。さらに、
14300 \family sans
14301 頭語
14302 \family default
14303 環境と
14304 \family sans
14305 結語
14306 \family default
14307 環境が著しく異なって見えると対称性が損なわれることになるのも理由の一つです。
14308 \end_layout
14309
14310 \end_inset
14311
14312 。これらの環境は、対応する
14313 \family sans
14314 頭語
14315 \family default
14316 環境の前に置く必要があります。
14317 \end_layout
14318
14319 \begin_layout Standard
14320 生成された書簡の実際の外観は、特定の環境の使い方だけではなく、他の要素にも依存するため、これらの環境をWYSIWYGとして実装することには、あまり意味がありませ
14321 ん。たとえば、
14322 \family sans
14323 署名
14324 \family default
14325 環境で入力した署名は、標準的な挙動では、同じ書簡に
14326 \family sans
14327 結語
14328 \family default
14329 環境も使用されているときのみ、書簡の出力に現れます。
14330 \family sans
14331 電話
14332 \family default
14333 環境に入力された値は、標準的な挙動では、書簡の出力には全く表示されません。書簡のヘッダを自由にデザインできることは、前出の脚注で示してあります。
14334 \end_layout
14335
14336 \begin_layout Standard
14337 入力環境は、空の段落として使うことができます。これは、たとえば
14338 \family sans
14339 署名
14340 \family default
14341 環境の場合に有効です。
14342 \family sans
14343 署名
14344 \family default
14345 環境を全く使用しない場合は、標準的な挙動では、
14346 \family sans
14347 名前
14348 \family default
14349 環境の値が署名として使用されますが、空の
14350 \family sans
14351 署名
14352 \family default
14353 環境を作成しておくと、署名の値は無定義となりません。
14354 \end_layout
14355
14356 \begin_layout Standard
14357 入力環境を使用すると、個人データ(名前や住所など)が既に入力された入力環境と、後から入力するデータの入力環境を備えた、書簡のひな型を作成することができます。
14358 \end_layout
14359
14360 \begin_layout Itemize
14361
14362 \family sans
14363 名前
14364 \family default
14365 :送り主の名前。標準的な挙動では、書簡のヘッダ部にスモールキャップ体の中央揃えの段落として表示されます。
14366 \end_layout
14367
14368 \begin_layout Itemize
14369
14370 \family sans
14371 署名
14372 \family default
14373 :送り主の署名。標準的な挙動では、
14374 \family sans
14375 結語
14376 \family default
14377 環境の下に表示されます。
14378 \family sans
14379 署名
14380 \family default
14381 環境を使用しないと、代わりに
14382 \family sans
14383 名前
14384 \family default
14385 環境の値が表示されます。
14386 \end_layout
14387
14388 \begin_layout Itemize
14389
14390 \family sans
14391 住所
14392 \family default
14393 :送り主の住所。標準的な挙動では、書簡ヘッダの送り主の名前の下に中央揃えの段落として表示されます。
14394 \end_layout
14395
14396 \begin_layout Itemize
14397
14398 \family sans
14399 電話
14400 \family default
14401 :送り主の電話番号。標準的な挙動では、\SpecialChar LaTeX
14402 変数
14403 \family typewriter
14404
14405 \backslash
14406 telephonenum
14407 \family default
14408 を設定するだけです。
14409 \end_layout
14410
14411 \begin_layout Itemize
14412
14413 \family sans
14414 場所(Place)
14415 \family default
14416 :書簡を書いた場所。
14417 \end_layout
14418
14419 \begin_layout Itemize
14420
14421 \family sans
14422 日付
14423 \family default
14424 :書簡を書いた日付。
14425 \family sans
14426 場所(Place)
14427 \family default
14428
14429 \family sans
14430 日付
14431 \family default
14432 は、標準的な挙動では、受取人フィールドの下に、単一の右揃え行として場所と日付を生成します。空の
14433 \family sans
14434 日付
14435 \family default
14436 環境を作成しておくと、
14437 \family sans
14438 場所(Place)
14439 \family default
14440 の値如何に関わらず、場所も日付も表示されません。
14441 \family sans
14442 日付
14443 \family default
14444 環境を使用しない場合には、書簡を出力した日付が使用されます。
14445 \end_layout
14446
14447 \begin_layout Itemize
14448
14449 \family sans
14450 返送先住所
14451 \family default
14452 :送り主の返送先住所。標準的な挙動では、受取人の上に小文字のサンセリフ体フォントで表示されます。
14453 \end_layout
14454
14455 \begin_layout Itemize
14456
14457 \family sans
14458 特別便
14459 \family default
14460 :特別便の情報。標準的な挙動では、受取人フィールドの上かつ返送先住所の下に、下線付きで表示されます。
14461 \end_layout
14462
14463 \begin_layout Itemize
14464
14465 \family sans
14466 場所
14467 \family default
14468 :追加情報。標準的な挙動では、受取人フィールドの下の右側に表示されます。
14469 \end_layout
14470
14471 \begin_layout Itemize
14472
14473 \family sans
14474 タイトル
14475 \family default
14476 :書簡の題名。標準的な挙動では、主題の上に大きなボールド体サンセリフフォントで表示されます。
14477 \end_layout
14478
14479 \begin_layout Itemize
14480
14481 \family sans
14482 主題
14483 \family default
14484 :書簡の主題。標準的な挙動では、
14485 \family sans
14486 頭語
14487 \family default
14488 環境の上にボールド体で表示されます。
14489 \end_layout
14490
14491 \begin_layout Standard
14492
14493 \family sans
14494 Yourref・Yourmail・Myref・顧客・インボイス
14495 \family default
14496 といった環境は、
14497 \family sans
14498 タイトル
14499 \family default
14500 行の上に「Your ref.」・「Your letter of」・「Our ref.」・「Customer no.」・「Invoice no.」・「Date」といったフ
14501 ィールド行を持つ、ビジネス書簡を作成します。日付フィールドには、
14502 \family sans
14503 日付
14504 \family default
14505 環境の値が使用されます。しかしながら、これらの「ビジネス書簡環境」の一つを使用した場合には、
14506 \family sans
14507 場所(Place)
14508 \family default
14509 の値は書簡には表示されなくなり、\SpecialChar LaTeX
14510 変数
14511 \family typewriter
14512
14513 \backslash
14514 fromplace
14515 \family default
14516 が設定させるだけになります。通常時に、受取人フィールドの下に右揃えで出力される場所と日付の出力は、抑制されます。これらのビジネス環境は、ラベル付きの入力環境とし
14517 て実装されており、対応する
14518 \family sans
14519 頭語
14520 \family default
14521 環境よりも前に置く必要があります。
14522 \end_layout
14523
14524 \begin_layout Itemize
14525
14526 \family sans
14527 Yourref
14528 \family default
14529 : Your ref.
14530 \end_layout
14531
14532 \begin_layout Itemize
14533
14534 \family sans
14535 Yourmail
14536 \family default
14537 : Your letter of.
14538 \end_layout
14539
14540 \begin_layout Itemize
14541
14542 \family sans
14543 Myref
14544 \family default
14545 : Our ref.
14546 \end_layout
14547
14548 \begin_layout Itemize
14549
14550 \family sans
14551 Customer
14552 \family default
14553 : Customer no.
14554 \end_layout
14555
14556 \begin_layout Itemize
14557
14558 \family sans
14559 Invoice
14560 \family default
14561 : Invoice no.
14562 \end_layout
14563
14564 \begin_layout Subsection
14565 新しいletterクラス:letter (koma-script v.2)
14566 \end_layout
14567
14568 \begin_layout Standard
14569 by 
14570 \noun on
14571 Jürgen Spitzmüller
14572 \begin_inset VSpace medskip
14573 \end_inset
14574
14575
14576 \end_layout
14577
14578 \begin_layout Standard
14579 \noindent
14580 Koma-Script第2.8版では、新しいletterクラス
14581 \family typewriter
14582 scrlttr2
14583 \family default
14584 が導入されたため、
14585 \family typewriter
14586 scrlettr
14587 \family default
14588 は廃止されてサポート対象外となりました。これは—\SpecialChar LaTeX
14589 側で—全く新しいインターフェイスを持っており、旧クラスとは互換性がありません。したがって、\SpecialChar LyX
14590 は両者をサポートしてい
14591 ますが、新しい方のクラスを使用することを推奨します。
14592 \end_layout
14593
14594 \begin_layout Standard
14595 このクラスは、
14596 \emph on
14597 letter (koma-script)
14598 \emph default
14599 と同一の機能に加えて、新しい機能をいくつかサポートしています。基本となる項目は、
14600 \family sans
14601 住所
14602 \family default
14603 (受取人の住所、旧レイアウトの
14604 \family sans
14605 書簡
14606 \family default
14607 と同じ)・
14608 \family sans
14609 頭語
14610 \family default
14611
14612 \family sans
14613 結語
14614 \family default
14615 です。
14616 \family sans
14617 次の住所
14618 \family default
14619 は別の書簡を新しく開始します(つまり一文書あたり複数の書簡を書くことができます)。新しく付け加えられた項目は、送り主の
14620 \family sans
14621 電子メール
14622 \family default
14623
14624 \family sans
14625 URL
14626 \family default
14627
14628 \family sans
14629 ファックス
14630 \family default
14631
14632 \family sans
14633 銀行
14634 \family default
14635 、およびヘッダに(
14636 \family sans
14637 挿入\SpecialChar menuseparator
14638
14639 \family default
14640 で)
14641 \family sans
14642 ロゴ
14643 \family default
14644 を入れることができるようになった点です。
14645 \end_layout
14646
14647 \begin_layout Standard
14648 しかしながら、もっとも大きな改善は、書簡のレイアウトを、ほとんどどんなニーズにも合わせて設定できるようになった点でしょう。これはプリアンブルか、クラスオプション
14649 として読み込まれる特別なスタイルファイル(「レタークラスオプション」、拡張子
14650 \family typewriter
14651 *.lco
14652 \family default
14653 )によって設定することができます
14654 \begin_inset Foot
14655 status collapsed
14656
14657 \begin_layout Plain Layout
14658 KOMAパッケージには、既定の
14659 \family typewriter
14660 *.lco
14661 \family default
14662 ファイルがいくつか収録されています。たとえば、ドイツの組版規則に則った
14663 \family typewriter
14664 DIN.lco
14665 \family default
14666 や、旧
14667 \family typewriter
14668 scrlettr
14669 \family default
14670 クラスの既定レイアウトを提供する
14671 \family typewriter
14672 KOMAold.lco
14673 \family default
14674 などです。たとえば後者は、
14675 \family sans
14676 文書\SpecialChar menuseparator
14677 設定\SpecialChar menuseparator
14678 文書クラス\SpecialChar menuseparator
14679 クラスオプション
14680 \family default
14681 フィールドにクラスオプション
14682 \family typewriter
14683 KOMAold
14684 \family default
14685 を加えることで読み込むことができます。
14686 \end_layout
14687
14688 \end_inset
14689
14690 。用例としては、\SpecialChar LyX
14691 に収録されているひな型
14692 \emph on
14693 koma-letter2
14694 \emph default
14695 をご覧ください。詳細な解説は、Koma-Script取扱説明書(
14696 \emph on
14697 scrguide
14698 \emph default
14699 )にあります。
14700 \end_layout
14701
14702 \begin_layout Subsection
14703 問題点
14704 \end_layout
14705
14706 \begin_layout Standard
14707 Koma-Script文書クラスを\SpecialChar LyX
14708 上に表示する上で、\SpecialChar LyX
14709 の内部処理が若干の問題を生じめます。
14710 \end_layout
14711
14712 \begin_layout Itemize
14713
14714 \family sans
14715
14716 \family default
14717 環境の章番号は、章見出しと同じ行ではなく、その上に表示されます。これは、レイアウトファイル中の
14718 \family sans
14719 Counter_Chapter
14720 \family default
14721 ラベル型に対する\SpecialChar LyX
14722 の内部処理が原因です。
14723 \end_layout
14724
14725 \begin_layout Itemize
14726
14727 \family sans
14728 章(addchap)
14729 \family default
14730
14731 \family sans
14732 節(addsec)
14733 \family default
14734 環境の見出しは、「本当の」\SpecialChar LaTeX
14735 の目次には追加されますが、\SpecialChar LyX
14736 の目次(
14737 \family sans
14738 移動
14739 \family default
14740 メニュー)には追加されません。
14741 \end_layout
14742
14743 \begin_layout Itemize
14744
14745 \emph on
14746 letter
14747 \emph default
14748 文書クラスでの段落は、垂直スペースによる段落区切りで表示され、字下げはされません。これが標準的な挙動となっていて、特別な\SpecialChar LaTeX
14749 コマンドは必要ありません。しかし、
14750 \family sans
14751 文書\SpecialChar menuseparator
14752 設定
14753 \family default
14754 ダイアログでは、対応するラジオボタンは
14755 \family sans
14756 字下げ
14757 \family default
14758 に設定されています。
14759 \family sans
14760 垂直スペース
14761 \family default
14762 は、隙間を空けるために、文書に\SpecialChar LaTeX
14763 コマンドをつねに追加するようになっていますが、この文書クラスの場合には、そのような挙動が望まれないためです。
14764 \end_layout
14765
14766 \begin_layout Section
14767 Memoir
14768 \end_layout
14769
14770 \begin_layout Standard
14771
14772 \noun on
14773 Jürgen Spitzmüller
14774 \noun default
14775
14776 \end_layout
14777
14778 \begin_layout Subsection
14779 概観
14780 \end_layout
14781
14782 \begin_layout Standard
14783 Memoirは、非常に強力で、着実に改良が加えられている文書クラスであり、フィクションとノンフィクションの文学作品用に設計されています。その目的は、ユーザーに、
14784 文書の組版に関して最大限の裁量を得させることにあります。Memoirは、標準bookクラスに基づいていますが、articleクラスをエミュレートすることもできま
14785 す(以下参照)。
14786 \end_layout
14787
14788 \begin_layout Standard
14789 Memoir開発者であるPeter Wilsonは、\SpecialChar LaTeX
14790 の世界での、多くの便利なパッケージの作者として知られていますが、それらのほとんどは、Memoirに統合されま
14791 した。このため、章のデザインや、目次や付録などのレイアウトを、はるかに簡単に行うことができます。しかしながら、\SpecialChar LyX
14792 は、これらすべての素晴らしい機能をネイティブでサポ
14793 ートしているわけではありません。これらのうちいくつかは、将来のリリースで追加されるかもしれませんが
14794 \begin_inset Foot
14795 status collapsed
14796
14797 \begin_layout Plain Layout
14798 もし提案があれば、ぜひ
14799 \begin_inset Flex URL
14800 status collapsed
14801
14802 \begin_layout Plain Layout
14803
14804 lyx-devel@lists.lyx.org
14805 \end_layout
14806
14807 \end_inset
14808
14809 までお送り下さい。
14810 \end_layout
14811
14812 \end_inset
14813
14814 、\SpecialChar LyX
14815 のフレームワークが持つ制約のために、おそらく決して追加されることのないと考えられるものも多数あります。もちろん、ネイティブな\SpecialChar LaTeX
14816 コマンド(\SpecialChar TeX
14817 コード
14818 \begin_inset Foot
14819 status collapsed
14820
14821 \begin_layout Plain Layout
14822 【参考】詳細は、第
14823 \begin_inset CommandInset ref
14824 LatexCommand ref
14825 reference "sec:LaTeXコードを挿入する"
14826
14827 \end_inset
14828
14829 節参照。
14830 \end_layout
14831
14832 \end_inset
14833
14834 )の助けを借りれば、全機能を使用できます。この節では、\SpecialChar LyX
14835 がネイティブにサポートしている機能についてのみ、列挙するものとします。詳細な説明(および他の機能)について
14836 は、Memoirクラスの詳しい取扱説明書
14837 \begin_inset Foot
14838 status collapsed
14839
14840 \begin_layout Plain Layout
14841 【参考】
14842 \begin_inset Flex URL
14843 status collapsed
14844
14845 \begin_layout Plain Layout
14846
14847 CTAN:/macros/latex/memoir/memman.pdf
14848 \end_layout
14849
14850 \end_inset
14851
14852
14853 \end_layout
14854
14855 \end_inset
14856
14857 をご覧になることをお勧めします。この取扱説明書は、本クラスのユーザーの手引きであるのみに留まらず、良い組版に関する包括的な解説であり、それ自身が良い組版の傑出し
14858 た用例となっています。
14859 \end_layout
14860
14861 \begin_layout Subsection
14862 基本的な機能と制約
14863 \end_layout
14864
14865 \begin_layout Standard
14866 Memoirは、基本的に、標準bookクラスの全機能をサポートしています。しかしながら、以下に示すような若干の違いがあります。
14867 \end_layout
14868
14869 \begin_layout Description
14870 フォント寸法: Memoirでは、9・10・11・12・14・17と、より広い範囲のフォント寸法が使用可能です。
14871 \end_layout
14872
14873 \begin_layout Description
14874 ページ様式: Memoirパッケージとfancyhdrパッケージとのコマンドの衝突のため(両パッケージは同じ名前のコマンドを定義しているため、\SpecialChar LaTeX
14875 が混乱させられます
14876 )、fancyページ様式は使用できません。その代わり、Memoirには、多くの独自のページ様式が付属してきます(
14877 \family sans
14878 文書\SpecialChar menuseparator
14879 設定\SpecialChar menuseparator
14880 ページレイアウト
14881 \family default
14882 参照)。これらを章題ページに使用したい場合には、コマンド
14883 \family typewriter
14884
14885 \backslash
14886 chapterstyle
14887 \family default
14888 を、本文またはプリアンブルに記述する必要があります(例えば、
14889 \family typewriter
14890
14891 \backslash
14892 chapterstyle{companion}
14893 \family default
14894 など)。
14895 \end_layout
14896
14897 \begin_layout Description
14898 節分け: 標準クラスでは、節分けコマンド(章・節・小節等)は、非必須引数を一つ取ることができます。これを用いて、目次やヘッダ用に別のタイトルを指定することができ
14899 ます(たとえば、タイトルが長すぎる場合などに用います)。\SpecialChar LyX
14900 では、章や節の始めで
14901 \family sans
14902 挿入\SpecialChar menuseparator
14903 短縮タイトル
14904 \family default
14905 を使えば、これを指定することができます。一方、Memoirでは、第2の非必須引数を取ることができ、目次用のタイトルとヘッダ用のタイトルの指定を分離しています。こ
14906 れを使えば、本文用と目次用とヘッダ用のタイトルの3種類を指定することができます。この機能を使用したい場合には、2つの非必須引数を入力して、最初のものに目次用、次
14907 のものにヘッダ用短縮タイトルを入れてください。
14908 \end_layout
14909
14910 \begin_layout Description
14911 目次・図一覧・表一覧: 標準クラス(および他の多くのクラス)では、目次と図一覧および表一覧は、自動的に新規頁に置かれます。Memoirは、これとは別の方針を採り
14912 ます。改頁を行いたい場合は、手動で頁区切りを入れなくてはなりません。
14913 \end_layout
14914
14915 \begin_layout Description
14916 タイトル頁: 理由は不明ですが、Memoirはタイトルページに丁付けを行います(標準クラスでは、タイトルページは「empty」様式)。タイトル頁に丁付けを行いた
14917 くない場合には、プリアンブルに
14918 \family typewriter
14919
14920 \backslash
14921 aliaspagestyle{title}{empty}
14922 \family default
14923 と入力してください。
14924 \end_layout
14925
14926 \begin_layout Description
14927 Article: クラスオプション
14928 \emph on
14929 article
14930 \emph default
14931 を用いる(
14932 \family sans
14933 文書\SpecialChar menuseparator
14934 設定\SpecialChar menuseparator
14935 クラスオプション
14936 \family default
14937 で入力)と、article様式をエミュレートできます。すなわち、(脚注・図・表等の)カウンタは、章毎にリセットされず、次の章は頁を改めず(ただし、「本物の」ar
14938 ticleクラスとは違って、頁を改めることも可)、部はbookクラスと同様に、独立の頁を使用します。
14939 \end_layout
14940
14941 \begin_layout Description
14942 Oldfontcommands: \SpecialChar LaTeX
14943 旧2.09版で使用されていた旧いフォントコマンド(
14944 \family typewriter
14945
14946 \backslash
14947 rm
14948 \family default
14949
14950 \family typewriter
14951
14952 \backslash
14953 it
14954 \family default
14955 など)は、Memoirにおいては、既定では使用することができません。Memoirがこれらのコマンドを検知すると、エラーを発して\SpecialChar LaTeX
14956 を停止させます。しかし、クラスオプ
14957 ション
14958 \emph on
14959 oldfontcommands
14960 \emph default
14961 を指定すると、これらのコマンドが容認され、エラーの代わりに警告を発するのみとなります(これによって、少なくとも\SpecialChar LaTeX
14962 は停止しなくなります)。まだ、多くのパッケージと、
14963 就中多くのBib\SpecialChar TeX
14964 スタイルファイルが、これらのコマンドを使用しているので、我々はこのオプションを既定で使うこととしました。
14965 \end_layout
14966
14967 \begin_layout Subsection
14968 追加された機能
14969 \end_layout
14970
14971 \begin_layout Standard
14972 \SpecialChar LyX
14973 でサポートされる機能(今のところそれほど多くはありません)を簡単に説明しましょう。詳しくはMemoirの取扱説明書
14974 \begin_inset Foot
14975 status collapsed
14976
14977 \begin_layout Plain Layout
14978 \begin_inset Flex URL
14979 status collapsed
14980
14981 \begin_layout Plain Layout
14982
14983 CTAN:/macros/latex/memoir/memman.pdf
14984 \end_layout
14985
14986 \end_inset
14987
14988
14989 \end_layout
14990
14991 \end_inset
14992
14993 を見てください。
14994 \end_layout
14995
14996 \begin_layout Description
14997 概要: 概要が、追加された機能として扱われているのを不思議に思われるかもしれませんが、bookクラスとしては追加された機能なのです。通常bookクラスには概要は
14998 ないのですが、memoirにはあります。これは、どこでも何回でも自由に使うことができます。
14999 \end_layout
15000
15001 \begin_layout Description
15002 章要約: この古い組版様式はご覧になったことがあるかも知れません。章の内容が、見出しの下と目次に要約されているものです(たとえば、「我らが英雄がトロヤに到着する
15003 。彼は友人を失うが、新たな友人を得る。」など)。章要約(chapterprecis)はこれを行います。したがって、章要約は章の下でのみ意味を持ちます。
15004 \end_layout
15005
15006 \begin_layout Description
15007 題辞: 題辞(epigraph)は章頭の、気の利いた標語やモットーです。題辞環境は、そのような標語を組む洗練された方法を提供します。標語本体(本文)とその著者(
15008 出典)は、短い線で区切られます。この環境には二つの引数(本文と出典)が必要なので、ここでも\SpecialChar LyX
15009 を少しだます必要があります。ここでは、2つの引数の間に、
15010 \emph on
15011 <標語>
15012 \family typewriter
15013 \emph default
15014 }{
15015 \family default
15016 \emph on
15017 <標語の著者>
15018 \emph default
15019 のように、(\SpecialChar TeX
15020 モードで)波括弧を入れなくてはなりません。
15021 \end_layout
15022
15023 \begin_layout Description
15024 詩題: Memoirには(複雑で隠喩的なものも含めて)詩を組版するための多くの機能がありますが、\SpecialChar LyX
15025 は、そのうちいくつかしかサポートしていません。詩題はその一つです
15026 。これは詩用の中央揃えタイトルで、目次にも表示されます(詩句が詩の標準環境です。Memoirには、詩句の拡張版もありますが、これらを使うためには\SpecialChar TeX
15027 コードを使用しな
15028 くてはなりません。これらの環境は通常の詩句環境の中に入れ子にしなくてはならないのですが、\SpecialChar LyX
15029 ではそれができないためです)。
15030 \end_layout
15031
15032 \begin_layout Description
15033 詩題*: 目次に現れない他は詩題と同じです。
15034 \end_layout
15035
15036 \begin_layout Section
15037 Article (mwart)・book (mwbk)・report (mwrep)
15038 \begin_inset Argument status
15039 status collapsed
15040
15041 \begin_layout Plain Layout
15042 The 
15043 \family typewriter
15044 mw
15045 \family default
15046  Classes
15047 \end_layout
15048
15049 \end_inset
15050
15051
15052 \end_layout
15053
15054 \begin_layout Standard
15055
15056 \noun on
15057 Tomasz Luczak
15058 \noun default
15059
15060 \end_layout
15061
15062 \begin_layout Standard
15063 \SpecialChar LyX
15064 文書クラス
15065 \emph on
15066 article (mwart)
15067 \emph default
15068
15069 \emph on
15070 report (mwrep)・book
15071 \emph default
15072  
15073 \emph on
15074 (mwbk)
15075 \emph default
15076 は、それぞれ\SpecialChar LaTeX
15077 文書クラス
15078 \family typewriter
15079 mwart.cls
15080 \family default
15081
15082 \family typewriter
15083 mwrep.cls
15084 \family default
15085
15086 \family typewriter
15087 mwbk.cls
15088 \family default
15089 に対応しています。これらは、標準の
15090 \family typewriter
15091 article.cls
15092 \family default
15093
15094 \family typewriter
15095 report.cls
15096 \family default
15097
15098 \family typewriter
15099 book.cls
15100 \family default
15101 を代替するものであり、多くの点で、ポーランド語の組版慣習によく適合しています。
15102 \end_layout
15103
15104 \begin_layout Standard
15105 基本的な違いは、次の点です。
15106 \end_layout
15107
15108 \begin_layout Itemize
15109 付番のない見出し(
15110 \family sans
15111 節*
15112 \family default
15113 などの星付き)も目次に加えられます。
15114 \end_layout
15115
15116 \begin_layout Itemize
15117 以下のページスタイルの追加
15118 \begin_inset Separator parbreak
15119 \end_inset
15120
15121
15122 \end_layout
15123
15124 \begin_deeper
15125 \begin_layout Description
15126 uheadings 分離線付きヘッダ
15127 \end_layout
15128
15129 \begin_layout Description
15130 myheadings 
15131 \family typewriter
15132
15133 \backslash
15134 markright
15135 \family default
15136 コマンドおよび
15137 \family typewriter
15138
15139 \backslash
15140 markboth
15141 \family default
15142 コマンドで設定するカスタムヘッダ
15143 \end_layout
15144
15145 \begin_layout Description
15146 myuheadings 分離線付きカスタムヘッダ
15147 \end_layout
15148
15149 \begin_layout Description
15150 outer ページの外側にページ番号
15151 \end_layout
15152
15153 \end_deeper
15154 \begin_layout Itemize
15155 オプション
15156 \begin_inset Separator parbreak
15157 \end_inset
15158
15159
15160 \end_layout
15161
15162 \begin_deeper
15163 \begin_layout Description
15164 rmheadings セリフ体見出し — 既定
15165 \end_layout
15166
15167 \begin_layout Description
15168 sfheadings サンセリフ体見出し
15169 \end_layout
15170
15171 \begin_layout Description
15172 authortitle タイトルページは、著者名・タイトルの順で配置 — 既定
15173 \end_layout
15174
15175 \begin_layout Description
15176 titleauthor タイトルページは、タイトル・著者名の順で配置
15177 \end_layout
15178
15179 \begin_layout Description
15180 withmarginpar ページ上に余白のための場所を確保
15181 \end_layout
15182
15183 \end_deeper
15184 \begin_layout Section
15185 Paper
15186 \end_layout
15187
15188 \begin_layout Standard
15189
15190 \family sans
15191 paper
15192 \family default
15193 文書クラスは標準
15194 \family sans
15195 article
15196 \family default
15197 クラスの代替となるものです。これは
15198 \family sans
15199 同様の
15200 \family default
15201 機能を提供しますが、サンセリフ体の節見出し・ヘッディング等を持つこちらのレイアウトの方が気に入るかも知れません。
15202 \end_layout
15203
15204 \begin_layout Section
15205 Rev\SpecialChar TeX
15206 4
15207 \end_layout
15208
15209 \begin_layout Standard
15210 by 
15211 \noun on
15212 Amir Karger
15213 \end_layout
15214
15215 \begin_layout Standard
15216 \begin_inset VSpace bigskip
15217 \end_inset
15218
15219
15220 \end_layout
15221
15222 \begin_layout Standard
15223 \noindent
15224
15225 \family sans
15226 Revtex
15227 \begin_inset space ~
15228 \end_inset
15229
15230 4
15231 \family default
15232 テキストクラスは、アメリカ物理学会のRev\SpecialChar TeX
15233  4.0(1999年5月の
15234 \begin_inset Formula $\beta$
15235 \end_inset
15236
15237 リリース)クラスで動作します。
15238 \end_layout
15239
15240 \begin_layout Standard
15241 \SpecialChar LyX
15242 には、Rev\SpecialChar TeX
15243  3.1で動作する
15244 \family sans
15245 Revtex
15246 \family default
15247 テキストクラスもあります。しかしながら、第3.1版は\SpecialChar LaTeX
15248  2.09で動作するものであり、基本的に時代遅れなものになっています。\SpecialChar LyX
15249 は\SpecialChar LaTeX2e
15250 を必要とすることから、第3.1版は\SpecialChar LyX
15251 とうまく
15252 協調しないことを意味しますが、動作するようには調整してあります。Rev\SpecialChar TeX
15253  4.0は、\SpecialChar LaTeX2e
15254 で素直に動作するようにデザインされているので、\SpecialChar LyX
15255
15256 \family sans
15257 Rev\SpecialChar TeX
15258
15259 \begin_inset space ~
15260 \end_inset
15261
15262 4
15263 \family default
15264 テキストクラスの組で使用するのは、たいへん簡単です。
15265 \end_layout
15266
15267 \begin_layout Standard
15268 この取扱説明書は、Rev\SpecialChar TeX
15269  4.0の説明書の
15270 \emph on
15271 補完
15272 \emph default
15273 として使用されることを前提としています。したがって、ここではRev\SpecialChar TeX
15274 固有マクロの説明はせず、必要な場合にはプリアンブルに何と書けば良いかを知っているものとして説明
15275 します。
15276 \end_layout
15277
15278 \begin_layout Subsection
15279 導入
15280 \end_layout
15281
15282 \begin_layout Standard
15283 Rev\SpecialChar TeX
15284  4パッケージのREADMEファイルにあるとおり、ともかくRev\SpecialChar TeX
15285  4を導入しなくてはなりません。パッケージは、The Rev\SpecialChar TeX
15286  4 Web
15287  Site 
15288 \begin_inset Flex URL
15289 status collapsed
15290
15291 \begin_layout Plain Layout
15292
15293 http://publish.aps.org/revtex4/
15294 \end_layout
15295
15296 \end_inset
15297
15298 から入手することができます。これを\SpecialChar LaTeX
15299 が検出することのできる場所に導入してください。それから、適当に選んだディレクトリ(もといクラスファイルを導入したのとは異なるデ
15300 ィレクトリ)で簡単なRev\SpecialChar TeX
15301  4文書を \SpecialChar LaTeX
15302 でコンパイルできるかどうか確認してください。この後、\SpecialChar LyX
15303 を環境構成すると、クラスファイルを検出し、Rev\SpecialChar TeX
15304 4テキストクラスが使用
15305 できるようになるはずです。
15306 \end_layout
15307
15308 \begin_layout Standard
15309 使い始めるには、
15310 \family typewriter
15311 tex2lyx
15312 \family default
15313 を使ってRev\SpecialChar TeX
15314  4文書を読み込むか、またはひな型ディレクトリにある
15315 \family sans
15316 Revtex
15317 \begin_inset space ~
15318 \end_inset
15319
15320 4
15321 \family default
15322 のひな型を使うのが、おそらく一番簡単な方法でしょう。
15323 \end_layout
15324
15325 \begin_layout Subsection
15326 プリアンブルに関すること
15327 \end_layout
15328
15329 \begin_layout Standard
15330
15331 \family typewriter
15332
15333 \backslash
15334 documentclass
15335 \family default
15336 に与える「preprint」や「aps」のような非必須引数は、他のクラス同様、
15337 \family sans
15338 文書\SpecialChar menuseparator
15339 設定\SpecialChar menuseparator
15340 文書クラス
15341 \family default
15342
15343 \family sans
15344 クラスオプション
15345 \family default
15346 フィールドに入れます。Rev\SpecialChar TeX
15347 では、少なくとも一つの非必須引数が必要なことに注意してください。
15348 \end_layout
15349
15350 \begin_layout Standard
15351
15352 \family typewriter
15353
15354 \backslash
15355 draft
15356 \family default
15357 など他のプリアンブルは、他のクラス同様、
15358 \family sans
15359 文書\SpecialChar menuseparator
15360 設定\SpecialChar menuseparator
15361 \SpecialChar LaTeX
15362 プリアンブル
15363 \family default
15364 に入れてください。
15365 \end_layout
15366
15367 \begin_layout Subsection
15368 レイアウト
15369 \end_layout
15370
15371 \begin_layout Standard
15372 レイアウトは、基本的にRev\SpecialChar TeX
15373 4.0のコマンドに対応しています。たとえば、Emailレイアウトは、
15374 \family typewriter
15375
15376 \backslash
15377 email{}
15378 \family default
15379 に対応しています。(少なくともRev\SpecialChar TeX
15380  4.0 Beta現在では)
15381 \family sans
15382 住所
15383 \family default
15384
15385 \family sans
15386 所属
15387 \family default
15388 はまったく同じものなので、両方を使う必要はありません
15389 \begin_inset Foot
15390 status collapsed
15391
15392 \begin_layout Plain Layout
15393 ついでながら、
15394 \family typewriter
15395 tex2lyx
15396 \family default
15397 は両方とも対応しているので、
15398 \family typewriter
15399
15400 \backslash
15401 address
15402 \family default
15403
15404 \family typewriter
15405
15406 \backslash
15407 affiliation
15408 \family default
15409 のどちらも翻訳することができます。
15410 \end_layout
15411
15412 \end_inset
15413
15414
15415 \end_layout
15416
15417 \begin_layout Subsection
15418 重要な注意
15419 \end_layout
15420
15421 \begin_layout Standard
15422 Rev\SpecialChar TeX
15423  4には、バグを引き起こしがちなために、気をつけなくてはならない特殊な面がいくつかあるため、\SpecialChar LyX
15424 ではさらに気をつけなくてはなりません。
15425 \end_layout
15426
15427 \begin_layout Standard
15428 Rev\SpecialChar TeX
15429 では、
15430 \family typewriter
15431
15432 \backslash
15433 thanks
15434 \family default
15435 コマンドは、
15436 \family typewriter
15437
15438 \backslash
15439 author
15440 \family default
15441 コマンドの
15442 \emph on
15443 外側
15444 \emph default
15445 に来なくてはなりません。\SpecialChar LyX
15446 では、独立した
15447 \family sans
15448 感謝
15449 \family default
15450 レイアウトがこの働きをします。直接
15451 \family sans
15452 、著者
15453 \family default
15454 レイアウトに脚注を付けてしまうと、おかしなことが起こる可能性があります。詳細については、Rev\SpecialChar TeX
15455  4の取扱説明書をご覧ください。
15456 \end_layout
15457
15458 \begin_layout Standard
15459 また、
15460 \family sans
15461 著者電子メール
15462 \family default
15463
15464 \family sans
15465 著者URL・感謝(thanks)
15466 \family default
15467 レイアウトは、
15468 \family sans
15469 著者
15470 \family default
15471 レイアウトと
15472 \family sans
15473 住所(
15474 \family default
15475 または同等の
15476 \family sans
15477 所属
15478 \family default
15479 )レイアウトの間に置かなければなりません。
15480 \family sans
15481 感謝(thanks)
15482 \family default
15483
15484 \family sans
15485 住所
15486 \family default
15487 の後に置いてしまうと、\SpecialChar LaTeX
15488 はコンパイルに失敗します。
15489 \end_layout
15490
15491 \begin_layout Subsection
15492 問題点
15493 \end_layout
15494
15495 \begin_layout Standard
15496 このレイアウトの主な問題点は、電子メールやタイトルのようなレイアウトに非必須引数を用いることができないことです(これはこのレイアウトだけの問題ではありません。例
15497 えば、節レイアウトも非必須引数を使用することができません)。これは、たとえばページヘッダにヘッダ用タイトルを設定したい場合などには、ファイルを\SpecialChar LaTeX
15498 ファイルに変換した
15499 後に(これは最終的にAPSに原稿を送る際には行わなくてはなりません)、テキストエディタを使って\SpecialChar LaTeX
15500 ファイルを編集し、非必須引数を書き加えなくてはならないということで
15501 す。これらのレイアウトがないと、
15502 \family typewriter
15503
15504 \backslash
15505 altaffiliation
15506 \family default
15507 (またそれと同等な
15508 \family typewriter
15509
15510 \backslash
15511 altaddress
15512 \family default
15513 )は使えませんので、対応するレイアウトは存在せず、手動で書き加える必要があります
15514 \begin_inset Foot
15515 status collapsed
15516
15517 \begin_layout Plain Layout
15518
15519 \emph on
15520 JMarcからの註:
15521 \emph default
15522  実は、\SpecialChar LyX
15523  1.3.0 では非必須引数を一部サポートしているのですが、このレイアウトは、まだこの機能を使うようにはアップデートされていないのです。
15524 \end_layout
15525
15526 \end_inset
15527
15528
15529 \end_layout
15530
15531 \begin_layout Section
15532 Springer学術誌(
15533 \family sans
15534 svjour)
15535 \end_layout
15536
15537 \begin_layout Standard
15538
15539 \noun on
15540 Martin Vermeer
15541 \noun default
15542
15543 \end_layout
15544
15545 \begin_layout Subsection
15546 説明
15547 \end_layout
15548
15549 \begin_layout Standard
15550 これは、Springer Verlag社発行のいくつかの学術誌で使用されている書式のレイアウトファイルです。
15551 \begin_inset Flex URL
15552 status collapsed
15553
15554 \begin_layout Plain Layout
15555
15556 http://www.springer.de/author/tex/help-journals.html
15557 \end_layout
15558
15559 \end_inset
15560
15561 に必要なクラスファイル(\SpecialChar LaTeX2e
15562 用になりました)とそれに対応する学術誌の一覧があります。このレイアウトはモジュール式になっています。つまり、全ジャーナル共通部分は
15563 \family typewriter
15564 svjour.inc
15565 \family default
15566 に実装されており、各誌個別のレイアウトファイル(たとえばJournal of Geodesy用の
15567 \family typewriter
15568 svjog.layout
15569 \family default
15570 など)から取り込むことができます。
15571 \end_layout
15572
15573 \begin_layout Standard
15574 このことは、上記の学術誌一覧にある他のSpringer誌のサポートを実装するためには、
15575 \family typewriter
15576 svjog.layout
15577 \family default
15578 に書かれている指示に従って、自作の
15579 \family typewriter
15580 sv
15581 \family default
15582 <学術誌名>
15583 \family typewriter
15584 .layout
15585 \family default
15586 を書くだけで良いことを意味します。
15587 \end_layout
15588
15589 \begin_layout Standard
15590 このレイアウトは、Journal of Geodesyに対してのみ、充分な試験が為されています。
15591 \family typewriter
15592 svjour
15593 \family default
15594
15595 \family typewriter
15596 svjog
15597 \family default
15598 は、標準\SpecialChar LyX
15599 頒布版に収録済みです。関連するクラスファイルを(Springerからダウンロードして)適切なディレクトリに導入し、\SpecialChar LaTeX
15600 を再設定した後(teTeXの場合は、必
15601 要に応じてroot権限で
15602 \family typewriter
15603 texhash
15604 \family default
15605 を実行します)、\SpecialChar LyX
15606 を環境構成すれば、動作するはずです。
15607 \end_layout
15608
15609 \begin_layout Subsection
15610 新スタイル
15611 \end_layout
15612
15613 \begin_layout Standard
15614 多くの定理環境 — 
15615 \family sans
15616 主張
15617 \family default
15618
15619 \family sans
15620 推論
15621 \family default
15622 ・\SpecialChar ldots
15623
15624 \family sans
15625 定理
15626 \family default
15627
15628 \end_layout
15629
15630 \begin_layout Standard
15631
15632 \family sans
15633 ヘッドノート
15634 \family default
15635
15636 \family sans
15637 献呈
15638 \family default
15639
15640 \family sans
15641 サブタイトル・ヘッダ用\SpecialChar LaTeX
15642 タイトル・ヘッダ用著者名・所属機関・メール・オフプリント・キーワード・謝辞(acknowledgements)・謝辞(acknowledg
15643 ement)
15644 \family default
15645 。詳しくは Springerのクラスファイルの説明書を読んでください。
15646 \end_layout
15647
15648 \begin_layout Subsection
15649 サポートしているジャーナル
15650 \end_layout
15651
15652 \begin_layout Itemize
15653
15654 \emph on
15655 Journal of Geodesy
15656 \emph default
15657
15658 \family typewriter
15659 svjog.layout
15660 \family default
15661  — Martin Vermeer
15662 \end_layout
15663
15664 \begin_layout Itemize
15665
15666 \emph on
15667 Probability Theory and Related Fields
15668 \emph default
15669
15670 \family typewriter
15671 svprobth.layout
15672 \family default
15673  — Jean-Marc Lasgouttes
15674 \end_layout
15675
15676 \begin_layout Standard
15677 あなた自身のレイアウトファイルをつくってください。難しくはありません。
15678 \end_layout
15679
15680 \begin_layout Subsection
15681 Credits
15682 \end_layout
15683
15684 \begin_layout Standard
15685 これらのファイルは、以前の 
15686 \family typewriter
15687 ejour2.layout
15688 \family default
15689 をもとにしています。
15690 \family typewriter
15691 ejour2.layout
15692 \family default
15693 は Springerの\SpecialChar LaTeX
15694  2.09用のスタイルファイルを使った素人細工のようなレイアウトファイルです。これらのファイルはすでにありません。Jean-Marc
15695  Lasgouttesのおかげで \SpecialChar LyX
15696 のレイアウトファイルのメカニズムをよりよく理解することができました。
15697 \end_layout
15698
15699 \begin_layout Subsection
15700 バグ
15701 \end_layout
15702
15703 \begin_layout Standard
15704 多分あります。以前の 
15705 \family typewriter
15706 ejour2
15707 \family default
15708 よりは少なくなっているとは思いますが。
15709 \end_layout
15710
15711 \begin_layout Standard
15712 制限事項:定理環境の環境の番号は表示されません。#が表示されるだけです。
15713 \end_layout
15714
15715 \begin_layout Section
15716 Slides (別名
15717 \noun on
15718 Sli\SpecialChar TeX
15719
15720 \noun default
15721 )
15722 \begin_inset Foot
15723 status collapsed
15724
15725 \begin_layout Plain Layout
15726 (訳註)この節の内容は、全般的に古くなっています。
15727 \end_layout
15728
15729 \end_inset
15730
15731
15732 \begin_inset CommandInset label
15733 LatexCommand label
15734 name "sec:slitex"
15735
15736 \end_inset
15737
15738
15739 \end_layout
15740
15741 \begin_layout Standard
15742
15743 \noun on
15744 John Weiss
15745 \noun default
15746
15747 \end_layout
15748
15749 \begin_layout Subsection
15750 はじめに
15751 \end_layout
15752
15753 \begin_layout Standard
15754 本節では、オーバーへッドプロジェクタ用のスライドをつくるのに、\SpecialChar LyX
15755 をどのように使えばよいかを説明します。これを行う文書クラスには、既定のslideクラスと
15756 \family sans
15757 Foil\SpecialChar TeX
15758
15759 \family default
15760 スライドクラスの2つがあります。本節は前者について説明を行います。
15761 \end_layout
15762
15763 \begin_layout Standard
15764 誤解のないように、正しく明確に、もう一度言っておきます。
15765 \end_layout
15766
15767 \begin_layout Standard
15768 \begin_inset VSpace bigskip
15769 \end_inset
15770
15771
15772 \end_layout
15773
15774 \begin_layout Standard
15775 \align center
15776
15777 \size large
15778 本節は文書クラス
15779 \begin_inset Quotes eld
15780 \end_inset
15781
15782
15783 \family sans
15784 transparencies (slides)
15785 \family default
15786
15787 \begin_inset Quotes erd
15788 \end_inset
15789
15790
15791 \emph on
15792 のみ
15793 \emph default
15794 を説明しています。
15795 \end_layout
15796
15797 \begin_layout Standard
15798 \begin_inset VSpace bigskip
15799 \end_inset
15800
15801
15802 \end_layout
15803
15804 \begin_layout Standard
15805
15806 \family sans
15807 「slides (Foil\SpecialChar TeX
15808 )
15809 \family default
15810 」の説明をお探しならば、第
15811 \begin_inset CommandInset ref
15812 LatexCommand ref
15813 reference "sec:foiltex"
15814
15815 \end_inset
15816
15817 節をご覧ください。
15818 \family sans
15819 foils
15820 \family default
15821 クラス「
15822 \family sans
15823 slides (Foil\SpecialChar TeX
15824 )
15825 \family default
15826 」は、実際、本節で説明している既定
15827 \family sans
15828 slides
15829 \family default
15830 クラスよりも良いようです
15831 \begin_inset Foot
15832 status collapsed
15833
15834 \begin_layout Plain Layout
15835 \SpecialChar ldots
15836
15837 \family sans
15838 Foil\SpecialChar TeX
15839
15840 \family default
15841 の支持者からは聞いています。けれども私は使ったことがないので、本当かどうか確かめようがありません。
15842 \end_layout
15843
15844 \end_inset
15845
15846
15847 \end_layout
15848
15849 \begin_layout Standard
15850 このクラスは、旧SLI\SpecialChar TeX
15851 パッケージを\SpecialChar LaTeX2e
15852 用に改良したものです。\SpecialChar LaTeX2e
15853 頒布版すべてが、このクラス(以下では単に「
15854 \family sans
15855 slides
15856 \family default
15857 」と述べることにします)を含んでいるので、あなたもお持ちのはずです。前述の
15858 \family sans
15859 foils
15860 \family default
15861 のように、同じくオーバーへッドプロジェクタ用のスライドを生成しながら、このクラスよりも良い仕事をするクラスもあります。しかしながら、オーバーレイを生成するなど、
15862 他のクラスにはできないが
15863 \family sans
15864 slides
15865 \family default
15866 ならばできることもあります。詳しくは以下をお読みください。
15867 \end_layout
15868
15869 \begin_layout Subsection
15870 使い始めるには
15871 \begin_inset CommandInset label
15872 LatexCommand label
15873 name "sec:slidesetup"
15874
15875 \end_inset
15876
15877
15878 \end_layout
15879
15880 \begin_layout Standard
15881 当然ながら、この文書クラスを使用するには、
15882 \family sans
15883 文書\SpecialChar menuseparator
15884 設定
15885 \family default
15886 ダイアログのクラスリストから「
15887 \family sans
15888 transparencies (slides)
15889 \family default
15890 」を選択しなくてはなりません。このクラスについて、以下のように、特に知っておいた方が良いことがいくつかあります。
15891 \end_layout
15892
15893 \begin_layout Itemize
15894
15895 \family sans
15896 用紙方向
15897 \family default
15898
15899 \family sans
15900 二段組文書
15901 \family default
15902 の各オプションは、あえて変更する必要はありません。これらのオプションは、
15903 \family sans
15904 slides
15905 \family default
15906 クラスではサポートされていないので、効果がありません。
15907 \end_layout
15908
15909 \begin_layout Itemize
15910
15911 \family sans
15912 ヘディング様式
15913 \family default
15914 オプションは、このクラスでは少し異なった振る舞いをします。各選択肢とその機能は、以下の通りです。
15915 \begin_inset Separator parbreak
15916 \end_inset
15917
15918
15919 \end_layout
15920
15921 \begin_deeper
15922 \begin_layout Description
15923 プレーン(plain) 最終出力の右下隅にページ番号が付きます。
15924 \end_layout
15925
15926 \begin_layout Description
15927 設定(headings)
15928 \family sans
15929  プレーン(plain)
15930 \family default
15931 と同様ですが、それ以外にあなたが指定したタイムマーカーをすべて出力します。これが既定値です。
15932 \end_layout
15933
15934 \begin_layout Description
15935 空 最終出力には、ページ番号もタイムマーカーも位置揃えマーカーも出力されません。
15936 \end_layout
15937
15938 \end_deeper
15939 \begin_layout Itemize
15940
15941 \family sans
15942 slides
15943 \family default
15944 クラスには、もう一つ
15945 \family typewriter
15946 clock
15947 \family default
15948 というオプションがあります。これを使用するには、
15949 \family sans
15950 クラスオプション
15951 \family default
15952 に「
15953 \family typewriter
15954 clock
15955 \family default
15956 」と入力してください。
15957 \begin_inset Separator parbreak
15958 \end_inset
15959
15960
15961 \end_layout
15962
15963 \begin_deeper
15964 \begin_layout Standard
15965 このオプションを使うと、
15966 \family sans
15967 注釈
15968 \family default
15969 にタイムマーカーを加えることができます。詳細は、第
15970 \begin_inset CommandInset ref
15971 LatexCommand ref
15972 reference "sec:スライド注釈"
15973
15974 \end_inset
15975
15976 節をご覧ください。
15977 \end_layout
15978
15979 \end_deeper
15980 \begin_layout Standard
15981
15982 \family sans
15983 slides
15984 \family default
15985 クラスを用いた文書を自動的にセットアップするには、ひな型ファイル「
15986 \family typewriter
15987 slides.lyx
15988 \family default
15989 」を使用することもできます(新規ファイルを開く際に
15990 \family sans
15991 ファイル\SpecialChar menuseparator
15992 新規(ひな型使用)
15993 \family default
15994 を使用してください)。ひな型ファイルには、このクラスが使用する特別な段落環境の用例も含まれています。これらについては、以下で説明します。
15995 \end_layout
15996
15997 \begin_layout Subsection
15998 段落環境
15999 \end_layout
16000
16001 \begin_layout Subsubsection
16002
16003 \family sans
16004 サポートされている環境
16005 \end_layout
16006
16007 \begin_layout Standard
16008 新しく
16009 \family sans
16010 slides
16011 \family default
16012 文書を開いたときにまず気付くのは、フォント寸法とフォント族の違いでしょう。ここでは、
16013 \family sans
16014 サンセリフ体
16015 \family default
16016 フォントの
16017 \family sans
16018 極大
16019 \family default
16020 寸法が用いられており、出力でもこのフォントが使用されます。これは、現在スライドを作成中であることの「目印」だと考えてください。出力スライドは大きなフォントを使用
16021 するため、書ける場所は少なくなります。もちろん、既定の大きな画面フォントはWYSIWYGではなく、スライドであることの目印に過ぎません。
16022 \end_layout
16023
16024 \begin_layout Standard
16025 次に気付くのは、(ツールバー左端の)段落環境プルダウンボックスが変わっていることでしょう。通常見かける環境の多くがなくなって、代わりに5つの新しい環境が入ってい
16026 ます。これは、
16027 \family sans
16028 slides
16029 \family default
16030 クラスが、標準段落環境のうち以下のものしかサポートしていないためです。
16031 \end_layout
16032
16033 \begin_layout Itemize
16034
16035 \family sans
16036 標準
16037 \end_layout
16038
16039 \begin_layout Itemize
16040
16041 \family sans
16042 箇条書き(記号)
16043 \end_layout
16044
16045 \begin_layout Itemize
16046
16047 \family sans
16048 箇条書き(連番)
16049 \end_layout
16050
16051 \begin_layout Itemize
16052
16053 \family sans
16054 箇条書き(記述)
16055 \end_layout
16056
16057 \begin_layout Itemize
16058
16059 \family sans
16060 箇条書き(一覧)
16061 \end_layout
16062
16063 \begin_layout Itemize
16064
16065 \family sans
16066 引用(字下げあり)
16067 \end_layout
16068
16069 \begin_layout Itemize
16070
16071 \family sans
16072 引用(字下げなし)
16073 \end_layout
16074
16075 \begin_layout Itemize
16076
16077 \family sans
16078 詩句
16079 \end_layout
16080
16081 \begin_layout Itemize
16082
16083 \family sans
16084 キャプション
16085 \end_layout
16086
16087 \begin_layout Itemize
16088
16089 \family sans
16090 \SpecialChar LyX
16091 コード
16092 \end_layout
16093
16094 \begin_layout Itemize
16095
16096 \family sans
16097 コメント
16098 \end_layout
16099
16100 \begin_layout Standard
16101 これ以外の標準的な環境、例えば節見出し用の環境などは
16102 \family sans
16103 slides
16104 \family default
16105 クラスでは使えません。
16106 \end_layout
16107
16108 \begin_layout Standard
16109 一方、以下の新しい環境があります。
16110 \end_layout
16111
16112 \begin_layout Itemize
16113
16114 \family sans
16115 スライド
16116 \end_layout
16117
16118 \begin_layout Itemize
16119
16120 \family sans
16121 オーバーレイ
16122 \end_layout
16123
16124 \begin_layout Itemize
16125
16126 \family sans
16127 注釈
16128 \end_layout
16129
16130 \begin_layout Itemize
16131
16132 \family sans
16133 不可視文
16134 \end_layout
16135
16136 \begin_layout Itemize
16137
16138 \family sans
16139 可視文
16140 \end_layout
16141
16142 \begin_layout Standard
16143 これら5つの環境は、\SpecialChar LyX
16144 の「機能」のために使い方に癖があります。ご存じのように、\SpecialChar LyX
16145 では、空の段落環境に他の環境を入れることができません。それ自体は素晴らしいデザインな
16146 のですが、これは、スライドを平文以外では書き始めることができないことを意味します。これを取り扱うためには、ちょっとした「\SpecialChar LaTeX
16147 マジック」が必要になります。
16148 \end_layout
16149
16150 \begin_layout Subsubsection
16151 新環境の癖
16152 \begin_inset CommandInset label
16153 LatexCommand label
16154 name "sec:スライドの癖"
16155
16156 \end_inset
16157
16158
16159 \end_layout
16160
16161 \begin_layout Standard
16162 5つの新しい環境にはすべて、\SpecialChar LyX
16163 現行版の制約に由来する癖があります。いま述べたように、\SpecialChar LyX
16164 では、環境を別の環境で開始することが禁止されています。これを回避するために、
16165 \family sans
16166 スライド
16167 \family default
16168 環境は『
16169 \emph on
16170 ユーザーの手引き
16171 \emph default
16172 』で述べられているような段落環境ではなくなっています。
16173 \end_layout
16174
16175 \begin_layout Standard
16176
16177 \family sans
16178 スライド
16179 \family default
16180
16181 \family sans
16182 オーバーレイ
16183 \family default
16184
16185 \family sans
16186 注釈
16187 \family default
16188 は「疑似環境」だとお考えください。これらは節見出しや「
16189 \family sans
16190 キャプション
16191 \family default
16192 」のように見えますが、実際には(必要なら前段落を終了して)新しい段落環境を開始します。同様に、
16193 \family sans
16194 不可視文
16195 \family default
16196
16197 \family sans
16198 可視文
16199 \family default
16200 も「疑似コマンド」とお考えください。この2つは特定のアクションを行います。
16201 \end_layout
16202
16203 \begin_layout Standard
16204
16205 \family sans
16206 スライド
16207 \family default
16208
16209 \family sans
16210 オーバーレイ
16211 \family default
16212
16213 \family sans
16214 注釈
16215 \family default
16216
16217 \family sans
16218 不可視文
16219 \family default
16220
16221 \family sans
16222 可視文
16223 \family default
16224 の5環境に共通しているのは、長めのラベルを持つことです。このラベルに続く文章—通常は段落環境の内容になるはずですが—は、
16225 \family sans
16226 スライド
16227 \family default
16228
16229 \family sans
16230 オーバーレイ
16231 \family default
16232
16233 \family sans
16234 注釈
16235 \family default
16236
16237 \family sans
16238 不可視文
16239 \family default
16240
16241 \family sans
16242 可視文
16243 \family default
16244 では、まったく意味がなく、\SpecialChar LyX
16245 はこの部分を完全に無視します。これらの5つの環境の内容は、完全に空のままにしておいて構いません。
16246 \end_layout
16247
16248 \begin_layout Standard
16249 長めのラベルの後に文章を入れる
16250 \emph on
16251 必要は
16252 \emph default
16253 まったく
16254 \emph on
16255 ない
16256 \emph default
16257 とはいえ、何か書いておきたいこともあるかもしれません。たとえば、スライドの内容に関する短い説明などがそうでしょう。この場合、いつもどおり説明用のコメントを入力し
16258
16259 \family sans
16260 Return
16261 \family default
16262 を押してください。
16263 \end_layout
16264
16265 \begin_layout Standard
16266 一方、説明文を入れたくない場合には、\SpecialChar LyX
16267 の制約に直面します。自然が真空を憎むように、\SpecialChar LyX
16268 では、古い環境に何かを置くまでは、その中に新しい環境を入れることができません。そ
16269 こで以下のようにしてください。
16270 \end_layout
16271
16272 \begin_layout Itemize
16273 新しい
16274 \family sans
16275 スライド
16276 \family default
16277
16278 \family sans
16279 オーバーレイ
16280 \family default
16281
16282 \family sans
16283 注釈
16284 \family default
16285
16286 \family sans
16287 不可視文
16288 \family default
16289
16290 \family sans
16291 可視文
16292 \family default
16293
16294 \emph on
16295 中に入れる
16296 \emph default
16297 文章を入力してください。
16298 \end_layout
16299
16300 \begin_layout Itemize
16301 段落の先頭に移動します。
16302 \end_layout
16303
16304 \begin_layout Itemize
16305 次に
16306 \family sans
16307 Return
16308 \family default
16309 を押します。
16310 \end_layout
16311
16312 \begin_layout Itemize
16313 最後に、この新しい空の段落を
16314 \family sans
16315 スライド
16316 \family default
16317
16318 \family sans
16319 オーバーレイ
16320 \family default
16321
16322 \family sans
16323 注釈
16324 \family default
16325
16326 \family sans
16327 不可視文
16328 \family default
16329
16330 \family sans
16331 可視文
16332 \family default
16333 に変更します。
16334 \end_layout
16335
16336 \begin_layout Standard
16337 将来の\SpecialChar LyX
16338 では、このような癖が解決されることを祈っています\SpecialChar ldots
16339
16340 \begin_inset Foot
16341 status collapsed
16342
16343 \begin_layout Plain Layout
16344 (訳註)ここの記述は古くなっています。
16345 \end_layout
16346
16347 \end_inset
16348
16349
16350 \end_layout
16351
16352 \begin_layout Subsection
16353
16354 \family sans
16355 スライド
16356 \family default
16357
16358 \family sans
16359 オーバーレイ
16360 \family default
16361
16362 \family sans
16363 注釈で発表用のスライドを作る
16364 \end_layout
16365
16366 \begin_layout Subsubsection
16367
16368 \family sans
16369 スライド
16370 \family default
16371 環境を使う
16372 \end_layout
16373
16374 \begin_layout Standard
16375 もし本節が、実際のプレゼンテーションの作り方を教えてくれるものと期待されているとすれば、大いにがっかりされるかもしれません。当然ながら、プレゼンテーション用の資
16376 料を準備するうえで
16377 \family sans
16378 slides
16379 \family default
16380 クラスを役立てる方法を詳しく説明はしますが、内容をどうするかはあなた次第です(そしてこれも\SpecialChar LyX
16381 の哲学です)。
16382 \end_layout
16383
16384 \begin_layout Standard
16385
16386 \family sans
16387 スライド
16388 \family default
16389 環境を選択すれば(方法は第
16390 \begin_inset CommandInset ref
16391 LatexCommand ref
16392 reference "sec:スライドの癖"
16393
16394 \end_inset
16395
16396 節参照のこと)、\SpecialChar LyX
16397 は新規スライドを開始します。この環境ないし「疑似環境」のラベルは、鮮やかな青で「新規スライド:」と表示されます。この環境の後のテキスト環境や段落
16398 環境は、すべて新規スライドに入ります。簡単ですよね。
16399 \end_layout
16400
16401 \begin_layout Standard
16402 Slidesは、おそらく\SpecialChar LyX
16403 の中で強制的に改頁をしなくてはならない唯一のクラスです(これは
16404 \family sans
16405 段落レイアウト
16406 \family default
16407 ダイアログで指定できます)。実際、一つのスライドの内容を入力し終わったら、改頁したくなるはずです。仮に一つのスライドに物理的に入りきらない文章を入力したとすると
16408 、入りきらない部分は、次の新規スライドにまわされます。しかしながら、入りきらない部分のスライドにはページ番号が付きませんので、こうするのはお勧めしません。その上
16409 、一枚に収まらないスライドでは、
16410 \family sans
16411 オーバーレイ
16412 \family default
16413 を使用すると干渉する恐れがあります。
16414 \end_layout
16415
16416 \begin_layout Standard
16417
16418 \family sans
16419 オーバーレイ
16420 \family default
16421 環境と
16422 \family sans
16423 注釈
16424 \family default
16425 環境も、
16426 \family sans
16427 スライド
16428 \family default
16429 環境と同様の動作を示します。これらは、青の代わりに鮮やかなマゼンタで、それぞれ「
16430 \noun on
16431 新規オーバーレイ
16432 \noun default
16433 :」ないし「
16434 \noun on
16435 新規注釈:
16436 \noun default
16437 」というラベルを表示します。ラベルのフォントも、3つの環境でそれぞれ異なるものが使用されます。
16438 \end_layout
16439
16440 \begin_layout Standard
16441
16442 \family sans
16443 スライド
16444 \family default
16445 と同様に、
16446 \family sans
16447 オーバーレイ
16448 \family default
16449
16450 \family sans
16451 注釈
16452 \family default
16453 の内容が、一つのスライドないしページに物理的に収まりきらない場合には、余分は新規スライドに回されます。この場合には、
16454 \family sans
16455 注釈
16456 \family default
16457
16458 \family sans
16459 オーバーレイ
16460 \family default
16461 の本来の目的が達せられなくなりますので、ここでもこのような状態は避けるべきでしょう。
16462 \end_layout
16463
16464 \begin_layout Subsubsection
16465
16466 \family sans
16467 スライドでオーバーレイを使用する
16468 \end_layout
16469
16470 \begin_layout Standard
16471
16472 \family sans
16473 オーバーレイ
16474 \family default
16475 の背後にある考え方は、別のスライドの上にスライドを載せようとするものです。メインの
16476 \family sans
16477 スライド
16478 \family default
16479 に図があるとき、関連した文章を表示する前に、図について議論を進めたいと思うことがあるかもしれません。これを行うひとつの方法は、
16480 \family sans
16481 スライド
16482 \family default
16483 で後に表示したい部分に黒い紙の蓋を貼り付けてしまうことですが、この方法は、たとえばグラフを他のグラフに重ねたい場合などには、うまく行きません。この場合には、二つ
16484 のグラフを揃えるために、重ねる二つのスライドを、喋りながら手探りで揃えなくてはなりません。これらのような場合には、
16485 \family sans
16486 オーバーレイ
16487 \family default
16488 環境を使えば、もっと楽になります。
16489 \end_layout
16490
16491 \begin_layout Standard
16492
16493 \family sans
16494 オーバーレイ
16495 \family default
16496 は、「親」
16497 \family sans
16498 スライド
16499 \family default
16500 のページ番号を引継ぎ、その後に「
16501 \family typewriter
16502 -a
16503 \family default
16504 」を付け加えます
16505 \begin_inset Foot
16506 status collapsed
16507
16508 \begin_layout Plain Layout
16509 想像できるように、複数のオーバーレイがあれば、「
16510 \family typewriter
16511 -a
16512 \family default
16513 」「
16514 \family typewriter
16515 -b
16516 \family default
16517 」「
16518 \family typewriter
16519 -c
16520 \family default
16521 」などが親スライドのページ番号に付け加えられます。
16522 \end_layout
16523
16524 \end_inset
16525
16526 。当然のことながら、
16527 \family sans
16528 スライド
16529 \family default
16530
16531 \family sans
16532 オーバーレイ
16533 \family default
16534 の内容は両方とも、1枚のスライドに物理的に収まるようになっていなければなりません。
16535 \family sans
16536 オーバーレイ
16537 \family default
16538
16539 \family sans
16540 スライド
16541 \family default
16542 の「一部」であると考えるのがよいでしょう。\SpecialChar LyX
16543 では、
16544 \family sans
16545 オーバーレイ
16546 \family default
16547 のラベルを
16548 \family sans
16549 スライド
16550 \family default
16551 のラベルよりも下げることで、このことを視覚的に表しています。また、印刷可能な出力を生成すると、
16552 \family sans
16553 オーバーレイ
16554 \family default
16555 と親
16556 \family sans
16557 スライド
16558 \family default
16559 両方の四隅に、揃えマーカーがあることに気づかれるはずです。これは、2枚のスライドを物理的に重ね合わせるための補助となるものです。
16560 \end_layout
16561
16562 \begin_layout Standard
16563 2つのスライドをオーバーレイさせる際の大きな問題は、2枚のスライドの内容を揃えることです。2枚目のスライドのグラフには、どれだけの余白を残しておくべきなのでしょ
16564 うか?さらにややこしく、2枚目のスライドにグラフと文章を入れたいときに、その間に割り込んでしまうような文章がメインスライドにある場合には、どうでしょうか?正しい
16565 寸法の垂直スペースを挿入してみることもできるでしょう。しかし、もっと良い方法として、
16566 \family sans
16567 不可視文
16568 \family default
16569
16570 \family sans
16571 可視文
16572 \family default
16573 を使用する方法があります。
16574 \end_layout
16575
16576 \begin_layout Standard
16577 これらの名前が意味するとおり、
16578 \family sans
16579 不可視文
16580 \family default
16581
16582 \family sans
16583 可視文
16584 \family default
16585 は、それぞれ続く文章すべてを見えなくしたり見えるようにしたりするコマンド型の段落環境です。しかしながら、第
16586 \begin_inset CommandInset ref
16587 LatexCommand ref
16588 reference "sec:スライドの癖"
16589
16590 \end_inset
16591
16592 節で述べたように、この2つの環境の
16593 \emph on
16594
16595 \emph default
16596 には何も置くことができません。
16597 \family sans
16598 不可視文
16599 \family default
16600 を作成すると、「<以下不可視文>」と書かれた水色のラベルが、ページに中央揃えで表示されます。このラベルに続く段落は、それが置かれるべき
16601 \family sans
16602 スライド
16603 \family default
16604 (あるいは
16605 \family sans
16606 オーバーレイ
16607 \family default
16608 ;どちらでも同じことです)部分に、代わりに空白の部分が置かれます。
16609 \end_layout
16610
16611 \begin_layout Standard
16612
16613 \family sans
16614 可視文
16615 \family default
16616 の場合には、中央揃えのラベルは、鮮やかな緑の「<以下可視文>」となります。このラベル以降の段落は、通常通りの挙動を示します。新規の
16617 \family sans
16618 スライド
16619 \family default
16620
16621 \family sans
16622 オーバーレイ
16623 \family default
16624
16625 \family sans
16626 注釈
16627 \family default
16628 を開始すると、
16629 \family sans
16630 不可視文
16631 \family default
16632 は自動的に終了されることに注意してください。したがって、
16633 \family sans
16634 スライド
16635 \family default
16636 の終わりでは、
16637 \family sans
16638 可視文
16639 \family default
16640 を使用する必要はありません。
16641 \end_layout
16642
16643 \begin_layout Standard
16644 ここまでで、
16645 \family sans
16646 スライド
16647 \family default
16648
16649 \family sans
16650 オーバーレイ
16651 \family default
16652 上で
16653 \family sans
16654 不可視文
16655 \family default
16656
16657 \family sans
16658 可視文
16659 \family default
16660 を適切に使用して、スライドをオーバーレイさせる方法が明らかになったことと思います。
16661 \end_layout
16662
16663 \begin_layout Enumerate
16664 メインのスライドか
16665 \family sans
16666 オーバーレイ
16667 \family default
16668 かに関わらず、スライド上に現れるすべてを含んだ
16669 \family sans
16670 スライド
16671 \family default
16672 を作成します。
16673 \end_layout
16674
16675 \begin_layout Enumerate
16676
16677 \family sans
16678 オーバーレイ
16679 \family default
16680 のみに表示するすべての図や段落の前に、
16681 \family sans
16682 不可視文
16683 \family default
16684 環境を挿入し、必要ならば、
16685 \family sans
16686 オーバーレイ
16687 \family default
16688 のみの文章の後に
16689 \family sans
16690 可視文
16691 \family default
16692 環境を挿入します。
16693 \end_layout
16694
16695 \begin_layout Enumerate
16696
16697 \family sans
16698 スライド
16699 \family default
16700 の直後から、
16701 \family sans
16702 オーバーレイ
16703 \family default
16704 を開始します。
16705 \end_layout
16706
16707 \begin_layout Enumerate
16708 この
16709 \family sans
16710 スライド
16711 \family default
16712 の内容を
16713 \family sans
16714 オーバーレイ
16715 \family default
16716 にコピーします。
16717 \end_layout
16718
16719 \begin_layout Enumerate
16720
16721 \family sans
16722 オーバーレイ
16723 \family default
16724 内部の
16725 \family sans
16726 不可視文
16727 \family default
16728 行をすべて
16729 \family sans
16730 不可視文
16731 \family default
16732 に変更し、
16733 \family sans
16734 可視文
16735 \family default
16736
16737 \family sans
16738 不可視文
16739 \family default
16740 に変更します。
16741 \end_layout
16742
16743 \begin_layout Standard
16744 これだけです。これで
16745 \family sans
16746 オーバーレイ
16747 \family default
16748 ができあがりました。
16749 \end_layout
16750
16751 \begin_layout Standard
16752 \SpecialChar LyX
16753  
16754 \family sans
16755 slides
16756 \family default
16757 クラスをデザインする上で、ひとつ残された問題があります。段落途中の文章を不可視にしたり、不可視段落の途中の文章を再度可視にしたりすることはできないのです。これを
16758 実現するためには、\SpecialChar LaTeX
16759 コードを埋め込む必要があります
16760 \begin_inset Foot
16761 status collapsed
16762
16763 \begin_layout Plain Layout
16764 このコマンドは、
16765 \end_layout
16766
16767 \begin_layout Itemize
16768
16769 \family typewriter
16770 {
16771 \backslash
16772 invisible \SpecialChar ldots
16773  }
16774 \end_layout
16775
16776 \begin_layout Itemize
16777
16778 \family typewriter
16779 {
16780 \backslash
16781 visible \SpecialChar ldots
16782  }
16783 \end_layout
16784
16785 \begin_layout Plain Layout
16786 \SpecialChar ldots
16787 のような形となり、\SpecialChar TeX
16788 としてマークする必要があります。「可視性」を変更したい文章は、波括弧のあいだ(そして
16789 \family typewriter
16790
16791 \backslash
16792 invisible
16793 \family default
16794 ないし
16795 \family typewriter
16796
16797 \backslash
16798 visible
16799 \family default
16800 コマンドの後ろ)に入れます。\SpecialChar TeX
16801 としてマークする方法がわからない場合は、
16802 \emph on
16803 ユーザーの手引き
16804 \emph default
16805 をご参照ください。
16806 \end_layout
16807
16808 \end_inset
16809
16810
16811 \end_layout
16812
16813 \begin_layout Subsubsection
16814
16815 \family sans
16816 スライドで注釈を使う
16817 \family default
16818
16819 \begin_inset CommandInset label
16820 LatexCommand label
16821 name "sec:スライド注釈"
16822
16823 \end_inset
16824
16825
16826 \end_layout
16827
16828 \begin_layout Standard
16829
16830 \family sans
16831 オーバーレイ
16832 \family default
16833 と同様、
16834 \family sans
16835 注釈
16836 \family default
16837 も「親」
16838 \family sans
16839 スライド
16840 \family default
16841 に関連付けられています。ここでも\SpecialChar LyX
16842
16843 \family sans
16844 スライド
16845 \family default
16846 クラスは視覚的な効果を与えています。
16847 \family sans
16848 注釈
16849 \family default
16850 のラベルは
16851 \family sans
16852 スライド
16853 \family default
16854 よりも短く(オーバーレイのラベルよりも長いですが)、
16855 \family sans
16856 オーバーレイ
16857 \family default
16858 のラベルと同様、派手な赤紫色です。加えて、印刷した
16859 \family sans
16860 注釈
16861 \family default
16862 には、「親」スライドのページ番号に「
16863 \family typewriter
16864 -
16865 \family default
16866 1」「
16867 \family typewriter
16868 -
16869 \family default
16870 2」「
16871 \family typewriter
16872 -
16873 \family default
16874 3」等を付けたページ番号が付けられます。1つの
16875 \family sans
16876 スライド
16877 \family default
16878 には、複数の
16879 \family sans
16880 注釈
16881 \family default
16882 を関連付けることができるので、
16883 \family sans
16884 スライド
16885 \family default
16886
16887 \family sans
16888 オーバーレイ
16889 \family default
16890 と同じように、長い注釈は、1枚の紙に収まるように分割したいと思われるに違いありません。
16891 \end_layout
16892
16893 \begin_layout Standard
16894
16895 \family sans
16896 注釈
16897 \family default
16898 の目的は明らかです。
16899 \family sans
16900 スライド
16901 \family default
16902 に関して付け加えたいことを書き留めておくことです。特定の
16903 \family sans
16904 スライド
16905 \family default
16906 についての覚書として使うこともできます。後者の場合には、タイムマーカを利用したいこともあるかもしれません。現在のところ、\SpecialChar LyX
16907
16908 \family sans
16909 スライド
16910 \family default
16911 クラスは、
16912 \noun on
16913 Sli
16914 \noun default
16915 \SpecialChar TeX
16916 の機能であるタイムマーカを「ネイティブには」サポートしていません。したがって、\SpecialChar LaTeX
16917 コードを使用することに頼らなくてはなりません。
16918 \end_layout
16919
16920 \begin_layout Standard
16921 タイムマーカを使用するには、クラスオプション「
16922 \family typewriter
16923 clock
16924 \family default
16925 」を追加指定する必要があります(第
16926 \begin_inset CommandInset ref
16927 LatexCommand ref
16928 reference "sec:slidesetup"
16929
16930 \end_inset
16931
16932 節参照)。このオプションはタイムマーカ機能を有効にして、生成したすべての
16933 \family sans
16934 注釈
16935 \family default
16936 の左下にタイムマーカを表示します。タイムマーカに表示するものを設定するには、\SpecialChar LaTeX
16937 コマンド「
16938 \family typewriter
16939
16940 \backslash
16941 settime{}
16942 \family default
16943 」および「
16944 \family typewriter
16945
16946 \backslash
16947 addtime{}
16948 \family default
16949 」を使用します。両コマンドは、秒で測った時間を引数にとります。「
16950 \family typewriter
16951
16952 \backslash
16953 settime{}
16954 \family default
16955 」は、タイムマーカを特定の時間に設定し、「
16956 \family typewriter
16957
16958 \backslash
16959 addtime{}
16960 \family default
16961 」は、タイムマーカを指定した分だけ進めます。このようにタイムマーカと
16962 \family sans
16963 注釈
16964 \family default
16965 を用いれば、特定の
16966 \family sans
16967 スライド
16968 \family default
16969 にどれだけの時間をかけるのか忘れないでいられます。
16970 \end_layout
16971
16972 \begin_layout Standard
16973 最後に、説明しておくべき機能がもう一つあります。当然ながら、
16974 \family sans
16975 スライド
16976 \family default
16977
16978 \family sans
16979 オーバーレイ
16980 \family default
16981 はすべてスライドに、
16982 \family sans
16983 注釈
16984 \family default
16985 はすべて普通の紙に印刷したいはずです。しかしながら、
16986 \family sans
16987 注釈
16988 \family default
16989 は関連付けられた親スライドの直後に
16990 \emph on
16991 来なくてはなりません
16992 \emph default
16993 。ユーザーはどうしたら良いのでしょうか。
16994 \end_layout
16995
16996 \begin_layout Standard
16997 幸いなことに、どれを印刷するか選択することを可能にする\SpecialChar LaTeX
16998 コマンドが、2種類あります。どちらも文書のプリアンブルに記述されなくてはなりません。コマンド「
16999 \family typewriter
17000
17001 \backslash
17002 onlyslides{
17003 \backslash
17004 slides}
17005 \family default
17006 」は、出力に
17007 \family sans
17008 スライド
17009 \family default
17010
17011 \family sans
17012 オーバーレイ
17013 \family default
17014 のみが含まれるようにするものです。同様に、「
17015 \family typewriter
17016
17017 \backslash
17018 onlynotes{
17019 \backslash
17020 notes}
17021 \family default
17022 」は
17023 \family sans
17024 注釈
17025 \family default
17026 以外の出力をすべて抑制します。私のアドバイスとしては、両コマンドをプリアンブルに書いておいて、最初は両方ともコメントアウトしておくと良いでしょう。そうすれば、執
17027 筆時にはプレゼンテーション全体をプレビューすることができます。いったん書き終えたならば、二つのうち一方のコメントを外して、印刷したい方を選ぶことができます。私な
17028 らば、まず
17029 \family typewriter
17030
17031 \backslash
17032 onlyslides{
17033 \backslash
17034 slides}
17035 \family default
17036 のコメントを外して、現ファイル名に「*
17037 \family typewriter
17038 -slides
17039 \family default
17040 」を付けた新たなファイルに出力を行ない、今度はこの行をふたたびコメントアウトするとともに、「
17041 \family typewriter
17042
17043 \backslash
17044 onlynotes{
17045 \backslash
17046 notes
17047 \family default
17048 }」のコメントを外して、これを「
17049 \family typewriter
17050 *-notes.ps
17051 \family default
17052 」というファイルに出力します。そうすれば、必要に応じて、スライドまたは通常の紙をプリンタにセットし、一方のファイルをプリンタに送ればよいのです。
17053 \end_layout
17054
17055 \begin_layout Standard
17056
17057 \family typewriter
17058
17059 \backslash
17060 onlyslides{}
17061 \family default
17062 」および「
17063 \family typewriter
17064
17065 \backslash
17066 onlynotes{}
17067 \family default
17068 」コマンドには、他の引数を与えることもできます。詳しくは、\SpecialChar LaTeX
17069 の良書をご覧ください。
17070 \end_layout
17071
17072 \begin_layout Subsection
17073
17074 \family sans
17075 slides
17076 \family default
17077 クラスのひな型ファイル
17078 \end_layout
17079
17080 \begin_layout Standard
17081
17082 \family sans
17083 slides
17084 \family default
17085 クラス用のひな型ファイルとして「
17086 \family typewriter
17087 slides.lyx
17088 \family default
17089 」が提供されています。これを使用するには、新しいプレゼンテーションを作り始める際に、
17090 \family sans
17091 ファイル\SpecialChar menuseparator
17092 新規(ひな型使用)
17093 \family default
17094 メニューを選択してください。すると新規ファイルには、
17095 \family sans
17096 スライド
17097 \family default
17098
17099 \family sans
17100 オーバーレイ
17101 \family default
17102
17103 \family sans
17104 注釈
17105 \family default
17106 の組が、例として含まれており、
17107 \family sans
17108 スライド
17109 \family default
17110
17111 \family sans
17112 オーバーレイ
17113 \family default
17114 には、さらに
17115 \family sans
17116 不可視文
17117 \family default
17118
17119 \family sans
17120 可視文
17121 \family default
17122 の使用例も含まれています。また、プリアンブルには、次のように書き込まれています。
17123 \end_layout
17124
17125 \begin_layout LyX-Code
17126 % Uncomment to print out only slides and overlays
17127 \end_layout
17128
17129 \begin_layout LyX-Code
17130 %
17131 \end_layout
17132
17133 \begin_layout LyX-Code
17134 %
17135 \backslash
17136 onlyslides{
17137 \backslash
17138 slides}
17139 \begin_inset Newline newline
17140 \end_inset
17141
17142  
17143 \end_layout
17144
17145 \begin_layout LyX-Code
17146 % Uncomment to print out only notes
17147 \end_layout
17148
17149 \begin_layout LyX-Code
17150 %
17151 \end_layout
17152
17153 \begin_layout LyX-Code
17154 %
17155 \backslash
17156 onlynotes{
17157 \backslash
17158 notes}
17159 \end_layout
17160
17161 \begin_layout Standard
17162 最後に、私はこの文書クラスを、\SpecialChar LaTeX2e
17163 の組み込みクラスである「
17164 \noun on
17165 Sli\SpecialChar TeX
17166
17167 \noun default
17168 エミュレーション」クラスをサポートする目的で作成しました。私も\SpecialChar LyX
17169 チームの他のメンバーも、この組み込みスライドクラスを使用することに賛成したり反対したりするものでは
17170 ありません。これは単に、ユーザーがこれを使いたかったり必要としたりしたときのためにあるものです。プレゼンテーションを作成するためには、
17171 \family sans
17172 Foils
17173 \family default
17174 クラス(第
17175 \begin_inset CommandInset ref
17176 LatexCommand ref
17177 reference "sec:foiltex"
17178
17179 \end_inset
17180
17181 節参照)や「
17182 \family typewriter
17183 seminar
17184 \family default
17185 」パッケージ(一部の\SpecialChar TeX
17186 頒布版に含まれています)のように、他の\SpecialChar LaTeX2e
17187 クラスも存在します。私はこれらについては知らないのですが、他にどのようなことができるのか試してみてくだ
17188 さい。
17189 \end_layout
17190
17191 \begin_layout Chapter
17192 ソフトウェアを追加する必要がある \SpecialChar LyX
17193 機能
17194 \end_layout
17195
17196 \begin_layout Section
17197 \SpecialChar TeX
17198 のチェック
17199 \end_layout
17200
17201 \begin_layout Standard
17202
17203 \noun on
17204 Asger Alstrup
17205 \noun default
17206
17207 \end_layout
17208
17209 \begin_layout Subsection
17210 はじめに
17211 \end_layout
17212
17213 \begin_layout Standard
17214
17215 \family typewriter
17216 chktex
17217 \family default
17218 プログラムが導入されていると
17219 \begin_inset Foot
17220 status collapsed
17221
17222 \begin_layout Plain Layout
17223 \SpecialChar LaTeX
17224 頒布版としてMiK\SpecialChar TeX
17225 を使用している場合には、
17226 \family typewriter
17227 chktex
17228 \family default
17229 はまだ利用可能ではありません。
17230 \end_layout
17231
17232 \end_inset
17233
17234
17235 \family sans
17236 ツール
17237 \family default
17238 メニューの下に、
17239 \family sans
17240 \SpecialChar TeX
17241 構文チェック
17242 \family default
17243 という項目が表示されます。
17244 \family typewriter
17245 chktex
17246 \family default
17247 は、CTAN
17248 \begin_inset Newline newline
17249 \end_inset
17250
17251
17252 \begin_inset CommandInset href
17253 LatexCommand href
17254 target "http://www.ctan.org/tex-archive/help/Catalogue/entries/chktex.html"
17255
17256 \end_inset
17257
17258 から入手することができます。
17259 \end_layout
17260
17261 \begin_layout Standard
17262
17263 \family sans
17264 Chk\SpecialChar TeX
17265
17266 \family default
17267 パッケージは、\SpecialChar LaTeX
17268 の構成物には直感的でないものもあり、すぐ忘れてしまいがちであるのに不満を感じた
17269 \begin_inset Flex Noun
17270 status collapsed
17271
17272 \begin_layout Plain Layout
17273 Jens T.
17274  Berger Thielemann
17275 \end_layout
17276
17277 \end_inset
17278
17279 が書いたプログラムです。このプログラムは、\SpecialChar LaTeX
17280 ファイルを走査して、ファイルの整合性をチェックし、犯しがちな誤りを見つけ出します。別の技術用語では、LaTeXにおける
17281 \family typewriter
17282 lint
17283 \family default
17284 であるとも言えます。
17285 \end_layout
17286
17287 \begin_layout Standard
17288 さて、\SpecialChar LyX
17289 はつねに正しい\SpecialChar LaTeX
17290 ファイルを生成するはずなのに、文法チェッカーは\SpecialChar LyX
17291 で何をするというのでしょうか。答えは簡単です。
17292 \family typewriter
17293 lint
17294 \family default
17295 がC言語プログラムの
17296 \emph on
17297 文法
17298 \emph default
17299 をチェックするだけでなく、打ち間違いによる
17300 \emph on
17301 意味上の
17302 \emph default
17303 チェックも行うように、
17304 \family sans
17305 Chk\SpecialChar TeX
17306
17307 \family default
17308 は、文法エラーの他に犯しがちな
17309 \emph on
17310 写植上の
17311 \emph default
17312 誤りも検出してくれるからです。
17313 \family sans
17314 Chk\SpecialChar TeX
17315
17316 \family default
17317 は、以下のような誤りを検出することができます。
17318 \end_layout
17319
17320 \begin_layout Itemize
17321 省略記号の検出:
17322 \begin_inset Newline newline
17323 \end_inset
17324
17325 ...ではなく\SpecialChar ldots
17326 を使わなくてはなりません
17327 \end_layout
17328
17329 \begin_layout Itemize
17330 括弧の前後にスペースを置かない:
17331 \begin_inset Newline newline
17332 \end_inset
17333
17334 ( wrong spacing ):誤った空白
17335 \end_layout
17336
17337 \begin_layout Itemize
17338 よく使われる省略形の後ろは通常スペースにする:
17339 \begin_inset Newline newline
17340 \end_inset
17341
17342 e.
17343 \begin_inset space \thinspace{}
17344 \end_inset
17345
17346 g.
17347 \begin_inset space \space{}
17348 \end_inset
17349
17350 is too wide spacing.:広すぎる空白
17351 \end_layout
17352
17353 \begin_layout Itemize
17354 直前の文章が大文字で終わっているときに、文末スペースに直す:
17355 \begin_inset Newline newline
17356 \end_inset
17357
17358 This is a TEST.
17359  And this is wrong spacing.:誤った空白
17360 \end_layout
17361
17362 \begin_layout Itemize
17363 ラベルや類似コマンドの前のスペース:
17364 \begin_inset Newline newline
17365 \end_inset
17366
17367 ラベルが別のページに行ってしまわないように、ラベルは文章に接していなくてはなりません。 
17368 \begin_inset CommandInset label
17369 LatexCommand label
17370 name "sec:chktex"
17371
17372 \end_inset
17373
17374  
17375 \begin_inset Foot
17376 status collapsed
17377
17378 \begin_layout Plain Layout
17379 この脚注は、正しくないページに行ってしまう恐れがあります。
17380 \end_layout
17381
17382 \end_inset
17383
17384  このラベルは離れすぎです。
17385 \end_layout
17386
17387 \begin_layout Itemize
17388 参照の前にハードスペースではなくスペース:
17389 \begin_inset Newline newline
17390 \end_inset
17391
17392 運が悪ければ、参照文字列と参照番号のあいだでちょうど改行されてしまい、残念な結果となります。第
17393 \begin_inset CommandInset ref
17394 LatexCommand ref
17395 reference "sec:chktex"
17396
17397 \end_inset
17398
17399 節をご覧ください。
17400 \end_layout
17401
17402 \begin_layout Itemize
17403 数字のあいだで
17404 \begin_inset Formula $\times$
17405 \end_inset
17406
17407 ではなく「x」が使われている:
17408 \begin_inset Newline newline
17409 \end_inset
17410
17411 2x2は、
17412 \begin_inset Formula $2\times2$
17413 \end_inset
17414
17415 よりも安っぽく見えます。
17416 \end_layout
17417
17418 \begin_layout Standard
17419 などなど\SpecialChar ldots
17420
17421 \family sans
17422 Chk\SpecialChar TeX
17423
17424 \family default
17425 は、印刷する前に文書を「仕上げる」上で、たいへん価値のあるツールです。必須のスペルチェックを終えた直後、組版の微調整をする前には、これを実行するべきです。
17426 \end_layout
17427
17428 \begin_layout Subsection
17429 使いかた
17430 \end_layout
17431
17432 \begin_layout Standard
17433 このプログラムを導入したならば、使うのは
17434 \family sans
17435 ツール\SpecialChar menuseparator
17436 \SpecialChar TeX
17437 構文チェック
17438 \family default
17439 を選択するだけなので簡単です。こうすると、\SpecialChar LyX
17440 は使用中の文書の\SpecialChar LaTeX
17441 ファイルを生成して、
17442 \family sans
17443 Chk\SpecialChar TeX
17444
17445 \family default
17446 を起動し、当該ファイルを検査しますが、
17447 \family sans
17448 Chk\SpecialChar TeX
17449
17450 \family default
17451 から警告があった場合には、それを含んだ「エラーボックス」を\SpecialChar LyX
17452 中に挿入します。警告は、誤りのある箇所のそばに置かれるので、メニュー項目の
17453 \family sans
17454 移動\SpecialChar menuseparator
17455 エラー
17456 \family default
17457 を選択するか、既定の
17458 \family typewriter
17459 cua
17460 \family default
17461
17462 \begin_inset Flex Ruby
17463 status collapsed
17464
17465 \begin_layout Plain Layout
17466
17467 \begin_inset Argument post:1
17468 status collapsed
17469
17470 \begin_layout Plain Layout
17471 キー
17472 \end_layout
17473
17474 \end_inset
17475
17476
17477 \end_layout
17478
17479 \end_inset
17480
17481 設定ファイルならば
17482 \begin_inset Flex Ruby
17483 status collapsed
17484
17485 \begin_layout Plain Layout
17486
17487 \family roman
17488 \series medium
17489 \shape up
17490 \size normal
17491 \emph off
17492 \bar no
17493 \noun off
17494 \color none
17495 捷径
17496 \family default
17497 \series default
17498 \shape default
17499 \size default
17500 \emph default
17501 \bar default
17502 \noun default
17503 \color inherit
17504
17505 \begin_inset Argument post:1
17506 status collapsed
17507
17508 \begin_layout Plain Layout
17509 ショートカット
17510 \end_layout
17511
17512 \end_inset
17513
17514
17515 \end_layout
17516
17517 \end_inset
17518
17519
17520 \family sans
17521 C-g
17522 \family default
17523 を押せば、簡単に警告の箇所を見出すことができます。エラーボックスを開けるには、マウスでボックスをクリックするか、
17524 \family typewriter
17525 cua
17526 \family default
17527 鍵設定の場合には捷径鍵
17528 \family sans
17529 C-i
17530 \family default
17531
17532 \family typewriter
17533 emacs
17534 \family default
17535 鍵設定の場合は捷径鍵
17536 \family sans
17537 C-o
17538 \family default
17539 を押します。警告を読み、それが誤りを示していれば修正します。警告が何を意味しているか理解しにくい場合には、無視しても問題はありません。画面上の文書と、
17540 \family sans
17541 Chk\SpecialChar TeX
17542
17543 \family default
17544 を起動する際に行なわれる実際の技術的な操作のあいだには、隠された層があり、この隔たりのせいで、一部の警告が不可解なものになったり、明らかに馬鹿げたものになる場合
17545 があるのです。
17546 \end_layout
17547
17548 \begin_layout Standard
17549 本文書自体、この機能を確認する良い材料になりますので、実行してみてください。すると、かなりの量の警告が出るはずです。これはコンピュータが敏感すぎるせいですので、
17550 警告のほとんどは実際には警告に値しません。
17551 \end_layout
17552
17553 \begin_layout Subsection
17554 微調整のしかた
17555 \end_layout
17556
17557 \begin_layout Standard
17558 場合によっては、
17559 \family sans
17560 Chk\SpecialChar TeX
17561
17562 \family default
17563 は、あなたが望むよりも煩すぎると思うかもしれません。そのような場合には、必要と思うまで
17564 \family sans
17565 Chk\SpecialChar TeX
17566
17567 \family default
17568 を無効にするか、あなたにもう少し合うように
17569 \family sans
17570 Chk\SpecialChar TeX
17571
17572 \family default
17573 を調整することができます。
17574 \end_layout
17575
17576 \begin_layout Standard
17577
17578 \family sans
17579 Chk\SpecialChar TeX
17580
17581 \family default
17582 は調整や拡張がひじょうに柔軟なのですが、\SpecialChar LyX
17583 における
17584 \family sans
17585 Chk\SpecialChar TeX
17586
17587 \family default
17588 関連の問題が、それですべて解決すると思うべきではありません。\SpecialChar LyX
17589 は、
17590 \family sans
17591 Chk\SpecialChar TeX
17592
17593 \family default
17594 出力
17595 \begin_inset Foot
17596 status collapsed
17597
17598 \begin_layout Plain Layout
17599
17600 \family sans
17601 chktex
17602 \family default
17603 の実際の出力は、
17604 \family sans
17605 chktex
17606 \family default
17607 を実行した直後に
17608 \family sans
17609 文書\SpecialChar menuseparator
17610 \SpecialChar LaTeX
17611 ログ
17612 \family default
17613 を使えば見ることができます。
17614 \end_layout
17615
17616 \end_inset
17617
17618 から得た行番号と内部構造を一致させるため、やや特殊な\SpecialChar LaTeX
17619 ファイルを生成しなくてはならないので、警告の一部は正しく表示されていないように見えるでしょう。これに対処する
17620 ためには、以下の2つの方法があります。
17621 \end_layout
17622
17623 \begin_layout Itemize
17624
17625 \family sans
17626 \begin_inset Flex MenuItem
17627 status collapsed
17628
17629 \begin_layout Plain Layout
17630
17631 \family sans
17632 ツール\SpecialChar menuseparator
17633 設定\SpecialChar menuseparator
17634 出力\SpecialChar menuseparator
17635 \SpecialChar LaTeX
17636 \SpecialChar menuseparator
17637 Check\SpecialChar TeX
17638 コマンド
17639 \end_layout
17640
17641 \end_inset
17642
17643
17644 \family default
17645 中の
17646 \family sans
17647 Chk\SpecialChar TeX
17648
17649 \family default
17650 起動コマンドラインを調整するか、グローバルな
17651 \family sans
17652 Chk\SpecialChar TeX
17653
17654 \family default
17655 の設定ファイル(通常は
17656 \begin_inset Flex Code
17657 status collapsed
17658
17659 \begin_layout Plain Layout
17660 chktexrc
17661 \end_layout
17662
17663 \end_inset
17664
17665 ファイル)を調整します。コマンドラインからどの警告を有効・無効にできるかは以下をご覧ください。
17666 \end_layout
17667
17668 \begin_layout Itemize
17669
17670 \family sans
17671 ファイル\SpecialChar menuseparator
17672 書き出し\SpecialChar menuseparator
17673 \SpecialChar LaTeX
17674
17675 \family default
17676 を使って文書を\SpecialChar LaTeX
17677 ファイルに変換し、そのファイルに対して
17678 \family typewriter
17679 chktex
17680 \family default
17681 を手動で実行します。このようにすると、\SpecialChar LyX
17682 文書中の対応箇所を見つけるのがやや面倒ですが、少し我慢すれば見つけることができます。
17683 \end_layout
17684
17685 \begin_layout Standard
17686 以下は、
17687 \family sans
17688 設定
17689 \family default
17690 で有効化・無効化できる警告メッセージです。警告を無効にするには
17691 \family typewriter
17692 -n#
17693 \family default
17694 、有効にするには
17695 \family typewriter
17696 -w#
17697 \family default
17698 を用います。イタリック表示の項目は、既定で無効となっています。既定値は "
17699 \family typewriter
17700 chktex -n1 -n3 -n6 -n9 -n22 -n25 -n30 -n38
17701 \family default
17702 "です。
17703 \end_layout
17704
17705 \begin_layout Standard
17706 \SpecialChar LyX
17707 は、
17708 \family typewriter
17709 chktex
17710 \family default
17711 と通信するために、他のコマンドラインパラメータを特定の方法で使用しているため、メッセージを有効化・無効化する以外のオプションを使うべきではありません。
17712 \end_layout
17713
17714 \begin_layout Enumerate
17715
17716 \size small
17717 \emph on
17718 Command terminated with space.
17719 \end_layout
17720
17721 \begin_layout Enumerate
17722
17723 \size small
17724 Non-breaking space (
17725 \begin_inset Quotes eld
17726 \end_inset
17727
17728
17729 \family typewriter
17730 ~
17731 \family default
17732
17733 \begin_inset Quotes erd
17734 \end_inset
17735
17736 ) should have been used.
17737 \end_layout
17738
17739 \begin_layout Enumerate
17740
17741 \size small
17742 \emph on
17743 You should enclose the previous parenthesis with 
17744 \begin_inset Quotes eld
17745 \end_inset
17746
17747
17748 \family typewriter
17749 {}
17750 \family default
17751
17752 \begin_inset Quotes erd
17753 \end_inset
17754
17755 .
17756 \end_layout
17757
17758 \begin_layout Enumerate
17759
17760 \size small
17761 Italic correction (
17762 \begin_inset Quotes eld
17763 \end_inset
17764
17765
17766 \family typewriter
17767
17768 \backslash
17769 /
17770 \family default
17771
17772 \begin_inset Quotes erd
17773 \end_inset
17774
17775 ) found in non-italic buffer.
17776 \end_layout
17777
17778 \begin_layout Enumerate
17779
17780 \size small
17781 Italic correction (
17782 \begin_inset Quotes eld
17783 \end_inset
17784
17785
17786 \family typewriter
17787
17788 \backslash
17789 /
17790 \family default
17791
17792 \begin_inset Quotes erd
17793 \end_inset
17794
17795 ) found more than once.
17796 \end_layout
17797
17798 \begin_layout Enumerate
17799
17800 \size small
17801 \emph on
17802 No italic correction (
17803 \begin_inset Quotes eld
17804 \end_inset
17805
17806
17807 \family typewriter
17808
17809 \backslash
17810 /
17811 \family default
17812
17813 \begin_inset Quotes erd
17814 \end_inset
17815
17816 ) found.
17817 \end_layout
17818
17819 \begin_layout Enumerate
17820
17821 \size small
17822 Accent command 
17823 \begin_inset Quotes eld
17824 \end_inset
17825
17826
17827 \family typewriter
17828 cmd
17829 \family default
17830
17831 \begin_inset Quotes erd
17832 \end_inset
17833
17834  needs use of 
17835 \begin_inset Quotes eld
17836 \end_inset
17837
17838
17839 \family typewriter
17840 cmd
17841 \family default
17842
17843 \begin_inset Quotes erd
17844 \end_inset
17845
17846 .
17847 \end_layout
17848
17849 \begin_layout Enumerate
17850
17851 \size small
17852 Wrong length of dash may have been used.
17853 \end_layout
17854
17855 \begin_layout Enumerate
17856
17857 \size small
17858 \emph on
17859 \begin_inset Quotes eld
17860 \end_inset
17861
17862
17863 \family typewriter
17864 %s
17865 \family default
17866
17867 \begin_inset Quotes erd
17868 \end_inset
17869
17870  expected, found 
17871 \begin_inset Quotes eld
17872 \end_inset
17873
17874
17875 \family typewriter
17876 %s
17877 \family default
17878
17879 \begin_inset Quotes erd
17880 \end_inset
17881
17882 .
17883 \end_layout
17884
17885 \begin_layout Enumerate
17886
17887 \size small
17888 Solo 
17889 \begin_inset Quotes eld
17890 \end_inset
17891
17892
17893 \family typewriter
17894 %s
17895 \family default
17896
17897 \begin_inset Quotes erd
17898 \end_inset
17899
17900  found.
17901 \end_layout
17902
17903 \begin_layout Enumerate
17904
17905 \size small
17906 You should use 
17907 \begin_inset Quotes eld
17908 \end_inset
17909
17910
17911 \family typewriter
17912 %s
17913 \family default
17914
17915 \begin_inset Quotes erd
17916 \end_inset
17917
17918  to achieve an ellipsis.
17919 \end_layout
17920
17921 \begin_layout Enumerate
17922
17923 \size small
17924 Inter-word spacing (
17925 \begin_inset Quotes eld
17926 \end_inset
17927
17928
17929 \family typewriter
17930
17931 \backslash
17932
17933 \family default
17934  
17935 \begin_inset Quotes eld
17936 \end_inset
17937
17938 ) should perhaps be used.
17939 \end_layout
17940
17941 \begin_layout Enumerate
17942
17943 \size small
17944 Inter-sentence spacing (
17945 \begin_inset Quotes eld
17946 \end_inset
17947
17948
17949 \family typewriter
17950
17951 \backslash
17952 @
17953 \family default
17954
17955 \begin_inset Quotes erd
17956 \end_inset
17957
17958 ) should perhaps be used.
17959 \end_layout
17960
17961 \begin_layout Enumerate
17962
17963 \size small
17964 Could not find argument for command.
17965 \end_layout
17966
17967 \begin_layout Enumerate
17968
17969 \size small
17970 No match found for 
17971 \begin_inset Quotes eld
17972 \end_inset
17973
17974
17975 \family typewriter
17976 %s
17977 \family default
17978
17979 \begin_inset Quotes erd
17980 \end_inset
17981
17982 .
17983 \end_layout
17984
17985 \begin_layout Enumerate
17986
17987 \size small
17988 Math mode still on at end of \SpecialChar LaTeX
17989  file.
17990 \end_layout
17991
17992 \begin_layout Enumerate
17993
17994 \size small
17995 Number of 
17996 \begin_inset Quotes eld
17997 \end_inset
17998
17999
18000 \family typewriter
18001 char
18002 \family default
18003
18004 \begin_inset Quotes erd
18005 \end_inset
18006
18007  doesn't match the number of 
18008 \begin_inset Quotes eld
18009 \end_inset
18010
18011
18012 \family typewriter
18013 char
18014 \family default
18015
18016 \begin_inset Quotes erd
18017 \end_inset
18018
18019 .
18020 \end_layout
18021
18022 \begin_layout Enumerate
18023
18024 \size small
18025 You should use either 
18026 \family typewriter
18027
18028 \begin_inset Quotes eld
18029 \end_inset
18030
18031
18032 \family default
18033  or 
18034 \family typewriter
18035
18036 \begin_inset Quotes erd
18037 \end_inset
18038
18039
18040 \family default
18041  as an alternative to 
18042 \begin_inset Quotes eld
18043 \end_inset
18044
18045
18046 \family typewriter
18047 "
18048 \family default
18049
18050 \begin_inset Quotes erd
18051 \end_inset
18052
18053 .
18054 \end_layout
18055
18056 \begin_layout Enumerate
18057
18058 \size small
18059 You should use "
18060 \family typewriter
18061 '
18062 \family default
18063 " (ASCII 39) instead of "" (ASCII 180).
18064 \end_layout
18065
18066 \begin_layout Enumerate
18067
18068 \size small
18069 User-specified pattern found.
18070 \end_layout
18071
18072 \begin_layout Enumerate
18073
18074 \size small
18075 This command might not be intended.
18076 \end_layout
18077
18078 \begin_layout Enumerate
18079
18080 \size small
18081 \emph on
18082 Comment displayed.
18083 \end_layout
18084
18085 \begin_layout Enumerate
18086
18087 \size small
18088 Either 
18089 \family typewriter
18090 ''
18091 \backslash
18092 ,'
18093 \family default
18094  or 
18095 \family typewriter
18096 '
18097 \backslash
18098 ,''
18099 \family default
18100  will look better.
18101 \end_layout
18102
18103 \begin_layout Enumerate
18104
18105 \size small
18106 Delete this space to maintain correct page references.
18107 \end_layout
18108
18109 \begin_layout Enumerate
18110
18111 \size small
18112 \emph on
18113 You might wish to put this between a pair of 
18114 \begin_inset Quotes eld
18115 \end_inset
18116
18117
18118 \family typewriter
18119 {}
18120 \family default
18121
18122 \begin_inset Quotes erd
18123 \end_inset
18124
18125 .
18126 \end_layout
18127
18128 \begin_layout Enumerate
18129
18130 \size small
18131 You ought to remove spaces in front of punctuation.
18132 \end_layout
18133
18134 \begin_layout Enumerate
18135
18136 \size small
18137 Could not execute \SpecialChar LaTeX
18138  command.
18139 \end_layout
18140
18141 \begin_layout Enumerate
18142
18143 \size small
18144 Don't use 
18145 \family typewriter
18146
18147 \backslash
18148 /
18149 \family default
18150  in front of small punctuation.
18151 \end_layout
18152
18153 \begin_layout Enumerate
18154
18155 \family typewriter
18156 \size small
18157 $
18158 \backslash
18159 times$
18160 \family default
18161  may look prettier here.
18162 \end_layout
18163
18164 \begin_layout Enumerate
18165
18166 \size small
18167 \emph on
18168 Multiple spaces detected in output.
18169 \end_layout
18170
18171 \begin_layout Enumerate
18172
18173 \size small
18174 This text may be ignored.
18175 \end_layout
18176
18177 \begin_layout Enumerate
18178
18179 \size small
18180 Use 
18181 \family typewriter
18182
18183 \begin_inset Quotes eld
18184 \end_inset
18185
18186
18187 \family default
18188  to begin quotation, not 
18189 \family typewriter
18190 '
18191 \family default
18192 .
18193 \end_layout
18194
18195 \begin_layout Enumerate
18196
18197 \size small
18198 Use 
18199 \family typewriter
18200 '
18201 \family default
18202  to end quotation, not 
18203 \family typewriter
18204
18205 \begin_inset Quotes eld
18206 \end_inset
18207
18208
18209 \family default
18210 .
18211 \end_layout
18212
18213 \begin_layout Enumerate
18214
18215 \size small
18216 Don't mix quotes.
18217 \end_layout
18218
18219 \begin_layout Enumerate
18220
18221 \size small
18222 You should perhaps use 
18223 \begin_inset Quotes eld
18224 \end_inset
18225
18226
18227 \family typewriter
18228 cmd
18229 \family default
18230
18231 \begin_inset Quotes erd
18232 \end_inset
18233
18234  instead.
18235 \end_layout
18236
18237 \begin_layout Enumerate
18238
18239 \size small
18240 You should put a space in front of/after parenthesis.
18241 \end_layout
18242
18243 \begin_layout Enumerate
18244
18245 \size small
18246 You should avoid spaces in front of/after parenthesis.
18247 \end_layout
18248
18249 \begin_layout Enumerate
18250
18251 \size small
18252 \emph on
18253 You should not use punctuation in front of/after quotes.
18254 \end_layout
18255
18256 \begin_layout Enumerate
18257
18258 \size small
18259 Double space found.
18260 \end_layout
18261
18262 \begin_layout Enumerate
18263
18264 \size small
18265 You should put punctuation outside inner/inside display math mode.
18266 \end_layout
18267
18268 \begin_layout Enumerate
18269
18270 \size small
18271 You ought to not use primitive \SpecialChar TeX
18272  in \SpecialChar LaTeX
18273  code.
18274 \end_layout
18275
18276 \begin_layout Enumerate
18277
18278 \size small
18279 You should remove spaces in front of 
18280 \begin_inset Quotes eld
18281 \end_inset
18282
18283
18284 \family typewriter
18285 %s
18286 \family default
18287
18288 \begin_inset Quotes erd
18289 \end_inset
18290
18291
18292 \end_layout
18293
18294 \begin_layout Enumerate
18295
18296 \size small
18297 \begin_inset Quotes eld
18298 \end_inset
18299
18300
18301 \family typewriter
18302 %s
18303 \family default
18304
18305 \begin_inset Quotes erd
18306 \end_inset
18307
18308  is normally not followed by 
18309 \begin_inset Quotes eld
18310 \end_inset
18311
18312
18313 \family typewriter
18314 %c
18315 \family default
18316
18317 \begin_inset Quotes erd
18318 \end_inset
18319
18320 .
18321 \end_layout
18322
18323 \begin_layout Standard
18324 \SpecialChar LyX
18325 の将来の版では、このツール(およびその縮小版
18326 \family typewriter
18327 lacheck
18328 \family default
18329 )の力を最大限引き出すように、より完備したインターフェイスを提供できればと考えています。しかし、現状でも十分に役立つものとなっています。ある程度長さがある既存文
18330 書に使用してみていただければ、きっと驚かれることでしょう。
18331 \end_layout
18332
18333 \begin_layout Section
18334 \SpecialChar LyX
18335 でのバージョン管理
18336 \end_layout
18337
18338 \begin_layout Standard
18339
18340 \noun on
18341 Lars Bullik Bjønnes
18342 \noun default
18343 および
18344 \noun on
18345 Pavel Sanda
18346 \noun default
18347
18348 \end_layout
18349
18350 \begin_layout Subsection
18351 はじめに
18352 \end_layout
18353
18354 \begin_layout Standard
18355 \SpecialChar LyX
18356 は、今ではもっとも基本的なRCS/CVS/SVN/GITコマンドをサポートしています。もしもっと洗練されたことを行いたい場合には、ターミナル上から手動で行う必要
18357 があります。
18358 \end_layout
18359
18360 \begin_layout Standard
18361 また、CVSのサポートは、subversionのサポートほど良くないので、CVSよりもSVNを使うことをお勧めします。Subversionを学び始めるには、SV
18362 N Book
18363 \begin_inset Foot
18364 status collapsed
18365
18366 \begin_layout Plain Layout
18367 \begin_inset CommandInset href
18368 LatexCommand href
18369 target "http://svnbook.red-bean.com/"
18370
18371 \end_inset
18372
18373
18374 \end_layout
18375
18376 \end_inset
18377
18378 が良いでしょう。RCSの場合は、「rsintro」をお読みください(これはmanファイルです。
18379 \family typewriter
18380 man rcsintro
18381 \family default
18382 で読めます)。このファイルは、RCSの基本機能のすべてを説明しています。特に、RCSディレクトリに関するコメントと、マスターRCSファイル(
18383 \family typewriter
18384 ,v
18385 \family default
18386 で終わるファイルです)の概念に注意を払ってください。
18387 \end_layout
18388
18389 \begin_layout Standard
18390 \SpecialChar LyX
18391 で実際にバージョン管理機能を使い始める前に、RCS/CVS/SVN/GITの使用法に習熟しておかなくてはなりません。\SpecialChar LyX
18392 で\SpecialChar LyX
18393 への実装においては、GNU
18394  RCSまたはCVS/SVNパッケージの最新版を仮定しています。旧版への保証はありません。ログメッセージのほとんどは、現在のところ操作後には表示されません。確認
18395 したい場合には、メッセージ面で確かめてください。バージョン管理を常用するユーザーには、VCツールバーが便利でしょう。これは
18396 \family sans
18397 表示\SpecialChar menuseparator
18398 ツールバー\SpecialChar menuseparator
18399 バージョン管理
18400 \family default
18401 で有効にできます。
18402 \end_layout
18403
18404 \begin_layout Standard
18405 自製の外部コマンドを導入したい場合には、\SpecialChar LyX
18406 関数説明書のvcコマンドを確認してください。
18407 \end_layout
18408
18409 \begin_layout Standard
18410
18411 \lang english
18412 It is strongly recommended to store documents in uncompressed format if
18413  using version control (uncheck 
18414 \family sans
18415 Document\SpecialChar menuseparator
18416 Compressed
18417 \family default
18418  if it is checked): Uncompressed LyX documents are text files and therefore
18419  for merging two different versions by version control systems.
18420  Compressed LyX documents are binary files, which cannot be merged by version
18421  control systems.
18422 \lang japanese
18423
18424 \begin_inset space \space{}
18425 \end_inset
18426
18427
18428 \end_layout
18429
18430 \begin_layout Subsection
18431 \SpecialChar LyX
18432 におけるRCSコマンド
18433 \end_layout
18434
18435 \begin_layout Standard
18436 以下の節では\SpecialChar LyX
18437 でサポートされているRCSコマンドを説明します。それらのコマンドは
18438 \family sans
18439 ファイル\SpecialChar menuseparator
18440 バージョン管理
18441 \family default
18442 のサブメニューにあります。\SpecialChar LyX
18443 は、RCS 5.7/5.8に対して試験されています。
18444 \end_layout
18445
18446 \begin_layout Subsubsection
18447
18448 \family sans
18449 登録
18450 \end_layout
18451
18452 \begin_layout Standard
18453 文書がバージョン管理の下にない場合には、これがメニューにあらわれる唯一の項目です。文書がバージョン管理下にあれば、項目
18454 \family sans
18455 登録
18456 \family default
18457 は不可視になります。
18458 \end_layout
18459
18460 \begin_layout Standard
18461 このコマンドは、文書をRCSに登録します(CVSが管理しているディレクトリ下にない場合)。すると対話的に、文書の最初の説明を入力するように尋ねられます。すると文
18462 書は読み込み専用モードになるので、変更を加えるためには
18463 \family sans
18464 チェックアウトして編集
18465 \family default
18466 を実行する必要があります。バージョン管理下にある文書は、ミニバッファのファイル名の後ろに「 [RCS:<バージョン> <ロック>]」という項目が表示されます。
18467 \end_layout
18468
18469 \begin_layout Standard
18470 実行されるRCSコマンドは:
18471 \family typewriter
18472
18473 \begin_inset Newline newline
18474 \end_inset
18475
18476 ci -q -u -i -t-"<初期説明文>" <ファイル名>
18477 \end_layout
18478
18479 \begin_layout Standard
18480 スイッチについて知りたい場合は、
18481 \family typewriter
18482 man ci
18483 \family default
18484 を読んでください。
18485 \end_layout
18486
18487 \begin_layout Subsubsection
18488
18489 \family sans
18490 変更をチェックインする
18491 \end_layout
18492
18493 \begin_layout Standard
18494 ファイルの編集が終わると、その変更をチェックインします。このとき、変更についての説明文を求められます。これは履歴ログに記録されます。バージョン番号は繰り上がり、
18495 変更がマスターRCSファイルに適用され、文書がアンロックされて読み込み専用モードになります。
18496 \end_layout
18497
18498 \begin_layout Standard
18499 RCSコマンド:
18500 \family typewriter
18501 ci -q -u -m"<説明文>" <ファイル名>
18502 \end_layout
18503
18504 \begin_layout Subsubsection
18505
18506 \family sans
18507 チェックアウトして編集
18508 \end_layout
18509
18510 \begin_layout Standard
18511 これは、文書をロックして編集できるようにします。そしてあなただけが文書を読み書きできるようにします。通常は、しばらくの間、文書を編集し、それが終わると変更をチェ
18512 ックインします。あなたがファイルをロックしたことを反映して、ステータスラインが変わります。
18513 \end_layout
18514
18515 \begin_layout Standard
18516 RCSコマンド:
18517 \family typewriter
18518 co -q -l <ファイル名>
18519 \end_layout
18520
18521 \begin_layout Subsubsection
18522
18523 \family sans
18524 リポジトリのバージョンに戻す
18525 \end_layout
18526
18527 \begin_layout Standard
18528 これは、最終チェックイン以降、文書に加えられた変更をすべて破棄します。変更が破棄される前に、警告が発せられます。
18529 \end_layout
18530
18531 \begin_layout Standard
18532 RCSコマンド:
18533 \family typewriter
18534 co -f -u<バージョン> <ファイル名>
18535 \end_layout
18536
18537 \begin_layout Subsubsection
18538
18539 \family sans
18540 コピー
18541 \end_layout
18542
18543 \begin_layout Standard
18544 これは、現行文書のコピーを生成します。RCSは、コピー操作を自前ではサポートしませんので、バージョン履歴には保存されず、新コピーは新規ファイルとして追加されます
18545 。最後のチェックイン以降、変更が加えられていないサラの文書であることが要求されます。ファイル名とコピー操作の説明を入力するように促され、その後、新コピーがローカ
18546 ルとリポジトリの両方に生成されます。コピーされた文書と元の文書の親ディレクトリが異なる場合には、コピーにインクルードされたファイルの相対パスは、(
18547 \family sans
18548 ファイル\SpecialChar menuseparator
18549 名前をつけて保存\SpecialChar ldots
18550
18551 \family default
18552 と同様に)全て調整されます。最後に、元の文書の代わりに、コピーされたファイルが読み込まれます。
18553 \end_layout
18554
18555 \begin_layout Labeling
18556 \labelwidthstring 00.00.0000
18557 RCSコマンド:
18558 \begin_inset Flex Code
18559 status collapsed
18560
18561 \begin_layout Plain Layout
18562 "ファイル名"
18563 \end_layout
18564
18565 \end_inset
18566
18567
18568 \family typewriter
18569 "新ファイル名"
18570 \family default
18571 にコピーする場合
18572 \end_layout
18573
18574 \begin_layout Labeling
18575 \labelwidthstring 00.00.0000
18576 \begin_inset Flex Code
18577 status collapsed
18578
18579 \begin_layout Plain Layout
18580 ci -q -u -i "<新ファイル名>"
18581 \end_layout
18582
18583 \end_inset
18584
18585
18586 \end_layout
18587
18588 \begin_layout Subsubsection
18589
18590 \family sans
18591 最後のチェックインを取り消す
18592 \end_layout
18593
18594 \begin_layout Standard
18595 これは、最後のチェックインがあたかも為されなかったかのようにします。\SpecialChar LyX
18596 に読み込まれた文書に変更は加えられませんが、マスターRCSファイルから最後のバージョンが削除
18597 されます。
18598 \end_layout
18599
18600 \begin_layout Standard
18601 RCSコマンド:
18602 \family typewriter
18603 rcs -o<バージョン> <ファイル名>
18604 \end_layout
18605
18606 \begin_layout Subsubsection
18607
18608 \family sans
18609 履歴を表示
18610 \end_layout
18611
18612 \begin_layout Standard
18613 RCS文書の完全な履歴を表示します。ブラウザ中に、
18614 \family typewriter
18615 rlog <ファイル名>
18616 \family default
18617 の出力が表示されます。詳細は
18618 \family typewriter
18619 man rlog
18620 \family default
18621 をご覧ください。
18622 \end_layout
18623
18624 \begin_layout Subsubsection
18625 改訂情報
18626 \end_layout
18627
18628 \begin_layout Standard
18629 \SpecialChar LyX
18630 は、RCSバージョン番号情報(のみ)をサポートしています。詳細については、
18631 \begin_inset CommandInset ref
18632 LatexCommand ref
18633 reference "subsec:VCS改訂情報"
18634
18635 \end_inset
18636
18637 を参照。
18638 \end_layout
18639
18640 \begin_layout Subsection
18641 \SpecialChar LyX
18642 におけるCVSコマンド
18643 \end_layout
18644
18645 \begin_layout Standard
18646 \SpecialChar LyX
18647 は、現在CVSを一部サポートしています。そのコマンドは、
18648 \family sans
18649 ファイル\SpecialChar menuseparator
18650 バージョン管理
18651 \family default
18652 サブメニューにあります。バージョン管理システムSVNの方が強力なので、可能ならばCVSではなく、SVNを使用してください。
18653 \end_layout
18654
18655 \begin_layout Subsubsection
18656 CVSの一般的な利用法
18657 \end_layout
18658
18659 \begin_layout Standard
18660 CVSを初めて使いたい場合には、外部ツールを使用して自分のレポジトリを作成し、作業コピーをチェックアウトする必要があります。クライアント=サーバーモデルを使用し
18661 ている場合には、最初のレポジトリチェックアウトを行う前にログインする必要があるかもしれません。
18662 \end_layout
18663
18664 \begin_layout Standard
18665 改訂管理下にある文書のレポジトリを他人も利用している場合に、同一文書の同一箇所に別々の変更を加えてしまうと問題が発生します。標準的なCVSレポジトリは、ファイル
18666 ロッキング機構を有しません。これは驚くべきことかもしれませんが、コンフリクトは、文書の同じ箇所の特定の内容について、人々が意見を異にしている場合にのみ発生します
18667 。したがって、共著者同士がコンスタントにコミュニケーションを交わしていれば、このようなコンフリクトは滅多に発生しません。もしコミュニケーションがなければ、いずれ
18668 にしても根本的な問題があるわけです。それにもかかわらず、いわゆる「予備付きチェックアウト」を使用したいと思う人々もいます。この場合、最初にチェックアウトした際に
18669 、全ファイルの作業コピーは読み込み専用にされ、ユーザーは、作業コピーを書き込み可能にする特別なコマンドを使用した後、編集を開始することになります。変更をチェック
18670 インすると、作業コピーは読み込み専用状態に戻ります。\SpecialChar LyX
18671 で予備付きチェックアウトを利用したい場合には、
18672 \begin_inset Flex Code
18673 status collapsed
18674
18675 \begin_layout Plain Layout
18676 .cvsrc
18677 \end_layout
18678
18679 \end_inset
18680
18681 ファイルを編集して、
18682 \begin_inset Flex Code
18683 status collapsed
18684
18685 \begin_layout Plain Layout
18686 cvs -r
18687 \end_layout
18688
18689 \end_inset
18690
18691 という行を書き加える必要があります。この方法の利点は、文書のうち、書き込み可能コピーを誰が使用しているかを見ることができることです。ただし、一人のユーザーだけが
18692 コピーを書き込み可能にしているとは限りません。
18693 \end_layout
18694
18695 \begin_layout Standard
18696 \SpecialChar LyX
18697 は、あなたが予備付きチェックアウトを使用しているか、予備なしチェックアウトを利用しているか、推測しようと試みます。使用中の作業コピーが読み込み専用になっているか
18698 、あるいはそれが書き込み可能であって、CVS/Baseサブディレクトリに使用中文書のコピーが存在している場合には、予備付きチェックアウトを使用しているものと仮定
18699 し、そうでない場合には予備なしチェックアウトを使用しているものと仮定します。予備付きチェックアウトが検出された場合には、作業コピーが読み込み専用の場合に書き込み
18700 可能にするためには、
18701 \begin_inset Flex MenuItem
18702 status collapsed
18703
18704 \begin_layout Plain Layout
18705 チェックアウト
18706 \end_layout
18707
18708 \end_inset
18709
18710 メニューを使用しなくてはなりません。その後、
18711 \begin_inset Flex MenuItem
18712 status collapsed
18713
18714 \begin_layout Plain Layout
18715 チェックイン
18716 \end_layout
18717
18718 \end_inset
18719
18720 メニューが利用可能になるので、自分が加えた変更をリポジトリに移した後、作業コピーを再び読み込み専用にする際には、これを使用します。
18721 \end_layout
18722
18723 \begin_layout Standard
18724 CVSの詳細な情報は、
18725 \begin_inset Flex URL
18726 status collapsed
18727
18728 \begin_layout Plain Layout
18729
18730 http://www.nongnu.org/cvs
18731 \end_layout
18732
18733 \end_inset
18734
18735
18736 \begin_inset Flex URL
18737 status collapsed
18738
18739 \begin_layout Plain Layout
18740
18741 http://ximbiot.com/cvs
18742 \end_layout
18743
18744 \end_inset
18745
18746 にあります。
18747 \end_layout
18748
18749 \begin_layout Standard
18750 以下に言及するサブコマンドとスイッチを理解するには、
18751 \family typewriter
18752 man cvs
18753 \family default
18754 をお読みください。
18755 \end_layout
18756
18757 \begin_layout Subsubsection
18758 登録
18759 \end_layout
18760
18761 \begin_layout Standard
18762 お使いの文書が改訂管理下に置かれていなければ、メニューにはこの項目だけが表示されます。もし改訂管理が有効ならば、
18763 \family sans
18764 登録
18765 \family default
18766 項目は表示されません。
18767 \end_layout
18768
18769 \begin_layout Standard
18770 本コマンドは、既に文書ディレクトリをCVS管理下に置いている場合に
18771 \series bold
18772 \emph on
18773 のみ
18774 \series default
18775 \emph default
18776 (すなわち
18777 \begin_inset Flex Code
18778 status collapsed
18779
18780 \begin_layout Plain Layout
18781 CVS/Entries
18782 \end_layout
18783
18784 \end_inset
18785
18786 ファイルが存在する場合にのみ)、お使いの文書をCVSに登録します。つまり、外部ツールを使用して、アーカイブを自分で作成ないしチェックアウトしなくてはならないこと
18787 を意味します(このステップを忘れてしまうと、\SpecialChar LyX
18788 は文書をRCSに登録します)。
18789 \end_layout
18790
18791 \begin_layout Standard
18792 すると、文書の最初の説明文を入力するように促されます。登録したファイルは、まだチェックインされたわけではないことに注意してください。
18793 \end_layout
18794
18795 \begin_layout Standard
18796 実行されるCVSコマンドは、
18797 \family typewriter
18798 cvs -q add -m"<入力した説明文>" "<ファイル名>"
18799 \family default
18800  です。
18801 \end_layout
18802
18803 \begin_layout Standard
18804 上記および他のすべてのCVSコマンドにおける
18805 \family typewriter
18806 "<ファイル名>"
18807 \family default
18808 は、「カレント作業ディレクトリをファイルの場所に移動し、パスコンポーネントを除いたファイル名を引数として使用する」という意味になります。
18809 \end_layout
18810
18811 \begin_layout Subsubsection
18812 変更のチェックイン
18813 \end_layout
18814
18815 \begin_layout Standard
18816 ファイルの編集を終えたら、変更をコミットします。このとき、文書に変更が加えられていれば、変更の説明文を入れるよう促されます。その後、変更がレポジトリに書き込まれ
18817 ます。文書を変更せず、予備付きチェックアウトが検出された場合、
18818 \begin_inset Flex MenuItem
18819 status collapsed
18820
18821 \begin_layout Plain Layout
18822 チェックアウト
18823 \end_layout
18824
18825 \end_inset
18826
18827 で作られた予備は取り消されます。
18828 \end_layout
18829
18830 \begin_layout Labeling
18831 \labelwidthstring 00.00.0000
18832 CVSコマンド: 
18833 \begin_inset space ~
18834 \end_inset
18835
18836
18837 \begin_inset Newline newline
18838 \end_inset
18839
18840
18841 \begin_inset Flex Code
18842 status collapsed
18843
18844 \begin_layout Plain Layout
18845 cvs -q commit -m"<入力した説明文>" "<ファイル名>"
18846 \end_layout
18847
18848 \end_inset
18849
18850 あるいは
18851 \begin_inset Newline newline
18852 \end_inset
18853
18854
18855 \begin_inset Flex Code
18856 status collapsed
18857
18858 \begin_layout Plain Layout
18859 cvs -q unedit "<ファイル名>"
18860 \end_layout
18861
18862 \end_inset
18863
18864
18865 \end_layout
18866
18867 \begin_layout Subsubsection
18868 変更のチェックアウト
18869 \end_layout
18870
18871 \begin_layout Standard
18872 レポジトリを他人と共有している場合、他人の加えた変更を自らの作業コピーに取り込まなくてはならないことがあります。
18873 \end_layout
18874
18875 \begin_layout Standard
18876 CVSコマンド:
18877 \family typewriter
18878 cvs -q update "<ファイル名>"
18879 \end_layout
18880
18881 \begin_layout Standard
18882 読み込み専用チェックアウトが検出された場合、作業コピーを書き込み可能にし予備を作成します。
18883 \end_layout
18884
18885 \begin_layout Standard
18886 CVSコマンド:
18887 \family typewriter
18888 cvs -q edit "<ファイル名>"
18889 \end_layout
18890
18891 \begin_layout Subsubsection
18892 レポジトリ版に戻す
18893 \end_layout
18894
18895 \begin_layout Standard
18896 これは、最後のチェックイン以降、文書に加えられた変更をすべて廃棄します。変更が廃棄される前に警告が表示されます。最初にファイルが削除され、次にCVS更新コマンド
18897 が実行されます。
18898 \end_layout
18899
18900 \begin_layout Standard
18901 CVSコマンド:
18902 \family typewriter
18903 cvs -q update "<ファイル名>"
18904 \end_layout
18905
18906 \begin_layout Standard
18907 予備付きチェックアウトが検出され、作業コピーに変更がない場合、予備のみが取り消されます。
18908 \end_layout
18909
18910 \begin_layout Standard
18911 CVSコマンド:
18912 \family typewriter
18913 cvs -q unedit "<ファイル名>"
18914 \end_layout
18915
18916 \begin_layout Subsubsection
18917
18918 \family sans
18919 コピー
18920 \end_layout
18921
18922 \begin_layout Standard
18923 これは、現行文書のコピーを生成します。CVSは、コピー操作を自前ではサポートしませんので、バージョン履歴には保存されず、新コピーは新規ファイルとして追加されます
18924 。最後のチェックイン以降、変更が加えられていないサラの文書であることが要求されます。ファイル名とコピー操作の説明を入力するように促され、その後、新コピーがローカ
18925 ルとリポジトリの両方に生成されます。コピーされた文書と元の文書の親ディレクトリが異なる場合には、コピーにインクルードされたファイルの相対パスは、(
18926 \family sans
18927 ファイル\SpecialChar menuseparator
18928 名前をつけて保存\SpecialChar ldots
18929
18930 \family default
18931 と同様に)全て調整されます。最後に、元の文書の代わりに、コピーされたファイルが読み込まれます。
18932 \end_layout
18933
18934 \begin_layout Labeling
18935 \labelwidthstring 00.00.0000
18936 CVSコマンド:
18937 \end_layout
18938
18939 \begin_layout Labeling
18940 \labelwidthstring 00.00.0000
18941 \begin_inset Flex Code
18942 status collapsed
18943
18944 \begin_layout Plain Layout
18945 "ファイル名"
18946 \end_layout
18947
18948 \end_inset
18949
18950
18951 \begin_inset Flex Code
18952 status collapsed
18953
18954 \begin_layout Plain Layout
18955 "新ファイル名"
18956 \end_layout
18957
18958 \end_inset
18959
18960 にコピーする場合
18961 \end_layout
18962
18963 \begin_layout Labeling
18964 \labelwidthstring 00.00.0000
18965 \begin_inset Flex Code
18966 status collapsed
18967
18968 \begin_layout Plain Layout
18969 cvs -q add "<新ファイル名>"
18970 \end_layout
18971
18972 \end_inset
18973
18974
18975 \end_layout
18976
18977 \begin_layout Subsubsection
18978 ファイル名変更
18979 \end_layout
18980
18981 \begin_layout Standard
18982 これは、現行文書のファイル名を変更します。CVSは、ファイル名変更操作を自前ではサポートしませんので、バージョン履歴には保存されず、名称変更後のファイルは、新規
18983 ファイルとして追加されます。最後のチェックイン以降、変更が加えられていないサラの文書であることが要求されます。ファイル名とコピー操作の説明を入力するように促され
18984 、その後、ローカルとリポジトリの両方でファイル名が変更されます。新旧ファイル名の文書の親ディレクトリが異なる場合には、コピーにインクルードされたファイルの相対パ
18985 スは、(
18986 \family sans
18987 ファイル\SpecialChar menuseparator
18988 名前をつけて保存\SpecialChar ldots
18989
18990 \family default
18991 と同様に)全て調整されます。最後に、新ファイル名を使ってファイルが再度読み込まれます。
18992 \end_layout
18993
18994 \begin_layout Labeling
18995 \labelwidthstring 00.00.0000
18996 CVSコマンド:
18997 \end_layout
18998
18999 \begin_layout Labeling
19000 \labelwidthstring 00.00.0000
19001 \begin_inset Flex Code
19002 status collapsed
19003
19004 \begin_layout Plain Layout
19005 "ファイル名"
19006 \end_layout
19007
19008 \end_inset
19009
19010
19011 \begin_inset Flex Code
19012 status collapsed
19013
19014 \begin_layout Plain Layout
19015 "新ファイル名"
19016 \end_layout
19017
19018 \end_inset
19019
19020 に変更する場合
19021 \end_layout
19022
19023 \begin_layout Labeling
19024 \labelwidthstring 00.00.0000
19025 \begin_inset Flex Code
19026 status collapsed
19027
19028 \begin_layout Plain Layout
19029 cvs -q add "<新ファイル名>"
19030 \end_layout
19031
19032 \end_inset
19033
19034
19035 \end_layout
19036
19037 \begin_layout Labeling
19038 \labelwidthstring 00.00.0000
19039 \begin_inset Flex Code
19040 status collapsed
19041
19042 \begin_layout Plain Layout
19043 cvs -q remove "<ファイル名>"
19044 \end_layout
19045
19046 \end_inset
19047
19048
19049 \end_layout
19050
19051 \begin_layout Subsubsection
19052 ローカルディレクトリチェックアウトのレポジトリからの更新
19053 \end_layout
19054
19055 \begin_layout Standard
19056 子文書や図を含んだり、外部
19057 \begin_inset Flex Code
19058 status collapsed
19059
19060 \begin_layout Plain Layout
19061 .tex
19062 \end_layout
19063
19064 \end_inset
19065
19066 ファイルを取り込むなど、文書が複雑になるにつれ、バージョン管理の利用は複雑になります。\SpecialChar LyX
19067 は、文書が存在するツリー全体の更新をサポートします。これは、CVSの使用法
19068 について詳しい知識のない人々や、レポジトリに追加素材をコミットする野望のない人々と共同作業をするような場合に、特に便利です。ファイル構造は、すべての外部ファイル
19069 が、文書と同じディレクトリかそのサブディレクトリに来るように組織する必要があります。いずれにしても、複合文書を新しいディレクトリを建てて収容するのは、望ましい習
19070 慣です。
19071 \end_layout
19072
19073 \begin_layout Standard
19074 コマンド
19075 \begin_inset Flex Code
19076 status collapsed
19077
19078 \begin_layout Plain Layout
19079 レポジトリを使ってローカル辞書を更新
19080 \end_layout
19081
19082 \end_inset
19083
19084 は、ディレクトリ全体を更新します。ローカルの変更が検出された場合には、更新を開始する前にユーザーに警告が発せられます。マージコンフリクトが発生した場合には、コン
19085 フリクトを起こしている部分の新旧バージョンが、両方とも最終文書に置かれますので、マージの結果を見直し、修正する必要があります。コンフリクトは、
19086 \begin_inset Flex Code
19087 status collapsed
19088
19089 \begin_layout Plain Layout
19090 <<<<<<<
19091 \end_layout
19092
19093 \end_inset
19094
19095
19096 \begin_inset Flex Code
19097 status collapsed
19098
19099 \begin_layout Plain Layout
19100 >>>>>>>
19101 \end_layout
19102
19103 \end_inset
19104
19105 の対に囲まれ、
19106 \begin_inset Flex Code
19107 status collapsed
19108
19109 \begin_layout Plain Layout
19110 =======
19111 \end_layout
19112
19113 \end_inset
19114
19115 で区切られて表示されます。最初の部分は、文書名に続いて、更新操作前のバージョンが置かれています。第2の部分は、
19116 \begin_inset Flex Code
19117 status collapsed
19118
19119 \begin_layout Plain Layout
19120 >
19121 \end_layout
19122
19123 \end_inset
19124
19125 記号列の後にバージョン番号に続いて、レポジトリ版が置かれます。
19126 \end_layout
19127
19128 \begin_layout Labeling
19129 \labelwidthstring 00.00.0000
19130 CVSコマンド: 
19131 \begin_inset space ~
19132 \end_inset
19133
19134
19135 \begin_inset Newline newline
19136 \end_inset
19137
19138
19139 \begin_inset Flex Code
19140 status collapsed
19141
19142 \begin_layout Plain Layout
19143 cd $path; cvs diff "."
19144 \end_layout
19145
19146 \end_inset
19147
19148 (変更が検出された場合には知らせる)
19149 \begin_inset Newline newline
19150 \end_inset
19151
19152
19153 \begin_inset Flex Code
19154 status collapsed
19155
19156 \begin_layout Plain Layout
19157 cd $path; cvs -q update "."
19158 \end_layout
19159
19160 \end_inset
19161
19162
19163 \end_layout
19164
19165 \begin_layout Standard
19166 ここで
19167 \begin_inset Flex Code
19168 status collapsed
19169
19170 \begin_layout Plain Layout
19171 $path
19172 \end_layout
19173
19174 \end_inset
19175
19176 は文書パスを表します。
19177 \end_layout
19178
19179 \begin_layout Subsubsection
19180 履歴を表示
19181 \end_layout
19182
19183 \begin_layout Standard
19184 これは、CVS文書の全履歴を表示します。
19185 \begin_inset Flex Code
19186 status collapsed
19187
19188 \begin_layout Plain Layout
19189 cvs log 
19190 \begin_inset Quotes eld
19191 \end_inset
19192
19193 <ファイル名>
19194 \begin_inset Quotes erd
19195 \end_inset
19196
19197
19198 \end_layout
19199
19200 \end_inset
19201
19202 の出力がブラウザに表示されます。
19203 \end_layout
19204
19205 \begin_layout Subsubsection
19206 改訂情報
19207 \end_layout
19208
19209 \begin_layout Standard
19210 \SpecialChar LyX
19211 は、CVS版数・著者名・最終コミットの日時をサポートします。これらの情報は、すべて
19212 \family typewriter
19213 cvs log -r <ファイル名>
19214 \family default
19215 によって抽出されます。詳細については、第
19216 \begin_inset CommandInset ref
19217 LatexCommand ref
19218 reference "subsec:VCS改訂情報"
19219
19220 \end_inset
19221
19222 節を参照してください。
19223 \end_layout
19224
19225 \begin_layout Subsection
19226 \SpecialChar LyX
19227 におけるSVNコマンド
19228 \end_layout
19229
19230 \begin_layout Standard
19231 \SpecialChar LyX
19232 は、現在SVNを一部サポートしています。そのコマンドは、
19233 \begin_inset Flex MenuItem
19234 status collapsed
19235
19236 \begin_layout Plain Layout
19237 ファイル\SpecialChar menuseparator
19238 バージョン管理
19239 \end_layout
19240
19241 \end_inset
19242
19243 メニューにあります。レポジトリへのアクセスに、ssh経由のパスワード保護アクセスを使用している場合には、端末ウィンドウでの入力を促されます。\SpecialChar LyX
19244 は、SVN
19245  1.5および1.6に対して試験されています。
19246 \end_layout
19247
19248 \begin_layout Subsubsection
19249 登録
19250 \end_layout
19251
19252 \begin_layout Standard
19253 お使いの文書が改訂管理下に置かれていなければ、メニューにはこの項目だけが表示されます。もし改訂管理が有効ならば、
19254 \family sans
19255 登録
19256 \family default
19257 項目は表示されません。
19258 \end_layout
19259
19260 \begin_layout Standard
19261 本コマンドは、既に文書のあるディレクトリをSVN管理下に置いている場合に
19262 \emph on
19263 のみ
19264 \emph default
19265 (すなわち
19266 \begin_inset Flex Code
19267 status collapsed
19268
19269 \begin_layout Plain Layout
19270 .svn/entries
19271 \end_layout
19272
19273 \end_inset
19274
19275 ファイルが存在する場合にのみ)、お使いの文書をSVNに登録します。つまり、アーカイブはご自分でチェックアウトしなくてはなりません。
19276 \end_layout
19277
19278 \begin_layout Standard
19279 すると、文書の最初の説明文を入力するように促されます。登録したファイルは、まだコミットされたわけではないことに注意してください。
19280 \end_layout
19281
19282 \begin_layout Standard
19283 実行されるSVNコマンドは、
19284 \begin_inset Flex Code
19285 status collapsed
19286
19287 \begin_layout Plain Layout
19288 svn add -q 
19289 \begin_inset Quotes eld
19290 \end_inset
19291
19292 <ファイル名>
19293 \begin_inset Quotes erd
19294 \end_inset
19295
19296
19297 \end_layout
19298
19299 \end_inset
19300
19301 です。
19302 \end_layout
19303
19304 \begin_layout Standard
19305 スイッチの説明は
19306 \begin_inset Flex Code
19307 status collapsed
19308
19309 \begin_layout Plain Layout
19310 man svn
19311 \end_layout
19312
19313 \end_inset
19314
19315 をお読みください。
19316 \end_layout
19317
19318 \begin_layout Subsubsection
19319 変更をチェックイン
19320 \end_layout
19321
19322 \begin_layout Standard
19323 ファイルの編集を終えたら、変更をコミットします。このとき、変更の説明文を入れるよう促されます。その後、変更がコミットされます。
19324 \end_layout
19325
19326 \begin_layout Standard
19327 SVNコマンド
19328 \begin_inset Foot
19329 status collapsed
19330
19331 \begin_layout Plain Layout
19332 ロックが有効になっていない場合です。第
19333 \begin_inset CommandInset ref
19334 LatexCommand ref
19335 reference "subsec:SVNファイルロック"
19336
19337 \end_inset
19338
19339 節をご覧ください。
19340 \end_layout
19341
19342 \end_inset
19343
19344
19345 \begin_inset Flex Code
19346 status collapsed
19347
19348 \begin_layout Plain Layout
19349 svn commit -q -m
19350 \begin_inset Quotes erd
19351 \end_inset
19352
19353 <入力した説明文>
19354 \begin_inset Quotes erd
19355 \end_inset
19356
19357  
19358 \begin_inset Quotes eld
19359 \end_inset
19360
19361 <ファイル名>
19362 \begin_inset Quotes erd
19363 \end_inset
19364
19365
19366 \end_layout
19367
19368 \end_inset
19369
19370
19371 \end_layout
19372
19373 \begin_layout Subsubsection
19374 チェックアウトして編集
19375 \end_layout
19376
19377 \begin_layout Standard
19378 このファイルの変更点をレポジトリから取得して更新します。すべての干渉点は、手動で解決しなくてはならないので、この機能を使う前にSVNのマージ法と干渉解決法を理解
19379 しておくようにしてください。
19380 \end_layout
19381
19382 \begin_layout Standard
19383 SVNコマンド
19384 \begin_inset Foot
19385 status collapsed
19386
19387 \begin_layout Plain Layout
19388 同上。
19389 \end_layout
19390
19391 \end_inset
19392
19393
19394 \begin_inset Flex Code
19395 status collapsed
19396
19397 \begin_layout Plain Layout
19398 svn update –non-interactive 
19399 \begin_inset Quotes eld
19400 \end_inset
19401
19402 <ファイル名>
19403 \begin_inset Quotes erd
19404 \end_inset
19405
19406
19407 \end_layout
19408
19409 \end_inset
19410
19411
19412 \end_layout
19413
19414 \begin_layout Subsubsection
19415 リポジトリ版に戻す
19416 \end_layout
19417
19418 \begin_layout Standard
19419 これは、最後のチェックイン以降、文書に加えられた変更をすべて廃棄します。変更が廃棄される前に警告が表示されます。
19420 \end_layout
19421
19422 \begin_layout Standard
19423 SVNコマンド:
19424 \begin_inset Flex Code
19425 status collapsed
19426
19427 \begin_layout Plain Layout
19428 svn revert -q 
19429 \begin_inset Quotes eld
19430 \end_inset
19431
19432 <ファイル名>
19433 \begin_inset Quotes erd
19434 \end_inset
19435
19436
19437 \end_layout
19438
19439 \end_inset
19440
19441
19442 \end_layout
19443
19444 \begin_layout Subsubsection
19445
19446 \family sans
19447 コピー
19448 \end_layout
19449
19450 \begin_layout Standard
19451 これは、現行文書のコピーを生成します。最後のチェックイン以降、変更が加えられていないサラの文書であることが要求されます。ファイル名とコピー操作の説明を入力するよ
19452 うに促され、その後、新コピーがローカルとリポジトリの両方に生成されます。コピーされた文書と元の文書の親ディレクトリが異なる場合には、コピーにインクルードされたフ
19453 ァイルの相対パスは、(
19454 \family sans
19455 ファイル\SpecialChar menuseparator
19456 名前をつけて保存\SpecialChar ldots
19457
19458 \family default
19459 と同様に)全て調整されます。最後に、元の文書の代わりに、コピーされたファイルが読み込まれます。
19460 \end_layout
19461
19462 \begin_layout Labeling
19463 \labelwidthstring 00.00.0000
19464 SVNコマンド:
19465 \end_layout
19466
19467 \begin_layout Labeling
19468 \labelwidthstring 00.00.0000
19469 \begin_inset Flex Code
19470 status collapsed
19471
19472 \begin_layout Plain Layout
19473 svn copy -q "<ファイル名>" "<新ファイル名>"
19474 \end_layout
19475
19476 \end_inset
19477
19478
19479 \end_layout
19480
19481 \begin_layout Labeling
19482 \labelwidthstring 00.00.0000
19483 \begin_inset Flex Code
19484 status collapsed
19485
19486 \begin_layout Plain Layout
19487 svn commit
19488 \end_layout
19489
19490 \end_inset
19491
19492
19493 \end_layout
19494
19495 \begin_layout Subsubsection
19496 ファイル名変更
19497 \end_layout
19498
19499 \begin_layout Standard
19500 これは、現行文書のファイル名を変更します。最後のチェックイン以降、変更が加えられていないサラの文書であることが要求されます。ファイル名とコピー操作の説明を入力す
19501 るように促され、その後、ローカルとリポジトリの両方でファイル名が変更されます。新旧ファイル名の文書の親ディレクトリが異なる場合には、コピーにインクルードされたフ
19502 ァイルの相対パスは、(
19503 \family sans
19504 ファイル\SpecialChar menuseparator
19505 名前をつけて保存\SpecialChar ldots
19506
19507 \family default
19508 と同様に)全て調整されます。最後に、新ファイル名を使ってファイルが再度読み込まれます。
19509 \end_layout
19510
19511 \begin_layout Labeling
19512 \labelwidthstring 00.00.0000
19513 SVNコマンド:
19514 \end_layout
19515
19516 \begin_layout Labeling
19517 \labelwidthstring 00.00.0000
19518 \begin_inset Flex Code
19519 status collapsed
19520
19521 \begin_layout Plain Layout
19522 svn move -q add "<ファイル名>" "<新ファイル名>"
19523 \end_layout
19524
19525 \end_inset
19526
19527
19528 \end_layout
19529
19530 \begin_layout Labeling
19531 \labelwidthstring 00.00.0000
19532 \begin_inset Flex Code
19533 status collapsed
19534
19535 \begin_layout Plain Layout
19536 svn commit
19537 \end_layout
19538
19539 \end_inset
19540
19541
19542 \end_layout
19543
19544 \begin_layout Subsubsection
19545 \begin_inset CommandInset label
19546 LatexCommand label
19547 name "subsec:レポジトリからSVN同期"
19548
19549 \end_inset
19550
19551 レポジトリを使ったローカルディレクトリの同期
19552 \begin_inset Foot
19553 status collapsed
19554
19555 \begin_layout Plain Layout
19556 このコマンドは、subversion 
19557 \begin_inset Formula $\geqq1.5$
19558 \end_inset
19559
19560 でのみ動作することに注意してください。
19561 \end_layout
19562
19563 \end_inset
19564
19565
19566 \end_layout
19567
19568 \begin_layout Standard
19569 上記の各コマンドはすべて、共通の短所を持っています。すなわち、これらのコマンドは現在の文書しか取り扱わないのです。もし、作業中の文書に図を含めたり、外部
19570 \begin_inset Flex Code
19571 status collapsed
19572
19573 \begin_layout Plain Layout
19574 .tex
19575 \end_layout
19576
19577 \end_inset
19578
19579 ファイルを取り込んだりすれば、管理はずっと複雑になります。そこで\SpecialChar LyX
19580 は、文書のおいてあるツリー全体の更新をサポートします
19581 \begin_inset Foot
19582 status collapsed
19583
19584 \begin_layout Plain Layout
19585 すべての外部ファイルが、文書と同じディレクトリかそれ以下のサブディレクトリに来るようにファイル構造を構成する必要があります。
19586 \end_layout
19587
19588 \end_inset
19589
19590 。これは、subversion管理を知らなかったりレポジトリに新しい素材をコミットする勇気のない人たちと共同作業をする羽目になったときに、ひじょうに役に立ちます
19591
19592 \end_layout
19593
19594 \begin_layout Standard
19595 \begin_inset Flex Code
19596 status collapsed
19597
19598 \begin_layout Plain Layout
19599 ローカル辞書をレポジトリを使って更新
19600 \end_layout
19601
19602 \end_inset
19603
19604 コマンドは、ディレクトリ全体を更新し、マージに衝突が発生した場合には、ローカル版は保存されるので、意図しないデータロスが発生しません。ローカルな変更が発見された
19605 場合には、更新が開始される前にユーザに警告が与えられます。
19606 \end_layout
19607
19608 \begin_layout Labeling
19609 \labelwidthstring 00.00.0000
19610 SVNコマンド: 
19611 \begin_inset space ~
19612 \end_inset
19613
19614
19615 \begin_inset Newline newline
19616 \end_inset
19617
19618
19619 \begin_inset Flex Code
19620 status collapsed
19621
19622 \begin_layout Plain Layout
19623 svn diff $path(変更が発見された場合には通知します)
19624 \begin_inset Newline newline
19625 \end_inset
19626
19627 svn update –accept mine-full $path
19628 \end_layout
19629
19630 \end_inset
19631
19632
19633 \end_layout
19634
19635 \begin_layout Standard
19636 ここで
19637 \begin_inset Flex Code
19638 status collapsed
19639
19640 \begin_layout Plain Layout
19641 $path
19642 \end_layout
19643
19644 \end_inset
19645
19646 は文書のパスを示します。
19647 \end_layout
19648
19649 \begin_layout Subsubsection
19650 履歴を表示
19651 \end_layout
19652
19653 \begin_layout Standard
19654 これは、SVN文書の全履歴を表示します。
19655 \begin_inset Flex Code
19656 status collapsed
19657
19658 \begin_layout Plain Layout
19659 svn log 
19660 \begin_inset Quotes eld
19661 \end_inset
19662
19663 <ファイル名>
19664 \begin_inset Quotes erd
19665 \end_inset
19666
19667
19668 \end_layout
19669
19670 \end_inset
19671
19672 の出力がブラウザに表示されます。
19673 \end_layout
19674
19675 \begin_layout Subsubsection
19676 ファイルロック
19677 \begin_inset CommandInset label
19678 LatexCommand label
19679 name "subsec:SVNファイルロック"
19680
19681 \end_inset
19682
19683
19684 \end_layout
19685
19686 \begin_layout Standard
19687 別々の改訂管理システム間でファイルを交換しようとすると、二人のユーザが同じ文書(の一部)を編集している場合、マージが衝突する問題を引き起こします。そのような衝突
19688 が発生した場合、手動で解決しなくてはならなくなりますが、その合理的な解決法としては、与えられた時間に一人のユーザだけがファイルを編集することが許されるように保証
19689 するための、何らかのロック機構を導入することが考えられます。
19690 \end_layout
19691
19692 \begin_layout Standard
19693 SVNには、このように相互に排他的なファイルアクセスを提供する機構が二つあります。ロックと、
19694 \begin_inset Flex Code
19695 status collapsed
19696
19697 \begin_layout Plain Layout
19698 svn:needs-lock
19699 \end_layout
19700
19701 \end_inset
19702
19703 svnファイル特性に依拠した書き込み権限の自動設定(第
19704 \begin_inset CommandInset ref
19705 LatexCommand ref
19706 reference "subsec:自動ロック特性"
19707
19708 \end_inset
19709
19710 節を参照)です
19711 \begin_inset Foot
19712 status open
19713
19714 \begin_layout Plain Layout
19715 http://svnbook.red-bean.com/en/1.2/svn.advanced.locking.html
19716 \end_layout
19717
19718 \end_inset
19719
19720 。ある文書について、この特性が検出されたときには、\SpecialChar LyX
19721 は自動的に文書編集にSVNロックを使用するようになり、チェックイン・チェックアウト機構はRCSと同じ枠組みに切
19722 り替わります。これは特に、\SpecialChar LyX
19723 でのファイルの使われ方に以下の二つのモードがあることを意味します。
19724 \end_layout
19725
19726 \begin_layout Itemize
19727 非ロック状態。読み込まれたファイルは、読み込み専用モードになります。編集するためには、チェックアウトする必要があります。
19728 \emph on
19729 チェックアウト
19730 \emph default
19731 を行うと、レポジトリからの更新と、書き込みロックの獲得が行われます。ロックの獲得ができないと、非ロック状態から出ることができません。
19732 \end_layout
19733
19734 \begin_layout Itemize
19735 ロック状態。読み込まれたファイルは、「通常の」編集モードになります。他のユーザには、このファイルを編集する許可が与えられません。
19736 \emph on
19737 チェックイン
19738 \emph default
19739 を行うと、変更のコミットと書き込みロックの解放が行われます。文書に変更が加えられなかった場合には、コミットは実行されず
19740 \begin_inset Foot
19741 status collapsed
19742
19743 \begin_layout Plain Layout
19744 コミットは実行されないのに、コミットメッセージを入力するよう促されますが、驚かないでください。
19745 \end_layout
19746
19747 \end_inset
19748
19749 、書き込みロックの解放のみが行われます。
19750 \end_layout
19751
19752 \begin_layout Standard
19753 SVNコマンド:
19754 \end_layout
19755
19756 \begin_layout Labeling
19757 \labelwidthstring 00.00.0000
19758 チェックイン: 
19759 \begin_inset Flex Code
19760 status collapsed
19761
19762 \begin_layout Plain Layout
19763 svn commit -q -m
19764 \begin_inset Quotes erd
19765 \end_inset
19766
19767 <説明>
19768 \begin_inset Quotes erd
19769 \end_inset
19770
19771  
19772 \begin_inset Quotes eld
19773 \end_inset
19774
19775 <ファイル名>
19776 \begin_inset Quotes erd
19777 \end_inset
19778
19779
19780 \end_layout
19781
19782 \end_inset
19783
19784
19785 \begin_inset Newline newline
19786 \end_inset
19787
19788
19789 \begin_inset Flex Code
19790 status collapsed
19791
19792 \begin_layout Plain Layout
19793 svn unlock 
19794 \begin_inset Quotes eld
19795 \end_inset
19796
19797 <ファイル名>
19798 \begin_inset Quotes erd
19799 \end_inset
19800
19801
19802 \end_layout
19803
19804 \end_inset
19805
19806
19807 \end_layout
19808
19809 \begin_layout Labeling
19810 \labelwidthstring 00.00.0000
19811 チェックアウト: 
19812 \begin_inset Flex Code
19813 status collapsed
19814
19815 \begin_layout Plain Layout
19816 svn update 
19817 \begin_inset Quotes eld
19818 \end_inset
19819
19820 <ファイル名>
19821 \begin_inset Quotes erd
19822 \end_inset
19823
19824
19825 \end_layout
19826
19827 \end_inset
19828
19829
19830 \begin_inset Newline newline
19831 \end_inset
19832
19833
19834 \begin_inset Flex Code
19835 status collapsed
19836
19837 \begin_layout Plain Layout
19838 svn unlock 
19839 \begin_inset Quotes eld
19840 \end_inset
19841
19842 <ファイル名>
19843 \begin_inset Quotes erd
19844 \end_inset
19845
19846
19847 \end_layout
19848
19849 \end_inset
19850
19851
19852 \end_layout
19853
19854 \begin_layout Subsubsection
19855 自動ロック特性
19856 \begin_inset CommandInset label
19857 LatexCommand label
19858 name "subsec:自動ロック特性"
19859
19860 \end_inset
19861
19862
19863 \end_layout
19864
19865 \begin_layout Standard
19866 上述したような
19867 \begin_inset Flex Code
19868 status collapsed
19869
19870 \begin_layout Plain Layout
19871 .lyx
19872 \end_layout
19873
19874 \end_inset
19875
19876 ファイルに対する書き込み権限の自動設定は、
19877 \begin_inset Flex MenuItem
19878 status collapsed
19879
19880 \begin_layout Plain Layout
19881 ファイル\SpecialChar menuseparator
19882 バージョン管理\SpecialChar menuseparator
19883 ロック特性を使用
19884 \end_layout
19885
19886 \end_inset
19887
19888 で行うことができます。このコマンドは、SVNサーバでファイルがロックされていないときのみ使用可能状態になります(つまり、使用するにはチェックアウトが必要です)。
19889 \end_layout
19890
19891 \begin_layout Standard
19892 SVNコマンド:
19893 \end_layout
19894
19895 \begin_layout Labeling
19896 \labelwidthstring 00.00.0000
19897 チェックイン: 
19898 \begin_inset Flex Code
19899 status collapsed
19900
19901 \begin_layout Plain Layout
19902 svn propset svn:needs-lock ON 
19903 \begin_inset Quotes eld
19904 \end_inset
19905
19906 <ファイル名>
19907 \begin_inset Quotes erd
19908 \end_inset
19909
19910
19911 \end_layout
19912
19913 \end_inset
19914
19915
19916 \end_layout
19917
19918 \begin_layout Labeling
19919 \labelwidthstring 00.00.0000
19920 チェックアウト: 
19921 \begin_inset Flex Code
19922 status collapsed
19923
19924 \begin_layout Plain Layout
19925 svn propdel svn:needs-lock 
19926 \begin_inset Quotes eld
19927 \end_inset
19928
19929 <ファイル名>
19930 \begin_inset Quotes erd
19931 \end_inset
19932
19933
19934 \end_layout
19935
19936 \end_inset
19937
19938
19939 \end_layout
19940
19941 \begin_layout Subsubsection
19942 \begin_inset CommandInset label
19943 LatexCommand label
19944 name "subsec:VCS改訂情報"
19945
19946 \end_inset
19947
19948 文書の改訂情報
19949 \end_layout
19950
19951 \begin_layout Standard
19952 文書中で改訂情報を有効化するにはいくつかの方法があります。
19953 \end_layout
19954
19955 \begin_layout Itemize
19956 \SpecialChar LyX
19957 による直接サポート
19958 \begin_inset Separator parbreak
19959 \end_inset
19960
19961
19962 \end_layout
19963
19964 \begin_deeper
19965 \begin_layout Itemize
19966 ツリー改訂情報(
19967 \begin_inset Flex Code
19968 status collapsed
19969
19970 \begin_layout Plain Layout
19971 vcs-tree-revision
19972 \end_layout
19973
19974 \end_inset
19975
19976 )。
19977 \begin_inset Flex Code
19978 status collapsed
19979
19980 \begin_layout Plain Layout
19981 svnversion
19982 \end_layout
19983
19984 \end_inset
19985
19986 コマンドの出力を返します。下記の表が、結果の読み方のヒントを与えるでしょう。
19987 \end_layout
19988
19989 \begin_layout Standard
19990 \align center
19991 \begin_inset Tabular
19992 <lyxtabular version="3" rows="6" columns="2">
19993 <features tabularvalignment="middle">
19994 <column alignment="center" valignment="top">
19995 <column alignment="center" valignment="top">
19996 <row>
19997 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19998 \begin_inset Text
19999
20000 \begin_layout Plain Layout
20001 出力
20002 \end_layout
20003
20004 \end_inset
20005 </cell>
20006 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
20007 \begin_inset Text
20008
20009 \begin_layout Plain Layout
20010 意味
20011 \end_layout
20012
20013 \end_inset
20014 </cell>
20015 </row>
20016 <row>
20017 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20018 \begin_inset Text
20019
20020 \begin_layout Plain Layout
20021 4123:4168
20022 \end_layout
20023
20024 \end_inset
20025 </cell>
20026 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20027 \begin_inset Text
20028
20029 \begin_layout Plain Layout
20030 改訂版の混合した作業コピー
20031 \end_layout
20032
20033 \end_inset
20034 </cell>
20035 </row>
20036 <row>
20037 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20038 \begin_inset Text
20039
20040 \begin_layout Plain Layout
20041 4168M
20042 \end_layout
20043
20044 \end_inset
20045 </cell>
20046 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20047 \begin_inset Text
20048
20049 \begin_layout Plain Layout
20050 修正された作業コピー
20051 \end_layout
20052
20053 \end_inset
20054 </cell>
20055 </row>
20056 <row>
20057 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20058 \begin_inset Text
20059
20060 \begin_layout Plain Layout
20061 4123S
20062 \end_layout
20063
20064 \end_inset
20065 </cell>
20066 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20067 \begin_inset Text
20068
20069 \begin_layout Plain Layout
20070 スイッチされた作業コピー
20071 \end_layout
20072
20073 \end_inset
20074 </cell>
20075 </row>
20076 <row>
20077 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20078 \begin_inset Text
20079
20080 \begin_layout Plain Layout
20081 4123P
20082 \end_layout
20083
20084 \end_inset
20085 </cell>
20086 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20087 \begin_inset Text
20088
20089 \begin_layout Plain Layout
20090 チェックアウト頻度が低かったことによる不完全な作業コピー
20091 \end_layout
20092
20093 \end_inset
20094 </cell>
20095 </row>
20096 <row>
20097 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
20098 \begin_inset Text
20099
20100 \begin_layout Plain Layout
20101 4123:4168MS
20102 \end_layout
20103
20104 \end_inset
20105 </cell>
20106 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
20107 \begin_inset Text
20108
20109 \begin_layout Plain Layout
20110 改訂版が混合し、修正され、スイッチされた作業コピー
20111 \end_layout
20112
20113 \end_inset
20114 </cell>
20115 </row>
20116 </lyxtabular>
20117
20118 \end_inset
20119
20120
20121 \end_layout
20122
20123 \begin_layout Itemize
20124 ファイル改訂情報。
20125 \begin_inset Flex Code
20126 status collapsed
20127
20128 \begin_layout Plain Layout
20129 svn
20130 \begin_inset space ~
20131 \end_inset
20132
20133 info
20134 \begin_inset space ~
20135 \end_inset
20136
20137 –xml
20138 \begin_inset space ~
20139 \end_inset
20140
20141 file.lyx
20142 \end_layout
20143
20144 \end_inset
20145
20146 の出力を解析したものが返されます。サポートされるフラグは
20147 \begin_inset Separator parbreak
20148 \end_inset
20149
20150
20151 \end_layout
20152
20153 \begin_deeper
20154 \begin_layout Itemize
20155 最終コミットのバージョン番号(
20156 \begin_inset Flex Code
20157 status collapsed
20158
20159 \begin_layout Plain Layout
20160 vcs-revision
20161 \end_layout
20162
20163 \end_inset
20164
20165 )
20166 \end_layout
20167
20168 \begin_layout Itemize
20169 最終コミットの著者(
20170 \begin_inset Flex Code
20171 status collapsed
20172
20173 \begin_layout Plain Layout
20174 vcs-author
20175 \end_layout
20176
20177 \end_inset
20178
20179 )
20180 \end_layout
20181
20182 \begin_layout Itemize
20183 最終コミットの日付(
20184 \begin_inset Flex Code
20185 status collapsed
20186
20187 \begin_layout Plain Layout
20188 vcs-date
20189 \end_layout
20190
20191 \end_inset
20192
20193 )
20194 \end_layout
20195
20196 \begin_layout Itemize
20197 最終コミットの時間(
20198 \begin_inset Flex Code
20199 status collapsed
20200
20201 \begin_layout Plain Layout
20202 vcs-time
20203 \end_layout
20204
20205 \end_inset
20206
20207 )
20208 \end_layout
20209
20210 \end_deeper
20211 \begin_layout Standard
20212 これらの情報は、情報差込枠で得ることができます(例:
20213 \begin_inset Flex Code
20214 status collapsed
20215
20216 \begin_layout Plain Layout
20217 info-insert buffer vcs-date
20218 \end_layout
20219
20220 \end_inset
20221
20222 )。これらの情報は、ファイルをsvn管理下に置いたときのみ(すなわち使用中文書の
20223 \begin_inset Flex Code
20224 status collapsed
20225
20226 \begin_layout Plain Layout
20227 .svn
20228 \end_layout
20229
20230 \end_inset
20231
20232 ディレクトリがあるときのみ)利用可能です。
20233 \end_layout
20234
20235 \end_deeper
20236 \begin_layout Itemize
20237 もう一つの—ハッカー的な—方法は、SVNキーワードを使用する方法です
20238 \begin_inset Foot
20239 status collapsed
20240
20241 \begin_layout Plain Layout
20242 http://svnbook.red-bean.com/en/1.4/svn.advanced.props.special.keywords.html
20243 \end_layout
20244
20245 \end_inset
20246
20247 。簡単に言えば、ファイルキーワード特性を設定して(例:
20248 \family sans
20249 svn propset svn:keywords 'Rev' file.lyx
20250 \family default
20251 )、文書中にキーワード\SpecialChar TeX
20252 コード
20253 \begin_inset Foot
20254 status collapsed
20255
20256 \begin_layout Plain Layout
20257 これは、\SpecialChar LyX
20258 がキーワードタグの途中で改行してしまわないことを確実にするための、簡単な方法です。
20259 \end_layout
20260
20261 \end_inset
20262
20263 タグ(例:
20264 \begin_inset ERT
20265 status open
20266
20267 \begin_layout Plain Layout
20268
20269 $Rev$
20270 \end_layout
20271
20272 \end_inset
20273
20274 )を貼り付けるのです。このようにして、SVNクライアントは、各更新やコミットの後に自動的に改訂番号を代入することができるのです(例
20275 \begin_inset ERT
20276 status open
20277
20278 \begin_layout Plain Layout
20279
20280 $Rev: 59 $
20281 \end_layout
20282
20283 \end_inset
20284
20285 )。このアプローチにはいくつか問題があります。第一に、\SpecialChar TeX
20286 の世界では「$」文字は数式を表すのに使われるので、\SpecialChar LyX
20287 中の
20288 \begin_inset Formula $Rev$
20289 \end_inset
20290
20291 という数式表現が、すべて
20292 \begin_inset Formula $Rev:59$
20293 \end_inset
20294
20295 になってしまいます。その他のId・Date・Authorなどといったキーワードも同様です。第二に、SVN出力は使用中のロケールに依存するので、Dateが用いられ
20296 ると、SVNは、問題を引き起こすような文字列を容易に生成してしまいます。第三に、文書中には、番号だけでなく「Rev:59」という文字列全体が表示されてしまいます
20297 。Subversionがユーザ定義のキーワードを実装するまでは、このアプローチを信頼性を持って使用したり、\SpecialChar LyX
20298 がこれを直接サポートすることは、難しそうです。
20299 \end_layout
20300
20301 \begin_layout Subsection
20302 SVNとWindows環境
20303 \end_layout
20304
20305 \begin_layout Quote
20306 ユーザが、かなり早いうちに自分自身でコマンドライン操作を理解できないのであれば、TortoiseSVNを使った方が賢明でしょう。—P.
20307  A.
20308  ルービン
20309 \end_layout
20310
20311 \begin_layout Subsubsection
20312 準備
20313 \end_layout
20314
20315 \begin_layout Standard
20316 \SpecialChar LyX
20317 を導入して、Subversionレポジトリへのアクセス権を持っている他に、ユーザはSubversionクライアントプログラムを導入する必要があります。クライアン
20318 トプログラムのWindows用インストーラは
20319 \begin_inset CommandInset href
20320 LatexCommand href
20321 name "CollabNet"
20322 target "http://www.collab.net/nonav/downloads/subversion/"
20323
20324 \end_inset
20325
20326 にあります。ユーザは
20327 \begin_inset CommandInset href
20328 LatexCommand href
20329 name "TortoiseSVN"
20330 target "http://tortoisesvn.tigris.org/"
20331
20332 \end_inset
20333
20334 も導入することを考えるでしょう。これはSubversionの操作をWindows Explorerのコンテクスト(右クリック)メニューに統合します。\SpecialChar LyX
20335 外部で行う操
20336 作は、一般的にExplorerコンテクストメニューを使った方が便利です。TortoiseSVNは、\SpecialChar LyX
20337 自身が使用するクライアントプログラムの代わりとは成りませんので
20338 、注意してください。
20339 \end_layout
20340
20341 \begin_layout Subsubsection
20342 文書をSubversion管理下に置くには
20343 \end_layout
20344
20345 \begin_layout Standard
20346 \SpecialChar LyX
20347 文書をSubversionのバージョン管理下に置く前に、その親ディレクトリをバージョン管理下に置かなくてはなりません。文書を、既にレポジトリに存在するプロジェク
20348 トに追加する際には、新規文書が置かれることになるディレクトリへ、プロジェクトをチェックアウトすることによって実現します。プロジェクト自体がバージョン管理下にない
20349 場合(たとえばこの文書が新規プロジェクトの最初のファイルである場合)には、このディレクトリをレポジトリにインポートしなくてはなりません。これは、\SpecialChar LyX
20350 の外部で行います
20351 。インポートもチェックアウトも共に、TortoiseSVNを使えば、Explorerのコンテクストメニューから簡単に終えることができます。あるいは、DOSプロン
20352 プトでコマンドライン・クライアントを使って成し遂げることもできます。TortoiseSVNを使ったプロジェクトのインポート手続きを下記で説明します。レポジトリは
20353 既に存在し、新規プロジェクトを
20354 \begin_inset Flex Code
20355 status collapsed
20356
20357 \begin_layout Plain Layout
20358 C:
20359 \backslash
20360 new project
20361 \end_layout
20362
20363 \end_inset
20364
20365 で開始するものとします。Subversionクライアントプログラムを使うための情報を得るには、DOSシェルで
20366 \begin_inset Flex Code
20367 status collapsed
20368
20369 \begin_layout Plain Layout
20370 svn –help
20371 \end_layout
20372
20373 \end_inset
20374
20375 を実行してください。
20376 \end_layout
20377
20378 \begin_layout Enumerate
20379 Windows Explorerで
20380 \begin_inset Flex Code
20381 status collapsed
20382
20383 \begin_layout Plain Layout
20384 C:
20385 \backslash
20386 new project
20387 \end_layout
20388
20389 \end_inset
20390
20391 を見つけ出して右クリックし、
20392 \begin_inset Flex MenuItem
20393 status collapsed
20394
20395 \begin_layout Plain Layout
20396 TortoiseSVN\SpecialChar menuseparator
20397 Repo-browser
20398 \end_layout
20399
20400 \end_inset
20401
20402 を選択してください。必要であれば、レポジトリのURLを調整し、OKをクリックしてください。
20403 \end_layout
20404
20405 \begin_layout Enumerate
20406 新規プロジェクトフォルダを置くレポジトリレベル(多くの場合最上位レベル)を右クリックし、
20407 \begin_inset Flex MenuItem
20408 status collapsed
20409
20410 \begin_layout Plain Layout
20411 Create folder\SpecialChar ldots
20412
20413 \end_layout
20414
20415 \end_inset
20416
20417 をクリックしてください。プロジェクトフォルダの名称を入力してOKをクリックしてください。必要であればログファイル用のメッセージを入力し、再びOKをクリックしてく
20418 ださい。新規プロジェクトフォルダがレポジトリに現れるはずです。最後にOKを再度クリックして、レポジトリブラウザを終了してください。
20419 \end_layout
20420
20421 \begin_layout Enumerate
20422 再度
20423 \begin_inset Flex Code
20424 status collapsed
20425
20426 \begin_layout Plain Layout
20427 C:
20428 \backslash
20429 new project
20430 \end_layout
20431
20432 \end_inset
20433
20434 を右クリックし、今度は
20435 \begin_inset Flex MenuItem
20436 status collapsed
20437
20438 \begin_layout Plain Layout
20439 SVN Checkout\SpecialChar ldots
20440
20441 \end_layout
20442
20443 \end_inset
20444
20445 を選択してください。レポジトリにたった今作成した、プロジェクトフォルダのURLを選択し、チェックアウトディレクトリを
20446 \begin_inset Flex Code
20447 status collapsed
20448
20449 \begin_layout Plain Layout
20450 C:
20451 \backslash
20452 new project
20453 \end_layout
20454
20455 \end_inset
20456
20457 に設定してから、OKをクリックしてください。フォルダが空でないことを警告されますが、OKをクリックして進んでください。すると、
20458 \begin_inset Flex Code
20459 status collapsed
20460
20461 \begin_layout Plain Layout
20462 C:
20463 \backslash
20464 new project
20465 \end_layout
20466
20467 \end_inset
20468
20469 の下に
20470 \begin_inset Flex Code
20471 status collapsed
20472
20473 \begin_layout Plain Layout
20474 .svn
20475 \end_layout
20476
20477 \end_inset
20478
20479 ディレクトリが作成されます。
20480 \end_layout
20481
20482 \begin_layout Enumerate
20483 \SpecialChar LyX
20484 で文書を新規作成するか開くかして、
20485 \begin_inset Flex MenuItem
20486 status collapsed
20487
20488 \begin_layout Plain Layout
20489 ファイル\SpecialChar menuseparator
20490 バージョン管理\SpecialChar menuseparator
20491 登録
20492 \end_layout
20493
20494 \end_inset
20495
20496 をクリックします。ログメッセージを入力してOKをクリックし、文書をバージョン管理にコミットしてください。
20497 \end_layout
20498
20499 \begin_layout Standard
20500 爾後、
20501 \begin_inset Flex MenuItem
20502 status collapsed
20503
20504 \begin_layout Plain Layout
20505 ファイル\SpecialChar menuseparator
20506 バージョン管理
20507 \end_layout
20508
20509 \end_inset
20510
20511 メニューのすべての機能が使用できるようになります。Windows ExplorerのTortoiseSVNコンテクストメニューか、コマンドプロンプトでのSubv
20512 ersionクライアントプログラムを使用して、文書をチェックイン・チェックアウトしたり、履歴を見たりといったことができるようになります。
20513 \end_layout
20514
20515 \begin_layout Subsubsection
20516 Windows下でSVNと共にSSHトンネルを使うには
20517 \end_layout
20518
20519 \begin_layout Standard
20520 Linuxに較べて、WindowsでSVNクライアントをSSH経由で通信するようにさせるのは、かなり厄介な仕事です。どのようにクライアント側を設定すればよいか、
20521 少なくとも幾分かのヒントをお示しするつもりですが、sshとWindowsコマンドラインの知識が前もって必要であり、それと共にかなりの量のフラストレーションが溜ま
20522 ることを覚悟しておいてください。
20523 \end_layout
20524
20525 \begin_layout Enumerate
20526 前節で述べたように、Windows用のSVNクライアントを入手してください。これが新規の導入である場合には、何らかのSVNコマンド(たとえば
20527 \begin_inset Flex Code
20528 status collapsed
20529
20530 \begin_layout Plain Layout
20531 svn –version
20532 \end_layout
20533
20534 \end_inset
20535
20536 )を実行して、configファイル群を生成させてください。これらは後で変更を加える必要があります。
20537 \end_layout
20538
20539 \begin_layout Enumerate
20540 Windows用のsshクライアントを選んでください。選択肢はたくさんありますが、ここではPutty tools
20541 \begin_inset Foot
20542 status open
20543
20544 \begin_layout Plain Layout
20545 \begin_inset Flex URL
20546 status collapsed
20547
20548 \begin_layout Plain Layout
20549
20550 http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html
20551 \end_layout
20552
20553 \end_inset
20554
20555
20556 \end_layout
20557
20558 \end_inset
20559
20560 のものを使用することとしましょう。クライアントが接続の度にパスワードを訊いてこないように、接続を自動化する必要があります。簡単にするために、追加的なパスワード保
20561 護などを加えない
20562 \begin_inset Flex Ruby
20563 status collapsed
20564
20565 \begin_layout Plain Layout
20566
20567 \begin_inset Argument post:1
20568 status collapsed
20569
20570 \begin_layout Plain Layout
20571 キー
20572 \end_layout
20573
20574 \end_inset
20575
20576
20577 \end_layout
20578
20579 \end_inset
20580
20581 のみを使用することとします。
20582 \begin_inset Separator parbreak
20583 \end_inset
20584
20585
20586 \end_layout
20587
20588 \begin_deeper
20589 \begin_layout Enumerate
20590 \begin_inset Flex Code
20591 status collapsed
20592
20593 \begin_layout Plain Layout
20594 puttygen
20595 \end_layout
20596
20597 \end_inset
20598
20599 を使って鍵を生成します。.ppkプライベート鍵ファイルを保存し、パブリック鍵ファイルはサーバ側に置きます。SVNサーバがLinuxで走っている場合、このパブリック
20600 鍵の書式はLinuxのopensshと互換性がないために、「Public key for pasting into OpenSSH authorized_key
20601 s file:」編集フィールドから、直接サーバの
20602 \begin_inset Flex Code
20603 status collapsed
20604
20605 \begin_layout Plain Layout
20606 ~/.ssh/authorized_keys
20607 \end_layout
20608
20609 \end_inset
20610
20611 または
20612 \begin_inset Flex Code
20613 status collapsed
20614
20615 \begin_layout Plain Layout
20616 authorized_keys2
20617 \end_layout
20618
20619 \end_inset
20620
20621 ファイルにコピー&ペーストを行わなくてはならないことに注意してください。
20622 \end_layout
20623
20624 \begin_layout Enumerate
20625 Puttyのplinkを入手してください。SVNのconfigファイル
20626 \begin_inset Foot
20627 status collapsed
20628
20629 \begin_layout Plain Layout
20630 正確なパスはWindowsのバージョンに依りますが、通常は
20631 \begin_inset Flex Code
20632 status collapsed
20633
20634 \begin_layout Plain Layout
20635 c:
20636 \backslash
20637 Documents and Settings
20638 \backslash
20639 user
20640 \backslash
20641 Application Data
20642 \backslash
20643 Subversion
20644 \backslash
20645 config
20646 \end_layout
20647
20648 \end_inset
20649
20650
20651 \begin_inset Flex Code
20652 status collapsed
20653
20654 \begin_layout Plain Layout
20655 AppData
20656 \backslash
20657 Roaming
20658 \backslash
20659 Subversion
20660 \end_layout
20661
20662 \end_inset
20663
20664 辺りにあります。
20665 \end_layout
20666
20667 \end_inset
20668
20669 中の
20670 \begin_inset Flex Code
20671 status collapsed
20672
20673 \begin_layout Plain Layout
20674 [tunnels]
20675 \end_layout
20676
20677 \end_inset
20678
20679 セクションにsshコマンドを設定してください。例:
20680 \begin_inset Flex Code
20681 status collapsed
20682
20683 \begin_layout Plain Layout
20684 ssh=c:/path/plink.exe -i c:/path/private_key.ppk
20685 \end_layout
20686
20687 \end_inset
20688
20689
20690 \begin_inset Foot
20691 status collapsed
20692
20693 \begin_layout Plain Layout
20694 通常、正確なコマンドを機能させるには長い時間がかかり、それは多くの物事に依存します。たとえば、リモートサーバがPuttyなどの既定セッションとして保存されないよ
20695 うにしてください。うまく行かない場合には、まずSVNなしでplink経由の接続を試してください。
20696 \end_layout
20697
20698 \end_inset
20699
20700
20701 \end_layout
20702
20703 \end_deeper
20704 \begin_layout Enumerate
20705 SVNアーカイブをチェックアウトしてください。例:
20706 \begin_inset Newline newline
20707 \end_inset
20708
20709
20710 \begin_inset Flex Code
20711 status collapsed
20712
20713 \begin_layout Plain Layout
20714 svn co svn+ssh://user@server/repository_path
20715 \end_layout
20716
20717 \end_inset
20718
20719
20720 \end_layout
20721
20722 \begin_layout Subsubsection
20723 行末変換
20724 \end_layout
20725
20726 \begin_layout Standard
20727 共著者同士がLinuxとWindowsを混在させているとき、\SpecialChar LyX
20728 は.lyxファイル中で異なった行末記号を使用することになります。これは、\SpecialChar LyX
20729 の機能に関する限り問題になりま
20730 せんが、コミット差分は巨大になり、マージではコンフリクトを引き起こしがちです。幸いにして、SVNは、.lyxファイルを
20731 \begin_inset Flex Code
20732 status collapsed
20733
20734 \begin_layout Plain Layout
20735 native
20736 \end_layout
20737
20738 \end_inset
20739
20740 モードに切り替える際
20741 \begin_inset Foot
20742 status collapsed
20743
20744 \begin_layout Plain Layout
20745 手短には
20746 \begin_inset Flex Code
20747 status collapsed
20748
20749 \begin_layout Plain Layout
20750 svn propset svn:eol-style native FILE_NAME
20751 \end_layout
20752
20753 \end_inset
20754
20755
20756 \end_layout
20757
20758 \end_inset
20759
20760 、CR/LF問題をどのように取り扱えばいいかを知っているので大丈夫です
20761 \begin_inset Foot
20762 status collapsed
20763
20764 \begin_layout Plain Layout
20765 \begin_inset Flex URL
20766 status collapsed
20767
20768 \begin_layout Plain Layout
20769
20770 http://svnbook.red-bean.com/en/1.4/svn.advanced.props.file-portability.html
20771 \end_layout
20772
20773 \end_inset
20774
20775
20776 \end_layout
20777
20778 \end_inset
20779
20780
20781 \end_layout
20782
20783 \begin_layout Subsection
20784 \SpecialChar LyX
20785 におけるGITコマンド
20786 \end_layout
20787
20788 \begin_layout Standard
20789 \SpecialChar LyX
20790 で、最小限のGITコマンドがサポートされるようになりました。これらのコマンドは、
20791 \family sans
20792 ファイル\SpecialChar menuseparator
20793 バージョン管理
20794 \family default
20795 にあります。リポジトリのアクセスに、パスワード保護されたsshを使用している場合には、ターミナルウィンドウでの操作をするように促されます。\SpecialChar LyX
20796 は、GIT
20797  1.7に対して試験を行っています。
20798 \end_layout
20799
20800 \begin_layout Standard
20801 GITと他のバージョン管理システムとの大きな相違点は、GITの配布形態にあります。伝統的なバージョン管理システムでは、リポジトリをホストする、中心となるサーバー
20802 があります。ユーザーは変更点をサーバーにコミットし、他のユーザーが行った更新分をサーバーから受け取ります。一方、GITでは、ユーザーは、ローカルのリポジトリにコ
20803 ミットを行います。ローカルリポジトリは、GITコマンドの
20804 \begin_inset Flex Code
20805 status open
20806
20807 \begin_layout Plain Layout
20808 pull
20809 \end_layout
20810
20811 \end_inset
20812
20813 または
20814 \begin_inset Flex Code
20815 status open
20816
20817 \begin_layout Plain Layout
20818 push
20819 \end_layout
20820
20821 \end_inset
20822
20823 を使って、1つ以上のリモートリポジトリと同期されます。\SpecialChar LyX
20824 は、リモートのGITリポジトリとは、一切関わりません。CVSやSVNの集権的リポジトリに対して行うのと同じ
20825 ことを、ローカルのリポジトリに対してのみ行います。リモートのGITリポジトリを使用している場合には、お好みのGITクライアントを使用して、
20826 \begin_inset Flex Code
20827 status open
20828
20829 \begin_layout Plain Layout
20830 pull
20831 \end_layout
20832
20833 \end_inset
20834
20835 または
20836 \begin_inset Flex Code
20837 status open
20838
20839 \begin_layout Plain Layout
20840 push
20841 \end_layout
20842
20843 \end_inset
20844
20845 の操作を行う必要があります。
20846 \end_layout
20847
20848 \begin_layout Subsubsection
20849 登録
20850 \end_layout
20851
20852 \begin_layout Standard
20853 お使いの文書が改訂管理下に置かれていなければ、メニューにはこの項目だけが表示されます。もし改訂管理が有効ならば、
20854 \family sans
20855 登録
20856 \family default
20857 項目は表示されません。
20858 \end_layout
20859
20860 \begin_layout Standard
20861 本コマンドは、既に文書のあるディレクトリをGIT管理下に置いている場合に
20862 \emph on
20863 のみ
20864 \emph default
20865 (すなわち
20866 \begin_inset Flex Code
20867 status collapsed
20868
20869 \begin_layout Plain Layout
20870 .git/index
20871 \end_layout
20872
20873 \end_inset
20874
20875 ファイルが存在する場合にのみ)、お使いの文書をGITに登録します。つまり、アーカイブはご自分でチェックアウトしなくてはなりません。
20876 \end_layout
20877
20878 \begin_layout Standard
20879 すると、文書の最初の説明文を入力するように促されます。登録したファイルは、まだコミットされたわけではないことに注意してください。
20880 \end_layout
20881
20882 \begin_layout Standard
20883 実行されるGITコマンドは、
20884 \begin_inset Flex Code
20885 status collapsed
20886
20887 \begin_layout Plain Layout
20888 git add "<ファイル名>"
20889 \end_layout
20890
20891 \end_inset
20892
20893 です。
20894 \end_layout
20895
20896 \begin_layout Standard
20897 スイッチの説明は
20898 \begin_inset Flex Code
20899 status collapsed
20900
20901 \begin_layout Plain Layout
20902 man git
20903 \end_layout
20904
20905 \end_inset
20906
20907 をお読みください。
20908 \end_layout
20909
20910 \begin_layout Subsubsection
20911 変更をチェックイン
20912 \end_layout
20913
20914 \begin_layout Standard
20915 ファイルの編集を終えたら、変更をコミットします。このとき、変更の説明文を入れるよう促されます。その後、変更がコミットされます。
20916 \end_layout
20917
20918 \begin_layout Standard
20919 GITコマンド:
20920 \begin_inset Flex Code
20921 status collapsed
20922
20923 \begin_layout Plain Layout
20924 git commit -q -m
20925 \begin_inset Quotes erd
20926 \end_inset
20927
20928 <入力した説明文>
20929 \begin_inset Quotes erd
20930 \end_inset
20931
20932  "<ファイル名>"
20933 \end_layout
20934
20935 \end_inset
20936
20937
20938 \end_layout
20939
20940 \begin_layout Subsubsection
20941 リポジトリ版に戻す
20942 \end_layout
20943
20944 \begin_layout Standard
20945 これは、最後のチェックイン以降、文書に加えられた変更をすべて廃棄します。変更が廃棄される前に警告が表示されます。
20946 \end_layout
20947
20948 \begin_layout Standard
20949 GITコマンド:
20950 \begin_inset Flex Code
20951 status collapsed
20952
20953 \begin_layout Plain Layout
20954 git checkout -q 
20955 \begin_inset Quotes eld
20956 \end_inset
20957
20958 <ファイル名>
20959 \begin_inset Quotes erd
20960 \end_inset
20961
20962
20963 \end_layout
20964
20965 \end_inset
20966
20967
20968 \end_layout
20969
20970 \begin_layout Subsubsection
20971 ファイル名変更
20972 \end_layout
20973
20974 \begin_layout Standard
20975 これは、現行文書のファイル名を変更します。最後のチェックイン以降、変更が加えられていないサラの文書であることが要求されます。ファイル名とコピー操作の説明を入力す
20976 るように促され、その後、ローカルとリポジトリの両方でファイル名が変更されます。新旧ファイル名の文書の親ディレクトリが異なる場合には、コピーにインクルードされたフ
20977 ァイルの相対パスは、(
20978 \family sans
20979 ファイル\SpecialChar menuseparator
20980 名前をつけて保存\SpecialChar ldots
20981
20982 \family default
20983 と同様に)全て調整されます。最後に、新ファイル名を使ってファイルが再度読み込まれます。
20984 \end_layout
20985
20986 \begin_layout Labeling
20987 \labelwidthstring 00.00.0000
20988 GITコマンド:
20989 \end_layout
20990
20991 \begin_layout Labeling
20992 \labelwidthstring 00.00.0000
20993 \begin_inset Flex Code
20994 status collapsed
20995
20996 \begin_layout Plain Layout
20997 git mv "<ファイル名>" "<新ファイル名>"
20998 \end_layout
20999
21000 \end_inset
21001
21002
21003 \end_layout
21004
21005 \begin_layout Labeling
21006 \labelwidthstring 00.00.0000
21007 \begin_inset Flex Code
21008 status collapsed
21009
21010 \begin_layout Plain Layout
21011 git commit
21012 \end_layout
21013
21014 \end_inset
21015
21016
21017 \end_layout
21018
21019 \begin_layout Subsubsection
21020 履歴を表示
21021 \end_layout
21022
21023 \begin_layout Standard
21024 これは、GIT文書の全履歴を表示します。
21025 \begin_inset Flex Code
21026 status collapsed
21027
21028 \begin_layout Plain Layout
21029 git log 
21030 \begin_inset Quotes eld
21031 \end_inset
21032
21033 <ファイル名>
21034 \begin_inset Quotes erd
21035 \end_inset
21036
21037
21038 \end_layout
21039
21040 \end_inset
21041
21042 の出力がブラウザに表示されます。
21043 \end_layout
21044
21045 \begin_layout Subsubsection
21046 改訂情報
21047 \end_layout
21048
21049 \begin_layout Standard
21050 \SpecialChar LyX
21051 は、ファイルの最終コミットのGITハッシュ番号・著者名・最終コミットの日時をサポートします。これらの情報は、すべて
21052 \family typewriter
21053 git log -n 1 --pretty=format:%H%n%an%n%ai
21054 \family default
21055 によって抽出されます。ツリーバージョン情報は、
21056 \family typewriter
21057 git describe --abbrev --dirty --long
21058 \family default
21059 で取得されます。詳細については、第
21060 \begin_inset CommandInset ref
21061 LatexCommand ref
21062 reference "subsec:VCS改訂情報"
21063
21064 \end_inset
21065
21066 節を参照してください。
21067 \end_layout
21068
21069 \begin_layout Subsection
21070 さらなる調整
21071 \end_layout
21072
21073 \begin_layout Standard
21074 vcコマンド機構が最近になって付け加えられたおかげで、\SpecialChar LyX
21075 のパワーユーザは、改訂管理のための自製コマンドを作ることができるようになりました。
21076 \end_layout
21077
21078 \begin_layout Standard
21079 たとえば、以下のようにして、二つのTortoiseSVNコマンドを直接統合することができます。
21080 \end_layout
21081
21082 \begin_layout Description
21083 コミット: 
21084 \begin_inset Flex Code
21085 status collapsed
21086
21087 \begin_layout Plain Layout
21088 vc-command DR "." "TortoiseProc /command:commit /path:$$p"
21089 \end_layout
21090
21091 \end_inset
21092
21093
21094 \end_layout
21095
21096 \begin_layout Description
21097 元に戻す: 
21098 \begin_inset Flex Code
21099 status collapsed
21100
21101 \begin_layout Plain Layout
21102 vc-command DR "." "TortoiseProc /command:revert /path:$$p"
21103 \end_layout
21104
21105 \end_inset
21106
21107
21108 \end_layout
21109
21110 \begin_layout Subsection
21111 バージョン管理と文書比較
21112 \end_layout
21113
21114 \begin_layout Standard
21115 バージョン管理は、通常
21116 \begin_inset Flex Code
21117 status collapsed
21118
21119 \begin_layout Plain Layout
21120 diff
21121 \end_layout
21122
21123 \end_inset
21124
21125 ダンプを生成することによって、改訂版の間の変更点を検査するのが、典型的な使用法です。これは平文ファイルには有効なのですが、複雑な構造を持つ\SpecialChar LyX
21126 ファイルの場合には、あ
21127 まり便利ではありません。そこで、\SpecialChar LyX
21128 は独自の文書比較機能を提供しています。この機能を呼び出すには2つの方法があります。1つは、\SpecialChar LyX
21129
21130 \begin_inset Flex Code
21131 status collapsed
21132
21133 \begin_layout Plain Layout
21134 VC_COMPARE
21135 \end_layout
21136
21137 \end_inset
21138
21139 関数を直接呼び出す方法であり(詳細は\SpecialChar LyX
21140 関数説明書を参照)、もう1つは
21141 \begin_inset Flex MenuItem
21142 status collapsed
21143
21144 \begin_layout Plain Layout
21145 旧改訂と比較\SpecialChar ldots
21146
21147 \end_layout
21148
21149 \end_inset
21150
21151 メニューないしアイコンを使用する方法です。当該文書のうち、任意の2つの改訂版を比較することもできますし、編集中の現行版を古い改訂版と比較することもできます(この
21152 とき改訂版遡及数「
21153 \begin_inset Flex MenuItem
21154 status collapsed
21155
21156 \begin_layout Plain Layout
21157 0
21158 \end_layout
21159
21160 \end_inset
21161
21162 」は、編集中のファイルと最後にコミットした改訂版との比較を意味します)。
21163 \end_layout
21164
21165 \begin_layout Standard
21166 この機能は、SVNとRCSでサポートされていますが、RCSは、より複雑なバージョン付けスキームを持っているため、制約があります。ダイアログ中で改訂版を指定する際
21167 の数字は、つねにRCS改訂番号の最後の数を指し示します(例:「1.2.35」版のときには「35」)。現在のところ、改訂のGIT表記はサポートされておらず、HEAD~
21168 Xの形で表記されるXステップ前の改訂版を、編集中文書と比較することのみが可能です。
21169 \end_layout
21170
21171 \begin_layout Section
21172 文芸プログラミング
21173 \end_layout
21174
21175 \begin_layout Standard
21176
21177 \noun on
21178 Kayvan Sylvan
21179 \noun default
21180 (kayvan@sylvan.com)改訂 
21181 \noun on
21182 Edmar Wienskoski Jr.
21183 \noun default
21184 (edmar-w-jr@technologist.com)原文
21185 \end_layout
21186
21187 \begin_layout Subsection
21188 はじめに
21189 \end_layout
21190
21191 \begin_layout Standard
21192 この節の主な目的は、文芸的プログラミング(literate programming)のために、\SpecialChar LyX
21193 をどう使えばよいかをお見せすることです。ここでは、あなたがこのプロ
21194 グラミング技術をよくご存じで、「tangling」や「weaving」の意味するところを知っているものとして説明します。そうでない場合には、以下の各節にあるウェ
21195 ブリンクをたどってください。そこには、かつての開発の歴史から最新のツールチップまで、たくさんの良質なドキュメンテーションがあります。
21196 \end_layout
21197
21198 \begin_layout Standard
21199 また、あなたが、\SpecialChar LyX
21200 の設定を変更することを厭わない程度まで\SpecialChar LyX
21201 に習熟しており、Xリソースファイルにも親しんでいることを前提にしています。そうでない場合は、あなたの必要と
21202 するトピックを扱っている、\SpecialChar LyX
21203 の他の説明書で調べてください。
21204 \end_layout
21205
21206 \begin_layout Subsection
21207 文芸プログラミング
21208 \end_layout
21209
21210 \begin_layout Standard
21211 以下は、文芸プログラミング FAQからの抜粋です。
21212 \end_layout
21213
21214 \begin_layout Quotation
21215 文芸プログラミングは、人間が読むのに適した形でのドキュメンテーションとソースの組合わせです。実際、文芸的プログラムは楽しい読み物であるべきであり、さらには参加し
21216 たいとさえ思わせるべきなのです!(ボブ、ごめん。言わずにはいれなかった。)一般的に、文芸プログラムは、ソースとドキュメンテーションを同一ファイル上に結合したもの
21217 です。そして、文芸プログラミングツールは、ファイルを解析して、読むことのできるドキュメンテーションか、あるいはコンパイル可能なソースを生成します。文芸プログラミ
21218 ングのWEBスタイルは、D.
21219 \begin_inset space \thinspace{}
21220 \end_inset
21221
21222 E.
21223  Knuthが、\SpecialChar TeX
21224 組版ソフトウエアを開発中に作り出したものです。
21225 \end_layout
21226
21227 \begin_layout Standard
21228 他のエキスパートの発言です。
21229 \end_layout
21230
21231 \begin_layout Quotation
21232
21233 \emph on
21234 文芸プログラミングは、冗長なコメント付けと何が違いますか?
21235 \end_layout
21236
21237 \begin_layout Quotation
21238 3つの際立った特徴があります。重要な順に列挙すれば、
21239 \begin_inset Separator parbreak
21240 \end_inset
21241
21242
21243 \end_layout
21244
21245 \begin_deeper
21246 \begin_layout Itemize
21247 推敲の順序が柔軟
21248 \end_layout
21249
21250 \begin_layout Itemize
21251 ブラウジングの自動サポート
21252 \end_layout
21253
21254 \begin_layout Itemize
21255 特に図式と数式を含んだドキュメンテーションの組版
21256 \end_layout
21257
21258 \end_deeper
21259 \begin_layout Quotation
21260 などがあります。
21261 \end_layout
21262
21263 \begin_layout Standard
21264 あなたの興味に火を付けたところで書誌情報を見てみましょう。
21265 \end_layout
21266
21267 \begin_layout Subsubsection
21268 書誌情報
21269 \end_layout
21270
21271 \begin_layout Standard
21272 完全な文芸プログラミング FAQは
21273 \end_layout
21274
21275 \begin_layout Quote
21276 Literate Programming FAQ 
21277 \begin_inset Flex URL
21278 status collapsed
21279
21280 \begin_layout Plain Layout
21281
21282 http://www.xmarks.com/site/shelob.ce.ttu.edu/daves/lpfaq/faq.html
21283 \end_layout
21284
21285 \end_inset
21286
21287
21288 \end_layout
21289
21290 \begin_layout Standard
21291 にあります。
21292 \end_layout
21293
21294 \begin_layout Standard
21295 このFAQには、23(二十三です!)の文芸プログラミング用ツールが列挙されています。一部のツールは、特定のプログラミング言語用に特化したものですが、一般的な対象
21296 を持つものもあります。私は自分で使うのに、いくつかの理由から
21297 \noun on
21298 Noweb
21299 \noun default
21300 を選びました。
21301 \end_layout
21302
21303 \begin_layout Itemize
21304 説明文書を\SpecialChar LaTeX
21305 でもHTMLでも出力できる。
21306 \end_layout
21307
21308 \begin_layout Itemize
21309 開放的なアーキテクチャに持っているので、新しいフィルタをプラグインとして加えたり、自分が必要な特別な処理を実行することが容易である。
21310 \end_layout
21311
21312 \begin_layout Itemize
21313 すでに利用可能となっているフィルタの良質なコレクションがある(HTMLはその一つです)。
21314 \end_layout
21315
21316 \begin_layout Itemize
21317 無料である。
21318 \end_layout
21319
21320 \begin_layout Standard
21321 Nowebのウェブページは
21322 \end_layout
21323
21324 \begin_layout Quote
21325 Nowebホームページ 
21326 \begin_inset Flex URL
21327 status collapsed
21328
21329 \begin_layout Plain Layout
21330
21331 http://www.cs.virginia.edu/~nr/noweb/
21332 \end_layout
21333
21334 \end_inset
21335
21336
21337 \end_layout
21338
21339 \begin_layout Standard
21340 にあります。ここから始めれば、たくさんの興味深いリンクや、文芸プログラミングの用例にたどり着くことができます。
21341 \end_layout
21342
21343 \begin_layout Subsection
21344 \SpecialChar LyX
21345 とNowebを使った文芸プログラミング
21346 \end_layout
21347
21348 \begin_layout Standard
21349 \SpecialChar LyX
21350 における文芸プログラミングのサポートは、\SpecialChar LyX
21351 の汎用変換機構を使用して実現しています。このサポートは「Noweb非依存」的な方法で提供されているので、LyXの設定を変
21352 更するだけで、自分の好きな他の文芸プログラミングツールを使って、この新しい\SpecialChar LyX
21353 の機能を利用することができます。
21354 \end_layout
21355
21356 \begin_layout Subsubsection
21357 ドキュメントとコードの生成(weavingおよびtangling)
21358 \end_layout
21359
21360 \begin_layout Paragraph
21361 nowebモジュールの使用
21362 \end_layout
21363
21364 \begin_layout Standard
21365 Nowebと\SpecialChar LyX
21366 の導入に成功したならば、新規文書を開いたときにはいつも、文書クラスを選択した後、
21367 \family sans
21368 文書\SpecialChar menuseparator
21369 設定
21370 \family default
21371 メニューで「noweb」モジュールを追加するようにしてください。Nowebが正しく導入されていれば、「モジュール」リンクをクリックした際、利用可能リストに「no
21372 web」モジュールが表示され、文書に追加できるようになっています。
21373 \end_layout
21374
21375 \begin_layout Paragraph
21376 コードの入力
21377 \end_layout
21378
21379 \begin_layout Standard
21380 \SpecialChar LyX
21381 では、
21382 \begin_inset Flex Noun
21383 status collapsed
21384
21385 \begin_layout Plain Layout
21386 Chunk
21387 \end_layout
21388
21389 \end_inset
21390
21391 という名前のレイアウトを使えば、コードを入力することができます。Nowebは次のようにchunks を区切ります。
21392 \end_layout
21393
21394 \begin_layout LyX-Code
21395 <<My code>>=
21396 \end_layout
21397
21398 \begin_layout LyX-Code
21399   code
21400 \end_layout
21401
21402 \begin_layout LyX-Code
21403   more code
21404 \end_layout
21405
21406 \begin_layout LyX-Code
21407   even more code
21408 \end_layout
21409
21410 \begin_layout LyX-Code
21411   @
21412 \end_layout
21413
21414 \begin_layout Standard
21415 問題は<<と@の間にあるものを完全にそのままの形で扱わなければならないことです。つまり、\SpecialChar LyX
21416 は、この間に書かれたものを特別に解釈することは決してあってはなりません。
21417 これも
21418 \begin_inset Flex Noun
21419 status collapsed
21420
21421 \begin_layout Plain Layout
21422 Chunk
21423 \end_layout
21424
21425 \end_inset
21426
21427 によって取り扱われ、通常の段落のように見えますが、自由に空白を入れることができます。
21428 \end_layout
21429
21430 \begin_layout Standard
21431 特殊な注釈として、chunk内でNowebの「%def」を使えば、Nowebのidentifierの相互参照に項目を加えることができます。次の例を見てください。
21432 \end_layout
21433
21434 \begin_layout LyX-Code
21435 <<My chunk>>=
21436 \end_layout
21437
21438 \begin_layout LyX-Code
21439 def some_function(args):
21440 \end_layout
21441
21442 \begin_layout LyX-Code
21443    "This is the doc string for this function."
21444 \end_layout
21445
21446 \begin_layout LyX-Code
21447    print "My args: ", args
21448 \end_layout
21449
21450 \begin_layout LyX-Code
21451 @ %def some_function
21452 \end_layout
21453
21454 \begin_layout Standard
21455 これをどのように使って、その結果相互参照がどうなるかは
21456 \emph on
21457 LIBDIR/examples/listerrors.lyx
21458 \emph default
21459 の中の文芸pythonプログラムを見るとよくわかります。
21460 \end_layout
21461
21462 \begin_layout Paragraph
21463 説明文書の生成
21464 \end_layout
21465
21466 \begin_layout Standard
21467 この時点で、適切な文書クラスを持ち、いくつかのコードとテキストが入った新規文書ファイルが作成されているはずです。これをどうやって印刷したらいいのでしょう。答えは
21468 簡単で、通常の文書で行うように
21469 \family sans
21470 文書\SpecialChar menuseparator
21471 表示
21472 \family default
21473 等を選ぶだけです。特別な手続きは必要ありません。
21474 \end_layout
21475
21476 \begin_layout Standard
21477 理解を助けるために、\SpecialChar LyX
21478 の内部で何が起っているかを説明しておきましょう。
21479 \end_layout
21480
21481 \begin_layout Enumerate
21482
21483 \family sans
21484 文書\SpecialChar menuseparator
21485 更新
21486 \family default
21487 が選択されると、\SpecialChar LaTeX
21488 ファイルがつくられます。
21489 \begin_inset Separator parbreak
21490 \end_inset
21491
21492
21493 \end_layout
21494
21495 \begin_deeper
21496 \begin_layout Standard
21497 文書が文芸プログラミング用のクラスであった場合には、拡張子に(
21498 \begin_inset Flex MenuItem
21499 status collapsed
21500
21501 \begin_layout Plain Layout
21502 設定
21503 \end_layout
21504
21505 \end_inset
21506
21507 パネルで設定した)文芸プログラム用のものがつけられます。それ以外は .texが拡張子に使われます。
21508 \end_layout
21509
21510 \end_deeper
21511 \begin_layout Enumerate
21512 違いがファイル名だけなのに注意してください。\SpecialChar LyX
21513 による特別な処理は必要ありません。
21514 \begin_inset Flex Noun
21515 status collapsed
21516
21517 \begin_layout Plain Layout
21518 Chunk
21519 \end_layout
21520
21521 \end_inset
21522
21523 環境でコードを入力するのだけがポイントです。
21524 \end_layout
21525
21526 \begin_layout Enumerate
21527 文書が何らかの文芸プログラムクラスなら、\SpecialChar LyX
21528 は、\SpecialChar LyX
21529 からNowebへの内部変換子を用い、それからNowebから\SpecialChar LaTeX
21530 への変換子
21531 \begin_inset Foot
21532 status collapsed
21533
21534 \begin_layout Plain Layout
21535 これらの変換子は、
21536 \family sans
21537 ツール\SpecialChar menuseparator
21538 設定
21539 \family default
21540 パネルの変換子タブに定義されています。変換子の一般的な情報については、取扱説明書『
21541 \emph on
21542 カスタマイズ篇
21543 \emph default
21544 』の「
21545 \emph on
21546 変換子
21547 \emph default
21548 」の節をご覧ください。
21549 \end_layout
21550
21551 \end_inset
21552
21553 を使って\SpecialChar LaTeX
21554 ファイルを生成します。
21555 \begin_inset Separator parbreak
21556 \end_inset
21557
21558
21559 \end_layout
21560
21561 \begin_deeper
21562 \begin_layout Standard
21563 それ以外の場合はこのステップを飛ばします。
21564 \end_layout
21565
21566 \end_deeper
21567 \begin_layout Enumerate
21568 最後に\SpecialChar LaTeX
21569 が実行され、通常の文書と同じ後処理が行われます。
21570 \end_layout
21571
21572 \begin_layout Standard
21573 様々な変換子が実行するコマンドを変更すれば、簡単に、特定の「文芸プログラムツール」から変更することができます。
21574 \end_layout
21575
21576 \begin_layout Paragraph
21577 コードの生成
21578 \end_layout
21579
21580 \begin_layout Standard
21581 ビルドメニューが選ばれた場合や、それに対応するツールバーのボタンが押された場合、上のステップ1と同様に\SpecialChar LaTeX
21582 ファイルが生成されます。それから\SpecialChar LyX
21583
21584 \family typewriter
21585 Noweb->Program
21586 \family default
21587 のコンバータを起動します。通常は、このコンバータは(他のコンバータと同じように)2つの部分からできています。
21588 \end_layout
21589
21590 \begin_layout Enumerate
21591 変換プログラム。このプログラムは、一つのフォーマットから他のフォーマットへの変換を行います(この場合は、Nowebフォーマットからプログラムの疑似フォーマットへ
21592 変換します)。
21593 \end_layout
21594
21595 \begin_layout Enumerate
21596 エラーログ解析子。これはエラーメッセージを\SpecialChar LyX
21597 が理解できる形へ書き直します。これによって、\SpecialChar LyX
21598 はファイルバッファの正しい位置へエラーボックスを配置することができます。
21599 \end_layout
21600
21601 \begin_layout Standard
21602 冒頭部、「変換子」設定は
21603 \begin_inset Newline newline
21604 \end_inset
21605
21606
21607 \begin_inset Quotes eld
21608 \end_inset
21609
21610
21611 \family typewriter
21612 build-script $$i $$r
21613 \family default
21614
21615 \begin_inset Quotes erd
21616 \end_inset
21617
21618
21619 \begin_inset Newline newline
21620 \end_inset
21621
21622 と指定します。これは基本的に、\SpecialChar LyX
21623
21624 \begin_inset Quotes erd
21625 \end_inset
21626
21627
21628 \family typewriter
21629 build-script
21630 \family default
21631
21632 \begin_inset Quotes erd
21633 \end_inset
21634
21635 (プログラムかスクリプト名)を(一般には\SpecialChar LyX
21636 の一時ファイル用のディレクトリにつくられる)、Nowebファイルの名前と元の\SpecialChar LyX
21637 ファイルのディレクトリパスを使って呼び出すこ
21638 とを意味しています。
21639 \end_layout
21640
21641 \begin_layout Standard
21642 以下に「build-script」の一例を書いておきます。パスが通っているディレクトリに置いて使います。
21643 \end_layout
21644
21645 \begin_layout Standard
21646 \begin_inset VSpace defskip
21647 \end_inset
21648
21649
21650 \begin_inset Newpage pagebreak
21651 \end_inset
21652
21653
21654 \end_layout
21655
21656 \begin_layout Standard
21657
21658 \family sans
21659 #!/bin/sh
21660 \end_layout
21661
21662 \begin_layout Standard
21663
21664 \family sans
21665 #
21666 \end_layout
21667
21668 \begin_layout Standard
21669
21670 \family sans
21671 notangle -Rbuild-script $1 | env NOWEB_SOURCE=$1 NOWEB_OUTPUT_DIR=$2 sh
21672 \end_layout
21673
21674 \begin_layout Standard
21675 \begin_inset VSpace defskip
21676 \end_inset
21677
21678
21679 \end_layout
21680
21681 \begin_layout Standard
21682 変換子設定の次の部分は「フラグ」で、これは
21683 \begin_inset Quotes erd
21684 \end_inset
21685
21686
21687 \family typewriter
21688 parselog=$$s/scripts/listerrors
21689 \family default
21690
21691 \begin_inset Quotes erd
21692 \end_inset
21693
21694 に設定されます。
21695 \begin_inset Newline newline
21696 \end_inset
21697
21698 これは、
21699 \begin_inset Quotes erd
21700 \end_inset
21701
21702 build-script
21703 \begin_inset Quotes erd
21704 \end_inset
21705
21706 プロセスが生成したエラーを
21707 \begin_inset Quotes erd
21708 \end_inset
21709
21710 listerrors
21711 \begin_inset Quotes erd
21712 \end_inset
21713
21714 プログラムを介して処理するものです。
21715 \end_layout
21716
21717 \begin_layout Standard
21718 ビルドは、通常\SpecialChar LyX
21719 の一時ディレクトリで行われるので、変換によって生成されたファイルはそのディレクトリに置かれます。\SpecialChar LyX
21720 は、主要ファイルとみなされるものをコピーして取り出
21721 しますが、
21722 \family typewriter
21723 Noweb→プログラム
21724 \family default
21725 変換は複数のファイルを生成することがあるので、\SpecialChar LyX
21726 を閉じる際に大半が削除される可能性があります。これが、NOWEB_OUTPUT_DIR環境変数を渡して、build
21727 -script chunkが生成したファイルをその場所に置かれるようにする理由です。
21728 \end_layout
21729
21730 \begin_layout Paragraph
21731 文章中でのプログラムの構築操作の説明
21732 \end_layout
21733
21734 \begin_layout Standard
21735 \SpecialChar LyX
21736 とNowebの統合の最後の部分は、
21737 \begin_inset Quotes eld
21738 \end_inset
21739
21740 build-script
21741 \begin_inset Quotes erd
21742 \end_inset
21743
21744  chunkです。一般に、あなたのプログラムの構築操作の説明それ自身をchunkに入れて文章中に含めなければなりません。上の例のnoweb用のbuild-scr
21745 iptでは、chunkを見つけるのにnotangleコマンドを使い、shを使って起動します。
21746 \end_layout
21747
21748 \begin_layout Standard
21749 以下に典型的なchunkがどのようなものかを書いておきます。
21750 \end_layout
21751
21752 \begin_layout LyX-Code
21753 <<build-script>>=
21754 \begin_inset Newline newline
21755 \end_inset
21756
21757
21758 \end_layout
21759
21760 \begin_layout LyX-Code
21761 #!/bin/sh
21762 \begin_inset Newline newline
21763 \end_inset
21764
21765
21766 \begin_inset Newline newline
21767 \end_inset
21768
21769 if [ -z "${NOWEB_SOURCE}" ]
21770 \begin_inset Newline newline
21771 \end_inset
21772
21773 then
21774 \end_layout
21775
21776 \begin_layout LyX-Code
21777 NOWEB_SOURCE=myfile.nw
21778 \begin_inset Newline newline
21779 \end_inset
21780
21781 fi
21782 \begin_inset Newline newline
21783 \end_inset
21784
21785 [...
21786  code to extract files ...
21787  use NOWEB_OUTPUT_DIR here ...]
21788 \begin_inset Newline newline
21789 \end_inset
21790
21791 [...
21792  code to compile files ...]
21793 \begin_inset Newline newline
21794 \end_inset
21795
21796 @
21797 \end_layout
21798
21799 \begin_layout Standard
21800
21801 \emph on
21802 LIBDIR/examples/listerrors.lyx
21803 \emph default
21804
21805 \emph on
21806 LIBDIR/examples/Literate.lyx
21807 \emph default
21808 を見てください。この2つのファイルには異なる実装のlisterrorsプログラムが含まれていて、これまで説明してきた各々の部分が全体としてどのようになるかをわか
21809 ってもらうための例です。また、
21810 \emph on
21811 LIBDIR/examples/noweb2lyx.lyx
21812 \emph default
21813 も見てください。面白いことに、これらの3つのファイルは、Python、C、Perlが各々使われていて、\SpecialChar LyX
21814 の文芸プログラミングのサポートがプログラム言語に依存しない
21815 ことを示しています。
21816 \end_layout
21817
21818 \begin_layout Subsubsection
21819 \SpecialChar LyX
21820 の設定
21821 \end_layout
21822
21823 \begin_layout Standard
21824 すべての文芸プログラムのための設定は、
21825 \family sans
21826 ツール\SpecialChar menuseparator
21827 設定
21828 \family default
21829 パネルの「ファイル処理」タブですることができます。重要な部分を見ておきましょう。
21830 \end_layout
21831
21832 \begin_layout Description
21833 「NoWeb」形式 ファイル形式タブで設定します。ここで、Noweb特有の設定を行います。
21834 \family sans
21835 GUI名
21836 \family default
21837
21838 \family typewriter
21839 NoWeb
21840 \family default
21841 に、拡張子を
21842 \family typewriter
21843 .nw
21844 \family default
21845 に設定してください。これによって、\SpecialChar LyX
21846 に変換プロセスの第一段階でつくられるファイルに
21847 \family typewriter
21848 .nw
21849 \family default
21850 という拡張子をつけることを指示します。
21851 \end_layout
21852
21853 \begin_layout Description
21854 プログラム形式 これは、変換の終着点を示すためだけの、空の形式です(これがあることで、変換子を作ることができます)。
21855 \end_layout
21856
21857 \begin_layout Description
21858
21859 \family sans
21860 NoWeb
21861 \family default
21862 ->
21863 \family sans
21864 \SpecialChar LaTeX
21865
21866 \family default
21867  この変換子は、文芸的文書の「weaving」を行います。Nowebの場合、「
21868 \family typewriter
21869 noweave -delay -index $$i > $$o
21870 \family default
21871 」に設定されます。
21872 \end_layout
21873
21874 \begin_layout Description
21875
21876 \family sans
21877 NoWeb
21878 \family default
21879 ->
21880 \family sans
21881 Program
21882 \family default
21883  これは「tangling」を行います。上述のように、変換子は「
21884 \family typewriter
21885 build-script $$i $$r
21886 \family default
21887 」、フラグは「
21888 \family typewriter
21889 parselog=$$s/scripts/listerrors
21890 \family default
21891 」となります。
21892 \end_layout
21893
21894 \begin_layout Subsubsection
21895 デバッグ機能拡張
21896 \end_layout
21897
21898 \begin_layout Standard
21899 ddd/gdbまたは他のデバッガで使える「server-goto-file-row」関数が新たに\SpecialChar LyX
21900 サーバに実装されました。
21901 \end_layout
21902
21903 \begin_layout Standard
21904 ddd/gdbでデバッグしているとき、一つの
21905 \begin_inset Flex Ruby
21906 status collapsed
21907
21908 \begin_layout Plain Layout
21909
21910 \begin_inset Argument post:1
21911 status collapsed
21912
21913 \begin_layout Plain Layout
21914 キー
21915 \end_layout
21916
21917 \end_inset
21918
21919
21920 \end_layout
21921
21922 \end_inset
21923
21924 ストロークで現在実行している位置でテキストエディタを起動できます。既定のdddの設定ではShift-Ctrl-Vになっています。この設定はdddで
21925 \begin_inset Flex MenuItem
21926 status collapsed
21927
21928 \begin_layout Plain Layout
21929 ツール\SpecialChar menuseparator
21930 設定\SpecialChar menuseparator
21931 ファイル書式
21932 \end_layout
21933
21934 \end_inset
21935
21936 ウインドウを表示して、
21937 \begin_inset Flex MenuItem
21938 status collapsed
21939
21940 \begin_layout Plain Layout
21941 編集プログラム
21942 \end_layout
21943
21944 \end_inset
21945
21946 エントリを変えると変えることができます。
21947 \end_layout
21948
21949 \begin_layout Standard
21950 新しい\SpecialChar LyX
21951 サーバの関数と、このdddの機能を使うために
21952 \begin_inset Flex MenuItem
21953 status collapsed
21954
21955 \begin_layout Plain Layout
21956 編集プログラム
21957 \end_layout
21958
21959 \end_inset
21960
21961 を次のように設定してください。
21962 \end_layout
21963
21964 \begin_layout Standard
21965 \begin_inset VSpace defskip
21966 \end_inset
21967
21968
21969 \end_layout
21970
21971 \begin_layout Standard
21972
21973 \family sans
21974 echo "LYXCMD:monitor:server-goto-file-row:@FILE@ @LINE@" >~/.lyxpipe.in
21975 \end_layout
21976
21977 \begin_layout Standard
21978 \begin_inset VSpace defskip
21979 \end_inset
21980
21981
21982 \end_layout
21983
21984 \begin_layout Standard
21985 こうしておくとdddを使っていてプログラムの編集したい場所があったとき、(dddのウインドウで)Shift-Ctrl-Vを押すだけでdddは\SpecialChar LyX
21986 サーバに情報を送り、\SpecialChar LyX
21987
21988 は同じファイルを表示し、カーソルはdddが示した場所へあらわれます。これでもうデバッグの最中に推測しながらスクロールして場所を探す必要がなくなります。
21989 \end_layout
21990
21991 \begin_layout Standard
21992 この機能が動くには\SpecialChar LyX
21993 サーバが利用可能でなければなりません(既定では\SpecialChar LyX
21994 サーバーは使えないようになっています)。\SpecialChar LyX
21995 サーバを使えるようにするには、
21996 \family sans
21997
21998 \begin_inset Flex MenuItem
21999 status collapsed
22000
22001 \begin_layout Plain Layout
22002
22003 \family sans
22004 設定
22005 \end_layout
22006
22007 \end_inset
22008
22009
22010 \family default
22011 (
22012 \family sans
22013
22014 \begin_inset Flex MenuItem
22015 status collapsed
22016
22017 \begin_layout Plain Layout
22018
22019 \family sans
22020 パス
22021 \end_layout
22022
22023 \end_inset
22024
22025
22026 \family default
22027 タブ)の
22028 \family sans
22029
22030 \begin_inset Flex MenuItem
22031 status collapsed
22032
22033 \begin_layout Plain Layout
22034
22035 \family sans
22036 \SpecialChar LyX
22037 サーバーパイプ
22038 \family default
22039
22040 \end_layout
22041
22042 \end_inset
22043
22044
22045 \family default
22046
22047 \begin_inset Quotes eld
22048 \end_inset
22049
22050
22051 \family typewriter
22052 /home/<your-home-directory>/.lyx/lyxpipe
22053 \family default
22054
22055 \begin_inset Quotes erd
22056 \end_inset
22057
22058  のようにパスを指定してください。
22059 \end_layout
22060
22061 \begin_layout Standard
22062 詳しくは第
22063 \begin_inset CommandInset ref
22064 LatexCommand ref
22065 reference "chap:LyXサーバー"
22066
22067 \end_inset
22068
22069 章を読んでください。
22070 \end_layout
22071
22072 \begin_layout Subsubsection
22073 ツールバー拡張
22074 \end_layout
22075
22076 \begin_layout Standard
22077 ツールバーに加えることのできる6つの新しいボタンがあります。そのうちの5つのボタンは段落環境へのショートカットです。
22078 \family sans
22079 標準
22080 \family default
22081 ・節・
22082 \family sans
22083 \SpecialChar LaTeX
22084
22085 \family default
22086
22087 \family sans
22088 \SpecialChar LyX
22089 コード
22090 \family default
22091
22092 \family sans
22093 Chunk
22094 \family default
22095 環境用のボタンを用意しています。最後の一つはファイルメニュー項目の「Build Program」への
22096 \begin_inset Flex Ruby
22097 status collapsed
22098
22099 \begin_layout Plain Layout
22100
22101 \family roman
22102 \series medium
22103 \shape up
22104 \size normal
22105 \emph off
22106 \bar no
22107 \noun off
22108 \color none
22109 捷径
22110 \family default
22111 \series default
22112 \shape default
22113 \size default
22114 \emph default
22115 \bar default
22116 \noun default
22117 \color inherit
22118
22119 \begin_inset Argument post:1
22120 status collapsed
22121
22122 \begin_layout Plain Layout
22123 ショートカット
22124 \end_layout
22125
22126 \end_inset
22127
22128
22129 \end_layout
22130
22131 \end_inset
22132
22133 です。
22134 \end_layout
22135
22136 \begin_layout Standard
22137 \SpecialChar LyX
22138 はツールバーで使うためのいくつものボタンを用意しています。私のツールバーはこの6つのショートカットに
22139 \begin_inset Flex MenuItem
22140 status collapsed
22141
22142 \begin_layout Plain Layout
22143 文書\SpecialChar menuseparator
22144 更新\SpecialChar menuseparator
22145 DVI
22146 \end_layout
22147
22148 \end_inset
22149
22150
22151 \begin_inset Flex MenuItem
22152 status collapsed
22153
22154 \begin_layout Plain Layout
22155 文書\SpecialChar menuseparator
22156 表示\SpecialChar menuseparator
22157 DVI
22158 \end_layout
22159
22160 \end_inset
22161
22162 を組み合わせたものになっています。
22163 \end_layout
22164
22165 \begin_layout LyX-Code
22166 Toolbar
22167 \end_layout
22168
22169 \begin_layout LyX-Code
22170   Layouts
22171 \end_layout
22172
22173 \begin_layout LyX-Code
22174   Icon "layout Standard"
22175 \end_layout
22176
22177 \begin_layout LyX-Code
22178   Icon "layout Section"
22179 \end_layout
22180
22181 \begin_layout LyX-Code
22182   Icon "layout \SpecialChar LaTeX
22183 "
22184 \end_layout
22185
22186 \begin_layout LyX-Code
22187   Icon "layout \SpecialChar LyX
22188 -Code"
22189 \end_layout
22190
22191 \begin_layout LyX-Code
22192   Icon "layout Chunk"
22193 \end_layout
22194
22195 \begin_layout LyX-Code
22196   Separator
22197 \end_layout
22198
22199 \begin_layout LyX-Code
22200   Icon "buffer-view"
22201 \end_layout
22202
22203 \begin_layout LyX-Code
22204   Icon "buffer-typeset"
22205 \end_layout
22206
22207 \begin_layout LyX-Code
22208   Icon "build-program"
22209 \end_layout
22210
22211 \begin_layout LyX-Code
22212   Separator
22213 \end_layout
22214
22215 \begin_layout LyX-Code
22216 .
22217 \end_layout
22218
22219 \begin_layout LyX-Code
22220 .
22221 \end_layout
22222
22223 \begin_layout LyX-Code
22224 .
22225 \end_layout
22226
22227 \begin_layout LyX-Code
22228 End
22229 \end_layout
22230
22231 \begin_layout Subsubsection
22232 色の変更
22233 \end_layout
22234
22235 \begin_layout Standard
22236 \SpecialChar LyX
22237 ではいくつもの色を
22238 \begin_inset Flex MenuItem
22239 status collapsed
22240
22241 \begin_layout Plain Layout
22242 設定
22243 \end_layout
22244
22245 \end_inset
22246
22247 で変えることができます。人々が困りがちなのは、\SpecialChar LaTeX
22248 フォント色でしょう。これは、既定では赤になっていますが、chunkは\SpecialChar LaTeX
22249 フォントを使うことになっていて、文芸プログラミ
22250 ング文書には多くのchunkが現れるために、すべて赤で見ていると疲れてしまうかもしれません。これは、
22251 \begin_inset Flex MenuItem
22252 status collapsed
22253
22254 \begin_layout Plain Layout
22255 操作性\SpecialChar menuseparator
22256
22257 \end_layout
22258
22259 \end_inset
22260
22261 タブで変更することができます。
22262 \end_layout
22263
22264 \begin_layout Standard
22265 もう一つは、改行文字が画面に表示されていることでしょう。改行文字の色を背景の色と同じにすることで改行文字を見えなくできます。私は改行文字を背景の色に似ているが少
22266 し違う色にすることを勧めます。こうすると、改行文字があるのはわかりますが、じゃまにならないでしょう。
22267 \end_layout
22268
22269 \begin_layout Subsection
22270 \SpecialChar LyX
22271 とknitr/Sweave
22272 \end_layout
22273
22274 \begin_layout Standard
22275 knitrとSweaveへのサポートについては、用例ファイル
22276 \emph on
22277 knitr.lyx
22278 \emph default
22279 とSweave取扱説明書(
22280 \family sans
22281 ヘルプ\SpecialChar menuseparator
22282 用途別説明書
22283 \family default
22284 メニュー)に説明があります。
22285 \end_layout
22286
22287 \begin_layout Chapter
22288 特殊機能
22289 \begin_inset CommandInset label
22290 LatexCommand label
22291 name "chap:Special-features"
22292
22293 \end_inset
22294
22295
22296 \end_layout
22297
22298 \begin_layout Standard
22299 \SpecialChar LyX
22300 では、\SpecialChar LaTeX
22301 で可能なことは何でも出来ます。すべての\SpecialChar LaTeX
22302 の機能を直接サポートできるわけではありませんが、どんな場合でも\SpecialChar TeX
22303 コードを使用することはできます。本章は、ユーザの興味が
22304 有りそうな特別な機能について、若干取り上げます。図表やフロート、ボックス、注釈に関する特別な機能については、取扱説明書『
22305 \emph on
22306 埋込オブジェクト篇
22307 \emph default
22308 』をご参照ください。
22309 \end_layout
22310
22311 \begin_layout Section
22312 多段組
22313 \end_layout
22314
22315 \begin_layout Standard
22316 この機能は、文書設定の
22317 \family sans
22318 本文レイアウト
22319 \family default
22320 にある
22321 \family sans
22322 二段組文書
22323 \family default
22324 とは別の機能です。文書全体に二段組を行いたい場合には、
22325 \family sans
22326 二段組文書
22327 \family default
22328 オプションを利用することをお勧めします。その他の場合には、本機能をご使用ください。
22329 \end_layout
22330
22331 \begin_layout Standard
22332 文書中で多段組を行うには、\SpecialChar LaTeX
22333 パッケージ
22334 \series bold
22335 multicol
22336 \series default
22337
22338 \begin_inset Index idx
22339 status collapsed
22340
22341 \begin_layout Plain Layout
22342 \SpecialChar LaTeX
22343 ぱっけーじ @ \SpecialChar LaTeX
22344 パッケージ ! multicol
22345 \end_layout
22346
22347 \end_inset
22348
22349 を導入した上で、(
22350 \family sans
22351 文書\SpecialChar menuseparator
22352 設定\SpecialChar menuseparator
22353 モジュール
22354 \family default
22355 メニューから)
22356 \family sans
22357 多段組
22358 \family default
22359 モジュールを読み込んでください。
22360 \end_layout
22361
22362 \begin_layout Standard
22363 多段組中の脚注は、ページ下部に置かれ、各段の下ごとには置かれません。各段においては、フロートに
22364 \family sans
22365 段をまたぐ
22366 \family default
22367 オプションを使用する必要があるほかは、通常通りの使用をすることができます。
22368 \end_layout
22369
22370 \begin_layout Subsection
22371 基本
22372 \end_layout
22373
22374 \begin_layout Standard
22375 文章中で二段組を使用したい場合には、段組を始める場所で
22376 \family sans
22377 挿入\SpecialChar menuseparator
22378 任意設定差込枠\SpecialChar menuseparator
22379 多段組
22380 \family default
22381 メニューを使用して、多段組差込枠を挿入してください。二段組で印字されるべき文章は、全てこの差込枠の中に書いてください。
22382 \end_layout
22383
22384 \begin_layout Standard
22385 下記はその用例です。
22386 \end_layout
22387
22388 \begin_layout Standard
22389 \noindent
22390 \begin_inset Flex Multiple Columns
22391 status open
22392
22393 \begin_layout Plain Layout
22394 \noindent
22395
22396 \series bold
22397 \size small
22398 The Adventure of the Empty House
22399 \series default
22400
22401 \begin_inset Newline newline
22402 \end_inset
22403
22404 by Sir Arthur Conan Doyle
22405 \end_layout
22406
22407 \begin_layout Plain Layout
22408
22409 \size small
22410 It was in the spring of the year 1894 that all London was interested, and
22411  the fashionable world dismayed, by the murder of the Honourable Ronald
22412  Adair under most unusual and inexplicable circumstances.
22413  The public has already learned those particulars of the crime which came
22414  out in the police investigation, but a good deal was suppressed upon that
22415  occasion, since the case for the prosecution was so overwhelmingly strong
22416  that it was not necessary to bring forward all the facts.
22417  Only now, at the end of nearly ten years, am I allowed to supply those
22418  missing links which make up the whole of that remarkable chain.
22419  The crime was of interest in itself, but that interest was as nothing to
22420  me compared to the inconceivable sequel, which afforded me the greatest
22421  shock and surprise of any event in my adventurous life.
22422  Even now, after this long interval, I find myself thrilling as I think
22423  of it, and feeling once more that sudden flood of joy, amazement, and increduli
22424 ty which utterly submerged my mind.
22425  Let me say to that public, which has shown some interest in those glimpses
22426  which I have occasionally given them of the thoughts and actions of a very
22427  remarkable man, that they are not to blame me if I have not shared my knowledge
22428  with them, for I should have considered it my first duty to do so, had
22429  I not been barred by a positive prohibition from his own lips, which was
22430  only withdrawn upon the third of last month.
22431 \end_layout
22432
22433 \end_inset
22434
22435
22436 \end_layout
22437
22438 \begin_layout Standard
22439 三段以上にするには、カーソルを多段組差込枠の内部において、挿入\SpecialChar menuseparator
22440 段数メニューを使用してください。この差込枠の中に、欲しい段数を書き入れます(三段組の場合には「3」
22441 と書きます)。
22442 \begin_inset Newline newline
22443 \end_inset
22444
22445 下記は三段組の例です。
22446 \end_layout
22447
22448 \begin_layout Standard
22449 \begin_inset Flex Multiple Columns
22450 status open
22451
22452 \begin_layout Plain Layout
22453
22454 \size footnotesize
22455 \begin_inset Argument 1
22456 status open
22457
22458 \begin_layout Plain Layout
22459 3
22460 \end_layout
22461
22462 \end_inset
22463
22464 It can be imagined that my close intimacy with Sherlock Holmes had interested
22465  me deeply in crime, and that after his disappearance I never failed to
22466  read with care the various problems which came before the public.
22467  And I even attempted, more than once, for my own private satisfaction,
22468  to employ his methods in their solution, though with indifferent success.
22469  There was none, however, which appealed to me like this tragedy of Ronald
22470  Adair.
22471  As I read the evidence at the inquest, which led up to a verdict of willful
22472  murder against some person or persons unknown, I realized more clearly
22473  than I had ever done the loss which the community had sustained by the
22474  death of Sherlock Holmes.
22475  There were points about this strange business which would, I was sure,
22476  have specially appealed to him, and the efforts of the police would have
22477  been supplemented, or more probably anticipated, by the trained observation
22478  and the alert mind of the first criminal agent in Europe.
22479  All day, as I drove upon my round, I turned over the case in my mind and
22480  found no explanation which appeared to me to be adequate.
22481  At the risk of telling a twice-told tale, I will recapitulate the facts
22482  as they were known to the public at the conclusion of the inquest.
22483 \end_layout
22484
22485 \end_inset
22486
22487
22488 \end_layout
22489
22490 \begin_layout Standard
22491 お望みならば10段組まで組むことができますが、文書の読者にとっては、あまり気持ちのいいものではないでしょう。
22492 \end_layout
22493
22494 \begin_layout Standard
22495 \begin_inset Newpage newpage
22496 \end_inset
22497
22498
22499 \end_layout
22500
22501 \begin_layout Subsection
22502 段組中の段組
22503 \end_layout
22504
22505 \begin_layout Standard
22506 また、段中に段を組むこともできます。
22507 \end_layout
22508
22509 \begin_layout Standard
22510 \begin_inset Flex Multiple Columns
22511 status open
22512
22513 \begin_layout Plain Layout
22514
22515 \size footnotesize
22516 The Honourable Ronald Adair was the second son of the Earl of Maynooth,
22517  at that time governor of one of the Australian colonies.
22518  Adair's mother had returned from Australia to undergo the operation for
22519  cataract, and she, her son Ronald, and her daughter Hilda were living together
22520  at 427 Park Lane.
22521 \end_layout
22522
22523 \begin_layout Plain Layout
22524 \begin_inset Flex Multiple Columns
22525 status open
22526
22527 \begin_layout Plain Layout
22528
22529 \size footnotesize
22530 The youth moved in the best society–had, so far as was known, no enemies
22531  and no particular vices.
22532  He had been engaged to Miss Edith Woodley, of Carstairs, but the engagement
22533  had been broken off by mutual consent some months before, and there was
22534  no sign that it had left any very profound feeling behind it.
22535  For the rest {sic} the man's life moved in a narrow and conventional circle,
22536  for his habits were quiet and his nature unemotional.
22537  Yet it was upon this easy-going young aristocrat that death came, in most
22538  strange and unexpected form, between the hours of ten and eleven-twenty
22539  on the night of March 30, 1894.
22540 \end_layout
22541
22542 \end_inset
22543
22544
22545 \end_layout
22546
22547 \begin_layout Plain Layout
22548
22549 \size footnotesize
22550 Ronald Adair was fond of cards–playing continually, but never for such stakes
22551  as would hurt him.
22552  He was a member of the Baldwin, the Cavendish, and the Bagatelle card clubs.
22553  It was shown that, after dinner on the day of his death, he had played
22554  a rubber of whist at the latter club.
22555  He had also played there in the afternoon.
22556
22557 \size default
22558  
22559 \size footnotesize
22560 The evidence of those who had played with him– Mr.
22561  Murray, Sir John Hardy, and Colonel Moran–showed that the game was whist,
22562  and that there was a fairly equal fall of the cards.
22563  Adair might have lost five pounds, but not more.
22564  His fortune was a considerable one, and such a loss could not in any way
22565  affect him.
22566  He had played nearly every day at one club or other, but he was a cautious
22567  player, and usually rose a winner.
22568  It came out in evidence that, in partnership with Colonel Moran, he had
22569  actually won as much as four hundred and twenty pounds in a sitting, some
22570  weeks before, from Godfrey Milner and Lord Balmoral.
22571  So much for his recent history as it came out at the inquest.
22572 \end_layout
22573
22574 \end_inset
22575
22576
22577 \end_layout
22578
22579 \begin_layout Subsection
22580 応用例
22581 \end_layout
22582
22583 \begin_layout Standard
22584 本節の用例は、多段組のさらに特別な機能を示すためのものです。
22585 \end_layout
22586
22587 \begin_layout Standard
22588 多段組機能についてさらに知りたい場合には、\SpecialChar LaTeX
22589 パッケージ
22590 \series bold
22591 multicol
22592 \series default
22593
22594 \begin_inset CommandInset citation
22595 LatexCommand cite
22596 key "multicol"
22597
22598 \end_inset
22599
22600 の取扱説明書をご覧ください。
22601 \end_layout
22602
22603 \begin_layout Subsubsection
22604 序文
22605 \end_layout
22606
22607 \begin_layout Standard
22608 多段組に序文を追記するには、カーソルを多段組差込枠内部に置き、
22609 \family sans
22610 挿入\SpecialChar menuseparator
22611 序文
22612 \family default
22613 メニューを使用してください。序文は、この差込枠内に書いてください。
22614 \begin_inset Newline newline
22615 \end_inset
22616
22617 序文のある文章の例を掲げます。
22618 \end_layout
22619
22620 \begin_layout Standard
22621 \begin_inset VSpace bigskip
22622 \end_inset
22623
22624
22625 \end_layout
22626
22627 \begin_layout Standard
22628 \begin_inset Flex Multiple Columns
22629 status open
22630
22631 \begin_layout Plain Layout
22632 \begin_inset Argument 2
22633 status open
22634
22635 \begin_layout Plain Layout
22636 And the story continues and continues and continues and continues\SpecialChar ldots
22637
22638 \end_layout
22639
22640 \end_inset
22641
22642
22643 \size small
22644 On the evening of the crime, he returned from the club exactly at ten.
22645  His mother and sister were out spending the evening with a relation.
22646  The servant deposed that she heard him enter the front room on the second
22647  floor, generally used as his sitting-room.
22648  She had lit a fire there, and as it smoked she had opened the window.
22649  No sound was heard from the room until eleven-twenty, the hour of the return
22650  of Lady Maynooth and her daughter.
22651  Desiring to say good-night, she attempted to enter her son's room.
22652  The door was locked on the inside, and no answer could be got to their
22653  cries and knocking.
22654  Help was obtained, and the door forced.
22655  The unfortunate young man was found lying near the table.
22656  His head had been horribly mutilated by an expanding revolver bullet, but
22657  no weapon of any sort was to be found in the room.
22658 \end_layout
22659
22660 \end_inset
22661
22662
22663 \end_layout
22664
22665 \begin_layout Standard
22666 最初の\SpecialChar TeX
22667 コードの後に、節宣言コマンドを\SpecialChar TeX
22668 コードとして使用すれば、節見出しを前書きとして使用することができます。例えば、
22669 \end_layout
22670
22671 \begin_layout Standard
22672
22673 \series bold
22674
22675 \backslash
22676 subsection{小節見出し}
22677 \end_layout
22678
22679 \begin_layout Standard
22680 というコマンドは、小節を生成します。以下の例では、前書きが小々節になっています。
22681 \end_layout
22682
22683 \begin_layout Standard
22684 \begin_inset Flex Multiple Columns
22685 status open
22686
22687 \begin_layout Plain Layout
22688 \begin_inset Argument 2
22689 status open
22690
22691 \begin_layout Plain Layout
22692 \begin_inset ERT
22693 status collapsed
22694
22695 \begin_layout Plain Layout
22696
22697
22698 \backslash
22699 subsubsection{
22700 \end_layout
22701
22702 \end_inset
22703
22704 これは序文の小々節見出しです
22705 \begin_inset ERT
22706 status collapsed
22707
22708 \begin_layout Plain Layout
22709
22710 }
22711 \end_layout
22712
22713 \end_inset
22714
22715
22716 \end_layout
22717
22718 \end_inset
22719
22720
22721 \size small
22722 A minute examination of the circumstances served only to make the case more
22723  complex.
22724  In the first place, no reason could be given why the young man should have
22725  fastened the door upon the inside.
22726  There was the possibility that the murderer had done this, and had afterwards
22727  escaped by the window.
22728  The drop was at least twenty feet, however, and a bed of crocuses in full
22729  bloom lay beneath.
22730  Neither the flowers nor the earth showed any sign of having been disturbed,
22731  nor were there any marks upon the narrow strip of grass which separated
22732  the house from the road.
22733  Apparently, therefore, it was the young man himself who had fastened the
22734  door.
22735  But how did he come by his death? No one could have climbed up to the window
22736  without leaving traces.
22737  Suppose a man had fired through the window, he would indeed be a remarkable
22738  shot who could with a revolver inflict so deadly a wound.
22739  Again, Park Lane is a frequented thoroughfare; there is a cab stand within
22740  a hundred yards of the house.
22741  No one had heard a shot.
22742 \end_layout
22743
22744 \end_inset
22745
22746
22747 \end_layout
22748
22749 \begin_layout Standard
22750 多段組を開始する部分に、必要とされる6行を確保出来るだけの垂直スペースがページに残されていない場合、多段組の前に改行が挿入されます。前書きの行数如何では、この必
22751 要行数を変更したいかもしれません。これは、カーソルを多段組差込枠内部の(もしあれば)序文の後に置き、
22752 \family sans
22753 挿入\SpecialChar menuseparator
22754 改頁前の余白
22755 \family default
22756 メニューを使用することで設定できます。この差込枠に、余白の大きさを「5cm」などと書き込んでください。
22757 \end_layout
22758
22759 \begin_layout Standard
22760 以下の例では、「7
22761 \backslash
22762 baselineskip」を用いて、必要行数を7行に指定しています(コマンド
22763 \series bold
22764
22765 \backslash
22766 baselineskip
22767 \series default
22768 は\SpecialChar TeX
22769 コードとして入力する必要があります)。
22770 \end_layout
22771
22772 \begin_layout Standard
22773 \begin_inset Flex Multiple Columns
22774 status open
22775
22776 \begin_layout Plain Layout
22777 \begin_inset Argument 3
22778 status open
22779
22780 \begin_layout Plain Layout
22781 7
22782 \begin_inset ERT
22783 status collapsed
22784
22785 \begin_layout Plain Layout
22786
22787
22788 \backslash
22789 baselineskip
22790 \end_layout
22791
22792 \end_inset
22793
22794
22795 \end_layout
22796
22797 \end_inset
22798
22799
22800 \size small
22801 On the evening of the crime, he returned from the club exactly at ten.
22802  His mother and sister were out spending the evening with a relation.
22803  The servant deposed that she heard him enter the front room on the second
22804  floor, generally used as his sitting-room.
22805  She had lit a fire there, and as it smoked she had opened the window.
22806  No sound was heard from the room until eleven-twenty, the hour of the return
22807  of Lady Maynooth and her daughter.
22808  Desiring to say good-night, she attempted to enter her son's room.
22809  The door was locked on the inside, and no answer could be got to their
22810  cries and knocking.
22811  Help was obtained, and the door forced.
22812  The unfortunate young man was found lying near the table.
22813  His head had been horribly mutilated by an expanding revolver bullet, but
22814  no weapon of any sort was to be found in the room.
22815 \end_layout
22816
22817 \end_inset
22818
22819
22820 \end_layout
22821
22822 \begin_layout Subsubsection
22823 周囲の余白
22824 \end_layout
22825
22826 \begin_layout Standard
22827 多段組の前後の余白は、長さ
22828 \series bold
22829
22830 \backslash
22831 multicolsep
22832 \series default
22833 を変えることで変更することができます。例えば、\SpecialChar TeX
22834 コードで書かれたコマンド
22835 \end_layout
22836
22837 \begin_layout Standard
22838
22839 \series bold
22840
22841 \backslash
22842 setlength{
22843 \backslash
22844 multicolsep}{3cm}
22845 \end_layout
22846
22847 \begin_layout Standard
22848 は、その値を3
22849 \begin_inset space \thinspace{}
22850 \end_inset
22851
22852 cmに変更します。この変更は、多段組が始まる前に指定しなくてはなりません。既定値は13
22853 \begin_inset space \thinspace{}
22854 \end_inset
22855
22856 ptです。
22857 \end_layout
22858
22859 \begin_layout Standard
22860 以下の例では、
22861 \series bold
22862
22863 \backslash
22864 multicolsep
22865 \series default
22866 は2.5
22867 \begin_inset space \thinspace{}
22868 \end_inset
22869
22870 cmに指定されています。
22871 \end_layout
22872
22873 \begin_layout Standard
22874 \begin_inset ERT
22875 status open
22876
22877 \begin_layout Plain Layout
22878
22879
22880 \backslash
22881 setlength{
22882 \backslash
22883 multicolsep}{2.5cm}
22884 \end_layout
22885
22886 \end_inset
22887
22888
22889 \end_layout
22890
22891 \begin_layout Standard
22892 \begin_inset Flex Multiple Columns
22893 status open
22894
22895 \begin_layout Plain Layout
22896
22897 \size small
22898 All day I turned these facts over in my mind, endeavouring to hit upon some
22899  theory which could reconcile them all, and to find that line of least resistanc
22900 e which my poor friend had declared to be the starting-point of every investigat
22901 ion.
22902  I confess that I made little progress.
22903  In the evening I strolled across the Park, and found myself about six o'clock
22904  at the Oxford Street end of Park Lane.
22905  A group of loafers upon the pavements, all staring up at a particular window,
22906  directed me to the house which I had come to see.
22907  A tall, thin man with coloured glasses, whom I strongly suspected of being
22908  a plain-clothes detective, was pointing out some theory of his own, while
22909  the others crowded round to listen to what he said.
22910  I got as near him as I could, but his observations seemed to me to be absurd,
22911  so I withdrew again in some disgust.
22912  As I did so I struck against an elderly, deformed man, who had been behind
22913  me, and I knocked down several books which he was carrying.
22914 \end_layout
22915
22916 \end_inset
22917
22918
22919 \end_layout
22920
22921 \begin_layout Standard
22922 \begin_inset Note Greyedout
22923 status open
22924
22925 \begin_layout Plain Layout
22926
22927 \series bold
22928 【註】
22929 \backslash
22930 setlength
22931 \series default
22932 で指定した値は、再度変更されるまでは、以降のすべての多段組で使用されます。
22933 \end_layout
22934
22935 \end_inset
22936
22937
22938 \end_layout
22939
22940 \begin_layout Standard
22941 \begin_inset ERT
22942 status collapsed
22943
22944 \begin_layout Plain Layout
22945
22946
22947 \backslash
22948 setlength{
22949 \backslash
22950 multicolsep}{13pt}
22951 \end_layout
22952
22953 \end_inset
22954
22955
22956 \begin_inset Note Note
22957 status collapsed
22958
22959 \begin_layout Plain Layout
22960
22961 \lang english
22962 go back to the default
22963 \end_layout
22964
22965 \end_inset
22966
22967
22968 \end_layout
22969
22970 \begin_layout Standard
22971 \begin_inset Newpage newpage
22972 \end_inset
22973
22974
22975 \end_layout
22976
22977 \begin_layout Subsubsection
22978 改段
22979 \end_layout
22980
22981 \begin_layout Standard
22982 改段は、文章中の階段を行いたい位置に、\SpecialChar TeX
22983 コードで、コマンド
22984 \series bold
22985
22986 \backslash
22987 columnbreak{}
22988 \series default
22989 を挿入すれば、強制的に行うことができます。ただし、多くの場合、文章中に空白が挿入されることに注意してください。
22990 \begin_inset Newline newline
22991 \end_inset
22992
22993 以下が用例です。
22994 \end_layout
22995
22996 \begin_layout Standard
22997 \begin_inset Flex Multiple Columns
22998 status open
22999
23000 \begin_layout Plain Layout
23001
23002 \size small
23003 \begin_inset Quotes eld
23004 \end_inset
23005
23006 You're surprised to see me, sir,
23007 \begin_inset Quotes erd
23008 \end_inset
23009
23010  said he, in a strange, croaking voice.
23011 \end_layout
23012
23013 \begin_layout Plain Layout
23014
23015 \size small
23016 I acknowledged that I was.
23017 \end_layout
23018
23019 \begin_layout Plain Layout
23020
23021 \size small
23022 \begin_inset Quotes eld
23023 \end_inset
23024
23025 Well, I've a conscience, sir, and when I chanced to see you go into this
23026  house, as I came hobbling after you, I thought to myself, I'll just step
23027  in and see that kind gentleman, and tell him that if I was a bit gruff
23028  in my manner there was not any harm meant, and that I am much obliged to
23029  him for picking up my books.
23030 \begin_inset Quotes erd
23031 \end_inset
23032
23033
23034 \end_layout
23035
23036 \begin_layout Plain Layout
23037
23038 \size small
23039 \begin_inset Quotes eld
23040 \end_inset
23041
23042 You make too much of a trifle,
23043 \begin_inset Quotes erd
23044 \end_inset
23045
23046  said I.
23047  
23048 \begin_inset Quotes eld
23049 \end_inset
23050
23051 May I ask how you knew who I was?
23052 \begin_inset Quotes erd
23053 \end_inset
23054
23055  AFTER THIS SENTENCE THE COLUMN BREAK IS FORCED.
23056 \begin_inset ERT
23057 status collapsed
23058
23059 \begin_layout Plain Layout
23060
23061
23062 \backslash
23063 columnbreak{}
23064 \end_layout
23065
23066 \end_inset
23067
23068
23069 \end_layout
23070
23071 \begin_layout Plain Layout
23072
23073 \size small
23074 \begin_inset Quotes eld
23075 \end_inset
23076
23077 Well, sir, if it isn't too great a liberty, I am a neighbour of yours, for
23078  you'll find my little bookshop at the corner of Church Street, and very
23079  happy to see you, I am sure.
23080  Maybe you collect yourself, sir.
23081  Here's 
23082 \noun on
23083 British
23084 \begin_inset space ~
23085 \end_inset
23086
23087 Birds
23088 \noun default
23089 , and 
23090 \noun on
23091 Catullus
23092 \noun default
23093 , and 
23094 \noun on
23095 The Holy War
23096 \noun default
23097 –a bargain, every one of them.
23098  With five volumes you could just fill that gap on that second shelf.
23099  It looks untidy, does it not, sir?
23100 \begin_inset Quotes erd
23101 \end_inset
23102
23103
23104 \end_layout
23105
23106 \end_inset
23107
23108
23109 \end_layout
23110
23111 \begin_layout Subsubsection
23112 段間隔
23113 \end_layout
23114
23115 \begin_layout Standard
23116 段幅は自動的に計算されますが、段の間の余白は指定することができます。これは、長さ
23117 \series bold
23118
23119 \backslash
23120 columnsep
23121 \series default
23122 を変更することで実現できます。既定値は10
23123 \begin_inset space \thinspace{}
23124 \end_inset
23125
23126 ptです。以下は
23127 \series bold
23128
23129 \backslash
23130 columnsep
23131 \series default
23132 を3
23133 \begin_inset space \thinspace{}
23134 \end_inset
23135
23136 cmに設定した例です。
23137 \end_layout
23138
23139 \begin_layout Standard
23140 \begin_inset ERT
23141 status open
23142
23143 \begin_layout Plain Layout
23144
23145
23146 \backslash
23147 setlength{
23148 \backslash
23149 columnsep}{3cm}
23150 \end_layout
23151
23152 \end_inset
23153
23154
23155 \end_layout
23156
23157 \begin_layout Standard
23158 \begin_inset Flex Multiple Columns
23159 status open
23160
23161 \begin_layout Plain Layout
23162
23163 \size small
23164 My observations of No.
23165 \begin_inset space \space{}
23166 \end_inset
23167
23168 427 Park Lane did little to clear up the problem in which I was interested.
23169  The house was separated from the street by a low wall and railing, the
23170  whole not more than five feet high.
23171  It was perfectly easy, therefore, for anyone to get into the garden, but
23172  the window was entirely inaccessible, since there was no water pipe or
23173  anything which could help the most active man to climb it.
23174  More puzzled than ever, I retraced my steps to Kensington.
23175  I had not been in my study five minutes when the maid entered to say that
23176  a person desired to see me.
23177  To my astonishment it was none other than my strange old book collector,
23178  his sharp, wizened face peering out from a frame of white hair, and his
23179  precious volumes, a dozen of them at least, wedged under his right arm.
23180 \end_layout
23181
23182 \end_inset
23183
23184
23185 \end_layout
23186
23187 \begin_layout Standard
23188 \begin_inset ERT
23189 status collapsed
23190
23191 \begin_layout Plain Layout
23192
23193
23194 \backslash
23195 setlength{
23196 \backslash
23197 columnsep}{10pt}
23198 \end_layout
23199
23200 \end_inset
23201
23202
23203 \begin_inset Note Note
23204 status collapsed
23205
23206 \begin_layout Plain Layout
23207
23208 \lang english
23209 go back to the default
23210 \end_layout
23211
23212 \end_inset
23213
23214
23215 \end_layout
23216
23217 \begin_layout Subsubsection
23218 垂直線
23219 \end_layout
23220
23221 \begin_layout Standard
23222 段間には、長さ
23223 \series bold
23224
23225 \backslash
23226 columnseprule
23227 \series default
23228 の幅を持つ罫線が描かれます。罫線幅を0
23229 \begin_inset space \thinspace{}
23230 \end_inset
23231
23232 ptにすると(これが既定値です)、罫線は出力されません。以下の例では、段を分かつ線は2
23233 \begin_inset space \thinspace{}
23234 \end_inset
23235
23236 pt幅に設定されています。
23237 \end_layout
23238
23239 \begin_layout Standard
23240 \begin_inset ERT
23241 status open
23242
23243 \begin_layout Plain Layout
23244
23245
23246 \backslash
23247 setlength{
23248 \backslash
23249 columnseprule}{2pt}
23250 \end_layout
23251
23252 \end_inset
23253
23254
23255 \end_layout
23256
23257 \begin_layout Standard
23258 \begin_inset Flex Multiple Columns
23259 status open
23260
23261 \begin_layout Plain Layout
23262
23263 \size small
23264 \begin_inset Quotes eld
23265 \end_inset
23266
23267 You're surprised to see me, sir,
23268 \begin_inset Quotes erd
23269 \end_inset
23270
23271  said he, in a strange, croaking voice.
23272 \end_layout
23273
23274 \begin_layout Plain Layout
23275
23276 \size small
23277 I acknowledged that I was.
23278 \end_layout
23279
23280 \begin_layout Plain Layout
23281
23282 \size small
23283 \begin_inset Quotes eld
23284 \end_inset
23285
23286 Well, I've a conscience, sir, and when I chanced to see you go into this
23287  house, as I came hobbling after you, I thought to myself, I'll just step
23288  in and see that kind gentleman, and tell him that if I was a bit gruff
23289  in my manner there was not any harm meant, and that I am much obliged to
23290  him for picking up my books.
23291 \begin_inset Quotes erd
23292 \end_inset
23293
23294
23295 \end_layout
23296
23297 \begin_layout Plain Layout
23298
23299 \size small
23300 \begin_inset Quotes eld
23301 \end_inset
23302
23303 You make too much of a trifle,
23304 \begin_inset Quotes erd
23305 \end_inset
23306
23307  said I.
23308  
23309 \begin_inset Quotes eld
23310 \end_inset
23311
23312 May I ask how you knew who I was?
23313 \begin_inset Quotes erd
23314 \end_inset
23315
23316
23317 \end_layout
23318
23319 \begin_layout Plain Layout
23320
23321 \size small
23322 \begin_inset Quotes eld
23323 \end_inset
23324
23325 Well, sir, if it isn't too great a liberty, I am a neighbour of yours, for
23326  you'll find my little bookshop at the corner of Church Street, and very
23327  happy to see you, I am sure.
23328  Maybe you collect yourself, sir.
23329  Here's 
23330 \noun on
23331 British
23332 \begin_inset space ~
23333 \end_inset
23334
23335 Birds
23336 \noun default
23337 , and 
23338 \noun on
23339 Catullus
23340 \noun default
23341 , and 
23342 \noun on
23343 The Holy War
23344 \noun default
23345 –a bargain, every one of them.
23346  With five volumes you could just fill that gap on that second shelf.
23347  It looks untidy, does it not, sir?
23348 \begin_inset Quotes erd
23349 \end_inset
23350
23351
23352 \end_layout
23353
23354 \end_inset
23355
23356
23357 \end_layout
23358
23359 \begin_layout Standard
23360 \begin_inset VSpace defskip
23361 \end_inset
23362
23363
23364 \end_layout
23365
23366 \begin_layout Standard
23367 罫線は、コマンド
23368 \series bold
23369
23370 \backslash
23371 columnseprulecolor
23372 \series default
23373 を再定義すれば、着色することができます。これは、多段組差込枠の前に\SpecialChar TeX
23374 コードで以下のコマンドを挿入すれば、実現できます。
23375 \begin_inset Newline newline
23376 \end_inset
23377
23378
23379 \series bold
23380
23381 \backslash
23382 renewcommand{
23383 \backslash
23384 columnseprulecolor}{
23385 \backslash
23386 color{red}}
23387 \series default
23388
23389 \begin_inset Newline newline
23390 \end_inset
23391
23392 このコマンド中の
23393 \series bold
23394 red
23395 \series default
23396 をお好みの色に変更してください。既定色とユーザー定義色の全てを使用することができます。既定色とユーザー定義色についての詳細な情報は、取扱説明書『
23397 \emph on
23398 埋込オブジェクト篇
23399 \emph default
23400 』の「
23401 \emph on
23402 色付き表
23403 \emph default
23404 」の節をご覧ください。既定色に戻すには、以下のコマンドを挿入してください。
23405 \begin_inset Newline newline
23406 \end_inset
23407
23408
23409 \series bold
23410
23411 \backslash
23412 renewcommand{
23413 \backslash
23414 columnseprulecolor}{
23415 \backslash
23416 normalcolor}
23417 \series default
23418
23419 \begin_inset Newline newline
23420 \end_inset
23421
23422 以下は、シアン色の罫線と1
23423 \begin_inset space \thinspace{}
23424 \end_inset
23425
23426 cmの段間隔を持つ例です。
23427 \end_layout
23428
23429 \begin_layout Standard
23430 \begin_inset ERT
23431 status open
23432
23433 \begin_layout Plain Layout
23434
23435
23436 \backslash
23437 setlength{
23438 \backslash
23439 columnsep}{1cm}
23440 \end_layout
23441
23442 \begin_layout Plain Layout
23443
23444
23445 \backslash
23446 renewcommand{
23447 \backslash
23448 columnseprulecolor}{
23449 \backslash
23450 color{cyan}}
23451 \end_layout
23452
23453 \end_inset
23454
23455
23456 \end_layout
23457
23458 \begin_layout Standard
23459 \begin_inset Flex Multiple Columns
23460 status open
23461
23462 \begin_layout Plain Layout
23463
23464 \size small
23465 \begin_inset Quotes eld
23466 \end_inset
23467
23468 You're surprised to see me, sir,
23469 \begin_inset Quotes erd
23470 \end_inset
23471
23472  said he, in a strange, croaking voice.
23473 \end_layout
23474
23475 \begin_layout Plain Layout
23476
23477 \size small
23478 I acknowledged that I was.
23479 \end_layout
23480
23481 \begin_layout Plain Layout
23482
23483 \size small
23484 \begin_inset Quotes eld
23485 \end_inset
23486
23487 Well, I've a conscience, sir, and when I chanced to see you go into this
23488  house, as I came hobbling after you, I thought to myself, I'll just step
23489  in and see that kind gentleman, and tell him that if I was a bit gruff
23490  in my manner there was not any harm meant, and that I am much obliged to
23491  him for picking up my books.
23492 \begin_inset Quotes erd
23493 \end_inset
23494
23495
23496 \end_layout
23497
23498 \begin_layout Plain Layout
23499
23500 \size small
23501 \begin_inset Quotes eld
23502 \end_inset
23503
23504 You make too much of a trifle,
23505 \begin_inset Quotes erd
23506 \end_inset
23507
23508  said I.
23509  
23510 \begin_inset Quotes eld
23511 \end_inset
23512
23513 May I ask how you knew who I was?
23514 \begin_inset Quotes erd
23515 \end_inset
23516
23517
23518 \end_layout
23519
23520 \begin_layout Plain Layout
23521
23522 \size small
23523 \begin_inset Quotes eld
23524 \end_inset
23525
23526 Well, sir, if it isn't too great a liberty, I am a neighbour of yours, for
23527  you'll find my little bookshop at the corner of Church Street, and very
23528  happy to see you, I am sure.
23529  Maybe you collect yourself, sir.
23530  Here's 
23531 \noun on
23532 British
23533 \begin_inset space ~
23534 \end_inset
23535
23536 Birds
23537 \noun default
23538 , and 
23539 \noun on
23540 Catullus
23541 \noun default
23542 , and 
23543 \noun on
23544 The Holy War
23545 \noun default
23546 –a bargain, every one of them.
23547  With five volumes you could just fill that gap on that second shelf.
23548  It looks untidy, does it not, sir?
23549 \begin_inset Quotes erd
23550 \end_inset
23551
23552
23553 \end_layout
23554
23555 \end_inset
23556
23557
23558 \end_layout
23559
23560 \begin_layout Standard
23561 \begin_inset ERT
23562 status collapsed
23563
23564 \begin_layout Plain Layout
23565
23566
23567 \backslash
23568 setlength{
23569 \backslash
23570 columnseprule}{0pt}
23571 \end_layout
23572
23573 \begin_layout Plain Layout
23574
23575
23576 \backslash
23577 renewcommand{
23578 \backslash
23579 columnseprulecolor}{
23580 \backslash
23581 normalcolor}
23582 \end_layout
23583
23584 \end_inset
23585
23586
23587 \begin_inset Note Note
23588 status collapsed
23589
23590 \begin_layout Plain Layout
23591
23592 \lang english
23593 go back to the default
23594 \end_layout
23595
23596 \end_inset
23597
23598
23599 \end_layout
23600
23601 \begin_layout Standard
23602 \begin_inset Newpage newpage
23603 \end_inset
23604
23605
23606 \end_layout
23607
23608 \begin_layout Section
23609 標準的でない形の段落
23610 \end_layout
23611
23612 \begin_layout Standard
23613 \noindent
23614 \SpecialChar LaTeX
23615 は、他のテキストプロセッサと同様に、既定で長方形の段落を使用します。しかし、例えば、ポスターや招待状、詩などの特殊な場合には、段落の形を好きなように変えることが
23616 できます。これは、文書設定で
23617 \family sans
23618 任意設定の段落形
23619 \family default
23620 モジュールを読み込んで、\SpecialChar LaTeX
23621 パッケージ
23622 \series bold
23623 shapepar
23624 \series default
23625 を使用させるようにすれば、実現できます。
23626 \end_layout
23627
23628 \begin_layout Subsection
23629 既定の形
23630 \end_layout
23631
23632 \begin_layout Standard
23633
23634 \series bold
23635 shapepar
23636 \series default
23637 は、以下の形を提供しています。
23638 \end_layout
23639
23640 \begin_layout Standard
23641 \begin_inset Tabular
23642 <lyxtabular version="3" rows="13" columns="3">
23643 <features booktabs="true" islongtable="true" longtabularalignment="center">
23644 <column alignment="center" valignment="middle" width="16col%">
23645 <column alignment="center" valignment="middle" width="40col%">
23646 <column alignment="center" valignment="middle" width="35col%">
23647 <row endhead="true">
23648 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23649 \begin_inset Text
23650
23651 \begin_layout Plain Layout
23652 名称
23653 \end_layout
23654
23655 \end_inset
23656 </cell>
23657 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23658 \begin_inset Text
23659
23660 \begin_layout Plain Layout
23661 説明
23662 \end_layout
23663
23664 \end_inset
23665 </cell>
23666 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
23667 \begin_inset Text
23668
23669 \begin_layout Plain Layout
23670 備考
23671 \end_layout
23672
23673 \end_inset
23674 </cell>
23675 </row>
23676 <row>
23677 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23678 \begin_inset Text
23679
23680 \begin_layout Plain Layout
23681 CDlabel
23682 \end_layout
23683
23684 \end_inset
23685 </cell>
23686 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23687 \begin_inset Text
23688
23689 \begin_layout Plain Layout
23690 丸い穴の開いたドーナツ型(CD/DVD大)
23691 \end_layout
23692
23693 \end_inset
23694 </cell>
23695 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23696 \begin_inset Text
23697
23698 \begin_layout Plain Layout
23699 伸縮不可。多くの文字を入れられないことに注意。
23700 \end_layout
23701
23702 \end_inset
23703 </cell>
23704 </row>
23705 <row>
23706 <cell alignment="center" valignment="top" topline="true" usebox="none">
23707 \begin_inset Text
23708
23709 \begin_layout Plain Layout
23710 Circle
23711 \end_layout
23712
23713 \end_inset
23714 </cell>
23715 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23716 \begin_inset Text
23717
23718 \begin_layout Plain Layout
23719
23720 \end_layout
23721
23722 \end_inset
23723 </cell>
23724 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23725 \begin_inset Text
23726
23727 \begin_layout Plain Layout
23728 脆弱。計算に失敗することも。
23729 \end_layout
23730
23731 \end_inset
23732 </cell>
23733 </row>
23734 <row>
23735 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23736 \begin_inset Text
23737
23738 \begin_layout Plain Layout
23739 Diamond
23740 \end_layout
23741
23742 \end_inset
23743 </cell>
23744 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23745 \begin_inset Text
23746
23747 \begin_layout Plain Layout
23748 菱形(シンボル的に
23749 \begin_inset Quotes eld
23750 \end_inset
23751
23752 diamond
23753 \begin_inset Quotes erd
23754 \end_inset
23755
23756 と表記)
23757 \end_layout
23758
23759 \end_inset
23760 </cell>
23761 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23762 \begin_inset Text
23763
23764 \begin_layout Plain Layout
23765 -
23766 \end_layout
23767
23768 \end_inset
23769 </cell>
23770 </row>
23771 <row>
23772 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23773 \begin_inset Text
23774
23775 \begin_layout Plain Layout
23776 Heart
23777 \end_layout
23778
23779 \end_inset
23780 </cell>
23781 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23782 \begin_inset Text
23783
23784 \begin_layout Plain Layout
23785 ハート型
23786 \end_layout
23787
23788 \end_inset
23789 </cell>
23790 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23791 \begin_inset Text
23792
23793 \begin_layout Plain Layout
23794 -
23795 \end_layout
23796
23797 \end_inset
23798 </cell>
23799 </row>
23800 <row>
23801 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23802 \begin_inset Text
23803
23804 \begin_layout Plain Layout
23805 Hexagon
23806 \end_layout
23807
23808 \end_inset
23809 </cell>
23810 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23811 \begin_inset Text
23812
23813 \begin_layout Plain Layout
23814 六角形
23815 \end_layout
23816
23817 \end_inset
23818 </cell>
23819 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23820 \begin_inset Text
23821
23822 \begin_layout Plain Layout
23823 -
23824 \end_layout
23825
23826 \end_inset
23827 </cell>
23828 </row>
23829 <row>
23830 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23831 \begin_inset Text
23832
23833 \begin_layout Plain Layout
23834 Nut
23835 \end_layout
23836
23837 \end_inset
23838 </cell>
23839 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23840 \begin_inset Text
23841
23842 \begin_layout Plain Layout
23843 ナット型(丸い穴の開いた六角形)
23844 \end_layout
23845
23846 \end_inset
23847 </cell>
23848 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23849 \begin_inset Text
23850
23851 \begin_layout Plain Layout
23852 -
23853 \end_layout
23854
23855 \end_inset
23856 </cell>
23857 </row>
23858 <row>
23859 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23860 \begin_inset Text
23861
23862 \begin_layout Plain Layout
23863 Square
23864 \end_layout
23865
23866 \end_inset
23867 </cell>
23868 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23869 \begin_inset Text
23870
23871 \begin_layout Plain Layout
23872 正方形
23873 \end_layout
23874
23875 \end_inset
23876 </cell>
23877 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23878 \begin_inset Text
23879
23880 \begin_layout Plain Layout
23881 -
23882 \end_layout
23883
23884 \end_inset
23885 </cell>
23886 </row>
23887 <row>
23888 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23889 \begin_inset Text
23890
23891 \begin_layout Plain Layout
23892 Star
23893 \end_layout
23894
23895 \end_inset
23896 </cell>
23897 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23898 \begin_inset Text
23899
23900 \begin_layout Plain Layout
23901 五芒星
23902 \end_layout
23903
23904 \end_inset
23905 </cell>
23906 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
23907 \begin_inset Text
23908
23909 \begin_layout Plain Layout
23910 -
23911 \end_layout
23912
23913 \end_inset
23914 </cell>
23915 </row>
23916 <row>
23917 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23918 \begin_inset Text
23919
23920 \begin_layout Plain Layout
23921 Candle
23922 \end_layout
23923
23924 \end_inset
23925 </cell>
23926 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23927 \begin_inset Text
23928
23929 \begin_layout Plain Layout
23930 燃えるろうそく
23931 \end_layout
23932
23933 \end_inset
23934 </cell>
23935 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23936 \begin_inset Text
23937
23938 \begin_layout Plain Layout
23939 -
23940 \end_layout
23941
23942 \end_inset
23943 </cell>
23944 </row>
23945 <row>
23946 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23947 \begin_inset Text
23948
23949 \begin_layout Plain Layout
23950 Drop down/up
23951 \end_layout
23952
23953 \end_inset
23954 </cell>
23955 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23956 \begin_inset Text
23957
23958 \begin_layout Plain Layout
23959 雫型/逆雫型
23960 \end_layout
23961
23962 \end_inset
23963 </cell>
23964 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23965 \begin_inset Text
23966
23967 \begin_layout Plain Layout
23968 脆弱。計算に失敗することも。
23969 \end_layout
23970
23971 \end_inset
23972 </cell>
23973 </row>
23974 <row>
23975 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23976 \begin_inset Text
23977
23978 \begin_layout Plain Layout
23979 \SpecialChar TeX
23980
23981 \end_layout
23982
23983 \end_inset
23984 </cell>
23985 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23986 \begin_inset Text
23987
23988 \begin_layout Plain Layout
23989 \SpecialChar TeX
23990 ロゴ
23991 \end_layout
23992
23993 \end_inset
23994 </cell>
23995 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23996 \begin_inset Text
23997
23998 \begin_layout Plain Layout
23999 -
24000 \end_layout
24001
24002 \end_inset
24003 </cell>
24004 </row>
24005 <row>
24006 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
24007 \begin_inset Text
24008
24009 \begin_layout Plain Layout
24010 Triangle up/down/
24011 \begin_inset Newline newline
24012 \end_inset
24013
24014 left/right
24015 \end_layout
24016
24017 \end_inset
24018 </cell>
24019 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
24020 \begin_inset Text
24021
24022 \begin_layout Plain Layout
24023 各方向の三角形
24024 \end_layout
24025
24026 \end_inset
24027 </cell>
24028 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
24029 \begin_inset Text
24030
24031 \begin_layout Plain Layout
24032 -
24033 \end_layout
24034
24035 \end_inset
24036 </cell>
24037 </row>
24038 </lyxtabular>
24039
24040 \end_inset
24041
24042
24043 \end_layout
24044
24045 \begin_layout Standard
24046 段落に形を適用するには、\SpecialChar LyX
24047 ツールバー中の環境プルダウンボックスから形を選んでください。
24048 \end_layout
24049
24050 \begin_layout Standard
24051 \begin_inset Newpage newpage
24052 \end_inset
24053
24054
24055 \end_layout
24056
24057 \begin_layout Standard
24058 以下は、ナット型の段落の例です。
24059 \end_layout
24060
24061 \begin_layout Standard
24062 \begin_inset VSpace bigskip
24063 \end_inset
24064
24065
24066 \end_layout
24067
24068 \begin_layout Nut
24069
24070 \lang latin
24071 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
24072  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
24073  voluptua.
24074  At vero eos et accusam et justo duo dolores et ea rebum.
24075  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
24076  sit amet.
24077  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
24078  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
24079  voluptua.
24080 \end_layout
24081
24082 \begin_layout Standard
24083 \begin_inset VSpace bigskip
24084 \end_inset
24085
24086
24087 \end_layout
24088
24089 \begin_layout Standard
24090 \begin_inset Note Greyedout
24091 status open
24092
24093 \begin_layout Plain Layout
24094
24095 \series bold
24096 【註】
24097 \series default
24098 shapepar段落は改頁にまたがることはできません。
24099 \end_layout
24100
24101 \end_inset
24102
24103
24104 \end_layout
24105
24106 \begin_layout Standard
24107 \begin_inset VSpace bigskip
24108 \end_inset
24109
24110
24111 \end_layout
24112
24113 \begin_layout Standard
24114
24115 \series bold
24116 shapepar
24117 \series default
24118 は、段落中にどれだけ文章が含まれようとも、常に形を維持しようとします。したがって、段落の大きさは、含まれている文章量によって変化しますので、段落の大きさがページ
24119 余白にはみ出してしまうことがあります。寸法が伸縮することを示すために、文章量を二倍にした例を見てみましょう。
24120 \end_layout
24121
24122 \begin_layout Standard
24123 \begin_inset Newpage newpage
24124 \end_inset
24125
24126
24127 \end_layout
24128
24129 \begin_layout Nut
24130
24131 \lang latin
24132 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
24133  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
24134  voluptua.
24135  At vero eos et accusam et justo duo dolores et ea rebum.
24136  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
24137  sit amet.
24138  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
24139  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
24140  voluptua.
24141  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
24142  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
24143  voluptua.
24144  At vero eos et accusam et justo duo dolores et ea rebum.
24145  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
24146  sit amet.
24147  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
24148  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
24149  voluptua.
24150 \end_layout
24151
24152 \begin_layout Standard
24153 \begin_inset VSpace bigskip
24154 \end_inset
24155
24156
24157 \end_layout
24158
24159 \begin_layout Standard
24160 ただし、
24161 \family sans
24162 CDlabel
24163 \family default
24164 形は例外です。これは、CD/DVDの寸法に収まらなくてはならないので、伸縮しません。したがって、形に収まる文章量は限られています。
24165 \begin_inset Newline newline
24166 \end_inset
24167
24168
24169 \family sans
24170 drop
24171 \family default
24172 形と
24173 \family sans
24174 circle
24175 \family default
24176 形は脆弱で、文章量によっては寸法計算が失敗する可能性があります。この場合、
24177 \begin_inset Quotes eld
24178 \end_inset
24179
24180 Arithmetic overflow
24181 \begin_inset Quotes erd
24182 \end_inset
24183
24184 という\SpecialChar LaTeX
24185 エラーが発生します。この時は、文章の一部を追加したり削除したりするか、どれもうまくいかなければ別の形を使用してください。
24186 \end_layout
24187
24188 \begin_layout Standard
24189 \begin_inset VSpace bigskip
24190 \end_inset
24191
24192
24193 \end_layout
24194
24195 \begin_layout Standard
24196 先端のある形では、先端部の文字列で、\SpecialChar LaTeX
24197 のハイフネーションルーチンが失敗することがあります。したがって、この部分の文章には、ハイフネーション位置
24198 \family sans
24199 (
24200 \begin_inset Info
24201 type  "shortcut"
24202 arg   "specialchar-insert hyphenation"
24203 \end_inset
24204
24205
24206 \family default
24207 )を指定することが往々にして必要になります。
24208 \end_layout
24209
24210 \begin_layout Standard
24211 \begin_inset VSpace bigskip
24212 \end_inset
24213
24214
24215 \end_layout
24216
24217 \begin_layout Standard
24218 Shapepar段落は、常に中央揃えか、左の縁が左ページ余白に接するように配置されます。したがって、これらの段落を揃えるのに段落ダイアログを使用することはできま
24219 せん。解決方法としては、段落をミニページかparboxの中において、このボックスを揃えることです。ここでの問題は、ボックスの正しい幅を見出すことです。もしボック
24220 スの幅が広すぎれば、ボックスを中央揃えにしたとしても、ボックスの左側が付いてしまうので中央揃えになりません。そこで、正しい幅を見出すまでは、若干試行錯誤しなくて
24221 はならないかもしれません。以下は、二つのハート形の段落です。一つ目は揃え指定がなく、二つ目は右揃えにしてあります。
24222 \end_layout
24223
24224 \begin_layout Standard
24225 \begin_inset Newpage newpage
24226 \end_inset
24227
24228
24229 \end_layout
24230
24231 \begin_layout Heart
24232 \noindent
24233
24234 \lang latin
24235 Lo\SpecialChar softhyphen
24236 rem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
24237  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
24238  voluptua.
24239  At vero eos et accusam et justo duo dolores et ea rebum.
24240  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
24241  sit amet.
24242 \end_layout
24243
24244 \begin_layout Standard
24245 \begin_inset VSpace bigskip
24246 \end_inset
24247
24248
24249 \end_layout
24250
24251 \begin_layout Standard
24252 \noindent
24253 \align right
24254 \begin_inset Box Frameless
24255 position "t"
24256 hor_pos "c"
24257 has_inner_box 1
24258 inner_pos "t"
24259 use_parbox 1
24260 use_makebox 0
24261 width "42col%"
24262 special "none"
24263 height "1in"
24264 height_special "totalheight"
24265 thickness "0.4pt"
24266 separation "3pt"
24267 shadowsize "4pt"
24268 framecolor "black"
24269 backgroundcolor "none"
24270 status open
24271
24272 \begin_layout Heart
24273 \noindent
24274
24275 \lang latin
24276 Lo\SpecialChar softhyphen
24277 rem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
24278  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
24279  voluptua.
24280  At vero eos et accusam et justo duo dolores et ea rebum.
24281  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
24282  sit amet.
24283 \end_layout
24284
24285 \end_inset
24286
24287
24288 \end_layout
24289
24290 \begin_layout Subsection
24291 任意の形
24292 \end_layout
24293
24294 \begin_layout Standard
24295 ユーザーは、どのような形であれ、定義することができます。これを手動で行うのは、全ての座標を指定しなくてはならないので、かなりの労力を必要とします。しかし、以下の
24296 ように、コンピューターに座標を計算させる方法もあります。
24297 \end_layout
24298
24299 \begin_layout Enumerate
24300 プログラム
24301 \begin_inset CommandInset href
24302 LatexCommand href
24303 name "Jpgfdraw"
24304 target "http://www.ctan.org/tex-archive/graphics/jpgfdraw"
24305
24306 \end_inset
24307
24308 を導入します。
24309 \end_layout
24310
24311 \begin_layout Enumerate
24312
24313 \family sans
24314 Jpgfdraw
24315 \family default
24316 内で、メニュー
24317 \family sans
24318 Te
24319 \begin_inset ERT
24320 status collapsed
24321
24322 \begin_layout Plain Layout
24323
24324 {}
24325 \end_layout
24326
24327 \end_inset
24328
24329 X/LaT
24330 \begin_inset ERT
24331 status collapsed
24332
24333 \begin_layout Plain Layout
24334
24335 {}
24336 \end_layout
24337
24338 \end_inset
24339
24340 eX\SpecialChar menuseparator
24341 Settings\SpecialChar menuseparator
24342 Set Normal Size
24343 \family default
24344 で文書中で使用しているフォント寸を選択します。例えば、この文書は12
24345 \begin_inset space \thinspace{}
24346 \end_inset
24347
24348 pt寸を使用しています。
24349 \end_layout
24350
24351 \begin_layout Enumerate
24352 形を描きます。
24353 \end_layout
24354
24355 \begin_layout Enumerate
24356 メニュー
24357 \family sans
24358 Te
24359 \begin_inset ERT
24360 status collapsed
24361
24362 \begin_layout Plain Layout
24363
24364 {}
24365 \end_layout
24366
24367 \end_inset
24368
24369 X/LaT
24370 \begin_inset ERT
24371 status collapsed
24372
24373 \begin_layout Plain Layout
24374
24375 {}
24376 \end_layout
24377
24378 \end_inset
24379
24380 eX\SpecialChar menuseparator
24381 Shapepar
24382 \family default
24383 を使用して、形の座標をエクスポートします。現れるダイアログで、形の外枠を座標に使うか、パス自体を使うかを指定します。
24384 \begin_inset Foot
24385 status collapsed
24386
24387 \begin_layout Plain Layout
24388 詳細については、
24389 \begin_inset CommandInset href
24390 LatexCommand href
24391 target "http://www.dickimaw-books.com/apps/jpgfdraw/manual/shapepar.html"
24392
24393 \end_inset
24394
24395 を参照してください。
24396 \end_layout
24397
24398 \end_inset
24399
24400
24401 \end_layout
24402
24403 \begin_layout Standard
24404 座標は\SpecialChar TeX
24405 ファイルに書き込まれます。これを\SpecialChar LyX
24406 文書で使用するには、
24407 \end_layout
24408
24409 \begin_layout Enumerate
24410 段落の最初の文字の前(もしくは空の段落内)にカーソルを置きます。
24411 \end_layout
24412
24413 \begin_layout Enumerate
24414 \SpecialChar LyX
24415
24416 \family sans
24417 挿入\SpecialChar menuseparator
24418 ファイル\SpecialChar menuseparator
24419 子文書
24420 \family default
24421 メニューでファイルを選択し、
24422 \family sans
24423 取り込みの型
24424 \family default
24425 として
24426 \family sans
24427 Input
24428 \family default
24429 を選択してください。
24430 \end_layout
24431
24432 \begin_layout Standard
24433 \begin_inset VSpace defskip
24434 \end_inset
24435
24436
24437 \end_layout
24438
24439 \begin_layout Standard
24440 \begin_inset Note Greyedout
24441 status open
24442
24443 \begin_layout Plain Layout
24444
24445 \series bold
24446 【註】
24447 \series default
24448 変更した形は、現在の段落にのみ適用されます。次の段落では全て通常に戻ります。したがって、段落定義ファイルは、形を変えたい段落全てで読み込まれなくてはなりません。
24449 \end_layout
24450
24451 \end_inset
24452
24453
24454 \end_layout
24455
24456 \begin_layout Standard
24457 \begin_inset VSpace bigskip
24458 \end_inset
24459
24460
24461 \end_layout
24462
24463 \begin_layout Standard
24464 以下の用例をご覧ください。
24465 \end_layout
24466
24467 \begin_layout Standard
24468 \begin_inset VSpace bigskip
24469 \end_inset
24470
24471
24472 \end_layout
24473
24474 \begin_layout Standard
24475 \begin_inset CommandInset include
24476 LatexCommand input
24477 filename "../SpecialParagraphShape.tex"
24478
24479 \end_inset
24480
24481
24482 \lang latin
24483 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
24484  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
24485  voluptua.
24486  At vero eos et accusam et justo duo dolores et ea rebum.
24487  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
24488  sit amet.
24489  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
24490  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
24491  voluptua.
24492 \end_layout
24493
24494 \begin_layout Standard
24495 \begin_inset VSpace bigskip
24496 \end_inset
24497
24498
24499 \end_layout
24500
24501 \begin_layout Standard
24502
24503 \series bold
24504 【ヒント】
24505 \family sans
24506 \series default
24507 Jpgfdraw
24508 \family default
24509 で複雑な形を描く場合、まず形を好きなプログラムで描き、出来上がった画像を
24510 \family sans
24511 Jpgfdraw
24512 \family default
24513 に読み込む方法があります。この場合、画像の外枠に沿って、直線またはスプラインを描くだけですみます。
24514 \end_layout
24515
24516 \begin_layout Standard
24517 \begin_inset VSpace bigskip
24518 \end_inset
24519
24520
24521 \end_layout
24522
24523 \begin_layout Standard
24524
24525 \family sans
24526 任意の段落形
24527 \family default
24528 モジュールは、
24529 \family sans
24530 shapepar
24531 \family default
24532
24533 \family sans
24534 Shapepar
24535 \family default
24536 の二つのコマンドも提供していて、任意の形を座標毎に定義するのに使用することができます。
24537 \begin_inset Foot
24538 status collapsed
24539
24540 \begin_layout Plain Layout
24541 これらのコマンドは、上述の全ての形で内部的に使用されています。
24542 \end_layout
24543
24544 \end_inset
24545
24546 これらのスタイルがどのように使われていて、どのような設定ができるのかについての詳しい情報は、
24547 \series bold
24548 shapepar
24549 \series default
24550 パッケージの取扱説明書
24551 \begin_inset CommandInset citation
24552 LatexCommand cite
24553 key "shapepar"
24554
24555 \end_inset
24556
24557 をご覧ください。
24558 \end_layout
24559
24560 \begin_layout Bibliography
24561 \begin_inset CommandInset bibitem
24562 LatexCommand bibitem
24563 key "multicol"
24564
24565 \end_inset
24566
24567 \SpecialChar LaTeX
24568 パッケージ
24569 \begin_inset CommandInset href
24570 LatexCommand href
24571 name "multicol"
24572 target "http://mirror.ctan.org/macros/latex/required/tools/multicol.pdf"
24573
24574 \end_inset
24575
24576 の取扱説明書
24577 \end_layout
24578
24579 \begin_layout Bibliography
24580 \begin_inset CommandInset bibitem
24581 LatexCommand bibitem
24582 key "shapepar"
24583
24584 \end_inset
24585
24586 \SpecialChar LaTeX
24587 パッケージ
24588 \begin_inset CommandInset href
24589 LatexCommand href
24590 name "shapepar"
24591 target "http://mirrors.ctan.org/macros/latex/contrib/shapepar/shapepar.pdf"
24592
24593 \end_inset
24594
24595 の取扱説明書
24596 \end_layout
24597
24598 \end_body
24599 \end_document