]> git.lyx.org Git - lyx.git/blob - lib/doc/ja/Additional.lyx
Copy documentation of new features of Additional.lyx in de, es, fr and ja document...
[lyx.git] / lib / doc / ja / Additional.lyx
1 #LyX 2.3 created this file. For more info see http://www.lyx.org/
2 \lyxformat 544
3 \begin_document
4 \begin_header
5 \save_transient_properties true
6 \origin /systemlyxdir/doc/ja/
7 \textclass scrbook
8 \begin_preamble
9 % DO NOT ALTER THIS PREAMBLE!!!
10 %
11 % This preamble is designed to ensure that the manual prints
12 % out as advertised. If you mess with this preamble,
13 % parts of the manual may not print out as expected.  If you
14 % have problems LaTeXing this file, please contact 
15 % the documentation team
16 % email: lyx-docs@lists.lyx.org
17
18 \IfFileExists{pxjahyper.sty}
19 {\usepackage{pxjahyper}}
20
21 % the pages of the TOC are numbered roman
22 % and a PDF-bookmark for the TOC is added
23 \pagenumbering{roman}
24 \let\myTOC\tableofcontents
25 \renewcommand{\tableofcontents}{%
26  \pdfbookmark[1]{\contentsname}{}
27  \myTOC
28  \cleardoublepage
29  \pagenumbering{arabic}}
30
31 % extra space for tables
32 \newcommand{\extratablespace}[1]{\noalign{\vskip#1}}
33
34 \usepackage{t1enc}
35 \end_preamble
36 \options bibliography=totoc,index=totoc,BCOR7.5mm,titlepage,captions=tableheading
37 \use_default_options false
38 \begin_modules
39 logicalmkup
40 theorems-ams
41 theorems-ams-extended
42 multicol
43 shapepar
44 \end_modules
45 \maintain_unincluded_children false
46 \begin_local_layout
47 Format 35
48 InsetLayout             Flex:MenuItem
49 LyxType         charstyle
50 LabelString           menu
51 LatexType             command
52 LatexName             menuitem
53 Font
54 Family              Sans
55 EndFont
56 Preamble
57 \newcommand*{\menuitem}[1]{{\sffamily #1}}
58 EndPreamble
59 End
60 InsetLayout             Flex:Ruby
61 LyxType         charstyle
62 LatexType               command
63 LatexName               ruby
64 BgColor         none
65 LabelString             "ルビ"
66 Decoration              Conglomerate
67 Argument post:1
68 LabelString     "ルビ文"
69 MenuString      "ルビ文(S)|S"
70 Decoration      Conglomerate
71 Font
72 Size            tiny
73 EndFont
74 LabelFont
75 Size            tiny
76 EndFont
77 Mandatory       1
78 EndArgument
79 Preamble
80 \IfFileExists{okumacro.sty}
81 {\usepackage{okumacro}}
82 {\newcommand{\ruby}[2]{#2}}
83 EndPreamble
84 End
85 \end_local_layout
86 \language japanese
87 \language_package default
88 \inputencoding auto
89 \fontencoding global
90 \font_roman "default" "default"
91 \font_sans "default" "default"
92 \font_typewriter "default" "default"
93 \font_math "auto" "auto"
94 \font_default_family default
95 \use_non_tex_fonts false
96 \font_sc false
97 \font_osf false
98 \font_sf_scale 100 100
99 \font_tt_scale 100 100
100 \use_microtype false
101 \use_dash_ligatures false
102 \graphics default
103 \default_output_format pdf3
104 \output_sync 0
105 \bibtex_command default
106 \index_command default
107 \paperfontsize 12
108 \spacing single
109 \use_hyperref true
110 \pdf_title "LyX's Additional Features manual"
111 \pdf_author "LyX Team"
112 \pdf_subject "LyX's additional features documentation"
113 \pdf_keywords "LyX, Documentation, Additional"
114 \pdf_bookmarks false
115 \pdf_bookmarksnumbered true
116 \pdf_bookmarksopen false
117 \pdf_bookmarksopenlevel 1
118 \pdf_breaklinks false
119 \pdf_pdfborder false
120 \pdf_colorlinks true
121 \pdf_backref false
122 \pdf_pdfusetitle false
123 \pdf_quoted_options "pdfencoding=pdfdoc, linkcolor=black, citecolor=black, urlcolor=blue, filecolor=blue, pdfpagelayout=OneColumn, pdfnewwindow=true, pdfstartview=XYZ, plainpages=false"
124 \papersize default
125 \use_geometry false
126 \use_package amsmath 1
127 \use_package amssymb 1
128 \use_package cancel 0
129 \use_package esint 0
130 \use_package mathdots 1
131 \use_package mathtools 0
132 \use_package mhchem 1
133 \use_package stackrel 0
134 \use_package stmaryrd 0
135 \use_package undertilde 0
136 \cite_engine basic
137 \cite_engine_type default
138 \biblio_style plain
139 \use_bibtopic false
140 \use_indices false
141 \paperorientation portrait
142 \suppress_date false
143 \justification true
144 \use_refstyle 0
145 \use_minted 0
146 \notefontcolor #0000ff
147 \index 索引
148 \shortcut idx
149 \color #008000
150 \end_index
151 \secnumdepth 3
152 \tocdepth 3
153 \paragraph_separation indent
154 \paragraph_indentation default
155 \is_math_indent 1
156 \math_indentation default
157 \math_numbering_side default
158 \quotes_style english
159 \dynamic_quotes 0
160 \papercolumns 1
161 \papersides 2
162 \paperpagestyle headings
163 \tracking_changes true
164 \output_changes false
165 \html_math_output 0
166 \html_css_as_file 0
167 \html_be_strict true
168 \author 34634807 "Jean-Pierre"
169 \end_header
170
171 \begin_body
172
173 \begin_layout Title
174 \SpecialChar LyX
175 の高度な機能
176 \begin_inset Newline newline
177 \end_inset
178
179
180 \size large
181 第2.
182 \change_deleted 34634807 1499890737
183 2
184 \change_inserted 34634807 1499890737
185 3
186 \change_unchanged
187 .x版
188 \end_layout
189
190 \begin_layout Author
191 \SpecialChar LyX
192 プロジェクトチーム
193 \begin_inset Foot
194 status collapsed
195
196 \begin_layout Plain Layout
197 このファイルは主にRichard Heckによって管理されています.コメントをされたい場合や誤りを発見された場合には,\SpecialChar LyX
198 文書化メーリングリスト
199 \begin_inset Flex Code
200 status open
201
202 \begin_layout Plain Layout
203 \noindent
204
205 \family typewriter
206 <lyx-docs@lists.lyx.org>
207 \end_layout
208
209 \end_inset
210
211 に英文にてお知らせ下さい.この文書の翻訳は,当初人見光太郎氏が行った貢献に基づいています.
212 \end_layout
213
214 \end_inset
215
216  
217 \end_layout
218
219 \begin_layout Standard
220 \begin_inset CommandInset toc
221 LatexCommand tableofcontents
222
223 \end_inset
224
225
226 \end_layout
227
228 \begin_layout Chapter
229 はじめに
230 \end_layout
231
232 \begin_layout Standard
233 いまお読みの取扱説明書『
234 \emph on
235 \SpecialChar LyX
236 拡張機能篇
237 \emph default
238 』は,基本的には『
239 \emph on
240 ユーザーの手引き
241 \emph default
242 』の第二部です.これらの文書を別部とした理由は,単純に『
243 \emph on
244 ユーザーの手引き
245 \emph default
246 』がすでに大部となっていることと,『
247 \emph on
248 ユーザーの手引き
249 \emph default
250 』が,ほとんどの文書を作成する上で必要な基本機能をすべて説明してしまっているためです.一方で,\SpecialChar LyX
251 プロジェクトチームは,\SpecialChar LyX
252 を各設定ファイルと外部パッケージによって拡張
253 可能な状態にしておくことを長期的な目標にしています.つまり,ある\SpecialChar LaTeX
254 パッケージをサポートしたい場合に,\SpecialChar LyX
255 自身に変更を加えることなく,当該パッケージ用のレイアウトファイ
256 ル(ないしモジュール)を作成すればいいようにしているのです.すでにこのような形で,いくつもの新機能がユーザーによって追加されています.この取扱説明書は,そのよう
257 な形での貢献を文書化する冊子として位置付けられています.
258 \end_layout
259
260 \begin_layout Standard
261 この取扱説明書では,ファックスのサポート・バージョン管理・SGMLサポートのような,正しく機能するためには追加的なソフトウェアを必要とする特殊機能についても説明
262 しています.さらに,\SpecialChar LaTeX
263 の強力な機能を直接使って文書を美しく仕上げるための,\SpecialChar LaTeX
264 ツールやテクニックを述べた章も収録しています.つきつめれば,\SpecialChar LyX
265 とはあくまでWYSIWYMた
266 ることを企図しているため,\SpecialChar LaTeX
267 の全機能の一部へのインタフェースは用意するものの,すべてを用意することはないでしょう.
268 \end_layout
269
270 \begin_layout Standard
271 もし,まだ『
272 \emph on
273 はじめの一歩
274 \emph default
275 』をお読みでなかったら,この取扱説明書から読みはじめるのは誤りです.『
276 \emph on
277 はじめの一歩
278 \emph default
279 』には,全取扱説明書に共通の表記法と書式が説明されていますので,まずそれからお読みください.さらに,この取扱説明書を読もうとする前に,『
280 \emph on
281 ユーザーの手引き
282 \emph default
283 』をよくお読みになって,\SpecialChar LyX
284 の全基本機能を習得してください.
285 \end_layout
286
287 \begin_layout Standard
288 この取扱説明書の取り上げられている話題は,\SpecialChar LyX
289 が\SpecialChar LaTeX
290 にどう関わっているかに強く関係していますので,まず次章では,\SpecialChar LyX
291 の内部動作がどうなっているか,LyXに希望する\SpecialChar LaTeX
292 コードを正
293 確に生成させるにはどうしたらいいかを収録しています.本章は,あきらかに熟練\SpecialChar LyX
294 ユーザー向けの章となっています.
295 \end_layout
296
297 \begin_layout Chapter
298 \SpecialChar LyX
299 と\SpecialChar LaTeX
300
301 \end_layout
302
303 \begin_layout Section
304 \SpecialChar LyX
305 は\SpecialChar LaTeX
306 をどう使っているか
307 \end_layout
308
309 \begin_layout Standard
310 本章
311 \family roman
312 \series medium
313 \shape up
314 \size normal
315 \emph off
316 \bar no
317 \noun off
318 \color none
319 は,\SpecialChar TeX
320 熟練者と\SpecialChar LaTeX
321 に興味のある方向けの章です.ここでは,\SpecialChar LyX
322 と\SpecialChar LaTeX
323 が,印刷可能な出力を生成するのに,どのように協働しているのかを説明します.全取扱説明書中で本章だけは,\SpecialChar LaTeX
324 のこと
325 を多少なりともご存知であることを前提とします.
326 \end_layout
327
328 \begin_layout Standard
329
330 \family roman
331 \series medium
332 \shape up
333 \size normal
334 \emph off
335 \bar no
336 \noun off
337 \color none
338 かつて\SpecialChar LyX
339 は,「\SpecialChar LaTeX
340
341 \family default
342 \series default
343 \shape default
344 \size default
345 \emph default
346 \bar default
347 \noun default
348 \color inherit
349 WYSIWYM
350 \family roman
351 \series medium
352 \shape up
353 \size normal
354 \emph off
355 \bar no
356 \noun off
357 \color none
358 なフロントエンド」と呼ばれていましたが,いまではこれは正しくありません.\SpecialChar LaTeX
359 のフロントエンドは,いくつも出回っています
360 \begin_inset Foot
361 status collapsed
362
363 \begin_layout Plain Layout
364
365 \family roman
366 \series medium
367 \shape up
368 \size normal
369 \emph off
370 \bar no
371 \noun off
372 \color none
373 有名なものとしては,Linux上の\SpecialChar TeX
374 makerとkile,OSX上の\SpecialChar TeX
375 shopなどがあります.もちろんviとemacsの\SpecialChar LaTeX
376 モードも含まれます.
377 \end_layout
378
379 \end_inset
380
381 .これらは,基本的に\SpecialChar LaTeX
382 を走らせる機能を有し,編集中のファイルのエラーを表示する機能を持ったテキストエディタです.\SpecialChar LyX
383 も,エディタであり,\SpecialChar LaTeX
384 を走らせる機能を有し,ファイル
385 中のエラーを指摘しますが,それ以上にもっともっと多くのことをしてくれます.
386 \family default
387 \series default
388 \shape default
389 \size default
390 \emph default
391 \bar default
392 \noun default
393 \color inherit
394 ひとつには,
395 \family roman
396 \series medium
397 \shape up
398 \size normal
399 \emph off
400 \bar no
401 \noun off
402 \color none
403 \SpecialChar LyX
404 を効果的に使うのに,\SpecialChar LaTeX
405 の知識が必要とされないことが挙げられます.また\SpecialChar LyX
406 は,それ自身,いくつかの拡張を\SpecialChar LaTeX
407 に加えています.時間のあるときにでも,いちど以下の手順を試してみ
408 てください.まず
409 \family sans
410 \series default
411 \shape default
412 \size default
413 \emph default
414 \bar default
415 \noun default
416 \color inherit
417
418 \begin_inset Flex MenuItem
419 status collapsed
420
421 \begin_layout Plain Layout
422
423 \family sans
424 ファイル
425 \end_layout
426
427 \end_inset
428
429
430 \family roman
431 \series medium
432 \shape up
433 \size normal
434 \emph off
435 \bar no
436 \noun off
437 \color none
438 メニューから
439 \family sans
440 \series default
441 \shape default
442 \size default
443 \emph default
444 \bar default
445 \noun default
446 \color inherit
447
448 \begin_inset Flex MenuItem
449 status collapsed
450
451 \begin_layout Plain Layout
452
453 \family sans
454 エクスポート\SpecialChar menuseparator
455 LaTeX
456 \end_layout
457
458 \end_inset
459
460
461 \family roman
462 \series medium
463 \shape up
464 \size normal
465 \emph off
466 \bar no
467 \noun off
468 \color none
469 (あるいは
470 \family sans
471 \series default
472 \shape default
473 \size default
474 \emph default
475 \bar default
476 \noun default
477 \color inherit
478
479 \begin_inset Flex MenuItem
480 status collapsed
481
482 \begin_layout Plain Layout
483
484 \family sans
485 表示\SpecialChar menuseparator
486 ソースを閲覧
487 \end_layout
488
489 \end_inset
490
491
492 \family roman
493 \series medium
494 \shape up
495 \size normal
496 \emph off
497 \bar no
498 \noun off
499 \color none
500 )を選択し,そこから出力される
501 \begin_inset Flex Code
502 status collapsed
503
504 \begin_layout Plain Layout
505
506 \family typewriter
507 .tex
508 \end_layout
509
510 \end_inset
511
512 ファイルのプリアンブルをご覧ください.\SpecialChar LyX
513 によって特別に定義された新しいマクロが複数定義されていることに気づかれるはずです
514 \family default
515 \series default
516 \shape default
517 \size default
518 \emph default
519 \bar default
520 \noun default
521 \color inherit
522 .これらのマクロは,文書中で使用する機能に応じて,自動的に定義されます.
523 \end_layout
524
525 \begin_layout Standard
526
527 \family roman
528 \series medium
529 \shape up
530 \size normal
531 \emph off
532 \bar no
533 \noun off
534 \color none
535 自動的に\SpecialChar LaTeX
536 を実行するコマンドが,以下のようにいくつかあります.
537 \end_layout
538
539 \begin_layout Itemize
540 \begin_inset Flex MenuItem
541 status collapsed
542
543 \begin_layout Plain Layout
544 表示\SpecialChar menuseparator
545 書式
546 \end_layout
547
548 \end_inset
549
550
551 \end_layout
552
553 \begin_layout Itemize
554
555 \family sans
556 \begin_inset Flex MenuItem
557 status collapsed
558
559 \begin_layout Plain Layout
560
561 \bar no
562 表示\SpecialChar menuseparator
563 更新\SpecialChar menuseparator
564
565 \bar default
566 書式
567 \end_layout
568
569 \end_inset
570
571
572 \end_layout
573
574 \begin_layout Standard
575
576 \family roman
577 \series medium
578 \shape up
579 \size normal
580 \emph off
581 \bar no
582 \noun off
583 \color none
584 これらは,最後に\SpecialChar LaTeX
585 を実行してからファイルに変更が加えられた場合のみ,\SpecialChar LaTeX
586 を実行します.
587 \end_layout
588
589 \begin_layout Standard
590
591 \family roman
592 \series medium
593 \shape up
594 \size normal
595 \emph off
596 \bar no
597 \noun off
598 \color none
599 \SpecialChar LyX
600 が編集中のファイルを\SpecialChar LaTeX
601 にかけるとき,\SpecialChar LyX
602 は以下の段階をふみます.
603 \end_layout
604
605 \begin_layout Enumerate
606
607 \family roman
608 \series medium
609 \shape up
610 \size normal
611 \emph off
612 \bar no
613 \noun off
614 \color none
615 文書を\SpecialChar LaTeX
616 に変換し,ファイルの拡張子を
617 \begin_inset Flex Code
618 status collapsed
619
620 \begin_layout Plain Layout
621
622 \family roman
623 \series medium
624 \shape up
625 \size normal
626 \emph off
627 \bar no
628 \noun off
629 \color none
630 .lyx
631 \end_layout
632
633 \end_inset
634
635 から
636 \begin_inset Flex Code
637 status collapsed
638
639 \begin_layout Plain Layout
640
641 \family roman
642 \series medium
643 \shape up
644 \size normal
645 \emph off
646 \bar no
647 \noun off
648 \color none
649 .tex
650 \end_layout
651
652 \end_inset
653
654 に変えて保存.
655 \end_layout
656
657 \begin_layout Enumerate
658
659 \family roman
660 \series medium
661 \shape up
662 \size normal
663 \emph off
664 \bar no
665 \noun off
666 \color none
667 この
668 \begin_inset Flex Code
669 status collapsed
670
671 \begin_layout Plain Layout
672
673 \family roman
674 \series medium
675 \shape up
676 \size normal
677 \emph off
678 \bar no
679 \noun off
680 \color none
681 .tex
682 \end_layout
683
684 \end_inset
685
686 ファイルに対して(必要に応じて複数回)\SpecialChar LaTeX
687 を実行し,\SpecialChar LaTeX
688 ファイルをコンパイルするのに必要な他のコマンド(
689 \begin_inset Flex Code
690 status collapsed
691
692 \begin_layout Plain Layout
693
694 \family roman
695 \series medium
696 \shape up
697 \size normal
698 \emph off
699 \bar no
700 \noun off
701 \color none
702 bibtex
703 \end_layout
704
705 \end_inset
706
707
708 \begin_inset Flex Code
709 status collapsed
710
711 \begin_layout Plain Layout
712
713 \family roman
714 \series medium
715 \shape up
716 \size normal
717 \emph off
718 \bar no
719 \noun off
720 \color none
721 makeindex
722 \end_layout
723
724 \end_inset
725
726 など)を実行..
727 \end_layout
728
729 \begin_layout Enumerate
730
731 \family roman
732 \series medium
733 \shape up
734 \size normal
735 \emph off
736 \bar no
737 \noun off
738 \color none
739 もしエラーがあれば,エラーログを表示.
740 \end_layout
741
742 \begin_layout Standard
743
744 \family roman
745 \series medium
746 \shape up
747 \size normal
748 \emph off
749 \bar no
750 \noun off
751 \color none
752 \SpecialChar LaTeX
753
754 \family sans
755 \series default
756 \shape default
757 \size default
758 \emph default
759 \bar default
760 \noun default
761 \color inherit
762
763 \begin_inset Flex MenuItem
764 status collapsed
765
766 \begin_layout Plain Layout
767
768 \family sans
769 表示\SpecialChar menuseparator
770 DVI
771 \end_layout
772
773 \end_inset
774
775
776 \family roman
777 \series medium
778 \shape up
779 \size normal
780 \emph off
781 \bar no
782 \noun off
783 \color none
784 を使用して実行した場合には,\SpecialChar LyX
785 はこの後,DVIビューアを実行してDVIファイルを表示します.
786 \begin_inset Flex MenuItem
787 status collapsed
788
789 \begin_layout Plain Layout
790
791 \family roman
792 \series medium
793 \shape up
794 \size normal
795 \emph off
796 \bar no
797 \noun off
798 \color none
799 表示\SpecialChar menuseparator
800 PostScript
801 \end_layout
802
803 \end_inset
804
805 を使用した場合には,\SpecialChar LyX
806 はさらに以下の段階をふみます.
807 \end_layout
808
809 \begin_layout Itemize
810
811 \family roman
812 \series medium
813 \shape up
814 \size normal
815 \emph off
816 \bar no
817 \noun off
818 \color none
819 \begin_inset Flex Code
820 status collapsed
821
822 \begin_layout Plain Layout
823
824 \family typewriter
825 dvips
826 \end_layout
827
828 \end_inset
829
830 を実行して,
831 \family default
832 \series default
833 \shape default
834 \size default
835 \emph default
836 \bar default
837 \noun default
838 \color inherit
839 DVI
840 \family roman
841 \series medium
842 \shape up
843 \size normal
844 \emph off
845 \bar no
846 \noun off
847 \color none
848 ファイルをPostScript
849 \family default
850 \series default
851 \shape default
852 \size default
853 \emph default
854 \bar default
855 \noun default
856 \color inherit
857 に変換.
858 \end_layout
859
860 \begin_layout Itemize
861
862 \family roman
863 \series medium
864 \shape up
865 \size normal
866 \emph off
867 \bar no
868 \noun off
869 \color none
870 \begin_inset Flex Code
871 status collapsed
872
873 \begin_layout Plain Layout
874
875 \family typewriter
876 ghostview
877 \end_layout
878
879 \end_inset
880
881 などのPostScriptビューアを実行して,PostScript
882 \family default
883 \series default
884 \shape default
885 \size default
886 \emph default
887 \bar default
888 \noun default
889 \color inherit
890 ファイルを表示.
891 \end_layout
892
893 \begin_layout Standard
894 \SpecialChar LyX
895 は,他の書式を表示したりエクスポートしたりする際にも,同様のことを行います.
896 \end_layout
897
898 \begin_layout Section
899 \SpecialChar LaTeX
900 ファイルを\SpecialChar LyX
901 に読み込む
902 \end_layout
903
904 \begin_layout Standard
905 \SpecialChar LyX
906
907 \family sans
908
909 \begin_inset Flex MenuItem
910 status collapsed
911
912 \begin_layout Plain Layout
913
914 \family sans
915 ファイル\SpecialChar menuseparator
916 インポート\SpecialChar menuseparator
917 LaTeX
918 \end_layout
919
920 \end_inset
921
922
923 \family roman
924 \series medium
925 \shape up
926 \size normal
927 \emph off
928 \bar no
929 \noun off
930 \color none
931 コマンドを使用すると,\SpecialChar LaTeX
932 ファイルを
933 \family default
934 \series default
935 \shape default
936 \size default
937 \emph default
938 \bar default
939 \noun default
940  
941 \family roman
942 \series medium
943 \shape up
944 \size normal
945 \emph off
946 \bar no
947 \noun off
948 \SpecialChar LyX
949 にインポートすることができます.このコマンドは,
950 \family typewriter
951 \series default
952 \shape default
953 \size default
954 \emph default
955 \bar default
956 \noun default
957 \color inherit
958
959 \begin_inset Flex Code
960 status collapsed
961
962 \begin_layout Plain Layout
963
964 \family typewriter
965 tex2lyx
966 \end_layout
967
968 \end_inset
969
970
971 \family roman
972 \series medium
973 \shape up
974 \size normal
975 \emph off
976 \bar no
977 \noun off
978 \color none
979 というプログラムを呼び出し,
980 \family typewriter
981 \series default
982 \shape default
983 \size default
984 \emph default
985 \bar default
986 \noun default
987 \color inherit
988
989 \begin_inset Flex Code
990 status collapsed
991
992 \begin_layout Plain Layout
993
994 \family typewriter
995 foo.tex
996 \end_layout
997
998 \end_inset
999
1000
1001 \family default
1002 などというファイルから
1003 \begin_inset Flex Code
1004 status collapsed
1005
1006 \begin_layout Plain Layout
1007
1008 \family typewriter
1009 foo.lyx
1010 \end_layout
1011
1012 \end_inset
1013
1014 を生成します.\SpecialChar LyX
1015 は,この変換したファイルを開きます
1016 \begin_inset Foot
1017 status collapsed
1018
1019 \begin_layout Plain Layout
1020 \begin_inset Flex Code
1021 status collapsed
1022
1023 \begin_layout Plain Layout
1024 tex2lyx
1025 \end_layout
1026
1027 \end_inset
1028
1029 は,もちろんコマンドラインから実行することもできます.
1030 \end_layout
1031
1032 \end_inset
1033
1034
1035 \end_layout
1036
1037 \begin_layout Standard
1038
1039 \family typewriter
1040 \begin_inset Flex Code
1041 status collapsed
1042
1043 \begin_layout Plain Layout
1044
1045 \family typewriter
1046 tex2lyx
1047 \end_layout
1048
1049 \end_inset
1050
1051
1052 \family roman
1053 \series medium
1054 \shape up
1055 \size normal
1056 \emph off
1057 \bar no
1058 \noun off
1059 \color none
1060 は,文法的に正しい\SpecialChar LaTeX
1061 ファイルのほとんどを変換することができますが,すべてを変換できるわけではありません.
1062 \family typewriter
1063 \series default
1064 \shape default
1065 \size default
1066 \emph default
1067 \bar default
1068 \noun default
1069 \color inherit
1070
1071 \begin_inset Flex Code
1072 status collapsed
1073
1074 \begin_layout Plain Layout
1075
1076 \family typewriter
1077 tex2lyx
1078 \end_layout
1079
1080 \end_inset
1081
1082
1083 \family roman
1084 \series medium
1085 \shape up
1086 \size normal
1087 \emph off
1088 \bar no
1089 \noun off
1090 \color none
1091 は,理解不能な部分は\SpecialChar TeX
1092 コードボックスの形で残しますので,ファイルを
1093 \family typewriter
1094 \series default
1095 \shape default
1096 \size default
1097 \emph default
1098 \bar default
1099 \noun default
1100 \color inherit
1101
1102 \begin_inset Flex Code
1103 status collapsed
1104
1105 \begin_layout Plain Layout
1106
1107 \family typewriter
1108 tex2lyx
1109 \end_layout
1110
1111 \end_inset
1112
1113
1114 \family roman
1115 \series medium
1116 \shape up
1117 \size normal
1118 \emph off
1119 \bar no
1120 \noun off
1121 \color none
1122 で変換したのち,\SpecialChar TeX
1123 コードボックスを探して,手動で正しく編集してください.
1124 \end_layout
1125
1126 \begin_layout Standard
1127
1128 \family roman
1129 \series medium
1130 \shape up
1131 \size normal
1132 \emph off
1133 \bar no
1134 \noun off
1135 \color none
1136 \SpecialChar TeX
1137 コードボックスがなにかご存じなければ,次節をお読みください.
1138 \end_layout
1139
1140 \begin_layout Section
1141 \SpecialChar LaTeX
1142 コードを挿入する
1143 \begin_inset CommandInset label
1144 LatexCommand label
1145 name "sec:LaTeXコードを挿入する"
1146
1147 \end_inset
1148
1149
1150 \end_layout
1151
1152 \begin_layout Standard
1153
1154 \family roman
1155 \series medium
1156 \shape up
1157 \size normal
1158 \emph off
1159 \bar no
1160 \noun off
1161 \color none
1162 どの\SpecialChar LyX
1163 文書にもつねに\SpecialChar TeX
1164 コードを挿入することが可能であるというきわめて単純な理由によって,\SpecialChar LaTeX
1165 にできることは,つねに\SpecialChar LyX
1166 でも行うことができます.一方,\SpecialChar LyX
1167 は,すべての\SpecialChar LaTeX
1168 構成物を\SpecialChar LyX
1169 内に
1170 表示できるわけではなく,将来的にもそうならないでしょう.かりに\SpecialChar LaTeX
1171 コマンドを\SpecialChar LyX
1172 文書に挿入する必要が出てきた場合には,
1173 \begin_inset Flex Code
1174 status collapsed
1175
1176 \begin_layout Plain Layout
1177
1178 \family roman
1179 \series medium
1180 \shape up
1181 \size normal
1182 \emph off
1183 \bar no
1184 \noun off
1185 \color none
1186 \SpecialChar TeX
1187 コード
1188 \end_layout
1189
1190 \end_inset
1191
1192 ボックスを使用してください.これは,
1193 \family sans
1194 \series default
1195 \shape default
1196 \size default
1197 \emph default
1198 \bar default
1199 \noun default
1200 \color inherit
1201
1202 \begin_inset Flex MenuItem
1203 status collapsed
1204
1205 \begin_layout Plain Layout
1206
1207 \family sans
1208 挿入\SpecialChar menuseparator
1209 TeXコード
1210 \end_layout
1211
1212 \end_inset
1213
1214
1215 \family roman
1216 \series medium
1217 \shape up
1218 \size normal
1219 \emph off
1220 \bar no
1221 \noun off
1222 \color none
1223 若しくは
1224 \family default
1225 \series default
1226 \shape default
1227 \size default
1228 \emph default
1229 \bar default
1230 \noun default
1231 \color inherit
1232
1233 \begin_inset Flex Ruby
1234 status collapsed
1235
1236 \begin_layout Plain Layout
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 Argument post:1
1257 status collapsed
1258
1259 \begin_layout Plain Layout
1260 ショートカット
1261 \end_layout
1262
1263 \end_inset
1264
1265
1266 \end_layout
1267
1268 \end_inset
1269
1270
1271 \begin_inset Flex Ruby
1272 status collapsed
1273
1274 \begin_layout Plain Layout
1275
1276 \family roman
1277 \series medium
1278 \shape up
1279 \size normal
1280 \emph off
1281 \bar no
1282 \noun off
1283 \color none
1284
1285 \begin_inset Argument post:1
1286 status collapsed
1287
1288 \begin_layout Plain Layout
1289 キー
1290 \end_layout
1291
1292 \end_inset
1293
1294
1295 \end_layout
1296
1297 \end_inset
1298
1299
1300 \begin_inset Info
1301 type  "shortcut"
1302 arg   "ert-insert"
1303 \end_inset
1304
1305
1306 \family roman
1307 \series medium
1308 \shape up
1309 \size normal
1310 \emph off
1311 \bar no
1312 \noun off
1313 \color none
1314 で,文書中に挿入することができます.
1315 \end_layout
1316
1317 \begin_layout Standard
1318 以下は,\SpecialChar LaTeX
1319 コマンドを\SpecialChar LyX
1320 文書中に挿入する例です.コードは以下のようになっているとしましょう.
1321 \end_layout
1322
1323 \begin_layout LyX-Code
1324
1325 \backslash
1326 begin{tabular}{ll}
1327 \begin_inset Newline newline
1328 \end_inset
1329
1330
1331 \backslash
1332 begin{minipage}{5cm}
1333 \begin_inset Newline newline
1334 \end_inset
1335
1336 これは,ミニページ環境の例です.
1337 \begin_inset Newline newline
1338 \end_inset
1339
1340 これには,
1341 \begin_inset Newline newline
1342 \end_inset
1343
1344 (フロートでない)図表を
1345 \begin_inset Newline newline
1346 \end_inset
1347
1348 含め,ほとんど何でも
1349 \begin_inset Newline newline
1350 \end_inset
1351
1352 入れることができます. 
1353 \begin_inset Newline newline
1354 \end_inset
1355
1356
1357 \backslash
1358 end{minipage}
1359 \begin_inset Newline newline
1360 \end_inset
1361
1362 &
1363 \begin_inset Newline newline
1364 \end_inset
1365
1366
1367 \backslash
1368 begin{minipage}{5cm}
1369 \begin_inset Newline newline
1370 \end_inset
1371
1372
1373 \backslash
1374 begin{verbatim}
1375 \begin_inset Newline newline
1376 \end_inset
1377
1378
1379 \backslash
1380 begin{minipage}{5cm}
1381 \begin_inset Newline newline
1382 \end_inset
1383
1384 これは...
1385  
1386 \begin_inset Newline newline
1387 \end_inset
1388
1389
1390 \backslash
1391 end{minipage}
1392 \begin_inset Newline newline
1393 \end_inset
1394
1395
1396 \backslash
1397 end{verbatim}
1398 \begin_inset Newline newline
1399 \end_inset
1400
1401
1402 \backslash
1403 end{minipage}
1404 \begin_inset Newline newline
1405 \end_inset
1406
1407
1408 \backslash
1409 end{tabular}
1410 \end_layout
1411
1412 \begin_layout LyX-Code
1413
1414 \end_layout
1415
1416 \begin_layout Standard
1417 上記のテキストを含んだ
1418 \begin_inset Flex Code
1419 status collapsed
1420
1421 \begin_layout Plain Layout
1422 \SpecialChar TeX
1423 コード
1424 \end_layout
1425
1426 \end_inset
1427
1428 ボックスが,この段落の直後にあります.この取扱説明書を\SpecialChar LyX
1429 上でご覧になっていれば,\SpecialChar TeX
1430 コード差込枠のみが見えるはずです.印刷した取扱説明書をご覧であれば,実際の結果が見
1431 れるはずです.
1432 \end_layout
1433
1434 \begin_layout Standard
1435 \begin_inset VSpace bigskip
1436 \end_inset
1437
1438
1439 \begin_inset ERT
1440 status open
1441
1442 \begin_layout Plain Layout
1443
1444
1445 \backslash
1446 begin{tabular}{ll}
1447 \end_layout
1448
1449 \begin_layout Plain Layout
1450
1451
1452 \backslash
1453 begin{minipage}{5cm}
1454 \end_layout
1455
1456 \begin_layout Plain Layout
1457
1458 これは,ミニページ環境の例です.これには,(フロートでない)図表を含め,ほとんど何でも入れることができます. 
1459 \backslash
1460 end{minipage}
1461 \end_layout
1462
1463 \begin_layout Plain Layout
1464
1465 &
1466 \end_layout
1467
1468 \begin_layout Plain Layout
1469
1470
1471 \backslash
1472 begin{minipage}{5cm}
1473 \end_layout
1474
1475 \begin_layout Plain Layout
1476
1477
1478 \backslash
1479 begin{verbatim}
1480 \end_layout
1481
1482 \begin_layout Plain Layout
1483
1484
1485 \backslash
1486 begin{minipage}{5cm}
1487 \end_layout
1488
1489 \begin_layout Plain Layout
1490
1491 これは...
1492  
1493 \backslash
1494 end{minipage}
1495 \end_layout
1496
1497 \begin_layout Plain Layout
1498
1499
1500 \backslash
1501 end{verbatim}
1502 \end_layout
1503
1504 \begin_layout Plain Layout
1505
1506
1507 \backslash
1508 end{minipage}
1509 \end_layout
1510
1511 \begin_layout Plain Layout
1512
1513
1514 \backslash
1515 end{tabular}
1516 \end_layout
1517
1518 \end_inset
1519
1520
1521 \begin_inset VSpace bigskip
1522 \end_inset
1523
1524
1525 \end_layout
1526
1527 \begin_layout Standard
1528
1529 \family roman
1530 \series medium
1531 \shape up
1532 \size normal
1533 \emph off
1534 \bar no
1535 \noun off
1536 \color none
1537 \SpecialChar TeX
1538 コードを使用する方法に加えて,複雑な\SpecialChar LaTeX
1539 コードを含む部分を別ファイルとして作成しておき,そのファイルをインクルードするのに
1540 \begin_inset Flex MenuItem
1541 status collapsed
1542
1543 \begin_layout Plain Layout
1544
1545 \family roman
1546 \series medium
1547 \shape up
1548 \size normal
1549 \emph off
1550 \bar no
1551 \noun off
1552 \color none
1553 挿入\SpecialChar menuseparator
1554 ファイル\SpecialChar menuseparator
1555 子文書
1556 \end_layout
1557
1558 \end_inset
1559
1560 を使用する方法もあります(取り込みの型として
1561 \begin_inset Flex Code
1562 status collapsed
1563
1564 \begin_layout Plain Layout
1565
1566 \family roman
1567 \series medium
1568 \shape up
1569 \size normal
1570 \emph off
1571 \bar no
1572 \noun off
1573 \color none
1574 Input
1575 \end_layout
1576
1577 \end_inset
1578
1579 を選択しなくてはなりません).この方法をとる場合には,.texファイルが正しく動作することが
1580 \family default
1581 \series default
1582 \shape default
1583 \size default
1584 \emph on
1585 \bar default
1586 \noun default
1587 \color inherit
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 場合のみに限った方がよいでしょう.さもないと,\SpecialChar LaTeX
1598 エラーを追跡するたいへんな作業を行わなくてはならなくなります.
1599 \end_layout
1600
1601 \begin_layout Standard
1602
1603 \family roman
1604 \series medium
1605 \shape up
1606 \size normal
1607 \emph off
1608 \bar no
1609 \noun off
1610 \color none
1611 最後に,いくつか強調しておくべきことがあります.
1612 \end_layout
1613
1614 \begin_layout Itemize
1615
1616 \family roman
1617 \series medium
1618 \shape up
1619 \size normal
1620 \emph off
1621 \bar no
1622 \noun off
1623 \color none
1624 \SpecialChar LyX
1625 は,あなたの\SpecialChar LaTeX
1626 コードが正しいかどうかを
1627 \family default
1628 \series default
1629 \shape default
1630 \size default
1631 \emph on
1632 \bar default
1633 \noun default
1634 \color inherit
1635 チェックしません
1636 \family roman
1637 \series medium
1638 \shape up
1639 \size normal
1640 \emph off
1641 \bar no
1642 \noun off
1643 \color none
1644
1645 \end_layout
1646
1647 \begin_layout Itemize
1648
1649 \family roman
1650 \series medium
1651 \shape up
1652 \size normal
1653 \emph off
1654 \bar no
1655 \noun off
1656 \color none
1657 車輪の再発明をしないようにご注意ください.
1658 \end_layout
1659
1660 \begin_layout Standard
1661
1662 \family roman
1663 \series medium
1664 \shape up
1665 \size normal
1666 \emph off
1667 \bar no
1668 \noun off
1669 \color none
1670 二番目の点に関して,\SpecialChar LyX
1671 はひじょうにたくさんの機能を装備しており,その数は増えつづけています.ご自身で\SpecialChar LaTeX
1672 コードを書かなくてはならないと思い込む前に,LyXがこれこれの
1673 機能をもっていないことを,取扱説明書で確実に確かめてください.さらに世の中には,封筒のラベルから美しい複数ページにわたる表を作るものまで,ありとあらゆることを行
1674 う膨大な数の\SpecialChar LaTeX
1675 パッケージが存在します.
1676 \family default
1677 \series default
1678 \shape default
1679 \size default
1680 \emph default
1681 \bar default
1682 \noun default
1683 \color inherit
1684 詳細については,
1685 \begin_inset CommandInset href
1686 LatexCommand href
1687 name "CTAN"
1688 target "http://www.ctan.org/"
1689 literal "false"
1690
1691 \end_inset
1692
1693
1694 \family roman
1695 \series medium
1696 \shape up
1697 \size normal
1698 \emph off
1699 \bar no
1700 \noun off
1701 \color none
1702 と第
1703 \begin_inset CommandInset ref
1704 LatexCommand ref
1705 reference "chap:Special-features"
1706
1707 \end_inset
1708
1709 節をご覧ください.
1710 \end_layout
1711
1712 \begin_layout Standard
1713
1714 \family roman
1715 \series medium
1716 \shape up
1717 \size normal
1718 \emph off
1719 \bar no
1720 \noun off
1721 \color none
1722 もし,文書中で例外的に手の込んだことをなさりたければ,かならず良い\SpecialChar LaTeX
1723 関連書籍を参考とするようにしてください.『
1724 \family default
1725 \series default
1726 \shape default
1727 \size default
1728 \emph on
1729 \bar default
1730 \noun default
1731 \color inherit
1732 ユーザーの手引き
1733 \family roman
1734 \series medium
1735 \shape up
1736 \size normal
1737 \emph off
1738 \bar no
1739 \noun off
1740 \color none
1741 』の書誌情報に多くの\SpecialChar LaTeX
1742 関連書籍が引用されています.
1743 \end_layout
1744
1745 \begin_layout Section
1746 \SpecialChar LyX
1747 と\SpecialChar LaTeX
1748 プリアンブル
1749 \end_layout
1750
1751 \begin_layout Subsection
1752 \SpecialChar LaTeX
1753 プリアンブルについて
1754 \end_layout
1755
1756 \begin_layout Standard
1757
1758 \family roman
1759 \series medium
1760 \shape up
1761 \size normal
1762 \emph off
1763 \bar no
1764 \noun off
1765 \color none
1766 すでに\SpecialChar LaTeX
1767 についてご存知であれば,ここでプリアンブル(前置文)が何に向いているか説明する必要はないでしょう.もしご存じなければ,以下の説明で大まかな理解は得られるは
1768 ずです.詳しくは\SpecialChar LaTeX
1769 関連書籍をご参照ください.いずれにしても,以下で\SpecialChar LyX
1770 文書の\SpecialChar LaTeX
1771 プリアンブルで何ができるか,または何をする必要がないか説明をしますので,以下の各要点はお読
1772 みになった方が良いでしょう.
1773 \end_layout
1774
1775 \begin_layout Standard
1776
1777 \family roman
1778 \series medium
1779 \shape up
1780 \size normal
1781 \emph off
1782 \bar no
1783 \noun off
1784 \color none
1785 \SpecialChar LaTeX
1786 プリアンブルは,\SpecialChar LaTeX
1787 文書のいちばん始め,本文の
1788 \family default
1789 \series default
1790 \shape default
1791 \size default
1792 \emph on
1793 \bar default
1794 \noun default
1795 \color inherit
1796
1797 \family roman
1798 \series medium
1799 \shape up
1800 \size normal
1801 \emph off
1802 \bar no
1803 \noun off
1804 \color none
1805 の部分に来ます.ここでは以下のことを行います.
1806 \end_layout
1807
1808 \begin_layout Itemize
1809
1810 \family roman
1811 \series medium
1812 \shape up
1813 \size normal
1814 \emph off
1815 \bar no
1816 \noun off
1817 \color none
1818 文書クラス(ドキュメントクラス)の宣言.
1819 \begin_inset Newline newline
1820 \end_inset
1821
1822 これは\SpecialChar LyX
1823 がすでに行ってくれています.もしあなたが熟達した\SpecialChar LaTeX
1824 使いであり,自作の文書クラスを使いたい場合には,取扱説明書『
1825 \family default
1826 \series default
1827 \shape default
1828 \size default
1829 \emph on
1830 \bar default
1831 \noun default
1832 \color inherit
1833 カスタマイズ篇
1834 \family roman
1835 \series medium
1836 \shape up
1837 \size normal
1838 \emph off
1839 \bar no
1840 \noun off
1841 \color none
1842 』をご覧になれば,\SpecialChar LyX
1843 に自作文書クラスへの仲介を行わせるにはどうすればよいかの情報があります.
1844 \end_layout
1845
1846 \begin_layout Itemize
1847
1848 \family roman
1849 \series medium
1850 \shape up
1851 \size normal
1852 \emph off
1853 \bar no
1854 \noun off
1855 \color none
1856 パッケージ使用の宣言.
1857 \begin_inset Newline newline
1858 \end_inset
1859
1860 \SpecialChar LaTeX
1861 パッケージは,パッケージがプリアンブルで宣言された場合のみ,文書中で利用可能となる,追加コマンド群を提供します.パッケージをインクルードすると,特別なコマンドが
1862 提供されることに加え,文書に変更を加えることができます.例えば
1863 \family typewriter
1864 \series default
1865 \shape default
1866 \size default
1867 \emph default
1868 \bar default
1869 \noun default
1870 \color inherit
1871
1872 \family roman
1873 \series medium
1874 \shape up
1875 \size normal
1876 \emph off
1877 \bar no
1878 \noun off
1879 \color none
1880
1881 \begin_inset Flex Code
1882 status collapsed
1883
1884 \begin_layout Plain Layout
1885
1886 \family typewriter
1887 indentfirst
1888 \end_layout
1889
1890 \end_inset
1891
1892 パッケージは,すべての段落の最初の行を字下げします.他にも,ラベルや宛名書き,余白設定等の様々なパッケージがあります.
1893 \end_layout
1894
1895 \begin_layout Itemize
1896
1897 \family roman
1898 \series medium
1899 \shape up
1900 \size normal
1901 \emph off
1902 \bar no
1903 \noun off
1904 \color none
1905 カウンタ・変数・長さ・幅の設定.
1906 \begin_inset Newline newline
1907 \end_inset
1908
1909 \SpecialChar LaTeX
1910 のカウンタと変数の中には,プリアンブルでグローバルに
1911 \family default
1912 \series default
1913 \shape default
1914 \size default
1915 \emph default
1916 \bar default
1917 \noun default
1918 \color inherit
1919 設定
1920 \emph on
1921 しないかぎり
1922 \family roman
1923 \series medium
1924 \shape up
1925 \size normal
1926 \emph off
1927 \bar no
1928 \noun off
1929 \color none
1930 ,望んだ効果を持たないものがあります.(文書中で設定したり再設定したりすることのできる変数もあります.)余白は,プリアンブルで設定しなくてはならない変数の代表例
1931 です.他には,箇条書きに付けるラベル書式が挙げられます.じつは,この設定は文書中どこでもできるのですが,プリアンブルでいちどだけ設定するのが望ましい方法です.
1932 \end_layout
1933
1934 \begin_layout Itemize
1935
1936 \family roman
1937 \series medium
1938 \shape up
1939 \size normal
1940 \emph off
1941 \bar no
1942 \noun off
1943 \color none
1944 ユーザー定義コマンドの宣言(
1945 \begin_inset Flex Code
1946 status collapsed
1947
1948 \begin_layout Plain Layout
1949
1950 \family roman
1951 \series medium
1952 \shape up
1953 \size normal
1954 \emph off
1955 \bar no
1956 \noun off
1957 \color none
1958
1959 \backslash
1960 newcommand
1961 \end_layout
1962
1963 \end_inset
1964
1965 または
1966 \begin_inset Flex Code
1967 status collapsed
1968
1969 \begin_layout Plain Layout
1970
1971 \family roman
1972 \series medium
1973 \shape up
1974 \size normal
1975 \emph off
1976 \bar no
1977 \noun off
1978 \color none
1979
1980 \backslash
1981 renewcommand
1982 \end_layout
1983
1984 \end_inset
1985
1986 を使用).
1987 \begin_inset Newline newline
1988 \end_inset
1989
1990 ユーザー定義コマンドは,文書中で頻出する\SpecialChar LaTeX
1991 コマンドの短縮形です.このようなコマンドを宣言するには,プリアンブルが適した場所ですが,どこで宣言することも
1992 \family default
1993 \series default
1994 \shape default
1995 \size default
1996 \emph on
1997 \bar default
1998 \noun default
1999 \color inherit
2000 可能
2001 \family roman
2002 \series medium
2003 \shape up
2004 \size normal
2005 \emph off
2006 \bar no
2007 \noun off
2008 \color none
2009 です(もちろんコマンドが初めて使用される場所よりも前です).あまりないことではありますが,お使いの文書中に生の\SpecialChar LaTeX
2010 コードがあふれている場合には便利でしょう.
2011 \end_layout
2012
2013 \begin_layout Standard
2014
2015 \family roman
2016 \series medium
2017 \shape up
2018 \size normal
2019 \emph off
2020 \bar no
2021 \noun off
2022 \color none
2023 \SpecialChar LyX
2024 は,その生成する
2025 \begin_inset Flex Code
2026 status collapsed
2027
2028 \begin_layout Plain Layout
2029
2030 \family roman
2031 \series medium
2032 \shape up
2033 \size normal
2034 \emph off
2035 \bar no
2036 \noun off
2037 \color none
2038 .tex
2039 \end_layout
2040
2041 \end_inset
2042
2043 ファイルのプリアンブルに,それ自身の定義を追加します.これによって,\SpecialChar LyX
2044 の生成する\SpecialChar LaTeX
2045 ファイルの可搬性を高めています.
2046 \end_layout
2047
2048 \begin_layout Subsection
2049 プリアンブルの変更
2050 \end_layout
2051
2052 \begin_layout Standard
2053
2054 \family roman
2055 \series medium
2056 \shape up
2057 \size normal
2058 \emph off
2059 \bar no
2060 \noun off
2061 \color none
2062 \SpecialChar LyX
2063 が\SpecialChar LaTeX
2064 ファイルのプリアンブルに追加するコマンドは,つねに同じです.これは,\SpecialChar LyX
2065 自体にパッチを当てないかぎり変更できないようになっています.しかしながら,
2066 \begin_inset Flex MenuItem
2067 status collapsed
2068
2069 \begin_layout Plain Layout
2070
2071 \family roman
2072 \series medium
2073 \shape up
2074 \size normal
2075 \emph off
2076 \bar no
2077 \noun off
2078 \color none
2079 文書\SpecialChar menuseparator
2080 設定
2081 \end_layout
2082
2083 \end_inset
2084
2085 ダイアログの
2086 \begin_inset Flex MenuItem
2087 status collapsed
2088
2089 \begin_layout Plain Layout
2090
2091 \family roman
2092 \series medium
2093 \shape up
2094 \size normal
2095 \emph off
2096 \bar no
2097 \noun off
2098 \color none
2099 \SpecialChar LaTeX
2100 プリアンブル
2101 \end_layout
2102
2103 \end_inset
2104
2105 の項から,プリアンブルに追加をすることはできます.\SpecialChar LyX
2106 は,
2107 \family sans
2108 \series default
2109 \shape default
2110 \size default
2111 \emph default
2112 \bar default
2113 \noun default
2114 \color inherit
2115
2116 \begin_inset Flex MenuItem
2117 status collapsed
2118
2119 \begin_layout Plain Layout
2120
2121 \family sans
2122 プリアンブル
2123 \end_layout
2124
2125 \end_inset
2126
2127
2128 \family roman
2129 \series medium
2130 \shape up
2131 \size normal
2132 \emph off
2133 \bar no
2134 \noun off
2135 \color none
2136 ダイアログ内のすべてのものを,\SpecialChar LyX
2137 埋込みのプリアンブルに付け加えます.ご自身の宣言をプリアンブルに追加する前に,あなたがしようとしていることを\SpecialChar LyX
2138 がすでにサポートしてい
2139 ないかどうか確認してください(車輪の再発明をしないように,とはすでに申しあげたことです).
2140 \family default
2141 \series default
2142 \shape default
2143 \size default
2144 \emph default
2145 \bar default
2146 \noun default
2147 \color inherit
2148 また,
2149 \emph on
2150 プリアンブルコードが正しいことを確認してください.
2151 \emph default
2152 \SpecialChar LyX
2153 は,プリアンブルをチェックしません.
2154 \family roman
2155 \series medium
2156 \shape up
2157 \size normal
2158 \emph off
2159 \bar no
2160 \noun off
2161 \color none
2162 もしエラーがあれば,「
2163 \begin_inset Flex Code
2164 status collapsed
2165
2166 \begin_layout Plain Layout
2167
2168 \family roman
2169 \series medium
2170 \shape up
2171 \size normal
2172 \emph off
2173 \bar no
2174 \noun off
2175 \color none
2176 Missing 
2177 \backslash
2178 begin{document}
2179 \end_layout
2180
2181 \end_inset
2182
2183 」といったエラーが出ることでしょう.このようなエラーが出たときは,プリアンブルを再確認してください.
2184 \end_layout
2185
2186 \begin_layout Subsection
2187
2188 \end_layout
2189
2190 \begin_layout Standard
2191
2192 \family roman
2193 \series medium
2194 \shape up
2195 \size normal
2196 \emph off
2197 \bar no
2198 \noun off
2199 \color none
2200 以下は,プリアンブルに追加できるものとその効果を示す例です.
2201 \end_layout
2202
2203 \begin_layout Subsubsection
2204 例1:オフセット
2205 \end_layout
2206
2207 \begin_layout Standard
2208
2209 \family roman
2210 \series medium
2211 \shape up
2212 \size normal
2213 \emph off
2214 \bar no
2215 \noun off
2216 \color none
2217 \SpecialChar LaTeX
2218 には
2219 \family default
2220 \series default
2221 \shape default
2222 \size default
2223 \emph default
2224 \bar default
2225 \noun default
2226 \color inherit
2227
2228 \family roman
2229 \series medium
2230 \shape up
2231 \size normal
2232 \emph off
2233 \bar no
2234 \noun off
2235 \color none
2236
2237 \begin_inset Flex Code
2238 status collapsed
2239
2240 \begin_layout Plain Layout
2241
2242 \family typewriter
2243
2244 \backslash
2245 hoffset
2246 \end_layout
2247
2248 \end_inset
2249
2250
2251 \family typewriter
2252 \series default
2253 \shape default
2254 \size default
2255 \emph default
2256 \bar default
2257 \noun default
2258 \color inherit
2259
2260 \begin_inset Flex Code
2261 status collapsed
2262
2263 \begin_layout Plain Layout
2264
2265 \family typewriter
2266
2267 \backslash
2268 voffset
2269 \end_layout
2270
2271 \end_inset
2272
2273
2274 \family roman
2275 \series medium
2276 \shape up
2277 \size normal
2278 \emph off
2279 \bar no
2280 \noun off
2281 \color none
2282 というページ位置を制御する2つの変数があります.その機能は名前から明らかなとおりです.これらの変数は,ラベルを印刷するときなどに便利です.往々にして,印刷用紙の
2283 寸法とそのうち実際に印字可能な範囲は同じではありません.ここに
2284 \begin_inset Flex Code
2285 status collapsed
2286
2287 \begin_layout Plain Layout
2288
2289 \family typewriter
2290
2291 \backslash
2292 hoffset
2293 \end_layout
2294
2295 \end_inset
2296
2297
2298 \family typewriter
2299 \series default
2300 \shape default
2301 \size default
2302 \emph default
2303 \bar default
2304 \noun default
2305 \color inherit
2306
2307 \begin_inset Flex Code
2308 status collapsed
2309
2310 \begin_layout Plain Layout
2311
2312 \family typewriter
2313
2314 \backslash
2315 voffset
2316 \end_layout
2317
2318 \end_inset
2319
2320
2321 \family default
2322 が役立つわけです.
2323 \end_layout
2324
2325 \begin_layout Standard
2326
2327 \family roman
2328 \series medium
2329 \shape up
2330 \size normal
2331 \emph off
2332 \bar no
2333 \noun off
2334 \color none
2335 \begin_inset Flex Code
2336 status collapsed
2337
2338 \begin_layout Plain Layout
2339
2340 \family typewriter
2341
2342 \backslash
2343 hoffset
2344 \end_layout
2345
2346 \end_inset
2347
2348
2349 \family typewriter
2350 \series default
2351 \shape default
2352 \size default
2353 \emph default
2354 \bar default
2355 \noun default
2356 \color inherit
2357
2358 \begin_inset Flex Code
2359 status collapsed
2360
2361 \begin_layout Plain Layout
2362
2363 \family typewriter
2364
2365 \backslash
2366 voffset
2367 \end_layout
2368
2369 \end_inset
2370
2371
2372 \family roman
2373 \series medium
2374 \shape up
2375 \size normal
2376 \emph off
2377 \bar no
2378 \noun off
2379 \color none
2380 の既定値はともに0ポイント,つまりページをシフトしません.残念ながら,DVIドライバによってはつねにページをシフトすることがあるようです.我々には,どうしてその
2381 ようなことをするのか,そしてシスアドがどうしてそれを修正しないのか理解できませんが,もし個人的に管理できないシステムで\SpecialChar LyX
2382 を使用していて,シスアドがお馬鹿さんである
2383 場合には,
2384 \begin_inset Flex Code
2385 status collapsed
2386
2387 \begin_layout Plain Layout
2388
2389 \family typewriter
2390
2391 \backslash
2392 hoffset
2393 \end_layout
2394
2395 \end_inset
2396
2397
2398 \family typewriter
2399 \series default
2400 \shape default
2401 \size default
2402 \emph default
2403 \bar default
2404 \noun default
2405 \color inherit
2406
2407 \begin_inset Flex Code
2408 status collapsed
2409
2410 \begin_layout Plain Layout
2411
2412 \family typewriter
2413
2414 \backslash
2415 voffset
2416 \end_layout
2417
2418 \end_inset
2419
2420
2421 \family roman
2422 \series medium
2423 \shape up
2424 \size normal
2425 \emph off
2426 \bar no
2427 \noun off
2428 \color none
2429 が役に立ちます.かりに,上余白と左余白がつねに0.5インチずつ大きすぎるものとしましょう.その場合は,以下をプリアンブルに追加するとよいでしょう.
2430 \end_layout
2431
2432 \begin_layout LyX-Code
2433
2434 \backslash
2435 setlength{
2436 \backslash
2437 hoffset}{-0.5 in}
2438 \end_layout
2439
2440 \begin_layout LyX-Code
2441
2442 \backslash
2443 setlength{
2444 \backslash
2445 voffset}{-0.5 in}
2446 \end_layout
2447
2448 \begin_layout Standard
2449
2450 \family roman
2451 \series medium
2452 \shape up
2453 \size normal
2454 \emph off
2455 \bar no
2456 \noun off
2457 \color none
2458 これで余白が修正されます.
2459 \end_layout
2460
2461 \begin_layout Subsubsection
2462 例2:ラベル
2463 \end_layout
2464
2465 \begin_layout Standard
2466
2467 \family roman
2468 \series medium
2469 \shape up
2470 \size normal
2471 \emph off
2472 \bar no
2473 \noun off
2474 \color none
2475 いま,たくさんの宛名ラベルを印刷をしたいものとしましょう.ラベルシートを印刷するために便利な
2476 \begin_inset Flex Code
2477 status collapsed
2478
2479 \begin_layout Plain Layout
2480
2481 \family typewriter
2482 labels.sty
2483 \end_layout
2484
2485 \end_inset
2486
2487 という\SpecialChar LaTeX
2488 パッケージが,お近くのCTANアーカイブで入手可能です.お使いのシステムには,既定ではこのパッケージは導入されていないかもしれません.ご自身でお確かめくだ
2489 さい.また,このパッケージの取扱説明書を読まれたいかもしれませんが,それもご自身にお任せします.これは使用例ですので,このパッケージをどう使うかの例だけお見せす
2490 ることにします.
2491 \end_layout
2492
2493 \begin_layout Standard
2494
2495 \family roman
2496 \series medium
2497 \shape up
2498 \size normal
2499 \emph off
2500 \bar no
2501 \noun off
2502 \color none
2503 まず,
2504 \begin_inset Flex Code
2505 status collapsed
2506
2507 \begin_layout Plain Layout
2508
2509 \family sans
2510 article
2511 \end_layout
2512
2513 \end_inset
2514
2515 文書クラスを使用していることをご確認ください.次に,以下のような設定をプリアンブルに追加しなければなりません.
2516 \end_layout
2517
2518 \begin_layout LyX-Code
2519
2520 \backslash
2521 usepackage{labels}
2522 \end_layout
2523
2524 \begin_layout LyX-Code
2525
2526 \backslash
2527 LabelCols=3
2528 \end_layout
2529
2530 \begin_layout LyX-Code
2531
2532 \backslash
2533 LabelRows=7
2534 \end_layout
2535
2536 \begin_layout LyX-Code
2537
2538 \backslash
2539 LeftBorder=8mm
2540 \end_layout
2541
2542 \begin_layout LyX-Code
2543
2544 \backslash
2545 RightBorder=8mm
2546 \end_layout
2547
2548 \begin_layout LyX-Code
2549
2550 \backslash
2551 TopBorder=9mm
2552 \end_layout
2553
2554 \begin_layout LyX-Code
2555
2556 \backslash
2557 BottomBorder=2mm
2558 \end_layout
2559
2560 \begin_layout Standard
2561
2562 \family roman
2563 \series medium
2564 \shape up
2565 \size normal
2566 \emph off
2567 \bar no
2568 \noun off
2569 \color none
2570 これは
2571 \family default
2572 \series default
2573 \shape default
2574 \size default
2575 \emph default
2576 \bar default
2577 \noun default
2578 \color inherit
2579 Averyラベルシートのストック5360
2580 \family roman
2581 \series medium
2582 \shape up
2583 \size normal
2584 \emph off
2585 \bar no
2586 \noun off
2587 \color none
2588 番を使用する場合の設定です.これで,各宛名を
2589 \begin_inset Flex Code
2590 status collapsed
2591
2592 \begin_layout Plain Layout
2593
2594 \family typewriter
2595
2596 \backslash
2597 begin{labels}
2598 \end_layout
2599
2600 \end_inset
2601
2602
2603 \family typewriter
2604 \series default
2605 \shape default
2606 \size default
2607 \emph default
2608 \bar default
2609 \noun default
2610 \color inherit
2611
2612 \begin_inset Flex Code
2613 status collapsed
2614
2615 \begin_layout Plain Layout
2616
2617 \family typewriter
2618
2619 \backslash
2620 end{labels}
2621 \end_layout
2622
2623 \end_inset
2624
2625
2626 \family roman
2627 \series medium
2628 \shape up
2629 \size normal
2630 \emph off
2631 \bar no
2632 \noun off
2633 \color none
2634 で囲めば,宛名ラベルの印刷をすることができます.本機能およびその他の機能に関しては,
2635 \begin_inset Flex Code
2636 status collapsed
2637
2638 \begin_layout Plain Layout
2639
2640 \family typewriter
2641 labels.sty
2642 \end_layout
2643
2644 \end_inset
2645
2646 の取扱説明書に説明されています.
2647 \end_layout
2648
2649 \begin_layout Standard
2650
2651 \family roman
2652 \series medium
2653 \shape up
2654 \size normal
2655 \emph off
2656 \bar no
2657 \noun off
2658 \color none
2659 そのうち誰かが,このパッケージを直接サポートする\SpecialChar LyX
2660 レイアウトファイルを作ってくれるかもしれません.その誰かはあなたかもしれません.
2661 \end_layout
2662
2663 \begin_layout Subsubsection
2664 例3: 段落の字下げ
2665 \end_layout
2666
2667 \begin_layout Standard
2668
2669 \family roman
2670 \series medium
2671 \shape up
2672 \size normal
2673 \emph off
2674 \bar no
2675 \noun off
2676 \color none
2677 アメリカ人は
2678 \family default
2679 \series default
2680 \shape default
2681 \size default
2682 \emph default
2683 \bar default
2684 \noun default
2685 \color inherit
2686
2687 \emph on
2688 すべての
2689 \family roman
2690 \series medium
2691 \shape up
2692 \size normal
2693 \emph off
2694 \bar no
2695 \noun off
2696 \color none
2697 段落の最初の行を字下げするように教育されています.そのために彼らの他の変な習慣と同じく,いつものようにすべての段落の最初の行を下げるまで,アメリカ人はごちゃごち
2698 ゃと文句を言いつづけるのです
2699 \family default
2700 \series default
2701 \shape default
2702 \size default
2703 \emph default
2704 \bar default
2705 \noun default
2706 \color inherit
2707 .(これはユーモアです.(ほんと?)
2708 \emph on
2709 ユーモアですってば
2710 \emph default
2711 .)
2712 \end_layout
2713
2714 \begin_layout Standard
2715
2716 \family roman
2717 \series medium
2718 \shape up
2719 \size normal
2720 \emph off
2721 \bar no
2722 \noun off
2723 \color none
2724 もちろん,これは標準的な組版ルールではありません.書籍では,典型的には,他の段落のあとにくる段落
2725 \family default
2726 \series default
2727 \shape default
2728 \size default
2729 \emph on
2730 \bar default
2731 \noun default
2732 \color inherit
2733 のみ
2734 \family roman
2735 \series medium
2736 \shape up
2737 \size normal
2738 \emph off
2739 \bar no
2740 \noun off
2741 \color none
2742 字下げを行ないます.一行めを字下げをするそもそもの目的は,隣接する段落から区別するためです.したがって,図のあとや節の最初の段落など,先行する段落がない場合には
2743 ,字下げをする必要はないのです.
2744 \end_layout
2745
2746 \begin_layout Standard
2747
2748 \family roman
2749 \series medium
2750 \shape up
2751 \size normal
2752 \emph off
2753 \bar no
2754 \noun off
2755 \color none
2756 けれどもあなたが典型的なアメリカ人なら(ユーーモアですって!),そのような小難しいことはかまわずに,いつもどおりの字下げをせずにはいられないでしょう!プリアンブ
2757 ルに次の行を加えて下さい.
2758 \end_layout
2759
2760 \begin_layout LyX-Code
2761
2762 \backslash
2763 usepackage{indentfirst}
2764 \end_layout
2765
2766 \begin_layout Standard
2767
2768 \family roman
2769 \series medium
2770 \shape up
2771 \size normal
2772 \emph off
2773 \bar no
2774 \noun off
2775 \color none
2776 もしお使いの\SpecialChar TeX
2777 頒布版が脳死状態でなければ,このパッケージが入っているはずなので,建国の父たちが意図したように,すべての段落が字下げされます.
2778 \end_layout
2779
2780 \begin_layout Subsubsection
2781 例4:この文書
2782 \end_layout
2783
2784 \begin_layout Standard
2785
2786 \family roman
2787 \series medium
2788 \shape up
2789 \size normal
2790 \emph off
2791 \bar no
2792 \noun off
2793 \color none
2794 この文書のプリアンブルを見てみると,どのような高度な設定ができるか,おおまかな理解が得られるでしょう.また第
2795 \family default
2796 \series default
2797 \shape default
2798 \size default
2799 \emph default
2800 \bar default
2801 \noun default
2802 \color inherit
2803
2804 \begin_inset CommandInset ref
2805 LatexCommand ref
2806 reference "chap:Special-features"
2807
2808 \end_inset
2809
2810
2811 \family roman
2812 \series medium
2813 \shape up
2814 \size normal
2815 \emph off
2816 \bar no
2817 \noun off
2818 \color none
2819 章には,他の例や,\SpecialChar LaTeX
2820 の各種の「汚い技」があります.
2821 \end_layout
2822
2823 \begin_layout Section
2824 \SpecialChar LyX
2825 および\SpecialChar LaTeX
2826 のエラー
2827 \end_layout
2828
2829 \begin_layout Standard
2830
2831 \family roman
2832 \series medium
2833 \shape up
2834 \size normal
2835 \emph off
2836 \bar no
2837 \noun off
2838 \color none
2839 \SpecialChar LyX
2840 が\SpecialChar LaTeX
2841 を呼び出す際,\SpecialChar LyX
2842 は\SpecialChar LaTeX
2843 に,かりにエラーがあったとしても楽観的に無視して先に進むように指示します.その後\SpecialChar LyX
2844 は,\SpecialChar LaTeX
2845 の実行ログファイルを事後処理用に使います.ログファイルを分
2846 析したのち,\SpecialChar LyX
2847 はエラーを一覧表示するダイアログを表示します.エラーのうちどれかをクリックすると,\SpecialChar LyX
2848 ファイル中,そのエラーの発生した場所に表示を移動します
2849 \begin_inset Foot
2850 status collapsed
2851
2852 \begin_layout Plain Layout
2853
2854 \family roman
2855 \series medium
2856 \shape up
2857 \size normal
2858 \emph off
2859 \bar no
2860 \noun off
2861 \color none
2862 正確にいうと,通常は,です.ログファイルの分析は難しい仕事ですので,\SpecialChar LyX
2863 はつねに正しい行に連れて行ってくれるとは限りません.ときには,\SpecialChar LaTeX
2864 がある行にエラーがあると報告し
2865 たとしても,実際のエラーはそれよりも前であることもあります.これは,プログラムで閉じ括弧を忘れたときに似ていなくもありません.エラーは表示されますが,実際にエラ
2866 ーのある場所よりも後ろでエラーが報告されるのです.
2867 \end_layout
2868
2869 \end_inset
2870
2871
2872 \family default
2873 \series default
2874 \shape default
2875 \size default
2876 \emph default
2877 \bar default
2878 \noun default
2879 \color inherit
2880
2881 \end_layout
2882
2883 \begin_layout Standard
2884
2885 \family roman
2886 \series medium
2887 \shape up
2888 \size normal
2889 \emph off
2890 \bar no
2891 \noun off
2892 \color none
2893 人によっては,ログファイルを直接ご覧になりたいかもしれません.これは,
2894 \begin_inset Flex MenuItem
2895 status collapsed
2896
2897 \begin_layout Plain Layout
2898
2899 \family roman
2900 \series medium
2901 \shape up
2902 \size normal
2903 \emph off
2904 \bar no
2905 \noun off
2906 \color none
2907 文書\SpecialChar menuseparator
2908 LaTeXログ
2909 \end_layout
2910
2911 \end_inset
2912
2913 で見ることができます.エラーメッセージや警告には,よく見かけるものがいくつかありますので,それらをここに収録しておきます.ここにないエラーや警告に関しては,La\SpecialChar TeX
2914
2915 関連の良書を参照してください.
2916 \end_layout
2917
2918 \begin_layout Itemize
2919
2920 \family typewriter
2921 \begin_inset Flex Code
2922 status collapsed
2923
2924 \begin_layout Plain Layout
2925
2926 \family typewriter
2927 LaTeX Warning
2928 \end_layout
2929
2930 \end_inset
2931
2932
2933 \family roman
2934 \series medium
2935 \shape up
2936 \size normal
2937 \emph off
2938 \bar no
2939 \noun off
2940 \color none
2941
2942 \begin_inset Newline newline
2943 \end_inset
2944
2945 これで始まるメッセージは,\SpecialChar LaTeX
2946 コード自体を「デバッグ」するための警告メッセージです.相互参照や書誌情報を追加したり変更した場合に,もう一度\SpecialChar LaTeX
2947 を実行する必要があることを
2948 知らせるために,このようなメッセージが表示されます.このメッセージは,だいたいにおいて無視しても大丈夫です.
2949 \end_layout
2950
2951 \begin_layout Itemize
2952
2953 \family typewriter
2954 \begin_inset Flex Code
2955 status collapsed
2956
2957 \begin_layout Plain Layout
2958
2959 \family typewriter
2960 LaTeX Font Warning
2961 \end_layout
2962
2963 \end_inset
2964
2965
2966 \family roman
2967 \series medium
2968 \shape up
2969 \size normal
2970 \emph off
2971 \bar no
2972 \noun off
2973 \color none
2974
2975 \begin_inset Newline newline
2976 \end_inset
2977
2978 \SpecialChar LaTeX
2979 がフォントを見つけられなかったと言う警告メッセージです.多くの場合,このメッセージの後に,\SpecialChar LaTeX
2980 が使用した代替フォントに関する情報が続きます.これも無視して構いません
2981
2982 \end_layout
2983
2984 \begin_layout Itemize
2985
2986 \family roman
2987 \series medium
2988 \shape up
2989 \size normal
2990 \emph off
2991 \bar no
2992 \noun off
2993 \color none
2994 \begin_inset Flex Code
2995 status collapsed
2996
2997 \begin_layout Plain Layout
2998
2999 \family typewriter
3000 Overfull 
3001 \backslash
3002 hbox
3003 \end_layout
3004
3005 \end_inset
3006
3007
3008 \begin_inset Newline newline
3009 \end_inset
3010
3011 \SpecialChar LaTeX
3012 は,
3013 \family default
3014 \series default
3015 \shape default
3016 \size default
3017 \emph on
3018 \bar default
3019 \noun default
3020 \color inherit
3021 ほぼどんなときでも
3022 \family roman
3023 \series medium
3024 \shape up
3025 \size normal
3026 \emph off
3027 \bar no
3028 \noun off
3029 \color none
3030 この警告を吐き出します.これは,一行が長すぎて右余白にはみ出してしまったという警告ですが,ほとんどの場合,最終出力を見ても判別できないくらい(せいぜい1ポイント
3031 か2ポイント)です.あるいは1文字か2文字右余白に出ているくらいです.\SpecialChar LaTeX
3032 は,どんな文書を書いても,少なくとも一つはこのメッセージを出すようです.
3033 \begin_inset Newline newline
3034 \end_inset
3035
3036 このメッセージは無視しても大丈夫です.何か行が長すぎるような問題があれば,目で見ればわかります.出力を目で確認してください
3037 \begin_inset Foot
3038 status collapsed
3039
3040 \begin_layout Plain Layout
3041 あるいは,
3042 \begin_inset Flex MenuItem
3043 status collapsed
3044
3045 \begin_layout Plain Layout
3046 文書\SpecialChar menuseparator
3047 設定
3048 \end_layout
3049
3050 \end_inset
3051
3052 で「draft」オプションを指定する方法もあります.こうすると,\SpecialChar LaTeX
3053 は,overfullの発生した行の余白に黒い四角を描画します.
3054 \end_layout
3055
3056 \end_inset
3057
3058
3059 \end_layout
3060
3061 \begin_layout Itemize
3062
3063 \family typewriter
3064 \begin_inset Flex Code
3065 status collapsed
3066
3067 \begin_layout Plain Layout
3068
3069 \family typewriter
3070 Underfull 
3071 \backslash
3072 hbox
3073 \end_layout
3074
3075 \end_inset
3076
3077
3078 \begin_inset Newline newline
3079 \end_inset
3080
3081
3082 \family roman
3083 \series medium
3084 \shape up
3085 \size normal
3086 \emph off
3087 \bar no
3088 \noun off
3089 \color none
3090 これは上の警告と違ってあまり出てきません.なぜだかは分かりませんが,\SpecialChar LaTeX
3091 は1行を短めにする印字するよりは,長めにする方が好きなようです.
3092 \end_layout
3093
3094 \begin_layout Itemize
3095 \begin_inset Flex Code
3096 status collapsed
3097
3098 \begin_layout Plain Layout
3099
3100 \family typewriter
3101 Overfull 
3102 \backslash
3103 vbox
3104 \end_layout
3105
3106 \end_inset
3107
3108
3109 \family typewriter
3110
3111 \begin_inset Flex Code
3112 status collapsed
3113
3114 \begin_layout Plain Layout
3115
3116 \family typewriter
3117 Underfull 
3118 \backslash
3119 vbox
3120 \end_layout
3121
3122 \end_inset
3123
3124
3125 \family default
3126
3127 \begin_inset Newline newline
3128 \end_inset
3129
3130
3131 \family roman
3132 \series medium
3133 \shape up
3134 \size normal
3135 \emph off
3136 \bar no
3137 \noun off
3138 \color none
3139 ページ区切りに問題があったという警告です.この場合も,出力を目で確認してください.何か問題があれば,見てすぐわかります.
3140 \end_layout
3141
3142 \begin_layout Itemize
3143
3144 \family typewriter
3145 \begin_inset Flex Code
3146 status collapsed
3147
3148 \begin_layout Plain Layout
3149
3150 \family typewriter
3151 LaTeX Error: File 
3152 \begin_inset Quotes els
3153 \end_inset
3154
3155 Xxxx
3156 \begin_inset Quotes ers
3157 \end_inset
3158
3159  not found
3160 \end_layout
3161
3162 \end_inset
3163
3164
3165 \family roman
3166 \series medium
3167 \shape up
3168 \size normal
3169 \emph off
3170 \bar no
3171 \noun off
3172 \color none
3173
3174 \begin_inset Newline newline
3175 \end_inset
3176
3177 ファイル「Xxxx」が,システムに導入されていません.これは通常,文書が必要としている\SpecialChar LaTeX
3178 パッケージに,導入済でないものがある場合に現れます.プリアンブルに変更を加
3179 えておらず,
3180 \begin_inset Flex Code
3181 status collapsed
3182
3183 \begin_layout Plain Layout
3184
3185 \family typewriter
3186
3187 \backslash
3188 usepackage{}
3189 \end_layout
3190
3191 \end_inset
3192
3193 コマンドも使用していないとすれば,\SpecialChar LyX
3194 が読み込もうしているパッケージに存在しないものがあるということです.
3195 \family default
3196 \series default
3197 \shape default
3198 \size default
3199 \emph default
3200 \bar default
3201 \noun default
3202 \color inherit
3203
3204 \begin_inset Flex MenuItem
3205 status collapsed
3206
3207 \begin_layout Plain Layout
3208 ヘルプ\SpecialChar menuseparator
3209 \SpecialChar LaTeX
3210 の設定
3211 \end_layout
3212
3213 \end_inset
3214
3215
3216 \family roman
3217 \series medium
3218 \shape up
3219 \size normal
3220 \emph off
3221 \bar no
3222 \noun off
3223 \color none
3224 を使用して,\SpecialChar LyX
3225 が認識しているパッケージの一覧を得てください.このファイルは,(
3226 \begin_inset Flex MenuItem
3227 status collapsed
3228
3229 \begin_layout Plain Layout
3230
3231 \family roman
3232 \series medium
3233 \shape up
3234 \size normal
3235 \emph off
3236 \bar no
3237 \noun off
3238 \color none
3239 ツール\SpecialChar menuseparator
3240 再設定
3241 \end_layout
3242
3243 \end_inset
3244
3245 を使用して)\SpecialChar LyX
3246 の再設定を行うたびに更新され,どのパッケージが検出されたか,それらのパッケージが何をするものかを表示します.
3247 \begin_inset Newline newline
3248 \end_inset
3249
3250
3251 \family sans
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 Code
3261 status collapsed
3262
3263 \begin_layout Plain Layout
3264
3265 \family sans
3266
3267 \backslash
3268 usepackage{}
3269 \end_layout
3270
3271 \end_inset
3272
3273
3274 \family roman
3275 \series medium
3276 \shape up
3277 \size normal
3278 \emph off
3279 \bar no
3280 \noun off
3281 \color none
3282 コマンドを使っていて,肝心のパッケージが導入されていない場合には,ご自身で導入する必要があります.
3283 \end_layout
3284
3285 \begin_layout Itemize
3286
3287 \family typewriter
3288 \begin_inset Flex Code
3289 status collapsed
3290
3291 \begin_layout Plain Layout
3292
3293 \family typewriter
3294 LaTeX Error: Unknown option
3295 \end_layout
3296
3297 \end_inset
3298
3299
3300 \family roman
3301 \series medium
3302 \shape up
3303 \size normal
3304 \emph off
3305 \bar no
3306 \noun off
3307 \color none
3308
3309 \begin_inset Newline newline
3310 \end_inset
3311
3312 このように始まるエラーメッセージは,パッケージに誤ったあるいは未定義のオプションが指定されていることを伝えようとするものです.パッケージの取扱説明書をご確認くだ
3313 さい.
3314 \end_layout
3315
3316 \begin_layout Itemize
3317
3318 \family typewriter
3319 \begin_inset Flex Code
3320 status collapsed
3321
3322 \begin_layout Plain Layout
3323
3324 \family typewriter
3325 Undefined control sequence
3326 \end_layout
3327
3328 \end_inset
3329
3330
3331 \family roman
3332 \series medium
3333 \shape up
3334 \size normal
3335 \emph off
3336 \bar no
3337 \noun off
3338 \color none
3339
3340 \begin_inset Newline newline
3341 \end_inset
3342
3343 お使いの文書に\SpecialChar LaTeX
3344 コードを挿入した際,打ち間違いをしてしまうと,このようなメッセージが表示されます.あるいは,パッケージを読み込ませるのを忘れたのかもしれません.い
3345 ずれにしても,このメッセージは,あなたが未定義のコマンドを使用したことを示しています.
3346 \end_layout
3347
3348 \begin_layout Standard
3349
3350 \family roman
3351 \series medium
3352 \shape up
3353 \size normal
3354 \emph off
3355 \bar no
3356 \noun off
3357 \color none
3358 これ以外にも,エラーメッセージや警告メッセージがあります.一般に,読んで意味がすぐにわかるものは,\SpecialChar LaTeX
3359 のメッセージです.何を言っているのかさっぱりわからないものもあ
3360 りますが,通常これらは,\SpecialChar TeX
3361 のメッセージであり,それが何を意味しているのか,どのように解読すればいいのか,
3362 \family default
3363 \series default
3364 \shape default
3365 \size default
3366 \emph on
3367 \bar default
3368 \noun default
3369 \color inherit
3370 まったく
3371 \family roman
3372 \series medium
3373 \shape up
3374 \size normal
3375 \emph off
3376 \bar no
3377 \noun off
3378 \color none
3379 手がかりがありません.誰もわからないのです.
3380 \end_layout
3381
3382 \begin_layout Standard
3383
3384 \family roman
3385 \series medium
3386 \shape up
3387 \size normal
3388 \emph off
3389 \bar no
3390 \noun off
3391 \color none
3392 エラーメッセージが表示された場合は,つねに以下のチェックリストにしたがった方がよいでしょう.
3393 \end_layout
3394
3395 \begin_layout Enumerate
3396
3397 \family roman
3398 \series medium
3399 \shape up
3400 \size normal
3401 \emph off
3402 \bar no
3403 \noun off
3404 \color none
3405 ご自分で挿入した\SpecialChar LaTeX
3406 コードに打ち間違いがないかどうか確かめる.
3407 \end_layout
3408
3409 \begin_layout Enumerate
3410
3411 \family roman
3412 \series medium
3413 \shape up
3414 \size normal
3415 \emph off
3416 \bar no
3417 \noun off
3418 \color none
3419 打ち間違いがなければ,コマンドを正しく使ったかどうか確かめる.
3420 \end_layout
3421
3422 \begin_layout Enumerate
3423
3424 \family roman
3425 \series medium
3426 \shape up
3427 \size normal
3428 \emph off
3429 \bar no
3430 \noun off
3431 \color none
3432 文書のもっともはじめの部分にエラーボックスが多数積み上がった場合には—特に
3433 \begin_inset Flex Code
3434 status collapsed
3435
3436 \begin_layout Plain Layout
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 Missing 
3447 \backslash
3448 begin{document}
3449 \end_layout
3450
3451 \end_inset
3452
3453 が表示されているならば—,プリアンブルにエラーがあることを意味します.プリアンブルのデバックを行ってください.
3454 \end_layout
3455
3456 \begin_layout Enumerate
3457
3458 \family roman
3459 \series medium
3460 \shape up
3461 \size normal
3462 \emph off
3463 \bar no
3464 \noun off
3465 \color none
3466 プリアンブルに何も追加せず,文書に\SpecialChar LaTeX
3467 コードをまったく挿入しなかった場合には,\SpecialChar LaTeX
3468 頒布版自体をまず疑ってください.導入されていないパッケージを探しだして,導入してくださ
3469 い.
3470 \end_layout
3471
3472 \begin_layout Enumerate
3473
3474 \family roman
3475 \series medium
3476 \shape up
3477 \size normal
3478 \emph off
3479 \bar no
3480 \noun off
3481 \color none
3482 導入されていないパッケージはなかったものとしましょう.\SpecialChar LyX
3483 を微調整するオプションを使用していますか.特に,手動で
3484 \begin_inset Flex Code
3485 status collapsed
3486
3487 \begin_layout Plain Layout
3488
3489 \family sans
3490 Protected
3491 \begin_inset space ~
3492 \end_inset
3493
3494 Blank
3495 \end_layout
3496
3497 \end_inset
3498
3499
3500 \begin_inset Flex Code
3501 status collapsed
3502
3503 \begin_layout Plain Layout
3504
3505 \family sans
3506 Linebreak
3507 \end_layout
3508
3509 \end_inset
3510
3511
3512 \family sans
3513 \series default
3514 \shape default
3515 \size default
3516 \emph default
3517 \bar default
3518 \noun default
3519 \color inherit
3520
3521 \begin_inset Flex Code
3522 status collapsed
3523
3524 \begin_layout Plain Layout
3525
3526 \family sans
3527 Pagebreak
3528 \end_layout
3529
3530 \end_inset
3531
3532
3533 \family roman
3534 \series medium
3535 \shape up
3536 \size normal
3537 \emph off
3538 \bar no
3539 \noun off
3540 \color none
3541 などをたくさん挿入するなど,微調整オプションを
3542 \family default
3543 \series default
3544 \shape default
3545 \size default
3546 \emph on
3547 \bar default
3548 \noun default
3549 \color inherit
3550 悪用
3551 \family roman
3552 \series medium
3553 \shape up
3554 \size normal
3555 \emph off
3556 \bar no
3557 \noun off
3558 \color none
3559 していませんか.適切な段落環境を使用する代わりに,これらを使用してその場をしのごうとしていませんか.
3560 \end_layout
3561
3562 \begin_layout Enumerate
3563
3564 \family roman
3565 \series medium
3566 \shape up
3567 \size normal
3568 \emph off
3569 \bar no
3570 \noun off
3571 \color none
3572 微調整オプションはまったく使用しておらず,規則に乗っ取って作業していたものとしましょう.何か曲芸のようなことをしようとはしていませんか.数式や表中で,たとえば表
3573 のセルに図を入れるなど,おかしなことをしようとしていませんか.
3574 \end_layout
3575
3576 \begin_layout Enumerate
3577 \SpecialChar LaTeX
3578 が改行位置を見つけられないほど長い一節がありませんか.既定では,改行するために単語間に空白をたくさん追加することを,\SpecialChar LaTeX
3579 はかなり嫌います.可能であれば,問題が生じな
3580 いように段落を修正するのが望ましいでしょう.
3581 \end_layout
3582
3583 \begin_layout Enumerate
3584
3585 \family roman
3586 \series medium
3587 \shape up
3588 \size normal
3589 \emph off
3590 \bar no
3591 \noun off
3592 \color none
3593 入れ子の階層を深くしすぎていませんか.\SpecialChar LyX
3594 は,(今のところ)環境の入れ子の階層が制限内にあるかチェックしません.かりに,環境を17段の入れ子にしたりしていたら,それ
3595 が原因です(\SpecialChar LaTeX
3596 の上限は5段です).
3597 \end_layout
3598
3599 \begin_layout Enumerate
3600
3601 \family roman
3602 \series medium
3603 \shape up
3604 \size normal
3605 \emph off
3606 \bar no
3607 \noun off
3608 \color none
3609 エラーメッセージは発生しないけれども,出力がひどいものとしましょう.図表が幅が広すぎたり長すぎてページに収まらない場合には,
3610 \end_layout
3611
3612 \begin_deeper
3613 \begin_layout Enumerate
3614
3615 \family roman
3616 \series medium
3617 \shape up
3618 \size normal
3619 \emph off
3620 \bar no
3621 \noun off
3622 \color none
3623 図がページに合うように大きさを変える,
3624 \end_layout
3625
3626 \begin_layout Enumerate
3627
3628 \family roman
3629 \series medium
3630 \shape up
3631 \size normal
3632 \emph off
3633 \bar no
3634 \noun off
3635 \color none
3636 表がページに合うように削る,
3637 \end_layout
3638
3639 \begin_layout Standard
3640
3641 \family roman
3642 \series medium
3643 \shape up
3644 \size normal
3645 \emph off
3646 \bar no
3647 \noun off
3648 \color none
3649 などの手段を採る必要があります.
3650 \end_layout
3651
3652 \end_deeper
3653 \begin_layout Enumerate
3654 他に出力におかしいところがあり,曲芸をやろうとしたり微調整オプションでしのごうとしたりはしていないとすれば,何がおかしいのか確定的なことは言えません.
3655 \end_layout
3656
3657 \begin_layout Standard
3658
3659 \family roman
3660 \series medium
3661 \shape up
3662 \size normal
3663 \emph off
3664 \bar no
3665 \noun off
3666 \color none
3667 これらすべてが役に立たないとすれば,
3668 \family default
3669 \series default
3670 \shape default
3671 \size default
3672 \emph on
3673 \bar default
3674 \noun default
3675 \color inherit
3676 ひょっとしたら
3677 \family roman
3678 \series medium
3679 \shape up
3680 \size normal
3681 \emph off
3682 \bar no
3683 \noun off
3684 \color none
3685 \SpecialChar LyX
3686 のバグを発見したのかもしれません‥‥.
3687 \end_layout
3688
3689 \begin_layout Chapter
3690 補完ツール
3691 \end_layout
3692
3693 \begin_layout Section
3694 Bib\SpecialChar TeX
3695
3696 \change_inserted 34634807 1499889868
3697
3698 \lang english
3699  or Biblatex
3700 \change_unchanged
3701
3702 \lang japanese
3703 よる書誌情報のカスタマイズ
3704 \end_layout
3705
3706 \begin_layout Standard
3707 Bib\SpecialChar TeX
3708
3709 \change_inserted 34634807 1499889904
3710
3711 \lang english
3712  or 
3713 \family sans
3714 Biblatex
3715 \family default
3716  
3717 \change_unchanged
3718
3719 \lang japanese
3720 の基本的な使用法は,『
3721 \emph on
3722 ユーザーの手引き
3723 \emph default
3724 』の「
3725 \emph on
3726 文献データベース
3727 \change_deleted 34634807 1499889896
3728 (Bib\SpecialChar TeX
3729 )
3730 \change_unchanged
3731
3732 \emph default
3733 」の節に説明があります.以下の各小節では,\SpecialChar LyX
3734 でサポートされている書誌情報の特別な機能について説明することとします.
3735 \end_layout
3736
3737 \begin_layout Subsection
3738 他の引用様式
3739 \end_layout
3740
3741 \begin_layout Standard
3742 標準のBib\SpecialChar TeX
3743
3744 \change_deleted 34634807 1499890024
3745 は,引用された著作を参照するのに,([12]のように)数字を使用します.しかし,多くの科学分野で,これとは異なる引用様式が用いられています.もっともよく見られる
3746 のは,著者-出版年様式(例:Knuth 1984a)です.\SpecialChar LyX
3747 は,この様式を提供する2つのパッケージ
3748 \begin_inset Flex Code
3749 status collapsed
3750
3751 \begin_layout Plain Layout
3752 natbib
3753 \end_layout
3754
3755 \end_inset
3756
3757
3758 \begin_inset Flex Code
3759 status collapsed
3760
3761 \begin_layout Plain Layout
3762 jurabib
3763 \end_layout
3764
3765 \end_inset
3766
3767 をサポートしています.これらのパッケージには,それぞれ長所短所がありますが,ここでは詳細に立ち入る紙幅がありません.単純な著者-出版年様式(あるいは著者-番号)
3768 様式が欲しい場合や,無数にある
3769 \begin_inset Flex Code
3770 status collapsed
3771
3772 \begin_layout Plain Layout
3773 natbib
3774 \end_layout
3775
3776 \end_inset
3777
3778 用スタイルファイルのうちどれかを使用したい場合には,定評のある
3779 \begin_inset Flex Code
3780 status collapsed
3781
3782 \begin_layout Plain Layout
3783 natbib
3784 \end_layout
3785
3786 \end_inset
3787
3788 パッケージがおそらくよい選択でしょう.短縮タイトルによる参照や
3789 \emph on
3790 ibid.
3791 \emph default
3792 など,特別な機能が必要な場合には,
3793 \begin_inset Flex Code
3794 status collapsed
3795
3796 \begin_layout Plain Layout
3797 jurabib
3798 \end_layout
3799
3800 \end_inset
3801
3802 パッケージの利用を考えるとよいかもしれません.
3803 \end_layout
3804
3805 \begin_layout Standard
3806
3807 \change_deleted 34634807 1499890024
3808 \SpecialChar LyX
3809 での両パッケージの取扱い方は,ほぼ同じです.
3810 \begin_inset Flex MenuItem
3811 status collapsed
3812
3813 \begin_layout Plain Layout
3814 文書\SpecialChar menuseparator
3815 設定
3816 \end_layout
3817
3818 \end_inset
3819
3820 メニューを開き,
3821 \begin_inset Flex MenuItem
3822 status collapsed
3823
3824 \begin_layout Plain Layout
3825 書誌情報
3826 \end_layout
3827
3828 \end_inset
3829
3830 項目から
3831 \begin_inset Flex MenuItem
3832 status collapsed
3833
3834 \begin_layout Plain Layout
3835 Natbib
3836 \end_layout
3837
3838 \end_inset
3839
3840 オプションか
3841 \begin_inset Flex MenuItem
3842 status collapsed
3843
3844 \begin_layout Plain Layout
3845 Jurabib
3846 \end_layout
3847
3848 \end_inset
3849
3850 オプションを選択してください.これらのパッケージによって,引用ダイアログに機能が追加され,参照の様式が選択できるようになります(「Knuth 1984」,「Kn
3851 uth (1984)」,「Knuth, 1984」,「1984」など).両パッケージは,専用にデザインされたスタイルファイルを必要とすることに注意してください.
3852 両者ともそれ自身のスタイルファイルを同梱していますが,他にもたくさんの追加スタイルファイルがありますし,
3853 \begin_inset Flex Code
3854 status collapsed
3855
3856 \begin_layout Plain Layout
3857 natbib
3858 \end_layout
3859
3860 \end_inset
3861
3862 に至っては,対話的なスタイルファイルビルダーさえ存在します
3863 \begin_inset Foot
3864 status collapsed
3865
3866 \begin_layout Plain Layout
3867 \begin_inset Flex URL
3868 status open
3869
3870 \begin_layout Plain Layout
3871
3872 ftp://ctan.tug.org/tex-archive/macros/latex/contrib/custom-bib/
3873 \end_layout
3874
3875 \end_inset
3876
3877 をご参照ください.
3878 \end_layout
3879
3880 \end_inset
3881
3882
3883 \change_inserted 34634807 1499890031
3884
3885 \end_layout
3886
3887 \begin_layout Standard
3888
3889 \change_inserted 34634807 1499890044
3890
3891 \lang english
3892 Standard Bib\SpecialChar TeX
3893  uses numbers (e.
3894 \begin_inset space \thinspace{}
3895 \end_inset
3896
3897 g.
3898 \begin_inset space \space{}
3899 \end_inset
3900
3901
3902 \begin_inset Quotes eld
3903 \end_inset
3904
3905 [12]
3906 \begin_inset Quotes erd
3907 \end_inset
3908
3909 ) to refer to a cited work.
3910  However, in many scientific disciplines, other citation styles are in use.
3911  The most common one is the author-year style (e.
3912 \begin_inset space \thinspace{}
3913 \end_inset
3914
3915 g.
3916 \begin_inset space \space{}
3917 \end_inset
3918
3919
3920 \begin_inset Quotes eld
3921 \end_inset
3922
3923 Knuth 1984a
3924 \begin_inset Quotes erd
3925 \end_inset
3926
3927 ).
3928  \SpecialChar LyX
3929  supports three packages that provide this style, 
3930 \begin_inset Flex Code
3931 status collapsed
3932
3933 \begin_layout Plain Layout
3934
3935 \change_inserted 34634807 1499890044
3936
3937 \lang english
3938 biblatex
3939 \end_layout
3940
3941 \end_inset
3942
3943
3944 \begin_inset Flex Code
3945 status collapsed
3946
3947 \begin_layout Plain Layout
3948
3949 \change_inserted 34634807 1499890044
3950
3951 \lang english
3952 natbib
3953 \end_layout
3954
3955 \end_inset
3956
3957 , and 
3958 \begin_inset Flex Code
3959 status collapsed
3960
3961 \begin_layout Plain Layout
3962
3963 \change_inserted 34634807 1499890044
3964
3965 \lang english
3966 jurabib
3967 \end_layout
3968
3969 \end_inset
3970
3971 .
3972  Each of these packages has their pros and cons, which cannot be listed
3973  in detail.
3974  If you only want to have simple author-year (or author-numerical) style,
3975  or if you want to use one of the countless style files for 
3976 \begin_inset Flex Code
3977 status collapsed
3978
3979 \begin_layout Plain Layout
3980
3981 \change_inserted 34634807 1499890044
3982
3983 \lang english
3984 natbib
3985 \end_layout
3986
3987 \end_inset
3988
3989 , then the established 
3990 \begin_inset Flex Code
3991 status collapsed
3992
3993 \begin_layout Plain Layout
3994
3995 \change_inserted 34634807 1499890044
3996
3997 \lang english
3998 natbib
3999 \end_layout
4000
4001 \end_inset
4002
4003  package is probably your choice.
4004  If you look for specific citation styles common in law studies, you might
4005  consider the 
4006 \begin_inset Flex Code
4007 status collapsed
4008
4009 \begin_layout Plain Layout
4010
4011 \change_inserted 34634807 1499890044
4012
4013 \lang english
4014 jurabib
4015 \end_layout
4016
4017 \end_inset
4018
4019  package.
4020  If you want to have full control over the formatting or look for advanced
4021  features such as ibidem, footnote citations, full title citations, advanced
4022  date formats (such as 400 BC) or full localization to other languages than
4023  English, you should definitely consider 
4024 \begin_inset Flex Code
4025 status collapsed
4026
4027 \begin_layout Plain Layout
4028
4029 \change_inserted 34634807 1499890044
4030
4031 \lang english
4032 biblatex
4033 \end_layout
4034
4035 \end_inset
4036
4037 , which exceeds all other packages in terms of features, but is also quite
4038  heavy and more resource-hungry.
4039 \end_layout
4040
4041 \begin_layout Standard
4042
4043 \change_inserted 34634807 1499890044
4044
4045 \lang english
4046 The handling of these packages in \SpecialChar LyX
4047  is basically the same.
4048  Go to 
4049 \begin_inset Flex Noun
4050 status collapsed
4051
4052 \begin_layout Plain Layout
4053
4054 \change_inserted 34634807 1499890044
4055
4056 \lang english
4057 Document\SpecialChar menuseparator
4058 Settings
4059 \end_layout
4060
4061 \end_inset
4062
4063  and select under 
4064 \begin_inset Flex Noun
4065 status collapsed
4066
4067 \begin_layout Plain Layout
4068
4069 \change_inserted 34634807 1499890044
4070
4071 \lang english
4072 Bibliography
4073 \end_layout
4074
4075 \end_inset
4076
4077  the 
4078 \begin_inset Flex Noun
4079 status collapsed
4080
4081 \begin_layout Plain Layout
4082
4083 \change_inserted 34634807 1499890044
4084
4085 \lang english
4086 Style Format
4087 \end_layout
4088
4089 \end_inset
4090
4091  
4092 \begin_inset Flex Noun
4093 status collapsed
4094
4095 \begin_layout Plain Layout
4096
4097 \change_inserted 34634807 1499890044
4098
4099 \lang english
4100 Biblatex
4101 \end_layout
4102
4103 \end_inset
4104
4105
4106 \begin_inset Flex Noun
4107 status collapsed
4108
4109 \begin_layout Plain Layout
4110
4111 \change_inserted 34634807 1499890044
4112
4113 \lang english
4114 Biblatex (Natbib mode)
4115 \end_layout
4116
4117 \end_inset
4118
4119
4120 \begin_inset Flex Noun
4121 status collapsed
4122
4123 \begin_layout Plain Layout
4124
4125 \change_inserted 34634807 1499890044
4126
4127 \lang english
4128 Natbib (BibTeX)
4129 \end_layout
4130
4131 \end_inset
4132
4133  or 
4134 \begin_inset Flex Noun
4135 status collapsed
4136
4137 \begin_layout Plain Layout
4138
4139 \change_inserted 34634807 1499890044
4140
4141 \lang english
4142 Jurabib (BibTeX)
4143 \end_layout
4144
4145 \end_inset
4146
4147  (see sec.
4148 \begin_inset space ~
4149 \end_inset
4150
4151 6.5.3 in the User's Guide for more information on these choices).
4152  With all these packages, you will get some extra features in the citation
4153  dialog and you can select the style of the reference (
4154 \begin_inset Quotes eld
4155 \end_inset
4156
4157 Knuth 1984
4158 \begin_inset Quotes erd
4159 \end_inset
4160
4161
4162 \begin_inset Quotes eld
4163 \end_inset
4164
4165 Knuth (1984)
4166 \begin_inset Quotes erd
4167 \end_inset
4168
4169
4170 \begin_inset Quotes eld
4171 \end_inset
4172
4173 Knuth, 1984
4174 \begin_inset Quotes erd
4175 \end_inset
4176
4177
4178 \begin_inset Quotes eld
4179 \end_inset
4180
4181 1984
4182 \begin_inset Quotes erd
4183 \end_inset
4184
4185  etc.).
4186  Note that either package needs specifically designed style files.
4187  They all ship their own, but there are lots of additional style files,
4188  and there is even an interactive style file builder
4189 \begin_inset Foot
4190 status collapsed
4191
4192 \begin_layout Plain Layout
4193
4194 \change_inserted 34634807 1499890044
4195
4196 \lang english
4197 See 
4198 \begin_inset Flex URL
4199 status open
4200
4201 \begin_layout Plain Layout
4202
4203 \change_inserted 34634807 1499890044
4204
4205 ftp://ctan.tug.org/tex-archive/macros/latex/contrib/custom-bib/
4206 \end_layout
4207
4208 \end_inset
4209
4210
4211 \end_layout
4212
4213 \end_inset
4214
4215  for 
4216 \begin_inset Flex Code
4217 status collapsed
4218
4219 \begin_layout Plain Layout
4220
4221 \change_inserted 34634807 1499890044
4222
4223 \lang english
4224 natbib
4225 \end_layout
4226
4227 \end_inset
4228
4229 .
4230 \change_unchanged
4231
4232 \end_layout
4233
4234 \begin_layout Subsection
4235 節分けされた書誌情報
4236 \change_inserted 34634807 1499890054
4237
4238 \lang english
4239 Subdivided Bibliographies
4240 \change_unchanged
4241
4242 \end_layout
4243
4244 \begin_layout Standard
4245 場合によっては,書誌情報をいくつかの節に分ける必要があることがあります.たとえば,あなたが歴史家であるとすれば,出典と学術文献を分ける機能は,おそらく「必需品」
4246 でさえあります.残念ながら,Bib\SpecialChar TeX
4247 自身ではこのようなことができません.しかし,適切な\SpecialChar LaTeX
4248 パッケージの助けを借りると,Bib\SpecialChar TeX
4249 をこのような必要性を満たすように拡張するこ
4250 とができます.
4251 \end_layout
4252
4253 \begin_layout Standard
4254 \SpecialChar LyX
4255 は,このようなパッケージの一つである
4256 \begin_inset Flex Code
4257 status collapsed
4258
4259 \begin_layout Plain Layout
4260 bibtopic
4261 \end_layout
4262
4263 \end_inset
4264
4265
4266 \begin_inset Foot
4267 status collapsed
4268
4269 \begin_layout Plain Layout
4270 \begin_inset Flex URL
4271 status open
4272
4273 \begin_layout Plain Layout
4274
4275 ftp://ctan.tug.org/tex-archive/macros/latex/contrib/bibtopic/
4276 \end_layout
4277
4278 \end_inset
4279
4280 から入手可能です.
4281 \end_layout
4282
4283 \end_inset
4284
4285 をそのままでサポートします.このパッケージの長所は,(
4286 \begin_inset Flex Code
4287 status collapsed
4288
4289 \begin_layout Plain Layout
4290 multibib
4291 \end_layout
4292
4293 \end_inset
4294
4295 のような他のパッケージと比較すると)新規の引用コマンドを定義する必要がないことです.そのかわりに,書誌情報の違う節には,その節向けの項目を収録した別の文献データ
4296 ベースを用意する必要があります.たとえば,書誌情報を「出典」の節と「学術文献」の節に分けたい場合には,それぞれの文献データベース,たとえば
4297 \begin_inset Flex Code
4298 status collapsed
4299
4300 \begin_layout Plain Layout
4301 souces.bib
4302 \end_layout
4303
4304 \end_inset
4305
4306
4307 \begin_inset Flex Code
4308 status collapsed
4309
4310 \begin_layout Plain Layout
4311 scientific.bib
4312 \end_layout
4313
4314 \end_inset
4315
4316 とを作成する必要があります.
4317 \end_layout
4318
4319 \begin_layout Standard
4320 \begin_inset Flex MenuItem
4321 status collapsed
4322
4323 \begin_layout Plain Layout
4324 文書\SpecialChar menuseparator
4325 設定
4326 \end_layout
4327
4328 \end_inset
4329
4330 を開いて
4331 \begin_inset Flex MenuItem
4332 status collapsed
4333
4334 \begin_layout Plain Layout
4335 書誌情報
4336 \end_layout
4337
4338 \end_inset
4339
4340 の下の
4341 \begin_inset Flex MenuItem
4342 status collapsed
4343
4344 \begin_layout Plain Layout
4345 節分けされた書誌情報
4346 \end_layout
4347
4348 \end_inset
4349
4350
4351 \change_inserted 34634807 1499890087
4352
4353 \lang english
4354
4355 \begin_inset Flex Noun
4356 status collapsed
4357
4358 \begin_layout Plain Layout
4359
4360 \change_inserted 34634807 1499890087
4361
4362 \lang english
4363 Subdivided bibliography
4364 \end_layout
4365
4366 \end_inset
4367
4368
4369 \change_unchanged
4370
4371 \lang japanese
4372 をチェックしてください.すると,書誌情報の各節に一つずつ,複数の書誌情報を挿入することができます.上記の例では,Bib\SpecialChar TeX
4373 書誌情報
4374 \begin_inset Flex Code
4375 status collapsed
4376
4377 \begin_layout Plain Layout
4378 sources.bib
4379 \end_layout
4380
4381 \end_inset
4382
4383 と二つめの文献データベース
4384 \begin_inset Flex Code
4385 status collapsed
4386
4387 \begin_layout Plain Layout
4388 scientific.bib
4389 \end_layout
4390
4391 \end_inset
4392
4393 を挿入します.各節に同じスタイルを用いるか異なるスタイルを用いるかは自由です.くわえて,書誌情報の節に,指定したデータベースの「引用されたすべての参照」を載せる
4394 (これが既定です)か,「引用されなかったすべての参照」を載せるか,あるいは「すべての参照」を載せるかを選択することができます.これは,もし書誌情報を「本文に引用
4395 された出典」・「本文に引用されていない出典」・「学術文献」の三つの節に分割したい場合に,便利でありましょう.各節の見出しは,通常の節や小節として入れることができ
4396 ます.
4397 \begin_inset Flex Code
4398 status collapsed
4399
4400 \begin_layout Plain Layout
4401 bibtopic
4402 \end_layout
4403
4404 \end_inset
4405
4406 は,書誌情報用の見出しを取り除いてしまいますので,手動でこれを追加しなくてはなりません(たとえば章*や節*などをお使いください).
4407 \change_inserted 34634807 1499890105
4408
4409 \end_layout
4410
4411 \begin_layout Standard
4412
4413 \change_inserted 34634807 1499890107
4414
4415 \lang english
4416 With 
4417 \family sans
4418 Biblatex
4419 \family default
4420 , the procedure is a bit different.
4421  Since 
4422 \family typewriter
4423 bibtopic
4424 \family default
4425  does not work with 
4426 \family sans
4427 Biblatex
4428 \family default
4429 , the aforementioned 
4430 \begin_inset Flex Noun
4431 status collapsed
4432
4433 \begin_layout Plain Layout
4434
4435 \change_inserted 34634807 1499890107
4436
4437 \lang english
4438 Subdivided bibliography
4439 \end_layout
4440
4441 \end_inset
4442
4443  option is disabled if you use 
4444 \family sans
4445 Biblatex
4446 \family default
4447 .
4448  However, 
4449 \family sans
4450 Biblatex
4451 \family default
4452  provides its own means to generate subdivided bibliographies.
4453  You can either add keywords to bibliography entries via the 
4454 \begin_inset Flex Code
4455 status collapsed
4456
4457 \begin_layout Plain Layout
4458
4459 \change_inserted 34634807 1499890107
4460
4461 \lang english
4462 keywords
4463 \end_layout
4464
4465 \end_inset
4466
4467  entry option and then filter bibliography sections by keyword (by adding
4468  
4469 \begin_inset Flex Code
4470 status collapsed
4471
4472 \begin_layout Plain Layout
4473
4474 \change_inserted 34634807 1499890107
4475
4476 \lang english
4477 keyword=mykeyword
4478 \end_layout
4479
4480 \end_inset
4481
4482  to the 
4483 \begin_inset Flex Noun
4484 status collapsed
4485
4486 \begin_layout Plain Layout
4487
4488 \change_inserted 34634807 1499890107
4489
4490 \lang english
4491 Options
4492 \end_layout
4493
4494 \end_inset
4495
4496  field of the dialog that opens if you right-click on the 
4497 \begin_inset Flex Noun
4498 status collapsed
4499
4500 \begin_layout Plain Layout
4501
4502 \change_inserted 34634807 1499890107
4503
4504 \lang english
4505 Biblatex Generated Bibliography
4506 \end_layout
4507
4508 \end_inset
4509
4510  button), or you can filter by entry types (such as 
4511 \emph on
4512 book
4513 \emph default
4514  or 
4515 \emph on
4516 article
4517 \emph default
4518 ) by entering e.
4519 \begin_inset space \thinspace{}
4520 \end_inset
4521
4522 g.
4523  
4524 \begin_inset Flex Code
4525 status collapsed
4526
4527 \begin_layout Plain Layout
4528
4529 \change_inserted 34634807 1499890107
4530
4531 \lang english
4532 type=book
4533 \end_layout
4534
4535 \end_inset
4536
4537  or 
4538 \begin_inset Flex Code
4539 status collapsed
4540
4541 \begin_layout Plain Layout
4542
4543 \change_inserted 34634807 1499890107
4544
4545 \lang english
4546 nottype=collection
4547 \end_layout
4548
4549 \end_inset
4550
4551  to the mentioned 
4552 \begin_inset Flex Noun
4553 status collapsed
4554
4555 \begin_layout Plain Layout
4556
4557 \change_inserted 34634807 1499890107
4558
4559 \lang english
4560 Options
4561 \end_layout
4562
4563 \end_inset
4564
4565  field, or you can create so-called 
4566 \begin_inset Quotes eld
4567 \end_inset
4568
4569 Bibliography Categories
4570 \begin_inset Quotes erd
4571 \end_inset
4572
4573  to which you can assign individual entries.
4574  Please refer to the Biblatex manual, section 
4575 \emph on
4576 Subdivided Bibliographies
4577 \emph default
4578 , for details.
4579 \change_unchanged
4580
4581 \end_layout
4582
4583 \begin_layout Subsection
4584
4585 \change_deleted 34634807 1499890126
4586 複数の書誌情報
4587 \end_layout
4588
4589 \begin_layout Standard
4590
4591 \change_deleted 34634807 1499890126
4592 文書の節ごとあるいは章ごとの書誌情報など,複数の書誌情報はBib\SpecialChar TeX
4593 自身ではサポートされていません.しかしながら,もし若干の
4594 \begin_inset Flex Code
4595 status collapsed
4596
4597 \begin_layout Plain Layout
4598 \SpecialChar TeX
4599 コード
4600 \end_layout
4601
4602 \end_inset
4603
4604 (第
4605 \begin_inset CommandInset ref
4606 LatexCommand ref
4607 reference "sec:LaTeXコードを挿入する"
4608
4609 \end_inset
4610
4611 節を参照)を利用することを厭わなければ,\SpecialChar LyX
4612 で節分けされた書誌情報を作るのに使用されている(前節を参照)
4613 \begin_inset Flex Code
4614 status collapsed
4615
4616 \begin_layout Plain Layout
4617 bibtopic
4618 \end_layout
4619
4620 \end_inset
4621
4622 パッケージが,この課題を解決する簡単な方法を提供します
4623 \begin_inset Foot
4624 status collapsed
4625
4626 \begin_layout Plain Layout
4627 ほかに,
4628 \begin_inset Flex Code
4629 status collapsed
4630
4631 \begin_layout Plain Layout
4632 chapterbib
4633 \end_layout
4634
4635 \end_inset
4636
4637
4638 \begin_inset Flex Code
4639 status collapsed
4640
4641 \begin_layout Plain Layout
4642 bibunits
4643 \end_layout
4644
4645 \end_inset
4646
4647 パッケージを利用する方法もあります.
4648 \end_layout
4649
4650 \end_inset
4651
4652
4653 \end_layout
4654
4655 \begin_layout Standard
4656
4657 \change_deleted 34634807 1499890126
4658 まず
4659 \begin_inset Flex MenuItem
4660 status collapsed
4661
4662 \begin_layout Plain Layout
4663 文書\SpecialChar menuseparator
4664 設定
4665 \end_layout
4666
4667 \end_inset
4668
4669 に行って
4670 \begin_inset Flex MenuItem
4671 status collapsed
4672
4673 \begin_layout Plain Layout
4674 書誌情報
4675 \end_layout
4676
4677 \end_inset
4678
4679 の下の
4680 \begin_inset Flex MenuItem
4681 status collapsed
4682
4683 \begin_layout Plain Layout
4684 節分けされた書誌情報
4685 \end_layout
4686
4687 \end_inset
4688
4689 を有効にしてください.つぎに文書中において,書誌情報(Bib\SpecialChar TeX
4690 書誌情報本体を含む)の入った節を
4691 \begin_inset Flex Code
4692 status collapsed
4693
4694 \begin_layout Plain Layout
4695
4696 \backslash
4697 begin{btUnit}
4698 \end_layout
4699
4700 \end_inset
4701
4702
4703 \begin_inset Flex Code
4704 status collapsed
4705
4706 \begin_layout Plain Layout
4707
4708 \backslash
4709 end{btUnit}
4710 \end_layout
4711
4712 \end_inset
4713
4714 のあいだにはさまなくてはなりません(これらのコマンドは\SpecialChar TeX
4715 コードとして挿入する必要があります).書誌情報には,現在位置の
4716 \begin_inset Flex Code
4717 status collapsed
4718
4719 \begin_layout Plain Layout
4720 btUnit
4721 \end_layout
4722
4723 \end_inset
4724
4725 において引用されたすべての参照が含まれることになります.
4726 \series bold
4727 (註)
4728 \series default
4729 この方法を用いる場合には,すべての参照はいずれかの
4730 \begin_inset Flex Code
4731 status collapsed
4732
4733 \begin_layout Plain Layout
4734 btUnit
4735 \end_layout
4736
4737 \end_inset
4738
4739 内部になくてはなりません.また,
4740 \begin_inset Flex Code
4741 status collapsed
4742
4743 \begin_layout Plain Layout
4744 btUnit
4745 \end_layout
4746
4747 \end_inset
4748
4749 は入れ子構造にすることができません.
4750 \change_inserted 34634807 1499890142
4751
4752 \end_layout
4753
4754 \begin_layout Standard
4755
4756 \change_inserted 34634807 1499890144
4757
4758 \lang english
4759 Multiple bibliographies, e.
4760 \begin_inset space \thinspace{}
4761 \end_inset
4762
4763 g.
4764 \begin_inset space \space{}
4765 \end_inset
4766
4767 a bibliography for each part, chapter, section, subsection or child (sub-documen
4768 t) of the document, are also supported by \SpecialChar LyX
4769 .
4770  In order to enable it, go to 
4771 \begin_inset Flex Noun
4772 status collapsed
4773
4774 \begin_layout Plain Layout
4775
4776 \change_inserted 34634807 1499890144
4777
4778 \lang english
4779 Document\SpecialChar menuseparator
4780 Settings\SpecialChar menuseparator
4781 Bibliography
4782 \end_layout
4783
4784 \end_inset
4785
4786  and select the relevant unit (e.
4787 \begin_inset space \thinspace{}
4788 \end_inset
4789
4790 g., 
4791 \begin_inset Quotes eld
4792 \end_inset
4793
4794 per section
4795 \begin_inset Quotes erd
4796 \end_inset
4797
4798 ) in the 
4799 \begin_inset Flex Noun
4800 status collapsed
4801
4802 \begin_layout Plain Layout
4803
4804 \change_inserted 34634807 1499890144
4805
4806 \lang english
4807 Multiple Bibliographies
4808 \end_layout
4809
4810 \end_inset
4811
4812  combo box.
4813  Then add a Bib(la)\SpecialChar TeX
4814  bibliography to each unit (e.
4815 \begin_inset space \thinspace{}
4816 \end_inset
4817
4818 g., section) of your document.
4819  In the output, a separate bibliography, containing only the references
4820  done in the current unit is generated.
4821 \end_layout
4822
4823 \begin_layout Standard
4824
4825 \change_inserted 34634807 1499890144
4826
4827 \lang english
4828 If you use Bib\SpecialChar TeX
4829 , either the 
4830 \begin_inset Flex Code
4831 status collapsed
4832
4833 \begin_layout Plain Layout
4834
4835 \change_inserted 34634807 1499890144
4836
4837 \lang english
4838 chapterbib
4839 \end_layout
4840
4841 \end_inset
4842
4843  of the 
4844 \begin_inset Flex Code
4845 status collapsed
4846
4847 \begin_layout Plain Layout
4848
4849 \change_inserted 34634807 1499890144
4850
4851 \lang english
4852 bibtopic
4853 \end_layout
4854
4855 \end_inset
4856
4857  package is used to create multiple bibliographies.
4858  The former package is used if you select 
4859 \begin_inset Quotes eld
4860 \end_inset
4861
4862 per child document
4863 \begin_inset Quotes erd
4864 \end_inset
4865
4866  and do 
4867 \emph on
4868 not
4869 \emph default
4870  check 
4871 \begin_inset Flex Noun
4872 status collapsed
4873
4874 \begin_layout Plain Layout
4875
4876 \change_inserted 34634807 1499890144
4877
4878 \lang english
4879 Sectioned Bibliography
4880 \end_layout
4881
4882 \end_inset
4883
4884 .
4885  In all other cases, 
4886 \begin_inset Flex Code
4887 status collapsed
4888
4889 \begin_layout Plain Layout
4890
4891 \change_inserted 34634807 1499890144
4892
4893 \lang english
4894 bibtopic
4895 \end_layout
4896
4897 \end_inset
4898
4899  is used.
4900 \begin_inset Foot
4901 status collapsed
4902
4903 \begin_layout Plain Layout
4904
4905 \change_inserted 34634807 1499890144
4906
4907 \lang english
4908 An alternative approach, if you are willing to use some 
4909 \begin_inset Flex Noun
4910 status collapsed
4911
4912 \begin_layout Plain Layout
4913
4914 \change_inserted 34634807 1499890144
4915
4916 \lang english
4917 \SpecialChar TeX
4918  Code
4919 \end_layout
4920
4921 \end_inset
4922
4923  (see section
4924 \begin_inset space ~
4925 \end_inset
4926
4927
4928 \begin_inset CommandInset ref
4929 LatexCommand ref
4930 reference "sec:Inserting-TeX-Code"
4931
4932 \end_inset
4933
4934 ), is to use the 
4935 \begin_inset Flex Code
4936 status collapsed
4937
4938 \begin_layout Plain Layout
4939
4940 \change_inserted 34634807 1499890144
4941
4942 \lang english
4943 bibunits
4944 \end_layout
4945
4946 \end_inset
4947
4948  package.
4949 \end_layout
4950
4951 \end_inset
4952
4953  If 
4954 \begin_inset Flex Code
4955 status collapsed
4956
4957 \begin_layout Plain Layout
4958
4959 \change_inserted 34634807 1499890144
4960
4961 \lang english
4962 bibtopic
4963 \end_layout
4964
4965 \end_inset
4966
4967  is used, \SpecialChar LyX
4968  encloses the specified units in 
4969 \begin_inset Flex Code
4970 status collapsed
4971
4972 \begin_layout Plain Layout
4973
4974 \change_inserted 34634807 1499890144
4975
4976 \lang english
4977 bibtopic
4978 \end_layout
4979
4980 \end_inset
4981
4982 's 
4983 \begin_inset Flex Code
4984 status collapsed
4985
4986 \begin_layout Plain Layout
4987
4988 \change_inserted 34634807 1499890144
4989
4990 \lang english
4991
4992 \backslash
4993 begin{btUnit}
4994 \end_layout
4995
4996 \end_inset
4997
4998  and 
4999 \begin_inset Flex Code
5000 status collapsed
5001
5002 \begin_layout Plain Layout
5003
5004 \change_inserted 34634807 1499890144
5005
5006 \lang english
5007
5008 \backslash
5009 end{btUnit}
5010 \end_layout
5011
5012 \end_inset
5013
5014  in order to create the units.
5015  Note that this approach has some limitations.
5016  First, every citation reference has to be inside some 
5017 \begin_inset Flex Code
5018 status collapsed
5019
5020 \begin_layout Plain Layout
5021
5022 \change_inserted 34634807 1499890144
5023
5024 \lang english
5025 btUnit
5026 \end_layout
5027
5028 \end_inset
5029
5030 .
5031  So citations outside a defined unit (e.
5032 \begin_inset space \thinspace{}
5033 \end_inset
5034
5035 g., before the first section if you use 
5036 \begin_inset Quotes eld
5037 \end_inset
5038
5039 by section
5040 \begin_inset Quotes erd
5041 \end_inset
5042
5043 ) will appear as 
5044 \begin_inset Quotes eld
5045 \end_inset
5046
5047 ???
5048 \begin_inset Quotes erd
5049 \end_inset
5050
5051 .
5052  You can also create your own units by entering 
5053 \begin_inset Flex Code
5054 status collapsed
5055
5056 \begin_layout Plain Layout
5057
5058 \change_inserted 34634807 1499890144
5059
5060 \lang english
5061
5062 \backslash
5063 begin{btUnit}
5064 \end_layout
5065
5066 \end_inset
5067
5068  and 
5069 \begin_inset Flex Code
5070 status collapsed
5071
5072 \begin_layout Plain Layout
5073
5074 \change_inserted 34634807 1499890144
5075
5076 \lang english
5077
5078 \backslash
5079 end{btUnit}
5080 \end_layout
5081
5082 \end_inset
5083
5084  as \SpecialChar TeX
5085  code (for instance to work around the mentioned limitation).
5086  Note, though, that 
5087 \begin_inset Flex Code
5088 status collapsed
5089
5090 \begin_layout Plain Layout
5091
5092 \change_inserted 34634807 1499890144
5093
5094 \lang english
5095 btUnit
5096 \end_layout
5097
5098 \end_inset
5099
5100 s cannot be nested.
5101  A second limitation is that 
5102 \begin_inset Flex Code
5103 status collapsed
5104
5105 \begin_layout Plain Layout
5106
5107 \change_inserted 34634807 1499890144
5108
5109 \lang english
5110 bibtopic
5111 \end_layout
5112
5113 \end_inset
5114
5115  always processes all references of a bibliography database, even if they
5116  are not cited.
5117  This can result in odd labels (e.
5118 \begin_inset space \thinspace{}
5119 \end_inset
5120
5121 g.
5122  
5123 \begin_inset Quotes eld
5124 \end_inset
5125
5126 Miller 2014b
5127 \begin_inset Quotes erd
5128 \end_inset
5129
5130  if two works of this author from 2014 are in the database, even if only
5131  one is cited).
5132 \end_layout
5133
5134 \begin_layout Standard
5135
5136 \change_inserted 34634807 1499890144
5137
5138 \lang english
5139 If you use 
5140 \family sans
5141 Biblatex
5142 \family default
5143 , the 
5144 \begin_inset Flex Code
5145 status collapsed
5146
5147 \begin_layout Plain Layout
5148
5149 \change_inserted 34634807 1499890144
5150
5151 \lang english
5152 refsection
5153 \end_layout
5154
5155 \end_inset
5156
5157  option is used instead.
5158  If you need specific units, you can start them with the \SpecialChar TeX
5159  code 
5160 \begin_inset Flex Code
5161 status collapsed
5162
5163 \begin_layout Plain Layout
5164
5165 \change_inserted 34634807 1499890144
5166
5167 \lang english
5168
5169 \backslash
5170 newrefsection
5171 \end_layout
5172
5173 \end_inset
5174
5175  or 
5176 \begin_inset Flex Code
5177 status collapsed
5178
5179 \begin_layout Plain Layout
5180
5181 \change_inserted 34634807 1499890144
5182
5183 \lang english
5184
5185 \backslash
5186 newrefsegment
5187 \end_layout
5188
5189 \end_inset
5190
5191 , respectively.
5192  If you also want to control the end of the unit, use the environment 
5193 \begin_inset Flex Code
5194 status collapsed
5195
5196 \begin_layout Plain Layout
5197
5198 \change_inserted 34634807 1499890144
5199
5200 \lang english
5201
5202 \backslash
5203 begin{refsection}
5204 \end_layout
5205
5206 \end_inset
5207
5208  \SpecialChar ldots
5209  
5210 \begin_inset Flex Code
5211 status collapsed
5212
5213 \begin_layout Plain Layout
5214
5215 \change_inserted 34634807 1499890144
5216
5217 \lang english
5218
5219 \backslash
5220 end{refsection}
5221 \end_layout
5222
5223 \end_inset
5224
5225  instead.
5226  Note, though, that 
5227 \begin_inset Flex Code
5228 status collapsed
5229
5230 \begin_layout Plain Layout
5231
5232 \change_inserted 34634807 1499890144
5233
5234 \lang english
5235 refsection
5236 \end_layout
5237
5238 \end_inset
5239
5240 s cannot be nested.
5241  In addition to the individual bibliography of the current unit, 
5242 \family sans
5243 Biblatex
5244 \family default
5245  also provides an easy way to output all bibliographies, subsequently, at
5246  one place (e.
5247 \begin_inset space \thinspace{}
5248 \end_inset
5249
5250 g., at the end of the document).
5251  Select 
5252 \begin_inset Quotes eld
5253 \end_inset
5254
5255 all reference units
5256 \begin_inset Quotes erd
5257 \end_inset
5258
5259  from the Content combo box of the Bib(la)TeX inset dialog in order to achieve
5260  this.
5261  Please refer to the 
5262 \family sans
5263 Biblatex
5264 \family default
5265  manual for more information on this topic.
5266 \change_unchanged
5267
5268 \end_layout
5269
5270 \begin_layout Section
5271 複合文書
5272 \end_layout
5273
5274 \begin_layout Subsection
5275 一般的な操作
5276 \end_layout
5277
5278 \begin_layout Standard
5279 たくさんの節を含んだ大きなファイルで作業をする場合,文書をいくつかのファイルに分割した方が往々にして便利ですし,場合によっては,表部分にはしょっちゅう変更が加え
5280 られるけれども,その前の文章はつねに同じであるようなケースもあるでしょう.このような場合には,複合文書を利用することを,まずご検討ください.たとえば,科学論文は
5281 通常,導入部・所見・結果・議論・結論の五つの節から成ります.これら各節を別々の\SpecialChar LyX
5282 ファイルにして,タイトル・著者・概要・書誌情報等と,これら五つのインクルード
5283 \begin_inset Foot
5284 status collapsed
5285
5286 \begin_layout Plain Layout
5287
5288 \series bold
5289 (訳註)
5290 \series default
5291 「取り込む」の意です.原語「include」に対する訳語として,プログラミング用語の「インクルードする」以外に適語がないので,ここではプログラミング用語をそのま
5292 ま使用します.
5293 \end_layout
5294
5295 \end_inset
5296
5297 ファイルを持つ,もう一つ別の「マスター」ファイルを作成するようにすることができます.これらの各ファイルは,単にマスターファイルにインクルードされるだけでなく,単
5298 独でも出力したり印刷したりすることのできる完全な\SpecialChar LyX
5299 ファイルであるように注意することが重要です.しかも,これらの各ファイルは,同じ文書クラスでなくてはなりません.a
5300 rticleクラスとbookクラスを混在させるようなことはなさらないでください.\SpecialChar LaTeX
5301 ファイルをインクルードすることもできますが,このファイルにはプリアンブルがあって
5302 はなりません(
5303 \begin_inset Flex Code
5304 status collapsed
5305
5306 \begin_layout Plain Layout
5307
5308 \backslash
5309 begin{document}
5310 \end_layout
5311
5312 \end_inset
5313
5314 行とその前のすべて,および
5315 \begin_inset Flex Code
5316 status collapsed
5317
5318 \begin_layout Plain Layout
5319
5320 \backslash
5321 end{document}行
5322 \end_layout
5323
5324 \end_inset
5325
5326 は削除しておかなければなりません).さもないと,DVIファイルを作成する際にエラーが発生するでしょう.
5327 \end_layout
5328
5329 \begin_layout Standard
5330 \SpecialChar LyX
5331 では,
5332 \family sans
5333 挿入\SpecialChar menuseparator
5334 ファイル\SpecialChar menuseparator
5335 子文書
5336 \family default
5337 で簡単にファイルをインクルードすることができます.このメニューを選んでクリックすると,カーソルの現在位置に小さな枠が挿入されます.この枠をクリックすると,ダイア
5338 ログが現れるので,そこでインクルードするファイルとインクルード方法を選択することができます.
5339 \end_layout
5340
5341 \begin_layout Standard
5342 ファイル選択ボックスは,いまや自明でしょう.インクルード方法には,「include」・「input」・「verbatim」の三つがあります.「include」と
5343 「input」の違いは,正確には\SpecialChar LaTeX
5344 の達人にしか意味のないものですが,ほとんどの人にとって意味のある違いといえば,「include」されたファイルは新規頁から組版さ
5345 れるのに対し,「input」されたファイルは現在のページから組版される点です.
5346 \end_layout
5347
5348 \begin_layout Standard
5349 一般に,マスターファイルは,組版前に完全な\SpecialChar LaTeX
5350 ファイルに変換されますが,インクルードされるファイルは,プリアンブル情報をまったく持たない\SpecialChar LaTeX
5351 ファイルに変換されます.
5352 \end_layout
5353
5354 \begin_layout Standard
5355 「verbatim」インクルードファイルでは,ファイルの内容がそのまま(つまり「
5356 \begin_inset Flex Code
5357 status collapsed
5358
5359 \begin_layout Plain Layout
5360 verbatim
5361 \end_layout
5362
5363 \end_inset
5364
5365 」モードで)固定幅タイプライタフォントで組版されます.通常,このファイルの空白は,通常の\SpecialChar LyX
5366 での空白の取扱いとは違って,連続した複数の空白がそのまま出力されるものの
5367 ,単なる見えない空白です.ただし,
5368 \family sans
5369
5370 \begin_inset Flex MenuItem
5371 status collapsed
5372
5373 \begin_layout Plain Layout
5374
5375 \family sans
5376 出力の空白に印付けをする
5377 \end_layout
5378
5379 \end_inset
5380
5381
5382 \family default
5383 チェックボックスを有効にすると,空白が存在することを明確にするために空白の印が出力されます.
5384 \end_layout
5385
5386 \begin_layout Subsection
5387 ファイル間の相互参照
5388 \end_layout
5389
5390 \begin_layout Standard
5391 \begin_inset Box Shadowbox
5392 position "t"
5393 hor_pos "c"
5394 has_inner_box 1
5395 inner_pos "t"
5396 use_parbox 0
5397 use_makebox 0
5398 width "100col%"
5399 special "none"
5400 height "1in"
5401 height_special "totalheight"
5402 thickness "0.4pt"
5403 separation "3pt"
5404 shadowsize "4pt"
5405 framecolor "black"
5406 backgroundcolor "none"
5407 status open
5408
5409 \begin_layout Plain Layout
5410 この節の内容は,すでに古くなっています.既定のマスター文書についてと,マスターが開いているときに子文書をどう開くかについて記述する必要があります.[[要修正]]
5411 \end_layout
5412
5413 \end_inset
5414
5415
5416 \end_layout
5417
5418 \begin_layout Standard
5419 異なるファイル間に相互参照を設定することも可能です.まず,すべての関係するファイルを開いてください.例として,2つのファイルを扱う場合を考え,各ファイルをA・B
5420 と呼びます.BがAにインクルードされるファイルだとします.Aにラベルを入れて,Bで参照したいとしましょう.文書Bで相互参照ダイアログを開いて,使用する「バッファ
5421 」を選んでください.
5422 \end_layout
5423
5424 \begin_layout Subsection
5425 すべての子文書での書誌情報
5426 \end_layout
5427
5428 \begin_layout Standard
5429 \begin_inset Box Shadowbox
5430 position "t"
5431 hor_pos "c"
5432 has_inner_box 1
5433 inner_pos "t"
5434 use_parbox 0
5435 use_makebox 0
5436 width "100col%"
5437 special "none"
5438 height "1in"
5439 height_special "totalheight"
5440 thickness "0.4pt"
5441 separation "3pt"
5442 shadowsize "4pt"
5443 framecolor "black"
5444 backgroundcolor "none"
5445 status open
5446
5447 \begin_layout Plain Layout
5448 この節も更新が必要です.この点に関する内容がwikiにあるので,それをここにコピーすることも可か.
5449 \end_layout
5450
5451 \end_inset
5452
5453
5454 \end_layout
5455
5456 \begin_layout Standard
5457 すべての子文書の全文献項目を含んだ書誌情報一覧をコピーし,それをコメントに変更してください.このようにすることで,\SpecialChar LyX
5458 は.bibファイルを見つけることができ,書誌情報
5459 一覧を見えるようにせずとも簡単に参照を挿入することができるようになります.
5460 \end_layout
5461
5462 \begin_layout Standard
5463 書誌情報一覧がコメントにあるために,\SpecialChar LaTeX
5464 はそれを使用しないので,参照は[1]のようには表示されないで[?]のように表示されます.ひとつの解決法として,コメントをイン
5465 クルードする\SpecialChar LaTeX
5466 パッケージの
5467 \begin_inset Flex Code
5468 status collapsed
5469
5470 \begin_layout Plain Layout
5471 comment
5472 \end_layout
5473
5474 \end_inset
5475
5476 を使用して,ファイルを別々に処理する方法があります.そのためには,すべての子文書のプリアンブルに以下を書き加えてください.
5477 \end_layout
5478
5479 \begin_layout LyX-Code
5480
5481 \backslash
5482 usepackage{comment}
5483 \end_layout
5484
5485 \begin_layout LyX-Code
5486
5487 \backslash
5488 includecomment{comment}
5489 \end_layout
5490
5491 \begin_layout Standard
5492 \begin_inset Flex URL
5493 status collapsed
5494
5495 \begin_layout Plain Layout
5496
5497 http://wiki.lyx.org/FAQ/Unsorted#toc31
5498 \end_layout
5499
5500 \end_inset
5501
5502 も参照してください.
5503 \end_layout
5504
5505 \begin_layout Section
5506 \SpecialChar LyX
5507 書庫
5508 \end_layout
5509
5510 \begin_layout Standard
5511 しばしばユーザーは,出版社に送ったり,共著者とやりとりするために,\SpecialChar LyX
5512 ファイルを,その依存する全画像(及び他のファイル)と「同梱」する必要に迫られることがあります.\SpecialChar LyX
5513
5514  2.0には,この過程を自動化するPythonスクリプト(
5515 \begin_inset Flex Code
5516 status collapsed
5517
5518 \begin_layout Plain Layout
5519 lyxpak.py
5520 \end_layout
5521
5522 \end_inset
5523
5524 )が含まれています.これを使うには,
5525 \begin_inset Flex Code
5526 status collapsed
5527
5528 \begin_layout Plain Layout
5529 zipfile
5530 \end_layout
5531
5532 \end_inset
5533
5534  pythonモジュールまたは
5535 \begin_inset Flex Code
5536 status collapsed
5537
5538 \begin_layout Plain Layout
5539 tarfile
5540 \end_layout
5541
5542 \end_inset
5543
5544  pythonモジュールが,システムに導入済みであることが必要です.既定設定では,Unix系システムでは,
5545 \begin_inset Flex Code
5546 status collapsed
5547
5548 \begin_layout Plain Layout
5549 gzip
5550 \end_layout
5551
5552 \end_inset
5553
5554 圧縮
5555 \begin_inset Flex Code
5556 status collapsed
5557
5558 \begin_layout Plain Layout
5559 tar
5560 \end_layout
5561
5562 \end_inset
5563
5564 ファイル形式が優先され,Windowsでは
5565 \begin_inset Flex Code
5566 status collapsed
5567
5568 \begin_layout Plain Layout
5569 zip
5570 \end_layout
5571
5572 \end_inset
5573
5574 形式が優先されます.
5575 \end_layout
5576
5577 \begin_layout Standard
5578 \SpecialChar LyX
5579 の環境構成時には,「\SpecialChar LyX
5580 書庫」を書き出すことができるようにスクリプトが準備され,
5581 \begin_inset Flex MenuItem
5582 status collapsed
5583
5584 \begin_layout Plain Layout
5585 ファイル\SpecialChar menuseparator
5586 書き出し
5587 \end_layout
5588
5589 \end_inset
5590
5591 の下で利用可能となります.
5592 \end_layout
5593
5594 \begin_layout Standard
5595 \begin_inset Flex MenuItem
5596 status collapsed
5597
5598 \begin_layout Plain Layout
5599 ツール\SpecialChar menuseparator
5600 設定\SpecialChar menuseparator
5601 ファイル処理\SpecialChar menuseparator
5602 変換子
5603 \end_layout
5604
5605 \end_inset
5606
5607
5608 \begin_inset Flex MenuItem
5609 status collapsed
5610
5611 \begin_layout Plain Layout
5612 \SpecialChar LyX
5613 \SpecialChar menuseparator
5614 \SpecialChar LyX
5615 書庫
5616 \end_layout
5617
5618 \end_inset
5619
5620 変換子に,
5621 \begin_inset Flex Code
5622 status collapsed
5623
5624 \begin_layout Plain Layout
5625 -t
5626 \end_layout
5627
5628 \end_inset
5629
5630 スイッチや
5631 \begin_inset Flex Code
5632 status collapsed
5633
5634 \begin_layout Plain Layout
5635 -z
5636 \end_layout
5637
5638 \end_inset
5639
5640 スイッチを加えることで,プラットホームとは独立に,
5641 \begin_inset Flex Code
5642 status collapsed
5643
5644 \begin_layout Plain Layout
5645 tar
5646 \end_layout
5647
5648 \end_inset
5649
5650 形式や
5651 \begin_inset Flex Code
5652 status collapsed
5653
5654 \begin_layout Plain Layout
5655 zip
5656 \end_layout
5657
5658 \end_inset
5659
5660 形式を強制することができます(スイッチは,スクリプト名の前ではなく,後ろに加えてください).
5661 \end_layout
5662
5663 \begin_layout Section
5664 装飾的なヘッダ・フッタ
5665 \end_layout
5666
5667 \begin_layout Standard
5668 既定のページレイアウトは,どちらかといえば素っ気ないものです.
5669 \begin_inset Flex Code
5670 status collapsed
5671
5672 \begin_layout Plain Layout
5673 article
5674 \end_layout
5675
5676 \end_inset
5677
5678 文書クラスの場合には,ページの下の真ん中にページ番号がつくだけです.この取扱説明書はKOMA-scriptのbookクラスなので,すこしは凝ってますが,ほんとう
5679 に着飾るには,『
5680 \emph on
5681 ユーザーの手引き
5682 \emph default
5683 』に述べられているように,文書ページスタイルを「装飾的(fancy)」に設定する必要があります.この節では,望んだとおりの効果を得るために,\SpecialChar LaTeX
5684 プリアンブルに挿入す
5685 る必要のある\SpecialChar LaTeX
5686 コードについて解説します.
5687 \end_layout
5688
5689 \begin_layout Standard
5690 ページへッダは,「left(左)」・「center(中央)」・「right(右)」と命名された3つのフィールドに分けられています.フッタも同様に3つのフィールド
5691 に分類されています.これらのフィールドをもっとも簡単に設定する\SpecialChar LaTeX
5692 コマンドには,
5693 \family typewriter
5694
5695 \begin_inset Flex Code
5696 status collapsed
5697
5698 \begin_layout Plain Layout
5699
5700 \family typewriter
5701
5702 \backslash
5703 lhead
5704 \end_layout
5705
5706 \end_inset
5707
5708
5709 \family default
5710
5711 \family typewriter
5712
5713 \begin_inset Flex Code
5714 status collapsed
5715
5716 \begin_layout Plain Layout
5717
5718 \family typewriter
5719
5720 \backslash
5721 chead
5722 \end_layout
5723
5724 \end_inset
5725
5726
5727 \family default
5728
5729 \family typewriter
5730
5731 \begin_inset Flex Code
5732 status collapsed
5733
5734 \begin_layout Plain Layout
5735
5736 \family typewriter
5737
5738 \backslash
5739 rhead
5740 \end_layout
5741
5742 \end_inset
5743
5744
5745 \family default
5746
5747 \begin_inset Flex Code
5748 status collapsed
5749
5750 \begin_layout Plain Layout
5751
5752 \backslash
5753 lfoot
5754 \end_layout
5755
5756 \end_inset
5757
5758 などがあります.かりに,各ページの左上端に自分の名前を入れたいものとしましょう.次のようなコマンドをプリアンブルに入れるだけです.
5759 \end_layout
5760
5761 \begin_layout Standard
5762
5763 \family typewriter
5764
5765 \backslash
5766 lhead{物書 はじめ}
5767 \end_layout
5768
5769 \begin_layout Standard
5770 これで自分の名前が左上に現れます.フィールドに取り除きたい既定の内容がある場合(往々にして中央のフッタにはページ番号が入ります)には,空の引数を持つコマンドを入
5771 れるだけです.すなわち,
5772 \end_layout
5773
5774 \begin_layout Standard
5775
5776 \family typewriter
5777
5778 \backslash
5779 cfoot{}
5780 \begin_inset Newline newline
5781 \end_inset
5782
5783
5784 \family default
5785 とします.
5786 \end_layout
5787
5788 \begin_layout Standard
5789 もっと美しくしてみましょう.節番号を「第‥節」という言葉といっしょに(第3節のように)左上に入れ,ページ番号を(4ページのように)右上に,自分の名前を左下に,日
5790 付を右下に入れます.以下のコマンドをプリアンブルに入れます.
5791 \end_layout
5792
5793 \begin_layout Standard
5794
5795 \family typewriter
5796
5797 \backslash
5798 lhead{第
5799 \backslash
5800 thesection 節}
5801 \end_layout
5802
5803 \begin_layout Standard
5804
5805 \family typewriter
5806
5807 \backslash
5808 chead{}
5809 \end_layout
5810
5811 \begin_layout Standard
5812
5813 \family typewriter
5814
5815 \backslash
5816 rhead{
5817 \backslash
5818 thepage ページ}
5819 \end_layout
5820
5821 \begin_layout Standard
5822
5823 \family typewriter
5824
5825 \backslash
5826 lfoot{物書 はじめ}
5827 \end_layout
5828
5829 \begin_layout Standard
5830
5831 \family typewriter
5832
5833 \backslash
5834 cfoot{}
5835 \end_layout
5836
5837 \begin_layout Standard
5838
5839 \family typewriter
5840
5841 \backslash
5842 rfoot{
5843 \backslash
5844 today}
5845 \end_layout
5846
5847 \begin_layout Standard
5848 コマンド
5849 \family typewriter
5850
5851 \begin_inset Flex Code
5852 status collapsed
5853
5854 \begin_layout Plain Layout
5855
5856 \family typewriter
5857
5858 \backslash
5859 thesecti
5860 \family default
5861 o
5862 \family typewriter
5863 n
5864 \end_layout
5865
5866 \end_inset
5867
5868
5869 \family default
5870
5871 \begin_inset Flex Code
5872 status collapsed
5873
5874 \begin_layout Plain Layout
5875
5876 \family typewriter
5877
5878 \backslash
5879 thepa
5880 \family default
5881 ge
5882 \end_layout
5883
5884 \end_inset
5885
5886 は,それぞれ\SpecialChar LaTeX
5887 の節カウンタおよびページカウンタを取得するもので,これによって現在の節番号とページ番号を印字します.
5888 \begin_inset Flex Code
5889 status collapsed
5890
5891 \begin_layout Plain Layout
5892
5893 \family typewriter
5894
5895 \backslash
5896 tod
5897 \family default
5898 ay
5899 \end_layout
5900
5901 \end_inset
5902
5903 は,今日の日付を印字するものです.
5904 \end_layout
5905
5906 \begin_layout Standard
5907 へッダ下またはフッタ上に描かれる罫線の太さも変更することができます.もし罫線が必要なければ,太さを0にしてください.ヘッダ罫線は,既定では0.4ptの太さであり,
5908 フッタ罫線は0ptです.太さを変更するには,
5909 \family typewriter
5910
5911 \begin_inset Flex Code
5912 status collapsed
5913
5914 \begin_layout Plain Layout
5915
5916 \family typewriter
5917
5918 \backslash
5919 renewcommand{
5920 \backslash
5921 headrulewidth}{0.4pt}
5922 \end_layout
5923
5924 \end_inset
5925
5926
5927 \family default
5928
5929 \family typewriter
5930
5931 \begin_inset Flex Code
5932 status collapsed
5933
5934 \begin_layout Plain Layout
5935
5936 \family typewriter
5937
5938 \backslash
5939 renewcommand{
5940 \backslash
5941 footrulewidth}{0.4pt}
5942 \end_layout
5943
5944 \end_inset
5945
5946
5947 \family default
5948 のようなコマンドを使用してください.
5949 \end_layout
5950
5951 \begin_layout Standard
5952 \begin_inset Flex Code
5953 status collapsed
5954
5955 \begin_layout Plain Layout
5956
5957 \family typewriter
5958
5959 \backslash
5960 thispagestyle{empty}
5961 \end_layout
5962
5963 \end_inset
5964
5965
5966 \begin_inset Flex Code
5967 status collapsed
5968
5969 \begin_layout Plain Layout
5970
5971 \family typewriter
5972
5973 \backslash
5974 thispagestyle{plain}
5975 \end_layout
5976
5977 \end_inset
5978
5979
5980 \begin_inset Flex Code
5981 status collapsed
5982
5983 \begin_layout Plain Layout
5984
5985 \family typewriter
5986
5987 \backslash
5988 thispagestyle{fancy}
5989 \end_layout
5990
5991 \end_inset
5992
5993 のようなコマンドを使えば,各ページごとにへッダ・フッタ設定を有効にしたり無効にしたりすることができます.設定を変更したいページに,これらのコマンドを\SpecialChar TeX
5994 コードとして
5995 挿入してください.実は,タイトルページは,その後のページは大域的に装飾的(fancy)に設定されていれば装飾的(fancy)になるにもかかわらず,既定でプレーン
5996 (plain)になるように設定されているのです.
5997 \end_layout
5998
5999 \begin_layout Standard
6000 奇数ページの左上だけに何かを挿入するなど,もっと複雑なコマンドもあるのですが,詳しい解説は
6001 \begin_inset Flex Code
6002 status collapsed
6003
6004 \begin_layout Plain Layout
6005
6006 \family typewriter
6007 fancyhdr
6008 \end_layout
6009
6010 \end_inset
6011
6012 パッケージの取扱説明書をご参照ください(
6013 \begin_inset Flex Code
6014 status collapsed
6015
6016 \begin_layout Plain Layout
6017 fancyhdr.dvi
6018 \end_layout
6019
6020 \end_inset
6021
6022 を探してください).
6023 \end_layout
6024
6025 \begin_layout Standard
6026 最後の例として,へッダやフッタに画像を挿入できることを取り上げましょう.会社のロゴをページ左上に入れたいものとします.たとえば,
6027 \end_layout
6028
6029 \begin_layout Standard
6030
6031 \family typewriter
6032
6033 \backslash
6034 lhead{
6035 \backslash
6036 resizebox{1in}{!}{
6037 \backslash
6038 includegraphics{logo.eps}}}
6039 \end_layout
6040
6041 \begin_layout Standard
6042 \noindent
6043 とすれば,これを実現できます(文書中に他に画像を挿入していない場合には,
6044 \begin_inset Newline newline
6045 \end_inset
6046
6047
6048 \begin_inset Flex Code
6049 status collapsed
6050
6051 \begin_layout Plain Layout
6052 \noindent
6053
6054 \family typewriter
6055
6056 \backslash
6057 usepackage{graphics}
6058 \end_layout
6059
6060 \end_inset
6061
6062 をプリアンブルに宣言する必要があります).
6063 \end_layout
6064
6065 \begin_layout Section
6066 箇条書き(記号)ブリットの指定
6067 \begin_inset CommandInset label
6068 LatexCommand label
6069 name "sec:ブリット"
6070
6071 \end_inset
6072
6073
6074 \end_layout
6075
6076 \begin_layout Standard
6077
6078 \noun on
6079 Allan Rae文
6080 \end_layout
6081
6082 \begin_layout Subsection
6083 はじめに
6084 \end_layout
6085
6086 \begin_layout Standard
6087 \SpecialChar LyX
6088 には,ブリットの形が216個準備されていて,簡単なダイアログから呼び出すことができます.このダイアログを使えば,箇条書き(記号)の各階層で使うブリットの形を変更
6089 することができます.この設定は文書全体に共通なので,段落ごとに別のブリットを指定することはできません
6090 \begin_inset Foot
6091 status collapsed
6092
6093 \begin_layout Plain Layout
6094 正確には可能ですが,手動で行う必要があります.
6095 \end_layout
6096
6097 \end_inset
6098
6099
6100 \end_layout
6101
6102 \begin_layout Subsection
6103 外見
6104 \end_layout
6105
6106 \begin_layout Standard
6107 メニュー項目の
6108 \begin_inset Flex MenuItem
6109 status collapsed
6110
6111 \begin_layout Plain Layout
6112 文書\SpecialChar menuseparator
6113 設定
6114 \end_layout
6115
6116 \end_inset
6117
6118 を選択してダイアログを開き,
6119 \begin_inset Flex MenuItem
6120 status collapsed
6121
6122 \begin_layout Plain Layout
6123 ブリット
6124 \end_layout
6125
6126 \end_inset
6127
6128 タブを選択してください.
6129 \end_layout
6130
6131 \begin_layout Standard
6132 このダイアログは,ブリット形の一覧表を提示します.
6133 \begin_inset Flex MenuItem
6134 status collapsed
6135
6136 \begin_layout Plain Layout
6137 フォント
6138 \end_layout
6139
6140 \end_inset
6141
6142 と書いてあるドロップダウンメニューで,6つの各ブリット形パネルを切り替えることができます.また,一覧表左の
6143 \begin_inset Flex MenuItem
6144 status collapsed
6145
6146 \begin_layout Plain Layout
6147 階層
6148 \end_layout
6149
6150 \end_inset
6151
6152 パネルは,変更したい階層を選択するものです.
6153 \begin_inset Flex MenuItem
6154 status collapsed
6155
6156 \begin_layout Plain Layout
6157 任意のブリット
6158 \end_layout
6159
6160 \end_inset
6161
6162 では,指定したい\SpecialChar LaTeX
6163 表現を入力することができます.任意のブリットを指定した場合には,そのコマンドが必要とするパッケージを\SpecialChar LaTeX
6164 プリアンブルで指定する必要があります.
6165 \end_layout
6166
6167 \begin_layout Standard
6168 6つのパネルは,それぞれが必要とするパッケージによって分類されています.下記は,フォント名と\SpecialChar LaTeX
6169 パッケージの対応表です.
6170 \end_layout
6171
6172 \begin_layout Standard
6173 \align center
6174 \begin_inset Tabular
6175 <lyxtabular version="3" rows="7" columns="2">
6176 <features tabularvalignment="middle">
6177 <column alignment="center" valignment="top" width="0pt">
6178 <column alignment="center" valignment="top" width="0pt">
6179 <row>
6180 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6181 \begin_inset Text
6182
6183 \begin_layout Plain Layout
6184 フォント
6185 \end_layout
6186
6187 \end_inset
6188 </cell>
6189 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6190 \begin_inset Text
6191
6192 \begin_layout Plain Layout
6193
6194 \family roman
6195 \series medium
6196 \shape up
6197 \size normal
6198 \emph off
6199 \bar no
6200 \noun off
6201 \color none
6202 必要とするパッケージ
6203 \end_layout
6204
6205 \end_inset
6206 </cell>
6207 </row>
6208 <row>
6209 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6210 \begin_inset Text
6211
6212 \begin_layout Plain Layout
6213
6214 \family sans
6215 標準
6216 \end_layout
6217
6218 \end_inset
6219 </cell>
6220 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6221 \begin_inset Text
6222
6223 \begin_layout Plain Layout
6224
6225 \series medium
6226 \shape up
6227 \size normal
6228 \emph off
6229 \bar no
6230 \noun off
6231 \color none
6232 \SpecialChar LaTeX
6233
6234 \family roman
6235 本体
6236 \end_layout
6237
6238 \end_inset
6239 </cell>
6240 </row>
6241 <row>
6242 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6243 \begin_inset Text
6244
6245 \begin_layout Plain Layout
6246
6247 \family sans
6248 \series medium
6249 \shape up
6250 \size normal
6251 \emph off
6252 \bar no
6253 \noun off
6254 \color none
6255 数式
6256 \end_layout
6257
6258 \end_inset
6259 </cell>
6260 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6261 \begin_inset Text
6262
6263 \begin_layout Plain Layout
6264
6265 \family typewriter
6266 \series medium
6267 \shape up
6268 \size normal
6269 \emph off
6270 \bar no
6271 \noun off
6272 \color none
6273 amssymb.sty
6274 \end_layout
6275
6276 \end_inset
6277 </cell>
6278 </row>
6279 <row>
6280 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6281 \begin_inset Text
6282
6283 \begin_layout Plain Layout
6284
6285 \family sans
6286 \series medium
6287 \shape up
6288 \size normal
6289 \emph off
6290 \bar no
6291 \noun off
6292 \color none
6293 絵文字1
6294 \end_layout
6295
6296 \end_inset
6297 </cell>
6298 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6299 \begin_inset Text
6300
6301 \begin_layout Plain Layout
6302
6303 \family typewriter
6304 \series medium
6305 \shape up
6306 \size normal
6307 \emph off
6308 \bar no
6309 \noun off
6310 \color none
6311 pifont.sty
6312 \end_layout
6313
6314 \end_inset
6315 </cell>
6316 </row>
6317 <row>
6318 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6319 \begin_inset Text
6320
6321 \begin_layout Plain Layout
6322
6323 \family sans
6324 \series medium
6325 \shape up
6326 \size normal
6327 \emph off
6328 \bar no
6329 \noun off
6330 \color none
6331 絵文字2
6332 \end_layout
6333
6334 \end_inset
6335 </cell>
6336 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6337 \begin_inset Text
6338
6339 \begin_layout Plain Layout
6340
6341 \family typewriter
6342 \series medium
6343 \shape up
6344 \size normal
6345 \emph off
6346 \bar no
6347 \noun off
6348 \color none
6349 pifont.sty
6350 \end_layout
6351
6352 \end_inset
6353 </cell>
6354 </row>
6355 <row>
6356 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
6357 \begin_inset Text
6358
6359 \begin_layout Plain Layout
6360
6361 \family sans
6362 \series medium
6363 \shape up
6364 \size normal
6365 \emph off
6366 \bar no
6367 \noun off
6368 \color none
6369 絵文字3
6370 \end_layout
6371
6372 \end_inset
6373 </cell>
6374 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
6375 \begin_inset Text
6376
6377 \begin_layout Plain Layout
6378
6379 \family typewriter
6380 \series medium
6381 \shape up
6382 \size normal
6383 \emph off
6384 \bar no
6385 \noun off
6386 \color none
6387 pifont.sty
6388 \end_layout
6389
6390 \end_inset
6391 </cell>
6392 </row>
6393 <row>
6394 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
6395 \begin_inset Text
6396
6397 \begin_layout Plain Layout
6398
6399 \family sans
6400 \series medium
6401 \shape up
6402 \size normal
6403 \emph off
6404 \bar no
6405 \noun off
6406 \color none
6407 絵文字4
6408 \end_layout
6409
6410 \end_inset
6411 </cell>
6412 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
6413 \begin_inset Text
6414
6415 \begin_layout Plain Layout
6416
6417 \family typewriter
6418 \series medium
6419 \shape up
6420 \size normal
6421 \emph off
6422 \bar no
6423 \noun off
6424 \color none
6425 pifont.sty
6426 \end_layout
6427
6428 \end_inset
6429 </cell>
6430 </row>
6431 </lyxtabular>
6432
6433 \end_inset
6434
6435
6436 \end_layout
6437
6438 \begin_layout Standard
6439 \SpecialChar LyX
6440 は,ユーザーが導入されていないパッケージのブリットを使用したとしても,警告を発しません.ファイルを閲覧したり印刷したりしようとしたときに\SpecialChar LaTeX
6441 エラーが出るようならば,
6442 パッケージが導入されていない可能性が大です
6443 \begin_inset Foot
6444 status collapsed
6445
6446 \begin_layout Plain Layout
6447 \SpecialChar LyX
6448 が,パッケージがなくてもブリットを使用することを許すのは,編集をここで行ったとしても,別のところへエクスポートする可能性があるからです.
6449 \end_layout
6450
6451 \end_inset
6452
6453
6454 \end_layout
6455
6456 \begin_layout Subsection
6457 使用法
6458 \end_layout
6459
6460 \begin_layout Standard
6461 変更したいブリット階層を選んで,ブリット形と寸法を選択してください.何らかの変更を加えたとしても,\SpecialChar LyX
6462 上には反映されませんが,文書の表示を行えば確認されます.
6463 \end_layout
6464
6465 \begin_layout Standard
6466 ブリット形は,適切な階層のブリットボタンをマウスで右クリックすれば,簡単に既定値に初期化することができます
6467 \begin_inset Foot
6468 status collapsed
6469
6470 \begin_layout Plain Layout
6471 もし
6472 \emph on
6473 本当に
6474 \emph default
6475 段落ごとに異なるブリットの形を使いたいならば,\SpecialChar TeX
6476 コードを使って少し手を汚す必要があります.この場合も,ブリット選択ダイアログを使えば,さまざまな形のLaTeXコー
6477 ドを確認することができるので手助けとなるでしょう.任意に設定した段落をつくるには,以下のような選択肢があります.
6478 \end_layout
6479
6480 \begin_layout Plain Layout
6481 \begin_inset ERT
6482 status open
6483
6484 \begin_layout Plain Layout
6485
6486
6487 \backslash
6488 let
6489 \backslash
6490 savelabelitemi=
6491 \backslash
6492 labelitemi
6493 \end_layout
6494
6495 \end_inset
6496
6497
6498 \end_layout
6499
6500 \begin_layout Plain Layout
6501 \begin_inset ERT
6502 status open
6503
6504 \begin_layout Plain Layout
6505
6506
6507 \backslash
6508 renewcommand
6509 \backslash
6510 labelitemi[0]{
6511 \backslash
6512 small
6513 \backslash
6514 (
6515 \backslash
6516 sharp
6517 \backslash
6518 )}
6519 \end_layout
6520
6521 \end_inset
6522
6523
6524 \end_layout
6525
6526 \begin_layout Itemize
6527 特定の階層の新しいブリット形を指定するには,\SpecialChar LaTeX
6528 コマンド
6529 \begin_inset Flex Code
6530 status collapsed
6531
6532 \begin_layout Plain Layout
6533
6534 \family typewriter
6535
6536 \backslash
6537 renewcommand{}{}
6538 \end_layout
6539
6540 \end_inset
6541
6542 を使用します.あとで現在のブリット形に戻すことができるように,現在のブリット形を保存しておく必要もあります.ここで使っている箇条書きでは,第1階層のブリットを変
6543 更するために,以下の\SpecialChar LaTeX
6544 コードが使用されています.
6545 \end_layout
6546
6547 \begin_deeper
6548 \begin_layout LyX-Code
6549
6550 \family typewriter
6551
6552 \backslash
6553 let
6554 \backslash
6555 savelabelitemi=
6556 \backslash
6557 labelitemi
6558 \end_layout
6559
6560 \begin_layout LyX-Code
6561
6562 \family typewriter
6563
6564 \backslash
6565 renewcommand
6566 \backslash
6567 labelitemi[0]{
6568 \backslash
6569 small
6570 \backslash
6571 (
6572 \backslash
6573 sharp
6574 \backslash
6575 )}
6576 \end_layout
6577
6578 \end_deeper
6579 \begin_layout Itemize
6580 箇条書き(記号)の階層は,
6581 \begin_inset Flex Code
6582 status collapsed
6583
6584 \begin_layout Plain Layout
6585
6586 \backslash
6587 labelitem
6588 \end_layout
6589
6590 \end_inset
6591
6592 コマンドの一部にローマ数字で指定されていることに注意してください.
6593 \end_layout
6594
6595 \begin_layout Itemize
6596 \begin_inset ERT
6597 status open
6598
6599 \begin_layout Plain Layout
6600
6601 [
6602 \backslash
6603 (
6604 \backslash
6605 star
6606 \backslash
6607 )]
6608 \end_layout
6609
6610 \end_inset
6611
6612 各項目のブリットを指定するには,角括弧で囲んだブリット形を,行頭に
6613 \begin_inset Flex Code
6614 status collapsed
6615
6616 \begin_layout Plain Layout
6617 \SpecialChar TeX
6618 コード
6619 \end_layout
6620
6621 \end_inset
6622
6623 として挿入してください.たとえば,この項目の行頭には
6624 \family typewriter
6625
6626 \begin_inset Flex Code
6627 status collapsed
6628
6629 \begin_layout Plain Layout
6630
6631 \family typewriter
6632 [
6633 \backslash
6634 (
6635 \backslash
6636 star
6637 \backslash
6638 )]
6639 \end_layout
6640
6641 \end_inset
6642
6643
6644 \family default
6645 が指定されています.
6646 \end_layout
6647
6648 \begin_layout Plain Layout
6649 \begin_inset ERT
6650 status open
6651
6652 \begin_layout Plain Layout
6653
6654
6655 \backslash
6656 renewcommand
6657 \backslash
6658 labelitemi[0]{
6659 \backslash
6660 savelabelitemi}
6661 \end_layout
6662
6663 \end_inset
6664
6665
6666 \end_layout
6667
6668 \begin_layout Plain Layout
6669 文書全体で使用するブリット形が有効であるようにするために,labelitemを元の設定に戻す必要があります.そのためには,以下のようにします.
6670 \end_layout
6671
6672 \begin_layout LyX-Code
6673
6674 \family typewriter
6675
6676 \backslash
6677 renewcommand
6678 \backslash
6679 labelitemi[0]{
6680 \backslash
6681 savelabelitemi}
6682 \end_layout
6683
6684 \end_inset
6685
6686
6687 \end_layout
6688
6689 \begin_layout Chapter
6690 \SpecialChar LyX
6691 とインターネット網
6692 \end_layout
6693
6694 \begin_layout Standard
6695 \SpecialChar LyX
6696 は,これまでも長い間,HTMLを始めとするウェブフレンドリーな文書諸形式への書き出しをサポートしてきました.しかしながら,第2.0版以前では,HTMLへの書き出し
6697 は,常に外部変換子を用いることで実現されていました
6698 \begin_inset Foot
6699 status collapsed
6700
6701 \begin_layout Plain Layout
6702 \SpecialChar LyX
6703 で外部変換子を使うことについての詳細は,取扱説明書『
6704 \emph on
6705 カスタマイズ篇
6706 \emph default
6707 』の「
6708 \emph on
6709 変換子
6710 \emph default
6711 」の節をご覧ください.
6712 \end_layout
6713
6714 \end_inset
6715
6716 .これらは2つのグループに大別できます.1つは,
6717 \begin_inset Flex Code
6718 status collapsed
6719
6720 \begin_layout Plain Layout
6721 htlatex
6722 \end_layout
6723
6724 \end_inset
6725
6726
6727 \begin_inset Flex Code
6728 status collapsed
6729
6730 \begin_layout Plain Layout
6731 html2latex
6732 \end_layout
6733
6734 \end_inset
6735
6736
6737 \begin_inset Flex Code
6738 status collapsed
6739
6740 \begin_layout Plain Layout
6741 plastex
6742 \end_layout
6743
6744 \end_inset
6745
6746 のように,\SpecialChar LaTeX
6747 を中間形式として用い,その\SpecialChar LaTeX
6748 を生成するのに\SpecialChar LyX
6749 を用いるもの.2つめは,
6750 \begin_inset Flex Code
6751 status collapsed
6752
6753 \begin_layout Plain Layout
6754 e\SpecialChar LyX
6755 er
6756 \end_layout
6757
6758 \end_inset
6759
6760 のように,直接\SpecialChar LyX
6761 ファイルに働きかける変換子です.これらは,それぞれに長所・短所を有しています.
6762 \end_layout
6763
6764 \begin_layout Standard
6765 \SpecialChar LaTeX
6766 ベースの変換子は,原則として,\SpecialChar LaTeX
6767 が書きだす文書についてのすべてを知っているという長所があります.この種の変換子は,例えば,特定のコードのくだりが,\SpecialChar LyX
6768 によって生成され
6769 たのか,\SpecialChar TeX
6770 コードで書かれたのかについては気にしません.これらの変換子は,
6771 \begin_inset Flex Code
6772 status collapsed
6773
6774 \begin_layout Plain Layout
6775 aux
6776 \end_layout
6777
6778 \end_inset
6779
6780 ファイルやカウンタや参照を取り扱うことができ,Bib\SpecialChar TeX
6781 が生成する
6782 \begin_inset Flex Code
6783 status collapsed
6784
6785 \begin_layout Plain Layout
6786 bbl
6787 \end_layout
6788
6789 \end_inset
6790
6791 ファイルも利用することがよくあります.一方で,\SpecialChar LaTeX
6792 は解析の非常に難しい言語であり—\SpecialChar TeX
6793 自身だけが\SpecialChar TeX
6794 を理解することができると言われたりすることがあります—,\SpecialChar LaTeX
6795 ベースの変換子は
6796 ,非常に簡単な文法に見えるものでさえ飲み込めず,複雑なものになると全く歯が立たないこともあります.例えば,この現行を書いている時点では,取扱説明書『
6797 \emph on
6798 埋込オブジェクト篇
6799 \emph default
6800 』は,他の変換子では書き出しができるのに,
6801 \begin_inset Flex Code
6802 status collapsed
6803
6804 \begin_layout Plain Layout
6805 htlatex
6806 \end_layout
6807
6808 \end_inset
6809
6810 では行うことができません.他には,数式をどう取り扱うかという問題があります.これらの変換子の典型的なものは,数式を小さな画像に変換して,HTML文書からこれらの
6811 画像へのリンクを張ります.これらの画像は,実は\SpecialChar LaTeX
6812 によって生成されているので,正確です.しかしながら,これらはうまく伸縮できないので,実際の文書の中で表現されるよう
6813 に—フォント寸が凡そ正しくなるように—見せようとすると,大変な苦労を伴います.
6814 \end_layout
6815
6816 \begin_layout Standard
6817 Alex Fernandezの
6818 \begin_inset Flex Code
6819 status collapsed
6820
6821 \begin_layout Plain Layout
6822 e\SpecialChar LyX
6823 er
6824 \end_layout
6825
6826 \end_inset
6827
6828  (
6829 \begin_inset CommandInset href
6830 LatexCommand href
6831 name "http://elyxer.nongnu.org/"
6832 target "http://elyxer.nongnu.org/"
6833 literal "false"
6834
6835 \end_inset
6836
6837 )は,これらの問題の一部を解決します.特に,これは数式を画像に変換するのではなく,HTMLとCSSを組み合わせて数式を生成するので,生成される数式は完璧な大きさ
6838 に伸縮されて表示されます.しかしながら,ちょっとだけ複雑な数式でさえ,
6839 \begin_inset Flex Code
6840 status collapsed
6841
6842 \begin_layout Plain Layout
6843 htlatex
6844 \end_layout
6845
6846 \end_inset
6847
6848 よりも質が落ちます.これはHTMLの限界を示しています
6849 \begin_inset Foot
6850 status collapsed
6851
6852 \begin_layout Plain Layout
6853 とはいえ,
6854 \begin_inset Flex Code
6855 status collapsed
6856
6857 \begin_layout Plain Layout
6858 e\SpecialChar LyX
6859 er
6860 \end_layout
6861
6862 \end_inset
6863
6864 では,数式用にjsMathとMathJaxを使用することもできます.ただし,この設定はグローバルにしか設定することができず,バックエンドで実行させるサーバへのア
6865 クセスが利用できる必要があります.
6866 \end_layout
6867
6868 \end_inset
6869
6870 .さらに重要なことは(少なくとも第1.1.1版においては),
6871 \begin_inset Flex Code
6872 status collapsed
6873
6874 \begin_layout Plain Layout
6875 e\SpecialChar LyX
6876 er
6877 \end_layout
6878
6879 \end_inset
6880
6881 は数式マクロを一部しかサポートしておらず,ユーザ定義の段落様式や文字様式をサポートしていません.これらの制約によって,\SpecialChar LyX
6882 ユーザが生成する文書の多くにとっては,
6883 \begin_inset Flex Code
6884 status collapsed
6885
6886 \begin_layout Plain Layout
6887 e\SpecialChar LyX
6888 er
6889 \end_layout
6890
6891 \end_inset
6892
6893 は不向きなものになっています.もちろん,原理的に,これらの問題を解決することもできたのですが,\SpecialChar LyX
6894 開発陣は別の方法を採ることとし,\SpecialChar LyX
6895 が\SpecialChar LaTeX
6896 やDocBook,平文を書き出す
6897 ことができるのと同様に,\SpecialChar LyX
6898 自身にXHTMLを書きだす能力を身につけさせることとしたのです.
6899 \end_layout
6900
6901 \begin_layout Standard
6902 この原稿執筆時点では,XHTML出力は開発途上であり,おそらく「実験的」機能として解されるべきでしょう
6903 \begin_inset Foot
6904 status collapsed
6905
6906 \begin_layout Plain Layout
6907 \SpecialChar LyX
6908 ソースツリーもしくは
6909 \begin_inset CommandInset href
6910 LatexCommand href
6911 name "オンラインでのアクセス"
6912 target "http://www.lyx.org/trac/browser/lyx-devel/trunk/development/HTML/HTML.notes"
6913 literal "false"
6914
6915 \end_inset
6916
6917 にある
6918 \begin_inset Flex Code
6919 status collapsed
6920
6921 \begin_layout Plain Layout
6922 development/HTML.notes
6923 \end_layout
6924
6925 \end_inset
6926
6927 ファイルには,通常,XHTML出力の現状についての最新の情報が収録されています.
6928 \begin_inset CommandInset href
6929 LatexCommand href
6930 name "バグ追跡ページ"
6931 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"
6932 literal "false"
6933
6934 \end_inset
6935
6936 にあるXHTML関連バグ一覧も参照のこと.
6937 \end_layout
6938
6939 \end_inset
6940
6941 .それでもこのアプローチは,他の2つの方法よりも,潜在的な利点がいくつもあるので,開発陣はこの方法を選択したのです.
6942 \end_layout
6943
6944 \begin_layout Standard
6945 これらの利点は,主に,XHTML出力ルーチンが\SpecialChar LyX
6946 の一部となっているため,\SpecialChar LyX
6947 が出力する文書について\SpecialChar LyX
6948 が関知しているところのものは,すべて知り得るというところから来ていま
6949
6950 \begin_inset Foot
6951 status collapsed
6952
6953 \begin_layout Plain Layout
6954 他には,これらのルーチンが\SpecialChar LyX
6955 内部にあるため,\SpecialChar LyX
6956 ファイル形式や既存の差込枠の文法に変更があっても,影響を受けずに済むという利点もあります.
6957 \end_layout
6958
6959 \end_inset
6960
6961 .つまり,XHTML出力ルーチンは,(文書構造に表示されるような形での)目次や,それぞれの段落様式に関連付けられたカウンタや,ユーザ定義の様式についても知ってい
6962 るのです.XHTML出力ルーチンは,国際化について\SpecialChar LyX
6963 が関知しているものも知っているので,ちょうどその時に有効になっている言語に依存して,「Chapter
6964  1」と出力されたり,「Kapitel 1」と出力されたりするのです.
6965 \end_layout
6966
6967 \begin_layout Standard
6968 汎く一般的に,出力ルーチンは,\SpecialChar LyX
6969 が文書レイアウトについて関知しているものは知っており,したがって,文書が画面上にどのように描画されるかも知っています.文書をXHT
6970 MLに出力するときには,この情報を利用します.特に,\SpecialChar LyX
6971 は,文書を画面上に描画するときに使用するレイアウト情報に対応したCSSスタイル情報を
6972 \emph on
6973 自動的に
6974 \emph default
6975 生成します.もし節見出しが,\SpecialChar LyX
6976 中でサンセリフ体かつボールド体であるとすると,(既定では)ウェブブラウザに表示した時にも,サンセリフでボールドになります.これは,節
6977 のような定義済み様式だけでなく,ユーザ定義のものも含めて,すべての様式でそうです.実際,XHTML出力ルーチンは,ユーザ定義の段落・文字様式と,\SpecialChar LyX
6978 自身の定義済み様
6979 式とを区別しません.どちらの場合も,\SpecialChar LyX
6980 が様式について関知しているところのものは,全てレイアウトファイルに含まれています.これは,脚注のような定義済み差込枠や,各種
6981 ユーザ設定差込枠でもそうです.
6982 \end_layout
6983
6984 \begin_layout Standard
6985 結果として,XHTML出力は,レイアウトファイルやモジュールを通して,\SpecialChar LaTeX
6986 出力と全く同じように,ユーザが設定したり拡張したりすることができるのです.詳細については,
6987 取扱説明書『
6988 \emph on
6989 カスタマイズ篇
6990 \emph default
6991 』の第5章をごらんください.
6992 \end_layout
6993
6994 \begin_layout Standard
6995 本章の残りでは,XHTML出力についての,さらに詳細な情報について取り扱い,その制約や,制約の回避の仕方を取り扱います.
6996 \end_layout
6997
6998 \begin_layout Section
6999 XHTMLにおける数式出力
7000 \end_layout
7001
7002 \begin_layout Standard
7003 \SpecialChar LyX
7004 では,数式描画に4つの方法を選択できます.以下に示すように,それぞれに利点と欠点があります.
7005 \end_layout
7006
7007 \begin_layout Itemize
7008 MathML
7009 \begin_inset Newline newline
7010 \end_inset
7011
7012 MathMLは,ウェブ上で数学を用いるために,特にデザインされたXMLの一方言であり,これをサポートするブラウザ上では,通常,特に美しい表現が得られます.欠点は
7013 ,すべてのブラウザがMathMLをサポートしているわけではないという事と,FirefoxのようなGeckoベースのブラウザでも,サポートが完璧ではないという事で
7014 す.
7015 \begin_inset Newline newline
7016 \end_inset
7017
7018 例えば,数式が
7019 \begin_inset Flex Code
7020 status collapsed
7021
7022 \begin_layout Plain Layout
7023 xymatrix
7024 \end_layout
7025
7026 \end_inset
7027
7028 パッケージを使用していたり,\SpecialChar TeX
7029 コードを使用しているなどで,もし\SpecialChar LyX
7030 が数式をMathMLとして描画できないとすると,\SpecialChar LyX
7031 は数式を代わりに画像として出力します.
7032  
7033 \end_layout
7034
7035 \begin_layout Itemize
7036 HTML
7037 \begin_inset Newline newline
7038 \end_inset
7039
7040 前述のとおり,
7041 \begin_inset Flex Code
7042 status collapsed
7043
7044 \begin_layout Plain Layout
7045 elyxer
7046 \end_layout
7047
7048 \end_inset
7049
7050 は,数式をCSSで装飾したHTMLとして出力します
7051 \begin_inset Foot
7052 status collapsed
7053
7054 \begin_layout Plain Layout
7055 \SpecialChar LyX
7056 は,
7057 \begin_inset Flex Code
7058 status collapsed
7059
7060 \begin_layout Plain Layout
7061 elyxer
7062 \end_layout
7063
7064 \end_inset
7065
7066 からのHTML出力のために,CSSの一部を拝借しています.
7067 \end_layout
7068
7069 \end_inset
7070
7071 .簡単な数式では,これは非常にうまく行きますが,少し複雑な数式になると,
7072 \begin_inset Flex Code
7073 status collapsed
7074
7075 \begin_layout Plain Layout
7076 elyxer
7077 \end_layout
7078
7079 \end_inset
7080
7081 は歯が立たなくなります.それでも,この方法は非常に広くサポートされているという利点があり,かなり簡単な数式を少しだけ含んでいるような文書に適しているでしょう.
7082 \begin_inset Newline newline
7083 \end_inset
7084
7085 例えば,数式が
7086 \begin_inset Flex Code
7087 status collapsed
7088
7089 \begin_layout Plain Layout
7090 xymatrix
7091 \end_layout
7092
7093 \end_inset
7094
7095 パッケージを使用していたり,\SpecialChar TeX
7096 コードを使用しているなどで,もし\SpecialChar LyX
7097 が数式をHTMLとして描画できないとすると,\SpecialChar LyX
7098 は数式を代わりに画像として出力します.
7099  
7100 \end_layout
7101
7102 \begin_layout Itemize
7103 画像
7104 \begin_inset Newline newline
7105 \end_inset
7106
7107
7108 \begin_inset Flex Code
7109 status collapsed
7110
7111 \begin_layout Plain Layout
7112 htlatex
7113 \end_layout
7114
7115 \end_inset
7116
7117 のように,\SpecialChar LyX
7118 は数式を画像としても出力できます.この画像は,実は,自動プレビューで使用されているものと全く同じです
7119 \begin_inset Foot
7120 status collapsed
7121
7122 \begin_layout Plain Layout
7123 ただし,画像を出力に使うために,自動プレビューを入にしておく必要は
7124 \emph on
7125 ありません
7126 \emph default
7127
7128 \end_layout
7129
7130 \end_inset
7131
7132 .この方法の利点は,画像が他ならぬ\SpecialChar LaTeX
7133 によって生成されているので,非常に正確であることです.欠点は,前述したとおり,画像がビットマップなので,伸縮が全くうまく行かな
7134 かったり,コピーが出来なかったりといったことがあります(執筆時点においては,数式の付番にも問題があります.
7135 \begin_inset CommandInset href
7136 LatexCommand href
7137 name "バグ 6894"
7138 target "http://www.lyx.org/trac/ticket/6894"
7139 literal "false"
7140
7141 \end_inset
7142
7143 を参照のこと.).
7144 \begin_inset Newline newline
7145 \end_inset
7146
7147 画像の寸法は,
7148 \begin_inset Flex MenuItem
7149 status collapsed
7150
7151 \begin_layout Plain Layout
7152 文書\SpecialChar menuseparator
7153 設定\SpecialChar menuseparator
7154 出力
7155 \end_layout
7156
7157 \end_inset
7158
7159 の「数式画像の伸縮」パラメータを変更することで制御できます
7160 \begin_inset Foot
7161 status collapsed
7162
7163 \begin_layout Plain Layout
7164 必要な方のために述べておくと,これは,画像の解像度をdpi (1インチあたりドット数)で制御するためのもので,75dpiを基準としています.
7165 \end_layout
7166
7167 \end_inset
7168
7169
7170 \begin_inset Newline newline
7171 \end_inset
7172
7173 もし\SpecialChar LyX
7174 が,何らかの理由によって数式の画像を生成できない(例えば,必要な\SpecialChar LaTeX
7175 パッケージが導入済みでないなど)ときは,回避策として,生の\SpecialChar LaTeX
7176 を出力します.
7177 \end_layout
7178
7179 \begin_layout Itemize
7180 \SpecialChar LaTeX
7181
7182 \begin_inset Newline newline
7183 \end_inset
7184
7185 最後に,\SpecialChar LyX
7186 は,数式を\SpecialChar LaTeX
7187 としても出力することができます.この方法は,最終手段としての出力方法である一方で,HTML文書に埋め込まれた\SpecialChar LaTeX
7188 を描画するのにJavaScript
7189 を使用する,
7190 \begin_inset CommandInset href
7191 LatexCommand href
7192 name "jsMath"
7193 target "http://www.math.union.edu/~dpvc/jsMath/"
7194 literal "false"
7195
7196 \end_inset
7197
7198 のようなツールとともに使用することもできます.\SpecialChar LyX
7199 は,jsMathで必要とされているのと同じように,\SpecialChar LaTeX
7200 部分を,
7201 \begin_inset Flex Code
7202 status collapsed
7203
7204 \begin_layout Plain Layout
7205 span
7206 \end_layout
7207
7208 \end_inset
7209
7210 (行内数式用)または
7211 \begin_inset Flex Code
7212 status collapsed
7213
7214 \begin_layout Plain Layout
7215 div
7216 \end_layout
7217
7218 \end_inset
7219
7220 (別行立て数式用)に
7221 \begin_inset Flex Code
7222 status collapsed
7223
7224 \begin_layout Plain Layout
7225 class='math'
7226 \end_layout
7227
7228 \end_inset
7229
7230 を指定したもので,包んで出力します.
7231 \end_layout
7232
7233 \begin_layout Standard
7234 これらの出力方法のいずれかを
7235 \begin_inset Flex MenuItem
7236 status collapsed
7237
7238 \begin_layout Plain Layout
7239 文書\SpecialChar menuseparator
7240 設定\SpecialChar menuseparator
7241 出力
7242 \end_layout
7243
7244 \end_inset
7245
7246 で選択しなくてはなりません.既定では,\SpecialChar LyX
7247 はMathMLで出力を行います.これは,文書全体に適用される設定となります.
7248 \end_layout
7249
7250 \begin_layout Standard
7251 最後に,\SpecialChar LyX
7252 では,例えば,MathMLではあまりうまく出力されないような差込枠に対して,別の出力方法を選択できる選択肢が用意されています
7253 \begin_inset Foot
7254 status collapsed
7255
7256 \begin_layout Plain Layout
7257 その他にも,\SpecialChar LyX
7258 は,差込枠に\SpecialChar TeX
7259 コードが含まれていると画像出力に回帰するので,数式中に
7260 \begin_inset Formula $a=b\relax$
7261 \end_inset
7262
7263 のような無害な\SpecialChar TeX
7264 コードを挿入することによって,画像出力を強制することができます.
7265 \end_layout
7266
7267 \end_inset
7268
7269
7270 \end_layout
7271
7272 \begin_layout Section
7273 書誌情報と引用
7274 \end_layout
7275
7276 \begin_layout Standard
7277 XHTML出力は,書誌情報と引用を完全にサポートしています.
7278 \end_layout
7279
7280 \begin_layout Standard
7281 引用ラベルは,\SpecialChar LyX
7282 画面上のラベルを生成するのと同じ機構で生成されているので,出力中のラベルは,\SpecialChar LyX
7283 中の外見と同質またはそれよりも上質な仕上がりとなっています.連番引用を
7284 使用している場合には,\SpecialChar LyX
7285 は,画面上で表示されるような各カッコに囲まれた引用鍵を単純に表示するのではなく,[1]や[17]などの連番ラベルを出力します.著者-出版年
7286 形式の引用を使用している場合で,同じ著者-出版年の組み合わせが複数ある場合,\SpecialChar LyX
7287 は,Bib\SpecialChar TeX
7288 が行うように出版年に小文字を付します.ラベルは,書誌情報項目とともに印字さ
7289 れます.現在のところ,角括弧を丸括弧に変更するなど,ラベルの外見を変更する手段はありませんのでご注意ください.
7290 \end_layout
7291
7292 \begin_layout Standard
7293 書誌情報出力は,引用ダイアログで文献情報表示を取り扱うのと同じ機構で取り扱われているので,XHTML出力は,引用ダイアログで特定の文献項目を表示させた時のものに
7294 非常によく似ています.整形の仕方は,レイアウトファイルや望ましくはモジュールでカスタマイズすることができます.詳細については,取扱説明書『カスタマイズ篇』をご覧
7295 ください.
7296 \end_layout
7297
7298 \begin_layout Standard
7299 現在のところ,主だった瑕疵は,相互参照された情報が,関連した項目の全てに印字されてしまうことです.つまり,以下のような表示が為されます.
7300 \end_layout
7301
7302 \begin_layout Quote
7303 Jason Stanley, 
7304 \begin_inset Quotes eld
7305 \end_inset
7306
7307 Context and Logical Form
7308 \begin_inset Quotes erd
7309 \end_inset
7310
7311 , in 
7312 \emph on
7313 Language in Context: Selected Essays
7314 \emph default
7315  (Oxford: Oxford University Press, 2007), pp.
7316  30–68.
7317 \end_layout
7318
7319 \begin_layout Quote
7320 Jason Stanley, 
7321 \begin_inset Quotes eld
7322 \end_inset
7323
7324 Semantics in Context
7325 \begin_inset Quotes erd
7326 \end_inset
7327
7328 , in 
7329 \emph on
7330 Language in Context: Selected Essays
7331 \emph default
7332  (Oxford: Oxford University Press, 2007), pp.
7333  201–30.
7334 \end_layout
7335
7336 \begin_layout Standard
7337 これは,遠くないうちに修正されるでしょう.
7338 \end_layout
7339
7340 \begin_layout Standard
7341 現在のところ,節ごとの書誌情報出力はサポートされていません.複数の書誌情報がある場合には,\SpecialChar LyX
7342 は同じ情報を繰り返し出力してしまいます.
7343 \end_layout
7344
7345 \begin_layout Section
7346 索引
7347 \end_layout
7348
7349 \begin_layout Standard
7350 \SpecialChar LyX
7351 は,索引をXHTMLとして書きだすことができますが,現在のところ,若干の制約があります.
7352 \end_layout
7353
7354 \begin_layout Standard
7355 索引の書き出しは,
7356 \emph on
7357 ユーザーの手引き
7358 \emph default
7359 の索引の節に書かれているような手の込んだ方法を使おうとしないほうが,信頼性が保てます
7360 \begin_inset Foot
7361 status collapsed
7362
7363 \begin_layout Plain Layout
7364 ここでの主な問題は,これらの操作の際に,\SpecialChar LyX
7365 自身は何もしていないという点です.つまり,生の\SpecialChar LaTeX
7366 で入力しなくてはならないようなものをそのまま入力しているのです.
7367 \end_layout
7368
7369 \end_inset
7370
7371 .当該節の小節見出しに沿って,それらがどう処理されるかを説明しましょう.
7372 \end_layout
7373
7374 \begin_layout Itemize
7375 索引項目のグループ化(下層項目): \SpecialChar LyX
7376 はこれらをサポートしようと努めていますが,項目は「 ! 」(感嘆符の周りに空白)で分離しなくてはなりません.これは,そうしな
7377 いと数式などで使われているエスケープされた感嘆符をチェックするのが非常に難しくなるからです.
7378 \end_layout
7379
7380 \begin_layout Itemize
7381 ページ範囲: ページ範囲については,XHTMLでは意味がないので,全くサポートされません.その代わりに,引用項目のはじめと終わりの頁それぞれに,2つの索引項目が
7382 得られるだけです.
7383 \end_layout
7384
7385 \begin_layout Itemize
7386 相互参照: 相互参照のサポートはありません.\SpecialChar LyX
7387 が「|see\SpecialChar ldots
7388 」という下だりを持つ項目を検出すると,その部分はただ無視されて,残りの部分が通常の索引項目だとみなされま
7389 す.
7390 \end_layout
7391
7392 \begin_layout Itemize
7393 索引項目の整序: \SpecialChar LyX
7394 は整序順の変更をサポートします.\SpecialChar LyX
7395 は,最初に検出した「@」の前の部分を取り出して,それを整序に用い,最初の「@」の後の部分を実際の項目として取り
7396 出します.現在のところ,\SpecialChar LyX
7397 はエスケープされた「@」を取り扱わないので,電子メールアドレスを索引に使わないでください.
7398 \end_layout
7399
7400 \begin_layout Itemize
7401 索引項目のレイアウト: 項目は,テキスト様式ダイアログを使うなり,\SpecialChar LyX
7402 内で使用可能な方法を用いることで,索引項目を成形することができます.「項目|textbf」のよ
7403 うな文法はサポートされません.\SpecialChar LyX
7404 は,項目内にパイプ記号「|」を検出すると,パイプ記号とその後に続くものすべてを削除してしまいます.
7405 \end_layout
7406
7407 \begin_layout Itemize
7408 複数の索引: 複数の索引はサポートされていません.すべての項目は,ひとつの大きな索引として印字されます.索引が何度も印字されることを防ぐため,中心となる索引だけ
7409 を印字しますので,その索引は必ず置くようにしてください.
7410 \end_layout
7411
7412 \begin_layout Section
7413 記号一覧および用語集
7414 \end_layout
7415
7416 \begin_layout Standard
7417 現在のところ,用語集のサポートはありません.この機能の追加は,比較的容易だと思われますので,あなたの貢献をお待ちしております.
7418 \end_layout
7419
7420 \begin_layout Chapter
7421 \SpecialChar LyX
7422 サーバー
7423 \begin_inset CommandInset label
7424 LatexCommand label
7425 name "chap:LyXサーバー"
7426
7427 \end_inset
7428
7429
7430 \end_layout
7431
7432 \begin_layout Section
7433 はじめに
7434 \end_layout
7435
7436 \begin_layout Standard
7437 「\SpecialChar LyX
7438 サーバー」を使用すると,他のプログラムが,\SpecialChar LyX
7439 と通信したり,\SpecialChar LyX
7440 コマンドを実行させたり,\SpecialChar LyX
7441 の内部状態に関する情報を取得したりすることができるようになります.これは熟練し
7442 たユーザー向けの機能ですが,便利なはずです.たとえば,\SpecialChar LyX
7443 サーバーに書き込むことによって,JabRefのような書誌情報管理ソフトが,LyXに文献引用を「押し込む」こ
7444 とが可能となります.
7445 \end_layout
7446
7447 \begin_layout Section
7448 \SpecialChar LyX
7449 サーバーを開始するには
7450 \end_layout
7451
7452 \begin_layout Standard
7453 \SpecialChar LyX
7454 サーバーは,名前をつけたパイプの対を利用することで機能します.パイプは,通常
7455 \begin_inset Flex Code
7456 status collapsed
7457
7458 \begin_layout Plain Layout
7459 UserDir
7460 \end_layout
7461
7462 \end_inset
7463
7464 の下に作られ(Windowsを除く.Windowsでは,名前を付けた
7465 \emph on
7466 ローカルの
7467 \emph default
7468 パイプは
7469 \begin_inset Flex Code
7470 status collapsed
7471
7472 \begin_layout Plain Layout
7473
7474 \backslash
7475
7476 \backslash
7477 .
7478 \backslash
7479 pipe
7480 \end_layout
7481
7482 \end_inset
7483
7484 に特別なオブジェクトとして置かれます),「
7485 \begin_inset Flex Code
7486 status collapsed
7487
7488 \begin_layout Plain Layout
7489 .lyxpipe.in
7490 \end_layout
7491
7492 \end_inset
7493
7494 」および「
7495 \begin_inset Flex Code
7496 status collapsed
7497
7498 \begin_layout Plain Layout
7499 .lyxpipe.out
7500 \end_layout
7501
7502 \end_inset
7503
7504 」という名前がついています.外部プログラムは,
7505 \begin_inset Flex Code
7506 status collapsed
7507
7508 \begin_layout Plain Layout
7509 .lyxpipe.in
7510 \end_layout
7511
7512 \end_inset
7513
7514 に書き込みを行い,戻りデータを
7515 \begin_inset Flex Code
7516 status collapsed
7517
7518 \begin_layout Plain Layout
7519 .lyxpipe.out
7520 \end_layout
7521
7522 \end_inset
7523
7524 から読み出します.パイプ名の語幹は,
7525 \begin_inset Flex MenuItem
7526 status collapsed
7527
7528 \begin_layout Plain Layout
7529 ツール\SpecialChar menuseparator
7530 設定
7531 \end_layout
7532
7533 \end_inset
7534
7535 から,たとえば「
7536 \begin_inset Flex Code
7537 status collapsed
7538
7539 \begin_layout Plain Layout
7540 /home/myhome/lyxpipe
7541 \end_layout
7542
7543 \end_inset
7544
7545 」あるいはWindowsでは「
7546 \begin_inset Flex Code
7547 status collapsed
7548
7549 \begin_layout Plain Layout
7550
7551 \backslash
7552
7553 \backslash
7554 .
7555 \backslash
7556 pipe
7557 \backslash
7558 lyxpipe
7559 \end_layout
7560
7561 \end_inset
7562
7563 」などに設定することができます(ここで,lyxpipe以外の任意のファイルパス,例えば
7564 \begin_inset Flex Code
7565 status collapsed
7566
7567 \begin_layout Plain Layout
7568 "
7569 \backslash
7570
7571 \backslash
7572 .
7573 \backslash
7574 pipe
7575 \backslash
7576 my
7577 \backslash
7578 lyx
7579 \backslash
7580 pipe"
7581 \end_layout
7582
7583 \end_inset
7584
7585 なども使用できます).サーバーを開始するためには,これを
7586 \emph on
7587 手動で設定しなくてはなりません
7588 \emph default
7589
7590 \end_layout
7591
7592 \begin_layout Standard
7593 \SpecialChar LyX
7594 は,パイプを生成するに際して,「
7595 \begin_inset Flex Code
7596 status collapsed
7597
7598 \begin_layout Plain Layout
7599 .in
7600 \end_layout
7601
7602 \end_inset
7603
7604 」および「
7605 \begin_inset Flex Code
7606 status collapsed
7607
7608 \begin_layout Plain Layout
7609 .out
7610 \end_layout
7611
7612 \end_inset
7613
7614 」を付け加えます.パイプがすでに存在していれば,\SpecialChar LyX
7615 は他の\SpecialChar LyX
7616 プロセスがすでに実行中であると判断して,サーバーを開始しません.POSIX(Unix型)システムでは,なん
7617 らかの理由で,\SpecialChar LyX
7618 が終了する際に使用されていない「古い」パイプが削除されずに残ったりすると,\SpecialChar LyX
7619 はこれを削除しようとします.何らかの理由でこれが失敗した場合,手動でパイ
7620 プを削除したのちに,\SpecialChar LyX
7621 を再起動する必要があります.Windowsでは,プログラムが終了したりクラッシュしたりすると,OSがパイプを削除するので,「古い」パイプが残
7622 ることはありません.
7623 \end_layout
7624
7625 \begin_layout Standard
7626 サーバーを使用する\SpecialChar LyX
7627 プロセスを複数起動するには,それぞれのプロセスに,別のユーザーディレクトリを使用させたり,別々の
7628 \begin_inset Flex Code
7629 status collapsed
7630
7631 \begin_layout Plain Layout
7632 preferences
7633 \end_layout
7634
7635 \end_inset
7636
7637 ファイルを使用させるなど,別々の設定を使用する必要があります.
7638 \end_layout
7639
7640 \begin_layout Standard
7641 クライアントプログラムを開発しようとされているのであれば,\SpecialChar LyX
7642 サーバーからのデバッグ情報を有効にすると便利かもしれません.そのためには,Lyxを
7643 \begin_inset Flex Code
7644 status collapsed
7645
7646 \begin_layout Plain Layout
7647 lyx -dbg lyxserver
7648 \end_layout
7649
7650 \end_inset
7651
7652 として起動してください.
7653 \end_layout
7654
7655 \begin_layout Standard
7656 C++言語で書かれた完全なサンプルクライアントが,ソース頒布版の
7657 \begin_inset Newline newline
7658 \end_inset
7659
7660
7661 \begin_inset Flex Code
7662 status collapsed
7663
7664 \begin_layout Plain Layout
7665 development/lyxserver/server_monitor.cpp
7666 \end_layout
7667
7668 \end_inset
7669
7670 にあります.
7671 \end_layout
7672
7673 \begin_layout Standard
7674 もう一つの便利なツールとして,
7675 \begin_inset Flex Code
7676 status collapsed
7677
7678 \begin_layout Plain Layout
7679 src/client/lyxclient
7680 \end_layout
7681
7682 \end_inset
7683
7684 にあるコマンドラインベースのクライアントがあります.
7685 \end_layout
7686
7687 \begin_layout Section
7688 通常の通信
7689 \end_layout
7690
7691 \begin_layout Standard
7692 \SpecialChar LyX
7693 コールを発行するには,クライアントはASCIIテキスト行を入力パイプに書き込みまなくてはなりません.この行は,以下の書式を持ちます.
7694 \end_layout
7695
7696 \begin_layout Quote
7697 LYXCMD:
7698 \emph on
7699 クライアント名
7700 \emph default
7701 :
7702 \emph on
7703 関数
7704 \emph default
7705 :
7706 \emph on
7707 引数
7708 \end_layout
7709
7710 \begin_layout Description
7711 クライアント名 は,クライアントが自由に選べる名前です.これが用いられるのは,クライアントが他の要求クライアントから結果を見分けることができるように,\SpecialChar LyX
7712 が返答をす
7713 る際,クライアント名をエコーするときだけです.
7714 \end_layout
7715
7716 \begin_layout Description
7717 関数 は,\SpecialChar LyX
7718 に実行させたい関数です.これは,ミニバッファで使用するコマンドと同じです.
7719 \end_layout
7720
7721 \begin_layout Description
7722 引数 は,一部の関数のみに効力を持つオプションの引数です(たとえば,「自己挿入」LFUNは,現在のカーソル位置に引数を文章として挿入します).
7723 \end_layout
7724
7725 \begin_layout Standard
7726 \SpecialChar LyX
7727 からの返答は,出力パイプに送り出され,
7728 \end_layout
7729
7730 \begin_layout Quote
7731 INFO:
7732 \emph on
7733 クライアント名
7734 \emph default
7735 :
7736 \emph on
7737 関数
7738 \emph default
7739 :
7740 \emph on
7741 データ
7742 \end_layout
7743
7744 \begin_layout Standard
7745 の書式をしています.ここで
7746 \emph on
7747 クライアント名
7748 \emph default
7749
7750 \emph on
7751 関数
7752 \emph default
7753 は,コマンド要求からそのままエコーされますが,
7754 \emph on
7755 データ
7756 \emph default
7757 はコマンド実行の結果に依存した,多少なりとも有用な情報です.「font-state」のような一部のコマンドは,\SpecialChar LyX
7758 の内部状態に関する情報を返しますが,空のデータ応答
7759 を返すものもあります.空のデータ返答は,コマンド実行が無事終わったことを意味します.
7760 \end_layout
7761
7762 \begin_layout Standard
7763 エラーが発生した場合の\SpecialChar LyX
7764 の返答は
7765 \end_layout
7766
7767 \begin_layout Quote
7768 ERROR:
7769 \emph on
7770 クライアント名
7771 \emph default
7772 :
7773 \emph on
7774 関数
7775 \emph default
7776 :
7777 \emph on
7778 エラーメッセージ
7779 \end_layout
7780
7781 \begin_layout Standard
7782 の書式をしており,
7783 \emph on
7784 エラーメッセージ
7785 \emph default
7786 には,なぜコマンドが失敗したかの説明が入っているはずです.
7787 \end_layout
7788
7789 \begin_layout Standard
7790 (例)
7791 \end_layout
7792
7793 \begin_layout LyX-Code
7794 echo "LYXCMD:test:beginning-of-buffer:" >~/.lyxpipe.in
7795 \begin_inset Newline newline
7796 \end_inset
7797
7798 echo "LYXCMD:test:get-xy:" >~/.lyxpipe.in
7799 \begin_inset Newline newline
7800 \end_inset
7801
7802 read a <~/.lyxpipe.out
7803 \begin_inset Newline newline
7804 \end_inset
7805
7806 echo $a
7807 \end_layout
7808
7809 \begin_layout Section
7810 通知
7811 \end_layout
7812
7813 \begin_layout Standard
7814 \SpecialChar LyX
7815 は,発生しているイベントを,非同期的にクライアントに通知することができます.いまのところ,ユーザーがある
7816 \begin_inset Flex Ruby
7817 status collapsed
7818
7819 \begin_layout Plain Layout
7820
7821 \begin_inset Argument post:1
7822 status collapsed
7823
7824 \begin_layout Plain Layout
7825 キー
7826 \end_layout
7827
7828 \end_inset
7829
7830
7831 \end_layout
7832
7833 \end_inset
7834
7835 列を関数「notify」に割り当てているときのみ,\SpecialChar LyX
7836 はこの通知を行います.\SpecialChar LyX
7837 が送る文字列の書式は
7838 \end_layout
7839
7840 \begin_layout Quote
7841 \begin_inset Flex Code
7842 status collapsed
7843
7844 \begin_layout Plain Layout
7845 NOTIFY:
7846 \end_layout
7847
7848 \end_inset
7849
7850
7851 \emph on
7852 鍵列
7853 \end_layout
7854
7855 \begin_layout Standard
7856 となっていて,
7857 \emph on
7858 鍵列
7859 \emph default
7860 は,ユーザーが実際に打鍵した鍵列の印字表現になります.
7861 \end_layout
7862
7863 \begin_layout Standard
7864 この機構は,\SpecialChar LyX
7865 のコマンド群を拡張してマクロを実装するのに使用することができます.なんらかの鍵列を「notify」に割り当ててください.それから出力パイプで待機する
7866 クライアントを起動し,鍵列に応じたコマンドを読み込み,一つないし複数の\SpecialChar LyX
7867 コマンドを発行する\SpecialChar LyX
7868 要求と\SpecialChar LyX
7869 コールを使用する関数を開始するのです.
7870 \end_layout
7871
7872 \begin_layout Section
7873 単純な\SpecialChar LyX
7874 サーバープロトコル
7875 \end_layout
7876
7877 \begin_layout Standard
7878 \SpecialChar LyX
7879 は,セッション管理に使用することができる単純なプロトコルを実装しています.メッセージは,すべて
7880 \end_layout
7881
7882 \begin_layout Quote
7883 LYXSRV:
7884 \emph on
7885 クライアント名
7886 \emph default
7887 :
7888 \emph on
7889 プロトコルメッセージ
7890 \end_layout
7891
7892 \begin_layout Standard
7893 の書式をしており,
7894 \emph on
7895 プロトコルメッセージ
7896 \emph default
7897 は「hello」ないし「bye」です.クライアントから「hello」を受け取ると,\SpecialChar LyX
7898 はメッセージを聴いていることをクライアントに伝えるために返答をし,\SpecialChar LyX
7899 が終了するこ
7900 とをクライアントに伝えるのには,\SpecialChar LyX
7901 が「bye」を送信します.
7902 \end_layout
7903
7904 \begin_layout Section
7905 DVIとPDFの遡及検索
7906 \end_layout
7907
7908 \begin_layout Standard
7909 DVI/PDFビューア
7910 \begin_inset Foot
7911 status collapsed
7912
7913 \begin_layout Plain Layout
7914 PDFの遡及検索機能を提供しているビューアには,KDE/Linux上のOkularと
7915 \lang english
7916 Qpdfview on Unix
7917 \lang japanese
7918 とMac OS X上のSkim,Windows上のSumatraPDFがあります.
7919 \end_layout
7920
7921 \end_inset
7922
7923 には,遡及検索(reverse searchないしinverse searchと呼ばれます)機能を提供しているものがあります.これを使えば,DVI/PDF出力の
7924 特定の場所をクリックすることによって,\SpecialChar LyX
7925 の文書中で対応する行にカーソルを移動させることができます.これを実現するためには,ビューアは\SpecialChar LyX
7926 と情報交換を行う必要があります
7927 .これは,命名パイプ(
7928 \emph on
7929 lyxpipe
7930 \emph default
7931 )を使用するか,\SpecialChar LyX
7932 が作業ディレクトリに生成するUNIXドメインソケット(
7933 \emph on
7934 lyxsocket
7935 \emph default
7936 )を使用する(これは
7937 \begin_inset Flex Code
7938 status collapsed
7939
7940 \begin_layout Plain Layout
7941 lyxclient
7942 \end_layout
7943
7944 \end_inset
7945
7946 プログラムが\SpecialChar LyX
7947 と通信するのに使用している方法です)ことで,\SpecialChar LyX
7948 サーバを経由して実現することができます.場合によっては,ビューアと\SpecialChar LyX
7949 を橋渡しする補助スクリプトを必要とする
7950 ことがあるかもしれませんが,それ以外は,ビューアは\SpecialChar LyX
7951 と直接通信することができます.これは,選んだビューアと基本ソフトに依存します.また,必要とされるビューアの設定
7952 法と遡及検索が実際に行われる方法とにも依存します.したがって,下記では個々のビューア毎の遡及検索の設定の仕方を説明することとします.その前に,DVI/PDF出力
7953 で遡及検索を有効にするためには,一般に何が必要とされるかを説明します.
7954 \end_layout
7955
7956 \begin_layout Subsection
7957 \begin_inset CommandInset label
7958 LatexCommand label
7959 name "subsec:遡及検索"
7960
7961 \end_inset
7962
7963 自動有効化
7964 \end_layout
7965
7966 \begin_layout Standard
7967 \begin_inset Flex MenuItem
7968 status collapsed
7969
7970 \begin_layout Plain Layout
7971 文書\SpecialChar menuseparator
7972 設定\SpecialChar menuseparator
7973 出力
7974 \end_layout
7975
7976 \end_inset
7977
7978 メニューで
7979 \begin_inset Flex MenuItem
7980 status collapsed
7981
7982 \begin_layout Plain Layout
7983 出力と同期
7984 \end_layout
7985
7986 \end_inset
7987
7988 オプションを有効にすれば,ほとんどの場合,\SpecialChar LyX
7989 がすべてをうまくこなしてくれます.その場合,\SpecialChar LyX
7990 は,自動的に,必要なSync\SpecialChar TeX
7991 マクロ(PDFの場合)や,srcltxパッケー
7992 ジ(DVIの場合)を挿入してくれます.このオプションは,
7993 \begin_inset Flex MenuItem
7994 status collapsed
7995
7996 \begin_layout Plain Layout
7997 表示/更新
7998 \end_layout
7999
8000 \end_inset
8001
8002 ツールバーからも容易にアクセスすることができます.
8003 \end_layout
8004
8005 \begin_layout Standard
8006 もし,これとは別の設定が必要な場合には,
8007 \begin_inset Flex MenuItem
8008 status collapsed
8009
8010 \begin_layout Plain Layout
8011 文書\SpecialChar menuseparator
8012 設定\SpecialChar menuseparator
8013 出力\SpecialChar menuseparator
8014 出力と同期
8015 \end_layout
8016
8017 \end_inset
8018
8019 の直下にあるドロップダウンボックスから,自製マクロを選択ないし入力することができます.
8020 \end_layout
8021
8022 \begin_layout Standard
8023 方式として
8024 \begin_inset Flex Code
8025 status collapsed
8026
8027 \begin_layout Plain Layout
8028
8029 \backslash
8030 synctex=1
8031 \end_layout
8032
8033 \end_inset
8034
8035 を用いると,gzip圧縮が有効となることに注意してください.使用しているビューアがgzip圧縮をサポートしていない場合には,代わりに
8036 \begin_inset Flex Code
8037 status collapsed
8038
8039 \begin_layout Plain Layout
8040
8041 \backslash
8042 synctex=-1
8043 \end_layout
8044
8045 \end_inset
8046
8047 を指定してください.
8048 \end_layout
8049
8050 \begin_layout Standard
8051 また,
8052 \begin_inset Flex Code
8053 status collapsed
8054
8055 \begin_layout Plain Layout
8056 srcltx
8057 \end_layout
8058
8059 \end_inset
8060
8061 パッケージや
8062 \begin_inset Flex Code
8063 status collapsed
8064
8065 \begin_layout Plain Layout
8066 src-specials
8067 \end_layout
8068
8069 \end_inset
8070
8071 を取り込むと,組版上,不具合が生じることがあるのでご注意ください.したがって,
8072 \begin_inset Flex Code
8073 status collapsed
8074
8075 \begin_layout Plain Layout
8076 srcltx
8077 \end_layout
8078
8079 \end_inset
8080
8081 パッケージや
8082 \begin_inset Flex Code
8083 status collapsed
8084
8085 \begin_layout Plain Layout
8086 src-specials
8087 \end_layout
8088
8089 \end_inset
8090
8091 を使用している場合には,最終版を組版する際には,出力同期を無効にするべきです.
8092 \end_layout
8093
8094 \begin_layout Standard
8095 自動設定でカバーされている範囲よりも,さらに特殊なものが必要な場合には,出力同期を手動で設定する仕方を述べた次節をお読みください.自動設定で事足りる場合には,自
8096 動設定・手動設定ともに必要となるビューア上の設定を述べた,第
8097 \begin_inset CommandInset ref
8098 LatexCommand ref
8099 reference "subsec:特定のビューアを設定して使うには"
8100
8101 \end_inset
8102
8103 節に進むことができます.
8104 \end_layout
8105
8106 \begin_layout Subsection
8107 手動有効化
8108 \end_layout
8109
8110 \begin_layout Standard
8111 \SpecialChar LaTeX
8112 は,遡及検索のために複数の方法を提供しています.ある方法は
8113 \begin_inset Flex Code
8114 status collapsed
8115
8116 \begin_layout Plain Layout
8117 latex/pdflatex
8118 \end_layout
8119
8120 \end_inset
8121
8122 プログラムに組み込まれており,他の方法は外部パッケージとして提供されています.どちらを選択するかは,お使いの\SpecialChar LaTeX
8123 頒布版が既に特定の方法を提供しているか(組み込みによ
8124 る方法は比較的新しいものです)と,お使いのビューアがそれに対応しているかに依存します.使用可能な方法を以下に述べます.
8125 \end_layout
8126
8127 \begin_layout Subsubsection*
8128 src-special経由のDVI組み込み検索(DVIのみ)
8129 \end_layout
8130
8131 \begin_layout Standard
8132 この方法は,DVIファイルに遡及検索に必要な情報を追加するものです.これは,かなり前の\SpecialChar LaTeX
8133 から利用可能となっており(比較的最近の\SpecialChar LaTeX
8134 頒布版はすべて対応しています),安定
8135 して動作します.これを有効にするには,
8136 \begin_inset Flex MenuItem
8137 status collapsed
8138
8139 \begin_layout Plain Layout
8140 設定\SpecialChar menuseparator
8141 ファイル処理\SpecialChar menuseparator
8142 変換子
8143 \end_layout
8144
8145 \end_inset
8146
8147
8148 \begin_inset Flex MenuItem
8149 status collapsed
8150
8151 \begin_layout Plain Layout
8152 LaTeX (plain)->DVI
8153 \end_layout
8154
8155 \end_inset
8156
8157 ないし
8158 \begin_inset Flex MenuItem
8159 status collapsed
8160
8161 \begin_layout Plain Layout
8162 LaTeX (plain)->DraftDVI
8163 \end_layout
8164
8165 \end_inset
8166
8167 変換子を
8168 \begin_inset Flex Code
8169 status collapsed
8170
8171 \begin_layout Plain Layout
8172 latex -src-specials $$i
8173 \end_layout
8174
8175 \end_inset
8176
8177 に変更します.もしこれが動作しないときは,お使いの\SpecialChar LaTeX
8178 エンジンが違うオプションを必要としていないか確認してください(頒布版によっては文法の異なることがあります).
8179 \end_layout
8180
8181 \begin_layout Subsubsection*
8182 外部パッケージ(PDFSyncおよびsrcltx)
8183 \end_layout
8184
8185 \begin_layout Standard
8186
8187 \emph on
8188 pdfsync
8189 \emph default
8190 および
8191 \emph on
8192 srcltx
8193 \emph default
8194 パッケージは,PDF出力(pdflatex経由)およびDVI出力での遡及検索を提供します.これを有効にするには,\SpecialChar LyX
8195 プリアンブルで以下のようにパッケージを読み込んで
8196 ください.
8197 \end_layout
8198
8199 \begin_layout Itemize
8200 PDFの遡及検索には
8201 \begin_inset Flex Code
8202 status collapsed
8203
8204 \begin_layout Plain Layout
8205
8206 \backslash
8207 usepackage{pdfsync}
8208 \end_layout
8209
8210 \end_inset
8211
8212
8213 \end_layout
8214
8215 \begin_layout Itemize
8216 DVIの遡及検索には
8217 \begin_inset Flex Code
8218 status collapsed
8219
8220 \begin_layout Plain Layout
8221
8222 \backslash
8223 usepackage[active]{srcltx}
8224 \end_layout
8225
8226 \end_inset
8227
8228
8229 \end_layout
8230
8231 \begin_layout Standard
8232 と書きます.DVIとPDFの両方の遡及検索を実行できるようにするためには,プリアンブルに以下の行を挿入する方法があります.
8233 \end_layout
8234
8235 \begin_layout LyX-Code
8236
8237 \backslash
8238 usepackage{ifpdf}
8239 \begin_inset Newline newline
8240 \end_inset
8241
8242
8243 \backslash
8244 ifpdf
8245 \begin_inset Newline newline
8246 \end_inset
8247
8248   
8249 \backslash
8250 usepackage{pdfsync}
8251 \begin_inset Newline newline
8252 \end_inset
8253
8254
8255 \backslash
8256 else
8257 \begin_inset Newline newline
8258 \end_inset
8259
8260   
8261 \backslash
8262 usepackage[active]{srcltx}
8263 \begin_inset Newline newline
8264 \end_inset
8265
8266
8267 \backslash
8268 fi
8269 \end_layout
8270
8271 \begin_layout Standard
8272 このようにすれば,DVIでもPDF(pdflatex)でも正しいパッケージを使いながら,ファイルを閲覧することができます.
8273 \end_layout
8274
8275 \begin_layout Standard
8276 なお,PDFSyncは,文書の出力レイアウトに干渉する可能性があるので注意してください.したがって,仕上がり文書ではPDFSyncを無効にすることをお勧めします
8277
8278 \end_layout
8279
8280 \begin_layout Subsubsection*
8281 Sync\SpecialChar TeX
8282 を使った組み込み遡及検索(DVIおよびPDF)
8283 \end_layout
8284
8285 \begin_layout Standard
8286 \begin_inset Flex Code
8287 status collapsed
8288
8289 \begin_layout Plain Layout
8290 (pdf)latex
8291 \end_layout
8292
8293 \end_inset
8294
8295 の最近のバージョンは,PDFおよびDVI両方の遡及検索を組み込みでサポートしています.このいわゆる
8296 \emph on
8297 Sync\SpecialChar TeX
8298
8299 \emph default
8300 機能は,主に,PDFSyncパッケージをpdftexプログラムへ統合したことと,それをsrc-specialsアプローチへ取り込んだことの成果です.これを使用す
8301 るためには,少なくとも\SpecialChar TeX
8302 Live 2008か最近のMik\SpecialChar TeX
8303 頒布版が必要です.また,既にSync\SpecialChar TeX
8304 サポートを提供しているPDFビューアは少ししかありません(UNIX上の
8305 OkularとQpdfview,Mac上のSkim,及びWindows上のSumatraPDF).
8306 \end_layout
8307
8308 \begin_layout Standard
8309 DVI出力でSync\SpecialChar TeX
8310 を有効にするには,
8311 \begin_inset Flex MenuItem
8312 status collapsed
8313
8314 \begin_layout Plain Layout
8315 設定\SpecialChar menuseparator
8316 ファイル処理\SpecialChar menuseparator
8317 変換子
8318 \end_layout
8319
8320 \end_inset
8321
8322
8323 \begin_inset Flex MenuItem
8324 status collapsed
8325
8326 \begin_layout Plain Layout
8327 LaTeX (plain)->DVI
8328 \end_layout
8329
8330 \end_inset
8331
8332 ないし
8333 \begin_inset Flex MenuItem
8334 status collapsed
8335
8336 \begin_layout Plain Layout
8337 LaTeX (plain)->DraftDVI
8338 \end_layout
8339
8340 \end_inset
8341
8342 変換子を
8343 \begin_inset Flex Code
8344 status collapsed
8345
8346 \begin_layout Plain Layout
8347 latex -synctex=1 $$i
8348 \end_layout
8349
8350 \end_inset
8351
8352 に変更します.PDF出力用には,
8353 \begin_inset Flex MenuItem
8354 status collapsed
8355
8356 \begin_layout Plain Layout
8357 LaTeX (pdflatex)->PDF (pdflatex)
8358 \end_layout
8359
8360 \end_inset
8361
8362 変換子を
8363 \begin_inset Flex Code
8364 status collapsed
8365
8366 \begin_layout Plain Layout
8367 pdflatex -synctex=1 $$i
8368 \end_layout
8369
8370 \end_inset
8371
8372 に変更してください.また,ビューアをSync\SpecialChar TeX
8373 で使うのに設定を行う必要があるかどうか,お使いのビューアの取扱説明書をご確認ください.
8374 \begin_inset Foot
8375 status collapsed
8376
8377 \begin_layout Plain Layout
8378 \begin_inset Flex Code
8379 status collapsed
8380
8381 \begin_layout Plain Layout
8382 -synctex=1
8383 \end_layout
8384
8385 \end_inset
8386
8387 オプションは,gzip圧縮を有効にします.お使いのビューアがgzip圧縮をサポートしていない場合には,代わりに
8388 \begin_inset Flex Code
8389 status collapsed
8390
8391 \begin_layout Plain Layout
8392 -synctex=-1
8393 \end_layout
8394
8395 \end_inset
8396
8397 を使用してください.
8398 \end_layout
8399
8400 \end_inset
8401
8402
8403 \end_layout
8404
8405 \begin_layout Subsection
8406 特定のビューアを設定して使うには
8407 \begin_inset CommandInset label
8408 LatexCommand label
8409 name "subsec:特定のビューアを設定して使うには"
8410
8411 \end_inset
8412
8413
8414 \end_layout
8415
8416 \begin_layout Subsubsection*
8417 Xdvi(全プラットフォーム)
8418 \end_layout
8419
8420 \begin_layout Standard
8421 \SpecialChar LyX
8422 は,
8423 \begin_inset Flex Code
8424 status collapsed
8425
8426 \begin_layout Plain Layout
8427 lyxclient
8428 \end_layout
8429
8430 \end_inset
8431
8432 プログラムを自動的に使うのに必要なフックを,既に提供しているので,
8433 \begin_inset Flex Code
8434 status collapsed
8435
8436 \begin_layout Plain Layout
8437 xdvi
8438 \end_layout
8439
8440 \end_inset
8441
8442 を使用する場合には,DVI遡及検索を実行するのに他にするべきことはありません.使用中の文書を上記で述べたように設定するだけです(遡及検索は,Ctrl-クリックか
8443 ,Mac OS X上ではAlt-クリックで始動します).
8444 \end_layout
8445
8446 \begin_layout Standard
8447 しかし,何らかの理由で,\SpecialChar LyX
8448 と通信するのにソケットではなく命名パイプを使用したい場合には,
8449 \begin_inset Flex MenuItem
8450 status collapsed
8451
8452 \begin_layout Plain Layout
8453 設定\SpecialChar menuseparator
8454 ファイル処理\SpecialChar menuseparator
8455 ファイル書式
8456 \end_layout
8457
8458 \end_inset
8459
8460 のDVIビューアを
8461 \begin_inset Flex Code
8462 status collapsed
8463
8464 \begin_layout Plain Layout
8465 xdvi -editor "lyxeditor.sh %f %l"
8466 \end_layout
8467
8468 \end_inset
8469
8470 (
8471 \begin_inset Flex Code
8472 status collapsed
8473
8474 \begin_layout Plain Layout
8475 lyxeditor.sh
8476 \end_layout
8477
8478 \end_inset
8479
8480 は適切なスクリプト名)に変更してください
8481 \begin_inset Foot
8482 status collapsed
8483
8484 \begin_layout Plain Layout
8485 Mac OS X上では,
8486 \begin_inset Flex Code
8487 status collapsed
8488
8489 \begin_layout Plain Layout
8490 DISPLAY=:0.0 xdvi -editor "lyxeditor.sh %f %l"
8491 \end_layout
8492
8493 \end_inset
8494
8495 としなくてはなりません.
8496 \end_layout
8497
8498 \end_inset
8499
8500 .たとえば,最低限のシェルスクリプトは
8501 \end_layout
8502
8503 \begin_layout LyX-Code
8504 #!/bin/sh
8505 \begin_inset Newline newline
8506 \end_inset
8507
8508 LYXPIPE="/path/to/lyxpipe"
8509 \begin_inset Newline newline
8510 \end_inset
8511
8512 COMMAND="LYXCMD:revdvi:server-goto-file-row:$1 $2"
8513 \begin_inset Newline newline
8514 \end_inset
8515
8516 echo "$COMMAND" > "${LYXPIPE}".in || exit
8517 \begin_inset Newline newline
8518 \end_inset
8519
8520 read TMP < "${LYXPIPE}".out || exit
8521 \end_layout
8522
8523 \begin_layout Standard
8524 のようになります.ここで
8525 \begin_inset Flex Code
8526 status collapsed
8527
8528 \begin_layout Plain Layout
8529 /path/to/lyxpipe
8530 \end_layout
8531
8532 \end_inset
8533
8534 は,
8535 \begin_inset Flex MenuItem
8536 status collapsed
8537
8538 \begin_layout Plain Layout
8539 設定\SpecialChar menuseparator
8540 パス
8541 \end_layout
8542
8543 \end_inset
8544
8545 で指定したLyXServerパイプのパスを指定してください.
8546 \begin_inset Foot
8547 status collapsed
8548
8549 \begin_layout Plain Layout
8550 ソース頒布版の
8551 \begin_inset Flex Code
8552 status collapsed
8553
8554 \begin_layout Plain Layout
8555 development/tools
8556 \end_layout
8557
8558 \end_inset
8559
8560 フォルダには,ユーザが設定した
8561 \emph on
8562 lyxpipe
8563 \emph default
8564 を探し出す
8565 \begin_inset Flex Code
8566 status collapsed
8567
8568 \begin_layout Plain Layout
8569 lyxeditor
8570 \end_layout
8571
8572 \end_inset
8573
8574 スクリプトがあります.
8575 \end_layout
8576
8577 \end_inset
8578
8579
8580 \end_layout
8581
8582 \begin_layout Subsubsection*
8583 MacDviX(Mac OS X)
8584 \end_layout
8585
8586 \begin_layout Standard
8587 \begin_inset Flex Code
8588 status collapsed
8589
8590 \begin_layout Plain Layout
8591 /Applications/MacDviX_Folder/calleditor.script
8592 \end_layout
8593
8594 \end_inset
8595
8596 の終わりに
8597 \end_layout
8598
8599 \begin_layout LyX-Code
8600 /Applications/LyX.app/Contents/MacOS/lyxeditor "$2" $1
8601 \begin_inset Newline newline
8602 \end_inset
8603
8604 exit 1
8605 \end_layout
8606
8607 \begin_layout Standard
8608 という行を付け加えてください.Applicationsフォルダ以外の場所に\SpecialChar LyX
8609 を導入した場合には,それに従って上記の行を修正してください.
8610 \end_layout
8611
8612 \begin_layout Standard
8613 遡及検索は,Alt-クリック(OPTION-クリック)で始動します.
8614 \end_layout
8615
8616 \begin_layout Subsubsection*
8617 Skim(Mac OS X)
8618 \end_layout
8619
8620 \begin_layout Standard
8621 \begin_inset Flex MenuItem
8622 status collapsed
8623
8624 \begin_layout Plain Layout
8625 設定\SpecialChar menuseparator
8626 ファイル処理\SpecialChar menuseparator
8627 ファイル書式\SpecialChar menuseparator
8628 PDF (pdflatex)
8629 \end_layout
8630
8631 \end_inset
8632
8633 のビューア設定に
8634 \begin_inset Flex Code
8635 status collapsed
8636
8637 \begin_layout Plain Layout
8638 open -a Skim.app $$i
8639 \end_layout
8640
8641 \end_inset
8642
8643 と入力し,
8644 \begin_inset Flex MenuItem
8645 status collapsed
8646
8647 \begin_layout Plain Layout
8648 Skim\SpecialChar menuseparator
8649 設定\SpecialChar menuseparator
8650 Sync
8651 \end_layout
8652
8653 \end_inset
8654
8655 でLyXを選択してください.
8656 \end_layout
8657
8658 \begin_layout Standard
8659 遡及検索は,COMMAND-SHIFT-クリックで始動します.
8660 \end_layout
8661
8662 \begin_layout Subsubsection*
8663 Okular (KDE)
8664 \end_layout
8665
8666 \begin_layout Standard
8667 \begin_inset Flex MenuItem
8668 status collapsed
8669
8670 \begin_layout Plain Layout
8671 設定\SpecialChar menuseparator
8672 Okularを設定\SpecialChar ldots
8673 \SpecialChar menuseparator
8674 編集
8675 \end_layout
8676
8677 \end_inset
8678
8679 で「カスタムテキストエディタ」を選択し,コマンドに
8680 \begin_inset Flex Code
8681 status collapsed
8682
8683 \begin_layout Plain Layout
8684 lyxclient -g %f %l
8685 \end_layout
8686
8687 \end_inset
8688
8689 を加えてください.
8690 \end_layout
8691
8692 \begin_layout Standard
8693 遡及検索は,SHIFT-クリックで始動します.
8694 \end_layout
8695
8696 \begin_layout Subsubsection*
8697 Qpdfview (UNIX)
8698 \end_layout
8699
8700 \begin_layout Standard
8701 Qpdfviewは,第0.3.5版以降,Sync\SpecialChar TeX
8702 をサポートしています.
8703 \begin_inset Flex MenuItem
8704 status collapsed
8705
8706 \begin_layout Plain Layout
8707 Edit\SpecialChar menuseparator
8708 Settings\SpecialChar menuseparator
8709 Behavior
8710 \end_layout
8711
8712 \end_inset
8713
8714 を開いて「Source editor」項目の入力フィールドをクリックし,
8715 \begin_inset Flex Code
8716 status collapsed
8717
8718 \begin_layout Plain Layout
8719 lyxclient -g %1 %2
8720 \end_layout
8721
8722 \end_inset
8723
8724 というコマンドを入力してください.
8725 \end_layout
8726
8727 \begin_layout Standard
8728 遡及検索は,ダブルクリックで始動します.
8729 \end_layout
8730
8731 \begin_layout Subsubsection*
8732 YAP(Windows)
8733 \end_layout
8734
8735 \begin_layout Standard
8736 yapを起動し,
8737 \begin_inset Flex MenuItem
8738 status collapsed
8739
8740 \begin_layout Plain Layout
8741 View\SpecialChar menuseparator
8742 Options
8743 \end_layout
8744
8745 \end_inset
8746
8747 メニューを選択し,「Inverse DVI Search」タブを選択します.「New\SpecialChar ldots
8748 」ボタンをクリックして開くウィンドウの「Name:」フィールドに「\SpecialChar LyX
8749
8750  Editor」(または自分の好きな名称)と入力してください.「\SpecialChar ldots
8751 」というラベルのボタンをクリックしてファイルダイアログを開き,バッチファイル
8752 \begin_inset Flex Code
8753 status collapsed
8754
8755 \begin_layout Plain Layout
8756 lyxeditor.bat
8757 \end_layout
8758
8759 \end_inset
8760
8761 (以下参照)のあるディレクトリを見つけます.
8762 \begin_inset Flex Code
8763 status collapsed
8764
8765 \begin_layout Plain Layout
8766 lyxeditor.bat
8767 \end_layout
8768
8769 \end_inset
8770
8771 を選択してプログラムの引数を
8772 \begin_inset Flex Code
8773 status collapsed
8774
8775 \begin_layout Plain Layout
8776 %f %l
8777 \end_layout
8778
8779 \end_inset
8780
8781 と指定してください.
8782 \begin_inset Flex Code
8783 status collapsed
8784
8785 \begin_layout Plain Layout
8786 lyxeditor.bat
8787 \end_layout
8788
8789 \end_inset
8790
8791 は,
8792 \emph on
8793 lyxpipe
8794 \emph default
8795 を通じて\SpecialChar LyX
8796 と通信するためのラッパとして使用され,以下のようになっています.
8797 \end_layout
8798
8799 \begin_layout LyX-Code
8800 @echo off
8801 \begin_inset Newline newline
8802 \end_inset
8803
8804 echo LYXCMD:revdvi:server-goto-file-row:%1 %2> 
8805 \backslash
8806
8807 \backslash
8808 .
8809 \backslash
8810 pipe
8811 \backslash
8812 lyxpipe.in
8813 \begin_inset Newline newline
8814 \end_inset
8815
8816 type 
8817 \backslash
8818
8819 \backslash
8820 .
8821 \backslash
8822 pipe
8823 \backslash
8824 lyxpipe.out
8825 \end_layout
8826
8827 \begin_layout Standard
8828 \SpecialChar LyX
8829 で指定した\SpecialChar LyX
8830 Serverパイプパスが,
8831 \begin_inset Flex Code
8832 status collapsed
8833
8834 \begin_layout Plain Layout
8835
8836 \backslash
8837
8838 \backslash
8839 .
8840 \backslash
8841 pipe
8842 \backslash
8843 lyxpipe
8844 \end_layout
8845
8846 \end_inset
8847
8848 となっていることを確認するか,
8849 \begin_inset Flex Code
8850 status collapsed
8851
8852 \begin_layout Plain Layout
8853 lyxeditor.bat
8854 \end_layout
8855
8856 \end_inset
8857
8858 ラッパの方を適切に修正してください.
8859 \end_layout
8860
8861 \begin_layout Standard
8862 yapでは,遡及検索はダブルクリックで始動します.
8863 \end_layout
8864
8865 \begin_layout Subsubsection*
8866 SumatraPDF(Windows)
8867 \end_layout
8868
8869 \begin_layout Standard
8870 SumatraPDFを遡及検索で使用するためには,
8871 \begin_inset Flex MenuItem
8872 status collapsed
8873
8874 \begin_layout Plain Layout
8875 設定\SpecialChar menuseparator
8876 ファイル処理\SpecialChar menuseparator
8877 ファイル書式\SpecialChar menuseparator
8878 PDF (pdflatex)
8879 \end_layout
8880
8881 \end_inset
8882
8883 のビューア設定で
8884 \begin_inset Flex Code
8885 status collapsed
8886
8887 \begin_layout Plain Layout
8888 SumatraPDF -inverse-search 
8889 \begin_inset Quotes eld
8890 \end_inset
8891
8892 lyxeditor.bat %f %l
8893 \begin_inset Quotes erd
8894 \end_inset
8895
8896
8897 \end_layout
8898
8899 \end_inset
8900
8901 (
8902 \begin_inset Flex Code
8903 status collapsed
8904
8905 \begin_layout Plain Layout
8906 lyxeditor.bat
8907 \end_layout
8908
8909 \end_inset
8910
8911 は上記のラッパ)と入力してください.SumatraPDF.exeがコマンドPATHにない場合,フルファイル名を使用してください.
8912 \end_layout
8913
8914 \begin_layout Standard
8915 遡及検索はダブルクリックで始動します.
8916 \end_layout
8917
8918 \begin_layout Subsubsection*
8919 YAP(Cygwin)
8920 \end_layout
8921
8922 \begin_layout Standard
8923 まずはじめに,yapがWindows環境での既定のDVIビューアになっていることを確認してから,yapを起動し,
8924 \begin_inset Flex MenuItem
8925 status collapsed
8926
8927 \begin_layout Plain Layout
8928 View\SpecialChar menuseparator
8929 Options
8930 \end_layout
8931
8932 \end_inset
8933
8934 メニューを選択し,「Inverse DVI Search」タブを選択します.「New\SpecialChar ldots
8935 」ボタンをクリックして開くウィンドウの「Name:」フィールドに「\SpecialChar LyX
8936
8937  Editor」(または自分の好きな名称)と入力してください.「\SpecialChar ldots
8938 」というラベルのボタンをクリックしてファイルダイアログを開き,バッチファイル
8939 \begin_inset Flex Code
8940 status collapsed
8941
8942 \begin_layout Plain Layout
8943 lyxeditor.exe
8944 \end_layout
8945
8946 \end_inset
8947
8948 プログラム(これは,Cygwinでは既定で\SpecialChar LyX
8949 実行ファイルとともに導入されます)のあるディレクトリを見つけます.
8950 \begin_inset Flex Code
8951 status collapsed
8952
8953 \begin_layout Plain Layout
8954 lyxeditor.exe
8955 \end_layout
8956
8957 \end_inset
8958
8959 を選択してプログラムの引数を
8960 \begin_inset Flex Code
8961 status collapsed
8962
8963 \begin_layout Plain Layout
8964 -g %f %l
8965 \end_layout
8966
8967 \end_inset
8968
8969 と指定してください.これによって,\SpecialChar LyX
8970 との通信に
8971 \emph on
8972 lyxsocket
8973 \emph default
8974 が使用されるようになります.何らかの理由で
8975 \emph on
8976 lyxpipe
8977 \emph default
8978 を使用したい場合には,
8979 \begin_inset Flex Code
8980 status collapsed
8981
8982 \begin_layout Plain Layout
8983 -g
8984 \end_layout
8985
8986 \end_inset
8987
8988 オプションを削除して,\SpecialChar LyX
8989 設定で\SpecialChar LyX
8990 Serverパイプパスを指定することを忘れないでください.
8991 \end_layout
8992
8993 \begin_layout Standard
8994 yapでは,遡及検索はダブルクリックで始動します.
8995 \end_layout
8996
8997 \begin_layout Subsubsection*
8998 SumatraPDF(Cygwin)
8999 \end_layout
9000
9001 \begin_layout Standard
9002 SumatraPDFを遡及検索で使用するためには,
9003 \begin_inset Flex MenuItem
9004 status collapsed
9005
9006 \begin_layout Plain Layout
9007 設定\SpecialChar menuseparator
9008 ファイル処理\SpecialChar menuseparator
9009 ファイル書式\SpecialChar menuseparator
9010 PDF (pdflatex)
9011 \end_layout
9012
9013 \end_inset
9014
9015 のビューア設定で
9016 \begin_inset Flex Code
9017 status collapsed
9018
9019 \begin_layout Plain Layout
9020 SumatraPDF.sh
9021 \end_layout
9022
9023 \end_inset
9024
9025 と入力してください.ここで
9026 \begin_inset Flex Code
9027 status collapsed
9028
9029 \begin_layout Plain Layout
9030 SumatraPDF.sh
9031 \end_layout
9032
9033 \end_inset
9034
9035 は以下のようなスクリプトです(お使いのコマンドパスに置きます.
9036 \begin_inset Flex Code
9037 status collapsed
9038
9039 \begin_layout Plain Layout
9040 /usr/local/bin
9041 \end_layout
9042
9043 \end_inset
9044
9045 がもっとも良い選択肢でしょう).
9046 \end_layout
9047
9048 \begin_layout LyX-Code
9049 #!/bin/bash
9050 \begin_inset Newline newline
9051 \end_inset
9052
9053 cd $(dirname $1)
9054 \begin_inset Newline newline
9055 \end_inset
9056
9057 SumatraPDF -inverse-search "lyxeditor -g %f %l" $(basename $1)
9058 \end_layout
9059
9060 \begin_layout Standard
9061 SumatraPDFは,Windowsネイティブのアプリケーションであり,\SpecialChar LyX
9062 のCygwin版が使用するPOSIXパスを理解しないので,このラッパスクリプトが必要と
9063 なります.SumatraPDF.exeがお使いのコマンドパスにない場合は,上記のスクリプトでPOSIXのフルパスを使用してください.
9064 \begin_inset Flex Code
9065 status collapsed
9066
9067 \begin_layout Plain Layout
9068 -g
9069 \end_layout
9070
9071 \end_inset
9072
9073
9074 \emph on
9075 lyxsocket
9076 \emph default
9077 経由の通信を有効にします.ここでも,
9078 \emph on
9079 lyxpipe
9080 \emph default
9081 を使用したい場合には,
9082 \begin_inset Flex Code
9083 status collapsed
9084
9085 \begin_layout Plain Layout
9086 -g
9087 \end_layout
9088
9089 \end_inset
9090
9091 オプションを削除して,\SpecialChar LyX
9092 設定で\SpecialChar LyX
9093 Serverパイプパスを指定することを忘れないでください.
9094 \end_layout
9095
9096 \begin_layout Standard
9097 遡及検索はダブルクリックで始動します.
9098 \end_layout
9099
9100 \begin_layout Section
9101 順検索
9102 \end_layout
9103
9104 \begin_layout Standard
9105 順検索とは,名前が示すとおり,いわば遡及検索の「逆」を意味します.すなわち,\SpecialChar LyX
9106 内部から,ビューアに特定の箇所を表示させることを可能にします.(以下に説明するように
9107 )もし順検索の準備ができていれば,カーソルを\SpecialChar LyX
9108 文書の好きなところに置いて,
9109 \begin_inset Flex MenuItem
9110 status collapsed
9111
9112 \begin_layout Plain Layout
9113 移動\SpecialChar menuseparator
9114 順検索
9115 \end_layout
9116
9117 \end_inset
9118
9119 を選択すると(あるいはマウスの右クリックで表示される文脈依存メニューから
9120 \begin_inset Flex MenuItem
9121 status collapsed
9122
9123 \begin_layout Plain Layout
9124 順検索
9125 \end_layout
9126
9127 \end_inset
9128
9129 を選択してもよい),ビューアも同じ箇所に移動します.もちろん,使用しているビューアが,この機能をサポートしていなくてはなりません.
9130 \end_layout
9131
9132 \begin_layout Standard
9133 順検索を有効にするためには,生成されたPDF/DVI出力ファイルに,\SpecialChar TeX
9134 ソースに関する情報を追加する必要があります.これは,第
9135 \begin_inset CommandInset ref
9136 LatexCommand ref
9137 reference "subsec:遡及検索"
9138
9139 \end_inset
9140
9141 節に述べられている方法で実行することができます.
9142 \end_layout
9143
9144 \begin_layout Standard
9145 次に,
9146 \begin_inset Flex MenuItem
9147 status collapsed
9148
9149 \begin_layout Plain Layout
9150 ツール\SpecialChar menuseparator
9151 設定\SpecialChar menuseparator
9152 出力\SpecialChar menuseparator
9153 一般
9154 \end_layout
9155
9156 \end_inset
9157
9158 で自分の使うビューアを利用するように,\SpecialChar LyX
9159 を設定する必要があります.いくつかのビューアについては,試験済みの設定が前もって準備されており,ドロップダウンリストから選
9160 択することができます.これらの設定の何れも意にそぐわない場合には,ご自身で適切な設定を見つけ出して入力しなくてはなりません.定義文法は,以下の変数を使用します.
9161 \end_layout
9162
9163 \begin_layout Itemize
9164 \begin_inset Flex Code
9165 status collapsed
9166
9167 \begin_layout Plain Layout
9168 $$n
9169 \end_layout
9170
9171 \end_inset
9172
9173 :行番号
9174 \end_layout
9175
9176 \begin_layout Itemize
9177 \begin_inset Flex Code
9178 status collapsed
9179
9180 \begin_layout Plain Layout
9181 $$t
9182 \end_layout
9183
9184 \end_inset
9185
9186 :書き出された(一時).texファイル名(パスを除く)
9187 \end_layout
9188
9189 \begin_layout Itemize
9190 \begin_inset Flex Code
9191 status collapsed
9192
9193 \begin_layout Plain Layout
9194 $$f
9195 \end_layout
9196
9197 \end_inset
9198
9199 :書き出された(一時).texファイル名(パスを含む)
9200 \end_layout
9201
9202 \begin_layout Itemize
9203 \begin_inset Flex Code
9204 status collapsed
9205
9206 \begin_layout Plain Layout
9207 $$o
9208 \end_layout
9209
9210 \end_inset
9211
9212 :書き出された出力ファイル名(どちらが一時ディレクトリに存在するかに依存して,dviあるいはpdf).
9213 \end_layout
9214
9215 \begin_layout Standard
9216 yap・xdvi・okular
9217 \begin_inset Foot
9218 status collapsed
9219
9220 \begin_layout Plain Layout
9221 \begin_inset Flex MenuItem
9222 status collapsed
9223
9224 \begin_layout Plain Layout
9225 ツール\SpecialChar menuseparator
9226 設定\SpecialChar menuseparator
9227 ファイル処理\SpecialChar menuseparator
9228 ファイル形式
9229 \end_layout
9230
9231 \end_inset
9232
9233
9234 \begin_inset Flex Code
9235 status collapsed
9236
9237 \begin_layout Plain Layout
9238 okular –unique
9239 \end_layout
9240
9241 \end_inset
9242
9243 と設定すると良いかもしれません.
9244 \end_layout
9245
9246 \end_inset
9247
9248 ・qpdfview・Sumatra PDFなど,一部のビューアでしか,完全な順検索機能は提供されていないことに注意してください
9249 \begin_inset Foot
9250 status collapsed
9251
9252 \begin_layout Plain Layout
9253 SumatraPDFも,外部プログラムCMCDDEを通じて,DDEコマンドを使用することができます.CMCDDEは,
9254 \begin_inset CommandInset href
9255 LatexCommand href
9256 target "http://www.istri.fr/spip/zip/CMCDDE.zip"
9257 literal "false"
9258
9259 \end_inset
9260
9261 からダウンロードすることができます.
9262 \end_layout
9263
9264 \end_inset
9265
9266 .広く使われているPDFビューアの多く(特にAdobe Reader)は,順検索を全く提供していませんが,他の一部のビューア(たとえばEvinceやxpdf)で
9267 は,少なくとも,文書を読み込み直したり,ファイルの特定ページに移動することはできますので,少なくとも「近く」には移動することができます.この後者の機能は,syn
9268 ctexの外部コールで提供されています(事前に用意されている用例をご覧ください).
9269 \end_layout
9270
9271 \begin_layout Standard
9272 順検索は,DVI出力とPDF出力の双方で動作します.\SpecialChar LyX
9273 は,過去にあなたが使用したプレビュー形式をチェックして(つまり,一時ディレクトリにどちらの形式が存在するかを
9274 チェックして),その形式に適切な設定を選択します.
9275 \end_layout
9276
9277 \begin_layout Chapter
9278 特別な文書クラス
9279 \end_layout
9280
9281 \begin_layout Section
9282 A&Aの論文
9283 \end_layout
9284
9285 \begin_layout Standard
9286
9287 \noun on
9288 Peter Sütterlin文
9289 \end_layout
9290
9291 \begin_layout Subsection
9292 はじめに
9293 \end_layout
9294
9295 \begin_layout Standard
9296 この節では,文書クラス
9297 \family typewriter
9298 aa.cls
9299 \family default
9300 第5.01版を使用して科学雑誌
9301 \emph on
9302 Astronomy and Astrophysics
9303 \emph default
9304 (『天文学と宇宙物理学』: 
9305 \begin_inset Flex URL
9306 status collapsed
9307
9308 \begin_layout Plain Layout
9309
9310 http://www.edpsciences.fr/aa/
9311 \end_layout
9312
9313 \end_inset
9314
9315 )に投稿する論文を執筆するための\SpecialChar LyX
9316 の使用法を説明します.このパッケージは,FTPサイト
9317 \end_layout
9318
9319 \begin_layout Standard
9320 \align center
9321 \begin_inset VSpace medskip
9322 \end_inset
9323
9324
9325 \begin_inset Flex URL
9326 status collapsed
9327
9328 \begin_layout Plain Layout
9329
9330 ftp://ftp.edpsciences.org/pub/aa/readme.html
9331 \end_layout
9332
9333 \end_inset
9334
9335
9336 \begin_inset VSpace medskip
9337 \end_inset
9338
9339
9340 \end_layout
9341
9342 \begin_layout Standard
9343 \noindent
9344 からダウンロードすることができます.
9345 \end_layout
9346
9347 \begin_layout Standard
9348 このパッケージには取扱説明書がついていますが,本節は,本来の取扱説明書の代わりとなることを意図したものではなく,あなたの論文を正しい様式に整えるための小さな案内
9349 書であるに過ぎません.
9350 \end_layout
9351
9352 \begin_layout Standard
9353 この学術誌の出版元は,2001年1月1日以降,Springer社からEDP Science社に変更されていることにご注意ください.この出版社の変更によって,th
9354 esaurusコマンドの廃止など,スタイルファイルに若干の変更が加わっています.\SpecialChar LyX
9355 のaaクラスは,スタイルファイルの最新版(第5.01版)をサポートしています.もし
9356 古い版が装備されている場合には,更新してください.互換性のために,古い(第4版)レイアウトは,
9357 \family sans
9358 article (A&A V4)
9359 \family default
9360 として残してあります.
9361 \family typewriter
9362 $\SpecialChar LyX
9363 Dir/layouts/aapaper.layout
9364 \family default
9365 のコメントをご参照ください.
9366 \end_layout
9367
9368 \begin_layout Subsection
9369 最初の一歩
9370 \end_layout
9371
9372 \begin_layout Standard
9373 \SpecialChar LyX
9374 とともに頒布されている例示用のひな型を土台として,書き始めることをお勧めします.ひな型を使用しない場合には,以下の設定にしてください.
9375 \end_layout
9376
9377 \begin_layout Itemize
9378
9379 \family sans
9380 文書\SpecialChar menuseparator
9381 設定
9382 \family default
9383 ダイアログで
9384 \family sans
9385 article (A&A)
9386 \family default
9387 を選択してください(まぁ,これは自明ですね).
9388 \end_layout
9389
9390 \begin_layout Itemize
9391
9392 \family sans
9393 ページレイアウト
9394 \family default
9395 オプションは変更しないで,既定値のままに設定しておいてください.全体のレイアウトはマクロが行うので,何も変更してはいけません.
9396 \end_layout
9397
9398 \begin_layout Subsection
9399 へッダ部
9400 \end_layout
9401
9402 \begin_layout Standard
9403 最初に入力すべきものは,へッダ情報です.ヘッダ情報には,以下の7つの項目があり,いくつかは必須ではありません.
9404 \end_layout
9405
9406 \begin_layout Itemize
9407
9408 \family sans
9409 タイトル
9410 \family default
9411 :[必須]
9412 \end_layout
9413
9414 \begin_layout Itemize
9415
9416 \family sans
9417 サブタイトル
9418 \family default
9419 :[非必須]
9420 \end_layout
9421
9422 \begin_layout Itemize
9423
9424 \family sans
9425 著者
9426 \family default
9427 :[必須]
9428 \end_layout
9429
9430 \begin_layout Itemize
9431
9432 \family sans
9433 住所
9434 \family default
9435 :[必須]
9436 \end_layout
9437
9438 \begin_layout Itemize
9439
9440 \family sans
9441 抜き刷り
9442 \family default
9443 :[非必須]著者が複数いる場合,抜き刷りの送付を依頼するのに連絡すべき人を記す.
9444 \end_layout
9445
9446 \begin_layout Itemize
9447
9448 \family sans
9449 メール
9450 \family default
9451 :[非必須]連絡用の電子メールアドレス.
9452 \end_layout
9453
9454 \begin_layout Itemize
9455
9456 \family sans
9457 日付
9458 \family default
9459 :[必須]推奨されるフォーマットは,
9460 \family typewriter
9461 Received: <日付>; Accepted <日付>
9462 \family default
9463 です.
9464 \end_layout
9465
9466 \begin_layout Standard
9467
9468 \family typewriter
9469
9470 \backslash
9471 maketitle
9472 \family default
9473 コマンドは,へッダが終了した場所に,\SpecialChar LyX
9474 が自動的に入れてくれるので,手動で挿入する必要はありません.各項目の順序は関係ありませんが,見た目のためと,実際の文書のレイ
9475 アウトに合わせるために,上記の順序を維持しておくと良いでしょう.
9476 \end_layout
9477
9478 \begin_layout Standard
9479 現住所の付記などのために,へッダ部に脚注を挿入したい場合には,
9480 \family sans
9481 挿入\SpecialChar menuseparator
9482 脚注
9483 \family default
9484 を使用して標準の脚注を挿入してください.この場合には,\SpecialChar LyX
9485 は自動的に
9486 \family typewriter
9487
9488 \backslash
9489 thanks{}
9490 \family default
9491 を使用します.
9492 \end_layout
9493
9494 \begin_layout Standard
9495 これらのトピックの他に,このマクロは,\SpecialChar LyX
9496 が対応していない,以下の3つの\SpecialChar LaTeX
9497 コマンドを使用します.
9498 \end_layout
9499
9500 \begin_layout Itemize
9501 複数の著者名あるいは所属名を区切るための
9502 \family typewriter
9503
9504 \backslash
9505 and
9506 \end_layout
9507
9508 \begin_layout Itemize
9509 著者と所属の対応付けをするための
9510 \family typewriter
9511
9512 \backslash
9513 inst{<番号>}
9514 \family default
9515 .所属は,
9516 \family sans
9517 住所
9518 \family default
9519 フィールドに現れる順に番号が付けられるので,各著者に番号マーカーを置く必要があります.
9520 \end_layout
9521
9522 \begin_layout Itemize
9523
9524 \family typewriter
9525
9526 \backslash
9527 email{アドレス}
9528 \family default
9529 は,至急連絡用に電子メールアドレスを付記します.
9530 \end_layout
9531
9532 \begin_layout Standard
9533 いずれの場合にも,\SpecialChar LyX
9534 中に対応したコマンドを入力し,\SpecialChar LaTeX
9535 コードとしてマークしてください.
9536 \begin_inset Flex Code
9537 status collapsed
9538
9539 \begin_layout Plain Layout
9540 $\SpecialChar LyX
9541 Dir/examples
9542 \end_layout
9543
9544 \end_inset
9545
9546 にある用例を参照してください.
9547 \end_layout
9548
9549 \begin_layout Subsection
9550 概要
9551 \end_layout
9552
9553 \begin_layout Standard
9554 概要は,へッダ部の直後に置きます.第5版から,概要は環境からコマンドに変更され,一段落に限るという制限が加えられました.さらに,ここにはキーワードを含む項目を入
9555 れなくてはなりません.これは,まだ\SpecialChar LyX
9556 では実装されていないため,\SpecialChar LaTeX
9557 コマンド
9558 \family typewriter
9559
9560 \backslash
9561 keywords{}
9562 \family default
9563 を手動で入力し,\SpecialChar LaTeX
9564 コードとしてマークする必要があります.用例にある論文を参照してください.
9565 \end_layout
9566
9567 \begin_layout Subsection
9568 サポートされる環境
9569 \end_layout
9570
9571 \begin_layout Standard
9572 A&A論文用レイアウトでは,文章を構造化するために,以下の環境がサポートされています.
9573 \end_layout
9574
9575 \begin_layout Itemize
9576
9577 \family sans
9578 標準
9579 \end_layout
9580
9581 \begin_layout Itemize
9582
9583 \family sans
9584
9585 \end_layout
9586
9587 \begin_layout Itemize
9588
9589 \family sans
9590 小節
9591 \end_layout
9592
9593 \begin_layout Itemize
9594
9595 \family sans
9596 小々節
9597 \end_layout
9598
9599 \begin_layout Itemize
9600
9601 \family sans
9602 箇条書き(記号)
9603 \end_layout
9604
9605 \begin_layout Itemize
9606
9607 \family sans
9608 箇条書き(連番)
9609 \end_layout
9610
9611 \begin_layout Itemize
9612
9613 \family sans
9614 箇条書き(記述)
9615 \end_layout
9616
9617 \begin_layout Itemize
9618
9619 \family sans
9620 キャプション
9621 \end_layout
9622
9623 \begin_layout Itemize
9624
9625 \family sans
9626 概要
9627 \end_layout
9628
9629 \begin_layout Itemize
9630
9631 \family sans
9632 謝辞(Acknowledgment)
9633 \end_layout
9634
9635 \begin_layout Itemize
9636
9637 \family sans
9638 書誌情報
9639 \end_layout
9640
9641 \begin_layout Itemize
9642
9643 \family sans
9644 \SpecialChar LaTeX
9645
9646 \end_layout
9647
9648 \begin_layout Subsection
9649 \SpecialChar LyX
9650 でサポートされていないコマンド
9651 \end_layout
9652
9653 \begin_layout Standard
9654 \SpecialChar LyX
9655
9656 \family sans
9657 article (A&A)
9658 \family default
9659 レイアウトでは,まだサポートされていないコマンドがあります.そのうちいくつかは既に紹介しましたが,網羅するために,以下にすべて列挙しておきます.
9660 \end_layout
9661
9662 \begin_layout Itemize
9663
9664 \family typewriter
9665
9666 \backslash
9667 and
9668 \end_layout
9669
9670 \begin_layout Itemize
9671
9672 \family typewriter
9673
9674 \backslash
9675 email
9676 \end_layout
9677
9678 \begin_layout Itemize
9679
9680 \family typewriter
9681
9682 \backslash
9683 appendix
9684 \end_layout
9685
9686 \begin_layout Itemize
9687
9688 \family typewriter
9689
9690 \backslash
9691 authorrunning
9692 \end_layout
9693
9694 \begin_layout Itemize
9695
9696 \family typewriter
9697
9698 \backslash
9699 inst{}
9700 \end_layout
9701
9702 \begin_layout Itemize
9703
9704 \family typewriter
9705
9706 \backslash
9707 keywords{}
9708 \end_layout
9709
9710 \begin_layout Itemize
9711
9712 \family typewriter
9713
9714 \backslash
9715 object{}
9716 \end_layout
9717
9718 \begin_layout Itemize
9719
9720 \family typewriter
9721
9722 \backslash
9723 titlerunning{}
9724 \end_layout
9725
9726 \begin_layout Standard
9727 これらのコマンドのいずれかを使いたい場合には,自分で入力する必要があります.
9728 \series bold
9729 これを\SpecialChar LaTeX
9730 コマンドとしてマークすることを忘れないで下さい.
9731 \end_layout
9732
9733 \begin_layout Subsection
9734 図フロートおよび表フロート
9735 \end_layout
9736
9737 \begin_layout Standard
9738 \SpecialChar LyX
9739 は,必要なフロート環境
9740 \family sans
9741 figure
9742 \family default
9743
9744 \family sans
9745 figure*
9746 \family default
9747
9748 \family sans
9749 table
9750 \family default
9751
9752 \family sans
9753 table*
9754 \family default
9755 をサポートしていますので,ここでは詳しい説明はしません.
9756 \emph on
9757 ユーザーの手引き
9758 \emph default
9759 をご覧ください.ただ,表は左揃えにしなくてはならないことに注意して下さい.そうするためには,表を選択して,
9760 \family sans
9761 編集\SpecialChar menuseparator
9762 段落設定
9763 \family default
9764 で配置を変更してください.
9765 \end_layout
9766
9767 \begin_layout Standard
9768 一つだけ,特別なものがあります.それは,図横にキャプションを配置する図です.この図を作成するには,以下のようにしなくてはなりません.
9769 \end_layout
9770
9771 \begin_layout Enumerate
9772
9773 \family sans
9774 挿入\SpecialChar menuseparator
9775 フロート\SpecialChar menuseparator
9776
9777 \family default
9778 を使って,幅広の図フロートを作成します.それから,図フロートのラベルを右クリックして
9779 \begin_inset Flex MenuItem
9780 status collapsed
9781
9782 \begin_layout Plain Layout
9783 設定\SpecialChar ldots
9784
9785 \end_layout
9786
9787 \end_inset
9788
9789 を選択し,それで開かれる
9790 \family sans
9791 フロートの設定
9792 \family default
9793 ダイアログで
9794 \family sans
9795 段をまたぐ
9796 \family default
9797 を有効にして,
9798 \family sans
9799 OK
9800 \family default
9801 ボタンを押します.
9802 \end_layout
9803
9804 \begin_layout Enumerate
9805 キャプション文を入力します.
9806 \end_layout
9807
9808 \begin_layout Enumerate
9809 キャプションの前にカーソルを移動し,
9810 \family sans
9811 Return
9812 \family default
9813 を押して,カーソルをキャプションの上に移動します.
9814 \end_layout
9815
9816 \begin_layout Enumerate
9817 図を挿入します.
9818 \end_layout
9819
9820 \begin_layout Enumerate
9821 カーソルを図の後ろに置いて,
9822 \family sans
9823 挿入\SpecialChar menuseparator
9824 整形\SpecialChar menuseparator
9825 水平方向の空白
9826 \family default
9827 を選択して
9828 \family sans
9829 水平方向の空白の設定
9830 \family default
9831 ダイアログを開き,
9832 \family sans
9833 空白
9834 \family default
9835 ドロップダウンから
9836 \family sans
9837 水平フィル
9838 \family default
9839 を選択して,水平フィルを挿入します.
9840 \end_layout
9841
9842 \begin_layout Enumerate
9843
9844 \family sans
9845 挿入\SpecialChar menuseparator
9846 TeXコード
9847 \family default
9848 を選択して,\SpecialChar TeX
9849 差込枠を挿入します.
9850 \end_layout
9851
9852 \begin_layout Enumerate
9853 \SpecialChar TeX
9854 差込枠中に
9855 \family typewriter
9856
9857 \backslash
9858 parbox[b]{55mm}{
9859 \family default
9860 と入力します.
9861 \series bold
9862 ここでは波括弧を閉じないでください.
9863 \end_layout
9864
9865 \begin_layout Enumerate
9866 カーソルをキャプション文の後ろに移動し,
9867 \family sans
9868 挿入\SpecialChar menuseparator
9869 TeXコード
9870 \family default
9871 を選択して,別の\SpecialChar TeX
9872 差込枠を挿入し,その中に閉じ括弧を入力します .
9873 \end_layout
9874
9875 \begin_layout Standard
9876 例示用論文中の図もご参照ください.
9877 \end_layout
9878
9879 \begin_layout Subsection
9880 Refereeレイアウト
9881 \end_layout
9882
9883 \begin_layout Standard
9884 投稿用には,論文を特別なダブルスペースレイアウトに整形しなくてはなりません.このためには,文書クラスに
9885 \family typewriter
9886 referee
9887 \family default
9888 オプションを与える必要があります.これは,
9889 \family sans
9890 文書\SpecialChar menuseparator
9891 設定
9892 \family default
9893 ダイアログの
9894 \family sans
9895 任意設定
9896 \family default
9897 クラスオプションフィールドを使って行うことができます.この欄に
9898 \family typewriter
9899 referee
9900 \family default
9901 と云う文字列を入力してください.
9902 \end_layout
9903
9904 \begin_layout Subsection
9905 例示用論文
9906 \end_layout
9907
9908 \begin_layout Standard
9909
9910 \family sans
9911 Examples
9912 \family default
9913 ディレクトリには,\SpecialChar LyX
9914 で書かれた例示用論文が収録されています.これは,元のマクロパッケージの例示用論文を\SpecialChar LyX
9915 用に直したものです.これはヒントを得るために使用したり,元の
9916  \SpecialChar LaTeX
9917 コードと\SpecialChar LyX
9918 での書き方の比較に使ったりしてください.
9919 \end_layout
9920
9921 \begin_layout Section
9922 AAS\SpecialChar TeX
9923
9924 \end_layout
9925
9926 \begin_layout Standard
9927
9928 \noun on
9929 Mike Ressler
9930 \noun default
9931
9932 \end_layout
9933
9934 \begin_layout Subsection
9935 はじめに
9936 \end_layout
9937
9938 \begin_layout Standard
9939 AAS\SpecialChar TeX
9940 は,American Astronomical Society(アメリカ天文学会)が発行するAstrophysical Journal(宇宙物理学雑誌)同
9941 誌のLettersとSupplementを含む)・Astronomical Journal(天文学雑誌)・Publications of the
9942  Astronomical Society of the Pacific(太平洋天文学会誌)三誌への電子投稿を可能にするために,同学会が作成したマクロ集です.\SpecialChar LyX
9943
9944 ,これらの文書を生成する上で,なかでも数式・引用・画像処理能力において,優れたツールであることが認識されています.\SpecialChar LyX
9945 は,同マクロ第5.0版以降を必要としており,でき
9946 ればここで説明されている第5.2版以降が望まれます.第5.0版未満の版は,\SpecialChar LaTeX
9947 2.09で使用するよう企図されているため,根本的に\SpecialChar LyX
9948 とは互換性がありません.AAS\SpecialChar TeX
9949 パッケージは
9950 ,以下のAAS\SpecialChar TeX
9951 ウェブサイトからダウンロードできるでしょう.
9952 \end_layout
9953
9954 \begin_layout Standard
9955 \align center
9956 \begin_inset VSpace medskip
9957 \end_inset
9958
9959
9960 \begin_inset Flex URL
9961 status collapsed
9962
9963 \begin_layout Plain Layout
9964
9965 https://aas.org/aastex/aastex-downloads
9966 \end_layout
9967
9968 \end_inset
9969
9970
9971 \begin_inset VSpace medskip
9972 \end_inset
9973
9974
9975 \end_layout
9976
9977 \begin_layout Standard
9978 パッケージ中には,完備したユーザーの手引きが収録されていますので,\SpecialChar LyX
9979 で論文を書き始める前に,その中身を完全に理解しておく必要があります.\SpecialChar LyX
9980 は,AASTeXの全コマン
9981 ドを理解する必然性をなくすものではなく,すべてを手入力する苦労を減らすだけです.仕上がりの\SpecialChar LaTeX
9982 文書が,論文を投稿しようとしているジャーナルの要求事項に完全に合致して
9983 いることを確認するのは,あなたの責任です.
9984 \end_layout
9985
9986 \begin_layout Subsection
9987 新しい論文を書き始める
9988 \end_layout
9989
9990 \begin_layout Standard
9991 論文を書き始めるには,AAS\SpecialChar TeX
9992 ひな型ファイルを土台に始めることを強くお勧めします.
9993 \begin_inset Flex MenuItem
9994 status collapsed
9995
9996 \begin_layout Plain Layout
9997 ファイル\SpecialChar menuseparator
9998 新規(ひな型使用)
9999 \end_layout
10000
10001 \end_inset
10002
10003 をクリックして,新しいファイル名を入力し,ひな型
10004 \family typewriter
10005 aastex.lyx
10006 \family default
10007 を選んでください.これには,論文原稿のほとんどに共通して使われるフィールドが書き込まれています.書き込まれている文字列(括弧
10008 \family typewriter
10009 <>
10010 \family default
10011 を含む)を正しい情報で上書きしてください.AAS\SpecialChar TeX
10012 コマンド・AAS\SpecialChar TeX
10013 環境の多くは,\SpecialChar LyX
10014 中で直接実行することができますが,特に
10015 \family typewriter
10016
10017 \backslash
10018 altaffilmark
10019 \family default
10020
10021 \family typewriter
10022
10023 \backslash
10024 altaffiltext
10025 \family default
10026 のようにできないものもあります.この二つのコマンドは,ひな型ファイルを開いたとき,赤色に表示されているのですぐ目に入ることでしょう.このようなコマンドは,直接L
10027 a\SpecialChar TeX
10028 コードを入力して,それを\SpecialChar TeX
10029 コードとしてマークしなければなりません.このようなコマンドは,\SpecialChar TeX
10030 コードあるいはEvil Red Text(邪悪な赤い文)と呼ばれます.A
10031 AS\SpecialChar TeX
10032 文書に必要とされる \SpecialChar TeX
10033 コードを最小にするよう努力はしていますが,まだ望まれるほどにはなっていません.
10034 \end_layout
10035
10036 \begin_layout Subsection
10037 論文を書き終わったら
10038 \end_layout
10039
10040 \begin_layout Standard
10041 論文を満足する水準で書き終え,プレビューや印刷が正しく為されているとしても,まだ学術誌に投稿する前にしなくてはならない「後処理」が残されています.
10042 \end_layout
10043
10044 \begin_layout Enumerate
10045 論文を \SpecialChar LaTeX
10046 ファイルとして書き出します(
10047 \family sans
10048 ファイル\SpecialChar menuseparator
10049 書き出し\SpecialChar menuseparator
10050 LateX
10051 \family default
10052 ).
10053 \end_layout
10054
10055 \begin_layout Enumerate
10056 出力した
10057 \family typewriter
10058 .tex
10059 \family default
10060 ファイルを好きなエディタで編集します.
10061 \end_layout
10062
10063 \begin_deeper
10064 \begin_layout Enumerate
10065
10066 \family typewriter
10067
10068 \backslash
10069 documentclass
10070 \family default
10071 コマンドよりも前のコメント行を削除します.
10072 \end_layout
10073
10074 \begin_layout Enumerate
10075
10076 \family typewriter
10077
10078 \backslash
10079 usepackage...{fontenc}
10080 \family default
10081 という行があれば(通常は
10082 \family typewriter
10083
10084 \backslash
10085 documentclass
10086 \family default
10087 の直後にあります)削除します.また,
10088 \family typewriter
10089
10090 \backslash
10091 secnumdepth
10092 \family default
10093 行があれば,これも削除します.
10094 \end_layout
10095
10096 \begin_layout Enumerate
10097 \SpecialChar LaTeX
10098 プリアンブル中に意図的に置いたコマンド(
10099 \family typewriter
10100 .tex
10101 \family default
10102 ファイル中,「User specified \SpecialChar LaTeX
10103  commands」というコメントの直後にあります)を除いて,
10104 \family typewriter
10105
10106 \backslash
10107 makeatletter
10108 \family default
10109
10110 \family typewriter
10111
10112 \backslash
10113 makeatother
10114 \family default
10115 の間のもの(これらのコマンドを含む)をすべて削除します.
10116 \end_layout
10117
10118 \end_deeper
10119 \begin_layout Enumerate
10120 編集後のファイルを \SpecialChar LaTeX
10121 にかけて,正しく処理されることを確認します.
10122 \end_layout
10123
10124 \begin_layout Enumerate
10125 学術誌の要求事項を再読して,ファイル名と書式が正しいことを確認します.
10126 \end_layout
10127
10128 \begin_layout Enumerate
10129 投稿してください.
10130 \end_layout
10131
10132 \begin_layout Subsection
10133 特定のコマンドに関するコメント
10134 \end_layout
10135
10136 \begin_layout Standard
10137 AAS\SpecialChar TeX
10138 ユーザーの手引き(
10139 \family typewriter
10140 aasguide.tex
10141 \family default
10142 )に,各AAS\SpecialChar TeX
10143 コマンドの詳しい説明があるので,ここでは,各コマンドの使用法の詳細な説明は行いません.そこで,ここではユーザーの手引きに現れるとおりに一覧を列挙し
10144 て,必要なところだけコメントを加えることにしましょう.
10145 \end_layout
10146
10147 \begin_layout Subsubsection
10148 期待通りに動作するもの
10149 \end_layout
10150
10151 \begin_layout Standard
10152 これらは期待通りに動作するので,ここでは列挙するだけにして,コマンドの説明されている節を挙げておきます.
10153 \family typewriter
10154
10155 \backslash
10156 documentclass
10157 \family default
10158  (2.1.1)・
10159 \family typewriter
10160
10161 \backslash
10162 begin{document}
10163 \family default
10164  (2.2)・
10165 \family typewriter
10166
10167 \backslash
10168 title
10169 \family default
10170  (2.3)・
10171 \family typewriter
10172
10173 \backslash
10174 author
10175 \family default
10176  (2.3)・
10177 \family typewriter
10178
10179 \backslash
10180 affil
10181 \family default
10182  (2.3)・
10183 \family typewriter
10184
10185 \backslash
10186 abstract
10187 \family default
10188  (2.4)・
10189 \family typewriter
10190
10191 \backslash
10192 keywords
10193 \family default
10194  (2.5)・
10195 \family typewriter
10196
10197 \backslash
10198 section
10199 \family default
10200  (2.7)・
10201 \family typewriter
10202
10203 \backslash
10204 subsection
10205 \family default
10206  (2.7)・
10207 \family typewriter
10208
10209 \backslash
10210 subsubsection
10211 \family default
10212  (2.7)・
10213 \family typewriter
10214
10215 \backslash
10216 paragraph
10217 \family default
10218  (2.7)・
10219 \family typewriter
10220
10221 \backslash
10222 facility
10223 \family default
10224  (2.10)・
10225 \family typewriter
10226
10227 \backslash
10228 begin{displaymath}
10229 \family default
10230  (2.12)・
10231 \family typewriter
10232
10233 \backslash
10234 begin{equation}
10235 \family default
10236  (2.12)・
10237 \family typewriter
10238
10239 \backslash
10240 begin{eqnarray}
10241 \family default
10242  (2.12)・
10243 \family typewriter
10244
10245 \backslash
10246 begin{mathletters}
10247 \family default
10248  (2.12)・
10249 \family typewriter
10250
10251 \backslash
10252 begin{thebibliography}
10253 \family default
10254  (2.13.1)・
10255 \family typewriter
10256
10257 \backslash
10258 bibitem
10259 \family default
10260  (2.13.2)・全引用コマンドとその派生(2.13.2)・一般的なgraphicx図コマンド(2.14.1)・
10261 \family typewriter
10262
10263 \backslash
10264 begin{table}
10265 \family default
10266  (2.15.4)・
10267 \family typewriter
10268
10269 \backslash
10270 begin{tabular}
10271 \family default
10272  (2.15.4)・
10273 \family typewriter
10274
10275 \backslash
10276 caption
10277 \family default
10278  (2.15.4)・
10279 \family typewriter
10280
10281 \backslash
10282 label
10283 \family default
10284  (他にもあるが特に2.15.4)・
10285 \family typewriter
10286
10287 \backslash
10288 tablerefs
10289 \family default
10290  (2.15.5)・
10291 \family typewriter
10292
10293 \backslash
10294 tablecomments
10295 \family default
10296  (2.15.5)・
10297 \family typewriter
10298
10299 \backslash
10300 url
10301 \family default
10302  (2.17.4)・
10303 \family typewriter
10304
10305 \backslash
10306 end{document}
10307 \family default
10308  (2.18).
10309 \end_layout
10310
10311 \begin_layout Standard
10312 以下のスタイルオプションも正しく動作します.
10313 \family typewriter
10314 longabstract
10315 \family default
10316  (2.4)・
10317 \family typewriter
10318 preprint
10319 \family default
10320  (3.2.1)・
10321 \family typewriter
10322 preprint2
10323 \family default
10324  (3.2.2)・
10325 \family typewriter
10326 eqsecnum
10327 \family default
10328  (3.3)・
10329 \family typewriter
10330 flushrt
10331 \family default
10332  (3.4).これらは,
10333 \begin_inset Flex MenuItem
10334 status collapsed
10335
10336 \begin_layout Plain Layout
10337 文書\SpecialChar menuseparator
10338 設定
10339 \end_layout
10340
10341 \end_inset
10342
10343 にある,
10344 \family sans
10345 クラスオプション
10346 \family default
10347
10348 \family sans
10349 任意設定
10350 \family default
10351 ボックスに入力してください.
10352 \end_layout
10353
10354 \begin_layout Subsubsection
10355 動作するが,若干説明が必要なもの
10356 \end_layout
10357
10358 \begin_layout Standard
10359 以下のコマンドは動作しますが,若干の説明が必要です.
10360 \end_layout
10361
10362 \begin_layout Itemize
10363 以下の項目は,学術誌の編集者向けに取ってあるものですが,どうしても必要ならば,\SpecialChar LaTeX
10364 プリアンブルに入れることができます.
10365 \family typewriter
10366
10367 \backslash
10368 received
10369 \family default
10370
10371 \family typewriter
10372
10373 \backslash
10374 revised
10375 \family default
10376
10377 \family typewriter
10378
10379 \backslash
10380 accepted
10381 \family default
10382
10383 \family typewriter
10384
10385 \backslash
10386 ccc
10387 \family default
10388
10389 \family typewriter
10390 cpright
10391 \family default
10392 (すべて 2.1.3).
10393 \end_layout
10394
10395 \begin_layout Itemize
10396 以下の項目は,\SpecialChar LaTeX
10397 のプリアンブルに置くことができるもので,これらは,ひな型ファイルには,空の引数と共に含まれています.
10398 \family typewriter
10399
10400 \backslash
10401 slugcomment
10402 \family default
10403 (2.1.4)・
10404 \family typewriter
10405
10406 \backslash
10407 shorttitle
10408 \family default
10409 (2.1.5)・
10410 \family typewriter
10411
10412 \backslash
10413 shortauthors
10414 \family default
10415 (2.1.5).
10416 \end_layout
10417
10418 \begin_layout Itemize
10419
10420 \family typewriter
10421
10422 \backslash
10423 email
10424 \family default
10425 (2.3)―「単独で」使うことはできますが,段落の途中で使うことはできません.埋め込む必要がある場合には,\SpecialChar TeX
10426 コードを使用してください.
10427 \end_layout
10428
10429 \begin_layout Itemize
10430
10431 \family typewriter
10432
10433 \backslash
10434 and
10435 \family default
10436 (2.3)―後ろに{}が付記されます.これはエラーの原因にはなりません.
10437 \end_layout
10438
10439 \begin_layout Itemize
10440
10441 \family typewriter
10442
10443 \backslash
10444 notetoeditor
10445 \family default
10446 (2.6)―「単独で」使うことはできますが,段落の途中で使うことはできません.埋め込む必要がある場合には,\SpecialChar TeX
10447 コードを使用してください.
10448 \end_layout
10449
10450 \begin_layout Itemize
10451
10452 \family typewriter
10453
10454 \backslash
10455 placetable
10456 \family default
10457 (2.8)―相互参照用タグを挿入することはできません.手動でタグ名を入力する必要があります.
10458 \end_layout
10459
10460 \begin_layout Itemize
10461
10462 \family typewriter
10463
10464 \backslash
10465 placefigure
10466 \family default
10467 (2.8)—
10468 \family typewriter
10469
10470 \backslash
10471 placetable
10472 \family default
10473 と同様.
10474 \end_layout
10475
10476 \begin_layout Itemize
10477
10478 \family typewriter
10479
10480 \backslash
10481 acknowledgements
10482 \family default
10483 (2.9)―後ろに{}が付記されます.これはエラーの原因にはなりません.
10484 \end_layout
10485
10486 \begin_layout Itemize
10487
10488 \family typewriter
10489
10490 \backslash
10491 appendix
10492 \family default
10493 (2.11)―後ろに{}が付記されます.これはエラーの原因にはなりません.
10494 \end_layout
10495
10496 \begin_layout Itemize
10497
10498 \family typewriter
10499
10500 \backslash
10501 figcaption
10502 \family default
10503 (2.14.2)―文章のはじめにカーソルを置いて
10504 \begin_inset Flex MenuItem
10505 status collapsed
10506
10507 \begin_layout Plain Layout
10508 挿入\SpecialChar menuseparator
10509 短縮タイトル
10510 \end_layout
10511
10512 \end_inset
10513
10514 を選択すれば,非必須のファイル名引数を挿入することができます.「短縮タイトル」とありますが,
10515 \family typewriter
10516
10517 \backslash
10518 figcaption
10519 \family default
10520 が必要とする型の非必須引数を挿入します.望むらくはいつの日か改名されることでしょう.
10521 \end_layout
10522
10523 \begin_layout Itemize
10524
10525 \family typewriter
10526
10527 \backslash
10528 objectname
10529 \family default
10530 (2.17.1)―非必須パラメータとしてカタログIDを取る以外は,
10531 \family typewriter
10532
10533 \backslash
10534 figcaption
10535 \family default
10536 と同様.
10537 \end_layout
10538
10539 \begin_layout Itemize
10540
10541 \family typewriter
10542
10543 \backslash
10544 dataset
10545 \family default
10546 (2.17.1)―非必須パラメータとしてカタログIDを取る以外は,
10547 \family typewriter
10548
10549 \backslash
10550 figcaption
10551 \family default
10552 と同様.
10553 \end_layout
10554
10555 \begin_layout Subsubsection
10556 実装されていないため,\SpecialChar TeX
10557 コードを使用するもの
10558 \end_layout
10559
10560 \begin_layout Standard
10561
10562 \family typewriter
10563
10564 \backslash
10565 altaffilmark
10566 \family default
10567 (2.3)・
10568 \family typewriter
10569
10570 \backslash
10571 altaffiltext
10572 \family default
10573 (2.3)・
10574 \family typewriter
10575
10576 \backslash
10577 eqnum
10578 \family default
10579 (2.12)・
10580 \family typewriter
10581
10582 \backslash
10583 setcounter{equation}
10584 \family default
10585 (2.12)・学術誌名略語(2.12.4)・
10586 \family typewriter
10587
10588 \backslash
10589 figurenum
10590 \family default
10591 (2.14.1)・
10592 \family typewriter
10593
10594 \backslash
10595 epsscale
10596 \family default
10597 (2.14.1)・
10598 \family typewriter
10599
10600 \backslash
10601 plotone
10602 \family default
10603 (2.14.1)・
10604 \family typewriter
10605
10606 \backslash
10607 plottwo
10608 \family default
10609 (2.14.1)・
10610 \family typewriter
10611
10612 \backslash
10613 tablenum
10614 \family default
10615 (2.15.4)・
10616 \family typewriter
10617
10618 \backslash
10619 tableline
10620 \family default
10621 (2.15.4:入れたい場所の後ろに,左側セルの最初の要素として挿入する.表中では,\SpecialChar LyX
10622 の方法は使わないでください)・
10623 \family typewriter
10624
10625 \backslash
10626 tablenotemark
10627 \family default
10628 (2.15.5)・
10629 \family typewriter
10630
10631 \backslash
10632 tablenotetext
10633 \family default
10634 (2.15.5)・補遺(2.17)の大半(
10635 \family typewriter
10636
10637 \backslash
10638 objectname
10639 \family default
10640
10641 \family typewriter
10642
10643 \backslash
10644 dataset
10645 \family default
10646
10647 \family typewriter
10648
10649 \backslash
10650 url
10651 \family default
10652
10653 \family typewriter
10654
10655 \backslash
10656 email
10657 \family default
10658 を除く.上記参照)・
10659 \family typewriter
10660
10661 \backslash
10662 singlespace
10663 \family default
10664 (3.1)・
10665 \family typewriter
10666
10667 \backslash
10668 doublespace
10669 \family default
10670 (3.1)・
10671 \family typewriter
10672
10673 \backslash
10674 onecolumn
10675 \family default
10676 (3.2)・
10677 \family typewriter
10678
10679 \backslash
10680 twocolumn
10681 \family default
10682 (3.2)
10683 \end_layout
10684
10685 \begin_layout Subsubsection
10686 実装できないもの
10687 \end_layout
10688
10689 \begin_layout Standard
10690 references(2.12.3)環境とdeluxetable(2.14)環境は,少なくとも意味のあるような形で実装することができないので,無視してください.もし,
10691 絶対に,どうしても,deluxetableを使う必要があるならば,テキストエディタで別ファイルとして編集し,
10692 \begin_inset Flex MenuItem
10693 status collapsed
10694
10695 \begin_layout Plain Layout
10696 挿入\SpecialChar menuseparator
10697 ファイル
10698 \begin_inset Formula $\text{\textipa{}}$
10699 \end_inset
10700
10701 \SpecialChar menuseparator
10702 子文書
10703 \end_layout
10704
10705 \end_inset
10706
10707 を使用して,\SpecialChar LyX
10708 ファイルに読み込むことを推奨します.この実例は,
10709 \family typewriter
10710 aas_sample.lyx
10711 \family default
10712 ファイルをご参照ください.
10713 \end_layout
10714
10715 \begin_layout Subsection
10716 FAQとヒントと技とその他の考察
10717 \end_layout
10718
10719 \begin_layout Subsubsection
10720 \SpecialChar LyX
10721 をAAS\SpecialChar TeX
10722 と協調させる
10723 \end_layout
10724
10725 \begin_layout Standard
10726 \SpecialChar LyX
10727 に,新しいレイアウトと文書クラスを認識させるには若干コツが要ります.もしうまく行かなかったら,次のようにしてみてください.
10728 \end_layout
10729
10730 \begin_layout Enumerate
10731 \SpecialChar LaTeX
10732 が,AAS\SpecialChar TeX
10733 を検出できることを確認してください.AAS\SpecialChar TeX
10734 頒布版に含まれる
10735 \family typewriter
10736 sample.tex
10737 \family default
10738 (あるいは
10739 \family typewriter
10740 table.tex
10741 \family default
10742 でも可)を,\SpecialChar LaTeX
10743 やAAS\SpecialChar TeX
10744 とまったく関係のないディレクトリにコピーして,
10745 \family typewriter
10746 sample.tex
10747 \family default
10748 を\SpecialChar LaTeX
10749 にかけてください.
10750 \end_layout
10751
10752 \begin_layout Enumerate
10753
10754 \family typewriter
10755 aastex.layout
10756 \family default
10757 が,\SpecialChar LyX
10758
10759 \family typewriter
10760 layouts
10761 \family default
10762 フォルダにあることを確認してください.
10763 \end_layout
10764
10765 \begin_layout Enumerate
10766 \SpecialChar LyX
10767 中から
10768 \family sans
10769 ツール\SpecialChar menuseparator
10770 環境構成
10771 \family default
10772 を再度実行し,\SpecialChar LyX
10773 を再起動してください.
10774 \end_layout
10775
10776 \begin_layout Enumerate
10777 ひな型ではなく,通常の新規ファイルを開いてください.AAS\SpecialChar TeX
10778 が,
10779 \family sans
10780 文書\SpecialChar menuseparator
10781 設定
10782 \family default
10783 のクラス一覧に表示されていますか?
10784 \end_layout
10785
10786 \begin_layout Standard
10787 既存のAAS\SpecialChar TeX
10788 文書を処理する際に,AAS\SpecialChar TeX
10789 レイアウトを見つけられないとか,「タイトルレイアウトと通常のレイアウトを混在させないでください」といった警告が出るようであ
10790 れば,正しい導入が行われていません.
10791 \end_layout
10792
10793 \begin_layout Subsubsection
10794 表を処理する際の\SpecialChar LaTeX
10795 エラー
10796 \end_layout
10797
10798 \begin_layout Standard
10799 既定では,\SpecialChar LyX
10800 は,表のキャプションやタイトルを中央揃えにしようと試みます.これはAAS\SpecialChar TeX
10801 と悪い相互干渉を発生させるようですので,キャプションやタイトルのどこかをクリッ
10802 クして,
10803 \family sans
10804 編集\SpecialChar menuseparator
10805 段落設定
10806 \family default
10807 を選択し,
10808 \family sans
10809 配置
10810 \family default
10811
10812 \family sans
10813 両端揃え
10814 \family default
10815 に設定してください.私のところではこれで解決しました.
10816 \end_layout
10817
10818 \begin_layout Subsubsection
10819 書誌情報
10820 \end_layout
10821
10822 \begin_layout Standard
10823 若干の注意があります.(1)文献項目の本文中の空白取りが少しおかしくなることがあるようです.書誌情報を入力する際には,最後の著者と,著作年を入れる括弧の間にスペ
10824 ースを
10825 \emph on
10826 入れない
10827 \emph default
10828 ようにしてください.たとえば,
10829 \family typewriter
10830 Ressler(1992)
10831 \family default
10832 はいいですが,
10833 \family typewriter
10834 Ressler (1992)
10835 \family default
10836 ではだめです.(2)書誌情報の入力の仕方は,必ずしも自明ではありません.もっとも簡単な方法は,文書の最後に,最初の書誌情報をまず書き込み,それを
10837 \family sans
10838 書誌情報
10839 \family default
10840 環境としてマークすることです.すると,入力したものの前に,小さな灰色のボックスが現れます.このボックスをクリックして,残りの情報を入力してください.新しい書誌情
10841 報を追加するには,既存の書誌情報の後ろでリターンを押します.すると,新しいボックスの付いた新規行が出てくるので,後は同様にしてください.
10842 \end_layout
10843
10844 \begin_layout Subsubsection
10845 EPSファイルの読み込み
10846 \end_layout
10847
10848 \begin_layout Standard
10849 AAS\SpecialChar TeX
10850 には,自前の図関連コマンド(たとえば
10851 \family typewriter
10852
10853 \backslash
10854 plotone
10855 \family default
10856 )がありますが,私は(既定のgraphicxを使った)\SpecialChar LaTeX
10857 の標準図コマンドの方がずっと好きです.望めば,図フロートボックスに,\SpecialChar TeX
10858 コードで
10859 \family typewriter
10860
10861 \backslash
10862 plotone
10863 \family default
10864 等のコマンドを挿入することはできますが,私には正しいレイアウトを得ることができた試しがありません.標準の画像コマンドを使えば,\SpecialChar LyX
10865 は,
10866 \family typewriter
10867
10868 \backslash
10869 usepackage{graphics}
10870 \family default
10871 コマンドを\SpecialChar LaTeX
10872 プリアンブルに挿入し,図を\SpecialChar LaTeX2e
10873 の標準的な方法で取り扱って,文章の中にちりばめます.現在,ApJは,ちょうどこのようにして作成した図を受け入れていますが,A
10874 Jはまだ「すべてを末尾に積み上げる」方法を使用しているかもしれません.
10875 \end_layout
10876
10877 \begin_layout Subsubsection
10878 可能だったが,実装しなかったもの
10879 \end_layout
10880
10881 \begin_layout Standard
10882 「素敵な」ものの中には,実装することも可能だったけれども,あえて実装しなかったものがあります.たとえば,紙の原稿ではダブルスペースであったとしても,\SpecialChar LyX
10883 ウィンドウ中
10884 で,文章をダブルスペースにする意味はないと考えました.また,preprint様式とpreprint2様式を,独立したレイアウトにすることもしませんでした.いずれ
10885 にしても,執筆時間のほとんどを,平の原稿モードで使うのがほとんどですから,これらの機能でディスクスペースを消費しないことにしました.
10886 \end_layout
10887
10888 \begin_layout Subsection
10889 最後に
10890 \end_layout
10891
10892 \begin_layout Standard
10893 これまでに進んできた道のりは,長い人も短い人もいることでしょう.私には,ApJとAJに発表した論文がありますが,その努力の98
10894 \begin_inset space \thinspace{}
10895 \end_inset
10896
10897 %は\SpecialChar LyX
10898 上で為されました.残りの2
10899 \begin_inset space \thinspace{}
10900 \end_inset
10901
10902 %が,\SpecialChar LaTeX
10903 での後処理と若干の後片付けです.投稿の過程では何のトラブルもなく,これらの学術誌が通常の投稿原稿と違う点に気づくことはなかったでしょう.ですから,がんばっ
10904 て発表してください!
10905 \end_layout
10906
10907 \begin_layout Section
10908 AMS \SpecialChar LaTeX
10909
10910 \end_layout
10911
10912 \begin_layout Standard
10913
10914 \noun on
10915 David Johnson
10916 \noun default
10917 文 
10918 \noun on
10919 Richard Heck
10920 \noun default
10921 改訂
10922 \begin_inset VSpace bigskip
10923 \end_inset
10924
10925
10926 \end_layout
10927
10928 \begin_layout Standard
10929 AMS \SpecialChar LaTeX
10930 レイアウトは,American Mathematical Society(アメリカ数学会)の刊行物に投稿する数学論文用のスタイルです.レイアウトは,特定
10931 の学術誌向けに仕立てられてはいませんが,簡単にそうすることができます.各学術誌毎の指示については,AMSの説明書をご参照ください(通常は,\SpecialChar TeX
10932 出力中の一行を変更する
10933 必要があるだけです).AMSの説明書は,ウェブWeb上の
10934 \begin_inset Flex URL
10935 status open
10936
10937 \begin_layout Plain Layout
10938
10939 http://www.ams.org
10940 \end_layout
10941
10942 \end_inset
10943
10944 か,FTPで
10945 \begin_inset Flex URL
10946 status open
10947
10948 \begin_layout Plain Layout
10949
10950 ftp://ftp.ams.org/pub/tex/amslatex/
10951 \end_layout
10952
10953 \end_inset
10954
10955 から入手することができます.これらのレイアウトは,数学的な文章を書くのであれば,どんなときでも適切かつ有用であるはずです.
10956 \end_layout
10957
10958 \begin_layout Standard
10959 基本となるAMS \SpecialChar LaTeX
10960 レイアウトには,以下の二つがあります.
10961 \end_layout
10962
10963 \begin_layout Itemize
10964 amsart:標準のAMS article書式.
10965 \end_layout
10966
10967 \begin_layout Itemize
10968 amsbook:標準のAMS book(実際はモノグラフ)書式.
10969 \end_layout
10970
10971 \begin_layout Standard
10972 これらのレイアウトには,それ自身では,AMSクラスを使用するのに必要最低限のものしか含まれていません.特に,定理や補題などを設定するのに使用される「theore
10973 m」環境は,何一つ含まれていません.これらは,代わりに
10974 \begin_inset Flex Code
10975 status collapsed
10976
10977 \begin_layout Plain Layout
10978 定理(AMS)
10979 \end_layout
10980
10981 \end_inset
10982
10983 モジュールに収録されており,AMSクラスのいずれかを選択すると,このモジュールが既定で読み込まれるようになっています(これは別のクラスでも使用することができ,別
10984 のものに変えたいときは取り除くこともできます).少し使用頻度の低いものとしては,
10985 \begin_inset Flex Code
10986 status collapsed
10987
10988 \begin_layout Plain Layout
10989 定理(AMS拡張)
10990 \end_layout
10991
10992 \end_inset
10993
10994 モジュールがあり,これは手動で読み込む必要があります.
10995 \end_layout
10996
10997 \begin_layout Standard
10998 既定では,定理類は,文書を通して連番が振られますが,これは
10999 \begin_inset Flex Code
11000 status collapsed
11001
11002 \begin_layout Plain Layout
11003 定理(節毎連番)
11004 \end_layout
11005
11006 \end_inset
11007
11008 モジュールを読み込めば変更することができ,
11009 \begin_inset Flex Code
11010 status collapsed
11011
11012 \begin_layout Plain Layout
11013 book (AMS)
11014 \end_layout
11015
11016 \end_inset
11017
11018 を使用している場合には
11019 \begin_inset Flex Code
11020 status collapsed
11021
11022 \begin_layout Plain Layout
11023 定理(章毎連番)
11024 \end_layout
11025
11026 \end_inset
11027
11028 を用いても変更することができます.これらを用いると,出力は
11029 \begin_inset Formula $n.m$
11030 \end_inset
11031
11032 のようになり,最初の数字は節番号(または章番号),次の数字はそれまで同節内(章内)に現れた出力の全数を表します.大半の環境は,連番なしでも用いることができます.
11033 連番なしのものは,環境名の後ろにアスタリスクを付けたもので表されます.連番なしの出力
11034 \emph on
11035 のみ
11036 \emph default
11037 が欲しい場合には,
11038 \begin_inset Flex Code
11039 status collapsed
11040
11041 \begin_layout Plain Layout
11042 定理(連番なし)
11043 \end_layout
11044
11045 \end_inset
11046
11047 モジュールを用います.
11048 \end_layout
11049
11050 \begin_layout Standard
11051 これらのモジュールは,AMSクラスで使用する
11052 \emph on
11053 必要はない
11054 \emph default
11055 ことに注意してください.
11056 \begin_inset Flex Code
11057 status collapsed
11058
11059 \begin_layout Plain Layout
11060 定理(AMS)
11061 \end_layout
11062
11063 \end_inset
11064
11065 モジュールや上述の他のモジュールは,他のクラス,たとえば
11066 \begin_inset Flex Code
11067 status collapsed
11068
11069 \begin_layout Plain Layout
11070 article
11071 \end_layout
11072
11073 \end_inset
11074
11075
11076 \begin_inset Flex Code
11077 status collapsed
11078
11079 \begin_layout Plain Layout
11080 report
11081 \end_layout
11082
11083 \end_inset
11084
11085
11086 \begin_inset Flex Code
11087 status collapsed
11088
11089 \begin_layout Plain Layout
11090 book (KOMA-script)
11091 \end_layout
11092
11093 \end_inset
11094
11095 などで問題なく使用することができます.
11096 \end_layout
11097
11098 \begin_layout Subsection
11099 これらのレイアウトが提供するもの
11100 \end_layout
11101
11102 \begin_layout Standard
11103 これらのレイアウトが提供している環境を列挙すると,長い一覧となります.AMS-\SpecialChar LaTeX
11104 では,実のところ,「theorem」環境の派生型を際限なく定義していくことが可能で
11105 す.しかし,AMSは,\SpecialChar LyX
11106 で利用可能になっている環境のみを使用することを推奨しています.
11107 \end_layout
11108
11109 \begin_layout Standard
11110 \begin_inset Flex Code
11111 status collapsed
11112
11113 \begin_layout Plain Layout
11114 article (AMS)
11115 \end_layout
11116
11117 \end_inset
11118
11119
11120 \begin_inset Flex Code
11121 status collapsed
11122
11123 \begin_layout Plain Layout
11124 book (AMS)
11125 \end_layout
11126
11127 \end_inset
11128
11129 には,——
11130 \begin_inset space ~
11131 \end_inset
11132
11133
11134 \begin_inset Flex Noun
11135 status collapsed
11136
11137 \begin_layout Plain Layout
11138
11139 \end_layout
11140
11141 \end_inset
11142
11143
11144 \begin_inset Flex Noun
11145 status collapsed
11146
11147 \begin_layout Plain Layout
11148 書誌情報
11149 \end_layout
11150
11151 \end_inset
11152
11153
11154 \begin_inset Flex Noun
11155 status collapsed
11156
11157 \begin_layout Plain Layout
11158 タイトル
11159 \end_layout
11160
11161 \end_inset
11162
11163
11164 \begin_inset Flex Noun
11165 status collapsed
11166
11167 \begin_layout Plain Layout
11168 著者
11169 \end_layout
11170
11171 \end_inset
11172
11173
11174 \begin_inset Flex Noun
11175 status collapsed
11176
11177 \begin_layout Plain Layout
11178 日付
11179 \end_layout
11180
11181 \end_inset
11182
11183 のような標準環境の他に
11184 \begin_inset space ~
11185 \end_inset
11186
11187 ——
11188 \begin_inset space ~
11189 \end_inset
11190
11191 以下の環境があります.
11192 \end_layout
11193
11194 \begin_layout Description
11195 住所 これは著者の恒久的な住所です.
11196 \end_layout
11197
11198 \begin_layout Description
11199 現在の住所 住所と別に指定されているときには,著者の投稿時の仮初めの住所です.
11200 \end_layout
11201
11202 \begin_layout Description
11203 電子メール 著者の電子メールアドレス
11204 \end_layout
11205
11206 \begin_layout Description
11207 URL 著者のウェブアドレス.任意.
11208 \end_layout
11209
11210 \begin_layout Description
11211 キーワード 論文中で論じられているトピックを識別するためのキーワードやキーフレーズ.
11212 \end_layout
11213
11214 \begin_layout Description
11215 分野分類 
11216 \emph on
11217 Mathematical Reviews
11218 \emph default
11219 に説明が公表されているAMS Subject Classificationsの分類番号を指します.上述したAMSのウェブサイトでも,オンラインで見ることができま
11220 す.
11221 \end_layout
11222
11223 \begin_layout Description
11224 謝辞
11225 \end_layout
11226
11227 \begin_layout Description
11228 献呈
11229 \end_layout
11230
11231 \begin_layout Description
11232 翻訳者
11233 \end_layout
11234
11235 \begin_layout Standard
11236 以下の環境は,
11237 \begin_inset Flex Code
11238 status collapsed
11239
11240 \begin_layout Plain Layout
11241 定理
11242 \end_layout
11243
11244 \end_inset
11245
11246 モジュールと
11247 \begin_inset Flex Code
11248 status collapsed
11249
11250 \begin_layout Plain Layout
11251 定理(AMS)
11252 \end_layout
11253
11254 \end_inset
11255
11256 モジュールの両方で提供され,後者の場合には,星付き(連番なし)版と星なし(連番)版の両方が提供されます.
11257 \begin_inset Flex Code
11258 status collapsed
11259
11260 \begin_layout Plain Layout
11261 定理(連番なし)
11262 \end_layout
11263
11264 \end_inset
11265
11266 モジュールでは,同環境の星付き版だけが提供されます.
11267 \end_layout
11268
11269 \begin_layout Theorem
11270 これは,通常,得られた主要な結果を叙述するのに使用されます.
11271 \end_layout
11272
11273 \begin_layout Corollary*
11274 これは直前の叙述から比較的直接に導き出せる結果を叙述するのに使います.これも主要な結果であることがあります.
11275 \end_layout
11276
11277 \begin_layout Lemma
11278 他の叙述を証明するために必要とされる,比較的小さな結果です.
11279 \end_layout
11280
11281 \begin_layout Proposition
11282 議論されている一般的な理論に(希望的には)何かを付け加えるような,主要ではない結果です.
11283 \end_layout
11284
11285 \begin_layout Conjecture
11286 正当化を与えずに述べられた叙述で,著者には証明法がわからないけれども,正しいと(少なくとも著者にとっては)思われるものです.
11287 \end_layout
11288
11289 \begin_layout Definition*
11290 これは自明でしょう.この環境のフォントは,前述の環境とは異なるフォントが使用されます.
11291 \end_layout
11292
11293 \begin_layout Problem
11294 これが何を指すかは必ずしも特定されていません.ご自分で解明してください.
11295 \end_layout
11296
11297 \begin_layout Exercise*
11298 この環境の説明を記述せよ.
11299 \end_layout
11300
11301 \begin_layout Note
11302 この環境もtheorem型,通常は重要性の低い所見に用いられます.
11303 \end_layout
11304
11305 \begin_layout Claim*
11306 より大きな結果の証明を与える途中で,しばしば用いられます.
11307 \end_layout
11308
11309 \begin_layout Case
11310 一般的に,これらはある条件の特定の場合を取り上げて,長い議論を区切るのに用いられます.
11311 \end_layout
11312
11313 \begin_layout Case
11314 ケースの連番の枠組みは,それ自身で独立していて,他の連番の叙述とは区別されます.
11315 \end_layout
11316
11317 \begin_layout Proof
11318 この環境の最後には,証了記号(通常は四角ですがスタイルによって変わります)が置かれます.この環境の中に別の環境を入れたい——たとえばケース環境など——場合で,証
11319 了記号は証明環境の終わりにのみ現れるようにしたい場合には,他の環境は証明環境の中に入れ子にしなくてはなりません.入れ子に関する情報については,
11320 \emph on
11321 ユーザーの手引き
11322 \emph default
11323
11324 \emph on
11325 環境を入れ子にする
11326 \emph default
11327 の節をご覧ください.
11328 \end_layout
11329
11330 \begin_layout Standard
11331 そして,以下は
11332 \begin_inset Flex Code
11333 status collapsed
11334
11335 \begin_layout Plain Layout
11336 定理(AMS拡張)
11337 \end_layout
11338
11339 \end_inset
11340
11341 で提供されるものです.
11342 \end_layout
11343
11344 \begin_layout Criterion*
11345 必要とされる条件です.
11346 \end_layout
11347
11348 \begin_layout Algorithm*
11349 使用する一般的手順です.
11350 \end_layout
11351
11352 \begin_layout Axiom*
11353 議論されている系内部で真と仮定される性質や命題です.
11354 \end_layout
11355
11356 \begin_layout Condition*
11357 議論の現在の文脈で仮定されている条件を述べるのに,よく用いられます.
11358 \end_layout
11359
11360 \begin_layout Note*
11361 注記と同様です.
11362 \end_layout
11363
11364 \begin_layout Notation*
11365 表記法の説明に用いられます.
11366 \end_layout
11367
11368 \begin_layout Summary
11369 本当に説明する必要がありますか?
11370 \end_layout
11371
11372 \begin_layout Acknowledgement*
11373 謝辞(acknowledgement)です.
11374 \end_layout
11375
11376 \begin_layout Conclusion*
11377 長い議論の終わりに時々用いられます.
11378 \end_layout
11379
11380 \begin_layout Fact
11381 命題と同様の用いられ方をしますが,だいたい長くないものに使われるようです.
11382 \end_layout
11383
11384 \begin_layout Standard
11385 さらに,AMSクラスは,AMS \SpecialChar LaTeX
11386 パッケージとAMSフォントパッケージを自動的に提供します.これらの環境を使用するためには,お使いのシステム上で利用可能となってい
11387 る必要があります.
11388 \end_layout
11389
11390 \begin_layout Section
11391 AGU各誌(
11392 \family sans
11393 aguplus)
11394 \end_layout
11395
11396 \begin_layout Standard
11397
11398 \noun on
11399 Martin Vermeer
11400 \noun default
11401
11402 \end_layout
11403
11404 \begin_layout Subsection
11405 概要
11406 \end_layout
11407
11408 \begin_layout Standard
11409 これはAmerican Geophysical Society(アメリカ地球物理学会) の各学術誌向けのレイアウトファイルです.AGU発行のクラスファイルおよび
11410 AGUplusの両方(これらは
11411 \begin_inset Flex URL
11412 status collapsed
11413
11414 \begin_layout Plain Layout
11415
11416 http://publications.agu.org/files/2013/08/AGU-LaTeX.zip
11417 \end_layout
11418
11419 \end_inset
11420
11421 にあります)が導入されていることが必要です.
11422 \end_layout
11423
11424 \begin_layout Subsection
11425 新しいスタイル
11426 \end_layout
11427
11428 \begin_layout Standard
11429
11430 \family sans
11431 段落
11432 \family default
11433 および
11434 \family sans
11435 段落*
11436 \family default
11437 は,定義し直されています.\SpecialChar LyX
11438 の画面では,依然として
11439 \family sans
11440 段落
11441 \family default
11442
11443 \family sans
11444 段落*
11445 \family default
11446 と表示されますが,AGUクラスにおける\SpecialChar LaTeX
11447 の対応物は,
11448 \family sans
11449 Subsubsubsection
11450 \family default
11451
11452 \family sans
11453 Subsubsubsection*
11454 \family default
11455 です.
11456 \end_layout
11457
11458 \begin_layout Standard
11459 新しく定義されたスタイルには,
11460 \family sans
11461 左ヘッダ
11462 \family default
11463
11464 \family sans
11465 右ヘッダ
11466 \family default
11467
11468 \family sans
11469 受理日
11470 \family default
11471
11472 \family sans
11473 改訂
11474 \family default
11475
11476 \family sans
11477 採択日
11478 \family default
11479
11480 \family sans
11481 CCC
11482 \family default
11483
11484 \family sans
11485 論文ID
11486 \family default
11487
11488 \family sans
11489 著者住所
11490 \family default
11491
11492 \family sans
11493 廃棄用コメント
11494 \family default
11495 があります.これらは,ほとんど草稿用属性で,AGUクラス説明書で説明されています.
11496 \end_layout
11497
11498 \begin_layout Standard
11499 おそらく,これはまだ恐ろしく不完全です.
11500 \end_layout
11501
11502 \begin_layout Subsection
11503 新しいフロート
11504 \end_layout
11505
11506 \begin_layout Standard
11507
11508 \family sans
11509 平面表(Planotable
11510 \family default
11511 )と
11512 \family sans
11513 挿絵
11514 \family default
11515 (Plate)が新しいフロートです.また,
11516 \family sans
11517 表キャプション
11518 \family default
11519 も付け加えられています.
11520 \end_layout
11521
11522 \begin_layout Subsection
11523 サポートされている学術誌
11524 \end_layout
11525
11526 \begin_layout Itemize
11527
11528 \emph on
11529 Journal of Geophysical Research
11530 \emph default
11531
11532 \family typewriter
11533 jgrga.layout
11534 \family default
11535  — Martin Vermeer
11536 \end_layout
11537
11538 \begin_layout Standard
11539 ここにあなたの作ったものを加えてください.難しくはありません.
11540 \family typewriter
11541 jgrga.layout
11542 \family default
11543 と 
11544 \family typewriter
11545 aguplus.inc
11546 \family default
11547 を用例として見てください.
11548 \end_layout
11549
11550 \begin_layout Subsection
11551 バグと注意すべきこと
11552 \end_layout
11553
11554 \begin_layout Standard
11555 新しいレイアウトを使うためには,新規文書の作成時に以下の手順を行う必要があります.
11556 \end_layout
11557
11558 \begin_layout Enumerate
11559
11560 \emph on
11561 babelを無効にしてください.
11562 \emph default
11563 これは,
11564 \family sans
11565 ツール\SpecialChar menuseparator
11566 設定
11567 \family default
11568 メニュー項目で行うことができます(AGUの論文は常に英語ですよね.ですから他の言語は
11569 \emph on
11570 選ばないで下さい
11571 \emph default
11572 ).
11573 \end_layout
11574
11575 \begin_layout Enumerate
11576 使用文書の追加オプションフィールドに
11577 \family typewriter
11578 jgrga
11579 \family default
11580 と入力してください(すみません,これはバグです).
11581 \end_layout
11582
11583 \begin_layout Enumerate
11584 Bib\SpecialChar TeX
11585 差込枠の2番目のフィールドに
11586 \family sans
11587 agu
11588 \family default
11589 と入力して,書誌情報のスタイルに
11590 \family typewriter
11591 agu.bst
11592 \family default
11593 を使用していることを確認してください.標準スタイルはうまく動作しません.
11594 \end_layout
11595
11596 \begin_layout Section
11597 Broadway
11598 \end_layout
11599
11600 \begin_layout Standard
11601
11602 \noun on
11603 Garst Reese
11604 \noun default
11605
11606 \end_layout
11607
11608 \begin_layout Subsection
11609 はじめに
11610 \end_layout
11611
11612 \begin_layout Standard
11613 Broadwayは演劇を書くためのものです.書式はHollywoodよりも装飾的で,それほど標準化されていません.この書式はワークショップに向いているでしょう.
11614 \end_layout
11615
11616 \begin_layout Subsection
11617 特別な問題
11618 \end_layout
11619
11620 \begin_layout Standard
11621 Hollywoodと同様です.
11622 \end_layout
11623
11624 \begin_layout Subsection
11625 特別の機能
11626 \end_layout
11627
11628 \begin_layout Standard
11629
11630 \family sans
11631 話者
11632 \family default
11633 の名前をラベルとして挿入し,名前を挿入する際には,このラベルを相互参照してください.相互参照ダイアログには,登場人物の現在の配役が表示されます.
11634 \end_layout
11635
11636 \begin_layout Subsection
11637 用紙寸法と余白
11638 \end_layout
11639
11640 \begin_layout Standard
11641 USレター寸法で,余白は左1.6インチ,右0.75インチ,上0.5インチ,下0.75インチです.
11642 \end_layout
11643
11644 \begin_layout Subsection
11645 環境
11646 \end_layout
11647
11648 \begin_layout Standard
11649 以下の環境を使うことができます.右に記してある
11650 \begin_inset Flex Ruby
11651 status collapsed
11652
11653 \begin_layout Plain Layout
11654
11655 \begin_inset Argument post:1
11656 status collapsed
11657
11658 \begin_layout Plain Layout
11659 キー
11660 \end_layout
11661
11662 \end_inset
11663
11664
11665 \end_layout
11666
11667 \end_inset
11668
11669 割当ては,broadway.bindを使った場合のものです.
11670 \end_layout
11671
11672 \begin_layout Itemize
11673
11674 \family sans
11675 標準
11676 \begin_inset Newline newline
11677 \end_inset
11678
11679
11680 \family default
11681 これは使わなくていいはずですが,他の環境が当てはまらない場合のためにここに挙げておきます.
11682 \end_layout
11683
11684 \begin_layout Itemize
11685
11686 \family sans
11687 ト書き
11688 \begin_inset space \hfill{}
11689 \end_inset
11690
11691 M-z n
11692 \begin_inset Newline newline
11693 \end_inset
11694
11695
11696 \family default
11697 舞台設定と動作の説明に用います.最初に話者名をすべて大文字で書いておきます.
11698 \end_layout
11699
11700 \begin_layout Itemize
11701
11702 \family sans
11703
11704 \begin_inset space \hfill{}
11705 \end_inset
11706
11707 M-z a
11708 \begin_inset Newline newline
11709 \end_inset
11710
11711
11712 \family default
11713 自動的に連番が振られます.連番は,画面上ではアラビア数字ですが,出力ではローマ数字です.
11714 \end_layout
11715
11716 \begin_layout Itemize
11717
11718 \family sans
11719 幕*
11720 \begin_inset space \hfill{}
11721 \end_inset
11722
11723 M-z S at
11724 \begin_inset Newline newline
11725 \end_inset
11726
11727
11728 \family default
11729 幕の副題です.単に中央揃えの文になります.
11730 \end_layout
11731
11732 \begin_layout Itemize
11733
11734 \family sans
11735 場面
11736 \begin_inset space \hfill{}
11737 \end_inset
11738
11739 M-z S-S
11740 \begin_inset Newline newline
11741 \end_inset
11742
11743
11744 \family default
11745 自動的に連番は振られませんので,手動で番号を付けてください.これは私がどうすればいいか分からなかったためです.
11746 \end_layout
11747
11748 \begin_layout Itemize
11749
11750 \family sans
11751 幕開きに:
11752 \begin_inset space \hfill{}
11753 \end_inset
11754
11755 M-z S-R
11756 \begin_inset Newline newline
11757 \end_inset
11758
11759
11760 \family default
11761 ト書きの特殊な場合で,カーテンが上がるときの舞台設定と動作を説明します.
11762 \end_layout
11763
11764 \begin_layout Itemize
11765
11766 \family sans
11767 話者
11768 \begin_inset space \hfill{}
11769 \end_inset
11770
11771 M-z s
11772 \begin_inset Newline newline
11773 \end_inset
11774
11775
11776 \family default
11777 話者(役者)の配役です.すべて大文字で中央揃えに置かれます.
11778 \end_layout
11779
11780 \begin_layout Itemize
11781
11782 \family sans
11783 括弧付き
11784 \begin_inset space \hfill{}
11785 \end_inset
11786
11787 M-z p
11788 \begin_inset Newline newline
11789 \end_inset
11790
11791
11792 \family default
11793 話者への指示です.括弧は自動的に挿入されます.画面上には左括弧(のみが表示されますが,印字出力には両方の括弧が表示されます.この環境は,
11794 \family sans
11795 対話
11796 \family default
11797 の中だけで使用されます. 
11798 \end_layout
11799
11800 \begin_layout Itemize
11801
11802 \family sans
11803 対話
11804 \begin_inset space \hfill{}
11805 \end_inset
11806
11807 M-z d
11808 \begin_inset Newline newline
11809 \end_inset
11810
11811
11812 \family default
11813 話者の言う内容.
11814 \end_layout
11815
11816 \begin_layout Itemize
11817
11818 \family sans
11819 幕切れ
11820 \begin_inset space \hfill{}
11821 \end_inset
11822
11823 M-z S-C
11824 \begin_inset Newline newline
11825 \end_inset
11826
11827
11828 \family default
11829 幕が降ります.
11830 \end_layout
11831
11832 \begin_layout Itemize
11833
11834 \family sans
11835 タイトル
11836 \begin_inset space \hfill{}
11837 \end_inset
11838
11839 M-z S-T
11840 \end_layout
11841
11842 \begin_layout Itemize
11843
11844 \family sans
11845 著者
11846 \begin_inset space \hfill{}
11847 \end_inset
11848
11849 M-z S-A
11850 \end_layout
11851
11852 \begin_layout Itemize
11853
11854 \family sans
11855 右寄せ住所
11856 \begin_inset space \hfill{}
11857 \end_inset
11858
11859 M-z r
11860 \end_layout
11861
11862 \begin_layout Section
11863 Dinbrief
11864 \end_layout
11865
11866 \begin_layout Standard
11867 文書クラス
11868 \family sans
11869 dinbrief
11870 \family default
11871 は,ドイツの慣習に則った書簡の組版を行うのに用いられます.ひな型ファイルが
11872 \family typewriter
11873 .../lyx/share/templates
11874 \family default
11875 にあるので,それを土台として使用してください.
11876 \end_layout
11877
11878 \begin_layout Section
11879 EGS各誌
11880 \family sans
11881 (egs)
11882 \end_layout
11883
11884 \begin_layout Standard
11885
11886 \noun on
11887 Martin Vermeer
11888 \noun default
11889
11890 \end_layout
11891
11892 \begin_layout Subsection
11893 概要
11894 \end_layout
11895
11896 \begin_layout Standard
11897 これはEuropean Geophysical Society(欧州地球物理学会)の学術誌向けのレイアウトファイルです.必要とされる
11898 \family typewriter
11899 egs.cls
11900 \family default
11901 は,EGSのウェブサイト
11902 \begin_inset Flex URL
11903 status collapsed
11904
11905 \begin_layout Plain Layout
11906
11907 http://www.copernicus.org/
11908 \end_layout
11909
11910 \end_inset
11911
11912 からダウンロードできます.
11913 \end_layout
11914
11915 \begin_layout Subsection
11916 新しいスタイル
11917 \end_layout
11918
11919 \begin_layout Standard
11920 新しいスタイルとして,
11921 \family sans
11922 右寄せ住所
11923 \family default
11924
11925 \family sans
11926 \SpecialChar LaTeX
11927 タイトル
11928 \family default
11929
11930 \family sans
11931 所属
11932 \family default
11933
11934 \family sans
11935 学術誌名
11936 \family default
11937
11938 \family sans
11939 原稿番号
11940 \family default
11941
11942 \family sans
11943 筆頭著者
11944 \family default
11945
11946 \family sans
11947 受理日
11948 \family default
11949
11950 \family sans
11951 採択日
11952 \family default
11953
11954 \family sans
11955 オフセット
11956 \family default
11957 があります.現在のレイアウトファイルは,残念ながらほとんどモジュール化されておらず,さまざまな
11958 \family typewriter
11959 std*.inc
11960 \family default
11961 ファイルを読み込む形に変えた方が便利になると思われます.
11962 \end_layout
11963
11964 \begin_layout Section
11965 Elsevier各誌
11966 \end_layout
11967
11968 \begin_layout Standard
11969 \SpecialChar LyX
11970 ひな型ファイルの
11971 \family typewriter
11972 elsarticle.lyx
11973 \family default
11974 を参照してください.必要な情報は全てそこにあります.
11975 \end_layout
11976
11977 \begin_layout Section
11978 Foils (別名Foil\SpecialChar TeX
11979 )
11980 \begin_inset CommandInset label
11981 LatexCommand label
11982 name "sec:foiltex"
11983
11984 \end_inset
11985
11986
11987 \end_layout
11988
11989 \begin_layout Standard
11990
11991 \noun on
11992 Allan Rae
11993 \noun default
11994
11995 \end_layout
11996
11997 \begin_layout Subsection
11998 はじめに
11999 \end_layout
12000
12001 \begin_layout Standard
12002 本節では,プレゼンテーション用のスライドを作るための,\SpecialChar LyX
12003 の使用法を解説します.スライドを作ることのできる文書クラスには,slides・Foil\SpecialChar TeX
12004 ・seminar・b
12005 eamer・powerdotといったクラスがありますが,本節では,そのうちslidesの解説を行います.
12006 \end_layout
12007
12008 \begin_layout Standard
12009 誤解のないように,わかりやすく明確に,もう一度言っておきます.
12010 \end_layout
12011
12012 \begin_layout Standard
12013 \begin_inset VSpace bigskip
12014 \end_inset
12015
12016
12017 \end_layout
12018
12019 \begin_layout Standard
12020 \align center
12021
12022 \size large
12023 本節は「
12024 \family sans
12025 FoilTeX
12026 \family default
12027 」クラス
12028 \emph on
12029 のみの
12030 \emph default
12031 解説を行います.
12032 \end_layout
12033
12034 \begin_layout Standard
12035 \begin_inset VSpace bigskip
12036 \end_inset
12037
12038
12039 \end_layout
12040
12041 \begin_layout Standard
12042
12043 \family sans
12044 transparencies (slides)
12045 \family default
12046 」の解説をお探しであれば,第
12047 \begin_inset CommandInset ref
12048 LatexCommand ref
12049 reference "sec:slitex"
12050
12051 \end_inset
12052
12053 節をご覧ください.お使いのコンピュータに
12054 \family sans
12055 foils
12056 \family default
12057 クラス
12058 \family sans
12059 FoilTeX
12060 \family default
12061 が導入されていなければ,
12062 \family sans
12063 foils
12064 \family default
12065 ほど良くはありませんが,おそらく
12066 \family sans
12067 slides
12068 \family default
12069 クラスを使わざるをえないでしょう.
12070 \end_layout
12071
12072 \begin_layout Standard
12073
12074 \family sans
12075 foils
12076 \family default
12077 クラスは,\SpecialChar LaTeX2e
12078 の一部として含まれている\SpecialChar LaTeX
12079 クラスファイル
12080 \family sans
12081 foils.cls
12082 \family default
12083 の第2.1版とともに使われるように設計されています.
12084 \end_layout
12085
12086 \begin_layout Subsection
12087 最初の一歩
12088 \end_layout
12089
12090 \begin_layout Standard
12091 いうまでもなく,この文書クラスを使うには,
12092 \family sans
12093 文書\SpecialChar menuseparator
12094 設定\SpecialChar menuseparator
12095 文書クラス
12096 \family default
12097 メニューの
12098 \family sans
12099 文書クラス
12100 \family default
12101 ドロップダウンで「
12102 \family sans
12103 FoilTeX
12104 \family default
12105 」を選択する必要があります.また,
12106 \family sans
12107 文書設定
12108 \family default
12109 ダイアログ中には,以下のように,このクラスに特有の設定がいくつかあることを知っておかなくてはなりません.
12110 \end_layout
12111
12112 \begin_layout Itemize
12113
12114 \family sans
12115 文書設定
12116 \family default
12117 ダイアログ中の,
12118 \family sans
12119 両面文書
12120 \family default
12121 オプションと
12122 \family sans
12123 二段組文書
12124 \family default
12125 オプションは変更しないでください.これらは 
12126 \family sans
12127 foils
12128 \family default
12129 クラスでは無視されます.
12130 \end_layout
12131
12132 \begin_layout Itemize
12133 既定のフォント寸法は20ptであり,17
12134 \begin_inset space \thinspace{}
12135 \end_inset
12136
12137 pt・25
12138 \begin_inset space \thinspace{}
12139 \end_inset
12140
12141 pt・30
12142 \begin_inset space \thinspace{}
12143 \end_inset
12144
12145 ptを選択することも可能です.
12146 \end_layout
12147
12148 \begin_layout Itemize
12149 既定のフォントは
12150 \family sans
12151 sans
12152 \family default
12153  
12154 \family sans
12155 serif
12156 \family default
12157 ですが,数式ではすべて,通常のローマン体が使用されます.
12158 \end_layout
12159
12160 \begin_layout Itemize
12161 Foil\SpecialChar TeX
12162 は,35
12163 \begin_inset space \thinspace{}
12164 \end_inset
12165
12166 mmスライド用の特殊寸法の他,A4とレター大の用紙寸法をサポートします.A5・B5・リーガル・エグゼクティブ大の用紙寸法はサポートしていません.
12167 \end_layout
12168
12169 \begin_layout Itemize
12170
12171 \family sans
12172 フロートの配置
12173 \family default
12174 の設定は無視されますので,わざわざ変更する必要はありません.フロートはすべて,本文中で定義された位置に表示されます.
12175 \end_layout
12176
12177 \begin_layout Itemize
12178 このクラスの
12179 \family sans
12180 ページレイアウト
12181 \family default
12182 の設定は,若干異なった挙動を示します.Foil\SpecialChar TeX
12183 では,ユーザ定義のロゴをはじめ,フッタとへッダに広範な設定ができます.詳細については第
12184 \begin_inset CommandInset ref
12185 LatexCommand ref
12186 reference "sec:foilfoot"
12187
12188 \end_inset
12189
12190 節をご覧ください.タイトルページは,文書中の他のページとは異なった取扱がなされ,ページ番号は
12191 \emph on
12192 つねに
12193 \emph default
12194 付けられず,(ロゴが定義されていれば)ロゴは,
12195 \emph on
12196 つねに
12197 \emph default
12198 ページ下部中央に表示されます.使用できるページ様式とその挙動は,以下の通りです.
12199 \end_layout
12200
12201 \begin_deeper
12202 \begin_layout Labeling
12203 \labelwidthstring MMMMMMM
12204
12205 \family sans
12206 \series bold
12207 empty
12208 \family default
12209 \series default
12210  最終出力には,ページ番号をはじめ,へッダ・フッタが出力されません(もちろん脚注は除きます).
12211 \end_layout
12212
12213 \begin_layout Labeling
12214 \labelwidthstring MMMMMMM
12215
12216 \family sans
12217 \series bold
12218 plain
12219 \family default
12220 \series default
12221  最終出力には,ページ番号がページ下部の中央に出力されますが,他のへッダ・フッタは出力されません(脚注除く).
12222 \end_layout
12223
12224 \begin_layout Labeling
12225 \labelwidthstring MMMMMMM
12226
12227 \series bold
12228 foilheadings
12229 \series default
12230  ページ番号が右下隅に出力されます.追記したへッダ・フッタも出力されます.これが既定値です.
12231 \end_layout
12232
12233 \begin_layout Labeling
12234 \labelwidthstring MMMMMMM
12235
12236 \series bold
12237 fancy
12238 \series default
12239  これは
12240 \family sans
12241 fancyheadings
12242 \family default
12243 パッケージを使えるようにします.ただし,Foil\SpecialChar TeX
12244 パッケージの作者は,ページレイアウトが崩れる可能性があるので,これを使用することは勧めないと言及しています.
12245 \end_layout
12246
12247 \end_deeper
12248 \begin_layout Subsubsection
12249 任意設定クラスオプション
12250 \end_layout
12251
12252 \begin_layout Standard
12253 以下のオプションは
12254 \family sans
12255 文書設定
12256 \family default
12257 ダイアログの任意設定クラスオプションボックスで使うことができます.
12258 \end_layout
12259
12260 \begin_layout Labeling
12261 \labelwidthstring MMMMMMx
12262
12263 \series bold
12264 35mmSlide
12265 \series default
12266  これは,ページレイアウトを縦7.33インチ横11インチに設定します.これは35
12267 \begin_inset space \space{}
12268 \end_inset
12269
12270 mmスライドの縦横比にほぼ等しく,このメディアを作る作業が若干易しくなります.
12271 \end_layout
12272
12273 \begin_layout Labeling
12274 \labelwidthstring MMMMMMx
12275
12276 \series bold
12277 headrule
12278 \series default
12279  タイトルページを除くすべてのページのへッダの下に罫線を入れます.
12280 \end_layout
12281
12282 \begin_layout Labeling
12283 \labelwidthstring MMMMMMx
12284
12285 \series bold
12286 footrule
12287 \series default
12288  タイトルページを除くすべてのページのフッタの上に罫線を入れます.
12289 \end_layout
12290
12291 \begin_layout Labeling
12292 \labelwidthstring MMMMMMx
12293
12294 \series bold
12295 dvips
12296 \series default
12297  これは,新規
12298 \family sans
12299 foils
12300 \family default
12301 文書を作成する度に自動的に設定されます.このオプションは,横向きに設定されたページを回転させるのに,dvipsドライバを使うようFoil\SpecialChar TeX
12302 に指示します.
12303 \end_layout
12304
12305 \begin_layout Labeling
12306 \labelwidthstring MMMMMMx
12307
12308 \series bold
12309 landscape
12310 \series default
12311  このオプションは,用紙寸法を横向きページ大に変更するだけで,回転は行いません.したがって,このオプションを使う場合は,各ページを回転させる外部プログラムを使用
12312 する,プリンタに用紙を横向きに給紙する必要があります.また,このオプションは,
12313 \family sans
12314 Foilhead
12315 \family default
12316 環境と
12317 \family sans
12318 Rotatefoilhead
12319 \family default
12320 環境の役割を逆転させることに注意してください(これらの環境については次節で説明します).
12321 \end_layout
12322
12323 \begin_layout Labeling
12324 \labelwidthstring MMMMMMx
12325
12326 \series bold
12327 leqno
12328 \series default
12329  数式番号を左側に付けます.
12330 \end_layout
12331
12332 \begin_layout Labeling
12333 \labelwidthstring MMMMMMx
12334
12335 \series bold
12336 fleqn
12337 \series default
12338  数式を左揃えにします.
12339 \end_layout
12340
12341 \begin_layout Subsection
12342 サポートされる環境
12343 \end_layout
12344
12345 \begin_layout Standard
12346 他のクラスで標準的にサポートされている環境は,
12347 \family sans
12348 foils
12349 \family default
12350 クラスでもサポートされています.それ以外に,Foil\SpecialChar TeX
12351 が提供している環境と,\SpecialChar LyX
12352 が付け加えた環境があります.以下の環境は,他のクラスと共通の環境です.
12353 \end_layout
12354
12355 \begin_layout Standard
12356
12357 \family sans
12358 \begin_inset Flex Multiple Columns
12359 status open
12360
12361 \begin_layout Itemize
12362
12363 \family sans
12364 標準
12365 \end_layout
12366
12367 \begin_layout Itemize
12368
12369 \family sans
12370 箇条書き(記号)
12371 \end_layout
12372
12373 \begin_layout Itemize
12374
12375 \family sans
12376 箇条書き(連番)
12377 \end_layout
12378
12379 \begin_layout Itemize
12380
12381 \family sans
12382 箇条書き(記述)
12383 \end_layout
12384
12385 \begin_layout Itemize
12386
12387 \family sans
12388 箇条書き(リスト)
12389 \end_layout
12390
12391 \begin_layout Itemize
12392
12393 \family sans
12394 \SpecialChar LyX
12395 コード
12396 \end_layout
12397
12398 \begin_layout Itemize
12399
12400 \family sans
12401 詩句
12402 \end_layout
12403
12404 \begin_layout Itemize
12405
12406 \family sans
12407 引用(字下げあり)
12408 \end_layout
12409
12410 \begin_layout Itemize
12411
12412 \family sans
12413 引用(字下げなし)
12414 \end_layout
12415
12416 \begin_layout Itemize
12417
12418 \family sans
12419 タイトル
12420 \end_layout
12421
12422 \begin_layout Itemize
12423
12424 \family sans
12425 著者
12426 \end_layout
12427
12428 \begin_layout Itemize
12429
12430 \family sans
12431 日付
12432 \end_layout
12433
12434 \begin_layout Itemize
12435
12436 \family sans
12437 概要
12438 \end_layout
12439
12440 \begin_layout Itemize
12441
12442 \family sans
12443 書誌情報
12444 \end_layout
12445
12446 \begin_layout Itemize
12447
12448 \family sans
12449 住所
12450 \end_layout
12451
12452 \begin_layout Itemize
12453
12454 \family sans
12455 右寄せ住所
12456 \end_layout
12457
12458 \begin_layout Itemize
12459
12460 \family sans
12461 キャプション
12462 \end_layout
12463
12464 \begin_layout Itemize
12465
12466 \family sans
12467 コメント
12468 \end_layout
12469
12470 \end_inset
12471
12472
12473 \end_layout
12474
12475 \begin_layout Standard
12476 つまり,節区切りを除けば,主な環境のすべてです.一枚のスライドは,基本的にタイトルと本文を備えた自己完結した節なので,
12477 \family sans
12478 Foil
12479 \family default
12480 \SpecialChar TeX
12481 は新しいスライドを始める以下のようなコマンドを備えています.
12482 \end_layout
12483
12484 \begin_layout Itemize
12485
12486 \family sans
12487 スライドタイトル(Foilhead)
12488 \end_layout
12489
12490 \begin_layout Itemize
12491
12492 \family sans
12493 横置きスライドタイトル(Rotatefoilhead)
12494 \end_layout
12495
12496 \begin_layout Standard
12497 \SpecialChar LyX
12498 は,以下のような,これらを若干修正した環境も用意しています.
12499 \end_layout
12500
12501 \begin_layout Itemize
12502
12503 \family sans
12504 スライドタイトル(小)(ShortFoilhead)
12505 \end_layout
12506
12507 \begin_layout Itemize
12508
12509 \family sans
12510 横置きスライドタイトル(小)(ShortRotatefoilhead)
12511 \end_layout
12512
12513 \begin_layout Standard
12514 これらの違いは次節で説明します.
12515 \end_layout
12516
12517 \begin_layout Standard
12518 スライドは,アイデアを説明したり,新しい定理を説明したりするのにしばしば使われるので,
12519 \family sans
12520 Foil
12521 \family default
12522 \SpecialChar TeX
12523 はそれらを説明するのに便利な環境を幅広く用意しています.
12524 \end_layout
12525
12526 \begin_layout Standard
12527
12528 \family sans
12529 \begin_inset Flex Multiple Columns
12530 status open
12531
12532 \begin_layout Itemize
12533
12534 \family sans
12535 定理
12536 \end_layout
12537
12538 \begin_layout Itemize
12539
12540 \family sans
12541 補題
12542 \end_layout
12543
12544 \begin_layout Itemize
12545
12546 \family sans
12547
12548 \end_layout
12549
12550 \begin_layout Itemize
12551
12552 \family sans
12553 命題
12554 \end_layout
12555
12556 \begin_layout Itemize
12557
12558 \family sans
12559 定義
12560 \end_layout
12561
12562 \begin_layout Itemize
12563
12564 \family sans
12565 証明
12566 \end_layout
12567
12568 \begin_layout Itemize
12569
12570 \family sans
12571 定理*
12572 \end_layout
12573
12574 \begin_layout Itemize
12575
12576 \family sans
12577 補題*
12578 \end_layout
12579
12580 \begin_layout Itemize
12581
12582 \family sans
12583 系*
12584 \end_layout
12585
12586 \begin_layout Itemize
12587
12588 \family sans
12589 命題*
12590 \end_layout
12591
12592 \begin_layout Itemize
12593
12594 \family sans
12595 定義*
12596 \end_layout
12597
12598 \end_inset
12599
12600
12601 \end_layout
12602
12603 \begin_layout Standard
12604 星付き版は連番が振られず,星なし版は連番が振られます.他に,\SpecialChar LyX
12605 で追加された以下の2つの箇条書き環境があります.
12606 \end_layout
12607
12608 \begin_layout Itemize
12609
12610 \family sans
12611 箇条書き(チック)
12612 \end_layout
12613
12614 \begin_layout Itemize
12615
12616 \family sans
12617 箇条書き(クロス)
12618 \end_layout
12619
12620 \begin_layout Standard
12621 Foil\SpecialChar TeX
12622 には,強力なヘッダ機能とフッタ機能があり,これらはプリアンブルで設定するのが最良ですが,文章中のどこでも設定することができます.もし文書中でこれらの設定
12623 を変更したい場合には,スライドの一番上,foilheadの直後で行うのが良いでしょう.
12624 \end_layout
12625
12626 \begin_layout Standard
12627 この目的のためには,以下のコマンドスタイルがあります(
12628 \shape smallcaps
12629 Martin Vermeer).
12630 \end_layout
12631
12632 \begin_layout Standard
12633 \begin_inset Flex Multiple Columns
12634 status open
12635
12636 \begin_layout Itemize
12637
12638 \family sans
12639 グラフィックスロゴ
12640 \end_layout
12641
12642 \begin_layout Itemize
12643
12644 \family sans
12645 配布制限
12646 \end_layout
12647
12648 \begin_layout Itemize
12649
12650 \family sans
12651 右フッタ
12652 \end_layout
12653
12654 \begin_layout Itemize
12655
12656 \family sans
12657 右ヘッダ
12658 \end_layout
12659
12660 \begin_layout Itemize
12661
12662 \family sans
12663 左ヘッダ
12664 \end_layout
12665
12666 \begin_deeper
12667 \begin_layout Plain Layout
12668 \begin_inset space ~
12669 \end_inset
12670
12671
12672 \end_layout
12673
12674 \end_deeper
12675 \end_inset
12676
12677
12678 \end_layout
12679
12680 \begin_layout Standard
12681 Foil\SpecialChar TeX
12682 が提供しているコマンドで,\SpecialChar LyX
12683 が直接サポートしていないコマンドもありますが,これらの説明と使い方については,第
12684 \begin_inset CommandInset ref
12685 LatexCommand ref
12686 reference "sec:unsuppfoils"
12687
12688 \end_inset
12689
12690 節で行います.
12691 \end_layout
12692
12693 \begin_layout Subsection
12694 スライドの組を作る
12695 \end_layout
12696
12697 \begin_layout Standard
12698 この節は,様々な環境を使ってスライドの組を作る方法を簡単に紹介します.スライド組の例をご覧になりたい場合は,\SpecialChar LyX
12699
12700 \family typewriter
12701 examples
12702 \family default
12703 フォルダにある
12704 \family typewriter
12705 Foils.lyx
12706 \family default
12707 ファイルをご覧ください.
12708 \end_layout
12709
12710 \begin_layout Subsubsection
12711 タイトルページを作る
12712 \end_layout
12713
12714 \begin_layout Standard
12715
12716 \family sans
12717 タイトル
12718 \family default
12719
12720 \family sans
12721 著者
12722 \family default
12723
12724 \family sans
12725 日付
12726 \family default
12727
12728 \family sans
12729 概要
12730 \family default
12731 環境のある他のクラスとは異なり,
12732 \family sans
12733 foils
12734 \family default
12735 は独立したページにタイトルを作成します.
12736 \family sans
12737 日付
12738 \family default
12739 環境を使用しなかった場合には,\SpecialChar LaTeX
12740 は(出力を生成し直したときにはいつも)その時点の日付を挿入します.
12741 \end_layout
12742
12743 \begin_layout Subsubsection
12744 新しいスライドを開始する
12745 \end_layout
12746
12747 \begin_layout Standard
12748 前述のように,新しいスライドを開始するには,4つの方法があります.縦向きのスライドを開始するには,
12749 \family sans
12750 スライドタイトル(Foilhead)
12751 \family default
12752
12753 \family sans
12754 スライドタイトル(小)(ShortFoilhead)
12755 \family default
12756 を使用します.両環境の違いは,スライドタイトル(foilhead)とスライド本文の間の余白の違いです.
12757 \end_layout
12758
12759 \begin_layout Standard
12760 横向きのスライドは,
12761 \family sans
12762 横向きスライドタイトル(Rotatefoilhead)
12763 \family default
12764 か横向きスライドタイトル(小)(
12765 \family sans
12766 ShortRotatefoilhead)
12767 \family default
12768 環境を使用して生成します.ここでも両環境の違いは,タイトルと本文の間の余白のみです.どちらの場合も,(小)と記された版は,タイトルと本文の間の余白が,0.5インチ
12769 (約1.27cm)小さくなります.
12770 \end_layout
12771
12772 \begin_layout Standard
12773 横向きのスライドをサポートする際,一つ問題となるのは,スライドを回転させようと思うと,PostScript出力を生成するのに
12774 \family typewriter
12775 dvips
12776 \family default
12777 ドライバを使用することを要求してしまうことです.もしスライドをプリンタに横に給紙することができれば,
12778 \family typewriter
12779 dvips
12780 \family default
12781 ドライバを持っていなくても,横向きのスライドをつくることができます ;-)
12782 \end_layout
12783
12784 \begin_layout Subsubsection
12785 定理・補題・証明など
12786 \end_layout
12787
12788 \begin_layout Standard
12789 \SpecialChar LyX
12790 中の小さなバグによって,これらの環境の同じ型をお互いに直接続けて置くことはできません.これらは何かによって分離されなくてはなりません.仮に二つ続けて置いても,2
12791 つの環境をマージしたかのように,前の環境が延長されるだけです.この問題を回避するにはどうすればよいのでしょうか.最も簡単な方法は,二つの環境の間に何か文章を置く
12792 か,あるいは二つの間に「
12793 \family typewriter
12794 %
12795 \family default
12796 」だけから成る\SpecialChar LaTeX
12797 環境を置くことです.これによって,\SpecialChar LyX
12798 は2つの別々の環境を生成するように強制され,正しい\SpecialChar LaTeX
12799 出力を得ることができます.\SpecialChar LyX
12800 頒布版に含まれる用例ファイルに例があ
12801 ります.この問題は,二つの同じ定理型環境を立て続けに置こうとした場合にのみ発生することに注意してください.
12802 \end_layout
12803
12804 \begin_layout Subsubsection
12805 箇条書き
12806 \end_layout
12807
12808 \begin_layout Standard
12809 他のクラスでも共通にサポートされている箇条書き様式すべてに加えて,二つの新しい様式を使用することができます.ここでは,その新しい様式のみを説明することにします.
12810 他の箇条書き環境について詳しく知りたい場合には,
12811 \emph on
12812 ユーザーの手引き
12813 \emph default
12814 をご覧ください.記号による箇条書きを使用したい場合には,上記第
12815 \begin_inset CommandInset ref
12816 LatexCommand ref
12817 reference "sec:ブリット"
12818
12819 \end_inset
12820
12821 節の
12822 \family sans
12823 箇条書き(記号)ブリットの指定
12824 \family default
12825 の節も,読まれることが望ましいでしょう.
12826 \end_layout
12827
12828 \begin_layout Standard
12829
12830 \family sans
12831 箇条書き(チック)
12832 \family default
12833
12834 \family sans
12835 箇条書き(クロス)
12836 \family default
12837 の二つの新しい様式は,チェック印や
12838 \begin_inset Formula $\times$
12839 \end_inset
12840
12841 印を箇条書きのラベルに使用する専用の環境を提供することで,予定一覧や正誤一覧を作りやすくするように設計されたものです.これらの箇条書きは,
12842 \family sans
12843 箇条書き(記号)
12844 \family default
12845 の派生型を専用に用意したものに過ぎません.ただし,これらは,
12846 \family typewriter
12847 psnfss
12848 \family default
12849 パッケージが導入済であることを要求します.
12850 \end_layout
12851
12852 \begin_layout Subsubsection
12853 図と表
12854 \end_layout
12855
12856 \begin_layout Standard
12857 Foil\SpecialChar TeX
12858 では,図表フロートは,本文中の挿入箇所にこれらが正確に表示されるように再定義されており,ページの上部やユーザー指定場所に押しのけたりはしないようになって
12859 います.たとえフロート配置の設定に変更を加えたとしても,単に無視されます.
12860 \end_layout
12861
12862 \begin_layout Subsubsection
12863 ページヘッダおよびページフッタ
12864 \begin_inset CommandInset label
12865 LatexCommand label
12866 name "sec:foilfoot"
12867
12868 \end_inset
12869
12870
12871 \end_layout
12872
12873 \begin_layout Standard
12874
12875 \family sans
12876 グラフィックスロゴ
12877 \family default
12878
12879 \family sans
12880 配布制限
12881 \family default
12882 の二つは,左フッタ文を制御するものです.前者は,グラフィックスのロゴをスライドに入れるためのもので,既定値は「-Typeset by 
12883 \family sans
12884 Foil
12885 \family default
12886 \SpecialChar TeX
12887 -」となっています.後者は,「機密事項」などのように,聴衆に秘密区分を提示することを意図しています.既定値では,何も設定されていません.
12888 \end_layout
12889
12890 \begin_layout Standard
12891 スライドの残り三隅には,
12892 \family sans
12893 右フッタ
12894 \family default
12895 (既定ではページ番号)・
12896 \family sans
12897 右ヘッダ
12898 \family default
12899 (右上)・
12900 \family sans
12901 左ヘッダ
12902 \family default
12903 (左上)を使って文字を入れることができます.
12904 \end_layout
12905
12906 \begin_layout Subsection
12907 サポートされない 
12908 \family sans
12909 Foil
12910 \family default
12911 \SpecialChar TeX
12912 機能
12913 \begin_inset CommandInset label
12914 LatexCommand label
12915 name "sec:unsuppfoils"
12916
12917 \end_inset
12918
12919
12920 \end_layout
12921
12922 \begin_layout Standard
12923 以下で言及されているコマンドは,
12924 \family sans
12925 \SpecialChar LaTeX
12926
12927 \family default
12928 環境内で設定されるか,他の環境中の
12929 \family sans
12930 \SpecialChar TeX
12931 コード
12932 \family default
12933 として設定される必要があります.
12934 \end_layout
12935
12936 \begin_layout Subsubsection
12937 長さ
12938 \end_layout
12939
12940 \begin_layout Standard
12941 長さは,すべて
12942 \family typewriter
12943
12944 \backslash
12945 setlength{
12946 \family default
12947 \emph on
12948 長さ名
12949 \family typewriter
12950 \emph default
12951 }{
12952 \family default
12953 \emph on
12954 新規長さ
12955 \family typewriter
12956 \emph default
12957 }
12958 \family default
12959 コマンドで調節されます.ここで
12960 \emph on
12961 長さ名
12962 \emph default
12963 は,変更したい長さに付けられている名前で置き換え,
12964 \emph on
12965 新規長さ
12966 \emph default
12967 は,その長さの値で置き換えます.長さはすべて,インチ(in)・ミリメートル(mm)・ポイント(pt)のような長さ単位か,
12968 \family typewriter
12969
12970 \backslash
12971 textwidth
12972 \family default
12973 のように文書比あるいはフォント基準の長さで指定する必要があります.
12974 \end_layout
12975
12976 \begin_layout Standard
12977
12978 \family typewriter
12979
12980 \backslash
12981 foilheadskip
12982 \family default
12983 で指定される長さを調節することによって,スライドタイトルとスライド本文の間の余白を変更することができます.たとえば,スライドタイトルをすべて0.5
12984 \begin_inset space \space{}
12985 \end_inset
12986
12987 inだけスライド本文に近づけるには,プリアンブルに
12988 \family typewriter
12989
12990 \backslash
12991 setlength{
12992 \backslash
12993 foilheadskip}{-0.5in}
12994 \family default
12995 と書き込みます.
12996 \end_layout
12997
12998 \begin_layout Standard
12999 フロート周囲の余白は,以下の長さを設定することで調整することができます.
13000 \end_layout
13001
13002 \begin_layout Labeling
13003 \labelwidthstring MMMMMMMMMMM
13004
13005 \family typewriter
13006
13007 \backslash
13008 abovefloatskip
13009 \family default
13010  本文とフロート上辺との間隔
13011 \end_layout
13012
13013 \begin_layout Labeling
13014 \labelwidthstring MMMMMMMMMMM
13015
13016 \family typewriter
13017
13018 \backslash
13019 abovecaptionskip
13020 \family default
13021  フロートとキャプションとの間隔
13022 \end_layout
13023
13024 \begin_layout Labeling
13025 \labelwidthstring MMMMMMMMMMM
13026
13027 \family typewriter
13028
13029 \backslash
13030 belowcaptionskip
13031 \family default
13032  キャプションとそれに続く本文との間隔
13033 \end_layout
13034
13035 \begin_layout Labeling
13036 \labelwidthstring MMMMMMMMMMM
13037
13038 \family typewriter
13039
13040 \backslash
13041 captionwidth
13042 \family default
13043  この長さを調整することでキャプションを,周囲の本文より短くすることができます.
13044 \family typewriter
13045
13046 \backslash
13047 textwidth
13048 \family default
13049 に対する相対的な長さで調整するのが最も良いでしょう.
13050 \end_layout
13051
13052 \begin_layout Standard
13053 以下のようなタイトルページ関連の長さもあり,タイトルが長い場合や,著者が複数いる場合に使うと便利かもしれません.
13054 \end_layout
13055
13056 \begin_layout Labeling
13057 \labelwidthstring MMMMMMMMMMM
13058
13059 \family typewriter
13060
13061 \backslash
13062 abovetitleskip
13063 \family default
13064  へッダとタイトルとの間隔
13065 \end_layout
13066
13067 \begin_layout Labeling
13068 \labelwidthstring MMMMMMMMMMM
13069
13070 \family typewriter
13071
13072 \backslash
13073 titleauthorskip
13074 \family default
13075  
13076 \family sans
13077 タイトル
13078 \family default
13079 環境と
13080 \family sans
13081 著者
13082 \family default
13083 環境との間隔
13084 \end_layout
13085
13086 \begin_layout Labeling
13087 \labelwidthstring MMMMMMMMMMM
13088
13089 \family typewriter
13090
13091 \backslash
13092 authorauthorskip
13093 \family default
13094  著者が複数いる場合の
13095 \family sans
13096 著者
13097 \family default
13098 行の間隔
13099 \end_layout
13100
13101 \begin_layout Labeling
13102 \labelwidthstring MMMMMMMMMMM
13103
13104 \family typewriter
13105
13106 \backslash
13107 authordateskip
13108 \family default
13109  
13110 \family sans
13111 著者
13112 \family default
13113
13114 \family sans
13115 日付
13116 \family default
13117 との間隔
13118 \end_layout
13119
13120 \begin_layout Labeling
13121 \labelwidthstring MMMMMMMMMMM
13122
13123 \family typewriter
13124
13125 \backslash
13126 dateabstractskip
13127 \family default
13128  
13129 \family sans
13130 日付
13131 \family default
13132
13133 \family sans
13134 概要
13135 \family default
13136 との間隔
13137 \end_layout
13138
13139 \begin_layout Standard
13140 最後に紹介する長さ関連コマンドは,箇条書き環境すべてに使用できるものです.
13141 \family typewriter
13142
13143 \backslash
13144 zerolistvertdimens
13145 \family default
13146 を箇条書き環境の内側に置くと,項目間の垂直余白がすべて取り除かれます.これは長さではなくコマンドなので,上述のもののように
13147 \family typewriter
13148
13149 \backslash
13150 setlength
13151 \family default
13152 を使う必要がないことに注意してください.
13153 \end_layout
13154
13155 \begin_layout Subsubsection
13156 へッダとフッタ
13157 \end_layout
13158
13159 \begin_layout Standard
13160
13161 \family typewriter
13162
13163 \backslash
13164 LogoOn
13165 \family default
13166 および
13167 \family typewriter
13168
13169 \backslash
13170 LogoOff
13171 \family default
13172 は,
13173 \family typewriter
13174 MyLogo
13175 \family default
13176 で定義したロゴを特定のページに入れるかどうかを制御します.
13177 \family typewriter
13178
13179 \backslash
13180 LogoOff
13181 \family default
13182 をプリアンブルに入れると,全スライドからロゴが取り除かれます.特定のスライドにのみロゴを付けたくない場合は,当該ページのスライドタイトルの直後に直接
13183 \family typewriter
13184
13185 \backslash
13186 LogoOff
13187 \family default
13188 を置き,次のスライドタイトルの直後に直接
13189 \family typewriter
13190
13191 \backslash
13192 LogoOn
13193 \family default
13194 を置いてください.
13195 \end_layout
13196
13197 \begin_layout Standard
13198
13199 \family sans
13200 文書レイアウト
13201 \family default
13202 ダイアログで
13203 \family sans
13204 fancy
13205 \family default
13206 ページ様式を使用することを選択した場合には,横置きページのヘッダとフッタが回転後も正しく配置されるように,プリアンブルに
13207 \family typewriter
13208
13209 \backslash
13210 let
13211 \backslash
13212 headwidth
13213 \backslash
13214 textwidth
13215 \family default
13216 を加える必要があるでしょう.これは,
13217 \family sans
13218 fancyheadings
13219 \family default
13220 パッケージが提供するページレイアウトと
13221 \family sans
13222 foils
13223 \family default
13224 クラスの提供するページレイアウトの間に衝突が発生するためです.
13225 \end_layout
13226
13227 \begin_layout Section
13228 Hollywood(Hollywoodスペック・スクリプト)
13229 \end_layout
13230
13231 \begin_layout Standard
13232
13233 \noun on
13234 Garst Reese
13235 \noun default
13236
13237 \end_layout
13238
13239 \begin_layout Subsection
13240 はじめに
13241 \end_layout
13242
13243 \begin_layout Standard
13244 脚本を正しい書式で書くことは,ハリウッドにおける「通過儀礼」です.ハリウッドの脚本は,読み手が内容に集中できるようにし,俳優にとっても読みやすくかつ親しみやすい
13245 ように設計されています.脚本の1ページは,映画の1分でなければならず,銀幕上で見えたり聞こえたりしないものは,脚本に混入してはなりません.また,全体を通してCo
13246 urier 12
13247 \begin_inset space \space{}
13248 \end_inset
13249
13250 ptフォントを使わなければならず,イタリック体は用いてはいけません.
13251 \end_layout
13252
13253 \begin_layout Subsection
13254 特別な問題
13255 \end_layout
13256
13257 \begin_layout Standard
13258 話者の行は,文の途中で改行することは
13259 \emph on
13260 決して
13261 \emph default
13262 あってはなりません.もし話者行の塊が,次頁にまたがる場合には,
13263 \family sans
13264 話者
13265 \family default
13266 名を再度書き,その後に(Cont'd)と加えます.
13267 \end_layout
13268
13269 \begin_layout Subsection
13270 特別な機能
13271 \end_layout
13272
13273 \begin_layout Standard
13274
13275 \family sans
13276 話者
13277 \family default
13278 名はラベルとして挿入し,話者名を挿入するには,そのラベルを相互参照してください.相互参照ダイアログは,登場人物の現在の配役を表示することになります.これは,ト書
13279 きに話者名を挿入するのにも使用することができます.
13280 \end_layout
13281
13282 \begin_layout Subsection
13283 用紙寸法と余白
13284 \end_layout
13285
13286 \begin_layout Standard
13287 USレター寸法で,左余白1.6インチ・右余白0.75インチ・上余白0.5インチ・下余白0.75インチです.
13288 \end_layout
13289
13290 \begin_layout Subsection
13291 環境
13292 \end_layout
13293
13294 \begin_layout Standard
13295 以下の環境が利用可能です.右に示されている
13296 \begin_inset Flex Ruby
13297 status collapsed
13298
13299 \begin_layout Plain Layout
13300
13301 \begin_inset Argument post:1
13302 status collapsed
13303
13304 \begin_layout Plain Layout
13305 キー
13306 \end_layout
13307
13308 \end_inset
13309
13310
13311 \end_layout
13312
13313 \end_inset
13314
13315 割当てを使用するには,hollywood.bindを使用してください.
13316 \end_layout
13317
13318 \begin_layout Itemize
13319
13320 \family sans
13321 一般
13322 \begin_inset Newline newline
13323 \end_inset
13324
13325
13326 \family default
13327 他の環境が動作しない場合に使用しますが,これを使うことは避けるようにしてください.
13328 \end_layout
13329
13330 \begin_layout Itemize
13331 フェイドイン:
13332 \begin_inset space \hfill{}
13333 \end_inset
13334
13335
13336 \family sans
13337 M-z S-I
13338 \family default
13339
13340 \begin_inset Newline newline
13341 \end_inset
13342
13343 通常,この後には「Sallyは目を覚ますと」のように続きます.
13344 \end_layout
13345
13346 \begin_layout Itemize
13347
13348 \family sans
13349 屋内:
13350 \begin_inset space \hfill{}
13351 \end_inset
13352
13353 M-z i
13354 \begin_inset Newline newline
13355 \end_inset
13356
13357
13358 \family default
13359 新しい屋内(INTERIOR)カメラの設定を指定します.この後には,かならずDAYやNIGHTなどを指定して,必要な照明を定義します.この行はすべて大文字で書き
13360 ます.
13361 \end_layout
13362
13363 \begin_layout Itemize
13364
13365 \family sans
13366 屋外:
13367 \begin_inset space \hfill{}
13368 \end_inset
13369
13370 M-z e
13371 \begin_inset Newline newline
13372 \end_inset
13373
13374
13375 \family default
13376 屋外(EXTERIOR)カメラの設定を指定します.この行はすべて大文字で書きます.
13377 \end_layout
13378
13379 \begin_layout Itemize
13380
13381 \family sans
13382 話者
13383 \begin_inset space \hfill{}
13384 \end_inset
13385
13386 M-z s
13387 \begin_inset Newline newline
13388 \end_inset
13389
13390
13391 \family default
13392 話す役.
13393 \end_layout
13394
13395 \begin_layout Itemize
13396
13397 \family sans
13398 括弧付き
13399 \begin_inset space \hfill{}
13400 \end_inset
13401
13402 M-z p
13403 \begin_inset Newline newline
13404 \end_inset
13405
13406 話者
13407 \family default
13408 への指示.自動的に括弧()が挿入されますが,\SpecialChar LyX
13409 上で表示されるのは,左括弧( のみです.印刷出力には右括弧も表示されます.
13410 \end_layout
13411
13412 \begin_layout Itemize
13413
13414 \family sans
13415 対話
13416 \begin_inset space \hfill{}
13417 \end_inset
13418
13419 M-z d
13420 \begin_inset Newline newline
13421 \end_inset
13422
13423 話者
13424 \family default
13425 が話す内容.
13426 \end_layout
13427
13428 \begin_layout Itemize
13429
13430 \family sans
13431 画面遷移
13432 \begin_inset space \hfill{}
13433 \end_inset
13434
13435 M-z t
13436 \begin_inset Newline newline
13437 \end_inset
13438
13439
13440 \family default
13441 カメラの動きの指示.例:CUT TO:.
13442 \end_layout
13443
13444 \begin_layout Itemize
13445
13446 \family sans
13447 フェイドアウト:
13448 \begin_inset space \hfill{}
13449 \end_inset
13450
13451 M-z S-I
13452 \end_layout
13453
13454 \begin_layout Itemize
13455
13456 \family sans
13457 著者
13458 \begin_inset space \hfill{}
13459 \end_inset
13460
13461 M-z S-A
13462 \end_layout
13463
13464 \begin_layout Itemize
13465
13466 \family sans
13467 タイトル
13468 \begin_inset space \hfill{}
13469 \end_inset
13470
13471 M-z S-T
13472 \end_layout
13473
13474 \begin_layout Itemize
13475
13476 \family sans
13477 右寄せ住所
13478 \begin_inset space \hfill{}
13479 \end_inset
13480
13481 M-z r
13482 \end_layout
13483
13484 \begin_layout Subsection
13485 脚本で使われる特別な用語
13486 \end_layout
13487
13488 \begin_layout Itemize
13489 (O.S) — off screen
13490 \end_layout
13491
13492 \begin_layout Itemize
13493 (V.0) — voice over
13494 \end_layout
13495
13496 \begin_layout Itemize
13497 b.g.
13498  — background
13499 \end_layout
13500
13501 \begin_layout Itemize
13502 C.U.
13503  — close-up
13504 \end_layout
13505
13506 \begin_layout Itemize
13507 PAN — camera movement
13508 \end_layout
13509
13510 \begin_layout Itemize
13511 INSERT — cut to close-up of
13512 \end_layout
13513
13514 \begin_layout Section
13515 ijmpcおよびijmpd
13516 \end_layout
13517
13518 \begin_layout Standard
13519
13520 \noun on
13521 Panayotis Papasotiriou
13522 \noun default
13523
13524 \end_layout
13525
13526 \begin_layout Subsection
13527 概観
13528 \end_layout
13529
13530 \begin_layout Standard
13531 ijpmcパッケージは,
13532 \emph on
13533 International Journal of Modern Physics C
13534 \emph default
13535 への電子投稿を可能にするためのマクロ集です.同様に,ijpmdパッケージは,
13536 \emph on
13537 International Journal of Modern Physics D
13538 \emph default
13539 へ投稿する現行を作成するためのものです.両誌ともWorld Scientific社の刊行です.対応する文書クラス名は,それぞれ
13540 \family typewriter
13541 ws-ijmpc.cls
13542 \family default
13543 および
13544 \family typewriter
13545 ws-ijmpd.cls
13546 \family default
13547 です.これらのファイルは,著者のための指針とともに,
13548 \begin_inset Flex URL
13549 status collapsed
13550
13551 \begin_layout Plain Layout
13552
13553 http://www.worldscinet.com/ijmpc/mkt/guidelines.shtml
13554 \end_layout
13555
13556 \end_inset
13557
13558 および
13559 \begin_inset Flex URL
13560 status collapsed
13561
13562 \begin_layout Plain Layout
13563
13564 http://www.worldscinet.com/ijmpd/mkt/guidelines.shtml
13565 \end_layout
13566
13567 \end_inset
13568
13569 の各サイトからダウンロードすることができます.両パッケージは,標準「article」パッケージの修正版であり,両者は(一部を除き)ほぼ同一です.\SpecialChar LyX
13570 は,これらのパッ
13571 ケージのほとんどの機能をサポートしています.私は両誌へ投稿する論文を\SpecialChar LyX
13572 で書き上げましたが,何らの問題も生じませんでした.
13573 \end_layout
13574
13575 \begin_layout Subsection
13576 論文を書く
13577 \end_layout
13578
13579 \begin_layout Standard
13580 通常と同じく,論文を書く上で最も易しい方法は,ひな型を使って書き始めることです.
13581 \family sans
13582 ファイル\SpecialChar menuseparator
13583 新規(ひな型使用)
13584 \family default
13585 をクリックして,ひな型
13586 \family typewriter
13587 ijmpc.lyx
13588 \family default
13589 もしくは
13590 \family typewriter
13591 ijmpd.lyx
13592 \family default
13593 を選択してください.すると,原稿で良く使用されるフィールドを含んだ,ほぼ空の文書ができますので,既存のフィールド(鍵括弧
13594 \family typewriter
13595 <>
13596 \family default
13597 を含む)を正しい情報で置き換えてください.以下の各点にご留意ください.
13598 \end_layout
13599
13600 \begin_layout Enumerate
13601 両パッケージでは,フォント寸法や文書のページ様式を変更することが禁じられているので,\SpecialChar LyX
13602 中でこれらを変更することはできません.
13603 \end_layout
13604
13605 \begin_layout Enumerate
13606 文書言語は変更してはいけません.論文をプレビューする前に,babelパッケージが使用されていないことを確認してください.これは,
13607 \family sans
13608 ツール\SpecialChar menuseparator
13609 設定
13610 \family default
13611 をクリックして,
13612 \family sans
13613 言語オプション
13614 \family default
13615 タブを選択し,言語設定で
13616 \family sans
13617 Babelを使う
13618 \family default
13619 チェックボックスを無効にしてから,
13620 \family sans
13621 適用
13622 \family default
13623 をクリックすれば,設定することができます(この変更を固定するなら
13624 \family sans
13625 保存
13626 \family default
13627 を押してください).
13628 \end_layout
13629
13630 \begin_layout Enumerate
13631 キーワードを定義するに際しては,「キーワード」様式を用いなくてはなりません.
13632 \end_layout
13633
13634 \begin_layout Enumerate
13635 ijmpcパッケージが提供する「分類コード」様式は,PACS番号のような分類コードを定義するのに使用することができます.この機能は,ijmpdパッケージではサポ
13636 ートされていませんので,ご注意ください.
13637 \end_layout
13638
13639 \begin_layout Enumerate
13640 「定義」「ステップ」「例」「注記」「記法」「定理」「証明」「系」「補題」「命題」「命題(Prop)」「問題」「主張」「予想」といった新しい環境を使用することがで
13641 きます.これらの使い方は,大凡自明でしょう.\SpecialChar LyX
13642 は,これらの環境をすべてサポートし,それぞれについて,適切なラベルと文字様式および連番スキームを使用します.
13643 \end_layout
13644
13645 \begin_layout Enumerate
13646 両パッケージは,単純な引用を使用しますので,natbibパッケージは使用してはなりません.\SpecialChar LyX
13647 中では,引用参照は通常通り表示されますが,出力では上付き文字として表示
13648 されます.引用に通常の本文を使用したい場合には,「See Ref.
13649 \begin_inset space \space{}
13650 \end_inset
13651
13652
13653 \family typewriter
13654
13655 \backslash
13656 refcite{
13657 \family default
13658
13659 \begin_inset Flex Ruby
13660 status collapsed
13661
13662 \begin_layout Plain Layout
13663
13664 \family typewriter
13665
13666 \family default
13667
13668 \begin_inset Argument post:1
13669 status collapsed
13670
13671 \begin_layout Plain Layout
13672 キー
13673 \end_layout
13674
13675 \end_inset
13676
13677
13678 \end_layout
13679
13680 \end_inset
13681
13682
13683 \family typewriter
13684 }
13685 \family default
13686 」のように
13687 \family typewriter
13688 refcite
13689 \family default
13690 コマンドを使用してください.
13691 \end_layout
13692
13693 \begin_layout Enumerate
13694 両パッケージには,「謝辞」環境がありません.謝辞を置くには,「節*」環境を使用してください.
13695 \end_layout
13696
13697 \begin_layout Enumerate
13698 付録は,論文中,謝辞の
13699 \emph on
13700
13701 \emph default
13702 かつ書誌情報の
13703 \emph on
13704
13705 \emph default
13706 であれば,入れることができます.\SpecialChar LyX
13707 上では,「付録領域」という特別な環境があり,これを使って付録の開始位置を指定することができます.この環境は空のままにしておかなく
13708 てはなりません.この環境は,\SpecialChar LaTeX
13709 コマンドを書き出すだけで,実際に出力は行いません.\SpecialChar LyX
13710 上では,青字で「Appendix」という単語が表示され,この箇所より後の節はすべて
13711 付録であることを明示します.「付録領域」は,最初の付録の前に
13712 \emph on
13713 なくてはならない
13714 \emph default
13715 ことに注意してください.さもなくば,出力中において,付録はすべて通常の節として連番が振られてしまいます.
13716 \end_layout
13717
13718 \begin_layout Enumerate
13719 ijmpcおよびijmpdパッケージは,表キャプションを実装するのに
13720 \family typewriter
13721 tbl
13722 \family default
13723 コマンドを使用します.そのため,\SpecialChar LyX
13724 が作成した表は正しく印字されますが,そのキャプションは無視されます.しかし,\SpecialChar TeX
13725 コードを少し使えば,この問題を回避して,キャプション
13726 を望み通り印字することができるようになります.そうするには,表フロートを通常通り作成して,キャプションを削除し,代わりに\SpecialChar TeX
13727 コードで
13728 \family typewriter
13729
13730 \backslash
13731 tbl{表キャプション}{
13732 \family default
13733 (ママ)と入れます.そこに表の内容を入れて,直後を\SpecialChar TeX
13734 コード
13735 \family typewriter
13736 }
13737 \family default
13738 で閉じてください.このからくりがどのように実装されているかを見るには,ひな型ファイルに入っている表の例を精査してみてください.別の方法としては,表キャプションが
13739 欲しい場合に,表フロート全体を
13740 \family typewriter
13741 .tex
13742 \family default
13743 ファイルに収め,このファイルを\SpecialChar LyX
13744 文書に取り込んでください(
13745 \family sans
13746 挿入\SpecialChar menuseparator
13747 ファイル\SpecialChar menuseparator
13748 子文書
13749 \family default
13750 ).表フロートの作り方についての詳細は,各パッケージに含まれている
13751 \family typewriter
13752 ws-ijmpc.tex
13753 \family default
13754 または
13755 \family typewriter
13756 ws-ijmpd.tex
13757 \family default
13758 ファイルをご覧ください.
13759 \end_layout
13760
13761 \begin_layout Subsection
13762 原稿を投稿するための準備
13763 \end_layout
13764
13765 \begin_layout Standard
13766 論文を投稿する前には,\SpecialChar LyX
13767 文書を\SpecialChar LaTeX
13768 ファイルに書き出し(
13769 \family sans
13770 ファイル\SpecialChar menuseparator
13771 書き出し\SpecialChar menuseparator
13772 \SpecialChar LaTeX
13773
13774 \family default
13775 )
13776 \begin_inset Foot
13777 status open
13778
13779 \begin_layout Plain Layout
13780 実は,\SpecialChar LaTeX
13781  (plain)とpdflatexとの間で選択ができます.論文を準備するのにpdflatexを使用しようとするのであれば,取り込んである画像がPDF形式に
13782 変換され,pdflatexで使用できるように,pdflatexオプションを指定しなくてはなりません.
13783 \end_layout
13784
13785 \end_inset
13786
13787 ,その
13788 \family typewriter
13789 .tex
13790 \family default
13791 ファイルに以下の変更を加える必要があります.
13792 \end_layout
13793
13794 \begin_layout Enumerate
13795
13796 \family typewriter
13797
13798 \backslash
13799 documentclass
13800 \family default
13801 コマンドより前にあるコメント行を削除する.
13802 \end_layout
13803
13804 \begin_layout Enumerate
13805 自身で明示的に\SpecialChar LaTeX
13806 プリアンブルに置いたコマンドを除き,
13807 \family typewriter
13808
13809 \backslash
13810 makeatletter
13811 \family default
13812 コマンドと
13813 \family typewriter
13814
13815 \backslash
13816 makeatother
13817 \family default
13818 コマンドの間にあるものをすべて削除する.
13819 \end_layout
13820
13821 \begin_layout Standard
13822 こうして修正を加えた
13823 \family typewriter
13824 .tex
13825 \family default
13826 ファイルを保存し,必要な回数\SpecialChar LaTeX
13827 で処理してください.それによって得られた
13828 \family typewriter
13829 .dvi
13830 \family default
13831 文書も確認された方がよろしいでしょう.
13832 \end_layout
13833
13834 \begin_layout Subsection
13835 \SpecialChar TeX
13836 コードの使用
13837 \end_layout
13838
13839 \begin_layout Standard
13840 \SpecialChar TeX
13841 コードを使用するのは,2つのコマンドに限られ,これらは文書の最初に置かれなくてはなりません.論文をひな型
13842 \family typewriter
13843 ijmpc.lyx
13844 \family default
13845 または
13846 \family typewriter
13847 ijmpd.lyx
13848 \family default
13849 を使用して書き始めた場合には,これら必要な\SpecialChar TeX
13850 コードは,すでに書き込まれています.通常,これらを削除する必要はありません.2つのうち1番めの\SpecialChar TeX
13851 コードのみが,奇数ページ
13852 および偶数ページの上部に印字する情報(それぞれ著者名と論文の短縮タイトル)を指定するために,修正する必要があります.この\SpecialChar TeX
13853 コードは,
13854 \family typewriter
13855
13856 \backslash
13857 markboth{著者名}{論文の短縮タイトル}
13858 \family default
13859 という形である必要があります.
13860 \end_layout
13861
13862 \begin_layout Section
13863 iopart
13864 \end_layout
13865
13866 \begin_layout Standard
13867
13868 \noun on
13869 Uwe Stöhr
13870 \noun default
13871
13872 \end_layout
13873
13874 \begin_layout Subsection
13875 概要
13876 \end_layout
13877
13878 \begin_layout Standard
13879 iopartパッケージは,Institute of Physics(イギリス物理学会)発行の学術誌へ電子的に投稿する原稿を作成するための文書クラスを提供していま
13880 す.iopartクラスを使用した論文作成方法の著者用説明書は,ウェブサイト
13881 \begin_inset Flex URL
13882 status collapsed
13883
13884 \begin_layout Plain Layout
13885
13886 ftp://ftp.iop.org/pub/journals/latex2e
13887 \end_layout
13888
13889 \end_inset
13890
13891 からiopartパッケージとともにダウンロード可能です.
13892 \end_layout
13893
13894 \begin_layout Subsection
13895 論文を書く
13896 \end_layout
13897
13898 \begin_layout Standard
13899 論文を書くもっとも簡単な方法は,\SpecialChar LyX
13900 の用例ファイルフォルダにある
13901 \emph on
13902 IOP-article.lyx
13903 \emph default
13904 を土台にすることです.このファイルを開き,新しい名前で保存して,書き始めてください.この用例ファイルは,特定の環境の使用法についても説明しています.もっとも重要
13905 な助言として,以下の点にご注意ください.
13906 \end_layout
13907
13908 \begin_layout Itemize
13909 文書がPDF・PS・DVIにコンパイルできるようにするためには,文書設定の
13910 \family sans
13911 数式オプション
13912 \family default
13913 で,二つの
13914 \family sans
13915 AMS mathパッケージを使う
13916 \family default
13917 関連オプションが有効になっていないことを確認してください!
13918 \end_layout
13919
13920 \begin_layout Itemize
13921 タイトル環境の選択如何によって,論文の種類が定義されます.種類毎に以下の環境をタイトルに使用してください.
13922 \end_layout
13923
13924 \begin_deeper
13925 \begin_layout Itemize
13926 論文用には
13927 \family sans
13928 タイトル
13929 \end_layout
13930
13931 \begin_layout Itemize
13932 Review用には
13933 \family sans
13934 Review
13935 \end_layout
13936
13937 \begin_layout Itemize
13938 Topical review用には
13939 \family sans
13940 Topical
13941 \end_layout
13942
13943 \begin_layout Itemize
13944 Comment用には
13945 \family sans
13946 Comment
13947 \end_layout
13948
13949 \begin_layout Itemize
13950 Note用には
13951 \family sans
13952 注釈
13953 \end_layout
13954
13955 \begin_layout Itemize
13956 論文用には
13957 \family sans
13958 Paper
13959 \family default
13960 (タイトルと同じ)
13961 \end_layout
13962
13963 \begin_layout Itemize
13964 Preliminary communication用には
13965 \family sans
13966 Prelim
13967 \end_layout
13968
13969 \begin_layout Itemize
13970 Rapid communication用には
13971 \family sans
13972 Rapid
13973 \end_layout
13974
13975 \begin_layout Itemize
13976 編集者へのLetterには
13977 \family sans
13978 書簡
13979 \end_layout
13980
13981 \end_deeper
13982 \begin_layout Itemize
13983
13984 \family sans
13985 書簡
13986 \family default
13987 以外のタイトル環境には,すべて短縮タイトルをつけることもできます.
13988 \end_layout
13989
13990 \begin_layout Itemize
13991 \SpecialChar LyX
13992 では直接にサポートされていませんが,一般的なタイトル環境として
13993 \family sans
13994 Article
13995 \family default
13996 があります.執筆する文書が,他のタイトル型にそぐわない場合には,\SpecialChar TeX
13997 コードでこれを指定することができます.
13998 \end_layout
13999
14000 \begin_layout Standard
14001 特別な表や数式組版に関するヒントなど,詳しい情報については,IOP著者用ガイドラインを参照してください.
14002 \end_layout
14003
14004 \begin_layout Section
14005 Kluwer
14006 \end_layout
14007
14008 \begin_layout Standard
14009
14010 \noun on
14011 Panayotis Papasotiriou
14012 \noun default
14013
14014 \end_layout
14015
14016 \begin_layout Subsection
14017 概要
14018 \end_layout
14019
14020 \begin_layout Standard
14021 Kluwerパッケージは,Kluwer Academic Publishers社が発行する学術誌への電子投稿を可能にするために,同社が作成したマクロ集です.同社
14022 の発行誌のうち,(少なくとも私の専門内で)もっともよく知られているものは,
14023 \emph on
14024 Astrophysics and Space Science
14025 \emph default
14026 (『宇宙物理学と宇宙科学』)と
14027 \emph on
14028 Solar Physics
14029 \emph default
14030 (『太陽系物理学』)ですが,他にも多くの学術誌があります(
14031 \begin_inset Flex URL
14032 status collapsed
14033
14034 \begin_layout Plain Layout
14035
14036 http://www.wkap.nl/jrnllist.htm/JRNLHOME
14037 \end_layout
14038
14039 \end_inset
14040
14041 に全覧があります).Kluwerパッケージは,
14042 \begin_inset Flex URL
14043 status collapsed
14044
14045 \begin_layout Plain Layout
14046
14047 http://www.wkap.nl/kaphtml.htm/STYLEFILES
14048 \end_layout
14049
14050 \end_inset
14051
14052 からダウンロードできます.完全なユーザーの手引きも同パッケージ内に収録されています(個別にダウンロードすることも可能です).
14053 \end_layout
14054
14055 \begin_layout Standard
14056 \SpecialChar LyX
14057 は,このパッケージの機能の多くをサポートしていますが,すべてではありません.しかし,\SpecialChar TeX
14058 コードを必要とするのは,パッケージ中のいくつかの「変わった」コマンドだけにな
14059 りました(
14060 \begin_inset CommandInset ref
14061 LatexCommand ref
14062 reference "subsec:kluwer_peculiarities"
14063
14064 \end_inset
14065
14066 参照).最近,私は\SpecialChar LyX
14067 を使って書いた論文を
14068 \emph on
14069 Astrophysics and Space Science
14070 \emph default
14071 に投稿しましたが,何らの問題も発生しませんでした.
14072 \end_layout
14073
14074 \begin_layout Subsection
14075 論文を書く
14076 \end_layout
14077
14078 \begin_layout Standard
14079 論文を書き始めるには,ひな型ファイルKluwerを使うのが最も簡単です.
14080 \family sans
14081 ファイル\SpecialChar menuseparator
14082 新規(ひな型使用)
14083 \family default
14084 をクリックし,ひな型
14085 \family typewriter
14086 kluwer.lyx
14087 \family default
14088 を選択してください.これは,原稿に通常必要となる各フィールドと,それらの使用法が短く書かれただけの,(ほとんど)何も書かれていない文書です.他のテンプレートと同
14089 様に,既存の文章を(括弧
14090 \family typewriter
14091 <>
14092 \family default
14093 を含む)正しい情報で上書きしてください.
14094 \end_layout
14095
14096 \begin_layout Subsection
14097 投稿の準備
14098 \end_layout
14099
14100 \begin_layout Standard
14101 AAS\SpecialChar TeX
14102 パッケージと同様,論文を投稿する前に,以下のような「後処理」を行う必要があります.
14103 \end_layout
14104
14105 \begin_layout Enumerate
14106
14107 \family sans
14108 ファイル\SpecialChar menuseparator
14109 書き出し\SpecialChar menuseparator
14110 LateX
14111 \family default
14112 をクリックして,論文を\SpecialChar LaTeX
14113 ファイルに書き出す.
14114 \end_layout
14115
14116 \begin_layout Enumerate
14117 生成された
14118 \family typewriter
14119 .tex
14120 \family default
14121 ファイルに,テキストエディタを使用して,以下のような変更を加える.
14122 \end_layout
14123
14124 \begin_deeper
14125 \begin_layout Enumerate
14126
14127 \family typewriter
14128
14129 \backslash
14130 documentclass
14131 \family default
14132 コマンドより前にあるコメント行を削除する.
14133 \end_layout
14134
14135 \begin_layout Enumerate
14136 意図的に\SpecialChar LaTeX
14137 プリアンブルに加えたコマンドを除き,
14138 \family typewriter
14139
14140 \backslash
14141 makeatletter
14142 \family default
14143 から 
14144 \family typewriter
14145
14146 \backslash
14147 makeatother
14148 \family default
14149 の間にあるものを,これらのコマンドも含め,すべて削除する.
14150 \end_layout
14151
14152 \begin_layout Standard
14153 変更した
14154 \family typewriter
14155 .tex
14156 \family default
14157 ファイルを保存する.
14158 \end_layout
14159
14160 \end_deeper
14161 \begin_layout Enumerate
14162 この
14163 \family typewriter
14164 .tex
14165 \family default
14166 ファイルを必要な回数(通常3回以内)だけ\SpecialChar LaTeX
14167 にかける.
14168 \end_layout
14169
14170 \begin_layout Enumerate
14171 生成された
14172 \family typewriter
14173 .dvi
14174 \family default
14175 ファイルを
14176 \family sans
14177 xdvi
14178 \family default
14179 などを使って開き,問題がないか確認する(間違いをしていない限り問題ないはずです).
14180 \end_layout
14181
14182 \begin_layout Subsection
14183 Kluwerパッケージの「風変わり」な特徴
14184 \begin_inset CommandInset label
14185 LatexCommand label
14186 name "subsec:kluwer_peculiarities"
14187
14188 \end_inset
14189
14190
14191 \end_layout
14192
14193 \begin_layout Standard
14194 Kluwerパッケージには,以下のような「風変わりな」特徴があります.
14195 \end_layout
14196
14197 \begin_layout Enumerate
14198 複数の論文を1つの\SpecialChar LaTeX
14199 ファイルへ入れることができます
14200 \begin_inset Foot
14201 status collapsed
14202
14203 \begin_layout Plain Layout
14204 わざわざこんなことをする必要はないでしょう.
14205 \end_layout
14206
14207 \end_inset
14208
14209 .各論文は,「article」環境で囲まなくてはなりません.残念ながら,1つの論文だけを書く場合でも,この環境を省略することはできません.つまり,各論文は
14210 \family typewriter
14211
14212 \backslash
14213 begin{article}
14214 \family default
14215 で始まり,
14216 \family typewriter
14217
14218 \backslash
14219 end{article}
14220 \family default
14221 で終わります.この環境を\SpecialChar LyX
14222 に実装することも可能でしたが,醜い上に初心者を混乱させる可能性があるので,実装することはしませんでした.したがって,これらの命令(
14223 \family typewriter
14224
14225 \backslash
14226 begin{article}
14227 \family default
14228
14229 \family typewriter
14230
14231 \backslash
14232 end{article}
14233 \family default
14234 )は,直接本文中に入力して,\SpecialChar LaTeX
14235 コード(「\SpecialChar TeX
14236 コード」のことです)としてマークする必要があります.
14237 \end_layout
14238
14239 \begin_layout Enumerate
14240 論文の冒頭に置く情報(タイトル・サブタイトル・著者名・所属・ヘッダ用タイトル・ヘッダ用著者名・概要・キーワード)は,「opening」とよばれる環境に入れなくて
14241 はなりません.これは\SpecialChar LyX
14242 では実装されていませんので,タイトルやサブタイトルなどは,2つの\SpecialChar TeX
14243 コード行(
14244 \family typewriter
14245
14246 \backslash
14247 begin{opening}
14248 \family default
14249 および
14250 \family typewriter
14251
14252 \backslash
14253 end{opening}
14254 \family default
14255 )の間に入れる必要があります.
14256 \end_layout
14257
14258 \begin_layout Enumerate
14259 ユーザーの手引きによれば,書誌情報の各項目のラベルは,
14260 \family typewriter
14261
14262 \begin_inset Newline newline
14263 \end_inset
14264
14265
14266 \backslash
14267 protect
14268 \backslash
14269 citeauthoryear{
14270 \family default
14271 \emph on
14272 著者名
14273 \family typewriter
14274 \emph default
14275 }{
14276 \family default
14277 \emph on
14278
14279 \family typewriter
14280 \emph default
14281 }
14282 \family default
14283  と書く必要があります.
14284 \end_layout
14285
14286 \begin_layout Standard
14287 ひな型
14288 \family typewriter
14289 kluwer.lyx
14290 \family default
14291 は,これらの風変わりな点がすべて考慮されています.このひな型を使用して,論文を新たに書きはじめる場合には,特別なことを行う必要はありません.以下の点にのみ留意し
14292 てください.
14293 \end_layout
14294
14295 \begin_layout Enumerate
14296 ひな型にある\SpecialChar TeX
14297 コードを削除しないでください.
14298 \end_layout
14299
14300 \begin_layout Enumerate
14301 新しい書誌情報項目を入力する場合には,ひな型に例示されている書誌情報項目をコピーして,必要に応じて修正してください.
14302 \end_layout
14303
14304 \begin_layout Section
14305 Koma-Script
14306 \end_layout
14307
14308 \begin_layout Standard
14309
14310 \noun on
14311 Bernd Rellermeyer
14312 \noun default
14313
14314 \end_layout
14315
14316 \begin_layout Subsection
14317 概要
14318 \end_layout
14319
14320 \begin_layout Standard
14321 \SpecialChar LyX
14322 の文書クラス
14323 \emph on
14324 article (koma-script)
14325 \emph default
14326
14327 \emph on
14328 report (koma-script)
14329 \emph default
14330
14331 \emph on
14332 book
14333 \emph default
14334  
14335 \emph on
14336 (koma-script)
14337 \emph default
14338
14339 \emph on
14340 letter
14341 \emph default
14342  
14343 \emph on
14344 (koma-script)
14345 \emph default
14346 は,それぞれKoma-Scriptファミリーの\SpecialChar LaTeX
14347 文書クラス
14348 \family typewriter
14349 scrartcl.cls
14350 \family default
14351
14352 \family typewriter
14353 scrreprt.cls
14354 \family default
14355
14356 \family typewriter
14357 scrbook.cls
14358 \family default
14359
14360 \family typewriter
14361 scrlettr.cls
14362 \family default
14363 に対応しています.これらは,標準文書クラス
14364 \family typewriter
14365 article.cls
14366 \family default
14367
14368 \family typewriter
14369 report.cls
14370 \family default
14371
14372 \family typewriter
14373 book.cls
14374 \family default
14375
14376 \family typewriter
14377 letter.cls
14378 \family default
14379 の代替物であり,これらよりも多くの点でヨーロッパに於ける活版印刷の慣例に合致します.
14380 \end_layout
14381
14382 \begin_layout Itemize
14383 標準文字寸法は,
14384 \emph on
14385 article (koma-script)
14386 \emph default
14387
14388 \emph on
14389 report (koma-script)
14390 \emph default
14391
14392 \emph on
14393 book (koma-script)
14394 \emph default
14395 で11pt,
14396 \emph on
14397 letter (koma-script)
14398 \emph default
14399 で12ptです.
14400 \end_layout
14401
14402 \begin_layout Itemize
14403 見出しや箇条書き(記述)環境のラベル,および
14404 \emph on
14405 letter (koma-script)
14406 \emph default
14407 文書クラスの要素の多くでは,ボールド体サンセリフフォントが使われます
14408 \begin_inset Foot
14409 status collapsed
14410
14411 \begin_layout Plain Layout
14412 ボールド体サンセリフフォントには,古いcmフォントと新しいecフォントの間に大きな違いがあり,特に見出しの表示の違いが際立ちます.比較すると,ecボールドサンセ
14413 リフフォントの方が,少し細く見えます.ecフォントを使用する際に「通常の」外観が欲しい場合には,
14414 \shape smallcaps
14415 Walter Schmidt
14416 \shape default
14417 作の\SpecialChar LaTeX
14418 パッケージ
14419 \family typewriter
14420 cmsd.sty
14421 \family default
14422 が役立ちます.
14423 \end_layout
14424
14425 \end_inset
14426
14427 .章見出しの連番は,節見出しの連番と同様に行われ,別行立てで「 Chapter\SpecialChar ldots
14428 」という行がつきません.さらに,多くのオプションによって,見出しの外観を修正するこ
14429 とができます(\SpecialChar LyX
14430 では,
14431 \family sans
14432 文書\SpecialChar menuseparator
14433 設定
14434 \family default
14435 ダイアログの
14436 \family sans
14437 クラスオプション
14438 \family default
14439 フィールドで指定します).これらのオプションの独語での詳細な説明が,Koma-Scriptの取扱説明書
14440 \emph on
14441 scrguide
14442 \emph default
14443 にあります.
14444 \end_layout
14445
14446 \begin_layout Itemize
14447 Koma-Script文書クラスで,印字部分をデザインする主な方法は,
14448 \family sans
14449 BCOR
14450 \family default
14451 オプションまたは
14452 \family sans
14453 DIV
14454 \family default
14455 オプションを使う方法です(\SpecialChar LyX
14456 では,
14457 \family sans
14458 文書\SpecialChar menuseparator
14459 設定
14460 \family default
14461 ダイアログの
14462 \family sans
14463 クラスオプション
14464 \family default
14465 フィールドで指定します).これらのオプションは
14466 \family sans
14467 文書\SpecialChar menuseparator
14468 設定
14469 \family default
14470 ダイアログのオプションと同様に,ページ余白を明示的に変更することができます.これらとその他印字領域オプションのドイツ語での詳細な説明が,Koma-Script取
14471 扱説明書
14472 \emph on
14473 scrguide
14474 \emph default
14475 にあります.
14476 \end_layout
14477
14478 \begin_layout Itemize
14479 Koma-Scriptファミリーの\SpecialChar LaTeX
14480 文書クラスには,多くの追加コマンドが定義されています.それらのうち,\SpecialChar LyX
14481 で意味を持つものは,対応する段落環境として実装されています
14482
14483 \end_layout
14484
14485 \begin_layout Standard
14486 Koma-Scriptファミリーの\SpecialChar LaTeX
14487 文書クラスに関する独語の詳細な説明が,Koma-Script取扱説明書
14488 \emph on
14489 scrguide
14490 \emph default
14491 にあります
14492 \begin_inset Foot
14493 status collapsed
14494
14495 \begin_layout Plain Layout
14496 英語翻訳版の
14497 \emph on
14498 screnggu
14499 \emph default
14500 もありますが,完訳ではありません.
14501 \end_layout
14502
14503 \end_inset
14504
14505 .以下の各節では,\SpecialChar LyX
14506 に関係する側面のみ説明致します.
14507 \end_layout
14508
14509 \begin_layout Subsection
14510 article (koma-script)・report (koma-script)・book (koma-script)
14511 \end_layout
14512
14513 \begin_layout Standard
14514 文書クラス
14515 \emph on
14516 article (koma-script)
14517 \emph default
14518
14519 \emph on
14520 report (koma-script)
14521 \emph default
14522
14523 \emph on
14524 book
14525 \emph default
14526  
14527 \emph on
14528 (koma-script)
14529 \emph default
14530 は,それぞれレイアウトファイル
14531 \family typewriter
14532 scrartcl.layout
14533 \family default
14534
14535 \family typewriter
14536 scrreprt.layou
14537 \family default
14538 t・
14539 \family typewriter
14540 crbook.layout
14541 \family default
14542 によって実装されています.これらは,対応する標準文書クラス
14543 \emph on
14544 article
14545 \emph default
14546
14547 \emph on
14548 report
14549 \emph default
14550
14551 \emph on
14552 book
14553 \emph default
14554 の段落環境を,若干の修正を加えた上ですべて含んでいますが,\SpecialChar LyX
14555 固有の
14556 \family sans
14557 箇条書き(一覧)
14558 \family default
14559 環境は例外であり,同じ機能を持つ新しい
14560 \family sans
14561 ラベリング
14562 \family default
14563 環境で置き換えられています.この
14564 \family sans
14565 ラベリング
14566 \family default
14567 環境以外にも,新しい段落環境が多く追加されています.これらは,
14568 \emph on
14569 letter (koma-script)
14570 \emph default
14571 には含まれていないのでご注意ください.
14572 \end_layout
14573
14574 \begin_layout Itemize
14575
14576 \family sans
14577 部(addpart)
14578 \family default
14579
14580 \family sans
14581 章(addchap)
14582 \family default
14583
14584 \family sans
14585 節(addsec)
14586 \family default
14587 :これらは,それぞれ
14588 \family sans
14589 部*
14590 \family default
14591
14592 \family sans
14593 章*
14594 \family default
14595
14596 \family sans
14597 節*
14598 \family default
14599 と同等の働きをしますが,加えて目次に項目が表示されるようになります.
14600 \family sans
14601 部(addpart)
14602 \family default
14603
14604 \family sans
14605 章(addchap)
14606 \family default
14607 は,
14608 \emph on
14609 article (koma-script)
14610 \emph default
14611 には収録されていません.
14612 \end_layout
14613
14614 \begin_layout Itemize
14615
14616 \family sans
14617 章(addchap*)
14618 \family default
14619
14620 \family sans
14621 節(addsec*)
14622 \family default
14623 :これらは,
14624 \family sans
14625 章(addchap
14626 \family default
14627 )と
14628 \family sans
14629 節(addsec)
14630 \family default
14631 とまったく同等に動作しますが,加えてランニングへッダを取り除きます.
14632 \family sans
14633 章(addchap*)
14634 \family default
14635 は, 
14636 \emph on
14637 article (koma-script)
14638 \emph default
14639 には収録されていません
14640 \begin_inset Foot
14641 status collapsed
14642
14643 \begin_layout Plain Layout
14644
14645 \emph on
14646 book (koma-script)
14647 \emph default
14648
14649 \emph on
14650 report (koma-script)
14651 \emph default
14652 には,
14653 \family typewriter
14654
14655 \backslash
14656 addpart*
14657 \family default
14658 コマンドもありますが,これは
14659 \family sans
14660 Part*
14661 \family default
14662 と同一なので,\SpecialChar LyX
14663 では実装されていません.
14664 \end_layout
14665
14666 \end_inset
14667
14668
14669 \end_layout
14670
14671 \begin_layout Itemize
14672
14673 \family sans
14674 小見出し(minisec)
14675 \family default
14676 :これは文書構造に現れない形で,続く段落の直上に標準文字寸法の見出しを付けます.
14677 \end_layout
14678
14679 \begin_layout Itemize
14680
14681 \family sans
14682 上部キャプション
14683 \family default
14684
14685 \family sans
14686 下部キャプション
14687 \family default
14688 は,ある要素の上部ないし下部にキャプションを配置する際,位置に応じて正しく余白取りを行う特別なキャプションです(組版規則に厳密に従うならば,表キャプションは,つ
14689 ねに表の上に置くべきでしょう).また,クラスオプション
14690 \family typewriter
14691 tablecaptionsabove
14692 \family default
14693 を用いれば,キャプションを指定すると,表には
14694 \family sans
14695 上部キャプション
14696 \family default
14697 が,図には
14698 \family sans
14699 下部キャプション
14700 \family default
14701 が適用されるようになります.これを使用するためには,Koma-Script第2.8q版以上が必要です.
14702 \end_layout
14703
14704 \begin_layout Itemize
14705
14706 \family sans
14707 格言(dictum)
14708 \family default
14709 :これは,章頭などに警句を置くのに用いることができます.オプション引数(
14710 \family sans
14711 挿入\SpecialChar menuseparator
14712 短縮タイトル
14713 \family default
14714 )を用いれば,格言の作者を入れることができます.格言と作者の間は,線で区切られます.これを使用するためには,Koma-Script第2.8q版以上が必要です.
14715 \family sans
14716 格言(dictum)
14717 \family default
14718 は,
14719 \emph on
14720 article (koma-script)
14721 \emph default
14722 には収録されていません.
14723 \end_layout
14724
14725 \begin_layout Standard
14726 以下の各環境は,標準の
14727 \family sans
14728 タイトル
14729 \family default
14730
14731 \family sans
14732 著者
14733 \family default
14734
14735 \family sans
14736 日付
14737 \family default
14738 とともに文書のタイトル領域を形成します.これらは,最初の「通常の」段落よりも前に置かれる必要があります
14739 \begin_inset Foot
14740 status collapsed
14741
14742 \begin_layout Plain Layout
14743 つまり,対応する\SpecialChar LaTeX
14744 コマンドが
14745 \family typewriter
14746
14747 \backslash
14748 maketitle
14749 \family default
14750 コマンドよりも前に現れなくてはなりません.
14751 \end_layout
14752
14753 \end_inset
14754
14755 .これらの環境が2度以上使用された場合には,後に使用されたものが前のものを上書きします.つまり最後に使用したもののみが有効になります.しかしながら,
14756 \family sans
14757 タイトル
14758 \family default
14759
14760 \family sans
14761 著者
14762 \family default
14763
14764 \family sans
14765 日付
14766 \family default
14767 のような異なる環境の順序を変更しても,生成された文書には何の効果も生じません.
14768 \end_layout
14769
14770 \begin_layout Itemize
14771
14772 \family sans
14773 主題
14774 \family default
14775 :通常のタイトル部(
14776 \family sans
14777 タイトル
14778 \family default
14779
14780 \family sans
14781 著者
14782 \family default
14783
14784 \family sans
14785 日付
14786 \family default
14787 )の上に,文書の主題用の中央揃えの段落を生成します.
14788 \end_layout
14789
14790 \begin_layout Itemize
14791
14792 \family sans
14793 出版社
14794 \family default
14795 :通常のタイトル部(
14796 \family sans
14797 タイトル
14798 \family default
14799
14800 \family sans
14801 著者
14802 \family default
14803
14804 \family sans
14805 日付
14806 \family default
14807 )の下に,出版社名用の中央揃えの段落を生成します.
14808 \end_layout
14809
14810 \begin_layout Itemize
14811
14812 \family sans
14813 献呈
14814 \family default
14815
14816 \emph on
14817 report (koma-script)
14818 \emph default
14819
14820 \emph on
14821 book (koma-script)
14822 \emph default
14823 では,タイトル頁の次に,献辞用の中央揃えの段落を独立した頁として生成します.
14824 \emph on
14825 article (koma-script)
14826 \emph default
14827 の場合は,通常のタイトル部(
14828 \family sans
14829 タイトル
14830 \family default
14831
14832 \family sans
14833 著者
14834 \family default
14835
14836 \family sans
14837 日付
14838 \family default
14839 )の下に献辞用の中央揃えの段落を生成します.
14840 \end_layout
14841
14842 \begin_layout Itemize
14843
14844 \family sans
14845 タイトル頭書き
14846 \family default
14847 :通常のタイトル部(
14848 \family sans
14849 タイトル
14850 \family default
14851
14852 \family sans
14853 著者
14854 \family default
14855
14856 \family sans
14857 日付
14858 \family default
14859 )の上に,文書頭書き用の左揃えの段落を生成します.
14860 \end_layout
14861
14862 \begin_layout Itemize
14863
14864 \family sans
14865 扉裏上部
14866 \family default
14867
14868 \emph on
14869 report (koma-script)
14870 \emph default
14871 や 
14872 \emph on
14873 book (koma-script)
14874 \emph default
14875 の両面印刷において,扉裏上部に左揃え段落を生成します.片面印刷や,
14876 \emph on
14877 article (koma-script)
14878 \emph default
14879 では何の効果も生じません.
14880 \end_layout
14881
14882 \begin_layout Itemize
14883
14884 \family sans
14885 扉裏下部
14886 \family default
14887
14888 \emph on
14889 report (koma-script)
14890 \emph default
14891 や 
14892 \emph on
14893 book (koma-script)
14894 \emph default
14895 の両面印刷において,扉裏下部に左揃え段落を生成します.片面印刷や,
14896 \emph on
14897 article (koma-script)
14898 \emph default
14899 では何の効果も生じません.
14900 \end_layout
14901
14902 \begin_layout Itemize
14903
14904 \family sans
14905 追加タイトル
14906 \family default
14907 :実際の文書の前に,整形を行わない段落から成る,特殊な「汚い」ページを生成します.
14908 \end_layout
14909
14910 \begin_layout Standard
14911 文書クラス
14912 \emph on
14913 article (koma-script)
14914 \emph default
14915
14916 \emph on
14917 report (koma-script)
14918 \emph default
14919
14920 \emph on
14921 book (koma-script)
14922 \emph default
14923 の 各レイアウトファイルは,
14924 \family typewriter
14925 scrmacros.inc
14926 \family default
14927 ファイルを読み込みます.このファイルは,ユーザ環境を定義する場所として想定されています.s
14928 \family typewriter
14929 crmacros.inc
14930 \family default
14931 を,個人用レイアウトディレクトリにコピーして編集してください!
14932 \end_layout
14933
14934 \begin_layout Subsection
14935 letter (koma-script)
14936 \end_layout
14937
14938 \begin_layout Standard
14939 \noindent
14940 文書クラス
14941 \emph on
14942 letter (koma-script)
14943 \emph default
14944 は,レイアウトファイル 
14945 \family typewriter
14946 scrlettr.layout
14947 \family default
14948 で実装されています.このレイアウトファイルには,対応する標準文書クラス
14949 \emph on
14950 letter
14951 \emph default
14952 の全段落環境が,部分的に変更を加えた形で収録されていますが,\SpecialChar LyX
14953 固有環境の
14954 \family sans
14955 \SpecialChar LyX
14956 コード
14957 \family default
14958
14959 \family sans
14960 コメント
14961 \family default
14962
14963 \family sans
14964 箇条書き(一覧
14965 \family default
14966 )は,新しく
14967 \family sans
14968 ラベリング
14969 \family default
14970 環境に置き換えられています.それ以外にも,標準文書クラスとは異なり,標準環境の
14971 \family sans
14972 \SpecialChar LaTeX
14973
14974 \family default
14975
14976 \family sans
14977 引用(字下げあり)
14978 \family default
14979
14980 \family sans
14981 引用(字下げなし)
14982 \family default
14983
14984 \family sans
14985 詩句
14986 \family default
14987 が収録されています.さらに,新しいletter固有環境がたくさん追加されています.
14988 \end_layout
14989
14990 \begin_layout Standard
14991 この文書クラスで作成した書簡の外観は,様々な\SpecialChar LaTeX
14992 コマンドを\SpecialChar LaTeX
14993 プリアンブルに置くことで制御することができます
14994 \begin_inset Foot
14995 status collapsed
14996
14997 \begin_layout Plain Layout
14998 例えば,名前と住所の入った書簡ヘッダの標準的外観は,きわめて頑固です.「普通の」へッダは,プリアンブル中に以下のようなコマンドを入れることで生成することができま
14999 す.
15000 \end_layout
15001
15002 \begin_layout LyX-Code
15003
15004 \backslash
15005 firsthead{
15006 \backslash
15007 parbox[b]{
15008 \backslash
15009 textwidth}
15010 \end_layout
15011
15012 \begin_layout LyX-Code
15013   {
15014 \backslash
15015 ignorespaces 
15016 \backslash
15017 fromname
15018 \backslash
15019
15020 \backslash
15021  
15022 \backslash
15023 ignorespaces 
15024 \backslash
15025 fromaddress}} 
15026 \end_layout
15027
15028 \begin_layout LyX-Code
15029
15030 \backslash
15031 nexthead{
15032 \backslash
15033 parbox[b]{
15034 \backslash
15035 textwidth}
15036 \end_layout
15037
15038 \begin_layout LyX-Code
15039   {
15040 \backslash
15041 ignorespaces 
15042 \backslash
15043 fromname 
15044 \backslash
15045 hfill 
15046 \backslash
15047 ignorespaces 
15048 \backslash
15049 pagename
15050 \backslash
15051
15052 \end_layout
15053
15054 \begin_layout LyX-Code
15055
15056 \backslash
15057 thepage}}
15058 \end_layout
15059
15060 \end_inset
15061
15062 .これらの\SpecialChar LaTeX
15063 コマンドのドイツ語での詳細な説明は,Koma-Scriptの取扱説明書
15064 \emph on
15065 scrguide
15066 \emph default
15067 にあります.この方法で,書簡の著者は,個人用書簡レイアウトを作ることができます.
15068 \end_layout
15069
15070 \begin_layout Standard
15071
15072 \family sans
15073 書簡
15074 \family default
15075 環境および
15076 \family sans
15077 頭語
15078 \family default
15079 環境は,書簡の冒頭部を定義するもので,すべての書簡で使用しなくてはなりません.\SpecialChar LyX
15080 文書クラスでは,これらの環境を強調するために,左余白にそれぞれ
15081 \shape italic
15082 L
15083 \shape default
15084
15085 \shape italic
15086 O
15087 \shape default
15088 という文字が表示されます.同一ファイル中には,複数の書簡を書くことができます.
15089 \family sans
15090 頭語
15091 \family default
15092 環境は,同じ受取人への書簡を新しく書き出すものであり,
15093 \family sans
15094 書簡
15095 \family default
15096 環境は,新しい受取人を生成するものです.
15097 \family sans
15098 結語
15099 \family default
15100
15101 \family sans
15102 PS
15103 \family default
15104
15105 \family sans
15106 CC
15107 \family default
15108
15109 \family sans
15110 Encl
15111 \family default
15112 は,通常の段落環境なので,同一の書簡中でも何度も使用することができます.
15113 \end_layout
15114
15115 \begin_layout Itemize
15116
15117 \family sans
15118 書簡
15119 \family default
15120 :受取人のための段落をつくり,暗黙に書簡の開始を定義します.
15121 \end_layout
15122
15123 \begin_layout Itemize
15124
15125 \family sans
15126 頭語
15127 \family default
15128 :敬称のための段落をつくり,暗黙に新しい書簡を開始します.
15129 \end_layout
15130
15131 \begin_layout Itemize
15132
15133 \family sans
15134 結語
15135 \family default
15136 :結語のための段落をつくります.
15137 \end_layout
15138
15139 \begin_layout Itemize
15140
15141 \family sans
15142 PS
15143 \family default
15144 :追伸のための段落をつくります.
15145 \end_layout
15146
15147 \begin_layout Itemize
15148
15149 \family sans
15150 CC
15151 \family default
15152 :同報一覧のための段落をつくります.
15153 \end_layout
15154
15155 \begin_layout Itemize
15156
15157 \family sans
15158 Encl
15159 \family default
15160 :同封物のための段落をつくります.
15161 \end_layout
15162
15163 \begin_layout Standard
15164
15165 \family sans
15166 名前
15167 \family default
15168
15169 \family sans
15170 署名
15171 \family default
15172
15173 \family sans
15174 住所
15175 \family default
15176
15177 \family sans
15178 電話
15179 \family default
15180
15181 \family sans
15182 場所(Place
15183 \family default
15184 )・
15185 \family sans
15186 返送先住所
15187 \family default
15188
15189 \family sans
15190 配送手段(Specialmail)
15191 \family default
15192
15193 \family sans
15194 場所
15195 \family default
15196
15197 \family sans
15198 タイトル
15199 \family default
15200
15201 \family sans
15202 主題
15203 \family default
15204 は,情報入力を促すラベルの付いた入力環境で,文書クラスが適切な処理を行います
15205 \begin_inset Foot
15206 status collapsed
15207
15208 \begin_layout Plain Layout
15209 上述の
15210 \family sans
15211 書簡
15212 \family default
15213
15214 \family sans
15215 頭語
15216 \family default
15217 が,これらのような入力環境でないのは,矛盾しているように感じられるかもしれません.しかしながら,これら2つの環境は特別の意味を持っているために,これらは左余白に
15218 一文字をマークした通常の段落環境として実装しました.さらに,
15219 \family sans
15220 頭語
15221 \family default
15222 環境と
15223 \family sans
15224 結語
15225 \family default
15226 環境が著しく異なって見えると対称性が損なわれることになるのも理由の一つです.
15227 \end_layout
15228
15229 \end_inset
15230
15231 .これらの環境は,対応する
15232 \family sans
15233 頭語
15234 \family default
15235 環境の前に置く必要があります.
15236 \end_layout
15237
15238 \begin_layout Standard
15239 生成された書簡の実際の外観は,特定の環境の使い方だけではなく,他の要素にも依存するため,これらの環境をWYSIWYGとして実装することには,あまり意味がありませ
15240 ん.たとえば,
15241 \family sans
15242 署名
15243 \family default
15244 環境で入力した署名は,標準的な挙動では,同じ書簡に
15245 \family sans
15246 結語
15247 \family default
15248 環境も使用されているときのみ,書簡の出力に現れます.
15249 \family sans
15250 電話
15251 \family default
15252 環境に入力された値は,標準的な挙動では,書簡の出力には全く表示されません.書簡のヘッダを自由にデザインできることは,前出の脚注で示してあります.
15253 \end_layout
15254
15255 \begin_layout Standard
15256 入力環境は,空の段落として使うことができます.これは,たとえば
15257 \family sans
15258 署名
15259 \family default
15260 環境の場合に有効です.
15261 \family sans
15262 署名
15263 \family default
15264 環境を全く使用しない場合は,標準的な挙動では,
15265 \family sans
15266 名前
15267 \family default
15268 環境の値が署名として使用されますが,空の
15269 \family sans
15270 署名
15271 \family default
15272 環境を作成しておくと,署名の値は無定義となりません.
15273 \end_layout
15274
15275 \begin_layout Standard
15276 入力環境を使用すると,個人データ(名前や住所など)が既に入力された入力環境と,後から入力するデータの入力環境を備えた,書簡のひな型を作成することができます.
15277 \end_layout
15278
15279 \begin_layout Itemize
15280
15281 \family sans
15282 名前
15283 \family default
15284 :送り主の名前.標準的な挙動では,書簡のヘッダ部にスモールキャップ体の中央揃えの段落として表示されます.
15285 \end_layout
15286
15287 \begin_layout Itemize
15288
15289 \family sans
15290 署名
15291 \family default
15292 :送り主の署名.標準的な挙動では,
15293 \family sans
15294 結語
15295 \family default
15296 環境の下に表示されます.
15297 \family sans
15298 署名
15299 \family default
15300 環境を使用しないと,代わりに
15301 \family sans
15302 名前
15303 \family default
15304 環境の値が表示されます.
15305 \end_layout
15306
15307 \begin_layout Itemize
15308
15309 \family sans
15310 住所
15311 \family default
15312 :送り主の住所.標準的な挙動では,書簡ヘッダの送り主の名前の下に中央揃えの段落として表示されます.
15313 \end_layout
15314
15315 \begin_layout Itemize
15316
15317 \family sans
15318 電話
15319 \family default
15320 :送り主の電話番号.標準的な挙動では,\SpecialChar LaTeX
15321 変数
15322 \family typewriter
15323
15324 \backslash
15325 telephonenum
15326 \family default
15327 を設定するだけです.
15328 \end_layout
15329
15330 \begin_layout Itemize
15331
15332 \family sans
15333 場所(Place)
15334 \family default
15335 :書簡を書いた場所.
15336 \end_layout
15337
15338 \begin_layout Itemize
15339
15340 \family sans
15341 日付
15342 \family default
15343 :書簡を書いた日付.
15344 \family sans
15345 場所(Place)
15346 \family default
15347
15348 \family sans
15349 日付
15350 \family default
15351 は,標準的な挙動では,受取人フィールドの下に,単一の右揃え行として場所と日付を生成します.空の
15352 \family sans
15353 日付
15354 \family default
15355 環境を作成しておくと,
15356 \family sans
15357 場所(Place)
15358 \family default
15359 の値如何に関わらず,場所も日付も表示されません.
15360 \family sans
15361 日付
15362 \family default
15363 環境を使用しない場合には,書簡を出力した日付が使用されます.
15364 \end_layout
15365
15366 \begin_layout Itemize
15367
15368 \family sans
15369 返送先住所
15370 \family default
15371 :送り主の返送先住所.標準的な挙動では,受取人の上に小文字のサンセリフ体フォントで表示されます.
15372 \end_layout
15373
15374 \begin_layout Itemize
15375
15376 \family sans
15377 特別便
15378 \family default
15379 :特別便の情報.標準的な挙動では,受取人フィールドの上かつ返送先住所の下に,下線付きで表示されます.
15380 \end_layout
15381
15382 \begin_layout Itemize
15383
15384 \family sans
15385 場所
15386 \family default
15387 :追加情報.標準的な挙動では,受取人フィールドの下の右側に表示されます.
15388 \end_layout
15389
15390 \begin_layout Itemize
15391
15392 \family sans
15393 タイトル
15394 \family default
15395 :書簡の題名.標準的な挙動では,主題の上に大きなボールド体サンセリフフォントで表示されます.
15396 \end_layout
15397
15398 \begin_layout Itemize
15399
15400 \family sans
15401 主題
15402 \family default
15403 :書簡の主題.標準的な挙動では,
15404 \family sans
15405 頭語
15406 \family default
15407 環境の上にボールド体で表示されます.
15408 \end_layout
15409
15410 \begin_layout Standard
15411
15412 \family sans
15413 Yourref・Yourmail・Myref・顧客・インボイス
15414 \family default
15415 といった環境は,
15416 \family sans
15417 タイトル
15418 \family default
15419 行の上に「Your ref.」・「Your letter of」・「Our ref.」・「Customer no.」・「Invoice no.」・「Date」といったフ
15420 ィールド行を持つ,ビジネス書簡を作成します.日付フィールドには,
15421 \family sans
15422 日付
15423 \family default
15424 環境の値が使用されます.しかしながら,これらの「ビジネス書簡環境」の一つを使用した場合には,
15425 \family sans
15426 場所(Place)
15427 \family default
15428 の値は書簡には表示されなくなり,\SpecialChar LaTeX
15429 変数
15430 \family typewriter
15431
15432 \backslash
15433 fromplace
15434 \family default
15435 が設定させるだけになります.通常時に,受取人フィールドの下に右揃えで出力される場所と日付の出力は,抑制されます.これらのビジネス環境は,ラベル付きの入力環境とし
15436 て実装されており,対応する
15437 \family sans
15438 頭語
15439 \family default
15440 環境よりも前に置く必要があります.
15441 \end_layout
15442
15443 \begin_layout Itemize
15444
15445 \family sans
15446 Yourref
15447 \family default
15448 : Your ref.
15449 \end_layout
15450
15451 \begin_layout Itemize
15452
15453 \family sans
15454 Yourmail
15455 \family default
15456 : Your letter of.
15457 \end_layout
15458
15459 \begin_layout Itemize
15460
15461 \family sans
15462 Myref
15463 \family default
15464 : Our ref.
15465 \end_layout
15466
15467 \begin_layout Itemize
15468
15469 \family sans
15470 Customer
15471 \family default
15472 : Customer no.
15473 \end_layout
15474
15475 \begin_layout Itemize
15476
15477 \family sans
15478 Invoice
15479 \family default
15480 : Invoice no.
15481 \end_layout
15482
15483 \begin_layout Subsection
15484 新しいletterクラス:letter (koma-script v.2)
15485 \end_layout
15486
15487 \begin_layout Standard
15488 by 
15489 \noun on
15490 Jürgen Spitzmüller
15491 \begin_inset VSpace medskip
15492 \end_inset
15493
15494
15495 \end_layout
15496
15497 \begin_layout Standard
15498 \noindent
15499 Koma-Script第2.8版では,新しいletterクラス
15500 \family typewriter
15501 scrlttr2
15502 \family default
15503 が導入されたため,
15504 \family typewriter
15505 scrlettr
15506 \family default
15507 は廃止されてサポート対象外となりました.これは—\SpecialChar LaTeX
15508 側で—全く新しいインターフェイスを持っており,旧クラスとは互換性がありません.したがって,\SpecialChar LyX
15509 は両者をサポートしてい
15510 ますが,新しい方のクラスを使用することを推奨します.
15511 \end_layout
15512
15513 \begin_layout Standard
15514 このクラスは,
15515 \emph on
15516 letter (koma-script)
15517 \emph default
15518 と同一の機能に加えて,新しい機能をいくつかサポートしています.基本となる項目は,
15519 \family sans
15520 住所
15521 \family default
15522 (受取人の住所,旧レイアウトの
15523 \family sans
15524 書簡
15525 \family default
15526 と同じ)・
15527 \family sans
15528 頭語
15529 \family default
15530
15531 \family sans
15532 結語
15533 \family default
15534 です.
15535 \family sans
15536 次の住所
15537 \family default
15538 は別の書簡を新しく開始します(つまり一文書あたり複数の書簡を書くことができます).新しく付け加えられた項目は,送り主の
15539 \family sans
15540 電子メール
15541 \family default
15542
15543 \family sans
15544 URL
15545 \family default
15546
15547 \family sans
15548 ファックス
15549 \family default
15550
15551 \family sans
15552 銀行
15553 \family default
15554 ,およびヘッダに(
15555 \family sans
15556 挿入\SpecialChar menuseparator
15557
15558 \family default
15559 で)
15560 \family sans
15561 ロゴ
15562 \family default
15563 を入れることができるようになった点です.
15564 \end_layout
15565
15566 \begin_layout Standard
15567 しかしながら,もっとも大きな改善は,書簡のレイアウトを,ほとんどどんなニーズにも合わせて設定できるようになった点でしょう.これはプリアンブルか,クラスオプション
15568 として読み込まれる特別なスタイルファイル(「レタークラスオプション」,拡張子
15569 \family typewriter
15570 *.lco
15571 \family default
15572 )によって設定することができます
15573 \begin_inset Foot
15574 status collapsed
15575
15576 \begin_layout Plain Layout
15577 KOMAパッケージには,既定の
15578 \family typewriter
15579 *.lco
15580 \family default
15581 ファイルがいくつか収録されています.たとえば,ドイツの組版規則に則った
15582 \family typewriter
15583 DIN.lco
15584 \family default
15585 や,旧
15586 \family typewriter
15587 scrlettr
15588 \family default
15589 クラスの既定レイアウトを提供する
15590 \family typewriter
15591 KOMAold.lco
15592 \family default
15593 などです.たとえば後者は,
15594 \family sans
15595 文書\SpecialChar menuseparator
15596 設定\SpecialChar menuseparator
15597 文書クラス\SpecialChar menuseparator
15598 クラスオプション
15599 \family default
15600 フィールドにクラスオプション
15601 \family typewriter
15602 KOMAold
15603 \family default
15604 を加えることで読み込むことができます.
15605 \end_layout
15606
15607 \end_inset
15608
15609 .用例としては,\SpecialChar LyX
15610 に収録されているひな型
15611 \emph on
15612 koma-letter2
15613 \emph default
15614 をご覧ください.詳細な解説は,Koma-Script取扱説明書(
15615 \emph on
15616 scrguide
15617 \emph default
15618 )にあります.
15619 \end_layout
15620
15621 \begin_layout Subsection
15622 問題点
15623 \end_layout
15624
15625 \begin_layout Standard
15626 Koma-Script文書クラスを\SpecialChar LyX
15627 上に表示する上で,\SpecialChar LyX
15628 の内部処理が若干の問題を生じめます.
15629 \end_layout
15630
15631 \begin_layout Itemize
15632
15633 \family sans
15634
15635 \family default
15636 環境の章番号は,章見出しと同じ行ではなく,その上に表示されます.これは,レイアウトファイル中の
15637 \family sans
15638 Counter_Chapter
15639 \family default
15640 ラベル型に対する\SpecialChar LyX
15641 の内部処理が原因です.
15642 \end_layout
15643
15644 \begin_layout Itemize
15645
15646 \family sans
15647 章(addchap)
15648 \family default
15649
15650 \family sans
15651 節(addsec)
15652 \family default
15653 環境の見出しは,「本当の」\SpecialChar LaTeX
15654 の目次には追加されますが,\SpecialChar LyX
15655 の目次(
15656 \family sans
15657 移動
15658 \family default
15659 メニュー)には追加されません.
15660 \end_layout
15661
15662 \begin_layout Itemize
15663
15664 \emph on
15665 letter
15666 \emph default
15667 文書クラスでの段落は,垂直スペースによる段落区切りで表示され,字下げはされません.これが標準的な挙動となっていて,特別な\SpecialChar LaTeX
15668 コマンドは必要ありません.しかし,
15669 \family sans
15670 文書\SpecialChar menuseparator
15671 設定
15672 \family default
15673 ダイアログでは,対応するラジオボタンは
15674 \family sans
15675 字下げ
15676 \family default
15677 に設定されています.
15678 \family sans
15679 垂直スペース
15680 \family default
15681 は,隙間を空けるために,文書に\SpecialChar LaTeX
15682 コマンドをつねに追加するようになっていますが,この文書クラスの場合には,そのような挙動が望まれないためです.
15683 \end_layout
15684
15685 \begin_layout Section
15686 Memoir
15687 \end_layout
15688
15689 \begin_layout Standard
15690
15691 \noun on
15692 Jürgen Spitzmüller
15693 \noun default
15694
15695 \end_layout
15696
15697 \begin_layout Subsection
15698 概観
15699 \end_layout
15700
15701 \begin_layout Standard
15702 Memoirは,非常に強力で,着実に改良が加えられている文書クラスであり,フィクションとノンフィクションの文学作品用に設計されています.その目的は,ユーザーに,
15703 文書の組版に関して最大限の裁量を得させることにあります.Memoirは,標準bookクラスに基づいていますが,articleクラスをエミュレートすることもできま
15704 す(以下参照).
15705 \end_layout
15706
15707 \begin_layout Standard
15708 Memoir開発者であるPeter Wilsonは,\SpecialChar LaTeX
15709 の世界での,多くの便利なパッケージの作者として知られていますが,それらのほとんどは,Memoirに統合されま
15710 した.このため,章のデザインや,目次や付録などのレイアウトを,はるかに簡単に行うことができます.しかしながら,\SpecialChar LyX
15711 は,これらすべての素晴らしい機能をネイティブでサポ
15712 ートしているわけではありません.これらのうちいくつかは,将来のリリースで追加されるかもしれませんが
15713 \begin_inset Foot
15714 status collapsed
15715
15716 \begin_layout Plain Layout
15717 もし提案があれば,ぜひ
15718 \begin_inset Flex URL
15719 status collapsed
15720
15721 \begin_layout Plain Layout
15722
15723 lyx-devel@lists.lyx.org
15724 \end_layout
15725
15726 \end_inset
15727
15728 までお送り下さい.
15729 \end_layout
15730
15731 \end_inset
15732
15733 ,\SpecialChar LyX
15734 のフレームワークが持つ制約のために,おそらく決して追加されることのないと考えられるものも多数あります.もちろん,ネイティブな\SpecialChar LaTeX
15735 コマンド(\SpecialChar TeX
15736 コード
15737 \begin_inset Foot
15738 status collapsed
15739
15740 \begin_layout Plain Layout
15741 【参考】詳細は,第
15742 \begin_inset CommandInset ref
15743 LatexCommand ref
15744 reference "sec:LaTeXコードを挿入する"
15745
15746 \end_inset
15747
15748 節参照.
15749 \end_layout
15750
15751 \end_inset
15752
15753 )の助けを借りれば,全機能を使用できます.この節では,\SpecialChar LyX
15754 がネイティブにサポートしている機能についてのみ,列挙するものとします.詳細な説明(および他の機能)について
15755 は,Memoirクラスの詳しい取扱説明書
15756 \begin_inset Foot
15757 status collapsed
15758
15759 \begin_layout Plain Layout
15760 【参考】
15761 \begin_inset Flex URL
15762 status collapsed
15763
15764 \begin_layout Plain Layout
15765
15766 CTAN:/macros/latex/memoir/memman.pdf
15767 \end_layout
15768
15769 \end_inset
15770
15771
15772 \end_layout
15773
15774 \end_inset
15775
15776 をご覧になることをお勧めします.この取扱説明書は,本クラスのユーザーの手引きであるのみに留まらず,良い組版に関する包括的な解説であり,それ自身が良い組版の傑出し
15777 た用例となっています.
15778 \end_layout
15779
15780 \begin_layout Subsection
15781 基本的な機能と制約
15782 \end_layout
15783
15784 \begin_layout Standard
15785 Memoirは,基本的に,標準bookクラスの全機能をサポートしています.しかしながら,以下に示すような若干の違いがあります.
15786 \end_layout
15787
15788 \begin_layout Description
15789 フォント寸法: Memoirでは,9・10・11・12・14・17と,より広い範囲のフォント寸法が使用可能です.
15790 \end_layout
15791
15792 \begin_layout Description
15793 ページ様式: Memoirパッケージとfancyhdrパッケージとのコマンドの衝突のため(両パッケージは同じ名前のコマンドを定義しているため,\SpecialChar LaTeX
15794 が混乱させられます
15795 ),fancyページ様式は使用できません.その代わり,Memoirには,多くの独自のページ様式が付属してきます(
15796 \family sans
15797 文書\SpecialChar menuseparator
15798 設定\SpecialChar menuseparator
15799 ページレイアウト
15800 \family default
15801 参照).これらを章題ページに使用したい場合には,コマンド
15802 \family typewriter
15803
15804 \backslash
15805 chapterstyle
15806 \family default
15807 を,本文またはプリアンブルに記述する必要があります(例えば,
15808 \family typewriter
15809
15810 \backslash
15811 chapterstyle{companion}
15812 \family default
15813 など).
15814 \end_layout
15815
15816 \begin_layout Description
15817 節分け: 標準クラスでは,節分けコマンド(章・節・小節等)は,非必須引数を一つ取ることができます.これを用いて,目次やヘッダ用に別のタイトルを指定することができ
15818 ます(たとえば,タイトルが長すぎる場合などに用います).\SpecialChar LyX
15819 では,章や節の始めで
15820 \family sans
15821 挿入\SpecialChar menuseparator
15822 短縮タイトル
15823 \family default
15824 を使えば,これを指定することができます.一方,Memoirでは,第2の非必須引数を取ることができ,目次用のタイトルとヘッダ用のタイトルの指定を分離しています.こ
15825 れを使えば,本文用と目次用とヘッダ用のタイトルの3種類を指定することができます.この機能を使用したい場合には,2つの非必須引数を入力して,最初のものに目次用,次
15826 のものにヘッダ用短縮タイトルを入れてください.
15827 \end_layout
15828
15829 \begin_layout Description
15830 目次・図一覧・表一覧: 標準クラス(および他の多くのクラス)では,目次と図一覧および表一覧は,自動的に新規頁に置かれます.Memoirは,これとは別の方針を採り
15831 ます.改頁を行いたい場合は,手動で頁区切りを入れなくてはなりません.
15832 \end_layout
15833
15834 \begin_layout Description
15835 タイトル頁: 理由は不明ですが,Memoirはタイトルページに丁付けを行います(標準クラスでは,タイトルページは「empty」様式).タイトル頁に丁付けを行いた
15836 くない場合には,プリアンブルに
15837 \family typewriter
15838
15839 \backslash
15840 aliaspagestyle{title}{empty}
15841 \family default
15842 と入力してください.
15843 \end_layout
15844
15845 \begin_layout Description
15846 Article: クラスオプション
15847 \emph on
15848 article
15849 \emph default
15850 を用いる(
15851 \family sans
15852 文書\SpecialChar menuseparator
15853 設定\SpecialChar menuseparator
15854 クラスオプション
15855 \family default
15856 で入力)と,article様式をエミュレートできます.すなわち,(脚注・図・表等の)カウンタは,章毎にリセットされず,次の章は頁を改めず(ただし,「本物の」ar
15857 ticleクラスとは違って,頁を改めることも可),部はbookクラスと同様に,独立の頁を使用します.
15858 \end_layout
15859
15860 \begin_layout Description
15861 Oldfontcommands: \SpecialChar LaTeX
15862 旧2.09版で使用されていた旧いフォントコマンド(
15863 \family typewriter
15864
15865 \backslash
15866 rm
15867 \family default
15868
15869 \family typewriter
15870
15871 \backslash
15872 it
15873 \family default
15874 など)は,Memoirにおいては,既定では使用することができません.Memoirがこれらのコマンドを検知すると,エラーを発して\SpecialChar LaTeX
15875 を停止させます.しかし,クラスオプ
15876 ション
15877 \emph on
15878 oldfontcommands
15879 \emph default
15880 を指定すると,これらのコマンドが容認され,エラーの代わりに警告を発するのみとなります(これによって,少なくとも\SpecialChar LaTeX
15881 は停止しなくなります).まだ,多くのパッケージと,
15882 就中多くのBib\SpecialChar TeX
15883 スタイルファイルが,これらのコマンドを使用しているので,我々はこのオプションを既定で使うこととしました.
15884 \end_layout
15885
15886 \begin_layout Subsection
15887 追加された機能
15888 \end_layout
15889
15890 \begin_layout Standard
15891 \SpecialChar LyX
15892 でサポートされる機能(今のところそれほど多くはありません)を簡単に説明しましょう.詳しくはMemoirの取扱説明書
15893 \begin_inset Foot
15894 status collapsed
15895
15896 \begin_layout Plain Layout
15897 \begin_inset Flex URL
15898 status collapsed
15899
15900 \begin_layout Plain Layout
15901
15902 CTAN:/macros/latex/memoir/memman.pdf
15903 \end_layout
15904
15905 \end_inset
15906
15907
15908 \end_layout
15909
15910 \end_inset
15911
15912 を見てください.
15913 \end_layout
15914
15915 \begin_layout Description
15916 概要: 概要が,追加された機能として扱われているのを不思議に思われるかもしれませんが,bookクラスとしては追加された機能なのです.通常bookクラスには概要は
15917 ないのですが,memoirにはあります.これは,どこでも何回でも自由に使うことができます.
15918 \end_layout
15919
15920 \begin_layout Description
15921 章要約: この古い組版様式はご覧になったことがあるかも知れません.章の内容が,見出しの下と目次に要約されているものです(たとえば,「我らが英雄がトロヤに到着する
15922 .彼は友人を失うが,新たな友人を得る.」など).章要約(chapterprecis)はこれを行います.したがって,章要約は章の下でのみ意味を持ちます.
15923 \end_layout
15924
15925 \begin_layout Description
15926 題辞: 題辞(epigraph)は章頭の,気の利いた標語やモットーです.題辞環境は,そのような標語を組む洗練された方法を提供します.標語本体(本文)とその著者(
15927 出典)は,短い線で区切られます.この環境には二つの引数(本文と出典)が必要なので,ここでも\SpecialChar LyX
15928 を少しだます必要があります.ここでは,2つの引数の間に,
15929 \emph on
15930 <標語>
15931 \family typewriter
15932 \emph default
15933 }{
15934 \family default
15935 \emph on
15936 <標語の著者>
15937 \emph default
15938 のように,(\SpecialChar TeX
15939 モードで)波括弧を入れなくてはなりません.
15940 \end_layout
15941
15942 \begin_layout Description
15943 詩題: Memoirには(複雑で隠喩的なものも含めて)詩を組版するための多くの機能がありますが,\SpecialChar LyX
15944 は,そのうちいくつかしかサポートしていません.詩題はその一つです
15945 .これは詩用の中央揃えタイトルで,目次にも表示されます(詩句が詩の標準環境です.Memoirには,詩句の拡張版もありますが,これらを使うためには\SpecialChar TeX
15946 コードを使用しな
15947 くてはなりません.これらの環境は通常の詩句環境の中に入れ子にしなくてはならないのですが,\SpecialChar LyX
15948 ではそれができないためです).
15949 \end_layout
15950
15951 \begin_layout Description
15952 詩題*: 目次に現れない他は詩題と同じです.
15953 \end_layout
15954
15955 \begin_layout Section
15956 Article (mwart)・book (mwbk)・report (mwrep)
15957 \begin_inset Argument status
15958 status collapsed
15959
15960 \begin_layout Plain Layout
15961 The 
15962 \family typewriter
15963 mw
15964 \family default
15965  Classes
15966 \end_layout
15967
15968 \end_inset
15969
15970
15971 \end_layout
15972
15973 \begin_layout Standard
15974
15975 \noun on
15976 Tomasz Luczak
15977 \noun default
15978
15979 \end_layout
15980
15981 \begin_layout Standard
15982 \SpecialChar LyX
15983 文書クラス
15984 \emph on
15985 article (mwart)
15986 \emph default
15987
15988 \emph on
15989 report (mwrep)・book
15990 \emph default
15991  
15992 \emph on
15993 (mwbk)
15994 \emph default
15995 は,それぞれ\SpecialChar LaTeX
15996 文書クラス
15997 \family typewriter
15998 mwart.cls
15999 \family default
16000
16001 \family typewriter
16002 mwrep.cls
16003 \family default
16004
16005 \family typewriter
16006 mwbk.cls
16007 \family default
16008 に対応しています.これらは,標準の
16009 \family typewriter
16010 article.cls
16011 \family default
16012
16013 \family typewriter
16014 report.cls
16015 \family default
16016
16017 \family typewriter
16018 book.cls
16019 \family default
16020 を代替するものであり,多くの点で,ポーランド語の組版慣習によく適合しています.
16021 \end_layout
16022
16023 \begin_layout Standard
16024 基本的な違いは,次の点です.
16025 \end_layout
16026
16027 \begin_layout Itemize
16028 付番のない見出し(
16029 \family sans
16030 節*
16031 \family default
16032 などの星付き)も目次に加えられます.
16033 \end_layout
16034
16035 \begin_layout Itemize
16036 以下のページスタイルの追加
16037 \end_layout
16038
16039 \begin_deeper
16040 \begin_layout Description
16041 uheadings 分離線付きヘッダ
16042 \end_layout
16043
16044 \begin_layout Description
16045 myheadings 
16046 \family typewriter
16047
16048 \backslash
16049 markright
16050 \family default
16051 コマンドおよび
16052 \family typewriter
16053
16054 \backslash
16055 markboth
16056 \family default
16057 コマンドで設定するカスタムヘッダ
16058 \end_layout
16059
16060 \begin_layout Description
16061 myuheadings 分離線付きカスタムヘッダ
16062 \end_layout
16063
16064 \begin_layout Description
16065 outer ページの外側にページ番号
16066 \end_layout
16067
16068 \end_deeper
16069 \begin_layout Itemize
16070 オプション
16071 \end_layout
16072
16073 \begin_deeper
16074 \begin_layout Description
16075 rmheadings セリフ体見出し — 既定
16076 \end_layout
16077
16078 \begin_layout Description
16079 sfheadings サンセリフ体見出し
16080 \end_layout
16081
16082 \begin_layout Description
16083 authortitle タイトルページは,著者名・タイトルの順で配置 — 既定
16084 \end_layout
16085
16086 \begin_layout Description
16087 titleauthor タイトルページは,タイトル・著者名の順で配置
16088 \end_layout
16089
16090 \begin_layout Description
16091 withmarginpar ページ上に余白のための場所を確保
16092 \end_layout
16093
16094 \end_deeper
16095 \begin_layout Section
16096 Paper
16097 \end_layout
16098
16099 \begin_layout Standard
16100
16101 \family sans
16102 paper
16103 \family default
16104 文書クラスは標準
16105 \family sans
16106 article
16107 \family default
16108 クラスの代替となるものです.これは
16109 \family sans
16110 同様の
16111 \family default
16112 機能を提供しますが,サンセリフ体の節見出し・ヘッディング等を持つこちらのレイアウトの方が気に入るかも知れません.
16113 \end_layout
16114
16115 \begin_layout Section
16116 Rev\SpecialChar TeX
16117 4
16118 \end_layout
16119
16120 \begin_layout Standard
16121 by 
16122 \noun on
16123 Amir Karger
16124 \end_layout
16125
16126 \begin_layout Standard
16127 \begin_inset VSpace bigskip
16128 \end_inset
16129
16130
16131 \end_layout
16132
16133 \begin_layout Standard
16134 \noindent
16135
16136 \family sans
16137 Revtex
16138 \begin_inset space ~
16139 \end_inset
16140
16141 4
16142 \family default
16143 テキストクラスは,アメリカ物理学会のRev\SpecialChar TeX
16144  4.0(1999年5月の
16145 \begin_inset Formula $\beta$
16146 \end_inset
16147
16148 リリース)クラスで動作します.
16149 \end_layout
16150
16151 \begin_layout Standard
16152 \SpecialChar LyX
16153 には,Rev\SpecialChar TeX
16154  3.1で動作する
16155 \family sans
16156 Revtex
16157 \family default
16158 テキストクラスもあります.しかしながら,第3.1版は\SpecialChar LaTeX
16159  2.09で動作するものであり,基本的に時代遅れなものになっています.\SpecialChar LyX
16160 は\SpecialChar LaTeX2e
16161 を必要とすることから,第3.1版は\SpecialChar LyX
16162 とうまく
16163 協調しないことを意味しますが,動作するようには調整してあります.Rev\SpecialChar TeX
16164  4.0は,\SpecialChar LaTeX2e
16165 で素直に動作するようにデザインされているので,\SpecialChar LyX
16166
16167 \family sans
16168 Rev\SpecialChar TeX
16169
16170 \begin_inset space ~
16171 \end_inset
16172
16173 4
16174 \family default
16175 テキストクラスの組で使用するのは,たいへん簡単です.
16176 \end_layout
16177
16178 \begin_layout Standard
16179 この取扱説明書は,Rev\SpecialChar TeX
16180  4.0の説明書の
16181 \emph on
16182 補完
16183 \emph default
16184 として使用されることを前提としています.したがって,ここではRev\SpecialChar TeX
16185 固有マクロの説明はせず,必要な場合にはプリアンブルに何と書けば良いかを知っているものとして説明
16186 します.
16187 \end_layout
16188
16189 \begin_layout Subsection
16190 導入
16191 \end_layout
16192
16193 \begin_layout Standard
16194 Rev\SpecialChar TeX
16195  4パッケージのREADMEファイルにあるとおり,ともかくRev\SpecialChar TeX
16196  4を導入しなくてはなりません.パッケージは,The Rev\SpecialChar TeX
16197  4 Web
16198  Site 
16199 \begin_inset Flex URL
16200 status collapsed
16201
16202 \begin_layout Plain Layout
16203
16204 http://publish.aps.org/revtex4/
16205 \end_layout
16206
16207 \end_inset
16208
16209 から入手することができます.これを\SpecialChar LaTeX
16210 が検出することのできる場所に導入してください.それから,適当に選んだディレクトリ(もといクラスファイルを導入したのとは異なるデ
16211 ィレクトリ)で簡単なRev\SpecialChar TeX
16212  4文書を \SpecialChar LaTeX
16213 でコンパイルできるかどうか確認してください.この後,\SpecialChar LyX
16214 を環境構成すると,クラスファイルを検出し,Rev\SpecialChar TeX
16215 4テキストクラスが使用
16216 できるようになるはずです.
16217 \end_layout
16218
16219 \begin_layout Standard
16220 使い始めるには,
16221 \family typewriter
16222 tex2lyx
16223 \family default
16224 を使ってRev\SpecialChar TeX
16225  4文書を読み込むか,またはひな型ディレクトリにある
16226 \family sans
16227 Revtex
16228 \begin_inset space ~
16229 \end_inset
16230
16231 4
16232 \family default
16233 のひな型を使うのが,おそらく一番簡単な方法でしょう.
16234 \end_layout
16235
16236 \begin_layout Subsection
16237 プリアンブルに関すること
16238 \end_layout
16239
16240 \begin_layout Standard
16241
16242 \family typewriter
16243
16244 \backslash
16245 documentclass
16246 \family default
16247 に与える「preprint」や「aps」のような非必須引数は,他のクラス同様,
16248 \family sans
16249 文書\SpecialChar menuseparator
16250 設定\SpecialChar menuseparator
16251 文書クラス
16252 \family default
16253
16254 \family sans
16255 クラスオプション
16256 \family default
16257 フィールドに入れます.Rev\SpecialChar TeX
16258 では,少なくとも一つの非必須引数が必要なことに注意してください.
16259 \end_layout
16260
16261 \begin_layout Standard
16262
16263 \family typewriter
16264
16265 \backslash
16266 draft
16267 \family default
16268 など他のプリアンブルは,他のクラス同様,
16269 \family sans
16270 文書\SpecialChar menuseparator
16271 設定\SpecialChar menuseparator
16272 \SpecialChar LaTeX
16273 プリアンブル
16274 \family default
16275 に入れてください.
16276 \end_layout
16277
16278 \begin_layout Subsection
16279 レイアウト
16280 \end_layout
16281
16282 \begin_layout Standard
16283 レイアウトは,基本的にRev\SpecialChar TeX
16284 4.0のコマンドに対応しています.たとえば,Emailレイアウトは,
16285 \family typewriter
16286
16287 \backslash
16288 email{}
16289 \family default
16290 に対応しています.(少なくともRev\SpecialChar TeX
16291  4.0 Beta現在では)
16292 \family sans
16293 住所
16294 \family default
16295
16296 \family sans
16297 所属
16298 \family default
16299 はまったく同じものなので,両方を使う必要はありません
16300 \begin_inset Foot
16301 status collapsed
16302
16303 \begin_layout Plain Layout
16304 ついでながら,
16305 \family typewriter
16306 tex2lyx
16307 \family default
16308 は両方とも対応しているので,
16309 \family typewriter
16310
16311 \backslash
16312 address
16313 \family default
16314
16315 \family typewriter
16316
16317 \backslash
16318 affiliation
16319 \family default
16320 のどちらも翻訳することができます.
16321 \end_layout
16322
16323 \end_inset
16324
16325
16326 \end_layout
16327
16328 \begin_layout Subsection
16329 重要な注意
16330 \end_layout
16331
16332 \begin_layout Standard
16333 Rev\SpecialChar TeX
16334  4には,バグを引き起こしがちなために,気をつけなくてはならない特殊な面がいくつかあるため,\SpecialChar LyX
16335 ではさらに気をつけなくてはなりません.
16336 \end_layout
16337
16338 \begin_layout Standard
16339 Rev\SpecialChar TeX
16340 では,
16341 \family typewriter
16342
16343 \backslash
16344 thanks
16345 \family default
16346 コマンドは,
16347 \family typewriter
16348
16349 \backslash
16350 author
16351 \family default
16352 コマンドの
16353 \emph on
16354 外側
16355 \emph default
16356 に来なくてはなりません.\SpecialChar LyX
16357 では,独立した
16358 \family sans
16359 感謝
16360 \family default
16361 レイアウトがこの働きをします.直接
16362 \family sans
16363 ,著者
16364 \family default
16365 レイアウトに脚注を付けてしまうと,おかしなことが起こる可能性があります.詳細については,Rev\SpecialChar TeX
16366  4の取扱説明書をご覧ください.
16367 \end_layout
16368
16369 \begin_layout Standard
16370 また,
16371 \family sans
16372 著者電子メール
16373 \family default
16374
16375 \family sans
16376 著者URL・感謝(thanks)
16377 \family default
16378 レイアウトは,
16379 \family sans
16380 著者
16381 \family default
16382 レイアウトと
16383 \family sans
16384 住所(
16385 \family default
16386 または同等の
16387 \family sans
16388 所属
16389 \family default
16390 )レイアウトの間に置かなければなりません.
16391 \family sans
16392 感謝(thanks)
16393 \family default
16394
16395 \family sans
16396 住所
16397 \family default
16398 の後に置いてしまうと,\SpecialChar LaTeX
16399 はコンパイルに失敗します.
16400 \end_layout
16401
16402 \begin_layout Subsection
16403 問題点
16404 \end_layout
16405
16406 \begin_layout Standard
16407 このレイアウトの主な問題点は,電子メールやタイトルのようなレイアウトに非必須引数を用いることができないことです(これはこのレイアウトだけの問題ではありません.例
16408 えば,節レイアウトも非必須引数を使用することができません).これは,たとえばページヘッダにヘッダ用タイトルを設定したい場合などには,ファイルを\SpecialChar LaTeX
16409 ファイルに変換した
16410 後に(これは最終的にAPSに原稿を送る際には行わなくてはなりません),テキストエディタを使って\SpecialChar LaTeX
16411 ファイルを編集し,非必須引数を書き加えなくてはならないということで
16412 す.これらのレイアウトがないと,
16413 \family typewriter
16414
16415 \backslash
16416 altaffiliation
16417 \family default
16418 (またそれと同等な
16419 \family typewriter
16420
16421 \backslash
16422 altaddress
16423 \family default
16424 )は使えませんので,対応するレイアウトは存在せず,手動で書き加える必要があります
16425 \begin_inset Foot
16426 status collapsed
16427
16428 \begin_layout Plain Layout
16429
16430 \emph on
16431 JMarcからの註:
16432 \emph default
16433  実は,\SpecialChar LyX
16434  1.3.0 では非必須引数を一部サポートしているのですが,このレイアウトは,まだこの機能を使うようにはアップデートされていないのです.
16435 \end_layout
16436
16437 \end_inset
16438
16439
16440 \end_layout
16441
16442 \begin_layout Section
16443 Springer学術誌(
16444 \family sans
16445 svjour)
16446 \end_layout
16447
16448 \begin_layout Standard
16449
16450 \noun on
16451 Martin Vermeer
16452 \noun default
16453
16454 \end_layout
16455
16456 \begin_layout Subsection
16457 説明
16458 \end_layout
16459
16460 \begin_layout Standard
16461 これは,Springer Verlag社発行のいくつかの学術誌で使用されている書式のレイアウトファイルです.
16462 \begin_inset Flex URL
16463 status collapsed
16464
16465 \begin_layout Plain Layout
16466
16467 http://www.springer.de/author/tex/help-journals.html
16468 \end_layout
16469
16470 \end_inset
16471
16472 に必要なクラスファイル(\SpecialChar LaTeX2e
16473 用になりました)とそれに対応する学術誌の一覧があります.このレイアウトはモジュール式になっています.つまり,全ジャーナル共通部分は
16474 \family typewriter
16475 svjour.inc
16476 \family default
16477 に実装されており,各誌個別のレイアウトファイル(たとえばJournal of Geodesy用の
16478 \family typewriter
16479 svjog.layout
16480 \family default
16481 など)から取り込むことができます.
16482 \end_layout
16483
16484 \begin_layout Standard
16485 このことは,上記の学術誌一覧にある他のSpringer誌のサポートを実装するためには,
16486 \family typewriter
16487 svjog.layout
16488 \family default
16489 に書かれている指示に従って,自作の
16490 \family typewriter
16491 sv
16492 \family default
16493 <学術誌名>
16494 \family typewriter
16495 .layout
16496 \family default
16497 を書くだけで良いことを意味します.
16498 \end_layout
16499
16500 \begin_layout Standard
16501 このレイアウトは,Journal of Geodesyに対してのみ,充分な試験が為されています.
16502 \family typewriter
16503 svjour
16504 \family default
16505
16506 \family typewriter
16507 svjog
16508 \family default
16509 は,標準\SpecialChar LyX
16510 頒布版に収録済みです.関連するクラスファイルを(Springerからダウンロードして)適切なディレクトリに導入し,\SpecialChar LaTeX
16511 を再設定した後(teTeXの場合は,必
16512 要に応じてroot権限で
16513 \family typewriter
16514 texhash
16515 \family default
16516 を実行します),\SpecialChar LyX
16517 を環境構成すれば,動作するはずです.
16518 \end_layout
16519
16520 \begin_layout Subsection
16521 新スタイル
16522 \end_layout
16523
16524 \begin_layout Standard
16525 多くの定理環境 — 
16526 \family sans
16527 主張
16528 \family default
16529
16530 \family sans
16531 推論
16532 \family default
16533 ・\SpecialChar ldots
16534
16535 \family sans
16536 定理
16537 \family default
16538
16539 \end_layout
16540
16541 \begin_layout Standard
16542
16543 \family sans
16544 ヘッドノート
16545 \family default
16546
16547 \family sans
16548 献呈
16549 \family default
16550
16551 \family sans
16552 サブタイトル・ヘッダ用\SpecialChar LaTeX
16553 タイトル・ヘッダ用著者名・所属機関・メール・オフプリント・キーワード・謝辞(acknowledgements)・謝辞(acknowledg
16554 ement)
16555 \family default
16556 .詳しくは Springerのクラスファイルの説明書を読んでください.
16557 \end_layout
16558
16559 \begin_layout Subsection
16560 サポートしているジャーナル
16561 \end_layout
16562
16563 \begin_layout Itemize
16564
16565 \emph on
16566 Journal of Geodesy
16567 \emph default
16568
16569 \family typewriter
16570 svjog.layout
16571 \family default
16572  — Martin Vermeer
16573 \end_layout
16574
16575 \begin_layout Itemize
16576
16577 \emph on
16578 Probability Theory and Related Fields
16579 \emph default
16580
16581 \family typewriter
16582 svprobth.layout
16583 \family default
16584  — Jean-Marc Lasgouttes
16585 \end_layout
16586
16587 \begin_layout Standard
16588 あなた自身のレイアウトファイルをつくってください.難しくはありません.
16589 \end_layout
16590
16591 \begin_layout Subsection
16592 Credits
16593 \end_layout
16594
16595 \begin_layout Standard
16596 これらのファイルは,以前の 
16597 \family typewriter
16598 ejour2.layout
16599 \family default
16600 をもとにしています.
16601 \family typewriter
16602 ejour2.layout
16603 \family default
16604 は Springerの\SpecialChar LaTeX
16605  2.09用のスタイルファイルを使った素人細工のようなレイアウトファイルです.これらのファイルはすでにありません.Jean-Marc
16606  Lasgouttesのおかげで \SpecialChar LyX
16607 のレイアウトファイルのメカニズムをよりよく理解することができました.
16608 \end_layout
16609
16610 \begin_layout Subsection
16611 バグ
16612 \end_layout
16613
16614 \begin_layout Standard
16615 多分あります.以前の 
16616 \family typewriter
16617 ejour2
16618 \family default
16619 よりは少なくなっているとは思いますが.
16620 \end_layout
16621
16622 \begin_layout Standard
16623 制限事項:定理環境の環境の番号は表示されません.#が表示されるだけです.
16624 \end_layout
16625
16626 \begin_layout Section
16627 Slides (別名
16628 \noun on
16629 Sli\SpecialChar TeX
16630
16631 \noun default
16632 )
16633 \begin_inset Foot
16634 status collapsed
16635
16636 \begin_layout Plain Layout
16637 (訳註)この節の内容は,全般的に古くなっています.
16638 \end_layout
16639
16640 \end_inset
16641
16642
16643 \begin_inset CommandInset label
16644 LatexCommand label
16645 name "sec:slitex"
16646
16647 \end_inset
16648
16649
16650 \end_layout
16651
16652 \begin_layout Standard
16653
16654 \noun on
16655 John Weiss
16656 \noun default
16657
16658 \end_layout
16659
16660 \begin_layout Subsection
16661 はじめに
16662 \end_layout
16663
16664 \begin_layout Standard
16665 本節では,オーバーへッドプロジェクタ用のスライドをつくるのに,\SpecialChar LyX
16666 をどのように使えばよいかを説明します.これを行う文書クラスには,既定のslideクラスと
16667 \family sans
16668 Foil\SpecialChar TeX
16669
16670 \family default
16671 スライドクラスの2つがあります.本節は前者について説明を行います.
16672 \end_layout
16673
16674 \begin_layout Standard
16675 誤解のないように,正しく明確に,もう一度言っておきます.
16676 \end_layout
16677
16678 \begin_layout Standard
16679 \begin_inset VSpace bigskip
16680 \end_inset
16681
16682
16683 \end_layout
16684
16685 \begin_layout Standard
16686 \align center
16687
16688 \size large
16689 本節は文書クラス
16690 \begin_inset Quotes eld
16691 \end_inset
16692
16693
16694 \family sans
16695 transparencies (slides)
16696 \family default
16697
16698 \begin_inset Quotes erd
16699 \end_inset
16700
16701
16702 \emph on
16703 のみ
16704 \emph default
16705 を説明しています.
16706 \end_layout
16707
16708 \begin_layout Standard
16709 \begin_inset VSpace bigskip
16710 \end_inset
16711
16712
16713 \end_layout
16714
16715 \begin_layout Standard
16716
16717 \family sans
16718 「slides (Foil\SpecialChar TeX
16719 )
16720 \family default
16721 」の説明をお探しならば,第
16722 \begin_inset CommandInset ref
16723 LatexCommand ref
16724 reference "sec:foiltex"
16725
16726 \end_inset
16727
16728 節をご覧ください.
16729 \family sans
16730 foils
16731 \family default
16732 クラス「
16733 \family sans
16734 slides (Foil\SpecialChar TeX
16735 )
16736 \family default
16737 」は,実際,本節で説明している既定
16738 \family sans
16739 slides
16740 \family default
16741 クラスよりも良いようです
16742 \begin_inset Foot
16743 status collapsed
16744
16745 \begin_layout Plain Layout
16746 \SpecialChar ldots
16747
16748 \family sans
16749 Foil\SpecialChar TeX
16750
16751 \family default
16752 の支持者からは聞いています.けれども私は使ったことがないので,本当かどうか確かめようがありません.
16753 \end_layout
16754
16755 \end_inset
16756
16757
16758 \end_layout
16759
16760 \begin_layout Standard
16761 このクラスは,旧SLI\SpecialChar TeX
16762 パッケージを\SpecialChar LaTeX2e
16763 用に改良したものです.\SpecialChar LaTeX2e
16764 頒布版すべてが,このクラス(以下では単に「
16765 \family sans
16766 slides
16767 \family default
16768 」と述べることにします)を含んでいるので,あなたもお持ちのはずです.前述の
16769 \family sans
16770 foils
16771 \family default
16772 のように,同じくオーバーへッドプロジェクタ用のスライドを生成しながら,このクラスよりも良い仕事をするクラスもあります.しかしながら,オーバーレイを生成するなど,
16773 他のクラスにはできないが
16774 \family sans
16775 slides
16776 \family default
16777 ならばできることもあります.詳しくは以下をお読みください.
16778 \end_layout
16779
16780 \begin_layout Subsection
16781 使い始めるには
16782 \begin_inset CommandInset label
16783 LatexCommand label
16784 name "sec:slidesetup"
16785
16786 \end_inset
16787
16788
16789 \end_layout
16790
16791 \begin_layout Standard
16792 当然ながら,この文書クラスを使用するには,
16793 \family sans
16794 文書\SpecialChar menuseparator
16795 設定
16796 \family default
16797 ダイアログのクラスリストから「
16798 \family sans
16799 transparencies (slides)
16800 \family default
16801 」を選択しなくてはなりません.このクラスについて,以下のように,特に知っておいた方が良いことがいくつかあります.
16802 \end_layout
16803
16804 \begin_layout Itemize
16805
16806 \family sans
16807 用紙方向
16808 \family default
16809
16810 \family sans
16811 二段組文書
16812 \family default
16813 の各オプションは,あえて変更する必要はありません.これらのオプションは,
16814 \family sans
16815 slides
16816 \family default
16817 クラスではサポートされていないので,効果がありません.
16818 \end_layout
16819
16820 \begin_layout Itemize
16821
16822 \family sans
16823 ヘディング様式
16824 \family default
16825 オプションは,このクラスでは少し異なった振る舞いをします.各選択肢とその機能は,以下の通りです.
16826 \end_layout
16827
16828 \begin_deeper
16829 \begin_layout Description
16830 プレーン(plain) 最終出力の右下隅にページ番号が付きます.
16831 \end_layout
16832
16833 \begin_layout Description
16834 設定(headings)
16835 \family sans
16836  プレーン(plain)
16837 \family default
16838 と同様ですが,それ以外にあなたが指定したタイムマーカーをすべて出力します.これが既定値です.
16839 \end_layout
16840
16841 \begin_layout Description
16842 空 最終出力には,ページ番号もタイムマーカーも位置揃えマーカーも出力されません.
16843 \end_layout
16844
16845 \end_deeper
16846 \begin_layout Itemize
16847
16848 \family sans
16849 slides
16850 \family default
16851 クラスには,もう一つ
16852 \family typewriter
16853 clock
16854 \family default
16855 というオプションがあります.これを使用するには,
16856 \family sans
16857 クラスオプション
16858 \family default
16859 に「
16860 \family typewriter
16861 clock
16862 \family default
16863 」と入力してください.
16864 \end_layout
16865
16866 \begin_deeper
16867 \begin_layout Standard
16868 このオプションを使うと,
16869 \family sans
16870 注釈
16871 \family default
16872 にタイムマーカーを加えることができます.詳細は,第
16873 \begin_inset CommandInset ref
16874 LatexCommand ref
16875 reference "sec:スライド注釈"
16876
16877 \end_inset
16878
16879 節をご覧ください.
16880 \end_layout
16881
16882 \end_deeper
16883 \begin_layout Standard
16884
16885 \family sans
16886 slides
16887 \family default
16888 クラスを用いた文書を自動的にセットアップするには,ひな型ファイル「
16889 \family typewriter
16890 slides.lyx
16891 \family default
16892 」を使用することもできます(新規ファイルを開く際に
16893 \family sans
16894 ファイル\SpecialChar menuseparator
16895 新規(ひな型使用)
16896 \family default
16897 を使用してください).ひな型ファイルには,このクラスが使用する特別な段落環境の用例も含まれています.これらについては,以下で説明します.
16898 \end_layout
16899
16900 \begin_layout Subsection
16901 段落環境
16902 \end_layout
16903
16904 \begin_layout Subsubsection
16905
16906 \family sans
16907 サポートされている環境
16908 \end_layout
16909
16910 \begin_layout Standard
16911 新しく
16912 \family sans
16913 slides
16914 \family default
16915 文書を開いたときにまず気付くのは,フォント寸法とフォント族の違いでしょう.ここでは,
16916 \family sans
16917 サンセリフ体
16918 \family default
16919 フォントの
16920 \family sans
16921 極大
16922 \family default
16923 寸法が用いられており,出力でもこのフォントが使用されます.これは,現在スライドを作成中であることの「目印」だと考えてください.出力スライドは大きなフォントを使用
16924 するため,書ける場所は少なくなります.もちろん,既定の大きな画面フォントはWYSIWYGではなく,スライドであることの目印に過ぎません.
16925 \end_layout
16926
16927 \begin_layout Standard
16928 次に気付くのは,(ツールバー左端の)段落環境プルダウンボックスが変わっていることでしょう.通常見かける環境の多くがなくなって,代わりに5つの新しい環境が入ってい
16929 ます.これは,
16930 \family sans
16931 slides
16932 \family default
16933 クラスが,標準段落環境のうち以下のものしかサポートしていないためです.
16934 \end_layout
16935
16936 \begin_layout Itemize
16937
16938 \family sans
16939 標準
16940 \end_layout
16941
16942 \begin_layout Itemize
16943
16944 \family sans
16945 箇条書き(記号)
16946 \end_layout
16947
16948 \begin_layout Itemize
16949
16950 \family sans
16951 箇条書き(連番)
16952 \end_layout
16953
16954 \begin_layout Itemize
16955
16956 \family sans
16957 箇条書き(記述)
16958 \end_layout
16959
16960 \begin_layout Itemize
16961
16962 \family sans
16963 箇条書き(一覧)
16964 \end_layout
16965
16966 \begin_layout Itemize
16967
16968 \family sans
16969 引用(字下げあり)
16970 \end_layout
16971
16972 \begin_layout Itemize
16973
16974 \family sans
16975 引用(字下げなし)
16976 \end_layout
16977
16978 \begin_layout Itemize
16979
16980 \family sans
16981 詩句
16982 \end_layout
16983
16984 \begin_layout Itemize
16985
16986 \family sans
16987 キャプション
16988 \end_layout
16989
16990 \begin_layout Itemize
16991
16992 \family sans
16993 \SpecialChar LyX
16994 コード
16995 \end_layout
16996
16997 \begin_layout Itemize
16998
16999 \family sans
17000 コメント
17001 \end_layout
17002
17003 \begin_layout Standard
17004 これ以外の標準的な環境,例えば節見出し用の環境などは
17005 \family sans
17006 slides
17007 \family default
17008 クラスでは使えません.
17009 \end_layout
17010
17011 \begin_layout Standard
17012 一方,以下の新しい環境があります.
17013 \end_layout
17014
17015 \begin_layout Itemize
17016
17017 \family sans
17018 スライド
17019 \end_layout
17020
17021 \begin_layout Itemize
17022
17023 \family sans
17024 オーバーレイ
17025 \end_layout
17026
17027 \begin_layout Itemize
17028
17029 \family sans
17030 注釈
17031 \end_layout
17032
17033 \begin_layout Itemize
17034
17035 \family sans
17036 不可視文
17037 \end_layout
17038
17039 \begin_layout Itemize
17040
17041 \family sans
17042 可視文
17043 \end_layout
17044
17045 \begin_layout Standard
17046 これら5つの環境は,\SpecialChar LyX
17047 の「機能」のために使い方に癖があります.ご存じのように,\SpecialChar LyX
17048 では,空の段落環境に他の環境を入れることができません.それ自体は素晴らしいデザインな
17049 のですが,これは,スライドを平文以外では書き始めることができないことを意味します.これを取り扱うためには,ちょっとした「\SpecialChar LaTeX
17050 マジック」が必要になります.
17051 \end_layout
17052
17053 \begin_layout Subsubsection
17054 新環境の癖
17055 \begin_inset CommandInset label
17056 LatexCommand label
17057 name "sec:スライドの癖"
17058
17059 \end_inset
17060
17061
17062 \end_layout
17063
17064 \begin_layout Standard
17065 5つの新しい環境にはすべて,\SpecialChar LyX
17066 現行版の制約に由来する癖があります.いま述べたように,\SpecialChar LyX
17067 では,環境を別の環境で開始することが禁止されています.これを回避するために,
17068 \family sans
17069 スライド
17070 \family default
17071 環境は『
17072 \emph on
17073 ユーザーの手引き
17074 \emph default
17075 』で述べられているような段落環境ではなくなっています.
17076 \end_layout
17077
17078 \begin_layout Standard
17079
17080 \family sans
17081 スライド
17082 \family default
17083
17084 \family sans
17085 オーバーレイ
17086 \family default
17087
17088 \family sans
17089 注釈
17090 \family default
17091 は「疑似環境」だとお考えください.これらは節見出しや「
17092 \family sans
17093 キャプション
17094 \family default
17095 」のように見えますが,実際には(必要なら前段落を終了して)新しい段落環境を開始します.同様に,
17096 \family sans
17097 不可視文
17098 \family default
17099
17100 \family sans
17101 可視文
17102 \family default
17103 も「疑似コマンド」とお考えください.この2つは特定のアクションを行います.
17104 \end_layout
17105
17106 \begin_layout Standard
17107
17108 \family sans
17109 スライド
17110 \family default
17111
17112 \family sans
17113 オーバーレイ
17114 \family default
17115
17116 \family sans
17117 注釈
17118 \family default
17119
17120 \family sans
17121 不可視文
17122 \family default
17123
17124 \family sans
17125 可視文
17126 \family default
17127 の5環境に共通しているのは,長めのラベルを持つことです.このラベルに続く文章—通常は段落環境の内容になるはずですが—は,
17128 \family sans
17129 スライド
17130 \family default
17131
17132 \family sans
17133 オーバーレイ
17134 \family default
17135
17136 \family sans
17137 注釈
17138 \family default
17139
17140 \family sans
17141 不可視文
17142 \family default
17143
17144 \family sans
17145 可視文
17146 \family default
17147 では,まったく意味がなく,\SpecialChar LyX
17148 はこの部分を完全に無視します.これらの5つの環境の内容は,完全に空のままにしておいて構いません.
17149 \end_layout
17150
17151 \begin_layout Standard
17152 長めのラベルの後に文章を入れる
17153 \emph on
17154 必要は
17155 \emph default
17156 まったく
17157 \emph on
17158 ない
17159 \emph default
17160 とはいえ,何か書いておきたいこともあるかもしれません.たとえば,スライドの内容に関する短い説明などがそうでしょう.この場合,いつもどおり説明用のコメントを入力し
17161
17162 \family sans
17163 Return
17164 \family default
17165 を押してください.
17166 \end_layout
17167
17168 \begin_layout Standard
17169 一方,説明文を入れたくない場合には,\SpecialChar LyX
17170 の制約に直面します.自然が真空を憎むように,\SpecialChar LyX
17171 では,古い環境に何かを置くまでは,その中に新しい環境を入れることができません.そ
17172 こで以下のようにしてください.
17173 \end_layout
17174
17175 \begin_layout Itemize
17176 新しい
17177 \family sans
17178 スライド
17179 \family default
17180
17181 \family sans
17182 オーバーレイ
17183 \family default
17184
17185 \family sans
17186 注釈
17187 \family default
17188
17189 \family sans
17190 不可視文
17191 \family default
17192
17193 \family sans
17194 可視文
17195 \family default
17196
17197 \emph on
17198 中に入れる
17199 \emph default
17200 文章を入力してください.
17201 \end_layout
17202
17203 \begin_layout Itemize
17204 段落の先頭に移動します.
17205 \end_layout
17206
17207 \begin_layout Itemize
17208 次に
17209 \family sans
17210 Return
17211 \family default
17212 を押します.
17213 \end_layout
17214
17215 \begin_layout Itemize
17216 最後に,この新しい空の段落を
17217 \family sans
17218 スライド
17219 \family default
17220
17221 \family sans
17222 オーバーレイ
17223 \family default
17224
17225 \family sans
17226 注釈
17227 \family default
17228
17229 \family sans
17230 不可視文
17231 \family default
17232
17233 \family sans
17234 可視文
17235 \family default
17236 に変更します.
17237 \end_layout
17238
17239 \begin_layout Standard
17240 将来の\SpecialChar LyX
17241 では,このような癖が解決されることを祈っています\SpecialChar ldots
17242
17243 \begin_inset Foot
17244 status collapsed
17245
17246 \begin_layout Plain Layout
17247 (訳註)ここの記述は古くなっています.
17248 \end_layout
17249
17250 \end_inset
17251
17252
17253 \end_layout
17254
17255 \begin_layout Subsection
17256
17257 \family sans
17258 スライド
17259 \family default
17260
17261 \family sans
17262 オーバーレイ
17263 \family default
17264
17265 \family sans
17266 注釈で発表用のスライドを作る
17267 \end_layout
17268
17269 \begin_layout Subsubsection
17270
17271 \family sans
17272 スライド
17273 \family default
17274 環境を使う
17275 \end_layout
17276
17277 \begin_layout Standard
17278 もし本節が,実際のプレゼンテーションの作り方を教えてくれるものと期待されているとすれば,大いにがっかりされるかもしれません.当然ながら,プレゼンテーション用の資
17279 料を準備するうえで
17280 \family sans
17281 slides
17282 \family default
17283 クラスを役立てる方法を詳しく説明はしますが,内容をどうするかはあなた次第です(そしてこれも\SpecialChar LyX
17284 の哲学です).
17285 \end_layout
17286
17287 \begin_layout Standard
17288
17289 \family sans
17290 スライド
17291 \family default
17292 環境を選択すれば(方法は第
17293 \begin_inset CommandInset ref
17294 LatexCommand ref
17295 reference "sec:スライドの癖"
17296
17297 \end_inset
17298
17299 節参照のこと),\SpecialChar LyX
17300 は新規スライドを開始します.この環境ないし「疑似環境」のラベルは,鮮やかな青で「新規スライド:」と表示されます.この環境の後のテキスト環境や段落
17301 環境は,すべて新規スライドに入ります.簡単ですよね.
17302 \end_layout
17303
17304 \begin_layout Standard
17305 Slidesは,おそらく\SpecialChar LyX
17306 の中で強制的に改頁をしなくてはならない唯一のクラスです(これは
17307 \family sans
17308 段落レイアウト
17309 \family default
17310 ダイアログで指定できます).実際,一つのスライドの内容を入力し終わったら,改頁したくなるはずです.仮に一つのスライドに物理的に入りきらない文章を入力したとすると
17311 ,入りきらない部分は,次の新規スライドにまわされます.しかしながら,入りきらない部分のスライドにはページ番号が付きませんので,こうするのはお勧めしません.その上
17312 ,一枚に収まらないスライドでは,
17313 \family sans
17314 オーバーレイ
17315 \family default
17316 を使用すると干渉する恐れがあります.
17317 \end_layout
17318
17319 \begin_layout Standard
17320
17321 \family sans
17322 オーバーレイ
17323 \family default
17324 環境と
17325 \family sans
17326 注釈
17327 \family default
17328 環境も,
17329 \family sans
17330 スライド
17331 \family default
17332 環境と同様の動作を示します.これらは,青の代わりに鮮やかなマゼンタで,それぞれ「
17333 \noun on
17334 新規オーバーレイ
17335 \noun default
17336 :」ないし「
17337 \noun on
17338 新規注釈:
17339 \noun default
17340 」というラベルを表示します.ラベルのフォントも,3つの環境でそれぞれ異なるものが使用されます.
17341 \end_layout
17342
17343 \begin_layout Standard
17344
17345 \family sans
17346 スライド
17347 \family default
17348 と同様に,
17349 \family sans
17350 オーバーレイ
17351 \family default
17352
17353 \family sans
17354 注釈
17355 \family default
17356 の内容が,一つのスライドないしページに物理的に収まりきらない場合には,余分は新規スライドに回されます.この場合には,
17357 \family sans
17358 注釈
17359 \family default
17360
17361 \family sans
17362 オーバーレイ
17363 \family default
17364 の本来の目的が達せられなくなりますので,ここでもこのような状態は避けるべきでしょう.
17365 \end_layout
17366
17367 \begin_layout Subsubsection
17368
17369 \family sans
17370 スライドでオーバーレイを使用する
17371 \end_layout
17372
17373 \begin_layout Standard
17374
17375 \family sans
17376 オーバーレイ
17377 \family default
17378 の背後にある考え方は,別のスライドの上にスライドを載せようとするものです.メインの
17379 \family sans
17380 スライド
17381 \family default
17382 に図があるとき,関連した文章を表示する前に,図について議論を進めたいと思うことがあるかもしれません.これを行うひとつの方法は,
17383 \family sans
17384 スライド
17385 \family default
17386 で後に表示したい部分に黒い紙の蓋を貼り付けてしまうことですが,この方法は,たとえばグラフを他のグラフに重ねたい場合などには,うまく行きません.この場合には,二つ
17387 のグラフを揃えるために,重ねる二つのスライドを,喋りながら手探りで揃えなくてはなりません.これらのような場合には,
17388 \family sans
17389 オーバーレイ
17390 \family default
17391 環境を使えば,もっと楽になります.
17392 \end_layout
17393
17394 \begin_layout Standard
17395
17396 \family sans
17397 オーバーレイ
17398 \family default
17399 は,「親」
17400 \family sans
17401 スライド
17402 \family default
17403 のページ番号を引継ぎ,その後に「
17404 \family typewriter
17405 -a
17406 \family default
17407 」を付け加えます
17408 \begin_inset Foot
17409 status collapsed
17410
17411 \begin_layout Plain Layout
17412 想像できるように,複数のオーバーレイがあれば,「
17413 \family typewriter
17414 -a
17415 \family default
17416 」「
17417 \family typewriter
17418 -b
17419 \family default
17420 」「
17421 \family typewriter
17422 -c
17423 \family default
17424 」などが親スライドのページ番号に付け加えられます.
17425 \end_layout
17426
17427 \end_inset
17428
17429 .当然のことながら,
17430 \family sans
17431 スライド
17432 \family default
17433
17434 \family sans
17435 オーバーレイ
17436 \family default
17437 の内容は両方とも,1枚のスライドに物理的に収まるようになっていなければなりません.
17438 \family sans
17439 オーバーレイ
17440 \family default
17441
17442 \family sans
17443 スライド
17444 \family default
17445 の「一部」であると考えるのがよいでしょう.\SpecialChar LyX
17446 では,
17447 \family sans
17448 オーバーレイ
17449 \family default
17450 のラベルを
17451 \family sans
17452 スライド
17453 \family default
17454 のラベルよりも下げることで,このことを視覚的に表しています.また,印刷可能な出力を生成すると,
17455 \family sans
17456 オーバーレイ
17457 \family default
17458 と親
17459 \family sans
17460 スライド
17461 \family default
17462 両方の四隅に,揃えマーカーがあることに気づかれるはずです.これは,2枚のスライドを物理的に重ね合わせるための補助となるものです.
17463 \end_layout
17464
17465 \begin_layout Standard
17466 2つのスライドをオーバーレイさせる際の大きな問題は,2枚のスライドの内容を揃えることです.2枚目のスライドのグラフには,どれだけの余白を残しておくべきなのでしょ
17467 うか?さらにややこしく,2枚目のスライドにグラフと文章を入れたいときに,その間に割り込んでしまうような文章がメインスライドにある場合には,どうでしょうか?正しい
17468 寸法の垂直スペースを挿入してみることもできるでしょう.しかし,もっと良い方法として,
17469 \family sans
17470 不可視文
17471 \family default
17472
17473 \family sans
17474 可視文
17475 \family default
17476 を使用する方法があります.
17477 \end_layout
17478
17479 \begin_layout Standard
17480 これらの名前が意味するとおり,
17481 \family sans
17482 不可視文
17483 \family default
17484
17485 \family sans
17486 可視文
17487 \family default
17488 は,それぞれ続く文章すべてを見えなくしたり見えるようにしたりするコマンド型の段落環境です.しかしながら,第
17489 \begin_inset CommandInset ref
17490 LatexCommand ref
17491 reference "sec:スライドの癖"
17492
17493 \end_inset
17494
17495 節で述べたように,この2つの環境の
17496 \emph on
17497
17498 \emph default
17499 には何も置くことができません.
17500 \family sans
17501 不可視文
17502 \family default
17503 を作成すると,「<以下不可視文>」と書かれた水色のラベルが,ページに中央揃えで表示されます.このラベルに続く段落は,それが置かれるべき
17504 \family sans
17505 スライド
17506 \family default
17507 (あるいは
17508 \family sans
17509 オーバーレイ
17510 \family default
17511 ;どちらでも同じことです)部分に,代わりに空白の部分が置かれます.
17512 \end_layout
17513
17514 \begin_layout Standard
17515
17516 \family sans
17517 可視文
17518 \family default
17519 の場合には,中央揃えのラベルは,鮮やかな緑の「<以下可視文>」となります.このラベル以降の段落は,通常通りの挙動を示します.新規の
17520 \family sans
17521 スライド
17522 \family default
17523
17524 \family sans
17525 オーバーレイ
17526 \family default
17527
17528 \family sans
17529 注釈
17530 \family default
17531 を開始すると,
17532 \family sans
17533 不可視文
17534 \family default
17535 は自動的に終了されることに注意してください.したがって,
17536 \family sans
17537 スライド
17538 \family default
17539 の終わりでは,
17540 \family sans
17541 可視文
17542 \family default
17543 を使用する必要はありません.
17544 \end_layout
17545
17546 \begin_layout Standard
17547 ここまでで,
17548 \family sans
17549 スライド
17550 \family default
17551
17552 \family sans
17553 オーバーレイ
17554 \family default
17555 上で
17556 \family sans
17557 不可視文
17558 \family default
17559
17560 \family sans
17561 可視文
17562 \family default
17563 を適切に使用して,スライドをオーバーレイさせる方法が明らかになったことと思います.
17564 \end_layout
17565
17566 \begin_layout Enumerate
17567 メインのスライドか
17568 \family sans
17569 オーバーレイ
17570 \family default
17571 かに関わらず,スライド上に現れるすべてを含んだ
17572 \family sans
17573 スライド
17574 \family default
17575 を作成します.
17576 \end_layout
17577
17578 \begin_layout Enumerate
17579
17580 \family sans
17581 オーバーレイ
17582 \family default
17583 のみに表示するすべての図や段落の前に,
17584 \family sans
17585 不可視文
17586 \family default
17587 環境を挿入し,必要ならば,
17588 \family sans
17589 オーバーレイ
17590 \family default
17591 のみの文章の後に
17592 \family sans
17593 可視文
17594 \family default
17595 環境を挿入します.
17596 \end_layout
17597
17598 \begin_layout Enumerate
17599
17600 \family sans
17601 スライド
17602 \family default
17603 の直後から,
17604 \family sans
17605 オーバーレイ
17606 \family default
17607 を開始します.
17608 \end_layout
17609
17610 \begin_layout Enumerate
17611 この
17612 \family sans
17613 スライド
17614 \family default
17615 の内容を
17616 \family sans
17617 オーバーレイ
17618 \family default
17619 にコピーします.
17620 \end_layout
17621
17622 \begin_layout Enumerate
17623
17624 \family sans
17625 オーバーレイ
17626 \family default
17627 内部の
17628 \family sans
17629 不可視文
17630 \family default
17631 行をすべて
17632 \family sans
17633 不可視文
17634 \family default
17635 に変更し,
17636 \family sans
17637 可視文
17638 \family default
17639
17640 \family sans
17641 不可視文
17642 \family default
17643 に変更します.
17644 \end_layout
17645
17646 \begin_layout Standard
17647 これだけです.これで
17648 \family sans
17649 オーバーレイ
17650 \family default
17651 ができあがりました.
17652 \end_layout
17653
17654 \begin_layout Standard
17655 \SpecialChar LyX
17656  
17657 \family sans
17658 slides
17659 \family default
17660 クラスをデザインする上で,ひとつ残された問題があります.段落途中の文章を不可視にしたり,不可視段落の途中の文章を再度可視にしたりすることはできないのです.これを
17661 実現するためには,\SpecialChar LaTeX
17662 コードを埋め込む必要があります
17663 \begin_inset Foot
17664 status collapsed
17665
17666 \begin_layout Plain Layout
17667 このコマンドは,
17668 \end_layout
17669
17670 \begin_layout Itemize
17671
17672 \family typewriter
17673 {
17674 \backslash
17675 invisible \SpecialChar ldots
17676  }
17677 \end_layout
17678
17679 \begin_layout Itemize
17680
17681 \family typewriter
17682 {
17683 \backslash
17684 visible \SpecialChar ldots
17685  }
17686 \end_layout
17687
17688 \begin_layout Plain Layout
17689 \SpecialChar ldots
17690 のような形となり,\SpecialChar TeX
17691 としてマークする必要があります.「可視性」を変更したい文章は,波括弧のあいだ(そして
17692 \family typewriter
17693
17694 \backslash
17695 invisible
17696 \family default
17697 ないし
17698 \family typewriter
17699
17700 \backslash
17701 visible
17702 \family default
17703 コマンドの後ろ)に入れます.\SpecialChar TeX
17704 としてマークする方法がわからない場合は,
17705 \emph on
17706 ユーザーの手引き
17707 \emph default
17708 をご参照ください.
17709 \end_layout
17710
17711 \end_inset
17712
17713
17714 \end_layout
17715
17716 \begin_layout Subsubsection
17717
17718 \family sans
17719 スライドで注釈を使う
17720 \family default
17721
17722 \begin_inset CommandInset label
17723 LatexCommand label
17724 name "sec:スライド注釈"
17725
17726 \end_inset
17727
17728
17729 \end_layout
17730
17731 \begin_layout Standard
17732
17733 \family sans
17734 オーバーレイ
17735 \family default
17736 と同様,
17737 \family sans
17738 注釈
17739 \family default
17740 も「親」
17741 \family sans
17742 スライド
17743 \family default
17744 に関連付けられています.ここでも\SpecialChar LyX
17745
17746 \family sans
17747 スライド
17748 \family default
17749 クラスは視覚的な効果を与えています.
17750 \family sans
17751 注釈
17752 \family default
17753 のラベルは
17754 \family sans
17755 スライド
17756 \family default
17757 よりも短く(オーバーレイのラベルよりも長いですが),
17758 \family sans
17759 オーバーレイ
17760 \family default
17761 のラベルと同様,派手な赤紫色です.加えて,印刷した
17762 \family sans
17763 注釈
17764 \family default
17765 には,「親」スライドのページ番号に「
17766 \family typewriter
17767 -
17768 \family default
17769 1」「
17770 \family typewriter
17771 -
17772 \family default
17773 2」「
17774 \family typewriter
17775 -
17776 \family default
17777 3」等を付けたページ番号が付けられます.1つの
17778 \family sans
17779 スライド
17780 \family default
17781 には,複数の
17782 \family sans
17783 注釈
17784 \family default
17785 を関連付けることができるので,
17786 \family sans
17787 スライド
17788 \family default
17789
17790 \family sans
17791 オーバーレイ
17792 \family default
17793 と同じように,長い注釈は,1枚の紙に収まるように分割したいと思われるに違いありません.
17794 \end_layout
17795
17796 \begin_layout Standard
17797
17798 \family sans
17799 注釈
17800 \family default
17801 の目的は明らかです.
17802 \family sans
17803 スライド
17804 \family default
17805 に関して付け加えたいことを書き留めておくことです.特定の
17806 \family sans
17807 スライド
17808 \family default
17809 についての覚書として使うこともできます.後者の場合には,タイムマーカを利用したいこともあるかもしれません.現在のところ,\SpecialChar LyX
17810
17811 \family sans
17812 スライド
17813 \family default
17814 クラスは,
17815 \noun on
17816 Sli
17817 \noun default
17818 \SpecialChar TeX
17819 の機能であるタイムマーカを「ネイティブには」サポートしていません.したがって,\SpecialChar LaTeX
17820 コードを使用することに頼らなくてはなりません.
17821 \end_layout
17822
17823 \begin_layout Standard
17824 タイムマーカを使用するには,クラスオプション「
17825 \family typewriter
17826 clock
17827 \family default
17828 」を追加指定する必要があります(第
17829 \begin_inset CommandInset ref
17830 LatexCommand ref
17831 reference "sec:slidesetup"
17832
17833 \end_inset
17834
17835 節参照).このオプションはタイムマーカ機能を有効にして,生成したすべての
17836 \family sans
17837 注釈
17838 \family default
17839 の左下にタイムマーカを表示します.タイムマーカに表示するものを設定するには,\SpecialChar LaTeX
17840 コマンド「
17841 \family typewriter
17842
17843 \backslash
17844 settime{}
17845 \family default
17846 」および「
17847 \family typewriter
17848
17849 \backslash
17850 addtime{}
17851 \family default
17852 」を使用します.両コマンドは,秒で測った時間を引数にとります.「
17853 \family typewriter
17854
17855 \backslash
17856 settime{}
17857 \family default
17858 」は,タイムマーカを特定の時間に設定し,「
17859 \family typewriter
17860
17861 \backslash
17862 addtime{}
17863 \family default
17864 」は,タイムマーカを指定した分だけ進めます.このようにタイムマーカと
17865 \family sans
17866 注釈
17867 \family default
17868 を用いれば,特定の
17869 \family sans
17870 スライド
17871 \family default
17872 にどれだけの時間をかけるのか忘れないでいられます.
17873 \end_layout
17874
17875 \begin_layout Standard
17876 最後に,説明しておくべき機能がもう一つあります.当然ながら,
17877 \family sans
17878 スライド
17879 \family default
17880
17881 \family sans
17882 オーバーレイ
17883 \family default
17884 はすべてスライドに,
17885 \family sans
17886 注釈
17887 \family default
17888 はすべて普通の紙に印刷したいはずです.しかしながら,
17889 \family sans
17890 注釈
17891 \family default
17892 は関連付けられた親スライドの直後に
17893 \emph on
17894 来なくてはなりません
17895 \emph default
17896 .ユーザーはどうしたら良いのでしょうか.
17897 \end_layout
17898
17899 \begin_layout Standard
17900 幸いなことに,どれを印刷するか選択することを可能にする\SpecialChar LaTeX
17901 コマンドが,2種類あります.どちらも文書のプリアンブルに記述されなくてはなりません.コマンド「
17902 \family typewriter
17903
17904 \backslash
17905 onlyslides{
17906 \backslash
17907 slides}
17908 \family default
17909 」は,出力に
17910 \family sans
17911 スライド
17912 \family default
17913
17914 \family sans
17915 オーバーレイ
17916 \family default
17917 のみが含まれるようにするものです.同様に,「
17918 \family typewriter
17919
17920 \backslash
17921 onlynotes{
17922 \backslash
17923 notes}
17924 \family default
17925 」は
17926 \family sans
17927 注釈
17928 \family default
17929 以外の出力をすべて抑制します.私のアドバイスとしては,両コマンドをプリアンブルに書いておいて,最初は両方ともコメントアウトしておくと良いでしょう.そうすれば,執
17930 筆時にはプレゼンテーション全体をプレビューすることができます.いったん書き終えたならば,二つのうち一方のコメントを外して,印刷したい方を選ぶことができます.私な
17931 らば,まず
17932 \family typewriter
17933
17934 \backslash
17935 onlyslides{
17936 \backslash
17937 slides}
17938 \family default
17939 のコメントを外して,現ファイル名に「*
17940 \family typewriter
17941 -slides
17942 \family default
17943 」を付けた新たなファイルに出力を行ない,今度はこの行をふたたびコメントアウトするとともに,「
17944 \family typewriter
17945
17946 \backslash
17947 onlynotes{
17948 \backslash
17949 notes
17950 \family default
17951 }」のコメントを外して,これを「
17952 \family typewriter
17953 *-notes.ps
17954 \family default
17955 」というファイルに出力します.そうすれば,必要に応じて,スライドまたは通常の紙をプリンタにセットし,一方のファイルをプリンタに送ればよいのです.
17956 \end_layout
17957
17958 \begin_layout Standard
17959
17960 \family typewriter
17961
17962 \backslash
17963 onlyslides{}
17964 \family default
17965 」および「
17966 \family typewriter
17967
17968 \backslash
17969 onlynotes{}
17970 \family default
17971 」コマンドには,他の引数を与えることもできます.詳しくは,\SpecialChar LaTeX
17972 の良書をご覧ください.
17973 \end_layout
17974
17975 \begin_layout Subsection
17976
17977 \family sans
17978 slides
17979 \family default
17980 クラスのひな型ファイル
17981 \end_layout
17982
17983 \begin_layout Standard
17984
17985 \family sans
17986 slides
17987 \family default
17988 クラス用のひな型ファイルとして「
17989 \family typewriter
17990 slides.lyx
17991 \family default
17992 」が提供されています.これを使用するには,新しいプレゼンテーションを作り始める際に,
17993 \family sans
17994 ファイル\SpecialChar menuseparator
17995 新規(ひな型使用)
17996 \family default
17997 メニューを選択してください.すると新規ファイルには,
17998 \family sans
17999 スライド
18000 \family default
18001
18002 \family sans
18003 オーバーレイ
18004 \family default
18005
18006 \family sans
18007 注釈
18008 \family default
18009 の組が,例として含まれており,
18010 \family sans
18011 スライド
18012 \family default
18013
18014 \family sans
18015 オーバーレイ
18016 \family default
18017 には,さらに
18018 \family sans
18019 不可視文
18020 \family default
18021
18022 \family sans
18023 可視文
18024 \family default
18025 の使用例も含まれています.また,プリアンブルには,次のように書き込まれています.
18026 \end_layout
18027
18028 \begin_layout LyX-Code
18029 % Uncomment to print out only slides and overlays
18030 \end_layout
18031
18032 \begin_layout LyX-Code
18033 %
18034 \end_layout
18035
18036 \begin_layout LyX-Code
18037 %
18038 \backslash
18039 onlyslides{
18040 \backslash
18041 slides}
18042 \begin_inset Newline newline
18043 \end_inset
18044
18045  
18046 \end_layout
18047
18048 \begin_layout LyX-Code
18049 % Uncomment to print out only notes
18050 \end_layout
18051
18052 \begin_layout LyX-Code
18053 %
18054 \end_layout
18055
18056 \begin_layout LyX-Code
18057 %
18058 \backslash
18059 onlynotes{
18060 \backslash
18061 notes}
18062 \end_layout
18063
18064 \begin_layout Standard
18065 最後に,私はこの文書クラスを,\SpecialChar LaTeX2e
18066 の組み込みクラスである「
18067 \noun on
18068 Sli\SpecialChar TeX
18069
18070 \noun default
18071 エミュレーション」クラスをサポートする目的で作成しました.私も\SpecialChar LyX
18072 チームの他のメンバーも,この組み込みスライドクラスを使用することに賛成したり反対したりするものでは
18073 ありません.これは単に,ユーザーがこれを使いたかったり必要としたりしたときのためにあるものです.プレゼンテーションを作成するためには,
18074 \family sans
18075 Foils
18076 \family default
18077 クラス(第
18078 \begin_inset CommandInset ref
18079 LatexCommand ref
18080 reference "sec:foiltex"
18081
18082 \end_inset
18083
18084 節参照)や「
18085 \family typewriter
18086 seminar
18087 \family default
18088 」パッケージ(一部の\SpecialChar TeX
18089 頒布版に含まれています)のように,他の\SpecialChar LaTeX2e
18090 クラスも存在します.私はこれらについては知らないのですが,他にどのようなことができるのか試してみてくだ
18091 さい.
18092 \end_layout
18093
18094 \begin_layout Chapter
18095 ソフトウェアを追加する必要がある \SpecialChar LyX
18096 機能
18097 \end_layout
18098
18099 \begin_layout Section
18100 \SpecialChar TeX
18101 のチェック
18102 \end_layout
18103
18104 \begin_layout Standard
18105
18106 \noun on
18107 Asger Alstrup
18108 \noun default
18109
18110 \end_layout
18111
18112 \begin_layout Subsection
18113 はじめに
18114 \end_layout
18115
18116 \begin_layout Standard
18117
18118 \family typewriter
18119 chktex
18120 \family default
18121 プログラムが導入されていると
18122 \begin_inset Foot
18123 status collapsed
18124
18125 \begin_layout Plain Layout
18126 \SpecialChar LaTeX
18127 頒布版としてMiK\SpecialChar TeX
18128 を使用している場合には,
18129 \family typewriter
18130 chktex
18131 \family default
18132 はまだ利用可能ではありません.
18133 \end_layout
18134
18135 \end_inset
18136
18137
18138 \family sans
18139 ツール
18140 \family default
18141 メニューの下に,
18142 \family sans
18143 \SpecialChar TeX
18144 構文チェック
18145 \family default
18146 という項目が表示されます.
18147 \family typewriter
18148 chktex
18149 \family default
18150 は,CTAN
18151 \begin_inset Newline newline
18152 \end_inset
18153
18154
18155 \begin_inset CommandInset href
18156 LatexCommand href
18157 target "http://www.ctan.org/tex-archive/help/Catalogue/entries/chktex.html"
18158 literal "false"
18159
18160 \end_inset
18161
18162 から入手することができます.
18163 \end_layout
18164
18165 \begin_layout Standard
18166
18167 \family sans
18168 Chk\SpecialChar TeX
18169
18170 \family default
18171 パッケージは,\SpecialChar LaTeX
18172 の構成物には直感的でないものもあり,すぐ忘れてしまいがちであるのに不満を感じた
18173 \begin_inset Flex Noun
18174 status collapsed
18175
18176 \begin_layout Plain Layout
18177 Jens T.
18178  Berger Thielemann
18179 \end_layout
18180
18181 \end_inset
18182
18183 が書いたプログラムです.このプログラムは,\SpecialChar LaTeX
18184 ファイルを走査して,ファイルの整合性をチェックし,犯しがちな誤りを見つけ出します.別の技術用語では,LaTeXにおける
18185 \family typewriter
18186 lint
18187 \family default
18188 であるとも言えます.
18189 \end_layout
18190
18191 \begin_layout Standard
18192 さて,\SpecialChar LyX
18193 はつねに正しい\SpecialChar LaTeX
18194 ファイルを生成するはずなのに,文法チェッカーは\SpecialChar LyX
18195 で何をするというのでしょうか.答えは簡単です.
18196 \family typewriter
18197 lint
18198 \family default
18199 がC言語プログラムの
18200 \emph on
18201 文法
18202 \emph default
18203 をチェックするだけでなく,打ち間違いによる
18204 \emph on
18205 意味上の
18206 \emph default
18207 チェックも行うように,
18208 \family sans
18209 Chk\SpecialChar TeX
18210
18211 \family default
18212 は,文法エラーの他に犯しがちな
18213 \emph on
18214 写植上の
18215 \emph default
18216 誤りも検出してくれるからです.
18217 \family sans
18218 Chk\SpecialChar TeX
18219
18220 \family default
18221 は,以下のような誤りを検出することができます.
18222 \end_layout
18223
18224 \begin_layout Itemize
18225 省略記号の検出:
18226 \begin_inset Newline newline
18227 \end_inset
18228
18229 ...ではなく\SpecialChar ldots
18230 を使わなくてはなりません
18231 \end_layout
18232
18233 \begin_layout Itemize
18234 括弧の前後にスペースを置かない:
18235 \begin_inset Newline newline
18236 \end_inset
18237
18238 ( wrong spacing ):誤った空白
18239 \end_layout
18240
18241 \begin_layout Itemize
18242 よく使われる省略形の後ろは通常スペースにする:
18243 \begin_inset Newline newline
18244 \end_inset
18245
18246 e.
18247 \begin_inset space \thinspace{}
18248 \end_inset
18249
18250 g.
18251 \begin_inset space \space{}
18252 \end_inset
18253
18254 is too wide spacing.:広すぎる空白
18255 \end_layout
18256
18257 \begin_layout Itemize
18258 直前の文章が大文字で終わっているときに,文末スペースに直す:
18259 \begin_inset Newline newline
18260 \end_inset
18261
18262 This is a TEST.
18263  And this is wrong spacing.:誤った空白
18264 \end_layout
18265
18266 \begin_layout Itemize
18267 ラベルや類似コマンドの前のスペース:
18268 \begin_inset Newline newline
18269 \end_inset
18270
18271 ラベルが別のページに行ってしまわないように,ラベルは文章に接していなくてはなりません. 
18272 \begin_inset CommandInset label
18273 LatexCommand label
18274 name "sec:chktex"
18275
18276 \end_inset
18277
18278  
18279 \begin_inset Foot
18280 status collapsed
18281
18282 \begin_layout Plain Layout
18283 この脚注は,正しくないページに行ってしまう恐れがあります.
18284 \end_layout
18285
18286 \end_inset
18287
18288  このラベルは離れすぎです.
18289 \end_layout
18290
18291 \begin_layout Itemize
18292 参照の前にハードスペースではなくスペース:
18293 \begin_inset Newline newline
18294 \end_inset
18295
18296 運が悪ければ,参照文字列と参照番号のあいだでちょうど改行されてしまい,残念な結果となります.第
18297 \begin_inset CommandInset ref
18298 LatexCommand ref
18299 reference "sec:chktex"
18300
18301 \end_inset
18302
18303 節をご覧ください.
18304 \end_layout
18305
18306 \begin_layout Itemize
18307 数字のあいだで
18308 \begin_inset Formula $\times$
18309 \end_inset
18310
18311 ではなく「x」が使われている:
18312 \begin_inset Newline newline
18313 \end_inset
18314
18315 2x2は,
18316 \begin_inset Formula $2\times2$
18317 \end_inset
18318
18319 よりも安っぽく見えます.
18320 \end_layout
18321
18322 \begin_layout Standard
18323 などなど\SpecialChar ldots
18324
18325 \family sans
18326 Chk\SpecialChar TeX
18327
18328 \family default
18329 は,印刷する前に文書を「仕上げる」上で,たいへん価値のあるツールです.必須のスペルチェックを終えた直後,組版の微調整をする前には,これを実行するべきです.
18330 \end_layout
18331
18332 \begin_layout Subsection
18333 使いかた
18334 \end_layout
18335
18336 \begin_layout Standard
18337 このプログラムを導入したならば,使うのは
18338 \family sans
18339 ツール\SpecialChar menuseparator
18340 \SpecialChar TeX
18341 構文チェック
18342 \family default
18343 を選択するだけなので簡単です.こうすると,\SpecialChar LyX
18344 は使用中の文書の\SpecialChar LaTeX
18345 ファイルを生成して,
18346 \family sans
18347 Chk\SpecialChar TeX
18348
18349 \family default
18350 を起動し,当該ファイルを検査しますが,
18351 \family sans
18352 Chk\SpecialChar TeX
18353
18354 \family default
18355 から警告があった場合には,それを含んだ「エラーボックス」を\SpecialChar LyX
18356 中に挿入します.警告は,誤りのある箇所のそばに置かれるので,メニュー項目の
18357 \family sans
18358 移動\SpecialChar menuseparator
18359 エラー
18360 \family default
18361 を選択するか,既定の
18362 \family typewriter
18363 cua
18364 \family default
18365
18366 \begin_inset Flex Ruby
18367 status collapsed
18368
18369 \begin_layout Plain Layout
18370
18371 \begin_inset Argument post:1
18372 status collapsed
18373
18374 \begin_layout Plain Layout
18375 キー
18376 \end_layout
18377
18378 \end_inset
18379
18380
18381 \end_layout
18382
18383 \end_inset
18384
18385 設定ファイルならば
18386 \begin_inset Flex Ruby
18387 status collapsed
18388
18389 \begin_layout Plain Layout
18390
18391 \family roman
18392 \series medium
18393 \shape up
18394 \size normal
18395 \emph off
18396 \bar no
18397 \noun off
18398 \color none
18399 捷径
18400 \family default
18401 \series default
18402 \shape default
18403 \size default
18404 \emph default
18405 \bar default
18406 \noun default
18407 \color inherit
18408
18409 \begin_inset Argument post:1
18410 status collapsed
18411
18412 \begin_layout Plain Layout
18413 ショートカット
18414 \end_layout
18415
18416 \end_inset
18417
18418
18419 \end_layout
18420
18421 \end_inset
18422
18423
18424 \family sans
18425 C-g
18426 \family default
18427 を押せば,簡単に警告の箇所を見出すことができます.エラーボックスを開けるには,マウスでボックスをクリックするか,
18428 \family typewriter
18429 cua
18430 \family default
18431 鍵設定の場合には捷径鍵
18432 \family sans
18433 C-i
18434 \family default
18435
18436 \family typewriter
18437 emacs
18438 \family default
18439 鍵設定の場合は捷径鍵
18440 \family sans
18441 C-o
18442 \family default
18443 を押します.警告を読み,それが誤りを示していれば修正します.警告が何を意味しているか理解しにくい場合には,無視しても問題はありません.画面上の文書と,
18444 \family sans
18445 Chk\SpecialChar TeX
18446
18447 \family default
18448 を起動する際に行なわれる実際の技術的な操作のあいだには,隠された層があり,この隔たりのせいで,一部の警告が不可解なものになったり,明らかに馬鹿げたものになる場合
18449 があるのです.
18450 \end_layout
18451
18452 \begin_layout Standard
18453 本文書自体,この機能を確認する良い材料になりますので,実行してみてください.すると,かなりの量の警告が出るはずです.これはコンピュータが敏感すぎるせいですので,
18454 警告のほとんどは実際には警告に値しません.
18455 \end_layout
18456
18457 \begin_layout Subsection
18458 微調整のしかた
18459 \end_layout
18460
18461 \begin_layout Standard
18462 場合によっては,
18463 \family sans
18464 Chk\SpecialChar TeX
18465
18466 \family default
18467 は,あなたが望むよりも煩すぎると思うかもしれません.そのような場合には,必要と思うまで
18468 \family sans
18469 Chk\SpecialChar TeX
18470
18471 \family default
18472 を無効にするか,あなたにもう少し合うように
18473 \family sans
18474 Chk\SpecialChar TeX
18475
18476 \family default
18477 を調整することができます.
18478 \end_layout
18479
18480 \begin_layout Standard
18481
18482 \family sans
18483 Chk\SpecialChar TeX
18484
18485 \family default
18486 は調整や拡張がひじょうに柔軟なのですが,\SpecialChar LyX
18487 における
18488 \family sans
18489 Chk\SpecialChar TeX
18490
18491 \family default
18492 関連の問題が,それですべて解決すると思うべきではありません.\SpecialChar LyX
18493 は,
18494 \family sans
18495 Chk\SpecialChar TeX
18496
18497 \family default
18498 出力
18499 \begin_inset Foot
18500 status collapsed
18501
18502 \begin_layout Plain Layout
18503
18504 \family sans
18505 chktex
18506 \family default
18507 の実際の出力は,
18508 \family sans
18509 chktex
18510 \family default
18511 を実行した直後に
18512 \family sans
18513 文書\SpecialChar menuseparator
18514 \SpecialChar LaTeX
18515 ログ
18516 \family default
18517 を使えば見ることができます.
18518 \end_layout
18519
18520 \end_inset
18521
18522 から得た行番号と内部構造を一致させるため,やや特殊な\SpecialChar LaTeX
18523 ファイルを生成しなくてはならないので,警告の一部は正しく表示されていないように見えるでしょう.これに対処する
18524 ためには,以下の2つの方法があります.
18525 \end_layout
18526
18527 \begin_layout Itemize
18528
18529 \family sans
18530 \begin_inset Flex MenuItem
18531 status collapsed
18532
18533 \begin_layout Plain Layout
18534
18535 \family sans
18536 ツール\SpecialChar menuseparator
18537 設定\SpecialChar menuseparator
18538 出力\SpecialChar menuseparator
18539 \SpecialChar LaTeX
18540 \SpecialChar menuseparator
18541 Check\SpecialChar TeX
18542 コマンド
18543 \end_layout
18544
18545 \end_inset
18546
18547
18548 \family default
18549 中の
18550 \family sans
18551 Chk\SpecialChar TeX
18552
18553 \family default
18554 起動コマンドラインを調整するか,グローバルな
18555 \family sans
18556 Chk\SpecialChar TeX
18557
18558 \family default
18559 の設定ファイル(通常は
18560 \begin_inset Flex Code
18561 status collapsed
18562
18563 \begin_layout Plain Layout
18564 chktexrc
18565 \end_layout
18566
18567 \end_inset
18568
18569 ファイル)を調整します.コマンドラインからどの警告を有効・無効にできるかは以下をご覧ください.
18570 \end_layout
18571
18572 \begin_layout Itemize
18573
18574 \family sans
18575 ファイル\SpecialChar menuseparator
18576 書き出し\SpecialChar menuseparator
18577 \SpecialChar LaTeX
18578
18579 \family default
18580 を使って文書を\SpecialChar LaTeX
18581 ファイルに変換し,そのファイルに対して
18582 \family typewriter
18583 chktex
18584 \family default
18585 を手動で実行します.このようにすると,\SpecialChar LyX
18586 文書中の対応箇所を見つけるのがやや面倒ですが,少し我慢すれば見つけることができます.
18587 \end_layout
18588
18589 \begin_layout Standard
18590 以下は,
18591 \family sans
18592 設定
18593 \family default
18594 で有効化・無効化できる警告メッセージです.警告を無効にするには
18595 \family typewriter
18596 -n#
18597 \family default
18598 ,有効にするには
18599 \family typewriter
18600 -w#
18601 \family default
18602 を用います.イタリック表示の項目は,既定で無効となっています.既定値は "
18603 \family typewriter
18604 chktex -n1 -n3 -n6 -n9 -n22 -n25 -n30 -n38
18605 \family default
18606 "です.
18607 \end_layout
18608
18609 \begin_layout Standard
18610 \SpecialChar LyX
18611 は,
18612 \family typewriter
18613 chktex
18614 \family default
18615 と通信するために,他のコマンドラインパラメータを特定の方法で使用しているため,メッセージを有効化・無効化する以外のオプションを使うべきではありません.
18616 \end_layout
18617
18618 \begin_layout Enumerate
18619
18620 \size small
18621 \emph on
18622 Command terminated with space.
18623 \end_layout
18624
18625 \begin_layout Enumerate
18626
18627 \size small
18628 Non-breaking space (
18629 \begin_inset Quotes eld
18630 \end_inset
18631
18632
18633 \family typewriter
18634 ~
18635 \family default
18636
18637 \begin_inset Quotes erd
18638 \end_inset
18639
18640 ) should have been used.
18641 \end_layout
18642
18643 \begin_layout Enumerate
18644
18645 \size small
18646 \emph on
18647 You should enclose the previous parenthesis with 
18648 \begin_inset Quotes eld
18649 \end_inset
18650
18651
18652 \family typewriter
18653 {}
18654 \family default
18655
18656 \begin_inset Quotes erd
18657 \end_inset
18658
18659 .
18660 \end_layout
18661
18662 \begin_layout Enumerate
18663
18664 \size small
18665 Italic correction (
18666 \begin_inset Quotes eld
18667 \end_inset
18668
18669
18670 \family typewriter
18671
18672 \backslash
18673 /
18674 \family default
18675
18676 \begin_inset Quotes erd
18677 \end_inset
18678
18679 ) found in non-italic buffer.
18680 \end_layout
18681
18682 \begin_layout Enumerate
18683
18684 \size small
18685 Italic correction (
18686 \begin_inset Quotes eld
18687 \end_inset
18688
18689
18690 \family typewriter
18691
18692 \backslash
18693 /
18694 \family default
18695
18696 \begin_inset Quotes erd
18697 \end_inset
18698
18699 ) found more than once.
18700 \end_layout
18701
18702 \begin_layout Enumerate
18703
18704 \size small
18705 \emph on
18706 No italic correction (
18707 \begin_inset Quotes eld
18708 \end_inset
18709
18710
18711 \family typewriter
18712
18713 \backslash
18714 /
18715 \family default
18716
18717 \begin_inset Quotes erd
18718 \end_inset
18719
18720 ) found.
18721 \end_layout
18722
18723 \begin_layout Enumerate
18724
18725 \size small
18726 Accent command 
18727 \begin_inset Quotes eld
18728 \end_inset
18729
18730
18731 \family typewriter
18732 cmd
18733 \family default
18734
18735 \begin_inset Quotes erd
18736 \end_inset
18737
18738  needs use of 
18739 \begin_inset Quotes eld
18740 \end_inset
18741
18742
18743 \family typewriter
18744 cmd
18745 \family default
18746
18747 \begin_inset Quotes erd
18748 \end_inset
18749
18750 .
18751 \end_layout
18752
18753 \begin_layout Enumerate
18754
18755 \size small
18756 Wrong length of dash may have been used.
18757 \end_layout
18758
18759 \begin_layout Enumerate
18760
18761 \size small
18762 \emph on
18763 \begin_inset Quotes eld
18764 \end_inset
18765
18766
18767 \family typewriter
18768 %s
18769 \family default
18770
18771 \begin_inset Quotes erd
18772 \end_inset
18773
18774  expected, found 
18775 \begin_inset Quotes eld
18776 \end_inset
18777
18778
18779 \family typewriter
18780 %s
18781 \family default
18782
18783 \begin_inset Quotes erd
18784 \end_inset
18785
18786 .
18787 \end_layout
18788
18789 \begin_layout Enumerate
18790
18791 \size small
18792 Solo 
18793 \begin_inset Quotes eld
18794 \end_inset
18795
18796
18797 \family typewriter
18798 %s
18799 \family default
18800
18801 \begin_inset Quotes erd
18802 \end_inset
18803
18804  found.
18805 \end_layout
18806
18807 \begin_layout Enumerate
18808
18809 \size small
18810 You should use 
18811 \begin_inset Quotes eld
18812 \end_inset
18813
18814
18815 \family typewriter
18816 %s
18817 \family default
18818
18819 \begin_inset Quotes erd
18820 \end_inset
18821
18822  to achieve an ellipsis.
18823 \end_layout
18824
18825 \begin_layout Enumerate
18826
18827 \size small
18828 Inter-word spacing (
18829 \begin_inset Quotes eld
18830 \end_inset
18831
18832
18833 \family typewriter
18834
18835 \backslash
18836
18837 \family default
18838  
18839 \begin_inset Quotes eld
18840 \end_inset
18841
18842 ) should perhaps be used.
18843 \end_layout
18844
18845 \begin_layout Enumerate
18846
18847 \size small
18848 Inter-sentence spacing (
18849 \begin_inset Quotes eld
18850 \end_inset
18851
18852
18853 \family typewriter
18854
18855 \backslash
18856 @
18857 \family default
18858
18859 \begin_inset Quotes erd
18860 \end_inset
18861
18862 ) should perhaps be used.
18863 \end_layout
18864
18865 \begin_layout Enumerate
18866
18867 \size small
18868 Could not find argument for command.
18869 \end_layout
18870
18871 \begin_layout Enumerate
18872
18873 \size small
18874 No match found for 
18875 \begin_inset Quotes eld
18876 \end_inset
18877
18878
18879 \family typewriter
18880 %s
18881 \family default
18882
18883 \begin_inset Quotes erd
18884 \end_inset
18885
18886 .
18887 \end_layout
18888
18889 \begin_layout Enumerate
18890
18891 \size small
18892 Math mode still on at end of \SpecialChar LaTeX
18893  file.
18894 \end_layout
18895
18896 \begin_layout Enumerate
18897
18898 \size small
18899 Number of 
18900 \begin_inset Quotes eld
18901 \end_inset
18902
18903
18904 \family typewriter
18905 char
18906 \family default
18907
18908 \begin_inset Quotes erd
18909 \end_inset
18910
18911  doesn't match the number of 
18912 \begin_inset Quotes eld
18913 \end_inset
18914
18915
18916 \family typewriter
18917 char
18918 \family default
18919
18920 \begin_inset Quotes erd
18921 \end_inset
18922
18923 .
18924 \end_layout
18925
18926 \begin_layout Enumerate
18927
18928 \size small
18929 You should use either 
18930 \family typewriter
18931
18932 \begin_inset Quotes eld
18933 \end_inset
18934
18935
18936 \family default
18937  or 
18938 \family typewriter
18939
18940 \begin_inset Quotes erd
18941 \end_inset
18942
18943
18944 \family default
18945  as an alternative to 
18946 \begin_inset Quotes eld
18947 \end_inset
18948
18949
18950 \family typewriter
18951 "
18952 \family default
18953
18954 \begin_inset Quotes erd
18955 \end_inset
18956
18957 .
18958 \end_layout
18959
18960 \begin_layout Enumerate
18961
18962 \size small
18963 You should use "
18964 \family typewriter
18965 '
18966 \family default
18967 " (ASCII 39) instead of "" (ASCII 180).
18968 \end_layout
18969
18970 \begin_layout Enumerate
18971
18972 \size small
18973 User-specified pattern found.
18974 \end_layout
18975
18976 \begin_layout Enumerate
18977
18978 \size small
18979 This command might not be intended.
18980 \end_layout
18981
18982 \begin_layout Enumerate
18983
18984 \size small
18985 \emph on
18986 Comment displayed.
18987 \end_layout
18988
18989 \begin_layout Enumerate
18990
18991 \size small
18992 Either 
18993 \family typewriter
18994 ''
18995 \backslash
18996 ,'
18997 \family default
18998  or 
18999 \family typewriter
19000 '
19001 \backslash
19002 ,''
19003 \family default
19004  will look better.
19005 \end_layout
19006
19007 \begin_layout Enumerate
19008
19009 \size small
19010 Delete this space to maintain correct page references.
19011 \end_layout
19012
19013 \begin_layout Enumerate
19014
19015 \size small
19016 \emph on
19017 You might wish to put this between a pair of 
19018 \begin_inset Quotes eld
19019 \end_inset
19020
19021
19022 \family typewriter
19023 {}
19024 \family default
19025
19026 \begin_inset Quotes erd
19027 \end_inset
19028
19029 .
19030 \end_layout
19031
19032 \begin_layout Enumerate
19033
19034 \size small
19035 You ought to remove spaces in front of punctuation.
19036 \end_layout
19037
19038 \begin_layout Enumerate
19039
19040 \size small
19041 Could not execute \SpecialChar LaTeX
19042  command.
19043 \end_layout
19044
19045 \begin_layout Enumerate
19046
19047 \size small
19048 Don't use 
19049 \family typewriter
19050
19051 \backslash
19052 /
19053 \family default
19054  in front of small punctuation.
19055 \end_layout
19056
19057 \begin_layout Enumerate
19058
19059 \family typewriter
19060 \size small
19061 $
19062 \backslash
19063 times$
19064 \family default
19065  may look prettier here.
19066 \end_layout
19067
19068 \begin_layout Enumerate
19069
19070 \size small
19071 \emph on
19072 Multiple spaces detected in output.
19073 \end_layout
19074
19075 \begin_layout Enumerate
19076
19077 \size small
19078 This text may be ignored.
19079 \end_layout
19080
19081 \begin_layout Enumerate
19082
19083 \size small
19084 Use 
19085 \family typewriter
19086
19087 \begin_inset Quotes eld
19088 \end_inset
19089
19090
19091 \family default
19092  to begin quotation, not 
19093 \family typewriter
19094 '
19095 \family default
19096 .
19097 \end_layout
19098
19099 \begin_layout Enumerate
19100
19101 \size small
19102 Use 
19103 \family typewriter
19104 '
19105 \family default
19106  to end quotation, not 
19107 \family typewriter
19108
19109 \begin_inset Quotes eld
19110 \end_inset
19111
19112
19113 \family default
19114 .
19115 \end_layout
19116
19117 \begin_layout Enumerate
19118
19119 \size small
19120 Don't mix quotes.
19121 \end_layout
19122
19123 \begin_layout Enumerate
19124
19125 \size small
19126 You should perhaps use 
19127 \begin_inset Quotes eld
19128 \end_inset
19129
19130
19131 \family typewriter
19132 cmd
19133 \family default
19134
19135 \begin_inset Quotes erd
19136 \end_inset
19137
19138  instead.
19139 \end_layout
19140
19141 \begin_layout Enumerate
19142
19143 \size small
19144 You should put a space in front of/after parenthesis.
19145 \end_layout
19146
19147 \begin_layout Enumerate
19148
19149 \size small
19150 You should avoid spaces in front of/after parenthesis.
19151 \end_layout
19152
19153 \begin_layout Enumerate
19154
19155 \size small
19156 \emph on
19157 You should not use punctuation in front of/after quotes.
19158 \end_layout
19159
19160 \begin_layout Enumerate
19161
19162 \size small
19163 Double space found.
19164 \end_layout
19165
19166 \begin_layout Enumerate
19167
19168 \size small
19169 You should put punctuation outside inner/inside display math mode.
19170 \end_layout
19171
19172 \begin_layout Enumerate
19173
19174 \size small
19175 You ought to not use primitive \SpecialChar TeX
19176  in \SpecialChar LaTeX
19177  code.
19178 \end_layout
19179
19180 \begin_layout Enumerate
19181
19182 \size small
19183 You should remove spaces in front of 
19184 \begin_inset Quotes eld
19185 \end_inset
19186
19187
19188 \family typewriter
19189 %s
19190 \family default
19191
19192 \begin_inset Quotes erd
19193 \end_inset
19194
19195
19196 \end_layout
19197
19198 \begin_layout Enumerate
19199
19200 \size small
19201 \begin_inset Quotes eld
19202 \end_inset
19203
19204
19205 \family typewriter
19206 %s
19207 \family default
19208
19209 \begin_inset Quotes erd
19210 \end_inset
19211
19212  is normally not followed by 
19213 \begin_inset Quotes eld
19214 \end_inset
19215
19216
19217 \family typewriter
19218 %c
19219 \family default
19220
19221 \begin_inset Quotes erd
19222 \end_inset
19223
19224 .
19225 \end_layout
19226
19227 \begin_layout Standard
19228 \SpecialChar LyX
19229 の将来の版では,このツール(およびその縮小版
19230 \family typewriter
19231 lacheck
19232 \family default
19233 )の力を最大限引き出すように,より完備したインターフェイスを提供できればと考えています.しかし,現状でも十分に役立つものとなっています.ある程度長さがある既存文
19234 書に使用してみていただければ,きっと驚かれることでしょう.
19235 \end_layout
19236
19237 \begin_layout Section
19238 \SpecialChar LyX
19239 でのバージョン管理
19240 \end_layout
19241
19242 \begin_layout Standard
19243
19244 \noun on
19245 Lars Bullik Bjønnes
19246 \noun default
19247 および
19248 \noun on
19249 Pavel Sanda
19250 \noun default
19251
19252 \end_layout
19253
19254 \begin_layout Subsection
19255 はじめに
19256 \end_layout
19257
19258 \begin_layout Standard
19259 \SpecialChar LyX
19260 は,今ではもっとも基本的なRCS/CVS/SVN/GITコマンドをサポートしています.もしもっと洗練されたことを行いたい場合には,ターミナル上から手動で行う必要
19261 があります.
19262 \end_layout
19263
19264 \begin_layout Standard
19265 また,CVSのサポートは,subversionのサポートほど良くないので,CVSよりもSVNを使うことをお勧めします.Subversionを学び始めるには,SV
19266 N Book
19267 \begin_inset Foot
19268 status collapsed
19269
19270 \begin_layout Plain Layout
19271 \begin_inset CommandInset href
19272 LatexCommand href
19273 target "http://svnbook.red-bean.com/"
19274 literal "false"
19275
19276 \end_inset
19277
19278
19279 \end_layout
19280
19281 \end_inset
19282
19283 が良いでしょう.RCSの場合は,「rsintro」をお読みください(これはmanファイルです.
19284 \family typewriter
19285 man rcsintro
19286 \family default
19287 で読めます).このファイルは,RCSの基本機能のすべてを説明しています.特に,RCSディレクトリに関するコメントと,マスターRCSファイル(
19288 \family typewriter
19289 ,v
19290 \family default
19291 で終わるファイルです)の概念に注意を払ってください.
19292 \end_layout
19293
19294 \begin_layout Standard
19295 \SpecialChar LyX
19296 で実際にバージョン管理機能を使い始める前に,RCS/CVS/SVN/GITの使用法に習熟しておかなくてはなりません.\SpecialChar LyX
19297 で\SpecialChar LyX
19298 への実装においては,GNU
19299  RCSまたはCVS/SVNパッケージの最新版を仮定しています.旧版への保証はありません.ログメッセージのほとんどは,現在のところ操作後には表示されません.確認
19300 したい場合には,メッセージ面で確かめてください.バージョン管理を常用するユーザーには,VCツールバーが便利でしょう.これは
19301 \family sans
19302 表示\SpecialChar menuseparator
19303 ツールバー\SpecialChar menuseparator
19304 バージョン管理
19305 \family default
19306 で有効にできます.
19307 \end_layout
19308
19309 \begin_layout Standard
19310 自製の外部コマンドを導入したい場合には,\SpecialChar LyX
19311 関数説明書のvcコマンドを確認してください.
19312 \end_layout
19313
19314 \begin_layout Standard
19315 バージョン管理機能を使用している場合には,文書を非圧縮形式で保存をすることを強く推奨します(
19316 \family sans
19317 文書\SpecialChar menuseparator
19318 圧縮
19319 \family default
19320 にチェックが入っていれば外してください).非圧縮LyX文書はテキストファイルであるため,バージョン管理システムが,二つのバージョンをマージすることができます.一
19321 方,圧縮LyXファイルはバイナリファイルであるため,バージョン管理システムはマージすることができません.
19322 \end_layout
19323
19324 \begin_layout Subsection
19325 \SpecialChar LyX
19326 におけるRCSコマンド
19327 \end_layout
19328
19329 \begin_layout Standard
19330 以下の節では\SpecialChar LyX
19331 でサポートされているRCSコマンドを説明します.それらのコマンドは
19332 \family sans
19333 ファイル\SpecialChar menuseparator
19334 バージョン管理
19335 \family default
19336 のサブメニューにあります.\SpecialChar LyX
19337 は,RCS 5.7/5.8に対して試験されています.
19338 \end_layout
19339
19340 \begin_layout Subsubsection
19341
19342 \family sans
19343 登録
19344 \end_layout
19345
19346 \begin_layout Standard
19347 文書がバージョン管理の下にない場合には,これがメニューにあらわれる唯一の項目です.文書がバージョン管理下にあれば,項目
19348 \family sans
19349 登録
19350 \family default
19351 は不可視になります.
19352 \end_layout
19353
19354 \begin_layout Standard
19355 このコマンドは,文書をRCSに登録します(CVSが管理しているディレクトリ下にない場合).すると対話的に,文書の最初の説明を入力するように尋ねられます.すると文
19356 書は読み込み専用モードになるので,変更を加えるためには
19357 \family sans
19358 チェックアウトして編集
19359 \family default
19360 を実行する必要があります.バージョン管理下にある文書は,ミニバッファのファイル名の後ろに「 [RCS:<バージョン> <ロック>]」という項目が表示されます.
19361 \end_layout
19362
19363 \begin_layout Standard
19364 実行されるRCSコマンドは:
19365 \family typewriter
19366
19367 \begin_inset Newline newline
19368 \end_inset
19369
19370 ci -q -u -i -t-"<初期説明文>" <ファイル名>
19371 \end_layout
19372
19373 \begin_layout Standard
19374 スイッチについて知りたい場合は,
19375 \family typewriter
19376 man ci
19377 \family default
19378 を読んでください.
19379 \end_layout
19380
19381 \begin_layout Subsubsection
19382
19383 \family sans
19384 変更をチェックインする
19385 \end_layout
19386
19387 \begin_layout Standard
19388 ファイルの編集が終わると,その変更をチェックインします.このとき,変更についての説明文を求められます.これは履歴ログに記録されます.バージョン番号は繰り上がり,
19389 変更がマスターRCSファイルに適用され,文書がアンロックされて読み込み専用モードになります.
19390 \end_layout
19391
19392 \begin_layout Standard
19393 RCSコマンド:
19394 \family typewriter
19395 ci -q -u -m"<説明文>" <ファイル名>
19396 \end_layout
19397
19398 \begin_layout Subsubsection
19399
19400 \family sans
19401 チェックアウトして編集
19402 \end_layout
19403
19404 \begin_layout Standard
19405 これは,文書をロックして編集できるようにします.そしてあなただけが文書を読み書きできるようにします.通常は,しばらくの間,文書を編集し,それが終わると変更をチェ
19406 ックインします.あなたがファイルをロックしたことを反映して,ステータスラインが変わります.
19407 \end_layout
19408
19409 \begin_layout Standard
19410 RCSコマンド:
19411 \family typewriter
19412 co -q -l <ファイル名>
19413 \end_layout
19414
19415 \begin_layout Subsubsection
19416
19417 \family sans
19418 リポジトリのバージョンに戻す
19419 \end_layout
19420
19421 \begin_layout Standard
19422 これは,最終チェックイン以降,文書に加えられた変更をすべて破棄します.変更が破棄される前に,警告が発せられます.
19423 \end_layout
19424
19425 \begin_layout Standard
19426 RCSコマンド:
19427 \family typewriter
19428 co -f -u<バージョン> <ファイル名>
19429 \end_layout
19430
19431 \begin_layout Subsubsection
19432
19433 \family sans
19434 コピー
19435 \end_layout
19436
19437 \begin_layout Standard
19438 これは,現行文書のコピーを生成します.RCSは,コピー操作を自前ではサポートしませんので,バージョン履歴には保存されず,新コピーは新規ファイルとして追加されます
19439 .最後のチェックイン以降,変更が加えられていないサラの文書であることが要求されます.ファイル名とコピー操作の説明を入力するように促され,その後,新コピーがローカ
19440 ルとリポジトリの両方に生成されます.コピーされた文書と元の文書の親ディレクトリが異なる場合には,コピーにインクルードされたファイルの相対パスは,(
19441 \family sans
19442 ファイル\SpecialChar menuseparator
19443 名前をつけて保存\SpecialChar ldots
19444
19445 \family default
19446 と同様に)全て調整されます.最後に,元の文書の代わりに,コピーされたファイルが読み込まれます.
19447 \end_layout
19448
19449 \begin_layout Labeling
19450 \labelwidthstring 00.00.0000
19451 RCSコマンド:
19452 \begin_inset Flex Code
19453 status collapsed
19454
19455 \begin_layout Plain Layout
19456 "ファイル名"
19457 \end_layout
19458
19459 \end_inset
19460
19461
19462 \family typewriter
19463 "新ファイル名"
19464 \family default
19465 にコピーする場合
19466 \end_layout
19467
19468 \begin_layout Labeling
19469 \labelwidthstring 00.00.0000
19470 \begin_inset Flex Code
19471 status collapsed
19472
19473 \begin_layout Plain Layout
19474 ci -q -u -i "<新ファイル名>"
19475 \end_layout
19476
19477 \end_inset
19478
19479
19480 \end_layout
19481
19482 \begin_layout Subsubsection
19483
19484 \family sans
19485 最後のチェックインを取り消す
19486 \end_layout
19487
19488 \begin_layout Standard
19489 これは,最後のチェックインがあたかも為されなかったかのようにします.\SpecialChar LyX
19490 に読み込まれた文書に変更は加えられませんが,マスターRCSファイルから最後のバージョンが削除
19491 されます.
19492 \end_layout
19493
19494 \begin_layout Standard
19495 RCSコマンド:
19496 \family typewriter
19497 rcs -o<バージョン> <ファイル名>
19498 \end_layout
19499
19500 \begin_layout Subsubsection
19501
19502 \family sans
19503 履歴を表示
19504 \end_layout
19505
19506 \begin_layout Standard
19507 RCS文書の完全な履歴を表示します.ブラウザ中に,
19508 \family typewriter
19509 rlog <ファイル名>
19510 \family default
19511 の出力が表示されます.詳細は
19512 \family typewriter
19513 man rlog
19514 \family default
19515 をご覧ください.
19516 \end_layout
19517
19518 \begin_layout Subsubsection
19519 改訂情報
19520 \end_layout
19521
19522 \begin_layout Standard
19523 \SpecialChar LyX
19524 は,RCSバージョン番号情報(のみ)をサポートしています.詳細については,
19525 \begin_inset CommandInset ref
19526 LatexCommand ref
19527 reference "subsec:VCS改訂情報"
19528
19529 \end_inset
19530
19531 を参照.
19532 \end_layout
19533
19534 \begin_layout Subsection
19535 \SpecialChar LyX
19536 におけるCVSコマンド
19537 \end_layout
19538
19539 \begin_layout Standard
19540 \SpecialChar LyX
19541 は,現在CVSを一部サポートしています.そのコマンドは,
19542 \family sans
19543 ファイル\SpecialChar menuseparator
19544 バージョン管理
19545 \family default
19546 サブメニューにあります.バージョン管理システムSVNの方が強力なので,可能ならばCVSではなく,SVNを使用してください.
19547 \end_layout
19548
19549 \begin_layout Subsubsection
19550 CVSの一般的な利用法
19551 \end_layout
19552
19553 \begin_layout Standard
19554 CVSを初めて使いたい場合には,外部ツールを使用して自分のレポジトリを作成し,作業コピーをチェックアウトする必要があります.クライアント=サーバーモデルを使用し
19555 ている場合には,最初のレポジトリチェックアウトを行う前にログインする必要があるかもしれません.
19556 \end_layout
19557
19558 \begin_layout Standard
19559 改訂管理下にある文書のレポジトリを他人も利用している場合に,同一文書の同一箇所に別々の変更を加えてしまうと問題が発生します.標準的なCVSレポジトリは,ファイル
19560 ロッキング機構を有しません.これは驚くべきことかもしれませんが,コンフリクトは,文書の同じ箇所の特定の内容について,人々が意見を異にしている場合にのみ発生します
19561 .したがって,共著者同士がコンスタントにコミュニケーションを交わしていれば,このようなコンフリクトは滅多に発生しません.もしコミュニケーションがなければ,いずれ
19562 にしても根本的な問題があるわけです.それにもかかわらず,いわゆる「予備付きチェックアウト」を使用したいと思う人々もいます.この場合,最初にチェックアウトした際に
19563 ,全ファイルの作業コピーは読み込み専用にされ,ユーザーは,作業コピーを書き込み可能にする特別なコマンドを使用した後,編集を開始することになります.変更をチェック
19564 インすると,作業コピーは読み込み専用状態に戻ります.\SpecialChar LyX
19565 で予備付きチェックアウトを利用したい場合には,
19566 \begin_inset Flex Code
19567 status collapsed
19568
19569 \begin_layout Plain Layout
19570 .cvsrc
19571 \end_layout
19572
19573 \end_inset
19574
19575 ファイルを編集して,
19576 \begin_inset Flex Code
19577 status collapsed
19578
19579 \begin_layout Plain Layout
19580 cvs -r
19581 \end_layout
19582
19583 \end_inset
19584
19585 という行を書き加える必要があります.この方法の利点は,文書のうち,書き込み可能コピーを誰が使用しているかを見ることができることです.ただし,一人のユーザーだけが
19586 コピーを書き込み可能にしているとは限りません.
19587 \end_layout
19588
19589 \begin_layout Standard
19590 \SpecialChar LyX
19591 は,あなたが予備付きチェックアウトを使用しているか,予備なしチェックアウトを利用しているか,推測しようと試みます.使用中の作業コピーが読み込み専用になっているか
19592 ,あるいはそれが書き込み可能であって,CVS/Baseサブディレクトリに使用中文書のコピーが存在している場合には,予備付きチェックアウトを使用しているものと仮定
19593 し,そうでない場合には予備なしチェックアウトを使用しているものと仮定します.予備付きチェックアウトが検出された場合には,作業コピーが読み込み専用の場合に書き込み
19594 可能にするためには,
19595 \begin_inset Flex MenuItem
19596 status collapsed
19597
19598 \begin_layout Plain Layout
19599 チェックアウト
19600 \end_layout
19601
19602 \end_inset
19603
19604 メニューを使用しなくてはなりません.その後,
19605 \begin_inset Flex MenuItem
19606 status collapsed
19607
19608 \begin_layout Plain Layout
19609 チェックイン
19610 \end_layout
19611
19612 \end_inset
19613
19614 メニューが利用可能になるので,自分が加えた変更をリポジトリに移した後,作業コピーを再び読み込み専用にする際には,これを使用します.
19615 \end_layout
19616
19617 \begin_layout Standard
19618 CVSの詳細な情報は,
19619 \begin_inset Flex URL
19620 status collapsed
19621
19622 \begin_layout Plain Layout
19623
19624 http://www.nongnu.org/cvs
19625 \end_layout
19626
19627 \end_inset
19628
19629
19630 \begin_inset Flex URL
19631 status collapsed
19632
19633 \begin_layout Plain Layout
19634
19635 http://ximbiot.com/cvs
19636 \end_layout
19637
19638 \end_inset
19639
19640 にあります.
19641 \end_layout
19642
19643 \begin_layout Standard
19644 以下に言及するサブコマンドとスイッチを理解するには,
19645 \family typewriter
19646 man cvs
19647 \family default
19648 をお読みください.
19649 \end_layout
19650
19651 \begin_layout Subsubsection
19652 登録
19653 \end_layout
19654
19655 \begin_layout Standard
19656 お使いの文書が改訂管理下に置かれていなければ,メニューにはこの項目だけが表示されます.もし改訂管理が有効ならば,
19657 \family sans
19658 登録
19659 \family default
19660 項目は表示されません.
19661 \end_layout
19662
19663 \begin_layout Standard
19664 本コマンドは,既に文書ディレクトリをCVS管理下に置いている場合に
19665 \series bold
19666 \emph on
19667 のみ
19668 \series default
19669 \emph default
19670 (すなわち
19671 \begin_inset Flex Code
19672 status collapsed
19673
19674 \begin_layout Plain Layout
19675 CVS/Entries
19676 \end_layout
19677
19678 \end_inset
19679
19680 ファイルが存在する場合にのみ),お使いの文書をCVSに登録します.つまり,外部ツールを使用して,アーカイブを自分で作成ないしチェックアウトしなくてはならないこと
19681 を意味します(このステップを忘れてしまうと,\SpecialChar LyX
19682 は文書をRCSに登録します).
19683 \end_layout
19684
19685 \begin_layout Standard
19686 すると,文書の最初の説明文を入力するように促されます.登録したファイルは,まだチェックインされたわけではないことに注意してください.
19687 \end_layout
19688
19689 \begin_layout Standard
19690 実行されるCVSコマンドは,
19691 \family typewriter
19692 cvs -q add -m"<入力した説明文>" "<ファイル名>"
19693 \family default
19694  です.
19695 \end_layout
19696
19697 \begin_layout Standard
19698 上記および他のすべてのCVSコマンドにおける
19699 \family typewriter
19700 "<ファイル名>"
19701 \family default
19702 は,「カレント作業ディレクトリをファイルの場所に移動し,パスコンポーネントを除いたファイル名を引数として使用する」という意味になります.
19703 \end_layout
19704
19705 \begin_layout Subsubsection
19706 変更のチェックイン
19707 \end_layout
19708
19709 \begin_layout Standard
19710 ファイルの編集を終えたら,変更をコミットします.このとき,文書に変更が加えられていれば,変更の説明文を入れるよう促されます.その後,変更がレポジトリに書き込まれ
19711 ます.文書を変更せず,予備付きチェックアウトが検出された場合,
19712 \begin_inset Flex MenuItem
19713 status collapsed
19714
19715 \begin_layout Plain Layout
19716 チェックアウト
19717 \end_layout
19718
19719 \end_inset
19720
19721 で作られた予備は取り消されます.
19722 \end_layout
19723
19724 \begin_layout Labeling
19725 \labelwidthstring 00.00.0000
19726 CVSコマンド: 
19727 \begin_inset space ~
19728 \end_inset
19729
19730
19731 \begin_inset Newline newline
19732 \end_inset
19733
19734
19735 \begin_inset Flex Code
19736 status collapsed
19737
19738 \begin_layout Plain Layout
19739 cvs -q commit -m"<入力した説明文>" "<ファイル名>"
19740 \end_layout
19741
19742 \end_inset
19743
19744 あるいは
19745 \begin_inset Newline newline
19746 \end_inset
19747
19748
19749 \begin_inset Flex Code
19750 status collapsed
19751
19752 \begin_layout Plain Layout
19753 cvs -q unedit "<ファイル名>"
19754 \end_layout
19755
19756 \end_inset
19757
19758
19759 \end_layout
19760
19761 \begin_layout Subsubsection
19762 変更のチェックアウト
19763 \end_layout
19764
19765 \begin_layout Standard
19766 レポジトリを他人と共有している場合,他人の加えた変更を自らの作業コピーに取り込まなくてはならないことがあります.
19767 \end_layout
19768
19769 \begin_layout Standard
19770 CVSコマンド:
19771 \family typewriter
19772 cvs -q update "<ファイル名>"
19773 \end_layout
19774
19775 \begin_layout Standard
19776 読み込み専用チェックアウトが検出された場合,作業コピーを書き込み可能にし予備を作成します.
19777 \end_layout
19778
19779 \begin_layout Standard
19780 CVSコマンド:
19781 \family typewriter
19782 cvs -q edit "<ファイル名>"
19783 \end_layout
19784
19785 \begin_layout Subsubsection
19786 レポジトリ版に戻す
19787 \end_layout
19788
19789 \begin_layout Standard
19790 これは,最後のチェックイン以降,文書に加えられた変更をすべて廃棄します.変更が廃棄される前に警告が表示されます.最初にファイルが削除され,次にCVS更新コマンド
19791 が実行されます.
19792 \end_layout
19793
19794 \begin_layout Standard
19795 CVSコマンド:
19796 \family typewriter
19797 cvs -q update "<ファイル名>"
19798 \end_layout
19799
19800 \begin_layout Standard
19801 予備付きチェックアウトが検出され,作業コピーに変更がない場合,予備のみが取り消されます.
19802 \end_layout
19803
19804 \begin_layout Standard
19805 CVSコマンド:
19806 \family typewriter
19807 cvs -q unedit "<ファイル名>"
19808 \end_layout
19809
19810 \begin_layout Subsubsection
19811
19812 \family sans
19813 コピー
19814 \end_layout
19815
19816 \begin_layout Standard
19817 これは,現行文書のコピーを生成します.CVSは,コピー操作を自前ではサポートしませんので,バージョン履歴には保存されず,新コピーは新規ファイルとして追加されます
19818 .最後のチェックイン以降,変更が加えられていないサラの文書であることが要求されます.ファイル名とコピー操作の説明を入力するように促され,その後,新コピーがローカ
19819 ルとリポジトリの両方に生成されます.コピーされた文書と元の文書の親ディレクトリが異なる場合には,コピーにインクルードされたファイルの相対パスは,(
19820 \family sans
19821 ファイル\SpecialChar menuseparator
19822 名前をつけて保存\SpecialChar ldots
19823
19824 \family default
19825 と同様に)全て調整されます.最後に,元の文書の代わりに,コピーされたファイルが読み込まれます.
19826 \end_layout
19827
19828 \begin_layout Labeling
19829 \labelwidthstring 00.00.0000
19830 CVSコマンド:
19831 \end_layout
19832
19833 \begin_layout Labeling
19834 \labelwidthstring 00.00.0000
19835 \begin_inset Flex Code
19836 status collapsed
19837
19838 \begin_layout Plain Layout
19839 "ファイル名"
19840 \end_layout
19841
19842 \end_inset
19843
19844
19845 \begin_inset Flex Code
19846 status collapsed
19847
19848 \begin_layout Plain Layout
19849 "新ファイル名"
19850 \end_layout
19851
19852 \end_inset
19853
19854 にコピーする場合
19855 \end_layout
19856
19857 \begin_layout Labeling
19858 \labelwidthstring 00.00.0000
19859 \begin_inset Flex Code
19860 status collapsed
19861
19862 \begin_layout Plain Layout
19863 cvs -q add "<新ファイル名>"
19864 \end_layout
19865
19866 \end_inset
19867
19868
19869 \end_layout
19870
19871 \begin_layout Subsubsection
19872 ファイル名変更
19873 \end_layout
19874
19875 \begin_layout Standard
19876 これは,現行文書のファイル名を変更します.CVSは,ファイル名変更操作を自前ではサポートしませんので,バージョン履歴には保存されず,名称変更後のファイルは,新規
19877 ファイルとして追加されます.最後のチェックイン以降,変更が加えられていないサラの文書であることが要求されます.ファイル名とコピー操作の説明を入力するように促され
19878 ,その後,ローカルとリポジトリの両方でファイル名が変更されます.新旧ファイル名の文書の親ディレクトリが異なる場合には,コピーにインクルードされたファイルの相対パ
19879 スは,(
19880 \family sans
19881 ファイル\SpecialChar menuseparator
19882 名前をつけて保存\SpecialChar ldots
19883
19884 \family default
19885 と同様に)全て調整されます.最後に,新ファイル名を使ってファイルが再度読み込まれます.
19886 \end_layout
19887
19888 \begin_layout Labeling
19889 \labelwidthstring 00.00.0000
19890 CVSコマンド:
19891 \end_layout
19892
19893 \begin_layout Labeling
19894 \labelwidthstring 00.00.0000
19895 \begin_inset Flex Code
19896 status collapsed
19897
19898 \begin_layout Plain Layout
19899 "ファイル名"
19900 \end_layout
19901
19902 \end_inset
19903
19904
19905 \begin_inset Flex Code
19906 status collapsed
19907
19908 \begin_layout Plain Layout
19909 "新ファイル名"
19910 \end_layout
19911
19912 \end_inset
19913
19914 に変更する場合
19915 \end_layout
19916
19917 \begin_layout Labeling
19918 \labelwidthstring 00.00.0000
19919 \begin_inset Flex Code
19920 status collapsed
19921
19922 \begin_layout Plain Layout
19923 cvs -q add "<新ファイル名>"
19924 \end_layout
19925
19926 \end_inset
19927
19928
19929 \end_layout
19930
19931 \begin_layout Labeling
19932 \labelwidthstring 00.00.0000
19933 \begin_inset Flex Code
19934 status collapsed
19935
19936 \begin_layout Plain Layout
19937 cvs -q remove "<ファイル名>"
19938 \end_layout
19939
19940 \end_inset
19941
19942
19943 \end_layout
19944
19945 \begin_layout Subsubsection
19946 ローカルディレクトリチェックアウトのレポジトリからの更新
19947 \end_layout
19948
19949 \begin_layout Standard
19950 子文書や図を含んだり,外部
19951 \begin_inset Flex Code
19952 status collapsed
19953
19954 \begin_layout Plain Layout
19955 .tex
19956 \end_layout
19957
19958 \end_inset
19959
19960 ファイルを取り込むなど,文書が複雑になるにつれ,バージョン管理の利用は複雑になります.\SpecialChar LyX
19961 は,文書が存在するツリー全体の更新をサポートします.これは,CVSの使用法
19962 について詳しい知識のない人々や,レポジトリに追加素材をコミットする野望のない人々と共同作業をするような場合に,特に便利です.ファイル構造は,すべての外部ファイル
19963 が,文書と同じディレクトリかそのサブディレクトリに来るように組織する必要があります.いずれにしても,複合文書を新しいディレクトリを建てて収容するのは,望ましい習
19964 慣です.
19965 \end_layout
19966
19967 \begin_layout Standard
19968 コマンド
19969 \begin_inset Flex Code
19970 status collapsed
19971
19972 \begin_layout Plain Layout
19973 レポジトリを使ってローカル辞書を更新
19974 \end_layout
19975
19976 \end_inset
19977
19978 は,ディレクトリ全体を更新します.ローカルの変更が検出された場合には,更新を開始する前にユーザーに警告が発せられます.マージコンフリクトが発生した場合には,コン
19979 フリクトを起こしている部分の新旧バージョンが,両方とも最終文書に置かれますので,マージの結果を見直し,修正する必要があります.コンフリクトは,
19980 \begin_inset Flex Code
19981 status collapsed
19982
19983 \begin_layout Plain Layout
19984 <<<<<<<
19985 \end_layout
19986
19987 \end_inset
19988
19989
19990 \begin_inset Flex Code
19991 status collapsed
19992
19993 \begin_layout Plain Layout
19994 >>>>>>>
19995 \end_layout
19996
19997 \end_inset
19998
19999 の対に囲まれ,
20000 \begin_inset Flex Code
20001 status collapsed
20002
20003 \begin_layout Plain Layout
20004 =======
20005 \end_layout
20006
20007 \end_inset
20008
20009 で区切られて表示されます.最初の部分は,文書名に続いて,更新操作前のバージョンが置かれています.第2の部分は,
20010 \begin_inset Flex Code
20011 status collapsed
20012
20013 \begin_layout Plain Layout
20014 >
20015 \end_layout
20016
20017 \end_inset
20018
20019 記号列の後にバージョン番号に続いて,レポジトリ版が置かれます.
20020 \end_layout
20021
20022 \begin_layout Labeling
20023 \labelwidthstring 00.00.0000
20024 CVSコマンド: 
20025 \begin_inset space ~
20026 \end_inset
20027
20028
20029 \begin_inset Newline newline
20030 \end_inset
20031
20032
20033 \begin_inset Flex Code
20034 status collapsed
20035
20036 \begin_layout Plain Layout
20037 cd $path; cvs diff "."
20038 \end_layout
20039
20040 \end_inset
20041
20042 (変更が検出された場合には知らせる)
20043 \begin_inset Newline newline
20044 \end_inset
20045
20046
20047 \begin_inset Flex Code
20048 status collapsed
20049
20050 \begin_layout Plain Layout
20051 cd $path; cvs -q update "."
20052 \end_layout
20053
20054 \end_inset
20055
20056
20057 \end_layout
20058
20059 \begin_layout Standard
20060 ここで
20061 \begin_inset Flex Code
20062 status collapsed
20063
20064 \begin_layout Plain Layout
20065 $path
20066 \end_layout
20067
20068 \end_inset
20069
20070 は文書パスを表します.
20071 \end_layout
20072
20073 \begin_layout Subsubsection
20074 履歴を表示
20075 \end_layout
20076
20077 \begin_layout Standard
20078 これは,CVS文書の全履歴を表示します.
20079 \begin_inset Flex Code
20080 status collapsed
20081
20082 \begin_layout Plain Layout
20083 cvs log 
20084 \begin_inset Quotes eld
20085 \end_inset
20086
20087 <ファイル名>
20088 \begin_inset Quotes erd
20089 \end_inset
20090
20091
20092 \end_layout
20093
20094 \end_inset
20095
20096 の出力がブラウザに表示されます.
20097 \end_layout
20098
20099 \begin_layout Subsubsection
20100 改訂情報
20101 \end_layout
20102
20103 \begin_layout Standard
20104 \SpecialChar LyX
20105 は,CVS版数・著者名・最終コミットの日時をサポートします.これらの情報は,すべて
20106 \family typewriter
20107 cvs log -r <ファイル名>
20108 \family default
20109 によって抽出されます.詳細については,第
20110 \begin_inset CommandInset ref
20111 LatexCommand ref
20112 reference "subsec:VCS改訂情報"
20113
20114 \end_inset
20115
20116 節を参照してください.
20117 \end_layout
20118
20119 \begin_layout Subsection
20120 \SpecialChar LyX
20121 におけるSVNコマンド
20122 \end_layout
20123
20124 \begin_layout Standard
20125 \SpecialChar LyX
20126 は,現在SVNを一部サポートしています.そのコマンドは,
20127 \begin_inset Flex MenuItem
20128 status collapsed
20129
20130 \begin_layout Plain Layout
20131 ファイル\SpecialChar menuseparator
20132 バージョン管理
20133 \end_layout
20134
20135 \end_inset
20136
20137 メニューにあります.レポジトリへのアクセスに,ssh経由のパスワード保護アクセスを使用している場合には,端末ウィンドウでの入力を促されます.\SpecialChar LyX
20138 は,SVN
20139  1.5および1.6に対して試験されています.
20140 \end_layout
20141
20142 \begin_layout Subsubsection
20143 登録
20144 \end_layout
20145
20146 \begin_layout Standard
20147 お使いの文書が改訂管理下に置かれていなければ,メニューにはこの項目だけが表示されます.もし改訂管理が有効ならば,
20148 \family sans
20149 登録
20150 \family default
20151 項目は表示されません.
20152 \end_layout
20153
20154 \begin_layout Standard
20155 本コマンドは,既に文書のあるディレクトリをSVN管理下に置いている場合に
20156 \emph on
20157 のみ
20158 \emph default
20159 (すなわち
20160 \begin_inset Flex Code
20161 status collapsed
20162
20163 \begin_layout Plain Layout
20164 .svn/entries
20165 \end_layout
20166
20167 \end_inset
20168
20169 ファイルが存在する場合にのみ),お使いの文書をSVNに登録します.つまり,アーカイブはご自分でチェックアウトしなくてはなりません.
20170 \end_layout
20171
20172 \begin_layout Standard
20173 すると,文書の最初の説明文を入力するように促されます.登録したファイルは,まだコミットされたわけではないことに注意してください.
20174 \end_layout
20175
20176 \begin_layout Standard
20177 実行されるSVNコマンドは,
20178 \begin_inset Flex Code
20179 status collapsed
20180
20181 \begin_layout Plain Layout
20182 svn add -q 
20183 \begin_inset Quotes eld
20184 \end_inset
20185
20186 <ファイル名>
20187 \begin_inset Quotes erd
20188 \end_inset
20189
20190
20191 \end_layout
20192
20193 \end_inset
20194
20195 です.
20196 \end_layout
20197
20198 \begin_layout Standard
20199 スイッチの説明は
20200 \begin_inset Flex Code
20201 status collapsed
20202
20203 \begin_layout Plain Layout
20204 man svn
20205 \end_layout
20206
20207 \end_inset
20208
20209 をお読みください.
20210 \end_layout
20211
20212 \begin_layout Subsubsection
20213 変更をチェックイン
20214 \end_layout
20215
20216 \begin_layout Standard
20217 ファイルの編集を終えたら,変更をコミットします.このとき,変更の説明文を入れるよう促されます.その後,変更がコミットされます.
20218 \end_layout
20219
20220 \begin_layout Standard
20221 SVNコマンド
20222 \begin_inset Foot
20223 status collapsed
20224
20225 \begin_layout Plain Layout
20226 ロックが有効になっていない場合です.第
20227 \begin_inset CommandInset ref
20228 LatexCommand ref
20229 reference "subsec:SVNファイルロック"
20230
20231 \end_inset
20232
20233 節をご覧ください.
20234 \end_layout
20235
20236 \end_inset
20237
20238
20239 \begin_inset Flex Code
20240 status collapsed
20241
20242 \begin_layout Plain Layout
20243 svn commit -q -m
20244 \begin_inset Quotes erd
20245 \end_inset
20246
20247 <入力した説明文>
20248 \begin_inset Quotes erd
20249 \end_inset
20250
20251  
20252 \begin_inset Quotes eld
20253 \end_inset
20254
20255 <ファイル名>
20256 \begin_inset Quotes erd
20257 \end_inset
20258
20259
20260 \end_layout
20261
20262 \end_inset
20263
20264
20265 \end_layout
20266
20267 \begin_layout Subsubsection
20268 チェックアウトして編集
20269 \end_layout
20270
20271 \begin_layout Standard
20272 このファイルの変更点をレポジトリから取得して更新します.すべての干渉点は,手動で解決しなくてはならないので,この機能を使う前にSVNのマージ法と干渉解決法を理解
20273 しておくようにしてください.
20274 \end_layout
20275
20276 \begin_layout Standard
20277 SVNコマンド
20278 \begin_inset Foot
20279 status collapsed
20280
20281 \begin_layout Plain Layout
20282 同上.
20283 \end_layout
20284
20285 \end_inset
20286
20287
20288 \begin_inset Flex Code
20289 status collapsed
20290
20291 \begin_layout Plain Layout
20292 svn update –non-interactive 
20293 \begin_inset Quotes eld
20294 \end_inset
20295
20296 <ファイル名>
20297 \begin_inset Quotes erd
20298 \end_inset
20299
20300
20301 \end_layout
20302
20303 \end_inset
20304
20305
20306 \end_layout
20307
20308 \begin_layout Subsubsection
20309 リポジトリ版に戻す
20310 \end_layout
20311
20312 \begin_layout Standard
20313 これは,最後のチェックイン以降,文書に加えられた変更をすべて廃棄します.変更が廃棄される前に警告が表示されます.
20314 \end_layout
20315
20316 \begin_layout Standard
20317 SVNコマンド:
20318 \begin_inset Flex Code
20319 status collapsed
20320
20321 \begin_layout Plain Layout
20322 svn revert -q 
20323 \begin_inset Quotes eld
20324 \end_inset
20325
20326 <ファイル名>
20327 \begin_inset Quotes erd
20328 \end_inset
20329
20330
20331 \end_layout
20332
20333 \end_inset
20334
20335
20336 \end_layout
20337
20338 \begin_layout Subsubsection
20339
20340 \family sans
20341 コピー
20342 \end_layout
20343
20344 \begin_layout Standard
20345 これは,現行文書のコピーを生成します.最後のチェックイン以降,変更が加えられていないサラの文書であることが要求されます.ファイル名とコピー操作の説明を入力するよ
20346 うに促され,その後,新コピーがローカルとリポジトリの両方に生成されます.コピーされた文書と元の文書の親ディレクトリが異なる場合には,コピーにインクルードされたフ
20347 ァイルの相対パスは,(
20348 \family sans
20349 ファイル\SpecialChar menuseparator
20350 名前をつけて保存\SpecialChar ldots
20351
20352 \family default
20353 と同様に)全て調整されます.最後に,元の文書の代わりに,コピーされたファイルが読み込まれます.
20354 \end_layout
20355
20356 \begin_layout Labeling
20357 \labelwidthstring 00.00.0000
20358 SVNコマンド:
20359 \end_layout
20360
20361 \begin_layout Labeling
20362 \labelwidthstring 00.00.0000
20363 \begin_inset Flex Code
20364 status collapsed
20365
20366 \begin_layout Plain Layout
20367 svn copy -q "<ファイル名>" "<新ファイル名>"
20368 \end_layout
20369
20370 \end_inset
20371
20372
20373 \end_layout
20374
20375 \begin_layout Labeling
20376 \labelwidthstring 00.00.0000
20377 \begin_inset Flex Code
20378 status collapsed
20379
20380 \begin_layout Plain Layout
20381 svn commit
20382 \end_layout
20383
20384 \end_inset
20385
20386
20387 \end_layout
20388
20389 \begin_layout Subsubsection
20390 ファイル名変更
20391 \end_layout
20392
20393 \begin_layout Standard
20394 これは,現行文書のファイル名を変更します.最後のチェックイン以降,変更が加えられていないサラの文書であることが要求されます.ファイル名とコピー操作の説明を入力す
20395 るように促され,その後,ローカルとリポジトリの両方でファイル名が変更されます.新旧ファイル名の文書の親ディレクトリが異なる場合には,コピーにインクルードされたフ
20396 ァイルの相対パスは,(
20397 \family sans
20398 ファイル\SpecialChar menuseparator
20399 名前をつけて保存\SpecialChar ldots
20400
20401 \family default
20402 と同様に)全て調整されます.最後に,新ファイル名を使ってファイルが再度読み込まれます.
20403 \end_layout
20404
20405 \begin_layout Labeling
20406 \labelwidthstring 00.00.0000
20407 SVNコマンド:
20408 \end_layout
20409
20410 \begin_layout Labeling
20411 \labelwidthstring 00.00.0000
20412 \begin_inset Flex Code
20413 status collapsed
20414
20415 \begin_layout Plain Layout
20416 svn move -q add "<ファイル名>" "<新ファイル名>"
20417 \end_layout
20418
20419 \end_inset
20420
20421
20422 \end_layout
20423
20424 \begin_layout Labeling
20425 \labelwidthstring 00.00.0000
20426 \begin_inset Flex Code
20427 status collapsed
20428
20429 \begin_layout Plain Layout
20430 svn commit
20431 \end_layout
20432
20433 \end_inset
20434
20435
20436 \end_layout
20437
20438 \begin_layout Subsubsection
20439 \begin_inset CommandInset label
20440 LatexCommand label
20441 name "subsec:レポジトリからSVN同期"
20442
20443 \end_inset
20444
20445 レポジトリを使ったローカルディレクトリの同期
20446 \begin_inset Foot
20447 status collapsed
20448
20449 \begin_layout Plain Layout
20450 このコマンドは,subversion 
20451 \begin_inset Formula $\geqq1.5$
20452 \end_inset
20453
20454 でのみ動作することに注意してください.
20455 \end_layout
20456
20457 \end_inset
20458
20459
20460 \end_layout
20461
20462 \begin_layout Standard
20463 上記の各コマンドはすべて,共通の短所を持っています.すなわち,これらのコマンドは現在の文書しか取り扱わないのです.もし,作業中の文書に図を含めたり,外部
20464 \begin_inset Flex Code
20465 status collapsed
20466
20467 \begin_layout Plain Layout
20468 .tex
20469 \end_layout
20470
20471 \end_inset
20472
20473 ファイルを取り込んだりすれば,管理はずっと複雑になります.そこで\SpecialChar LyX
20474 は,文書のおいてあるツリー全体の更新をサポートします
20475 \begin_inset Foot
20476 status collapsed
20477
20478 \begin_layout Plain Layout
20479 すべての外部ファイルが,文書と同じディレクトリかそれ以下のサブディレクトリに来るようにファイル構造を構成する必要があります.
20480 \end_layout
20481
20482 \end_inset
20483
20484 .これは,subversion管理を知らなかったりレポジトリに新しい素材をコミットする勇気のない人たちと共同作業をする羽目になったときに,ひじょうに役に立ちます
20485
20486 \end_layout
20487
20488 \begin_layout Standard
20489 \begin_inset Flex Code
20490 status collapsed
20491
20492 \begin_layout Plain Layout
20493 ローカル辞書をレポジトリを使って更新
20494 \end_layout
20495
20496 \end_inset
20497
20498 コマンドは,ディレクトリ全体を更新し,マージに衝突が発生した場合には,ローカル版は保存されるので,意図しないデータロスが発生しません.ローカルな変更が発見された
20499 場合には,更新が開始される前にユーザに警告が与えられます.
20500 \end_layout
20501
20502 \begin_layout Labeling
20503 \labelwidthstring 00.00.0000
20504 SVNコマンド: 
20505 \begin_inset space ~
20506 \end_inset
20507
20508
20509 \begin_inset Newline newline
20510 \end_inset
20511
20512
20513 \begin_inset Flex Code
20514 status collapsed
20515
20516 \begin_layout Plain Layout
20517 svn diff $path(変更が発見された場合には通知します)
20518 \begin_inset Newline newline
20519 \end_inset
20520
20521 svn update –accept mine-full $path
20522 \end_layout
20523
20524 \end_inset
20525
20526
20527 \end_layout
20528
20529 \begin_layout Standard
20530 ここで
20531 \begin_inset Flex Code
20532 status collapsed
20533
20534 \begin_layout Plain Layout
20535 $path
20536 \end_layout
20537
20538 \end_inset
20539
20540 は文書のパスを示します.
20541 \end_layout
20542
20543 \begin_layout Subsubsection
20544 履歴を表示
20545 \end_layout
20546
20547 \begin_layout Standard
20548 これは,SVN文書の全履歴を表示します.
20549 \begin_inset Flex Code
20550 status collapsed
20551
20552 \begin_layout Plain Layout
20553 svn log 
20554 \begin_inset Quotes eld
20555 \end_inset
20556
20557 <ファイル名>
20558 \begin_inset Quotes erd
20559 \end_inset
20560
20561
20562 \end_layout
20563
20564 \end_inset
20565
20566 の出力がブラウザに表示されます.
20567 \end_layout
20568
20569 \begin_layout Subsubsection
20570 ファイルロック
20571 \begin_inset CommandInset label
20572 LatexCommand label
20573 name "subsec:SVNファイルロック"
20574
20575 \end_inset
20576
20577
20578 \end_layout
20579
20580 \begin_layout Standard
20581 別々の改訂管理システム間でファイルを交換しようとすると,二人のユーザが同じ文書(の一部)を編集している場合,マージが衝突する問題を引き起こします.そのような衝突
20582 が発生した場合,手動で解決しなくてはならなくなりますが,その合理的な解決法としては,与えられた時間に一人のユーザだけがファイルを編集することが許されるように保証
20583 するための,何らかのロック機構を導入することが考えられます.
20584 \end_layout
20585
20586 \begin_layout Standard
20587 SVNには,このように相互に排他的なファイルアクセスを提供する機構が二つあります.ロックと,
20588 \begin_inset Flex Code
20589 status collapsed
20590
20591 \begin_layout Plain Layout
20592 svn:needs-lock
20593 \end_layout
20594
20595 \end_inset
20596
20597 svnファイル特性に依拠した書き込み権限の自動設定(第
20598 \begin_inset CommandInset ref
20599 LatexCommand ref
20600 reference "subsec:自動ロック特性"
20601
20602 \end_inset
20603
20604 節を参照)です
20605 \begin_inset Foot
20606 status collapsed
20607
20608 \begin_layout Plain Layout
20609 http://svnbook.red-bean.com/en/1.2/svn.advanced.locking.html
20610 \end_layout
20611
20612 \end_inset
20613
20614 .ある文書について,この特性が検出されたときには,\SpecialChar LyX
20615 は自動的に文書編集にSVNロックを使用するようになり,チェックイン・チェックアウト機構はRCSと同じ枠組みに切
20616 り替わります.これは特に,\SpecialChar LyX
20617 でのファイルの使われ方に以下の二つのモードがあることを意味します.
20618 \end_layout
20619
20620 \begin_layout Itemize
20621 非ロック状態.読み込まれたファイルは,読み込み専用モードになります.編集するためには,チェックアウトする必要があります.
20622 \emph on
20623 チェックアウト
20624 \emph default
20625 を行うと,レポジトリからの更新と,書き込みロックの獲得が行われます.ロックの獲得ができないと,非ロック状態から出ることができません.
20626 \end_layout
20627
20628 \begin_layout Itemize
20629 ロック状態.読み込まれたファイルは,「通常の」編集モードになります.他のユーザには,このファイルを編集する許可が与えられません.
20630 \emph on
20631 チェックイン
20632 \emph default
20633 を行うと,変更のコミットと書き込みロックの解放が行われます.文書に変更が加えられなかった場合には,コミットは実行されず
20634 \begin_inset Foot
20635 status collapsed
20636
20637 \begin_layout Plain Layout
20638 コミットは実行されないのに,コミットメッセージを入力するよう促されますが,驚かないでください.
20639 \end_layout
20640
20641 \end_inset
20642
20643 ,書き込みロックの解放のみが行われます.
20644 \end_layout
20645
20646 \begin_layout Standard
20647 SVNコマンド:
20648 \end_layout
20649
20650 \begin_layout Labeling
20651 \labelwidthstring 00.00.0000
20652 チェックイン: 
20653 \begin_inset Flex Code
20654 status collapsed
20655
20656 \begin_layout Plain Layout
20657 svn commit -q -m
20658 \begin_inset Quotes erd
20659 \end_inset
20660
20661 <説明>
20662 \begin_inset Quotes erd
20663 \end_inset
20664
20665  
20666 \begin_inset Quotes eld
20667 \end_inset
20668
20669 <ファイル名>
20670 \begin_inset Quotes erd
20671 \end_inset
20672
20673
20674 \end_layout
20675
20676 \end_inset
20677
20678
20679 \begin_inset Newline newline
20680 \end_inset
20681
20682
20683 \begin_inset Flex Code
20684 status collapsed
20685
20686 \begin_layout Plain Layout
20687 svn unlock 
20688 \begin_inset Quotes eld
20689 \end_inset
20690
20691 <ファイル名>
20692 \begin_inset Quotes erd
20693 \end_inset
20694
20695
20696 \end_layout
20697
20698 \end_inset
20699
20700
20701 \end_layout
20702
20703 \begin_layout Labeling
20704 \labelwidthstring 00.00.0000
20705 チェックアウト: 
20706 \begin_inset Flex Code
20707 status collapsed
20708
20709 \begin_layout Plain Layout
20710 svn update 
20711 \begin_inset Quotes eld
20712 \end_inset
20713
20714 <ファイル名>
20715 \begin_inset Quotes erd
20716 \end_inset
20717
20718
20719 \end_layout
20720
20721 \end_inset
20722
20723
20724 \begin_inset Newline newline
20725 \end_inset
20726
20727
20728 \begin_inset Flex Code
20729 status collapsed
20730
20731 \begin_layout Plain Layout
20732 svn unlock 
20733 \begin_inset Quotes eld
20734 \end_inset
20735
20736 <ファイル名>
20737 \begin_inset Quotes erd
20738 \end_inset
20739
20740
20741 \end_layout
20742
20743 \end_inset
20744
20745
20746 \end_layout
20747
20748 \begin_layout Subsubsection
20749 自動ロック特性
20750 \begin_inset CommandInset label
20751 LatexCommand label
20752 name "subsec:自動ロック特性"
20753
20754 \end_inset
20755
20756
20757 \end_layout
20758
20759 \begin_layout Standard
20760 上述したような
20761 \begin_inset Flex Code
20762 status collapsed
20763
20764 \begin_layout Plain Layout
20765 .lyx
20766 \end_layout
20767
20768 \end_inset
20769
20770 ファイルに対する書き込み権限の自動設定は,
20771 \begin_inset Flex MenuItem
20772 status collapsed
20773
20774 \begin_layout Plain Layout
20775 ファイル\SpecialChar menuseparator
20776 バージョン管理\SpecialChar menuseparator
20777 ロック特性を使用
20778 \end_layout
20779
20780 \end_inset
20781
20782 で行うことができます.このコマンドは,SVNサーバでファイルがロックされていないときのみ使用可能状態になります(つまり,使用するにはチェックアウトが必要です).
20783 \end_layout
20784
20785 \begin_layout Standard
20786 SVNコマンド:
20787 \end_layout
20788
20789 \begin_layout Labeling
20790 \labelwidthstring 00.00.0000
20791 チェックイン: 
20792 \begin_inset Flex Code
20793 status collapsed
20794
20795 \begin_layout Plain Layout
20796 svn propset svn:needs-lock ON 
20797 \begin_inset Quotes eld
20798 \end_inset
20799
20800 <ファイル名>
20801 \begin_inset Quotes erd
20802 \end_inset
20803
20804
20805 \end_layout
20806
20807 \end_inset
20808
20809
20810 \end_layout
20811
20812 \begin_layout Labeling
20813 \labelwidthstring 00.00.0000
20814 チェックアウト: 
20815 \begin_inset Flex Code
20816 status collapsed
20817
20818 \begin_layout Plain Layout
20819 svn propdel svn:needs-lock 
20820 \begin_inset Quotes eld
20821 \end_inset
20822
20823 <ファイル名>
20824 \begin_inset Quotes erd
20825 \end_inset
20826
20827
20828 \end_layout
20829
20830 \end_inset
20831
20832
20833 \end_layout
20834
20835 \begin_layout Subsubsection
20836 \begin_inset CommandInset label
20837 LatexCommand label
20838 name "subsec:VCS改訂情報"
20839
20840 \end_inset
20841
20842 文書の改訂情報
20843 \end_layout
20844
20845 \begin_layout Standard
20846 文書中で改訂情報を有効化するにはいくつかの方法があります.
20847 \end_layout
20848
20849 \begin_layout Itemize
20850 \SpecialChar LyX
20851 による直接サポート
20852 \end_layout
20853
20854 \begin_deeper
20855 \begin_layout Itemize
20856 ツリー改訂情報(
20857 \begin_inset Flex Code
20858 status collapsed
20859
20860 \begin_layout Plain Layout
20861 vcs-tree-revision
20862 \end_layout
20863
20864 \end_inset
20865
20866 ).
20867 \begin_inset Flex Code
20868 status collapsed
20869
20870 \begin_layout Plain Layout
20871 svnversion
20872 \end_layout
20873
20874 \end_inset
20875
20876 コマンドの出力を返します.下記の表が,結果の読み方のヒントを与えるでしょう.
20877 \end_layout
20878
20879 \begin_layout Standard
20880 \align center
20881 \begin_inset Tabular
20882 <lyxtabular version="3" rows="6" columns="2">
20883 <features tabularvalignment="middle">
20884 <column alignment="center" valignment="top">
20885 <column alignment="center" valignment="top">
20886 <row>
20887 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
20888 \begin_inset Text
20889
20890 \begin_layout Plain Layout
20891 出力
20892 \end_layout
20893
20894 \end_inset
20895 </cell>
20896 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
20897 \begin_inset Text
20898
20899 \begin_layout Plain Layout
20900 意味
20901 \end_layout
20902
20903 \end_inset
20904 </cell>
20905 </row>
20906 <row>
20907 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20908 \begin_inset Text
20909
20910 \begin_layout Plain Layout
20911 4123:4168
20912 \end_layout
20913
20914 \end_inset
20915 </cell>
20916 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20917 \begin_inset Text
20918
20919 \begin_layout Plain Layout
20920 改訂版の混合した作業コピー
20921 \end_layout
20922
20923 \end_inset
20924 </cell>
20925 </row>
20926 <row>
20927 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20928 \begin_inset Text
20929
20930 \begin_layout Plain Layout
20931 4168M
20932 \end_layout
20933
20934 \end_inset
20935 </cell>
20936 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20937 \begin_inset Text
20938
20939 \begin_layout Plain Layout
20940 修正された作業コピー
20941 \end_layout
20942
20943 \end_inset
20944 </cell>
20945 </row>
20946 <row>
20947 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20948 \begin_inset Text
20949
20950 \begin_layout Plain Layout
20951 4123S
20952 \end_layout
20953
20954 \end_inset
20955 </cell>
20956 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20957 \begin_inset Text
20958
20959 \begin_layout Plain Layout
20960 スイッチされた作業コピー
20961 \end_layout
20962
20963 \end_inset
20964 </cell>
20965 </row>
20966 <row>
20967 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20968 \begin_inset Text
20969
20970 \begin_layout Plain Layout
20971 4123P
20972 \end_layout
20973
20974 \end_inset
20975 </cell>
20976 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20977 \begin_inset Text
20978
20979 \begin_layout Plain Layout
20980 チェックアウト頻度が低かったことによる不完全な作業コピー
20981 \end_layout
20982
20983 \end_inset
20984 </cell>
20985 </row>
20986 <row>
20987 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
20988 \begin_inset Text
20989
20990 \begin_layout Plain Layout
20991 4123:4168MS
20992 \end_layout
20993
20994 \end_inset
20995 </cell>
20996 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
20997 \begin_inset Text
20998
20999 \begin_layout Plain Layout
21000 改訂版が混合し,修正され,スイッチされた作業コピー
21001 \end_layout
21002
21003 \end_inset
21004 </cell>
21005 </row>
21006 </lyxtabular>
21007
21008 \end_inset
21009
21010
21011 \end_layout
21012
21013 \begin_layout Itemize
21014 ファイル改訂情報.
21015 \begin_inset Flex Code
21016 status collapsed
21017
21018 \begin_layout Plain Layout
21019 svn
21020 \begin_inset space ~
21021 \end_inset
21022
21023 info
21024 \begin_inset space ~
21025 \end_inset
21026
21027 –xml
21028 \begin_inset space ~
21029 \end_inset
21030
21031 file.lyx
21032 \end_layout
21033
21034 \end_inset
21035
21036 の出力を解析したものが返されます.サポートされるフラグは
21037 \end_layout
21038
21039 \begin_deeper
21040 \begin_layout Itemize
21041 最終コミットのバージョン番号(
21042 \begin_inset Flex Code
21043 status collapsed
21044
21045 \begin_layout Plain Layout
21046 vcs-revision
21047 \end_layout
21048
21049 \end_inset
21050
21051 )
21052 \end_layout
21053
21054 \begin_layout Itemize
21055 最終コミットの著者(
21056 \begin_inset Flex Code
21057 status collapsed
21058
21059 \begin_layout Plain Layout
21060 vcs-author
21061 \end_layout
21062
21063 \end_inset
21064
21065 )
21066 \end_layout
21067
21068 \begin_layout Itemize
21069 最終コミットの日付(
21070 \begin_inset Flex Code
21071 status collapsed
21072
21073 \begin_layout Plain Layout
21074 vcs-date
21075 \end_layout
21076
21077 \end_inset
21078
21079 )
21080 \end_layout
21081
21082 \begin_layout Itemize
21083 最終コミットの時間(
21084 \begin_inset Flex Code
21085 status collapsed
21086
21087 \begin_layout Plain Layout
21088 vcs-time
21089 \end_layout
21090
21091 \end_inset
21092
21093 )
21094 \end_layout
21095
21096 \end_deeper
21097 \begin_layout Standard
21098 これらの情報は,情報差込枠で得ることができます(例:
21099 \begin_inset Flex Code
21100 status collapsed
21101
21102 \begin_layout Plain Layout
21103 info-insert buffer vcs-date
21104 \end_layout
21105
21106 \end_inset
21107
21108 ).これらの情報は,ファイルをsvn管理下に置いたときのみ(すなわち使用中文書の
21109 \begin_inset Flex Code
21110 status collapsed
21111
21112 \begin_layout Plain Layout
21113 .svn
21114 \end_layout
21115
21116 \end_inset
21117
21118 ディレクトリがあるときのみ)利用可能です.
21119 \end_layout
21120
21121 \end_deeper
21122 \begin_layout Itemize
21123 もう一つの—ハッカー的な—方法は,SVNキーワードを使用する方法です
21124 \begin_inset Foot
21125 status collapsed
21126
21127 \begin_layout Plain Layout
21128 http://svnbook.red-bean.com/en/1.4/svn.advanced.props.special.keywords.html
21129 \end_layout
21130
21131 \end_inset
21132
21133 .簡単に言えば,ファイルキーワード特性を設定して(例:
21134 \family sans
21135 svn propset svn:keywords 'Rev' file.lyx
21136 \family default
21137 ),文書中にキーワード\SpecialChar TeX
21138 コード
21139 \begin_inset Foot
21140 status collapsed
21141
21142 \begin_layout Plain Layout
21143 これは,\SpecialChar LyX
21144 がキーワードタグの途中で改行してしまわないことを確実にするための,簡単な方法です.
21145 \end_layout
21146
21147 \end_inset
21148
21149 タグ(例:
21150 \begin_inset ERT
21151 status open
21152
21153 \begin_layout Plain Layout
21154
21155 $Rev$
21156 \end_layout
21157
21158 \end_inset
21159
21160 )を貼り付けるのです.このようにして,SVNクライアントは,各更新やコミットの後に自動的に改訂番号を代入することができるのです(例
21161 \begin_inset ERT
21162 status open
21163
21164 \begin_layout Plain Layout
21165
21166 $Rev: 59 $
21167 \end_layout
21168
21169 \end_inset
21170
21171 ).このアプローチにはいくつか問題があります.第一に,\SpecialChar TeX
21172 の世界では「$」文字は数式を表すのに使われるので,\SpecialChar LyX
21173 中の
21174 \begin_inset Formula $Rev$
21175 \end_inset
21176
21177 という数式表現が,すべて
21178 \begin_inset Formula $Rev:59$
21179 \end_inset
21180
21181 になってしまいます.その他のId・Date・Authorなどといったキーワードも同様です.第二に,SVN出力は使用中のロケールに依存するので,Dateが用いられ
21182 ると,SVNは,問題を引き起こすような文字列を容易に生成してしまいます.第三に,文書中には,番号だけでなく「Rev:59」という文字列全体が表示されてしまいます
21183 .Subversionがユーザ定義のキーワードを実装するまでは,このアプローチを信頼性を持って使用したり,\SpecialChar LyX
21184 がこれを直接サポートすることは,難しそうです.
21185 \end_layout
21186
21187 \begin_layout Subsection
21188 SVNとWindows環境
21189 \end_layout
21190
21191 \begin_layout Quote
21192 ユーザが,かなり早いうちに自分自身でコマンドライン操作を理解できないのであれば,TortoiseSVNを使った方が賢明でしょう.—P.
21193  A.
21194  ルービン
21195 \end_layout
21196
21197 \begin_layout Subsubsection
21198 準備
21199 \end_layout
21200
21201 \begin_layout Standard
21202 \SpecialChar LyX
21203 を導入して,Subversionレポジトリへのアクセス権を持っている他に,ユーザはSubversionクライアントプログラムを導入する必要があります.クライアン
21204 トプログラムのWindows用インストーラは
21205 \begin_inset CommandInset href
21206 LatexCommand href
21207 name "CollabNet"
21208 target "http://www.collab.net/nonav/downloads/subversion/"
21209 literal "false"
21210
21211 \end_inset
21212
21213 にあります.ユーザは
21214 \begin_inset CommandInset href
21215 LatexCommand href
21216 name "TortoiseSVN"
21217 target "http://tortoisesvn.tigris.org/"
21218 literal "false"
21219
21220 \end_inset
21221
21222 も導入することを考えるでしょう.これはSubversionの操作をWindows Explorerのコンテクスト(右クリック)メニューに統合します.\SpecialChar LyX
21223 外部で行う操
21224 作は,一般的にExplorerコンテクストメニューを使った方が便利です.TortoiseSVNは,\SpecialChar LyX
21225 自身が使用するクライアントプログラムの代わりとは成りませんので
21226 ,注意してください.
21227 \end_layout
21228
21229 \begin_layout Subsubsection
21230 文書をSubversion管理下に置くには
21231 \end_layout
21232
21233 \begin_layout Standard
21234 \SpecialChar LyX
21235 文書をSubversionのバージョン管理下に置く前に,その親ディレクトリをバージョン管理下に置かなくてはなりません.文書を,既にレポジトリに存在するプロジェク
21236 トに追加する際には,新規文書が置かれることになるディレクトリへ,プロジェクトをチェックアウトすることによって実現します.プロジェクト自体がバージョン管理下にない
21237 場合(たとえばこの文書が新規プロジェクトの最初のファイルである場合)には,このディレクトリをレポジトリにインポートしなくてはなりません.これは,\SpecialChar LyX
21238 の外部で行います
21239 .インポートもチェックアウトも共に,TortoiseSVNを使えば,Explorerのコンテクストメニューから簡単に終えることができます.あるいは,DOSプロン
21240 プトでコマンドライン・クライアントを使って成し遂げることもできます.TortoiseSVNを使ったプロジェクトのインポート手続きを下記で説明します.レポジトリは
21241 既に存在し,新規プロジェクトを
21242 \begin_inset Flex Code
21243 status collapsed
21244
21245 \begin_layout Plain Layout
21246 C:
21247 \backslash
21248 new project
21249 \end_layout
21250
21251 \end_inset
21252
21253 で開始するものとします.Subversionクライアントプログラムを使うための情報を得るには,DOSシェルで
21254 \begin_inset Flex Code
21255 status collapsed
21256
21257 \begin_layout Plain Layout
21258 svn –help
21259 \end_layout
21260
21261 \end_inset
21262
21263 を実行してください.
21264 \end_layout
21265
21266 \begin_layout Enumerate
21267 Windows Explorerで
21268 \begin_inset Flex Code
21269 status collapsed
21270
21271 \begin_layout Plain Layout
21272 C:
21273 \backslash
21274 new project
21275 \end_layout
21276
21277 \end_inset
21278
21279 を見つけ出して右クリックし,
21280 \begin_inset Flex MenuItem
21281 status collapsed
21282
21283 \begin_layout Plain Layout
21284 TortoiseSVN\SpecialChar menuseparator
21285 Repo-browser
21286 \end_layout
21287
21288 \end_inset
21289
21290 を選択してください.必要であれば,レポジトリのURLを調整し,OKをクリックしてください.
21291 \end_layout
21292
21293 \begin_layout Enumerate
21294 新規プロジェクトフォルダを置くレポジトリレベル(多くの場合最上位レベル)を右クリックし,
21295 \begin_inset Flex MenuItem
21296 status collapsed
21297
21298 \begin_layout Plain Layout
21299 Create folder\SpecialChar ldots
21300
21301 \end_layout
21302
21303 \end_inset
21304
21305 をクリックしてください.プロジェクトフォルダの名称を入力してOKをクリックしてください.必要であればログファイル用のメッセージを入力し,再びOKをクリックしてく
21306 ださい.新規プロジェクトフォルダがレポジトリに現れるはずです.最後にOKを再度クリックして,レポジトリブラウザを終了してください.
21307 \end_layout
21308
21309 \begin_layout Enumerate
21310 再度
21311 \begin_inset Flex Code
21312 status collapsed
21313
21314 \begin_layout Plain Layout
21315 C:
21316 \backslash
21317 new project
21318 \end_layout
21319
21320 \end_inset
21321
21322 を右クリックし,今度は
21323 \begin_inset Flex MenuItem
21324 status collapsed
21325
21326 \begin_layout Plain Layout
21327 SVN Checkout\SpecialChar ldots
21328
21329 \end_layout
21330
21331 \end_inset
21332
21333 を選択してください.レポジトリにたった今作成した,プロジェクトフォルダのURLを選択し,チェックアウトディレクトリを
21334 \begin_inset Flex Code
21335 status collapsed
21336
21337 \begin_layout Plain Layout
21338 C:
21339 \backslash
21340 new project
21341 \end_layout
21342
21343 \end_inset
21344
21345 に設定してから,OKをクリックしてください.フォルダが空でないことを警告されますが,OKをクリックして進んでください.すると,
21346 \begin_inset Flex Code
21347 status collapsed
21348
21349 \begin_layout Plain Layout
21350 C:
21351 \backslash
21352 new project
21353 \end_layout
21354
21355 \end_inset
21356
21357 の下に
21358 \begin_inset Flex Code
21359 status collapsed
21360
21361 \begin_layout Plain Layout
21362 .svn
21363 \end_layout
21364
21365 \end_inset
21366
21367 ディレクトリが作成されます.
21368 \end_layout
21369
21370 \begin_layout Enumerate
21371 \SpecialChar LyX
21372 で文書を新規作成するか開くかして,
21373 \begin_inset Flex MenuItem
21374 status collapsed
21375
21376 \begin_layout Plain Layout
21377 ファイル\SpecialChar menuseparator
21378 バージョン管理\SpecialChar menuseparator
21379 登録
21380 \end_layout
21381
21382 \end_inset
21383
21384 をクリックします.ログメッセージを入力してOKをクリックし,文書をバージョン管理にコミットしてください.
21385 \end_layout
21386
21387 \begin_layout Standard
21388 爾後,
21389 \begin_inset Flex MenuItem
21390 status collapsed
21391
21392 \begin_layout Plain Layout
21393 ファイル\SpecialChar menuseparator
21394 バージョン管理
21395 \end_layout
21396
21397 \end_inset
21398
21399 メニューのすべての機能が使用できるようになります.Windows ExplorerのTortoiseSVNコンテクストメニューか,コマンドプロンプトでのSubv
21400 ersionクライアントプログラムを使用して,文書をチェックイン・チェックアウトしたり,履歴を見たりといったことができるようになります.
21401 \end_layout
21402
21403 \begin_layout Subsubsection
21404 Windows下でSVNと共にSSHトンネルを使うには
21405 \end_layout
21406
21407 \begin_layout Standard
21408 Linuxに較べて,WindowsでSVNクライアントをSSH経由で通信するようにさせるのは,かなり厄介な仕事です.どのようにクライアント側を設定すればよいか,
21409 少なくとも幾分かのヒントをお示しするつもりですが,sshとWindowsコマンドラインの知識が前もって必要であり,それと共にかなりの量のフラストレーションが溜ま
21410 ることを覚悟しておいてください.
21411 \end_layout
21412
21413 \begin_layout Enumerate
21414 前節で述べたように,Windows用のSVNクライアントを入手してください.これが新規の導入である場合には,何らかのSVNコマンド(たとえば
21415 \begin_inset Flex Code
21416 status collapsed
21417
21418 \begin_layout Plain Layout
21419 svn –version
21420 \end_layout
21421
21422 \end_inset
21423
21424 )を実行して,configファイル群を生成させてください.これらは後で変更を加える必要があります.
21425 \end_layout
21426
21427 \begin_layout Enumerate
21428 Windows用のsshクライアントを選んでください.選択肢はたくさんありますが,ここではPutty tools
21429 \begin_inset Foot
21430 status open
21431
21432 \begin_layout Plain Layout
21433 \begin_inset Flex URL
21434 status collapsed
21435
21436 \begin_layout Plain Layout
21437
21438 http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html
21439 \end_layout
21440
21441 \end_inset
21442
21443
21444 \end_layout
21445
21446 \end_inset
21447
21448 のものを使用することとしましょう.クライアントが接続の度にパスワードを訊いてこないように,接続を自動化する必要があります.簡単にするために,追加的なパスワード保
21449 護などを加えない
21450 \begin_inset Flex Ruby
21451 status collapsed
21452
21453 \begin_layout Plain Layout
21454
21455 \begin_inset Argument post:1
21456 status collapsed
21457
21458 \begin_layout Plain Layout
21459 キー
21460 \end_layout
21461
21462 \end_inset
21463
21464
21465 \end_layout
21466
21467 \end_inset
21468
21469 のみを使用することとします.
21470 \end_layout
21471
21472 \begin_deeper
21473 \begin_layout Enumerate
21474 \begin_inset Flex Code
21475 status collapsed
21476
21477 \begin_layout Plain Layout
21478 puttygen
21479 \end_layout
21480
21481 \end_inset
21482
21483 を使って鍵を生成します..ppkプライベート鍵ファイルを保存し,パブリック鍵ファイルはサーバ側に置きます.SVNサーバがLinuxで走っている場合,このパブリック
21484 鍵の書式はLinuxのopensshと互換性がないために,「Public key for pasting into OpenSSH authorized_key
21485 s file:」編集フィールドから,直接サーバの
21486 \begin_inset Flex Code
21487 status collapsed
21488
21489 \begin_layout Plain Layout
21490 ~/.ssh/authorized_keys
21491 \end_layout
21492
21493 \end_inset
21494
21495 または
21496 \begin_inset Flex Code
21497 status collapsed
21498
21499 \begin_layout Plain Layout
21500 authorized_keys2
21501 \end_layout
21502
21503 \end_inset
21504
21505 ファイルにコピー&ペーストを行わなくてはならないことに注意してください.
21506 \end_layout
21507
21508 \begin_layout Enumerate
21509 Puttyのplinkを入手してください.SVNのconfigファイル
21510 \begin_inset Foot
21511 status collapsed
21512
21513 \begin_layout Plain Layout
21514 正確なパスはWindowsのバージョンに依りますが,通常は
21515 \begin_inset Flex Code
21516 status collapsed
21517
21518 \begin_layout Plain Layout
21519 c:
21520 \backslash
21521 Documents and Settings
21522 \backslash
21523 user
21524 \backslash
21525 Application Data
21526 \backslash
21527 Subversion
21528 \backslash
21529 config
21530 \end_layout
21531
21532 \end_inset
21533
21534
21535 \begin_inset Flex Code
21536 status collapsed
21537
21538 \begin_layout Plain Layout
21539 AppData
21540 \backslash
21541 Roaming
21542 \backslash
21543 Subversion
21544 \end_layout
21545
21546 \end_inset
21547
21548 辺りにあります.
21549 \end_layout
21550
21551 \end_inset
21552
21553 中の
21554 \begin_inset Flex Code
21555 status collapsed
21556
21557 \begin_layout Plain Layout
21558 [tunnels]
21559 \end_layout
21560
21561 \end_inset
21562
21563 セクションにsshコマンドを設定してください.例:
21564 \begin_inset Flex Code
21565 status collapsed
21566
21567 \begin_layout Plain Layout
21568 ssh=c:/path/plink.exe -i c:/path/private_key.ppk
21569 \end_layout
21570
21571 \end_inset
21572
21573
21574 \begin_inset Foot
21575 status collapsed
21576
21577 \begin_layout Plain Layout
21578 通常,正確なコマンドを機能させるには長い時間がかかり,それは多くの物事に依存します.たとえば,リモートサーバがPuttyなどの既定セッションとして保存されないよ
21579 うにしてください.うまく行かない場合には,まずSVNなしでplink経由の接続を試してください.
21580 \end_layout
21581
21582 \end_inset
21583
21584
21585 \end_layout
21586
21587 \end_deeper
21588 \begin_layout Enumerate
21589 SVNアーカイブをチェックアウトしてください.例:
21590 \begin_inset Newline newline
21591 \end_inset
21592
21593
21594 \begin_inset Flex Code
21595 status collapsed
21596
21597 \begin_layout Plain Layout
21598 svn co svn+ssh://user@server/repository_path
21599 \end_layout
21600
21601 \end_inset
21602
21603
21604 \end_layout
21605
21606 \begin_layout Subsubsection
21607 行末変換
21608 \end_layout
21609
21610 \begin_layout Standard
21611 共著者同士がLinuxとWindowsを混在させているとき,\SpecialChar LyX
21612 は.lyxファイル中で異なった行末記号を使用することになります.これは,\SpecialChar LyX
21613 の機能に関する限り問題になりま
21614 せんが,コミット差分は巨大になり,マージではコンフリクトを引き起こしがちです.幸いにして,SVNは,.lyxファイルを
21615 \begin_inset Flex Code
21616 status collapsed
21617
21618 \begin_layout Plain Layout
21619 native
21620 \end_layout
21621
21622 \end_inset
21623
21624 モードに切り替える際
21625 \begin_inset Foot
21626 status collapsed
21627
21628 \begin_layout Plain Layout
21629 手短には
21630 \begin_inset Flex Code
21631 status collapsed
21632
21633 \begin_layout Plain Layout
21634 svn propset svn:eol-style native FILE_NAME
21635 \end_layout
21636
21637 \end_inset
21638
21639
21640 \end_layout
21641
21642 \end_inset
21643
21644 ,CR/LF問題をどのように取り扱えばいいかを知っているので大丈夫です
21645 \begin_inset Foot
21646 status collapsed
21647
21648 \begin_layout Plain Layout
21649 \begin_inset Flex URL
21650 status collapsed
21651
21652 \begin_layout Plain Layout
21653
21654 http://svnbook.red-bean.com/en/1.4/svn.advanced.props.file-portability.html
21655 \end_layout
21656
21657 \end_inset
21658
21659
21660 \end_layout
21661
21662 \end_inset
21663
21664
21665 \end_layout
21666
21667 \begin_layout Subsection
21668 \SpecialChar LyX
21669 におけるGITコマンド
21670 \end_layout
21671
21672 \begin_layout Standard
21673 \SpecialChar LyX
21674 で,最小限のGITコマンドがサポートされるようになりました.これらのコマンドは,
21675 \family sans
21676 ファイル\SpecialChar menuseparator
21677 バージョン管理
21678 \family default
21679 にあります.リポジトリのアクセスに,パスワード保護されたsshを使用している場合には,ターミナルウィンドウでの操作をするように促されます.\SpecialChar LyX
21680 は,GIT
21681  1.7に対して試験を行っています.
21682 \end_layout
21683
21684 \begin_layout Standard
21685 GITと他のバージョン管理システムとの大きな相違点は,GITの配布形態にあります.伝統的なバージョン管理システムでは,リポジトリをホストする,中心となるサーバー
21686 があります.ユーザーは変更点をサーバーにコミットし,他のユーザーが行った更新分をサーバーから受け取ります.一方,GITでは,ユーザーは,ローカルのリポジトリにコ
21687 ミットを行います.ローカルリポジトリは,GITコマンドの
21688 \begin_inset Flex Code
21689 status open
21690
21691 \begin_layout Plain Layout
21692 pull
21693 \end_layout
21694
21695 \end_inset
21696
21697 または
21698 \begin_inset Flex Code
21699 status open
21700
21701 \begin_layout Plain Layout
21702 push
21703 \end_layout
21704
21705 \end_inset
21706
21707 を使って,1つ以上のリモートリポジトリと同期されます.\SpecialChar LyX
21708 は,リモートのGITリポジトリとは,一切関わりません.CVSやSVNの集権的リポジトリに対して行うのと同じ
21709 ことを,ローカルのリポジトリに対してのみ行います.リモートのGITリポジトリを使用している場合には,お好みのGITクライアントを使用して,
21710 \begin_inset Flex Code
21711 status open
21712
21713 \begin_layout Plain Layout
21714 pull
21715 \end_layout
21716
21717 \end_inset
21718
21719 または
21720 \begin_inset Flex Code
21721 status open
21722
21723 \begin_layout Plain Layout
21724 push
21725 \end_layout
21726
21727 \end_inset
21728
21729 の操作を行う必要があります.
21730 \end_layout
21731
21732 \begin_layout Subsubsection
21733 登録
21734 \end_layout
21735
21736 \begin_layout Standard
21737 お使いの文書が改訂管理下に置かれていなければ,メニューにはこの項目だけが表示されます.もし改訂管理が有効ならば,
21738 \family sans
21739 登録
21740 \family default
21741 項目は表示されません.
21742 \end_layout
21743
21744 \begin_layout Standard
21745 本コマンドは,既に文書のあるディレクトリをGIT管理下に置いている場合に
21746 \emph on
21747 のみ
21748 \emph default
21749 (すなわち
21750 \begin_inset Flex Code
21751 status collapsed
21752
21753 \begin_layout Plain Layout
21754 .git/index
21755 \end_layout
21756
21757 \end_inset
21758
21759 ファイルが存在する場合にのみ),お使いの文書をGITに登録します.つまり,アーカイブはご自分でチェックアウトしなくてはなりません.
21760 \end_layout
21761
21762 \begin_layout Standard
21763 すると,文書の最初の説明文を入力するように促されます.登録したファイルは,まだコミットされたわけではないことに注意してください.
21764 \end_layout
21765
21766 \begin_layout Standard
21767 実行されるGITコマンドは,
21768 \begin_inset Flex Code
21769 status collapsed
21770
21771 \begin_layout Plain Layout
21772 git add "<ファイル名>"
21773 \end_layout
21774
21775 \end_inset
21776
21777 です.
21778 \end_layout
21779
21780 \begin_layout Standard
21781 スイッチの説明は
21782 \begin_inset Flex Code
21783 status collapsed
21784
21785 \begin_layout Plain Layout
21786 man git
21787 \end_layout
21788
21789 \end_inset
21790
21791 をお読みください.
21792 \end_layout
21793
21794 \begin_layout Subsubsection
21795 変更をチェックイン
21796 \end_layout
21797
21798 \begin_layout Standard
21799 ファイルの編集を終えたら,変更をコミットします.このとき,変更の説明文を入れるよう促されます.その後,変更がコミットされます.
21800 \end_layout
21801
21802 \begin_layout Standard
21803 GITコマンド:
21804 \begin_inset Flex Code
21805 status collapsed
21806
21807 \begin_layout Plain Layout
21808 git commit -q -m
21809 \begin_inset Quotes erd
21810 \end_inset
21811
21812 <入力した説明文>
21813 \begin_inset Quotes erd
21814 \end_inset
21815
21816  "<ファイル名>"
21817 \end_layout
21818
21819 \end_inset
21820
21821
21822 \end_layout
21823
21824 \begin_layout Subsubsection
21825 リポジトリ版に戻す
21826 \end_layout
21827
21828 \begin_layout Standard
21829 これは,最後のチェックイン以降,文書に加えられた変更をすべて廃棄します.変更が廃棄される前に警告が表示されます.
21830 \end_layout
21831
21832 \begin_layout Standard
21833 GITコマンド:
21834 \begin_inset Flex Code
21835 status collapsed
21836
21837 \begin_layout Plain Layout
21838 git checkout -q 
21839 \begin_inset Quotes eld
21840 \end_inset
21841
21842 <ファイル名>
21843 \begin_inset Quotes erd
21844 \end_inset
21845
21846
21847 \end_layout
21848
21849 \end_inset
21850
21851
21852 \end_layout
21853
21854 \begin_layout Subsubsection
21855 ファイル名変更
21856 \end_layout
21857
21858 \begin_layout Standard
21859 これは,現行文書のファイル名を変更します.最後のチェックイン以降,変更が加えられていないサラの文書であることが要求されます.ファイル名とコピー操作の説明を入力す
21860 るように促され,その後,ローカルとリポジトリの両方でファイル名が変更されます.新旧ファイル名の文書の親ディレクトリが異なる場合には,コピーにインクルードされたフ
21861 ァイルの相対パスは,(
21862 \family sans
21863 ファイル\SpecialChar menuseparator
21864 名前をつけて保存\SpecialChar ldots
21865
21866 \family default
21867 と同様に)全て調整されます.最後に,新ファイル名を使ってファイルが再度読み込まれます.
21868 \end_layout
21869
21870 \begin_layout Labeling
21871 \labelwidthstring 00.00.0000
21872 GITコマンド:
21873 \end_layout
21874
21875 \begin_layout Labeling
21876 \labelwidthstring 00.00.0000
21877 \begin_inset Flex Code
21878 status collapsed
21879
21880 \begin_layout Plain Layout
21881 git mv "<ファイル名>" "<新ファイル名>"
21882 \end_layout
21883
21884 \end_inset
21885
21886
21887 \end_layout
21888
21889 \begin_layout Labeling
21890 \labelwidthstring 00.00.0000
21891 \begin_inset Flex Code
21892 status collapsed
21893
21894 \begin_layout Plain Layout
21895 git commit
21896 \end_layout
21897
21898 \end_inset
21899
21900
21901 \end_layout
21902
21903 \begin_layout Subsubsection
21904 履歴を表示
21905 \end_layout
21906
21907 \begin_layout Standard
21908 これは,GIT文書の全履歴を表示します.
21909 \begin_inset Flex Code
21910 status collapsed
21911
21912 \begin_layout Plain Layout
21913 git log 
21914 \begin_inset Quotes eld
21915 \end_inset
21916
21917 <ファイル名>
21918 \begin_inset Quotes erd
21919 \end_inset
21920
21921
21922 \end_layout
21923
21924 \end_inset
21925
21926 の出力がブラウザに表示されます.
21927 \end_layout
21928
21929 \begin_layout Subsubsection
21930 改訂情報
21931 \end_layout
21932
21933 \begin_layout Standard
21934 \SpecialChar LyX
21935 は,ファイルの最終コミットのGITハッシュ番号・著者名・最終コミットの日時をサポートします.これらの情報は,すべて
21936 \family typewriter
21937 git log -n 1 --pretty=format:%H%n%an%n%ai
21938 \family default
21939 によって抽出されます.ツリーバージョン情報は,
21940 \family typewriter
21941 git describe --abbrev --dirty --long
21942 \family default
21943 で取得されます.詳細については,第
21944 \begin_inset CommandInset ref
21945 LatexCommand ref
21946 reference "subsec:VCS改訂情報"
21947
21948 \end_inset
21949
21950 節を参照してください.
21951 \end_layout
21952
21953 \begin_layout Subsection
21954 さらなる調整
21955 \end_layout
21956
21957 \begin_layout Standard
21958 vcコマンド機構が最近になって付け加えられたおかげで,\SpecialChar LyX
21959 のパワーユーザは,改訂管理のための自製コマンドを作ることができるようになりました.
21960 \end_layout
21961
21962 \begin_layout Standard
21963 たとえば,以下のようにして,二つのTortoiseSVNコマンドを直接統合することができます.
21964 \end_layout
21965
21966 \begin_layout Description
21967 コミット: 
21968 \begin_inset Flex Code
21969 status collapsed
21970
21971 \begin_layout Plain Layout
21972 vc-command DR "." "TortoiseProc /command:commit /path:$$p"
21973 \end_layout
21974
21975 \end_inset
21976
21977
21978 \end_layout
21979
21980 \begin_layout Description
21981 元に戻す: 
21982 \begin_inset Flex Code
21983 status collapsed
21984
21985 \begin_layout Plain Layout
21986 vc-command DR "." "TortoiseProc /command:revert /path:$$p"
21987 \end_layout
21988
21989 \end_inset
21990
21991
21992 \end_layout
21993
21994 \begin_layout Subsection
21995 バージョン管理と文書比較
21996 \end_layout
21997
21998 \begin_layout Standard
21999 バージョン管理は,通常
22000 \begin_inset Flex Code
22001 status collapsed
22002
22003 \begin_layout Plain Layout
22004 diff
22005 \end_layout
22006
22007 \end_inset
22008
22009 ダンプを生成することによって,改訂版の間の変更点を検査するのが,典型的な使用法です.これは平文ファイルには有効なのですが,複雑な構造を持つ\SpecialChar LyX
22010 ファイルの場合には,あ
22011 まり便利ではありません.そこで,\SpecialChar LyX
22012 は独自の文書比較機能を提供しています.この機能を呼び出すには2つの方法があります.1つは,\SpecialChar LyX
22013
22014 \begin_inset Flex Code
22015 status collapsed
22016
22017 \begin_layout Plain Layout
22018 VC_COMPARE
22019 \end_layout
22020
22021 \end_inset
22022
22023 関数を直接呼び出す方法であり(詳細は\SpecialChar LyX
22024 関数説明書を参照),もう1つは
22025 \begin_inset Flex MenuItem
22026 status collapsed
22027
22028 \begin_layout Plain Layout
22029 旧改訂と比較\SpecialChar ldots
22030
22031 \end_layout
22032
22033 \end_inset
22034
22035 メニューないしアイコンを使用する方法です.当該文書のうち,任意の2つの改訂版を比較することもできますし,編集中の現行版を古い改訂版と比較することもできます(この
22036 とき改訂版遡及数「
22037 \begin_inset Flex MenuItem
22038 status collapsed
22039
22040 \begin_layout Plain Layout
22041 0
22042 \end_layout
22043
22044 \end_inset
22045
22046 」は,編集中のファイルと最後にコミットした改訂版との比較を意味します).
22047 \end_layout
22048
22049 \begin_layout Standard
22050 この機能は,SVNとRCSでサポートされていますが,RCSは,より複雑なバージョン付けスキームを持っているため,制約があります.ダイアログ中で改訂版を指定する際
22051 の数字は,つねにRCS改訂番号の最後の数を指し示します(例:「1.2.35」版のときには「35」).現在のところ,改訂のGIT表記はサポートされておらず,HEAD~
22052 Xの形で表記されるXステップ前の改訂版を,編集中文書と比較することのみが可能です.
22053 \end_layout
22054
22055 \begin_layout Section
22056 文芸プログラミング
22057 \end_layout
22058
22059 \begin_layout Standard
22060
22061 \noun on
22062 Kayvan Sylvan
22063 \noun default
22064 (kayvan@sylvan.com)改訂 
22065 \noun on
22066 Edmar Wienskoski Jr.
22067 \noun default
22068 (edmar-w-jr@technologist.com)原文
22069 \end_layout
22070
22071 \begin_layout Subsection
22072 はじめに
22073 \end_layout
22074
22075 \begin_layout Standard
22076 この節の主な目的は,文芸的プログラミング(literate programming)のために,\SpecialChar LyX
22077 をどう使えばよいかをお見せすることです.ここでは,あなたがこのプロ
22078 グラミング技術をよくご存じで,「tangling」や「weaving」の意味するところを知っているものとして説明します.そうでない場合には,以下の各節にあるウェ
22079 ブリンクをたどってください.そこには,かつての開発の歴史から最新のツールチップまで,たくさんの良質なドキュメンテーションがあります.
22080 \end_layout
22081
22082 \begin_layout Standard
22083 また,あなたが,\SpecialChar LyX
22084 の設定を変更することを厭わない程度まで\SpecialChar LyX
22085 に習熟しており,Xリソースファイルにも親しんでいることを前提にしています.そうでない場合は,あなたの必要と
22086 するトピックを扱っている,\SpecialChar LyX
22087 の他の説明書で調べてください.
22088 \end_layout
22089
22090 \begin_layout Subsection
22091 文芸プログラミング
22092 \end_layout
22093
22094 \begin_layout Standard
22095 以下は,文芸プログラミング FAQからの抜粋です.
22096 \end_layout
22097
22098 \begin_layout Quotation
22099 文芸プログラミングは,人間が読むのに適した形でのドキュメンテーションとソースの組合わせです.実際,文芸的プログラムは楽しい読み物であるべきであり,さらには参加し
22100 たいとさえ思わせるべきなのです!(ボブ,ごめん.言わずにはいれなかった.)一般的に,文芸プログラムは,ソースとドキュメンテーションを同一ファイル上に結合したもの
22101 です.そして,文芸プログラミングツールは,ファイルを解析して,読むことのできるドキュメンテーションか,あるいはコンパイル可能なソースを生成します.文芸プログラミ
22102 ングのWEBスタイルは,D.
22103 \begin_inset space \thinspace{}
22104 \end_inset
22105
22106 E.
22107  Knuthが,\SpecialChar TeX
22108 組版ソフトウエアを開発中に作り出したものです.
22109 \end_layout
22110
22111 \begin_layout Standard
22112 他のエキスパートの発言です.
22113 \end_layout
22114
22115 \begin_layout Quotation
22116
22117 \emph on
22118 文芸プログラミングは,冗長なコメント付けと何が違いますか?
22119 \end_layout
22120
22121 \begin_layout Quotation
22122 3つの際立った特徴があります.重要な順に列挙すれば,
22123 \end_layout
22124
22125 \begin_deeper
22126 \begin_layout Itemize
22127 推敲の順序が柔軟
22128 \end_layout
22129
22130 \begin_layout Itemize
22131 ブラウジングの自動サポート
22132 \end_layout
22133
22134 \begin_layout Itemize
22135 特に図式と数式を含んだドキュメンテーションの組版
22136 \end_layout
22137
22138 \end_deeper
22139 \begin_layout Quotation
22140 などがあります.
22141 \end_layout
22142
22143 \begin_layout Standard
22144 あなたの興味に火を付けたところで書誌情報を見てみましょう.
22145 \end_layout
22146
22147 \begin_layout Subsubsection
22148 書誌情報
22149 \end_layout
22150
22151 \begin_layout Standard
22152 完全な文芸プログラミング FAQは
22153 \end_layout
22154
22155 \begin_layout Quote
22156 Literate Programming FAQ 
22157 \begin_inset Flex URL
22158 status collapsed
22159
22160 \begin_layout Plain Layout
22161
22162 http://www.xmarks.com/site/shelob.ce.ttu.edu/daves/lpfaq/faq.html
22163 \end_layout
22164
22165 \end_inset
22166
22167
22168 \end_layout
22169
22170 \begin_layout Standard
22171 にあります.
22172 \end_layout
22173
22174 \begin_layout Standard
22175 このFAQには,23(二十三です!)の文芸プログラミング用ツールが列挙されています.一部のツールは,特定のプログラミング言語用に特化したものですが,一般的な対象
22176 を持つものもあります.私は自分で使うのに,いくつかの理由から
22177 \noun on
22178 Noweb
22179 \noun default
22180 を選びました.
22181 \end_layout
22182
22183 \begin_layout Itemize
22184 説明文書を\SpecialChar LaTeX
22185 でもHTMLでも出力できる.
22186 \end_layout
22187
22188 \begin_layout Itemize
22189 開放的なアーキテクチャに持っているので,新しいフィルタをプラグインとして加えたり,自分が必要な特別な処理を実行することが容易である.
22190 \end_layout
22191
22192 \begin_layout Itemize
22193 すでに利用可能となっているフィルタの良質なコレクションがある(HTMLはその一つです).
22194 \end_layout
22195
22196 \begin_layout Itemize
22197 無料である.
22198 \end_layout
22199
22200 \begin_layout Standard
22201 Nowebのウェブページは
22202 \end_layout
22203
22204 \begin_layout Quote
22205 Nowebホームページ 
22206 \begin_inset Flex URL
22207 status collapsed
22208
22209 \begin_layout Plain Layout
22210
22211 http://www.cs.virginia.edu/~nr/noweb/
22212 \end_layout
22213
22214 \end_inset
22215
22216
22217 \end_layout
22218
22219 \begin_layout Standard
22220 にあります.ここから始めれば,たくさんの興味深いリンクや,文芸プログラミングの用例にたどり着くことができます.
22221 \end_layout
22222
22223 \begin_layout Subsection
22224 \SpecialChar LyX
22225 とNowebを使った文芸プログラミング
22226 \end_layout
22227
22228 \begin_layout Standard
22229 \SpecialChar LyX
22230 における文芸プログラミングのサポートは,\SpecialChar LyX
22231 の汎用変換機構を使用して実現しています.このサポートは「Noweb非依存」的な方法で提供されているので,LyXの設定を変
22232 更するだけで,自分の好きな他の文芸プログラミングツールを使って,この新しい\SpecialChar LyX
22233 の機能を利用することができます.
22234 \end_layout
22235
22236 \begin_layout Subsubsection
22237 ドキュメントとコードの生成(weavingおよびtangling)
22238 \end_layout
22239
22240 \begin_layout Paragraph
22241 nowebモジュールの使用
22242 \end_layout
22243
22244 \begin_layout Standard
22245 Nowebと\SpecialChar LyX
22246 の導入に成功したならば,新規文書を開いたときにはいつも,文書クラスを選択した後,
22247 \family sans
22248 文書\SpecialChar menuseparator
22249 設定
22250 \family default
22251 メニューで「noweb」モジュールを追加するようにしてください.Nowebが正しく導入されていれば,「モジュール」リンクをクリックした際,利用可能リストに「no
22252 web」モジュールが表示され,文書に追加できるようになっています.
22253 \end_layout
22254
22255 \begin_layout Paragraph
22256 コードの入力
22257 \end_layout
22258
22259 \begin_layout Standard
22260 \SpecialChar LyX
22261 では,
22262 \begin_inset Flex Noun
22263 status collapsed
22264
22265 \begin_layout Plain Layout
22266 Chunk
22267 \end_layout
22268
22269 \end_inset
22270
22271 という名前のレイアウトを使えば,コードを入力することができます.Nowebは次のようにchunks を区切ります.
22272 \end_layout
22273
22274 \begin_layout LyX-Code
22275 <<My code>>=
22276 \end_layout
22277
22278 \begin_layout LyX-Code
22279   code
22280 \end_layout
22281
22282 \begin_layout LyX-Code
22283   more code
22284 \end_layout
22285
22286 \begin_layout LyX-Code
22287   even more code
22288 \end_layout
22289
22290 \begin_layout LyX-Code
22291   @
22292 \end_layout
22293
22294 \begin_layout Standard
22295 問題は<<と@の間にあるものを完全にそのままの形で扱わなければならないことです.つまり,\SpecialChar LyX
22296 は,この間に書かれたものを特別に解釈することは決してあってはなりません.
22297 これも
22298 \begin_inset Flex Noun
22299 status collapsed
22300
22301 \begin_layout Plain Layout
22302 Chunk
22303 \end_layout
22304
22305 \end_inset
22306
22307 によって取り扱われ,通常の段落のように見えますが,自由に空白を入れることができます.
22308 \end_layout
22309
22310 \begin_layout Standard
22311 特殊な注釈として,chunk内でNowebの「%def」を使えば,Nowebのidentifierの相互参照に項目を加えることができます.次の例を見てください.
22312 \end_layout
22313
22314 \begin_layout LyX-Code
22315 <<My chunk>>=
22316 \end_layout
22317
22318 \begin_layout LyX-Code
22319 def some_function(args):
22320 \end_layout
22321
22322 \begin_layout LyX-Code
22323    "This is the doc string for this function."
22324 \end_layout
22325
22326 \begin_layout LyX-Code
22327    print "My args: ", args
22328 \end_layout
22329
22330 \begin_layout LyX-Code
22331 @ %def some_function
22332 \end_layout
22333
22334 \begin_layout Standard
22335 これをどのように使って,その結果相互参照がどうなるかは
22336 \emph on
22337 LIBDIR/examples/listerrors.lyx
22338 \emph default
22339 の中の文芸pythonプログラムを見るとよくわかります.
22340 \end_layout
22341
22342 \begin_layout Paragraph
22343 説明文書の生成
22344 \end_layout
22345
22346 \begin_layout Standard
22347 この時点で,適切な文書クラスを持ち,いくつかのコードとテキストが入った新規文書ファイルが作成されているはずです.これをどうやって印刷したらいいのでしょう.答えは
22348 簡単で,通常の文書で行うように
22349 \family sans
22350 文書\SpecialChar menuseparator
22351 表示
22352 \family default
22353 等を選ぶだけです.特別な手続きは必要ありません.
22354 \end_layout
22355
22356 \begin_layout Standard
22357 理解を助けるために,\SpecialChar LyX
22358 の内部で何が起っているかを説明しておきましょう.
22359 \end_layout
22360
22361 \begin_layout Enumerate
22362
22363 \family sans
22364 文書\SpecialChar menuseparator
22365 更新
22366 \family default
22367 が選択されると,\SpecialChar LaTeX
22368 ファイルがつくられます.
22369 \end_layout
22370
22371 \begin_deeper
22372 \begin_layout Standard
22373 文書が文芸プログラミング用のクラスであった場合には,拡張子に(
22374 \begin_inset Flex MenuItem
22375 status collapsed
22376
22377 \begin_layout Plain Layout
22378 設定
22379 \end_layout
22380
22381 \end_inset
22382
22383 パネルで設定した)文芸プログラム用のものがつけられます.それ以外は .texが拡張子に使われます.
22384 \end_layout
22385
22386 \end_deeper
22387 \begin_layout Enumerate
22388 違いがファイル名だけなのに注意してください.\SpecialChar LyX
22389 による特別な処理は必要ありません.
22390 \begin_inset Flex Noun
22391 status collapsed
22392
22393 \begin_layout Plain Layout
22394 Chunk
22395 \end_layout
22396
22397 \end_inset
22398
22399 環境でコードを入力するのだけがポイントです.
22400 \end_layout
22401
22402 \begin_layout Enumerate
22403 文書が何らかの文芸プログラムクラスなら,\SpecialChar LyX
22404 は,\SpecialChar LyX
22405 からNowebへの内部変換子を用い,それからNowebから\SpecialChar LaTeX
22406 への変換子
22407 \begin_inset Foot
22408 status collapsed
22409
22410 \begin_layout Plain Layout
22411 これらの変換子は,
22412 \family sans
22413 ツール\SpecialChar menuseparator
22414 設定
22415 \family default
22416 パネルの変換子タブに定義されています.変換子の一般的な情報については,取扱説明書『
22417 \emph on
22418 カスタマイズ篇
22419 \emph default
22420 』の「
22421 \emph on
22422 変換子
22423 \emph default
22424 」の節をご覧ください.
22425 \end_layout
22426
22427 \end_inset
22428
22429 を使って\SpecialChar LaTeX
22430 ファイルを生成します.
22431 \end_layout
22432
22433 \begin_deeper
22434 \begin_layout Standard
22435 それ以外の場合はこのステップを飛ばします.
22436 \end_layout
22437
22438 \end_deeper
22439 \begin_layout Enumerate
22440 最後に\SpecialChar LaTeX
22441 が実行され,通常の文書と同じ後処理が行われます.
22442 \end_layout
22443
22444 \begin_layout Standard
22445 様々な変換子が実行するコマンドを変更すれば,簡単に,特定の「文芸プログラムツール」から変更することができます.
22446 \end_layout
22447
22448 \begin_layout Paragraph
22449 コードの生成
22450 \end_layout
22451
22452 \begin_layout Standard
22453 ビルドメニューが選ばれた場合や,それに対応するツールバーのボタンが押された場合,上のステップ1と同様に\SpecialChar LaTeX
22454 ファイルが生成されます.それから\SpecialChar LyX
22455
22456 \family typewriter
22457 Noweb->Program
22458 \family default
22459 のコンバータを起動します.通常は,このコンバータは(他のコンバータと同じように)2つの部分からできています.
22460 \end_layout
22461
22462 \begin_layout Enumerate
22463 変換プログラム.このプログラムは,一つのフォーマットから他のフォーマットへの変換を行います(この場合は,Nowebフォーマットからプログラムの疑似フォーマットへ
22464 変換します).
22465 \end_layout
22466
22467 \begin_layout Enumerate
22468 エラーログ解析子.これはエラーメッセージを\SpecialChar LyX
22469 が理解できる形へ書き直します.これによって,\SpecialChar LyX
22470 はファイルバッファの正しい位置へエラーボックスを配置することができます.
22471 \end_layout
22472
22473 \begin_layout Standard
22474 冒頭部,「変換子」設定は
22475 \begin_inset Newline newline
22476 \end_inset
22477
22478
22479 \begin_inset Quotes eld
22480 \end_inset
22481
22482
22483 \family typewriter
22484 build-script $$i $$r
22485 \family default
22486
22487 \begin_inset Quotes erd
22488 \end_inset
22489
22490
22491 \begin_inset Newline newline
22492 \end_inset
22493
22494 と指定します.これは基本的に,\SpecialChar LyX
22495
22496 \begin_inset Quotes erd
22497 \end_inset
22498
22499
22500 \family typewriter
22501 build-script
22502 \family default
22503
22504 \begin_inset Quotes erd
22505 \end_inset
22506
22507 (プログラムかスクリプト名)を(一般には\SpecialChar LyX
22508 の一時ファイル用のディレクトリにつくられる),Nowebファイルの名前と元の\SpecialChar LyX
22509 ファイルのディレクトリパスを使って呼び出すこ
22510 とを意味しています.
22511 \end_layout
22512
22513 \begin_layout Standard
22514 以下に「build-script」の一例を書いておきます.パスが通っているディレクトリに置いて使います.
22515 \end_layout
22516
22517 \begin_layout Standard
22518 \begin_inset VSpace defskip
22519 \end_inset
22520
22521
22522 \begin_inset Newpage pagebreak
22523 \end_inset
22524
22525
22526 \end_layout
22527
22528 \begin_layout Standard
22529
22530 \family sans
22531 #!/bin/sh
22532 \end_layout
22533
22534 \begin_layout Standard
22535
22536 \family sans
22537 #
22538 \end_layout
22539
22540 \begin_layout Standard
22541
22542 \family sans
22543 notangle -Rbuild-script $1 | env NOWEB_SOURCE=$1 NOWEB_OUTPUT_DIR=$2 sh
22544 \end_layout
22545
22546 \begin_layout Standard
22547 \begin_inset VSpace defskip
22548 \end_inset
22549
22550
22551 \end_layout
22552
22553 \begin_layout Standard
22554 変換子設定の次の部分は「フラグ」で,これは
22555 \begin_inset Quotes erd
22556 \end_inset
22557
22558
22559 \family typewriter
22560 parselog=$$s/scripts/listerrors
22561 \family default
22562
22563 \begin_inset Quotes erd
22564 \end_inset
22565
22566 に設定されます.
22567 \begin_inset Newline newline
22568 \end_inset
22569
22570 これは,
22571 \begin_inset Quotes erd
22572 \end_inset
22573
22574 build-script
22575 \begin_inset Quotes erd
22576 \end_inset
22577
22578 プロセスが生成したエラーを
22579 \begin_inset Quotes erd
22580 \end_inset
22581
22582 listerrors
22583 \begin_inset Quotes erd
22584 \end_inset
22585
22586 プログラムを介して処理するものです.
22587 \end_layout
22588
22589 \begin_layout Standard
22590 ビルドは,通常\SpecialChar LyX
22591 の一時ディレクトリで行われるので,変換によって生成されたファイルはそのディレクトリに置かれます.\SpecialChar LyX
22592 は,主要ファイルとみなされるものをコピーして取り出
22593 しますが,
22594 \family typewriter
22595 Noweb→プログラム
22596 \family default
22597 変換は複数のファイルを生成することがあるので,\SpecialChar LyX
22598 を閉じる際に大半が削除される可能性があります.これが,NOWEB_OUTPUT_DIR環境変数を渡して,build
22599 -script chunkが生成したファイルをその場所に置かれるようにする理由です.
22600 \end_layout
22601
22602 \begin_layout Paragraph
22603 文章中でのプログラムの構築操作の説明
22604 \end_layout
22605
22606 \begin_layout Standard
22607 \SpecialChar LyX
22608 とNowebの統合の最後の部分は,
22609 \begin_inset Quotes eld
22610 \end_inset
22611
22612 build-script
22613 \begin_inset Quotes erd
22614 \end_inset
22615
22616  chunkです.一般に,あなたのプログラムの構築操作の説明それ自身をchunkに入れて文章中に含めなければなりません.上の例のnoweb用のbuild-scr
22617 iptでは,chunkを見つけるのにnotangleコマンドを使い,shを使って起動します.
22618 \end_layout
22619
22620 \begin_layout Standard
22621 以下に典型的なchunkがどのようなものかを書いておきます.
22622 \end_layout
22623
22624 \begin_layout LyX-Code
22625 <<build-script>>=
22626 \begin_inset Newline newline
22627 \end_inset
22628
22629
22630 \end_layout
22631
22632 \begin_layout LyX-Code
22633 #!/bin/sh
22634 \begin_inset Newline newline
22635 \end_inset
22636
22637
22638 \begin_inset Newline newline
22639 \end_inset
22640
22641 if [ -z "${NOWEB_SOURCE}" ]
22642 \begin_inset Newline newline
22643 \end_inset
22644
22645 then
22646 \end_layout
22647
22648 \begin_layout LyX-Code
22649 NOWEB_SOURCE=myfile.nw
22650 \begin_inset Newline newline
22651 \end_inset
22652
22653 fi
22654 \begin_inset Newline newline
22655 \end_inset
22656
22657 [...
22658  code to extract files ...
22659  use NOWEB_OUTPUT_DIR here ...]
22660 \begin_inset Newline newline
22661 \end_inset
22662
22663 [...
22664  code to compile files ...]
22665 \begin_inset Newline newline
22666 \end_inset
22667
22668 @
22669 \end_layout
22670
22671 \begin_layout Standard
22672
22673 \emph on
22674 LIBDIR/examples/listerrors.lyx
22675 \emph default
22676
22677 \emph on
22678 LIBDIR/examples/Literate.lyx
22679 \emph default
22680 を見てください.この2つのファイルには異なる実装のlisterrorsプログラムが含まれていて,これまで説明してきた各々の部分が全体としてどのようになるかをわか
22681 ってもらうための例です.また,
22682 \emph on
22683 LIBDIR/examples/noweb2lyx.lyx
22684 \emph default
22685 も見てください.面白いことに,これらの3つのファイルは,Python,C,Perlが各々使われていて,\SpecialChar LyX
22686 の文芸プログラミングのサポートがプログラム言語に依存しない
22687 ことを示しています.
22688 \end_layout
22689
22690 \begin_layout Subsubsection
22691 \SpecialChar LyX
22692 の設定
22693 \end_layout
22694
22695 \begin_layout Standard
22696 すべての文芸プログラムのための設定は,
22697 \family sans
22698 ツール\SpecialChar menuseparator
22699 設定
22700 \family default
22701 パネルの「ファイル処理」タブですることができます.重要な部分を見ておきましょう.
22702 \end_layout
22703
22704 \begin_layout Description
22705 「NoWeb」形式 ファイル形式タブで設定します.ここで,Noweb特有の設定を行います.
22706 \family sans
22707 GUI名
22708 \family default
22709
22710 \family typewriter
22711 NoWeb
22712 \family default
22713 に,拡張子を
22714 \family typewriter
22715 .nw
22716 \family default
22717 に設定してください.これによって,\SpecialChar LyX
22718 に変換プロセスの第一段階でつくられるファイルに
22719 \family typewriter
22720 .nw
22721 \family default
22722 という拡張子をつけることを指示します.
22723 \end_layout
22724
22725 \begin_layout Description
22726 プログラム形式 これは,変換の終着点を示すためだけの,空の形式です(これがあることで,変換子を作ることができます).
22727 \end_layout
22728
22729 \begin_layout Description
22730
22731 \family sans
22732 NoWeb
22733 \family default
22734 ->
22735 \family sans
22736 \SpecialChar LaTeX
22737
22738 \family default
22739  この変換子は,文芸的文書の「weaving」を行います.Nowebの場合,「
22740 \family typewriter
22741 noweave -delay -index $$i > $$o
22742 \family default
22743 」に設定されます.
22744 \end_layout
22745
22746 \begin_layout Description
22747
22748 \family sans
22749 NoWeb
22750 \family default
22751 ->
22752 \family sans
22753 Program
22754 \family default
22755  これは「tangling」を行います.上述のように,変換子は「
22756 \family typewriter
22757 build-script $$i $$r
22758 \family default
22759 」,フラグは「
22760 \family typewriter
22761 parselog=$$s/scripts/listerrors
22762 \family default
22763 」となります.
22764 \end_layout
22765
22766 \begin_layout Subsubsection
22767 デバッグ機能拡張
22768 \end_layout
22769
22770 \begin_layout Standard
22771 ddd/gdbまたは他のデバッガで使える「server-goto-file-row」関数が新たに\SpecialChar LyX
22772 サーバに実装されました.
22773 \end_layout
22774
22775 \begin_layout Standard
22776 ddd/gdbでデバッグしているとき,一つの
22777 \begin_inset Flex Ruby
22778 status collapsed
22779
22780 \begin_layout Plain Layout
22781
22782 \begin_inset Argument post:1
22783 status collapsed
22784
22785 \begin_layout Plain Layout
22786 キー
22787 \end_layout
22788
22789 \end_inset
22790
22791
22792 \end_layout
22793
22794 \end_inset
22795
22796 ストロークで現在実行している位置でテキストエディタを起動できます.既定のdddの設定ではShift-Ctrl-Vになっています.この設定はdddで
22797 \begin_inset Flex MenuItem
22798 status collapsed
22799
22800 \begin_layout Plain Layout
22801 ツール\SpecialChar menuseparator
22802 設定\SpecialChar menuseparator
22803 ファイル書式
22804 \end_layout
22805
22806 \end_inset
22807
22808 ウインドウを表示して,
22809 \begin_inset Flex MenuItem
22810 status collapsed
22811
22812 \begin_layout Plain Layout
22813 編集プログラム
22814 \end_layout
22815
22816 \end_inset
22817
22818 エントリを変えると変えることができます.
22819 \end_layout
22820
22821 \begin_layout Standard
22822 新しい\SpecialChar LyX
22823 サーバの関数と,このdddの機能を使うために
22824 \begin_inset Flex MenuItem
22825 status collapsed
22826
22827 \begin_layout Plain Layout
22828 編集プログラム
22829 \end_layout
22830
22831 \end_inset
22832
22833 を次のように設定してください.
22834 \end_layout
22835
22836 \begin_layout Standard
22837 \begin_inset VSpace defskip
22838 \end_inset
22839
22840
22841 \end_layout
22842
22843 \begin_layout Standard
22844
22845 \family sans
22846 echo "LYXCMD:monitor:server-goto-file-row:@FILE@ @LINE@" >~/.lyxpipe.in
22847 \end_layout
22848
22849 \begin_layout Standard
22850 \begin_inset VSpace defskip
22851 \end_inset
22852
22853
22854 \end_layout
22855
22856 \begin_layout Standard
22857 こうしておくとdddを使っていてプログラムの編集したい場所があったとき,(dddのウインドウで)Shift-Ctrl-Vを押すだけでdddは\SpecialChar LyX
22858 サーバに情報を送り,\SpecialChar LyX
22859
22860 は同じファイルを表示し,カーソルはdddが示した場所へあらわれます.これでもうデバッグの最中に推測しながらスクロールして場所を探す必要がなくなります.
22861 \end_layout
22862
22863 \begin_layout Standard
22864 この機能が動くには\SpecialChar LyX
22865 サーバが利用可能でなければなりません(既定では\SpecialChar LyX
22866 サーバーは使えないようになっています).\SpecialChar LyX
22867 サーバを使えるようにするには,
22868 \family sans
22869
22870 \begin_inset Flex MenuItem
22871 status collapsed
22872
22873 \begin_layout Plain Layout
22874
22875 \family sans
22876 設定
22877 \end_layout
22878
22879 \end_inset
22880
22881
22882 \family default
22883 (
22884 \family sans
22885
22886 \begin_inset Flex MenuItem
22887 status collapsed
22888
22889 \begin_layout Plain Layout
22890
22891 \family sans
22892 パス
22893 \end_layout
22894
22895 \end_inset
22896
22897
22898 \family default
22899 タブ)の
22900 \family sans
22901
22902 \begin_inset Flex MenuItem
22903 status collapsed
22904
22905 \begin_layout Plain Layout
22906
22907 \family sans
22908 \SpecialChar LyX
22909 サーバーパイプ
22910 \family default
22911
22912 \end_layout
22913
22914 \end_inset
22915
22916
22917 \family default
22918
22919 \begin_inset Quotes eld
22920 \end_inset
22921
22922
22923 \family typewriter
22924 /home/<your-home-directory>/.lyx/lyxpipe
22925 \family default
22926
22927 \begin_inset Quotes erd
22928 \end_inset
22929
22930  のようにパスを指定してください.
22931 \end_layout
22932
22933 \begin_layout Standard
22934 詳しくは第
22935 \begin_inset CommandInset ref
22936 LatexCommand ref
22937 reference "chap:LyXサーバー"
22938
22939 \end_inset
22940
22941 章を読んでください.
22942 \end_layout
22943
22944 \begin_layout Subsubsection
22945 ツールバー拡張
22946 \end_layout
22947
22948 \begin_layout Standard
22949 ツールバーに加えることのできる6つの新しいボタンがあります.そのうちの5つのボタンは段落環境へのショートカットです.
22950 \family sans
22951 標準
22952 \family default
22953 ・節・
22954 \family sans
22955 \SpecialChar LaTeX
22956
22957 \family default
22958
22959 \family sans
22960 \SpecialChar LyX
22961 コード
22962 \family default
22963
22964 \family sans
22965 Chunk
22966 \family default
22967 環境用のボタンを用意しています.最後の一つはファイルメニュー項目の「Build Program」への
22968 \begin_inset Flex Ruby
22969 status collapsed
22970
22971 \begin_layout Plain Layout
22972
22973 \family roman
22974 \series medium
22975 \shape up
22976 \size normal
22977 \emph off
22978 \bar no
22979 \noun off
22980 \color none
22981 捷径
22982 \family default
22983 \series default
22984 \shape default
22985 \size default
22986 \emph default
22987 \bar default
22988 \noun default
22989 \color inherit
22990
22991 \begin_inset Argument post:1
22992 status collapsed
22993
22994 \begin_layout Plain Layout
22995 ショートカット
22996 \end_layout
22997
22998 \end_inset
22999
23000
23001 \end_layout
23002
23003 \end_inset
23004
23005 です.
23006 \end_layout
23007
23008 \begin_layout Standard
23009 \SpecialChar LyX
23010 はツールバーで使うためのいくつものボタンを用意しています.私のツールバーはこの6つのショートカットに
23011 \begin_inset Flex MenuItem
23012 status collapsed
23013
23014 \begin_layout Plain Layout
23015 文書\SpecialChar menuseparator
23016 更新\SpecialChar menuseparator
23017 DVI
23018 \end_layout
23019
23020 \end_inset
23021
23022
23023 \begin_inset Flex MenuItem
23024 status collapsed
23025
23026 \begin_layout Plain Layout
23027 文書\SpecialChar menuseparator
23028 表示\SpecialChar menuseparator
23029 DVI
23030 \end_layout
23031
23032 \end_inset
23033
23034 を組み合わせたものになっています.
23035 \end_layout
23036
23037 \begin_layout LyX-Code
23038 Toolbar
23039 \end_layout
23040
23041 \begin_layout LyX-Code
23042   Layouts
23043 \end_layout
23044
23045 \begin_layout LyX-Code
23046   Icon "layout Standard"
23047 \end_layout
23048
23049 \begin_layout LyX-Code
23050   Icon "layout Section"
23051 \end_layout
23052
23053 \begin_layout LyX-Code
23054   Icon "layout \SpecialChar LaTeX
23055 "
23056 \end_layout
23057
23058 \begin_layout LyX-Code
23059   Icon "layout \SpecialChar LyX
23060 -Code"
23061 \end_layout
23062
23063 \begin_layout LyX-Code
23064   Icon "layout Chunk"
23065 \end_layout
23066
23067 \begin_layout LyX-Code
23068   Separator
23069 \end_layout
23070
23071 \begin_layout LyX-Code
23072   Icon "buffer-view"
23073 \end_layout
23074
23075 \begin_layout LyX-Code
23076   Icon "buffer-typeset"
23077 \end_layout
23078
23079 \begin_layout LyX-Code
23080   Icon "build-program"
23081 \end_layout
23082
23083 \begin_layout LyX-Code
23084   Separator
23085 \end_layout
23086
23087 \begin_layout LyX-Code
23088 .
23089 \end_layout
23090
23091 \begin_layout LyX-Code
23092 .
23093 \end_layout
23094
23095 \begin_layout LyX-Code
23096 .
23097 \end_layout
23098
23099 \begin_layout LyX-Code
23100 End
23101 \end_layout
23102
23103 \begin_layout Subsubsection
23104 色の変更
23105 \end_layout
23106
23107 \begin_layout Standard
23108 \SpecialChar LyX
23109 ではいくつもの色を
23110 \begin_inset Flex MenuItem
23111 status collapsed
23112
23113 \begin_layout Plain Layout
23114 設定
23115 \end_layout
23116
23117 \end_inset
23118
23119 で変えることができます.人々が困りがちなのは,\SpecialChar LaTeX
23120 フォント色でしょう.これは,既定では赤になっていますが,chunkは\SpecialChar LaTeX
23121 フォントを使うことになっていて,文芸プログラミ
23122 ング文書には多くのchunkが現れるために,すべて赤で見ていると疲れてしまうかもしれません.これは,
23123 \begin_inset Flex MenuItem
23124 status collapsed
23125
23126 \begin_layout Plain Layout
23127 操作性\SpecialChar menuseparator
23128
23129 \end_layout
23130
23131 \end_inset
23132
23133 タブで変更することができます.
23134 \end_layout
23135
23136 \begin_layout Standard
23137 もう一つは,改行文字が画面に表示されていることでしょう.改行文字の色を背景の色と同じにすることで改行文字を見えなくできます.私は改行文字を背景の色に似ているが少
23138 し違う色にすることを勧めます.こうすると,改行文字があるのはわかりますが,じゃまにならないでしょう.
23139 \end_layout
23140
23141 \begin_layout Subsection
23142 \SpecialChar LyX
23143 とknitr/Sweave
23144 \end_layout
23145
23146 \begin_layout Standard
23147 knitrとSweaveへのサポートについては,用例ファイル
23148 \emph on
23149 knitr.lyx
23150 \emph default
23151 とSweave取扱説明書(
23152 \family sans
23153 ヘルプ\SpecialChar menuseparator
23154 用途別説明書
23155 \family default
23156 メニュー)に説明があります.
23157 \end_layout
23158
23159 \begin_layout Chapter
23160 特殊機能
23161 \begin_inset CommandInset label
23162 LatexCommand label
23163 name "chap:Special-features"
23164
23165 \end_inset
23166
23167
23168 \end_layout
23169
23170 \begin_layout Standard
23171 \SpecialChar LyX
23172 では,\SpecialChar LaTeX
23173 で可能なことは何でも出来ます.すべての\SpecialChar LaTeX
23174 の機能を直接サポートできるわけではありませんが,どんな場合でも\SpecialChar TeX
23175 コードを使用することはできます.本章は,ユーザの興味が
23176 有りそうな特別な機能について,若干取り上げます.図表やフロート,ボックス,注釈に関する特別な機能については,取扱説明書『
23177 \emph on
23178 埋込オブジェクト篇
23179 \emph default
23180 』をご参照ください.
23181 \end_layout
23182
23183 \begin_layout Section
23184 多段組
23185 \end_layout
23186
23187 \begin_layout Standard
23188 この機能は,文書設定の
23189 \family sans
23190 本文レイアウト
23191 \family default
23192 にある
23193 \family sans
23194 二段組文書
23195 \family default
23196 とは別の機能です.文書全体に二段組を行いたい場合には,
23197 \family sans
23198 二段組文書
23199 \family default
23200 オプションを利用することをお勧めします.その他の場合には,本機能をご使用ください.
23201 \end_layout
23202
23203 \begin_layout Standard
23204 文書中で多段組を行うには,\SpecialChar LaTeX
23205 パッケージ
23206 \series bold
23207 multicol
23208 \series default
23209
23210 \begin_inset Index idx
23211 status collapsed
23212
23213 \begin_layout Plain Layout
23214 \SpecialChar LaTeX
23215 ぱっけーじ @ \SpecialChar LaTeX
23216 パッケージ ! multicol
23217 \end_layout
23218
23219 \end_inset
23220
23221 を導入した上で,(
23222 \family sans
23223 文書\SpecialChar menuseparator
23224 設定\SpecialChar menuseparator
23225 モジュール
23226 \family default
23227 メニューから)
23228 \family sans
23229 多段組
23230 \family default
23231 モジュールを読み込んでください.
23232 \end_layout
23233
23234 \begin_layout Standard
23235 多段組中の脚注は,ページ下部に置かれ,各段の下ごとには置かれません.各段においては,フロートに
23236 \family sans
23237 段をまたぐ
23238 \family default
23239 オプションを使用する必要があるほかは,通常通りの使用をすることができます.
23240 \end_layout
23241
23242 \begin_layout Subsection
23243 基本
23244 \end_layout
23245
23246 \begin_layout Standard
23247 文章中で二段組を使用したい場合には,段組を始める場所で
23248 \family sans
23249 挿入\SpecialChar menuseparator
23250 任意設定差込枠\SpecialChar menuseparator
23251 多段組
23252 \family default
23253 メニューを使用して,多段組差込枠を挿入してください.二段組で印字されるべき文章は,全てこの差込枠の中に書いてください.
23254 \end_layout
23255
23256 \begin_layout Standard
23257 下記はその用例です.
23258 \end_layout
23259
23260 \begin_layout Standard
23261 \noindent
23262 \begin_inset Flex Multiple Columns
23263 status open
23264
23265 \begin_layout Plain Layout
23266 \noindent
23267
23268 \series bold
23269 \size small
23270 The Adventure of the Empty House
23271 \series default
23272
23273 \begin_inset Newline newline
23274 \end_inset
23275
23276 by Sir Arthur Conan Doyle
23277 \end_layout
23278
23279 \begin_layout Plain Layout
23280
23281 \size small
23282 It was in the spring of the year 1894 that all London was interested, and
23283  the fashionable world dismayed, by the murder of the Honourable Ronald
23284  Adair under most unusual and inexplicable circumstances.
23285  The public has already learned those particulars of the crime which came
23286  out in the police investigation, but a good deal was suppressed upon that
23287  occasion, since the case for the prosecution was so overwhelmingly strong
23288  that it was not necessary to bring forward all the facts.
23289  Only now, at the end of nearly ten years, am I allowed to supply those
23290  missing links which make up the whole of that remarkable chain.
23291  The crime was of interest in itself, but that interest was as nothing to
23292  me compared to the inconceivable sequel, which afforded me the greatest
23293  shock and surprise of any event in my adventurous life.
23294  Even now, after this long interval, I find myself thrilling as I think
23295  of it, and feeling once more that sudden flood of joy, amazement, and increduli
23296 ty which utterly submerged my mind.
23297  Let me say to that public, which has shown some interest in those glimpses
23298  which I have occasionally given them of the thoughts and actions of a very
23299  remarkable man, that they are not to blame me if I have not shared my knowledge
23300  with them, for I should have considered it my first duty to do so, had
23301  I not been barred by a positive prohibition from his own lips, which was
23302  only withdrawn upon the third of last month.
23303 \end_layout
23304
23305 \end_inset
23306
23307
23308 \end_layout
23309
23310 \begin_layout Standard
23311 三段以上にするには,カーソルを多段組差込枠の内部において,挿入\SpecialChar menuseparator
23312 段数メニューを使用してください.この差込枠の中に,欲しい段数を書き入れます(三段組の場合には「3」
23313 と書きます).
23314 \begin_inset Newline newline
23315 \end_inset
23316
23317 下記は三段組の例です.
23318 \end_layout
23319
23320 \begin_layout Standard
23321 \begin_inset Flex Multiple Columns
23322 status open
23323
23324 \begin_layout Plain Layout
23325
23326 \size footnotesize
23327 \begin_inset Argument 1
23328 status open
23329
23330 \begin_layout Plain Layout
23331 3
23332 \end_layout
23333
23334 \end_inset
23335
23336 It can be imagined that my close intimacy with Sherlock Holmes had interested
23337  me deeply in crime, and that after his disappearance I never failed to
23338  read with care the various problems which came before the public.
23339  And I even attempted, more than once, for my own private satisfaction,
23340  to employ his methods in their solution, though with indifferent success.
23341  There was none, however, which appealed to me like this tragedy of Ronald
23342  Adair.
23343  As I read the evidence at the inquest, which led up to a verdict of willful
23344  murder against some person or persons unknown, I realized more clearly
23345  than I had ever done the loss which the community had sustained by the
23346  death of Sherlock Holmes.
23347  There were points about this strange business which would, I was sure,
23348  have specially appealed to him, and the efforts of the police would have
23349  been supplemented, or more probably anticipated, by the trained observation
23350  and the alert mind of the first criminal agent in Europe.
23351  All day, as I drove upon my round, I turned over the case in my mind and
23352  found no explanation which appeared to me to be adequate.
23353  At the risk of telling a twice-told tale, I will recapitulate the facts
23354  as they were known to the public at the conclusion of the inquest.
23355 \end_layout
23356
23357 \end_inset
23358
23359
23360 \end_layout
23361
23362 \begin_layout Standard
23363 お望みならば10段組まで組むことができますが,文書の読者にとっては,あまり気持ちのいいものではないでしょう.
23364 \end_layout
23365
23366 \begin_layout Standard
23367 \begin_inset Newpage newpage
23368 \end_inset
23369
23370
23371 \end_layout
23372
23373 \begin_layout Subsection
23374 段組中の段組
23375 \end_layout
23376
23377 \begin_layout Standard
23378 また,段中に段を組むこともできます.
23379 \end_layout
23380
23381 \begin_layout Standard
23382 \begin_inset Flex Multiple Columns
23383 status open
23384
23385 \begin_layout Plain Layout
23386
23387 \size footnotesize
23388 The Honourable Ronald Adair was the second son of the Earl of Maynooth,
23389  at that time governor of one of the Australian colonies.
23390  Adair's mother had returned from Australia to undergo the operation for
23391  cataract, and she, her son Ronald, and her daughter Hilda were living together
23392  at 427 Park Lane.
23393 \end_layout
23394
23395 \begin_layout Plain Layout
23396 \begin_inset Flex Multiple Columns
23397 status open
23398
23399 \begin_layout Plain Layout
23400
23401 \size footnotesize
23402 The youth moved in the best society–had, so far as was known, no enemies
23403  and no particular vices.
23404  He had been engaged to Miss Edith Woodley, of Carstairs, but the engagement
23405  had been broken off by mutual consent some months before, and there was
23406  no sign that it had left any very profound feeling behind it.
23407  For the rest {sic} the man's life moved in a narrow and conventional circle,
23408  for his habits were quiet and his nature unemotional.
23409  Yet it was upon this easy-going young aristocrat that death came, in most
23410  strange and unexpected form, between the hours of ten and eleven-twenty
23411  on the night of March 30, 1894.
23412 \end_layout
23413
23414 \end_inset
23415
23416
23417 \end_layout
23418
23419 \begin_layout Plain Layout
23420
23421 \size footnotesize
23422 Ronald Adair was fond of cards–playing continually, but never for such stakes
23423  as would hurt him.
23424  He was a member of the Baldwin, the Cavendish, and the Bagatelle card clubs.
23425  It was shown that, after dinner on the day of his death, he had played
23426  a rubber of whist at the latter club.
23427  He had also played there in the afternoon.
23428
23429 \size default
23430  
23431 \size footnotesize
23432 The evidence of those who had played with him– Mr.
23433  Murray, Sir John Hardy, and Colonel Moran–showed that the game was whist,
23434  and that there was a fairly equal fall of the cards.
23435  Adair might have lost five pounds, but not more.
23436  His fortune was a considerable one, and such a loss could not in any way
23437  affect him.
23438  He had played nearly every day at one club or other, but he was a cautious
23439  player, and usually rose a winner.
23440  It came out in evidence that, in partnership with Colonel Moran, he had
23441  actually won as much as four hundred and twenty pounds in a sitting, some
23442  weeks before, from Godfrey Milner and Lord Balmoral.
23443  So much for his recent history as it came out at the inquest.
23444 \end_layout
23445
23446 \end_inset
23447
23448
23449 \end_layout
23450
23451 \begin_layout Subsection
23452 応用例
23453 \end_layout
23454
23455 \begin_layout Standard
23456 本節の用例は,多段組のさらに特別な機能を示すためのものです.
23457 \end_layout
23458
23459 \begin_layout Standard
23460 多段組機能についてさらに知りたい場合には,\SpecialChar LaTeX
23461 パッケージ
23462 \series bold
23463 multicol
23464 \series default
23465
23466 \begin_inset CommandInset citation
23467 LatexCommand cite
23468 key "multicol"
23469 literal "true"
23470
23471 \end_inset
23472
23473 の取扱説明書をご覧ください.
23474 \end_layout
23475
23476 \begin_layout Subsubsection
23477 序文
23478 \end_layout
23479
23480 \begin_layout Standard
23481 多段組に序文を追記するには,カーソルを多段組差込枠内部に置き,
23482 \family sans
23483 挿入\SpecialChar menuseparator
23484 序文
23485 \family default
23486 メニューを使用してください.序文は,この差込枠内に書いてください.
23487 \begin_inset Newline newline
23488 \end_inset
23489
23490 序文のある文章の例を掲げます.
23491 \end_layout
23492
23493 \begin_layout Standard
23494 \begin_inset VSpace bigskip
23495 \end_inset
23496
23497
23498 \end_layout
23499
23500 \begin_layout Standard
23501 \begin_inset Flex Multiple Columns
23502 status open
23503
23504 \begin_layout Plain Layout
23505 \begin_inset Argument 2
23506 status open
23507
23508 \begin_layout Plain Layout
23509 And the story continues and continues and continues and continues\SpecialChar ldots
23510
23511 \end_layout
23512
23513 \end_inset
23514
23515
23516 \size small
23517 On the evening of the crime, he returned from the club exactly at ten.
23518  His mother and sister were out spending the evening with a relation.
23519  The servant deposed that she heard him enter the front room on the second
23520  floor, generally used as his sitting-room.
23521  She had lit a fire there, and as it smoked she had opened the window.
23522  No sound was heard from the room until eleven-twenty, the hour of the return
23523  of Lady Maynooth and her daughter.
23524  Desiring to say good-night, she attempted to enter her son's room.
23525  The door was locked on the inside, and no answer could be got to their
23526  cries and knocking.
23527  Help was obtained, and the door forced.
23528  The unfortunate young man was found lying near the table.
23529  His head had been horribly mutilated by an expanding revolver bullet, but
23530  no weapon of any sort was to be found in the room.
23531 \end_layout
23532
23533 \end_inset
23534
23535
23536 \end_layout
23537
23538 \begin_layout Standard
23539 最初の\SpecialChar TeX
23540 コードの後に,節宣言コマンドを\SpecialChar TeX
23541 コードとして使用すれば,節見出しを前書きとして使用することができます.例えば,
23542 \end_layout
23543
23544 \begin_layout Standard
23545
23546 \series bold
23547
23548 \backslash
23549 subsection{小節見出し}
23550 \end_layout
23551
23552 \begin_layout Standard
23553 というコマンドは,小節を生成します.以下の例では,前書きが小々節になっています.
23554 \end_layout
23555
23556 \begin_layout Standard
23557 \begin_inset Flex Multiple Columns
23558 status open
23559
23560 \begin_layout Plain Layout
23561 \begin_inset Argument 2
23562 status open
23563
23564 \begin_layout Plain Layout
23565 \begin_inset ERT
23566 status collapsed
23567
23568 \begin_layout Plain Layout
23569
23570
23571 \backslash
23572 subsubsection{
23573 \end_layout
23574
23575 \end_inset
23576
23577 これは序文の小々節見出しです
23578 \begin_inset ERT
23579 status collapsed
23580
23581 \begin_layout Plain Layout
23582
23583 }
23584 \end_layout
23585
23586 \end_inset
23587
23588
23589 \end_layout
23590
23591 \end_inset
23592
23593
23594 \size small
23595 A minute examination of the circumstances served only to make the case more
23596  complex.
23597  In the first place, no reason could be given why the young man should have
23598  fastened the door upon the inside.
23599  There was the possibility that the murderer had done this, and had afterwards
23600  escaped by the window.
23601  The drop was at least twenty feet, however, and a bed of crocuses in full
23602  bloom lay beneath.
23603  Neither the flowers nor the earth showed any sign of having been disturbed,
23604  nor were there any marks upon the narrow strip of grass which separated
23605  the house from the road.
23606  Apparently, therefore, it was the young man himself who had fastened the
23607  door.
23608  But how did he come by his death? No one could have climbed up to the window
23609  without leaving traces.
23610  Suppose a man had fired through the window, he would indeed be a remarkable
23611  shot who could with a revolver inflict so deadly a wound.
23612  Again, Park Lane is a frequented thoroughfare; there is a cab stand within
23613  a hundred yards of the house.
23614  No one had heard a shot.
23615 \end_layout
23616
23617 \end_inset
23618
23619
23620 \end_layout
23621
23622 \begin_layout Standard
23623 多段組を開始する部分に,必要とされる6行を確保出来るだけの垂直スペースがページに残されていない場合,多段組の前に改行が挿入されます.前書きの行数如何では,この必
23624 要行数を変更したいかもしれません.これは,カーソルを多段組差込枠内部の(もしあれば)序文の後に置き,
23625 \family sans
23626 挿入\SpecialChar menuseparator
23627 改頁前の余白
23628 \family default
23629 メニューを使用することで設定できます.この差込枠に,余白の大きさを「5cm」などと書き込んでください.
23630 \end_layout
23631
23632 \begin_layout Standard
23633 以下の例では,「7
23634 \backslash
23635 baselineskip」を用いて,必要行数を7行に指定しています(コマンド
23636 \series bold
23637
23638 \backslash
23639 baselineskip
23640 \series default
23641 は\SpecialChar TeX
23642 コードとして入力する必要があります).
23643 \end_layout
23644
23645 \begin_layout Standard
23646 \begin_inset Flex Multiple Columns
23647 status open
23648
23649 \begin_layout Plain Layout
23650 \begin_inset Argument 3
23651 status open
23652
23653 \begin_layout Plain Layout
23654 7
23655 \begin_inset ERT
23656 status collapsed
23657
23658 \begin_layout Plain Layout
23659
23660
23661 \backslash
23662 baselineskip
23663 \end_layout
23664
23665 \end_inset
23666
23667
23668 \end_layout
23669
23670 \end_inset
23671
23672
23673 \size small
23674 On the evening of the crime, he returned from the club exactly at ten.
23675  His mother and sister were out spending the evening with a relation.
23676  The servant deposed that she heard him enter the front room on the second
23677  floor, generally used as his sitting-room.
23678  She had lit a fire there, and as it smoked she had opened the window.
23679  No sound was heard from the room until eleven-twenty, the hour of the return
23680  of Lady Maynooth and her daughter.
23681  Desiring to say good-night, she attempted to enter her son's room.
23682  The door was locked on the inside, and no answer could be got to their
23683  cries and knocking.
23684  Help was obtained, and the door forced.
23685  The unfortunate young man was found lying near the table.
23686  His head had been horribly mutilated by an expanding revolver bullet, but
23687  no weapon of any sort was to be found in the room.
23688 \end_layout
23689
23690 \end_inset
23691
23692
23693 \end_layout
23694
23695 \begin_layout Subsubsection
23696 周囲の余白
23697 \end_layout
23698
23699 \begin_layout Standard
23700 多段組の前後の余白は,長さ
23701 \series bold
23702
23703 \backslash
23704 multicolsep
23705 \series default
23706 を変えることで変更することができます.例えば,\SpecialChar TeX
23707 コードで書かれたコマンド
23708 \end_layout
23709
23710 \begin_layout Standard
23711
23712 \series bold
23713
23714 \backslash
23715 setlength{
23716 \backslash
23717 multicolsep}{3cm}
23718 \end_layout
23719
23720 \begin_layout Standard
23721 は,その値を3
23722 \begin_inset space \thinspace{}
23723 \end_inset
23724
23725 cmに変更します.この変更は,多段組が始まる前に指定しなくてはなりません.既定値は13
23726 \begin_inset space \thinspace{}
23727 \end_inset
23728
23729 ptです.
23730 \end_layout
23731
23732 \begin_layout Standard
23733 以下の例では,
23734 \series bold
23735
23736 \backslash
23737 multicolsep
23738 \series default
23739 は2.5
23740 \begin_inset space \thinspace{}
23741 \end_inset
23742
23743 cmに指定されています.
23744 \end_layout
23745
23746 \begin_layout Standard
23747 \begin_inset ERT
23748 status open
23749
23750 \begin_layout Plain Layout
23751
23752
23753 \backslash
23754 setlength{
23755 \backslash
23756 multicolsep}{2.5cm}
23757 \end_layout
23758
23759 \end_inset
23760
23761
23762 \end_layout
23763
23764 \begin_layout Standard
23765 \begin_inset Flex Multiple Columns
23766 status open
23767
23768 \begin_layout Plain Layout
23769
23770 \size small
23771 All day I turned these facts over in my mind, endeavouring to hit upon some
23772  theory which could reconcile them all, and to find that line of least resistanc
23773 e which my poor friend had declared to be the starting-point of every investigat
23774 ion.
23775  I confess that I made little progress.
23776  In the evening I strolled across the Park, and found myself about six o'clock
23777  at the Oxford Street end of Park Lane.
23778  A group of loafers upon the pavements, all staring up at a particular window,
23779  directed me to the house which I had come to see.
23780  A tall, thin man with coloured glasses, whom I strongly suspected of being
23781  a plain-clothes detective, was pointing out some theory of his own, while
23782  the others crowded round to listen to what he said.
23783  I got as near him as I could, but his observations seemed to me to be absurd,
23784  so I withdrew again in some disgust.
23785  As I did so I struck against an elderly, deformed man, who had been behind
23786  me, and I knocked down several books which he was carrying.
23787 \end_layout
23788
23789 \end_inset
23790
23791
23792 \end_layout
23793
23794 \begin_layout Standard
23795 \begin_inset Note Greyedout
23796 status open
23797
23798 \begin_layout Plain Layout
23799
23800 \series bold
23801 【註】
23802 \backslash
23803 setlength
23804 \series default
23805 で指定した値は,再度変更されるまでは,以降のすべての多段組で使用されます.
23806 \end_layout
23807
23808 \end_inset
23809
23810
23811 \end_layout
23812
23813 \begin_layout Standard
23814 \begin_inset ERT
23815 status collapsed
23816
23817 \begin_layout Plain Layout
23818
23819
23820 \backslash
23821 setlength{
23822 \backslash
23823 multicolsep}{13pt}
23824 \end_layout
23825
23826 \end_inset
23827
23828
23829 \begin_inset Note Note
23830 status collapsed
23831
23832 \begin_layout Plain Layout
23833
23834 \lang english
23835 go back to the default
23836 \end_layout
23837
23838 \end_inset
23839
23840
23841 \end_layout
23842
23843 \begin_layout Standard
23844 \begin_inset Newpage newpage
23845 \end_inset
23846
23847
23848 \end_layout
23849
23850 \begin_layout Subsubsection
23851 改段
23852 \end_layout
23853
23854 \begin_layout Standard
23855 改段は,文章中の階段を行いたい位置に,\SpecialChar TeX
23856 コードで,コマンド
23857 \series bold
23858
23859 \backslash
23860 columnbreak{}
23861 \series default
23862 を挿入すれば,強制的に行うことができます.ただし,多くの場合,文章中に空白が挿入されることに注意してください.
23863 \begin_inset Newline newline
23864 \end_inset
23865
23866 以下が用例です.
23867 \end_layout
23868
23869 \begin_layout Standard
23870 \begin_inset Flex Multiple Columns
23871 status open
23872
23873 \begin_layout Plain Layout
23874
23875 \size small
23876 \begin_inset Quotes eld
23877 \end_inset
23878
23879 You're surprised to see me, sir,
23880 \begin_inset Quotes erd
23881 \end_inset
23882
23883  said he, in a strange, croaking voice.
23884 \end_layout
23885
23886 \begin_layout Plain Layout
23887
23888 \size small
23889 I acknowledged that I was.
23890 \end_layout
23891
23892 \begin_layout Plain Layout
23893
23894 \size small
23895 \begin_inset Quotes eld
23896 \end_inset
23897
23898 Well, I've a conscience, sir, and when I chanced to see you go into this
23899  house, as I came hobbling after you, I thought to myself, I'll just step
23900  in and see that kind gentleman, and tell him that if I was a bit gruff
23901  in my manner there was not any harm meant, and that I am much obliged to
23902  him for picking up my books.
23903 \begin_inset Quotes erd
23904 \end_inset
23905
23906
23907 \end_layout
23908
23909 \begin_layout Plain Layout
23910
23911 \size small
23912 \begin_inset Quotes eld
23913 \end_inset
23914
23915 You make too much of a trifle,
23916 \begin_inset Quotes erd
23917 \end_inset
23918
23919  said I.
23920  
23921 \begin_inset Quotes eld
23922 \end_inset
23923
23924 May I ask how you knew who I was?
23925 \begin_inset Quotes erd
23926 \end_inset
23927
23928  AFTER THIS SENTENCE THE COLUMN BREAK IS FORCED.
23929 \begin_inset ERT
23930 status collapsed
23931
23932 \begin_layout Plain Layout
23933
23934
23935 \backslash
23936 columnbreak{}
23937 \end_layout
23938
23939 \end_inset
23940
23941
23942 \end_layout
23943
23944 \begin_layout Plain Layout
23945
23946 \size small
23947 \begin_inset Quotes eld
23948 \end_inset
23949
23950 Well, sir, if it isn't too great a liberty, I am a neighbour of yours, for
23951  you'll find my little bookshop at the corner of Church Street, and very
23952  happy to see you, I am sure.
23953  Maybe you collect yourself, sir.
23954  Here's 
23955 \noun on
23956 British
23957 \begin_inset space ~
23958 \end_inset
23959
23960 Birds
23961 \noun default
23962 , and 
23963 \noun on
23964 Catullus
23965 \noun default
23966 , and 
23967 \noun on
23968 The Holy War
23969 \noun default
23970 –a bargain, every one of them.
23971  With five volumes you could just fill that gap on that second shelf.
23972  It looks untidy, does it not, sir?
23973 \begin_inset Quotes erd
23974 \end_inset
23975
23976
23977 \end_layout
23978
23979 \end_inset
23980
23981
23982 \end_layout
23983
23984 \begin_layout Subsubsection
23985 段間隔
23986 \end_layout
23987
23988 \begin_layout Standard
23989 段幅は自動的に計算されますが,段の間の余白は指定することができます.これは,長さ
23990 \series bold
23991
23992 \backslash
23993 columnsep
23994 \series default
23995 を変更することで実現できます.既定値は10
23996 \begin_inset space \thinspace{}
23997 \end_inset
23998
23999 ptです.以下は
24000 \series bold
24001
24002 \backslash
24003 columnsep
24004 \series default
24005 を3
24006 \begin_inset space \thinspace{}
24007 \end_inset
24008
24009 cmに設定した例です.
24010 \end_layout
24011
24012 \begin_layout Standard
24013 \begin_inset ERT
24014 status open
24015
24016 \begin_layout Plain Layout
24017
24018
24019 \backslash
24020 setlength{
24021 \backslash
24022 columnsep}{3cm}
24023 \end_layout
24024
24025 \end_inset
24026
24027
24028 \end_layout
24029
24030 \begin_layout Standard
24031 \begin_inset Flex Multiple Columns
24032 status open
24033
24034 \begin_layout Plain Layout
24035
24036 \size small
24037 My observations of No.
24038 \begin_inset space \space{}
24039 \end_inset
24040
24041 427 Park Lane did little to clear up the problem in which I was interested.
24042  The house was separated from the street by a low wall and railing, the
24043  whole not more than five feet high.
24044  It was perfectly easy, therefore, for anyone to get into the garden, but
24045  the window was entirely inaccessible, since there was no water pipe or
24046  anything which could help the most active man to climb it.
24047  More puzzled than ever, I retraced my steps to Kensington.
24048  I had not been in my study five minutes when the maid entered to say that
24049  a person desired to see me.
24050  To my astonishment it was none other than my strange old book collector,
24051  his sharp, wizened face peering out from a frame of white hair, and his
24052  precious volumes, a dozen of them at least, wedged under his right arm.
24053 \end_layout
24054
24055 \end_inset
24056
24057
24058 \end_layout
24059
24060 \begin_layout Standard
24061 \begin_inset ERT
24062 status collapsed
24063
24064 \begin_layout Plain Layout
24065
24066
24067 \backslash
24068 setlength{
24069 \backslash
24070 columnsep}{10pt}
24071 \end_layout
24072
24073 \end_inset
24074
24075
24076 \begin_inset Note Note
24077 status collapsed
24078
24079 \begin_layout Plain Layout
24080
24081 \lang english
24082 go back to the default
24083 \end_layout
24084
24085 \end_inset
24086
24087
24088 \end_layout
24089
24090 \begin_layout Subsubsection
24091 垂直線
24092 \end_layout
24093
24094 \begin_layout Standard
24095 段間には,長さ
24096 \series bold
24097
24098 \backslash
24099 columnseprule
24100 \series default
24101 の幅を持つ罫線が描かれます.罫線幅を0
24102 \begin_inset space \thinspace{}
24103 \end_inset
24104
24105 ptにすると(これが既定値です),罫線は出力されません.以下の例では,段を分かつ線は2
24106 \begin_inset space \thinspace{}
24107 \end_inset
24108
24109 pt幅に設定されています.
24110 \end_layout
24111
24112 \begin_layout Standard
24113 \begin_inset ERT
24114 status open
24115
24116 \begin_layout Plain Layout
24117
24118
24119 \backslash
24120 setlength{
24121 \backslash
24122 columnseprule}{2pt}
24123 \end_layout
24124
24125 \end_inset
24126
24127
24128 \end_layout
24129
24130 \begin_layout Standard
24131 \begin_inset Flex Multiple Columns
24132 status open
24133
24134 \begin_layout Plain Layout
24135
24136 \size small
24137 \begin_inset Quotes eld
24138 \end_inset
24139
24140 You're surprised to see me, sir,
24141 \begin_inset Quotes erd
24142 \end_inset
24143
24144  said he, in a strange, croaking voice.
24145 \end_layout
24146
24147 \begin_layout Plain Layout
24148
24149 \size small
24150 I acknowledged that I was.
24151 \end_layout
24152
24153 \begin_layout Plain Layout
24154
24155 \size small
24156 \begin_inset Quotes eld
24157 \end_inset
24158
24159 Well, I've a conscience, sir, and when I chanced to see you go into this
24160  house, as I came hobbling after you, I thought to myself, I'll just step
24161  in and see that kind gentleman, and tell him that if I was a bit gruff
24162  in my manner there was not any harm meant, and that I am much obliged to
24163  him for picking up my books.
24164 \begin_inset Quotes erd
24165 \end_inset
24166
24167
24168 \end_layout
24169
24170 \begin_layout Plain Layout
24171
24172 \size small
24173 \begin_inset Quotes eld
24174 \end_inset
24175
24176 You make too much of a trifle,
24177 \begin_inset Quotes erd
24178 \end_inset
24179
24180  said I.
24181  
24182 \begin_inset Quotes eld
24183 \end_inset
24184
24185 May I ask how you knew who I was?
24186 \begin_inset Quotes erd
24187 \end_inset
24188
24189
24190 \end_layout
24191
24192 \begin_layout Plain Layout
24193
24194 \size small
24195 \begin_inset Quotes eld
24196 \end_inset
24197
24198 Well, sir, if it isn't too great a liberty, I am a neighbour of yours, for
24199  you'll find my little bookshop at the corner of Church Street, and very
24200  happy to see you, I am sure.
24201  Maybe you collect yourself, sir.
24202  Here's 
24203 \noun on
24204 British
24205 \begin_inset space ~
24206 \end_inset
24207
24208 Birds
24209 \noun default
24210 , and 
24211 \noun on
24212 Catullus
24213 \noun default
24214 , and 
24215 \noun on
24216 The Holy War
24217 \noun default
24218 –a bargain, every one of them.
24219  With five volumes you could just fill that gap on that second shelf.
24220  It looks untidy, does it not, sir?
24221 \begin_inset Quotes erd
24222 \end_inset
24223
24224
24225 \end_layout
24226
24227 \end_inset
24228
24229
24230 \end_layout
24231
24232 \begin_layout Standard
24233 \begin_inset VSpace defskip
24234 \end_inset
24235
24236
24237 \end_layout
24238
24239 \begin_layout Standard
24240 罫線は,コマンド
24241 \series bold
24242
24243 \backslash
24244 columnseprulecolor
24245 \series default
24246 を再定義すれば,着色することができます.これは,多段組差込枠の前に\SpecialChar TeX
24247 コードで以下のコマンドを挿入すれば,実現できます.
24248 \begin_inset Newline newline
24249 \end_inset
24250
24251
24252 \series bold
24253
24254 \backslash
24255 renewcommand{
24256 \backslash
24257 columnseprulecolor}{
24258 \backslash
24259 color{red}}
24260 \series default
24261
24262 \begin_inset Newline newline
24263 \end_inset
24264
24265 このコマンド中の
24266 \series bold
24267 red
24268 \series default
24269 をお好みの色に変更してください.既定色とユーザー定義色の全てを使用することができます.既定色とユーザー定義色についての詳細な情報は,取扱説明書『
24270 \emph on
24271 埋込オブジェクト篇
24272 \emph default
24273 』の「
24274 \emph on
24275 色付き表
24276 \emph default
24277 」の節をご覧ください.既定色に戻すには,以下のコマンドを挿入してください.
24278 \begin_inset Newline newline
24279 \end_inset
24280
24281
24282 \series bold
24283
24284 \backslash
24285 renewcommand{
24286 \backslash
24287 columnseprulecolor}{
24288 \backslash
24289 normalcolor}
24290 \series default
24291
24292 \begin_inset Newline newline
24293 \end_inset
24294
24295 以下は,シアン色の罫線と1
24296 \begin_inset space \thinspace{}
24297 \end_inset
24298
24299 cmの段間隔を持つ例です.
24300 \end_layout
24301
24302 \begin_layout Standard
24303 \begin_inset ERT
24304 status open
24305
24306 \begin_layout Plain Layout
24307
24308
24309 \backslash
24310 setlength{
24311 \backslash
24312 columnsep}{1cm}
24313 \end_layout
24314
24315 \begin_layout Plain Layout
24316
24317
24318 \backslash
24319 renewcommand{
24320 \backslash
24321 columnseprulecolor}{
24322 \backslash
24323 color{cyan}}
24324 \end_layout
24325
24326 \end_inset
24327
24328
24329 \end_layout
24330
24331 \begin_layout Standard
24332 \begin_inset Flex Multiple Columns
24333 status open
24334
24335 \begin_layout Plain Layout
24336
24337 \size small
24338 \begin_inset Quotes eld
24339 \end_inset
24340
24341 You're surprised to see me, sir,
24342 \begin_inset Quotes erd
24343 \end_inset
24344
24345  said he, in a strange, croaking voice.
24346 \end_layout
24347
24348 \begin_layout Plain Layout
24349
24350 \size small
24351 I acknowledged that I was.
24352 \end_layout
24353
24354 \begin_layout Plain Layout
24355
24356 \size small
24357 \begin_inset Quotes eld
24358 \end_inset
24359
24360 Well, I've a conscience, sir, and when I chanced to see you go into this
24361  house, as I came hobbling after you, I thought to myself, I'll just step
24362  in and see that kind gentleman, and tell him that if I was a bit gruff
24363  in my manner there was not any harm meant, and that I am much obliged to
24364  him for picking up my books.
24365 \begin_inset Quotes erd
24366 \end_inset
24367
24368
24369 \end_layout
24370
24371 \begin_layout Plain Layout
24372
24373 \size small
24374 \begin_inset Quotes eld
24375 \end_inset
24376
24377 You make too much of a trifle,
24378 \begin_inset Quotes erd
24379 \end_inset
24380
24381  said I.
24382  
24383 \begin_inset Quotes eld
24384 \end_inset
24385
24386 May I ask how you knew who I was?
24387 \begin_inset Quotes erd
24388 \end_inset
24389
24390
24391 \end_layout
24392
24393 \begin_layout Plain Layout
24394
24395 \size small
24396 \begin_inset Quotes eld
24397 \end_inset
24398
24399 Well, sir, if it isn't too great a liberty, I am a neighbour of yours, for
24400  you'll find my little bookshop at the corner of Church Street, and very
24401  happy to see you, I am sure.
24402  Maybe you collect yourself, sir.
24403  Here's 
24404 \noun on
24405 British
24406 \begin_inset space ~
24407 \end_inset
24408
24409 Birds
24410 \noun default
24411 , and 
24412 \noun on
24413 Catullus
24414 \noun default
24415 , and 
24416 \noun on
24417 The Holy War
24418 \noun default
24419 –a bargain, every one of them.
24420  With five volumes you could just fill that gap on that second shelf.
24421  It looks untidy, does it not, sir?
24422 \begin_inset Quotes erd
24423 \end_inset
24424
24425
24426 \end_layout
24427
24428 \end_inset
24429
24430
24431 \end_layout
24432
24433 \begin_layout Standard
24434 \begin_inset ERT
24435 status collapsed
24436
24437 \begin_layout Plain Layout
24438
24439
24440 \backslash
24441 setlength{
24442 \backslash
24443 columnseprule}{0pt}
24444 \end_layout
24445
24446 \begin_layout Plain Layout
24447
24448
24449 \backslash
24450 renewcommand{
24451 \backslash
24452 columnseprulecolor}{
24453 \backslash
24454 normalcolor}
24455 \end_layout
24456
24457 \end_inset
24458
24459
24460 \begin_inset Note Note
24461 status collapsed
24462
24463 \begin_layout Plain Layout
24464
24465 \lang english
24466 go back to the default
24467 \end_layout
24468
24469 \end_inset
24470
24471
24472 \end_layout
24473
24474 \begin_layout Standard
24475 \begin_inset Newpage newpage
24476 \end_inset
24477
24478
24479 \end_layout
24480
24481 \begin_layout Section
24482 標準的でない形の段落
24483 \end_layout
24484
24485 \begin_layout Standard
24486 \noindent
24487 \SpecialChar LaTeX
24488 は,他のテキストプロセッサと同様に,既定で長方形の段落を使用します.しかし,例えば,ポスターや招待状,詩などの特殊な場合には,段落の形を好きなように変えることが
24489 できます.これは,文書設定で
24490 \family sans
24491 任意設定の段落形
24492 \family default
24493 モジュールを読み込んで,\SpecialChar LaTeX
24494 パッケージ
24495 \series bold
24496 shapepar
24497 \series default
24498 を使用させるようにすれば,実現できます.
24499 \end_layout
24500
24501 \begin_layout Subsection
24502 既定の形
24503 \end_layout
24504
24505 \begin_layout Standard
24506
24507 \series bold
24508 shapepar
24509 \series default
24510 は,以下の形を提供しています.
24511 \end_layout
24512
24513 \begin_layout Standard
24514 \begin_inset Tabular
24515 <lyxtabular version="3" rows="13" columns="3">
24516 <features booktabs="true" islongtable="true" longtabularalignment="center">
24517 <column alignment="center" valignment="middle" width="16col%">
24518 <column alignment="center" valignment="middle" width="40col%">
24519 <column alignment="center" valignment="middle" width="35col%">
24520 <row endhead="true">
24521 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
24522 \begin_inset Text
24523
24524 \begin_layout Plain Layout
24525 名称
24526 \end_layout
24527
24528 \end_inset
24529 </cell>
24530 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
24531 \begin_inset Text
24532
24533 \begin_layout Plain Layout
24534 説明
24535 \end_layout
24536
24537 \end_inset
24538 </cell>
24539 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
24540 \begin_inset Text
24541
24542 \begin_layout Plain Layout
24543 備考
24544 \end_layout
24545
24546 \end_inset
24547 </cell>
24548 </row>
24549 <row>
24550 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24551 \begin_inset Text
24552
24553 \begin_layout Plain Layout
24554 CDlabel
24555 \end_layout
24556
24557 \end_inset
24558 </cell>
24559 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24560 \begin_inset Text
24561
24562 \begin_layout Plain Layout
24563 丸い穴の開いたドーナツ型(CD/DVD大)
24564 \end_layout
24565
24566 \end_inset
24567 </cell>
24568 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24569 \begin_inset Text
24570
24571 \begin_layout Plain Layout
24572 伸縮不可.多くの文字を入れられないことに注意.
24573 \end_layout
24574
24575 \end_inset
24576 </cell>
24577 </row>
24578 <row>
24579 <cell alignment="center" valignment="top" topline="true" usebox="none">
24580 \begin_inset Text
24581
24582 \begin_layout Plain Layout
24583 Circle
24584 \end_layout
24585
24586 \end_inset
24587 </cell>
24588 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24589 \begin_inset Text
24590
24591 \begin_layout Plain Layout
24592
24593 \end_layout
24594
24595 \end_inset
24596 </cell>
24597 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24598 \begin_inset Text
24599
24600 \begin_layout Plain Layout
24601 脆弱.計算に失敗することも.
24602 \end_layout
24603
24604 \end_inset
24605 </cell>
24606 </row>
24607 <row>
24608 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24609 \begin_inset Text
24610
24611 \begin_layout Plain Layout
24612 Diamond
24613 \end_layout
24614
24615 \end_inset
24616 </cell>
24617 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24618 \begin_inset Text
24619
24620 \begin_layout Plain Layout
24621 菱形(シンボル的に
24622 \begin_inset Quotes eld
24623 \end_inset
24624
24625 diamond
24626 \begin_inset Quotes erd
24627 \end_inset
24628
24629 と表記)
24630 \end_layout
24631
24632 \end_inset
24633 </cell>
24634 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24635 \begin_inset Text
24636
24637 \begin_layout Plain Layout
24638 -
24639 \end_layout
24640
24641 \end_inset
24642 </cell>
24643 </row>
24644 <row>
24645 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24646 \begin_inset Text
24647
24648 \begin_layout Plain Layout
24649 Heart
24650 \end_layout
24651
24652 \end_inset
24653 </cell>
24654 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24655 \begin_inset Text
24656
24657 \begin_layout Plain Layout
24658 ハート型
24659 \end_layout
24660
24661 \end_inset
24662 </cell>
24663 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24664 \begin_inset Text
24665
24666 \begin_layout Plain Layout
24667 -
24668 \end_layout
24669
24670 \end_inset
24671 </cell>
24672 </row>
24673 <row>
24674 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24675 \begin_inset Text
24676
24677 \begin_layout Plain Layout
24678 Hexagon
24679 \end_layout
24680
24681 \end_inset
24682 </cell>
24683 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24684 \begin_inset Text
24685
24686 \begin_layout Plain Layout
24687 六角形
24688 \end_layout
24689
24690 \end_inset
24691 </cell>
24692 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24693 \begin_inset Text
24694
24695 \begin_layout Plain Layout
24696 -
24697 \end_layout
24698
24699 \end_inset
24700 </cell>
24701 </row>
24702 <row>
24703 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24704 \begin_inset Text
24705
24706 \begin_layout Plain Layout
24707 Nut
24708 \end_layout
24709
24710 \end_inset
24711 </cell>
24712 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24713 \begin_inset Text
24714
24715 \begin_layout Plain Layout
24716 ナット型(丸い穴の開いた六角形)
24717 \end_layout
24718
24719 \end_inset
24720 </cell>
24721 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24722 \begin_inset Text
24723
24724 \begin_layout Plain Layout
24725 -
24726 \end_layout
24727
24728 \end_inset
24729 </cell>
24730 </row>
24731 <row>
24732 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24733 \begin_inset Text
24734
24735 \begin_layout Plain Layout
24736 Square
24737 \end_layout
24738
24739 \end_inset
24740 </cell>
24741 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24742 \begin_inset Text
24743
24744 \begin_layout Plain Layout
24745 正方形
24746 \end_layout
24747
24748 \end_inset
24749 </cell>
24750 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24751 \begin_inset Text
24752
24753 \begin_layout Plain Layout
24754 -
24755 \end_layout
24756
24757 \end_inset
24758 </cell>
24759 </row>
24760 <row>
24761 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
24762 \begin_inset Text
24763
24764 \begin_layout Plain Layout
24765 Star
24766 \end_layout
24767
24768 \end_inset
24769 </cell>
24770 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
24771 \begin_inset Text
24772
24773 \begin_layout Plain Layout
24774 五芒星
24775 \end_layout
24776
24777 \end_inset
24778 </cell>
24779 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
24780 \begin_inset Text
24781
24782 \begin_layout Plain Layout
24783 -
24784 \end_layout
24785
24786 \end_inset
24787 </cell>
24788 </row>
24789 <row>
24790 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24791 \begin_inset Text
24792
24793 \begin_layout Plain Layout
24794 Candle
24795 \end_layout
24796
24797 \end_inset
24798 </cell>
24799 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24800 \begin_inset Text
24801
24802 \begin_layout Plain Layout
24803 燃えるろうそく
24804 \end_layout
24805
24806 \end_inset
24807 </cell>
24808 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24809 \begin_inset Text
24810
24811 \begin_layout Plain Layout
24812 -
24813 \end_layout
24814
24815 \end_inset
24816 </cell>
24817 </row>
24818 <row>
24819 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24820 \begin_inset Text
24821
24822 \begin_layout Plain Layout
24823 Drop down/up
24824 \end_layout
24825
24826 \end_inset
24827 </cell>
24828 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24829 \begin_inset Text
24830
24831 \begin_layout Plain Layout
24832 雫型/逆雫型
24833 \end_layout
24834
24835 \end_inset
24836 </cell>
24837 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24838 \begin_inset Text
24839
24840 \begin_layout Plain Layout
24841 脆弱.計算に失敗することも.
24842 \end_layout
24843
24844 \end_inset
24845 </cell>
24846 </row>
24847 <row>
24848 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24849 \begin_inset Text
24850
24851 \begin_layout Plain Layout
24852 \SpecialChar TeX
24853
24854 \end_layout
24855
24856 \end_inset
24857 </cell>
24858 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24859 \begin_inset Text
24860
24861 \begin_layout Plain Layout
24862 \SpecialChar TeX
24863 ロゴ
24864 \end_layout
24865
24866 \end_inset
24867 </cell>
24868 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24869 \begin_inset Text
24870
24871 \begin_layout Plain Layout
24872 -
24873 \end_layout
24874
24875 \end_inset
24876 </cell>
24877 </row>
24878 <row>
24879 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
24880 \begin_inset Text
24881
24882 \begin_layout Plain Layout
24883 Triangle up/down/
24884 \begin_inset Newline newline
24885 \end_inset
24886
24887 left/right
24888 \end_layout
24889
24890 \end_inset
24891 </cell>
24892 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
24893 \begin_inset Text
24894
24895 \begin_layout Plain Layout
24896 各方向の三角形
24897 \end_layout
24898
24899 \end_inset
24900 </cell>
24901 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
24902 \begin_inset Text
24903
24904 \begin_layout Plain Layout
24905 -
24906 \end_layout
24907
24908 \end_inset
24909 </cell>
24910 </row>
24911 </lyxtabular>
24912
24913 \end_inset
24914
24915
24916 \end_layout
24917
24918 \begin_layout Standard
24919 段落に形を適用するには,\SpecialChar LyX
24920 ツールバー中の環境プルダウンボックスから形を選んでください.
24921 \end_layout
24922
24923 \begin_layout Standard
24924 \begin_inset Newpage newpage
24925 \end_inset
24926
24927
24928 \end_layout
24929
24930 \begin_layout Standard
24931 以下は,ナット型の段落の例です.
24932 \end_layout
24933
24934 \begin_layout Standard
24935 \begin_inset VSpace bigskip
24936 \end_inset
24937
24938
24939 \end_layout
24940
24941 \begin_layout Nut
24942
24943 \lang latin
24944 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
24945  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
24946  voluptua.
24947  At vero eos et accusam et justo duo dolores et ea rebum.
24948  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
24949  sit amet.
24950  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
24951  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
24952  voluptua.
24953 \end_layout
24954
24955 \begin_layout Standard
24956 \begin_inset VSpace bigskip
24957 \end_inset
24958
24959
24960 \end_layout
24961
24962 \begin_layout Standard
24963 \begin_inset Note Greyedout
24964 status open
24965
24966 \begin_layout Plain Layout
24967
24968 \series bold
24969 【註】
24970 \series default
24971 shapepar段落は改頁にまたがることはできません.
24972 \end_layout
24973
24974 \end_inset
24975
24976
24977 \end_layout
24978
24979 \begin_layout Standard
24980 \begin_inset VSpace bigskip
24981 \end_inset
24982
24983
24984 \end_layout
24985
24986 \begin_layout Standard
24987
24988 \series bold
24989 shapepar
24990 \series default
24991 は,段落中にどれだけ文章が含まれようとも,常に形を維持しようとします.したがって,段落の大きさは,含まれている文章量によって変化しますので,段落の大きさがページ
24992 余白にはみ出してしまうことがあります.寸法が伸縮することを示すために,文章量を二倍にした例を見てみましょう.
24993 \end_layout
24994
24995 \begin_layout Standard
24996 \begin_inset Newpage newpage
24997 \end_inset
24998
24999
25000 \end_layout
25001
25002 \begin_layout Nut
25003
25004 \lang latin
25005 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
25006  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
25007  voluptua.
25008  At vero eos et accusam et justo duo dolores et ea rebum.
25009  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
25010  sit amet.
25011  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
25012  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
25013  voluptua.
25014  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
25015  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
25016  voluptua.
25017  At vero eos et accusam et justo duo dolores et ea rebum.
25018  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
25019  sit amet.
25020  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
25021  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
25022  voluptua.
25023 \end_layout
25024
25025 \begin_layout Standard
25026 \begin_inset VSpace bigskip
25027 \end_inset
25028
25029
25030 \end_layout
25031
25032 \begin_layout Standard
25033 ただし,
25034 \family sans
25035 CDlabel
25036 \family default
25037 形は例外です.これは,CD/DVDの寸法に収まらなくてはならないので,伸縮しません.したがって,形に収まる文章量は限られています.
25038 \begin_inset Newline newline
25039 \end_inset
25040
25041
25042 \family sans
25043 drop
25044 \family default
25045 形と
25046 \family sans
25047 circle
25048 \family default
25049 形は脆弱で,文章量によっては寸法計算が失敗する可能性があります.この場合,
25050 \begin_inset Quotes eld
25051 \end_inset
25052
25053 Arithmetic overflow
25054 \begin_inset Quotes erd
25055 \end_inset
25056
25057 という\SpecialChar LaTeX
25058 エラーが発生します.この時は,文章の一部を追加したり削除したりするか,どれもうまくいかなければ別の形を使用してください.
25059 \end_layout
25060
25061 \begin_layout Standard
25062 \begin_inset VSpace bigskip
25063 \end_inset
25064
25065
25066 \end_layout
25067
25068 \begin_layout Standard
25069 先端のある形では,先端部の文字列で,\SpecialChar LaTeX
25070 のハイフネーションルーチンが失敗することがあります.したがって,この部分の文章には,ハイフネーション位置
25071 \family sans
25072 (
25073 \begin_inset Info
25074 type  "shortcut"
25075 arg   "specialchar-insert hyphenation"
25076 \end_inset
25077
25078
25079 \family default
25080 )を指定することが往々にして必要になります.
25081 \end_layout
25082
25083 \begin_layout Standard
25084 \begin_inset VSpace bigskip
25085 \end_inset
25086
25087
25088 \end_layout
25089
25090 \begin_layout Standard
25091 Shapepar段落は,常に中央揃えか,左の縁が左ページ余白に接するように配置されます.したがって,これらの段落を揃えるのに段落ダイアログを使用することはできま
25092 せん.解決方法としては,段落をミニページかparboxの中において,このボックスを揃えることです.ここでの問題は,ボックスの正しい幅を見出すことです.もしボック
25093 スの幅が広すぎれば,ボックスを中央揃えにしたとしても,ボックスの左側が付いてしまうので中央揃えになりません.そこで,正しい幅を見出すまでは,若干試行錯誤しなくて
25094 はならないかもしれません.以下は,二つのハート形の段落です.一つ目は揃え指定がなく,二つ目は右揃えにしてあります.
25095 \end_layout
25096
25097 \begin_layout Standard
25098 \begin_inset Newpage newpage
25099 \end_inset
25100
25101
25102 \end_layout
25103
25104 \begin_layout Heart
25105 \noindent
25106
25107 \lang latin
25108 Lo\SpecialChar softhyphen
25109 rem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
25110  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
25111  voluptua.
25112  At vero eos et accusam et justo duo dolores et ea rebum.
25113  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
25114  sit amet.
25115 \end_layout
25116
25117 \begin_layout Standard
25118 \begin_inset VSpace bigskip
25119 \end_inset
25120
25121
25122 \end_layout
25123
25124 \begin_layout Standard
25125 \noindent
25126 \align right
25127 \begin_inset Box Frameless
25128 position "t"
25129 hor_pos "c"
25130 has_inner_box 1
25131 inner_pos "t"
25132 use_parbox 1
25133 use_makebox 0
25134 width "42col%"
25135 special "none"
25136 height "1in"
25137 height_special "totalheight"
25138 thickness "0.4pt"
25139 separation "3pt"
25140 shadowsize "4pt"
25141 framecolor "black"
25142 backgroundcolor "none"
25143 status open
25144
25145 \begin_layout Heart
25146 \noindent
25147
25148 \lang latin
25149 Lo\SpecialChar softhyphen
25150 rem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
25151  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
25152  voluptua.
25153  At vero eos et accusam et justo duo dolores et ea rebum.
25154  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
25155  sit amet.
25156 \end_layout
25157
25158 \end_inset
25159
25160
25161 \end_layout
25162
25163 \begin_layout Subsection
25164 任意の形
25165 \end_layout
25166
25167 \begin_layout Standard
25168 ユーザーは,どのような形であれ,定義することができます.これを手動で行うのは,全ての座標を指定しなくてはならないので,かなりの労力を必要とします.しかし,以下の
25169 ように,コンピューターに座標を計算させる方法もあります.
25170 \end_layout
25171
25172 \begin_layout Enumerate
25173 プログラム
25174 \begin_inset CommandInset href
25175 LatexCommand href
25176 name "Jpgfdraw"
25177 target "http://www.ctan.org/tex-archive/graphics/jpgfdraw"
25178 literal "false"
25179
25180 \end_inset
25181
25182 を導入します.
25183 \end_layout
25184
25185 \begin_layout Enumerate
25186
25187 \family sans
25188 Jpgfdraw
25189 \family default
25190 内で,メニュー
25191 \family sans
25192 TeX/LaTeX\SpecialChar menuseparator
25193 Settings\SpecialChar menuseparator
25194 Set Normal Size
25195 \family default
25196 で文書中で使用しているフォント寸を選択します.例えば,この文書は12
25197 \begin_inset space \thinspace{}
25198 \end_inset
25199
25200 pt寸を使用しています.
25201 \end_layout
25202
25203 \begin_layout Enumerate
25204 形を描きます.
25205 \end_layout
25206
25207 \begin_layout Enumerate
25208 メニュー
25209 \family sans
25210 TeX/LaTeX\SpecialChar menuseparator
25211 Shapepar
25212 \family default
25213 を使用して,形の座標をエクスポートします.現れるダイアログで,形の外枠を座標に使うか,パス自体を使うかを指定します.
25214 \begin_inset Foot
25215 status collapsed
25216
25217 \begin_layout Plain Layout
25218 詳細については,
25219 \begin_inset CommandInset href
25220 LatexCommand href
25221 target "http://www.dickimaw-books.com/apps/jpgfdraw/manual/shapepar.html"
25222 literal "false"
25223
25224 \end_inset
25225
25226 を参照してください.
25227 \end_layout
25228
25229 \end_inset
25230
25231
25232 \end_layout
25233
25234 \begin_layout Standard
25235 座標は\SpecialChar TeX
25236 ファイルに書き込まれます.これを\SpecialChar LyX
25237 文書で使用するには,
25238 \end_layout
25239
25240 \begin_layout Enumerate
25241 段落の最初の文字の前(もしくは空の段落内)にカーソルを置きます.
25242 \end_layout
25243
25244 \begin_layout Enumerate
25245 \SpecialChar LyX
25246
25247 \family sans
25248 挿入\SpecialChar menuseparator
25249 ファイル\SpecialChar menuseparator
25250 子文書
25251 \family default
25252 メニューでファイルを選択し,
25253 \family sans
25254 取り込みの型
25255 \family default
25256 として
25257 \family sans
25258 Input
25259 \family default
25260 を選択してください.
25261 \end_layout
25262
25263 \begin_layout Standard
25264 \begin_inset VSpace defskip
25265 \end_inset
25266
25267
25268 \end_layout
25269
25270 \begin_layout Standard
25271 \begin_inset Note Greyedout
25272 status open
25273
25274 \begin_layout Plain Layout
25275
25276 \series bold
25277 【註】
25278 \series default
25279 変更した形は,現在の段落にのみ適用されます.次の段落では全て通常に戻ります.したがって,段落定義ファイルは,形を変えたい段落全てで読み込まれなくてはなりません.
25280 \end_layout
25281
25282 \end_inset
25283
25284
25285 \end_layout
25286
25287 \begin_layout Standard
25288 \begin_inset VSpace bigskip
25289 \end_inset
25290
25291
25292 \end_layout
25293
25294 \begin_layout Standard
25295 以下の用例をご覧ください.
25296 \end_layout
25297
25298 \begin_layout Standard
25299 \begin_inset VSpace bigskip
25300 \end_inset
25301
25302
25303 \end_layout
25304
25305 \begin_layout Standard
25306 \begin_inset CommandInset include
25307 LatexCommand input
25308 filename "../SpecialParagraphShape.tex"
25309
25310 \end_inset
25311
25312
25313 \lang latin
25314 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
25315  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
25316  voluptua.
25317  At vero eos et accusam et justo duo dolores et ea rebum.
25318  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
25319  sit amet.
25320  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
25321  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
25322  voluptua.
25323 \end_layout
25324
25325 \begin_layout Standard
25326 \begin_inset VSpace bigskip
25327 \end_inset
25328
25329
25330 \end_layout
25331
25332 \begin_layout Standard
25333
25334 \series bold
25335 【ヒント】
25336 \family sans
25337 \series default
25338 Jpgfdraw
25339 \family default
25340 で複雑な形を描く場合,まず形を好きなプログラムで描き,出来上がった画像を
25341 \family sans
25342 Jpgfdraw
25343 \family default
25344 に読み込む方法があります.この場合,画像の外枠に沿って,直線またはスプラインを描くだけですみます.
25345 \end_layout
25346
25347 \begin_layout Standard
25348 \begin_inset VSpace bigskip
25349 \end_inset
25350
25351
25352 \end_layout
25353
25354 \begin_layout Standard
25355
25356 \family sans
25357 任意の段落形
25358 \family default
25359 モジュールは,
25360 \family sans
25361 shapepar
25362 \family default
25363
25364 \family sans
25365 Shapepar
25366 \family default
25367 の二つのコマンドも提供していて,任意の形を座標毎に定義するのに使用することができます.
25368 \begin_inset Foot
25369 status collapsed
25370
25371 \begin_layout Plain Layout
25372 これらのコマンドは,上述の全ての形で内部的に使用されています.
25373 \end_layout
25374
25375 \end_inset
25376
25377 これらのスタイルがどのように使われていて,どのような設定ができるのかについての詳しい情報は,
25378 \series bold
25379 shapepar
25380 \series default
25381 パッケージの取扱説明書
25382 \begin_inset CommandInset citation
25383 LatexCommand cite
25384 key "shapepar"
25385 literal "true"
25386
25387 \end_inset
25388
25389 をご覧ください.
25390 \end_layout
25391
25392 \begin_layout Bibliography
25393 \begin_inset CommandInset bibitem
25394 LatexCommand bibitem
25395 key "multicol"
25396 literal "true"
25397
25398 \end_inset
25399
25400 \SpecialChar LaTeX
25401 パッケージ
25402 \begin_inset CommandInset href
25403 LatexCommand href
25404 name "multicol"
25405 target "http://mirror.ctan.org/macros/latex/required/tools/multicol.pdf"
25406 literal "false"
25407
25408 \end_inset
25409
25410 の取扱説明書
25411 \end_layout
25412
25413 \begin_layout Bibliography
25414 \begin_inset CommandInset bibitem
25415 LatexCommand bibitem
25416 key "shapepar"
25417 literal "true"
25418
25419 \end_inset
25420
25421 \SpecialChar LaTeX
25422 パッケージ
25423 \begin_inset CommandInset href
25424 LatexCommand href
25425 name "shapepar"
25426 target "http://mirrors.ctan.org/macros/latex/contrib/shapepar/shapepar.pdf"
25427 literal "false"
25428
25429 \end_inset
25430
25431 の取扱説明書
25432 \end_layout
25433
25434 \end_body
25435 \end_document