]> git.lyx.org Git - lyx.git/blob - lib/doc/ja/Additional.lyx
Fix LyX version number
[lyx.git] / lib / doc / ja / Additional.lyx
1 #LyX 2.4 created this file. For more info see https://www.lyx.org/
2 \lyxformat 600
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 ruby
52 \end_modules
53 \maintain_unincluded_children no
54 \begin_local_layout
55 Format 35
56 InsetLayout             Flex:MenuItem
57 LyxType         charstyle
58 LabelString           menu
59 LatexType             command
60 LatexName             menuitem
61 Font
62 Family              Sans
63 EndFont
64 Preamble
65 \newcommand*{\menuitem}[1]{{\sffamily #1}}
66 EndPreamble
67 End
68 \end_local_layout
69 \language japanese
70 \language_package default
71 \inputencoding utf8
72 \fontencoding auto
73 \font_roman "lmodern" "IPAexMincho"
74 \font_sans "default" "IPAexGothic"
75 \font_typewriter "default" "default"
76 \font_math "auto" "auto"
77 \font_default_family default
78 \use_non_tex_fonts false
79 \font_sc false
80 \font_sans_osf false
81 \font_typewriter_osf false
82 \font_roman_osf false
83 \font_sf_scale 100 100
84 \font_tt_scale 100 100
85 \use_microtype false
86 \use_dash_ligatures false
87 \graphics default
88 \default_output_format default
89 \output_sync 0
90 \bibtex_command default
91 \index_command default
92 \paperfontsize 12
93 \spacing single
94 \use_hyperref true
95 \pdf_title "LyX's Additional Features manual"
96 \pdf_author "LyX Team"
97 \pdf_subject "LyX's additional features documentation"
98 \pdf_keywords "LyX, Documentation, Additional"
99 \pdf_bookmarks false
100 \pdf_bookmarksnumbered true
101 \pdf_bookmarksopen false
102 \pdf_bookmarksopenlevel 1
103 \pdf_breaklinks false
104 \pdf_pdfborder false
105 \pdf_colorlinks true
106 \pdf_backref false
107 \pdf_pdfusetitle false
108 \pdf_quoted_options "pdfencoding=pdfdoc, linkcolor=black, citecolor=black, urlcolor=blue, filecolor=blue, pdfpagelayout=OneColumn, pdfnewwindow=true, pdfstartview=XYZ, plainpages=false"
109 \papersize default
110 \use_geometry false
111 \use_package amsmath 1
112 \use_package amssymb 1
113 \use_package cancel 1
114 \use_package esint 1
115 \use_package mathdots 1
116 \use_package mathtools 1
117 \use_package mhchem 1
118 \use_package stackrel 1
119 \use_package stmaryrd 1
120 \use_package undertilde 1
121 \cite_engine basic
122 \cite_engine_type default
123 \biblio_style plain
124 \use_bibtopic false
125 \use_indices false
126 \paperorientation portrait
127 \suppress_date false
128 \justification true
129 \use_refstyle 0
130 \use_minted 0
131 \notefontcolor #0000ff
132 \use_lineno 0
133 \index 索引
134 \shortcut idx
135 \color #008000
136 \end_index
137 \secnumdepth 3
138 \tocdepth 3
139 \paragraph_separation indent
140 \paragraph_indentation default
141 \is_math_indent 1
142 \math_indentation default
143 \math_numbering_side default
144 \quotes_style english
145 \dynamic_quotes 0
146 \papercolumns 1
147 \papersides 2
148 \paperpagestyle headings
149 \tablestyle default
150 \tracking_changes false
151 \postpone_fragile_content false
152 \output_changes false
153 \html_math_output 0
154 \html_css_as_file 0
155 \html_be_strict true
156 \end_header
157
158 \begin_body
159
160 \begin_layout Title
161 \SpecialChar LyX
162 の高度な機能
163 \begin_inset Newline newline
164 \end_inset
165
166
167 \size large
168 第2.3.x版
169 \end_layout
170
171 \begin_layout Author
172 \SpecialChar LyX
173 プロジェクトチーム
174 \begin_inset Foot
175 status collapsed
176
177 \begin_layout Plain Layout
178 このファイルは主にRichard Kimberly Heckによって管理されています.コメントをされたい場合や誤りを発見された場合には,\SpecialChar LyX
179 文書化メーリングリスト
180 \begin_inset Flex Code
181 status open
182
183 \begin_layout Plain Layout
184
185 \family typewriter
186 <lyx-docs@lists.lyx.org>
187 \end_layout
188
189 \end_inset
190
191 に英文にてお知らせ下さい.この文書の翻訳は,当初人見光太郎氏が行った貢献に基づいています.
192 \end_layout
193
194 \end_inset
195
196  
197 \end_layout
198
199 \begin_layout Standard
200 \begin_inset CommandInset toc
201 LatexCommand tableofcontents
202
203 \end_inset
204
205
206 \end_layout
207
208 \begin_layout Chapter
209 はじめに
210 \end_layout
211
212 \begin_layout Standard
213 いまお読みの取扱説明書『
214 \emph on
215 \SpecialChar LyX
216 拡張機能篇
217 \emph default
218 』は,基本的には『
219 \emph on
220 ユーザーの手引き
221 \emph default
222 』の第二部です.これらの文書を別部とした理由は,単純に『
223 \emph on
224 ユーザーの手引き
225 \emph default
226 』がすでに大部となっていることと,『
227 \emph on
228 ユーザーの手引き
229 \emph default
230 』が,ほとんどの文書を作成する上で必要な基本機能をすべて説明してしまっているためです.一方で,\SpecialChar LyX
231 プロジェクトチームは,\SpecialChar LyX
232 を各設定ファイルと外部パッケージによって拡張
233 可能な状態にしておくことを長期的な目標にしています.つまり,ある\SpecialChar LaTeX
234 パッケージをサポートしたい場合に,\SpecialChar LyX
235 自身に変更を加えることなく,当該パッケージ用のレイアウトファイ
236 ル(ないしモジュール)を作成すればいいようにしているのです.すでにこのような形で,いくつもの新機能がユーザーによって追加されています.この取扱説明書は,そのよう
237 な形での貢献を文書化する冊子として位置付けられています.
238 \end_layout
239
240 \begin_layout Standard
241 この取扱説明書では,ファックスのサポート・バージョン管理・SGMLサポートのような,正しく機能するためには追加的なソフトウェアを必要とする特殊機能についても説明
242 しています.さらに,\SpecialChar LaTeX
243 の強力な機能を直接使って文書を美しく仕上げるための,\SpecialChar LaTeX
244 ツールやテクニックを述べた章も収録しています.つきつめれば,\SpecialChar LyX
245 とはあくまでWYSIWYMた
246 ることを企図しているため,\SpecialChar LaTeX
247 の全機能の一部へのインタフェースは用意するものの,すべてを用意することはないでしょう.
248 \end_layout
249
250 \begin_layout Standard
251 もし,まだ『
252 \emph on
253 はじめの一歩
254 \emph default
255 』をお読みでなかったら,この取扱説明書から読みはじめるのは誤りです.『
256 \emph on
257 はじめの一歩
258 \emph default
259 』には,全取扱説明書に共通の表記法と書式が説明されていますので,まずそれからお読みください.さらに,この取扱説明書を読もうとする前に,『
260 \emph on
261 ユーザーの手引き
262 \emph default
263 』をよくお読みになって,\SpecialChar LyX
264 の全基本機能を習得してください.
265 \end_layout
266
267 \begin_layout Standard
268 この取扱説明書の取り上げられている話題は,\SpecialChar LyX
269 が\SpecialChar LaTeX
270 にどう関わっているかに強く関係していますので,まず次章では,\SpecialChar LyX
271 の内部動作がどうなっているか,LyXに希望する\SpecialChar LaTeX
272 コードを正
273 確に生成させるにはどうしたらいいかを収録しています.本章は,あきらかに熟練\SpecialChar LyX
274 ユーザー向けの章となっています.
275 \end_layout
276
277 \begin_layout Chapter
278 \SpecialChar LyX
279 と\SpecialChar LaTeX
280
281 \end_layout
282
283 \begin_layout Section
284 \SpecialChar LyX
285 は\SpecialChar LaTeX
286 をどう使っているか
287 \end_layout
288
289 \begin_layout Standard
290 本章
291 \family roman
292 \series medium
293 \shape up
294 \size normal
295 \emph off
296 \bar no
297 \noun off
298 \color none
299 は,\SpecialChar TeX
300 熟練者と\SpecialChar LaTeX
301 に興味のある方向けの章です.ここでは,\SpecialChar LyX
302 と\SpecialChar LaTeX
303 が,印刷可能な出力を生成するのに,どのように協働しているのかを説明します.全取扱説明書中で本章だけは,\SpecialChar LaTeX
304 のこと
305 を多少なりともご存知であることを前提とします.
306 \end_layout
307
308 \begin_layout Standard
309
310 \family roman
311 \series medium
312 \shape up
313 \size normal
314 \emph off
315 \bar no
316 \noun off
317 \color none
318 かつて\SpecialChar LyX
319 は,「\SpecialChar LaTeX
320
321 \family default
322 \series default
323 \shape default
324 \size default
325 \emph default
326 \bar default
327 \noun default
328 \color inherit
329 WYSIWYM
330 \family roman
331 \series medium
332 \shape up
333 \size normal
334 \emph off
335 \bar no
336 \noun off
337 \color none
338 なフロントエンド」と呼ばれていましたが,いまではこれは正しくありません.\SpecialChar LaTeX
339 のフロントエンドは,いくつも出回っています
340 \begin_inset Foot
341 status collapsed
342
343 \begin_layout Plain Layout
344
345 \family roman
346 \series medium
347 \shape up
348 \size normal
349 \emph off
350 \bar no
351 \noun off
352 \color none
353 有名なものとしては,Linux上の\SpecialChar TeX
354 makerとkile,OSX上の\SpecialChar TeX
355 shopなどがあります.もちろんviとemacsの\SpecialChar LaTeX
356 モードも含まれます.
357 \end_layout
358
359 \end_inset
360
361 .これらは,基本的に\SpecialChar LaTeX
362 を走らせる機能を有し,編集中のファイルのエラーを表示する機能を持ったテキストエディタです.\SpecialChar LyX
363 も,エディタであり,\SpecialChar LaTeX
364 を走らせる機能を有し,ファイル
365 中のエラーを指摘しますが,それ以上にもっともっと多くのことをしてくれます.
366 \family default
367 \series default
368 \shape default
369 \size default
370 \emph default
371 \bar default
372 \noun default
373 \color inherit
374 ひとつには,
375 \family roman
376 \series medium
377 \shape up
378 \size normal
379 \emph off
380 \bar no
381 \noun off
382 \color none
383 \SpecialChar LyX
384 を効果的に使うのに,\SpecialChar LaTeX
385 の知識が必要とされないことが挙げられます.また\SpecialChar LyX
386 は,それ自身,いくつかの拡張を\SpecialChar LaTeX
387 に加えています.時間のあるときにでも,いちど以下の手順を試してみ
388 てください.まず
389 \family sans
390 \series default
391 \shape default
392 \size default
393 \emph default
394 \bar default
395 \noun default
396 \color inherit
397
398 \begin_inset Flex MenuItem
399 status collapsed
400
401 \begin_layout Plain Layout
402
403 \family sans
404 ファイル
405 \end_layout
406
407 \end_inset
408
409
410 \family roman
411 \series medium
412 \shape up
413 \size normal
414 \emph off
415 \bar no
416 \noun off
417 \color none
418 メニューから
419 \family sans
420 \series default
421 \shape default
422 \size default
423 \emph default
424 \bar default
425 \noun default
426 \color inherit
427
428 \begin_inset Flex MenuItem
429 status collapsed
430
431 \begin_layout Plain Layout
432
433 \family sans
434 エクスポート\SpecialChar menuseparator
435 LaTeX
436 \end_layout
437
438 \end_inset
439
440
441 \family roman
442 \series medium
443 \shape up
444 \size normal
445 \emph off
446 \bar no
447 \noun off
448 \color none
449 (あるいは
450 \family sans
451 \series default
452 \shape default
453 \size default
454 \emph default
455 \bar default
456 \noun default
457 \color inherit
458
459 \begin_inset Flex MenuItem
460 status collapsed
461
462 \begin_layout Plain Layout
463
464 \family sans
465 表示\SpecialChar menuseparator
466 ソースを閲覧
467 \end_layout
468
469 \end_inset
470
471
472 \family roman
473 \series medium
474 \shape up
475 \size normal
476 \emph off
477 \bar no
478 \noun off
479 \color none
480 )を選択し,そこから出力される
481 \begin_inset Flex Code
482 status collapsed
483
484 \begin_layout Plain Layout
485
486 \family typewriter
487 .tex
488 \end_layout
489
490 \end_inset
491
492 ファイルのプリアンブルをご覧ください.\SpecialChar LyX
493 によって特別に定義された新しいマクロが複数定義されていることに気づかれるはずです
494 \family default
495 \series default
496 \shape default
497 \size default
498 \emph default
499 \bar default
500 \noun default
501 \color inherit
502 .これらのマクロは,文書中で使用する機能に応じて,自動的に定義されます.
503 \end_layout
504
505 \begin_layout Standard
506
507 \family roman
508 \series medium
509 \shape up
510 \size normal
511 \emph off
512 \bar no
513 \noun off
514 \color none
515 自動的に\SpecialChar LaTeX
516 を実行するコマンドが,以下のようにいくつかあります.
517 \end_layout
518
519 \begin_layout Itemize
520 \begin_inset Flex MenuItem
521 status collapsed
522
523 \begin_layout Plain Layout
524 表示\SpecialChar menuseparator
525 書式
526 \end_layout
527
528 \end_inset
529
530
531 \end_layout
532
533 \begin_layout Itemize
534
535 \family sans
536 \begin_inset Flex MenuItem
537 status collapsed
538
539 \begin_layout Plain Layout
540
541 \bar no
542 表示\SpecialChar menuseparator
543 更新\SpecialChar menuseparator
544
545 \bar default
546 書式
547 \end_layout
548
549 \end_inset
550
551
552 \end_layout
553
554 \begin_layout Standard
555
556 \family roman
557 \series medium
558 \shape up
559 \size normal
560 \emph off
561 \bar no
562 \noun off
563 \color none
564 これらは,最後に\SpecialChar LaTeX
565 を実行してからファイルに変更が加えられた場合のみ,\SpecialChar LaTeX
566 を実行します.
567 \end_layout
568
569 \begin_layout Standard
570
571 \family roman
572 \series medium
573 \shape up
574 \size normal
575 \emph off
576 \bar no
577 \noun off
578 \color none
579 \SpecialChar LyX
580 が編集中のファイルを\SpecialChar LaTeX
581 にかけるとき,\SpecialChar LyX
582 は以下の段階をふみます.
583 \end_layout
584
585 \begin_layout Enumerate
586
587 \family roman
588 \series medium
589 \shape up
590 \size normal
591 \emph off
592 \bar no
593 \noun off
594 \color none
595 文書を\SpecialChar LaTeX
596 に変換し,ファイルの拡張子を
597 \begin_inset Flex Code
598 status collapsed
599
600 \begin_layout Plain Layout
601
602 \family roman
603 \series medium
604 \shape up
605 \size normal
606 \emph off
607 \bar no
608 \noun off
609 \color none
610 .lyx
611 \end_layout
612
613 \end_inset
614
615 から
616 \begin_inset Flex Code
617 status collapsed
618
619 \begin_layout Plain Layout
620
621 \family roman
622 \series medium
623 \shape up
624 \size normal
625 \emph off
626 \bar no
627 \noun off
628 \color none
629 .tex
630 \end_layout
631
632 \end_inset
633
634 に変えて保存.
635 \end_layout
636
637 \begin_layout Enumerate
638
639 \family roman
640 \series medium
641 \shape up
642 \size normal
643 \emph off
644 \bar no
645 \noun off
646 \color none
647 この
648 \begin_inset Flex Code
649 status collapsed
650
651 \begin_layout Plain Layout
652
653 \family roman
654 \series medium
655 \shape up
656 \size normal
657 \emph off
658 \bar no
659 \noun off
660 \color none
661 .tex
662 \end_layout
663
664 \end_inset
665
666 ファイルに対して(必要に応じて複数回)\SpecialChar LaTeX
667 を実行し,\SpecialChar LaTeX
668 ファイルをコンパイルするのに必要な他のコマンド(
669 \begin_inset Flex Code
670 status collapsed
671
672 \begin_layout Plain Layout
673
674 \family roman
675 \series medium
676 \shape up
677 \size normal
678 \emph off
679 \bar no
680 \noun off
681 \color none
682 bibtex
683 \end_layout
684
685 \end_inset
686
687
688 \begin_inset Flex Code
689 status collapsed
690
691 \begin_layout Plain Layout
692
693 \family roman
694 \series medium
695 \shape up
696 \size normal
697 \emph off
698 \bar no
699 \noun off
700 \color none
701 makeindex
702 \end_layout
703
704 \end_inset
705
706 など)を実行..
707 \end_layout
708
709 \begin_layout Enumerate
710
711 \family roman
712 \series medium
713 \shape up
714 \size normal
715 \emph off
716 \bar no
717 \noun off
718 \color none
719 もしエラーがあれば,エラーログを表示.
720 \end_layout
721
722 \begin_layout Standard
723
724 \family roman
725 \series medium
726 \shape up
727 \size normal
728 \emph off
729 \bar no
730 \noun off
731 \color none
732 \SpecialChar LaTeX
733
734 \family sans
735 \series default
736 \shape default
737 \size default
738 \emph default
739 \bar default
740 \noun default
741 \color inherit
742
743 \begin_inset Flex MenuItem
744 status collapsed
745
746 \begin_layout Plain Layout
747
748 \family sans
749 表示\SpecialChar menuseparator
750 DVI
751 \end_layout
752
753 \end_inset
754
755
756 \family roman
757 \series medium
758 \shape up
759 \size normal
760 \emph off
761 \bar no
762 \noun off
763 \color none
764 を使用して実行した場合には,\SpecialChar LyX
765 はこの後,DVIビューアを実行してDVIファイルを表示します.
766 \begin_inset Flex MenuItem
767 status collapsed
768
769 \begin_layout Plain Layout
770
771 \family roman
772 \series medium
773 \shape up
774 \size normal
775 \emph off
776 \bar no
777 \noun off
778 \color none
779 表示\SpecialChar menuseparator
780 PostScript
781 \end_layout
782
783 \end_inset
784
785 を使用した場合には,\SpecialChar LyX
786 はさらに以下の段階をふみます.
787 \end_layout
788
789 \begin_layout Itemize
790
791 \family roman
792 \series medium
793 \shape up
794 \size normal
795 \emph off
796 \bar no
797 \noun off
798 \color none
799 \begin_inset Flex Code
800 status collapsed
801
802 \begin_layout Plain Layout
803
804 \family typewriter
805 dvips
806 \end_layout
807
808 \end_inset
809
810 を実行して,
811 \family default
812 \series default
813 \shape default
814 \size default
815 \emph default
816 \bar default
817 \noun default
818 \color inherit
819 DVI
820 \family roman
821 \series medium
822 \shape up
823 \size normal
824 \emph off
825 \bar no
826 \noun off
827 \color none
828 ファイルをPostScript
829 \family default
830 \series default
831 \shape default
832 \size default
833 \emph default
834 \bar default
835 \noun default
836 \color inherit
837 に変換.
838 \end_layout
839
840 \begin_layout Itemize
841
842 \family roman
843 \series medium
844 \shape up
845 \size normal
846 \emph off
847 \bar no
848 \noun off
849 \color none
850 \begin_inset Flex Code
851 status collapsed
852
853 \begin_layout Plain Layout
854
855 \family typewriter
856 ghostview
857 \end_layout
858
859 \end_inset
860
861 などのPostScriptビューアを実行して,PostScript
862 \family default
863 \series default
864 \shape default
865 \size default
866 \emph default
867 \bar default
868 \noun default
869 \color inherit
870 ファイルを表示.
871 \end_layout
872
873 \begin_layout Standard
874 \SpecialChar LyX
875 は,他の書式を表示したりエクスポートしたりする際にも,同様のことを行います.
876 \end_layout
877
878 \begin_layout Section
879 \SpecialChar LaTeX
880 ファイルを\SpecialChar LyX
881 に読み込む
882 \end_layout
883
884 \begin_layout Standard
885 \SpecialChar LyX
886
887 \family sans
888
889 \begin_inset Flex MenuItem
890 status collapsed
891
892 \begin_layout Plain Layout
893
894 \family sans
895 ファイル\SpecialChar menuseparator
896 インポート\SpecialChar menuseparator
897 LaTeX
898 \end_layout
899
900 \end_inset
901
902
903 \family roman
904 \series medium
905 \shape up
906 \size normal
907 \emph off
908 \bar no
909 \noun off
910 \color none
911 コマンドを使用すると,\SpecialChar LaTeX
912 ファイルを
913 \family default
914 \series default
915 \shape default
916 \size default
917 \emph default
918 \bar default
919 \noun default
920  
921 \family roman
922 \series medium
923 \shape up
924 \size normal
925 \emph off
926 \bar no
927 \noun off
928 \SpecialChar LyX
929 にインポートすることができます.このコマンドは,
930 \family typewriter
931 \series default
932 \shape default
933 \size default
934 \emph default
935 \bar default
936 \noun default
937 \color inherit
938
939 \begin_inset Flex Code
940 status collapsed
941
942 \begin_layout Plain Layout
943
944 \family typewriter
945 tex2lyx
946 \end_layout
947
948 \end_inset
949
950
951 \family roman
952 \series medium
953 \shape up
954 \size normal
955 \emph off
956 \bar no
957 \noun off
958 \color none
959 というプログラムを呼び出し,
960 \family typewriter
961 \series default
962 \shape default
963 \size default
964 \emph default
965 \bar default
966 \noun default
967 \color inherit
968
969 \begin_inset Flex Code
970 status collapsed
971
972 \begin_layout Plain Layout
973
974 \family typewriter
975 foo.tex
976 \end_layout
977
978 \end_inset
979
980
981 \family default
982 などというファイルから
983 \begin_inset Flex Code
984 status collapsed
985
986 \begin_layout Plain Layout
987
988 \family typewriter
989 foo.lyx
990 \end_layout
991
992 \end_inset
993
994 を生成します.\SpecialChar LyX
995 は,この変換したファイルを開きます
996 \begin_inset Foot
997 status collapsed
998
999 \begin_layout Plain Layout
1000 \begin_inset Flex Code
1001 status collapsed
1002
1003 \begin_layout Plain Layout
1004 tex2lyx
1005 \end_layout
1006
1007 \end_inset
1008
1009 は,もちろんコマンドラインから実行することもできます.
1010 \end_layout
1011
1012 \end_inset
1013
1014
1015 \end_layout
1016
1017 \begin_layout Standard
1018
1019 \family typewriter
1020 \begin_inset Flex Code
1021 status collapsed
1022
1023 \begin_layout Plain Layout
1024
1025 \family typewriter
1026 tex2lyx
1027 \end_layout
1028
1029 \end_inset
1030
1031
1032 \family roman
1033 \series medium
1034 \shape up
1035 \size normal
1036 \emph off
1037 \bar no
1038 \noun off
1039 \color none
1040 は,文法的に正しい\SpecialChar LaTeX
1041 ファイルのほとんどを変換することができますが,すべてを変換できるわけではありません.
1042 \family typewriter
1043 \series default
1044 \shape default
1045 \size default
1046 \emph default
1047 \bar default
1048 \noun default
1049 \color inherit
1050
1051 \begin_inset Flex Code
1052 status collapsed
1053
1054 \begin_layout Plain Layout
1055
1056 \family typewriter
1057 tex2lyx
1058 \end_layout
1059
1060 \end_inset
1061
1062
1063 \family roman
1064 \series medium
1065 \shape up
1066 \size normal
1067 \emph off
1068 \bar no
1069 \noun off
1070 \color none
1071 は,理解不能な部分は\SpecialChar TeX
1072 コードボックスの形で残しますので,ファイルを
1073 \family typewriter
1074 \series default
1075 \shape default
1076 \size default
1077 \emph default
1078 \bar default
1079 \noun default
1080 \color inherit
1081
1082 \begin_inset Flex Code
1083 status collapsed
1084
1085 \begin_layout Plain Layout
1086
1087 \family typewriter
1088 tex2lyx
1089 \end_layout
1090
1091 \end_inset
1092
1093
1094 \family roman
1095 \series medium
1096 \shape up
1097 \size normal
1098 \emph off
1099 \bar no
1100 \noun off
1101 \color none
1102 で変換したのち,\SpecialChar TeX
1103 コードボックスを探して,手動で正しく編集してください.
1104 \end_layout
1105
1106 \begin_layout Standard
1107
1108 \family roman
1109 \series medium
1110 \shape up
1111 \size normal
1112 \emph off
1113 \bar no
1114 \noun off
1115 \color none
1116 \SpecialChar TeX
1117 コードボックスがなにかご存じなければ,次節をお読みください.
1118 \end_layout
1119
1120 \begin_layout Section
1121 \SpecialChar LyX
1122 文書に\SpecialChar TeX
1123 コードを挿入する
1124 \begin_inset CommandInset label
1125 LatexCommand label
1126 name "sec:TeXコードを挿入する"
1127
1128 \end_inset
1129
1130
1131 \end_layout
1132
1133 \begin_layout Standard
1134
1135 \family roman
1136 \series medium
1137 \shape up
1138 \size normal
1139 \emph off
1140 \bar no
1141 \noun off
1142 \color none
1143 どの\SpecialChar LyX
1144 文書にもつねに\SpecialChar TeX
1145 コードを挿入することが可能であるというきわめて単純な理由によって,\SpecialChar LaTeX
1146 にできることは,つねに\SpecialChar LyX
1147 でも行うことができます.一方,\SpecialChar LyX
1148 は,すべての\SpecialChar LaTeX
1149 構成物を\SpecialChar LyX
1150 内に
1151 表示できるわけではなく,将来的にもそうならないでしょう.かりに\SpecialChar LaTeX
1152 コマンドを\SpecialChar LyX
1153 文書に挿入する必要が出てきた場合には,
1154 \begin_inset Flex Code
1155 status collapsed
1156
1157 \begin_layout Plain Layout
1158
1159 \family roman
1160 \series medium
1161 \shape up
1162 \size normal
1163 \emph off
1164 \bar no
1165 \noun off
1166 \color none
1167 \SpecialChar TeX
1168 コード
1169 \end_layout
1170
1171 \end_inset
1172
1173 ボックスを使用してください.これは,
1174 \family sans
1175 \series default
1176 \shape default
1177 \size default
1178 \emph default
1179 \bar default
1180 \noun default
1181 \color inherit
1182
1183 \begin_inset Flex MenuItem
1184 status collapsed
1185
1186 \begin_layout Plain Layout
1187
1188 \family sans
1189 挿入\SpecialChar menuseparator
1190 TeXコード
1191 \end_layout
1192
1193 \end_inset
1194
1195
1196 \family roman
1197 \series medium
1198 \shape up
1199 \size normal
1200 \emph off
1201 \bar no
1202 \noun off
1203 \color none
1204 若しくは
1205 \family default
1206 \series default
1207 \shape default
1208 \size default
1209 \emph default
1210 \bar default
1211 \noun default
1212 \color inherit
1213
1214 \begin_inset Flex Ruby
1215 status collapsed
1216
1217 \begin_layout Plain Layout
1218
1219 \family roman
1220 \series medium
1221 \shape up
1222 \size normal
1223 \emph off
1224 \bar no
1225 \noun off
1226 \color none
1227 捷径
1228 \family default
1229 \series default
1230 \shape default
1231 \size default
1232 \emph default
1233 \bar default
1234 \noun default
1235 \color inherit
1236
1237 \begin_inset Argument post:1
1238 status collapsed
1239
1240 \begin_layout Plain Layout
1241 ショートカット
1242 \end_layout
1243
1244 \end_inset
1245
1246
1247 \end_layout
1248
1249 \end_inset
1250
1251
1252 \begin_inset Flex Ruby
1253 status collapsed
1254
1255 \begin_layout Plain Layout
1256
1257 \family roman
1258 \series medium
1259 \shape up
1260 \size normal
1261 \emph off
1262 \bar no
1263 \noun off
1264 \color none
1265
1266 \begin_inset Argument post:1
1267 status collapsed
1268
1269 \begin_layout Plain Layout
1270 キー
1271 \end_layout
1272
1273 \end_inset
1274
1275
1276 \end_layout
1277
1278 \end_inset
1279
1280
1281 \begin_inset Info
1282 type  "shortcut"
1283 arg   "ert-insert"
1284 \end_inset
1285
1286
1287 \family roman
1288 \series medium
1289 \shape up
1290 \size normal
1291 \emph off
1292 \bar no
1293 \noun off
1294 \color none
1295 で,文書中に挿入することができます.
1296 \end_layout
1297
1298 \begin_layout Standard
1299 以下は,\SpecialChar LaTeX
1300 コマンドを\SpecialChar LyX
1301 文書中に挿入する例です.コードは以下のようになっているとしましょう.
1302 \end_layout
1303
1304 \begin_layout LyX-Code
1305
1306 \backslash
1307 begin{tabular}{ll}
1308 \begin_inset Newline newline
1309 \end_inset
1310
1311
1312 \backslash
1313 begin{minipage}{5cm}
1314 \begin_inset Newline newline
1315 \end_inset
1316
1317 これは,ミニページ環境の例です.
1318 \begin_inset Newline newline
1319 \end_inset
1320
1321 これには,
1322 \begin_inset Newline newline
1323 \end_inset
1324
1325 (フロートでない)図表を
1326 \begin_inset Newline newline
1327 \end_inset
1328
1329 含め,ほとんど何でも
1330 \begin_inset Newline newline
1331 \end_inset
1332
1333 入れることができます. 
1334 \begin_inset Newline newline
1335 \end_inset
1336
1337
1338 \backslash
1339 end{minipage}
1340 \begin_inset Newline newline
1341 \end_inset
1342
1343 &
1344 \begin_inset Newline newline
1345 \end_inset
1346
1347
1348 \backslash
1349 begin{minipage}{5cm}
1350 \begin_inset Newline newline
1351 \end_inset
1352
1353
1354 \backslash
1355 begin{verbatim}
1356 \begin_inset Newline newline
1357 \end_inset
1358
1359
1360 \backslash
1361 begin{minipage}{5cm}
1362 \begin_inset Newline newline
1363 \end_inset
1364
1365 これは...
1366  
1367 \begin_inset Newline newline
1368 \end_inset
1369
1370
1371 \backslash
1372 end{minipage}
1373 \begin_inset Newline newline
1374 \end_inset
1375
1376
1377 \backslash
1378 end{verbatim}
1379 \begin_inset Newline newline
1380 \end_inset
1381
1382
1383 \backslash
1384 end{minipage}
1385 \begin_inset Newline newline
1386 \end_inset
1387
1388
1389 \backslash
1390 end{tabular}
1391 \end_layout
1392
1393 \begin_layout LyX-Code
1394
1395 \end_layout
1396
1397 \begin_layout Standard
1398 上記のテキストを含んだ
1399 \begin_inset Flex Code
1400 status collapsed
1401
1402 \begin_layout Plain Layout
1403 \SpecialChar TeX
1404 コード
1405 \end_layout
1406
1407 \end_inset
1408
1409 ボックスが,この段落の直後にあります.この取扱説明書を\SpecialChar LyX
1410 上でご覧になっていれば,\SpecialChar TeX
1411 コード差込枠のみが見えるはずです.印刷した取扱説明書をご覧であれば,実際の結果が見
1412 れるはずです.
1413 \end_layout
1414
1415 \begin_layout Standard
1416 \begin_inset VSpace bigskip
1417 \end_inset
1418
1419
1420 \begin_inset ERT
1421 status open
1422
1423 \begin_layout Plain Layout
1424
1425
1426 \backslash
1427 begin{tabular}{ll}
1428 \end_layout
1429
1430 \begin_layout Plain Layout
1431
1432
1433 \backslash
1434 begin{minipage}{5cm}
1435 \end_layout
1436
1437 \begin_layout Plain Layout
1438
1439 これは,ミニページ環境の例です.これには,(フロートでない)図表を含め,ほとんど何でも入れることができます. 
1440 \backslash
1441 end{minipage}
1442 \end_layout
1443
1444 \begin_layout Plain Layout
1445
1446 &
1447 \end_layout
1448
1449 \begin_layout Plain Layout
1450
1451
1452 \backslash
1453 begin{minipage}{5cm}
1454 \end_layout
1455
1456 \begin_layout Plain Layout
1457
1458
1459 \backslash
1460 begin{verbatim}
1461 \end_layout
1462
1463 \begin_layout Plain Layout
1464
1465
1466 \backslash
1467 begin{minipage}{5cm}
1468 \end_layout
1469
1470 \begin_layout Plain Layout
1471
1472 これは...
1473  
1474 \backslash
1475 end{minipage}
1476 \end_layout
1477
1478 \begin_layout Plain Layout
1479
1480
1481 \backslash
1482 end{verbatim}
1483 \end_layout
1484
1485 \begin_layout Plain Layout
1486
1487
1488 \backslash
1489 end{minipage}
1490 \end_layout
1491
1492 \begin_layout Plain Layout
1493
1494
1495 \backslash
1496 end{tabular}
1497 \end_layout
1498
1499 \end_inset
1500
1501
1502 \begin_inset VSpace bigskip
1503 \end_inset
1504
1505
1506 \end_layout
1507
1508 \begin_layout Standard
1509
1510 \family roman
1511 \series medium
1512 \shape up
1513 \size normal
1514 \emph off
1515 \bar no
1516 \noun off
1517 \color none
1518 \SpecialChar TeX
1519 コードを使用する方法に加えて,複雑な\SpecialChar LaTeX
1520 コードを含む部分を別ファイルとして作成しておき,そのファイルをインクルードするのに
1521 \begin_inset Flex MenuItem
1522 status collapsed
1523
1524 \begin_layout Plain Layout
1525
1526 \family roman
1527 \series medium
1528 \shape up
1529 \size normal
1530 \emph off
1531 \bar no
1532 \noun off
1533 \color none
1534 挿入\SpecialChar menuseparator
1535 ファイル\SpecialChar menuseparator
1536 子文書
1537 \end_layout
1538
1539 \end_inset
1540
1541 を使用する方法もあります(取り込みの型として
1542 \begin_inset Flex Code
1543 status collapsed
1544
1545 \begin_layout Plain Layout
1546
1547 \family roman
1548 \series medium
1549 \shape up
1550 \size normal
1551 \emph off
1552 \bar no
1553 \noun off
1554 \color none
1555 Input
1556 \end_layout
1557
1558 \end_inset
1559
1560 を選択しなくてはなりません).この方法をとる場合には,.texファイルが正しく動作することが
1561 \family default
1562 \series default
1563 \shape default
1564 \size default
1565 \emph on
1566 \bar default
1567 \noun default
1568 \color inherit
1569 確認できている
1570 \family roman
1571 \series medium
1572 \shape up
1573 \size normal
1574 \emph off
1575 \bar no
1576 \noun off
1577 \color none
1578 場合のみに限った方がよいでしょう.さもないと,\SpecialChar LaTeX
1579 エラーを追跡するたいへんな作業を行わなくてはならなくなります.
1580 \end_layout
1581
1582 \begin_layout Standard
1583
1584 \family roman
1585 \series medium
1586 \shape up
1587 \size normal
1588 \emph off
1589 \bar no
1590 \noun off
1591 \color none
1592 最後に,いくつか強調しておくべきことがあります.
1593 \end_layout
1594
1595 \begin_layout Itemize
1596
1597 \family roman
1598 \series medium
1599 \shape up
1600 \size normal
1601 \emph off
1602 \bar no
1603 \noun off
1604 \color none
1605 \SpecialChar LyX
1606 は,あなたの\SpecialChar LaTeX
1607 コードが正しいかどうかを
1608 \family default
1609 \series default
1610 \shape default
1611 \size default
1612 \emph on
1613 \bar default
1614 \noun default
1615 \color inherit
1616 チェックしません
1617 \family roman
1618 \series medium
1619 \shape up
1620 \size normal
1621 \emph off
1622 \bar no
1623 \noun off
1624 \color none
1625
1626 \end_layout
1627
1628 \begin_layout Itemize
1629
1630 \family roman
1631 \series medium
1632 \shape up
1633 \size normal
1634 \emph off
1635 \bar no
1636 \noun off
1637 \color none
1638 車輪の再発明をしないようにご注意ください.
1639 \end_layout
1640
1641 \begin_layout Standard
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 二番目の点に関して,\SpecialChar LyX
1652 はひじょうにたくさんの機能を装備しており,その数は増えつづけています.ご自身で\SpecialChar LaTeX
1653 コードを書かなくてはならないと思い込む前に,LyXがこれこれの
1654 機能をもっていないことを,取扱説明書で確実に確かめてください.さらに世の中には,封筒のラベルから美しい複数ページにわたる表を作るものまで,ありとあらゆることを行
1655 う膨大な数の\SpecialChar LaTeX
1656 パッケージが存在します.
1657 \family default
1658 \series default
1659 \shape default
1660 \size default
1661 \emph default
1662 \bar default
1663 \noun default
1664 \color inherit
1665 詳細については,
1666 \begin_inset CommandInset href
1667 LatexCommand href
1668 name "CTAN"
1669 target "http://www.ctan.org/"
1670 literal "false"
1671
1672 \end_inset
1673
1674
1675 \family roman
1676 \series medium
1677 \shape up
1678 \size normal
1679 \emph off
1680 \bar no
1681 \noun off
1682 \color none
1683 と第
1684 \begin_inset CommandInset ref
1685 LatexCommand ref
1686 reference "chap:Special-features"
1687
1688 \end_inset
1689
1690 節をご覧ください.
1691 \end_layout
1692
1693 \begin_layout Standard
1694
1695 \family roman
1696 \series medium
1697 \shape up
1698 \size normal
1699 \emph off
1700 \bar no
1701 \noun off
1702 \color none
1703 もし,文書中で例外的に手の込んだことをなさりたければ,かならず良い\SpecialChar LaTeX
1704 関連書籍を参考とするようにしてください.『
1705 \family default
1706 \series default
1707 \shape default
1708 \size default
1709 \emph on
1710 \bar default
1711 \noun default
1712 \color inherit
1713 ユーザーの手引き
1714 \family roman
1715 \series medium
1716 \shape up
1717 \size normal
1718 \emph off
1719 \bar no
1720 \noun off
1721 \color none
1722 』の書誌情報に多くの\SpecialChar LaTeX
1723 関連書籍が引用されています.
1724 \end_layout
1725
1726 \begin_layout Section
1727 \SpecialChar LyX
1728 と\SpecialChar LaTeX
1729 プリアンブル
1730 \end_layout
1731
1732 \begin_layout Subsection
1733 \SpecialChar LaTeX
1734 プリアンブルについて
1735 \end_layout
1736
1737 \begin_layout Standard
1738
1739 \family roman
1740 \series medium
1741 \shape up
1742 \size normal
1743 \emph off
1744 \bar no
1745 \noun off
1746 \color none
1747 すでに\SpecialChar LaTeX
1748 についてご存知であれば,ここでプリアンブル(前置文)が何に向いているか説明する必要はないでしょう.もしご存じなければ,以下の説明で大まかな理解は得られるは
1749 ずです.詳しくは\SpecialChar LaTeX
1750 関連書籍をご参照ください.いずれにしても,以下で\SpecialChar LyX
1751 文書の\SpecialChar LaTeX
1752 プリアンブルで何ができるか,または何をする必要がないか説明をしますので,以下の各要点はお読
1753 みになった方が良いでしょう.
1754 \end_layout
1755
1756 \begin_layout Standard
1757
1758 \family roman
1759 \series medium
1760 \shape up
1761 \size normal
1762 \emph off
1763 \bar no
1764 \noun off
1765 \color none
1766 \SpecialChar LaTeX
1767 プリアンブルは,\SpecialChar LaTeX
1768 文書のいちばん始め,本文の
1769 \family default
1770 \series default
1771 \shape default
1772 \size default
1773 \emph on
1774 \bar default
1775 \noun default
1776 \color inherit
1777
1778 \family roman
1779 \series medium
1780 \shape up
1781 \size normal
1782 \emph off
1783 \bar no
1784 \noun off
1785 \color none
1786 の部分に来ます.ここでは以下のことを行います.
1787 \end_layout
1788
1789 \begin_layout Itemize
1790
1791 \family roman
1792 \series medium
1793 \shape up
1794 \size normal
1795 \emph off
1796 \bar no
1797 \noun off
1798 \color none
1799 文書クラス(ドキュメントクラス)の宣言.
1800 \begin_inset Newline newline
1801 \end_inset
1802
1803 これは\SpecialChar LyX
1804 がすでに行ってくれています.もしあなたが熟達した\SpecialChar LaTeX
1805 使いであり,自作の文書クラスを使いたい場合には,取扱説明書『
1806 \family default
1807 \series default
1808 \shape default
1809 \size default
1810 \emph on
1811 \bar default
1812 \noun default
1813 \color inherit
1814 カスタマイズ篇
1815 \family roman
1816 \series medium
1817 \shape up
1818 \size normal
1819 \emph off
1820 \bar no
1821 \noun off
1822 \color none
1823 』をご覧になれば,\SpecialChar LyX
1824 に自作文書クラスへの仲介を行わせるにはどうすればよいかの情報があります.
1825 \end_layout
1826
1827 \begin_layout Itemize
1828
1829 \family roman
1830 \series medium
1831 \shape up
1832 \size normal
1833 \emph off
1834 \bar no
1835 \noun off
1836 \color none
1837 パッケージ使用の宣言.
1838 \begin_inset Newline newline
1839 \end_inset
1840
1841 \SpecialChar LaTeX
1842 パッケージは,パッケージがプリアンブルで宣言された場合のみ,文書中で利用可能となる,追加コマンド群を提供します.パッケージをインクルードすると,特別なコマンドが
1843 提供されることに加え,文書に変更を加えることができます.例えば
1844 \family typewriter
1845 \series default
1846 \shape default
1847 \size default
1848 \emph default
1849 \bar default
1850 \noun default
1851 \color inherit
1852
1853 \family roman
1854 \series medium
1855 \shape up
1856 \size normal
1857 \emph off
1858 \bar no
1859 \noun off
1860 \color none
1861
1862 \begin_inset Flex Code
1863 status collapsed
1864
1865 \begin_layout Plain Layout
1866
1867 \family typewriter
1868 indentfirst
1869 \end_layout
1870
1871 \end_inset
1872
1873 パッケージは,すべての段落の最初の行を字下げします.他にも,ラベルや宛名書き,余白設定等の様々なパッケージがあります.
1874 \end_layout
1875
1876 \begin_layout Itemize
1877
1878 \family roman
1879 \series medium
1880 \shape up
1881 \size normal
1882 \emph off
1883 \bar no
1884 \noun off
1885 \color none
1886 カウンタ・変数・長さ・幅の設定.
1887 \begin_inset Newline newline
1888 \end_inset
1889
1890 \SpecialChar LaTeX
1891 のカウンタと変数の中には,プリアンブルでグローバルに
1892 \family default
1893 \series default
1894 \shape default
1895 \size default
1896 \emph default
1897 \bar default
1898 \noun default
1899 \color inherit
1900 設定
1901 \emph on
1902 しないかぎり
1903 \family roman
1904 \series medium
1905 \shape up
1906 \size normal
1907 \emph off
1908 \bar no
1909 \noun off
1910 \color none
1911 ,望んだ効果を持たないものがあります.(文書中で設定したり再設定したりすることのできる変数もあります.)余白は,プリアンブルで設定しなくてはならない変数の代表例
1912 です.他には,箇条書きに付けるラベル書式が挙げられます.じつは,この設定は文書中どこでもできるのですが,プリアンブルでいちどだけ設定するのが望ましい方法です.
1913 \end_layout
1914
1915 \begin_layout Itemize
1916
1917 \family roman
1918 \series medium
1919 \shape up
1920 \size normal
1921 \emph off
1922 \bar no
1923 \noun off
1924 \color none
1925 ユーザー定義コマンドの宣言(
1926 \begin_inset Flex Code
1927 status collapsed
1928
1929 \begin_layout Plain Layout
1930
1931 \family roman
1932 \series medium
1933 \shape up
1934 \size normal
1935 \emph off
1936 \bar no
1937 \noun off
1938 \color none
1939
1940 \backslash
1941 newcommand
1942 \end_layout
1943
1944 \end_inset
1945
1946 または
1947 \begin_inset Flex Code
1948 status collapsed
1949
1950 \begin_layout Plain Layout
1951
1952 \family roman
1953 \series medium
1954 \shape up
1955 \size normal
1956 \emph off
1957 \bar no
1958 \noun off
1959 \color none
1960
1961 \backslash
1962 renewcommand
1963 \end_layout
1964
1965 \end_inset
1966
1967 を使用).
1968 \begin_inset Newline newline
1969 \end_inset
1970
1971 ユーザー定義コマンドは,文書中で頻出する\SpecialChar LaTeX
1972 コマンドの短縮形です.このようなコマンドを宣言するには,プリアンブルが適した場所ですが,どこで宣言することも
1973 \family default
1974 \series default
1975 \shape default
1976 \size default
1977 \emph on
1978 \bar default
1979 \noun default
1980 \color inherit
1981 可能
1982 \family roman
1983 \series medium
1984 \shape up
1985 \size normal
1986 \emph off
1987 \bar no
1988 \noun off
1989 \color none
1990 です(もちろんコマンドが初めて使用される場所よりも前です).あまりないことではありますが,お使いの文書中に生の\SpecialChar LaTeX
1991 コードがあふれている場合には便利でしょう.
1992 \end_layout
1993
1994 \begin_layout Standard
1995
1996 \family roman
1997 \series medium
1998 \shape up
1999 \size normal
2000 \emph off
2001 \bar no
2002 \noun off
2003 \color none
2004 \SpecialChar LyX
2005 は,その生成する
2006 \begin_inset Flex Code
2007 status collapsed
2008
2009 \begin_layout Plain Layout
2010
2011 \family roman
2012 \series medium
2013 \shape up
2014 \size normal
2015 \emph off
2016 \bar no
2017 \noun off
2018 \color none
2019 .tex
2020 \end_layout
2021
2022 \end_inset
2023
2024 ファイルのプリアンブルに,それ自身の定義を追加します.これによって,\SpecialChar LyX
2025 の生成する\SpecialChar LaTeX
2026 ファイルの可搬性を高めています.
2027 \end_layout
2028
2029 \begin_layout Subsection
2030 プリアンブルの変更
2031 \end_layout
2032
2033 \begin_layout Standard
2034
2035 \family roman
2036 \series medium
2037 \shape up
2038 \size normal
2039 \emph off
2040 \bar no
2041 \noun off
2042 \color none
2043 \SpecialChar LyX
2044 が\SpecialChar LaTeX
2045 ファイルのプリアンブルに追加するコマンドは,つねに同じです.これは,\SpecialChar LyX
2046 自体にパッチを当てないかぎり変更できないようになっています.しかしながら,
2047 \begin_inset Flex MenuItem
2048 status collapsed
2049
2050 \begin_layout Plain Layout
2051
2052 \family roman
2053 \series medium
2054 \shape up
2055 \size normal
2056 \emph off
2057 \bar no
2058 \noun off
2059 \color none
2060 文書\SpecialChar menuseparator
2061 設定
2062 \end_layout
2063
2064 \end_inset
2065
2066 ダイアログの
2067 \begin_inset Flex MenuItem
2068 status collapsed
2069
2070 \begin_layout Plain Layout
2071
2072 \family roman
2073 \series medium
2074 \shape up
2075 \size normal
2076 \emph off
2077 \bar no
2078 \noun off
2079 \color none
2080 \SpecialChar LaTeX
2081 プリアンブル
2082 \end_layout
2083
2084 \end_inset
2085
2086 の項から,プリアンブルに追加をすることはできます.\SpecialChar LyX
2087 は,
2088 \family sans
2089 \series default
2090 \shape default
2091 \size default
2092 \emph default
2093 \bar default
2094 \noun default
2095 \color inherit
2096
2097 \begin_inset Flex MenuItem
2098 status collapsed
2099
2100 \begin_layout Plain Layout
2101
2102 \family sans
2103 プリアンブル
2104 \end_layout
2105
2106 \end_inset
2107
2108
2109 \family roman
2110 \series medium
2111 \shape up
2112 \size normal
2113 \emph off
2114 \bar no
2115 \noun off
2116 \color none
2117 ダイアログ内のすべてのものを,\SpecialChar LyX
2118 埋込みのプリアンブルに付け加えます.ご自身の宣言をプリアンブルに追加する前に,あなたがしようとしていることを\SpecialChar LyX
2119 がすでにサポートしてい
2120 ないかどうか確認してください(車輪の再発明をしないように,とはすでに申しあげたことです).
2121 \family default
2122 \series default
2123 \shape default
2124 \size default
2125 \emph default
2126 \bar default
2127 \noun default
2128 \color inherit
2129 また,
2130 \emph on
2131 プリアンブルコードが正しいことを確認してください.
2132 \emph default
2133 \SpecialChar LyX
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 もしエラーがあれば,「
2144 \begin_inset Flex Code
2145 status collapsed
2146
2147 \begin_layout Plain Layout
2148
2149 \family roman
2150 \series medium
2151 \shape up
2152 \size normal
2153 \emph off
2154 \bar no
2155 \noun off
2156 \color none
2157 Missing 
2158 \backslash
2159 begin{document}
2160 \end_layout
2161
2162 \end_inset
2163
2164 」といったエラーが出ることでしょう.このようなエラーが出たときは,プリアンブルを再確認してください.
2165 \end_layout
2166
2167 \begin_layout Subsection
2168
2169 \end_layout
2170
2171 \begin_layout Standard
2172
2173 \family roman
2174 \series medium
2175 \shape up
2176 \size normal
2177 \emph off
2178 \bar no
2179 \noun off
2180 \color none
2181 以下は,プリアンブルに追加できるものとその効果を示す例です.
2182 \end_layout
2183
2184 \begin_layout Subsubsection
2185 例1:オフセット
2186 \end_layout
2187
2188 \begin_layout Standard
2189
2190 \family roman
2191 \series medium
2192 \shape up
2193 \size normal
2194 \emph off
2195 \bar no
2196 \noun off
2197 \color none
2198 \SpecialChar LaTeX
2199 には
2200 \family default
2201 \series default
2202 \shape default
2203 \size default
2204 \emph default
2205 \bar default
2206 \noun default
2207 \color inherit
2208
2209 \family roman
2210 \series medium
2211 \shape up
2212 \size normal
2213 \emph off
2214 \bar no
2215 \noun off
2216 \color none
2217
2218 \begin_inset Flex Code
2219 status collapsed
2220
2221 \begin_layout Plain Layout
2222
2223 \family typewriter
2224
2225 \backslash
2226 hoffset
2227 \end_layout
2228
2229 \end_inset
2230
2231
2232 \family typewriter
2233 \series default
2234 \shape default
2235 \size default
2236 \emph default
2237 \bar default
2238 \noun default
2239 \color inherit
2240
2241 \begin_inset Flex Code
2242 status collapsed
2243
2244 \begin_layout Plain Layout
2245
2246 \family typewriter
2247
2248 \backslash
2249 voffset
2250 \end_layout
2251
2252 \end_inset
2253
2254
2255 \family roman
2256 \series medium
2257 \shape up
2258 \size normal
2259 \emph off
2260 \bar no
2261 \noun off
2262 \color none
2263 というページ位置を制御する2つの変数があります.その機能は名前から明らかなとおりです.これらの変数は,ラベルを印刷するときなどに便利です.往々にして,印刷用紙の
2264 寸法とそのうち実際に印字可能な範囲は同じではありません.ここに
2265 \begin_inset Flex Code
2266 status collapsed
2267
2268 \begin_layout Plain Layout
2269
2270 \family typewriter
2271
2272 \backslash
2273 hoffset
2274 \end_layout
2275
2276 \end_inset
2277
2278
2279 \family typewriter
2280 \series default
2281 \shape default
2282 \size default
2283 \emph default
2284 \bar default
2285 \noun default
2286 \color inherit
2287
2288 \begin_inset Flex Code
2289 status collapsed
2290
2291 \begin_layout Plain Layout
2292
2293 \family typewriter
2294
2295 \backslash
2296 voffset
2297 \end_layout
2298
2299 \end_inset
2300
2301
2302 \family default
2303 が役立つわけです.
2304 \end_layout
2305
2306 \begin_layout Standard
2307
2308 \family roman
2309 \series medium
2310 \shape up
2311 \size normal
2312 \emph off
2313 \bar no
2314 \noun off
2315 \color none
2316 \begin_inset Flex Code
2317 status collapsed
2318
2319 \begin_layout Plain Layout
2320
2321 \family typewriter
2322
2323 \backslash
2324 hoffset
2325 \end_layout
2326
2327 \end_inset
2328
2329
2330 \family typewriter
2331 \series default
2332 \shape default
2333 \size default
2334 \emph default
2335 \bar default
2336 \noun default
2337 \color inherit
2338
2339 \begin_inset Flex Code
2340 status collapsed
2341
2342 \begin_layout Plain Layout
2343
2344 \family typewriter
2345
2346 \backslash
2347 voffset
2348 \end_layout
2349
2350 \end_inset
2351
2352
2353 \family roman
2354 \series medium
2355 \shape up
2356 \size normal
2357 \emph off
2358 \bar no
2359 \noun off
2360 \color none
2361 の既定値はともに0ポイント,つまりページをシフトしません.残念ながら,DVIドライバによってはつねにページをシフトすることがあるようです.我々には,どうしてその
2362 ようなことをするのか,そしてシスアドがどうしてそれを修正しないのか理解できませんが,もし個人的に管理できないシステムで\SpecialChar LyX
2363 を使用していて,シスアドがお馬鹿さんである
2364 場合には,
2365 \begin_inset Flex Code
2366 status collapsed
2367
2368 \begin_layout Plain Layout
2369
2370 \family typewriter
2371
2372 \backslash
2373 hoffset
2374 \end_layout
2375
2376 \end_inset
2377
2378
2379 \family typewriter
2380 \series default
2381 \shape default
2382 \size default
2383 \emph default
2384 \bar default
2385 \noun default
2386 \color inherit
2387
2388 \begin_inset Flex Code
2389 status collapsed
2390
2391 \begin_layout Plain Layout
2392
2393 \family typewriter
2394
2395 \backslash
2396 voffset
2397 \end_layout
2398
2399 \end_inset
2400
2401
2402 \family roman
2403 \series medium
2404 \shape up
2405 \size normal
2406 \emph off
2407 \bar no
2408 \noun off
2409 \color none
2410 が役に立ちます.かりに,上余白と左余白がつねに0.5インチずつ大きすぎるものとしましょう.その場合は,以下をプリアンブルに追加するとよいでしょう.
2411 \end_layout
2412
2413 \begin_layout LyX-Code
2414
2415 \backslash
2416 setlength{
2417 \backslash
2418 hoffset}{-0.5 in}
2419 \end_layout
2420
2421 \begin_layout LyX-Code
2422
2423 \backslash
2424 setlength{
2425 \backslash
2426 voffset}{-0.5 in}
2427 \end_layout
2428
2429 \begin_layout Standard
2430
2431 \family roman
2432 \series medium
2433 \shape up
2434 \size normal
2435 \emph off
2436 \bar no
2437 \noun off
2438 \color none
2439 これで余白が修正されます.
2440 \end_layout
2441
2442 \begin_layout Subsubsection
2443 例2:ラベル
2444 \end_layout
2445
2446 \begin_layout Standard
2447
2448 \family roman
2449 \series medium
2450 \shape up
2451 \size normal
2452 \emph off
2453 \bar no
2454 \noun off
2455 \color none
2456 いま,たくさんの宛名ラベルを印刷をしたいものとしましょう.ラベルシートを印刷するために便利な
2457 \begin_inset Flex Code
2458 status collapsed
2459
2460 \begin_layout Plain Layout
2461
2462 \family typewriter
2463 labels.sty
2464 \end_layout
2465
2466 \end_inset
2467
2468 という\SpecialChar LaTeX
2469 パッケージが,お近くのCTANアーカイブで入手可能です.お使いのシステムには,既定ではこのパッケージは導入されていないかもしれません.ご自身でお確かめくだ
2470 さい.また,このパッケージの取扱説明書を読まれたいかもしれませんが,それもご自身にお任せします.これは使用例ですので,このパッケージをどう使うかの例だけお見せす
2471 ることにします.
2472 \end_layout
2473
2474 \begin_layout Standard
2475
2476 \family roman
2477 \series medium
2478 \shape up
2479 \size normal
2480 \emph off
2481 \bar no
2482 \noun off
2483 \color none
2484 まず,
2485 \begin_inset Flex Code
2486 status collapsed
2487
2488 \begin_layout Plain Layout
2489
2490 \family sans
2491 article
2492 \end_layout
2493
2494 \end_inset
2495
2496 文書クラスを使用していることをご確認ください.次に,以下のような設定をプリアンブルに追加しなければなりません.
2497 \end_layout
2498
2499 \begin_layout LyX-Code
2500
2501 \backslash
2502 usepackage{labels}
2503 \end_layout
2504
2505 \begin_layout LyX-Code
2506
2507 \backslash
2508 LabelCols=3
2509 \end_layout
2510
2511 \begin_layout LyX-Code
2512
2513 \backslash
2514 LabelRows=7
2515 \end_layout
2516
2517 \begin_layout LyX-Code
2518
2519 \backslash
2520 LeftBorder=8mm
2521 \end_layout
2522
2523 \begin_layout LyX-Code
2524
2525 \backslash
2526 RightBorder=8mm
2527 \end_layout
2528
2529 \begin_layout LyX-Code
2530
2531 \backslash
2532 TopBorder=9mm
2533 \end_layout
2534
2535 \begin_layout LyX-Code
2536
2537 \backslash
2538 BottomBorder=2mm
2539 \end_layout
2540
2541 \begin_layout Standard
2542
2543 \family roman
2544 \series medium
2545 \shape up
2546 \size normal
2547 \emph off
2548 \bar no
2549 \noun off
2550 \color none
2551 これは
2552 \family default
2553 \series default
2554 \shape default
2555 \size default
2556 \emph default
2557 \bar default
2558 \noun default
2559 \color inherit
2560 Averyラベルシートのストック5360
2561 \family roman
2562 \series medium
2563 \shape up
2564 \size normal
2565 \emph off
2566 \bar no
2567 \noun off
2568 \color none
2569 番を使用する場合の設定です.これで,各宛名を
2570 \begin_inset Flex Code
2571 status collapsed
2572
2573 \begin_layout Plain Layout
2574
2575 \family typewriter
2576
2577 \backslash
2578 begin{labels}
2579 \end_layout
2580
2581 \end_inset
2582
2583
2584 \family typewriter
2585 \series default
2586 \shape default
2587 \size default
2588 \emph default
2589 \bar default
2590 \noun default
2591 \color inherit
2592
2593 \begin_inset Flex Code
2594 status collapsed
2595
2596 \begin_layout Plain Layout
2597
2598 \family typewriter
2599
2600 \backslash
2601 end{labels}
2602 \end_layout
2603
2604 \end_inset
2605
2606
2607 \family roman
2608 \series medium
2609 \shape up
2610 \size normal
2611 \emph off
2612 \bar no
2613 \noun off
2614 \color none
2615 で囲めば,宛名ラベルの印刷をすることができます.本機能およびその他の機能に関しては,
2616 \begin_inset Flex Code
2617 status collapsed
2618
2619 \begin_layout Plain Layout
2620
2621 \family typewriter
2622 labels.sty
2623 \end_layout
2624
2625 \end_inset
2626
2627 の取扱説明書に説明されています.
2628 \end_layout
2629
2630 \begin_layout Standard
2631
2632 \family roman
2633 \series medium
2634 \shape up
2635 \size normal
2636 \emph off
2637 \bar no
2638 \noun off
2639 \color none
2640 そのうち誰かが,このパッケージを直接サポートする\SpecialChar LyX
2641 レイアウトファイルを作ってくれるかもしれません.その誰かはあなたかもしれません.
2642 \end_layout
2643
2644 \begin_layout Subsubsection
2645 例3: 段落の字下げ
2646 \end_layout
2647
2648 \begin_layout Standard
2649
2650 \family roman
2651 \series medium
2652 \shape up
2653 \size normal
2654 \emph off
2655 \bar no
2656 \noun off
2657 \color none
2658 アメリカ人は
2659 \family default
2660 \series default
2661 \shape default
2662 \size default
2663 \emph default
2664 \bar default
2665 \noun default
2666 \color inherit
2667
2668 \emph on
2669 すべての
2670 \family roman
2671 \series medium
2672 \shape up
2673 \size normal
2674 \emph off
2675 \bar no
2676 \noun off
2677 \color none
2678 段落の最初の行を字下げするように教育されています.そのために彼らの他の変な習慣と同じく,いつものようにすべての段落の最初の行を下げるまで,アメリカ人はごちゃごち
2679 ゃと文句を言いつづけるのです
2680 \family default
2681 \series default
2682 \shape default
2683 \size default
2684 \emph default
2685 \bar default
2686 \noun default
2687 \color inherit
2688 .(これはユーモアです.(ほんと?)
2689 \emph on
2690 ユーモアですってば
2691 \emph default
2692 .)
2693 \end_layout
2694
2695 \begin_layout Standard
2696
2697 \family roman
2698 \series medium
2699 \shape up
2700 \size normal
2701 \emph off
2702 \bar no
2703 \noun off
2704 \color none
2705 もちろん,これは標準的な組版ルールではありません.書籍では,典型的には,他の段落のあとにくる段落
2706 \family default
2707 \series default
2708 \shape default
2709 \size default
2710 \emph on
2711 \bar default
2712 \noun default
2713 \color inherit
2714 のみ
2715 \family roman
2716 \series medium
2717 \shape up
2718 \size normal
2719 \emph off
2720 \bar no
2721 \noun off
2722 \color none
2723 字下げを行ないます.一行めを字下げをするそもそもの目的は,隣接する段落から区別するためです.したがって,図のあとや節の最初の段落など,先行する段落がない場合には
2724 ,字下げをする必要はないのです.
2725 \end_layout
2726
2727 \begin_layout Standard
2728
2729 \family roman
2730 \series medium
2731 \shape up
2732 \size normal
2733 \emph off
2734 \bar no
2735 \noun off
2736 \color none
2737 けれどもあなたが典型的なアメリカ人なら(ユーーモアですって!),そのような小難しいことはかまわずに,いつもどおりの字下げをせずにはいられないでしょう!プリアンブ
2738 ルに次の行を加えて下さい.
2739 \end_layout
2740
2741 \begin_layout LyX-Code
2742
2743 \backslash
2744 usepackage{indentfirst}
2745 \end_layout
2746
2747 \begin_layout Standard
2748
2749 \family roman
2750 \series medium
2751 \shape up
2752 \size normal
2753 \emph off
2754 \bar no
2755 \noun off
2756 \color none
2757 もしお使いの\SpecialChar TeX
2758 頒布版が脳死状態でなければ,このパッケージが入っているはずなので,建国の父たちが意図したように,すべての段落が字下げされます.
2759 \end_layout
2760
2761 \begin_layout Subsubsection
2762 例4:この文書
2763 \end_layout
2764
2765 \begin_layout Standard
2766
2767 \family roman
2768 \series medium
2769 \shape up
2770 \size normal
2771 \emph off
2772 \bar no
2773 \noun off
2774 \color none
2775 この文書のプリアンブルを見てみると,どのような高度な設定ができるか,おおまかな理解が得られるでしょう.また第
2776 \family default
2777 \series default
2778 \shape default
2779 \size default
2780 \emph default
2781 \bar default
2782 \noun default
2783 \color inherit
2784
2785 \begin_inset CommandInset ref
2786 LatexCommand ref
2787 reference "chap:Special-features"
2788
2789 \end_inset
2790
2791
2792 \family roman
2793 \series medium
2794 \shape up
2795 \size normal
2796 \emph off
2797 \bar no
2798 \noun off
2799 \color none
2800 章には,他の例や,\SpecialChar LaTeX
2801 の各種の「汚い技」があります.
2802 \end_layout
2803
2804 \begin_layout Section
2805 \SpecialChar LyX
2806 および\SpecialChar LaTeX
2807 のエラー
2808 \end_layout
2809
2810 \begin_layout Standard
2811
2812 \family roman
2813 \series medium
2814 \shape up
2815 \size normal
2816 \emph off
2817 \bar no
2818 \noun off
2819 \color none
2820 \SpecialChar LyX
2821 が\SpecialChar LaTeX
2822 を呼び出す際,\SpecialChar LyX
2823 は\SpecialChar LaTeX
2824 に,かりにエラーがあったとしても楽観的に無視して先に進むように指示します.その後\SpecialChar LyX
2825 は,\SpecialChar LaTeX
2826 の実行ログファイルを事後処理用に使います.ログファイルを分
2827 析したのち,\SpecialChar LyX
2828 はエラーを一覧表示するダイアログを表示します.エラーのうちどれかをクリックすると,\SpecialChar LyX
2829 ファイル中,そのエラーの発生した場所に表示を移動します
2830 \begin_inset Foot
2831 status collapsed
2832
2833 \begin_layout Plain Layout
2834
2835 \family roman
2836 \series medium
2837 \shape up
2838 \size normal
2839 \emph off
2840 \bar no
2841 \noun off
2842 \color none
2843 正確にいうと,通常は,です.ログファイルの分析は難しい仕事ですので,\SpecialChar LyX
2844 はつねに正しい行に連れて行ってくれるとは限りません.ときには,\SpecialChar LaTeX
2845 がある行にエラーがあると報告し
2846 たとしても,実際のエラーはそれよりも前であることもあります.これは,プログラムで閉じ括弧を忘れたときに似ていなくもありません.エラーは表示されますが,実際にエラ
2847 ーのある場所よりも後ろでエラーが報告されるのです.
2848 \end_layout
2849
2850 \end_inset
2851
2852
2853 \family default
2854 \series default
2855 \shape default
2856 \size default
2857 \emph default
2858 \bar default
2859 \noun default
2860 \color inherit
2861
2862 \end_layout
2863
2864 \begin_layout Standard
2865
2866 \family roman
2867 \series medium
2868 \shape up
2869 \size normal
2870 \emph off
2871 \bar no
2872 \noun off
2873 \color none
2874 人によっては,ログファイルを直接ご覧になりたいかもしれません.これは,
2875 \begin_inset Flex MenuItem
2876 status collapsed
2877
2878 \begin_layout Plain Layout
2879
2880 \family roman
2881 \series medium
2882 \shape up
2883 \size normal
2884 \emph off
2885 \bar no
2886 \noun off
2887 \color none
2888 文書\SpecialChar menuseparator
2889 LaTeXログ
2890 \end_layout
2891
2892 \end_inset
2893
2894 で見ることができます.エラーメッセージや警告には,よく見かけるものがいくつかありますので,それらをここに収録しておきます.ここにないエラーや警告に関しては,La\SpecialChar TeX
2895
2896 関連の良書を参照してください.
2897 \end_layout
2898
2899 \begin_layout Itemize
2900
2901 \family typewriter
2902 \begin_inset Flex Code
2903 status collapsed
2904
2905 \begin_layout Plain Layout
2906
2907 \family typewriter
2908 LaTeX Warning
2909 \end_layout
2910
2911 \end_inset
2912
2913
2914 \family roman
2915 \series medium
2916 \shape up
2917 \size normal
2918 \emph off
2919 \bar no
2920 \noun off
2921 \color none
2922
2923 \begin_inset Newline newline
2924 \end_inset
2925
2926 これで始まるメッセージは,\SpecialChar LaTeX
2927 コード自体を「デバッグ」するための警告メッセージです.相互参照や書誌情報を追加したり変更した場合に,もう一度\SpecialChar LaTeX
2928 を実行する必要があることを
2929 知らせるために,このようなメッセージが表示されます.このメッセージは,だいたいにおいて無視しても大丈夫です.
2930 \end_layout
2931
2932 \begin_layout Itemize
2933
2934 \family typewriter
2935 \begin_inset Flex Code
2936 status collapsed
2937
2938 \begin_layout Plain Layout
2939
2940 \family typewriter
2941 LaTeX Font Warning
2942 \end_layout
2943
2944 \end_inset
2945
2946
2947 \family roman
2948 \series medium
2949 \shape up
2950 \size normal
2951 \emph off
2952 \bar no
2953 \noun off
2954 \color none
2955
2956 \begin_inset Newline newline
2957 \end_inset
2958
2959 \SpecialChar LaTeX
2960 がフォントを見つけられなかったと言う警告メッセージです.多くの場合,このメッセージの後に,\SpecialChar LaTeX
2961 が使用した代替フォントに関する情報が続きます.これも無視して構いません
2962
2963 \end_layout
2964
2965 \begin_layout Itemize
2966
2967 \family roman
2968 \series medium
2969 \shape up
2970 \size normal
2971 \emph off
2972 \bar no
2973 \noun off
2974 \color none
2975 \begin_inset Flex Code
2976 status collapsed
2977
2978 \begin_layout Plain Layout
2979
2980 \family typewriter
2981 Overfull 
2982 \backslash
2983 hbox
2984 \end_layout
2985
2986 \end_inset
2987
2988
2989 \begin_inset Newline newline
2990 \end_inset
2991
2992 \SpecialChar LaTeX
2993 は,
2994 \family default
2995 \series default
2996 \shape default
2997 \size default
2998 \emph on
2999 \bar default
3000 \noun default
3001 \color inherit
3002 ほぼどんなときでも
3003 \family roman
3004 \series medium
3005 \shape up
3006 \size normal
3007 \emph off
3008 \bar no
3009 \noun off
3010 \color none
3011 この警告を吐き出します.どんな文書を書いたとしても,このメッセージは,少なくとも1つは出てくるようです.これは,一行が長すぎて右余白にはみ出してしまったという警
3012 告であり,
3013 \family default
3014 \series default
3015 \shape default
3016 \size default
3017 \emph default
3018 \bar default
3019 \noun default
3020 \color inherit
3021 \SpecialChar LaTeX
3022
3023 \family roman
3024 \series medium
3025 \shape up
3026 \size normal
3027 \emph off
3028 \bar no
3029 \noun off
3030 \color none
3031 が適切な改行方法を見つけられなかった時に生じます(タイプライタ体では自動改行を許されないため頻発することが知られています).ほとんどの場合,最終出力を見ても判別
3032 できないくらい(せいぜい1ポイントか2ポイント)です.しかしながら,時には目に見えて余白にはみ出してしまうこともあるので,その場合には,最終出力では修正したいと
3033 思うことでしょう.
3034 \begin_inset Newline newline
3035 \end_inset
3036
3037 全体的にoverfull行の数をできるだけ少なくする方法はいくつかあります.
3038 \family sans
3039 \series default
3040 \shape default
3041 \size default
3042 \emph default
3043 \bar default
3044 \noun default
3045 \color inherit
3046 文書\SpecialChar menuseparator
3047 設定\SpecialChar menuseparator
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 \family sans
3059 \series default
3060 \shape default
3061 \size default
3062 \emph default
3063 \bar default
3064 \noun default
3065 \color inherit
3066 マイクロタイポグラフィ拡張を有効にする
3067 \family roman
3068 \series medium
3069 \shape up
3070 \size normal
3071 \emph off
3072 \bar no
3073 \noun off
3074 \color none
3075 をクリックすると,大幅な改善が見込めます.さらに,
3076 \family sans
3077 \series default
3078 \shape default
3079 \size default
3080 \emph default
3081 \bar default
3082 \noun default
3083 \color inherit
3084 文書\SpecialChar menuseparator
3085 設定\SpecialChar menuseparator
3086 プリアンブル
3087 \family roman
3088 \series medium
3089 \shape up
3090 \size normal
3091 \emph off
3092 \bar no
3093 \noun off
3094 \color none
3095 に以下のような
3096 \family default
3097 \series default
3098 \shape default
3099 \size default
3100 \emph default
3101 \bar default
3102 \noun default
3103 \color inherit
3104 \SpecialChar LaTeX
3105
3106 \family roman
3107 \series medium
3108 \shape up
3109 \size normal
3110 \emph off
3111 \bar no
3112 \noun off
3113 \color none
3114 コードを書いても,overfull行の数は,通常,大幅に減少します(この文書のプリアンブルにも使用しています).
3115 \end_layout
3116
3117 \begin_deeper
3118 \begin_layout LyX-Code
3119
3120 \backslash
3121 tolerance 1414
3122 \begin_inset Newline newline
3123 \end_inset
3124
3125
3126 \backslash
3127 hbadness 1414
3128 \begin_inset Newline newline
3129 \end_inset
3130
3131
3132 \backslash
3133 emergencystretch 1.5em
3134 \begin_inset Newline newline
3135 \end_inset
3136
3137
3138 \backslash
3139 hfuzz 0.3pt
3140 \end_layout
3141
3142 \begin_layout Standard
3143 しかしながら,場合によっては,改行が正しく行われるように,文章そのものを書き換えなくてはならない場合もあります
3144 \begin_inset Foot
3145 status collapsed
3146
3147 \begin_layout Plain Layout
3148 詳細は,
3149 \begin_inset Flex URL
3150 status open
3151
3152 \begin_layout Plain Layout
3153
3154 http://www.tex.ac.uk/FAQ-overfull.html
3155 \end_layout
3156
3157 \end_inset
3158
3159 を参照してください.
3160 \end_layout
3161
3162 \end_inset
3163
3164
3165 \end_layout
3166
3167 \begin_layout Standard
3168 何れにしても,少なくとも文書の完成版では,各行の確認を行うべきです.はみ出過ぎているものがあれば,目で見ればわかるでしょう
3169 \begin_inset Foot
3170 status collapsed
3171
3172 \begin_layout Plain Layout
3173
3174 \family sans
3175 文書\SpecialChar menuseparator
3176 設定
3177 \family default
3178 で「draft」オプションを有効にすることもできます.すると,overfull行の余白には,\SpecialChar LaTeX
3179 が黒い四角を描画してくれます.
3180 \end_layout
3181
3182 \end_inset
3183
3184
3185 \end_layout
3186
3187 \end_deeper
3188 \begin_layout Itemize
3189
3190 \family typewriter
3191 \begin_inset Flex Code
3192 status collapsed
3193
3194 \begin_layout Plain Layout
3195
3196 \family typewriter
3197 Underfull 
3198 \backslash
3199 hbox
3200 \end_layout
3201
3202 \end_inset
3203
3204
3205 \begin_inset Newline newline
3206 \end_inset
3207
3208
3209 \family roman
3210 \series medium
3211 \shape up
3212 \size normal
3213 \emph off
3214 \bar no
3215 \noun off
3216 \color none
3217 これは上の警告と違ってあまり出てきません.これも,
3218 \family default
3219 \series default
3220 \shape default
3221 \size default
3222 \emph default
3223 \bar default
3224 \noun default
3225 \color inherit
3226 \SpecialChar LaTeX
3227
3228 \family roman
3229 \series medium
3230 \shape up
3231 \size normal
3232 \emph off
3233 \bar no
3234 \noun off
3235 \color none
3236 が適切な改行方法を見つけられずに,間延びした行を生成せざるを得なかった時に起こります.overfull行と同様,外見上の問題がないかどうか確認してください.
3237 \end_layout
3238
3239 \begin_layout Itemize
3240 \begin_inset Flex Code
3241 status collapsed
3242
3243 \begin_layout Plain Layout
3244
3245 \family typewriter
3246 Overfull 
3247 \backslash
3248 vbox
3249 \end_layout
3250
3251 \end_inset
3252
3253
3254 \family typewriter
3255
3256 \begin_inset Flex Code
3257 status collapsed
3258
3259 \begin_layout Plain Layout
3260
3261 \family typewriter
3262 Underfull 
3263 \backslash
3264 vbox
3265 \end_layout
3266
3267 \end_inset
3268
3269
3270 \family default
3271
3272 \begin_inset Newline newline
3273 \end_inset
3274
3275
3276 \family roman
3277 \series medium
3278 \shape up
3279 \size normal
3280 \emph off
3281 \bar no
3282 \noun off
3283 \color none
3284 ページ区切りに問題があったという警告です.この場合も,出力を目で確認してください.何か問題があれば,見てすぐわかります.
3285 \end_layout
3286
3287 \begin_layout Itemize
3288
3289 \family typewriter
3290 \begin_inset Flex Code
3291 status collapsed
3292
3293 \begin_layout Plain Layout
3294
3295 \family typewriter
3296 LaTeX Error: File 
3297 \begin_inset Quotes els
3298 \end_inset
3299
3300 Xxxx
3301 \begin_inset Quotes ers
3302 \end_inset
3303
3304  not found
3305 \end_layout
3306
3307 \end_inset
3308
3309
3310 \family roman
3311 \series medium
3312 \shape up
3313 \size normal
3314 \emph off
3315 \bar no
3316 \noun off
3317 \color none
3318
3319 \begin_inset Newline newline
3320 \end_inset
3321
3322 ファイル「Xxxx」が,システムに導入されていません.これは通常,文書が必要としている\SpecialChar LaTeX
3323 パッケージに,導入済でないものがある場合に現れます.プリアンブルに変更を加
3324 えておらず,
3325 \begin_inset Flex Code
3326 status collapsed
3327
3328 \begin_layout Plain Layout
3329
3330 \family typewriter
3331
3332 \backslash
3333 usepackage{}
3334 \end_layout
3335
3336 \end_inset
3337
3338 コマンドも使用していないとすれば,\SpecialChar LyX
3339 が読み込もうしているパッケージに存在しないものがあるということです.
3340 \family default
3341 \series default
3342 \shape default
3343 \size default
3344 \emph default
3345 \bar default
3346 \noun default
3347 \color inherit
3348
3349 \begin_inset Flex MenuItem
3350 status collapsed
3351
3352 \begin_layout Plain Layout
3353 ヘルプ\SpecialChar menuseparator
3354 \SpecialChar LaTeX
3355 の設定
3356 \end_layout
3357
3358 \end_inset
3359
3360
3361 \family roman
3362 \series medium
3363 \shape up
3364 \size normal
3365 \emph off
3366 \bar no
3367 \noun off
3368 \color none
3369 を使用して,\SpecialChar LyX
3370 が認識しているパッケージの一覧を得てください.このファイルは,(
3371 \begin_inset Flex MenuItem
3372 status collapsed
3373
3374 \begin_layout Plain Layout
3375
3376 \family roman
3377 \series medium
3378 \shape up
3379 \size normal
3380 \emph off
3381 \bar no
3382 \noun off
3383 \color none
3384 ツール\SpecialChar menuseparator
3385 再設定
3386 \end_layout
3387
3388 \end_inset
3389
3390 を使用して)\SpecialChar LyX
3391 の再設定を行うたびに更新され,どのパッケージが検出されたか,それらのパッケージが何をするものかを表示します.
3392 \begin_inset Newline newline
3393 \end_inset
3394
3395
3396 \family sans
3397 \series default
3398 \shape default
3399 \size default
3400 \emph default
3401 \bar default
3402 \noun default
3403 \color inherit
3404
3405 \begin_inset Flex Code
3406 status collapsed
3407
3408 \begin_layout Plain Layout
3409
3410 \family sans
3411
3412 \backslash
3413 usepackage{}
3414 \end_layout
3415
3416 \end_inset
3417
3418
3419 \family roman
3420 \series medium
3421 \shape up
3422 \size normal
3423 \emph off
3424 \bar no
3425 \noun off
3426 \color none
3427 コマンドを使っていて,肝心のパッケージが導入されていない場合には,ご自身で導入する必要があります.
3428 \end_layout
3429
3430 \begin_layout Itemize
3431
3432 \family typewriter
3433 \begin_inset Flex Code
3434 status collapsed
3435
3436 \begin_layout Plain Layout
3437
3438 \family typewriter
3439 LaTeX Error: Unknown option
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 \begin_inset Newline newline
3455 \end_inset
3456
3457 このように始まるエラーメッセージは,パッケージに誤ったあるいは未定義のオプションが指定されていることを伝えようとするものです.パッケージの取扱説明書をご確認くだ
3458 さい.
3459 \end_layout
3460
3461 \begin_layout Itemize
3462
3463 \family typewriter
3464 \begin_inset Flex Code
3465 status collapsed
3466
3467 \begin_layout Plain Layout
3468
3469 \family typewriter
3470 Undefined control sequence
3471 \end_layout
3472
3473 \end_inset
3474
3475
3476 \family roman
3477 \series medium
3478 \shape up
3479 \size normal
3480 \emph off
3481 \bar no
3482 \noun off
3483 \color none
3484
3485 \begin_inset Newline newline
3486 \end_inset
3487
3488 お使いの文書に\SpecialChar LaTeX
3489 コードを挿入した際,打ち間違いをしてしまうと,このようなメッセージが表示されます.あるいは,パッケージを読み込ませるのを忘れたのかもしれません.い
3490 ずれにしても,このメッセージは,あなたが未定義のコマンドを使用したことを示しています.
3491 \end_layout
3492
3493 \begin_layout Standard
3494
3495 \family roman
3496 \series medium
3497 \shape up
3498 \size normal
3499 \emph off
3500 \bar no
3501 \noun off
3502 \color none
3503 これ以外にも,エラーメッセージや警告メッセージがあります.一般に,読んで意味がすぐにわかるものは,\SpecialChar LaTeX
3504 のメッセージです.何を言っているのかさっぱりわからないものもあ
3505 りますが,通常これらは,\SpecialChar TeX
3506 のメッセージであり,それが何を意味しているのか,どのように解読すればいいのか,
3507 \family default
3508 \series default
3509 \shape default
3510 \size default
3511 \emph on
3512 \bar default
3513 \noun default
3514 \color inherit
3515 まったく
3516 \family roman
3517 \series medium
3518 \shape up
3519 \size normal
3520 \emph off
3521 \bar no
3522 \noun off
3523 \color none
3524 手がかりがありません.誰もわからないのです.
3525 \end_layout
3526
3527 \begin_layout Standard
3528
3529 \family roman
3530 \series medium
3531 \shape up
3532 \size normal
3533 \emph off
3534 \bar no
3535 \noun off
3536 \color none
3537 エラーメッセージが表示された場合は,つねに以下のチェックリストにしたがった方がよいでしょう.
3538 \end_layout
3539
3540 \begin_layout Enumerate
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 ご自分で挿入した\SpecialChar LaTeX
3551 コードに打ち間違いがないかどうか確かめる.
3552 \end_layout
3553
3554 \begin_layout Enumerate
3555
3556 \family roman
3557 \series medium
3558 \shape up
3559 \size normal
3560 \emph off
3561 \bar no
3562 \noun off
3563 \color none
3564 打ち間違いがなければ,コマンドを正しく使ったかどうか確かめる.
3565 \end_layout
3566
3567 \begin_layout Enumerate
3568
3569 \family roman
3570 \series medium
3571 \shape up
3572 \size normal
3573 \emph off
3574 \bar no
3575 \noun off
3576 \color none
3577 文書のもっともはじめの部分にエラーボックスが多数積み上がった場合には—特に
3578 \begin_inset Flex Code
3579 status collapsed
3580
3581 \begin_layout Plain Layout
3582
3583 \family roman
3584 \series medium
3585 \shape up
3586 \size normal
3587 \emph off
3588 \bar no
3589 \noun off
3590 \color none
3591 Missing 
3592 \backslash
3593 begin{document}
3594 \end_layout
3595
3596 \end_inset
3597
3598 が表示されているならば—,プリアンブルにエラーがあることを意味します.プリアンブルのデバックを行ってください.
3599 \end_layout
3600
3601 \begin_layout Enumerate
3602
3603 \family roman
3604 \series medium
3605 \shape up
3606 \size normal
3607 \emph off
3608 \bar no
3609 \noun off
3610 \color none
3611 プリアンブルに何も追加せず,文書に\SpecialChar LaTeX
3612 コードをまったく挿入しなかった場合には,\SpecialChar LaTeX
3613 頒布版自体をまず疑ってください.導入されていないパッケージを探しだして,導入してくださ
3614 い.
3615 \end_layout
3616
3617 \begin_layout Enumerate
3618
3619 \family roman
3620 \series medium
3621 \shape up
3622 \size normal
3623 \emph off
3624 \bar no
3625 \noun off
3626 \color none
3627 導入されていないパッケージはなかったものとしましょう.\SpecialChar LyX
3628 を微調整するオプションを使用していますか.特に,手動で
3629 \begin_inset Flex Code
3630 status collapsed
3631
3632 \begin_layout Plain Layout
3633
3634 \family sans
3635 Protected
3636 \begin_inset space ~
3637 \end_inset
3638
3639 Blank
3640 \end_layout
3641
3642 \end_inset
3643
3644
3645 \begin_inset Flex Code
3646 status collapsed
3647
3648 \begin_layout Plain Layout
3649
3650 \family sans
3651 Linebreak
3652 \end_layout
3653
3654 \end_inset
3655
3656
3657 \family sans
3658 \series default
3659 \shape default
3660 \size default
3661 \emph default
3662 \bar default
3663 \noun default
3664 \color inherit
3665
3666 \begin_inset Flex Code
3667 status collapsed
3668
3669 \begin_layout Plain Layout
3670
3671 \family sans
3672 Pagebreak
3673 \end_layout
3674
3675 \end_inset
3676
3677
3678 \family roman
3679 \series medium
3680 \shape up
3681 \size normal
3682 \emph off
3683 \bar no
3684 \noun off
3685 \color none
3686 などをたくさん挿入するなど,微調整オプションを
3687 \family default
3688 \series default
3689 \shape default
3690 \size default
3691 \emph on
3692 \bar default
3693 \noun default
3694 \color inherit
3695 悪用
3696 \family roman
3697 \series medium
3698 \shape up
3699 \size normal
3700 \emph off
3701 \bar no
3702 \noun off
3703 \color none
3704 していませんか.適切な段落環境を使用する代わりに,これらを使用してその場をしのごうとしていませんか.
3705 \end_layout
3706
3707 \begin_layout Enumerate
3708
3709 \family roman
3710 \series medium
3711 \shape up
3712 \size normal
3713 \emph off
3714 \bar no
3715 \noun off
3716 \color none
3717 微調整オプションはまったく使用しておらず,規則に乗っ取って作業していたものとしましょう.何か曲芸のようなことをしようとはしていませんか.数式や表中で,たとえば表
3718 のセルに図を入れるなど,おかしなことをしようとしていませんか.
3719 \end_layout
3720
3721 \begin_layout Enumerate
3722 \SpecialChar LaTeX
3723 が改行位置を見つけられないほど長い一節がありませんか.既定では,改行するために単語間に空白をたくさん追加することを,\SpecialChar LaTeX
3724 はかなり嫌います.可能であれば,問題が生じな
3725 いように段落を修正するのが望ましいでしょう.
3726 \end_layout
3727
3728 \begin_layout Enumerate
3729
3730 \family roman
3731 \series medium
3732 \shape up
3733 \size normal
3734 \emph off
3735 \bar no
3736 \noun off
3737 \color none
3738 入れ子の階層を深くしすぎていませんか.\SpecialChar LyX
3739 は,(今のところ)環境の入れ子の階層が制限内にあるかチェックしません.かりに,環境を17段の入れ子にしたりしていたら,それ
3740 が原因です(\SpecialChar LaTeX
3741 の上限は5段です).
3742 \end_layout
3743
3744 \begin_layout Enumerate
3745
3746 \family roman
3747 \series medium
3748 \shape up
3749 \size normal
3750 \emph off
3751 \bar no
3752 \noun off
3753 \color none
3754 エラーメッセージは発生しないけれども,出力がひどいものとしましょう.図表が幅が広すぎたり長すぎてページに収まらない場合には,
3755 \end_layout
3756
3757 \begin_deeper
3758 \begin_layout Enumerate
3759
3760 \family roman
3761 \series medium
3762 \shape up
3763 \size normal
3764 \emph off
3765 \bar no
3766 \noun off
3767 \color none
3768 図がページに合うように大きさを変える,
3769 \end_layout
3770
3771 \begin_layout Enumerate
3772
3773 \family roman
3774 \series medium
3775 \shape up
3776 \size normal
3777 \emph off
3778 \bar no
3779 \noun off
3780 \color none
3781 表がページに合うように削る,
3782 \end_layout
3783
3784 \begin_layout Standard
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 \end_deeper
3798 \begin_layout Enumerate
3799 他に出力におかしいところがあり,曲芸をやろうとしたり微調整オプションでしのごうとしたりはしていないとすれば,何がおかしいのか確定的なことは言えません.
3800 \end_layout
3801
3802 \begin_layout Standard
3803
3804 \family roman
3805 \series medium
3806 \shape up
3807 \size normal
3808 \emph off
3809 \bar no
3810 \noun off
3811 \color none
3812 これらすべてが役に立たないとすれば,
3813 \family default
3814 \series default
3815 \shape default
3816 \size default
3817 \emph on
3818 \bar default
3819 \noun default
3820 \color inherit
3821 ひょっとしたら
3822 \family roman
3823 \series medium
3824 \shape up
3825 \size normal
3826 \emph off
3827 \bar no
3828 \noun off
3829 \color none
3830 \SpecialChar LyX
3831 のバグを発見したのかもしれません‥‥.
3832 \end_layout
3833
3834 \begin_layout Chapter
3835 補完ツール
3836 \end_layout
3837
3838 \begin_layout Section
3839 Bib\SpecialChar TeX
3840 あるいはBiblatexによる書誌情報のカスタマイズ
3841 \end_layout
3842
3843 \begin_layout Standard
3844 Bib\SpecialChar TeX
3845 あるいは
3846 \family sans
3847 Biblatex
3848 \family default
3849 の基本的な使用法は,『
3850 \emph on
3851 ユーザーの手引き
3852 \emph default
3853 』の「
3854 \emph on
3855 文献データベース
3856 \emph default
3857 」の節に説明があります.以下の各小節では,\SpecialChar LyX
3858 でサポートされている書誌情報の特別な機能について説明することとします.
3859 \end_layout
3860
3861 \begin_layout Subsection
3862 他の引用様式
3863 \end_layout
3864
3865 \begin_layout Standard
3866 標準のBib\SpecialChar TeX
3867 は,引用された著作を参照するのに,([12]のように)数字を使用します.しかし,多くの科学分野で,これとは異なる引用様式が用いられています.もっとも
3868 よく見られるのは,著者-出版年様式(例:Knuth 1984a)です.\SpecialChar LyX
3869 は,この様式を提供する3つのパッケージ
3870 \begin_inset Flex Code
3871 status collapsed
3872
3873 \begin_layout Plain Layout
3874 biblatex
3875 \end_layout
3876
3877 \end_inset
3878
3879
3880 \begin_inset Flex Code
3881 status collapsed
3882
3883 \begin_layout Plain Layout
3884 natbib
3885 \end_layout
3886
3887 \end_inset
3888
3889
3890 \begin_inset Flex Code
3891 status collapsed
3892
3893 \begin_layout Plain Layout
3894 jurabib
3895 \end_layout
3896
3897 \end_inset
3898
3899 をサポートしています.これらのパッケージには,それぞれ長所短所がありますが,ここでは詳細に立ち入る紙幅がありません.単純な著者-出版年様式(あるいは著者-番号)
3900 様式が欲しい場合や,無数にある
3901 \begin_inset Flex Code
3902 status collapsed
3903
3904 \begin_layout Plain Layout
3905 natbib
3906 \end_layout
3907
3908 \end_inset
3909
3910 用スタイルファイルのうちどれかを使用したい場合には,定評のある
3911 \begin_inset Flex Code
3912 status collapsed
3913
3914 \begin_layout Plain Layout
3915 natbib
3916 \end_layout
3917
3918 \end_inset
3919
3920 パッケージがおそらくよい選択でしょう.法学でよく用いられる引用様式を探している場合には,
3921 \begin_inset Flex Code
3922 status collapsed
3923
3924 \begin_layout Plain Layout
3925 jurabib
3926 \end_layout
3927
3928 \end_inset
3929
3930 パッケージの利用を考えるとよいかもしれません.整形を完全に制御したい場合や,ibidem・脚註引用・タイトル全引用・400 BCなどの)複雑な日時形式・英語以外
3931 への完全な現地語化のような複雑な機能を使用したい場合には,機能面で他のパッケージを凌駕している
3932 \begin_inset Flex Code
3933 status collapsed
3934
3935 \begin_layout Plain Layout
3936 biblatex
3937 \end_layout
3938
3939 \end_inset
3940
3941 をぜひとも考えるべきでしょう.ただし,同時に
3942 \begin_inset Flex Code
3943 status collapsed
3944
3945 \begin_layout Plain Layout
3946 biblatex
3947 \end_layout
3948
3949 \end_inset
3950
3951 はたいへん重く,リソース消費量も多いことに注意してください.
3952 \end_layout
3953
3954 \begin_layout Standard
3955 \SpecialChar LyX
3956 での各パッケージの取扱い方は,ほぼ同じです.
3957 \begin_inset Flex MenuItem
3958 status collapsed
3959
3960 \begin_layout Plain Layout
3961 文書\SpecialChar menuseparator
3962 設定
3963 \end_layout
3964
3965 \end_inset
3966
3967 メニューを開き,
3968 \begin_inset Flex MenuItem
3969 status collapsed
3970
3971 \begin_layout Plain Layout
3972 書誌情報
3973 \end_layout
3974
3975 \end_inset
3976
3977 項目から
3978 \begin_inset Flex Noun
3979 status collapsed
3980
3981 \begin_layout Plain Layout
3982 Biblatex
3983 \end_layout
3984
3985 \end_inset
3986
3987
3988 \begin_inset Flex Noun
3989 status collapsed
3990
3991 \begin_layout Plain Layout
3992 Biblatex (Natbibモード)
3993 \end_layout
3994
3995 \end_inset
3996
3997
3998 \begin_inset Flex Noun
3999 status collapsed
4000
4001 \begin_layout Plain Layout
4002 Natbib (BibTeX)
4003 \end_layout
4004
4005 \end_inset
4006
4007
4008 \begin_inset Flex Noun
4009 status collapsed
4010
4011 \begin_layout Plain Layout
4012 Jurabib (BibTeX)
4013 \end_layout
4014
4015 \end_inset
4016
4017 のいずれかを選択してください(各選択肢についての詳細は,ユーザーの手引きの第6.5.3節を参照のこと).これらのパッケージによって,引用ダイアログに機能が追加され,
4018 参照の様式が選択できるようになります(「Knuth 1984」,「Knuth (1984)」,「Knuth, 1984」,「1984」など).各パッケージは,専
4019 用にデザインされたスタイルファイルを必要とすることに注意してください.これらは全てそれ自身のスタイルファイルを同梱していますが,他にもたくさんの追加されたスタイ
4020 ルファイルがありますし,
4021 \begin_inset Flex Code
4022 status collapsed
4023
4024 \begin_layout Plain Layout
4025 natbib
4026 \end_layout
4027
4028 \end_inset
4029
4030 に至っては,対話的なスタイルファイルビルダーさえ存在します
4031 \begin_inset Foot
4032 status collapsed
4033
4034 \begin_layout Plain Layout
4035 \begin_inset Flex URL
4036 status open
4037
4038 \begin_layout Plain Layout
4039
4040 ftp://ctan.tug.org/tex-archive/macros/latex/contrib/custom-bib/
4041 \end_layout
4042
4043 \end_inset
4044
4045 をご参照ください.
4046 \end_layout
4047
4048 \end_inset
4049
4050
4051 \end_layout
4052
4053 \begin_layout Subsection
4054 区分された書誌情報
4055 \end_layout
4056
4057 \begin_layout Standard
4058 場合によっては,書誌情報をいくつかの節に分ける必要があることがあります.たとえば,あなたが歴史家であるとすれば,出典と学術文献を分ける機能は,おそらく「必需品」
4059 でさえあります.残念ながら,Bib\SpecialChar TeX
4060 自身ではこのようなことができません.しかし,適切な\SpecialChar LaTeX
4061 パッケージの助けを借りると,Bib\SpecialChar TeX
4062 をこのような必要性を満たすように拡張するこ
4063 とができます.
4064 \end_layout
4065
4066 \begin_layout Standard
4067 \SpecialChar LyX
4068 は,このようなパッケージの一つである
4069 \begin_inset Flex Code
4070 status collapsed
4071
4072 \begin_layout Plain Layout
4073 bibtopic
4074 \end_layout
4075
4076 \end_inset
4077
4078
4079 \begin_inset Foot
4080 status collapsed
4081
4082 \begin_layout Plain Layout
4083 \begin_inset Flex URL
4084 status open
4085
4086 \begin_layout Plain Layout
4087
4088 ftp://ctan.tug.org/tex-archive/macros/latex/contrib/bibtopic/
4089 \end_layout
4090
4091 \end_inset
4092
4093 から入手可能です.
4094 \end_layout
4095
4096 \end_inset
4097
4098 をそのままでサポートします.このパッケージの長所は,(
4099 \begin_inset Flex Code
4100 status collapsed
4101
4102 \begin_layout Plain Layout
4103 multibib
4104 \end_layout
4105
4106 \end_inset
4107
4108 のような他のパッケージと比較すると)新規の引用コマンドを定義する必要がないことです.そのかわりに,書誌情報の違う節には,その節向けの項目を収録した別の文献データ
4109 ベースを用意する必要があります.たとえば,書誌情報を「出典」の節と「学術文献」の節に分けたい場合には,それぞれの文献データベース,たとえば
4110 \begin_inset Flex Code
4111 status collapsed
4112
4113 \begin_layout Plain Layout
4114 souces.bib
4115 \end_layout
4116
4117 \end_inset
4118
4119
4120 \begin_inset Flex Code
4121 status collapsed
4122
4123 \begin_layout Plain Layout
4124 scientific.bib
4125 \end_layout
4126
4127 \end_inset
4128
4129 とを作成する必要があります.
4130 \end_layout
4131
4132 \begin_layout Standard
4133 \begin_inset Flex MenuItem
4134 status collapsed
4135
4136 \begin_layout Plain Layout
4137 文書\SpecialChar menuseparator
4138 設定
4139 \end_layout
4140
4141 \end_inset
4142
4143 を開いて
4144 \begin_inset Flex MenuItem
4145 status collapsed
4146
4147 \begin_layout Plain Layout
4148 書誌情報
4149 \end_layout
4150
4151 \end_inset
4152
4153 の下の
4154 \begin_inset Flex MenuItem
4155 status collapsed
4156
4157 \begin_layout Plain Layout
4158 区分された書誌情報
4159 \end_layout
4160
4161 \end_inset
4162
4163 をチェックしてください.すると,書誌情報の各節に一つずつ,複数の書誌情報を挿入することができます.上記の例では,Bib\SpecialChar TeX
4164 書誌情報
4165 \begin_inset Flex Code
4166 status collapsed
4167
4168 \begin_layout Plain Layout
4169 sources.bib
4170 \end_layout
4171
4172 \end_inset
4173
4174 と二つめの文献データベース
4175 \begin_inset Flex Code
4176 status collapsed
4177
4178 \begin_layout Plain Layout
4179 scientific.bib
4180 \end_layout
4181
4182 \end_inset
4183
4184 を挿入します.各節に同じスタイルを用いるか異なるスタイルを用いるかは自由です.くわえて,書誌情報の節に,指定したデータベースの「引用されたすべての参照」を載せる
4185 (これが既定です)か,「引用されなかったすべての参照」を載せるか,あるいは「すべての参照」を載せるかを選択することができます.これは,もし書誌情報を「本文に引用
4186 された出典」・「本文に引用されていない出典」・「学術文献」の三つの節に分割したい場合に,便利でありましょう.各節の見出しは,通常の節や小節として入れることができ
4187 ます.
4188 \begin_inset Flex Code
4189 status collapsed
4190
4191 \begin_layout Plain Layout
4192 bibtopic
4193 \end_layout
4194
4195 \end_inset
4196
4197 は,書誌情報用の見出しを取り除いてしまいますので,手動でこれを追加しなくてはなりません(たとえば章*や節*などをお使いください).
4198 \end_layout
4199
4200 \begin_layout Standard
4201
4202 \family sans
4203 Biblatex
4204 \family default
4205 の場合には,手順が多少異なります.
4206 \family typewriter
4207 bibtopic
4208 \family default
4209
4210 \family sans
4211 Biblatex
4212 \family default
4213 では動作しませんので,
4214 \family sans
4215 Biblatex
4216 \family default
4217 使用中は前述の
4218 \begin_inset Flex Noun
4219 status collapsed
4220
4221 \begin_layout Plain Layout
4222 区分された書誌情報
4223 \end_layout
4224
4225 \end_inset
4226
4227 オプションは無効になります.しかしながら,
4228 \family sans
4229 Biblatex
4230 \family default
4231 は区分された書誌情報を生成する独自の方法を提供しています.書誌情報項目の
4232 \begin_inset Flex Code
4233 status collapsed
4234
4235 \begin_layout Plain Layout
4236 keywords
4237 \end_layout
4238
4239 \end_inset
4240
4241 項目オプションにキーワードを書き込み,書誌情報セクションをキーワードでフィルターに掛けることもできますし(
4242 \begin_inset Flex Noun
4243 status collapsed
4244
4245 \begin_layout Plain Layout
4246 Biblatexが生成した書誌情報
4247 \end_layout
4248
4249 \end_inset
4250
4251 ボタンを右クリックすると開くダイアログで,
4252 \begin_inset Flex Noun
4253 status collapsed
4254
4255 \begin_layout Plain Layout
4256 オプション
4257 \end_layout
4258
4259 \end_inset
4260
4261 フィールドに
4262 \begin_inset Flex Code
4263 status collapsed
4264
4265 \begin_layout Plain Layout
4266 keyword=指定キーワード
4267 \end_layout
4268
4269 \end_inset
4270
4271 と書き込みます),あるいは,上述の
4272 \begin_inset Flex Noun
4273 status collapsed
4274
4275 \begin_layout Plain Layout
4276 オプション
4277 \end_layout
4278
4279 \end_inset
4280
4281 フィールドに,例えば
4282 \begin_inset Flex Code
4283 status collapsed
4284
4285 \begin_layout Plain Layout
4286 type=book
4287 \end_layout
4288
4289 \end_inset
4290
4291
4292 \begin_inset Flex Code
4293 status collapsed
4294
4295 \begin_layout Plain Layout
4296 nottype=collection
4297 \end_layout
4298
4299 \end_inset
4300
4301 と入力することで,(
4302 \emph on
4303 book
4304 \emph default
4305
4306 \emph on
4307 article
4308 \emph default
4309 などの)項目型によりフィルターを掛けることもできます.あるいは,各項目を割り当てるための,いわゆる「書誌情報カテゴリ」を作ることもできます.詳細については,Bi
4310 blatex取扱説明書の
4311 \emph on
4312 区分された書誌情報
4313 \emph default
4314 の節をご参照ください.
4315 \end_layout
4316
4317 \begin_layout Subsection
4318 複数の書誌情報
4319 \begin_inset CommandInset label
4320 LatexCommand label
4321 name "subsec:複数の書誌情報"
4322
4323 \end_inset
4324
4325
4326 \end_layout
4327
4328 \begin_layout Standard
4329 各部・章・節・小節・子文書ごとの書誌情報など,複数の書誌情報も\SpecialChar LyX
4330 ではサポートされています.これを有効にするためには,
4331 \begin_inset Flex Noun
4332 status collapsed
4333
4334 \begin_layout Plain Layout
4335 文書\SpecialChar menuseparator
4336 設定\SpecialChar menuseparator
4337 書誌情報
4338 \end_layout
4339
4340 \end_inset
4341
4342 を開き,
4343 \begin_inset Flex Noun
4344 status collapsed
4345
4346 \begin_layout Plain Layout
4347 複数の書誌情報
4348 \end_layout
4349
4350 \end_inset
4351
4352 コンボボックスで必要な単位(「節毎」など)を選択してください.それから,執筆中文書の(節などの)各単位に,Bib(la)\SpecialChar TeX
4353 書誌情報を加えてください.出力時に,現在
4354 の単位に含まれる文献参照のみが含まれた,分割された書誌情報が生成されます.
4355 \end_layout
4356
4357 \begin_layout Standard
4358 Bib\SpecialChar TeX
4359 を使用する場合には,複数の書誌情報を生成するのに,
4360 \begin_inset Flex Code
4361 status collapsed
4362
4363 \begin_layout Plain Layout
4364 chapterbib
4365 \end_layout
4366
4367 \end_inset
4368
4369 パッケージか
4370 \begin_inset Flex Code
4371 status collapsed
4372
4373 \begin_layout Plain Layout
4374 bibtopic
4375 \end_layout
4376
4377 \end_inset
4378
4379 パッケージが使用されます.「子文書毎」を選択し,
4380 \begin_inset Flex Noun
4381 status collapsed
4382
4383 \begin_layout Plain Layout
4384 区分された書誌情報
4385 \end_layout
4386
4387 \end_inset
4388
4389 にチェックを入れ
4390 \emph on
4391 ない
4392 \emph default
4393 場合には,前者のパッケージが使用されますが,その他の場合には,すべて
4394 \begin_inset Flex Code
4395 status collapsed
4396
4397 \begin_layout Plain Layout
4398 bibtopic
4399 \end_layout
4400
4401 \end_inset
4402
4403 パッケージが使用されます
4404 \begin_inset Foot
4405 status collapsed
4406
4407 \begin_layout Plain Layout
4408 別のアプローチとして,もし
4409 \begin_inset Flex Noun
4410 status collapsed
4411
4412 \begin_layout Plain Layout
4413 \SpecialChar TeX
4414 コード
4415 \end_layout
4416
4417 \end_inset
4418
4419 を使っても良いという気があるならば(第
4420 \begin_inset CommandInset ref
4421 LatexCommand ref
4422 reference "sec:TeXコードを挿入する"
4423 plural "false"
4424 caps "false"
4425 noprefix "false"
4426
4427 \end_inset
4428
4429 節参照),
4430 \begin_inset Flex Code
4431 status collapsed
4432
4433 \begin_layout Plain Layout
4434 bibunits
4435 \end_layout
4436
4437 \end_inset
4438
4439 パッケージを使用する方法があります.
4440 \end_layout
4441
4442 \end_inset
4443
4444
4445 \begin_inset Flex Code
4446 status collapsed
4447
4448 \begin_layout Plain Layout
4449 bibtopic
4450 \end_layout
4451
4452 \end_inset
4453
4454 パッケージが使用される場合,\SpecialChar LyX
4455 は特定の単位を生成するために,その単位を
4456 \begin_inset Flex Code
4457 status collapsed
4458
4459 \begin_layout Plain Layout
4460 bibtopic
4461 \end_layout
4462
4463 \end_inset
4464
4465
4466 \begin_inset Flex Code
4467 status collapsed
4468
4469 \begin_layout Plain Layout
4470
4471 \backslash
4472 begin{btUnit}
4473 \end_layout
4474
4475 \end_inset
4476
4477
4478 \begin_inset Flex Code
4479 status collapsed
4480
4481 \begin_layout Plain Layout
4482
4483 \backslash
4484 end{btUnit}
4485 \end_layout
4486
4487 \end_inset
4488
4489 で囲みます.このアプローチには,いくつかの制限があることに注意してください.まず,全ての文献参照はいずれかの
4490 \begin_inset Flex Code
4491 status collapsed
4492
4493 \begin_layout Plain Layout
4494 btUnit
4495 \end_layout
4496
4497 \end_inset
4498
4499 の中になくてはなりません.そのため,定義された単位の外にある引用(たとえば「節毎」を使用した場合の,第1節の前)は,「???」と表示されてしまいます.(このよう
4500 な制限を回避するなどのため)
4501 \begin_inset Flex Code
4502 status collapsed
4503
4504 \begin_layout Plain Layout
4505
4506 \backslash
4507 begin{btUnit}
4508 \end_layout
4509
4510 \end_inset
4511
4512
4513 \begin_inset Flex Code
4514 status collapsed
4515
4516 \begin_layout Plain Layout
4517
4518 \backslash
4519 end{btUnit}
4520 \end_layout
4521
4522 \end_inset
4523
4524 を\SpecialChar TeX
4525 コードで入力して,自前の単位を生成することもできます.ただし,
4526 \begin_inset Flex Code
4527 status collapsed
4528
4529 \begin_layout Plain Layout
4530 btUnit
4531 \end_layout
4532
4533 \end_inset
4534
4535 は入れ子にすることができないことに注意してください.第二の制限は,
4536 \begin_inset Flex Code
4537 status collapsed
4538
4539 \begin_layout Plain Layout
4540 bibtopic
4541 \end_layout
4542
4543 \end_inset
4544
4545 は,引用のないものも含めて,つねに書誌情報データベースの参照すべてを保持してしまうということです.これにより奇妙なラベルが付されることがあります(例えば,データ
4546 ベース中にMillerという著者の2014年の著作が2つあり,その1つだけが引用されている場合,ラベルは「Miller 2014b」などとなってしまいます).
4547 \end_layout
4548
4549 \begin_layout Standard
4550
4551 \family sans
4552 Biblatex
4553 \family default
4554 を使用する場合には,
4555 \begin_inset Flex Code
4556 status collapsed
4557
4558 \begin_layout Plain Layout
4559 refsection
4560 \end_layout
4561
4562 \end_inset
4563
4564 オプションが代わりに使用されます.特定の単位が必要な時には,それらの開始時に\SpecialChar TeX
4565 コードで
4566 \begin_inset Flex Code
4567 status collapsed
4568
4569 \begin_layout Plain Layout
4570
4571 \backslash
4572 newrefsection
4573 \end_layout
4574
4575 \end_inset
4576
4577 または
4578 \begin_inset Flex Code
4579 status collapsed
4580
4581 \begin_layout Plain Layout
4582
4583 \backslash
4584 newrefsegment
4585 \end_layout
4586
4587 \end_inset
4588
4589 と書きます.単位の終了箇所も制御したい場合には,代わりに
4590 \begin_inset Flex Code
4591 status collapsed
4592
4593 \begin_layout Plain Layout
4594
4595 \backslash
4596 begin{refsection}
4597 \end_layout
4598
4599 \end_inset
4600
4601  \SpecialChar ldots
4602  
4603 \begin_inset Flex Code
4604 status collapsed
4605
4606 \begin_layout Plain Layout
4607
4608 \backslash
4609 end{refsection}
4610 \end_layout
4611
4612 \end_inset
4613
4614 環境を使ってください.ただし,
4615 \begin_inset Flex Code
4616 status collapsed
4617
4618 \begin_layout Plain Layout
4619 refsection
4620 \end_layout
4621
4622 \end_inset
4623
4624 関連は入れ子にできないことに注意してください.現行単位毎の書誌情報に加えて,
4625 \family sans
4626 Biblatex
4627 \family default
4628 はすべての書誌情報を,後で一箇所(例えば文末)に出力する簡単な方法も提供しています.そのためには,Bib(la)TeX差込枠ダイアログの内容コンボボックスで「文
4629 献参照単位全て」を選択してください.この話題についての詳細は,
4630 \family sans
4631 Biblatex
4632 \family default
4633 の取扱説明書を参照してください.
4634 \end_layout
4635
4636 \begin_layout Section
4637 複合文書
4638 \end_layout
4639
4640 \begin_layout Subsection
4641 一般的な操作
4642 \end_layout
4643
4644 \begin_layout Standard
4645 たくさんの節を含んだ大きなファイルで作業をする場合,文書をいくつかのファイルに分割した方が往々にして便利ですし,場合によっては,表部分にはしょっちゅう変更が加え
4646 られるけれども,その前の文章はつねに同じであるようなケースもあるでしょう.このような場合には,複合文書を利用することを,まずご検討ください.たとえば,科学論文は
4647 通常,導入部・所見・結果・議論・結論の五つの節から成ります.これら各節を別々の\SpecialChar LyX
4648 ファイルにして,タイトル・著者・概要・書誌情報等と,これら五つのインクルード
4649 \begin_inset Foot
4650 status collapsed
4651
4652 \begin_layout Plain Layout
4653
4654 \series bold
4655 (訳註)
4656 \series default
4657 「取り込む」の意です.原語「include」に対する訳語として,プログラミング用語の「インクルードする」以外に適語がないので,ここではプログラミング用語をそのま
4658 ま使用します.
4659 \end_layout
4660
4661 \end_inset
4662
4663 ファイルを持つ,もう一つ別の「マスター」ファイルを作成するようにすることができます.これらの各ファイルは,単にマスターファイルにインクルードされるだけでなく,単
4664 独でも出力したり印刷したりすることのできる完全な\SpecialChar LyX
4665 ファイルであるように注意することが重要です.しかも,これらの各ファイルは,同じ文書クラスでなくてはなりません.a
4666 rticleクラスとbookクラスを混在させるようなことはなさらないでください.\SpecialChar LaTeX
4667 ファイルをインクルードすることもできますが,このファイルにはプリアンブルがあって
4668 はなりません(
4669 \begin_inset Flex Code
4670 status collapsed
4671
4672 \begin_layout Plain Layout
4673
4674 \backslash
4675 begin{document}
4676 \end_layout
4677
4678 \end_inset
4679
4680 行とその前のすべて,および
4681 \begin_inset Flex Code
4682 status collapsed
4683
4684 \begin_layout Plain Layout
4685
4686 \backslash
4687 end{document}行
4688 \end_layout
4689
4690 \end_inset
4691
4692 は削除しておかなければなりません).さもないと,DVIファイルを作成する際にエラーが発生するでしょう.
4693 \end_layout
4694
4695 \begin_layout Standard
4696 \SpecialChar LyX
4697 では,
4698 \family sans
4699 挿入\SpecialChar menuseparator
4700 ファイル\SpecialChar menuseparator
4701 子文書
4702 \family default
4703 で簡単にファイルをインクルードすることができます.このメニューを選んでクリックすると,カーソルの現在位置に小さな枠が挿入されます.この枠をクリックすると,ダイア
4704 ログが現れるので,そこでインクルードするファイルとインクルード方法を選択することができます.
4705 \end_layout
4706
4707 \begin_layout Standard
4708 ファイル選択ボックスは,いまや自明でしょう.インクルード方法には,「include」・「input」・「verbatim」の三つがあります.「include」と
4709 「input」は多くの点で類似していますが,いくつかの大きな違いがあります.
4710 \end_layout
4711
4712 \begin_layout Enumerate
4713 「include」されたファイルは新規頁から組版されるのに対し,「input」されたファイルは現在のページから組版されます.
4714 \end_layout
4715
4716 \begin_layout Enumerate
4717 「include」されたファイルは,それら自身がさらに他のファイル(「孫ファイル」)を「include」することはできません.一方で,「input」は無限に下層
4718 inputを持つことができます.
4719 \end_layout
4720
4721 \begin_layout Enumerate
4722 「include」は選ばれた「include」ファイルの出力しか許しませんが,実際の(ページ割りなどの)カウンタや参照は保持されます(詳細については埋込オブジェ
4723 クト説明書の子文書の節を参照のこと).したがって,子文書にアウトソースされた章については「include」が好まれる方式ですが,任意のファイル継承がある場合には
4724 「input」の方が良いでしょう.
4725 \end_layout
4726
4727 \begin_layout Standard
4728 「verbatim」インクルードファイルでは,ファイルの内容がそのまま(つまり「
4729 \begin_inset Flex Code
4730 status collapsed
4731
4732 \begin_layout Plain Layout
4733 verbatim
4734 \end_layout
4735
4736 \end_inset
4737
4738 」モードで)固定幅タイプライタフォントで組版されます.通常,このファイルの空白は,通常の\SpecialChar LyX
4739 での空白の取扱いとは違って,連続した複数の空白がそのまま出力されるものの
4740 ,単なる見えない空白です.ただし,
4741 \family sans
4742
4743 \begin_inset Flex MenuItem
4744 status collapsed
4745
4746 \begin_layout Plain Layout
4747
4748 \family sans
4749 出力の空白に印付けをする
4750 \end_layout
4751
4752 \end_inset
4753
4754
4755 \family default
4756 チェックボックスを有効にすると,空白が存在することを明確にするために空白の印が出力されます.
4757 \end_layout
4758
4759 \begin_layout Standard
4760 一般的に,親ファイルは,組版前に完全な\SpecialChar LaTeX
4761 ファイルに変換されますが,インクルードされるファイルはプリアンブル情報を全く持たない\SpecialChar LaTeX
4762 ファイルに変換されます.
4763 \end_layout
4764
4765 \begin_layout Subsection
4766 ファイル間の相互参照
4767 \end_layout
4768
4769 \begin_layout Standard
4770 \begin_inset Box Shadowbox
4771 position "t"
4772 hor_pos "c"
4773 has_inner_box 1
4774 inner_pos "t"
4775 use_parbox 0
4776 use_makebox 0
4777 width "100col%"
4778 special "none"
4779 height "1in"
4780 height_special "totalheight"
4781 thickness "0.4pt"
4782 separation "3pt"
4783 shadowsize "4pt"
4784 framecolor "black"
4785 backgroundcolor "none"
4786 status open
4787
4788 \begin_layout Plain Layout
4789 この節の内容は,すでに古くなっています.既定のマスター文書についてと,マスターが開いているときに子文書をどう開くかについて記述する必要があります.[[要修正]]
4790 \end_layout
4791
4792 \end_inset
4793
4794
4795 \end_layout
4796
4797 \begin_layout Standard
4798 異なるファイル間に相互参照を設定することも可能です.まず,すべての関係するファイルを開いてください.例として,2つのファイルを扱う場合を考え,各ファイルをA・B
4799 と呼びます.BがAにインクルードされるファイルだとします.Aにラベルを入れて,Bで参照したいとしましょう.文書Bで相互参照ダイアログを開いて,使用する「バッファ
4800 」を選んでください.
4801 \end_layout
4802
4803 \begin_layout Subsection
4804 すべての子文書での書誌情報
4805 \end_layout
4806
4807 \begin_layout Standard
4808 子文書を使って作業する場合,全体の書誌情報を文末に一つだけ置きたいのだけれども,子文書単独で出力する時に限り,子文書分を抽出した書誌情報が付けられるようにしたい
4809 ことがあります.以下にその方法を説明します.
4810 \end_layout
4811
4812 \begin_layout Standard
4813 親文書には,全体の書誌情報が出力されるべき場所(親ファイルでも子ファイルでも)に,書誌情報差込枠を挿入するだけです.書誌情報差込枠を親ファイルに置いた場合,文献
4814 参照はすべての子文書に継承されるので,各子文書の引用ダイアログで使用できるようになります.
4815 \end_layout
4816
4817 \begin_layout Standard
4818 子文書限定の書誌情報については,子文書内の,子文書が独立にコンパイルされた時に書誌情報が出力されるべき場所に,書誌情報差込枠を挿入します.その際,この差込枠を,
4819 たとえば「子文書のみ」などと名付けた派生枝の中に置く(
4820 \family sans
4821 挿入\SpecialChar menuseparator
4822 派生枝\SpecialChar menuseparator
4823 新規派生枝を挿入...
4824 \family default
4825 )のが肝要です.そして,子文書の中でこの派生枝を有効にし(
4826 \family sans
4827 文書\SpecialChar menuseparator
4828 設定...\SpecialChar menuseparator
4829 派生枝
4830 \family default
4831 ),親文書で無効にします(
4832 \family sans
4833 文書\SpecialChar menuseparator
4834 設定...\SpecialChar menuseparator
4835 派生枝
4836 \family default
4837 ).こうすることで,子文書中の書誌情報は,親文書中では無視され,子文書中では有効になります.
4838 \end_layout
4839
4840 \begin_layout Standard
4841 複数の書誌情報が必要な場合(親文書中でも子文書ごとに書誌情報を出力するなど)は,第
4842 \begin_inset CommandInset ref
4843 LatexCommand ref
4844 reference "subsec:複数の書誌情報"
4845 plural "false"
4846 caps "false"
4847 noprefix "false"
4848
4849 \end_inset
4850
4851 節を参照してください.
4852 \end_layout
4853
4854 \begin_layout Section
4855 \SpecialChar LyX
4856 書庫
4857 \end_layout
4858
4859 \begin_layout Standard
4860 しばしばユーザーは,出版社に送ったり,共著者とやりとりするために,\SpecialChar LyX
4861 ファイルを,その依存する全画像(及び他のファイル)と「同梱」する必要に迫られることがあります.\SpecialChar LyX
4862
4863 には,この過程を自動化するPythonスクリプト(
4864 \begin_inset Flex Code
4865 status collapsed
4866
4867 \begin_layout Plain Layout
4868 lyxpak.py
4869 \end_layout
4870
4871 \end_inset
4872
4873 )が含まれています.これを使うには,
4874 \begin_inset Flex Code
4875 status collapsed
4876
4877 \begin_layout Plain Layout
4878 zipfile
4879 \end_layout
4880
4881 \end_inset
4882
4883  pythonモジュールまたは
4884 \begin_inset Flex Code
4885 status collapsed
4886
4887 \begin_layout Plain Layout
4888 tarfile
4889 \end_layout
4890
4891 \end_inset
4892
4893  pythonモジュールが,システムに導入済みであることが必要です.既定設定では,Unix系システムでは,
4894 \begin_inset Flex Code
4895 status collapsed
4896
4897 \begin_layout Plain Layout
4898 gzip
4899 \end_layout
4900
4901 \end_inset
4902
4903 圧縮
4904 \begin_inset Flex Code
4905 status collapsed
4906
4907 \begin_layout Plain Layout
4908 tar
4909 \end_layout
4910
4911 \end_inset
4912
4913 ファイル形式が優先され,Windowsでは
4914 \begin_inset Flex Code
4915 status collapsed
4916
4917 \begin_layout Plain Layout
4918 zip
4919 \end_layout
4920
4921 \end_inset
4922
4923 形式が優先されます.
4924 \end_layout
4925
4926 \begin_layout Standard
4927 \SpecialChar LyX
4928 の環境構成時には,「\SpecialChar LyX
4929 書庫」を書き出すことができるようにスクリプトが準備され,
4930 \begin_inset Flex MenuItem
4931 status collapsed
4932
4933 \begin_layout Plain Layout
4934 ファイル\SpecialChar menuseparator
4935 書き出し
4936 \end_layout
4937
4938 \end_inset
4939
4940 の下で利用可能となります.
4941 \end_layout
4942
4943 \begin_layout Standard
4944 \begin_inset Flex MenuItem
4945 status collapsed
4946
4947 \begin_layout Plain Layout
4948 ツール\SpecialChar menuseparator
4949 設定\SpecialChar menuseparator
4950 ファイル処理\SpecialChar menuseparator
4951 変換子
4952 \end_layout
4953
4954 \end_inset
4955
4956
4957 \begin_inset Flex MenuItem
4958 status collapsed
4959
4960 \begin_layout Plain Layout
4961 \SpecialChar LyX
4962 \SpecialChar menuseparator
4963 \SpecialChar LyX
4964 書庫
4965 \end_layout
4966
4967 \end_inset
4968
4969 変換子に,
4970 \begin_inset Flex Code
4971 status collapsed
4972
4973 \begin_layout Plain Layout
4974 -t
4975 \end_layout
4976
4977 \end_inset
4978
4979 スイッチや
4980 \begin_inset Flex Code
4981 status collapsed
4982
4983 \begin_layout Plain Layout
4984 -z
4985 \end_layout
4986
4987 \end_inset
4988
4989 スイッチを加えることで,プラットホームとは独立に,
4990 \begin_inset Flex Code
4991 status collapsed
4992
4993 \begin_layout Plain Layout
4994 tar
4995 \end_layout
4996
4997 \end_inset
4998
4999 形式や
5000 \begin_inset Flex Code
5001 status collapsed
5002
5003 \begin_layout Plain Layout
5004 zip
5005 \end_layout
5006
5007 \end_inset
5008
5009 形式を強制することができます(スイッチは,スクリプト名の前ではなく,後ろに加えてください).
5010 \end_layout
5011
5012 \begin_layout Section
5013 装飾的なヘッダ・フッタ
5014 \end_layout
5015
5016 \begin_layout Standard
5017 既定のページレイアウトは,どちらかといえば素っ気ないものです.
5018 \begin_inset Flex Code
5019 status collapsed
5020
5021 \begin_layout Plain Layout
5022 article
5023 \end_layout
5024
5025 \end_inset
5026
5027 文書クラスの場合には,ページの下の真ん中にページ番号がつくだけです.この取扱説明書はKOMA-scriptのbookクラスなので,すこしは凝ってますが,ほんとう
5028 に着飾るには,『
5029 \emph on
5030 ユーザーの手引き
5031 \emph default
5032 』に述べられているように,文書ページスタイルを「装飾的(fancy)」に設定する必要があります.この節では,望んだとおりの効果を得るために,\SpecialChar LaTeX
5033 プリアンブルに挿入す
5034 る必要のある\SpecialChar LaTeX
5035 コードについて解説します.
5036 \end_layout
5037
5038 \begin_layout Standard
5039 ページへッダは,「left(左)」・「center(中央)」・「right(右)」と命名された3つのフィールドに分けられています.フッタも同様に3つのフィールド
5040 に分類されています.これらのフィールドをもっとも簡単に設定する\SpecialChar LaTeX
5041 コマンドには,
5042 \family typewriter
5043
5044 \begin_inset Flex Code
5045 status collapsed
5046
5047 \begin_layout Plain Layout
5048
5049 \family typewriter
5050
5051 \backslash
5052 lhead
5053 \end_layout
5054
5055 \end_inset
5056
5057
5058 \family default
5059
5060 \family typewriter
5061
5062 \begin_inset Flex Code
5063 status collapsed
5064
5065 \begin_layout Plain Layout
5066
5067 \family typewriter
5068
5069 \backslash
5070 chead
5071 \end_layout
5072
5073 \end_inset
5074
5075
5076 \family default
5077
5078 \family typewriter
5079
5080 \begin_inset Flex Code
5081 status collapsed
5082
5083 \begin_layout Plain Layout
5084
5085 \family typewriter
5086
5087 \backslash
5088 rhead
5089 \end_layout
5090
5091 \end_inset
5092
5093
5094 \family default
5095
5096 \begin_inset Flex Code
5097 status collapsed
5098
5099 \begin_layout Plain Layout
5100
5101 \backslash
5102 lfoot
5103 \end_layout
5104
5105 \end_inset
5106
5107 などがあります.かりに,各ページの左上端に自分の名前を入れたいものとしましょう.次のようなコマンドをプリアンブルに入れるだけです.
5108 \end_layout
5109
5110 \begin_layout Standard
5111
5112 \family typewriter
5113
5114 \backslash
5115 lhead{物書 はじめ}
5116 \end_layout
5117
5118 \begin_layout Standard
5119 これで自分の名前が左上に現れます.フィールドに取り除きたい既定の内容がある場合(往々にして中央のフッタにはページ番号が入ります)には,空の引数を持つコマンドを入
5120 れるだけです.すなわち,
5121 \end_layout
5122
5123 \begin_layout Standard
5124
5125 \family typewriter
5126
5127 \backslash
5128 cfoot{}
5129 \begin_inset Newline newline
5130 \end_inset
5131
5132
5133 \family default
5134 とします.
5135 \end_layout
5136
5137 \begin_layout Standard
5138 もっと美しくしてみましょう.節番号を「第‥節」という言葉といっしょに(第3節のように)左上に入れ,ページ番号を(4ページのように)右上に,自分の名前を左下に,日
5139 付を右下に入れます.以下のコマンドをプリアンブルに入れます.
5140 \end_layout
5141
5142 \begin_layout Standard
5143
5144 \family typewriter
5145
5146 \backslash
5147 lhead{第
5148 \backslash
5149 thesection 節}
5150 \end_layout
5151
5152 \begin_layout Standard
5153
5154 \family typewriter
5155
5156 \backslash
5157 chead{}
5158 \end_layout
5159
5160 \begin_layout Standard
5161
5162 \family typewriter
5163
5164 \backslash
5165 rhead{
5166 \backslash
5167 thepage ページ}
5168 \end_layout
5169
5170 \begin_layout Standard
5171
5172 \family typewriter
5173
5174 \backslash
5175 lfoot{物書 はじめ}
5176 \end_layout
5177
5178 \begin_layout Standard
5179
5180 \family typewriter
5181
5182 \backslash
5183 cfoot{}
5184 \end_layout
5185
5186 \begin_layout Standard
5187
5188 \family typewriter
5189
5190 \backslash
5191 rfoot{
5192 \backslash
5193 today}
5194 \end_layout
5195
5196 \begin_layout Standard
5197 コマンド
5198 \family typewriter
5199
5200 \begin_inset Flex Code
5201 status collapsed
5202
5203 \begin_layout Plain Layout
5204
5205 \family typewriter
5206
5207 \backslash
5208 thesecti
5209 \family default
5210 o
5211 \family typewriter
5212 n
5213 \end_layout
5214
5215 \end_inset
5216
5217
5218 \family default
5219
5220 \begin_inset Flex Code
5221 status collapsed
5222
5223 \begin_layout Plain Layout
5224
5225 \family typewriter
5226
5227 \backslash
5228 thepa
5229 \family default
5230 ge
5231 \end_layout
5232
5233 \end_inset
5234
5235 は,それぞれ\SpecialChar LaTeX
5236 の節カウンタおよびページカウンタを取得するもので,これによって現在の節番号とページ番号を印字します.
5237 \begin_inset Flex Code
5238 status collapsed
5239
5240 \begin_layout Plain Layout
5241
5242 \family typewriter
5243
5244 \backslash
5245 tod
5246 \family default
5247 ay
5248 \end_layout
5249
5250 \end_inset
5251
5252 は,今日の日付を印字するものです.
5253 \end_layout
5254
5255 \begin_layout Standard
5256 へッダ下またはフッタ上に描かれる罫線の太さも変更することができます.もし罫線が必要なければ,太さを0にしてください.ヘッダ罫線は,既定では0.4ptの太さであり,
5257 フッタ罫線は0ptです.太さを変更するには,
5258 \family typewriter
5259
5260 \begin_inset Flex Code
5261 status collapsed
5262
5263 \begin_layout Plain Layout
5264
5265 \family typewriter
5266
5267 \backslash
5268 renewcommand{
5269 \backslash
5270 headrulewidth}{0.4pt}
5271 \end_layout
5272
5273 \end_inset
5274
5275
5276 \family default
5277
5278 \family typewriter
5279
5280 \begin_inset Flex Code
5281 status collapsed
5282
5283 \begin_layout Plain Layout
5284
5285 \family typewriter
5286
5287 \backslash
5288 renewcommand{
5289 \backslash
5290 footrulewidth}{0.4pt}
5291 \end_layout
5292
5293 \end_inset
5294
5295
5296 \family default
5297 のようなコマンドを使用してください.
5298 \end_layout
5299
5300 \begin_layout Standard
5301 \begin_inset Flex Code
5302 status collapsed
5303
5304 \begin_layout Plain Layout
5305
5306 \family typewriter
5307
5308 \backslash
5309 thispagestyle{empty}
5310 \end_layout
5311
5312 \end_inset
5313
5314
5315 \begin_inset Flex Code
5316 status collapsed
5317
5318 \begin_layout Plain Layout
5319
5320 \family typewriter
5321
5322 \backslash
5323 thispagestyle{plain}
5324 \end_layout
5325
5326 \end_inset
5327
5328
5329 \begin_inset Flex Code
5330 status collapsed
5331
5332 \begin_layout Plain Layout
5333
5334 \family typewriter
5335
5336 \backslash
5337 thispagestyle{fancy}
5338 \end_layout
5339
5340 \end_inset
5341
5342 のようなコマンドを使えば,各ページごとにへッダ・フッタ設定を有効にしたり無効にしたりすることができます.設定を変更したいページに,これらのコマンドを\SpecialChar TeX
5343 コードとして
5344 挿入してください.実は,タイトルページは,その後のページは大域的に装飾的(fancy)に設定されていれば装飾的(fancy)になるにもかかわらず,既定でプレーン
5345 (plain)になるように設定されているのです.
5346 \end_layout
5347
5348 \begin_layout Standard
5349 奇数ページの左上だけに何かを挿入するなど,もっと複雑なコマンドもあるのですが,詳しい解説は
5350 \begin_inset Flex Code
5351 status collapsed
5352
5353 \begin_layout Plain Layout
5354
5355 \family typewriter
5356 fancyhdr
5357 \end_layout
5358
5359 \end_inset
5360
5361 パッケージの取扱説明書をご参照ください(
5362 \begin_inset Flex Code
5363 status collapsed
5364
5365 \begin_layout Plain Layout
5366 fancyhdr.dvi
5367 \end_layout
5368
5369 \end_inset
5370
5371 を探してください).
5372 \end_layout
5373
5374 \begin_layout Standard
5375 最後の例として,へッダやフッタに画像を挿入できることを取り上げましょう.会社のロゴをページ左上に入れたいものとします.たとえば,
5376 \end_layout
5377
5378 \begin_layout Standard
5379
5380 \family typewriter
5381
5382 \backslash
5383 lhead{
5384 \backslash
5385 resizebox{1in}{!}{
5386 \backslash
5387 includegraphics{logo.eps}}}
5388 \end_layout
5389
5390 \begin_layout Standard
5391 \noindent
5392 とすれば,これを実現できます(文書中に他に画像を挿入していない場合には,
5393 \begin_inset Newline newline
5394 \end_inset
5395
5396
5397 \begin_inset Flex Code
5398 status collapsed
5399
5400 \begin_layout Plain Layout
5401
5402 \family typewriter
5403
5404 \backslash
5405 usepackage{graphics}
5406 \end_layout
5407
5408 \end_inset
5409
5410 をプリアンブルに宣言する必要があります).
5411 \end_layout
5412
5413 \begin_layout Section
5414 箇条書き(記号)ブリットの指定
5415 \begin_inset CommandInset label
5416 LatexCommand label
5417 name "sec:ブリット"
5418
5419 \end_inset
5420
5421
5422 \end_layout
5423
5424 \begin_layout Standard
5425
5426 \noun on
5427 Allan Rae文
5428 \end_layout
5429
5430 \begin_layout Subsection
5431 はじめに
5432 \end_layout
5433
5434 \begin_layout Standard
5435 \SpecialChar LyX
5436 には,ブリットの形が216個準備されていて,簡単なダイアログから呼び出すことができます.このダイアログを使えば,箇条書き(記号)の各階層で使うブリットの形を変更
5437 することができます.この設定は文書全体に共通なので,段落ごとに別のブリットを指定することはできません
5438 \begin_inset Foot
5439 status collapsed
5440
5441 \begin_layout Plain Layout
5442 正確には可能ですが,手動で行う必要があります.
5443 \end_layout
5444
5445 \end_inset
5446
5447
5448 \end_layout
5449
5450 \begin_layout Subsection
5451 外見
5452 \end_layout
5453
5454 \begin_layout Standard
5455 メニュー項目の
5456 \begin_inset Flex MenuItem
5457 status collapsed
5458
5459 \begin_layout Plain Layout
5460 文書\SpecialChar menuseparator
5461 設定
5462 \end_layout
5463
5464 \end_inset
5465
5466 を選択してダイアログを開き,
5467 \begin_inset Flex MenuItem
5468 status collapsed
5469
5470 \begin_layout Plain Layout
5471 ブリット
5472 \end_layout
5473
5474 \end_inset
5475
5476 タブを選択してください.
5477 \end_layout
5478
5479 \begin_layout Standard
5480 このダイアログは,ブリット形の一覧表を提示します.
5481 \begin_inset Flex MenuItem
5482 status collapsed
5483
5484 \begin_layout Plain Layout
5485 フォント
5486 \end_layout
5487
5488 \end_inset
5489
5490 と書いてあるドロップダウンメニューで,6つの各ブリット形パネルを切り替えることができます.また,一覧表左の
5491 \begin_inset Flex MenuItem
5492 status collapsed
5493
5494 \begin_layout Plain Layout
5495 階層
5496 \end_layout
5497
5498 \end_inset
5499
5500 パネルは,変更したい階層を選択するものです.
5501 \begin_inset Flex MenuItem
5502 status collapsed
5503
5504 \begin_layout Plain Layout
5505 任意のブリット
5506 \end_layout
5507
5508 \end_inset
5509
5510 では,指定したい\SpecialChar LaTeX
5511 表現を入力することができます.任意のブリットを指定した場合には,そのコマンドが必要とするパッケージを\SpecialChar LaTeX
5512 プリアンブルで指定する必要があります.
5513 \end_layout
5514
5515 \begin_layout Standard
5516 6つのパネルは,それぞれが必要とするパッケージによって分類されています.下記は,フォント名と\SpecialChar LaTeX
5517 パッケージの対応表です.
5518 \end_layout
5519
5520 \begin_layout Standard
5521 \align center
5522 \begin_inset Tabular
5523 <lyxtabular version="3" rows="7" columns="2">
5524 <features tabularvalignment="middle">
5525 <column alignment="center" valignment="top" width="0pt">
5526 <column alignment="center" valignment="top" width="0pt">
5527 <row>
5528 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5529 \begin_inset Text
5530
5531 \begin_layout Plain Layout
5532 フォント
5533 \end_layout
5534
5535 \end_inset
5536 </cell>
5537 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
5538 \begin_inset Text
5539
5540 \begin_layout Plain Layout
5541
5542 \family roman
5543 \series medium
5544 \shape up
5545 \size normal
5546 \emph off
5547 \bar no
5548 \noun off
5549 \color none
5550 必要とするパッケージ
5551 \end_layout
5552
5553 \end_inset
5554 </cell>
5555 </row>
5556 <row>
5557 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5558 \begin_inset Text
5559
5560 \begin_layout Plain Layout
5561
5562 \family sans
5563 標準
5564 \end_layout
5565
5566 \end_inset
5567 </cell>
5568 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5569 \begin_inset Text
5570
5571 \begin_layout Plain Layout
5572
5573 \series medium
5574 \shape up
5575 \size normal
5576 \emph off
5577 \bar no
5578 \noun off
5579 \color none
5580 \SpecialChar LaTeX
5581
5582 \family roman
5583 本体
5584 \end_layout
5585
5586 \end_inset
5587 </cell>
5588 </row>
5589 <row>
5590 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5591 \begin_inset Text
5592
5593 \begin_layout Plain Layout
5594
5595 \family sans
5596 \series medium
5597 \shape up
5598 \size normal
5599 \emph off
5600 \bar no
5601 \noun off
5602 \color none
5603 数式
5604 \end_layout
5605
5606 \end_inset
5607 </cell>
5608 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5609 \begin_inset Text
5610
5611 \begin_layout Plain Layout
5612
5613 \family typewriter
5614 \series medium
5615 \shape up
5616 \size normal
5617 \emph off
5618 \bar no
5619 \noun off
5620 \color none
5621 amssymb.sty
5622 \end_layout
5623
5624 \end_inset
5625 </cell>
5626 </row>
5627 <row>
5628 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5629 \begin_inset Text
5630
5631 \begin_layout Plain Layout
5632
5633 \family sans
5634 \series medium
5635 \shape up
5636 \size normal
5637 \emph off
5638 \bar no
5639 \noun off
5640 \color none
5641 絵文字1
5642 \end_layout
5643
5644 \end_inset
5645 </cell>
5646 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5647 \begin_inset Text
5648
5649 \begin_layout Plain Layout
5650
5651 \family typewriter
5652 \series medium
5653 \shape up
5654 \size normal
5655 \emph off
5656 \bar no
5657 \noun off
5658 \color none
5659 pifont.sty
5660 \end_layout
5661
5662 \end_inset
5663 </cell>
5664 </row>
5665 <row>
5666 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5667 \begin_inset Text
5668
5669 \begin_layout Plain Layout
5670
5671 \family sans
5672 \series medium
5673 \shape up
5674 \size normal
5675 \emph off
5676 \bar no
5677 \noun off
5678 \color none
5679 絵文字2
5680 \end_layout
5681
5682 \end_inset
5683 </cell>
5684 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5685 \begin_inset Text
5686
5687 \begin_layout Plain Layout
5688
5689 \family typewriter
5690 \series medium
5691 \shape up
5692 \size normal
5693 \emph off
5694 \bar no
5695 \noun off
5696 \color none
5697 pifont.sty
5698 \end_layout
5699
5700 \end_inset
5701 </cell>
5702 </row>
5703 <row>
5704 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5705 \begin_inset Text
5706
5707 \begin_layout Plain Layout
5708
5709 \family sans
5710 \series medium
5711 \shape up
5712 \size normal
5713 \emph off
5714 \bar no
5715 \noun off
5716 \color none
5717 絵文字3
5718 \end_layout
5719
5720 \end_inset
5721 </cell>
5722 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5723 \begin_inset Text
5724
5725 \begin_layout Plain Layout
5726
5727 \family typewriter
5728 \series medium
5729 \shape up
5730 \size normal
5731 \emph off
5732 \bar no
5733 \noun off
5734 \color none
5735 pifont.sty
5736 \end_layout
5737
5738 \end_inset
5739 </cell>
5740 </row>
5741 <row>
5742 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5743 \begin_inset Text
5744
5745 \begin_layout Plain Layout
5746
5747 \family sans
5748 \series medium
5749 \shape up
5750 \size normal
5751 \emph off
5752 \bar no
5753 \noun off
5754 \color none
5755 絵文字4
5756 \end_layout
5757
5758 \end_inset
5759 </cell>
5760 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
5761 \begin_inset Text
5762
5763 \begin_layout Plain Layout
5764
5765 \family typewriter
5766 \series medium
5767 \shape up
5768 \size normal
5769 \emph off
5770 \bar no
5771 \noun off
5772 \color none
5773 pifont.sty
5774 \end_layout
5775
5776 \end_inset
5777 </cell>
5778 </row>
5779 </lyxtabular>
5780
5781 \end_inset
5782
5783
5784 \end_layout
5785
5786 \begin_layout Standard
5787 \SpecialChar LyX
5788 は,ユーザーが導入されていないパッケージのブリットを使用したとしても,警告を発しません.ファイルを閲覧したり印刷したりしようとしたときに\SpecialChar LaTeX
5789 エラーが出るようならば,
5790 パッケージが導入されていない可能性が大です
5791 \begin_inset Foot
5792 status collapsed
5793
5794 \begin_layout Plain Layout
5795 \SpecialChar LyX
5796 が,パッケージがなくてもブリットを使用することを許すのは,編集をここで行ったとしても,別のところへエクスポートする可能性があるからです.
5797 \end_layout
5798
5799 \end_inset
5800
5801
5802 \end_layout
5803
5804 \begin_layout Subsection
5805 使用法
5806 \end_layout
5807
5808 \begin_layout Standard
5809 変更したいブリット階層を選んで,ブリット形と寸法を選択してください.何らかの変更を加えたとしても,\SpecialChar LyX
5810 上には反映されませんが,文書の表示を行えば確認されます.
5811 \end_layout
5812
5813 \begin_layout Standard
5814 ブリット形は,適切な階層のブリットボタンをマウスで右クリックすれば,簡単に既定値に初期化することができます
5815 \begin_inset Foot
5816 status open
5817
5818 \begin_layout Plain Layout
5819 もし
5820 \emph on
5821 本当に
5822 \emph default
5823 段落ごとに異なるブリットの形を使いたいならば,\SpecialChar TeX
5824 コードを使って少し手を汚す必要があります.この場合も,ブリット選択ダイアログを使えば,さまざまな形のLaTeXコー
5825 ドを確認することができるので手助けとなるでしょう.任意に設定した段落をつくるには,以下のような選択肢があります.
5826 \end_layout
5827
5828 \begin_layout Plain Layout
5829 \begin_inset ERT
5830 status open
5831
5832 \begin_layout Plain Layout
5833
5834
5835 \backslash
5836 let
5837 \backslash
5838 savelabelitemi=
5839 \backslash
5840 labelitemi
5841 \end_layout
5842
5843 \end_inset
5844
5845
5846 \end_layout
5847
5848 \begin_layout Plain Layout
5849 \begin_inset ERT
5850 status open
5851
5852 \begin_layout Plain Layout
5853
5854
5855 \backslash
5856 renewcommand
5857 \backslash
5858 labelitemi[0]{
5859 \backslash
5860 small
5861 \backslash
5862 (
5863 \backslash
5864 sharp
5865 \backslash
5866 )}
5867 \end_layout
5868
5869 \end_inset
5870
5871
5872 \end_layout
5873
5874 \begin_layout Itemize
5875 特定の階層の新しいブリット形を指定するには,\SpecialChar LaTeX
5876 コマンド
5877 \begin_inset Flex Code
5878 status collapsed
5879
5880 \begin_layout Plain Layout
5881
5882 \family typewriter
5883
5884 \backslash
5885 renewcommand{}{}
5886 \end_layout
5887
5888 \end_inset
5889
5890 を使用します.あとで現在のブリット形に戻すことができるように,現在のブリット形を保存しておく必要もあります.ここで使っている箇条書きでは,第1階層のブリットを変
5891 更するために,以下の\SpecialChar LaTeX
5892 コードが使用されています.
5893 \end_layout
5894
5895 \begin_deeper
5896 \begin_layout LyX-Code
5897
5898 \family typewriter
5899
5900 \backslash
5901 let
5902 \backslash
5903 savelabelitemi=
5904 \backslash
5905 labelitemi
5906 \end_layout
5907
5908 \begin_layout LyX-Code
5909
5910 \family typewriter
5911
5912 \backslash
5913 renewcommand
5914 \backslash
5915 labelitemi[0]{
5916 \backslash
5917 small
5918 \backslash
5919 (
5920 \backslash
5921 sharp
5922 \backslash
5923 )}
5924 \end_layout
5925
5926 \end_deeper
5927 \begin_layout Itemize
5928 箇条書き(記号)の階層は,
5929 \begin_inset Flex Code
5930 status collapsed
5931
5932 \begin_layout Plain Layout
5933
5934 \backslash
5935 labelitem
5936 \end_layout
5937
5938 \end_inset
5939
5940 コマンドの一部にローマ数字で指定されていることに注意してください.
5941 \end_layout
5942
5943 \begin_layout Itemize
5944 \begin_inset Argument item:1
5945 status open
5946
5947 \begin_layout Plain Layout
5948 \begin_inset ERT
5949 status open
5950
5951 \begin_layout Plain Layout
5952
5953
5954 \backslash
5955 (
5956 \backslash
5957 star
5958 \backslash
5959 )
5960 \end_layout
5961
5962 \end_inset
5963
5964
5965 \end_layout
5966
5967 \end_inset
5968
5969 各項目のブリットを指定するには,
5970 \begin_inset Flex Code
5971 status collapsed
5972
5973 \begin_layout Plain Layout
5974 \SpecialChar TeX
5975 コード
5976 \end_layout
5977
5978 \end_inset
5979
5980 として入力したブリット形を,行頭に「ユーザ設定」項目差込枠(挿入\SpecialChar menuseparator
5981 ユーザ設定項目)に入れて挿入してください.たとえば,この項目の行頭には
5982 \family typewriter
5983
5984 \begin_inset Flex Code
5985 status collapsed
5986
5987 \begin_layout Plain Layout
5988
5989 \family typewriter
5990
5991 \backslash
5992 (
5993 \backslash
5994 star
5995 \backslash
5996 )
5997 \end_layout
5998
5999 \end_inset
6000
6001
6002 \family default
6003 が指定されています.
6004 \end_layout
6005
6006 \begin_layout Plain Layout
6007 \begin_inset ERT
6008 status open
6009
6010 \begin_layout Plain Layout
6011
6012
6013 \backslash
6014 renewcommand
6015 \backslash
6016 labelitemi[0]{
6017 \backslash
6018 savelabelitemi}
6019 \end_layout
6020
6021 \end_inset
6022
6023
6024 \end_layout
6025
6026 \begin_layout Plain Layout
6027 文書全体で使用するブリット形が有効であるようにするために,labelitemを元の設定に戻す必要があります.そのためには,以下のようにします.
6028 \end_layout
6029
6030 \begin_layout LyX-Code
6031
6032 \family typewriter
6033
6034 \backslash
6035 renewcommand
6036 \backslash
6037 labelitemi[0]{
6038 \backslash
6039 savelabelitemi}
6040 \end_layout
6041
6042 \end_inset
6043
6044
6045 \end_layout
6046
6047 \begin_layout Chapter
6048 \SpecialChar LyX
6049 とインターネット網
6050 \end_layout
6051
6052 \begin_layout Standard
6053 \SpecialChar LyX
6054 は,これまでも長い間,HTMLを始めとするウェブフレンドリーな文書諸形式への書き出しをサポートしてきました.しかしながら,第2.0版以前では,HTMLへの書き出し
6055 は,常に外部変換子を用いることで実現されていました
6056 \begin_inset Foot
6057 status collapsed
6058
6059 \begin_layout Plain Layout
6060 \SpecialChar LyX
6061 で外部変換子を使うことについての詳細は,取扱説明書『
6062 \emph on
6063 カスタマイズ篇
6064 \emph default
6065 』の「
6066 \emph on
6067 変換子
6068 \emph default
6069 」の節をご覧ください.
6070 \end_layout
6071
6072 \end_inset
6073
6074 .これらは2つのグループに大別できます.1つは,
6075 \begin_inset Flex Code
6076 status collapsed
6077
6078 \begin_layout Plain Layout
6079 htlatex
6080 \end_layout
6081
6082 \end_inset
6083
6084
6085 \begin_inset Flex Code
6086 status collapsed
6087
6088 \begin_layout Plain Layout
6089 html2latex
6090 \end_layout
6091
6092 \end_inset
6093
6094
6095 \begin_inset Flex Code
6096 status collapsed
6097
6098 \begin_layout Plain Layout
6099 plastex
6100 \end_layout
6101
6102 \end_inset
6103
6104 のように,\SpecialChar LaTeX
6105 を中間形式として用い,その\SpecialChar LaTeX
6106 を生成するのに\SpecialChar LyX
6107 を用いるもの.2つめは,
6108 \begin_inset Flex Code
6109 status collapsed
6110
6111 \begin_layout Plain Layout
6112 e\SpecialChar LyX
6113 er
6114 \end_layout
6115
6116 \end_inset
6117
6118 のように,直接\SpecialChar LyX
6119 ファイルに働きかける変換子です.これらは,それぞれに長所・短所を有しています.
6120 \end_layout
6121
6122 \begin_layout Standard
6123 \SpecialChar LaTeX
6124 ベースの変換子は,原則として,\SpecialChar LaTeX
6125 が書きだす文書についてのすべてを知っているという長所があります.この種の変換子は,例えば,特定のコードのくだりが,\SpecialChar LyX
6126 によって生成され
6127 たのか,\SpecialChar TeX
6128 コードで書かれたのかについては気にしません.これらの変換子は,
6129 \begin_inset Flex Code
6130 status collapsed
6131
6132 \begin_layout Plain Layout
6133 aux
6134 \end_layout
6135
6136 \end_inset
6137
6138 ファイルやカウンタや参照を取り扱うことができ,Bib\SpecialChar TeX
6139 が生成する
6140 \begin_inset Flex Code
6141 status collapsed
6142
6143 \begin_layout Plain Layout
6144 bbl
6145 \end_layout
6146
6147 \end_inset
6148
6149 ファイルも利用することがよくあります.一方で,\SpecialChar LaTeX
6150 は解析の非常に難しい言語であり—\SpecialChar TeX
6151 自身だけが\SpecialChar TeX
6152 を理解することができると言われたりすることがあります—,\SpecialChar LaTeX
6153 ベースの変換子は
6154 ,非常に簡単な文法に見えるものでさえ飲み込めず,複雑なものになると全く歯が立たないこともあります.例えば,この現行を書いている時点では,取扱説明書『
6155 \emph on
6156 埋込オブジェクト篇
6157 \emph default
6158 』は,他の変換子では書き出しができるのに,
6159 \begin_inset Flex Code
6160 status collapsed
6161
6162 \begin_layout Plain Layout
6163 htlatex
6164 \end_layout
6165
6166 \end_inset
6167
6168 では行うことができません.他には,数式をどう取り扱うかという問題があります.これらの変換子の典型的なものは,数式を小さな画像に変換して,HTML文書からこれらの
6169 画像へのリンクを張ります.これらの画像は,実は\SpecialChar LaTeX
6170 によって生成されているので,正確です.しかしながら,これらはうまく伸縮できないので,実際の文書の中で表現されるよう
6171 に—フォント寸が凡そ正しくなるように—見せようとすると,大変な苦労を伴います.
6172 \end_layout
6173
6174 \begin_layout Standard
6175 Alex Fernandezの
6176 \begin_inset Flex Code
6177 status collapsed
6178
6179 \begin_layout Plain Layout
6180 e\SpecialChar LyX
6181 er
6182 \end_layout
6183
6184 \end_inset
6185
6186
6187 \begin_inset CommandInset href
6188 LatexCommand href
6189 name "http://pinchito.es/elyxer/"
6190 target "http://pinchito.es/elyxer/"
6191 literal "false"
6192
6193 \end_inset
6194
6195 )は,これらの問題の一部を解決します.特に,これは数式を画像に変換するのではなく,HTMLとCSSを組み合わせて数式を生成するので,生成される数式は完璧な大きさ
6196 に伸縮されて表示されます.しかしながら,ちょっとだけ複雑な数式でさえ,
6197 \begin_inset Flex Code
6198 status collapsed
6199
6200 \begin_layout Plain Layout
6201 htlatex
6202 \end_layout
6203
6204 \end_inset
6205
6206 よりも質が落ちます.これはHTMLの限界を示しています
6207 \begin_inset Foot
6208 status collapsed
6209
6210 \begin_layout Plain Layout
6211 とはいえ,
6212 \begin_inset Flex Code
6213 status collapsed
6214
6215 \begin_layout Plain Layout
6216 e\SpecialChar LyX
6217 er
6218 \end_layout
6219
6220 \end_inset
6221
6222 では,数式用にjsMathとMathJaxを使用することもできます.ただし,この設定はグローバルにしか設定することができず,バックエンドで実行させるサーバへのア
6223 クセスが利用できる必要があります.
6224 \end_layout
6225
6226 \end_inset
6227
6228 .さらに重要なことは(少なくとも第1.1.1版においては),
6229 \begin_inset Flex Code
6230 status collapsed
6231
6232 \begin_layout Plain Layout
6233 e\SpecialChar LyX
6234 er
6235 \end_layout
6236
6237 \end_inset
6238
6239 は数式マクロを一部しかサポートしておらず,ユーザ定義の段落様式や文字様式をサポートしていません.これらの制約によって,\SpecialChar LyX
6240 ユーザが生成する文書の多くにとっては,
6241 \begin_inset Flex Code
6242 status collapsed
6243
6244 \begin_layout Plain Layout
6245 e\SpecialChar LyX
6246 er
6247 \end_layout
6248
6249 \end_inset
6250
6251 は不向きなものになっています.もちろん,原理的に,これらの問題を解決することもできたのですが,\SpecialChar LyX
6252 開発陣は別の方法を採ることとし,\SpecialChar LyX
6253 が\SpecialChar LaTeX
6254 やDocBook,平文を書き出す
6255 ことができるのと同様に,\SpecialChar LyX
6256 自身にXHTMLを書きだす能力を身につけさせることとしたのです.
6257 \end_layout
6258
6259 \begin_layout Standard
6260 この原稿執筆時点では,XHTML出力は開発途上であり,おそらく「実験的」機能として解されるべきでしょう
6261 \begin_inset Foot
6262 status open
6263
6264 \begin_layout Plain Layout
6265 \SpecialChar LyX
6266 ソースツリーもしくは
6267 \begin_inset CommandInset href
6268 LatexCommand href
6269 name "オンラインでのアクセス"
6270 target "https://www.lyx.org/trac/browser/lyx-devel/trunk/development/HTML/HTML.notes"
6271 literal "false"
6272
6273 \end_inset
6274
6275 にある
6276 \begin_inset Flex Code
6277 status collapsed
6278
6279 \begin_layout Plain Layout
6280 development/HTML/HTML.notes
6281 \end_layout
6282
6283 \end_inset
6284
6285 ファイルには,通常,XHTML出力の現状についての最新の情報が収録されています.
6286 \begin_inset CommandInset href
6287 LatexCommand href
6288 name "バグ追跡ページ"
6289 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"
6290 literal "false"
6291
6292 \end_inset
6293
6294 にあるXHTML関連バグ一覧も参照のこと.
6295 \end_layout
6296
6297 \end_inset
6298
6299 .それでもこのアプローチは,他の2つの方法よりも,潜在的な利点がいくつもあるので,開発陣はこの方法を選択したのです.
6300 \end_layout
6301
6302 \begin_layout Standard
6303 これらの利点は,主に,XHTML出力ルーチンが\SpecialChar LyX
6304 の一部となっているため,\SpecialChar LyX
6305 が出力する文書について\SpecialChar LyX
6306 が関知しているところのものは,すべて知り得るというところから来ていま
6307
6308 \begin_inset Foot
6309 status collapsed
6310
6311 \begin_layout Plain Layout
6312 他には,これらのルーチンが\SpecialChar LyX
6313 内部にあるため,\SpecialChar LyX
6314 ファイル形式や既存の差込枠の文法に変更があっても,影響を受けずに済むという利点もあります.
6315 \end_layout
6316
6317 \end_inset
6318
6319 .つまり,XHTML出力ルーチンは,(文書構造に表示されるような形での)目次や,それぞれの段落様式に関連付けられたカウンタや,ユーザ定義の様式についても知ってい
6320 るのです.XHTML出力ルーチンは,国際化について\SpecialChar LyX
6321 が関知しているものも知っているので,ちょうどその時に有効になっている言語に依存して,「Chapter
6322  1」と出力されたり,「Kapitel 1」と出力されたりするのです.
6323 \end_layout
6324
6325 \begin_layout Standard
6326 汎く一般的に,出力ルーチンは,\SpecialChar LyX
6327 が文書レイアウトについて関知しているものは知っており,したがって,文書が画面上にどのように描画されるかも知っています.文書をXHT
6328 MLに出力するときには,この情報を利用します.特に,\SpecialChar LyX
6329 は,文書を画面上に描画するときに使用するレイアウト情報に対応したCSSスタイル情報を
6330 \emph on
6331 自動的に
6332 \emph default
6333 生成します.もし節見出しが,\SpecialChar LyX
6334 中でサンセリフ体かつボールド体であるとすると,(既定では)ウェブブラウザに表示した時にも,サンセリフでボールドになります.これは,節
6335 のような定義済み様式だけでなく,ユーザ定義のものも含めて,すべての様式でそうです.実際,XHTML出力ルーチンは,ユーザ定義の段落・文字様式と,\SpecialChar LyX
6336 自身の定義済み様
6337 式とを区別しません.どちらの場合も,\SpecialChar LyX
6338 が様式について関知しているところのものは,全てレイアウトファイルに含まれています.これは,脚注のような定義済み差込枠や,各種
6339 ユーザ設定差込枠でもそうです.
6340 \end_layout
6341
6342 \begin_layout Standard
6343 結果として,XHTML出力は,レイアウトファイルやモジュールを通して,\SpecialChar LaTeX
6344 出力と全く同じように,ユーザが設定したり拡張したりすることができるのです.詳細については,
6345 取扱説明書『
6346 \emph on
6347 カスタマイズ篇
6348 \emph default
6349 』の第5章をごらんください.
6350 \end_layout
6351
6352 \begin_layout Standard
6353 本章の残りでは,XHTML出力についての,さらに詳細な情報について取り扱い,その制約や,制約の回避の仕方を取り扱います.
6354 \end_layout
6355
6356 \begin_layout Section
6357 XHTMLにおける数式出力
6358 \end_layout
6359
6360 \begin_layout Standard
6361 \SpecialChar LyX
6362 では,数式描画に4つの方法を選択できます.以下に示すように,それぞれに利点と欠点があります.
6363 \end_layout
6364
6365 \begin_layout Itemize
6366 MathML
6367 \begin_inset Newline newline
6368 \end_inset
6369
6370 MathMLは,ウェブ上で数学を用いるために,特にデザインされたXMLの一方言であり,これをサポートするブラウザ上では,通常,特に美しい表現が得られます.欠点は
6371 ,すべてのブラウザがMathMLをサポートしているわけではないという事と,FirefoxのようなGeckoベースのブラウザでも,サポートが完璧ではないという事で
6372 す.
6373 \begin_inset Newline newline
6374 \end_inset
6375
6376 例えば,数式が
6377 \begin_inset Flex Code
6378 status collapsed
6379
6380 \begin_layout Plain Layout
6381 xymatrix
6382 \end_layout
6383
6384 \end_inset
6385
6386 パッケージを使用していたり,\SpecialChar TeX
6387 コードを使用しているなどで,もし\SpecialChar LyX
6388 が数式をMathMLとして描画できないとすると,\SpecialChar LyX
6389 は数式を代わりに画像として出力します.
6390  
6391 \end_layout
6392
6393 \begin_layout Itemize
6394 HTML
6395 \begin_inset Newline newline
6396 \end_inset
6397
6398 前述のとおり,
6399 \begin_inset Flex Code
6400 status collapsed
6401
6402 \begin_layout Plain Layout
6403 elyxer
6404 \end_layout
6405
6406 \end_inset
6407
6408 は,数式をCSSで装飾したHTMLとして出力します
6409 \begin_inset Foot
6410 status collapsed
6411
6412 \begin_layout Plain Layout
6413 \SpecialChar LyX
6414 は,
6415 \begin_inset Flex Code
6416 status collapsed
6417
6418 \begin_layout Plain Layout
6419 elyxer
6420 \end_layout
6421
6422 \end_inset
6423
6424 からのHTML出力のために,CSSの一部を拝借しています.
6425 \end_layout
6426
6427 \end_inset
6428
6429 .簡単な数式では,これは非常にうまく行きますが,少し複雑な数式になると,
6430 \begin_inset Flex Code
6431 status collapsed
6432
6433 \begin_layout Plain Layout
6434 elyxer
6435 \end_layout
6436
6437 \end_inset
6438
6439 は歯が立たなくなります.それでも,この方法は非常に広くサポートされているという利点があり,かなり簡単な数式を少しだけ含んでいるような文書に適しているでしょう.
6440 \begin_inset Newline newline
6441 \end_inset
6442
6443 例えば,数式が
6444 \begin_inset Flex Code
6445 status collapsed
6446
6447 \begin_layout Plain Layout
6448 xymatrix
6449 \end_layout
6450
6451 \end_inset
6452
6453 パッケージを使用していたり,\SpecialChar TeX
6454 コードを使用しているなどで,もし\SpecialChar LyX
6455 が数式をHTMLとして描画できないとすると,\SpecialChar LyX
6456 は数式を代わりに画像として出力します.
6457  
6458 \end_layout
6459
6460 \begin_layout Itemize
6461 画像
6462 \begin_inset Newline newline
6463 \end_inset
6464
6465
6466 \begin_inset Flex Code
6467 status collapsed
6468
6469 \begin_layout Plain Layout
6470 htlatex
6471 \end_layout
6472
6473 \end_inset
6474
6475 のように,\SpecialChar LyX
6476 は数式を画像としても出力できます.この画像は,実は,自動プレビューで使用されているものと全く同じです
6477 \begin_inset Foot
6478 status collapsed
6479
6480 \begin_layout Plain Layout
6481 ただし,画像を出力に使うために,自動プレビューを入にしておく必要は
6482 \emph on
6483 ありません
6484 \emph default
6485
6486 \end_layout
6487
6488 \end_inset
6489
6490 .この方法の利点は,画像が他ならぬ\SpecialChar LaTeX
6491 によって生成されているので,非常に正確であることです.欠点は,前述したとおり,画像がビットマップなので,伸縮が全くうまく行かな
6492 かったり,コピーが出来なかったりといったことがあります.
6493 \begin_inset Newline newline
6494 \end_inset
6495
6496 画像の寸法は,
6497 \begin_inset Flex MenuItem
6498 status collapsed
6499
6500 \begin_layout Plain Layout
6501 文書\SpecialChar menuseparator
6502 設定\SpecialChar menuseparator
6503 形式
6504 \end_layout
6505
6506 \end_inset
6507
6508 の「数式画像の伸縮」パラメータを変更することで制御できます
6509 \begin_inset Foot
6510 status collapsed
6511
6512 \begin_layout Plain Layout
6513 必要な方のために述べておくと,これは,画像の解像度をdpi(1インチあたりドット数)で制御するためのもので,75dpiを基準としています.
6514 \end_layout
6515
6516 \end_inset
6517
6518
6519 \begin_inset Newline newline
6520 \end_inset
6521
6522 もし\SpecialChar LyX
6523 が,何らかの理由によって数式の画像を生成できない(例えば,必要な\SpecialChar LaTeX
6524 パッケージが導入済みでないなど)ときは,回避策として,生の\SpecialChar LaTeX
6525 を出力します.
6526 \end_layout
6527
6528 \begin_layout Itemize
6529 \SpecialChar LaTeX
6530
6531 \begin_inset Newline newline
6532 \end_inset
6533
6534 最後に,\SpecialChar LyX
6535 は,数式を\SpecialChar LaTeX
6536 としても出力することができます.この方法は,最終手段としての出力方法である一方で,HTML文書に埋め込まれた\SpecialChar LaTeX
6537 を描画するのにJavaScript
6538 を使用する,
6539 \begin_inset CommandInset href
6540 LatexCommand href
6541 name "jsMath"
6542 target "http://www.math.union.edu/~dpvc/jsMath/"
6543 literal "false"
6544
6545 \end_inset
6546
6547 のようなツールとともに使用することもできます.\SpecialChar LyX
6548 は,jsMathで必要とされているのと同じように,\SpecialChar LaTeX
6549 部分を,
6550 \begin_inset Flex Code
6551 status collapsed
6552
6553 \begin_layout Plain Layout
6554 span
6555 \end_layout
6556
6557 \end_inset
6558
6559 (行内数式用)または
6560 \begin_inset Flex Code
6561 status collapsed
6562
6563 \begin_layout Plain Layout
6564 div
6565 \end_layout
6566
6567 \end_inset
6568
6569 (別行立て数式用)に
6570 \begin_inset Flex Code
6571 status collapsed
6572
6573 \begin_layout Plain Layout
6574 class='math'
6575 \end_layout
6576
6577 \end_inset
6578
6579 を指定したもので,包んで出力します.
6580 \end_layout
6581
6582 \begin_layout Standard
6583 これらの出力方法のいずれかを
6584 \begin_inset Flex MenuItem
6585 status collapsed
6586
6587 \begin_layout Plain Layout
6588 文書\SpecialChar menuseparator
6589 設定\SpecialChar menuseparator
6590 形式
6591 \end_layout
6592
6593 \end_inset
6594
6595 で選択しなくてはなりません.既定では,\SpecialChar LyX
6596 はMathMLで出力を行います.これは,文書全体に適用される設定となります.
6597 \end_layout
6598
6599 \begin_layout Standard
6600 最後に,\SpecialChar LyX
6601 では,例えば,MathMLではあまりうまく出力されないような差込枠に対して,別の出力方法を選択できる選択肢が用意されています
6602 \begin_inset Foot
6603 status collapsed
6604
6605 \begin_layout Plain Layout
6606 その他にも,\SpecialChar LyX
6607 は,差込枠に\SpecialChar TeX
6608 コードが含まれていると画像出力に回帰するので,数式中に
6609 \begin_inset Formula $a=b\relax$
6610 \end_inset
6611
6612 のような無害な\SpecialChar TeX
6613 コードを挿入することによって,画像出力を強制することができます.
6614 \end_layout
6615
6616 \end_inset
6617
6618
6619 \end_layout
6620
6621 \begin_layout Section
6622 書誌情報と引用
6623 \end_layout
6624
6625 \begin_layout Standard
6626 XHTML出力は,書誌情報と引用を完全にサポートしています.
6627 \end_layout
6628
6629 \begin_layout Standard
6630 引用ラベルは,\SpecialChar LyX
6631 画面上のラベルを生成するのと同じ機構で生成されているので,出力中のラベルは,\SpecialChar LyX
6632 中の外見と同質またはそれよりも上質な仕上がりとなっています.連番引用を
6633 使用している場合には,\SpecialChar LyX
6634 は,画面上で表示されるような各カッコに囲まれた引用鍵を単純に表示するのではなく,[1]や[17]などの連番ラベルを出力します.著者-出版年
6635 形式の引用を使用している場合で,同じ著者-出版年の組み合わせが複数ある場合,\SpecialChar LyX
6636 は,Bib\SpecialChar TeX
6637 が行うように出版年に小文字を付します.ラベルは,書誌情報項目とともに印字さ
6638 れます.現在のところ,角括弧を丸括弧に変更するなど,ラベルの外見を変更する手段はありませんのでご注意ください.
6639 \end_layout
6640
6641 \begin_layout Standard
6642 書誌情報出力は,引用ダイアログで文献情報表示を取り扱うのと同じ機構で取り扱われているので,XHTML出力は,引用ダイアログで特定の文献項目を表示させた時のものに
6643 非常によく似ています.整形の仕方は,レイアウトファイルや望ましくはモジュールでカスタマイズすることができます.詳細については,取扱説明書『カスタマイズ篇』をご覧
6644 ください.
6645 \end_layout
6646
6647 \begin_layout Standard
6648 現在のところ,主だった瑕疵は,相互参照された情報が,関連した項目の全てに印字されてしまうことです.つまり,以下のような表示が為されます.
6649 \end_layout
6650
6651 \begin_layout Quote
6652 Jason Stanley, 
6653 \begin_inset Quotes eld
6654 \end_inset
6655
6656 Context and Logical Form
6657 \begin_inset Quotes erd
6658 \end_inset
6659
6660 , in 
6661 \emph on
6662 Language in Context: Selected Essays
6663 \emph default
6664  (Oxford: Oxford University Press, 2007), pp.
6665  30–68.
6666 \end_layout
6667
6668 \begin_layout Quote
6669 Jason Stanley, 
6670 \begin_inset Quotes eld
6671 \end_inset
6672
6673 Semantics in Context
6674 \begin_inset Quotes erd
6675 \end_inset
6676
6677 , in 
6678 \emph on
6679 Language in Context: Selected Essays
6680 \emph default
6681  (Oxford: Oxford University Press, 2007), pp.
6682  201–30.
6683 \end_layout
6684
6685 \begin_layout Standard
6686 これは,遠くないうちに修正されるでしょう.
6687 \end_layout
6688
6689 \begin_layout Standard
6690 現在のところ,節ごとの書誌情報出力はサポートされていません.複数の書誌情報がある場合には,\SpecialChar LyX
6691 は同じ情報を繰り返し出力してしまいます.
6692 \end_layout
6693
6694 \begin_layout Section
6695 索引
6696 \end_layout
6697
6698 \begin_layout Standard
6699 \SpecialChar LyX
6700 は,索引をXHTMLとして書きだすことができますが,現在のところ,若干の制約があります.
6701 \end_layout
6702
6703 \begin_layout Standard
6704 索引の書き出しは,
6705 \emph on
6706 ユーザーの手引き
6707 \emph default
6708 の索引の節に書かれているような手の込んだ方法を使おうとしないほうが,信頼性が保てます
6709 \begin_inset Foot
6710 status collapsed
6711
6712 \begin_layout Plain Layout
6713 ここでの主な問題は,これらの操作の際に,\SpecialChar LyX
6714 自身は何もしていないという点です.つまり,生の\SpecialChar LaTeX
6715 で入力しなくてはならないようなものをそのまま入力しているのです.
6716 \end_layout
6717
6718 \end_inset
6719
6720 .当該節の小節見出しに沿って,それらがどう処理されるかを説明しましょう.
6721 \end_layout
6722
6723 \begin_layout Itemize
6724 索引項目のグループ化(下層項目): \SpecialChar LyX
6725 はこれらをサポートしようと努めていますが,項目は「 ! 」(感嘆符の周りに空白)で分離しなくてはなりません.これは,そうしな
6726 いと数式などで使われているエスケープされた感嘆符をチェックするのが非常に難しくなるからです.
6727 \end_layout
6728
6729 \begin_layout Itemize
6730 ページ範囲: ページ範囲については,XHTMLでは意味がないので,全くサポートされません.その代わりに,引用項目のはじめと終わりの頁それぞれに,2つの索引項目が
6731 得られるだけです.
6732 \end_layout
6733
6734 \begin_layout Itemize
6735 相互参照: 相互参照のサポートはありません.\SpecialChar LyX
6736 が「|see\SpecialChar ldots
6737 」という下だりを持つ項目を検出すると,その部分はただ無視されて,残りの部分が通常の索引項目だとみなされま
6738 す.
6739 \end_layout
6740
6741 \begin_layout Itemize
6742 索引項目の整序: \SpecialChar LyX
6743 は整序順の変更をサポートします.\SpecialChar LyX
6744 は,最初に検出した「@」の前の部分を取り出して,それを整序に用い,最初の「@」の後の部分を実際の項目として取り
6745 出します.現在のところ,\SpecialChar LyX
6746 はエスケープされた「@」を取り扱わないので,電子メールアドレスを索引に使わないでください.
6747 \end_layout
6748
6749 \begin_layout Itemize
6750 索引項目のレイアウト: 項目は,テキスト様式ダイアログを使うなり,\SpecialChar LyX
6751 内で使用可能な方法を用いることで,索引項目を成形することができます.「項目|textbf」のよ
6752 うな文法はサポートされません.\SpecialChar LyX
6753 は,項目内にパイプ記号「|」を検出すると,パイプ記号とその後に続くものすべてを削除してしまいます.
6754 \end_layout
6755
6756 \begin_layout Itemize
6757 複数の索引: 複数の索引はサポートされていません.すべての項目は,ひとつの大きな索引として印字されます.索引が何度も印字されることを防ぐため,中心となる索引だけ
6758 を印字しますので,その索引は必ず置くようにしてください.
6759 \end_layout
6760
6761 \begin_layout Section
6762 記号一覧および用語集
6763 \end_layout
6764
6765 \begin_layout Standard
6766 現在のところ,用語集のサポートはありません.この機能の追加は,比較的容易だと思われますので,あなたの貢献をお待ちしております.
6767 \end_layout
6768
6769 \begin_layout Chapter
6770 \SpecialChar LyX
6771 サーバー
6772 \end_layout
6773
6774 \begin_layout Section
6775 はじめに
6776 \end_layout
6777
6778 \begin_layout Standard
6779 「\SpecialChar LyX
6780 サーバー」を使用すると,他のプログラムが,\SpecialChar LyX
6781 と通信したり,\SpecialChar LyX
6782 コマンドを実行させたり,\SpecialChar LyX
6783 の内部状態に関する情報を取得したりすることができるようになります.これは熟練し
6784 たユーザー向けの機能ですが,便利なはずです.たとえば,\SpecialChar LyX
6785 サーバーに書き込むことによって,JabRefのような書誌情報管理ソフトが,LyXに文献引用を「押し込む」こ
6786 とが可能となります.
6787 \end_layout
6788
6789 \begin_layout Section
6790 \SpecialChar LyX
6791 サーバーを開始するには
6792 \begin_inset CommandInset label
6793 LatexCommand label
6794 name "sec:サーバーを開始するには"
6795
6796 \end_inset
6797
6798
6799 \end_layout
6800
6801 \begin_layout Standard
6802 \SpecialChar LyX
6803 サーバーは,名前をつけたパイプの対を利用することで機能します.パイプは,通常
6804 \begin_inset Flex Code
6805 status collapsed
6806
6807 \begin_layout Plain Layout
6808 UserDir
6809 \end_layout
6810
6811 \end_inset
6812
6813 の下に作られ(Windowsを除く.Windowsでは,名前を付けた
6814 \emph on
6815 ローカルの
6816 \emph default
6817 パイプは
6818 \begin_inset Flex Code
6819 status collapsed
6820
6821 \begin_layout Plain Layout
6822
6823 \backslash
6824
6825 \backslash
6826 .
6827 \backslash
6828 pipe
6829 \end_layout
6830
6831 \end_inset
6832
6833 に特別なオブジェクトとして置かれます),「
6834 \begin_inset Flex Code
6835 status collapsed
6836
6837 \begin_layout Plain Layout
6838 .lyxpipe.in
6839 \end_layout
6840
6841 \end_inset
6842
6843 」および「
6844 \begin_inset Flex Code
6845 status collapsed
6846
6847 \begin_layout Plain Layout
6848 .lyxpipe.out
6849 \end_layout
6850
6851 \end_inset
6852
6853 」という名前がついています.外部プログラムは,
6854 \begin_inset Flex Code
6855 status collapsed
6856
6857 \begin_layout Plain Layout
6858 .lyxpipe.in
6859 \end_layout
6860
6861 \end_inset
6862
6863 に書き込みを行い,戻りデータを
6864 \begin_inset Flex Code
6865 status collapsed
6866
6867 \begin_layout Plain Layout
6868 .lyxpipe.out
6869 \end_layout
6870
6871 \end_inset
6872
6873 から読み出します.パイプ名の語幹は,
6874 \begin_inset Flex MenuItem
6875 status collapsed
6876
6877 \begin_layout Plain Layout
6878 ツール\SpecialChar menuseparator
6879 設定
6880 \end_layout
6881
6882 \end_inset
6883
6884 から,たとえば「
6885 \begin_inset Flex Code
6886 status collapsed
6887
6888 \begin_layout Plain Layout
6889 /home/myhome/lyxpipe
6890 \end_layout
6891
6892 \end_inset
6893
6894 」あるいはWindowsでは「
6895 \begin_inset Flex Code
6896 status collapsed
6897
6898 \begin_layout Plain Layout
6899
6900 \backslash
6901
6902 \backslash
6903 .
6904 \backslash
6905 pipe
6906 \backslash
6907 lyxpipe
6908 \end_layout
6909
6910 \end_inset
6911
6912 」などに設定することができます(ここで,lyxpipe以外の任意のファイルパス,例えば
6913 \begin_inset Flex Code
6914 status collapsed
6915
6916 \begin_layout Plain Layout
6917 "
6918 \backslash
6919
6920 \backslash
6921 .
6922 \backslash
6923 pipe
6924 \backslash
6925 my
6926 \backslash
6927 lyx
6928 \backslash
6929 pipe"
6930 \end_layout
6931
6932 \end_inset
6933
6934 なども使用できます).サーバーを開始するためには,これを
6935 \emph on
6936 手動で設定しなくてはなりません
6937 \emph default
6938
6939 \end_layout
6940
6941 \begin_layout Standard
6942 \SpecialChar LyX
6943 は,パイプを生成するに際して,「
6944 \begin_inset Flex Code
6945 status collapsed
6946
6947 \begin_layout Plain Layout
6948 .in
6949 \end_layout
6950
6951 \end_inset
6952
6953 」および「
6954 \begin_inset Flex Code
6955 status collapsed
6956
6957 \begin_layout Plain Layout
6958 .out
6959 \end_layout
6960
6961 \end_inset
6962
6963 」を付け加えます.パイプがすでに存在していれば,\SpecialChar LyX
6964 は他の\SpecialChar LyX
6965 プロセスがすでに実行中であると判断して,サーバーを開始しません.POSIX(Unix型)システムでは,なん
6966 らかの理由で,\SpecialChar LyX
6967 が終了する際に使用されていない「古い」パイプが削除されずに残ったりすると,\SpecialChar LyX
6968 はこれを削除しようとします.何らかの理由でこれが失敗した場合,手動でパイ
6969 プを削除したのちに,\SpecialChar LyX
6970 を再起動する必要があります.Windowsでは,プログラムが終了したりクラッシュしたりすると,OSがパイプを削除するので,「古い」パイプが残
6971 ることはありません.
6972 \end_layout
6973
6974 \begin_layout Standard
6975 サーバーを使用する\SpecialChar LyX
6976 プロセスを複数起動するには,それぞれのプロセスに,別のユーザーディレクトリを使用させたり,別々の
6977 \begin_inset Flex Code
6978 status collapsed
6979
6980 \begin_layout Plain Layout
6981 preferences
6982 \end_layout
6983
6984 \end_inset
6985
6986 ファイルを使用させるなど,別々の設定を使用する必要があります.
6987 \end_layout
6988
6989 \begin_layout Standard
6990 クライアントプログラムを開発しようとされているのであれば,\SpecialChar LyX
6991 サーバーからのデバッグ情報を有効にすると便利かもしれません.そのためには,Lyxを
6992 \begin_inset Flex Code
6993 status collapsed
6994
6995 \begin_layout Plain Layout
6996 lyx -dbg lyxserver
6997 \end_layout
6998
6999 \end_inset
7000
7001 として起動してください.
7002 \end_layout
7003
7004 \begin_layout Standard
7005 C++言語で書かれた完全なサンプルクライアントが,ソース頒布版の
7006 \begin_inset Newline newline
7007 \end_inset
7008
7009
7010 \begin_inset Flex Code
7011 status collapsed
7012
7013 \begin_layout Plain Layout
7014 development/lyxserver/server_monitor.cpp
7015 \end_layout
7016
7017 \end_inset
7018
7019 にあります.
7020 \end_layout
7021
7022 \begin_layout Standard
7023 もう一つの便利なツールとして,
7024 \begin_inset Flex Code
7025 status collapsed
7026
7027 \begin_layout Plain Layout
7028 src/client/lyxclient
7029 \end_layout
7030
7031 \end_inset
7032
7033 にあるコマンドラインベースのクライアントがあります.
7034 \end_layout
7035
7036 \begin_layout Section
7037 通常の通信
7038 \end_layout
7039
7040 \begin_layout Standard
7041 \SpecialChar LyX
7042 コールを発行するには,クライアントはASCIIテキスト行を入力パイプに書き込みまなくてはなりません.この行は,以下の書式を持ちます.
7043 \end_layout
7044
7045 \begin_layout Quote
7046 LYXCMD:
7047 \emph on
7048 クライアント名
7049 \emph default
7050 :
7051 \emph on
7052 関数
7053 \emph default
7054 :
7055 \emph on
7056 引数
7057 \end_layout
7058
7059 \begin_layout Description
7060 クライアント名 は,クライアントが自由に選べる名前です.これが用いられるのは,クライアントが他の要求クライアントから結果を見分けることができるように,\SpecialChar LyX
7061 が返答をす
7062 る際,クライアント名をエコーするときだけです.
7063 \end_layout
7064
7065 \begin_layout Description
7066 関数 は,\SpecialChar LyX
7067 に実行させたい関数です.これは,ミニバッファで使用するコマンドと同じです.
7068 \end_layout
7069
7070 \begin_layout Description
7071 引数 は,一部の関数のみに効力を持つオプションの引数です(たとえば,「自己挿入」LFUNは,現在のカーソル位置に引数を文章として挿入します).
7072 \end_layout
7073
7074 \begin_layout Standard
7075 \SpecialChar LyX
7076 からの返答は,出力パイプに送り出され,
7077 \end_layout
7078
7079 \begin_layout Quote
7080 INFO:
7081 \emph on
7082 クライアント名
7083 \emph default
7084 :
7085 \emph on
7086 関数
7087 \emph default
7088 :
7089 \emph on
7090 データ
7091 \end_layout
7092
7093 \begin_layout Standard
7094 の書式をしています.ここで
7095 \emph on
7096 クライアント名
7097 \emph default
7098
7099 \emph on
7100 関数
7101 \emph default
7102 は,コマンド要求からそのままエコーされますが,
7103 \emph on
7104 データ
7105 \emph default
7106 はコマンド実行の結果に依存した,多少なりとも有用な情報です.「font-state」のような一部のコマンドは,\SpecialChar LyX
7107 の内部状態に関する情報を返しますが,空のデータ応答
7108 を返すものもあります.空のデータ返答は,コマンド実行が無事終わったことを意味します.
7109 \end_layout
7110
7111 \begin_layout Standard
7112 エラーが発生した場合の\SpecialChar LyX
7113 の返答は
7114 \end_layout
7115
7116 \begin_layout Quote
7117 ERROR:
7118 \emph on
7119 クライアント名
7120 \emph default
7121 :
7122 \emph on
7123 関数
7124 \emph default
7125 :
7126 \emph on
7127 エラーメッセージ
7128 \end_layout
7129
7130 \begin_layout Standard
7131 の書式をしており,
7132 \emph on
7133 エラーメッセージ
7134 \emph default
7135 には,なぜコマンドが失敗したかの説明が入っているはずです.
7136 \end_layout
7137
7138 \begin_layout Standard
7139 (例)
7140 \end_layout
7141
7142 \begin_layout LyX-Code
7143 echo "LYXCMD:test:beginning-of-buffer:" >~/.lyxpipe.in
7144 \begin_inset Newline newline
7145 \end_inset
7146
7147 echo "LYXCMD:test:get-xy:" >~/.lyxpipe.in
7148 \begin_inset Newline newline
7149 \end_inset
7150
7151 read a <~/.lyxpipe.out
7152 \begin_inset Newline newline
7153 \end_inset
7154
7155 echo $a
7156 \end_layout
7157
7158 \begin_layout Section
7159 通知
7160 \end_layout
7161
7162 \begin_layout Standard
7163 \SpecialChar LyX
7164 は,発生しているイベントを,非同期的にクライアントに通知することができます.いまのところ,ユーザーがある
7165 \begin_inset Flex Ruby
7166 status collapsed
7167
7168 \begin_layout Plain Layout
7169
7170 \begin_inset Argument post:1
7171 status collapsed
7172
7173 \begin_layout Plain Layout
7174 キー
7175 \end_layout
7176
7177 \end_inset
7178
7179
7180 \end_layout
7181
7182 \end_inset
7183
7184 列を関数「notify」に割り当てているときのみ,\SpecialChar LyX
7185 はこの通知を行います.\SpecialChar LyX
7186 が送る文字列の書式は
7187 \end_layout
7188
7189 \begin_layout Quote
7190 \begin_inset Flex Code
7191 status collapsed
7192
7193 \begin_layout Plain Layout
7194 NOTIFY:
7195 \end_layout
7196
7197 \end_inset
7198
7199
7200 \emph on
7201 鍵列
7202 \end_layout
7203
7204 \begin_layout Standard
7205 となっていて,
7206 \emph on
7207 鍵列
7208 \emph default
7209 は,ユーザーが実際に打鍵した鍵列の印字表現になります.
7210 \end_layout
7211
7212 \begin_layout Standard
7213 この機構は,\SpecialChar LyX
7214 のコマンド群を拡張してマクロを実装するのに使用することができます.なんらかの鍵列を「notify」に割り当ててください.それから出力パイプで待機する
7215 クライアントを起動し,鍵列に応じたコマンドを読み込み,一つないし複数の\SpecialChar LyX
7216 コマンドを発行する\SpecialChar LyX
7217 要求と\SpecialChar LyX
7218 コールを使用する関数を開始するのです.
7219 \end_layout
7220
7221 \begin_layout Section
7222 単純な\SpecialChar LyX
7223 サーバープロトコル
7224 \end_layout
7225
7226 \begin_layout Standard
7227 \SpecialChar LyX
7228 は,セッション管理に使用することができる単純なプロトコルを実装しています.メッセージは,すべて
7229 \end_layout
7230
7231 \begin_layout Quote
7232 LYXSRV:
7233 \emph on
7234 クライアント名
7235 \emph default
7236 :
7237 \emph on
7238 プロトコルメッセージ
7239 \end_layout
7240
7241 \begin_layout Standard
7242 の書式をしており,
7243 \emph on
7244 プロトコルメッセージ
7245 \emph default
7246 は「hello」ないし「bye」です.クライアントから「hello」を受け取ると,\SpecialChar LyX
7247 はメッセージを聴いていることをクライアントに伝えるために返答をし,\SpecialChar LyX
7248 が終了するこ
7249 とをクライアントに伝えるのには,\SpecialChar LyX
7250 が「bye」を送信します.
7251 \end_layout
7252
7253 \begin_layout Section
7254 DVIとPDFの遡及検索
7255 \end_layout
7256
7257 \begin_layout Standard
7258 DVI/PDFビューア
7259 \begin_inset Foot
7260 status collapsed
7261
7262 \begin_layout Plain Layout
7263 PDFの遡及検索機能を提供しているビューアには,KDE/Linux上のOkularと
7264 \lang english
7265 Qpdfview on Unix
7266 \lang japanese
7267 とMac OS X上のSkim,Windows上のSumatraPDFがあります.
7268 \end_layout
7269
7270 \end_inset
7271
7272 には,遡及検索(reverse searchないしinverse searchと呼ばれます)機能を提供しているものがあります.これを使えば,DVI/PDF出力の
7273 特定の場所をクリックすることによって,\SpecialChar LyX
7274 の文書中で対応する行にカーソルを移動させることができます.これを実現するためには,ビューアは\SpecialChar LyX
7275 と情報交換を行う必要があります
7276 .これは,命名パイプ(
7277 \emph on
7278 lyxpipe
7279 \emph default
7280 )を使用するか,\SpecialChar LyX
7281 が作業ディレクトリに生成するUNIXドメインソケット(
7282 \emph on
7283 lyxsocket
7284 \emph default
7285 )を使用する(これは
7286 \begin_inset Flex Code
7287 status collapsed
7288
7289 \begin_layout Plain Layout
7290 lyxclient
7291 \end_layout
7292
7293 \end_inset
7294
7295 プログラムが\SpecialChar LyX
7296 と通信するのに使用している方法です)ことで,\SpecialChar LyX
7297 サーバを経由して実現することができます.場合によっては,ビューアと\SpecialChar LyX
7298 を橋渡しする補助スクリプトを必要とする
7299 ことがあるかもしれませんが,それ以外は,ビューアは\SpecialChar LyX
7300 と直接通信することができます.これは,選んだビューアと基本ソフトに依存します.また,必要とされるビューアの設定
7301 法と遡及検索が実際に行われる方法とにも依存します.したがって,下記では個々のビューア毎の遡及検索の設定の仕方を説明することとします.その前に,DVI/PDF出力
7302 で遡及検索を有効にするためには,一般に何が必要とされるかを説明します.
7303 \end_layout
7304
7305 \begin_layout Subsection
7306 \begin_inset CommandInset label
7307 LatexCommand label
7308 name "subsec:遡及検索"
7309
7310 \end_inset
7311
7312 自動有効化
7313 \end_layout
7314
7315 \begin_layout Standard
7316 ツールバーで
7317 \begin_inset Info
7318 type  "icon"
7319 arg   "buffer-toggle-output-sync"
7320 \end_inset
7321
7322 ボタンを押せば,ほとんどの場合,\SpecialChar LyX
7323 がすべてをうまくこなしてくれます.あるいは,
7324 \begin_inset Flex MenuItem
7325 status collapsed
7326
7327 \begin_layout Plain Layout
7328 文書\SpecialChar menuseparator
7329 設定\SpecialChar menuseparator
7330 形式
7331 \end_layout
7332
7333 \end_inset
7334
7335 メニューで
7336 \begin_inset Flex MenuItem
7337 status collapsed
7338
7339 \begin_layout Plain Layout
7340 出力と同期
7341 \end_layout
7342
7343 \end_inset
7344
7345 にチェックを入れることで有効にすることもできます.その場合,\SpecialChar LyX
7346 は,自動的に,必要なSync\SpecialChar TeX
7347 マクロ(PDFの場合)や,srcltxパッケージ(DVIの場合)を挿入し
7348 てくれます.このオプションは,
7349 \begin_inset Flex MenuItem
7350 status collapsed
7351
7352 \begin_layout Plain Layout
7353 表示/更新
7354 \end_layout
7355
7356 \end_inset
7357
7358 ツールバーからも容易にアクセスすることができます.
7359 \end_layout
7360
7361 \begin_layout Standard
7362 もし,これとは別の設定が必要な場合には,
7363 \begin_inset Flex MenuItem
7364 status collapsed
7365
7366 \begin_layout Plain Layout
7367 文書\SpecialChar menuseparator
7368 設定\SpecialChar menuseparator
7369 出力\SpecialChar menuseparator
7370 出力と同期
7371 \end_layout
7372
7373 \end_inset
7374
7375 の直下にあるドロップダウンボックスから,自製マクロを選択ないし入力することができます.
7376 \end_layout
7377
7378 \begin_layout Standard
7379 方式として
7380 \begin_inset Flex Code
7381 status collapsed
7382
7383 \begin_layout Plain Layout
7384
7385 \backslash
7386 synctex=1
7387 \end_layout
7388
7389 \end_inset
7390
7391 を用いると,gzip圧縮が有効となることに注意してください.使用しているビューアがgzip圧縮をサポートしていない場合には,代わりに
7392 \begin_inset Flex Code
7393 status collapsed
7394
7395 \begin_layout Plain Layout
7396
7397 \backslash
7398 synctex=-1
7399 \end_layout
7400
7401 \end_inset
7402
7403 を指定してください.
7404 \end_layout
7405
7406 \begin_layout Standard
7407 また,
7408 \begin_inset Flex Code
7409 status collapsed
7410
7411 \begin_layout Plain Layout
7412 srcltx
7413 \end_layout
7414
7415 \end_inset
7416
7417 パッケージや
7418 \begin_inset Flex Code
7419 status collapsed
7420
7421 \begin_layout Plain Layout
7422 src-specials
7423 \end_layout
7424
7425 \end_inset
7426
7427 を取り込むと,組版上,不具合が生じることがあるのでご注意ください.したがって,
7428 \begin_inset Flex Code
7429 status collapsed
7430
7431 \begin_layout Plain Layout
7432 srcltx
7433 \end_layout
7434
7435 \end_inset
7436
7437 パッケージや
7438 \begin_inset Flex Code
7439 status collapsed
7440
7441 \begin_layout Plain Layout
7442 src-specials
7443 \end_layout
7444
7445 \end_inset
7446
7447 を使用している場合には,最終版を組版する際には,出力同期を無効にするべきです.
7448 \end_layout
7449
7450 \begin_layout Standard
7451 自動設定でカバーされている範囲よりも,さらに特殊なものが必要な場合には,出力同期を手動で設定する仕方を述べた次節をお読みください.自動設定で事足りる場合には,自
7452 動設定・手動設定ともに必要となるビューア上の設定を述べた,第
7453 \begin_inset CommandInset ref
7454 LatexCommand ref
7455 reference "subsec:特定のビューアを設定して使うには"
7456
7457 \end_inset
7458
7459 節に進むことができます.
7460 \end_layout
7461
7462 \begin_layout Subsection
7463 手動有効化
7464 \end_layout
7465
7466 \begin_layout Standard
7467 \SpecialChar LaTeX
7468 は,遡及検索のために複数の方法を提供しています.ある方法は
7469 \begin_inset Flex Code
7470 status collapsed
7471
7472 \begin_layout Plain Layout
7473 latex/pdflatex
7474 \end_layout
7475
7476 \end_inset
7477
7478 プログラムに組み込まれており,他の方法は外部パッケージとして提供されています.どちらを選択するかは,お使いの\SpecialChar LaTeX
7479 頒布版が既に特定の方法を提供しているか(組み込みによ
7480 る方法は比較的新しいものです)と,お使いのビューアがそれに対応しているかに依存します.使用可能な方法を以下に述べます.
7481 \end_layout
7482
7483 \begin_layout Subsubsection*
7484 src-special経由のDVI組み込み検索(DVIのみ)
7485 \end_layout
7486
7487 \begin_layout Standard
7488 この方法は,DVIファイルに遡及検索に必要な情報を追加するものです.これは,かなり前の\SpecialChar LaTeX
7489 から利用可能となっており(比較的最近の\SpecialChar LaTeX
7490 頒布版はすべて対応しています),安定
7491 して動作します.これを有効にするには,
7492 \begin_inset Flex MenuItem
7493 status collapsed
7494
7495 \begin_layout Plain Layout
7496 設定\SpecialChar menuseparator
7497 ファイル処理\SpecialChar menuseparator
7498 変換子
7499 \end_layout
7500
7501 \end_inset
7502
7503
7504 \begin_inset Flex MenuItem
7505 status collapsed
7506
7507 \begin_layout Plain Layout
7508 LaTeX (plain)->DVI
7509 \end_layout
7510
7511 \end_inset
7512
7513 ないし
7514 \begin_inset Flex MenuItem
7515 status collapsed
7516
7517 \begin_layout Plain Layout
7518 LaTeX (plain)->DraftDVI
7519 \end_layout
7520
7521 \end_inset
7522
7523 変換子を
7524 \begin_inset Flex Code
7525 status collapsed
7526
7527 \begin_layout Plain Layout
7528 latex -src-specials $$i
7529 \end_layout
7530
7531 \end_inset
7532
7533 に変更します.もしこれが動作しないときは,お使いの\SpecialChar LaTeX
7534 エンジンが違うオプションを必要としていないか確認してください(頒布版によっては文法の異なることがあります).
7535 \end_layout
7536
7537 \begin_layout Subsubsection*
7538 外部パッケージ(PDFSyncおよびsrcltx)
7539 \end_layout
7540
7541 \begin_layout Standard
7542
7543 \emph on
7544 pdfsync
7545 \emph default
7546 および
7547 \emph on
7548 srcltx
7549 \emph default
7550 パッケージは,PDF出力(pdflatex経由)およびDVI出力での遡及検索を提供します.これを有効にするには,\SpecialChar LyX
7551 プリアンブルで以下のようにパッケージを読み込んで
7552 ください.
7553 \end_layout
7554
7555 \begin_layout Itemize
7556 PDFの遡及検索には
7557 \begin_inset Flex Code
7558 status collapsed
7559
7560 \begin_layout Plain Layout
7561
7562 \backslash
7563 usepackage{pdfsync}
7564 \end_layout
7565
7566 \end_inset
7567
7568
7569 \end_layout
7570
7571 \begin_layout Itemize
7572 DVIの遡及検索には
7573 \begin_inset Flex Code
7574 status collapsed
7575
7576 \begin_layout Plain Layout
7577
7578 \backslash
7579 usepackage[active]{srcltx}
7580 \end_layout
7581
7582 \end_inset
7583
7584
7585 \end_layout
7586
7587 \begin_layout Standard
7588 と書きます.DVIとPDFの両方の遡及検索を実行できるようにするためには,プリアンブルに以下の行を挿入する方法があります.
7589 \end_layout
7590
7591 \begin_layout LyX-Code
7592
7593 \backslash
7594 usepackage{ifpdf}
7595 \begin_inset Newline newline
7596 \end_inset
7597
7598
7599 \backslash
7600 ifpdf
7601 \begin_inset Newline newline
7602 \end_inset
7603
7604   
7605 \backslash
7606 usepackage{pdfsync}
7607 \begin_inset Newline newline
7608 \end_inset
7609
7610
7611 \backslash
7612 else
7613 \begin_inset Newline newline
7614 \end_inset
7615
7616   
7617 \backslash
7618 usepackage[active]{srcltx}
7619 \begin_inset Newline newline
7620 \end_inset
7621
7622
7623 \backslash
7624 fi
7625 \end_layout
7626
7627 \begin_layout Standard
7628 このようにすれば,DVIでもPDF(pdflatex)でも正しいパッケージを使いながら,ファイルを閲覧することができます.
7629 \end_layout
7630
7631 \begin_layout Standard
7632 なお,PDFSyncは,文書の出力レイアウトに干渉する可能性があるので注意してください.したがって,仕上がり文書ではPDFSyncを無効にすることをお勧めします
7633
7634 \end_layout
7635
7636 \begin_layout Subsubsection*
7637 Sync\SpecialChar TeX
7638 を使った組み込み遡及検索(DVIおよびPDF)
7639 \end_layout
7640
7641 \begin_layout Standard
7642 \begin_inset Flex Code
7643 status collapsed
7644
7645 \begin_layout Plain Layout
7646 (pdf)latex
7647 \end_layout
7648
7649 \end_inset
7650
7651 の最近のバージョンは,PDFおよびDVI両方の遡及検索を組み込みでサポートしています.このいわゆる
7652 \emph on
7653 Sync\SpecialChar TeX
7654
7655 \emph default
7656 機能は,主に,PDFSyncパッケージをpdftexプログラムへ統合したことと,それをsrc-specialsアプローチへ取り込んだことの成果です.これを使用す
7657 るためには,少なくとも\SpecialChar TeX
7658 Live 2008か最近のMik\SpecialChar TeX
7659 頒布版が必要です.また,既にSync\SpecialChar TeX
7660 サポートを提供しているPDFビューアは少ししかありません(UNIX上の
7661 OkularとQpdfview,Mac上のSkim,及びWindows上のSumatraPDFなど.詳細は次節を参照のこと).
7662 \end_layout
7663
7664 \begin_layout Standard
7665 DVI出力でSync\SpecialChar TeX
7666 を有効にするには,
7667 \begin_inset Flex MenuItem
7668 status collapsed
7669
7670 \begin_layout Plain Layout
7671 設定\SpecialChar menuseparator
7672 ファイル処理\SpecialChar menuseparator
7673 変換子
7674 \end_layout
7675
7676 \end_inset
7677
7678
7679 \begin_inset Flex Noun
7680 status collapsed
7681
7682 \begin_layout Plain Layout
7683 LaTeX (plain) -> DVI
7684 \end_layout
7685
7686 \end_inset
7687
7688 ないし
7689 \begin_inset Flex Noun
7690 status collapsed
7691
7692 \begin_layout Plain Layout
7693 LaTeX (plain) -> DraftDVI
7694 \end_layout
7695
7696 \end_inset
7697
7698 変換子を
7699 \begin_inset Flex Code
7700 status collapsed
7701
7702 \begin_layout Plain Layout
7703 latex -synctex=1 $$i
7704 \end_layout
7705
7706 \end_inset
7707
7708 に変更します.PDF出力用には,
7709 \begin_inset Flex Noun
7710 status collapsed
7711
7712 \begin_layout Plain Layout
7713 LaTeX (pdflatex) -> PDF (pdflatex)
7714 \end_layout
7715
7716 \end_inset
7717
7718 変換子を
7719 \begin_inset Flex Code
7720 status collapsed
7721
7722 \begin_layout Plain Layout
7723 pdflatex -synctex=1 $$i
7724 \end_layout
7725
7726 \end_inset
7727
7728 に変更してください.お使いのビューアが下記に記述されていない場合や,万一うまくいかない場合にはまた,ビューアをSync\SpecialChar TeX
7729 で使うのに設定を行う必要があるかどうか,お
7730 使いのビューアの取扱説明書をご確認ください.
7731 \begin_inset Foot
7732 status collapsed
7733
7734 \begin_layout Plain Layout
7735 \begin_inset Flex Code
7736 status collapsed
7737
7738 \begin_layout Plain Layout
7739 -synctex=1
7740 \end_layout
7741
7742 \end_inset
7743
7744 オプションは,gzip圧縮を有効にします.お使いのビューアがgzip圧縮をサポートしていない場合には,代わりに
7745 \begin_inset Flex Code
7746 status collapsed
7747
7748 \begin_layout Plain Layout
7749 -synctex=-1
7750 \end_layout
7751
7752 \end_inset
7753
7754 を使用してください.
7755 \end_layout
7756
7757 \end_inset
7758
7759
7760 \end_layout
7761
7762 \begin_layout Subsection
7763 特定のビューアを設定して使うには
7764 \begin_inset CommandInset label
7765 LatexCommand label
7766 name "subsec:特定のビューアを設定して使うには"
7767
7768 \end_inset
7769
7770
7771 \end_layout
7772
7773 \begin_layout Subsubsection*
7774 Xdvi(全プラットフォーム)
7775 \end_layout
7776
7777 \begin_layout Standard
7778 \SpecialChar LyX
7779 は,
7780 \begin_inset Flex Code
7781 status collapsed
7782
7783 \begin_layout Plain Layout
7784 lyxclient
7785 \end_layout
7786
7787 \end_inset
7788
7789 プログラムを自動的に使うのに必要なフックを,既に提供しているので,
7790 \begin_inset Flex Code
7791 status collapsed
7792
7793 \begin_layout Plain Layout
7794 xdvi
7795 \end_layout
7796
7797 \end_inset
7798
7799 を使用する場合には,DVI遡及検索を実行するのに他にするべきことはありません.使用中の文書を上記で述べたように設定するだけです(遡及検索は,Ctrl-クリックか
7800 ,Mac OS X上ではAlt-クリックで始動します).
7801 \end_layout
7802
7803 \begin_layout Standard
7804 しかし,何らかの理由で,\SpecialChar LyX
7805 と通信するのにソケットではなく命名パイプを使用したい場合には,
7806 \begin_inset Flex MenuItem
7807 status collapsed
7808
7809 \begin_layout Plain Layout
7810 設定\SpecialChar menuseparator
7811 ファイル処理\SpecialChar menuseparator
7812 ファイル書式
7813 \end_layout
7814
7815 \end_inset
7816
7817 のDVIビューアを
7818 \begin_inset Flex Code
7819 status collapsed
7820
7821 \begin_layout Plain Layout
7822 xdvi -editor "lyxeditor.sh %f %l"
7823 \end_layout
7824
7825 \end_inset
7826
7827
7828 \begin_inset Flex Code
7829 status collapsed
7830
7831 \begin_layout Plain Layout
7832 lyxeditor.sh
7833 \end_layout
7834
7835 \end_inset
7836
7837 は適切なスクリプト名)に変更してください
7838 \begin_inset Foot
7839 status collapsed
7840
7841 \begin_layout Plain Layout
7842 Mac OS X上では,
7843 \begin_inset Flex Code
7844 status collapsed
7845
7846 \begin_layout Plain Layout
7847 DISPLAY=:0.0 xdvi -editor "lyxeditor.sh %f %l"
7848 \end_layout
7849
7850 \end_inset
7851
7852 としなくてはなりません.
7853 \end_layout
7854
7855 \end_inset
7856
7857 .たとえば,最低限のシェルスクリプトは
7858 \end_layout
7859
7860 \begin_layout LyX-Code
7861 #!/bin/sh
7862 \begin_inset Newline newline
7863 \end_inset
7864
7865 LYXPIPE="/path/to/lyxpipe"
7866 \begin_inset Newline newline
7867 \end_inset
7868
7869 COMMAND="LYXCMD:revdvi:server-goto-file-row:$1 $2"
7870 \begin_inset Newline newline
7871 \end_inset
7872
7873 echo "$COMMAND" > "${LYXPIPE}".in || exit
7874 \begin_inset Newline newline
7875 \end_inset
7876
7877 read TMP < "${LYXPIPE}".out || exit
7878 \end_layout
7879
7880 \begin_layout Standard
7881 のようになります.ここで
7882 \begin_inset Flex Code
7883 status collapsed
7884
7885 \begin_layout Plain Layout
7886 /path/to/lyxpipe
7887 \end_layout
7888
7889 \end_inset
7890
7891 は,
7892 \begin_inset Flex MenuItem
7893 status collapsed
7894
7895 \begin_layout Plain Layout
7896 設定\SpecialChar menuseparator
7897 パス
7898 \end_layout
7899
7900 \end_inset
7901
7902 で指定したLyXServerパイプのパスを指定してください.
7903 \begin_inset Foot
7904 status collapsed
7905
7906 \begin_layout Plain Layout
7907 ソース頒布版の
7908 \begin_inset Flex Code
7909 status collapsed
7910
7911 \begin_layout Plain Layout
7912 development/tools
7913 \end_layout
7914
7915 \end_inset
7916
7917 フォルダには,ユーザが設定した
7918 \emph on
7919 lyxpipe
7920 \emph default
7921 を探し出す
7922 \begin_inset Flex Code
7923 status collapsed
7924
7925 \begin_layout Plain Layout
7926 lyxeditor
7927 \end_layout
7928
7929 \end_inset
7930
7931 スクリプトがあります.
7932 \end_layout
7933
7934 \end_inset
7935
7936
7937 \end_layout
7938
7939 \begin_layout Subsubsection*
7940 MacDviX(Mac OS X)
7941 \end_layout
7942
7943 \begin_layout Standard
7944 \begin_inset Flex Code
7945 status collapsed
7946
7947 \begin_layout Plain Layout
7948 /Applications/MacDviX_Folder/calleditor.script
7949 \end_layout
7950
7951 \end_inset
7952
7953 の終わりに
7954 \end_layout
7955
7956 \begin_layout LyX-Code
7957 /Applications/LyX.app/Contents/MacOS/lyxeditor "$2" $1
7958 \begin_inset Newline newline
7959 \end_inset
7960
7961 exit 1
7962 \end_layout
7963
7964 \begin_layout Standard
7965 という行を付け加えてください.Applicationsフォルダ以外の場所に\SpecialChar LyX
7966 を導入した場合には,それに従って上記の行を修正してください.
7967 \end_layout
7968
7969 \begin_layout Standard
7970 遡及検索は,Alt-クリック(OPTION-クリック)で始動します.
7971 \end_layout
7972
7973 \begin_layout Subsubsection*
7974 Skim(Mac OS X)
7975 \end_layout
7976
7977 \begin_layout Standard
7978 \begin_inset Flex MenuItem
7979 status collapsed
7980
7981 \begin_layout Plain Layout
7982 設定\SpecialChar menuseparator
7983 ファイル処理\SpecialChar menuseparator
7984 ファイル書式\SpecialChar menuseparator
7985 PDF (pdflatex)
7986 \end_layout
7987
7988 \end_inset
7989
7990 のビューア設定に
7991 \begin_inset Flex Code
7992 status collapsed
7993
7994 \begin_layout Plain Layout
7995 open -a Skim.app $$i
7996 \end_layout
7997
7998 \end_inset
7999
8000 と入力し,
8001 \begin_inset Flex MenuItem
8002 status collapsed
8003
8004 \begin_layout Plain Layout
8005 Skim\SpecialChar menuseparator
8006 設定\SpecialChar menuseparator
8007 Sync
8008 \end_layout
8009
8010 \end_inset
8011
8012 でLyXを選択してください.
8013 \end_layout
8014
8015 \begin_layout Standard
8016 遡及検索は,COMMAND-SHIFT-クリックで始動します.
8017 \end_layout
8018
8019 \begin_layout Subsubsection*
8020 Evince(GNOME)
8021 \end_layout
8022
8023 \begin_layout Standard
8024 Evinceでは遡及検索はそのままでは動きませんが,サードパーティのヘルパースクリプトを使用すれば,利用可能になります.詳細については,
8025 \begin_inset CommandInset href
8026 LatexCommand href
8027 target "https://wiki.lyx.org/LyX/SyncTeX"
8028 literal "false"
8029
8030 \end_inset
8031
8032 を参照してください.
8033 \end_layout
8034
8035 \begin_layout Subsubsection*
8036 Okular(KDE)
8037 \end_layout
8038
8039 \begin_layout Standard
8040 \begin_inset Flex Noun
8041 status collapsed
8042
8043 \begin_layout Plain Layout
8044 設定\SpecialChar menuseparator
8045 Okularを設定\SpecialChar menuseparator
8046 エディタ
8047 \end_layout
8048
8049 \end_inset
8050
8051 で「Lyxクライアント」をエディタとして選択してください.これによって適切なコマンド(
8052 \begin_inset Flex Code
8053 status collapsed
8054
8055 \begin_layout Plain Layout
8056 lyxclient -g %f %l
8057 \end_layout
8058
8059 \end_inset
8060
8061 )が挿入されます.
8062 \end_layout
8063
8064 \begin_layout Standard
8065 遡及検索は,SHIFT-クリックで始動します.
8066 \end_layout
8067
8068 \begin_layout Subsubsection*
8069 Qpdfview(UNIX)
8070 \end_layout
8071
8072 \begin_layout Standard
8073 Qpdfviewは,第0.3.5版以降,Sync\SpecialChar TeX
8074 をサポートしています.
8075 \begin_inset Flex MenuItem
8076 status collapsed
8077
8078 \begin_layout Plain Layout
8079 Edit\SpecialChar menuseparator
8080 Settings\SpecialChar menuseparator
8081 Behavior
8082 \end_layout
8083
8084 \end_inset
8085
8086 を開いて「Source editor」項目の入力フィールドをクリックし,
8087 \begin_inset Flex Code
8088 status collapsed
8089
8090 \begin_layout Plain Layout
8091 lyxclient -g %1 %2
8092 \end_layout
8093
8094 \end_inset
8095
8096 というコマンドを入力してください.
8097 \end_layout
8098
8099 \begin_layout Standard
8100 遡及検索は,ダブルクリックで始動します.
8101 \end_layout
8102
8103 \begin_layout Subsubsection*
8104 YAP(Windows)
8105 \end_layout
8106
8107 \begin_layout Standard
8108 yapを起動し,
8109 \begin_inset Flex MenuItem
8110 status collapsed
8111
8112 \begin_layout Plain Layout
8113 View\SpecialChar menuseparator
8114 Options
8115 \end_layout
8116
8117 \end_inset
8118
8119 メニューを選択し,「Inverse DVI Search」タブを選択します.「New\SpecialChar ldots
8120 」ボタンをクリックして開くウィンドウの「Name:」フィールドに「\SpecialChar LyX
8121
8122  Editor」(または自分の好きな名称)と入力してください.「\SpecialChar ldots
8123 」というラベルのボタンをクリックしてファイルダイアログを開き,バッチファイル
8124 \begin_inset Flex Code
8125 status collapsed
8126
8127 \begin_layout Plain Layout
8128 lyxeditor.bat
8129 \end_layout
8130
8131 \end_inset
8132
8133 (以下参照)のあるディレクトリを見つけます.
8134 \begin_inset Flex Code
8135 status collapsed
8136
8137 \begin_layout Plain Layout
8138 lyxeditor.bat
8139 \end_layout
8140
8141 \end_inset
8142
8143 を選択してプログラムの引数を
8144 \begin_inset Flex Code
8145 status collapsed
8146
8147 \begin_layout Plain Layout
8148 %f %l
8149 \end_layout
8150
8151 \end_inset
8152
8153 と指定してください.
8154 \begin_inset Flex Code
8155 status collapsed
8156
8157 \begin_layout Plain Layout
8158 lyxeditor.bat
8159 \end_layout
8160
8161 \end_inset
8162
8163 は,
8164 \emph on
8165 lyxpipe
8166 \emph default
8167 を通じて\SpecialChar LyX
8168 と通信するためのラッパとして使用され,以下のようになっています.
8169 \end_layout
8170
8171 \begin_layout LyX-Code
8172 @echo off
8173 \begin_inset Newline newline
8174 \end_inset
8175
8176 echo LYXCMD:revdvi:server-goto-file-row:%~1 %2> 
8177 \backslash
8178
8179 \backslash
8180 .
8181 \backslash
8182 pipe
8183 \backslash
8184 lyxpipe.in
8185 \begin_inset Newline newline
8186 \end_inset
8187
8188 type 
8189 \backslash
8190
8191 \backslash
8192 .
8193 \backslash
8194 pipe
8195 \backslash
8196 lyxpipe.out
8197 \end_layout
8198
8199 \begin_layout Standard
8200 \SpecialChar LyX
8201 で指定した\SpecialChar LyX
8202 Serverパイプパスが,
8203 \begin_inset Flex Code
8204 status collapsed
8205
8206 \begin_layout Plain Layout
8207
8208 \backslash
8209
8210 \backslash
8211 .
8212 \backslash
8213 pipe
8214 \backslash
8215 lyxpipe
8216 \end_layout
8217
8218 \end_inset
8219
8220 となっていることを確認するか,
8221 \begin_inset Flex Code
8222 status collapsed
8223
8224 \begin_layout Plain Layout
8225 lyxeditor.bat
8226 \end_layout
8227
8228 \end_inset
8229
8230 ラッパの方を適切に修正してください.
8231 \end_layout
8232
8233 \begin_layout Standard
8234 yapでは,遡及検索はダブルクリックで始動します.
8235 \end_layout
8236
8237 \begin_layout Subsubsection*
8238 SumatraPDF(Windows)
8239 \end_layout
8240
8241 \begin_layout Standard
8242 SumatraPDFを遡及検索で使用するためには,
8243 \begin_inset Flex MenuItem
8244 status collapsed
8245
8246 \begin_layout Plain Layout
8247 設定\SpecialChar menuseparator
8248 ファイル処理\SpecialChar menuseparator
8249 ファイル書式\SpecialChar menuseparator
8250 PDF (pdflatex)
8251 \end_layout
8252
8253 \end_inset
8254
8255 のビューア設定で
8256 \begin_inset Flex Code
8257 status collapsed
8258
8259 \begin_layout Plain Layout
8260 SumatraPDF -inverse-search "lyxeditor.bat "%f" %l"
8261 \end_layout
8262
8263 \end_inset
8264
8265
8266 \begin_inset Flex Code
8267 status collapsed
8268
8269 \begin_layout Plain Layout
8270 lyxeditor.bat
8271 \end_layout
8272
8273 \end_inset
8274
8275 は上記のラッパ)と入力してください.SumatraPDF.exeがコマンドPATHにない場合,フルファイル名を使用してください.
8276 \end_layout
8277
8278 \begin_layout Standard
8279 遡及検索はダブルクリックで始動します.
8280 \end_layout
8281
8282 \begin_layout Subsubsection*
8283 YAP(Cygwin)
8284 \end_layout
8285
8286 \begin_layout Standard
8287 まずはじめに,yapがWindows環境での既定のDVIビューアになっていることを確認してから,yapを起動し,
8288 \begin_inset Flex MenuItem
8289 status collapsed
8290
8291 \begin_layout Plain Layout
8292 View\SpecialChar menuseparator
8293 Options
8294 \end_layout
8295
8296 \end_inset
8297
8298 メニューを選択し,「Inverse DVI Search」タブを選択します.「New\SpecialChar ldots
8299 」ボタンをクリックして開くウィンドウの「Name:」フィールドに「\SpecialChar LyX
8300
8301  Editor」(または自分の好きな名称)と入力してください.「\SpecialChar ldots
8302 」というラベルのボタンをクリックしてファイルダイアログを開き,バッチファイル
8303 \begin_inset Flex Code
8304 status collapsed
8305
8306 \begin_layout Plain Layout
8307 lyxeditor.exe
8308 \end_layout
8309
8310 \end_inset
8311
8312 プログラム(これは,Cygwinでは既定で\SpecialChar LyX
8313 実行ファイルとともに導入されます)のあるディレクトリを見つけます.
8314 \begin_inset Flex Code
8315 status collapsed
8316
8317 \begin_layout Plain Layout
8318 lyxeditor.exe
8319 \end_layout
8320
8321 \end_inset
8322
8323 を選択してプログラムの引数を
8324 \begin_inset Flex Code
8325 status collapsed
8326
8327 \begin_layout Plain Layout
8328 -g %f %l
8329 \end_layout
8330
8331 \end_inset
8332
8333 と指定してください.これによって,\SpecialChar LyX
8334 との通信に
8335 \emph on
8336 lyxsocket
8337 \emph default
8338 が使用されるようになります.何らかの理由で
8339 \emph on
8340 lyxpipe
8341 \emph default
8342 を使用したい場合には,
8343 \begin_inset Flex Code
8344 status collapsed
8345
8346 \begin_layout Plain Layout
8347 -g
8348 \end_layout
8349
8350 \end_inset
8351
8352 オプションを削除して,\SpecialChar LyX
8353 設定で\SpecialChar LyX
8354 Serverパイプパスを指定することを忘れないでください.
8355 \end_layout
8356
8357 \begin_layout Standard
8358 yapでは,遡及検索はダブルクリックで始動します.
8359 \end_layout
8360
8361 \begin_layout Subsubsection*
8362 SumatraPDF(Cygwin)
8363 \end_layout
8364
8365 \begin_layout Standard
8366 SumatraPDFを遡及検索で使用するためには,
8367 \begin_inset Flex MenuItem
8368 status collapsed
8369
8370 \begin_layout Plain Layout
8371 設定\SpecialChar menuseparator
8372 ファイル処理\SpecialChar menuseparator
8373 ファイル書式\SpecialChar menuseparator
8374 PDF (pdflatex)
8375 \end_layout
8376
8377 \end_inset
8378
8379 のビューア設定で
8380 \begin_inset Flex Code
8381 status collapsed
8382
8383 \begin_layout Plain Layout
8384 SumatraPDF.sh
8385 \end_layout
8386
8387 \end_inset
8388
8389 と入力してください.ここで
8390 \begin_inset Flex Code
8391 status collapsed
8392
8393 \begin_layout Plain Layout
8394 SumatraPDF.sh
8395 \end_layout
8396
8397 \end_inset
8398
8399 は以下のようなスクリプトです(お使いのコマンドパスに置きます.
8400 \begin_inset Flex Code
8401 status collapsed
8402
8403 \begin_layout Plain Layout
8404 /usr/local/bin
8405 \end_layout
8406
8407 \end_inset
8408
8409 がもっとも良い選択肢でしょう).
8410 \end_layout
8411
8412 \begin_layout LyX-Code
8413 #!/bin/bash
8414 \begin_inset Newline newline
8415 \end_inset
8416
8417 cd $(dirname $1)
8418 \begin_inset Newline newline
8419 \end_inset
8420
8421 SumatraPDF -inverse-search "lyxeditor -g %f %l" $(basename $1)
8422 \end_layout
8423
8424 \begin_layout Standard
8425 SumatraPDFは,Windowsネイティブのアプリケーションであり,\SpecialChar LyX
8426 のCygwin版が使用するPOSIXパスを理解しないので,このラッパスクリプトが必要と
8427 なります.SumatraPDF.exeがお使いのコマンドパスにない場合は,上記のスクリプトでPOSIXのフルパスを使用してください.
8428 \begin_inset Flex Code
8429 status collapsed
8430
8431 \begin_layout Plain Layout
8432 -g
8433 \end_layout
8434
8435 \end_inset
8436
8437
8438 \emph on
8439 lyxsocket
8440 \emph default
8441 経由の通信を有効にします.ここでも,
8442 \emph on
8443 lyxpipe
8444 \emph default
8445 を使用したい場合には,
8446 \begin_inset Flex Code
8447 status collapsed
8448
8449 \begin_layout Plain Layout
8450 -g
8451 \end_layout
8452
8453 \end_inset
8454
8455 オプションを削除して,\SpecialChar LyX
8456 設定で\SpecialChar LyX
8457 Serverパイプパスを指定することを忘れないでください.
8458 \end_layout
8459
8460 \begin_layout Standard
8461 遡及検索はダブルクリックで始動します.
8462 \end_layout
8463
8464 \begin_layout Section
8465 順検索
8466 \end_layout
8467
8468 \begin_layout Standard
8469 順検索とは,名前が示すとおり,いわば遡及検索の「逆」を意味します.すなわち,\SpecialChar LyX
8470 内部から,ビューアに特定の箇所を表示させることを可能にします.(以下に説明するように
8471 )もし順検索の準備ができていれば,カーソルを\SpecialChar LyX
8472 文書の好きなところに置いて,
8473 \begin_inset Flex MenuItem
8474 status collapsed
8475
8476 \begin_layout Plain Layout
8477 移動\SpecialChar menuseparator
8478 順検索
8479 \end_layout
8480
8481 \end_inset
8482
8483 を選択すると(あるいはマウスの右クリックで表示される文脈依存メニューから
8484 \begin_inset Flex MenuItem
8485 status collapsed
8486
8487 \begin_layout Plain Layout
8488 順検索
8489 \end_layout
8490
8491 \end_inset
8492
8493 を選択してもよい),ビューアも同じ箇所に移動します.もちろん,使用しているビューアが,この機能をサポートしていなくてはなりません.
8494 \end_layout
8495
8496 \begin_layout Standard
8497 順検索を有効にするためには,生成されたPDF/DVI出力ファイルに,\SpecialChar TeX
8498 ソースに関する情報を追加する必要があります.これは,第
8499 \begin_inset CommandInset ref
8500 LatexCommand ref
8501 reference "subsec:遡及検索"
8502
8503 \end_inset
8504
8505 節に述べられている方法で実行することができます.
8506 \end_layout
8507
8508 \begin_layout Standard
8509 次に,
8510 \begin_inset Flex MenuItem
8511 status collapsed
8512
8513 \begin_layout Plain Layout
8514 ツール\SpecialChar menuseparator
8515 設定\SpecialChar menuseparator
8516 出力\SpecialChar menuseparator
8517 一般
8518 \end_layout
8519
8520 \end_inset
8521
8522 で自分の使うビューアを利用するように,\SpecialChar LyX
8523 を設定する必要があります.いくつかのビューアについては,試験済みの設定が前もって準備されており,ドロップダウンリストから選
8524 択することができます.これらの設定の何れも意にそぐわない場合には,ご自身で適切な設定を見つけ出して入力しなくてはなりません.定義文法は,以下の変数を使用します.
8525 \end_layout
8526
8527 \begin_layout Itemize
8528 \begin_inset Flex Code
8529 status collapsed
8530
8531 \begin_layout Plain Layout
8532 $$n
8533 \end_layout
8534
8535 \end_inset
8536
8537 :行番号
8538 \end_layout
8539
8540 \begin_layout Itemize
8541 \begin_inset Flex Code
8542 status collapsed
8543
8544 \begin_layout Plain Layout
8545 $$t
8546 \end_layout
8547
8548 \end_inset
8549
8550 :書き出された(一時).texファイル名(パスを除く)
8551 \end_layout
8552
8553 \begin_layout Itemize
8554 \begin_inset Flex Code
8555 status collapsed
8556
8557 \begin_layout Plain Layout
8558 $$f
8559 \end_layout
8560
8561 \end_inset
8562
8563 :書き出された(一時).texファイル名(パスを含む)
8564 \end_layout
8565
8566 \begin_layout Itemize
8567 \begin_inset Flex Code
8568 status collapsed
8569
8570 \begin_layout Plain Layout
8571 $$o
8572 \end_layout
8573
8574 \end_inset
8575
8576 :書き出された出力ファイル名(どちらが一時ディレクトリに存在するかに依存して,dviあるいはpdf).
8577 \end_layout
8578
8579 \begin_layout Standard
8580 yap・xdvi・okular
8581 \begin_inset Foot
8582 status collapsed
8583
8584 \begin_layout Plain Layout
8585 \begin_inset Flex Noun
8586 status collapsed
8587
8588 \begin_layout Plain Layout
8589 ツール\SpecialChar menuseparator
8590 設定\SpecialChar menuseparator
8591 ファイル処理\SpecialChar menuseparator
8592 ファイル形式
8593 \end_layout
8594
8595 \end_inset
8596
8597
8598 \begin_inset Flex Code
8599 status collapsed
8600
8601 \begin_layout Plain Layout
8602 okular --unique
8603 \end_layout
8604
8605 \end_inset
8606
8607 と設定すると良いでしょう.
8608 \end_layout
8609
8610 \end_inset
8611
8612 ・qpdfview・Sumatra PDF
8613 \begin_inset Foot
8614 status collapsed
8615
8616 \begin_layout Plain Layout
8617 SumatraPDFは,外部プログラムCMCDDE(
8618 \begin_inset CommandInset href
8619 LatexCommand href
8620 target "http://www.istri.fr/spip/zip/CMCDDE.zip"
8621 literal "false"
8622
8623 \end_inset
8624
8625 からダウンロード可能)を通じてDDEコマンドを使用することもできます.
8626 \end_layout
8627
8628 \end_inset
8629
8630 など,一部のビューアでしか,完全な順検索機能は提供されていないことに注意してください
8631 \begin_inset Foot
8632 status collapsed
8633
8634 \begin_layout Plain Layout
8635 SumatraPDFも,外部プログラムCMCDDEを通じて,DDEコマンドを使用することができます.CMCDDEは,
8636 \begin_inset CommandInset href
8637 LatexCommand href
8638 target "http://www.istri.fr/spip/zip/CMCDDE.zip"
8639 literal "false"
8640
8641 \end_inset
8642
8643 からダウンロードすることができます.
8644 \end_layout
8645
8646 \end_inset
8647
8648 .Evince
8649 \begin_inset Foot
8650 status collapsed
8651
8652 \begin_layout Plain Layout
8653 Evinceでの順検索は,サードパーティのヘルパースクリプトを使用すれば,利用可能になります.詳細については,
8654 \begin_inset CommandInset href
8655 LatexCommand href
8656 target "https://wiki.lyx.org/LyX/SyncTeX"
8657 literal "false"
8658
8659 \end_inset
8660
8661 を参照してください.
8662 \end_layout
8663
8664 \end_inset
8665
8666 など他のビューアには,順検索を使用するのに,追加のツールを必要とするものもあります.広く使われているPDFビューアの多く(特にAdobe Reader)は,順検
8667 索を全く提供していませんが,他の一部のビューア(たとえばxpdf)では,少なくとも,文書を読み込み直したり,ファイルの特定ページに移動することはできますので,少
8668 なくとも「近く」には移動することができます.この後者の機能は,synctexの外部コールで提供されています(事前に用意されている用例をご覧ください).
8669 \end_layout
8670
8671 \begin_layout Standard
8672 順検索は,DVI出力とPDF出力の双方で動作します.\SpecialChar LyX
8673 は,過去にあなたが使用したプレビュー形式をチェックして(つまり,一時ディレクトリにどちらの形式が存在するかを
8674 チェックして),その形式に適切な設定を選択します.
8675 \end_layout
8676
8677 \begin_layout Chapter
8678 特別な文書クラス
8679 \end_layout
8680
8681 \begin_layout Section
8682 A&Aの論文
8683 \end_layout
8684
8685 \begin_layout Standard
8686
8687 \noun on
8688 Peter Sütterlin文
8689 \end_layout
8690
8691 \begin_layout Subsection
8692 はじめに
8693 \end_layout
8694
8695 \begin_layout Standard
8696 この節では,文書クラス
8697 \family typewriter
8698 aa.cls
8699 \family default
8700 第5.01版を使用して科学雑誌
8701 \emph on
8702 Astronomy and Astrophysics
8703 \emph default
8704 (『天文学と宇宙物理学』: 
8705 \begin_inset Flex URL
8706 status collapsed
8707
8708 \begin_layout Plain Layout
8709
8710 https://www.aanda.org/
8711 \end_layout
8712
8713 \end_inset
8714
8715 )に投稿する論文を執筆するための\SpecialChar LyX
8716 の使用法を説明します.このパッケージは,FTPサイト
8717 \end_layout
8718
8719 \begin_layout Standard
8720 \align center
8721 \begin_inset VSpace medskip
8722 \end_inset
8723
8724
8725 \begin_inset Flex URL
8726 status collapsed
8727
8728 \begin_layout Plain Layout
8729
8730 ftp://ftp.edpsciences.org/pub/aa/readme.html
8731 \end_layout
8732
8733 \end_inset
8734
8735
8736 \begin_inset VSpace medskip
8737 \end_inset
8738
8739
8740 \end_layout
8741
8742 \begin_layout Standard
8743 \noindent
8744 からダウンロードすることができます.
8745 \end_layout
8746
8747 \begin_layout Standard
8748 このパッケージには取扱説明書がついていますが,本節は,本来の取扱説明書の代わりとなることを意図したものではなく,あなたの論文を正しい様式に整えるための小さな案内
8749 書であるに過ぎません.
8750 \end_layout
8751
8752 \begin_layout Standard
8753 この学術誌の出版元は,2001年1月1日以降,Springer社からEDP Science社に変更されていることにご注意ください.この出版社の変更によって,th
8754 esaurusコマンドの廃止など,スタイルファイルに若干の変更が加わっています.\SpecialChar LyX
8755 のaaクラスは,スタイルファイルの最新版(第5.01版)をサポートしています.もし
8756 古い版が装備されている場合には,更新してください.互換性のために,古い(第4版)レイアウトは,
8757 \family sans
8758 article (A&A V4)
8759 \family default
8760 として残してあります.
8761 \family typewriter
8762 $\SpecialChar LyX
8763 Dir/layouts/aapaper.layout
8764 \family default
8765 のコメントをご参照ください.
8766 \end_layout
8767
8768 \begin_layout Subsection
8769 最初の一歩
8770 \end_layout
8771
8772 \begin_layout Standard
8773 \SpecialChar LyX
8774 とともに頒布されている例示用のひな型を土台として,書き始めることをお勧めします.ひな型を使用しない場合には,以下の設定にしてください.
8775 \end_layout
8776
8777 \begin_layout Itemize
8778
8779 \family sans
8780 文書\SpecialChar menuseparator
8781 設定
8782 \family default
8783 ダイアログで
8784 \family sans
8785 article (A&A)
8786 \family default
8787 を選択してください(まぁ,これは自明ですね).
8788 \end_layout
8789
8790 \begin_layout Itemize
8791
8792 \family sans
8793 ページレイアウト
8794 \family default
8795 オプションは変更しないで,既定値のままに設定しておいてください.全体のレイアウトはマクロが行うので,何も変更してはいけません.
8796 \end_layout
8797
8798 \begin_layout Subsection
8799 へッダ部
8800 \end_layout
8801
8802 \begin_layout Standard
8803 最初に入力すべきものは,へッダ情報です.ヘッダ情報には,以下の7つの項目があり,いくつかは必須ではありません.
8804 \end_layout
8805
8806 \begin_layout Itemize
8807
8808 \family sans
8809 タイトル
8810 \family default
8811 :[必須]
8812 \end_layout
8813
8814 \begin_layout Itemize
8815
8816 \family sans
8817 サブタイトル
8818 \family default
8819 :[非必須]
8820 \end_layout
8821
8822 \begin_layout Itemize
8823
8824 \family sans
8825 著者
8826 \family default
8827 :[必須]
8828 \end_layout
8829
8830 \begin_layout Itemize
8831
8832 \family sans
8833 住所
8834 \family default
8835 :[必須]
8836 \end_layout
8837
8838 \begin_layout Itemize
8839
8840 \family sans
8841 抜き刷り
8842 \family default
8843 :[非必須]著者が複数いる場合,抜き刷りの送付を依頼するのに連絡すべき人を記す.
8844 \end_layout
8845
8846 \begin_layout Itemize
8847
8848 \family sans
8849 メール
8850 \family default
8851 :[非必須]連絡用の電子メールアドレス.
8852 \end_layout
8853
8854 \begin_layout Itemize
8855
8856 \family sans
8857 日付
8858 \family default
8859 :[必須]推奨されるフォーマットは,
8860 \family typewriter
8861 Received: <日付>; Accepted <日付>
8862 \family default
8863 です.
8864 \end_layout
8865
8866 \begin_layout Standard
8867
8868 \family typewriter
8869
8870 \backslash
8871 maketitle
8872 \family default
8873 コマンドは,へッダが終了した場所に,\SpecialChar LyX
8874 が自動的に入れてくれるので,手動で挿入する必要はありません.各項目の順序は関係ありませんが,見た目のためと,実際の文書のレイ
8875 アウトに合わせるために,上記の順序を維持しておくと良いでしょう.
8876 \end_layout
8877
8878 \begin_layout Standard
8879 現住所の付記などのために,へッダ部に脚注を挿入したい場合には,
8880 \family sans
8881 挿入\SpecialChar menuseparator
8882 脚注
8883 \family default
8884 を使用して標準の脚注を挿入してください.この場合には,\SpecialChar LyX
8885 は自動的に
8886 \family typewriter
8887
8888 \backslash
8889 thanks{}
8890 \family default
8891 を使用します.
8892 \end_layout
8893
8894 \begin_layout Standard
8895
8896 \family sans
8897 編集\SpecialChar menuseparator
8898 文字様式
8899 \family default
8900 の下に,タイトル関連の2つの差込枠があります.
8901 \end_layout
8902
8903 \begin_layout Itemize
8904
8905 \family sans
8906 所属機関
8907 \family default
8908 は,対応する著者・所属機関の対を標識するためのものです.所属機関には,
8909 \family sans
8910 住所
8911 \family default
8912 フィールドに現れるのと同じ順序で連番が振られますので,各著者に標識を付けてください.
8913 \end_layout
8914
8915 \begin_layout Itemize
8916
8917 \family sans
8918 電子メール
8919 \family default
8920 は,至急連絡用に電子メールアドレスを付するものです.
8921 \end_layout
8922
8923 \begin_layout Standard
8924 これらのトピックの他に,このマクロは,\SpecialChar LyX
8925 が対応していない,以下のもう一つの\SpecialChar LaTeX
8926 コマンドを使用します.
8927 \end_layout
8928
8929 \begin_layout Itemize
8930 複数の著者名あるいは所属名を区切るための
8931 \family typewriter
8932
8933 \backslash
8934 and
8935 \end_layout
8936
8937 \begin_layout Standard
8938 \SpecialChar LyX
8939 中に対応したコマンドを入力し,\SpecialChar LaTeX
8940 コードとしてマークしてください.用例を参照のこと.
8941 \end_layout
8942
8943 \begin_layout Subsection
8944 概要
8945 \end_layout
8946
8947 \begin_layout Standard
8948 概要は,へッダ部の直後に置きます.第5版から,概要は環境からコマンドに変更され,一段落に限るという制限が加えられました.さらに,ここにはキーワードを含む項目を入
8949 れなくてはなりません.これには,キーワード段落様式を使用してください.用例にある論文を参照してください.
8950 \end_layout
8951
8952 \begin_layout Subsection
8953 サポートされる環境
8954 \end_layout
8955
8956 \begin_layout Standard
8957 A&A論文用レイアウトでは,文章を構造化するために,以下の環境がサポートされています.
8958 \end_layout
8959
8960 \begin_layout Itemize
8961
8962 \family sans
8963 標準
8964 \end_layout
8965
8966 \begin_layout Itemize
8967
8968 \family sans
8969
8970 \end_layout
8971
8972 \begin_layout Itemize
8973
8974 \family sans
8975 小節
8976 \end_layout
8977
8978 \begin_layout Itemize
8979
8980 \family sans
8981 小々節
8982 \end_layout
8983
8984 \begin_layout Itemize
8985
8986 \family sans
8987 箇条書き(記号)
8988 \end_layout
8989
8990 \begin_layout Itemize
8991
8992 \family sans
8993 箇条書き(連番)
8994 \end_layout
8995
8996 \begin_layout Itemize
8997
8998 \family sans
8999 箇条書き(記述)
9000 \end_layout
9001
9002 \begin_layout Itemize
9003
9004 \family sans
9005 キャプション
9006 \end_layout
9007
9008 \begin_layout Itemize
9009
9010 \family sans
9011 概要
9012 \end_layout
9013
9014 \begin_layout Itemize
9015
9016 \family sans
9017 謝辞(Acknowledgment)
9018 \end_layout
9019
9020 \begin_layout Itemize
9021
9022 \family sans
9023 書誌情報
9024 \end_layout
9025
9026 \begin_layout Itemize
9027
9028 \family sans
9029 \SpecialChar LaTeX
9030
9031 \end_layout
9032
9033 \begin_layout Subsection
9034 \SpecialChar LyX
9035 でサポートされていないコマンド
9036 \end_layout
9037
9038 \begin_layout Standard
9039 \SpecialChar LyX
9040
9041 \family sans
9042 articleA&A)
9043 \family default
9044 レイアウトでは,まだサポートされていないコマンドがあります.そのうちいくつかは既に紹介しましたが,網羅するために,以下にすべて列挙しておきます.
9045 \end_layout
9046
9047 \begin_layout Itemize
9048
9049 \family typewriter
9050
9051 \backslash
9052 and
9053 \end_layout
9054
9055 \begin_layout Itemize
9056
9057 \family typewriter
9058
9059 \backslash
9060 authorrunning
9061 \end_layout
9062
9063 \begin_layout Itemize
9064
9065 \family typewriter
9066
9067 \backslash
9068 object{}
9069 \end_layout
9070
9071 \begin_layout Itemize
9072
9073 \family typewriter
9074
9075 \backslash
9076 titlerunning{}
9077 \end_layout
9078
9079 \begin_layout Standard
9080 これらのコマンドのいずれかを使いたい場合には,自分で入力する必要があります.
9081 \series bold
9082 これを\SpecialChar LaTeX
9083 コマンドとしてマークすることを忘れないで下さい.
9084 \end_layout
9085
9086 \begin_layout Subsection
9087 図フロートおよび表フロート
9088 \end_layout
9089
9090 \begin_layout Standard
9091 \SpecialChar LyX
9092 は,必要なフロート環境
9093 \family sans
9094 figure
9095 \family default
9096
9097 \family sans
9098 figure*
9099 \family default
9100
9101 \family sans
9102 table
9103 \family default
9104
9105 \family sans
9106 table*
9107 \family default
9108 をサポートしていますので,ここでは詳しい説明はしません.
9109 \emph on
9110 ユーザーの手引き
9111 \emph default
9112 をご覧ください.ただ,表は左揃えにしなくてはならないことに注意して下さい.そうするためには,表を選択して,
9113 \family sans
9114 編集\SpecialChar menuseparator
9115 段落設定
9116 \family default
9117 で配置を変更してください.
9118 \end_layout
9119
9120 \begin_layout Standard
9121 一つだけ,特別なものがあります.それは,図横にキャプションを配置する図です.この図を作成するには,以下のようにしなくてはなりません.
9122 \end_layout
9123
9124 \begin_layout Enumerate
9125
9126 \family sans
9127 挿入\SpecialChar menuseparator
9128 フロート\SpecialChar menuseparator
9129
9130 \family default
9131 を使って,幅広の図フロートを作成します.それから,図フロートのラベルを右クリックして
9132 \begin_inset Flex MenuItem
9133 status collapsed
9134
9135 \begin_layout Plain Layout
9136 設定\SpecialChar ldots
9137
9138 \end_layout
9139
9140 \end_inset
9141
9142 を選択し,それで開かれる
9143 \family sans
9144 フロートの設定
9145 \family default
9146 ダイアログで
9147 \family sans
9148 段をまたぐ
9149 \family default
9150 を有効にして,
9151 \family sans
9152 OK
9153 \family default
9154 ボタンを押します.
9155 \end_layout
9156
9157 \begin_layout Enumerate
9158 キャプション文を入力します.
9159 \end_layout
9160
9161 \begin_layout Enumerate
9162 キャプションの前にカーソルを移動し,
9163 \family sans
9164 Return
9165 \family default
9166 を押して,カーソルをキャプションの上に移動します.
9167 \end_layout
9168
9169 \begin_layout Enumerate
9170 図を挿入します.
9171 \end_layout
9172
9173 \begin_layout Enumerate
9174 カーソルを図の後ろに置いて,
9175 \family sans
9176 挿入\SpecialChar menuseparator
9177 整形\SpecialChar menuseparator
9178 水平方向の空白
9179 \family default
9180 を選択して
9181 \family sans
9182 水平方向の空白の設定
9183 \family default
9184 ダイアログを開き,
9185 \family sans
9186 空白
9187 \family default
9188 ドロップダウンから
9189 \family sans
9190 水平フィル
9191 \family default
9192 を選択して,水平フィルを挿入します.
9193 \end_layout
9194
9195 \begin_layout Enumerate
9196
9197 \family sans
9198 挿入\SpecialChar menuseparator
9199 TeXコード
9200 \family default
9201 を選択して,\SpecialChar TeX
9202 差込枠を挿入します.
9203 \end_layout
9204
9205 \begin_layout Enumerate
9206 \SpecialChar TeX
9207 差込枠中に
9208 \family typewriter
9209
9210 \backslash
9211 parbox[b]{55mm}{
9212 \family default
9213 と入力します.
9214 \series bold
9215 ここでは波括弧を閉じないでください.
9216 \end_layout
9217
9218 \begin_layout Enumerate
9219 カーソルをキャプション文の後ろに移動し,
9220 \family sans
9221 挿入\SpecialChar menuseparator
9222 TeXコード
9223 \family default
9224 を選択して,別の\SpecialChar TeX
9225 差込枠を挿入し,その中に閉じ括弧を入力します .
9226 \end_layout
9227
9228 \begin_layout Standard
9229 例示用論文中の図もご参照ください.
9230 \end_layout
9231
9232 \begin_layout Subsection
9233 Refereeレイアウト
9234 \end_layout
9235
9236 \begin_layout Standard
9237 投稿用には,論文を特別なダブルスペースレイアウトに整形しなくてはなりません.このためには,文書クラスに
9238 \family typewriter
9239 referee
9240 \family default
9241 オプションを与える必要があります.これは,
9242 \family sans
9243 文書\SpecialChar menuseparator
9244 設定
9245 \family default
9246 ダイアログの
9247 \family sans
9248 任意設定
9249 \family default
9250 クラスオプションフィールドを使って行うことができます.この欄に
9251 \family typewriter
9252 referee
9253 \family default
9254 と云う文字列を入力してください.
9255 \end_layout
9256
9257 \begin_layout Subsection
9258 例示用論文
9259 \end_layout
9260
9261 \begin_layout Standard
9262
9263 \family sans
9264 Examples
9265 \family default
9266 ディレクトリには,\SpecialChar LyX
9267 で書かれた例示用論文が収録されています.これは,元のマクロパッケージの例示用論文を\SpecialChar LyX
9268 用に直したものです.これはヒントを得るために使用したり,元の
9269  \SpecialChar LaTeX
9270 コードと\SpecialChar LyX
9271 での書き方の比較に使ったりしてください.
9272 \end_layout
9273
9274 \begin_layout Section
9275 AAS\SpecialChar TeX
9276
9277 \end_layout
9278
9279 \begin_layout Standard
9280
9281 \noun on
9282 Mike Ressler
9283 \noun default
9284
9285 \end_layout
9286
9287 \begin_layout Subsection
9288 はじめに
9289 \end_layout
9290
9291 \begin_layout Standard
9292 AAS\SpecialChar TeX
9293 は,American Astronomical Society(アメリカ天文学会)が発行するAstrophysical Journal(宇宙物理学雑誌)同
9294 誌のLettersとSupplementを含む)・Astronomical Journal(天文学雑誌)・Publications of the
9295  Astronomical Society of the Pacific(太平洋天文学会誌)三誌への電子投稿を可能にするために,同学会が作成したマクロ集です.\SpecialChar LyX
9296
9297 ,これらの文書を生成する上で,なかでも数式・引用・画像処理能力において,優れたツールであることが認識されています.\SpecialChar LyX
9298 は,同マクロ第5.0版以降を必要としており,でき
9299 ればここで説明されている第6.0版以降が望まれます.第5.0版未満の版は,\SpecialChar LaTeX
9300 2.09で使用するよう企図されているため,根本的に\SpecialChar LyX
9301 とは互換性がありません.AAS\SpecialChar TeX
9302 パッケージは
9303 ,以下のAAS\SpecialChar TeX
9304 ウェブサイトからダウンロードできるでしょう.
9305 \end_layout
9306
9307 \begin_layout Standard
9308 \align center
9309 \begin_inset VSpace medskip
9310 \end_inset
9311
9312
9313 \begin_inset Flex URL
9314 status collapsed
9315
9316 \begin_layout Plain Layout
9317
9318 https://aas.org/aastex/aastex-downloads
9319 \end_layout
9320
9321 \end_inset
9322
9323
9324 \begin_inset VSpace medskip
9325 \end_inset
9326
9327
9328 \end_layout
9329
9330 \begin_layout Standard
9331 パッケージ中には,完備したユーザーの手引きが収録されていますので,\SpecialChar LyX
9332 で論文を書き始める前に,その中身を完全に理解しておく必要があります.\SpecialChar LyX
9333 は,AASTeXの全コマン
9334 ドを理解する必然性をなくすものではなく,すべてを手入力する苦労を減らすだけです.仕上がりの\SpecialChar LaTeX
9335 文書が,論文を投稿しようとしているジャーナルの要求事項に完全に合致して
9336 いることを確認するのは,あなたの責任です.
9337 \end_layout
9338
9339 \begin_layout Subsection
9340 新しい論文を書き始める
9341 \end_layout
9342
9343 \begin_layout Standard
9344 論文を書き始めるには,AAS\SpecialChar TeX
9345 ひな型ファイルを土台に始めることを強くお勧めします.
9346 \begin_inset Flex MenuItem
9347 status collapsed
9348
9349 \begin_layout Plain Layout
9350 ファイル\SpecialChar menuseparator
9351 新規(ひな型使用)
9352 \end_layout
9353
9354 \end_inset
9355
9356 をクリックして,新しいファイル名を入力し,ひな型
9357 \family typewriter
9358 aastex6.lyx
9359 \family default
9360 を選んでください.これには,論文原稿のほとんどに共通して使われるフィールドが書き込まれています.書き込まれている文字列(括弧
9361 \family typewriter
9362 <>
9363 \family default
9364 を含む)を正しい情報で上書きしてください.AAS\SpecialChar TeX
9365 コマンド・AAS\SpecialChar TeX
9366 環境の多くは,\SpecialChar LyX
9367 中で直接実行することができますが,できないものもあります.このようなコマンドは,直
9368 接La\SpecialChar TeX
9369 コードを入力して,それを\SpecialChar TeX
9370 コードとしてマークしなければなりません.このようなコマンドは,\SpecialChar TeX
9371 コードあるいはEvil Red Text(邪悪な赤い文)と呼ばれます
9372 .AAS\SpecialChar TeX
9373 文書に必要とされる \SpecialChar TeX
9374 コードを最小にするようには努力しました.
9375 \end_layout
9376
9377 \begin_layout Subsection
9378 論文を書き終わったら
9379 \end_layout
9380
9381 \begin_layout Standard
9382 論文を満足する水準で書き終え,プレビューや印刷が正しく為されているとしても,まだ学術誌に投稿する前にしなくてはならない「後処理」が残されています.
9383 \end_layout
9384
9385 \begin_layout Enumerate
9386 論文を \SpecialChar LaTeX
9387 ファイルとして書き出します(
9388 \family sans
9389 ファイル\SpecialChar menuseparator
9390 書き出し\SpecialChar menuseparator
9391 LaTeX
9392 \family default
9393 ).
9394 \end_layout
9395
9396 \begin_layout Enumerate
9397 出力した
9398 \family typewriter
9399 .tex
9400 \family default
9401 ファイルを好きなエディタで編集します.
9402 \end_layout
9403
9404 \begin_deeper
9405 \begin_layout Enumerate
9406
9407 \family typewriter
9408
9409 \backslash
9410 documentclass
9411 \family default
9412 コマンドよりも前のコメント行を削除します.
9413 \end_layout
9414
9415 \begin_layout Enumerate
9416
9417 \family typewriter
9418
9419 \backslash
9420 usepackage...{fontenc}
9421 \family default
9422 という行があれば(通常は
9423 \family typewriter
9424
9425 \backslash
9426 documentclass
9427 \family default
9428 の直後にあります)削除します.また,
9429 \family typewriter
9430
9431 \backslash
9432 secnumdepth
9433 \family default
9434 行があれば,これも削除します.
9435 \end_layout
9436
9437 \begin_layout Enumerate
9438 \SpecialChar LaTeX
9439 プリアンブル中に意図的に置いたコマンド(
9440 \family typewriter
9441 .tex
9442 \family default
9443 ファイル中,「User specified \SpecialChar LaTeX
9444  commands」というコメントの直後にあります)を除いて,
9445 \family typewriter
9446
9447 \backslash
9448 makeatletter
9449 \family default
9450
9451 \family typewriter
9452
9453 \backslash
9454 makeatother
9455 \family default
9456 の間のもの(これらのコマンドを含む)をすべて削除します.
9457 \end_layout
9458
9459 \end_deeper
9460 \begin_layout Enumerate
9461 編集後のファイルを \SpecialChar LaTeX
9462 にかけて,正しく処理されることを確認します.
9463 \end_layout
9464
9465 \begin_layout Enumerate
9466 学術誌の要求事項を再読して,ファイル名と書式が正しいことを確認します.
9467 \end_layout
9468
9469 \begin_layout Enumerate
9470 投稿してください.
9471 \end_layout
9472
9473 \begin_layout Subsection
9474 特定のコマンドに関するコメント
9475 \end_layout
9476
9477 \begin_layout Standard
9478 AAS\SpecialChar TeX
9479 ユーザーの手引き(
9480 \family typewriter
9481 aasguide.tex
9482 \family default
9483 )に,各AAS\SpecialChar TeX
9484 コマンドの詳しい説明があるので,ここでは,各コマンドの使用法の詳細な説明は行いません.そこで,ここではユーザーの手引きに現れるとおりに一覧を列挙し
9485 て,必要なところだけコメントを加えることにしましょう.
9486 \end_layout
9487
9488 \begin_layout Subsubsection
9489 期待通りに動作するもの
9490 \end_layout
9491
9492 \begin_layout Standard
9493 これらは期待通りに動作するので,ここでは列挙するだけにして,コマンドの説明されている節を挙げておきます.
9494 \family typewriter
9495
9496 \backslash
9497 documentclass
9498 \family default
9499  (2.1.1)・
9500 \family typewriter
9501
9502 \backslash
9503 begin{document}
9504 \family default
9505  (2.2)・
9506 \family typewriter
9507
9508 \backslash
9509 title
9510 \family default
9511  (2.3)・
9512 \family typewriter
9513
9514 \backslash
9515 author
9516 \family default
9517  (2.3)・
9518 \family typewriter
9519
9520 \backslash
9521 affil
9522 \family default
9523  (2.3)・
9524 \family typewriter
9525
9526 \backslash
9527 abstract
9528 \family default
9529  (2.4)・
9530 \family typewriter
9531
9532 \backslash
9533 keywords
9534 \family default
9535  (2.5)・
9536 \family typewriter
9537
9538 \backslash
9539 section
9540 \family default
9541  (2.7)・
9542 \family typewriter
9543
9544 \backslash
9545 subsection
9546 \family default
9547  (2.7)・
9548 \family typewriter
9549
9550 \backslash
9551 subsubsection
9552 \family default
9553  (2.7)・
9554 \family typewriter
9555
9556 \backslash
9557 paragraph
9558 \family default
9559  (2.7)・
9560 \family typewriter
9561
9562 \backslash
9563 facility
9564 \family default
9565  (2.10)・
9566 \family typewriter
9567
9568 \backslash
9569 begin{displaymath}
9570 \family default
9571  (2.12)・
9572 \family typewriter
9573
9574 \backslash
9575 begin{equation}
9576 \family default
9577  (2.12)・
9578 \family typewriter
9579
9580 \backslash
9581 begin{eqnarray}
9582 \family default
9583  (2.12)・
9584 \family typewriter
9585
9586 \backslash
9587 begin{mathletters}
9588 \family default
9589  (2.12)・
9590 \family typewriter
9591
9592 \backslash
9593 begin{thebibliography}
9594 \family default
9595  (2.13.1)・
9596 \family typewriter
9597
9598 \backslash
9599 bibitem
9600 \family default
9601  (2.13.2)・全引用コマンドとその派生(2.13.2)・一般的なgraphicx図コマンド(2.14.1)・
9602 \family typewriter
9603
9604 \backslash
9605 begin{table}
9606 \family default
9607  (2.15.4)・
9608 \family typewriter
9609
9610 \backslash
9611 begin{tabular}
9612 \family default
9613  (2.15.4)・
9614 \family typewriter
9615
9616 \backslash
9617 caption
9618 \family default
9619  (2.15.4)・
9620 \family typewriter
9621
9622 \backslash
9623 label
9624 \family default
9625  (他にもあるが特に2.15.4)・
9626 \family typewriter
9627
9628 \backslash
9629 tablerefs
9630 \family default
9631  (2.15.5)・
9632 \family typewriter
9633
9634 \backslash
9635 tablecomments
9636 \family default
9637  (2.15.5)・
9638 \family typewriter
9639
9640 \backslash
9641 url
9642 \family default
9643  (2.17.4)・
9644 \family typewriter
9645
9646 \backslash
9647 end{document}
9648 \family default
9649  (2.18).
9650 \end_layout
9651
9652 \begin_layout Standard
9653 以下のスタイルオプションも正しく動作します.
9654 \family typewriter
9655 longabstract
9656 \family default
9657  (2.4)・
9658 \family typewriter
9659 preprint
9660 \family default
9661  (3.2.1)・
9662 \family typewriter
9663 preprint2
9664 \family default
9665  (3.2.2)・
9666 \family typewriter
9667 eqsecnum
9668 \family default
9669  (3.3)・
9670 \family typewriter
9671 flushrt
9672 \family default
9673  (3.4).これらは,
9674 \begin_inset Flex MenuItem
9675 status collapsed
9676
9677 \begin_layout Plain Layout
9678 文書\SpecialChar menuseparator
9679 設定
9680 \end_layout
9681
9682 \end_inset
9683
9684 にある,
9685 \family sans
9686 クラスオプション
9687 \family default
9688
9689 \family sans
9690 任意設定
9691 \family default
9692 ボックスに入力してください.
9693 \end_layout
9694
9695 \begin_layout Subsubsection
9696 動作するが,若干説明が必要なもの
9697 \end_layout
9698
9699 \begin_layout Standard
9700 以下のコマンドは動作しますが,若干の説明が必要です.
9701 \end_layout
9702
9703 \begin_layout Itemize
9704 以下の項目は,学術誌の編集者向けに取ってあるものですが,どうしても必要ならば,\SpecialChar LaTeX
9705 プリアンブルに入れることができます.
9706 \family typewriter
9707
9708 \backslash
9709 received
9710 \family default
9711
9712 \family typewriter
9713
9714 \backslash
9715 revised
9716 \family default
9717
9718 \family typewriter
9719
9720 \backslash
9721 accepted
9722 \family default
9723
9724 \family typewriter
9725
9726 \backslash
9727 ccc
9728 \family default
9729
9730 \family typewriter
9731 cpright
9732 \family default
9733 (すべて 2.1.3).
9734 \end_layout
9735
9736 \begin_layout Itemize
9737 以下の項目は,\SpecialChar LaTeX
9738 のプリアンブルに置くことができるもので,これらは,ひな型ファイルには,空の引数と共に含まれています.
9739 \family typewriter
9740
9741 \backslash
9742 slugcomment
9743 \family default
9744 (2.1.4)・
9745 \family typewriter
9746
9747 \backslash
9748 shorttitle
9749 \family default
9750 (2.1.5)・
9751 \family typewriter
9752
9753 \backslash
9754 shortauthors
9755 \family default
9756 (2.1.5).
9757 \end_layout
9758
9759 \begin_layout Itemize
9760
9761 \family typewriter
9762
9763 \backslash
9764 email
9765 \family default
9766 (2.3)―「単独で」使うことはできますが,段落の途中で使うことはできません.埋め込む必要がある場合には,\SpecialChar TeX
9767 コードを使用してください.
9768 \end_layout
9769
9770 \begin_layout Itemize
9771
9772 \family typewriter
9773
9774 \backslash
9775 and
9776 \family default
9777 (2.3)―後ろに{}が付記されます.これはエラーの原因にはなりません.
9778 \end_layout
9779
9780 \begin_layout Itemize
9781
9782 \family typewriter
9783
9784 \backslash
9785 notetoeditor
9786 \family default
9787 (2.6)―「単独で」使うことはできますが,段落の途中で使うことはできません.埋め込む必要がある場合には,\SpecialChar TeX
9788 コードを使用してください.
9789 \end_layout
9790
9791 \begin_layout Itemize
9792
9793 \family typewriter
9794
9795 \backslash
9796 placetable
9797 \family default
9798 (2.8)―相互参照用タグを挿入することはできません.手動でタグ名を入力する必要があります.
9799 \end_layout
9800
9801 \begin_layout Itemize
9802
9803 \family typewriter
9804
9805 \backslash
9806 placefigure
9807 \family default
9808 (2.8)—
9809 \family typewriter
9810
9811 \backslash
9812 placetable
9813 \family default
9814 と同様.
9815 \end_layout
9816
9817 \begin_layout Itemize
9818
9819 \family typewriter
9820
9821 \backslash
9822 acknowledgements
9823 \family default
9824 (2.9)―後ろに{}が付記されます.これはエラーの原因にはなりません.
9825 \end_layout
9826
9827 \begin_layout Itemize
9828
9829 \family typewriter
9830
9831 \backslash
9832 appendix
9833 \family default
9834 (2.11)―後ろに{}が付記されます.これはエラーの原因にはなりません.
9835 \end_layout
9836
9837 \begin_layout Itemize
9838
9839 \family typewriter
9840
9841 \backslash
9842 figcaption
9843 \family default
9844 (2.14.2)―文章のはじめにカーソルを置いて
9845 \begin_inset Flex MenuItem
9846 status collapsed
9847
9848 \begin_layout Plain Layout
9849 挿入\SpecialChar menuseparator
9850 短縮タイトル
9851 \end_layout
9852
9853 \end_inset
9854
9855 を選択すれば,非必須のファイル名引数を挿入することができます.「短縮タイトル」とありますが,
9856 \family typewriter
9857
9858 \backslash
9859 figcaption
9860 \family default
9861 が必要とする型の非必須引数を挿入します.望むらくはいつの日か改名されることでしょう.
9862 \end_layout
9863
9864 \begin_layout Itemize
9865
9866 \family typewriter
9867
9868 \backslash
9869 objectname
9870 \family default
9871 (2.17.1)―非必須パラメータとしてカタログIDを取る以外は,
9872 \family typewriter
9873
9874 \backslash
9875 figcaption
9876 \family default
9877 と同様.
9878 \end_layout
9879
9880 \begin_layout Itemize
9881
9882 \family typewriter
9883
9884 \backslash
9885 dataset
9886 \family default
9887 (2.17.1)―非必須パラメータとしてカタログIDを取る以外は,
9888 \family typewriter
9889
9890 \backslash
9891 figcaption
9892 \family default
9893 と同様.
9894 \end_layout
9895
9896 \begin_layout Subsubsection
9897 実装されていないため,\SpecialChar TeX
9898 コードを使用するもの
9899 \end_layout
9900
9901 \begin_layout Standard
9902
9903 \family typewriter
9904
9905 \backslash
9906 eqnum
9907 \family default
9908 (2.12)・
9909 \family typewriter
9910
9911 \backslash
9912 setcounter{equation}
9913 \family default
9914 (2.12)・学術誌名略語(2.12.4)・
9915 \family typewriter
9916
9917 \backslash
9918 figurenum
9919 \family default
9920 (2.14.1)・
9921 \family typewriter
9922
9923 \backslash
9924 epsscale
9925 \family default
9926 (2.14.1)・
9927 \family typewriter
9928
9929 \backslash
9930 plotone
9931 \family default
9932 (2.14.1)・
9933 \family typewriter
9934
9935 \backslash
9936 plottwo
9937 \family default
9938 (2.14.1)・
9939 \family typewriter
9940
9941 \backslash
9942 tablenum
9943 \family default
9944 (2.15.4)・
9945 \family typewriter
9946
9947 \backslash
9948 tableline
9949 \family default
9950 (2.15.4:入れたい場所の後ろに,左側セルの最初の要素として挿入する.表中では,\SpecialChar LyX
9951 の方法は使わないでください)・
9952 \family typewriter
9953
9954 \backslash
9955 tablenotemark
9956 \family default
9957 (2.15.5)・
9958 \family typewriter
9959
9960 \backslash
9961 tablenotetext
9962 \family default
9963 (2.15.5)・補遺(2.17)の大半
9964 \family typewriter
9965
9966 \backslash
9967 objectname
9968 \family default
9969
9970 \family typewriter
9971
9972 \backslash
9973 dataset
9974 \family default
9975
9976 \family typewriter
9977
9978 \backslash
9979 url
9980 \family default
9981
9982 \family typewriter
9983
9984 \backslash
9985 email
9986 \family default
9987 を除く.上記参照)・
9988 \family typewriter
9989
9990 \backslash
9991 singlespace
9992 \family default
9993 (3.1)・
9994 \family typewriter
9995
9996 \backslash
9997 doublespace
9998 \family default
9999 (3.1)・
10000 \family typewriter
10001
10002 \backslash
10003 onecolumn
10004 \family default
10005 (3.2)・
10006 \family typewriter
10007
10008 \backslash
10009 twocolumn
10010 \family default
10011 (3.2)
10012 \end_layout
10013
10014 \begin_layout Subsubsection
10015 実装できないもの
10016 \end_layout
10017
10018 \begin_layout Standard
10019 references(2.12.3)環境とdeluxetable(2.14)環境は,少なくとも意味のあるような形で実装することができないので,無視してください.もし,
10020 絶対に,どうしても,deluxetableを使う必要があるならば,テキストエディタで別ファイルとして編集し,
10021 \begin_inset Flex MenuItem
10022 status collapsed
10023
10024 \begin_layout Plain Layout
10025 挿入\SpecialChar menuseparator
10026 ファイル
10027 \begin_inset Formula $\text{\textipa{}}$
10028 \end_inset
10029
10030 \SpecialChar menuseparator
10031 子文書
10032 \end_layout
10033
10034 \end_inset
10035
10036 を使用して,\SpecialChar LyX
10037 ファイルに読み込むことを推奨します.この実例は,
10038 \family typewriter
10039 aas_sample.lyx
10040 \family default
10041 ファイルをご参照ください.
10042 \end_layout
10043
10044 \begin_layout Subsection
10045 FAQとヒントと技とその他の考察
10046 \end_layout
10047
10048 \begin_layout Subsubsection
10049 \SpecialChar LyX
10050 をAAS\SpecialChar TeX
10051 と協調させる
10052 \end_layout
10053
10054 \begin_layout Standard
10055 \SpecialChar LyX
10056 に,新しいレイアウトと文書クラスを認識させるには若干コツが要ります.もしうまく行かなかったら,次のようにしてみてください.
10057 \end_layout
10058
10059 \begin_layout Enumerate
10060 \SpecialChar LaTeX
10061 が,AAS\SpecialChar TeX
10062 を検出できることを確認してください.AAS\SpecialChar TeX
10063 頒布版に含まれる
10064 \family typewriter
10065 sample.tex
10066 \family default
10067 (あるいは
10068 \family typewriter
10069 table.tex
10070 \family default
10071 でも可)を,\SpecialChar LaTeX
10072 やAAS\SpecialChar TeX
10073 とまったく関係のないディレクトリにコピーして,
10074 \family typewriter
10075 sample.tex
10076 \family default
10077 を\SpecialChar LaTeX
10078 にかけてください.
10079 \end_layout
10080
10081 \begin_layout Enumerate
10082
10083 \family typewriter
10084 aastex.layout
10085 \family default
10086 が,\SpecialChar LyX
10087
10088 \family typewriter
10089 layouts
10090 \family default
10091 フォルダにあることを確認してください.
10092 \end_layout
10093
10094 \begin_layout Enumerate
10095 \SpecialChar LyX
10096 中から
10097 \family sans
10098 ツール\SpecialChar menuseparator
10099 環境構成
10100 \family default
10101 を再度実行し,\SpecialChar LyX
10102 を再起動してください.
10103 \end_layout
10104
10105 \begin_layout Enumerate
10106 ひな型ではなく,通常の新規ファイルを開いてください.AAS\SpecialChar TeX
10107 が,
10108 \family sans
10109 文書\SpecialChar menuseparator
10110 設定
10111 \family default
10112 のクラス一覧に表示されていますか?
10113 \end_layout
10114
10115 \begin_layout Standard
10116 既存のAAS\SpecialChar TeX
10117 文書を処理する際に,AAS\SpecialChar TeX
10118 レイアウトを見つけられないとか,「タイトルレイアウトと通常のレイアウトを混在させないでください」といった警告が出るようであ
10119 れば,正しい導入が行われていません.
10120 \end_layout
10121
10122 \begin_layout Subsubsection
10123 表を処理する際の\SpecialChar LaTeX
10124 エラー
10125 \end_layout
10126
10127 \begin_layout Standard
10128 既定では,\SpecialChar LyX
10129 は,表のキャプションやタイトルを中央揃えにしようと試みます.これはAAS\SpecialChar TeX
10130 と悪い相互干渉を発生させるようですので,キャプションやタイトルのどこかをクリッ
10131 クして,
10132 \family sans
10133 編集\SpecialChar menuseparator
10134 段落設定
10135 \family default
10136 を選択し,
10137 \family sans
10138 配置
10139 \family default
10140
10141 \family sans
10142 両端揃え
10143 \family default
10144 に設定してください.私のところではこれで解決しました.
10145 \end_layout
10146
10147 \begin_layout Subsubsection
10148 書誌情報
10149 \end_layout
10150
10151 \begin_layout Standard
10152 若干の注意があります.(1)文献項目の本文中の空白取りが少しおかしくなることがあるようです.書誌情報を入力する際には,最後の著者と,著作年を入れる括弧の間にスペ
10153 ースを
10154 \emph on
10155 入れない
10156 \emph default
10157 ようにしてください.たとえば,
10158 \family typewriter
10159 Ressler(1992)
10160 \family default
10161 はいいですが,
10162 \family typewriter
10163 Ressler (1992)
10164 \family default
10165 ではだめです.(2)書誌情報の入力の仕方は,必ずしも自明ではありません.もっとも簡単な方法は,文書の最後に,最初の書誌情報をまず書き込み,それを
10166 \family sans
10167 書誌情報
10168 \family default
10169 環境としてマークすることです.すると,入力したものの前に,小さな灰色のボックスが現れます.このボックスをクリックして,残りの情報を入力してください.新しい書誌情
10170 報を追加するには,既存の書誌情報の後ろでリターンを押します.すると,新しいボックスの付いた新規行が出てくるので,後は同様にしてください.
10171 \end_layout
10172
10173 \begin_layout Subsubsection
10174 EPSファイルの読み込み
10175 \end_layout
10176
10177 \begin_layout Standard
10178 AAS\SpecialChar TeX
10179 には,自前の図関連コマンド(たとえば
10180 \family typewriter
10181
10182 \backslash
10183 plotone
10184 \family default
10185 )がありますが,私は(既定のgraphicxを使った)\SpecialChar LaTeX
10186 の標準図コマンドの方がずっと好きです.望めば,図フロートボックスに,\SpecialChar TeX
10187 コードで
10188 \family typewriter
10189
10190 \backslash
10191 plotone
10192 \family default
10193 等のコマンドを挿入することはできますが,私には正しいレイアウトを得ることができた試しがありません.標準の画像コマンドを使えば,\SpecialChar LyX
10194 は,
10195 \family typewriter
10196
10197 \backslash
10198 usepackage{graphics}
10199 \family default
10200 コマンドを\SpecialChar LaTeX
10201 プリアンブルに挿入し,図を\SpecialChar LaTeX2e
10202 の標準的な方法で取り扱って,文章の中にちりばめます.現在,ApJは,ちょうどこのようにして作成した図を受け入れていますが,A
10203 Jはまだ「すべてを末尾に積み上げる」方法を使用しているかもしれません.
10204 \end_layout
10205
10206 \begin_layout Subsubsection
10207 可能だったが,実装しなかったもの
10208 \end_layout
10209
10210 \begin_layout Standard
10211 「素敵な」ものの中には,実装することも可能だったけれども,あえて実装しなかったものがあります.たとえば,紙の原稿ではダブルスペースであったとしても,\SpecialChar LyX
10212 ウィンドウ中
10213 で,文章をダブルスペースにする意味はないと考えました.また,preprint様式とpreprint2様式を,独立したレイアウトにすることもしませんでした.いずれ
10214 にしても,執筆時間のほとんどを,平の原稿モードで使うのがほとんどですから,これらの機能でディスクスペースを消費しないことにしました.
10215 \end_layout
10216
10217 \begin_layout Subsection
10218 最後に
10219 \end_layout
10220
10221 \begin_layout Standard
10222 これまでに進んできた道のりは,長い人も短い人もいることでしょう.私には,ApJとAJに発表した論文がありますが,その努力の98
10223 \begin_inset space \thinspace{}
10224 \end_inset
10225
10226 %は\SpecialChar LyX
10227 上で為されました.残りの2
10228 \begin_inset space \thinspace{}
10229 \end_inset
10230
10231 %が,\SpecialChar LaTeX
10232 での後処理と若干の後片付けです.投稿の過程では何のトラブルもなく,これらの学術誌が通常の投稿原稿と違う点に気づくことはなかったでしょう.ですから,がんばっ
10233 て発表してください!
10234 \end_layout
10235
10236 \begin_layout Section
10237 AMS \SpecialChar LaTeX
10238
10239 \end_layout
10240
10241 \begin_layout Standard
10242
10243 \noun on
10244 David Johnson
10245 \noun default
10246 文 
10247 \noun on
10248 Richard Kimberly Heck
10249 \noun default
10250 改訂
10251 \begin_inset VSpace bigskip
10252 \end_inset
10253
10254
10255 \end_layout
10256
10257 \begin_layout Standard
10258 AMS \SpecialChar LaTeX
10259 レイアウトは,American Mathematical Society(アメリカ数学会)の刊行物に投稿する数学論文用のスタイルです.レイアウトは,特定
10260 の学術誌向けに仕立てられてはいませんが,簡単にそうすることができます.各学術誌毎の指示については,AMSの説明書をご参照ください(通常は,\SpecialChar TeX
10261 出力中の一行を変更する
10262 必要があるだけです).AMSの説明書は,ウェブWeb上の
10263 \begin_inset Flex URL
10264 status open
10265
10266 \begin_layout Plain Layout
10267
10268 http://www.ams.org
10269 \end_layout
10270
10271 \end_inset
10272
10273 か,FTPで
10274 \begin_inset Flex URL
10275 status open
10276
10277 \begin_layout Plain Layout
10278
10279 ftp://ftp.ams.org/pub/tex/amslatex/
10280 \end_layout
10281
10282 \end_inset
10283
10284 から入手することができます.これらのレイアウトは,数学的な文章を書くのであれば,どんなときでも適切かつ有用であるはずです.
10285 \end_layout
10286
10287 \begin_layout Standard
10288 基本となるAMS \SpecialChar LaTeX
10289 レイアウトには,以下の二つがあります.
10290 \end_layout
10291
10292 \begin_layout Itemize
10293 amsart:標準のAMS article書式.
10294 \end_layout
10295
10296 \begin_layout Itemize
10297 amsbook:標準のAMS book(実際はモノグラフ)書式.
10298 \end_layout
10299
10300 \begin_layout Standard
10301 これらのレイアウトには,それ自身では,AMSクラスを使用するのに必要最低限のものしか含まれていません.特に,定理や補題などを設定するのに使用される「theore
10302 m」環境は,何一つ含まれていません.これらは,代わりに
10303 \begin_inset Flex Code
10304 status collapsed
10305
10306 \begin_layout Plain Layout
10307 定理(AMS)
10308 \end_layout
10309
10310 \end_inset
10311
10312 モジュールに収録されており,AMSクラスのいずれかを選択すると,このモジュールが既定で読み込まれるようになっています(これは別のクラスでも使用することができ,別
10313 のものに変えたいときは取り除くこともできます).少し使用頻度の低いものとしては,
10314 \begin_inset Flex Code
10315 status collapsed
10316
10317 \begin_layout Plain Layout
10318 定理(AMS拡張)
10319 \end_layout
10320
10321 \end_inset
10322
10323 モジュールがあり,これは手動で読み込む必要があります.
10324 \end_layout
10325
10326 \begin_layout Standard
10327 既定では,定理類は,文書を通して連番が振られますが,これは
10328 \begin_inset Flex Code
10329 status collapsed
10330
10331 \begin_layout Plain Layout
10332 定理(節毎連番)
10333 \end_layout
10334
10335 \end_inset
10336
10337 モジュールを読み込めば変更することができ,
10338 \begin_inset Flex Code
10339 status collapsed
10340
10341 \begin_layout Plain Layout
10342 book (AMS)
10343 \end_layout
10344
10345 \end_inset
10346
10347 を使用している場合には
10348 \begin_inset Flex Code
10349 status collapsed
10350
10351 \begin_layout Plain Layout
10352 定理(章毎連番)
10353 \end_layout
10354
10355 \end_inset
10356
10357 を用いても変更することができます.これらを用いると,出力は
10358 \begin_inset Formula $n.m$
10359 \end_inset
10360
10361 のようになり,最初の数字は節番号(または章番号),次の数字はそれまで同節内(章内)に現れた出力の全数を表します.大半の環境は,連番なしでも用いることができます.
10362 連番なしのものは,環境名の後ろにアスタリスクを付けたもので表されます.連番なしの出力
10363 \emph on
10364 のみ
10365 \emph default
10366 が欲しい場合には,
10367 \begin_inset Flex Code
10368 status collapsed
10369
10370 \begin_layout Plain Layout
10371 定理(連番なし)
10372 \end_layout
10373
10374 \end_inset
10375
10376 モジュールを用います.
10377 \end_layout
10378
10379 \begin_layout Standard
10380 これらのモジュールは,AMSクラスで使用する
10381 \emph on
10382 必要はない
10383 \emph default
10384 ことに注意してください.
10385 \begin_inset Flex Code
10386 status collapsed
10387
10388 \begin_layout Plain Layout
10389 定理(AMS)
10390 \end_layout
10391
10392 \end_inset
10393
10394 モジュールや上述の他のモジュールは,他のクラス,たとえば
10395 \begin_inset Flex Code
10396 status collapsed
10397
10398 \begin_layout Plain Layout
10399 article
10400 \end_layout
10401
10402 \end_inset
10403
10404
10405 \begin_inset Flex Code
10406 status collapsed
10407
10408 \begin_layout Plain Layout
10409 report
10410 \end_layout
10411
10412 \end_inset
10413
10414
10415 \begin_inset Flex Code
10416 status collapsed
10417
10418 \begin_layout Plain Layout
10419 book (KOMA-script)
10420 \end_layout
10421
10422 \end_inset
10423
10424 などで問題なく使用することができます.
10425 \end_layout
10426
10427 \begin_layout Subsection
10428 これらのレイアウトが提供するもの
10429 \end_layout
10430
10431 \begin_layout Standard
10432 これらのレイアウトが提供している環境を列挙すると,長い一覧となります.AMS-\SpecialChar LaTeX
10433 では,実のところ,「theorem」環境の派生型を際限なく定義していくことが可能で
10434 す.しかし,AMSは,\SpecialChar LyX
10435 で利用可能になっている環境のみを使用することを推奨しています.
10436 \end_layout
10437
10438 \begin_layout Standard
10439 \begin_inset Flex Code
10440 status collapsed
10441
10442 \begin_layout Plain Layout
10443 article (AMS)
10444 \end_layout
10445
10446 \end_inset
10447
10448
10449 \begin_inset Flex Code
10450 status collapsed
10451
10452 \begin_layout Plain Layout
10453 book (AMS)
10454 \end_layout
10455
10456 \end_inset
10457
10458 には,——
10459 \begin_inset space ~
10460 \end_inset
10461
10462
10463 \begin_inset Flex Noun
10464 status collapsed
10465
10466 \begin_layout Plain Layout
10467
10468 \end_layout
10469
10470 \end_inset
10471
10472
10473 \begin_inset Flex Noun
10474 status collapsed
10475
10476 \begin_layout Plain Layout
10477 書誌情報
10478 \end_layout
10479
10480 \end_inset
10481
10482
10483 \begin_inset Flex Noun
10484 status collapsed
10485
10486 \begin_layout Plain Layout
10487 タイトル
10488 \end_layout
10489
10490 \end_inset
10491
10492
10493 \begin_inset Flex Noun
10494 status collapsed
10495
10496 \begin_layout Plain Layout
10497 著者
10498 \end_layout
10499
10500 \end_inset
10501
10502
10503 \begin_inset Flex Noun
10504 status collapsed
10505
10506 \begin_layout Plain Layout
10507 日付
10508 \end_layout
10509
10510 \end_inset
10511
10512 のような標準環境の他に
10513 \begin_inset space ~
10514 \end_inset
10515
10516 ——
10517 \begin_inset space ~
10518 \end_inset
10519
10520 以下の環境があります.
10521 \end_layout
10522
10523 \begin_layout Description
10524 住所 これは著者の恒久的な住所です.
10525 \end_layout
10526
10527 \begin_layout Description
10528 現在の住所 住所と別に指定されているときには,著者の投稿時の仮初めの住所です.
10529 \end_layout
10530
10531 \begin_layout Description
10532 電子メール 著者の電子メールアドレス
10533 \end_layout
10534
10535 \begin_layout Description
10536 URL 著者のウェブアドレス.任意.
10537 \end_layout
10538
10539 \begin_layout Description
10540 キーワード 論文中で論じられているトピックを識別するためのキーワードやキーフレーズ.
10541 \end_layout
10542
10543 \begin_layout Description
10544 分野分類 
10545 \emph on
10546 Mathematical Reviews
10547 \emph default
10548 に説明が公表されているAMS Subject Classificationsの分類番号を指します.上述したAMSのウェブサイトでも,オンラインで見ることができま
10549 す.
10550 \end_layout
10551
10552 \begin_layout Description
10553 謝辞
10554 \end_layout
10555
10556 \begin_layout Description
10557 献呈
10558 \end_layout
10559
10560 \begin_layout Description
10561 翻訳者
10562 \end_layout
10563
10564 \begin_layout Standard
10565 以下の環境は,
10566 \begin_inset Flex Code
10567 status collapsed
10568
10569 \begin_layout Plain Layout
10570 定理
10571 \end_layout
10572
10573 \end_inset
10574
10575 モジュールと
10576 \begin_inset Flex Code
10577 status collapsed
10578
10579 \begin_layout Plain Layout
10580 定理(AMS)
10581 \end_layout
10582
10583 \end_inset
10584
10585 モジュールの両方で提供され,後者の場合には,星付き(連番なし)版と星なし(連番)版の両方が提供されます.
10586 \begin_inset Flex Code
10587 status collapsed
10588
10589 \begin_layout Plain Layout
10590 定理(連番なし)
10591 \end_layout
10592
10593 \end_inset
10594
10595 モジュールでは,同環境の星付き版だけが提供されます.
10596 \end_layout
10597
10598 \begin_layout Theorem
10599 これは,通常,得られた主要な結果を叙述するのに使用されます.
10600 \end_layout
10601
10602 \begin_layout Corollary*
10603 これは直前の叙述から比較的直接に導き出せる結果を叙述するのに使います.これも主要な結果であることがあります.
10604 \end_layout
10605
10606 \begin_layout Lemma
10607 他の叙述を証明するために必要とされる,比較的小さな結果です.
10608 \end_layout
10609
10610 \begin_layout Proposition
10611 議論されている一般的な理論に(希望的には)何かを付け加えるような,主要ではない結果です.
10612 \end_layout
10613
10614 \begin_layout Conjecture
10615 正当化を与えずに述べられた叙述で,著者には証明法がわからないけれども,正しいと(少なくとも著者にとっては)思われるものです.
10616 \end_layout
10617
10618 \begin_layout Definition*
10619 これは自明でしょう.この環境のフォントは,前述の環境とは異なるフォントが使用されます.
10620 \end_layout
10621
10622 \begin_layout Problem
10623 これが何を指すかは必ずしも特定されていません.ご自分で解明してください.
10624 \end_layout
10625
10626 \begin_layout Exercise*
10627 この環境の説明を記述せよ.
10628 \end_layout
10629
10630 \begin_layout Note
10631 この環境もtheorem型,通常は重要性の低い所見に用いられます.
10632 \end_layout
10633
10634 \begin_layout Claim*
10635 より大きな結果の証明を与える途中で,しばしば用いられます.
10636 \end_layout
10637
10638 \begin_layout Case
10639 一般的に,これらはある条件の特定の場合を取り上げて,長い議論を区切るのに用いられます.
10640 \end_layout
10641
10642 \begin_layout Case
10643 ケースの連番の枠組みは,それ自身で独立していて,他の連番の叙述とは区別されます.
10644 \end_layout
10645
10646 \begin_layout Proof
10647 この環境の最後には,証了記号(通常は四角ですがスタイルによって変わります)が置かれます.この環境の中に別の環境を入れたい——たとえばケース環境など——場合で,証
10648 了記号は証明環境の終わりにのみ現れるようにしたい場合には,他の環境は証明環境の中に入れ子にしなくてはなりません.入れ子に関する情報については,
10649 \emph on
10650 ユーザーの手引き
10651 \emph default
10652
10653 \emph on
10654 環境を入れ子にする
10655 \emph default
10656 の節をご覧ください.
10657 \end_layout
10658
10659 \begin_layout Standard
10660 そして,以下は
10661 \begin_inset Flex Code
10662 status collapsed
10663
10664 \begin_layout Plain Layout
10665 定理(AMS拡張)
10666 \end_layout
10667
10668 \end_inset
10669
10670 で提供されるものです.
10671 \end_layout
10672
10673 \begin_layout Criterion*
10674 必要とされる条件です.
10675 \end_layout
10676
10677 \begin_layout Algorithm*
10678 使用する一般的手順です.
10679 \end_layout
10680
10681 \begin_layout Axiom*
10682 議論されている系内部で真と仮定される性質や命題です.
10683 \end_layout
10684
10685 \begin_layout Condition*
10686 議論の現在の文脈で仮定されている条件を述べるのに,よく用いられます.
10687 \end_layout
10688
10689 \begin_layout Note*
10690 注記と同様です.
10691 \end_layout
10692
10693 \begin_layout Notation*
10694 表記法の説明に用いられます.
10695 \end_layout
10696
10697 \begin_layout Summary
10698 本当に説明する必要がありますか?
10699 \end_layout
10700
10701 \begin_layout Acknowledgement*
10702 謝辞(acknowledgement)です.
10703 \end_layout
10704
10705 \begin_layout Conclusion*
10706 長い議論の終わりに時々用いられます.
10707 \end_layout
10708
10709 \begin_layout Fact
10710 命題と同様の用いられ方をしますが,だいたい長くないものに使われるようです.
10711 \end_layout
10712
10713 \begin_layout Standard
10714 さらに,AMSクラスは,AMS \SpecialChar LaTeX
10715 パッケージとAMSフォントパッケージを自動的に提供します.これらの環境を使用するためには,お使いのシステム上で利用可能となってい
10716 る必要があります.
10717 \end_layout
10718
10719 \begin_layout Section
10720 Broadway
10721 \end_layout
10722
10723 \begin_layout Standard
10724
10725 \noun on
10726 Garst Reese
10727 \noun default
10728
10729 \end_layout
10730
10731 \begin_layout Subsection
10732 はじめに
10733 \end_layout
10734
10735 \begin_layout Standard
10736 Broadwayは演劇を書くためのものです.書式はHollywoodよりも装飾的で,それほど標準化されていません.この書式はワークショップに向いているでしょう.
10737 \end_layout
10738
10739 \begin_layout Subsection
10740 特別な問題
10741 \end_layout
10742
10743 \begin_layout Standard
10744 Hollywoodと同様です.
10745 \end_layout
10746
10747 \begin_layout Subsection
10748 特別の機能
10749 \end_layout
10750
10751 \begin_layout Standard
10752
10753 \family sans
10754 話者
10755 \family default
10756 の名前をラベルとして挿入し,名前を挿入する際には,このラベルを相互参照してください.相互参照ダイアログには,登場人物の現在の配役が表示されます.
10757 \end_layout
10758
10759 \begin_layout Subsection
10760 用紙寸法と余白
10761 \end_layout
10762
10763 \begin_layout Standard
10764 USレター寸法で,余白は左1.6インチ,右0.75インチ,上0.5インチ,下0.75インチです.
10765 \end_layout
10766
10767 \begin_layout Subsection
10768 環境
10769 \end_layout
10770
10771 \begin_layout Standard
10772 以下の環境を使うことができます.右に記してある
10773 \begin_inset Flex Ruby
10774 status collapsed
10775
10776 \begin_layout Plain Layout
10777
10778 \begin_inset Argument post:1
10779 status collapsed
10780
10781 \begin_layout Plain Layout
10782 キー
10783 \end_layout
10784
10785 \end_inset
10786
10787
10788 \end_layout
10789
10790 \end_inset
10791
10792 割当ては,broadway.bindを使った場合のものです.
10793 \end_layout
10794
10795 \begin_layout Itemize
10796
10797 \family sans
10798 標準
10799 \begin_inset Newline newline
10800 \end_inset
10801
10802
10803 \family default
10804 これは使わなくていいはずですが,他の環境が当てはまらない場合のためにここに挙げておきます.
10805 \end_layout
10806
10807 \begin_layout Itemize
10808
10809 \family sans
10810 ト書き
10811 \begin_inset space \hfill{}
10812 \end_inset
10813
10814 M-z n
10815 \begin_inset Newline newline
10816 \end_inset
10817
10818
10819 \family default
10820 舞台設定と動作の説明に用います.最初に話者名をすべて大文字で書いておきます.
10821 \end_layout
10822
10823 \begin_layout Itemize
10824
10825 \family sans
10826
10827 \begin_inset space \hfill{}
10828 \end_inset
10829
10830 M-z a
10831 \begin_inset Newline newline
10832 \end_inset
10833
10834
10835 \family default
10836 自動的に連番が振られます.連番は,画面上ではアラビア数字ですが,出力ではローマ数字です.
10837 \end_layout
10838
10839 \begin_layout Itemize
10840
10841 \family sans
10842 幕*
10843 \begin_inset space \hfill{}
10844 \end_inset
10845
10846 M-z S at
10847 \begin_inset Newline newline
10848 \end_inset
10849
10850
10851 \family default
10852 幕の副題です.単に中央揃えの文になります.
10853 \end_layout
10854
10855 \begin_layout Itemize
10856
10857 \family sans
10858 場面
10859 \begin_inset space \hfill{}
10860 \end_inset
10861
10862 M-z S-S
10863 \begin_inset Newline newline
10864 \end_inset
10865
10866
10867 \family default
10868 自動的に連番は振られませんので,手動で番号を付けてください.これは私がどうすればいいか分からなかったためです.
10869 \end_layout
10870
10871 \begin_layout Itemize
10872
10873 \family sans
10874 幕開きに:
10875 \begin_inset space \hfill{}
10876 \end_inset
10877
10878 M-z S-R
10879 \begin_inset Newline newline
10880 \end_inset
10881
10882
10883 \family default
10884 ト書きの特殊な場合で,カーテンが上がるときの舞台設定と動作を説明します.
10885 \end_layout
10886
10887 \begin_layout Itemize
10888
10889 \family sans
10890 話者
10891 \begin_inset space \hfill{}
10892 \end_inset
10893
10894 M-z s
10895 \begin_inset Newline newline
10896 \end_inset
10897
10898
10899 \family default
10900 話者(役者)の配役です.すべて大文字で中央揃えに置かれます.
10901 \end_layout
10902
10903 \begin_layout Itemize
10904
10905 \family sans
10906 括弧付き
10907 \begin_inset space \hfill{}
10908 \end_inset
10909
10910 M-z p
10911 \begin_inset Newline newline
10912 \end_inset
10913
10914
10915 \family default
10916 話者への指示です.括弧は自動的に挿入されます.画面上には左括弧(のみが表示されますが,印字出力には両方の括弧が表示されます.この環境は,
10917 \family sans
10918 対話
10919 \family default
10920 の中だけで使用されます. 
10921 \end_layout
10922
10923 \begin_layout Itemize
10924
10925 \family sans
10926 対話
10927 \begin_inset space \hfill{}
10928 \end_inset
10929
10930 M-z d
10931 \begin_inset Newline newline
10932 \end_inset
10933
10934
10935 \family default
10936 話者の言う内容.
10937 \end_layout
10938
10939 \begin_layout Itemize
10940
10941 \family sans
10942 幕切れ
10943 \begin_inset space \hfill{}
10944 \end_inset
10945
10946 M-z S-C
10947 \begin_inset Newline newline
10948 \end_inset
10949
10950
10951 \family default
10952 幕が降ります.
10953 \end_layout
10954
10955 \begin_layout Itemize
10956
10957 \family sans
10958 タイトル
10959 \begin_inset space \hfill{}
10960 \end_inset
10961
10962 M-z S-T
10963 \end_layout
10964
10965 \begin_layout Itemize
10966
10967 \family sans
10968 著者
10969 \begin_inset space \hfill{}
10970 \end_inset
10971
10972 M-z S-A
10973 \end_layout
10974
10975 \begin_layout Itemize
10976
10977 \family sans
10978 右寄せ住所
10979 \begin_inset space \hfill{}
10980 \end_inset
10981
10982 M-z r
10983 \end_layout
10984
10985 \begin_layout Section
10986 Dinbrief
10987 \end_layout
10988
10989 \begin_layout Standard
10990 文書クラス
10991 \family sans
10992 dinbrief
10993 \family default
10994 は,ドイツの慣習に則った書簡の組版を行うのに用いられます.ひな型ファイルが
10995 \family typewriter
10996 .../lyx/share/templates
10997 \family default
10998 にあるので,それを土台として使用してください.
10999 \end_layout
11000
11001 \begin_layout Section
11002 Elsevier各誌
11003 \end_layout
11004
11005 \begin_layout Standard
11006 \SpecialChar LyX
11007 ひな型ファイルの
11008 \family typewriter
11009 elsarticle.lyx
11010 \family default
11011 を参照してください.必要な情報は全てそこにあります.
11012 \end_layout
11013
11014 \begin_layout Section
11015 Foils別名Foil\SpecialChar TeX
11016
11017 \begin_inset CommandInset label
11018 LatexCommand label
11019 name "sec:foiltex"
11020
11021 \end_inset
11022
11023
11024 \end_layout
11025
11026 \begin_layout Standard
11027
11028 \noun on
11029 Allan Rae
11030 \noun default
11031
11032 \end_layout
11033
11034 \begin_layout Subsection
11035 はじめに
11036 \end_layout
11037
11038 \begin_layout Standard
11039 本節では,プレゼンテーション用のスライドを作るための,\SpecialChar LyX
11040 の使用法を解説します.スライドを作ることのできる文書クラスには,slides・Foil\SpecialChar TeX
11041 ・seminar・b
11042 eamer・powerdotといったクラスがありますが,本節では,そのうちslidesの解説を行います.
11043 \end_layout
11044
11045 \begin_layout Standard
11046 誤解のないように,わかりやすく明確に,もう一度言っておきます.
11047 \end_layout
11048
11049 \begin_layout Standard
11050 \begin_inset VSpace bigskip
11051 \end_inset
11052
11053
11054 \end_layout
11055
11056 \begin_layout Standard
11057 \align center
11058
11059 \size large
11060 本節は「
11061 \family sans
11062 FoilTeX
11063 \family default
11064 」クラス
11065 \emph on
11066 のみの
11067 \emph default
11068 解説を行います.
11069 \end_layout
11070
11071 \begin_layout Standard
11072 \begin_inset VSpace bigskip
11073 \end_inset
11074
11075
11076 \end_layout
11077
11078 \begin_layout Standard
11079
11080 \family sans
11081 transparencies (slides)
11082 \family default
11083 」の解説をお探しであれば,第
11084 \begin_inset CommandInset ref
11085 LatexCommand ref
11086 reference "sec:slitex"
11087
11088 \end_inset
11089
11090 節をご覧ください.お使いのコンピュータに
11091 \family sans
11092 foils
11093 \family default
11094 クラス
11095 \family sans
11096 FoilTeX
11097 \family default
11098 が導入されていなければ,
11099 \family sans
11100 foils
11101 \family default
11102 ほど良くはありませんが,おそらく
11103 \family sans
11104 slides
11105 \family default
11106 クラスを使わざるをえないでしょう.
11107 \end_layout
11108
11109 \begin_layout Standard
11110
11111 \family sans
11112 foils
11113 \family default
11114 クラスは,\SpecialChar LaTeX2e
11115 の一部として含まれている\SpecialChar LaTeX
11116 クラスファイル
11117 \family sans
11118 foils.cls
11119 \family default
11120 の第2.1版とともに使われるように設計されています.
11121 \end_layout
11122
11123 \begin_layout Subsection
11124 最初の一歩
11125 \end_layout
11126
11127 \begin_layout Standard
11128 いうまでもなく,この文書クラスを使うには,
11129 \family sans
11130 文書\SpecialChar menuseparator
11131 設定\SpecialChar menuseparator
11132 文書クラス
11133 \family default
11134 メニューの
11135 \family sans
11136 文書クラス
11137 \family default
11138 ドロップダウンで「
11139 \family sans
11140 FoilTeX
11141 \family default
11142 」を選択する必要があります.また,
11143 \family sans
11144 文書設定
11145 \family default
11146 ダイアログ中には,以下のように,このクラスに特有の設定がいくつかあることを知っておかなくてはなりません.
11147 \end_layout
11148
11149 \begin_layout Itemize
11150
11151 \family sans
11152 文書設定
11153 \family default
11154 ダイアログ中の,
11155 \family sans
11156 両面文書
11157 \family default
11158 オプションと
11159 \family sans
11160 二段組文書
11161 \family default
11162 オプションは変更しないでください.これらは 
11163 \family sans
11164 foils
11165 \family default
11166 クラスでは無視されます.
11167 \end_layout
11168
11169 \begin_layout Itemize
11170 既定のフォント寸法は20ptであり,17
11171 \begin_inset space \thinspace{}
11172 \end_inset
11173
11174 pt・25
11175 \begin_inset space \thinspace{}
11176 \end_inset
11177
11178 pt・30
11179 \begin_inset space \thinspace{}
11180 \end_inset
11181
11182 ptを選択することも可能です.
11183 \end_layout
11184
11185 \begin_layout Itemize
11186 既定のフォントは
11187 \family sans
11188 sans
11189 \family default
11190  
11191 \family sans
11192 serif
11193 \family default
11194 ですが,数式ではすべて,通常のローマン体が使用されます.
11195 \end_layout
11196
11197 \begin_layout Itemize
11198 Foil\SpecialChar TeX
11199 は,35
11200 \begin_inset space \thinspace{}
11201 \end_inset
11202
11203 mmスライド用の特殊寸法の他,A4とレター大の用紙寸法をサポートします.A5・B5・リーガル・エグゼクティブ大の用紙寸法はサポートしていません.
11204 \end_layout
11205
11206 \begin_layout Itemize
11207
11208 \family sans
11209 フロートの配置
11210 \family default
11211 の設定は無視されますので,わざわざ変更する必要はありません.フロートはすべて,本文中で定義された位置に表示されます.
11212 \end_layout
11213
11214 \begin_layout Itemize
11215 このクラスの
11216 \family sans
11217 ページレイアウト
11218 \family default
11219 の設定は,若干異なった挙動を示します.Foil\SpecialChar TeX
11220 では,ユーザ定義のロゴをはじめ,フッタとへッダに広範な設定ができます.詳細については第
11221 \begin_inset CommandInset ref
11222 LatexCommand ref
11223 reference "sec:foilfoot"
11224
11225 \end_inset
11226
11227 節をご覧ください.タイトルページは,文書中の他のページとは異なった取扱がなされ,ページ番号は
11228 \emph on
11229 つねに
11230 \emph default
11231 付けられず,(ロゴが定義されていれば)ロゴは,
11232 \emph on
11233 つねに
11234 \emph default
11235 ページ下部中央に表示されます.使用できるページ様式とその挙動は,以下の通りです.
11236 \end_layout
11237
11238 \begin_deeper
11239 \begin_layout Labeling
11240 \labelwidthstring MMMMMMM
11241
11242 \family sans
11243 \series bold
11244 empty
11245 \family default
11246 \series default
11247  最終出力には,ページ番号をはじめ,へッダ・フッタが出力されません(もちろん脚注は除きます).
11248 \end_layout
11249
11250 \begin_layout Labeling
11251 \labelwidthstring MMMMMMM
11252
11253 \family sans
11254 \series bold
11255 plain
11256 \family default
11257 \series default
11258  最終出力には,ページ番号がページ下部の中央に出力されますが,他のへッダ・フッタは出力されません(脚注除く).
11259 \end_layout
11260
11261 \begin_layout Labeling
11262 \labelwidthstring MMMMMMM
11263
11264 \series bold
11265 foilheadings
11266 \series default
11267  ページ番号が右下隅に出力されます.追記したへッダ・フッタも出力されます.これが既定値です.
11268 \end_layout
11269
11270 \begin_layout Labeling
11271 \labelwidthstring MMMMMMM
11272
11273 \series bold
11274 fancy
11275 \series default
11276  これは
11277 \family sans
11278 fancyheadings
11279 \family default
11280 パッケージを使えるようにします.ただし,Foil\SpecialChar TeX
11281 パッケージの作者は,ページレイアウトが崩れる可能性があるので,これを使用することは勧めないと言及しています.
11282 \end_layout
11283
11284 \end_deeper
11285 \begin_layout Subsubsection
11286 任意設定クラスオプション
11287 \end_layout
11288
11289 \begin_layout Standard
11290 以下のオプションは
11291 \family sans
11292 文書設定
11293 \family default
11294 ダイアログの任意設定クラスオプションボックスで使うことができます.
11295 \end_layout
11296
11297 \begin_layout Labeling
11298 \labelwidthstring MMMMMMx
11299
11300 \series bold
11301 35mmSlide
11302 \series default
11303  これは,ページレイアウトを縦7.33インチ横11インチに設定します.これは35
11304 \begin_inset space \space{}
11305 \end_inset
11306
11307 mmスライドの縦横比にほぼ等しく,このメディアを作る作業が若干易しくなります.
11308 \end_layout
11309
11310 \begin_layout Labeling
11311 \labelwidthstring MMMMMMx
11312
11313 \series bold
11314 headrule
11315 \series default
11316  タイトルページを除くすべてのページのへッダの下に罫線を入れます.
11317 \end_layout
11318
11319 \begin_layout Labeling
11320 \labelwidthstring MMMMMMx
11321
11322 \series bold
11323 footrule
11324 \series default
11325  タイトルページを除くすべてのページのフッタの上に罫線を入れます.
11326 \end_layout
11327
11328 \begin_layout Labeling
11329 \labelwidthstring MMMMMMx
11330
11331 \series bold
11332 dvips
11333 \series default
11334  これは,新規
11335 \family sans
11336 foils
11337 \family default
11338 文書を作成する度に自動的に設定されます.このオプションは,横向きに設定されたページを回転させるのに,dvipsドライバを使うようFoil\SpecialChar TeX
11339 に指示します.
11340 \end_layout
11341
11342 \begin_layout Labeling
11343 \labelwidthstring MMMMMMx
11344
11345 \series bold
11346 landscape
11347 \series default
11348  このオプションは,用紙寸法を横向きページ大に変更するだけで,回転は行いません.したがって,このオプションを使う場合は,各ページを回転させる外部プログラムを使用
11349 する,プリンタに用紙を横向きに給紙する必要があります.また,このオプションは,
11350 \family sans
11351 Foilhead
11352 \family default
11353 環境と
11354 \family sans
11355 Rotatefoilhead
11356 \family default
11357 環境の役割を逆転させることに注意してください(これらの環境については次節で説明します).
11358 \end_layout
11359
11360 \begin_layout Labeling
11361 \labelwidthstring MMMMMMx
11362
11363 \series bold
11364 leqno
11365 \series default
11366  数式番号を左側に付けます.
11367 \end_layout
11368
11369 \begin_layout Labeling
11370 \labelwidthstring MMMMMMx
11371
11372 \series bold
11373 fleqn
11374 \series default
11375  数式を左揃えにします.
11376 \end_layout
11377
11378 \begin_layout Subsection
11379 サポートされる環境
11380 \end_layout
11381
11382 \begin_layout Standard
11383 他のクラスで標準的にサポートされている環境は,
11384 \family sans
11385 foils
11386 \family default
11387 クラスでもサポートされています.それ以外に,Foil\SpecialChar TeX
11388 が提供している環境と,\SpecialChar LyX
11389 が付け加えた環境があります.以下の環境は,他のクラスと共通の環境です.
11390 \end_layout
11391
11392 \begin_layout Standard
11393
11394 \family sans
11395 \begin_inset Flex Multiple Columns
11396 status open
11397
11398 \begin_layout Itemize
11399
11400 \family sans
11401 標準
11402 \end_layout
11403
11404 \begin_layout Itemize
11405
11406 \family sans
11407 箇条書き(記号)
11408 \end_layout
11409
11410 \begin_layout Itemize
11411
11412 \family sans
11413 箇条書き(連番)
11414 \end_layout
11415
11416 \begin_layout Itemize
11417
11418 \family sans
11419 箇条書き(記述)
11420 \end_layout
11421
11422 \begin_layout Itemize
11423
11424 \family sans
11425 箇条書き(リスト)
11426 \end_layout
11427
11428 \begin_layout Itemize
11429
11430 \family sans
11431 \SpecialChar LyX
11432 コード
11433 \end_layout
11434
11435 \begin_layout Itemize
11436
11437 \family sans
11438 詩句
11439 \end_layout
11440
11441 \begin_layout Itemize
11442
11443 \family sans
11444 引用(字下げあり)
11445 \end_layout
11446
11447 \begin_layout Itemize
11448
11449 \family sans
11450 引用(字下げなし)
11451 \end_layout
11452
11453 \begin_layout Itemize
11454
11455 \family sans
11456 タイトル
11457 \end_layout
11458
11459 \begin_layout Itemize
11460
11461 \family sans
11462 著者
11463 \end_layout
11464
11465 \begin_layout Itemize
11466
11467 \family sans
11468 日付
11469 \end_layout
11470
11471 \begin_layout Itemize
11472
11473 \family sans
11474 概要
11475 \end_layout
11476
11477 \begin_layout Itemize
11478
11479 \family sans
11480 書誌情報
11481 \end_layout
11482
11483 \begin_layout Itemize
11484
11485 \family sans
11486 住所
11487 \end_layout
11488
11489 \begin_layout Itemize
11490
11491 \family sans
11492 右寄せ住所
11493 \end_layout
11494
11495 \end_inset
11496
11497
11498 \end_layout
11499
11500 \begin_layout Standard
11501 つまり,節区切りを除けば,主な環境のすべてです.一枚のスライドは,基本的にタイトルと本文を備えた自己完結した節なので,
11502 \family sans
11503 Foil
11504 \family default
11505 \SpecialChar TeX
11506 は新しいスライドを始める以下のようなコマンドを備えています.
11507 \end_layout
11508
11509 \begin_layout Itemize
11510
11511 \family sans
11512 スライドタイトル(Foilhead)
11513 \end_layout
11514
11515 \begin_layout Itemize
11516
11517 \family sans
11518 横置きスライドタイトル(Rotatefoilhead)
11519 \end_layout
11520
11521 \begin_layout Standard
11522 \SpecialChar LyX
11523 は,以下のような,これらを若干修正した環境も用意しています.
11524 \end_layout
11525
11526 \begin_layout Itemize
11527
11528 \family sans
11529 スライドタイトル(小)(ShortFoilhead)
11530 \end_layout
11531
11532 \begin_layout Itemize
11533
11534 \family sans
11535 横置きスライドタイトル(小)(ShortRotatefoilhead)
11536 \end_layout
11537
11538 \begin_layout Standard
11539 これらの違いは次節で説明します.
11540 \end_layout
11541
11542 \begin_layout Standard
11543 スライドは,アイデアを説明したり,新しい定理を説明したりするのにしばしば使われるので,
11544 \family sans
11545 Foil
11546 \family default
11547 \SpecialChar TeX
11548 はそれらを説明するのに便利な環境を幅広く用意しています.
11549 \end_layout
11550
11551 \begin_layout Standard
11552
11553 \family sans
11554 \begin_inset Flex Multiple Columns
11555 status open
11556
11557 \begin_layout Itemize
11558
11559 \family sans
11560 定理
11561 \end_layout
11562
11563 \begin_layout Itemize
11564
11565 \family sans
11566 補題
11567 \end_layout
11568
11569 \begin_layout Itemize
11570
11571 \family sans
11572
11573 \end_layout
11574
11575 \begin_layout Itemize
11576
11577 \family sans
11578 命題
11579 \end_layout
11580
11581 \begin_layout Itemize
11582
11583 \family sans
11584 定義
11585 \end_layout
11586
11587 \begin_layout Itemize
11588
11589 \family sans
11590 証明
11591 \end_layout
11592
11593 \begin_layout Itemize
11594
11595 \family sans
11596 定理*
11597 \end_layout
11598
11599 \begin_layout Itemize
11600
11601 \family sans
11602 補題*
11603 \end_layout
11604
11605 \begin_layout Itemize
11606
11607 \family sans
11608 系*
11609 \end_layout
11610
11611 \begin_layout Itemize
11612
11613 \family sans
11614 命題*
11615 \end_layout
11616
11617 \begin_layout Itemize
11618
11619 \family sans
11620 定義*
11621 \end_layout
11622
11623 \end_inset
11624
11625
11626 \end_layout
11627
11628 \begin_layout Standard
11629 星付き版は連番が振られず,星なし版は連番が振られます.他に,\SpecialChar LyX
11630 で追加された以下の2つの箇条書き環境があります.
11631 \end_layout
11632
11633 \begin_layout Itemize
11634
11635 \family sans
11636 箇条書き(チック)
11637 \end_layout
11638
11639 \begin_layout Itemize
11640
11641 \family sans
11642 箇条書き(クロス)
11643 \end_layout
11644
11645 \begin_layout Standard
11646 Foil\SpecialChar TeX
11647 には,強力なヘッダ機能とフッタ機能があり,これらはプリアンブルで設定するのが最良ですが,文章中のどこでも設定することができます.もし文書中でこれらの設定
11648 を変更したい場合には,スライドの一番上,foilheadの直後で行うのが良いでしょう.
11649 \end_layout
11650
11651 \begin_layout Standard
11652 この目的のためには,以下のコマンドスタイルがあります(
11653 \shape smallcaps
11654 Martin Vermeer).
11655 \end_layout
11656
11657 \begin_layout Standard
11658 \begin_inset Flex Multiple Columns
11659 status open
11660
11661 \begin_layout Itemize
11662
11663 \family sans
11664 グラフィックスロゴ
11665 \end_layout
11666
11667 \begin_layout Itemize
11668
11669 \family sans
11670 配布制限
11671 \end_layout
11672
11673 \begin_layout Itemize
11674
11675 \family sans
11676 右フッタ
11677 \end_layout
11678
11679 \begin_layout Itemize
11680
11681 \family sans
11682 右ヘッダ
11683 \end_layout
11684
11685 \begin_layout Itemize
11686
11687 \family sans
11688 左ヘッダ
11689 \end_layout
11690
11691 \begin_deeper
11692 \begin_layout Plain Layout
11693 \begin_inset space ~
11694 \end_inset
11695
11696
11697 \end_layout
11698
11699 \end_deeper
11700 \end_inset
11701
11702
11703 \end_layout
11704
11705 \begin_layout Standard
11706 Foil\SpecialChar TeX
11707 が提供しているコマンドで,\SpecialChar LyX
11708 が直接サポートしていないコマンドもありますが,これらの説明と使い方については,第
11709 \begin_inset CommandInset ref
11710 LatexCommand ref
11711 reference "sec:unsuppfoils"
11712
11713 \end_inset
11714
11715 節で行います.
11716 \end_layout
11717
11718 \begin_layout Subsection
11719 スライドの組を作る
11720 \end_layout
11721
11722 \begin_layout Standard
11723 この節は,様々な環境を使ってスライドの組を作る方法を簡単に紹介します.スライド組の例をご覧になりたい場合は,\SpecialChar LyX
11724
11725 \family typewriter
11726 examples
11727 \family default
11728 フォルダにある
11729 \family typewriter
11730 Foils.lyx
11731 \family default
11732 ファイルをご覧ください.
11733 \end_layout
11734
11735 \begin_layout Subsubsection
11736 タイトルページを作る
11737 \end_layout
11738
11739 \begin_layout Standard
11740
11741 \family sans
11742 タイトル
11743 \family default
11744
11745 \family sans
11746 著者
11747 \family default
11748
11749 \family sans
11750 日付
11751 \family default
11752
11753 \family sans
11754 概要
11755 \family default
11756 環境のある他のクラスとは異なり,
11757 \family sans
11758 foils
11759 \family default
11760 は独立したページにタイトルを作成します.
11761 \family sans
11762 日付
11763 \family default
11764 環境を使用しなかった場合には,\SpecialChar LaTeX
11765 は(出力を生成し直したときにはいつも)その時点の日付を挿入します.
11766 \end_layout
11767
11768 \begin_layout Subsubsection
11769 新しいスライドを開始する
11770 \end_layout
11771
11772 \begin_layout Standard
11773 前述のように,新しいスライドを開始するには,4つの方法があります.縦向きのスライドを開始するには,
11774 \family sans
11775 スライドタイトル(Foilhead)
11776 \family default
11777
11778 \family sans
11779 スライドタイトル(小)(ShortFoilhead)
11780 \family default
11781 を使用します.両環境の違いは,スライドタイトル(foilhead)とスライド本文の間の余白の違いです.
11782 \end_layout
11783
11784 \begin_layout Standard
11785 横向きのスライドは,
11786 \family sans
11787 横向きスライドタイトル(Rotatefoilhead)
11788 \family default
11789 か横向きスライドタイトル(小)(
11790 \family sans
11791 ShortRotatefoilhead)
11792 \family default
11793 環境を使用して生成します.ここでも両環境の違いは,タイトルと本文の間の余白のみです.どちらの場合も,(小)と記された版は,タイトルと本文の間の余白が,0.5インチ
11794 (約1.27cm)小さくなります.
11795 \end_layout
11796
11797 \begin_layout Standard
11798 横向きのスライドをサポートする際,一つ問題となるのは,スライドを回転させようと思うと,PostScript出力を生成するのに
11799 \family typewriter
11800 dvips
11801 \family default
11802 ドライバを使用することを要求してしまうことです.もしスライドをプリンタに横に給紙することができれば,
11803 \family typewriter
11804 dvips
11805 \family default
11806 ドライバを持っていなくても,横向きのスライドをつくることができます ;-)
11807 \end_layout
11808
11809 \begin_layout Subsubsection
11810 定理・補題・証明など
11811 \end_layout
11812
11813 \begin_layout Standard
11814 これらの環境の同じ型をお互いに直接続けて置くことはできません.通常の段落開業を用いると,2つの環境をマージしたかのように,前の環境が延長されるだけです.そうでは
11815 なく,いわゆる分離線を挿入する必要があります.
11816 \emph on
11817 ユーザーの手引き
11818 \emph default
11819 の「
11820 \emph on
11821 入れ子の分離
11822 \emph default
11823 」の節を参照してください.
11824 \end_layout
11825
11826 \begin_layout Subsubsection
11827 箇条書き
11828 \end_layout
11829
11830 \begin_layout Standard
11831 他のクラスでも共通にサポートされている箇条書き様式すべてに加えて,二つの新しい様式を使用することができます.ここでは,その新しい様式のみを説明することにします.
11832 他の箇条書き環境について詳しく知りたい場合には,
11833 \emph on
11834 ユーザーの手引き
11835 \emph default
11836 をご覧ください.記号による箇条書きを使用したい場合には,上記第
11837 \begin_inset CommandInset ref
11838 LatexCommand ref
11839 reference "sec:ブリット"
11840
11841 \end_inset
11842
11843 節の
11844 \family sans
11845 箇条書き(記号)ブリットの指定
11846 \family default
11847 の節も,読まれることが望ましいでしょう.
11848 \end_layout
11849
11850 \begin_layout Standard
11851
11852 \family sans
11853 箇条書き(チック)
11854 \family default
11855
11856 \family sans
11857 箇条書き(クロス)
11858 \family default
11859 の二つの新しい様式は,チェック印や
11860 \begin_inset Formula $\times$
11861 \end_inset
11862
11863 印を箇条書きのラベルに使用する専用の環境を提供することで,予定一覧や正誤一覧を作りやすくするように設計されたものです.これらの箇条書きは,
11864 \family sans
11865 箇条書き(記号)
11866 \family default
11867 の派生型を専用に用意したものに過ぎません.ただし,これらは,
11868 \family typewriter
11869 psnfss
11870 \family default
11871 パッケージが導入済であることを要求します.
11872 \end_layout
11873
11874 \begin_layout Subsubsection
11875 図と表
11876 \end_layout
11877
11878 \begin_layout Standard
11879 Foil\SpecialChar TeX
11880 では,図表フロートは,本文中の挿入箇所にこれらが正確に表示されるように再定義されており,ページの上部やユーザー指定場所に押しのけたりはしないようになって
11881 います.たとえフロート配置の設定に変更を加えたとしても,単に無視されます.
11882 \end_layout
11883
11884 \begin_layout Subsubsection
11885 ページヘッダおよびページフッタ
11886 \begin_inset CommandInset label
11887 LatexCommand label
11888 name "sec:foilfoot"
11889
11890 \end_inset
11891
11892
11893 \end_layout
11894
11895 \begin_layout Standard
11896
11897 \family sans
11898 グラフィックスロゴ
11899 \family default
11900
11901 \family sans
11902 配布制限
11903 \family default
11904 の二つは,左フッタ文を制御するものです.前者は,グラフィックスのロゴをスライドに入れるためのもので,既定値は「-Typeset by 
11905 \family sans
11906 Foil
11907 \family default
11908 \SpecialChar TeX
11909 -」となっています.後者は,「機密事項」などのように,聴衆に秘密区分を提示することを意図しています.既定値では,何も設定されていません.
11910 \end_layout
11911
11912 \begin_layout Standard
11913 スライドの残り三隅には,
11914 \family sans
11915 右フッタ
11916 \family default
11917 (既定ではページ番号)・
11918 \family sans
11919 右ヘッダ
11920 \family default
11921 (右上)・
11922 \family sans
11923 左ヘッダ
11924 \family default
11925 (左上)を使って文字を入れることができます.
11926 \end_layout
11927
11928 \begin_layout Subsection
11929 サポートされない 
11930 \family sans
11931 Foil
11932 \family default
11933 \SpecialChar TeX
11934 機能
11935 \begin_inset CommandInset label
11936 LatexCommand label
11937 name "sec:unsuppfoils"
11938
11939 \end_inset
11940
11941
11942 \end_layout
11943
11944 \begin_layout Standard
11945 以下で言及されているコマンドは,
11946 \family sans
11947 \SpecialChar LaTeX
11948
11949 \family default
11950 環境内で設定されるか,他の環境中の
11951 \family sans
11952 \SpecialChar TeX
11953 コード
11954 \family default
11955 として設定される必要があります.
11956 \end_layout
11957
11958 \begin_layout Subsubsection
11959 長さ
11960 \end_layout
11961
11962 \begin_layout Standard
11963 長さは,すべて
11964 \family typewriter
11965
11966 \backslash
11967 setlength{
11968 \family default
11969 \emph on
11970 長さ名
11971 \family typewriter
11972 \emph default
11973 }{
11974 \family default
11975 \emph on
11976 新規長さ
11977 \family typewriter
11978 \emph default
11979 }
11980 \family default
11981 コマンドで調節されます.ここで
11982 \emph on
11983 長さ名
11984 \emph default
11985 は,変更したい長さに付けられている名前で置き換え,
11986 \emph on
11987 新規長さ
11988 \emph default
11989 は,その長さの値で置き換えます.長さはすべて,インチ(in)・ミリメートル(mm)・ポイント(pt)のような長さ単位か,
11990 \family typewriter
11991
11992 \backslash
11993 textwidth
11994 \family default
11995 のように文書比あるいはフォント基準の長さで指定する必要があります.
11996 \end_layout
11997
11998 \begin_layout Standard
11999
12000 \family typewriter
12001
12002 \backslash
12003 foilheadskip
12004 \family default
12005 で指定される長さを調節することによって,スライドタイトルとスライド本文の間の余白を変更することができます.たとえば,スライドタイトルをすべて0.5
12006 \begin_inset space \space{}
12007 \end_inset
12008
12009 inだけスライド本文に近づけるには,プリアンブルに
12010 \family typewriter
12011
12012 \backslash
12013 setlength{
12014 \backslash
12015 foilheadskip}{-0.5in}
12016 \family default
12017 と書き込みます.
12018 \end_layout
12019
12020 \begin_layout Standard
12021 フロート周囲の余白は,以下の長さを設定することで調整することができます.
12022 \end_layout
12023
12024 \begin_layout Labeling
12025 \labelwidthstring MMMMMMMMMMM
12026
12027 \family typewriter
12028
12029 \backslash
12030 abovefloatskip
12031 \family default
12032  本文とフロート上辺との間隔
12033 \end_layout
12034
12035 \begin_layout Labeling
12036 \labelwidthstring MMMMMMMMMMM
12037
12038 \family typewriter
12039
12040 \backslash
12041 abovecaptionskip
12042 \family default
12043  フロートとキャプションとの間隔
12044 \end_layout
12045
12046 \begin_layout Labeling
12047 \labelwidthstring MMMMMMMMMMM
12048
12049 \family typewriter
12050
12051 \backslash
12052 belowcaptionskip
12053 \family default
12054  キャプションとそれに続く本文との間隔
12055 \end_layout
12056
12057 \begin_layout Labeling
12058 \labelwidthstring MMMMMMMMMMM
12059
12060 \family typewriter
12061
12062 \backslash
12063 captionwidth
12064 \family default
12065  この長さを調整することでキャプションを,周囲の本文より短くすることができます.
12066 \family typewriter
12067
12068 \backslash
12069 textwidth
12070 \family default
12071 に対する相対的な長さで調整するのが最も良いでしょう.
12072 \end_layout
12073
12074 \begin_layout Standard
12075 以下のようなタイトルページ関連の長さもあり,タイトルが長い場合や,著者が複数いる場合に使うと便利かもしれません.
12076 \end_layout
12077
12078 \begin_layout Labeling
12079 \labelwidthstring MMMMMMMMMMM
12080
12081 \family typewriter
12082
12083 \backslash
12084 abovetitleskip
12085 \family default
12086  へッダとタイトルとの間隔
12087 \end_layout
12088
12089 \begin_layout Labeling
12090 \labelwidthstring MMMMMMMMMMM
12091
12092 \family typewriter
12093
12094 \backslash
12095 titleauthorskip
12096 \family default
12097  
12098 \family sans
12099 タイトル
12100 \family default
12101 環境と
12102 \family sans
12103 著者
12104 \family default
12105 環境との間隔
12106 \end_layout
12107
12108 \begin_layout Labeling
12109 \labelwidthstring MMMMMMMMMMM
12110
12111 \family typewriter
12112
12113 \backslash
12114 authorauthorskip
12115 \family default
12116  著者が複数いる場合の
12117 \family sans
12118 著者
12119 \family default
12120 行の間隔
12121 \end_layout
12122
12123 \begin_layout Labeling
12124 \labelwidthstring MMMMMMMMMMM
12125
12126 \family typewriter
12127
12128 \backslash
12129 authordateskip
12130 \family default
12131  
12132 \family sans
12133 著者
12134 \family default
12135
12136 \family sans
12137 日付
12138 \family default
12139 との間隔
12140 \end_layout
12141
12142 \begin_layout Labeling
12143 \labelwidthstring MMMMMMMMMMM
12144
12145 \family typewriter
12146
12147 \backslash
12148 dateabstractskip
12149 \family default
12150  
12151 \family sans
12152 日付
12153 \family default
12154
12155 \family sans
12156 概要
12157 \family default
12158 との間隔
12159 \end_layout
12160
12161 \begin_layout Standard
12162 最後に紹介する長さ関連コマンドは,箇条書き環境すべてに使用できるものです.
12163 \family typewriter
12164
12165 \backslash
12166 zerolistvertdimens
12167 \family default
12168 を箇条書き環境の内側に置くと,項目間の垂直余白がすべて取り除かれます.これは長さではなくコマンドなので,上述のもののように
12169 \family typewriter
12170
12171 \backslash
12172 setlength
12173 \family default
12174 を使う必要がないことに注意してください.
12175 \end_layout
12176
12177 \begin_layout Subsubsection
12178 へッダとフッタ
12179 \end_layout
12180
12181 \begin_layout Standard
12182
12183 \family typewriter
12184
12185 \backslash
12186 LogoOn
12187 \family default
12188 および
12189 \family typewriter
12190
12191 \backslash
12192 LogoOff
12193 \family default
12194 は,
12195 \family typewriter
12196 MyLogo
12197 \family default
12198 で定義したロゴを特定のページに入れるかどうかを制御します.
12199 \family typewriter
12200
12201 \backslash
12202 LogoOff
12203 \family default
12204 をプリアンブルに入れると,全スライドからロゴが取り除かれます.特定のスライドにのみロゴを付けたくない場合は,当該ページのスライドタイトルの直後に直接
12205 \family typewriter
12206
12207 \backslash
12208 LogoOff
12209 \family default
12210 を置き,次のスライドタイトルの直後に直接
12211 \family typewriter
12212
12213 \backslash
12214 LogoOn
12215 \family default
12216 を置いてください.
12217 \end_layout
12218
12219 \begin_layout Standard
12220
12221 \family sans
12222 文書レイアウト
12223 \family default
12224 ダイアログで
12225 \family sans
12226 fancy
12227 \family default
12228 ページ様式を使用することを選択した場合には,横置きページのヘッダとフッタが回転後も正しく配置されるように,プリアンブルに
12229 \family typewriter
12230
12231 \backslash
12232 let
12233 \backslash
12234 headwidth
12235 \backslash
12236 textwidth
12237 \family default
12238 を加える必要があるでしょう.これは,
12239 \family sans
12240 fancyheadings
12241 \family default
12242 パッケージが提供するページレイアウトと
12243 \family sans
12244 foils
12245 \family default
12246 クラスの提供するページレイアウトの間に衝突が発生するためです.
12247 \end_layout
12248
12249 \begin_layout Section
12250 Hollywood(Hollywoodスペック・スクリプト)
12251 \end_layout
12252
12253 \begin_layout Standard
12254
12255 \noun on
12256 Garst Reese
12257 \noun default
12258
12259 \end_layout
12260
12261 \begin_layout Subsection
12262 はじめに
12263 \end_layout
12264
12265 \begin_layout Standard
12266 脚本を正しい書式で書くことは,ハリウッドにおける「通過儀礼」です.ハリウッドの脚本は,読み手が内容に集中できるようにし,俳優にとっても読みやすくかつ親しみやすい
12267 ように設計されています.脚本の1ページは,映画の1分でなければならず,銀幕上で見えたり聞こえたりしないものは,脚本に混入してはなりません.また,全体を通してCo
12268 urier 12
12269 \begin_inset space \space{}
12270 \end_inset
12271
12272 ptフォントを使わなければならず,イタリック体は用いてはいけません.
12273 \end_layout
12274
12275 \begin_layout Subsection
12276 特別な問題
12277 \end_layout
12278
12279 \begin_layout Standard
12280 話者の行は,文の途中で改行することは
12281 \emph on
12282 決して
12283 \emph default
12284 あってはなりません.もし話者行の塊が,次頁にまたがる場合には,
12285 \family sans
12286 話者
12287 \family default
12288 名を再度書き,その後に(Cont'd)と加えます.
12289 \end_layout
12290
12291 \begin_layout Subsection
12292 特別な機能
12293 \end_layout
12294
12295 \begin_layout Standard
12296
12297 \family sans
12298 話者
12299 \family default
12300 名はラベルとして挿入し,話者名を挿入するには,そのラベルを相互参照してください.相互参照ダイアログは,登場人物の現在の配役を表示することになります.これは,ト書
12301 きに話者名を挿入するのにも使用することができます.
12302 \end_layout
12303
12304 \begin_layout Subsection
12305 用紙寸法と余白
12306 \end_layout
12307
12308 \begin_layout Standard
12309 USレター寸法で,左余白1.6インチ・右余白0.75インチ・上余白0.5インチ・下余白0.75インチです.
12310 \end_layout
12311
12312 \begin_layout Subsection
12313 環境
12314 \end_layout
12315
12316 \begin_layout Standard
12317 以下の環境が利用可能です.右に示されている
12318 \begin_inset Flex Ruby
12319 status collapsed
12320
12321 \begin_layout Plain Layout
12322
12323 \begin_inset Argument post:1
12324 status collapsed
12325
12326 \begin_layout Plain Layout
12327 キー
12328 \end_layout
12329
12330 \end_inset
12331
12332
12333 \end_layout
12334
12335 \end_inset
12336
12337 割当てを使用するには,hollywood.bindを使用してください.
12338 \end_layout
12339
12340 \begin_layout Itemize
12341
12342 \family sans
12343 一般
12344 \begin_inset Newline newline
12345 \end_inset
12346
12347
12348 \family default
12349 他の環境が動作しない場合に使用しますが,これを使うことは避けるようにしてください.
12350 \end_layout
12351
12352 \begin_layout Itemize
12353 フェイドイン:
12354 \begin_inset space \hfill{}
12355 \end_inset
12356
12357
12358 \family sans
12359 M-z S-I
12360 \family default
12361
12362 \begin_inset Newline newline
12363 \end_inset
12364
12365 通常,この後には「Sallyは目を覚ますと」のように続きます.
12366 \end_layout
12367
12368 \begin_layout Itemize
12369
12370 \family sans
12371 屋内:
12372 \begin_inset space \hfill{}
12373 \end_inset
12374
12375 M-z i
12376 \begin_inset Newline newline
12377 \end_inset
12378
12379
12380 \family default
12381 新しい屋内(INTERIOR)カメラの設定を指定します.この後には,かならずDAYやNIGHTなどを指定して,必要な照明を定義します.この行はすべて大文字で書き
12382 ます.
12383 \end_layout
12384
12385 \begin_layout Itemize
12386
12387 \family sans
12388 屋外:
12389 \begin_inset space \hfill{}
12390 \end_inset
12391
12392 M-z e
12393 \begin_inset Newline newline
12394 \end_inset
12395
12396
12397 \family default
12398 屋外(EXTERIOR)カメラの設定を指定します.この行はすべて大文字で書きます.
12399 \end_layout
12400
12401 \begin_layout Itemize
12402
12403 \family sans
12404 話者
12405 \begin_inset space \hfill{}
12406 \end_inset
12407
12408 M-z s
12409 \begin_inset Newline newline
12410 \end_inset
12411
12412
12413 \family default
12414 話す役.
12415 \end_layout
12416
12417 \begin_layout Itemize
12418
12419 \family sans
12420 括弧付き
12421 \begin_inset space \hfill{}
12422 \end_inset
12423
12424 M-z p
12425 \begin_inset Newline newline
12426 \end_inset
12427
12428 話者
12429 \family default
12430 への指示.自動的に括弧()が挿入されます.
12431 \end_layout
12432
12433 \begin_layout Itemize
12434
12435 \family sans
12436 対話
12437 \begin_inset space \hfill{}
12438 \end_inset
12439
12440 M-z d
12441 \begin_inset Newline newline
12442 \end_inset
12443
12444 話者
12445 \family default
12446 が話す内容.
12447 \end_layout
12448
12449 \begin_layout Itemize
12450
12451 \family sans
12452 画面遷移
12453 \begin_inset space \hfill{}
12454 \end_inset
12455
12456 M-z t
12457 \begin_inset Newline newline
12458 \end_inset
12459
12460
12461 \family default
12462 カメラの動きの指示.例:CUT TO:.
12463 \end_layout
12464
12465 \begin_layout Itemize
12466
12467 \family sans
12468 フェイドアウト:
12469 \begin_inset space \hfill{}
12470 \end_inset
12471
12472 M-z S-I
12473 \end_layout
12474
12475 \begin_layout Itemize
12476
12477 \family sans
12478 著者
12479 \begin_inset space \hfill{}
12480 \end_inset
12481
12482 M-z S-A
12483 \end_layout
12484
12485 \begin_layout Itemize
12486
12487 \family sans
12488 タイトル
12489 \begin_inset space \hfill{}
12490 \end_inset
12491
12492 M-z S-T
12493 \end_layout
12494
12495 \begin_layout Itemize
12496
12497 \family sans
12498 右寄せ住所
12499 \begin_inset space \hfill{}
12500 \end_inset
12501
12502 M-z r
12503 \end_layout
12504
12505 \begin_layout Subsection
12506 脚本で使われる特別な用語
12507 \end_layout
12508
12509 \begin_layout Itemize
12510 (O.S) — off screen
12511 \end_layout
12512
12513 \begin_layout Itemize
12514 (V.0) — voice over
12515 \end_layout
12516
12517 \begin_layout Itemize
12518 b.g.
12519  — background
12520 \end_layout
12521
12522 \begin_layout Itemize
12523 C.U.
12524  — close-up
12525 \end_layout
12526
12527 \begin_layout Itemize
12528 PAN — camera movement
12529 \end_layout
12530
12531 \begin_layout Itemize
12532 INSERT — cut to close-up of
12533 \end_layout
12534
12535 \begin_layout Section
12536 ijmpcおよびijmpd
12537 \end_layout
12538
12539 \begin_layout Standard
12540
12541 \noun on
12542 Panayotis Papasotiriou
12543 \noun default
12544
12545 \end_layout
12546
12547 \begin_layout Subsection
12548 概観
12549 \end_layout
12550
12551 \begin_layout Standard
12552 ijpmcパッケージは,
12553 \emph on
12554 International Journal of Modern Physics C
12555 \emph default
12556 への電子投稿を可能にするためのマクロ集です.同様に,ijpmdパッケージは,
12557 \emph on
12558 International Journal of Modern Physics D
12559 \emph default
12560 へ投稿する現行を作成するためのものです.両誌ともWorld Scientific社の刊行です.対応する文書クラス名は,それぞれ
12561 \family typewriter
12562 ws-ijmpc.cls
12563 \family default
12564 および
12565 \family typewriter
12566 ws-ijmpd.cls
12567 \family default
12568 です.これらのファイルは,著者のための指針とともに,
12569 \begin_inset Flex URL
12570 status collapsed
12571
12572 \begin_layout Plain Layout
12573
12574 http://www.worldscinet.com/ijmpc/mkt/guidelines.shtml
12575 \end_layout
12576
12577 \end_inset
12578
12579 および
12580 \begin_inset Flex URL
12581 status collapsed
12582
12583 \begin_layout Plain Layout
12584
12585 http://www.worldscinet.com/ijmpd/mkt/guidelines.shtml
12586 \end_layout
12587
12588 \end_inset
12589
12590 の各サイトからダウンロードすることができます.両パッケージは,標準「article」パッケージの修正版であり,両者は(一部を除き)ほぼ同一です.\SpecialChar LyX
12591 は,これらのパッ
12592 ケージのほとんどの機能をサポートしています.私は両誌へ投稿する論文を\SpecialChar LyX
12593 で書き上げましたが,何らの問題も生じませんでした.
12594 \end_layout
12595
12596 \begin_layout Subsection
12597 論文を書く
12598 \end_layout
12599
12600 \begin_layout Standard
12601 通常と同じく,論文を書く上で最も易しい方法は,ひな型を使って書き始めることです.
12602 \family sans
12603 ファイル\SpecialChar menuseparator
12604 新規(ひな型使用)
12605 \family default
12606 をクリックして,ひな型
12607 \family typewriter
12608 ijmpc.lyx
12609 \family default
12610 もしくは
12611 \family typewriter
12612 ijmpd.lyx
12613 \family default
12614 を選択してください.すると,原稿で良く使用されるフィールドを含んだ,ほぼ空の文書ができますので,既存のフィールド(鍵括弧
12615 \family typewriter
12616 <>
12617 \family default
12618 を含む)を正しい情報で置き換えてください.以下の各点にご留意ください.
12619 \end_layout
12620
12621 \begin_layout Enumerate
12622 両パッケージでは,フォント寸法や文書のページ様式を変更することが禁じられているので,\SpecialChar LyX
12623 中でこれらを変更することはできません.
12624 \end_layout
12625
12626 \begin_layout Enumerate
12627 文書言語は変更してはいけません.論文をプレビューする前に,babelパッケージが使用されていないことを確認してください.これは,
12628 \begin_inset Info
12629 type  "menu"
12630 arg   "dialog-show document"
12631 \end_inset
12632
12633  
12634 \family sans
12635 \SpecialChar menuseparator
12636 言語
12637 \family default
12638 をクリックして,
12639 \family sans
12640 言語パッケージ
12641 \family default
12642 に「なし」を選択してください.
12643 \end_layout
12644
12645 \begin_layout Enumerate
12646 キーワードを定義するに際しては,「キーワード」様式を用いなくてはなりません.
12647 \end_layout
12648
12649 \begin_layout Enumerate
12650 ijmpcパッケージが提供する「分類コード」様式は,PACS番号のような分類コードを定義するのに使用することができます.この機能は,ijmpdパッケージではサポ
12651 ートされていませんので,ご注意ください.
12652 \end_layout
12653
12654 \begin_layout Enumerate
12655 「定義」「ステップ」「例」「注記」「記法」「定理」「証明」「系」「補題」「命題」「命題(Prop)」「問題」「主張」「予想」といった新しい環境を使用することがで
12656 きます.これらの使い方は,大凡自明でしょう.\SpecialChar LyX
12657 は,これらの環境をすべてサポートし,それぞれについて,適切なラベルと文字様式および連番スキームを使用します.
12658 \end_layout
12659
12660 \begin_layout Enumerate
12661 両パッケージは,単純な引用を使用しますので,natbibパッケージは使用してはなりません.\SpecialChar LyX
12662 中では,引用参照は通常通り表示されますが,出力では上付き文字として表示
12663 されます.引用に通常の本文を使用したい場合には,「See Ref.
12664 \begin_inset space \space{}
12665 \end_inset
12666
12667
12668 \family typewriter
12669
12670 \backslash
12671 refcite{
12672 \family default
12673
12674 \begin_inset Flex Ruby
12675 status collapsed
12676
12677 \begin_layout Plain Layout
12678
12679 \family typewriter
12680
12681 \family default
12682
12683 \begin_inset Argument post:1
12684 status collapsed
12685
12686 \begin_layout Plain Layout
12687 キー
12688 \end_layout
12689
12690 \end_inset
12691
12692
12693 \end_layout
12694
12695 \end_inset
12696
12697
12698 \family typewriter
12699 }
12700 \family default
12701 」のように
12702 \family typewriter
12703 refcite
12704 \family default
12705 コマンドを使用してください.
12706 \end_layout
12707
12708 \begin_layout Enumerate
12709 両パッケージには,「謝辞」環境がありません.謝辞を置くには,「節*」環境を使用してください.
12710 \end_layout
12711
12712 \begin_layout Enumerate
12713 付録は,論文中,謝辞の
12714 \emph on
12715
12716 \emph default
12717 かつ書誌情報の
12718 \emph on
12719
12720 \emph default
12721 であれば,入れることができます.\SpecialChar LyX
12722 上では,「付録領域」という特別な環境があり,これを使って付録の開始位置を指定することができます.この環境は空のままにしておかなく
12723 てはなりません.この環境は,\SpecialChar LaTeX
12724 コマンドを書き出すだけで,実際に出力は行いません.\SpecialChar LyX
12725 上では,青字で「Appendix」という単語が表示され,この箇所より後の節はすべて
12726 付録であることを明示します.「付録領域」は,最初の付録の前に
12727 \emph on
12728 なくてはならない
12729 \emph default
12730 ことに注意してください.さもなくば,出力中において,付録はすべて通常の節として連番が振られてしまいます.
12731 \end_layout
12732
12733 \begin_layout Enumerate
12734 ijmpcおよびijmpdパッケージは,表キャプションを実装するのに
12735 \family typewriter
12736 tbl
12737 \family default
12738 コマンドを使用します.そのため,\SpecialChar LyX
12739 が作成した表は正しく印字されますが,そのキャプションは無視されます.しかし,\SpecialChar TeX
12740 コードを少し使えば,この問題を回避して,キャプション
12741 を望み通り印字することができるようになります.そうするには,表フロートを通常通り作成して,キャプションを削除し,代わりに\SpecialChar TeX
12742 コードで
12743 \family typewriter
12744
12745 \backslash
12746 tbl{表キャプション}{
12747 \family default
12748 (ママ)と入れます.そこに表の内容を入れて,直後を\SpecialChar TeX
12749 コード
12750 \family typewriter
12751 }
12752 \family default
12753 で閉じてください.このからくりがどのように実装されているかを見るには,ひな型ファイルに入っている表の例を精査してみてください.別の方法としては,表キャプションが
12754 欲しい場合に,表フロート全体を
12755 \family typewriter
12756 .tex
12757 \family default
12758 ファイルに収め,このファイルを\SpecialChar LyX
12759 文書に取り込んでください(
12760 \family sans
12761 挿入\SpecialChar menuseparator
12762 ファイル\SpecialChar menuseparator
12763 子文書
12764 \family default
12765 ).表フロートの作り方についての詳細は,各パッケージに含まれている
12766 \family typewriter
12767 ws-ijmpc.tex
12768 \family default
12769 または
12770 \family typewriter
12771 ws-ijmpd.tex
12772 \family default
12773 ファイルをご覧ください.
12774 \end_layout
12775
12776 \begin_layout Subsection
12777 原稿を投稿するための準備
12778 \end_layout
12779
12780 \begin_layout Standard
12781 論文を投稿する前には,\SpecialChar LyX
12782 文書を\SpecialChar LaTeX
12783 ファイルに書き出し(
12784 \family sans
12785 ファイル\SpecialChar menuseparator
12786 書き出し\SpecialChar menuseparator
12787 \SpecialChar LaTeX
12788
12789 \family default
12790
12791 \begin_inset Foot
12792 status open
12793
12794 \begin_layout Plain Layout
12795 実は,\SpecialChar LaTeX
12796  (plain)とpdflatexとの間で選択ができます.論文を準備するのにpdflatexを使用しようとするのであれば,取り込んである画像がPDF形式に
12797 変換され,pdflatexで使用できるように,pdflatexオプションを指定しなくてはなりません.
12798 \end_layout
12799
12800 \end_inset
12801
12802 ,その
12803 \family typewriter
12804 .tex
12805 \family default
12806 ファイルに以下の変更を加える必要があります.
12807 \end_layout
12808
12809 \begin_layout Enumerate
12810
12811 \family typewriter
12812
12813 \backslash
12814 documentclass
12815 \family default
12816 コマンドより前にあるコメント行を削除する.
12817 \end_layout
12818
12819 \begin_layout Enumerate
12820 自身で明示的に\SpecialChar LaTeX
12821 プリアンブルに置いたコマンドを除き,
12822 \family typewriter
12823
12824 \backslash
12825 makeatletter
12826 \family default
12827 コマンドと
12828 \family typewriter
12829
12830 \backslash
12831 makeatother
12832 \family default
12833 コマンドの間にあるものをすべて削除する.
12834 \end_layout
12835
12836 \begin_layout Standard
12837 こうして修正を加えた
12838 \family typewriter
12839 .tex
12840 \family default
12841 ファイルを保存し,必要な回数\SpecialChar LaTeX
12842 で処理してください.それによって得られた
12843 \family typewriter
12844 .dvi
12845 \family default
12846 文書も確認された方がよろしいでしょう.
12847 \end_layout
12848
12849 \begin_layout Section
12850 iopart
12851 \end_layout
12852
12853 \begin_layout Standard
12854
12855 \noun on
12856 Uwe Stöhr
12857 \noun default
12858
12859 \end_layout
12860
12861 \begin_layout Subsection
12862 概要
12863 \end_layout
12864
12865 \begin_layout Standard
12866 iopartパッケージは,Institute of Physics(イギリス物理学会)発行の学術誌へ電子的に投稿する原稿を作成するための文書クラスを提供していま
12867 す.iopartクラスを使用した論文作成方法の著者用説明書は,ウェブサイト
12868 \begin_inset Flex URL
12869 status collapsed
12870
12871 \begin_layout Plain Layout
12872
12873 ftp://ftp.iop.org/pub/journals/latex2e
12874 \end_layout
12875
12876 \end_inset
12877
12878 からiopartパッケージとともにダウンロード可能です.
12879 \end_layout
12880
12881 \begin_layout Subsection
12882 論文を書く
12883 \end_layout
12884
12885 \begin_layout Standard
12886 論文を書くもっとも簡単な方法は,ファイル\SpecialChar menuseparator
12887 新規(ひな型使用)\SpecialChar ldots
12888 にあるひな型
12889 \emph on
12890 IOP-article.lyx
12891 \emph default
12892 を土台にすることです.このひな型は,特定の環境の使用法についても説明しています.もっとも重要な助言として,以下の点にご注意ください.
12893 \end_layout
12894
12895 \begin_layout Itemize
12896 文書がPDF・PS・DVIにコンパイルできるようにするためには,
12897 \family sans
12898 文書\SpecialChar menuseparator
12899 設定\SpecialChar menuseparator
12900 数式オプション
12901 \family default
12902 で,AMSパッケージが読み込まれていないことを確認してください!
12903 \end_layout
12904
12905 \begin_layout Itemize
12906 タイトル環境の選択如何によって,論文の種類が定義されます.種類毎に以下の環境をタイトルに使用してください.
12907 \end_layout
12908
12909 \begin_deeper
12910 \begin_layout Itemize
12911 論文用には
12912 \family sans
12913 タイトル
12914 \end_layout
12915
12916 \begin_layout Itemize
12917 Review用には
12918 \family sans
12919 Review
12920 \end_layout
12921
12922 \begin_layout Itemize
12923 Topical review用には
12924 \family sans
12925 Topical
12926 \end_layout
12927
12928 \begin_layout Itemize
12929 Comment用には
12930 \family sans
12931 Comment
12932 \end_layout
12933
12934 \begin_layout Itemize
12935 Note用には
12936 \family sans
12937 注釈
12938 \end_layout
12939
12940 \begin_layout Itemize
12941 論文用には
12942 \family sans
12943 Paper
12944 \family default
12945 (タイトルと同じ)
12946 \end_layout
12947
12948 \begin_layout Itemize
12949 Preliminary communication用には
12950 \family sans
12951 Prelim
12952 \end_layout
12953
12954 \begin_layout Itemize
12955 Rapid communication用には
12956 \family sans
12957 Rapid
12958 \end_layout
12959
12960 \begin_layout Itemize
12961 編集者へのLetterには
12962 \family sans
12963 書簡
12964 \end_layout
12965
12966 \end_deeper
12967 \begin_layout Itemize
12968
12969 \family sans
12970 書簡
12971 \family default
12972 以外のタイトル環境には,すべて短縮タイトルをつけることもできます.
12973 \end_layout
12974
12975 \begin_layout Itemize
12976 \SpecialChar LyX
12977 では直接にサポートされていませんが,一般的なタイトル環境として
12978 \family sans
12979 Article
12980 \family default
12981 があります.執筆する文書が,他のタイトル型にそぐわない場合には,\SpecialChar TeX
12982 コードでこれを指定することができます.
12983 \end_layout
12984
12985 \begin_layout Standard
12986 特別な表や数式組版に関するヒントなど,詳しい情報については,IOP著者用ガイドラインを参照してください.
12987 \end_layout
12988
12989 \begin_layout Section
12990 Kluwer
12991 \end_layout
12992
12993 \begin_layout Standard
12994
12995 \noun on
12996 Panayotis Papasotiriou
12997 \noun default
12998
12999 \end_layout
13000
13001 \begin_layout Subsection
13002 概要
13003 \end_layout
13004
13005 \begin_layout Standard
13006 Kluwerパッケージは,Kluwer Academic Publishers社が発行する学術誌への電子投稿を可能にするために,同社が作成したマクロ集です.同社
13007 の発行誌のうち,(少なくとも私の専門内で)もっともよく知られているものは,
13008 \emph on
13009 Astrophysics and Space Science
13010 \emph default
13011 (『宇宙物理学と宇宙科学』)と
13012 \emph on
13013 Solar Physics
13014 \emph default
13015 (『太陽系物理学』)ですが,他にも多くの学術誌があります(
13016 \begin_inset Flex URL
13017 status collapsed
13018
13019 \begin_layout Plain Layout
13020
13021 http://www.wkap.nl/jrnllist.htm/JRNLHOME
13022 \end_layout
13023
13024 \end_inset
13025
13026 に全覧があります).Kluwerパッケージは,
13027 \begin_inset Flex URL
13028 status collapsed
13029
13030 \begin_layout Plain Layout
13031
13032 http://www.wkap.nl/kaphtml.htm/STYLEFILES
13033 \end_layout
13034
13035 \end_inset
13036
13037 からダウンロードできます.完全なユーザーの手引きも同パッケージ内に収録されています(個別にダウンロードすることも可能です).
13038 \end_layout
13039
13040 \begin_layout Standard
13041 \SpecialChar LyX
13042 は,このパッケージの機能の多くをサポートしていますが,すべてではありません.しかし,\SpecialChar TeX
13043 コードを必要とするのは,パッケージ中のいくつかの「変わった」コマンドだけにな
13044 りました(
13045 \begin_inset CommandInset ref
13046 LatexCommand ref
13047 reference "subsec:kluwer_peculiarities"
13048
13049 \end_inset
13050
13051 参照).最近,私は\SpecialChar LyX
13052 を使って書いた論文を
13053 \emph on
13054 Astrophysics and Space Science
13055 \emph default
13056 に投稿しましたが,何らの問題も発生しませんでした.
13057 \end_layout
13058
13059 \begin_layout Subsection
13060 論文を書く
13061 \end_layout
13062
13063 \begin_layout Standard
13064 論文を書き始めるには,ひな型ファイルKluwerを使うのが最も簡単です.
13065 \family sans
13066 ファイル\SpecialChar menuseparator
13067 新規(ひな型使用)
13068 \family default
13069 をクリックし,ひな型
13070 \family typewriter
13071 kluwer.lyx
13072 \family default
13073 を選択してください.これは,原稿に通常必要となる各フィールドと,それらの使用法が短く書かれただけの,(ほとんど)何も書かれていない文書です.他のテンプレートと同
13074 様に,既存の文章を(括弧
13075 \family typewriter
13076 <>
13077 \family default
13078 を含む)正しい情報で上書きしてください.
13079 \end_layout
13080
13081 \begin_layout Subsection
13082 投稿の準備
13083 \end_layout
13084
13085 \begin_layout Standard
13086 AAS\SpecialChar TeX
13087 パッケージと同様,論文を投稿する前に,以下のような「後処理」を行う必要があります.
13088 \end_layout
13089
13090 \begin_layout Enumerate
13091
13092 \family sans
13093 ファイル\SpecialChar menuseparator
13094 書き出し\SpecialChar menuseparator
13095 LateX
13096 \family default
13097 をクリックして,論文を\SpecialChar LaTeX
13098 ファイルに書き出す.
13099 \end_layout
13100
13101 \begin_layout Enumerate
13102 生成された
13103 \family typewriter
13104 .tex
13105 \family default
13106 ファイルに,テキストエディタを使用して,以下のような変更を加える.
13107 \end_layout
13108
13109 \begin_deeper
13110 \begin_layout Enumerate
13111
13112 \family typewriter
13113
13114 \backslash
13115 documentclass
13116 \family default
13117 コマンドより前にあるコメント行を削除する.
13118 \end_layout
13119
13120 \begin_layout Enumerate
13121 意図的に\SpecialChar LaTeX
13122 プリアンブルに加えたコマンドを除き,
13123 \family typewriter
13124
13125 \backslash
13126 makeatletter
13127 \family default
13128 から 
13129 \family typewriter
13130
13131 \backslash
13132 makeatother
13133 \family default
13134 の間にあるものを,これらのコマンドも含め,すべて削除する.
13135 \end_layout
13136
13137 \begin_layout Standard
13138 変更した
13139 \family typewriter
13140 .tex
13141 \family default
13142 ファイルを保存する.
13143 \end_layout
13144
13145 \end_deeper
13146 \begin_layout Enumerate
13147 この
13148 \family typewriter
13149 .tex
13150 \family default
13151 ファイルを必要な回数(通常3回以内)だけ\SpecialChar LaTeX
13152 にかける.
13153 \end_layout
13154
13155 \begin_layout Enumerate
13156 生成された
13157 \family typewriter
13158 .dvi
13159 \family default
13160 ファイルを
13161 \family sans
13162 xdvi
13163 \family default
13164 などを使って開き,問題がないか確認する(間違いをしていない限り問題ないはずです).
13165 \end_layout
13166
13167 \begin_layout Subsection
13168 Kluwerパッケージの「風変わり」な特徴
13169 \begin_inset CommandInset label
13170 LatexCommand label
13171 name "subsec:kluwer_peculiarities"
13172
13173 \end_inset
13174
13175
13176 \end_layout
13177
13178 \begin_layout Standard
13179 Kluwerパッケージには,以下のような「風変わりな」特徴があります.
13180 \end_layout
13181
13182 \begin_layout Enumerate
13183 複数の論文を1つの\SpecialChar LaTeX
13184 ファイルへ入れることができます
13185 \begin_inset Foot
13186 status collapsed
13187
13188 \begin_layout Plain Layout
13189 わざわざこんなことをする必要はないでしょう.
13190 \end_layout
13191
13192 \end_inset
13193
13194 .各論文は,「article」環境で囲まなくてはなりません.残念ながら,1つの論文だけを書く場合でも,この環境を省略することはできません.つまり,各論文は
13195 \family typewriter
13196
13197 \backslash
13198 begin{article}
13199 \family default
13200 で始まり,
13201 \family typewriter
13202
13203 \backslash
13204 end{article}
13205 \family default
13206 で終わります.この環境を\SpecialChar LyX
13207 に実装することも可能でしたが,醜い上に初心者を混乱させる可能性があるので,実装することはしませんでした.したがって,これらの命令(
13208 \family typewriter
13209
13210 \backslash
13211 begin{article}
13212 \family default
13213
13214 \family typewriter
13215
13216 \backslash
13217 end{article}
13218 \family default
13219 )は,直接本文中に入力して,\SpecialChar LaTeX
13220 コード(「\SpecialChar TeX
13221 コード」のことです)としてマークする必要があります.
13222 \end_layout
13223
13224 \begin_layout Enumerate
13225 論文の冒頭に置く情報(タイトル・サブタイトル・著者名・所属・ヘッダ用タイトル・ヘッダ用著者名・概要・キーワード)は,「opening」とよばれる環境に入れなくて
13226 はなりません.これは\SpecialChar LyX
13227 では実装されていませんので,タイトルやサブタイトルなどは,2つの\SpecialChar TeX
13228 コード行(
13229 \family typewriter
13230
13231 \backslash
13232 begin{opening}
13233 \family default
13234 および
13235 \family typewriter
13236
13237 \backslash
13238 end{opening}
13239 \family default
13240 )の間に入れる必要があります.
13241 \end_layout
13242
13243 \begin_layout Enumerate
13244 ユーザーの手引きによれば,書誌情報の各項目のラベルは,
13245 \family typewriter
13246
13247 \begin_inset Newline newline
13248 \end_inset
13249
13250
13251 \backslash
13252 protect
13253 \backslash
13254 citeauthoryear{
13255 \family default
13256 \emph on
13257 著者名
13258 \family typewriter
13259 \emph default
13260 }{
13261 \family default
13262 \emph on
13263
13264 \family typewriter
13265 \emph default
13266 }
13267 \family default
13268  と書く必要があります.
13269 \end_layout
13270
13271 \begin_layout Standard
13272 ひな型
13273 \family typewriter
13274 kluwer.lyx
13275 \family default
13276 は,これらの風変わりな点がすべて考慮されています.このひな型を使用して,論文を新たに書きはじめる場合には,特別なことを行う必要はありません.以下の点にのみ留意し
13277 てください.
13278 \end_layout
13279
13280 \begin_layout Enumerate
13281 ひな型にある\SpecialChar TeX
13282 コードを削除しないでください.
13283 \end_layout
13284
13285 \begin_layout Enumerate
13286 新しい書誌情報項目を入力する場合には,ひな型に例示されている書誌情報項目をコピーして,必要に応じて修正してください.
13287 \end_layout
13288
13289 \begin_layout Section
13290 Koma-Script
13291 \end_layout
13292
13293 \begin_layout Standard
13294
13295 \noun on
13296 Bernd Rellermeyer
13297 \noun default
13298
13299 \end_layout
13300
13301 \begin_layout Subsection
13302 概要
13303 \end_layout
13304
13305 \begin_layout Standard
13306 \SpecialChar LyX
13307 の文書クラス
13308 \emph on
13309 article (koma-script)
13310 \emph default
13311
13312 \emph on
13313 report (koma-script)
13314 \emph default
13315
13316 \emph on
13317 book
13318 \emph default
13319  
13320 \emph on
13321 (koma-script)
13322 \emph default
13323
13324 \emph on
13325 letter
13326 \emph default
13327  
13328 \emph on
13329 (koma-script)
13330 \emph default
13331 は,それぞれKoma-Scriptファミリーの\SpecialChar LaTeX
13332 文書クラス
13333 \family typewriter
13334 scrartcl.cls
13335 \family default
13336
13337 \family typewriter
13338 scrreprt.cls
13339 \family default
13340
13341 \family typewriter
13342 scrbook.cls
13343 \family default
13344
13345 \family typewriter
13346 scrlettr.cls
13347 \family default
13348 に対応しています.これらは,標準文書クラス
13349 \family typewriter
13350 article.cls
13351 \family default
13352
13353 \family typewriter
13354 report.cls
13355 \family default
13356
13357 \family typewriter
13358 book.cls
13359 \family default
13360
13361 \family typewriter
13362 letter.cls
13363 \family default
13364 の代替物であり,これらよりも多くの点でヨーロッパに於ける活版印刷の慣例に合致します.
13365 \end_layout
13366
13367 \begin_layout Itemize
13368 標準文字寸法は,
13369 \emph on
13370 article (koma-script)
13371 \emph default
13372
13373 \emph on
13374 report (koma-script)
13375 \emph default
13376
13377 \emph on
13378 book (koma-script)
13379 \emph default
13380 で11pt,
13381 \emph on
13382 letter (koma-script)
13383 \emph default
13384 で12ptです.
13385 \end_layout
13386
13387 \begin_layout Itemize
13388 見出しや箇条書き(記述)環境のラベル,および
13389 \emph on
13390 letter (koma-script)
13391 \emph default
13392 文書クラスの要素の多くでは,ボールド体サンセリフフォントが使われます
13393 \begin_inset Foot
13394 status collapsed
13395
13396 \begin_layout Plain Layout
13397 ボールド体サンセリフフォントには,古いcmフォントと新しいecフォントの間に大きな違いがあり,特に見出しの表示の違いが際立ちます.比較すると,ecボールドサンセ
13398 リフフォントの方が,少し細く見えます.ecフォントを使用する際に「通常の」外観が欲しい場合には,
13399 \shape smallcaps
13400 Walter Schmidt
13401 \shape default
13402 作の\SpecialChar LaTeX
13403 パッケージ
13404 \family typewriter
13405 cmsd.sty
13406 \family default
13407 が役立ちます.
13408 \end_layout
13409
13410 \end_inset
13411
13412 .章見出しの連番は,節見出しの連番と同様に行われ,別行立てで「 Chapter\SpecialChar ldots
13413 」という行がつきません.さらに,多くのオプションによって,見出しの外観を修正するこ
13414 とができます(\SpecialChar LyX
13415 では,
13416 \family sans
13417 文書\SpecialChar menuseparator
13418 設定
13419 \family default
13420 ダイアログの
13421 \family sans
13422 クラスオプション
13423 \family default
13424 フィールドで指定します).これらのオプションの独語での詳細な説明が,Koma-Scriptの取扱説明書
13425 \emph on
13426 scrguide
13427 \emph default
13428 にあります.
13429 \end_layout
13430
13431 \begin_layout Itemize
13432 Koma-Script文書クラスで,印字部分をデザインする主な方法は,
13433 \family sans
13434 BCOR
13435 \family default
13436 オプションまたは
13437 \family sans
13438 DIV
13439 \family default
13440 オプションを使う方法です(\SpecialChar LyX
13441 では,
13442 \family sans
13443 文書\SpecialChar menuseparator
13444 設定
13445 \family default
13446 ダイアログの
13447 \family sans
13448 クラスオプション
13449 \family default
13450 フィールドで指定します).これらのオプションは
13451 \family sans
13452 文書\SpecialChar menuseparator
13453 設定
13454 \family default
13455 ダイアログのオプションと同様に,ページ余白を明示的に変更することができます.これらとその他印字領域オプションのドイツ語での詳細な説明が,Koma-Script取
13456 扱説明書
13457 \emph on
13458 scrguide
13459 \emph default
13460 にあります.
13461 \end_layout
13462
13463 \begin_layout Itemize
13464 Koma-Scriptファミリーの\SpecialChar LaTeX
13465 文書クラスには,多くの追加コマンドが定義されています.それらのうち,\SpecialChar LyX
13466 で意味を持つものは,対応する段落環境として実装されています
13467
13468 \end_layout
13469
13470 \begin_layout Standard
13471 Koma-Scriptファミリーの\SpecialChar LaTeX
13472 文書クラスに関する独語の詳細な説明が,Koma-Script取扱説明書
13473 \emph on
13474 scrguide
13475 \emph default
13476 にあります
13477 \begin_inset Foot
13478 status collapsed
13479
13480 \begin_layout Plain Layout
13481 英語翻訳版の
13482 \emph on
13483 screnggu
13484 \emph default
13485 もありますが,完訳ではありません.
13486 \end_layout
13487
13488 \end_inset
13489
13490 .以下の各節では,\SpecialChar LyX
13491 に関係する側面のみ説明致します.
13492 \end_layout
13493
13494 \begin_layout Subsection
13495 article (koma-script)・report (koma-script)・book (koma-script)
13496 \end_layout
13497
13498 \begin_layout Standard
13499 文書クラス
13500 \emph on
13501 article (koma-script)
13502 \emph default
13503
13504 \emph on
13505 report (koma-script)
13506 \emph default
13507
13508 \emph on
13509 book
13510 \emph default
13511  
13512 \emph on
13513 (koma-script)
13514 \emph default
13515 は,それぞれレイアウトファイル
13516 \family typewriter
13517 scrartcl.layout
13518 \family default
13519
13520 \family typewriter
13521 scrreprt.layou
13522 \family default
13523 t・
13524 \family typewriter
13525 crbook.layout
13526 \family default
13527 によって実装されています.これらは,対応する標準文書クラス
13528 \emph on
13529 article
13530 \emph default
13531
13532 \emph on
13533 report
13534 \emph default
13535
13536 \emph on
13537 book
13538 \emph default
13539 の段落環境を,若干の修正を加えた上ですべて含んでいますが,\SpecialChar LyX
13540 固有の
13541 \family sans
13542 箇条書き(一覧)
13543 \family default
13544 環境は例外であり,同じ機能を持つ新しい
13545 \family sans
13546 ラベリング
13547 \family default
13548 環境で置き換えられています.この
13549 \family sans
13550 ラベリング
13551 \family default
13552 環境以外にも,新しい段落環境が多く追加されています.これらは,
13553 \emph on
13554 letter (koma-script)
13555 \emph default
13556 には含まれていないのでご注意ください.
13557 \end_layout
13558
13559 \begin_layout Itemize
13560
13561 \family sans
13562 部(addpart)
13563 \family default
13564
13565 \family sans
13566 章(addchap)
13567 \family default
13568
13569 \family sans
13570 節(addsec)
13571 \family default
13572 :これらは,それぞれ
13573 \family sans
13574 部*
13575 \family default
13576
13577 \family sans
13578 章*
13579 \family default
13580
13581 \family sans
13582 節*
13583 \family default
13584 と同等の働きをしますが,加えて目次に項目が表示されるようになります.
13585 \family sans
13586 部(addpart)
13587 \family default
13588
13589 \family sans
13590 章(addchap)
13591 \family default
13592 は,
13593 \emph on
13594 article (koma-script)
13595 \emph default
13596 には収録されていません.
13597 \end_layout
13598
13599 \begin_layout Itemize
13600
13601 \family sans
13602 章(addchap*)
13603 \family default
13604
13605 \family sans
13606 節(addsec*)
13607 \family default
13608 :これらは,
13609 \family sans
13610 章(addchap
13611 \family default
13612 )と
13613 \family sans
13614 節(addsec)
13615 \family default
13616 とまったく同等に動作しますが,加えてランニングへッダを取り除きます.
13617 \family sans
13618 章(addchap*)
13619 \family default
13620 は, 
13621 \emph on
13622 article (koma-script)
13623 \emph default
13624 には収録されていません
13625 \begin_inset Foot
13626 status collapsed
13627
13628 \begin_layout Plain Layout
13629
13630 \emph on
13631 book (koma-script)
13632 \emph default
13633
13634 \emph on
13635 report (koma-script)
13636 \emph default
13637 には,
13638 \family typewriter
13639
13640 \backslash
13641 addpart*
13642 \family default
13643 コマンドもありますが,これは
13644 \family sans
13645 Part*
13646 \family default
13647 と同一なので,\SpecialChar LyX
13648 では実装されていません.
13649 \end_layout
13650
13651 \end_inset
13652
13653
13654 \end_layout
13655
13656 \begin_layout Itemize
13657
13658 \family sans
13659 小見出し(minisec)
13660 \family default
13661 :これは文書構造に現れない形で,続く段落の直上に標準文字寸法の見出しを付けます.
13662 \end_layout
13663
13664 \begin_layout Itemize
13665
13666 \family sans
13667 上部キャプション
13668 \family default
13669
13670 \family sans
13671 下部キャプション
13672 \family default
13673 は,ある要素の上部ないし下部にキャプションを配置する際,位置に応じて正しく余白取りを行う特別なキャプションです(組版規則に厳密に従うならば,表キャプションは,つ
13674 ねに表の上に置くべきでしょう).また,クラスオプション
13675 \family typewriter
13676 tablecaptionsabove
13677 \family default
13678 を用いれば,キャプションを指定すると,表には
13679 \family sans
13680 上部キャプション
13681 \family default
13682 が,図には
13683 \family sans
13684 下部キャプション
13685 \family default
13686 が適用されるようになります.これを使用するためには,Koma-Script第2.8q版以上が必要です.
13687 \end_layout
13688
13689 \begin_layout Itemize
13690
13691 \family sans
13692 格言(dictum)
13693 \family default
13694 :これは,章頭などに警句を置くのに用いることができます.オプション引数(
13695 \family sans
13696 挿入\SpecialChar menuseparator
13697 格言著者
13698 \family default
13699 )を用いれば,格言の作者を入れることができます.格言と作者の間は,線で区切られます.これを使用するためには,Koma-Script第2.8q版以上が必要です.
13700 \family sans
13701 格言(dictum)
13702 \family default
13703 は,
13704 \emph on
13705 article (koma-script)
13706 \emph default
13707 には収録されていません.
13708 \end_layout
13709
13710 \begin_layout Standard
13711 以下の各環境は,標準の
13712 \family sans
13713 タイトル
13714 \family default
13715
13716 \family sans
13717 著者
13718 \family default
13719
13720 \family sans
13721 日付
13722 \family default
13723 とともに文書のタイトル領域を形成します.これらは,最初の「通常の」段落よりも前に置かれる必要があります
13724 \begin_inset Foot
13725 status collapsed
13726
13727 \begin_layout Plain Layout
13728 つまり,対応する\SpecialChar LaTeX
13729 コマンドが
13730 \family typewriter
13731
13732 \backslash
13733 maketitle
13734 \family default
13735 コマンドよりも前に現れなくてはなりません.
13736 \end_layout
13737
13738 \end_inset
13739
13740 .これらの環境が2度以上使用された場合には,後に使用されたものが前のものを上書きします.つまり最後に使用したもののみが有効になります.しかしながら,
13741 \family sans
13742 タイトル
13743 \family default
13744
13745 \family sans
13746 著者
13747 \family default
13748
13749 \family sans
13750 日付
13751 \family default
13752 のような異なる環境の順序を変更しても,生成された文書には何の効果も生じません.
13753 \end_layout
13754
13755 \begin_layout Itemize
13756
13757 \family sans
13758 主題
13759 \family default
13760 :通常のタイトル部(
13761 \family sans
13762 タイトル
13763 \family default
13764
13765 \family sans
13766 著者
13767 \family default
13768
13769 \family sans
13770 日付
13771 \family default
13772 )の上に,文書の主題用の中央揃えの段落を生成します.
13773 \end_layout
13774
13775 \begin_layout Itemize
13776
13777 \family sans
13778 出版社
13779 \family default
13780 :通常のタイトル部(
13781 \family sans
13782 タイトル
13783 \family default
13784
13785 \family sans
13786 著者
13787 \family default
13788
13789 \family sans
13790 日付
13791 \family default
13792 )の下に,出版社名用の中央揃えの段落を生成します.
13793 \end_layout
13794
13795 \begin_layout Itemize
13796
13797 \family sans
13798 献呈
13799 \family default
13800
13801 \emph on
13802 report (koma-script)
13803 \emph default
13804
13805 \emph on
13806 book (koma-script)
13807 \emph default
13808 では,タイトル頁の次に,献辞用の中央揃えの段落を独立した頁として生成します.
13809 \emph on
13810 article (koma-script)
13811 \emph default
13812 の場合は,通常のタイトル部(
13813 \family sans
13814 タイトル
13815 \family default
13816
13817 \family sans
13818 著者
13819 \family default
13820
13821 \family sans
13822 日付
13823 \family default
13824 )の下に献辞用の中央揃えの段落を生成します.
13825 \end_layout
13826
13827 \begin_layout Itemize
13828
13829 \family sans
13830 タイトル頭書き
13831 \family default
13832 :通常のタイトル部(
13833 \family sans
13834 タイトル
13835 \family default
13836
13837 \family sans
13838 著者
13839 \family default
13840
13841 \family sans
13842 日付
13843 \family default
13844 )の上に,文書頭書き用の左揃えの段落を生成します.
13845 \end_layout
13846
13847 \begin_layout Itemize
13848
13849 \family sans
13850 扉裏上部
13851 \family default
13852
13853 \emph on
13854 report (koma-script)
13855 \emph default
13856 や 
13857 \emph on
13858 book (koma-script)
13859 \emph default
13860 の両面印刷において,扉裏上部に左揃え段落を生成します.片面印刷や,
13861 \emph on
13862 article (koma-script)
13863 \emph default
13864 では何の効果も生じません.
13865 \end_layout
13866
13867 \begin_layout Itemize
13868
13869 \family sans
13870 扉裏下部
13871 \family default
13872
13873 \emph on
13874 report (koma-script)
13875 \emph default
13876 や 
13877 \emph on
13878 book (koma-script)
13879 \emph default
13880 の両面印刷において,扉裏下部に左揃え段落を生成します.片面印刷や,
13881 \emph on
13882 article (koma-script)
13883 \emph default
13884 では何の効果も生じません.
13885 \end_layout
13886
13887 \begin_layout Itemize
13888
13889 \family sans
13890 追加タイトル
13891 \family default
13892 :実際の文書の前に,整形を行わない段落から成る,特殊な「汚い」ページを生成します.
13893 \end_layout
13894
13895 \begin_layout Standard
13896 文書クラス
13897 \emph on
13898 article (koma-script)
13899 \emph default
13900
13901 \emph on
13902 report (koma-script)
13903 \emph default
13904
13905 \emph on
13906 book (koma-script)
13907 \emph default
13908 の 各レイアウトファイルは,
13909 \family typewriter
13910 scrmacros.inc
13911 \family default
13912 ファイルを読み込みます.このファイルは,ユーザ環境を定義する場所として想定されています.s
13913 \family typewriter
13914 crmacros.inc
13915 \family default
13916 を,個人用レイアウトディレクトリにコピーして編集してください!
13917 \end_layout
13918
13919 \begin_layout Subsection
13920 letter (koma-script)
13921 \end_layout
13922
13923 \begin_layout Description
13924 \noindent
13925
13926 \family sans
13927 \series bold
13928 註:
13929 \family default
13930 \series default
13931  本節は,廃版となっている
13932 \family sans
13933 KOMA-Script-Letter (v.
13934 \begin_inset space ~
13935 \end_inset
13936
13937 1)
13938 \family default
13939 について論じています.これは,最近のKOMAリリースでは収録もされていません.現行の
13940 \family sans
13941 KOMA-Script-Letter (v.
13942 \begin_inset space ~
13943 \end_inset
13944
13945 2)
13946 \family default
13947 については,次節を参照してください!
13948 \end_layout
13949
13950 \begin_layout Standard
13951 \noindent
13952 文書クラス
13953 \emph on
13954 letter (koma-script)
13955 \emph default
13956 は,レイアウトファイル 
13957 \family typewriter
13958 scrlettr.layout
13959 \family default
13960 で実装されています.このレイアウトファイルには,対応する標準文書クラス
13961 \emph on
13962 letter
13963 \emph default
13964 の全段落環境が,部分的に変更を加えた形で収録されていますが,\SpecialChar LyX
13965 固有環境の
13966 \family sans
13967 \SpecialChar LyX
13968 コード
13969 \family default
13970
13971 \family sans
13972 コメント
13973 \family default
13974
13975 \family sans
13976 箇条書き(一覧
13977 \family default
13978 )は,新しく
13979 \family sans
13980 ラベリング
13981 \family default
13982 環境に置き換えられています.それ以外にも,標準文書クラスとは異なり,標準環境の
13983 \family sans
13984 \SpecialChar LaTeX
13985
13986 \family default
13987
13988 \family sans
13989 引用(字下げあり)
13990 \family default
13991
13992 \family sans
13993 引用(字下げなし)
13994 \family default
13995
13996 \family sans
13997 詩句
13998 \family default
13999 が収録されています.さらに,新しいletter固有環境がたくさん追加されています.
14000 \end_layout
14001
14002 \begin_layout Standard
14003 この文書クラスで作成した書簡の外観は,様々な\SpecialChar LaTeX
14004 コマンドを\SpecialChar LaTeX
14005 プリアンブルに置くことで制御することができます
14006 \begin_inset Foot
14007 status collapsed
14008
14009 \begin_layout Plain Layout
14010 例えば,名前と住所の入った書簡ヘッダの標準的外観は,きわめて頑固です.「普通の」へッダは,プリアンブル中に以下のようなコマンドを入れることで生成することができま
14011 す.
14012 \end_layout
14013
14014 \begin_layout LyX-Code
14015
14016 \backslash
14017 firsthead{
14018 \backslash
14019 parbox[b]{
14020 \backslash
14021 textwidth}
14022 \end_layout
14023
14024 \begin_layout LyX-Code
14025   {
14026 \backslash
14027 ignorespaces 
14028 \backslash
14029 fromname
14030 \backslash
14031
14032 \backslash
14033  
14034 \backslash
14035 ignorespaces 
14036 \backslash
14037 fromaddress}} 
14038 \end_layout
14039
14040 \begin_layout LyX-Code
14041
14042 \backslash
14043 nexthead{
14044 \backslash
14045 parbox[b]{
14046 \backslash
14047 textwidth}
14048 \end_layout
14049
14050 \begin_layout LyX-Code
14051   {
14052 \backslash
14053 ignorespaces 
14054 \backslash
14055 fromname 
14056 \backslash
14057 hfill 
14058 \backslash
14059 ignorespaces 
14060 \backslash
14061 pagename
14062 \backslash
14063
14064 \end_layout
14065
14066 \begin_layout LyX-Code
14067
14068 \backslash
14069 thepage}}
14070 \end_layout
14071
14072 \end_inset
14073
14074 .これらの\SpecialChar LaTeX
14075 コマンドのドイツ語での詳細な説明は,Koma-Scriptの取扱説明書
14076 \emph on
14077 scrguide
14078 \emph default
14079 にあります.この方法で,書簡の著者は,個人用書簡レイアウトを作ることができます.
14080 \end_layout
14081
14082 \begin_layout Standard
14083
14084 \family sans
14085 書簡
14086 \family default
14087 環境および
14088 \family sans
14089 頭語
14090 \family default
14091 環境は,書簡の冒頭部を定義するもので,すべての書簡で使用しなくてはなりません.\SpecialChar LyX
14092 文書クラスでは,これらの環境を強調するために,左余白にそれぞれ
14093 \shape italic
14094 L
14095 \shape default
14096
14097 \shape italic
14098 O
14099 \shape default
14100 という文字が表示されます.同一ファイル中には,複数の書簡を書くことができます.
14101 \family sans
14102 頭語
14103 \family default
14104 環境は,同じ受取人への書簡を新しく書き出すものであり,
14105 \family sans
14106 書簡
14107 \family default
14108 環境は,新しい受取人を生成するものです.
14109 \family sans
14110 結語
14111 \family default
14112
14113 \family sans
14114 PS
14115 \family default
14116
14117 \family sans
14118 CC
14119 \family default
14120
14121 \family sans
14122 Encl
14123 \family default
14124 は,通常の段落環境なので,同一の書簡中でも何度も使用することができます.
14125 \end_layout
14126
14127 \begin_layout Itemize
14128
14129 \family sans
14130 書簡
14131 \family default
14132 :受取人のための段落をつくり,暗黙に書簡の開始を定義します.
14133 \end_layout
14134
14135 \begin_layout Itemize
14136
14137 \family sans
14138 頭語
14139 \family default
14140 :敬称のための段落をつくり,暗黙に新しい書簡を開始します.
14141 \end_layout
14142
14143 \begin_layout Itemize
14144
14145 \family sans
14146 結語
14147 \family default
14148 :結語のための段落をつくります.
14149 \end_layout
14150
14151 \begin_layout Itemize
14152
14153 \family sans
14154 PS
14155 \family default
14156 :追伸のための段落をつくります.
14157 \end_layout
14158
14159 \begin_layout Itemize
14160
14161 \family sans
14162 CC
14163 \family default
14164 :同報一覧のための段落をつくります.
14165 \end_layout
14166
14167 \begin_layout Itemize
14168
14169 \family sans
14170 Encl
14171 \family default
14172 :同封物のための段落をつくります.
14173 \end_layout
14174
14175 \begin_layout Standard
14176
14177 \family sans
14178 名前
14179 \family default
14180
14181 \family sans
14182 署名
14183 \family default
14184
14185 \family sans
14186 住所
14187 \family default
14188
14189 \family sans
14190 電話
14191 \family default
14192
14193 \family sans
14194 場所(Place
14195 \family default
14196 )・
14197 \family sans
14198 返送先住所
14199 \family default
14200
14201 \family sans
14202 配送手段(Specialmail)
14203 \family default
14204
14205 \family sans
14206 場所
14207 \family default
14208
14209 \family sans
14210 タイトル
14211 \family default
14212
14213 \family sans
14214 主題
14215 \family default
14216 は,情報入力を促すラベルの付いた入力環境で,文書クラスが適切な処理を行います
14217 \begin_inset Foot
14218 status collapsed
14219
14220 \begin_layout Plain Layout
14221 上述の
14222 \family sans
14223 書簡
14224 \family default
14225
14226 \family sans
14227 頭語
14228 \family default
14229 が,これらのような入力環境でないのは,矛盾しているように感じられるかもしれません.しかしながら,これら2つの環境は特別の意味を持っているために,これらは左余白に
14230 一文字をマークした通常の段落環境として実装しました.さらに,
14231 \family sans
14232 頭語
14233 \family default
14234 環境と
14235 \family sans
14236 結語
14237 \family default
14238 環境が著しく異なって見えると対称性が損なわれることになるのも理由の一つです.
14239 \end_layout
14240
14241 \end_inset
14242
14243 .これらの環境は,対応する
14244 \family sans
14245 頭語
14246 \family default
14247 環境の前に置く必要があります.
14248 \end_layout
14249
14250 \begin_layout Standard
14251 生成された書簡の実際の外観は,特定の環境の使い方だけではなく,他の要素にも依存するため,これらの環境をWYSIWYGとして実装することには,あまり意味がありませ
14252 ん.たとえば,
14253 \family sans
14254 署名
14255 \family default
14256 環境で入力した署名は,標準的な挙動では,同じ書簡に
14257 \family sans
14258 結語
14259 \family default
14260 環境も使用されているときのみ,書簡の出力に現れます.
14261 \family sans
14262 電話
14263 \family default
14264 環境に入力された値は,標準的な挙動では,書簡の出力には全く表示されません.書簡のヘッダを自由にデザインできることは,前出の脚注で示してあります.
14265 \end_layout
14266
14267 \begin_layout Standard
14268 入力環境は,空の段落として使うことができます.これは,たとえば
14269 \family sans
14270 署名
14271 \family default
14272 環境の場合に有効です.
14273 \family sans
14274 署名
14275 \family default
14276 環境を全く使用しない場合は,標準的な挙動では,
14277 \family sans
14278 名前
14279 \family default
14280 環境の値が署名として使用されますが,空の
14281 \family sans
14282 署名
14283 \family default
14284 環境を作成しておくと,署名の値は無定義となりません.
14285 \end_layout
14286
14287 \begin_layout Standard
14288 入力環境を使用すると,個人データ(名前や住所など)が既に入力された入力環境と,後から入力するデータの入力環境を備えた,書簡のひな型を作成することができます.
14289 \end_layout
14290
14291 \begin_layout Itemize
14292
14293 \family sans
14294 名前
14295 \family default
14296 :送り主の名前.標準的な挙動では,書簡のヘッダ部にスモールキャップ体の中央揃えの段落として表示されます.
14297 \end_layout
14298
14299 \begin_layout Itemize
14300
14301 \family sans
14302 署名
14303 \family default
14304 :送り主の署名.標準的な挙動では,
14305 \family sans
14306 結語
14307 \family default
14308 環境の下に表示されます.
14309 \family sans
14310 署名
14311 \family default
14312 環境を使用しないと,代わりに
14313 \family sans
14314 名前
14315 \family default
14316 環境の値が表示されます.
14317 \end_layout
14318
14319 \begin_layout Itemize
14320
14321 \family sans
14322 住所
14323 \family default
14324 :送り主の住所.標準的な挙動では,書簡ヘッダの送り主の名前の下に中央揃えの段落として表示されます.
14325 \end_layout
14326
14327 \begin_layout Itemize
14328
14329 \family sans
14330 電話
14331 \family default
14332 :送り主の電話番号.標準的な挙動では,\SpecialChar LaTeX
14333 変数
14334 \family typewriter
14335
14336 \backslash
14337 telephonenum
14338 \family default
14339 を設定するだけです.
14340 \end_layout
14341
14342 \begin_layout Itemize
14343
14344 \family sans
14345 場所(Place)
14346 \family default
14347 :書簡を書いた場所.
14348 \end_layout
14349
14350 \begin_layout Itemize
14351
14352 \family sans
14353 日付
14354 \family default
14355 :書簡を書いた日付.
14356 \family sans
14357 場所(Place)
14358 \family default
14359
14360 \family sans
14361 日付
14362 \family default
14363 は,標準的な挙動では,受取人フィールドの下に,単一の右揃え行として場所と日付を生成します.空の
14364 \family sans
14365 日付
14366 \family default
14367 環境を作成しておくと,
14368 \family sans
14369 場所(Place)
14370 \family default
14371 の値如何に関わらず,場所も日付も表示されません.
14372 \family sans
14373 日付
14374 \family default
14375 環境を使用しない場合には,書簡を出力した日付が使用されます.
14376 \end_layout
14377
14378 \begin_layout Itemize
14379
14380 \family sans
14381 返送先住所
14382 \family default
14383 :送り主の返送先住所.標準的な挙動では,受取人の上に小文字のサンセリフ体フォントで表示されます.
14384 \end_layout
14385
14386 \begin_layout Itemize
14387
14388 \family sans
14389 特別便
14390 \family default
14391 :特別便の情報.標準的な挙動では,受取人フィールドの上かつ返送先住所の下に,下線付きで表示されます.
14392 \end_layout
14393
14394 \begin_layout Itemize
14395
14396 \family sans
14397 場所
14398 \family default
14399 :追加情報.標準的な挙動では,受取人フィールドの下の右側に表示されます.
14400 \end_layout
14401
14402 \begin_layout Itemize
14403
14404 \family sans
14405 タイトル
14406 \family default
14407 :書簡の題名.標準的な挙動では,主題の上に大きなボールド体サンセリフフォントで表示されます.
14408 \end_layout
14409
14410 \begin_layout Itemize
14411
14412 \family sans
14413 主題
14414 \family default
14415 :書簡の主題.標準的な挙動では,
14416 \family sans
14417 頭語
14418 \family default
14419 環境の上にボールド体で表示されます.
14420 \end_layout
14421
14422 \begin_layout Standard
14423
14424 \family sans
14425 Yourref・Yourmail・Myref・顧客・インボイス
14426 \family default
14427 といった環境は,
14428 \family sans
14429 タイトル
14430 \family default
14431 行の上に「Your ref.」・「Your letter of」・「Our ref.」・「Customer no.」・「Invoice no.」・「Date」といったフ
14432 ィールド行を持つ,ビジネス書簡を作成します.日付フィールドには,
14433 \family sans
14434 日付
14435 \family default
14436 環境の値が使用されます.しかしながら,これらの「ビジネス書簡環境」の一つを使用した場合には,
14437 \family sans
14438 場所(Place)
14439 \family default
14440 の値は書簡には表示されなくなり,\SpecialChar LaTeX
14441 変数
14442 \family typewriter
14443
14444 \backslash
14445 fromplace
14446 \family default
14447 が設定させるだけになります.通常時に,受取人フィールドの下に右揃えで出力される場所と日付の出力は,抑制されます.これらのビジネス環境は,ラベル付きの入力環境とし
14448 て実装されており,対応する
14449 \family sans
14450 頭語
14451 \family default
14452 環境よりも前に置く必要があります.
14453 \end_layout
14454
14455 \begin_layout Itemize
14456
14457 \family sans
14458 Yourref
14459 \family default
14460 : Your ref.
14461 \end_layout
14462
14463 \begin_layout Itemize
14464
14465 \family sans
14466 Yourmail
14467 \family default
14468 : Your letter of.
14469 \end_layout
14470
14471 \begin_layout Itemize
14472
14473 \family sans
14474 Myref
14475 \family default
14476 : Our ref.
14477 \end_layout
14478
14479 \begin_layout Itemize
14480
14481 \family sans
14482 Customer
14483 \family default
14484 : Customer no.
14485 \end_layout
14486
14487 \begin_layout Itemize
14488
14489 \family sans
14490 Invoice
14491 \family default
14492 : Invoice no.
14493 \end_layout
14494
14495 \begin_layout Subsection
14496 新しいletterクラス:letter (koma-script v.2)
14497 \end_layout
14498
14499 \begin_layout Standard
14500 by 
14501 \noun on
14502 Jürgen Spitzmüller
14503 \begin_inset VSpace medskip
14504 \end_inset
14505
14506
14507 \end_layout
14508
14509 \begin_layout Standard
14510 \noindent
14511 Koma-Script第2.8版では,新しいletterクラス
14512 \family typewriter
14513 scrlttr2
14514 \family default
14515 が導入されたため,
14516 \family typewriter
14517 scrlettr
14518 \family default
14519 は廃止されてサポート対象外となりました.これは—\SpecialChar LaTeX
14520 側で—全く新しいインターフェイスを持っており,旧クラスとは互換性がありません.したがって,\SpecialChar LyX
14521 は両者をサポートしてい
14522 ますが,新しい方のクラスを使用することを推奨します.
14523 \end_layout
14524
14525 \begin_layout Standard
14526 このクラスは,
14527 \emph on
14528 letter (koma-script)
14529 \emph default
14530 と同一の機能に加えて,新しい機能をいくつかサポートしています.基本となる項目は,
14531 \family sans
14532 住所
14533 \family default
14534 (受取人の住所,旧レイアウトの
14535 \family sans
14536 書簡
14537 \family default
14538 と同じ)・
14539 \family sans
14540 頭語
14541 \family default
14542
14543 \family sans
14544 結語
14545 \family default
14546 です.
14547 \family sans
14548 次の住所
14549 \family default
14550 は別の書簡を新しく開始します(つまり一文書あたり複数の書簡を書くことができます).新しく付け加えられた項目は,送り主の
14551 \family sans
14552 電子メール
14553 \family default
14554
14555 \family sans
14556 URL
14557 \family default
14558
14559 \family sans
14560 ファックス
14561 \family default
14562
14563 \family sans
14564 銀行
14565 \family default
14566 ,およびヘッダに(
14567 \family sans
14568 挿入\SpecialChar menuseparator
14569
14570 \family default
14571 で)
14572 \family sans
14573 ロゴ
14574 \family default
14575 を入れることができるようになった点です.
14576 \end_layout
14577
14578 \begin_layout Standard
14579 しかしながら,もっとも大きな改善は,書簡のレイアウトを,ほとんどどんなニーズにも合わせて設定できるようになった点でしょう.これはプリアンブルか,クラスオプション
14580 として読み込まれる特別なスタイルファイル(「レタークラスオプション」,拡張子
14581 \family typewriter
14582 *.lco
14583 \family default
14584 )によって設定することができます
14585 \begin_inset Foot
14586 status collapsed
14587
14588 \begin_layout Plain Layout
14589 KOMAパッケージには,既定の
14590 \family typewriter
14591 *.lco
14592 \family default
14593 ファイルがいくつか収録されています.たとえば,ドイツの組版規則に則った
14594 \family typewriter
14595 DIN.lco
14596 \family default
14597 や,旧
14598 \family typewriter
14599 scrlettr
14600 \family default
14601 クラスの既定レイアウトを提供する
14602 \family typewriter
14603 KOMAold.lco
14604 \family default
14605 などです.たとえば後者は,
14606 \family sans
14607 文書\SpecialChar menuseparator
14608 設定\SpecialChar menuseparator
14609 文書クラス\SpecialChar menuseparator
14610 クラスオプション
14611 \family default
14612 フィールドにクラスオプション
14613 \family typewriter
14614 KOMAold
14615 \family default
14616 を加えることで読み込むことができます.
14617 \end_layout
14618
14619 \end_inset
14620
14621 .用例としては,\SpecialChar LyX
14622 に収録されているひな型
14623 \emph on
14624 koma-letter2
14625 \emph default
14626 をご覧ください.詳細な解説は,Koma-Script取扱説明書(
14627 \emph on
14628 scrguide
14629 \emph default
14630 )にあります.
14631 \end_layout
14632
14633 \begin_layout Subsection
14634 問題点
14635 \end_layout
14636
14637 \begin_layout Standard
14638 Koma-Script文書クラスを\SpecialChar LyX
14639 上に表示する上で,\SpecialChar LyX
14640 の内部処理が若干の問題を生じめます.
14641 \end_layout
14642
14643 \begin_layout Itemize
14644
14645 \family sans
14646
14647 \family default
14648 環境の章番号は,章見出しと同じ行ではなく,その上に表示されます.これは,レイアウトファイル中の
14649 \family sans
14650 Counter_Chapter
14651 \family default
14652 ラベル型に対する\SpecialChar LyX
14653 の内部処理が原因です.
14654 \end_layout
14655
14656 \begin_layout Itemize
14657
14658 \family sans
14659 章(addchap)
14660 \family default
14661
14662 \family sans
14663 節(addsec)
14664 \family default
14665 環境の見出しは,「本当の」\SpecialChar LaTeX
14666 の目次には追加されますが,\SpecialChar LyX
14667 の目次(
14668 \family sans
14669 移動
14670 \family default
14671 メニュー)には追加されません.
14672 \end_layout
14673
14674 \begin_layout Itemize
14675
14676 \emph on
14677 letter
14678 \emph default
14679 文書クラスでの段落は,垂直スペースによる段落区切りで表示され,字下げはされません.これが標準的な挙動となっていて,特別な\SpecialChar LaTeX
14680 コマンドは必要ありません.しかし,
14681 \family sans
14682 文書\SpecialChar menuseparator
14683 設定
14684 \family default
14685 ダイアログでは,対応するラジオボタンは
14686 \family sans
14687 字下げ
14688 \family default
14689 に設定されています.
14690 \family sans
14691 垂直スペース
14692 \family default
14693 は,隙間を空けるために,文書に\SpecialChar LaTeX
14694 コマンドをつねに追加するようになっていますが,この文書クラスの場合には,そのような挙動が望まれないためです.
14695 \end_layout
14696
14697 \begin_layout Section
14698 Memoir
14699 \end_layout
14700
14701 \begin_layout Standard
14702
14703 \noun on
14704 Jürgen Spitzmüller
14705 \noun default
14706
14707 \end_layout
14708
14709 \begin_layout Subsection
14710 概観
14711 \end_layout
14712
14713 \begin_layout Standard
14714 Memoirは,非常に強力で,着実に改良が加えられている文書クラスであり,フィクションとノンフィクションの文学作品用に設計されています.その目的は,ユーザーに,
14715 文書の組版に関して最大限の裁量を得させることにあります.Memoirは,標準bookクラスに基づいていますが,articleクラスをエミュレートすることもできま
14716 す(以下参照).
14717 \end_layout
14718
14719 \begin_layout Standard
14720 Memoir開発者であるPeter Wilsonは,\SpecialChar LaTeX
14721 の世界での,多くの便利なパッケージの作者として知られていますが,それらのほとんどは,Memoirに統合されま
14722 した.このため,章のデザインや,目次や付録などのレイアウトを,はるかに簡単に行うことができます.しかしながら,\SpecialChar LyX
14723 は,これらすべての素晴らしい機能をネイティブでサポ
14724 ートしているわけではありません.これらのうちいくつかは,将来のリリースで追加されるかもしれませんが
14725 \begin_inset Foot
14726 status collapsed
14727
14728 \begin_layout Plain Layout
14729 もし提案があれば,ぜひ
14730 \begin_inset Flex URL
14731 status collapsed
14732
14733 \begin_layout Plain Layout
14734
14735 lyx-devel@lists.lyx.org
14736 \end_layout
14737
14738 \end_inset
14739
14740 までお送り下さい.
14741 \end_layout
14742
14743 \end_inset
14744
14745 ,\SpecialChar LyX
14746 のフレームワークが持つ制約のために,おそらく決して追加されることのないと考えられるものも多数あります.もちろん,ネイティブな\SpecialChar LaTeX
14747 コマンド(\SpecialChar TeX
14748 コード
14749 \begin_inset Foot
14750 status collapsed
14751
14752 \begin_layout Plain Layout
14753 【参考】詳細は,第
14754 \begin_inset CommandInset ref
14755 LatexCommand ref
14756 reference "sec:TeXコードを挿入する"
14757
14758 \end_inset
14759
14760 節参照.
14761 \end_layout
14762
14763 \end_inset
14764
14765 )の助けを借りれば,全機能を使用できます.この節では,\SpecialChar LyX
14766 がネイティブにサポートしている機能についてのみ,列挙するものとします.詳細な説明(および他の機能)について
14767 は,Memoirクラスの詳しい取扱説明書
14768 \begin_inset Foot
14769 status collapsed
14770
14771 \begin_layout Plain Layout
14772 【参考】
14773 \begin_inset Flex URL
14774 status collapsed
14775
14776 \begin_layout Plain Layout
14777
14778 CTAN:/macros/latex/memoir/memman.pdf
14779 \end_layout
14780
14781 \end_inset
14782
14783
14784 \end_layout
14785
14786 \end_inset
14787
14788 をご覧になることをお勧めします.この取扱説明書は,本クラスのユーザーの手引きであるのみに留まらず,良い組版に関する包括的な解説であり,それ自身が良い組版の傑出し
14789 た用例となっています.
14790 \end_layout
14791
14792 \begin_layout Subsection
14793 基本的な機能と制約
14794 \end_layout
14795
14796 \begin_layout Standard
14797 Memoirは,基本的に,標準bookクラスの全機能をサポートしています.しかしながら,以下に示すような若干の違いがあります.
14798 \end_layout
14799
14800 \begin_layout Description
14801 フォント寸法: Memoirでは,9・10・11・12・14・17と,より広い範囲のフォント寸法が使用可能です.
14802 \end_layout
14803
14804 \begin_layout Description
14805 ページ様式: Memoirパッケージとfancyhdrパッケージとのコマンドの衝突のため(両パッケージは同じ名前のコマンドを定義しているため,\SpecialChar LaTeX
14806 が混乱させられます
14807 ),fancyページ様式は使用できません.その代わり,Memoirには,多くの独自のページ様式が付属してきます(
14808 \family sans
14809 文書\SpecialChar menuseparator
14810 設定\SpecialChar menuseparator
14811 ページレイアウト
14812 \family default
14813 参照).これらを章題ページに使用したい場合には,コマンド
14814 \family typewriter
14815
14816 \backslash
14817 chapterstyle
14818 \family default
14819 を,本文またはプリアンブルに記述する必要があります(例えば,
14820 \family typewriter
14821
14822 \backslash
14823 chapterstyle{companion}
14824 \family default
14825 など).
14826 \end_layout
14827
14828 \begin_layout Description
14829 節分け: 標準クラスでは,節分けコマンド(章・節・小節等)は,非必須引数を一つ取ることができます.これを用いて,目次やヘッダ用に別のタイトルを指定することができ
14830 ます(たとえば,タイトルが長すぎる場合などに用います).\SpecialChar LyX
14831 では,章や節の始めで
14832 \family sans
14833 挿入\SpecialChar menuseparator
14834 短縮タイトル
14835 \family default
14836 を使えば,これを指定することができます.一方,Memoirでは,第2の非必須引数を取ることができ,目次用のタイトルとヘッダ用のタイトルの指定を分離しています.\SpecialChar LyX
14837
14838 は,
14839 \family sans
14840 挿入
14841 \family default
14842 メニューから
14843 \family sans
14844 短縮タイトル
14845 \family default
14846 の特定の派生形の形で利用できます.
14847 \end_layout
14848
14849 \begin_layout Description
14850 目次・図一覧・表一覧: 標準クラス(および他の多くのクラス)では,目次と図一覧および表一覧は,自動的に新規頁に置かれます.Memoirは,これとは別の方針を採り
14851 ます.改頁を行いたい場合は,手動で頁区切りを入れなくてはなりません.
14852 \end_layout
14853
14854 \begin_layout Description
14855 タイトル頁: 理由は不明ですが,Memoirはタイトルページに丁付けを行います(標準クラスでは,タイトルページは「empty」様式).タイトル頁に丁付けを行いた
14856 くない場合には,プリアンブルに
14857 \family typewriter
14858
14859 \backslash
14860 aliaspagestyle{title}{empty}
14861 \family default
14862 と入力してください.
14863 \end_layout
14864
14865 \begin_layout Description
14866 Article: クラスオプション
14867 \emph on
14868 article
14869 \emph default
14870 を用いる(
14871 \family sans
14872 文書\SpecialChar menuseparator
14873 設定\SpecialChar menuseparator
14874 文書クラス\SpecialChar menuseparator
14875 クラスオプション\SpecialChar menuseparator
14876 任意設定
14877 \family default
14878 で入力)と,article様式をエミュレートできます.すなわち,(脚注・図・表等の)カウンタは,章毎にリセットされず,次の章は頁を改めず(ただし,「本物の」ar
14879 ticleクラスとは違って,頁を改めることも可),部はbookクラスと同様に,独立の頁を使用します.
14880 \end_layout
14881
14882 \begin_layout Description
14883 Oldfontcommands: \SpecialChar LaTeX
14884 旧2.09版で使用されていた旧いフォントコマンド(
14885 \family typewriter
14886
14887 \backslash
14888 rm
14889 \family default
14890
14891 \family typewriter
14892
14893 \backslash
14894 it
14895 \family default
14896 など)は,Memoirにおいては,既定では使用することができません.Memoirがこれらのコマンドを検知すると,エラーを発して\SpecialChar LaTeX
14897 を停止させます.しかし,クラスオプ
14898 ション
14899 \emph on
14900 oldfontcommands
14901 \emph default
14902 を指定すると,これらのコマンドが容認され,エラーの代わりに警告を発するのみとなります(これによって,少なくとも\SpecialChar LaTeX
14903 は停止しなくなります).まだ,多くのパッケージと,
14904 就中多くのBib\SpecialChar TeX
14905 スタイルファイルが,これらのコマンドを使用しているので,我々はこのオプションを既定で使うこととしました.
14906 \end_layout
14907
14908 \begin_layout Subsection
14909 追加された機能
14910 \end_layout
14911
14912 \begin_layout Standard
14913 \SpecialChar LyX
14914 でサポートされる機能(今のところそれほど多くはありません)を簡単に説明しましょう.詳しくはMemoirの取扱説明書
14915 \begin_inset Foot
14916 status collapsed
14917
14918 \begin_layout Plain Layout
14919 \begin_inset Flex URL
14920 status collapsed
14921
14922 \begin_layout Plain Layout
14923
14924 CTAN:/macros/latex/memoir/memman.pdf
14925 \end_layout
14926
14927 \end_inset
14928
14929
14930 \end_layout
14931
14932 \end_inset
14933
14934 を見てください.
14935 \end_layout
14936
14937 \begin_layout Description
14938 概要: 概要が,追加された機能として扱われているのを不思議に思われるかもしれませんが,bookクラスとしては追加された機能なのです.通常bookクラスには概要は
14939 ないのですが,memoirにはあります.これは,どこでも何回でも自由に使うことができます.
14940 \end_layout
14941
14942 \begin_layout Description
14943 章要約: この古い組版様式はご覧になったことがあるかも知れません.章の内容が,見出しの下と目次に要約されているものです(たとえば,「我らが英雄がトロヤに到着する
14944 .彼は友人を失うが,新たな友人を得る.」など).章要約(chapterprecis)はこれを行います.したがって,章要約は章の下でのみ意味を持ちます.
14945 \end_layout
14946
14947 \begin_layout Description
14948 題辞: 題辞(epigraph)は章頭の,気の利いた標語やモットーです.題辞環境は,そのような標語を組む洗練された方法を提供します.標語本体(本文)とその著者(
14949 出典:非必須)は,短い線で区切られます.著者(出典)は,
14950 \family sans
14951 挿入\SpecialChar menuseparator
14952 題辞出典
14953 \family default
14954 で入力できます.
14955 \end_layout
14956
14957 \begin_layout Description
14958 詩題: Memoirには(複雑で隠喩的なものも含めて)詩を組版するための多くの機能がありますが,\SpecialChar LyX
14959 は,そのうちいくつかしかサポートしていません.詩題はその一つです
14960 .これは詩用の中央揃えタイトルで,目次にも表示されます(詩句が詩の標準環境です.Memoirには,詩句の拡張版もありますが,これらを使うためには\SpecialChar TeX
14961 コードを使用しな
14962 くてはなりません.これらの環境は通常の詩句環境の中に入れ子にしなくてはならないのですが,\SpecialChar LyX
14963 ではそれができないためです).
14964 \end_layout
14965
14966 \begin_layout Description
14967 詩題*: 目次に現れない他は詩題と同じです.
14968 \end_layout
14969
14970 \begin_layout Section
14971 Article (mwart)・book (mwbk)・report (mwrep)
14972 \begin_inset Argument status
14973 status collapsed
14974
14975 \begin_layout Plain Layout
14976 The 
14977 \family typewriter
14978 mw
14979 \family default
14980  Classes
14981 \end_layout
14982
14983 \end_inset
14984
14985
14986 \end_layout
14987
14988 \begin_layout Standard
14989
14990 \noun on
14991 Tomasz Luczak
14992 \noun default
14993
14994 \end_layout
14995
14996 \begin_layout Standard
14997 \SpecialChar LyX
14998 文書クラス
14999 \emph on
15000 article (mwart)
15001 \emph default
15002
15003 \emph on
15004 report (mwrep)・book
15005 \emph default
15006  
15007 \emph on
15008 (mwbk)
15009 \emph default
15010 は,それぞれ\SpecialChar LaTeX
15011 文書クラス
15012 \family typewriter
15013 mwart.cls
15014 \family default
15015
15016 \family typewriter
15017 mwrep.cls
15018 \family default
15019
15020 \family typewriter
15021 mwbk.cls
15022 \family default
15023 に対応しています.これらは,標準の
15024 \family typewriter
15025 article.cls
15026 \family default
15027
15028 \family typewriter
15029 report.cls
15030 \family default
15031
15032 \family typewriter
15033 book.cls
15034 \family default
15035 を代替するものであり,多くの点で,ポーランド語の組版慣習によく適合しています.
15036 \end_layout
15037
15038 \begin_layout Standard
15039 基本的な違いは,次の点です.
15040 \end_layout
15041
15042 \begin_layout Itemize
15043 付番のない見出し(
15044 \family sans
15045 節*
15046 \family default
15047 などの星付き)も目次に加えられます.
15048 \end_layout
15049
15050 \begin_layout Itemize
15051 以下のページスタイルの追加
15052 \end_layout
15053
15054 \begin_deeper
15055 \begin_layout Description
15056 uheadings 分離線付きヘッダ
15057 \end_layout
15058
15059 \begin_layout Description
15060 myheadings 
15061 \family typewriter
15062
15063 \backslash
15064 markright
15065 \family default
15066 コマンドおよび
15067 \family typewriter
15068
15069 \backslash
15070 markboth
15071 \family default
15072 コマンドで設定するカスタムヘッダ
15073 \end_layout
15074
15075 \begin_layout Description
15076 myuheadings 分離線付きカスタムヘッダ
15077 \end_layout
15078
15079 \begin_layout Description
15080 outer ページの外側にページ番号
15081 \end_layout
15082
15083 \end_deeper
15084 \begin_layout Itemize
15085 オプション
15086 \end_layout
15087
15088 \begin_deeper
15089 \begin_layout Description
15090 rmheadings セリフ体見出し — 既定
15091 \end_layout
15092
15093 \begin_layout Description
15094 sfheadings サンセリフ体見出し
15095 \end_layout
15096
15097 \begin_layout Description
15098 authortitle タイトルページは,著者名・タイトルの順で配置 — 既定
15099 \end_layout
15100
15101 \begin_layout Description
15102 titleauthor タイトルページは,タイトル・著者名の順で配置
15103 \end_layout
15104
15105 \begin_layout Description
15106 withmarginpar ページ上に余白のための場所を確保
15107 \end_layout
15108
15109 \end_deeper
15110 \begin_layout Section
15111 Paper
15112 \end_layout
15113
15114 \begin_layout Standard
15115
15116 \family sans
15117 paper
15118 \family default
15119 文書クラスは標準
15120 \family sans
15121 article
15122 \family default
15123 クラスの代替となるものです.これは
15124 \family sans
15125 同様の
15126 \family default
15127 機能を提供しますが,サンセリフ体の節見出し・ヘッディング等を持つこちらのレイアウトの方が気に入るかも知れません.
15128 \end_layout
15129
15130 \begin_layout Section
15131 Rev\SpecialChar TeX
15132 4
15133 \end_layout
15134
15135 \begin_layout Standard
15136 by 
15137 \noun on
15138 Amir Karger
15139 \end_layout
15140
15141 \begin_layout Standard
15142 \begin_inset VSpace bigskip
15143 \end_inset
15144
15145
15146 \end_layout
15147
15148 \begin_layout Standard
15149 \noindent
15150
15151 \family sans
15152 Revtex
15153 \begin_inset space ~
15154 \end_inset
15155
15156 4
15157 \family default
15158 テキストクラスは,アメリカ物理学会のRev\SpecialChar TeX
15159  4.0(1999年5月の
15160 \begin_inset Formula $\beta$
15161 \end_inset
15162
15163 リリース)クラスで動作します.
15164 \end_layout
15165
15166 \begin_layout Standard
15167 \SpecialChar LyX
15168 には,Rev\SpecialChar TeX
15169  3.1で動作する
15170 \family sans
15171 Revtex
15172 \family default
15173 テキストクラスもあります.しかしながら,第3.1版は\SpecialChar LaTeX
15174  2.09で動作するものであり,基本的に時代遅れなものになっています.\SpecialChar LyX
15175 は\SpecialChar LaTeX2e
15176 を必要とすることから,第3.1版は\SpecialChar LyX
15177 とうまく
15178 協調しないことを意味しますが,動作するようには調整してあります.Rev\SpecialChar TeX
15179  4.0は,\SpecialChar LaTeX2e
15180 で素直に動作するようにデザインされているので,\SpecialChar LyX
15181
15182 \family sans
15183 Rev\SpecialChar TeX
15184
15185 \begin_inset space ~
15186 \end_inset
15187
15188 4
15189 \family default
15190 テキストクラスの組で使用するのは,たいへん簡単です.
15191 \end_layout
15192
15193 \begin_layout Standard
15194 この取扱説明書は,Rev\SpecialChar TeX
15195  4.0の説明書の
15196 \emph on
15197 補完
15198 \emph default
15199 として使用されることを前提としています.したがって,ここではRev\SpecialChar TeX
15200 固有マクロの説明はせず,必要な場合にはプリアンブルに何と書けば良いかを知っているものとして説明
15201 します.
15202 \end_layout
15203
15204 \begin_layout Subsection
15205 導入
15206 \end_layout
15207
15208 \begin_layout Standard
15209 Rev\SpecialChar TeX
15210  4パッケージのREADMEファイルにあるとおり,ともかくRev\SpecialChar TeX
15211  4を導入しなくてはなりません.パッケージは,The Rev\SpecialChar TeX
15212  4 Web
15213  Site 
15214 \begin_inset Flex URL
15215 status collapsed
15216
15217 \begin_layout Plain Layout
15218
15219 http://publish.aps.org/revtex4/
15220 \end_layout
15221
15222 \end_inset
15223
15224 から入手することができます.これを\SpecialChar LaTeX
15225 が検出することのできる場所に導入してください.それから,適当に選んだディレクトリ(もといクラスファイルを導入したのとは異なるデ
15226 ィレクトリ)で簡単なRev\SpecialChar TeX
15227  4文書を \SpecialChar LaTeX
15228 でコンパイルできるかどうか確認してください.この後,\SpecialChar LyX
15229 を環境構成すると,クラスファイルを検出し,Rev\SpecialChar TeX
15230 4テキストクラスが使用
15231 できるようになるはずです.
15232 \end_layout
15233
15234 \begin_layout Standard
15235 使い始めるには,
15236 \family typewriter
15237 tex2lyx
15238 \family default
15239 を使ってRev\SpecialChar TeX
15240  4文書を読み込むか,またはひな型ディレクトリにある
15241 \family sans
15242 Revtex
15243 \begin_inset space ~
15244 \end_inset
15245
15246 4
15247 \family default
15248 のひな型を使うのが,おそらく一番簡単な方法でしょう.
15249 \end_layout
15250
15251 \begin_layout Subsection
15252 プリアンブルに関すること
15253 \end_layout
15254
15255 \begin_layout Standard
15256
15257 \family typewriter
15258
15259 \backslash
15260 documentclass
15261 \family default
15262 に与える「preprint」や「aps」のような非必須引数は,他のクラス同様,
15263 \family sans
15264 文書\SpecialChar menuseparator
15265 設定\SpecialChar menuseparator
15266 文書クラス
15267 \family default
15268
15269 \family sans
15270 クラスオプション
15271 \family default
15272 フィールドに入れます.Rev\SpecialChar TeX
15273 では,少なくとも一つの非必須引数が必要なことに注意してください.
15274 \end_layout
15275
15276 \begin_layout Standard
15277
15278 \family typewriter
15279
15280 \backslash
15281 draft
15282 \family default
15283 など他のプリアンブルは,他のクラス同様,
15284 \family sans
15285 文書\SpecialChar menuseparator
15286 設定\SpecialChar menuseparator
15287 \SpecialChar LaTeX
15288 プリアンブル
15289 \family default
15290 に入れてください.
15291 \end_layout
15292
15293 \begin_layout Subsection
15294 レイアウト
15295 \end_layout
15296
15297 \begin_layout Standard
15298 レイアウトは,基本的にRev\SpecialChar TeX
15299 4.0のコマンドに対応しています.たとえば,Emailレイアウトは,
15300 \family typewriter
15301
15302 \backslash
15303 email{}
15304 \family default
15305 に対応しています.(少なくともRev\SpecialChar TeX
15306  4.0 Beta現在では)
15307 \family sans
15308 住所
15309 \family default
15310
15311 \family sans
15312 所属
15313 \family default
15314 はまったく同じものなので,両方を使う必要はありません
15315 \begin_inset Foot
15316 status collapsed
15317
15318 \begin_layout Plain Layout
15319 ついでながら,
15320 \family typewriter
15321 tex2lyx
15322 \family default
15323 は両方とも対応しているので,
15324 \family typewriter
15325
15326 \backslash
15327 address
15328 \family default
15329
15330 \family typewriter
15331
15332 \backslash
15333 affiliation
15334 \family default
15335 のどちらも翻訳することができます.
15336 \end_layout
15337
15338 \end_inset
15339
15340
15341 \end_layout
15342
15343 \begin_layout Subsection
15344 重要な注意
15345 \end_layout
15346
15347 \begin_layout Standard
15348 Rev\SpecialChar TeX
15349  4には,バグを引き起こしがちなために,気をつけなくてはならない特殊な面がいくつかあるため,\SpecialChar LyX
15350 ではさらに気をつけなくてはなりません.
15351 \end_layout
15352
15353 \begin_layout Standard
15354 Rev\SpecialChar TeX
15355 では,
15356 \family typewriter
15357
15358 \backslash
15359 thanks
15360 \family default
15361 コマンドは,
15362 \family typewriter
15363
15364 \backslash
15365 author
15366 \family default
15367 コマンドの
15368 \emph on
15369 外側
15370 \emph default
15371 に来なくてはなりません.\SpecialChar LyX
15372 では,独立した
15373 \family sans
15374 感謝
15375 \family default
15376 レイアウトがこの働きをします.直接
15377 \family sans
15378 ,著者
15379 \family default
15380 レイアウトに脚注を付けてしまうと,おかしなことが起こる可能性があります.詳細については,Rev\SpecialChar TeX
15381  4の取扱説明書をご覧ください.
15382 \end_layout
15383
15384 \begin_layout Standard
15385 また,
15386 \family sans
15387 著者電子メール
15388 \family default
15389
15390 \family sans
15391 著者URL・感謝(thanks)
15392 \family default
15393 レイアウトは,
15394 \family sans
15395 著者
15396 \family default
15397 レイアウトと
15398 \family sans
15399 住所(
15400 \family default
15401 または同等の
15402 \family sans
15403 所属
15404 \family default
15405 )レイアウトの間に置かなければなりません.
15406 \family sans
15407 感謝(thanks)
15408 \family default
15409
15410 \family sans
15411 住所
15412 \family default
15413 の後に置いてしまうと,\SpecialChar LaTeX
15414 はコンパイルに失敗します.
15415 \end_layout
15416
15417 \begin_layout Section
15418 Springer学術誌(
15419 \family sans
15420 svjour)
15421 \end_layout
15422
15423 \begin_layout Standard
15424
15425 \noun on
15426 Martin Vermeer
15427 \noun default
15428
15429 \end_layout
15430
15431 \begin_layout Subsection
15432 説明
15433 \end_layout
15434
15435 \begin_layout Standard
15436 これは,Springer Verlag社発行のいくつかの学術誌で使用されている書式のレイアウトファイルです.
15437 \begin_inset Flex URL
15438 status collapsed
15439
15440 \begin_layout Plain Layout
15441
15442 http://www.springer.de/author/tex/help-journals.html
15443 \end_layout
15444
15445 \end_inset
15446
15447 に必要なクラスファイル(\SpecialChar LaTeX2e
15448 用になりました)とそれに対応する学術誌の一覧があります.このレイアウトはモジュール式になっています.つまり,全ジャーナル共通部分は
15449 \family typewriter
15450 svjour.inc
15451 \family default
15452 に実装されており,各誌個別のレイアウトファイル(たとえばJournal of Geodesy用の
15453 \family typewriter
15454 svjog.layout
15455 \family default
15456 など)から取り込むことができます.
15457 \end_layout
15458
15459 \begin_layout Standard
15460 このことは,上記の学術誌一覧にある他のSpringer誌のサポートを実装するためには,
15461 \family typewriter
15462 svjog.layout
15463 \family default
15464 に書かれている指示に従って,自作の
15465 \family typewriter
15466 sv
15467 \family default
15468 <学術誌名>
15469 \family typewriter
15470 .layout
15471 \family default
15472 を書くだけで良いことを意味します.
15473 \end_layout
15474
15475 \begin_layout Standard
15476 このレイアウトは,Journal of Geodesyに対してのみ,充分な試験が為されています.
15477 \family typewriter
15478 svjour
15479 \family default
15480
15481 \family typewriter
15482 svjog
15483 \family default
15484 は,標準\SpecialChar LyX
15485 頒布版に収録済みです.関連するクラスファイルを(Springerからダウンロードして)適切なディレクトリに導入し,\SpecialChar LaTeX
15486 を再設定した後(teTeXの場合は,必
15487 要に応じてroot権限で
15488 \family typewriter
15489 texhash
15490 \family default
15491 を実行します),\SpecialChar LyX
15492 を環境構成すれば,動作するはずです.
15493 \end_layout
15494
15495 \begin_layout Subsection
15496 新スタイル
15497 \end_layout
15498
15499 \begin_layout Standard
15500 多くの定理環境 — 
15501 \family sans
15502 主張
15503 \family default
15504
15505 \family sans
15506 推論
15507 \family default
15508 ・\SpecialChar ldots
15509
15510 \family sans
15511 定理
15512 \family default
15513
15514 \end_layout
15515
15516 \begin_layout Standard
15517
15518 \family sans
15519 ヘッドノート
15520 \family default
15521
15522 \family sans
15523 献呈
15524 \family default
15525
15526 \family sans
15527 サブタイトル・ヘッダ用\SpecialChar LaTeX
15528 タイトル・ヘッダ用著者名・所属機関・メール・オフプリント・キーワード・謝辞(acknowledgements)・謝辞(acknowledg
15529 ement)
15530 \family default
15531 .詳しくは Springerのクラスファイルの説明書を読んでください.
15532 \end_layout
15533
15534 \begin_layout Subsection
15535 サポートしているジャーナル
15536 \end_layout
15537
15538 \begin_layout Itemize
15539
15540 \emph on
15541 Journal of Geodesy
15542 \emph default
15543
15544 \family typewriter
15545 svjog.layout
15546 \family default
15547  — Martin Vermeer
15548 \end_layout
15549
15550 \begin_layout Itemize
15551
15552 \emph on
15553 Probability Theory and Related Fields
15554 \emph default
15555
15556 \family typewriter
15557 svprobth.layout
15558 \family default
15559  — Jean-Marc Lasgouttes
15560 \end_layout
15561
15562 \begin_layout Standard
15563 あなた自身のレイアウトファイルをつくってください.難しくはありません.
15564 \end_layout
15565
15566 \begin_layout Subsection
15567 Credits
15568 \end_layout
15569
15570 \begin_layout Standard
15571 これらのファイルは,以前の 
15572 \family typewriter
15573 ejour2.layout
15574 \family default
15575 をもとにしています.
15576 \family typewriter
15577 ejour2.layout
15578 \family default
15579 は Springerの\SpecialChar LaTeX
15580  2.09用のスタイルファイルを使った素人細工のようなレイアウトファイルです.これらのファイルはすでにありません.Jean-Marc
15581  Lasgouttesのおかげで \SpecialChar LyX
15582 のレイアウトファイルのメカニズムをよりよく理解することができました.
15583 \end_layout
15584
15585 \begin_layout Subsection
15586 バグ
15587 \end_layout
15588
15589 \begin_layout Standard
15590 多分あります.以前の 
15591 \family typewriter
15592 ejour2
15593 \family default
15594 よりは少なくなっているとは思いますが.
15595 \end_layout
15596
15597 \begin_layout Section
15598 Slides別名
15599 \noun on
15600 Sli\SpecialChar TeX
15601
15602 \noun default
15603
15604 \begin_inset Foot
15605 status collapsed
15606
15607 \begin_layout Plain Layout
15608 (訳註)この節の内容は,全般的に古くなっています.
15609 \end_layout
15610
15611 \end_inset
15612
15613
15614 \begin_inset CommandInset label
15615 LatexCommand label
15616 name "sec:slitex"
15617
15618 \end_inset
15619
15620
15621 \end_layout
15622
15623 \begin_layout Standard
15624
15625 \noun on
15626 John Weiss
15627 \noun default
15628
15629 \end_layout
15630
15631 \begin_layout Subsection
15632 はじめに
15633 \end_layout
15634
15635 \begin_layout Standard
15636 本節では,オーバーへッドプロジェクタ用のスライドをつくるのに,\SpecialChar LyX
15637 をどのように使えばよいかを説明します.これを行う文書クラスには,既定のslideクラスと
15638 \family sans
15639 Foil\SpecialChar TeX
15640
15641 \family default
15642 スライドクラスの2つがあります.本節は前者について説明を行います.
15643 \end_layout
15644
15645 \begin_layout Standard
15646 誤解のないように,正しく明確に,もう一度言っておきます.
15647 \end_layout
15648
15649 \begin_layout Standard
15650 \begin_inset VSpace bigskip
15651 \end_inset
15652
15653
15654 \end_layout
15655
15656 \begin_layout Standard
15657 \align center
15658
15659 \size large
15660 本節は文書クラス
15661 \begin_inset Quotes eld
15662 \end_inset
15663
15664
15665 \family sans
15666 transparencies (slides)
15667 \family default
15668
15669 \begin_inset Quotes erd
15670 \end_inset
15671
15672
15673 \emph on
15674 のみ
15675 \emph default
15676 を説明しています.
15677 \end_layout
15678
15679 \begin_layout Standard
15680 \begin_inset VSpace bigskip
15681 \end_inset
15682
15683
15684 \end_layout
15685
15686 \begin_layout Standard
15687
15688 \family sans
15689 「slides (Foil\SpecialChar TeX
15690 )
15691 \family default
15692 」の説明をお探しならば,第
15693 \begin_inset CommandInset ref
15694 LatexCommand ref
15695 reference "sec:foiltex"
15696
15697 \end_inset
15698
15699 節をご覧ください.
15700 \family sans
15701 foils
15702 \family default
15703 クラス「
15704 \family sans
15705 slides (Foil\SpecialChar TeX
15706 )
15707 \family default
15708 」は,実際,本節で説明している既定
15709 \family sans
15710 slides
15711 \family default
15712 クラスよりも良いようです
15713 \begin_inset Foot
15714 status collapsed
15715
15716 \begin_layout Plain Layout
15717 \SpecialChar ldots
15718
15719 \family sans
15720 Foil\SpecialChar TeX
15721
15722 \family default
15723 の支持者からは聞いています.けれども私は使ったことがないので,本当かどうか確かめようがありません.
15724 \end_layout
15725
15726 \end_inset
15727
15728
15729 \end_layout
15730
15731 \begin_layout Standard
15732 このクラスは,旧SLI\SpecialChar TeX
15733 パッケージを\SpecialChar LaTeX2e
15734 用に改良したものです.\SpecialChar LaTeX2e
15735 頒布版すべてが,このクラス(以下では単に「
15736 \family sans
15737 slides
15738 \family default
15739 」と述べることにします)を含んでいるので,あなたもお持ちのはずです.前述の
15740 \family sans
15741 foils
15742 \family default
15743 のように,同じくオーバーへッドプロジェクタ用のスライドを生成しながら,このクラスよりも良い仕事をするクラスもあります.しかしながら,オーバーレイを生成するなど,
15744 他のクラスにはできないが
15745 \family sans
15746 slides
15747 \family default
15748 ならばできることもあります.詳しくは以下をお読みください.
15749 \end_layout
15750
15751 \begin_layout Subsection
15752 使い始めるには
15753 \begin_inset CommandInset label
15754 LatexCommand label
15755 name "sec:slidesetup"
15756
15757 \end_inset
15758
15759
15760 \end_layout
15761
15762 \begin_layout Standard
15763 当然ながら,この文書クラスを使用するには,
15764 \family sans
15765 文書\SpecialChar menuseparator
15766 設定
15767 \family default
15768 ダイアログのクラスリストから「
15769 \family sans
15770 transparencies (slides)
15771 \family default
15772 」を選択しなくてはなりません.このクラスについて,以下のように,特に知っておいた方が良いことがいくつかあります.
15773 \end_layout
15774
15775 \begin_layout Itemize
15776
15777 \family sans
15778 用紙方向
15779 \family default
15780
15781 \family sans
15782 二段組文書
15783 \family default
15784 の各オプションは,あえて変更する必要はありません.これらのオプションは,
15785 \family sans
15786 slides
15787 \family default
15788 クラスではサポートされていないので,効果がありません.
15789 \end_layout
15790
15791 \begin_layout Itemize
15792
15793 \family sans
15794 ヘディング様式
15795 \family default
15796 オプションは,このクラスでは少し異なった振る舞いをします.各選択肢とその機能は,以下の通りです.
15797 \end_layout
15798
15799 \begin_deeper
15800 \begin_layout Description
15801 プレーン(plain) 最終出力の右下隅にページ番号が付きます.
15802 \end_layout
15803
15804 \begin_layout Description
15805 設定(headings)
15806 \family sans
15807  プレーン(plain)
15808 \family default
15809 と同様ですが,それ以外にあなたが指定したタイムマーカーをすべて出力します.これが既定値です.
15810 \end_layout
15811
15812 \begin_layout Description
15813 空 最終出力には,ページ番号もタイムマーカーも位置揃えマーカーも出力されません.
15814 \end_layout
15815
15816 \end_deeper
15817 \begin_layout Itemize
15818
15819 \family sans
15820 slides
15821 \family default
15822 クラスには,もう一つ
15823 \family typewriter
15824 clock
15825 \family default
15826 というオプションがあります.これを使用するには,
15827 \family sans
15828 クラスオプション
15829 \family default
15830 に「
15831 \family typewriter
15832 clock
15833 \family default
15834 」と入力してください.
15835 \end_layout
15836
15837 \begin_deeper
15838 \begin_layout Standard
15839 このオプションを使うと,
15840 \family sans
15841 注釈
15842 \family default
15843 にタイムマーカーを加えることができます.詳細は,第
15844 \begin_inset CommandInset ref
15845 LatexCommand ref
15846 reference "sec:スライド注釈"
15847
15848 \end_inset
15849
15850 節をご覧ください.
15851 \end_layout
15852
15853 \end_deeper
15854 \begin_layout Standard
15855
15856 \family sans
15857 slides
15858 \family default
15859 クラスを用いた文書を自動的にセットアップするには,ひな型ファイル「
15860 \family typewriter
15861 slides.lyx
15862 \family default
15863 」を使用することもできます(新規ファイルを開く際に
15864 \family sans
15865 ファイル\SpecialChar menuseparator
15866 新規(ひな型使用)
15867 \family default
15868 を使用してください).ひな型ファイルには,このクラスが使用する特別な段落環境の用例も含まれています.これらについては,以下で説明します.
15869 \end_layout
15870
15871 \begin_layout Subsection
15872 段落環境
15873 \end_layout
15874
15875 \begin_layout Subsubsection
15876
15877 \family sans
15878 サポートされている環境
15879 \end_layout
15880
15881 \begin_layout Standard
15882 新しく
15883 \family sans
15884 slides
15885 \family default
15886 文書を開いたときにまず気付くのは,フォント寸法とフォント族の違いでしょう.ここでは,
15887 \family sans
15888 サンセリフ体
15889 \family default
15890 フォントの
15891 \family sans
15892 極大
15893 \family default
15894 寸法が用いられており,出力でもこのフォントが使用されます.これは,現在スライドを作成中であることの「目印」だと考えてください.出力スライドは大きなフォントを使用
15895 するため,書ける場所は少なくなります.もちろん,既定の大きな画面フォントはWYSIWYGではなく,スライドであることの目印に過ぎません.
15896 \end_layout
15897
15898 \begin_layout Standard
15899 次に気付くのは,(ツールバー左端の)段落環境プルダウンボックスが変わっていることでしょう.通常見かける環境の多くがなくなって,代わりに5つの新しい環境が入ってい
15900 ます.これは,
15901 \family sans
15902 slides
15903 \family default
15904 クラスが,標準段落環境のうち以下のものしかサポートしていないためです.
15905 \end_layout
15906
15907 \begin_layout Itemize
15908
15909 \family sans
15910 標準
15911 \end_layout
15912
15913 \begin_layout Itemize
15914
15915 \family sans
15916 箇条書き(記号)
15917 \end_layout
15918
15919 \begin_layout Itemize
15920
15921 \family sans
15922 箇条書き(連番)
15923 \end_layout
15924
15925 \begin_layout Itemize
15926
15927 \family sans
15928 箇条書き(記述)
15929 \end_layout
15930
15931 \begin_layout Itemize
15932
15933 \family sans
15934 箇条書き(一覧)
15935 \end_layout
15936
15937 \begin_layout Itemize
15938
15939 \family sans
15940 引用(字下げあり)
15941 \end_layout
15942
15943 \begin_layout Itemize
15944
15945 \family sans
15946 引用(字下げなし)
15947 \end_layout
15948
15949 \begin_layout Itemize
15950
15951 \family sans
15952 詩句
15953 \end_layout
15954
15955 \begin_layout Itemize
15956
15957 \family sans
15958 キャプション
15959 \end_layout
15960
15961 \begin_layout Itemize
15962
15963 \family sans
15964 \SpecialChar LyX
15965 コード
15966 \end_layout
15967
15968 \begin_layout Standard
15969 これ以外の標準的な環境,例えば節見出し用の環境などは
15970 \family sans
15971 slides
15972 \family default
15973 クラスでは使えません.
15974 \end_layout
15975
15976 \begin_layout Standard
15977 一方,以下の新しい環境があります.
15978 \end_layout
15979
15980 \begin_layout Itemize
15981
15982 \family sans
15983 スライド
15984 \end_layout
15985
15986 \begin_layout Itemize
15987
15988 \family sans
15989 オーバーレイ
15990 \end_layout
15991
15992 \begin_layout Itemize
15993
15994 \family sans
15995 注釈
15996 \end_layout
15997
15998 \begin_layout Itemize
15999
16000 \family sans
16001 不可視文
16002 \end_layout
16003
16004 \begin_layout Itemize
16005
16006 \family sans
16007 可視文
16008 \end_layout
16009
16010 \begin_layout Standard
16011 これら5つの環境は,\SpecialChar LyX
16012 の「機能」のために使い方に癖があります.ご存じのように,\SpecialChar LyX
16013 では,空の段落環境に他の環境を入れることができません.それ自体は素晴らしいデザインな
16014 のですが,これは,スライドを平文以外では書き始めることができないことを意味します.これを取り扱うためには,ちょっとした「\SpecialChar LaTeX
16015 マジック」が必要になります.
16016 \end_layout
16017
16018 \begin_layout Subsubsection
16019 新環境の癖
16020 \begin_inset CommandInset label
16021 LatexCommand label
16022 name "sec:スライドの癖"
16023
16024 \end_inset
16025
16026
16027 \end_layout
16028
16029 \begin_layout Standard
16030 5つの新しい環境にはすべて,\SpecialChar LyX
16031 現行版の制約に由来する癖があります.いま述べたように,\SpecialChar LyX
16032 では,環境を別の環境で開始することが禁止されています.これを回避するために,
16033 \family sans
16034 スライド
16035 \family default
16036 環境は『
16037 \emph on
16038 ユーザーの手引き
16039 \emph default
16040 』で述べられているような段落環境ではなくなっています.
16041 \end_layout
16042
16043 \begin_layout Standard
16044
16045 \family sans
16046 スライド
16047 \family default
16048
16049 \family sans
16050 オーバーレイ
16051 \family default
16052
16053 \family sans
16054 注釈
16055 \family default
16056 は「疑似環境」だとお考えください.これらは節見出しや「
16057 \family sans
16058 キャプション
16059 \family default
16060 」のように見えますが,実際には(必要なら前段落を終了して)新しい段落環境を開始します.同様に,
16061 \family sans
16062 不可視文
16063 \family default
16064
16065 \family sans
16066 可視文
16067 \family default
16068 も「疑似コマンド」とお考えください.この2つは特定のアクションを行います.
16069 \end_layout
16070
16071 \begin_layout Standard
16072
16073 \family sans
16074 スライド
16075 \family default
16076
16077 \family sans
16078 オーバーレイ
16079 \family default
16080
16081 \family sans
16082 注釈
16083 \family default
16084
16085 \family sans
16086 不可視文
16087 \family default
16088
16089 \family sans
16090 可視文
16091 \family default
16092 の5環境に共通しているのは,長めのラベルを持つことです.このラベルに続く文章—通常は段落環境の内容になるはずですが—は,
16093 \family sans
16094 スライド
16095 \family default
16096
16097 \family sans
16098 オーバーレイ
16099 \family default
16100
16101 \family sans
16102 注釈
16103 \family default
16104
16105 \family sans
16106 不可視文
16107 \family default
16108
16109 \family sans
16110 可視文
16111 \family default
16112 では,まったく意味がなく,\SpecialChar LyX
16113 はこの部分を完全に無視します.これらの5つの環境の内容は,完全に空のままにしておいて構いません.
16114 \end_layout
16115
16116 \begin_layout Standard
16117 長めのラベルの後に文章を入れる
16118 \emph on
16119 必要は
16120 \emph default
16121 まったく
16122 \emph on
16123 ない
16124 \emph default
16125 とはいえ,何か書いておきたいこともあるかもしれません.たとえば,スライドの内容に関する短い説明などがそうでしょう.この場合,いつもどおり説明用のコメントを入力し
16126
16127 \family sans
16128 Return
16129 \family default
16130 を押してください.
16131 \end_layout
16132
16133 \begin_layout Standard
16134 一方,説明文を入れたくない場合には,\SpecialChar LyX
16135 の制約に直面します.自然が真空を憎むように,\SpecialChar LyX
16136 では,古い環境に何かを置くまでは,その中に新しい環境を入れることができません.そ
16137 こで以下のようにしてください.
16138 \end_layout
16139
16140 \begin_layout Itemize
16141 新しい
16142 \family sans
16143 スライド
16144 \family default
16145
16146 \family sans
16147 オーバーレイ
16148 \family default
16149
16150 \family sans
16151 注釈
16152 \family default
16153
16154 \family sans
16155 不可視文
16156 \family default
16157
16158 \family sans
16159 可視文
16160 \family default
16161
16162 \emph on
16163 中に入れる
16164 \emph default
16165 文章を入力してください.
16166 \end_layout
16167
16168 \begin_layout Itemize
16169 段落の先頭に移動します.
16170 \end_layout
16171
16172 \begin_layout Itemize
16173 次に
16174 \family sans
16175 Return
16176 \family default
16177 を押します.
16178 \end_layout
16179
16180 \begin_layout Itemize
16181 最後に,この新しい空の段落を
16182 \family sans
16183 スライド
16184 \family default
16185
16186 \family sans
16187 オーバーレイ
16188 \family default
16189
16190 \family sans
16191 注釈
16192 \family default
16193
16194 \family sans
16195 不可視文
16196 \family default
16197
16198 \family sans
16199 可視文
16200 \family default
16201 に変更します.
16202 \end_layout
16203
16204 \begin_layout Standard
16205 将来の\SpecialChar LyX
16206 では,このような癖が解決されることを祈っています\SpecialChar ldots
16207
16208 \begin_inset Foot
16209 status collapsed
16210
16211 \begin_layout Plain Layout
16212 (訳註)ここの記述は古くなっています.
16213 \end_layout
16214
16215 \end_inset
16216
16217
16218 \end_layout
16219
16220 \begin_layout Subsection
16221
16222 \family sans
16223 スライド
16224 \family default
16225
16226 \family sans
16227 オーバーレイ
16228 \family default
16229
16230 \family sans
16231 注釈で発表用のスライドを作る
16232 \end_layout
16233
16234 \begin_layout Subsubsection
16235
16236 \family sans
16237 スライド
16238 \family default
16239 環境を使う
16240 \end_layout
16241
16242 \begin_layout Standard
16243 もし本節が,実際のプレゼンテーションの作り方を教えてくれるものと期待されているとすれば,大いにがっかりされるかもしれません.当然ながら,プレゼンテーション用の資
16244 料を準備するうえで
16245 \family sans
16246 slides
16247 \family default
16248 クラスを役立てる方法を詳しく説明はしますが,内容をどうするかはあなた次第です(そしてこれも\SpecialChar LyX
16249 の哲学です).
16250 \end_layout
16251
16252 \begin_layout Standard
16253
16254 \family sans
16255 スライド
16256 \family default
16257 環境を選択すれば(方法は第
16258 \begin_inset CommandInset ref
16259 LatexCommand ref
16260 reference "sec:スライドの癖"
16261
16262 \end_inset
16263
16264 節参照のこと),\SpecialChar LyX
16265 は新規スライドを開始します.この環境ないし「疑似環境」のラベルは,鮮やかな青で「新規スライド:」と表示されます.この環境の後のテキスト環境や段落
16266 環境は,すべて新規スライドに入ります.簡単ですよね.
16267 \end_layout
16268
16269 \begin_layout Standard
16270 Slidesは,おそらく\SpecialChar LyX
16271 の中で強制的に改頁をしなくてはならない唯一のクラスです(これは
16272 \family sans
16273 段落レイアウト
16274 \family default
16275 ダイアログで指定できます).実際,一つのスライドの内容を入力し終わったら,改頁したくなるはずです.仮に一つのスライドに物理的に入りきらない文章を入力したとすると
16276 ,入りきらない部分は,次の新規スライドにまわされます.しかしながら,入りきらない部分のスライドにはページ番号が付きませんので,こうするのはお勧めしません.その上
16277 ,一枚に収まらないスライドでは,
16278 \family sans
16279 オーバーレイ
16280 \family default
16281 を使用すると干渉する恐れがあります.
16282 \end_layout
16283
16284 \begin_layout Standard
16285
16286 \family sans
16287 オーバーレイ
16288 \family default
16289 環境と
16290 \family sans
16291 注釈
16292 \family default
16293 環境も,
16294 \family sans
16295 スライド
16296 \family default
16297 環境と同様の動作を示します.これらは,青の代わりに鮮やかなマゼンタで,それぞれ「
16298 \noun on
16299 新規オーバーレイ
16300 \noun default
16301 :」ないし「
16302 \noun on
16303 新規注釈:
16304 \noun default
16305 」というラベルを表示します.ラベルのフォントも,3つの環境でそれぞれ異なるものが使用されます.
16306 \end_layout
16307
16308 \begin_layout Standard
16309
16310 \family sans
16311 スライド
16312 \family default
16313 と同様に,
16314 \family sans
16315 オーバーレイ
16316 \family default
16317
16318 \family sans
16319 注釈
16320 \family default
16321 の内容が,一つのスライドないしページに物理的に収まりきらない場合には,余分は新規スライドに回されます.この場合には,
16322 \family sans
16323 注釈
16324 \family default
16325
16326 \family sans
16327 オーバーレイ
16328 \family default
16329 の本来の目的が達せられなくなりますので,ここでもこのような状態は避けるべきでしょう.
16330 \end_layout
16331
16332 \begin_layout Subsubsection
16333
16334 \family sans
16335 スライドでオーバーレイを使用する
16336 \end_layout
16337
16338 \begin_layout Standard
16339
16340 \family sans
16341 オーバーレイ
16342 \family default
16343 の背後にある考え方は,別のスライドの上にスライドを載せようとするものです.メインの
16344 \family sans
16345 スライド
16346 \family default
16347 に図があるとき,関連した文章を表示する前に,図について議論を進めたいと思うことがあるかもしれません.これを行うひとつの方法は,
16348 \family sans
16349 スライド
16350 \family default
16351 で後に表示したい部分に黒い紙の蓋を貼り付けてしまうことですが,この方法は,たとえばグラフを他のグラフに重ねたい場合などには,うまく行きません.この場合には,二つ
16352 のグラフを揃えるために,重ねる二つのスライドを,喋りながら手探りで揃えなくてはなりません.これらのような場合には,
16353 \family sans
16354 オーバーレイ
16355 \family default
16356 環境を使えば,もっと楽になります.
16357 \end_layout
16358
16359 \begin_layout Standard
16360
16361 \family sans
16362 オーバーレイ
16363 \family default
16364 は,「親」
16365 \family sans
16366 スライド
16367 \family default
16368 のページ番号を引継ぎ,その後に「
16369 \family typewriter
16370 -a
16371 \family default
16372 」を付け加えます
16373 \begin_inset Foot
16374 status collapsed
16375
16376 \begin_layout Plain Layout
16377 想像できるように,複数のオーバーレイがあれば,「
16378 \family typewriter
16379 -a
16380 \family default
16381 」「
16382 \family typewriter
16383 -b
16384 \family default
16385 」「
16386 \family typewriter
16387 -c
16388 \family default
16389 」などが親スライドのページ番号に付け加えられます.
16390 \end_layout
16391
16392 \end_inset
16393
16394 .当然のことながら,
16395 \family sans
16396 スライド
16397 \family default
16398
16399 \family sans
16400 オーバーレイ
16401 \family default
16402 の内容は両方とも,1枚のスライドに物理的に収まるようになっていなければなりません.
16403 \family sans
16404 オーバーレイ
16405 \family default
16406
16407 \family sans
16408 スライド
16409 \family default
16410 の「一部」であると考えるのがよいでしょう.\SpecialChar LyX
16411 では,
16412 \family sans
16413 オーバーレイ
16414 \family default
16415 のラベルを
16416 \family sans
16417 スライド
16418 \family default
16419 のラベルよりも下げることで,このことを視覚的に表しています.また,印刷可能な出力を生成すると,
16420 \family sans
16421 オーバーレイ
16422 \family default
16423 と親
16424 \family sans
16425 スライド
16426 \family default
16427 両方の四隅に,揃えマーカーがあることに気づかれるはずです.これは,2枚のスライドを物理的に重ね合わせるための補助となるものです.
16428 \end_layout
16429
16430 \begin_layout Standard
16431 2つのスライドをオーバーレイさせる際の大きな問題は,2枚のスライドの内容を揃えることです.2枚目のスライドのグラフには,どれだけの余白を残しておくべきなのでしょ
16432 うか?さらにややこしく,2枚目のスライドにグラフと文章を入れたいときに,その間に割り込んでしまうような文章がメインスライドにある場合には,どうでしょうか?正しい
16433 寸法の垂直スペースを挿入してみることもできるでしょう.しかし,もっと良い方法として,
16434 \family sans
16435 不可視文
16436 \family default
16437
16438 \family sans
16439 可視文
16440 \family default
16441 を使用する方法があります.
16442 \end_layout
16443
16444 \begin_layout Standard
16445 これらの名前が意味するとおり,
16446 \family sans
16447 不可視文
16448 \family default
16449
16450 \family sans
16451 可視文
16452 \family default
16453 は,それぞれ続く文章すべてを見えなくしたり見えるようにしたりするコマンド型の段落環境です.しかしながら,第
16454 \begin_inset CommandInset ref
16455 LatexCommand ref
16456 reference "sec:スライドの癖"
16457
16458 \end_inset
16459
16460 節で述べたように,この2つの環境の
16461 \emph on
16462
16463 \emph default
16464 には何も置くことができません.
16465 \family sans
16466 不可視文
16467 \family default
16468 を作成すると,「<以下不可視文>」と書かれた水色のラベルが,ページに中央揃えで表示されます.このラベルに続く段落は,それが置かれるべき
16469 \family sans
16470 スライド
16471 \family default
16472 (あるいは
16473 \family sans
16474 オーバーレイ
16475 \family default
16476 ;どちらでも同じことです)部分に,代わりに空白の部分が置かれます.
16477 \end_layout
16478
16479 \begin_layout Standard
16480
16481 \family sans
16482 可視文
16483 \family default
16484 の場合には,中央揃えのラベルは,鮮やかな緑の「<以下可視文>」となります.このラベル以降の段落は,通常通りの挙動を示します.新規の
16485 \family sans
16486 スライド
16487 \family default
16488
16489 \family sans
16490 オーバーレイ
16491 \family default
16492
16493 \family sans
16494 注釈
16495 \family default
16496 を開始すると,
16497 \family sans
16498 不可視文
16499 \family default
16500 は自動的に終了されることに注意してください.したがって,
16501 \family sans
16502 スライド
16503 \family default
16504 の終わりでは,
16505 \family sans
16506 可視文
16507 \family default
16508 を使用する必要はありません.
16509 \end_layout
16510
16511 \begin_layout Standard
16512 ここまでで,
16513 \family sans
16514 スライド
16515 \family default
16516
16517 \family sans
16518 オーバーレイ
16519 \family default
16520 上で
16521 \family sans
16522 不可視文
16523 \family default
16524
16525 \family sans
16526 可視文
16527 \family default
16528 を適切に使用して,スライドをオーバーレイさせる方法が明らかになったことと思います.
16529 \end_layout
16530
16531 \begin_layout Enumerate
16532 メインのスライドか
16533 \family sans
16534 オーバーレイ
16535 \family default
16536 かに関わらず,スライド上に現れるすべてを含んだ
16537 \family sans
16538 スライド
16539 \family default
16540 を作成します.
16541 \end_layout
16542
16543 \begin_layout Enumerate
16544
16545 \family sans
16546 オーバーレイ
16547 \family default
16548 のみに表示するすべての図や段落の前に,
16549 \family sans
16550 不可視文
16551 \family default
16552 環境を挿入し,必要ならば,
16553 \family sans
16554 オーバーレイ
16555 \family default
16556 のみの文章の後に
16557 \family sans
16558 可視文
16559 \family default
16560 環境を挿入します.
16561 \end_layout
16562
16563 \begin_layout Enumerate
16564
16565 \family sans
16566 スライド
16567 \family default
16568 の直後から,
16569 \family sans
16570 オーバーレイ
16571 \family default
16572 を開始します.
16573 \end_layout
16574
16575 \begin_layout Enumerate
16576 この
16577 \family sans
16578 スライド
16579 \family default
16580 の内容を
16581 \family sans
16582 オーバーレイ
16583 \family default
16584 にコピーします.
16585 \end_layout
16586
16587 \begin_layout Enumerate
16588
16589 \family sans
16590 オーバーレイ
16591 \family default
16592 内部の
16593 \family sans
16594 不可視文
16595 \family default
16596 行をすべて
16597 \family sans
16598 不可視文
16599 \family default
16600 に変更し,
16601 \family sans
16602 可視文
16603 \family default
16604
16605 \family sans
16606 不可視文
16607 \family default
16608 に変更します.
16609 \end_layout
16610
16611 \begin_layout Standard
16612 これだけです.これで
16613 \family sans
16614 オーバーレイ
16615 \family default
16616 ができあがりました.
16617 \end_layout
16618
16619 \begin_layout Standard
16620 \SpecialChar LyX
16621  
16622 \family sans
16623 slides
16624 \family default
16625 クラスをデザインする上で,ひとつ残された問題があります.段落途中の文章を不可視にしたり,不可視段落の途中の文章を再度可視にしたりすることはできないのです.これを
16626 実現するためには,\SpecialChar LaTeX
16627 コードを埋め込む必要があります
16628 \begin_inset Foot
16629 status collapsed
16630
16631 \begin_layout Plain Layout
16632 このコマンドは,
16633 \end_layout
16634
16635 \begin_layout Itemize
16636
16637 \family typewriter
16638 {
16639 \backslash
16640 invisible \SpecialChar ldots
16641  }
16642 \end_layout
16643
16644 \begin_layout Itemize
16645
16646 \family typewriter
16647 {
16648 \backslash
16649 visible \SpecialChar ldots
16650  }
16651 \end_layout
16652
16653 \begin_layout Plain Layout
16654 \SpecialChar ldots
16655 のような形となり,\SpecialChar TeX
16656 としてマークする必要があります.「可視性」を変更したい文章は,波括弧のあいだ(そして
16657 \family typewriter
16658
16659 \backslash
16660 invisible
16661 \family default
16662 ないし
16663 \family typewriter
16664
16665 \backslash
16666 visible
16667 \family default
16668 コマンドの後ろ)に入れます.\SpecialChar TeX
16669 としてマークする方法がわからない場合は,
16670 \emph on
16671 ユーザーの手引き
16672 \emph default
16673 をご参照ください.
16674 \end_layout
16675
16676 \end_inset
16677
16678
16679 \end_layout
16680
16681 \begin_layout Subsubsection
16682
16683 \family sans
16684 スライドで注釈を使う
16685 \family default
16686
16687 \begin_inset CommandInset label
16688 LatexCommand label
16689 name "sec:スライド注釈"
16690
16691 \end_inset
16692
16693
16694 \end_layout
16695
16696 \begin_layout Standard
16697
16698 \family sans
16699 オーバーレイ
16700 \family default
16701 と同様,
16702 \family sans
16703 注釈
16704 \family default
16705 も「親」
16706 \family sans
16707 スライド
16708 \family default
16709 に関連付けられています.ここでも\SpecialChar LyX
16710
16711 \family sans
16712 スライド
16713 \family default
16714 クラスは視覚的な効果を与えています.
16715 \family sans
16716 注釈
16717 \family default
16718 のラベルは
16719 \family sans
16720 スライド
16721 \family default
16722 よりも短く(オーバーレイのラベルよりも長いですが),
16723 \family sans
16724 オーバーレイ
16725 \family default
16726 のラベルと同様,派手な赤紫色です.加えて,印刷した
16727 \family sans
16728 注釈
16729 \family default
16730 には,「親」スライドのページ番号に「
16731 \family typewriter
16732 -
16733 \family default
16734 1」「
16735 \family typewriter
16736 -
16737 \family default
16738 2」「
16739 \family typewriter
16740 -
16741 \family default
16742 3」等を付けたページ番号が付けられます.1つの
16743 \family sans
16744 スライド
16745 \family default
16746 には,複数の
16747 \family sans
16748 注釈
16749 \family default
16750 を関連付けることができるので,
16751 \family sans
16752 スライド
16753 \family default
16754
16755 \family sans
16756 オーバーレイ
16757 \family default
16758 と同じように,長い注釈は,1枚の紙に収まるように分割したいと思われるに違いありません.
16759 \end_layout
16760
16761 \begin_layout Standard
16762
16763 \family sans
16764 注釈
16765 \family default
16766 の目的は明らかです.
16767 \family sans
16768 スライド
16769 \family default
16770 に関して付け加えたいことを書き留めておくことです.特定の
16771 \family sans
16772 スライド
16773 \family default
16774 についての覚書として使うこともできます.後者の場合には,タイムマーカを利用したいこともあるかもしれません.現在のところ,\SpecialChar LyX
16775
16776 \family sans
16777 スライド
16778 \family default
16779 クラスは,
16780 \noun on
16781 Sli
16782 \noun default
16783 \SpecialChar TeX
16784 の機能であるタイムマーカを「ネイティブには」サポートしていません.したがって,\SpecialChar LaTeX
16785 コードを使用することに頼らなくてはなりません.
16786 \end_layout
16787
16788 \begin_layout Standard
16789 タイムマーカを使用するには,クラスオプション「
16790 \family typewriter
16791 clock
16792 \family default
16793 」を追加指定する必要があります(第
16794 \begin_inset CommandInset ref
16795 LatexCommand ref
16796 reference "sec:slidesetup"
16797
16798 \end_inset
16799
16800 節参照).このオプションはタイムマーカ機能を有効にして,生成したすべての
16801 \family sans
16802 注釈
16803 \family default
16804 の左下にタイムマーカを表示します.タイムマーカに表示するものを設定するには,\SpecialChar LaTeX
16805 コマンド「
16806 \family typewriter
16807
16808 \backslash
16809 settime{}
16810 \family default
16811 」および「
16812 \family typewriter
16813
16814 \backslash
16815 addtime{}
16816 \family default
16817 」を使用します.両コマンドは,秒で測った時間を引数にとります.「
16818 \family typewriter
16819
16820 \backslash
16821 settime{}
16822 \family default
16823 」は,タイムマーカを特定の時間に設定し,「
16824 \family typewriter
16825
16826 \backslash
16827 addtime{}
16828 \family default
16829 」は,タイムマーカを指定した分だけ進めます.このようにタイムマーカと
16830 \family sans
16831 注釈
16832 \family default
16833 を用いれば,特定の
16834 \family sans
16835 スライド
16836 \family default
16837 にどれだけの時間をかけるのか忘れないでいられます.
16838 \end_layout
16839
16840 \begin_layout Standard
16841 最後に,説明しておくべき機能がもう一つあります.当然ながら,
16842 \family sans
16843 スライド
16844 \family default
16845
16846 \family sans
16847 オーバーレイ
16848 \family default
16849 はすべてスライドに,
16850 \family sans
16851 注釈
16852 \family default
16853 はすべて普通の紙に印刷したいはずです.しかしながら,
16854 \family sans
16855 注釈
16856 \family default
16857 は関連付けられた親スライドの直後に
16858 \emph on
16859 来なくてはなりません
16860 \emph default
16861 .ユーザーはどうしたら良いのでしょうか.
16862 \end_layout
16863
16864 \begin_layout Standard
16865 幸いなことに,どれを印刷するか選択することを可能にする\SpecialChar LaTeX
16866 コマンドが,2種類あります.どちらも文書のプリアンブルに記述されなくてはなりません.コマンド「
16867 \family typewriter
16868
16869 \backslash
16870 onlyslides{
16871 \backslash
16872 slides}
16873 \family default
16874 」は,出力に
16875 \family sans
16876 スライド
16877 \family default
16878
16879 \family sans
16880 オーバーレイ
16881 \family default
16882 のみが含まれるようにするものです.同様に,「
16883 \family typewriter
16884
16885 \backslash
16886 onlynotes{
16887 \backslash
16888 notes}
16889 \family default
16890 」は
16891 \family sans
16892 注釈
16893 \family default
16894 以外の出力をすべて抑制します.私のアドバイスとしては,両コマンドをプリアンブルに書いておいて,最初は両方ともコメントアウトしておくと良いでしょう.そうすれば,執
16895 筆時にはプレゼンテーション全体をプレビューすることができます.いったん書き終えたならば,二つのうち一方のコメントを外して,印刷したい方を選ぶことができます.私な
16896 らば,まず
16897 \family typewriter
16898
16899 \backslash
16900 onlyslides{
16901 \backslash
16902 slides}
16903 \family default
16904 のコメントを外して,現ファイル名に「*
16905 \family typewriter
16906 -slides
16907 \family default
16908 」を付けた新たなファイルに出力を行ない,今度はこの行をふたたびコメントアウトするとともに,「
16909 \family typewriter
16910
16911 \backslash
16912 onlynotes{
16913 \backslash
16914 notes
16915 \family default
16916 }」のコメントを外して,これを「
16917 \family typewriter
16918 *-notes.ps
16919 \family default
16920 」というファイルに出力します.そうすれば,必要に応じて,スライドまたは通常の紙をプリンタにセットし,一方のファイルをプリンタに送ればよいのです.
16921 \end_layout
16922
16923 \begin_layout Standard
16924
16925 \family typewriter
16926
16927 \backslash
16928 onlyslides{}
16929 \family default
16930 」および「
16931 \family typewriter
16932
16933 \backslash
16934 onlynotes{}
16935 \family default
16936 」コマンドには,他の引数を与えることもできます.詳しくは,\SpecialChar LaTeX
16937 の良書をご覧ください.
16938 \end_layout
16939
16940 \begin_layout Subsection
16941
16942 \family sans
16943 slides
16944 \family default
16945 クラスのひな型ファイル
16946 \end_layout
16947
16948 \begin_layout Standard
16949
16950 \family sans
16951 slides
16952 \family default
16953 クラス用のひな型ファイルとして「
16954 \family typewriter
16955 slides.lyx
16956 \family default
16957 」が提供されています.これを使用するには,新しいプレゼンテーションを作り始める際に,
16958 \family sans
16959 ファイル\SpecialChar menuseparator
16960 新規(ひな型使用)
16961 \family default
16962 メニューを選択してください.すると新規ファイルには,
16963 \family sans
16964 スライド
16965 \family default
16966
16967 \family sans
16968 オーバーレイ
16969 \family default
16970
16971 \family sans
16972 注釈
16973 \family default
16974 の組が,例として含まれており,
16975 \family sans
16976 スライド
16977 \family default
16978
16979 \family sans
16980 オーバーレイ
16981 \family default
16982 には,さらに
16983 \family sans
16984 不可視文
16985 \family default
16986
16987 \family sans
16988 可視文
16989 \family default
16990 の使用例も含まれています.また,プリアンブルには,次のように書き込まれています.
16991 \end_layout
16992
16993 \begin_layout LyX-Code
16994 % Uncomment to print out only slides and overlays
16995 \end_layout
16996
16997 \begin_layout LyX-Code
16998 %
16999 \end_layout
17000
17001 \begin_layout LyX-Code
17002 %
17003 \backslash
17004 onlyslides{
17005 \backslash
17006 slides}
17007 \begin_inset Newline newline
17008 \end_inset
17009
17010  
17011 \end_layout
17012
17013 \begin_layout LyX-Code
17014 % Uncomment to print out only notes
17015 \end_layout
17016
17017 \begin_layout LyX-Code
17018 %
17019 \end_layout
17020
17021 \begin_layout LyX-Code
17022 %
17023 \backslash
17024 onlynotes{
17025 \backslash
17026 notes}
17027 \end_layout
17028
17029 \begin_layout Standard
17030 最後に,私はこの文書クラスを,\SpecialChar LaTeX2e
17031 の組み込みクラスである「
17032 \noun on
17033 Sli\SpecialChar TeX
17034
17035 \noun default
17036 エミュレーション」クラスをサポートする目的で作成しました.私も\SpecialChar LyX
17037 チームの他のメンバーも,この組み込みスライドクラスを使用することに賛成したり反対したりするものでは
17038 ありません.これは単に,ユーザーがこれを使いたかったり必要としたりしたときのためにあるものです.プレゼンテーションを作成するためには,
17039 \family sans
17040 Foils
17041 \family default
17042 クラス(第
17043 \begin_inset CommandInset ref
17044 LatexCommand ref
17045 reference "sec:foiltex"
17046
17047 \end_inset
17048
17049 節参照)や「
17050 \family typewriter
17051 seminar
17052 \family default
17053 」パッケージ(一部の\SpecialChar TeX
17054 頒布版に含まれています)のように,他の\SpecialChar LaTeX2e
17055 クラスも存在します.私はこれらについては知らないのですが,他にどのようなことができるのか試してみてくだ
17056 さい.
17057 \end_layout
17058
17059 \begin_layout Chapter
17060 ソフトウェアを追加する必要がある \SpecialChar LyX
17061 機能
17062 \end_layout
17063
17064 \begin_layout Section
17065 \SpecialChar TeX
17066 のチェック
17067 \end_layout
17068
17069 \begin_layout Standard
17070
17071 \noun on
17072 Asger Alstrup
17073 \noun default
17074
17075 \end_layout
17076
17077 \begin_layout Subsection
17078 はじめに
17079 \end_layout
17080
17081 \begin_layout Standard
17082
17083 \family typewriter
17084 chktex
17085 \family default
17086 プログラムが導入されていると
17087 \begin_inset Foot
17088 status collapsed
17089
17090 \begin_layout Plain Layout
17091 \SpecialChar LaTeX
17092 頒布版としてMiK\SpecialChar TeX
17093 を使用している場合には,
17094 \family typewriter
17095 chktex
17096 \family default
17097 はまだ利用可能ではありません.
17098 \end_layout
17099
17100 \end_inset
17101
17102
17103 \family sans
17104 ツール
17105 \family default
17106 メニューの下に,
17107 \family sans
17108 \SpecialChar TeX
17109 構文チェック
17110 \family default
17111 という項目が表示されます.
17112 \family typewriter
17113 chktex
17114 \family default
17115 は,CTAN
17116 \begin_inset Newline newline
17117 \end_inset
17118
17119
17120 \begin_inset CommandInset href
17121 LatexCommand href
17122 target "https://www.ctan.org/tex-archive/help/Catalogue/entries/chktex.html"
17123 literal "false"
17124
17125 \end_inset
17126
17127 から入手することができます.
17128 \end_layout
17129
17130 \begin_layout Standard
17131
17132 \family sans
17133 Chk\SpecialChar TeX
17134
17135 \family default
17136 パッケージは,\SpecialChar LaTeX
17137 の構成物には直感的でないものもあり,すぐ忘れてしまいがちであるのに不満を感じた
17138 \begin_inset Flex Noun
17139 status collapsed
17140
17141 \begin_layout Plain Layout
17142 Jens T.
17143  Berger Thielemann
17144 \end_layout
17145
17146 \end_inset
17147
17148 が書いたプログラムです.このプログラムは,\SpecialChar LaTeX
17149 ファイルを走査して,ファイルの整合性をチェックし,犯しがちな誤りを見つけ出します.別の技術用語では,LaTeXにおける
17150 \family typewriter
17151 lint
17152 \family default
17153 であるとも言えます.
17154 \end_layout
17155
17156 \begin_layout Standard
17157 さて,\SpecialChar LyX
17158 はつねに正しい\SpecialChar LaTeX
17159 ファイルを生成するはずなのに,文法チェッカーは\SpecialChar LyX
17160 で何をするというのでしょうか.答えは簡単です.
17161 \family typewriter
17162 lint
17163 \family default
17164 がC言語プログラムの
17165 \emph on
17166 文法
17167 \emph default
17168 をチェックするだけでなく,打ち間違いによる
17169 \emph on
17170 意味上の
17171 \emph default
17172 チェックも行うように,
17173 \family sans
17174 Chk\SpecialChar TeX
17175
17176 \family default
17177 は,文法エラーの他に犯しがちな
17178 \emph on
17179 写植上の
17180 \emph default
17181 誤りも検出してくれるからです.
17182 \family sans
17183 Chk\SpecialChar TeX
17184
17185 \family default
17186 は,以下のような誤りを検出することができます.
17187 \end_layout
17188
17189 \begin_layout Itemize
17190 省略記号の検出:
17191 \begin_inset Newline newline
17192 \end_inset
17193
17194 ...ではなく\SpecialChar ldots
17195 を使わなくてはなりません
17196 \end_layout
17197
17198 \begin_layout Itemize
17199 括弧の前後にスペースを置かない:
17200 \begin_inset Newline newline
17201 \end_inset
17202
17203 ( wrong spacing ):誤った空白
17204 \end_layout
17205
17206 \begin_layout Itemize
17207 よく使われる省略形の後ろは通常スペースにする:
17208 \begin_inset Newline newline
17209 \end_inset
17210
17211 e.
17212 \begin_inset space \thinspace{}
17213 \end_inset
17214
17215 g.
17216 \begin_inset space \space{}
17217 \end_inset
17218
17219 is too wide spacing.:広すぎる空白
17220 \end_layout
17221
17222 \begin_layout Itemize
17223 直前の文章が大文字で終わっているときに,文末スペースに直す:
17224 \begin_inset Newline newline
17225 \end_inset
17226
17227 This is a TEST.
17228  And this is wrong spacing.:誤った空白
17229 \end_layout
17230
17231 \begin_layout Itemize
17232 ラベルや類似コマンドの前のスペース:
17233 \begin_inset Newline newline
17234 \end_inset
17235
17236 ラベルが別のページに行ってしまわないように,ラベルは文章に接していなくてはなりません. 
17237 \begin_inset CommandInset label
17238 LatexCommand label
17239 name "sec:chktex"
17240
17241 \end_inset
17242
17243  
17244 \begin_inset Foot
17245 status collapsed
17246
17247 \begin_layout Plain Layout
17248 この脚注は,正しくないページに行ってしまう恐れがあります.
17249 \end_layout
17250
17251 \end_inset
17252
17253  このラベルは離れすぎです.
17254 \end_layout
17255
17256 \begin_layout Itemize
17257 参照の前にハードスペースではなくスペース:
17258 \begin_inset Newline newline
17259 \end_inset
17260
17261 運が悪ければ,参照文字列と参照番号のあいだでちょうど改行されてしまい,残念な結果となります.第
17262 \begin_inset CommandInset ref
17263 LatexCommand ref
17264 reference "sec:chktex"
17265
17266 \end_inset
17267
17268 節をご覧ください.
17269 \end_layout
17270
17271 \begin_layout Itemize
17272 数字のあいだで
17273 \begin_inset Formula $\times$
17274 \end_inset
17275
17276 ではなく「x」が使われている:
17277 \begin_inset Newline newline
17278 \end_inset
17279
17280 2x2は,
17281 \begin_inset Formula $2\times2$
17282 \end_inset
17283
17284 よりも安っぽく見えます.
17285 \end_layout
17286
17287 \begin_layout Standard
17288 などなど\SpecialChar ldots
17289
17290 \family sans
17291 Chk\SpecialChar TeX
17292
17293 \family default
17294 は,印刷する前に文書を「仕上げる」上で,たいへん価値のあるツールです.必須のスペルチェックを終えた直後,組版の微調整をする前には,これを実行するべきです.
17295 \end_layout
17296
17297 \begin_layout Subsection
17298 使いかた
17299 \end_layout
17300
17301 \begin_layout Standard
17302 このプログラムを導入したならば,使うのは
17303 \family sans
17304 ツール\SpecialChar menuseparator
17305 \SpecialChar TeX
17306 構文チェック
17307 \family default
17308 を選択するだけなので簡単です.こうすると,\SpecialChar LyX
17309 は使用中の文書の\SpecialChar LaTeX
17310 ファイルを生成して,
17311 \family sans
17312 Chk\SpecialChar TeX
17313
17314 \family default
17315 を起動し,当該ファイルを検査しますが,
17316 \family sans
17317 Chk\SpecialChar TeX
17318
17319 \family default
17320 から警告があった場合には,それを含んだ「エラーボックス」を\SpecialChar LyX
17321 中に挿入します.警告は,誤りのある箇所のそばに置かれるので,メニュー項目の
17322 \family sans
17323 移動\SpecialChar menuseparator
17324 エラー
17325 \family default
17326 を選択するか,既定の
17327 \family typewriter
17328 cua
17329 \family default
17330
17331 \begin_inset Flex Ruby
17332 status collapsed
17333
17334 \begin_layout Plain Layout
17335
17336 \begin_inset Argument post:1
17337 status collapsed
17338
17339 \begin_layout Plain Layout
17340 キー
17341 \end_layout
17342
17343 \end_inset
17344
17345
17346 \end_layout
17347
17348 \end_inset
17349
17350 設定ファイルならば
17351 \begin_inset Flex Ruby
17352 status collapsed
17353
17354 \begin_layout Plain Layout
17355
17356 \family roman
17357 \series medium
17358 \shape up
17359 \size normal
17360 \emph off
17361 \bar no
17362 \noun off
17363 \color none
17364 捷径
17365 \family default
17366 \series default
17367 \shape default
17368 \size default
17369 \emph default
17370 \bar default
17371 \noun default
17372 \color inherit
17373
17374 \begin_inset Argument post:1
17375 status collapsed
17376
17377 \begin_layout Plain Layout
17378 ショートカット
17379 \end_layout
17380
17381 \end_inset
17382
17383
17384 \end_layout
17385
17386 \end_inset
17387
17388
17389 \family sans
17390 C-g
17391 \family default
17392 を押せば,簡単に警告の箇所を見出すことができます.エラーボックスを開けるには,マウスでボックスをクリックするか,
17393 \family typewriter
17394 cua
17395 \family default
17396 鍵設定の場合には捷径鍵
17397 \family sans
17398 C-i
17399 \family default
17400
17401 \family typewriter
17402 emacs
17403 \family default
17404 鍵設定の場合は捷径鍵
17405 \family sans
17406 C-o
17407 \family default
17408 を押します.警告を読み,それが誤りを示していれば修正します.警告が何を意味しているか理解しにくい場合には,無視しても問題はありません.画面上の文書と,
17409 \family sans
17410 Chk\SpecialChar TeX
17411
17412 \family default
17413 を起動する際に行なわれる実際の技術的な操作のあいだには,隠された層があり,この隔たりのせいで,一部の警告が不可解なものになったり,明らかに馬鹿げたものになる場合
17414 があるのです.
17415 \end_layout
17416
17417 \begin_layout Standard
17418 本文書自体,この機能を確認する良い材料になりますので,実行してみてください.すると,かなりの量の警告が出るはずです.これはコンピュータが敏感すぎるせいですので,
17419 警告のほとんどは実際には警告に値しません.
17420 \end_layout
17421
17422 \begin_layout Subsection
17423 微調整のしかた
17424 \end_layout
17425
17426 \begin_layout Standard
17427 場合によっては,
17428 \family sans
17429 Chk\SpecialChar TeX
17430
17431 \family default
17432 は,あなたが望むよりも煩すぎると思うかもしれません.そのような場合には,必要と思うまで
17433 \family sans
17434 Chk\SpecialChar TeX
17435
17436 \family default
17437 を無効にするか,あなたにもう少し合うように
17438 \family sans
17439 Chk\SpecialChar TeX
17440
17441 \family default
17442 を調整することができます.
17443 \end_layout
17444
17445 \begin_layout Standard
17446
17447 \family sans
17448 Chk\SpecialChar TeX
17449
17450 \family default
17451 は調整や拡張がひじょうに柔軟なのですが,\SpecialChar LyX
17452 における
17453 \family sans
17454 Chk\SpecialChar TeX
17455
17456 \family default
17457 関連の問題が,それですべて解決すると思うべきではありません.\SpecialChar LyX
17458 は,
17459 \family sans
17460 Chk\SpecialChar TeX
17461
17462 \family default
17463 出力
17464 \begin_inset Foot
17465 status collapsed
17466
17467 \begin_layout Plain Layout
17468
17469 \family sans
17470 chktex
17471 \family default
17472 の実際の出力は,
17473 \family sans
17474 chktex
17475 \family default
17476 を実行した直後に
17477 \family sans
17478 文書\SpecialChar menuseparator
17479 \SpecialChar LaTeX
17480 ログ
17481 \family default
17482 を使えば見ることができます.
17483 \end_layout
17484
17485 \end_inset
17486
17487 から得た行番号と内部構造を一致させるため,やや特殊な\SpecialChar LaTeX
17488 ファイルを生成しなくてはならないので,警告の一部は正しく表示されていないように見えるでしょう.これに対処する
17489 ためには,以下の2つの方法があります.
17490 \end_layout
17491
17492 \begin_layout Itemize
17493
17494 \family sans
17495 \begin_inset Flex MenuItem
17496 status collapsed
17497
17498 \begin_layout Plain Layout
17499
17500 \family sans
17501 ツール\SpecialChar menuseparator
17502 設定\SpecialChar menuseparator
17503 出力\SpecialChar menuseparator
17504 \SpecialChar LaTeX
17505 \SpecialChar menuseparator
17506 Check\SpecialChar TeX
17507 コマンド
17508 \end_layout
17509
17510 \end_inset
17511
17512
17513 \family default
17514 中の
17515 \family sans
17516 Chk\SpecialChar TeX
17517
17518 \family default
17519 起動コマンドラインを調整するか,グローバルな
17520 \family sans
17521 Chk\SpecialChar TeX
17522
17523 \family default
17524 の設定ファイル(通常は
17525 \begin_inset Flex Code
17526 status collapsed
17527
17528 \begin_layout Plain Layout
17529 chktexrc
17530 \end_layout
17531
17532 \end_inset
17533
17534 ファイル)を調整します.コマンドラインからどの警告を有効・無効にできるかは以下をご覧ください.
17535 \end_layout
17536
17537 \begin_layout Itemize
17538
17539 \family sans
17540 ファイル\SpecialChar menuseparator
17541 書き出し\SpecialChar menuseparator
17542 \SpecialChar LaTeX
17543
17544 \family default
17545 を使って文書を\SpecialChar LaTeX
17546 ファイルに変換し,そのファイルに対して
17547 \family typewriter
17548 chktex
17549 \family default
17550 を手動で実行します.このようにすると,\SpecialChar LyX
17551 文書中の対応箇所を見つけるのがやや面倒ですが,少し我慢すれば見つけることができます.
17552 \end_layout
17553
17554 \begin_layout Standard
17555 以下は,
17556 \family sans
17557 設定
17558 \family default
17559 で有効化・無効化できる警告メッセージです.警告を無効にするには
17560 \family typewriter
17561 -n#
17562 \family default
17563 ,有効にするには
17564 \family typewriter
17565 -w#
17566 \family default
17567 を用います.イタリック表示の項目は,既定で無効となっています.既定値は "
17568 \family typewriter
17569 chktex -n1 -n3 -n6 -n9 -n22 -n25 -n30 -n38
17570 \family default
17571 "です.
17572 \end_layout
17573
17574 \begin_layout Standard
17575 \SpecialChar LyX
17576 は,
17577 \family typewriter
17578 chktex
17579 \family default
17580 と通信するために,他のコマンドラインパラメータを特定の方法で使用しているため,メッセージを有効化・無効化する以外のオプションを使うべきではありません.
17581 \end_layout
17582
17583 \begin_layout Enumerate
17584
17585 \size small
17586 \emph on
17587 Command terminated with space.
17588 \end_layout
17589
17590 \begin_layout Enumerate
17591
17592 \size small
17593 Non-breaking space (
17594 \begin_inset Quotes eld
17595 \end_inset
17596
17597
17598 \family typewriter
17599 ~
17600 \family default
17601
17602 \begin_inset Quotes erd
17603 \end_inset
17604
17605 ) should have been used.
17606 \end_layout
17607
17608 \begin_layout Enumerate
17609
17610 \size small
17611 \emph on
17612 You should enclose the previous parenthesis with 
17613 \begin_inset Quotes eld
17614 \end_inset
17615
17616
17617 \family typewriter
17618 {}
17619 \family default
17620
17621 \begin_inset Quotes erd
17622 \end_inset
17623
17624 .
17625 \end_layout
17626
17627 \begin_layout Enumerate
17628
17629 \size small
17630 Italic correction (
17631 \begin_inset Quotes eld
17632 \end_inset
17633
17634
17635 \family typewriter
17636
17637 \backslash
17638 /
17639 \family default
17640
17641 \begin_inset Quotes erd
17642 \end_inset
17643
17644 ) found in non-italic buffer.
17645 \end_layout
17646
17647 \begin_layout Enumerate
17648
17649 \size small
17650 Italic correction (
17651 \begin_inset Quotes eld
17652 \end_inset
17653
17654
17655 \family typewriter
17656
17657 \backslash
17658 /
17659 \family default
17660
17661 \begin_inset Quotes erd
17662 \end_inset
17663
17664 ) found more than once.
17665 \end_layout
17666
17667 \begin_layout Enumerate
17668
17669 \size small
17670 \emph on
17671 No italic correction (
17672 \begin_inset Quotes eld
17673 \end_inset
17674
17675
17676 \family typewriter
17677
17678 \backslash
17679 /
17680 \family default
17681
17682 \begin_inset Quotes erd
17683 \end_inset
17684
17685 ) found.
17686 \end_layout
17687
17688 \begin_layout Enumerate
17689
17690 \size small
17691 Accent command 
17692 \begin_inset Quotes eld
17693 \end_inset
17694
17695
17696 \family typewriter
17697 cmd
17698 \family default
17699
17700 \begin_inset Quotes erd
17701 \end_inset
17702
17703  needs use of 
17704 \begin_inset Quotes eld
17705 \end_inset
17706
17707
17708 \family typewriter
17709 cmd
17710 \family default
17711
17712 \begin_inset Quotes erd
17713 \end_inset
17714
17715 .
17716 \end_layout
17717
17718 \begin_layout Enumerate
17719
17720 \size small
17721 Wrong length of dash may have been used.
17722 \end_layout
17723
17724 \begin_layout Enumerate
17725
17726 \size small
17727 \emph on
17728 \begin_inset Quotes eld
17729 \end_inset
17730
17731
17732 \family typewriter
17733 %s
17734 \family default
17735
17736 \begin_inset Quotes erd
17737 \end_inset
17738
17739  expected, found 
17740 \begin_inset Quotes eld
17741 \end_inset
17742
17743
17744 \family typewriter
17745 %s
17746 \family default
17747
17748 \begin_inset Quotes erd
17749 \end_inset
17750
17751 .
17752 \end_layout
17753
17754 \begin_layout Enumerate
17755
17756 \size small
17757 Solo 
17758 \begin_inset Quotes eld
17759 \end_inset
17760
17761
17762 \family typewriter
17763 %s
17764 \family default
17765
17766 \begin_inset Quotes erd
17767 \end_inset
17768
17769  found.
17770 \end_layout
17771
17772 \begin_layout Enumerate
17773
17774 \size small
17775 You should use 
17776 \begin_inset Quotes eld
17777 \end_inset
17778
17779
17780 \family typewriter
17781 %s
17782 \family default
17783
17784 \begin_inset Quotes erd
17785 \end_inset
17786
17787  to achieve an ellipsis.
17788 \end_layout
17789
17790 \begin_layout Enumerate
17791
17792 \size small
17793 Inter-word spacing (
17794 \begin_inset Quotes eld
17795 \end_inset
17796
17797
17798 \family typewriter
17799
17800 \backslash
17801
17802 \family default
17803  
17804 \begin_inset Quotes eld
17805 \end_inset
17806
17807 ) should perhaps be used.
17808 \end_layout
17809
17810 \begin_layout Enumerate
17811
17812 \size small
17813 Inter-sentence spacing (
17814 \begin_inset Quotes eld
17815 \end_inset
17816
17817
17818 \family typewriter
17819
17820 \backslash
17821 @
17822 \family default
17823
17824 \begin_inset Quotes erd
17825 \end_inset
17826
17827 ) should perhaps be used.
17828 \end_layout
17829
17830 \begin_layout Enumerate
17831
17832 \size small
17833 Could not find argument for command.
17834 \end_layout
17835
17836 \begin_layout Enumerate
17837
17838 \size small
17839 No match found for 
17840 \begin_inset Quotes eld
17841 \end_inset
17842
17843
17844 \family typewriter
17845 %s
17846 \family default
17847
17848 \begin_inset Quotes erd
17849 \end_inset
17850
17851 .
17852 \end_layout
17853
17854 \begin_layout Enumerate
17855
17856 \size small
17857 Math mode still on at end of \SpecialChar LaTeX
17858  file.
17859 \end_layout
17860
17861 \begin_layout Enumerate
17862
17863 \size small
17864 Number of 
17865 \begin_inset Quotes eld
17866 \end_inset
17867
17868
17869 \family typewriter
17870 char
17871 \family default
17872
17873 \begin_inset Quotes erd
17874 \end_inset
17875
17876  doesn't match the number of 
17877 \begin_inset Quotes eld
17878 \end_inset
17879
17880
17881 \family typewriter
17882 char
17883 \family default
17884
17885 \begin_inset Quotes erd
17886 \end_inset
17887
17888 .
17889 \end_layout
17890
17891 \begin_layout Enumerate
17892
17893 \size small
17894 You should use either 
17895 \family typewriter
17896
17897 \begin_inset Quotes eld
17898 \end_inset
17899
17900
17901 \family default
17902  or 
17903 \family typewriter
17904
17905 \begin_inset Quotes erd
17906 \end_inset
17907
17908
17909 \family default
17910  as an alternative to 
17911 \begin_inset Quotes eld
17912 \end_inset
17913
17914
17915 \family typewriter
17916 "
17917 \family default
17918
17919 \begin_inset Quotes erd
17920 \end_inset
17921
17922 .
17923 \end_layout
17924
17925 \begin_layout Enumerate
17926
17927 \size small
17928 You should use "
17929 \family typewriter
17930 '
17931 \family default
17932 " (ASCII 39) instead of "" (ASCII 180).
17933 \end_layout
17934
17935 \begin_layout Enumerate
17936
17937 \size small
17938 User-specified pattern found.
17939 \end_layout
17940
17941 \begin_layout Enumerate
17942
17943 \size small
17944 This command might not be intended.
17945 \end_layout
17946
17947 \begin_layout Enumerate
17948
17949 \size small
17950 \emph on
17951 Comment displayed.
17952 \end_layout
17953
17954 \begin_layout Enumerate
17955
17956 \size small
17957 Either 
17958 \family typewriter
17959 ''
17960 \backslash
17961 ,'
17962 \family default
17963  or 
17964 \family typewriter
17965 '
17966 \backslash
17967 ,''
17968 \family default
17969  will look better.
17970 \end_layout
17971
17972 \begin_layout Enumerate
17973
17974 \size small
17975 Delete this space to maintain correct page references.
17976 \end_layout
17977
17978 \begin_layout Enumerate
17979
17980 \size small
17981 \emph on
17982 You might wish to put this between a pair of 
17983 \begin_inset Quotes eld
17984 \end_inset
17985
17986
17987 \family typewriter
17988 {}
17989 \family default
17990
17991 \begin_inset Quotes erd
17992 \end_inset
17993
17994 .
17995 \end_layout
17996
17997 \begin_layout Enumerate
17998
17999 \size small
18000 You ought to remove spaces in front of punctuation.
18001 \end_layout
18002
18003 \begin_layout Enumerate
18004
18005 \size small
18006 Could not execute \SpecialChar LaTeX
18007  command.
18008 \end_layout
18009
18010 \begin_layout Enumerate
18011
18012 \size small
18013 Don't use 
18014 \family typewriter
18015
18016 \backslash
18017 /
18018 \family default
18019  in front of small punctuation.
18020 \end_layout
18021
18022 \begin_layout Enumerate
18023
18024 \family typewriter
18025 \size small
18026 $
18027 \backslash
18028 times$
18029 \family default
18030  may look prettier here.
18031 \end_layout
18032
18033 \begin_layout Enumerate
18034
18035 \size small
18036 \emph on
18037 Multiple spaces detected in output.
18038 \end_layout
18039
18040 \begin_layout Enumerate
18041
18042 \size small
18043 This text may be ignored.
18044 \end_layout
18045
18046 \begin_layout Enumerate
18047
18048 \size small
18049 Use 
18050 \family typewriter
18051
18052 \begin_inset Quotes eld
18053 \end_inset
18054
18055
18056 \family default
18057  to begin quotation, not 
18058 \family typewriter
18059 '
18060 \family default
18061 .
18062 \end_layout
18063
18064 \begin_layout Enumerate
18065
18066 \size small
18067 Use 
18068 \family typewriter
18069 '
18070 \family default
18071  to end quotation, not 
18072 \family typewriter
18073
18074 \begin_inset Quotes eld
18075 \end_inset
18076
18077
18078 \family default
18079 .
18080 \end_layout
18081
18082 \begin_layout Enumerate
18083
18084 \size small
18085 Don't mix quotes.
18086 \end_layout
18087
18088 \begin_layout Enumerate
18089
18090 \size small
18091 You should perhaps use 
18092 \begin_inset Quotes eld
18093 \end_inset
18094
18095
18096 \family typewriter
18097 cmd
18098 \family default
18099
18100 \begin_inset Quotes erd
18101 \end_inset
18102
18103  instead.
18104 \end_layout
18105
18106 \begin_layout Enumerate
18107
18108 \size small
18109 You should put a space in front of/after parenthesis.
18110 \end_layout
18111
18112 \begin_layout Enumerate
18113
18114 \size small
18115 You should avoid spaces in front of/after parenthesis.
18116 \end_layout
18117
18118 \begin_layout Enumerate
18119
18120 \size small
18121 \emph on
18122 You should not use punctuation in front of/after quotes.
18123 \end_layout
18124
18125 \begin_layout Enumerate
18126
18127 \size small
18128 Double space found.
18129 \end_layout
18130
18131 \begin_layout Enumerate
18132
18133 \size small
18134 You should put punctuation outside inner/inside display math mode.
18135 \end_layout
18136
18137 \begin_layout Enumerate
18138
18139 \size small
18140 You ought to not use primitive \SpecialChar TeX
18141  in \SpecialChar LaTeX
18142  code.
18143 \end_layout
18144
18145 \begin_layout Enumerate
18146
18147 \size small
18148 You should remove spaces in front of 
18149 \begin_inset Quotes eld
18150 \end_inset
18151
18152
18153 \family typewriter
18154 %s
18155 \family default
18156
18157 \begin_inset Quotes erd
18158 \end_inset
18159
18160
18161 \end_layout
18162
18163 \begin_layout Enumerate
18164
18165 \size small
18166 \begin_inset Quotes eld
18167 \end_inset
18168
18169
18170 \family typewriter
18171 %s
18172 \family default
18173
18174 \begin_inset Quotes erd
18175 \end_inset
18176
18177  is normally not followed by 
18178 \begin_inset Quotes eld
18179 \end_inset
18180
18181
18182 \family typewriter
18183 %c
18184 \family default
18185
18186 \begin_inset Quotes erd
18187 \end_inset
18188
18189 .
18190 \end_layout
18191
18192 \begin_layout Standard
18193 \SpecialChar LyX
18194 の将来の版では,このツール(およびその縮小版
18195 \family typewriter
18196 lacheck
18197 \family default
18198 )の力を最大限引き出すように,より完備したインターフェイスを提供できればと考えています.しかし,現状でも十分に役立つものとなっています.ある程度長さがある既存文
18199 書に使用してみていただければ,きっと驚かれることでしょう.
18200 \end_layout
18201
18202 \begin_layout Section
18203 \SpecialChar LyX
18204 でのバージョン管理
18205 \end_layout
18206
18207 \begin_layout Standard
18208
18209 \noun on
18210 Lars Bullik Bjønnes
18211 \noun default
18212 および
18213 \noun on
18214 Pavel Sanda
18215 \noun default
18216
18217 \end_layout
18218
18219 \begin_layout Subsection
18220 はじめに
18221 \end_layout
18222
18223 \begin_layout Standard
18224 \SpecialChar LyX
18225 は,今ではもっとも基本的なRCS/CVS/SVN/GITコマンドをサポートしています.もしもっと洗練されたことを行いたい場合には,ターミナル上から手動で行う必要
18226 があります.
18227 \end_layout
18228
18229 \begin_layout Standard
18230 また,CVSのサポートは,subversionのサポートほど良くないので,CVSよりもSVNを使うことをお勧めします.Subversionを学び始めるには,SV
18231 N Book
18232 \begin_inset Foot
18233 status collapsed
18234
18235 \begin_layout Plain Layout
18236 \begin_inset CommandInset href
18237 LatexCommand href
18238 target "http://svnbook.red-bean.com/"
18239 literal "false"
18240
18241 \end_inset
18242
18243
18244 \end_layout
18245
18246 \end_inset
18247
18248 が良いでしょう.RCSの場合は,「rsintro」をお読みください(これはmanファイルです.
18249 \family typewriter
18250 man rcsintro
18251 \family default
18252 で読めます).このファイルは,RCSの基本機能のすべてを説明しています.特に,RCSディレクトリに関するコメントと,マスターRCSファイル(
18253 \family typewriter
18254 ,v
18255 \family default
18256 で終わるファイルです)の概念に注意を払ってください.
18257 \end_layout
18258
18259 \begin_layout Standard
18260 \SpecialChar LyX
18261 で実際にバージョン管理機能を使い始める前に,RCS/CVS/SVN/GITの使用法に習熟しておかなくてはなりません.\SpecialChar LyX
18262 で\SpecialChar LyX
18263 への実装においては,GNU
18264  RCSまたはCVS/SVNパッケージの最新版を仮定しています.旧版への保証はありません.ログメッセージのほとんどは,現在のところ操作後には表示されません.確認
18265 したい場合には,メッセージ面で確かめてください.バージョン管理を常用するユーザーには,VCツールバーが便利でしょう.これは
18266 \family sans
18267 表示\SpecialChar menuseparator
18268 ツールバー\SpecialChar menuseparator
18269 バージョン管理
18270 \family default
18271 で有効にできます.
18272 \end_layout
18273
18274 \begin_layout Standard
18275 自製の外部コマンドを導入したい場合には,
18276 \emph on
18277 \SpecialChar LyX
18278 関数
18279 \emph default
18280 説明書の
18281 \begin_inset Flex Code
18282 status collapsed
18283
18284 \begin_layout Plain Layout
18285 vc-command
18286 \end_layout
18287
18288 \end_inset
18289
18290 を確認してください.
18291 \end_layout
18292
18293 \begin_layout Standard
18294 バージョン管理機能を使用している場合には,文書を非圧縮形式で保存をすることを強く推奨します(
18295 \family sans
18296 文書\SpecialChar menuseparator
18297 圧縮
18298 \family default
18299 にチェックが入っていれば外してください).非圧縮LyX文書はテキストファイルであるため,バージョン管理システムが,二つのバージョンをマージすることができます.一
18300 方,圧縮LyXファイルはバイナリファイルであるため,バージョン管理システムはマージすることができません.
18301 \end_layout
18302
18303 \begin_layout Subsection
18304 \SpecialChar LyX
18305 におけるRCSコマンド
18306 \end_layout
18307
18308 \begin_layout Standard
18309 以下の節では\SpecialChar LyX
18310 でサポートされているRCSコマンドを説明します.それらのコマンドは
18311 \family sans
18312 ファイル\SpecialChar menuseparator
18313 バージョン管理
18314 \family default
18315 のサブメニューにあります.\SpecialChar LyX
18316 は,RCS 5.7/5.8に対して試験されています.
18317 \end_layout
18318
18319 \begin_layout Subsubsection
18320
18321 \family sans
18322 登録
18323 \end_layout
18324
18325 \begin_layout Standard
18326 文書がバージョン管理の下にない場合には,これがメニューにあらわれる唯一の項目です.文書がバージョン管理下にあれば,項目
18327 \family sans
18328 登録
18329 \family default
18330 は不可視になります.
18331 \end_layout
18332
18333 \begin_layout Standard
18334 このコマンドは,文書をRCSに登録します(CVSが管理しているディレクトリ下にない場合).すると対話的に,文書の最初の説明を入力するように尋ねられます.すると文
18335 書は読み込み専用モードになるので,変更を加えるためには
18336 \family sans
18337 チェックアウトして編集
18338 \family default
18339 を実行する必要があります.バージョン管理下にある文書は,ミニバッファのファイル名の後ろに「 [RCS:<バージョン> <ロック>]」という項目が表示されます.
18340 \end_layout
18341
18342 \begin_layout Standard
18343 実行されるRCSコマンドは:
18344 \end_layout
18345
18346 \begin_layout LyX-Code
18347
18348 \family typewriter
18349 ci -q -u -i -t-"<初期説明文>" <ファイル名>
18350 \end_layout
18351
18352 \begin_layout Standard
18353 スイッチについて知りたい場合は,
18354 \family typewriter
18355 man ci
18356 \family default
18357 を読んでください.
18358 \end_layout
18359
18360 \begin_layout Subsubsection
18361
18362 \family sans
18363 変更をチェックインする
18364 \end_layout
18365
18366 \begin_layout Standard
18367 ファイルの編集が終わると,その変更をチェックインします.このとき,変更についての説明文を求められます.これは履歴ログに記録されます.バージョン番号は繰り上がり,
18368 変更がマスターRCSファイルに適用され,文書がアンロックされて読み込み専用モードになります.
18369 \end_layout
18370
18371 \begin_layout Itemize
18372 RCSコマンド:
18373 \family typewriter
18374 ci -q -u -m"<説明文>" <ファイル名>
18375 \end_layout
18376
18377 \begin_layout Subsubsection
18378
18379 \family sans
18380 チェックアウトして編集
18381 \end_layout
18382
18383 \begin_layout Standard
18384 これは,文書をロックして編集できるようにします.そしてあなただけが文書を読み書きできるようにします.通常は,しばらくの間,文書を編集し,それが終わると変更をチェ
18385 ックインします.あなたがファイルをロックしたことを反映して,ステータスラインが変わります.
18386 \end_layout
18387
18388 \begin_layout Itemize
18389 RCSコマンド:
18390 \family typewriter
18391 co -q -l <ファイル名>
18392 \end_layout
18393
18394 \begin_layout Subsubsection
18395
18396 \family sans
18397 リポジトリのバージョンに戻す
18398 \end_layout
18399
18400 \begin_layout Standard
18401 これは,最終チェックイン以降,文書に加えられた変更をすべて破棄します.変更が破棄される前に,警告が発せられます.
18402 \end_layout
18403
18404 \begin_layout Itemize
18405 RCSコマンド:
18406 \family typewriter
18407 co -f -u<バージョン> <ファイル名>
18408 \end_layout
18409
18410 \begin_layout Subsubsection
18411
18412 \family sans
18413 コピー
18414 \end_layout
18415
18416 \begin_layout Standard
18417 これは,現行文書のコピーを生成します.RCSは,コピー操作を自前ではサポートしませんので,バージョン履歴には保存されず,新コピーは新規ファイルとして追加されます
18418 .最後のチェックイン以降,変更が加えられていないサラの文書であることが要求されます.ファイル名とコピー操作の説明を入力するように促され,その後,新コピーがローカ
18419 ルとリポジトリの両方に生成されます.コピーされた文書と元の文書の親ディレクトリが異なる場合には,コピーにインクルードされたファイルの相対パスは,(
18420 \family sans
18421 ファイル\SpecialChar menuseparator
18422 名前をつけて保存\SpecialChar ldots
18423
18424 \family default
18425 と同様に)全て調整されます.最後に,元の文書の代わりに,コピーされたファイルが読み込まれます.
18426 \end_layout
18427
18428 \begin_layout Labeling
18429 \labelwidthstring 00.00.0000
18430 RCSコマンド: 
18431 \begin_inset space ~
18432 \end_inset
18433
18434
18435 \begin_inset Newline newline
18436 \end_inset
18437
18438
18439 \begin_inset Flex Code
18440 status collapsed
18441
18442 \begin_layout Plain Layout
18443 "ファイル名"
18444 \end_layout
18445
18446 \end_inset
18447
18448
18449 \begin_inset Flex Code
18450 status collapsed
18451
18452 \begin_layout Plain Layout
18453 "新ファイル名"
18454 \end_layout
18455
18456 \end_inset
18457
18458 にコピーする場合
18459 \begin_inset Newline newline
18460 \end_inset
18461
18462
18463 \begin_inset Flex Code
18464 status collapsed
18465
18466 \begin_layout Plain Layout
18467 ci -q -u -i "<新ファイル名>"
18468 \end_layout
18469
18470 \end_inset
18471
18472
18473 \end_layout
18474
18475 \begin_layout Subsubsection
18476
18477 \family sans
18478 最後のチェックインを取り消す
18479 \end_layout
18480
18481 \begin_layout Standard
18482 これは,最後のチェックインがあたかも為されなかったかのようにします.\SpecialChar LyX
18483 に読み込まれた文書に変更は加えられませんが,マスターRCSファイルから最後のバージョンが削除
18484 されます.
18485 \end_layout
18486
18487 \begin_layout Itemize
18488 RCSコマンド:
18489 \family typewriter
18490 rcs -o<バージョン> <ファイル名>
18491 \end_layout
18492
18493 \begin_layout Subsubsection
18494
18495 \family sans
18496 履歴を表示
18497 \end_layout
18498
18499 \begin_layout Standard
18500 RCS文書の完全な履歴を表示します.ブラウザ中に,
18501 \family typewriter
18502 rlog <ファイル名>
18503 \family default
18504 の出力が表示されます.詳細は
18505 \family typewriter
18506 man rlog
18507 \family default
18508 をご覧ください.
18509 \end_layout
18510
18511 \begin_layout Subsubsection
18512 改訂情報
18513 \end_layout
18514
18515 \begin_layout Standard
18516 \SpecialChar LyX
18517 は,RCSバージョン番号情報(のみ)をサポートしています.詳細については,
18518 \begin_inset CommandInset ref
18519 LatexCommand ref
18520 reference "subsec:VCS改訂情報"
18521
18522 \end_inset
18523
18524 を参照.
18525 \end_layout
18526
18527 \begin_layout Subsection
18528 \SpecialChar LyX
18529 におけるCVSコマンド
18530 \end_layout
18531
18532 \begin_layout Standard
18533 \SpecialChar LyX
18534 は,現在CVSを一部サポートしています.そのコマンドは,
18535 \family sans
18536 ファイル\SpecialChar menuseparator
18537 バージョン管理
18538 \family default
18539 サブメニューにあります.バージョン管理システムSVNの方が強力なので,可能ならばCVSではなく,SVNを使用してください.
18540 \end_layout
18541
18542 \begin_layout Subsubsection
18543 CVSの一般的な利用法
18544 \end_layout
18545
18546 \begin_layout Standard
18547 CVSを初めて使いたい場合には,外部ツールを使用して自分のレポジトリを作成し,作業コピーをチェックアウトする必要があります.クライアント=サーバーモデルを使用し
18548 ている場合には,最初のレポジトリチェックアウトを行う前にログインする必要があるかもしれません.
18549 \end_layout
18550
18551 \begin_layout Standard
18552 改訂管理下にある文書のレポジトリを他人も利用している場合に,同一文書の同一箇所に別々の変更を加えてしまうと問題が発生します.標準的なCVSレポジトリは,ファイル
18553 ロッキング機構を有しません.これは驚くべきことかもしれませんが,コンフリクトは,文書の同じ箇所の特定の内容について,人々が意見を異にしている場合にのみ発生します
18554 .したがって,共著者同士がコンスタントにコミュニケーションを交わしていれば,このようなコンフリクトは滅多に発生しません.もしコミュニケーションがなければ,いずれ
18555 にしても根本的な問題があるわけです.それにもかかわらず,いわゆる「予備付きチェックアウト」を使用したいと思う人々もいます.この場合,最初にチェックアウトした際に
18556 ,全ファイルの作業コピーは読み込み専用にされ,ユーザーは,作業コピーを書き込み可能にする特別なコマンドを使用した後,編集を開始することになります.変更をチェック
18557 インすると,作業コピーは読み込み専用状態に戻ります.\SpecialChar LyX
18558 で予備付きチェックアウトを利用したい場合には,
18559 \begin_inset Flex Code
18560 status collapsed
18561
18562 \begin_layout Plain Layout
18563 .cvsrc
18564 \end_layout
18565
18566 \end_inset
18567
18568 ファイルを編集して,
18569 \begin_inset Flex Code
18570 status collapsed
18571
18572 \begin_layout Plain Layout
18573 cvs -r
18574 \end_layout
18575
18576 \end_inset
18577
18578 という行を書き加える必要があります.この方法の利点は,文書のうち,書き込み可能コピーを誰が使用しているかを見ることができることです.ただし,一人のユーザーだけが
18579 コピーを書き込み可能にしているとは限りません.
18580 \end_layout
18581
18582 \begin_layout Standard
18583 \SpecialChar LyX
18584 は,あなたが予備付きチェックアウトを使用しているか,予備なしチェックアウトを利用しているか,推測しようと試みます.使用中の作業コピーが読み込み専用になっているか
18585 ,あるいはそれが書き込み可能であって,CVS/Baseサブディレクトリに使用中文書のコピーが存在している場合には,予備付きチェックアウトを使用しているものと仮定
18586 し,そうでない場合には予備なしチェックアウトを使用しているものと仮定します.予備付きチェックアウトが検出された場合には,作業コピーが読み込み専用の場合に書き込み
18587 可能にするためには,
18588 \begin_inset Flex MenuItem
18589 status collapsed
18590
18591 \begin_layout Plain Layout
18592 チェックアウト
18593 \end_layout
18594
18595 \end_inset
18596
18597 メニューを使用しなくてはなりません.その後,
18598 \begin_inset Flex MenuItem
18599 status collapsed
18600
18601 \begin_layout Plain Layout
18602 チェックイン
18603 \end_layout
18604
18605 \end_inset
18606
18607 メニューが利用可能になるので,自分が加えた変更をリポジトリに移した後,作業コピーを再び読み込み専用にする際には,これを使用します.
18608 \end_layout
18609
18610 \begin_layout Standard
18611 CVSの詳細な情報は,
18612 \begin_inset Flex URL
18613 status collapsed
18614
18615 \begin_layout Plain Layout
18616
18617 http://www.nongnu.org/cvs
18618 \end_layout
18619
18620 \end_inset
18621
18622
18623 \begin_inset Flex URL
18624 status collapsed
18625
18626 \begin_layout Plain Layout
18627
18628 http://ximbiot.com/cvs
18629 \end_layout
18630
18631 \end_inset
18632
18633 にあります.
18634 \end_layout
18635
18636 \begin_layout Standard
18637 以下に言及するサブコマンドとスイッチを理解するには,
18638 \family typewriter
18639 man cvs
18640 \family default
18641 をお読みください.
18642 \end_layout
18643
18644 \begin_layout Subsubsection
18645 登録
18646 \end_layout
18647
18648 \begin_layout Standard
18649 お使いの文書が改訂管理下に置かれていなければ,メニューにはこの項目だけが表示されます.もし改訂管理が有効ならば,
18650 \family sans
18651 登録
18652 \family default
18653 項目は表示されません.
18654 \end_layout
18655
18656 \begin_layout Standard
18657 本コマンドは,既に文書ディレクトリをCVS管理下に置いている場合に
18658 \series bold
18659 \emph on
18660 のみ
18661 \series default
18662 \emph default
18663 (すなわち
18664 \begin_inset Flex Code
18665 status collapsed
18666
18667 \begin_layout Plain Layout
18668 CVS/Entries
18669 \end_layout
18670
18671 \end_inset
18672
18673 ファイルが存在する場合にのみ),お使いの文書をCVSに登録します.つまり,外部ツールを使用して,アーカイブを自分で作成ないしチェックアウトしなくてはならないこと
18674 を意味します(このステップを忘れてしまうと,\SpecialChar LyX
18675 は文書をRCSに登録します).
18676 \end_layout
18677
18678 \begin_layout Standard
18679 すると,文書の最初の説明文を入力するように促されます.登録したファイルは,まだチェックインされたわけではないことに注意してください.
18680 \end_layout
18681
18682 \begin_layout Standard
18683 実行されるCVSコマンドは,
18684 \family typewriter
18685 cvs -q add -m"<入力した説明文>" "<ファイル名>"
18686 \family default
18687  です.
18688 \end_layout
18689
18690 \begin_layout Standard
18691 上記および他のすべてのCVSコマンドにおける
18692 \family typewriter
18693 "<ファイル名>"
18694 \family default
18695 は,「カレント作業ディレクトリをファイルの場所に移動し,パスコンポーネントを除いたファイル名を引数として使用する」という意味になります.
18696 \end_layout
18697
18698 \begin_layout Subsubsection
18699 変更のチェックイン
18700 \end_layout
18701
18702 \begin_layout Standard
18703 ファイルの編集を終えたら,変更をコミットします.このとき,文書に変更が加えられていれば,変更の説明文を入れるよう促されます.その後,変更がレポジトリに書き込まれ
18704 ます.文書を変更せず,予備付きチェックアウトが検出された場合,
18705 \begin_inset Flex MenuItem
18706 status collapsed
18707
18708 \begin_layout Plain Layout
18709 チェックアウト
18710 \end_layout
18711
18712 \end_inset
18713
18714 で作られた予備は取り消されます.
18715 \end_layout
18716
18717 \begin_layout Labeling
18718 \labelwidthstring 00.00.0000
18719 CVSコマンド: 
18720 \begin_inset space ~
18721 \end_inset
18722
18723
18724 \begin_inset Newline newline
18725 \end_inset
18726
18727
18728 \begin_inset Flex Code
18729 status collapsed
18730
18731 \begin_layout Plain Layout
18732 cvs -q commit -m"<入力した説明文>" "<ファイル名>"
18733 \end_layout
18734
18735 \end_inset
18736
18737 あるいは
18738 \begin_inset Newline newline
18739 \end_inset
18740
18741
18742 \begin_inset Flex Code
18743 status collapsed
18744
18745 \begin_layout Plain Layout
18746 cvs -q unedit "<ファイル名>"
18747 \end_layout
18748
18749 \end_inset
18750
18751
18752 \end_layout
18753
18754 \begin_layout Subsubsection
18755 変更のチェックアウト
18756 \end_layout
18757
18758 \begin_layout Standard
18759 レポジトリを他人と共有している場合,他人の加えた変更を自らの作業コピーに取り込まなくてはならないことがあります.
18760 \end_layout
18761
18762 \begin_layout Standard
18763 CVSコマンド:
18764 \family typewriter
18765 cvs -q update "<ファイル名>"
18766 \end_layout
18767
18768 \begin_layout Standard
18769 読み込み専用チェックアウトが検出された場合,作業コピーを書き込み可能にし予備を作成します.
18770 \end_layout
18771
18772 \begin_layout Standard
18773 CVSコマンド:
18774 \family typewriter
18775 cvs -q edit "<ファイル名>"
18776 \end_layout
18777
18778 \begin_layout Subsubsection
18779 レポジトリ版に戻す
18780 \end_layout
18781
18782 \begin_layout Standard
18783 これは,最後のチェックイン以降,文書に加えられた変更をすべて廃棄します.変更が廃棄される前に警告が表示されます.最初にファイルが削除され,次にCVS更新コマンド
18784 が実行されます.
18785 \end_layout
18786
18787 \begin_layout Standard
18788 CVSコマンド:
18789 \family typewriter
18790 cvs -q update "<ファイル名>"
18791 \end_layout
18792
18793 \begin_layout Standard
18794 予備付きチェックアウトが検出され,作業コピーに変更がない場合,予備のみが取り消されます.
18795 \end_layout
18796
18797 \begin_layout Standard
18798 CVSコマンド:
18799 \family typewriter
18800 cvs -q unedit "<ファイル名>"
18801 \end_layout
18802
18803 \begin_layout Subsubsection
18804
18805 \family sans
18806 コピー
18807 \end_layout
18808
18809 \begin_layout Standard
18810 これは,現行文書のコピーを生成します.CVSは,コピー操作を自前ではサポートしませんので,バージョン履歴には保存されず,新コピーは新規ファイルとして追加されます
18811 .最後のチェックイン以降,変更が加えられていないサラの文書であることが要求されます.ファイル名とコピー操作の説明を入力するように促され,その後,新コピーがローカ
18812 ルとリポジトリの両方に生成されます.コピーされた文書と元の文書の親ディレクトリが異なる場合には,コピーにインクルードされたファイルの相対パスは,(
18813 \family sans
18814 ファイル\SpecialChar menuseparator
18815 名前をつけて保存\SpecialChar ldots
18816
18817 \family default
18818 と同様に)全て調整されます.最後に,元の文書の代わりに,コピーされたファイルが読み込まれます.
18819 \end_layout
18820
18821 \begin_layout Labeling
18822 \labelwidthstring 00.00.0000
18823 CVSコマンド: 
18824 \begin_inset space ~
18825 \end_inset
18826
18827
18828 \begin_inset Newline newline
18829 \end_inset
18830
18831
18832 \begin_inset Flex Code
18833 status collapsed
18834
18835 \begin_layout Plain Layout
18836 "<ファイル名>"
18837 \end_layout
18838
18839 \end_inset
18840
18841
18842 \begin_inset Flex Code
18843 status collapsed
18844
18845 \begin_layout Plain Layout
18846 "<新ファイル名>"
18847 \end_layout
18848
18849 \end_inset
18850
18851 にコピーする場合
18852 \begin_inset Newline newline
18853 \end_inset
18854
18855
18856 \begin_inset Flex Code
18857 status collapsed
18858
18859 \begin_layout Plain Layout
18860 cvs -q add "<新ファイル名>"
18861 \end_layout
18862
18863 \end_inset
18864
18865
18866 \end_layout
18867
18868 \begin_layout Subsubsection
18869 ファイル名変更
18870 \end_layout
18871
18872 \begin_layout Standard
18873 これは,現行文書のファイル名を変更します.CVSは,ファイル名変更操作を自前ではサポートしませんので,バージョン履歴には保存されず,名称変更後のファイルは,新規
18874 ファイルとして追加されます.最後のチェックイン以降,変更が加えられていないサラの文書であることが要求されます.ファイル名とコピー操作の説明を入力するように促され
18875 ,その後,ローカルとリポジトリの両方でファイル名が変更されます.新旧ファイル名の文書の親ディレクトリが異なる場合には,コピーにインクルードされたファイルの相対パ
18876 スは,(
18877 \family sans
18878 ファイル\SpecialChar menuseparator
18879 名前をつけて保存\SpecialChar ldots
18880
18881 \family default
18882 と同様に)全て調整されます.最後に,新ファイル名を使ってファイルが再度読み込まれます.
18883 \end_layout
18884
18885 \begin_layout Labeling
18886 \labelwidthstring 00.00.0000
18887 CVSコマンド: 
18888 \begin_inset space ~
18889 \end_inset
18890
18891
18892 \begin_inset Newline newline
18893 \end_inset
18894
18895
18896 \begin_inset Flex Code
18897 status collapsed
18898
18899 \begin_layout Plain Layout
18900 "<ファイル名>"
18901 \end_layout
18902
18903 \end_inset
18904
18905
18906 \begin_inset Flex Code
18907 status collapsed
18908
18909 \begin_layout Plain Layout
18910 "<新ファイル名>"
18911 \end_layout
18912
18913 \end_inset
18914
18915 に変更する場合 
18916 \begin_inset space ~
18917 \end_inset
18918
18919
18920 \begin_inset Newline newline
18921 \end_inset
18922
18923
18924 \begin_inset Flex Code
18925 status collapsed
18926
18927 \begin_layout Plain Layout
18928 cvs -q add "<新ファイル名>"
18929 \end_layout
18930
18931 \end_inset
18932
18933  
18934 \begin_inset space ~
18935 \end_inset
18936
18937
18938 \begin_inset Newline newline
18939 \end_inset
18940
18941
18942 \begin_inset Flex Code
18943 status collapsed
18944
18945 \begin_layout Plain Layout
18946 cvs -q remove "<ファイル名>"
18947 \end_layout
18948
18949 \end_inset
18950
18951
18952 \end_layout
18953
18954 \begin_layout Subsubsection
18955 ローカルディレクトリチェックアウトのレポジトリからの更新
18956 \end_layout
18957
18958 \begin_layout Standard
18959 子文書や図を含んだり,外部
18960 \begin_inset Flex Code
18961 status collapsed
18962
18963 \begin_layout Plain Layout
18964 .tex
18965 \end_layout
18966
18967 \end_inset
18968
18969 ファイルを取り込むなど,文書が複雑になるにつれ,バージョン管理の利用は複雑になります.\SpecialChar LyX
18970 は,文書が存在するツリー全体の更新をサポートします.これは,CVSの使用法
18971 について詳しい知識のない人々や,レポジトリに追加素材をコミットする野望のない人々と共同作業をするような場合に,特に便利です.ファイル構造は,すべての外部ファイル
18972 が,文書と同じディレクトリかそのサブディレクトリに来るように組織する必要があります.いずれにしても,複合文書を新しいディレクトリを建てて収容するのは,望ましい習
18973 慣です.
18974 \end_layout
18975
18976 \begin_layout Standard
18977 コマンド
18978 \begin_inset Flex Code
18979 status collapsed
18980
18981 \begin_layout Plain Layout
18982 レポジトリを使ってローカル辞書を更新
18983 \end_layout
18984
18985 \end_inset
18986
18987 は,ディレクトリ全体を更新します.ローカルの変更が検出された場合には,更新を開始する前にユーザーに警告が発せられます.マージコンフリクトが発生した場合には,コン
18988 フリクトを起こしている部分の新旧バージョンが,両方とも最終文書に置かれますので,マージの結果を見直し,修正する必要があります.コンフリクトは,
18989 \begin_inset Flex Code
18990 status collapsed
18991
18992 \begin_layout Plain Layout
18993 <<<<<<<
18994 \end_layout
18995
18996 \end_inset
18997
18998
18999 \begin_inset Flex Code
19000 status collapsed
19001
19002 \begin_layout Plain Layout
19003 >>>>>>>
19004 \end_layout
19005
19006 \end_inset
19007
19008 の対に囲まれ,
19009 \begin_inset Flex Code
19010 status collapsed
19011
19012 \begin_layout Plain Layout
19013 =======
19014 \end_layout
19015
19016 \end_inset
19017
19018 で区切られて表示されます.最初の部分は,文書名に続いて,更新操作前のバージョンが置かれています.第2の部分は,
19019 \begin_inset Flex Code
19020 status collapsed
19021
19022 \begin_layout Plain Layout
19023 >
19024 \end_layout
19025
19026 \end_inset
19027
19028 記号列の後にバージョン番号に続いて,レポジトリ版が置かれます.
19029 \end_layout
19030
19031 \begin_layout Labeling
19032 \labelwidthstring 00.00.0000
19033 CVSコマンド: 
19034 \begin_inset space ~
19035 \end_inset
19036
19037
19038 \begin_inset Newline newline
19039 \end_inset
19040
19041
19042 \begin_inset Flex Code
19043 status collapsed
19044
19045 \begin_layout Plain Layout
19046 cd $path; cvs diff "."
19047 \end_layout
19048
19049 \end_inset
19050
19051 (変更が検出された場合には知らせる)
19052 \begin_inset Newline newline
19053 \end_inset
19054
19055
19056 \begin_inset Flex Code
19057 status collapsed
19058
19059 \begin_layout Plain Layout
19060 cd $path; cvs -q update "."
19061 \end_layout
19062
19063 \end_inset
19064
19065
19066 \end_layout
19067
19068 \begin_layout Standard
19069 ここで
19070 \begin_inset Flex Code
19071 status collapsed
19072
19073 \begin_layout Plain Layout
19074 $path
19075 \end_layout
19076
19077 \end_inset
19078
19079 は文書パスを表します.
19080 \end_layout
19081
19082 \begin_layout Subsubsection
19083 履歴を表示
19084 \end_layout
19085
19086 \begin_layout Standard
19087 これは,CVS文書の全履歴を表示します.
19088 \begin_inset Flex Code
19089 status collapsed
19090
19091 \begin_layout Plain Layout
19092 cvs log 
19093 \begin_inset Quotes eld
19094 \end_inset
19095
19096 <ファイル名>
19097 \begin_inset Quotes erd
19098 \end_inset
19099
19100
19101 \end_layout
19102
19103 \end_inset
19104
19105 の出力がブラウザに表示されます.
19106 \end_layout
19107
19108 \begin_layout Subsubsection
19109 改訂情報
19110 \end_layout
19111
19112 \begin_layout Standard
19113 \SpecialChar LyX
19114 は,CVS版数・著者名・最終コミットの日時をサポートします.これらの情報は,すべて
19115 \family typewriter
19116 cvs log -r <ファイル名>
19117 \family default
19118 によって抽出されます.詳細については,第
19119 \begin_inset CommandInset ref
19120 LatexCommand ref
19121 reference "subsec:VCS改訂情報"
19122
19123 \end_inset
19124
19125 節を参照してください.
19126 \end_layout
19127
19128 \begin_layout Subsection
19129 \SpecialChar LyX
19130 におけるSVNコマンド
19131 \end_layout
19132
19133 \begin_layout Standard
19134 \SpecialChar LyX
19135 は,現在SVNを一部サポートしています.そのコマンドは,
19136 \begin_inset Flex MenuItem
19137 status collapsed
19138
19139 \begin_layout Plain Layout
19140 ファイル\SpecialChar menuseparator
19141 バージョン管理
19142 \end_layout
19143
19144 \end_inset
19145
19146 メニューにあります.レポジトリへのアクセスに,ssh経由のパスワード保護アクセスを使用している場合には,端末ウィンドウでの入力を促されます.\SpecialChar LyX
19147 は,SVN
19148  1.5・1.6・1.7・1.8に対して試験されています
19149 \begin_inset Foot
19150 status collapsed
19151
19152 \begin_layout Plain Layout
19153 ほとんどのコマンドは,1.4でも動作します.
19154 \begin_inset CommandInset ref
19155 LatexCommand ref
19156 reference "subsec:レポジトリからSVN同期"
19157 plural "false"
19158 caps "false"
19159 noprefix "false"
19160
19161 \end_inset
19162
19163 を参照してください.SVN 1.8では,ファイルがロックされている時にパーミッション変更点を戻してしまうという現時点では未解決の問題が存在しています.
19164 \end_layout
19165
19166 \end_inset
19167
19168
19169 \end_layout
19170
19171 \begin_layout Subsubsection
19172 登録
19173 \end_layout
19174
19175 \begin_layout Standard
19176 お使いの文書が改訂管理下に置かれていなければ,メニューにはこの項目だけが表示されます.もし改訂管理が有効ならば,
19177 \family sans
19178 登録
19179 \family default
19180 項目は表示されません.
19181 \end_layout
19182
19183 \begin_layout Standard
19184 本コマンドは,既に文書のあるディレクトリをSVN管理下に置いている場合に
19185 \emph on
19186 のみ
19187 \emph default
19188 (すなわち
19189 \begin_inset Flex Code
19190 status collapsed
19191
19192 \begin_layout Plain Layout
19193 .svn/entries
19194 \end_layout
19195
19196 \end_inset
19197
19198 ファイルが存在する場合にのみ),お使いの文書をSVNに登録します.つまり,アーカイブはご自分でチェックアウトしなくてはなりません.
19199 \end_layout
19200
19201 \begin_layout Standard
19202 すると,文書の最初の説明文を入力するように促されます.登録したファイルは,まだコミットされたわけではないことに注意してください.
19203 \end_layout
19204
19205 \begin_layout Standard
19206 実行されるSVNコマンドは,
19207 \begin_inset Flex Code
19208 status collapsed
19209
19210 \begin_layout Plain Layout
19211 svn add -q 
19212 \begin_inset Quotes qld
19213 \end_inset
19214
19215 <ファイル名>
19216 \begin_inset Quotes qld
19217 \end_inset
19218
19219
19220 \end_layout
19221
19222 \end_inset
19223
19224 です.
19225 \end_layout
19226
19227 \begin_layout Standard
19228 スイッチの説明は
19229 \begin_inset Flex Code
19230 status collapsed
19231
19232 \begin_layout Plain Layout
19233 man svn
19234 \end_layout
19235
19236 \end_inset
19237
19238 をお読みください.
19239 \end_layout
19240
19241 \begin_layout Subsubsection
19242 変更をチェックイン
19243 \end_layout
19244
19245 \begin_layout Standard
19246 ファイルの編集を終えたら,変更をコミットします.このとき,変更の説明文を入れるよう促されます.その後,変更がコミットされます.
19247 \end_layout
19248
19249 \begin_layout Standard
19250 SVNコマンド
19251 \begin_inset Foot
19252 status collapsed
19253
19254 \begin_layout Plain Layout
19255 ロックが有効になっていない場合です.第
19256 \begin_inset CommandInset ref
19257 LatexCommand ref
19258 reference "subsec:SVNファイルロック"
19259
19260 \end_inset
19261
19262 節をご覧ください.
19263 \end_layout
19264
19265 \end_inset
19266
19267
19268 \begin_inset Flex Code
19269 status collapsed
19270
19271 \begin_layout Plain Layout
19272 svn commit -q -m"<入力した説明文>" "<ファイル名>"
19273 \end_layout
19274
19275 \end_inset
19276
19277
19278 \end_layout
19279
19280 \begin_layout Subsubsection
19281 チェックアウトして編集
19282 \end_layout
19283
19284 \begin_layout Standard
19285 このファイルの変更点をレポジトリから取得して更新します.すべての干渉点は,手動で解決しなくてはならないので,この機能を使う前にSVNのマージ法と干渉解決法を理解
19286 しておくようにしてください.
19287 \end_layout
19288
19289 \begin_layout Standard
19290 SVNコマンド
19291 \begin_inset Foot
19292 status collapsed
19293
19294 \begin_layout Plain Layout
19295 同上.
19296 \end_layout
19297
19298 \end_inset
19299
19300
19301 \begin_inset Flex Code
19302 status collapsed
19303
19304 \begin_layout Plain Layout
19305 svn update --non-interactive 
19306 \begin_inset Quotes qld
19307 \end_inset
19308
19309 <ファイル名>
19310 \begin_inset Quotes qld
19311 \end_inset
19312
19313
19314 \end_layout
19315
19316 \end_inset
19317
19318
19319 \end_layout
19320
19321 \begin_layout Subsubsection
19322 リポジトリ版に戻す
19323 \end_layout
19324
19325 \begin_layout Standard
19326 これは,最後のチェックイン以降,文書に加えられた変更をすべて廃棄します.変更が廃棄される前に警告が表示されます.
19327 \end_layout
19328
19329 \begin_layout Standard
19330 SVNコマンド:
19331 \begin_inset Flex Code
19332 status collapsed
19333
19334 \begin_layout Plain Layout
19335 svn revert -q 
19336 \begin_inset Quotes qld
19337 \end_inset
19338
19339 <ファイル名>
19340 \begin_inset Quotes qld
19341 \end_inset
19342
19343
19344 \end_layout
19345
19346 \end_inset
19347
19348
19349 \end_layout
19350
19351 \begin_layout Subsubsection
19352
19353 \family sans
19354 コピー
19355 \end_layout
19356
19357 \begin_layout Standard
19358 これは,現行文書のコピーを生成します.最後のチェックイン以降,変更が加えられていないサラの文書であることが要求されます.ファイル名とコピー操作の説明を入力するよ
19359 うに促され,その後,新コピーがローカルとリポジトリの両方に生成されます.コピーされた文書と元の文書の親ディレクトリが異なる場合には,コピーにインクルードされたフ
19360 ァイルの相対パスは,(
19361 \family sans
19362 ファイル\SpecialChar menuseparator
19363 名前をつけて保存\SpecialChar ldots
19364
19365 \family default
19366 と同様に)全て調整されます.最後に,元の文書の代わりに,コピーされたファイルが読み込まれます.
19367 \end_layout
19368
19369 \begin_layout Labeling
19370 \labelwidthstring 00.00.0000
19371 SVNコマンド: 
19372 \begin_inset space ~
19373 \end_inset
19374
19375
19376 \begin_inset Newline newline
19377 \end_inset
19378
19379
19380 \begin_inset Flex Code
19381 status collapsed
19382
19383 \begin_layout Plain Layout
19384 svn copy -q "<ファイル名>" "<新ファイル名>"
19385 \end_layout
19386
19387 \end_inset
19388
19389
19390 \begin_inset space ~
19391 \end_inset
19392
19393
19394 \begin_inset Newline newline
19395 \end_inset
19396
19397
19398 \begin_inset Flex Code
19399 status collapsed
19400
19401 \begin_layout Plain Layout
19402 svn commit
19403 \end_layout
19404
19405 \end_inset
19406
19407
19408 \end_layout
19409
19410 \begin_layout Subsubsection
19411 ファイル名変更
19412 \end_layout
19413
19414 \begin_layout Standard
19415 これは,現行文書のファイル名を変更します.最後のチェックイン以降,変更が加えられていないサラの文書であることが要求されます.ファイル名とコピー操作の説明を入力す
19416 るように促され,その後,ローカルとリポジトリの両方でファイル名が変更されます.新旧ファイル名の文書の親ディレクトリが異なる場合には,コピーにインクルードされたフ
19417 ァイルの相対パスは,(
19418 \family sans
19419 ファイル\SpecialChar menuseparator
19420 名前をつけて保存\SpecialChar ldots
19421
19422 \family default
19423 と同様に)全て調整されます.最後に,新ファイル名を使ってファイルが再度読み込まれます.
19424 \end_layout
19425
19426 \begin_layout Labeling
19427 \labelwidthstring 00.00.0000
19428 SVNコマンド: 
19429 \begin_inset space ~
19430 \end_inset
19431
19432
19433 \begin_inset Newline newline
19434 \end_inset
19435
19436
19437 \begin_inset Flex Code
19438 status collapsed
19439
19440 \begin_layout Plain Layout
19441 svn move -q add "<ファイル名>" "<新ファイル名>"
19442 \end_layout
19443
19444 \end_inset
19445
19446
19447 \begin_inset Newline newline
19448 \end_inset
19449
19450
19451 \begin_inset Flex Code
19452 status collapsed
19453
19454 \begin_layout Plain Layout
19455 svn commit
19456 \end_layout
19457
19458 \end_inset
19459
19460
19461 \end_layout
19462
19463 \begin_layout Subsubsection
19464 \begin_inset CommandInset label
19465 LatexCommand label
19466 name "subsec:レポジトリからSVN同期"
19467
19468 \end_inset
19469
19470 レポジトリを使ったローカルディレクトリの同期
19471 \begin_inset Foot
19472 status collapsed
19473
19474 \begin_layout Plain Layout
19475 このコマンドは,subversion 
19476 \begin_inset Formula $\geqq1.5$
19477 \end_inset
19478
19479 でのみ動作することに注意してください.
19480 \end_layout
19481
19482 \end_inset
19483
19484
19485 \end_layout
19486
19487 \begin_layout Standard
19488 上記の各コマンドはすべて,共通の短所を持っています.すなわち,これらのコマンドは現在の文書しか取り扱わないのです.もし,作業中の文書に図を含めたり,外部
19489 \begin_inset Flex Code
19490 status collapsed
19491
19492 \begin_layout Plain Layout
19493 .tex
19494 \end_layout
19495
19496 \end_inset
19497
19498 ファイルを取り込んだりすれば,管理はずっと複雑になります.そこで\SpecialChar LyX
19499 は,文書のおいてあるツリー全体の更新をサポートします
19500 \begin_inset Foot
19501 status collapsed
19502
19503 \begin_layout Plain Layout
19504 すべての外部ファイルが,文書と同じディレクトリかそれ以下のサブディレクトリに来るようにファイル構造を構成する必要があります.
19505 \end_layout
19506
19507 \end_inset
19508
19509 .これは,subversion管理を知らなかったりレポジトリに新しい素材をコミットする勇気のない人たちと共同作業をする羽目になったときに,ひじょうに役に立ちます
19510
19511 \end_layout
19512
19513 \begin_layout Standard
19514 \begin_inset Flex Code
19515 status collapsed
19516
19517 \begin_layout Plain Layout
19518 ローカル辞書をレポジトリを使って更新
19519 \end_layout
19520
19521 \end_inset
19522
19523 コマンドは,ディレクトリ全体を更新し,マージに衝突が発生した場合には,ローカル版は保存されるので,意図しないデータロスが発生しません.ローカルな変更が発見された
19524 場合には,更新が開始される前にユーザに警告が与えられます.
19525 \end_layout
19526
19527 \begin_layout Labeling
19528 \labelwidthstring 00.00.0000
19529 SVNコマンド: 
19530 \begin_inset space ~
19531 \end_inset
19532
19533
19534 \begin_inset Newline newline
19535 \end_inset
19536
19537
19538 \begin_inset Flex Code
19539 status collapsed
19540
19541 \begin_layout Plain Layout
19542 svn diff $path(変更が発見された場合には通知します)
19543 \begin_inset Newline newline
19544 \end_inset
19545
19546 svn update --accept mine-full $path
19547 \end_layout
19548
19549 \end_inset
19550
19551
19552 \end_layout
19553
19554 \begin_layout Standard
19555 ここで
19556 \begin_inset Flex Code
19557 status collapsed
19558
19559 \begin_layout Plain Layout
19560 $path
19561 \end_layout
19562
19563 \end_inset
19564
19565 は文書のパスを示します.
19566 \end_layout
19567
19568 \begin_layout Subsubsection
19569 履歴を表示
19570 \end_layout
19571
19572 \begin_layout Standard
19573 これは,SVN文書の全履歴を表示します.
19574 \begin_inset Flex Code
19575 status collapsed
19576
19577 \begin_layout Plain Layout
19578 svn log 
19579 \begin_inset Quotes qld
19580 \end_inset
19581
19582 <ファイル名>
19583 \begin_inset Quotes qld
19584 \end_inset
19585
19586
19587 \end_layout
19588
19589 \end_inset
19590
19591 の出力がブラウザに表示されます.
19592 \end_layout
19593
19594 \begin_layout Subsubsection
19595 ファイルロック
19596 \begin_inset CommandInset label
19597 LatexCommand label
19598 name "subsec:SVNファイルロック"
19599
19600 \end_inset
19601
19602
19603 \end_layout
19604
19605 \begin_layout Standard
19606 別々の改訂管理システム間でファイルを交換しようとすると,二人のユーザが同じ文書(の一部)を編集している場合,マージが衝突する問題を引き起こします.そのような衝突
19607 が発生した場合,手動で解決しなくてはならなくなりますが,その合理的な解決法としては,与えられた時間に一人のユーザだけがファイルを編集することが許されるように保証
19608 するための,何らかのロック機構を導入することが考えられます.
19609 \end_layout
19610
19611 \begin_layout Standard
19612 SVNには,このように相互に排他的なファイルアクセスを提供する機構が二つあります.ロックと,
19613 \begin_inset Flex Code
19614 status collapsed
19615
19616 \begin_layout Plain Layout
19617 svn:needs-lock
19618 \end_layout
19619
19620 \end_inset
19621
19622 svnファイル特性に依拠した書き込み権限の自動設定(第
19623 \begin_inset CommandInset ref
19624 LatexCommand ref
19625 reference "subsec:自動ロック特性"
19626
19627 \end_inset
19628
19629 節を参照)です
19630 \begin_inset Foot
19631 status collapsed
19632
19633 \begin_layout Plain Layout
19634 \begin_inset Flex URL
19635 status open
19636
19637 \begin_layout Plain Layout
19638
19639 http://svnbook.red-bean.com/en/1.2/svn.advanced.locking.html
19640 \end_layout
19641
19642 \end_inset
19643
19644
19645 \end_layout
19646
19647 \end_inset
19648
19649 .ある文書について,この特性が検出されたときには,\SpecialChar LyX
19650 は自動的に文書編集にSVNロックを使用するようになり,チェックイン・チェックアウト機構はRCSと同じ枠組みに切
19651 り替わります.これは特に,\SpecialChar LyX
19652 でのファイルの使われ方に以下の二つのモードがあることを意味します.
19653 \end_layout
19654
19655 \begin_layout Itemize
19656 非ロック状態.読み込まれたファイルは,読み込み専用モードになります.編集するためには,チェックアウトする必要があります.
19657 \emph on
19658 チェックアウト
19659 \emph default
19660 を行うと,レポジトリからの更新と,書き込みロックの獲得が行われます.ロックの獲得ができないと,非ロック状態から出ることができません.
19661 \end_layout
19662
19663 \begin_layout Itemize
19664 ロック状態.読み込まれたファイルは,「通常の」編集モードになります.他のユーザには,このファイルを編集する許可が与えられません.
19665 \emph on
19666 チェックイン
19667 \emph default
19668 を行うと,変更のコミットと書き込みロックの解放が行われます.文書に変更が加えられなかった場合には,コミットは実行されず
19669 \begin_inset Foot
19670 status collapsed
19671
19672 \begin_layout Plain Layout
19673 コミットは実行されないのに,コミットメッセージを入力するよう促されますが,驚かないでください.
19674 \end_layout
19675
19676 \end_inset
19677
19678 ,書き込みロックの解放のみが行われます.
19679 \end_layout
19680
19681 \begin_layout Standard
19682 SVNコマンド:
19683 \end_layout
19684
19685 \begin_layout Labeling
19686 \labelwidthstring 00.00.0000
19687 チェックイン: 
19688 \begin_inset Flex Code
19689 status collapsed
19690
19691 \begin_layout Plain Layout
19692 svn commit -q -m
19693 \begin_inset Quotes erd
19694 \end_inset
19695
19696 <説明>
19697 \begin_inset Quotes erd
19698 \end_inset
19699
19700  
19701 \begin_inset Quotes eld
19702 \end_inset
19703
19704 <ファイル名>
19705 \begin_inset Quotes erd
19706 \end_inset
19707
19708
19709 \end_layout
19710
19711 \end_inset
19712
19713
19714 \begin_inset Newline newline
19715 \end_inset
19716
19717
19718 \begin_inset Flex Code
19719 status collapsed
19720
19721 \begin_layout Plain Layout
19722 svn unlock 
19723 \begin_inset Quotes eld
19724 \end_inset
19725
19726 <ファイル名>
19727 \begin_inset Quotes erd
19728 \end_inset
19729
19730
19731 \end_layout
19732
19733 \end_inset
19734
19735
19736 \end_layout
19737
19738 \begin_layout Labeling
19739 \labelwidthstring 00.00.0000
19740 チェックアウト: 
19741 \begin_inset Flex Code
19742 status collapsed
19743
19744 \begin_layout Plain Layout
19745 svn update 
19746 \begin_inset Quotes eld
19747 \end_inset
19748
19749 <ファイル名>
19750 \begin_inset Quotes erd
19751 \end_inset
19752
19753
19754 \end_layout
19755
19756 \end_inset
19757
19758
19759 \begin_inset Newline newline
19760 \end_inset
19761
19762
19763 \begin_inset Flex Code
19764 status collapsed
19765
19766 \begin_layout Plain Layout
19767 svn unlock 
19768 \begin_inset Quotes eld
19769 \end_inset
19770
19771 <ファイル名>
19772 \begin_inset Quotes erd
19773 \end_inset
19774
19775
19776 \end_layout
19777
19778 \end_inset
19779
19780
19781 \end_layout
19782
19783 \begin_layout Subsubsection
19784 自動ロック特性
19785 \begin_inset CommandInset label
19786 LatexCommand label
19787 name "subsec:自動ロック特性"
19788
19789 \end_inset
19790
19791
19792 \end_layout
19793
19794 \begin_layout Standard
19795 上述したような
19796 \begin_inset Flex Code
19797 status collapsed
19798
19799 \begin_layout Plain Layout
19800 .lyx
19801 \end_layout
19802
19803 \end_inset
19804
19805 ファイルに対する書き込み権限の自動設定は,
19806 \begin_inset Flex MenuItem
19807 status collapsed
19808
19809 \begin_layout Plain Layout
19810 ファイル\SpecialChar menuseparator
19811 バージョン管理\SpecialChar menuseparator
19812 ロック特性を使用
19813 \end_layout
19814
19815 \end_inset
19816
19817 で行うことができます.このコマンドは,SVNサーバでファイルがロックされていないときのみ使用可能状態になります(つまり,使用するにはチェックアウトが必要です).
19818 \end_layout
19819
19820 \begin_layout Standard
19821 SVNコマンド:
19822 \end_layout
19823
19824 \begin_layout Labeling
19825 \labelwidthstring 00.00.0000
19826 チェックイン: 
19827 \begin_inset Flex Code
19828 status collapsed
19829
19830 \begin_layout Plain Layout
19831 svn propset svn:needs-lock ON 
19832 \begin_inset Quotes eld
19833 \end_inset
19834
19835 <ファイル名>
19836 \begin_inset Quotes erd
19837 \end_inset
19838
19839
19840 \end_layout
19841
19842 \end_inset
19843
19844
19845 \end_layout
19846
19847 \begin_layout Labeling
19848 \labelwidthstring 00.00.0000
19849 チェックアウト: 
19850 \begin_inset Flex Code
19851 status collapsed
19852
19853 \begin_layout Plain Layout
19854 svn propdel svn:needs-lock 
19855 \begin_inset Quotes eld
19856 \end_inset
19857
19858 <ファイル名>
19859 \begin_inset Quotes erd
19860 \end_inset
19861
19862
19863 \end_layout
19864
19865 \end_inset
19866
19867
19868 \end_layout
19869
19870 \begin_layout Subsubsection
19871 \begin_inset CommandInset label
19872 LatexCommand label
19873 name "subsec:VCS改訂情報"
19874
19875 \end_inset
19876
19877 文書の改訂情報
19878 \end_layout
19879
19880 \begin_layout Standard
19881 文書中で改訂情報を有効化するにはいくつかの方法があります.
19882 \end_layout
19883
19884 \begin_layout Itemize
19885 \SpecialChar LyX
19886 による直接サポート
19887 \end_layout
19888
19889 \begin_deeper
19890 \begin_layout Itemize
19891 ツリー改訂情報(
19892 \begin_inset Flex Code
19893 status collapsed
19894
19895 \begin_layout Plain Layout
19896 vcs-tree-revision
19897 \end_layout
19898
19899 \end_inset
19900
19901 ).
19902 \begin_inset Flex Code
19903 status collapsed
19904
19905 \begin_layout Plain Layout
19906 svnversion
19907 \end_layout
19908
19909 \end_inset
19910
19911 コマンドの出力を返します.下記の表が,結果の読み方のヒントを与えるでしょう.
19912 \end_layout
19913
19914 \begin_layout Standard
19915 \align center
19916 \begin_inset Tabular
19917 <lyxtabular version="3" rows="6" columns="2">
19918 <features tabularvalignment="middle">
19919 <column alignment="center" valignment="top">
19920 <column alignment="center" valignment="top">
19921 <row>
19922 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19923 \begin_inset Text
19924
19925 \begin_layout Plain Layout
19926 出力
19927 \end_layout
19928
19929 \end_inset
19930 </cell>
19931 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
19932 \begin_inset Text
19933
19934 \begin_layout Plain Layout
19935 意味
19936 \end_layout
19937
19938 \end_inset
19939 </cell>
19940 </row>
19941 <row>
19942 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19943 \begin_inset Text
19944
19945 \begin_layout Plain Layout
19946 4123:4168
19947 \end_layout
19948
19949 \end_inset
19950 </cell>
19951 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
19952 \begin_inset Text
19953
19954 \begin_layout Plain Layout
19955 改訂版の混合した作業コピー
19956 \end_layout
19957
19958 \end_inset
19959 </cell>
19960 </row>
19961 <row>
19962 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19963 \begin_inset Text
19964
19965 \begin_layout Plain Layout
19966 4168M
19967 \end_layout
19968
19969 \end_inset
19970 </cell>
19971 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
19972 \begin_inset Text
19973
19974 \begin_layout Plain Layout
19975 修正された作業コピー
19976 \end_layout
19977
19978 \end_inset
19979 </cell>
19980 </row>
19981 <row>
19982 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19983 \begin_inset Text
19984
19985 \begin_layout Plain Layout
19986 4123S
19987 \end_layout
19988
19989 \end_inset
19990 </cell>
19991 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
19992 \begin_inset Text
19993
19994 \begin_layout Plain Layout
19995 スイッチされた作業コピー
19996 \end_layout
19997
19998 \end_inset
19999 </cell>
20000 </row>
20001 <row>
20002 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20003 \begin_inset Text
20004
20005 \begin_layout Plain Layout
20006 4123P
20007 \end_layout
20008
20009 \end_inset
20010 </cell>
20011 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20012 \begin_inset Text
20013
20014 \begin_layout Plain Layout
20015 チェックアウト頻度が低かったことによる不完全な作業コピー
20016 \end_layout
20017
20018 \end_inset
20019 </cell>
20020 </row>
20021 <row>
20022 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
20023 \begin_inset Text
20024
20025 \begin_layout Plain Layout
20026 4123:4168MS
20027 \end_layout
20028
20029 \end_inset
20030 </cell>
20031 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
20032 \begin_inset Text
20033
20034 \begin_layout Plain Layout
20035 改訂版が混合し,修正され,スイッチされた作業コピー
20036 \end_layout
20037
20038 \end_inset
20039 </cell>
20040 </row>
20041 </lyxtabular>
20042
20043 \end_inset
20044
20045
20046 \end_layout
20047
20048 \begin_layout Itemize
20049 ファイル改訂情報.
20050 \begin_inset Flex Code
20051 status collapsed
20052
20053 \begin_layout Plain Layout
20054 svn
20055 \begin_inset space ~
20056 \end_inset
20057
20058 info
20059 \begin_inset space ~
20060 \end_inset
20061
20062 --xml
20063 \begin_inset space ~
20064 \end_inset
20065
20066 file.lyx
20067 \end_layout
20068
20069 \end_inset
20070
20071 の出力を解析したものが返されます.サポートされるフラグは
20072 \end_layout
20073
20074 \begin_deeper
20075 \begin_layout Itemize
20076 最終コミットのバージョン番号(
20077 \begin_inset Flex Code
20078 status collapsed
20079
20080 \begin_layout Plain Layout
20081 vcs-revision
20082 \end_layout
20083
20084 \end_inset
20085
20086
20087 \end_layout
20088
20089 \begin_layout Itemize
20090 最終コミットの著者(
20091 \begin_inset Flex Code
20092 status collapsed
20093
20094 \begin_layout Plain Layout
20095 vcs-author
20096 \end_layout
20097
20098 \end_inset
20099
20100
20101 \end_layout
20102
20103 \begin_layout Itemize
20104 最終コミットの日付(
20105 \begin_inset Flex Code
20106 status collapsed
20107
20108 \begin_layout Plain Layout
20109 vcs-date
20110 \end_layout
20111
20112 \end_inset
20113
20114
20115 \end_layout
20116
20117 \begin_layout Itemize
20118 最終コミットの時間(
20119 \begin_inset Flex Code
20120 status collapsed
20121
20122 \begin_layout Plain Layout
20123 vcs-time
20124 \end_layout
20125
20126 \end_inset
20127
20128
20129 \end_layout
20130
20131 \end_deeper
20132 \begin_layout Standard
20133 これらの情報は,情報差込枠で得ることができます(例:
20134 \begin_inset Flex Code
20135 status collapsed
20136
20137 \begin_layout Plain Layout
20138 info-insert buffer vcs-date
20139 \end_layout
20140
20141 \end_inset
20142
20143 ).これらの情報は,ファイルをsvn管理下に置いたときのみ(すなわち使用中文書の
20144 \begin_inset Flex Code
20145 status collapsed
20146
20147 \begin_layout Plain Layout
20148 .svn
20149 \end_layout
20150
20151 \end_inset
20152
20153 ディレクトリがあるときのみ)利用可能です.
20154 \end_layout
20155
20156 \end_deeper
20157 \begin_layout Itemize
20158 もう一つの—ハッカー的な—方法は,SVNキーワードを使用する方法です
20159 \begin_inset Foot
20160 status collapsed
20161
20162 \begin_layout Plain Layout
20163 http://svnbook.red-bean.com/en/1.4/svn.advanced.props.special.keywords.html
20164 \end_layout
20165
20166 \end_inset
20167
20168 .簡単に言えば,ファイルキーワード特性を設定して(例:
20169 \family sans
20170 svn propset svn:keywords 'Rev' file.lyx
20171 \family default
20172 ),文書中にキーワード\SpecialChar TeX
20173 コード
20174 \begin_inset Foot
20175 status collapsed
20176
20177 \begin_layout Plain Layout
20178 これは,\SpecialChar LyX
20179 がキーワードタグの途中で改行してしまわないことを確実にするための,簡単な方法です.
20180 \end_layout
20181
20182 \end_inset
20183
20184 タグ(例:
20185 \begin_inset Flex Code
20186 status collapsed
20187
20188 \begin_layout Plain Layout
20189 $Rev$
20190 \end_layout
20191
20192 \end_inset
20193
20194 )を貼り付けるのです.このようにして,SVNクライアントは,各更新やコミットの後に自動的に改訂番号を代入することができるのです(例:
20195 \begin_inset Flex Code
20196 status collapsed
20197
20198 \begin_layout Plain Layout
20199 $Rev: 59 $
20200 \end_layout
20201
20202 \end_inset
20203
20204 ).このアプローチにはいくつか問題があります.第一に,\SpecialChar TeX
20205 の世界では「$」文字は数式を表すのに使われるので,\SpecialChar LyX
20206 中の
20207 \begin_inset Formula $Rev$
20208 \end_inset
20209
20210 という数式表現が,すべて
20211 \begin_inset Formula $Rev:59$
20212 \end_inset
20213
20214 になってしまいます.その他のId・Date・Authorなどといったキーワードも同様です.第二に,SVN出力は使用中のロケールに依存するので,Dateが用いられ
20215 ると,SVNは,問題を引き起こすような文字列を容易に生成してしまいます.第三に,文書中には,番号だけでなく「Rev: 59」という文字列全体が表示されてしまいま
20216 す.Subversionがユーザ定義のキーワードを実装するまでは,このアプローチを信頼性を持って使用したり,\SpecialChar LyX
20217 がこれを直接サポートすることは,難しそうです.
20218 \end_layout
20219
20220 \begin_layout Subsection
20221 SVNとWindows環境
20222 \end_layout
20223
20224 \begin_layout Quote
20225 ユーザが,かなり早いうちに自分自身でコマンドライン操作を理解できないのであれば,TortoiseSVNを使った方が賢明でしょう.—P.
20226  A.
20227  ルービン
20228 \end_layout
20229
20230 \begin_layout Subsubsection
20231 準備
20232 \end_layout
20233
20234 \begin_layout Standard
20235 \SpecialChar LyX
20236 を導入して,Subversionレポジトリへのアクセス権を持っている他に,ユーザはSubversionクライアントプログラムを導入する必要があります.クライアン
20237 トプログラムのWindows用インストーラは
20238 \begin_inset CommandInset href
20239 LatexCommand href
20240 name "CollabNet"
20241 target "http://www.collab.net/nonav/downloads/subversion/"
20242 literal "false"
20243
20244 \end_inset
20245
20246 にあります.ユーザは
20247 \begin_inset CommandInset href
20248 LatexCommand href
20249 name "TortoiseSVN"
20250 target "http://tortoisesvn.tigris.org/"
20251 literal "false"
20252
20253 \end_inset
20254
20255 も導入することを考えるでしょう.これはSubversionの操作をWindows Explorerのコンテクスト(右クリック)メニューに統合します.\SpecialChar LyX
20256 外部で行う操
20257 作は,一般的にExplorerコンテクストメニューを使った方が便利です.TortoiseSVNは,\SpecialChar LyX
20258 自身が使用するクライアントプログラムの代わりとは成りませんので
20259 ,注意してください.
20260 \end_layout
20261
20262 \begin_layout Subsubsection
20263 文書をSubversion管理下に置くには
20264 \end_layout
20265
20266 \begin_layout Standard
20267 \SpecialChar LyX
20268 文書をSubversionのバージョン管理下に置く前に,その親ディレクトリをバージョン管理下に置かなくてはなりません.文書を,既にレポジトリに存在するプロジェク
20269 トに追加する際には,新規文書が置かれることになるディレクトリへ,プロジェクトをチェックアウトすることによって実現します.プロジェクト自体がバージョン管理下にない
20270 場合(たとえばこの文書が新規プロジェクトの最初のファイルである場合)には,このディレクトリをレポジトリにインポートしなくてはなりません.これは,\SpecialChar LyX
20271 の外部で行います
20272 .インポートもチェックアウトも共に,TortoiseSVNを使えば,Explorerのコンテクストメニューから簡単に終えることができます.あるいは,DOSプロン
20273 プトでコマンドライン・クライアントを使って成し遂げることもできます.TortoiseSVNを使ったプロジェクトのインポート手続きを下記で説明します.レポジトリは
20274 既に存在し,新規プロジェクトを
20275 \begin_inset Flex Code
20276 status collapsed
20277
20278 \begin_layout Plain Layout
20279 C:
20280 \backslash
20281 new project
20282 \end_layout
20283
20284 \end_inset
20285
20286 で開始するものとします.Subversionクライアントプログラムを使うための情報を得るには,DOSシェルで
20287 \begin_inset Flex Code
20288 status collapsed
20289
20290 \begin_layout Plain Layout
20291 svn --help
20292 \end_layout
20293
20294 \end_inset
20295
20296 を実行してください.
20297 \end_layout
20298
20299 \begin_layout Enumerate
20300 Windows Explorerで
20301 \begin_inset Flex Code
20302 status collapsed
20303
20304 \begin_layout Plain Layout
20305 C:
20306 \backslash
20307 new project
20308 \end_layout
20309
20310 \end_inset
20311
20312 を見つけ出して右クリックし,
20313 \begin_inset Flex MenuItem
20314 status collapsed
20315
20316 \begin_layout Plain Layout
20317 TortoiseSVN\SpecialChar menuseparator
20318 Repo-browser
20319 \end_layout
20320
20321 \end_inset
20322
20323 を選択してください.必要であれば,レポジトリのURLを調整し,OKをクリックしてください.
20324 \end_layout
20325
20326 \begin_layout Enumerate
20327 新規プロジェクトフォルダを置くレポジトリレベル(多くの場合最上位レベル)を右クリックし,
20328 \begin_inset Flex MenuItem
20329 status collapsed
20330
20331 \begin_layout Plain Layout
20332 Create folder\SpecialChar ldots
20333
20334 \end_layout
20335
20336 \end_inset
20337
20338 をクリックしてください.プロジェクトフォルダの名称を入力してOKをクリックしてください.必要であればログファイル用のメッセージを入力し,再びOKをクリックしてく
20339 ださい.新規プロジェクトフォルダがレポジトリに現れるはずです.最後にOKを再度クリックして,レポジトリブラウザを終了してください.
20340 \end_layout
20341
20342 \begin_layout Enumerate
20343 再度
20344 \begin_inset Flex Code
20345 status collapsed
20346
20347 \begin_layout Plain Layout
20348 C:
20349 \backslash
20350 new project
20351 \end_layout
20352
20353 \end_inset
20354
20355 を右クリックし,今度は
20356 \begin_inset Flex MenuItem
20357 status collapsed
20358
20359 \begin_layout Plain Layout
20360 SVN Checkout\SpecialChar ldots
20361
20362 \end_layout
20363
20364 \end_inset
20365
20366 を選択してください.レポジトリにたった今作成した,プロジェクトフォルダのURLを選択し,チェックアウトディレクトリを
20367 \begin_inset Flex Code
20368 status collapsed
20369
20370 \begin_layout Plain Layout
20371 C:
20372 \backslash
20373 new project
20374 \end_layout
20375
20376 \end_inset
20377
20378 に設定してから,OKをクリックしてください.フォルダが空でないことを警告されますが,OKをクリックして進んでください.すると,
20379 \begin_inset Flex Code
20380 status collapsed
20381
20382 \begin_layout Plain Layout
20383 C:
20384 \backslash
20385 new project
20386 \end_layout
20387
20388 \end_inset
20389
20390 の下に
20391 \begin_inset Flex Code
20392 status collapsed
20393
20394 \begin_layout Plain Layout
20395 .svn
20396 \end_layout
20397
20398 \end_inset
20399
20400 ディレクトリが作成されます.
20401 \end_layout
20402
20403 \begin_layout Enumerate
20404 \SpecialChar LyX
20405 で文書を新規作成するか開くかして,
20406 \begin_inset Flex MenuItem
20407 status collapsed
20408
20409 \begin_layout Plain Layout
20410 ファイル\SpecialChar menuseparator
20411 バージョン管理\SpecialChar menuseparator
20412 登録
20413 \end_layout
20414
20415 \end_inset
20416
20417 をクリックします.ログメッセージを入力してOKをクリックし,文書をバージョン管理にコミットしてください.
20418 \end_layout
20419
20420 \begin_layout Standard
20421 爾後,
20422 \begin_inset Flex MenuItem
20423 status collapsed
20424
20425 \begin_layout Plain Layout
20426 ファイル\SpecialChar menuseparator
20427 バージョン管理
20428 \end_layout
20429
20430 \end_inset
20431
20432 メニューのすべての機能が使用できるようになります.Windows ExplorerのTortoiseSVNコンテクストメニューか,コマンドプロンプトでのSubv
20433 ersionクライアントプログラムを使用して,文書をチェックイン・チェックアウトしたり,履歴を見たりといったことができるようになります.
20434 \end_layout
20435
20436 \begin_layout Subsubsection
20437 Windows下でSVNと共にSSHトンネルを使うには
20438 \end_layout
20439
20440 \begin_layout Standard
20441 Linuxに較べて,WindowsでSVNクライアントをSSH経由で通信するようにさせるのは,かなり厄介な仕事です.どのようにクライアント側を設定すればよいか,
20442 少なくとも幾分かのヒントをお示しするつもりですが,sshとWindowsコマンドラインの知識が前もって必要であり,それと共にかなりの量のフラストレーションが溜ま
20443 ることを覚悟しておいてください.
20444 \end_layout
20445
20446 \begin_layout Enumerate
20447 前節で述べたように,Windows用のSVNクライアントを入手してください.これが新規の導入である場合には,何らかのSVNコマンド(たとえば
20448 \begin_inset Flex Code
20449 status collapsed
20450
20451 \begin_layout Plain Layout
20452 svn --version
20453 \end_layout
20454
20455 \end_inset
20456
20457 )を実行して,configファイル群を生成させてください.これらは後で変更を加える必要があります.
20458 \end_layout
20459
20460 \begin_layout Enumerate
20461 Windows用のsshクライアントを選んでください.選択肢はたくさんありますが,ここではPutty tools
20462 \begin_inset Foot
20463 status open
20464
20465 \begin_layout Plain Layout
20466 \begin_inset Flex URL
20467 status collapsed
20468
20469 \begin_layout Plain Layout
20470
20471 http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html
20472 \end_layout
20473
20474 \end_inset
20475
20476
20477 \end_layout
20478
20479 \end_inset
20480
20481 のものを使用することとしましょう.クライアントが接続の度にパスワードを訊いてこないように,接続を自動化する必要があります.簡単にするために,追加的なパスワード保
20482 護などを加えない
20483 \begin_inset Flex Ruby
20484 status collapsed
20485
20486 \begin_layout Plain Layout
20487
20488 \begin_inset Argument post:1
20489 status collapsed
20490
20491 \begin_layout Plain Layout
20492 キー
20493 \end_layout
20494
20495 \end_inset
20496
20497
20498 \end_layout
20499
20500 \end_inset
20501
20502 のみを使用することとします.
20503 \end_layout
20504
20505 \begin_deeper
20506 \begin_layout Enumerate
20507 \begin_inset Flex Code
20508 status collapsed
20509
20510 \begin_layout Plain Layout
20511 puttygen
20512 \end_layout
20513
20514 \end_inset
20515
20516 を使って鍵を生成します..ppkプライベート鍵ファイルを保存し,パブリック鍵ファイルはサーバ側に置きます.SVNサーバがLinuxで走っている場合,このパブリック
20517 鍵の書式はLinuxのopensshと互換性がないために,「Public key for pasting into OpenSSH authorized_key
20518 s file:」編集フィールドから,直接サーバの
20519 \begin_inset Flex Code
20520 status collapsed
20521
20522 \begin_layout Plain Layout
20523 ~/.ssh/authorized_keys
20524 \end_layout
20525
20526 \end_inset
20527
20528 または
20529 \begin_inset Flex Code
20530 status collapsed
20531
20532 \begin_layout Plain Layout
20533 authorized_keys2
20534 \end_layout
20535
20536 \end_inset
20537
20538 ファイルにコピー&ペーストを行わなくてはならないことに注意してください.
20539 \end_layout
20540
20541 \begin_layout Enumerate
20542 Puttyのplinkを入手してください.SVNのconfigファイル
20543 \begin_inset Foot
20544 status collapsed
20545
20546 \begin_layout Plain Layout
20547 正確なパスはWindowsのバージョンに依りますが,通常は
20548 \begin_inset Flex Code
20549 status collapsed
20550
20551 \begin_layout Plain Layout
20552 c:
20553 \backslash
20554 Documents and Settings
20555 \backslash
20556 user
20557 \backslash
20558 Application Data
20559 \backslash
20560 Subversion
20561 \backslash
20562 config
20563 \end_layout
20564
20565 \end_inset
20566
20567
20568 \begin_inset Flex Code
20569 status collapsed
20570
20571 \begin_layout Plain Layout
20572 AppData
20573 \backslash
20574 Roaming
20575 \backslash
20576 Subversion
20577 \end_layout
20578
20579 \end_inset
20580
20581 辺りにあります.
20582 \end_layout
20583
20584 \end_inset
20585
20586 中の
20587 \begin_inset Flex Code
20588 status collapsed
20589
20590 \begin_layout Plain Layout
20591 [tunnels]
20592 \end_layout
20593
20594 \end_inset
20595
20596 セクションにsshコマンドを設定してください.例:
20597 \begin_inset Flex Code
20598 status collapsed
20599
20600 \begin_layout Plain Layout
20601 ssh=c:/path/plink.exe -i c:/path/private_key.ppk
20602 \end_layout
20603
20604 \end_inset
20605
20606
20607 \begin_inset Foot
20608 status collapsed
20609
20610 \begin_layout Plain Layout
20611 通常,正確なコマンドを機能させるには長い時間がかかり,それは多くの物事に依存します.たとえば,リモートサーバがPuttyなどの既定セッションとして保存されないよ
20612 うにしてください.うまく行かない場合には,まずSVNなしでplink経由の接続を試してください.
20613 \end_layout
20614
20615 \end_inset
20616
20617
20618 \end_layout
20619
20620 \end_deeper
20621 \begin_layout Enumerate
20622 SVNアーカイブをチェックアウトしてください.例:
20623 \begin_inset Newline newline
20624 \end_inset
20625
20626
20627 \begin_inset Flex Code
20628 status collapsed
20629
20630 \begin_layout Plain Layout
20631 svn co svn+ssh://user@server/repository_path
20632 \end_layout
20633
20634 \end_inset
20635
20636
20637 \end_layout
20638
20639 \begin_layout Subsubsection
20640 行末変換
20641 \end_layout
20642
20643 \begin_layout Standard
20644 共著者同士がLinuxとWindowsを混在させているとき,\SpecialChar LyX
20645 は.lyxファイル中で異なった行末記号を使用することになります.これは,\SpecialChar LyX
20646 の機能に関する限り問題になりま
20647 せんが,コミット差分は巨大になり,マージではコンフリクトを引き起こしがちです.幸いにして,SVNは,.lyxファイルを
20648 \begin_inset Flex Code
20649 status collapsed
20650
20651 \begin_layout Plain Layout
20652 native
20653 \end_layout
20654
20655 \end_inset
20656
20657 モードに切り替える際
20658 \begin_inset Foot
20659 status collapsed
20660
20661 \begin_layout Plain Layout
20662 手短には
20663 \begin_inset Flex Code
20664 status collapsed
20665
20666 \begin_layout Plain Layout
20667 svn propset svn:eol-style native FILE_NAME
20668 \end_layout
20669
20670 \end_inset
20671
20672
20673 \end_layout
20674
20675 \end_inset
20676
20677 ,CR/LF問題をどのように取り扱えばいいかを知っているので大丈夫です
20678 \begin_inset Foot
20679 status collapsed
20680
20681 \begin_layout Plain Layout
20682 \begin_inset Flex URL
20683 status collapsed
20684
20685 \begin_layout Plain Layout
20686
20687 http://svnbook.red-bean.com/en/1.4/svn.advanced.props.file-portability.html
20688 \end_layout
20689
20690 \end_inset
20691
20692
20693 \end_layout
20694
20695 \end_inset
20696
20697
20698 \end_layout
20699
20700 \begin_layout Subsection
20701 \SpecialChar LyX
20702 におけるGITコマンド
20703 \end_layout
20704
20705 \begin_layout Standard
20706 \SpecialChar LyX
20707 で,最小限のGITコマンドがサポートされるようになりました.これらのコマンドは,
20708 \family sans
20709 ファイル\SpecialChar menuseparator
20710 バージョン管理
20711 \family default
20712 にあります.リポジトリのアクセスに,パスワード保護されたsshを使用している場合には,ターミナルウィンドウでの操作をするように促されます.\SpecialChar LyX
20713 は,GIT
20714  1.7に対して試験を行っています
20715 \begin_inset Foot
20716 status collapsed
20717
20718 \begin_layout Plain Layout
20719 Windowsユーザーはgitにパスが通っていることを確認する必要があります.これは,\SpecialChar LyX
20720 中から
20721 \family sans
20722 ツール\SpecialChar menuseparator
20723 設定\SpecialChar menuseparator
20724 パス\SpecialChar menuseparator
20725 PATH接頭辞
20726 \family default
20727 で設定できます.
20728 \end_layout
20729
20730 \end_inset
20731
20732
20733 \end_layout
20734
20735 \begin_layout Standard
20736 GITと他のバージョン管理システムとの大きな相違点は,GITの配布形態にあります.伝統的なバージョン管理システムでは,リポジトリをホストする,中心となるサーバー
20737 があります.ユーザーは変更点をサーバーにコミットし,他のユーザーが行った更新分をサーバーから受け取ります.一方,GITでは,ユーザーは,ローカルのリポジトリにコ
20738 ミットを行います.ローカルリポジトリは,GITコマンドの
20739 \begin_inset Flex Code
20740 status open
20741
20742 \begin_layout Plain Layout
20743 pull
20744 \end_layout
20745
20746 \end_inset
20747
20748 または
20749 \begin_inset Flex Code
20750 status open
20751
20752 \begin_layout Plain Layout
20753 push
20754 \end_layout
20755
20756 \end_inset
20757
20758 を使って,1つ以上のリモートリポジトリと同期されます.\SpecialChar LyX
20759 は,リモートのGITリポジトリとは,一切関わりません.CVSやSVNの集権的リポジトリに対して行うのと同じ
20760 ことを,ローカルのリポジトリに対してのみ行います.リモートのGITリポジトリを使用している場合には,お好みのGITクライアントを使用して,
20761 \begin_inset Flex Code
20762 status open
20763
20764 \begin_layout Plain Layout
20765 pull
20766 \end_layout
20767
20768 \end_inset
20769
20770 または
20771 \begin_inset Flex Code
20772 status open
20773
20774 \begin_layout Plain Layout
20775 push
20776 \end_layout
20777
20778 \end_inset
20779
20780 の操作を行う必要があります.
20781 \end_layout
20782
20783 \begin_layout Subsubsection
20784 登録
20785 \end_layout
20786
20787 \begin_layout Standard
20788 お使いの文書が改訂管理下に置かれていなければ,メニューにはこの項目だけが表示されます.もし改訂管理が有効ならば,
20789 \family sans
20790 登録
20791 \family default
20792 項目は表示されません.
20793 \end_layout
20794
20795 \begin_layout Standard
20796 本コマンドは,既に文書のあるディレクトリをGIT管理下に置いている場合に
20797 \emph on
20798 のみ
20799 \emph default
20800 (すなわち
20801 \begin_inset Flex Code
20802 status collapsed
20803
20804 \begin_layout Plain Layout
20805 .git/index
20806 \end_layout
20807
20808 \end_inset
20809
20810 ファイルが存在する場合にのみ),お使いの文書をGITに登録します.つまり,アーカイブはご自分でチェックアウトしなくてはなりません.
20811 \end_layout
20812
20813 \begin_layout Standard
20814 すると,文書の最初の説明文を入力するように促されます.登録したファイルは,まだコミットされたわけではないことに注意してください.
20815 \end_layout
20816
20817 \begin_layout Standard
20818 実行されるGITコマンドは,
20819 \begin_inset Flex Code
20820 status collapsed
20821
20822 \begin_layout Plain Layout
20823 git add "<ファイル名>"
20824 \end_layout
20825
20826 \end_inset
20827
20828 です.
20829 \end_layout
20830
20831 \begin_layout Standard
20832 スイッチの説明は
20833 \begin_inset Flex Code
20834 status collapsed
20835
20836 \begin_layout Plain Layout
20837 man git
20838 \end_layout
20839
20840 \end_inset
20841
20842 をお読みください.
20843 \end_layout
20844
20845 \begin_layout Subsubsection
20846 変更をチェックイン
20847 \end_layout
20848
20849 \begin_layout Standard
20850 ファイルの編集を終えたら,変更をコミットします.このとき,変更の説明文を入れるよう促されます.その後,変更がコミットされます.
20851 \end_layout
20852
20853 \begin_layout Standard
20854 GITコマンド:
20855 \begin_inset Flex Code
20856 status collapsed
20857
20858 \begin_layout Plain Layout
20859 git commit -q -m
20860 \begin_inset Quotes erd
20861 \end_inset
20862
20863 <入力した説明文>
20864 \begin_inset Quotes erd
20865 \end_inset
20866
20867  "<ファイル名>"
20868 \end_layout
20869
20870 \end_inset
20871
20872
20873 \end_layout
20874
20875 \begin_layout Subsubsection
20876 リポジトリ版に戻す
20877 \end_layout
20878
20879 \begin_layout Standard
20880 これは,最後のチェックイン以降,文書に加えられた変更をすべて廃棄します.変更が廃棄される前に警告が表示されます.
20881 \end_layout
20882
20883 \begin_layout Standard
20884 GITコマンド:
20885 \begin_inset Flex Code
20886 status collapsed
20887
20888 \begin_layout Plain Layout
20889 git checkout -q 
20890 \begin_inset Quotes qld
20891 \end_inset
20892
20893 <ファイル名>
20894 \begin_inset Quotes qld
20895 \end_inset
20896
20897
20898 \end_layout
20899
20900 \end_inset
20901
20902
20903 \end_layout
20904
20905 \begin_layout Subsubsection
20906 ファイル名変更
20907 \end_layout
20908
20909 \begin_layout Standard
20910 これは,現行文書のファイル名を変更します.最後のチェックイン以降,変更が加えられていないサラの文書であることが要求されます.ファイル名とコピー操作の説明を入力す
20911 るように促され,その後,ローカルとリポジトリの両方でファイル名が変更されます.新旧ファイル名の文書の親ディレクトリが異なる場合には,コピーにインクルードされたフ
20912 ァイルの相対パスは,(
20913 \family sans
20914 ファイル\SpecialChar menuseparator
20915 名前をつけて保存\SpecialChar ldots
20916
20917 \family default
20918 と同様に)全て調整されます.最後に,新ファイル名を使ってファイルが再度読み込まれます.
20919 \end_layout
20920
20921 \begin_layout Labeling
20922 \labelwidthstring 00.00.0000
20923 GITコマンド: 
20924 \begin_inset space ~
20925 \end_inset
20926
20927
20928 \begin_inset Newline newline
20929 \end_inset
20930
20931
20932 \begin_inset Flex Code
20933 status collapsed
20934
20935 \begin_layout Plain Layout
20936 git mv "<ファイル名>" "<新ファイル名>"
20937 \end_layout
20938
20939 \end_inset
20940
20941
20942 \begin_inset Newline newline
20943 \end_inset
20944
20945
20946 \begin_inset Flex Code
20947 status collapsed
20948
20949 \begin_layout Plain Layout
20950 git commit
20951 \end_layout
20952
20953 \end_inset
20954
20955
20956 \end_layout
20957
20958 \begin_layout Subsubsection
20959 履歴を表示
20960 \end_layout
20961
20962 \begin_layout Standard
20963 これは,GIT文書の全履歴を表示します.
20964 \begin_inset Flex Code
20965 status collapsed
20966
20967 \begin_layout Plain Layout
20968 git log 
20969 \begin_inset Quotes qld
20970 \end_inset
20971
20972 <ファイル名>
20973 \begin_inset Quotes qld
20974 \end_inset
20975
20976
20977 \end_layout
20978
20979 \end_inset
20980
20981 の出力がブラウザに表示されます.
20982 \end_layout
20983
20984 \begin_layout Subsubsection
20985 改訂情報
20986 \end_layout
20987
20988 \begin_layout Standard
20989 \SpecialChar LyX
20990 は,ファイルの最終コミットのGITハッシュ番号・著者名・最終コミットの日時をサポートします.これらの情報は,すべて
20991 \begin_inset Flex Code
20992 status collapsed
20993
20994 \begin_layout Plain Layout
20995 git log -n 1 --pretty=format:%H%n%an%n%ai
20996 \end_layout
20997
20998 \end_inset
20999
21000 によって抽出されます.ツリーバージョン情報は,
21001 \begin_inset Flex Code
21002 status collapsed
21003
21004 \begin_layout Plain Layout
21005 git describe --abbrev --dirty --long
21006 \end_layout
21007
21008 \end_inset
21009
21010 で取得されます.詳細については,第
21011 \begin_inset CommandInset ref
21012 LatexCommand ref
21013 reference "subsec:VCS改訂情報"
21014
21015 \end_inset
21016
21017 節を参照してください.
21018 \end_layout
21019
21020 \begin_layout Subsection
21021 さらなる調整
21022 \end_layout
21023
21024 \begin_layout Standard
21025 最近になって
21026 \begin_inset Flex Code
21027 status collapsed
21028
21029 \begin_layout Plain Layout
21030 vc-command
21031 \end_layout
21032
21033 \end_inset
21034
21035 機構が付け加えられたおかげで,\SpecialChar LyX
21036 のパワーユーザは,改訂管理のための自製コマンドを作ることができるようになりました.
21037 \end_layout
21038
21039 \begin_layout Standard
21040 たとえば,以下のようにして,二つのTortoiseSVNコマンドを直接統合することができます.
21041 \end_layout
21042
21043 \begin_layout Description
21044 コミット: 
21045 \begin_inset Flex Code
21046 status collapsed
21047
21048 \begin_layout Plain Layout
21049 vc-command DR "." "TortoiseProc /command:commit /path:$$p"
21050 \end_layout
21051
21052 \end_inset
21053
21054
21055 \end_layout
21056
21057 \begin_layout Description
21058 元に戻す: 
21059 \begin_inset Flex Code
21060 status collapsed
21061
21062 \begin_layout Plain Layout
21063 vc-command DR "." "TortoiseProc /command:revert /path:$$p"
21064 \end_layout
21065
21066 \end_inset
21067
21068
21069 \end_layout
21070
21071 \begin_layout Subsection
21072 バージョン管理と文書比較
21073 \end_layout
21074
21075 \begin_layout Standard
21076 バージョン管理は,通常
21077 \begin_inset Flex Code
21078 status collapsed
21079
21080 \begin_layout Plain Layout
21081 diff
21082 \end_layout
21083
21084 \end_inset
21085
21086 ダンプを生成することによって,改訂版の間の変更点を検査するのが,典型的な使用法です.これは平文ファイルには有効なのですが,複雑な構造を持つ\SpecialChar LyX
21087 ファイルの場合には,あ
21088 まり便利ではありません.そこで,\SpecialChar LyX
21089 は独自の文書比較機能を提供しています.この機能を呼び出すには2つの方法があります.1つは,\SpecialChar LyX
21090
21091 \begin_inset Flex Code
21092 status collapsed
21093
21094 \begin_layout Plain Layout
21095 vc-compare
21096 \end_layout
21097
21098 \end_inset
21099
21100 関数を直接呼び出す方法であり(詳細は\SpecialChar LyX
21101 関数説明書を参照),もう1つはツールバーアイコン
21102 \begin_inset Info
21103 type  "icon"
21104 arg   "vc-compare"
21105 \end_inset
21106
21107 による方法,さらにはメニュー項目
21108 \begin_inset Info
21109 type  "menu"
21110 arg   "vc-compare"
21111 \end_inset
21112
21113 を使用する方法です.当該文書のうち,任意の2つの改訂版を比較することもできますし,編集中の現行版を古い改訂版と比較することもできます(このとき改訂版遡及数「
21114 \begin_inset Flex MenuItem
21115 status collapsed
21116
21117 \begin_layout Plain Layout
21118 0
21119 \end_layout
21120
21121 \end_inset
21122
21123 」は,編集中のファイルと最後にコミットした改訂版との比較を意味します).
21124 \end_layout
21125
21126 \begin_layout Standard
21127 この機能は,SVNとRCSでサポートされていますが,RCSは,より複雑なバージョン付けスキームを持っているため,制約があります.ダイアログ中で改訂版を指定する際
21128 の数字は,つねにRCS改訂番号の最後の数を指し示します(例:「1.2.35」版のときには「35」).現在のところ,改訂のGIT表記はサポートされておらず,
21129 \begin_inset Flex Code
21130 status collapsed
21131
21132 \begin_layout Plain Layout
21133 HEAD~X
21134 \end_layout
21135
21136 \end_inset
21137
21138
21139 \lang english
21140 .
21141 \lang japanese
21142 の形で表記されるXステップ前の改訂版を,編集中文書と比較することのみが可能です.
21143 \end_layout
21144
21145 \begin_layout Section
21146 文芸プログラミング
21147 \end_layout
21148
21149 \begin_layout Standard
21150
21151 \noun on
21152 Kayvan Sylvan
21153 \noun default
21154 (kayvan@sylvan.com)改訂 
21155 \noun on
21156 Edmar Wienskoski Jr.
21157 \noun default
21158 (edmar-w-jr@technologist.com)原文
21159 \end_layout
21160
21161 \begin_layout Subsection
21162 はじめに
21163 \end_layout
21164
21165 \begin_layout Standard
21166 この節の主な目的は,文芸的プログラミング(literate programming)のために,\SpecialChar LyX
21167 をどう使えばよいかをお見せすることです.ここでは,あなたがこのプロ
21168 グラミング技術をよくご存じで,「tangling」や「weaving」の意味するところを知っているものとして説明します.そうでない場合には,以下の各節にあるウェ
21169 ブリンクをたどってください.そこには,かつての開発の歴史から最新のツールチップまで,たくさんの良質なドキュメンテーションがあります.
21170 \end_layout
21171
21172 \begin_layout Standard
21173 また,あなたが,\SpecialChar LyX
21174 の設定を変更することを厭わない程度まで\SpecialChar LyX
21175 に習熟しており,Xリソースファイルにも親しんでいることを前提にしています.そうでない場合は,あなたの必要と
21176 するトピックを扱っている,\SpecialChar LyX
21177 の他の説明書で調べてください.
21178 \end_layout
21179
21180 \begin_layout Subsection
21181 文芸プログラミング
21182 \end_layout
21183
21184 \begin_layout Standard
21185 以下は,文芸プログラミング FAQからの抜粋です.
21186 \end_layout
21187
21188 \begin_layout Quotation
21189 文芸プログラミングは,人間が読むのに適した形でのドキュメンテーションとソースの組合わせです.実際,文芸的プログラムは楽しい読み物であるべきであり,さらには参加し
21190 たいとさえ思わせるべきなのです!(ボブ,ごめん.言わずにはいれなかった.)一般的に,文芸プログラムは,ソースとドキュメンテーションを同一ファイル上に結合したもの
21191 です.そして,文芸プログラミングツールは,ファイルを解析して,読むことのできるドキュメンテーションか,あるいはコンパイル可能なソースを生成します.文芸プログラミ
21192 ングのWEBスタイルは,D.
21193 \begin_inset space \thinspace{}
21194 \end_inset
21195
21196 E.
21197  Knuthが,\SpecialChar TeX
21198 組版ソフトウエアを開発中に作り出したものです.
21199 \end_layout
21200
21201 \begin_layout Standard
21202 他のエキスパートの発言です.
21203 \end_layout
21204
21205 \begin_layout Quotation
21206
21207 \emph on
21208 文芸プログラミングは,冗長なコメント付けと何が違いますか?
21209 \end_layout
21210
21211 \begin_layout Quotation
21212 3つの際立った特徴があります.重要な順に列挙すれば,
21213 \end_layout
21214
21215 \begin_deeper
21216 \begin_layout Itemize
21217 推敲の順序が柔軟
21218 \end_layout
21219
21220 \begin_layout Itemize
21221 ブラウジングの自動サポート
21222 \end_layout
21223
21224 \begin_layout Itemize
21225 特に図式と数式を含んだドキュメンテーションの組版
21226 \end_layout
21227
21228 \end_deeper
21229 \begin_layout Quotation
21230 などがあります.
21231 \end_layout
21232
21233 \begin_layout Standard
21234 あなたの興味に火を付けたところで書誌情報を見てみましょう.
21235 \end_layout
21236
21237 \begin_layout Subsubsection
21238 書誌情報
21239 \end_layout
21240
21241 \begin_layout Standard
21242 完全な文芸プログラミング FAQは
21243 \end_layout
21244
21245 \begin_layout Quote
21246 Literate Programming FAQ 
21247 \begin_inset Flex URL
21248 status collapsed
21249
21250 \begin_layout Plain Layout
21251
21252 http://www.literateprogramming.com/lpfaq.pdf
21253 \end_layout
21254
21255 \end_inset
21256
21257
21258 \end_layout
21259
21260 \begin_layout Standard
21261 にあります.
21262 \end_layout
21263
21264 \begin_layout Standard
21265 このFAQには,23(二十三です!)の文芸プログラミング用ツールが列挙されています.一部のツールは,特定のプログラミング言語用に特化したものですが,一般的な対象
21266 を持つものもあります.私は自分で使うのに,いくつかの理由から
21267 \noun on
21268 Noweb
21269 \noun default
21270 を選びました.
21271 \end_layout
21272
21273 \begin_layout Itemize
21274 説明文書を\SpecialChar LaTeX
21275 でもHTMLでも出力できる.
21276 \end_layout
21277
21278 \begin_layout Itemize
21279 オープンアーキテクチャを持っているので,新しいフィルタをプラグインとして加えたり
21280 \begin_inset Foot
21281 status collapsed
21282
21283 \begin_layout Plain Layout
21284
21285 \emph on
21286 フィルタ
21287 \emph default
21288 は,与えられたデータストリームを読み込み,操作されたデータストリームを出力するプログラムです.このようにして,(文芸コードを含んだ)WEBファイルを,Cプログラ
21289 ムコードや\SpecialChar LaTeX
21290 コードのみを含むファイルに変換することができます.
21291 \end_layout
21292
21293 \end_inset
21294
21295 ,自分が必要な特別な処理を実行することが容易である.
21296 \end_layout
21297
21298 \begin_layout Itemize
21299 すでに利用可能となっているフィルタの良質なコレクションがある(HTMLはその一つです).
21300 \end_layout
21301
21302 \begin_layout Itemize
21303 無料である.
21304 \end_layout
21305
21306 \begin_layout Standard
21307 Nowebのウェブページは
21308 \end_layout
21309
21310 \begin_layout Quote
21311 Nowebホームページ 
21312 \begin_inset Flex URL
21313 status collapsed
21314
21315 \begin_layout Plain Layout
21316
21317 https://www.cs.tufts.edu/~nr/noweb/
21318 \end_layout
21319
21320 \end_inset
21321
21322
21323 \end_layout
21324
21325 \begin_layout Standard
21326 にあります.ここから始めれば,たくさんの興味深いリンクや,文芸プログラミングの用例にたどり着くことができます.
21327 \end_layout
21328
21329 \begin_layout Subsection
21330 \SpecialChar LyX
21331 とNowebを使った文芸プログラミング
21332 \end_layout
21333
21334 \begin_layout Standard
21335 \SpecialChar LyX
21336 における文芸プログラミングのサポートは,\SpecialChar LyX
21337 の汎用変換機構を使用して実現しています.このサポートは「Noweb非依存」的な方法で提供されているので,LyXの設定を変
21338 更するだけで,自分の好きな他の文芸プログラミングツールを使って,この新しい\SpecialChar LyX
21339 の機能を利用することができます.
21340 \end_layout
21341
21342 \begin_layout Subsubsection
21343 ドキュメントとコードの生成(weavingおよびtangling)
21344 \end_layout
21345
21346 \begin_layout Paragraph
21347 nowebモジュールの使用
21348 \end_layout
21349
21350 \begin_layout Standard
21351 Nowebと\SpecialChar LyX
21352 の導入に成功したならば,新規文書を開いたときにはいつも,文書クラスを選択した後,
21353 \family sans
21354 文書\SpecialChar menuseparator
21355 設定
21356 \family default
21357 メニューで「noweb」モジュールを追加するようにしてください.Nowebが正しく導入されていれば,「モジュール」リンクをクリックした際,利用可能リストに「no
21358 web」モジュールが表示され,文書に追加できるようになっています.
21359 \end_layout
21360
21361 \begin_layout Paragraph
21362 コードの入力
21363 \end_layout
21364
21365 \begin_layout Standard
21366 \SpecialChar LyX
21367 では,
21368 \begin_inset Flex Noun
21369 status collapsed
21370
21371 \begin_layout Plain Layout
21372 Chunk
21373 \end_layout
21374
21375 \end_inset
21376
21377 という名前の拡張差込枠を使えば,コードを入力することができます.Nowebは次のようにchunks を区切ります.
21378 \end_layout
21379
21380 \begin_layout LyX-Code
21381 <<My code>>=
21382 \end_layout
21383
21384 \begin_layout LyX-Code
21385   code
21386 \end_layout
21387
21388 \begin_layout LyX-Code
21389   more code
21390 \end_layout
21391
21392 \begin_layout LyX-Code
21393   even more code
21394 \end_layout
21395
21396 \begin_layout LyX-Code
21397   @
21398 \end_layout
21399
21400 \begin_layout Standard
21401 問題は<<と@の間にあるものを完全にそのままの形で扱わなければならないことです.つまり,\SpecialChar LyX
21402 は,この間に書かれたものを特別に解釈することは決してあってはなりません.
21403 これも
21404 \begin_inset Flex Noun
21405 status collapsed
21406
21407 \begin_layout Plain Layout
21408 Chunk
21409 \end_layout
21410
21411 \end_inset
21412
21413 によって取り扱われ,通常のテキスト差込枠のように見えますが,自由に空白を入れることができます.
21414 \end_layout
21415
21416 \begin_layout Standard
21417 特殊な注釈として,chunk内でNowebの「%def」を使えば,Nowebのidentifierの相互参照に項目を加えることができます.次の例を見てください.
21418 \end_layout
21419
21420 \begin_layout LyX-Code
21421 <<My chunk>>=
21422 \end_layout
21423
21424 \begin_layout LyX-Code
21425 def some_function(args):
21426 \end_layout
21427
21428 \begin_layout LyX-Code
21429    "This is the doc string for this function."
21430 \end_layout
21431
21432 \begin_layout LyX-Code
21433    print "My args: ", args
21434 \end_layout
21435
21436 \begin_layout LyX-Code
21437 @ %def some_function
21438 \end_layout
21439
21440 \begin_layout Standard
21441 これをどのように使って,その結果相互参照がどうなるかは
21442 \emph on
21443 LIBDIR/examples/listerrors.lyx
21444 \emph default
21445 の中の文芸pythonプログラムを見るとよくわかります.
21446 \end_layout
21447
21448 \begin_layout Paragraph
21449 説明文書の生成
21450 \end_layout
21451
21452 \begin_layout Standard
21453 この時点で,適切な文書クラスを持ち,いくつかのコードとテキストが入った新規文書ファイルが作成されているはずです.これをどうやって印刷したらいいのでしょう.答えは
21454 簡単で,通常の文書で行うように
21455 \family sans
21456 文書\SpecialChar menuseparator
21457 表示
21458 \family default
21459 等を選ぶだけです.特別な手続きは必要ありません.
21460 \end_layout
21461
21462 \begin_layout Standard
21463 理解を助けるために,\SpecialChar LyX
21464 の内部で何が起っているかを説明しておきましょう.
21465 \end_layout
21466
21467 \begin_layout Enumerate
21468
21469 \family sans
21470 文書\SpecialChar menuseparator
21471 更新
21472 \family default
21473 が選択されると,\SpecialChar LaTeX
21474 ファイルがつくられます.
21475 \end_layout
21476
21477 \begin_deeper
21478 \begin_layout Standard
21479 文書が文芸プログラミング用のクラスであった場合には,拡張子に(
21480 \begin_inset Flex MenuItem
21481 status collapsed
21482
21483 \begin_layout Plain Layout
21484 設定
21485 \end_layout
21486
21487 \end_inset
21488
21489 パネルで設定した)文芸プログラム用のものがつけられます.それ以外は .texが拡張子に使われます.
21490 \end_layout
21491
21492 \end_deeper
21493 \begin_layout Enumerate
21494 違いがファイル名だけなのに注意してください.\SpecialChar LyX
21495 による特別な処理は必要ありません.
21496 \begin_inset Flex Noun
21497 status collapsed
21498
21499 \begin_layout Plain Layout
21500 Chunk
21501 \end_layout
21502
21503 \end_inset
21504
21505 差込枠でコードを入力するのだけがポイントです.
21506 \end_layout
21507
21508 \begin_layout Enumerate
21509 文書が何らかの文芸プログラムクラスなら,\SpecialChar LyX
21510 は,\SpecialChar LyX
21511 からNowebへの内部変換子を用い,それからNowebから\SpecialChar LaTeX
21512 への変換子
21513 \begin_inset Foot
21514 status collapsed
21515
21516 \begin_layout Plain Layout
21517 これらの変換子は,
21518 \family sans
21519 ツール\SpecialChar menuseparator
21520 設定
21521 \family default
21522 パネルの変換子タブに定義されています.変換子の一般的な情報については,取扱説明書『
21523 \emph on
21524 カスタマイズ篇
21525 \emph default
21526 』の「
21527 \emph on
21528 変換子
21529 \emph default
21530 」の節をご覧ください.
21531 \end_layout
21532
21533 \end_inset
21534
21535 を使って\SpecialChar LaTeX
21536 ファイルを生成します.
21537 \end_layout
21538
21539 \begin_deeper
21540 \begin_layout Standard
21541 それ以外の場合はこのステップを飛ばします.
21542 \end_layout
21543
21544 \end_deeper
21545 \begin_layout Enumerate
21546 最後に\SpecialChar LaTeX
21547 が実行され,通常の文書と同じ後処理が行われます.
21548 \end_layout
21549
21550 \begin_layout Standard
21551 様々な変換子が実行するコマンドを変更すれば,簡単に,特定の「文芸プログラムツール」から変更することができます.
21552 \end_layout
21553
21554 \begin_layout Paragraph
21555 コードの生成
21556 \end_layout
21557
21558 \begin_layout Standard
21559 ビルドメニューが選ばれた場合や,それに対応するツールバーのボタンが押された場合,上のステップ1と同様に\SpecialChar LaTeX
21560 ファイルが生成されます.それから\SpecialChar LyX
21561
21562 \family typewriter
21563 Noweb->Program
21564 \family default
21565 のコンバータを起動します.通常は,このコンバータは(他のコンバータと同じように)2つの部分からできています.
21566 \end_layout
21567
21568 \begin_layout Enumerate
21569 変換プログラム.このプログラムは,一つのフォーマットから他のフォーマットへの変換を行います(この場合は,Nowebフォーマットからプログラムの疑似フォーマットへ
21570 変換します).
21571 \end_layout
21572
21573 \begin_layout Enumerate
21574 エラーログ解析子.これはエラーメッセージを\SpecialChar LyX
21575 が理解できる形へ書き直します.これによって,\SpecialChar LyX
21576 はファイルバッファの正しい位置へエラーボックスを配置することができます.
21577 \end_layout
21578
21579 \begin_layout Standard
21580 冒頭部,「変換子」設定は
21581 \end_layout
21582
21583 \begin_layout LyX-Code
21584
21585 \family typewriter
21586 build-script $$i $$r
21587 \end_layout
21588
21589 \begin_layout Standard
21590 と指定します.これは基本的に,\SpecialChar LyX
21591
21592 \begin_inset Quotes erd
21593 \end_inset
21594
21595
21596 \family typewriter
21597 build-script
21598 \family default
21599
21600 \begin_inset Quotes erd
21601 \end_inset
21602
21603 (プログラムかスクリプト名)を(一般には\SpecialChar LyX
21604 の一時ファイル用のディレクトリにつくられる),Nowebファイルの名前と元の\SpecialChar LyX
21605 ファイルのディレクトリパスを使って呼び出すこ
21606 とを意味しています.
21607 \end_layout
21608
21609 \begin_layout Standard
21610 以下に「build-script」の一例を書いておきます.パスが通っているディレクトリに置いて使います.
21611 \end_layout
21612
21613 \begin_layout LyX-Code
21614
21615 \family sans
21616 #!/bin/sh
21617 \end_layout
21618
21619 \begin_layout LyX-Code
21620
21621 \family sans
21622 #
21623 \end_layout
21624
21625 \begin_layout LyX-Code
21626
21627 \family sans
21628 notangle -Rbuild-script $1 | env NOWEB_SOURCE=$1 NOWEB_OUTPUT_DIR=$2 sh
21629 \end_layout
21630
21631 \begin_layout Standard
21632 変換子設定の次の部分は「フラグ」で,これは
21633 \end_layout
21634
21635 \begin_layout LyX-Code
21636
21637 \family typewriter
21638 parselog=$$s/scripts/listerrors
21639 \end_layout
21640
21641 \begin_layout Standard
21642 に設定されます.
21643 \begin_inset Newline newline
21644 \end_inset
21645
21646 これは,
21647 \begin_inset Quotes erd
21648 \end_inset
21649
21650 build-script
21651 \begin_inset Quotes erd
21652 \end_inset
21653
21654 プロセスが生成したエラーを
21655 \begin_inset Quotes erd
21656 \end_inset
21657
21658 listerrors
21659 \begin_inset Quotes erd
21660 \end_inset
21661
21662 プログラムを介して処理するものです.
21663 \end_layout
21664
21665 \begin_layout Standard
21666 ビルドは,通常\SpecialChar LyX
21667 の一時ディレクトリで行われるので,変換によって生成されたファイルはそのディレクトリに置かれます.\SpecialChar LyX
21668 は,主要ファイルとみなされるものをコピーして取り出
21669 しますが,
21670 \family typewriter
21671 Noweb→プログラム
21672 \family default
21673 変換は複数のファイルを生成することがあるので,\SpecialChar LyX
21674 を閉じる際に大半が削除される可能性があります.これが,NOWEB_OUTPUT_DIR環境変数を渡して,build
21675 -script chunkが生成したファイルをその場所に置かれるようにする理由です.
21676 \end_layout
21677
21678 \begin_layout Paragraph
21679 文章中でのプログラムの構築操作の説明
21680 \end_layout
21681
21682 \begin_layout Standard
21683 \SpecialChar LyX
21684 とNowebの統合の最後の部分は,
21685 \begin_inset Quotes eld
21686 \end_inset
21687
21688 build-script
21689 \begin_inset Quotes erd
21690 \end_inset
21691
21692  chunkです.一般に,あなたのプログラムの構築操作の説明それ自身をchunkに入れて文章中に含めなければなりません.上の例のnoweb用のbuild-scr
21693 iptでは,chunkを見つけるのにnotangleコマンドを使い,shを使って起動します.
21694 \end_layout
21695
21696 \begin_layout Standard
21697 以下に典型的なchunkがどのようなものかを書いておきます.
21698 \end_layout
21699
21700 \begin_layout LyX-Code
21701 <<build-script>>=
21702 \begin_inset Newline newline
21703 \end_inset
21704
21705
21706 \end_layout
21707
21708 \begin_layout LyX-Code
21709 #!/bin/sh
21710 \begin_inset Newline newline
21711 \end_inset
21712
21713
21714 \begin_inset Newline newline
21715 \end_inset
21716
21717 if [ -z "${NOWEB_SOURCE}" ]
21718 \begin_inset Newline newline
21719 \end_inset
21720
21721 then
21722 \end_layout
21723
21724 \begin_layout LyX-Code
21725 NOWEB_SOURCE=myfile.nw
21726 \begin_inset Newline newline
21727 \end_inset
21728
21729 fi
21730 \begin_inset Newline newline
21731 \end_inset
21732
21733 [...
21734  code to extract files ...
21735  use NOWEB_OUTPUT_DIR here ...]
21736 \begin_inset Newline newline
21737 \end_inset
21738
21739 [...
21740  code to compile files ...]
21741 \begin_inset Newline newline
21742 \end_inset
21743
21744 @
21745 \end_layout
21746
21747 \begin_layout Standard
21748
21749 \emph on
21750 LIBDIR/examples/listerrors.lyx
21751 \emph default
21752
21753 \emph on
21754 LIBDIR/examples/Literate.lyx
21755 \emph default
21756 を見てください.この2つのファイルには異なる実装のlisterrorsプログラムが含まれていて,これまで説明してきた各々の部分が全体としてどのようになるかをわか
21757 ってもらうための例です.また,
21758 \emph on
21759 LIBDIR/examples/noweb2lyx.lyx
21760 \emph default
21761 も見てください.面白いことに,これらの3つのファイルは,Python,C,Perlが各々使われていて,\SpecialChar LyX
21762 の文芸プログラミングのサポートがプログラム言語に依存しない
21763 ことを示しています.
21764 \end_layout
21765
21766 \begin_layout Subsubsection
21767 \SpecialChar LyX
21768 の設定
21769 \end_layout
21770
21771 \begin_layout Standard
21772 すべての文芸プログラムのための設定は,
21773 \family sans
21774 ツール\SpecialChar menuseparator
21775 設定
21776 \family default
21777 パネルの「ファイル処理」タブですることができます.重要な部分を見ておきましょう.
21778 \end_layout
21779
21780 \begin_layout Description
21781 「NoWeb」形式 ファイル形式タブで設定します.ここで,Noweb特有の設定を行います.
21782 \family sans
21783 GUI名
21784 \family default
21785
21786 \family typewriter
21787 NoWeb
21788 \family default
21789 に,拡張子を
21790 \family typewriter
21791 .nw
21792 \family default
21793 に設定してください.これによって,\SpecialChar LyX
21794 に変換プロセスの第一段階でつくられるファイルに
21795 \family typewriter
21796 .nw
21797 \family default
21798 という拡張子をつけることを指示します.
21799 \end_layout
21800
21801 \begin_layout Description
21802 プログラム形式 これは,変換の終着点を示すためだけの,空の形式です(これがあることで,変換子を作ることができます).
21803 \end_layout
21804
21805 \begin_layout Description
21806
21807 \family sans
21808 NoWeb
21809 \family default
21810 ->
21811 \family sans
21812 \SpecialChar LaTeX
21813
21814 \family default
21815  この変換子は,文芸的文書の「weaving」を行います.Nowebの場合,「
21816 \family typewriter
21817 noweave -delay -index $$i > $$o
21818 \family default
21819 」に設定されます.
21820 \end_layout
21821
21822 \begin_layout Description
21823
21824 \family sans
21825 NoWeb
21826 \family default
21827 ->
21828 \family sans
21829 Program
21830 \family default
21831  これは「tangling」を行います.上述のように,変換子は「
21832 \family typewriter
21833 build-script $$i $$r
21834 \family default
21835 」,フラグは「
21836 \family typewriter
21837 parselog=$$s/scripts/listerrors
21838 \family default
21839 」となります.
21840 \end_layout
21841
21842 \begin_layout Subsubsection
21843 デバッグ機能拡張
21844 \end_layout
21845
21846 \begin_layout Standard
21847 ddd/gdbまたは他のデバッガで使える「server-goto-file-row」関数が新たに\SpecialChar LyX
21848 サーバに実装されました.
21849 \end_layout
21850
21851 \begin_layout Standard
21852 ddd/gdbでデバッグしているとき,一つの
21853 \begin_inset Flex Ruby
21854 status collapsed
21855
21856 \begin_layout Plain Layout
21857
21858 \begin_inset Argument post:1
21859 status collapsed
21860
21861 \begin_layout Plain Layout
21862 キー
21863 \end_layout
21864
21865 \end_inset
21866
21867
21868 \end_layout
21869
21870 \end_inset
21871
21872 ストロークで現在実行している位置でテキストエディタを起動できます.既定のdddの設定ではShift-Ctrl-Vになっています.この設定はdddで
21873 \begin_inset Flex MenuItem
21874 status collapsed
21875
21876 \begin_layout Plain Layout
21877 ツール\SpecialChar menuseparator
21878 設定\SpecialChar menuseparator
21879 ファイル書式
21880 \end_layout
21881
21882 \end_inset
21883
21884 ウインドウを表示して,
21885 \begin_inset Flex MenuItem
21886 status collapsed
21887
21888 \begin_layout Plain Layout
21889 編集プログラム
21890 \end_layout
21891
21892 \end_inset
21893
21894 エントリを変えると変えることができます.
21895 \end_layout
21896
21897 \begin_layout Standard
21898 新しい\SpecialChar LyX
21899 サーバの関数と,このdddの機能を使うために
21900 \begin_inset Flex MenuItem
21901 status collapsed
21902
21903 \begin_layout Plain Layout
21904 編集プログラム
21905 \end_layout
21906
21907 \end_inset
21908
21909 を次のように設定してください.
21910 \end_layout
21911
21912 \begin_layout LyX-Code
21913
21914 \family sans
21915 echo "LYXCMD:monitor:server-goto-file-row:@FILE@ @LINE@" >~/.lyxpipe.in
21916 \end_layout
21917
21918 \begin_layout Standard
21919 こうしておくとdddを使っていてプログラムの編集したい場所があったとき,(dddのウインドウで)Shift-Ctrl-Vを押すだけでdddは\SpecialChar LyX
21920 サーバに情報を送り,\SpecialChar LyX
21921
21922 は同じファイルを表示し,カーソルはdddが示した場所へあらわれます.これでもうデバッグの最中に推測しながらスクロールして場所を探す必要がなくなります.
21923 \end_layout
21924
21925 \begin_layout Standard
21926 この機能が動くには\SpecialChar LyX
21927 サーバが利用可能でなければなりません(既定では\SpecialChar LyX
21928 サーバーは使えないようになっています).
21929 \end_layout
21930
21931 \begin_layout Standard
21932
21933 \begin_inset CommandInset ref
21934 LatexCommand ref
21935 reference "sec:サーバーを開始するには"
21936
21937 \end_inset
21938
21939 節にその方法が説明されています.
21940 \end_layout
21941
21942 \begin_layout Subsubsection
21943 ツールバー拡張
21944 \end_layout
21945
21946 \begin_layout Standard
21947 ツールバーに加えることのできる6つの新しいボタンがあります.そのうちの4つのボタンは
21948 \family sans
21949 標準
21950 \family default
21951 ・節・
21952 \family sans
21953 \SpecialChar LaTeX
21954
21955 \family default
21956
21957 \family sans
21958 \SpecialChar LyX
21959 コード
21960 \family default
21961 の段落環境へのショートカットであり,1つは拡張差込枠
21962 \family sans
21963 Chunk
21964 \family default
21965 へのショートカットです.最後の一つはファイルメニュー項目の「Build Program」への
21966 \begin_inset Flex Ruby
21967 status collapsed
21968
21969 \begin_layout Plain Layout
21970
21971 \family roman
21972 \series medium
21973 \shape up
21974 \size normal
21975 \emph off
21976 \bar no
21977 \noun off
21978 \color none
21979 捷径
21980 \family default
21981 \series default
21982 \shape default
21983 \size default
21984 \emph default
21985 \bar default
21986 \noun default
21987 \color inherit
21988
21989 \begin_inset Argument post:1
21990 status collapsed
21991
21992 \begin_layout Plain Layout
21993 ショートカット
21994 \end_layout
21995
21996 \end_inset
21997
21998
21999 \end_layout
22000
22001 \end_inset
22002
22003 です.
22004 \end_layout
22005
22006 \begin_layout Standard
22007 \SpecialChar LyX
22008 はツールバーで使うためのいくつものボタンを用意しています.私のツールバーはこの6つのショートカットに
22009 \begin_inset Flex MenuItem
22010 status collapsed
22011
22012 \begin_layout Plain Layout
22013 文書\SpecialChar menuseparator
22014 更新\SpecialChar menuseparator
22015 DVI
22016 \end_layout
22017
22018 \end_inset
22019
22020
22021 \begin_inset Flex MenuItem
22022 status collapsed
22023
22024 \begin_layout Plain Layout
22025 文書\SpecialChar menuseparator
22026 表示\SpecialChar menuseparator
22027 DVI
22028 \end_layout
22029
22030 \end_inset
22031
22032 を組み合わせたものになっています.
22033 \end_layout
22034
22035 \begin_layout LyX-Code
22036 Toolbar
22037 \end_layout
22038
22039 \begin_layout LyX-Code
22040   Layouts
22041 \end_layout
22042
22043 \begin_layout LyX-Code
22044   Icon "layout Standard"
22045 \end_layout
22046
22047 \begin_layout LyX-Code
22048   Icon "layout Section"
22049 \end_layout
22050
22051 \begin_layout LyX-Code
22052   Icon "layout latex"
22053 \end_layout
22054
22055 \begin_layout LyX-Code
22056   Icon "layout \SpecialChar LyX
22057 -Code"
22058 \end_layout
22059
22060 \begin_layout LyX-Code
22061   Icon "flex.insert Chunk"
22062 \end_layout
22063
22064 \begin_layout LyX-Code
22065   Separator
22066 \end_layout
22067
22068 \begin_layout LyX-Code
22069   Icon "buffer-view"
22070 \end_layout
22071
22072 \begin_layout LyX-Code
22073   Icon "buffer-typeset"
22074 \end_layout
22075
22076 \begin_layout LyX-Code
22077   Icon "build-program"
22078 \end_layout
22079
22080 \begin_layout LyX-Code
22081   Separator
22082 \end_layout
22083
22084 \begin_layout LyX-Code
22085 .
22086 \end_layout
22087
22088 \begin_layout LyX-Code
22089 .
22090 \end_layout
22091
22092 \begin_layout LyX-Code
22093 .
22094 \end_layout
22095
22096 \begin_layout LyX-Code
22097 End
22098 \end_layout
22099
22100 \begin_layout Subsubsection
22101 色の変更
22102 \end_layout
22103
22104 \begin_layout Standard
22105 \SpecialChar LyX
22106 ではいくつもの色を
22107 \begin_inset Flex MenuItem
22108 status collapsed
22109
22110 \begin_layout Plain Layout
22111 設定
22112 \end_layout
22113
22114 \end_inset
22115
22116 で変えることができます.人々が困りがちなのは,\SpecialChar LaTeX
22117 フォント色でしょう.これは,既定では赤になっていますが,chunkは\SpecialChar LaTeX
22118 フォントを使うことになっていて,文芸プログラミ
22119 ング文書には多くのchunkが現れるために,すべて赤で見ていると疲れてしまうかもしれません.これは,
22120 \begin_inset Flex MenuItem
22121 status collapsed
22122
22123 \begin_layout Plain Layout
22124 操作性\SpecialChar menuseparator
22125
22126 \end_layout
22127
22128 \end_inset
22129
22130 タブで変更することができます.
22131 \end_layout
22132
22133 \begin_layout Standard
22134 もう一つは,改行文字が画面に表示されていることでしょう.改行文字の色を背景の色と同じにすることで改行文字を見えなくできます.私は改行文字を背景の色に似ているが少
22135 し違う色にすることを勧めます.こうすると,改行文字があるのはわかりますが,じゃまにならないでしょう.
22136 \end_layout
22137
22138 \begin_layout Subsection
22139 \SpecialChar LyX
22140 とknitr/Sweave
22141 \end_layout
22142
22143 \begin_layout Standard
22144 knitrとSweaveへのサポートについては,用例ファイル
22145 \emph on
22146 knitr.lyx
22147 \emph default
22148 とSweave取扱説明書(
22149 \family sans
22150 ヘルプ\SpecialChar menuseparator
22151 用途別説明書
22152 \family default
22153 メニュー)に説明があります.
22154 \end_layout
22155
22156 \begin_layout Chapter
22157 特殊機能
22158 \begin_inset CommandInset label
22159 LatexCommand label
22160 name "chap:Special-features"
22161
22162 \end_inset
22163
22164
22165 \end_layout
22166
22167 \begin_layout Standard
22168 \SpecialChar LyX
22169 では,\SpecialChar LaTeX
22170 で可能なことは何でも出来ます.すべての\SpecialChar LaTeX
22171 の機能を直接サポートできるわけではありませんが,どんな場合でも\SpecialChar TeX
22172 コードを使用することはできます.本章は,ユーザの興味が
22173 有りそうな特別な機能について,若干取り上げます.図表やフロート,ボックス,注釈に関する特別な機能については,取扱説明書『
22174 \emph on
22175 埋込オブジェクト篇
22176 \emph default
22177 』をご参照ください.
22178 \end_layout
22179
22180 \begin_layout Section
22181 多段組
22182 \end_layout
22183
22184 \begin_layout Standard
22185 この機能は,文書設定の
22186 \family sans
22187 本文レイアウト
22188 \family default
22189 にある
22190 \family sans
22191 二段組文書
22192 \family default
22193 とは別の機能です.文書全体に二段組を行いたい場合には,
22194 \family sans
22195 二段組文書
22196 \family default
22197 オプションを利用することをお勧めします.その他の場合には,本機能をご使用ください.
22198 \end_layout
22199
22200 \begin_layout Standard
22201 文書中で多段組を行うには,\SpecialChar LaTeX
22202 パッケージ
22203 \begin_inset Flex Code
22204 status collapsed
22205
22206 \begin_layout Plain Layout
22207 multicol
22208 \end_layout
22209
22210 \end_inset
22211
22212
22213 \begin_inset Index idx
22214 status collapsed
22215
22216 \begin_layout Plain Layout
22217 \SpecialChar LaTeX
22218 ぱっけーじ @ \SpecialChar LaTeX
22219 パッケージ ! multicol
22220 \end_layout
22221
22222 \end_inset
22223
22224 を導入した上で,(
22225 \family sans
22226 文書\SpecialChar menuseparator
22227 設定\SpecialChar menuseparator
22228 モジュール
22229 \family default
22230 メニューから)
22231 \family sans
22232 多段組
22233 \family default
22234 モジュールを読み込んでください.
22235 \end_layout
22236
22237 \begin_layout Standard
22238 多段組中の脚注は,ページ下部に置かれ,各段の下ごとには置かれません.各段においては,フロートに
22239 \family sans
22240 段をまたぐ
22241 \family default
22242 オプションを使用する必要があるほかは,通常通りの使用をすることができます.
22243 \end_layout
22244
22245 \begin_layout Subsection
22246 基本
22247 \end_layout
22248
22249 \begin_layout Standard
22250 文章中で二段組を使用したい場合には,段組を始める場所で
22251 \family sans
22252 挿入\SpecialChar menuseparator
22253 任意設定差込枠\SpecialChar menuseparator
22254 多段組
22255 \family default
22256 メニューを使用して,多段組差込枠を挿入してください.二段組で印字されるべき文章は,全てこの差込枠の中に書いてください.
22257 \end_layout
22258
22259 \begin_layout Standard
22260 下記はその用例です.
22261 \end_layout
22262
22263 \begin_layout Standard
22264 \noindent
22265 \begin_inset Flex Multiple Columns
22266 status open
22267
22268 \begin_layout Plain Layout
22269 \noindent
22270
22271 \series bold
22272 \size small
22273 The Adventure of the Empty House
22274 \series default
22275
22276 \begin_inset Newline newline
22277 \end_inset
22278
22279 by Sir Arthur Conan Doyle
22280 \end_layout
22281
22282 \begin_layout Plain Layout
22283
22284 \size small
22285 It was in the spring of the year 1894 that all London was interested, and
22286  the fashionable world dismayed, by the murder of the Honourable Ronald
22287  Adair under most unusual and inexplicable circumstances.
22288  The public has already learned those particulars of the crime which came
22289  out in the police investigation, but a good deal was suppressed upon that
22290  occasion, since the case for the prosecution was so overwhelmingly strong
22291  that it was not necessary to bring forward all the facts.
22292  Only now, at the end of nearly ten years, am I allowed to supply those
22293  missing links which make up the whole of that remarkable chain.
22294  The crime was of interest in itself, but that interest was as nothing to
22295  me compared to the inconceivable sequel, which afforded me the greatest
22296  shock and surprise of any event in my adventurous life.
22297  Even now, after this long interval, I find myself thrilling as I think
22298  of it, and feeling once more that sudden flood of joy, amazement, and increduli
22299 ty which utterly submerged my mind.
22300  Let me say to that public, which has shown some interest in those glimpses
22301  which I have occasionally given them of the thoughts and actions of a very
22302  remarkable man, that they are not to blame me if I have not shared my knowledge
22303  with them, for I should have considered it my first duty to do so, had
22304  I not been barred by a positive prohibition from his own lips, which was
22305  only withdrawn upon the third of last month.
22306 \end_layout
22307
22308 \end_inset
22309
22310
22311 \end_layout
22312
22313 \begin_layout Standard
22314 三段以上にするには,カーソルを多段組差込枠の内部において,挿入\SpecialChar menuseparator
22315 段数メニューを使用してください.この差込枠の中に,欲しい段数を書き入れます(三段組の場合には「3」
22316 と書きます).
22317 \begin_inset Newline newline
22318 \end_inset
22319
22320 下記は三段組の例です.
22321 \end_layout
22322
22323 \begin_layout Standard
22324 \begin_inset Flex Multiple Columns
22325 status open
22326
22327 \begin_layout Plain Layout
22328
22329 \size footnotesize
22330 \begin_inset Argument 1
22331 status open
22332
22333 \begin_layout Plain Layout
22334
22335 3
22336 \end_layout
22337
22338 \end_inset
22339
22340 It can be imagined that my close intimacy with Sherlock Holmes had interested
22341  me deeply in crime, and that after his disappearance I never failed to
22342  read with care the various problems which came before the public.
22343  And I even attempted, more than once, for my own private satisfaction,
22344  to employ his methods in their solution, though with indifferent success.
22345  There was none, however, which appealed to me like this tragedy of Ronald
22346  Adair.
22347  As I read the evidence at the inquest, which led up to a verdict of willful
22348  murder against some person or persons unknown, I realized more clearly
22349  than I had ever done the loss which the community had sustained by the
22350  death of Sherlock Holmes.
22351  There were points about this strange business which would, I was sure,
22352  have specially appealed to him, and the efforts of the police would have
22353  been supplemented, or more probably anticipated, by the trained observation
22354  and the alert mind of the first criminal agent in Europe.
22355  All day, as I drove upon my round, I turned over the case in my mind and
22356  found no explanation which appeared to me to be adequate.
22357  At the risk of telling a twice-told tale, I will recapitulate the facts
22358  as they were known to the public at the conclusion of the inquest.
22359 \end_layout
22360
22361 \end_inset
22362
22363
22364 \end_layout
22365
22366 \begin_layout Standard
22367 お望みならば10段組まで組むことができますが,文書の読者にとっては,あまり気持ちのいいものではないでしょう.
22368 \end_layout
22369
22370 \begin_layout Standard
22371 \begin_inset Newpage newpage
22372 \end_inset
22373
22374
22375 \end_layout
22376
22377 \begin_layout Subsection
22378 段組中の段組
22379 \end_layout
22380
22381 \begin_layout Standard
22382 また,段中に段を組むこともできます.
22383 \end_layout
22384
22385 \begin_layout Standard
22386 \begin_inset Flex Multiple Columns
22387 status open
22388
22389 \begin_layout Plain Layout
22390
22391 \size footnotesize
22392 The Honourable Ronald Adair was the second son of the Earl of Maynooth,
22393  at that time governor of one of the Australian colonies.
22394  Adair's mother had returned from Australia to undergo the operation for
22395  cataract, and she, her son Ronald, and her daughter Hilda were living together
22396  at 427 Park Lane.
22397 \end_layout
22398
22399 \begin_layout Plain Layout
22400 \begin_inset Flex Multiple Columns
22401 status open
22402
22403 \begin_layout Plain Layout
22404
22405 \size footnotesize
22406 The youth moved in the best society
22407 \begin_inset space ~
22408 \end_inset
22409
22410 – had, so far as was known, no enemies and no particular vices.
22411  He had been engaged to Miss Edith Woodley, of Carstairs, but the engagement
22412  had been broken off by mutual consent some months before, and there was
22413  no sign that it had left any very profound feeling behind it.
22414  For the rest {sic} the man's life moved in a narrow and conventional circle,
22415  for his habits were quiet and his nature unemotional.
22416  Yet it was upon this easy-going young aristocrat that death came, in most
22417  strange and unexpected form, between the hours of ten and eleven-twenty
22418  on the night of March 30, 1894.
22419 \end_layout
22420
22421 \end_inset
22422
22423
22424 \end_layout
22425
22426 \begin_layout Plain Layout
22427
22428 \size footnotesize
22429 Ronald Adair was fond of cards
22430 \begin_inset space ~
22431 \end_inset
22432
22433 – playing continually, but never for such stakes as would hurt him.
22434  He was a member of the Baldwin, the Cavendish, and the Bagatelle card clubs.
22435  It was shown that, after dinner on the day of his death, he had played
22436  a rubber of whist at the latter club.
22437  He had also played there in the afternoon.
22438
22439 \size default
22440  
22441 \size footnotesize
22442 The evidence of those who had played with him
22443 \begin_inset space ~
22444 \end_inset
22445
22446 – Mr.
22447  Murray, Sir John Hardy, and Colonel Moran
22448 \begin_inset space ~
22449 \end_inset
22450
22451 – showed that the game was whist, and that there was a fairly equal fall
22452  of the cards.
22453  Adair might have lost five pounds, but not more.
22454  His fortune was a considerable one, and such a loss could not in any way
22455  affect him.
22456  He had played nearly every day at one club or other, but he was a cautious
22457  player, and usually rose a winner.
22458  It came out in evidence that, in partnership with Colonel Moran, he had
22459  actually won as much as four hundred and twenty pounds in a sitting, some
22460  weeks before, from Godfrey Milner and Lord Balmoral.
22461  So much for his recent history as it came out at the inquest.
22462 \end_layout
22463
22464 \end_inset
22465
22466
22467 \end_layout
22468
22469 \begin_layout Subsection
22470 応用例
22471 \end_layout
22472
22473 \begin_layout Standard
22474 本節の用例は,多段組のさらに特別な機能を示すためのものです.
22475 \end_layout
22476
22477 \begin_layout Standard
22478 多段組機能についてさらに知りたい場合には,\SpecialChar LaTeX
22479 パッケージ
22480 \begin_inset Flex Code
22481 status collapsed
22482
22483 \begin_layout Plain Layout
22484 multicol
22485 \end_layout
22486
22487 \end_inset
22488
22489
22490 \begin_inset CommandInset href
22491 LatexCommand href
22492 name "取扱説明書"
22493 target "http://mirror.ctan.org/macros/latex/required/tools/multicol.pdf"
22494 literal "false"
22495
22496 \end_inset
22497
22498 をご覧ください.
22499 \end_layout
22500
22501 \begin_layout Subsubsection
22502 序文
22503 \end_layout
22504
22505 \begin_layout Standard
22506 多段組に序文を追記するには,カーソルを多段組差込枠内部に置き,
22507 \family sans
22508 挿入\SpecialChar menuseparator
22509 序文
22510 \family default
22511 メニューを使用してください.序文は,この差込枠内に書いてください.
22512 \begin_inset Newline newline
22513 \end_inset
22514
22515 序文のある文章の例を掲げます.
22516 \end_layout
22517
22518 \begin_layout Standard
22519 \begin_inset VSpace bigskip
22520 \end_inset
22521
22522
22523 \end_layout
22524
22525 \begin_layout Standard
22526 \begin_inset Flex Multiple Columns
22527 status open
22528
22529 \begin_layout Plain Layout
22530 \begin_inset Argument 2
22531 status open
22532
22533 \begin_layout Plain Layout
22534 And the story continues and continues and continues and continues\SpecialChar ldots
22535
22536 \end_layout
22537
22538 \end_inset
22539
22540
22541 \size small
22542 On the evening of the crime, he returned from the club exactly at ten.
22543  His mother and sister were out spending the evening with a relation.
22544  The servant deposed that she heard him enter the front room on the second
22545  floor, generally used as his sitting-room.
22546  She had lit a fire there, and as it smoked she had opened the window.
22547  No sound was heard from the room until eleven-twenty, the hour of the return
22548  of Lady Maynooth and her daughter.
22549  Desiring to say good-night, she attempted to enter her son's room.
22550  The door was locked on the inside, and no answer could be got to their
22551  cries and knocking.
22552  Help was obtained, and the door forced.
22553  The unfortunate young man was found lying near the table.
22554  His head had been horribly mutilated by an expanding revolver bullet, but
22555  no weapon of any sort was to be found in the room.
22556 \end_layout
22557
22558 \end_inset
22559
22560
22561 \end_layout
22562
22563 \begin_layout Standard
22564 最初の\SpecialChar TeX
22565 コードの後に,節宣言コマンドを\SpecialChar TeX
22566 コードとして使用すれば,節見出しを前書きとして使用することができます.例えば,
22567 \end_layout
22568
22569 \begin_layout Standard
22570
22571 \series bold
22572
22573 \backslash
22574 subsection{小節見出し}
22575 \end_layout
22576
22577 \begin_layout Standard
22578 というコマンドは,小節を生成します.以下の例では,前書きが小々節になっています.
22579 \end_layout
22580
22581 \begin_layout Standard
22582 \begin_inset Flex Multiple Columns
22583 status open
22584
22585 \begin_layout Plain Layout
22586 \begin_inset Argument 2
22587 status open
22588
22589 \begin_layout Plain Layout
22590 \begin_inset ERT
22591 status collapsed
22592
22593 \begin_layout Plain Layout
22594
22595
22596 \backslash
22597 subsubsection{
22598 \end_layout
22599
22600 \end_inset
22601
22602 これは序文の小々節見出しです
22603 \begin_inset ERT
22604 status collapsed
22605
22606 \begin_layout Plain Layout
22607
22608 }
22609 \end_layout
22610
22611 \end_inset
22612
22613
22614 \end_layout
22615
22616 \end_inset
22617
22618
22619 \size small
22620 A minute examination of the circumstances served only to make the case more
22621  complex.
22622  In the first place, no reason could be given why the young man should have
22623  fastened the door upon the inside.
22624  There was the possibility that the murderer had done this, and had afterwards
22625  escaped by the window.
22626  The drop was at least twenty feet, however, and a bed of crocuses in full
22627  bloom lay beneath.
22628  Neither the flowers nor the earth showed any sign of having been disturbed,
22629  nor were there any marks upon the narrow strip of grass which separated
22630  the house from the road.
22631  Apparently, therefore, it was the young man himself who had fastened the
22632  door.
22633  But how did he come by his death? No one could have climbed up to the window
22634  without leaving traces.
22635  Suppose a man had fired through the window, he would indeed be a remarkable
22636  shot who could with a revolver inflict so deadly a wound.
22637  Again, Park Lane is a frequented thoroughfare; there is a cab stand within
22638  a hundred yards of the house.
22639  No one had heard a shot.
22640 \end_layout
22641
22642 \end_inset
22643
22644
22645 \end_layout
22646
22647 \begin_layout Standard
22648 多段組を開始する部分に,必要とされる6行を確保出来るだけの垂直スペースがページに残されていない場合,多段組の前に改行が挿入されます.前書きの行数如何では,この必
22649 要行数を変更したいかもしれません.これは,カーソルを多段組差込枠内部の(もしあれば)序文の後に置き,
22650 \family sans
22651 挿入\SpecialChar menuseparator
22652 改頁前の余白
22653 \family default
22654 メニューを使用することで設定できます.この差込枠に,余白の大きさを「5cm」などと書き込んでください.
22655 \end_layout
22656
22657 \begin_layout Standard
22658 以下の例では,
22659 \begin_inset Flex Code
22660 status collapsed
22661
22662 \begin_layout Plain Layout
22663 7
22664 \backslash
22665 baselineskip
22666 \end_layout
22667
22668 \end_inset
22669
22670 を用いて,必要行数を7行に指定しています(コマンド
22671 \begin_inset Flex Code
22672 status collapsed
22673
22674 \begin_layout Plain Layout
22675
22676 \backslash
22677 baselineskip
22678 \end_layout
22679
22680 \end_inset
22681
22682 は\SpecialChar TeX
22683 コードとして入力する必要があります).
22684 \end_layout
22685
22686 \begin_layout Standard
22687 \begin_inset Flex Multiple Columns
22688 status open
22689
22690 \begin_layout Plain Layout
22691 \begin_inset Argument 3
22692 status open
22693
22694 \begin_layout Plain Layout
22695 7
22696 \begin_inset ERT
22697 status collapsed
22698
22699 \begin_layout Plain Layout
22700
22701
22702 \backslash
22703 baselineskip
22704 \end_layout
22705
22706 \end_inset
22707
22708
22709 \end_layout
22710
22711 \end_inset
22712
22713
22714 \size small
22715 On the evening of the crime, he returned from the club exactly at ten.
22716  His mother and sister were out spending the evening with a relation.
22717  The servant deposed that she heard him enter the front room on the second
22718  floor, generally used as his sitting-room.
22719  She had lit a fire there, and as it smoked she had opened the window.
22720  No sound was heard from the room until eleven-twenty, the hour of the return
22721  of Lady Maynooth and her daughter.
22722  Desiring to say good-night, she attempted to enter her son's room.
22723  The door was locked on the inside, and no answer could be got to their
22724  cries and knocking.
22725  Help was obtained, and the door forced.
22726  The unfortunate young man was found lying near the table.
22727  His head had been horribly mutilated by an expanding revolver bullet, but
22728  no weapon of any sort was to be found in the room.
22729 \end_layout
22730
22731 \end_inset
22732
22733
22734 \end_layout
22735
22736 \begin_layout Subsubsection
22737 周囲の余白
22738 \end_layout
22739
22740 \begin_layout Standard
22741 多段組の前後の余白は,長さ
22742 \begin_inset Flex Code
22743 status collapsed
22744
22745 \begin_layout Plain Layout
22746
22747 \backslash
22748 multicolsep
22749 \end_layout
22750
22751 \end_inset
22752
22753 を変えることで変更することができます.例えば,\SpecialChar TeX
22754 コードで書かれたコマンド
22755 \end_layout
22756
22757 \begin_layout LyX-Code
22758
22759 \family sans
22760
22761 \backslash
22762 setlength{
22763 \backslash
22764 multicolsep}{3cm}
22765 \end_layout
22766
22767 \begin_layout Standard
22768 は,その値を3
22769 \begin_inset space \thinspace{}
22770 \end_inset
22771
22772 cmに変更します.この変更は,多段組が始まる前に指定しなくてはなりません.既定値は13
22773 \begin_inset space \thinspace{}
22774 \end_inset
22775
22776 ptです.
22777 \end_layout
22778
22779 \begin_layout Standard
22780 以下の例では,
22781 \begin_inset Flex Code
22782 status collapsed
22783
22784 \begin_layout Plain Layout
22785
22786 \backslash
22787 multicolsep
22788 \end_layout
22789
22790 \end_inset
22791
22792 は2.5
22793 \begin_inset space \thinspace{}
22794 \end_inset
22795
22796 cmに指定されています.
22797 \end_layout
22798
22799 \begin_layout Standard
22800 \begin_inset ERT
22801 status open
22802
22803 \begin_layout Plain Layout
22804
22805
22806 \backslash
22807 setlength{
22808 \backslash
22809 multicolsep}{2.5cm}
22810 \end_layout
22811
22812 \end_inset
22813
22814
22815 \end_layout
22816
22817 \begin_layout Standard
22818 \begin_inset Flex Multiple Columns
22819 status open
22820
22821 \begin_layout Plain Layout
22822
22823 \size small
22824 All day I turned these facts over in my mind, endeavouring to hit upon some
22825  theory which could reconcile them all, and to find that line of least resistanc
22826 e which my poor friend had declared to be the starting-point of every investigat
22827 ion.
22828  I confess that I made little progress.
22829  In the evening I strolled across the Park, and found myself about six o'clock
22830  at the Oxford Street end of Park Lane.
22831  A group of loafers upon the pavements, all staring up at a particular window,
22832  directed me to the house which I had come to see.
22833  A tall, thin man with coloured glasses, whom I strongly suspected of being
22834  a plain-clothes detective, was pointing out some theory of his own, while
22835  the others crowded round to listen to what he said.
22836  I got as near him as I could, but his observations seemed to me to be absurd,
22837  so I withdrew again in some disgust.
22838  As I did so I struck against an elderly, deformed man, who had been behind
22839  me, and I knocked down several books which he was carrying.
22840 \end_layout
22841
22842 \end_inset
22843
22844
22845 \end_layout
22846
22847 \begin_layout Standard
22848 \begin_inset Note Greyedout
22849 status open
22850
22851 \begin_layout Plain Layout
22852
22853 \series bold
22854 【註】
22855 \series default
22856
22857 \begin_inset Flex Code
22858 status collapsed
22859
22860 \begin_layout Plain Layout
22861
22862 \backslash
22863 setlength
22864 \end_layout
22865
22866 \end_inset
22867
22868 で指定した値は,再度変更されるまでは,以降のすべての多段組で使用されます.
22869 \end_layout
22870
22871 \end_inset
22872
22873
22874 \end_layout
22875
22876 \begin_layout Standard
22877 \begin_inset ERT
22878 status collapsed
22879
22880 \begin_layout Plain Layout
22881
22882
22883 \backslash
22884 setlength{
22885 \backslash
22886 multicolsep}{13pt}
22887 \end_layout
22888
22889 \end_inset
22890
22891
22892 \begin_inset Note Note
22893 status collapsed
22894
22895 \begin_layout Plain Layout
22896
22897 \lang english
22898 go back to the default
22899 \end_layout
22900
22901 \end_inset
22902
22903
22904 \end_layout
22905
22906 \begin_layout Standard
22907 \begin_inset Newpage newpage
22908 \end_inset
22909
22910
22911 \end_layout
22912
22913 \begin_layout Subsubsection
22914 改段
22915 \end_layout
22916
22917 \begin_layout Standard
22918 改段は,文章中の階段を行いたい位置に,\SpecialChar TeX
22919 コードで,コマンド
22920 \begin_inset Flex Code
22921 status collapsed
22922
22923 \begin_layout Plain Layout
22924
22925 \backslash
22926 columnbreak{}
22927 \end_layout
22928
22929 \end_inset
22930
22931 を挿入すれば,強制的に行うことができます.ただし,多くの場合,文章中に空白が挿入されることに注意してください.
22932 \begin_inset Newline newline
22933 \end_inset
22934
22935 以下が用例です.
22936 \end_layout
22937
22938 \begin_layout Standard
22939 \begin_inset Flex Multiple Columns
22940 status open
22941
22942 \begin_layout Plain Layout
22943
22944 \size small
22945 \begin_inset Quotes eld
22946 \end_inset
22947
22948 You're surprised to see me, sir,
22949 \begin_inset Quotes erd
22950 \end_inset
22951
22952  said he, in a strange, croaking voice.
22953 \end_layout
22954
22955 \begin_layout Plain Layout
22956
22957 \size small
22958 I acknowledged that I was.
22959 \end_layout
22960
22961 \begin_layout Plain Layout
22962
22963 \size small
22964 \begin_inset Quotes eld
22965 \end_inset
22966
22967 Well, I've a conscience, sir, and when I chanced to see you go into this
22968  house, as I came hobbling after you, I thought to myself, I'll just step
22969  in and see that kind gentleman, and tell him that if I was a bit gruff
22970  in my manner there was not any harm meant, and that I am much obliged to
22971  him for picking up my books.
22972 \begin_inset Quotes erd
22973 \end_inset
22974
22975
22976 \end_layout
22977
22978 \begin_layout Plain Layout
22979
22980 \size small
22981 \begin_inset Quotes eld
22982 \end_inset
22983
22984 You make too much of a trifle,
22985 \begin_inset Quotes erd
22986 \end_inset
22987
22988  said I.
22989  
22990 \begin_inset Quotes eld
22991 \end_inset
22992
22993 May I ask how you knew who I was?
22994 \begin_inset Quotes erd
22995 \end_inset
22996
22997  AFTER THIS SENTENCE THE COLUMN BREAK IS FORCED.
22998 \begin_inset ERT
22999 status collapsed
23000
23001 \begin_layout Plain Layout
23002
23003
23004 \backslash
23005 columnbreak{}
23006 \end_layout
23007
23008 \end_inset
23009
23010
23011 \end_layout
23012
23013 \begin_layout Plain Layout
23014
23015 \size small
23016 \begin_inset Quotes eld
23017 \end_inset
23018
23019 Well, sir, if it isn't too great a liberty, I am a neighbour of yours, for
23020  you'll find my little bookshop at the corner of Church Street, and very
23021  happy to see you, I am sure.
23022  Maybe you collect yourself, sir.
23023  Here's 
23024 \noun on
23025 British
23026 \begin_inset space ~
23027 \end_inset
23028
23029 Birds
23030 \noun default
23031 , and 
23032 \noun on
23033 Catullus
23034 \noun default
23035 , and 
23036 \noun on
23037 The Holy War
23038 \noun default
23039
23040 \begin_inset space ~
23041 \end_inset
23042
23043 – a bargain, every one of them.
23044  With five volumes you could just fill that gap on that second shelf.
23045  It looks untidy, does it not, sir?
23046 \begin_inset Quotes erd
23047 \end_inset
23048
23049
23050 \end_layout
23051
23052 \end_inset
23053
23054
23055 \end_layout
23056
23057 \begin_layout Subsubsection
23058 段間隔
23059 \end_layout
23060
23061 \begin_layout Standard
23062 段幅は自動的に計算されますが,段の間の余白は指定することができます.これは,長さ
23063 \begin_inset Flex Code
23064 status collapsed
23065
23066 \begin_layout Plain Layout
23067
23068 \backslash
23069 columnsep
23070 \end_layout
23071
23072 \end_inset
23073
23074 を変更することで実現できます.既定値は10
23075 \begin_inset space \thinspace{}
23076 \end_inset
23077
23078 ptです.以下は
23079 \begin_inset Flex Code
23080 status collapsed
23081
23082 \begin_layout Plain Layout
23083
23084 \backslash
23085 columnsep
23086 \end_layout
23087
23088 \end_inset
23089
23090 を3
23091 \begin_inset space \thinspace{}
23092 \end_inset
23093
23094 cmに設定した例です.
23095 \end_layout
23096
23097 \begin_layout Standard
23098 \begin_inset ERT
23099 status open
23100
23101 \begin_layout Plain Layout
23102
23103
23104 \backslash
23105 setlength{
23106 \backslash
23107 columnsep}{3cm}
23108 \end_layout
23109
23110 \end_inset
23111
23112
23113 \end_layout
23114
23115 \begin_layout Standard
23116 \begin_inset Flex Multiple Columns
23117 status open
23118
23119 \begin_layout Plain Layout
23120
23121 \size small
23122 My observations of No.
23123 \begin_inset space \space{}
23124 \end_inset
23125
23126 427 Park Lane did little to clear up the problem in which I was interested.
23127  The house was separated from the street by a low wall and railing, the
23128  whole not more than five feet high.
23129  It was perfectly easy, therefore, for anyone to get into the garden, but
23130  the window was entirely inaccessible, since there was no water pipe or
23131  anything which could help the most active man to climb it.
23132  More puzzled than ever, I retraced my steps to Kensington.
23133  I had not been in my study five minutes when the maid entered to say that
23134  a person desired to see me.
23135  To my astonishment it was none other than my strange old book collector,
23136  his sharp, wizened face peering out from a frame of white hair, and his
23137  precious volumes, a dozen of them at least, wedged under his right arm.
23138 \end_layout
23139
23140 \end_inset
23141
23142
23143 \end_layout
23144
23145 \begin_layout Standard
23146 \begin_inset ERT
23147 status collapsed
23148
23149 \begin_layout Plain Layout
23150
23151
23152 \backslash
23153 setlength{
23154 \backslash
23155 columnsep}{10pt}
23156 \end_layout
23157
23158 \end_inset
23159
23160
23161 \begin_inset Note Note
23162 status collapsed
23163
23164 \begin_layout Plain Layout
23165
23166 \lang english
23167 go back to the default
23168 \end_layout
23169
23170 \end_inset
23171
23172
23173 \end_layout
23174
23175 \begin_layout Subsubsection
23176 垂直線
23177 \end_layout
23178
23179 \begin_layout Standard
23180 段間には,長さ
23181 \begin_inset Flex Code
23182 status collapsed
23183
23184 \begin_layout Plain Layout
23185
23186 \backslash
23187 columnseprule
23188 \end_layout
23189
23190 \end_inset
23191
23192 の幅を持つ罫線が描かれます.罫線幅を0
23193 \begin_inset space \thinspace{}
23194 \end_inset
23195
23196 ptにすると(これが既定値です),罫線は出力されません.以下の例では,段を分かつ線は2
23197 \begin_inset space \thinspace{}
23198 \end_inset
23199
23200 pt幅に設定されています.
23201 \end_layout
23202
23203 \begin_layout Standard
23204 \begin_inset ERT
23205 status open
23206
23207 \begin_layout Plain Layout
23208
23209
23210 \backslash
23211 setlength{
23212 \backslash
23213 columnseprule}{2pt}
23214 \end_layout
23215
23216 \end_inset
23217
23218
23219 \end_layout
23220
23221 \begin_layout Standard
23222 \begin_inset Flex Multiple Columns
23223 status open
23224
23225 \begin_layout Plain Layout
23226
23227 \size small
23228 \begin_inset Quotes eld
23229 \end_inset
23230
23231 You're surprised to see me, sir,
23232 \begin_inset Quotes erd
23233 \end_inset
23234
23235  said he, in a strange, croaking voice.
23236 \end_layout
23237
23238 \begin_layout Plain Layout
23239
23240 \size small
23241 I acknowledged that I was.
23242 \end_layout
23243
23244 \begin_layout Plain Layout
23245
23246 \size small
23247 \begin_inset Quotes eld
23248 \end_inset
23249
23250 Well, I've a conscience, sir, and when I chanced to see you go into this
23251  house, as I came hobbling after you, I thought to myself, I'll just step
23252  in and see that kind gentleman, and tell him that if I was a bit gruff
23253  in my manner there was not any harm meant, and that I am much obliged to
23254  him for picking up my books.
23255 \begin_inset Quotes erd
23256 \end_inset
23257
23258
23259 \end_layout
23260
23261 \begin_layout Plain Layout
23262
23263 \size small
23264 \begin_inset Quotes eld
23265 \end_inset
23266
23267 You make too much of a trifle,
23268 \begin_inset Quotes erd
23269 \end_inset
23270
23271  said I.
23272  
23273 \begin_inset Quotes eld
23274 \end_inset
23275
23276 May I ask how you knew who I was?
23277 \begin_inset Quotes erd
23278 \end_inset
23279
23280
23281 \end_layout
23282
23283 \begin_layout Plain Layout
23284
23285 \size small
23286 \begin_inset Quotes eld
23287 \end_inset
23288
23289 Well, sir, if it isn't too great a liberty, I am a neighbour of yours, for
23290  you'll find my little bookshop at the corner of Church Street, and very
23291  happy to see you, I am sure.
23292  Maybe you collect yourself, sir.
23293  Here's 
23294 \noun on
23295 British
23296 \begin_inset space ~
23297 \end_inset
23298
23299 Birds
23300 \noun default
23301 , and 
23302 \noun on
23303 Catullus
23304 \noun default
23305 , and 
23306 \noun on
23307 The Holy War
23308 \noun default
23309
23310 \begin_inset space ~
23311 \end_inset
23312
23313 – a bargain, every one of them.
23314  With five volumes you could just fill that gap on that second shelf.
23315  It looks untidy, does it not, sir?
23316 \begin_inset Quotes erd
23317 \end_inset
23318
23319
23320 \end_layout
23321
23322 \end_inset
23323
23324
23325 \end_layout
23326
23327 \begin_layout Standard
23328 \begin_inset VSpace defskip
23329 \end_inset
23330
23331
23332 \end_layout
23333
23334 \begin_layout Standard
23335 罫線は,コマンド
23336 \begin_inset Flex Code
23337 status collapsed
23338
23339 \begin_layout Plain Layout
23340
23341 \backslash
23342 columnseprulecolor
23343 \end_layout
23344
23345 \end_inset
23346
23347 を再定義すれば,着色することができます.これは,多段組差込枠の前に\SpecialChar TeX
23348 コードで以下のコマンドを挿入すれば,実現できます.
23349 \end_layout
23350
23351 \begin_layout LyX-Code
23352
23353 \backslash
23354 renewcommand{
23355 \backslash
23356 columnseprulecolor}{
23357 \backslash
23358 color{red}}
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 red
23370 \end_layout
23371
23372 \end_inset
23373
23374 をお好みの色に変更してください.既定色とユーザー定義色の全てを使用することができます.既定色とユーザー定義色についての詳細な情報は,取扱説明書『埋込オブジェクト
23375 篇』の「色付き表」の節をご覧ください.既定色に戻すには,以下のコマンドを挿入してください.
23376 \end_layout
23377
23378 \begin_layout LyX-Code
23379
23380 \backslash
23381 renewcommand{
23382 \backslash
23383 columnseprulecolor}{
23384 \backslash
23385 normalcolor}
23386 \end_layout
23387
23388 \begin_layout Standard
23389 以下は,シアン色の罫線と1
23390 \begin_inset space \thinspace{}
23391 \end_inset
23392
23393 cmの段間隔を持つ例です.
23394 \end_layout
23395
23396 \begin_layout Standard
23397 \begin_inset ERT
23398 status open
23399
23400 \begin_layout Plain Layout
23401
23402
23403 \backslash
23404 setlength{
23405 \backslash
23406 columnsep}{1cm}
23407 \end_layout
23408
23409 \begin_layout Plain Layout
23410
23411
23412 \backslash
23413 renewcommand{
23414 \backslash
23415 columnseprulecolor}{
23416 \backslash
23417 color{cyan}}
23418 \end_layout
23419
23420 \end_inset
23421
23422
23423 \end_layout
23424
23425 \begin_layout Standard
23426 \begin_inset Flex Multiple Columns
23427 status open
23428
23429 \begin_layout Plain Layout
23430
23431 \size small
23432 \begin_inset Quotes eld
23433 \end_inset
23434
23435 You're surprised to see me, sir,
23436 \begin_inset Quotes erd
23437 \end_inset
23438
23439  said he, in a strange, croaking voice.
23440 \end_layout
23441
23442 \begin_layout Plain Layout
23443
23444 \size small
23445 I acknowledged that I was.
23446 \end_layout
23447
23448 \begin_layout Plain Layout
23449
23450 \size small
23451 \begin_inset Quotes eld
23452 \end_inset
23453
23454 Well, I've a conscience, sir, and when I chanced to see you go into this
23455  house, as I came hobbling after you, I thought to myself, I'll just step
23456  in and see that kind gentleman, and tell him that if I was a bit gruff
23457  in my manner there was not any harm meant, and that I am much obliged to
23458  him for picking up my books.
23459 \begin_inset Quotes erd
23460 \end_inset
23461
23462
23463 \end_layout
23464
23465 \begin_layout Plain Layout
23466
23467 \size small
23468 \begin_inset Quotes eld
23469 \end_inset
23470
23471 You make too much of a trifle,
23472 \begin_inset Quotes erd
23473 \end_inset
23474
23475  said I.
23476  
23477 \begin_inset Quotes eld
23478 \end_inset
23479
23480 May I ask how you knew who I was?
23481 \begin_inset Quotes erd
23482 \end_inset
23483
23484
23485 \end_layout
23486
23487 \begin_layout Plain Layout
23488
23489 \size small
23490 \begin_inset Quotes eld
23491 \end_inset
23492
23493 Well, sir, if it isn't too great a liberty, I am a neighbour of yours, for
23494  you'll find my little bookshop at the corner of Church Street, and very
23495  happy to see you, I am sure.
23496  Maybe you collect yourself, sir.
23497  Here's 
23498 \noun on
23499 British
23500 \begin_inset space ~
23501 \end_inset
23502
23503 Birds
23504 \noun default
23505 , and 
23506 \noun on
23507 Catullus
23508 \noun default
23509 , and 
23510 \noun on
23511 The Holy War
23512 \noun default
23513
23514 \begin_inset space ~
23515 \end_inset
23516
23517 – a bargain, every one of them.
23518  With five volumes you could just fill that gap on that second shelf.
23519  It looks untidy, does it not, sir?
23520 \begin_inset Quotes erd
23521 \end_inset
23522
23523
23524 \end_layout
23525
23526 \end_inset
23527
23528
23529 \end_layout
23530
23531 \begin_layout Standard
23532 \begin_inset ERT
23533 status collapsed
23534
23535 \begin_layout Plain Layout
23536
23537
23538 \backslash
23539 setlength{
23540 \backslash
23541 columnseprule}{0pt}
23542 \end_layout
23543
23544 \begin_layout Plain Layout
23545
23546
23547 \backslash
23548 renewcommand{
23549 \backslash
23550 columnseprulecolor}{
23551 \backslash
23552 normalcolor}
23553 \end_layout
23554
23555 \end_inset
23556
23557
23558 \begin_inset Note Note
23559 status collapsed
23560
23561 \begin_layout Plain Layout
23562
23563 \lang english
23564 go back to the default
23565 \end_layout
23566
23567 \end_inset
23568
23569
23570 \end_layout
23571
23572 \begin_layout Standard
23573 \begin_inset Newpage newpage
23574 \end_inset
23575
23576
23577 \end_layout
23578
23579 \begin_layout Section
23580 標準的でない形の段落
23581 \end_layout
23582
23583 \begin_layout Standard
23584 \noindent
23585 \SpecialChar LaTeX
23586 は,他のテキストプロセッサと同様に,既定で長方形の段落を使用します.しかし,例えば,ポスターや招待状,詩などの特殊な場合には,段落の形を好きなように変えることが
23587 できます.これは,文書設定で
23588 \family sans
23589 任意設定の段落形
23590 \family default
23591 モジュールを読み込んで,\SpecialChar LaTeX
23592 パッケージ
23593 \begin_inset Flex Code
23594 status collapsed
23595
23596 \begin_layout Plain Layout
23597 shapepar
23598 \end_layout
23599
23600 \end_inset
23601
23602 を使用させるようにすれば,実現できます.
23603 \end_layout
23604
23605 \begin_layout Subsection
23606 既定の形
23607 \end_layout
23608
23609 \begin_layout Standard
23610
23611 \series bold
23612 shapepar
23613 \series default
23614 は,以下の形を提供しています.
23615 \end_layout
23616
23617 \begin_layout Standard
23618 \begin_inset Tabular
23619 <lyxtabular version="3" rows="13" columns="3">
23620 <features booktabs="true" islongtable="true" longtabularalignment="center">
23621 <column alignment="center" valignment="middle" width="16col%">
23622 <column alignment="center" valignment="middle" width="40col%">
23623 <column alignment="center" valignment="middle" width="35col%">
23624 <row endhead="true">
23625 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23626 \begin_inset Text
23627
23628 \begin_layout Plain Layout
23629 名称
23630 \end_layout
23631
23632 \end_inset
23633 </cell>
23634 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23635 \begin_inset Text
23636
23637 \begin_layout Plain Layout
23638 説明
23639 \end_layout
23640
23641 \end_inset
23642 </cell>
23643 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
23644 \begin_inset Text
23645
23646 \begin_layout Plain Layout
23647 備考
23648 \end_layout
23649
23650 \end_inset
23651 </cell>
23652 </row>
23653 <row>
23654 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23655 \begin_inset Text
23656
23657 \begin_layout Plain Layout
23658 CDlabel
23659 \end_layout
23660
23661 \end_inset
23662 </cell>
23663 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23664 \begin_inset Text
23665
23666 \begin_layout Plain Layout
23667 丸い穴の開いたドーナツ型(CD/DVD大)
23668 \end_layout
23669
23670 \end_inset
23671 </cell>
23672 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23673 \begin_inset Text
23674
23675 \begin_layout Plain Layout
23676 伸縮不可.多くの文字を入れられないことに注意.
23677 \end_layout
23678
23679 \end_inset
23680 </cell>
23681 </row>
23682 <row>
23683 <cell alignment="center" valignment="top" topline="true" usebox="none">
23684 \begin_inset Text
23685
23686 \begin_layout Plain Layout
23687 Circle
23688 \end_layout
23689
23690 \end_inset
23691 </cell>
23692 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23693 \begin_inset Text
23694
23695 \begin_layout Plain Layout
23696
23697 \end_layout
23698
23699 \end_inset
23700 </cell>
23701 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23702 \begin_inset Text
23703
23704 \begin_layout Plain Layout
23705 脆弱.計算に失敗することも.
23706 \end_layout
23707
23708 \end_inset
23709 </cell>
23710 </row>
23711 <row>
23712 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23713 \begin_inset Text
23714
23715 \begin_layout Plain Layout
23716 Diamond
23717 \end_layout
23718
23719 \end_inset
23720 </cell>
23721 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23722 \begin_inset Text
23723
23724 \begin_layout Plain Layout
23725 菱形(シンボル的に
23726 \begin_inset Quotes eld
23727 \end_inset
23728
23729 diamond
23730 \begin_inset Quotes erd
23731 \end_inset
23732
23733 と表記)
23734 \end_layout
23735
23736 \end_inset
23737 </cell>
23738 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23739 \begin_inset Text
23740
23741 \begin_layout Plain Layout
23742 -
23743 \end_layout
23744
23745 \end_inset
23746 </cell>
23747 </row>
23748 <row>
23749 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23750 \begin_inset Text
23751
23752 \begin_layout Plain Layout
23753 Heart
23754 \end_layout
23755
23756 \end_inset
23757 </cell>
23758 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23759 \begin_inset Text
23760
23761 \begin_layout Plain Layout
23762 ハート型
23763 \end_layout
23764
23765 \end_inset
23766 </cell>
23767 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23768 \begin_inset Text
23769
23770 \begin_layout Plain Layout
23771 -
23772 \end_layout
23773
23774 \end_inset
23775 </cell>
23776 </row>
23777 <row>
23778 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23779 \begin_inset Text
23780
23781 \begin_layout Plain Layout
23782 Hexagon
23783 \end_layout
23784
23785 \end_inset
23786 </cell>
23787 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23788 \begin_inset Text
23789
23790 \begin_layout Plain Layout
23791 六角形
23792 \end_layout
23793
23794 \end_inset
23795 </cell>
23796 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23797 \begin_inset Text
23798
23799 \begin_layout Plain Layout
23800 -
23801 \end_layout
23802
23803 \end_inset
23804 </cell>
23805 </row>
23806 <row>
23807 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23808 \begin_inset Text
23809
23810 \begin_layout Plain Layout
23811 Nut
23812 \end_layout
23813
23814 \end_inset
23815 </cell>
23816 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23817 \begin_inset Text
23818
23819 \begin_layout Plain Layout
23820 ナット型(丸い穴の開いた六角形)
23821 \end_layout
23822
23823 \end_inset
23824 </cell>
23825 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23826 \begin_inset Text
23827
23828 \begin_layout Plain Layout
23829 -
23830 \end_layout
23831
23832 \end_inset
23833 </cell>
23834 </row>
23835 <row>
23836 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23837 \begin_inset Text
23838
23839 \begin_layout Plain Layout
23840 Square
23841 \end_layout
23842
23843 \end_inset
23844 </cell>
23845 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23846 \begin_inset Text
23847
23848 \begin_layout Plain Layout
23849 正方形
23850 \end_layout
23851
23852 \end_inset
23853 </cell>
23854 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23855 \begin_inset Text
23856
23857 \begin_layout Plain Layout
23858 -
23859 \end_layout
23860
23861 \end_inset
23862 </cell>
23863 </row>
23864 <row>
23865 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23866 \begin_inset Text
23867
23868 \begin_layout Plain Layout
23869 Star
23870 \end_layout
23871
23872 \end_inset
23873 </cell>
23874 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23875 \begin_inset Text
23876
23877 \begin_layout Plain Layout
23878 五芒星
23879 \end_layout
23880
23881 \end_inset
23882 </cell>
23883 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
23884 \begin_inset Text
23885
23886 \begin_layout Plain Layout
23887 -
23888 \end_layout
23889
23890 \end_inset
23891 </cell>
23892 </row>
23893 <row>
23894 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23895 \begin_inset Text
23896
23897 \begin_layout Plain Layout
23898 Candle
23899 \end_layout
23900
23901 \end_inset
23902 </cell>
23903 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23904 \begin_inset Text
23905
23906 \begin_layout Plain Layout
23907 燃えるろうそく
23908 \end_layout
23909
23910 \end_inset
23911 </cell>
23912 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23913 \begin_inset Text
23914
23915 \begin_layout Plain Layout
23916 -
23917 \end_layout
23918
23919 \end_inset
23920 </cell>
23921 </row>
23922 <row>
23923 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23924 \begin_inset Text
23925
23926 \begin_layout Plain Layout
23927 Drop down/up
23928 \end_layout
23929
23930 \end_inset
23931 </cell>
23932 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23933 \begin_inset Text
23934
23935 \begin_layout Plain Layout
23936 雫型/逆雫型
23937 \end_layout
23938
23939 \end_inset
23940 </cell>
23941 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23942 \begin_inset Text
23943
23944 \begin_layout Plain Layout
23945 脆弱.計算に失敗することも.
23946 \end_layout
23947
23948 \end_inset
23949 </cell>
23950 </row>
23951 <row>
23952 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23953 \begin_inset Text
23954
23955 \begin_layout Plain Layout
23956 \SpecialChar TeX
23957
23958 \end_layout
23959
23960 \end_inset
23961 </cell>
23962 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23963 \begin_inset Text
23964
23965 \begin_layout Plain Layout
23966 \SpecialChar TeX
23967 ロゴ
23968 \end_layout
23969
23970 \end_inset
23971 </cell>
23972 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23973 \begin_inset Text
23974
23975 \begin_layout Plain Layout
23976 -
23977 \end_layout
23978
23979 \end_inset
23980 </cell>
23981 </row>
23982 <row>
23983 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23984 \begin_inset Text
23985
23986 \begin_layout Plain Layout
23987 Triangle up/down/
23988 \begin_inset Newline newline
23989 \end_inset
23990
23991 left/right
23992 \end_layout
23993
23994 \end_inset
23995 </cell>
23996 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23997 \begin_inset Text
23998
23999 \begin_layout Plain Layout
24000 各方向の三角形
24001 \end_layout
24002
24003 \end_inset
24004 </cell>
24005 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
24006 \begin_inset Text
24007
24008 \begin_layout Plain Layout
24009 -
24010 \end_layout
24011
24012 \end_inset
24013 </cell>
24014 </row>
24015 </lyxtabular>
24016
24017 \end_inset
24018
24019
24020 \end_layout
24021
24022 \begin_layout Standard
24023 段落に形を適用するには,\SpecialChar LyX
24024 ツールバー中の環境プルダウンボックスから形を選んでください.
24025 \end_layout
24026
24027 \begin_layout Standard
24028 \begin_inset Newpage newpage
24029 \end_inset
24030
24031
24032 \end_layout
24033
24034 \begin_layout Standard
24035 以下は,ナット型の段落の例です.
24036 \end_layout
24037
24038 \begin_layout Standard
24039 \begin_inset VSpace bigskip
24040 \end_inset
24041
24042
24043 \end_layout
24044
24045 \begin_layout Nut
24046
24047 \lang latin
24048 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
24049  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
24050  voluptua.
24051  At vero eos et accusam et justo duo dolores et ea rebum.
24052  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
24053  sit amet.
24054  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
24055  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
24056  voluptua.
24057 \end_layout
24058
24059 \begin_layout Standard
24060 \begin_inset VSpace bigskip
24061 \end_inset
24062
24063
24064 \end_layout
24065
24066 \begin_layout Standard
24067 \begin_inset Note Greyedout
24068 status open
24069
24070 \begin_layout Plain Layout
24071
24072 \series bold
24073 【註】
24074 \family sans
24075 \series default
24076 shapepar
24077 \family default
24078 段落は改頁にまたがることはできません.
24079 \end_layout
24080
24081 \end_inset
24082
24083
24084 \end_layout
24085
24086 \begin_layout Standard
24087 \begin_inset VSpace bigskip
24088 \end_inset
24089
24090
24091 \end_layout
24092
24093 \begin_layout Standard
24094 \begin_inset Flex Code
24095 status collapsed
24096
24097 \begin_layout Plain Layout
24098 shapepar
24099 \end_layout
24100
24101 \end_inset
24102
24103 は,段落中にどれだけ文章が含まれようとも,常に形を維持しようとします.したがって,段落の大きさは,含まれている文章量によって変化しますので,段落の大きさがページ
24104 余白にはみ出してしまうことがあります.寸法が伸縮することを示すために,文章量を二倍にした例を見てみましょう.
24105 \end_layout
24106
24107 \begin_layout Standard
24108 \begin_inset Newpage newpage
24109 \end_inset
24110
24111
24112 \end_layout
24113
24114 \begin_layout Nut
24115
24116 \lang latin
24117 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
24118  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
24119  voluptua.
24120  At vero eos et accusam et justo duo dolores et ea rebum.
24121  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
24122  sit amet.
24123  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
24124  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
24125  voluptua.
24126  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
24127  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
24128  voluptua.
24129  At vero eos et accusam et justo duo dolores et ea rebum.
24130  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
24131  sit amet.
24132  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
24133  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
24134  voluptua.
24135 \end_layout
24136
24137 \begin_layout Standard
24138 \begin_inset VSpace bigskip
24139 \end_inset
24140
24141
24142 \end_layout
24143
24144 \begin_layout Standard
24145 ただし,
24146 \family sans
24147 CDlabel
24148 \family default
24149 形は例外です.これは,CD/DVDの寸法に収まらなくてはならないので,伸縮しません.したがって,形に収まる文章量は限られています.
24150 \begin_inset Newline newline
24151 \end_inset
24152
24153
24154 \family sans
24155 drop
24156 \family default
24157 形と
24158 \family sans
24159 circle
24160 \family default
24161 形は脆弱で,文章量によっては寸法計算が失敗する可能性があります.この場合,
24162 \begin_inset Quotes eld
24163 \end_inset
24164
24165 Arithmetic overflow
24166 \begin_inset Quotes erd
24167 \end_inset
24168
24169 という\SpecialChar LaTeX
24170 エラーが発生します.この時は,文章の一部を追加したり削除したりするか,どれもうまくいかなければ別の形を使用してください.
24171 \end_layout
24172
24173 \begin_layout Standard
24174 \begin_inset VSpace bigskip
24175 \end_inset
24176
24177
24178 \end_layout
24179
24180 \begin_layout Standard
24181 先端のある形では,先端部の文字列で,\SpecialChar LaTeX
24182 のハイフネーションルーチンが失敗することがあります.したがって,この部分の文章には,ハイフネーション位置
24183 \family sans
24184
24185 \begin_inset Info
24186 type  "shortcut"
24187 arg   "specialchar-insert hyphenation"
24188 \end_inset
24189
24190
24191 \family default
24192 )を指定することが往々にして必要になります.
24193 \end_layout
24194
24195 \begin_layout Standard
24196 \begin_inset VSpace bigskip
24197 \end_inset
24198
24199
24200 \end_layout
24201
24202 \begin_layout Standard
24203 Shapepar段落は,常に中央揃えか,左の縁が左ページ余白に接するように配置されます.したがって,これらの段落を揃えるのに段落ダイアログを使用することはできま
24204 せん.解決方法としては,段落をミニページかparboxの中において,このボックスを揃えることです.ここでの問題は,ボックスの正しい幅を見出すことです.もしボック
24205 スの幅が広すぎれば,ボックスを中央揃えにしたとしても,ボックスの左側が付いてしまうので中央揃えになりません.そこで,正しい幅を見出すまでは,若干試行錯誤しなくて
24206 はならないかもしれません.以下は,二つのハート形の段落です.一つ目は揃え指定がなく,二つ目は右揃えにしてあります.
24207 \end_layout
24208
24209 \begin_layout Standard
24210 \begin_inset Newpage newpage
24211 \end_inset
24212
24213
24214 \end_layout
24215
24216 \begin_layout Heart
24217 \noindent
24218
24219 \lang latin
24220 Lo\SpecialChar softhyphen
24221 rem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
24222  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
24223  voluptua.
24224  At vero eos et accusam et justo duo dolores et ea rebum.
24225  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
24226  sit amet.
24227 \end_layout
24228
24229 \begin_layout Standard
24230 \begin_inset VSpace bigskip
24231 \end_inset
24232
24233
24234 \end_layout
24235
24236 \begin_layout Standard
24237 \noindent
24238 \align right
24239 \begin_inset Box Frameless
24240 position "t"
24241 hor_pos "c"
24242 has_inner_box 1
24243 inner_pos "t"
24244 use_parbox 1
24245 use_makebox 0
24246 width "42col%"
24247 special "none"
24248 height "1in"
24249 height_special "totalheight"
24250 thickness "0.4pt"
24251 separation "3pt"
24252 shadowsize "4pt"
24253 framecolor "black"
24254 backgroundcolor "none"
24255 status open
24256
24257 \begin_layout Heart
24258 \noindent
24259
24260 \lang latin
24261 Lo\SpecialChar softhyphen
24262 rem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
24263  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
24264  voluptua.
24265  At vero eos et accusam et justo duo dolores et ea rebum.
24266  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
24267  sit amet.
24268 \end_layout
24269
24270 \end_inset
24271
24272
24273 \end_layout
24274
24275 \begin_layout Subsection
24276 任意の形
24277 \end_layout
24278
24279 \begin_layout Standard
24280 ユーザーは,どのような形であれ,定義することができます.これを手動で行うのは,全ての座標を指定しなくてはならないので,かなりの労力を必要とします.しかし,以下の
24281 ように,コンピューターに座標を計算させる方法もあります.
24282 \end_layout
24283
24284 \begin_layout Enumerate
24285 プログラム
24286 \begin_inset CommandInset href
24287 LatexCommand href
24288 name "Jpgfdraw"
24289 target "https://www.ctan.org/tex-archive/graphics/jpgfdraw"
24290 literal "false"
24291
24292 \end_inset
24293
24294 を導入します.
24295 \end_layout
24296
24297 \begin_layout Enumerate
24298
24299 \family sans
24300 Jpgfdraw
24301 \family default
24302 内で,メニュー
24303 \family sans
24304 TeX/LaTeX\SpecialChar menuseparator
24305 Settings\SpecialChar menuseparator
24306 Set Normal Size
24307 \family default
24308 で文書中で使用しているフォント寸を選択します.例えば,この文書は12
24309 \begin_inset space \thinspace{}
24310 \end_inset
24311
24312 pt寸を使用しています.
24313 \end_layout
24314
24315 \begin_layout Enumerate
24316 形を描きます.
24317 \end_layout
24318
24319 \begin_layout Enumerate
24320 メニュー
24321 \family sans
24322 TeX/LaTeX\SpecialChar menuseparator
24323 Shapepar
24324 \family default
24325 を使用して,形の座標をエクスポートします.現れるダイアログで,形の外枠を座標に使うか,パス自体を使うかを指定します.
24326 \begin_inset Foot
24327 status collapsed
24328
24329 \begin_layout Plain Layout
24330 詳細については,
24331 \begin_inset CommandInset href
24332 LatexCommand href
24333 target "http://www.dickimaw-books.com/apps/jpgfdraw/manual/shapepar.html"
24334 literal "false"
24335
24336 \end_inset
24337
24338 を参照してください.
24339 \end_layout
24340
24341 \end_inset
24342
24343
24344 \end_layout
24345
24346 \begin_layout Standard
24347 座標は\SpecialChar TeX
24348 ファイルに書き込まれます.これを\SpecialChar LyX
24349 文書で使用するには,
24350 \end_layout
24351
24352 \begin_layout Enumerate
24353 段落の最初の文字の前(もしくは空の段落内)にカーソルを置きます.
24354 \end_layout
24355
24356 \begin_layout Enumerate
24357 \SpecialChar LyX
24358
24359 \family sans
24360 挿入\SpecialChar menuseparator
24361 ファイル\SpecialChar menuseparator
24362 子文書
24363 \family default
24364 メニューでファイルを選択し,
24365 \family sans
24366 取り込みの型
24367 \family default
24368 として
24369 \family sans
24370 Input
24371 \family default
24372 を選択してください.
24373 \end_layout
24374
24375 \begin_layout Standard
24376 \begin_inset VSpace defskip
24377 \end_inset
24378
24379
24380 \end_layout
24381
24382 \begin_layout Standard
24383 \begin_inset Note Greyedout
24384 status open
24385
24386 \begin_layout Plain Layout
24387
24388 \series bold
24389 【註】
24390 \series default
24391 変更した形は,現在の段落にのみ適用されます.次の段落では全て通常に戻ります.したがって,段落定義ファイルは,形を変えたい段落全てで読み込まれなくてはなりません.
24392 \end_layout
24393
24394 \end_inset
24395
24396
24397 \end_layout
24398
24399 \begin_layout Standard
24400 \begin_inset VSpace bigskip
24401 \end_inset
24402
24403
24404 \end_layout
24405
24406 \begin_layout Standard
24407 以下の用例をご覧ください.
24408 \end_layout
24409
24410 \begin_layout Standard
24411 \begin_inset VSpace bigskip
24412 \end_inset
24413
24414
24415 \end_layout
24416
24417 \begin_layout Standard
24418 \begin_inset CommandInset include
24419 LatexCommand input
24420 filename "../SpecialParagraphShape.tex"
24421 literal "true"
24422
24423 \end_inset
24424
24425
24426 \lang latin
24427 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
24428  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
24429  voluptua.
24430  At vero eos et accusam et justo duo dolores et ea rebum.
24431  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
24432  sit amet.
24433  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
24434  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
24435  voluptua.
24436 \end_layout
24437
24438 \begin_layout Standard
24439 \begin_inset VSpace bigskip
24440 \end_inset
24441
24442
24443 \end_layout
24444
24445 \begin_layout Standard
24446
24447 \series bold
24448 【ヒント】
24449 \family sans
24450 \series default
24451 Jpgfdraw
24452 \family default
24453 で複雑な形を描く場合,まず形を好きなプログラムで描き,出来上がった画像を
24454 \family sans
24455 Jpgfdraw
24456 \family default
24457 に読み込む方法があります.この場合,画像の外枠に沿って,直線またはスプラインを描くだけですみます.
24458 \end_layout
24459
24460 \begin_layout Standard
24461 \begin_inset VSpace bigskip
24462 \end_inset
24463
24464
24465 \end_layout
24466
24467 \begin_layout Standard
24468
24469 \family sans
24470 任意の段落形
24471 \family default
24472 モジュールは,
24473 \family sans
24474 shapepar
24475 \family default
24476
24477 \family sans
24478 Shapepar
24479 \family default
24480 の二つのコマンドも提供していて,任意の形を座標毎に定義するのに使用することができます.
24481 \begin_inset Foot
24482 status collapsed
24483
24484 \begin_layout Plain Layout
24485 これらのコマンドは,上述の全ての形で内部的に使用されています.
24486 \end_layout
24487
24488 \end_inset
24489
24490 これらのスタイルがどのように使われていて,どのような設定ができるのかについての詳しい情報は,
24491 \begin_inset Flex Code
24492 status collapsed
24493
24494 \begin_layout Plain Layout
24495 shapepar
24496 \end_layout
24497
24498 \end_inset
24499
24500  をご覧ください.
24501 \end_layout
24502
24503 \end_body
24504 \end_document