]> git.lyx.org Git - lyx.git/blob - lib/doc/ja/Additional.lyx
New LFUN tabular-feature: update docs
[lyx.git] / lib / doc / ja / Additional.lyx
1 #LyX 2.2 created this file. For more info see http://www.lyx.org/
2 \lyxformat 506
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 整形\SpecialChar menuseparator
8849 水平方向の空白
8850 \family default
8851 を選択して
8852 \family sans
8853 水平方向の空白の設定
8854 \family default
8855 ダイアログを開き、
8856 \family sans
8857 空白
8858 \family default
8859 ドロップダウンから
8860 \family sans
8861 水平フィル
8862 \family default
8863 を選択して、水平フィルを挿入します。
8864 \end_layout
8865
8866 \begin_layout Enumerate
8867
8868 \family sans
8869 挿入\SpecialChar menuseparator
8870 TeXコード
8871 \family default
8872 を選択して、\SpecialChar TeX
8873 差込枠を挿入します。
8874 \end_layout
8875
8876 \begin_layout Enumerate
8877 \SpecialChar TeX
8878 差込枠中に
8879 \family typewriter
8880
8881 \backslash
8882 parbox[b]{55mm}{
8883 \family default
8884 と入力します。
8885 \series bold
8886 ここでは波括弧を閉じないでください。
8887 \end_layout
8888
8889 \begin_layout Enumerate
8890 カーソルをキャプション文の後ろに移動し、
8891 \family sans
8892 挿入\SpecialChar menuseparator
8893 TeXコード
8894 \family default
8895 を選択して、別の\SpecialChar TeX
8896 差込枠を挿入し、その中に閉じ括弧を入力します 。
8897 \end_layout
8898
8899 \begin_layout Standard
8900 例示用論文中の図もご参照ください。
8901 \end_layout
8902
8903 \begin_layout Subsection
8904 Refereeレイアウト
8905 \end_layout
8906
8907 \begin_layout Standard
8908 投稿用には、論文を特別なダブルスペースレイアウトに整形しなくてはなりません。このためには、文書クラスに
8909 \family typewriter
8910 referee
8911 \family default
8912 オプションを与える必要があります。これは、
8913 \family sans
8914 文書\SpecialChar menuseparator
8915 設定
8916 \family default
8917 ダイアログの
8918 \family sans
8919 任意設定
8920 \family default
8921 クラスオプションフィールドを使って行うことができます。この欄に
8922 \family typewriter
8923 referee
8924 \family default
8925 と云う文字列を入力してください。
8926 \end_layout
8927
8928 \begin_layout Subsection
8929 例示用論文
8930 \end_layout
8931
8932 \begin_layout Standard
8933
8934 \family sans
8935 Examples
8936 \family default
8937 ディレクトリには、\SpecialChar LyX
8938 で書かれた例示用論文が収録されています。これは、元のマクロパッケージの例示用論文を\SpecialChar LyX
8939 用に直したものです。これはヒントを得るために使用したり、元の
8940  \SpecialChar LaTeX
8941 コードと\SpecialChar LyX
8942 での書き方の比較に使ったりしてください。
8943 \end_layout
8944
8945 \begin_layout Section
8946 AAS\SpecialChar TeX
8947
8948 \end_layout
8949
8950 \begin_layout Standard
8951
8952 \noun on
8953 Mike Ressler
8954 \noun default
8955
8956 \end_layout
8957
8958 \begin_layout Subsection
8959 はじめに
8960 \end_layout
8961
8962 \begin_layout Standard
8963 AAS\SpecialChar TeX
8964 は、American Astronomical Society(アメリカ天文学会)が発行するAstrophysical Journal(宇宙物理学雑誌)同
8965 誌のLettersとSupplementを含む)・Astronomical Journal(天文学雑誌)・Publications of the
8966  Astronomical Society of the Pacific(太平洋天文学会誌)三誌への電子投稿を可能にするために、同学会が作成したマクロ集です。\SpecialChar LyX
8967
8968 、これらの文書を生成する上で、なかでも数式・引用・画像処理能力において、優れたツールであることが認識されています。\SpecialChar LyX
8969 は、同マクロ第5.0版以降を必要としており、でき
8970 ればここで説明されている第5.2版以降が望まれます。第5.0版未満の版は、\SpecialChar LaTeX
8971 2.09で使用するよう企図されているため、根本的に\SpecialChar LyX
8972 とは互換性がありません。AAS\SpecialChar TeX
8973 パッケージは
8974 、以下のAAS\SpecialChar TeX
8975 ウェブサイトからダウンロードできるでしょう。
8976 \begin_inset Separator parbreak
8977 \end_inset
8978
8979
8980 \end_layout
8981
8982 \begin_layout Standard
8983 \align center
8984 \begin_inset VSpace medskip
8985 \end_inset
8986
8987
8988 \begin_inset Flex URL
8989 status collapsed
8990
8991 \begin_layout Plain Layout
8992
8993 https://aas.org/aastex/aastex-downloads
8994 \end_layout
8995
8996 \end_inset
8997
8998
8999 \begin_inset VSpace medskip
9000 \end_inset
9001
9002
9003 \end_layout
9004
9005 \begin_layout Standard
9006 パッケージ中には、完備したユーザーの手引きが収録されていますので、\SpecialChar LyX
9007 で論文を書き始める前に、その中身を完全に理解しておく必要があります。\SpecialChar LyX
9008 は、AASTeXの全コマン
9009 ドを理解する必然性をなくすものではなく、すべてを手入力する苦労を減らすだけです。仕上がりの\SpecialChar LaTeX
9010 文書が、論文を投稿しようとしているジャーナルの要求事項に完全に合致して
9011 いることを確認するのは、あなたの責任です。
9012 \end_layout
9013
9014 \begin_layout Subsection
9015 新しい論文を書き始める
9016 \end_layout
9017
9018 \begin_layout Standard
9019 論文を書き始めるには、AAS\SpecialChar TeX
9020 ひな型ファイルを土台に始めることを強くお勧めします。
9021 \begin_inset Flex MenuItem
9022 status collapsed
9023
9024 \begin_layout Plain Layout
9025 ファイル\SpecialChar menuseparator
9026 新規(ひな型使用)
9027 \end_layout
9028
9029 \end_inset
9030
9031 をクリックして、新しいファイル名を入力し、ひな型
9032 \family typewriter
9033 aastex.lyx
9034 \family default
9035 を選んでください。これには、論文原稿のほとんどに共通して使われるフィールドが書き込まれています。書き込まれている文字列(括弧
9036 \family typewriter
9037 <>
9038 \family default
9039 を含む)を正しい情報で上書きしてください。AAS\SpecialChar TeX
9040 コマンド・AAS\SpecialChar TeX
9041 環境の多くは、\SpecialChar LyX
9042 中で直接実行することができますが、特に
9043 \family typewriter
9044
9045 \backslash
9046 altaffilmark
9047 \family default
9048
9049 \family typewriter
9050
9051 \backslash
9052 altaffiltext
9053 \family default
9054 のようにできないものもあります。この二つのコマンドは、ひな型ファイルを開いたとき、赤色に表示されているのですぐ目に入ることでしょう。このようなコマンドは、直接L
9055 a\SpecialChar TeX
9056 コードを入力して、それを\SpecialChar TeX
9057 コードとしてマークしなければなりません。このようなコマンドは、\SpecialChar TeX
9058 コードあるいはEvil Red Text(邪悪な赤い文)と呼ばれます。A
9059 AS\SpecialChar TeX
9060 文書に必要とされる \SpecialChar TeX
9061 コードを最小にするよう努力はしていますが、まだ望まれるほどにはなっていません。
9062 \end_layout
9063
9064 \begin_layout Subsection
9065 論文を書き終わったら
9066 \end_layout
9067
9068 \begin_layout Standard
9069 論文を満足する水準で書き終え、プレビューや印刷が正しく為されているとしても、まだ学術誌に投稿する前にしなくてはならない「後処理」が残されています。
9070 \end_layout
9071
9072 \begin_layout Enumerate
9073 論文を \SpecialChar LaTeX
9074 ファイルとして書き出します(
9075 \family sans
9076 ファイル\SpecialChar menuseparator
9077 書き出し\SpecialChar menuseparator
9078 LateX
9079 \family default
9080 )。
9081 \end_layout
9082
9083 \begin_layout Enumerate
9084 出力した
9085 \family typewriter
9086 .tex
9087 \family default
9088 ファイルを好きなエディタで編集します。
9089 \begin_inset Separator parbreak
9090 \end_inset
9091
9092
9093 \end_layout
9094
9095 \begin_deeper
9096 \begin_layout Enumerate
9097
9098 \family typewriter
9099
9100 \backslash
9101 documentclass
9102 \family default
9103 コマンドよりも前のコメント行を削除します。
9104 \end_layout
9105
9106 \begin_layout Enumerate
9107
9108 \family typewriter
9109
9110 \backslash
9111 usepackage...{fontenc}
9112 \family default
9113 という行があれば(通常は
9114 \family typewriter
9115
9116 \backslash
9117 documentclass
9118 \family default
9119 の直後にあります)削除します。また、
9120 \family typewriter
9121
9122 \backslash
9123 secnumdepth
9124 \family default
9125 行があれば、これも削除します。
9126 \end_layout
9127
9128 \begin_layout Enumerate
9129 \SpecialChar LaTeX
9130 プリアンブル中に意図的に置いたコマンド(
9131 \family typewriter
9132 .tex
9133 \family default
9134 ファイル中、「User specified \SpecialChar LaTeX
9135  commands」というコメントの直後にあります)を除いて、
9136 \family typewriter
9137
9138 \backslash
9139 makeatletter
9140 \family default
9141
9142 \family typewriter
9143
9144 \backslash
9145 makeatother
9146 \family default
9147 の間のもの(これらのコマンドを含む)をすべて削除します。
9148 \end_layout
9149
9150 \end_deeper
9151 \begin_layout Enumerate
9152 編集後のファイルを \SpecialChar LaTeX
9153 にかけて、正しく処理されることを確認します。
9154 \end_layout
9155
9156 \begin_layout Enumerate
9157 学術誌の要求事項を再読して、ファイル名と書式が正しいことを確認します。
9158 \end_layout
9159
9160 \begin_layout Enumerate
9161 投稿してください。
9162 \end_layout
9163
9164 \begin_layout Subsection
9165 特定のコマンドに関するコメント
9166 \end_layout
9167
9168 \begin_layout Standard
9169 AAS\SpecialChar TeX
9170 ユーザーの手引き(
9171 \family typewriter
9172 aasguide.tex
9173 \family default
9174 )に、各AAS\SpecialChar TeX
9175 コマンドの詳しい説明があるので、ここでは、各コマンドの使用法の詳細な説明は行いません。そこで、ここではユーザーの手引きに現れるとおりに一覧を列挙し
9176 て、必要なところだけコメントを加えることにしましょう。
9177 \end_layout
9178
9179 \begin_layout Subsubsection
9180 期待通りに動作するもの
9181 \end_layout
9182
9183 \begin_layout Standard
9184 これらは期待通りに動作するので、ここでは列挙するだけにして、コマンドの説明されている節を挙げておきます。
9185 \family typewriter
9186
9187 \backslash
9188 documentclass
9189 \family default
9190  (2.1.1)・
9191 \family typewriter
9192
9193 \backslash
9194 begin{document}
9195 \family default
9196  (2.2)・
9197 \family typewriter
9198
9199 \backslash
9200 title
9201 \family default
9202  (2.3)・
9203 \family typewriter
9204
9205 \backslash
9206 author
9207 \family default
9208  (2.3)・
9209 \family typewriter
9210
9211 \backslash
9212 affil
9213 \family default
9214  (2.3)・
9215 \family typewriter
9216
9217 \backslash
9218 abstract
9219 \family default
9220  (2.4)・
9221 \family typewriter
9222
9223 \backslash
9224 keywords
9225 \family default
9226  (2.5)・
9227 \family typewriter
9228
9229 \backslash
9230 section
9231 \family default
9232  (2.7)・
9233 \family typewriter
9234
9235 \backslash
9236 subsection
9237 \family default
9238  (2.7)・
9239 \family typewriter
9240
9241 \backslash
9242 subsubsection
9243 \family default
9244  (2.7)・
9245 \family typewriter
9246
9247 \backslash
9248 paragraph
9249 \family default
9250  (2.7)・
9251 \family typewriter
9252
9253 \backslash
9254 facility
9255 \family default
9256  (2.10)・
9257 \family typewriter
9258
9259 \backslash
9260 begin{displaymath}
9261 \family default
9262  (2.12)・
9263 \family typewriter
9264
9265 \backslash
9266 begin{equation}
9267 \family default
9268  (2.12)・
9269 \family typewriter
9270
9271 \backslash
9272 begin{eqnarray}
9273 \family default
9274  (2.12)・
9275 \family typewriter
9276
9277 \backslash
9278 begin{mathletters}
9279 \family default
9280  (2.12)・
9281 \family typewriter
9282
9283 \backslash
9284 begin{thebibliography}
9285 \family default
9286  (2.13.1)・
9287 \family typewriter
9288
9289 \backslash
9290 bibitem
9291 \family default
9292  (2.13.2)・全引用コマンドとその派生(2.13.2)・一般的なgraphicx図コマンド(2.14.1)・
9293 \family typewriter
9294
9295 \backslash
9296 begin{table}
9297 \family default
9298  (2.15.4)・
9299 \family typewriter
9300
9301 \backslash
9302 begin{tabular}
9303 \family default
9304  (2.15.4)・
9305 \family typewriter
9306
9307 \backslash
9308 caption
9309 \family default
9310  (2.15.4)・
9311 \family typewriter
9312
9313 \backslash
9314 label
9315 \family default
9316  (他にもあるが特に2.15.4)・
9317 \family typewriter
9318
9319 \backslash
9320 tablerefs
9321 \family default
9322  (2.15.5)・
9323 \family typewriter
9324
9325 \backslash
9326 tablecomments
9327 \family default
9328  (2.15.5)・
9329 \family typewriter
9330
9331 \backslash
9332 url
9333 \family default
9334  (2.17.4)・
9335 \family typewriter
9336
9337 \backslash
9338 end{document}
9339 \family default
9340  (2.18)。
9341 \end_layout
9342
9343 \begin_layout Standard
9344 以下のスタイルオプションも正しく動作します。
9345 \family typewriter
9346 longabstract
9347 \family default
9348  (2.4)・
9349 \family typewriter
9350 preprint
9351 \family default
9352  (3.2.1)・
9353 \family typewriter
9354 preprint2
9355 \family default
9356  (3.2.2)・
9357 \family typewriter
9358 eqsecnum
9359 \family default
9360  (3.3)・
9361 \family typewriter
9362 flushrt
9363 \family default
9364  (3.4)。これらは、
9365 \begin_inset Flex MenuItem
9366 status collapsed
9367
9368 \begin_layout Plain Layout
9369 文書\SpecialChar menuseparator
9370 設定
9371 \end_layout
9372
9373 \end_inset
9374
9375 にある、
9376 \family sans
9377 クラスオプション
9378 \family default
9379
9380 \family sans
9381 任意設定
9382 \family default
9383 ボックスに入力してください。
9384 \end_layout
9385
9386 \begin_layout Subsubsection
9387 動作するが、若干説明が必要なもの
9388 \end_layout
9389
9390 \begin_layout Standard
9391 以下のコマンドは動作しますが、若干の説明が必要です。
9392 \end_layout
9393
9394 \begin_layout Itemize
9395 以下の項目は、学術誌の編集者向けに取ってあるものですが、どうしても必要ならば、\SpecialChar LaTeX
9396 プリアンブルに入れることができます。
9397 \family typewriter
9398
9399 \backslash
9400 received
9401 \family default
9402
9403 \family typewriter
9404
9405 \backslash
9406 revised
9407 \family default
9408
9409 \family typewriter
9410
9411 \backslash
9412 accepted
9413 \family default
9414
9415 \family typewriter
9416
9417 \backslash
9418 ccc
9419 \family default
9420
9421 \family typewriter
9422 cpright
9423 \family default
9424 (すべて 2.1.3)。
9425 \end_layout
9426
9427 \begin_layout Itemize
9428 以下の項目は、\SpecialChar LaTeX
9429 のプリアンブルに置くことができるもので、これらは、ひな型ファイルには、空の引数と共に含まれています。
9430 \family typewriter
9431
9432 \backslash
9433 slugcomment
9434 \family default
9435 (2.1.4)・
9436 \family typewriter
9437
9438 \backslash
9439 shorttitle
9440 \family default
9441 (2.1.5)・
9442 \family typewriter
9443
9444 \backslash
9445 shortauthors
9446 \family default
9447 (2.1.5)。
9448 \end_layout
9449
9450 \begin_layout Itemize
9451
9452 \family typewriter
9453
9454 \backslash
9455 email
9456 \family default
9457 (2.3)―「単独で」使うことはできますが、段落の途中で使うことはできません。埋め込む必要がある場合には、\SpecialChar TeX
9458 コードを使用してください。
9459 \end_layout
9460
9461 \begin_layout Itemize
9462
9463 \family typewriter
9464
9465 \backslash
9466 and
9467 \family default
9468 (2.3)―後ろに{}が付記されます。これはエラーの原因にはなりません。
9469 \end_layout
9470
9471 \begin_layout Itemize
9472
9473 \family typewriter
9474
9475 \backslash
9476 notetoeditor
9477 \family default
9478 (2.6)―「単独で」使うことはできますが、段落の途中で使うことはできません。埋め込む必要がある場合には、\SpecialChar TeX
9479 コードを使用してください。
9480 \end_layout
9481
9482 \begin_layout Itemize
9483
9484 \family typewriter
9485
9486 \backslash
9487 placetable
9488 \family default
9489 (2.8)―相互参照用タグを挿入することはできません。手動でタグ名を入力する必要があります。
9490 \end_layout
9491
9492 \begin_layout Itemize
9493
9494 \family typewriter
9495
9496 \backslash
9497 placefigure
9498 \family default
9499 (2.8)—
9500 \family typewriter
9501
9502 \backslash
9503 placetable
9504 \family default
9505 と同様。
9506 \end_layout
9507
9508 \begin_layout Itemize
9509
9510 \family typewriter
9511
9512 \backslash
9513 acknowledgements
9514 \family default
9515 (2.9)―後ろに{}が付記されます。これはエラーの原因にはなりません。
9516 \end_layout
9517
9518 \begin_layout Itemize
9519
9520 \family typewriter
9521
9522 \backslash
9523 appendix
9524 \family default
9525 (2.11)―後ろに{}が付記されます。これはエラーの原因にはなりません。
9526 \end_layout
9527
9528 \begin_layout Itemize
9529
9530 \family typewriter
9531
9532 \backslash
9533 figcaption
9534 \family default
9535 (2.14.2)―文章のはじめにカーソルを置いて
9536 \begin_inset Flex MenuItem
9537 status collapsed
9538
9539 \begin_layout Plain Layout
9540 挿入\SpecialChar menuseparator
9541 短縮タイトル
9542 \end_layout
9543
9544 \end_inset
9545
9546 を選択すれば、非必須のファイル名引数を挿入することができます。「短縮タイトル」とありますが、
9547 \family typewriter
9548
9549 \backslash
9550 figcaption
9551 \family default
9552 が必要とする型の非必須引数を挿入します。望むらくはいつの日か改名されることでしょう。
9553 \end_layout
9554
9555 \begin_layout Itemize
9556
9557 \family typewriter
9558
9559 \backslash
9560 objectname
9561 \family default
9562 (2.17.1)―非必須パラメータとしてカタログIDを取る以外は、
9563 \family typewriter
9564
9565 \backslash
9566 figcaption
9567 \family default
9568 と同様。
9569 \end_layout
9570
9571 \begin_layout Itemize
9572
9573 \family typewriter
9574
9575 \backslash
9576 dataset
9577 \family default
9578 (2.17.1)―非必須パラメータとしてカタログIDを取る以外は、
9579 \family typewriter
9580
9581 \backslash
9582 figcaption
9583 \family default
9584 と同様。
9585 \end_layout
9586
9587 \begin_layout Subsubsection
9588 実装されていないため、\SpecialChar TeX
9589 コードを使用するもの
9590 \end_layout
9591
9592 \begin_layout Standard
9593
9594 \family typewriter
9595
9596 \backslash
9597 altaffilmark
9598 \family default
9599 (2.3)・
9600 \family typewriter
9601
9602 \backslash
9603 altaffiltext
9604 \family default
9605 (2.3)・
9606 \family typewriter
9607
9608 \backslash
9609 eqnum
9610 \family default
9611 (2.12)・
9612 \family typewriter
9613
9614 \backslash
9615 setcounter{equation}
9616 \family default
9617 (2.12)・学術誌名略語(2.12.4)・
9618 \family typewriter
9619
9620 \backslash
9621 figurenum
9622 \family default
9623 (2.14.1)・
9624 \family typewriter
9625
9626 \backslash
9627 epsscale
9628 \family default
9629 (2.14.1)・
9630 \family typewriter
9631
9632 \backslash
9633 plotone
9634 \family default
9635 (2.14.1)・
9636 \family typewriter
9637
9638 \backslash
9639 plottwo
9640 \family default
9641 (2.14.1)・
9642 \family typewriter
9643
9644 \backslash
9645 tablenum
9646 \family default
9647 (2.15.4)・
9648 \family typewriter
9649
9650 \backslash
9651 tableline
9652 \family default
9653 (2.15.4:入れたい場所の後ろに、左側セルの最初の要素として挿入する。表中では、\SpecialChar LyX
9654 の方法は使わないでください)・
9655 \family typewriter
9656
9657 \backslash
9658 tablenotemark
9659 \family default
9660 (2.15.5)・
9661 \family typewriter
9662
9663 \backslash
9664 tablenotetext
9665 \family default
9666 (2.15.5)・補遺(2.17)の大半(
9667 \family typewriter
9668
9669 \backslash
9670 objectname
9671 \family default
9672
9673 \family typewriter
9674
9675 \backslash
9676 dataset
9677 \family default
9678
9679 \family typewriter
9680
9681 \backslash
9682 url
9683 \family default
9684
9685 \family typewriter
9686
9687 \backslash
9688 email
9689 \family default
9690 を除く。上記参照)・
9691 \family typewriter
9692
9693 \backslash
9694 singlespace
9695 \family default
9696 (3.1)・
9697 \family typewriter
9698
9699 \backslash
9700 doublespace
9701 \family default
9702 (3.1)・
9703 \family typewriter
9704
9705 \backslash
9706 onecolumn
9707 \family default
9708 (3.2)・
9709 \family typewriter
9710
9711 \backslash
9712 twocolumn
9713 \family default
9714 (3.2)
9715 \end_layout
9716
9717 \begin_layout Subsubsection
9718 実装できないもの
9719 \end_layout
9720
9721 \begin_layout Standard
9722 references(2.12.3)環境とdeluxetable(2.14)環境は、少なくとも意味のあるような形で実装することができないので、無視してください。もし、
9723 絶対に、どうしても、deluxetableを使う必要があるならば、テキストエディタで別ファイルとして編集し、
9724 \begin_inset Flex MenuItem
9725 status collapsed
9726
9727 \begin_layout Plain Layout
9728 挿入\SpecialChar menuseparator
9729 ファイル
9730 \begin_inset Formula $\text{\textipa{}}$
9731 \end_inset
9732
9733 \SpecialChar menuseparator
9734 子文書
9735 \end_layout
9736
9737 \end_inset
9738
9739 を使用して、\SpecialChar LyX
9740 ファイルに読み込むことを推奨します。この実例は、
9741 \family typewriter
9742 aas_sample.lyx
9743 \family default
9744 ファイルをご参照ください。
9745 \end_layout
9746
9747 \begin_layout Subsection
9748 FAQとヒントと技とその他の考察
9749 \end_layout
9750
9751 \begin_layout Subsubsection
9752 \SpecialChar LyX
9753 をAAS\SpecialChar TeX
9754 と協調させる
9755 \end_layout
9756
9757 \begin_layout Standard
9758 \SpecialChar LyX
9759 に、新しいレイアウトと文書クラスを認識させるには若干コツが要ります。もしうまく行かなかったら、次のようにしてみてください。
9760 \end_layout
9761
9762 \begin_layout Enumerate
9763 \SpecialChar LaTeX
9764 が、AAS\SpecialChar TeX
9765 を検出できることを確認してください。AAS\SpecialChar TeX
9766 頒布版に含まれる
9767 \family typewriter
9768 sample.tex
9769 \family default
9770 (あるいは
9771 \family typewriter
9772 table.tex
9773 \family default
9774 でも可)を、\SpecialChar LaTeX
9775 やAAS\SpecialChar TeX
9776 とまったく関係のないディレクトリにコピーして、
9777 \family typewriter
9778 sample.tex
9779 \family default
9780 を\SpecialChar LaTeX
9781 にかけてください。
9782 \end_layout
9783
9784 \begin_layout Enumerate
9785
9786 \family typewriter
9787 aastex.layout
9788 \family default
9789 が、\SpecialChar LyX
9790
9791 \family typewriter
9792 layouts
9793 \family default
9794 フォルダにあることを確認してください。
9795 \end_layout
9796
9797 \begin_layout Enumerate
9798 \SpecialChar LyX
9799 中から
9800 \family sans
9801 ツール\SpecialChar menuseparator
9802 環境構成
9803 \family default
9804 を再度実行し、\SpecialChar LyX
9805 を再起動してください。
9806 \end_layout
9807
9808 \begin_layout Enumerate
9809 ひな型ではなく、通常の新規ファイルを開いてください。AAS\SpecialChar TeX
9810 が、
9811 \family sans
9812 文書\SpecialChar menuseparator
9813 設定
9814 \family default
9815 のクラス一覧に表示されていますか?
9816 \end_layout
9817
9818 \begin_layout Standard
9819 既存のAAS\SpecialChar TeX
9820 文書を処理する際に、AAS\SpecialChar TeX
9821 レイアウトを見つけられないとか、「タイトルレイアウトと通常のレイアウトを混在させないでください」といった警告が出るようであ
9822 れば、正しい導入が行われていません。
9823 \end_layout
9824
9825 \begin_layout Subsubsection
9826 表を処理する際の\SpecialChar LaTeX
9827 エラー
9828 \end_layout
9829
9830 \begin_layout Standard
9831 既定では、\SpecialChar LyX
9832 は、表のキャプションやタイトルを中央揃えにしようと試みます。これはAAS\SpecialChar TeX
9833 と悪い相互干渉を発生させるようですので、キャプションやタイトルのどこかをクリッ
9834 クして、
9835 \family sans
9836 編集\SpecialChar menuseparator
9837 段落設定
9838 \family default
9839 を選択し、
9840 \family sans
9841 配置
9842 \family default
9843
9844 \family sans
9845 両端揃え
9846 \family default
9847 に設定してください。私のところではこれで解決しました。
9848 \end_layout
9849
9850 \begin_layout Subsubsection
9851 書誌情報
9852 \end_layout
9853
9854 \begin_layout Standard
9855 若干の注意があります。(1)文献項目の本文中の空白取りが少しおかしくなることがあるようです。書誌情報を入力する際には、最後の著者と、著作年を入れる括弧の間にスペ
9856 ースを
9857 \emph on
9858 入れない
9859 \emph default
9860 ようにしてください。たとえば、
9861 \family typewriter
9862 Ressler(1992)
9863 \family default
9864 はいいですが、
9865 \family typewriter
9866 Ressler (1992)
9867 \family default
9868 ではだめです。(2)書誌情報の入力の仕方は、必ずしも自明ではありません。もっとも簡単な方法は、文書の最後に、最初の書誌情報をまず書き込み、それを
9869 \family sans
9870 書誌情報
9871 \family default
9872 環境としてマークすることです。すると、入力したものの前に、小さな灰色のボックスが現れます。このボックスをクリックして、残りの情報を入力してください。新しい書誌情
9873 報を追加するには、既存の書誌情報の後ろでリターンを押します。すると、新しいボックスの付いた新規行が出てくるので、後は同様にしてください。
9874 \end_layout
9875
9876 \begin_layout Subsubsection
9877 EPSファイルの読み込み
9878 \end_layout
9879
9880 \begin_layout Standard
9881 AAS\SpecialChar TeX
9882 には、自前の図関連コマンド(たとえば
9883 \family typewriter
9884
9885 \backslash
9886 plotone
9887 \family default
9888 )がありますが、私は(既定のgraphicxを使った)\SpecialChar LaTeX
9889 の標準図コマンドの方がずっと好きです。望めば、図フロートボックスに、\SpecialChar TeX
9890 コードで
9891 \family typewriter
9892
9893 \backslash
9894 plotone
9895 \family default
9896 等のコマンドを挿入することはできますが、私には正しいレイアウトを得ることができた試しがありません。標準の画像コマンドを使えば、\SpecialChar LyX
9897 は、
9898 \family typewriter
9899
9900 \backslash
9901 usepackage{graphics}
9902 \family default
9903 コマンドを\SpecialChar LaTeX
9904 プリアンブルに挿入し、図を\SpecialChar LaTeX2e
9905 の標準的な方法で取り扱って、文章の中にちりばめます。現在、ApJは、ちょうどこのようにして作成した図を受け入れていますが、A
9906 Jはまだ「すべてを末尾に積み上げる」方法を使用しているかもしれません。
9907 \end_layout
9908
9909 \begin_layout Subsubsection
9910 可能だったが、実装しなかったもの
9911 \end_layout
9912
9913 \begin_layout Standard
9914 「素敵な」ものの中には、実装することも可能だったけれども、あえて実装しなかったものがあります。たとえば、紙の原稿ではダブルスペースであったとしても、\SpecialChar LyX
9915 ウィンドウ中
9916 で、文章をダブルスペースにする意味はないと考えました。また、preprint様式とpreprint2様式を、独立したレイアウトにすることもしませんでした。いずれ
9917 にしても、執筆時間のほとんどを、平の原稿モードで使うのがほとんどですから、これらの機能でディスクスペースを消費しないことにしました。
9918 \end_layout
9919
9920 \begin_layout Subsection
9921 最後に
9922 \end_layout
9923
9924 \begin_layout Standard
9925 これまでに進んできた道のりは、長い人も短い人もいることでしょう。私には、ApJとAJに発表した論文がありますが、その努力の98
9926 \begin_inset space \thinspace{}
9927 \end_inset
9928
9929 %は\SpecialChar LyX
9930 上で為されました。残りの2
9931 \begin_inset space \thinspace{}
9932 \end_inset
9933
9934 %が、\SpecialChar LaTeX
9935 での後処理と若干の後片付けです。投稿の過程では何のトラブルもなく、これらの学術誌が通常の投稿原稿と違う点に気づくことはなかったでしょう。ですから、がんばっ
9936 て発表してください!
9937 \end_layout
9938
9939 \begin_layout Section
9940 AMS \SpecialChar LaTeX
9941
9942 \end_layout
9943
9944 \begin_layout Standard
9945
9946 \noun on
9947 David Johnson
9948 \noun default
9949 文 
9950 \noun on
9951 Richard Heck
9952 \noun default
9953 改訂
9954 \begin_inset VSpace bigskip
9955 \end_inset
9956
9957
9958 \end_layout
9959
9960 \begin_layout Standard
9961 AMS \SpecialChar LaTeX
9962 レイアウトは、American Mathematical Society(アメリカ数学会)の刊行物に投稿する数学論文用のスタイルです。レイアウトは、特定
9963 の学術誌向けに仕立てられてはいませんが、簡単にそうすることができます。各学術誌毎の指示については、AMSの説明書をご参照ください(通常は、\SpecialChar TeX
9964 出力中の一行を変更する
9965 必要があるだけです)。AMSの説明書は、ウェブWeb上の
9966 \begin_inset Flex URL
9967 status open
9968
9969 \begin_layout Plain Layout
9970
9971 http://www.ams.org
9972 \end_layout
9973
9974 \end_inset
9975
9976 か、FTPで
9977 \begin_inset Flex URL
9978 status open
9979
9980 \begin_layout Plain Layout
9981
9982 ftp://ftp.ams.org/pub/tex/amslatex/
9983 \end_layout
9984
9985 \end_inset
9986
9987 から入手することができます。これらのレイアウトは、数学的な文章を書くのであれば、どんなときでも適切かつ有用であるはずです。
9988 \end_layout
9989
9990 \begin_layout Standard
9991 基本となるAMS \SpecialChar LaTeX
9992 レイアウトには、以下の二つがあります。
9993 \end_layout
9994
9995 \begin_layout Itemize
9996 amsart:標準のAMS article書式。
9997 \end_layout
9998
9999 \begin_layout Itemize
10000 amsbook:標準のAMS book(実際はモノグラフ)書式。
10001 \end_layout
10002
10003 \begin_layout Standard
10004 これらのレイアウトには、それ自身では、AMSクラスを使用するのに必要最低限のものしか含まれていません。特に、定理や補題などを設定するのに使用される「theore
10005 m」環境は、何一つ含まれていません。これらは、代わりに
10006 \begin_inset Flex Code
10007 status collapsed
10008
10009 \begin_layout Plain Layout
10010 定理(AMS)
10011 \end_layout
10012
10013 \end_inset
10014
10015 モジュールに収録されており、AMSクラスのいずれかを選択すると、このモジュールが既定で読み込まれるようになっています(これは別のクラスでも使用することができ、別
10016 のものに変えたいときは取り除くこともできます)。少し使用頻度の低いものとしては、
10017 \begin_inset Flex Code
10018 status collapsed
10019
10020 \begin_layout Plain Layout
10021 定理(AMS拡張)
10022 \end_layout
10023
10024 \end_inset
10025
10026 モジュールがあり、これは手動で読み込む必要があります。
10027 \end_layout
10028
10029 \begin_layout Standard
10030 既定では、定理類は、文書を通して連番が振られますが、これは
10031 \begin_inset Flex Code
10032 status collapsed
10033
10034 \begin_layout Plain Layout
10035 定理(節毎連番)
10036 \end_layout
10037
10038 \end_inset
10039
10040 モジュールを読み込めば変更することができ、
10041 \begin_inset Flex Code
10042 status collapsed
10043
10044 \begin_layout Plain Layout
10045 book (AMS)
10046 \end_layout
10047
10048 \end_inset
10049
10050 を使用している場合には
10051 \begin_inset Flex Code
10052 status collapsed
10053
10054 \begin_layout Plain Layout
10055 定理(章毎連番)
10056 \end_layout
10057
10058 \end_inset
10059
10060 を用いても変更することができます。これらを用いると、出力は
10061 \begin_inset Formula $n.m$
10062 \end_inset
10063
10064 のようになり、最初の数字は節番号(または章番号)、次の数字はそれまで同節内(章内)に現れた出力の全数を表します。大半の環境は、連番なしでも用いることができます。
10065 連番なしのものは、環境名の後ろにアスタリスクを付けたもので表されます。連番なしの出力
10066 \emph on
10067 のみ
10068 \emph default
10069 が欲しい場合には、
10070 \begin_inset Flex Code
10071 status collapsed
10072
10073 \begin_layout Plain Layout
10074 定理(連番なし)
10075 \end_layout
10076
10077 \end_inset
10078
10079 モジュールを用います。
10080 \end_layout
10081
10082 \begin_layout Standard
10083 これらのモジュールは、AMSクラスで使用する
10084 \emph on
10085 必要はない
10086 \emph default
10087 ことに注意してください。
10088 \begin_inset Flex Code
10089 status collapsed
10090
10091 \begin_layout Plain Layout
10092 定理(AMS)
10093 \end_layout
10094
10095 \end_inset
10096
10097 モジュールや上述の他のモジュールは、他のクラス、たとえば
10098 \begin_inset Flex Code
10099 status collapsed
10100
10101 \begin_layout Plain Layout
10102 article
10103 \end_layout
10104
10105 \end_inset
10106
10107
10108 \begin_inset Flex Code
10109 status collapsed
10110
10111 \begin_layout Plain Layout
10112 report
10113 \end_layout
10114
10115 \end_inset
10116
10117
10118 \begin_inset Flex Code
10119 status collapsed
10120
10121 \begin_layout Plain Layout
10122 book (KOMA-script)
10123 \end_layout
10124
10125 \end_inset
10126
10127 などで問題なく使用することができます。
10128 \end_layout
10129
10130 \begin_layout Subsection
10131 これらのレイアウトが提供するもの
10132 \end_layout
10133
10134 \begin_layout Standard
10135 これらのレイアウトが提供している環境を列挙すると、長い一覧となります。AMS-\SpecialChar LaTeX
10136 では、実のところ、「theorem」環境の派生型を際限なく定義していくことが可能で
10137 す。しかし、AMSは、\SpecialChar LyX
10138 で利用可能になっている環境のみを使用することを推奨しています。
10139 \end_layout
10140
10141 \begin_layout Standard
10142 \begin_inset Flex Code
10143 status collapsed
10144
10145 \begin_layout Plain Layout
10146 article (AMS)
10147 \end_layout
10148
10149 \end_inset
10150
10151
10152 \begin_inset Flex Code
10153 status collapsed
10154
10155 \begin_layout Plain Layout
10156 book (AMS)
10157 \end_layout
10158
10159 \end_inset
10160
10161 には、——
10162 \begin_inset space ~
10163 \end_inset
10164
10165
10166 \begin_inset Flex Noun
10167 status collapsed
10168
10169 \begin_layout Plain Layout
10170
10171 \end_layout
10172
10173 \end_inset
10174
10175
10176 \begin_inset Flex Noun
10177 status collapsed
10178
10179 \begin_layout Plain Layout
10180 書誌情報
10181 \end_layout
10182
10183 \end_inset
10184
10185
10186 \begin_inset Flex Noun
10187 status collapsed
10188
10189 \begin_layout Plain Layout
10190 タイトル
10191 \end_layout
10192
10193 \end_inset
10194
10195
10196 \begin_inset Flex Noun
10197 status collapsed
10198
10199 \begin_layout Plain Layout
10200 著者
10201 \end_layout
10202
10203 \end_inset
10204
10205
10206 \begin_inset Flex Noun
10207 status collapsed
10208
10209 \begin_layout Plain Layout
10210 日付
10211 \end_layout
10212
10213 \end_inset
10214
10215 のような標準環境の他に
10216 \begin_inset space ~
10217 \end_inset
10218
10219 ——
10220 \begin_inset space ~
10221 \end_inset
10222
10223 以下の環境があります。
10224 \end_layout
10225
10226 \begin_layout Description
10227 住所 これは著者の恒久的な住所です。
10228 \end_layout
10229
10230 \begin_layout Description
10231 現在の住所 住所と別に指定されているときには、著者の投稿時の仮初めの住所です。
10232 \end_layout
10233
10234 \begin_layout Description
10235 電子メール 著者の電子メールアドレス
10236 \end_layout
10237
10238 \begin_layout Description
10239 URL 著者のウェブアドレス。任意。
10240 \end_layout
10241
10242 \begin_layout Description
10243 キーワード 論文中で論じられているトピックを識別するためのキーワードやキーフレーズ。
10244 \end_layout
10245
10246 \begin_layout Description
10247 分野分類 
10248 \emph on
10249 Mathematical Reviews
10250 \emph default
10251 に説明が公表されているAMS Subject Classificationsの分類番号を指します。上述したAMSのウェブサイトでも、オンラインで見ることができま
10252 す。
10253 \end_layout
10254
10255 \begin_layout Description
10256 謝辞
10257 \end_layout
10258
10259 \begin_layout Description
10260 献呈
10261 \end_layout
10262
10263 \begin_layout Description
10264 翻訳者
10265 \end_layout
10266
10267 \begin_layout Standard
10268 以下の環境は、
10269 \begin_inset Flex Code
10270 status collapsed
10271
10272 \begin_layout Plain Layout
10273 定理
10274 \end_layout
10275
10276 \end_inset
10277
10278 モジュールと
10279 \begin_inset Flex Code
10280 status collapsed
10281
10282 \begin_layout Plain Layout
10283 定理(AMS)
10284 \end_layout
10285
10286 \end_inset
10287
10288 モジュールの両方で提供され、後者の場合には、星付き(連番なし)版と星なし(連番)版の両方が提供されます。
10289 \begin_inset Flex Code
10290 status collapsed
10291
10292 \begin_layout Plain Layout
10293 定理(連番なし)
10294 \end_layout
10295
10296 \end_inset
10297
10298 モジュールでは、同環境の星付き版だけが提供されます。
10299 \end_layout
10300
10301 \begin_layout Theorem
10302 これは、通常、得られた主要な結果を叙述するのに使用されます。
10303 \end_layout
10304
10305 \begin_layout Corollary*
10306 これは直前の叙述から比較的直接に導き出せる結果を叙述するのに使います。これも主要な結果であることがあります。
10307 \end_layout
10308
10309 \begin_layout Lemma
10310 他の叙述を証明するために必要とされる、比較的小さな結果です。
10311 \end_layout
10312
10313 \begin_layout Proposition
10314 議論されている一般的な理論に(希望的には)何かを付け加えるような、主要ではない結果です。
10315 \end_layout
10316
10317 \begin_layout Conjecture
10318 正当化を与えずに述べられた叙述で、著者には証明法がわからないけれども、正しいと(少なくとも著者にとっては)思われるものです。
10319 \end_layout
10320
10321 \begin_layout Definition*
10322 これは自明でしょう。この環境のフォントは、前述の環境とは異なるフォントが使用されます。
10323 \end_layout
10324
10325 \begin_layout Problem
10326 これが何を指すかは必ずしも特定されていません。ご自分で解明してください。
10327 \end_layout
10328
10329 \begin_layout Exercise*
10330 この環境の説明を記述せよ。
10331 \end_layout
10332
10333 \begin_layout Note
10334 この環境もtheorem型、通常は重要性の低い所見に用いられます。
10335 \end_layout
10336
10337 \begin_layout Claim*
10338 より大きな結果の証明を与える途中で、しばしば用いられます。
10339 \end_layout
10340
10341 \begin_layout Case
10342 一般的に、これらはある条件の特定の場合を取り上げて、長い議論を区切るのに用いられます。
10343 \end_layout
10344
10345 \begin_layout Case
10346 ケースの連番の枠組みは、それ自身で独立していて、他の連番の叙述とは区別されます。
10347 \end_layout
10348
10349 \begin_layout Proof
10350 この環境の最後には、証了記号(通常は四角ですがスタイルによって変わります)が置かれます。この環境の中に別の環境を入れたい——たとえばケース環境など——場合で、証
10351 了記号は証明環境の終わりにのみ現れるようにしたい場合には、他の環境は証明環境の中に入れ子にしなくてはなりません。入れ子に関する情報については、
10352 \emph on
10353 ユーザーの手引き
10354 \emph default
10355
10356 \emph on
10357 環境を入れ子にする
10358 \emph default
10359 の節をご覧ください。
10360 \end_layout
10361
10362 \begin_layout Standard
10363 そして、以下は
10364 \begin_inset Flex Code
10365 status collapsed
10366
10367 \begin_layout Plain Layout
10368 定理(AMS拡張)
10369 \end_layout
10370
10371 \end_inset
10372
10373 で提供されるものです。
10374 \end_layout
10375
10376 \begin_layout Criterion*
10377 必要とされる条件です。
10378 \end_layout
10379
10380 \begin_layout Algorithm*
10381 使用する一般的手順です。
10382 \end_layout
10383
10384 \begin_layout Axiom*
10385 議論されている系内部で真と仮定される性質や命題です。
10386 \end_layout
10387
10388 \begin_layout Condition*
10389 議論の現在の文脈で仮定されている条件を述べるのに、よく用いられます。
10390 \end_layout
10391
10392 \begin_layout Note*
10393 注記と同様です。
10394 \end_layout
10395
10396 \begin_layout Notation*
10397 表記法の説明に用いられます。
10398 \end_layout
10399
10400 \begin_layout Summary
10401 本当に説明する必要がありますか?
10402 \end_layout
10403
10404 \begin_layout Acknowledgement*
10405 謝辞(acknowledgement)です。
10406 \end_layout
10407
10408 \begin_layout Conclusion*
10409 長い議論の終わりに時々用いられます。
10410 \end_layout
10411
10412 \begin_layout Fact
10413 命題と同様の用いられ方をしますが、だいたい長くないものに使われるようです。
10414 \end_layout
10415
10416 \begin_layout Standard
10417 さらに、AMSクラスは、AMS \SpecialChar LaTeX
10418 パッケージとAMSフォントパッケージを自動的に提供します。これらの環境を使用するためには、お使いのシステム上で利用可能となってい
10419 る必要があります。
10420 \end_layout
10421
10422 \begin_layout Section
10423 AGU各誌(
10424 \family sans
10425 aguplus)
10426 \end_layout
10427
10428 \begin_layout Standard
10429
10430 \noun on
10431 Martin Vermeer
10432 \noun default
10433
10434 \end_layout
10435
10436 \begin_layout Subsection
10437 概要
10438 \end_layout
10439
10440 \begin_layout Standard
10441 これはAmerican Geophysical Society(アメリカ地球物理学会) の各学術誌向けのレイアウトファイルです。AGU発行のクラスファイルおよび
10442 AGUplusの両方(これらは
10443 \begin_inset Flex URL
10444 status collapsed
10445
10446 \begin_layout Plain Layout
10447
10448 http://publications.agu.org/files/2013/08/AGU-LaTeX.zip
10449 \end_layout
10450
10451 \end_inset
10452
10453 にあります)が導入されていることが必要です。
10454 \end_layout
10455
10456 \begin_layout Subsection
10457 新しいスタイル
10458 \end_layout
10459
10460 \begin_layout Standard
10461
10462 \family sans
10463 段落
10464 \family default
10465 および
10466 \family sans
10467 段落*
10468 \family default
10469 は、定義し直されています。\SpecialChar LyX
10470 の画面では、依然として
10471 \family sans
10472 段落
10473 \family default
10474
10475 \family sans
10476 段落*
10477 \family default
10478 と表示されますが、AGUクラスにおける\SpecialChar LaTeX
10479 の対応物は、
10480 \family sans
10481 Subsubsubsection
10482 \family default
10483
10484 \family sans
10485 Subsubsubsection*
10486 \family default
10487 です。
10488 \end_layout
10489
10490 \begin_layout Standard
10491 新しく定義されたスタイルには、
10492 \family sans
10493 左ヘッダ
10494 \family default
10495
10496 \family sans
10497 右ヘッダ
10498 \family default
10499
10500 \family sans
10501 受理日
10502 \family default
10503
10504 \family sans
10505 改訂
10506 \family default
10507
10508 \family sans
10509 採択日
10510 \family default
10511
10512 \family sans
10513 CCC
10514 \family default
10515
10516 \family sans
10517 論文ID
10518 \family default
10519
10520 \family sans
10521 著者住所
10522 \family default
10523
10524 \family sans
10525 廃棄用コメント
10526 \family default
10527 があります。これらは、ほとんど草稿用属性で、AGUクラス説明書で説明されています。
10528 \end_layout
10529
10530 \begin_layout Standard
10531 おそらく、これはまだ恐ろしく不完全です。
10532 \end_layout
10533
10534 \begin_layout Subsection
10535 新しいフロート
10536 \end_layout
10537
10538 \begin_layout Standard
10539
10540 \family sans
10541 平面表(Planotable
10542 \family default
10543 )と
10544 \family sans
10545 挿絵
10546 \family default
10547 (Plate)が新しいフロートです。また、
10548 \family sans
10549 表キャプション
10550 \family default
10551 も付け加えられています。
10552 \end_layout
10553
10554 \begin_layout Subsection
10555 サポートされている学術誌
10556 \end_layout
10557
10558 \begin_layout Itemize
10559
10560 \emph on
10561 Journal of Geophysical Research
10562 \emph default
10563
10564 \family typewriter
10565 jgrga.layout
10566 \family default
10567  — Martin Vermeer
10568 \end_layout
10569
10570 \begin_layout Standard
10571 ここにあなたの作ったものを加えてください。難しくはありません。
10572 \family typewriter
10573 jgrga.layout
10574 \family default
10575 と 
10576 \family typewriter
10577 aguplus.inc
10578 \family default
10579 を用例として見てください。
10580 \end_layout
10581
10582 \begin_layout Subsection
10583 バグと注意すべきこと
10584 \end_layout
10585
10586 \begin_layout Standard
10587 新しいレイアウトを使うためには、新規文書の作成時に以下の手順を行う必要があります。
10588 \end_layout
10589
10590 \begin_layout Enumerate
10591
10592 \emph on
10593 babelを無効にしてください。
10594 \emph default
10595 これは、
10596 \family sans
10597 ツール\SpecialChar menuseparator
10598 設定
10599 \family default
10600 メニュー項目で行うことができます(AGUの論文は常に英語ですよね。ですから他の言語は
10601 \emph on
10602 選ばないで下さい
10603 \emph default
10604 )。
10605 \end_layout
10606
10607 \begin_layout Enumerate
10608 使用文書の追加オプションフィールドに
10609 \family typewriter
10610 jgrga
10611 \family default
10612 と入力してください(すみません、これはバグです)。
10613 \end_layout
10614
10615 \begin_layout Enumerate
10616 Bib\SpecialChar TeX
10617 差込枠の2番目のフィールドに
10618 \family sans
10619 agu
10620 \family default
10621 と入力して、書誌情報のスタイルに
10622 \family typewriter
10623 agu.bst
10624 \family default
10625 を使用していることを確認してください。標準スタイルはうまく動作しません。
10626 \end_layout
10627
10628 \begin_layout Section
10629 Broadway
10630 \end_layout
10631
10632 \begin_layout Standard
10633
10634 \noun on
10635 Garst Reese
10636 \noun default
10637
10638 \end_layout
10639
10640 \begin_layout Subsection
10641 はじめに
10642 \end_layout
10643
10644 \begin_layout Standard
10645 Broadwayは演劇を書くためのものです。書式はHollywoodよりも装飾的で、それほど標準化されていません。この書式はワークショップに向いているでしょう。
10646 \end_layout
10647
10648 \begin_layout Subsection
10649 特別な問題
10650 \end_layout
10651
10652 \begin_layout Standard
10653 Hollywoodと同様です。
10654 \end_layout
10655
10656 \begin_layout Subsection
10657 特別の機能
10658 \end_layout
10659
10660 \begin_layout Standard
10661
10662 \family sans
10663 話者
10664 \family default
10665 の名前をラベルとして挿入し、名前を挿入する際には、このラベルを相互参照してください。相互参照ダイアログには、登場人物の現在の配役が表示されます。
10666 \end_layout
10667
10668 \begin_layout Subsection
10669 用紙寸法と余白
10670 \end_layout
10671
10672 \begin_layout Standard
10673 USレター寸法で、余白は左1.6インチ、右0.75インチ、上0.5インチ、下0.75インチです。
10674 \end_layout
10675
10676 \begin_layout Subsection
10677 環境
10678 \end_layout
10679
10680 \begin_layout Standard
10681 以下の環境を使うことができます。右に記してある
10682 \begin_inset Flex Ruby
10683 status collapsed
10684
10685 \begin_layout Plain Layout
10686
10687 \begin_inset Argument post:1
10688 status collapsed
10689
10690 \begin_layout Plain Layout
10691 キー
10692 \end_layout
10693
10694 \end_inset
10695
10696
10697 \end_layout
10698
10699 \end_inset
10700
10701 割当ては、broadway.bindを使った場合のものです。
10702 \end_layout
10703
10704 \begin_layout Itemize
10705
10706 \family sans
10707 標準
10708 \begin_inset Newline newline
10709 \end_inset
10710
10711
10712 \family default
10713 これは使わなくていいはずですが、他の環境が当てはまらない場合のためにここに挙げておきます。
10714 \end_layout
10715
10716 \begin_layout Itemize
10717
10718 \family sans
10719 ト書き
10720 \begin_inset space \hfill{}
10721 \end_inset
10722
10723 M-z n
10724 \begin_inset Newline newline
10725 \end_inset
10726
10727
10728 \family default
10729 舞台設定と動作の説明に用います。最初に話者名をすべて大文字で書いておきます。
10730 \end_layout
10731
10732 \begin_layout Itemize
10733
10734 \family sans
10735
10736 \begin_inset space \hfill{}
10737 \end_inset
10738
10739 M-z a
10740 \begin_inset Newline newline
10741 \end_inset
10742
10743
10744 \family default
10745 自動的に連番が振られます。連番は、画面上ではアラビア数字ですが、出力ではローマ数字です。
10746 \end_layout
10747
10748 \begin_layout Itemize
10749
10750 \family sans
10751 幕*
10752 \begin_inset space \hfill{}
10753 \end_inset
10754
10755 M-z S at
10756 \begin_inset Newline newline
10757 \end_inset
10758
10759
10760 \family default
10761 幕の副題です。単に中央揃えの文になります。
10762 \end_layout
10763
10764 \begin_layout Itemize
10765
10766 \family sans
10767 場面
10768 \begin_inset space \hfill{}
10769 \end_inset
10770
10771 M-z S-S
10772 \begin_inset Newline newline
10773 \end_inset
10774
10775
10776 \family default
10777 自動的に連番は振られませんので、手動で番号を付けてください。これは私がどうすればいいか分からなかったためです。
10778 \end_layout
10779
10780 \begin_layout Itemize
10781
10782 \family sans
10783 幕開きに:
10784 \begin_inset space \hfill{}
10785 \end_inset
10786
10787 M-z S-R
10788 \begin_inset Newline newline
10789 \end_inset
10790
10791
10792 \family default
10793 ト書きの特殊な場合で、カーテンが上がるときの舞台設定と動作を説明します。
10794 \end_layout
10795
10796 \begin_layout Itemize
10797
10798 \family sans
10799 話者
10800 \begin_inset space \hfill{}
10801 \end_inset
10802
10803 M-z s
10804 \begin_inset Newline newline
10805 \end_inset
10806
10807
10808 \family default
10809 話者(役者)の配役です。すべて大文字で中央揃えに置かれます。
10810 \end_layout
10811
10812 \begin_layout Itemize
10813
10814 \family sans
10815 括弧付き
10816 \begin_inset space \hfill{}
10817 \end_inset
10818
10819 M-z p
10820 \begin_inset Newline newline
10821 \end_inset
10822
10823
10824 \family default
10825 話者への指示です。括弧は自動的に挿入されます。画面上には左括弧(のみが表示されますが、印字出力には両方の括弧が表示されます。この環境は、
10826 \family sans
10827 対話
10828 \family default
10829 の中だけで使用されます。 
10830 \end_layout
10831
10832 \begin_layout Itemize
10833
10834 \family sans
10835 対話
10836 \begin_inset space \hfill{}
10837 \end_inset
10838
10839 M-z d
10840 \begin_inset Newline newline
10841 \end_inset
10842
10843
10844 \family default
10845 話者の言う内容。
10846 \end_layout
10847
10848 \begin_layout Itemize
10849
10850 \family sans
10851 幕切れ
10852 \begin_inset space \hfill{}
10853 \end_inset
10854
10855 M-z S-C
10856 \begin_inset Newline newline
10857 \end_inset
10858
10859
10860 \family default
10861 幕が降ります。
10862 \end_layout
10863
10864 \begin_layout Itemize
10865
10866 \family sans
10867 タイトル
10868 \begin_inset space \hfill{}
10869 \end_inset
10870
10871 M-z S-T
10872 \end_layout
10873
10874 \begin_layout Itemize
10875
10876 \family sans
10877 著者
10878 \begin_inset space \hfill{}
10879 \end_inset
10880
10881 M-z S-A
10882 \end_layout
10883
10884 \begin_layout Itemize
10885
10886 \family sans
10887 右寄せ住所
10888 \begin_inset space \hfill{}
10889 \end_inset
10890
10891 M-z r
10892 \end_layout
10893
10894 \begin_layout Section
10895 Dinbrief
10896 \end_layout
10897
10898 \begin_layout Standard
10899 文書クラス
10900 \family sans
10901 dinbrief
10902 \family default
10903 は、ドイツの慣習に則った書簡の組版を行うのに用いられます。ひな型ファイルが
10904 \family typewriter
10905 .../lyx/share/templates
10906 \family default
10907 にあるので、それを土台として使用してください。
10908 \end_layout
10909
10910 \begin_layout Section
10911 EGS各誌
10912 \family sans
10913 (egs)
10914 \end_layout
10915
10916 \begin_layout Standard
10917
10918 \noun on
10919 Martin Vermeer
10920 \noun default
10921
10922 \end_layout
10923
10924 \begin_layout Subsection
10925 概要
10926 \end_layout
10927
10928 \begin_layout Standard
10929 これはEuropean Geophysical Society(欧州地球物理学会)の学術誌向けのレイアウトファイルです。必要とされる
10930 \family typewriter
10931 egs.cls
10932 \family default
10933 は、EGSのウェブサイト
10934 \begin_inset Flex URL
10935 status collapsed
10936
10937 \begin_layout Plain Layout
10938
10939 http://www.copernicus.org/
10940 \end_layout
10941
10942 \end_inset
10943
10944 からダウンロードできます。
10945 \end_layout
10946
10947 \begin_layout Subsection
10948 新しいスタイル
10949 \end_layout
10950
10951 \begin_layout Standard
10952 新しいスタイルとして、
10953 \family sans
10954 右寄せ住所
10955 \family default
10956
10957 \family sans
10958 \SpecialChar LaTeX
10959 タイトル
10960 \family default
10961
10962 \family sans
10963 所属
10964 \family default
10965
10966 \family sans
10967 学術誌名
10968 \family default
10969
10970 \family sans
10971 原稿番号
10972 \family default
10973
10974 \family sans
10975 筆頭著者
10976 \family default
10977
10978 \family sans
10979 受理日
10980 \family default
10981
10982 \family sans
10983 採択日
10984 \family default
10985
10986 \family sans
10987 オフセット
10988 \family default
10989 があります。現在のレイアウトファイルは、残念ながらほとんどモジュール化されておらず、さまざまな
10990 \family typewriter
10991 std*.inc
10992 \family default
10993 ファイルを読み込む形に変えた方が便利になると思われます。
10994 \end_layout
10995
10996 \begin_layout Section
10997 Elsevier各誌
10998 \end_layout
10999
11000 \begin_layout Standard
11001 \SpecialChar LyX
11002 ひな型ファイルの
11003 \family typewriter
11004 elsarticle.lyx
11005 \family default
11006 を参照してください。必要な情報は全てそこにあります。
11007 \end_layout
11008
11009 \begin_layout Section
11010 Foils (別名Foil\SpecialChar TeX
11011 )
11012 \begin_inset CommandInset label
11013 LatexCommand label
11014 name "sec:foiltex"
11015
11016 \end_inset
11017
11018
11019 \end_layout
11020
11021 \begin_layout Standard
11022
11023 \noun on
11024 Allan Rae
11025 \noun default
11026
11027 \end_layout
11028
11029 \begin_layout Subsection
11030 はじめに
11031 \end_layout
11032
11033 \begin_layout Standard
11034 本節では、プレゼンテーション用のスライドを作るための、\SpecialChar LyX
11035 の使用法を解説します。スライドを作ることのできる文書クラスには、slides・Foil\SpecialChar TeX
11036 ・seminar・b
11037 eamer・powerdotといったクラスがありますが、本節では、そのうちslidesの解説を行います。
11038 \end_layout
11039
11040 \begin_layout Standard
11041 誤解のないように、わかりやすく明確に、もう一度言っておきます。
11042 \end_layout
11043
11044 \begin_layout Standard
11045 \begin_inset VSpace bigskip
11046 \end_inset
11047
11048
11049 \end_layout
11050
11051 \begin_layout Standard
11052 \align center
11053
11054 \size large
11055 本節は「
11056 \family sans
11057 presentation (FoilT
11058 \size default
11059
11060 \begin_inset ERT
11061 status collapsed
11062
11063 \begin_layout Plain Layout
11064
11065 {}
11066 \end_layout
11067
11068 \end_inset
11069
11070
11071 \size large
11072 eX)
11073 \family default
11074 」クラス
11075 \emph on
11076 のみの
11077 \emph default
11078 解説を行います。
11079 \end_layout
11080
11081 \begin_layout Standard
11082 \begin_inset VSpace bigskip
11083 \end_inset
11084
11085
11086 \end_layout
11087
11088 \begin_layout Standard
11089
11090 \family sans
11091 transparencies (slides)
11092 \family default
11093 」の解説をお探しであれば、第
11094 \begin_inset CommandInset ref
11095 LatexCommand ref
11096 reference "sec:slitex"
11097
11098 \end_inset
11099
11100 節をご覧ください。お使いのコンピュータに
11101 \family sans
11102 foils
11103 \family default
11104 クラス(
11105 \family sans
11106 presentation (FoilT
11107 \begin_inset ERT
11108 status collapsed
11109
11110 \begin_layout Plain Layout
11111
11112 {}
11113 \end_layout
11114
11115 \end_inset
11116
11117 eX)
11118 \family default
11119 )が導入されていなければ、
11120 \family sans
11121 foils
11122 \family default
11123 ほど良くはありませんが、おそらく
11124 \family sans
11125 slides
11126 \family default
11127 クラスを使わざるをえないでしょう。
11128 \end_layout
11129
11130 \begin_layout Standard
11131
11132 \family sans
11133 foils
11134 \family default
11135 クラスは、\SpecialChar LaTeX2e
11136 の一部として含まれている\SpecialChar LaTeX
11137 クラスファイル
11138 \family sans
11139 foils.cls
11140 \family default
11141 の第2.1版とともに使われるように設計されています。
11142 \end_layout
11143
11144 \begin_layout Subsection
11145 最初の一歩
11146 \end_layout
11147
11148 \begin_layout Standard
11149 いうまでもなく、この文書クラスを使うには、
11150 \family sans
11151 文書\SpecialChar menuseparator
11152 設定\SpecialChar menuseparator
11153 文書クラス
11154 \family default
11155 メニューの
11156 \family sans
11157 文書クラス
11158 \family default
11159 ドロップダウンで「
11160 \family sans
11161 presentation (FoilT
11162 \begin_inset ERT
11163 status collapsed
11164
11165 \begin_layout Plain Layout
11166
11167 {}
11168 \end_layout
11169
11170 \end_inset
11171
11172 eX)
11173 \family default
11174 」を選択する必要があります。また、
11175 \family sans
11176 文書設定
11177 \family default
11178 ダイアログ中には、以下のように、このクラスに特有の設定がいくつかあることを知っておかなくてはなりません。
11179 \end_layout
11180
11181 \begin_layout Itemize
11182
11183 \family sans
11184 文書設定
11185 \family default
11186 ダイアログ中の、
11187 \family sans
11188 両面文書
11189 \family default
11190 オプションと
11191 \family sans
11192 二段組文書
11193 \family default
11194 オプションは変更しないでください。これらは 
11195 \family sans
11196 foils
11197 \family default
11198 クラスでは無視されます。
11199 \end_layout
11200
11201 \begin_layout Itemize
11202 既定のフォント寸法は20ptであり、17pt・25pt・30ptを選択することも可能です。
11203 \end_layout
11204
11205 \begin_layout Itemize
11206 既定のフォントは
11207 \family sans
11208 sans
11209 \family default
11210  
11211 \family sans
11212 serif
11213 \family default
11214 ですが、数式ではすべて、通常のローマン体が使用されます。
11215 \end_layout
11216
11217 \begin_layout Itemize
11218 Foil\SpecialChar TeX
11219 は、35
11220 \begin_inset space \thinspace{}
11221 \end_inset
11222
11223 mmスライド用の特殊寸法の他、A4とレター大の用紙寸法をサポートします。A5・B5・リーガル・エグゼクティブ大の用紙寸法はサポートしていません。
11224 \end_layout
11225
11226 \begin_layout Itemize
11227
11228 \family sans
11229 フロートの配置
11230 \family default
11231 の設定は無視されますので、わざわざ変更する必要はありません。フロートはすべて、本文中で定義された位置に表示されます。
11232 \end_layout
11233
11234 \begin_layout Itemize
11235 このクラスの
11236 \family sans
11237 ページレイアウト
11238 \family default
11239 の設定は、若干異なった挙動を示します。Foil\SpecialChar TeX
11240 では、ユーザ定義のロゴをはじめ、フッタとへッダに広範な設定ができます。詳細については第
11241 \begin_inset CommandInset ref
11242 LatexCommand ref
11243 reference "sec:foilfoot"
11244
11245 \end_inset
11246
11247 節をご覧ください。タイトルページは、文書中の他のページとは異なった取扱がなされ、ページ番号は
11248 \emph on
11249 つねに
11250 \emph default
11251 付けられず、(ロゴが定義されていれば)ロゴは、
11252 \emph on
11253 つねに
11254 \emph default
11255 ページ下部中央に表示されます。使用できるページ様式とその挙動は、以下の通りです。
11256 \begin_inset Separator parbreak
11257 \end_inset
11258
11259
11260 \end_layout
11261
11262 \begin_deeper
11263 \begin_layout Labeling
11264 \labelwidthstring MMMMMMM
11265
11266 \family sans
11267 \series bold
11268 empty
11269 \family default
11270 \series default
11271  最終出力には、ページ番号をはじめ、へッダ・フッタが出力されません(もちろん脚注は除きます)。
11272 \end_layout
11273
11274 \begin_layout Labeling
11275 \labelwidthstring MMMMMMM
11276
11277 \family sans
11278 \series bold
11279 plain
11280 \family default
11281 \series default
11282  最終出力には、ページ番号がページ下部の中央に出力されますが、他のへッダ・フッタは出力されません(脚注除く)。
11283 \end_layout
11284
11285 \begin_layout Labeling
11286 \labelwidthstring MMMMMMM
11287
11288 \series bold
11289 foilheadings
11290 \series default
11291  ページ番号が右下隅に出力されます。追記したへッダ・フッタも出力されます。これが既定値です。
11292 \end_layout
11293
11294 \begin_layout Labeling
11295 \labelwidthstring MMMMMMM
11296
11297 \series bold
11298 fancy
11299 \series default
11300  これは
11301 \family sans
11302 fancyheadings
11303 \family default
11304 パッケージを使えるようにします。ただし、Foil\SpecialChar TeX
11305 パッケージの作者は、ページレイアウトが崩れる可能性があるので、これを使用することは勧めないと言及しています。
11306 \end_layout
11307
11308 \end_deeper
11309 \begin_layout Subsubsection
11310 任意設定クラスオプション
11311 \end_layout
11312
11313 \begin_layout Standard
11314 以下のオプションは
11315 \family sans
11316 文書設定
11317 \family default
11318 ダイアログの任意設定クラスオプションボックスで使うことができます。
11319 \end_layout
11320
11321 \begin_layout Labeling
11322 \labelwidthstring MMMMMMx
11323
11324 \series bold
11325 35mmSlide
11326 \series default
11327  これは、ページレイアウトを縦7.33インチ横11インチに設定します。これは35
11328 \begin_inset space \space{}
11329 \end_inset
11330
11331 mmスライドの縦横比にほぼ等しく、このメディアを作る作業が若干易しくなります。
11332 \end_layout
11333
11334 \begin_layout Labeling
11335 \labelwidthstring MMMMMMx
11336
11337 \series bold
11338 headrule
11339 \series default
11340  タイトルページを除くすべてのページのへッダの下に罫線を入れます。
11341 \end_layout
11342
11343 \begin_layout Labeling
11344 \labelwidthstring MMMMMMx
11345
11346 \series bold
11347 footrule
11348 \series default
11349  タイトルページを除くすべてのページのフッタの上に罫線を入れます。
11350 \end_layout
11351
11352 \begin_layout Labeling
11353 \labelwidthstring MMMMMMx
11354
11355 \series bold
11356 dvips
11357 \series default
11358  これは、新規
11359 \family sans
11360 foils
11361 \family default
11362 文書を作成する度に自動的に設定されます。このオプションは、横向きに設定されたページを回転させるのに、dvipsドライバを使うようFoil\SpecialChar TeX
11363 に指示します。
11364 \end_layout
11365
11366 \begin_layout Labeling
11367 \labelwidthstring MMMMMMx
11368
11369 \series bold
11370 landscape
11371 \series default
11372  このオプションは、用紙寸法を横向きページ大に変更するだけで、回転は行いません。したがって、このオプションを使う場合は、各ページを回転させる外部プログラムを使用
11373 する、プリンタに用紙を横向きに給紙する必要があります。また、このオプションは、
11374 \family sans
11375 Foilhead
11376 \family default
11377 環境と
11378 \family sans
11379 Rotatefoilhead
11380 \family default
11381 環境の役割を逆転させることに注意してください(これらの環境については次節で説明します)。
11382 \end_layout
11383
11384 \begin_layout Labeling
11385 \labelwidthstring MMMMMMx
11386
11387 \series bold
11388 leqno
11389 \series default
11390  数式番号を左側に付けます。
11391 \end_layout
11392
11393 \begin_layout Labeling
11394 \labelwidthstring MMMMMMx
11395
11396 \series bold
11397 fleqn
11398 \series default
11399  数式を左揃えにします。
11400 \end_layout
11401
11402 \begin_layout Subsection
11403 サポートされる環境
11404 \end_layout
11405
11406 \begin_layout Standard
11407 他のクラスで標準的にサポートされている環境は、
11408 \family sans
11409 foils
11410 \family default
11411 クラスでもサポートされています。それ以外に、Foil\SpecialChar TeX
11412 が提供している環境と、\SpecialChar LyX
11413 が付け加えた環境があります。以下の環境は、他のクラスと共通の環境です。
11414 \end_layout
11415
11416 \begin_layout Standard
11417
11418 \family sans
11419 \begin_inset Flex Multiple Columns
11420 status open
11421
11422 \begin_layout Itemize
11423
11424 \family sans
11425 標準
11426 \end_layout
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 \SpecialChar LyX
11456 コード
11457 \end_layout
11458
11459 \begin_layout Itemize
11460
11461 \family sans
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 \end_inset
11532
11533
11534 \end_layout
11535
11536 \begin_layout Standard
11537 つまり、節区切りを除けば、主な環境のすべてです。一枚のスライドは、基本的にタイトルと本文を備えた自己完結した節なので、
11538 \family sans
11539 Foil
11540 \family default
11541 \SpecialChar TeX
11542 は新しいスライドを始める以下のようなコマンドを備えています。
11543 \end_layout
11544
11545 \begin_layout Itemize
11546
11547 \family sans
11548 スライドタイトル(Foilhead)
11549 \end_layout
11550
11551 \begin_layout Itemize
11552
11553 \family sans
11554 横置きスライドタイトル(Rotatefoilhead)
11555 \end_layout
11556
11557 \begin_layout Standard
11558 \SpecialChar LyX
11559 は、以下のような、これらを若干修正した環境も用意しています。
11560 \end_layout
11561
11562 \begin_layout Itemize
11563
11564 \family sans
11565 スライドタイトル(小)(ShortFoilhead)
11566 \end_layout
11567
11568 \begin_layout Itemize
11569
11570 \family sans
11571 横置きスライドタイトル(小)(ShortRotatefoilhead)
11572 \end_layout
11573
11574 \begin_layout Standard
11575 これらの違いは次節で説明します。
11576 \end_layout
11577
11578 \begin_layout Standard
11579 スライドは、アイデアを説明したり、新しい定理を説明したりするのにしばしば使われるので、
11580 \family sans
11581 Foil
11582 \family default
11583 \SpecialChar TeX
11584 はそれらを説明するのに便利な環境を幅広く用意しています。
11585 \end_layout
11586
11587 \begin_layout Standard
11588
11589 \family sans
11590 \begin_inset Flex Multiple Columns
11591 status open
11592
11593 \begin_layout Itemize
11594
11595 \family sans
11596 定理
11597 \end_layout
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 \end_inset
11660
11661
11662 \end_layout
11663
11664 \begin_layout Standard
11665 星付き版は連番が振られず、星なし版は連番が振られます。他に、\SpecialChar LyX
11666 で追加された以下の2つの箇条書き環境があります。
11667 \end_layout
11668
11669 \begin_layout Itemize
11670
11671 \family sans
11672 箇条書き(チック)
11673 \end_layout
11674
11675 \begin_layout Itemize
11676
11677 \family sans
11678 箇条書き(クロス)
11679 \end_layout
11680
11681 \begin_layout Standard
11682 Foil\SpecialChar TeX
11683 には、強力なヘッダ機能とフッタ機能があり、これらはプリアンブルで設定するのが最良ですが、文章中のどこでも設定することができます。もし文書中でこれらの設定
11684 を変更したい場合には、スライドの一番上、foilheadの直後で行うのが良いでしょう。
11685 \end_layout
11686
11687 \begin_layout Standard
11688 この目的のためには、以下のコマンドスタイルがあります(
11689 \shape smallcaps
11690 Martin Vermeer)。
11691 \end_layout
11692
11693 \begin_layout Standard
11694 \begin_inset Flex Multiple Columns
11695 status open
11696
11697 \begin_layout Itemize
11698
11699 \family sans
11700 グラフィックスロゴ
11701 \end_layout
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 \family default
11726
11727 \begin_inset Separator parbreak
11728 \end_inset
11729
11730
11731 \end_layout
11732
11733 \begin_deeper
11734 \begin_layout Plain Layout
11735 \begin_inset space ~
11736 \end_inset
11737
11738
11739 \end_layout
11740
11741 \end_deeper
11742 \end_inset
11743
11744
11745 \end_layout
11746
11747 \begin_layout Standard
11748 Foil\SpecialChar TeX
11749 が提供しているコマンドで、\SpecialChar LyX
11750 が直接サポートしていないコマンドもありますが、これらの説明と使い方については、第
11751 \begin_inset CommandInset ref
11752 LatexCommand ref
11753 reference "sec:unsuppfoils"
11754
11755 \end_inset
11756
11757 節で行います。
11758 \end_layout
11759
11760 \begin_layout Subsection
11761 スライドの組を作る
11762 \end_layout
11763
11764 \begin_layout Standard
11765 この節は、様々な環境を使ってスライドの組を作る方法を簡単に紹介します。スライド組の例をご覧になりたい場合は、\SpecialChar LyX
11766
11767 \family typewriter
11768 examples
11769 \family default
11770 フォルダにある
11771 \family typewriter
11772 Foils.lyx
11773 \family default
11774 ファイルをご覧ください。
11775 \end_layout
11776
11777 \begin_layout Subsubsection
11778 タイトルページを作る
11779 \end_layout
11780
11781 \begin_layout Standard
11782
11783 \family sans
11784 タイトル
11785 \family default
11786
11787 \family sans
11788 著者
11789 \family default
11790
11791 \family sans
11792 日付
11793 \family default
11794
11795 \family sans
11796 概要
11797 \family default
11798 環境のある他のクラスとは異なり、
11799 \family sans
11800 foils
11801 \family default
11802 は独立したページにタイトルを作成します。
11803 \family sans
11804 日付
11805 \family default
11806 環境を使用しなかった場合には、\SpecialChar LaTeX
11807 は(出力を生成し直したときにはいつも)その時点の日付を挿入します。
11808 \end_layout
11809
11810 \begin_layout Subsubsection
11811 新しいスライドを開始する
11812 \end_layout
11813
11814 \begin_layout Standard
11815 前述のように、新しいスライドを開始するには、4つの方法があります。縦向きのスライドを開始するには、
11816 \family sans
11817 スライドタイトル(Foilhead)
11818 \family default
11819
11820 \family sans
11821 スライドタイトル(小)(ShortFoilhead)
11822 \family default
11823 を使用します。両環境の違いは、スライドタイトル(foilhead)とスライド本文の間の余白の違いです。
11824 \end_layout
11825
11826 \begin_layout Standard
11827 横向きのスライドは、
11828 \family sans
11829 横向きスライドタイトル(Rotatefoilhead)
11830 \family default
11831 か横向きスライドタイトル(小)(
11832 \family sans
11833 ShortRotatefoilhead)
11834 \family default
11835 環境を使用して生成します。ここでも両環境の違いは、タイトルと本文の間の余白のみです。どちらの場合も、(小)と記された版は、タイトルと本文の間の余白が、0.5インチ
11836 (約1.27cm)小さくなります。
11837 \end_layout
11838
11839 \begin_layout Standard
11840 横向きのスライドをサポートする際、一つ問題となるのは、スライドを回転させようと思うと、PostScript出力を生成するのに
11841 \family typewriter
11842 dvips
11843 \family default
11844 ドライバを使用することを要求してしまうことです。もしスライドをプリンタに横に給紙することができれば、
11845 \family typewriter
11846 dvips
11847 \family default
11848 ドライバを持っていなくても、横向きのスライドをつくることができます ;-)
11849 \end_layout
11850
11851 \begin_layout Subsubsection
11852 定理・補題・証明など
11853 \end_layout
11854
11855 \begin_layout Standard
11856 \SpecialChar LyX
11857 中の小さなバグによって、これらの環境の同じ型をお互いに直接続けて置くことはできません。これらは何かによって分離されなくてはなりません。仮に二つ続けて置いても、2
11858 つの環境をマージしたかのように、前の環境が延長されるだけです。この問題を回避するにはどうすればよいのでしょうか。最も簡単な方法は、二つの環境の間に何か文章を置く
11859 か、あるいは二つの間に「
11860 \family typewriter
11861 %
11862 \family default
11863 」だけから成る\SpecialChar LaTeX
11864 環境を置くことです。これによって、\SpecialChar LyX
11865 は2つの別々の環境を生成するように強制され、正しい\SpecialChar LaTeX
11866 出力を得ることができます。\SpecialChar LyX
11867 頒布版に含まれる用例ファイルに例があ
11868 ります。この問題は、二つの同じ定理型環境を立て続けに置こうとした場合にのみ発生することに注意してください。
11869 \end_layout
11870
11871 \begin_layout Subsubsection
11872 箇条書き
11873 \end_layout
11874
11875 \begin_layout Standard
11876 他のクラスでも共通にサポートされている箇条書き様式すべてに加えて、二つの新しい様式を使用することができます。ここでは、その新しい様式のみを説明することにします。
11877 他の箇条書き環境について詳しく知りたい場合には、
11878 \emph on
11879 ユーザーの手引き
11880 \emph default
11881 をご覧ください。記号による箇条書きを使用したい場合には、上記第
11882 \begin_inset CommandInset ref
11883 LatexCommand ref
11884 reference "sec:ブリット"
11885
11886 \end_inset
11887
11888 節の
11889 \family sans
11890 箇条書き(記号)ブリットの指定
11891 \family default
11892 の節も、読まれることが望ましいでしょう。
11893 \end_layout
11894
11895 \begin_layout Standard
11896
11897 \family sans
11898 箇条書き(チック)
11899 \family default
11900
11901 \family sans
11902 箇条書き(クロス)
11903 \family default
11904 の二つの新しい様式は、チェック印や
11905 \begin_inset Formula $\times$
11906 \end_inset
11907
11908 印を箇条書きのラベルに使用する専用の環境を提供することで、予定一覧や正誤一覧を作りやすくするように設計されたものです。これらの箇条書きは、
11909 \family sans
11910 箇条書き(記号)
11911 \family default
11912 の派生型を専用に用意したものに過ぎません。ただし、これらは、
11913 \family typewriter
11914 psnfss
11915 \family default
11916 パッケージが導入済であることを要求します。
11917 \end_layout
11918
11919 \begin_layout Subsubsection
11920 図と表
11921 \end_layout
11922
11923 \begin_layout Standard
11924 Foil\SpecialChar TeX
11925 では、図表フロートは、本文中の挿入箇所にこれらが正確に表示されるように再定義されており、ページの上部やユーザー指定場所に押しのけたりはしないようになって
11926 います。たとえフロート配置の設定に変更を加えたとしても、単に無視されます。
11927 \end_layout
11928
11929 \begin_layout Subsubsection
11930 ページヘッダおよびページフッタ
11931 \begin_inset CommandInset label
11932 LatexCommand label
11933 name "sec:foilfoot"
11934
11935 \end_inset
11936
11937
11938 \end_layout
11939
11940 \begin_layout Standard
11941
11942 \family sans
11943 グラフィックスロゴ
11944 \family default
11945
11946 \family sans
11947 配布制限
11948 \family default
11949 の二つは、左フッタ文を制御するものです。前者は、グラフィックスのロゴをスライドに入れるためのもので、既定値は「-Typeset by 
11950 \family sans
11951 Foil
11952 \family default
11953 \SpecialChar TeX
11954 -」となっています。後者は、「機密事項」などのように、聴衆に秘密区分を提示することを意図しています。既定値では、何も設定されていません。
11955 \end_layout
11956
11957 \begin_layout Standard
11958 スライドの残り三隅には、
11959 \family sans
11960 右フッタ
11961 \family default
11962 (既定ではページ番号)・
11963 \family sans
11964 右ヘッダ
11965 \family default
11966 (右上)・
11967 \family sans
11968 左ヘッダ
11969 \family default
11970 (左上)を使って文字を入れることができます。
11971 \end_layout
11972
11973 \begin_layout Subsection
11974 サポートされない 
11975 \family sans
11976 Foil
11977 \family default
11978 \SpecialChar TeX
11979 機能
11980 \begin_inset CommandInset label
11981 LatexCommand label
11982 name "sec:unsuppfoils"
11983
11984 \end_inset
11985
11986
11987 \end_layout
11988
11989 \begin_layout Standard
11990 以下で言及されているコマンドは、
11991 \family sans
11992 \SpecialChar LaTeX
11993
11994 \family default
11995 環境内で設定されるか、他の環境中の
11996 \family sans
11997 \SpecialChar TeX
11998 コード
11999 \family default
12000 として設定される必要があります。
12001 \end_layout
12002
12003 \begin_layout Subsubsection
12004 長さ
12005 \end_layout
12006
12007 \begin_layout Standard
12008 長さは、すべて
12009 \family typewriter
12010
12011 \backslash
12012 setlength{
12013 \family default
12014 \emph on
12015 長さ名
12016 \family typewriter
12017 \emph default
12018 }{
12019 \family default
12020 \emph on
12021 新規長さ
12022 \family typewriter
12023 \emph default
12024 }
12025 \family default
12026 コマンドで調節されます。ここで
12027 \emph on
12028 長さ名
12029 \emph default
12030 は、変更したい長さに付けられている名前で置き換え、
12031 \emph on
12032 新規長さ
12033 \emph default
12034 は、その長さの値で置き換えます。長さはすべて、インチ(in)・ミリメートル(mm)・ポイント(pt)のような長さ単位か、
12035 \family typewriter
12036
12037 \backslash
12038 textwidth
12039 \family default
12040 のように文書比あるいはフォント基準の長さで指定する必要があります。
12041 \end_layout
12042
12043 \begin_layout Standard
12044
12045 \family typewriter
12046
12047 \backslash
12048 foilheadskip
12049 \family default
12050 で指定される長さを調節することによって、スライドタイトルとスライド本文の間の余白を変更することができます。たとえば、スライドタイトルをすべて0.5
12051 \begin_inset space \space{}
12052 \end_inset
12053
12054 inだけスライド本文に近づけるには、プリアンブルに
12055 \family typewriter
12056
12057 \backslash
12058 setlength{
12059 \backslash
12060 foilheadskip}{-0.5in}
12061 \family default
12062 と書き込みます。
12063 \end_layout
12064
12065 \begin_layout Standard
12066 フロート周囲の余白は、以下の長さを設定することで調整することができます。
12067 \end_layout
12068
12069 \begin_layout Labeling
12070 \labelwidthstring MMMMMMMMMMM
12071
12072 \family typewriter
12073
12074 \backslash
12075 abovefloatskip
12076 \family default
12077  本文とフロート上辺との間隔
12078 \end_layout
12079
12080 \begin_layout Labeling
12081 \labelwidthstring MMMMMMMMMMM
12082
12083 \family typewriter
12084
12085 \backslash
12086 abovecaptionskip
12087 \family default
12088  フロートとキャプションとの間隔
12089 \end_layout
12090
12091 \begin_layout Labeling
12092 \labelwidthstring MMMMMMMMMMM
12093
12094 \family typewriter
12095
12096 \backslash
12097 belowcaptionskip
12098 \family default
12099  キャプションとそれに続く本文との間隔
12100 \end_layout
12101
12102 \begin_layout Labeling
12103 \labelwidthstring MMMMMMMMMMM
12104
12105 \family typewriter
12106
12107 \backslash
12108 captionwidth
12109 \family default
12110  この長さを調整することでキャプションを、周囲の本文より短くすることができます。
12111 \family typewriter
12112
12113 \backslash
12114 textwidth
12115 \family default
12116 に対する相対的な長さで調整するのが最も良いでしょう。
12117 \end_layout
12118
12119 \begin_layout Standard
12120 以下のようなタイトルページ関連の長さもあり、タイトルが長い場合や、著者が複数いる場合に使うと便利かもしれません。
12121 \end_layout
12122
12123 \begin_layout Labeling
12124 \labelwidthstring MMMMMMMMMMM
12125
12126 \family typewriter
12127
12128 \backslash
12129 abovetitleskip
12130 \family default
12131  へッダとタイトルとの間隔
12132 \end_layout
12133
12134 \begin_layout Labeling
12135 \labelwidthstring MMMMMMMMMMM
12136
12137 \family typewriter
12138
12139 \backslash
12140 titleauthorskip
12141 \family default
12142  
12143 \family sans
12144 タイトル
12145 \family default
12146 環境と
12147 \family sans
12148 著者
12149 \family default
12150 環境との間隔
12151 \end_layout
12152
12153 \begin_layout Labeling
12154 \labelwidthstring MMMMMMMMMMM
12155
12156 \family typewriter
12157
12158 \backslash
12159 authorauthorskip
12160 \family default
12161  著者が複数いる場合の
12162 \family sans
12163 著者
12164 \family default
12165 行の間隔
12166 \end_layout
12167
12168 \begin_layout Labeling
12169 \labelwidthstring MMMMMMMMMMM
12170
12171 \family typewriter
12172
12173 \backslash
12174 authordateskip
12175 \family default
12176  
12177 \family sans
12178 著者
12179 \family default
12180
12181 \family sans
12182 日付
12183 \family default
12184 との間隔
12185 \end_layout
12186
12187 \begin_layout Labeling
12188 \labelwidthstring MMMMMMMMMMM
12189
12190 \family typewriter
12191
12192 \backslash
12193 dateabstractskip
12194 \family default
12195  
12196 \family sans
12197 日付
12198 \family default
12199
12200 \family sans
12201 概要
12202 \family default
12203 との間隔
12204 \end_layout
12205
12206 \begin_layout Standard
12207 最後に紹介する長さ関連コマンドは、箇条書き環境すべてに使用できるものです。
12208 \family typewriter
12209
12210 \backslash
12211 zerolistvertdimens
12212 \family default
12213 を箇条書き環境の内側に置くと、項目間の垂直余白がすべて取り除かれます。これは長さではなくコマンドなので、上述のもののように
12214 \family typewriter
12215
12216 \backslash
12217 setlength
12218 \family default
12219 を使う必要がないことに注意してください。
12220 \end_layout
12221
12222 \begin_layout Subsubsection
12223 へッダとフッタ
12224 \end_layout
12225
12226 \begin_layout Standard
12227
12228 \family typewriter
12229
12230 \backslash
12231 LogoOn
12232 \family default
12233 および
12234 \family typewriter
12235
12236 \backslash
12237 LogoOff
12238 \family default
12239 は、
12240 \family typewriter
12241 MyLogo
12242 \family default
12243 で定義したロゴを特定のページに入れるかどうかを制御します。
12244 \family typewriter
12245
12246 \backslash
12247 LogoOff
12248 \family default
12249 をプリアンブルに入れると、全スライドからロゴが取り除かれます。特定のスライドにのみロゴを付けたくない場合は、当該ページのスライドタイトルの直後に直接
12250 \family typewriter
12251
12252 \backslash
12253 LogoOff
12254 \family default
12255 を置き、次のスライドタイトルの直後に直接
12256 \family typewriter
12257
12258 \backslash
12259 LogoOn
12260 \family default
12261 を置いてください。
12262 \end_layout
12263
12264 \begin_layout Standard
12265
12266 \family sans
12267 文書レイアウト
12268 \family default
12269 ダイアログで
12270 \family sans
12271 fancy
12272 \family default
12273 ページ様式を使用することを選択した場合には、横置きページのヘッダとフッタが回転後も正しく配置されるように、プリアンブルに
12274 \family typewriter
12275
12276 \backslash
12277 let
12278 \backslash
12279 headwidth
12280 \backslash
12281 textwidth
12282 \family default
12283 を加える必要があるでしょう。これは、
12284 \family sans
12285 fancyheadings
12286 \family default
12287 パッケージが提供するページレイアウトと
12288 \family sans
12289 foils
12290 \family default
12291 クラスの提供するページレイアウトの間に衝突が発生するためです。
12292 \end_layout
12293
12294 \begin_layout Section
12295 Hollywood(Hollywoodスペック・スクリプト)
12296 \end_layout
12297
12298 \begin_layout Standard
12299
12300 \noun on
12301 Garst Reese
12302 \noun default
12303
12304 \end_layout
12305
12306 \begin_layout Subsection
12307 はじめに
12308 \end_layout
12309
12310 \begin_layout Standard
12311 脚本を正しい書式で書くことは、ハリウッドにおける「通過儀礼」です。ハリウッドの脚本は、読み手が内容に集中できるようにし、俳優にとっても読みやすくかつ親しみやすい
12312 ように設計されています。脚本の1ページは、映画の1分でなければならず、銀幕上で見えたり聞こえたりしないものは、脚本に混入してはなりません。また、全体を通してCo
12313 urier 12
12314 \begin_inset space \space{}
12315 \end_inset
12316
12317 ptフォントを使わなければならず、イタリック体は用いてはいけません。
12318 \end_layout
12319
12320 \begin_layout Subsection
12321 特別な問題
12322 \end_layout
12323
12324 \begin_layout Standard
12325 話者の行は、文の途中で改行することは
12326 \emph on
12327 決して
12328 \emph default
12329 あってはなりません。もし話者行の塊が、次頁にまたがる場合には、
12330 \family sans
12331 話者
12332 \family default
12333 名を再度書き、その後に(Cont'd)と加えます。
12334 \end_layout
12335
12336 \begin_layout Subsection
12337 特別な機能
12338 \end_layout
12339
12340 \begin_layout Standard
12341
12342 \family sans
12343 話者
12344 \family default
12345 名はラベルとして挿入し、話者名を挿入するには、そのラベルを相互参照してください。相互参照ダイアログは、登場人物の現在の配役を表示することになります。これは、ト書
12346 きに話者名を挿入するのにも使用することができます。
12347 \end_layout
12348
12349 \begin_layout Subsection
12350 用紙寸法と余白
12351 \end_layout
12352
12353 \begin_layout Standard
12354 USレター寸法で、左余白1.6インチ・右余白0.75インチ・上余白0.5インチ・下余白0.75インチです。
12355 \end_layout
12356
12357 \begin_layout Subsection
12358 環境
12359 \end_layout
12360
12361 \begin_layout Standard
12362 以下の環境が利用可能です。右に示されている
12363 \begin_inset Flex Ruby
12364 status collapsed
12365
12366 \begin_layout Plain Layout
12367
12368 \begin_inset Argument post:1
12369 status collapsed
12370
12371 \begin_layout Plain Layout
12372 キー
12373 \end_layout
12374
12375 \end_inset
12376
12377
12378 \end_layout
12379
12380 \end_inset
12381
12382 割当てを使用するには、hollywood.bindを使用してください。
12383 \end_layout
12384
12385 \begin_layout Itemize
12386
12387 \family sans
12388 一般
12389 \begin_inset Newline newline
12390 \end_inset
12391
12392
12393 \family default
12394 他の環境が動作しない場合に使用しますが、これを使うことは避けるようにしてください。
12395 \end_layout
12396
12397 \begin_layout Itemize
12398 フェイドイン:
12399 \begin_inset space \hfill{}
12400 \end_inset
12401
12402
12403 \family sans
12404 M-z S-I
12405 \family default
12406
12407 \begin_inset Newline newline
12408 \end_inset
12409
12410 通常、この後には「Sallyは目を覚ますと」のように続きます。
12411 \end_layout
12412
12413 \begin_layout Itemize
12414
12415 \family sans
12416 屋内:
12417 \begin_inset space \hfill{}
12418 \end_inset
12419
12420 M-z i
12421 \begin_inset Newline newline
12422 \end_inset
12423
12424
12425 \family default
12426 新しい屋内(INTERIOR)カメラの設定を指定します。この後には、かならずDAYやNIGHTなどを指定して、必要な照明を定義します。この行はすべて大文字で書き
12427 ます。
12428 \end_layout
12429
12430 \begin_layout Itemize
12431
12432 \family sans
12433 屋外:
12434 \begin_inset space \hfill{}
12435 \end_inset
12436
12437 M-z e
12438 \begin_inset Newline newline
12439 \end_inset
12440
12441
12442 \family default
12443 屋外(EXTERIOR)カメラの設定を指定します。この行はすべて大文字で書きます。
12444 \end_layout
12445
12446 \begin_layout Itemize
12447
12448 \family sans
12449 話者
12450 \begin_inset space \hfill{}
12451 \end_inset
12452
12453 M-z s
12454 \begin_inset Newline newline
12455 \end_inset
12456
12457
12458 \family default
12459 話す役。
12460 \end_layout
12461
12462 \begin_layout Itemize
12463
12464 \family sans
12465 括弧付き
12466 \begin_inset space \hfill{}
12467 \end_inset
12468
12469 M-z p
12470 \begin_inset Newline newline
12471 \end_inset
12472
12473 話者
12474 \family default
12475 への指示。自動的に括弧()が挿入されますが、\SpecialChar LyX
12476 上で表示されるのは、左括弧( のみです。印刷出力には右括弧も表示されます。
12477 \end_layout
12478
12479 \begin_layout Itemize
12480
12481 \family sans
12482 対話
12483 \begin_inset space \hfill{}
12484 \end_inset
12485
12486 M-z d
12487 \begin_inset Newline newline
12488 \end_inset
12489
12490 話者
12491 \family default
12492 が話す内容。
12493 \end_layout
12494
12495 \begin_layout Itemize
12496
12497 \family sans
12498 画面遷移
12499 \begin_inset space \hfill{}
12500 \end_inset
12501
12502 M-z t
12503 \begin_inset Newline newline
12504 \end_inset
12505
12506
12507 \family default
12508 カメラの動きの指示。例:CUT TO:。
12509 \end_layout
12510
12511 \begin_layout Itemize
12512
12513 \family sans
12514 フェイドアウト:
12515 \begin_inset space \hfill{}
12516 \end_inset
12517
12518 M-z S-I
12519 \end_layout
12520
12521 \begin_layout Itemize
12522
12523 \family sans
12524 著者
12525 \begin_inset space \hfill{}
12526 \end_inset
12527
12528 M-z S-A
12529 \end_layout
12530
12531 \begin_layout Itemize
12532
12533 \family sans
12534 タイトル
12535 \begin_inset space \hfill{}
12536 \end_inset
12537
12538 M-z S-T
12539 \end_layout
12540
12541 \begin_layout Itemize
12542
12543 \family sans
12544 右寄せ住所
12545 \begin_inset space \hfill{}
12546 \end_inset
12547
12548 M-z r
12549 \end_layout
12550
12551 \begin_layout Subsection
12552 脚本で使われる特別な用語
12553 \end_layout
12554
12555 \begin_layout Itemize
12556 (O.S) — off screen
12557 \end_layout
12558
12559 \begin_layout Itemize
12560 (V.0) — voice over
12561 \end_layout
12562
12563 \begin_layout Itemize
12564 b.g.
12565  — background
12566 \end_layout
12567
12568 \begin_layout Itemize
12569 C.U.
12570  — close-up
12571 \end_layout
12572
12573 \begin_layout Itemize
12574 PAN — camera movement
12575 \end_layout
12576
12577 \begin_layout Itemize
12578 INSERT — cut to close-up of
12579 \end_layout
12580
12581 \begin_layout Section
12582 ijmpcおよびijmpd
12583 \end_layout
12584
12585 \begin_layout Standard
12586
12587 \noun on
12588 Panayotis Papasotiriou
12589 \noun default
12590
12591 \end_layout
12592
12593 \begin_layout Subsection
12594 概観
12595 \end_layout
12596
12597 \begin_layout Standard
12598 ijpmcパッケージは、
12599 \emph on
12600 International Journal of Modern Physics C
12601 \emph default
12602 への電子投稿を可能にするためのマクロ集です。同様に、ijpmdパッケージは、
12603 \emph on
12604 International Journal of Modern Physics D
12605 \emph default
12606 へ投稿する現行を作成するためのものです。両誌ともWorld Scientific社の刊行です。対応する文書クラス名は、それぞれ
12607 \family typewriter
12608 ws-ijmpc.cls
12609 \family default
12610 および
12611 \family typewriter
12612 ws-ijmpd.cls
12613 \family default
12614 です。これらのファイルは、著者のための指針とともに、
12615 \begin_inset Flex URL
12616 status collapsed
12617
12618 \begin_layout Plain Layout
12619
12620 http://www.worldscinet.com/ijmpc/mkt/guidelines.shtml
12621 \end_layout
12622
12623 \end_inset
12624
12625 および
12626 \begin_inset Flex URL
12627 status collapsed
12628
12629 \begin_layout Plain Layout
12630
12631 http://www.worldscinet.com/ijmpd/mkt/guidelines.shtml
12632 \end_layout
12633
12634 \end_inset
12635
12636 の各サイトからダウンロードすることができます。両パッケージは、標準「article」パッケージの修正版であり、両者は(一部を除き)ほぼ同一です。\SpecialChar LyX
12637 は、これらのパッ
12638 ケージのほとんどの機能をサポートしています。私は両誌へ投稿する論文を\SpecialChar LyX
12639 で書き上げましたが、何らの問題も生じませんでした。
12640 \end_layout
12641
12642 \begin_layout Subsection
12643 論文を書く
12644 \end_layout
12645
12646 \begin_layout Standard
12647 通常と同じく、論文を書く上で最も易しい方法は、ひな型を使って書き始めることです。
12648 \family sans
12649 ファイル\SpecialChar menuseparator
12650 新規(ひな型使用)
12651 \family default
12652 をクリックして、ひな型
12653 \family typewriter
12654 ijmpc.lyx
12655 \family default
12656 もしくは
12657 \family typewriter
12658 ijmpd.lyx
12659 \family default
12660 を選択してください。すると、原稿で良く使用されるフィールドを含んだ、ほぼ空の文書ができますので、既存のフィールド(鍵括弧
12661 \family typewriter
12662 <>
12663 \family default
12664 を含む)を正しい情報で置き換えてください。以下の各点にご留意ください。
12665 \end_layout
12666
12667 \begin_layout Enumerate
12668 両パッケージでは、フォント寸法や文書のページ様式を変更することが禁じられているので、\SpecialChar LyX
12669 中でこれらを変更することはできません。
12670 \end_layout
12671
12672 \begin_layout Enumerate
12673 文書言語は変更してはいけません。論文をプレビューする前に、babelパッケージが使用されていないことを確認してください。これは、
12674 \family sans
12675 ツール\SpecialChar menuseparator
12676 設定
12677 \family default
12678 をクリックして、
12679 \family sans
12680 言語オプション
12681 \family default
12682 タブを選択し、言語設定で
12683 \family sans
12684 Babelを使う
12685 \family default
12686 チェックボックスを無効にしてから、
12687 \family sans
12688 適用
12689 \family default
12690 をクリックすれば、設定することができます(この変更を固定するなら
12691 \family sans
12692 保存
12693 \family default
12694 を押してください)。
12695 \end_layout
12696
12697 \begin_layout Enumerate
12698 キーワードを定義するに際しては、「キーワード」様式を用いなくてはなりません。
12699 \end_layout
12700
12701 \begin_layout Enumerate
12702 ijmpcパッケージが提供する「分類コード」様式は、PACS番号のような分類コードを定義するのに使用することができます。この機能は、ijmpdパッケージではサポ
12703 ートされていませんので、ご注意ください。
12704 \end_layout
12705
12706 \begin_layout Enumerate
12707 「定義」「ステップ」「例」「注記」「記法」「定理」「証明」「系」「補題」「命題」「命題(Prop)」「問題」「主張」「予想」といった新しい環境を使用することがで
12708 きます。これらの使い方は、大凡自明でしょう。\SpecialChar LyX
12709 は、これらの環境をすべてサポートし、それぞれについて、適切なラベルと文字様式および連番スキームを使用します。
12710 \end_layout
12711
12712 \begin_layout Enumerate
12713 両パッケージは、単純な引用を使用しますので、natbibパッケージは使用してはなりません。\SpecialChar LyX
12714 中では、引用参照は通常通り表示されますが、出力では上付き文字として表示
12715 されます。引用に通常の本文を使用したい場合には、「See Ref.
12716 \begin_inset space \space{}
12717 \end_inset
12718
12719
12720 \family typewriter
12721
12722 \backslash
12723 refcite{
12724 \family default
12725
12726 \begin_inset Flex Ruby
12727 status collapsed
12728
12729 \begin_layout Plain Layout
12730
12731 \family typewriter
12732
12733 \family default
12734
12735 \begin_inset Argument post:1
12736 status collapsed
12737
12738 \begin_layout Plain Layout
12739 キー
12740 \end_layout
12741
12742 \end_inset
12743
12744
12745 \end_layout
12746
12747 \end_inset
12748
12749
12750 \family typewriter
12751 }
12752 \family default
12753 」のように
12754 \family typewriter
12755 refcite
12756 \family default
12757 コマンドを使用してください。
12758 \end_layout
12759
12760 \begin_layout Enumerate
12761 両パッケージには、「謝辞」環境がありません。謝辞を置くには、「節*」環境を使用してください。
12762 \end_layout
12763
12764 \begin_layout Enumerate
12765 付録は、論文中、謝辞の
12766 \emph on
12767
12768 \emph default
12769 かつ書誌情報の
12770 \emph on
12771
12772 \emph default
12773 であれば、入れることができます。\SpecialChar LyX
12774 上では、「付録領域」という特別な環境があり、これを使って付録の開始位置を指定することができます。この環境は空のままにしておかなく
12775 てはなりません。この環境は、\SpecialChar LaTeX
12776 コマンドを書き出すだけで、実際に出力は行いません。\SpecialChar LyX
12777 上では、青字で「Appendix」という単語が表示され、この箇所より後の節はすべて
12778 付録であることを明示します。「付録領域」は、最初の付録の前に
12779 \emph on
12780 なくてはならない
12781 \emph default
12782 ことに注意してください。さもなくば、出力中において、付録はすべて通常の節として連番が振られてしまいます。
12783 \end_layout
12784
12785 \begin_layout Enumerate
12786 ijmpcおよびijmpdパッケージは、表キャプションを実装するのに
12787 \family typewriter
12788 tbl
12789 \family default
12790 コマンドを使用します。そのため、\SpecialChar LyX
12791 が作成した表は正しく印字されますが、そのキャプションは無視されます。しかし、\SpecialChar TeX
12792 コードを少し使えば、この問題を回避して、キャプション
12793 を望み通り印字することができるようになります。そうするには、表フロートを通常通り作成して、キャプションを削除し、代わりに\SpecialChar TeX
12794 コードで
12795 \family typewriter
12796
12797 \backslash
12798 tbl{表キャプション}{
12799 \family default
12800 (ママ)と入れます。そこに表の内容を入れて、直後を\SpecialChar TeX
12801 コード
12802 \family typewriter
12803 }
12804 \family default
12805 で閉じてください。このからくりがどのように実装されているかを見るには、ひな型ファイルに入っている表の例を精査してみてください。別の方法としては、表キャプションが
12806 欲しい場合に、表フロート全体を
12807 \family typewriter
12808 .tex
12809 \family default
12810 ファイルに収め、このファイルを\SpecialChar LyX
12811 文書に取り込んでください(
12812 \family sans
12813 挿入\SpecialChar menuseparator
12814 ファイル\SpecialChar menuseparator
12815 子文書
12816 \family default
12817 )。表フロートの作り方についての詳細は、各パッケージに含まれている
12818 \family typewriter
12819 ws-ijmpc.tex
12820 \family default
12821 または
12822 \family typewriter
12823 ws-ijmpd.tex
12824 \family default
12825 ファイルをご覧ください。
12826 \end_layout
12827
12828 \begin_layout Subsection
12829 原稿を投稿するための準備
12830 \end_layout
12831
12832 \begin_layout Standard
12833 論文を投稿する前には、\SpecialChar LyX
12834 文書を\SpecialChar LaTeX
12835 ファイルに書き出し(
12836 \family sans
12837 ファイル\SpecialChar menuseparator
12838 書き出し\SpecialChar menuseparator
12839 \SpecialChar LaTeX
12840
12841 \family default
12842 )
12843 \begin_inset Foot
12844 status open
12845
12846 \begin_layout Plain Layout
12847 実は、\SpecialChar LaTeX
12848  (plain)とpdflatexとの間で選択ができます。論文を準備するのにpdflatexを使用しようとするのであれば、取り込んである画像がPDF形式に
12849 変換され、pdflatexで使用できるように、pdflatexオプションを指定しなくてはなりません。
12850 \end_layout
12851
12852 \end_inset
12853
12854 、その
12855 \family typewriter
12856 .tex
12857 \family default
12858 ファイルに以下の変更を加える必要があります。
12859 \end_layout
12860
12861 \begin_layout Enumerate
12862
12863 \family typewriter
12864
12865 \backslash
12866 documentclass
12867 \family default
12868 コマンドより前にあるコメント行を削除する。
12869 \end_layout
12870
12871 \begin_layout Enumerate
12872 自身で明示的に\SpecialChar LaTeX
12873 プリアンブルに置いたコマンドを除き、
12874 \family typewriter
12875
12876 \backslash
12877 makeatletter
12878 \family default
12879 コマンドと
12880 \family typewriter
12881
12882 \backslash
12883 makeatother
12884 \family default
12885 コマンドの間にあるものをすべて削除する。
12886 \end_layout
12887
12888 \begin_layout Standard
12889 こうして修正を加えた
12890 \family typewriter
12891 .tex
12892 \family default
12893 ファイルを保存し、必要な回数\SpecialChar LaTeX
12894 で処理してください。それによって得られた
12895 \family typewriter
12896 .dvi
12897 \family default
12898 文書も確認された方がよろしいでしょう。
12899 \end_layout
12900
12901 \begin_layout Subsection
12902 \SpecialChar TeX
12903 コードの使用
12904 \end_layout
12905
12906 \begin_layout Standard
12907 \SpecialChar TeX
12908 コードを使用するのは、2つのコマンドに限られ、これらは文書の最初に置かれなくてはなりません。論文をひな型
12909 \family typewriter
12910 ijmpc.lyx
12911 \family default
12912 または
12913 \family typewriter
12914 ijmpd.lyx
12915 \family default
12916 を使用して書き始めた場合には、これら必要な\SpecialChar TeX
12917 コードは、すでに書き込まれています。通常、これらを削除する必要はありません。2つのうち1番めの\SpecialChar TeX
12918 コードのみが、奇数ページ
12919 および偶数ページの上部に印字する情報(それぞれ著者名と論文の短縮タイトル)を指定するために、修正する必要があります。この\SpecialChar TeX
12920 コードは、
12921 \family typewriter
12922
12923 \backslash
12924 markboth{著者名}{論文の短縮タイトル}
12925 \family default
12926 という形である必要があります。
12927 \end_layout
12928
12929 \begin_layout Section
12930 iopart
12931 \end_layout
12932
12933 \begin_layout Standard
12934
12935 \noun on
12936 Uwe Stöhr
12937 \noun default
12938
12939 \end_layout
12940
12941 \begin_layout Subsection
12942 概要
12943 \end_layout
12944
12945 \begin_layout Standard
12946 iopartパッケージは、Institute of Physics(イギリス物理学会)発行の学術誌へ電子的に投稿する原稿を作成するための文書クラスを提供していま
12947 す。iopartクラスを使用した論文作成方法の著者用説明書は、ウェブサイト
12948 \begin_inset Flex URL
12949 status collapsed
12950
12951 \begin_layout Plain Layout
12952
12953 ftp://ftp.iop.org/pub/journals/latex2e
12954 \end_layout
12955
12956 \end_inset
12957
12958 からiopartパッケージとともにダウンロード可能です。
12959 \end_layout
12960
12961 \begin_layout Subsection
12962 論文を書く
12963 \end_layout
12964
12965 \begin_layout Standard
12966 論文を書くもっとも簡単な方法は、\SpecialChar LyX
12967 の用例ファイルフォルダにある
12968 \emph on
12969 IOP-article.lyx
12970 \emph default
12971 を土台にすることです。このファイルを開き、新しい名前で保存して、書き始めてください。この用例ファイルは、特定の環境の使用法についても説明しています。もっとも重要
12972 な助言として、以下の点にご注意ください。
12973 \end_layout
12974
12975 \begin_layout Itemize
12976 文書がPDF・PS・DVIにコンパイルできるようにするためには、文書設定の
12977 \family sans
12978 数式オプション
12979 \family default
12980 で、二つの
12981 \family sans
12982 AMS mathパッケージを使う
12983 \family default
12984 関連オプションが有効になっていないことを確認してください!
12985 \end_layout
12986
12987 \begin_layout Itemize
12988 タイトル環境の選択如何によって、論文の種類が定義されます。種類毎に以下の環境をタイトルに使用してください。
12989 \begin_inset Separator parbreak
12990 \end_inset
12991
12992
12993 \end_layout
12994
12995 \begin_deeper
12996 \begin_layout Itemize
12997 論文用には
12998 \family sans
12999 タイトル
13000 \end_layout
13001
13002 \begin_layout Itemize
13003 Review用には
13004 \family sans
13005 Review
13006 \end_layout
13007
13008 \begin_layout Itemize
13009 Topical review用には
13010 \family sans
13011 Topical
13012 \end_layout
13013
13014 \begin_layout Itemize
13015 Comment用には
13016 \family sans
13017 Comment
13018 \end_layout
13019
13020 \begin_layout Itemize
13021 Note用には
13022 \family sans
13023 注釈
13024 \end_layout
13025
13026 \begin_layout Itemize
13027 論文用には
13028 \family sans
13029 Paper
13030 \family default
13031 (タイトルと同じ)
13032 \end_layout
13033
13034 \begin_layout Itemize
13035 Preliminary communication用には
13036 \family sans
13037 Prelim
13038 \end_layout
13039
13040 \begin_layout Itemize
13041 Rapid communication用には
13042 \family sans
13043 Rapid
13044 \end_layout
13045
13046 \begin_layout Itemize
13047 編集者へのLetterには
13048 \family sans
13049 書簡
13050 \end_layout
13051
13052 \end_deeper
13053 \begin_layout Itemize
13054
13055 \family sans
13056 書簡
13057 \family default
13058 以外のタイトル環境には、すべて短縮タイトルをつけることもできます。
13059 \end_layout
13060
13061 \begin_layout Itemize
13062 \SpecialChar LyX
13063 では直接にサポートされていませんが、一般的なタイトル環境として
13064 \family sans
13065 Article
13066 \family default
13067 があります。執筆する文書が、他のタイトル型にそぐわない場合には、\SpecialChar TeX
13068 コードでこれを指定することができます。
13069 \end_layout
13070
13071 \begin_layout Standard
13072 特別な表や数式組版に関するヒントなど、詳しい情報については、IOP著者用ガイドラインを参照してください。
13073 \end_layout
13074
13075 \begin_layout Section
13076 Kluwer
13077 \end_layout
13078
13079 \begin_layout Standard
13080
13081 \noun on
13082 Panayotis Papasotiriou
13083 \noun default
13084
13085 \end_layout
13086
13087 \begin_layout Subsection
13088 概要
13089 \end_layout
13090
13091 \begin_layout Standard
13092 Kluwerパッケージは、Kluwer Academic Publishers社が発行する学術誌への電子投稿を可能にするために、同社が作成したマクロ集です。同社
13093 の発行誌のうち、(少なくとも私の専門内で)もっともよく知られているものは、
13094 \emph on
13095 Astrophysics and Space Science
13096 \emph default
13097 (『宇宙物理学と宇宙科学』)と
13098 \emph on
13099 Solar Physics
13100 \emph default
13101 (『太陽系物理学』)ですが、他にも多くの学術誌があります(
13102 \begin_inset Flex URL
13103 status collapsed
13104
13105 \begin_layout Plain Layout
13106
13107 http://www.wkap.nl/jrnllist.htm/JRNLHOME
13108 \end_layout
13109
13110 \end_inset
13111
13112 に全覧があります)。Kluwerパッケージは、
13113 \begin_inset Flex URL
13114 status collapsed
13115
13116 \begin_layout Plain Layout
13117
13118 http://www.wkap.nl/kaphtml.htm/STYLEFILES
13119 \end_layout
13120
13121 \end_inset
13122
13123 からダウンロードできます。完全なユーザーの手引きも同パッケージ内に収録されています(個別にダウンロードすることも可能です)。
13124 \end_layout
13125
13126 \begin_layout Standard
13127 \SpecialChar LyX
13128 は、このパッケージの機能の多くをサポートしていますが、すべてではありません。しかし、\SpecialChar TeX
13129 コードを必要とするのは、パッケージ中のいくつかの「変わった」コマンドだけにな
13130 りました(
13131 \begin_inset CommandInset ref
13132 LatexCommand ref
13133 reference "subsec:kluwer_peculiarities"
13134
13135 \end_inset
13136
13137 参照)。最近、私は\SpecialChar LyX
13138 を使って書いた論文を
13139 \emph on
13140 Astrophysics and Space Science
13141 \emph default
13142 に投稿しましたが、何らの問題も発生しませんでした。
13143 \end_layout
13144
13145 \begin_layout Subsection
13146 論文を書く
13147 \end_layout
13148
13149 \begin_layout Standard
13150 論文を書き始めるには、ひな型ファイルKluwerを使うのが最も簡単です。
13151 \family sans
13152 ファイル\SpecialChar menuseparator
13153 新規(ひな型使用)
13154 \family default
13155 をクリックし、ひな型
13156 \family typewriter
13157 kluwer.lyx
13158 \family default
13159 を選択してください。これは、原稿に通常必要となる各フィールドと、それらの使用法が短く書かれただけの、(ほとんど)何も書かれていない文書です。他のテンプレートと同
13160 様に、既存の文章を(括弧
13161 \family typewriter
13162 <>
13163 \family default
13164 を含む)正しい情報で上書きしてください。
13165 \end_layout
13166
13167 \begin_layout Subsection
13168 投稿の準備
13169 \end_layout
13170
13171 \begin_layout Standard
13172 AAS\SpecialChar TeX
13173 パッケージと同様、論文を投稿する前に、以下のような「後処理」を行う必要があります。
13174 \end_layout
13175
13176 \begin_layout Enumerate
13177
13178 \family sans
13179 ファイル\SpecialChar menuseparator
13180 書き出し\SpecialChar menuseparator
13181 LateX
13182 \family default
13183 をクリックして、論文を\SpecialChar LaTeX
13184 ファイルに書き出す。
13185 \end_layout
13186
13187 \begin_layout Enumerate
13188 生成された
13189 \family typewriter
13190 .tex
13191 \family default
13192 ファイルに、テキストエディタを使用して、以下のような変更を加える。
13193 \begin_inset Separator parbreak
13194 \end_inset
13195
13196
13197 \end_layout
13198
13199 \begin_deeper
13200 \begin_layout Enumerate
13201
13202 \family typewriter
13203
13204 \backslash
13205 documentclass
13206 \family default
13207 コマンドより前にあるコメント行を削除する。
13208 \end_layout
13209
13210 \begin_layout Enumerate
13211 意図的に\SpecialChar LaTeX
13212 プリアンブルに加えたコマンドを除き、
13213 \family typewriter
13214
13215 \backslash
13216 makeatletter
13217 \family default
13218 から 
13219 \family typewriter
13220
13221 \backslash
13222 makeatother
13223 \family default
13224 の間にあるものを、これらのコマンドも含め、すべて削除する。
13225 \end_layout
13226
13227 \begin_layout Standard
13228 変更した
13229 \family typewriter
13230 .tex
13231 \family default
13232 ファイルを保存する。
13233 \end_layout
13234
13235 \end_deeper
13236 \begin_layout Enumerate
13237 この
13238 \family typewriter
13239 .tex
13240 \family default
13241 ファイルを必要な回数(通常3回以内)だけ\SpecialChar LaTeX
13242 にかける。
13243 \end_layout
13244
13245 \begin_layout Enumerate
13246 生成された
13247 \family typewriter
13248 .dvi
13249 \family default
13250 ファイルを
13251 \family sans
13252 xdvi
13253 \family default
13254 などを使って開き、問題がないか確認する(間違いをしていない限り問題ないはずです)。
13255 \end_layout
13256
13257 \begin_layout Subsection
13258 Kluwerパッケージの「風変わり」な特徴
13259 \begin_inset CommandInset label
13260 LatexCommand label
13261 name "subsec:kluwer_peculiarities"
13262
13263 \end_inset
13264
13265
13266 \end_layout
13267
13268 \begin_layout Standard
13269 Kluwerパッケージには、以下のような「風変わりな」特徴があります。
13270 \end_layout
13271
13272 \begin_layout Enumerate
13273 複数の論文を1つの\SpecialChar LaTeX
13274 ファイルへ入れることができます
13275 \begin_inset Foot
13276 status collapsed
13277
13278 \begin_layout Plain Layout
13279 わざわざこんなことをする必要はないでしょう。
13280 \end_layout
13281
13282 \end_inset
13283
13284 。各論文は、「article」環境で囲まなくてはなりません。残念ながら、1つの論文だけを書く場合でも、この環境を省略することはできません。つまり、各論文は
13285 \family typewriter
13286
13287 \backslash
13288 begin{article}
13289 \family default
13290 で始まり、
13291 \family typewriter
13292
13293 \backslash
13294 end{article}
13295 \family default
13296 で終わります。この環境を\SpecialChar LyX
13297 に実装することも可能でしたが、醜い上に初心者を混乱させる可能性があるので、実装することはしませんでした。したがって、これらの命令(
13298 \family typewriter
13299
13300 \backslash
13301 begin{article}
13302 \family default
13303
13304 \family typewriter
13305
13306 \backslash
13307 end{article}
13308 \family default
13309 )は、直接本文中に入力して、\SpecialChar LaTeX
13310 コード(「\SpecialChar TeX
13311 コード」のことです)としてマークする必要があります。
13312 \end_layout
13313
13314 \begin_layout Enumerate
13315 論文の冒頭に置く情報(タイトル・サブタイトル・著者名・所属・ヘッダ用タイトル・ヘッダ用著者名・概要・キーワード)は、「opening」とよばれる環境に入れなくて
13316 はなりません。これは\SpecialChar LyX
13317 では実装されていませんので、タイトルやサブタイトルなどは、2つの\SpecialChar TeX
13318 コード行(
13319 \family typewriter
13320
13321 \backslash
13322 begin{opening}
13323 \family default
13324 および
13325 \family typewriter
13326
13327 \backslash
13328 end{opening}
13329 \family default
13330 )の間に入れる必要があります。
13331 \end_layout
13332
13333 \begin_layout Enumerate
13334 ユーザーの手引きによれば、書誌情報の各項目のラベルは、
13335 \family typewriter
13336
13337 \begin_inset Newline newline
13338 \end_inset
13339
13340
13341 \backslash
13342 protect
13343 \backslash
13344 citeauthoryear{
13345 \family default
13346 \emph on
13347 著者名
13348 \family typewriter
13349 \emph default
13350 }{
13351 \family default
13352 \emph on
13353
13354 \family typewriter
13355 \emph default
13356 }
13357 \family default
13358  と書く必要があります。
13359 \end_layout
13360
13361 \begin_layout Standard
13362 ひな型
13363 \family typewriter
13364 kluwer.lyx
13365 \family default
13366 は、これらの風変わりな点がすべて考慮されています。このひな型を使用して、論文を新たに書きはじめる場合には、特別なことを行う必要はありません。以下の点にのみ留意し
13367 てください。
13368 \end_layout
13369
13370 \begin_layout Enumerate
13371 ひな型にある\SpecialChar TeX
13372 コードを削除しないでください。
13373 \end_layout
13374
13375 \begin_layout Enumerate
13376 新しい書誌情報項目を入力する場合には、ひな型に例示されている書誌情報項目をコピーして、必要に応じて修正してください。
13377 \end_layout
13378
13379 \begin_layout Section
13380 Koma-Script
13381 \end_layout
13382
13383 \begin_layout Standard
13384
13385 \noun on
13386 Bernd Rellermeyer
13387 \noun default
13388
13389 \end_layout
13390
13391 \begin_layout Subsection
13392 概要
13393 \end_layout
13394
13395 \begin_layout Standard
13396 \SpecialChar LyX
13397 の文書クラス
13398 \emph on
13399 article (koma-script)
13400 \emph default
13401
13402 \emph on
13403 report (koma-script)
13404 \emph default
13405
13406 \emph on
13407 book
13408 \emph default
13409  
13410 \emph on
13411 (koma-script)
13412 \emph default
13413
13414 \emph on
13415 letter
13416 \emph default
13417  
13418 \emph on
13419 (koma-script)
13420 \emph default
13421 は、それぞれKoma-Scriptファミリーの\SpecialChar LaTeX
13422 文書クラス
13423 \family typewriter
13424 scrartcl.cls
13425 \family default
13426
13427 \family typewriter
13428 scrreprt.cls
13429 \family default
13430
13431 \family typewriter
13432 scrbook.cls
13433 \family default
13434
13435 \family typewriter
13436 scrlettr.cls
13437 \family default
13438 に対応しています。これらは、標準文書クラス
13439 \family typewriter
13440 article.cls
13441 \family default
13442
13443 \family typewriter
13444 report.cls
13445 \family default
13446
13447 \family typewriter
13448 book.cls
13449 \family default
13450
13451 \family typewriter
13452 letter.cls
13453 \family default
13454 の代替物であり、これらよりも多くの点でヨーロッパに於ける活版印刷の慣例に合致します。
13455 \end_layout
13456
13457 \begin_layout Itemize
13458 標準文字寸法は、
13459 \emph on
13460 article (koma-script)
13461 \emph default
13462
13463 \emph on
13464 report (koma-script)
13465 \emph default
13466
13467 \emph on
13468 book (koma-script)
13469 \emph default
13470 で11pt、
13471 \emph on
13472 letter (koma-script)
13473 \emph default
13474 で12ptです。
13475 \end_layout
13476
13477 \begin_layout Itemize
13478 見出しや箇条書き(記述)環境のラベル、および
13479 \emph on
13480 letter (koma-script)
13481 \emph default
13482 文書クラスの要素の多くでは、ボールド体サンセリフフォントが使われます
13483 \begin_inset Foot
13484 status collapsed
13485
13486 \begin_layout Plain Layout
13487 ボールド体サンセリフフォントには、古いcmフォントと新しいecフォントの間に大きな違いがあり、特に見出しの表示の違いが際立ちます。比較すると、ecボールドサンセ
13488 リフフォントの方が、少し細く見えます。ecフォントを使用する際に「通常の」外観が欲しい場合には、
13489 \shape smallcaps
13490 Walter Schmidt
13491 \shape default
13492 作の\SpecialChar LaTeX
13493 パッケージ
13494 \family typewriter
13495 cmsd.sty
13496 \family default
13497 が役立ちます。
13498 \end_layout
13499
13500 \end_inset
13501
13502 。章見出しの連番は、節見出しの連番と同様に行われ、別行立てで「 Chapter\SpecialChar ldots
13503 」という行がつきません。さらに、多くのオプションによって、見出しの外観を修正するこ
13504 とができます(\SpecialChar LyX
13505 では、
13506 \family sans
13507 文書\SpecialChar menuseparator
13508 設定
13509 \family default
13510 ダイアログの
13511 \family sans
13512 クラスオプション
13513 \family default
13514 フィールドで指定します)。これらのオプションの独語での詳細な説明が、Koma-Scriptの取扱説明書
13515 \emph on
13516 scrguide
13517 \emph default
13518 にあります。
13519 \end_layout
13520
13521 \begin_layout Itemize
13522 Koma-Script文書クラスで、印字部分をデザインする主な方法は、
13523 \family sans
13524 BCOR
13525 \family default
13526 オプションまたは
13527 \family sans
13528 DIV
13529 \family default
13530 オプションを使う方法です(\SpecialChar LyX
13531 では、
13532 \family sans
13533 文書\SpecialChar menuseparator
13534 設定
13535 \family default
13536 ダイアログの
13537 \family sans
13538 クラスオプション
13539 \family default
13540 フィールドで指定します)。これらのオプションは
13541 \family sans
13542 文書\SpecialChar menuseparator
13543 設定
13544 \family default
13545 ダイアログのオプションと同様に、ページ余白を明示的に変更することができます。これらとその他印字領域オプションのドイツ語での詳細な説明が、Koma-Script取
13546 扱説明書
13547 \emph on
13548 scrguide
13549 \emph default
13550 にあります。
13551 \end_layout
13552
13553 \begin_layout Itemize
13554 Koma-Scriptファミリーの\SpecialChar LaTeX
13555 文書クラスには、多くの追加コマンドが定義されています。それらのうち、\SpecialChar LyX
13556 で意味を持つものは、対応する段落環境として実装されています
13557
13558 \end_layout
13559
13560 \begin_layout Standard
13561 Koma-Scriptファミリーの\SpecialChar LaTeX
13562 文書クラスに関する独語の詳細な説明が、Koma-Script取扱説明書
13563 \emph on
13564 scrguide
13565 \emph default
13566 にあります
13567 \begin_inset Foot
13568 status collapsed
13569
13570 \begin_layout Plain Layout
13571 英語翻訳版の
13572 \emph on
13573 screnggu
13574 \emph default
13575 もありますが、完訳ではありません。
13576 \end_layout
13577
13578 \end_inset
13579
13580 。以下の各節では、\SpecialChar LyX
13581 に関係する側面のみ説明致します。
13582 \end_layout
13583
13584 \begin_layout Subsection
13585 article (koma-script)・report (koma-script)・book (koma-script)
13586 \end_layout
13587
13588 \begin_layout Standard
13589 文書クラス
13590 \emph on
13591 article (koma-script)
13592 \emph default
13593
13594 \emph on
13595 report (koma-script)
13596 \emph default
13597
13598 \emph on
13599 book
13600 \emph default
13601  
13602 \emph on
13603 (koma-script)
13604 \emph default
13605 は、それぞれレイアウトファイル
13606 \family typewriter
13607 scrartcl.layout
13608 \family default
13609
13610 \family typewriter
13611 scrreprt.layou
13612 \family default
13613 t・
13614 \family typewriter
13615 crbook.layout
13616 \family default
13617 によって実装されています。これらは、対応する標準文書クラス
13618 \emph on
13619 article
13620 \emph default
13621
13622 \emph on
13623 report
13624 \emph default
13625
13626 \emph on
13627 book
13628 \emph default
13629 の段落環境を、若干の修正を加えた上ですべて含んでいますが、\SpecialChar LyX
13630 固有の
13631 \family sans
13632 箇条書き(一覧)
13633 \family default
13634 環境は例外であり、同じ機能を持つ新しい
13635 \family sans
13636 ラベリング
13637 \family default
13638 環境で置き換えられています。この
13639 \family sans
13640 ラベリング
13641 \family default
13642 環境以外にも、新しい段落環境が多く追加されています。これらは、
13643 \emph on
13644 letter (koma-script)
13645 \emph default
13646 には含まれていないのでご注意ください。
13647 \end_layout
13648
13649 \begin_layout Itemize
13650
13651 \family sans
13652 部(addpart)
13653 \family default
13654
13655 \family sans
13656 章(addchap)
13657 \family default
13658
13659 \family sans
13660 節(addsec)
13661 \family default
13662 :これらは、それぞれ
13663 \family sans
13664 部*
13665 \family default
13666
13667 \family sans
13668 章*
13669 \family default
13670
13671 \family sans
13672 節*
13673 \family default
13674 と同等の働きをしますが、加えて目次に項目が表示されるようになります。
13675 \family sans
13676 部(addpart)
13677 \family default
13678
13679 \family sans
13680 章(addchap)
13681 \family default
13682 は、
13683 \emph on
13684 article (koma-script)
13685 \emph default
13686 には収録されていません。
13687 \end_layout
13688
13689 \begin_layout Itemize
13690
13691 \family sans
13692 章(addchap*)
13693 \family default
13694
13695 \family sans
13696 節(addsec*)
13697 \family default
13698 :これらは、
13699 \family sans
13700 章(addchap
13701 \family default
13702 )と
13703 \family sans
13704 節(addsec)
13705 \family default
13706 とまったく同等に動作しますが、加えてランニングへッダを取り除きます。
13707 \family sans
13708 章(addchap*)
13709 \family default
13710 は、 
13711 \emph on
13712 article (koma-script)
13713 \emph default
13714 には収録されていません
13715 \begin_inset Foot
13716 status collapsed
13717
13718 \begin_layout Plain Layout
13719
13720 \emph on
13721 book (koma-script)
13722 \emph default
13723
13724 \emph on
13725 report (koma-script)
13726 \emph default
13727 には、
13728 \family typewriter
13729
13730 \backslash
13731 addpart*
13732 \family default
13733 コマンドもありますが、これは
13734 \family sans
13735 Part*
13736 \family default
13737 と同一なので、\SpecialChar LyX
13738 では実装されていません。
13739 \end_layout
13740
13741 \end_inset
13742
13743
13744 \end_layout
13745
13746 \begin_layout Itemize
13747
13748 \family sans
13749 小見出し(minisec)
13750 \family default
13751 :これは文書構造に現れない形で、続く段落の直上に標準文字寸法の見出しを付けます。
13752 \end_layout
13753
13754 \begin_layout Itemize
13755
13756 \family sans
13757 上部キャプション
13758 \family default
13759
13760 \family sans
13761 下部キャプション
13762 \family default
13763 は、ある要素の上部ないし下部にキャプションを配置する際、位置に応じて正しく余白取りを行う特別なキャプションです(組版規則に厳密に従うならば、表キャプションは、つ
13764 ねに表の上に置くべきでしょう)。また、クラスオプション
13765 \family typewriter
13766 tablecaptionsabove
13767 \family default
13768 を用いれば、キャプションを指定すると、表には
13769 \family sans
13770 上部キャプション
13771 \family default
13772 が、図には
13773 \family sans
13774 下部キャプション
13775 \family default
13776 が適用されるようになります。これを使用するためには、Koma-Script第2.8q版以上が必要です。
13777 \end_layout
13778
13779 \begin_layout Itemize
13780
13781 \family sans
13782 格言(dictum)
13783 \family default
13784 :これは、章頭などに警句を置くのに用いることができます。オプション引数(
13785 \family sans
13786 挿入\SpecialChar menuseparator
13787 短縮タイトル
13788 \family default
13789 )を用いれば、格言の作者を入れることができます。格言と作者の間は、線で区切られます。これを使用するためには、Koma-Script第2.8q版以上が必要です。
13790 \family sans
13791 格言(dictum)
13792 \family default
13793 は、
13794 \emph on
13795 article (koma-script)
13796 \emph default
13797 には収録されていません。
13798 \end_layout
13799
13800 \begin_layout Standard
13801 以下の各環境は、標準の
13802 \family sans
13803 タイトル
13804 \family default
13805
13806 \family sans
13807 著者
13808 \family default
13809
13810 \family sans
13811 日付
13812 \family default
13813 とともに文書のタイトル領域を形成します。これらは、最初の「通常の」段落よりも前に置かれる必要があります
13814 \begin_inset Foot
13815 status collapsed
13816
13817 \begin_layout Plain Layout
13818 つまり、対応する\SpecialChar LaTeX
13819 コマンドが
13820 \family typewriter
13821
13822 \backslash
13823 maketitle
13824 \family default
13825 コマンドよりも前に現れなくてはなりません。
13826 \end_layout
13827
13828 \end_inset
13829
13830 。これらの環境が2度以上使用された場合には、後に使用されたものが前のものを上書きします。つまり最後に使用したもののみが有効になります。しかしながら、
13831 \family sans
13832 タイトル
13833 \family default
13834
13835 \family sans
13836 著者
13837 \family default
13838
13839 \family sans
13840 日付
13841 \family default
13842 のような異なる環境の順序を変更しても、生成された文書には何の効果も生じません。
13843 \end_layout
13844
13845 \begin_layout Itemize
13846
13847 \family sans
13848 主題
13849 \family default
13850 :通常のタイトル部(
13851 \family sans
13852 タイトル
13853 \family default
13854
13855 \family sans
13856 著者
13857 \family default
13858
13859 \family sans
13860 日付
13861 \family default
13862 )の上に、文書の主題用の中央揃えの段落を生成します。
13863 \end_layout
13864
13865 \begin_layout Itemize
13866
13867 \family sans
13868 出版社
13869 \family default
13870 :通常のタイトル部(
13871 \family sans
13872 タイトル
13873 \family default
13874
13875 \family sans
13876 著者
13877 \family default
13878
13879 \family sans
13880 日付
13881 \family default
13882 )の下に、出版社名用の中央揃えの段落を生成します。
13883 \end_layout
13884
13885 \begin_layout Itemize
13886
13887 \family sans
13888 献呈
13889 \family default
13890
13891 \emph on
13892 report (koma-script)
13893 \emph default
13894
13895 \emph on
13896 book (koma-script)
13897 \emph default
13898 では、タイトル頁の次に、献辞用の中央揃えの段落を独立した頁として生成します。
13899 \emph on
13900 article (koma-script)
13901 \emph default
13902 の場合は、通常のタイトル部(
13903 \family sans
13904 タイトル
13905 \family default
13906
13907 \family sans
13908 著者
13909 \family default
13910
13911 \family sans
13912 日付
13913 \family default
13914 )の下に献辞用の中央揃えの段落を生成します。
13915 \end_layout
13916
13917 \begin_layout Itemize
13918
13919 \family sans
13920 タイトル頭書き
13921 \family default
13922 :通常のタイトル部(
13923 \family sans
13924 タイトル
13925 \family default
13926
13927 \family sans
13928 著者
13929 \family default
13930
13931 \family sans
13932 日付
13933 \family default
13934 )の上に、文書頭書き用の左揃えの段落を生成します。
13935 \end_layout
13936
13937 \begin_layout Itemize
13938
13939 \family sans
13940 扉裏上部
13941 \family default
13942
13943 \emph on
13944 report (koma-script)
13945 \emph default
13946 や 
13947 \emph on
13948 book (koma-script)
13949 \emph default
13950 の両面印刷において、扉裏上部に左揃え段落を生成します。片面印刷や、
13951 \emph on
13952 article (koma-script)
13953 \emph default
13954 では何の効果も生じません。
13955 \end_layout
13956
13957 \begin_layout Itemize
13958
13959 \family sans
13960 扉裏下部
13961 \family default
13962
13963 \emph on
13964 report (koma-script)
13965 \emph default
13966 や 
13967 \emph on
13968 book (koma-script)
13969 \emph default
13970 の両面印刷において、扉裏下部に左揃え段落を生成します。片面印刷や、
13971 \emph on
13972 article (koma-script)
13973 \emph default
13974 では何の効果も生じません。
13975 \end_layout
13976
13977 \begin_layout Itemize
13978
13979 \family sans
13980 追加タイトル
13981 \family default
13982 :実際の文書の前に、整形を行わない段落から成る、特殊な「汚い」ページを生成します。
13983 \end_layout
13984
13985 \begin_layout Standard
13986 文書クラス
13987 \emph on
13988 article (koma-script)
13989 \emph default
13990
13991 \emph on
13992 report (koma-script)
13993 \emph default
13994
13995 \emph on
13996 book (koma-script)
13997 \emph default
13998 の 各レイアウトファイルは、
13999 \family typewriter
14000 scrmacros.inc
14001 \family default
14002 ファイルを読み込みます。このファイルは、ユーザ環境を定義する場所として想定されています。s
14003 \family typewriter
14004 crmacros.inc
14005 \family default
14006 を、個人用レイアウトディレクトリにコピーして編集してください!
14007 \end_layout
14008
14009 \begin_layout Subsection
14010 letter (koma-script)
14011 \end_layout
14012
14013 \begin_layout Standard
14014 \noindent
14015 文書クラス
14016 \emph on
14017 letter (koma-script)
14018 \emph default
14019 は、レイアウトファイル 
14020 \family typewriter
14021 scrlettr.layout
14022 \family default
14023 で実装されています。このレイアウトファイルには、対応する標準文書クラス
14024 \emph on
14025 letter
14026 \emph default
14027 の全段落環境が、部分的に変更を加えた形で収録されていますが、\SpecialChar LyX
14028 固有環境の
14029 \family sans
14030 \SpecialChar LyX
14031 コード
14032 \family default
14033
14034 \family sans
14035 コメント
14036 \family default
14037
14038 \family sans
14039 箇条書き(一覧
14040 \family default
14041 )は、新しく
14042 \family sans
14043 ラベリング
14044 \family default
14045 環境に置き換えられています。それ以外にも、標準文書クラスとは異なり、標準環境の
14046 \family sans
14047 \SpecialChar LaTeX
14048
14049 \family default
14050
14051 \family sans
14052 引用(字下げあり)
14053 \family default
14054
14055 \family sans
14056 引用(字下げなし)
14057 \family default
14058
14059 \family sans
14060 詩句
14061 \family default
14062 が収録されています。さらに、新しいletter固有環境がたくさん追加されています。
14063 \end_layout
14064
14065 \begin_layout Standard
14066 この文書クラスで作成した書簡の外観は、様々な\SpecialChar LaTeX
14067 コマンドを\SpecialChar LaTeX
14068 プリアンブルに置くことで制御することができます
14069 \begin_inset Foot
14070 status collapsed
14071
14072 \begin_layout Plain Layout
14073 例えば、名前と住所の入った書簡ヘッダの標準的外観は、きわめて頑固です。「普通の」へッダは、プリアンブル中に以下のようなコマンドを入れることで生成することができま
14074 す。
14075 \end_layout
14076
14077 \begin_layout LyX-Code
14078
14079 \backslash
14080 firsthead{
14081 \backslash
14082 parbox[b]{
14083 \backslash
14084 textwidth}
14085 \end_layout
14086
14087 \begin_layout LyX-Code
14088   {
14089 \backslash
14090 ignorespaces 
14091 \backslash
14092 fromname
14093 \backslash
14094
14095 \backslash
14096  
14097 \backslash
14098 ignorespaces 
14099 \backslash
14100 fromaddress}} 
14101 \end_layout
14102
14103 \begin_layout LyX-Code
14104
14105 \backslash
14106 nexthead{
14107 \backslash
14108 parbox[b]{
14109 \backslash
14110 textwidth}
14111 \end_layout
14112
14113 \begin_layout LyX-Code
14114   {
14115 \backslash
14116 ignorespaces 
14117 \backslash
14118 fromname 
14119 \backslash
14120 hfill 
14121 \backslash
14122 ignorespaces 
14123 \backslash
14124 pagename
14125 \backslash
14126
14127 \end_layout
14128
14129 \begin_layout LyX-Code
14130
14131 \backslash
14132 thepage}}
14133 \end_layout
14134
14135 \end_inset
14136
14137 。これらの\SpecialChar LaTeX
14138 コマンドのドイツ語での詳細な説明は、Koma-Scriptの取扱説明書
14139 \emph on
14140 scrguide
14141 \emph default
14142 にあります。この方法で、書簡の著者は、個人用書簡レイアウトを作ることができます。
14143 \end_layout
14144
14145 \begin_layout Standard
14146
14147 \family sans
14148 書簡
14149 \family default
14150 環境および
14151 \family sans
14152 頭語
14153 \family default
14154 環境は、書簡の冒頭部を定義するもので、すべての書簡で使用しなくてはなりません。\SpecialChar LyX
14155 文書クラスでは、これらの環境を強調するために、左余白にそれぞれ
14156 \shape italic
14157 L
14158 \shape default
14159
14160 \shape italic
14161 O
14162 \shape default
14163 という文字が表示されます。同一ファイル中には、複数の書簡を書くことができます。
14164 \family sans
14165 頭語
14166 \family default
14167 環境は、同じ受取人への書簡を新しく書き出すものであり、
14168 \family sans
14169 書簡
14170 \family default
14171 環境は、新しい受取人を生成するものです。
14172 \family sans
14173 結語
14174 \family default
14175
14176 \family sans
14177 PS
14178 \family default
14179
14180 \family sans
14181 CC
14182 \family default
14183
14184 \family sans
14185 Encl
14186 \family default
14187 は、通常の段落環境なので、同一の書簡中でも何度も使用することができます。
14188 \end_layout
14189
14190 \begin_layout Itemize
14191
14192 \family sans
14193 書簡
14194 \family default
14195 :受取人のための段落をつくり、暗黙に書簡の開始を定義します。
14196 \end_layout
14197
14198 \begin_layout Itemize
14199
14200 \family sans
14201 頭語
14202 \family default
14203 :敬称のための段落をつくり、暗黙に新しい書簡を開始します。
14204 \end_layout
14205
14206 \begin_layout Itemize
14207
14208 \family sans
14209 結語
14210 \family default
14211 :結語のための段落をつくります。
14212 \end_layout
14213
14214 \begin_layout Itemize
14215
14216 \family sans
14217 PS
14218 \family default
14219 :追伸のための段落をつくります。
14220 \end_layout
14221
14222 \begin_layout Itemize
14223
14224 \family sans
14225 CC
14226 \family default
14227 :同報一覧のための段落をつくります。
14228 \end_layout
14229
14230 \begin_layout Itemize
14231
14232 \family sans
14233 Encl
14234 \family default
14235 :同封物のための段落をつくります。
14236 \end_layout
14237
14238 \begin_layout Standard
14239
14240 \family sans
14241 名前
14242 \family default
14243
14244 \family sans
14245 署名
14246 \family default
14247
14248 \family sans
14249 住所
14250 \family default
14251
14252 \family sans
14253 電話
14254 \family default
14255
14256 \family sans
14257 場所(Place
14258 \family default
14259 )・
14260 \family sans
14261 返送先住所
14262 \family default
14263
14264 \family sans
14265 配送手段(Specialmail)
14266 \family default
14267
14268 \family sans
14269 場所
14270 \family default
14271
14272 \family sans
14273 タイトル
14274 \family default
14275
14276 \family sans
14277 主題
14278 \family default
14279 は、情報入力を促すラベルの付いた入力環境で、文書クラスが適切な処理を行います
14280 \begin_inset Foot
14281 status collapsed
14282
14283 \begin_layout Plain Layout
14284 上述の
14285 \family sans
14286 書簡
14287 \family default
14288
14289 \family sans
14290 頭語
14291 \family default
14292 が、これらのような入力環境でないのは、矛盾しているように感じられるかもしれません。しかしながら、これら2つの環境は特別の意味を持っているために、これらは左余白に
14293 一文字をマークした通常の段落環境として実装しました。さらに、
14294 \family sans
14295 頭語
14296 \family default
14297 環境と
14298 \family sans
14299 結語
14300 \family default
14301 環境が著しく異なって見えると対称性が損なわれることになるのも理由の一つです。
14302 \end_layout
14303
14304 \end_inset
14305
14306 。これらの環境は、対応する
14307 \family sans
14308 頭語
14309 \family default
14310 環境の前に置く必要があります。
14311 \end_layout
14312
14313 \begin_layout Standard
14314 生成された書簡の実際の外観は、特定の環境の使い方だけではなく、他の要素にも依存するため、これらの環境をWYSIWYGとして実装することには、あまり意味がありませ
14315 ん。たとえば、
14316 \family sans
14317 署名
14318 \family default
14319 環境で入力した署名は、標準的な挙動では、同じ書簡に
14320 \family sans
14321 結語
14322 \family default
14323 環境も使用されているときのみ、書簡の出力に現れます。
14324 \family sans
14325 電話
14326 \family default
14327 環境に入力された値は、標準的な挙動では、書簡の出力には全く表示されません。書簡のヘッダを自由にデザインできることは、前出の脚注で示してあります。
14328 \end_layout
14329
14330 \begin_layout Standard
14331 入力環境は、空の段落として使うことができます。これは、たとえば
14332 \family sans
14333 署名
14334 \family default
14335 環境の場合に有効です。
14336 \family sans
14337 署名
14338 \family default
14339 環境を全く使用しない場合は、標準的な挙動では、
14340 \family sans
14341 名前
14342 \family default
14343 環境の値が署名として使用されますが、空の
14344 \family sans
14345 署名
14346 \family default
14347 環境を作成しておくと、署名の値は無定義となりません。
14348 \end_layout
14349
14350 \begin_layout Standard
14351 入力環境を使用すると、個人データ(名前や住所など)が既に入力された入力環境と、後から入力するデータの入力環境を備えた、書簡のひな型を作成することができます。
14352 \end_layout
14353
14354 \begin_layout Itemize
14355
14356 \family sans
14357 名前
14358 \family default
14359 :送り主の名前。標準的な挙動では、書簡のヘッダ部にスモールキャップ体の中央揃えの段落として表示されます。
14360 \end_layout
14361
14362 \begin_layout Itemize
14363
14364 \family sans
14365 署名
14366 \family default
14367 :送り主の署名。標準的な挙動では、
14368 \family sans
14369 結語
14370 \family default
14371 環境の下に表示されます。
14372 \family sans
14373 署名
14374 \family default
14375 環境を使用しないと、代わりに
14376 \family sans
14377 名前
14378 \family default
14379 環境の値が表示されます。
14380 \end_layout
14381
14382 \begin_layout Itemize
14383
14384 \family sans
14385 住所
14386 \family default
14387 :送り主の住所。標準的な挙動では、書簡ヘッダの送り主の名前の下に中央揃えの段落として表示されます。
14388 \end_layout
14389
14390 \begin_layout Itemize
14391
14392 \family sans
14393 電話
14394 \family default
14395 :送り主の電話番号。標準的な挙動では、\SpecialChar LaTeX
14396 変数
14397 \family typewriter
14398
14399 \backslash
14400 telephonenum
14401 \family default
14402 を設定するだけです。
14403 \end_layout
14404
14405 \begin_layout Itemize
14406
14407 \family sans
14408 場所(Place)
14409 \family default
14410 :書簡を書いた場所。
14411 \end_layout
14412
14413 \begin_layout Itemize
14414
14415 \family sans
14416 日付
14417 \family default
14418 :書簡を書いた日付。
14419 \family sans
14420 場所(Place)
14421 \family default
14422
14423 \family sans
14424 日付
14425 \family default
14426 は、標準的な挙動では、受取人フィールドの下に、単一の右揃え行として場所と日付を生成します。空の
14427 \family sans
14428 日付
14429 \family default
14430 環境を作成しておくと、
14431 \family sans
14432 場所(Place)
14433 \family default
14434 の値如何に関わらず、場所も日付も表示されません。
14435 \family sans
14436 日付
14437 \family default
14438 環境を使用しない場合には、書簡を出力した日付が使用されます。
14439 \end_layout
14440
14441 \begin_layout Itemize
14442
14443 \family sans
14444 返送先住所
14445 \family default
14446 :送り主の返送先住所。標準的な挙動では、受取人の上に小文字のサンセリフ体フォントで表示されます。
14447 \end_layout
14448
14449 \begin_layout Itemize
14450
14451 \family sans
14452 特別便
14453 \family default
14454 :特別便の情報。標準的な挙動では、受取人フィールドの上かつ返送先住所の下に、下線付きで表示されます。
14455 \end_layout
14456
14457 \begin_layout Itemize
14458
14459 \family sans
14460 場所
14461 \family default
14462 :追加情報。標準的な挙動では、受取人フィールドの下の右側に表示されます。
14463 \end_layout
14464
14465 \begin_layout Itemize
14466
14467 \family sans
14468 タイトル
14469 \family default
14470 :書簡の題名。標準的な挙動では、主題の上に大きなボールド体サンセリフフォントで表示されます。
14471 \end_layout
14472
14473 \begin_layout Itemize
14474
14475 \family sans
14476 主題
14477 \family default
14478 :書簡の主題。標準的な挙動では、
14479 \family sans
14480 頭語
14481 \family default
14482 環境の上にボールド体で表示されます。
14483 \end_layout
14484
14485 \begin_layout Standard
14486
14487 \family sans
14488 Yourref・Yourmail・Myref・顧客・インボイス
14489 \family default
14490 といった環境は、
14491 \family sans
14492 タイトル
14493 \family default
14494 行の上に「Your ref.」・「Your letter of」・「Our ref.」・「Customer no.」・「Invoice no.」・「Date」といったフ
14495 ィールド行を持つ、ビジネス書簡を作成します。日付フィールドには、
14496 \family sans
14497 日付
14498 \family default
14499 環境の値が使用されます。しかしながら、これらの「ビジネス書簡環境」の一つを使用した場合には、
14500 \family sans
14501 場所(Place)
14502 \family default
14503 の値は書簡には表示されなくなり、\SpecialChar LaTeX
14504 変数
14505 \family typewriter
14506
14507 \backslash
14508 fromplace
14509 \family default
14510 が設定させるだけになります。通常時に、受取人フィールドの下に右揃えで出力される場所と日付の出力は、抑制されます。これらのビジネス環境は、ラベル付きの入力環境とし
14511 て実装されており、対応する
14512 \family sans
14513 頭語
14514 \family default
14515 環境よりも前に置く必要があります。
14516 \end_layout
14517
14518 \begin_layout Itemize
14519
14520 \family sans
14521 Yourref
14522 \family default
14523 : Your ref.
14524 \end_layout
14525
14526 \begin_layout Itemize
14527
14528 \family sans
14529 Yourmail
14530 \family default
14531 : Your letter of.
14532 \end_layout
14533
14534 \begin_layout Itemize
14535
14536 \family sans
14537 Myref
14538 \family default
14539 : Our ref.
14540 \end_layout
14541
14542 \begin_layout Itemize
14543
14544 \family sans
14545 Customer
14546 \family default
14547 : Customer no.
14548 \end_layout
14549
14550 \begin_layout Itemize
14551
14552 \family sans
14553 Invoice
14554 \family default
14555 : Invoice no.
14556 \end_layout
14557
14558 \begin_layout Subsection
14559 新しいletterクラス:letter (koma-script v.2)
14560 \end_layout
14561
14562 \begin_layout Standard
14563 by 
14564 \noun on
14565 Jürgen Spitzmüller
14566 \begin_inset VSpace medskip
14567 \end_inset
14568
14569
14570 \end_layout
14571
14572 \begin_layout Standard
14573 \noindent
14574 Koma-Script第2.8版では、新しいletterクラス
14575 \family typewriter
14576 scrlttr2
14577 \family default
14578 が導入されたため、
14579 \family typewriter
14580 scrlettr
14581 \family default
14582 は廃止されてサポート対象外となりました。これは—\SpecialChar LaTeX
14583 側で—全く新しいインターフェイスを持っており、旧クラスとは互換性がありません。したがって、\SpecialChar LyX
14584 は両者をサポートしてい
14585 ますが、新しい方のクラスを使用することを推奨します。
14586 \end_layout
14587
14588 \begin_layout Standard
14589 このクラスは、
14590 \emph on
14591 letter (koma-script)
14592 \emph default
14593 と同一の機能に加えて、新しい機能をいくつかサポートしています。基本となる項目は、
14594 \family sans
14595 住所
14596 \family default
14597 (受取人の住所、旧レイアウトの
14598 \family sans
14599 書簡
14600 \family default
14601 と同じ)・
14602 \family sans
14603 頭語
14604 \family default
14605
14606 \family sans
14607 結語
14608 \family default
14609 です。
14610 \family sans
14611 次の住所
14612 \family default
14613 は別の書簡を新しく開始します(つまり一文書あたり複数の書簡を書くことができます)。新しく付け加えられた項目は、送り主の
14614 \family sans
14615 電子メール
14616 \family default
14617
14618 \family sans
14619 URL
14620 \family default
14621
14622 \family sans
14623 ファックス
14624 \family default
14625
14626 \family sans
14627 銀行
14628 \family default
14629 、およびヘッダに(
14630 \family sans
14631 挿入\SpecialChar menuseparator
14632
14633 \family default
14634 で)
14635 \family sans
14636 ロゴ
14637 \family default
14638 を入れることができるようになった点です。
14639 \end_layout
14640
14641 \begin_layout Standard
14642 しかしながら、もっとも大きな改善は、書簡のレイアウトを、ほとんどどんなニーズにも合わせて設定できるようになった点でしょう。これはプリアンブルか、クラスオプション
14643 として読み込まれる特別なスタイルファイル(「レタークラスオプション」、拡張子
14644 \family typewriter
14645 *.lco
14646 \family default
14647 )によって設定することができます
14648 \begin_inset Foot
14649 status collapsed
14650
14651 \begin_layout Plain Layout
14652 KOMAパッケージには、既定の
14653 \family typewriter
14654 *.lco
14655 \family default
14656 ファイルがいくつか収録されています。たとえば、ドイツの組版規則に則った
14657 \family typewriter
14658 DIN.lco
14659 \family default
14660 や、旧
14661 \family typewriter
14662 scrlettr
14663 \family default
14664 クラスの既定レイアウトを提供する
14665 \family typewriter
14666 KOMAold.lco
14667 \family default
14668 などです。たとえば後者は、
14669 \family sans
14670 文書\SpecialChar menuseparator
14671 設定\SpecialChar menuseparator
14672 文書クラス\SpecialChar menuseparator
14673 クラスオプション
14674 \family default
14675 フィールドにクラスオプション
14676 \family typewriter
14677 KOMAold
14678 \family default
14679 を加えることで読み込むことができます。
14680 \end_layout
14681
14682 \end_inset
14683
14684 。用例としては、\SpecialChar LyX
14685 に収録されているひな型
14686 \emph on
14687 koma-letter2
14688 \emph default
14689 をご覧ください。詳細な解説は、Koma-Script取扱説明書(
14690 \emph on
14691 scrguide
14692 \emph default
14693 )にあります。
14694 \end_layout
14695
14696 \begin_layout Subsection
14697 問題点
14698 \end_layout
14699
14700 \begin_layout Standard
14701 Koma-Script文書クラスを\SpecialChar LyX
14702 上に表示する上で、\SpecialChar LyX
14703 の内部処理が若干の問題を生じめます。
14704 \end_layout
14705
14706 \begin_layout Itemize
14707
14708 \family sans
14709
14710 \family default
14711 環境の章番号は、章見出しと同じ行ではなく、その上に表示されます。これは、レイアウトファイル中の
14712 \family sans
14713 Counter_Chapter
14714 \family default
14715 ラベル型に対する\SpecialChar LyX
14716 の内部処理が原因です。
14717 \end_layout
14718
14719 \begin_layout Itemize
14720
14721 \family sans
14722 章(addchap)
14723 \family default
14724
14725 \family sans
14726 節(addsec)
14727 \family default
14728 環境の見出しは、「本当の」\SpecialChar LaTeX
14729 の目次には追加されますが、\SpecialChar LyX
14730 の目次(
14731 \family sans
14732 移動
14733 \family default
14734 メニュー)には追加されません。
14735 \end_layout
14736
14737 \begin_layout Itemize
14738
14739 \emph on
14740 letter
14741 \emph default
14742 文書クラスでの段落は、垂直スペースによる段落区切りで表示され、字下げはされません。これが標準的な挙動となっていて、特別な\SpecialChar LaTeX
14743 コマンドは必要ありません。しかし、
14744 \family sans
14745 文書\SpecialChar menuseparator
14746 設定
14747 \family default
14748 ダイアログでは、対応するラジオボタンは
14749 \family sans
14750 字下げ
14751 \family default
14752 に設定されています。
14753 \family sans
14754 垂直スペース
14755 \family default
14756 は、隙間を空けるために、文書に\SpecialChar LaTeX
14757 コマンドをつねに追加するようになっていますが、この文書クラスの場合には、そのような挙動が望まれないためです。
14758 \end_layout
14759
14760 \begin_layout Section
14761 Memoir
14762 \end_layout
14763
14764 \begin_layout Standard
14765
14766 \noun on
14767 Jürgen Spitzmüller
14768 \noun default
14769
14770 \end_layout
14771
14772 \begin_layout Subsection
14773 概観
14774 \end_layout
14775
14776 \begin_layout Standard
14777 Memoirは、非常に強力で、着実に改良が加えられている文書クラスであり、フィクションとノンフィクションの文学作品用に設計されています。その目的は、ユーザーに、
14778 文書の組版に関して最大限の裁量を得させることにあります。Memoirは、標準bookクラスに基づいていますが、articleクラスをエミュレートすることもできま
14779 す(以下参照)。
14780 \end_layout
14781
14782 \begin_layout Standard
14783 Memoir開発者であるPeter Wilsonは、\SpecialChar LaTeX
14784 の世界での、多くの便利なパッケージの作者として知られていますが、それらのほとんどは、Memoirに統合されま
14785 した。このため、章のデザインや、目次や付録などのレイアウトを、はるかに簡単に行うことができます。しかしながら、\SpecialChar LyX
14786 は、これらすべての素晴らしい機能をネイティブでサポ
14787 ートしているわけではありません。これらのうちいくつかは、将来のリリースで追加されるかもしれませんが
14788 \begin_inset Foot
14789 status collapsed
14790
14791 \begin_layout Plain Layout
14792 もし提案があれば、ぜひ
14793 \begin_inset Flex URL
14794 status collapsed
14795
14796 \begin_layout Plain Layout
14797
14798 lyx-devel@lists.lyx.org
14799 \end_layout
14800
14801 \end_inset
14802
14803 までお送り下さい。
14804 \end_layout
14805
14806 \end_inset
14807
14808 、\SpecialChar LyX
14809 のフレームワークが持つ制約のために、おそらく決して追加されることのないと考えられるものも多数あります。もちろん、ネイティブな\SpecialChar LaTeX
14810 コマンド(\SpecialChar TeX
14811 コード
14812 \begin_inset Foot
14813 status collapsed
14814
14815 \begin_layout Plain Layout
14816 【参考】詳細は、第
14817 \begin_inset CommandInset ref
14818 LatexCommand ref
14819 reference "sec:LaTeXコードを挿入する"
14820
14821 \end_inset
14822
14823 節参照。
14824 \end_layout
14825
14826 \end_inset
14827
14828 )の助けを借りれば、全機能を使用できます。この節では、\SpecialChar LyX
14829 がネイティブにサポートしている機能についてのみ、列挙するものとします。詳細な説明(および他の機能)について
14830 は、Memoirクラスの詳しい取扱説明書
14831 \begin_inset Foot
14832 status collapsed
14833
14834 \begin_layout Plain Layout
14835 【参考】
14836 \begin_inset Flex URL
14837 status collapsed
14838
14839 \begin_layout Plain Layout
14840
14841 CTAN:/macros/latex/memoir/memman.pdf
14842 \end_layout
14843
14844 \end_inset
14845
14846
14847 \end_layout
14848
14849 \end_inset
14850
14851 をご覧になることをお勧めします。この取扱説明書は、本クラスのユーザーの手引きであるのみに留まらず、良い組版に関する包括的な解説であり、それ自身が良い組版の傑出し
14852 た用例となっています。
14853 \end_layout
14854
14855 \begin_layout Subsection
14856 基本的な機能と制約
14857 \end_layout
14858
14859 \begin_layout Standard
14860 Memoirは、基本的に、標準bookクラスの全機能をサポートしています。しかしながら、以下に示すような若干の違いがあります。
14861 \end_layout
14862
14863 \begin_layout Description
14864 フォント寸法: Memoirでは、9・10・11・12・14・17と、より広い範囲のフォント寸法が使用可能です。
14865 \end_layout
14866
14867 \begin_layout Description
14868 ページ様式: Memoirパッケージとfancyhdrパッケージとのコマンドの衝突のため(両パッケージは同じ名前のコマンドを定義しているため、\SpecialChar LaTeX
14869 が混乱させられます
14870 )、fancyページ様式は使用できません。その代わり、Memoirには、多くの独自のページ様式が付属してきます(
14871 \family sans
14872 文書\SpecialChar menuseparator
14873 設定\SpecialChar menuseparator
14874 ページレイアウト
14875 \family default
14876 参照)。これらを章題ページに使用したい場合には、コマンド
14877 \family typewriter
14878
14879 \backslash
14880 chapterstyle
14881 \family default
14882 を、本文またはプリアンブルに記述する必要があります(例えば、
14883 \family typewriter
14884
14885 \backslash
14886 chapterstyle{companion}
14887 \family default
14888 など)。
14889 \end_layout
14890
14891 \begin_layout Description
14892 節分け: 標準クラスでは、節分けコマンド(章・節・小節等)は、非必須引数を一つ取ることができます。これを用いて、目次やヘッダ用に別のタイトルを指定することができ
14893 ます(たとえば、タイトルが長すぎる場合などに用います)。\SpecialChar LyX
14894 では、章や節の始めで
14895 \family sans
14896 挿入\SpecialChar menuseparator
14897 短縮タイトル
14898 \family default
14899 を使えば、これを指定することができます。一方、Memoirでは、第2の非必須引数を取ることができ、目次用のタイトルとヘッダ用のタイトルの指定を分離しています。こ
14900 れを使えば、本文用と目次用とヘッダ用のタイトルの3種類を指定することができます。この機能を使用したい場合には、2つの非必須引数を入力して、最初のものに目次用、次
14901 のものにヘッダ用短縮タイトルを入れてください。
14902 \end_layout
14903
14904 \begin_layout Description
14905 目次・図一覧・表一覧: 標準クラス(および他の多くのクラス)では、目次と図一覧および表一覧は、自動的に新規頁に置かれます。Memoirは、これとは別の方針を採り
14906 ます。改頁を行いたい場合は、手動で頁区切りを入れなくてはなりません。
14907 \end_layout
14908
14909 \begin_layout Description
14910 タイトル頁: 理由は不明ですが、Memoirはタイトルページに丁付けを行います(標準クラスでは、タイトルページは「empty」様式)。タイトル頁に丁付けを行いた
14911 くない場合には、プリアンブルに
14912 \family typewriter
14913
14914 \backslash
14915 aliaspagestyle{title}{empty}
14916 \family default
14917 と入力してください。
14918 \end_layout
14919
14920 \begin_layout Description
14921 Article: クラスオプション
14922 \emph on
14923 article
14924 \emph default
14925 を用いる(
14926 \family sans
14927 文書\SpecialChar menuseparator
14928 設定\SpecialChar menuseparator
14929 クラスオプション
14930 \family default
14931 で入力)と、article様式をエミュレートできます。すなわち、(脚注・図・表等の)カウンタは、章毎にリセットされず、次の章は頁を改めず(ただし、「本物の」ar
14932 ticleクラスとは違って、頁を改めることも可)、部はbookクラスと同様に、独立の頁を使用します。
14933 \end_layout
14934
14935 \begin_layout Description
14936 Oldfontcommands: \SpecialChar LaTeX
14937 旧2.09版で使用されていた旧いフォントコマンド(
14938 \family typewriter
14939
14940 \backslash
14941 rm
14942 \family default
14943
14944 \family typewriter
14945
14946 \backslash
14947 it
14948 \family default
14949 など)は、Memoirにおいては、既定では使用することができません。Memoirがこれらのコマンドを検知すると、エラーを発して\SpecialChar LaTeX
14950 を停止させます。しかし、クラスオプ
14951 ション
14952 \emph on
14953 oldfontcommands
14954 \emph default
14955 を指定すると、これらのコマンドが容認され、エラーの代わりに警告を発するのみとなります(これによって、少なくとも\SpecialChar LaTeX
14956 は停止しなくなります)。まだ、多くのパッケージと、
14957 就中多くのBib\SpecialChar TeX
14958 スタイルファイルが、これらのコマンドを使用しているので、我々はこのオプションを既定で使うこととしました。
14959 \end_layout
14960
14961 \begin_layout Subsection
14962 追加された機能
14963 \end_layout
14964
14965 \begin_layout Standard
14966 \SpecialChar LyX
14967 でサポートされる機能(今のところそれほど多くはありません)を簡単に説明しましょう。詳しくはMemoirの取扱説明書
14968 \begin_inset Foot
14969 status collapsed
14970
14971 \begin_layout Plain Layout
14972 \begin_inset Flex URL
14973 status collapsed
14974
14975 \begin_layout Plain Layout
14976
14977 CTAN:/macros/latex/memoir/memman.pdf
14978 \end_layout
14979
14980 \end_inset
14981
14982
14983 \end_layout
14984
14985 \end_inset
14986
14987 を見てください。
14988 \end_layout
14989
14990 \begin_layout Description
14991 概要: 概要が、追加された機能として扱われているのを不思議に思われるかもしれませんが、bookクラスとしては追加された機能なのです。通常bookクラスには概要は
14992 ないのですが、memoirにはあります。これは、どこでも何回でも自由に使うことができます。
14993 \end_layout
14994
14995 \begin_layout Description
14996 章要約: この古い組版様式はご覧になったことがあるかも知れません。章の内容が、見出しの下と目次に要約されているものです(たとえば、「我らが英雄がトロヤに到着する
14997 。彼は友人を失うが、新たな友人を得る。」など)。章要約(chapterprecis)はこれを行います。したがって、章要約は章の下でのみ意味を持ちます。
14998 \end_layout
14999
15000 \begin_layout Description
15001 題辞: 題辞(epigraph)は章頭の、気の利いた標語やモットーです。題辞環境は、そのような標語を組む洗練された方法を提供します。標語本体(本文)とその著者(
15002 出典)は、短い線で区切られます。この環境には二つの引数(本文と出典)が必要なので、ここでも\SpecialChar LyX
15003 を少しだます必要があります。ここでは、2つの引数の間に、
15004 \emph on
15005 <標語>
15006 \family typewriter
15007 \emph default
15008 }{
15009 \family default
15010 \emph on
15011 <標語の著者>
15012 \emph default
15013 のように、(\SpecialChar TeX
15014 モードで)波括弧を入れなくてはなりません。
15015 \end_layout
15016
15017 \begin_layout Description
15018 詩題: Memoirには(複雑で隠喩的なものも含めて)詩を組版するための多くの機能がありますが、\SpecialChar LyX
15019 は、そのうちいくつかしかサポートしていません。詩題はその一つです
15020 。これは詩用の中央揃えタイトルで、目次にも表示されます(詩句が詩の標準環境です。Memoirには、詩句の拡張版もありますが、これらを使うためには\SpecialChar TeX
15021 コードを使用しな
15022 くてはなりません。これらの環境は通常の詩句環境の中に入れ子にしなくてはならないのですが、\SpecialChar LyX
15023 ではそれができないためです)。
15024 \end_layout
15025
15026 \begin_layout Description
15027 詩題*: 目次に現れない他は詩題と同じです。
15028 \end_layout
15029
15030 \begin_layout Section
15031 Article (mwart)・book (mwbk)・report (mwrep)
15032 \begin_inset Argument status
15033 status collapsed
15034
15035 \begin_layout Plain Layout
15036 The 
15037 \family typewriter
15038 mw
15039 \family default
15040  Classes
15041 \end_layout
15042
15043 \end_inset
15044
15045
15046 \end_layout
15047
15048 \begin_layout Standard
15049
15050 \noun on
15051 Tomasz Luczak
15052 \noun default
15053
15054 \end_layout
15055
15056 \begin_layout Standard
15057 \SpecialChar LyX
15058 文書クラス
15059 \emph on
15060 article (mwart)
15061 \emph default
15062
15063 \emph on
15064 report (mwrep)・book
15065 \emph default
15066  
15067 \emph on
15068 (mwbk)
15069 \emph default
15070 は、それぞれ\SpecialChar LaTeX
15071 文書クラス
15072 \family typewriter
15073 mwart.cls
15074 \family default
15075
15076 \family typewriter
15077 mwrep.cls
15078 \family default
15079
15080 \family typewriter
15081 mwbk.cls
15082 \family default
15083 に対応しています。これらは、標準の
15084 \family typewriter
15085 article.cls
15086 \family default
15087
15088 \family typewriter
15089 report.cls
15090 \family default
15091
15092 \family typewriter
15093 book.cls
15094 \family default
15095 を代替するものであり、多くの点で、ポーランド語の組版慣習によく適合しています。
15096 \end_layout
15097
15098 \begin_layout Standard
15099 基本的な違いは、次の点です。
15100 \end_layout
15101
15102 \begin_layout Itemize
15103 付番のない見出し(
15104 \family sans
15105 節*
15106 \family default
15107 などの星付き)も目次に加えられます。
15108 \end_layout
15109
15110 \begin_layout Itemize
15111 以下のページスタイルの追加
15112 \begin_inset Separator parbreak
15113 \end_inset
15114
15115
15116 \end_layout
15117
15118 \begin_deeper
15119 \begin_layout Description
15120 uheadings 分離線付きヘッダ
15121 \end_layout
15122
15123 \begin_layout Description
15124 myheadings 
15125 \family typewriter
15126
15127 \backslash
15128 markright
15129 \family default
15130 コマンドおよび
15131 \family typewriter
15132
15133 \backslash
15134 markboth
15135 \family default
15136 コマンドで設定するカスタムヘッダ
15137 \end_layout
15138
15139 \begin_layout Description
15140 myuheadings 分離線付きカスタムヘッダ
15141 \end_layout
15142
15143 \begin_layout Description
15144 outer ページの外側にページ番号
15145 \end_layout
15146
15147 \end_deeper
15148 \begin_layout Itemize
15149 オプション
15150 \begin_inset Separator parbreak
15151 \end_inset
15152
15153
15154 \end_layout
15155
15156 \begin_deeper
15157 \begin_layout Description
15158 rmheadings セリフ体見出し — 既定
15159 \end_layout
15160
15161 \begin_layout Description
15162 sfheadings サンセリフ体見出し
15163 \end_layout
15164
15165 \begin_layout Description
15166 authortitle タイトルページは、著者名・タイトルの順で配置 — 既定
15167 \end_layout
15168
15169 \begin_layout Description
15170 titleauthor タイトルページは、タイトル・著者名の順で配置
15171 \end_layout
15172
15173 \begin_layout Description
15174 withmarginpar ページ上に余白のための場所を確保
15175 \end_layout
15176
15177 \end_deeper
15178 \begin_layout Section
15179 Paper
15180 \end_layout
15181
15182 \begin_layout Standard
15183
15184 \family sans
15185 paper
15186 \family default
15187 文書クラスは標準
15188 \family sans
15189 article
15190 \family default
15191 クラスの代替となるものです。これは
15192 \family sans
15193 同様の
15194 \family default
15195 機能を提供しますが、サンセリフ体の節見出し・ヘッディング等を持つこちらのレイアウトの方が気に入るかも知れません。
15196 \end_layout
15197
15198 \begin_layout Section
15199 Rev\SpecialChar TeX
15200 4
15201 \end_layout
15202
15203 \begin_layout Standard
15204 by 
15205 \noun on
15206 Amir Karger
15207 \end_layout
15208
15209 \begin_layout Standard
15210 \begin_inset VSpace bigskip
15211 \end_inset
15212
15213
15214 \end_layout
15215
15216 \begin_layout Standard
15217 \noindent
15218
15219 \family sans
15220 Revtex
15221 \begin_inset space ~
15222 \end_inset
15223
15224 4
15225 \family default
15226 テキストクラスは、アメリカ物理学会のRev\SpecialChar TeX
15227  4.0(1999年5月の
15228 \begin_inset Formula $\beta$
15229 \end_inset
15230
15231 リリース)クラスで動作します。
15232 \end_layout
15233
15234 \begin_layout Standard
15235 \SpecialChar LyX
15236 には、Rev\SpecialChar TeX
15237  3.1で動作する
15238 \family sans
15239 Revtex
15240 \family default
15241 テキストクラスもあります。しかしながら、第3.1版は\SpecialChar LaTeX
15242  2.09で動作するものであり、基本的に時代遅れなものになっています。\SpecialChar LyX
15243 は\SpecialChar LaTeX2e
15244 を必要とすることから、第3.1版は\SpecialChar LyX
15245 とうまく
15246 協調しないことを意味しますが、動作するようには調整してあります。Rev\SpecialChar TeX
15247  4.0は、\SpecialChar LaTeX2e
15248 で素直に動作するようにデザインされているので、\SpecialChar LyX
15249
15250 \family sans
15251 Rev\SpecialChar TeX
15252
15253 \begin_inset space ~
15254 \end_inset
15255
15256 4
15257 \family default
15258 テキストクラスの組で使用するのは、たいへん簡単です。
15259 \end_layout
15260
15261 \begin_layout Standard
15262 この取扱説明書は、Rev\SpecialChar TeX
15263  4.0の説明書の
15264 \emph on
15265 補完
15266 \emph default
15267 として使用されることを前提としています。したがって、ここではRev\SpecialChar TeX
15268 固有マクロの説明はせず、必要な場合にはプリアンブルに何と書けば良いかを知っているものとして説明
15269 します。
15270 \end_layout
15271
15272 \begin_layout Subsection
15273 導入
15274 \end_layout
15275
15276 \begin_layout Standard
15277 Rev\SpecialChar TeX
15278  4パッケージのREADMEファイルにあるとおり、ともかくRev\SpecialChar TeX
15279  4を導入しなくてはなりません。パッケージは、The Rev\SpecialChar TeX
15280  4 Web
15281  Site 
15282 \begin_inset Flex URL
15283 status collapsed
15284
15285 \begin_layout Plain Layout
15286
15287 http://publish.aps.org/revtex4/
15288 \end_layout
15289
15290 \end_inset
15291
15292 から入手することができます。これを\SpecialChar LaTeX
15293 が検出することのできる場所に導入してください。それから、適当に選んだディレクトリ(もといクラスファイルを導入したのとは異なるデ
15294 ィレクトリ)で簡単なRev\SpecialChar TeX
15295  4文書を \SpecialChar LaTeX
15296 でコンパイルできるかどうか確認してください。この後、\SpecialChar LyX
15297 を環境構成すると、クラスファイルを検出し、Rev\SpecialChar TeX
15298 4テキストクラスが使用
15299 できるようになるはずです。
15300 \end_layout
15301
15302 \begin_layout Standard
15303 使い始めるには、
15304 \family typewriter
15305 tex2lyx
15306 \family default
15307 を使ってRev\SpecialChar TeX
15308  4文書を読み込むか、またはひな型ディレクトリにある
15309 \family sans
15310 Revtex
15311 \begin_inset space ~
15312 \end_inset
15313
15314 4
15315 \family default
15316 のひな型を使うのが、おそらく一番簡単な方法でしょう。
15317 \end_layout
15318
15319 \begin_layout Subsection
15320 プリアンブルに関すること
15321 \end_layout
15322
15323 \begin_layout Standard
15324
15325 \family typewriter
15326
15327 \backslash
15328 documentclass
15329 \family default
15330 に与える「preprint」や「aps」のような非必須引数は、他のクラス同様、
15331 \family sans
15332 文書\SpecialChar menuseparator
15333 設定\SpecialChar menuseparator
15334 文書クラス
15335 \family default
15336
15337 \family sans
15338 クラスオプション
15339 \family default
15340 フィールドに入れます。Rev\SpecialChar TeX
15341 では、少なくとも一つの非必須引数が必要なことに注意してください。
15342 \end_layout
15343
15344 \begin_layout Standard
15345
15346 \family typewriter
15347
15348 \backslash
15349 draft
15350 \family default
15351 など他のプリアンブルは、他のクラス同様、
15352 \family sans
15353 文書\SpecialChar menuseparator
15354 設定\SpecialChar menuseparator
15355 \SpecialChar LaTeX
15356 プリアンブル
15357 \family default
15358 に入れてください。
15359 \end_layout
15360
15361 \begin_layout Subsection
15362 レイアウト
15363 \end_layout
15364
15365 \begin_layout Standard
15366 レイアウトは、基本的にRev\SpecialChar TeX
15367 4.0のコマンドに対応しています。たとえば、Emailレイアウトは、
15368 \family typewriter
15369
15370 \backslash
15371 email{}
15372 \family default
15373 に対応しています。(少なくともRev\SpecialChar TeX
15374  4.0 Beta現在では)
15375 \family sans
15376 住所
15377 \family default
15378
15379 \family sans
15380 所属
15381 \family default
15382 はまったく同じものなので、両方を使う必要はありません
15383 \begin_inset Foot
15384 status collapsed
15385
15386 \begin_layout Plain Layout
15387 ついでながら、
15388 \family typewriter
15389 tex2lyx
15390 \family default
15391 は両方とも対応しているので、
15392 \family typewriter
15393
15394 \backslash
15395 address
15396 \family default
15397
15398 \family typewriter
15399
15400 \backslash
15401 affiliation
15402 \family default
15403 のどちらも翻訳することができます。
15404 \end_layout
15405
15406 \end_inset
15407
15408
15409 \end_layout
15410
15411 \begin_layout Subsection
15412 重要な注意
15413 \end_layout
15414
15415 \begin_layout Standard
15416 Rev\SpecialChar TeX
15417  4には、バグを引き起こしがちなために、気をつけなくてはならない特殊な面がいくつかあるため、\SpecialChar LyX
15418 ではさらに気をつけなくてはなりません。
15419 \end_layout
15420
15421 \begin_layout Standard
15422 Rev\SpecialChar TeX
15423 では、
15424 \family typewriter
15425
15426 \backslash
15427 thanks
15428 \family default
15429 コマンドは、
15430 \family typewriter
15431
15432 \backslash
15433 author
15434 \family default
15435 コマンドの
15436 \emph on
15437 外側
15438 \emph default
15439 に来なくてはなりません。\SpecialChar LyX
15440 では、独立した
15441 \family sans
15442 感謝
15443 \family default
15444 レイアウトがこの働きをします。直接
15445 \family sans
15446 、著者
15447 \family default
15448 レイアウトに脚注を付けてしまうと、おかしなことが起こる可能性があります。詳細については、Rev\SpecialChar TeX
15449  4の取扱説明書をご覧ください。
15450 \end_layout
15451
15452 \begin_layout Standard
15453 また、
15454 \family sans
15455 著者電子メール
15456 \family default
15457
15458 \family sans
15459 著者URL・感謝(thanks)
15460 \family default
15461 レイアウトは、
15462 \family sans
15463 著者
15464 \family default
15465 レイアウトと
15466 \family sans
15467 住所(
15468 \family default
15469 または同等の
15470 \family sans
15471 所属
15472 \family default
15473 )レイアウトの間に置かなければなりません。
15474 \family sans
15475 感謝(thanks)
15476 \family default
15477
15478 \family sans
15479 住所
15480 \family default
15481 の後に置いてしまうと、\SpecialChar LaTeX
15482 はコンパイルに失敗します。
15483 \end_layout
15484
15485 \begin_layout Subsection
15486 問題点
15487 \end_layout
15488
15489 \begin_layout Standard
15490 このレイアウトの主な問題点は、電子メールやタイトルのようなレイアウトに非必須引数を用いることができないことです(これはこのレイアウトだけの問題ではありません。例
15491 えば、節レイアウトも非必須引数を使用することができません)。これは、たとえばページヘッダにヘッダ用タイトルを設定したい場合などには、ファイルを\SpecialChar LaTeX
15492 ファイルに変換した
15493 後に(これは最終的にAPSに原稿を送る際には行わなくてはなりません)、テキストエディタを使って\SpecialChar LaTeX
15494 ファイルを編集し、非必須引数を書き加えなくてはならないということで
15495 す。これらのレイアウトがないと、
15496 \family typewriter
15497
15498 \backslash
15499 altaffiliation
15500 \family default
15501 (またそれと同等な
15502 \family typewriter
15503
15504 \backslash
15505 altaddress
15506 \family default
15507 )は使えませんので、対応するレイアウトは存在せず、手動で書き加える必要があります
15508 \begin_inset Foot
15509 status collapsed
15510
15511 \begin_layout Plain Layout
15512
15513 \emph on
15514 JMarcからの註:
15515 \emph default
15516  実は、\SpecialChar LyX
15517  1.3.0 では非必須引数を一部サポートしているのですが、このレイアウトは、まだこの機能を使うようにはアップデートされていないのです。
15518 \end_layout
15519
15520 \end_inset
15521
15522
15523 \end_layout
15524
15525 \begin_layout Section
15526 Springer学術誌(
15527 \family sans
15528 svjour)
15529 \end_layout
15530
15531 \begin_layout Standard
15532
15533 \noun on
15534 Martin Vermeer
15535 \noun default
15536
15537 \end_layout
15538
15539 \begin_layout Subsection
15540 説明
15541 \end_layout
15542
15543 \begin_layout Standard
15544 これは、Springer Verlag社発行のいくつかの学術誌で使用されている書式のレイアウトファイルです。
15545 \begin_inset Flex URL
15546 status collapsed
15547
15548 \begin_layout Plain Layout
15549
15550 http://www.springer.de/author/tex/help-journals.html
15551 \end_layout
15552
15553 \end_inset
15554
15555 に必要なクラスファイル(\SpecialChar LaTeX2e
15556 用になりました)とそれに対応する学術誌の一覧があります。このレイアウトはモジュール式になっています。つまり、全ジャーナル共通部分は
15557 \family typewriter
15558 svjour.inc
15559 \family default
15560 に実装されており、各誌個別のレイアウトファイル(たとえばJournal of Geodesy用の
15561 \family typewriter
15562 svjog.layout
15563 \family default
15564 など)から取り込むことができます。
15565 \end_layout
15566
15567 \begin_layout Standard
15568 このことは、上記の学術誌一覧にある他のSpringer誌のサポートを実装するためには、
15569 \family typewriter
15570 svjog.layout
15571 \family default
15572 に書かれている指示に従って、自作の
15573 \family typewriter
15574 sv
15575 \family default
15576 <学術誌名>
15577 \family typewriter
15578 .layout
15579 \family default
15580 を書くだけで良いことを意味します。
15581 \end_layout
15582
15583 \begin_layout Standard
15584 このレイアウトは、Journal of Geodesyに対してのみ、充分な試験が為されています。
15585 \family typewriter
15586 svjour
15587 \family default
15588
15589 \family typewriter
15590 svjog
15591 \family default
15592 は、標準\SpecialChar LyX
15593 頒布版に収録済みです。関連するクラスファイルを(Springerからダウンロードして)適切なディレクトリに導入し、\SpecialChar LaTeX
15594 を再設定した後(teTeXの場合は、必
15595 要に応じてroot権限で
15596 \family typewriter
15597 texhash
15598 \family default
15599 を実行します)、\SpecialChar LyX
15600 を環境構成すれば、動作するはずです。
15601 \end_layout
15602
15603 \begin_layout Subsection
15604 新スタイル
15605 \end_layout
15606
15607 \begin_layout Standard
15608 多くの定理環境 — 
15609 \family sans
15610 主張
15611 \family default
15612
15613 \family sans
15614 推論
15615 \family default
15616 ・\SpecialChar ldots
15617
15618 \family sans
15619 定理
15620 \family default
15621
15622 \end_layout
15623
15624 \begin_layout Standard
15625
15626 \family sans
15627 ヘッドノート
15628 \family default
15629
15630 \family sans
15631 献呈
15632 \family default
15633
15634 \family sans
15635 サブタイトル・ヘッダ用\SpecialChar LaTeX
15636 タイトル・ヘッダ用著者名・所属機関・メール・オフプリント・キーワード・謝辞(acknowledgements)・謝辞(acknowledg
15637 ement)
15638 \family default
15639 。詳しくは Springerのクラスファイルの説明書を読んでください。
15640 \end_layout
15641
15642 \begin_layout Subsection
15643 サポートしているジャーナル
15644 \end_layout
15645
15646 \begin_layout Itemize
15647
15648 \emph on
15649 Journal of Geodesy
15650 \emph default
15651
15652 \family typewriter
15653 svjog.layout
15654 \family default
15655  — Martin Vermeer
15656 \end_layout
15657
15658 \begin_layout Itemize
15659
15660 \emph on
15661 Probability Theory and Related Fields
15662 \emph default
15663
15664 \family typewriter
15665 svprobth.layout
15666 \family default
15667  — Jean-Marc Lasgouttes
15668 \end_layout
15669
15670 \begin_layout Standard
15671 あなた自身のレイアウトファイルをつくってください。難しくはありません。
15672 \end_layout
15673
15674 \begin_layout Subsection
15675 Credits
15676 \end_layout
15677
15678 \begin_layout Standard
15679 これらのファイルは、以前の 
15680 \family typewriter
15681 ejour2.layout
15682 \family default
15683 をもとにしています。
15684 \family typewriter
15685 ejour2.layout
15686 \family default
15687 は Springerの\SpecialChar LaTeX
15688  2.09用のスタイルファイルを使った素人細工のようなレイアウトファイルです。これらのファイルはすでにありません。Jean-Marc
15689  Lasgouttesのおかげで \SpecialChar LyX
15690 のレイアウトファイルのメカニズムをよりよく理解することができました。
15691 \end_layout
15692
15693 \begin_layout Subsection
15694 バグ
15695 \end_layout
15696
15697 \begin_layout Standard
15698 多分あります。以前の 
15699 \family typewriter
15700 ejour2
15701 \family default
15702 よりは少なくなっているとは思いますが。
15703 \end_layout
15704
15705 \begin_layout Standard
15706 制限事項:定理環境の環境の番号は表示されません。#が表示されるだけです。
15707 \end_layout
15708
15709 \begin_layout Section
15710 Slides (別名
15711 \noun on
15712 Sli\SpecialChar TeX
15713
15714 \noun default
15715 )
15716 \begin_inset Foot
15717 status collapsed
15718
15719 \begin_layout Plain Layout
15720 (訳註)この節の内容は、全般的に古くなっています。
15721 \end_layout
15722
15723 \end_inset
15724
15725
15726 \begin_inset CommandInset label
15727 LatexCommand label
15728 name "sec:slitex"
15729
15730 \end_inset
15731
15732
15733 \end_layout
15734
15735 \begin_layout Standard
15736
15737 \noun on
15738 John Weiss
15739 \noun default
15740
15741 \end_layout
15742
15743 \begin_layout Subsection
15744 はじめに
15745 \end_layout
15746
15747 \begin_layout Standard
15748 本節では、オーバーへッドプロジェクタ用のスライドをつくるのに、\SpecialChar LyX
15749 をどのように使えばよいかを説明します。これを行う文書クラスには、既定のslideクラスと
15750 \family sans
15751 Foil\SpecialChar TeX
15752
15753 \family default
15754 スライドクラスの2つがあります。本節は前者について説明を行います。
15755 \end_layout
15756
15757 \begin_layout Standard
15758 誤解のないように、正しく明確に、もう一度言っておきます。
15759 \end_layout
15760
15761 \begin_layout Standard
15762 \begin_inset VSpace bigskip
15763 \end_inset
15764
15765
15766 \end_layout
15767
15768 \begin_layout Standard
15769 \align center
15770
15771 \size large
15772 本節は文書クラス
15773 \begin_inset Quotes eld
15774 \end_inset
15775
15776
15777 \family sans
15778 transparencies (slides)
15779 \family default
15780
15781 \begin_inset Quotes erd
15782 \end_inset
15783
15784
15785 \emph on
15786 のみ
15787 \emph default
15788 を説明しています。
15789 \end_layout
15790
15791 \begin_layout Standard
15792 \begin_inset VSpace bigskip
15793 \end_inset
15794
15795
15796 \end_layout
15797
15798 \begin_layout Standard
15799
15800 \family sans
15801 「slides (Foil\SpecialChar TeX
15802 )
15803 \family default
15804 」の説明をお探しならば、第
15805 \begin_inset CommandInset ref
15806 LatexCommand ref
15807 reference "sec:foiltex"
15808
15809 \end_inset
15810
15811 節をご覧ください。
15812 \family sans
15813 foils
15814 \family default
15815 クラス「
15816 \family sans
15817 slides (Foil\SpecialChar TeX
15818 )
15819 \family default
15820 」は、実際、本節で説明している既定
15821 \family sans
15822 slides
15823 \family default
15824 クラスよりも良いようです
15825 \begin_inset Foot
15826 status collapsed
15827
15828 \begin_layout Plain Layout
15829 \SpecialChar ldots
15830
15831 \family sans
15832 Foil\SpecialChar TeX
15833
15834 \family default
15835 の支持者からは聞いています。けれども私は使ったことがないので、本当かどうか確かめようがありません。
15836 \end_layout
15837
15838 \end_inset
15839
15840
15841 \end_layout
15842
15843 \begin_layout Standard
15844 このクラスは、旧SLI\SpecialChar TeX
15845 パッケージを\SpecialChar LaTeX2e
15846 用に改良したものです。\SpecialChar LaTeX2e
15847 頒布版すべてが、このクラス(以下では単に「
15848 \family sans
15849 slides
15850 \family default
15851 」と述べることにします)を含んでいるので、あなたもお持ちのはずです。前述の
15852 \family sans
15853 foils
15854 \family default
15855 のように、同じくオーバーへッドプロジェクタ用のスライドを生成しながら、このクラスよりも良い仕事をするクラスもあります。しかしながら、オーバーレイを生成するなど、
15856 他のクラスにはできないが
15857 \family sans
15858 slides
15859 \family default
15860 ならばできることもあります。詳しくは以下をお読みください。
15861 \end_layout
15862
15863 \begin_layout Subsection
15864 使い始めるには
15865 \begin_inset CommandInset label
15866 LatexCommand label
15867 name "sec:slidesetup"
15868
15869 \end_inset
15870
15871
15872 \end_layout
15873
15874 \begin_layout Standard
15875 当然ながら、この文書クラスを使用するには、
15876 \family sans
15877 文書\SpecialChar menuseparator
15878 設定
15879 \family default
15880 ダイアログのクラスリストから「
15881 \family sans
15882 transparencies (slides)
15883 \family default
15884 」を選択しなくてはなりません。このクラスについて、以下のように、特に知っておいた方が良いことがいくつかあります。
15885 \end_layout
15886
15887 \begin_layout Itemize
15888
15889 \family sans
15890 用紙方向
15891 \family default
15892
15893 \family sans
15894 二段組文書
15895 \family default
15896 の各オプションは、あえて変更する必要はありません。これらのオプションは、
15897 \family sans
15898 slides
15899 \family default
15900 クラスではサポートされていないので、効果がありません。
15901 \end_layout
15902
15903 \begin_layout Itemize
15904
15905 \family sans
15906 ヘディング様式
15907 \family default
15908 オプションは、このクラスでは少し異なった振る舞いをします。各選択肢とその機能は、以下の通りです。
15909 \begin_inset Separator parbreak
15910 \end_inset
15911
15912
15913 \end_layout
15914
15915 \begin_deeper
15916 \begin_layout Description
15917 プレーン(plain) 最終出力の右下隅にページ番号が付きます。
15918 \end_layout
15919
15920 \begin_layout Description
15921 設定(headings)
15922 \family sans
15923  プレーン(plain)
15924 \family default
15925 と同様ですが、それ以外にあなたが指定したタイムマーカーをすべて出力します。これが既定値です。
15926 \end_layout
15927
15928 \begin_layout Description
15929 空 最終出力には、ページ番号もタイムマーカーも位置揃えマーカーも出力されません。
15930 \end_layout
15931
15932 \end_deeper
15933 \begin_layout Itemize
15934
15935 \family sans
15936 slides
15937 \family default
15938 クラスには、もう一つ
15939 \family typewriter
15940 clock
15941 \family default
15942 というオプションがあります。これを使用するには、
15943 \family sans
15944 クラスオプション
15945 \family default
15946 に「
15947 \family typewriter
15948 clock
15949 \family default
15950 」と入力してください。
15951 \begin_inset Separator parbreak
15952 \end_inset
15953
15954
15955 \end_layout
15956
15957 \begin_deeper
15958 \begin_layout Standard
15959 このオプションを使うと、
15960 \family sans
15961 注釈
15962 \family default
15963 にタイムマーカーを加えることができます。詳細は、第
15964 \begin_inset CommandInset ref
15965 LatexCommand ref
15966 reference "sec:スライド注釈"
15967
15968 \end_inset
15969
15970 節をご覧ください。
15971 \end_layout
15972
15973 \end_deeper
15974 \begin_layout Standard
15975
15976 \family sans
15977 slides
15978 \family default
15979 クラスを用いた文書を自動的にセットアップするには、ひな型ファイル「
15980 \family typewriter
15981 slides.lyx
15982 \family default
15983 」を使用することもできます(新規ファイルを開く際に
15984 \family sans
15985 ファイル\SpecialChar menuseparator
15986 新規(ひな型使用)
15987 \family default
15988 を使用してください)。ひな型ファイルには、このクラスが使用する特別な段落環境の用例も含まれています。これらについては、以下で説明します。
15989 \end_layout
15990
15991 \begin_layout Subsection
15992 段落環境
15993 \end_layout
15994
15995 \begin_layout Subsubsection
15996
15997 \family sans
15998 サポートされている環境
15999 \end_layout
16000
16001 \begin_layout Standard
16002 新しく
16003 \family sans
16004 slides
16005 \family default
16006 文書を開いたときにまず気付くのは、フォント寸法とフォント族の違いでしょう。ここでは、
16007 \family sans
16008 サンセリフ体
16009 \family default
16010 フォントの
16011 \family sans
16012 極大
16013 \family default
16014 寸法が用いられており、出力でもこのフォントが使用されます。これは、現在スライドを作成中であることの「目印」だと考えてください。出力スライドは大きなフォントを使用
16015 するため、書ける場所は少なくなります。もちろん、既定の大きな画面フォントはWYSIWYGではなく、スライドであることの目印に過ぎません。
16016 \end_layout
16017
16018 \begin_layout Standard
16019 次に気付くのは、(ツールバー左端の)段落環境プルダウンボックスが変わっていることでしょう。通常見かける環境の多くがなくなって、代わりに5つの新しい環境が入ってい
16020 ます。これは、
16021 \family sans
16022 slides
16023 \family default
16024 クラスが、標準段落環境のうち以下のものしかサポートしていないためです。
16025 \end_layout
16026
16027 \begin_layout Itemize
16028
16029 \family sans
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 \SpecialChar LyX
16085 コード
16086 \end_layout
16087
16088 \begin_layout Itemize
16089
16090 \family sans
16091 コメント
16092 \end_layout
16093
16094 \begin_layout Standard
16095 これ以外の標準的な環境、例えば節見出し用の環境などは
16096 \family sans
16097 slides
16098 \family default
16099 クラスでは使えません。
16100 \end_layout
16101
16102 \begin_layout Standard
16103 一方、以下の新しい環境があります。
16104 \end_layout
16105
16106 \begin_layout Itemize
16107
16108 \family sans
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 Standard
16137 これら5つの環境は、\SpecialChar LyX
16138 の「機能」のために使い方に癖があります。ご存じのように、\SpecialChar LyX
16139 では、空の段落環境に他の環境を入れることができません。それ自体は素晴らしいデザインな
16140 のですが、これは、スライドを平文以外では書き始めることができないことを意味します。これを取り扱うためには、ちょっとした「\SpecialChar LaTeX
16141 マジック」が必要になります。
16142 \end_layout
16143
16144 \begin_layout Subsubsection
16145 新環境の癖
16146 \begin_inset CommandInset label
16147 LatexCommand label
16148 name "sec:スライドの癖"
16149
16150 \end_inset
16151
16152
16153 \end_layout
16154
16155 \begin_layout Standard
16156 5つの新しい環境にはすべて、\SpecialChar LyX
16157 現行版の制約に由来する癖があります。いま述べたように、\SpecialChar LyX
16158 では、環境を別の環境で開始することが禁止されています。これを回避するために、
16159 \family sans
16160 スライド
16161 \family default
16162 環境は『
16163 \emph on
16164 ユーザーの手引き
16165 \emph default
16166 』で述べられているような段落環境ではなくなっています。
16167 \end_layout
16168
16169 \begin_layout Standard
16170
16171 \family sans
16172 スライド
16173 \family default
16174
16175 \family sans
16176 オーバーレイ
16177 \family default
16178
16179 \family sans
16180 注釈
16181 \family default
16182 は「疑似環境」だとお考えください。これらは節見出しや「
16183 \family sans
16184 キャプション
16185 \family default
16186 」のように見えますが、実際には(必要なら前段落を終了して)新しい段落環境を開始します。同様に、
16187 \family sans
16188 不可視文
16189 \family default
16190
16191 \family sans
16192 可視文
16193 \family default
16194 も「疑似コマンド」とお考えください。この2つは特定のアクションを行います。
16195 \end_layout
16196
16197 \begin_layout Standard
16198
16199 \family sans
16200 スライド
16201 \family default
16202
16203 \family sans
16204 オーバーレイ
16205 \family default
16206
16207 \family sans
16208 注釈
16209 \family default
16210
16211 \family sans
16212 不可視文
16213 \family default
16214
16215 \family sans
16216 可視文
16217 \family default
16218 の5環境に共通しているのは、長めのラベルを持つことです。このラベルに続く文章—通常は段落環境の内容になるはずですが—は、
16219 \family sans
16220 スライド
16221 \family default
16222
16223 \family sans
16224 オーバーレイ
16225 \family default
16226
16227 \family sans
16228 注釈
16229 \family default
16230
16231 \family sans
16232 不可視文
16233 \family default
16234
16235 \family sans
16236 可視文
16237 \family default
16238 では、まったく意味がなく、\SpecialChar LyX
16239 はこの部分を完全に無視します。これらの5つの環境の内容は、完全に空のままにしておいて構いません。
16240 \end_layout
16241
16242 \begin_layout Standard
16243 長めのラベルの後に文章を入れる
16244 \emph on
16245 必要は
16246 \emph default
16247 まったく
16248 \emph on
16249 ない
16250 \emph default
16251 とはいえ、何か書いておきたいこともあるかもしれません。たとえば、スライドの内容に関する短い説明などがそうでしょう。この場合、いつもどおり説明用のコメントを入力し
16252
16253 \family sans
16254 Return
16255 \family default
16256 を押してください。
16257 \end_layout
16258
16259 \begin_layout Standard
16260 一方、説明文を入れたくない場合には、\SpecialChar LyX
16261 の制約に直面します。自然が真空を憎むように、\SpecialChar LyX
16262 では、古い環境に何かを置くまでは、その中に新しい環境を入れることができません。そ
16263 こで以下のようにしてください。
16264 \end_layout
16265
16266 \begin_layout Itemize
16267 新しい
16268 \family sans
16269 スライド
16270 \family default
16271
16272 \family sans
16273 オーバーレイ
16274 \family default
16275
16276 \family sans
16277 注釈
16278 \family default
16279
16280 \family sans
16281 不可視文
16282 \family default
16283
16284 \family sans
16285 可視文
16286 \family default
16287
16288 \emph on
16289 中に入れる
16290 \emph default
16291 文章を入力してください。
16292 \end_layout
16293
16294 \begin_layout Itemize
16295 段落の先頭に移動します。
16296 \end_layout
16297
16298 \begin_layout Itemize
16299 次に
16300 \family sans
16301 Return
16302 \family default
16303 を押します。
16304 \end_layout
16305
16306 \begin_layout Itemize
16307 最後に、この新しい空の段落を
16308 \family sans
16309 スライド
16310 \family default
16311
16312 \family sans
16313 オーバーレイ
16314 \family default
16315
16316 \family sans
16317 注釈
16318 \family default
16319
16320 \family sans
16321 不可視文
16322 \family default
16323
16324 \family sans
16325 可視文
16326 \family default
16327 に変更します。
16328 \end_layout
16329
16330 \begin_layout Standard
16331 将来の\SpecialChar LyX
16332 では、このような癖が解決されることを祈っています\SpecialChar ldots
16333
16334 \begin_inset Foot
16335 status collapsed
16336
16337 \begin_layout Plain Layout
16338 (訳註)ここの記述は古くなっています。
16339 \end_layout
16340
16341 \end_inset
16342
16343
16344 \end_layout
16345
16346 \begin_layout Subsection
16347
16348 \family sans
16349 スライド
16350 \family default
16351
16352 \family sans
16353 オーバーレイ
16354 \family default
16355
16356 \family sans
16357 注釈で発表用のスライドを作る
16358 \end_layout
16359
16360 \begin_layout Subsubsection
16361
16362 \family sans
16363 スライド
16364 \family default
16365 環境を使う
16366 \end_layout
16367
16368 \begin_layout Standard
16369 もし本節が、実際のプレゼンテーションの作り方を教えてくれるものと期待されているとすれば、大いにがっかりされるかもしれません。当然ながら、プレゼンテーション用の資
16370 料を準備するうえで
16371 \family sans
16372 slides
16373 \family default
16374 クラスを役立てる方法を詳しく説明はしますが、内容をどうするかはあなた次第です(そしてこれも\SpecialChar LyX
16375 の哲学です)。
16376 \end_layout
16377
16378 \begin_layout Standard
16379
16380 \family sans
16381 スライド
16382 \family default
16383 環境を選択すれば(方法は第
16384 \begin_inset CommandInset ref
16385 LatexCommand ref
16386 reference "sec:スライドの癖"
16387
16388 \end_inset
16389
16390 節参照のこと)、\SpecialChar LyX
16391 は新規スライドを開始します。この環境ないし「疑似環境」のラベルは、鮮やかな青で「新規スライド:」と表示されます。この環境の後のテキスト環境や段落
16392 環境は、すべて新規スライドに入ります。簡単ですよね。
16393 \end_layout
16394
16395 \begin_layout Standard
16396 Slidesは、おそらく\SpecialChar LyX
16397 の中で強制的に改頁をしなくてはならない唯一のクラスです(これは
16398 \family sans
16399 段落レイアウト
16400 \family default
16401 ダイアログで指定できます)。実際、一つのスライドの内容を入力し終わったら、改頁したくなるはずです。仮に一つのスライドに物理的に入りきらない文章を入力したとすると
16402 、入りきらない部分は、次の新規スライドにまわされます。しかしながら、入りきらない部分のスライドにはページ番号が付きませんので、こうするのはお勧めしません。その上
16403 、一枚に収まらないスライドでは、
16404 \family sans
16405 オーバーレイ
16406 \family default
16407 を使用すると干渉する恐れがあります。
16408 \end_layout
16409
16410 \begin_layout Standard
16411
16412 \family sans
16413 オーバーレイ
16414 \family default
16415 環境と
16416 \family sans
16417 注釈
16418 \family default
16419 環境も、
16420 \family sans
16421 スライド
16422 \family default
16423 環境と同様の動作を示します。これらは、青の代わりに鮮やかなマゼンタで、それぞれ「
16424 \noun on
16425 新規オーバーレイ
16426 \noun default
16427 :」ないし「
16428 \noun on
16429 新規注釈:
16430 \noun default
16431 」というラベルを表示します。ラベルのフォントも、3つの環境でそれぞれ異なるものが使用されます。
16432 \end_layout
16433
16434 \begin_layout Standard
16435
16436 \family sans
16437 スライド
16438 \family default
16439 と同様に、
16440 \family sans
16441 オーバーレイ
16442 \family default
16443
16444 \family sans
16445 注釈
16446 \family default
16447 の内容が、一つのスライドないしページに物理的に収まりきらない場合には、余分は新規スライドに回されます。この場合には、
16448 \family sans
16449 注釈
16450 \family default
16451
16452 \family sans
16453 オーバーレイ
16454 \family default
16455 の本来の目的が達せられなくなりますので、ここでもこのような状態は避けるべきでしょう。
16456 \end_layout
16457
16458 \begin_layout Subsubsection
16459
16460 \family sans
16461 スライドでオーバーレイを使用する
16462 \end_layout
16463
16464 \begin_layout Standard
16465
16466 \family sans
16467 オーバーレイ
16468 \family default
16469 の背後にある考え方は、別のスライドの上にスライドを載せようとするものです。メインの
16470 \family sans
16471 スライド
16472 \family default
16473 に図があるとき、関連した文章を表示する前に、図について議論を進めたいと思うことがあるかもしれません。これを行うひとつの方法は、
16474 \family sans
16475 スライド
16476 \family default
16477 で後に表示したい部分に黒い紙の蓋を貼り付けてしまうことですが、この方法は、たとえばグラフを他のグラフに重ねたい場合などには、うまく行きません。この場合には、二つ
16478 のグラフを揃えるために、重ねる二つのスライドを、喋りながら手探りで揃えなくてはなりません。これらのような場合には、
16479 \family sans
16480 オーバーレイ
16481 \family default
16482 環境を使えば、もっと楽になります。
16483 \end_layout
16484
16485 \begin_layout Standard
16486
16487 \family sans
16488 オーバーレイ
16489 \family default
16490 は、「親」
16491 \family sans
16492 スライド
16493 \family default
16494 のページ番号を引継ぎ、その後に「
16495 \family typewriter
16496 -a
16497 \family default
16498 」を付け加えます
16499 \begin_inset Foot
16500 status collapsed
16501
16502 \begin_layout Plain Layout
16503 想像できるように、複数のオーバーレイがあれば、「
16504 \family typewriter
16505 -a
16506 \family default
16507 」「
16508 \family typewriter
16509 -b
16510 \family default
16511 」「
16512 \family typewriter
16513 -c
16514 \family default
16515 」などが親スライドのページ番号に付け加えられます。
16516 \end_layout
16517
16518 \end_inset
16519
16520 。当然のことながら、
16521 \family sans
16522 スライド
16523 \family default
16524
16525 \family sans
16526 オーバーレイ
16527 \family default
16528 の内容は両方とも、1枚のスライドに物理的に収まるようになっていなければなりません。
16529 \family sans
16530 オーバーレイ
16531 \family default
16532
16533 \family sans
16534 スライド
16535 \family default
16536 の「一部」であると考えるのがよいでしょう。\SpecialChar LyX
16537 では、
16538 \family sans
16539 オーバーレイ
16540 \family default
16541 のラベルを
16542 \family sans
16543 スライド
16544 \family default
16545 のラベルよりも下げることで、このことを視覚的に表しています。また、印刷可能な出力を生成すると、
16546 \family sans
16547 オーバーレイ
16548 \family default
16549 と親
16550 \family sans
16551 スライド
16552 \family default
16553 両方の四隅に、揃えマーカーがあることに気づかれるはずです。これは、2枚のスライドを物理的に重ね合わせるための補助となるものです。
16554 \end_layout
16555
16556 \begin_layout Standard
16557 2つのスライドをオーバーレイさせる際の大きな問題は、2枚のスライドの内容を揃えることです。2枚目のスライドのグラフには、どれだけの余白を残しておくべきなのでしょ
16558 うか?さらにややこしく、2枚目のスライドにグラフと文章を入れたいときに、その間に割り込んでしまうような文章がメインスライドにある場合には、どうでしょうか?正しい
16559 寸法の垂直スペースを挿入してみることもできるでしょう。しかし、もっと良い方法として、
16560 \family sans
16561 不可視文
16562 \family default
16563
16564 \family sans
16565 可視文
16566 \family default
16567 を使用する方法があります。
16568 \end_layout
16569
16570 \begin_layout Standard
16571 これらの名前が意味するとおり、
16572 \family sans
16573 不可視文
16574 \family default
16575
16576 \family sans
16577 可視文
16578 \family default
16579 は、それぞれ続く文章すべてを見えなくしたり見えるようにしたりするコマンド型の段落環境です。しかしながら、第
16580 \begin_inset CommandInset ref
16581 LatexCommand ref
16582 reference "sec:スライドの癖"
16583
16584 \end_inset
16585
16586 節で述べたように、この2つの環境の
16587 \emph on
16588
16589 \emph default
16590 には何も置くことができません。
16591 \family sans
16592 不可視文
16593 \family default
16594 を作成すると、「<以下不可視文>」と書かれた水色のラベルが、ページに中央揃えで表示されます。このラベルに続く段落は、それが置かれるべき
16595 \family sans
16596 スライド
16597 \family default
16598 (あるいは
16599 \family sans
16600 オーバーレイ
16601 \family default
16602 ;どちらでも同じことです)部分に、代わりに空白の部分が置かれます。
16603 \end_layout
16604
16605 \begin_layout Standard
16606
16607 \family sans
16608 可視文
16609 \family default
16610 の場合には、中央揃えのラベルは、鮮やかな緑の「<以下可視文>」となります。このラベル以降の段落は、通常通りの挙動を示します。新規の
16611 \family sans
16612 スライド
16613 \family default
16614
16615 \family sans
16616 オーバーレイ
16617 \family default
16618
16619 \family sans
16620 注釈
16621 \family default
16622 を開始すると、
16623 \family sans
16624 不可視文
16625 \family default
16626 は自動的に終了されることに注意してください。したがって、
16627 \family sans
16628 スライド
16629 \family default
16630 の終わりでは、
16631 \family sans
16632 可視文
16633 \family default
16634 を使用する必要はありません。
16635 \end_layout
16636
16637 \begin_layout Standard
16638 ここまでで、
16639 \family sans
16640 スライド
16641 \family default
16642
16643 \family sans
16644 オーバーレイ
16645 \family default
16646 上で
16647 \family sans
16648 不可視文
16649 \family default
16650
16651 \family sans
16652 可視文
16653 \family default
16654 を適切に使用して、スライドをオーバーレイさせる方法が明らかになったことと思います。
16655 \end_layout
16656
16657 \begin_layout Enumerate
16658 メインのスライドか
16659 \family sans
16660 オーバーレイ
16661 \family default
16662 かに関わらず、スライド上に現れるすべてを含んだ
16663 \family sans
16664 スライド
16665 \family default
16666 を作成します。
16667 \end_layout
16668
16669 \begin_layout Enumerate
16670
16671 \family sans
16672 オーバーレイ
16673 \family default
16674 のみに表示するすべての図や段落の前に、
16675 \family sans
16676 不可視文
16677 \family default
16678 環境を挿入し、必要ならば、
16679 \family sans
16680 オーバーレイ
16681 \family default
16682 のみの文章の後に
16683 \family sans
16684 可視文
16685 \family default
16686 環境を挿入します。
16687 \end_layout
16688
16689 \begin_layout Enumerate
16690
16691 \family sans
16692 スライド
16693 \family default
16694 の直後から、
16695 \family sans
16696 オーバーレイ
16697 \family default
16698 を開始します。
16699 \end_layout
16700
16701 \begin_layout Enumerate
16702 この
16703 \family sans
16704 スライド
16705 \family default
16706 の内容を
16707 \family sans
16708 オーバーレイ
16709 \family default
16710 にコピーします。
16711 \end_layout
16712
16713 \begin_layout Enumerate
16714
16715 \family sans
16716 オーバーレイ
16717 \family default
16718 内部の
16719 \family sans
16720 不可視文
16721 \family default
16722 行をすべて
16723 \family sans
16724 不可視文
16725 \family default
16726 に変更し、
16727 \family sans
16728 可視文
16729 \family default
16730
16731 \family sans
16732 不可視文
16733 \family default
16734 に変更します。
16735 \end_layout
16736
16737 \begin_layout Standard
16738 これだけです。これで
16739 \family sans
16740 オーバーレイ
16741 \family default
16742 ができあがりました。
16743 \end_layout
16744
16745 \begin_layout Standard
16746 \SpecialChar LyX
16747  
16748 \family sans
16749 slides
16750 \family default
16751 クラスをデザインする上で、ひとつ残された問題があります。段落途中の文章を不可視にしたり、不可視段落の途中の文章を再度可視にしたりすることはできないのです。これを
16752 実現するためには、\SpecialChar LaTeX
16753 コードを埋め込む必要があります
16754 \begin_inset Foot
16755 status collapsed
16756
16757 \begin_layout Plain Layout
16758 このコマンドは、
16759 \end_layout
16760
16761 \begin_layout Itemize
16762
16763 \family typewriter
16764 {
16765 \backslash
16766 invisible \SpecialChar ldots
16767  }
16768 \end_layout
16769
16770 \begin_layout Itemize
16771
16772 \family typewriter
16773 {
16774 \backslash
16775 visible \SpecialChar ldots
16776  }
16777 \end_layout
16778
16779 \begin_layout Plain Layout
16780 \SpecialChar ldots
16781 のような形となり、\SpecialChar TeX
16782 としてマークする必要があります。「可視性」を変更したい文章は、波括弧のあいだ(そして
16783 \family typewriter
16784
16785 \backslash
16786 invisible
16787 \family default
16788 ないし
16789 \family typewriter
16790
16791 \backslash
16792 visible
16793 \family default
16794 コマンドの後ろ)に入れます。\SpecialChar TeX
16795 としてマークする方法がわからない場合は、
16796 \emph on
16797 ユーザーの手引き
16798 \emph default
16799 をご参照ください。
16800 \end_layout
16801
16802 \end_inset
16803
16804
16805 \end_layout
16806
16807 \begin_layout Subsubsection
16808
16809 \family sans
16810 スライドで注釈を使う
16811 \family default
16812
16813 \begin_inset CommandInset label
16814 LatexCommand label
16815 name "sec:スライド注釈"
16816
16817 \end_inset
16818
16819
16820 \end_layout
16821
16822 \begin_layout Standard
16823
16824 \family sans
16825 オーバーレイ
16826 \family default
16827 と同様、
16828 \family sans
16829 注釈
16830 \family default
16831 も「親」
16832 \family sans
16833 スライド
16834 \family default
16835 に関連付けられています。ここでも\SpecialChar LyX
16836
16837 \family sans
16838 スライド
16839 \family default
16840 クラスは視覚的な効果を与えています。
16841 \family sans
16842 注釈
16843 \family default
16844 のラベルは
16845 \family sans
16846 スライド
16847 \family default
16848 よりも短く(オーバーレイのラベルよりも長いですが)、
16849 \family sans
16850 オーバーレイ
16851 \family default
16852 のラベルと同様、派手な赤紫色です。加えて、印刷した
16853 \family sans
16854 注釈
16855 \family default
16856 には、「親」スライドのページ番号に「
16857 \family typewriter
16858 -
16859 \family default
16860 1」「
16861 \family typewriter
16862 -
16863 \family default
16864 2」「
16865 \family typewriter
16866 -
16867 \family default
16868 3」等を付けたページ番号が付けられます。1つの
16869 \family sans
16870 スライド
16871 \family default
16872 には、複数の
16873 \family sans
16874 注釈
16875 \family default
16876 を関連付けることができるので、
16877 \family sans
16878 スライド
16879 \family default
16880
16881 \family sans
16882 オーバーレイ
16883 \family default
16884 と同じように、長い注釈は、1枚の紙に収まるように分割したいと思われるに違いありません。
16885 \end_layout
16886
16887 \begin_layout Standard
16888
16889 \family sans
16890 注釈
16891 \family default
16892 の目的は明らかです。
16893 \family sans
16894 スライド
16895 \family default
16896 に関して付け加えたいことを書き留めておくことです。特定の
16897 \family sans
16898 スライド
16899 \family default
16900 についての覚書として使うこともできます。後者の場合には、タイムマーカを利用したいこともあるかもしれません。現在のところ、\SpecialChar LyX
16901
16902 \family sans
16903 スライド
16904 \family default
16905 クラスは、
16906 \noun on
16907 Sli
16908 \noun default
16909 \SpecialChar TeX
16910 の機能であるタイムマーカを「ネイティブには」サポートしていません。したがって、\SpecialChar LaTeX
16911 コードを使用することに頼らなくてはなりません。
16912 \end_layout
16913
16914 \begin_layout Standard
16915 タイムマーカを使用するには、クラスオプション「
16916 \family typewriter
16917 clock
16918 \family default
16919 」を追加指定する必要があります(第
16920 \begin_inset CommandInset ref
16921 LatexCommand ref
16922 reference "sec:slidesetup"
16923
16924 \end_inset
16925
16926 節参照)。このオプションはタイムマーカ機能を有効にして、生成したすべての
16927 \family sans
16928 注釈
16929 \family default
16930 の左下にタイムマーカを表示します。タイムマーカに表示するものを設定するには、\SpecialChar LaTeX
16931 コマンド「
16932 \family typewriter
16933
16934 \backslash
16935 settime{}
16936 \family default
16937 」および「
16938 \family typewriter
16939
16940 \backslash
16941 addtime{}
16942 \family default
16943 」を使用します。両コマンドは、秒で測った時間を引数にとります。「
16944 \family typewriter
16945
16946 \backslash
16947 settime{}
16948 \family default
16949 」は、タイムマーカを特定の時間に設定し、「
16950 \family typewriter
16951
16952 \backslash
16953 addtime{}
16954 \family default
16955 」は、タイムマーカを指定した分だけ進めます。このようにタイムマーカと
16956 \family sans
16957 注釈
16958 \family default
16959 を用いれば、特定の
16960 \family sans
16961 スライド
16962 \family default
16963 にどれだけの時間をかけるのか忘れないでいられます。
16964 \end_layout
16965
16966 \begin_layout Standard
16967 最後に、説明しておくべき機能がもう一つあります。当然ながら、
16968 \family sans
16969 スライド
16970 \family default
16971
16972 \family sans
16973 オーバーレイ
16974 \family default
16975 はすべてスライドに、
16976 \family sans
16977 注釈
16978 \family default
16979 はすべて普通の紙に印刷したいはずです。しかしながら、
16980 \family sans
16981 注釈
16982 \family default
16983 は関連付けられた親スライドの直後に
16984 \emph on
16985 来なくてはなりません
16986 \emph default
16987 。ユーザーはどうしたら良いのでしょうか。
16988 \end_layout
16989
16990 \begin_layout Standard
16991 幸いなことに、どれを印刷するか選択することを可能にする\SpecialChar LaTeX
16992 コマンドが、2種類あります。どちらも文書のプリアンブルに記述されなくてはなりません。コマンド「
16993 \family typewriter
16994
16995 \backslash
16996 onlyslides{
16997 \backslash
16998 slides}
16999 \family default
17000 」は、出力に
17001 \family sans
17002 スライド
17003 \family default
17004
17005 \family sans
17006 オーバーレイ
17007 \family default
17008 のみが含まれるようにするものです。同様に、「
17009 \family typewriter
17010
17011 \backslash
17012 onlynotes{
17013 \backslash
17014 notes}
17015 \family default
17016 」は
17017 \family sans
17018 注釈
17019 \family default
17020 以外の出力をすべて抑制します。私のアドバイスとしては、両コマンドをプリアンブルに書いておいて、最初は両方ともコメントアウトしておくと良いでしょう。そうすれば、執
17021 筆時にはプレゼンテーション全体をプレビューすることができます。いったん書き終えたならば、二つのうち一方のコメントを外して、印刷したい方を選ぶことができます。私な
17022 らば、まず
17023 \family typewriter
17024
17025 \backslash
17026 onlyslides{
17027 \backslash
17028 slides}
17029 \family default
17030 のコメントを外して、現ファイル名に「*
17031 \family typewriter
17032 -slides
17033 \family default
17034 」を付けた新たなファイルに出力を行ない、今度はこの行をふたたびコメントアウトするとともに、「
17035 \family typewriter
17036
17037 \backslash
17038 onlynotes{
17039 \backslash
17040 notes
17041 \family default
17042 }」のコメントを外して、これを「
17043 \family typewriter
17044 *-notes.ps
17045 \family default
17046 」というファイルに出力します。そうすれば、必要に応じて、スライドまたは通常の紙をプリンタにセットし、一方のファイルをプリンタに送ればよいのです。
17047 \end_layout
17048
17049 \begin_layout Standard
17050
17051 \family typewriter
17052
17053 \backslash
17054 onlyslides{}
17055 \family default
17056 」および「
17057 \family typewriter
17058
17059 \backslash
17060 onlynotes{}
17061 \family default
17062 」コマンドには、他の引数を与えることもできます。詳しくは、\SpecialChar LaTeX
17063 の良書をご覧ください。
17064 \end_layout
17065
17066 \begin_layout Subsection
17067
17068 \family sans
17069 slides
17070 \family default
17071 クラスのひな型ファイル
17072 \end_layout
17073
17074 \begin_layout Standard
17075
17076 \family sans
17077 slides
17078 \family default
17079 クラス用のひな型ファイルとして「
17080 \family typewriter
17081 slides.lyx
17082 \family default
17083 」が提供されています。これを使用するには、新しいプレゼンテーションを作り始める際に、
17084 \family sans
17085 ファイル\SpecialChar menuseparator
17086 新規(ひな型使用)
17087 \family default
17088 メニューを選択してください。すると新規ファイルには、
17089 \family sans
17090 スライド
17091 \family default
17092
17093 \family sans
17094 オーバーレイ
17095 \family default
17096
17097 \family sans
17098 注釈
17099 \family default
17100 の組が、例として含まれており、
17101 \family sans
17102 スライド
17103 \family default
17104
17105 \family sans
17106 オーバーレイ
17107 \family default
17108 には、さらに
17109 \family sans
17110 不可視文
17111 \family default
17112
17113 \family sans
17114 可視文
17115 \family default
17116 の使用例も含まれています。また、プリアンブルには、次のように書き込まれています。
17117 \end_layout
17118
17119 \begin_layout LyX-Code
17120 % Uncomment to print out only slides and overlays
17121 \end_layout
17122
17123 \begin_layout LyX-Code
17124 %
17125 \end_layout
17126
17127 \begin_layout LyX-Code
17128 %
17129 \backslash
17130 onlyslides{
17131 \backslash
17132 slides}
17133 \begin_inset Newline newline
17134 \end_inset
17135
17136  
17137 \end_layout
17138
17139 \begin_layout LyX-Code
17140 % Uncomment to print out only notes
17141 \end_layout
17142
17143 \begin_layout LyX-Code
17144 %
17145 \end_layout
17146
17147 \begin_layout LyX-Code
17148 %
17149 \backslash
17150 onlynotes{
17151 \backslash
17152 notes}
17153 \end_layout
17154
17155 \begin_layout Standard
17156 最後に、私はこの文書クラスを、\SpecialChar LaTeX2e
17157 の組み込みクラスである「
17158 \noun on
17159 Sli\SpecialChar TeX
17160
17161 \noun default
17162 エミュレーション」クラスをサポートする目的で作成しました。私も\SpecialChar LyX
17163 チームの他のメンバーも、この組み込みスライドクラスを使用することに賛成したり反対したりするものでは
17164 ありません。これは単に、ユーザーがこれを使いたかったり必要としたりしたときのためにあるものです。プレゼンテーションを作成するためには、
17165 \family sans
17166 Foils
17167 \family default
17168 クラス(第
17169 \begin_inset CommandInset ref
17170 LatexCommand ref
17171 reference "sec:foiltex"
17172
17173 \end_inset
17174
17175 節参照)や「
17176 \family typewriter
17177 seminar
17178 \family default
17179 」パッケージ(一部の\SpecialChar TeX
17180 頒布版に含まれています)のように、他の\SpecialChar LaTeX2e
17181 クラスも存在します。私はこれらについては知らないのですが、他にどのようなことができるのか試してみてくだ
17182 さい。
17183 \end_layout
17184
17185 \begin_layout Chapter
17186 ソフトウェアを追加する必要がある \SpecialChar LyX
17187 機能
17188 \end_layout
17189
17190 \begin_layout Section
17191 \SpecialChar TeX
17192 のチェック
17193 \end_layout
17194
17195 \begin_layout Standard
17196
17197 \noun on
17198 Asger Alstrup
17199 \noun default
17200
17201 \end_layout
17202
17203 \begin_layout Subsection
17204 はじめに
17205 \end_layout
17206
17207 \begin_layout Standard
17208
17209 \family typewriter
17210 chktex
17211 \family default
17212 プログラムが導入されていると
17213 \begin_inset Foot
17214 status collapsed
17215
17216 \begin_layout Plain Layout
17217 \SpecialChar LaTeX
17218 頒布版としてMiK\SpecialChar TeX
17219 を使用している場合には、
17220 \family typewriter
17221 chktex
17222 \family default
17223 はまだ利用可能ではありません。
17224 \end_layout
17225
17226 \end_inset
17227
17228
17229 \family sans
17230 ツール
17231 \family default
17232 メニューの下に、
17233 \family sans
17234 \SpecialChar TeX
17235 構文チェック
17236 \family default
17237 という項目が表示されます。
17238 \family typewriter
17239 chktex
17240 \family default
17241 は、CTAN
17242 \begin_inset Newline newline
17243 \end_inset
17244
17245
17246 \begin_inset CommandInset href
17247 LatexCommand href
17248 target "http://www.ctan.org/tex-archive/help/Catalogue/entries/chktex.html"
17249
17250 \end_inset
17251
17252 から入手することができます。
17253 \end_layout
17254
17255 \begin_layout Standard
17256
17257 \family sans
17258 Chk\SpecialChar TeX
17259
17260 \family default
17261 パッケージは、\SpecialChar LaTeX
17262 の構成物には直感的でないものもあり、すぐ忘れてしまいがちであるのに不満を感じた
17263 \begin_inset Flex Noun
17264 status collapsed
17265
17266 \begin_layout Plain Layout
17267 Jens T.
17268  Berger Thielemann
17269 \end_layout
17270
17271 \end_inset
17272
17273 が書いたプログラムです。このプログラムは、\SpecialChar LaTeX
17274 ファイルを走査して、ファイルの整合性をチェックし、犯しがちな誤りを見つけ出します。別の技術用語では、LaTeXにおける
17275 \family typewriter
17276 lint
17277 \family default
17278 であるとも言えます。
17279 \end_layout
17280
17281 \begin_layout Standard
17282 さて、\SpecialChar LyX
17283 はつねに正しい\SpecialChar LaTeX
17284 ファイルを生成するはずなのに、文法チェッカーは\SpecialChar LyX
17285 で何をするというのでしょうか。答えは簡単です。
17286 \family typewriter
17287 lint
17288 \family default
17289 がC言語プログラムの
17290 \emph on
17291 文法
17292 \emph default
17293 をチェックするだけでなく、打ち間違いによる
17294 \emph on
17295 意味上の
17296 \emph default
17297 チェックも行うように、
17298 \family sans
17299 Chk\SpecialChar TeX
17300
17301 \family default
17302 は、文法エラーの他に犯しがちな
17303 \emph on
17304 写植上の
17305 \emph default
17306 誤りも検出してくれるからです。
17307 \family sans
17308 Chk\SpecialChar TeX
17309
17310 \family default
17311 は、以下のような誤りを検出することができます。
17312 \end_layout
17313
17314 \begin_layout Itemize
17315 省略記号の検出:
17316 \begin_inset Newline newline
17317 \end_inset
17318
17319 ...ではなく\SpecialChar ldots
17320 を使わなくてはなりません
17321 \end_layout
17322
17323 \begin_layout Itemize
17324 括弧の前後にスペースを置かない:
17325 \begin_inset Newline newline
17326 \end_inset
17327
17328 ( wrong spacing ):誤った空白
17329 \end_layout
17330
17331 \begin_layout Itemize
17332 よく使われる省略形の後ろは通常スペースにする:
17333 \begin_inset Newline newline
17334 \end_inset
17335
17336 e.
17337 \begin_inset space \thinspace{}
17338 \end_inset
17339
17340 g.
17341 \begin_inset space \space{}
17342 \end_inset
17343
17344 is too wide spacing.:広すぎる空白
17345 \end_layout
17346
17347 \begin_layout Itemize
17348 直前の文章が大文字で終わっているときに、文末スペースに直す:
17349 \begin_inset Newline newline
17350 \end_inset
17351
17352 This is a TEST.
17353  And this is wrong spacing.:誤った空白
17354 \end_layout
17355
17356 \begin_layout Itemize
17357 ラベルや類似コマンドの前のスペース:
17358 \begin_inset Newline newline
17359 \end_inset
17360
17361 ラベルが別のページに行ってしまわないように、ラベルは文章に接していなくてはなりません。 
17362 \begin_inset CommandInset label
17363 LatexCommand label
17364 name "sec:chktex"
17365
17366 \end_inset
17367
17368  
17369 \begin_inset Foot
17370 status collapsed
17371
17372 \begin_layout Plain Layout
17373 この脚注は、正しくないページに行ってしまう恐れがあります。
17374 \end_layout
17375
17376 \end_inset
17377
17378  このラベルは離れすぎです。
17379 \end_layout
17380
17381 \begin_layout Itemize
17382 参照の前にハードスペースではなくスペース:
17383 \begin_inset Newline newline
17384 \end_inset
17385
17386 運が悪ければ、参照文字列と参照番号のあいだでちょうど改行されてしまい、残念な結果となります。第
17387 \begin_inset CommandInset ref
17388 LatexCommand ref
17389 reference "sec:chktex"
17390
17391 \end_inset
17392
17393 節をご覧ください。
17394 \end_layout
17395
17396 \begin_layout Itemize
17397 数字のあいだで
17398 \begin_inset Formula $\times$
17399 \end_inset
17400
17401 ではなく「x」が使われている:
17402 \begin_inset Newline newline
17403 \end_inset
17404
17405 2x2は、
17406 \begin_inset Formula $2\times2$
17407 \end_inset
17408
17409 よりも安っぽく見えます。
17410 \end_layout
17411
17412 \begin_layout Standard
17413 などなど\SpecialChar ldots
17414
17415 \family sans
17416 Chk\SpecialChar TeX
17417
17418 \family default
17419 は、印刷する前に文書を「仕上げる」上で、たいへん価値のあるツールです。必須のスペルチェックを終えた直後、組版の微調整をする前には、これを実行するべきです。
17420 \end_layout
17421
17422 \begin_layout Subsection
17423 使いかた
17424 \end_layout
17425
17426 \begin_layout Standard
17427 このプログラムを導入したならば、使うのは
17428 \family sans
17429 ツール\SpecialChar menuseparator
17430 \SpecialChar TeX
17431 構文チェック
17432 \family default
17433 を選択するだけなので簡単です。こうすると、\SpecialChar LyX
17434 は使用中の文書の\SpecialChar LaTeX
17435 ファイルを生成して、
17436 \family sans
17437 Chk\SpecialChar TeX
17438
17439 \family default
17440 を起動し、当該ファイルを検査しますが、
17441 \family sans
17442 Chk\SpecialChar TeX
17443
17444 \family default
17445 から警告があった場合には、それを含んだ「エラーボックス」を\SpecialChar LyX
17446 中に挿入します。警告は、誤りのある箇所のそばに置かれるので、メニュー項目の
17447 \family sans
17448 移動\SpecialChar menuseparator
17449 エラー
17450 \family default
17451 を選択するか、既定の
17452 \family typewriter
17453 cua
17454 \family default
17455
17456 \begin_inset Flex Ruby
17457 status collapsed
17458
17459 \begin_layout Plain Layout
17460
17461 \begin_inset Argument post:1
17462 status collapsed
17463
17464 \begin_layout Plain Layout
17465 キー
17466 \end_layout
17467
17468 \end_inset
17469
17470
17471 \end_layout
17472
17473 \end_inset
17474
17475 設定ファイルならば
17476 \begin_inset Flex Ruby
17477 status collapsed
17478
17479 \begin_layout Plain Layout
17480
17481 \family roman
17482 \series medium
17483 \shape up
17484 \size normal
17485 \emph off
17486 \bar no
17487 \noun off
17488 \color none
17489 捷径
17490 \family default
17491 \series default
17492 \shape default
17493 \size default
17494 \emph default
17495 \bar default
17496 \noun default
17497 \color inherit
17498
17499 \begin_inset Argument post:1
17500 status collapsed
17501
17502 \begin_layout Plain Layout
17503 ショートカット
17504 \end_layout
17505
17506 \end_inset
17507
17508
17509 \end_layout
17510
17511 \end_inset
17512
17513
17514 \family sans
17515 C-g
17516 \family default
17517 を押せば、簡単に警告の箇所を見出すことができます。エラーボックスを開けるには、マウスでボックスをクリックするか、
17518 \family typewriter
17519 cua
17520 \family default
17521 鍵設定の場合には捷径鍵
17522 \family sans
17523 C-i
17524 \family default
17525
17526 \family typewriter
17527 emacs
17528 \family default
17529 鍵設定の場合は捷径鍵
17530 \family sans
17531 C-o
17532 \family default
17533 を押します。警告を読み、それが誤りを示していれば修正します。警告が何を意味しているか理解しにくい場合には、無視しても問題はありません。画面上の文書と、
17534 \family sans
17535 Chk\SpecialChar TeX
17536
17537 \family default
17538 を起動する際に行なわれる実際の技術的な操作のあいだには、隠された層があり、この隔たりのせいで、一部の警告が不可解なものになったり、明らかに馬鹿げたものになる場合
17539 があるのです。
17540 \end_layout
17541
17542 \begin_layout Standard
17543 本文書自体、この機能を確認する良い材料になりますので、実行してみてください。すると、かなりの量の警告が出るはずです。これはコンピュータが敏感すぎるせいですので、
17544 警告のほとんどは実際には警告に値しません。
17545 \end_layout
17546
17547 \begin_layout Subsection
17548 微調整のしかた
17549 \end_layout
17550
17551 \begin_layout Standard
17552 場合によっては、
17553 \family sans
17554 Chk\SpecialChar TeX
17555
17556 \family default
17557 は、あなたが望むよりも煩すぎると思うかもしれません。そのような場合には、必要と思うまで
17558 \family sans
17559 Chk\SpecialChar TeX
17560
17561 \family default
17562 を無効にするか、あなたにもう少し合うように
17563 \family sans
17564 Chk\SpecialChar TeX
17565
17566 \family default
17567 を調整することができます。
17568 \end_layout
17569
17570 \begin_layout Standard
17571
17572 \family sans
17573 Chk\SpecialChar TeX
17574
17575 \family default
17576 は調整や拡張がひじょうに柔軟なのですが、\SpecialChar LyX
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 出力
17589 \begin_inset Foot
17590 status collapsed
17591
17592 \begin_layout Plain Layout
17593
17594 \family sans
17595 chktex
17596 \family default
17597 の実際の出力は、
17598 \family sans
17599 chktex
17600 \family default
17601 を実行した直後に
17602 \family sans
17603 文書\SpecialChar menuseparator
17604 \SpecialChar LaTeX
17605 ログ
17606 \family default
17607 を使えば見ることができます。
17608 \end_layout
17609
17610 \end_inset
17611
17612 から得た行番号と内部構造を一致させるため、やや特殊な\SpecialChar LaTeX
17613 ファイルを生成しなくてはならないので、警告の一部は正しく表示されていないように見えるでしょう。これに対処する
17614 ためには、以下の2つの方法があります。
17615 \end_layout
17616
17617 \begin_layout Itemize
17618
17619 \family sans
17620 \begin_inset Flex MenuItem
17621 status collapsed
17622
17623 \begin_layout Plain Layout
17624
17625 \family sans
17626 ツール\SpecialChar menuseparator
17627 設定\SpecialChar menuseparator
17628 出力\SpecialChar menuseparator
17629 \SpecialChar LaTeX
17630 \SpecialChar menuseparator
17631 Check\SpecialChar TeX
17632 コマンド
17633 \end_layout
17634
17635 \end_inset
17636
17637
17638 \family default
17639 中の
17640 \family sans
17641 Chk\SpecialChar TeX
17642
17643 \family default
17644 起動コマンドラインを調整するか、グローバルな
17645 \family sans
17646 Chk\SpecialChar TeX
17647
17648 \family default
17649 の設定ファイル(通常は
17650 \begin_inset Flex Code
17651 status collapsed
17652
17653 \begin_layout Plain Layout
17654 chktexrc
17655 \end_layout
17656
17657 \end_inset
17658
17659 ファイル)を調整します。コマンドラインからどの警告を有効・無効にできるかは以下をご覧ください。
17660 \end_layout
17661
17662 \begin_layout Itemize
17663
17664 \family sans
17665 ファイル\SpecialChar menuseparator
17666 書き出し\SpecialChar menuseparator
17667 \SpecialChar LaTeX
17668
17669 \family default
17670 を使って文書を\SpecialChar LaTeX
17671 ファイルに変換し、そのファイルに対して
17672 \family typewriter
17673 chktex
17674 \family default
17675 を手動で実行します。このようにすると、\SpecialChar LyX
17676 文書中の対応箇所を見つけるのがやや面倒ですが、少し我慢すれば見つけることができます。
17677 \end_layout
17678
17679 \begin_layout Standard
17680 以下は、
17681 \family sans
17682 設定
17683 \family default
17684 で有効化・無効化できる警告メッセージです。警告を無効にするには
17685 \family typewriter
17686 -n#
17687 \family default
17688 、有効にするには
17689 \family typewriter
17690 -w#
17691 \family default
17692 を用います。イタリック表示の項目は、既定で無効となっています。既定値は "
17693 \family typewriter
17694 chktex -n1 -n3 -n6 -n9 -n22 -n25 -n30 -n38
17695 \family default
17696 "です。
17697 \end_layout
17698
17699 \begin_layout Standard
17700 \SpecialChar LyX
17701 は、
17702 \family typewriter
17703 chktex
17704 \family default
17705 と通信するために、他のコマンドラインパラメータを特定の方法で使用しているため、メッセージを有効化・無効化する以外のオプションを使うべきではありません。
17706 \end_layout
17707
17708 \begin_layout Enumerate
17709
17710 \size small
17711 \emph on
17712 Command terminated with space.
17713 \end_layout
17714
17715 \begin_layout Enumerate
17716
17717 \size small
17718 Non-breaking space (
17719 \begin_inset Quotes eld
17720 \end_inset
17721
17722
17723 \family typewriter
17724 ~
17725 \family default
17726
17727 \begin_inset Quotes erd
17728 \end_inset
17729
17730 ) should have been used.
17731 \end_layout
17732
17733 \begin_layout Enumerate
17734
17735 \size small
17736 \emph on
17737 You should enclose the previous parenthesis with 
17738 \begin_inset Quotes eld
17739 \end_inset
17740
17741
17742 \family typewriter
17743 {}
17744 \family default
17745
17746 \begin_inset Quotes erd
17747 \end_inset
17748
17749 .
17750 \end_layout
17751
17752 \begin_layout Enumerate
17753
17754 \size small
17755 Italic correction (
17756 \begin_inset Quotes eld
17757 \end_inset
17758
17759
17760 \family typewriter
17761
17762 \backslash
17763 /
17764 \family default
17765
17766 \begin_inset Quotes erd
17767 \end_inset
17768
17769 ) found in non-italic buffer.
17770 \end_layout
17771
17772 \begin_layout Enumerate
17773
17774 \size small
17775 Italic correction (
17776 \begin_inset Quotes eld
17777 \end_inset
17778
17779
17780 \family typewriter
17781
17782 \backslash
17783 /
17784 \family default
17785
17786 \begin_inset Quotes erd
17787 \end_inset
17788
17789 ) found more than once.
17790 \end_layout
17791
17792 \begin_layout Enumerate
17793
17794 \size small
17795 \emph on
17796 No italic correction (
17797 \begin_inset Quotes eld
17798 \end_inset
17799
17800
17801 \family typewriter
17802
17803 \backslash
17804 /
17805 \family default
17806
17807 \begin_inset Quotes erd
17808 \end_inset
17809
17810 ) found.
17811 \end_layout
17812
17813 \begin_layout Enumerate
17814
17815 \size small
17816 Accent command 
17817 \begin_inset Quotes eld
17818 \end_inset
17819
17820
17821 \family typewriter
17822 cmd
17823 \family default
17824
17825 \begin_inset Quotes erd
17826 \end_inset
17827
17828  needs use of 
17829 \begin_inset Quotes eld
17830 \end_inset
17831
17832
17833 \family typewriter
17834 cmd
17835 \family default
17836
17837 \begin_inset Quotes erd
17838 \end_inset
17839
17840 .
17841 \end_layout
17842
17843 \begin_layout Enumerate
17844
17845 \size small
17846 Wrong length of dash may have been used.
17847 \end_layout
17848
17849 \begin_layout Enumerate
17850
17851 \size small
17852 \emph on
17853 \begin_inset Quotes eld
17854 \end_inset
17855
17856
17857 \family typewriter
17858 %s
17859 \family default
17860
17861 \begin_inset Quotes erd
17862 \end_inset
17863
17864  expected, found 
17865 \begin_inset Quotes eld
17866 \end_inset
17867
17868
17869 \family typewriter
17870 %s
17871 \family default
17872
17873 \begin_inset Quotes erd
17874 \end_inset
17875
17876 .
17877 \end_layout
17878
17879 \begin_layout Enumerate
17880
17881 \size small
17882 Solo 
17883 \begin_inset Quotes eld
17884 \end_inset
17885
17886
17887 \family typewriter
17888 %s
17889 \family default
17890
17891 \begin_inset Quotes erd
17892 \end_inset
17893
17894  found.
17895 \end_layout
17896
17897 \begin_layout Enumerate
17898
17899 \size small
17900 You should use 
17901 \begin_inset Quotes eld
17902 \end_inset
17903
17904
17905 \family typewriter
17906 %s
17907 \family default
17908
17909 \begin_inset Quotes erd
17910 \end_inset
17911
17912  to achieve an ellipsis.
17913 \end_layout
17914
17915 \begin_layout Enumerate
17916
17917 \size small
17918 Inter-word spacing (
17919 \begin_inset Quotes eld
17920 \end_inset
17921
17922
17923 \family typewriter
17924
17925 \backslash
17926
17927 \family default
17928  
17929 \begin_inset Quotes eld
17930 \end_inset
17931
17932 ) should perhaps be used.
17933 \end_layout
17934
17935 \begin_layout Enumerate
17936
17937 \size small
17938 Inter-sentence spacing (
17939 \begin_inset Quotes eld
17940 \end_inset
17941
17942
17943 \family typewriter
17944
17945 \backslash
17946 @
17947 \family default
17948
17949 \begin_inset Quotes erd
17950 \end_inset
17951
17952 ) should perhaps be used.
17953 \end_layout
17954
17955 \begin_layout Enumerate
17956
17957 \size small
17958 Could not find argument for command.
17959 \end_layout
17960
17961 \begin_layout Enumerate
17962
17963 \size small
17964 No match found for 
17965 \begin_inset Quotes eld
17966 \end_inset
17967
17968
17969 \family typewriter
17970 %s
17971 \family default
17972
17973 \begin_inset Quotes erd
17974 \end_inset
17975
17976 .
17977 \end_layout
17978
17979 \begin_layout Enumerate
17980
17981 \size small
17982 Math mode still on at end of \SpecialChar LaTeX
17983  file.
17984 \end_layout
17985
17986 \begin_layout Enumerate
17987
17988 \size small
17989 Number of 
17990 \begin_inset Quotes eld
17991 \end_inset
17992
17993
17994 \family typewriter
17995 char
17996 \family default
17997
17998 \begin_inset Quotes erd
17999 \end_inset
18000
18001  doesn't match the number of 
18002 \begin_inset Quotes eld
18003 \end_inset
18004
18005
18006 \family typewriter
18007 char
18008 \family default
18009
18010 \begin_inset Quotes erd
18011 \end_inset
18012
18013 .
18014 \end_layout
18015
18016 \begin_layout Enumerate
18017
18018 \size small
18019 You should use either 
18020 \family typewriter
18021
18022 \begin_inset Quotes eld
18023 \end_inset
18024
18025
18026 \family default
18027  or 
18028 \family typewriter
18029
18030 \begin_inset Quotes erd
18031 \end_inset
18032
18033
18034 \family default
18035  as an alternative to 
18036 \begin_inset Quotes eld
18037 \end_inset
18038
18039
18040 \family typewriter
18041 "
18042 \family default
18043
18044 \begin_inset Quotes erd
18045 \end_inset
18046
18047 .
18048 \end_layout
18049
18050 \begin_layout Enumerate
18051
18052 \size small
18053 You should use "
18054 \family typewriter
18055 '
18056 \family default
18057 " (ASCII 39) instead of "" (ASCII 180).
18058 \end_layout
18059
18060 \begin_layout Enumerate
18061
18062 \size small
18063 User-specified pattern found.
18064 \end_layout
18065
18066 \begin_layout Enumerate
18067
18068 \size small
18069 This command might not be intended.
18070 \end_layout
18071
18072 \begin_layout Enumerate
18073
18074 \size small
18075 \emph on
18076 Comment displayed.
18077 \end_layout
18078
18079 \begin_layout Enumerate
18080
18081 \size small
18082 Either 
18083 \family typewriter
18084 ''
18085 \backslash
18086 ,'
18087 \family default
18088  or 
18089 \family typewriter
18090 '
18091 \backslash
18092 ,''
18093 \family default
18094  will look better.
18095 \end_layout
18096
18097 \begin_layout Enumerate
18098
18099 \size small
18100 Delete this space to maintain correct page references.
18101 \end_layout
18102
18103 \begin_layout Enumerate
18104
18105 \size small
18106 \emph on
18107 You might wish to put this between a pair of 
18108 \begin_inset Quotes eld
18109 \end_inset
18110
18111
18112 \family typewriter
18113 {}
18114 \family default
18115
18116 \begin_inset Quotes erd
18117 \end_inset
18118
18119 .
18120 \end_layout
18121
18122 \begin_layout Enumerate
18123
18124 \size small
18125 You ought to remove spaces in front of punctuation.
18126 \end_layout
18127
18128 \begin_layout Enumerate
18129
18130 \size small
18131 Could not execute \SpecialChar LaTeX
18132  command.
18133 \end_layout
18134
18135 \begin_layout Enumerate
18136
18137 \size small
18138 Don't use 
18139 \family typewriter
18140
18141 \backslash
18142 /
18143 \family default
18144  in front of small punctuation.
18145 \end_layout
18146
18147 \begin_layout Enumerate
18148
18149 \family typewriter
18150 \size small
18151 $
18152 \backslash
18153 times$
18154 \family default
18155  may look prettier here.
18156 \end_layout
18157
18158 \begin_layout Enumerate
18159
18160 \size small
18161 \emph on
18162 Multiple spaces detected in output.
18163 \end_layout
18164
18165 \begin_layout Enumerate
18166
18167 \size small
18168 This text may be ignored.
18169 \end_layout
18170
18171 \begin_layout Enumerate
18172
18173 \size small
18174 Use 
18175 \family typewriter
18176
18177 \begin_inset Quotes eld
18178 \end_inset
18179
18180
18181 \family default
18182  to begin quotation, not 
18183 \family typewriter
18184 '
18185 \family default
18186 .
18187 \end_layout
18188
18189 \begin_layout Enumerate
18190
18191 \size small
18192 Use 
18193 \family typewriter
18194 '
18195 \family default
18196  to end quotation, not 
18197 \family typewriter
18198
18199 \begin_inset Quotes eld
18200 \end_inset
18201
18202
18203 \family default
18204 .
18205 \end_layout
18206
18207 \begin_layout Enumerate
18208
18209 \size small
18210 Don't mix quotes.
18211 \end_layout
18212
18213 \begin_layout Enumerate
18214
18215 \size small
18216 You should perhaps use 
18217 \begin_inset Quotes eld
18218 \end_inset
18219
18220
18221 \family typewriter
18222 cmd
18223 \family default
18224
18225 \begin_inset Quotes erd
18226 \end_inset
18227
18228  instead.
18229 \end_layout
18230
18231 \begin_layout Enumerate
18232
18233 \size small
18234 You should put a space in front of/after parenthesis.
18235 \end_layout
18236
18237 \begin_layout Enumerate
18238
18239 \size small
18240 You should avoid spaces in front of/after parenthesis.
18241 \end_layout
18242
18243 \begin_layout Enumerate
18244
18245 \size small
18246 \emph on
18247 You should not use punctuation in front of/after quotes.
18248 \end_layout
18249
18250 \begin_layout Enumerate
18251
18252 \size small
18253 Double space found.
18254 \end_layout
18255
18256 \begin_layout Enumerate
18257
18258 \size small
18259 You should put punctuation outside inner/inside display math mode.
18260 \end_layout
18261
18262 \begin_layout Enumerate
18263
18264 \size small
18265 You ought to not use primitive \SpecialChar TeX
18266  in \SpecialChar LaTeX
18267  code.
18268 \end_layout
18269
18270 \begin_layout Enumerate
18271
18272 \size small
18273 You should remove spaces in front of 
18274 \begin_inset Quotes eld
18275 \end_inset
18276
18277
18278 \family typewriter
18279 %s
18280 \family default
18281
18282 \begin_inset Quotes erd
18283 \end_inset
18284
18285
18286 \end_layout
18287
18288 \begin_layout Enumerate
18289
18290 \size small
18291 \begin_inset Quotes eld
18292 \end_inset
18293
18294
18295 \family typewriter
18296 %s
18297 \family default
18298
18299 \begin_inset Quotes erd
18300 \end_inset
18301
18302  is normally not followed by 
18303 \begin_inset Quotes eld
18304 \end_inset
18305
18306
18307 \family typewriter
18308 %c
18309 \family default
18310
18311 \begin_inset Quotes erd
18312 \end_inset
18313
18314 .
18315 \end_layout
18316
18317 \begin_layout Standard
18318 \SpecialChar LyX
18319 の将来の版では、このツール(およびその縮小版
18320 \family typewriter
18321 lacheck
18322 \family default
18323 )の力を最大限引き出すように、より完備したインターフェイスを提供できればと考えています。しかし、現状でも十分に役立つものとなっています。ある程度長さがある既存文
18324 書に使用してみていただければ、きっと驚かれることでしょう。
18325 \end_layout
18326
18327 \begin_layout Section
18328 \SpecialChar LyX
18329 でのバージョン管理
18330 \end_layout
18331
18332 \begin_layout Standard
18333
18334 \noun on
18335 Lars Bullik Bjønnes
18336 \noun default
18337 および
18338 \noun on
18339 Pavel Sanda
18340 \noun default
18341
18342 \end_layout
18343
18344 \begin_layout Subsection
18345 はじめに
18346 \end_layout
18347
18348 \begin_layout Standard
18349 \SpecialChar LyX
18350 は、今ではもっとも基本的なRCS/CVS/SVN/GITコマンドをサポートしています。もしもっと洗練されたことを行いたい場合には、ターミナル上から手動で行う必要
18351 があります。
18352 \end_layout
18353
18354 \begin_layout Standard
18355 また、CVSのサポートは、subversionのサポートほど良くないので、CVSよりもSVNを使うことをお勧めします。Subversionを学び始めるには、SV
18356 N Book
18357 \begin_inset Foot
18358 status collapsed
18359
18360 \begin_layout Plain Layout
18361 \begin_inset CommandInset href
18362 LatexCommand href
18363 target "http://svnbook.red-bean.com/"
18364
18365 \end_inset
18366
18367
18368 \end_layout
18369
18370 \end_inset
18371
18372 が良いでしょう。RCSの場合は、「rsintro」をお読みください(これはmanファイルです。
18373 \family typewriter
18374 man rcsintro
18375 \family default
18376 で読めます)。このファイルは、RCSの基本機能のすべてを説明しています。特に、RCSディレクトリに関するコメントと、マスターRCSファイル(
18377 \family typewriter
18378 ,v
18379 \family default
18380 で終わるファイルです)の概念に注意を払ってください。
18381 \end_layout
18382
18383 \begin_layout Standard
18384 \SpecialChar LyX
18385 で実際にバージョン管理機能を使い始める前に、RCS/CVS/SVN/GITの使用法に習熟しておかなくてはなりません。\SpecialChar LyX
18386 で\SpecialChar LyX
18387 への実装においては、GNU
18388  RCSまたはCVS/SVNパッケージの最新版を仮定しています。旧版への保証はありません。ログメッセージのほとんどは、現在のところ操作後には表示されません。確認
18389 したい場合には、メッセージ面で確かめてください。バージョン管理を常用するユーザーには、VCツールバーが便利でしょう。これは
18390 \family sans
18391 表示\SpecialChar menuseparator
18392 ツールバー\SpecialChar menuseparator
18393 バージョン管理
18394 \family default
18395 で有効にできます。
18396 \end_layout
18397
18398 \begin_layout Standard
18399 自製の外部コマンドを導入したい場合には、\SpecialChar LyX
18400 関数説明書のvcコマンドを確認してください。
18401 \end_layout
18402
18403 \begin_layout Standard
18404
18405 \lang english
18406 It is strongly recommended to store documents in uncompressed format if
18407  using version control (uncheck 
18408 \family sans
18409 Document\SpecialChar menuseparator
18410 Compressed
18411 \family default
18412  if it is checked): Uncompressed LyX documents are text files and therefore
18413  for merging two different versions by version control systems.
18414  Compressed LyX documents are binary files, which cannot be merged by version
18415  control systems.
18416 \lang japanese
18417
18418 \begin_inset space \space{}
18419 \end_inset
18420
18421
18422 \end_layout
18423
18424 \begin_layout Subsection
18425 \SpecialChar LyX
18426 におけるRCSコマンド
18427 \end_layout
18428
18429 \begin_layout Standard
18430 以下の節では\SpecialChar LyX
18431 でサポートされているRCSコマンドを説明します。それらのコマンドは
18432 \family sans
18433 ファイル\SpecialChar menuseparator
18434 バージョン管理
18435 \family default
18436 のサブメニューにあります。\SpecialChar LyX
18437 は、RCS 5.7/5.8に対して試験されています。
18438 \end_layout
18439
18440 \begin_layout Subsubsection
18441
18442 \family sans
18443 登録
18444 \end_layout
18445
18446 \begin_layout Standard
18447 文書がバージョン管理の下にない場合には、これがメニューにあらわれる唯一の項目です。文書がバージョン管理下にあれば、項目
18448 \family sans
18449 登録
18450 \family default
18451 は不可視になります。
18452 \end_layout
18453
18454 \begin_layout Standard
18455 このコマンドは、文書をRCSに登録します(CVSが管理しているディレクトリ下にない場合)。すると対話的に、文書の最初の説明を入力するように尋ねられます。すると文
18456 書は読み込み専用モードになるので、変更を加えるためには
18457 \family sans
18458 チェックアウトして編集
18459 \family default
18460 を実行する必要があります。バージョン管理下にある文書は、ミニバッファのファイル名の後ろに「 [RCS:<バージョン> <ロック>]」という項目が表示されます。
18461 \end_layout
18462
18463 \begin_layout Standard
18464 実行されるRCSコマンドは:
18465 \family typewriter
18466
18467 \begin_inset Newline newline
18468 \end_inset
18469
18470 ci -q -u -i -t-"<初期説明文>" <ファイル名>
18471 \end_layout
18472
18473 \begin_layout Standard
18474 スイッチについて知りたい場合は、
18475 \family typewriter
18476 man ci
18477 \family default
18478 を読んでください。
18479 \end_layout
18480
18481 \begin_layout Subsubsection
18482
18483 \family sans
18484 変更をチェックインする
18485 \end_layout
18486
18487 \begin_layout Standard
18488 ファイルの編集が終わると、その変更をチェックインします。このとき、変更についての説明文を求められます。これは履歴ログに記録されます。バージョン番号は繰り上がり、
18489 変更がマスターRCSファイルに適用され、文書がアンロックされて読み込み専用モードになります。
18490 \end_layout
18491
18492 \begin_layout Standard
18493 RCSコマンド:
18494 \family typewriter
18495 ci -q -u -m"<説明文>" <ファイル名>
18496 \end_layout
18497
18498 \begin_layout Subsubsection
18499
18500 \family sans
18501 チェックアウトして編集
18502 \end_layout
18503
18504 \begin_layout Standard
18505 これは、文書をロックして編集できるようにします。そしてあなただけが文書を読み書きできるようにします。通常は、しばらくの間、文書を編集し、それが終わると変更をチェ
18506 ックインします。あなたがファイルをロックしたことを反映して、ステータスラインが変わります。
18507 \end_layout
18508
18509 \begin_layout Standard
18510 RCSコマンド:
18511 \family typewriter
18512 co -q -l <ファイル名>
18513 \end_layout
18514
18515 \begin_layout Subsubsection
18516
18517 \family sans
18518 リポジトリのバージョンに戻す
18519 \end_layout
18520
18521 \begin_layout Standard
18522 これは、最終チェックイン以降、文書に加えられた変更をすべて破棄します。変更が破棄される前に、警告が発せられます。
18523 \end_layout
18524
18525 \begin_layout Standard
18526 RCSコマンド:
18527 \family typewriter
18528 co -f -u<バージョン> <ファイル名>
18529 \end_layout
18530
18531 \begin_layout Subsubsection
18532
18533 \family sans
18534 コピー
18535 \end_layout
18536
18537 \begin_layout Standard
18538 これは、現行文書のコピーを生成します。RCSは、コピー操作を自前ではサポートしませんので、バージョン履歴には保存されず、新コピーは新規ファイルとして追加されます
18539 。最後のチェックイン以降、変更が加えられていないサラの文書であることが要求されます。ファイル名とコピー操作の説明を入力するように促され、その後、新コピーがローカ
18540 ルとリポジトリの両方に生成されます。コピーされた文書と元の文書の親ディレクトリが異なる場合には、コピーにインクルードされたファイルの相対パスは、(
18541 \family sans
18542 ファイル\SpecialChar menuseparator
18543 名前をつけて保存\SpecialChar ldots
18544
18545 \family default
18546 と同様に)全て調整されます。最後に、元の文書の代わりに、コピーされたファイルが読み込まれます。
18547 \end_layout
18548
18549 \begin_layout Labeling
18550 \labelwidthstring 00.00.0000
18551 RCSコマンド:
18552 \begin_inset Flex Code
18553 status collapsed
18554
18555 \begin_layout Plain Layout
18556 "ファイル名"
18557 \end_layout
18558
18559 \end_inset
18560
18561
18562 \family typewriter
18563 "新ファイル名"
18564 \family default
18565 にコピーする場合
18566 \end_layout
18567
18568 \begin_layout Labeling
18569 \labelwidthstring 00.00.0000
18570 \begin_inset Flex Code
18571 status collapsed
18572
18573 \begin_layout Plain Layout
18574 ci -q -u -i "<新ファイル名>"
18575 \end_layout
18576
18577 \end_inset
18578
18579
18580 \end_layout
18581
18582 \begin_layout Subsubsection
18583
18584 \family sans
18585 最後のチェックインを取り消す
18586 \end_layout
18587
18588 \begin_layout Standard
18589 これは、最後のチェックインがあたかも為されなかったかのようにします。\SpecialChar LyX
18590 に読み込まれた文書に変更は加えられませんが、マスターRCSファイルから最後のバージョンが削除
18591 されます。
18592 \end_layout
18593
18594 \begin_layout Standard
18595 RCSコマンド:
18596 \family typewriter
18597 rcs -o<バージョン> <ファイル名>
18598 \end_layout
18599
18600 \begin_layout Subsubsection
18601
18602 \family sans
18603 履歴を表示
18604 \end_layout
18605
18606 \begin_layout Standard
18607 RCS文書の完全な履歴を表示します。ブラウザ中に、
18608 \family typewriter
18609 rlog <ファイル名>
18610 \family default
18611 の出力が表示されます。詳細は
18612 \family typewriter
18613 man rlog
18614 \family default
18615 をご覧ください。
18616 \end_layout
18617
18618 \begin_layout Subsubsection
18619 改訂情報
18620 \end_layout
18621
18622 \begin_layout Standard
18623 \SpecialChar LyX
18624 は、RCSバージョン番号情報(のみ)をサポートしています。詳細については、
18625 \begin_inset CommandInset ref
18626 LatexCommand ref
18627 reference "subsec:VCS改訂情報"
18628
18629 \end_inset
18630
18631 を参照。
18632 \end_layout
18633
18634 \begin_layout Subsection
18635 \SpecialChar LyX
18636 におけるCVSコマンド
18637 \end_layout
18638
18639 \begin_layout Standard
18640 \SpecialChar LyX
18641 は、現在CVSを一部サポートしています。そのコマンドは、
18642 \family sans
18643 ファイル\SpecialChar menuseparator
18644 バージョン管理
18645 \family default
18646 サブメニューにあります。バージョン管理システムSVNの方が強力なので、可能ならばCVSではなく、SVNを使用してください。
18647 \end_layout
18648
18649 \begin_layout Subsubsection
18650 CVSの一般的な利用法
18651 \end_layout
18652
18653 \begin_layout Standard
18654 CVSを初めて使いたい場合には、外部ツールを使用して自分のレポジトリを作成し、作業コピーをチェックアウトする必要があります。クライアント=サーバーモデルを使用し
18655 ている場合には、最初のレポジトリチェックアウトを行う前にログインする必要があるかもしれません。
18656 \end_layout
18657
18658 \begin_layout Standard
18659 改訂管理下にある文書のレポジトリを他人も利用している場合に、同一文書の同一箇所に別々の変更を加えてしまうと問題が発生します。標準的なCVSレポジトリは、ファイル
18660 ロッキング機構を有しません。これは驚くべきことかもしれませんが、コンフリクトは、文書の同じ箇所の特定の内容について、人々が意見を異にしている場合にのみ発生します
18661 。したがって、共著者同士がコンスタントにコミュニケーションを交わしていれば、このようなコンフリクトは滅多に発生しません。もしコミュニケーションがなければ、いずれ
18662 にしても根本的な問題があるわけです。それにもかかわらず、いわゆる「予備付きチェックアウト」を使用したいと思う人々もいます。この場合、最初にチェックアウトした際に
18663 、全ファイルの作業コピーは読み込み専用にされ、ユーザーは、作業コピーを書き込み可能にする特別なコマンドを使用した後、編集を開始することになります。変更をチェック
18664 インすると、作業コピーは読み込み専用状態に戻ります。\SpecialChar LyX
18665 で予備付きチェックアウトを利用したい場合には、
18666 \begin_inset Flex Code
18667 status collapsed
18668
18669 \begin_layout Plain Layout
18670 .cvsrc
18671 \end_layout
18672
18673 \end_inset
18674
18675 ファイルを編集して、
18676 \begin_inset Flex Code
18677 status collapsed
18678
18679 \begin_layout Plain Layout
18680 cvs -r
18681 \end_layout
18682
18683 \end_inset
18684
18685 という行を書き加える必要があります。この方法の利点は、文書のうち、書き込み可能コピーを誰が使用しているかを見ることができることです。ただし、一人のユーザーだけが
18686 コピーを書き込み可能にしているとは限りません。
18687 \end_layout
18688
18689 \begin_layout Standard
18690 \SpecialChar LyX
18691 は、あなたが予備付きチェックアウトを使用しているか、予備なしチェックアウトを利用しているか、推測しようと試みます。使用中の作業コピーが読み込み専用になっているか
18692 、あるいはそれが書き込み可能であって、CVS/Baseサブディレクトリに使用中文書のコピーが存在している場合には、予備付きチェックアウトを使用しているものと仮定
18693 し、そうでない場合には予備なしチェックアウトを使用しているものと仮定します。予備付きチェックアウトが検出された場合には、作業コピーが読み込み専用の場合に書き込み
18694 可能にするためには、
18695 \begin_inset Flex MenuItem
18696 status collapsed
18697
18698 \begin_layout Plain Layout
18699 チェックアウト
18700 \end_layout
18701
18702 \end_inset
18703
18704 メニューを使用しなくてはなりません。その後、
18705 \begin_inset Flex MenuItem
18706 status collapsed
18707
18708 \begin_layout Plain Layout
18709 チェックイン
18710 \end_layout
18711
18712 \end_inset
18713
18714 メニューが利用可能になるので、自分が加えた変更をリポジトリに移した後、作業コピーを再び読み込み専用にする際には、これを使用します。
18715 \end_layout
18716
18717 \begin_layout Standard
18718 CVSの詳細な情報は、
18719 \begin_inset Flex URL
18720 status collapsed
18721
18722 \begin_layout Plain Layout
18723
18724 http://www.nongnu.org/cvs
18725 \end_layout
18726
18727 \end_inset
18728
18729
18730 \begin_inset Flex URL
18731 status collapsed
18732
18733 \begin_layout Plain Layout
18734
18735 http://ximbiot.com/cvs
18736 \end_layout
18737
18738 \end_inset
18739
18740 にあります。
18741 \end_layout
18742
18743 \begin_layout Standard
18744 以下に言及するサブコマンドとスイッチを理解するには、
18745 \family typewriter
18746 man cvs
18747 \family default
18748 をお読みください。
18749 \end_layout
18750
18751 \begin_layout Subsubsection
18752 登録
18753 \end_layout
18754
18755 \begin_layout Standard
18756 お使いの文書が改訂管理下に置かれていなければ、メニューにはこの項目だけが表示されます。もし改訂管理が有効ならば、
18757 \family sans
18758 登録
18759 \family default
18760 項目は表示されません。
18761 \end_layout
18762
18763 \begin_layout Standard
18764 本コマンドは、既に文書ディレクトリをCVS管理下に置いている場合に
18765 \series bold
18766 \emph on
18767 のみ
18768 \series default
18769 \emph default
18770 (すなわち
18771 \begin_inset Flex Code
18772 status collapsed
18773
18774 \begin_layout Plain Layout
18775 CVS/Entries
18776 \end_layout
18777
18778 \end_inset
18779
18780 ファイルが存在する場合にのみ)、お使いの文書をCVSに登録します。つまり、外部ツールを使用して、アーカイブを自分で作成ないしチェックアウトしなくてはならないこと
18781 を意味します(このステップを忘れてしまうと、\SpecialChar LyX
18782 は文書をRCSに登録します)。
18783 \end_layout
18784
18785 \begin_layout Standard
18786 すると、文書の最初の説明文を入力するように促されます。登録したファイルは、まだチェックインされたわけではないことに注意してください。
18787 \end_layout
18788
18789 \begin_layout Standard
18790 実行されるCVSコマンドは、
18791 \family typewriter
18792 cvs -q add -m"<入力した説明文>" "<ファイル名>"
18793 \family default
18794  です。
18795 \end_layout
18796
18797 \begin_layout Standard
18798 上記および他のすべてのCVSコマンドにおける
18799 \family typewriter
18800 "<ファイル名>"
18801 \family default
18802 は、「カレント作業ディレクトリをファイルの場所に移動し、パスコンポーネントを除いたファイル名を引数として使用する」という意味になります。
18803 \end_layout
18804
18805 \begin_layout Subsubsection
18806 変更のチェックイン
18807 \end_layout
18808
18809 \begin_layout Standard
18810 ファイルの編集を終えたら、変更をコミットします。このとき、文書に変更が加えられていれば、変更の説明文を入れるよう促されます。その後、変更がレポジトリに書き込まれ
18811 ます。文書を変更せず、予備付きチェックアウトが検出された場合、
18812 \begin_inset Flex MenuItem
18813 status collapsed
18814
18815 \begin_layout Plain Layout
18816 チェックアウト
18817 \end_layout
18818
18819 \end_inset
18820
18821 で作られた予備は取り消されます。
18822 \end_layout
18823
18824 \begin_layout Labeling
18825 \labelwidthstring 00.00.0000
18826 CVSコマンド: 
18827 \begin_inset space ~
18828 \end_inset
18829
18830
18831 \begin_inset Newline newline
18832 \end_inset
18833
18834
18835 \begin_inset Flex Code
18836 status collapsed
18837
18838 \begin_layout Plain Layout
18839 cvs -q commit -m"<入力した説明文>" "<ファイル名>"
18840 \end_layout
18841
18842 \end_inset
18843
18844 あるいは
18845 \begin_inset Newline newline
18846 \end_inset
18847
18848
18849 \begin_inset Flex Code
18850 status collapsed
18851
18852 \begin_layout Plain Layout
18853 cvs -q unedit "<ファイル名>"
18854 \end_layout
18855
18856 \end_inset
18857
18858
18859 \end_layout
18860
18861 \begin_layout Subsubsection
18862 変更のチェックアウト
18863 \end_layout
18864
18865 \begin_layout Standard
18866 レポジトリを他人と共有している場合、他人の加えた変更を自らの作業コピーに取り込まなくてはならないことがあります。
18867 \end_layout
18868
18869 \begin_layout Standard
18870 CVSコマンド:
18871 \family typewriter
18872 cvs -q update "<ファイル名>"
18873 \end_layout
18874
18875 \begin_layout Standard
18876 読み込み専用チェックアウトが検出された場合、作業コピーを書き込み可能にし予備を作成します。
18877 \end_layout
18878
18879 \begin_layout Standard
18880 CVSコマンド:
18881 \family typewriter
18882 cvs -q edit "<ファイル名>"
18883 \end_layout
18884
18885 \begin_layout Subsubsection
18886 レポジトリ版に戻す
18887 \end_layout
18888
18889 \begin_layout Standard
18890 これは、最後のチェックイン以降、文書に加えられた変更をすべて廃棄します。変更が廃棄される前に警告が表示されます。最初にファイルが削除され、次にCVS更新コマンド
18891 が実行されます。
18892 \end_layout
18893
18894 \begin_layout Standard
18895 CVSコマンド:
18896 \family typewriter
18897 cvs -q update "<ファイル名>"
18898 \end_layout
18899
18900 \begin_layout Standard
18901 予備付きチェックアウトが検出され、作業コピーに変更がない場合、予備のみが取り消されます。
18902 \end_layout
18903
18904 \begin_layout Standard
18905 CVSコマンド:
18906 \family typewriter
18907 cvs -q unedit "<ファイル名>"
18908 \end_layout
18909
18910 \begin_layout Subsubsection
18911
18912 \family sans
18913 コピー
18914 \end_layout
18915
18916 \begin_layout Standard
18917 これは、現行文書のコピーを生成します。CVSは、コピー操作を自前ではサポートしませんので、バージョン履歴には保存されず、新コピーは新規ファイルとして追加されます
18918 。最後のチェックイン以降、変更が加えられていないサラの文書であることが要求されます。ファイル名とコピー操作の説明を入力するように促され、その後、新コピーがローカ
18919 ルとリポジトリの両方に生成されます。コピーされた文書と元の文書の親ディレクトリが異なる場合には、コピーにインクルードされたファイルの相対パスは、(
18920 \family sans
18921 ファイル\SpecialChar menuseparator
18922 名前をつけて保存\SpecialChar ldots
18923
18924 \family default
18925 と同様に)全て調整されます。最後に、元の文書の代わりに、コピーされたファイルが読み込まれます。
18926 \end_layout
18927
18928 \begin_layout Labeling
18929 \labelwidthstring 00.00.0000
18930 CVSコマンド:
18931 \end_layout
18932
18933 \begin_layout Labeling
18934 \labelwidthstring 00.00.0000
18935 \begin_inset Flex Code
18936 status collapsed
18937
18938 \begin_layout Plain Layout
18939 "ファイル名"
18940 \end_layout
18941
18942 \end_inset
18943
18944
18945 \begin_inset Flex Code
18946 status collapsed
18947
18948 \begin_layout Plain Layout
18949 "新ファイル名"
18950 \end_layout
18951
18952 \end_inset
18953
18954 にコピーする場合
18955 \end_layout
18956
18957 \begin_layout Labeling
18958 \labelwidthstring 00.00.0000
18959 \begin_inset Flex Code
18960 status collapsed
18961
18962 \begin_layout Plain Layout
18963 cvs -q add "<新ファイル名>"
18964 \end_layout
18965
18966 \end_inset
18967
18968
18969 \end_layout
18970
18971 \begin_layout Subsubsection
18972 ファイル名変更
18973 \end_layout
18974
18975 \begin_layout Standard
18976 これは、現行文書のファイル名を変更します。CVSは、ファイル名変更操作を自前ではサポートしませんので、バージョン履歴には保存されず、名称変更後のファイルは、新規
18977 ファイルとして追加されます。最後のチェックイン以降、変更が加えられていないサラの文書であることが要求されます。ファイル名とコピー操作の説明を入力するように促され
18978 、その後、ローカルとリポジトリの両方でファイル名が変更されます。新旧ファイル名の文書の親ディレクトリが異なる場合には、コピーにインクルードされたファイルの相対パ
18979 スは、(
18980 \family sans
18981 ファイル\SpecialChar menuseparator
18982 名前をつけて保存\SpecialChar ldots
18983
18984 \family default
18985 と同様に)全て調整されます。最後に、新ファイル名を使ってファイルが再度読み込まれます。
18986 \end_layout
18987
18988 \begin_layout Labeling
18989 \labelwidthstring 00.00.0000
18990 CVSコマンド:
18991 \end_layout
18992
18993 \begin_layout Labeling
18994 \labelwidthstring 00.00.0000
18995 \begin_inset Flex Code
18996 status collapsed
18997
18998 \begin_layout Plain Layout
18999 "ファイル名"
19000 \end_layout
19001
19002 \end_inset
19003
19004
19005 \begin_inset Flex Code
19006 status collapsed
19007
19008 \begin_layout Plain Layout
19009 "新ファイル名"
19010 \end_layout
19011
19012 \end_inset
19013
19014 に変更する場合
19015 \end_layout
19016
19017 \begin_layout Labeling
19018 \labelwidthstring 00.00.0000
19019 \begin_inset Flex Code
19020 status collapsed
19021
19022 \begin_layout Plain Layout
19023 cvs -q add "<新ファイル名>"
19024 \end_layout
19025
19026 \end_inset
19027
19028
19029 \end_layout
19030
19031 \begin_layout Labeling
19032 \labelwidthstring 00.00.0000
19033 \begin_inset Flex Code
19034 status collapsed
19035
19036 \begin_layout Plain Layout
19037 cvs -q remove "<ファイル名>"
19038 \end_layout
19039
19040 \end_inset
19041
19042
19043 \end_layout
19044
19045 \begin_layout Subsubsection
19046 ローカルディレクトリチェックアウトのレポジトリからの更新
19047 \end_layout
19048
19049 \begin_layout Standard
19050 子文書や図を含んだり、外部
19051 \begin_inset Flex Code
19052 status collapsed
19053
19054 \begin_layout Plain Layout
19055 .tex
19056 \end_layout
19057
19058 \end_inset
19059
19060 ファイルを取り込むなど、文書が複雑になるにつれ、バージョン管理の利用は複雑になります。\SpecialChar LyX
19061 は、文書が存在するツリー全体の更新をサポートします。これは、CVSの使用法
19062 について詳しい知識のない人々や、レポジトリに追加素材をコミットする野望のない人々と共同作業をするような場合に、特に便利です。ファイル構造は、すべての外部ファイル
19063 が、文書と同じディレクトリかそのサブディレクトリに来るように組織する必要があります。いずれにしても、複合文書を新しいディレクトリを建てて収容するのは、望ましい習
19064 慣です。
19065 \end_layout
19066
19067 \begin_layout Standard
19068 コマンド
19069 \begin_inset Flex Code
19070 status collapsed
19071
19072 \begin_layout Plain Layout
19073 レポジトリを使ってローカル辞書を更新
19074 \end_layout
19075
19076 \end_inset
19077
19078 は、ディレクトリ全体を更新します。ローカルの変更が検出された場合には、更新を開始する前にユーザーに警告が発せられます。マージコンフリクトが発生した場合には、コン
19079 フリクトを起こしている部分の新旧バージョンが、両方とも最終文書に置かれますので、マージの結果を見直し、修正する必要があります。コンフリクトは、
19080 \begin_inset Flex Code
19081 status collapsed
19082
19083 \begin_layout Plain Layout
19084 <<<<<<<
19085 \end_layout
19086
19087 \end_inset
19088
19089
19090 \begin_inset Flex Code
19091 status collapsed
19092
19093 \begin_layout Plain Layout
19094 >>>>>>>
19095 \end_layout
19096
19097 \end_inset
19098
19099 の対に囲まれ、
19100 \begin_inset Flex Code
19101 status collapsed
19102
19103 \begin_layout Plain Layout
19104 =======
19105 \end_layout
19106
19107 \end_inset
19108
19109 で区切られて表示されます。最初の部分は、文書名に続いて、更新操作前のバージョンが置かれています。第2の部分は、
19110 \begin_inset Flex Code
19111 status collapsed
19112
19113 \begin_layout Plain Layout
19114 >
19115 \end_layout
19116
19117 \end_inset
19118
19119 記号列の後にバージョン番号に続いて、レポジトリ版が置かれます。
19120 \end_layout
19121
19122 \begin_layout Labeling
19123 \labelwidthstring 00.00.0000
19124 CVSコマンド: 
19125 \begin_inset space ~
19126 \end_inset
19127
19128
19129 \begin_inset Newline newline
19130 \end_inset
19131
19132
19133 \begin_inset Flex Code
19134 status collapsed
19135
19136 \begin_layout Plain Layout
19137 cd $path; cvs diff "."
19138 \end_layout
19139
19140 \end_inset
19141
19142 (変更が検出された場合には知らせる)
19143 \begin_inset Newline newline
19144 \end_inset
19145
19146
19147 \begin_inset Flex Code
19148 status collapsed
19149
19150 \begin_layout Plain Layout
19151 cd $path; cvs -q update "."
19152 \end_layout
19153
19154 \end_inset
19155
19156
19157 \end_layout
19158
19159 \begin_layout Standard
19160 ここで
19161 \begin_inset Flex Code
19162 status collapsed
19163
19164 \begin_layout Plain Layout
19165 $path
19166 \end_layout
19167
19168 \end_inset
19169
19170 は文書パスを表します。
19171 \end_layout
19172
19173 \begin_layout Subsubsection
19174 履歴を表示
19175 \end_layout
19176
19177 \begin_layout Standard
19178 これは、CVS文書の全履歴を表示します。
19179 \begin_inset Flex Code
19180 status collapsed
19181
19182 \begin_layout Plain Layout
19183 cvs log 
19184 \begin_inset Quotes eld
19185 \end_inset
19186
19187 <ファイル名>
19188 \begin_inset Quotes erd
19189 \end_inset
19190
19191
19192 \end_layout
19193
19194 \end_inset
19195
19196 の出力がブラウザに表示されます。
19197 \end_layout
19198
19199 \begin_layout Subsubsection
19200 改訂情報
19201 \end_layout
19202
19203 \begin_layout Standard
19204 \SpecialChar LyX
19205 は、CVS版数・著者名・最終コミットの日時をサポートします。これらの情報は、すべて
19206 \family typewriter
19207 cvs log -r <ファイル名>
19208 \family default
19209 によって抽出されます。詳細については、第
19210 \begin_inset CommandInset ref
19211 LatexCommand ref
19212 reference "subsec:VCS改訂情報"
19213
19214 \end_inset
19215
19216 節を参照してください。
19217 \end_layout
19218
19219 \begin_layout Subsection
19220 \SpecialChar LyX
19221 におけるSVNコマンド
19222 \end_layout
19223
19224 \begin_layout Standard
19225 \SpecialChar LyX
19226 は、現在SVNを一部サポートしています。そのコマンドは、
19227 \begin_inset Flex MenuItem
19228 status collapsed
19229
19230 \begin_layout Plain Layout
19231 ファイル\SpecialChar menuseparator
19232 バージョン管理
19233 \end_layout
19234
19235 \end_inset
19236
19237 メニューにあります。レポジトリへのアクセスに、ssh経由のパスワード保護アクセスを使用している場合には、端末ウィンドウでの入力を促されます。\SpecialChar LyX
19238 は、SVN
19239  1.5および1.6に対して試験されています。
19240 \end_layout
19241
19242 \begin_layout Subsubsection
19243 登録
19244 \end_layout
19245
19246 \begin_layout Standard
19247 お使いの文書が改訂管理下に置かれていなければ、メニューにはこの項目だけが表示されます。もし改訂管理が有効ならば、
19248 \family sans
19249 登録
19250 \family default
19251 項目は表示されません。
19252 \end_layout
19253
19254 \begin_layout Standard
19255 本コマンドは、既に文書のあるディレクトリをSVN管理下に置いている場合に
19256 \emph on
19257 のみ
19258 \emph default
19259 (すなわち
19260 \begin_inset Flex Code
19261 status collapsed
19262
19263 \begin_layout Plain Layout
19264 .svn/entries
19265 \end_layout
19266
19267 \end_inset
19268
19269 ファイルが存在する場合にのみ)、お使いの文書をSVNに登録します。つまり、アーカイブはご自分でチェックアウトしなくてはなりません。
19270 \end_layout
19271
19272 \begin_layout Standard
19273 すると、文書の最初の説明文を入力するように促されます。登録したファイルは、まだコミットされたわけではないことに注意してください。
19274 \end_layout
19275
19276 \begin_layout Standard
19277 実行されるSVNコマンドは、
19278 \begin_inset Flex Code
19279 status collapsed
19280
19281 \begin_layout Plain Layout
19282 svn add -q 
19283 \begin_inset Quotes eld
19284 \end_inset
19285
19286 <ファイル名>
19287 \begin_inset Quotes erd
19288 \end_inset
19289
19290
19291 \end_layout
19292
19293 \end_inset
19294
19295 です。
19296 \end_layout
19297
19298 \begin_layout Standard
19299 スイッチの説明は
19300 \begin_inset Flex Code
19301 status collapsed
19302
19303 \begin_layout Plain Layout
19304 man svn
19305 \end_layout
19306
19307 \end_inset
19308
19309 をお読みください。
19310 \end_layout
19311
19312 \begin_layout Subsubsection
19313 変更をチェックイン
19314 \end_layout
19315
19316 \begin_layout Standard
19317 ファイルの編集を終えたら、変更をコミットします。このとき、変更の説明文を入れるよう促されます。その後、変更がコミットされます。
19318 \end_layout
19319
19320 \begin_layout Standard
19321 SVNコマンド
19322 \begin_inset Foot
19323 status collapsed
19324
19325 \begin_layout Plain Layout
19326 ロックが有効になっていない場合です。第
19327 \begin_inset CommandInset ref
19328 LatexCommand ref
19329 reference "subsec:SVNファイルロック"
19330
19331 \end_inset
19332
19333 節をご覧ください。
19334 \end_layout
19335
19336 \end_inset
19337
19338
19339 \begin_inset Flex Code
19340 status collapsed
19341
19342 \begin_layout Plain Layout
19343 svn commit -q -m
19344 \begin_inset Quotes erd
19345 \end_inset
19346
19347 <入力した説明文>
19348 \begin_inset Quotes erd
19349 \end_inset
19350
19351  
19352 \begin_inset Quotes eld
19353 \end_inset
19354
19355 <ファイル名>
19356 \begin_inset Quotes erd
19357 \end_inset
19358
19359
19360 \end_layout
19361
19362 \end_inset
19363
19364
19365 \end_layout
19366
19367 \begin_layout Subsubsection
19368 チェックアウトして編集
19369 \end_layout
19370
19371 \begin_layout Standard
19372 このファイルの変更点をレポジトリから取得して更新します。すべての干渉点は、手動で解決しなくてはならないので、この機能を使う前にSVNのマージ法と干渉解決法を理解
19373 しておくようにしてください。
19374 \end_layout
19375
19376 \begin_layout Standard
19377 SVNコマンド
19378 \begin_inset Foot
19379 status collapsed
19380
19381 \begin_layout Plain Layout
19382 同上。
19383 \end_layout
19384
19385 \end_inset
19386
19387
19388 \begin_inset Flex Code
19389 status collapsed
19390
19391 \begin_layout Plain Layout
19392 svn update –non-interactive 
19393 \begin_inset Quotes eld
19394 \end_inset
19395
19396 <ファイル名>
19397 \begin_inset Quotes erd
19398 \end_inset
19399
19400
19401 \end_layout
19402
19403 \end_inset
19404
19405
19406 \end_layout
19407
19408 \begin_layout Subsubsection
19409 リポジトリ版に戻す
19410 \end_layout
19411
19412 \begin_layout Standard
19413 これは、最後のチェックイン以降、文書に加えられた変更をすべて廃棄します。変更が廃棄される前に警告が表示されます。
19414 \end_layout
19415
19416 \begin_layout Standard
19417 SVNコマンド:
19418 \begin_inset Flex Code
19419 status collapsed
19420
19421 \begin_layout Plain Layout
19422 svn revert -q 
19423 \begin_inset Quotes eld
19424 \end_inset
19425
19426 <ファイル名>
19427 \begin_inset Quotes erd
19428 \end_inset
19429
19430
19431 \end_layout
19432
19433 \end_inset
19434
19435
19436 \end_layout
19437
19438 \begin_layout Subsubsection
19439
19440 \family sans
19441 コピー
19442 \end_layout
19443
19444 \begin_layout Standard
19445 これは、現行文書のコピーを生成します。最後のチェックイン以降、変更が加えられていないサラの文書であることが要求されます。ファイル名とコピー操作の説明を入力するよ
19446 うに促され、その後、新コピーがローカルとリポジトリの両方に生成されます。コピーされた文書と元の文書の親ディレクトリが異なる場合には、コピーにインクルードされたフ
19447 ァイルの相対パスは、(
19448 \family sans
19449 ファイル\SpecialChar menuseparator
19450 名前をつけて保存\SpecialChar ldots
19451
19452 \family default
19453 と同様に)全て調整されます。最後に、元の文書の代わりに、コピーされたファイルが読み込まれます。
19454 \end_layout
19455
19456 \begin_layout Labeling
19457 \labelwidthstring 00.00.0000
19458 SVNコマンド:
19459 \end_layout
19460
19461 \begin_layout Labeling
19462 \labelwidthstring 00.00.0000
19463 \begin_inset Flex Code
19464 status collapsed
19465
19466 \begin_layout Plain Layout
19467 svn copy -q "<ファイル名>" "<新ファイル名>"
19468 \end_layout
19469
19470 \end_inset
19471
19472
19473 \end_layout
19474
19475 \begin_layout Labeling
19476 \labelwidthstring 00.00.0000
19477 \begin_inset Flex Code
19478 status collapsed
19479
19480 \begin_layout Plain Layout
19481 svn commit
19482 \end_layout
19483
19484 \end_inset
19485
19486
19487 \end_layout
19488
19489 \begin_layout Subsubsection
19490 ファイル名変更
19491 \end_layout
19492
19493 \begin_layout Standard
19494 これは、現行文書のファイル名を変更します。最後のチェックイン以降、変更が加えられていないサラの文書であることが要求されます。ファイル名とコピー操作の説明を入力す
19495 るように促され、その後、ローカルとリポジトリの両方でファイル名が変更されます。新旧ファイル名の文書の親ディレクトリが異なる場合には、コピーにインクルードされたフ
19496 ァイルの相対パスは、(
19497 \family sans
19498 ファイル\SpecialChar menuseparator
19499 名前をつけて保存\SpecialChar ldots
19500
19501 \family default
19502 と同様に)全て調整されます。最後に、新ファイル名を使ってファイルが再度読み込まれます。
19503 \end_layout
19504
19505 \begin_layout Labeling
19506 \labelwidthstring 00.00.0000
19507 SVNコマンド:
19508 \end_layout
19509
19510 \begin_layout Labeling
19511 \labelwidthstring 00.00.0000
19512 \begin_inset Flex Code
19513 status collapsed
19514
19515 \begin_layout Plain Layout
19516 svn move -q add "<ファイル名>" "<新ファイル名>"
19517 \end_layout
19518
19519 \end_inset
19520
19521
19522 \end_layout
19523
19524 \begin_layout Labeling
19525 \labelwidthstring 00.00.0000
19526 \begin_inset Flex Code
19527 status collapsed
19528
19529 \begin_layout Plain Layout
19530 svn commit
19531 \end_layout
19532
19533 \end_inset
19534
19535
19536 \end_layout
19537
19538 \begin_layout Subsubsection
19539 \begin_inset CommandInset label
19540 LatexCommand label
19541 name "subsec:レポジトリからSVN同期"
19542
19543 \end_inset
19544
19545 レポジトリを使ったローカルディレクトリの同期
19546 \begin_inset Foot
19547 status collapsed
19548
19549 \begin_layout Plain Layout
19550 このコマンドは、subversion 
19551 \begin_inset Formula $\geqq1.5$
19552 \end_inset
19553
19554 でのみ動作することに注意してください。
19555 \end_layout
19556
19557 \end_inset
19558
19559
19560 \end_layout
19561
19562 \begin_layout Standard
19563 上記の各コマンドはすべて、共通の短所を持っています。すなわち、これらのコマンドは現在の文書しか取り扱わないのです。もし、作業中の文書に図を含めたり、外部
19564 \begin_inset Flex Code
19565 status collapsed
19566
19567 \begin_layout Plain Layout
19568 .tex
19569 \end_layout
19570
19571 \end_inset
19572
19573 ファイルを取り込んだりすれば、管理はずっと複雑になります。そこで\SpecialChar LyX
19574 は、文書のおいてあるツリー全体の更新をサポートします
19575 \begin_inset Foot
19576 status collapsed
19577
19578 \begin_layout Plain Layout
19579 すべての外部ファイルが、文書と同じディレクトリかそれ以下のサブディレクトリに来るようにファイル構造を構成する必要があります。
19580 \end_layout
19581
19582 \end_inset
19583
19584 。これは、subversion管理を知らなかったりレポジトリに新しい素材をコミットする勇気のない人たちと共同作業をする羽目になったときに、ひじょうに役に立ちます
19585
19586 \end_layout
19587
19588 \begin_layout Standard
19589 \begin_inset Flex Code
19590 status collapsed
19591
19592 \begin_layout Plain Layout
19593 ローカル辞書をレポジトリを使って更新
19594 \end_layout
19595
19596 \end_inset
19597
19598 コマンドは、ディレクトリ全体を更新し、マージに衝突が発生した場合には、ローカル版は保存されるので、意図しないデータロスが発生しません。ローカルな変更が発見された
19599 場合には、更新が開始される前にユーザに警告が与えられます。
19600 \end_layout
19601
19602 \begin_layout Labeling
19603 \labelwidthstring 00.00.0000
19604 SVNコマンド: 
19605 \begin_inset space ~
19606 \end_inset
19607
19608
19609 \begin_inset Newline newline
19610 \end_inset
19611
19612
19613 \begin_inset Flex Code
19614 status collapsed
19615
19616 \begin_layout Plain Layout
19617 svn diff $path(変更が発見された場合には通知します)
19618 \begin_inset Newline newline
19619 \end_inset
19620
19621 svn update –accept mine-full $path
19622 \end_layout
19623
19624 \end_inset
19625
19626
19627 \end_layout
19628
19629 \begin_layout Standard
19630 ここで
19631 \begin_inset Flex Code
19632 status collapsed
19633
19634 \begin_layout Plain Layout
19635 $path
19636 \end_layout
19637
19638 \end_inset
19639
19640 は文書のパスを示します。
19641 \end_layout
19642
19643 \begin_layout Subsubsection
19644 履歴を表示
19645 \end_layout
19646
19647 \begin_layout Standard
19648 これは、SVN文書の全履歴を表示します。
19649 \begin_inset Flex Code
19650 status collapsed
19651
19652 \begin_layout Plain Layout
19653 svn log 
19654 \begin_inset Quotes eld
19655 \end_inset
19656
19657 <ファイル名>
19658 \begin_inset Quotes erd
19659 \end_inset
19660
19661
19662 \end_layout
19663
19664 \end_inset
19665
19666 の出力がブラウザに表示されます。
19667 \end_layout
19668
19669 \begin_layout Subsubsection
19670 ファイルロック
19671 \begin_inset CommandInset label
19672 LatexCommand label
19673 name "subsec:SVNファイルロック"
19674
19675 \end_inset
19676
19677
19678 \end_layout
19679
19680 \begin_layout Standard
19681 別々の改訂管理システム間でファイルを交換しようとすると、二人のユーザが同じ文書(の一部)を編集している場合、マージが衝突する問題を引き起こします。そのような衝突
19682 が発生した場合、手動で解決しなくてはならなくなりますが、その合理的な解決法としては、与えられた時間に一人のユーザだけがファイルを編集することが許されるように保証
19683 するための、何らかのロック機構を導入することが考えられます。
19684 \end_layout
19685
19686 \begin_layout Standard
19687 SVNには、このように相互に排他的なファイルアクセスを提供する機構が二つあります。ロックと、
19688 \begin_inset Flex Code
19689 status collapsed
19690
19691 \begin_layout Plain Layout
19692 svn:needs-lock
19693 \end_layout
19694
19695 \end_inset
19696
19697 svnファイル特性に依拠した書き込み権限の自動設定(第
19698 \begin_inset CommandInset ref
19699 LatexCommand ref
19700 reference "subsec:自動ロック特性"
19701
19702 \end_inset
19703
19704 節を参照)です
19705 \begin_inset Foot
19706 status open
19707
19708 \begin_layout Plain Layout
19709 http://svnbook.red-bean.com/en/1.2/svn.advanced.locking.html
19710 \end_layout
19711
19712 \end_inset
19713
19714 。ある文書について、この特性が検出されたときには、\SpecialChar LyX
19715 は自動的に文書編集にSVNロックを使用するようになり、チェックイン・チェックアウト機構はRCSと同じ枠組みに切
19716 り替わります。これは特に、\SpecialChar LyX
19717 でのファイルの使われ方に以下の二つのモードがあることを意味します。
19718 \end_layout
19719
19720 \begin_layout Itemize
19721 非ロック状態。読み込まれたファイルは、読み込み専用モードになります。編集するためには、チェックアウトする必要があります。
19722 \emph on
19723 チェックアウト
19724 \emph default
19725 を行うと、レポジトリからの更新と、書き込みロックの獲得が行われます。ロックの獲得ができないと、非ロック状態から出ることができません。
19726 \end_layout
19727
19728 \begin_layout Itemize
19729 ロック状態。読み込まれたファイルは、「通常の」編集モードになります。他のユーザには、このファイルを編集する許可が与えられません。
19730 \emph on
19731 チェックイン
19732 \emph default
19733 を行うと、変更のコミットと書き込みロックの解放が行われます。文書に変更が加えられなかった場合には、コミットは実行されず
19734 \begin_inset Foot
19735 status collapsed
19736
19737 \begin_layout Plain Layout
19738 コミットは実行されないのに、コミットメッセージを入力するよう促されますが、驚かないでください。
19739 \end_layout
19740
19741 \end_inset
19742
19743 、書き込みロックの解放のみが行われます。
19744 \end_layout
19745
19746 \begin_layout Standard
19747 SVNコマンド:
19748 \end_layout
19749
19750 \begin_layout Labeling
19751 \labelwidthstring 00.00.0000
19752 チェックイン: 
19753 \begin_inset Flex Code
19754 status collapsed
19755
19756 \begin_layout Plain Layout
19757 svn commit -q -m
19758 \begin_inset Quotes erd
19759 \end_inset
19760
19761 <説明>
19762 \begin_inset Quotes erd
19763 \end_inset
19764
19765  
19766 \begin_inset Quotes eld
19767 \end_inset
19768
19769 <ファイル名>
19770 \begin_inset Quotes erd
19771 \end_inset
19772
19773
19774 \end_layout
19775
19776 \end_inset
19777
19778
19779 \begin_inset Newline newline
19780 \end_inset
19781
19782
19783 \begin_inset Flex Code
19784 status collapsed
19785
19786 \begin_layout Plain Layout
19787 svn unlock 
19788 \begin_inset Quotes eld
19789 \end_inset
19790
19791 <ファイル名>
19792 \begin_inset Quotes erd
19793 \end_inset
19794
19795
19796 \end_layout
19797
19798 \end_inset
19799
19800
19801 \end_layout
19802
19803 \begin_layout Labeling
19804 \labelwidthstring 00.00.0000
19805 チェックアウト: 
19806 \begin_inset Flex Code
19807 status collapsed
19808
19809 \begin_layout Plain Layout
19810 svn update 
19811 \begin_inset Quotes eld
19812 \end_inset
19813
19814 <ファイル名>
19815 \begin_inset Quotes erd
19816 \end_inset
19817
19818
19819 \end_layout
19820
19821 \end_inset
19822
19823
19824 \begin_inset Newline newline
19825 \end_inset
19826
19827
19828 \begin_inset Flex Code
19829 status collapsed
19830
19831 \begin_layout Plain Layout
19832 svn unlock 
19833 \begin_inset Quotes eld
19834 \end_inset
19835
19836 <ファイル名>
19837 \begin_inset Quotes erd
19838 \end_inset
19839
19840
19841 \end_layout
19842
19843 \end_inset
19844
19845
19846 \end_layout
19847
19848 \begin_layout Subsubsection
19849 自動ロック特性
19850 \begin_inset CommandInset label
19851 LatexCommand label
19852 name "subsec:自動ロック特性"
19853
19854 \end_inset
19855
19856
19857 \end_layout
19858
19859 \begin_layout Standard
19860 上述したような
19861 \begin_inset Flex Code
19862 status collapsed
19863
19864 \begin_layout Plain Layout
19865 .lyx
19866 \end_layout
19867
19868 \end_inset
19869
19870 ファイルに対する書き込み権限の自動設定は、
19871 \begin_inset Flex MenuItem
19872 status collapsed
19873
19874 \begin_layout Plain Layout
19875 ファイル\SpecialChar menuseparator
19876 バージョン管理\SpecialChar menuseparator
19877 ロック特性を使用
19878 \end_layout
19879
19880 \end_inset
19881
19882 で行うことができます。このコマンドは、SVNサーバでファイルがロックされていないときのみ使用可能状態になります(つまり、使用するにはチェックアウトが必要です)。
19883 \end_layout
19884
19885 \begin_layout Standard
19886 SVNコマンド:
19887 \end_layout
19888
19889 \begin_layout Labeling
19890 \labelwidthstring 00.00.0000
19891 チェックイン: 
19892 \begin_inset Flex Code
19893 status collapsed
19894
19895 \begin_layout Plain Layout
19896 svn propset svn:needs-lock ON 
19897 \begin_inset Quotes eld
19898 \end_inset
19899
19900 <ファイル名>
19901 \begin_inset Quotes erd
19902 \end_inset
19903
19904
19905 \end_layout
19906
19907 \end_inset
19908
19909
19910 \end_layout
19911
19912 \begin_layout Labeling
19913 \labelwidthstring 00.00.0000
19914 チェックアウト: 
19915 \begin_inset Flex Code
19916 status collapsed
19917
19918 \begin_layout Plain Layout
19919 svn propdel svn:needs-lock 
19920 \begin_inset Quotes eld
19921 \end_inset
19922
19923 <ファイル名>
19924 \begin_inset Quotes erd
19925 \end_inset
19926
19927
19928 \end_layout
19929
19930 \end_inset
19931
19932
19933 \end_layout
19934
19935 \begin_layout Subsubsection
19936 \begin_inset CommandInset label
19937 LatexCommand label
19938 name "subsec:VCS改訂情報"
19939
19940 \end_inset
19941
19942 文書の改訂情報
19943 \end_layout
19944
19945 \begin_layout Standard
19946 文書中で改訂情報を有効化するにはいくつかの方法があります。
19947 \end_layout
19948
19949 \begin_layout Itemize
19950 \SpecialChar LyX
19951 による直接サポート
19952 \begin_inset Separator parbreak
19953 \end_inset
19954
19955
19956 \end_layout
19957
19958 \begin_deeper
19959 \begin_layout Itemize
19960 ツリー改訂情報(
19961 \begin_inset Flex Code
19962 status collapsed
19963
19964 \begin_layout Plain Layout
19965 vcs-tree-revision
19966 \end_layout
19967
19968 \end_inset
19969
19970 )。
19971 \begin_inset Flex Code
19972 status collapsed
19973
19974 \begin_layout Plain Layout
19975 svnversion
19976 \end_layout
19977
19978 \end_inset
19979
19980 コマンドの出力を返します。下記の表が、結果の読み方のヒントを与えるでしょう。
19981 \end_layout
19982
19983 \begin_layout Standard
19984 \align center
19985 \begin_inset Tabular
19986 <lyxtabular version="3" rows="6" columns="2">
19987 <features tabularvalignment="middle">
19988 <column alignment="center" valignment="top">
19989 <column alignment="center" valignment="top">
19990 <row>
19991 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19992 \begin_inset Text
19993
19994 \begin_layout Plain Layout
19995 出力
19996 \end_layout
19997
19998 \end_inset
19999 </cell>
20000 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
20001 \begin_inset Text
20002
20003 \begin_layout Plain Layout
20004 意味
20005 \end_layout
20006
20007 \end_inset
20008 </cell>
20009 </row>
20010 <row>
20011 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20012 \begin_inset Text
20013
20014 \begin_layout Plain Layout
20015 4123:4168
20016 \end_layout
20017
20018 \end_inset
20019 </cell>
20020 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20021 \begin_inset Text
20022
20023 \begin_layout Plain Layout
20024 改訂版の混合した作業コピー
20025 \end_layout
20026
20027 \end_inset
20028 </cell>
20029 </row>
20030 <row>
20031 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20032 \begin_inset Text
20033
20034 \begin_layout Plain Layout
20035 4168M
20036 \end_layout
20037
20038 \end_inset
20039 </cell>
20040 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20041 \begin_inset Text
20042
20043 \begin_layout Plain Layout
20044 修正された作業コピー
20045 \end_layout
20046
20047 \end_inset
20048 </cell>
20049 </row>
20050 <row>
20051 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20052 \begin_inset Text
20053
20054 \begin_layout Plain Layout
20055 4123S
20056 \end_layout
20057
20058 \end_inset
20059 </cell>
20060 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20061 \begin_inset Text
20062
20063 \begin_layout Plain Layout
20064 スイッチされた作業コピー
20065 \end_layout
20066
20067 \end_inset
20068 </cell>
20069 </row>
20070 <row>
20071 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20072 \begin_inset Text
20073
20074 \begin_layout Plain Layout
20075 4123P
20076 \end_layout
20077
20078 \end_inset
20079 </cell>
20080 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20081 \begin_inset Text
20082
20083 \begin_layout Plain Layout
20084 チェックアウト頻度が低かったことによる不完全な作業コピー
20085 \end_layout
20086
20087 \end_inset
20088 </cell>
20089 </row>
20090 <row>
20091 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
20092 \begin_inset Text
20093
20094 \begin_layout Plain Layout
20095 4123:4168MS
20096 \end_layout
20097
20098 \end_inset
20099 </cell>
20100 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
20101 \begin_inset Text
20102
20103 \begin_layout Plain Layout
20104 改訂版が混合し、修正され、スイッチされた作業コピー
20105 \end_layout
20106
20107 \end_inset
20108 </cell>
20109 </row>
20110 </lyxtabular>
20111
20112 \end_inset
20113
20114
20115 \end_layout
20116
20117 \begin_layout Itemize
20118 ファイル改訂情報。
20119 \begin_inset Flex Code
20120 status collapsed
20121
20122 \begin_layout Plain Layout
20123 svn
20124 \begin_inset space ~
20125 \end_inset
20126
20127 info
20128 \begin_inset space ~
20129 \end_inset
20130
20131 –xml
20132 \begin_inset space ~
20133 \end_inset
20134
20135 file.lyx
20136 \end_layout
20137
20138 \end_inset
20139
20140 の出力を解析したものが返されます。サポートされるフラグは
20141 \begin_inset Separator parbreak
20142 \end_inset
20143
20144
20145 \end_layout
20146
20147 \begin_deeper
20148 \begin_layout Itemize
20149 最終コミットのバージョン番号(
20150 \begin_inset Flex Code
20151 status collapsed
20152
20153 \begin_layout Plain Layout
20154 vcs-revision
20155 \end_layout
20156
20157 \end_inset
20158
20159 )
20160 \end_layout
20161
20162 \begin_layout Itemize
20163 最終コミットの著者(
20164 \begin_inset Flex Code
20165 status collapsed
20166
20167 \begin_layout Plain Layout
20168 vcs-author
20169 \end_layout
20170
20171 \end_inset
20172
20173 )
20174 \end_layout
20175
20176 \begin_layout Itemize
20177 最終コミットの日付(
20178 \begin_inset Flex Code
20179 status collapsed
20180
20181 \begin_layout Plain Layout
20182 vcs-date
20183 \end_layout
20184
20185 \end_inset
20186
20187 )
20188 \end_layout
20189
20190 \begin_layout Itemize
20191 最終コミットの時間(
20192 \begin_inset Flex Code
20193 status collapsed
20194
20195 \begin_layout Plain Layout
20196 vcs-time
20197 \end_layout
20198
20199 \end_inset
20200
20201 )
20202 \end_layout
20203
20204 \end_deeper
20205 \begin_layout Standard
20206 これらの情報は、情報差込枠で得ることができます(例:
20207 \begin_inset Flex Code
20208 status collapsed
20209
20210 \begin_layout Plain Layout
20211 info-insert buffer vcs-date
20212 \end_layout
20213
20214 \end_inset
20215
20216 )。これらの情報は、ファイルをsvn管理下に置いたときのみ(すなわち使用中文書の
20217 \begin_inset Flex Code
20218 status collapsed
20219
20220 \begin_layout Plain Layout
20221 .svn
20222 \end_layout
20223
20224 \end_inset
20225
20226 ディレクトリがあるときのみ)利用可能です。
20227 \end_layout
20228
20229 \end_deeper
20230 \begin_layout Itemize
20231 もう一つの—ハッカー的な—方法は、SVNキーワードを使用する方法です
20232 \begin_inset Foot
20233 status collapsed
20234
20235 \begin_layout Plain Layout
20236 http://svnbook.red-bean.com/en/1.4/svn.advanced.props.special.keywords.html
20237 \end_layout
20238
20239 \end_inset
20240
20241 。簡単に言えば、ファイルキーワード特性を設定して(例:
20242 \family sans
20243 svn propset svn:keywords 'Rev' file.lyx
20244 \family default
20245 )、文書中にキーワード\SpecialChar TeX
20246 コード
20247 \begin_inset Foot
20248 status collapsed
20249
20250 \begin_layout Plain Layout
20251 これは、\SpecialChar LyX
20252 がキーワードタグの途中で改行してしまわないことを確実にするための、簡単な方法です。
20253 \end_layout
20254
20255 \end_inset
20256
20257 タグ(例:
20258 \begin_inset ERT
20259 status open
20260
20261 \begin_layout Plain Layout
20262
20263 $Rev$
20264 \end_layout
20265
20266 \end_inset
20267
20268 )を貼り付けるのです。このようにして、SVNクライアントは、各更新やコミットの後に自動的に改訂番号を代入することができるのです(例
20269 \begin_inset ERT
20270 status open
20271
20272 \begin_layout Plain Layout
20273
20274 $Rev: 59 $
20275 \end_layout
20276
20277 \end_inset
20278
20279 )。このアプローチにはいくつか問題があります。第一に、\SpecialChar TeX
20280 の世界では「$」文字は数式を表すのに使われるので、\SpecialChar LyX
20281 中の
20282 \begin_inset Formula $Rev$
20283 \end_inset
20284
20285 という数式表現が、すべて
20286 \begin_inset Formula $Rev:59$
20287 \end_inset
20288
20289 になってしまいます。その他のId・Date・Authorなどといったキーワードも同様です。第二に、SVN出力は使用中のロケールに依存するので、Dateが用いられ
20290 ると、SVNは、問題を引き起こすような文字列を容易に生成してしまいます。第三に、文書中には、番号だけでなく「Rev:59」という文字列全体が表示されてしまいます
20291 。Subversionがユーザ定義のキーワードを実装するまでは、このアプローチを信頼性を持って使用したり、\SpecialChar LyX
20292 がこれを直接サポートすることは、難しそうです。
20293 \end_layout
20294
20295 \begin_layout Subsection
20296 SVNとWindows環境
20297 \end_layout
20298
20299 \begin_layout Quote
20300 ユーザが、かなり早いうちに自分自身でコマンドライン操作を理解できないのであれば、TortoiseSVNを使った方が賢明でしょう。—P.
20301  A.
20302  ルービン
20303 \end_layout
20304
20305 \begin_layout Subsubsection
20306 準備
20307 \end_layout
20308
20309 \begin_layout Standard
20310 \SpecialChar LyX
20311 を導入して、Subversionレポジトリへのアクセス権を持っている他に、ユーザはSubversionクライアントプログラムを導入する必要があります。クライアン
20312 トプログラムのWindows用インストーラは
20313 \begin_inset CommandInset href
20314 LatexCommand href
20315 name "CollabNet"
20316 target "http://www.collab.net/nonav/downloads/subversion/"
20317
20318 \end_inset
20319
20320 にあります。ユーザは
20321 \begin_inset CommandInset href
20322 LatexCommand href
20323 name "TortoiseSVN"
20324 target "http://tortoisesvn.tigris.org/"
20325
20326 \end_inset
20327
20328 も導入することを考えるでしょう。これはSubversionの操作をWindows Explorerのコンテクスト(右クリック)メニューに統合します。\SpecialChar LyX
20329 外部で行う操
20330 作は、一般的にExplorerコンテクストメニューを使った方が便利です。TortoiseSVNは、\SpecialChar LyX
20331 自身が使用するクライアントプログラムの代わりとは成りませんので
20332 、注意してください。
20333 \end_layout
20334
20335 \begin_layout Subsubsection
20336 文書をSubversion管理下に置くには
20337 \end_layout
20338
20339 \begin_layout Standard
20340 \SpecialChar LyX
20341 文書をSubversionのバージョン管理下に置く前に、その親ディレクトリをバージョン管理下に置かなくてはなりません。文書を、既にレポジトリに存在するプロジェク
20342 トに追加する際には、新規文書が置かれることになるディレクトリへ、プロジェクトをチェックアウトすることによって実現します。プロジェクト自体がバージョン管理下にない
20343 場合(たとえばこの文書が新規プロジェクトの最初のファイルである場合)には、このディレクトリをレポジトリにインポートしなくてはなりません。これは、\SpecialChar LyX
20344 の外部で行います
20345 。インポートもチェックアウトも共に、TortoiseSVNを使えば、Explorerのコンテクストメニューから簡単に終えることができます。あるいは、DOSプロン
20346 プトでコマンドライン・クライアントを使って成し遂げることもできます。TortoiseSVNを使ったプロジェクトのインポート手続きを下記で説明します。レポジトリは
20347 既に存在し、新規プロジェクトを
20348 \begin_inset Flex Code
20349 status collapsed
20350
20351 \begin_layout Plain Layout
20352 C:
20353 \backslash
20354 new project
20355 \end_layout
20356
20357 \end_inset
20358
20359 で開始するものとします。Subversionクライアントプログラムを使うための情報を得るには、DOSシェルで
20360 \begin_inset Flex Code
20361 status collapsed
20362
20363 \begin_layout Plain Layout
20364 svn –help
20365 \end_layout
20366
20367 \end_inset
20368
20369 を実行してください。
20370 \end_layout
20371
20372 \begin_layout Enumerate
20373 Windows Explorerで
20374 \begin_inset Flex Code
20375 status collapsed
20376
20377 \begin_layout Plain Layout
20378 C:
20379 \backslash
20380 new project
20381 \end_layout
20382
20383 \end_inset
20384
20385 を見つけ出して右クリックし、
20386 \begin_inset Flex MenuItem
20387 status collapsed
20388
20389 \begin_layout Plain Layout
20390 TortoiseSVN\SpecialChar menuseparator
20391 Repo-browser
20392 \end_layout
20393
20394 \end_inset
20395
20396 を選択してください。必要であれば、レポジトリのURLを調整し、OKをクリックしてください。
20397 \end_layout
20398
20399 \begin_layout Enumerate
20400 新規プロジェクトフォルダを置くレポジトリレベル(多くの場合最上位レベル)を右クリックし、
20401 \begin_inset Flex MenuItem
20402 status collapsed
20403
20404 \begin_layout Plain Layout
20405 Create folder\SpecialChar ldots
20406
20407 \end_layout
20408
20409 \end_inset
20410
20411 をクリックしてください。プロジェクトフォルダの名称を入力してOKをクリックしてください。必要であればログファイル用のメッセージを入力し、再びOKをクリックしてく
20412 ださい。新規プロジェクトフォルダがレポジトリに現れるはずです。最後にOKを再度クリックして、レポジトリブラウザを終了してください。
20413 \end_layout
20414
20415 \begin_layout Enumerate
20416 再度
20417 \begin_inset Flex Code
20418 status collapsed
20419
20420 \begin_layout Plain Layout
20421 C:
20422 \backslash
20423 new project
20424 \end_layout
20425
20426 \end_inset
20427
20428 を右クリックし、今度は
20429 \begin_inset Flex MenuItem
20430 status collapsed
20431
20432 \begin_layout Plain Layout
20433 SVN Checkout\SpecialChar ldots
20434
20435 \end_layout
20436
20437 \end_inset
20438
20439 を選択してください。レポジトリにたった今作成した、プロジェクトフォルダのURLを選択し、チェックアウトディレクトリを
20440 \begin_inset Flex Code
20441 status collapsed
20442
20443 \begin_layout Plain Layout
20444 C:
20445 \backslash
20446 new project
20447 \end_layout
20448
20449 \end_inset
20450
20451 に設定してから、OKをクリックしてください。フォルダが空でないことを警告されますが、OKをクリックして進んでください。すると、
20452 \begin_inset Flex Code
20453 status collapsed
20454
20455 \begin_layout Plain Layout
20456 C:
20457 \backslash
20458 new project
20459 \end_layout
20460
20461 \end_inset
20462
20463 の下に
20464 \begin_inset Flex Code
20465 status collapsed
20466
20467 \begin_layout Plain Layout
20468 .svn
20469 \end_layout
20470
20471 \end_inset
20472
20473 ディレクトリが作成されます。
20474 \end_layout
20475
20476 \begin_layout Enumerate
20477 \SpecialChar LyX
20478 で文書を新規作成するか開くかして、
20479 \begin_inset Flex MenuItem
20480 status collapsed
20481
20482 \begin_layout Plain Layout
20483 ファイル\SpecialChar menuseparator
20484 バージョン管理\SpecialChar menuseparator
20485 登録
20486 \end_layout
20487
20488 \end_inset
20489
20490 をクリックします。ログメッセージを入力してOKをクリックし、文書をバージョン管理にコミットしてください。
20491 \end_layout
20492
20493 \begin_layout Standard
20494 爾後、
20495 \begin_inset Flex MenuItem
20496 status collapsed
20497
20498 \begin_layout Plain Layout
20499 ファイル\SpecialChar menuseparator
20500 バージョン管理
20501 \end_layout
20502
20503 \end_inset
20504
20505 メニューのすべての機能が使用できるようになります。Windows ExplorerのTortoiseSVNコンテクストメニューか、コマンドプロンプトでのSubv
20506 ersionクライアントプログラムを使用して、文書をチェックイン・チェックアウトしたり、履歴を見たりといったことができるようになります。
20507 \end_layout
20508
20509 \begin_layout Subsubsection
20510 Windows下でSVNと共にSSHトンネルを使うには
20511 \end_layout
20512
20513 \begin_layout Standard
20514 Linuxに較べて、WindowsでSVNクライアントをSSH経由で通信するようにさせるのは、かなり厄介な仕事です。どのようにクライアント側を設定すればよいか、
20515 少なくとも幾分かのヒントをお示しするつもりですが、sshとWindowsコマンドラインの知識が前もって必要であり、それと共にかなりの量のフラストレーションが溜ま
20516 ることを覚悟しておいてください。
20517 \end_layout
20518
20519 \begin_layout Enumerate
20520 前節で述べたように、Windows用のSVNクライアントを入手してください。これが新規の導入である場合には、何らかのSVNコマンド(たとえば
20521 \begin_inset Flex Code
20522 status collapsed
20523
20524 \begin_layout Plain Layout
20525 svn –version
20526 \end_layout
20527
20528 \end_inset
20529
20530 )を実行して、configファイル群を生成させてください。これらは後で変更を加える必要があります。
20531 \end_layout
20532
20533 \begin_layout Enumerate
20534 Windows用のsshクライアントを選んでください。選択肢はたくさんありますが、ここではPutty tools
20535 \begin_inset Foot
20536 status open
20537
20538 \begin_layout Plain Layout
20539 \begin_inset Flex URL
20540 status collapsed
20541
20542 \begin_layout Plain Layout
20543
20544 http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html
20545 \end_layout
20546
20547 \end_inset
20548
20549
20550 \end_layout
20551
20552 \end_inset
20553
20554 のものを使用することとしましょう。クライアントが接続の度にパスワードを訊いてこないように、接続を自動化する必要があります。簡単にするために、追加的なパスワード保
20555 護などを加えない
20556 \begin_inset Flex Ruby
20557 status collapsed
20558
20559 \begin_layout Plain Layout
20560
20561 \begin_inset Argument post:1
20562 status collapsed
20563
20564 \begin_layout Plain Layout
20565 キー
20566 \end_layout
20567
20568 \end_inset
20569
20570
20571 \end_layout
20572
20573 \end_inset
20574
20575 のみを使用することとします。
20576 \begin_inset Separator parbreak
20577 \end_inset
20578
20579
20580 \end_layout
20581
20582 \begin_deeper
20583 \begin_layout Enumerate
20584 \begin_inset Flex Code
20585 status collapsed
20586
20587 \begin_layout Plain Layout
20588 puttygen
20589 \end_layout
20590
20591 \end_inset
20592
20593 を使って鍵を生成します。.ppkプライベート鍵ファイルを保存し、パブリック鍵ファイルはサーバ側に置きます。SVNサーバがLinuxで走っている場合、このパブリック
20594 鍵の書式はLinuxのopensshと互換性がないために、「Public key for pasting into OpenSSH authorized_key
20595 s file:」編集フィールドから、直接サーバの
20596 \begin_inset Flex Code
20597 status collapsed
20598
20599 \begin_layout Plain Layout
20600 ~/.ssh/authorized_keys
20601 \end_layout
20602
20603 \end_inset
20604
20605 または
20606 \begin_inset Flex Code
20607 status collapsed
20608
20609 \begin_layout Plain Layout
20610 authorized_keys2
20611 \end_layout
20612
20613 \end_inset
20614
20615 ファイルにコピー&ペーストを行わなくてはならないことに注意してください。
20616 \end_layout
20617
20618 \begin_layout Enumerate
20619 Puttyのplinkを入手してください。SVNのconfigファイル
20620 \begin_inset Foot
20621 status collapsed
20622
20623 \begin_layout Plain Layout
20624 正確なパスはWindowsのバージョンに依りますが、通常は
20625 \begin_inset Flex Code
20626 status collapsed
20627
20628 \begin_layout Plain Layout
20629 c:
20630 \backslash
20631 Documents and Settings
20632 \backslash
20633 user
20634 \backslash
20635 Application Data
20636 \backslash
20637 Subversion
20638 \backslash
20639 config
20640 \end_layout
20641
20642 \end_inset
20643
20644
20645 \begin_inset Flex Code
20646 status collapsed
20647
20648 \begin_layout Plain Layout
20649 AppData
20650 \backslash
20651 Roaming
20652 \backslash
20653 Subversion
20654 \end_layout
20655
20656 \end_inset
20657
20658 辺りにあります。
20659 \end_layout
20660
20661 \end_inset
20662
20663 中の
20664 \begin_inset Flex Code
20665 status collapsed
20666
20667 \begin_layout Plain Layout
20668 [tunnels]
20669 \end_layout
20670
20671 \end_inset
20672
20673 セクションにsshコマンドを設定してください。例:
20674 \begin_inset Flex Code
20675 status collapsed
20676
20677 \begin_layout Plain Layout
20678 ssh=c:/path/plink.exe -i c:/path/private_key.ppk
20679 \end_layout
20680
20681 \end_inset
20682
20683
20684 \begin_inset Foot
20685 status collapsed
20686
20687 \begin_layout Plain Layout
20688 通常、正確なコマンドを機能させるには長い時間がかかり、それは多くの物事に依存します。たとえば、リモートサーバがPuttyなどの既定セッションとして保存されないよ
20689 うにしてください。うまく行かない場合には、まずSVNなしでplink経由の接続を試してください。
20690 \end_layout
20691
20692 \end_inset
20693
20694
20695 \end_layout
20696
20697 \end_deeper
20698 \begin_layout Enumerate
20699 SVNアーカイブをチェックアウトしてください。例:
20700 \begin_inset Newline newline
20701 \end_inset
20702
20703
20704 \begin_inset Flex Code
20705 status collapsed
20706
20707 \begin_layout Plain Layout
20708 svn co svn+ssh://user@server/repository_path
20709 \end_layout
20710
20711 \end_inset
20712
20713
20714 \end_layout
20715
20716 \begin_layout Subsubsection
20717 行末変換
20718 \end_layout
20719
20720 \begin_layout Standard
20721 共著者同士がLinuxとWindowsを混在させているとき、\SpecialChar LyX
20722 は.lyxファイル中で異なった行末記号を使用することになります。これは、\SpecialChar LyX
20723 の機能に関する限り問題になりま
20724 せんが、コミット差分は巨大になり、マージではコンフリクトを引き起こしがちです。幸いにして、SVNは、.lyxファイルを
20725 \begin_inset Flex Code
20726 status collapsed
20727
20728 \begin_layout Plain Layout
20729 native
20730 \end_layout
20731
20732 \end_inset
20733
20734 モードに切り替える際
20735 \begin_inset Foot
20736 status collapsed
20737
20738 \begin_layout Plain Layout
20739 手短には
20740 \begin_inset Flex Code
20741 status collapsed
20742
20743 \begin_layout Plain Layout
20744 svn propset svn:eol-style native FILE_NAME
20745 \end_layout
20746
20747 \end_inset
20748
20749
20750 \end_layout
20751
20752 \end_inset
20753
20754 、CR/LF問題をどのように取り扱えばいいかを知っているので大丈夫です
20755 \begin_inset Foot
20756 status collapsed
20757
20758 \begin_layout Plain Layout
20759 \begin_inset Flex URL
20760 status collapsed
20761
20762 \begin_layout Plain Layout
20763
20764 http://svnbook.red-bean.com/en/1.4/svn.advanced.props.file-portability.html
20765 \end_layout
20766
20767 \end_inset
20768
20769
20770 \end_layout
20771
20772 \end_inset
20773
20774
20775 \end_layout
20776
20777 \begin_layout Subsection
20778 \SpecialChar LyX
20779 におけるGITコマンド
20780 \end_layout
20781
20782 \begin_layout Standard
20783 \SpecialChar LyX
20784 で、最小限のGITコマンドがサポートされるようになりました。これらのコマンドは、
20785 \family sans
20786 ファイル\SpecialChar menuseparator
20787 バージョン管理
20788 \family default
20789 にあります。リポジトリのアクセスに、パスワード保護されたsshを使用している場合には、ターミナルウィンドウでの操作をするように促されます。\SpecialChar LyX
20790 は、GIT
20791  1.7に対して試験を行っています。
20792 \end_layout
20793
20794 \begin_layout Standard
20795 GITと他のバージョン管理システムとの大きな相違点は、GITの配布形態にあります。伝統的なバージョン管理システムでは、リポジトリをホストする、中心となるサーバー
20796 があります。ユーザーは変更点をサーバーにコミットし、他のユーザーが行った更新分をサーバーから受け取ります。一方、GITでは、ユーザーは、ローカルのリポジトリにコ
20797 ミットを行います。ローカルリポジトリは、GITコマンドの
20798 \begin_inset Flex Code
20799 status open
20800
20801 \begin_layout Plain Layout
20802 pull
20803 \end_layout
20804
20805 \end_inset
20806
20807 または
20808 \begin_inset Flex Code
20809 status open
20810
20811 \begin_layout Plain Layout
20812 push
20813 \end_layout
20814
20815 \end_inset
20816
20817 を使って、1つ以上のリモートリポジトリと同期されます。\SpecialChar LyX
20818 は、リモートのGITリポジトリとは、一切関わりません。CVSやSVNの集権的リポジトリに対して行うのと同じ
20819 ことを、ローカルのリポジトリに対してのみ行います。リモートのGITリポジトリを使用している場合には、お好みのGITクライアントを使用して、
20820 \begin_inset Flex Code
20821 status open
20822
20823 \begin_layout Plain Layout
20824 pull
20825 \end_layout
20826
20827 \end_inset
20828
20829 または
20830 \begin_inset Flex Code
20831 status open
20832
20833 \begin_layout Plain Layout
20834 push
20835 \end_layout
20836
20837 \end_inset
20838
20839 の操作を行う必要があります。
20840 \end_layout
20841
20842 \begin_layout Subsubsection
20843 登録
20844 \end_layout
20845
20846 \begin_layout Standard
20847 お使いの文書が改訂管理下に置かれていなければ、メニューにはこの項目だけが表示されます。もし改訂管理が有効ならば、
20848 \family sans
20849 登録
20850 \family default
20851 項目は表示されません。
20852 \end_layout
20853
20854 \begin_layout Standard
20855 本コマンドは、既に文書のあるディレクトリをGIT管理下に置いている場合に
20856 \emph on
20857 のみ
20858 \emph default
20859 (すなわち
20860 \begin_inset Flex Code
20861 status collapsed
20862
20863 \begin_layout Plain Layout
20864 .git/index
20865 \end_layout
20866
20867 \end_inset
20868
20869 ファイルが存在する場合にのみ)、お使いの文書をGITに登録します。つまり、アーカイブはご自分でチェックアウトしなくてはなりません。
20870 \end_layout
20871
20872 \begin_layout Standard
20873 すると、文書の最初の説明文を入力するように促されます。登録したファイルは、まだコミットされたわけではないことに注意してください。
20874 \end_layout
20875
20876 \begin_layout Standard
20877 実行されるGITコマンドは、
20878 \begin_inset Flex Code
20879 status collapsed
20880
20881 \begin_layout Plain Layout
20882 git add "<ファイル名>"
20883 \end_layout
20884
20885 \end_inset
20886
20887 です。
20888 \end_layout
20889
20890 \begin_layout Standard
20891 スイッチの説明は
20892 \begin_inset Flex Code
20893 status collapsed
20894
20895 \begin_layout Plain Layout
20896 man git
20897 \end_layout
20898
20899 \end_inset
20900
20901 をお読みください。
20902 \end_layout
20903
20904 \begin_layout Subsubsection
20905 変更をチェックイン
20906 \end_layout
20907
20908 \begin_layout Standard
20909 ファイルの編集を終えたら、変更をコミットします。このとき、変更の説明文を入れるよう促されます。その後、変更がコミットされます。
20910 \end_layout
20911
20912 \begin_layout Standard
20913 GITコマンド:
20914 \begin_inset Flex Code
20915 status collapsed
20916
20917 \begin_layout Plain Layout
20918 git commit -q -m
20919 \begin_inset Quotes erd
20920 \end_inset
20921
20922 <入力した説明文>
20923 \begin_inset Quotes erd
20924 \end_inset
20925
20926  "<ファイル名>"
20927 \end_layout
20928
20929 \end_inset
20930
20931
20932 \end_layout
20933
20934 \begin_layout Subsubsection
20935 リポジトリ版に戻す
20936 \end_layout
20937
20938 \begin_layout Standard
20939 これは、最後のチェックイン以降、文書に加えられた変更をすべて廃棄します。変更が廃棄される前に警告が表示されます。
20940 \end_layout
20941
20942 \begin_layout Standard
20943 GITコマンド:
20944 \begin_inset Flex Code
20945 status collapsed
20946
20947 \begin_layout Plain Layout
20948 git checkout -q 
20949 \begin_inset Quotes eld
20950 \end_inset
20951
20952 <ファイル名>
20953 \begin_inset Quotes erd
20954 \end_inset
20955
20956
20957 \end_layout
20958
20959 \end_inset
20960
20961
20962 \end_layout
20963
20964 \begin_layout Subsubsection
20965 ファイル名変更
20966 \end_layout
20967
20968 \begin_layout Standard
20969 これは、現行文書のファイル名を変更します。最後のチェックイン以降、変更が加えられていないサラの文書であることが要求されます。ファイル名とコピー操作の説明を入力す
20970 るように促され、その後、ローカルとリポジトリの両方でファイル名が変更されます。新旧ファイル名の文書の親ディレクトリが異なる場合には、コピーにインクルードされたフ
20971 ァイルの相対パスは、(
20972 \family sans
20973 ファイル\SpecialChar menuseparator
20974 名前をつけて保存\SpecialChar ldots
20975
20976 \family default
20977 と同様に)全て調整されます。最後に、新ファイル名を使ってファイルが再度読み込まれます。
20978 \end_layout
20979
20980 \begin_layout Labeling
20981 \labelwidthstring 00.00.0000
20982 GITコマンド:
20983 \end_layout
20984
20985 \begin_layout Labeling
20986 \labelwidthstring 00.00.0000
20987 \begin_inset Flex Code
20988 status collapsed
20989
20990 \begin_layout Plain Layout
20991 git mv "<ファイル名>" "<新ファイル名>"
20992 \end_layout
20993
20994 \end_inset
20995
20996
20997 \end_layout
20998
20999 \begin_layout Labeling
21000 \labelwidthstring 00.00.0000
21001 \begin_inset Flex Code
21002 status collapsed
21003
21004 \begin_layout Plain Layout
21005 git commit
21006 \end_layout
21007
21008 \end_inset
21009
21010
21011 \end_layout
21012
21013 \begin_layout Subsubsection
21014 履歴を表示
21015 \end_layout
21016
21017 \begin_layout Standard
21018 これは、GIT文書の全履歴を表示します。
21019 \begin_inset Flex Code
21020 status collapsed
21021
21022 \begin_layout Plain Layout
21023 git log 
21024 \begin_inset Quotes eld
21025 \end_inset
21026
21027 <ファイル名>
21028 \begin_inset Quotes erd
21029 \end_inset
21030
21031
21032 \end_layout
21033
21034 \end_inset
21035
21036 の出力がブラウザに表示されます。
21037 \end_layout
21038
21039 \begin_layout Subsubsection
21040 改訂情報
21041 \end_layout
21042
21043 \begin_layout Standard
21044 \SpecialChar LyX
21045 は、ファイルの最終コミットのGITハッシュ番号・著者名・最終コミットの日時をサポートします。これらの情報は、すべて
21046 \family typewriter
21047 git log -n 1 --pretty=format:%H%n%an%n%ai
21048 \family default
21049 によって抽出されます。ツリーバージョン情報は、
21050 \family typewriter
21051 git describe --abbrev --dirty --long
21052 \family default
21053 で取得されます。詳細については、第
21054 \begin_inset CommandInset ref
21055 LatexCommand ref
21056 reference "subsec:VCS改訂情報"
21057
21058 \end_inset
21059
21060 節を参照してください。
21061 \end_layout
21062
21063 \begin_layout Subsection
21064 さらなる調整
21065 \end_layout
21066
21067 \begin_layout Standard
21068 vcコマンド機構が最近になって付け加えられたおかげで、\SpecialChar LyX
21069 のパワーユーザは、改訂管理のための自製コマンドを作ることができるようになりました。
21070 \end_layout
21071
21072 \begin_layout Standard
21073 たとえば、以下のようにして、二つのTortoiseSVNコマンドを直接統合することができます。
21074 \end_layout
21075
21076 \begin_layout Description
21077 コミット: 
21078 \begin_inset Flex Code
21079 status collapsed
21080
21081 \begin_layout Plain Layout
21082 vc-command DR "." "TortoiseProc /command:commit /path:$$p"
21083 \end_layout
21084
21085 \end_inset
21086
21087
21088 \end_layout
21089
21090 \begin_layout Description
21091 元に戻す: 
21092 \begin_inset Flex Code
21093 status collapsed
21094
21095 \begin_layout Plain Layout
21096 vc-command DR "." "TortoiseProc /command:revert /path:$$p"
21097 \end_layout
21098
21099 \end_inset
21100
21101
21102 \end_layout
21103
21104 \begin_layout Subsection
21105 バージョン管理と文書比較
21106 \end_layout
21107
21108 \begin_layout Standard
21109 バージョン管理は、通常
21110 \begin_inset Flex Code
21111 status collapsed
21112
21113 \begin_layout Plain Layout
21114 diff
21115 \end_layout
21116
21117 \end_inset
21118
21119 ダンプを生成することによって、改訂版の間の変更点を検査するのが、典型的な使用法です。これは平文ファイルには有効なのですが、複雑な構造を持つ\SpecialChar LyX
21120 ファイルの場合には、あ
21121 まり便利ではありません。そこで、\SpecialChar LyX
21122 は独自の文書比較機能を提供しています。この機能を呼び出すには2つの方法があります。1つは、\SpecialChar LyX
21123
21124 \begin_inset Flex Code
21125 status collapsed
21126
21127 \begin_layout Plain Layout
21128 VC_COMPARE
21129 \end_layout
21130
21131 \end_inset
21132
21133 関数を直接呼び出す方法であり(詳細は\SpecialChar LyX
21134 関数説明書を参照)、もう1つは
21135 \begin_inset Flex MenuItem
21136 status collapsed
21137
21138 \begin_layout Plain Layout
21139 旧改訂と比較\SpecialChar ldots
21140
21141 \end_layout
21142
21143 \end_inset
21144
21145 メニューないしアイコンを使用する方法です。当該文書のうち、任意の2つの改訂版を比較することもできますし、編集中の現行版を古い改訂版と比較することもできます(この
21146 とき改訂版遡及数「
21147 \begin_inset Flex MenuItem
21148 status collapsed
21149
21150 \begin_layout Plain Layout
21151 0
21152 \end_layout
21153
21154 \end_inset
21155
21156 」は、編集中のファイルと最後にコミットした改訂版との比較を意味します)。
21157 \end_layout
21158
21159 \begin_layout Standard
21160 この機能は、SVNとRCSでサポートされていますが、RCSは、より複雑なバージョン付けスキームを持っているため、制約があります。ダイアログ中で改訂版を指定する際
21161 の数字は、つねにRCS改訂番号の最後の数を指し示します(例:「1.2.35」版のときには「35」)。現在のところ、改訂のGIT表記はサポートされておらず、HEAD~
21162 Xの形で表記されるXステップ前の改訂版を、編集中文書と比較することのみが可能です。
21163 \end_layout
21164
21165 \begin_layout Section
21166 文芸プログラミング
21167 \end_layout
21168
21169 \begin_layout Standard
21170
21171 \noun on
21172 Kayvan Sylvan
21173 \noun default
21174 (kayvan@sylvan.com)改訂 
21175 \noun on
21176 Edmar Wienskoski Jr.
21177 \noun default
21178 (edmar-w-jr@technologist.com)原文
21179 \end_layout
21180
21181 \begin_layout Subsection
21182 はじめに
21183 \end_layout
21184
21185 \begin_layout Standard
21186 この節の主な目的は、文芸的プログラミング(literate programming)のために、\SpecialChar LyX
21187 をどう使えばよいかをお見せすることです。ここでは、あなたがこのプロ
21188 グラミング技術をよくご存じで、「tangling」や「weaving」の意味するところを知っているものとして説明します。そうでない場合には、以下の各節にあるウェ
21189 ブリンクをたどってください。そこには、かつての開発の歴史から最新のツールチップまで、たくさんの良質なドキュメンテーションがあります。
21190 \end_layout
21191
21192 \begin_layout Standard
21193 また、あなたが、\SpecialChar LyX
21194 の設定を変更することを厭わない程度まで\SpecialChar LyX
21195 に習熟しており、Xリソースファイルにも親しんでいることを前提にしています。そうでない場合は、あなたの必要と
21196 するトピックを扱っている、\SpecialChar LyX
21197 の他の説明書で調べてください。
21198 \end_layout
21199
21200 \begin_layout Subsection
21201 文芸プログラミング
21202 \end_layout
21203
21204 \begin_layout Standard
21205 以下は、文芸プログラミング FAQからの抜粋です。
21206 \end_layout
21207
21208 \begin_layout Quotation
21209 文芸プログラミングは、人間が読むのに適した形でのドキュメンテーションとソースの組合わせです。実際、文芸的プログラムは楽しい読み物であるべきであり、さらには参加し
21210 たいとさえ思わせるべきなのです!(ボブ、ごめん。言わずにはいれなかった。)一般的に、文芸プログラムは、ソースとドキュメンテーションを同一ファイル上に結合したもの
21211 です。そして、文芸プログラミングツールは、ファイルを解析して、読むことのできるドキュメンテーションか、あるいはコンパイル可能なソースを生成します。文芸プログラミ
21212 ングのWEBスタイルは、D.
21213 \begin_inset space \thinspace{}
21214 \end_inset
21215
21216 E.
21217  Knuthが、\SpecialChar TeX
21218 組版ソフトウエアを開発中に作り出したものです。
21219 \end_layout
21220
21221 \begin_layout Standard
21222 他のエキスパートの発言です。
21223 \end_layout
21224
21225 \begin_layout Quotation
21226
21227 \emph on
21228 文芸プログラミングは、冗長なコメント付けと何が違いますか?
21229 \end_layout
21230
21231 \begin_layout Quotation
21232 3つの際立った特徴があります。重要な順に列挙すれば、
21233 \begin_inset Separator parbreak
21234 \end_inset
21235
21236
21237 \end_layout
21238
21239 \begin_deeper
21240 \begin_layout Itemize
21241 推敲の順序が柔軟
21242 \end_layout
21243
21244 \begin_layout Itemize
21245 ブラウジングの自動サポート
21246 \end_layout
21247
21248 \begin_layout Itemize
21249 特に図式と数式を含んだドキュメンテーションの組版
21250 \end_layout
21251
21252 \end_deeper
21253 \begin_layout Quotation
21254 などがあります。
21255 \end_layout
21256
21257 \begin_layout Standard
21258 あなたの興味に火を付けたところで書誌情報を見てみましょう。
21259 \end_layout
21260
21261 \begin_layout Subsubsection
21262 書誌情報
21263 \end_layout
21264
21265 \begin_layout Standard
21266 完全な文芸プログラミング FAQは
21267 \end_layout
21268
21269 \begin_layout Quote
21270 Literate Programming FAQ 
21271 \begin_inset Flex URL
21272 status collapsed
21273
21274 \begin_layout Plain Layout
21275
21276 http://www.xmarks.com/site/shelob.ce.ttu.edu/daves/lpfaq/faq.html
21277 \end_layout
21278
21279 \end_inset
21280
21281
21282 \end_layout
21283
21284 \begin_layout Standard
21285 にあります。
21286 \end_layout
21287
21288 \begin_layout Standard
21289 このFAQには、23(二十三です!)の文芸プログラミング用ツールが列挙されています。一部のツールは、特定のプログラミング言語用に特化したものですが、一般的な対象
21290 を持つものもあります。私は自分で使うのに、いくつかの理由から
21291 \noun on
21292 Noweb
21293 \noun default
21294 を選びました。
21295 \end_layout
21296
21297 \begin_layout Itemize
21298 説明文書を\SpecialChar LaTeX
21299 でもHTMLでも出力できる。
21300 \end_layout
21301
21302 \begin_layout Itemize
21303 開放的なアーキテクチャに持っているので、新しいフィルタをプラグインとして加えたり、自分が必要な特別な処理を実行することが容易である。
21304 \end_layout
21305
21306 \begin_layout Itemize
21307 すでに利用可能となっているフィルタの良質なコレクションがある(HTMLはその一つです)。
21308 \end_layout
21309
21310 \begin_layout Itemize
21311 無料である。
21312 \end_layout
21313
21314 \begin_layout Standard
21315 Nowebのウェブページは
21316 \end_layout
21317
21318 \begin_layout Quote
21319 Nowebホームページ 
21320 \begin_inset Flex URL
21321 status collapsed
21322
21323 \begin_layout Plain Layout
21324
21325 http://www.cs.virginia.edu/~nr/noweb/
21326 \end_layout
21327
21328 \end_inset
21329
21330
21331 \end_layout
21332
21333 \begin_layout Standard
21334 にあります。ここから始めれば、たくさんの興味深いリンクや、文芸プログラミングの用例にたどり着くことができます。
21335 \end_layout
21336
21337 \begin_layout Subsection
21338 \SpecialChar LyX
21339 とNowebを使った文芸プログラミング
21340 \end_layout
21341
21342 \begin_layout Standard
21343 \SpecialChar LyX
21344 における文芸プログラミングのサポートは、\SpecialChar LyX
21345 の汎用変換機構を使用して実現しています。このサポートは「Noweb非依存」的な方法で提供されているので、LyXの設定を変
21346 更するだけで、自分の好きな他の文芸プログラミングツールを使って、この新しい\SpecialChar LyX
21347 の機能を利用することができます。
21348 \end_layout
21349
21350 \begin_layout Subsubsection
21351 ドキュメントとコードの生成(weavingおよびtangling)
21352 \end_layout
21353
21354 \begin_layout Paragraph
21355 nowebモジュールの使用
21356 \end_layout
21357
21358 \begin_layout Standard
21359 Nowebと\SpecialChar LyX
21360 の導入に成功したならば、新規文書を開いたときにはいつも、文書クラスを選択した後、
21361 \family sans
21362 文書\SpecialChar menuseparator
21363 設定
21364 \family default
21365 メニューで「noweb」モジュールを追加するようにしてください。Nowebが正しく導入されていれば、「モジュール」リンクをクリックした際、利用可能リストに「no
21366 web」モジュールが表示され、文書に追加できるようになっています。
21367 \end_layout
21368
21369 \begin_layout Paragraph
21370 コードの入力
21371 \end_layout
21372
21373 \begin_layout Standard
21374 \SpecialChar LyX
21375 では、
21376 \begin_inset Flex Noun
21377 status collapsed
21378
21379 \begin_layout Plain Layout
21380 Chunk
21381 \end_layout
21382
21383 \end_inset
21384
21385 という名前のレイアウトを使えば、コードを入力することができます。Nowebは次のようにchunks を区切ります。
21386 \end_layout
21387
21388 \begin_layout LyX-Code
21389 <<My code>>=
21390 \end_layout
21391
21392 \begin_layout LyX-Code
21393   code
21394 \end_layout
21395
21396 \begin_layout LyX-Code
21397   more code
21398 \end_layout
21399
21400 \begin_layout LyX-Code
21401   even more code
21402 \end_layout
21403
21404 \begin_layout LyX-Code
21405   @
21406 \end_layout
21407
21408 \begin_layout Standard
21409 問題は<<と@の間にあるものを完全にそのままの形で扱わなければならないことです。つまり、\SpecialChar LyX
21410 は、この間に書かれたものを特別に解釈することは決してあってはなりません。
21411 これも
21412 \begin_inset Flex Noun
21413 status collapsed
21414
21415 \begin_layout Plain Layout
21416 Chunk
21417 \end_layout
21418
21419 \end_inset
21420
21421 によって取り扱われ、通常の段落のように見えますが、自由に空白を入れることができます。
21422 \end_layout
21423
21424 \begin_layout Standard
21425 特殊な注釈として、chunk内でNowebの「%def」を使えば、Nowebのidentifierの相互参照に項目を加えることができます。次の例を見てください。
21426 \end_layout
21427
21428 \begin_layout LyX-Code
21429 <<My chunk>>=
21430 \end_layout
21431
21432 \begin_layout LyX-Code
21433 def some_function(args):
21434 \end_layout
21435
21436 \begin_layout LyX-Code
21437    "This is the doc string for this function."
21438 \end_layout
21439
21440 \begin_layout LyX-Code
21441    print "My args: ", args
21442 \end_layout
21443
21444 \begin_layout LyX-Code
21445 @ %def some_function
21446 \end_layout
21447
21448 \begin_layout Standard
21449 これをどのように使って、その結果相互参照がどうなるかは
21450 \emph on
21451 LIBDIR/examples/listerrors.lyx
21452 \emph default
21453 の中の文芸pythonプログラムを見るとよくわかります。
21454 \end_layout
21455
21456 \begin_layout Paragraph
21457 説明文書の生成
21458 \end_layout
21459
21460 \begin_layout Standard
21461 この時点で、適切な文書クラスを持ち、いくつかのコードとテキストが入った新規文書ファイルが作成されているはずです。これをどうやって印刷したらいいのでしょう。答えは
21462 簡単で、通常の文書で行うように
21463 \family sans
21464 文書\SpecialChar menuseparator
21465 表示
21466 \family default
21467 等を選ぶだけです。特別な手続きは必要ありません。
21468 \end_layout
21469
21470 \begin_layout Standard
21471 理解を助けるために、\SpecialChar LyX
21472 の内部で何が起っているかを説明しておきましょう。
21473 \end_layout
21474
21475 \begin_layout Enumerate
21476
21477 \family sans
21478 文書\SpecialChar menuseparator
21479 更新
21480 \family default
21481 が選択されると、\SpecialChar LaTeX
21482 ファイルがつくられます。
21483 \begin_inset Separator parbreak
21484 \end_inset
21485
21486
21487 \end_layout
21488
21489 \begin_deeper
21490 \begin_layout Standard
21491 文書が文芸プログラミング用のクラスであった場合には、拡張子に(
21492 \begin_inset Flex MenuItem
21493 status collapsed
21494
21495 \begin_layout Plain Layout
21496 設定
21497 \end_layout
21498
21499 \end_inset
21500
21501 パネルで設定した)文芸プログラム用のものがつけられます。それ以外は .texが拡張子に使われます。
21502 \end_layout
21503
21504 \end_deeper
21505 \begin_layout Enumerate
21506 違いがファイル名だけなのに注意してください。\SpecialChar LyX
21507 による特別な処理は必要ありません。
21508 \begin_inset Flex Noun
21509 status collapsed
21510
21511 \begin_layout Plain Layout
21512 Chunk
21513 \end_layout
21514
21515 \end_inset
21516
21517 環境でコードを入力するのだけがポイントです。
21518 \end_layout
21519
21520 \begin_layout Enumerate
21521 文書が何らかの文芸プログラムクラスなら、\SpecialChar LyX
21522 は、\SpecialChar LyX
21523 からNowebへの内部変換子を用い、それからNowebから\SpecialChar LaTeX
21524 への変換子
21525 \begin_inset Foot
21526 status collapsed
21527
21528 \begin_layout Plain Layout
21529 これらの変換子は、
21530 \family sans
21531 ツール\SpecialChar menuseparator
21532 設定
21533 \family default
21534 パネルの変換子タブに定義されています。変換子の一般的な情報については、取扱説明書『
21535 \emph on
21536 カスタマイズ篇
21537 \emph default
21538 』の「
21539 \emph on
21540 変換子
21541 \emph default
21542 」の節をご覧ください。
21543 \end_layout
21544
21545 \end_inset
21546
21547 を使って\SpecialChar LaTeX
21548 ファイルを生成します。
21549 \begin_inset Separator parbreak
21550 \end_inset
21551
21552
21553 \end_layout
21554
21555 \begin_deeper
21556 \begin_layout Standard
21557 それ以外の場合はこのステップを飛ばします。
21558 \end_layout
21559
21560 \end_deeper
21561 \begin_layout Enumerate
21562 最後に\SpecialChar LaTeX
21563 が実行され、通常の文書と同じ後処理が行われます。
21564 \end_layout
21565
21566 \begin_layout Standard
21567 様々な変換子が実行するコマンドを変更すれば、簡単に、特定の「文芸プログラムツール」から変更することができます。
21568 \end_layout
21569
21570 \begin_layout Paragraph
21571 コードの生成
21572 \end_layout
21573
21574 \begin_layout Standard
21575 ビルドメニューが選ばれた場合や、それに対応するツールバーのボタンが押された場合、上のステップ1と同様に\SpecialChar LaTeX
21576 ファイルが生成されます。それから\SpecialChar LyX
21577
21578 \family typewriter
21579 Noweb->Program
21580 \family default
21581 のコンバータを起動します。通常は、このコンバータは(他のコンバータと同じように)2つの部分からできています。
21582 \end_layout
21583
21584 \begin_layout Enumerate
21585 変換プログラム。このプログラムは、一つのフォーマットから他のフォーマットへの変換を行います(この場合は、Nowebフォーマットからプログラムの疑似フォーマットへ
21586 変換します)。
21587 \end_layout
21588
21589 \begin_layout Enumerate
21590 エラーログ解析子。これはエラーメッセージを\SpecialChar LyX
21591 が理解できる形へ書き直します。これによって、\SpecialChar LyX
21592 はファイルバッファの正しい位置へエラーボックスを配置することができます。
21593 \end_layout
21594
21595 \begin_layout Standard
21596 冒頭部、「変換子」設定は
21597 \begin_inset Newline newline
21598 \end_inset
21599
21600
21601 \begin_inset Quotes eld
21602 \end_inset
21603
21604
21605 \family typewriter
21606 build-script $$i $$r
21607 \family default
21608
21609 \begin_inset Quotes erd
21610 \end_inset
21611
21612
21613 \begin_inset Newline newline
21614 \end_inset
21615
21616 と指定します。これは基本的に、\SpecialChar LyX
21617
21618 \begin_inset Quotes erd
21619 \end_inset
21620
21621
21622 \family typewriter
21623 build-script
21624 \family default
21625
21626 \begin_inset Quotes erd
21627 \end_inset
21628
21629 (プログラムかスクリプト名)を(一般には\SpecialChar LyX
21630 の一時ファイル用のディレクトリにつくられる)、Nowebファイルの名前と元の\SpecialChar LyX
21631 ファイルのディレクトリパスを使って呼び出すこ
21632 とを意味しています。
21633 \end_layout
21634
21635 \begin_layout Standard
21636 以下に「build-script」の一例を書いておきます。パスが通っているディレクトリに置いて使います。
21637 \end_layout
21638
21639 \begin_layout Standard
21640 \begin_inset VSpace defskip
21641 \end_inset
21642
21643
21644 \begin_inset Newpage pagebreak
21645 \end_inset
21646
21647
21648 \end_layout
21649
21650 \begin_layout Standard
21651
21652 \family sans
21653 #!/bin/sh
21654 \end_layout
21655
21656 \begin_layout Standard
21657
21658 \family sans
21659 #
21660 \end_layout
21661
21662 \begin_layout Standard
21663
21664 \family sans
21665 notangle -Rbuild-script $1 | env NOWEB_SOURCE=$1 NOWEB_OUTPUT_DIR=$2 sh
21666 \end_layout
21667
21668 \begin_layout Standard
21669 \begin_inset VSpace defskip
21670 \end_inset
21671
21672
21673 \end_layout
21674
21675 \begin_layout Standard
21676 変換子設定の次の部分は「フラグ」で、これは
21677 \begin_inset Quotes erd
21678 \end_inset
21679
21680
21681 \family typewriter
21682 parselog=$$s/scripts/listerrors
21683 \family default
21684
21685 \begin_inset Quotes erd
21686 \end_inset
21687
21688 に設定されます。
21689 \begin_inset Newline newline
21690 \end_inset
21691
21692 これは、
21693 \begin_inset Quotes erd
21694 \end_inset
21695
21696 build-script
21697 \begin_inset Quotes erd
21698 \end_inset
21699
21700 プロセスが生成したエラーを
21701 \begin_inset Quotes erd
21702 \end_inset
21703
21704 listerrors
21705 \begin_inset Quotes erd
21706 \end_inset
21707
21708 プログラムを介して処理するものです。
21709 \end_layout
21710
21711 \begin_layout Standard
21712 ビルドは、通常\SpecialChar LyX
21713 の一時ディレクトリで行われるので、変換によって生成されたファイルはそのディレクトリに置かれます。\SpecialChar LyX
21714 は、主要ファイルとみなされるものをコピーして取り出
21715 しますが、
21716 \family typewriter
21717 Noweb→プログラム
21718 \family default
21719 変換は複数のファイルを生成することがあるので、\SpecialChar LyX
21720 を閉じる際に大半が削除される可能性があります。これが、NOWEB_OUTPUT_DIR環境変数を渡して、build
21721 -script chunkが生成したファイルをその場所に置かれるようにする理由です。
21722 \end_layout
21723
21724 \begin_layout Paragraph
21725 文章中でのプログラムの構築操作の説明
21726 \end_layout
21727
21728 \begin_layout Standard
21729 \SpecialChar LyX
21730 とNowebの統合の最後の部分は、
21731 \begin_inset Quotes eld
21732 \end_inset
21733
21734 build-script
21735 \begin_inset Quotes erd
21736 \end_inset
21737
21738  chunkです。一般に、あなたのプログラムの構築操作の説明それ自身をchunkに入れて文章中に含めなければなりません。上の例のnoweb用のbuild-scr
21739 iptでは、chunkを見つけるのにnotangleコマンドを使い、shを使って起動します。
21740 \end_layout
21741
21742 \begin_layout Standard
21743 以下に典型的なchunkがどのようなものかを書いておきます。
21744 \end_layout
21745
21746 \begin_layout LyX-Code
21747 <<build-script>>=
21748 \begin_inset Newline newline
21749 \end_inset
21750
21751
21752 \end_layout
21753
21754 \begin_layout LyX-Code
21755 #!/bin/sh
21756 \begin_inset Newline newline
21757 \end_inset
21758
21759
21760 \begin_inset Newline newline
21761 \end_inset
21762
21763 if [ -z "${NOWEB_SOURCE}" ]
21764 \begin_inset Newline newline
21765 \end_inset
21766
21767 then
21768 \end_layout
21769
21770 \begin_layout LyX-Code
21771 NOWEB_SOURCE=myfile.nw
21772 \begin_inset Newline newline
21773 \end_inset
21774
21775 fi
21776 \begin_inset Newline newline
21777 \end_inset
21778
21779 [...
21780  code to extract files ...
21781  use NOWEB_OUTPUT_DIR here ...]
21782 \begin_inset Newline newline
21783 \end_inset
21784
21785 [...
21786  code to compile files ...]
21787 \begin_inset Newline newline
21788 \end_inset
21789
21790 @
21791 \end_layout
21792
21793 \begin_layout Standard
21794
21795 \emph on
21796 LIBDIR/examples/listerrors.lyx
21797 \emph default
21798
21799 \emph on
21800 LIBDIR/examples/Literate.lyx
21801 \emph default
21802 を見てください。この2つのファイルには異なる実装のlisterrorsプログラムが含まれていて、これまで説明してきた各々の部分が全体としてどのようになるかをわか
21803 ってもらうための例です。また、
21804 \emph on
21805 LIBDIR/examples/noweb2lyx.lyx
21806 \emph default
21807 も見てください。面白いことに、これらの3つのファイルは、Python、C、Perlが各々使われていて、\SpecialChar LyX
21808 の文芸プログラミングのサポートがプログラム言語に依存しない
21809 ことを示しています。
21810 \end_layout
21811
21812 \begin_layout Subsubsection
21813 \SpecialChar LyX
21814 の設定
21815 \end_layout
21816
21817 \begin_layout Standard
21818 すべての文芸プログラムのための設定は、
21819 \family sans
21820 ツール\SpecialChar menuseparator
21821 設定
21822 \family default
21823 パネルの「ファイル処理」タブですることができます。重要な部分を見ておきましょう。
21824 \end_layout
21825
21826 \begin_layout Description
21827 「NoWeb」形式 ファイル形式タブで設定します。ここで、Noweb特有の設定を行います。
21828 \family sans
21829 GUI名
21830 \family default
21831
21832 \family typewriter
21833 NoWeb
21834 \family default
21835 に、拡張子を
21836 \family typewriter
21837 .nw
21838 \family default
21839 に設定してください。これによって、\SpecialChar LyX
21840 に変換プロセスの第一段階でつくられるファイルに
21841 \family typewriter
21842 .nw
21843 \family default
21844 という拡張子をつけることを指示します。
21845 \end_layout
21846
21847 \begin_layout Description
21848 プログラム形式 これは、変換の終着点を示すためだけの、空の形式です(これがあることで、変換子を作ることができます)。
21849 \end_layout
21850
21851 \begin_layout Description
21852
21853 \family sans
21854 NoWeb
21855 \family default
21856 ->
21857 \family sans
21858 \SpecialChar LaTeX
21859
21860 \family default
21861  この変換子は、文芸的文書の「weaving」を行います。Nowebの場合、「
21862 \family typewriter
21863 noweave -delay -index $$i > $$o
21864 \family default
21865 」に設定されます。
21866 \end_layout
21867
21868 \begin_layout Description
21869
21870 \family sans
21871 NoWeb
21872 \family default
21873 ->
21874 \family sans
21875 Program
21876 \family default
21877  これは「tangling」を行います。上述のように、変換子は「
21878 \family typewriter
21879 build-script $$i $$r
21880 \family default
21881 」、フラグは「
21882 \family typewriter
21883 parselog=$$s/scripts/listerrors
21884 \family default
21885 」となります。
21886 \end_layout
21887
21888 \begin_layout Subsubsection
21889 デバッグ機能拡張
21890 \end_layout
21891
21892 \begin_layout Standard
21893 ddd/gdbまたは他のデバッガで使える「server-goto-file-row」関数が新たに\SpecialChar LyX
21894 サーバに実装されました。
21895 \end_layout
21896
21897 \begin_layout Standard
21898 ddd/gdbでデバッグしているとき、一つの
21899 \begin_inset Flex Ruby
21900 status collapsed
21901
21902 \begin_layout Plain Layout
21903
21904 \begin_inset Argument post:1
21905 status collapsed
21906
21907 \begin_layout Plain Layout
21908 キー
21909 \end_layout
21910
21911 \end_inset
21912
21913
21914 \end_layout
21915
21916 \end_inset
21917
21918 ストロークで現在実行している位置でテキストエディタを起動できます。既定のdddの設定ではShift-Ctrl-Vになっています。この設定はdddで
21919 \begin_inset Flex MenuItem
21920 status collapsed
21921
21922 \begin_layout Plain Layout
21923 ツール\SpecialChar menuseparator
21924 設定\SpecialChar menuseparator
21925 ファイル書式
21926 \end_layout
21927
21928 \end_inset
21929
21930 ウインドウを表示して、
21931 \begin_inset Flex MenuItem
21932 status collapsed
21933
21934 \begin_layout Plain Layout
21935 編集プログラム
21936 \end_layout
21937
21938 \end_inset
21939
21940 エントリを変えると変えることができます。
21941 \end_layout
21942
21943 \begin_layout Standard
21944 新しい\SpecialChar LyX
21945 サーバの関数と、このdddの機能を使うために
21946 \begin_inset Flex MenuItem
21947 status collapsed
21948
21949 \begin_layout Plain Layout
21950 編集プログラム
21951 \end_layout
21952
21953 \end_inset
21954
21955 を次のように設定してください。
21956 \end_layout
21957
21958 \begin_layout Standard
21959 \begin_inset VSpace defskip
21960 \end_inset
21961
21962
21963 \end_layout
21964
21965 \begin_layout Standard
21966
21967 \family sans
21968 echo "LYXCMD:monitor:server-goto-file-row:@FILE@ @LINE@" >~/.lyxpipe.in
21969 \end_layout
21970
21971 \begin_layout Standard
21972 \begin_inset VSpace defskip
21973 \end_inset
21974
21975
21976 \end_layout
21977
21978 \begin_layout Standard
21979 こうしておくとdddを使っていてプログラムの編集したい場所があったとき、(dddのウインドウで)Shift-Ctrl-Vを押すだけでdddは\SpecialChar LyX
21980 サーバに情報を送り、\SpecialChar LyX
21981
21982 は同じファイルを表示し、カーソルはdddが示した場所へあらわれます。これでもうデバッグの最中に推測しながらスクロールして場所を探す必要がなくなります。
21983 \end_layout
21984
21985 \begin_layout Standard
21986 この機能が動くには\SpecialChar LyX
21987 サーバが利用可能でなければなりません(既定では\SpecialChar LyX
21988 サーバーは使えないようになっています)。\SpecialChar LyX
21989 サーバを使えるようにするには、
21990 \family sans
21991
21992 \begin_inset Flex MenuItem
21993 status collapsed
21994
21995 \begin_layout Plain Layout
21996
21997 \family sans
21998 設定
21999 \end_layout
22000
22001 \end_inset
22002
22003
22004 \family default
22005 (
22006 \family sans
22007
22008 \begin_inset Flex MenuItem
22009 status collapsed
22010
22011 \begin_layout Plain Layout
22012
22013 \family sans
22014 パス
22015 \end_layout
22016
22017 \end_inset
22018
22019
22020 \family default
22021 タブ)の
22022 \family sans
22023
22024 \begin_inset Flex MenuItem
22025 status collapsed
22026
22027 \begin_layout Plain Layout
22028
22029 \family sans
22030 \SpecialChar LyX
22031 サーバーパイプ
22032 \family default
22033
22034 \end_layout
22035
22036 \end_inset
22037
22038
22039 \family default
22040
22041 \begin_inset Quotes eld
22042 \end_inset
22043
22044
22045 \family typewriter
22046 /home/<your-home-directory>/.lyx/lyxpipe
22047 \family default
22048
22049 \begin_inset Quotes erd
22050 \end_inset
22051
22052  のようにパスを指定してください。
22053 \end_layout
22054
22055 \begin_layout Standard
22056 詳しくは第
22057 \begin_inset CommandInset ref
22058 LatexCommand ref
22059 reference "chap:LyXサーバー"
22060
22061 \end_inset
22062
22063 章を読んでください。
22064 \end_layout
22065
22066 \begin_layout Subsubsection
22067 ツールバー拡張
22068 \end_layout
22069
22070 \begin_layout Standard
22071 ツールバーに加えることのできる6つの新しいボタンがあります。そのうちの5つのボタンは段落環境へのショートカットです。
22072 \family sans
22073 標準
22074 \family default
22075 ・節・
22076 \family sans
22077 \SpecialChar LaTeX
22078
22079 \family default
22080
22081 \family sans
22082 \SpecialChar LyX
22083 コード
22084 \family default
22085
22086 \family sans
22087 Chunk
22088 \family default
22089 環境用のボタンを用意しています。最後の一つはファイルメニュー項目の「Build Program」への
22090 \begin_inset Flex Ruby
22091 status collapsed
22092
22093 \begin_layout Plain Layout
22094
22095 \family roman
22096 \series medium
22097 \shape up
22098 \size normal
22099 \emph off
22100 \bar no
22101 \noun off
22102 \color none
22103 捷径
22104 \family default
22105 \series default
22106 \shape default
22107 \size default
22108 \emph default
22109 \bar default
22110 \noun default
22111 \color inherit
22112
22113 \begin_inset Argument post:1
22114 status collapsed
22115
22116 \begin_layout Plain Layout
22117 ショートカット
22118 \end_layout
22119
22120 \end_inset
22121
22122
22123 \end_layout
22124
22125 \end_inset
22126
22127 です。
22128 \end_layout
22129
22130 \begin_layout Standard
22131 \SpecialChar LyX
22132 はツールバーで使うためのいくつものボタンを用意しています。私のツールバーはこの6つのショートカットに
22133 \begin_inset Flex MenuItem
22134 status collapsed
22135
22136 \begin_layout Plain Layout
22137 文書\SpecialChar menuseparator
22138 更新\SpecialChar menuseparator
22139 DVI
22140 \end_layout
22141
22142 \end_inset
22143
22144
22145 \begin_inset Flex MenuItem
22146 status collapsed
22147
22148 \begin_layout Plain Layout
22149 文書\SpecialChar menuseparator
22150 表示\SpecialChar menuseparator
22151 DVI
22152 \end_layout
22153
22154 \end_inset
22155
22156 を組み合わせたものになっています。
22157 \end_layout
22158
22159 \begin_layout LyX-Code
22160 Toolbar
22161 \end_layout
22162
22163 \begin_layout LyX-Code
22164   Layouts
22165 \end_layout
22166
22167 \begin_layout LyX-Code
22168   Icon "layout Standard"
22169 \end_layout
22170
22171 \begin_layout LyX-Code
22172   Icon "layout Section"
22173 \end_layout
22174
22175 \begin_layout LyX-Code
22176   Icon "layout \SpecialChar LaTeX
22177 "
22178 \end_layout
22179
22180 \begin_layout LyX-Code
22181   Icon "layout \SpecialChar LyX
22182 -Code"
22183 \end_layout
22184
22185 \begin_layout LyX-Code
22186   Icon "layout Chunk"
22187 \end_layout
22188
22189 \begin_layout LyX-Code
22190   Separator
22191 \end_layout
22192
22193 \begin_layout LyX-Code
22194   Icon "buffer-view"
22195 \end_layout
22196
22197 \begin_layout LyX-Code
22198   Icon "buffer-typeset"
22199 \end_layout
22200
22201 \begin_layout LyX-Code
22202   Icon "build-program"
22203 \end_layout
22204
22205 \begin_layout LyX-Code
22206   Separator
22207 \end_layout
22208
22209 \begin_layout LyX-Code
22210 .
22211 \end_layout
22212
22213 \begin_layout LyX-Code
22214 .
22215 \end_layout
22216
22217 \begin_layout LyX-Code
22218 .
22219 \end_layout
22220
22221 \begin_layout LyX-Code
22222 End
22223 \end_layout
22224
22225 \begin_layout Subsubsection
22226 色の変更
22227 \end_layout
22228
22229 \begin_layout Standard
22230 \SpecialChar LyX
22231 ではいくつもの色を
22232 \begin_inset Flex MenuItem
22233 status collapsed
22234
22235 \begin_layout Plain Layout
22236 設定
22237 \end_layout
22238
22239 \end_inset
22240
22241 で変えることができます。人々が困りがちなのは、\SpecialChar LaTeX
22242 フォント色でしょう。これは、既定では赤になっていますが、chunkは\SpecialChar LaTeX
22243 フォントを使うことになっていて、文芸プログラミ
22244 ング文書には多くのchunkが現れるために、すべて赤で見ていると疲れてしまうかもしれません。これは、
22245 \begin_inset Flex MenuItem
22246 status collapsed
22247
22248 \begin_layout Plain Layout
22249 操作性\SpecialChar menuseparator
22250
22251 \end_layout
22252
22253 \end_inset
22254
22255 タブで変更することができます。
22256 \end_layout
22257
22258 \begin_layout Standard
22259 もう一つは、改行文字が画面に表示されていることでしょう。改行文字の色を背景の色と同じにすることで改行文字を見えなくできます。私は改行文字を背景の色に似ているが少
22260 し違う色にすることを勧めます。こうすると、改行文字があるのはわかりますが、じゃまにならないでしょう。
22261 \end_layout
22262
22263 \begin_layout Subsection
22264 \SpecialChar LyX
22265 とknitr/Sweave
22266 \end_layout
22267
22268 \begin_layout Standard
22269 knitrとSweaveへのサポートについては、用例ファイル
22270 \emph on
22271 knitr.lyx
22272 \emph default
22273 とSweave取扱説明書(
22274 \family sans
22275 ヘルプ\SpecialChar menuseparator
22276 用途別説明書
22277 \family default
22278 メニュー)に説明があります。
22279 \end_layout
22280
22281 \begin_layout Chapter
22282 特殊機能
22283 \begin_inset CommandInset label
22284 LatexCommand label
22285 name "chap:Special-features"
22286
22287 \end_inset
22288
22289
22290 \end_layout
22291
22292 \begin_layout Standard
22293 \SpecialChar LyX
22294 では、\SpecialChar LaTeX
22295 で可能なことは何でも出来ます。すべての\SpecialChar LaTeX
22296 の機能を直接サポートできるわけではありませんが、どんな場合でも\SpecialChar TeX
22297 コードを使用することはできます。本章は、ユーザの興味が
22298 有りそうな特別な機能について、若干取り上げます。図表やフロート、ボックス、注釈に関する特別な機能については、取扱説明書『
22299 \emph on
22300 埋込オブジェクト篇
22301 \emph default
22302 』をご参照ください。
22303 \end_layout
22304
22305 \begin_layout Section
22306 多段組
22307 \end_layout
22308
22309 \begin_layout Standard
22310 この機能は、文書設定の
22311 \family sans
22312 本文レイアウト
22313 \family default
22314 にある
22315 \family sans
22316 二段組文書
22317 \family default
22318 とは別の機能です。文書全体に二段組を行いたい場合には、
22319 \family sans
22320 二段組文書
22321 \family default
22322 オプションを利用することをお勧めします。その他の場合には、本機能をご使用ください。
22323 \end_layout
22324
22325 \begin_layout Standard
22326 文書中で多段組を行うには、\SpecialChar LaTeX
22327 パッケージ
22328 \series bold
22329 multicol
22330 \series default
22331
22332 \begin_inset Index idx
22333 status collapsed
22334
22335 \begin_layout Plain Layout
22336 \SpecialChar LaTeX
22337 ぱっけーじ @ \SpecialChar LaTeX
22338 パッケージ ! multicol
22339 \end_layout
22340
22341 \end_inset
22342
22343 を導入した上で、(
22344 \family sans
22345 文書\SpecialChar menuseparator
22346 設定\SpecialChar menuseparator
22347 モジュール
22348 \family default
22349 メニューから)
22350 \family sans
22351 多段組
22352 \family default
22353 モジュールを読み込んでください。
22354 \end_layout
22355
22356 \begin_layout Standard
22357 多段組中の脚注は、ページ下部に置かれ、各段の下ごとには置かれません。各段においては、フロートに
22358 \family sans
22359 段をまたぐ
22360 \family default
22361 オプションを使用する必要があるほかは、通常通りの使用をすることができます。
22362 \end_layout
22363
22364 \begin_layout Subsection
22365 基本
22366 \end_layout
22367
22368 \begin_layout Standard
22369 文章中で二段組を使用したい場合には、段組を始める場所で
22370 \family sans
22371 挿入\SpecialChar menuseparator
22372 任意設定差込枠\SpecialChar menuseparator
22373 多段組
22374 \family default
22375 メニューを使用して、多段組差込枠を挿入してください。二段組で印字されるべき文章は、全てこの差込枠の中に書いてください。
22376 \end_layout
22377
22378 \begin_layout Standard
22379 下記はその用例です。
22380 \end_layout
22381
22382 \begin_layout Standard
22383 \noindent
22384 \begin_inset Flex Multiple Columns
22385 status open
22386
22387 \begin_layout Plain Layout
22388 \noindent
22389
22390 \series bold
22391 \size small
22392 The Adventure of the Empty House
22393 \series default
22394
22395 \begin_inset Newline newline
22396 \end_inset
22397
22398 by Sir Arthur Conan Doyle
22399 \end_layout
22400
22401 \begin_layout Plain Layout
22402
22403 \size small
22404 It was in the spring of the year 1894 that all London was interested, and
22405  the fashionable world dismayed, by the murder of the Honourable Ronald
22406  Adair under most unusual and inexplicable circumstances.
22407  The public has already learned those particulars of the crime which came
22408  out in the police investigation, but a good deal was suppressed upon that
22409  occasion, since the case for the prosecution was so overwhelmingly strong
22410  that it was not necessary to bring forward all the facts.
22411  Only now, at the end of nearly ten years, am I allowed to supply those
22412  missing links which make up the whole of that remarkable chain.
22413  The crime was of interest in itself, but that interest was as nothing to
22414  me compared to the inconceivable sequel, which afforded me the greatest
22415  shock and surprise of any event in my adventurous life.
22416  Even now, after this long interval, I find myself thrilling as I think
22417  of it, and feeling once more that sudden flood of joy, amazement, and increduli
22418 ty which utterly submerged my mind.
22419  Let me say to that public, which has shown some interest in those glimpses
22420  which I have occasionally given them of the thoughts and actions of a very
22421  remarkable man, that they are not to blame me if I have not shared my knowledge
22422  with them, for I should have considered it my first duty to do so, had
22423  I not been barred by a positive prohibition from his own lips, which was
22424  only withdrawn upon the third of last month.
22425 \end_layout
22426
22427 \end_inset
22428
22429
22430 \end_layout
22431
22432 \begin_layout Standard
22433 三段以上にするには、カーソルを多段組差込枠の内部において、挿入\SpecialChar menuseparator
22434 段数メニューを使用してください。この差込枠の中に、欲しい段数を書き入れます(三段組の場合には「3」
22435 と書きます)。
22436 \begin_inset Newline newline
22437 \end_inset
22438
22439 下記は三段組の例です。
22440 \end_layout
22441
22442 \begin_layout Standard
22443 \begin_inset Flex Multiple Columns
22444 status open
22445
22446 \begin_layout Plain Layout
22447
22448 \size footnotesize
22449 \begin_inset Argument 1
22450 status open
22451
22452 \begin_layout Plain Layout
22453 3
22454 \end_layout
22455
22456 \end_inset
22457
22458 It can be imagined that my close intimacy with Sherlock Holmes had interested
22459  me deeply in crime, and that after his disappearance I never failed to
22460  read with care the various problems which came before the public.
22461  And I even attempted, more than once, for my own private satisfaction,
22462  to employ his methods in their solution, though with indifferent success.
22463  There was none, however, which appealed to me like this tragedy of Ronald
22464  Adair.
22465  As I read the evidence at the inquest, which led up to a verdict of willful
22466  murder against some person or persons unknown, I realized more clearly
22467  than I had ever done the loss which the community had sustained by the
22468  death of Sherlock Holmes.
22469  There were points about this strange business which would, I was sure,
22470  have specially appealed to him, and the efforts of the police would have
22471  been supplemented, or more probably anticipated, by the trained observation
22472  and the alert mind of the first criminal agent in Europe.
22473  All day, as I drove upon my round, I turned over the case in my mind and
22474  found no explanation which appeared to me to be adequate.
22475  At the risk of telling a twice-told tale, I will recapitulate the facts
22476  as they were known to the public at the conclusion of the inquest.
22477 \end_layout
22478
22479 \end_inset
22480
22481
22482 \end_layout
22483
22484 \begin_layout Standard
22485 お望みならば10段組まで組むことができますが、文書の読者にとっては、あまり気持ちのいいものではないでしょう。
22486 \end_layout
22487
22488 \begin_layout Standard
22489 \begin_inset Newpage newpage
22490 \end_inset
22491
22492
22493 \end_layout
22494
22495 \begin_layout Subsection
22496 段組中の段組
22497 \end_layout
22498
22499 \begin_layout Standard
22500 また、段中に段を組むこともできます。
22501 \end_layout
22502
22503 \begin_layout Standard
22504 \begin_inset Flex Multiple Columns
22505 status open
22506
22507 \begin_layout Plain Layout
22508
22509 \size footnotesize
22510 The Honourable Ronald Adair was the second son of the Earl of Maynooth,
22511  at that time governor of one of the Australian colonies.
22512  Adair's mother had returned from Australia to undergo the operation for
22513  cataract, and she, her son Ronald, and her daughter Hilda were living together
22514  at 427 Park Lane.
22515 \end_layout
22516
22517 \begin_layout Plain Layout
22518 \begin_inset Flex Multiple Columns
22519 status open
22520
22521 \begin_layout Plain Layout
22522
22523 \size footnotesize
22524 The youth moved in the best society–had, so far as was known, no enemies
22525  and no particular vices.
22526  He had been engaged to Miss Edith Woodley, of Carstairs, but the engagement
22527  had been broken off by mutual consent some months before, and there was
22528  no sign that it had left any very profound feeling behind it.
22529  For the rest {sic} the man's life moved in a narrow and conventional circle,
22530  for his habits were quiet and his nature unemotional.
22531  Yet it was upon this easy-going young aristocrat that death came, in most
22532  strange and unexpected form, between the hours of ten and eleven-twenty
22533  on the night of March 30, 1894.
22534 \end_layout
22535
22536 \end_inset
22537
22538
22539 \end_layout
22540
22541 \begin_layout Plain Layout
22542
22543 \size footnotesize
22544 Ronald Adair was fond of cards–playing continually, but never for such stakes
22545  as would hurt him.
22546  He was a member of the Baldwin, the Cavendish, and the Bagatelle card clubs.
22547  It was shown that, after dinner on the day of his death, he had played
22548  a rubber of whist at the latter club.
22549  He had also played there in the afternoon.
22550
22551 \size default
22552  
22553 \size footnotesize
22554 The evidence of those who had played with him– Mr.
22555  Murray, Sir John Hardy, and Colonel Moran–showed that the game was whist,
22556  and that there was a fairly equal fall of the cards.
22557  Adair might have lost five pounds, but not more.
22558  His fortune was a considerable one, and such a loss could not in any way
22559  affect him.
22560  He had played nearly every day at one club or other, but he was a cautious
22561  player, and usually rose a winner.
22562  It came out in evidence that, in partnership with Colonel Moran, he had
22563  actually won as much as four hundred and twenty pounds in a sitting, some
22564  weeks before, from Godfrey Milner and Lord Balmoral.
22565  So much for his recent history as it came out at the inquest.
22566 \end_layout
22567
22568 \end_inset
22569
22570
22571 \end_layout
22572
22573 \begin_layout Subsection
22574 応用例
22575 \end_layout
22576
22577 \begin_layout Standard
22578 本節の用例は、多段組のさらに特別な機能を示すためのものです。
22579 \end_layout
22580
22581 \begin_layout Standard
22582 多段組機能についてさらに知りたい場合には、\SpecialChar LaTeX
22583 パッケージ
22584 \series bold
22585 multicol
22586 \series default
22587
22588 \begin_inset CommandInset citation
22589 LatexCommand cite
22590 key "multicol"
22591
22592 \end_inset
22593
22594 の取扱説明書をご覧ください。
22595 \end_layout
22596
22597 \begin_layout Subsubsection
22598 序文
22599 \end_layout
22600
22601 \begin_layout Standard
22602 多段組に序文を追記するには、カーソルを多段組差込枠内部に置き、
22603 \family sans
22604 挿入\SpecialChar menuseparator
22605 序文
22606 \family default
22607 メニューを使用してください。序文は、この差込枠内に書いてください。
22608 \begin_inset Newline newline
22609 \end_inset
22610
22611 序文のある文章の例を掲げます。
22612 \end_layout
22613
22614 \begin_layout Standard
22615 \begin_inset VSpace bigskip
22616 \end_inset
22617
22618
22619 \end_layout
22620
22621 \begin_layout Standard
22622 \begin_inset Flex Multiple Columns
22623 status open
22624
22625 \begin_layout Plain Layout
22626 \begin_inset Argument 2
22627 status open
22628
22629 \begin_layout Plain Layout
22630 And the story continues and continues and continues and continues\SpecialChar ldots
22631
22632 \end_layout
22633
22634 \end_inset
22635
22636
22637 \size small
22638 On the evening of the crime, he returned from the club exactly at ten.
22639  His mother and sister were out spending the evening with a relation.
22640  The servant deposed that she heard him enter the front room on the second
22641  floor, generally used as his sitting-room.
22642  She had lit a fire there, and as it smoked she had opened the window.
22643  No sound was heard from the room until eleven-twenty, the hour of the return
22644  of Lady Maynooth and her daughter.
22645  Desiring to say good-night, she attempted to enter her son's room.
22646  The door was locked on the inside, and no answer could be got to their
22647  cries and knocking.
22648  Help was obtained, and the door forced.
22649  The unfortunate young man was found lying near the table.
22650  His head had been horribly mutilated by an expanding revolver bullet, but
22651  no weapon of any sort was to be found in the room.
22652 \end_layout
22653
22654 \end_inset
22655
22656
22657 \end_layout
22658
22659 \begin_layout Standard
22660 最初の\SpecialChar TeX
22661 コードの後に、節宣言コマンドを\SpecialChar TeX
22662 コードとして使用すれば、節見出しを前書きとして使用することができます。例えば、
22663 \end_layout
22664
22665 \begin_layout Standard
22666
22667 \series bold
22668
22669 \backslash
22670 subsection{小節見出し}
22671 \end_layout
22672
22673 \begin_layout Standard
22674 というコマンドは、小節を生成します。以下の例では、前書きが小々節になっています。
22675 \end_layout
22676
22677 \begin_layout Standard
22678 \begin_inset Flex Multiple Columns
22679 status open
22680
22681 \begin_layout Plain Layout
22682 \begin_inset Argument 2
22683 status open
22684
22685 \begin_layout Plain Layout
22686 \begin_inset ERT
22687 status collapsed
22688
22689 \begin_layout Plain Layout
22690
22691
22692 \backslash
22693 subsubsection{
22694 \end_layout
22695
22696 \end_inset
22697
22698 これは序文の小々節見出しです
22699 \begin_inset ERT
22700 status collapsed
22701
22702 \begin_layout Plain Layout
22703
22704 }
22705 \end_layout
22706
22707 \end_inset
22708
22709
22710 \end_layout
22711
22712 \end_inset
22713
22714
22715 \size small
22716 A minute examination of the circumstances served only to make the case more
22717  complex.
22718  In the first place, no reason could be given why the young man should have
22719  fastened the door upon the inside.
22720  There was the possibility that the murderer had done this, and had afterwards
22721  escaped by the window.
22722  The drop was at least twenty feet, however, and a bed of crocuses in full
22723  bloom lay beneath.
22724  Neither the flowers nor the earth showed any sign of having been disturbed,
22725  nor were there any marks upon the narrow strip of grass which separated
22726  the house from the road.
22727  Apparently, therefore, it was the young man himself who had fastened the
22728  door.
22729  But how did he come by his death? No one could have climbed up to the window
22730  without leaving traces.
22731  Suppose a man had fired through the window, he would indeed be a remarkable
22732  shot who could with a revolver inflict so deadly a wound.
22733  Again, Park Lane is a frequented thoroughfare; there is a cab stand within
22734  a hundred yards of the house.
22735  No one had heard a shot.
22736 \end_layout
22737
22738 \end_inset
22739
22740
22741 \end_layout
22742
22743 \begin_layout Standard
22744 多段組を開始する部分に、必要とされる6行を確保出来るだけの垂直スペースがページに残されていない場合、多段組の前に改行が挿入されます。前書きの行数如何では、この必
22745 要行数を変更したいかもしれません。これは、カーソルを多段組差込枠内部の(もしあれば)序文の後に置き、
22746 \family sans
22747 挿入\SpecialChar menuseparator
22748 改頁前の余白
22749 \family default
22750 メニューを使用することで設定できます。この差込枠に、余白の大きさを「5cm」などと書き込んでください。
22751 \end_layout
22752
22753 \begin_layout Standard
22754 以下の例では、「7
22755 \backslash
22756 baselineskip」を用いて、必要行数を7行に指定しています(コマンド
22757 \series bold
22758
22759 \backslash
22760 baselineskip
22761 \series default
22762 は\SpecialChar TeX
22763 コードとして入力する必要があります)。
22764 \end_layout
22765
22766 \begin_layout Standard
22767 \begin_inset Flex Multiple Columns
22768 status open
22769
22770 \begin_layout Plain Layout
22771 \begin_inset Argument 3
22772 status open
22773
22774 \begin_layout Plain Layout
22775 7
22776 \begin_inset ERT
22777 status collapsed
22778
22779 \begin_layout Plain Layout
22780
22781
22782 \backslash
22783 baselineskip
22784 \end_layout
22785
22786 \end_inset
22787
22788
22789 \end_layout
22790
22791 \end_inset
22792
22793
22794 \size small
22795 On the evening of the crime, he returned from the club exactly at ten.
22796  His mother and sister were out spending the evening with a relation.
22797  The servant deposed that she heard him enter the front room on the second
22798  floor, generally used as his sitting-room.
22799  She had lit a fire there, and as it smoked she had opened the window.
22800  No sound was heard from the room until eleven-twenty, the hour of the return
22801  of Lady Maynooth and her daughter.
22802  Desiring to say good-night, she attempted to enter her son's room.
22803  The door was locked on the inside, and no answer could be got to their
22804  cries and knocking.
22805  Help was obtained, and the door forced.
22806  The unfortunate young man was found lying near the table.
22807  His head had been horribly mutilated by an expanding revolver bullet, but
22808  no weapon of any sort was to be found in the room.
22809 \end_layout
22810
22811 \end_inset
22812
22813
22814 \end_layout
22815
22816 \begin_layout Subsubsection
22817 周囲の余白
22818 \end_layout
22819
22820 \begin_layout Standard
22821 多段組の前後の余白は、長さ
22822 \series bold
22823
22824 \backslash
22825 multicolsep
22826 \series default
22827 を変えることで変更することができます。例えば、\SpecialChar TeX
22828 コードで書かれたコマンド
22829 \end_layout
22830
22831 \begin_layout Standard
22832
22833 \series bold
22834
22835 \backslash
22836 setlength{
22837 \backslash
22838 multicolsep}{3cm}
22839 \end_layout
22840
22841 \begin_layout Standard
22842 は、その値を3
22843 \begin_inset space \thinspace{}
22844 \end_inset
22845
22846 cmに変更します。この変更は、多段組が始まる前に指定しなくてはなりません。既定値は13
22847 \begin_inset space \thinspace{}
22848 \end_inset
22849
22850 ptです。
22851 \end_layout
22852
22853 \begin_layout Standard
22854 以下の例では、
22855 \series bold
22856
22857 \backslash
22858 multicolsep
22859 \series default
22860 は2.5
22861 \begin_inset space \thinspace{}
22862 \end_inset
22863
22864 cmに指定されています。
22865 \end_layout
22866
22867 \begin_layout Standard
22868 \begin_inset ERT
22869 status open
22870
22871 \begin_layout Plain Layout
22872
22873
22874 \backslash
22875 setlength{
22876 \backslash
22877 multicolsep}{2.5cm}
22878 \end_layout
22879
22880 \end_inset
22881
22882
22883 \end_layout
22884
22885 \begin_layout Standard
22886 \begin_inset Flex Multiple Columns
22887 status open
22888
22889 \begin_layout Plain Layout
22890
22891 \size small
22892 All day I turned these facts over in my mind, endeavouring to hit upon some
22893  theory which could reconcile them all, and to find that line of least resistanc
22894 e which my poor friend had declared to be the starting-point of every investigat
22895 ion.
22896  I confess that I made little progress.
22897  In the evening I strolled across the Park, and found myself about six o'clock
22898  at the Oxford Street end of Park Lane.
22899  A group of loafers upon the pavements, all staring up at a particular window,
22900  directed me to the house which I had come to see.
22901  A tall, thin man with coloured glasses, whom I strongly suspected of being
22902  a plain-clothes detective, was pointing out some theory of his own, while
22903  the others crowded round to listen to what he said.
22904  I got as near him as I could, but his observations seemed to me to be absurd,
22905  so I withdrew again in some disgust.
22906  As I did so I struck against an elderly, deformed man, who had been behind
22907  me, and I knocked down several books which he was carrying.
22908 \end_layout
22909
22910 \end_inset
22911
22912
22913 \end_layout
22914
22915 \begin_layout Standard
22916 \begin_inset Note Greyedout
22917 status open
22918
22919 \begin_layout Plain Layout
22920
22921 \series bold
22922 【註】
22923 \backslash
22924 setlength
22925 \series default
22926 で指定した値は、再度変更されるまでは、以降のすべての多段組で使用されます。
22927 \end_layout
22928
22929 \end_inset
22930
22931
22932 \end_layout
22933
22934 \begin_layout Standard
22935 \begin_inset ERT
22936 status collapsed
22937
22938 \begin_layout Plain Layout
22939
22940
22941 \backslash
22942 setlength{
22943 \backslash
22944 multicolsep}{13pt}
22945 \end_layout
22946
22947 \end_inset
22948
22949
22950 \begin_inset Note Note
22951 status collapsed
22952
22953 \begin_layout Plain Layout
22954
22955 \lang english
22956 go back to the default
22957 \end_layout
22958
22959 \end_inset
22960
22961
22962 \end_layout
22963
22964 \begin_layout Standard
22965 \begin_inset Newpage newpage
22966 \end_inset
22967
22968
22969 \end_layout
22970
22971 \begin_layout Subsubsection
22972 改段
22973 \end_layout
22974
22975 \begin_layout Standard
22976 改段は、文章中の階段を行いたい位置に、\SpecialChar TeX
22977 コードで、コマンド
22978 \series bold
22979
22980 \backslash
22981 columnbreak{}
22982 \series default
22983 を挿入すれば、強制的に行うことができます。ただし、多くの場合、文章中に空白が挿入されることに注意してください。
22984 \begin_inset Newline newline
22985 \end_inset
22986
22987 以下が用例です。
22988 \end_layout
22989
22990 \begin_layout Standard
22991 \begin_inset Flex Multiple Columns
22992 status open
22993
22994 \begin_layout Plain Layout
22995
22996 \size small
22997 \begin_inset Quotes eld
22998 \end_inset
22999
23000 You're surprised to see me, sir,
23001 \begin_inset Quotes erd
23002 \end_inset
23003
23004  said he, in a strange, croaking voice.
23005 \end_layout
23006
23007 \begin_layout Plain Layout
23008
23009 \size small
23010 I acknowledged that I was.
23011 \end_layout
23012
23013 \begin_layout Plain Layout
23014
23015 \size small
23016 \begin_inset Quotes eld
23017 \end_inset
23018
23019 Well, I've a conscience, sir, and when I chanced to see you go into this
23020  house, as I came hobbling after you, I thought to myself, I'll just step
23021  in and see that kind gentleman, and tell him that if I was a bit gruff
23022  in my manner there was not any harm meant, and that I am much obliged to
23023  him for picking up my books.
23024 \begin_inset Quotes erd
23025 \end_inset
23026
23027
23028 \end_layout
23029
23030 \begin_layout Plain Layout
23031
23032 \size small
23033 \begin_inset Quotes eld
23034 \end_inset
23035
23036 You make too much of a trifle,
23037 \begin_inset Quotes erd
23038 \end_inset
23039
23040  said I.
23041  
23042 \begin_inset Quotes eld
23043 \end_inset
23044
23045 May I ask how you knew who I was?
23046 \begin_inset Quotes erd
23047 \end_inset
23048
23049  AFTER THIS SENTENCE THE COLUMN BREAK IS FORCED.
23050 \begin_inset ERT
23051 status collapsed
23052
23053 \begin_layout Plain Layout
23054
23055
23056 \backslash
23057 columnbreak{}
23058 \end_layout
23059
23060 \end_inset
23061
23062
23063 \end_layout
23064
23065 \begin_layout Plain Layout
23066
23067 \size small
23068 \begin_inset Quotes eld
23069 \end_inset
23070
23071 Well, sir, if it isn't too great a liberty, I am a neighbour of yours, for
23072  you'll find my little bookshop at the corner of Church Street, and very
23073  happy to see you, I am sure.
23074  Maybe you collect yourself, sir.
23075  Here's 
23076 \noun on
23077 British
23078 \begin_inset space ~
23079 \end_inset
23080
23081 Birds
23082 \noun default
23083 , and 
23084 \noun on
23085 Catullus
23086 \noun default
23087 , and 
23088 \noun on
23089 The Holy War
23090 \noun default
23091 –a bargain, every one of them.
23092  With five volumes you could just fill that gap on that second shelf.
23093  It looks untidy, does it not, sir?
23094 \begin_inset Quotes erd
23095 \end_inset
23096
23097
23098 \end_layout
23099
23100 \end_inset
23101
23102
23103 \end_layout
23104
23105 \begin_layout Subsubsection
23106 段間隔
23107 \end_layout
23108
23109 \begin_layout Standard
23110 段幅は自動的に計算されますが、段の間の余白は指定することができます。これは、長さ
23111 \series bold
23112
23113 \backslash
23114 columnsep
23115 \series default
23116 を変更することで実現できます。既定値は10
23117 \begin_inset space \thinspace{}
23118 \end_inset
23119
23120 ptです。以下は
23121 \series bold
23122
23123 \backslash
23124 columnsep
23125 \series default
23126 を3
23127 \begin_inset space \thinspace{}
23128 \end_inset
23129
23130 cmに設定した例です。
23131 \end_layout
23132
23133 \begin_layout Standard
23134 \begin_inset ERT
23135 status open
23136
23137 \begin_layout Plain Layout
23138
23139
23140 \backslash
23141 setlength{
23142 \backslash
23143 columnsep}{3cm}
23144 \end_layout
23145
23146 \end_inset
23147
23148
23149 \end_layout
23150
23151 \begin_layout Standard
23152 \begin_inset Flex Multiple Columns
23153 status open
23154
23155 \begin_layout Plain Layout
23156
23157 \size small
23158 My observations of No.
23159 \begin_inset space \space{}
23160 \end_inset
23161
23162 427 Park Lane did little to clear up the problem in which I was interested.
23163  The house was separated from the street by a low wall and railing, the
23164  whole not more than five feet high.
23165  It was perfectly easy, therefore, for anyone to get into the garden, but
23166  the window was entirely inaccessible, since there was no water pipe or
23167  anything which could help the most active man to climb it.
23168  More puzzled than ever, I retraced my steps to Kensington.
23169  I had not been in my study five minutes when the maid entered to say that
23170  a person desired to see me.
23171  To my astonishment it was none other than my strange old book collector,
23172  his sharp, wizened face peering out from a frame of white hair, and his
23173  precious volumes, a dozen of them at least, wedged under his right arm.
23174 \end_layout
23175
23176 \end_inset
23177
23178
23179 \end_layout
23180
23181 \begin_layout Standard
23182 \begin_inset ERT
23183 status collapsed
23184
23185 \begin_layout Plain Layout
23186
23187
23188 \backslash
23189 setlength{
23190 \backslash
23191 columnsep}{10pt}
23192 \end_layout
23193
23194 \end_inset
23195
23196
23197 \begin_inset Note Note
23198 status collapsed
23199
23200 \begin_layout Plain Layout
23201
23202 \lang english
23203 go back to the default
23204 \end_layout
23205
23206 \end_inset
23207
23208
23209 \end_layout
23210
23211 \begin_layout Subsubsection
23212 垂直線
23213 \end_layout
23214
23215 \begin_layout Standard
23216 段間には、長さ
23217 \series bold
23218
23219 \backslash
23220 columnseprule
23221 \series default
23222 の幅を持つ罫線が描かれます。罫線幅を0
23223 \begin_inset space \thinspace{}
23224 \end_inset
23225
23226 ptにすると(これが既定値です)、罫線は出力されません。以下の例では、段を分かつ線は2
23227 \begin_inset space \thinspace{}
23228 \end_inset
23229
23230 pt幅に設定されています。
23231 \end_layout
23232
23233 \begin_layout Standard
23234 \begin_inset ERT
23235 status open
23236
23237 \begin_layout Plain Layout
23238
23239
23240 \backslash
23241 setlength{
23242 \backslash
23243 columnseprule}{2pt}
23244 \end_layout
23245
23246 \end_inset
23247
23248
23249 \end_layout
23250
23251 \begin_layout Standard
23252 \begin_inset Flex Multiple Columns
23253 status open
23254
23255 \begin_layout Plain Layout
23256
23257 \size small
23258 \begin_inset Quotes eld
23259 \end_inset
23260
23261 You're surprised to see me, sir,
23262 \begin_inset Quotes erd
23263 \end_inset
23264
23265  said he, in a strange, croaking voice.
23266 \end_layout
23267
23268 \begin_layout Plain Layout
23269
23270 \size small
23271 I acknowledged that I was.
23272 \end_layout
23273
23274 \begin_layout Plain Layout
23275
23276 \size small
23277 \begin_inset Quotes eld
23278 \end_inset
23279
23280 Well, I've a conscience, sir, and when I chanced to see you go into this
23281  house, as I came hobbling after you, I thought to myself, I'll just step
23282  in and see that kind gentleman, and tell him that if I was a bit gruff
23283  in my manner there was not any harm meant, and that I am much obliged to
23284  him for picking up my books.
23285 \begin_inset Quotes erd
23286 \end_inset
23287
23288
23289 \end_layout
23290
23291 \begin_layout Plain Layout
23292
23293 \size small
23294 \begin_inset Quotes eld
23295 \end_inset
23296
23297 You make too much of a trifle,
23298 \begin_inset Quotes erd
23299 \end_inset
23300
23301  said I.
23302  
23303 \begin_inset Quotes eld
23304 \end_inset
23305
23306 May I ask how you knew who I was?
23307 \begin_inset Quotes erd
23308 \end_inset
23309
23310
23311 \end_layout
23312
23313 \begin_layout Plain Layout
23314
23315 \size small
23316 \begin_inset Quotes eld
23317 \end_inset
23318
23319 Well, sir, if it isn't too great a liberty, I am a neighbour of yours, for
23320  you'll find my little bookshop at the corner of Church Street, and very
23321  happy to see you, I am sure.
23322  Maybe you collect yourself, sir.
23323  Here's 
23324 \noun on
23325 British
23326 \begin_inset space ~
23327 \end_inset
23328
23329 Birds
23330 \noun default
23331 , and 
23332 \noun on
23333 Catullus
23334 \noun default
23335 , and 
23336 \noun on
23337 The Holy War
23338 \noun default
23339 –a bargain, every one of them.
23340  With five volumes you could just fill that gap on that second shelf.
23341  It looks untidy, does it not, sir?
23342 \begin_inset Quotes erd
23343 \end_inset
23344
23345
23346 \end_layout
23347
23348 \end_inset
23349
23350
23351 \end_layout
23352
23353 \begin_layout Standard
23354 \begin_inset VSpace defskip
23355 \end_inset
23356
23357
23358 \end_layout
23359
23360 \begin_layout Standard
23361 罫線は、コマンド
23362 \series bold
23363
23364 \backslash
23365 columnseprulecolor
23366 \series default
23367 を再定義すれば、着色することができます。これは、多段組差込枠の前に\SpecialChar TeX
23368 コードで以下のコマンドを挿入すれば、実現できます。
23369 \begin_inset Newline newline
23370 \end_inset
23371
23372
23373 \series bold
23374
23375 \backslash
23376 renewcommand{
23377 \backslash
23378 columnseprulecolor}{
23379 \backslash
23380 color{red}}
23381 \series default
23382
23383 \begin_inset Newline newline
23384 \end_inset
23385
23386 このコマンド中の
23387 \series bold
23388 red
23389 \series default
23390 をお好みの色に変更してください。既定色とユーザー定義色の全てを使用することができます。既定色とユーザー定義色についての詳細な情報は、取扱説明書『
23391 \emph on
23392 埋込オブジェクト篇
23393 \emph default
23394 』の「
23395 \emph on
23396 色付き表
23397 \emph default
23398 」の節をご覧ください。既定色に戻すには、以下のコマンドを挿入してください。
23399 \begin_inset Newline newline
23400 \end_inset
23401
23402
23403 \series bold
23404
23405 \backslash
23406 renewcommand{
23407 \backslash
23408 columnseprulecolor}{
23409 \backslash
23410 normalcolor}
23411 \series default
23412
23413 \begin_inset Newline newline
23414 \end_inset
23415
23416 以下は、シアン色の罫線と1
23417 \begin_inset space \thinspace{}
23418 \end_inset
23419
23420 cmの段間隔を持つ例です。
23421 \end_layout
23422
23423 \begin_layout Standard
23424 \begin_inset ERT
23425 status open
23426
23427 \begin_layout Plain Layout
23428
23429
23430 \backslash
23431 setlength{
23432 \backslash
23433 columnsep}{1cm}
23434 \end_layout
23435
23436 \begin_layout Plain Layout
23437
23438
23439 \backslash
23440 renewcommand{
23441 \backslash
23442 columnseprulecolor}{
23443 \backslash
23444 color{cyan}}
23445 \end_layout
23446
23447 \end_inset
23448
23449
23450 \end_layout
23451
23452 \begin_layout Standard
23453 \begin_inset Flex Multiple Columns
23454 status open
23455
23456 \begin_layout Plain Layout
23457
23458 \size small
23459 \begin_inset Quotes eld
23460 \end_inset
23461
23462 You're surprised to see me, sir,
23463 \begin_inset Quotes erd
23464 \end_inset
23465
23466  said he, in a strange, croaking voice.
23467 \end_layout
23468
23469 \begin_layout Plain Layout
23470
23471 \size small
23472 I acknowledged that I was.
23473 \end_layout
23474
23475 \begin_layout Plain Layout
23476
23477 \size small
23478 \begin_inset Quotes eld
23479 \end_inset
23480
23481 Well, I've a conscience, sir, and when I chanced to see you go into this
23482  house, as I came hobbling after you, I thought to myself, I'll just step
23483  in and see that kind gentleman, and tell him that if I was a bit gruff
23484  in my manner there was not any harm meant, and that I am much obliged to
23485  him for picking up my books.
23486 \begin_inset Quotes erd
23487 \end_inset
23488
23489
23490 \end_layout
23491
23492 \begin_layout Plain Layout
23493
23494 \size small
23495 \begin_inset Quotes eld
23496 \end_inset
23497
23498 You make too much of a trifle,
23499 \begin_inset Quotes erd
23500 \end_inset
23501
23502  said I.
23503  
23504 \begin_inset Quotes eld
23505 \end_inset
23506
23507 May I ask how you knew who I was?
23508 \begin_inset Quotes erd
23509 \end_inset
23510
23511
23512 \end_layout
23513
23514 \begin_layout Plain Layout
23515
23516 \size small
23517 \begin_inset Quotes eld
23518 \end_inset
23519
23520 Well, sir, if it isn't too great a liberty, I am a neighbour of yours, for
23521  you'll find my little bookshop at the corner of Church Street, and very
23522  happy to see you, I am sure.
23523  Maybe you collect yourself, sir.
23524  Here's 
23525 \noun on
23526 British
23527 \begin_inset space ~
23528 \end_inset
23529
23530 Birds
23531 \noun default
23532 , and 
23533 \noun on
23534 Catullus
23535 \noun default
23536 , and 
23537 \noun on
23538 The Holy War
23539 \noun default
23540 –a bargain, every one of them.
23541  With five volumes you could just fill that gap on that second shelf.
23542  It looks untidy, does it not, sir?
23543 \begin_inset Quotes erd
23544 \end_inset
23545
23546
23547 \end_layout
23548
23549 \end_inset
23550
23551
23552 \end_layout
23553
23554 \begin_layout Standard
23555 \begin_inset ERT
23556 status collapsed
23557
23558 \begin_layout Plain Layout
23559
23560
23561 \backslash
23562 setlength{
23563 \backslash
23564 columnseprule}{0pt}
23565 \end_layout
23566
23567 \begin_layout Plain Layout
23568
23569
23570 \backslash
23571 renewcommand{
23572 \backslash
23573 columnseprulecolor}{
23574 \backslash
23575 normalcolor}
23576 \end_layout
23577
23578 \end_inset
23579
23580
23581 \begin_inset Note Note
23582 status collapsed
23583
23584 \begin_layout Plain Layout
23585
23586 \lang english
23587 go back to the default
23588 \end_layout
23589
23590 \end_inset
23591
23592
23593 \end_layout
23594
23595 \begin_layout Standard
23596 \begin_inset Newpage newpage
23597 \end_inset
23598
23599
23600 \end_layout
23601
23602 \begin_layout Section
23603 標準的でない形の段落
23604 \end_layout
23605
23606 \begin_layout Standard
23607 \noindent
23608 \SpecialChar LaTeX
23609 は、他のテキストプロセッサと同様に、既定で長方形の段落を使用します。しかし、例えば、ポスターや招待状、詩などの特殊な場合には、段落の形を好きなように変えることが
23610 できます。これは、文書設定で
23611 \family sans
23612 任意設定の段落形
23613 \family default
23614 モジュールを読み込んで、\SpecialChar LaTeX
23615 パッケージ
23616 \series bold
23617 shapepar
23618 \series default
23619 を使用させるようにすれば、実現できます。
23620 \end_layout
23621
23622 \begin_layout Subsection
23623 既定の形
23624 \end_layout
23625
23626 \begin_layout Standard
23627
23628 \series bold
23629 shapepar
23630 \series default
23631 は、以下の形を提供しています。
23632 \end_layout
23633
23634 \begin_layout Standard
23635 \begin_inset Tabular
23636 <lyxtabular version="3" rows="13" columns="3">
23637 <features booktabs="true" islongtable="true" longtabularalignment="center">
23638 <column alignment="center" valignment="middle" width="16col%">
23639 <column alignment="center" valignment="middle" width="40col%">
23640 <column alignment="center" valignment="middle" width="35col%">
23641 <row endhead="true">
23642 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23643 \begin_inset Text
23644
23645 \begin_layout Plain Layout
23646 名称
23647 \end_layout
23648
23649 \end_inset
23650 </cell>
23651 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23652 \begin_inset Text
23653
23654 \begin_layout Plain Layout
23655 説明
23656 \end_layout
23657
23658 \end_inset
23659 </cell>
23660 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
23661 \begin_inset Text
23662
23663 \begin_layout Plain Layout
23664 備考
23665 \end_layout
23666
23667 \end_inset
23668 </cell>
23669 </row>
23670 <row>
23671 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23672 \begin_inset Text
23673
23674 \begin_layout Plain Layout
23675 CDlabel
23676 \end_layout
23677
23678 \end_inset
23679 </cell>
23680 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23681 \begin_inset Text
23682
23683 \begin_layout Plain Layout
23684 丸い穴の開いたドーナツ型(CD/DVD大)
23685 \end_layout
23686
23687 \end_inset
23688 </cell>
23689 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23690 \begin_inset Text
23691
23692 \begin_layout Plain Layout
23693 伸縮不可。多くの文字を入れられないことに注意。
23694 \end_layout
23695
23696 \end_inset
23697 </cell>
23698 </row>
23699 <row>
23700 <cell alignment="center" valignment="top" topline="true" usebox="none">
23701 \begin_inset Text
23702
23703 \begin_layout Plain Layout
23704 Circle
23705 \end_layout
23706
23707 \end_inset
23708 </cell>
23709 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23710 \begin_inset Text
23711
23712 \begin_layout Plain Layout
23713
23714 \end_layout
23715
23716 \end_inset
23717 </cell>
23718 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23719 \begin_inset Text
23720
23721 \begin_layout Plain Layout
23722 脆弱。計算に失敗することも。
23723 \end_layout
23724
23725 \end_inset
23726 </cell>
23727 </row>
23728 <row>
23729 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23730 \begin_inset Text
23731
23732 \begin_layout Plain Layout
23733 Diamond
23734 \end_layout
23735
23736 \end_inset
23737 </cell>
23738 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23739 \begin_inset Text
23740
23741 \begin_layout Plain Layout
23742 菱形(シンボル的に
23743 \begin_inset Quotes eld
23744 \end_inset
23745
23746 diamond
23747 \begin_inset Quotes erd
23748 \end_inset
23749
23750 と表記)
23751 \end_layout
23752
23753 \end_inset
23754 </cell>
23755 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23756 \begin_inset Text
23757
23758 \begin_layout Plain Layout
23759 -
23760 \end_layout
23761
23762 \end_inset
23763 </cell>
23764 </row>
23765 <row>
23766 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23767 \begin_inset Text
23768
23769 \begin_layout Plain Layout
23770 Heart
23771 \end_layout
23772
23773 \end_inset
23774 </cell>
23775 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23776 \begin_inset Text
23777
23778 \begin_layout Plain Layout
23779 ハート型
23780 \end_layout
23781
23782 \end_inset
23783 </cell>
23784 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23785 \begin_inset Text
23786
23787 \begin_layout Plain Layout
23788 -
23789 \end_layout
23790
23791 \end_inset
23792 </cell>
23793 </row>
23794 <row>
23795 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23796 \begin_inset Text
23797
23798 \begin_layout Plain Layout
23799 Hexagon
23800 \end_layout
23801
23802 \end_inset
23803 </cell>
23804 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23805 \begin_inset Text
23806
23807 \begin_layout Plain Layout
23808 六角形
23809 \end_layout
23810
23811 \end_inset
23812 </cell>
23813 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23814 \begin_inset Text
23815
23816 \begin_layout Plain Layout
23817 -
23818 \end_layout
23819
23820 \end_inset
23821 </cell>
23822 </row>
23823 <row>
23824 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23825 \begin_inset Text
23826
23827 \begin_layout Plain Layout
23828 Nut
23829 \end_layout
23830
23831 \end_inset
23832 </cell>
23833 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23834 \begin_inset Text
23835
23836 \begin_layout Plain Layout
23837 ナット型(丸い穴の開いた六角形)
23838 \end_layout
23839
23840 \end_inset
23841 </cell>
23842 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23843 \begin_inset Text
23844
23845 \begin_layout Plain Layout
23846 -
23847 \end_layout
23848
23849 \end_inset
23850 </cell>
23851 </row>
23852 <row>
23853 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23854 \begin_inset Text
23855
23856 \begin_layout Plain Layout
23857 Square
23858 \end_layout
23859
23860 \end_inset
23861 </cell>
23862 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23863 \begin_inset Text
23864
23865 \begin_layout Plain Layout
23866 正方形
23867 \end_layout
23868
23869 \end_inset
23870 </cell>
23871 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23872 \begin_inset Text
23873
23874 \begin_layout Plain Layout
23875 -
23876 \end_layout
23877
23878 \end_inset
23879 </cell>
23880 </row>
23881 <row>
23882 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23883 \begin_inset Text
23884
23885 \begin_layout Plain Layout
23886 Star
23887 \end_layout
23888
23889 \end_inset
23890 </cell>
23891 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23892 \begin_inset Text
23893
23894 \begin_layout Plain Layout
23895 五芒星
23896 \end_layout
23897
23898 \end_inset
23899 </cell>
23900 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
23901 \begin_inset Text
23902
23903 \begin_layout Plain Layout
23904 -
23905 \end_layout
23906
23907 \end_inset
23908 </cell>
23909 </row>
23910 <row>
23911 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23912 \begin_inset Text
23913
23914 \begin_layout Plain Layout
23915 Candle
23916 \end_layout
23917
23918 \end_inset
23919 </cell>
23920 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23921 \begin_inset Text
23922
23923 \begin_layout Plain Layout
23924 燃えるろうそく
23925 \end_layout
23926
23927 \end_inset
23928 </cell>
23929 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23930 \begin_inset Text
23931
23932 \begin_layout Plain Layout
23933 -
23934 \end_layout
23935
23936 \end_inset
23937 </cell>
23938 </row>
23939 <row>
23940 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23941 \begin_inset Text
23942
23943 \begin_layout Plain Layout
23944 Drop down/up
23945 \end_layout
23946
23947 \end_inset
23948 </cell>
23949 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23950 \begin_inset Text
23951
23952 \begin_layout Plain Layout
23953 雫型/逆雫型
23954 \end_layout
23955
23956 \end_inset
23957 </cell>
23958 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23959 \begin_inset Text
23960
23961 \begin_layout Plain Layout
23962 脆弱。計算に失敗することも。
23963 \end_layout
23964
23965 \end_inset
23966 </cell>
23967 </row>
23968 <row>
23969 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23970 \begin_inset Text
23971
23972 \begin_layout Plain Layout
23973 \SpecialChar TeX
23974
23975 \end_layout
23976
23977 \end_inset
23978 </cell>
23979 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23980 \begin_inset Text
23981
23982 \begin_layout Plain Layout
23983 \SpecialChar TeX
23984 ロゴ
23985 \end_layout
23986
23987 \end_inset
23988 </cell>
23989 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23990 \begin_inset Text
23991
23992 \begin_layout Plain Layout
23993 -
23994 \end_layout
23995
23996 \end_inset
23997 </cell>
23998 </row>
23999 <row>
24000 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
24001 \begin_inset Text
24002
24003 \begin_layout Plain Layout
24004 Triangle up/down/
24005 \begin_inset Newline newline
24006 \end_inset
24007
24008 left/right
24009 \end_layout
24010
24011 \end_inset
24012 </cell>
24013 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
24014 \begin_inset Text
24015
24016 \begin_layout Plain Layout
24017 各方向の三角形
24018 \end_layout
24019
24020 \end_inset
24021 </cell>
24022 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
24023 \begin_inset Text
24024
24025 \begin_layout Plain Layout
24026 -
24027 \end_layout
24028
24029 \end_inset
24030 </cell>
24031 </row>
24032 </lyxtabular>
24033
24034 \end_inset
24035
24036
24037 \end_layout
24038
24039 \begin_layout Standard
24040 段落に形を適用するには、\SpecialChar LyX
24041 ツールバー中の環境プルダウンボックスから形を選んでください。
24042 \end_layout
24043
24044 \begin_layout Standard
24045 \begin_inset Newpage newpage
24046 \end_inset
24047
24048
24049 \end_layout
24050
24051 \begin_layout Standard
24052 以下は、ナット型の段落の例です。
24053 \end_layout
24054
24055 \begin_layout Standard
24056 \begin_inset VSpace bigskip
24057 \end_inset
24058
24059
24060 \end_layout
24061
24062 \begin_layout Nut
24063
24064 \lang latin
24065 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
24066  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
24067  voluptua.
24068  At vero eos et accusam et justo duo dolores et ea rebum.
24069  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
24070  sit amet.
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 \end_layout
24075
24076 \begin_layout Standard
24077 \begin_inset VSpace bigskip
24078 \end_inset
24079
24080
24081 \end_layout
24082
24083 \begin_layout Standard
24084 \begin_inset Note Greyedout
24085 status open
24086
24087 \begin_layout Plain Layout
24088
24089 \series bold
24090 【註】
24091 \series default
24092 shapepar段落は改頁にまたがることはできません。
24093 \end_layout
24094
24095 \end_inset
24096
24097
24098 \end_layout
24099
24100 \begin_layout Standard
24101 \begin_inset VSpace bigskip
24102 \end_inset
24103
24104
24105 \end_layout
24106
24107 \begin_layout Standard
24108
24109 \series bold
24110 shapepar
24111 \series default
24112 は、段落中にどれだけ文章が含まれようとも、常に形を維持しようとします。したがって、段落の大きさは、含まれている文章量によって変化しますので、段落の大きさがページ
24113 余白にはみ出してしまうことがあります。寸法が伸縮することを示すために、文章量を二倍にした例を見てみましょう。
24114 \end_layout
24115
24116 \begin_layout Standard
24117 \begin_inset Newpage newpage
24118 \end_inset
24119
24120
24121 \end_layout
24122
24123 \begin_layout Nut
24124
24125 \lang latin
24126 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
24127  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
24128  voluptua.
24129  At vero eos et accusam et justo duo dolores et ea rebum.
24130  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
24131  sit amet.
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  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
24136  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
24137  voluptua.
24138  At vero eos et accusam et justo duo dolores et ea rebum.
24139  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
24140  sit amet.
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 \end_layout
24145
24146 \begin_layout Standard
24147 \begin_inset VSpace bigskip
24148 \end_inset
24149
24150
24151 \end_layout
24152
24153 \begin_layout Standard
24154 ただし、
24155 \family sans
24156 CDlabel
24157 \family default
24158 形は例外です。これは、CD/DVDの寸法に収まらなくてはならないので、伸縮しません。したがって、形に収まる文章量は限られています。
24159 \begin_inset Newline newline
24160 \end_inset
24161
24162
24163 \family sans
24164 drop
24165 \family default
24166 形と
24167 \family sans
24168 circle
24169 \family default
24170 形は脆弱で、文章量によっては寸法計算が失敗する可能性があります。この場合、
24171 \begin_inset Quotes eld
24172 \end_inset
24173
24174 Arithmetic overflow
24175 \begin_inset Quotes erd
24176 \end_inset
24177
24178 という\SpecialChar LaTeX
24179 エラーが発生します。この時は、文章の一部を追加したり削除したりするか、どれもうまくいかなければ別の形を使用してください。
24180 \end_layout
24181
24182 \begin_layout Standard
24183 \begin_inset VSpace bigskip
24184 \end_inset
24185
24186
24187 \end_layout
24188
24189 \begin_layout Standard
24190 先端のある形では、先端部の文字列で、\SpecialChar LaTeX
24191 のハイフネーションルーチンが失敗することがあります。したがって、この部分の文章には、ハイフネーション位置
24192 \family sans
24193 (
24194 \begin_inset Info
24195 type  "shortcut"
24196 arg   "specialchar-insert hyphenation"
24197 \end_inset
24198
24199
24200 \family default
24201 )を指定することが往々にして必要になります。
24202 \end_layout
24203
24204 \begin_layout Standard
24205 \begin_inset VSpace bigskip
24206 \end_inset
24207
24208
24209 \end_layout
24210
24211 \begin_layout Standard
24212 Shapepar段落は、常に中央揃えか、左の縁が左ページ余白に接するように配置されます。したがって、これらの段落を揃えるのに段落ダイアログを使用することはできま
24213 せん。解決方法としては、段落をミニページかparboxの中において、このボックスを揃えることです。ここでの問題は、ボックスの正しい幅を見出すことです。もしボック
24214 スの幅が広すぎれば、ボックスを中央揃えにしたとしても、ボックスの左側が付いてしまうので中央揃えになりません。そこで、正しい幅を見出すまでは、若干試行錯誤しなくて
24215 はならないかもしれません。以下は、二つのハート形の段落です。一つ目は揃え指定がなく、二つ目は右揃えにしてあります。
24216 \end_layout
24217
24218 \begin_layout Standard
24219 \begin_inset Newpage newpage
24220 \end_inset
24221
24222
24223 \end_layout
24224
24225 \begin_layout Heart
24226 \noindent
24227
24228 \lang latin
24229 Lo\SpecialChar softhyphen
24230 rem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
24231  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
24232  voluptua.
24233  At vero eos et accusam et justo duo dolores et ea rebum.
24234  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
24235  sit amet.
24236 \end_layout
24237
24238 \begin_layout Standard
24239 \begin_inset VSpace bigskip
24240 \end_inset
24241
24242
24243 \end_layout
24244
24245 \begin_layout Standard
24246 \noindent
24247 \align right
24248 \begin_inset Box Frameless
24249 position "t"
24250 hor_pos "c"
24251 has_inner_box 1
24252 inner_pos "t"
24253 use_parbox 1
24254 use_makebox 0
24255 width "42col%"
24256 special "none"
24257 height "1in"
24258 height_special "totalheight"
24259 thickness "0.4pt"
24260 separation "3pt"
24261 shadowsize "4pt"
24262 framecolor "black"
24263 backgroundcolor "none"
24264 status open
24265
24266 \begin_layout Heart
24267 \noindent
24268
24269 \lang latin
24270 Lo\SpecialChar softhyphen
24271 rem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
24272  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
24273  voluptua.
24274  At vero eos et accusam et justo duo dolores et ea rebum.
24275  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
24276  sit amet.
24277 \end_layout
24278
24279 \end_inset
24280
24281
24282 \end_layout
24283
24284 \begin_layout Subsection
24285 任意の形
24286 \end_layout
24287
24288 \begin_layout Standard
24289 ユーザーは、どのような形であれ、定義することができます。これを手動で行うのは、全ての座標を指定しなくてはならないので、かなりの労力を必要とします。しかし、以下の
24290 ように、コンピューターに座標を計算させる方法もあります。
24291 \end_layout
24292
24293 \begin_layout Enumerate
24294 プログラム
24295 \begin_inset CommandInset href
24296 LatexCommand href
24297 name "Jpgfdraw"
24298 target "http://www.ctan.org/tex-archive/graphics/jpgfdraw"
24299
24300 \end_inset
24301
24302 を導入します。
24303 \end_layout
24304
24305 \begin_layout Enumerate
24306
24307 \family sans
24308 Jpgfdraw
24309 \family default
24310 内で、メニュー
24311 \family sans
24312 Te
24313 \begin_inset ERT
24314 status collapsed
24315
24316 \begin_layout Plain Layout
24317
24318 {}
24319 \end_layout
24320
24321 \end_inset
24322
24323 X/LaT
24324 \begin_inset ERT
24325 status collapsed
24326
24327 \begin_layout Plain Layout
24328
24329 {}
24330 \end_layout
24331
24332 \end_inset
24333
24334 eX\SpecialChar menuseparator
24335 Settings\SpecialChar menuseparator
24336 Set Normal Size
24337 \family default
24338 で文書中で使用しているフォント寸を選択します。例えば、この文書は12
24339 \begin_inset space \thinspace{}
24340 \end_inset
24341
24342 pt寸を使用しています。
24343 \end_layout
24344
24345 \begin_layout Enumerate
24346 形を描きます。
24347 \end_layout
24348
24349 \begin_layout Enumerate
24350 メニュー
24351 \family sans
24352 Te
24353 \begin_inset ERT
24354 status collapsed
24355
24356 \begin_layout Plain Layout
24357
24358 {}
24359 \end_layout
24360
24361 \end_inset
24362
24363 X/LaT
24364 \begin_inset ERT
24365 status collapsed
24366
24367 \begin_layout Plain Layout
24368
24369 {}
24370 \end_layout
24371
24372 \end_inset
24373
24374 eX\SpecialChar menuseparator
24375 Shapepar
24376 \family default
24377 を使用して、形の座標をエクスポートします。現れるダイアログで、形の外枠を座標に使うか、パス自体を使うかを指定します。
24378 \begin_inset Foot
24379 status collapsed
24380
24381 \begin_layout Plain Layout
24382 詳細については、
24383 \begin_inset CommandInset href
24384 LatexCommand href
24385 target "http://www.dickimaw-books.com/apps/jpgfdraw/manual/shapepar.html"
24386
24387 \end_inset
24388
24389 を参照してください。
24390 \end_layout
24391
24392 \end_inset
24393
24394
24395 \end_layout
24396
24397 \begin_layout Standard
24398 座標は\SpecialChar TeX
24399 ファイルに書き込まれます。これを\SpecialChar LyX
24400 文書で使用するには、
24401 \end_layout
24402
24403 \begin_layout Enumerate
24404 段落の最初の文字の前(もしくは空の段落内)にカーソルを置きます。
24405 \end_layout
24406
24407 \begin_layout Enumerate
24408 \SpecialChar LyX
24409
24410 \family sans
24411 挿入\SpecialChar menuseparator
24412 ファイル\SpecialChar menuseparator
24413 子文書
24414 \family default
24415 メニューでファイルを選択し、
24416 \family sans
24417 取り込みの型
24418 \family default
24419 として
24420 \family sans
24421 Input
24422 \family default
24423 を選択してください。
24424 \end_layout
24425
24426 \begin_layout Standard
24427 \begin_inset VSpace defskip
24428 \end_inset
24429
24430
24431 \end_layout
24432
24433 \begin_layout Standard
24434 \begin_inset Note Greyedout
24435 status open
24436
24437 \begin_layout Plain Layout
24438
24439 \series bold
24440 【註】
24441 \series default
24442 変更した形は、現在の段落にのみ適用されます。次の段落では全て通常に戻ります。したがって、段落定義ファイルは、形を変えたい段落全てで読み込まれなくてはなりません。
24443 \end_layout
24444
24445 \end_inset
24446
24447
24448 \end_layout
24449
24450 \begin_layout Standard
24451 \begin_inset VSpace bigskip
24452 \end_inset
24453
24454
24455 \end_layout
24456
24457 \begin_layout Standard
24458 以下の用例をご覧ください。
24459 \end_layout
24460
24461 \begin_layout Standard
24462 \begin_inset VSpace bigskip
24463 \end_inset
24464
24465
24466 \end_layout
24467
24468 \begin_layout Standard
24469 \begin_inset CommandInset include
24470 LatexCommand input
24471 filename "../SpecialParagraphShape.tex"
24472
24473 \end_inset
24474
24475
24476 \lang latin
24477 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
24478  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
24479  voluptua.
24480  At vero eos et accusam et justo duo dolores et ea rebum.
24481  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
24482  sit amet.
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 \end_layout
24487
24488 \begin_layout Standard
24489 \begin_inset VSpace bigskip
24490 \end_inset
24491
24492
24493 \end_layout
24494
24495 \begin_layout Standard
24496
24497 \series bold
24498 【ヒント】
24499 \family sans
24500 \series default
24501 Jpgfdraw
24502 \family default
24503 で複雑な形を描く場合、まず形を好きなプログラムで描き、出来上がった画像を
24504 \family sans
24505 Jpgfdraw
24506 \family default
24507 に読み込む方法があります。この場合、画像の外枠に沿って、直線またはスプラインを描くだけですみます。
24508 \end_layout
24509
24510 \begin_layout Standard
24511 \begin_inset VSpace bigskip
24512 \end_inset
24513
24514
24515 \end_layout
24516
24517 \begin_layout Standard
24518
24519 \family sans
24520 任意の段落形
24521 \family default
24522 モジュールは、
24523 \family sans
24524 shapepar
24525 \family default
24526
24527 \family sans
24528 Shapepar
24529 \family default
24530 の二つのコマンドも提供していて、任意の形を座標毎に定義するのに使用することができます。
24531 \begin_inset Foot
24532 status collapsed
24533
24534 \begin_layout Plain Layout
24535 これらのコマンドは、上述の全ての形で内部的に使用されています。
24536 \end_layout
24537
24538 \end_inset
24539
24540 これらのスタイルがどのように使われていて、どのような設定ができるのかについての詳しい情報は、
24541 \series bold
24542 shapepar
24543 \series default
24544 パッケージの取扱説明書
24545 \begin_inset CommandInset citation
24546 LatexCommand cite
24547 key "shapepar"
24548
24549 \end_inset
24550
24551 をご覧ください。
24552 \end_layout
24553
24554 \begin_layout Bibliography
24555 \begin_inset CommandInset bibitem
24556 LatexCommand bibitem
24557 key "multicol"
24558
24559 \end_inset
24560
24561 \SpecialChar LaTeX
24562 パッケージ
24563 \begin_inset CommandInset href
24564 LatexCommand href
24565 name "multicol"
24566 target "http://mirror.ctan.org/macros/latex/required/tools/multicol.pdf"
24567
24568 \end_inset
24569
24570 の取扱説明書
24571 \end_layout
24572
24573 \begin_layout Bibliography
24574 \begin_inset CommandInset bibitem
24575 LatexCommand bibitem
24576 key "shapepar"
24577
24578 \end_inset
24579
24580 \SpecialChar LaTeX
24581 パッケージ
24582 \begin_inset CommandInset href
24583 LatexCommand href
24584 name "shapepar"
24585 target "http://mirrors.ctan.org/macros/latex/contrib/shapepar/shapepar.pdf"
24586
24587 \end_inset
24588
24589 の取扱説明書
24590 \end_layout
24591
24592 \end_body
24593 \end_document