]> git.lyx.org Git - lyx.git/blob - lib/doc/ja/Additional.lyx
Make Japanese documentation more robust.
[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 false
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 % the pages of the TOC are numbered roman
19 % and a PDF-bookmark for the TOC is added
20 \pagenumbering{roman}
21 \let\myTOC\tableofcontents
22 \renewcommand{\tableofcontents}{%
23  \pdfbookmark[1]{\contentsname}{}
24  \myTOC
25  \cleardoublepage
26  \pagenumbering{arabic}}
27
28 % extra space for tables
29 \newcommand{\extratablespace}[1]{\noalign{\vskip#1}}
30
31 % Improve line breaking
32 \tolerance 1414
33 \hbadness 1414
34 \emergencystretch 1.5em
35 \hfuzz 0.3pt
36
37 % additional setting for Japanese manual
38 \IfFileExists{pxjahyper.sty}
39 {\usepackage{pxjahyper}}
40
41 \usepackage{t1enc}
42 \end_preamble
43 \options bibliography=totoc,index=totoc,BCOR7.5mm,titlepage,captions=tableheading,bookmarkpackage=false
44 \use_default_options false
45 \begin_modules
46 logicalmkup
47 theorems-ams
48 theorems-ams-extended
49 multicol
50 shapepar
51 \end_modules
52 \maintain_unincluded_children false
53 \begin_local_layout
54 Format 35
55 InsetLayout             Flex:MenuItem
56 LyxType         charstyle
57 LabelString           menu
58 LatexType             command
59 LatexName             menuitem
60 Font
61 Family              Sans
62 EndFont
63 Preamble
64 \newcommand*{\menuitem}[1]{{\sffamily #1}}
65 EndPreamble
66 End
67 InsetLayout             Flex:Ruby
68 LyxType         charstyle
69 LatexType               command
70 LatexName               ruby
71 BgColor         none
72 LabelString             "ルビ"
73 Decoration              Conglomerate
74 Argument post:1
75 LabelString     "ルビ文"
76 MenuString      "ルビ文(S)|S"
77 Decoration      Conglomerate
78 Font
79 Size            tiny
80 EndFont
81 LabelFont
82 Size            tiny
83 EndFont
84 Mandatory       1
85 EndArgument
86 Preamble
87 \ifdefined\kanjiskip
88   \IfFileExists{okumacro.sty}%
89     {\usepackage{okumacro}}%
90     {\newcommand{\ruby}[2]{\shortstack{\tiny ##2\\##1}}}%
91 \else \ifdefined\luatexversion
92   \usepackage{luatexja-ruby}
93 \else \ifdefined\XeTeXversion
94   \usepackage{ruby}%
95 \fi\fi\fi
96 EndPreamble
97 End
98 \end_local_layout
99 \language japanese
100 \language_package default
101 \inputencoding utf8-platex
102 \fontencoding global
103 \font_roman "lmodern" "IPAexMincho"
104 \font_sans "default" "IPAexGothic"
105 \font_typewriter "default" "default"
106 \font_math "auto" "auto"
107 \font_default_family default
108 \use_non_tex_fonts false
109 \font_sc false
110 \font_osf false
111 \font_sf_scale 100 100
112 \font_tt_scale 100 100
113 \use_microtype false
114 \use_dash_ligatures false
115 \graphics default
116 \default_output_format default
117 \output_sync 0
118 \bibtex_command default
119 \index_command default
120 \paperfontsize 12
121 \spacing single
122 \use_hyperref true
123 \pdf_title "LyX's Additional Features manual"
124 \pdf_author "LyX Team"
125 \pdf_subject "LyX's additional features documentation"
126 \pdf_keywords "LyX, Documentation, Additional"
127 \pdf_bookmarks false
128 \pdf_bookmarksnumbered true
129 \pdf_bookmarksopen false
130 \pdf_bookmarksopenlevel 1
131 \pdf_breaklinks false
132 \pdf_pdfborder false
133 \pdf_colorlinks true
134 \pdf_backref false
135 \pdf_pdfusetitle false
136 \pdf_quoted_options "pdfencoding=pdfdoc, linkcolor=black, citecolor=black, urlcolor=blue, filecolor=blue, pdfpagelayout=OneColumn, pdfnewwindow=true, pdfstartview=XYZ, plainpages=false"
137 \papersize default
138 \use_geometry false
139 \use_package amsmath 1
140 \use_package amssymb 1
141 \use_package cancel 1
142 \use_package esint 1
143 \use_package mathdots 1
144 \use_package mathtools 1
145 \use_package mhchem 1
146 \use_package stackrel 1
147 \use_package stmaryrd 1
148 \use_package undertilde 1
149 \cite_engine basic
150 \cite_engine_type default
151 \biblio_style plain
152 \use_bibtopic false
153 \use_indices false
154 \paperorientation portrait
155 \suppress_date false
156 \justification true
157 \use_refstyle 0
158 \use_minted 0
159 \notefontcolor #0000ff
160 \index 索引
161 \shortcut idx
162 \color #008000
163 \end_index
164 \secnumdepth 3
165 \tocdepth 3
166 \paragraph_separation indent
167 \paragraph_indentation default
168 \is_math_indent 1
169 \math_indentation default
170 \math_numbering_side default
171 \quotes_style english
172 \dynamic_quotes 0
173 \papercolumns 1
174 \papersides 2
175 \paperpagestyle headings
176 \tracking_changes false
177 \output_changes false
178 \html_math_output 0
179 \html_css_as_file 0
180 \html_be_strict true
181 \end_header
182
183 \begin_body
184
185 \begin_layout Title
186 \SpecialChar LyX
187 の高度な機能
188 \begin_inset Newline newline
189 \end_inset
190
191
192 \size large
193 第2.3.x版
194 \end_layout
195
196 \begin_layout Author
197 \SpecialChar LyX
198 プロジェクトチーム
199 \begin_inset Foot
200 status collapsed
201
202 \begin_layout Plain Layout
203 このファイルは主にRichard Heckによって管理されています.コメントをされたい場合や誤りを発見された場合には,\SpecialChar LyX
204 文書化メーリングリスト
205 \begin_inset Flex Code
206 status open
207
208 \begin_layout Plain Layout
209 \noindent
210
211 \family typewriter
212 <lyx-docs@lists.lyx.org>
213 \end_layout
214
215 \end_inset
216
217 に英文にてお知らせ下さい.この文書の翻訳は,当初人見光太郎氏が行った貢献に基づいています.
218 \end_layout
219
220 \end_inset
221
222  
223 \end_layout
224
225 \begin_layout Standard
226 \begin_inset CommandInset toc
227 LatexCommand tableofcontents
228
229 \end_inset
230
231
232 \end_layout
233
234 \begin_layout Chapter
235 はじめに
236 \end_layout
237
238 \begin_layout Standard
239 いまお読みの取扱説明書『
240 \emph on
241 \SpecialChar LyX
242 拡張機能篇
243 \emph default
244 』は,基本的には『
245 \emph on
246 ユーザーの手引き
247 \emph default
248 』の第二部です.これらの文書を別部とした理由は,単純に『
249 \emph on
250 ユーザーの手引き
251 \emph default
252 』がすでに大部となっていることと,『
253 \emph on
254 ユーザーの手引き
255 \emph default
256 』が,ほとんどの文書を作成する上で必要な基本機能をすべて説明してしまっているためです.一方で,\SpecialChar LyX
257 プロジェクトチームは,\SpecialChar LyX
258 を各設定ファイルと外部パッケージによって拡張
259 可能な状態にしておくことを長期的な目標にしています.つまり,ある\SpecialChar LaTeX
260 パッケージをサポートしたい場合に,\SpecialChar LyX
261 自身に変更を加えることなく,当該パッケージ用のレイアウトファイ
262 ル(ないしモジュール)を作成すればいいようにしているのです.すでにこのような形で,いくつもの新機能がユーザーによって追加されています.この取扱説明書は,そのよう
263 な形での貢献を文書化する冊子として位置付けられています.
264 \end_layout
265
266 \begin_layout Standard
267 この取扱説明書では,ファックスのサポート・バージョン管理・SGMLサポートのような,正しく機能するためには追加的なソフトウェアを必要とする特殊機能についても説明
268 しています.さらに,\SpecialChar LaTeX
269 の強力な機能を直接使って文書を美しく仕上げるための,\SpecialChar LaTeX
270 ツールやテクニックを述べた章も収録しています.つきつめれば,\SpecialChar LyX
271 とはあくまでWYSIWYMた
272 ることを企図しているため,\SpecialChar LaTeX
273 の全機能の一部へのインタフェースは用意するものの,すべてを用意することはないでしょう.
274 \end_layout
275
276 \begin_layout Standard
277 もし,まだ『
278 \emph on
279 はじめの一歩
280 \emph default
281 』をお読みでなかったら,この取扱説明書から読みはじめるのは誤りです.『
282 \emph on
283 はじめの一歩
284 \emph default
285 』には,全取扱説明書に共通の表記法と書式が説明されていますので,まずそれからお読みください.さらに,この取扱説明書を読もうとする前に,『
286 \emph on
287 ユーザーの手引き
288 \emph default
289 』をよくお読みになって,\SpecialChar LyX
290 の全基本機能を習得してください.
291 \end_layout
292
293 \begin_layout Standard
294 この取扱説明書の取り上げられている話題は,\SpecialChar LyX
295 が\SpecialChar LaTeX
296 にどう関わっているかに強く関係していますので,まず次章では,\SpecialChar LyX
297 の内部動作がどうなっているか,LyXに希望する\SpecialChar LaTeX
298 コードを正
299 確に生成させるにはどうしたらいいかを収録しています.本章は,あきらかに熟練\SpecialChar LyX
300 ユーザー向けの章となっています.
301 \end_layout
302
303 \begin_layout Chapter
304 \SpecialChar LyX
305 と\SpecialChar LaTeX
306
307 \end_layout
308
309 \begin_layout Section
310 \SpecialChar LyX
311 は\SpecialChar LaTeX
312 をどう使っているか
313 \end_layout
314
315 \begin_layout Standard
316 本章
317 \family roman
318 \series medium
319 \shape up
320 \size normal
321 \emph off
322 \bar no
323 \noun off
324 \color none
325 は,\SpecialChar TeX
326 熟練者と\SpecialChar LaTeX
327 に興味のある方向けの章です.ここでは,\SpecialChar LyX
328 と\SpecialChar LaTeX
329 が,印刷可能な出力を生成するのに,どのように協働しているのかを説明します.全取扱説明書中で本章だけは,\SpecialChar LaTeX
330 のこと
331 を多少なりともご存知であることを前提とします.
332 \end_layout
333
334 \begin_layout Standard
335
336 \family roman
337 \series medium
338 \shape up
339 \size normal
340 \emph off
341 \bar no
342 \noun off
343 \color none
344 かつて\SpecialChar LyX
345 は,「\SpecialChar LaTeX
346
347 \family default
348 \series default
349 \shape default
350 \size default
351 \emph default
352 \bar default
353 \noun default
354 \color inherit
355 WYSIWYM
356 \family roman
357 \series medium
358 \shape up
359 \size normal
360 \emph off
361 \bar no
362 \noun off
363 \color none
364 なフロントエンド」と呼ばれていましたが,いまではこれは正しくありません.\SpecialChar LaTeX
365 のフロントエンドは,いくつも出回っています
366 \begin_inset Foot
367 status collapsed
368
369 \begin_layout Plain Layout
370
371 \family roman
372 \series medium
373 \shape up
374 \size normal
375 \emph off
376 \bar no
377 \noun off
378 \color none
379 有名なものとしては,Linux上の\SpecialChar TeX
380 makerとkile,OSX上の\SpecialChar TeX
381 shopなどがあります.もちろんviとemacsの\SpecialChar LaTeX
382 モードも含まれます.
383 \end_layout
384
385 \end_inset
386
387 .これらは,基本的に\SpecialChar LaTeX
388 を走らせる機能を有し,編集中のファイルのエラーを表示する機能を持ったテキストエディタです.\SpecialChar LyX
389 も,エディタであり,\SpecialChar LaTeX
390 を走らせる機能を有し,ファイル
391 中のエラーを指摘しますが,それ以上にもっともっと多くのことをしてくれます.
392 \family default
393 \series default
394 \shape default
395 \size default
396 \emph default
397 \bar default
398 \noun default
399 \color inherit
400 ひとつには,
401 \family roman
402 \series medium
403 \shape up
404 \size normal
405 \emph off
406 \bar no
407 \noun off
408 \color none
409 \SpecialChar LyX
410 を効果的に使うのに,\SpecialChar LaTeX
411 の知識が必要とされないことが挙げられます.また\SpecialChar LyX
412 は,それ自身,いくつかの拡張を\SpecialChar LaTeX
413 に加えています.時間のあるときにでも,いちど以下の手順を試してみ
414 てください.まず
415 \family sans
416 \series default
417 \shape default
418 \size default
419 \emph default
420 \bar default
421 \noun default
422 \color inherit
423
424 \begin_inset Flex MenuItem
425 status collapsed
426
427 \begin_layout Plain Layout
428
429 \family sans
430 ファイル
431 \end_layout
432
433 \end_inset
434
435
436 \family roman
437 \series medium
438 \shape up
439 \size normal
440 \emph off
441 \bar no
442 \noun off
443 \color none
444 メニューから
445 \family sans
446 \series default
447 \shape default
448 \size default
449 \emph default
450 \bar default
451 \noun default
452 \color inherit
453
454 \begin_inset Flex MenuItem
455 status collapsed
456
457 \begin_layout Plain Layout
458
459 \family sans
460 エクスポート\SpecialChar menuseparator
461 LaTeX
462 \end_layout
463
464 \end_inset
465
466
467 \family roman
468 \series medium
469 \shape up
470 \size normal
471 \emph off
472 \bar no
473 \noun off
474 \color none
475 (あるいは
476 \family sans
477 \series default
478 \shape default
479 \size default
480 \emph default
481 \bar default
482 \noun default
483 \color inherit
484
485 \begin_inset Flex MenuItem
486 status collapsed
487
488 \begin_layout Plain Layout
489
490 \family sans
491 表示\SpecialChar menuseparator
492 ソースを閲覧
493 \end_layout
494
495 \end_inset
496
497
498 \family roman
499 \series medium
500 \shape up
501 \size normal
502 \emph off
503 \bar no
504 \noun off
505 \color none
506 )を選択し,そこから出力される
507 \begin_inset Flex Code
508 status collapsed
509
510 \begin_layout Plain Layout
511
512 \family typewriter
513 .tex
514 \end_layout
515
516 \end_inset
517
518 ファイルのプリアンブルをご覧ください.\SpecialChar LyX
519 によって特別に定義された新しいマクロが複数定義されていることに気づかれるはずです
520 \family default
521 \series default
522 \shape default
523 \size default
524 \emph default
525 \bar default
526 \noun default
527 \color inherit
528 .これらのマクロは,文書中で使用する機能に応じて,自動的に定義されます.
529 \end_layout
530
531 \begin_layout Standard
532
533 \family roman
534 \series medium
535 \shape up
536 \size normal
537 \emph off
538 \bar no
539 \noun off
540 \color none
541 自動的に\SpecialChar LaTeX
542 を実行するコマンドが,以下のようにいくつかあります.
543 \end_layout
544
545 \begin_layout Itemize
546 \begin_inset Flex MenuItem
547 status collapsed
548
549 \begin_layout Plain Layout
550 表示\SpecialChar menuseparator
551 書式
552 \end_layout
553
554 \end_inset
555
556
557 \end_layout
558
559 \begin_layout Itemize
560
561 \family sans
562 \begin_inset Flex MenuItem
563 status collapsed
564
565 \begin_layout Plain Layout
566
567 \bar no
568 表示\SpecialChar menuseparator
569 更新\SpecialChar menuseparator
570
571 \bar default
572 書式
573 \end_layout
574
575 \end_inset
576
577
578 \end_layout
579
580 \begin_layout Standard
581
582 \family roman
583 \series medium
584 \shape up
585 \size normal
586 \emph off
587 \bar no
588 \noun off
589 \color none
590 これらは,最後に\SpecialChar LaTeX
591 を実行してからファイルに変更が加えられた場合のみ,\SpecialChar LaTeX
592 を実行します.
593 \end_layout
594
595 \begin_layout Standard
596
597 \family roman
598 \series medium
599 \shape up
600 \size normal
601 \emph off
602 \bar no
603 \noun off
604 \color none
605 \SpecialChar LyX
606 が編集中のファイルを\SpecialChar LaTeX
607 にかけるとき,\SpecialChar LyX
608 は以下の段階をふみます.
609 \end_layout
610
611 \begin_layout Enumerate
612
613 \family roman
614 \series medium
615 \shape up
616 \size normal
617 \emph off
618 \bar no
619 \noun off
620 \color none
621 文書を\SpecialChar LaTeX
622 に変換し,ファイルの拡張子を
623 \begin_inset Flex Code
624 status collapsed
625
626 \begin_layout Plain Layout
627
628 \family roman
629 \series medium
630 \shape up
631 \size normal
632 \emph off
633 \bar no
634 \noun off
635 \color none
636 .lyx
637 \end_layout
638
639 \end_inset
640
641 から
642 \begin_inset Flex Code
643 status collapsed
644
645 \begin_layout Plain Layout
646
647 \family roman
648 \series medium
649 \shape up
650 \size normal
651 \emph off
652 \bar no
653 \noun off
654 \color none
655 .tex
656 \end_layout
657
658 \end_inset
659
660 に変えて保存.
661 \end_layout
662
663 \begin_layout Enumerate
664
665 \family roman
666 \series medium
667 \shape up
668 \size normal
669 \emph off
670 \bar no
671 \noun off
672 \color none
673 この
674 \begin_inset Flex Code
675 status collapsed
676
677 \begin_layout Plain Layout
678
679 \family roman
680 \series medium
681 \shape up
682 \size normal
683 \emph off
684 \bar no
685 \noun off
686 \color none
687 .tex
688 \end_layout
689
690 \end_inset
691
692 ファイルに対して(必要に応じて複数回)\SpecialChar LaTeX
693 を実行し,\SpecialChar LaTeX
694 ファイルをコンパイルするのに必要な他のコマンド(
695 \begin_inset Flex Code
696 status collapsed
697
698 \begin_layout Plain Layout
699
700 \family roman
701 \series medium
702 \shape up
703 \size normal
704 \emph off
705 \bar no
706 \noun off
707 \color none
708 bibtex
709 \end_layout
710
711 \end_inset
712
713
714 \begin_inset Flex Code
715 status collapsed
716
717 \begin_layout Plain Layout
718
719 \family roman
720 \series medium
721 \shape up
722 \size normal
723 \emph off
724 \bar no
725 \noun off
726 \color none
727 makeindex
728 \end_layout
729
730 \end_inset
731
732 など)を実行..
733 \end_layout
734
735 \begin_layout Enumerate
736
737 \family roman
738 \series medium
739 \shape up
740 \size normal
741 \emph off
742 \bar no
743 \noun off
744 \color none
745 もしエラーがあれば,エラーログを表示.
746 \end_layout
747
748 \begin_layout Standard
749
750 \family roman
751 \series medium
752 \shape up
753 \size normal
754 \emph off
755 \bar no
756 \noun off
757 \color none
758 \SpecialChar LaTeX
759
760 \family sans
761 \series default
762 \shape default
763 \size default
764 \emph default
765 \bar default
766 \noun default
767 \color inherit
768
769 \begin_inset Flex MenuItem
770 status collapsed
771
772 \begin_layout Plain Layout
773
774 \family sans
775 表示\SpecialChar menuseparator
776 DVI
777 \end_layout
778
779 \end_inset
780
781
782 \family roman
783 \series medium
784 \shape up
785 \size normal
786 \emph off
787 \bar no
788 \noun off
789 \color none
790 を使用して実行した場合には,\SpecialChar LyX
791 はこの後,DVIビューアを実行してDVIファイルを表示します.
792 \begin_inset Flex MenuItem
793 status collapsed
794
795 \begin_layout Plain Layout
796
797 \family roman
798 \series medium
799 \shape up
800 \size normal
801 \emph off
802 \bar no
803 \noun off
804 \color none
805 表示\SpecialChar menuseparator
806 PostScript
807 \end_layout
808
809 \end_inset
810
811 を使用した場合には,\SpecialChar LyX
812 はさらに以下の段階をふみます.
813 \end_layout
814
815 \begin_layout Itemize
816
817 \family roman
818 \series medium
819 \shape up
820 \size normal
821 \emph off
822 \bar no
823 \noun off
824 \color none
825 \begin_inset Flex Code
826 status collapsed
827
828 \begin_layout Plain Layout
829
830 \family typewriter
831 dvips
832 \end_layout
833
834 \end_inset
835
836 を実行して,
837 \family default
838 \series default
839 \shape default
840 \size default
841 \emph default
842 \bar default
843 \noun default
844 \color inherit
845 DVI
846 \family roman
847 \series medium
848 \shape up
849 \size normal
850 \emph off
851 \bar no
852 \noun off
853 \color none
854 ファイルをPostScript
855 \family default
856 \series default
857 \shape default
858 \size default
859 \emph default
860 \bar default
861 \noun default
862 \color inherit
863 に変換.
864 \end_layout
865
866 \begin_layout Itemize
867
868 \family roman
869 \series medium
870 \shape up
871 \size normal
872 \emph off
873 \bar no
874 \noun off
875 \color none
876 \begin_inset Flex Code
877 status collapsed
878
879 \begin_layout Plain Layout
880
881 \family typewriter
882 ghostview
883 \end_layout
884
885 \end_inset
886
887 などのPostScriptビューアを実行して,PostScript
888 \family default
889 \series default
890 \shape default
891 \size default
892 \emph default
893 \bar default
894 \noun default
895 \color inherit
896 ファイルを表示.
897 \end_layout
898
899 \begin_layout Standard
900 \SpecialChar LyX
901 は,他の書式を表示したりエクスポートしたりする際にも,同様のことを行います.
902 \end_layout
903
904 \begin_layout Section
905 \SpecialChar LaTeX
906 ファイルを\SpecialChar LyX
907 に読み込む
908 \end_layout
909
910 \begin_layout Standard
911 \SpecialChar LyX
912
913 \family sans
914
915 \begin_inset Flex MenuItem
916 status collapsed
917
918 \begin_layout Plain Layout
919
920 \family sans
921 ファイル\SpecialChar menuseparator
922 インポート\SpecialChar menuseparator
923 LaTeX
924 \end_layout
925
926 \end_inset
927
928
929 \family roman
930 \series medium
931 \shape up
932 \size normal
933 \emph off
934 \bar no
935 \noun off
936 \color none
937 コマンドを使用すると,\SpecialChar LaTeX
938 ファイルを
939 \family default
940 \series default
941 \shape default
942 \size default
943 \emph default
944 \bar default
945 \noun default
946  
947 \family roman
948 \series medium
949 \shape up
950 \size normal
951 \emph off
952 \bar no
953 \noun off
954 \SpecialChar LyX
955 にインポートすることができます.このコマンドは,
956 \family typewriter
957 \series default
958 \shape default
959 \size default
960 \emph default
961 \bar default
962 \noun default
963 \color inherit
964
965 \begin_inset Flex Code
966 status collapsed
967
968 \begin_layout Plain Layout
969
970 \family typewriter
971 tex2lyx
972 \end_layout
973
974 \end_inset
975
976
977 \family roman
978 \series medium
979 \shape up
980 \size normal
981 \emph off
982 \bar no
983 \noun off
984 \color none
985 というプログラムを呼び出し,
986 \family typewriter
987 \series default
988 \shape default
989 \size default
990 \emph default
991 \bar default
992 \noun default
993 \color inherit
994
995 \begin_inset Flex Code
996 status collapsed
997
998 \begin_layout Plain Layout
999
1000 \family typewriter
1001 foo.tex
1002 \end_layout
1003
1004 \end_inset
1005
1006
1007 \family default
1008 などというファイルから
1009 \begin_inset Flex Code
1010 status collapsed
1011
1012 \begin_layout Plain Layout
1013
1014 \family typewriter
1015 foo.lyx
1016 \end_layout
1017
1018 \end_inset
1019
1020 を生成します.\SpecialChar LyX
1021 は,この変換したファイルを開きます
1022 \begin_inset Foot
1023 status collapsed
1024
1025 \begin_layout Plain Layout
1026 \begin_inset Flex Code
1027 status collapsed
1028
1029 \begin_layout Plain Layout
1030 tex2lyx
1031 \end_layout
1032
1033 \end_inset
1034
1035 は,もちろんコマンドラインから実行することもできます.
1036 \end_layout
1037
1038 \end_inset
1039
1040
1041 \end_layout
1042
1043 \begin_layout Standard
1044
1045 \family typewriter
1046 \begin_inset Flex Code
1047 status collapsed
1048
1049 \begin_layout Plain Layout
1050
1051 \family typewriter
1052 tex2lyx
1053 \end_layout
1054
1055 \end_inset
1056
1057
1058 \family roman
1059 \series medium
1060 \shape up
1061 \size normal
1062 \emph off
1063 \bar no
1064 \noun off
1065 \color none
1066 は,文法的に正しい\SpecialChar LaTeX
1067 ファイルのほとんどを変換することができますが,すべてを変換できるわけではありません.
1068 \family typewriter
1069 \series default
1070 \shape default
1071 \size default
1072 \emph default
1073 \bar default
1074 \noun default
1075 \color inherit
1076
1077 \begin_inset Flex Code
1078 status collapsed
1079
1080 \begin_layout Plain Layout
1081
1082 \family typewriter
1083 tex2lyx
1084 \end_layout
1085
1086 \end_inset
1087
1088
1089 \family roman
1090 \series medium
1091 \shape up
1092 \size normal
1093 \emph off
1094 \bar no
1095 \noun off
1096 \color none
1097 は,理解不能な部分は\SpecialChar TeX
1098 コードボックスの形で残しますので,ファイルを
1099 \family typewriter
1100 \series default
1101 \shape default
1102 \size default
1103 \emph default
1104 \bar default
1105 \noun default
1106 \color inherit
1107
1108 \begin_inset Flex Code
1109 status collapsed
1110
1111 \begin_layout Plain Layout
1112
1113 \family typewriter
1114 tex2lyx
1115 \end_layout
1116
1117 \end_inset
1118
1119
1120 \family roman
1121 \series medium
1122 \shape up
1123 \size normal
1124 \emph off
1125 \bar no
1126 \noun off
1127 \color none
1128 で変換したのち,\SpecialChar TeX
1129 コードボックスを探して,手動で正しく編集してください.
1130 \end_layout
1131
1132 \begin_layout Standard
1133
1134 \family roman
1135 \series medium
1136 \shape up
1137 \size normal
1138 \emph off
1139 \bar no
1140 \noun off
1141 \color none
1142 \SpecialChar TeX
1143 コードボックスがなにかご存じなければ,次節をお読みください.
1144 \end_layout
1145
1146 \begin_layout Section
1147 \SpecialChar LyX
1148 文書に\SpecialChar TeX
1149 コードを挿入する
1150 \begin_inset CommandInset label
1151 LatexCommand label
1152 name "sec:TeXコードを挿入する"
1153
1154 \end_inset
1155
1156
1157 \end_layout
1158
1159 \begin_layout Standard
1160
1161 \family roman
1162 \series medium
1163 \shape up
1164 \size normal
1165 \emph off
1166 \bar no
1167 \noun off
1168 \color none
1169 どの\SpecialChar LyX
1170 文書にもつねに\SpecialChar TeX
1171 コードを挿入することが可能であるというきわめて単純な理由によって,\SpecialChar LaTeX
1172 にできることは,つねに\SpecialChar LyX
1173 でも行うことができます.一方,\SpecialChar LyX
1174 は,すべての\SpecialChar LaTeX
1175 構成物を\SpecialChar LyX
1176 内に
1177 表示できるわけではなく,将来的にもそうならないでしょう.かりに\SpecialChar LaTeX
1178 コマンドを\SpecialChar LyX
1179 文書に挿入する必要が出てきた場合には,
1180 \begin_inset Flex Code
1181 status collapsed
1182
1183 \begin_layout Plain Layout
1184
1185 \family roman
1186 \series medium
1187 \shape up
1188 \size normal
1189 \emph off
1190 \bar no
1191 \noun off
1192 \color none
1193 \SpecialChar TeX
1194 コード
1195 \end_layout
1196
1197 \end_inset
1198
1199 ボックスを使用してください.これは,
1200 \family sans
1201 \series default
1202 \shape default
1203 \size default
1204 \emph default
1205 \bar default
1206 \noun default
1207 \color inherit
1208
1209 \begin_inset Flex MenuItem
1210 status collapsed
1211
1212 \begin_layout Plain Layout
1213
1214 \family sans
1215 挿入\SpecialChar menuseparator
1216 TeXコード
1217 \end_layout
1218
1219 \end_inset
1220
1221
1222 \family roman
1223 \series medium
1224 \shape up
1225 \size normal
1226 \emph off
1227 \bar no
1228 \noun off
1229 \color none
1230 若しくは
1231 \family default
1232 \series default
1233 \shape default
1234 \size default
1235 \emph default
1236 \bar default
1237 \noun default
1238 \color inherit
1239
1240 \begin_inset Flex Ruby
1241 status collapsed
1242
1243 \begin_layout Plain Layout
1244
1245 \family roman
1246 \series medium
1247 \shape up
1248 \size normal
1249 \emph off
1250 \bar no
1251 \noun off
1252 \color none
1253 捷径
1254 \family default
1255 \series default
1256 \shape default
1257 \size default
1258 \emph default
1259 \bar default
1260 \noun default
1261 \color inherit
1262
1263 \begin_inset Argument post:1
1264 status collapsed
1265
1266 \begin_layout Plain Layout
1267 ショートカット
1268 \end_layout
1269
1270 \end_inset
1271
1272
1273 \end_layout
1274
1275 \end_inset
1276
1277
1278 \begin_inset Flex Ruby
1279 status collapsed
1280
1281 \begin_layout Plain Layout
1282
1283 \family roman
1284 \series medium
1285 \shape up
1286 \size normal
1287 \emph off
1288 \bar no
1289 \noun off
1290 \color none
1291
1292 \begin_inset Argument post:1
1293 status collapsed
1294
1295 \begin_layout Plain Layout
1296 キー
1297 \end_layout
1298
1299 \end_inset
1300
1301
1302 \end_layout
1303
1304 \end_inset
1305
1306
1307 \begin_inset Info
1308 type  "shortcut"
1309 arg   "ert-insert"
1310 \end_inset
1311
1312
1313 \family roman
1314 \series medium
1315 \shape up
1316 \size normal
1317 \emph off
1318 \bar no
1319 \noun off
1320 \color none
1321 で,文書中に挿入することができます.
1322 \end_layout
1323
1324 \begin_layout Standard
1325 以下は,\SpecialChar LaTeX
1326 コマンドを\SpecialChar LyX
1327 文書中に挿入する例です.コードは以下のようになっているとしましょう.
1328 \end_layout
1329
1330 \begin_layout LyX-Code
1331
1332 \backslash
1333 begin{tabular}{ll}
1334 \begin_inset Newline newline
1335 \end_inset
1336
1337
1338 \backslash
1339 begin{minipage}{5cm}
1340 \begin_inset Newline newline
1341 \end_inset
1342
1343 これは,ミニページ環境の例です.
1344 \begin_inset Newline newline
1345 \end_inset
1346
1347 これには,
1348 \begin_inset Newline newline
1349 \end_inset
1350
1351 (フロートでない)図表を
1352 \begin_inset Newline newline
1353 \end_inset
1354
1355 含め,ほとんど何でも
1356 \begin_inset Newline newline
1357 \end_inset
1358
1359 入れることができます. 
1360 \begin_inset Newline newline
1361 \end_inset
1362
1363
1364 \backslash
1365 end{minipage}
1366 \begin_inset Newline newline
1367 \end_inset
1368
1369 &
1370 \begin_inset Newline newline
1371 \end_inset
1372
1373
1374 \backslash
1375 begin{minipage}{5cm}
1376 \begin_inset Newline newline
1377 \end_inset
1378
1379
1380 \backslash
1381 begin{verbatim}
1382 \begin_inset Newline newline
1383 \end_inset
1384
1385
1386 \backslash
1387 begin{minipage}{5cm}
1388 \begin_inset Newline newline
1389 \end_inset
1390
1391 これは...
1392  
1393 \begin_inset Newline newline
1394 \end_inset
1395
1396
1397 \backslash
1398 end{minipage}
1399 \begin_inset Newline newline
1400 \end_inset
1401
1402
1403 \backslash
1404 end{verbatim}
1405 \begin_inset Newline newline
1406 \end_inset
1407
1408
1409 \backslash
1410 end{minipage}
1411 \begin_inset Newline newline
1412 \end_inset
1413
1414
1415 \backslash
1416 end{tabular}
1417 \end_layout
1418
1419 \begin_layout LyX-Code
1420
1421 \end_layout
1422
1423 \begin_layout Standard
1424 上記のテキストを含んだ
1425 \begin_inset Flex Code
1426 status collapsed
1427
1428 \begin_layout Plain Layout
1429 \SpecialChar TeX
1430 コード
1431 \end_layout
1432
1433 \end_inset
1434
1435 ボックスが,この段落の直後にあります.この取扱説明書を\SpecialChar LyX
1436 上でご覧になっていれば,\SpecialChar TeX
1437 コード差込枠のみが見えるはずです.印刷した取扱説明書をご覧であれば,実際の結果が見
1438 れるはずです.
1439 \end_layout
1440
1441 \begin_layout Standard
1442 \begin_inset VSpace bigskip
1443 \end_inset
1444
1445
1446 \begin_inset ERT
1447 status open
1448
1449 \begin_layout Plain Layout
1450
1451
1452 \backslash
1453 begin{tabular}{ll}
1454 \end_layout
1455
1456 \begin_layout Plain Layout
1457
1458
1459 \backslash
1460 begin{minipage}{5cm}
1461 \end_layout
1462
1463 \begin_layout Plain Layout
1464
1465 これは,ミニページ環境の例です.これには,(フロートでない)図表を含め,ほとんど何でも入れることができます. 
1466 \backslash
1467 end{minipage}
1468 \end_layout
1469
1470 \begin_layout Plain Layout
1471
1472 &
1473 \end_layout
1474
1475 \begin_layout Plain Layout
1476
1477
1478 \backslash
1479 begin{minipage}{5cm}
1480 \end_layout
1481
1482 \begin_layout Plain Layout
1483
1484
1485 \backslash
1486 begin{verbatim}
1487 \end_layout
1488
1489 \begin_layout Plain Layout
1490
1491
1492 \backslash
1493 begin{minipage}{5cm}
1494 \end_layout
1495
1496 \begin_layout Plain Layout
1497
1498 これは...
1499  
1500 \backslash
1501 end{minipage}
1502 \end_layout
1503
1504 \begin_layout Plain Layout
1505
1506
1507 \backslash
1508 end{verbatim}
1509 \end_layout
1510
1511 \begin_layout Plain Layout
1512
1513
1514 \backslash
1515 end{minipage}
1516 \end_layout
1517
1518 \begin_layout Plain Layout
1519
1520
1521 \backslash
1522 end{tabular}
1523 \end_layout
1524
1525 \end_inset
1526
1527
1528 \begin_inset VSpace bigskip
1529 \end_inset
1530
1531
1532 \end_layout
1533
1534 \begin_layout Standard
1535
1536 \family roman
1537 \series medium
1538 \shape up
1539 \size normal
1540 \emph off
1541 \bar no
1542 \noun off
1543 \color none
1544 \SpecialChar TeX
1545 コードを使用する方法に加えて,複雑な\SpecialChar LaTeX
1546 コードを含む部分を別ファイルとして作成しておき,そのファイルをインクルードするのに
1547 \begin_inset Flex MenuItem
1548 status collapsed
1549
1550 \begin_layout Plain Layout
1551
1552 \family roman
1553 \series medium
1554 \shape up
1555 \size normal
1556 \emph off
1557 \bar no
1558 \noun off
1559 \color none
1560 挿入\SpecialChar menuseparator
1561 ファイル\SpecialChar menuseparator
1562 子文書
1563 \end_layout
1564
1565 \end_inset
1566
1567 を使用する方法もあります(取り込みの型として
1568 \begin_inset Flex Code
1569 status collapsed
1570
1571 \begin_layout Plain Layout
1572
1573 \family roman
1574 \series medium
1575 \shape up
1576 \size normal
1577 \emph off
1578 \bar no
1579 \noun off
1580 \color none
1581 Input
1582 \end_layout
1583
1584 \end_inset
1585
1586 を選択しなくてはなりません).この方法をとる場合には,.texファイルが正しく動作することが
1587 \family default
1588 \series default
1589 \shape default
1590 \size default
1591 \emph on
1592 \bar default
1593 \noun default
1594 \color inherit
1595 確認できている
1596 \family roman
1597 \series medium
1598 \shape up
1599 \size normal
1600 \emph off
1601 \bar no
1602 \noun off
1603 \color none
1604 場合のみに限った方がよいでしょう.さもないと,\SpecialChar LaTeX
1605 エラーを追跡するたいへんな作業を行わなくてはならなくなります.
1606 \end_layout
1607
1608 \begin_layout Standard
1609
1610 \family roman
1611 \series medium
1612 \shape up
1613 \size normal
1614 \emph off
1615 \bar no
1616 \noun off
1617 \color none
1618 最後に,いくつか強調しておくべきことがあります.
1619 \end_layout
1620
1621 \begin_layout Itemize
1622
1623 \family roman
1624 \series medium
1625 \shape up
1626 \size normal
1627 \emph off
1628 \bar no
1629 \noun off
1630 \color none
1631 \SpecialChar LyX
1632 は,あなたの\SpecialChar LaTeX
1633 コードが正しいかどうかを
1634 \family default
1635 \series default
1636 \shape default
1637 \size default
1638 \emph on
1639 \bar default
1640 \noun default
1641 \color inherit
1642 チェックしません
1643 \family roman
1644 \series medium
1645 \shape up
1646 \size normal
1647 \emph off
1648 \bar no
1649 \noun off
1650 \color none
1651
1652 \end_layout
1653
1654 \begin_layout Itemize
1655
1656 \family roman
1657 \series medium
1658 \shape up
1659 \size normal
1660 \emph off
1661 \bar no
1662 \noun off
1663 \color none
1664 車輪の再発明をしないようにご注意ください.
1665 \end_layout
1666
1667 \begin_layout Standard
1668
1669 \family roman
1670 \series medium
1671 \shape up
1672 \size normal
1673 \emph off
1674 \bar no
1675 \noun off
1676 \color none
1677 二番目の点に関して,\SpecialChar LyX
1678 はひじょうにたくさんの機能を装備しており,その数は増えつづけています.ご自身で\SpecialChar LaTeX
1679 コードを書かなくてはならないと思い込む前に,LyXがこれこれの
1680 機能をもっていないことを,取扱説明書で確実に確かめてください.さらに世の中には,封筒のラベルから美しい複数ページにわたる表を作るものまで,ありとあらゆることを行
1681 う膨大な数の\SpecialChar LaTeX
1682 パッケージが存在します.
1683 \family default
1684 \series default
1685 \shape default
1686 \size default
1687 \emph default
1688 \bar default
1689 \noun default
1690 \color inherit
1691 詳細については,
1692 \begin_inset CommandInset href
1693 LatexCommand href
1694 name "CTAN"
1695 target "http://www.ctan.org/"
1696 literal "false"
1697
1698 \end_inset
1699
1700
1701 \family roman
1702 \series medium
1703 \shape up
1704 \size normal
1705 \emph off
1706 \bar no
1707 \noun off
1708 \color none
1709 と第
1710 \begin_inset CommandInset ref
1711 LatexCommand ref
1712 reference "chap:Special-features"
1713
1714 \end_inset
1715
1716 節をご覧ください.
1717 \end_layout
1718
1719 \begin_layout Standard
1720
1721 \family roman
1722 \series medium
1723 \shape up
1724 \size normal
1725 \emph off
1726 \bar no
1727 \noun off
1728 \color none
1729 もし,文書中で例外的に手の込んだことをなさりたければ,かならず良い\SpecialChar LaTeX
1730 関連書籍を参考とするようにしてください.『
1731 \family default
1732 \series default
1733 \shape default
1734 \size default
1735 \emph on
1736 \bar default
1737 \noun default
1738 \color inherit
1739 ユーザーの手引き
1740 \family roman
1741 \series medium
1742 \shape up
1743 \size normal
1744 \emph off
1745 \bar no
1746 \noun off
1747 \color none
1748 』の書誌情報に多くの\SpecialChar LaTeX
1749 関連書籍が引用されています.
1750 \end_layout
1751
1752 \begin_layout Section
1753 \SpecialChar LyX
1754 と\SpecialChar LaTeX
1755 プリアンブル
1756 \end_layout
1757
1758 \begin_layout Subsection
1759 \SpecialChar LaTeX
1760 プリアンブルについて
1761 \end_layout
1762
1763 \begin_layout Standard
1764
1765 \family roman
1766 \series medium
1767 \shape up
1768 \size normal
1769 \emph off
1770 \bar no
1771 \noun off
1772 \color none
1773 すでに\SpecialChar LaTeX
1774 についてご存知であれば,ここでプリアンブル(前置文)が何に向いているか説明する必要はないでしょう.もしご存じなければ,以下の説明で大まかな理解は得られるは
1775 ずです.詳しくは\SpecialChar LaTeX
1776 関連書籍をご参照ください.いずれにしても,以下で\SpecialChar LyX
1777 文書の\SpecialChar LaTeX
1778 プリアンブルで何ができるか,または何をする必要がないか説明をしますので,以下の各要点はお読
1779 みになった方が良いでしょう.
1780 \end_layout
1781
1782 \begin_layout Standard
1783
1784 \family roman
1785 \series medium
1786 \shape up
1787 \size normal
1788 \emph off
1789 \bar no
1790 \noun off
1791 \color none
1792 \SpecialChar LaTeX
1793 プリアンブルは,\SpecialChar LaTeX
1794 文書のいちばん始め,本文の
1795 \family default
1796 \series default
1797 \shape default
1798 \size default
1799 \emph on
1800 \bar default
1801 \noun default
1802 \color inherit
1803
1804 \family roman
1805 \series medium
1806 \shape up
1807 \size normal
1808 \emph off
1809 \bar no
1810 \noun off
1811 \color none
1812 の部分に来ます.ここでは以下のことを行います.
1813 \end_layout
1814
1815 \begin_layout Itemize
1816
1817 \family roman
1818 \series medium
1819 \shape up
1820 \size normal
1821 \emph off
1822 \bar no
1823 \noun off
1824 \color none
1825 文書クラス(ドキュメントクラス)の宣言.
1826 \begin_inset Newline newline
1827 \end_inset
1828
1829 これは\SpecialChar LyX
1830 がすでに行ってくれています.もしあなたが熟達した\SpecialChar LaTeX
1831 使いであり,自作の文書クラスを使いたい場合には,取扱説明書『
1832 \family default
1833 \series default
1834 \shape default
1835 \size default
1836 \emph on
1837 \bar default
1838 \noun default
1839 \color inherit
1840 カスタマイズ篇
1841 \family roman
1842 \series medium
1843 \shape up
1844 \size normal
1845 \emph off
1846 \bar no
1847 \noun off
1848 \color none
1849 』をご覧になれば,\SpecialChar LyX
1850 に自作文書クラスへの仲介を行わせるにはどうすればよいかの情報があります.
1851 \end_layout
1852
1853 \begin_layout Itemize
1854
1855 \family roman
1856 \series medium
1857 \shape up
1858 \size normal
1859 \emph off
1860 \bar no
1861 \noun off
1862 \color none
1863 パッケージ使用の宣言.
1864 \begin_inset Newline newline
1865 \end_inset
1866
1867 \SpecialChar LaTeX
1868 パッケージは,パッケージがプリアンブルで宣言された場合のみ,文書中で利用可能となる,追加コマンド群を提供します.パッケージをインクルードすると,特別なコマンドが
1869 提供されることに加え,文書に変更を加えることができます.例えば
1870 \family typewriter
1871 \series default
1872 \shape default
1873 \size default
1874 \emph default
1875 \bar default
1876 \noun default
1877 \color inherit
1878
1879 \family roman
1880 \series medium
1881 \shape up
1882 \size normal
1883 \emph off
1884 \bar no
1885 \noun off
1886 \color none
1887
1888 \begin_inset Flex Code
1889 status collapsed
1890
1891 \begin_layout Plain Layout
1892
1893 \family typewriter
1894 indentfirst
1895 \end_layout
1896
1897 \end_inset
1898
1899 パッケージは,すべての段落の最初の行を字下げします.他にも,ラベルや宛名書き,余白設定等の様々なパッケージがあります.
1900 \end_layout
1901
1902 \begin_layout Itemize
1903
1904 \family roman
1905 \series medium
1906 \shape up
1907 \size normal
1908 \emph off
1909 \bar no
1910 \noun off
1911 \color none
1912 カウンタ・変数・長さ・幅の設定.
1913 \begin_inset Newline newline
1914 \end_inset
1915
1916 \SpecialChar LaTeX
1917 のカウンタと変数の中には,プリアンブルでグローバルに
1918 \family default
1919 \series default
1920 \shape default
1921 \size default
1922 \emph default
1923 \bar default
1924 \noun default
1925 \color inherit
1926 設定
1927 \emph on
1928 しないかぎり
1929 \family roman
1930 \series medium
1931 \shape up
1932 \size normal
1933 \emph off
1934 \bar no
1935 \noun off
1936 \color none
1937 ,望んだ効果を持たないものがあります.(文書中で設定したり再設定したりすることのできる変数もあります.)余白は,プリアンブルで設定しなくてはならない変数の代表例
1938 です.他には,箇条書きに付けるラベル書式が挙げられます.じつは,この設定は文書中どこでもできるのですが,プリアンブルでいちどだけ設定するのが望ましい方法です.
1939 \end_layout
1940
1941 \begin_layout Itemize
1942
1943 \family roman
1944 \series medium
1945 \shape up
1946 \size normal
1947 \emph off
1948 \bar no
1949 \noun off
1950 \color none
1951 ユーザー定義コマンドの宣言(
1952 \begin_inset Flex Code
1953 status collapsed
1954
1955 \begin_layout Plain Layout
1956
1957 \family roman
1958 \series medium
1959 \shape up
1960 \size normal
1961 \emph off
1962 \bar no
1963 \noun off
1964 \color none
1965
1966 \backslash
1967 newcommand
1968 \end_layout
1969
1970 \end_inset
1971
1972 または
1973 \begin_inset Flex Code
1974 status collapsed
1975
1976 \begin_layout Plain Layout
1977
1978 \family roman
1979 \series medium
1980 \shape up
1981 \size normal
1982 \emph off
1983 \bar no
1984 \noun off
1985 \color none
1986
1987 \backslash
1988 renewcommand
1989 \end_layout
1990
1991 \end_inset
1992
1993 を使用).
1994 \begin_inset Newline newline
1995 \end_inset
1996
1997 ユーザー定義コマンドは,文書中で頻出する\SpecialChar LaTeX
1998 コマンドの短縮形です.このようなコマンドを宣言するには,プリアンブルが適した場所ですが,どこで宣言することも
1999 \family default
2000 \series default
2001 \shape default
2002 \size default
2003 \emph on
2004 \bar default
2005 \noun default
2006 \color inherit
2007 可能
2008 \family roman
2009 \series medium
2010 \shape up
2011 \size normal
2012 \emph off
2013 \bar no
2014 \noun off
2015 \color none
2016 です(もちろんコマンドが初めて使用される場所よりも前です).あまりないことではありますが,お使いの文書中に生の\SpecialChar LaTeX
2017 コードがあふれている場合には便利でしょう.
2018 \end_layout
2019
2020 \begin_layout Standard
2021
2022 \family roman
2023 \series medium
2024 \shape up
2025 \size normal
2026 \emph off
2027 \bar no
2028 \noun off
2029 \color none
2030 \SpecialChar LyX
2031 は,その生成する
2032 \begin_inset Flex Code
2033 status collapsed
2034
2035 \begin_layout Plain Layout
2036
2037 \family roman
2038 \series medium
2039 \shape up
2040 \size normal
2041 \emph off
2042 \bar no
2043 \noun off
2044 \color none
2045 .tex
2046 \end_layout
2047
2048 \end_inset
2049
2050 ファイルのプリアンブルに,それ自身の定義を追加します.これによって,\SpecialChar LyX
2051 の生成する\SpecialChar LaTeX
2052 ファイルの可搬性を高めています.
2053 \end_layout
2054
2055 \begin_layout Subsection
2056 プリアンブルの変更
2057 \end_layout
2058
2059 \begin_layout Standard
2060
2061 \family roman
2062 \series medium
2063 \shape up
2064 \size normal
2065 \emph off
2066 \bar no
2067 \noun off
2068 \color none
2069 \SpecialChar LyX
2070 が\SpecialChar LaTeX
2071 ファイルのプリアンブルに追加するコマンドは,つねに同じです.これは,\SpecialChar LyX
2072 自体にパッチを当てないかぎり変更できないようになっています.しかしながら,
2073 \begin_inset Flex MenuItem
2074 status collapsed
2075
2076 \begin_layout Plain Layout
2077
2078 \family roman
2079 \series medium
2080 \shape up
2081 \size normal
2082 \emph off
2083 \bar no
2084 \noun off
2085 \color none
2086 文書\SpecialChar menuseparator
2087 設定
2088 \end_layout
2089
2090 \end_inset
2091
2092 ダイアログの
2093 \begin_inset Flex MenuItem
2094 status collapsed
2095
2096 \begin_layout Plain Layout
2097
2098 \family roman
2099 \series medium
2100 \shape up
2101 \size normal
2102 \emph off
2103 \bar no
2104 \noun off
2105 \color none
2106 \SpecialChar LaTeX
2107 プリアンブル
2108 \end_layout
2109
2110 \end_inset
2111
2112 の項から,プリアンブルに追加をすることはできます.\SpecialChar LyX
2113 は,
2114 \family sans
2115 \series default
2116 \shape default
2117 \size default
2118 \emph default
2119 \bar default
2120 \noun default
2121 \color inherit
2122
2123 \begin_inset Flex MenuItem
2124 status collapsed
2125
2126 \begin_layout Plain Layout
2127
2128 \family sans
2129 プリアンブル
2130 \end_layout
2131
2132 \end_inset
2133
2134
2135 \family roman
2136 \series medium
2137 \shape up
2138 \size normal
2139 \emph off
2140 \bar no
2141 \noun off
2142 \color none
2143 ダイアログ内のすべてのものを,\SpecialChar LyX
2144 埋込みのプリアンブルに付け加えます.ご自身の宣言をプリアンブルに追加する前に,あなたがしようとしていることを\SpecialChar LyX
2145 がすでにサポートしてい
2146 ないかどうか確認してください(車輪の再発明をしないように,とはすでに申しあげたことです).
2147 \family default
2148 \series default
2149 \shape default
2150 \size default
2151 \emph default
2152 \bar default
2153 \noun default
2154 \color inherit
2155 また,
2156 \emph on
2157 プリアンブルコードが正しいことを確認してください.
2158 \emph default
2159 \SpecialChar LyX
2160 は,プリアンブルをチェックしません.
2161 \family roman
2162 \series medium
2163 \shape up
2164 \size normal
2165 \emph off
2166 \bar no
2167 \noun off
2168 \color none
2169 もしエラーがあれば,「
2170 \begin_inset Flex Code
2171 status collapsed
2172
2173 \begin_layout Plain Layout
2174
2175 \family roman
2176 \series medium
2177 \shape up
2178 \size normal
2179 \emph off
2180 \bar no
2181 \noun off
2182 \color none
2183 Missing 
2184 \backslash
2185 begin{document}
2186 \end_layout
2187
2188 \end_inset
2189
2190 」といったエラーが出ることでしょう.このようなエラーが出たときは,プリアンブルを再確認してください.
2191 \end_layout
2192
2193 \begin_layout Subsection
2194
2195 \end_layout
2196
2197 \begin_layout Standard
2198
2199 \family roman
2200 \series medium
2201 \shape up
2202 \size normal
2203 \emph off
2204 \bar no
2205 \noun off
2206 \color none
2207 以下は,プリアンブルに追加できるものとその効果を示す例です.
2208 \end_layout
2209
2210 \begin_layout Subsubsection
2211 例1:オフセット
2212 \end_layout
2213
2214 \begin_layout Standard
2215
2216 \family roman
2217 \series medium
2218 \shape up
2219 \size normal
2220 \emph off
2221 \bar no
2222 \noun off
2223 \color none
2224 \SpecialChar LaTeX
2225 には
2226 \family default
2227 \series default
2228 \shape default
2229 \size default
2230 \emph default
2231 \bar default
2232 \noun default
2233 \color inherit
2234
2235 \family roman
2236 \series medium
2237 \shape up
2238 \size normal
2239 \emph off
2240 \bar no
2241 \noun off
2242 \color none
2243
2244 \begin_inset Flex Code
2245 status collapsed
2246
2247 \begin_layout Plain Layout
2248
2249 \family typewriter
2250
2251 \backslash
2252 hoffset
2253 \end_layout
2254
2255 \end_inset
2256
2257
2258 \family typewriter
2259 \series default
2260 \shape default
2261 \size default
2262 \emph default
2263 \bar default
2264 \noun default
2265 \color inherit
2266
2267 \begin_inset Flex Code
2268 status collapsed
2269
2270 \begin_layout Plain Layout
2271
2272 \family typewriter
2273
2274 \backslash
2275 voffset
2276 \end_layout
2277
2278 \end_inset
2279
2280
2281 \family roman
2282 \series medium
2283 \shape up
2284 \size normal
2285 \emph off
2286 \bar no
2287 \noun off
2288 \color none
2289 というページ位置を制御する2つの変数があります.その機能は名前から明らかなとおりです.これらの変数は,ラベルを印刷するときなどに便利です.往々にして,印刷用紙の
2290 寸法とそのうち実際に印字可能な範囲は同じではありません.ここに
2291 \begin_inset Flex Code
2292 status collapsed
2293
2294 \begin_layout Plain Layout
2295
2296 \family typewriter
2297
2298 \backslash
2299 hoffset
2300 \end_layout
2301
2302 \end_inset
2303
2304
2305 \family typewriter
2306 \series default
2307 \shape default
2308 \size default
2309 \emph default
2310 \bar default
2311 \noun default
2312 \color inherit
2313
2314 \begin_inset Flex Code
2315 status collapsed
2316
2317 \begin_layout Plain Layout
2318
2319 \family typewriter
2320
2321 \backslash
2322 voffset
2323 \end_layout
2324
2325 \end_inset
2326
2327
2328 \family default
2329 が役立つわけです.
2330 \end_layout
2331
2332 \begin_layout Standard
2333
2334 \family roman
2335 \series medium
2336 \shape up
2337 \size normal
2338 \emph off
2339 \bar no
2340 \noun off
2341 \color none
2342 \begin_inset Flex Code
2343 status collapsed
2344
2345 \begin_layout Plain Layout
2346
2347 \family typewriter
2348
2349 \backslash
2350 hoffset
2351 \end_layout
2352
2353 \end_inset
2354
2355
2356 \family typewriter
2357 \series default
2358 \shape default
2359 \size default
2360 \emph default
2361 \bar default
2362 \noun default
2363 \color inherit
2364
2365 \begin_inset Flex Code
2366 status collapsed
2367
2368 \begin_layout Plain Layout
2369
2370 \family typewriter
2371
2372 \backslash
2373 voffset
2374 \end_layout
2375
2376 \end_inset
2377
2378
2379 \family roman
2380 \series medium
2381 \shape up
2382 \size normal
2383 \emph off
2384 \bar no
2385 \noun off
2386 \color none
2387 の既定値はともに0ポイント,つまりページをシフトしません.残念ながら,DVIドライバによってはつねにページをシフトすることがあるようです.我々には,どうしてその
2388 ようなことをするのか,そしてシスアドがどうしてそれを修正しないのか理解できませんが,もし個人的に管理できないシステムで\SpecialChar LyX
2389 を使用していて,シスアドがお馬鹿さんである
2390 場合には,
2391 \begin_inset Flex Code
2392 status collapsed
2393
2394 \begin_layout Plain Layout
2395
2396 \family typewriter
2397
2398 \backslash
2399 hoffset
2400 \end_layout
2401
2402 \end_inset
2403
2404
2405 \family typewriter
2406 \series default
2407 \shape default
2408 \size default
2409 \emph default
2410 \bar default
2411 \noun default
2412 \color inherit
2413
2414 \begin_inset Flex Code
2415 status collapsed
2416
2417 \begin_layout Plain Layout
2418
2419 \family typewriter
2420
2421 \backslash
2422 voffset
2423 \end_layout
2424
2425 \end_inset
2426
2427
2428 \family roman
2429 \series medium
2430 \shape up
2431 \size normal
2432 \emph off
2433 \bar no
2434 \noun off
2435 \color none
2436 が役に立ちます.かりに,上余白と左余白がつねに0.5インチずつ大きすぎるものとしましょう.その場合は,以下をプリアンブルに追加するとよいでしょう.
2437 \end_layout
2438
2439 \begin_layout LyX-Code
2440
2441 \backslash
2442 setlength{
2443 \backslash
2444 hoffset}{-0.5 in}
2445 \end_layout
2446
2447 \begin_layout LyX-Code
2448
2449 \backslash
2450 setlength{
2451 \backslash
2452 voffset}{-0.5 in}
2453 \end_layout
2454
2455 \begin_layout Standard
2456
2457 \family roman
2458 \series medium
2459 \shape up
2460 \size normal
2461 \emph off
2462 \bar no
2463 \noun off
2464 \color none
2465 これで余白が修正されます.
2466 \end_layout
2467
2468 \begin_layout Subsubsection
2469 例2:ラベル
2470 \end_layout
2471
2472 \begin_layout Standard
2473
2474 \family roman
2475 \series medium
2476 \shape up
2477 \size normal
2478 \emph off
2479 \bar no
2480 \noun off
2481 \color none
2482 いま,たくさんの宛名ラベルを印刷をしたいものとしましょう.ラベルシートを印刷するために便利な
2483 \begin_inset Flex Code
2484 status collapsed
2485
2486 \begin_layout Plain Layout
2487
2488 \family typewriter
2489 labels.sty
2490 \end_layout
2491
2492 \end_inset
2493
2494 という\SpecialChar LaTeX
2495 パッケージが,お近くのCTANアーカイブで入手可能です.お使いのシステムには,既定ではこのパッケージは導入されていないかもしれません.ご自身でお確かめくだ
2496 さい.また,このパッケージの取扱説明書を読まれたいかもしれませんが,それもご自身にお任せします.これは使用例ですので,このパッケージをどう使うかの例だけお見せす
2497 ることにします.
2498 \end_layout
2499
2500 \begin_layout Standard
2501
2502 \family roman
2503 \series medium
2504 \shape up
2505 \size normal
2506 \emph off
2507 \bar no
2508 \noun off
2509 \color none
2510 まず,
2511 \begin_inset Flex Code
2512 status collapsed
2513
2514 \begin_layout Plain Layout
2515
2516 \family sans
2517 article
2518 \end_layout
2519
2520 \end_inset
2521
2522 文書クラスを使用していることをご確認ください.次に,以下のような設定をプリアンブルに追加しなければなりません.
2523 \end_layout
2524
2525 \begin_layout LyX-Code
2526
2527 \backslash
2528 usepackage{labels}
2529 \end_layout
2530
2531 \begin_layout LyX-Code
2532
2533 \backslash
2534 LabelCols=3
2535 \end_layout
2536
2537 \begin_layout LyX-Code
2538
2539 \backslash
2540 LabelRows=7
2541 \end_layout
2542
2543 \begin_layout LyX-Code
2544
2545 \backslash
2546 LeftBorder=8mm
2547 \end_layout
2548
2549 \begin_layout LyX-Code
2550
2551 \backslash
2552 RightBorder=8mm
2553 \end_layout
2554
2555 \begin_layout LyX-Code
2556
2557 \backslash
2558 TopBorder=9mm
2559 \end_layout
2560
2561 \begin_layout LyX-Code
2562
2563 \backslash
2564 BottomBorder=2mm
2565 \end_layout
2566
2567 \begin_layout Standard
2568
2569 \family roman
2570 \series medium
2571 \shape up
2572 \size normal
2573 \emph off
2574 \bar no
2575 \noun off
2576 \color none
2577 これは
2578 \family default
2579 \series default
2580 \shape default
2581 \size default
2582 \emph default
2583 \bar default
2584 \noun default
2585 \color inherit
2586 Averyラベルシートのストック5360
2587 \family roman
2588 \series medium
2589 \shape up
2590 \size normal
2591 \emph off
2592 \bar no
2593 \noun off
2594 \color none
2595 番を使用する場合の設定です.これで,各宛名を
2596 \begin_inset Flex Code
2597 status collapsed
2598
2599 \begin_layout Plain Layout
2600
2601 \family typewriter
2602
2603 \backslash
2604 begin{labels}
2605 \end_layout
2606
2607 \end_inset
2608
2609
2610 \family typewriter
2611 \series default
2612 \shape default
2613 \size default
2614 \emph default
2615 \bar default
2616 \noun default
2617 \color inherit
2618
2619 \begin_inset Flex Code
2620 status collapsed
2621
2622 \begin_layout Plain Layout
2623
2624 \family typewriter
2625
2626 \backslash
2627 end{labels}
2628 \end_layout
2629
2630 \end_inset
2631
2632
2633 \family roman
2634 \series medium
2635 \shape up
2636 \size normal
2637 \emph off
2638 \bar no
2639 \noun off
2640 \color none
2641 で囲めば,宛名ラベルの印刷をすることができます.本機能およびその他の機能に関しては,
2642 \begin_inset Flex Code
2643 status collapsed
2644
2645 \begin_layout Plain Layout
2646
2647 \family typewriter
2648 labels.sty
2649 \end_layout
2650
2651 \end_inset
2652
2653 の取扱説明書に説明されています.
2654 \end_layout
2655
2656 \begin_layout Standard
2657
2658 \family roman
2659 \series medium
2660 \shape up
2661 \size normal
2662 \emph off
2663 \bar no
2664 \noun off
2665 \color none
2666 そのうち誰かが,このパッケージを直接サポートする\SpecialChar LyX
2667 レイアウトファイルを作ってくれるかもしれません.その誰かはあなたかもしれません.
2668 \end_layout
2669
2670 \begin_layout Subsubsection
2671 例3: 段落の字下げ
2672 \end_layout
2673
2674 \begin_layout Standard
2675
2676 \family roman
2677 \series medium
2678 \shape up
2679 \size normal
2680 \emph off
2681 \bar no
2682 \noun off
2683 \color none
2684 アメリカ人は
2685 \family default
2686 \series default
2687 \shape default
2688 \size default
2689 \emph default
2690 \bar default
2691 \noun default
2692 \color inherit
2693
2694 \emph on
2695 すべての
2696 \family roman
2697 \series medium
2698 \shape up
2699 \size normal
2700 \emph off
2701 \bar no
2702 \noun off
2703 \color none
2704 段落の最初の行を字下げするように教育されています.そのために彼らの他の変な習慣と同じく,いつものようにすべての段落の最初の行を下げるまで,アメリカ人はごちゃごち
2705 ゃと文句を言いつづけるのです
2706 \family default
2707 \series default
2708 \shape default
2709 \size default
2710 \emph default
2711 \bar default
2712 \noun default
2713 \color inherit
2714 .(これはユーモアです.(ほんと?)
2715 \emph on
2716 ユーモアですってば
2717 \emph default
2718 .)
2719 \end_layout
2720
2721 \begin_layout Standard
2722
2723 \family roman
2724 \series medium
2725 \shape up
2726 \size normal
2727 \emph off
2728 \bar no
2729 \noun off
2730 \color none
2731 もちろん,これは標準的な組版ルールではありません.書籍では,典型的には,他の段落のあとにくる段落
2732 \family default
2733 \series default
2734 \shape default
2735 \size default
2736 \emph on
2737 \bar default
2738 \noun default
2739 \color inherit
2740 のみ
2741 \family roman
2742 \series medium
2743 \shape up
2744 \size normal
2745 \emph off
2746 \bar no
2747 \noun off
2748 \color none
2749 字下げを行ないます.一行めを字下げをするそもそもの目的は,隣接する段落から区別するためです.したがって,図のあとや節の最初の段落など,先行する段落がない場合には
2750 ,字下げをする必要はないのです.
2751 \end_layout
2752
2753 \begin_layout Standard
2754
2755 \family roman
2756 \series medium
2757 \shape up
2758 \size normal
2759 \emph off
2760 \bar no
2761 \noun off
2762 \color none
2763 けれどもあなたが典型的なアメリカ人なら(ユーーモアですって!),そのような小難しいことはかまわずに,いつもどおりの字下げをせずにはいられないでしょう!プリアンブ
2764 ルに次の行を加えて下さい.
2765 \end_layout
2766
2767 \begin_layout LyX-Code
2768
2769 \backslash
2770 usepackage{indentfirst}
2771 \end_layout
2772
2773 \begin_layout Standard
2774
2775 \family roman
2776 \series medium
2777 \shape up
2778 \size normal
2779 \emph off
2780 \bar no
2781 \noun off
2782 \color none
2783 もしお使いの\SpecialChar TeX
2784 頒布版が脳死状態でなければ,このパッケージが入っているはずなので,建国の父たちが意図したように,すべての段落が字下げされます.
2785 \end_layout
2786
2787 \begin_layout Subsubsection
2788 例4:この文書
2789 \end_layout
2790
2791 \begin_layout Standard
2792
2793 \family roman
2794 \series medium
2795 \shape up
2796 \size normal
2797 \emph off
2798 \bar no
2799 \noun off
2800 \color none
2801 この文書のプリアンブルを見てみると,どのような高度な設定ができるか,おおまかな理解が得られるでしょう.また第
2802 \family default
2803 \series default
2804 \shape default
2805 \size default
2806 \emph default
2807 \bar default
2808 \noun default
2809 \color inherit
2810
2811 \begin_inset CommandInset ref
2812 LatexCommand ref
2813 reference "chap:Special-features"
2814
2815 \end_inset
2816
2817
2818 \family roman
2819 \series medium
2820 \shape up
2821 \size normal
2822 \emph off
2823 \bar no
2824 \noun off
2825 \color none
2826 章には,他の例や,\SpecialChar LaTeX
2827 の各種の「汚い技」があります.
2828 \end_layout
2829
2830 \begin_layout Section
2831 \SpecialChar LyX
2832 および\SpecialChar LaTeX
2833 のエラー
2834 \end_layout
2835
2836 \begin_layout Standard
2837
2838 \family roman
2839 \series medium
2840 \shape up
2841 \size normal
2842 \emph off
2843 \bar no
2844 \noun off
2845 \color none
2846 \SpecialChar LyX
2847 が\SpecialChar LaTeX
2848 を呼び出す際,\SpecialChar LyX
2849 は\SpecialChar LaTeX
2850 に,かりにエラーがあったとしても楽観的に無視して先に進むように指示します.その後\SpecialChar LyX
2851 は,\SpecialChar LaTeX
2852 の実行ログファイルを事後処理用に使います.ログファイルを分
2853 析したのち,\SpecialChar LyX
2854 はエラーを一覧表示するダイアログを表示します.エラーのうちどれかをクリックすると,\SpecialChar LyX
2855 ファイル中,そのエラーの発生した場所に表示を移動します
2856 \begin_inset Foot
2857 status collapsed
2858
2859 \begin_layout Plain Layout
2860
2861 \family roman
2862 \series medium
2863 \shape up
2864 \size normal
2865 \emph off
2866 \bar no
2867 \noun off
2868 \color none
2869 正確にいうと,通常は,です.ログファイルの分析は難しい仕事ですので,\SpecialChar LyX
2870 はつねに正しい行に連れて行ってくれるとは限りません.ときには,\SpecialChar LaTeX
2871 がある行にエラーがあると報告し
2872 たとしても,実際のエラーはそれよりも前であることもあります.これは,プログラムで閉じ括弧を忘れたときに似ていなくもありません.エラーは表示されますが,実際にエラ
2873 ーのある場所よりも後ろでエラーが報告されるのです.
2874 \end_layout
2875
2876 \end_inset
2877
2878
2879 \family default
2880 \series default
2881 \shape default
2882 \size default
2883 \emph default
2884 \bar default
2885 \noun default
2886 \color inherit
2887
2888 \end_layout
2889
2890 \begin_layout Standard
2891
2892 \family roman
2893 \series medium
2894 \shape up
2895 \size normal
2896 \emph off
2897 \bar no
2898 \noun off
2899 \color none
2900 人によっては,ログファイルを直接ご覧になりたいかもしれません.これは,
2901 \begin_inset Flex MenuItem
2902 status collapsed
2903
2904 \begin_layout Plain Layout
2905
2906 \family roman
2907 \series medium
2908 \shape up
2909 \size normal
2910 \emph off
2911 \bar no
2912 \noun off
2913 \color none
2914 文書\SpecialChar menuseparator
2915 LaTeXログ
2916 \end_layout
2917
2918 \end_inset
2919
2920 で見ることができます.エラーメッセージや警告には,よく見かけるものがいくつかありますので,それらをここに収録しておきます.ここにないエラーや警告に関しては,La\SpecialChar TeX
2921
2922 関連の良書を参照してください.
2923 \end_layout
2924
2925 \begin_layout Itemize
2926
2927 \family typewriter
2928 \begin_inset Flex Code
2929 status collapsed
2930
2931 \begin_layout Plain Layout
2932
2933 \family typewriter
2934 LaTeX Warning
2935 \end_layout
2936
2937 \end_inset
2938
2939
2940 \family roman
2941 \series medium
2942 \shape up
2943 \size normal
2944 \emph off
2945 \bar no
2946 \noun off
2947 \color none
2948
2949 \begin_inset Newline newline
2950 \end_inset
2951
2952 これで始まるメッセージは,\SpecialChar LaTeX
2953 コード自体を「デバッグ」するための警告メッセージです.相互参照や書誌情報を追加したり変更した場合に,もう一度\SpecialChar LaTeX
2954 を実行する必要があることを
2955 知らせるために,このようなメッセージが表示されます.このメッセージは,だいたいにおいて無視しても大丈夫です.
2956 \end_layout
2957
2958 \begin_layout Itemize
2959
2960 \family typewriter
2961 \begin_inset Flex Code
2962 status collapsed
2963
2964 \begin_layout Plain Layout
2965
2966 \family typewriter
2967 LaTeX Font Warning
2968 \end_layout
2969
2970 \end_inset
2971
2972
2973 \family roman
2974 \series medium
2975 \shape up
2976 \size normal
2977 \emph off
2978 \bar no
2979 \noun off
2980 \color none
2981
2982 \begin_inset Newline newline
2983 \end_inset
2984
2985 \SpecialChar LaTeX
2986 がフォントを見つけられなかったと言う警告メッセージです.多くの場合,このメッセージの後に,\SpecialChar LaTeX
2987 が使用した代替フォントに関する情報が続きます.これも無視して構いません
2988
2989 \end_layout
2990
2991 \begin_layout Itemize
2992
2993 \family roman
2994 \series medium
2995 \shape up
2996 \size normal
2997 \emph off
2998 \bar no
2999 \noun off
3000 \color none
3001 \begin_inset Flex Code
3002 status collapsed
3003
3004 \begin_layout Plain Layout
3005
3006 \family typewriter
3007 Overfull 
3008 \backslash
3009 hbox
3010 \end_layout
3011
3012 \end_inset
3013
3014
3015 \begin_inset Newline newline
3016 \end_inset
3017
3018 \SpecialChar LaTeX
3019 は,
3020 \family default
3021 \series default
3022 \shape default
3023 \size default
3024 \emph on
3025 \bar default
3026 \noun default
3027 \color inherit
3028 ほぼどんなときでも
3029 \family roman
3030 \series medium
3031 \shape up
3032 \size normal
3033 \emph off
3034 \bar no
3035 \noun off
3036 \color none
3037 この警告を吐き出します.どんな文書を書いたとしても,このメッセージは,少なくとも1つは出てくるようです.これは,一行が長すぎて右余白にはみ出してしまったという警
3038 告であり,
3039 \family default
3040 \series default
3041 \shape default
3042 \size default
3043 \emph default
3044 \bar default
3045 \noun default
3046 \color inherit
3047 \SpecialChar LaTeX
3048
3049 \family roman
3050 \series medium
3051 \shape up
3052 \size normal
3053 \emph off
3054 \bar no
3055 \noun off
3056 \color none
3057 が適切な改行方法を見つけられなかった時に生じます(タイプライタ体では自動改行を許されないため頻発することが知られています).ほとんどの場合,最終出力を見ても判別
3058 できないくらい(せいぜい1ポイントか2ポイント)です.しかしながら,時には目に見えて余白にはみ出してしまうこともあるので,その場合には,最終出力では修正したいと
3059 思うことでしょう.
3060 \begin_inset Newline newline
3061 \end_inset
3062
3063 全体的にoverfull行の数をできるだけ少なくする方法はいくつかあります.
3064 \family sans
3065 \series default
3066 \shape default
3067 \size default
3068 \emph default
3069 \bar default
3070 \noun default
3071 \color inherit
3072 文書\SpecialChar menuseparator
3073 設定\SpecialChar menuseparator
3074 フォント
3075 \family roman
3076 \series medium
3077 \shape up
3078 \size normal
3079 \emph off
3080 \bar no
3081 \noun off
3082 \color none
3083
3084 \family sans
3085 \series default
3086 \shape default
3087 \size default
3088 \emph default
3089 \bar default
3090 \noun default
3091 \color inherit
3092 マイクロタイポグラフィ拡張を有効にする
3093 \family roman
3094 \series medium
3095 \shape up
3096 \size normal
3097 \emph off
3098 \bar no
3099 \noun off
3100 \color none
3101 をクリックすると,大幅な改善が見込めます.さらに,
3102 \family sans
3103 \series default
3104 \shape default
3105 \size default
3106 \emph default
3107 \bar default
3108 \noun default
3109 \color inherit
3110 文書\SpecialChar menuseparator
3111 設定\SpecialChar menuseparator
3112 プリアンブル
3113 \family roman
3114 \series medium
3115 \shape up
3116 \size normal
3117 \emph off
3118 \bar no
3119 \noun off
3120 \color none
3121 に以下のような
3122 \family default
3123 \series default
3124 \shape default
3125 \size default
3126 \emph default
3127 \bar default
3128 \noun default
3129 \color inherit
3130 \SpecialChar LaTeX
3131
3132 \family roman
3133 \series medium
3134 \shape up
3135 \size normal
3136 \emph off
3137 \bar no
3138 \noun off
3139 \color none
3140 コードを書いても,overfull行の数は,通常,大幅に減少します(この文書のプリアンブルにも使用しています).
3141 \end_layout
3142
3143 \begin_deeper
3144 \begin_layout LyX-Code
3145
3146 \backslash
3147 tolerance 1414
3148 \begin_inset Newline newline
3149 \end_inset
3150
3151
3152 \backslash
3153 hbadness 1414
3154 \begin_inset Newline newline
3155 \end_inset
3156
3157
3158 \backslash
3159 emergencystretch 1.5em
3160 \begin_inset Newline newline
3161 \end_inset
3162
3163
3164 \backslash
3165 hfuzz 0.3pt
3166 \end_layout
3167
3168 \begin_layout Standard
3169 しかしながら,場合によっては,改行が正しく行われるように,文章そのものを書き換えなくてはならない場合もあります
3170 \begin_inset Foot
3171 status collapsed
3172
3173 \begin_layout Plain Layout
3174 詳細は,
3175 \begin_inset Flex URL
3176 status open
3177
3178 \begin_layout Plain Layout
3179
3180 http://www.tex.ac.uk/FAQ-overfull.html
3181 \end_layout
3182
3183 \end_inset
3184
3185 を参照してください.
3186 \end_layout
3187
3188 \end_inset
3189
3190
3191 \end_layout
3192
3193 \begin_layout Standard
3194 何れにしても,少なくとも文書の完成版では,各行の確認を行うべきです.はみ出過ぎているものがあれば,目で見ればわかるでしょう
3195 \begin_inset Foot
3196 status collapsed
3197
3198 \begin_layout Plain Layout
3199
3200 \family sans
3201 文書\SpecialChar menuseparator
3202 設定
3203 \family default
3204 で「draft」オプションを有効にすることもできます.すると,overfull行の余白には,\SpecialChar LaTeX
3205 が黒い四角を描画してくれます.
3206 \end_layout
3207
3208 \end_inset
3209
3210
3211 \end_layout
3212
3213 \end_deeper
3214 \begin_layout Itemize
3215
3216 \family typewriter
3217 \begin_inset Flex Code
3218 status collapsed
3219
3220 \begin_layout Plain Layout
3221
3222 \family typewriter
3223 Underfull 
3224 \backslash
3225 hbox
3226 \end_layout
3227
3228 \end_inset
3229
3230
3231 \begin_inset Newline newline
3232 \end_inset
3233
3234
3235 \family roman
3236 \series medium
3237 \shape up
3238 \size normal
3239 \emph off
3240 \bar no
3241 \noun off
3242 \color none
3243 これは上の警告と違ってあまり出てきません.これも,
3244 \family default
3245 \series default
3246 \shape default
3247 \size default
3248 \emph default
3249 \bar default
3250 \noun default
3251 \color inherit
3252 \SpecialChar LaTeX
3253
3254 \family roman
3255 \series medium
3256 \shape up
3257 \size normal
3258 \emph off
3259 \bar no
3260 \noun off
3261 \color none
3262 が適切な改行方法を見つけられずに,間延びした行を生成せざるを得なかった時に起こります.overfull行と同様,外見上の問題がないかどうか確認してください.
3263 \end_layout
3264
3265 \begin_layout Itemize
3266 \begin_inset Flex Code
3267 status collapsed
3268
3269 \begin_layout Plain Layout
3270
3271 \family typewriter
3272 Overfull 
3273 \backslash
3274 vbox
3275 \end_layout
3276
3277 \end_inset
3278
3279
3280 \family typewriter
3281
3282 \begin_inset Flex Code
3283 status collapsed
3284
3285 \begin_layout Plain Layout
3286
3287 \family typewriter
3288 Underfull 
3289 \backslash
3290 vbox
3291 \end_layout
3292
3293 \end_inset
3294
3295
3296 \family default
3297
3298 \begin_inset Newline newline
3299 \end_inset
3300
3301
3302 \family roman
3303 \series medium
3304 \shape up
3305 \size normal
3306 \emph off
3307 \bar no
3308 \noun off
3309 \color none
3310 ページ区切りに問題があったという警告です.この場合も,出力を目で確認してください.何か問題があれば,見てすぐわかります.
3311 \end_layout
3312
3313 \begin_layout Itemize
3314
3315 \family typewriter
3316 \begin_inset Flex Code
3317 status collapsed
3318
3319 \begin_layout Plain Layout
3320
3321 \family typewriter
3322 LaTeX Error: File 
3323 \begin_inset Quotes els
3324 \end_inset
3325
3326 Xxxx
3327 \begin_inset Quotes ers
3328 \end_inset
3329
3330  not found
3331 \end_layout
3332
3333 \end_inset
3334
3335
3336 \family roman
3337 \series medium
3338 \shape up
3339 \size normal
3340 \emph off
3341 \bar no
3342 \noun off
3343 \color none
3344
3345 \begin_inset Newline newline
3346 \end_inset
3347
3348 ファイル「Xxxx」が,システムに導入されていません.これは通常,文書が必要としている\SpecialChar LaTeX
3349 パッケージに,導入済でないものがある場合に現れます.プリアンブルに変更を加
3350 えておらず,
3351 \begin_inset Flex Code
3352 status collapsed
3353
3354 \begin_layout Plain Layout
3355
3356 \family typewriter
3357
3358 \backslash
3359 usepackage{}
3360 \end_layout
3361
3362 \end_inset
3363
3364 コマンドも使用していないとすれば,\SpecialChar LyX
3365 が読み込もうしているパッケージに存在しないものがあるということです.
3366 \family default
3367 \series default
3368 \shape default
3369 \size default
3370 \emph default
3371 \bar default
3372 \noun default
3373 \color inherit
3374
3375 \begin_inset Flex MenuItem
3376 status collapsed
3377
3378 \begin_layout Plain Layout
3379 ヘルプ\SpecialChar menuseparator
3380 \SpecialChar LaTeX
3381 の設定
3382 \end_layout
3383
3384 \end_inset
3385
3386
3387 \family roman
3388 \series medium
3389 \shape up
3390 \size normal
3391 \emph off
3392 \bar no
3393 \noun off
3394 \color none
3395 を使用して,\SpecialChar LyX
3396 が認識しているパッケージの一覧を得てください.このファイルは,(
3397 \begin_inset Flex MenuItem
3398 status collapsed
3399
3400 \begin_layout Plain Layout
3401
3402 \family roman
3403 \series medium
3404 \shape up
3405 \size normal
3406 \emph off
3407 \bar no
3408 \noun off
3409 \color none
3410 ツール\SpecialChar menuseparator
3411 再設定
3412 \end_layout
3413
3414 \end_inset
3415
3416 を使用して)\SpecialChar LyX
3417 の再設定を行うたびに更新され,どのパッケージが検出されたか,それらのパッケージが何をするものかを表示します.
3418 \begin_inset Newline newline
3419 \end_inset
3420
3421
3422 \family sans
3423 \series default
3424 \shape default
3425 \size default
3426 \emph default
3427 \bar default
3428 \noun default
3429 \color inherit
3430
3431 \begin_inset Flex Code
3432 status collapsed
3433
3434 \begin_layout Plain Layout
3435
3436 \family sans
3437
3438 \backslash
3439 usepackage{}
3440 \end_layout
3441
3442 \end_inset
3443
3444
3445 \family roman
3446 \series medium
3447 \shape up
3448 \size normal
3449 \emph off
3450 \bar no
3451 \noun off
3452 \color none
3453 コマンドを使っていて,肝心のパッケージが導入されていない場合には,ご自身で導入する必要があります.
3454 \end_layout
3455
3456 \begin_layout Itemize
3457
3458 \family typewriter
3459 \begin_inset Flex Code
3460 status collapsed
3461
3462 \begin_layout Plain Layout
3463
3464 \family typewriter
3465 LaTeX Error: Unknown option
3466 \end_layout
3467
3468 \end_inset
3469
3470
3471 \family roman
3472 \series medium
3473 \shape up
3474 \size normal
3475 \emph off
3476 \bar no
3477 \noun off
3478 \color none
3479
3480 \begin_inset Newline newline
3481 \end_inset
3482
3483 このように始まるエラーメッセージは,パッケージに誤ったあるいは未定義のオプションが指定されていることを伝えようとするものです.パッケージの取扱説明書をご確認くだ
3484 さい.
3485 \end_layout
3486
3487 \begin_layout Itemize
3488
3489 \family typewriter
3490 \begin_inset Flex Code
3491 status collapsed
3492
3493 \begin_layout Plain Layout
3494
3495 \family typewriter
3496 Undefined control sequence
3497 \end_layout
3498
3499 \end_inset
3500
3501
3502 \family roman
3503 \series medium
3504 \shape up
3505 \size normal
3506 \emph off
3507 \bar no
3508 \noun off
3509 \color none
3510
3511 \begin_inset Newline newline
3512 \end_inset
3513
3514 お使いの文書に\SpecialChar LaTeX
3515 コードを挿入した際,打ち間違いをしてしまうと,このようなメッセージが表示されます.あるいは,パッケージを読み込ませるのを忘れたのかもしれません.い
3516 ずれにしても,このメッセージは,あなたが未定義のコマンドを使用したことを示しています.
3517 \end_layout
3518
3519 \begin_layout Standard
3520
3521 \family roman
3522 \series medium
3523 \shape up
3524 \size normal
3525 \emph off
3526 \bar no
3527 \noun off
3528 \color none
3529 これ以外にも,エラーメッセージや警告メッセージがあります.一般に,読んで意味がすぐにわかるものは,\SpecialChar LaTeX
3530 のメッセージです.何を言っているのかさっぱりわからないものもあ
3531 りますが,通常これらは,\SpecialChar TeX
3532 のメッセージであり,それが何を意味しているのか,どのように解読すればいいのか,
3533 \family default
3534 \series default
3535 \shape default
3536 \size default
3537 \emph on
3538 \bar default
3539 \noun default
3540 \color inherit
3541 まったく
3542 \family roman
3543 \series medium
3544 \shape up
3545 \size normal
3546 \emph off
3547 \bar no
3548 \noun off
3549 \color none
3550 手がかりがありません.誰もわからないのです.
3551 \end_layout
3552
3553 \begin_layout Standard
3554
3555 \family roman
3556 \series medium
3557 \shape up
3558 \size normal
3559 \emph off
3560 \bar no
3561 \noun off
3562 \color none
3563 エラーメッセージが表示された場合は,つねに以下のチェックリストにしたがった方がよいでしょう.
3564 \end_layout
3565
3566 \begin_layout Enumerate
3567
3568 \family roman
3569 \series medium
3570 \shape up
3571 \size normal
3572 \emph off
3573 \bar no
3574 \noun off
3575 \color none
3576 ご自分で挿入した\SpecialChar LaTeX
3577 コードに打ち間違いがないかどうか確かめる.
3578 \end_layout
3579
3580 \begin_layout Enumerate
3581
3582 \family roman
3583 \series medium
3584 \shape up
3585 \size normal
3586 \emph off
3587 \bar no
3588 \noun off
3589 \color none
3590 打ち間違いがなければ,コマンドを正しく使ったかどうか確かめる.
3591 \end_layout
3592
3593 \begin_layout Enumerate
3594
3595 \family roman
3596 \series medium
3597 \shape up
3598 \size normal
3599 \emph off
3600 \bar no
3601 \noun off
3602 \color none
3603 文書のもっともはじめの部分にエラーボックスが多数積み上がった場合には—特に
3604 \begin_inset Flex Code
3605 status collapsed
3606
3607 \begin_layout Plain Layout
3608
3609 \family roman
3610 \series medium
3611 \shape up
3612 \size normal
3613 \emph off
3614 \bar no
3615 \noun off
3616 \color none
3617 Missing 
3618 \backslash
3619 begin{document}
3620 \end_layout
3621
3622 \end_inset
3623
3624 が表示されているならば—,プリアンブルにエラーがあることを意味します.プリアンブルのデバックを行ってください.
3625 \end_layout
3626
3627 \begin_layout Enumerate
3628
3629 \family roman
3630 \series medium
3631 \shape up
3632 \size normal
3633 \emph off
3634 \bar no
3635 \noun off
3636 \color none
3637 プリアンブルに何も追加せず,文書に\SpecialChar LaTeX
3638 コードをまったく挿入しなかった場合には,\SpecialChar LaTeX
3639 頒布版自体をまず疑ってください.導入されていないパッケージを探しだして,導入してくださ
3640 い.
3641 \end_layout
3642
3643 \begin_layout Enumerate
3644
3645 \family roman
3646 \series medium
3647 \shape up
3648 \size normal
3649 \emph off
3650 \bar no
3651 \noun off
3652 \color none
3653 導入されていないパッケージはなかったものとしましょう.\SpecialChar LyX
3654 を微調整するオプションを使用していますか.特に,手動で
3655 \begin_inset Flex Code
3656 status collapsed
3657
3658 \begin_layout Plain Layout
3659
3660 \family sans
3661 Protected
3662 \begin_inset space ~
3663 \end_inset
3664
3665 Blank
3666 \end_layout
3667
3668 \end_inset
3669
3670
3671 \begin_inset Flex Code
3672 status collapsed
3673
3674 \begin_layout Plain Layout
3675
3676 \family sans
3677 Linebreak
3678 \end_layout
3679
3680 \end_inset
3681
3682
3683 \family sans
3684 \series default
3685 \shape default
3686 \size default
3687 \emph default
3688 \bar default
3689 \noun default
3690 \color inherit
3691
3692 \begin_inset Flex Code
3693 status collapsed
3694
3695 \begin_layout Plain Layout
3696
3697 \family sans
3698 Pagebreak
3699 \end_layout
3700
3701 \end_inset
3702
3703
3704 \family roman
3705 \series medium
3706 \shape up
3707 \size normal
3708 \emph off
3709 \bar no
3710 \noun off
3711 \color none
3712 などをたくさん挿入するなど,微調整オプションを
3713 \family default
3714 \series default
3715 \shape default
3716 \size default
3717 \emph on
3718 \bar default
3719 \noun default
3720 \color inherit
3721 悪用
3722 \family roman
3723 \series medium
3724 \shape up
3725 \size normal
3726 \emph off
3727 \bar no
3728 \noun off
3729 \color none
3730 していませんか.適切な段落環境を使用する代わりに,これらを使用してその場をしのごうとしていませんか.
3731 \end_layout
3732
3733 \begin_layout Enumerate
3734
3735 \family roman
3736 \series medium
3737 \shape up
3738 \size normal
3739 \emph off
3740 \bar no
3741 \noun off
3742 \color none
3743 微調整オプションはまったく使用しておらず,規則に乗っ取って作業していたものとしましょう.何か曲芸のようなことをしようとはしていませんか.数式や表中で,たとえば表
3744 のセルに図を入れるなど,おかしなことをしようとしていませんか.
3745 \end_layout
3746
3747 \begin_layout Enumerate
3748 \SpecialChar LaTeX
3749 が改行位置を見つけられないほど長い一節がありませんか.既定では,改行するために単語間に空白をたくさん追加することを,\SpecialChar LaTeX
3750 はかなり嫌います.可能であれば,問題が生じな
3751 いように段落を修正するのが望ましいでしょう.
3752 \end_layout
3753
3754 \begin_layout Enumerate
3755
3756 \family roman
3757 \series medium
3758 \shape up
3759 \size normal
3760 \emph off
3761 \bar no
3762 \noun off
3763 \color none
3764 入れ子の階層を深くしすぎていませんか.\SpecialChar LyX
3765 は,(今のところ)環境の入れ子の階層が制限内にあるかチェックしません.かりに,環境を17段の入れ子にしたりしていたら,それ
3766 が原因です(\SpecialChar LaTeX
3767 の上限は5段です).
3768 \end_layout
3769
3770 \begin_layout Enumerate
3771
3772 \family roman
3773 \series medium
3774 \shape up
3775 \size normal
3776 \emph off
3777 \bar no
3778 \noun off
3779 \color none
3780 エラーメッセージは発生しないけれども,出力がひどいものとしましょう.図表が幅が広すぎたり長すぎてページに収まらない場合には,
3781 \end_layout
3782
3783 \begin_deeper
3784 \begin_layout Enumerate
3785
3786 \family roman
3787 \series medium
3788 \shape up
3789 \size normal
3790 \emph off
3791 \bar no
3792 \noun off
3793 \color none
3794 図がページに合うように大きさを変える,
3795 \end_layout
3796
3797 \begin_layout Enumerate
3798
3799 \family roman
3800 \series medium
3801 \shape up
3802 \size normal
3803 \emph off
3804 \bar no
3805 \noun off
3806 \color none
3807 表がページに合うように削る,
3808 \end_layout
3809
3810 \begin_layout Standard
3811
3812 \family roman
3813 \series medium
3814 \shape up
3815 \size normal
3816 \emph off
3817 \bar no
3818 \noun off
3819 \color none
3820 などの手段を採る必要があります.
3821 \end_layout
3822
3823 \end_deeper
3824 \begin_layout Enumerate
3825 他に出力におかしいところがあり,曲芸をやろうとしたり微調整オプションでしのごうとしたりはしていないとすれば,何がおかしいのか確定的なことは言えません.
3826 \end_layout
3827
3828 \begin_layout Standard
3829
3830 \family roman
3831 \series medium
3832 \shape up
3833 \size normal
3834 \emph off
3835 \bar no
3836 \noun off
3837 \color none
3838 これらすべてが役に立たないとすれば,
3839 \family default
3840 \series default
3841 \shape default
3842 \size default
3843 \emph on
3844 \bar default
3845 \noun default
3846 \color inherit
3847 ひょっとしたら
3848 \family roman
3849 \series medium
3850 \shape up
3851 \size normal
3852 \emph off
3853 \bar no
3854 \noun off
3855 \color none
3856 \SpecialChar LyX
3857 のバグを発見したのかもしれません‥‥.
3858 \end_layout
3859
3860 \begin_layout Chapter
3861 補完ツール
3862 \end_layout
3863
3864 \begin_layout Section
3865 Bib\SpecialChar TeX
3866 あるいはBiblatexによる書誌情報のカスタマイズ
3867 \end_layout
3868
3869 \begin_layout Standard
3870 Bib\SpecialChar TeX
3871 あるいは
3872 \family sans
3873 Biblatex
3874 \family default
3875 の基本的な使用法は,『
3876 \emph on
3877 ユーザーの手引き
3878 \emph default
3879 』の「
3880 \emph on
3881 文献データベース
3882 \emph default
3883 」の節に説明があります.以下の各小節では,\SpecialChar LyX
3884 でサポートされている書誌情報の特別な機能について説明することとします.
3885 \end_layout
3886
3887 \begin_layout Subsection
3888 他の引用様式
3889 \end_layout
3890
3891 \begin_layout Standard
3892 標準のBib\SpecialChar TeX
3893 は,引用された著作を参照するのに,([12]のように)数字を使用します.しかし,多くの科学分野で,これとは異なる引用様式が用いられています.もっとも
3894 よく見られるのは,著者-出版年様式(例:Knuth 1984a)です.\SpecialChar LyX
3895 は,この様式を提供する3つのパッケージ
3896 \begin_inset Flex Code
3897 status collapsed
3898
3899 \begin_layout Plain Layout
3900 biblatex
3901 \end_layout
3902
3903 \end_inset
3904
3905
3906 \begin_inset Flex Code
3907 status collapsed
3908
3909 \begin_layout Plain Layout
3910 natbib
3911 \end_layout
3912
3913 \end_inset
3914
3915
3916 \begin_inset Flex Code
3917 status collapsed
3918
3919 \begin_layout Plain Layout
3920 jurabib
3921 \end_layout
3922
3923 \end_inset
3924
3925 をサポートしています.これらのパッケージには,それぞれ長所短所がありますが,ここでは詳細に立ち入る紙幅がありません.単純な著者-出版年様式(あるいは著者-番号)
3926 様式が欲しい場合や,無数にある
3927 \begin_inset Flex Code
3928 status collapsed
3929
3930 \begin_layout Plain Layout
3931 natbib
3932 \end_layout
3933
3934 \end_inset
3935
3936 用スタイルファイルのうちどれかを使用したい場合には,定評のある
3937 \begin_inset Flex Code
3938 status collapsed
3939
3940 \begin_layout Plain Layout
3941 natbib
3942 \end_layout
3943
3944 \end_inset
3945
3946 パッケージがおそらくよい選択でしょう.法学でよく用いられる引用様式を探している場合には,
3947 \begin_inset Flex Code
3948 status collapsed
3949
3950 \begin_layout Plain Layout
3951 jurabib
3952 \end_layout
3953
3954 \end_inset
3955
3956 パッケージの利用を考えるとよいかもしれません.整形を完全に制御したい場合や,ibidem・脚註引用・タイトル全引用・400 BCなどの)複雑な日時形式・英語以外
3957 への完全な現地語化のような複雑な機能を使用したい場合には,機能面で他のパッケージを凌駕している
3958 \begin_inset Flex Code
3959 status collapsed
3960
3961 \begin_layout Plain Layout
3962 biblatex
3963 \end_layout
3964
3965 \end_inset
3966
3967 をぜひとも考えるべきでしょう.ただし,同時に
3968 \begin_inset Flex Code
3969 status collapsed
3970
3971 \begin_layout Plain Layout
3972 biblatex
3973 \end_layout
3974
3975 \end_inset
3976
3977 はたいへん重く,リソース消費量も多いことに注意してください.
3978 \end_layout
3979
3980 \begin_layout Standard
3981 \SpecialChar LyX
3982 での各パッケージの取扱い方は,ほぼ同じです.
3983 \begin_inset Flex MenuItem
3984 status collapsed
3985
3986 \begin_layout Plain Layout
3987 文書\SpecialChar menuseparator
3988 設定
3989 \end_layout
3990
3991 \end_inset
3992
3993 メニューを開き,
3994 \begin_inset Flex MenuItem
3995 status collapsed
3996
3997 \begin_layout Plain Layout
3998 書誌情報
3999 \end_layout
4000
4001 \end_inset
4002
4003 項目から
4004 \begin_inset Flex Noun
4005 status collapsed
4006
4007 \begin_layout Plain Layout
4008 Biblatex
4009 \end_layout
4010
4011 \end_inset
4012
4013
4014 \begin_inset Flex Noun
4015 status collapsed
4016
4017 \begin_layout Plain Layout
4018 Biblatex (Natbibモード)
4019 \end_layout
4020
4021 \end_inset
4022
4023
4024 \begin_inset Flex Noun
4025 status collapsed
4026
4027 \begin_layout Plain Layout
4028 Natbib (BibTeX)
4029 \end_layout
4030
4031 \end_inset
4032
4033
4034 \begin_inset Flex Noun
4035 status collapsed
4036
4037 \begin_layout Plain Layout
4038 Jurabib (BibTeX)
4039 \end_layout
4040
4041 \end_inset
4042
4043 のいずれかを選択してください(各選択肢についての詳細は,ユーザーの手引きの第6.5.3節を参照のこと).これらのパッケージによって,引用ダイアログに機能が追加され,
4044 参照の様式が選択できるようになります(「Knuth 1984」,「Knuth (1984)」,「Knuth, 1984」,「1984」など).各パッケージは,専
4045 用にデザインされたスタイルファイルを必要とすることに注意してください.これらは全てそれ自身のスタイルファイルを同梱していますが,他にもたくさんの追加されたスタイ
4046 ルファイルがありますし,
4047 \begin_inset Flex Code
4048 status collapsed
4049
4050 \begin_layout Plain Layout
4051 natbib
4052 \end_layout
4053
4054 \end_inset
4055
4056 に至っては,対話的なスタイルファイルビルダーさえ存在します
4057 \begin_inset Foot
4058 status collapsed
4059
4060 \begin_layout Plain Layout
4061 \begin_inset Flex URL
4062 status open
4063
4064 \begin_layout Plain Layout
4065
4066 ftp://ctan.tug.org/tex-archive/macros/latex/contrib/custom-bib/
4067 \end_layout
4068
4069 \end_inset
4070
4071 をご参照ください.
4072 \end_layout
4073
4074 \end_inset
4075
4076
4077 \end_layout
4078
4079 \begin_layout Subsection
4080 区分された書誌情報
4081 \end_layout
4082
4083 \begin_layout Standard
4084 場合によっては,書誌情報をいくつかの節に分ける必要があることがあります.たとえば,あなたが歴史家であるとすれば,出典と学術文献を分ける機能は,おそらく「必需品」
4085 でさえあります.残念ながら,Bib\SpecialChar TeX
4086 自身ではこのようなことができません.しかし,適切な\SpecialChar LaTeX
4087 パッケージの助けを借りると,Bib\SpecialChar TeX
4088 をこのような必要性を満たすように拡張するこ
4089 とができます.
4090 \end_layout
4091
4092 \begin_layout Standard
4093 \SpecialChar LyX
4094 は,このようなパッケージの一つである
4095 \begin_inset Flex Code
4096 status collapsed
4097
4098 \begin_layout Plain Layout
4099 bibtopic
4100 \end_layout
4101
4102 \end_inset
4103
4104
4105 \begin_inset Foot
4106 status collapsed
4107
4108 \begin_layout Plain Layout
4109 \begin_inset Flex URL
4110 status open
4111
4112 \begin_layout Plain Layout
4113
4114 ftp://ctan.tug.org/tex-archive/macros/latex/contrib/bibtopic/
4115 \end_layout
4116
4117 \end_inset
4118
4119 から入手可能です.
4120 \end_layout
4121
4122 \end_inset
4123
4124 をそのままでサポートします.このパッケージの長所は,(
4125 \begin_inset Flex Code
4126 status collapsed
4127
4128 \begin_layout Plain Layout
4129 multibib
4130 \end_layout
4131
4132 \end_inset
4133
4134 のような他のパッケージと比較すると)新規の引用コマンドを定義する必要がないことです.そのかわりに,書誌情報の違う節には,その節向けの項目を収録した別の文献データ
4135 ベースを用意する必要があります.たとえば,書誌情報を「出典」の節と「学術文献」の節に分けたい場合には,それぞれの文献データベース,たとえば
4136 \begin_inset Flex Code
4137 status collapsed
4138
4139 \begin_layout Plain Layout
4140 souces.bib
4141 \end_layout
4142
4143 \end_inset
4144
4145
4146 \begin_inset Flex Code
4147 status collapsed
4148
4149 \begin_layout Plain Layout
4150 scientific.bib
4151 \end_layout
4152
4153 \end_inset
4154
4155 とを作成する必要があります.
4156 \end_layout
4157
4158 \begin_layout Standard
4159 \begin_inset Flex MenuItem
4160 status collapsed
4161
4162 \begin_layout Plain Layout
4163 文書\SpecialChar menuseparator
4164 設定
4165 \end_layout
4166
4167 \end_inset
4168
4169 を開いて
4170 \begin_inset Flex MenuItem
4171 status collapsed
4172
4173 \begin_layout Plain Layout
4174 書誌情報
4175 \end_layout
4176
4177 \end_inset
4178
4179 の下の
4180 \begin_inset Flex MenuItem
4181 status collapsed
4182
4183 \begin_layout Plain Layout
4184 区分された書誌情報
4185 \end_layout
4186
4187 \end_inset
4188
4189 をチェックしてください.すると,書誌情報の各節に一つずつ,複数の書誌情報を挿入することができます.上記の例では,Bib\SpecialChar TeX
4190 書誌情報
4191 \begin_inset Flex Code
4192 status collapsed
4193
4194 \begin_layout Plain Layout
4195 sources.bib
4196 \end_layout
4197
4198 \end_inset
4199
4200 と二つめの文献データベース
4201 \begin_inset Flex Code
4202 status collapsed
4203
4204 \begin_layout Plain Layout
4205 scientific.bib
4206 \end_layout
4207
4208 \end_inset
4209
4210 を挿入します.各節に同じスタイルを用いるか異なるスタイルを用いるかは自由です.くわえて,書誌情報の節に,指定したデータベースの「引用されたすべての参照」を載せる
4211 (これが既定です)か,「引用されなかったすべての参照」を載せるか,あるいは「すべての参照」を載せるかを選択することができます.これは,もし書誌情報を「本文に引用
4212 された出典」・「本文に引用されていない出典」・「学術文献」の三つの節に分割したい場合に,便利でありましょう.各節の見出しは,通常の節や小節として入れることができ
4213 ます.
4214 \begin_inset Flex Code
4215 status collapsed
4216
4217 \begin_layout Plain Layout
4218 bibtopic
4219 \end_layout
4220
4221 \end_inset
4222
4223 は,書誌情報用の見出しを取り除いてしまいますので,手動でこれを追加しなくてはなりません(たとえば章*や節*などをお使いください).
4224 \end_layout
4225
4226 \begin_layout Standard
4227
4228 \family sans
4229 Biblatex
4230 \family default
4231 の場合には,手順が多少異なります.
4232 \family typewriter
4233 bibtopic
4234 \family default
4235
4236 \family sans
4237 Biblatex
4238 \family default
4239 では動作しませんので,
4240 \family sans
4241 Biblatex
4242 \family default
4243 使用中は前述の
4244 \begin_inset Flex Noun
4245 status collapsed
4246
4247 \begin_layout Plain Layout
4248 区分された書誌情報
4249 \end_layout
4250
4251 \end_inset
4252
4253 オプションは無効になります.しかしながら,
4254 \family sans
4255 Biblatex
4256 \family default
4257 は区分された書誌情報を生成する独自の方法を提供しています.書誌情報項目の
4258 \begin_inset Flex Code
4259 status collapsed
4260
4261 \begin_layout Plain Layout
4262 keywords
4263 \end_layout
4264
4265 \end_inset
4266
4267 項目オプションにキーワードを書き込み,書誌情報セクションをキーワードでフィルターに掛けることもできますし(
4268 \begin_inset Flex Noun
4269 status collapsed
4270
4271 \begin_layout Plain Layout
4272 Biblatexが生成した書誌情報
4273 \end_layout
4274
4275 \end_inset
4276
4277 ボタンを右クリックすると開くダイアログで,
4278 \begin_inset Flex Noun
4279 status collapsed
4280
4281 \begin_layout Plain Layout
4282 オプション
4283 \end_layout
4284
4285 \end_inset
4286
4287 フィールドに
4288 \begin_inset Flex Code
4289 status collapsed
4290
4291 \begin_layout Plain Layout
4292 keyword=指定キーワード
4293 \end_layout
4294
4295 \end_inset
4296
4297 と書き込みます),あるいは,上述の
4298 \begin_inset Flex Noun
4299 status collapsed
4300
4301 \begin_layout Plain Layout
4302 オプション
4303 \end_layout
4304
4305 \end_inset
4306
4307 フィールドに,例えば
4308 \begin_inset Flex Code
4309 status collapsed
4310
4311 \begin_layout Plain Layout
4312 type=book
4313 \end_layout
4314
4315 \end_inset
4316
4317
4318 \begin_inset Flex Code
4319 status collapsed
4320
4321 \begin_layout Plain Layout
4322 nottype=collection
4323 \end_layout
4324
4325 \end_inset
4326
4327 と入力することで,(
4328 \emph on
4329 book
4330 \emph default
4331
4332 \emph on
4333 article
4334 \emph default
4335 などの)項目型によりフィルターを掛けることもできます.あるいは,各項目を割り当てるための,いわゆる「書誌情報カテゴリ」を作ることもできます.詳細については,Bi
4336 blatex取扱説明書の
4337 \emph on
4338 区分された書誌情報
4339 \emph default
4340 の節をご参照ください.
4341 \end_layout
4342
4343 \begin_layout Subsection
4344 複数の書誌情報
4345 \begin_inset CommandInset label
4346 LatexCommand label
4347 name "subsec:複数の書誌情報"
4348
4349 \end_inset
4350
4351
4352 \end_layout
4353
4354 \begin_layout Standard
4355 各部・章・節・小節・子文書ごとの書誌情報など,複数の書誌情報も\SpecialChar LyX
4356 ではサポートされています.これを有効にするためには,
4357 \begin_inset Flex Noun
4358 status collapsed
4359
4360 \begin_layout Plain Layout
4361 文書\SpecialChar menuseparator
4362 設定\SpecialChar menuseparator
4363 書誌情報
4364 \end_layout
4365
4366 \end_inset
4367
4368 を開き,
4369 \begin_inset Flex Noun
4370 status collapsed
4371
4372 \begin_layout Plain Layout
4373 複数の書誌情報
4374 \end_layout
4375
4376 \end_inset
4377
4378 コンボボックスで必要な単位(「節毎」など)を選択してください.それから,執筆中文書の(節などの)各単位に,Bib(la)\SpecialChar TeX
4379 書誌情報を加えてください.出力時に,現在
4380 の単位に含まれる文献参照のみが含まれた,分割された書誌情報が生成されます.
4381 \end_layout
4382
4383 \begin_layout Standard
4384 Bib\SpecialChar TeX
4385 を使用する場合には,複数の書誌情報を生成するのに,
4386 \begin_inset Flex Code
4387 status collapsed
4388
4389 \begin_layout Plain Layout
4390 chapterbib
4391 \end_layout
4392
4393 \end_inset
4394
4395 パッケージか
4396 \begin_inset Flex Code
4397 status collapsed
4398
4399 \begin_layout Plain Layout
4400 bibtopic
4401 \end_layout
4402
4403 \end_inset
4404
4405 パッケージが使用されます.「子文書毎」を選択し,
4406 \begin_inset Flex Noun
4407 status collapsed
4408
4409 \begin_layout Plain Layout
4410 区分された書誌情報
4411 \end_layout
4412
4413 \end_inset
4414
4415 にチェックを入れ
4416 \emph on
4417 ない
4418 \emph default
4419 場合には,前者のパッケージが使用されますが,その他の場合には,すべて
4420 \begin_inset Flex Code
4421 status collapsed
4422
4423 \begin_layout Plain Layout
4424 bibtopic
4425 \end_layout
4426
4427 \end_inset
4428
4429 パッケージが使用されます
4430 \begin_inset Foot
4431 status collapsed
4432
4433 \begin_layout Plain Layout
4434 別のアプローチとして,もし
4435 \begin_inset Flex Noun
4436 status collapsed
4437
4438 \begin_layout Plain Layout
4439 \SpecialChar TeX
4440 コード
4441 \end_layout
4442
4443 \end_inset
4444
4445 を使っても良いという気があるならば(第
4446 \begin_inset CommandInset ref
4447 LatexCommand ref
4448 reference "sec:TeXコードを挿入する"
4449 plural "false"
4450 caps "false"
4451 noprefix "false"
4452
4453 \end_inset
4454
4455 節参照),
4456 \begin_inset Flex Code
4457 status collapsed
4458
4459 \begin_layout Plain Layout
4460 bibunits
4461 \end_layout
4462
4463 \end_inset
4464
4465 パッケージを使用する方法があります.
4466 \end_layout
4467
4468 \end_inset
4469
4470
4471 \begin_inset Flex Code
4472 status collapsed
4473
4474 \begin_layout Plain Layout
4475 bibtopic
4476 \end_layout
4477
4478 \end_inset
4479
4480 パッケージが使用される場合,\SpecialChar LyX
4481 は特定の単位を生成するために,その単位を
4482 \begin_inset Flex Code
4483 status collapsed
4484
4485 \begin_layout Plain Layout
4486 bibtopic
4487 \end_layout
4488
4489 \end_inset
4490
4491
4492 \begin_inset Flex Code
4493 status collapsed
4494
4495 \begin_layout Plain Layout
4496
4497 \backslash
4498 begin{btUnit}
4499 \end_layout
4500
4501 \end_inset
4502
4503
4504 \begin_inset Flex Code
4505 status collapsed
4506
4507 \begin_layout Plain Layout
4508
4509 \backslash
4510 end{btUnit}
4511 \end_layout
4512
4513 \end_inset
4514
4515 で囲みます.このアプローチには,いくつかの制限があることに注意してください.まず,全ての文献参照はいずれかの
4516 \begin_inset Flex Code
4517 status collapsed
4518
4519 \begin_layout Plain Layout
4520 btUnit
4521 \end_layout
4522
4523 \end_inset
4524
4525 の中になくてはなりません.そのため,定義された単位の外にある引用(たとえば「節毎」を使用した場合の,第1節の前)は,「???」と表示されてしまいます.(このよう
4526 な制限を回避するなどのため)
4527 \begin_inset Flex Code
4528 status collapsed
4529
4530 \begin_layout Plain Layout
4531
4532 \backslash
4533 begin{btUnit}
4534 \end_layout
4535
4536 \end_inset
4537
4538
4539 \begin_inset Flex Code
4540 status collapsed
4541
4542 \begin_layout Plain Layout
4543
4544 \backslash
4545 end{btUnit}
4546 \end_layout
4547
4548 \end_inset
4549
4550 を\SpecialChar TeX
4551 コードで入力して,自前の単位を生成することもできます.ただし,
4552 \begin_inset Flex Code
4553 status collapsed
4554
4555 \begin_layout Plain Layout
4556 btUnit
4557 \end_layout
4558
4559 \end_inset
4560
4561 は入れ子にすることができないことに注意してください.第二の制限は,
4562 \begin_inset Flex Code
4563 status collapsed
4564
4565 \begin_layout Plain Layout
4566 bibtopic
4567 \end_layout
4568
4569 \end_inset
4570
4571 は,引用のないものも含めて,つねに書誌情報データベースの参照すべてを保持してしまうということです.これにより奇妙なラベルが付されることがあります(例えば,データ
4572 ベース中にMillerという著者の2014年の著作が2つあり,その1つだけが引用されている場合,ラベルは「Miller 2014b」などとなってしまいます).
4573 \end_layout
4574
4575 \begin_layout Standard
4576
4577 \family sans
4578 Biblatex
4579 \family default
4580 を使用する場合には,
4581 \begin_inset Flex Code
4582 status collapsed
4583
4584 \begin_layout Plain Layout
4585 refsection
4586 \end_layout
4587
4588 \end_inset
4589
4590 オプションが代わりに使用されます.特定の単位が必要な時には,それらの開始時に\SpecialChar TeX
4591 コードで
4592 \begin_inset Flex Code
4593 status collapsed
4594
4595 \begin_layout Plain Layout
4596
4597 \backslash
4598 newrefsection
4599 \end_layout
4600
4601 \end_inset
4602
4603 または
4604 \begin_inset Flex Code
4605 status collapsed
4606
4607 \begin_layout Plain Layout
4608
4609 \backslash
4610 newrefsegment
4611 \end_layout
4612
4613 \end_inset
4614
4615 と書きます.単位の終了箇所も制御したい場合には,代わりに
4616 \begin_inset Flex Code
4617 status collapsed
4618
4619 \begin_layout Plain Layout
4620
4621 \backslash
4622 begin{refsection}
4623 \end_layout
4624
4625 \end_inset
4626
4627  \SpecialChar ldots
4628  
4629 \begin_inset Flex Code
4630 status collapsed
4631
4632 \begin_layout Plain Layout
4633
4634 \backslash
4635 end{refsection}
4636 \end_layout
4637
4638 \end_inset
4639
4640 環境を使ってください.ただし,
4641 \begin_inset Flex Code
4642 status collapsed
4643
4644 \begin_layout Plain Layout
4645 refsection
4646 \end_layout
4647
4648 \end_inset
4649
4650 関連は入れ子にできないことに注意してください.現行単位毎の書誌情報に加えて,
4651 \family sans
4652 Biblatex
4653 \family default
4654 はすべての書誌情報を,後で一箇所(例えば文末)に出力する簡単な方法も提供しています.そのためには,Bib(la)TeX差込枠ダイアログの内容コンボボックスで「文
4655 献参照単位全て」を選択してください.この話題についての詳細は,
4656 \family sans
4657 Biblatex
4658 \family default
4659 の取扱説明書を参照してください.
4660 \end_layout
4661
4662 \begin_layout Section
4663 複合文書
4664 \end_layout
4665
4666 \begin_layout Subsection
4667 一般的な操作
4668 \end_layout
4669
4670 \begin_layout Standard
4671 たくさんの節を含んだ大きなファイルで作業をする場合,文書をいくつかのファイルに分割した方が往々にして便利ですし,場合によっては,表部分にはしょっちゅう変更が加え
4672 られるけれども,その前の文章はつねに同じであるようなケースもあるでしょう.このような場合には,複合文書を利用することを,まずご検討ください.たとえば,科学論文は
4673 通常,導入部・所見・結果・議論・結論の五つの節から成ります.これら各節を別々の\SpecialChar LyX
4674 ファイルにして,タイトル・著者・概要・書誌情報等と,これら五つのインクルード
4675 \begin_inset Foot
4676 status collapsed
4677
4678 \begin_layout Plain Layout
4679
4680 \series bold
4681 (訳註)
4682 \series default
4683 「取り込む」の意です.原語「include」に対する訳語として,プログラミング用語の「インクルードする」以外に適語がないので,ここではプログラミング用語をそのま
4684 ま使用します.
4685 \end_layout
4686
4687 \end_inset
4688
4689 ファイルを持つ,もう一つ別の「マスター」ファイルを作成するようにすることができます.これらの各ファイルは,単にマスターファイルにインクルードされるだけでなく,単
4690 独でも出力したり印刷したりすることのできる完全な\SpecialChar LyX
4691 ファイルであるように注意することが重要です.しかも,これらの各ファイルは,同じ文書クラスでなくてはなりません.a
4692 rticleクラスとbookクラスを混在させるようなことはなさらないでください.\SpecialChar LaTeX
4693 ファイルをインクルードすることもできますが,このファイルにはプリアンブルがあって
4694 はなりません(
4695 \begin_inset Flex Code
4696 status collapsed
4697
4698 \begin_layout Plain Layout
4699
4700 \backslash
4701 begin{document}
4702 \end_layout
4703
4704 \end_inset
4705
4706 行とその前のすべて,および
4707 \begin_inset Flex Code
4708 status collapsed
4709
4710 \begin_layout Plain Layout
4711
4712 \backslash
4713 end{document}行
4714 \end_layout
4715
4716 \end_inset
4717
4718 は削除しておかなければなりません).さもないと,DVIファイルを作成する際にエラーが発生するでしょう.
4719 \end_layout
4720
4721 \begin_layout Standard
4722 \SpecialChar LyX
4723 では,
4724 \family sans
4725 挿入\SpecialChar menuseparator
4726 ファイル\SpecialChar menuseparator
4727 子文書
4728 \family default
4729 で簡単にファイルをインクルードすることができます.このメニューを選んでクリックすると,カーソルの現在位置に小さな枠が挿入されます.この枠をクリックすると,ダイア
4730 ログが現れるので,そこでインクルードするファイルとインクルード方法を選択することができます.
4731 \end_layout
4732
4733 \begin_layout Standard
4734 ファイル選択ボックスは,いまや自明でしょう.インクルード方法には,「include」・「input」・「verbatim」の三つがあります.「include」と
4735 「input」は多くの点で類似していますが,いくつかの大きな違いがあります.
4736 \end_layout
4737
4738 \begin_layout Enumerate
4739 「include」されたファイルは新規頁から組版されるのに対し,「input」されたファイルは現在のページから組版されます.
4740 \end_layout
4741
4742 \begin_layout Enumerate
4743 「include」されたファイルは,それら自身がさらに他のファイル(「孫ファイル」)を「include」することはできません.一方で,「input」は無限に下層
4744 inputを持つことができます.
4745 \end_layout
4746
4747 \begin_layout Enumerate
4748 「include」は選ばれた「include」ファイルの出力しか許しませんが,実際の(ページ割りなどの)カウンタや参照は保持されます(詳細については埋込オブジェ
4749 クト説明書の子文書の節を参照のこと).したがって,子文書にアウトソースされた章については「include」が好まれる方式ですが,任意のファイル継承がある場合には
4750 「input」の方が良いでしょう.
4751 \end_layout
4752
4753 \begin_layout Standard
4754 「verbatim」インクルードファイルでは,ファイルの内容がそのまま(つまり「
4755 \begin_inset Flex Code
4756 status collapsed
4757
4758 \begin_layout Plain Layout
4759 verbatim
4760 \end_layout
4761
4762 \end_inset
4763
4764 」モードで)固定幅タイプライタフォントで組版されます.通常,このファイルの空白は,通常の\SpecialChar LyX
4765 での空白の取扱いとは違って,連続した複数の空白がそのまま出力されるものの
4766 ,単なる見えない空白です.ただし,
4767 \family sans
4768
4769 \begin_inset Flex MenuItem
4770 status collapsed
4771
4772 \begin_layout Plain Layout
4773
4774 \family sans
4775 出力の空白に印付けをする
4776 \end_layout
4777
4778 \end_inset
4779
4780
4781 \family default
4782 チェックボックスを有効にすると,空白が存在することを明確にするために空白の印が出力されます.
4783 \end_layout
4784
4785 \begin_layout Standard
4786 一般的に,親ファイルは,組版前に完全な\SpecialChar LaTeX
4787 ファイルに変換されますが,インクルードされるファイルはプリアンブル情報を全く持たない\SpecialChar LaTeX
4788 ファイルに変換されます.
4789 \end_layout
4790
4791 \begin_layout Subsection
4792 ファイル間の相互参照
4793 \end_layout
4794
4795 \begin_layout Standard
4796 \begin_inset Box Shadowbox
4797 position "t"
4798 hor_pos "c"
4799 has_inner_box 1
4800 inner_pos "t"
4801 use_parbox 0
4802 use_makebox 0
4803 width "100col%"
4804 special "none"
4805 height "1in"
4806 height_special "totalheight"
4807 thickness "0.4pt"
4808 separation "3pt"
4809 shadowsize "4pt"
4810 framecolor "black"
4811 backgroundcolor "none"
4812 status open
4813
4814 \begin_layout Plain Layout
4815 この節の内容は,すでに古くなっています.既定のマスター文書についてと,マスターが開いているときに子文書をどう開くかについて記述する必要があります.[[要修正]]
4816 \end_layout
4817
4818 \end_inset
4819
4820
4821 \end_layout
4822
4823 \begin_layout Standard
4824 異なるファイル間に相互参照を設定することも可能です.まず,すべての関係するファイルを開いてください.例として,2つのファイルを扱う場合を考え,各ファイルをA・B
4825 と呼びます.BがAにインクルードされるファイルだとします.Aにラベルを入れて,Bで参照したいとしましょう.文書Bで相互参照ダイアログを開いて,使用する「バッファ
4826 」を選んでください.
4827 \end_layout
4828
4829 \begin_layout Subsection
4830 すべての子文書での書誌情報
4831 \end_layout
4832
4833 \begin_layout Standard
4834 子文書を使って作業する場合,全体の書誌情報を文末に一つだけ置きたいのだけれども,子文書単独で出力する時に限り,子文書分を抽出した書誌情報が付けられるようにしたい
4835 ことがあります.以下にその方法を説明します.
4836 \end_layout
4837
4838 \begin_layout Standard
4839 親文書には,全体の書誌情報が出力されるべき場所(親ファイルでも子ファイルでも)に,書誌情報差込枠を挿入するだけです.書誌情報差込枠を親ファイルに置いた場合,文献
4840 参照はすべての子文書に継承されるので,各子文書の引用ダイアログで使用できるようになります.
4841 \end_layout
4842
4843 \begin_layout Standard
4844 子文書限定の書誌情報については,子文書内の,子文書が独立にコンパイルされた時に書誌情報が出力されるべき場所に,書誌情報差込枠を挿入します.その際,この差込枠を,
4845 たとえば「子文書のみ」などと名付けた派生枝の中に置く(
4846 \family sans
4847 挿入\SpecialChar menuseparator
4848 派生枝\SpecialChar menuseparator
4849 新規派生枝を挿入...
4850 \family default
4851 )のが肝要です.そして,子文書の中でこの派生枝を有効にし(
4852 \family sans
4853 文書\SpecialChar menuseparator
4854 設定...\SpecialChar menuseparator
4855 派生枝
4856 \family default
4857 ),親文書で無効にします(
4858 \family sans
4859 文書\SpecialChar menuseparator
4860 設定...\SpecialChar menuseparator
4861 派生枝
4862 \family default
4863 ).こうすることで,子文書中の書誌情報は,親文書中では無視され,子文書中では有効になります.
4864 \end_layout
4865
4866 \begin_layout Standard
4867 複数の書誌情報が必要な場合(親文書中でも子文書ごとに書誌情報を出力するなど)は,第
4868 \begin_inset CommandInset ref
4869 LatexCommand ref
4870 reference "subsec:複数の書誌情報"
4871 plural "false"
4872 caps "false"
4873 noprefix "false"
4874
4875 \end_inset
4876
4877 節を参照してください.
4878 \end_layout
4879
4880 \begin_layout Section
4881 \SpecialChar LyX
4882 書庫
4883 \end_layout
4884
4885 \begin_layout Standard
4886 しばしばユーザーは,出版社に送ったり,共著者とやりとりするために,\SpecialChar LyX
4887 ファイルを,その依存する全画像(及び他のファイル)と「同梱」する必要に迫られることがあります.\SpecialChar LyX
4888
4889 には,この過程を自動化するPythonスクリプト(
4890 \begin_inset Flex Code
4891 status collapsed
4892
4893 \begin_layout Plain Layout
4894 lyxpak.py
4895 \end_layout
4896
4897 \end_inset
4898
4899 )が含まれています.これを使うには,
4900 \begin_inset Flex Code
4901 status collapsed
4902
4903 \begin_layout Plain Layout
4904 zipfile
4905 \end_layout
4906
4907 \end_inset
4908
4909  pythonモジュールまたは
4910 \begin_inset Flex Code
4911 status collapsed
4912
4913 \begin_layout Plain Layout
4914 tarfile
4915 \end_layout
4916
4917 \end_inset
4918
4919  pythonモジュールが,システムに導入済みであることが必要です.既定設定では,Unix系システムでは,
4920 \begin_inset Flex Code
4921 status collapsed
4922
4923 \begin_layout Plain Layout
4924 gzip
4925 \end_layout
4926
4927 \end_inset
4928
4929 圧縮
4930 \begin_inset Flex Code
4931 status collapsed
4932
4933 \begin_layout Plain Layout
4934 tar
4935 \end_layout
4936
4937 \end_inset
4938
4939 ファイル形式が優先され,Windowsでは
4940 \begin_inset Flex Code
4941 status collapsed
4942
4943 \begin_layout Plain Layout
4944 zip
4945 \end_layout
4946
4947 \end_inset
4948
4949 形式が優先されます.
4950 \end_layout
4951
4952 \begin_layout Standard
4953 \SpecialChar LyX
4954 の環境構成時には,「\SpecialChar LyX
4955 書庫」を書き出すことができるようにスクリプトが準備され,
4956 \begin_inset Flex MenuItem
4957 status collapsed
4958
4959 \begin_layout Plain Layout
4960 ファイル\SpecialChar menuseparator
4961 書き出し
4962 \end_layout
4963
4964 \end_inset
4965
4966 の下で利用可能となります.
4967 \end_layout
4968
4969 \begin_layout Standard
4970 \begin_inset Flex MenuItem
4971 status collapsed
4972
4973 \begin_layout Plain Layout
4974 ツール\SpecialChar menuseparator
4975 設定\SpecialChar menuseparator
4976 ファイル処理\SpecialChar menuseparator
4977 変換子
4978 \end_layout
4979
4980 \end_inset
4981
4982
4983 \begin_inset Flex MenuItem
4984 status collapsed
4985
4986 \begin_layout Plain Layout
4987 \SpecialChar LyX
4988 \SpecialChar menuseparator
4989 \SpecialChar LyX
4990 書庫
4991 \end_layout
4992
4993 \end_inset
4994
4995 変換子に,
4996 \begin_inset Flex Code
4997 status collapsed
4998
4999 \begin_layout Plain Layout
5000 -t
5001 \end_layout
5002
5003 \end_inset
5004
5005 スイッチや
5006 \begin_inset Flex Code
5007 status collapsed
5008
5009 \begin_layout Plain Layout
5010 -z
5011 \end_layout
5012
5013 \end_inset
5014
5015 スイッチを加えることで,プラットホームとは独立に,
5016 \begin_inset Flex Code
5017 status collapsed
5018
5019 \begin_layout Plain Layout
5020 tar
5021 \end_layout
5022
5023 \end_inset
5024
5025 形式や
5026 \begin_inset Flex Code
5027 status collapsed
5028
5029 \begin_layout Plain Layout
5030 zip
5031 \end_layout
5032
5033 \end_inset
5034
5035 形式を強制することができます(スイッチは,スクリプト名の前ではなく,後ろに加えてください).
5036 \end_layout
5037
5038 \begin_layout Section
5039 装飾的なヘッダ・フッタ
5040 \end_layout
5041
5042 \begin_layout Standard
5043 既定のページレイアウトは,どちらかといえば素っ気ないものです.
5044 \begin_inset Flex Code
5045 status collapsed
5046
5047 \begin_layout Plain Layout
5048 article
5049 \end_layout
5050
5051 \end_inset
5052
5053 文書クラスの場合には,ページの下の真ん中にページ番号がつくだけです.この取扱説明書はKOMA-scriptのbookクラスなので,すこしは凝ってますが,ほんとう
5054 に着飾るには,『
5055 \emph on
5056 ユーザーの手引き
5057 \emph default
5058 』に述べられているように,文書ページスタイルを「装飾的(fancy)」に設定する必要があります.この節では,望んだとおりの効果を得るために,\SpecialChar LaTeX
5059 プリアンブルに挿入す
5060 る必要のある\SpecialChar LaTeX
5061 コードについて解説します.
5062 \end_layout
5063
5064 \begin_layout Standard
5065 ページへッダは,「left(左)」・「center(中央)」・「right(右)」と命名された3つのフィールドに分けられています.フッタも同様に3つのフィールド
5066 に分類されています.これらのフィールドをもっとも簡単に設定する\SpecialChar LaTeX
5067 コマンドには,
5068 \family typewriter
5069
5070 \begin_inset Flex Code
5071 status collapsed
5072
5073 \begin_layout Plain Layout
5074
5075 \family typewriter
5076
5077 \backslash
5078 lhead
5079 \end_layout
5080
5081 \end_inset
5082
5083
5084 \family default
5085
5086 \family typewriter
5087
5088 \begin_inset Flex Code
5089 status collapsed
5090
5091 \begin_layout Plain Layout
5092
5093 \family typewriter
5094
5095 \backslash
5096 chead
5097 \end_layout
5098
5099 \end_inset
5100
5101
5102 \family default
5103
5104 \family typewriter
5105
5106 \begin_inset Flex Code
5107 status collapsed
5108
5109 \begin_layout Plain Layout
5110
5111 \family typewriter
5112
5113 \backslash
5114 rhead
5115 \end_layout
5116
5117 \end_inset
5118
5119
5120 \family default
5121
5122 \begin_inset Flex Code
5123 status collapsed
5124
5125 \begin_layout Plain Layout
5126
5127 \backslash
5128 lfoot
5129 \end_layout
5130
5131 \end_inset
5132
5133 などがあります.かりに,各ページの左上端に自分の名前を入れたいものとしましょう.次のようなコマンドをプリアンブルに入れるだけです.
5134 \end_layout
5135
5136 \begin_layout Standard
5137
5138 \family typewriter
5139
5140 \backslash
5141 lhead{物書 はじめ}
5142 \end_layout
5143
5144 \begin_layout Standard
5145 これで自分の名前が左上に現れます.フィールドに取り除きたい既定の内容がある場合(往々にして中央のフッタにはページ番号が入ります)には,空の引数を持つコマンドを入
5146 れるだけです.すなわち,
5147 \end_layout
5148
5149 \begin_layout Standard
5150
5151 \family typewriter
5152
5153 \backslash
5154 cfoot{}
5155 \begin_inset Newline newline
5156 \end_inset
5157
5158
5159 \family default
5160 とします.
5161 \end_layout
5162
5163 \begin_layout Standard
5164 もっと美しくしてみましょう.節番号を「第‥節」という言葉といっしょに(第3節のように)左上に入れ,ページ番号を(4ページのように)右上に,自分の名前を左下に,日
5165 付を右下に入れます.以下のコマンドをプリアンブルに入れます.
5166 \end_layout
5167
5168 \begin_layout Standard
5169
5170 \family typewriter
5171
5172 \backslash
5173 lhead{第
5174 \backslash
5175 thesection 節}
5176 \end_layout
5177
5178 \begin_layout Standard
5179
5180 \family typewriter
5181
5182 \backslash
5183 chead{}
5184 \end_layout
5185
5186 \begin_layout Standard
5187
5188 \family typewriter
5189
5190 \backslash
5191 rhead{
5192 \backslash
5193 thepage ページ}
5194 \end_layout
5195
5196 \begin_layout Standard
5197
5198 \family typewriter
5199
5200 \backslash
5201 lfoot{物書 はじめ}
5202 \end_layout
5203
5204 \begin_layout Standard
5205
5206 \family typewriter
5207
5208 \backslash
5209 cfoot{}
5210 \end_layout
5211
5212 \begin_layout Standard
5213
5214 \family typewriter
5215
5216 \backslash
5217 rfoot{
5218 \backslash
5219 today}
5220 \end_layout
5221
5222 \begin_layout Standard
5223 コマンド
5224 \family typewriter
5225
5226 \begin_inset Flex Code
5227 status collapsed
5228
5229 \begin_layout Plain Layout
5230
5231 \family typewriter
5232
5233 \backslash
5234 thesecti
5235 \family default
5236 o
5237 \family typewriter
5238 n
5239 \end_layout
5240
5241 \end_inset
5242
5243
5244 \family default
5245
5246 \begin_inset Flex Code
5247 status collapsed
5248
5249 \begin_layout Plain Layout
5250
5251 \family typewriter
5252
5253 \backslash
5254 thepa
5255 \family default
5256 ge
5257 \end_layout
5258
5259 \end_inset
5260
5261 は,それぞれ\SpecialChar LaTeX
5262 の節カウンタおよびページカウンタを取得するもので,これによって現在の節番号とページ番号を印字します.
5263 \begin_inset Flex Code
5264 status collapsed
5265
5266 \begin_layout Plain Layout
5267
5268 \family typewriter
5269
5270 \backslash
5271 tod
5272 \family default
5273 ay
5274 \end_layout
5275
5276 \end_inset
5277
5278 は,今日の日付を印字するものです.
5279 \end_layout
5280
5281 \begin_layout Standard
5282 へッダ下またはフッタ上に描かれる罫線の太さも変更することができます.もし罫線が必要なければ,太さを0にしてください.ヘッダ罫線は,既定では0.4ptの太さであり,
5283 フッタ罫線は0ptです.太さを変更するには,
5284 \family typewriter
5285
5286 \begin_inset Flex Code
5287 status collapsed
5288
5289 \begin_layout Plain Layout
5290
5291 \family typewriter
5292
5293 \backslash
5294 renewcommand{
5295 \backslash
5296 headrulewidth}{0.4pt}
5297 \end_layout
5298
5299 \end_inset
5300
5301
5302 \family default
5303
5304 \family typewriter
5305
5306 \begin_inset Flex Code
5307 status collapsed
5308
5309 \begin_layout Plain Layout
5310
5311 \family typewriter
5312
5313 \backslash
5314 renewcommand{
5315 \backslash
5316 footrulewidth}{0.4pt}
5317 \end_layout
5318
5319 \end_inset
5320
5321
5322 \family default
5323 のようなコマンドを使用してください.
5324 \end_layout
5325
5326 \begin_layout Standard
5327 \begin_inset Flex Code
5328 status collapsed
5329
5330 \begin_layout Plain Layout
5331
5332 \family typewriter
5333
5334 \backslash
5335 thispagestyle{empty}
5336 \end_layout
5337
5338 \end_inset
5339
5340
5341 \begin_inset Flex Code
5342 status collapsed
5343
5344 \begin_layout Plain Layout
5345
5346 \family typewriter
5347
5348 \backslash
5349 thispagestyle{plain}
5350 \end_layout
5351
5352 \end_inset
5353
5354
5355 \begin_inset Flex Code
5356 status collapsed
5357
5358 \begin_layout Plain Layout
5359
5360 \family typewriter
5361
5362 \backslash
5363 thispagestyle{fancy}
5364 \end_layout
5365
5366 \end_inset
5367
5368 のようなコマンドを使えば,各ページごとにへッダ・フッタ設定を有効にしたり無効にしたりすることができます.設定を変更したいページに,これらのコマンドを\SpecialChar TeX
5369 コードとして
5370 挿入してください.実は,タイトルページは,その後のページは大域的に装飾的(fancy)に設定されていれば装飾的(fancy)になるにもかかわらず,既定でプレーン
5371 (plain)になるように設定されているのです.
5372 \end_layout
5373
5374 \begin_layout Standard
5375 奇数ページの左上だけに何かを挿入するなど,もっと複雑なコマンドもあるのですが,詳しい解説は
5376 \begin_inset Flex Code
5377 status collapsed
5378
5379 \begin_layout Plain Layout
5380
5381 \family typewriter
5382 fancyhdr
5383 \end_layout
5384
5385 \end_inset
5386
5387 パッケージの取扱説明書をご参照ください(
5388 \begin_inset Flex Code
5389 status collapsed
5390
5391 \begin_layout Plain Layout
5392 fancyhdr.dvi
5393 \end_layout
5394
5395 \end_inset
5396
5397 を探してください).
5398 \end_layout
5399
5400 \begin_layout Standard
5401 最後の例として,へッダやフッタに画像を挿入できることを取り上げましょう.会社のロゴをページ左上に入れたいものとします.たとえば,
5402 \end_layout
5403
5404 \begin_layout Standard
5405
5406 \family typewriter
5407
5408 \backslash
5409 lhead{
5410 \backslash
5411 resizebox{1in}{!}{
5412 \backslash
5413 includegraphics{logo.eps}}}
5414 \end_layout
5415
5416 \begin_layout Standard
5417 \noindent
5418 とすれば,これを実現できます(文書中に他に画像を挿入していない場合には,
5419 \begin_inset Newline newline
5420 \end_inset
5421
5422
5423 \begin_inset Flex Code
5424 status collapsed
5425
5426 \begin_layout Plain Layout
5427 \noindent
5428
5429 \family typewriter
5430
5431 \backslash
5432 usepackage{graphics}
5433 \end_layout
5434
5435 \end_inset
5436
5437 をプリアンブルに宣言する必要があります).
5438 \end_layout
5439
5440 \begin_layout Section
5441 箇条書き(記号)ブリットの指定
5442 \begin_inset CommandInset label
5443 LatexCommand label
5444 name "sec:ブリット"
5445
5446 \end_inset
5447
5448
5449 \end_layout
5450
5451 \begin_layout Standard
5452
5453 \noun on
5454 Allan Rae文
5455 \end_layout
5456
5457 \begin_layout Subsection
5458 はじめに
5459 \end_layout
5460
5461 \begin_layout Standard
5462 \SpecialChar LyX
5463 には,ブリットの形が216個準備されていて,簡単なダイアログから呼び出すことができます.このダイアログを使えば,箇条書き(記号)の各階層で使うブリットの形を変更
5464 することができます.この設定は文書全体に共通なので,段落ごとに別のブリットを指定することはできません
5465 \begin_inset Foot
5466 status collapsed
5467
5468 \begin_layout Plain Layout
5469 正確には可能ですが,手動で行う必要があります.
5470 \end_layout
5471
5472 \end_inset
5473
5474
5475 \end_layout
5476
5477 \begin_layout Subsection
5478 外見
5479 \end_layout
5480
5481 \begin_layout Standard
5482 メニュー項目の
5483 \begin_inset Flex MenuItem
5484 status collapsed
5485
5486 \begin_layout Plain Layout
5487 文書\SpecialChar menuseparator
5488 設定
5489 \end_layout
5490
5491 \end_inset
5492
5493 を選択してダイアログを開き,
5494 \begin_inset Flex MenuItem
5495 status collapsed
5496
5497 \begin_layout Plain Layout
5498 ブリット
5499 \end_layout
5500
5501 \end_inset
5502
5503 タブを選択してください.
5504 \end_layout
5505
5506 \begin_layout Standard
5507 このダイアログは,ブリット形の一覧表を提示します.
5508 \begin_inset Flex MenuItem
5509 status collapsed
5510
5511 \begin_layout Plain Layout
5512 フォント
5513 \end_layout
5514
5515 \end_inset
5516
5517 と書いてあるドロップダウンメニューで,6つの各ブリット形パネルを切り替えることができます.また,一覧表左の
5518 \begin_inset Flex MenuItem
5519 status collapsed
5520
5521 \begin_layout Plain Layout
5522 階層
5523 \end_layout
5524
5525 \end_inset
5526
5527 パネルは,変更したい階層を選択するものです.
5528 \begin_inset Flex MenuItem
5529 status collapsed
5530
5531 \begin_layout Plain Layout
5532 任意のブリット
5533 \end_layout
5534
5535 \end_inset
5536
5537 では,指定したい\SpecialChar LaTeX
5538 表現を入力することができます.任意のブリットを指定した場合には,そのコマンドが必要とするパッケージを\SpecialChar LaTeX
5539 プリアンブルで指定する必要があります.
5540 \end_layout
5541
5542 \begin_layout Standard
5543 6つのパネルは,それぞれが必要とするパッケージによって分類されています.下記は,フォント名と\SpecialChar LaTeX
5544 パッケージの対応表です.
5545 \end_layout
5546
5547 \begin_layout Standard
5548 \align center
5549 \begin_inset Tabular
5550 <lyxtabular version="3" rows="7" columns="2">
5551 <features tabularvalignment="middle">
5552 <column alignment="center" valignment="top" width="0pt">
5553 <column alignment="center" valignment="top" width="0pt">
5554 <row>
5555 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5556 \begin_inset Text
5557
5558 \begin_layout Plain Layout
5559 フォント
5560 \end_layout
5561
5562 \end_inset
5563 </cell>
5564 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
5565 \begin_inset Text
5566
5567 \begin_layout Plain Layout
5568
5569 \family roman
5570 \series medium
5571 \shape up
5572 \size normal
5573 \emph off
5574 \bar no
5575 \noun off
5576 \color none
5577 必要とするパッケージ
5578 \end_layout
5579
5580 \end_inset
5581 </cell>
5582 </row>
5583 <row>
5584 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5585 \begin_inset Text
5586
5587 \begin_layout Plain Layout
5588
5589 \family sans
5590 標準
5591 \end_layout
5592
5593 \end_inset
5594 </cell>
5595 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5596 \begin_inset Text
5597
5598 \begin_layout Plain Layout
5599
5600 \series medium
5601 \shape up
5602 \size normal
5603 \emph off
5604 \bar no
5605 \noun off
5606 \color none
5607 \SpecialChar LaTeX
5608
5609 \family roman
5610 本体
5611 \end_layout
5612
5613 \end_inset
5614 </cell>
5615 </row>
5616 <row>
5617 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5618 \begin_inset Text
5619
5620 \begin_layout Plain Layout
5621
5622 \family sans
5623 \series medium
5624 \shape up
5625 \size normal
5626 \emph off
5627 \bar no
5628 \noun off
5629 \color none
5630 数式
5631 \end_layout
5632
5633 \end_inset
5634 </cell>
5635 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5636 \begin_inset Text
5637
5638 \begin_layout Plain Layout
5639
5640 \family typewriter
5641 \series medium
5642 \shape up
5643 \size normal
5644 \emph off
5645 \bar no
5646 \noun off
5647 \color none
5648 amssymb.sty
5649 \end_layout
5650
5651 \end_inset
5652 </cell>
5653 </row>
5654 <row>
5655 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5656 \begin_inset Text
5657
5658 \begin_layout Plain Layout
5659
5660 \family sans
5661 \series medium
5662 \shape up
5663 \size normal
5664 \emph off
5665 \bar no
5666 \noun off
5667 \color none
5668 絵文字1
5669 \end_layout
5670
5671 \end_inset
5672 </cell>
5673 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5674 \begin_inset Text
5675
5676 \begin_layout Plain Layout
5677
5678 \family typewriter
5679 \series medium
5680 \shape up
5681 \size normal
5682 \emph off
5683 \bar no
5684 \noun off
5685 \color none
5686 pifont.sty
5687 \end_layout
5688
5689 \end_inset
5690 </cell>
5691 </row>
5692 <row>
5693 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5694 \begin_inset Text
5695
5696 \begin_layout Plain Layout
5697
5698 \family sans
5699 \series medium
5700 \shape up
5701 \size normal
5702 \emph off
5703 \bar no
5704 \noun off
5705 \color none
5706 絵文字2
5707 \end_layout
5708
5709 \end_inset
5710 </cell>
5711 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5712 \begin_inset Text
5713
5714 \begin_layout Plain Layout
5715
5716 \family typewriter
5717 \series medium
5718 \shape up
5719 \size normal
5720 \emph off
5721 \bar no
5722 \noun off
5723 \color none
5724 pifont.sty
5725 \end_layout
5726
5727 \end_inset
5728 </cell>
5729 </row>
5730 <row>
5731 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5732 \begin_inset Text
5733
5734 \begin_layout Plain Layout
5735
5736 \family sans
5737 \series medium
5738 \shape up
5739 \size normal
5740 \emph off
5741 \bar no
5742 \noun off
5743 \color none
5744 絵文字3
5745 \end_layout
5746
5747 \end_inset
5748 </cell>
5749 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5750 \begin_inset Text
5751
5752 \begin_layout Plain Layout
5753
5754 \family typewriter
5755 \series medium
5756 \shape up
5757 \size normal
5758 \emph off
5759 \bar no
5760 \noun off
5761 \color none
5762 pifont.sty
5763 \end_layout
5764
5765 \end_inset
5766 </cell>
5767 </row>
5768 <row>
5769 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5770 \begin_inset Text
5771
5772 \begin_layout Plain Layout
5773
5774 \family sans
5775 \series medium
5776 \shape up
5777 \size normal
5778 \emph off
5779 \bar no
5780 \noun off
5781 \color none
5782 絵文字4
5783 \end_layout
5784
5785 \end_inset
5786 </cell>
5787 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
5788 \begin_inset Text
5789
5790 \begin_layout Plain Layout
5791
5792 \family typewriter
5793 \series medium
5794 \shape up
5795 \size normal
5796 \emph off
5797 \bar no
5798 \noun off
5799 \color none
5800 pifont.sty
5801 \end_layout
5802
5803 \end_inset
5804 </cell>
5805 </row>
5806 </lyxtabular>
5807
5808 \end_inset
5809
5810
5811 \end_layout
5812
5813 \begin_layout Standard
5814 \SpecialChar LyX
5815 は,ユーザーが導入されていないパッケージのブリットを使用したとしても,警告を発しません.ファイルを閲覧したり印刷したりしようとしたときに\SpecialChar LaTeX
5816 エラーが出るようならば,
5817 パッケージが導入されていない可能性が大です
5818 \begin_inset Foot
5819 status collapsed
5820
5821 \begin_layout Plain Layout
5822 \SpecialChar LyX
5823 が,パッケージがなくてもブリットを使用することを許すのは,編集をここで行ったとしても,別のところへエクスポートする可能性があるからです.
5824 \end_layout
5825
5826 \end_inset
5827
5828
5829 \end_layout
5830
5831 \begin_layout Subsection
5832 使用法
5833 \end_layout
5834
5835 \begin_layout Standard
5836 変更したいブリット階層を選んで,ブリット形と寸法を選択してください.何らかの変更を加えたとしても,\SpecialChar LyX
5837 上には反映されませんが,文書の表示を行えば確認されます.
5838 \end_layout
5839
5840 \begin_layout Standard
5841 ブリット形は,適切な階層のブリットボタンをマウスで右クリックすれば,簡単に既定値に初期化することができます
5842 \begin_inset Foot
5843 status open
5844
5845 \begin_layout Plain Layout
5846 もし
5847 \emph on
5848 本当に
5849 \emph default
5850 段落ごとに異なるブリットの形を使いたいならば,\SpecialChar TeX
5851 コードを使って少し手を汚す必要があります.この場合も,ブリット選択ダイアログを使えば,さまざまな形のLaTeXコー
5852 ドを確認することができるので手助けとなるでしょう.任意に設定した段落をつくるには,以下のような選択肢があります.
5853 \end_layout
5854
5855 \begin_layout Plain Layout
5856 \begin_inset ERT
5857 status open
5858
5859 \begin_layout Plain Layout
5860
5861
5862 \backslash
5863 let
5864 \backslash
5865 savelabelitemi=
5866 \backslash
5867 labelitemi
5868 \end_layout
5869
5870 \end_inset
5871
5872
5873 \end_layout
5874
5875 \begin_layout Plain Layout
5876 \begin_inset ERT
5877 status open
5878
5879 \begin_layout Plain Layout
5880
5881
5882 \backslash
5883 renewcommand
5884 \backslash
5885 labelitemi[0]{
5886 \backslash
5887 small
5888 \backslash
5889 (
5890 \backslash
5891 sharp
5892 \backslash
5893 )}
5894 \end_layout
5895
5896 \end_inset
5897
5898
5899 \end_layout
5900
5901 \begin_layout Itemize
5902 特定の階層の新しいブリット形を指定するには,\SpecialChar LaTeX
5903 コマンド
5904 \begin_inset Flex Code
5905 status collapsed
5906
5907 \begin_layout Plain Layout
5908
5909 \family typewriter
5910
5911 \backslash
5912 renewcommand{}{}
5913 \end_layout
5914
5915 \end_inset
5916
5917 を使用します.あとで現在のブリット形に戻すことができるように,現在のブリット形を保存しておく必要もあります.ここで使っている箇条書きでは,第1階層のブリットを変
5918 更するために,以下の\SpecialChar LaTeX
5919 コードが使用されています.
5920 \end_layout
5921
5922 \begin_deeper
5923 \begin_layout LyX-Code
5924
5925 \family typewriter
5926
5927 \backslash
5928 let
5929 \backslash
5930 savelabelitemi=
5931 \backslash
5932 labelitemi
5933 \end_layout
5934
5935 \begin_layout LyX-Code
5936
5937 \family typewriter
5938
5939 \backslash
5940 renewcommand
5941 \backslash
5942 labelitemi[0]{
5943 \backslash
5944 small
5945 \backslash
5946 (
5947 \backslash
5948 sharp
5949 \backslash
5950 )}
5951 \end_layout
5952
5953 \end_deeper
5954 \begin_layout Itemize
5955 箇条書き(記号)の階層は,
5956 \begin_inset Flex Code
5957 status collapsed
5958
5959 \begin_layout Plain Layout
5960
5961 \backslash
5962 labelitem
5963 \end_layout
5964
5965 \end_inset
5966
5967 コマンドの一部にローマ数字で指定されていることに注意してください.
5968 \end_layout
5969
5970 \begin_layout Itemize
5971 \begin_inset Argument item:1
5972 status open
5973
5974 \begin_layout Plain Layout
5975 \begin_inset ERT
5976 status open
5977
5978 \begin_layout Plain Layout
5979
5980
5981 \backslash
5982 (
5983 \backslash
5984 star
5985 \backslash
5986 )
5987 \end_layout
5988
5989 \end_inset
5990
5991
5992 \end_layout
5993
5994 \end_inset
5995
5996 各項目のブリットを指定するには,
5997 \begin_inset Flex Code
5998 status collapsed
5999
6000 \begin_layout Plain Layout
6001 \SpecialChar TeX
6002 コード
6003 \end_layout
6004
6005 \end_inset
6006
6007 として入力したブリット形を,行頭に「ユーザ設定」項目差込枠(挿入\SpecialChar menuseparator
6008 ユーザ設定項目)に入れて挿入してください.たとえば,この項目の行頭には
6009 \family typewriter
6010
6011 \begin_inset Flex Code
6012 status collapsed
6013
6014 \begin_layout Plain Layout
6015
6016 \family typewriter
6017
6018 \backslash
6019 (
6020 \backslash
6021 star
6022 \backslash
6023 )
6024 \end_layout
6025
6026 \end_inset
6027
6028
6029 \family default
6030 が指定されています.
6031 \end_layout
6032
6033 \begin_layout Plain Layout
6034 \begin_inset ERT
6035 status open
6036
6037 \begin_layout Plain Layout
6038
6039
6040 \backslash
6041 renewcommand
6042 \backslash
6043 labelitemi[0]{
6044 \backslash
6045 savelabelitemi}
6046 \end_layout
6047
6048 \end_inset
6049
6050
6051 \end_layout
6052
6053 \begin_layout Plain Layout
6054 文書全体で使用するブリット形が有効であるようにするために,labelitemを元の設定に戻す必要があります.そのためには,以下のようにします.
6055 \end_layout
6056
6057 \begin_layout LyX-Code
6058
6059 \family typewriter
6060
6061 \backslash
6062 renewcommand
6063 \backslash
6064 labelitemi[0]{
6065 \backslash
6066 savelabelitemi}
6067 \end_layout
6068
6069 \end_inset
6070
6071
6072 \end_layout
6073
6074 \begin_layout Chapter
6075 \SpecialChar LyX
6076 とインターネット網
6077 \end_layout
6078
6079 \begin_layout Standard
6080 \SpecialChar LyX
6081 は,これまでも長い間,HTMLを始めとするウェブフレンドリーな文書諸形式への書き出しをサポートしてきました.しかしながら,第2.0版以前では,HTMLへの書き出し
6082 は,常に外部変換子を用いることで実現されていました
6083 \begin_inset Foot
6084 status collapsed
6085
6086 \begin_layout Plain Layout
6087 \SpecialChar LyX
6088 で外部変換子を使うことについての詳細は,取扱説明書『
6089 \emph on
6090 カスタマイズ篇
6091 \emph default
6092 』の「
6093 \emph on
6094 変換子
6095 \emph default
6096 」の節をご覧ください.
6097 \end_layout
6098
6099 \end_inset
6100
6101 .これらは2つのグループに大別できます.1つは,
6102 \begin_inset Flex Code
6103 status collapsed
6104
6105 \begin_layout Plain Layout
6106 htlatex
6107 \end_layout
6108
6109 \end_inset
6110
6111
6112 \begin_inset Flex Code
6113 status collapsed
6114
6115 \begin_layout Plain Layout
6116 html2latex
6117 \end_layout
6118
6119 \end_inset
6120
6121
6122 \begin_inset Flex Code
6123 status collapsed
6124
6125 \begin_layout Plain Layout
6126 plastex
6127 \end_layout
6128
6129 \end_inset
6130
6131 のように,\SpecialChar LaTeX
6132 を中間形式として用い,その\SpecialChar LaTeX
6133 を生成するのに\SpecialChar LyX
6134 を用いるもの.2つめは,
6135 \begin_inset Flex Code
6136 status collapsed
6137
6138 \begin_layout Plain Layout
6139 e\SpecialChar LyX
6140 er
6141 \end_layout
6142
6143 \end_inset
6144
6145 のように,直接\SpecialChar LyX
6146 ファイルに働きかける変換子です.これらは,それぞれに長所・短所を有しています.
6147 \end_layout
6148
6149 \begin_layout Standard
6150 \SpecialChar LaTeX
6151 ベースの変換子は,原則として,\SpecialChar LaTeX
6152 が書きだす文書についてのすべてを知っているという長所があります.この種の変換子は,例えば,特定のコードのくだりが,\SpecialChar LyX
6153 によって生成され
6154 たのか,\SpecialChar TeX
6155 コードで書かれたのかについては気にしません.これらの変換子は,
6156 \begin_inset Flex Code
6157 status collapsed
6158
6159 \begin_layout Plain Layout
6160 aux
6161 \end_layout
6162
6163 \end_inset
6164
6165 ファイルやカウンタや参照を取り扱うことができ,Bib\SpecialChar TeX
6166 が生成する
6167 \begin_inset Flex Code
6168 status collapsed
6169
6170 \begin_layout Plain Layout
6171 bbl
6172 \end_layout
6173
6174 \end_inset
6175
6176 ファイルも利用することがよくあります.一方で,\SpecialChar LaTeX
6177 は解析の非常に難しい言語であり—\SpecialChar TeX
6178 自身だけが\SpecialChar TeX
6179 を理解することができると言われたりすることがあります—,\SpecialChar LaTeX
6180 ベースの変換子は
6181 ,非常に簡単な文法に見えるものでさえ飲み込めず,複雑なものになると全く歯が立たないこともあります.例えば,この現行を書いている時点では,取扱説明書『
6182 \emph on
6183 埋込オブジェクト篇
6184 \emph default
6185 』は,他の変換子では書き出しができるのに,
6186 \begin_inset Flex Code
6187 status collapsed
6188
6189 \begin_layout Plain Layout
6190 htlatex
6191 \end_layout
6192
6193 \end_inset
6194
6195 では行うことができません.他には,数式をどう取り扱うかという問題があります.これらの変換子の典型的なものは,数式を小さな画像に変換して,HTML文書からこれらの
6196 画像へのリンクを張ります.これらの画像は,実は\SpecialChar LaTeX
6197 によって生成されているので,正確です.しかしながら,これらはうまく伸縮できないので,実際の文書の中で表現されるよう
6198 に—フォント寸が凡そ正しくなるように—見せようとすると,大変な苦労を伴います.
6199 \end_layout
6200
6201 \begin_layout Standard
6202 Alex Fernandezの
6203 \begin_inset Flex Code
6204 status collapsed
6205
6206 \begin_layout Plain Layout
6207 e\SpecialChar LyX
6208 er
6209 \end_layout
6210
6211 \end_inset
6212
6213
6214 \begin_inset CommandInset href
6215 LatexCommand href
6216 name "http://pinchito.es/elyxer/"
6217 target "http://pinchito.es/elyxer/"
6218 literal "false"
6219
6220 \end_inset
6221
6222 )は,これらの問題の一部を解決します.特に,これは数式を画像に変換するのではなく,HTMLとCSSを組み合わせて数式を生成するので,生成される数式は完璧な大きさ
6223 に伸縮されて表示されます.しかしながら,ちょっとだけ複雑な数式でさえ,
6224 \begin_inset Flex Code
6225 status collapsed
6226
6227 \begin_layout Plain Layout
6228 htlatex
6229 \end_layout
6230
6231 \end_inset
6232
6233 よりも質が落ちます.これはHTMLの限界を示しています
6234 \begin_inset Foot
6235 status collapsed
6236
6237 \begin_layout Plain Layout
6238 とはいえ,
6239 \begin_inset Flex Code
6240 status collapsed
6241
6242 \begin_layout Plain Layout
6243 e\SpecialChar LyX
6244 er
6245 \end_layout
6246
6247 \end_inset
6248
6249 では,数式用にjsMathとMathJaxを使用することもできます.ただし,この設定はグローバルにしか設定することができず,バックエンドで実行させるサーバへのア
6250 クセスが利用できる必要があります.
6251 \end_layout
6252
6253 \end_inset
6254
6255 .さらに重要なことは(少なくとも第1.1.1版においては),
6256 \begin_inset Flex Code
6257 status collapsed
6258
6259 \begin_layout Plain Layout
6260 e\SpecialChar LyX
6261 er
6262 \end_layout
6263
6264 \end_inset
6265
6266 は数式マクロを一部しかサポートしておらず,ユーザ定義の段落様式や文字様式をサポートしていません.これらの制約によって,\SpecialChar LyX
6267 ユーザが生成する文書の多くにとっては,
6268 \begin_inset Flex Code
6269 status collapsed
6270
6271 \begin_layout Plain Layout
6272 e\SpecialChar LyX
6273 er
6274 \end_layout
6275
6276 \end_inset
6277
6278 は不向きなものになっています.もちろん,原理的に,これらの問題を解決することもできたのですが,\SpecialChar LyX
6279 開発陣は別の方法を採ることとし,\SpecialChar LyX
6280 が\SpecialChar LaTeX
6281 やDocBook,平文を書き出す
6282 ことができるのと同様に,\SpecialChar LyX
6283 自身にXHTMLを書きだす能力を身につけさせることとしたのです.
6284 \end_layout
6285
6286 \begin_layout Standard
6287 この原稿執筆時点では,XHTML出力は開発途上であり,おそらく「実験的」機能として解されるべきでしょう
6288 \begin_inset Foot
6289 status open
6290
6291 \begin_layout Plain Layout
6292 \SpecialChar LyX
6293 ソースツリーもしくは
6294 \begin_inset CommandInset href
6295 LatexCommand href
6296 name "オンラインでのアクセス"
6297 target "https://www.lyx.org/trac/browser/lyx-devel/trunk/development/HTML/HTML.notes"
6298 literal "false"
6299
6300 \end_inset
6301
6302 にある
6303 \begin_inset Flex Code
6304 status collapsed
6305
6306 \begin_layout Plain Layout
6307 development/HTML/HTML.notes
6308 \end_layout
6309
6310 \end_inset
6311
6312 ファイルには,通常,XHTML出力の現状についての最新の情報が収録されています.
6313 \begin_inset CommandInset href
6314 LatexCommand href
6315 name "バグ追跡ページ"
6316 target "https://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"
6317 literal "false"
6318
6319 \end_inset
6320
6321 にあるXHTML関連バグ一覧も参照のこと.
6322 \end_layout
6323
6324 \end_inset
6325
6326 .それでもこのアプローチは,他の2つの方法よりも,潜在的な利点がいくつもあるので,開発陣はこの方法を選択したのです.
6327 \end_layout
6328
6329 \begin_layout Standard
6330 これらの利点は,主に,XHTML出力ルーチンが\SpecialChar LyX
6331 の一部となっているため,\SpecialChar LyX
6332 が出力する文書について\SpecialChar LyX
6333 が関知しているところのものは,すべて知り得るというところから来ていま
6334
6335 \begin_inset Foot
6336 status collapsed
6337
6338 \begin_layout Plain Layout
6339 他には,これらのルーチンが\SpecialChar LyX
6340 内部にあるため,\SpecialChar LyX
6341 ファイル形式や既存の差込枠の文法に変更があっても,影響を受けずに済むという利点もあります.
6342 \end_layout
6343
6344 \end_inset
6345
6346 .つまり,XHTML出力ルーチンは,(文書構造に表示されるような形での)目次や,それぞれの段落様式に関連付けられたカウンタや,ユーザ定義の様式についても知ってい
6347 るのです.XHTML出力ルーチンは,国際化について\SpecialChar LyX
6348 が関知しているものも知っているので,ちょうどその時に有効になっている言語に依存して,「Chapter
6349  1」と出力されたり,「Kapitel 1」と出力されたりするのです.
6350 \end_layout
6351
6352 \begin_layout Standard
6353 汎く一般的に,出力ルーチンは,\SpecialChar LyX
6354 が文書レイアウトについて関知しているものは知っており,したがって,文書が画面上にどのように描画されるかも知っています.文書をXHT
6355 MLに出力するときには,この情報を利用します.特に,\SpecialChar LyX
6356 は,文書を画面上に描画するときに使用するレイアウト情報に対応したCSSスタイル情報を
6357 \emph on
6358 自動的に
6359 \emph default
6360 生成します.もし節見出しが,\SpecialChar LyX
6361 中でサンセリフ体かつボールド体であるとすると,(既定では)ウェブブラウザに表示した時にも,サンセリフでボールドになります.これは,節
6362 のような定義済み様式だけでなく,ユーザ定義のものも含めて,すべての様式でそうです.実際,XHTML出力ルーチンは,ユーザ定義の段落・文字様式と,\SpecialChar LyX
6363 自身の定義済み様
6364 式とを区別しません.どちらの場合も,\SpecialChar LyX
6365 が様式について関知しているところのものは,全てレイアウトファイルに含まれています.これは,脚注のような定義済み差込枠や,各種
6366 ユーザ設定差込枠でもそうです.
6367 \end_layout
6368
6369 \begin_layout Standard
6370 結果として,XHTML出力は,レイアウトファイルやモジュールを通して,\SpecialChar LaTeX
6371 出力と全く同じように,ユーザが設定したり拡張したりすることができるのです.詳細については,
6372 取扱説明書『
6373 \emph on
6374 カスタマイズ篇
6375 \emph default
6376 』の第5章をごらんください.
6377 \end_layout
6378
6379 \begin_layout Standard
6380 本章の残りでは,XHTML出力についての,さらに詳細な情報について取り扱い,その制約や,制約の回避の仕方を取り扱います.
6381 \end_layout
6382
6383 \begin_layout Section
6384 XHTMLにおける数式出力
6385 \end_layout
6386
6387 \begin_layout Standard
6388 \SpecialChar LyX
6389 では,数式描画に4つの方法を選択できます.以下に示すように,それぞれに利点と欠点があります.
6390 \end_layout
6391
6392 \begin_layout Itemize
6393 MathML
6394 \begin_inset Newline newline
6395 \end_inset
6396
6397 MathMLは,ウェブ上で数学を用いるために,特にデザインされたXMLの一方言であり,これをサポートするブラウザ上では,通常,特に美しい表現が得られます.欠点は
6398 ,すべてのブラウザがMathMLをサポートしているわけではないという事と,FirefoxのようなGeckoベースのブラウザでも,サポートが完璧ではないという事で
6399 す.
6400 \begin_inset Newline newline
6401 \end_inset
6402
6403 例えば,数式が
6404 \begin_inset Flex Code
6405 status collapsed
6406
6407 \begin_layout Plain Layout
6408 xymatrix
6409 \end_layout
6410
6411 \end_inset
6412
6413 パッケージを使用していたり,\SpecialChar TeX
6414 コードを使用しているなどで,もし\SpecialChar LyX
6415 が数式をMathMLとして描画できないとすると,\SpecialChar LyX
6416 は数式を代わりに画像として出力します.
6417  
6418 \end_layout
6419
6420 \begin_layout Itemize
6421 HTML
6422 \begin_inset Newline newline
6423 \end_inset
6424
6425 前述のとおり,
6426 \begin_inset Flex Code
6427 status collapsed
6428
6429 \begin_layout Plain Layout
6430 elyxer
6431 \end_layout
6432
6433 \end_inset
6434
6435 は,数式をCSSで装飾したHTMLとして出力します
6436 \begin_inset Foot
6437 status collapsed
6438
6439 \begin_layout Plain Layout
6440 \SpecialChar LyX
6441 は,
6442 \begin_inset Flex Code
6443 status collapsed
6444
6445 \begin_layout Plain Layout
6446 elyxer
6447 \end_layout
6448
6449 \end_inset
6450
6451 からのHTML出力のために,CSSの一部を拝借しています.
6452 \end_layout
6453
6454 \end_inset
6455
6456 .簡単な数式では,これは非常にうまく行きますが,少し複雑な数式になると,
6457 \begin_inset Flex Code
6458 status collapsed
6459
6460 \begin_layout Plain Layout
6461 elyxer
6462 \end_layout
6463
6464 \end_inset
6465
6466 は歯が立たなくなります.それでも,この方法は非常に広くサポートされているという利点があり,かなり簡単な数式を少しだけ含んでいるような文書に適しているでしょう.
6467 \begin_inset Newline newline
6468 \end_inset
6469
6470 例えば,数式が
6471 \begin_inset Flex Code
6472 status collapsed
6473
6474 \begin_layout Plain Layout
6475 xymatrix
6476 \end_layout
6477
6478 \end_inset
6479
6480 パッケージを使用していたり,\SpecialChar TeX
6481 コードを使用しているなどで,もし\SpecialChar LyX
6482 が数式をHTMLとして描画できないとすると,\SpecialChar LyX
6483 は数式を代わりに画像として出力します.
6484  
6485 \end_layout
6486
6487 \begin_layout Itemize
6488 画像
6489 \begin_inset Newline newline
6490 \end_inset
6491
6492
6493 \begin_inset Flex Code
6494 status collapsed
6495
6496 \begin_layout Plain Layout
6497 htlatex
6498 \end_layout
6499
6500 \end_inset
6501
6502 のように,\SpecialChar LyX
6503 は数式を画像としても出力できます.この画像は,実は,自動プレビューで使用されているものと全く同じです
6504 \begin_inset Foot
6505 status collapsed
6506
6507 \begin_layout Plain Layout
6508 ただし,画像を出力に使うために,自動プレビューを入にしておく必要は
6509 \emph on
6510 ありません
6511 \emph default
6512
6513 \end_layout
6514
6515 \end_inset
6516
6517 .この方法の利点は,画像が他ならぬ\SpecialChar LaTeX
6518 によって生成されているので,非常に正確であることです.欠点は,前述したとおり,画像がビットマップなので,伸縮が全くうまく行かな
6519 かったり,コピーが出来なかったりといったことがあります.
6520 \begin_inset Newline newline
6521 \end_inset
6522
6523 画像の寸法は,
6524 \begin_inset Flex MenuItem
6525 status collapsed
6526
6527 \begin_layout Plain Layout
6528 文書\SpecialChar menuseparator
6529 設定\SpecialChar menuseparator
6530 形式
6531 \end_layout
6532
6533 \end_inset
6534
6535 の「数式画像の伸縮」パラメータを変更することで制御できます
6536 \begin_inset Foot
6537 status collapsed
6538
6539 \begin_layout Plain Layout
6540 必要な方のために述べておくと,これは,画像の解像度をdpi(1インチあたりドット数)で制御するためのもので,75dpiを基準としています.
6541 \end_layout
6542
6543 \end_inset
6544
6545
6546 \begin_inset Newline newline
6547 \end_inset
6548
6549 もし\SpecialChar LyX
6550 が,何らかの理由によって数式の画像を生成できない(例えば,必要な\SpecialChar LaTeX
6551 パッケージが導入済みでないなど)ときは,回避策として,生の\SpecialChar LaTeX
6552 を出力します.
6553 \end_layout
6554
6555 \begin_layout Itemize
6556 \SpecialChar LaTeX
6557
6558 \begin_inset Newline newline
6559 \end_inset
6560
6561 最後に,\SpecialChar LyX
6562 は,数式を\SpecialChar LaTeX
6563 としても出力することができます.この方法は,最終手段としての出力方法である一方で,HTML文書に埋め込まれた\SpecialChar LaTeX
6564 を描画するのにJavaScript
6565 を使用する,
6566 \begin_inset CommandInset href
6567 LatexCommand href
6568 name "jsMath"
6569 target "http://www.math.union.edu/~dpvc/jsMath/"
6570 literal "false"
6571
6572 \end_inset
6573
6574 のようなツールとともに使用することもできます.\SpecialChar LyX
6575 は,jsMathで必要とされているのと同じように,\SpecialChar LaTeX
6576 部分を,
6577 \begin_inset Flex Code
6578 status collapsed
6579
6580 \begin_layout Plain Layout
6581 span
6582 \end_layout
6583
6584 \end_inset
6585
6586 (行内数式用)または
6587 \begin_inset Flex Code
6588 status collapsed
6589
6590 \begin_layout Plain Layout
6591 div
6592 \end_layout
6593
6594 \end_inset
6595
6596 (別行立て数式用)に
6597 \begin_inset Flex Code
6598 status collapsed
6599
6600 \begin_layout Plain Layout
6601 class='math'
6602 \end_layout
6603
6604 \end_inset
6605
6606 を指定したもので,包んで出力します.
6607 \end_layout
6608
6609 \begin_layout Standard
6610 これらの出力方法のいずれかを
6611 \begin_inset Flex MenuItem
6612 status collapsed
6613
6614 \begin_layout Plain Layout
6615 文書\SpecialChar menuseparator
6616 設定\SpecialChar menuseparator
6617 形式
6618 \end_layout
6619
6620 \end_inset
6621
6622 で選択しなくてはなりません.既定では,\SpecialChar LyX
6623 はMathMLで出力を行います.これは,文書全体に適用される設定となります.
6624 \end_layout
6625
6626 \begin_layout Standard
6627 最後に,\SpecialChar LyX
6628 では,例えば,MathMLではあまりうまく出力されないような差込枠に対して,別の出力方法を選択できる選択肢が用意されています
6629 \begin_inset Foot
6630 status collapsed
6631
6632 \begin_layout Plain Layout
6633 その他にも,\SpecialChar LyX
6634 は,差込枠に\SpecialChar TeX
6635 コードが含まれていると画像出力に回帰するので,数式中に
6636 \begin_inset Formula $a=b\relax$
6637 \end_inset
6638
6639 のような無害な\SpecialChar TeX
6640 コードを挿入することによって,画像出力を強制することができます.
6641 \end_layout
6642
6643 \end_inset
6644
6645
6646 \end_layout
6647
6648 \begin_layout Section
6649 書誌情報と引用
6650 \end_layout
6651
6652 \begin_layout Standard
6653 XHTML出力は,書誌情報と引用を完全にサポートしています.
6654 \end_layout
6655
6656 \begin_layout Standard
6657 引用ラベルは,\SpecialChar LyX
6658 画面上のラベルを生成するのと同じ機構で生成されているので,出力中のラベルは,\SpecialChar LyX
6659 中の外見と同質またはそれよりも上質な仕上がりとなっています.連番引用を
6660 使用している場合には,\SpecialChar LyX
6661 は,画面上で表示されるような各カッコに囲まれた引用鍵を単純に表示するのではなく,[1]や[17]などの連番ラベルを出力します.著者-出版年
6662 形式の引用を使用している場合で,同じ著者-出版年の組み合わせが複数ある場合,\SpecialChar LyX
6663 は,Bib\SpecialChar TeX
6664 が行うように出版年に小文字を付します.ラベルは,書誌情報項目とともに印字さ
6665 れます.現在のところ,角括弧を丸括弧に変更するなど,ラベルの外見を変更する手段はありませんのでご注意ください.
6666 \end_layout
6667
6668 \begin_layout Standard
6669 書誌情報出力は,引用ダイアログで文献情報表示を取り扱うのと同じ機構で取り扱われているので,XHTML出力は,引用ダイアログで特定の文献項目を表示させた時のものに
6670 非常によく似ています.整形の仕方は,レイアウトファイルや望ましくはモジュールでカスタマイズすることができます.詳細については,取扱説明書『カスタマイズ篇』をご覧
6671 ください.
6672 \end_layout
6673
6674 \begin_layout Standard
6675 現在のところ,主だった瑕疵は,相互参照された情報が,関連した項目の全てに印字されてしまうことです.つまり,以下のような表示が為されます.
6676 \end_layout
6677
6678 \begin_layout Quote
6679 Jason Stanley, 
6680 \begin_inset Quotes eld
6681 \end_inset
6682
6683 Context and Logical Form
6684 \begin_inset Quotes erd
6685 \end_inset
6686
6687 , in 
6688 \emph on
6689 Language in Context: Selected Essays
6690 \emph default
6691  (Oxford: Oxford University Press, 2007), pp.
6692  30–68.
6693 \end_layout
6694
6695 \begin_layout Quote
6696 Jason Stanley, 
6697 \begin_inset Quotes eld
6698 \end_inset
6699
6700 Semantics in Context
6701 \begin_inset Quotes erd
6702 \end_inset
6703
6704 , in 
6705 \emph on
6706 Language in Context: Selected Essays
6707 \emph default
6708  (Oxford: Oxford University Press, 2007), pp.
6709  201–30.
6710 \end_layout
6711
6712 \begin_layout Standard
6713 これは,遠くないうちに修正されるでしょう.
6714 \end_layout
6715
6716 \begin_layout Standard
6717 現在のところ,節ごとの書誌情報出力はサポートされていません.複数の書誌情報がある場合には,\SpecialChar LyX
6718 は同じ情報を繰り返し出力してしまいます.
6719 \end_layout
6720
6721 \begin_layout Section
6722 索引
6723 \end_layout
6724
6725 \begin_layout Standard
6726 \SpecialChar LyX
6727 は,索引をXHTMLとして書きだすことができますが,現在のところ,若干の制約があります.
6728 \end_layout
6729
6730 \begin_layout Standard
6731 索引の書き出しは,
6732 \emph on
6733 ユーザーの手引き
6734 \emph default
6735 の索引の節に書かれているような手の込んだ方法を使おうとしないほうが,信頼性が保てます
6736 \begin_inset Foot
6737 status collapsed
6738
6739 \begin_layout Plain Layout
6740 ここでの主な問題は,これらの操作の際に,\SpecialChar LyX
6741 自身は何もしていないという点です.つまり,生の\SpecialChar LaTeX
6742 で入力しなくてはならないようなものをそのまま入力しているのです.
6743 \end_layout
6744
6745 \end_inset
6746
6747 .当該節の小節見出しに沿って,それらがどう処理されるかを説明しましょう.
6748 \end_layout
6749
6750 \begin_layout Itemize
6751 索引項目のグループ化(下層項目): \SpecialChar LyX
6752 はこれらをサポートしようと努めていますが,項目は「 ! 」(感嘆符の周りに空白)で分離しなくてはなりません.これは,そうしな
6753 いと数式などで使われているエスケープされた感嘆符をチェックするのが非常に難しくなるからです.
6754 \end_layout
6755
6756 \begin_layout Itemize
6757 ページ範囲: ページ範囲については,XHTMLでは意味がないので,全くサポートされません.その代わりに,引用項目のはじめと終わりの頁それぞれに,2つの索引項目が
6758 得られるだけです.
6759 \end_layout
6760
6761 \begin_layout Itemize
6762 相互参照: 相互参照のサポートはありません.\SpecialChar LyX
6763 が「|see\SpecialChar ldots
6764 」という下だりを持つ項目を検出すると,その部分はただ無視されて,残りの部分が通常の索引項目だとみなされま
6765 す.
6766 \end_layout
6767
6768 \begin_layout Itemize
6769 索引項目の整序: \SpecialChar LyX
6770 は整序順の変更をサポートします.\SpecialChar LyX
6771 は,最初に検出した「@」の前の部分を取り出して,それを整序に用い,最初の「@」の後の部分を実際の項目として取り
6772 出します.現在のところ,\SpecialChar LyX
6773 はエスケープされた「@」を取り扱わないので,電子メールアドレスを索引に使わないでください.
6774 \end_layout
6775
6776 \begin_layout Itemize
6777 索引項目のレイアウト: 項目は,テキスト様式ダイアログを使うなり,\SpecialChar LyX
6778 内で使用可能な方法を用いることで,索引項目を成形することができます.「項目|textbf」のよ
6779 うな文法はサポートされません.\SpecialChar LyX
6780 は,項目内にパイプ記号「|」を検出すると,パイプ記号とその後に続くものすべてを削除してしまいます.
6781 \end_layout
6782
6783 \begin_layout Itemize
6784 複数の索引: 複数の索引はサポートされていません.すべての項目は,ひとつの大きな索引として印字されます.索引が何度も印字されることを防ぐため,中心となる索引だけ
6785 を印字しますので,その索引は必ず置くようにしてください.
6786 \end_layout
6787
6788 \begin_layout Section
6789 記号一覧および用語集
6790 \end_layout
6791
6792 \begin_layout Standard
6793 現在のところ,用語集のサポートはありません.この機能の追加は,比較的容易だと思われますので,あなたの貢献をお待ちしております.
6794 \end_layout
6795
6796 \begin_layout Chapter
6797 \SpecialChar LyX
6798 サーバー
6799 \end_layout
6800
6801 \begin_layout Section
6802 はじめに
6803 \end_layout
6804
6805 \begin_layout Standard
6806 「\SpecialChar LyX
6807 サーバー」を使用すると,他のプログラムが,\SpecialChar LyX
6808 と通信したり,\SpecialChar LyX
6809 コマンドを実行させたり,\SpecialChar LyX
6810 の内部状態に関する情報を取得したりすることができるようになります.これは熟練し
6811 たユーザー向けの機能ですが,便利なはずです.たとえば,\SpecialChar LyX
6812 サーバーに書き込むことによって,JabRefのような書誌情報管理ソフトが,LyXに文献引用を「押し込む」こ
6813 とが可能となります.
6814 \end_layout
6815
6816 \begin_layout Section
6817 \SpecialChar LyX
6818 サーバーを開始するには
6819 \begin_inset CommandInset label
6820 LatexCommand label
6821 name "sec:サーバーを開始するには"
6822
6823 \end_inset
6824
6825
6826 \end_layout
6827
6828 \begin_layout Standard
6829 \SpecialChar LyX
6830 サーバーは,名前をつけたパイプの対を利用することで機能します.パイプは,通常
6831 \begin_inset Flex Code
6832 status collapsed
6833
6834 \begin_layout Plain Layout
6835 UserDir
6836 \end_layout
6837
6838 \end_inset
6839
6840 の下に作られ(Windowsを除く.Windowsでは,名前を付けた
6841 \emph on
6842 ローカルの
6843 \emph default
6844 パイプは
6845 \begin_inset Flex Code
6846 status collapsed
6847
6848 \begin_layout Plain Layout
6849
6850 \backslash
6851
6852 \backslash
6853 .
6854 \backslash
6855 pipe
6856 \end_layout
6857
6858 \end_inset
6859
6860 に特別なオブジェクトとして置かれます),「
6861 \begin_inset Flex Code
6862 status collapsed
6863
6864 \begin_layout Plain Layout
6865 .lyxpipe.in
6866 \end_layout
6867
6868 \end_inset
6869
6870 」および「
6871 \begin_inset Flex Code
6872 status collapsed
6873
6874 \begin_layout Plain Layout
6875 .lyxpipe.out
6876 \end_layout
6877
6878 \end_inset
6879
6880 」という名前がついています.外部プログラムは,
6881 \begin_inset Flex Code
6882 status collapsed
6883
6884 \begin_layout Plain Layout
6885 .lyxpipe.in
6886 \end_layout
6887
6888 \end_inset
6889
6890 に書き込みを行い,戻りデータを
6891 \begin_inset Flex Code
6892 status collapsed
6893
6894 \begin_layout Plain Layout
6895 .lyxpipe.out
6896 \end_layout
6897
6898 \end_inset
6899
6900 から読み出します.パイプ名の語幹は,
6901 \begin_inset Flex MenuItem
6902 status collapsed
6903
6904 \begin_layout Plain Layout
6905 ツール\SpecialChar menuseparator
6906 設定
6907 \end_layout
6908
6909 \end_inset
6910
6911 から,たとえば「
6912 \begin_inset Flex Code
6913 status collapsed
6914
6915 \begin_layout Plain Layout
6916 /home/myhome/lyxpipe
6917 \end_layout
6918
6919 \end_inset
6920
6921 」あるいはWindowsでは「
6922 \begin_inset Flex Code
6923 status collapsed
6924
6925 \begin_layout Plain Layout
6926
6927 \backslash
6928
6929 \backslash
6930 .
6931 \backslash
6932 pipe
6933 \backslash
6934 lyxpipe
6935 \end_layout
6936
6937 \end_inset
6938
6939 」などに設定することができます(ここで,lyxpipe以外の任意のファイルパス,例えば
6940 \begin_inset Flex Code
6941 status collapsed
6942
6943 \begin_layout Plain Layout
6944 "
6945 \backslash
6946
6947 \backslash
6948 .
6949 \backslash
6950 pipe
6951 \backslash
6952 my
6953 \backslash
6954 lyx
6955 \backslash
6956 pipe"
6957 \end_layout
6958
6959 \end_inset
6960
6961 なども使用できます).サーバーを開始するためには,これを
6962 \emph on
6963 手動で設定しなくてはなりません
6964 \emph default
6965
6966 \end_layout
6967
6968 \begin_layout Standard
6969 \SpecialChar LyX
6970 は,パイプを生成するに際して,「
6971 \begin_inset Flex Code
6972 status collapsed
6973
6974 \begin_layout Plain Layout
6975 .in
6976 \end_layout
6977
6978 \end_inset
6979
6980 」および「
6981 \begin_inset Flex Code
6982 status collapsed
6983
6984 \begin_layout Plain Layout
6985 .out
6986 \end_layout
6987
6988 \end_inset
6989
6990 」を付け加えます.パイプがすでに存在していれば,\SpecialChar LyX
6991 は他の\SpecialChar LyX
6992 プロセスがすでに実行中であると判断して,サーバーを開始しません.POSIX(Unix型)システムでは,なん
6993 らかの理由で,\SpecialChar LyX
6994 が終了する際に使用されていない「古い」パイプが削除されずに残ったりすると,\SpecialChar LyX
6995 はこれを削除しようとします.何らかの理由でこれが失敗した場合,手動でパイ
6996 プを削除したのちに,\SpecialChar LyX
6997 を再起動する必要があります.Windowsでは,プログラムが終了したりクラッシュしたりすると,OSがパイプを削除するので,「古い」パイプが残
6998 ることはありません.
6999 \end_layout
7000
7001 \begin_layout Standard
7002 サーバーを使用する\SpecialChar LyX
7003 プロセスを複数起動するには,それぞれのプロセスに,別のユーザーディレクトリを使用させたり,別々の
7004 \begin_inset Flex Code
7005 status collapsed
7006
7007 \begin_layout Plain Layout
7008 preferences
7009 \end_layout
7010
7011 \end_inset
7012
7013 ファイルを使用させるなど,別々の設定を使用する必要があります.
7014 \end_layout
7015
7016 \begin_layout Standard
7017 クライアントプログラムを開発しようとされているのであれば,\SpecialChar LyX
7018 サーバーからのデバッグ情報を有効にすると便利かもしれません.そのためには,Lyxを
7019 \begin_inset Flex Code
7020 status collapsed
7021
7022 \begin_layout Plain Layout
7023 lyx -dbg lyxserver
7024 \end_layout
7025
7026 \end_inset
7027
7028 として起動してください.
7029 \end_layout
7030
7031 \begin_layout Standard
7032 C++言語で書かれた完全なサンプルクライアントが,ソース頒布版の
7033 \begin_inset Newline newline
7034 \end_inset
7035
7036
7037 \begin_inset Flex Code
7038 status collapsed
7039
7040 \begin_layout Plain Layout
7041 development/lyxserver/server_monitor.cpp
7042 \end_layout
7043
7044 \end_inset
7045
7046 にあります.
7047 \end_layout
7048
7049 \begin_layout Standard
7050 もう一つの便利なツールとして,
7051 \begin_inset Flex Code
7052 status collapsed
7053
7054 \begin_layout Plain Layout
7055 src/client/lyxclient
7056 \end_layout
7057
7058 \end_inset
7059
7060 にあるコマンドラインベースのクライアントがあります.
7061 \end_layout
7062
7063 \begin_layout Section
7064 通常の通信
7065 \end_layout
7066
7067 \begin_layout Standard
7068 \SpecialChar LyX
7069 コールを発行するには,クライアントはASCIIテキスト行を入力パイプに書き込みまなくてはなりません.この行は,以下の書式を持ちます.
7070 \end_layout
7071
7072 \begin_layout Quote
7073 LYXCMD:
7074 \emph on
7075 クライアント名
7076 \emph default
7077 :
7078 \emph on
7079 関数
7080 \emph default
7081 :
7082 \emph on
7083 引数
7084 \end_layout
7085
7086 \begin_layout Description
7087 クライアント名 は,クライアントが自由に選べる名前です.これが用いられるのは,クライアントが他の要求クライアントから結果を見分けることができるように,\SpecialChar LyX
7088 が返答をす
7089 る際,クライアント名をエコーするときだけです.
7090 \end_layout
7091
7092 \begin_layout Description
7093 関数 は,\SpecialChar LyX
7094 に実行させたい関数です.これは,ミニバッファで使用するコマンドと同じです.
7095 \end_layout
7096
7097 \begin_layout Description
7098 引数 は,一部の関数のみに効力を持つオプションの引数です(たとえば,「自己挿入」LFUNは,現在のカーソル位置に引数を文章として挿入します).
7099 \end_layout
7100
7101 \begin_layout Standard
7102 \SpecialChar LyX
7103 からの返答は,出力パイプに送り出され,
7104 \end_layout
7105
7106 \begin_layout Quote
7107 INFO:
7108 \emph on
7109 クライアント名
7110 \emph default
7111 :
7112 \emph on
7113 関数
7114 \emph default
7115 :
7116 \emph on
7117 データ
7118 \end_layout
7119
7120 \begin_layout Standard
7121 の書式をしています.ここで
7122 \emph on
7123 クライアント名
7124 \emph default
7125
7126 \emph on
7127 関数
7128 \emph default
7129 は,コマンド要求からそのままエコーされますが,
7130 \emph on
7131 データ
7132 \emph default
7133 はコマンド実行の結果に依存した,多少なりとも有用な情報です.「font-state」のような一部のコマンドは,\SpecialChar LyX
7134 の内部状態に関する情報を返しますが,空のデータ応答
7135 を返すものもあります.空のデータ返答は,コマンド実行が無事終わったことを意味します.
7136 \end_layout
7137
7138 \begin_layout Standard
7139 エラーが発生した場合の\SpecialChar LyX
7140 の返答は
7141 \end_layout
7142
7143 \begin_layout Quote
7144 ERROR:
7145 \emph on
7146 クライアント名
7147 \emph default
7148 :
7149 \emph on
7150 関数
7151 \emph default
7152 :
7153 \emph on
7154 エラーメッセージ
7155 \end_layout
7156
7157 \begin_layout Standard
7158 の書式をしており,
7159 \emph on
7160 エラーメッセージ
7161 \emph default
7162 には,なぜコマンドが失敗したかの説明が入っているはずです.
7163 \end_layout
7164
7165 \begin_layout Standard
7166 (例)
7167 \end_layout
7168
7169 \begin_layout LyX-Code
7170 echo "LYXCMD:test:beginning-of-buffer:" >~/.lyxpipe.in
7171 \begin_inset Newline newline
7172 \end_inset
7173
7174 echo "LYXCMD:test:get-xy:" >~/.lyxpipe.in
7175 \begin_inset Newline newline
7176 \end_inset
7177
7178 read a <~/.lyxpipe.out
7179 \begin_inset Newline newline
7180 \end_inset
7181
7182 echo $a
7183 \end_layout
7184
7185 \begin_layout Section
7186 通知
7187 \end_layout
7188
7189 \begin_layout Standard
7190 \SpecialChar LyX
7191 は,発生しているイベントを,非同期的にクライアントに通知することができます.いまのところ,ユーザーがある
7192 \begin_inset Flex Ruby
7193 status collapsed
7194
7195 \begin_layout Plain Layout
7196
7197 \begin_inset Argument post:1
7198 status collapsed
7199
7200 \begin_layout Plain Layout
7201 キー
7202 \end_layout
7203
7204 \end_inset
7205
7206
7207 \end_layout
7208
7209 \end_inset
7210
7211 列を関数「notify」に割り当てているときのみ,\SpecialChar LyX
7212 はこの通知を行います.\SpecialChar LyX
7213 が送る文字列の書式は
7214 \end_layout
7215
7216 \begin_layout Quote
7217 \begin_inset Flex Code
7218 status collapsed
7219
7220 \begin_layout Plain Layout
7221 NOTIFY:
7222 \end_layout
7223
7224 \end_inset
7225
7226
7227 \emph on
7228 鍵列
7229 \end_layout
7230
7231 \begin_layout Standard
7232 となっていて,
7233 \emph on
7234 鍵列
7235 \emph default
7236 は,ユーザーが実際に打鍵した鍵列の印字表現になります.
7237 \end_layout
7238
7239 \begin_layout Standard
7240 この機構は,\SpecialChar LyX
7241 のコマンド群を拡張してマクロを実装するのに使用することができます.なんらかの鍵列を「notify」に割り当ててください.それから出力パイプで待機する
7242 クライアントを起動し,鍵列に応じたコマンドを読み込み,一つないし複数の\SpecialChar LyX
7243 コマンドを発行する\SpecialChar LyX
7244 要求と\SpecialChar LyX
7245 コールを使用する関数を開始するのです.
7246 \end_layout
7247
7248 \begin_layout Section
7249 単純な\SpecialChar LyX
7250 サーバープロトコル
7251 \end_layout
7252
7253 \begin_layout Standard
7254 \SpecialChar LyX
7255 は,セッション管理に使用することができる単純なプロトコルを実装しています.メッセージは,すべて
7256 \end_layout
7257
7258 \begin_layout Quote
7259 LYXSRV:
7260 \emph on
7261 クライアント名
7262 \emph default
7263 :
7264 \emph on
7265 プロトコルメッセージ
7266 \end_layout
7267
7268 \begin_layout Standard
7269 の書式をしており,
7270 \emph on
7271 プロトコルメッセージ
7272 \emph default
7273 は「hello」ないし「bye」です.クライアントから「hello」を受け取ると,\SpecialChar LyX
7274 はメッセージを聴いていることをクライアントに伝えるために返答をし,\SpecialChar LyX
7275 が終了するこ
7276 とをクライアントに伝えるのには,\SpecialChar LyX
7277 が「bye」を送信します.
7278 \end_layout
7279
7280 \begin_layout Section
7281 DVIとPDFの遡及検索
7282 \end_layout
7283
7284 \begin_layout Standard
7285 DVI/PDFビューア
7286 \begin_inset Foot
7287 status collapsed
7288
7289 \begin_layout Plain Layout
7290 PDFの遡及検索機能を提供しているビューアには,KDE/Linux上のOkularと
7291 \lang english
7292 Qpdfview on Unix
7293 \lang japanese
7294 とMac OS X上のSkim,Windows上のSumatraPDFがあります.
7295 \end_layout
7296
7297 \end_inset
7298
7299 には,遡及検索(reverse searchないしinverse searchと呼ばれます)機能を提供しているものがあります.これを使えば,DVI/PDF出力の
7300 特定の場所をクリックすることによって,\SpecialChar LyX
7301 の文書中で対応する行にカーソルを移動させることができます.これを実現するためには,ビューアは\SpecialChar LyX
7302 と情報交換を行う必要があります
7303 .これは,命名パイプ(
7304 \emph on
7305 lyxpipe
7306 \emph default
7307 )を使用するか,\SpecialChar LyX
7308 が作業ディレクトリに生成するUNIXドメインソケット(
7309 \emph on
7310 lyxsocket
7311 \emph default
7312 )を使用する(これは
7313 \begin_inset Flex Code
7314 status collapsed
7315
7316 \begin_layout Plain Layout
7317 lyxclient
7318 \end_layout
7319
7320 \end_inset
7321
7322 プログラムが\SpecialChar LyX
7323 と通信するのに使用している方法です)ことで,\SpecialChar LyX
7324 サーバを経由して実現することができます.場合によっては,ビューアと\SpecialChar LyX
7325 を橋渡しする補助スクリプトを必要とする
7326 ことがあるかもしれませんが,それ以外は,ビューアは\SpecialChar LyX
7327 と直接通信することができます.これは,選んだビューアと基本ソフトに依存します.また,必要とされるビューアの設定
7328 法と遡及検索が実際に行われる方法とにも依存します.したがって,下記では個々のビューア毎の遡及検索の設定の仕方を説明することとします.その前に,DVI/PDF出力
7329 で遡及検索を有効にするためには,一般に何が必要とされるかを説明します.
7330 \end_layout
7331
7332 \begin_layout Subsection
7333 \begin_inset CommandInset label
7334 LatexCommand label
7335 name "subsec:遡及検索"
7336
7337 \end_inset
7338
7339 自動有効化
7340 \end_layout
7341
7342 \begin_layout Standard
7343 ツールバーで
7344 \begin_inset Info
7345 type  "icon"
7346 arg   "buffer-toggle-output-sync"
7347 \end_inset
7348
7349 ボタンを押せば,ほとんどの場合,\SpecialChar LyX
7350 がすべてをうまくこなしてくれます.あるいは,
7351 \begin_inset Flex MenuItem
7352 status collapsed
7353
7354 \begin_layout Plain Layout
7355 文書\SpecialChar menuseparator
7356 設定\SpecialChar menuseparator
7357 形式
7358 \end_layout
7359
7360 \end_inset
7361
7362 メニューで
7363 \begin_inset Flex MenuItem
7364 status collapsed
7365
7366 \begin_layout Plain Layout
7367 出力と同期
7368 \end_layout
7369
7370 \end_inset
7371
7372 にチェックを入れることで有効にすることもできます.その場合,\SpecialChar LyX
7373 は,自動的に,必要なSync\SpecialChar TeX
7374 マクロ(PDFの場合)や,srcltxパッケージ(DVIの場合)を挿入し
7375 てくれます.このオプションは,
7376 \begin_inset Flex MenuItem
7377 status collapsed
7378
7379 \begin_layout Plain Layout
7380 表示/更新
7381 \end_layout
7382
7383 \end_inset
7384
7385 ツールバーからも容易にアクセスすることができます.
7386 \end_layout
7387
7388 \begin_layout Standard
7389 もし,これとは別の設定が必要な場合には,
7390 \begin_inset Flex MenuItem
7391 status collapsed
7392
7393 \begin_layout Plain Layout
7394 文書\SpecialChar menuseparator
7395 設定\SpecialChar menuseparator
7396 出力\SpecialChar menuseparator
7397 出力と同期
7398 \end_layout
7399
7400 \end_inset
7401
7402 の直下にあるドロップダウンボックスから,自製マクロを選択ないし入力することができます.
7403 \end_layout
7404
7405 \begin_layout Standard
7406 方式として
7407 \begin_inset Flex Code
7408 status collapsed
7409
7410 \begin_layout Plain Layout
7411
7412 \backslash
7413 synctex=1
7414 \end_layout
7415
7416 \end_inset
7417
7418 を用いると,gzip圧縮が有効となることに注意してください.使用しているビューアがgzip圧縮をサポートしていない場合には,代わりに
7419 \begin_inset Flex Code
7420 status collapsed
7421
7422 \begin_layout Plain Layout
7423
7424 \backslash
7425 synctex=-1
7426 \end_layout
7427
7428 \end_inset
7429
7430 を指定してください.
7431 \end_layout
7432
7433 \begin_layout Standard
7434 また,
7435 \begin_inset Flex Code
7436 status collapsed
7437
7438 \begin_layout Plain Layout
7439 srcltx
7440 \end_layout
7441
7442 \end_inset
7443
7444 パッケージや
7445 \begin_inset Flex Code
7446 status collapsed
7447
7448 \begin_layout Plain Layout
7449 src-specials
7450 \end_layout
7451
7452 \end_inset
7453
7454 を取り込むと,組版上,不具合が生じることがあるのでご注意ください.したがって,
7455 \begin_inset Flex Code
7456 status collapsed
7457
7458 \begin_layout Plain Layout
7459 srcltx
7460 \end_layout
7461
7462 \end_inset
7463
7464 パッケージや
7465 \begin_inset Flex Code
7466 status collapsed
7467
7468 \begin_layout Plain Layout
7469 src-specials
7470 \end_layout
7471
7472 \end_inset
7473
7474 を使用している場合には,最終版を組版する際には,出力同期を無効にするべきです.
7475 \end_layout
7476
7477 \begin_layout Standard
7478 自動設定でカバーされている範囲よりも,さらに特殊なものが必要な場合には,出力同期を手動で設定する仕方を述べた次節をお読みください.自動設定で事足りる場合には,自
7479 動設定・手動設定ともに必要となるビューア上の設定を述べた,第
7480 \begin_inset CommandInset ref
7481 LatexCommand ref
7482 reference "subsec:特定のビューアを設定して使うには"
7483
7484 \end_inset
7485
7486 節に進むことができます.
7487 \end_layout
7488
7489 \begin_layout Subsection
7490 手動有効化
7491 \end_layout
7492
7493 \begin_layout Standard
7494 \SpecialChar LaTeX
7495 は,遡及検索のために複数の方法を提供しています.ある方法は
7496 \begin_inset Flex Code
7497 status collapsed
7498
7499 \begin_layout Plain Layout
7500 latex/pdflatex
7501 \end_layout
7502
7503 \end_inset
7504
7505 プログラムに組み込まれており,他の方法は外部パッケージとして提供されています.どちらを選択するかは,お使いの\SpecialChar LaTeX
7506 頒布版が既に特定の方法を提供しているか(組み込みによ
7507 る方法は比較的新しいものです)と,お使いのビューアがそれに対応しているかに依存します.使用可能な方法を以下に述べます.
7508 \end_layout
7509
7510 \begin_layout Subsubsection*
7511 src-special経由のDVI組み込み検索(DVIのみ)
7512 \end_layout
7513
7514 \begin_layout Standard
7515 この方法は,DVIファイルに遡及検索に必要な情報を追加するものです.これは,かなり前の\SpecialChar LaTeX
7516 から利用可能となっており(比較的最近の\SpecialChar LaTeX
7517 頒布版はすべて対応しています),安定
7518 して動作します.これを有効にするには,
7519 \begin_inset Flex MenuItem
7520 status collapsed
7521
7522 \begin_layout Plain Layout
7523 設定\SpecialChar menuseparator
7524 ファイル処理\SpecialChar menuseparator
7525 変換子
7526 \end_layout
7527
7528 \end_inset
7529
7530
7531 \begin_inset Flex MenuItem
7532 status collapsed
7533
7534 \begin_layout Plain Layout
7535 LaTeX (plain)->DVI
7536 \end_layout
7537
7538 \end_inset
7539
7540 ないし
7541 \begin_inset Flex MenuItem
7542 status collapsed
7543
7544 \begin_layout Plain Layout
7545 LaTeX (plain)->DraftDVI
7546 \end_layout
7547
7548 \end_inset
7549
7550 変換子を
7551 \begin_inset Flex Code
7552 status collapsed
7553
7554 \begin_layout Plain Layout
7555 latex -src-specials $$i
7556 \end_layout
7557
7558 \end_inset
7559
7560 に変更します.もしこれが動作しないときは,お使いの\SpecialChar LaTeX
7561 エンジンが違うオプションを必要としていないか確認してください(頒布版によっては文法の異なることがあります).
7562 \end_layout
7563
7564 \begin_layout Subsubsection*
7565 外部パッケージ(PDFSyncおよびsrcltx)
7566 \end_layout
7567
7568 \begin_layout Standard
7569
7570 \emph on
7571 pdfsync
7572 \emph default
7573 および
7574 \emph on
7575 srcltx
7576 \emph default
7577 パッケージは,PDF出力(pdflatex経由)およびDVI出力での遡及検索を提供します.これを有効にするには,\SpecialChar LyX
7578 プリアンブルで以下のようにパッケージを読み込んで
7579 ください.
7580 \end_layout
7581
7582 \begin_layout Itemize
7583 PDFの遡及検索には
7584 \begin_inset Flex Code
7585 status collapsed
7586
7587 \begin_layout Plain Layout
7588
7589 \backslash
7590 usepackage{pdfsync}
7591 \end_layout
7592
7593 \end_inset
7594
7595
7596 \end_layout
7597
7598 \begin_layout Itemize
7599 DVIの遡及検索には
7600 \begin_inset Flex Code
7601 status collapsed
7602
7603 \begin_layout Plain Layout
7604
7605 \backslash
7606 usepackage[active]{srcltx}
7607 \end_layout
7608
7609 \end_inset
7610
7611
7612 \end_layout
7613
7614 \begin_layout Standard
7615 と書きます.DVIとPDFの両方の遡及検索を実行できるようにするためには,プリアンブルに以下の行を挿入する方法があります.
7616 \end_layout
7617
7618 \begin_layout LyX-Code
7619
7620 \backslash
7621 usepackage{ifpdf}
7622 \begin_inset Newline newline
7623 \end_inset
7624
7625
7626 \backslash
7627 ifpdf
7628 \begin_inset Newline newline
7629 \end_inset
7630
7631   
7632 \backslash
7633 usepackage{pdfsync}
7634 \begin_inset Newline newline
7635 \end_inset
7636
7637
7638 \backslash
7639 else
7640 \begin_inset Newline newline
7641 \end_inset
7642
7643   
7644 \backslash
7645 usepackage[active]{srcltx}
7646 \begin_inset Newline newline
7647 \end_inset
7648
7649
7650 \backslash
7651 fi
7652 \end_layout
7653
7654 \begin_layout Standard
7655 このようにすれば,DVIでもPDF(pdflatex)でも正しいパッケージを使いながら,ファイルを閲覧することができます.
7656 \end_layout
7657
7658 \begin_layout Standard
7659 なお,PDFSyncは,文書の出力レイアウトに干渉する可能性があるので注意してください.したがって,仕上がり文書ではPDFSyncを無効にすることをお勧めします
7660
7661 \end_layout
7662
7663 \begin_layout Subsubsection*
7664 Sync\SpecialChar TeX
7665 を使った組み込み遡及検索(DVIおよびPDF)
7666 \end_layout
7667
7668 \begin_layout Standard
7669 \begin_inset Flex Code
7670 status collapsed
7671
7672 \begin_layout Plain Layout
7673 (pdf)latex
7674 \end_layout
7675
7676 \end_inset
7677
7678 の最近のバージョンは,PDFおよびDVI両方の遡及検索を組み込みでサポートしています.このいわゆる
7679 \emph on
7680 Sync\SpecialChar TeX
7681
7682 \emph default
7683 機能は,主に,PDFSyncパッケージをpdftexプログラムへ統合したことと,それをsrc-specialsアプローチへ取り込んだことの成果です.これを使用す
7684 るためには,少なくとも\SpecialChar TeX
7685 Live 2008か最近のMik\SpecialChar TeX
7686 頒布版が必要です.また,既にSync\SpecialChar TeX
7687 サポートを提供しているPDFビューアは少ししかありません(UNIX上の
7688 OkularとQpdfview,Mac上のSkim,及びWindows上のSumatraPDFなど.詳細は次節を参照のこと).
7689 \end_layout
7690
7691 \begin_layout Standard
7692 DVI出力でSync\SpecialChar TeX
7693 を有効にするには,
7694 \begin_inset Flex MenuItem
7695 status collapsed
7696
7697 \begin_layout Plain Layout
7698 設定\SpecialChar menuseparator
7699 ファイル処理\SpecialChar menuseparator
7700 変換子
7701 \end_layout
7702
7703 \end_inset
7704
7705
7706 \begin_inset Flex Noun
7707 status collapsed
7708
7709 \begin_layout Plain Layout
7710 LaTeX (plain) -> DVI
7711 \end_layout
7712
7713 \end_inset
7714
7715 ないし
7716 \begin_inset Flex Noun
7717 status collapsed
7718
7719 \begin_layout Plain Layout
7720 LaTeX (plain) -> DraftDVI
7721 \end_layout
7722
7723 \end_inset
7724
7725 変換子を
7726 \begin_inset Flex Code
7727 status collapsed
7728
7729 \begin_layout Plain Layout
7730 latex -synctex=1 $$i
7731 \end_layout
7732
7733 \end_inset
7734
7735 に変更します.PDF出力用には,
7736 \begin_inset Flex Noun
7737 status collapsed
7738
7739 \begin_layout Plain Layout
7740 LaTeX (pdflatex) -> PDF (pdflatex)
7741 \end_layout
7742
7743 \end_inset
7744
7745 変換子を
7746 \begin_inset Flex Code
7747 status collapsed
7748
7749 \begin_layout Plain Layout
7750 pdflatex -synctex=1 $$i
7751 \end_layout
7752
7753 \end_inset
7754
7755 に変更してください.お使いのビューアが下記に記述されていない場合や,万一うまくいかない場合にはまた,ビューアをSync\SpecialChar TeX
7756 で使うのに設定を行う必要があるかどうか,お
7757 使いのビューアの取扱説明書をご確認ください.
7758 \begin_inset Foot
7759 status collapsed
7760
7761 \begin_layout Plain Layout
7762 \begin_inset Flex Code
7763 status collapsed
7764
7765 \begin_layout Plain Layout
7766 -synctex=1
7767 \end_layout
7768
7769 \end_inset
7770
7771 オプションは,gzip圧縮を有効にします.お使いのビューアがgzip圧縮をサポートしていない場合には,代わりに
7772 \begin_inset Flex Code
7773 status collapsed
7774
7775 \begin_layout Plain Layout
7776 -synctex=-1
7777 \end_layout
7778
7779 \end_inset
7780
7781 を使用してください.
7782 \end_layout
7783
7784 \end_inset
7785
7786
7787 \end_layout
7788
7789 \begin_layout Subsection
7790 特定のビューアを設定して使うには
7791 \begin_inset CommandInset label
7792 LatexCommand label
7793 name "subsec:特定のビューアを設定して使うには"
7794
7795 \end_inset
7796
7797
7798 \end_layout
7799
7800 \begin_layout Subsubsection*
7801 Xdvi(全プラットフォーム)
7802 \end_layout
7803
7804 \begin_layout Standard
7805 \SpecialChar LyX
7806 は,
7807 \begin_inset Flex Code
7808 status collapsed
7809
7810 \begin_layout Plain Layout
7811 lyxclient
7812 \end_layout
7813
7814 \end_inset
7815
7816 プログラムを自動的に使うのに必要なフックを,既に提供しているので,
7817 \begin_inset Flex Code
7818 status collapsed
7819
7820 \begin_layout Plain Layout
7821 xdvi
7822 \end_layout
7823
7824 \end_inset
7825
7826 を使用する場合には,DVI遡及検索を実行するのに他にするべきことはありません.使用中の文書を上記で述べたように設定するだけです(遡及検索は,Ctrl-クリックか
7827 ,Mac OS X上ではAlt-クリックで始動します).
7828 \end_layout
7829
7830 \begin_layout Standard
7831 しかし,何らかの理由で,\SpecialChar LyX
7832 と通信するのにソケットではなく命名パイプを使用したい場合には,
7833 \begin_inset Flex MenuItem
7834 status collapsed
7835
7836 \begin_layout Plain Layout
7837 設定\SpecialChar menuseparator
7838 ファイル処理\SpecialChar menuseparator
7839 ファイル書式
7840 \end_layout
7841
7842 \end_inset
7843
7844 のDVIビューアを
7845 \begin_inset Flex Code
7846 status collapsed
7847
7848 \begin_layout Plain Layout
7849 xdvi -editor "lyxeditor.sh %f %l"
7850 \end_layout
7851
7852 \end_inset
7853
7854
7855 \begin_inset Flex Code
7856 status collapsed
7857
7858 \begin_layout Plain Layout
7859 lyxeditor.sh
7860 \end_layout
7861
7862 \end_inset
7863
7864 は適切なスクリプト名)に変更してください
7865 \begin_inset Foot
7866 status collapsed
7867
7868 \begin_layout Plain Layout
7869 Mac OS X上では,
7870 \begin_inset Flex Code
7871 status collapsed
7872
7873 \begin_layout Plain Layout
7874 DISPLAY=:0.0 xdvi -editor "lyxeditor.sh %f %l"
7875 \end_layout
7876
7877 \end_inset
7878
7879 としなくてはなりません.
7880 \end_layout
7881
7882 \end_inset
7883
7884 .たとえば,最低限のシェルスクリプトは
7885 \end_layout
7886
7887 \begin_layout LyX-Code
7888 #!/bin/sh
7889 \begin_inset Newline newline
7890 \end_inset
7891
7892 LYXPIPE="/path/to/lyxpipe"
7893 \begin_inset Newline newline
7894 \end_inset
7895
7896 COMMAND="LYXCMD:revdvi:server-goto-file-row:$1 $2"
7897 \begin_inset Newline newline
7898 \end_inset
7899
7900 echo "$COMMAND" > "${LYXPIPE}".in || exit
7901 \begin_inset Newline newline
7902 \end_inset
7903
7904 read TMP < "${LYXPIPE}".out || exit
7905 \end_layout
7906
7907 \begin_layout Standard
7908 のようになります.ここで
7909 \begin_inset Flex Code
7910 status collapsed
7911
7912 \begin_layout Plain Layout
7913 /path/to/lyxpipe
7914 \end_layout
7915
7916 \end_inset
7917
7918 は,
7919 \begin_inset Flex MenuItem
7920 status collapsed
7921
7922 \begin_layout Plain Layout
7923 設定\SpecialChar menuseparator
7924 パス
7925 \end_layout
7926
7927 \end_inset
7928
7929 で指定したLyXServerパイプのパスを指定してください.
7930 \begin_inset Foot
7931 status collapsed
7932
7933 \begin_layout Plain Layout
7934 ソース頒布版の
7935 \begin_inset Flex Code
7936 status collapsed
7937
7938 \begin_layout Plain Layout
7939 development/tools
7940 \end_layout
7941
7942 \end_inset
7943
7944 フォルダには,ユーザが設定した
7945 \emph on
7946 lyxpipe
7947 \emph default
7948 を探し出す
7949 \begin_inset Flex Code
7950 status collapsed
7951
7952 \begin_layout Plain Layout
7953 lyxeditor
7954 \end_layout
7955
7956 \end_inset
7957
7958 スクリプトがあります.
7959 \end_layout
7960
7961 \end_inset
7962
7963
7964 \end_layout
7965
7966 \begin_layout Subsubsection*
7967 MacDviX(Mac OS X)
7968 \end_layout
7969
7970 \begin_layout Standard
7971 \begin_inset Flex Code
7972 status collapsed
7973
7974 \begin_layout Plain Layout
7975 /Applications/MacDviX_Folder/calleditor.script
7976 \end_layout
7977
7978 \end_inset
7979
7980 の終わりに
7981 \end_layout
7982
7983 \begin_layout LyX-Code
7984 /Applications/LyX.app/Contents/MacOS/lyxeditor "$2" $1
7985 \begin_inset Newline newline
7986 \end_inset
7987
7988 exit 1
7989 \end_layout
7990
7991 \begin_layout Standard
7992 という行を付け加えてください.Applicationsフォルダ以外の場所に\SpecialChar LyX
7993 を導入した場合には,それに従って上記の行を修正してください.
7994 \end_layout
7995
7996 \begin_layout Standard
7997 遡及検索は,Alt-クリック(OPTION-クリック)で始動します.
7998 \end_layout
7999
8000 \begin_layout Subsubsection*
8001 Skim(Mac OS X)
8002 \end_layout
8003
8004 \begin_layout Standard
8005 \begin_inset Flex MenuItem
8006 status collapsed
8007
8008 \begin_layout Plain Layout
8009 設定\SpecialChar menuseparator
8010 ファイル処理\SpecialChar menuseparator
8011 ファイル書式\SpecialChar menuseparator
8012 PDF (pdflatex)
8013 \end_layout
8014
8015 \end_inset
8016
8017 のビューア設定に
8018 \begin_inset Flex Code
8019 status collapsed
8020
8021 \begin_layout Plain Layout
8022 open -a Skim.app $$i
8023 \end_layout
8024
8025 \end_inset
8026
8027 と入力し,
8028 \begin_inset Flex MenuItem
8029 status collapsed
8030
8031 \begin_layout Plain Layout
8032 Skim\SpecialChar menuseparator
8033 設定\SpecialChar menuseparator
8034 Sync
8035 \end_layout
8036
8037 \end_inset
8038
8039 でLyXを選択してください.
8040 \end_layout
8041
8042 \begin_layout Standard
8043 遡及検索は,COMMAND-SHIFT-クリックで始動します.
8044 \end_layout
8045
8046 \begin_layout Subsubsection*
8047 Evince(GNOME)
8048 \end_layout
8049
8050 \begin_layout Standard
8051 Evinceでは遡及検索はそのままでは動きませんが,サードパーティのヘルパースクリプトを使用すれば,利用可能になります.詳細については,
8052 \begin_inset CommandInset href
8053 LatexCommand href
8054 target "https://wiki.lyx.org/LyX/SyncTeX"
8055 literal "false"
8056
8057 \end_inset
8058
8059 を参照してください.
8060 \end_layout
8061
8062 \begin_layout Subsubsection*
8063 Okular(KDE)
8064 \end_layout
8065
8066 \begin_layout Standard
8067 \begin_inset Flex Noun
8068 status collapsed
8069
8070 \begin_layout Plain Layout
8071 設定\SpecialChar menuseparator
8072 Okularを設定\SpecialChar menuseparator
8073 エディタ
8074 \end_layout
8075
8076 \end_inset
8077
8078 で「Lyxクライアント」をエディタとして選択してください.これによって適切なコマンド(
8079 \begin_inset Flex Code
8080 status collapsed
8081
8082 \begin_layout Plain Layout
8083 lyxclient -g %f %l
8084 \end_layout
8085
8086 \end_inset
8087
8088 )が挿入されます.
8089 \end_layout
8090
8091 \begin_layout Standard
8092 遡及検索は,SHIFT-クリックで始動します.
8093 \end_layout
8094
8095 \begin_layout Subsubsection*
8096 Qpdfview(UNIX)
8097 \end_layout
8098
8099 \begin_layout Standard
8100 Qpdfviewは,第0.3.5版以降,Sync\SpecialChar TeX
8101 をサポートしています.
8102 \begin_inset Flex MenuItem
8103 status collapsed
8104
8105 \begin_layout Plain Layout
8106 Edit\SpecialChar menuseparator
8107 Settings\SpecialChar menuseparator
8108 Behavior
8109 \end_layout
8110
8111 \end_inset
8112
8113 を開いて「Source editor」項目の入力フィールドをクリックし,
8114 \begin_inset Flex Code
8115 status collapsed
8116
8117 \begin_layout Plain Layout
8118 lyxclient -g %1 %2
8119 \end_layout
8120
8121 \end_inset
8122
8123 というコマンドを入力してください.
8124 \end_layout
8125
8126 \begin_layout Standard
8127 遡及検索は,ダブルクリックで始動します.
8128 \end_layout
8129
8130 \begin_layout Subsubsection*
8131 YAP(Windows)
8132 \end_layout
8133
8134 \begin_layout Standard
8135 yapを起動し,
8136 \begin_inset Flex MenuItem
8137 status collapsed
8138
8139 \begin_layout Plain Layout
8140 View\SpecialChar menuseparator
8141 Options
8142 \end_layout
8143
8144 \end_inset
8145
8146 メニューを選択し,「Inverse DVI Search」タブを選択します.「New\SpecialChar ldots
8147 」ボタンをクリックして開くウィンドウの「Name:」フィールドに「\SpecialChar LyX
8148
8149  Editor」(または自分の好きな名称)と入力してください.「\SpecialChar ldots
8150 」というラベルのボタンをクリックしてファイルダイアログを開き,バッチファイル
8151 \begin_inset Flex Code
8152 status collapsed
8153
8154 \begin_layout Plain Layout
8155 lyxeditor.bat
8156 \end_layout
8157
8158 \end_inset
8159
8160 (以下参照)のあるディレクトリを見つけます.
8161 \begin_inset Flex Code
8162 status collapsed
8163
8164 \begin_layout Plain Layout
8165 lyxeditor.bat
8166 \end_layout
8167
8168 \end_inset
8169
8170 を選択してプログラムの引数を
8171 \begin_inset Flex Code
8172 status collapsed
8173
8174 \begin_layout Plain Layout
8175 %f %l
8176 \end_layout
8177
8178 \end_inset
8179
8180 と指定してください.
8181 \begin_inset Flex Code
8182 status collapsed
8183
8184 \begin_layout Plain Layout
8185 lyxeditor.bat
8186 \end_layout
8187
8188 \end_inset
8189
8190 は,
8191 \emph on
8192 lyxpipe
8193 \emph default
8194 を通じて\SpecialChar LyX
8195 と通信するためのラッパとして使用され,以下のようになっています.
8196 \end_layout
8197
8198 \begin_layout LyX-Code
8199 @echo off
8200 \begin_inset Newline newline
8201 \end_inset
8202
8203 echo LYXCMD:revdvi:server-goto-file-row:%~1 %2> 
8204 \backslash
8205
8206 \backslash
8207 .
8208 \backslash
8209 pipe
8210 \backslash
8211 lyxpipe.in
8212 \begin_inset Newline newline
8213 \end_inset
8214
8215 type 
8216 \backslash
8217
8218 \backslash
8219 .
8220 \backslash
8221 pipe
8222 \backslash
8223 lyxpipe.out
8224 \end_layout
8225
8226 \begin_layout Standard
8227 \SpecialChar LyX
8228 で指定した\SpecialChar LyX
8229 Serverパイプパスが,
8230 \begin_inset Flex Code
8231 status collapsed
8232
8233 \begin_layout Plain Layout
8234
8235 \backslash
8236
8237 \backslash
8238 .
8239 \backslash
8240 pipe
8241 \backslash
8242 lyxpipe
8243 \end_layout
8244
8245 \end_inset
8246
8247 となっていることを確認するか,
8248 \begin_inset Flex Code
8249 status collapsed
8250
8251 \begin_layout Plain Layout
8252 lyxeditor.bat
8253 \end_layout
8254
8255 \end_inset
8256
8257 ラッパの方を適切に修正してください.
8258 \end_layout
8259
8260 \begin_layout Standard
8261 yapでは,遡及検索はダブルクリックで始動します.
8262 \end_layout
8263
8264 \begin_layout Subsubsection*
8265 SumatraPDF(Windows)
8266 \end_layout
8267
8268 \begin_layout Standard
8269 SumatraPDFを遡及検索で使用するためには,
8270 \begin_inset Flex MenuItem
8271 status collapsed
8272
8273 \begin_layout Plain Layout
8274 設定\SpecialChar menuseparator
8275 ファイル処理\SpecialChar menuseparator
8276 ファイル書式\SpecialChar menuseparator
8277 PDF (pdflatex)
8278 \end_layout
8279
8280 \end_inset
8281
8282 のビューア設定で
8283 \begin_inset Flex Code
8284 status collapsed
8285
8286 \begin_layout Plain Layout
8287 SumatraPDF -inverse-search "lyxeditor.bat "%f" %l"
8288 \end_layout
8289
8290 \end_inset
8291
8292
8293 \begin_inset Flex Code
8294 status collapsed
8295
8296 \begin_layout Plain Layout
8297 lyxeditor.bat
8298 \end_layout
8299
8300 \end_inset
8301
8302 は上記のラッパ)と入力してください.SumatraPDF.exeがコマンドPATHにない場合,フルファイル名を使用してください.
8303 \end_layout
8304
8305 \begin_layout Standard
8306 遡及検索はダブルクリックで始動します.
8307 \end_layout
8308
8309 \begin_layout Subsubsection*
8310 YAP(Cygwin)
8311 \end_layout
8312
8313 \begin_layout Standard
8314 まずはじめに,yapがWindows環境での既定のDVIビューアになっていることを確認してから,yapを起動し,
8315 \begin_inset Flex MenuItem
8316 status collapsed
8317
8318 \begin_layout Plain Layout
8319 View\SpecialChar menuseparator
8320 Options
8321 \end_layout
8322
8323 \end_inset
8324
8325 メニューを選択し,「Inverse DVI Search」タブを選択します.「New\SpecialChar ldots
8326 」ボタンをクリックして開くウィンドウの「Name:」フィールドに「\SpecialChar LyX
8327
8328  Editor」(または自分の好きな名称)と入力してください.「\SpecialChar ldots
8329 」というラベルのボタンをクリックしてファイルダイアログを開き,バッチファイル
8330 \begin_inset Flex Code
8331 status collapsed
8332
8333 \begin_layout Plain Layout
8334 lyxeditor.exe
8335 \end_layout
8336
8337 \end_inset
8338
8339 プログラム(これは,Cygwinでは既定で\SpecialChar LyX
8340 実行ファイルとともに導入されます)のあるディレクトリを見つけます.
8341 \begin_inset Flex Code
8342 status collapsed
8343
8344 \begin_layout Plain Layout
8345 lyxeditor.exe
8346 \end_layout
8347
8348 \end_inset
8349
8350 を選択してプログラムの引数を
8351 \begin_inset Flex Code
8352 status collapsed
8353
8354 \begin_layout Plain Layout
8355 -g %f %l
8356 \end_layout
8357
8358 \end_inset
8359
8360 と指定してください.これによって,\SpecialChar LyX
8361 との通信に
8362 \emph on
8363 lyxsocket
8364 \emph default
8365 が使用されるようになります.何らかの理由で
8366 \emph on
8367 lyxpipe
8368 \emph default
8369 を使用したい場合には,
8370 \begin_inset Flex Code
8371 status collapsed
8372
8373 \begin_layout Plain Layout
8374 -g
8375 \end_layout
8376
8377 \end_inset
8378
8379 オプションを削除して,\SpecialChar LyX
8380 設定で\SpecialChar LyX
8381 Serverパイプパスを指定することを忘れないでください.
8382 \end_layout
8383
8384 \begin_layout Standard
8385 yapでは,遡及検索はダブルクリックで始動します.
8386 \end_layout
8387
8388 \begin_layout Subsubsection*
8389 SumatraPDF(Cygwin)
8390 \end_layout
8391
8392 \begin_layout Standard
8393 SumatraPDFを遡及検索で使用するためには,
8394 \begin_inset Flex MenuItem
8395 status collapsed
8396
8397 \begin_layout Plain Layout
8398 設定\SpecialChar menuseparator
8399 ファイル処理\SpecialChar menuseparator
8400 ファイル書式\SpecialChar menuseparator
8401 PDF (pdflatex)
8402 \end_layout
8403
8404 \end_inset
8405
8406 のビューア設定で
8407 \begin_inset Flex Code
8408 status collapsed
8409
8410 \begin_layout Plain Layout
8411 SumatraPDF.sh
8412 \end_layout
8413
8414 \end_inset
8415
8416 と入力してください.ここで
8417 \begin_inset Flex Code
8418 status collapsed
8419
8420 \begin_layout Plain Layout
8421 SumatraPDF.sh
8422 \end_layout
8423
8424 \end_inset
8425
8426 は以下のようなスクリプトです(お使いのコマンドパスに置きます.
8427 \begin_inset Flex Code
8428 status collapsed
8429
8430 \begin_layout Plain Layout
8431 /usr/local/bin
8432 \end_layout
8433
8434 \end_inset
8435
8436 がもっとも良い選択肢でしょう).
8437 \end_layout
8438
8439 \begin_layout LyX-Code
8440 #!/bin/bash
8441 \begin_inset Newline newline
8442 \end_inset
8443
8444 cd $(dirname $1)
8445 \begin_inset Newline newline
8446 \end_inset
8447
8448 SumatraPDF -inverse-search "lyxeditor -g %f %l" $(basename $1)
8449 \end_layout
8450
8451 \begin_layout Standard
8452 SumatraPDFは,Windowsネイティブのアプリケーションであり,\SpecialChar LyX
8453 のCygwin版が使用するPOSIXパスを理解しないので,このラッパスクリプトが必要と
8454 なります.SumatraPDF.exeがお使いのコマンドパスにない場合は,上記のスクリプトでPOSIXのフルパスを使用してください.
8455 \begin_inset Flex Code
8456 status collapsed
8457
8458 \begin_layout Plain Layout
8459 -g
8460 \end_layout
8461
8462 \end_inset
8463
8464
8465 \emph on
8466 lyxsocket
8467 \emph default
8468 経由の通信を有効にします.ここでも,
8469 \emph on
8470 lyxpipe
8471 \emph default
8472 を使用したい場合には,
8473 \begin_inset Flex Code
8474 status collapsed
8475
8476 \begin_layout Plain Layout
8477 -g
8478 \end_layout
8479
8480 \end_inset
8481
8482 オプションを削除して,\SpecialChar LyX
8483 設定で\SpecialChar LyX
8484 Serverパイプパスを指定することを忘れないでください.
8485 \end_layout
8486
8487 \begin_layout Standard
8488 遡及検索はダブルクリックで始動します.
8489 \end_layout
8490
8491 \begin_layout Section
8492 順検索
8493 \end_layout
8494
8495 \begin_layout Standard
8496 順検索とは,名前が示すとおり,いわば遡及検索の「逆」を意味します.すなわち,\SpecialChar LyX
8497 内部から,ビューアに特定の箇所を表示させることを可能にします.(以下に説明するように
8498 )もし順検索の準備ができていれば,カーソルを\SpecialChar LyX
8499 文書の好きなところに置いて,
8500 \begin_inset Flex MenuItem
8501 status collapsed
8502
8503 \begin_layout Plain Layout
8504 移動\SpecialChar menuseparator
8505 順検索
8506 \end_layout
8507
8508 \end_inset
8509
8510 を選択すると(あるいはマウスの右クリックで表示される文脈依存メニューから
8511 \begin_inset Flex MenuItem
8512 status collapsed
8513
8514 \begin_layout Plain Layout
8515 順検索
8516 \end_layout
8517
8518 \end_inset
8519
8520 を選択してもよい),ビューアも同じ箇所に移動します.もちろん,使用しているビューアが,この機能をサポートしていなくてはなりません.
8521 \end_layout
8522
8523 \begin_layout Standard
8524 順検索を有効にするためには,生成されたPDF/DVI出力ファイルに,\SpecialChar TeX
8525 ソースに関する情報を追加する必要があります.これは,第
8526 \begin_inset CommandInset ref
8527 LatexCommand ref
8528 reference "subsec:遡及検索"
8529
8530 \end_inset
8531
8532 節に述べられている方法で実行することができます.
8533 \end_layout
8534
8535 \begin_layout Standard
8536 次に,
8537 \begin_inset Flex MenuItem
8538 status collapsed
8539
8540 \begin_layout Plain Layout
8541 ツール\SpecialChar menuseparator
8542 設定\SpecialChar menuseparator
8543 出力\SpecialChar menuseparator
8544 一般
8545 \end_layout
8546
8547 \end_inset
8548
8549 で自分の使うビューアを利用するように,\SpecialChar LyX
8550 を設定する必要があります.いくつかのビューアについては,試験済みの設定が前もって準備されており,ドロップダウンリストから選
8551 択することができます.これらの設定の何れも意にそぐわない場合には,ご自身で適切な設定を見つけ出して入力しなくてはなりません.定義文法は,以下の変数を使用します.
8552 \end_layout
8553
8554 \begin_layout Itemize
8555 \begin_inset Flex Code
8556 status collapsed
8557
8558 \begin_layout Plain Layout
8559 $$n
8560 \end_layout
8561
8562 \end_inset
8563
8564 :行番号
8565 \end_layout
8566
8567 \begin_layout Itemize
8568 \begin_inset Flex Code
8569 status collapsed
8570
8571 \begin_layout Plain Layout
8572 $$t
8573 \end_layout
8574
8575 \end_inset
8576
8577 :書き出された(一時).texファイル名(パスを除く)
8578 \end_layout
8579
8580 \begin_layout Itemize
8581 \begin_inset Flex Code
8582 status collapsed
8583
8584 \begin_layout Plain Layout
8585 $$f
8586 \end_layout
8587
8588 \end_inset
8589
8590 :書き出された(一時).texファイル名(パスを含む)
8591 \end_layout
8592
8593 \begin_layout Itemize
8594 \begin_inset Flex Code
8595 status collapsed
8596
8597 \begin_layout Plain Layout
8598 $$o
8599 \end_layout
8600
8601 \end_inset
8602
8603 :書き出された出力ファイル名(どちらが一時ディレクトリに存在するかに依存して,dviあるいはpdf).
8604 \end_layout
8605
8606 \begin_layout Standard
8607 yap・xdvi・okular
8608 \begin_inset Foot
8609 status collapsed
8610
8611 \begin_layout Plain Layout
8612 \begin_inset Flex Noun
8613 status collapsed
8614
8615 \begin_layout Plain Layout
8616 ツール\SpecialChar menuseparator
8617 設定\SpecialChar menuseparator
8618 ファイル処理\SpecialChar menuseparator
8619 ファイル形式
8620 \end_layout
8621
8622 \end_inset
8623
8624
8625 \begin_inset Flex Code
8626 status collapsed
8627
8628 \begin_layout Plain Layout
8629 okular --unique
8630 \end_layout
8631
8632 \end_inset
8633
8634 と設定すると良いでしょう.
8635 \end_layout
8636
8637 \end_inset
8638
8639 ・qpdfview・Sumatra PDF
8640 \begin_inset Foot
8641 status collapsed
8642
8643 \begin_layout Plain Layout
8644 SumatraPDFは,外部プログラムCMCDDE(
8645 \begin_inset CommandInset href
8646 LatexCommand href
8647 target "http://www.istri.fr/spip/zip/CMCDDE.zip"
8648 literal "false"
8649
8650 \end_inset
8651
8652 からダウンロード可能)を通じてDDEコマンドを使用することもできます.
8653 \end_layout
8654
8655 \end_inset
8656
8657 など,一部のビューアでしか,完全な順検索機能は提供されていないことに注意してください
8658 \begin_inset Foot
8659 status collapsed
8660
8661 \begin_layout Plain Layout
8662 SumatraPDFも,外部プログラムCMCDDEを通じて,DDEコマンドを使用することができます.CMCDDEは,
8663 \begin_inset CommandInset href
8664 LatexCommand href
8665 target "http://www.istri.fr/spip/zip/CMCDDE.zip"
8666 literal "false"
8667
8668 \end_inset
8669
8670 からダウンロードすることができます.
8671 \end_layout
8672
8673 \end_inset
8674
8675 .Evince
8676 \begin_inset Foot
8677 status collapsed
8678
8679 \begin_layout Plain Layout
8680 Evinceでの順検索は,サードパーティのヘルパースクリプトを使用すれば,利用可能になります.詳細については,
8681 \begin_inset CommandInset href
8682 LatexCommand href
8683 target "https://wiki.lyx.org/LyX/SyncTeX"
8684 literal "false"
8685
8686 \end_inset
8687
8688 を参照してください.
8689 \end_layout
8690
8691 \end_inset
8692
8693 など他のビューアには,順検索を使用するのに,追加のツールを必要とするものもあります.広く使われているPDFビューアの多く(特にAdobe Reader)は,順検
8694 索を全く提供していませんが,他の一部のビューア(たとえばxpdf)では,少なくとも,文書を読み込み直したり,ファイルの特定ページに移動することはできますので,少
8695 なくとも「近く」には移動することができます.この後者の機能は,synctexの外部コールで提供されています(事前に用意されている用例をご覧ください).
8696 \end_layout
8697
8698 \begin_layout Standard
8699 順検索は,DVI出力とPDF出力の双方で動作します.\SpecialChar LyX
8700 は,過去にあなたが使用したプレビュー形式をチェックして(つまり,一時ディレクトリにどちらの形式が存在するかを
8701 チェックして),その形式に適切な設定を選択します.
8702 \end_layout
8703
8704 \begin_layout Chapter
8705 特別な文書クラス
8706 \end_layout
8707
8708 \begin_layout Section
8709 A&Aの論文
8710 \end_layout
8711
8712 \begin_layout Standard
8713
8714 \noun on
8715 Peter Sütterlin文
8716 \end_layout
8717
8718 \begin_layout Subsection
8719 はじめに
8720 \end_layout
8721
8722 \begin_layout Standard
8723 この節では,文書クラス
8724 \family typewriter
8725 aa.cls
8726 \family default
8727 第5.01版を使用して科学雑誌
8728 \emph on
8729 Astronomy and Astrophysics
8730 \emph default
8731 (『天文学と宇宙物理学』: 
8732 \begin_inset Flex URL
8733 status collapsed
8734
8735 \begin_layout Plain Layout
8736
8737 https://www.aanda.org/
8738 \end_layout
8739
8740 \end_inset
8741
8742 )に投稿する論文を執筆するための\SpecialChar LyX
8743 の使用法を説明します.このパッケージは,FTPサイト
8744 \end_layout
8745
8746 \begin_layout Standard
8747 \align center
8748 \begin_inset VSpace medskip
8749 \end_inset
8750
8751
8752 \begin_inset Flex URL
8753 status collapsed
8754
8755 \begin_layout Plain Layout
8756
8757 ftp://ftp.edpsciences.org/pub/aa/readme.html
8758 \end_layout
8759
8760 \end_inset
8761
8762
8763 \begin_inset VSpace medskip
8764 \end_inset
8765
8766
8767 \end_layout
8768
8769 \begin_layout Standard
8770 \noindent
8771 からダウンロードすることができます.
8772 \end_layout
8773
8774 \begin_layout Standard
8775 このパッケージには取扱説明書がついていますが,本節は,本来の取扱説明書の代わりとなることを意図したものではなく,あなたの論文を正しい様式に整えるための小さな案内
8776 書であるに過ぎません.
8777 \end_layout
8778
8779 \begin_layout Standard
8780 この学術誌の出版元は,2001年1月1日以降,Springer社からEDP Science社に変更されていることにご注意ください.この出版社の変更によって,th
8781 esaurusコマンドの廃止など,スタイルファイルに若干の変更が加わっています.\SpecialChar LyX
8782 のaaクラスは,スタイルファイルの最新版(第5.01版)をサポートしています.もし
8783 古い版が装備されている場合には,更新してください.互換性のために,古い(第4版)レイアウトは,
8784 \family sans
8785 article (A&A V4)
8786 \family default
8787 として残してあります.
8788 \family typewriter
8789 $\SpecialChar LyX
8790 Dir/layouts/aapaper.layout
8791 \family default
8792 のコメントをご参照ください.
8793 \end_layout
8794
8795 \begin_layout Subsection
8796 最初の一歩
8797 \end_layout
8798
8799 \begin_layout Standard
8800 \SpecialChar LyX
8801 とともに頒布されている例示用のひな型を土台として,書き始めることをお勧めします.ひな型を使用しない場合には,以下の設定にしてください.
8802 \end_layout
8803
8804 \begin_layout Itemize
8805
8806 \family sans
8807 文書\SpecialChar menuseparator
8808 設定
8809 \family default
8810 ダイアログで
8811 \family sans
8812 article (A&A)
8813 \family default
8814 を選択してください(まぁ,これは自明ですね).
8815 \end_layout
8816
8817 \begin_layout Itemize
8818
8819 \family sans
8820 ページレイアウト
8821 \family default
8822 オプションは変更しないで,既定値のままに設定しておいてください.全体のレイアウトはマクロが行うので,何も変更してはいけません.
8823 \end_layout
8824
8825 \begin_layout Subsection
8826 へッダ部
8827 \end_layout
8828
8829 \begin_layout Standard
8830 最初に入力すべきものは,へッダ情報です.ヘッダ情報には,以下の7つの項目があり,いくつかは必須ではありません.
8831 \end_layout
8832
8833 \begin_layout Itemize
8834
8835 \family sans
8836 タイトル
8837 \family default
8838 :[必須]
8839 \end_layout
8840
8841 \begin_layout Itemize
8842
8843 \family sans
8844 サブタイトル
8845 \family default
8846 :[非必須]
8847 \end_layout
8848
8849 \begin_layout Itemize
8850
8851 \family sans
8852 著者
8853 \family default
8854 :[必須]
8855 \end_layout
8856
8857 \begin_layout Itemize
8858
8859 \family sans
8860 住所
8861 \family default
8862 :[必須]
8863 \end_layout
8864
8865 \begin_layout Itemize
8866
8867 \family sans
8868 抜き刷り
8869 \family default
8870 :[非必須]著者が複数いる場合,抜き刷りの送付を依頼するのに連絡すべき人を記す.
8871 \end_layout
8872
8873 \begin_layout Itemize
8874
8875 \family sans
8876 メール
8877 \family default
8878 :[非必須]連絡用の電子メールアドレス.
8879 \end_layout
8880
8881 \begin_layout Itemize
8882
8883 \family sans
8884 日付
8885 \family default
8886 :[必須]推奨されるフォーマットは,
8887 \family typewriter
8888 Received: <日付>; Accepted <日付>
8889 \family default
8890 です.
8891 \end_layout
8892
8893 \begin_layout Standard
8894
8895 \family typewriter
8896
8897 \backslash
8898 maketitle
8899 \family default
8900 コマンドは,へッダが終了した場所に,\SpecialChar LyX
8901 が自動的に入れてくれるので,手動で挿入する必要はありません.各項目の順序は関係ありませんが,見た目のためと,実際の文書のレイ
8902 アウトに合わせるために,上記の順序を維持しておくと良いでしょう.
8903 \end_layout
8904
8905 \begin_layout Standard
8906 現住所の付記などのために,へッダ部に脚注を挿入したい場合には,
8907 \family sans
8908 挿入\SpecialChar menuseparator
8909 脚注
8910 \family default
8911 を使用して標準の脚注を挿入してください.この場合には,\SpecialChar LyX
8912 は自動的に
8913 \family typewriter
8914
8915 \backslash
8916 thanks{}
8917 \family default
8918 を使用します.
8919 \end_layout
8920
8921 \begin_layout Standard
8922
8923 \family sans
8924 編集\SpecialChar menuseparator
8925 文字様式
8926 \family default
8927 の下に,タイトル関連の2つの差込枠があります.
8928 \end_layout
8929
8930 \begin_layout Itemize
8931
8932 \family sans
8933 所属機関
8934 \family default
8935 は,対応する著者・所属機関の対を標識するためのものです.所属機関には,
8936 \family sans
8937 住所
8938 \family default
8939 フィールドに現れるのと同じ順序で連番が振られますので,各著者に標識を付けてください.
8940 \end_layout
8941
8942 \begin_layout Itemize
8943
8944 \family sans
8945 電子メール
8946 \family default
8947 は,至急連絡用に電子メールアドレスを付するものです.
8948 \end_layout
8949
8950 \begin_layout Standard
8951 これらのトピックの他に,このマクロは,\SpecialChar LyX
8952 が対応していない,以下のもう一つの\SpecialChar LaTeX
8953 コマンドを使用します.
8954 \end_layout
8955
8956 \begin_layout Itemize
8957 複数の著者名あるいは所属名を区切るための
8958 \family typewriter
8959
8960 \backslash
8961 and
8962 \end_layout
8963
8964 \begin_layout Standard
8965 \SpecialChar LyX
8966 中に対応したコマンドを入力し,\SpecialChar LaTeX
8967 コードとしてマークしてください.用例を参照のこと.
8968 \end_layout
8969
8970 \begin_layout Subsection
8971 概要
8972 \end_layout
8973
8974 \begin_layout Standard
8975 概要は,へッダ部の直後に置きます.第5版から,概要は環境からコマンドに変更され,一段落に限るという制限が加えられました.さらに,ここにはキーワードを含む項目を入
8976 れなくてはなりません.これには,キーワード段落様式を使用してください.用例にある論文を参照してください.
8977 \end_layout
8978
8979 \begin_layout Subsection
8980 サポートされる環境
8981 \end_layout
8982
8983 \begin_layout Standard
8984 A&A論文用レイアウトでは,文章を構造化するために,以下の環境がサポートされています.
8985 \end_layout
8986
8987 \begin_layout Itemize
8988
8989 \family sans
8990 標準
8991 \end_layout
8992
8993 \begin_layout Itemize
8994
8995 \family sans
8996
8997 \end_layout
8998
8999 \begin_layout Itemize
9000
9001 \family sans
9002 小節
9003 \end_layout
9004
9005 \begin_layout Itemize
9006
9007 \family sans
9008 小々節
9009 \end_layout
9010
9011 \begin_layout Itemize
9012
9013 \family sans
9014 箇条書き(記号)
9015 \end_layout
9016
9017 \begin_layout Itemize
9018
9019 \family sans
9020 箇条書き(連番)
9021 \end_layout
9022
9023 \begin_layout Itemize
9024
9025 \family sans
9026 箇条書き(記述)
9027 \end_layout
9028
9029 \begin_layout Itemize
9030
9031 \family sans
9032 キャプション
9033 \end_layout
9034
9035 \begin_layout Itemize
9036
9037 \family sans
9038 概要
9039 \end_layout
9040
9041 \begin_layout Itemize
9042
9043 \family sans
9044 謝辞(Acknowledgment)
9045 \end_layout
9046
9047 \begin_layout Itemize
9048
9049 \family sans
9050 書誌情報
9051 \end_layout
9052
9053 \begin_layout Itemize
9054
9055 \family sans
9056 \SpecialChar LaTeX
9057
9058 \end_layout
9059
9060 \begin_layout Subsection
9061 \SpecialChar LyX
9062 でサポートされていないコマンド
9063 \end_layout
9064
9065 \begin_layout Standard
9066 \SpecialChar LyX
9067
9068 \family sans
9069 articleA&A)
9070 \family default
9071 レイアウトでは,まだサポートされていないコマンドがあります.そのうちいくつかは既に紹介しましたが,網羅するために,以下にすべて列挙しておきます.
9072 \end_layout
9073
9074 \begin_layout Itemize
9075
9076 \family typewriter
9077
9078 \backslash
9079 and
9080 \end_layout
9081
9082 \begin_layout Itemize
9083
9084 \family typewriter
9085
9086 \backslash
9087 authorrunning
9088 \end_layout
9089
9090 \begin_layout Itemize
9091
9092 \family typewriter
9093
9094 \backslash
9095 object{}
9096 \end_layout
9097
9098 \begin_layout Itemize
9099
9100 \family typewriter
9101
9102 \backslash
9103 titlerunning{}
9104 \end_layout
9105
9106 \begin_layout Standard
9107 これらのコマンドのいずれかを使いたい場合には,自分で入力する必要があります.
9108 \series bold
9109 これを\SpecialChar LaTeX
9110 コマンドとしてマークすることを忘れないで下さい.
9111 \end_layout
9112
9113 \begin_layout Subsection
9114 図フロートおよび表フロート
9115 \end_layout
9116
9117 \begin_layout Standard
9118 \SpecialChar LyX
9119 は,必要なフロート環境
9120 \family sans
9121 figure
9122 \family default
9123
9124 \family sans
9125 figure*
9126 \family default
9127
9128 \family sans
9129 table
9130 \family default
9131
9132 \family sans
9133 table*
9134 \family default
9135 をサポートしていますので,ここでは詳しい説明はしません.
9136 \emph on
9137 ユーザーの手引き
9138 \emph default
9139 をご覧ください.ただ,表は左揃えにしなくてはならないことに注意して下さい.そうするためには,表を選択して,
9140 \family sans
9141 編集\SpecialChar menuseparator
9142 段落設定
9143 \family default
9144 で配置を変更してください.
9145 \end_layout
9146
9147 \begin_layout Standard
9148 一つだけ,特別なものがあります.それは,図横にキャプションを配置する図です.この図を作成するには,以下のようにしなくてはなりません.
9149 \end_layout
9150
9151 \begin_layout Enumerate
9152
9153 \family sans
9154 挿入\SpecialChar menuseparator
9155 フロート\SpecialChar menuseparator
9156
9157 \family default
9158 を使って,幅広の図フロートを作成します.それから,図フロートのラベルを右クリックして
9159 \begin_inset Flex MenuItem
9160 status collapsed
9161
9162 \begin_layout Plain Layout
9163 設定\SpecialChar ldots
9164
9165 \end_layout
9166
9167 \end_inset
9168
9169 を選択し,それで開かれる
9170 \family sans
9171 フロートの設定
9172 \family default
9173 ダイアログで
9174 \family sans
9175 段をまたぐ
9176 \family default
9177 を有効にして,
9178 \family sans
9179 OK
9180 \family default
9181 ボタンを押します.
9182 \end_layout
9183
9184 \begin_layout Enumerate
9185 キャプション文を入力します.
9186 \end_layout
9187
9188 \begin_layout Enumerate
9189 キャプションの前にカーソルを移動し,
9190 \family sans
9191 Return
9192 \family default
9193 を押して,カーソルをキャプションの上に移動します.
9194 \end_layout
9195
9196 \begin_layout Enumerate
9197 図を挿入します.
9198 \end_layout
9199
9200 \begin_layout Enumerate
9201 カーソルを図の後ろに置いて,
9202 \family sans
9203 挿入\SpecialChar menuseparator
9204 整形\SpecialChar menuseparator
9205 水平方向の空白
9206 \family default
9207 を選択して
9208 \family sans
9209 水平方向の空白の設定
9210 \family default
9211 ダイアログを開き,
9212 \family sans
9213 空白
9214 \family default
9215 ドロップダウンから
9216 \family sans
9217 水平フィル
9218 \family default
9219 を選択して,水平フィルを挿入します.
9220 \end_layout
9221
9222 \begin_layout Enumerate
9223
9224 \family sans
9225 挿入\SpecialChar menuseparator
9226 TeXコード
9227 \family default
9228 を選択して,\SpecialChar TeX
9229 差込枠を挿入します.
9230 \end_layout
9231
9232 \begin_layout Enumerate
9233 \SpecialChar TeX
9234 差込枠中に
9235 \family typewriter
9236
9237 \backslash
9238 parbox[b]{55mm}{
9239 \family default
9240 と入力します.
9241 \series bold
9242 ここでは波括弧を閉じないでください.
9243 \end_layout
9244
9245 \begin_layout Enumerate
9246 カーソルをキャプション文の後ろに移動し,
9247 \family sans
9248 挿入\SpecialChar menuseparator
9249 TeXコード
9250 \family default
9251 を選択して,別の\SpecialChar TeX
9252 差込枠を挿入し,その中に閉じ括弧を入力します .
9253 \end_layout
9254
9255 \begin_layout Standard
9256 例示用論文中の図もご参照ください.
9257 \end_layout
9258
9259 \begin_layout Subsection
9260 Refereeレイアウト
9261 \end_layout
9262
9263 \begin_layout Standard
9264 投稿用には,論文を特別なダブルスペースレイアウトに整形しなくてはなりません.このためには,文書クラスに
9265 \family typewriter
9266 referee
9267 \family default
9268 オプションを与える必要があります.これは,
9269 \family sans
9270 文書\SpecialChar menuseparator
9271 設定
9272 \family default
9273 ダイアログの
9274 \family sans
9275 任意設定
9276 \family default
9277 クラスオプションフィールドを使って行うことができます.この欄に
9278 \family typewriter
9279 referee
9280 \family default
9281 と云う文字列を入力してください.
9282 \end_layout
9283
9284 \begin_layout Subsection
9285 例示用論文
9286 \end_layout
9287
9288 \begin_layout Standard
9289
9290 \family sans
9291 Examples
9292 \family default
9293 ディレクトリには,\SpecialChar LyX
9294 で書かれた例示用論文が収録されています.これは,元のマクロパッケージの例示用論文を\SpecialChar LyX
9295 用に直したものです.これはヒントを得るために使用したり,元の
9296  \SpecialChar LaTeX
9297 コードと\SpecialChar LyX
9298 での書き方の比較に使ったりしてください.
9299 \end_layout
9300
9301 \begin_layout Section
9302 AAS\SpecialChar TeX
9303
9304 \end_layout
9305
9306 \begin_layout Standard
9307
9308 \noun on
9309 Mike Ressler
9310 \noun default
9311
9312 \end_layout
9313
9314 \begin_layout Subsection
9315 はじめに
9316 \end_layout
9317
9318 \begin_layout Standard
9319 AAS\SpecialChar TeX
9320 は,American Astronomical Society(アメリカ天文学会)が発行するAstrophysical Journal(宇宙物理学雑誌)同
9321 誌のLettersとSupplementを含む)・Astronomical Journal(天文学雑誌)・Publications of the
9322  Astronomical Society of the Pacific(太平洋天文学会誌)三誌への電子投稿を可能にするために,同学会が作成したマクロ集です.\SpecialChar LyX
9323
9324 ,これらの文書を生成する上で,なかでも数式・引用・画像処理能力において,優れたツールであることが認識されています.\SpecialChar LyX
9325 は,同マクロ第5.0版以降を必要としており,でき
9326 ればここで説明されている第6.0版以降が望まれます.第5.0版未満の版は,\SpecialChar LaTeX
9327 2.09で使用するよう企図されているため,根本的に\SpecialChar LyX
9328 とは互換性がありません.AAS\SpecialChar TeX
9329 パッケージは
9330 ,以下のAAS\SpecialChar TeX
9331 ウェブサイトからダウンロードできるでしょう.
9332 \end_layout
9333
9334 \begin_layout Standard
9335 \align center
9336 \begin_inset VSpace medskip
9337 \end_inset
9338
9339
9340 \begin_inset Flex URL
9341 status collapsed
9342
9343 \begin_layout Plain Layout
9344
9345 https://aas.org/aastex/aastex-downloads
9346 \end_layout
9347
9348 \end_inset
9349
9350
9351 \begin_inset VSpace medskip
9352 \end_inset
9353
9354
9355 \end_layout
9356
9357 \begin_layout Standard
9358 パッケージ中には,完備したユーザーの手引きが収録されていますので,\SpecialChar LyX
9359 で論文を書き始める前に,その中身を完全に理解しておく必要があります.\SpecialChar LyX
9360 は,AASTeXの全コマン
9361 ドを理解する必然性をなくすものではなく,すべてを手入力する苦労を減らすだけです.仕上がりの\SpecialChar LaTeX
9362 文書が,論文を投稿しようとしているジャーナルの要求事項に完全に合致して
9363 いることを確認するのは,あなたの責任です.
9364 \end_layout
9365
9366 \begin_layout Subsection
9367 新しい論文を書き始める
9368 \end_layout
9369
9370 \begin_layout Standard
9371 論文を書き始めるには,AAS\SpecialChar TeX
9372 ひな型ファイルを土台に始めることを強くお勧めします.
9373 \begin_inset Flex MenuItem
9374 status collapsed
9375
9376 \begin_layout Plain Layout
9377 ファイル\SpecialChar menuseparator
9378 新規(ひな型使用)
9379 \end_layout
9380
9381 \end_inset
9382
9383 をクリックして,新しいファイル名を入力し,ひな型
9384 \family typewriter
9385 aastex6.lyx
9386 \family default
9387 を選んでください.これには,論文原稿のほとんどに共通して使われるフィールドが書き込まれています.書き込まれている文字列(括弧
9388 \family typewriter
9389 <>
9390 \family default
9391 を含む)を正しい情報で上書きしてください.AAS\SpecialChar TeX
9392 コマンド・AAS\SpecialChar TeX
9393 環境の多くは,\SpecialChar LyX
9394 中で直接実行することができますが,できないものもあります.このようなコマンドは,直
9395 接La\SpecialChar TeX
9396 コードを入力して,それを\SpecialChar TeX
9397 コードとしてマークしなければなりません.このようなコマンドは,\SpecialChar TeX
9398 コードあるいはEvil Red Text(邪悪な赤い文)と呼ばれます
9399 .AAS\SpecialChar TeX
9400 文書に必要とされる \SpecialChar TeX
9401 コードを最小にするようには努力しました.
9402 \end_layout
9403
9404 \begin_layout Subsection
9405 論文を書き終わったら
9406 \end_layout
9407
9408 \begin_layout Standard
9409 論文を満足する水準で書き終え,プレビューや印刷が正しく為されているとしても,まだ学術誌に投稿する前にしなくてはならない「後処理」が残されています.
9410 \end_layout
9411
9412 \begin_layout Enumerate
9413 論文を \SpecialChar LaTeX
9414 ファイルとして書き出します(
9415 \family sans
9416 ファイル\SpecialChar menuseparator
9417 書き出し\SpecialChar menuseparator
9418 LaTeX
9419 \family default
9420 ).
9421 \end_layout
9422
9423 \begin_layout Enumerate
9424 出力した
9425 \family typewriter
9426 .tex
9427 \family default
9428 ファイルを好きなエディタで編集します.
9429 \end_layout
9430
9431 \begin_deeper
9432 \begin_layout Enumerate
9433
9434 \family typewriter
9435
9436 \backslash
9437 documentclass
9438 \family default
9439 コマンドよりも前のコメント行を削除します.
9440 \end_layout
9441
9442 \begin_layout Enumerate
9443
9444 \family typewriter
9445
9446 \backslash
9447 usepackage...{fontenc}
9448 \family default
9449 という行があれば(通常は
9450 \family typewriter
9451
9452 \backslash
9453 documentclass
9454 \family default
9455 の直後にあります)削除します.また,
9456 \family typewriter
9457
9458 \backslash
9459 secnumdepth
9460 \family default
9461 行があれば,これも削除します.
9462 \end_layout
9463
9464 \begin_layout Enumerate
9465 \SpecialChar LaTeX
9466 プリアンブル中に意図的に置いたコマンド(
9467 \family typewriter
9468 .tex
9469 \family default
9470 ファイル中,「User specified \SpecialChar LaTeX
9471  commands」というコメントの直後にあります)を除いて,
9472 \family typewriter
9473
9474 \backslash
9475 makeatletter
9476 \family default
9477
9478 \family typewriter
9479
9480 \backslash
9481 makeatother
9482 \family default
9483 の間のもの(これらのコマンドを含む)をすべて削除します.
9484 \end_layout
9485
9486 \end_deeper
9487 \begin_layout Enumerate
9488 編集後のファイルを \SpecialChar LaTeX
9489 にかけて,正しく処理されることを確認します.
9490 \end_layout
9491
9492 \begin_layout Enumerate
9493 学術誌の要求事項を再読して,ファイル名と書式が正しいことを確認します.
9494 \end_layout
9495
9496 \begin_layout Enumerate
9497 投稿してください.
9498 \end_layout
9499
9500 \begin_layout Subsection
9501 特定のコマンドに関するコメント
9502 \end_layout
9503
9504 \begin_layout Standard
9505 AAS\SpecialChar TeX
9506 ユーザーの手引き(
9507 \family typewriter
9508 aasguide.tex
9509 \family default
9510 )に,各AAS\SpecialChar TeX
9511 コマンドの詳しい説明があるので,ここでは,各コマンドの使用法の詳細な説明は行いません.そこで,ここではユーザーの手引きに現れるとおりに一覧を列挙し
9512 て,必要なところだけコメントを加えることにしましょう.
9513 \end_layout
9514
9515 \begin_layout Subsubsection
9516 期待通りに動作するもの
9517 \end_layout
9518
9519 \begin_layout Standard
9520 これらは期待通りに動作するので,ここでは列挙するだけにして,コマンドの説明されている節を挙げておきます.
9521 \family typewriter
9522
9523 \backslash
9524 documentclass
9525 \family default
9526  (2.1.1)・
9527 \family typewriter
9528
9529 \backslash
9530 begin{document}
9531 \family default
9532  (2.2)・
9533 \family typewriter
9534
9535 \backslash
9536 title
9537 \family default
9538  (2.3)・
9539 \family typewriter
9540
9541 \backslash
9542 author
9543 \family default
9544  (2.3)・
9545 \family typewriter
9546
9547 \backslash
9548 affil
9549 \family default
9550  (2.3)・
9551 \family typewriter
9552
9553 \backslash
9554 abstract
9555 \family default
9556  (2.4)・
9557 \family typewriter
9558
9559 \backslash
9560 keywords
9561 \family default
9562  (2.5)・
9563 \family typewriter
9564
9565 \backslash
9566 section
9567 \family default
9568  (2.7)・
9569 \family typewriter
9570
9571 \backslash
9572 subsection
9573 \family default
9574  (2.7)・
9575 \family typewriter
9576
9577 \backslash
9578 subsubsection
9579 \family default
9580  (2.7)・
9581 \family typewriter
9582
9583 \backslash
9584 paragraph
9585 \family default
9586  (2.7)・
9587 \family typewriter
9588
9589 \backslash
9590 facility
9591 \family default
9592  (2.10)・
9593 \family typewriter
9594
9595 \backslash
9596 begin{displaymath}
9597 \family default
9598  (2.12)・
9599 \family typewriter
9600
9601 \backslash
9602 begin{equation}
9603 \family default
9604  (2.12)・
9605 \family typewriter
9606
9607 \backslash
9608 begin{eqnarray}
9609 \family default
9610  (2.12)・
9611 \family typewriter
9612
9613 \backslash
9614 begin{mathletters}
9615 \family default
9616  (2.12)・
9617 \family typewriter
9618
9619 \backslash
9620 begin{thebibliography}
9621 \family default
9622  (2.13.1)・
9623 \family typewriter
9624
9625 \backslash
9626 bibitem
9627 \family default
9628  (2.13.2)・全引用コマンドとその派生(2.13.2)・一般的なgraphicx図コマンド(2.14.1)・
9629 \family typewriter
9630
9631 \backslash
9632 begin{table}
9633 \family default
9634  (2.15.4)・
9635 \family typewriter
9636
9637 \backslash
9638 begin{tabular}
9639 \family default
9640  (2.15.4)・
9641 \family typewriter
9642
9643 \backslash
9644 caption
9645 \family default
9646  (2.15.4)・
9647 \family typewriter
9648
9649 \backslash
9650 label
9651 \family default
9652  (他にもあるが特に2.15.4)・
9653 \family typewriter
9654
9655 \backslash
9656 tablerefs
9657 \family default
9658  (2.15.5)・
9659 \family typewriter
9660
9661 \backslash
9662 tablecomments
9663 \family default
9664  (2.15.5)・
9665 \family typewriter
9666
9667 \backslash
9668 url
9669 \family default
9670  (2.17.4)・
9671 \family typewriter
9672
9673 \backslash
9674 end{document}
9675 \family default
9676  (2.18).
9677 \end_layout
9678
9679 \begin_layout Standard
9680 以下のスタイルオプションも正しく動作します.
9681 \family typewriter
9682 longabstract
9683 \family default
9684  (2.4)・
9685 \family typewriter
9686 preprint
9687 \family default
9688  (3.2.1)・
9689 \family typewriter
9690 preprint2
9691 \family default
9692  (3.2.2)・
9693 \family typewriter
9694 eqsecnum
9695 \family default
9696  (3.3)・
9697 \family typewriter
9698 flushrt
9699 \family default
9700  (3.4).これらは,
9701 \begin_inset Flex MenuItem
9702 status collapsed
9703
9704 \begin_layout Plain Layout
9705 文書\SpecialChar menuseparator
9706 設定
9707 \end_layout
9708
9709 \end_inset
9710
9711 にある,
9712 \family sans
9713 クラスオプション
9714 \family default
9715
9716 \family sans
9717 任意設定
9718 \family default
9719 ボックスに入力してください.
9720 \end_layout
9721
9722 \begin_layout Subsubsection
9723 動作するが,若干説明が必要なもの
9724 \end_layout
9725
9726 \begin_layout Standard
9727 以下のコマンドは動作しますが,若干の説明が必要です.
9728 \end_layout
9729
9730 \begin_layout Itemize
9731 以下の項目は,学術誌の編集者向けに取ってあるものですが,どうしても必要ならば,\SpecialChar LaTeX
9732 プリアンブルに入れることができます.
9733 \family typewriter
9734
9735 \backslash
9736 received
9737 \family default
9738
9739 \family typewriter
9740
9741 \backslash
9742 revised
9743 \family default
9744
9745 \family typewriter
9746
9747 \backslash
9748 accepted
9749 \family default
9750
9751 \family typewriter
9752
9753 \backslash
9754 ccc
9755 \family default
9756
9757 \family typewriter
9758 cpright
9759 \family default
9760 (すべて 2.1.3).
9761 \end_layout
9762
9763 \begin_layout Itemize
9764 以下の項目は,\SpecialChar LaTeX
9765 のプリアンブルに置くことができるもので,これらは,ひな型ファイルには,空の引数と共に含まれています.
9766 \family typewriter
9767
9768 \backslash
9769 slugcomment
9770 \family default
9771 (2.1.4)・
9772 \family typewriter
9773
9774 \backslash
9775 shorttitle
9776 \family default
9777 (2.1.5)・
9778 \family typewriter
9779
9780 \backslash
9781 shortauthors
9782 \family default
9783 (2.1.5).
9784 \end_layout
9785
9786 \begin_layout Itemize
9787
9788 \family typewriter
9789
9790 \backslash
9791 email
9792 \family default
9793 (2.3)―「単独で」使うことはできますが,段落の途中で使うことはできません.埋め込む必要がある場合には,\SpecialChar TeX
9794 コードを使用してください.
9795 \end_layout
9796
9797 \begin_layout Itemize
9798
9799 \family typewriter
9800
9801 \backslash
9802 and
9803 \family default
9804 (2.3)―後ろに{}が付記されます.これはエラーの原因にはなりません.
9805 \end_layout
9806
9807 \begin_layout Itemize
9808
9809 \family typewriter
9810
9811 \backslash
9812 notetoeditor
9813 \family default
9814 (2.6)―「単独で」使うことはできますが,段落の途中で使うことはできません.埋め込む必要がある場合には,\SpecialChar TeX
9815 コードを使用してください.
9816 \end_layout
9817
9818 \begin_layout Itemize
9819
9820 \family typewriter
9821
9822 \backslash
9823 placetable
9824 \family default
9825 (2.8)―相互参照用タグを挿入することはできません.手動でタグ名を入力する必要があります.
9826 \end_layout
9827
9828 \begin_layout Itemize
9829
9830 \family typewriter
9831
9832 \backslash
9833 placefigure
9834 \family default
9835 (2.8)—
9836 \family typewriter
9837
9838 \backslash
9839 placetable
9840 \family default
9841 と同様.
9842 \end_layout
9843
9844 \begin_layout Itemize
9845
9846 \family typewriter
9847
9848 \backslash
9849 acknowledgements
9850 \family default
9851 (2.9)―後ろに{}が付記されます.これはエラーの原因にはなりません.
9852 \end_layout
9853
9854 \begin_layout Itemize
9855
9856 \family typewriter
9857
9858 \backslash
9859 appendix
9860 \family default
9861 (2.11)―後ろに{}が付記されます.これはエラーの原因にはなりません.
9862 \end_layout
9863
9864 \begin_layout Itemize
9865
9866 \family typewriter
9867
9868 \backslash
9869 figcaption
9870 \family default
9871 (2.14.2)―文章のはじめにカーソルを置いて
9872 \begin_inset Flex MenuItem
9873 status collapsed
9874
9875 \begin_layout Plain Layout
9876 挿入\SpecialChar menuseparator
9877 短縮タイトル
9878 \end_layout
9879
9880 \end_inset
9881
9882 を選択すれば,非必須のファイル名引数を挿入することができます.「短縮タイトル」とありますが,
9883 \family typewriter
9884
9885 \backslash
9886 figcaption
9887 \family default
9888 が必要とする型の非必須引数を挿入します.望むらくはいつの日か改名されることでしょう.
9889 \end_layout
9890
9891 \begin_layout Itemize
9892
9893 \family typewriter
9894
9895 \backslash
9896 objectname
9897 \family default
9898 (2.17.1)―非必須パラメータとしてカタログIDを取る以外は,
9899 \family typewriter
9900
9901 \backslash
9902 figcaption
9903 \family default
9904 と同様.
9905 \end_layout
9906
9907 \begin_layout Itemize
9908
9909 \family typewriter
9910
9911 \backslash
9912 dataset
9913 \family default
9914 (2.17.1)―非必須パラメータとしてカタログIDを取る以外は,
9915 \family typewriter
9916
9917 \backslash
9918 figcaption
9919 \family default
9920 と同様.
9921 \end_layout
9922
9923 \begin_layout Subsubsection
9924 実装されていないため,\SpecialChar TeX
9925 コードを使用するもの
9926 \end_layout
9927
9928 \begin_layout Standard
9929
9930 \family typewriter
9931
9932 \backslash
9933 eqnum
9934 \family default
9935 (2.12)・
9936 \family typewriter
9937
9938 \backslash
9939 setcounter{equation}
9940 \family default
9941 (2.12)・学術誌名略語(2.12.4)・
9942 \family typewriter
9943
9944 \backslash
9945 figurenum
9946 \family default
9947 (2.14.1)・
9948 \family typewriter
9949
9950 \backslash
9951 epsscale
9952 \family default
9953 (2.14.1)・
9954 \family typewriter
9955
9956 \backslash
9957 plotone
9958 \family default
9959 (2.14.1)・
9960 \family typewriter
9961
9962 \backslash
9963 plottwo
9964 \family default
9965 (2.14.1)・
9966 \family typewriter
9967
9968 \backslash
9969 tablenum
9970 \family default
9971 (2.15.4)・
9972 \family typewriter
9973
9974 \backslash
9975 tableline
9976 \family default
9977 (2.15.4:入れたい場所の後ろに,左側セルの最初の要素として挿入する.表中では,\SpecialChar LyX
9978 の方法は使わないでください)・
9979 \family typewriter
9980
9981 \backslash
9982 tablenotemark
9983 \family default
9984 (2.15.5)・
9985 \family typewriter
9986
9987 \backslash
9988 tablenotetext
9989 \family default
9990 (2.15.5)・補遺(2.17)の大半
9991 \family typewriter
9992
9993 \backslash
9994 objectname
9995 \family default
9996
9997 \family typewriter
9998
9999 \backslash
10000 dataset
10001 \family default
10002
10003 \family typewriter
10004
10005 \backslash
10006 url
10007 \family default
10008
10009 \family typewriter
10010
10011 \backslash
10012 email
10013 \family default
10014 を除く.上記参照)・
10015 \family typewriter
10016
10017 \backslash
10018 singlespace
10019 \family default
10020 (3.1)・
10021 \family typewriter
10022
10023 \backslash
10024 doublespace
10025 \family default
10026 (3.1)・
10027 \family typewriter
10028
10029 \backslash
10030 onecolumn
10031 \family default
10032 (3.2)・
10033 \family typewriter
10034
10035 \backslash
10036 twocolumn
10037 \family default
10038 (3.2)
10039 \end_layout
10040
10041 \begin_layout Subsubsection
10042 実装できないもの
10043 \end_layout
10044
10045 \begin_layout Standard
10046 references(2.12.3)環境とdeluxetable(2.14)環境は,少なくとも意味のあるような形で実装することができないので,無視してください.もし,
10047 絶対に,どうしても,deluxetableを使う必要があるならば,テキストエディタで別ファイルとして編集し,
10048 \begin_inset Flex MenuItem
10049 status collapsed
10050
10051 \begin_layout Plain Layout
10052 挿入\SpecialChar menuseparator
10053 ファイル
10054 \begin_inset Formula $\text{\textipa{}}$
10055 \end_inset
10056
10057 \SpecialChar menuseparator
10058 子文書
10059 \end_layout
10060
10061 \end_inset
10062
10063 を使用して,\SpecialChar LyX
10064 ファイルに読み込むことを推奨します.この実例は,
10065 \family typewriter
10066 aas_sample.lyx
10067 \family default
10068 ファイルをご参照ください.
10069 \end_layout
10070
10071 \begin_layout Subsection
10072 FAQとヒントと技とその他の考察
10073 \end_layout
10074
10075 \begin_layout Subsubsection
10076 \SpecialChar LyX
10077 をAAS\SpecialChar TeX
10078 と協調させる
10079 \end_layout
10080
10081 \begin_layout Standard
10082 \SpecialChar LyX
10083 に,新しいレイアウトと文書クラスを認識させるには若干コツが要ります.もしうまく行かなかったら,次のようにしてみてください.
10084 \end_layout
10085
10086 \begin_layout Enumerate
10087 \SpecialChar LaTeX
10088 が,AAS\SpecialChar TeX
10089 を検出できることを確認してください.AAS\SpecialChar TeX
10090 頒布版に含まれる
10091 \family typewriter
10092 sample.tex
10093 \family default
10094 (あるいは
10095 \family typewriter
10096 table.tex
10097 \family default
10098 でも可)を,\SpecialChar LaTeX
10099 やAAS\SpecialChar TeX
10100 とまったく関係のないディレクトリにコピーして,
10101 \family typewriter
10102 sample.tex
10103 \family default
10104 を\SpecialChar LaTeX
10105 にかけてください.
10106 \end_layout
10107
10108 \begin_layout Enumerate
10109
10110 \family typewriter
10111 aastex.layout
10112 \family default
10113 が,\SpecialChar LyX
10114
10115 \family typewriter
10116 layouts
10117 \family default
10118 フォルダにあることを確認してください.
10119 \end_layout
10120
10121 \begin_layout Enumerate
10122 \SpecialChar LyX
10123 中から
10124 \family sans
10125 ツール\SpecialChar menuseparator
10126 環境構成
10127 \family default
10128 を再度実行し,\SpecialChar LyX
10129 を再起動してください.
10130 \end_layout
10131
10132 \begin_layout Enumerate
10133 ひな型ではなく,通常の新規ファイルを開いてください.AAS\SpecialChar TeX
10134 が,
10135 \family sans
10136 文書\SpecialChar menuseparator
10137 設定
10138 \family default
10139 のクラス一覧に表示されていますか?
10140 \end_layout
10141
10142 \begin_layout Standard
10143 既存のAAS\SpecialChar TeX
10144 文書を処理する際に,AAS\SpecialChar TeX
10145 レイアウトを見つけられないとか,「タイトルレイアウトと通常のレイアウトを混在させないでください」といった警告が出るようであ
10146 れば,正しい導入が行われていません.
10147 \end_layout
10148
10149 \begin_layout Subsubsection
10150 表を処理する際の\SpecialChar LaTeX
10151 エラー
10152 \end_layout
10153
10154 \begin_layout Standard
10155 既定では,\SpecialChar LyX
10156 は,表のキャプションやタイトルを中央揃えにしようと試みます.これはAAS\SpecialChar TeX
10157 と悪い相互干渉を発生させるようですので,キャプションやタイトルのどこかをクリッ
10158 クして,
10159 \family sans
10160 編集\SpecialChar menuseparator
10161 段落設定
10162 \family default
10163 を選択し,
10164 \family sans
10165 配置
10166 \family default
10167
10168 \family sans
10169 両端揃え
10170 \family default
10171 に設定してください.私のところではこれで解決しました.
10172 \end_layout
10173
10174 \begin_layout Subsubsection
10175 書誌情報
10176 \end_layout
10177
10178 \begin_layout Standard
10179 若干の注意があります.(1)文献項目の本文中の空白取りが少しおかしくなることがあるようです.書誌情報を入力する際には,最後の著者と,著作年を入れる括弧の間にスペ
10180 ースを
10181 \emph on
10182 入れない
10183 \emph default
10184 ようにしてください.たとえば,
10185 \family typewriter
10186 Ressler(1992)
10187 \family default
10188 はいいですが,
10189 \family typewriter
10190 Ressler (1992)
10191 \family default
10192 ではだめです.(2)書誌情報の入力の仕方は,必ずしも自明ではありません.もっとも簡単な方法は,文書の最後に,最初の書誌情報をまず書き込み,それを
10193 \family sans
10194 書誌情報
10195 \family default
10196 環境としてマークすることです.すると,入力したものの前に,小さな灰色のボックスが現れます.このボックスをクリックして,残りの情報を入力してください.新しい書誌情
10197 報を追加するには,既存の書誌情報の後ろでリターンを押します.すると,新しいボックスの付いた新規行が出てくるので,後は同様にしてください.
10198 \end_layout
10199
10200 \begin_layout Subsubsection
10201 EPSファイルの読み込み
10202 \end_layout
10203
10204 \begin_layout Standard
10205 AAS\SpecialChar TeX
10206 には,自前の図関連コマンド(たとえば
10207 \family typewriter
10208
10209 \backslash
10210 plotone
10211 \family default
10212 )がありますが,私は(既定のgraphicxを使った)\SpecialChar LaTeX
10213 の標準図コマンドの方がずっと好きです.望めば,図フロートボックスに,\SpecialChar TeX
10214 コードで
10215 \family typewriter
10216
10217 \backslash
10218 plotone
10219 \family default
10220 等のコマンドを挿入することはできますが,私には正しいレイアウトを得ることができた試しがありません.標準の画像コマンドを使えば,\SpecialChar LyX
10221 は,
10222 \family typewriter
10223
10224 \backslash
10225 usepackage{graphics}
10226 \family default
10227 コマンドを\SpecialChar LaTeX
10228 プリアンブルに挿入し,図を\SpecialChar LaTeX2e
10229 の標準的な方法で取り扱って,文章の中にちりばめます.現在,ApJは,ちょうどこのようにして作成した図を受け入れていますが,A
10230 Jはまだ「すべてを末尾に積み上げる」方法を使用しているかもしれません.
10231 \end_layout
10232
10233 \begin_layout Subsubsection
10234 可能だったが,実装しなかったもの
10235 \end_layout
10236
10237 \begin_layout Standard
10238 「素敵な」ものの中には,実装することも可能だったけれども,あえて実装しなかったものがあります.たとえば,紙の原稿ではダブルスペースであったとしても,\SpecialChar LyX
10239 ウィンドウ中
10240 で,文章をダブルスペースにする意味はないと考えました.また,preprint様式とpreprint2様式を,独立したレイアウトにすることもしませんでした.いずれ
10241 にしても,執筆時間のほとんどを,平の原稿モードで使うのがほとんどですから,これらの機能でディスクスペースを消費しないことにしました.
10242 \end_layout
10243
10244 \begin_layout Subsection
10245 最後に
10246 \end_layout
10247
10248 \begin_layout Standard
10249 これまでに進んできた道のりは,長い人も短い人もいることでしょう.私には,ApJとAJに発表した論文がありますが,その努力の98
10250 \begin_inset space \thinspace{}
10251 \end_inset
10252
10253 %は\SpecialChar LyX
10254 上で為されました.残りの2
10255 \begin_inset space \thinspace{}
10256 \end_inset
10257
10258 %が,\SpecialChar LaTeX
10259 での後処理と若干の後片付けです.投稿の過程では何のトラブルもなく,これらの学術誌が通常の投稿原稿と違う点に気づくことはなかったでしょう.ですから,がんばっ
10260 て発表してください!
10261 \end_layout
10262
10263 \begin_layout Section
10264 AMS \SpecialChar LaTeX
10265
10266 \end_layout
10267
10268 \begin_layout Standard
10269
10270 \noun on
10271 David Johnson
10272 \noun default
10273 文 
10274 \noun on
10275 Richard Heck
10276 \noun default
10277 改訂
10278 \begin_inset VSpace bigskip
10279 \end_inset
10280
10281
10282 \end_layout
10283
10284 \begin_layout Standard
10285 AMS \SpecialChar LaTeX
10286 レイアウトは,American Mathematical Society(アメリカ数学会)の刊行物に投稿する数学論文用のスタイルです.レイアウトは,特定
10287 の学術誌向けに仕立てられてはいませんが,簡単にそうすることができます.各学術誌毎の指示については,AMSの説明書をご参照ください(通常は,\SpecialChar TeX
10288 出力中の一行を変更する
10289 必要があるだけです).AMSの説明書は,ウェブWeb上の
10290 \begin_inset Flex URL
10291 status open
10292
10293 \begin_layout Plain Layout
10294
10295 http://www.ams.org
10296 \end_layout
10297
10298 \end_inset
10299
10300 か,FTPで
10301 \begin_inset Flex URL
10302 status open
10303
10304 \begin_layout Plain Layout
10305
10306 ftp://ftp.ams.org/pub/tex/amslatex/
10307 \end_layout
10308
10309 \end_inset
10310
10311 から入手することができます.これらのレイアウトは,数学的な文章を書くのであれば,どんなときでも適切かつ有用であるはずです.
10312 \end_layout
10313
10314 \begin_layout Standard
10315 基本となるAMS \SpecialChar LaTeX
10316 レイアウトには,以下の二つがあります.
10317 \end_layout
10318
10319 \begin_layout Itemize
10320 amsart:標準のAMS article書式.
10321 \end_layout
10322
10323 \begin_layout Itemize
10324 amsbook:標準のAMS book(実際はモノグラフ)書式.
10325 \end_layout
10326
10327 \begin_layout Standard
10328 これらのレイアウトには,それ自身では,AMSクラスを使用するのに必要最低限のものしか含まれていません.特に,定理や補題などを設定するのに使用される「theore
10329 m」環境は,何一つ含まれていません.これらは,代わりに
10330 \begin_inset Flex Code
10331 status collapsed
10332
10333 \begin_layout Plain Layout
10334 定理(AMS)
10335 \end_layout
10336
10337 \end_inset
10338
10339 モジュールに収録されており,AMSクラスのいずれかを選択すると,このモジュールが既定で読み込まれるようになっています(これは別のクラスでも使用することができ,別
10340 のものに変えたいときは取り除くこともできます).少し使用頻度の低いものとしては,
10341 \begin_inset Flex Code
10342 status collapsed
10343
10344 \begin_layout Plain Layout
10345 定理(AMS拡張)
10346 \end_layout
10347
10348 \end_inset
10349
10350 モジュールがあり,これは手動で読み込む必要があります.
10351 \end_layout
10352
10353 \begin_layout Standard
10354 既定では,定理類は,文書を通して連番が振られますが,これは
10355 \begin_inset Flex Code
10356 status collapsed
10357
10358 \begin_layout Plain Layout
10359 定理(節毎連番)
10360 \end_layout
10361
10362 \end_inset
10363
10364 モジュールを読み込めば変更することができ,
10365 \begin_inset Flex Code
10366 status collapsed
10367
10368 \begin_layout Plain Layout
10369 book (AMS)
10370 \end_layout
10371
10372 \end_inset
10373
10374 を使用している場合には
10375 \begin_inset Flex Code
10376 status collapsed
10377
10378 \begin_layout Plain Layout
10379 定理(章毎連番)
10380 \end_layout
10381
10382 \end_inset
10383
10384 を用いても変更することができます.これらを用いると,出力は
10385 \begin_inset Formula $n.m$
10386 \end_inset
10387
10388 のようになり,最初の数字は節番号(または章番号),次の数字はそれまで同節内(章内)に現れた出力の全数を表します.大半の環境は,連番なしでも用いることができます.
10389 連番なしのものは,環境名の後ろにアスタリスクを付けたもので表されます.連番なしの出力
10390 \emph on
10391 のみ
10392 \emph default
10393 が欲しい場合には,
10394 \begin_inset Flex Code
10395 status collapsed
10396
10397 \begin_layout Plain Layout
10398 定理(連番なし)
10399 \end_layout
10400
10401 \end_inset
10402
10403 モジュールを用います.
10404 \end_layout
10405
10406 \begin_layout Standard
10407 これらのモジュールは,AMSクラスで使用する
10408 \emph on
10409 必要はない
10410 \emph default
10411 ことに注意してください.
10412 \begin_inset Flex Code
10413 status collapsed
10414
10415 \begin_layout Plain Layout
10416 定理(AMS)
10417 \end_layout
10418
10419 \end_inset
10420
10421 モジュールや上述の他のモジュールは,他のクラス,たとえば
10422 \begin_inset Flex Code
10423 status collapsed
10424
10425 \begin_layout Plain Layout
10426 article
10427 \end_layout
10428
10429 \end_inset
10430
10431
10432 \begin_inset Flex Code
10433 status collapsed
10434
10435 \begin_layout Plain Layout
10436 report
10437 \end_layout
10438
10439 \end_inset
10440
10441
10442 \begin_inset Flex Code
10443 status collapsed
10444
10445 \begin_layout Plain Layout
10446 book (KOMA-script)
10447 \end_layout
10448
10449 \end_inset
10450
10451 などで問題なく使用することができます.
10452 \end_layout
10453
10454 \begin_layout Subsection
10455 これらのレイアウトが提供するもの
10456 \end_layout
10457
10458 \begin_layout Standard
10459 これらのレイアウトが提供している環境を列挙すると,長い一覧となります.AMS-\SpecialChar LaTeX
10460 では,実のところ,「theorem」環境の派生型を際限なく定義していくことが可能で
10461 す.しかし,AMSは,\SpecialChar LyX
10462 で利用可能になっている環境のみを使用することを推奨しています.
10463 \end_layout
10464
10465 \begin_layout Standard
10466 \begin_inset Flex Code
10467 status collapsed
10468
10469 \begin_layout Plain Layout
10470 article (AMS)
10471 \end_layout
10472
10473 \end_inset
10474
10475
10476 \begin_inset Flex Code
10477 status collapsed
10478
10479 \begin_layout Plain Layout
10480 book (AMS)
10481 \end_layout
10482
10483 \end_inset
10484
10485 には,——
10486 \begin_inset space ~
10487 \end_inset
10488
10489
10490 \begin_inset Flex Noun
10491 status collapsed
10492
10493 \begin_layout Plain Layout
10494
10495 \end_layout
10496
10497 \end_inset
10498
10499
10500 \begin_inset Flex Noun
10501 status collapsed
10502
10503 \begin_layout Plain Layout
10504 書誌情報
10505 \end_layout
10506
10507 \end_inset
10508
10509
10510 \begin_inset Flex Noun
10511 status collapsed
10512
10513 \begin_layout Plain Layout
10514 タイトル
10515 \end_layout
10516
10517 \end_inset
10518
10519
10520 \begin_inset Flex Noun
10521 status collapsed
10522
10523 \begin_layout Plain Layout
10524 著者
10525 \end_layout
10526
10527 \end_inset
10528
10529
10530 \begin_inset Flex Noun
10531 status collapsed
10532
10533 \begin_layout Plain Layout
10534 日付
10535 \end_layout
10536
10537 \end_inset
10538
10539 のような標準環境の他に
10540 \begin_inset space ~
10541 \end_inset
10542
10543 ——
10544 \begin_inset space ~
10545 \end_inset
10546
10547 以下の環境があります.
10548 \end_layout
10549
10550 \begin_layout Description
10551 住所 これは著者の恒久的な住所です.
10552 \end_layout
10553
10554 \begin_layout Description
10555 現在の住所 住所と別に指定されているときには,著者の投稿時の仮初めの住所です.
10556 \end_layout
10557
10558 \begin_layout Description
10559 電子メール 著者の電子メールアドレス
10560 \end_layout
10561
10562 \begin_layout Description
10563 URL 著者のウェブアドレス.任意.
10564 \end_layout
10565
10566 \begin_layout Description
10567 キーワード 論文中で論じられているトピックを識別するためのキーワードやキーフレーズ.
10568 \end_layout
10569
10570 \begin_layout Description
10571 分野分類 
10572 \emph on
10573 Mathematical Reviews
10574 \emph default
10575 に説明が公表されているAMS Subject Classificationsの分類番号を指します.上述したAMSのウェブサイトでも,オンラインで見ることができま
10576 す.
10577 \end_layout
10578
10579 \begin_layout Description
10580 謝辞
10581 \end_layout
10582
10583 \begin_layout Description
10584 献呈
10585 \end_layout
10586
10587 \begin_layout Description
10588 翻訳者
10589 \end_layout
10590
10591 \begin_layout Standard
10592 以下の環境は,
10593 \begin_inset Flex Code
10594 status collapsed
10595
10596 \begin_layout Plain Layout
10597 定理
10598 \end_layout
10599
10600 \end_inset
10601
10602 モジュールと
10603 \begin_inset Flex Code
10604 status collapsed
10605
10606 \begin_layout Plain Layout
10607 定理(AMS)
10608 \end_layout
10609
10610 \end_inset
10611
10612 モジュールの両方で提供され,後者の場合には,星付き(連番なし)版と星なし(連番)版の両方が提供されます.
10613 \begin_inset Flex Code
10614 status collapsed
10615
10616 \begin_layout Plain Layout
10617 定理(連番なし)
10618 \end_layout
10619
10620 \end_inset
10621
10622 モジュールでは,同環境の星付き版だけが提供されます.
10623 \end_layout
10624
10625 \begin_layout Theorem
10626 これは,通常,得られた主要な結果を叙述するのに使用されます.
10627 \end_layout
10628
10629 \begin_layout Corollary*
10630 これは直前の叙述から比較的直接に導き出せる結果を叙述するのに使います.これも主要な結果であることがあります.
10631 \end_layout
10632
10633 \begin_layout Lemma
10634 他の叙述を証明するために必要とされる,比較的小さな結果です.
10635 \end_layout
10636
10637 \begin_layout Proposition
10638 議論されている一般的な理論に(希望的には)何かを付け加えるような,主要ではない結果です.
10639 \end_layout
10640
10641 \begin_layout Conjecture
10642 正当化を与えずに述べられた叙述で,著者には証明法がわからないけれども,正しいと(少なくとも著者にとっては)思われるものです.
10643 \end_layout
10644
10645 \begin_layout Definition*
10646 これは自明でしょう.この環境のフォントは,前述の環境とは異なるフォントが使用されます.
10647 \end_layout
10648
10649 \begin_layout Problem
10650 これが何を指すかは必ずしも特定されていません.ご自分で解明してください.
10651 \end_layout
10652
10653 \begin_layout Exercise*
10654 この環境の説明を記述せよ.
10655 \end_layout
10656
10657 \begin_layout Note
10658 この環境もtheorem型,通常は重要性の低い所見に用いられます.
10659 \end_layout
10660
10661 \begin_layout Claim*
10662 より大きな結果の証明を与える途中で,しばしば用いられます.
10663 \end_layout
10664
10665 \begin_layout Case
10666 一般的に,これらはある条件の特定の場合を取り上げて,長い議論を区切るのに用いられます.
10667 \end_layout
10668
10669 \begin_layout Case
10670 ケースの連番の枠組みは,それ自身で独立していて,他の連番の叙述とは区別されます.
10671 \end_layout
10672
10673 \begin_layout Proof
10674 この環境の最後には,証了記号(通常は四角ですがスタイルによって変わります)が置かれます.この環境の中に別の環境を入れたい——たとえばケース環境など——場合で,証
10675 了記号は証明環境の終わりにのみ現れるようにしたい場合には,他の環境は証明環境の中に入れ子にしなくてはなりません.入れ子に関する情報については,
10676 \emph on
10677 ユーザーの手引き
10678 \emph default
10679
10680 \emph on
10681 環境を入れ子にする
10682 \emph default
10683 の節をご覧ください.
10684 \end_layout
10685
10686 \begin_layout Standard
10687 そして,以下は
10688 \begin_inset Flex Code
10689 status collapsed
10690
10691 \begin_layout Plain Layout
10692 定理(AMS拡張)
10693 \end_layout
10694
10695 \end_inset
10696
10697 で提供されるものです.
10698 \end_layout
10699
10700 \begin_layout Criterion*
10701 必要とされる条件です.
10702 \end_layout
10703
10704 \begin_layout Algorithm*
10705 使用する一般的手順です.
10706 \end_layout
10707
10708 \begin_layout Axiom*
10709 議論されている系内部で真と仮定される性質や命題です.
10710 \end_layout
10711
10712 \begin_layout Condition*
10713 議論の現在の文脈で仮定されている条件を述べるのに,よく用いられます.
10714 \end_layout
10715
10716 \begin_layout Note*
10717 注記と同様です.
10718 \end_layout
10719
10720 \begin_layout Notation*
10721 表記法の説明に用いられます.
10722 \end_layout
10723
10724 \begin_layout Summary
10725 本当に説明する必要がありますか?
10726 \end_layout
10727
10728 \begin_layout Acknowledgement*
10729 謝辞(acknowledgement)です.
10730 \end_layout
10731
10732 \begin_layout Conclusion*
10733 長い議論の終わりに時々用いられます.
10734 \end_layout
10735
10736 \begin_layout Fact
10737 命題と同様の用いられ方をしますが,だいたい長くないものに使われるようです.
10738 \end_layout
10739
10740 \begin_layout Standard
10741 さらに,AMSクラスは,AMS \SpecialChar LaTeX
10742 パッケージとAMSフォントパッケージを自動的に提供します.これらの環境を使用するためには,お使いのシステム上で利用可能となってい
10743 る必要があります.
10744 \end_layout
10745
10746 \begin_layout Section
10747 Broadway
10748 \end_layout
10749
10750 \begin_layout Standard
10751
10752 \noun on
10753 Garst Reese
10754 \noun default
10755
10756 \end_layout
10757
10758 \begin_layout Subsection
10759 はじめに
10760 \end_layout
10761
10762 \begin_layout Standard
10763 Broadwayは演劇を書くためのものです.書式はHollywoodよりも装飾的で,それほど標準化されていません.この書式はワークショップに向いているでしょう.
10764 \end_layout
10765
10766 \begin_layout Subsection
10767 特別な問題
10768 \end_layout
10769
10770 \begin_layout Standard
10771 Hollywoodと同様です.
10772 \end_layout
10773
10774 \begin_layout Subsection
10775 特別の機能
10776 \end_layout
10777
10778 \begin_layout Standard
10779
10780 \family sans
10781 話者
10782 \family default
10783 の名前をラベルとして挿入し,名前を挿入する際には,このラベルを相互参照してください.相互参照ダイアログには,登場人物の現在の配役が表示されます.
10784 \end_layout
10785
10786 \begin_layout Subsection
10787 用紙寸法と余白
10788 \end_layout
10789
10790 \begin_layout Standard
10791 USレター寸法で,余白は左1.6インチ,右0.75インチ,上0.5インチ,下0.75インチです.
10792 \end_layout
10793
10794 \begin_layout Subsection
10795 環境
10796 \end_layout
10797
10798 \begin_layout Standard
10799 以下の環境を使うことができます.右に記してある
10800 \begin_inset Flex Ruby
10801 status collapsed
10802
10803 \begin_layout Plain Layout
10804
10805 \begin_inset Argument post:1
10806 status collapsed
10807
10808 \begin_layout Plain Layout
10809 キー
10810 \end_layout
10811
10812 \end_inset
10813
10814
10815 \end_layout
10816
10817 \end_inset
10818
10819 割当ては,broadway.bindを使った場合のものです.
10820 \end_layout
10821
10822 \begin_layout Itemize
10823
10824 \family sans
10825 標準
10826 \begin_inset Newline newline
10827 \end_inset
10828
10829
10830 \family default
10831 これは使わなくていいはずですが,他の環境が当てはまらない場合のためにここに挙げておきます.
10832 \end_layout
10833
10834 \begin_layout Itemize
10835
10836 \family sans
10837 ト書き
10838 \begin_inset space \hfill{}
10839 \end_inset
10840
10841 M-z n
10842 \begin_inset Newline newline
10843 \end_inset
10844
10845
10846 \family default
10847 舞台設定と動作の説明に用います.最初に話者名をすべて大文字で書いておきます.
10848 \end_layout
10849
10850 \begin_layout Itemize
10851
10852 \family sans
10853
10854 \begin_inset space \hfill{}
10855 \end_inset
10856
10857 M-z a
10858 \begin_inset Newline newline
10859 \end_inset
10860
10861
10862 \family default
10863 自動的に連番が振られます.連番は,画面上ではアラビア数字ですが,出力ではローマ数字です.
10864 \end_layout
10865
10866 \begin_layout Itemize
10867
10868 \family sans
10869 幕*
10870 \begin_inset space \hfill{}
10871 \end_inset
10872
10873 M-z S at
10874 \begin_inset Newline newline
10875 \end_inset
10876
10877
10878 \family default
10879 幕の副題です.単に中央揃えの文になります.
10880 \end_layout
10881
10882 \begin_layout Itemize
10883
10884 \family sans
10885 場面
10886 \begin_inset space \hfill{}
10887 \end_inset
10888
10889 M-z S-S
10890 \begin_inset Newline newline
10891 \end_inset
10892
10893
10894 \family default
10895 自動的に連番は振られませんので,手動で番号を付けてください.これは私がどうすればいいか分からなかったためです.
10896 \end_layout
10897
10898 \begin_layout Itemize
10899
10900 \family sans
10901 幕開きに:
10902 \begin_inset space \hfill{}
10903 \end_inset
10904
10905 M-z S-R
10906 \begin_inset Newline newline
10907 \end_inset
10908
10909
10910 \family default
10911 ト書きの特殊な場合で,カーテンが上がるときの舞台設定と動作を説明します.
10912 \end_layout
10913
10914 \begin_layout Itemize
10915
10916 \family sans
10917 話者
10918 \begin_inset space \hfill{}
10919 \end_inset
10920
10921 M-z s
10922 \begin_inset Newline newline
10923 \end_inset
10924
10925
10926 \family default
10927 話者(役者)の配役です.すべて大文字で中央揃えに置かれます.
10928 \end_layout
10929
10930 \begin_layout Itemize
10931
10932 \family sans
10933 括弧付き
10934 \begin_inset space \hfill{}
10935 \end_inset
10936
10937 M-z p
10938 \begin_inset Newline newline
10939 \end_inset
10940
10941
10942 \family default
10943 話者への指示です.括弧は自動的に挿入されます.画面上には左括弧(のみが表示されますが,印字出力には両方の括弧が表示されます.この環境は,
10944 \family sans
10945 対話
10946 \family default
10947 の中だけで使用されます. 
10948 \end_layout
10949
10950 \begin_layout Itemize
10951
10952 \family sans
10953 対話
10954 \begin_inset space \hfill{}
10955 \end_inset
10956
10957 M-z d
10958 \begin_inset Newline newline
10959 \end_inset
10960
10961
10962 \family default
10963 話者の言う内容.
10964 \end_layout
10965
10966 \begin_layout Itemize
10967
10968 \family sans
10969 幕切れ
10970 \begin_inset space \hfill{}
10971 \end_inset
10972
10973 M-z S-C
10974 \begin_inset Newline newline
10975 \end_inset
10976
10977
10978 \family default
10979 幕が降ります.
10980 \end_layout
10981
10982 \begin_layout Itemize
10983
10984 \family sans
10985 タイトル
10986 \begin_inset space \hfill{}
10987 \end_inset
10988
10989 M-z S-T
10990 \end_layout
10991
10992 \begin_layout Itemize
10993
10994 \family sans
10995 著者
10996 \begin_inset space \hfill{}
10997 \end_inset
10998
10999 M-z S-A
11000 \end_layout
11001
11002 \begin_layout Itemize
11003
11004 \family sans
11005 右寄せ住所
11006 \begin_inset space \hfill{}
11007 \end_inset
11008
11009 M-z r
11010 \end_layout
11011
11012 \begin_layout Section
11013 Dinbrief
11014 \end_layout
11015
11016 \begin_layout Standard
11017 文書クラス
11018 \family sans
11019 dinbrief
11020 \family default
11021 は,ドイツの慣習に則った書簡の組版を行うのに用いられます.ひな型ファイルが
11022 \family typewriter
11023 .../lyx/share/templates
11024 \family default
11025 にあるので,それを土台として使用してください.
11026 \end_layout
11027
11028 \begin_layout Section
11029 Elsevier各誌
11030 \end_layout
11031
11032 \begin_layout Standard
11033 \SpecialChar LyX
11034 ひな型ファイルの
11035 \family typewriter
11036 elsarticle.lyx
11037 \family default
11038 を参照してください.必要な情報は全てそこにあります.
11039 \end_layout
11040
11041 \begin_layout Section
11042 Foils別名Foil\SpecialChar TeX
11043
11044 \begin_inset CommandInset label
11045 LatexCommand label
11046 name "sec:foiltex"
11047
11048 \end_inset
11049
11050
11051 \end_layout
11052
11053 \begin_layout Standard
11054
11055 \noun on
11056 Allan Rae
11057 \noun default
11058
11059 \end_layout
11060
11061 \begin_layout Subsection
11062 はじめに
11063 \end_layout
11064
11065 \begin_layout Standard
11066 本節では,プレゼンテーション用のスライドを作るための,\SpecialChar LyX
11067 の使用法を解説します.スライドを作ることのできる文書クラスには,slides・Foil\SpecialChar TeX
11068 ・seminar・b
11069 eamer・powerdotといったクラスがありますが,本節では,そのうちslidesの解説を行います.
11070 \end_layout
11071
11072 \begin_layout Standard
11073 誤解のないように,わかりやすく明確に,もう一度言っておきます.
11074 \end_layout
11075
11076 \begin_layout Standard
11077 \begin_inset VSpace bigskip
11078 \end_inset
11079
11080
11081 \end_layout
11082
11083 \begin_layout Standard
11084 \align center
11085
11086 \size large
11087 本節は「
11088 \family sans
11089 FoilTeX
11090 \family default
11091 」クラス
11092 \emph on
11093 のみの
11094 \emph default
11095 解説を行います.
11096 \end_layout
11097
11098 \begin_layout Standard
11099 \begin_inset VSpace bigskip
11100 \end_inset
11101
11102
11103 \end_layout
11104
11105 \begin_layout Standard
11106
11107 \family sans
11108 transparencies (slides)
11109 \family default
11110 」の解説をお探しであれば,第
11111 \begin_inset CommandInset ref
11112 LatexCommand ref
11113 reference "sec:slitex"
11114
11115 \end_inset
11116
11117 節をご覧ください.お使いのコンピュータに
11118 \family sans
11119 foils
11120 \family default
11121 クラス
11122 \family sans
11123 FoilTeX
11124 \family default
11125 が導入されていなければ,
11126 \family sans
11127 foils
11128 \family default
11129 ほど良くはありませんが,おそらく
11130 \family sans
11131 slides
11132 \family default
11133 クラスを使わざるをえないでしょう.
11134 \end_layout
11135
11136 \begin_layout Standard
11137
11138 \family sans
11139 foils
11140 \family default
11141 クラスは,\SpecialChar LaTeX2e
11142 の一部として含まれている\SpecialChar LaTeX
11143 クラスファイル
11144 \family sans
11145 foils.cls
11146 \family default
11147 の第2.1版とともに使われるように設計されています.
11148 \end_layout
11149
11150 \begin_layout Subsection
11151 最初の一歩
11152 \end_layout
11153
11154 \begin_layout Standard
11155 いうまでもなく,この文書クラスを使うには,
11156 \family sans
11157 文書\SpecialChar menuseparator
11158 設定\SpecialChar menuseparator
11159 文書クラス
11160 \family default
11161 メニューの
11162 \family sans
11163 文書クラス
11164 \family default
11165 ドロップダウンで「
11166 \family sans
11167 FoilTeX
11168 \family default
11169 」を選択する必要があります.また,
11170 \family sans
11171 文書設定
11172 \family default
11173 ダイアログ中には,以下のように,このクラスに特有の設定がいくつかあることを知っておかなくてはなりません.
11174 \end_layout
11175
11176 \begin_layout Itemize
11177
11178 \family sans
11179 文書設定
11180 \family default
11181 ダイアログ中の,
11182 \family sans
11183 両面文書
11184 \family default
11185 オプションと
11186 \family sans
11187 二段組文書
11188 \family default
11189 オプションは変更しないでください.これらは 
11190 \family sans
11191 foils
11192 \family default
11193 クラスでは無視されます.
11194 \end_layout
11195
11196 \begin_layout Itemize
11197 既定のフォント寸法は20ptであり,17
11198 \begin_inset space \thinspace{}
11199 \end_inset
11200
11201 pt・25
11202 \begin_inset space \thinspace{}
11203 \end_inset
11204
11205 pt・30
11206 \begin_inset space \thinspace{}
11207 \end_inset
11208
11209 ptを選択することも可能です.
11210 \end_layout
11211
11212 \begin_layout Itemize
11213 既定のフォントは
11214 \family sans
11215 sans
11216 \family default
11217  
11218 \family sans
11219 serif
11220 \family default
11221 ですが,数式ではすべて,通常のローマン体が使用されます.
11222 \end_layout
11223
11224 \begin_layout Itemize
11225 Foil\SpecialChar TeX
11226 は,35
11227 \begin_inset space \thinspace{}
11228 \end_inset
11229
11230 mmスライド用の特殊寸法の他,A4とレター大の用紙寸法をサポートします.A5・B5・リーガル・エグゼクティブ大の用紙寸法はサポートしていません.
11231 \end_layout
11232
11233 \begin_layout Itemize
11234
11235 \family sans
11236 フロートの配置
11237 \family default
11238 の設定は無視されますので,わざわざ変更する必要はありません.フロートはすべて,本文中で定義された位置に表示されます.
11239 \end_layout
11240
11241 \begin_layout Itemize
11242 このクラスの
11243 \family sans
11244 ページレイアウト
11245 \family default
11246 の設定は,若干異なった挙動を示します.Foil\SpecialChar TeX
11247 では,ユーザ定義のロゴをはじめ,フッタとへッダに広範な設定ができます.詳細については第
11248 \begin_inset CommandInset ref
11249 LatexCommand ref
11250 reference "sec:foilfoot"
11251
11252 \end_inset
11253
11254 節をご覧ください.タイトルページは,文書中の他のページとは異なった取扱がなされ,ページ番号は
11255 \emph on
11256 つねに
11257 \emph default
11258 付けられず,(ロゴが定義されていれば)ロゴは,
11259 \emph on
11260 つねに
11261 \emph default
11262 ページ下部中央に表示されます.使用できるページ様式とその挙動は,以下の通りです.
11263 \end_layout
11264
11265 \begin_deeper
11266 \begin_layout Labeling
11267 \labelwidthstring MMMMMMM
11268
11269 \family sans
11270 \series bold
11271 empty
11272 \family default
11273 \series default
11274  最終出力には,ページ番号をはじめ,へッダ・フッタが出力されません(もちろん脚注は除きます).
11275 \end_layout
11276
11277 \begin_layout Labeling
11278 \labelwidthstring MMMMMMM
11279
11280 \family sans
11281 \series bold
11282 plain
11283 \family default
11284 \series default
11285  最終出力には,ページ番号がページ下部の中央に出力されますが,他のへッダ・フッタは出力されません(脚注除く).
11286 \end_layout
11287
11288 \begin_layout Labeling
11289 \labelwidthstring MMMMMMM
11290
11291 \series bold
11292 foilheadings
11293 \series default
11294  ページ番号が右下隅に出力されます.追記したへッダ・フッタも出力されます.これが既定値です.
11295 \end_layout
11296
11297 \begin_layout Labeling
11298 \labelwidthstring MMMMMMM
11299
11300 \series bold
11301 fancy
11302 \series default
11303  これは
11304 \family sans
11305 fancyheadings
11306 \family default
11307 パッケージを使えるようにします.ただし,Foil\SpecialChar TeX
11308 パッケージの作者は,ページレイアウトが崩れる可能性があるので,これを使用することは勧めないと言及しています.
11309 \end_layout
11310
11311 \end_deeper
11312 \begin_layout Subsubsection
11313 任意設定クラスオプション
11314 \end_layout
11315
11316 \begin_layout Standard
11317 以下のオプションは
11318 \family sans
11319 文書設定
11320 \family default
11321 ダイアログの任意設定クラスオプションボックスで使うことができます.
11322 \end_layout
11323
11324 \begin_layout Labeling
11325 \labelwidthstring MMMMMMx
11326
11327 \series bold
11328 35mmSlide
11329 \series default
11330  これは,ページレイアウトを縦7.33インチ横11インチに設定します.これは35
11331 \begin_inset space \space{}
11332 \end_inset
11333
11334 mmスライドの縦横比にほぼ等しく,このメディアを作る作業が若干易しくなります.
11335 \end_layout
11336
11337 \begin_layout Labeling
11338 \labelwidthstring MMMMMMx
11339
11340 \series bold
11341 headrule
11342 \series default
11343  タイトルページを除くすべてのページのへッダの下に罫線を入れます.
11344 \end_layout
11345
11346 \begin_layout Labeling
11347 \labelwidthstring MMMMMMx
11348
11349 \series bold
11350 footrule
11351 \series default
11352  タイトルページを除くすべてのページのフッタの上に罫線を入れます.
11353 \end_layout
11354
11355 \begin_layout Labeling
11356 \labelwidthstring MMMMMMx
11357
11358 \series bold
11359 dvips
11360 \series default
11361  これは,新規
11362 \family sans
11363 foils
11364 \family default
11365 文書を作成する度に自動的に設定されます.このオプションは,横向きに設定されたページを回転させるのに,dvipsドライバを使うようFoil\SpecialChar TeX
11366 に指示します.
11367 \end_layout
11368
11369 \begin_layout Labeling
11370 \labelwidthstring MMMMMMx
11371
11372 \series bold
11373 landscape
11374 \series default
11375  このオプションは,用紙寸法を横向きページ大に変更するだけで,回転は行いません.したがって,このオプションを使う場合は,各ページを回転させる外部プログラムを使用
11376 する,プリンタに用紙を横向きに給紙する必要があります.また,このオプションは,
11377 \family sans
11378 Foilhead
11379 \family default
11380 環境と
11381 \family sans
11382 Rotatefoilhead
11383 \family default
11384 環境の役割を逆転させることに注意してください(これらの環境については次節で説明します).
11385 \end_layout
11386
11387 \begin_layout Labeling
11388 \labelwidthstring MMMMMMx
11389
11390 \series bold
11391 leqno
11392 \series default
11393  数式番号を左側に付けます.
11394 \end_layout
11395
11396 \begin_layout Labeling
11397 \labelwidthstring MMMMMMx
11398
11399 \series bold
11400 fleqn
11401 \series default
11402  数式を左揃えにします.
11403 \end_layout
11404
11405 \begin_layout Subsection
11406 サポートされる環境
11407 \end_layout
11408
11409 \begin_layout Standard
11410 他のクラスで標準的にサポートされている環境は,
11411 \family sans
11412 foils
11413 \family default
11414 クラスでもサポートされています.それ以外に,Foil\SpecialChar TeX
11415 が提供している環境と,\SpecialChar LyX
11416 が付け加えた環境があります.以下の環境は,他のクラスと共通の環境です.
11417 \end_layout
11418
11419 \begin_layout Standard
11420
11421 \family sans
11422 \begin_inset Flex Multiple Columns
11423 status open
11424
11425 \begin_layout Itemize
11426
11427 \family sans
11428 標準
11429 \end_layout
11430
11431 \begin_layout Itemize
11432
11433 \family sans
11434 箇条書き(記号)
11435 \end_layout
11436
11437 \begin_layout Itemize
11438
11439 \family sans
11440 箇条書き(連番)
11441 \end_layout
11442
11443 \begin_layout Itemize
11444
11445 \family sans
11446 箇条書き(記述)
11447 \end_layout
11448
11449 \begin_layout Itemize
11450
11451 \family sans
11452 箇条書き(リスト)
11453 \end_layout
11454
11455 \begin_layout Itemize
11456
11457 \family sans
11458 \SpecialChar LyX
11459 コード
11460 \end_layout
11461
11462 \begin_layout Itemize
11463
11464 \family sans
11465 詩句
11466 \end_layout
11467
11468 \begin_layout Itemize
11469
11470 \family sans
11471 引用(字下げあり)
11472 \end_layout
11473
11474 \begin_layout Itemize
11475
11476 \family sans
11477 引用(字下げなし)
11478 \end_layout
11479
11480 \begin_layout Itemize
11481
11482 \family sans
11483 タイトル
11484 \end_layout
11485
11486 \begin_layout Itemize
11487
11488 \family sans
11489 著者
11490 \end_layout
11491
11492 \begin_layout Itemize
11493
11494 \family sans
11495 日付
11496 \end_layout
11497
11498 \begin_layout Itemize
11499
11500 \family sans
11501 概要
11502 \end_layout
11503
11504 \begin_layout Itemize
11505
11506 \family sans
11507 書誌情報
11508 \end_layout
11509
11510 \begin_layout Itemize
11511
11512 \family sans
11513 住所
11514 \end_layout
11515
11516 \begin_layout Itemize
11517
11518 \family sans
11519 右寄せ住所
11520 \end_layout
11521
11522 \end_inset
11523
11524
11525 \end_layout
11526
11527 \begin_layout Standard
11528 つまり,節区切りを除けば,主な環境のすべてです.一枚のスライドは,基本的にタイトルと本文を備えた自己完結した節なので,
11529 \family sans
11530 Foil
11531 \family default
11532 \SpecialChar TeX
11533 は新しいスライドを始める以下のようなコマンドを備えています.
11534 \end_layout
11535
11536 \begin_layout Itemize
11537
11538 \family sans
11539 スライドタイトル(Foilhead)
11540 \end_layout
11541
11542 \begin_layout Itemize
11543
11544 \family sans
11545 横置きスライドタイトル(Rotatefoilhead)
11546 \end_layout
11547
11548 \begin_layout Standard
11549 \SpecialChar LyX
11550 は,以下のような,これらを若干修正した環境も用意しています.
11551 \end_layout
11552
11553 \begin_layout Itemize
11554
11555 \family sans
11556 スライドタイトル(小)(ShortFoilhead)
11557 \end_layout
11558
11559 \begin_layout Itemize
11560
11561 \family sans
11562 横置きスライドタイトル(小)(ShortRotatefoilhead)
11563 \end_layout
11564
11565 \begin_layout Standard
11566 これらの違いは次節で説明します.
11567 \end_layout
11568
11569 \begin_layout Standard
11570 スライドは,アイデアを説明したり,新しい定理を説明したりするのにしばしば使われるので,
11571 \family sans
11572 Foil
11573 \family default
11574 \SpecialChar TeX
11575 はそれらを説明するのに便利な環境を幅広く用意しています.
11576 \end_layout
11577
11578 \begin_layout Standard
11579
11580 \family sans
11581 \begin_inset Flex Multiple Columns
11582 status open
11583
11584 \begin_layout Itemize
11585
11586 \family sans
11587 定理
11588 \end_layout
11589
11590 \begin_layout Itemize
11591
11592 \family sans
11593 補題
11594 \end_layout
11595
11596 \begin_layout Itemize
11597
11598 \family sans
11599
11600 \end_layout
11601
11602 \begin_layout Itemize
11603
11604 \family sans
11605 命題
11606 \end_layout
11607
11608 \begin_layout Itemize
11609
11610 \family sans
11611 定義
11612 \end_layout
11613
11614 \begin_layout Itemize
11615
11616 \family sans
11617 証明
11618 \end_layout
11619
11620 \begin_layout Itemize
11621
11622 \family sans
11623 定理*
11624 \end_layout
11625
11626 \begin_layout Itemize
11627
11628 \family sans
11629 補題*
11630 \end_layout
11631
11632 \begin_layout Itemize
11633
11634 \family sans
11635 系*
11636 \end_layout
11637
11638 \begin_layout Itemize
11639
11640 \family sans
11641 命題*
11642 \end_layout
11643
11644 \begin_layout Itemize
11645
11646 \family sans
11647 定義*
11648 \end_layout
11649
11650 \end_inset
11651
11652
11653 \end_layout
11654
11655 \begin_layout Standard
11656 星付き版は連番が振られず,星なし版は連番が振られます.他に,\SpecialChar LyX
11657 で追加された以下の2つの箇条書き環境があります.
11658 \end_layout
11659
11660 \begin_layout Itemize
11661
11662 \family sans
11663 箇条書き(チック)
11664 \end_layout
11665
11666 \begin_layout Itemize
11667
11668 \family sans
11669 箇条書き(クロス)
11670 \end_layout
11671
11672 \begin_layout Standard
11673 Foil\SpecialChar TeX
11674 には,強力なヘッダ機能とフッタ機能があり,これらはプリアンブルで設定するのが最良ですが,文章中のどこでも設定することができます.もし文書中でこれらの設定
11675 を変更したい場合には,スライドの一番上,foilheadの直後で行うのが良いでしょう.
11676 \end_layout
11677
11678 \begin_layout Standard
11679 この目的のためには,以下のコマンドスタイルがあります(
11680 \shape smallcaps
11681 Martin Vermeer).
11682 \end_layout
11683
11684 \begin_layout Standard
11685 \begin_inset Flex Multiple Columns
11686 status open
11687
11688 \begin_layout Itemize
11689
11690 \family sans
11691 グラフィックスロゴ
11692 \end_layout
11693
11694 \begin_layout Itemize
11695
11696 \family sans
11697 配布制限
11698 \end_layout
11699
11700 \begin_layout Itemize
11701
11702 \family sans
11703 右フッタ
11704 \end_layout
11705
11706 \begin_layout Itemize
11707
11708 \family sans
11709 右ヘッダ
11710 \end_layout
11711
11712 \begin_layout Itemize
11713
11714 \family sans
11715 左ヘッダ
11716 \end_layout
11717
11718 \begin_deeper
11719 \begin_layout Plain Layout
11720 \begin_inset space ~
11721 \end_inset
11722
11723
11724 \end_layout
11725
11726 \end_deeper
11727 \end_inset
11728
11729
11730 \end_layout
11731
11732 \begin_layout Standard
11733 Foil\SpecialChar TeX
11734 が提供しているコマンドで,\SpecialChar LyX
11735 が直接サポートしていないコマンドもありますが,これらの説明と使い方については,第
11736 \begin_inset CommandInset ref
11737 LatexCommand ref
11738 reference "sec:unsuppfoils"
11739
11740 \end_inset
11741
11742 節で行います.
11743 \end_layout
11744
11745 \begin_layout Subsection
11746 スライドの組を作る
11747 \end_layout
11748
11749 \begin_layout Standard
11750 この節は,様々な環境を使ってスライドの組を作る方法を簡単に紹介します.スライド組の例をご覧になりたい場合は,\SpecialChar LyX
11751
11752 \family typewriter
11753 examples
11754 \family default
11755 フォルダにある
11756 \family typewriter
11757 Foils.lyx
11758 \family default
11759 ファイルをご覧ください.
11760 \end_layout
11761
11762 \begin_layout Subsubsection
11763 タイトルページを作る
11764 \end_layout
11765
11766 \begin_layout Standard
11767
11768 \family sans
11769 タイトル
11770 \family default
11771
11772 \family sans
11773 著者
11774 \family default
11775
11776 \family sans
11777 日付
11778 \family default
11779
11780 \family sans
11781 概要
11782 \family default
11783 環境のある他のクラスとは異なり,
11784 \family sans
11785 foils
11786 \family default
11787 は独立したページにタイトルを作成します.
11788 \family sans
11789 日付
11790 \family default
11791 環境を使用しなかった場合には,\SpecialChar LaTeX
11792 は(出力を生成し直したときにはいつも)その時点の日付を挿入します.
11793 \end_layout
11794
11795 \begin_layout Subsubsection
11796 新しいスライドを開始する
11797 \end_layout
11798
11799 \begin_layout Standard
11800 前述のように,新しいスライドを開始するには,4つの方法があります.縦向きのスライドを開始するには,
11801 \family sans
11802 スライドタイトル(Foilhead)
11803 \family default
11804
11805 \family sans
11806 スライドタイトル(小)(ShortFoilhead)
11807 \family default
11808 を使用します.両環境の違いは,スライドタイトル(foilhead)とスライド本文の間の余白の違いです.
11809 \end_layout
11810
11811 \begin_layout Standard
11812 横向きのスライドは,
11813 \family sans
11814 横向きスライドタイトル(Rotatefoilhead)
11815 \family default
11816 か横向きスライドタイトル(小)(
11817 \family sans
11818 ShortRotatefoilhead)
11819 \family default
11820 環境を使用して生成します.ここでも両環境の違いは,タイトルと本文の間の余白のみです.どちらの場合も,(小)と記された版は,タイトルと本文の間の余白が,0.5インチ
11821 (約1.27cm)小さくなります.
11822 \end_layout
11823
11824 \begin_layout Standard
11825 横向きのスライドをサポートする際,一つ問題となるのは,スライドを回転させようと思うと,PostScript出力を生成するのに
11826 \family typewriter
11827 dvips
11828 \family default
11829 ドライバを使用することを要求してしまうことです.もしスライドをプリンタに横に給紙することができれば,
11830 \family typewriter
11831 dvips
11832 \family default
11833 ドライバを持っていなくても,横向きのスライドをつくることができます ;-)
11834 \end_layout
11835
11836 \begin_layout Subsubsection
11837 定理・補題・証明など
11838 \end_layout
11839
11840 \begin_layout Standard
11841 これらの環境の同じ型をお互いに直接続けて置くことはできません.通常の段落開業を用いると,2つの環境をマージしたかのように,前の環境が延長されるだけです.そうでは
11842 なく,いわゆる分離線を挿入する必要があります.
11843 \emph on
11844 ユーザーの手引き
11845 \emph default
11846 の「
11847 \emph on
11848 入れ子の分離
11849 \emph default
11850 」の節を参照してください.
11851 \end_layout
11852
11853 \begin_layout Subsubsection
11854 箇条書き
11855 \end_layout
11856
11857 \begin_layout Standard
11858 他のクラスでも共通にサポートされている箇条書き様式すべてに加えて,二つの新しい様式を使用することができます.ここでは,その新しい様式のみを説明することにします.
11859 他の箇条書き環境について詳しく知りたい場合には,
11860 \emph on
11861 ユーザーの手引き
11862 \emph default
11863 をご覧ください.記号による箇条書きを使用したい場合には,上記第
11864 \begin_inset CommandInset ref
11865 LatexCommand ref
11866 reference "sec:ブリット"
11867
11868 \end_inset
11869
11870 節の
11871 \family sans
11872 箇条書き(記号)ブリットの指定
11873 \family default
11874 の節も,読まれることが望ましいでしょう.
11875 \end_layout
11876
11877 \begin_layout Standard
11878
11879 \family sans
11880 箇条書き(チック)
11881 \family default
11882
11883 \family sans
11884 箇条書き(クロス)
11885 \family default
11886 の二つの新しい様式は,チェック印や
11887 \begin_inset Formula $\times$
11888 \end_inset
11889
11890 印を箇条書きのラベルに使用する専用の環境を提供することで,予定一覧や正誤一覧を作りやすくするように設計されたものです.これらの箇条書きは,
11891 \family sans
11892 箇条書き(記号)
11893 \family default
11894 の派生型を専用に用意したものに過ぎません.ただし,これらは,
11895 \family typewriter
11896 psnfss
11897 \family default
11898 パッケージが導入済であることを要求します.
11899 \end_layout
11900
11901 \begin_layout Subsubsection
11902 図と表
11903 \end_layout
11904
11905 \begin_layout Standard
11906 Foil\SpecialChar TeX
11907 では,図表フロートは,本文中の挿入箇所にこれらが正確に表示されるように再定義されており,ページの上部やユーザー指定場所に押しのけたりはしないようになって
11908 います.たとえフロート配置の設定に変更を加えたとしても,単に無視されます.
11909 \end_layout
11910
11911 \begin_layout Subsubsection
11912 ページヘッダおよびページフッタ
11913 \begin_inset CommandInset label
11914 LatexCommand label
11915 name "sec:foilfoot"
11916
11917 \end_inset
11918
11919
11920 \end_layout
11921
11922 \begin_layout Standard
11923
11924 \family sans
11925 グラフィックスロゴ
11926 \family default
11927
11928 \family sans
11929 配布制限
11930 \family default
11931 の二つは,左フッタ文を制御するものです.前者は,グラフィックスのロゴをスライドに入れるためのもので,既定値は「-Typeset by 
11932 \family sans
11933 Foil
11934 \family default
11935 \SpecialChar TeX
11936 -」となっています.後者は,「機密事項」などのように,聴衆に秘密区分を提示することを意図しています.既定値では,何も設定されていません.
11937 \end_layout
11938
11939 \begin_layout Standard
11940 スライドの残り三隅には,
11941 \family sans
11942 右フッタ
11943 \family default
11944 (既定ではページ番号)・
11945 \family sans
11946 右ヘッダ
11947 \family default
11948 (右上)・
11949 \family sans
11950 左ヘッダ
11951 \family default
11952 (左上)を使って文字を入れることができます.
11953 \end_layout
11954
11955 \begin_layout Subsection
11956 サポートされない 
11957 \family sans
11958 Foil
11959 \family default
11960 \SpecialChar TeX
11961 機能
11962 \begin_inset CommandInset label
11963 LatexCommand label
11964 name "sec:unsuppfoils"
11965
11966 \end_inset
11967
11968
11969 \end_layout
11970
11971 \begin_layout Standard
11972 以下で言及されているコマンドは,
11973 \family sans
11974 \SpecialChar LaTeX
11975
11976 \family default
11977 環境内で設定されるか,他の環境中の
11978 \family sans
11979 \SpecialChar TeX
11980 コード
11981 \family default
11982 として設定される必要があります.
11983 \end_layout
11984
11985 \begin_layout Subsubsection
11986 長さ
11987 \end_layout
11988
11989 \begin_layout Standard
11990 長さは,すべて
11991 \family typewriter
11992
11993 \backslash
11994 setlength{
11995 \family default
11996 \emph on
11997 長さ名
11998 \family typewriter
11999 \emph default
12000 }{
12001 \family default
12002 \emph on
12003 新規長さ
12004 \family typewriter
12005 \emph default
12006 }
12007 \family default
12008 コマンドで調節されます.ここで
12009 \emph on
12010 長さ名
12011 \emph default
12012 は,変更したい長さに付けられている名前で置き換え,
12013 \emph on
12014 新規長さ
12015 \emph default
12016 は,その長さの値で置き換えます.長さはすべて,インチ(in)・ミリメートル(mm)・ポイント(pt)のような長さ単位か,
12017 \family typewriter
12018
12019 \backslash
12020 textwidth
12021 \family default
12022 のように文書比あるいはフォント基準の長さで指定する必要があります.
12023 \end_layout
12024
12025 \begin_layout Standard
12026
12027 \family typewriter
12028
12029 \backslash
12030 foilheadskip
12031 \family default
12032 で指定される長さを調節することによって,スライドタイトルとスライド本文の間の余白を変更することができます.たとえば,スライドタイトルをすべて0.5
12033 \begin_inset space \space{}
12034 \end_inset
12035
12036 inだけスライド本文に近づけるには,プリアンブルに
12037 \family typewriter
12038
12039 \backslash
12040 setlength{
12041 \backslash
12042 foilheadskip}{-0.5in}
12043 \family default
12044 と書き込みます.
12045 \end_layout
12046
12047 \begin_layout Standard
12048 フロート周囲の余白は,以下の長さを設定することで調整することができます.
12049 \end_layout
12050
12051 \begin_layout Labeling
12052 \labelwidthstring MMMMMMMMMMM
12053
12054 \family typewriter
12055
12056 \backslash
12057 abovefloatskip
12058 \family default
12059  本文とフロート上辺との間隔
12060 \end_layout
12061
12062 \begin_layout Labeling
12063 \labelwidthstring MMMMMMMMMMM
12064
12065 \family typewriter
12066
12067 \backslash
12068 abovecaptionskip
12069 \family default
12070  フロートとキャプションとの間隔
12071 \end_layout
12072
12073 \begin_layout Labeling
12074 \labelwidthstring MMMMMMMMMMM
12075
12076 \family typewriter
12077
12078 \backslash
12079 belowcaptionskip
12080 \family default
12081  キャプションとそれに続く本文との間隔
12082 \end_layout
12083
12084 \begin_layout Labeling
12085 \labelwidthstring MMMMMMMMMMM
12086
12087 \family typewriter
12088
12089 \backslash
12090 captionwidth
12091 \family default
12092  この長さを調整することでキャプションを,周囲の本文より短くすることができます.
12093 \family typewriter
12094
12095 \backslash
12096 textwidth
12097 \family default
12098 に対する相対的な長さで調整するのが最も良いでしょう.
12099 \end_layout
12100
12101 \begin_layout Standard
12102 以下のようなタイトルページ関連の長さもあり,タイトルが長い場合や,著者が複数いる場合に使うと便利かもしれません.
12103 \end_layout
12104
12105 \begin_layout Labeling
12106 \labelwidthstring MMMMMMMMMMM
12107
12108 \family typewriter
12109
12110 \backslash
12111 abovetitleskip
12112 \family default
12113  へッダとタイトルとの間隔
12114 \end_layout
12115
12116 \begin_layout Labeling
12117 \labelwidthstring MMMMMMMMMMM
12118
12119 \family typewriter
12120
12121 \backslash
12122 titleauthorskip
12123 \family default
12124  
12125 \family sans
12126 タイトル
12127 \family default
12128 環境と
12129 \family sans
12130 著者
12131 \family default
12132 環境との間隔
12133 \end_layout
12134
12135 \begin_layout Labeling
12136 \labelwidthstring MMMMMMMMMMM
12137
12138 \family typewriter
12139
12140 \backslash
12141 authorauthorskip
12142 \family default
12143  著者が複数いる場合の
12144 \family sans
12145 著者
12146 \family default
12147 行の間隔
12148 \end_layout
12149
12150 \begin_layout Labeling
12151 \labelwidthstring MMMMMMMMMMM
12152
12153 \family typewriter
12154
12155 \backslash
12156 authordateskip
12157 \family default
12158  
12159 \family sans
12160 著者
12161 \family default
12162
12163 \family sans
12164 日付
12165 \family default
12166 との間隔
12167 \end_layout
12168
12169 \begin_layout Labeling
12170 \labelwidthstring MMMMMMMMMMM
12171
12172 \family typewriter
12173
12174 \backslash
12175 dateabstractskip
12176 \family default
12177  
12178 \family sans
12179 日付
12180 \family default
12181
12182 \family sans
12183 概要
12184 \family default
12185 との間隔
12186 \end_layout
12187
12188 \begin_layout Standard
12189 最後に紹介する長さ関連コマンドは,箇条書き環境すべてに使用できるものです.
12190 \family typewriter
12191
12192 \backslash
12193 zerolistvertdimens
12194 \family default
12195 を箇条書き環境の内側に置くと,項目間の垂直余白がすべて取り除かれます.これは長さではなくコマンドなので,上述のもののように
12196 \family typewriter
12197
12198 \backslash
12199 setlength
12200 \family default
12201 を使う必要がないことに注意してください.
12202 \end_layout
12203
12204 \begin_layout Subsubsection
12205 へッダとフッタ
12206 \end_layout
12207
12208 \begin_layout Standard
12209
12210 \family typewriter
12211
12212 \backslash
12213 LogoOn
12214 \family default
12215 および
12216 \family typewriter
12217
12218 \backslash
12219 LogoOff
12220 \family default
12221 は,
12222 \family typewriter
12223 MyLogo
12224 \family default
12225 で定義したロゴを特定のページに入れるかどうかを制御します.
12226 \family typewriter
12227
12228 \backslash
12229 LogoOff
12230 \family default
12231 をプリアンブルに入れると,全スライドからロゴが取り除かれます.特定のスライドにのみロゴを付けたくない場合は,当該ページのスライドタイトルの直後に直接
12232 \family typewriter
12233
12234 \backslash
12235 LogoOff
12236 \family default
12237 を置き,次のスライドタイトルの直後に直接
12238 \family typewriter
12239
12240 \backslash
12241 LogoOn
12242 \family default
12243 を置いてください.
12244 \end_layout
12245
12246 \begin_layout Standard
12247
12248 \family sans
12249 文書レイアウト
12250 \family default
12251 ダイアログで
12252 \family sans
12253 fancy
12254 \family default
12255 ページ様式を使用することを選択した場合には,横置きページのヘッダとフッタが回転後も正しく配置されるように,プリアンブルに
12256 \family typewriter
12257
12258 \backslash
12259 let
12260 \backslash
12261 headwidth
12262 \backslash
12263 textwidth
12264 \family default
12265 を加える必要があるでしょう.これは,
12266 \family sans
12267 fancyheadings
12268 \family default
12269 パッケージが提供するページレイアウトと
12270 \family sans
12271 foils
12272 \family default
12273 クラスの提供するページレイアウトの間に衝突が発生するためです.
12274 \end_layout
12275
12276 \begin_layout Section
12277 Hollywood(Hollywoodスペック・スクリプト)
12278 \end_layout
12279
12280 \begin_layout Standard
12281
12282 \noun on
12283 Garst Reese
12284 \noun default
12285
12286 \end_layout
12287
12288 \begin_layout Subsection
12289 はじめに
12290 \end_layout
12291
12292 \begin_layout Standard
12293 脚本を正しい書式で書くことは,ハリウッドにおける「通過儀礼」です.ハリウッドの脚本は,読み手が内容に集中できるようにし,俳優にとっても読みやすくかつ親しみやすい
12294 ように設計されています.脚本の1ページは,映画の1分でなければならず,銀幕上で見えたり聞こえたりしないものは,脚本に混入してはなりません.また,全体を通してCo
12295 urier 12
12296 \begin_inset space \space{}
12297 \end_inset
12298
12299 ptフォントを使わなければならず,イタリック体は用いてはいけません.
12300 \end_layout
12301
12302 \begin_layout Subsection
12303 特別な問題
12304 \end_layout
12305
12306 \begin_layout Standard
12307 話者の行は,文の途中で改行することは
12308 \emph on
12309 決して
12310 \emph default
12311 あってはなりません.もし話者行の塊が,次頁にまたがる場合には,
12312 \family sans
12313 話者
12314 \family default
12315 名を再度書き,その後に(Cont'd)と加えます.
12316 \end_layout
12317
12318 \begin_layout Subsection
12319 特別な機能
12320 \end_layout
12321
12322 \begin_layout Standard
12323
12324 \family sans
12325 話者
12326 \family default
12327 名はラベルとして挿入し,話者名を挿入するには,そのラベルを相互参照してください.相互参照ダイアログは,登場人物の現在の配役を表示することになります.これは,ト書
12328 きに話者名を挿入するのにも使用することができます.
12329 \end_layout
12330
12331 \begin_layout Subsection
12332 用紙寸法と余白
12333 \end_layout
12334
12335 \begin_layout Standard
12336 USレター寸法で,左余白1.6インチ・右余白0.75インチ・上余白0.5インチ・下余白0.75インチです.
12337 \end_layout
12338
12339 \begin_layout Subsection
12340 環境
12341 \end_layout
12342
12343 \begin_layout Standard
12344 以下の環境が利用可能です.右に示されている
12345 \begin_inset Flex Ruby
12346 status collapsed
12347
12348 \begin_layout Plain Layout
12349
12350 \begin_inset Argument post:1
12351 status collapsed
12352
12353 \begin_layout Plain Layout
12354 キー
12355 \end_layout
12356
12357 \end_inset
12358
12359
12360 \end_layout
12361
12362 \end_inset
12363
12364 割当てを使用するには,hollywood.bindを使用してください.
12365 \end_layout
12366
12367 \begin_layout Itemize
12368
12369 \family sans
12370 一般
12371 \begin_inset Newline newline
12372 \end_inset
12373
12374
12375 \family default
12376 他の環境が動作しない場合に使用しますが,これを使うことは避けるようにしてください.
12377 \end_layout
12378
12379 \begin_layout Itemize
12380 フェイドイン:
12381 \begin_inset space \hfill{}
12382 \end_inset
12383
12384
12385 \family sans
12386 M-z S-I
12387 \family default
12388
12389 \begin_inset Newline newline
12390 \end_inset
12391
12392 通常,この後には「Sallyは目を覚ますと」のように続きます.
12393 \end_layout
12394
12395 \begin_layout Itemize
12396
12397 \family sans
12398 屋内:
12399 \begin_inset space \hfill{}
12400 \end_inset
12401
12402 M-z i
12403 \begin_inset Newline newline
12404 \end_inset
12405
12406
12407 \family default
12408 新しい屋内(INTERIOR)カメラの設定を指定します.この後には,かならずDAYやNIGHTなどを指定して,必要な照明を定義します.この行はすべて大文字で書き
12409 ます.
12410 \end_layout
12411
12412 \begin_layout Itemize
12413
12414 \family sans
12415 屋外:
12416 \begin_inset space \hfill{}
12417 \end_inset
12418
12419 M-z e
12420 \begin_inset Newline newline
12421 \end_inset
12422
12423
12424 \family default
12425 屋外(EXTERIOR)カメラの設定を指定します.この行はすべて大文字で書きます.
12426 \end_layout
12427
12428 \begin_layout Itemize
12429
12430 \family sans
12431 話者
12432 \begin_inset space \hfill{}
12433 \end_inset
12434
12435 M-z s
12436 \begin_inset Newline newline
12437 \end_inset
12438
12439
12440 \family default
12441 話す役.
12442 \end_layout
12443
12444 \begin_layout Itemize
12445
12446 \family sans
12447 括弧付き
12448 \begin_inset space \hfill{}
12449 \end_inset
12450
12451 M-z p
12452 \begin_inset Newline newline
12453 \end_inset
12454
12455 話者
12456 \family default
12457 への指示.自動的に括弧()が挿入されます.
12458 \end_layout
12459
12460 \begin_layout Itemize
12461
12462 \family sans
12463 対話
12464 \begin_inset space \hfill{}
12465 \end_inset
12466
12467 M-z d
12468 \begin_inset Newline newline
12469 \end_inset
12470
12471 話者
12472 \family default
12473 が話す内容.
12474 \end_layout
12475
12476 \begin_layout Itemize
12477
12478 \family sans
12479 画面遷移
12480 \begin_inset space \hfill{}
12481 \end_inset
12482
12483 M-z t
12484 \begin_inset Newline newline
12485 \end_inset
12486
12487
12488 \family default
12489 カメラの動きの指示.例:CUT TO:.
12490 \end_layout
12491
12492 \begin_layout Itemize
12493
12494 \family sans
12495 フェイドアウト:
12496 \begin_inset space \hfill{}
12497 \end_inset
12498
12499 M-z S-I
12500 \end_layout
12501
12502 \begin_layout Itemize
12503
12504 \family sans
12505 著者
12506 \begin_inset space \hfill{}
12507 \end_inset
12508
12509 M-z S-A
12510 \end_layout
12511
12512 \begin_layout Itemize
12513
12514 \family sans
12515 タイトル
12516 \begin_inset space \hfill{}
12517 \end_inset
12518
12519 M-z S-T
12520 \end_layout
12521
12522 \begin_layout Itemize
12523
12524 \family sans
12525 右寄せ住所
12526 \begin_inset space \hfill{}
12527 \end_inset
12528
12529 M-z r
12530 \end_layout
12531
12532 \begin_layout Subsection
12533 脚本で使われる特別な用語
12534 \end_layout
12535
12536 \begin_layout Itemize
12537 (O.S) — off screen
12538 \end_layout
12539
12540 \begin_layout Itemize
12541 (V.0) — voice over
12542 \end_layout
12543
12544 \begin_layout Itemize
12545 b.g.
12546  — background
12547 \end_layout
12548
12549 \begin_layout Itemize
12550 C.U.
12551  — close-up
12552 \end_layout
12553
12554 \begin_layout Itemize
12555 PAN — camera movement
12556 \end_layout
12557
12558 \begin_layout Itemize
12559 INSERT — cut to close-up of
12560 \end_layout
12561
12562 \begin_layout Section
12563 ijmpcおよびijmpd
12564 \end_layout
12565
12566 \begin_layout Standard
12567
12568 \noun on
12569 Panayotis Papasotiriou
12570 \noun default
12571
12572 \end_layout
12573
12574 \begin_layout Subsection
12575 概観
12576 \end_layout
12577
12578 \begin_layout Standard
12579 ijpmcパッケージは,
12580 \emph on
12581 International Journal of Modern Physics C
12582 \emph default
12583 への電子投稿を可能にするためのマクロ集です.同様に,ijpmdパッケージは,
12584 \emph on
12585 International Journal of Modern Physics D
12586 \emph default
12587 へ投稿する現行を作成するためのものです.両誌ともWorld Scientific社の刊行です.対応する文書クラス名は,それぞれ
12588 \family typewriter
12589 ws-ijmpc.cls
12590 \family default
12591 および
12592 \family typewriter
12593 ws-ijmpd.cls
12594 \family default
12595 です.これらのファイルは,著者のための指針とともに,
12596 \begin_inset Flex URL
12597 status collapsed
12598
12599 \begin_layout Plain Layout
12600
12601 http://www.worldscinet.com/ijmpc/mkt/guidelines.shtml
12602 \end_layout
12603
12604 \end_inset
12605
12606 および
12607 \begin_inset Flex URL
12608 status collapsed
12609
12610 \begin_layout Plain Layout
12611
12612 http://www.worldscinet.com/ijmpd/mkt/guidelines.shtml
12613 \end_layout
12614
12615 \end_inset
12616
12617 の各サイトからダウンロードすることができます.両パッケージは,標準「article」パッケージの修正版であり,両者は(一部を除き)ほぼ同一です.\SpecialChar LyX
12618 は,これらのパッ
12619 ケージのほとんどの機能をサポートしています.私は両誌へ投稿する論文を\SpecialChar LyX
12620 で書き上げましたが,何らの問題も生じませんでした.
12621 \end_layout
12622
12623 \begin_layout Subsection
12624 論文を書く
12625 \end_layout
12626
12627 \begin_layout Standard
12628 通常と同じく,論文を書く上で最も易しい方法は,ひな型を使って書き始めることです.
12629 \family sans
12630 ファイル\SpecialChar menuseparator
12631 新規(ひな型使用)
12632 \family default
12633 をクリックして,ひな型
12634 \family typewriter
12635 ijmpc.lyx
12636 \family default
12637 もしくは
12638 \family typewriter
12639 ijmpd.lyx
12640 \family default
12641 を選択してください.すると,原稿で良く使用されるフィールドを含んだ,ほぼ空の文書ができますので,既存のフィールド(鍵括弧
12642 \family typewriter
12643 <>
12644 \family default
12645 を含む)を正しい情報で置き換えてください.以下の各点にご留意ください.
12646 \end_layout
12647
12648 \begin_layout Enumerate
12649 両パッケージでは,フォント寸法や文書のページ様式を変更することが禁じられているので,\SpecialChar LyX
12650 中でこれらを変更することはできません.
12651 \end_layout
12652
12653 \begin_layout Enumerate
12654 文書言語は変更してはいけません.論文をプレビューする前に,babelパッケージが使用されていないことを確認してください.これは,
12655 \begin_inset Info
12656 type  "menu"
12657 arg   "dialog-show document"
12658 \end_inset
12659
12660  
12661 \family sans
12662 \SpecialChar menuseparator
12663 言語
12664 \family default
12665 をクリックして,
12666 \family sans
12667 言語パッケージ
12668 \family default
12669 に「なし」を選択してください.
12670 \end_layout
12671
12672 \begin_layout Enumerate
12673 キーワードを定義するに際しては,「キーワード」様式を用いなくてはなりません.
12674 \end_layout
12675
12676 \begin_layout Enumerate
12677 ijmpcパッケージが提供する「分類コード」様式は,PACS番号のような分類コードを定義するのに使用することができます.この機能は,ijmpdパッケージではサポ
12678 ートされていませんので,ご注意ください.
12679 \end_layout
12680
12681 \begin_layout Enumerate
12682 「定義」「ステップ」「例」「注記」「記法」「定理」「証明」「系」「補題」「命題」「命題(Prop)」「問題」「主張」「予想」といった新しい環境を使用することがで
12683 きます.これらの使い方は,大凡自明でしょう.\SpecialChar LyX
12684 は,これらの環境をすべてサポートし,それぞれについて,適切なラベルと文字様式および連番スキームを使用します.
12685 \end_layout
12686
12687 \begin_layout Enumerate
12688 両パッケージは,単純な引用を使用しますので,natbibパッケージは使用してはなりません.\SpecialChar LyX
12689 中では,引用参照は通常通り表示されますが,出力では上付き文字として表示
12690 されます.引用に通常の本文を使用したい場合には,「See Ref.
12691 \begin_inset space \space{}
12692 \end_inset
12693
12694
12695 \family typewriter
12696
12697 \backslash
12698 refcite{
12699 \family default
12700
12701 \begin_inset Flex Ruby
12702 status collapsed
12703
12704 \begin_layout Plain Layout
12705
12706 \family typewriter
12707
12708 \family default
12709
12710 \begin_inset Argument post:1
12711 status collapsed
12712
12713 \begin_layout Plain Layout
12714 キー
12715 \end_layout
12716
12717 \end_inset
12718
12719
12720 \end_layout
12721
12722 \end_inset
12723
12724
12725 \family typewriter
12726 }
12727 \family default
12728 」のように
12729 \family typewriter
12730 refcite
12731 \family default
12732 コマンドを使用してください.
12733 \end_layout
12734
12735 \begin_layout Enumerate
12736 両パッケージには,「謝辞」環境がありません.謝辞を置くには,「節*」環境を使用してください.
12737 \end_layout
12738
12739 \begin_layout Enumerate
12740 付録は,論文中,謝辞の
12741 \emph on
12742
12743 \emph default
12744 かつ書誌情報の
12745 \emph on
12746
12747 \emph default
12748 であれば,入れることができます.\SpecialChar LyX
12749 上では,「付録領域」という特別な環境があり,これを使って付録の開始位置を指定することができます.この環境は空のままにしておかなく
12750 てはなりません.この環境は,\SpecialChar LaTeX
12751 コマンドを書き出すだけで,実際に出力は行いません.\SpecialChar LyX
12752 上では,青字で「Appendix」という単語が表示され,この箇所より後の節はすべて
12753 付録であることを明示します.「付録領域」は,最初の付録の前に
12754 \emph on
12755 なくてはならない
12756 \emph default
12757 ことに注意してください.さもなくば,出力中において,付録はすべて通常の節として連番が振られてしまいます.
12758 \end_layout
12759
12760 \begin_layout Enumerate
12761 ijmpcおよびijmpdパッケージは,表キャプションを実装するのに
12762 \family typewriter
12763 tbl
12764 \family default
12765 コマンドを使用します.そのため,\SpecialChar LyX
12766 が作成した表は正しく印字されますが,そのキャプションは無視されます.しかし,\SpecialChar TeX
12767 コードを少し使えば,この問題を回避して,キャプション
12768 を望み通り印字することができるようになります.そうするには,表フロートを通常通り作成して,キャプションを削除し,代わりに\SpecialChar TeX
12769 コードで
12770 \family typewriter
12771
12772 \backslash
12773 tbl{表キャプション}{
12774 \family default
12775 (ママ)と入れます.そこに表の内容を入れて,直後を\SpecialChar TeX
12776 コード
12777 \family typewriter
12778 }
12779 \family default
12780 で閉じてください.このからくりがどのように実装されているかを見るには,ひな型ファイルに入っている表の例を精査してみてください.別の方法としては,表キャプションが
12781 欲しい場合に,表フロート全体を
12782 \family typewriter
12783 .tex
12784 \family default
12785 ファイルに収め,このファイルを\SpecialChar LyX
12786 文書に取り込んでください(
12787 \family sans
12788 挿入\SpecialChar menuseparator
12789 ファイル\SpecialChar menuseparator
12790 子文書
12791 \family default
12792 ).表フロートの作り方についての詳細は,各パッケージに含まれている
12793 \family typewriter
12794 ws-ijmpc.tex
12795 \family default
12796 または
12797 \family typewriter
12798 ws-ijmpd.tex
12799 \family default
12800 ファイルをご覧ください.
12801 \end_layout
12802
12803 \begin_layout Subsection
12804 原稿を投稿するための準備
12805 \end_layout
12806
12807 \begin_layout Standard
12808 論文を投稿する前には,\SpecialChar LyX
12809 文書を\SpecialChar LaTeX
12810 ファイルに書き出し(
12811 \family sans
12812 ファイル\SpecialChar menuseparator
12813 書き出し\SpecialChar menuseparator
12814 \SpecialChar LaTeX
12815
12816 \family default
12817
12818 \begin_inset Foot
12819 status open
12820
12821 \begin_layout Plain Layout
12822 実は,\SpecialChar LaTeX
12823  (plain)とpdflatexとの間で選択ができます.論文を準備するのにpdflatexを使用しようとするのであれば,取り込んである画像がPDF形式に
12824 変換され,pdflatexで使用できるように,pdflatexオプションを指定しなくてはなりません.
12825 \end_layout
12826
12827 \end_inset
12828
12829 ,その
12830 \family typewriter
12831 .tex
12832 \family default
12833 ファイルに以下の変更を加える必要があります.
12834 \end_layout
12835
12836 \begin_layout Enumerate
12837
12838 \family typewriter
12839
12840 \backslash
12841 documentclass
12842 \family default
12843 コマンドより前にあるコメント行を削除する.
12844 \end_layout
12845
12846 \begin_layout Enumerate
12847 自身で明示的に\SpecialChar LaTeX
12848 プリアンブルに置いたコマンドを除き,
12849 \family typewriter
12850
12851 \backslash
12852 makeatletter
12853 \family default
12854 コマンドと
12855 \family typewriter
12856
12857 \backslash
12858 makeatother
12859 \family default
12860 コマンドの間にあるものをすべて削除する.
12861 \end_layout
12862
12863 \begin_layout Standard
12864 こうして修正を加えた
12865 \family typewriter
12866 .tex
12867 \family default
12868 ファイルを保存し,必要な回数\SpecialChar LaTeX
12869 で処理してください.それによって得られた
12870 \family typewriter
12871 .dvi
12872 \family default
12873 文書も確認された方がよろしいでしょう.
12874 \end_layout
12875
12876 \begin_layout Section
12877 iopart
12878 \end_layout
12879
12880 \begin_layout Standard
12881
12882 \noun on
12883 Uwe Stöhr
12884 \noun default
12885
12886 \end_layout
12887
12888 \begin_layout Subsection
12889 概要
12890 \end_layout
12891
12892 \begin_layout Standard
12893 iopartパッケージは,Institute of Physics(イギリス物理学会)発行の学術誌へ電子的に投稿する原稿を作成するための文書クラスを提供していま
12894 す.iopartクラスを使用した論文作成方法の著者用説明書は,ウェブサイト
12895 \begin_inset Flex URL
12896 status collapsed
12897
12898 \begin_layout Plain Layout
12899
12900 ftp://ftp.iop.org/pub/journals/latex2e
12901 \end_layout
12902
12903 \end_inset
12904
12905 からiopartパッケージとともにダウンロード可能です.
12906 \end_layout
12907
12908 \begin_layout Subsection
12909 論文を書く
12910 \end_layout
12911
12912 \begin_layout Standard
12913 論文を書くもっとも簡単な方法は,ファイル\SpecialChar menuseparator
12914 新規(ひな型使用)\SpecialChar ldots
12915 にあるひな型
12916 \emph on
12917 IOP-article.lyx
12918 \emph default
12919 を土台にすることです.このひな型は,特定の環境の使用法についても説明しています.もっとも重要な助言として,以下の点にご注意ください.
12920 \end_layout
12921
12922 \begin_layout Itemize
12923 文書がPDF・PS・DVIにコンパイルできるようにするためには,
12924 \family sans
12925 文書\SpecialChar menuseparator
12926 設定\SpecialChar menuseparator
12927 数式オプション
12928 \family default
12929 で,AMSパッケージが読み込まれていないことを確認してください!
12930 \end_layout
12931
12932 \begin_layout Itemize
12933 タイトル環境の選択如何によって,論文の種類が定義されます.種類毎に以下の環境をタイトルに使用してください.
12934 \end_layout
12935
12936 \begin_deeper
12937 \begin_layout Itemize
12938 論文用には
12939 \family sans
12940 タイトル
12941 \end_layout
12942
12943 \begin_layout Itemize
12944 Review用には
12945 \family sans
12946 Review
12947 \end_layout
12948
12949 \begin_layout Itemize
12950 Topical review用には
12951 \family sans
12952 Topical
12953 \end_layout
12954
12955 \begin_layout Itemize
12956 Comment用には
12957 \family sans
12958 Comment
12959 \end_layout
12960
12961 \begin_layout Itemize
12962 Note用には
12963 \family sans
12964 注釈
12965 \end_layout
12966
12967 \begin_layout Itemize
12968 論文用には
12969 \family sans
12970 Paper
12971 \family default
12972 (タイトルと同じ)
12973 \end_layout
12974
12975 \begin_layout Itemize
12976 Preliminary communication用には
12977 \family sans
12978 Prelim
12979 \end_layout
12980
12981 \begin_layout Itemize
12982 Rapid communication用には
12983 \family sans
12984 Rapid
12985 \end_layout
12986
12987 \begin_layout Itemize
12988 編集者へのLetterには
12989 \family sans
12990 書簡
12991 \end_layout
12992
12993 \end_deeper
12994 \begin_layout Itemize
12995
12996 \family sans
12997 書簡
12998 \family default
12999 以外のタイトル環境には,すべて短縮タイトルをつけることもできます.
13000 \end_layout
13001
13002 \begin_layout Itemize
13003 \SpecialChar LyX
13004 では直接にサポートされていませんが,一般的なタイトル環境として
13005 \family sans
13006 Article
13007 \family default
13008 があります.執筆する文書が,他のタイトル型にそぐわない場合には,\SpecialChar TeX
13009 コードでこれを指定することができます.
13010 \end_layout
13011
13012 \begin_layout Standard
13013 特別な表や数式組版に関するヒントなど,詳しい情報については,IOP著者用ガイドラインを参照してください.
13014 \end_layout
13015
13016 \begin_layout Section
13017 Kluwer
13018 \end_layout
13019
13020 \begin_layout Standard
13021
13022 \noun on
13023 Panayotis Papasotiriou
13024 \noun default
13025
13026 \end_layout
13027
13028 \begin_layout Subsection
13029 概要
13030 \end_layout
13031
13032 \begin_layout Standard
13033 Kluwerパッケージは,Kluwer Academic Publishers社が発行する学術誌への電子投稿を可能にするために,同社が作成したマクロ集です.同社
13034 の発行誌のうち,(少なくとも私の専門内で)もっともよく知られているものは,
13035 \emph on
13036 Astrophysics and Space Science
13037 \emph default
13038 (『宇宙物理学と宇宙科学』)と
13039 \emph on
13040 Solar Physics
13041 \emph default
13042 (『太陽系物理学』)ですが,他にも多くの学術誌があります(
13043 \begin_inset Flex URL
13044 status collapsed
13045
13046 \begin_layout Plain Layout
13047
13048 http://www.wkap.nl/jrnllist.htm/JRNLHOME
13049 \end_layout
13050
13051 \end_inset
13052
13053 に全覧があります).Kluwerパッケージは,
13054 \begin_inset Flex URL
13055 status collapsed
13056
13057 \begin_layout Plain Layout
13058
13059 http://www.wkap.nl/kaphtml.htm/STYLEFILES
13060 \end_layout
13061
13062 \end_inset
13063
13064 からダウンロードできます.完全なユーザーの手引きも同パッケージ内に収録されています(個別にダウンロードすることも可能です).
13065 \end_layout
13066
13067 \begin_layout Standard
13068 \SpecialChar LyX
13069 は,このパッケージの機能の多くをサポートしていますが,すべてではありません.しかし,\SpecialChar TeX
13070 コードを必要とするのは,パッケージ中のいくつかの「変わった」コマンドだけにな
13071 りました(
13072 \begin_inset CommandInset ref
13073 LatexCommand ref
13074 reference "subsec:kluwer_peculiarities"
13075
13076 \end_inset
13077
13078 参照).最近,私は\SpecialChar LyX
13079 を使って書いた論文を
13080 \emph on
13081 Astrophysics and Space Science
13082 \emph default
13083 に投稿しましたが,何らの問題も発生しませんでした.
13084 \end_layout
13085
13086 \begin_layout Subsection
13087 論文を書く
13088 \end_layout
13089
13090 \begin_layout Standard
13091 論文を書き始めるには,ひな型ファイルKluwerを使うのが最も簡単です.
13092 \family sans
13093 ファイル\SpecialChar menuseparator
13094 新規(ひな型使用)
13095 \family default
13096 をクリックし,ひな型
13097 \family typewriter
13098 kluwer.lyx
13099 \family default
13100 を選択してください.これは,原稿に通常必要となる各フィールドと,それらの使用法が短く書かれただけの,(ほとんど)何も書かれていない文書です.他のテンプレートと同
13101 様に,既存の文章を(括弧
13102 \family typewriter
13103 <>
13104 \family default
13105 を含む)正しい情報で上書きしてください.
13106 \end_layout
13107
13108 \begin_layout Subsection
13109 投稿の準備
13110 \end_layout
13111
13112 \begin_layout Standard
13113 AAS\SpecialChar TeX
13114 パッケージと同様,論文を投稿する前に,以下のような「後処理」を行う必要があります.
13115 \end_layout
13116
13117 \begin_layout Enumerate
13118
13119 \family sans
13120 ファイル\SpecialChar menuseparator
13121 書き出し\SpecialChar menuseparator
13122 LateX
13123 \family default
13124 をクリックして,論文を\SpecialChar LaTeX
13125 ファイルに書き出す.
13126 \end_layout
13127
13128 \begin_layout Enumerate
13129 生成された
13130 \family typewriter
13131 .tex
13132 \family default
13133 ファイルに,テキストエディタを使用して,以下のような変更を加える.
13134 \end_layout
13135
13136 \begin_deeper
13137 \begin_layout Enumerate
13138
13139 \family typewriter
13140
13141 \backslash
13142 documentclass
13143 \family default
13144 コマンドより前にあるコメント行を削除する.
13145 \end_layout
13146
13147 \begin_layout Enumerate
13148 意図的に\SpecialChar LaTeX
13149 プリアンブルに加えたコマンドを除き,
13150 \family typewriter
13151
13152 \backslash
13153 makeatletter
13154 \family default
13155 から 
13156 \family typewriter
13157
13158 \backslash
13159 makeatother
13160 \family default
13161 の間にあるものを,これらのコマンドも含め,すべて削除する.
13162 \end_layout
13163
13164 \begin_layout Standard
13165 変更した
13166 \family typewriter
13167 .tex
13168 \family default
13169 ファイルを保存する.
13170 \end_layout
13171
13172 \end_deeper
13173 \begin_layout Enumerate
13174 この
13175 \family typewriter
13176 .tex
13177 \family default
13178 ファイルを必要な回数(通常3回以内)だけ\SpecialChar LaTeX
13179 にかける.
13180 \end_layout
13181
13182 \begin_layout Enumerate
13183 生成された
13184 \family typewriter
13185 .dvi
13186 \family default
13187 ファイルを
13188 \family sans
13189 xdvi
13190 \family default
13191 などを使って開き,問題がないか確認する(間違いをしていない限り問題ないはずです).
13192 \end_layout
13193
13194 \begin_layout Subsection
13195 Kluwerパッケージの「風変わり」な特徴
13196 \begin_inset CommandInset label
13197 LatexCommand label
13198 name "subsec:kluwer_peculiarities"
13199
13200 \end_inset
13201
13202
13203 \end_layout
13204
13205 \begin_layout Standard
13206 Kluwerパッケージには,以下のような「風変わりな」特徴があります.
13207 \end_layout
13208
13209 \begin_layout Enumerate
13210 複数の論文を1つの\SpecialChar LaTeX
13211 ファイルへ入れることができます
13212 \begin_inset Foot
13213 status collapsed
13214
13215 \begin_layout Plain Layout
13216 わざわざこんなことをする必要はないでしょう.
13217 \end_layout
13218
13219 \end_inset
13220
13221 .各論文は,「article」環境で囲まなくてはなりません.残念ながら,1つの論文だけを書く場合でも,この環境を省略することはできません.つまり,各論文は
13222 \family typewriter
13223
13224 \backslash
13225 begin{article}
13226 \family default
13227 で始まり,
13228 \family typewriter
13229
13230 \backslash
13231 end{article}
13232 \family default
13233 で終わります.この環境を\SpecialChar LyX
13234 に実装することも可能でしたが,醜い上に初心者を混乱させる可能性があるので,実装することはしませんでした.したがって,これらの命令(
13235 \family typewriter
13236
13237 \backslash
13238 begin{article}
13239 \family default
13240
13241 \family typewriter
13242
13243 \backslash
13244 end{article}
13245 \family default
13246 )は,直接本文中に入力して,\SpecialChar LaTeX
13247 コード(「\SpecialChar TeX
13248 コード」のことです)としてマークする必要があります.
13249 \end_layout
13250
13251 \begin_layout Enumerate
13252 論文の冒頭に置く情報(タイトル・サブタイトル・著者名・所属・ヘッダ用タイトル・ヘッダ用著者名・概要・キーワード)は,「opening」とよばれる環境に入れなくて
13253 はなりません.これは\SpecialChar LyX
13254 では実装されていませんので,タイトルやサブタイトルなどは,2つの\SpecialChar TeX
13255 コード行(
13256 \family typewriter
13257
13258 \backslash
13259 begin{opening}
13260 \family default
13261 および
13262 \family typewriter
13263
13264 \backslash
13265 end{opening}
13266 \family default
13267 )の間に入れる必要があります.
13268 \end_layout
13269
13270 \begin_layout Enumerate
13271 ユーザーの手引きによれば,書誌情報の各項目のラベルは,
13272 \family typewriter
13273
13274 \begin_inset Newline newline
13275 \end_inset
13276
13277
13278 \backslash
13279 protect
13280 \backslash
13281 citeauthoryear{
13282 \family default
13283 \emph on
13284 著者名
13285 \family typewriter
13286 \emph default
13287 }{
13288 \family default
13289 \emph on
13290
13291 \family typewriter
13292 \emph default
13293 }
13294 \family default
13295  と書く必要があります.
13296 \end_layout
13297
13298 \begin_layout Standard
13299 ひな型
13300 \family typewriter
13301 kluwer.lyx
13302 \family default
13303 は,これらの風変わりな点がすべて考慮されています.このひな型を使用して,論文を新たに書きはじめる場合には,特別なことを行う必要はありません.以下の点にのみ留意し
13304 てください.
13305 \end_layout
13306
13307 \begin_layout Enumerate
13308 ひな型にある\SpecialChar TeX
13309 コードを削除しないでください.
13310 \end_layout
13311
13312 \begin_layout Enumerate
13313 新しい書誌情報項目を入力する場合には,ひな型に例示されている書誌情報項目をコピーして,必要に応じて修正してください.
13314 \end_layout
13315
13316 \begin_layout Section
13317 Koma-Script
13318 \end_layout
13319
13320 \begin_layout Standard
13321
13322 \noun on
13323 Bernd Rellermeyer
13324 \noun default
13325
13326 \end_layout
13327
13328 \begin_layout Subsection
13329 概要
13330 \end_layout
13331
13332 \begin_layout Standard
13333 \SpecialChar LyX
13334 の文書クラス
13335 \emph on
13336 article (koma-script)
13337 \emph default
13338
13339 \emph on
13340 report (koma-script)
13341 \emph default
13342
13343 \emph on
13344 book
13345 \emph default
13346  
13347 \emph on
13348 (koma-script)
13349 \emph default
13350
13351 \emph on
13352 letter
13353 \emph default
13354  
13355 \emph on
13356 (koma-script)
13357 \emph default
13358 は,それぞれKoma-Scriptファミリーの\SpecialChar LaTeX
13359 文書クラス
13360 \family typewriter
13361 scrartcl.cls
13362 \family default
13363
13364 \family typewriter
13365 scrreprt.cls
13366 \family default
13367
13368 \family typewriter
13369 scrbook.cls
13370 \family default
13371
13372 \family typewriter
13373 scrlettr.cls
13374 \family default
13375 に対応しています.これらは,標準文書クラス
13376 \family typewriter
13377 article.cls
13378 \family default
13379
13380 \family typewriter
13381 report.cls
13382 \family default
13383
13384 \family typewriter
13385 book.cls
13386 \family default
13387
13388 \family typewriter
13389 letter.cls
13390 \family default
13391 の代替物であり,これらよりも多くの点でヨーロッパに於ける活版印刷の慣例に合致します.
13392 \end_layout
13393
13394 \begin_layout Itemize
13395 標準文字寸法は,
13396 \emph on
13397 article (koma-script)
13398 \emph default
13399
13400 \emph on
13401 report (koma-script)
13402 \emph default
13403
13404 \emph on
13405 book (koma-script)
13406 \emph default
13407 で11pt,
13408 \emph on
13409 letter (koma-script)
13410 \emph default
13411 で12ptです.
13412 \end_layout
13413
13414 \begin_layout Itemize
13415 見出しや箇条書き(記述)環境のラベル,および
13416 \emph on
13417 letter (koma-script)
13418 \emph default
13419 文書クラスの要素の多くでは,ボールド体サンセリフフォントが使われます
13420 \begin_inset Foot
13421 status collapsed
13422
13423 \begin_layout Plain Layout
13424 ボールド体サンセリフフォントには,古いcmフォントと新しいecフォントの間に大きな違いがあり,特に見出しの表示の違いが際立ちます.比較すると,ecボールドサンセ
13425 リフフォントの方が,少し細く見えます.ecフォントを使用する際に「通常の」外観が欲しい場合には,
13426 \shape smallcaps
13427 Walter Schmidt
13428 \shape default
13429 作の\SpecialChar LaTeX
13430 パッケージ
13431 \family typewriter
13432 cmsd.sty
13433 \family default
13434 が役立ちます.
13435 \end_layout
13436
13437 \end_inset
13438
13439 .章見出しの連番は,節見出しの連番と同様に行われ,別行立てで「 Chapter\SpecialChar ldots
13440 」という行がつきません.さらに,多くのオプションによって,見出しの外観を修正するこ
13441 とができます(\SpecialChar LyX
13442 では,
13443 \family sans
13444 文書\SpecialChar menuseparator
13445 設定
13446 \family default
13447 ダイアログの
13448 \family sans
13449 クラスオプション
13450 \family default
13451 フィールドで指定します).これらのオプションの独語での詳細な説明が,Koma-Scriptの取扱説明書
13452 \emph on
13453 scrguide
13454 \emph default
13455 にあります.
13456 \end_layout
13457
13458 \begin_layout Itemize
13459 Koma-Script文書クラスで,印字部分をデザインする主な方法は,
13460 \family sans
13461 BCOR
13462 \family default
13463 オプションまたは
13464 \family sans
13465 DIV
13466 \family default
13467 オプションを使う方法です(\SpecialChar LyX
13468 では,
13469 \family sans
13470 文書\SpecialChar menuseparator
13471 設定
13472 \family default
13473 ダイアログの
13474 \family sans
13475 クラスオプション
13476 \family default
13477 フィールドで指定します).これらのオプションは
13478 \family sans
13479 文書\SpecialChar menuseparator
13480 設定
13481 \family default
13482 ダイアログのオプションと同様に,ページ余白を明示的に変更することができます.これらとその他印字領域オプションのドイツ語での詳細な説明が,Koma-Script取
13483 扱説明書
13484 \emph on
13485 scrguide
13486 \emph default
13487 にあります.
13488 \end_layout
13489
13490 \begin_layout Itemize
13491 Koma-Scriptファミリーの\SpecialChar LaTeX
13492 文書クラスには,多くの追加コマンドが定義されています.それらのうち,\SpecialChar LyX
13493 で意味を持つものは,対応する段落環境として実装されています
13494
13495 \end_layout
13496
13497 \begin_layout Standard
13498 Koma-Scriptファミリーの\SpecialChar LaTeX
13499 文書クラスに関する独語の詳細な説明が,Koma-Script取扱説明書
13500 \emph on
13501 scrguide
13502 \emph default
13503 にあります
13504 \begin_inset Foot
13505 status collapsed
13506
13507 \begin_layout Plain Layout
13508 英語翻訳版の
13509 \emph on
13510 screnggu
13511 \emph default
13512 もありますが,完訳ではありません.
13513 \end_layout
13514
13515 \end_inset
13516
13517 .以下の各節では,\SpecialChar LyX
13518 に関係する側面のみ説明致します.
13519 \end_layout
13520
13521 \begin_layout Subsection
13522 article (koma-script)・report (koma-script)・book (koma-script)
13523 \end_layout
13524
13525 \begin_layout Standard
13526 文書クラス
13527 \emph on
13528 article (koma-script)
13529 \emph default
13530
13531 \emph on
13532 report (koma-script)
13533 \emph default
13534
13535 \emph on
13536 book
13537 \emph default
13538  
13539 \emph on
13540 (koma-script)
13541 \emph default
13542 は,それぞれレイアウトファイル
13543 \family typewriter
13544 scrartcl.layout
13545 \family default
13546
13547 \family typewriter
13548 scrreprt.layou
13549 \family default
13550 t・
13551 \family typewriter
13552 crbook.layout
13553 \family default
13554 によって実装されています.これらは,対応する標準文書クラス
13555 \emph on
13556 article
13557 \emph default
13558
13559 \emph on
13560 report
13561 \emph default
13562
13563 \emph on
13564 book
13565 \emph default
13566 の段落環境を,若干の修正を加えた上ですべて含んでいますが,\SpecialChar LyX
13567 固有の
13568 \family sans
13569 箇条書き(一覧)
13570 \family default
13571 環境は例外であり,同じ機能を持つ新しい
13572 \family sans
13573 ラベリング
13574 \family default
13575 環境で置き換えられています.この
13576 \family sans
13577 ラベリング
13578 \family default
13579 環境以外にも,新しい段落環境が多く追加されています.これらは,
13580 \emph on
13581 letter (koma-script)
13582 \emph default
13583 には含まれていないのでご注意ください.
13584 \end_layout
13585
13586 \begin_layout Itemize
13587
13588 \family sans
13589 部(addpart)
13590 \family default
13591
13592 \family sans
13593 章(addchap)
13594 \family default
13595
13596 \family sans
13597 節(addsec)
13598 \family default
13599 :これらは,それぞれ
13600 \family sans
13601 部*
13602 \family default
13603
13604 \family sans
13605 章*
13606 \family default
13607
13608 \family sans
13609 節*
13610 \family default
13611 と同等の働きをしますが,加えて目次に項目が表示されるようになります.
13612 \family sans
13613 部(addpart)
13614 \family default
13615
13616 \family sans
13617 章(addchap)
13618 \family default
13619 は,
13620 \emph on
13621 article (koma-script)
13622 \emph default
13623 には収録されていません.
13624 \end_layout
13625
13626 \begin_layout Itemize
13627
13628 \family sans
13629 章(addchap*)
13630 \family default
13631
13632 \family sans
13633 節(addsec*)
13634 \family default
13635 :これらは,
13636 \family sans
13637 章(addchap
13638 \family default
13639 )と
13640 \family sans
13641 節(addsec)
13642 \family default
13643 とまったく同等に動作しますが,加えてランニングへッダを取り除きます.
13644 \family sans
13645 章(addchap*)
13646 \family default
13647 は, 
13648 \emph on
13649 article (koma-script)
13650 \emph default
13651 には収録されていません
13652 \begin_inset Foot
13653 status collapsed
13654
13655 \begin_layout Plain Layout
13656
13657 \emph on
13658 book (koma-script)
13659 \emph default
13660
13661 \emph on
13662 report (koma-script)
13663 \emph default
13664 には,
13665 \family typewriter
13666
13667 \backslash
13668 addpart*
13669 \family default
13670 コマンドもありますが,これは
13671 \family sans
13672 Part*
13673 \family default
13674 と同一なので,\SpecialChar LyX
13675 では実装されていません.
13676 \end_layout
13677
13678 \end_inset
13679
13680
13681 \end_layout
13682
13683 \begin_layout Itemize
13684
13685 \family sans
13686 小見出し(minisec)
13687 \family default
13688 :これは文書構造に現れない形で,続く段落の直上に標準文字寸法の見出しを付けます.
13689 \end_layout
13690
13691 \begin_layout Itemize
13692
13693 \family sans
13694 上部キャプション
13695 \family default
13696
13697 \family sans
13698 下部キャプション
13699 \family default
13700 は,ある要素の上部ないし下部にキャプションを配置する際,位置に応じて正しく余白取りを行う特別なキャプションです(組版規則に厳密に従うならば,表キャプションは,つ
13701 ねに表の上に置くべきでしょう).また,クラスオプション
13702 \family typewriter
13703 tablecaptionsabove
13704 \family default
13705 を用いれば,キャプションを指定すると,表には
13706 \family sans
13707 上部キャプション
13708 \family default
13709 が,図には
13710 \family sans
13711 下部キャプション
13712 \family default
13713 が適用されるようになります.これを使用するためには,Koma-Script第2.8q版以上が必要です.
13714 \end_layout
13715
13716 \begin_layout Itemize
13717
13718 \family sans
13719 格言(dictum)
13720 \family default
13721 :これは,章頭などに警句を置くのに用いることができます.オプション引数(
13722 \family sans
13723 挿入\SpecialChar menuseparator
13724 格言著者
13725 \family default
13726 )を用いれば,格言の作者を入れることができます.格言と作者の間は,線で区切られます.これを使用するためには,Koma-Script第2.8q版以上が必要です.
13727 \family sans
13728 格言(dictum)
13729 \family default
13730 は,
13731 \emph on
13732 article (koma-script)
13733 \emph default
13734 には収録されていません.
13735 \end_layout
13736
13737 \begin_layout Standard
13738 以下の各環境は,標準の
13739 \family sans
13740 タイトル
13741 \family default
13742
13743 \family sans
13744 著者
13745 \family default
13746
13747 \family sans
13748 日付
13749 \family default
13750 とともに文書のタイトル領域を形成します.これらは,最初の「通常の」段落よりも前に置かれる必要があります
13751 \begin_inset Foot
13752 status collapsed
13753
13754 \begin_layout Plain Layout
13755 つまり,対応する\SpecialChar LaTeX
13756 コマンドが
13757 \family typewriter
13758
13759 \backslash
13760 maketitle
13761 \family default
13762 コマンドよりも前に現れなくてはなりません.
13763 \end_layout
13764
13765 \end_inset
13766
13767 .これらの環境が2度以上使用された場合には,後に使用されたものが前のものを上書きします.つまり最後に使用したもののみが有効になります.しかしながら,
13768 \family sans
13769 タイトル
13770 \family default
13771
13772 \family sans
13773 著者
13774 \family default
13775
13776 \family sans
13777 日付
13778 \family default
13779 のような異なる環境の順序を変更しても,生成された文書には何の効果も生じません.
13780 \end_layout
13781
13782 \begin_layout Itemize
13783
13784 \family sans
13785 主題
13786 \family default
13787 :通常のタイトル部(
13788 \family sans
13789 タイトル
13790 \family default
13791
13792 \family sans
13793 著者
13794 \family default
13795
13796 \family sans
13797 日付
13798 \family default
13799 )の上に,文書の主題用の中央揃えの段落を生成します.
13800 \end_layout
13801
13802 \begin_layout Itemize
13803
13804 \family sans
13805 出版社
13806 \family default
13807 :通常のタイトル部(
13808 \family sans
13809 タイトル
13810 \family default
13811
13812 \family sans
13813 著者
13814 \family default
13815
13816 \family sans
13817 日付
13818 \family default
13819 )の下に,出版社名用の中央揃えの段落を生成します.
13820 \end_layout
13821
13822 \begin_layout Itemize
13823
13824 \family sans
13825 献呈
13826 \family default
13827
13828 \emph on
13829 report (koma-script)
13830 \emph default
13831
13832 \emph on
13833 book (koma-script)
13834 \emph default
13835 では,タイトル頁の次に,献辞用の中央揃えの段落を独立した頁として生成します.
13836 \emph on
13837 article (koma-script)
13838 \emph default
13839 の場合は,通常のタイトル部(
13840 \family sans
13841 タイトル
13842 \family default
13843
13844 \family sans
13845 著者
13846 \family default
13847
13848 \family sans
13849 日付
13850 \family default
13851 )の下に献辞用の中央揃えの段落を生成します.
13852 \end_layout
13853
13854 \begin_layout Itemize
13855
13856 \family sans
13857 タイトル頭書き
13858 \family default
13859 :通常のタイトル部(
13860 \family sans
13861 タイトル
13862 \family default
13863
13864 \family sans
13865 著者
13866 \family default
13867
13868 \family sans
13869 日付
13870 \family default
13871 )の上に,文書頭書き用の左揃えの段落を生成します.
13872 \end_layout
13873
13874 \begin_layout Itemize
13875
13876 \family sans
13877 扉裏上部
13878 \family default
13879
13880 \emph on
13881 report (koma-script)
13882 \emph default
13883 や 
13884 \emph on
13885 book (koma-script)
13886 \emph default
13887 の両面印刷において,扉裏上部に左揃え段落を生成します.片面印刷や,
13888 \emph on
13889 article (koma-script)
13890 \emph default
13891 では何の効果も生じません.
13892 \end_layout
13893
13894 \begin_layout Itemize
13895
13896 \family sans
13897 扉裏下部
13898 \family default
13899
13900 \emph on
13901 report (koma-script)
13902 \emph default
13903 や 
13904 \emph on
13905 book (koma-script)
13906 \emph default
13907 の両面印刷において,扉裏下部に左揃え段落を生成します.片面印刷や,
13908 \emph on
13909 article (koma-script)
13910 \emph default
13911 では何の効果も生じません.
13912 \end_layout
13913
13914 \begin_layout Itemize
13915
13916 \family sans
13917 追加タイトル
13918 \family default
13919 :実際の文書の前に,整形を行わない段落から成る,特殊な「汚い」ページを生成します.
13920 \end_layout
13921
13922 \begin_layout Standard
13923 文書クラス
13924 \emph on
13925 article (koma-script)
13926 \emph default
13927
13928 \emph on
13929 report (koma-script)
13930 \emph default
13931
13932 \emph on
13933 book (koma-script)
13934 \emph default
13935 の 各レイアウトファイルは,
13936 \family typewriter
13937 scrmacros.inc
13938 \family default
13939 ファイルを読み込みます.このファイルは,ユーザ環境を定義する場所として想定されています.s
13940 \family typewriter
13941 crmacros.inc
13942 \family default
13943 を,個人用レイアウトディレクトリにコピーして編集してください!
13944 \end_layout
13945
13946 \begin_layout Subsection
13947 letter (koma-script)
13948 \end_layout
13949
13950 \begin_layout Description
13951 \noindent
13952
13953 \family sans
13954 \series bold
13955 註:
13956 \family default
13957 \series default
13958  本節は,廃版となっている
13959 \family sans
13960 KOMA-Script-Letter (v.
13961 \begin_inset space ~
13962 \end_inset
13963
13964 1)
13965 \family default
13966 について論じています.これは,最近のKOMAリリースでは収録もされていません.現行の
13967 \family sans
13968 KOMA-Script-Letter (v.
13969 \begin_inset space ~
13970 \end_inset
13971
13972 2)
13973 \family default
13974 については,次節を参照してください!
13975 \end_layout
13976
13977 \begin_layout Standard
13978 \noindent
13979 文書クラス
13980 \emph on
13981 letter (koma-script)
13982 \emph default
13983 は,レイアウトファイル 
13984 \family typewriter
13985 scrlettr.layout
13986 \family default
13987 で実装されています.このレイアウトファイルには,対応する標準文書クラス
13988 \emph on
13989 letter
13990 \emph default
13991 の全段落環境が,部分的に変更を加えた形で収録されていますが,\SpecialChar LyX
13992 固有環境の
13993 \family sans
13994 \SpecialChar LyX
13995 コード
13996 \family default
13997
13998 \family sans
13999 コメント
14000 \family default
14001
14002 \family sans
14003 箇条書き(一覧
14004 \family default
14005 )は,新しく
14006 \family sans
14007 ラベリング
14008 \family default
14009 環境に置き換えられています.それ以外にも,標準文書クラスとは異なり,標準環境の
14010 \family sans
14011 \SpecialChar LaTeX
14012
14013 \family default
14014
14015 \family sans
14016 引用(字下げあり)
14017 \family default
14018
14019 \family sans
14020 引用(字下げなし)
14021 \family default
14022
14023 \family sans
14024 詩句
14025 \family default
14026 が収録されています.さらに,新しいletter固有環境がたくさん追加されています.
14027 \end_layout
14028
14029 \begin_layout Standard
14030 この文書クラスで作成した書簡の外観は,様々な\SpecialChar LaTeX
14031 コマンドを\SpecialChar LaTeX
14032 プリアンブルに置くことで制御することができます
14033 \begin_inset Foot
14034 status collapsed
14035
14036 \begin_layout Plain Layout
14037 例えば,名前と住所の入った書簡ヘッダの標準的外観は,きわめて頑固です.「普通の」へッダは,プリアンブル中に以下のようなコマンドを入れることで生成することができま
14038 す.
14039 \end_layout
14040
14041 \begin_layout LyX-Code
14042
14043 \backslash
14044 firsthead{
14045 \backslash
14046 parbox[b]{
14047 \backslash
14048 textwidth}
14049 \end_layout
14050
14051 \begin_layout LyX-Code
14052   {
14053 \backslash
14054 ignorespaces 
14055 \backslash
14056 fromname
14057 \backslash
14058
14059 \backslash
14060  
14061 \backslash
14062 ignorespaces 
14063 \backslash
14064 fromaddress}} 
14065 \end_layout
14066
14067 \begin_layout LyX-Code
14068
14069 \backslash
14070 nexthead{
14071 \backslash
14072 parbox[b]{
14073 \backslash
14074 textwidth}
14075 \end_layout
14076
14077 \begin_layout LyX-Code
14078   {
14079 \backslash
14080 ignorespaces 
14081 \backslash
14082 fromname 
14083 \backslash
14084 hfill 
14085 \backslash
14086 ignorespaces 
14087 \backslash
14088 pagename
14089 \backslash
14090
14091 \end_layout
14092
14093 \begin_layout LyX-Code
14094
14095 \backslash
14096 thepage}}
14097 \end_layout
14098
14099 \end_inset
14100
14101 .これらの\SpecialChar LaTeX
14102 コマンドのドイツ語での詳細な説明は,Koma-Scriptの取扱説明書
14103 \emph on
14104 scrguide
14105 \emph default
14106 にあります.この方法で,書簡の著者は,個人用書簡レイアウトを作ることができます.
14107 \end_layout
14108
14109 \begin_layout Standard
14110
14111 \family sans
14112 書簡
14113 \family default
14114 環境および
14115 \family sans
14116 頭語
14117 \family default
14118 環境は,書簡の冒頭部を定義するもので,すべての書簡で使用しなくてはなりません.\SpecialChar LyX
14119 文書クラスでは,これらの環境を強調するために,左余白にそれぞれ
14120 \shape italic
14121 L
14122 \shape default
14123
14124 \shape italic
14125 O
14126 \shape default
14127 という文字が表示されます.同一ファイル中には,複数の書簡を書くことができます.
14128 \family sans
14129 頭語
14130 \family default
14131 環境は,同じ受取人への書簡を新しく書き出すものであり,
14132 \family sans
14133 書簡
14134 \family default
14135 環境は,新しい受取人を生成するものです.
14136 \family sans
14137 結語
14138 \family default
14139
14140 \family sans
14141 PS
14142 \family default
14143
14144 \family sans
14145 CC
14146 \family default
14147
14148 \family sans
14149 Encl
14150 \family default
14151 は,通常の段落環境なので,同一の書簡中でも何度も使用することができます.
14152 \end_layout
14153
14154 \begin_layout Itemize
14155
14156 \family sans
14157 書簡
14158 \family default
14159 :受取人のための段落をつくり,暗黙に書簡の開始を定義します.
14160 \end_layout
14161
14162 \begin_layout Itemize
14163
14164 \family sans
14165 頭語
14166 \family default
14167 :敬称のための段落をつくり,暗黙に新しい書簡を開始します.
14168 \end_layout
14169
14170 \begin_layout Itemize
14171
14172 \family sans
14173 結語
14174 \family default
14175 :結語のための段落をつくります.
14176 \end_layout
14177
14178 \begin_layout Itemize
14179
14180 \family sans
14181 PS
14182 \family default
14183 :追伸のための段落をつくります.
14184 \end_layout
14185
14186 \begin_layout Itemize
14187
14188 \family sans
14189 CC
14190 \family default
14191 :同報一覧のための段落をつくります.
14192 \end_layout
14193
14194 \begin_layout Itemize
14195
14196 \family sans
14197 Encl
14198 \family default
14199 :同封物のための段落をつくります.
14200 \end_layout
14201
14202 \begin_layout Standard
14203
14204 \family sans
14205 名前
14206 \family default
14207
14208 \family sans
14209 署名
14210 \family default
14211
14212 \family sans
14213 住所
14214 \family default
14215
14216 \family sans
14217 電話
14218 \family default
14219
14220 \family sans
14221 場所(Place
14222 \family default
14223 )・
14224 \family sans
14225 返送先住所
14226 \family default
14227
14228 \family sans
14229 配送手段(Specialmail)
14230 \family default
14231
14232 \family sans
14233 場所
14234 \family default
14235
14236 \family sans
14237 タイトル
14238 \family default
14239
14240 \family sans
14241 主題
14242 \family default
14243 は,情報入力を促すラベルの付いた入力環境で,文書クラスが適切な処理を行います
14244 \begin_inset Foot
14245 status collapsed
14246
14247 \begin_layout Plain Layout
14248 上述の
14249 \family sans
14250 書簡
14251 \family default
14252
14253 \family sans
14254 頭語
14255 \family default
14256 が,これらのような入力環境でないのは,矛盾しているように感じられるかもしれません.しかしながら,これら2つの環境は特別の意味を持っているために,これらは左余白に
14257 一文字をマークした通常の段落環境として実装しました.さらに,
14258 \family sans
14259 頭語
14260 \family default
14261 環境と
14262 \family sans
14263 結語
14264 \family default
14265 環境が著しく異なって見えると対称性が損なわれることになるのも理由の一つです.
14266 \end_layout
14267
14268 \end_inset
14269
14270 .これらの環境は,対応する
14271 \family sans
14272 頭語
14273 \family default
14274 環境の前に置く必要があります.
14275 \end_layout
14276
14277 \begin_layout Standard
14278 生成された書簡の実際の外観は,特定の環境の使い方だけではなく,他の要素にも依存するため,これらの環境をWYSIWYGとして実装することには,あまり意味がありませ
14279 ん.たとえば,
14280 \family sans
14281 署名
14282 \family default
14283 環境で入力した署名は,標準的な挙動では,同じ書簡に
14284 \family sans
14285 結語
14286 \family default
14287 環境も使用されているときのみ,書簡の出力に現れます.
14288 \family sans
14289 電話
14290 \family default
14291 環境に入力された値は,標準的な挙動では,書簡の出力には全く表示されません.書簡のヘッダを自由にデザインできることは,前出の脚注で示してあります.
14292 \end_layout
14293
14294 \begin_layout Standard
14295 入力環境は,空の段落として使うことができます.これは,たとえば
14296 \family sans
14297 署名
14298 \family default
14299 環境の場合に有効です.
14300 \family sans
14301 署名
14302 \family default
14303 環境を全く使用しない場合は,標準的な挙動では,
14304 \family sans
14305 名前
14306 \family default
14307 環境の値が署名として使用されますが,空の
14308 \family sans
14309 署名
14310 \family default
14311 環境を作成しておくと,署名の値は無定義となりません.
14312 \end_layout
14313
14314 \begin_layout Standard
14315 入力環境を使用すると,個人データ(名前や住所など)が既に入力された入力環境と,後から入力するデータの入力環境を備えた,書簡のひな型を作成することができます.
14316 \end_layout
14317
14318 \begin_layout Itemize
14319
14320 \family sans
14321 名前
14322 \family default
14323 :送り主の名前.標準的な挙動では,書簡のヘッダ部にスモールキャップ体の中央揃えの段落として表示されます.
14324 \end_layout
14325
14326 \begin_layout Itemize
14327
14328 \family sans
14329 署名
14330 \family default
14331 :送り主の署名.標準的な挙動では,
14332 \family sans
14333 結語
14334 \family default
14335 環境の下に表示されます.
14336 \family sans
14337 署名
14338 \family default
14339 環境を使用しないと,代わりに
14340 \family sans
14341 名前
14342 \family default
14343 環境の値が表示されます.
14344 \end_layout
14345
14346 \begin_layout Itemize
14347
14348 \family sans
14349 住所
14350 \family default
14351 :送り主の住所.標準的な挙動では,書簡ヘッダの送り主の名前の下に中央揃えの段落として表示されます.
14352 \end_layout
14353
14354 \begin_layout Itemize
14355
14356 \family sans
14357 電話
14358 \family default
14359 :送り主の電話番号.標準的な挙動では,\SpecialChar LaTeX
14360 変数
14361 \family typewriter
14362
14363 \backslash
14364 telephonenum
14365 \family default
14366 を設定するだけです.
14367 \end_layout
14368
14369 \begin_layout Itemize
14370
14371 \family sans
14372 場所(Place)
14373 \family default
14374 :書簡を書いた場所.
14375 \end_layout
14376
14377 \begin_layout Itemize
14378
14379 \family sans
14380 日付
14381 \family default
14382 :書簡を書いた日付.
14383 \family sans
14384 場所(Place)
14385 \family default
14386
14387 \family sans
14388 日付
14389 \family default
14390 は,標準的な挙動では,受取人フィールドの下に,単一の右揃え行として場所と日付を生成します.空の
14391 \family sans
14392 日付
14393 \family default
14394 環境を作成しておくと,
14395 \family sans
14396 場所(Place)
14397 \family default
14398 の値如何に関わらず,場所も日付も表示されません.
14399 \family sans
14400 日付
14401 \family default
14402 環境を使用しない場合には,書簡を出力した日付が使用されます.
14403 \end_layout
14404
14405 \begin_layout Itemize
14406
14407 \family sans
14408 返送先住所
14409 \family default
14410 :送り主の返送先住所.標準的な挙動では,受取人の上に小文字のサンセリフ体フォントで表示されます.
14411 \end_layout
14412
14413 \begin_layout Itemize
14414
14415 \family sans
14416 特別便
14417 \family default
14418 :特別便の情報.標準的な挙動では,受取人フィールドの上かつ返送先住所の下に,下線付きで表示されます.
14419 \end_layout
14420
14421 \begin_layout Itemize
14422
14423 \family sans
14424 場所
14425 \family default
14426 :追加情報.標準的な挙動では,受取人フィールドの下の右側に表示されます.
14427 \end_layout
14428
14429 \begin_layout Itemize
14430
14431 \family sans
14432 タイトル
14433 \family default
14434 :書簡の題名.標準的な挙動では,主題の上に大きなボールド体サンセリフフォントで表示されます.
14435 \end_layout
14436
14437 \begin_layout Itemize
14438
14439 \family sans
14440 主題
14441 \family default
14442 :書簡の主題.標準的な挙動では,
14443 \family sans
14444 頭語
14445 \family default
14446 環境の上にボールド体で表示されます.
14447 \end_layout
14448
14449 \begin_layout Standard
14450
14451 \family sans
14452 Yourref・Yourmail・Myref・顧客・インボイス
14453 \family default
14454 といった環境は,
14455 \family sans
14456 タイトル
14457 \family default
14458 行の上に「Your ref.」・「Your letter of」・「Our ref.」・「Customer no.」・「Invoice no.」・「Date」といったフ
14459 ィールド行を持つ,ビジネス書簡を作成します.日付フィールドには,
14460 \family sans
14461 日付
14462 \family default
14463 環境の値が使用されます.しかしながら,これらの「ビジネス書簡環境」の一つを使用した場合には,
14464 \family sans
14465 場所(Place)
14466 \family default
14467 の値は書簡には表示されなくなり,\SpecialChar LaTeX
14468 変数
14469 \family typewriter
14470
14471 \backslash
14472 fromplace
14473 \family default
14474 が設定させるだけになります.通常時に,受取人フィールドの下に右揃えで出力される場所と日付の出力は,抑制されます.これらのビジネス環境は,ラベル付きの入力環境とし
14475 て実装されており,対応する
14476 \family sans
14477 頭語
14478 \family default
14479 環境よりも前に置く必要があります.
14480 \end_layout
14481
14482 \begin_layout Itemize
14483
14484 \family sans
14485 Yourref
14486 \family default
14487 : Your ref.
14488 \end_layout
14489
14490 \begin_layout Itemize
14491
14492 \family sans
14493 Yourmail
14494 \family default
14495 : Your letter of.
14496 \end_layout
14497
14498 \begin_layout Itemize
14499
14500 \family sans
14501 Myref
14502 \family default
14503 : Our ref.
14504 \end_layout
14505
14506 \begin_layout Itemize
14507
14508 \family sans
14509 Customer
14510 \family default
14511 : Customer no.
14512 \end_layout
14513
14514 \begin_layout Itemize
14515
14516 \family sans
14517 Invoice
14518 \family default
14519 : Invoice no.
14520 \end_layout
14521
14522 \begin_layout Subsection
14523 新しいletterクラス:letter (koma-script v.2)
14524 \end_layout
14525
14526 \begin_layout Standard
14527 by 
14528 \noun on
14529 Jürgen Spitzmüller
14530 \begin_inset VSpace medskip
14531 \end_inset
14532
14533
14534 \end_layout
14535
14536 \begin_layout Standard
14537 \noindent
14538 Koma-Script第2.8版では,新しいletterクラス
14539 \family typewriter
14540 scrlttr2
14541 \family default
14542 が導入されたため,
14543 \family typewriter
14544 scrlettr
14545 \family default
14546 は廃止されてサポート対象外となりました.これは—\SpecialChar LaTeX
14547 側で—全く新しいインターフェイスを持っており,旧クラスとは互換性がありません.したがって,\SpecialChar LyX
14548 は両者をサポートしてい
14549 ますが,新しい方のクラスを使用することを推奨します.
14550 \end_layout
14551
14552 \begin_layout Standard
14553 このクラスは,
14554 \emph on
14555 letter (koma-script)
14556 \emph default
14557 と同一の機能に加えて,新しい機能をいくつかサポートしています.基本となる項目は,
14558 \family sans
14559 住所
14560 \family default
14561 (受取人の住所,旧レイアウトの
14562 \family sans
14563 書簡
14564 \family default
14565 と同じ)・
14566 \family sans
14567 頭語
14568 \family default
14569
14570 \family sans
14571 結語
14572 \family default
14573 です.
14574 \family sans
14575 次の住所
14576 \family default
14577 は別の書簡を新しく開始します(つまり一文書あたり複数の書簡を書くことができます).新しく付け加えられた項目は,送り主の
14578 \family sans
14579 電子メール
14580 \family default
14581
14582 \family sans
14583 URL
14584 \family default
14585
14586 \family sans
14587 ファックス
14588 \family default
14589
14590 \family sans
14591 銀行
14592 \family default
14593 ,およびヘッダに(
14594 \family sans
14595 挿入\SpecialChar menuseparator
14596
14597 \family default
14598 で)
14599 \family sans
14600 ロゴ
14601 \family default
14602 を入れることができるようになった点です.
14603 \end_layout
14604
14605 \begin_layout Standard
14606 しかしながら,もっとも大きな改善は,書簡のレイアウトを,ほとんどどんなニーズにも合わせて設定できるようになった点でしょう.これはプリアンブルか,クラスオプション
14607 として読み込まれる特別なスタイルファイル(「レタークラスオプション」,拡張子
14608 \family typewriter
14609 *.lco
14610 \family default
14611 )によって設定することができます
14612 \begin_inset Foot
14613 status collapsed
14614
14615 \begin_layout Plain Layout
14616 KOMAパッケージには,既定の
14617 \family typewriter
14618 *.lco
14619 \family default
14620 ファイルがいくつか収録されています.たとえば,ドイツの組版規則に則った
14621 \family typewriter
14622 DIN.lco
14623 \family default
14624 や,旧
14625 \family typewriter
14626 scrlettr
14627 \family default
14628 クラスの既定レイアウトを提供する
14629 \family typewriter
14630 KOMAold.lco
14631 \family default
14632 などです.たとえば後者は,
14633 \family sans
14634 文書\SpecialChar menuseparator
14635 設定\SpecialChar menuseparator
14636 文書クラス\SpecialChar menuseparator
14637 クラスオプション
14638 \family default
14639 フィールドにクラスオプション
14640 \family typewriter
14641 KOMAold
14642 \family default
14643 を加えることで読み込むことができます.
14644 \end_layout
14645
14646 \end_inset
14647
14648 .用例としては,\SpecialChar LyX
14649 に収録されているひな型
14650 \emph on
14651 koma-letter2
14652 \emph default
14653 をご覧ください.詳細な解説は,Koma-Script取扱説明書(
14654 \emph on
14655 scrguide
14656 \emph default
14657 )にあります.
14658 \end_layout
14659
14660 \begin_layout Subsection
14661 問題点
14662 \end_layout
14663
14664 \begin_layout Standard
14665 Koma-Script文書クラスを\SpecialChar LyX
14666 上に表示する上で,\SpecialChar LyX
14667 の内部処理が若干の問題を生じめます.
14668 \end_layout
14669
14670 \begin_layout Itemize
14671
14672 \family sans
14673
14674 \family default
14675 環境の章番号は,章見出しと同じ行ではなく,その上に表示されます.これは,レイアウトファイル中の
14676 \family sans
14677 Counter_Chapter
14678 \family default
14679 ラベル型に対する\SpecialChar LyX
14680 の内部処理が原因です.
14681 \end_layout
14682
14683 \begin_layout Itemize
14684
14685 \family sans
14686 章(addchap)
14687 \family default
14688
14689 \family sans
14690 節(addsec)
14691 \family default
14692 環境の見出しは,「本当の」\SpecialChar LaTeX
14693 の目次には追加されますが,\SpecialChar LyX
14694 の目次(
14695 \family sans
14696 移動
14697 \family default
14698 メニュー)には追加されません.
14699 \end_layout
14700
14701 \begin_layout Itemize
14702
14703 \emph on
14704 letter
14705 \emph default
14706 文書クラスでの段落は,垂直スペースによる段落区切りで表示され,字下げはされません.これが標準的な挙動となっていて,特別な\SpecialChar LaTeX
14707 コマンドは必要ありません.しかし,
14708 \family sans
14709 文書\SpecialChar menuseparator
14710 設定
14711 \family default
14712 ダイアログでは,対応するラジオボタンは
14713 \family sans
14714 字下げ
14715 \family default
14716 に設定されています.
14717 \family sans
14718 垂直スペース
14719 \family default
14720 は,隙間を空けるために,文書に\SpecialChar LaTeX
14721 コマンドをつねに追加するようになっていますが,この文書クラスの場合には,そのような挙動が望まれないためです.
14722 \end_layout
14723
14724 \begin_layout Section
14725 Memoir
14726 \end_layout
14727
14728 \begin_layout Standard
14729
14730 \noun on
14731 Jürgen Spitzmüller
14732 \noun default
14733
14734 \end_layout
14735
14736 \begin_layout Subsection
14737 概観
14738 \end_layout
14739
14740 \begin_layout Standard
14741 Memoirは,非常に強力で,着実に改良が加えられている文書クラスであり,フィクションとノンフィクションの文学作品用に設計されています.その目的は,ユーザーに,
14742 文書の組版に関して最大限の裁量を得させることにあります.Memoirは,標準bookクラスに基づいていますが,articleクラスをエミュレートすることもできま
14743 す(以下参照).
14744 \end_layout
14745
14746 \begin_layout Standard
14747 Memoir開発者であるPeter Wilsonは,\SpecialChar LaTeX
14748 の世界での,多くの便利なパッケージの作者として知られていますが,それらのほとんどは,Memoirに統合されま
14749 した.このため,章のデザインや,目次や付録などのレイアウトを,はるかに簡単に行うことができます.しかしながら,\SpecialChar LyX
14750 は,これらすべての素晴らしい機能をネイティブでサポ
14751 ートしているわけではありません.これらのうちいくつかは,将来のリリースで追加されるかもしれませんが
14752 \begin_inset Foot
14753 status collapsed
14754
14755 \begin_layout Plain Layout
14756 もし提案があれば,ぜひ
14757 \begin_inset Flex URL
14758 status collapsed
14759
14760 \begin_layout Plain Layout
14761
14762 lyx-devel@lists.lyx.org
14763 \end_layout
14764
14765 \end_inset
14766
14767 までお送り下さい.
14768 \end_layout
14769
14770 \end_inset
14771
14772 ,\SpecialChar LyX
14773 のフレームワークが持つ制約のために,おそらく決して追加されることのないと考えられるものも多数あります.もちろん,ネイティブな\SpecialChar LaTeX
14774 コマンド(\SpecialChar TeX
14775 コード
14776 \begin_inset Foot
14777 status collapsed
14778
14779 \begin_layout Plain Layout
14780 【参考】詳細は,第
14781 \begin_inset CommandInset ref
14782 LatexCommand ref
14783 reference "sec:TeXコードを挿入する"
14784
14785 \end_inset
14786
14787 節参照.
14788 \end_layout
14789
14790 \end_inset
14791
14792 )の助けを借りれば,全機能を使用できます.この節では,\SpecialChar LyX
14793 がネイティブにサポートしている機能についてのみ,列挙するものとします.詳細な説明(および他の機能)について
14794 は,Memoirクラスの詳しい取扱説明書
14795 \begin_inset Foot
14796 status collapsed
14797
14798 \begin_layout Plain Layout
14799 【参考】
14800 \begin_inset Flex URL
14801 status collapsed
14802
14803 \begin_layout Plain Layout
14804
14805 CTAN:/macros/latex/memoir/memman.pdf
14806 \end_layout
14807
14808 \end_inset
14809
14810
14811 \end_layout
14812
14813 \end_inset
14814
14815 をご覧になることをお勧めします.この取扱説明書は,本クラスのユーザーの手引きであるのみに留まらず,良い組版に関する包括的な解説であり,それ自身が良い組版の傑出し
14816 た用例となっています.
14817 \end_layout
14818
14819 \begin_layout Subsection
14820 基本的な機能と制約
14821 \end_layout
14822
14823 \begin_layout Standard
14824 Memoirは,基本的に,標準bookクラスの全機能をサポートしています.しかしながら,以下に示すような若干の違いがあります.
14825 \end_layout
14826
14827 \begin_layout Description
14828 フォント寸法: Memoirでは,9・10・11・12・14・17と,より広い範囲のフォント寸法が使用可能です.
14829 \end_layout
14830
14831 \begin_layout Description
14832 ページ様式: Memoirパッケージとfancyhdrパッケージとのコマンドの衝突のため(両パッケージは同じ名前のコマンドを定義しているため,\SpecialChar LaTeX
14833 が混乱させられます
14834 ),fancyページ様式は使用できません.その代わり,Memoirには,多くの独自のページ様式が付属してきます(
14835 \family sans
14836 文書\SpecialChar menuseparator
14837 設定\SpecialChar menuseparator
14838 ページレイアウト
14839 \family default
14840 参照).これらを章題ページに使用したい場合には,コマンド
14841 \family typewriter
14842
14843 \backslash
14844 chapterstyle
14845 \family default
14846 を,本文またはプリアンブルに記述する必要があります(例えば,
14847 \family typewriter
14848
14849 \backslash
14850 chapterstyle{companion}
14851 \family default
14852 など).
14853 \end_layout
14854
14855 \begin_layout Description
14856 節分け: 標準クラスでは,節分けコマンド(章・節・小節等)は,非必須引数を一つ取ることができます.これを用いて,目次やヘッダ用に別のタイトルを指定することができ
14857 ます(たとえば,タイトルが長すぎる場合などに用います).\SpecialChar LyX
14858 では,章や節の始めで
14859 \family sans
14860 挿入\SpecialChar menuseparator
14861 短縮タイトル
14862 \family default
14863 を使えば,これを指定することができます.一方,Memoirでは,第2の非必須引数を取ることができ,目次用のタイトルとヘッダ用のタイトルの指定を分離しています.\SpecialChar LyX
14864
14865 は,
14866 \family sans
14867 挿入
14868 \family default
14869 メニューから
14870 \family sans
14871 短縮タイトル
14872 \family default
14873 の特定の派生形の形で利用できます.
14874 \end_layout
14875
14876 \begin_layout Description
14877 目次・図一覧・表一覧: 標準クラス(および他の多くのクラス)では,目次と図一覧および表一覧は,自動的に新規頁に置かれます.Memoirは,これとは別の方針を採り
14878 ます.改頁を行いたい場合は,手動で頁区切りを入れなくてはなりません.
14879 \end_layout
14880
14881 \begin_layout Description
14882 タイトル頁: 理由は不明ですが,Memoirはタイトルページに丁付けを行います(標準クラスでは,タイトルページは「empty」様式).タイトル頁に丁付けを行いた
14883 くない場合には,プリアンブルに
14884 \family typewriter
14885
14886 \backslash
14887 aliaspagestyle{title}{empty}
14888 \family default
14889 と入力してください.
14890 \end_layout
14891
14892 \begin_layout Description
14893 Article: クラスオプション
14894 \emph on
14895 article
14896 \emph default
14897 を用いる(
14898 \family sans
14899 文書\SpecialChar menuseparator
14900 設定\SpecialChar menuseparator
14901 文書クラス\SpecialChar menuseparator
14902 クラスオプション\SpecialChar menuseparator
14903 任意設定
14904 \family default
14905 で入力)と,article様式をエミュレートできます.すなわち,(脚注・図・表等の)カウンタは,章毎にリセットされず,次の章は頁を改めず(ただし,「本物の」ar
14906 ticleクラスとは違って,頁を改めることも可),部はbookクラスと同様に,独立の頁を使用します.
14907 \end_layout
14908
14909 \begin_layout Description
14910 Oldfontcommands: \SpecialChar LaTeX
14911 旧2.09版で使用されていた旧いフォントコマンド(
14912 \family typewriter
14913
14914 \backslash
14915 rm
14916 \family default
14917
14918 \family typewriter
14919
14920 \backslash
14921 it
14922 \family default
14923 など)は,Memoirにおいては,既定では使用することができません.Memoirがこれらのコマンドを検知すると,エラーを発して\SpecialChar LaTeX
14924 を停止させます.しかし,クラスオプ
14925 ション
14926 \emph on
14927 oldfontcommands
14928 \emph default
14929 を指定すると,これらのコマンドが容認され,エラーの代わりに警告を発するのみとなります(これによって,少なくとも\SpecialChar LaTeX
14930 は停止しなくなります).まだ,多くのパッケージと,
14931 就中多くのBib\SpecialChar TeX
14932 スタイルファイルが,これらのコマンドを使用しているので,我々はこのオプションを既定で使うこととしました.
14933 \end_layout
14934
14935 \begin_layout Subsection
14936 追加された機能
14937 \end_layout
14938
14939 \begin_layout Standard
14940 \SpecialChar LyX
14941 でサポートされる機能(今のところそれほど多くはありません)を簡単に説明しましょう.詳しくはMemoirの取扱説明書
14942 \begin_inset Foot
14943 status collapsed
14944
14945 \begin_layout Plain Layout
14946 \begin_inset Flex URL
14947 status collapsed
14948
14949 \begin_layout Plain Layout
14950
14951 CTAN:/macros/latex/memoir/memman.pdf
14952 \end_layout
14953
14954 \end_inset
14955
14956
14957 \end_layout
14958
14959 \end_inset
14960
14961 を見てください.
14962 \end_layout
14963
14964 \begin_layout Description
14965 概要: 概要が,追加された機能として扱われているのを不思議に思われるかもしれませんが,bookクラスとしては追加された機能なのです.通常bookクラスには概要は
14966 ないのですが,memoirにはあります.これは,どこでも何回でも自由に使うことができます.
14967 \end_layout
14968
14969 \begin_layout Description
14970 章要約: この古い組版様式はご覧になったことがあるかも知れません.章の内容が,見出しの下と目次に要約されているものです(たとえば,「我らが英雄がトロヤに到着する
14971 .彼は友人を失うが,新たな友人を得る.」など).章要約(chapterprecis)はこれを行います.したがって,章要約は章の下でのみ意味を持ちます.
14972 \end_layout
14973
14974 \begin_layout Description
14975 題辞: 題辞(epigraph)は章頭の,気の利いた標語やモットーです.題辞環境は,そのような標語を組む洗練された方法を提供します.標語本体(本文)とその著者(
14976 出典:非必須)は,短い線で区切られます.著者(出典)は,
14977 \family sans
14978 挿入\SpecialChar menuseparator
14979 題辞出典
14980 \family default
14981 で入力できます.
14982 \end_layout
14983
14984 \begin_layout Description
14985 詩題: Memoirには(複雑で隠喩的なものも含めて)詩を組版するための多くの機能がありますが,\SpecialChar LyX
14986 は,そのうちいくつかしかサポートしていません.詩題はその一つです
14987 .これは詩用の中央揃えタイトルで,目次にも表示されます(詩句が詩の標準環境です.Memoirには,詩句の拡張版もありますが,これらを使うためには\SpecialChar TeX
14988 コードを使用しな
14989 くてはなりません.これらの環境は通常の詩句環境の中に入れ子にしなくてはならないのですが,\SpecialChar LyX
14990 ではそれができないためです).
14991 \end_layout
14992
14993 \begin_layout Description
14994 詩題*: 目次に現れない他は詩題と同じです.
14995 \end_layout
14996
14997 \begin_layout Section
14998 Article (mwart)・book (mwbk)・report (mwrep)
14999 \begin_inset Argument status
15000 status collapsed
15001
15002 \begin_layout Plain Layout
15003 The 
15004 \family typewriter
15005 mw
15006 \family default
15007  Classes
15008 \end_layout
15009
15010 \end_inset
15011
15012
15013 \end_layout
15014
15015 \begin_layout Standard
15016
15017 \noun on
15018 Tomasz Luczak
15019 \noun default
15020
15021 \end_layout
15022
15023 \begin_layout Standard
15024 \SpecialChar LyX
15025 文書クラス
15026 \emph on
15027 article (mwart)
15028 \emph default
15029
15030 \emph on
15031 report (mwrep)・book
15032 \emph default
15033  
15034 \emph on
15035 (mwbk)
15036 \emph default
15037 は,それぞれ\SpecialChar LaTeX
15038 文書クラス
15039 \family typewriter
15040 mwart.cls
15041 \family default
15042
15043 \family typewriter
15044 mwrep.cls
15045 \family default
15046
15047 \family typewriter
15048 mwbk.cls
15049 \family default
15050 に対応しています.これらは,標準の
15051 \family typewriter
15052 article.cls
15053 \family default
15054
15055 \family typewriter
15056 report.cls
15057 \family default
15058
15059 \family typewriter
15060 book.cls
15061 \family default
15062 を代替するものであり,多くの点で,ポーランド語の組版慣習によく適合しています.
15063 \end_layout
15064
15065 \begin_layout Standard
15066 基本的な違いは,次の点です.
15067 \end_layout
15068
15069 \begin_layout Itemize
15070 付番のない見出し(
15071 \family sans
15072 節*
15073 \family default
15074 などの星付き)も目次に加えられます.
15075 \end_layout
15076
15077 \begin_layout Itemize
15078 以下のページスタイルの追加
15079 \end_layout
15080
15081 \begin_deeper
15082 \begin_layout Description
15083 uheadings 分離線付きヘッダ
15084 \end_layout
15085
15086 \begin_layout Description
15087 myheadings 
15088 \family typewriter
15089
15090 \backslash
15091 markright
15092 \family default
15093 コマンドおよび
15094 \family typewriter
15095
15096 \backslash
15097 markboth
15098 \family default
15099 コマンドで設定するカスタムヘッダ
15100 \end_layout
15101
15102 \begin_layout Description
15103 myuheadings 分離線付きカスタムヘッダ
15104 \end_layout
15105
15106 \begin_layout Description
15107 outer ページの外側にページ番号
15108 \end_layout
15109
15110 \end_deeper
15111 \begin_layout Itemize
15112 オプション
15113 \end_layout
15114
15115 \begin_deeper
15116 \begin_layout Description
15117 rmheadings セリフ体見出し — 既定
15118 \end_layout
15119
15120 \begin_layout Description
15121 sfheadings サンセリフ体見出し
15122 \end_layout
15123
15124 \begin_layout Description
15125 authortitle タイトルページは,著者名・タイトルの順で配置 — 既定
15126 \end_layout
15127
15128 \begin_layout Description
15129 titleauthor タイトルページは,タイトル・著者名の順で配置
15130 \end_layout
15131
15132 \begin_layout Description
15133 withmarginpar ページ上に余白のための場所を確保
15134 \end_layout
15135
15136 \end_deeper
15137 \begin_layout Section
15138 Paper
15139 \end_layout
15140
15141 \begin_layout Standard
15142
15143 \family sans
15144 paper
15145 \family default
15146 文書クラスは標準
15147 \family sans
15148 article
15149 \family default
15150 クラスの代替となるものです.これは
15151 \family sans
15152 同様の
15153 \family default
15154 機能を提供しますが,サンセリフ体の節見出し・ヘッディング等を持つこちらのレイアウトの方が気に入るかも知れません.
15155 \end_layout
15156
15157 \begin_layout Section
15158 Rev\SpecialChar TeX
15159 4
15160 \end_layout
15161
15162 \begin_layout Standard
15163 by 
15164 \noun on
15165 Amir Karger
15166 \end_layout
15167
15168 \begin_layout Standard
15169 \begin_inset VSpace bigskip
15170 \end_inset
15171
15172
15173 \end_layout
15174
15175 \begin_layout Standard
15176 \noindent
15177
15178 \family sans
15179 Revtex
15180 \begin_inset space ~
15181 \end_inset
15182
15183 4
15184 \family default
15185 テキストクラスは,アメリカ物理学会のRev\SpecialChar TeX
15186  4.0(1999年5月の
15187 \begin_inset Formula $\beta$
15188 \end_inset
15189
15190 リリース)クラスで動作します.
15191 \end_layout
15192
15193 \begin_layout Standard
15194 \SpecialChar LyX
15195 には,Rev\SpecialChar TeX
15196  3.1で動作する
15197 \family sans
15198 Revtex
15199 \family default
15200 テキストクラスもあります.しかしながら,第3.1版は\SpecialChar LaTeX
15201  2.09で動作するものであり,基本的に時代遅れなものになっています.\SpecialChar LyX
15202 は\SpecialChar LaTeX2e
15203 を必要とすることから,第3.1版は\SpecialChar LyX
15204 とうまく
15205 協調しないことを意味しますが,動作するようには調整してあります.Rev\SpecialChar TeX
15206  4.0は,\SpecialChar LaTeX2e
15207 で素直に動作するようにデザインされているので,\SpecialChar LyX
15208
15209 \family sans
15210 Rev\SpecialChar TeX
15211
15212 \begin_inset space ~
15213 \end_inset
15214
15215 4
15216 \family default
15217 テキストクラスの組で使用するのは,たいへん簡単です.
15218 \end_layout
15219
15220 \begin_layout Standard
15221 この取扱説明書は,Rev\SpecialChar TeX
15222  4.0の説明書の
15223 \emph on
15224 補完
15225 \emph default
15226 として使用されることを前提としています.したがって,ここではRev\SpecialChar TeX
15227 固有マクロの説明はせず,必要な場合にはプリアンブルに何と書けば良いかを知っているものとして説明
15228 します.
15229 \end_layout
15230
15231 \begin_layout Subsection
15232 導入
15233 \end_layout
15234
15235 \begin_layout Standard
15236 Rev\SpecialChar TeX
15237  4パッケージのREADMEファイルにあるとおり,ともかくRev\SpecialChar TeX
15238  4を導入しなくてはなりません.パッケージは,The Rev\SpecialChar TeX
15239  4 Web
15240  Site 
15241 \begin_inset Flex URL
15242 status collapsed
15243
15244 \begin_layout Plain Layout
15245
15246 http://publish.aps.org/revtex4/
15247 \end_layout
15248
15249 \end_inset
15250
15251 から入手することができます.これを\SpecialChar LaTeX
15252 が検出することのできる場所に導入してください.それから,適当に選んだディレクトリ(もといクラスファイルを導入したのとは異なるデ
15253 ィレクトリ)で簡単なRev\SpecialChar TeX
15254  4文書を \SpecialChar LaTeX
15255 でコンパイルできるかどうか確認してください.この後,\SpecialChar LyX
15256 を環境構成すると,クラスファイルを検出し,Rev\SpecialChar TeX
15257 4テキストクラスが使用
15258 できるようになるはずです.
15259 \end_layout
15260
15261 \begin_layout Standard
15262 使い始めるには,
15263 \family typewriter
15264 tex2lyx
15265 \family default
15266 を使ってRev\SpecialChar TeX
15267  4文書を読み込むか,またはひな型ディレクトリにある
15268 \family sans
15269 Revtex
15270 \begin_inset space ~
15271 \end_inset
15272
15273 4
15274 \family default
15275 のひな型を使うのが,おそらく一番簡単な方法でしょう.
15276 \end_layout
15277
15278 \begin_layout Subsection
15279 プリアンブルに関すること
15280 \end_layout
15281
15282 \begin_layout Standard
15283
15284 \family typewriter
15285
15286 \backslash
15287 documentclass
15288 \family default
15289 に与える「preprint」や「aps」のような非必須引数は,他のクラス同様,
15290 \family sans
15291 文書\SpecialChar menuseparator
15292 設定\SpecialChar menuseparator
15293 文書クラス
15294 \family default
15295
15296 \family sans
15297 クラスオプション
15298 \family default
15299 フィールドに入れます.Rev\SpecialChar TeX
15300 では,少なくとも一つの非必須引数が必要なことに注意してください.
15301 \end_layout
15302
15303 \begin_layout Standard
15304
15305 \family typewriter
15306
15307 \backslash
15308 draft
15309 \family default
15310 など他のプリアンブルは,他のクラス同様,
15311 \family sans
15312 文書\SpecialChar menuseparator
15313 設定\SpecialChar menuseparator
15314 \SpecialChar LaTeX
15315 プリアンブル
15316 \family default
15317 に入れてください.
15318 \end_layout
15319
15320 \begin_layout Subsection
15321 レイアウト
15322 \end_layout
15323
15324 \begin_layout Standard
15325 レイアウトは,基本的にRev\SpecialChar TeX
15326 4.0のコマンドに対応しています.たとえば,Emailレイアウトは,
15327 \family typewriter
15328
15329 \backslash
15330 email{}
15331 \family default
15332 に対応しています.(少なくともRev\SpecialChar TeX
15333  4.0 Beta現在では)
15334 \family sans
15335 住所
15336 \family default
15337
15338 \family sans
15339 所属
15340 \family default
15341 はまったく同じものなので,両方を使う必要はありません
15342 \begin_inset Foot
15343 status collapsed
15344
15345 \begin_layout Plain Layout
15346 ついでながら,
15347 \family typewriter
15348 tex2lyx
15349 \family default
15350 は両方とも対応しているので,
15351 \family typewriter
15352
15353 \backslash
15354 address
15355 \family default
15356
15357 \family typewriter
15358
15359 \backslash
15360 affiliation
15361 \family default
15362 のどちらも翻訳することができます.
15363 \end_layout
15364
15365 \end_inset
15366
15367
15368 \end_layout
15369
15370 \begin_layout Subsection
15371 重要な注意
15372 \end_layout
15373
15374 \begin_layout Standard
15375 Rev\SpecialChar TeX
15376  4には,バグを引き起こしがちなために,気をつけなくてはならない特殊な面がいくつかあるため,\SpecialChar LyX
15377 ではさらに気をつけなくてはなりません.
15378 \end_layout
15379
15380 \begin_layout Standard
15381 Rev\SpecialChar TeX
15382 では,
15383 \family typewriter
15384
15385 \backslash
15386 thanks
15387 \family default
15388 コマンドは,
15389 \family typewriter
15390
15391 \backslash
15392 author
15393 \family default
15394 コマンドの
15395 \emph on
15396 外側
15397 \emph default
15398 に来なくてはなりません.\SpecialChar LyX
15399 では,独立した
15400 \family sans
15401 感謝
15402 \family default
15403 レイアウトがこの働きをします.直接
15404 \family sans
15405 ,著者
15406 \family default
15407 レイアウトに脚注を付けてしまうと,おかしなことが起こる可能性があります.詳細については,Rev\SpecialChar TeX
15408  4の取扱説明書をご覧ください.
15409 \end_layout
15410
15411 \begin_layout Standard
15412 また,
15413 \family sans
15414 著者電子メール
15415 \family default
15416
15417 \family sans
15418 著者URL・感謝(thanks)
15419 \family default
15420 レイアウトは,
15421 \family sans
15422 著者
15423 \family default
15424 レイアウトと
15425 \family sans
15426 住所(
15427 \family default
15428 または同等の
15429 \family sans
15430 所属
15431 \family default
15432 )レイアウトの間に置かなければなりません.
15433 \family sans
15434 感謝(thanks)
15435 \family default
15436
15437 \family sans
15438 住所
15439 \family default
15440 の後に置いてしまうと,\SpecialChar LaTeX
15441 はコンパイルに失敗します.
15442 \end_layout
15443
15444 \begin_layout Section
15445 Springer学術誌(
15446 \family sans
15447 svjour)
15448 \end_layout
15449
15450 \begin_layout Standard
15451
15452 \noun on
15453 Martin Vermeer
15454 \noun default
15455
15456 \end_layout
15457
15458 \begin_layout Subsection
15459 説明
15460 \end_layout
15461
15462 \begin_layout Standard
15463 これは,Springer Verlag社発行のいくつかの学術誌で使用されている書式のレイアウトファイルです.
15464 \begin_inset Flex URL
15465 status collapsed
15466
15467 \begin_layout Plain Layout
15468
15469 http://www.springer.de/author/tex/help-journals.html
15470 \end_layout
15471
15472 \end_inset
15473
15474 に必要なクラスファイル(\SpecialChar LaTeX2e
15475 用になりました)とそれに対応する学術誌の一覧があります.このレイアウトはモジュール式になっています.つまり,全ジャーナル共通部分は
15476 \family typewriter
15477 svjour.inc
15478 \family default
15479 に実装されており,各誌個別のレイアウトファイル(たとえばJournal of Geodesy用の
15480 \family typewriter
15481 svjog.layout
15482 \family default
15483 など)から取り込むことができます.
15484 \end_layout
15485
15486 \begin_layout Standard
15487 このことは,上記の学術誌一覧にある他のSpringer誌のサポートを実装するためには,
15488 \family typewriter
15489 svjog.layout
15490 \family default
15491 に書かれている指示に従って,自作の
15492 \family typewriter
15493 sv
15494 \family default
15495 <学術誌名>
15496 \family typewriter
15497 .layout
15498 \family default
15499 を書くだけで良いことを意味します.
15500 \end_layout
15501
15502 \begin_layout Standard
15503 このレイアウトは,Journal of Geodesyに対してのみ,充分な試験が為されています.
15504 \family typewriter
15505 svjour
15506 \family default
15507
15508 \family typewriter
15509 svjog
15510 \family default
15511 は,標準\SpecialChar LyX
15512 頒布版に収録済みです.関連するクラスファイルを(Springerからダウンロードして)適切なディレクトリに導入し,\SpecialChar LaTeX
15513 を再設定した後(teTeXの場合は,必
15514 要に応じてroot権限で
15515 \family typewriter
15516 texhash
15517 \family default
15518 を実行します),\SpecialChar LyX
15519 を環境構成すれば,動作するはずです.
15520 \end_layout
15521
15522 \begin_layout Subsection
15523 新スタイル
15524 \end_layout
15525
15526 \begin_layout Standard
15527 多くの定理環境 — 
15528 \family sans
15529 主張
15530 \family default
15531
15532 \family sans
15533 推論
15534 \family default
15535 ・\SpecialChar ldots
15536
15537 \family sans
15538 定理
15539 \family default
15540
15541 \end_layout
15542
15543 \begin_layout Standard
15544
15545 \family sans
15546 ヘッドノート
15547 \family default
15548
15549 \family sans
15550 献呈
15551 \family default
15552
15553 \family sans
15554 サブタイトル・ヘッダ用\SpecialChar LaTeX
15555 タイトル・ヘッダ用著者名・所属機関・メール・オフプリント・キーワード・謝辞(acknowledgements)・謝辞(acknowledg
15556 ement)
15557 \family default
15558 .詳しくは Springerのクラスファイルの説明書を読んでください.
15559 \end_layout
15560
15561 \begin_layout Subsection
15562 サポートしているジャーナル
15563 \end_layout
15564
15565 \begin_layout Itemize
15566
15567 \emph on
15568 Journal of Geodesy
15569 \emph default
15570
15571 \family typewriter
15572 svjog.layout
15573 \family default
15574  — Martin Vermeer
15575 \end_layout
15576
15577 \begin_layout Itemize
15578
15579 \emph on
15580 Probability Theory and Related Fields
15581 \emph default
15582
15583 \family typewriter
15584 svprobth.layout
15585 \family default
15586  — Jean-Marc Lasgouttes
15587 \end_layout
15588
15589 \begin_layout Standard
15590 あなた自身のレイアウトファイルをつくってください.難しくはありません.
15591 \end_layout
15592
15593 \begin_layout Subsection
15594 Credits
15595 \end_layout
15596
15597 \begin_layout Standard
15598 これらのファイルは,以前の 
15599 \family typewriter
15600 ejour2.layout
15601 \family default
15602 をもとにしています.
15603 \family typewriter
15604 ejour2.layout
15605 \family default
15606 は Springerの\SpecialChar LaTeX
15607  2.09用のスタイルファイルを使った素人細工のようなレイアウトファイルです.これらのファイルはすでにありません.Jean-Marc
15608  Lasgouttesのおかげで \SpecialChar LyX
15609 のレイアウトファイルのメカニズムをよりよく理解することができました.
15610 \end_layout
15611
15612 \begin_layout Subsection
15613 バグ
15614 \end_layout
15615
15616 \begin_layout Standard
15617 多分あります.以前の 
15618 \family typewriter
15619 ejour2
15620 \family default
15621 よりは少なくなっているとは思いますが.
15622 \end_layout
15623
15624 \begin_layout Section
15625 Slides別名
15626 \noun on
15627 Sli\SpecialChar TeX
15628
15629 \noun default
15630
15631 \begin_inset Foot
15632 status collapsed
15633
15634 \begin_layout Plain Layout
15635 (訳註)この節の内容は,全般的に古くなっています.
15636 \end_layout
15637
15638 \end_inset
15639
15640
15641 \begin_inset CommandInset label
15642 LatexCommand label
15643 name "sec:slitex"
15644
15645 \end_inset
15646
15647
15648 \end_layout
15649
15650 \begin_layout Standard
15651
15652 \noun on
15653 John Weiss
15654 \noun default
15655
15656 \end_layout
15657
15658 \begin_layout Subsection
15659 はじめに
15660 \end_layout
15661
15662 \begin_layout Standard
15663 本節では,オーバーへッドプロジェクタ用のスライドをつくるのに,\SpecialChar LyX
15664 をどのように使えばよいかを説明します.これを行う文書クラスには,既定のslideクラスと
15665 \family sans
15666 Foil\SpecialChar TeX
15667
15668 \family default
15669 スライドクラスの2つがあります.本節は前者について説明を行います.
15670 \end_layout
15671
15672 \begin_layout Standard
15673 誤解のないように,正しく明確に,もう一度言っておきます.
15674 \end_layout
15675
15676 \begin_layout Standard
15677 \begin_inset VSpace bigskip
15678 \end_inset
15679
15680
15681 \end_layout
15682
15683 \begin_layout Standard
15684 \align center
15685
15686 \size large
15687 本節は文書クラス
15688 \begin_inset Quotes eld
15689 \end_inset
15690
15691
15692 \family sans
15693 transparencies (slides)
15694 \family default
15695
15696 \begin_inset Quotes erd
15697 \end_inset
15698
15699
15700 \emph on
15701 のみ
15702 \emph default
15703 を説明しています.
15704 \end_layout
15705
15706 \begin_layout Standard
15707 \begin_inset VSpace bigskip
15708 \end_inset
15709
15710
15711 \end_layout
15712
15713 \begin_layout Standard
15714
15715 \family sans
15716 「slides (Foil\SpecialChar TeX
15717 )
15718 \family default
15719 」の説明をお探しならば,第
15720 \begin_inset CommandInset ref
15721 LatexCommand ref
15722 reference "sec:foiltex"
15723
15724 \end_inset
15725
15726 節をご覧ください.
15727 \family sans
15728 foils
15729 \family default
15730 クラス「
15731 \family sans
15732 slides (Foil\SpecialChar TeX
15733 )
15734 \family default
15735 」は,実際,本節で説明している既定
15736 \family sans
15737 slides
15738 \family default
15739 クラスよりも良いようです
15740 \begin_inset Foot
15741 status collapsed
15742
15743 \begin_layout Plain Layout
15744 \SpecialChar ldots
15745
15746 \family sans
15747 Foil\SpecialChar TeX
15748
15749 \family default
15750 の支持者からは聞いています.けれども私は使ったことがないので,本当かどうか確かめようがありません.
15751 \end_layout
15752
15753 \end_inset
15754
15755
15756 \end_layout
15757
15758 \begin_layout Standard
15759 このクラスは,旧SLI\SpecialChar TeX
15760 パッケージを\SpecialChar LaTeX2e
15761 用に改良したものです.\SpecialChar LaTeX2e
15762 頒布版すべてが,このクラス(以下では単に「
15763 \family sans
15764 slides
15765 \family default
15766 」と述べることにします)を含んでいるので,あなたもお持ちのはずです.前述の
15767 \family sans
15768 foils
15769 \family default
15770 のように,同じくオーバーへッドプロジェクタ用のスライドを生成しながら,このクラスよりも良い仕事をするクラスもあります.しかしながら,オーバーレイを生成するなど,
15771 他のクラスにはできないが
15772 \family sans
15773 slides
15774 \family default
15775 ならばできることもあります.詳しくは以下をお読みください.
15776 \end_layout
15777
15778 \begin_layout Subsection
15779 使い始めるには
15780 \begin_inset CommandInset label
15781 LatexCommand label
15782 name "sec:slidesetup"
15783
15784 \end_inset
15785
15786
15787 \end_layout
15788
15789 \begin_layout Standard
15790 当然ながら,この文書クラスを使用するには,
15791 \family sans
15792 文書\SpecialChar menuseparator
15793 設定
15794 \family default
15795 ダイアログのクラスリストから「
15796 \family sans
15797 transparencies (slides)
15798 \family default
15799 」を選択しなくてはなりません.このクラスについて,以下のように,特に知っておいた方が良いことがいくつかあります.
15800 \end_layout
15801
15802 \begin_layout Itemize
15803
15804 \family sans
15805 用紙方向
15806 \family default
15807
15808 \family sans
15809 二段組文書
15810 \family default
15811 の各オプションは,あえて変更する必要はありません.これらのオプションは,
15812 \family sans
15813 slides
15814 \family default
15815 クラスではサポートされていないので,効果がありません.
15816 \end_layout
15817
15818 \begin_layout Itemize
15819
15820 \family sans
15821 ヘディング様式
15822 \family default
15823 オプションは,このクラスでは少し異なった振る舞いをします.各選択肢とその機能は,以下の通りです.
15824 \end_layout
15825
15826 \begin_deeper
15827 \begin_layout Description
15828 プレーン(plain) 最終出力の右下隅にページ番号が付きます.
15829 \end_layout
15830
15831 \begin_layout Description
15832 設定(headings)
15833 \family sans
15834  プレーン(plain)
15835 \family default
15836 と同様ですが,それ以外にあなたが指定したタイムマーカーをすべて出力します.これが既定値です.
15837 \end_layout
15838
15839 \begin_layout Description
15840 空 最終出力には,ページ番号もタイムマーカーも位置揃えマーカーも出力されません.
15841 \end_layout
15842
15843 \end_deeper
15844 \begin_layout Itemize
15845
15846 \family sans
15847 slides
15848 \family default
15849 クラスには,もう一つ
15850 \family typewriter
15851 clock
15852 \family default
15853 というオプションがあります.これを使用するには,
15854 \family sans
15855 クラスオプション
15856 \family default
15857 に「
15858 \family typewriter
15859 clock
15860 \family default
15861 」と入力してください.
15862 \end_layout
15863
15864 \begin_deeper
15865 \begin_layout Standard
15866 このオプションを使うと,
15867 \family sans
15868 注釈
15869 \family default
15870 にタイムマーカーを加えることができます.詳細は,第
15871 \begin_inset CommandInset ref
15872 LatexCommand ref
15873 reference "sec:スライド注釈"
15874
15875 \end_inset
15876
15877 節をご覧ください.
15878 \end_layout
15879
15880 \end_deeper
15881 \begin_layout Standard
15882
15883 \family sans
15884 slides
15885 \family default
15886 クラスを用いた文書を自動的にセットアップするには,ひな型ファイル「
15887 \family typewriter
15888 slides.lyx
15889 \family default
15890 」を使用することもできます(新規ファイルを開く際に
15891 \family sans
15892 ファイル\SpecialChar menuseparator
15893 新規(ひな型使用)
15894 \family default
15895 を使用してください).ひな型ファイルには,このクラスが使用する特別な段落環境の用例も含まれています.これらについては,以下で説明します.
15896 \end_layout
15897
15898 \begin_layout Subsection
15899 段落環境
15900 \end_layout
15901
15902 \begin_layout Subsubsection
15903
15904 \family sans
15905 サポートされている環境
15906 \end_layout
15907
15908 \begin_layout Standard
15909 新しく
15910 \family sans
15911 slides
15912 \family default
15913 文書を開いたときにまず気付くのは,フォント寸法とフォント族の違いでしょう.ここでは,
15914 \family sans
15915 サンセリフ体
15916 \family default
15917 フォントの
15918 \family sans
15919 極大
15920 \family default
15921 寸法が用いられており,出力でもこのフォントが使用されます.これは,現在スライドを作成中であることの「目印」だと考えてください.出力スライドは大きなフォントを使用
15922 するため,書ける場所は少なくなります.もちろん,既定の大きな画面フォントはWYSIWYGではなく,スライドであることの目印に過ぎません.
15923 \end_layout
15924
15925 \begin_layout Standard
15926 次に気付くのは,(ツールバー左端の)段落環境プルダウンボックスが変わっていることでしょう.通常見かける環境の多くがなくなって,代わりに5つの新しい環境が入ってい
15927 ます.これは,
15928 \family sans
15929 slides
15930 \family default
15931 クラスが,標準段落環境のうち以下のものしかサポートしていないためです.
15932 \end_layout
15933
15934 \begin_layout Itemize
15935
15936 \family sans
15937 標準
15938 \end_layout
15939
15940 \begin_layout Itemize
15941
15942 \family sans
15943 箇条書き(記号)
15944 \end_layout
15945
15946 \begin_layout Itemize
15947
15948 \family sans
15949 箇条書き(連番)
15950 \end_layout
15951
15952 \begin_layout Itemize
15953
15954 \family sans
15955 箇条書き(記述)
15956 \end_layout
15957
15958 \begin_layout Itemize
15959
15960 \family sans
15961 箇条書き(一覧)
15962 \end_layout
15963
15964 \begin_layout Itemize
15965
15966 \family sans
15967 引用(字下げあり)
15968 \end_layout
15969
15970 \begin_layout Itemize
15971
15972 \family sans
15973 引用(字下げなし)
15974 \end_layout
15975
15976 \begin_layout Itemize
15977
15978 \family sans
15979 詩句
15980 \end_layout
15981
15982 \begin_layout Itemize
15983
15984 \family sans
15985 キャプション
15986 \end_layout
15987
15988 \begin_layout Itemize
15989
15990 \family sans
15991 \SpecialChar LyX
15992 コード
15993 \end_layout
15994
15995 \begin_layout Standard
15996 これ以外の標準的な環境,例えば節見出し用の環境などは
15997 \family sans
15998 slides
15999 \family default
16000 クラスでは使えません.
16001 \end_layout
16002
16003 \begin_layout Standard
16004 一方,以下の新しい環境があります.
16005 \end_layout
16006
16007 \begin_layout Itemize
16008
16009 \family sans
16010 スライド
16011 \end_layout
16012
16013 \begin_layout Itemize
16014
16015 \family sans
16016 オーバーレイ
16017 \end_layout
16018
16019 \begin_layout Itemize
16020
16021 \family sans
16022 注釈
16023 \end_layout
16024
16025 \begin_layout Itemize
16026
16027 \family sans
16028 不可視文
16029 \end_layout
16030
16031 \begin_layout Itemize
16032
16033 \family sans
16034 可視文
16035 \end_layout
16036
16037 \begin_layout Standard
16038 これら5つの環境は,\SpecialChar LyX
16039 の「機能」のために使い方に癖があります.ご存じのように,\SpecialChar LyX
16040 では,空の段落環境に他の環境を入れることができません.それ自体は素晴らしいデザインな
16041 のですが,これは,スライドを平文以外では書き始めることができないことを意味します.これを取り扱うためには,ちょっとした「\SpecialChar LaTeX
16042 マジック」が必要になります.
16043 \end_layout
16044
16045 \begin_layout Subsubsection
16046 新環境の癖
16047 \begin_inset CommandInset label
16048 LatexCommand label
16049 name "sec:スライドの癖"
16050
16051 \end_inset
16052
16053
16054 \end_layout
16055
16056 \begin_layout Standard
16057 5つの新しい環境にはすべて,\SpecialChar LyX
16058 現行版の制約に由来する癖があります.いま述べたように,\SpecialChar LyX
16059 では,環境を別の環境で開始することが禁止されています.これを回避するために,
16060 \family sans
16061 スライド
16062 \family default
16063 環境は『
16064 \emph on
16065 ユーザーの手引き
16066 \emph default
16067 』で述べられているような段落環境ではなくなっています.
16068 \end_layout
16069
16070 \begin_layout Standard
16071
16072 \family sans
16073 スライド
16074 \family default
16075
16076 \family sans
16077 オーバーレイ
16078 \family default
16079
16080 \family sans
16081 注釈
16082 \family default
16083 は「疑似環境」だとお考えください.これらは節見出しや「
16084 \family sans
16085 キャプション
16086 \family default
16087 」のように見えますが,実際には(必要なら前段落を終了して)新しい段落環境を開始します.同様に,
16088 \family sans
16089 不可視文
16090 \family default
16091
16092 \family sans
16093 可視文
16094 \family default
16095 も「疑似コマンド」とお考えください.この2つは特定のアクションを行います.
16096 \end_layout
16097
16098 \begin_layout Standard
16099
16100 \family sans
16101 スライド
16102 \family default
16103
16104 \family sans
16105 オーバーレイ
16106 \family default
16107
16108 \family sans
16109 注釈
16110 \family default
16111
16112 \family sans
16113 不可視文
16114 \family default
16115
16116 \family sans
16117 可視文
16118 \family default
16119 の5環境に共通しているのは,長めのラベルを持つことです.このラベルに続く文章—通常は段落環境の内容になるはずですが—は,
16120 \family sans
16121 スライド
16122 \family default
16123
16124 \family sans
16125 オーバーレイ
16126 \family default
16127
16128 \family sans
16129 注釈
16130 \family default
16131
16132 \family sans
16133 不可視文
16134 \family default
16135
16136 \family sans
16137 可視文
16138 \family default
16139 では,まったく意味がなく,\SpecialChar LyX
16140 はこの部分を完全に無視します.これらの5つの環境の内容は,完全に空のままにしておいて構いません.
16141 \end_layout
16142
16143 \begin_layout Standard
16144 長めのラベルの後に文章を入れる
16145 \emph on
16146 必要は
16147 \emph default
16148 まったく
16149 \emph on
16150 ない
16151 \emph default
16152 とはいえ,何か書いておきたいこともあるかもしれません.たとえば,スライドの内容に関する短い説明などがそうでしょう.この場合,いつもどおり説明用のコメントを入力し
16153
16154 \family sans
16155 Return
16156 \family default
16157 を押してください.
16158 \end_layout
16159
16160 \begin_layout Standard
16161 一方,説明文を入れたくない場合には,\SpecialChar LyX
16162 の制約に直面します.自然が真空を憎むように,\SpecialChar LyX
16163 では,古い環境に何かを置くまでは,その中に新しい環境を入れることができません.そ
16164 こで以下のようにしてください.
16165 \end_layout
16166
16167 \begin_layout Itemize
16168 新しい
16169 \family sans
16170 スライド
16171 \family default
16172
16173 \family sans
16174 オーバーレイ
16175 \family default
16176
16177 \family sans
16178 注釈
16179 \family default
16180
16181 \family sans
16182 不可視文
16183 \family default
16184
16185 \family sans
16186 可視文
16187 \family default
16188
16189 \emph on
16190 中に入れる
16191 \emph default
16192 文章を入力してください.
16193 \end_layout
16194
16195 \begin_layout Itemize
16196 段落の先頭に移動します.
16197 \end_layout
16198
16199 \begin_layout Itemize
16200 次に
16201 \family sans
16202 Return
16203 \family default
16204 を押します.
16205 \end_layout
16206
16207 \begin_layout Itemize
16208 最後に,この新しい空の段落を
16209 \family sans
16210 スライド
16211 \family default
16212
16213 \family sans
16214 オーバーレイ
16215 \family default
16216
16217 \family sans
16218 注釈
16219 \family default
16220
16221 \family sans
16222 不可視文
16223 \family default
16224
16225 \family sans
16226 可視文
16227 \family default
16228 に変更します.
16229 \end_layout
16230
16231 \begin_layout Standard
16232 将来の\SpecialChar LyX
16233 では,このような癖が解決されることを祈っています\SpecialChar ldots
16234
16235 \begin_inset Foot
16236 status collapsed
16237
16238 \begin_layout Plain Layout
16239 (訳註)ここの記述は古くなっています.
16240 \end_layout
16241
16242 \end_inset
16243
16244
16245 \end_layout
16246
16247 \begin_layout Subsection
16248
16249 \family sans
16250 スライド
16251 \family default
16252
16253 \family sans
16254 オーバーレイ
16255 \family default
16256
16257 \family sans
16258 注釈で発表用のスライドを作る
16259 \end_layout
16260
16261 \begin_layout Subsubsection
16262
16263 \family sans
16264 スライド
16265 \family default
16266 環境を使う
16267 \end_layout
16268
16269 \begin_layout Standard
16270 もし本節が,実際のプレゼンテーションの作り方を教えてくれるものと期待されているとすれば,大いにがっかりされるかもしれません.当然ながら,プレゼンテーション用の資
16271 料を準備するうえで
16272 \family sans
16273 slides
16274 \family default
16275 クラスを役立てる方法を詳しく説明はしますが,内容をどうするかはあなた次第です(そしてこれも\SpecialChar LyX
16276 の哲学です).
16277 \end_layout
16278
16279 \begin_layout Standard
16280
16281 \family sans
16282 スライド
16283 \family default
16284 環境を選択すれば(方法は第
16285 \begin_inset CommandInset ref
16286 LatexCommand ref
16287 reference "sec:スライドの癖"
16288
16289 \end_inset
16290
16291 節参照のこと),\SpecialChar LyX
16292 は新規スライドを開始します.この環境ないし「疑似環境」のラベルは,鮮やかな青で「新規スライド:」と表示されます.この環境の後のテキスト環境や段落
16293 環境は,すべて新規スライドに入ります.簡単ですよね.
16294 \end_layout
16295
16296 \begin_layout Standard
16297 Slidesは,おそらく\SpecialChar LyX
16298 の中で強制的に改頁をしなくてはならない唯一のクラスです(これは
16299 \family sans
16300 段落レイアウト
16301 \family default
16302 ダイアログで指定できます).実際,一つのスライドの内容を入力し終わったら,改頁したくなるはずです.仮に一つのスライドに物理的に入りきらない文章を入力したとすると
16303 ,入りきらない部分は,次の新規スライドにまわされます.しかしながら,入りきらない部分のスライドにはページ番号が付きませんので,こうするのはお勧めしません.その上
16304 ,一枚に収まらないスライドでは,
16305 \family sans
16306 オーバーレイ
16307 \family default
16308 を使用すると干渉する恐れがあります.
16309 \end_layout
16310
16311 \begin_layout Standard
16312
16313 \family sans
16314 オーバーレイ
16315 \family default
16316 環境と
16317 \family sans
16318 注釈
16319 \family default
16320 環境も,
16321 \family sans
16322 スライド
16323 \family default
16324 環境と同様の動作を示します.これらは,青の代わりに鮮やかなマゼンタで,それぞれ「
16325 \noun on
16326 新規オーバーレイ
16327 \noun default
16328 :」ないし「
16329 \noun on
16330 新規注釈:
16331 \noun default
16332 」というラベルを表示します.ラベルのフォントも,3つの環境でそれぞれ異なるものが使用されます.
16333 \end_layout
16334
16335 \begin_layout Standard
16336
16337 \family sans
16338 スライド
16339 \family default
16340 と同様に,
16341 \family sans
16342 オーバーレイ
16343 \family default
16344
16345 \family sans
16346 注釈
16347 \family default
16348 の内容が,一つのスライドないしページに物理的に収まりきらない場合には,余分は新規スライドに回されます.この場合には,
16349 \family sans
16350 注釈
16351 \family default
16352
16353 \family sans
16354 オーバーレイ
16355 \family default
16356 の本来の目的が達せられなくなりますので,ここでもこのような状態は避けるべきでしょう.
16357 \end_layout
16358
16359 \begin_layout Subsubsection
16360
16361 \family sans
16362 スライドでオーバーレイを使用する
16363 \end_layout
16364
16365 \begin_layout Standard
16366
16367 \family sans
16368 オーバーレイ
16369 \family default
16370 の背後にある考え方は,別のスライドの上にスライドを載せようとするものです.メインの
16371 \family sans
16372 スライド
16373 \family default
16374 に図があるとき,関連した文章を表示する前に,図について議論を進めたいと思うことがあるかもしれません.これを行うひとつの方法は,
16375 \family sans
16376 スライド
16377 \family default
16378 で後に表示したい部分に黒い紙の蓋を貼り付けてしまうことですが,この方法は,たとえばグラフを他のグラフに重ねたい場合などには,うまく行きません.この場合には,二つ
16379 のグラフを揃えるために,重ねる二つのスライドを,喋りながら手探りで揃えなくてはなりません.これらのような場合には,
16380 \family sans
16381 オーバーレイ
16382 \family default
16383 環境を使えば,もっと楽になります.
16384 \end_layout
16385
16386 \begin_layout Standard
16387
16388 \family sans
16389 オーバーレイ
16390 \family default
16391 は,「親」
16392 \family sans
16393 スライド
16394 \family default
16395 のページ番号を引継ぎ,その後に「
16396 \family typewriter
16397 -a
16398 \family default
16399 」を付け加えます
16400 \begin_inset Foot
16401 status collapsed
16402
16403 \begin_layout Plain Layout
16404 想像できるように,複数のオーバーレイがあれば,「
16405 \family typewriter
16406 -a
16407 \family default
16408 」「
16409 \family typewriter
16410 -b
16411 \family default
16412 」「
16413 \family typewriter
16414 -c
16415 \family default
16416 」などが親スライドのページ番号に付け加えられます.
16417 \end_layout
16418
16419 \end_inset
16420
16421 .当然のことながら,
16422 \family sans
16423 スライド
16424 \family default
16425
16426 \family sans
16427 オーバーレイ
16428 \family default
16429 の内容は両方とも,1枚のスライドに物理的に収まるようになっていなければなりません.
16430 \family sans
16431 オーバーレイ
16432 \family default
16433
16434 \family sans
16435 スライド
16436 \family default
16437 の「一部」であると考えるのがよいでしょう.\SpecialChar LyX
16438 では,
16439 \family sans
16440 オーバーレイ
16441 \family default
16442 のラベルを
16443 \family sans
16444 スライド
16445 \family default
16446 のラベルよりも下げることで,このことを視覚的に表しています.また,印刷可能な出力を生成すると,
16447 \family sans
16448 オーバーレイ
16449 \family default
16450 と親
16451 \family sans
16452 スライド
16453 \family default
16454 両方の四隅に,揃えマーカーがあることに気づかれるはずです.これは,2枚のスライドを物理的に重ね合わせるための補助となるものです.
16455 \end_layout
16456
16457 \begin_layout Standard
16458 2つのスライドをオーバーレイさせる際の大きな問題は,2枚のスライドの内容を揃えることです.2枚目のスライドのグラフには,どれだけの余白を残しておくべきなのでしょ
16459 うか?さらにややこしく,2枚目のスライドにグラフと文章を入れたいときに,その間に割り込んでしまうような文章がメインスライドにある場合には,どうでしょうか?正しい
16460 寸法の垂直スペースを挿入してみることもできるでしょう.しかし,もっと良い方法として,
16461 \family sans
16462 不可視文
16463 \family default
16464
16465 \family sans
16466 可視文
16467 \family default
16468 を使用する方法があります.
16469 \end_layout
16470
16471 \begin_layout Standard
16472 これらの名前が意味するとおり,
16473 \family sans
16474 不可視文
16475 \family default
16476
16477 \family sans
16478 可視文
16479 \family default
16480 は,それぞれ続く文章すべてを見えなくしたり見えるようにしたりするコマンド型の段落環境です.しかしながら,第
16481 \begin_inset CommandInset ref
16482 LatexCommand ref
16483 reference "sec:スライドの癖"
16484
16485 \end_inset
16486
16487 節で述べたように,この2つの環境の
16488 \emph on
16489
16490 \emph default
16491 には何も置くことができません.
16492 \family sans
16493 不可視文
16494 \family default
16495 を作成すると,「<以下不可視文>」と書かれた水色のラベルが,ページに中央揃えで表示されます.このラベルに続く段落は,それが置かれるべき
16496 \family sans
16497 スライド
16498 \family default
16499 (あるいは
16500 \family sans
16501 オーバーレイ
16502 \family default
16503 ;どちらでも同じことです)部分に,代わりに空白の部分が置かれます.
16504 \end_layout
16505
16506 \begin_layout Standard
16507
16508 \family sans
16509 可視文
16510 \family default
16511 の場合には,中央揃えのラベルは,鮮やかな緑の「<以下可視文>」となります.このラベル以降の段落は,通常通りの挙動を示します.新規の
16512 \family sans
16513 スライド
16514 \family default
16515
16516 \family sans
16517 オーバーレイ
16518 \family default
16519
16520 \family sans
16521 注釈
16522 \family default
16523 を開始すると,
16524 \family sans
16525 不可視文
16526 \family default
16527 は自動的に終了されることに注意してください.したがって,
16528 \family sans
16529 スライド
16530 \family default
16531 の終わりでは,
16532 \family sans
16533 可視文
16534 \family default
16535 を使用する必要はありません.
16536 \end_layout
16537
16538 \begin_layout Standard
16539 ここまでで,
16540 \family sans
16541 スライド
16542 \family default
16543
16544 \family sans
16545 オーバーレイ
16546 \family default
16547 上で
16548 \family sans
16549 不可視文
16550 \family default
16551
16552 \family sans
16553 可視文
16554 \family default
16555 を適切に使用して,スライドをオーバーレイさせる方法が明らかになったことと思います.
16556 \end_layout
16557
16558 \begin_layout Enumerate
16559 メインのスライドか
16560 \family sans
16561 オーバーレイ
16562 \family default
16563 かに関わらず,スライド上に現れるすべてを含んだ
16564 \family sans
16565 スライド
16566 \family default
16567 を作成します.
16568 \end_layout
16569
16570 \begin_layout Enumerate
16571
16572 \family sans
16573 オーバーレイ
16574 \family default
16575 のみに表示するすべての図や段落の前に,
16576 \family sans
16577 不可視文
16578 \family default
16579 環境を挿入し,必要ならば,
16580 \family sans
16581 オーバーレイ
16582 \family default
16583 のみの文章の後に
16584 \family sans
16585 可視文
16586 \family default
16587 環境を挿入します.
16588 \end_layout
16589
16590 \begin_layout Enumerate
16591
16592 \family sans
16593 スライド
16594 \family default
16595 の直後から,
16596 \family sans
16597 オーバーレイ
16598 \family default
16599 を開始します.
16600 \end_layout
16601
16602 \begin_layout Enumerate
16603 この
16604 \family sans
16605 スライド
16606 \family default
16607 の内容を
16608 \family sans
16609 オーバーレイ
16610 \family default
16611 にコピーします.
16612 \end_layout
16613
16614 \begin_layout Enumerate
16615
16616 \family sans
16617 オーバーレイ
16618 \family default
16619 内部の
16620 \family sans
16621 不可視文
16622 \family default
16623 行をすべて
16624 \family sans
16625 不可視文
16626 \family default
16627 に変更し,
16628 \family sans
16629 可視文
16630 \family default
16631
16632 \family sans
16633 不可視文
16634 \family default
16635 に変更します.
16636 \end_layout
16637
16638 \begin_layout Standard
16639 これだけです.これで
16640 \family sans
16641 オーバーレイ
16642 \family default
16643 ができあがりました.
16644 \end_layout
16645
16646 \begin_layout Standard
16647 \SpecialChar LyX
16648  
16649 \family sans
16650 slides
16651 \family default
16652 クラスをデザインする上で,ひとつ残された問題があります.段落途中の文章を不可視にしたり,不可視段落の途中の文章を再度可視にしたりすることはできないのです.これを
16653 実現するためには,\SpecialChar LaTeX
16654 コードを埋め込む必要があります
16655 \begin_inset Foot
16656 status collapsed
16657
16658 \begin_layout Plain Layout
16659 このコマンドは,
16660 \end_layout
16661
16662 \begin_layout Itemize
16663
16664 \family typewriter
16665 {
16666 \backslash
16667 invisible \SpecialChar ldots
16668  }
16669 \end_layout
16670
16671 \begin_layout Itemize
16672
16673 \family typewriter
16674 {
16675 \backslash
16676 visible \SpecialChar ldots
16677  }
16678 \end_layout
16679
16680 \begin_layout Plain Layout
16681 \SpecialChar ldots
16682 のような形となり,\SpecialChar TeX
16683 としてマークする必要があります.「可視性」を変更したい文章は,波括弧のあいだ(そして
16684 \family typewriter
16685
16686 \backslash
16687 invisible
16688 \family default
16689 ないし
16690 \family typewriter
16691
16692 \backslash
16693 visible
16694 \family default
16695 コマンドの後ろ)に入れます.\SpecialChar TeX
16696 としてマークする方法がわからない場合は,
16697 \emph on
16698 ユーザーの手引き
16699 \emph default
16700 をご参照ください.
16701 \end_layout
16702
16703 \end_inset
16704
16705
16706 \end_layout
16707
16708 \begin_layout Subsubsection
16709
16710 \family sans
16711 スライドで注釈を使う
16712 \family default
16713
16714 \begin_inset CommandInset label
16715 LatexCommand label
16716 name "sec:スライド注釈"
16717
16718 \end_inset
16719
16720
16721 \end_layout
16722
16723 \begin_layout Standard
16724
16725 \family sans
16726 オーバーレイ
16727 \family default
16728 と同様,
16729 \family sans
16730 注釈
16731 \family default
16732 も「親」
16733 \family sans
16734 スライド
16735 \family default
16736 に関連付けられています.ここでも\SpecialChar LyX
16737
16738 \family sans
16739 スライド
16740 \family default
16741 クラスは視覚的な効果を与えています.
16742 \family sans
16743 注釈
16744 \family default
16745 のラベルは
16746 \family sans
16747 スライド
16748 \family default
16749 よりも短く(オーバーレイのラベルよりも長いですが),
16750 \family sans
16751 オーバーレイ
16752 \family default
16753 のラベルと同様,派手な赤紫色です.加えて,印刷した
16754 \family sans
16755 注釈
16756 \family default
16757 には,「親」スライドのページ番号に「
16758 \family typewriter
16759 -
16760 \family default
16761 1」「
16762 \family typewriter
16763 -
16764 \family default
16765 2」「
16766 \family typewriter
16767 -
16768 \family default
16769 3」等を付けたページ番号が付けられます.1つの
16770 \family sans
16771 スライド
16772 \family default
16773 には,複数の
16774 \family sans
16775 注釈
16776 \family default
16777 を関連付けることができるので,
16778 \family sans
16779 スライド
16780 \family default
16781
16782 \family sans
16783 オーバーレイ
16784 \family default
16785 と同じように,長い注釈は,1枚の紙に収まるように分割したいと思われるに違いありません.
16786 \end_layout
16787
16788 \begin_layout Standard
16789
16790 \family sans
16791 注釈
16792 \family default
16793 の目的は明らかです.
16794 \family sans
16795 スライド
16796 \family default
16797 に関して付け加えたいことを書き留めておくことです.特定の
16798 \family sans
16799 スライド
16800 \family default
16801 についての覚書として使うこともできます.後者の場合には,タイムマーカを利用したいこともあるかもしれません.現在のところ,\SpecialChar LyX
16802
16803 \family sans
16804 スライド
16805 \family default
16806 クラスは,
16807 \noun on
16808 Sli
16809 \noun default
16810 \SpecialChar TeX
16811 の機能であるタイムマーカを「ネイティブには」サポートしていません.したがって,\SpecialChar LaTeX
16812 コードを使用することに頼らなくてはなりません.
16813 \end_layout
16814
16815 \begin_layout Standard
16816 タイムマーカを使用するには,クラスオプション「
16817 \family typewriter
16818 clock
16819 \family default
16820 」を追加指定する必要があります(第
16821 \begin_inset CommandInset ref
16822 LatexCommand ref
16823 reference "sec:slidesetup"
16824
16825 \end_inset
16826
16827 節参照).このオプションはタイムマーカ機能を有効にして,生成したすべての
16828 \family sans
16829 注釈
16830 \family default
16831 の左下にタイムマーカを表示します.タイムマーカに表示するものを設定するには,\SpecialChar LaTeX
16832 コマンド「
16833 \family typewriter
16834
16835 \backslash
16836 settime{}
16837 \family default
16838 」および「
16839 \family typewriter
16840
16841 \backslash
16842 addtime{}
16843 \family default
16844 」を使用します.両コマンドは,秒で測った時間を引数にとります.「
16845 \family typewriter
16846
16847 \backslash
16848 settime{}
16849 \family default
16850 」は,タイムマーカを特定の時間に設定し,「
16851 \family typewriter
16852
16853 \backslash
16854 addtime{}
16855 \family default
16856 」は,タイムマーカを指定した分だけ進めます.このようにタイムマーカと
16857 \family sans
16858 注釈
16859 \family default
16860 を用いれば,特定の
16861 \family sans
16862 スライド
16863 \family default
16864 にどれだけの時間をかけるのか忘れないでいられます.
16865 \end_layout
16866
16867 \begin_layout Standard
16868 最後に,説明しておくべき機能がもう一つあります.当然ながら,
16869 \family sans
16870 スライド
16871 \family default
16872
16873 \family sans
16874 オーバーレイ
16875 \family default
16876 はすべてスライドに,
16877 \family sans
16878 注釈
16879 \family default
16880 はすべて普通の紙に印刷したいはずです.しかしながら,
16881 \family sans
16882 注釈
16883 \family default
16884 は関連付けられた親スライドの直後に
16885 \emph on
16886 来なくてはなりません
16887 \emph default
16888 .ユーザーはどうしたら良いのでしょうか.
16889 \end_layout
16890
16891 \begin_layout Standard
16892 幸いなことに,どれを印刷するか選択することを可能にする\SpecialChar LaTeX
16893 コマンドが,2種類あります.どちらも文書のプリアンブルに記述されなくてはなりません.コマンド「
16894 \family typewriter
16895
16896 \backslash
16897 onlyslides{
16898 \backslash
16899 slides}
16900 \family default
16901 」は,出力に
16902 \family sans
16903 スライド
16904 \family default
16905
16906 \family sans
16907 オーバーレイ
16908 \family default
16909 のみが含まれるようにするものです.同様に,「
16910 \family typewriter
16911
16912 \backslash
16913 onlynotes{
16914 \backslash
16915 notes}
16916 \family default
16917 」は
16918 \family sans
16919 注釈
16920 \family default
16921 以外の出力をすべて抑制します.私のアドバイスとしては,両コマンドをプリアンブルに書いておいて,最初は両方ともコメントアウトしておくと良いでしょう.そうすれば,執
16922 筆時にはプレゼンテーション全体をプレビューすることができます.いったん書き終えたならば,二つのうち一方のコメントを外して,印刷したい方を選ぶことができます.私な
16923 らば,まず
16924 \family typewriter
16925
16926 \backslash
16927 onlyslides{
16928 \backslash
16929 slides}
16930 \family default
16931 のコメントを外して,現ファイル名に「*
16932 \family typewriter
16933 -slides
16934 \family default
16935 」を付けた新たなファイルに出力を行ない,今度はこの行をふたたびコメントアウトするとともに,「
16936 \family typewriter
16937
16938 \backslash
16939 onlynotes{
16940 \backslash
16941 notes
16942 \family default
16943 }」のコメントを外して,これを「
16944 \family typewriter
16945 *-notes.ps
16946 \family default
16947 」というファイルに出力します.そうすれば,必要に応じて,スライドまたは通常の紙をプリンタにセットし,一方のファイルをプリンタに送ればよいのです.
16948 \end_layout
16949
16950 \begin_layout Standard
16951
16952 \family typewriter
16953
16954 \backslash
16955 onlyslides{}
16956 \family default
16957 」および「
16958 \family typewriter
16959
16960 \backslash
16961 onlynotes{}
16962 \family default
16963 」コマンドには,他の引数を与えることもできます.詳しくは,\SpecialChar LaTeX
16964 の良書をご覧ください.
16965 \end_layout
16966
16967 \begin_layout Subsection
16968
16969 \family sans
16970 slides
16971 \family default
16972 クラスのひな型ファイル
16973 \end_layout
16974
16975 \begin_layout Standard
16976
16977 \family sans
16978 slides
16979 \family default
16980 クラス用のひな型ファイルとして「
16981 \family typewriter
16982 slides.lyx
16983 \family default
16984 」が提供されています.これを使用するには,新しいプレゼンテーションを作り始める際に,
16985 \family sans
16986 ファイル\SpecialChar menuseparator
16987 新規(ひな型使用)
16988 \family default
16989 メニューを選択してください.すると新規ファイルには,
16990 \family sans
16991 スライド
16992 \family default
16993
16994 \family sans
16995 オーバーレイ
16996 \family default
16997
16998 \family sans
16999 注釈
17000 \family default
17001 の組が,例として含まれており,
17002 \family sans
17003 スライド
17004 \family default
17005
17006 \family sans
17007 オーバーレイ
17008 \family default
17009 には,さらに
17010 \family sans
17011 不可視文
17012 \family default
17013
17014 \family sans
17015 可視文
17016 \family default
17017 の使用例も含まれています.また,プリアンブルには,次のように書き込まれています.
17018 \end_layout
17019
17020 \begin_layout LyX-Code
17021 % Uncomment to print out only slides and overlays
17022 \end_layout
17023
17024 \begin_layout LyX-Code
17025 %
17026 \end_layout
17027
17028 \begin_layout LyX-Code
17029 %
17030 \backslash
17031 onlyslides{
17032 \backslash
17033 slides}
17034 \begin_inset Newline newline
17035 \end_inset
17036
17037  
17038 \end_layout
17039
17040 \begin_layout LyX-Code
17041 % Uncomment to print out only notes
17042 \end_layout
17043
17044 \begin_layout LyX-Code
17045 %
17046 \end_layout
17047
17048 \begin_layout LyX-Code
17049 %
17050 \backslash
17051 onlynotes{
17052 \backslash
17053 notes}
17054 \end_layout
17055
17056 \begin_layout Standard
17057 最後に,私はこの文書クラスを,\SpecialChar LaTeX2e
17058 の組み込みクラスである「
17059 \noun on
17060 Sli\SpecialChar TeX
17061
17062 \noun default
17063 エミュレーション」クラスをサポートする目的で作成しました.私も\SpecialChar LyX
17064 チームの他のメンバーも,この組み込みスライドクラスを使用することに賛成したり反対したりするものでは
17065 ありません.これは単に,ユーザーがこれを使いたかったり必要としたりしたときのためにあるものです.プレゼンテーションを作成するためには,
17066 \family sans
17067 Foils
17068 \family default
17069 クラス(第
17070 \begin_inset CommandInset ref
17071 LatexCommand ref
17072 reference "sec:foiltex"
17073
17074 \end_inset
17075
17076 節参照)や「
17077 \family typewriter
17078 seminar
17079 \family default
17080 」パッケージ(一部の\SpecialChar TeX
17081 頒布版に含まれています)のように,他の\SpecialChar LaTeX2e
17082 クラスも存在します.私はこれらについては知らないのですが,他にどのようなことができるのか試してみてくだ
17083 さい.
17084 \end_layout
17085
17086 \begin_layout Chapter
17087 ソフトウェアを追加する必要がある \SpecialChar LyX
17088 機能
17089 \end_layout
17090
17091 \begin_layout Section
17092 \SpecialChar TeX
17093 のチェック
17094 \end_layout
17095
17096 \begin_layout Standard
17097
17098 \noun on
17099 Asger Alstrup
17100 \noun default
17101
17102 \end_layout
17103
17104 \begin_layout Subsection
17105 はじめに
17106 \end_layout
17107
17108 \begin_layout Standard
17109
17110 \family typewriter
17111 chktex
17112 \family default
17113 プログラムが導入されていると
17114 \begin_inset Foot
17115 status collapsed
17116
17117 \begin_layout Plain Layout
17118 \SpecialChar LaTeX
17119 頒布版としてMiK\SpecialChar TeX
17120 を使用している場合には,
17121 \family typewriter
17122 chktex
17123 \family default
17124 はまだ利用可能ではありません.
17125 \end_layout
17126
17127 \end_inset
17128
17129
17130 \family sans
17131 ツール
17132 \family default
17133 メニューの下に,
17134 \family sans
17135 \SpecialChar TeX
17136 構文チェック
17137 \family default
17138 という項目が表示されます.
17139 \family typewriter
17140 chktex
17141 \family default
17142 は,CTAN
17143 \begin_inset Newline newline
17144 \end_inset
17145
17146
17147 \begin_inset CommandInset href
17148 LatexCommand href
17149 target "https://www.ctan.org/tex-archive/help/Catalogue/entries/chktex.html"
17150 literal "false"
17151
17152 \end_inset
17153
17154 から入手することができます.
17155 \end_layout
17156
17157 \begin_layout Standard
17158
17159 \family sans
17160 Chk\SpecialChar TeX
17161
17162 \family default
17163 パッケージは,\SpecialChar LaTeX
17164 の構成物には直感的でないものもあり,すぐ忘れてしまいがちであるのに不満を感じた
17165 \begin_inset Flex Noun
17166 status collapsed
17167
17168 \begin_layout Plain Layout
17169 Jens T.
17170  Berger Thielemann
17171 \end_layout
17172
17173 \end_inset
17174
17175 が書いたプログラムです.このプログラムは,\SpecialChar LaTeX
17176 ファイルを走査して,ファイルの整合性をチェックし,犯しがちな誤りを見つけ出します.別の技術用語では,LaTeXにおける
17177 \family typewriter
17178 lint
17179 \family default
17180 であるとも言えます.
17181 \end_layout
17182
17183 \begin_layout Standard
17184 さて,\SpecialChar LyX
17185 はつねに正しい\SpecialChar LaTeX
17186 ファイルを生成するはずなのに,文法チェッカーは\SpecialChar LyX
17187 で何をするというのでしょうか.答えは簡単です.
17188 \family typewriter
17189 lint
17190 \family default
17191 がC言語プログラムの
17192 \emph on
17193 文法
17194 \emph default
17195 をチェックするだけでなく,打ち間違いによる
17196 \emph on
17197 意味上の
17198 \emph default
17199 チェックも行うように,
17200 \family sans
17201 Chk\SpecialChar TeX
17202
17203 \family default
17204 は,文法エラーの他に犯しがちな
17205 \emph on
17206 写植上の
17207 \emph default
17208 誤りも検出してくれるからです.
17209 \family sans
17210 Chk\SpecialChar TeX
17211
17212 \family default
17213 は,以下のような誤りを検出することができます.
17214 \end_layout
17215
17216 \begin_layout Itemize
17217 省略記号の検出:
17218 \begin_inset Newline newline
17219 \end_inset
17220
17221 ...ではなく\SpecialChar ldots
17222 を使わなくてはなりません
17223 \end_layout
17224
17225 \begin_layout Itemize
17226 括弧の前後にスペースを置かない:
17227 \begin_inset Newline newline
17228 \end_inset
17229
17230 ( wrong spacing ):誤った空白
17231 \end_layout
17232
17233 \begin_layout Itemize
17234 よく使われる省略形の後ろは通常スペースにする:
17235 \begin_inset Newline newline
17236 \end_inset
17237
17238 e.
17239 \begin_inset space \thinspace{}
17240 \end_inset
17241
17242 g.
17243 \begin_inset space \space{}
17244 \end_inset
17245
17246 is too wide spacing.:広すぎる空白
17247 \end_layout
17248
17249 \begin_layout Itemize
17250 直前の文章が大文字で終わっているときに,文末スペースに直す:
17251 \begin_inset Newline newline
17252 \end_inset
17253
17254 This is a TEST.
17255  And this is wrong spacing.:誤った空白
17256 \end_layout
17257
17258 \begin_layout Itemize
17259 ラベルや類似コマンドの前のスペース:
17260 \begin_inset Newline newline
17261 \end_inset
17262
17263 ラベルが別のページに行ってしまわないように,ラベルは文章に接していなくてはなりません. 
17264 \begin_inset CommandInset label
17265 LatexCommand label
17266 name "sec:chktex"
17267
17268 \end_inset
17269
17270  
17271 \begin_inset Foot
17272 status collapsed
17273
17274 \begin_layout Plain Layout
17275 この脚注は,正しくないページに行ってしまう恐れがあります.
17276 \end_layout
17277
17278 \end_inset
17279
17280  このラベルは離れすぎです.
17281 \end_layout
17282
17283 \begin_layout Itemize
17284 参照の前にハードスペースではなくスペース:
17285 \begin_inset Newline newline
17286 \end_inset
17287
17288 運が悪ければ,参照文字列と参照番号のあいだでちょうど改行されてしまい,残念な結果となります.第
17289 \begin_inset CommandInset ref
17290 LatexCommand ref
17291 reference "sec:chktex"
17292
17293 \end_inset
17294
17295 節をご覧ください.
17296 \end_layout
17297
17298 \begin_layout Itemize
17299 数字のあいだで
17300 \begin_inset Formula $\times$
17301 \end_inset
17302
17303 ではなく「x」が使われている:
17304 \begin_inset Newline newline
17305 \end_inset
17306
17307 2x2は,
17308 \begin_inset Formula $2\times2$
17309 \end_inset
17310
17311 よりも安っぽく見えます.
17312 \end_layout
17313
17314 \begin_layout Standard
17315 などなど\SpecialChar ldots
17316
17317 \family sans
17318 Chk\SpecialChar TeX
17319
17320 \family default
17321 は,印刷する前に文書を「仕上げる」上で,たいへん価値のあるツールです.必須のスペルチェックを終えた直後,組版の微調整をする前には,これを実行するべきです.
17322 \end_layout
17323
17324 \begin_layout Subsection
17325 使いかた
17326 \end_layout
17327
17328 \begin_layout Standard
17329 このプログラムを導入したならば,使うのは
17330 \family sans
17331 ツール\SpecialChar menuseparator
17332 \SpecialChar TeX
17333 構文チェック
17334 \family default
17335 を選択するだけなので簡単です.こうすると,\SpecialChar LyX
17336 は使用中の文書の\SpecialChar LaTeX
17337 ファイルを生成して,
17338 \family sans
17339 Chk\SpecialChar TeX
17340
17341 \family default
17342 を起動し,当該ファイルを検査しますが,
17343 \family sans
17344 Chk\SpecialChar TeX
17345
17346 \family default
17347 から警告があった場合には,それを含んだ「エラーボックス」を\SpecialChar LyX
17348 中に挿入します.警告は,誤りのある箇所のそばに置かれるので,メニュー項目の
17349 \family sans
17350 移動\SpecialChar menuseparator
17351 エラー
17352 \family default
17353 を選択するか,既定の
17354 \family typewriter
17355 cua
17356 \family default
17357
17358 \begin_inset Flex Ruby
17359 status collapsed
17360
17361 \begin_layout Plain Layout
17362
17363 \begin_inset Argument post:1
17364 status collapsed
17365
17366 \begin_layout Plain Layout
17367 キー
17368 \end_layout
17369
17370 \end_inset
17371
17372
17373 \end_layout
17374
17375 \end_inset
17376
17377 設定ファイルならば
17378 \begin_inset Flex Ruby
17379 status collapsed
17380
17381 \begin_layout Plain Layout
17382
17383 \family roman
17384 \series medium
17385 \shape up
17386 \size normal
17387 \emph off
17388 \bar no
17389 \noun off
17390 \color none
17391 捷径
17392 \family default
17393 \series default
17394 \shape default
17395 \size default
17396 \emph default
17397 \bar default
17398 \noun default
17399 \color inherit
17400
17401 \begin_inset Argument post:1
17402 status collapsed
17403
17404 \begin_layout Plain Layout
17405 ショートカット
17406 \end_layout
17407
17408 \end_inset
17409
17410
17411 \end_layout
17412
17413 \end_inset
17414
17415
17416 \family sans
17417 C-g
17418 \family default
17419 を押せば,簡単に警告の箇所を見出すことができます.エラーボックスを開けるには,マウスでボックスをクリックするか,
17420 \family typewriter
17421 cua
17422 \family default
17423 鍵設定の場合には捷径鍵
17424 \family sans
17425 C-i
17426 \family default
17427
17428 \family typewriter
17429 emacs
17430 \family default
17431 鍵設定の場合は捷径鍵
17432 \family sans
17433 C-o
17434 \family default
17435 を押します.警告を読み,それが誤りを示していれば修正します.警告が何を意味しているか理解しにくい場合には,無視しても問題はありません.画面上の文書と,
17436 \family sans
17437 Chk\SpecialChar TeX
17438
17439 \family default
17440 を起動する際に行なわれる実際の技術的な操作のあいだには,隠された層があり,この隔たりのせいで,一部の警告が不可解なものになったり,明らかに馬鹿げたものになる場合
17441 があるのです.
17442 \end_layout
17443
17444 \begin_layout Standard
17445 本文書自体,この機能を確認する良い材料になりますので,実行してみてください.すると,かなりの量の警告が出るはずです.これはコンピュータが敏感すぎるせいですので,
17446 警告のほとんどは実際には警告に値しません.
17447 \end_layout
17448
17449 \begin_layout Subsection
17450 微調整のしかた
17451 \end_layout
17452
17453 \begin_layout Standard
17454 場合によっては,
17455 \family sans
17456 Chk\SpecialChar TeX
17457
17458 \family default
17459 は,あなたが望むよりも煩すぎると思うかもしれません.そのような場合には,必要と思うまで
17460 \family sans
17461 Chk\SpecialChar TeX
17462
17463 \family default
17464 を無効にするか,あなたにもう少し合うように
17465 \family sans
17466 Chk\SpecialChar TeX
17467
17468 \family default
17469 を調整することができます.
17470 \end_layout
17471
17472 \begin_layout Standard
17473
17474 \family sans
17475 Chk\SpecialChar TeX
17476
17477 \family default
17478 は調整や拡張がひじょうに柔軟なのですが,\SpecialChar LyX
17479 における
17480 \family sans
17481 Chk\SpecialChar TeX
17482
17483 \family default
17484 関連の問題が,それですべて解決すると思うべきではありません.\SpecialChar LyX
17485 は,
17486 \family sans
17487 Chk\SpecialChar TeX
17488
17489 \family default
17490 出力
17491 \begin_inset Foot
17492 status collapsed
17493
17494 \begin_layout Plain Layout
17495
17496 \family sans
17497 chktex
17498 \family default
17499 の実際の出力は,
17500 \family sans
17501 chktex
17502 \family default
17503 を実行した直後に
17504 \family sans
17505 文書\SpecialChar menuseparator
17506 \SpecialChar LaTeX
17507 ログ
17508 \family default
17509 を使えば見ることができます.
17510 \end_layout
17511
17512 \end_inset
17513
17514 から得た行番号と内部構造を一致させるため,やや特殊な\SpecialChar LaTeX
17515 ファイルを生成しなくてはならないので,警告の一部は正しく表示されていないように見えるでしょう.これに対処する
17516 ためには,以下の2つの方法があります.
17517 \end_layout
17518
17519 \begin_layout Itemize
17520
17521 \family sans
17522 \begin_inset Flex MenuItem
17523 status collapsed
17524
17525 \begin_layout Plain Layout
17526
17527 \family sans
17528 ツール\SpecialChar menuseparator
17529 設定\SpecialChar menuseparator
17530 出力\SpecialChar menuseparator
17531 \SpecialChar LaTeX
17532 \SpecialChar menuseparator
17533 Check\SpecialChar TeX
17534 コマンド
17535 \end_layout
17536
17537 \end_inset
17538
17539
17540 \family default
17541 中の
17542 \family sans
17543 Chk\SpecialChar TeX
17544
17545 \family default
17546 起動コマンドラインを調整するか,グローバルな
17547 \family sans
17548 Chk\SpecialChar TeX
17549
17550 \family default
17551 の設定ファイル(通常は
17552 \begin_inset Flex Code
17553 status collapsed
17554
17555 \begin_layout Plain Layout
17556 chktexrc
17557 \end_layout
17558
17559 \end_inset
17560
17561 ファイル)を調整します.コマンドラインからどの警告を有効・無効にできるかは以下をご覧ください.
17562 \end_layout
17563
17564 \begin_layout Itemize
17565
17566 \family sans
17567 ファイル\SpecialChar menuseparator
17568 書き出し\SpecialChar menuseparator
17569 \SpecialChar LaTeX
17570
17571 \family default
17572 を使って文書を\SpecialChar LaTeX
17573 ファイルに変換し,そのファイルに対して
17574 \family typewriter
17575 chktex
17576 \family default
17577 を手動で実行します.このようにすると,\SpecialChar LyX
17578 文書中の対応箇所を見つけるのがやや面倒ですが,少し我慢すれば見つけることができます.
17579 \end_layout
17580
17581 \begin_layout Standard
17582 以下は,
17583 \family sans
17584 設定
17585 \family default
17586 で有効化・無効化できる警告メッセージです.警告を無効にするには
17587 \family typewriter
17588 -n#
17589 \family default
17590 ,有効にするには
17591 \family typewriter
17592 -w#
17593 \family default
17594 を用います.イタリック表示の項目は,既定で無効となっています.既定値は "
17595 \family typewriter
17596 chktex -n1 -n3 -n6 -n9 -n22 -n25 -n30 -n38
17597 \family default
17598 "です.
17599 \end_layout
17600
17601 \begin_layout Standard
17602 \SpecialChar LyX
17603 は,
17604 \family typewriter
17605 chktex
17606 \family default
17607 と通信するために,他のコマンドラインパラメータを特定の方法で使用しているため,メッセージを有効化・無効化する以外のオプションを使うべきではありません.
17608 \end_layout
17609
17610 \begin_layout Enumerate
17611
17612 \size small
17613 \emph on
17614 Command terminated with space.
17615 \end_layout
17616
17617 \begin_layout Enumerate
17618
17619 \size small
17620 Non-breaking space (
17621 \begin_inset Quotes eld
17622 \end_inset
17623
17624
17625 \family typewriter
17626 ~
17627 \family default
17628
17629 \begin_inset Quotes erd
17630 \end_inset
17631
17632 ) should have been used.
17633 \end_layout
17634
17635 \begin_layout Enumerate
17636
17637 \size small
17638 \emph on
17639 You should enclose the previous parenthesis with 
17640 \begin_inset Quotes eld
17641 \end_inset
17642
17643
17644 \family typewriter
17645 {}
17646 \family default
17647
17648 \begin_inset Quotes erd
17649 \end_inset
17650
17651 .
17652 \end_layout
17653
17654 \begin_layout Enumerate
17655
17656 \size small
17657 Italic correction (
17658 \begin_inset Quotes eld
17659 \end_inset
17660
17661
17662 \family typewriter
17663
17664 \backslash
17665 /
17666 \family default
17667
17668 \begin_inset Quotes erd
17669 \end_inset
17670
17671 ) found in non-italic buffer.
17672 \end_layout
17673
17674 \begin_layout Enumerate
17675
17676 \size small
17677 Italic correction (
17678 \begin_inset Quotes eld
17679 \end_inset
17680
17681
17682 \family typewriter
17683
17684 \backslash
17685 /
17686 \family default
17687
17688 \begin_inset Quotes erd
17689 \end_inset
17690
17691 ) found more than once.
17692 \end_layout
17693
17694 \begin_layout Enumerate
17695
17696 \size small
17697 \emph on
17698 No italic correction (
17699 \begin_inset Quotes eld
17700 \end_inset
17701
17702
17703 \family typewriter
17704
17705 \backslash
17706 /
17707 \family default
17708
17709 \begin_inset Quotes erd
17710 \end_inset
17711
17712 ) found.
17713 \end_layout
17714
17715 \begin_layout Enumerate
17716
17717 \size small
17718 Accent command 
17719 \begin_inset Quotes eld
17720 \end_inset
17721
17722
17723 \family typewriter
17724 cmd
17725 \family default
17726
17727 \begin_inset Quotes erd
17728 \end_inset
17729
17730  needs use of 
17731 \begin_inset Quotes eld
17732 \end_inset
17733
17734
17735 \family typewriter
17736 cmd
17737 \family default
17738
17739 \begin_inset Quotes erd
17740 \end_inset
17741
17742 .
17743 \end_layout
17744
17745 \begin_layout Enumerate
17746
17747 \size small
17748 Wrong length of dash may have been used.
17749 \end_layout
17750
17751 \begin_layout Enumerate
17752
17753 \size small
17754 \emph on
17755 \begin_inset Quotes eld
17756 \end_inset
17757
17758
17759 \family typewriter
17760 %s
17761 \family default
17762
17763 \begin_inset Quotes erd
17764 \end_inset
17765
17766  expected, found 
17767 \begin_inset Quotes eld
17768 \end_inset
17769
17770
17771 \family typewriter
17772 %s
17773 \family default
17774
17775 \begin_inset Quotes erd
17776 \end_inset
17777
17778 .
17779 \end_layout
17780
17781 \begin_layout Enumerate
17782
17783 \size small
17784 Solo 
17785 \begin_inset Quotes eld
17786 \end_inset
17787
17788
17789 \family typewriter
17790 %s
17791 \family default
17792
17793 \begin_inset Quotes erd
17794 \end_inset
17795
17796  found.
17797 \end_layout
17798
17799 \begin_layout Enumerate
17800
17801 \size small
17802 You should use 
17803 \begin_inset Quotes eld
17804 \end_inset
17805
17806
17807 \family typewriter
17808 %s
17809 \family default
17810
17811 \begin_inset Quotes erd
17812 \end_inset
17813
17814  to achieve an ellipsis.
17815 \end_layout
17816
17817 \begin_layout Enumerate
17818
17819 \size small
17820 Inter-word spacing (
17821 \begin_inset Quotes eld
17822 \end_inset
17823
17824
17825 \family typewriter
17826
17827 \backslash
17828
17829 \family default
17830  
17831 \begin_inset Quotes eld
17832 \end_inset
17833
17834 ) should perhaps be used.
17835 \end_layout
17836
17837 \begin_layout Enumerate
17838
17839 \size small
17840 Inter-sentence spacing (
17841 \begin_inset Quotes eld
17842 \end_inset
17843
17844
17845 \family typewriter
17846
17847 \backslash
17848 @
17849 \family default
17850
17851 \begin_inset Quotes erd
17852 \end_inset
17853
17854 ) should perhaps be used.
17855 \end_layout
17856
17857 \begin_layout Enumerate
17858
17859 \size small
17860 Could not find argument for command.
17861 \end_layout
17862
17863 \begin_layout Enumerate
17864
17865 \size small
17866 No match found for 
17867 \begin_inset Quotes eld
17868 \end_inset
17869
17870
17871 \family typewriter
17872 %s
17873 \family default
17874
17875 \begin_inset Quotes erd
17876 \end_inset
17877
17878 .
17879 \end_layout
17880
17881 \begin_layout Enumerate
17882
17883 \size small
17884 Math mode still on at end of \SpecialChar LaTeX
17885  file.
17886 \end_layout
17887
17888 \begin_layout Enumerate
17889
17890 \size small
17891 Number of 
17892 \begin_inset Quotes eld
17893 \end_inset
17894
17895
17896 \family typewriter
17897 char
17898 \family default
17899
17900 \begin_inset Quotes erd
17901 \end_inset
17902
17903  doesn't match the number of 
17904 \begin_inset Quotes eld
17905 \end_inset
17906
17907
17908 \family typewriter
17909 char
17910 \family default
17911
17912 \begin_inset Quotes erd
17913 \end_inset
17914
17915 .
17916 \end_layout
17917
17918 \begin_layout Enumerate
17919
17920 \size small
17921 You should use either 
17922 \family typewriter
17923
17924 \begin_inset Quotes eld
17925 \end_inset
17926
17927
17928 \family default
17929  or 
17930 \family typewriter
17931
17932 \begin_inset Quotes erd
17933 \end_inset
17934
17935
17936 \family default
17937  as an alternative to 
17938 \begin_inset Quotes eld
17939 \end_inset
17940
17941
17942 \family typewriter
17943 "
17944 \family default
17945
17946 \begin_inset Quotes erd
17947 \end_inset
17948
17949 .
17950 \end_layout
17951
17952 \begin_layout Enumerate
17953
17954 \size small
17955 You should use "
17956 \family typewriter
17957 '
17958 \family default
17959 " (ASCII 39) instead of "" (ASCII 180).
17960 \end_layout
17961
17962 \begin_layout Enumerate
17963
17964 \size small
17965 User-specified pattern found.
17966 \end_layout
17967
17968 \begin_layout Enumerate
17969
17970 \size small
17971 This command might not be intended.
17972 \end_layout
17973
17974 \begin_layout Enumerate
17975
17976 \size small
17977 \emph on
17978 Comment displayed.
17979 \end_layout
17980
17981 \begin_layout Enumerate
17982
17983 \size small
17984 Either 
17985 \family typewriter
17986 ''
17987 \backslash
17988 ,'
17989 \family default
17990  or 
17991 \family typewriter
17992 '
17993 \backslash
17994 ,''
17995 \family default
17996  will look better.
17997 \end_layout
17998
17999 \begin_layout Enumerate
18000
18001 \size small
18002 Delete this space to maintain correct page references.
18003 \end_layout
18004
18005 \begin_layout Enumerate
18006
18007 \size small
18008 \emph on
18009 You might wish to put this between a pair of 
18010 \begin_inset Quotes eld
18011 \end_inset
18012
18013
18014 \family typewriter
18015 {}
18016 \family default
18017
18018 \begin_inset Quotes erd
18019 \end_inset
18020
18021 .
18022 \end_layout
18023
18024 \begin_layout Enumerate
18025
18026 \size small
18027 You ought to remove spaces in front of punctuation.
18028 \end_layout
18029
18030 \begin_layout Enumerate
18031
18032 \size small
18033 Could not execute \SpecialChar LaTeX
18034  command.
18035 \end_layout
18036
18037 \begin_layout Enumerate
18038
18039 \size small
18040 Don't use 
18041 \family typewriter
18042
18043 \backslash
18044 /
18045 \family default
18046  in front of small punctuation.
18047 \end_layout
18048
18049 \begin_layout Enumerate
18050
18051 \family typewriter
18052 \size small
18053 $
18054 \backslash
18055 times$
18056 \family default
18057  may look prettier here.
18058 \end_layout
18059
18060 \begin_layout Enumerate
18061
18062 \size small
18063 \emph on
18064 Multiple spaces detected in output.
18065 \end_layout
18066
18067 \begin_layout Enumerate
18068
18069 \size small
18070 This text may be ignored.
18071 \end_layout
18072
18073 \begin_layout Enumerate
18074
18075 \size small
18076 Use 
18077 \family typewriter
18078
18079 \begin_inset Quotes eld
18080 \end_inset
18081
18082
18083 \family default
18084  to begin quotation, not 
18085 \family typewriter
18086 '
18087 \family default
18088 .
18089 \end_layout
18090
18091 \begin_layout Enumerate
18092
18093 \size small
18094 Use 
18095 \family typewriter
18096 '
18097 \family default
18098  to end quotation, not 
18099 \family typewriter
18100
18101 \begin_inset Quotes eld
18102 \end_inset
18103
18104
18105 \family default
18106 .
18107 \end_layout
18108
18109 \begin_layout Enumerate
18110
18111 \size small
18112 Don't mix quotes.
18113 \end_layout
18114
18115 \begin_layout Enumerate
18116
18117 \size small
18118 You should perhaps use 
18119 \begin_inset Quotes eld
18120 \end_inset
18121
18122
18123 \family typewriter
18124 cmd
18125 \family default
18126
18127 \begin_inset Quotes erd
18128 \end_inset
18129
18130  instead.
18131 \end_layout
18132
18133 \begin_layout Enumerate
18134
18135 \size small
18136 You should put a space in front of/after parenthesis.
18137 \end_layout
18138
18139 \begin_layout Enumerate
18140
18141 \size small
18142 You should avoid spaces in front of/after parenthesis.
18143 \end_layout
18144
18145 \begin_layout Enumerate
18146
18147 \size small
18148 \emph on
18149 You should not use punctuation in front of/after quotes.
18150 \end_layout
18151
18152 \begin_layout Enumerate
18153
18154 \size small
18155 Double space found.
18156 \end_layout
18157
18158 \begin_layout Enumerate
18159
18160 \size small
18161 You should put punctuation outside inner/inside display math mode.
18162 \end_layout
18163
18164 \begin_layout Enumerate
18165
18166 \size small
18167 You ought to not use primitive \SpecialChar TeX
18168  in \SpecialChar LaTeX
18169  code.
18170 \end_layout
18171
18172 \begin_layout Enumerate
18173
18174 \size small
18175 You should remove spaces in front of 
18176 \begin_inset Quotes eld
18177 \end_inset
18178
18179
18180 \family typewriter
18181 %s
18182 \family default
18183
18184 \begin_inset Quotes erd
18185 \end_inset
18186
18187
18188 \end_layout
18189
18190 \begin_layout Enumerate
18191
18192 \size small
18193 \begin_inset Quotes eld
18194 \end_inset
18195
18196
18197 \family typewriter
18198 %s
18199 \family default
18200
18201 \begin_inset Quotes erd
18202 \end_inset
18203
18204  is normally not followed by 
18205 \begin_inset Quotes eld
18206 \end_inset
18207
18208
18209 \family typewriter
18210 %c
18211 \family default
18212
18213 \begin_inset Quotes erd
18214 \end_inset
18215
18216 .
18217 \end_layout
18218
18219 \begin_layout Standard
18220 \SpecialChar LyX
18221 の将来の版では,このツール(およびその縮小版
18222 \family typewriter
18223 lacheck
18224 \family default
18225 )の力を最大限引き出すように,より完備したインターフェイスを提供できればと考えています.しかし,現状でも十分に役立つものとなっています.ある程度長さがある既存文
18226 書に使用してみていただければ,きっと驚かれることでしょう.
18227 \end_layout
18228
18229 \begin_layout Section
18230 \SpecialChar LyX
18231 でのバージョン管理
18232 \end_layout
18233
18234 \begin_layout Standard
18235
18236 \noun on
18237 Lars Bullik Bjønnes
18238 \noun default
18239 および
18240 \noun on
18241 Pavel Sanda
18242 \noun default
18243
18244 \end_layout
18245
18246 \begin_layout Subsection
18247 はじめに
18248 \end_layout
18249
18250 \begin_layout Standard
18251 \SpecialChar LyX
18252 は,今ではもっとも基本的なRCS/CVS/SVN/GITコマンドをサポートしています.もしもっと洗練されたことを行いたい場合には,ターミナル上から手動で行う必要
18253 があります.
18254 \end_layout
18255
18256 \begin_layout Standard
18257 また,CVSのサポートは,subversionのサポートほど良くないので,CVSよりもSVNを使うことをお勧めします.Subversionを学び始めるには,SV
18258 N Book
18259 \begin_inset Foot
18260 status collapsed
18261
18262 \begin_layout Plain Layout
18263 \begin_inset CommandInset href
18264 LatexCommand href
18265 target "http://svnbook.red-bean.com/"
18266 literal "false"
18267
18268 \end_inset
18269
18270
18271 \end_layout
18272
18273 \end_inset
18274
18275 が良いでしょう.RCSの場合は,「rsintro」をお読みください(これはmanファイルです.
18276 \family typewriter
18277 man rcsintro
18278 \family default
18279 で読めます).このファイルは,RCSの基本機能のすべてを説明しています.特に,RCSディレクトリに関するコメントと,マスターRCSファイル(
18280 \family typewriter
18281 ,v
18282 \family default
18283 で終わるファイルです)の概念に注意を払ってください.
18284 \end_layout
18285
18286 \begin_layout Standard
18287 \SpecialChar LyX
18288 で実際にバージョン管理機能を使い始める前に,RCS/CVS/SVN/GITの使用法に習熟しておかなくてはなりません.\SpecialChar LyX
18289 で\SpecialChar LyX
18290 への実装においては,GNU
18291  RCSまたはCVS/SVNパッケージの最新版を仮定しています.旧版への保証はありません.ログメッセージのほとんどは,現在のところ操作後には表示されません.確認
18292 したい場合には,メッセージ面で確かめてください.バージョン管理を常用するユーザーには,VCツールバーが便利でしょう.これは
18293 \family sans
18294 表示\SpecialChar menuseparator
18295 ツールバー\SpecialChar menuseparator
18296 バージョン管理
18297 \family default
18298 で有効にできます.
18299 \end_layout
18300
18301 \begin_layout Standard
18302 自製の外部コマンドを導入したい場合には,
18303 \emph on
18304 \SpecialChar LyX
18305 関数
18306 \emph default
18307 説明書の
18308 \begin_inset Flex Code
18309 status collapsed
18310
18311 \begin_layout Plain Layout
18312 vc-command
18313 \end_layout
18314
18315 \end_inset
18316
18317 を確認してください.
18318 \end_layout
18319
18320 \begin_layout Standard
18321 バージョン管理機能を使用している場合には,文書を非圧縮形式で保存をすることを強く推奨します(
18322 \family sans
18323 文書\SpecialChar menuseparator
18324 圧縮
18325 \family default
18326 にチェックが入っていれば外してください).非圧縮LyX文書はテキストファイルであるため,バージョン管理システムが,二つのバージョンをマージすることができます.一
18327 方,圧縮LyXファイルはバイナリファイルであるため,バージョン管理システムはマージすることができません.
18328 \end_layout
18329
18330 \begin_layout Subsection
18331 \SpecialChar LyX
18332 におけるRCSコマンド
18333 \end_layout
18334
18335 \begin_layout Standard
18336 以下の節では\SpecialChar LyX
18337 でサポートされているRCSコマンドを説明します.それらのコマンドは
18338 \family sans
18339 ファイル\SpecialChar menuseparator
18340 バージョン管理
18341 \family default
18342 のサブメニューにあります.\SpecialChar LyX
18343 は,RCS 5.7/5.8に対して試験されています.
18344 \end_layout
18345
18346 \begin_layout Subsubsection
18347
18348 \family sans
18349 登録
18350 \end_layout
18351
18352 \begin_layout Standard
18353 文書がバージョン管理の下にない場合には,これがメニューにあらわれる唯一の項目です.文書がバージョン管理下にあれば,項目
18354 \family sans
18355 登録
18356 \family default
18357 は不可視になります.
18358 \end_layout
18359
18360 \begin_layout Standard
18361 このコマンドは,文書をRCSに登録します(CVSが管理しているディレクトリ下にない場合).すると対話的に,文書の最初の説明を入力するように尋ねられます.すると文
18362 書は読み込み専用モードになるので,変更を加えるためには
18363 \family sans
18364 チェックアウトして編集
18365 \family default
18366 を実行する必要があります.バージョン管理下にある文書は,ミニバッファのファイル名の後ろに「 [RCS:<バージョン> <ロック>]」という項目が表示されます.
18367 \end_layout
18368
18369 \begin_layout Standard
18370 実行されるRCSコマンドは:
18371 \end_layout
18372
18373 \begin_layout LyX-Code
18374
18375 \family typewriter
18376 ci -q -u -i -t-"<初期説明文>" <ファイル名>
18377 \end_layout
18378
18379 \begin_layout Standard
18380 スイッチについて知りたい場合は,
18381 \family typewriter
18382 man ci
18383 \family default
18384 を読んでください.
18385 \end_layout
18386
18387 \begin_layout Subsubsection
18388
18389 \family sans
18390 変更をチェックインする
18391 \end_layout
18392
18393 \begin_layout Standard
18394 ファイルの編集が終わると,その変更をチェックインします.このとき,変更についての説明文を求められます.これは履歴ログに記録されます.バージョン番号は繰り上がり,
18395 変更がマスターRCSファイルに適用され,文書がアンロックされて読み込み専用モードになります.
18396 \end_layout
18397
18398 \begin_layout Itemize
18399 RCSコマンド:
18400 \family typewriter
18401 ci -q -u -m"<説明文>" <ファイル名>
18402 \end_layout
18403
18404 \begin_layout Subsubsection
18405
18406 \family sans
18407 チェックアウトして編集
18408 \end_layout
18409
18410 \begin_layout Standard
18411 これは,文書をロックして編集できるようにします.そしてあなただけが文書を読み書きできるようにします.通常は,しばらくの間,文書を編集し,それが終わると変更をチェ
18412 ックインします.あなたがファイルをロックしたことを反映して,ステータスラインが変わります.
18413 \end_layout
18414
18415 \begin_layout Itemize
18416 RCSコマンド:
18417 \family typewriter
18418 co -q -l <ファイル名>
18419 \end_layout
18420
18421 \begin_layout Subsubsection
18422
18423 \family sans
18424 リポジトリのバージョンに戻す
18425 \end_layout
18426
18427 \begin_layout Standard
18428 これは,最終チェックイン以降,文書に加えられた変更をすべて破棄します.変更が破棄される前に,警告が発せられます.
18429 \end_layout
18430
18431 \begin_layout Itemize
18432 RCSコマンド:
18433 \family typewriter
18434 co -f -u<バージョン> <ファイル名>
18435 \end_layout
18436
18437 \begin_layout Subsubsection
18438
18439 \family sans
18440 コピー
18441 \end_layout
18442
18443 \begin_layout Standard
18444 これは,現行文書のコピーを生成します.RCSは,コピー操作を自前ではサポートしませんので,バージョン履歴には保存されず,新コピーは新規ファイルとして追加されます
18445 .最後のチェックイン以降,変更が加えられていないサラの文書であることが要求されます.ファイル名とコピー操作の説明を入力するように促され,その後,新コピーがローカ
18446 ルとリポジトリの両方に生成されます.コピーされた文書と元の文書の親ディレクトリが異なる場合には,コピーにインクルードされたファイルの相対パスは,(
18447 \family sans
18448 ファイル\SpecialChar menuseparator
18449 名前をつけて保存\SpecialChar ldots
18450
18451 \family default
18452 と同様に)全て調整されます.最後に,元の文書の代わりに,コピーされたファイルが読み込まれます.
18453 \end_layout
18454
18455 \begin_layout Labeling
18456 \labelwidthstring 00.00.0000
18457 RCSコマンド: 
18458 \begin_inset space ~
18459 \end_inset
18460
18461
18462 \begin_inset Newline newline
18463 \end_inset
18464
18465
18466 \begin_inset Flex Code
18467 status collapsed
18468
18469 \begin_layout Plain Layout
18470 "ファイル名"
18471 \end_layout
18472
18473 \end_inset
18474
18475
18476 \begin_inset Flex Code
18477 status collapsed
18478
18479 \begin_layout Plain Layout
18480 "新ファイル名"
18481 \end_layout
18482
18483 \end_inset
18484
18485 にコピーする場合
18486 \begin_inset Newline newline
18487 \end_inset
18488
18489
18490 \begin_inset Flex Code
18491 status collapsed
18492
18493 \begin_layout Plain Layout
18494 ci -q -u -i "<新ファイル名>"
18495 \end_layout
18496
18497 \end_inset
18498
18499
18500 \end_layout
18501
18502 \begin_layout Subsubsection
18503
18504 \family sans
18505 最後のチェックインを取り消す
18506 \end_layout
18507
18508 \begin_layout Standard
18509 これは,最後のチェックインがあたかも為されなかったかのようにします.\SpecialChar LyX
18510 に読み込まれた文書に変更は加えられませんが,マスターRCSファイルから最後のバージョンが削除
18511 されます.
18512 \end_layout
18513
18514 \begin_layout Itemize
18515 RCSコマンド:
18516 \family typewriter
18517 rcs -o<バージョン> <ファイル名>
18518 \end_layout
18519
18520 \begin_layout Subsubsection
18521
18522 \family sans
18523 履歴を表示
18524 \end_layout
18525
18526 \begin_layout Standard
18527 RCS文書の完全な履歴を表示します.ブラウザ中に,
18528 \family typewriter
18529 rlog <ファイル名>
18530 \family default
18531 の出力が表示されます.詳細は
18532 \family typewriter
18533 man rlog
18534 \family default
18535 をご覧ください.
18536 \end_layout
18537
18538 \begin_layout Subsubsection
18539 改訂情報
18540 \end_layout
18541
18542 \begin_layout Standard
18543 \SpecialChar LyX
18544 は,RCSバージョン番号情報(のみ)をサポートしています.詳細については,
18545 \begin_inset CommandInset ref
18546 LatexCommand ref
18547 reference "subsec:VCS改訂情報"
18548
18549 \end_inset
18550
18551 を参照.
18552 \end_layout
18553
18554 \begin_layout Subsection
18555 \SpecialChar LyX
18556 におけるCVSコマンド
18557 \end_layout
18558
18559 \begin_layout Standard
18560 \SpecialChar LyX
18561 は,現在CVSを一部サポートしています.そのコマンドは,
18562 \family sans
18563 ファイル\SpecialChar menuseparator
18564 バージョン管理
18565 \family default
18566 サブメニューにあります.バージョン管理システムSVNの方が強力なので,可能ならばCVSではなく,SVNを使用してください.
18567 \end_layout
18568
18569 \begin_layout Subsubsection
18570 CVSの一般的な利用法
18571 \end_layout
18572
18573 \begin_layout Standard
18574 CVSを初めて使いたい場合には,外部ツールを使用して自分のレポジトリを作成し,作業コピーをチェックアウトする必要があります.クライアント=サーバーモデルを使用し
18575 ている場合には,最初のレポジトリチェックアウトを行う前にログインする必要があるかもしれません.
18576 \end_layout
18577
18578 \begin_layout Standard
18579 改訂管理下にある文書のレポジトリを他人も利用している場合に,同一文書の同一箇所に別々の変更を加えてしまうと問題が発生します.標準的なCVSレポジトリは,ファイル
18580 ロッキング機構を有しません.これは驚くべきことかもしれませんが,コンフリクトは,文書の同じ箇所の特定の内容について,人々が意見を異にしている場合にのみ発生します
18581 .したがって,共著者同士がコンスタントにコミュニケーションを交わしていれば,このようなコンフリクトは滅多に発生しません.もしコミュニケーションがなければ,いずれ
18582 にしても根本的な問題があるわけです.それにもかかわらず,いわゆる「予備付きチェックアウト」を使用したいと思う人々もいます.この場合,最初にチェックアウトした際に
18583 ,全ファイルの作業コピーは読み込み専用にされ,ユーザーは,作業コピーを書き込み可能にする特別なコマンドを使用した後,編集を開始することになります.変更をチェック
18584 インすると,作業コピーは読み込み専用状態に戻ります.\SpecialChar LyX
18585 で予備付きチェックアウトを利用したい場合には,
18586 \begin_inset Flex Code
18587 status collapsed
18588
18589 \begin_layout Plain Layout
18590 .cvsrc
18591 \end_layout
18592
18593 \end_inset
18594
18595 ファイルを編集して,
18596 \begin_inset Flex Code
18597 status collapsed
18598
18599 \begin_layout Plain Layout
18600 cvs -r
18601 \end_layout
18602
18603 \end_inset
18604
18605 という行を書き加える必要があります.この方法の利点は,文書のうち,書き込み可能コピーを誰が使用しているかを見ることができることです.ただし,一人のユーザーだけが
18606 コピーを書き込み可能にしているとは限りません.
18607 \end_layout
18608
18609 \begin_layout Standard
18610 \SpecialChar LyX
18611 は,あなたが予備付きチェックアウトを使用しているか,予備なしチェックアウトを利用しているか,推測しようと試みます.使用中の作業コピーが読み込み専用になっているか
18612 ,あるいはそれが書き込み可能であって,CVS/Baseサブディレクトリに使用中文書のコピーが存在している場合には,予備付きチェックアウトを使用しているものと仮定
18613 し,そうでない場合には予備なしチェックアウトを使用しているものと仮定します.予備付きチェックアウトが検出された場合には,作業コピーが読み込み専用の場合に書き込み
18614 可能にするためには,
18615 \begin_inset Flex MenuItem
18616 status collapsed
18617
18618 \begin_layout Plain Layout
18619 チェックアウト
18620 \end_layout
18621
18622 \end_inset
18623
18624 メニューを使用しなくてはなりません.その後,
18625 \begin_inset Flex MenuItem
18626 status collapsed
18627
18628 \begin_layout Plain Layout
18629 チェックイン
18630 \end_layout
18631
18632 \end_inset
18633
18634 メニューが利用可能になるので,自分が加えた変更をリポジトリに移した後,作業コピーを再び読み込み専用にする際には,これを使用します.
18635 \end_layout
18636
18637 \begin_layout Standard
18638 CVSの詳細な情報は,
18639 \begin_inset Flex URL
18640 status collapsed
18641
18642 \begin_layout Plain Layout
18643
18644 http://www.nongnu.org/cvs
18645 \end_layout
18646
18647 \end_inset
18648
18649
18650 \begin_inset Flex URL
18651 status collapsed
18652
18653 \begin_layout Plain Layout
18654
18655 http://ximbiot.com/cvs
18656 \end_layout
18657
18658 \end_inset
18659
18660 にあります.
18661 \end_layout
18662
18663 \begin_layout Standard
18664 以下に言及するサブコマンドとスイッチを理解するには,
18665 \family typewriter
18666 man cvs
18667 \family default
18668 をお読みください.
18669 \end_layout
18670
18671 \begin_layout Subsubsection
18672 登録
18673 \end_layout
18674
18675 \begin_layout Standard
18676 お使いの文書が改訂管理下に置かれていなければ,メニューにはこの項目だけが表示されます.もし改訂管理が有効ならば,
18677 \family sans
18678 登録
18679 \family default
18680 項目は表示されません.
18681 \end_layout
18682
18683 \begin_layout Standard
18684 本コマンドは,既に文書ディレクトリをCVS管理下に置いている場合に
18685 \series bold
18686 \emph on
18687 のみ
18688 \series default
18689 \emph default
18690 (すなわち
18691 \begin_inset Flex Code
18692 status collapsed
18693
18694 \begin_layout Plain Layout
18695 CVS/Entries
18696 \end_layout
18697
18698 \end_inset
18699
18700 ファイルが存在する場合にのみ),お使いの文書をCVSに登録します.つまり,外部ツールを使用して,アーカイブを自分で作成ないしチェックアウトしなくてはならないこと
18701 を意味します(このステップを忘れてしまうと,\SpecialChar LyX
18702 は文書をRCSに登録します).
18703 \end_layout
18704
18705 \begin_layout Standard
18706 すると,文書の最初の説明文を入力するように促されます.登録したファイルは,まだチェックインされたわけではないことに注意してください.
18707 \end_layout
18708
18709 \begin_layout Standard
18710 実行されるCVSコマンドは,
18711 \family typewriter
18712 cvs -q add -m"<入力した説明文>" "<ファイル名>"
18713 \family default
18714  です.
18715 \end_layout
18716
18717 \begin_layout Standard
18718 上記および他のすべてのCVSコマンドにおける
18719 \family typewriter
18720 "<ファイル名>"
18721 \family default
18722 は,「カレント作業ディレクトリをファイルの場所に移動し,パスコンポーネントを除いたファイル名を引数として使用する」という意味になります.
18723 \end_layout
18724
18725 \begin_layout Subsubsection
18726 変更のチェックイン
18727 \end_layout
18728
18729 \begin_layout Standard
18730 ファイルの編集を終えたら,変更をコミットします.このとき,文書に変更が加えられていれば,変更の説明文を入れるよう促されます.その後,変更がレポジトリに書き込まれ
18731 ます.文書を変更せず,予備付きチェックアウトが検出された場合,
18732 \begin_inset Flex MenuItem
18733 status collapsed
18734
18735 \begin_layout Plain Layout
18736 チェックアウト
18737 \end_layout
18738
18739 \end_inset
18740
18741 で作られた予備は取り消されます.
18742 \end_layout
18743
18744 \begin_layout Labeling
18745 \labelwidthstring 00.00.0000
18746 CVSコマンド: 
18747 \begin_inset space ~
18748 \end_inset
18749
18750
18751 \begin_inset Newline newline
18752 \end_inset
18753
18754
18755 \begin_inset Flex Code
18756 status collapsed
18757
18758 \begin_layout Plain Layout
18759 cvs -q commit -m"<入力した説明文>" "<ファイル名>"
18760 \end_layout
18761
18762 \end_inset
18763
18764 あるいは
18765 \begin_inset Newline newline
18766 \end_inset
18767
18768
18769 \begin_inset Flex Code
18770 status collapsed
18771
18772 \begin_layout Plain Layout
18773 cvs -q unedit "<ファイル名>"
18774 \end_layout
18775
18776 \end_inset
18777
18778
18779 \end_layout
18780
18781 \begin_layout Subsubsection
18782 変更のチェックアウト
18783 \end_layout
18784
18785 \begin_layout Standard
18786 レポジトリを他人と共有している場合,他人の加えた変更を自らの作業コピーに取り込まなくてはならないことがあります.
18787 \end_layout
18788
18789 \begin_layout Standard
18790 CVSコマンド:
18791 \family typewriter
18792 cvs -q update "<ファイル名>"
18793 \end_layout
18794
18795 \begin_layout Standard
18796 読み込み専用チェックアウトが検出された場合,作業コピーを書き込み可能にし予備を作成します.
18797 \end_layout
18798
18799 \begin_layout Standard
18800 CVSコマンド:
18801 \family typewriter
18802 cvs -q edit "<ファイル名>"
18803 \end_layout
18804
18805 \begin_layout Subsubsection
18806 レポジトリ版に戻す
18807 \end_layout
18808
18809 \begin_layout Standard
18810 これは,最後のチェックイン以降,文書に加えられた変更をすべて廃棄します.変更が廃棄される前に警告が表示されます.最初にファイルが削除され,次にCVS更新コマンド
18811 が実行されます.
18812 \end_layout
18813
18814 \begin_layout Standard
18815 CVSコマンド:
18816 \family typewriter
18817 cvs -q update "<ファイル名>"
18818 \end_layout
18819
18820 \begin_layout Standard
18821 予備付きチェックアウトが検出され,作業コピーに変更がない場合,予備のみが取り消されます.
18822 \end_layout
18823
18824 \begin_layout Standard
18825 CVSコマンド:
18826 \family typewriter
18827 cvs -q unedit "<ファイル名>"
18828 \end_layout
18829
18830 \begin_layout Subsubsection
18831
18832 \family sans
18833 コピー
18834 \end_layout
18835
18836 \begin_layout Standard
18837 これは,現行文書のコピーを生成します.CVSは,コピー操作を自前ではサポートしませんので,バージョン履歴には保存されず,新コピーは新規ファイルとして追加されます
18838 .最後のチェックイン以降,変更が加えられていないサラの文書であることが要求されます.ファイル名とコピー操作の説明を入力するように促され,その後,新コピーがローカ
18839 ルとリポジトリの両方に生成されます.コピーされた文書と元の文書の親ディレクトリが異なる場合には,コピーにインクルードされたファイルの相対パスは,(
18840 \family sans
18841 ファイル\SpecialChar menuseparator
18842 名前をつけて保存\SpecialChar ldots
18843
18844 \family default
18845 と同様に)全て調整されます.最後に,元の文書の代わりに,コピーされたファイルが読み込まれます.
18846 \end_layout
18847
18848 \begin_layout Labeling
18849 \labelwidthstring 00.00.0000
18850 CVSコマンド: 
18851 \begin_inset space ~
18852 \end_inset
18853
18854
18855 \begin_inset Newline newline
18856 \end_inset
18857
18858
18859 \begin_inset Flex Code
18860 status collapsed
18861
18862 \begin_layout Plain Layout
18863 "<ファイル名>"
18864 \end_layout
18865
18866 \end_inset
18867
18868
18869 \begin_inset Flex Code
18870 status collapsed
18871
18872 \begin_layout Plain Layout
18873 "<新ファイル名>"
18874 \end_layout
18875
18876 \end_inset
18877
18878 にコピーする場合
18879 \begin_inset Newline newline
18880 \end_inset
18881
18882
18883 \begin_inset Flex Code
18884 status collapsed
18885
18886 \begin_layout Plain Layout
18887 cvs -q add "<新ファイル名>"
18888 \end_layout
18889
18890 \end_inset
18891
18892
18893 \end_layout
18894
18895 \begin_layout Subsubsection
18896 ファイル名変更
18897 \end_layout
18898
18899 \begin_layout Standard
18900 これは,現行文書のファイル名を変更します.CVSは,ファイル名変更操作を自前ではサポートしませんので,バージョン履歴には保存されず,名称変更後のファイルは,新規
18901 ファイルとして追加されます.最後のチェックイン以降,変更が加えられていないサラの文書であることが要求されます.ファイル名とコピー操作の説明を入力するように促され
18902 ,その後,ローカルとリポジトリの両方でファイル名が変更されます.新旧ファイル名の文書の親ディレクトリが異なる場合には,コピーにインクルードされたファイルの相対パ
18903 スは,(
18904 \family sans
18905 ファイル\SpecialChar menuseparator
18906 名前をつけて保存\SpecialChar ldots
18907
18908 \family default
18909 と同様に)全て調整されます.最後に,新ファイル名を使ってファイルが再度読み込まれます.
18910 \end_layout
18911
18912 \begin_layout Labeling
18913 \labelwidthstring 00.00.0000
18914 CVSコマンド: 
18915 \begin_inset space ~
18916 \end_inset
18917
18918
18919 \begin_inset Newline newline
18920 \end_inset
18921
18922
18923 \begin_inset Flex Code
18924 status collapsed
18925
18926 \begin_layout Plain Layout
18927 "<ファイル名>"
18928 \end_layout
18929
18930 \end_inset
18931
18932
18933 \begin_inset Flex Code
18934 status collapsed
18935
18936 \begin_layout Plain Layout
18937 "<新ファイル名>"
18938 \end_layout
18939
18940 \end_inset
18941
18942 に変更する場合 
18943 \begin_inset space ~
18944 \end_inset
18945
18946
18947 \begin_inset Newline newline
18948 \end_inset
18949
18950
18951 \begin_inset Flex Code
18952 status collapsed
18953
18954 \begin_layout Plain Layout
18955 cvs -q add "<新ファイル名>"
18956 \end_layout
18957
18958 \end_inset
18959
18960  
18961 \begin_inset space ~
18962 \end_inset
18963
18964
18965 \begin_inset Newline newline
18966 \end_inset
18967
18968
18969 \begin_inset Flex Code
18970 status collapsed
18971
18972 \begin_layout Plain Layout
18973 cvs -q remove "<ファイル名>"
18974 \end_layout
18975
18976 \end_inset
18977
18978
18979 \end_layout
18980
18981 \begin_layout Subsubsection
18982 ローカルディレクトリチェックアウトのレポジトリからの更新
18983 \end_layout
18984
18985 \begin_layout Standard
18986 子文書や図を含んだり,外部
18987 \begin_inset Flex Code
18988 status collapsed
18989
18990 \begin_layout Plain Layout
18991 .tex
18992 \end_layout
18993
18994 \end_inset
18995
18996 ファイルを取り込むなど,文書が複雑になるにつれ,バージョン管理の利用は複雑になります.\SpecialChar LyX
18997 は,文書が存在するツリー全体の更新をサポートします.これは,CVSの使用法
18998 について詳しい知識のない人々や,レポジトリに追加素材をコミットする野望のない人々と共同作業をするような場合に,特に便利です.ファイル構造は,すべての外部ファイル
18999 が,文書と同じディレクトリかそのサブディレクトリに来るように組織する必要があります.いずれにしても,複合文書を新しいディレクトリを建てて収容するのは,望ましい習
19000 慣です.
19001 \end_layout
19002
19003 \begin_layout Standard
19004 コマンド
19005 \begin_inset Flex Code
19006 status collapsed
19007
19008 \begin_layout Plain Layout
19009 レポジトリを使ってローカル辞書を更新
19010 \end_layout
19011
19012 \end_inset
19013
19014 は,ディレクトリ全体を更新します.ローカルの変更が検出された場合には,更新を開始する前にユーザーに警告が発せられます.マージコンフリクトが発生した場合には,コン
19015 フリクトを起こしている部分の新旧バージョンが,両方とも最終文書に置かれますので,マージの結果を見直し,修正する必要があります.コンフリクトは,
19016 \begin_inset Flex Code
19017 status collapsed
19018
19019 \begin_layout Plain Layout
19020 <<<<<<<
19021 \end_layout
19022
19023 \end_inset
19024
19025
19026 \begin_inset Flex Code
19027 status collapsed
19028
19029 \begin_layout Plain Layout
19030 >>>>>>>
19031 \end_layout
19032
19033 \end_inset
19034
19035 の対に囲まれ,
19036 \begin_inset Flex Code
19037 status collapsed
19038
19039 \begin_layout Plain Layout
19040 =======
19041 \end_layout
19042
19043 \end_inset
19044
19045 で区切られて表示されます.最初の部分は,文書名に続いて,更新操作前のバージョンが置かれています.第2の部分は,
19046 \begin_inset Flex Code
19047 status collapsed
19048
19049 \begin_layout Plain Layout
19050 >
19051 \end_layout
19052
19053 \end_inset
19054
19055 記号列の後にバージョン番号に続いて,レポジトリ版が置かれます.
19056 \end_layout
19057
19058 \begin_layout Labeling
19059 \labelwidthstring 00.00.0000
19060 CVSコマンド: 
19061 \begin_inset space ~
19062 \end_inset
19063
19064
19065 \begin_inset Newline newline
19066 \end_inset
19067
19068
19069 \begin_inset Flex Code
19070 status collapsed
19071
19072 \begin_layout Plain Layout
19073 cd $path; cvs diff "."
19074 \end_layout
19075
19076 \end_inset
19077
19078 (変更が検出された場合には知らせる)
19079 \begin_inset Newline newline
19080 \end_inset
19081
19082
19083 \begin_inset Flex Code
19084 status collapsed
19085
19086 \begin_layout Plain Layout
19087 cd $path; cvs -q update "."
19088 \end_layout
19089
19090 \end_inset
19091
19092
19093 \end_layout
19094
19095 \begin_layout Standard
19096 ここで
19097 \begin_inset Flex Code
19098 status collapsed
19099
19100 \begin_layout Plain Layout
19101 $path
19102 \end_layout
19103
19104 \end_inset
19105
19106 は文書パスを表します.
19107 \end_layout
19108
19109 \begin_layout Subsubsection
19110 履歴を表示
19111 \end_layout
19112
19113 \begin_layout Standard
19114 これは,CVS文書の全履歴を表示します.
19115 \begin_inset Flex Code
19116 status collapsed
19117
19118 \begin_layout Plain Layout
19119 cvs log 
19120 \begin_inset Quotes eld
19121 \end_inset
19122
19123 <ファイル名>
19124 \begin_inset Quotes erd
19125 \end_inset
19126
19127
19128 \end_layout
19129
19130 \end_inset
19131
19132 の出力がブラウザに表示されます.
19133 \end_layout
19134
19135 \begin_layout Subsubsection
19136 改訂情報
19137 \end_layout
19138
19139 \begin_layout Standard
19140 \SpecialChar LyX
19141 は,CVS版数・著者名・最終コミットの日時をサポートします.これらの情報は,すべて
19142 \family typewriter
19143 cvs log -r <ファイル名>
19144 \family default
19145 によって抽出されます.詳細については,第
19146 \begin_inset CommandInset ref
19147 LatexCommand ref
19148 reference "subsec:VCS改訂情報"
19149
19150 \end_inset
19151
19152 節を参照してください.
19153 \end_layout
19154
19155 \begin_layout Subsection
19156 \SpecialChar LyX
19157 におけるSVNコマンド
19158 \end_layout
19159
19160 \begin_layout Standard
19161 \SpecialChar LyX
19162 は,現在SVNを一部サポートしています.そのコマンドは,
19163 \begin_inset Flex MenuItem
19164 status collapsed
19165
19166 \begin_layout Plain Layout
19167 ファイル\SpecialChar menuseparator
19168 バージョン管理
19169 \end_layout
19170
19171 \end_inset
19172
19173 メニューにあります.レポジトリへのアクセスに,ssh経由のパスワード保護アクセスを使用している場合には,端末ウィンドウでの入力を促されます.\SpecialChar LyX
19174 は,SVN
19175  1.5・1.6・1.7・1.8に対して試験されています
19176 \begin_inset Foot
19177 status collapsed
19178
19179 \begin_layout Plain Layout
19180 ほとんどのコマンドは,1.4でも動作します.
19181 \begin_inset CommandInset ref
19182 LatexCommand ref
19183 reference "subsec:レポジトリからSVN同期"
19184 plural "false"
19185 caps "false"
19186 noprefix "false"
19187
19188 \end_inset
19189
19190 を参照してください.SVN 1.8では,ファイルがロックされている時にパーミッション変更点を戻してしまうという現時点では未解決の問題が存在しています.
19191 \end_layout
19192
19193 \end_inset
19194
19195
19196 \end_layout
19197
19198 \begin_layout Subsubsection
19199 登録
19200 \end_layout
19201
19202 \begin_layout Standard
19203 お使いの文書が改訂管理下に置かれていなければ,メニューにはこの項目だけが表示されます.もし改訂管理が有効ならば,
19204 \family sans
19205 登録
19206 \family default
19207 項目は表示されません.
19208 \end_layout
19209
19210 \begin_layout Standard
19211 本コマンドは,既に文書のあるディレクトリをSVN管理下に置いている場合に
19212 \emph on
19213 のみ
19214 \emph default
19215 (すなわち
19216 \begin_inset Flex Code
19217 status collapsed
19218
19219 \begin_layout Plain Layout
19220 .svn/entries
19221 \end_layout
19222
19223 \end_inset
19224
19225 ファイルが存在する場合にのみ),お使いの文書をSVNに登録します.つまり,アーカイブはご自分でチェックアウトしなくてはなりません.
19226 \end_layout
19227
19228 \begin_layout Standard
19229 すると,文書の最初の説明文を入力するように促されます.登録したファイルは,まだコミットされたわけではないことに注意してください.
19230 \end_layout
19231
19232 \begin_layout Standard
19233 実行されるSVNコマンドは,
19234 \begin_inset Flex Code
19235 status collapsed
19236
19237 \begin_layout Plain Layout
19238 svn add -q 
19239 \begin_inset Quotes qld
19240 \end_inset
19241
19242 <ファイル名>
19243 \begin_inset Quotes qld
19244 \end_inset
19245
19246
19247 \end_layout
19248
19249 \end_inset
19250
19251 です.
19252 \end_layout
19253
19254 \begin_layout Standard
19255 スイッチの説明は
19256 \begin_inset Flex Code
19257 status collapsed
19258
19259 \begin_layout Plain Layout
19260 man svn
19261 \end_layout
19262
19263 \end_inset
19264
19265 をお読みください.
19266 \end_layout
19267
19268 \begin_layout Subsubsection
19269 変更をチェックイン
19270 \end_layout
19271
19272 \begin_layout Standard
19273 ファイルの編集を終えたら,変更をコミットします.このとき,変更の説明文を入れるよう促されます.その後,変更がコミットされます.
19274 \end_layout
19275
19276 \begin_layout Standard
19277 SVNコマンド
19278 \begin_inset Foot
19279 status collapsed
19280
19281 \begin_layout Plain Layout
19282 ロックが有効になっていない場合です.第
19283 \begin_inset CommandInset ref
19284 LatexCommand ref
19285 reference "subsec:SVNファイルロック"
19286
19287 \end_inset
19288
19289 節をご覧ください.
19290 \end_layout
19291
19292 \end_inset
19293
19294
19295 \begin_inset Flex Code
19296 status collapsed
19297
19298 \begin_layout Plain Layout
19299 svn commit -q -m"<入力した説明文>" "<ファイル名>"
19300 \end_layout
19301
19302 \end_inset
19303
19304
19305 \end_layout
19306
19307 \begin_layout Subsubsection
19308 チェックアウトして編集
19309 \end_layout
19310
19311 \begin_layout Standard
19312 このファイルの変更点をレポジトリから取得して更新します.すべての干渉点は,手動で解決しなくてはならないので,この機能を使う前にSVNのマージ法と干渉解決法を理解
19313 しておくようにしてください.
19314 \end_layout
19315
19316 \begin_layout Standard
19317 SVNコマンド
19318 \begin_inset Foot
19319 status collapsed
19320
19321 \begin_layout Plain Layout
19322 同上.
19323 \end_layout
19324
19325 \end_inset
19326
19327
19328 \begin_inset Flex Code
19329 status collapsed
19330
19331 \begin_layout Plain Layout
19332 svn update --non-interactive 
19333 \begin_inset Quotes qld
19334 \end_inset
19335
19336 <ファイル名>
19337 \begin_inset Quotes qld
19338 \end_inset
19339
19340
19341 \end_layout
19342
19343 \end_inset
19344
19345
19346 \end_layout
19347
19348 \begin_layout Subsubsection
19349 リポジトリ版に戻す
19350 \end_layout
19351
19352 \begin_layout Standard
19353 これは,最後のチェックイン以降,文書に加えられた変更をすべて廃棄します.変更が廃棄される前に警告が表示されます.
19354 \end_layout
19355
19356 \begin_layout Standard
19357 SVNコマンド:
19358 \begin_inset Flex Code
19359 status collapsed
19360
19361 \begin_layout Plain Layout
19362 svn revert -q 
19363 \begin_inset Quotes qld
19364 \end_inset
19365
19366 <ファイル名>
19367 \begin_inset Quotes qld
19368 \end_inset
19369
19370
19371 \end_layout
19372
19373 \end_inset
19374
19375
19376 \end_layout
19377
19378 \begin_layout Subsubsection
19379
19380 \family sans
19381 コピー
19382 \end_layout
19383
19384 \begin_layout Standard
19385 これは,現行文書のコピーを生成します.最後のチェックイン以降,変更が加えられていないサラの文書であることが要求されます.ファイル名とコピー操作の説明を入力するよ
19386 うに促され,その後,新コピーがローカルとリポジトリの両方に生成されます.コピーされた文書と元の文書の親ディレクトリが異なる場合には,コピーにインクルードされたフ
19387 ァイルの相対パスは,(
19388 \family sans
19389 ファイル\SpecialChar menuseparator
19390 名前をつけて保存\SpecialChar ldots
19391
19392 \family default
19393 と同様に)全て調整されます.最後に,元の文書の代わりに,コピーされたファイルが読み込まれます.
19394 \end_layout
19395
19396 \begin_layout Labeling
19397 \labelwidthstring 00.00.0000
19398 SVNコマンド: 
19399 \begin_inset space ~
19400 \end_inset
19401
19402
19403 \begin_inset Newline newline
19404 \end_inset
19405
19406
19407 \begin_inset Flex Code
19408 status collapsed
19409
19410 \begin_layout Plain Layout
19411 svn copy -q "<ファイル名>" "<新ファイル名>"
19412 \end_layout
19413
19414 \end_inset
19415
19416
19417 \begin_inset space ~
19418 \end_inset
19419
19420
19421 \begin_inset Newline newline
19422 \end_inset
19423
19424
19425 \begin_inset Flex Code
19426 status collapsed
19427
19428 \begin_layout Plain Layout
19429 svn commit
19430 \end_layout
19431
19432 \end_inset
19433
19434
19435 \end_layout
19436
19437 \begin_layout Subsubsection
19438 ファイル名変更
19439 \end_layout
19440
19441 \begin_layout Standard
19442 これは,現行文書のファイル名を変更します.最後のチェックイン以降,変更が加えられていないサラの文書であることが要求されます.ファイル名とコピー操作の説明を入力す
19443 るように促され,その後,ローカルとリポジトリの両方でファイル名が変更されます.新旧ファイル名の文書の親ディレクトリが異なる場合には,コピーにインクルードされたフ
19444 ァイルの相対パスは,(
19445 \family sans
19446 ファイル\SpecialChar menuseparator
19447 名前をつけて保存\SpecialChar ldots
19448
19449 \family default
19450 と同様に)全て調整されます.最後に,新ファイル名を使ってファイルが再度読み込まれます.
19451 \end_layout
19452
19453 \begin_layout Labeling
19454 \labelwidthstring 00.00.0000
19455 SVNコマンド: 
19456 \begin_inset space ~
19457 \end_inset
19458
19459
19460 \begin_inset Newline newline
19461 \end_inset
19462
19463
19464 \begin_inset Flex Code
19465 status collapsed
19466
19467 \begin_layout Plain Layout
19468 svn move -q add "<ファイル名>" "<新ファイル名>"
19469 \end_layout
19470
19471 \end_inset
19472
19473
19474 \begin_inset Newline newline
19475 \end_inset
19476
19477
19478 \begin_inset Flex Code
19479 status collapsed
19480
19481 \begin_layout Plain Layout
19482 svn commit
19483 \end_layout
19484
19485 \end_inset
19486
19487
19488 \end_layout
19489
19490 \begin_layout Subsubsection
19491 \begin_inset CommandInset label
19492 LatexCommand label
19493 name "subsec:レポジトリからSVN同期"
19494
19495 \end_inset
19496
19497 レポジトリを使ったローカルディレクトリの同期
19498 \begin_inset Foot
19499 status collapsed
19500
19501 \begin_layout Plain Layout
19502 このコマンドは,subversion 
19503 \begin_inset Formula $\geqq1.5$
19504 \end_inset
19505
19506 でのみ動作することに注意してください.
19507 \end_layout
19508
19509 \end_inset
19510
19511
19512 \end_layout
19513
19514 \begin_layout Standard
19515 上記の各コマンドはすべて,共通の短所を持っています.すなわち,これらのコマンドは現在の文書しか取り扱わないのです.もし,作業中の文書に図を含めたり,外部
19516 \begin_inset Flex Code
19517 status collapsed
19518
19519 \begin_layout Plain Layout
19520 .tex
19521 \end_layout
19522
19523 \end_inset
19524
19525 ファイルを取り込んだりすれば,管理はずっと複雑になります.そこで\SpecialChar LyX
19526 は,文書のおいてあるツリー全体の更新をサポートします
19527 \begin_inset Foot
19528 status collapsed
19529
19530 \begin_layout Plain Layout
19531 すべての外部ファイルが,文書と同じディレクトリかそれ以下のサブディレクトリに来るようにファイル構造を構成する必要があります.
19532 \end_layout
19533
19534 \end_inset
19535
19536 .これは,subversion管理を知らなかったりレポジトリに新しい素材をコミットする勇気のない人たちと共同作業をする羽目になったときに,ひじょうに役に立ちます
19537
19538 \end_layout
19539
19540 \begin_layout Standard
19541 \begin_inset Flex Code
19542 status collapsed
19543
19544 \begin_layout Plain Layout
19545 ローカル辞書をレポジトリを使って更新
19546 \end_layout
19547
19548 \end_inset
19549
19550 コマンドは,ディレクトリ全体を更新し,マージに衝突が発生した場合には,ローカル版は保存されるので,意図しないデータロスが発生しません.ローカルな変更が発見された
19551 場合には,更新が開始される前にユーザに警告が与えられます.
19552 \end_layout
19553
19554 \begin_layout Labeling
19555 \labelwidthstring 00.00.0000
19556 SVNコマンド: 
19557 \begin_inset space ~
19558 \end_inset
19559
19560
19561 \begin_inset Newline newline
19562 \end_inset
19563
19564
19565 \begin_inset Flex Code
19566 status collapsed
19567
19568 \begin_layout Plain Layout
19569 svn diff $path(変更が発見された場合には通知します)
19570 \begin_inset Newline newline
19571 \end_inset
19572
19573 svn update --accept mine-full $path
19574 \end_layout
19575
19576 \end_inset
19577
19578
19579 \end_layout
19580
19581 \begin_layout Standard
19582 ここで
19583 \begin_inset Flex Code
19584 status collapsed
19585
19586 \begin_layout Plain Layout
19587 $path
19588 \end_layout
19589
19590 \end_inset
19591
19592 は文書のパスを示します.
19593 \end_layout
19594
19595 \begin_layout Subsubsection
19596 履歴を表示
19597 \end_layout
19598
19599 \begin_layout Standard
19600 これは,SVN文書の全履歴を表示します.
19601 \begin_inset Flex Code
19602 status collapsed
19603
19604 \begin_layout Plain Layout
19605 svn log 
19606 \begin_inset Quotes qld
19607 \end_inset
19608
19609 <ファイル名>
19610 \begin_inset Quotes qld
19611 \end_inset
19612
19613
19614 \end_layout
19615
19616 \end_inset
19617
19618 の出力がブラウザに表示されます.
19619 \end_layout
19620
19621 \begin_layout Subsubsection
19622 ファイルロック
19623 \begin_inset CommandInset label
19624 LatexCommand label
19625 name "subsec:SVNファイルロック"
19626
19627 \end_inset
19628
19629
19630 \end_layout
19631
19632 \begin_layout Standard
19633 別々の改訂管理システム間でファイルを交換しようとすると,二人のユーザが同じ文書(の一部)を編集している場合,マージが衝突する問題を引き起こします.そのような衝突
19634 が発生した場合,手動で解決しなくてはならなくなりますが,その合理的な解決法としては,与えられた時間に一人のユーザだけがファイルを編集することが許されるように保証
19635 するための,何らかのロック機構を導入することが考えられます.
19636 \end_layout
19637
19638 \begin_layout Standard
19639 SVNには,このように相互に排他的なファイルアクセスを提供する機構が二つあります.ロックと,
19640 \begin_inset Flex Code
19641 status collapsed
19642
19643 \begin_layout Plain Layout
19644 svn:needs-lock
19645 \end_layout
19646
19647 \end_inset
19648
19649 svnファイル特性に依拠した書き込み権限の自動設定(第
19650 \begin_inset CommandInset ref
19651 LatexCommand ref
19652 reference "subsec:自動ロック特性"
19653
19654 \end_inset
19655
19656 節を参照)です
19657 \begin_inset Foot
19658 status collapsed
19659
19660 \begin_layout Plain Layout
19661 \begin_inset Flex URL
19662 status open
19663
19664 \begin_layout Plain Layout
19665
19666 http://svnbook.red-bean.com/en/1.2/svn.advanced.locking.html
19667 \end_layout
19668
19669 \end_inset
19670
19671
19672 \end_layout
19673
19674 \end_inset
19675
19676 .ある文書について,この特性が検出されたときには,\SpecialChar LyX
19677 は自動的に文書編集にSVNロックを使用するようになり,チェックイン・チェックアウト機構はRCSと同じ枠組みに切
19678 り替わります.これは特に,\SpecialChar LyX
19679 でのファイルの使われ方に以下の二つのモードがあることを意味します.
19680 \end_layout
19681
19682 \begin_layout Itemize
19683 非ロック状態.読み込まれたファイルは,読み込み専用モードになります.編集するためには,チェックアウトする必要があります.
19684 \emph on
19685 チェックアウト
19686 \emph default
19687 を行うと,レポジトリからの更新と,書き込みロックの獲得が行われます.ロックの獲得ができないと,非ロック状態から出ることができません.
19688 \end_layout
19689
19690 \begin_layout Itemize
19691 ロック状態.読み込まれたファイルは,「通常の」編集モードになります.他のユーザには,このファイルを編集する許可が与えられません.
19692 \emph on
19693 チェックイン
19694 \emph default
19695 を行うと,変更のコミットと書き込みロックの解放が行われます.文書に変更が加えられなかった場合には,コミットは実行されず
19696 \begin_inset Foot
19697 status collapsed
19698
19699 \begin_layout Plain Layout
19700 コミットは実行されないのに,コミットメッセージを入力するよう促されますが,驚かないでください.
19701 \end_layout
19702
19703 \end_inset
19704
19705 ,書き込みロックの解放のみが行われます.
19706 \end_layout
19707
19708 \begin_layout Standard
19709 SVNコマンド:
19710 \end_layout
19711
19712 \begin_layout Labeling
19713 \labelwidthstring 00.00.0000
19714 チェックイン: 
19715 \begin_inset Flex Code
19716 status collapsed
19717
19718 \begin_layout Plain Layout
19719 svn commit -q -m
19720 \begin_inset Quotes erd
19721 \end_inset
19722
19723 <説明>
19724 \begin_inset Quotes erd
19725 \end_inset
19726
19727  
19728 \begin_inset Quotes eld
19729 \end_inset
19730
19731 <ファイル名>
19732 \begin_inset Quotes erd
19733 \end_inset
19734
19735
19736 \end_layout
19737
19738 \end_inset
19739
19740
19741 \begin_inset Newline newline
19742 \end_inset
19743
19744
19745 \begin_inset Flex Code
19746 status collapsed
19747
19748 \begin_layout Plain Layout
19749 svn unlock 
19750 \begin_inset Quotes eld
19751 \end_inset
19752
19753 <ファイル名>
19754 \begin_inset Quotes erd
19755 \end_inset
19756
19757
19758 \end_layout
19759
19760 \end_inset
19761
19762
19763 \end_layout
19764
19765 \begin_layout Labeling
19766 \labelwidthstring 00.00.0000
19767 チェックアウト: 
19768 \begin_inset Flex Code
19769 status collapsed
19770
19771 \begin_layout Plain Layout
19772 svn update 
19773 \begin_inset Quotes eld
19774 \end_inset
19775
19776 <ファイル名>
19777 \begin_inset Quotes erd
19778 \end_inset
19779
19780
19781 \end_layout
19782
19783 \end_inset
19784
19785
19786 \begin_inset Newline newline
19787 \end_inset
19788
19789
19790 \begin_inset Flex Code
19791 status collapsed
19792
19793 \begin_layout Plain Layout
19794 svn unlock 
19795 \begin_inset Quotes eld
19796 \end_inset
19797
19798 <ファイル名>
19799 \begin_inset Quotes erd
19800 \end_inset
19801
19802
19803 \end_layout
19804
19805 \end_inset
19806
19807
19808 \end_layout
19809
19810 \begin_layout Subsubsection
19811 自動ロック特性
19812 \begin_inset CommandInset label
19813 LatexCommand label
19814 name "subsec:自動ロック特性"
19815
19816 \end_inset
19817
19818
19819 \end_layout
19820
19821 \begin_layout Standard
19822 上述したような
19823 \begin_inset Flex Code
19824 status collapsed
19825
19826 \begin_layout Plain Layout
19827 .lyx
19828 \end_layout
19829
19830 \end_inset
19831
19832 ファイルに対する書き込み権限の自動設定は,
19833 \begin_inset Flex MenuItem
19834 status collapsed
19835
19836 \begin_layout Plain Layout
19837 ファイル\SpecialChar menuseparator
19838 バージョン管理\SpecialChar menuseparator
19839 ロック特性を使用
19840 \end_layout
19841
19842 \end_inset
19843
19844 で行うことができます.このコマンドは,SVNサーバでファイルがロックされていないときのみ使用可能状態になります(つまり,使用するにはチェックアウトが必要です).
19845 \end_layout
19846
19847 \begin_layout Standard
19848 SVNコマンド:
19849 \end_layout
19850
19851 \begin_layout Labeling
19852 \labelwidthstring 00.00.0000
19853 チェックイン: 
19854 \begin_inset Flex Code
19855 status collapsed
19856
19857 \begin_layout Plain Layout
19858 svn propset svn:needs-lock ON 
19859 \begin_inset Quotes eld
19860 \end_inset
19861
19862 <ファイル名>
19863 \begin_inset Quotes erd
19864 \end_inset
19865
19866
19867 \end_layout
19868
19869 \end_inset
19870
19871
19872 \end_layout
19873
19874 \begin_layout Labeling
19875 \labelwidthstring 00.00.0000
19876 チェックアウト: 
19877 \begin_inset Flex Code
19878 status collapsed
19879
19880 \begin_layout Plain Layout
19881 svn propdel svn:needs-lock 
19882 \begin_inset Quotes eld
19883 \end_inset
19884
19885 <ファイル名>
19886 \begin_inset Quotes erd
19887 \end_inset
19888
19889
19890 \end_layout
19891
19892 \end_inset
19893
19894
19895 \end_layout
19896
19897 \begin_layout Subsubsection
19898 \begin_inset CommandInset label
19899 LatexCommand label
19900 name "subsec:VCS改訂情報"
19901
19902 \end_inset
19903
19904 文書の改訂情報
19905 \end_layout
19906
19907 \begin_layout Standard
19908 文書中で改訂情報を有効化するにはいくつかの方法があります.
19909 \end_layout
19910
19911 \begin_layout Itemize
19912 \SpecialChar LyX
19913 による直接サポート
19914 \end_layout
19915
19916 \begin_deeper
19917 \begin_layout Itemize
19918 ツリー改訂情報(
19919 \begin_inset Flex Code
19920 status collapsed
19921
19922 \begin_layout Plain Layout
19923 vcs-tree-revision
19924 \end_layout
19925
19926 \end_inset
19927
19928 ).
19929 \begin_inset Flex Code
19930 status collapsed
19931
19932 \begin_layout Plain Layout
19933 svnversion
19934 \end_layout
19935
19936 \end_inset
19937
19938 コマンドの出力を返します.下記の表が,結果の読み方のヒントを与えるでしょう.
19939 \end_layout
19940
19941 \begin_layout Standard
19942 \align center
19943 \begin_inset Tabular
19944 <lyxtabular version="3" rows="6" columns="2">
19945 <features tabularvalignment="middle">
19946 <column alignment="center" valignment="top">
19947 <column alignment="center" valignment="top">
19948 <row>
19949 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19950 \begin_inset Text
19951
19952 \begin_layout Plain Layout
19953 出力
19954 \end_layout
19955
19956 \end_inset
19957 </cell>
19958 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
19959 \begin_inset Text
19960
19961 \begin_layout Plain Layout
19962 意味
19963 \end_layout
19964
19965 \end_inset
19966 </cell>
19967 </row>
19968 <row>
19969 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19970 \begin_inset Text
19971
19972 \begin_layout Plain Layout
19973 4123:4168
19974 \end_layout
19975
19976 \end_inset
19977 </cell>
19978 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
19979 \begin_inset Text
19980
19981 \begin_layout Plain Layout
19982 改訂版の混合した作業コピー
19983 \end_layout
19984
19985 \end_inset
19986 </cell>
19987 </row>
19988 <row>
19989 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19990 \begin_inset Text
19991
19992 \begin_layout Plain Layout
19993 4168M
19994 \end_layout
19995
19996 \end_inset
19997 </cell>
19998 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
19999 \begin_inset Text
20000
20001 \begin_layout Plain Layout
20002 修正された作業コピー
20003 \end_layout
20004
20005 \end_inset
20006 </cell>
20007 </row>
20008 <row>
20009 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20010 \begin_inset Text
20011
20012 \begin_layout Plain Layout
20013 4123S
20014 \end_layout
20015
20016 \end_inset
20017 </cell>
20018 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20019 \begin_inset Text
20020
20021 \begin_layout Plain Layout
20022 スイッチされた作業コピー
20023 \end_layout
20024
20025 \end_inset
20026 </cell>
20027 </row>
20028 <row>
20029 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20030 \begin_inset Text
20031
20032 \begin_layout Plain Layout
20033 4123P
20034 \end_layout
20035
20036 \end_inset
20037 </cell>
20038 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20039 \begin_inset Text
20040
20041 \begin_layout Plain Layout
20042 チェックアウト頻度が低かったことによる不完全な作業コピー
20043 \end_layout
20044
20045 \end_inset
20046 </cell>
20047 </row>
20048 <row>
20049 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
20050 \begin_inset Text
20051
20052 \begin_layout Plain Layout
20053 4123:4168MS
20054 \end_layout
20055
20056 \end_inset
20057 </cell>
20058 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
20059 \begin_inset Text
20060
20061 \begin_layout Plain Layout
20062 改訂版が混合し,修正され,スイッチされた作業コピー
20063 \end_layout
20064
20065 \end_inset
20066 </cell>
20067 </row>
20068 </lyxtabular>
20069
20070 \end_inset
20071
20072
20073 \end_layout
20074
20075 \begin_layout Itemize
20076 ファイル改訂情報.
20077 \begin_inset Flex Code
20078 status collapsed
20079
20080 \begin_layout Plain Layout
20081 svn
20082 \begin_inset space ~
20083 \end_inset
20084
20085 info
20086 \begin_inset space ~
20087 \end_inset
20088
20089 --xml
20090 \begin_inset space ~
20091 \end_inset
20092
20093 file.lyx
20094 \end_layout
20095
20096 \end_inset
20097
20098 の出力を解析したものが返されます.サポートされるフラグは
20099 \end_layout
20100
20101 \begin_deeper
20102 \begin_layout Itemize
20103 最終コミットのバージョン番号(
20104 \begin_inset Flex Code
20105 status collapsed
20106
20107 \begin_layout Plain Layout
20108 vcs-revision
20109 \end_layout
20110
20111 \end_inset
20112
20113
20114 \end_layout
20115
20116 \begin_layout Itemize
20117 最終コミットの著者(
20118 \begin_inset Flex Code
20119 status collapsed
20120
20121 \begin_layout Plain Layout
20122 vcs-author
20123 \end_layout
20124
20125 \end_inset
20126
20127
20128 \end_layout
20129
20130 \begin_layout Itemize
20131 最終コミットの日付(
20132 \begin_inset Flex Code
20133 status collapsed
20134
20135 \begin_layout Plain Layout
20136 vcs-date
20137 \end_layout
20138
20139 \end_inset
20140
20141
20142 \end_layout
20143
20144 \begin_layout Itemize
20145 最終コミットの時間(
20146 \begin_inset Flex Code
20147 status collapsed
20148
20149 \begin_layout Plain Layout
20150 vcs-time
20151 \end_layout
20152
20153 \end_inset
20154
20155
20156 \end_layout
20157
20158 \end_deeper
20159 \begin_layout Standard
20160 これらの情報は,情報差込枠で得ることができます(例:
20161 \begin_inset Flex Code
20162 status collapsed
20163
20164 \begin_layout Plain Layout
20165 info-insert buffer vcs-date
20166 \end_layout
20167
20168 \end_inset
20169
20170 ).これらの情報は,ファイルをsvn管理下に置いたときのみ(すなわち使用中文書の
20171 \begin_inset Flex Code
20172 status collapsed
20173
20174 \begin_layout Plain Layout
20175 .svn
20176 \end_layout
20177
20178 \end_inset
20179
20180 ディレクトリがあるときのみ)利用可能です.
20181 \end_layout
20182
20183 \end_deeper
20184 \begin_layout Itemize
20185 もう一つの—ハッカー的な—方法は,SVNキーワードを使用する方法です
20186 \begin_inset Foot
20187 status collapsed
20188
20189 \begin_layout Plain Layout
20190 http://svnbook.red-bean.com/en/1.4/svn.advanced.props.special.keywords.html
20191 \end_layout
20192
20193 \end_inset
20194
20195 .簡単に言えば,ファイルキーワード特性を設定して(例:
20196 \family sans
20197 svn propset svn:keywords 'Rev' file.lyx
20198 \family default
20199 ),文書中にキーワード\SpecialChar TeX
20200 コード
20201 \begin_inset Foot
20202 status collapsed
20203
20204 \begin_layout Plain Layout
20205 これは,\SpecialChar LyX
20206 がキーワードタグの途中で改行してしまわないことを確実にするための,簡単な方法です.
20207 \end_layout
20208
20209 \end_inset
20210
20211 タグ(例:
20212 \begin_inset Flex Code
20213 status collapsed
20214
20215 \begin_layout Plain Layout
20216 $Rev$
20217 \end_layout
20218
20219 \end_inset
20220
20221 )を貼り付けるのです.このようにして,SVNクライアントは,各更新やコミットの後に自動的に改訂番号を代入することができるのです(例:
20222 \begin_inset Flex Code
20223 status collapsed
20224
20225 \begin_layout Plain Layout
20226 $Rev: 59 $
20227 \end_layout
20228
20229 \end_inset
20230
20231 ).このアプローチにはいくつか問題があります.第一に,\SpecialChar TeX
20232 の世界では「$」文字は数式を表すのに使われるので,\SpecialChar LyX
20233 中の
20234 \begin_inset Formula $Rev$
20235 \end_inset
20236
20237 という数式表現が,すべて
20238 \begin_inset Formula $Rev:59$
20239 \end_inset
20240
20241 になってしまいます.その他のId・Date・Authorなどといったキーワードも同様です.第二に,SVN出力は使用中のロケールに依存するので,Dateが用いられ
20242 ると,SVNは,問題を引き起こすような文字列を容易に生成してしまいます.第三に,文書中には,番号だけでなく「Rev: 59」という文字列全体が表示されてしまいま
20243 す.Subversionがユーザ定義のキーワードを実装するまでは,このアプローチを信頼性を持って使用したり,\SpecialChar LyX
20244 がこれを直接サポートすることは,難しそうです.
20245 \end_layout
20246
20247 \begin_layout Subsection
20248 SVNとWindows環境
20249 \end_layout
20250
20251 \begin_layout Quote
20252 ユーザが,かなり早いうちに自分自身でコマンドライン操作を理解できないのであれば,TortoiseSVNを使った方が賢明でしょう.—P.
20253  A.
20254  ルービン
20255 \end_layout
20256
20257 \begin_layout Subsubsection
20258 準備
20259 \end_layout
20260
20261 \begin_layout Standard
20262 \SpecialChar LyX
20263 を導入して,Subversionレポジトリへのアクセス権を持っている他に,ユーザはSubversionクライアントプログラムを導入する必要があります.クライアン
20264 トプログラムのWindows用インストーラは
20265 \begin_inset CommandInset href
20266 LatexCommand href
20267 name "CollabNet"
20268 target "http://www.collab.net/nonav/downloads/subversion/"
20269 literal "false"
20270
20271 \end_inset
20272
20273 にあります.ユーザは
20274 \begin_inset CommandInset href
20275 LatexCommand href
20276 name "TortoiseSVN"
20277 target "http://tortoisesvn.tigris.org/"
20278 literal "false"
20279
20280 \end_inset
20281
20282 も導入することを考えるでしょう.これはSubversionの操作をWindows Explorerのコンテクスト(右クリック)メニューに統合します.\SpecialChar LyX
20283 外部で行う操
20284 作は,一般的にExplorerコンテクストメニューを使った方が便利です.TortoiseSVNは,\SpecialChar LyX
20285 自身が使用するクライアントプログラムの代わりとは成りませんので
20286 ,注意してください.
20287 \end_layout
20288
20289 \begin_layout Subsubsection
20290 文書をSubversion管理下に置くには
20291 \end_layout
20292
20293 \begin_layout Standard
20294 \SpecialChar LyX
20295 文書をSubversionのバージョン管理下に置く前に,その親ディレクトリをバージョン管理下に置かなくてはなりません.文書を,既にレポジトリに存在するプロジェク
20296 トに追加する際には,新規文書が置かれることになるディレクトリへ,プロジェクトをチェックアウトすることによって実現します.プロジェクト自体がバージョン管理下にない
20297 場合(たとえばこの文書が新規プロジェクトの最初のファイルである場合)には,このディレクトリをレポジトリにインポートしなくてはなりません.これは,\SpecialChar LyX
20298 の外部で行います
20299 .インポートもチェックアウトも共に,TortoiseSVNを使えば,Explorerのコンテクストメニューから簡単に終えることができます.あるいは,DOSプロン
20300 プトでコマンドライン・クライアントを使って成し遂げることもできます.TortoiseSVNを使ったプロジェクトのインポート手続きを下記で説明します.レポジトリは
20301 既に存在し,新規プロジェクトを
20302 \begin_inset Flex Code
20303 status collapsed
20304
20305 \begin_layout Plain Layout
20306 C:
20307 \backslash
20308 new project
20309 \end_layout
20310
20311 \end_inset
20312
20313 で開始するものとします.Subversionクライアントプログラムを使うための情報を得るには,DOSシェルで
20314 \begin_inset Flex Code
20315 status collapsed
20316
20317 \begin_layout Plain Layout
20318 svn --help
20319 \end_layout
20320
20321 \end_inset
20322
20323 を実行してください.
20324 \end_layout
20325
20326 \begin_layout Enumerate
20327 Windows Explorerで
20328 \begin_inset Flex Code
20329 status collapsed
20330
20331 \begin_layout Plain Layout
20332 C:
20333 \backslash
20334 new project
20335 \end_layout
20336
20337 \end_inset
20338
20339 を見つけ出して右クリックし,
20340 \begin_inset Flex MenuItem
20341 status collapsed
20342
20343 \begin_layout Plain Layout
20344 TortoiseSVN\SpecialChar menuseparator
20345 Repo-browser
20346 \end_layout
20347
20348 \end_inset
20349
20350 を選択してください.必要であれば,レポジトリのURLを調整し,OKをクリックしてください.
20351 \end_layout
20352
20353 \begin_layout Enumerate
20354 新規プロジェクトフォルダを置くレポジトリレベル(多くの場合最上位レベル)を右クリックし,
20355 \begin_inset Flex MenuItem
20356 status collapsed
20357
20358 \begin_layout Plain Layout
20359 Create folder\SpecialChar ldots
20360
20361 \end_layout
20362
20363 \end_inset
20364
20365 をクリックしてください.プロジェクトフォルダの名称を入力してOKをクリックしてください.必要であればログファイル用のメッセージを入力し,再びOKをクリックしてく
20366 ださい.新規プロジェクトフォルダがレポジトリに現れるはずです.最後にOKを再度クリックして,レポジトリブラウザを終了してください.
20367 \end_layout
20368
20369 \begin_layout Enumerate
20370 再度
20371 \begin_inset Flex Code
20372 status collapsed
20373
20374 \begin_layout Plain Layout
20375 C:
20376 \backslash
20377 new project
20378 \end_layout
20379
20380 \end_inset
20381
20382 を右クリックし,今度は
20383 \begin_inset Flex MenuItem
20384 status collapsed
20385
20386 \begin_layout Plain Layout
20387 SVN Checkout\SpecialChar ldots
20388
20389 \end_layout
20390
20391 \end_inset
20392
20393 を選択してください.レポジトリにたった今作成した,プロジェクトフォルダのURLを選択し,チェックアウトディレクトリを
20394 \begin_inset Flex Code
20395 status collapsed
20396
20397 \begin_layout Plain Layout
20398 C:
20399 \backslash
20400 new project
20401 \end_layout
20402
20403 \end_inset
20404
20405 に設定してから,OKをクリックしてください.フォルダが空でないことを警告されますが,OKをクリックして進んでください.すると,
20406 \begin_inset Flex Code
20407 status collapsed
20408
20409 \begin_layout Plain Layout
20410 C:
20411 \backslash
20412 new project
20413 \end_layout
20414
20415 \end_inset
20416
20417 の下に
20418 \begin_inset Flex Code
20419 status collapsed
20420
20421 \begin_layout Plain Layout
20422 .svn
20423 \end_layout
20424
20425 \end_inset
20426
20427 ディレクトリが作成されます.
20428 \end_layout
20429
20430 \begin_layout Enumerate
20431 \SpecialChar LyX
20432 で文書を新規作成するか開くかして,
20433 \begin_inset Flex MenuItem
20434 status collapsed
20435
20436 \begin_layout Plain Layout
20437 ファイル\SpecialChar menuseparator
20438 バージョン管理\SpecialChar menuseparator
20439 登録
20440 \end_layout
20441
20442 \end_inset
20443
20444 をクリックします.ログメッセージを入力してOKをクリックし,文書をバージョン管理にコミットしてください.
20445 \end_layout
20446
20447 \begin_layout Standard
20448 爾後,
20449 \begin_inset Flex MenuItem
20450 status collapsed
20451
20452 \begin_layout Plain Layout
20453 ファイル\SpecialChar menuseparator
20454 バージョン管理
20455 \end_layout
20456
20457 \end_inset
20458
20459 メニューのすべての機能が使用できるようになります.Windows ExplorerのTortoiseSVNコンテクストメニューか,コマンドプロンプトでのSubv
20460 ersionクライアントプログラムを使用して,文書をチェックイン・チェックアウトしたり,履歴を見たりといったことができるようになります.
20461 \end_layout
20462
20463 \begin_layout Subsubsection
20464 Windows下でSVNと共にSSHトンネルを使うには
20465 \end_layout
20466
20467 \begin_layout Standard
20468 Linuxに較べて,WindowsでSVNクライアントをSSH経由で通信するようにさせるのは,かなり厄介な仕事です.どのようにクライアント側を設定すればよいか,
20469 少なくとも幾分かのヒントをお示しするつもりですが,sshとWindowsコマンドラインの知識が前もって必要であり,それと共にかなりの量のフラストレーションが溜ま
20470 ることを覚悟しておいてください.
20471 \end_layout
20472
20473 \begin_layout Enumerate
20474 前節で述べたように,Windows用のSVNクライアントを入手してください.これが新規の導入である場合には,何らかのSVNコマンド(たとえば
20475 \begin_inset Flex Code
20476 status collapsed
20477
20478 \begin_layout Plain Layout
20479 svn --version
20480 \end_layout
20481
20482 \end_inset
20483
20484 )を実行して,configファイル群を生成させてください.これらは後で変更を加える必要があります.
20485 \end_layout
20486
20487 \begin_layout Enumerate
20488 Windows用のsshクライアントを選んでください.選択肢はたくさんありますが,ここではPutty tools
20489 \begin_inset Foot
20490 status open
20491
20492 \begin_layout Plain Layout
20493 \begin_inset Flex URL
20494 status collapsed
20495
20496 \begin_layout Plain Layout
20497
20498 http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html
20499 \end_layout
20500
20501 \end_inset
20502
20503
20504 \end_layout
20505
20506 \end_inset
20507
20508 のものを使用することとしましょう.クライアントが接続の度にパスワードを訊いてこないように,接続を自動化する必要があります.簡単にするために,追加的なパスワード保
20509 護などを加えない
20510 \begin_inset Flex Ruby
20511 status collapsed
20512
20513 \begin_layout Plain Layout
20514
20515 \begin_inset Argument post:1
20516 status collapsed
20517
20518 \begin_layout Plain Layout
20519 キー
20520 \end_layout
20521
20522 \end_inset
20523
20524
20525 \end_layout
20526
20527 \end_inset
20528
20529 のみを使用することとします.
20530 \end_layout
20531
20532 \begin_deeper
20533 \begin_layout Enumerate
20534 \begin_inset Flex Code
20535 status collapsed
20536
20537 \begin_layout Plain Layout
20538 puttygen
20539 \end_layout
20540
20541 \end_inset
20542
20543 を使って鍵を生成します..ppkプライベート鍵ファイルを保存し,パブリック鍵ファイルはサーバ側に置きます.SVNサーバがLinuxで走っている場合,このパブリック
20544 鍵の書式はLinuxのopensshと互換性がないために,「Public key for pasting into OpenSSH authorized_key
20545 s file:」編集フィールドから,直接サーバの
20546 \begin_inset Flex Code
20547 status collapsed
20548
20549 \begin_layout Plain Layout
20550 ~/.ssh/authorized_keys
20551 \end_layout
20552
20553 \end_inset
20554
20555 または
20556 \begin_inset Flex Code
20557 status collapsed
20558
20559 \begin_layout Plain Layout
20560 authorized_keys2
20561 \end_layout
20562
20563 \end_inset
20564
20565 ファイルにコピー&ペーストを行わなくてはならないことに注意してください.
20566 \end_layout
20567
20568 \begin_layout Enumerate
20569 Puttyのplinkを入手してください.SVNのconfigファイル
20570 \begin_inset Foot
20571 status collapsed
20572
20573 \begin_layout Plain Layout
20574 正確なパスはWindowsのバージョンに依りますが,通常は
20575 \begin_inset Flex Code
20576 status collapsed
20577
20578 \begin_layout Plain Layout
20579 c:
20580 \backslash
20581 Documents and Settings
20582 \backslash
20583 user
20584 \backslash
20585 Application Data
20586 \backslash
20587 Subversion
20588 \backslash
20589 config
20590 \end_layout
20591
20592 \end_inset
20593
20594
20595 \begin_inset Flex Code
20596 status collapsed
20597
20598 \begin_layout Plain Layout
20599 AppData
20600 \backslash
20601 Roaming
20602 \backslash
20603 Subversion
20604 \end_layout
20605
20606 \end_inset
20607
20608 辺りにあります.
20609 \end_layout
20610
20611 \end_inset
20612
20613 中の
20614 \begin_inset Flex Code
20615 status collapsed
20616
20617 \begin_layout Plain Layout
20618 [tunnels]
20619 \end_layout
20620
20621 \end_inset
20622
20623 セクションにsshコマンドを設定してください.例:
20624 \begin_inset Flex Code
20625 status collapsed
20626
20627 \begin_layout Plain Layout
20628 ssh=c:/path/plink.exe -i c:/path/private_key.ppk
20629 \end_layout
20630
20631 \end_inset
20632
20633
20634 \begin_inset Foot
20635 status collapsed
20636
20637 \begin_layout Plain Layout
20638 通常,正確なコマンドを機能させるには長い時間がかかり,それは多くの物事に依存します.たとえば,リモートサーバがPuttyなどの既定セッションとして保存されないよ
20639 うにしてください.うまく行かない場合には,まずSVNなしでplink経由の接続を試してください.
20640 \end_layout
20641
20642 \end_inset
20643
20644
20645 \end_layout
20646
20647 \end_deeper
20648 \begin_layout Enumerate
20649 SVNアーカイブをチェックアウトしてください.例:
20650 \begin_inset Newline newline
20651 \end_inset
20652
20653
20654 \begin_inset Flex Code
20655 status collapsed
20656
20657 \begin_layout Plain Layout
20658 svn co svn+ssh://user@server/repository_path
20659 \end_layout
20660
20661 \end_inset
20662
20663
20664 \end_layout
20665
20666 \begin_layout Subsubsection
20667 行末変換
20668 \end_layout
20669
20670 \begin_layout Standard
20671 共著者同士がLinuxとWindowsを混在させているとき,\SpecialChar LyX
20672 は.lyxファイル中で異なった行末記号を使用することになります.これは,\SpecialChar LyX
20673 の機能に関する限り問題になりま
20674 せんが,コミット差分は巨大になり,マージではコンフリクトを引き起こしがちです.幸いにして,SVNは,.lyxファイルを
20675 \begin_inset Flex Code
20676 status collapsed
20677
20678 \begin_layout Plain Layout
20679 native
20680 \end_layout
20681
20682 \end_inset
20683
20684 モードに切り替える際
20685 \begin_inset Foot
20686 status collapsed
20687
20688 \begin_layout Plain Layout
20689 手短には
20690 \begin_inset Flex Code
20691 status collapsed
20692
20693 \begin_layout Plain Layout
20694 svn propset svn:eol-style native FILE_NAME
20695 \end_layout
20696
20697 \end_inset
20698
20699
20700 \end_layout
20701
20702 \end_inset
20703
20704 ,CR/LF問題をどのように取り扱えばいいかを知っているので大丈夫です
20705 \begin_inset Foot
20706 status collapsed
20707
20708 \begin_layout Plain Layout
20709 \begin_inset Flex URL
20710 status collapsed
20711
20712 \begin_layout Plain Layout
20713
20714 http://svnbook.red-bean.com/en/1.4/svn.advanced.props.file-portability.html
20715 \end_layout
20716
20717 \end_inset
20718
20719
20720 \end_layout
20721
20722 \end_inset
20723
20724
20725 \end_layout
20726
20727 \begin_layout Subsection
20728 \SpecialChar LyX
20729 におけるGITコマンド
20730 \end_layout
20731
20732 \begin_layout Standard
20733 \SpecialChar LyX
20734 で,最小限のGITコマンドがサポートされるようになりました.これらのコマンドは,
20735 \family sans
20736 ファイル\SpecialChar menuseparator
20737 バージョン管理
20738 \family default
20739 にあります.リポジトリのアクセスに,パスワード保護されたsshを使用している場合には,ターミナルウィンドウでの操作をするように促されます.\SpecialChar LyX
20740 は,GIT
20741  1.7に対して試験を行っています
20742 \begin_inset Foot
20743 status collapsed
20744
20745 \begin_layout Plain Layout
20746 Windowsユーザーはgitにパスが通っていることを確認する必要があります.これは,\SpecialChar LyX
20747 中から
20748 \family sans
20749 ツール\SpecialChar menuseparator
20750 設定\SpecialChar menuseparator
20751 パス\SpecialChar menuseparator
20752 PATH接頭辞
20753 \family default
20754 で設定できます.
20755 \end_layout
20756
20757 \end_inset
20758
20759
20760 \end_layout
20761
20762 \begin_layout Standard
20763 GITと他のバージョン管理システムとの大きな相違点は,GITの配布形態にあります.伝統的なバージョン管理システムでは,リポジトリをホストする,中心となるサーバー
20764 があります.ユーザーは変更点をサーバーにコミットし,他のユーザーが行った更新分をサーバーから受け取ります.一方,GITでは,ユーザーは,ローカルのリポジトリにコ
20765 ミットを行います.ローカルリポジトリは,GITコマンドの
20766 \begin_inset Flex Code
20767 status open
20768
20769 \begin_layout Plain Layout
20770 pull
20771 \end_layout
20772
20773 \end_inset
20774
20775 または
20776 \begin_inset Flex Code
20777 status open
20778
20779 \begin_layout Plain Layout
20780 push
20781 \end_layout
20782
20783 \end_inset
20784
20785 を使って,1つ以上のリモートリポジトリと同期されます.\SpecialChar LyX
20786 は,リモートのGITリポジトリとは,一切関わりません.CVSやSVNの集権的リポジトリに対して行うのと同じ
20787 ことを,ローカルのリポジトリに対してのみ行います.リモートのGITリポジトリを使用している場合には,お好みのGITクライアントを使用して,
20788 \begin_inset Flex Code
20789 status open
20790
20791 \begin_layout Plain Layout
20792 pull
20793 \end_layout
20794
20795 \end_inset
20796
20797 または
20798 \begin_inset Flex Code
20799 status open
20800
20801 \begin_layout Plain Layout
20802 push
20803 \end_layout
20804
20805 \end_inset
20806
20807 の操作を行う必要があります.
20808 \end_layout
20809
20810 \begin_layout Subsubsection
20811 登録
20812 \end_layout
20813
20814 \begin_layout Standard
20815 お使いの文書が改訂管理下に置かれていなければ,メニューにはこの項目だけが表示されます.もし改訂管理が有効ならば,
20816 \family sans
20817 登録
20818 \family default
20819 項目は表示されません.
20820 \end_layout
20821
20822 \begin_layout Standard
20823 本コマンドは,既に文書のあるディレクトリをGIT管理下に置いている場合に
20824 \emph on
20825 のみ
20826 \emph default
20827 (すなわち
20828 \begin_inset Flex Code
20829 status collapsed
20830
20831 \begin_layout Plain Layout
20832 .git/index
20833 \end_layout
20834
20835 \end_inset
20836
20837 ファイルが存在する場合にのみ),お使いの文書をGITに登録します.つまり,アーカイブはご自分でチェックアウトしなくてはなりません.
20838 \end_layout
20839
20840 \begin_layout Standard
20841 すると,文書の最初の説明文を入力するように促されます.登録したファイルは,まだコミットされたわけではないことに注意してください.
20842 \end_layout
20843
20844 \begin_layout Standard
20845 実行されるGITコマンドは,
20846 \begin_inset Flex Code
20847 status collapsed
20848
20849 \begin_layout Plain Layout
20850 git add "<ファイル名>"
20851 \end_layout
20852
20853 \end_inset
20854
20855 です.
20856 \end_layout
20857
20858 \begin_layout Standard
20859 スイッチの説明は
20860 \begin_inset Flex Code
20861 status collapsed
20862
20863 \begin_layout Plain Layout
20864 man git
20865 \end_layout
20866
20867 \end_inset
20868
20869 をお読みください.
20870 \end_layout
20871
20872 \begin_layout Subsubsection
20873 変更をチェックイン
20874 \end_layout
20875
20876 \begin_layout Standard
20877 ファイルの編集を終えたら,変更をコミットします.このとき,変更の説明文を入れるよう促されます.その後,変更がコミットされます.
20878 \end_layout
20879
20880 \begin_layout Standard
20881 GITコマンド:
20882 \begin_inset Flex Code
20883 status collapsed
20884
20885 \begin_layout Plain Layout
20886 git commit -q -m
20887 \begin_inset Quotes erd
20888 \end_inset
20889
20890 <入力した説明文>
20891 \begin_inset Quotes erd
20892 \end_inset
20893
20894  "<ファイル名>"
20895 \end_layout
20896
20897 \end_inset
20898
20899
20900 \end_layout
20901
20902 \begin_layout Subsubsection
20903 リポジトリ版に戻す
20904 \end_layout
20905
20906 \begin_layout Standard
20907 これは,最後のチェックイン以降,文書に加えられた変更をすべて廃棄します.変更が廃棄される前に警告が表示されます.
20908 \end_layout
20909
20910 \begin_layout Standard
20911 GITコマンド:
20912 \begin_inset Flex Code
20913 status collapsed
20914
20915 \begin_layout Plain Layout
20916 git checkout -q 
20917 \begin_inset Quotes qld
20918 \end_inset
20919
20920 <ファイル名>
20921 \begin_inset Quotes qld
20922 \end_inset
20923
20924
20925 \end_layout
20926
20927 \end_inset
20928
20929
20930 \end_layout
20931
20932 \begin_layout Subsubsection
20933 ファイル名変更
20934 \end_layout
20935
20936 \begin_layout Standard
20937 これは,現行文書のファイル名を変更します.最後のチェックイン以降,変更が加えられていないサラの文書であることが要求されます.ファイル名とコピー操作の説明を入力す
20938 るように促され,その後,ローカルとリポジトリの両方でファイル名が変更されます.新旧ファイル名の文書の親ディレクトリが異なる場合には,コピーにインクルードされたフ
20939 ァイルの相対パスは,(
20940 \family sans
20941 ファイル\SpecialChar menuseparator
20942 名前をつけて保存\SpecialChar ldots
20943
20944 \family default
20945 と同様に)全て調整されます.最後に,新ファイル名を使ってファイルが再度読み込まれます.
20946 \end_layout
20947
20948 \begin_layout Labeling
20949 \labelwidthstring 00.00.0000
20950 GITコマンド: 
20951 \begin_inset space ~
20952 \end_inset
20953
20954
20955 \begin_inset Newline newline
20956 \end_inset
20957
20958
20959 \begin_inset Flex Code
20960 status collapsed
20961
20962 \begin_layout Plain Layout
20963 git mv "<ファイル名>" "<新ファイル名>"
20964 \end_layout
20965
20966 \end_inset
20967
20968
20969 \begin_inset Newline newline
20970 \end_inset
20971
20972
20973 \begin_inset Flex Code
20974 status collapsed
20975
20976 \begin_layout Plain Layout
20977 git commit
20978 \end_layout
20979
20980 \end_inset
20981
20982
20983 \end_layout
20984
20985 \begin_layout Subsubsection
20986 履歴を表示
20987 \end_layout
20988
20989 \begin_layout Standard
20990 これは,GIT文書の全履歴を表示します.
20991 \begin_inset Flex Code
20992 status collapsed
20993
20994 \begin_layout Plain Layout
20995 git log 
20996 \begin_inset Quotes qld
20997 \end_inset
20998
20999 <ファイル名>
21000 \begin_inset Quotes qld
21001 \end_inset
21002
21003
21004 \end_layout
21005
21006 \end_inset
21007
21008 の出力がブラウザに表示されます.
21009 \end_layout
21010
21011 \begin_layout Subsubsection
21012 改訂情報
21013 \end_layout
21014
21015 \begin_layout Standard
21016 \SpecialChar LyX
21017 は,ファイルの最終コミットのGITハッシュ番号・著者名・最終コミットの日時をサポートします.これらの情報は,すべて
21018 \begin_inset Flex Code
21019 status collapsed
21020
21021 \begin_layout Plain Layout
21022 git log -n 1 --pretty=format:%H%n%an%n%ai
21023 \end_layout
21024
21025 \end_inset
21026
21027 によって抽出されます.ツリーバージョン情報は,
21028 \begin_inset Flex Code
21029 status collapsed
21030
21031 \begin_layout Plain Layout
21032 git describe --abbrev --dirty --long
21033 \end_layout
21034
21035 \end_inset
21036
21037 で取得されます.詳細については,第
21038 \begin_inset CommandInset ref
21039 LatexCommand ref
21040 reference "subsec:VCS改訂情報"
21041
21042 \end_inset
21043
21044 節を参照してください.
21045 \end_layout
21046
21047 \begin_layout Subsection
21048 さらなる調整
21049 \end_layout
21050
21051 \begin_layout Standard
21052 最近になって
21053 \begin_inset Flex Code
21054 status collapsed
21055
21056 \begin_layout Plain Layout
21057 vc-command
21058 \end_layout
21059
21060 \end_inset
21061
21062 機構が付け加えられたおかげで,\SpecialChar LyX
21063 のパワーユーザは,改訂管理のための自製コマンドを作ることができるようになりました.
21064 \end_layout
21065
21066 \begin_layout Standard
21067 たとえば,以下のようにして,二つのTortoiseSVNコマンドを直接統合することができます.
21068 \end_layout
21069
21070 \begin_layout Description
21071 コミット: 
21072 \begin_inset Flex Code
21073 status collapsed
21074
21075 \begin_layout Plain Layout
21076 vc-command DR "." "TortoiseProc /command:commit /path:$$p"
21077 \end_layout
21078
21079 \end_inset
21080
21081
21082 \end_layout
21083
21084 \begin_layout Description
21085 元に戻す: 
21086 \begin_inset Flex Code
21087 status collapsed
21088
21089 \begin_layout Plain Layout
21090 vc-command DR "." "TortoiseProc /command:revert /path:$$p"
21091 \end_layout
21092
21093 \end_inset
21094
21095
21096 \end_layout
21097
21098 \begin_layout Subsection
21099 バージョン管理と文書比較
21100 \end_layout
21101
21102 \begin_layout Standard
21103 バージョン管理は,通常
21104 \begin_inset Flex Code
21105 status collapsed
21106
21107 \begin_layout Plain Layout
21108 diff
21109 \end_layout
21110
21111 \end_inset
21112
21113 ダンプを生成することによって,改訂版の間の変更点を検査するのが,典型的な使用法です.これは平文ファイルには有効なのですが,複雑な構造を持つ\SpecialChar LyX
21114 ファイルの場合には,あ
21115 まり便利ではありません.そこで,\SpecialChar LyX
21116 は独自の文書比較機能を提供しています.この機能を呼び出すには2つの方法があります.1つは,\SpecialChar LyX
21117
21118 \begin_inset Flex Code
21119 status collapsed
21120
21121 \begin_layout Plain Layout
21122 vc-compare
21123 \end_layout
21124
21125 \end_inset
21126
21127 関数を直接呼び出す方法であり(詳細は\SpecialChar LyX
21128 関数説明書を参照),もう1つはツールバーアイコン
21129 \begin_inset Info
21130 type  "icon"
21131 arg   "vc-compare"
21132 \end_inset
21133
21134 による方法,さらにはメニュー項目
21135 \begin_inset Info
21136 type  "menu"
21137 arg   "vc-compare"
21138 \end_inset
21139
21140 を使用する方法です.当該文書のうち,任意の2つの改訂版を比較することもできますし,編集中の現行版を古い改訂版と比較することもできます(このとき改訂版遡及数「
21141 \begin_inset Flex MenuItem
21142 status collapsed
21143
21144 \begin_layout Plain Layout
21145 0
21146 \end_layout
21147
21148 \end_inset
21149
21150 」は,編集中のファイルと最後にコミットした改訂版との比較を意味します).
21151 \end_layout
21152
21153 \begin_layout Standard
21154 この機能は,SVNとRCSでサポートされていますが,RCSは,より複雑なバージョン付けスキームを持っているため,制約があります.ダイアログ中で改訂版を指定する際
21155 の数字は,つねにRCS改訂番号の最後の数を指し示します(例:「1.2.35」版のときには「35」).現在のところ,改訂のGIT表記はサポートされておらず,
21156 \begin_inset Flex Code
21157 status collapsed
21158
21159 \begin_layout Plain Layout
21160 HEAD~X
21161 \end_layout
21162
21163 \end_inset
21164
21165
21166 \lang english
21167 .
21168 \lang japanese
21169 の形で表記されるXステップ前の改訂版を,編集中文書と比較することのみが可能です.
21170 \end_layout
21171
21172 \begin_layout Section
21173 文芸プログラミング
21174 \end_layout
21175
21176 \begin_layout Standard
21177
21178 \noun on
21179 Kayvan Sylvan
21180 \noun default
21181 (kayvan@sylvan.com)改訂 
21182 \noun on
21183 Edmar Wienskoski Jr.
21184 \noun default
21185 (edmar-w-jr@technologist.com)原文
21186 \end_layout
21187
21188 \begin_layout Subsection
21189 はじめに
21190 \end_layout
21191
21192 \begin_layout Standard
21193 この節の主な目的は,文芸的プログラミング(literate programming)のために,\SpecialChar LyX
21194 をどう使えばよいかをお見せすることです.ここでは,あなたがこのプロ
21195 グラミング技術をよくご存じで,「tangling」や「weaving」の意味するところを知っているものとして説明します.そうでない場合には,以下の各節にあるウェ
21196 ブリンクをたどってください.そこには,かつての開発の歴史から最新のツールチップまで,たくさんの良質なドキュメンテーションがあります.
21197 \end_layout
21198
21199 \begin_layout Standard
21200 また,あなたが,\SpecialChar LyX
21201 の設定を変更することを厭わない程度まで\SpecialChar LyX
21202 に習熟しており,Xリソースファイルにも親しんでいることを前提にしています.そうでない場合は,あなたの必要と
21203 するトピックを扱っている,\SpecialChar LyX
21204 の他の説明書で調べてください.
21205 \end_layout
21206
21207 \begin_layout Subsection
21208 文芸プログラミング
21209 \end_layout
21210
21211 \begin_layout Standard
21212 以下は,文芸プログラミング FAQからの抜粋です.
21213 \end_layout
21214
21215 \begin_layout Quotation
21216 文芸プログラミングは,人間が読むのに適した形でのドキュメンテーションとソースの組合わせです.実際,文芸的プログラムは楽しい読み物であるべきであり,さらには参加し
21217 たいとさえ思わせるべきなのです!(ボブ,ごめん.言わずにはいれなかった.)一般的に,文芸プログラムは,ソースとドキュメンテーションを同一ファイル上に結合したもの
21218 です.そして,文芸プログラミングツールは,ファイルを解析して,読むことのできるドキュメンテーションか,あるいはコンパイル可能なソースを生成します.文芸プログラミ
21219 ングのWEBスタイルは,D.
21220 \begin_inset space \thinspace{}
21221 \end_inset
21222
21223 E.
21224  Knuthが,\SpecialChar TeX
21225 組版ソフトウエアを開発中に作り出したものです.
21226 \end_layout
21227
21228 \begin_layout Standard
21229 他のエキスパートの発言です.
21230 \end_layout
21231
21232 \begin_layout Quotation
21233
21234 \emph on
21235 文芸プログラミングは,冗長なコメント付けと何が違いますか?
21236 \end_layout
21237
21238 \begin_layout Quotation
21239 3つの際立った特徴があります.重要な順に列挙すれば,
21240 \end_layout
21241
21242 \begin_deeper
21243 \begin_layout Itemize
21244 推敲の順序が柔軟
21245 \end_layout
21246
21247 \begin_layout Itemize
21248 ブラウジングの自動サポート
21249 \end_layout
21250
21251 \begin_layout Itemize
21252 特に図式と数式を含んだドキュメンテーションの組版
21253 \end_layout
21254
21255 \end_deeper
21256 \begin_layout Quotation
21257 などがあります.
21258 \end_layout
21259
21260 \begin_layout Standard
21261 あなたの興味に火を付けたところで書誌情報を見てみましょう.
21262 \end_layout
21263
21264 \begin_layout Subsubsection
21265 書誌情報
21266 \end_layout
21267
21268 \begin_layout Standard
21269 完全な文芸プログラミング FAQは
21270 \end_layout
21271
21272 \begin_layout Quote
21273 Literate Programming FAQ 
21274 \begin_inset Flex URL
21275 status collapsed
21276
21277 \begin_layout Plain Layout
21278
21279 http://www.literateprogramming.com/lpfaq.pdf
21280 \end_layout
21281
21282 \end_inset
21283
21284
21285 \end_layout
21286
21287 \begin_layout Standard
21288 にあります.
21289 \end_layout
21290
21291 \begin_layout Standard
21292 このFAQには,23(二十三です!)の文芸プログラミング用ツールが列挙されています.一部のツールは,特定のプログラミング言語用に特化したものですが,一般的な対象
21293 を持つものもあります.私は自分で使うのに,いくつかの理由から
21294 \noun on
21295 Noweb
21296 \noun default
21297 を選びました.
21298 \end_layout
21299
21300 \begin_layout Itemize
21301 説明文書を\SpecialChar LaTeX
21302 でもHTMLでも出力できる.
21303 \end_layout
21304
21305 \begin_layout Itemize
21306 オープンアーキテクチャを持っているので,新しいフィルタをプラグインとして加えたり
21307 \begin_inset Foot
21308 status collapsed
21309
21310 \begin_layout Plain Layout
21311
21312 \emph on
21313 フィルタ
21314 \emph default
21315 は,与えられたデータストリームを読み込み,操作されたデータストリームを出力するプログラムです.このようにして,(文芸コードを含んだ)WEBファイルを,Cプログラ
21316 ムコードや\SpecialChar LaTeX
21317 コードのみを含むファイルに変換することができます.
21318 \end_layout
21319
21320 \end_inset
21321
21322 ,自分が必要な特別な処理を実行することが容易である.
21323 \end_layout
21324
21325 \begin_layout Itemize
21326 すでに利用可能となっているフィルタの良質なコレクションがある(HTMLはその一つです).
21327 \end_layout
21328
21329 \begin_layout Itemize
21330 無料である.
21331 \end_layout
21332
21333 \begin_layout Standard
21334 Nowebのウェブページは
21335 \end_layout
21336
21337 \begin_layout Quote
21338 Nowebホームページ 
21339 \begin_inset Flex URL
21340 status collapsed
21341
21342 \begin_layout Plain Layout
21343
21344 https://www.cs.tufts.edu/~nr/noweb/
21345 \end_layout
21346
21347 \end_inset
21348
21349
21350 \end_layout
21351
21352 \begin_layout Standard
21353 にあります.ここから始めれば,たくさんの興味深いリンクや,文芸プログラミングの用例にたどり着くことができます.
21354 \end_layout
21355
21356 \begin_layout Subsection
21357 \SpecialChar LyX
21358 とNowebを使った文芸プログラミング
21359 \end_layout
21360
21361 \begin_layout Standard
21362 \SpecialChar LyX
21363 における文芸プログラミングのサポートは,\SpecialChar LyX
21364 の汎用変換機構を使用して実現しています.このサポートは「Noweb非依存」的な方法で提供されているので,LyXの設定を変
21365 更するだけで,自分の好きな他の文芸プログラミングツールを使って,この新しい\SpecialChar LyX
21366 の機能を利用することができます.
21367 \end_layout
21368
21369 \begin_layout Subsubsection
21370 ドキュメントとコードの生成(weavingおよびtangling)
21371 \end_layout
21372
21373 \begin_layout Paragraph
21374 nowebモジュールの使用
21375 \end_layout
21376
21377 \begin_layout Standard
21378 Nowebと\SpecialChar LyX
21379 の導入に成功したならば,新規文書を開いたときにはいつも,文書クラスを選択した後,
21380 \family sans
21381 文書\SpecialChar menuseparator
21382 設定
21383 \family default
21384 メニューで「noweb」モジュールを追加するようにしてください.Nowebが正しく導入されていれば,「モジュール」リンクをクリックした際,利用可能リストに「no
21385 web」モジュールが表示され,文書に追加できるようになっています.
21386 \end_layout
21387
21388 \begin_layout Paragraph
21389 コードの入力
21390 \end_layout
21391
21392 \begin_layout Standard
21393 \SpecialChar LyX
21394 では,
21395 \begin_inset Flex Noun
21396 status collapsed
21397
21398 \begin_layout Plain Layout
21399 Chunk
21400 \end_layout
21401
21402 \end_inset
21403
21404 という名前の拡張差込枠を使えば,コードを入力することができます.Nowebは次のようにchunks を区切ります.
21405 \end_layout
21406
21407 \begin_layout LyX-Code
21408 <<My code>>=
21409 \end_layout
21410
21411 \begin_layout LyX-Code
21412   code
21413 \end_layout
21414
21415 \begin_layout LyX-Code
21416   more code
21417 \end_layout
21418
21419 \begin_layout LyX-Code
21420   even more code
21421 \end_layout
21422
21423 \begin_layout LyX-Code
21424   @
21425 \end_layout
21426
21427 \begin_layout Standard
21428 問題は<<と@の間にあるものを完全にそのままの形で扱わなければならないことです.つまり,\SpecialChar LyX
21429 は,この間に書かれたものを特別に解釈することは決してあってはなりません.
21430 これも
21431 \begin_inset Flex Noun
21432 status collapsed
21433
21434 \begin_layout Plain Layout
21435 Chunk
21436 \end_layout
21437
21438 \end_inset
21439
21440 によって取り扱われ,通常のテキスト差込枠のように見えますが,自由に空白を入れることができます.
21441 \end_layout
21442
21443 \begin_layout Standard
21444 特殊な注釈として,chunk内でNowebの「%def」を使えば,Nowebのidentifierの相互参照に項目を加えることができます.次の例を見てください.
21445 \end_layout
21446
21447 \begin_layout LyX-Code
21448 <<My chunk>>=
21449 \end_layout
21450
21451 \begin_layout LyX-Code
21452 def some_function(args):
21453 \end_layout
21454
21455 \begin_layout LyX-Code
21456    "This is the doc string for this function."
21457 \end_layout
21458
21459 \begin_layout LyX-Code
21460    print "My args: ", args
21461 \end_layout
21462
21463 \begin_layout LyX-Code
21464 @ %def some_function
21465 \end_layout
21466
21467 \begin_layout Standard
21468 これをどのように使って,その結果相互参照がどうなるかは
21469 \emph on
21470 LIBDIR/examples/listerrors.lyx
21471 \emph default
21472 の中の文芸pythonプログラムを見るとよくわかります.
21473 \end_layout
21474
21475 \begin_layout Paragraph
21476 説明文書の生成
21477 \end_layout
21478
21479 \begin_layout Standard
21480 この時点で,適切な文書クラスを持ち,いくつかのコードとテキストが入った新規文書ファイルが作成されているはずです.これをどうやって印刷したらいいのでしょう.答えは
21481 簡単で,通常の文書で行うように
21482 \family sans
21483 文書\SpecialChar menuseparator
21484 表示
21485 \family default
21486 等を選ぶだけです.特別な手続きは必要ありません.
21487 \end_layout
21488
21489 \begin_layout Standard
21490 理解を助けるために,\SpecialChar LyX
21491 の内部で何が起っているかを説明しておきましょう.
21492 \end_layout
21493
21494 \begin_layout Enumerate
21495
21496 \family sans
21497 文書\SpecialChar menuseparator
21498 更新
21499 \family default
21500 が選択されると,\SpecialChar LaTeX
21501 ファイルがつくられます.
21502 \end_layout
21503
21504 \begin_deeper
21505 \begin_layout Standard
21506 文書が文芸プログラミング用のクラスであった場合には,拡張子に(
21507 \begin_inset Flex MenuItem
21508 status collapsed
21509
21510 \begin_layout Plain Layout
21511 設定
21512 \end_layout
21513
21514 \end_inset
21515
21516 パネルで設定した)文芸プログラム用のものがつけられます.それ以外は .texが拡張子に使われます.
21517 \end_layout
21518
21519 \end_deeper
21520 \begin_layout Enumerate
21521 違いがファイル名だけなのに注意してください.\SpecialChar LyX
21522 による特別な処理は必要ありません.
21523 \begin_inset Flex Noun
21524 status collapsed
21525
21526 \begin_layout Plain Layout
21527 Chunk
21528 \end_layout
21529
21530 \end_inset
21531
21532 差込枠でコードを入力するのだけがポイントです.
21533 \end_layout
21534
21535 \begin_layout Enumerate
21536 文書が何らかの文芸プログラムクラスなら,\SpecialChar LyX
21537 は,\SpecialChar LyX
21538 からNowebへの内部変換子を用い,それからNowebから\SpecialChar LaTeX
21539 への変換子
21540 \begin_inset Foot
21541 status collapsed
21542
21543 \begin_layout Plain Layout
21544 これらの変換子は,
21545 \family sans
21546 ツール\SpecialChar menuseparator
21547 設定
21548 \family default
21549 パネルの変換子タブに定義されています.変換子の一般的な情報については,取扱説明書『
21550 \emph on
21551 カスタマイズ篇
21552 \emph default
21553 』の「
21554 \emph on
21555 変換子
21556 \emph default
21557 」の節をご覧ください.
21558 \end_layout
21559
21560 \end_inset
21561
21562 を使って\SpecialChar LaTeX
21563 ファイルを生成します.
21564 \end_layout
21565
21566 \begin_deeper
21567 \begin_layout Standard
21568 それ以外の場合はこのステップを飛ばします.
21569 \end_layout
21570
21571 \end_deeper
21572 \begin_layout Enumerate
21573 最後に\SpecialChar LaTeX
21574 が実行され,通常の文書と同じ後処理が行われます.
21575 \end_layout
21576
21577 \begin_layout Standard
21578 様々な変換子が実行するコマンドを変更すれば,簡単に,特定の「文芸プログラムツール」から変更することができます.
21579 \end_layout
21580
21581 \begin_layout Paragraph
21582 コードの生成
21583 \end_layout
21584
21585 \begin_layout Standard
21586 ビルドメニューが選ばれた場合や,それに対応するツールバーのボタンが押された場合,上のステップ1と同様に\SpecialChar LaTeX
21587 ファイルが生成されます.それから\SpecialChar LyX
21588
21589 \family typewriter
21590 Noweb->Program
21591 \family default
21592 のコンバータを起動します.通常は,このコンバータは(他のコンバータと同じように)2つの部分からできています.
21593 \end_layout
21594
21595 \begin_layout Enumerate
21596 変換プログラム.このプログラムは,一つのフォーマットから他のフォーマットへの変換を行います(この場合は,Nowebフォーマットからプログラムの疑似フォーマットへ
21597 変換します).
21598 \end_layout
21599
21600 \begin_layout Enumerate
21601 エラーログ解析子.これはエラーメッセージを\SpecialChar LyX
21602 が理解できる形へ書き直します.これによって,\SpecialChar LyX
21603 はファイルバッファの正しい位置へエラーボックスを配置することができます.
21604 \end_layout
21605
21606 \begin_layout Standard
21607 冒頭部,「変換子」設定は
21608 \end_layout
21609
21610 \begin_layout LyX-Code
21611
21612 \family typewriter
21613 build-script $$i $$r
21614 \end_layout
21615
21616 \begin_layout Standard
21617 と指定します.これは基本的に,\SpecialChar LyX
21618
21619 \begin_inset Quotes erd
21620 \end_inset
21621
21622
21623 \family typewriter
21624 build-script
21625 \family default
21626
21627 \begin_inset Quotes erd
21628 \end_inset
21629
21630 (プログラムかスクリプト名)を(一般には\SpecialChar LyX
21631 の一時ファイル用のディレクトリにつくられる),Nowebファイルの名前と元の\SpecialChar LyX
21632 ファイルのディレクトリパスを使って呼び出すこ
21633 とを意味しています.
21634 \end_layout
21635
21636 \begin_layout Standard
21637 以下に「build-script」の一例を書いておきます.パスが通っているディレクトリに置いて使います.
21638 \end_layout
21639
21640 \begin_layout LyX-Code
21641
21642 \family sans
21643 #!/bin/sh
21644 \end_layout
21645
21646 \begin_layout LyX-Code
21647
21648 \family sans
21649 #
21650 \end_layout
21651
21652 \begin_layout LyX-Code
21653
21654 \family sans
21655 notangle -Rbuild-script $1 | env NOWEB_SOURCE=$1 NOWEB_OUTPUT_DIR=$2 sh
21656 \end_layout
21657
21658 \begin_layout Standard
21659 変換子設定の次の部分は「フラグ」で,これは
21660 \end_layout
21661
21662 \begin_layout LyX-Code
21663
21664 \family typewriter
21665 parselog=$$s/scripts/listerrors
21666 \end_layout
21667
21668 \begin_layout Standard
21669 に設定されます.
21670 \begin_inset Newline newline
21671 \end_inset
21672
21673 これは,
21674 \begin_inset Quotes erd
21675 \end_inset
21676
21677 build-script
21678 \begin_inset Quotes erd
21679 \end_inset
21680
21681 プロセスが生成したエラーを
21682 \begin_inset Quotes erd
21683 \end_inset
21684
21685 listerrors
21686 \begin_inset Quotes erd
21687 \end_inset
21688
21689 プログラムを介して処理するものです.
21690 \end_layout
21691
21692 \begin_layout Standard
21693 ビルドは,通常\SpecialChar LyX
21694 の一時ディレクトリで行われるので,変換によって生成されたファイルはそのディレクトリに置かれます.\SpecialChar LyX
21695 は,主要ファイルとみなされるものをコピーして取り出
21696 しますが,
21697 \family typewriter
21698 Noweb→プログラム
21699 \family default
21700 変換は複数のファイルを生成することがあるので,\SpecialChar LyX
21701 を閉じる際に大半が削除される可能性があります.これが,NOWEB_OUTPUT_DIR環境変数を渡して,build
21702 -script chunkが生成したファイルをその場所に置かれるようにする理由です.
21703 \end_layout
21704
21705 \begin_layout Paragraph
21706 文章中でのプログラムの構築操作の説明
21707 \end_layout
21708
21709 \begin_layout Standard
21710 \SpecialChar LyX
21711 とNowebの統合の最後の部分は,
21712 \begin_inset Quotes eld
21713 \end_inset
21714
21715 build-script
21716 \begin_inset Quotes erd
21717 \end_inset
21718
21719  chunkです.一般に,あなたのプログラムの構築操作の説明それ自身をchunkに入れて文章中に含めなければなりません.上の例のnoweb用のbuild-scr
21720 iptでは,chunkを見つけるのにnotangleコマンドを使い,shを使って起動します.
21721 \end_layout
21722
21723 \begin_layout Standard
21724 以下に典型的なchunkがどのようなものかを書いておきます.
21725 \end_layout
21726
21727 \begin_layout LyX-Code
21728 <<build-script>>=
21729 \begin_inset Newline newline
21730 \end_inset
21731
21732
21733 \end_layout
21734
21735 \begin_layout LyX-Code
21736 #!/bin/sh
21737 \begin_inset Newline newline
21738 \end_inset
21739
21740
21741 \begin_inset Newline newline
21742 \end_inset
21743
21744 if [ -z "${NOWEB_SOURCE}" ]
21745 \begin_inset Newline newline
21746 \end_inset
21747
21748 then
21749 \end_layout
21750
21751 \begin_layout LyX-Code
21752 NOWEB_SOURCE=myfile.nw
21753 \begin_inset Newline newline
21754 \end_inset
21755
21756 fi
21757 \begin_inset Newline newline
21758 \end_inset
21759
21760 [...
21761  code to extract files ...
21762  use NOWEB_OUTPUT_DIR here ...]
21763 \begin_inset Newline newline
21764 \end_inset
21765
21766 [...
21767  code to compile files ...]
21768 \begin_inset Newline newline
21769 \end_inset
21770
21771 @
21772 \end_layout
21773
21774 \begin_layout Standard
21775
21776 \emph on
21777 LIBDIR/examples/listerrors.lyx
21778 \emph default
21779
21780 \emph on
21781 LIBDIR/examples/Literate.lyx
21782 \emph default
21783 を見てください.この2つのファイルには異なる実装のlisterrorsプログラムが含まれていて,これまで説明してきた各々の部分が全体としてどのようになるかをわか
21784 ってもらうための例です.また,
21785 \emph on
21786 LIBDIR/examples/noweb2lyx.lyx
21787 \emph default
21788 も見てください.面白いことに,これらの3つのファイルは,Python,C,Perlが各々使われていて,\SpecialChar LyX
21789 の文芸プログラミングのサポートがプログラム言語に依存しない
21790 ことを示しています.
21791 \end_layout
21792
21793 \begin_layout Subsubsection
21794 \SpecialChar LyX
21795 の設定
21796 \end_layout
21797
21798 \begin_layout Standard
21799 すべての文芸プログラムのための設定は,
21800 \family sans
21801 ツール\SpecialChar menuseparator
21802 設定
21803 \family default
21804 パネルの「ファイル処理」タブですることができます.重要な部分を見ておきましょう.
21805 \end_layout
21806
21807 \begin_layout Description
21808 「NoWeb」形式 ファイル形式タブで設定します.ここで,Noweb特有の設定を行います.
21809 \family sans
21810 GUI名
21811 \family default
21812
21813 \family typewriter
21814 NoWeb
21815 \family default
21816 に,拡張子を
21817 \family typewriter
21818 .nw
21819 \family default
21820 に設定してください.これによって,\SpecialChar LyX
21821 に変換プロセスの第一段階でつくられるファイルに
21822 \family typewriter
21823 .nw
21824 \family default
21825 という拡張子をつけることを指示します.
21826 \end_layout
21827
21828 \begin_layout Description
21829 プログラム形式 これは,変換の終着点を示すためだけの,空の形式です(これがあることで,変換子を作ることができます).
21830 \end_layout
21831
21832 \begin_layout Description
21833
21834 \family sans
21835 NoWeb
21836 \family default
21837 ->
21838 \family sans
21839 \SpecialChar LaTeX
21840
21841 \family default
21842  この変換子は,文芸的文書の「weaving」を行います.Nowebの場合,「
21843 \family typewriter
21844 noweave -delay -index $$i > $$o
21845 \family default
21846 」に設定されます.
21847 \end_layout
21848
21849 \begin_layout Description
21850
21851 \family sans
21852 NoWeb
21853 \family default
21854 ->
21855 \family sans
21856 Program
21857 \family default
21858  これは「tangling」を行います.上述のように,変換子は「
21859 \family typewriter
21860 build-script $$i $$r
21861 \family default
21862 」,フラグは「
21863 \family typewriter
21864 parselog=$$s/scripts/listerrors
21865 \family default
21866 」となります.
21867 \end_layout
21868
21869 \begin_layout Subsubsection
21870 デバッグ機能拡張
21871 \end_layout
21872
21873 \begin_layout Standard
21874 ddd/gdbまたは他のデバッガで使える「server-goto-file-row」関数が新たに\SpecialChar LyX
21875 サーバに実装されました.
21876 \end_layout
21877
21878 \begin_layout Standard
21879 ddd/gdbでデバッグしているとき,一つの
21880 \begin_inset Flex Ruby
21881 status collapsed
21882
21883 \begin_layout Plain Layout
21884
21885 \begin_inset Argument post:1
21886 status collapsed
21887
21888 \begin_layout Plain Layout
21889 キー
21890 \end_layout
21891
21892 \end_inset
21893
21894
21895 \end_layout
21896
21897 \end_inset
21898
21899 ストロークで現在実行している位置でテキストエディタを起動できます.既定のdddの設定ではShift-Ctrl-Vになっています.この設定はdddで
21900 \begin_inset Flex MenuItem
21901 status collapsed
21902
21903 \begin_layout Plain Layout
21904 ツール\SpecialChar menuseparator
21905 設定\SpecialChar menuseparator
21906 ファイル書式
21907 \end_layout
21908
21909 \end_inset
21910
21911 ウインドウを表示して,
21912 \begin_inset Flex MenuItem
21913 status collapsed
21914
21915 \begin_layout Plain Layout
21916 編集プログラム
21917 \end_layout
21918
21919 \end_inset
21920
21921 エントリを変えると変えることができます.
21922 \end_layout
21923
21924 \begin_layout Standard
21925 新しい\SpecialChar LyX
21926 サーバの関数と,このdddの機能を使うために
21927 \begin_inset Flex MenuItem
21928 status collapsed
21929
21930 \begin_layout Plain Layout
21931 編集プログラム
21932 \end_layout
21933
21934 \end_inset
21935
21936 を次のように設定してください.
21937 \end_layout
21938
21939 \begin_layout LyX-Code
21940
21941 \family sans
21942 echo "LYXCMD:monitor:server-goto-file-row:@FILE@ @LINE@" >~/.lyxpipe.in
21943 \end_layout
21944
21945 \begin_layout Standard
21946 こうしておくとdddを使っていてプログラムの編集したい場所があったとき,(dddのウインドウで)Shift-Ctrl-Vを押すだけでdddは\SpecialChar LyX
21947 サーバに情報を送り,\SpecialChar LyX
21948
21949 は同じファイルを表示し,カーソルはdddが示した場所へあらわれます.これでもうデバッグの最中に推測しながらスクロールして場所を探す必要がなくなります.
21950 \end_layout
21951
21952 \begin_layout Standard
21953 この機能が動くには\SpecialChar LyX
21954 サーバが利用可能でなければなりません(既定では\SpecialChar LyX
21955 サーバーは使えないようになっています).
21956 \end_layout
21957
21958 \begin_layout Standard
21959
21960 \begin_inset CommandInset ref
21961 LatexCommand ref
21962 reference "sec:サーバーを開始するには"
21963
21964 \end_inset
21965
21966 節にその方法が説明されています.
21967 \end_layout
21968
21969 \begin_layout Subsubsection
21970 ツールバー拡張
21971 \end_layout
21972
21973 \begin_layout Standard
21974 ツールバーに加えることのできる6つの新しいボタンがあります.そのうちの4つのボタンは
21975 \family sans
21976 標準
21977 \family default
21978 ・節・
21979 \family sans
21980 \SpecialChar LaTeX
21981
21982 \family default
21983
21984 \family sans
21985 \SpecialChar LyX
21986 コード
21987 \family default
21988 の段落環境へのショートカットであり,1つは拡張差込枠
21989 \family sans
21990 Chunk
21991 \family default
21992 へのショートカットです.最後の一つはファイルメニュー項目の「Build Program」への
21993 \begin_inset Flex Ruby
21994 status collapsed
21995
21996 \begin_layout Plain Layout
21997
21998 \family roman
21999 \series medium
22000 \shape up
22001 \size normal
22002 \emph off
22003 \bar no
22004 \noun off
22005 \color none
22006 捷径
22007 \family default
22008 \series default
22009 \shape default
22010 \size default
22011 \emph default
22012 \bar default
22013 \noun default
22014 \color inherit
22015
22016 \begin_inset Argument post:1
22017 status collapsed
22018
22019 \begin_layout Plain Layout
22020 ショートカット
22021 \end_layout
22022
22023 \end_inset
22024
22025
22026 \end_layout
22027
22028 \end_inset
22029
22030 です.
22031 \end_layout
22032
22033 \begin_layout Standard
22034 \SpecialChar LyX
22035 はツールバーで使うためのいくつものボタンを用意しています.私のツールバーはこの6つのショートカットに
22036 \begin_inset Flex MenuItem
22037 status collapsed
22038
22039 \begin_layout Plain Layout
22040 文書\SpecialChar menuseparator
22041 更新\SpecialChar menuseparator
22042 DVI
22043 \end_layout
22044
22045 \end_inset
22046
22047
22048 \begin_inset Flex MenuItem
22049 status collapsed
22050
22051 \begin_layout Plain Layout
22052 文書\SpecialChar menuseparator
22053 表示\SpecialChar menuseparator
22054 DVI
22055 \end_layout
22056
22057 \end_inset
22058
22059 を組み合わせたものになっています.
22060 \end_layout
22061
22062 \begin_layout LyX-Code
22063 Toolbar
22064 \end_layout
22065
22066 \begin_layout LyX-Code
22067   Layouts
22068 \end_layout
22069
22070 \begin_layout LyX-Code
22071   Icon "layout Standard"
22072 \end_layout
22073
22074 \begin_layout LyX-Code
22075   Icon "layout Section"
22076 \end_layout
22077
22078 \begin_layout LyX-Code
22079   Icon "layout latex"
22080 \end_layout
22081
22082 \begin_layout LyX-Code
22083   Icon "layout \SpecialChar LyX
22084 -Code"
22085 \end_layout
22086
22087 \begin_layout LyX-Code
22088   Icon "flex.insert Chunk"
22089 \end_layout
22090
22091 \begin_layout LyX-Code
22092   Separator
22093 \end_layout
22094
22095 \begin_layout LyX-Code
22096   Icon "buffer-view"
22097 \end_layout
22098
22099 \begin_layout LyX-Code
22100   Icon "buffer-typeset"
22101 \end_layout
22102
22103 \begin_layout LyX-Code
22104   Icon "build-program"
22105 \end_layout
22106
22107 \begin_layout LyX-Code
22108   Separator
22109 \end_layout
22110
22111 \begin_layout LyX-Code
22112 .
22113 \end_layout
22114
22115 \begin_layout LyX-Code
22116 .
22117 \end_layout
22118
22119 \begin_layout LyX-Code
22120 .
22121 \end_layout
22122
22123 \begin_layout LyX-Code
22124 End
22125 \end_layout
22126
22127 \begin_layout Subsubsection
22128 色の変更
22129 \end_layout
22130
22131 \begin_layout Standard
22132 \SpecialChar LyX
22133 ではいくつもの色を
22134 \begin_inset Flex MenuItem
22135 status collapsed
22136
22137 \begin_layout Plain Layout
22138 設定
22139 \end_layout
22140
22141 \end_inset
22142
22143 で変えることができます.人々が困りがちなのは,\SpecialChar LaTeX
22144 フォント色でしょう.これは,既定では赤になっていますが,chunkは\SpecialChar LaTeX
22145 フォントを使うことになっていて,文芸プログラミ
22146 ング文書には多くのchunkが現れるために,すべて赤で見ていると疲れてしまうかもしれません.これは,
22147 \begin_inset Flex MenuItem
22148 status collapsed
22149
22150 \begin_layout Plain Layout
22151 操作性\SpecialChar menuseparator
22152
22153 \end_layout
22154
22155 \end_inset
22156
22157 タブで変更することができます.
22158 \end_layout
22159
22160 \begin_layout Standard
22161 もう一つは,改行文字が画面に表示されていることでしょう.改行文字の色を背景の色と同じにすることで改行文字を見えなくできます.私は改行文字を背景の色に似ているが少
22162 し違う色にすることを勧めます.こうすると,改行文字があるのはわかりますが,じゃまにならないでしょう.
22163 \end_layout
22164
22165 \begin_layout Subsection
22166 \SpecialChar LyX
22167 とknitr/Sweave
22168 \end_layout
22169
22170 \begin_layout Standard
22171 knitrとSweaveへのサポートについては,用例ファイル
22172 \emph on
22173 knitr.lyx
22174 \emph default
22175 とSweave取扱説明書(
22176 \family sans
22177 ヘルプ\SpecialChar menuseparator
22178 用途別説明書
22179 \family default
22180 メニュー)に説明があります.
22181 \end_layout
22182
22183 \begin_layout Chapter
22184 特殊機能
22185 \begin_inset CommandInset label
22186 LatexCommand label
22187 name "chap:Special-features"
22188
22189 \end_inset
22190
22191
22192 \end_layout
22193
22194 \begin_layout Standard
22195 \SpecialChar LyX
22196 では,\SpecialChar LaTeX
22197 で可能なことは何でも出来ます.すべての\SpecialChar LaTeX
22198 の機能を直接サポートできるわけではありませんが,どんな場合でも\SpecialChar TeX
22199 コードを使用することはできます.本章は,ユーザの興味が
22200 有りそうな特別な機能について,若干取り上げます.図表やフロート,ボックス,注釈に関する特別な機能については,取扱説明書『
22201 \emph on
22202 埋込オブジェクト篇
22203 \emph default
22204 』をご参照ください.
22205 \end_layout
22206
22207 \begin_layout Section
22208 多段組
22209 \end_layout
22210
22211 \begin_layout Standard
22212 この機能は,文書設定の
22213 \family sans
22214 本文レイアウト
22215 \family default
22216 にある
22217 \family sans
22218 二段組文書
22219 \family default
22220 とは別の機能です.文書全体に二段組を行いたい場合には,
22221 \family sans
22222 二段組文書
22223 \family default
22224 オプションを利用することをお勧めします.その他の場合には,本機能をご使用ください.
22225 \end_layout
22226
22227 \begin_layout Standard
22228 文書中で多段組を行うには,\SpecialChar LaTeX
22229 パッケージ
22230 \begin_inset Flex Code
22231 status collapsed
22232
22233 \begin_layout Plain Layout
22234 multicol
22235 \end_layout
22236
22237 \end_inset
22238
22239
22240 \begin_inset Index idx
22241 status collapsed
22242
22243 \begin_layout Plain Layout
22244 \SpecialChar LaTeX
22245 ぱっけーじ @ \SpecialChar LaTeX
22246 パッケージ ! multicol
22247 \end_layout
22248
22249 \end_inset
22250
22251 を導入した上で,(
22252 \family sans
22253 文書\SpecialChar menuseparator
22254 設定\SpecialChar menuseparator
22255 モジュール
22256 \family default
22257 メニューから)
22258 \family sans
22259 多段組
22260 \family default
22261 モジュールを読み込んでください.
22262 \end_layout
22263
22264 \begin_layout Standard
22265 多段組中の脚注は,ページ下部に置かれ,各段の下ごとには置かれません.各段においては,フロートに
22266 \family sans
22267 段をまたぐ
22268 \family default
22269 オプションを使用する必要があるほかは,通常通りの使用をすることができます.
22270 \end_layout
22271
22272 \begin_layout Subsection
22273 基本
22274 \end_layout
22275
22276 \begin_layout Standard
22277 文章中で二段組を使用したい場合には,段組を始める場所で
22278 \family sans
22279 挿入\SpecialChar menuseparator
22280 任意設定差込枠\SpecialChar menuseparator
22281 多段組
22282 \family default
22283 メニューを使用して,多段組差込枠を挿入してください.二段組で印字されるべき文章は,全てこの差込枠の中に書いてください.
22284 \end_layout
22285
22286 \begin_layout Standard
22287 下記はその用例です.
22288 \end_layout
22289
22290 \begin_layout Standard
22291 \noindent
22292 \begin_inset Flex Multiple Columns
22293 status open
22294
22295 \begin_layout Plain Layout
22296 \noindent
22297
22298 \series bold
22299 \size small
22300 The Adventure of the Empty House
22301 \series default
22302
22303 \begin_inset Newline newline
22304 \end_inset
22305
22306 by Sir Arthur Conan Doyle
22307 \end_layout
22308
22309 \begin_layout Plain Layout
22310
22311 \size small
22312 It was in the spring of the year 1894 that all London was interested, and
22313  the fashionable world dismayed, by the murder of the Honourable Ronald
22314  Adair under most unusual and inexplicable circumstances.
22315  The public has already learned those particulars of the crime which came
22316  out in the police investigation, but a good deal was suppressed upon that
22317  occasion, since the case for the prosecution was so overwhelmingly strong
22318  that it was not necessary to bring forward all the facts.
22319  Only now, at the end of nearly ten years, am I allowed to supply those
22320  missing links which make up the whole of that remarkable chain.
22321  The crime was of interest in itself, but that interest was as nothing to
22322  me compared to the inconceivable sequel, which afforded me the greatest
22323  shock and surprise of any event in my adventurous life.
22324  Even now, after this long interval, I find myself thrilling as I think
22325  of it, and feeling once more that sudden flood of joy, amazement, and increduli
22326 ty which utterly submerged my mind.
22327  Let me say to that public, which has shown some interest in those glimpses
22328  which I have occasionally given them of the thoughts and actions of a very
22329  remarkable man, that they are not to blame me if I have not shared my knowledge
22330  with them, for I should have considered it my first duty to do so, had
22331  I not been barred by a positive prohibition from his own lips, which was
22332  only withdrawn upon the third of last month.
22333 \end_layout
22334
22335 \end_inset
22336
22337
22338 \end_layout
22339
22340 \begin_layout Standard
22341 三段以上にするには,カーソルを多段組差込枠の内部において,挿入\SpecialChar menuseparator
22342 段数メニューを使用してください.この差込枠の中に,欲しい段数を書き入れます(三段組の場合には「3」
22343 と書きます).
22344 \begin_inset Newline newline
22345 \end_inset
22346
22347 下記は三段組の例です.
22348 \end_layout
22349
22350 \begin_layout Standard
22351 \begin_inset Flex Multiple Columns
22352 status open
22353
22354 \begin_layout Plain Layout
22355
22356 \size footnotesize
22357 \begin_inset Argument 1
22358 status open
22359
22360 \begin_layout Plain Layout
22361
22362 3
22363 \end_layout
22364
22365 \end_inset
22366
22367 It can be imagined that my close intimacy with Sherlock Holmes had interested
22368  me deeply in crime, and that after his disappearance I never failed to
22369  read with care the various problems which came before the public.
22370  And I even attempted, more than once, for my own private satisfaction,
22371  to employ his methods in their solution, though with indifferent success.
22372  There was none, however, which appealed to me like this tragedy of Ronald
22373  Adair.
22374  As I read the evidence at the inquest, which led up to a verdict of willful
22375  murder against some person or persons unknown, I realized more clearly
22376  than I had ever done the loss which the community had sustained by the
22377  death of Sherlock Holmes.
22378  There were points about this strange business which would, I was sure,
22379  have specially appealed to him, and the efforts of the police would have
22380  been supplemented, or more probably anticipated, by the trained observation
22381  and the alert mind of the first criminal agent in Europe.
22382  All day, as I drove upon my round, I turned over the case in my mind and
22383  found no explanation which appeared to me to be adequate.
22384  At the risk of telling a twice-told tale, I will recapitulate the facts
22385  as they were known to the public at the conclusion of the inquest.
22386 \end_layout
22387
22388 \end_inset
22389
22390
22391 \end_layout
22392
22393 \begin_layout Standard
22394 お望みならば10段組まで組むことができますが,文書の読者にとっては,あまり気持ちのいいものではないでしょう.
22395 \end_layout
22396
22397 \begin_layout Standard
22398 \begin_inset Newpage newpage
22399 \end_inset
22400
22401
22402 \end_layout
22403
22404 \begin_layout Subsection
22405 段組中の段組
22406 \end_layout
22407
22408 \begin_layout Standard
22409 また,段中に段を組むこともできます.
22410 \end_layout
22411
22412 \begin_layout Standard
22413 \begin_inset Flex Multiple Columns
22414 status open
22415
22416 \begin_layout Plain Layout
22417
22418 \size footnotesize
22419 The Honourable Ronald Adair was the second son of the Earl of Maynooth,
22420  at that time governor of one of the Australian colonies.
22421  Adair's mother had returned from Australia to undergo the operation for
22422  cataract, and she, her son Ronald, and her daughter Hilda were living together
22423  at 427 Park Lane.
22424 \end_layout
22425
22426 \begin_layout Plain Layout
22427 \begin_inset Flex Multiple Columns
22428 status open
22429
22430 \begin_layout Plain Layout
22431
22432 \size footnotesize
22433 The youth moved in the best society
22434 \begin_inset space ~
22435 \end_inset
22436
22437 – had, so far as was known, no enemies and no particular vices.
22438  He had been engaged to Miss Edith Woodley, of Carstairs, but the engagement
22439  had been broken off by mutual consent some months before, and there was
22440  no sign that it had left any very profound feeling behind it.
22441  For the rest {sic} the man's life moved in a narrow and conventional circle,
22442  for his habits were quiet and his nature unemotional.
22443  Yet it was upon this easy-going young aristocrat that death came, in most
22444  strange and unexpected form, between the hours of ten and eleven-twenty
22445  on the night of March 30, 1894.
22446 \end_layout
22447
22448 \end_inset
22449
22450
22451 \end_layout
22452
22453 \begin_layout Plain Layout
22454
22455 \size footnotesize
22456 Ronald Adair was fond of cards
22457 \begin_inset space ~
22458 \end_inset
22459
22460 – playing continually, but never for such stakes as would hurt him.
22461  He was a member of the Baldwin, the Cavendish, and the Bagatelle card clubs.
22462  It was shown that, after dinner on the day of his death, he had played
22463  a rubber of whist at the latter club.
22464  He had also played there in the afternoon.
22465
22466 \size default
22467  
22468 \size footnotesize
22469 The evidence of those who had played with him
22470 \begin_inset space ~
22471 \end_inset
22472
22473 – Mr.
22474  Murray, Sir John Hardy, and Colonel Moran
22475 \begin_inset space ~
22476 \end_inset
22477
22478 – showed that the game was whist, and that there was a fairly equal fall
22479  of the cards.
22480  Adair might have lost five pounds, but not more.
22481  His fortune was a considerable one, and such a loss could not in any way
22482  affect him.
22483  He had played nearly every day at one club or other, but he was a cautious
22484  player, and usually rose a winner.
22485  It came out in evidence that, in partnership with Colonel Moran, he had
22486  actually won as much as four hundred and twenty pounds in a sitting, some
22487  weeks before, from Godfrey Milner and Lord Balmoral.
22488  So much for his recent history as it came out at the inquest.
22489 \end_layout
22490
22491 \end_inset
22492
22493
22494 \end_layout
22495
22496 \begin_layout Subsection
22497 応用例
22498 \end_layout
22499
22500 \begin_layout Standard
22501 本節の用例は,多段組のさらに特別な機能を示すためのものです.
22502 \end_layout
22503
22504 \begin_layout Standard
22505 多段組機能についてさらに知りたい場合には,\SpecialChar LaTeX
22506 パッケージ
22507 \begin_inset Flex Code
22508 status collapsed
22509
22510 \begin_layout Plain Layout
22511 multicol
22512 \end_layout
22513
22514 \end_inset
22515
22516
22517 \begin_inset CommandInset href
22518 LatexCommand href
22519 name "取扱説明書"
22520 target "http://mirror.ctan.org/macros/latex/required/tools/multicol.pdf"
22521 literal "false"
22522
22523 \end_inset
22524
22525 をご覧ください.
22526 \end_layout
22527
22528 \begin_layout Subsubsection
22529 序文
22530 \end_layout
22531
22532 \begin_layout Standard
22533 多段組に序文を追記するには,カーソルを多段組差込枠内部に置き,
22534 \family sans
22535 挿入\SpecialChar menuseparator
22536 序文
22537 \family default
22538 メニューを使用してください.序文は,この差込枠内に書いてください.
22539 \begin_inset Newline newline
22540 \end_inset
22541
22542 序文のある文章の例を掲げます.
22543 \end_layout
22544
22545 \begin_layout Standard
22546 \begin_inset VSpace bigskip
22547 \end_inset
22548
22549
22550 \end_layout
22551
22552 \begin_layout Standard
22553 \begin_inset Flex Multiple Columns
22554 status open
22555
22556 \begin_layout Plain Layout
22557 \begin_inset Argument 2
22558 status open
22559
22560 \begin_layout Plain Layout
22561 And the story continues and continues and continues and continues\SpecialChar ldots
22562
22563 \end_layout
22564
22565 \end_inset
22566
22567
22568 \size small
22569 On the evening of the crime, he returned from the club exactly at ten.
22570  His mother and sister were out spending the evening with a relation.
22571  The servant deposed that she heard him enter the front room on the second
22572  floor, generally used as his sitting-room.
22573  She had lit a fire there, and as it smoked she had opened the window.
22574  No sound was heard from the room until eleven-twenty, the hour of the return
22575  of Lady Maynooth and her daughter.
22576  Desiring to say good-night, she attempted to enter her son's room.
22577  The door was locked on the inside, and no answer could be got to their
22578  cries and knocking.
22579  Help was obtained, and the door forced.
22580  The unfortunate young man was found lying near the table.
22581  His head had been horribly mutilated by an expanding revolver bullet, but
22582  no weapon of any sort was to be found in the room.
22583 \end_layout
22584
22585 \end_inset
22586
22587
22588 \end_layout
22589
22590 \begin_layout Standard
22591 最初の\SpecialChar TeX
22592 コードの後に,節宣言コマンドを\SpecialChar TeX
22593 コードとして使用すれば,節見出しを前書きとして使用することができます.例えば,
22594 \end_layout
22595
22596 \begin_layout Standard
22597
22598 \series bold
22599
22600 \backslash
22601 subsection{小節見出し}
22602 \end_layout
22603
22604 \begin_layout Standard
22605 というコマンドは,小節を生成します.以下の例では,前書きが小々節になっています.
22606 \end_layout
22607
22608 \begin_layout Standard
22609 \begin_inset Flex Multiple Columns
22610 status open
22611
22612 \begin_layout Plain Layout
22613 \begin_inset Argument 2
22614 status open
22615
22616 \begin_layout Plain Layout
22617 \begin_inset ERT
22618 status collapsed
22619
22620 \begin_layout Plain Layout
22621
22622
22623 \backslash
22624 subsubsection{
22625 \end_layout
22626
22627 \end_inset
22628
22629 これは序文の小々節見出しです
22630 \begin_inset ERT
22631 status collapsed
22632
22633 \begin_layout Plain Layout
22634
22635 }
22636 \end_layout
22637
22638 \end_inset
22639
22640
22641 \end_layout
22642
22643 \end_inset
22644
22645
22646 \size small
22647 A minute examination of the circumstances served only to make the case more
22648  complex.
22649  In the first place, no reason could be given why the young man should have
22650  fastened the door upon the inside.
22651  There was the possibility that the murderer had done this, and had afterwards
22652  escaped by the window.
22653  The drop was at least twenty feet, however, and a bed of crocuses in full
22654  bloom lay beneath.
22655  Neither the flowers nor the earth showed any sign of having been disturbed,
22656  nor were there any marks upon the narrow strip of grass which separated
22657  the house from the road.
22658  Apparently, therefore, it was the young man himself who had fastened the
22659  door.
22660  But how did he come by his death? No one could have climbed up to the window
22661  without leaving traces.
22662  Suppose a man had fired through the window, he would indeed be a remarkable
22663  shot who could with a revolver inflict so deadly a wound.
22664  Again, Park Lane is a frequented thoroughfare; there is a cab stand within
22665  a hundred yards of the house.
22666  No one had heard a shot.
22667 \end_layout
22668
22669 \end_inset
22670
22671
22672 \end_layout
22673
22674 \begin_layout Standard
22675 多段組を開始する部分に,必要とされる6行を確保出来るだけの垂直スペースがページに残されていない場合,多段組の前に改行が挿入されます.前書きの行数如何では,この必
22676 要行数を変更したいかもしれません.これは,カーソルを多段組差込枠内部の(もしあれば)序文の後に置き,
22677 \family sans
22678 挿入\SpecialChar menuseparator
22679 改頁前の余白
22680 \family default
22681 メニューを使用することで設定できます.この差込枠に,余白の大きさを「5cm」などと書き込んでください.
22682 \end_layout
22683
22684 \begin_layout Standard
22685 以下の例では,
22686 \begin_inset Flex Code
22687 status collapsed
22688
22689 \begin_layout Plain Layout
22690 7
22691 \backslash
22692 baselineskip
22693 \end_layout
22694
22695 \end_inset
22696
22697 を用いて,必要行数を7行に指定しています(コマンド
22698 \begin_inset Flex Code
22699 status collapsed
22700
22701 \begin_layout Plain Layout
22702
22703 \backslash
22704 baselineskip
22705 \end_layout
22706
22707 \end_inset
22708
22709 は\SpecialChar TeX
22710 コードとして入力する必要があります).
22711 \end_layout
22712
22713 \begin_layout Standard
22714 \begin_inset Flex Multiple Columns
22715 status open
22716
22717 \begin_layout Plain Layout
22718 \begin_inset Argument 3
22719 status open
22720
22721 \begin_layout Plain Layout
22722 7
22723 \begin_inset ERT
22724 status collapsed
22725
22726 \begin_layout Plain Layout
22727
22728
22729 \backslash
22730 baselineskip
22731 \end_layout
22732
22733 \end_inset
22734
22735
22736 \end_layout
22737
22738 \end_inset
22739
22740
22741 \size small
22742 On the evening of the crime, he returned from the club exactly at ten.
22743  His mother and sister were out spending the evening with a relation.
22744  The servant deposed that she heard him enter the front room on the second
22745  floor, generally used as his sitting-room.
22746  She had lit a fire there, and as it smoked she had opened the window.
22747  No sound was heard from the room until eleven-twenty, the hour of the return
22748  of Lady Maynooth and her daughter.
22749  Desiring to say good-night, she attempted to enter her son's room.
22750  The door was locked on the inside, and no answer could be got to their
22751  cries and knocking.
22752  Help was obtained, and the door forced.
22753  The unfortunate young man was found lying near the table.
22754  His head had been horribly mutilated by an expanding revolver bullet, but
22755  no weapon of any sort was to be found in the room.
22756 \end_layout
22757
22758 \end_inset
22759
22760
22761 \end_layout
22762
22763 \begin_layout Subsubsection
22764 周囲の余白
22765 \end_layout
22766
22767 \begin_layout Standard
22768 多段組の前後の余白は,長さ
22769 \begin_inset Flex Code
22770 status collapsed
22771
22772 \begin_layout Plain Layout
22773
22774 \backslash
22775 multicolsep
22776 \end_layout
22777
22778 \end_inset
22779
22780 を変えることで変更することができます.例えば,\SpecialChar TeX
22781 コードで書かれたコマンド
22782 \end_layout
22783
22784 \begin_layout LyX-Code
22785
22786 \family sans
22787
22788 \backslash
22789 setlength{
22790 \backslash
22791 multicolsep}{3cm}
22792 \end_layout
22793
22794 \begin_layout Standard
22795 は,その値を3
22796 \begin_inset space \thinspace{}
22797 \end_inset
22798
22799 cmに変更します.この変更は,多段組が始まる前に指定しなくてはなりません.既定値は13
22800 \begin_inset space \thinspace{}
22801 \end_inset
22802
22803 ptです.
22804 \end_layout
22805
22806 \begin_layout Standard
22807 以下の例では,
22808 \begin_inset Flex Code
22809 status collapsed
22810
22811 \begin_layout Plain Layout
22812
22813 \backslash
22814 multicolsep
22815 \end_layout
22816
22817 \end_inset
22818
22819 は2.5
22820 \begin_inset space \thinspace{}
22821 \end_inset
22822
22823 cmに指定されています.
22824 \end_layout
22825
22826 \begin_layout Standard
22827 \begin_inset ERT
22828 status open
22829
22830 \begin_layout Plain Layout
22831
22832
22833 \backslash
22834 setlength{
22835 \backslash
22836 multicolsep}{2.5cm}
22837 \end_layout
22838
22839 \end_inset
22840
22841
22842 \end_layout
22843
22844 \begin_layout Standard
22845 \begin_inset Flex Multiple Columns
22846 status open
22847
22848 \begin_layout Plain Layout
22849
22850 \size small
22851 All day I turned these facts over in my mind, endeavouring to hit upon some
22852  theory which could reconcile them all, and to find that line of least resistanc
22853 e which my poor friend had declared to be the starting-point of every investigat
22854 ion.
22855  I confess that I made little progress.
22856  In the evening I strolled across the Park, and found myself about six o'clock
22857  at the Oxford Street end of Park Lane.
22858  A group of loafers upon the pavements, all staring up at a particular window,
22859  directed me to the house which I had come to see.
22860  A tall, thin man with coloured glasses, whom I strongly suspected of being
22861  a plain-clothes detective, was pointing out some theory of his own, while
22862  the others crowded round to listen to what he said.
22863  I got as near him as I could, but his observations seemed to me to be absurd,
22864  so I withdrew again in some disgust.
22865  As I did so I struck against an elderly, deformed man, who had been behind
22866  me, and I knocked down several books which he was carrying.
22867 \end_layout
22868
22869 \end_inset
22870
22871
22872 \end_layout
22873
22874 \begin_layout Standard
22875 \begin_inset Note Greyedout
22876 status open
22877
22878 \begin_layout Plain Layout
22879
22880 \series bold
22881 【註】
22882 \series default
22883
22884 \begin_inset Flex Code
22885 status collapsed
22886
22887 \begin_layout Plain Layout
22888
22889 \backslash
22890 setlength
22891 \end_layout
22892
22893 \end_inset
22894
22895 で指定した値は,再度変更されるまでは,以降のすべての多段組で使用されます.
22896 \end_layout
22897
22898 \end_inset
22899
22900
22901 \end_layout
22902
22903 \begin_layout Standard
22904 \begin_inset ERT
22905 status collapsed
22906
22907 \begin_layout Plain Layout
22908
22909
22910 \backslash
22911 setlength{
22912 \backslash
22913 multicolsep}{13pt}
22914 \end_layout
22915
22916 \end_inset
22917
22918
22919 \begin_inset Note Note
22920 status collapsed
22921
22922 \begin_layout Plain Layout
22923
22924 \lang english
22925 go back to the default
22926 \end_layout
22927
22928 \end_inset
22929
22930
22931 \end_layout
22932
22933 \begin_layout Standard
22934 \begin_inset Newpage newpage
22935 \end_inset
22936
22937
22938 \end_layout
22939
22940 \begin_layout Subsubsection
22941 改段
22942 \end_layout
22943
22944 \begin_layout Standard
22945 改段は,文章中の階段を行いたい位置に,\SpecialChar TeX
22946 コードで,コマンド
22947 \begin_inset Flex Code
22948 status collapsed
22949
22950 \begin_layout Plain Layout
22951
22952 \backslash
22953 columnbreak{}
22954 \end_layout
22955
22956 \end_inset
22957
22958 を挿入すれば,強制的に行うことができます.ただし,多くの場合,文章中に空白が挿入されることに注意してください.
22959 \begin_inset Newline newline
22960 \end_inset
22961
22962 以下が用例です.
22963 \end_layout
22964
22965 \begin_layout Standard
22966 \begin_inset Flex Multiple Columns
22967 status open
22968
22969 \begin_layout Plain Layout
22970
22971 \size small
22972 \begin_inset Quotes eld
22973 \end_inset
22974
22975 You're surprised to see me, sir,
22976 \begin_inset Quotes erd
22977 \end_inset
22978
22979  said he, in a strange, croaking voice.
22980 \end_layout
22981
22982 \begin_layout Plain Layout
22983
22984 \size small
22985 I acknowledged that I was.
22986 \end_layout
22987
22988 \begin_layout Plain Layout
22989
22990 \size small
22991 \begin_inset Quotes eld
22992 \end_inset
22993
22994 Well, I've a conscience, sir, and when I chanced to see you go into this
22995  house, as I came hobbling after you, I thought to myself, I'll just step
22996  in and see that kind gentleman, and tell him that if I was a bit gruff
22997  in my manner there was not any harm meant, and that I am much obliged to
22998  him for picking up my books.
22999 \begin_inset Quotes erd
23000 \end_inset
23001
23002
23003 \end_layout
23004
23005 \begin_layout Plain Layout
23006
23007 \size small
23008 \begin_inset Quotes eld
23009 \end_inset
23010
23011 You make too much of a trifle,
23012 \begin_inset Quotes erd
23013 \end_inset
23014
23015  said I.
23016  
23017 \begin_inset Quotes eld
23018 \end_inset
23019
23020 May I ask how you knew who I was?
23021 \begin_inset Quotes erd
23022 \end_inset
23023
23024  AFTER THIS SENTENCE THE COLUMN BREAK IS FORCED.
23025 \begin_inset ERT
23026 status collapsed
23027
23028 \begin_layout Plain Layout
23029
23030
23031 \backslash
23032 columnbreak{}
23033 \end_layout
23034
23035 \end_inset
23036
23037
23038 \end_layout
23039
23040 \begin_layout Plain Layout
23041
23042 \size small
23043 \begin_inset Quotes eld
23044 \end_inset
23045
23046 Well, sir, if it isn't too great a liberty, I am a neighbour of yours, for
23047  you'll find my little bookshop at the corner of Church Street, and very
23048  happy to see you, I am sure.
23049  Maybe you collect yourself, sir.
23050  Here's 
23051 \noun on
23052 British
23053 \begin_inset space ~
23054 \end_inset
23055
23056 Birds
23057 \noun default
23058 , and 
23059 \noun on
23060 Catullus
23061 \noun default
23062 , and 
23063 \noun on
23064 The Holy War
23065 \noun default
23066
23067 \begin_inset space ~
23068 \end_inset
23069
23070 – a bargain, every one of them.
23071  With five volumes you could just fill that gap on that second shelf.
23072  It looks untidy, does it not, sir?
23073 \begin_inset Quotes erd
23074 \end_inset
23075
23076
23077 \end_layout
23078
23079 \end_inset
23080
23081
23082 \end_layout
23083
23084 \begin_layout Subsubsection
23085 段間隔
23086 \end_layout
23087
23088 \begin_layout Standard
23089 段幅は自動的に計算されますが,段の間の余白は指定することができます.これは,長さ
23090 \begin_inset Flex Code
23091 status collapsed
23092
23093 \begin_layout Plain Layout
23094
23095 \backslash
23096 columnsep
23097 \end_layout
23098
23099 \end_inset
23100
23101 を変更することで実現できます.既定値は10
23102 \begin_inset space \thinspace{}
23103 \end_inset
23104
23105 ptです.以下は
23106 \begin_inset Flex Code
23107 status collapsed
23108
23109 \begin_layout Plain Layout
23110
23111 \backslash
23112 columnsep
23113 \end_layout
23114
23115 \end_inset
23116
23117 を3
23118 \begin_inset space \thinspace{}
23119 \end_inset
23120
23121 cmに設定した例です.
23122 \end_layout
23123
23124 \begin_layout Standard
23125 \begin_inset ERT
23126 status open
23127
23128 \begin_layout Plain Layout
23129
23130
23131 \backslash
23132 setlength{
23133 \backslash
23134 columnsep}{3cm}
23135 \end_layout
23136
23137 \end_inset
23138
23139
23140 \end_layout
23141
23142 \begin_layout Standard
23143 \begin_inset Flex Multiple Columns
23144 status open
23145
23146 \begin_layout Plain Layout
23147
23148 \size small
23149 My observations of No.
23150 \begin_inset space \space{}
23151 \end_inset
23152
23153 427 Park Lane did little to clear up the problem in which I was interested.
23154  The house was separated from the street by a low wall and railing, the
23155  whole not more than five feet high.
23156  It was perfectly easy, therefore, for anyone to get into the garden, but
23157  the window was entirely inaccessible, since there was no water pipe or
23158  anything which could help the most active man to climb it.
23159  More puzzled than ever, I retraced my steps to Kensington.
23160  I had not been in my study five minutes when the maid entered to say that
23161  a person desired to see me.
23162  To my astonishment it was none other than my strange old book collector,
23163  his sharp, wizened face peering out from a frame of white hair, and his
23164  precious volumes, a dozen of them at least, wedged under his right arm.
23165 \end_layout
23166
23167 \end_inset
23168
23169
23170 \end_layout
23171
23172 \begin_layout Standard
23173 \begin_inset ERT
23174 status collapsed
23175
23176 \begin_layout Plain Layout
23177
23178
23179 \backslash
23180 setlength{
23181 \backslash
23182 columnsep}{10pt}
23183 \end_layout
23184
23185 \end_inset
23186
23187
23188 \begin_inset Note Note
23189 status collapsed
23190
23191 \begin_layout Plain Layout
23192
23193 \lang english
23194 go back to the default
23195 \end_layout
23196
23197 \end_inset
23198
23199
23200 \end_layout
23201
23202 \begin_layout Subsubsection
23203 垂直線
23204 \end_layout
23205
23206 \begin_layout Standard
23207 段間には,長さ
23208 \begin_inset Flex Code
23209 status collapsed
23210
23211 \begin_layout Plain Layout
23212
23213 \backslash
23214 columnseprule
23215 \end_layout
23216
23217 \end_inset
23218
23219 の幅を持つ罫線が描かれます.罫線幅を0
23220 \begin_inset space \thinspace{}
23221 \end_inset
23222
23223 ptにすると(これが既定値です),罫線は出力されません.以下の例では,段を分かつ線は2
23224 \begin_inset space \thinspace{}
23225 \end_inset
23226
23227 pt幅に設定されています.
23228 \end_layout
23229
23230 \begin_layout Standard
23231 \begin_inset ERT
23232 status open
23233
23234 \begin_layout Plain Layout
23235
23236
23237 \backslash
23238 setlength{
23239 \backslash
23240 columnseprule}{2pt}
23241 \end_layout
23242
23243 \end_inset
23244
23245
23246 \end_layout
23247
23248 \begin_layout Standard
23249 \begin_inset Flex Multiple Columns
23250 status open
23251
23252 \begin_layout Plain Layout
23253
23254 \size small
23255 \begin_inset Quotes eld
23256 \end_inset
23257
23258 You're surprised to see me, sir,
23259 \begin_inset Quotes erd
23260 \end_inset
23261
23262  said he, in a strange, croaking voice.
23263 \end_layout
23264
23265 \begin_layout Plain Layout
23266
23267 \size small
23268 I acknowledged that I was.
23269 \end_layout
23270
23271 \begin_layout Plain Layout
23272
23273 \size small
23274 \begin_inset Quotes eld
23275 \end_inset
23276
23277 Well, I've a conscience, sir, and when I chanced to see you go into this
23278  house, as I came hobbling after you, I thought to myself, I'll just step
23279  in and see that kind gentleman, and tell him that if I was a bit gruff
23280  in my manner there was not any harm meant, and that I am much obliged to
23281  him for picking up my books.
23282 \begin_inset Quotes erd
23283 \end_inset
23284
23285
23286 \end_layout
23287
23288 \begin_layout Plain Layout
23289
23290 \size small
23291 \begin_inset Quotes eld
23292 \end_inset
23293
23294 You make too much of a trifle,
23295 \begin_inset Quotes erd
23296 \end_inset
23297
23298  said I.
23299  
23300 \begin_inset Quotes eld
23301 \end_inset
23302
23303 May I ask how you knew who I was?
23304 \begin_inset Quotes erd
23305 \end_inset
23306
23307
23308 \end_layout
23309
23310 \begin_layout Plain Layout
23311
23312 \size small
23313 \begin_inset Quotes eld
23314 \end_inset
23315
23316 Well, sir, if it isn't too great a liberty, I am a neighbour of yours, for
23317  you'll find my little bookshop at the corner of Church Street, and very
23318  happy to see you, I am sure.
23319  Maybe you collect yourself, sir.
23320  Here's 
23321 \noun on
23322 British
23323 \begin_inset space ~
23324 \end_inset
23325
23326 Birds
23327 \noun default
23328 , and 
23329 \noun on
23330 Catullus
23331 \noun default
23332 , and 
23333 \noun on
23334 The Holy War
23335 \noun default
23336
23337 \begin_inset space ~
23338 \end_inset
23339
23340 – a bargain, every one of them.
23341  With five volumes you could just fill that gap on that second shelf.
23342  It looks untidy, does it not, sir?
23343 \begin_inset Quotes erd
23344 \end_inset
23345
23346
23347 \end_layout
23348
23349 \end_inset
23350
23351
23352 \end_layout
23353
23354 \begin_layout Standard
23355 \begin_inset VSpace defskip
23356 \end_inset
23357
23358
23359 \end_layout
23360
23361 \begin_layout Standard
23362 罫線は,コマンド
23363 \begin_inset Flex Code
23364 status collapsed
23365
23366 \begin_layout Plain Layout
23367
23368 \backslash
23369 columnseprulecolor
23370 \end_layout
23371
23372 \end_inset
23373
23374 を再定義すれば,着色することができます.これは,多段組差込枠の前に\SpecialChar TeX
23375 コードで以下のコマンドを挿入すれば,実現できます.
23376 \end_layout
23377
23378 \begin_layout LyX-Code
23379
23380 \backslash
23381 renewcommand{
23382 \backslash
23383 columnseprulecolor}{
23384 \backslash
23385 color{red}}
23386 \end_layout
23387
23388 \begin_layout Standard
23389 このコマンド中の
23390 \begin_inset Flex Code
23391 status collapsed
23392
23393 \begin_layout Plain Layout
23394
23395 \backslash
23396 red
23397 \end_layout
23398
23399 \end_inset
23400
23401 をお好みの色に変更してください.既定色とユーザー定義色の全てを使用することができます.既定色とユーザー定義色についての詳細な情報は,取扱説明書『埋込オブジェクト
23402 篇』の「色付き表」の節をご覧ください.既定色に戻すには,以下のコマンドを挿入してください.
23403 \end_layout
23404
23405 \begin_layout LyX-Code
23406
23407 \backslash
23408 renewcommand{
23409 \backslash
23410 columnseprulecolor}{
23411 \backslash
23412 normalcolor}
23413 \end_layout
23414
23415 \begin_layout Standard
23416 以下は,シアン色の罫線と1
23417 \begin_inset space \thinspace{}
23418 \end_inset
23419
23420 cmの段間隔を持つ例です.
23421 \end_layout
23422
23423 \begin_layout Standard
23424 \begin_inset ERT
23425 status open
23426
23427 \begin_layout Plain Layout
23428
23429
23430 \backslash
23431 setlength{
23432 \backslash
23433 columnsep}{1cm}
23434 \end_layout
23435
23436 \begin_layout Plain Layout
23437
23438
23439 \backslash
23440 renewcommand{
23441 \backslash
23442 columnseprulecolor}{
23443 \backslash
23444 color{cyan}}
23445 \end_layout
23446
23447 \end_inset
23448
23449
23450 \end_layout
23451
23452 \begin_layout Standard
23453 \begin_inset Flex Multiple Columns
23454 status open
23455
23456 \begin_layout Plain Layout
23457
23458 \size small
23459 \begin_inset Quotes eld
23460 \end_inset
23461
23462 You're surprised to see me, sir,
23463 \begin_inset Quotes erd
23464 \end_inset
23465
23466  said he, in a strange, croaking voice.
23467 \end_layout
23468
23469 \begin_layout Plain Layout
23470
23471 \size small
23472 I acknowledged that I was.
23473 \end_layout
23474
23475 \begin_layout Plain Layout
23476
23477 \size small
23478 \begin_inset Quotes eld
23479 \end_inset
23480
23481 Well, I've a conscience, sir, and when I chanced to see you go into this
23482  house, as I came hobbling after you, I thought to myself, I'll just step
23483  in and see that kind gentleman, and tell him that if I was a bit gruff
23484  in my manner there was not any harm meant, and that I am much obliged to
23485  him for picking up my books.
23486 \begin_inset Quotes erd
23487 \end_inset
23488
23489
23490 \end_layout
23491
23492 \begin_layout Plain Layout
23493
23494 \size small
23495 \begin_inset Quotes eld
23496 \end_inset
23497
23498 You make too much of a trifle,
23499 \begin_inset Quotes erd
23500 \end_inset
23501
23502  said I.
23503  
23504 \begin_inset Quotes eld
23505 \end_inset
23506
23507 May I ask how you knew who I was?
23508 \begin_inset Quotes erd
23509 \end_inset
23510
23511
23512 \end_layout
23513
23514 \begin_layout Plain Layout
23515
23516 \size small
23517 \begin_inset Quotes eld
23518 \end_inset
23519
23520 Well, sir, if it isn't too great a liberty, I am a neighbour of yours, for
23521  you'll find my little bookshop at the corner of Church Street, and very
23522  happy to see you, I am sure.
23523  Maybe you collect yourself, sir.
23524  Here's 
23525 \noun on
23526 British
23527 \begin_inset space ~
23528 \end_inset
23529
23530 Birds
23531 \noun default
23532 , and 
23533 \noun on
23534 Catullus
23535 \noun default
23536 , and 
23537 \noun on
23538 The Holy War
23539 \noun default
23540
23541 \begin_inset space ~
23542 \end_inset
23543
23544 – a bargain, every one of them.
23545  With five volumes you could just fill that gap on that second shelf.
23546  It looks untidy, does it not, sir?
23547 \begin_inset Quotes erd
23548 \end_inset
23549
23550
23551 \end_layout
23552
23553 \end_inset
23554
23555
23556 \end_layout
23557
23558 \begin_layout Standard
23559 \begin_inset ERT
23560 status collapsed
23561
23562 \begin_layout Plain Layout
23563
23564
23565 \backslash
23566 setlength{
23567 \backslash
23568 columnseprule}{0pt}
23569 \end_layout
23570
23571 \begin_layout Plain Layout
23572
23573
23574 \backslash
23575 renewcommand{
23576 \backslash
23577 columnseprulecolor}{
23578 \backslash
23579 normalcolor}
23580 \end_layout
23581
23582 \end_inset
23583
23584
23585 \begin_inset Note Note
23586 status collapsed
23587
23588 \begin_layout Plain Layout
23589
23590 \lang english
23591 go back to the default
23592 \end_layout
23593
23594 \end_inset
23595
23596
23597 \end_layout
23598
23599 \begin_layout Standard
23600 \begin_inset Newpage newpage
23601 \end_inset
23602
23603
23604 \end_layout
23605
23606 \begin_layout Section
23607 標準的でない形の段落
23608 \end_layout
23609
23610 \begin_layout Standard
23611 \noindent
23612 \SpecialChar LaTeX
23613 は,他のテキストプロセッサと同様に,既定で長方形の段落を使用します.しかし,例えば,ポスターや招待状,詩などの特殊な場合には,段落の形を好きなように変えることが
23614 できます.これは,文書設定で
23615 \family sans
23616 任意設定の段落形
23617 \family default
23618 モジュールを読み込んで,\SpecialChar LaTeX
23619 パッケージ
23620 \begin_inset Flex Code
23621 status collapsed
23622
23623 \begin_layout Plain Layout
23624 \noindent
23625 shapepar
23626 \end_layout
23627
23628 \end_inset
23629
23630 を使用させるようにすれば,実現できます.
23631 \end_layout
23632
23633 \begin_layout Subsection
23634 既定の形
23635 \end_layout
23636
23637 \begin_layout Standard
23638
23639 \series bold
23640 shapepar
23641 \series default
23642 は,以下の形を提供しています.
23643 \end_layout
23644
23645 \begin_layout Standard
23646 \begin_inset Tabular
23647 <lyxtabular version="3" rows="13" columns="3">
23648 <features booktabs="true" islongtable="true" longtabularalignment="center">
23649 <column alignment="center" valignment="middle" width="16col%">
23650 <column alignment="center" valignment="middle" width="40col%">
23651 <column alignment="center" valignment="middle" width="35col%">
23652 <row endhead="true">
23653 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23654 \begin_inset Text
23655
23656 \begin_layout Plain Layout
23657 名称
23658 \end_layout
23659
23660 \end_inset
23661 </cell>
23662 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23663 \begin_inset Text
23664
23665 \begin_layout Plain Layout
23666 説明
23667 \end_layout
23668
23669 \end_inset
23670 </cell>
23671 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
23672 \begin_inset Text
23673
23674 \begin_layout Plain Layout
23675 備考
23676 \end_layout
23677
23678 \end_inset
23679 </cell>
23680 </row>
23681 <row>
23682 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23683 \begin_inset Text
23684
23685 \begin_layout Plain Layout
23686 CDlabel
23687 \end_layout
23688
23689 \end_inset
23690 </cell>
23691 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23692 \begin_inset Text
23693
23694 \begin_layout Plain Layout
23695 丸い穴の開いたドーナツ型(CD/DVD大)
23696 \end_layout
23697
23698 \end_inset
23699 </cell>
23700 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23701 \begin_inset Text
23702
23703 \begin_layout Plain Layout
23704 伸縮不可.多くの文字を入れられないことに注意.
23705 \end_layout
23706
23707 \end_inset
23708 </cell>
23709 </row>
23710 <row>
23711 <cell alignment="center" valignment="top" topline="true" usebox="none">
23712 \begin_inset Text
23713
23714 \begin_layout Plain Layout
23715 Circle
23716 \end_layout
23717
23718 \end_inset
23719 </cell>
23720 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23721 \begin_inset Text
23722
23723 \begin_layout Plain Layout
23724
23725 \end_layout
23726
23727 \end_inset
23728 </cell>
23729 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23730 \begin_inset Text
23731
23732 \begin_layout Plain Layout
23733 脆弱.計算に失敗することも.
23734 \end_layout
23735
23736 \end_inset
23737 </cell>
23738 </row>
23739 <row>
23740 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23741 \begin_inset Text
23742
23743 \begin_layout Plain Layout
23744 Diamond
23745 \end_layout
23746
23747 \end_inset
23748 </cell>
23749 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23750 \begin_inset Text
23751
23752 \begin_layout Plain Layout
23753 菱形(シンボル的に
23754 \begin_inset Quotes eld
23755 \end_inset
23756
23757 diamond
23758 \begin_inset Quotes erd
23759 \end_inset
23760
23761 と表記)
23762 \end_layout
23763
23764 \end_inset
23765 </cell>
23766 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23767 \begin_inset Text
23768
23769 \begin_layout Plain Layout
23770 -
23771 \end_layout
23772
23773 \end_inset
23774 </cell>
23775 </row>
23776 <row>
23777 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23778 \begin_inset Text
23779
23780 \begin_layout Plain Layout
23781 Heart
23782 \end_layout
23783
23784 \end_inset
23785 </cell>
23786 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23787 \begin_inset Text
23788
23789 \begin_layout Plain Layout
23790 ハート型
23791 \end_layout
23792
23793 \end_inset
23794 </cell>
23795 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23796 \begin_inset Text
23797
23798 \begin_layout Plain Layout
23799 -
23800 \end_layout
23801
23802 \end_inset
23803 </cell>
23804 </row>
23805 <row>
23806 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23807 \begin_inset Text
23808
23809 \begin_layout Plain Layout
23810 Hexagon
23811 \end_layout
23812
23813 \end_inset
23814 </cell>
23815 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23816 \begin_inset Text
23817
23818 \begin_layout Plain Layout
23819 六角形
23820 \end_layout
23821
23822 \end_inset
23823 </cell>
23824 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23825 \begin_inset Text
23826
23827 \begin_layout Plain Layout
23828 -
23829 \end_layout
23830
23831 \end_inset
23832 </cell>
23833 </row>
23834 <row>
23835 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23836 \begin_inset Text
23837
23838 \begin_layout Plain Layout
23839 Nut
23840 \end_layout
23841
23842 \end_inset
23843 </cell>
23844 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23845 \begin_inset Text
23846
23847 \begin_layout Plain Layout
23848 ナット型(丸い穴の開いた六角形)
23849 \end_layout
23850
23851 \end_inset
23852 </cell>
23853 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23854 \begin_inset Text
23855
23856 \begin_layout Plain Layout
23857 -
23858 \end_layout
23859
23860 \end_inset
23861 </cell>
23862 </row>
23863 <row>
23864 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23865 \begin_inset Text
23866
23867 \begin_layout Plain Layout
23868 Square
23869 \end_layout
23870
23871 \end_inset
23872 </cell>
23873 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23874 \begin_inset Text
23875
23876 \begin_layout Plain Layout
23877 正方形
23878 \end_layout
23879
23880 \end_inset
23881 </cell>
23882 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23883 \begin_inset Text
23884
23885 \begin_layout Plain Layout
23886 -
23887 \end_layout
23888
23889 \end_inset
23890 </cell>
23891 </row>
23892 <row>
23893 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23894 \begin_inset Text
23895
23896 \begin_layout Plain Layout
23897 Star
23898 \end_layout
23899
23900 \end_inset
23901 </cell>
23902 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23903 \begin_inset Text
23904
23905 \begin_layout Plain Layout
23906 五芒星
23907 \end_layout
23908
23909 \end_inset
23910 </cell>
23911 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
23912 \begin_inset Text
23913
23914 \begin_layout Plain Layout
23915 -
23916 \end_layout
23917
23918 \end_inset
23919 </cell>
23920 </row>
23921 <row>
23922 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23923 \begin_inset Text
23924
23925 \begin_layout Plain Layout
23926 Candle
23927 \end_layout
23928
23929 \end_inset
23930 </cell>
23931 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23932 \begin_inset Text
23933
23934 \begin_layout Plain Layout
23935 燃えるろうそく
23936 \end_layout
23937
23938 \end_inset
23939 </cell>
23940 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23941 \begin_inset Text
23942
23943 \begin_layout Plain Layout
23944 -
23945 \end_layout
23946
23947 \end_inset
23948 </cell>
23949 </row>
23950 <row>
23951 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23952 \begin_inset Text
23953
23954 \begin_layout Plain Layout
23955 Drop down/up
23956 \end_layout
23957
23958 \end_inset
23959 </cell>
23960 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23961 \begin_inset Text
23962
23963 \begin_layout Plain Layout
23964 雫型/逆雫型
23965 \end_layout
23966
23967 \end_inset
23968 </cell>
23969 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23970 \begin_inset Text
23971
23972 \begin_layout Plain Layout
23973 脆弱.計算に失敗することも.
23974 \end_layout
23975
23976 \end_inset
23977 </cell>
23978 </row>
23979 <row>
23980 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23981 \begin_inset Text
23982
23983 \begin_layout Plain Layout
23984 \SpecialChar TeX
23985
23986 \end_layout
23987
23988 \end_inset
23989 </cell>
23990 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23991 \begin_inset Text
23992
23993 \begin_layout Plain Layout
23994 \SpecialChar TeX
23995 ロゴ
23996 \end_layout
23997
23998 \end_inset
23999 </cell>
24000 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24001 \begin_inset Text
24002
24003 \begin_layout Plain Layout
24004 -
24005 \end_layout
24006
24007 \end_inset
24008 </cell>
24009 </row>
24010 <row>
24011 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
24012 \begin_inset Text
24013
24014 \begin_layout Plain Layout
24015 Triangle up/down/
24016 \begin_inset Newline newline
24017 \end_inset
24018
24019 left/right
24020 \end_layout
24021
24022 \end_inset
24023 </cell>
24024 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
24025 \begin_inset Text
24026
24027 \begin_layout Plain Layout
24028 各方向の三角形
24029 \end_layout
24030
24031 \end_inset
24032 </cell>
24033 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
24034 \begin_inset Text
24035
24036 \begin_layout Plain Layout
24037 -
24038 \end_layout
24039
24040 \end_inset
24041 </cell>
24042 </row>
24043 </lyxtabular>
24044
24045 \end_inset
24046
24047
24048 \end_layout
24049
24050 \begin_layout Standard
24051 段落に形を適用するには,\SpecialChar LyX
24052 ツールバー中の環境プルダウンボックスから形を選んでください.
24053 \end_layout
24054
24055 \begin_layout Standard
24056 \begin_inset Newpage newpage
24057 \end_inset
24058
24059
24060 \end_layout
24061
24062 \begin_layout Standard
24063 以下は,ナット型の段落の例です.
24064 \end_layout
24065
24066 \begin_layout Standard
24067 \begin_inset VSpace bigskip
24068 \end_inset
24069
24070
24071 \end_layout
24072
24073 \begin_layout Nut
24074
24075 \lang latin
24076 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
24077  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
24078  voluptua.
24079  At vero eos et accusam et justo duo dolores et ea rebum.
24080  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
24081  sit amet.
24082  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
24083  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
24084  voluptua.
24085 \end_layout
24086
24087 \begin_layout Standard
24088 \begin_inset VSpace bigskip
24089 \end_inset
24090
24091
24092 \end_layout
24093
24094 \begin_layout Standard
24095 \begin_inset Note Greyedout
24096 status open
24097
24098 \begin_layout Plain Layout
24099
24100 \series bold
24101 【註】
24102 \family sans
24103 \series default
24104 shapepar
24105 \family default
24106 段落は改頁にまたがることはできません.
24107 \end_layout
24108
24109 \end_inset
24110
24111
24112 \end_layout
24113
24114 \begin_layout Standard
24115 \begin_inset VSpace bigskip
24116 \end_inset
24117
24118
24119 \end_layout
24120
24121 \begin_layout Standard
24122 \begin_inset Flex Code
24123 status collapsed
24124
24125 \begin_layout Plain Layout
24126 \noindent
24127 shapepar
24128 \end_layout
24129
24130 \end_inset
24131
24132 は,段落中にどれだけ文章が含まれようとも,常に形を維持しようとします.したがって,段落の大きさは,含まれている文章量によって変化しますので,段落の大きさがページ
24133 余白にはみ出してしまうことがあります.寸法が伸縮することを示すために,文章量を二倍にした例を見てみましょう.
24134 \end_layout
24135
24136 \begin_layout Standard
24137 \begin_inset Newpage newpage
24138 \end_inset
24139
24140
24141 \end_layout
24142
24143 \begin_layout Nut
24144
24145 \lang latin
24146 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
24147  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
24148  voluptua.
24149  At vero eos et accusam et justo duo dolores et ea rebum.
24150  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
24151  sit amet.
24152  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
24153  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
24154  voluptua.
24155  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
24156  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
24157  voluptua.
24158  At vero eos et accusam et justo duo dolores et ea rebum.
24159  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
24160  sit amet.
24161  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
24162  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
24163  voluptua.
24164 \end_layout
24165
24166 \begin_layout Standard
24167 \begin_inset VSpace bigskip
24168 \end_inset
24169
24170
24171 \end_layout
24172
24173 \begin_layout Standard
24174 ただし,
24175 \family sans
24176 CDlabel
24177 \family default
24178 形は例外です.これは,CD/DVDの寸法に収まらなくてはならないので,伸縮しません.したがって,形に収まる文章量は限られています.
24179 \begin_inset Newline newline
24180 \end_inset
24181
24182
24183 \family sans
24184 drop
24185 \family default
24186 形と
24187 \family sans
24188 circle
24189 \family default
24190 形は脆弱で,文章量によっては寸法計算が失敗する可能性があります.この場合,
24191 \begin_inset Quotes eld
24192 \end_inset
24193
24194 Arithmetic overflow
24195 \begin_inset Quotes erd
24196 \end_inset
24197
24198 という\SpecialChar LaTeX
24199 エラーが発生します.この時は,文章の一部を追加したり削除したりするか,どれもうまくいかなければ別の形を使用してください.
24200 \end_layout
24201
24202 \begin_layout Standard
24203 \begin_inset VSpace bigskip
24204 \end_inset
24205
24206
24207 \end_layout
24208
24209 \begin_layout Standard
24210 先端のある形では,先端部の文字列で,\SpecialChar LaTeX
24211 のハイフネーションルーチンが失敗することがあります.したがって,この部分の文章には,ハイフネーション位置
24212 \family sans
24213
24214 \begin_inset Info
24215 type  "shortcut"
24216 arg   "specialchar-insert hyphenation"
24217 \end_inset
24218
24219
24220 \family default
24221 )を指定することが往々にして必要になります.
24222 \end_layout
24223
24224 \begin_layout Standard
24225 \begin_inset VSpace bigskip
24226 \end_inset
24227
24228
24229 \end_layout
24230
24231 \begin_layout Standard
24232 Shapepar段落は,常に中央揃えか,左の縁が左ページ余白に接するように配置されます.したがって,これらの段落を揃えるのに段落ダイアログを使用することはできま
24233 せん.解決方法としては,段落をミニページかparboxの中において,このボックスを揃えることです.ここでの問題は,ボックスの正しい幅を見出すことです.もしボック
24234 スの幅が広すぎれば,ボックスを中央揃えにしたとしても,ボックスの左側が付いてしまうので中央揃えになりません.そこで,正しい幅を見出すまでは,若干試行錯誤しなくて
24235 はならないかもしれません.以下は,二つのハート形の段落です.一つ目は揃え指定がなく,二つ目は右揃えにしてあります.
24236 \end_layout
24237
24238 \begin_layout Standard
24239 \begin_inset Newpage newpage
24240 \end_inset
24241
24242
24243 \end_layout
24244
24245 \begin_layout Heart
24246 \noindent
24247
24248 \lang latin
24249 Lo\SpecialChar softhyphen
24250 rem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
24251  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
24252  voluptua.
24253  At vero eos et accusam et justo duo dolores et ea rebum.
24254  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
24255  sit amet.
24256 \end_layout
24257
24258 \begin_layout Standard
24259 \begin_inset VSpace bigskip
24260 \end_inset
24261
24262
24263 \end_layout
24264
24265 \begin_layout Standard
24266 \noindent
24267 \align right
24268 \begin_inset Box Frameless
24269 position "t"
24270 hor_pos "c"
24271 has_inner_box 1
24272 inner_pos "t"
24273 use_parbox 1
24274 use_makebox 0
24275 width "42col%"
24276 special "none"
24277 height "1in"
24278 height_special "totalheight"
24279 thickness "0.4pt"
24280 separation "3pt"
24281 shadowsize "4pt"
24282 framecolor "black"
24283 backgroundcolor "none"
24284 status open
24285
24286 \begin_layout Heart
24287 \noindent
24288
24289 \lang latin
24290 Lo\SpecialChar softhyphen
24291 rem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
24292  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
24293  voluptua.
24294  At vero eos et accusam et justo duo dolores et ea rebum.
24295  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
24296  sit amet.
24297 \end_layout
24298
24299 \end_inset
24300
24301
24302 \end_layout
24303
24304 \begin_layout Subsection
24305 任意の形
24306 \end_layout
24307
24308 \begin_layout Standard
24309 ユーザーは,どのような形であれ,定義することができます.これを手動で行うのは,全ての座標を指定しなくてはならないので,かなりの労力を必要とします.しかし,以下の
24310 ように,コンピューターに座標を計算させる方法もあります.
24311 \end_layout
24312
24313 \begin_layout Enumerate
24314 プログラム
24315 \begin_inset CommandInset href
24316 LatexCommand href
24317 name "Jpgfdraw"
24318 target "https://www.ctan.org/tex-archive/graphics/jpgfdraw"
24319 literal "false"
24320
24321 \end_inset
24322
24323 を導入します.
24324 \end_layout
24325
24326 \begin_layout Enumerate
24327
24328 \family sans
24329 Jpgfdraw
24330 \family default
24331 内で,メニュー
24332 \family sans
24333 TeX/LaTeX\SpecialChar menuseparator
24334 Settings\SpecialChar menuseparator
24335 Set Normal Size
24336 \family default
24337 で文書中で使用しているフォント寸を選択します.例えば,この文書は12
24338 \begin_inset space \thinspace{}
24339 \end_inset
24340
24341 pt寸を使用しています.
24342 \end_layout
24343
24344 \begin_layout Enumerate
24345 形を描きます.
24346 \end_layout
24347
24348 \begin_layout Enumerate
24349 メニュー
24350 \family sans
24351 TeX/LaTeX\SpecialChar menuseparator
24352 Shapepar
24353 \family default
24354 を使用して,形の座標をエクスポートします.現れるダイアログで,形の外枠を座標に使うか,パス自体を使うかを指定します.
24355 \begin_inset Foot
24356 status collapsed
24357
24358 \begin_layout Plain Layout
24359 詳細については,
24360 \begin_inset CommandInset href
24361 LatexCommand href
24362 target "http://www.dickimaw-books.com/apps/jpgfdraw/manual/shapepar.html"
24363 literal "false"
24364
24365 \end_inset
24366
24367 を参照してください.
24368 \end_layout
24369
24370 \end_inset
24371
24372
24373 \end_layout
24374
24375 \begin_layout Standard
24376 座標は\SpecialChar TeX
24377 ファイルに書き込まれます.これを\SpecialChar LyX
24378 文書で使用するには,
24379 \end_layout
24380
24381 \begin_layout Enumerate
24382 段落の最初の文字の前(もしくは空の段落内)にカーソルを置きます.
24383 \end_layout
24384
24385 \begin_layout Enumerate
24386 \SpecialChar LyX
24387
24388 \family sans
24389 挿入\SpecialChar menuseparator
24390 ファイル\SpecialChar menuseparator
24391 子文書
24392 \family default
24393 メニューでファイルを選択し,
24394 \family sans
24395 取り込みの型
24396 \family default
24397 として
24398 \family sans
24399 Input
24400 \family default
24401 を選択してください.
24402 \end_layout
24403
24404 \begin_layout Standard
24405 \begin_inset VSpace defskip
24406 \end_inset
24407
24408
24409 \end_layout
24410
24411 \begin_layout Standard
24412 \begin_inset Note Greyedout
24413 status open
24414
24415 \begin_layout Plain Layout
24416
24417 \series bold
24418 【註】
24419 \series default
24420 変更した形は,現在の段落にのみ適用されます.次の段落では全て通常に戻ります.したがって,段落定義ファイルは,形を変えたい段落全てで読み込まれなくてはなりません.
24421 \end_layout
24422
24423 \end_inset
24424
24425
24426 \end_layout
24427
24428 \begin_layout Standard
24429 \begin_inset VSpace bigskip
24430 \end_inset
24431
24432
24433 \end_layout
24434
24435 \begin_layout Standard
24436 以下の用例をご覧ください.
24437 \end_layout
24438
24439 \begin_layout Standard
24440 \begin_inset VSpace bigskip
24441 \end_inset
24442
24443
24444 \end_layout
24445
24446 \begin_layout Standard
24447 \begin_inset CommandInset include
24448 LatexCommand input
24449 filename "../SpecialParagraphShape.tex"
24450
24451 \end_inset
24452
24453
24454 \lang latin
24455 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
24456  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
24457  voluptua.
24458  At vero eos et accusam et justo duo dolores et ea rebum.
24459  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
24460  sit amet.
24461  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
24462  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
24463  voluptua.
24464 \end_layout
24465
24466 \begin_layout Standard
24467 \begin_inset VSpace bigskip
24468 \end_inset
24469
24470
24471 \end_layout
24472
24473 \begin_layout Standard
24474
24475 \series bold
24476 【ヒント】
24477 \family sans
24478 \series default
24479 Jpgfdraw
24480 \family default
24481 で複雑な形を描く場合,まず形を好きなプログラムで描き,出来上がった画像を
24482 \family sans
24483 Jpgfdraw
24484 \family default
24485 に読み込む方法があります.この場合,画像の外枠に沿って,直線またはスプラインを描くだけですみます.
24486 \end_layout
24487
24488 \begin_layout Standard
24489 \begin_inset VSpace bigskip
24490 \end_inset
24491
24492
24493 \end_layout
24494
24495 \begin_layout Standard
24496
24497 \family sans
24498 任意の段落形
24499 \family default
24500 モジュールは,
24501 \family sans
24502 shapepar
24503 \family default
24504
24505 \family sans
24506 Shapepar
24507 \family default
24508 の二つのコマンドも提供していて,任意の形を座標毎に定義するのに使用することができます.
24509 \begin_inset Foot
24510 status collapsed
24511
24512 \begin_layout Plain Layout
24513 これらのコマンドは,上述の全ての形で内部的に使用されています.
24514 \end_layout
24515
24516 \end_inset
24517
24518 これらのスタイルがどのように使われていて,どのような設定ができるのかについての詳しい情報は,
24519 \begin_inset Flex Code
24520 status collapsed
24521
24522 \begin_layout Plain Layout
24523 \noindent
24524 shapepar
24525 \end_layout
24526
24527 \end_inset
24528
24529  をご覧ください.
24530 \end_layout
24531
24532 \end_body
24533 \end_document