]> git.lyx.org Git - lyx.git/blob - lib/doc/ja/Additional.lyx
Format incremented to 574: Ruby inset, fixes for Japanese.
[lyx.git] / lib / doc / ja / Additional.lyx
1 #LyX 2.4 created this file. For more info see https://www.lyx.org/
2 \lyxformat 574
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 false
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_osf false
81 \font_sf_scale 100 100
82 \font_tt_scale 100 100
83 \use_microtype false
84 \use_dash_ligatures false
85 \graphics default
86 \default_output_format default
87 \output_sync 0
88 \bibtex_command default
89 \index_command default
90 \paperfontsize 12
91 \spacing single
92 \use_hyperref true
93 \pdf_title "LyX's Additional Features manual"
94 \pdf_author "LyX Team"
95 \pdf_subject "LyX's additional features documentation"
96 \pdf_keywords "LyX, Documentation, Additional"
97 \pdf_bookmarks false
98 \pdf_bookmarksnumbered true
99 \pdf_bookmarksopen false
100 \pdf_bookmarksopenlevel 1
101 \pdf_breaklinks false
102 \pdf_pdfborder false
103 \pdf_colorlinks true
104 \pdf_backref false
105 \pdf_pdfusetitle false
106 \pdf_quoted_options "pdfencoding=pdfdoc, linkcolor=black, citecolor=black, urlcolor=blue, filecolor=blue, pdfpagelayout=OneColumn, pdfnewwindow=true, pdfstartview=XYZ, plainpages=false"
107 \papersize default
108 \use_geometry false
109 \use_package amsmath 1
110 \use_package amssymb 1
111 \use_package cancel 1
112 \use_package esint 1
113 \use_package mathdots 1
114 \use_package mathtools 1
115 \use_package mhchem 1
116 \use_package stackrel 1
117 \use_package stmaryrd 1
118 \use_package undertilde 1
119 \cite_engine basic
120 \cite_engine_type default
121 \biblio_style plain
122 \use_bibtopic false
123 \use_indices false
124 \paperorientation portrait
125 \suppress_date false
126 \justification true
127 \use_refstyle 0
128 \use_minted 0
129 \notefontcolor #0000ff
130 \index 索引
131 \shortcut idx
132 \color #008000
133 \end_index
134 \secnumdepth 3
135 \tocdepth 3
136 \paragraph_separation indent
137 \paragraph_indentation default
138 \is_math_indent 1
139 \math_indentation default
140 \math_numbering_side default
141 \quotes_style english
142 \dynamic_quotes 0
143 \papercolumns 1
144 \papersides 2
145 \paperpagestyle headings
146 \tablestyle default
147 \tracking_changes false
148 \output_changes false
149 \html_math_output 0
150 \html_css_as_file 0
151 \html_be_strict true
152 \end_header
153
154 \begin_body
155
156 \begin_layout Title
157 \SpecialChar LyX
158 の高度な機能
159 \begin_inset Newline newline
160 \end_inset
161
162
163 \size large
164 第2.3.x版
165 \end_layout
166
167 \begin_layout Author
168 \SpecialChar LyX
169 プロジェクトチーム
170 \begin_inset Foot
171 status collapsed
172
173 \begin_layout Plain Layout
174 このファイルは主にRichard Heckによって管理されています.コメントをされたい場合や誤りを発見された場合には,\SpecialChar LyX
175 文書化メーリングリスト
176 \begin_inset Flex Code
177 status open
178
179 \begin_layout Plain Layout
180
181 \family typewriter
182 <lyx-docs@lists.lyx.org>
183 \end_layout
184
185 \end_inset
186
187 に英文にてお知らせ下さい.この文書の翻訳は,当初人見光太郎氏が行った貢献に基づいています.
188 \end_layout
189
190 \end_inset
191
192  
193 \end_layout
194
195 \begin_layout Standard
196 \begin_inset CommandInset toc
197 LatexCommand tableofcontents
198
199 \end_inset
200
201
202 \end_layout
203
204 \begin_layout Chapter
205 はじめに
206 \end_layout
207
208 \begin_layout Standard
209 いまお読みの取扱説明書『
210 \emph on
211 \SpecialChar LyX
212 拡張機能篇
213 \emph default
214 』は,基本的には『
215 \emph on
216 ユーザーの手引き
217 \emph default
218 』の第二部です.これらの文書を別部とした理由は,単純に『
219 \emph on
220 ユーザーの手引き
221 \emph default
222 』がすでに大部となっていることと,『
223 \emph on
224 ユーザーの手引き
225 \emph default
226 』が,ほとんどの文書を作成する上で必要な基本機能をすべて説明してしまっているためです.一方で,\SpecialChar LyX
227 プロジェクトチームは,\SpecialChar LyX
228 を各設定ファイルと外部パッケージによって拡張
229 可能な状態にしておくことを長期的な目標にしています.つまり,ある\SpecialChar LaTeX
230 パッケージをサポートしたい場合に,\SpecialChar LyX
231 自身に変更を加えることなく,当該パッケージ用のレイアウトファイ
232 ル(ないしモジュール)を作成すればいいようにしているのです.すでにこのような形で,いくつもの新機能がユーザーによって追加されています.この取扱説明書は,そのよう
233 な形での貢献を文書化する冊子として位置付けられています.
234 \end_layout
235
236 \begin_layout Standard
237 この取扱説明書では,ファックスのサポート・バージョン管理・SGMLサポートのような,正しく機能するためには追加的なソフトウェアを必要とする特殊機能についても説明
238 しています.さらに,\SpecialChar LaTeX
239 の強力な機能を直接使って文書を美しく仕上げるための,\SpecialChar LaTeX
240 ツールやテクニックを述べた章も収録しています.つきつめれば,\SpecialChar LyX
241 とはあくまでWYSIWYMた
242 ることを企図しているため,\SpecialChar LaTeX
243 の全機能の一部へのインタフェースは用意するものの,すべてを用意することはないでしょう.
244 \end_layout
245
246 \begin_layout Standard
247 もし,まだ『
248 \emph on
249 はじめの一歩
250 \emph default
251 』をお読みでなかったら,この取扱説明書から読みはじめるのは誤りです.『
252 \emph on
253 はじめの一歩
254 \emph default
255 』には,全取扱説明書に共通の表記法と書式が説明されていますので,まずそれからお読みください.さらに,この取扱説明書を読もうとする前に,『
256 \emph on
257 ユーザーの手引き
258 \emph default
259 』をよくお読みになって,\SpecialChar LyX
260 の全基本機能を習得してください.
261 \end_layout
262
263 \begin_layout Standard
264 この取扱説明書の取り上げられている話題は,\SpecialChar LyX
265 が\SpecialChar LaTeX
266 にどう関わっているかに強く関係していますので,まず次章では,\SpecialChar LyX
267 の内部動作がどうなっているか,LyXに希望する\SpecialChar LaTeX
268 コードを正
269 確に生成させるにはどうしたらいいかを収録しています.本章は,あきらかに熟練\SpecialChar LyX
270 ユーザー向けの章となっています.
271 \end_layout
272
273 \begin_layout Chapter
274 \SpecialChar LyX
275 と\SpecialChar LaTeX
276
277 \end_layout
278
279 \begin_layout Section
280 \SpecialChar LyX
281 は\SpecialChar LaTeX
282 をどう使っているか
283 \end_layout
284
285 \begin_layout Standard
286 本章
287 \family roman
288 \series medium
289 \shape up
290 \size normal
291 \emph off
292 \bar no
293 \noun off
294 \color none
295 は,\SpecialChar TeX
296 熟練者と\SpecialChar LaTeX
297 に興味のある方向けの章です.ここでは,\SpecialChar LyX
298 と\SpecialChar LaTeX
299 が,印刷可能な出力を生成するのに,どのように協働しているのかを説明します.全取扱説明書中で本章だけは,\SpecialChar LaTeX
300 のこと
301 を多少なりともご存知であることを前提とします.
302 \end_layout
303
304 \begin_layout Standard
305
306 \family roman
307 \series medium
308 \shape up
309 \size normal
310 \emph off
311 \bar no
312 \noun off
313 \color none
314 かつて\SpecialChar LyX
315 は,「\SpecialChar LaTeX
316
317 \family default
318 \series default
319 \shape default
320 \size default
321 \emph default
322 \bar default
323 \noun default
324 \color inherit
325 WYSIWYM
326 \family roman
327 \series medium
328 \shape up
329 \size normal
330 \emph off
331 \bar no
332 \noun off
333 \color none
334 なフロントエンド」と呼ばれていましたが,いまではこれは正しくありません.\SpecialChar LaTeX
335 のフロントエンドは,いくつも出回っています
336 \begin_inset Foot
337 status collapsed
338
339 \begin_layout Plain Layout
340
341 \family roman
342 \series medium
343 \shape up
344 \size normal
345 \emph off
346 \bar no
347 \noun off
348 \color none
349 有名なものとしては,Linux上の\SpecialChar TeX
350 makerとkile,OSX上の\SpecialChar TeX
351 shopなどがあります.もちろんviとemacsの\SpecialChar LaTeX
352 モードも含まれます.
353 \end_layout
354
355 \end_inset
356
357 .これらは,基本的に\SpecialChar LaTeX
358 を走らせる機能を有し,編集中のファイルのエラーを表示する機能を持ったテキストエディタです.\SpecialChar LyX
359 も,エディタであり,\SpecialChar LaTeX
360 を走らせる機能を有し,ファイル
361 中のエラーを指摘しますが,それ以上にもっともっと多くのことをしてくれます.
362 \family default
363 \series default
364 \shape default
365 \size default
366 \emph default
367 \bar default
368 \noun default
369 \color inherit
370 ひとつには,
371 \family roman
372 \series medium
373 \shape up
374 \size normal
375 \emph off
376 \bar no
377 \noun off
378 \color none
379 \SpecialChar LyX
380 を効果的に使うのに,\SpecialChar LaTeX
381 の知識が必要とされないことが挙げられます.また\SpecialChar LyX
382 は,それ自身,いくつかの拡張を\SpecialChar LaTeX
383 に加えています.時間のあるときにでも,いちど以下の手順を試してみ
384 てください.まず
385 \family sans
386 \series default
387 \shape default
388 \size default
389 \emph default
390 \bar default
391 \noun default
392 \color inherit
393
394 \begin_inset Flex MenuItem
395 status collapsed
396
397 \begin_layout Plain Layout
398
399 \family sans
400 ファイル
401 \end_layout
402
403 \end_inset
404
405
406 \family roman
407 \series medium
408 \shape up
409 \size normal
410 \emph off
411 \bar no
412 \noun off
413 \color none
414 メニューから
415 \family sans
416 \series default
417 \shape default
418 \size default
419 \emph default
420 \bar default
421 \noun default
422 \color inherit
423
424 \begin_inset Flex MenuItem
425 status collapsed
426
427 \begin_layout Plain Layout
428
429 \family sans
430 エクスポート\SpecialChar menuseparator
431 LaTeX
432 \end_layout
433
434 \end_inset
435
436
437 \family roman
438 \series medium
439 \shape up
440 \size normal
441 \emph off
442 \bar no
443 \noun off
444 \color none
445 (あるいは
446 \family sans
447 \series default
448 \shape default
449 \size default
450 \emph default
451 \bar default
452 \noun default
453 \color inherit
454
455 \begin_inset Flex MenuItem
456 status collapsed
457
458 \begin_layout Plain Layout
459
460 \family sans
461 表示\SpecialChar menuseparator
462 ソースを閲覧
463 \end_layout
464
465 \end_inset
466
467
468 \family roman
469 \series medium
470 \shape up
471 \size normal
472 \emph off
473 \bar no
474 \noun off
475 \color none
476 )を選択し,そこから出力される
477 \begin_inset Flex Code
478 status collapsed
479
480 \begin_layout Plain Layout
481
482 \family typewriter
483 .tex
484 \end_layout
485
486 \end_inset
487
488 ファイルのプリアンブルをご覧ください.\SpecialChar LyX
489 によって特別に定義された新しいマクロが複数定義されていることに気づかれるはずです
490 \family default
491 \series default
492 \shape default
493 \size default
494 \emph default
495 \bar default
496 \noun default
497 \color inherit
498 .これらのマクロは,文書中で使用する機能に応じて,自動的に定義されます.
499 \end_layout
500
501 \begin_layout Standard
502
503 \family roman
504 \series medium
505 \shape up
506 \size normal
507 \emph off
508 \bar no
509 \noun off
510 \color none
511 自動的に\SpecialChar LaTeX
512 を実行するコマンドが,以下のようにいくつかあります.
513 \end_layout
514
515 \begin_layout Itemize
516 \begin_inset Flex MenuItem
517 status collapsed
518
519 \begin_layout Plain Layout
520 表示\SpecialChar menuseparator
521 書式
522 \end_layout
523
524 \end_inset
525
526
527 \end_layout
528
529 \begin_layout Itemize
530
531 \family sans
532 \begin_inset Flex MenuItem
533 status collapsed
534
535 \begin_layout Plain Layout
536
537 \bar no
538 表示\SpecialChar menuseparator
539 更新\SpecialChar menuseparator
540
541 \bar default
542 書式
543 \end_layout
544
545 \end_inset
546
547
548 \end_layout
549
550 \begin_layout Standard
551
552 \family roman
553 \series medium
554 \shape up
555 \size normal
556 \emph off
557 \bar no
558 \noun off
559 \color none
560 これらは,最後に\SpecialChar LaTeX
561 を実行してからファイルに変更が加えられた場合のみ,\SpecialChar LaTeX
562 を実行します.
563 \end_layout
564
565 \begin_layout Standard
566
567 \family roman
568 \series medium
569 \shape up
570 \size normal
571 \emph off
572 \bar no
573 \noun off
574 \color none
575 \SpecialChar LyX
576 が編集中のファイルを\SpecialChar LaTeX
577 にかけるとき,\SpecialChar LyX
578 は以下の段階をふみます.
579 \end_layout
580
581 \begin_layout Enumerate
582
583 \family roman
584 \series medium
585 \shape up
586 \size normal
587 \emph off
588 \bar no
589 \noun off
590 \color none
591 文書を\SpecialChar LaTeX
592 に変換し,ファイルの拡張子を
593 \begin_inset Flex Code
594 status collapsed
595
596 \begin_layout Plain Layout
597
598 \family roman
599 \series medium
600 \shape up
601 \size normal
602 \emph off
603 \bar no
604 \noun off
605 \color none
606 .lyx
607 \end_layout
608
609 \end_inset
610
611 から
612 \begin_inset Flex Code
613 status collapsed
614
615 \begin_layout Plain Layout
616
617 \family roman
618 \series medium
619 \shape up
620 \size normal
621 \emph off
622 \bar no
623 \noun off
624 \color none
625 .tex
626 \end_layout
627
628 \end_inset
629
630 に変えて保存.
631 \end_layout
632
633 \begin_layout Enumerate
634
635 \family roman
636 \series medium
637 \shape up
638 \size normal
639 \emph off
640 \bar no
641 \noun off
642 \color none
643 この
644 \begin_inset Flex Code
645 status collapsed
646
647 \begin_layout Plain Layout
648
649 \family roman
650 \series medium
651 \shape up
652 \size normal
653 \emph off
654 \bar no
655 \noun off
656 \color none
657 .tex
658 \end_layout
659
660 \end_inset
661
662 ファイルに対して(必要に応じて複数回)\SpecialChar LaTeX
663 を実行し,\SpecialChar LaTeX
664 ファイルをコンパイルするのに必要な他のコマンド(
665 \begin_inset Flex Code
666 status collapsed
667
668 \begin_layout Plain Layout
669
670 \family roman
671 \series medium
672 \shape up
673 \size normal
674 \emph off
675 \bar no
676 \noun off
677 \color none
678 bibtex
679 \end_layout
680
681 \end_inset
682
683
684 \begin_inset Flex Code
685 status collapsed
686
687 \begin_layout Plain Layout
688
689 \family roman
690 \series medium
691 \shape up
692 \size normal
693 \emph off
694 \bar no
695 \noun off
696 \color none
697 makeindex
698 \end_layout
699
700 \end_inset
701
702 など)を実行..
703 \end_layout
704
705 \begin_layout Enumerate
706
707 \family roman
708 \series medium
709 \shape up
710 \size normal
711 \emph off
712 \bar no
713 \noun off
714 \color none
715 もしエラーがあれば,エラーログを表示.
716 \end_layout
717
718 \begin_layout Standard
719
720 \family roman
721 \series medium
722 \shape up
723 \size normal
724 \emph off
725 \bar no
726 \noun off
727 \color none
728 \SpecialChar LaTeX
729
730 \family sans
731 \series default
732 \shape default
733 \size default
734 \emph default
735 \bar default
736 \noun default
737 \color inherit
738
739 \begin_inset Flex MenuItem
740 status collapsed
741
742 \begin_layout Plain Layout
743
744 \family sans
745 表示\SpecialChar menuseparator
746 DVI
747 \end_layout
748
749 \end_inset
750
751
752 \family roman
753 \series medium
754 \shape up
755 \size normal
756 \emph off
757 \bar no
758 \noun off
759 \color none
760 を使用して実行した場合には,\SpecialChar LyX
761 はこの後,DVIビューアを実行してDVIファイルを表示します.
762 \begin_inset Flex MenuItem
763 status collapsed
764
765 \begin_layout Plain Layout
766
767 \family roman
768 \series medium
769 \shape up
770 \size normal
771 \emph off
772 \bar no
773 \noun off
774 \color none
775 表示\SpecialChar menuseparator
776 PostScript
777 \end_layout
778
779 \end_inset
780
781 を使用した場合には,\SpecialChar LyX
782 はさらに以下の段階をふみます.
783 \end_layout
784
785 \begin_layout Itemize
786
787 \family roman
788 \series medium
789 \shape up
790 \size normal
791 \emph off
792 \bar no
793 \noun off
794 \color none
795 \begin_inset Flex Code
796 status collapsed
797
798 \begin_layout Plain Layout
799
800 \family typewriter
801 dvips
802 \end_layout
803
804 \end_inset
805
806 を実行して,
807 \family default
808 \series default
809 \shape default
810 \size default
811 \emph default
812 \bar default
813 \noun default
814 \color inherit
815 DVI
816 \family roman
817 \series medium
818 \shape up
819 \size normal
820 \emph off
821 \bar no
822 \noun off
823 \color none
824 ファイルをPostScript
825 \family default
826 \series default
827 \shape default
828 \size default
829 \emph default
830 \bar default
831 \noun default
832 \color inherit
833 に変換.
834 \end_layout
835
836 \begin_layout Itemize
837
838 \family roman
839 \series medium
840 \shape up
841 \size normal
842 \emph off
843 \bar no
844 \noun off
845 \color none
846 \begin_inset Flex Code
847 status collapsed
848
849 \begin_layout Plain Layout
850
851 \family typewriter
852 ghostview
853 \end_layout
854
855 \end_inset
856
857 などのPostScriptビューアを実行して,PostScript
858 \family default
859 \series default
860 \shape default
861 \size default
862 \emph default
863 \bar default
864 \noun default
865 \color inherit
866 ファイルを表示.
867 \end_layout
868
869 \begin_layout Standard
870 \SpecialChar LyX
871 は,他の書式を表示したりエクスポートしたりする際にも,同様のことを行います.
872 \end_layout
873
874 \begin_layout Section
875 \SpecialChar LaTeX
876 ファイルを\SpecialChar LyX
877 に読み込む
878 \end_layout
879
880 \begin_layout Standard
881 \SpecialChar LyX
882
883 \family sans
884
885 \begin_inset Flex MenuItem
886 status collapsed
887
888 \begin_layout Plain Layout
889
890 \family sans
891 ファイル\SpecialChar menuseparator
892 インポート\SpecialChar menuseparator
893 LaTeX
894 \end_layout
895
896 \end_inset
897
898
899 \family roman
900 \series medium
901 \shape up
902 \size normal
903 \emph off
904 \bar no
905 \noun off
906 \color none
907 コマンドを使用すると,\SpecialChar LaTeX
908 ファイルを
909 \family default
910 \series default
911 \shape default
912 \size default
913 \emph default
914 \bar default
915 \noun default
916  
917 \family roman
918 \series medium
919 \shape up
920 \size normal
921 \emph off
922 \bar no
923 \noun off
924 \SpecialChar LyX
925 にインポートすることができます.このコマンドは,
926 \family typewriter
927 \series default
928 \shape default
929 \size default
930 \emph default
931 \bar default
932 \noun default
933 \color inherit
934
935 \begin_inset Flex Code
936 status collapsed
937
938 \begin_layout Plain Layout
939
940 \family typewriter
941 tex2lyx
942 \end_layout
943
944 \end_inset
945
946
947 \family roman
948 \series medium
949 \shape up
950 \size normal
951 \emph off
952 \bar no
953 \noun off
954 \color none
955 というプログラムを呼び出し,
956 \family typewriter
957 \series default
958 \shape default
959 \size default
960 \emph default
961 \bar default
962 \noun default
963 \color inherit
964
965 \begin_inset Flex Code
966 status collapsed
967
968 \begin_layout Plain Layout
969
970 \family typewriter
971 foo.tex
972 \end_layout
973
974 \end_inset
975
976
977 \family default
978 などというファイルから
979 \begin_inset Flex Code
980 status collapsed
981
982 \begin_layout Plain Layout
983
984 \family typewriter
985 foo.lyx
986 \end_layout
987
988 \end_inset
989
990 を生成します.\SpecialChar LyX
991 は,この変換したファイルを開きます
992 \begin_inset Foot
993 status collapsed
994
995 \begin_layout Plain Layout
996 \begin_inset Flex Code
997 status collapsed
998
999 \begin_layout Plain Layout
1000 tex2lyx
1001 \end_layout
1002
1003 \end_inset
1004
1005 は,もちろんコマンドラインから実行することもできます.
1006 \end_layout
1007
1008 \end_inset
1009
1010
1011 \end_layout
1012
1013 \begin_layout Standard
1014
1015 \family typewriter
1016 \begin_inset Flex Code
1017 status collapsed
1018
1019 \begin_layout Plain Layout
1020
1021 \family typewriter
1022 tex2lyx
1023 \end_layout
1024
1025 \end_inset
1026
1027
1028 \family roman
1029 \series medium
1030 \shape up
1031 \size normal
1032 \emph off
1033 \bar no
1034 \noun off
1035 \color none
1036 は,文法的に正しい\SpecialChar LaTeX
1037 ファイルのほとんどを変換することができますが,すべてを変換できるわけではありません.
1038 \family typewriter
1039 \series default
1040 \shape default
1041 \size default
1042 \emph default
1043 \bar default
1044 \noun default
1045 \color inherit
1046
1047 \begin_inset Flex Code
1048 status collapsed
1049
1050 \begin_layout Plain Layout
1051
1052 \family typewriter
1053 tex2lyx
1054 \end_layout
1055
1056 \end_inset
1057
1058
1059 \family roman
1060 \series medium
1061 \shape up
1062 \size normal
1063 \emph off
1064 \bar no
1065 \noun off
1066 \color none
1067 は,理解不能な部分は\SpecialChar TeX
1068 コードボックスの形で残しますので,ファイルを
1069 \family typewriter
1070 \series default
1071 \shape default
1072 \size default
1073 \emph default
1074 \bar default
1075 \noun default
1076 \color inherit
1077
1078 \begin_inset Flex Code
1079 status collapsed
1080
1081 \begin_layout Plain Layout
1082
1083 \family typewriter
1084 tex2lyx
1085 \end_layout
1086
1087 \end_inset
1088
1089
1090 \family roman
1091 \series medium
1092 \shape up
1093 \size normal
1094 \emph off
1095 \bar no
1096 \noun off
1097 \color none
1098 で変換したのち,\SpecialChar TeX
1099 コードボックスを探して,手動で正しく編集してください.
1100 \end_layout
1101
1102 \begin_layout Standard
1103
1104 \family roman
1105 \series medium
1106 \shape up
1107 \size normal
1108 \emph off
1109 \bar no
1110 \noun off
1111 \color none
1112 \SpecialChar TeX
1113 コードボックスがなにかご存じなければ,次節をお読みください.
1114 \end_layout
1115
1116 \begin_layout Section
1117 \SpecialChar LyX
1118 文書に\SpecialChar TeX
1119 コードを挿入する
1120 \begin_inset CommandInset label
1121 LatexCommand label
1122 name "sec:TeXコードを挿入する"
1123
1124 \end_inset
1125
1126
1127 \end_layout
1128
1129 \begin_layout Standard
1130
1131 \family roman
1132 \series medium
1133 \shape up
1134 \size normal
1135 \emph off
1136 \bar no
1137 \noun off
1138 \color none
1139 どの\SpecialChar LyX
1140 文書にもつねに\SpecialChar TeX
1141 コードを挿入することが可能であるというきわめて単純な理由によって,\SpecialChar LaTeX
1142 にできることは,つねに\SpecialChar LyX
1143 でも行うことができます.一方,\SpecialChar LyX
1144 は,すべての\SpecialChar LaTeX
1145 構成物を\SpecialChar LyX
1146 内に
1147 表示できるわけではなく,将来的にもそうならないでしょう.かりに\SpecialChar LaTeX
1148 コマンドを\SpecialChar LyX
1149 文書に挿入する必要が出てきた場合には,
1150 \begin_inset Flex Code
1151 status collapsed
1152
1153 \begin_layout Plain Layout
1154
1155 \family roman
1156 \series medium
1157 \shape up
1158 \size normal
1159 \emph off
1160 \bar no
1161 \noun off
1162 \color none
1163 \SpecialChar TeX
1164 コード
1165 \end_layout
1166
1167 \end_inset
1168
1169 ボックスを使用してください.これは,
1170 \family sans
1171 \series default
1172 \shape default
1173 \size default
1174 \emph default
1175 \bar default
1176 \noun default
1177 \color inherit
1178
1179 \begin_inset Flex MenuItem
1180 status collapsed
1181
1182 \begin_layout Plain Layout
1183
1184 \family sans
1185 挿入\SpecialChar menuseparator
1186 TeXコード
1187 \end_layout
1188
1189 \end_inset
1190
1191
1192 \family roman
1193 \series medium
1194 \shape up
1195 \size normal
1196 \emph off
1197 \bar no
1198 \noun off
1199 \color none
1200 若しくは
1201 \family default
1202 \series default
1203 \shape default
1204 \size default
1205 \emph default
1206 \bar default
1207 \noun default
1208 \color inherit
1209
1210 \begin_inset Flex Ruby
1211 status collapsed
1212
1213 \begin_layout Plain Layout
1214
1215 \family roman
1216 \series medium
1217 \shape up
1218 \size normal
1219 \emph off
1220 \bar no
1221 \noun off
1222 \color none
1223 捷径
1224 \family default
1225 \series default
1226 \shape default
1227 \size default
1228 \emph default
1229 \bar default
1230 \noun default
1231 \color inherit
1232
1233 \begin_inset Argument post:1
1234 status collapsed
1235
1236 \begin_layout Plain Layout
1237 ショートカット
1238 \end_layout
1239
1240 \end_inset
1241
1242
1243 \end_layout
1244
1245 \end_inset
1246
1247
1248 \begin_inset Flex Ruby
1249 status collapsed
1250
1251 \begin_layout Plain Layout
1252
1253 \family roman
1254 \series medium
1255 \shape up
1256 \size normal
1257 \emph off
1258 \bar no
1259 \noun off
1260 \color none
1261
1262 \begin_inset Argument post:1
1263 status collapsed
1264
1265 \begin_layout Plain Layout
1266 キー
1267 \end_layout
1268
1269 \end_inset
1270
1271
1272 \end_layout
1273
1274 \end_inset
1275
1276
1277 \begin_inset Info
1278 type  "shortcut"
1279 arg   "ert-insert"
1280 \end_inset
1281
1282
1283 \family roman
1284 \series medium
1285 \shape up
1286 \size normal
1287 \emph off
1288 \bar no
1289 \noun off
1290 \color none
1291 で,文書中に挿入することができます.
1292 \end_layout
1293
1294 \begin_layout Standard
1295 以下は,\SpecialChar LaTeX
1296 コマンドを\SpecialChar LyX
1297 文書中に挿入する例です.コードは以下のようになっているとしましょう.
1298 \end_layout
1299
1300 \begin_layout LyX-Code
1301
1302 \backslash
1303 begin{tabular}{ll}
1304 \begin_inset Newline newline
1305 \end_inset
1306
1307
1308 \backslash
1309 begin{minipage}{5cm}
1310 \begin_inset Newline newline
1311 \end_inset
1312
1313 これは,ミニページ環境の例です.
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 \backslash
1335 end{minipage}
1336 \begin_inset Newline newline
1337 \end_inset
1338
1339 &
1340 \begin_inset Newline newline
1341 \end_inset
1342
1343
1344 \backslash
1345 begin{minipage}{5cm}
1346 \begin_inset Newline newline
1347 \end_inset
1348
1349
1350 \backslash
1351 begin{verbatim}
1352 \begin_inset Newline newline
1353 \end_inset
1354
1355
1356 \backslash
1357 begin{minipage}{5cm}
1358 \begin_inset Newline newline
1359 \end_inset
1360
1361 これは...
1362  
1363 \begin_inset Newline newline
1364 \end_inset
1365
1366
1367 \backslash
1368 end{minipage}
1369 \begin_inset Newline newline
1370 \end_inset
1371
1372
1373 \backslash
1374 end{verbatim}
1375 \begin_inset Newline newline
1376 \end_inset
1377
1378
1379 \backslash
1380 end{minipage}
1381 \begin_inset Newline newline
1382 \end_inset
1383
1384
1385 \backslash
1386 end{tabular}
1387 \end_layout
1388
1389 \begin_layout LyX-Code
1390
1391 \end_layout
1392
1393 \begin_layout Standard
1394 上記のテキストを含んだ
1395 \begin_inset Flex Code
1396 status collapsed
1397
1398 \begin_layout Plain Layout
1399 \SpecialChar TeX
1400 コード
1401 \end_layout
1402
1403 \end_inset
1404
1405 ボックスが,この段落の直後にあります.この取扱説明書を\SpecialChar LyX
1406 上でご覧になっていれば,\SpecialChar TeX
1407 コード差込枠のみが見えるはずです.印刷した取扱説明書をご覧であれば,実際の結果が見
1408 れるはずです.
1409 \end_layout
1410
1411 \begin_layout Standard
1412 \begin_inset VSpace bigskip
1413 \end_inset
1414
1415
1416 \begin_inset ERT
1417 status open
1418
1419 \begin_layout Plain Layout
1420
1421
1422 \backslash
1423 begin{tabular}{ll}
1424 \end_layout
1425
1426 \begin_layout Plain Layout
1427
1428
1429 \backslash
1430 begin{minipage}{5cm}
1431 \end_layout
1432
1433 \begin_layout Plain Layout
1434
1435 これは,ミニページ環境の例です.これには,(フロートでない)図表を含め,ほとんど何でも入れることができます. 
1436 \backslash
1437 end{minipage}
1438 \end_layout
1439
1440 \begin_layout Plain Layout
1441
1442 &
1443 \end_layout
1444
1445 \begin_layout Plain Layout
1446
1447
1448 \backslash
1449 begin{minipage}{5cm}
1450 \end_layout
1451
1452 \begin_layout Plain Layout
1453
1454
1455 \backslash
1456 begin{verbatim}
1457 \end_layout
1458
1459 \begin_layout Plain Layout
1460
1461
1462 \backslash
1463 begin{minipage}{5cm}
1464 \end_layout
1465
1466 \begin_layout Plain Layout
1467
1468 これは...
1469  
1470 \backslash
1471 end{minipage}
1472 \end_layout
1473
1474 \begin_layout Plain Layout
1475
1476
1477 \backslash
1478 end{verbatim}
1479 \end_layout
1480
1481 \begin_layout Plain Layout
1482
1483
1484 \backslash
1485 end{minipage}
1486 \end_layout
1487
1488 \begin_layout Plain Layout
1489
1490
1491 \backslash
1492 end{tabular}
1493 \end_layout
1494
1495 \end_inset
1496
1497
1498 \begin_inset VSpace bigskip
1499 \end_inset
1500
1501
1502 \end_layout
1503
1504 \begin_layout Standard
1505
1506 \family roman
1507 \series medium
1508 \shape up
1509 \size normal
1510 \emph off
1511 \bar no
1512 \noun off
1513 \color none
1514 \SpecialChar TeX
1515 コードを使用する方法に加えて,複雑な\SpecialChar LaTeX
1516 コードを含む部分を別ファイルとして作成しておき,そのファイルをインクルードするのに
1517 \begin_inset Flex MenuItem
1518 status collapsed
1519
1520 \begin_layout Plain Layout
1521
1522 \family roman
1523 \series medium
1524 \shape up
1525 \size normal
1526 \emph off
1527 \bar no
1528 \noun off
1529 \color none
1530 挿入\SpecialChar menuseparator
1531 ファイル\SpecialChar menuseparator
1532 子文書
1533 \end_layout
1534
1535 \end_inset
1536
1537 を使用する方法もあります(取り込みの型として
1538 \begin_inset Flex Code
1539 status collapsed
1540
1541 \begin_layout Plain Layout
1542
1543 \family roman
1544 \series medium
1545 \shape up
1546 \size normal
1547 \emph off
1548 \bar no
1549 \noun off
1550 \color none
1551 Input
1552 \end_layout
1553
1554 \end_inset
1555
1556 を選択しなくてはなりません).この方法をとる場合には,.texファイルが正しく動作することが
1557 \family default
1558 \series default
1559 \shape default
1560 \size default
1561 \emph on
1562 \bar default
1563 \noun default
1564 \color inherit
1565 確認できている
1566 \family roman
1567 \series medium
1568 \shape up
1569 \size normal
1570 \emph off
1571 \bar no
1572 \noun off
1573 \color none
1574 場合のみに限った方がよいでしょう.さもないと,\SpecialChar LaTeX
1575 エラーを追跡するたいへんな作業を行わなくてはならなくなります.
1576 \end_layout
1577
1578 \begin_layout Standard
1579
1580 \family roman
1581 \series medium
1582 \shape up
1583 \size normal
1584 \emph off
1585 \bar no
1586 \noun off
1587 \color none
1588 最後に,いくつか強調しておくべきことがあります.
1589 \end_layout
1590
1591 \begin_layout Itemize
1592
1593 \family roman
1594 \series medium
1595 \shape up
1596 \size normal
1597 \emph off
1598 \bar no
1599 \noun off
1600 \color none
1601 \SpecialChar LyX
1602 は,あなたの\SpecialChar LaTeX
1603 コードが正しいかどうかを
1604 \family default
1605 \series default
1606 \shape default
1607 \size default
1608 \emph on
1609 \bar default
1610 \noun default
1611 \color inherit
1612 チェックしません
1613 \family roman
1614 \series medium
1615 \shape up
1616 \size normal
1617 \emph off
1618 \bar no
1619 \noun off
1620 \color none
1621
1622 \end_layout
1623
1624 \begin_layout Itemize
1625
1626 \family roman
1627 \series medium
1628 \shape up
1629 \size normal
1630 \emph off
1631 \bar no
1632 \noun off
1633 \color none
1634 車輪の再発明をしないようにご注意ください.
1635 \end_layout
1636
1637 \begin_layout Standard
1638
1639 \family roman
1640 \series medium
1641 \shape up
1642 \size normal
1643 \emph off
1644 \bar no
1645 \noun off
1646 \color none
1647 二番目の点に関して,\SpecialChar LyX
1648 はひじょうにたくさんの機能を装備しており,その数は増えつづけています.ご自身で\SpecialChar LaTeX
1649 コードを書かなくてはならないと思い込む前に,LyXがこれこれの
1650 機能をもっていないことを,取扱説明書で確実に確かめてください.さらに世の中には,封筒のラベルから美しい複数ページにわたる表を作るものまで,ありとあらゆることを行
1651 う膨大な数の\SpecialChar LaTeX
1652 パッケージが存在します.
1653 \family default
1654 \series default
1655 \shape default
1656 \size default
1657 \emph default
1658 \bar default
1659 \noun default
1660 \color inherit
1661 詳細については,
1662 \begin_inset CommandInset href
1663 LatexCommand href
1664 name "CTAN"
1665 target "http://www.ctan.org/"
1666 literal "false"
1667
1668 \end_inset
1669
1670
1671 \family roman
1672 \series medium
1673 \shape up
1674 \size normal
1675 \emph off
1676 \bar no
1677 \noun off
1678 \color none
1679 と第
1680 \begin_inset CommandInset ref
1681 LatexCommand ref
1682 reference "chap:Special-features"
1683
1684 \end_inset
1685
1686 節をご覧ください.
1687 \end_layout
1688
1689 \begin_layout Standard
1690
1691 \family roman
1692 \series medium
1693 \shape up
1694 \size normal
1695 \emph off
1696 \bar no
1697 \noun off
1698 \color none
1699 もし,文書中で例外的に手の込んだことをなさりたければ,かならず良い\SpecialChar LaTeX
1700 関連書籍を参考とするようにしてください.『
1701 \family default
1702 \series default
1703 \shape default
1704 \size default
1705 \emph on
1706 \bar default
1707 \noun default
1708 \color inherit
1709 ユーザーの手引き
1710 \family roman
1711 \series medium
1712 \shape up
1713 \size normal
1714 \emph off
1715 \bar no
1716 \noun off
1717 \color none
1718 』の書誌情報に多くの\SpecialChar LaTeX
1719 関連書籍が引用されています.
1720 \end_layout
1721
1722 \begin_layout Section
1723 \SpecialChar LyX
1724 と\SpecialChar LaTeX
1725 プリアンブル
1726 \end_layout
1727
1728 \begin_layout Subsection
1729 \SpecialChar LaTeX
1730 プリアンブルについて
1731 \end_layout
1732
1733 \begin_layout Standard
1734
1735 \family roman
1736 \series medium
1737 \shape up
1738 \size normal
1739 \emph off
1740 \bar no
1741 \noun off
1742 \color none
1743 すでに\SpecialChar LaTeX
1744 についてご存知であれば,ここでプリアンブル(前置文)が何に向いているか説明する必要はないでしょう.もしご存じなければ,以下の説明で大まかな理解は得られるは
1745 ずです.詳しくは\SpecialChar LaTeX
1746 関連書籍をご参照ください.いずれにしても,以下で\SpecialChar LyX
1747 文書の\SpecialChar LaTeX
1748 プリアンブルで何ができるか,または何をする必要がないか説明をしますので,以下の各要点はお読
1749 みになった方が良いでしょう.
1750 \end_layout
1751
1752 \begin_layout Standard
1753
1754 \family roman
1755 \series medium
1756 \shape up
1757 \size normal
1758 \emph off
1759 \bar no
1760 \noun off
1761 \color none
1762 \SpecialChar LaTeX
1763 プリアンブルは,\SpecialChar LaTeX
1764 文書のいちばん始め,本文の
1765 \family default
1766 \series default
1767 \shape default
1768 \size default
1769 \emph on
1770 \bar default
1771 \noun default
1772 \color inherit
1773
1774 \family roman
1775 \series medium
1776 \shape up
1777 \size normal
1778 \emph off
1779 \bar no
1780 \noun off
1781 \color none
1782 の部分に来ます.ここでは以下のことを行います.
1783 \end_layout
1784
1785 \begin_layout Itemize
1786
1787 \family roman
1788 \series medium
1789 \shape up
1790 \size normal
1791 \emph off
1792 \bar no
1793 \noun off
1794 \color none
1795 文書クラス(ドキュメントクラス)の宣言.
1796 \begin_inset Newline newline
1797 \end_inset
1798
1799 これは\SpecialChar LyX
1800 がすでに行ってくれています.もしあなたが熟達した\SpecialChar LaTeX
1801 使いであり,自作の文書クラスを使いたい場合には,取扱説明書『
1802 \family default
1803 \series default
1804 \shape default
1805 \size default
1806 \emph on
1807 \bar default
1808 \noun default
1809 \color inherit
1810 カスタマイズ篇
1811 \family roman
1812 \series medium
1813 \shape up
1814 \size normal
1815 \emph off
1816 \bar no
1817 \noun off
1818 \color none
1819 』をご覧になれば,\SpecialChar LyX
1820 に自作文書クラスへの仲介を行わせるにはどうすればよいかの情報があります.
1821 \end_layout
1822
1823 \begin_layout Itemize
1824
1825 \family roman
1826 \series medium
1827 \shape up
1828 \size normal
1829 \emph off
1830 \bar no
1831 \noun off
1832 \color none
1833 パッケージ使用の宣言.
1834 \begin_inset Newline newline
1835 \end_inset
1836
1837 \SpecialChar LaTeX
1838 パッケージは,パッケージがプリアンブルで宣言された場合のみ,文書中で利用可能となる,追加コマンド群を提供します.パッケージをインクルードすると,特別なコマンドが
1839 提供されることに加え,文書に変更を加えることができます.例えば
1840 \family typewriter
1841 \series default
1842 \shape default
1843 \size default
1844 \emph default
1845 \bar default
1846 \noun default
1847 \color inherit
1848
1849 \family roman
1850 \series medium
1851 \shape up
1852 \size normal
1853 \emph off
1854 \bar no
1855 \noun off
1856 \color none
1857
1858 \begin_inset Flex Code
1859 status collapsed
1860
1861 \begin_layout Plain Layout
1862
1863 \family typewriter
1864 indentfirst
1865 \end_layout
1866
1867 \end_inset
1868
1869 パッケージは,すべての段落の最初の行を字下げします.他にも,ラベルや宛名書き,余白設定等の様々なパッケージがあります.
1870 \end_layout
1871
1872 \begin_layout Itemize
1873
1874 \family roman
1875 \series medium
1876 \shape up
1877 \size normal
1878 \emph off
1879 \bar no
1880 \noun off
1881 \color none
1882 カウンタ・変数・長さ・幅の設定.
1883 \begin_inset Newline newline
1884 \end_inset
1885
1886 \SpecialChar LaTeX
1887 のカウンタと変数の中には,プリアンブルでグローバルに
1888 \family default
1889 \series default
1890 \shape default
1891 \size default
1892 \emph default
1893 \bar default
1894 \noun default
1895 \color inherit
1896 設定
1897 \emph on
1898 しないかぎり
1899 \family roman
1900 \series medium
1901 \shape up
1902 \size normal
1903 \emph off
1904 \bar no
1905 \noun off
1906 \color none
1907 ,望んだ効果を持たないものがあります.(文書中で設定したり再設定したりすることのできる変数もあります.)余白は,プリアンブルで設定しなくてはならない変数の代表例
1908 です.他には,箇条書きに付けるラベル書式が挙げられます.じつは,この設定は文書中どこでもできるのですが,プリアンブルでいちどだけ設定するのが望ましい方法です.
1909 \end_layout
1910
1911 \begin_layout Itemize
1912
1913 \family roman
1914 \series medium
1915 \shape up
1916 \size normal
1917 \emph off
1918 \bar no
1919 \noun off
1920 \color none
1921 ユーザー定義コマンドの宣言(
1922 \begin_inset Flex Code
1923 status collapsed
1924
1925 \begin_layout Plain Layout
1926
1927 \family roman
1928 \series medium
1929 \shape up
1930 \size normal
1931 \emph off
1932 \bar no
1933 \noun off
1934 \color none
1935
1936 \backslash
1937 newcommand
1938 \end_layout
1939
1940 \end_inset
1941
1942 または
1943 \begin_inset Flex Code
1944 status collapsed
1945
1946 \begin_layout Plain Layout
1947
1948 \family roman
1949 \series medium
1950 \shape up
1951 \size normal
1952 \emph off
1953 \bar no
1954 \noun off
1955 \color none
1956
1957 \backslash
1958 renewcommand
1959 \end_layout
1960
1961 \end_inset
1962
1963 を使用).
1964 \begin_inset Newline newline
1965 \end_inset
1966
1967 ユーザー定義コマンドは,文書中で頻出する\SpecialChar LaTeX
1968 コマンドの短縮形です.このようなコマンドを宣言するには,プリアンブルが適した場所ですが,どこで宣言することも
1969 \family default
1970 \series default
1971 \shape default
1972 \size default
1973 \emph on
1974 \bar default
1975 \noun default
1976 \color inherit
1977 可能
1978 \family roman
1979 \series medium
1980 \shape up
1981 \size normal
1982 \emph off
1983 \bar no
1984 \noun off
1985 \color none
1986 です(もちろんコマンドが初めて使用される場所よりも前です).あまりないことではありますが,お使いの文書中に生の\SpecialChar LaTeX
1987 コードがあふれている場合には便利でしょう.
1988 \end_layout
1989
1990 \begin_layout Standard
1991
1992 \family roman
1993 \series medium
1994 \shape up
1995 \size normal
1996 \emph off
1997 \bar no
1998 \noun off
1999 \color none
2000 \SpecialChar LyX
2001 は,その生成する
2002 \begin_inset Flex Code
2003 status collapsed
2004
2005 \begin_layout Plain Layout
2006
2007 \family roman
2008 \series medium
2009 \shape up
2010 \size normal
2011 \emph off
2012 \bar no
2013 \noun off
2014 \color none
2015 .tex
2016 \end_layout
2017
2018 \end_inset
2019
2020 ファイルのプリアンブルに,それ自身の定義を追加します.これによって,\SpecialChar LyX
2021 の生成する\SpecialChar LaTeX
2022 ファイルの可搬性を高めています.
2023 \end_layout
2024
2025 \begin_layout Subsection
2026 プリアンブルの変更
2027 \end_layout
2028
2029 \begin_layout Standard
2030
2031 \family roman
2032 \series medium
2033 \shape up
2034 \size normal
2035 \emph off
2036 \bar no
2037 \noun off
2038 \color none
2039 \SpecialChar LyX
2040 が\SpecialChar LaTeX
2041 ファイルのプリアンブルに追加するコマンドは,つねに同じです.これは,\SpecialChar LyX
2042 自体にパッチを当てないかぎり変更できないようになっています.しかしながら,
2043 \begin_inset Flex MenuItem
2044 status collapsed
2045
2046 \begin_layout Plain Layout
2047
2048 \family roman
2049 \series medium
2050 \shape up
2051 \size normal
2052 \emph off
2053 \bar no
2054 \noun off
2055 \color none
2056 文書\SpecialChar menuseparator
2057 設定
2058 \end_layout
2059
2060 \end_inset
2061
2062 ダイアログの
2063 \begin_inset Flex MenuItem
2064 status collapsed
2065
2066 \begin_layout Plain Layout
2067
2068 \family roman
2069 \series medium
2070 \shape up
2071 \size normal
2072 \emph off
2073 \bar no
2074 \noun off
2075 \color none
2076 \SpecialChar LaTeX
2077 プリアンブル
2078 \end_layout
2079
2080 \end_inset
2081
2082 の項から,プリアンブルに追加をすることはできます.\SpecialChar LyX
2083 は,
2084 \family sans
2085 \series default
2086 \shape default
2087 \size default
2088 \emph default
2089 \bar default
2090 \noun default
2091 \color inherit
2092
2093 \begin_inset Flex MenuItem
2094 status collapsed
2095
2096 \begin_layout Plain Layout
2097
2098 \family sans
2099 プリアンブル
2100 \end_layout
2101
2102 \end_inset
2103
2104
2105 \family roman
2106 \series medium
2107 \shape up
2108 \size normal
2109 \emph off
2110 \bar no
2111 \noun off
2112 \color none
2113 ダイアログ内のすべてのものを,\SpecialChar LyX
2114 埋込みのプリアンブルに付け加えます.ご自身の宣言をプリアンブルに追加する前に,あなたがしようとしていることを\SpecialChar LyX
2115 がすでにサポートしてい
2116 ないかどうか確認してください(車輪の再発明をしないように,とはすでに申しあげたことです).
2117 \family default
2118 \series default
2119 \shape default
2120 \size default
2121 \emph default
2122 \bar default
2123 \noun default
2124 \color inherit
2125 また,
2126 \emph on
2127 プリアンブルコードが正しいことを確認してください.
2128 \emph default
2129 \SpecialChar LyX
2130 は,プリアンブルをチェックしません.
2131 \family roman
2132 \series medium
2133 \shape up
2134 \size normal
2135 \emph off
2136 \bar no
2137 \noun off
2138 \color none
2139 もしエラーがあれば,「
2140 \begin_inset Flex Code
2141 status collapsed
2142
2143 \begin_layout Plain Layout
2144
2145 \family roman
2146 \series medium
2147 \shape up
2148 \size normal
2149 \emph off
2150 \bar no
2151 \noun off
2152 \color none
2153 Missing 
2154 \backslash
2155 begin{document}
2156 \end_layout
2157
2158 \end_inset
2159
2160 」といったエラーが出ることでしょう.このようなエラーが出たときは,プリアンブルを再確認してください.
2161 \end_layout
2162
2163 \begin_layout Subsection
2164
2165 \end_layout
2166
2167 \begin_layout Standard
2168
2169 \family roman
2170 \series medium
2171 \shape up
2172 \size normal
2173 \emph off
2174 \bar no
2175 \noun off
2176 \color none
2177 以下は,プリアンブルに追加できるものとその効果を示す例です.
2178 \end_layout
2179
2180 \begin_layout Subsubsection
2181 例1:オフセット
2182 \end_layout
2183
2184 \begin_layout Standard
2185
2186 \family roman
2187 \series medium
2188 \shape up
2189 \size normal
2190 \emph off
2191 \bar no
2192 \noun off
2193 \color none
2194 \SpecialChar LaTeX
2195 には
2196 \family default
2197 \series default
2198 \shape default
2199 \size default
2200 \emph default
2201 \bar default
2202 \noun default
2203 \color inherit
2204
2205 \family roman
2206 \series medium
2207 \shape up
2208 \size normal
2209 \emph off
2210 \bar no
2211 \noun off
2212 \color none
2213
2214 \begin_inset Flex Code
2215 status collapsed
2216
2217 \begin_layout Plain Layout
2218
2219 \family typewriter
2220
2221 \backslash
2222 hoffset
2223 \end_layout
2224
2225 \end_inset
2226
2227
2228 \family typewriter
2229 \series default
2230 \shape default
2231 \size default
2232 \emph default
2233 \bar default
2234 \noun default
2235 \color inherit
2236
2237 \begin_inset Flex Code
2238 status collapsed
2239
2240 \begin_layout Plain Layout
2241
2242 \family typewriter
2243
2244 \backslash
2245 voffset
2246 \end_layout
2247
2248 \end_inset
2249
2250
2251 \family roman
2252 \series medium
2253 \shape up
2254 \size normal
2255 \emph off
2256 \bar no
2257 \noun off
2258 \color none
2259 というページ位置を制御する2つの変数があります.その機能は名前から明らかなとおりです.これらの変数は,ラベルを印刷するときなどに便利です.往々にして,印刷用紙の
2260 寸法とそのうち実際に印字可能な範囲は同じではありません.ここに
2261 \begin_inset Flex Code
2262 status collapsed
2263
2264 \begin_layout Plain Layout
2265
2266 \family typewriter
2267
2268 \backslash
2269 hoffset
2270 \end_layout
2271
2272 \end_inset
2273
2274
2275 \family typewriter
2276 \series default
2277 \shape default
2278 \size default
2279 \emph default
2280 \bar default
2281 \noun default
2282 \color inherit
2283
2284 \begin_inset Flex Code
2285 status collapsed
2286
2287 \begin_layout Plain Layout
2288
2289 \family typewriter
2290
2291 \backslash
2292 voffset
2293 \end_layout
2294
2295 \end_inset
2296
2297
2298 \family default
2299 が役立つわけです.
2300 \end_layout
2301
2302 \begin_layout Standard
2303
2304 \family roman
2305 \series medium
2306 \shape up
2307 \size normal
2308 \emph off
2309 \bar no
2310 \noun off
2311 \color none
2312 \begin_inset Flex Code
2313 status collapsed
2314
2315 \begin_layout Plain Layout
2316
2317 \family typewriter
2318
2319 \backslash
2320 hoffset
2321 \end_layout
2322
2323 \end_inset
2324
2325
2326 \family typewriter
2327 \series default
2328 \shape default
2329 \size default
2330 \emph default
2331 \bar default
2332 \noun default
2333 \color inherit
2334
2335 \begin_inset Flex Code
2336 status collapsed
2337
2338 \begin_layout Plain Layout
2339
2340 \family typewriter
2341
2342 \backslash
2343 voffset
2344 \end_layout
2345
2346 \end_inset
2347
2348
2349 \family roman
2350 \series medium
2351 \shape up
2352 \size normal
2353 \emph off
2354 \bar no
2355 \noun off
2356 \color none
2357 の既定値はともに0ポイント,つまりページをシフトしません.残念ながら,DVIドライバによってはつねにページをシフトすることがあるようです.我々には,どうしてその
2358 ようなことをするのか,そしてシスアドがどうしてそれを修正しないのか理解できませんが,もし個人的に管理できないシステムで\SpecialChar LyX
2359 を使用していて,シスアドがお馬鹿さんである
2360 場合には,
2361 \begin_inset Flex Code
2362 status collapsed
2363
2364 \begin_layout Plain Layout
2365
2366 \family typewriter
2367
2368 \backslash
2369 hoffset
2370 \end_layout
2371
2372 \end_inset
2373
2374
2375 \family typewriter
2376 \series default
2377 \shape default
2378 \size default
2379 \emph default
2380 \bar default
2381 \noun default
2382 \color inherit
2383
2384 \begin_inset Flex Code
2385 status collapsed
2386
2387 \begin_layout Plain Layout
2388
2389 \family typewriter
2390
2391 \backslash
2392 voffset
2393 \end_layout
2394
2395 \end_inset
2396
2397
2398 \family roman
2399 \series medium
2400 \shape up
2401 \size normal
2402 \emph off
2403 \bar no
2404 \noun off
2405 \color none
2406 が役に立ちます.かりに,上余白と左余白がつねに0.5インチずつ大きすぎるものとしましょう.その場合は,以下をプリアンブルに追加するとよいでしょう.
2407 \end_layout
2408
2409 \begin_layout LyX-Code
2410
2411 \backslash
2412 setlength{
2413 \backslash
2414 hoffset}{-0.5 in}
2415 \end_layout
2416
2417 \begin_layout LyX-Code
2418
2419 \backslash
2420 setlength{
2421 \backslash
2422 voffset}{-0.5 in}
2423 \end_layout
2424
2425 \begin_layout Standard
2426
2427 \family roman
2428 \series medium
2429 \shape up
2430 \size normal
2431 \emph off
2432 \bar no
2433 \noun off
2434 \color none
2435 これで余白が修正されます.
2436 \end_layout
2437
2438 \begin_layout Subsubsection
2439 例2:ラベル
2440 \end_layout
2441
2442 \begin_layout Standard
2443
2444 \family roman
2445 \series medium
2446 \shape up
2447 \size normal
2448 \emph off
2449 \bar no
2450 \noun off
2451 \color none
2452 いま,たくさんの宛名ラベルを印刷をしたいものとしましょう.ラベルシートを印刷するために便利な
2453 \begin_inset Flex Code
2454 status collapsed
2455
2456 \begin_layout Plain Layout
2457
2458 \family typewriter
2459 labels.sty
2460 \end_layout
2461
2462 \end_inset
2463
2464 という\SpecialChar LaTeX
2465 パッケージが,お近くのCTANアーカイブで入手可能です.お使いのシステムには,既定ではこのパッケージは導入されていないかもしれません.ご自身でお確かめくだ
2466 さい.また,このパッケージの取扱説明書を読まれたいかもしれませんが,それもご自身にお任せします.これは使用例ですので,このパッケージをどう使うかの例だけお見せす
2467 ることにします.
2468 \end_layout
2469
2470 \begin_layout Standard
2471
2472 \family roman
2473 \series medium
2474 \shape up
2475 \size normal
2476 \emph off
2477 \bar no
2478 \noun off
2479 \color none
2480 まず,
2481 \begin_inset Flex Code
2482 status collapsed
2483
2484 \begin_layout Plain Layout
2485
2486 \family sans
2487 article
2488 \end_layout
2489
2490 \end_inset
2491
2492 文書クラスを使用していることをご確認ください.次に,以下のような設定をプリアンブルに追加しなければなりません.
2493 \end_layout
2494
2495 \begin_layout LyX-Code
2496
2497 \backslash
2498 usepackage{labels}
2499 \end_layout
2500
2501 \begin_layout LyX-Code
2502
2503 \backslash
2504 LabelCols=3
2505 \end_layout
2506
2507 \begin_layout LyX-Code
2508
2509 \backslash
2510 LabelRows=7
2511 \end_layout
2512
2513 \begin_layout LyX-Code
2514
2515 \backslash
2516 LeftBorder=8mm
2517 \end_layout
2518
2519 \begin_layout LyX-Code
2520
2521 \backslash
2522 RightBorder=8mm
2523 \end_layout
2524
2525 \begin_layout LyX-Code
2526
2527 \backslash
2528 TopBorder=9mm
2529 \end_layout
2530
2531 \begin_layout LyX-Code
2532
2533 \backslash
2534 BottomBorder=2mm
2535 \end_layout
2536
2537 \begin_layout Standard
2538
2539 \family roman
2540 \series medium
2541 \shape up
2542 \size normal
2543 \emph off
2544 \bar no
2545 \noun off
2546 \color none
2547 これは
2548 \family default
2549 \series default
2550 \shape default
2551 \size default
2552 \emph default
2553 \bar default
2554 \noun default
2555 \color inherit
2556 Averyラベルシートのストック5360
2557 \family roman
2558 \series medium
2559 \shape up
2560 \size normal
2561 \emph off
2562 \bar no
2563 \noun off
2564 \color none
2565 番を使用する場合の設定です.これで,各宛名を
2566 \begin_inset Flex Code
2567 status collapsed
2568
2569 \begin_layout Plain Layout
2570
2571 \family typewriter
2572
2573 \backslash
2574 begin{labels}
2575 \end_layout
2576
2577 \end_inset
2578
2579
2580 \family typewriter
2581 \series default
2582 \shape default
2583 \size default
2584 \emph default
2585 \bar default
2586 \noun default
2587 \color inherit
2588
2589 \begin_inset Flex Code
2590 status collapsed
2591
2592 \begin_layout Plain Layout
2593
2594 \family typewriter
2595
2596 \backslash
2597 end{labels}
2598 \end_layout
2599
2600 \end_inset
2601
2602
2603 \family roman
2604 \series medium
2605 \shape up
2606 \size normal
2607 \emph off
2608 \bar no
2609 \noun off
2610 \color none
2611 で囲めば,宛名ラベルの印刷をすることができます.本機能およびその他の機能に関しては,
2612 \begin_inset Flex Code
2613 status collapsed
2614
2615 \begin_layout Plain Layout
2616
2617 \family typewriter
2618 labels.sty
2619 \end_layout
2620
2621 \end_inset
2622
2623 の取扱説明書に説明されています.
2624 \end_layout
2625
2626 \begin_layout Standard
2627
2628 \family roman
2629 \series medium
2630 \shape up
2631 \size normal
2632 \emph off
2633 \bar no
2634 \noun off
2635 \color none
2636 そのうち誰かが,このパッケージを直接サポートする\SpecialChar LyX
2637 レイアウトファイルを作ってくれるかもしれません.その誰かはあなたかもしれません.
2638 \end_layout
2639
2640 \begin_layout Subsubsection
2641 例3: 段落の字下げ
2642 \end_layout
2643
2644 \begin_layout Standard
2645
2646 \family roman
2647 \series medium
2648 \shape up
2649 \size normal
2650 \emph off
2651 \bar no
2652 \noun off
2653 \color none
2654 アメリカ人は
2655 \family default
2656 \series default
2657 \shape default
2658 \size default
2659 \emph default
2660 \bar default
2661 \noun default
2662 \color inherit
2663
2664 \emph on
2665 すべての
2666 \family roman
2667 \series medium
2668 \shape up
2669 \size normal
2670 \emph off
2671 \bar no
2672 \noun off
2673 \color none
2674 段落の最初の行を字下げするように教育されています.そのために彼らの他の変な習慣と同じく,いつものようにすべての段落の最初の行を下げるまで,アメリカ人はごちゃごち
2675 ゃと文句を言いつづけるのです
2676 \family default
2677 \series default
2678 \shape default
2679 \size default
2680 \emph default
2681 \bar default
2682 \noun default
2683 \color inherit
2684 .(これはユーモアです.(ほんと?)
2685 \emph on
2686 ユーモアですってば
2687 \emph default
2688 .)
2689 \end_layout
2690
2691 \begin_layout Standard
2692
2693 \family roman
2694 \series medium
2695 \shape up
2696 \size normal
2697 \emph off
2698 \bar no
2699 \noun off
2700 \color none
2701 もちろん,これは標準的な組版ルールではありません.書籍では,典型的には,他の段落のあとにくる段落
2702 \family default
2703 \series default
2704 \shape default
2705 \size default
2706 \emph on
2707 \bar default
2708 \noun default
2709 \color inherit
2710 のみ
2711 \family roman
2712 \series medium
2713 \shape up
2714 \size normal
2715 \emph off
2716 \bar no
2717 \noun off
2718 \color none
2719 字下げを行ないます.一行めを字下げをするそもそもの目的は,隣接する段落から区別するためです.したがって,図のあとや節の最初の段落など,先行する段落がない場合には
2720 ,字下げをする必要はないのです.
2721 \end_layout
2722
2723 \begin_layout Standard
2724
2725 \family roman
2726 \series medium
2727 \shape up
2728 \size normal
2729 \emph off
2730 \bar no
2731 \noun off
2732 \color none
2733 けれどもあなたが典型的なアメリカ人なら(ユーーモアですって!),そのような小難しいことはかまわずに,いつもどおりの字下げをせずにはいられないでしょう!プリアンブ
2734 ルに次の行を加えて下さい.
2735 \end_layout
2736
2737 \begin_layout LyX-Code
2738
2739 \backslash
2740 usepackage{indentfirst}
2741 \end_layout
2742
2743 \begin_layout Standard
2744
2745 \family roman
2746 \series medium
2747 \shape up
2748 \size normal
2749 \emph off
2750 \bar no
2751 \noun off
2752 \color none
2753 もしお使いの\SpecialChar TeX
2754 頒布版が脳死状態でなければ,このパッケージが入っているはずなので,建国の父たちが意図したように,すべての段落が字下げされます.
2755 \end_layout
2756
2757 \begin_layout Subsubsection
2758 例4:この文書
2759 \end_layout
2760
2761 \begin_layout Standard
2762
2763 \family roman
2764 \series medium
2765 \shape up
2766 \size normal
2767 \emph off
2768 \bar no
2769 \noun off
2770 \color none
2771 この文書のプリアンブルを見てみると,どのような高度な設定ができるか,おおまかな理解が得られるでしょう.また第
2772 \family default
2773 \series default
2774 \shape default
2775 \size default
2776 \emph default
2777 \bar default
2778 \noun default
2779 \color inherit
2780
2781 \begin_inset CommandInset ref
2782 LatexCommand ref
2783 reference "chap:Special-features"
2784
2785 \end_inset
2786
2787
2788 \family roman
2789 \series medium
2790 \shape up
2791 \size normal
2792 \emph off
2793 \bar no
2794 \noun off
2795 \color none
2796 章には,他の例や,\SpecialChar LaTeX
2797 の各種の「汚い技」があります.
2798 \end_layout
2799
2800 \begin_layout Section
2801 \SpecialChar LyX
2802 および\SpecialChar LaTeX
2803 のエラー
2804 \end_layout
2805
2806 \begin_layout Standard
2807
2808 \family roman
2809 \series medium
2810 \shape up
2811 \size normal
2812 \emph off
2813 \bar no
2814 \noun off
2815 \color none
2816 \SpecialChar LyX
2817 が\SpecialChar LaTeX
2818 を呼び出す際,\SpecialChar LyX
2819 は\SpecialChar LaTeX
2820 に,かりにエラーがあったとしても楽観的に無視して先に進むように指示します.その後\SpecialChar LyX
2821 は,\SpecialChar LaTeX
2822 の実行ログファイルを事後処理用に使います.ログファイルを分
2823 析したのち,\SpecialChar LyX
2824 はエラーを一覧表示するダイアログを表示します.エラーのうちどれかをクリックすると,\SpecialChar LyX
2825 ファイル中,そのエラーの発生した場所に表示を移動します
2826 \begin_inset Foot
2827 status collapsed
2828
2829 \begin_layout Plain Layout
2830
2831 \family roman
2832 \series medium
2833 \shape up
2834 \size normal
2835 \emph off
2836 \bar no
2837 \noun off
2838 \color none
2839 正確にいうと,通常は,です.ログファイルの分析は難しい仕事ですので,\SpecialChar LyX
2840 はつねに正しい行に連れて行ってくれるとは限りません.ときには,\SpecialChar LaTeX
2841 がある行にエラーがあると報告し
2842 たとしても,実際のエラーはそれよりも前であることもあります.これは,プログラムで閉じ括弧を忘れたときに似ていなくもありません.エラーは表示されますが,実際にエラ
2843 ーのある場所よりも後ろでエラーが報告されるのです.
2844 \end_layout
2845
2846 \end_inset
2847
2848
2849 \family default
2850 \series default
2851 \shape default
2852 \size default
2853 \emph default
2854 \bar default
2855 \noun default
2856 \color inherit
2857
2858 \end_layout
2859
2860 \begin_layout Standard
2861
2862 \family roman
2863 \series medium
2864 \shape up
2865 \size normal
2866 \emph off
2867 \bar no
2868 \noun off
2869 \color none
2870 人によっては,ログファイルを直接ご覧になりたいかもしれません.これは,
2871 \begin_inset Flex MenuItem
2872 status collapsed
2873
2874 \begin_layout Plain Layout
2875
2876 \family roman
2877 \series medium
2878 \shape up
2879 \size normal
2880 \emph off
2881 \bar no
2882 \noun off
2883 \color none
2884 文書\SpecialChar menuseparator
2885 LaTeXログ
2886 \end_layout
2887
2888 \end_inset
2889
2890 で見ることができます.エラーメッセージや警告には,よく見かけるものがいくつかありますので,それらをここに収録しておきます.ここにないエラーや警告に関しては,La\SpecialChar TeX
2891
2892 関連の良書を参照してください.
2893 \end_layout
2894
2895 \begin_layout Itemize
2896
2897 \family typewriter
2898 \begin_inset Flex Code
2899 status collapsed
2900
2901 \begin_layout Plain Layout
2902
2903 \family typewriter
2904 LaTeX Warning
2905 \end_layout
2906
2907 \end_inset
2908
2909
2910 \family roman
2911 \series medium
2912 \shape up
2913 \size normal
2914 \emph off
2915 \bar no
2916 \noun off
2917 \color none
2918
2919 \begin_inset Newline newline
2920 \end_inset
2921
2922 これで始まるメッセージは,\SpecialChar LaTeX
2923 コード自体を「デバッグ」するための警告メッセージです.相互参照や書誌情報を追加したり変更した場合に,もう一度\SpecialChar LaTeX
2924 を実行する必要があることを
2925 知らせるために,このようなメッセージが表示されます.このメッセージは,だいたいにおいて無視しても大丈夫です.
2926 \end_layout
2927
2928 \begin_layout Itemize
2929
2930 \family typewriter
2931 \begin_inset Flex Code
2932 status collapsed
2933
2934 \begin_layout Plain Layout
2935
2936 \family typewriter
2937 LaTeX Font Warning
2938 \end_layout
2939
2940 \end_inset
2941
2942
2943 \family roman
2944 \series medium
2945 \shape up
2946 \size normal
2947 \emph off
2948 \bar no
2949 \noun off
2950 \color none
2951
2952 \begin_inset Newline newline
2953 \end_inset
2954
2955 \SpecialChar LaTeX
2956 がフォントを見つけられなかったと言う警告メッセージです.多くの場合,このメッセージの後に,\SpecialChar LaTeX
2957 が使用した代替フォントに関する情報が続きます.これも無視して構いません
2958
2959 \end_layout
2960
2961 \begin_layout Itemize
2962
2963 \family roman
2964 \series medium
2965 \shape up
2966 \size normal
2967 \emph off
2968 \bar no
2969 \noun off
2970 \color none
2971 \begin_inset Flex Code
2972 status collapsed
2973
2974 \begin_layout Plain Layout
2975
2976 \family typewriter
2977 Overfull 
2978 \backslash
2979 hbox
2980 \end_layout
2981
2982 \end_inset
2983
2984
2985 \begin_inset Newline newline
2986 \end_inset
2987
2988 \SpecialChar LaTeX
2989 は,
2990 \family default
2991 \series default
2992 \shape default
2993 \size default
2994 \emph on
2995 \bar default
2996 \noun default
2997 \color inherit
2998 ほぼどんなときでも
2999 \family roman
3000 \series medium
3001 \shape up
3002 \size normal
3003 \emph off
3004 \bar no
3005 \noun off
3006 \color none
3007 この警告を吐き出します.どんな文書を書いたとしても,このメッセージは,少なくとも1つは出てくるようです.これは,一行が長すぎて右余白にはみ出してしまったという警
3008 告であり,
3009 \family default
3010 \series default
3011 \shape default
3012 \size default
3013 \emph default
3014 \bar default
3015 \noun default
3016 \color inherit
3017 \SpecialChar LaTeX
3018
3019 \family roman
3020 \series medium
3021 \shape up
3022 \size normal
3023 \emph off
3024 \bar no
3025 \noun off
3026 \color none
3027 が適切な改行方法を見つけられなかった時に生じます(タイプライタ体では自動改行を許されないため頻発することが知られています).ほとんどの場合,最終出力を見ても判別
3028 できないくらい(せいぜい1ポイントか2ポイント)です.しかしながら,時には目に見えて余白にはみ出してしまうこともあるので,その場合には,最終出力では修正したいと
3029 思うことでしょう.
3030 \begin_inset Newline newline
3031 \end_inset
3032
3033 全体的にoverfull行の数をできるだけ少なくする方法はいくつかあります.
3034 \family sans
3035 \series default
3036 \shape default
3037 \size default
3038 \emph default
3039 \bar default
3040 \noun default
3041 \color inherit
3042 文書\SpecialChar menuseparator
3043 設定\SpecialChar menuseparator
3044 フォント
3045 \family roman
3046 \series medium
3047 \shape up
3048 \size normal
3049 \emph off
3050 \bar no
3051 \noun off
3052 \color none
3053
3054 \family sans
3055 \series default
3056 \shape default
3057 \size default
3058 \emph default
3059 \bar default
3060 \noun default
3061 \color inherit
3062 マイクロタイポグラフィ拡張を有効にする
3063 \family roman
3064 \series medium
3065 \shape up
3066 \size normal
3067 \emph off
3068 \bar no
3069 \noun off
3070 \color none
3071 をクリックすると,大幅な改善が見込めます.さらに,
3072 \family sans
3073 \series default
3074 \shape default
3075 \size default
3076 \emph default
3077 \bar default
3078 \noun default
3079 \color inherit
3080 文書\SpecialChar menuseparator
3081 設定\SpecialChar menuseparator
3082 プリアンブル
3083 \family roman
3084 \series medium
3085 \shape up
3086 \size normal
3087 \emph off
3088 \bar no
3089 \noun off
3090 \color none
3091 に以下のような
3092 \family default
3093 \series default
3094 \shape default
3095 \size default
3096 \emph default
3097 \bar default
3098 \noun default
3099 \color inherit
3100 \SpecialChar LaTeX
3101
3102 \family roman
3103 \series medium
3104 \shape up
3105 \size normal
3106 \emph off
3107 \bar no
3108 \noun off
3109 \color none
3110 コードを書いても,overfull行の数は,通常,大幅に減少します(この文書のプリアンブルにも使用しています).
3111 \end_layout
3112
3113 \begin_deeper
3114 \begin_layout LyX-Code
3115
3116 \backslash
3117 tolerance 1414
3118 \begin_inset Newline newline
3119 \end_inset
3120
3121
3122 \backslash
3123 hbadness 1414
3124 \begin_inset Newline newline
3125 \end_inset
3126
3127
3128 \backslash
3129 emergencystretch 1.5em
3130 \begin_inset Newline newline
3131 \end_inset
3132
3133
3134 \backslash
3135 hfuzz 0.3pt
3136 \end_layout
3137
3138 \begin_layout Standard
3139 しかしながら,場合によっては,改行が正しく行われるように,文章そのものを書き換えなくてはならない場合もあります
3140 \begin_inset Foot
3141 status collapsed
3142
3143 \begin_layout Plain Layout
3144 詳細は,
3145 \begin_inset Flex URL
3146 status open
3147
3148 \begin_layout Plain Layout
3149
3150 http://www.tex.ac.uk/FAQ-overfull.html
3151 \end_layout
3152
3153 \end_inset
3154
3155 を参照してください.
3156 \end_layout
3157
3158 \end_inset
3159
3160
3161 \end_layout
3162
3163 \begin_layout Standard
3164 何れにしても,少なくとも文書の完成版では,各行の確認を行うべきです.はみ出過ぎているものがあれば,目で見ればわかるでしょう
3165 \begin_inset Foot
3166 status collapsed
3167
3168 \begin_layout Plain Layout
3169
3170 \family sans
3171 文書\SpecialChar menuseparator
3172 設定
3173 \family default
3174 で「draft」オプションを有効にすることもできます.すると,overfull行の余白には,\SpecialChar LaTeX
3175 が黒い四角を描画してくれます.
3176 \end_layout
3177
3178 \end_inset
3179
3180
3181 \end_layout
3182
3183 \end_deeper
3184 \begin_layout Itemize
3185
3186 \family typewriter
3187 \begin_inset Flex Code
3188 status collapsed
3189
3190 \begin_layout Plain Layout
3191
3192 \family typewriter
3193 Underfull 
3194 \backslash
3195 hbox
3196 \end_layout
3197
3198 \end_inset
3199
3200
3201 \begin_inset Newline newline
3202 \end_inset
3203
3204
3205 \family roman
3206 \series medium
3207 \shape up
3208 \size normal
3209 \emph off
3210 \bar no
3211 \noun off
3212 \color none
3213 これは上の警告と違ってあまり出てきません.これも,
3214 \family default
3215 \series default
3216 \shape default
3217 \size default
3218 \emph default
3219 \bar default
3220 \noun default
3221 \color inherit
3222 \SpecialChar LaTeX
3223
3224 \family roman
3225 \series medium
3226 \shape up
3227 \size normal
3228 \emph off
3229 \bar no
3230 \noun off
3231 \color none
3232 が適切な改行方法を見つけられずに,間延びした行を生成せざるを得なかった時に起こります.overfull行と同様,外見上の問題がないかどうか確認してください.
3233 \end_layout
3234
3235 \begin_layout Itemize
3236 \begin_inset Flex Code
3237 status collapsed
3238
3239 \begin_layout Plain Layout
3240
3241 \family typewriter
3242 Overfull 
3243 \backslash
3244 vbox
3245 \end_layout
3246
3247 \end_inset
3248
3249
3250 \family typewriter
3251
3252 \begin_inset Flex Code
3253 status collapsed
3254
3255 \begin_layout Plain Layout
3256
3257 \family typewriter
3258 Underfull 
3259 \backslash
3260 vbox
3261 \end_layout
3262
3263 \end_inset
3264
3265
3266 \family default
3267
3268 \begin_inset Newline newline
3269 \end_inset
3270
3271
3272 \family roman
3273 \series medium
3274 \shape up
3275 \size normal
3276 \emph off
3277 \bar no
3278 \noun off
3279 \color none
3280 ページ区切りに問題があったという警告です.この場合も,出力を目で確認してください.何か問題があれば,見てすぐわかります.
3281 \end_layout
3282
3283 \begin_layout Itemize
3284
3285 \family typewriter
3286 \begin_inset Flex Code
3287 status collapsed
3288
3289 \begin_layout Plain Layout
3290
3291 \family typewriter
3292 LaTeX Error: File 
3293 \begin_inset Quotes els
3294 \end_inset
3295
3296 Xxxx
3297 \begin_inset Quotes ers
3298 \end_inset
3299
3300  not found
3301 \end_layout
3302
3303 \end_inset
3304
3305
3306 \family roman
3307 \series medium
3308 \shape up
3309 \size normal
3310 \emph off
3311 \bar no
3312 \noun off
3313 \color none
3314
3315 \begin_inset Newline newline
3316 \end_inset
3317
3318 ファイル「Xxxx」が,システムに導入されていません.これは通常,文書が必要としている\SpecialChar LaTeX
3319 パッケージに,導入済でないものがある場合に現れます.プリアンブルに変更を加
3320 えておらず,
3321 \begin_inset Flex Code
3322 status collapsed
3323
3324 \begin_layout Plain Layout
3325
3326 \family typewriter
3327
3328 \backslash
3329 usepackage{}
3330 \end_layout
3331
3332 \end_inset
3333
3334 コマンドも使用していないとすれば,\SpecialChar LyX
3335 が読み込もうしているパッケージに存在しないものがあるということです.
3336 \family default
3337 \series default
3338 \shape default
3339 \size default
3340 \emph default
3341 \bar default
3342 \noun default
3343 \color inherit
3344
3345 \begin_inset Flex MenuItem
3346 status collapsed
3347
3348 \begin_layout Plain Layout
3349 ヘルプ\SpecialChar menuseparator
3350 \SpecialChar LaTeX
3351 の設定
3352 \end_layout
3353
3354 \end_inset
3355
3356
3357 \family roman
3358 \series medium
3359 \shape up
3360 \size normal
3361 \emph off
3362 \bar no
3363 \noun off
3364 \color none
3365 を使用して,\SpecialChar LyX
3366 が認識しているパッケージの一覧を得てください.このファイルは,(
3367 \begin_inset Flex MenuItem
3368 status collapsed
3369
3370 \begin_layout Plain Layout
3371
3372 \family roman
3373 \series medium
3374 \shape up
3375 \size normal
3376 \emph off
3377 \bar no
3378 \noun off
3379 \color none
3380 ツール\SpecialChar menuseparator
3381 再設定
3382 \end_layout
3383
3384 \end_inset
3385
3386 を使用して)\SpecialChar LyX
3387 の再設定を行うたびに更新され,どのパッケージが検出されたか,それらのパッケージが何をするものかを表示します.
3388 \begin_inset Newline newline
3389 \end_inset
3390
3391
3392 \family sans
3393 \series default
3394 \shape default
3395 \size default
3396 \emph default
3397 \bar default
3398 \noun default
3399 \color inherit
3400
3401 \begin_inset Flex Code
3402 status collapsed
3403
3404 \begin_layout Plain Layout
3405
3406 \family sans
3407
3408 \backslash
3409 usepackage{}
3410 \end_layout
3411
3412 \end_inset
3413
3414
3415 \family roman
3416 \series medium
3417 \shape up
3418 \size normal
3419 \emph off
3420 \bar no
3421 \noun off
3422 \color none
3423 コマンドを使っていて,肝心のパッケージが導入されていない場合には,ご自身で導入する必要があります.
3424 \end_layout
3425
3426 \begin_layout Itemize
3427
3428 \family typewriter
3429 \begin_inset Flex Code
3430 status collapsed
3431
3432 \begin_layout Plain Layout
3433
3434 \family typewriter
3435 LaTeX Error: Unknown option
3436 \end_layout
3437
3438 \end_inset
3439
3440
3441 \family roman
3442 \series medium
3443 \shape up
3444 \size normal
3445 \emph off
3446 \bar no
3447 \noun off
3448 \color none
3449
3450 \begin_inset Newline newline
3451 \end_inset
3452
3453 このように始まるエラーメッセージは,パッケージに誤ったあるいは未定義のオプションが指定されていることを伝えようとするものです.パッケージの取扱説明書をご確認くだ
3454 さい.
3455 \end_layout
3456
3457 \begin_layout Itemize
3458
3459 \family typewriter
3460 \begin_inset Flex Code
3461 status collapsed
3462
3463 \begin_layout Plain Layout
3464
3465 \family typewriter
3466 Undefined control sequence
3467 \end_layout
3468
3469 \end_inset
3470
3471
3472 \family roman
3473 \series medium
3474 \shape up
3475 \size normal
3476 \emph off
3477 \bar no
3478 \noun off
3479 \color none
3480
3481 \begin_inset Newline newline
3482 \end_inset
3483
3484 お使いの文書に\SpecialChar LaTeX
3485 コードを挿入した際,打ち間違いをしてしまうと,このようなメッセージが表示されます.あるいは,パッケージを読み込ませるのを忘れたのかもしれません.い
3486 ずれにしても,このメッセージは,あなたが未定義のコマンドを使用したことを示しています.
3487 \end_layout
3488
3489 \begin_layout Standard
3490
3491 \family roman
3492 \series medium
3493 \shape up
3494 \size normal
3495 \emph off
3496 \bar no
3497 \noun off
3498 \color none
3499 これ以外にも,エラーメッセージや警告メッセージがあります.一般に,読んで意味がすぐにわかるものは,\SpecialChar LaTeX
3500 のメッセージです.何を言っているのかさっぱりわからないものもあ
3501 りますが,通常これらは,\SpecialChar TeX
3502 のメッセージであり,それが何を意味しているのか,どのように解読すればいいのか,
3503 \family default
3504 \series default
3505 \shape default
3506 \size default
3507 \emph on
3508 \bar default
3509 \noun default
3510 \color inherit
3511 まったく
3512 \family roman
3513 \series medium
3514 \shape up
3515 \size normal
3516 \emph off
3517 \bar no
3518 \noun off
3519 \color none
3520 手がかりがありません.誰もわからないのです.
3521 \end_layout
3522
3523 \begin_layout Standard
3524
3525 \family roman
3526 \series medium
3527 \shape up
3528 \size normal
3529 \emph off
3530 \bar no
3531 \noun off
3532 \color none
3533 エラーメッセージが表示された場合は,つねに以下のチェックリストにしたがった方がよいでしょう.
3534 \end_layout
3535
3536 \begin_layout Enumerate
3537
3538 \family roman
3539 \series medium
3540 \shape up
3541 \size normal
3542 \emph off
3543 \bar no
3544 \noun off
3545 \color none
3546 ご自分で挿入した\SpecialChar LaTeX
3547 コードに打ち間違いがないかどうか確かめる.
3548 \end_layout
3549
3550 \begin_layout Enumerate
3551
3552 \family roman
3553 \series medium
3554 \shape up
3555 \size normal
3556 \emph off
3557 \bar no
3558 \noun off
3559 \color none
3560 打ち間違いがなければ,コマンドを正しく使ったかどうか確かめる.
3561 \end_layout
3562
3563 \begin_layout Enumerate
3564
3565 \family roman
3566 \series medium
3567 \shape up
3568 \size normal
3569 \emph off
3570 \bar no
3571 \noun off
3572 \color none
3573 文書のもっともはじめの部分にエラーボックスが多数積み上がった場合には—特に
3574 \begin_inset Flex Code
3575 status collapsed
3576
3577 \begin_layout Plain Layout
3578
3579 \family roman
3580 \series medium
3581 \shape up
3582 \size normal
3583 \emph off
3584 \bar no
3585 \noun off
3586 \color none
3587 Missing 
3588 \backslash
3589 begin{document}
3590 \end_layout
3591
3592 \end_inset
3593
3594 が表示されているならば—,プリアンブルにエラーがあることを意味します.プリアンブルのデバックを行ってください.
3595 \end_layout
3596
3597 \begin_layout Enumerate
3598
3599 \family roman
3600 \series medium
3601 \shape up
3602 \size normal
3603 \emph off
3604 \bar no
3605 \noun off
3606 \color none
3607 プリアンブルに何も追加せず,文書に\SpecialChar LaTeX
3608 コードをまったく挿入しなかった場合には,\SpecialChar LaTeX
3609 頒布版自体をまず疑ってください.導入されていないパッケージを探しだして,導入してくださ
3610 い.
3611 \end_layout
3612
3613 \begin_layout Enumerate
3614
3615 \family roman
3616 \series medium
3617 \shape up
3618 \size normal
3619 \emph off
3620 \bar no
3621 \noun off
3622 \color none
3623 導入されていないパッケージはなかったものとしましょう.\SpecialChar LyX
3624 を微調整するオプションを使用していますか.特に,手動で
3625 \begin_inset Flex Code
3626 status collapsed
3627
3628 \begin_layout Plain Layout
3629
3630 \family sans
3631 Protected
3632 \begin_inset space ~
3633 \end_inset
3634
3635 Blank
3636 \end_layout
3637
3638 \end_inset
3639
3640
3641 \begin_inset Flex Code
3642 status collapsed
3643
3644 \begin_layout Plain Layout
3645
3646 \family sans
3647 Linebreak
3648 \end_layout
3649
3650 \end_inset
3651
3652
3653 \family sans
3654 \series default
3655 \shape default
3656 \size default
3657 \emph default
3658 \bar default
3659 \noun default
3660 \color inherit
3661
3662 \begin_inset Flex Code
3663 status collapsed
3664
3665 \begin_layout Plain Layout
3666
3667 \family sans
3668 Pagebreak
3669 \end_layout
3670
3671 \end_inset
3672
3673
3674 \family roman
3675 \series medium
3676 \shape up
3677 \size normal
3678 \emph off
3679 \bar no
3680 \noun off
3681 \color none
3682 などをたくさん挿入するなど,微調整オプションを
3683 \family default
3684 \series default
3685 \shape default
3686 \size default
3687 \emph on
3688 \bar default
3689 \noun default
3690 \color inherit
3691 悪用
3692 \family roman
3693 \series medium
3694 \shape up
3695 \size normal
3696 \emph off
3697 \bar no
3698 \noun off
3699 \color none
3700 していませんか.適切な段落環境を使用する代わりに,これらを使用してその場をしのごうとしていませんか.
3701 \end_layout
3702
3703 \begin_layout Enumerate
3704
3705 \family roman
3706 \series medium
3707 \shape up
3708 \size normal
3709 \emph off
3710 \bar no
3711 \noun off
3712 \color none
3713 微調整オプションはまったく使用しておらず,規則に乗っ取って作業していたものとしましょう.何か曲芸のようなことをしようとはしていませんか.数式や表中で,たとえば表
3714 のセルに図を入れるなど,おかしなことをしようとしていませんか.
3715 \end_layout
3716
3717 \begin_layout Enumerate
3718 \SpecialChar LaTeX
3719 が改行位置を見つけられないほど長い一節がありませんか.既定では,改行するために単語間に空白をたくさん追加することを,\SpecialChar LaTeX
3720 はかなり嫌います.可能であれば,問題が生じな
3721 いように段落を修正するのが望ましいでしょう.
3722 \end_layout
3723
3724 \begin_layout Enumerate
3725
3726 \family roman
3727 \series medium
3728 \shape up
3729 \size normal
3730 \emph off
3731 \bar no
3732 \noun off
3733 \color none
3734 入れ子の階層を深くしすぎていませんか.\SpecialChar LyX
3735 は,(今のところ)環境の入れ子の階層が制限内にあるかチェックしません.かりに,環境を17段の入れ子にしたりしていたら,それ
3736 が原因です(\SpecialChar LaTeX
3737 の上限は5段です).
3738 \end_layout
3739
3740 \begin_layout Enumerate
3741
3742 \family roman
3743 \series medium
3744 \shape up
3745 \size normal
3746 \emph off
3747 \bar no
3748 \noun off
3749 \color none
3750 エラーメッセージは発生しないけれども,出力がひどいものとしましょう.図表が幅が広すぎたり長すぎてページに収まらない場合には,
3751 \end_layout
3752
3753 \begin_deeper
3754 \begin_layout Enumerate
3755
3756 \family roman
3757 \series medium
3758 \shape up
3759 \size normal
3760 \emph off
3761 \bar no
3762 \noun off
3763 \color none
3764 図がページに合うように大きさを変える,
3765 \end_layout
3766
3767 \begin_layout Enumerate
3768
3769 \family roman
3770 \series medium
3771 \shape up
3772 \size normal
3773 \emph off
3774 \bar no
3775 \noun off
3776 \color none
3777 表がページに合うように削る,
3778 \end_layout
3779
3780 \begin_layout Standard
3781
3782 \family roman
3783 \series medium
3784 \shape up
3785 \size normal
3786 \emph off
3787 \bar no
3788 \noun off
3789 \color none
3790 などの手段を採る必要があります.
3791 \end_layout
3792
3793 \end_deeper
3794 \begin_layout Enumerate
3795 他に出力におかしいところがあり,曲芸をやろうとしたり微調整オプションでしのごうとしたりはしていないとすれば,何がおかしいのか確定的なことは言えません.
3796 \end_layout
3797
3798 \begin_layout Standard
3799
3800 \family roman
3801 \series medium
3802 \shape up
3803 \size normal
3804 \emph off
3805 \bar no
3806 \noun off
3807 \color none
3808 これらすべてが役に立たないとすれば,
3809 \family default
3810 \series default
3811 \shape default
3812 \size default
3813 \emph on
3814 \bar default
3815 \noun default
3816 \color inherit
3817 ひょっとしたら
3818 \family roman
3819 \series medium
3820 \shape up
3821 \size normal
3822 \emph off
3823 \bar no
3824 \noun off
3825 \color none
3826 \SpecialChar LyX
3827 のバグを発見したのかもしれません‥‥.
3828 \end_layout
3829
3830 \begin_layout Chapter
3831 補完ツール
3832 \end_layout
3833
3834 \begin_layout Section
3835 Bib\SpecialChar TeX
3836 あるいはBiblatexによる書誌情報のカスタマイズ
3837 \end_layout
3838
3839 \begin_layout Standard
3840 Bib\SpecialChar TeX
3841 あるいは
3842 \family sans
3843 Biblatex
3844 \family default
3845 の基本的な使用法は,『
3846 \emph on
3847 ユーザーの手引き
3848 \emph default
3849 』の「
3850 \emph on
3851 文献データベース
3852 \emph default
3853 」の節に説明があります.以下の各小節では,\SpecialChar LyX
3854 でサポートされている書誌情報の特別な機能について説明することとします.
3855 \end_layout
3856
3857 \begin_layout Subsection
3858 他の引用様式
3859 \end_layout
3860
3861 \begin_layout Standard
3862 標準のBib\SpecialChar TeX
3863 は,引用された著作を参照するのに,([12]のように)数字を使用します.しかし,多くの科学分野で,これとは異なる引用様式が用いられています.もっとも
3864 よく見られるのは,著者-出版年様式(例:Knuth 1984a)です.\SpecialChar LyX
3865 は,この様式を提供する3つのパッケージ
3866 \begin_inset Flex Code
3867 status collapsed
3868
3869 \begin_layout Plain Layout
3870 biblatex
3871 \end_layout
3872
3873 \end_inset
3874
3875
3876 \begin_inset Flex Code
3877 status collapsed
3878
3879 \begin_layout Plain Layout
3880 natbib
3881 \end_layout
3882
3883 \end_inset
3884
3885
3886 \begin_inset Flex Code
3887 status collapsed
3888
3889 \begin_layout Plain Layout
3890 jurabib
3891 \end_layout
3892
3893 \end_inset
3894
3895 をサポートしています.これらのパッケージには,それぞれ長所短所がありますが,ここでは詳細に立ち入る紙幅がありません.単純な著者-出版年様式(あるいは著者-番号)
3896 様式が欲しい場合や,無数にある
3897 \begin_inset Flex Code
3898 status collapsed
3899
3900 \begin_layout Plain Layout
3901 natbib
3902 \end_layout
3903
3904 \end_inset
3905
3906 用スタイルファイルのうちどれかを使用したい場合には,定評のある
3907 \begin_inset Flex Code
3908 status collapsed
3909
3910 \begin_layout Plain Layout
3911 natbib
3912 \end_layout
3913
3914 \end_inset
3915
3916 パッケージがおそらくよい選択でしょう.法学でよく用いられる引用様式を探している場合には,
3917 \begin_inset Flex Code
3918 status collapsed
3919
3920 \begin_layout Plain Layout
3921 jurabib
3922 \end_layout
3923
3924 \end_inset
3925
3926 パッケージの利用を考えるとよいかもしれません.整形を完全に制御したい場合や,ibidem・脚註引用・タイトル全引用・400 BCなどの)複雑な日時形式・英語以外
3927 への完全な現地語化のような複雑な機能を使用したい場合には,機能面で他のパッケージを凌駕している
3928 \begin_inset Flex Code
3929 status collapsed
3930
3931 \begin_layout Plain Layout
3932 biblatex
3933 \end_layout
3934
3935 \end_inset
3936
3937 をぜひとも考えるべきでしょう.ただし,同時に
3938 \begin_inset Flex Code
3939 status collapsed
3940
3941 \begin_layout Plain Layout
3942 biblatex
3943 \end_layout
3944
3945 \end_inset
3946
3947 はたいへん重く,リソース消費量も多いことに注意してください.
3948 \end_layout
3949
3950 \begin_layout Standard
3951 \SpecialChar LyX
3952 での各パッケージの取扱い方は,ほぼ同じです.
3953 \begin_inset Flex MenuItem
3954 status collapsed
3955
3956 \begin_layout Plain Layout
3957 文書\SpecialChar menuseparator
3958 設定
3959 \end_layout
3960
3961 \end_inset
3962
3963 メニューを開き,
3964 \begin_inset Flex MenuItem
3965 status collapsed
3966
3967 \begin_layout Plain Layout
3968 書誌情報
3969 \end_layout
3970
3971 \end_inset
3972
3973 項目から
3974 \begin_inset Flex Noun
3975 status collapsed
3976
3977 \begin_layout Plain Layout
3978 Biblatex
3979 \end_layout
3980
3981 \end_inset
3982
3983
3984 \begin_inset Flex Noun
3985 status collapsed
3986
3987 \begin_layout Plain Layout
3988 Biblatex (Natbibモード)
3989 \end_layout
3990
3991 \end_inset
3992
3993
3994 \begin_inset Flex Noun
3995 status collapsed
3996
3997 \begin_layout Plain Layout
3998 Natbib (BibTeX)
3999 \end_layout
4000
4001 \end_inset
4002
4003
4004 \begin_inset Flex Noun
4005 status collapsed
4006
4007 \begin_layout Plain Layout
4008 Jurabib (BibTeX)
4009 \end_layout
4010
4011 \end_inset
4012
4013 のいずれかを選択してください(各選択肢についての詳細は,ユーザーの手引きの第6.5.3節を参照のこと).これらのパッケージによって,引用ダイアログに機能が追加され,
4014 参照の様式が選択できるようになります(「Knuth 1984」,「Knuth (1984)」,「Knuth, 1984」,「1984」など).各パッケージは,専
4015 用にデザインされたスタイルファイルを必要とすることに注意してください.これらは全てそれ自身のスタイルファイルを同梱していますが,他にもたくさんの追加されたスタイ
4016 ルファイルがありますし,
4017 \begin_inset Flex Code
4018 status collapsed
4019
4020 \begin_layout Plain Layout
4021 natbib
4022 \end_layout
4023
4024 \end_inset
4025
4026 に至っては,対話的なスタイルファイルビルダーさえ存在します
4027 \begin_inset Foot
4028 status collapsed
4029
4030 \begin_layout Plain Layout
4031 \begin_inset Flex URL
4032 status open
4033
4034 \begin_layout Plain Layout
4035
4036 ftp://ctan.tug.org/tex-archive/macros/latex/contrib/custom-bib/
4037 \end_layout
4038
4039 \end_inset
4040
4041 をご参照ください.
4042 \end_layout
4043
4044 \end_inset
4045
4046
4047 \end_layout
4048
4049 \begin_layout Subsection
4050 区分された書誌情報
4051 \end_layout
4052
4053 \begin_layout Standard
4054 場合によっては,書誌情報をいくつかの節に分ける必要があることがあります.たとえば,あなたが歴史家であるとすれば,出典と学術文献を分ける機能は,おそらく「必需品」
4055 でさえあります.残念ながら,Bib\SpecialChar TeX
4056 自身ではこのようなことができません.しかし,適切な\SpecialChar LaTeX
4057 パッケージの助けを借りると,Bib\SpecialChar TeX
4058 をこのような必要性を満たすように拡張するこ
4059 とができます.
4060 \end_layout
4061
4062 \begin_layout Standard
4063 \SpecialChar LyX
4064 は,このようなパッケージの一つである
4065 \begin_inset Flex Code
4066 status collapsed
4067
4068 \begin_layout Plain Layout
4069 bibtopic
4070 \end_layout
4071
4072 \end_inset
4073
4074
4075 \begin_inset Foot
4076 status collapsed
4077
4078 \begin_layout Plain Layout
4079 \begin_inset Flex URL
4080 status open
4081
4082 \begin_layout Plain Layout
4083
4084 ftp://ctan.tug.org/tex-archive/macros/latex/contrib/bibtopic/
4085 \end_layout
4086
4087 \end_inset
4088
4089 から入手可能です.
4090 \end_layout
4091
4092 \end_inset
4093
4094 をそのままでサポートします.このパッケージの長所は,(
4095 \begin_inset Flex Code
4096 status collapsed
4097
4098 \begin_layout Plain Layout
4099 multibib
4100 \end_layout
4101
4102 \end_inset
4103
4104 のような他のパッケージと比較すると)新規の引用コマンドを定義する必要がないことです.そのかわりに,書誌情報の違う節には,その節向けの項目を収録した別の文献データ
4105 ベースを用意する必要があります.たとえば,書誌情報を「出典」の節と「学術文献」の節に分けたい場合には,それぞれの文献データベース,たとえば
4106 \begin_inset Flex Code
4107 status collapsed
4108
4109 \begin_layout Plain Layout
4110 souces.bib
4111 \end_layout
4112
4113 \end_inset
4114
4115
4116 \begin_inset Flex Code
4117 status collapsed
4118
4119 \begin_layout Plain Layout
4120 scientific.bib
4121 \end_layout
4122
4123 \end_inset
4124
4125 とを作成する必要があります.
4126 \end_layout
4127
4128 \begin_layout Standard
4129 \begin_inset Flex MenuItem
4130 status collapsed
4131
4132 \begin_layout Plain Layout
4133 文書\SpecialChar menuseparator
4134 設定
4135 \end_layout
4136
4137 \end_inset
4138
4139 を開いて
4140 \begin_inset Flex MenuItem
4141 status collapsed
4142
4143 \begin_layout Plain Layout
4144 書誌情報
4145 \end_layout
4146
4147 \end_inset
4148
4149 の下の
4150 \begin_inset Flex MenuItem
4151 status collapsed
4152
4153 \begin_layout Plain Layout
4154 区分された書誌情報
4155 \end_layout
4156
4157 \end_inset
4158
4159 をチェックしてください.すると,書誌情報の各節に一つずつ,複数の書誌情報を挿入することができます.上記の例では,Bib\SpecialChar TeX
4160 書誌情報
4161 \begin_inset Flex Code
4162 status collapsed
4163
4164 \begin_layout Plain Layout
4165 sources.bib
4166 \end_layout
4167
4168 \end_inset
4169
4170 と二つめの文献データベース
4171 \begin_inset Flex Code
4172 status collapsed
4173
4174 \begin_layout Plain Layout
4175 scientific.bib
4176 \end_layout
4177
4178 \end_inset
4179
4180 を挿入します.各節に同じスタイルを用いるか異なるスタイルを用いるかは自由です.くわえて,書誌情報の節に,指定したデータベースの「引用されたすべての参照」を載せる
4181 (これが既定です)か,「引用されなかったすべての参照」を載せるか,あるいは「すべての参照」を載せるかを選択することができます.これは,もし書誌情報を「本文に引用
4182 された出典」・「本文に引用されていない出典」・「学術文献」の三つの節に分割したい場合に,便利でありましょう.各節の見出しは,通常の節や小節として入れることができ
4183 ます.
4184 \begin_inset Flex Code
4185 status collapsed
4186
4187 \begin_layout Plain Layout
4188 bibtopic
4189 \end_layout
4190
4191 \end_inset
4192
4193 は,書誌情報用の見出しを取り除いてしまいますので,手動でこれを追加しなくてはなりません(たとえば章*や節*などをお使いください).
4194 \end_layout
4195
4196 \begin_layout Standard
4197
4198 \family sans
4199 Biblatex
4200 \family default
4201 の場合には,手順が多少異なります.
4202 \family typewriter
4203 bibtopic
4204 \family default
4205
4206 \family sans
4207 Biblatex
4208 \family default
4209 では動作しませんので,
4210 \family sans
4211 Biblatex
4212 \family default
4213 使用中は前述の
4214 \begin_inset Flex Noun
4215 status collapsed
4216
4217 \begin_layout Plain Layout
4218 区分された書誌情報
4219 \end_layout
4220
4221 \end_inset
4222
4223 オプションは無効になります.しかしながら,
4224 \family sans
4225 Biblatex
4226 \family default
4227 は区分された書誌情報を生成する独自の方法を提供しています.書誌情報項目の
4228 \begin_inset Flex Code
4229 status collapsed
4230
4231 \begin_layout Plain Layout
4232 keywords
4233 \end_layout
4234
4235 \end_inset
4236
4237 項目オプションにキーワードを書き込み,書誌情報セクションをキーワードでフィルターに掛けることもできますし(
4238 \begin_inset Flex Noun
4239 status collapsed
4240
4241 \begin_layout Plain Layout
4242 Biblatexが生成した書誌情報
4243 \end_layout
4244
4245 \end_inset
4246
4247 ボタンを右クリックすると開くダイアログで,
4248 \begin_inset Flex Noun
4249 status collapsed
4250
4251 \begin_layout Plain Layout
4252 オプション
4253 \end_layout
4254
4255 \end_inset
4256
4257 フィールドに
4258 \begin_inset Flex Code
4259 status collapsed
4260
4261 \begin_layout Plain Layout
4262 keyword=指定キーワード
4263 \end_layout
4264
4265 \end_inset
4266
4267 と書き込みます),あるいは,上述の
4268 \begin_inset Flex Noun
4269 status collapsed
4270
4271 \begin_layout Plain Layout
4272 オプション
4273 \end_layout
4274
4275 \end_inset
4276
4277 フィールドに,例えば
4278 \begin_inset Flex Code
4279 status collapsed
4280
4281 \begin_layout Plain Layout
4282 type=book
4283 \end_layout
4284
4285 \end_inset
4286
4287
4288 \begin_inset Flex Code
4289 status collapsed
4290
4291 \begin_layout Plain Layout
4292 nottype=collection
4293 \end_layout
4294
4295 \end_inset
4296
4297 と入力することで,(
4298 \emph on
4299 book
4300 \emph default
4301
4302 \emph on
4303 article
4304 \emph default
4305 などの)項目型によりフィルターを掛けることもできます.あるいは,各項目を割り当てるための,いわゆる「書誌情報カテゴリ」を作ることもできます.詳細については,Bi
4306 blatex取扱説明書の
4307 \emph on
4308 区分された書誌情報
4309 \emph default
4310 の節をご参照ください.
4311 \end_layout
4312
4313 \begin_layout Subsection
4314 複数の書誌情報
4315 \begin_inset CommandInset label
4316 LatexCommand label
4317 name "subsec:複数の書誌情報"
4318
4319 \end_inset
4320
4321
4322 \end_layout
4323
4324 \begin_layout Standard
4325 各部・章・節・小節・子文書ごとの書誌情報など,複数の書誌情報も\SpecialChar LyX
4326 ではサポートされています.これを有効にするためには,
4327 \begin_inset Flex Noun
4328 status collapsed
4329
4330 \begin_layout Plain Layout
4331 文書\SpecialChar menuseparator
4332 設定\SpecialChar menuseparator
4333 書誌情報
4334 \end_layout
4335
4336 \end_inset
4337
4338 を開き,
4339 \begin_inset Flex Noun
4340 status collapsed
4341
4342 \begin_layout Plain Layout
4343 複数の書誌情報
4344 \end_layout
4345
4346 \end_inset
4347
4348 コンボボックスで必要な単位(「節毎」など)を選択してください.それから,執筆中文書の(節などの)各単位に,Bib(la)\SpecialChar TeX
4349 書誌情報を加えてください.出力時に,現在
4350 の単位に含まれる文献参照のみが含まれた,分割された書誌情報が生成されます.
4351 \end_layout
4352
4353 \begin_layout Standard
4354 Bib\SpecialChar TeX
4355 を使用する場合には,複数の書誌情報を生成するのに,
4356 \begin_inset Flex Code
4357 status collapsed
4358
4359 \begin_layout Plain Layout
4360 chapterbib
4361 \end_layout
4362
4363 \end_inset
4364
4365 パッケージか
4366 \begin_inset Flex Code
4367 status collapsed
4368
4369 \begin_layout Plain Layout
4370 bibtopic
4371 \end_layout
4372
4373 \end_inset
4374
4375 パッケージが使用されます.「子文書毎」を選択し,
4376 \begin_inset Flex Noun
4377 status collapsed
4378
4379 \begin_layout Plain Layout
4380 区分された書誌情報
4381 \end_layout
4382
4383 \end_inset
4384
4385 にチェックを入れ
4386 \emph on
4387 ない
4388 \emph default
4389 場合には,前者のパッケージが使用されますが,その他の場合には,すべて
4390 \begin_inset Flex Code
4391 status collapsed
4392
4393 \begin_layout Plain Layout
4394 bibtopic
4395 \end_layout
4396
4397 \end_inset
4398
4399 パッケージが使用されます
4400 \begin_inset Foot
4401 status collapsed
4402
4403 \begin_layout Plain Layout
4404 別のアプローチとして,もし
4405 \begin_inset Flex Noun
4406 status collapsed
4407
4408 \begin_layout Plain Layout
4409 \SpecialChar TeX
4410 コード
4411 \end_layout
4412
4413 \end_inset
4414
4415 を使っても良いという気があるならば(第
4416 \begin_inset CommandInset ref
4417 LatexCommand ref
4418 reference "sec:TeXコードを挿入する"
4419 plural "false"
4420 caps "false"
4421 noprefix "false"
4422
4423 \end_inset
4424
4425 節参照),
4426 \begin_inset Flex Code
4427 status collapsed
4428
4429 \begin_layout Plain Layout
4430 bibunits
4431 \end_layout
4432
4433 \end_inset
4434
4435 パッケージを使用する方法があります.
4436 \end_layout
4437
4438 \end_inset
4439
4440
4441 \begin_inset Flex Code
4442 status collapsed
4443
4444 \begin_layout Plain Layout
4445 bibtopic
4446 \end_layout
4447
4448 \end_inset
4449
4450 パッケージが使用される場合,\SpecialChar LyX
4451 は特定の単位を生成するために,その単位を
4452 \begin_inset Flex Code
4453 status collapsed
4454
4455 \begin_layout Plain Layout
4456 bibtopic
4457 \end_layout
4458
4459 \end_inset
4460
4461
4462 \begin_inset Flex Code
4463 status collapsed
4464
4465 \begin_layout Plain Layout
4466
4467 \backslash
4468 begin{btUnit}
4469 \end_layout
4470
4471 \end_inset
4472
4473
4474 \begin_inset Flex Code
4475 status collapsed
4476
4477 \begin_layout Plain Layout
4478
4479 \backslash
4480 end{btUnit}
4481 \end_layout
4482
4483 \end_inset
4484
4485 で囲みます.このアプローチには,いくつかの制限があることに注意してください.まず,全ての文献参照はいずれかの
4486 \begin_inset Flex Code
4487 status collapsed
4488
4489 \begin_layout Plain Layout
4490 btUnit
4491 \end_layout
4492
4493 \end_inset
4494
4495 の中になくてはなりません.そのため,定義された単位の外にある引用(たとえば「節毎」を使用した場合の,第1節の前)は,「???」と表示されてしまいます.(このよう
4496 な制限を回避するなどのため)
4497 \begin_inset Flex Code
4498 status collapsed
4499
4500 \begin_layout Plain Layout
4501
4502 \backslash
4503 begin{btUnit}
4504 \end_layout
4505
4506 \end_inset
4507
4508
4509 \begin_inset Flex Code
4510 status collapsed
4511
4512 \begin_layout Plain Layout
4513
4514 \backslash
4515 end{btUnit}
4516 \end_layout
4517
4518 \end_inset
4519
4520 を\SpecialChar TeX
4521 コードで入力して,自前の単位を生成することもできます.ただし,
4522 \begin_inset Flex Code
4523 status collapsed
4524
4525 \begin_layout Plain Layout
4526 btUnit
4527 \end_layout
4528
4529 \end_inset
4530
4531 は入れ子にすることができないことに注意してください.第二の制限は,
4532 \begin_inset Flex Code
4533 status collapsed
4534
4535 \begin_layout Plain Layout
4536 bibtopic
4537 \end_layout
4538
4539 \end_inset
4540
4541 は,引用のないものも含めて,つねに書誌情報データベースの参照すべてを保持してしまうということです.これにより奇妙なラベルが付されることがあります(例えば,データ
4542 ベース中にMillerという著者の2014年の著作が2つあり,その1つだけが引用されている場合,ラベルは「Miller 2014b」などとなってしまいます).
4543 \end_layout
4544
4545 \begin_layout Standard
4546
4547 \family sans
4548 Biblatex
4549 \family default
4550 を使用する場合には,
4551 \begin_inset Flex Code
4552 status collapsed
4553
4554 \begin_layout Plain Layout
4555 refsection
4556 \end_layout
4557
4558 \end_inset
4559
4560 オプションが代わりに使用されます.特定の単位が必要な時には,それらの開始時に\SpecialChar TeX
4561 コードで
4562 \begin_inset Flex Code
4563 status collapsed
4564
4565 \begin_layout Plain Layout
4566
4567 \backslash
4568 newrefsection
4569 \end_layout
4570
4571 \end_inset
4572
4573 または
4574 \begin_inset Flex Code
4575 status collapsed
4576
4577 \begin_layout Plain Layout
4578
4579 \backslash
4580 newrefsegment
4581 \end_layout
4582
4583 \end_inset
4584
4585 と書きます.単位の終了箇所も制御したい場合には,代わりに
4586 \begin_inset Flex Code
4587 status collapsed
4588
4589 \begin_layout Plain Layout
4590
4591 \backslash
4592 begin{refsection}
4593 \end_layout
4594
4595 \end_inset
4596
4597  \SpecialChar ldots
4598  
4599 \begin_inset Flex Code
4600 status collapsed
4601
4602 \begin_layout Plain Layout
4603
4604 \backslash
4605 end{refsection}
4606 \end_layout
4607
4608 \end_inset
4609
4610 環境を使ってください.ただし,
4611 \begin_inset Flex Code
4612 status collapsed
4613
4614 \begin_layout Plain Layout
4615 refsection
4616 \end_layout
4617
4618 \end_inset
4619
4620 関連は入れ子にできないことに注意してください.現行単位毎の書誌情報に加えて,
4621 \family sans
4622 Biblatex
4623 \family default
4624 はすべての書誌情報を,後で一箇所(例えば文末)に出力する簡単な方法も提供しています.そのためには,Bib(la)TeX差込枠ダイアログの内容コンボボックスで「文
4625 献参照単位全て」を選択してください.この話題についての詳細は,
4626 \family sans
4627 Biblatex
4628 \family default
4629 の取扱説明書を参照してください.
4630 \end_layout
4631
4632 \begin_layout Section
4633 複合文書
4634 \end_layout
4635
4636 \begin_layout Subsection
4637 一般的な操作
4638 \end_layout
4639
4640 \begin_layout Standard
4641 たくさんの節を含んだ大きなファイルで作業をする場合,文書をいくつかのファイルに分割した方が往々にして便利ですし,場合によっては,表部分にはしょっちゅう変更が加え
4642 られるけれども,その前の文章はつねに同じであるようなケースもあるでしょう.このような場合には,複合文書を利用することを,まずご検討ください.たとえば,科学論文は
4643 通常,導入部・所見・結果・議論・結論の五つの節から成ります.これら各節を別々の\SpecialChar LyX
4644 ファイルにして,タイトル・著者・概要・書誌情報等と,これら五つのインクルード
4645 \begin_inset Foot
4646 status collapsed
4647
4648 \begin_layout Plain Layout
4649
4650 \series bold
4651 (訳註)
4652 \series default
4653 「取り込む」の意です.原語「include」に対する訳語として,プログラミング用語の「インクルードする」以外に適語がないので,ここではプログラミング用語をそのま
4654 ま使用します.
4655 \end_layout
4656
4657 \end_inset
4658
4659 ファイルを持つ,もう一つ別の「マスター」ファイルを作成するようにすることができます.これらの各ファイルは,単にマスターファイルにインクルードされるだけでなく,単
4660 独でも出力したり印刷したりすることのできる完全な\SpecialChar LyX
4661 ファイルであるように注意することが重要です.しかも,これらの各ファイルは,同じ文書クラスでなくてはなりません.a
4662 rticleクラスとbookクラスを混在させるようなことはなさらないでください.\SpecialChar LaTeX
4663 ファイルをインクルードすることもできますが,このファイルにはプリアンブルがあって
4664 はなりません(
4665 \begin_inset Flex Code
4666 status collapsed
4667
4668 \begin_layout Plain Layout
4669
4670 \backslash
4671 begin{document}
4672 \end_layout
4673
4674 \end_inset
4675
4676 行とその前のすべて,および
4677 \begin_inset Flex Code
4678 status collapsed
4679
4680 \begin_layout Plain Layout
4681
4682 \backslash
4683 end{document}行
4684 \end_layout
4685
4686 \end_inset
4687
4688 は削除しておかなければなりません).さもないと,DVIファイルを作成する際にエラーが発生するでしょう.
4689 \end_layout
4690
4691 \begin_layout Standard
4692 \SpecialChar LyX
4693 では,
4694 \family sans
4695 挿入\SpecialChar menuseparator
4696 ファイル\SpecialChar menuseparator
4697 子文書
4698 \family default
4699 で簡単にファイルをインクルードすることができます.このメニューを選んでクリックすると,カーソルの現在位置に小さな枠が挿入されます.この枠をクリックすると,ダイア
4700 ログが現れるので,そこでインクルードするファイルとインクルード方法を選択することができます.
4701 \end_layout
4702
4703 \begin_layout Standard
4704 ファイル選択ボックスは,いまや自明でしょう.インクルード方法には,「include」・「input」・「verbatim」の三つがあります.「include」と
4705 「input」は多くの点で類似していますが,いくつかの大きな違いがあります.
4706 \end_layout
4707
4708 \begin_layout Enumerate
4709 「include」されたファイルは新規頁から組版されるのに対し,「input」されたファイルは現在のページから組版されます.
4710 \end_layout
4711
4712 \begin_layout Enumerate
4713 「include」されたファイルは,それら自身がさらに他のファイル(「孫ファイル」)を「include」することはできません.一方で,「input」は無限に下層
4714 inputを持つことができます.
4715 \end_layout
4716
4717 \begin_layout Enumerate
4718 「include」は選ばれた「include」ファイルの出力しか許しませんが,実際の(ページ割りなどの)カウンタや参照は保持されます(詳細については埋込オブジェ
4719 クト説明書の子文書の節を参照のこと).したがって,子文書にアウトソースされた章については「include」が好まれる方式ですが,任意のファイル継承がある場合には
4720 「input」の方が良いでしょう.
4721 \end_layout
4722
4723 \begin_layout Standard
4724 「verbatim」インクルードファイルでは,ファイルの内容がそのまま(つまり「
4725 \begin_inset Flex Code
4726 status collapsed
4727
4728 \begin_layout Plain Layout
4729 verbatim
4730 \end_layout
4731
4732 \end_inset
4733
4734 」モードで)固定幅タイプライタフォントで組版されます.通常,このファイルの空白は,通常の\SpecialChar LyX
4735 での空白の取扱いとは違って,連続した複数の空白がそのまま出力されるものの
4736 ,単なる見えない空白です.ただし,
4737 \family sans
4738
4739 \begin_inset Flex MenuItem
4740 status collapsed
4741
4742 \begin_layout Plain Layout
4743
4744 \family sans
4745 出力の空白に印付けをする
4746 \end_layout
4747
4748 \end_inset
4749
4750
4751 \family default
4752 チェックボックスを有効にすると,空白が存在することを明確にするために空白の印が出力されます.
4753 \end_layout
4754
4755 \begin_layout Standard
4756 一般的に,親ファイルは,組版前に完全な\SpecialChar LaTeX
4757 ファイルに変換されますが,インクルードされるファイルはプリアンブル情報を全く持たない\SpecialChar LaTeX
4758 ファイルに変換されます.
4759 \end_layout
4760
4761 \begin_layout Subsection
4762 ファイル間の相互参照
4763 \end_layout
4764
4765 \begin_layout Standard
4766 \begin_inset Box Shadowbox
4767 position "t"
4768 hor_pos "c"
4769 has_inner_box 1
4770 inner_pos "t"
4771 use_parbox 0
4772 use_makebox 0
4773 width "100col%"
4774 special "none"
4775 height "1in"
4776 height_special "totalheight"
4777 thickness "0.4pt"
4778 separation "3pt"
4779 shadowsize "4pt"
4780 framecolor "black"
4781 backgroundcolor "none"
4782 status open
4783
4784 \begin_layout Plain Layout
4785 この節の内容は,すでに古くなっています.既定のマスター文書についてと,マスターが開いているときに子文書をどう開くかについて記述する必要があります.[[要修正]]
4786 \end_layout
4787
4788 \end_inset
4789
4790
4791 \end_layout
4792
4793 \begin_layout Standard
4794 異なるファイル間に相互参照を設定することも可能です.まず,すべての関係するファイルを開いてください.例として,2つのファイルを扱う場合を考え,各ファイルをA・B
4795 と呼びます.BがAにインクルードされるファイルだとします.Aにラベルを入れて,Bで参照したいとしましょう.文書Bで相互参照ダイアログを開いて,使用する「バッファ
4796 」を選んでください.
4797 \end_layout
4798
4799 \begin_layout Subsection
4800 すべての子文書での書誌情報
4801 \end_layout
4802
4803 \begin_layout Standard
4804 子文書を使って作業する場合,全体の書誌情報を文末に一つだけ置きたいのだけれども,子文書単独で出力する時に限り,子文書分を抽出した書誌情報が付けられるようにしたい
4805 ことがあります.以下にその方法を説明します.
4806 \end_layout
4807
4808 \begin_layout Standard
4809 親文書には,全体の書誌情報が出力されるべき場所(親ファイルでも子ファイルでも)に,書誌情報差込枠を挿入するだけです.書誌情報差込枠を親ファイルに置いた場合,文献
4810 参照はすべての子文書に継承されるので,各子文書の引用ダイアログで使用できるようになります.
4811 \end_layout
4812
4813 \begin_layout Standard
4814 子文書限定の書誌情報については,子文書内の,子文書が独立にコンパイルされた時に書誌情報が出力されるべき場所に,書誌情報差込枠を挿入します.その際,この差込枠を,
4815 たとえば「子文書のみ」などと名付けた派生枝の中に置く(
4816 \family sans
4817 挿入\SpecialChar menuseparator
4818 派生枝\SpecialChar menuseparator
4819 新規派生枝を挿入...
4820 \family default
4821 )のが肝要です.そして,子文書の中でこの派生枝を有効にし(
4822 \family sans
4823 文書\SpecialChar menuseparator
4824 設定...\SpecialChar menuseparator
4825 派生枝
4826 \family default
4827 ),親文書で無効にします(
4828 \family sans
4829 文書\SpecialChar menuseparator
4830 設定...\SpecialChar menuseparator
4831 派生枝
4832 \family default
4833 ).こうすることで,子文書中の書誌情報は,親文書中では無視され,子文書中では有効になります.
4834 \end_layout
4835
4836 \begin_layout Standard
4837 複数の書誌情報が必要な場合(親文書中でも子文書ごとに書誌情報を出力するなど)は,第
4838 \begin_inset CommandInset ref
4839 LatexCommand ref
4840 reference "subsec:複数の書誌情報"
4841 plural "false"
4842 caps "false"
4843 noprefix "false"
4844
4845 \end_inset
4846
4847 節を参照してください.
4848 \end_layout
4849
4850 \begin_layout Section
4851 \SpecialChar LyX
4852 書庫
4853 \end_layout
4854
4855 \begin_layout Standard
4856 しばしばユーザーは,出版社に送ったり,共著者とやりとりするために,\SpecialChar LyX
4857 ファイルを,その依存する全画像(及び他のファイル)と「同梱」する必要に迫られることがあります.\SpecialChar LyX
4858
4859 には,この過程を自動化するPythonスクリプト(
4860 \begin_inset Flex Code
4861 status collapsed
4862
4863 \begin_layout Plain Layout
4864 lyxpak.py
4865 \end_layout
4866
4867 \end_inset
4868
4869 )が含まれています.これを使うには,
4870 \begin_inset Flex Code
4871 status collapsed
4872
4873 \begin_layout Plain Layout
4874 zipfile
4875 \end_layout
4876
4877 \end_inset
4878
4879  pythonモジュールまたは
4880 \begin_inset Flex Code
4881 status collapsed
4882
4883 \begin_layout Plain Layout
4884 tarfile
4885 \end_layout
4886
4887 \end_inset
4888
4889  pythonモジュールが,システムに導入済みであることが必要です.既定設定では,Unix系システムでは,
4890 \begin_inset Flex Code
4891 status collapsed
4892
4893 \begin_layout Plain Layout
4894 gzip
4895 \end_layout
4896
4897 \end_inset
4898
4899 圧縮
4900 \begin_inset Flex Code
4901 status collapsed
4902
4903 \begin_layout Plain Layout
4904 tar
4905 \end_layout
4906
4907 \end_inset
4908
4909 ファイル形式が優先され,Windowsでは
4910 \begin_inset Flex Code
4911 status collapsed
4912
4913 \begin_layout Plain Layout
4914 zip
4915 \end_layout
4916
4917 \end_inset
4918
4919 形式が優先されます.
4920 \end_layout
4921
4922 \begin_layout Standard
4923 \SpecialChar LyX
4924 の環境構成時には,「\SpecialChar LyX
4925 書庫」を書き出すことができるようにスクリプトが準備され,
4926 \begin_inset Flex MenuItem
4927 status collapsed
4928
4929 \begin_layout Plain Layout
4930 ファイル\SpecialChar menuseparator
4931 書き出し
4932 \end_layout
4933
4934 \end_inset
4935
4936 の下で利用可能となります.
4937 \end_layout
4938
4939 \begin_layout Standard
4940 \begin_inset Flex MenuItem
4941 status collapsed
4942
4943 \begin_layout Plain Layout
4944 ツール\SpecialChar menuseparator
4945 設定\SpecialChar menuseparator
4946 ファイル処理\SpecialChar menuseparator
4947 変換子
4948 \end_layout
4949
4950 \end_inset
4951
4952
4953 \begin_inset Flex MenuItem
4954 status collapsed
4955
4956 \begin_layout Plain Layout
4957 \SpecialChar LyX
4958 \SpecialChar menuseparator
4959 \SpecialChar LyX
4960 書庫
4961 \end_layout
4962
4963 \end_inset
4964
4965 変換子に,
4966 \begin_inset Flex Code
4967 status collapsed
4968
4969 \begin_layout Plain Layout
4970 -t
4971 \end_layout
4972
4973 \end_inset
4974
4975 スイッチや
4976 \begin_inset Flex Code
4977 status collapsed
4978
4979 \begin_layout Plain Layout
4980 -z
4981 \end_layout
4982
4983 \end_inset
4984
4985 スイッチを加えることで,プラットホームとは独立に,
4986 \begin_inset Flex Code
4987 status collapsed
4988
4989 \begin_layout Plain Layout
4990 tar
4991 \end_layout
4992
4993 \end_inset
4994
4995 形式や
4996 \begin_inset Flex Code
4997 status collapsed
4998
4999 \begin_layout Plain Layout
5000 zip
5001 \end_layout
5002
5003 \end_inset
5004
5005 形式を強制することができます(スイッチは,スクリプト名の前ではなく,後ろに加えてください).
5006 \end_layout
5007
5008 \begin_layout Section
5009 装飾的なヘッダ・フッタ
5010 \end_layout
5011
5012 \begin_layout Standard
5013 既定のページレイアウトは,どちらかといえば素っ気ないものです.
5014 \begin_inset Flex Code
5015 status collapsed
5016
5017 \begin_layout Plain Layout
5018 article
5019 \end_layout
5020
5021 \end_inset
5022
5023 文書クラスの場合には,ページの下の真ん中にページ番号がつくだけです.この取扱説明書はKOMA-scriptのbookクラスなので,すこしは凝ってますが,ほんとう
5024 に着飾るには,『
5025 \emph on
5026 ユーザーの手引き
5027 \emph default
5028 』に述べられているように,文書ページスタイルを「装飾的(fancy)」に設定する必要があります.この節では,望んだとおりの効果を得るために,\SpecialChar LaTeX
5029 プリアンブルに挿入す
5030 る必要のある\SpecialChar LaTeX
5031 コードについて解説します.
5032 \end_layout
5033
5034 \begin_layout Standard
5035 ページへッダは,「left(左)」・「center(中央)」・「right(右)」と命名された3つのフィールドに分けられています.フッタも同様に3つのフィールド
5036 に分類されています.これらのフィールドをもっとも簡単に設定する\SpecialChar LaTeX
5037 コマンドには,
5038 \family typewriter
5039
5040 \begin_inset Flex Code
5041 status collapsed
5042
5043 \begin_layout Plain Layout
5044
5045 \family typewriter
5046
5047 \backslash
5048 lhead
5049 \end_layout
5050
5051 \end_inset
5052
5053
5054 \family default
5055
5056 \family typewriter
5057
5058 \begin_inset Flex Code
5059 status collapsed
5060
5061 \begin_layout Plain Layout
5062
5063 \family typewriter
5064
5065 \backslash
5066 chead
5067 \end_layout
5068
5069 \end_inset
5070
5071
5072 \family default
5073
5074 \family typewriter
5075
5076 \begin_inset Flex Code
5077 status collapsed
5078
5079 \begin_layout Plain Layout
5080
5081 \family typewriter
5082
5083 \backslash
5084 rhead
5085 \end_layout
5086
5087 \end_inset
5088
5089
5090 \family default
5091
5092 \begin_inset Flex Code
5093 status collapsed
5094
5095 \begin_layout Plain Layout
5096
5097 \backslash
5098 lfoot
5099 \end_layout
5100
5101 \end_inset
5102
5103 などがあります.かりに,各ページの左上端に自分の名前を入れたいものとしましょう.次のようなコマンドをプリアンブルに入れるだけです.
5104 \end_layout
5105
5106 \begin_layout Standard
5107
5108 \family typewriter
5109
5110 \backslash
5111 lhead{物書 はじめ}
5112 \end_layout
5113
5114 \begin_layout Standard
5115 これで自分の名前が左上に現れます.フィールドに取り除きたい既定の内容がある場合(往々にして中央のフッタにはページ番号が入ります)には,空の引数を持つコマンドを入
5116 れるだけです.すなわち,
5117 \end_layout
5118
5119 \begin_layout Standard
5120
5121 \family typewriter
5122
5123 \backslash
5124 cfoot{}
5125 \begin_inset Newline newline
5126 \end_inset
5127
5128
5129 \family default
5130 とします.
5131 \end_layout
5132
5133 \begin_layout Standard
5134 もっと美しくしてみましょう.節番号を「第‥節」という言葉といっしょに(第3節のように)左上に入れ,ページ番号を(4ページのように)右上に,自分の名前を左下に,日
5135 付を右下に入れます.以下のコマンドをプリアンブルに入れます.
5136 \end_layout
5137
5138 \begin_layout Standard
5139
5140 \family typewriter
5141
5142 \backslash
5143 lhead{第
5144 \backslash
5145 thesection 節}
5146 \end_layout
5147
5148 \begin_layout Standard
5149
5150 \family typewriter
5151
5152 \backslash
5153 chead{}
5154 \end_layout
5155
5156 \begin_layout Standard
5157
5158 \family typewriter
5159
5160 \backslash
5161 rhead{
5162 \backslash
5163 thepage ページ}
5164 \end_layout
5165
5166 \begin_layout Standard
5167
5168 \family typewriter
5169
5170 \backslash
5171 lfoot{物書 はじめ}
5172 \end_layout
5173
5174 \begin_layout Standard
5175
5176 \family typewriter
5177
5178 \backslash
5179 cfoot{}
5180 \end_layout
5181
5182 \begin_layout Standard
5183
5184 \family typewriter
5185
5186 \backslash
5187 rfoot{
5188 \backslash
5189 today}
5190 \end_layout
5191
5192 \begin_layout Standard
5193 コマンド
5194 \family typewriter
5195
5196 \begin_inset Flex Code
5197 status collapsed
5198
5199 \begin_layout Plain Layout
5200
5201 \family typewriter
5202
5203 \backslash
5204 thesecti
5205 \family default
5206 o
5207 \family typewriter
5208 n
5209 \end_layout
5210
5211 \end_inset
5212
5213
5214 \family default
5215
5216 \begin_inset Flex Code
5217 status collapsed
5218
5219 \begin_layout Plain Layout
5220
5221 \family typewriter
5222
5223 \backslash
5224 thepa
5225 \family default
5226 ge
5227 \end_layout
5228
5229 \end_inset
5230
5231 は,それぞれ\SpecialChar LaTeX
5232 の節カウンタおよびページカウンタを取得するもので,これによって現在の節番号とページ番号を印字します.
5233 \begin_inset Flex Code
5234 status collapsed
5235
5236 \begin_layout Plain Layout
5237
5238 \family typewriter
5239
5240 \backslash
5241 tod
5242 \family default
5243 ay
5244 \end_layout
5245
5246 \end_inset
5247
5248 は,今日の日付を印字するものです.
5249 \end_layout
5250
5251 \begin_layout Standard
5252 へッダ下またはフッタ上に描かれる罫線の太さも変更することができます.もし罫線が必要なければ,太さを0にしてください.ヘッダ罫線は,既定では0.4ptの太さであり,
5253 フッタ罫線は0ptです.太さを変更するには,
5254 \family typewriter
5255
5256 \begin_inset Flex Code
5257 status collapsed
5258
5259 \begin_layout Plain Layout
5260
5261 \family typewriter
5262
5263 \backslash
5264 renewcommand{
5265 \backslash
5266 headrulewidth}{0.4pt}
5267 \end_layout
5268
5269 \end_inset
5270
5271
5272 \family default
5273
5274 \family typewriter
5275
5276 \begin_inset Flex Code
5277 status collapsed
5278
5279 \begin_layout Plain Layout
5280
5281 \family typewriter
5282
5283 \backslash
5284 renewcommand{
5285 \backslash
5286 footrulewidth}{0.4pt}
5287 \end_layout
5288
5289 \end_inset
5290
5291
5292 \family default
5293 のようなコマンドを使用してください.
5294 \end_layout
5295
5296 \begin_layout Standard
5297 \begin_inset Flex Code
5298 status collapsed
5299
5300 \begin_layout Plain Layout
5301
5302 \family typewriter
5303
5304 \backslash
5305 thispagestyle{empty}
5306 \end_layout
5307
5308 \end_inset
5309
5310
5311 \begin_inset Flex Code
5312 status collapsed
5313
5314 \begin_layout Plain Layout
5315
5316 \family typewriter
5317
5318 \backslash
5319 thispagestyle{plain}
5320 \end_layout
5321
5322 \end_inset
5323
5324
5325 \begin_inset Flex Code
5326 status collapsed
5327
5328 \begin_layout Plain Layout
5329
5330 \family typewriter
5331
5332 \backslash
5333 thispagestyle{fancy}
5334 \end_layout
5335
5336 \end_inset
5337
5338 のようなコマンドを使えば,各ページごとにへッダ・フッタ設定を有効にしたり無効にしたりすることができます.設定を変更したいページに,これらのコマンドを\SpecialChar TeX
5339 コードとして
5340 挿入してください.実は,タイトルページは,その後のページは大域的に装飾的(fancy)に設定されていれば装飾的(fancy)になるにもかかわらず,既定でプレーン
5341 (plain)になるように設定されているのです.
5342 \end_layout
5343
5344 \begin_layout Standard
5345 奇数ページの左上だけに何かを挿入するなど,もっと複雑なコマンドもあるのですが,詳しい解説は
5346 \begin_inset Flex Code
5347 status collapsed
5348
5349 \begin_layout Plain Layout
5350
5351 \family typewriter
5352 fancyhdr
5353 \end_layout
5354
5355 \end_inset
5356
5357 パッケージの取扱説明書をご参照ください(
5358 \begin_inset Flex Code
5359 status collapsed
5360
5361 \begin_layout Plain Layout
5362 fancyhdr.dvi
5363 \end_layout
5364
5365 \end_inset
5366
5367 を探してください).
5368 \end_layout
5369
5370 \begin_layout Standard
5371 最後の例として,へッダやフッタに画像を挿入できることを取り上げましょう.会社のロゴをページ左上に入れたいものとします.たとえば,
5372 \end_layout
5373
5374 \begin_layout Standard
5375
5376 \family typewriter
5377
5378 \backslash
5379 lhead{
5380 \backslash
5381 resizebox{1in}{!}{
5382 \backslash
5383 includegraphics{logo.eps}}}
5384 \end_layout
5385
5386 \begin_layout Standard
5387 \noindent
5388 とすれば,これを実現できます(文書中に他に画像を挿入していない場合には,
5389 \begin_inset Newline newline
5390 \end_inset
5391
5392
5393 \begin_inset Flex Code
5394 status collapsed
5395
5396 \begin_layout Plain Layout
5397
5398 \family typewriter
5399
5400 \backslash
5401 usepackage{graphics}
5402 \end_layout
5403
5404 \end_inset
5405
5406 をプリアンブルに宣言する必要があります).
5407 \end_layout
5408
5409 \begin_layout Section
5410 箇条書き(記号)ブリットの指定
5411 \begin_inset CommandInset label
5412 LatexCommand label
5413 name "sec:ブリット"
5414
5415 \end_inset
5416
5417
5418 \end_layout
5419
5420 \begin_layout Standard
5421
5422 \noun on
5423 Allan Rae文
5424 \end_layout
5425
5426 \begin_layout Subsection
5427 はじめに
5428 \end_layout
5429
5430 \begin_layout Standard
5431 \SpecialChar LyX
5432 には,ブリットの形が216個準備されていて,簡単なダイアログから呼び出すことができます.このダイアログを使えば,箇条書き(記号)の各階層で使うブリットの形を変更
5433 することができます.この設定は文書全体に共通なので,段落ごとに別のブリットを指定することはできません
5434 \begin_inset Foot
5435 status collapsed
5436
5437 \begin_layout Plain Layout
5438 正確には可能ですが,手動で行う必要があります.
5439 \end_layout
5440
5441 \end_inset
5442
5443
5444 \end_layout
5445
5446 \begin_layout Subsection
5447 外見
5448 \end_layout
5449
5450 \begin_layout Standard
5451 メニュー項目の
5452 \begin_inset Flex MenuItem
5453 status collapsed
5454
5455 \begin_layout Plain Layout
5456 文書\SpecialChar menuseparator
5457 設定
5458 \end_layout
5459
5460 \end_inset
5461
5462 を選択してダイアログを開き,
5463 \begin_inset Flex MenuItem
5464 status collapsed
5465
5466 \begin_layout Plain Layout
5467 ブリット
5468 \end_layout
5469
5470 \end_inset
5471
5472 タブを選択してください.
5473 \end_layout
5474
5475 \begin_layout Standard
5476 このダイアログは,ブリット形の一覧表を提示します.
5477 \begin_inset Flex MenuItem
5478 status collapsed
5479
5480 \begin_layout Plain Layout
5481 フォント
5482 \end_layout
5483
5484 \end_inset
5485
5486 と書いてあるドロップダウンメニューで,6つの各ブリット形パネルを切り替えることができます.また,一覧表左の
5487 \begin_inset Flex MenuItem
5488 status collapsed
5489
5490 \begin_layout Plain Layout
5491 階層
5492 \end_layout
5493
5494 \end_inset
5495
5496 パネルは,変更したい階層を選択するものです.
5497 \begin_inset Flex MenuItem
5498 status collapsed
5499
5500 \begin_layout Plain Layout
5501 任意のブリット
5502 \end_layout
5503
5504 \end_inset
5505
5506 では,指定したい\SpecialChar LaTeX
5507 表現を入力することができます.任意のブリットを指定した場合には,そのコマンドが必要とするパッケージを\SpecialChar LaTeX
5508 プリアンブルで指定する必要があります.
5509 \end_layout
5510
5511 \begin_layout Standard
5512 6つのパネルは,それぞれが必要とするパッケージによって分類されています.下記は,フォント名と\SpecialChar LaTeX
5513 パッケージの対応表です.
5514 \end_layout
5515
5516 \begin_layout Standard
5517 \align center
5518 \begin_inset Tabular
5519 <lyxtabular version="3" rows="7" columns="2">
5520 <features tabularvalignment="middle">
5521 <column alignment="center" valignment="top" width="0pt">
5522 <column alignment="center" valignment="top" width="0pt">
5523 <row>
5524 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5525 \begin_inset Text
5526
5527 \begin_layout Plain Layout
5528 フォント
5529 \end_layout
5530
5531 \end_inset
5532 </cell>
5533 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
5534 \begin_inset Text
5535
5536 \begin_layout Plain Layout
5537
5538 \family roman
5539 \series medium
5540 \shape up
5541 \size normal
5542 \emph off
5543 \bar no
5544 \noun off
5545 \color none
5546 必要とするパッケージ
5547 \end_layout
5548
5549 \end_inset
5550 </cell>
5551 </row>
5552 <row>
5553 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5554 \begin_inset Text
5555
5556 \begin_layout Plain Layout
5557
5558 \family sans
5559 標準
5560 \end_layout
5561
5562 \end_inset
5563 </cell>
5564 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5565 \begin_inset Text
5566
5567 \begin_layout Plain Layout
5568
5569 \series medium
5570 \shape up
5571 \size normal
5572 \emph off
5573 \bar no
5574 \noun off
5575 \color none
5576 \SpecialChar LaTeX
5577
5578 \family roman
5579 本体
5580 \end_layout
5581
5582 \end_inset
5583 </cell>
5584 </row>
5585 <row>
5586 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5587 \begin_inset Text
5588
5589 \begin_layout Plain Layout
5590
5591 \family sans
5592 \series medium
5593 \shape up
5594 \size normal
5595 \emph off
5596 \bar no
5597 \noun off
5598 \color none
5599 数式
5600 \end_layout
5601
5602 \end_inset
5603 </cell>
5604 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5605 \begin_inset Text
5606
5607 \begin_layout Plain Layout
5608
5609 \family typewriter
5610 \series medium
5611 \shape up
5612 \size normal
5613 \emph off
5614 \bar no
5615 \noun off
5616 \color none
5617 amssymb.sty
5618 \end_layout
5619
5620 \end_inset
5621 </cell>
5622 </row>
5623 <row>
5624 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5625 \begin_inset Text
5626
5627 \begin_layout Plain Layout
5628
5629 \family sans
5630 \series medium
5631 \shape up
5632 \size normal
5633 \emph off
5634 \bar no
5635 \noun off
5636 \color none
5637 絵文字1
5638 \end_layout
5639
5640 \end_inset
5641 </cell>
5642 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5643 \begin_inset Text
5644
5645 \begin_layout Plain Layout
5646
5647 \family typewriter
5648 \series medium
5649 \shape up
5650 \size normal
5651 \emph off
5652 \bar no
5653 \noun off
5654 \color none
5655 pifont.sty
5656 \end_layout
5657
5658 \end_inset
5659 </cell>
5660 </row>
5661 <row>
5662 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5663 \begin_inset Text
5664
5665 \begin_layout Plain Layout
5666
5667 \family sans
5668 \series medium
5669 \shape up
5670 \size normal
5671 \emph off
5672 \bar no
5673 \noun off
5674 \color none
5675 絵文字2
5676 \end_layout
5677
5678 \end_inset
5679 </cell>
5680 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5681 \begin_inset Text
5682
5683 \begin_layout Plain Layout
5684
5685 \family typewriter
5686 \series medium
5687 \shape up
5688 \size normal
5689 \emph off
5690 \bar no
5691 \noun off
5692 \color none
5693 pifont.sty
5694 \end_layout
5695
5696 \end_inset
5697 </cell>
5698 </row>
5699 <row>
5700 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5701 \begin_inset Text
5702
5703 \begin_layout Plain Layout
5704
5705 \family sans
5706 \series medium
5707 \shape up
5708 \size normal
5709 \emph off
5710 \bar no
5711 \noun off
5712 \color none
5713 絵文字3
5714 \end_layout
5715
5716 \end_inset
5717 </cell>
5718 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5719 \begin_inset Text
5720
5721 \begin_layout Plain Layout
5722
5723 \family typewriter
5724 \series medium
5725 \shape up
5726 \size normal
5727 \emph off
5728 \bar no
5729 \noun off
5730 \color none
5731 pifont.sty
5732 \end_layout
5733
5734 \end_inset
5735 </cell>
5736 </row>
5737 <row>
5738 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
5739 \begin_inset Text
5740
5741 \begin_layout Plain Layout
5742
5743 \family sans
5744 \series medium
5745 \shape up
5746 \size normal
5747 \emph off
5748 \bar no
5749 \noun off
5750 \color none
5751 絵文字4
5752 \end_layout
5753
5754 \end_inset
5755 </cell>
5756 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
5757 \begin_inset Text
5758
5759 \begin_layout Plain Layout
5760
5761 \family typewriter
5762 \series medium
5763 \shape up
5764 \size normal
5765 \emph off
5766 \bar no
5767 \noun off
5768 \color none
5769 pifont.sty
5770 \end_layout
5771
5772 \end_inset
5773 </cell>
5774 </row>
5775 </lyxtabular>
5776
5777 \end_inset
5778
5779
5780 \end_layout
5781
5782 \begin_layout Standard
5783 \SpecialChar LyX
5784 は,ユーザーが導入されていないパッケージのブリットを使用したとしても,警告を発しません.ファイルを閲覧したり印刷したりしようとしたときに\SpecialChar LaTeX
5785 エラーが出るようならば,
5786 パッケージが導入されていない可能性が大です
5787 \begin_inset Foot
5788 status collapsed
5789
5790 \begin_layout Plain Layout
5791 \SpecialChar LyX
5792 が,パッケージがなくてもブリットを使用することを許すのは,編集をここで行ったとしても,別のところへエクスポートする可能性があるからです.
5793 \end_layout
5794
5795 \end_inset
5796
5797
5798 \end_layout
5799
5800 \begin_layout Subsection
5801 使用法
5802 \end_layout
5803
5804 \begin_layout Standard
5805 変更したいブリット階層を選んで,ブリット形と寸法を選択してください.何らかの変更を加えたとしても,\SpecialChar LyX
5806 上には反映されませんが,文書の表示を行えば確認されます.
5807 \end_layout
5808
5809 \begin_layout Standard
5810 ブリット形は,適切な階層のブリットボタンをマウスで右クリックすれば,簡単に既定値に初期化することができます
5811 \begin_inset Foot
5812 status open
5813
5814 \begin_layout Plain Layout
5815 もし
5816 \emph on
5817 本当に
5818 \emph default
5819 段落ごとに異なるブリットの形を使いたいならば,\SpecialChar TeX
5820 コードを使って少し手を汚す必要があります.この場合も,ブリット選択ダイアログを使えば,さまざまな形のLaTeXコー
5821 ドを確認することができるので手助けとなるでしょう.任意に設定した段落をつくるには,以下のような選択肢があります.
5822 \end_layout
5823
5824 \begin_layout Plain Layout
5825 \begin_inset ERT
5826 status open
5827
5828 \begin_layout Plain Layout
5829
5830
5831 \backslash
5832 let
5833 \backslash
5834 savelabelitemi=
5835 \backslash
5836 labelitemi
5837 \end_layout
5838
5839 \end_inset
5840
5841
5842 \end_layout
5843
5844 \begin_layout Plain Layout
5845 \begin_inset ERT
5846 status open
5847
5848 \begin_layout Plain Layout
5849
5850
5851 \backslash
5852 renewcommand
5853 \backslash
5854 labelitemi[0]{
5855 \backslash
5856 small
5857 \backslash
5858 (
5859 \backslash
5860 sharp
5861 \backslash
5862 )}
5863 \end_layout
5864
5865 \end_inset
5866
5867
5868 \end_layout
5869
5870 \begin_layout Itemize
5871 特定の階層の新しいブリット形を指定するには,\SpecialChar LaTeX
5872 コマンド
5873 \begin_inset Flex Code
5874 status collapsed
5875
5876 \begin_layout Plain Layout
5877
5878 \family typewriter
5879
5880 \backslash
5881 renewcommand{}{}
5882 \end_layout
5883
5884 \end_inset
5885
5886 を使用します.あとで現在のブリット形に戻すことができるように,現在のブリット形を保存しておく必要もあります.ここで使っている箇条書きでは,第1階層のブリットを変
5887 更するために,以下の\SpecialChar LaTeX
5888 コードが使用されています.
5889 \end_layout
5890
5891 \begin_deeper
5892 \begin_layout LyX-Code
5893
5894 \family typewriter
5895
5896 \backslash
5897 let
5898 \backslash
5899 savelabelitemi=
5900 \backslash
5901 labelitemi
5902 \end_layout
5903
5904 \begin_layout LyX-Code
5905
5906 \family typewriter
5907
5908 \backslash
5909 renewcommand
5910 \backslash
5911 labelitemi[0]{
5912 \backslash
5913 small
5914 \backslash
5915 (
5916 \backslash
5917 sharp
5918 \backslash
5919 )}
5920 \end_layout
5921
5922 \end_deeper
5923 \begin_layout Itemize
5924 箇条書き(記号)の階層は,
5925 \begin_inset Flex Code
5926 status collapsed
5927
5928 \begin_layout Plain Layout
5929
5930 \backslash
5931 labelitem
5932 \end_layout
5933
5934 \end_inset
5935
5936 コマンドの一部にローマ数字で指定されていることに注意してください.
5937 \end_layout
5938
5939 \begin_layout Itemize
5940 \begin_inset Argument item:1
5941 status open
5942
5943 \begin_layout Plain Layout
5944 \begin_inset ERT
5945 status open
5946
5947 \begin_layout Plain Layout
5948
5949
5950 \backslash
5951 (
5952 \backslash
5953 star
5954 \backslash
5955 )
5956 \end_layout
5957
5958 \end_inset
5959
5960
5961 \end_layout
5962
5963 \end_inset
5964
5965 各項目のブリットを指定するには,
5966 \begin_inset Flex Code
5967 status collapsed
5968
5969 \begin_layout Plain Layout
5970 \SpecialChar TeX
5971 コード
5972 \end_layout
5973
5974 \end_inset
5975
5976 として入力したブリット形を,行頭に「ユーザ設定」項目差込枠(挿入\SpecialChar menuseparator
5977 ユーザ設定項目)に入れて挿入してください.たとえば,この項目の行頭には
5978 \family typewriter
5979
5980 \begin_inset Flex Code
5981 status collapsed
5982
5983 \begin_layout Plain Layout
5984
5985 \family typewriter
5986
5987 \backslash
5988 (
5989 \backslash
5990 star
5991 \backslash
5992 )
5993 \end_layout
5994
5995 \end_inset
5996
5997
5998 \family default
5999 が指定されています.
6000 \end_layout
6001
6002 \begin_layout Plain Layout
6003 \begin_inset ERT
6004 status open
6005
6006 \begin_layout Plain Layout
6007
6008
6009 \backslash
6010 renewcommand
6011 \backslash
6012 labelitemi[0]{
6013 \backslash
6014 savelabelitemi}
6015 \end_layout
6016
6017 \end_inset
6018
6019
6020 \end_layout
6021
6022 \begin_layout Plain Layout
6023 文書全体で使用するブリット形が有効であるようにするために,labelitemを元の設定に戻す必要があります.そのためには,以下のようにします.
6024 \end_layout
6025
6026 \begin_layout LyX-Code
6027
6028 \family typewriter
6029
6030 \backslash
6031 renewcommand
6032 \backslash
6033 labelitemi[0]{
6034 \backslash
6035 savelabelitemi}
6036 \end_layout
6037
6038 \end_inset
6039
6040
6041 \end_layout
6042
6043 \begin_layout Chapter
6044 \SpecialChar LyX
6045 とインターネット網
6046 \end_layout
6047
6048 \begin_layout Standard
6049 \SpecialChar LyX
6050 は,これまでも長い間,HTMLを始めとするウェブフレンドリーな文書諸形式への書き出しをサポートしてきました.しかしながら,第2.0版以前では,HTMLへの書き出し
6051 は,常に外部変換子を用いることで実現されていました
6052 \begin_inset Foot
6053 status collapsed
6054
6055 \begin_layout Plain Layout
6056 \SpecialChar LyX
6057 で外部変換子を使うことについての詳細は,取扱説明書『
6058 \emph on
6059 カスタマイズ篇
6060 \emph default
6061 』の「
6062 \emph on
6063 変換子
6064 \emph default
6065 」の節をご覧ください.
6066 \end_layout
6067
6068 \end_inset
6069
6070 .これらは2つのグループに大別できます.1つは,
6071 \begin_inset Flex Code
6072 status collapsed
6073
6074 \begin_layout Plain Layout
6075 htlatex
6076 \end_layout
6077
6078 \end_inset
6079
6080
6081 \begin_inset Flex Code
6082 status collapsed
6083
6084 \begin_layout Plain Layout
6085 html2latex
6086 \end_layout
6087
6088 \end_inset
6089
6090
6091 \begin_inset Flex Code
6092 status collapsed
6093
6094 \begin_layout Plain Layout
6095 plastex
6096 \end_layout
6097
6098 \end_inset
6099
6100 のように,\SpecialChar LaTeX
6101 を中間形式として用い,その\SpecialChar LaTeX
6102 を生成するのに\SpecialChar LyX
6103 を用いるもの.2つめは,
6104 \begin_inset Flex Code
6105 status collapsed
6106
6107 \begin_layout Plain Layout
6108 e\SpecialChar LyX
6109 er
6110 \end_layout
6111
6112 \end_inset
6113
6114 のように,直接\SpecialChar LyX
6115 ファイルに働きかける変換子です.これらは,それぞれに長所・短所を有しています.
6116 \end_layout
6117
6118 \begin_layout Standard
6119 \SpecialChar LaTeX
6120 ベースの変換子は,原則として,\SpecialChar LaTeX
6121 が書きだす文書についてのすべてを知っているという長所があります.この種の変換子は,例えば,特定のコードのくだりが,\SpecialChar LyX
6122 によって生成され
6123 たのか,\SpecialChar TeX
6124 コードで書かれたのかについては気にしません.これらの変換子は,
6125 \begin_inset Flex Code
6126 status collapsed
6127
6128 \begin_layout Plain Layout
6129 aux
6130 \end_layout
6131
6132 \end_inset
6133
6134 ファイルやカウンタや参照を取り扱うことができ,Bib\SpecialChar TeX
6135 が生成する
6136 \begin_inset Flex Code
6137 status collapsed
6138
6139 \begin_layout Plain Layout
6140 bbl
6141 \end_layout
6142
6143 \end_inset
6144
6145 ファイルも利用することがよくあります.一方で,\SpecialChar LaTeX
6146 は解析の非常に難しい言語であり—\SpecialChar TeX
6147 自身だけが\SpecialChar TeX
6148 を理解することができると言われたりすることがあります—,\SpecialChar LaTeX
6149 ベースの変換子は
6150 ,非常に簡単な文法に見えるものでさえ飲み込めず,複雑なものになると全く歯が立たないこともあります.例えば,この現行を書いている時点では,取扱説明書『
6151 \emph on
6152 埋込オブジェクト篇
6153 \emph default
6154 』は,他の変換子では書き出しができるのに,
6155 \begin_inset Flex Code
6156 status collapsed
6157
6158 \begin_layout Plain Layout
6159 htlatex
6160 \end_layout
6161
6162 \end_inset
6163
6164 では行うことができません.他には,数式をどう取り扱うかという問題があります.これらの変換子の典型的なものは,数式を小さな画像に変換して,HTML文書からこれらの
6165 画像へのリンクを張ります.これらの画像は,実は\SpecialChar LaTeX
6166 によって生成されているので,正確です.しかしながら,これらはうまく伸縮できないので,実際の文書の中で表現されるよう
6167 に—フォント寸が凡そ正しくなるように—見せようとすると,大変な苦労を伴います.
6168 \end_layout
6169
6170 \begin_layout Standard
6171 Alex Fernandezの
6172 \begin_inset Flex Code
6173 status collapsed
6174
6175 \begin_layout Plain Layout
6176 e\SpecialChar LyX
6177 er
6178 \end_layout
6179
6180 \end_inset
6181
6182
6183 \begin_inset CommandInset href
6184 LatexCommand href
6185 name "http://pinchito.es/elyxer/"
6186 target "http://pinchito.es/elyxer/"
6187 literal "false"
6188
6189 \end_inset
6190
6191 )は,これらの問題の一部を解決します.特に,これは数式を画像に変換するのではなく,HTMLとCSSを組み合わせて数式を生成するので,生成される数式は完璧な大きさ
6192 に伸縮されて表示されます.しかしながら,ちょっとだけ複雑な数式でさえ,
6193 \begin_inset Flex Code
6194 status collapsed
6195
6196 \begin_layout Plain Layout
6197 htlatex
6198 \end_layout
6199
6200 \end_inset
6201
6202 よりも質が落ちます.これはHTMLの限界を示しています
6203 \begin_inset Foot
6204 status collapsed
6205
6206 \begin_layout Plain Layout
6207 とはいえ,
6208 \begin_inset Flex Code
6209 status collapsed
6210
6211 \begin_layout Plain Layout
6212 e\SpecialChar LyX
6213 er
6214 \end_layout
6215
6216 \end_inset
6217
6218 では,数式用にjsMathとMathJaxを使用することもできます.ただし,この設定はグローバルにしか設定することができず,バックエンドで実行させるサーバへのア
6219 クセスが利用できる必要があります.
6220 \end_layout
6221
6222 \end_inset
6223
6224 .さらに重要なことは(少なくとも第1.1.1版においては),
6225 \begin_inset Flex Code
6226 status collapsed
6227
6228 \begin_layout Plain Layout
6229 e\SpecialChar LyX
6230 er
6231 \end_layout
6232
6233 \end_inset
6234
6235 は数式マクロを一部しかサポートしておらず,ユーザ定義の段落様式や文字様式をサポートしていません.これらの制約によって,\SpecialChar LyX
6236 ユーザが生成する文書の多くにとっては,
6237 \begin_inset Flex Code
6238 status collapsed
6239
6240 \begin_layout Plain Layout
6241 e\SpecialChar LyX
6242 er
6243 \end_layout
6244
6245 \end_inset
6246
6247 は不向きなものになっています.もちろん,原理的に,これらの問題を解決することもできたのですが,\SpecialChar LyX
6248 開発陣は別の方法を採ることとし,\SpecialChar LyX
6249 が\SpecialChar LaTeX
6250 やDocBook,平文を書き出す
6251 ことができるのと同様に,\SpecialChar LyX
6252 自身にXHTMLを書きだす能力を身につけさせることとしたのです.
6253 \end_layout
6254
6255 \begin_layout Standard
6256 この原稿執筆時点では,XHTML出力は開発途上であり,おそらく「実験的」機能として解されるべきでしょう
6257 \begin_inset Foot
6258 status open
6259
6260 \begin_layout Plain Layout
6261 \SpecialChar LyX
6262 ソースツリーもしくは
6263 \begin_inset CommandInset href
6264 LatexCommand href
6265 name "オンラインでのアクセス"
6266 target "https://www.lyx.org/trac/browser/lyx-devel/trunk/development/HTML/HTML.notes"
6267 literal "false"
6268
6269 \end_inset
6270
6271 にある
6272 \begin_inset Flex Code
6273 status collapsed
6274
6275 \begin_layout Plain Layout
6276 development/HTML/HTML.notes
6277 \end_layout
6278
6279 \end_inset
6280
6281 ファイルには,通常,XHTML出力の現状についての最新の情報が収録されています.
6282 \begin_inset CommandInset href
6283 LatexCommand href
6284 name "バグ追跡ページ"
6285 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"
6286 literal "false"
6287
6288 \end_inset
6289
6290 にあるXHTML関連バグ一覧も参照のこと.
6291 \end_layout
6292
6293 \end_inset
6294
6295 .それでもこのアプローチは,他の2つの方法よりも,潜在的な利点がいくつもあるので,開発陣はこの方法を選択したのです.
6296 \end_layout
6297
6298 \begin_layout Standard
6299 これらの利点は,主に,XHTML出力ルーチンが\SpecialChar LyX
6300 の一部となっているため,\SpecialChar LyX
6301 が出力する文書について\SpecialChar LyX
6302 が関知しているところのものは,すべて知り得るというところから来ていま
6303
6304 \begin_inset Foot
6305 status collapsed
6306
6307 \begin_layout Plain Layout
6308 他には,これらのルーチンが\SpecialChar LyX
6309 内部にあるため,\SpecialChar LyX
6310 ファイル形式や既存の差込枠の文法に変更があっても,影響を受けずに済むという利点もあります.
6311 \end_layout
6312
6313 \end_inset
6314
6315 .つまり,XHTML出力ルーチンは,(文書構造に表示されるような形での)目次や,それぞれの段落様式に関連付けられたカウンタや,ユーザ定義の様式についても知ってい
6316 るのです.XHTML出力ルーチンは,国際化について\SpecialChar LyX
6317 が関知しているものも知っているので,ちょうどその時に有効になっている言語に依存して,「Chapter
6318  1」と出力されたり,「Kapitel 1」と出力されたりするのです.
6319 \end_layout
6320
6321 \begin_layout Standard
6322 汎く一般的に,出力ルーチンは,\SpecialChar LyX
6323 が文書レイアウトについて関知しているものは知っており,したがって,文書が画面上にどのように描画されるかも知っています.文書をXHT
6324 MLに出力するときには,この情報を利用します.特に,\SpecialChar LyX
6325 は,文書を画面上に描画するときに使用するレイアウト情報に対応したCSSスタイル情報を
6326 \emph on
6327 自動的に
6328 \emph default
6329 生成します.もし節見出しが,\SpecialChar LyX
6330 中でサンセリフ体かつボールド体であるとすると,(既定では)ウェブブラウザに表示した時にも,サンセリフでボールドになります.これは,節
6331 のような定義済み様式だけでなく,ユーザ定義のものも含めて,すべての様式でそうです.実際,XHTML出力ルーチンは,ユーザ定義の段落・文字様式と,\SpecialChar LyX
6332 自身の定義済み様
6333 式とを区別しません.どちらの場合も,\SpecialChar LyX
6334 が様式について関知しているところのものは,全てレイアウトファイルに含まれています.これは,脚注のような定義済み差込枠や,各種
6335 ユーザ設定差込枠でもそうです.
6336 \end_layout
6337
6338 \begin_layout Standard
6339 結果として,XHTML出力は,レイアウトファイルやモジュールを通して,\SpecialChar LaTeX
6340 出力と全く同じように,ユーザが設定したり拡張したりすることができるのです.詳細については,
6341 取扱説明書『
6342 \emph on
6343 カスタマイズ篇
6344 \emph default
6345 』の第5章をごらんください.
6346 \end_layout
6347
6348 \begin_layout Standard
6349 本章の残りでは,XHTML出力についての,さらに詳細な情報について取り扱い,その制約や,制約の回避の仕方を取り扱います.
6350 \end_layout
6351
6352 \begin_layout Section
6353 XHTMLにおける数式出力
6354 \end_layout
6355
6356 \begin_layout Standard
6357 \SpecialChar LyX
6358 では,数式描画に4つの方法を選択できます.以下に示すように,それぞれに利点と欠点があります.
6359 \end_layout
6360
6361 \begin_layout Itemize
6362 MathML
6363 \begin_inset Newline newline
6364 \end_inset
6365
6366 MathMLは,ウェブ上で数学を用いるために,特にデザインされたXMLの一方言であり,これをサポートするブラウザ上では,通常,特に美しい表現が得られます.欠点は
6367 ,すべてのブラウザがMathMLをサポートしているわけではないという事と,FirefoxのようなGeckoベースのブラウザでも,サポートが完璧ではないという事で
6368 す.
6369 \begin_inset Newline newline
6370 \end_inset
6371
6372 例えば,数式が
6373 \begin_inset Flex Code
6374 status collapsed
6375
6376 \begin_layout Plain Layout
6377 xymatrix
6378 \end_layout
6379
6380 \end_inset
6381
6382 パッケージを使用していたり,\SpecialChar TeX
6383 コードを使用しているなどで,もし\SpecialChar LyX
6384 が数式をMathMLとして描画できないとすると,\SpecialChar LyX
6385 は数式を代わりに画像として出力します.
6386  
6387 \end_layout
6388
6389 \begin_layout Itemize
6390 HTML
6391 \begin_inset Newline newline
6392 \end_inset
6393
6394 前述のとおり,
6395 \begin_inset Flex Code
6396 status collapsed
6397
6398 \begin_layout Plain Layout
6399 elyxer
6400 \end_layout
6401
6402 \end_inset
6403
6404 は,数式をCSSで装飾したHTMLとして出力します
6405 \begin_inset Foot
6406 status collapsed
6407
6408 \begin_layout Plain Layout
6409 \SpecialChar LyX
6410 は,
6411 \begin_inset Flex Code
6412 status collapsed
6413
6414 \begin_layout Plain Layout
6415 elyxer
6416 \end_layout
6417
6418 \end_inset
6419
6420 からのHTML出力のために,CSSの一部を拝借しています.
6421 \end_layout
6422
6423 \end_inset
6424
6425 .簡単な数式では,これは非常にうまく行きますが,少し複雑な数式になると,
6426 \begin_inset Flex Code
6427 status collapsed
6428
6429 \begin_layout Plain Layout
6430 elyxer
6431 \end_layout
6432
6433 \end_inset
6434
6435 は歯が立たなくなります.それでも,この方法は非常に広くサポートされているという利点があり,かなり簡単な数式を少しだけ含んでいるような文書に適しているでしょう.
6436 \begin_inset Newline newline
6437 \end_inset
6438
6439 例えば,数式が
6440 \begin_inset Flex Code
6441 status collapsed
6442
6443 \begin_layout Plain Layout
6444 xymatrix
6445 \end_layout
6446
6447 \end_inset
6448
6449 パッケージを使用していたり,\SpecialChar TeX
6450 コードを使用しているなどで,もし\SpecialChar LyX
6451 が数式をHTMLとして描画できないとすると,\SpecialChar LyX
6452 は数式を代わりに画像として出力します.
6453  
6454 \end_layout
6455
6456 \begin_layout Itemize
6457 画像
6458 \begin_inset Newline newline
6459 \end_inset
6460
6461
6462 \begin_inset Flex Code
6463 status collapsed
6464
6465 \begin_layout Plain Layout
6466 htlatex
6467 \end_layout
6468
6469 \end_inset
6470
6471 のように,\SpecialChar LyX
6472 は数式を画像としても出力できます.この画像は,実は,自動プレビューで使用されているものと全く同じです
6473 \begin_inset Foot
6474 status collapsed
6475
6476 \begin_layout Plain Layout
6477 ただし,画像を出力に使うために,自動プレビューを入にしておく必要は
6478 \emph on
6479 ありません
6480 \emph default
6481
6482 \end_layout
6483
6484 \end_inset
6485
6486 .この方法の利点は,画像が他ならぬ\SpecialChar LaTeX
6487 によって生成されているので,非常に正確であることです.欠点は,前述したとおり,画像がビットマップなので,伸縮が全くうまく行かな
6488 かったり,コピーが出来なかったりといったことがあります.
6489 \begin_inset Newline newline
6490 \end_inset
6491
6492 画像の寸法は,
6493 \begin_inset Flex MenuItem
6494 status collapsed
6495
6496 \begin_layout Plain Layout
6497 文書\SpecialChar menuseparator
6498 設定\SpecialChar menuseparator
6499 形式
6500 \end_layout
6501
6502 \end_inset
6503
6504 の「数式画像の伸縮」パラメータを変更することで制御できます
6505 \begin_inset Foot
6506 status collapsed
6507
6508 \begin_layout Plain Layout
6509 必要な方のために述べておくと,これは,画像の解像度をdpi(1インチあたりドット数)で制御するためのもので,75dpiを基準としています.
6510 \end_layout
6511
6512 \end_inset
6513
6514
6515 \begin_inset Newline newline
6516 \end_inset
6517
6518 もし\SpecialChar LyX
6519 が,何らかの理由によって数式の画像を生成できない(例えば,必要な\SpecialChar LaTeX
6520 パッケージが導入済みでないなど)ときは,回避策として,生の\SpecialChar LaTeX
6521 を出力します.
6522 \end_layout
6523
6524 \begin_layout Itemize
6525 \SpecialChar LaTeX
6526
6527 \begin_inset Newline newline
6528 \end_inset
6529
6530 最後に,\SpecialChar LyX
6531 は,数式を\SpecialChar LaTeX
6532 としても出力することができます.この方法は,最終手段としての出力方法である一方で,HTML文書に埋め込まれた\SpecialChar LaTeX
6533 を描画するのにJavaScript
6534 を使用する,
6535 \begin_inset CommandInset href
6536 LatexCommand href
6537 name "jsMath"
6538 target "http://www.math.union.edu/~dpvc/jsMath/"
6539 literal "false"
6540
6541 \end_inset
6542
6543 のようなツールとともに使用することもできます.\SpecialChar LyX
6544 は,jsMathで必要とされているのと同じように,\SpecialChar LaTeX
6545 部分を,
6546 \begin_inset Flex Code
6547 status collapsed
6548
6549 \begin_layout Plain Layout
6550 span
6551 \end_layout
6552
6553 \end_inset
6554
6555 (行内数式用)または
6556 \begin_inset Flex Code
6557 status collapsed
6558
6559 \begin_layout Plain Layout
6560 div
6561 \end_layout
6562
6563 \end_inset
6564
6565 (別行立て数式用)に
6566 \begin_inset Flex Code
6567 status collapsed
6568
6569 \begin_layout Plain Layout
6570 class='math'
6571 \end_layout
6572
6573 \end_inset
6574
6575 を指定したもので,包んで出力します.
6576 \end_layout
6577
6578 \begin_layout Standard
6579 これらの出力方法のいずれかを
6580 \begin_inset Flex MenuItem
6581 status collapsed
6582
6583 \begin_layout Plain Layout
6584 文書\SpecialChar menuseparator
6585 設定\SpecialChar menuseparator
6586 形式
6587 \end_layout
6588
6589 \end_inset
6590
6591 で選択しなくてはなりません.既定では,\SpecialChar LyX
6592 はMathMLで出力を行います.これは,文書全体に適用される設定となります.
6593 \end_layout
6594
6595 \begin_layout Standard
6596 最後に,\SpecialChar LyX
6597 では,例えば,MathMLではあまりうまく出力されないような差込枠に対して,別の出力方法を選択できる選択肢が用意されています
6598 \begin_inset Foot
6599 status collapsed
6600
6601 \begin_layout Plain Layout
6602 その他にも,\SpecialChar LyX
6603 は,差込枠に\SpecialChar TeX
6604 コードが含まれていると画像出力に回帰するので,数式中に
6605 \begin_inset Formula $a=b\relax$
6606 \end_inset
6607
6608 のような無害な\SpecialChar TeX
6609 コードを挿入することによって,画像出力を強制することができます.
6610 \end_layout
6611
6612 \end_inset
6613
6614
6615 \end_layout
6616
6617 \begin_layout Section
6618 書誌情報と引用
6619 \end_layout
6620
6621 \begin_layout Standard
6622 XHTML出力は,書誌情報と引用を完全にサポートしています.
6623 \end_layout
6624
6625 \begin_layout Standard
6626 引用ラベルは,\SpecialChar LyX
6627 画面上のラベルを生成するのと同じ機構で生成されているので,出力中のラベルは,\SpecialChar LyX
6628 中の外見と同質またはそれよりも上質な仕上がりとなっています.連番引用を
6629 使用している場合には,\SpecialChar LyX
6630 は,画面上で表示されるような各カッコに囲まれた引用鍵を単純に表示するのではなく,[1]や[17]などの連番ラベルを出力します.著者-出版年
6631 形式の引用を使用している場合で,同じ著者-出版年の組み合わせが複数ある場合,\SpecialChar LyX
6632 は,Bib\SpecialChar TeX
6633 が行うように出版年に小文字を付します.ラベルは,書誌情報項目とともに印字さ
6634 れます.現在のところ,角括弧を丸括弧に変更するなど,ラベルの外見を変更する手段はありませんのでご注意ください.
6635 \end_layout
6636
6637 \begin_layout Standard
6638 書誌情報出力は,引用ダイアログで文献情報表示を取り扱うのと同じ機構で取り扱われているので,XHTML出力は,引用ダイアログで特定の文献項目を表示させた時のものに
6639 非常によく似ています.整形の仕方は,レイアウトファイルや望ましくはモジュールでカスタマイズすることができます.詳細については,取扱説明書『カスタマイズ篇』をご覧
6640 ください.
6641 \end_layout
6642
6643 \begin_layout Standard
6644 現在のところ,主だった瑕疵は,相互参照された情報が,関連した項目の全てに印字されてしまうことです.つまり,以下のような表示が為されます.
6645 \end_layout
6646
6647 \begin_layout Quote
6648 Jason Stanley, 
6649 \begin_inset Quotes eld
6650 \end_inset
6651
6652 Context and Logical Form
6653 \begin_inset Quotes erd
6654 \end_inset
6655
6656 , in 
6657 \emph on
6658 Language in Context: Selected Essays
6659 \emph default
6660  (Oxford: Oxford University Press, 2007), pp.
6661  30–68.
6662 \end_layout
6663
6664 \begin_layout Quote
6665 Jason Stanley, 
6666 \begin_inset Quotes eld
6667 \end_inset
6668
6669 Semantics in Context
6670 \begin_inset Quotes erd
6671 \end_inset
6672
6673 , in 
6674 \emph on
6675 Language in Context: Selected Essays
6676 \emph default
6677  (Oxford: Oxford University Press, 2007), pp.
6678  201–30.
6679 \end_layout
6680
6681 \begin_layout Standard
6682 これは,遠くないうちに修正されるでしょう.
6683 \end_layout
6684
6685 \begin_layout Standard
6686 現在のところ,節ごとの書誌情報出力はサポートされていません.複数の書誌情報がある場合には,\SpecialChar LyX
6687 は同じ情報を繰り返し出力してしまいます.
6688 \end_layout
6689
6690 \begin_layout Section
6691 索引
6692 \end_layout
6693
6694 \begin_layout Standard
6695 \SpecialChar LyX
6696 は,索引をXHTMLとして書きだすことができますが,現在のところ,若干の制約があります.
6697 \end_layout
6698
6699 \begin_layout Standard
6700 索引の書き出しは,
6701 \emph on
6702 ユーザーの手引き
6703 \emph default
6704 の索引の節に書かれているような手の込んだ方法を使おうとしないほうが,信頼性が保てます
6705 \begin_inset Foot
6706 status collapsed
6707
6708 \begin_layout Plain Layout
6709 ここでの主な問題は,これらの操作の際に,\SpecialChar LyX
6710 自身は何もしていないという点です.つまり,生の\SpecialChar LaTeX
6711 で入力しなくてはならないようなものをそのまま入力しているのです.
6712 \end_layout
6713
6714 \end_inset
6715
6716 .当該節の小節見出しに沿って,それらがどう処理されるかを説明しましょう.
6717 \end_layout
6718
6719 \begin_layout Itemize
6720 索引項目のグループ化(下層項目): \SpecialChar LyX
6721 はこれらをサポートしようと努めていますが,項目は「 ! 」(感嘆符の周りに空白)で分離しなくてはなりません.これは,そうしな
6722 いと数式などで使われているエスケープされた感嘆符をチェックするのが非常に難しくなるからです.
6723 \end_layout
6724
6725 \begin_layout Itemize
6726 ページ範囲: ページ範囲については,XHTMLでは意味がないので,全くサポートされません.その代わりに,引用項目のはじめと終わりの頁それぞれに,2つの索引項目が
6727 得られるだけです.
6728 \end_layout
6729
6730 \begin_layout Itemize
6731 相互参照: 相互参照のサポートはありません.\SpecialChar LyX
6732 が「|see\SpecialChar ldots
6733 」という下だりを持つ項目を検出すると,その部分はただ無視されて,残りの部分が通常の索引項目だとみなされま
6734 す.
6735 \end_layout
6736
6737 \begin_layout Itemize
6738 索引項目の整序: \SpecialChar LyX
6739 は整序順の変更をサポートします.\SpecialChar LyX
6740 は,最初に検出した「@」の前の部分を取り出して,それを整序に用い,最初の「@」の後の部分を実際の項目として取り
6741 出します.現在のところ,\SpecialChar LyX
6742 はエスケープされた「@」を取り扱わないので,電子メールアドレスを索引に使わないでください.
6743 \end_layout
6744
6745 \begin_layout Itemize
6746 索引項目のレイアウト: 項目は,テキスト様式ダイアログを使うなり,\SpecialChar LyX
6747 内で使用可能な方法を用いることで,索引項目を成形することができます.「項目|textbf」のよ
6748 うな文法はサポートされません.\SpecialChar LyX
6749 は,項目内にパイプ記号「|」を検出すると,パイプ記号とその後に続くものすべてを削除してしまいます.
6750 \end_layout
6751
6752 \begin_layout Itemize
6753 複数の索引: 複数の索引はサポートされていません.すべての項目は,ひとつの大きな索引として印字されます.索引が何度も印字されることを防ぐため,中心となる索引だけ
6754 を印字しますので,その索引は必ず置くようにしてください.
6755 \end_layout
6756
6757 \begin_layout Section
6758 記号一覧および用語集
6759 \end_layout
6760
6761 \begin_layout Standard
6762 現在のところ,用語集のサポートはありません.この機能の追加は,比較的容易だと思われますので,あなたの貢献をお待ちしております.
6763 \end_layout
6764
6765 \begin_layout Chapter
6766 \SpecialChar LyX
6767 サーバー
6768 \end_layout
6769
6770 \begin_layout Section
6771 はじめに
6772 \end_layout
6773
6774 \begin_layout Standard
6775 「\SpecialChar LyX
6776 サーバー」を使用すると,他のプログラムが,\SpecialChar LyX
6777 と通信したり,\SpecialChar LyX
6778 コマンドを実行させたり,\SpecialChar LyX
6779 の内部状態に関する情報を取得したりすることができるようになります.これは熟練し
6780 たユーザー向けの機能ですが,便利なはずです.たとえば,\SpecialChar LyX
6781 サーバーに書き込むことによって,JabRefのような書誌情報管理ソフトが,LyXに文献引用を「押し込む」こ
6782 とが可能となります.
6783 \end_layout
6784
6785 \begin_layout Section
6786 \SpecialChar LyX
6787 サーバーを開始するには
6788 \begin_inset CommandInset label
6789 LatexCommand label
6790 name "sec:サーバーを開始するには"
6791
6792 \end_inset
6793
6794
6795 \end_layout
6796
6797 \begin_layout Standard
6798 \SpecialChar LyX
6799 サーバーは,名前をつけたパイプの対を利用することで機能します.パイプは,通常
6800 \begin_inset Flex Code
6801 status collapsed
6802
6803 \begin_layout Plain Layout
6804 UserDir
6805 \end_layout
6806
6807 \end_inset
6808
6809 の下に作られ(Windowsを除く.Windowsでは,名前を付けた
6810 \emph on
6811 ローカルの
6812 \emph default
6813 パイプは
6814 \begin_inset Flex Code
6815 status collapsed
6816
6817 \begin_layout Plain Layout
6818
6819 \backslash
6820
6821 \backslash
6822 .
6823 \backslash
6824 pipe
6825 \end_layout
6826
6827 \end_inset
6828
6829 に特別なオブジェクトとして置かれます),「
6830 \begin_inset Flex Code
6831 status collapsed
6832
6833 \begin_layout Plain Layout
6834 .lyxpipe.in
6835 \end_layout
6836
6837 \end_inset
6838
6839 」および「
6840 \begin_inset Flex Code
6841 status collapsed
6842
6843 \begin_layout Plain Layout
6844 .lyxpipe.out
6845 \end_layout
6846
6847 \end_inset
6848
6849 」という名前がついています.外部プログラムは,
6850 \begin_inset Flex Code
6851 status collapsed
6852
6853 \begin_layout Plain Layout
6854 .lyxpipe.in
6855 \end_layout
6856
6857 \end_inset
6858
6859 に書き込みを行い,戻りデータを
6860 \begin_inset Flex Code
6861 status collapsed
6862
6863 \begin_layout Plain Layout
6864 .lyxpipe.out
6865 \end_layout
6866
6867 \end_inset
6868
6869 から読み出します.パイプ名の語幹は,
6870 \begin_inset Flex MenuItem
6871 status collapsed
6872
6873 \begin_layout Plain Layout
6874 ツール\SpecialChar menuseparator
6875 設定
6876 \end_layout
6877
6878 \end_inset
6879
6880 から,たとえば「
6881 \begin_inset Flex Code
6882 status collapsed
6883
6884 \begin_layout Plain Layout
6885 /home/myhome/lyxpipe
6886 \end_layout
6887
6888 \end_inset
6889
6890 」あるいはWindowsでは「
6891 \begin_inset Flex Code
6892 status collapsed
6893
6894 \begin_layout Plain Layout
6895
6896 \backslash
6897
6898 \backslash
6899 .
6900 \backslash
6901 pipe
6902 \backslash
6903 lyxpipe
6904 \end_layout
6905
6906 \end_inset
6907
6908 」などに設定することができます(ここで,lyxpipe以外の任意のファイルパス,例えば
6909 \begin_inset Flex Code
6910 status collapsed
6911
6912 \begin_layout Plain Layout
6913 "
6914 \backslash
6915
6916 \backslash
6917 .
6918 \backslash
6919 pipe
6920 \backslash
6921 my
6922 \backslash
6923 lyx
6924 \backslash
6925 pipe"
6926 \end_layout
6927
6928 \end_inset
6929
6930 なども使用できます).サーバーを開始するためには,これを
6931 \emph on
6932 手動で設定しなくてはなりません
6933 \emph default
6934
6935 \end_layout
6936
6937 \begin_layout Standard
6938 \SpecialChar LyX
6939 は,パイプを生成するに際して,「
6940 \begin_inset Flex Code
6941 status collapsed
6942
6943 \begin_layout Plain Layout
6944 .in
6945 \end_layout
6946
6947 \end_inset
6948
6949 」および「
6950 \begin_inset Flex Code
6951 status collapsed
6952
6953 \begin_layout Plain Layout
6954 .out
6955 \end_layout
6956
6957 \end_inset
6958
6959 」を付け加えます.パイプがすでに存在していれば,\SpecialChar LyX
6960 は他の\SpecialChar LyX
6961 プロセスがすでに実行中であると判断して,サーバーを開始しません.POSIX(Unix型)システムでは,なん
6962 らかの理由で,\SpecialChar LyX
6963 が終了する際に使用されていない「古い」パイプが削除されずに残ったりすると,\SpecialChar LyX
6964 はこれを削除しようとします.何らかの理由でこれが失敗した場合,手動でパイ
6965 プを削除したのちに,\SpecialChar LyX
6966 を再起動する必要があります.Windowsでは,プログラムが終了したりクラッシュしたりすると,OSがパイプを削除するので,「古い」パイプが残
6967 ることはありません.
6968 \end_layout
6969
6970 \begin_layout Standard
6971 サーバーを使用する\SpecialChar LyX
6972 プロセスを複数起動するには,それぞれのプロセスに,別のユーザーディレクトリを使用させたり,別々の
6973 \begin_inset Flex Code
6974 status collapsed
6975
6976 \begin_layout Plain Layout
6977 preferences
6978 \end_layout
6979
6980 \end_inset
6981
6982 ファイルを使用させるなど,別々の設定を使用する必要があります.
6983 \end_layout
6984
6985 \begin_layout Standard
6986 クライアントプログラムを開発しようとされているのであれば,\SpecialChar LyX
6987 サーバーからのデバッグ情報を有効にすると便利かもしれません.そのためには,Lyxを
6988 \begin_inset Flex Code
6989 status collapsed
6990
6991 \begin_layout Plain Layout
6992 lyx -dbg lyxserver
6993 \end_layout
6994
6995 \end_inset
6996
6997 として起動してください.
6998 \end_layout
6999
7000 \begin_layout Standard
7001 C++言語で書かれた完全なサンプルクライアントが,ソース頒布版の
7002 \begin_inset Newline newline
7003 \end_inset
7004
7005
7006 \begin_inset Flex Code
7007 status collapsed
7008
7009 \begin_layout Plain Layout
7010 development/lyxserver/server_monitor.cpp
7011 \end_layout
7012
7013 \end_inset
7014
7015 にあります.
7016 \end_layout
7017
7018 \begin_layout Standard
7019 もう一つの便利なツールとして,
7020 \begin_inset Flex Code
7021 status collapsed
7022
7023 \begin_layout Plain Layout
7024 src/client/lyxclient
7025 \end_layout
7026
7027 \end_inset
7028
7029 にあるコマンドラインベースのクライアントがあります.
7030 \end_layout
7031
7032 \begin_layout Section
7033 通常の通信
7034 \end_layout
7035
7036 \begin_layout Standard
7037 \SpecialChar LyX
7038 コールを発行するには,クライアントはASCIIテキスト行を入力パイプに書き込みまなくてはなりません.この行は,以下の書式を持ちます.
7039 \end_layout
7040
7041 \begin_layout Quote
7042 LYXCMD:
7043 \emph on
7044 クライアント名
7045 \emph default
7046 :
7047 \emph on
7048 関数
7049 \emph default
7050 :
7051 \emph on
7052 引数
7053 \end_layout
7054
7055 \begin_layout Description
7056 クライアント名 は,クライアントが自由に選べる名前です.これが用いられるのは,クライアントが他の要求クライアントから結果を見分けることができるように,\SpecialChar LyX
7057 が返答をす
7058 る際,クライアント名をエコーするときだけです.
7059 \end_layout
7060
7061 \begin_layout Description
7062 関数 は,\SpecialChar LyX
7063 に実行させたい関数です.これは,ミニバッファで使用するコマンドと同じです.
7064 \end_layout
7065
7066 \begin_layout Description
7067 引数 は,一部の関数のみに効力を持つオプションの引数です(たとえば,「自己挿入」LFUNは,現在のカーソル位置に引数を文章として挿入します).
7068 \end_layout
7069
7070 \begin_layout Standard
7071 \SpecialChar LyX
7072 からの返答は,出力パイプに送り出され,
7073 \end_layout
7074
7075 \begin_layout Quote
7076 INFO:
7077 \emph on
7078 クライアント名
7079 \emph default
7080 :
7081 \emph on
7082 関数
7083 \emph default
7084 :
7085 \emph on
7086 データ
7087 \end_layout
7088
7089 \begin_layout Standard
7090 の書式をしています.ここで
7091 \emph on
7092 クライアント名
7093 \emph default
7094
7095 \emph on
7096 関数
7097 \emph default
7098 は,コマンド要求からそのままエコーされますが,
7099 \emph on
7100 データ
7101 \emph default
7102 はコマンド実行の結果に依存した,多少なりとも有用な情報です.「font-state」のような一部のコマンドは,\SpecialChar LyX
7103 の内部状態に関する情報を返しますが,空のデータ応答
7104 を返すものもあります.空のデータ返答は,コマンド実行が無事終わったことを意味します.
7105 \end_layout
7106
7107 \begin_layout Standard
7108 エラーが発生した場合の\SpecialChar LyX
7109 の返答は
7110 \end_layout
7111
7112 \begin_layout Quote
7113 ERROR:
7114 \emph on
7115 クライアント名
7116 \emph default
7117 :
7118 \emph on
7119 関数
7120 \emph default
7121 :
7122 \emph on
7123 エラーメッセージ
7124 \end_layout
7125
7126 \begin_layout Standard
7127 の書式をしており,
7128 \emph on
7129 エラーメッセージ
7130 \emph default
7131 には,なぜコマンドが失敗したかの説明が入っているはずです.
7132 \end_layout
7133
7134 \begin_layout Standard
7135 (例)
7136 \end_layout
7137
7138 \begin_layout LyX-Code
7139 echo "LYXCMD:test:beginning-of-buffer:" >~/.lyxpipe.in
7140 \begin_inset Newline newline
7141 \end_inset
7142
7143 echo "LYXCMD:test:get-xy:" >~/.lyxpipe.in
7144 \begin_inset Newline newline
7145 \end_inset
7146
7147 read a <~/.lyxpipe.out
7148 \begin_inset Newline newline
7149 \end_inset
7150
7151 echo $a
7152 \end_layout
7153
7154 \begin_layout Section
7155 通知
7156 \end_layout
7157
7158 \begin_layout Standard
7159 \SpecialChar LyX
7160 は,発生しているイベントを,非同期的にクライアントに通知することができます.いまのところ,ユーザーがある
7161 \begin_inset Flex Ruby
7162 status collapsed
7163
7164 \begin_layout Plain Layout
7165
7166 \begin_inset Argument post:1
7167 status collapsed
7168
7169 \begin_layout Plain Layout
7170 キー
7171 \end_layout
7172
7173 \end_inset
7174
7175
7176 \end_layout
7177
7178 \end_inset
7179
7180 列を関数「notify」に割り当てているときのみ,\SpecialChar LyX
7181 はこの通知を行います.\SpecialChar LyX
7182 が送る文字列の書式は
7183 \end_layout
7184
7185 \begin_layout Quote
7186 \begin_inset Flex Code
7187 status collapsed
7188
7189 \begin_layout Plain Layout
7190 NOTIFY:
7191 \end_layout
7192
7193 \end_inset
7194
7195
7196 \emph on
7197 鍵列
7198 \end_layout
7199
7200 \begin_layout Standard
7201 となっていて,
7202 \emph on
7203 鍵列
7204 \emph default
7205 は,ユーザーが実際に打鍵した鍵列の印字表現になります.
7206 \end_layout
7207
7208 \begin_layout Standard
7209 この機構は,\SpecialChar LyX
7210 のコマンド群を拡張してマクロを実装するのに使用することができます.なんらかの鍵列を「notify」に割り当ててください.それから出力パイプで待機する
7211 クライアントを起動し,鍵列に応じたコマンドを読み込み,一つないし複数の\SpecialChar LyX
7212 コマンドを発行する\SpecialChar LyX
7213 要求と\SpecialChar LyX
7214 コールを使用する関数を開始するのです.
7215 \end_layout
7216
7217 \begin_layout Section
7218 単純な\SpecialChar LyX
7219 サーバープロトコル
7220 \end_layout
7221
7222 \begin_layout Standard
7223 \SpecialChar LyX
7224 は,セッション管理に使用することができる単純なプロトコルを実装しています.メッセージは,すべて
7225 \end_layout
7226
7227 \begin_layout Quote
7228 LYXSRV:
7229 \emph on
7230 クライアント名
7231 \emph default
7232 :
7233 \emph on
7234 プロトコルメッセージ
7235 \end_layout
7236
7237 \begin_layout Standard
7238 の書式をしており,
7239 \emph on
7240 プロトコルメッセージ
7241 \emph default
7242 は「hello」ないし「bye」です.クライアントから「hello」を受け取ると,\SpecialChar LyX
7243 はメッセージを聴いていることをクライアントに伝えるために返答をし,\SpecialChar LyX
7244 が終了するこ
7245 とをクライアントに伝えるのには,\SpecialChar LyX
7246 が「bye」を送信します.
7247 \end_layout
7248
7249 \begin_layout Section
7250 DVIとPDFの遡及検索
7251 \end_layout
7252
7253 \begin_layout Standard
7254 DVI/PDFビューア
7255 \begin_inset Foot
7256 status collapsed
7257
7258 \begin_layout Plain Layout
7259 PDFの遡及検索機能を提供しているビューアには,KDE/Linux上のOkularと
7260 \lang english
7261 Qpdfview on Unix
7262 \lang japanese
7263 とMac OS X上のSkim,Windows上のSumatraPDFがあります.
7264 \end_layout
7265
7266 \end_inset
7267
7268 には,遡及検索(reverse searchないしinverse searchと呼ばれます)機能を提供しているものがあります.これを使えば,DVI/PDF出力の
7269 特定の場所をクリックすることによって,\SpecialChar LyX
7270 の文書中で対応する行にカーソルを移動させることができます.これを実現するためには,ビューアは\SpecialChar LyX
7271 と情報交換を行う必要があります
7272 .これは,命名パイプ(
7273 \emph on
7274 lyxpipe
7275 \emph default
7276 )を使用するか,\SpecialChar LyX
7277 が作業ディレクトリに生成するUNIXドメインソケット(
7278 \emph on
7279 lyxsocket
7280 \emph default
7281 )を使用する(これは
7282 \begin_inset Flex Code
7283 status collapsed
7284
7285 \begin_layout Plain Layout
7286 lyxclient
7287 \end_layout
7288
7289 \end_inset
7290
7291 プログラムが\SpecialChar LyX
7292 と通信するのに使用している方法です)ことで,\SpecialChar LyX
7293 サーバを経由して実現することができます.場合によっては,ビューアと\SpecialChar LyX
7294 を橋渡しする補助スクリプトを必要とする
7295 ことがあるかもしれませんが,それ以外は,ビューアは\SpecialChar LyX
7296 と直接通信することができます.これは,選んだビューアと基本ソフトに依存します.また,必要とされるビューアの設定
7297 法と遡及検索が実際に行われる方法とにも依存します.したがって,下記では個々のビューア毎の遡及検索の設定の仕方を説明することとします.その前に,DVI/PDF出力
7298 で遡及検索を有効にするためには,一般に何が必要とされるかを説明します.
7299 \end_layout
7300
7301 \begin_layout Subsection
7302 \begin_inset CommandInset label
7303 LatexCommand label
7304 name "subsec:遡及検索"
7305
7306 \end_inset
7307
7308 自動有効化
7309 \end_layout
7310
7311 \begin_layout Standard
7312 ツールバーで
7313 \begin_inset Info
7314 type  "icon"
7315 arg   "buffer-toggle-output-sync"
7316 \end_inset
7317
7318 ボタンを押せば,ほとんどの場合,\SpecialChar LyX
7319 がすべてをうまくこなしてくれます.あるいは,
7320 \begin_inset Flex MenuItem
7321 status collapsed
7322
7323 \begin_layout Plain Layout
7324 文書\SpecialChar menuseparator
7325 設定\SpecialChar menuseparator
7326 形式
7327 \end_layout
7328
7329 \end_inset
7330
7331 メニューで
7332 \begin_inset Flex MenuItem
7333 status collapsed
7334
7335 \begin_layout Plain Layout
7336 出力と同期
7337 \end_layout
7338
7339 \end_inset
7340
7341 にチェックを入れることで有効にすることもできます.その場合,\SpecialChar LyX
7342 は,自動的に,必要なSync\SpecialChar TeX
7343 マクロ(PDFの場合)や,srcltxパッケージ(DVIの場合)を挿入し
7344 てくれます.このオプションは,
7345 \begin_inset Flex MenuItem
7346 status collapsed
7347
7348 \begin_layout Plain Layout
7349 表示/更新
7350 \end_layout
7351
7352 \end_inset
7353
7354 ツールバーからも容易にアクセスすることができます.
7355 \end_layout
7356
7357 \begin_layout Standard
7358 もし,これとは別の設定が必要な場合には,
7359 \begin_inset Flex MenuItem
7360 status collapsed
7361
7362 \begin_layout Plain Layout
7363 文書\SpecialChar menuseparator
7364 設定\SpecialChar menuseparator
7365 出力\SpecialChar menuseparator
7366 出力と同期
7367 \end_layout
7368
7369 \end_inset
7370
7371 の直下にあるドロップダウンボックスから,自製マクロを選択ないし入力することができます.
7372 \end_layout
7373
7374 \begin_layout Standard
7375 方式として
7376 \begin_inset Flex Code
7377 status collapsed
7378
7379 \begin_layout Plain Layout
7380
7381 \backslash
7382 synctex=1
7383 \end_layout
7384
7385 \end_inset
7386
7387 を用いると,gzip圧縮が有効となることに注意してください.使用しているビューアがgzip圧縮をサポートしていない場合には,代わりに
7388 \begin_inset Flex Code
7389 status collapsed
7390
7391 \begin_layout Plain Layout
7392
7393 \backslash
7394 synctex=-1
7395 \end_layout
7396
7397 \end_inset
7398
7399 を指定してください.
7400 \end_layout
7401
7402 \begin_layout Standard
7403 また,
7404 \begin_inset Flex Code
7405 status collapsed
7406
7407 \begin_layout Plain Layout
7408 srcltx
7409 \end_layout
7410
7411 \end_inset
7412
7413 パッケージや
7414 \begin_inset Flex Code
7415 status collapsed
7416
7417 \begin_layout Plain Layout
7418 src-specials
7419 \end_layout
7420
7421 \end_inset
7422
7423 を取り込むと,組版上,不具合が生じることがあるのでご注意ください.したがって,
7424 \begin_inset Flex Code
7425 status collapsed
7426
7427 \begin_layout Plain Layout
7428 srcltx
7429 \end_layout
7430
7431 \end_inset
7432
7433 パッケージや
7434 \begin_inset Flex Code
7435 status collapsed
7436
7437 \begin_layout Plain Layout
7438 src-specials
7439 \end_layout
7440
7441 \end_inset
7442
7443 を使用している場合には,最終版を組版する際には,出力同期を無効にするべきです.
7444 \end_layout
7445
7446 \begin_layout Standard
7447 自動設定でカバーされている範囲よりも,さらに特殊なものが必要な場合には,出力同期を手動で設定する仕方を述べた次節をお読みください.自動設定で事足りる場合には,自
7448 動設定・手動設定ともに必要となるビューア上の設定を述べた,第
7449 \begin_inset CommandInset ref
7450 LatexCommand ref
7451 reference "subsec:特定のビューアを設定して使うには"
7452
7453 \end_inset
7454
7455 節に進むことができます.
7456 \end_layout
7457
7458 \begin_layout Subsection
7459 手動有効化
7460 \end_layout
7461
7462 \begin_layout Standard
7463 \SpecialChar LaTeX
7464 は,遡及検索のために複数の方法を提供しています.ある方法は
7465 \begin_inset Flex Code
7466 status collapsed
7467
7468 \begin_layout Plain Layout
7469 latex/pdflatex
7470 \end_layout
7471
7472 \end_inset
7473
7474 プログラムに組み込まれており,他の方法は外部パッケージとして提供されています.どちらを選択するかは,お使いの\SpecialChar LaTeX
7475 頒布版が既に特定の方法を提供しているか(組み込みによ
7476 る方法は比較的新しいものです)と,お使いのビューアがそれに対応しているかに依存します.使用可能な方法を以下に述べます.
7477 \end_layout
7478
7479 \begin_layout Subsubsection*
7480 src-special経由のDVI組み込み検索(DVIのみ)
7481 \end_layout
7482
7483 \begin_layout Standard
7484 この方法は,DVIファイルに遡及検索に必要な情報を追加するものです.これは,かなり前の\SpecialChar LaTeX
7485 から利用可能となっており(比較的最近の\SpecialChar LaTeX
7486 頒布版はすべて対応しています),安定
7487 して動作します.これを有効にするには,
7488 \begin_inset Flex MenuItem
7489 status collapsed
7490
7491 \begin_layout Plain Layout
7492 設定\SpecialChar menuseparator
7493 ファイル処理\SpecialChar menuseparator
7494 変換子
7495 \end_layout
7496
7497 \end_inset
7498
7499
7500 \begin_inset Flex MenuItem
7501 status collapsed
7502
7503 \begin_layout Plain Layout
7504 LaTeX (plain)->DVI
7505 \end_layout
7506
7507 \end_inset
7508
7509 ないし
7510 \begin_inset Flex MenuItem
7511 status collapsed
7512
7513 \begin_layout Plain Layout
7514 LaTeX (plain)->DraftDVI
7515 \end_layout
7516
7517 \end_inset
7518
7519 変換子を
7520 \begin_inset Flex Code
7521 status collapsed
7522
7523 \begin_layout Plain Layout
7524 latex -src-specials $$i
7525 \end_layout
7526
7527 \end_inset
7528
7529 に変更します.もしこれが動作しないときは,お使いの\SpecialChar LaTeX
7530 エンジンが違うオプションを必要としていないか確認してください(頒布版によっては文法の異なることがあります).
7531 \end_layout
7532
7533 \begin_layout Subsubsection*
7534 外部パッケージ(PDFSyncおよびsrcltx)
7535 \end_layout
7536
7537 \begin_layout Standard
7538
7539 \emph on
7540 pdfsync
7541 \emph default
7542 および
7543 \emph on
7544 srcltx
7545 \emph default
7546 パッケージは,PDF出力(pdflatex経由)およびDVI出力での遡及検索を提供します.これを有効にするには,\SpecialChar LyX
7547 プリアンブルで以下のようにパッケージを読み込んで
7548 ください.
7549 \end_layout
7550
7551 \begin_layout Itemize
7552 PDFの遡及検索には
7553 \begin_inset Flex Code
7554 status collapsed
7555
7556 \begin_layout Plain Layout
7557
7558 \backslash
7559 usepackage{pdfsync}
7560 \end_layout
7561
7562 \end_inset
7563
7564
7565 \end_layout
7566
7567 \begin_layout Itemize
7568 DVIの遡及検索には
7569 \begin_inset Flex Code
7570 status collapsed
7571
7572 \begin_layout Plain Layout
7573
7574 \backslash
7575 usepackage[active]{srcltx}
7576 \end_layout
7577
7578 \end_inset
7579
7580
7581 \end_layout
7582
7583 \begin_layout Standard
7584 と書きます.DVIとPDFの両方の遡及検索を実行できるようにするためには,プリアンブルに以下の行を挿入する方法があります.
7585 \end_layout
7586
7587 \begin_layout LyX-Code
7588
7589 \backslash
7590 usepackage{ifpdf}
7591 \begin_inset Newline newline
7592 \end_inset
7593
7594
7595 \backslash
7596 ifpdf
7597 \begin_inset Newline newline
7598 \end_inset
7599
7600   
7601 \backslash
7602 usepackage{pdfsync}
7603 \begin_inset Newline newline
7604 \end_inset
7605
7606
7607 \backslash
7608 else
7609 \begin_inset Newline newline
7610 \end_inset
7611
7612   
7613 \backslash
7614 usepackage[active]{srcltx}
7615 \begin_inset Newline newline
7616 \end_inset
7617
7618
7619 \backslash
7620 fi
7621 \end_layout
7622
7623 \begin_layout Standard
7624 このようにすれば,DVIでもPDF(pdflatex)でも正しいパッケージを使いながら,ファイルを閲覧することができます.
7625 \end_layout
7626
7627 \begin_layout Standard
7628 なお,PDFSyncは,文書の出力レイアウトに干渉する可能性があるので注意してください.したがって,仕上がり文書ではPDFSyncを無効にすることをお勧めします
7629
7630 \end_layout
7631
7632 \begin_layout Subsubsection*
7633 Sync\SpecialChar TeX
7634 を使った組み込み遡及検索(DVIおよびPDF)
7635 \end_layout
7636
7637 \begin_layout Standard
7638 \begin_inset Flex Code
7639 status collapsed
7640
7641 \begin_layout Plain Layout
7642 (pdf)latex
7643 \end_layout
7644
7645 \end_inset
7646
7647 の最近のバージョンは,PDFおよびDVI両方の遡及検索を組み込みでサポートしています.このいわゆる
7648 \emph on
7649 Sync\SpecialChar TeX
7650
7651 \emph default
7652 機能は,主に,PDFSyncパッケージをpdftexプログラムへ統合したことと,それをsrc-specialsアプローチへ取り込んだことの成果です.これを使用す
7653 るためには,少なくとも\SpecialChar TeX
7654 Live 2008か最近のMik\SpecialChar TeX
7655 頒布版が必要です.また,既にSync\SpecialChar TeX
7656 サポートを提供しているPDFビューアは少ししかありません(UNIX上の
7657 OkularとQpdfview,Mac上のSkim,及びWindows上のSumatraPDFなど.詳細は次節を参照のこと).
7658 \end_layout
7659
7660 \begin_layout Standard
7661 DVI出力でSync\SpecialChar TeX
7662 を有効にするには,
7663 \begin_inset Flex MenuItem
7664 status collapsed
7665
7666 \begin_layout Plain Layout
7667 設定\SpecialChar menuseparator
7668 ファイル処理\SpecialChar menuseparator
7669 変換子
7670 \end_layout
7671
7672 \end_inset
7673
7674
7675 \begin_inset Flex Noun
7676 status collapsed
7677
7678 \begin_layout Plain Layout
7679 LaTeX (plain) -> DVI
7680 \end_layout
7681
7682 \end_inset
7683
7684 ないし
7685 \begin_inset Flex Noun
7686 status collapsed
7687
7688 \begin_layout Plain Layout
7689 LaTeX (plain) -> DraftDVI
7690 \end_layout
7691
7692 \end_inset
7693
7694 変換子を
7695 \begin_inset Flex Code
7696 status collapsed
7697
7698 \begin_layout Plain Layout
7699 latex -synctex=1 $$i
7700 \end_layout
7701
7702 \end_inset
7703
7704 に変更します.PDF出力用には,
7705 \begin_inset Flex Noun
7706 status collapsed
7707
7708 \begin_layout Plain Layout
7709 LaTeX (pdflatex) -> PDF (pdflatex)
7710 \end_layout
7711
7712 \end_inset
7713
7714 変換子を
7715 \begin_inset Flex Code
7716 status collapsed
7717
7718 \begin_layout Plain Layout
7719 pdflatex -synctex=1 $$i
7720 \end_layout
7721
7722 \end_inset
7723
7724 に変更してください.お使いのビューアが下記に記述されていない場合や,万一うまくいかない場合にはまた,ビューアをSync\SpecialChar TeX
7725 で使うのに設定を行う必要があるかどうか,お
7726 使いのビューアの取扱説明書をご確認ください.
7727 \begin_inset Foot
7728 status collapsed
7729
7730 \begin_layout Plain Layout
7731 \begin_inset Flex Code
7732 status collapsed
7733
7734 \begin_layout Plain Layout
7735 -synctex=1
7736 \end_layout
7737
7738 \end_inset
7739
7740 オプションは,gzip圧縮を有効にします.お使いのビューアがgzip圧縮をサポートしていない場合には,代わりに
7741 \begin_inset Flex Code
7742 status collapsed
7743
7744 \begin_layout Plain Layout
7745 -synctex=-1
7746 \end_layout
7747
7748 \end_inset
7749
7750 を使用してください.
7751 \end_layout
7752
7753 \end_inset
7754
7755
7756 \end_layout
7757
7758 \begin_layout Subsection
7759 特定のビューアを設定して使うには
7760 \begin_inset CommandInset label
7761 LatexCommand label
7762 name "subsec:特定のビューアを設定して使うには"
7763
7764 \end_inset
7765
7766
7767 \end_layout
7768
7769 \begin_layout Subsubsection*
7770 Xdvi(全プラットフォーム)
7771 \end_layout
7772
7773 \begin_layout Standard
7774 \SpecialChar LyX
7775 は,
7776 \begin_inset Flex Code
7777 status collapsed
7778
7779 \begin_layout Plain Layout
7780 lyxclient
7781 \end_layout
7782
7783 \end_inset
7784
7785 プログラムを自動的に使うのに必要なフックを,既に提供しているので,
7786 \begin_inset Flex Code
7787 status collapsed
7788
7789 \begin_layout Plain Layout
7790 xdvi
7791 \end_layout
7792
7793 \end_inset
7794
7795 を使用する場合には,DVI遡及検索を実行するのに他にするべきことはありません.使用中の文書を上記で述べたように設定するだけです(遡及検索は,Ctrl-クリックか
7796 ,Mac OS X上ではAlt-クリックで始動します).
7797 \end_layout
7798
7799 \begin_layout Standard
7800 しかし,何らかの理由で,\SpecialChar LyX
7801 と通信するのにソケットではなく命名パイプを使用したい場合には,
7802 \begin_inset Flex MenuItem
7803 status collapsed
7804
7805 \begin_layout Plain Layout
7806 設定\SpecialChar menuseparator
7807 ファイル処理\SpecialChar menuseparator
7808 ファイル書式
7809 \end_layout
7810
7811 \end_inset
7812
7813 のDVIビューアを
7814 \begin_inset Flex Code
7815 status collapsed
7816
7817 \begin_layout Plain Layout
7818 xdvi -editor "lyxeditor.sh %f %l"
7819 \end_layout
7820
7821 \end_inset
7822
7823
7824 \begin_inset Flex Code
7825 status collapsed
7826
7827 \begin_layout Plain Layout
7828 lyxeditor.sh
7829 \end_layout
7830
7831 \end_inset
7832
7833 は適切なスクリプト名)に変更してください
7834 \begin_inset Foot
7835 status collapsed
7836
7837 \begin_layout Plain Layout
7838 Mac OS X上では,
7839 \begin_inset Flex Code
7840 status collapsed
7841
7842 \begin_layout Plain Layout
7843 DISPLAY=:0.0 xdvi -editor "lyxeditor.sh %f %l"
7844 \end_layout
7845
7846 \end_inset
7847
7848 としなくてはなりません.
7849 \end_layout
7850
7851 \end_inset
7852
7853 .たとえば,最低限のシェルスクリプトは
7854 \end_layout
7855
7856 \begin_layout LyX-Code
7857 #!/bin/sh
7858 \begin_inset Newline newline
7859 \end_inset
7860
7861 LYXPIPE="/path/to/lyxpipe"
7862 \begin_inset Newline newline
7863 \end_inset
7864
7865 COMMAND="LYXCMD:revdvi:server-goto-file-row:$1 $2"
7866 \begin_inset Newline newline
7867 \end_inset
7868
7869 echo "$COMMAND" > "${LYXPIPE}".in || exit
7870 \begin_inset Newline newline
7871 \end_inset
7872
7873 read TMP < "${LYXPIPE}".out || exit
7874 \end_layout
7875
7876 \begin_layout Standard
7877 のようになります.ここで
7878 \begin_inset Flex Code
7879 status collapsed
7880
7881 \begin_layout Plain Layout
7882 /path/to/lyxpipe
7883 \end_layout
7884
7885 \end_inset
7886
7887 は,
7888 \begin_inset Flex MenuItem
7889 status collapsed
7890
7891 \begin_layout Plain Layout
7892 設定\SpecialChar menuseparator
7893 パス
7894 \end_layout
7895
7896 \end_inset
7897
7898 で指定したLyXServerパイプのパスを指定してください.
7899 \begin_inset Foot
7900 status collapsed
7901
7902 \begin_layout Plain Layout
7903 ソース頒布版の
7904 \begin_inset Flex Code
7905 status collapsed
7906
7907 \begin_layout Plain Layout
7908 development/tools
7909 \end_layout
7910
7911 \end_inset
7912
7913 フォルダには,ユーザが設定した
7914 \emph on
7915 lyxpipe
7916 \emph default
7917 を探し出す
7918 \begin_inset Flex Code
7919 status collapsed
7920
7921 \begin_layout Plain Layout
7922 lyxeditor
7923 \end_layout
7924
7925 \end_inset
7926
7927 スクリプトがあります.
7928 \end_layout
7929
7930 \end_inset
7931
7932
7933 \end_layout
7934
7935 \begin_layout Subsubsection*
7936 MacDviX(Mac OS X)
7937 \end_layout
7938
7939 \begin_layout Standard
7940 \begin_inset Flex Code
7941 status collapsed
7942
7943 \begin_layout Plain Layout
7944 /Applications/MacDviX_Folder/calleditor.script
7945 \end_layout
7946
7947 \end_inset
7948
7949 の終わりに
7950 \end_layout
7951
7952 \begin_layout LyX-Code
7953 /Applications/LyX.app/Contents/MacOS/lyxeditor "$2" $1
7954 \begin_inset Newline newline
7955 \end_inset
7956
7957 exit 1
7958 \end_layout
7959
7960 \begin_layout Standard
7961 という行を付け加えてください.Applicationsフォルダ以外の場所に\SpecialChar LyX
7962 を導入した場合には,それに従って上記の行を修正してください.
7963 \end_layout
7964
7965 \begin_layout Standard
7966 遡及検索は,Alt-クリック(OPTION-クリック)で始動します.
7967 \end_layout
7968
7969 \begin_layout Subsubsection*
7970 Skim(Mac OS X)
7971 \end_layout
7972
7973 \begin_layout Standard
7974 \begin_inset Flex MenuItem
7975 status collapsed
7976
7977 \begin_layout Plain Layout
7978 設定\SpecialChar menuseparator
7979 ファイル処理\SpecialChar menuseparator
7980 ファイル書式\SpecialChar menuseparator
7981 PDF (pdflatex)
7982 \end_layout
7983
7984 \end_inset
7985
7986 のビューア設定に
7987 \begin_inset Flex Code
7988 status collapsed
7989
7990 \begin_layout Plain Layout
7991 open -a Skim.app $$i
7992 \end_layout
7993
7994 \end_inset
7995
7996 と入力し,
7997 \begin_inset Flex MenuItem
7998 status collapsed
7999
8000 \begin_layout Plain Layout
8001 Skim\SpecialChar menuseparator
8002 設定\SpecialChar menuseparator
8003 Sync
8004 \end_layout
8005
8006 \end_inset
8007
8008 でLyXを選択してください.
8009 \end_layout
8010
8011 \begin_layout Standard
8012 遡及検索は,COMMAND-SHIFT-クリックで始動します.
8013 \end_layout
8014
8015 \begin_layout Subsubsection*
8016 Evince(GNOME)
8017 \end_layout
8018
8019 \begin_layout Standard
8020 Evinceでは遡及検索はそのままでは動きませんが,サードパーティのヘルパースクリプトを使用すれば,利用可能になります.詳細については,
8021 \begin_inset CommandInset href
8022 LatexCommand href
8023 target "https://wiki.lyx.org/LyX/SyncTeX"
8024 literal "false"
8025
8026 \end_inset
8027
8028 を参照してください.
8029 \end_layout
8030
8031 \begin_layout Subsubsection*
8032 Okular(KDE)
8033 \end_layout
8034
8035 \begin_layout Standard
8036 \begin_inset Flex Noun
8037 status collapsed
8038
8039 \begin_layout Plain Layout
8040 設定\SpecialChar menuseparator
8041 Okularを設定\SpecialChar menuseparator
8042 エディタ
8043 \end_layout
8044
8045 \end_inset
8046
8047 で「Lyxクライアント」をエディタとして選択してください.これによって適切なコマンド(
8048 \begin_inset Flex Code
8049 status collapsed
8050
8051 \begin_layout Plain Layout
8052 lyxclient -g %f %l
8053 \end_layout
8054
8055 \end_inset
8056
8057 )が挿入されます.
8058 \end_layout
8059
8060 \begin_layout Standard
8061 遡及検索は,SHIFT-クリックで始動します.
8062 \end_layout
8063
8064 \begin_layout Subsubsection*
8065 Qpdfview(UNIX)
8066 \end_layout
8067
8068 \begin_layout Standard
8069 Qpdfviewは,第0.3.5版以降,Sync\SpecialChar TeX
8070 をサポートしています.
8071 \begin_inset Flex MenuItem
8072 status collapsed
8073
8074 \begin_layout Plain Layout
8075 Edit\SpecialChar menuseparator
8076 Settings\SpecialChar menuseparator
8077 Behavior
8078 \end_layout
8079
8080 \end_inset
8081
8082 を開いて「Source editor」項目の入力フィールドをクリックし,
8083 \begin_inset Flex Code
8084 status collapsed
8085
8086 \begin_layout Plain Layout
8087 lyxclient -g %1 %2
8088 \end_layout
8089
8090 \end_inset
8091
8092 というコマンドを入力してください.
8093 \end_layout
8094
8095 \begin_layout Standard
8096 遡及検索は,ダブルクリックで始動します.
8097 \end_layout
8098
8099 \begin_layout Subsubsection*
8100 YAP(Windows)
8101 \end_layout
8102
8103 \begin_layout Standard
8104 yapを起動し,
8105 \begin_inset Flex MenuItem
8106 status collapsed
8107
8108 \begin_layout Plain Layout
8109 View\SpecialChar menuseparator
8110 Options
8111 \end_layout
8112
8113 \end_inset
8114
8115 メニューを選択し,「Inverse DVI Search」タブを選択します.「New\SpecialChar ldots
8116 」ボタンをクリックして開くウィンドウの「Name:」フィールドに「\SpecialChar LyX
8117
8118  Editor」(または自分の好きな名称)と入力してください.「\SpecialChar ldots
8119 」というラベルのボタンをクリックしてファイルダイアログを開き,バッチファイル
8120 \begin_inset Flex Code
8121 status collapsed
8122
8123 \begin_layout Plain Layout
8124 lyxeditor.bat
8125 \end_layout
8126
8127 \end_inset
8128
8129 (以下参照)のあるディレクトリを見つけます.
8130 \begin_inset Flex Code
8131 status collapsed
8132
8133 \begin_layout Plain Layout
8134 lyxeditor.bat
8135 \end_layout
8136
8137 \end_inset
8138
8139 を選択してプログラムの引数を
8140 \begin_inset Flex Code
8141 status collapsed
8142
8143 \begin_layout Plain Layout
8144 %f %l
8145 \end_layout
8146
8147 \end_inset
8148
8149 と指定してください.
8150 \begin_inset Flex Code
8151 status collapsed
8152
8153 \begin_layout Plain Layout
8154 lyxeditor.bat
8155 \end_layout
8156
8157 \end_inset
8158
8159 は,
8160 \emph on
8161 lyxpipe
8162 \emph default
8163 を通じて\SpecialChar LyX
8164 と通信するためのラッパとして使用され,以下のようになっています.
8165 \end_layout
8166
8167 \begin_layout LyX-Code
8168 @echo off
8169 \begin_inset Newline newline
8170 \end_inset
8171
8172 echo LYXCMD:revdvi:server-goto-file-row:%~1 %2> 
8173 \backslash
8174
8175 \backslash
8176 .
8177 \backslash
8178 pipe
8179 \backslash
8180 lyxpipe.in
8181 \begin_inset Newline newline
8182 \end_inset
8183
8184 type 
8185 \backslash
8186
8187 \backslash
8188 .
8189 \backslash
8190 pipe
8191 \backslash
8192 lyxpipe.out
8193 \end_layout
8194
8195 \begin_layout Standard
8196 \SpecialChar LyX
8197 で指定した\SpecialChar LyX
8198 Serverパイプパスが,
8199 \begin_inset Flex Code
8200 status collapsed
8201
8202 \begin_layout Plain Layout
8203
8204 \backslash
8205
8206 \backslash
8207 .
8208 \backslash
8209 pipe
8210 \backslash
8211 lyxpipe
8212 \end_layout
8213
8214 \end_inset
8215
8216 となっていることを確認するか,
8217 \begin_inset Flex Code
8218 status collapsed
8219
8220 \begin_layout Plain Layout
8221 lyxeditor.bat
8222 \end_layout
8223
8224 \end_inset
8225
8226 ラッパの方を適切に修正してください.
8227 \end_layout
8228
8229 \begin_layout Standard
8230 yapでは,遡及検索はダブルクリックで始動します.
8231 \end_layout
8232
8233 \begin_layout Subsubsection*
8234 SumatraPDF(Windows)
8235 \end_layout
8236
8237 \begin_layout Standard
8238 SumatraPDFを遡及検索で使用するためには,
8239 \begin_inset Flex MenuItem
8240 status collapsed
8241
8242 \begin_layout Plain Layout
8243 設定\SpecialChar menuseparator
8244 ファイル処理\SpecialChar menuseparator
8245 ファイル書式\SpecialChar menuseparator
8246 PDF (pdflatex)
8247 \end_layout
8248
8249 \end_inset
8250
8251 のビューア設定で
8252 \begin_inset Flex Code
8253 status collapsed
8254
8255 \begin_layout Plain Layout
8256 SumatraPDF -inverse-search "lyxeditor.bat "%f" %l"
8257 \end_layout
8258
8259 \end_inset
8260
8261
8262 \begin_inset Flex Code
8263 status collapsed
8264
8265 \begin_layout Plain Layout
8266 lyxeditor.bat
8267 \end_layout
8268
8269 \end_inset
8270
8271 は上記のラッパ)と入力してください.SumatraPDF.exeがコマンドPATHにない場合,フルファイル名を使用してください.
8272 \end_layout
8273
8274 \begin_layout Standard
8275 遡及検索はダブルクリックで始動します.
8276 \end_layout
8277
8278 \begin_layout Subsubsection*
8279 YAP(Cygwin)
8280 \end_layout
8281
8282 \begin_layout Standard
8283 まずはじめに,yapがWindows環境での既定のDVIビューアになっていることを確認してから,yapを起動し,
8284 \begin_inset Flex MenuItem
8285 status collapsed
8286
8287 \begin_layout Plain Layout
8288 View\SpecialChar menuseparator
8289 Options
8290 \end_layout
8291
8292 \end_inset
8293
8294 メニューを選択し,「Inverse DVI Search」タブを選択します.「New\SpecialChar ldots
8295 」ボタンをクリックして開くウィンドウの「Name:」フィールドに「\SpecialChar LyX
8296
8297  Editor」(または自分の好きな名称)と入力してください.「\SpecialChar ldots
8298 」というラベルのボタンをクリックしてファイルダイアログを開き,バッチファイル
8299 \begin_inset Flex Code
8300 status collapsed
8301
8302 \begin_layout Plain Layout
8303 lyxeditor.exe
8304 \end_layout
8305
8306 \end_inset
8307
8308 プログラム(これは,Cygwinでは既定で\SpecialChar LyX
8309 実行ファイルとともに導入されます)のあるディレクトリを見つけます.
8310 \begin_inset Flex Code
8311 status collapsed
8312
8313 \begin_layout Plain Layout
8314 lyxeditor.exe
8315 \end_layout
8316
8317 \end_inset
8318
8319 を選択してプログラムの引数を
8320 \begin_inset Flex Code
8321 status collapsed
8322
8323 \begin_layout Plain Layout
8324 -g %f %l
8325 \end_layout
8326
8327 \end_inset
8328
8329 と指定してください.これによって,\SpecialChar LyX
8330 との通信に
8331 \emph on
8332 lyxsocket
8333 \emph default
8334 が使用されるようになります.何らかの理由で
8335 \emph on
8336 lyxpipe
8337 \emph default
8338 を使用したい場合には,
8339 \begin_inset Flex Code
8340 status collapsed
8341
8342 \begin_layout Plain Layout
8343 -g
8344 \end_layout
8345
8346 \end_inset
8347
8348 オプションを削除して,\SpecialChar LyX
8349 設定で\SpecialChar LyX
8350 Serverパイプパスを指定することを忘れないでください.
8351 \end_layout
8352
8353 \begin_layout Standard
8354 yapでは,遡及検索はダブルクリックで始動します.
8355 \end_layout
8356
8357 \begin_layout Subsubsection*
8358 SumatraPDF(Cygwin)
8359 \end_layout
8360
8361 \begin_layout Standard
8362 SumatraPDFを遡及検索で使用するためには,
8363 \begin_inset Flex MenuItem
8364 status collapsed
8365
8366 \begin_layout Plain Layout
8367 設定\SpecialChar menuseparator
8368 ファイル処理\SpecialChar menuseparator
8369 ファイル書式\SpecialChar menuseparator
8370 PDF (pdflatex)
8371 \end_layout
8372
8373 \end_inset
8374
8375 のビューア設定で
8376 \begin_inset Flex Code
8377 status collapsed
8378
8379 \begin_layout Plain Layout
8380 SumatraPDF.sh
8381 \end_layout
8382
8383 \end_inset
8384
8385 と入力してください.ここで
8386 \begin_inset Flex Code
8387 status collapsed
8388
8389 \begin_layout Plain Layout
8390 SumatraPDF.sh
8391 \end_layout
8392
8393 \end_inset
8394
8395 は以下のようなスクリプトです(お使いのコマンドパスに置きます.
8396 \begin_inset Flex Code
8397 status collapsed
8398
8399 \begin_layout Plain Layout
8400 /usr/local/bin
8401 \end_layout
8402
8403 \end_inset
8404
8405 がもっとも良い選択肢でしょう).
8406 \end_layout
8407
8408 \begin_layout LyX-Code
8409 #!/bin/bash
8410 \begin_inset Newline newline
8411 \end_inset
8412
8413 cd $(dirname $1)
8414 \begin_inset Newline newline
8415 \end_inset
8416
8417 SumatraPDF -inverse-search "lyxeditor -g %f %l" $(basename $1)
8418 \end_layout
8419
8420 \begin_layout Standard
8421 SumatraPDFは,Windowsネイティブのアプリケーションであり,\SpecialChar LyX
8422 のCygwin版が使用するPOSIXパスを理解しないので,このラッパスクリプトが必要と
8423 なります.SumatraPDF.exeがお使いのコマンドパスにない場合は,上記のスクリプトでPOSIXのフルパスを使用してください.
8424 \begin_inset Flex Code
8425 status collapsed
8426
8427 \begin_layout Plain Layout
8428 -g
8429 \end_layout
8430
8431 \end_inset
8432
8433
8434 \emph on
8435 lyxsocket
8436 \emph default
8437 経由の通信を有効にします.ここでも,
8438 \emph on
8439 lyxpipe
8440 \emph default
8441 を使用したい場合には,
8442 \begin_inset Flex Code
8443 status collapsed
8444
8445 \begin_layout Plain Layout
8446 -g
8447 \end_layout
8448
8449 \end_inset
8450
8451 オプションを削除して,\SpecialChar LyX
8452 設定で\SpecialChar LyX
8453 Serverパイプパスを指定することを忘れないでください.
8454 \end_layout
8455
8456 \begin_layout Standard
8457 遡及検索はダブルクリックで始動します.
8458 \end_layout
8459
8460 \begin_layout Section
8461 順検索
8462 \end_layout
8463
8464 \begin_layout Standard
8465 順検索とは,名前が示すとおり,いわば遡及検索の「逆」を意味します.すなわち,\SpecialChar LyX
8466 内部から,ビューアに特定の箇所を表示させることを可能にします.(以下に説明するように
8467 )もし順検索の準備ができていれば,カーソルを\SpecialChar LyX
8468 文書の好きなところに置いて,
8469 \begin_inset Flex MenuItem
8470 status collapsed
8471
8472 \begin_layout Plain Layout
8473 移動\SpecialChar menuseparator
8474 順検索
8475 \end_layout
8476
8477 \end_inset
8478
8479 を選択すると(あるいはマウスの右クリックで表示される文脈依存メニューから
8480 \begin_inset Flex MenuItem
8481 status collapsed
8482
8483 \begin_layout Plain Layout
8484 順検索
8485 \end_layout
8486
8487 \end_inset
8488
8489 を選択してもよい),ビューアも同じ箇所に移動します.もちろん,使用しているビューアが,この機能をサポートしていなくてはなりません.
8490 \end_layout
8491
8492 \begin_layout Standard
8493 順検索を有効にするためには,生成されたPDF/DVI出力ファイルに,\SpecialChar TeX
8494 ソースに関する情報を追加する必要があります.これは,第
8495 \begin_inset CommandInset ref
8496 LatexCommand ref
8497 reference "subsec:遡及検索"
8498
8499 \end_inset
8500
8501 節に述べられている方法で実行することができます.
8502 \end_layout
8503
8504 \begin_layout Standard
8505 次に,
8506 \begin_inset Flex MenuItem
8507 status collapsed
8508
8509 \begin_layout Plain Layout
8510 ツール\SpecialChar menuseparator
8511 設定\SpecialChar menuseparator
8512 出力\SpecialChar menuseparator
8513 一般
8514 \end_layout
8515
8516 \end_inset
8517
8518 で自分の使うビューアを利用するように,\SpecialChar LyX
8519 を設定する必要があります.いくつかのビューアについては,試験済みの設定が前もって準備されており,ドロップダウンリストから選
8520 択することができます.これらの設定の何れも意にそぐわない場合には,ご自身で適切な設定を見つけ出して入力しなくてはなりません.定義文法は,以下の変数を使用します.
8521 \end_layout
8522
8523 \begin_layout Itemize
8524 \begin_inset Flex Code
8525 status collapsed
8526
8527 \begin_layout Plain Layout
8528 $$n
8529 \end_layout
8530
8531 \end_inset
8532
8533 :行番号
8534 \end_layout
8535
8536 \begin_layout Itemize
8537 \begin_inset Flex Code
8538 status collapsed
8539
8540 \begin_layout Plain Layout
8541 $$t
8542 \end_layout
8543
8544 \end_inset
8545
8546 :書き出された(一時).texファイル名(パスを除く)
8547 \end_layout
8548
8549 \begin_layout Itemize
8550 \begin_inset Flex Code
8551 status collapsed
8552
8553 \begin_layout Plain Layout
8554 $$f
8555 \end_layout
8556
8557 \end_inset
8558
8559 :書き出された(一時).texファイル名(パスを含む)
8560 \end_layout
8561
8562 \begin_layout Itemize
8563 \begin_inset Flex Code
8564 status collapsed
8565
8566 \begin_layout Plain Layout
8567 $$o
8568 \end_layout
8569
8570 \end_inset
8571
8572 :書き出された出力ファイル名(どちらが一時ディレクトリに存在するかに依存して,dviあるいはpdf).
8573 \end_layout
8574
8575 \begin_layout Standard
8576 yap・xdvi・okular
8577 \begin_inset Foot
8578 status collapsed
8579
8580 \begin_layout Plain Layout
8581 \begin_inset Flex Noun
8582 status collapsed
8583
8584 \begin_layout Plain Layout
8585 ツール\SpecialChar menuseparator
8586 設定\SpecialChar menuseparator
8587 ファイル処理\SpecialChar menuseparator
8588 ファイル形式
8589 \end_layout
8590
8591 \end_inset
8592
8593
8594 \begin_inset Flex Code
8595 status collapsed
8596
8597 \begin_layout Plain Layout
8598 okular --unique
8599 \end_layout
8600
8601 \end_inset
8602
8603 と設定すると良いでしょう.
8604 \end_layout
8605
8606 \end_inset
8607
8608 ・qpdfview・Sumatra PDF
8609 \begin_inset Foot
8610 status collapsed
8611
8612 \begin_layout Plain Layout
8613 SumatraPDFは,外部プログラムCMCDDE(
8614 \begin_inset CommandInset href
8615 LatexCommand href
8616 target "http://www.istri.fr/spip/zip/CMCDDE.zip"
8617 literal "false"
8618
8619 \end_inset
8620
8621 からダウンロード可能)を通じてDDEコマンドを使用することもできます.
8622 \end_layout
8623
8624 \end_inset
8625
8626 など,一部のビューアでしか,完全な順検索機能は提供されていないことに注意してください
8627 \begin_inset Foot
8628 status collapsed
8629
8630 \begin_layout Plain Layout
8631 SumatraPDFも,外部プログラムCMCDDEを通じて,DDEコマンドを使用することができます.CMCDDEは,
8632 \begin_inset CommandInset href
8633 LatexCommand href
8634 target "http://www.istri.fr/spip/zip/CMCDDE.zip"
8635 literal "false"
8636
8637 \end_inset
8638
8639 からダウンロードすることができます.
8640 \end_layout
8641
8642 \end_inset
8643
8644 .Evince
8645 \begin_inset Foot
8646 status collapsed
8647
8648 \begin_layout Plain Layout
8649 Evinceでの順検索は,サードパーティのヘルパースクリプトを使用すれば,利用可能になります.詳細については,
8650 \begin_inset CommandInset href
8651 LatexCommand href
8652 target "https://wiki.lyx.org/LyX/SyncTeX"
8653 literal "false"
8654
8655 \end_inset
8656
8657 を参照してください.
8658 \end_layout
8659
8660 \end_inset
8661
8662 など他のビューアには,順検索を使用するのに,追加のツールを必要とするものもあります.広く使われているPDFビューアの多く(特にAdobe Reader)は,順検
8663 索を全く提供していませんが,他の一部のビューア(たとえばxpdf)では,少なくとも,文書を読み込み直したり,ファイルの特定ページに移動することはできますので,少
8664 なくとも「近く」には移動することができます.この後者の機能は,synctexの外部コールで提供されています(事前に用意されている用例をご覧ください).
8665 \end_layout
8666
8667 \begin_layout Standard
8668 順検索は,DVI出力とPDF出力の双方で動作します.\SpecialChar LyX
8669 は,過去にあなたが使用したプレビュー形式をチェックして(つまり,一時ディレクトリにどちらの形式が存在するかを
8670 チェックして),その形式に適切な設定を選択します.
8671 \end_layout
8672
8673 \begin_layout Chapter
8674 特別な文書クラス
8675 \end_layout
8676
8677 \begin_layout Section
8678 A&Aの論文
8679 \end_layout
8680
8681 \begin_layout Standard
8682
8683 \noun on
8684 Peter Sütterlin文
8685 \end_layout
8686
8687 \begin_layout Subsection
8688 はじめに
8689 \end_layout
8690
8691 \begin_layout Standard
8692 この節では,文書クラス
8693 \family typewriter
8694 aa.cls
8695 \family default
8696 第5.01版を使用して科学雑誌
8697 \emph on
8698 Astronomy and Astrophysics
8699 \emph default
8700 (『天文学と宇宙物理学』: 
8701 \begin_inset Flex URL
8702 status collapsed
8703
8704 \begin_layout Plain Layout
8705
8706 https://www.aanda.org/
8707 \end_layout
8708
8709 \end_inset
8710
8711 )に投稿する論文を執筆するための\SpecialChar LyX
8712 の使用法を説明します.このパッケージは,FTPサイト
8713 \end_layout
8714
8715 \begin_layout Standard
8716 \align center
8717 \begin_inset VSpace medskip
8718 \end_inset
8719
8720
8721 \begin_inset Flex URL
8722 status collapsed
8723
8724 \begin_layout Plain Layout
8725
8726 ftp://ftp.edpsciences.org/pub/aa/readme.html
8727 \end_layout
8728
8729 \end_inset
8730
8731
8732 \begin_inset VSpace medskip
8733 \end_inset
8734
8735
8736 \end_layout
8737
8738 \begin_layout Standard
8739 \noindent
8740 からダウンロードすることができます.
8741 \end_layout
8742
8743 \begin_layout Standard
8744 このパッケージには取扱説明書がついていますが,本節は,本来の取扱説明書の代わりとなることを意図したものではなく,あなたの論文を正しい様式に整えるための小さな案内
8745 書であるに過ぎません.
8746 \end_layout
8747
8748 \begin_layout Standard
8749 この学術誌の出版元は,2001年1月1日以降,Springer社からEDP Science社に変更されていることにご注意ください.この出版社の変更によって,th
8750 esaurusコマンドの廃止など,スタイルファイルに若干の変更が加わっています.\SpecialChar LyX
8751 のaaクラスは,スタイルファイルの最新版(第5.01版)をサポートしています.もし
8752 古い版が装備されている場合には,更新してください.互換性のために,古い(第4版)レイアウトは,
8753 \family sans
8754 article (A&A V4)
8755 \family default
8756 として残してあります.
8757 \family typewriter
8758 $\SpecialChar LyX
8759 Dir/layouts/aapaper.layout
8760 \family default
8761 のコメントをご参照ください.
8762 \end_layout
8763
8764 \begin_layout Subsection
8765 最初の一歩
8766 \end_layout
8767
8768 \begin_layout Standard
8769 \SpecialChar LyX
8770 とともに頒布されている例示用のひな型を土台として,書き始めることをお勧めします.ひな型を使用しない場合には,以下の設定にしてください.
8771 \end_layout
8772
8773 \begin_layout Itemize
8774
8775 \family sans
8776 文書\SpecialChar menuseparator
8777 設定
8778 \family default
8779 ダイアログで
8780 \family sans
8781 article (A&A)
8782 \family default
8783 を選択してください(まぁ,これは自明ですね).
8784 \end_layout
8785
8786 \begin_layout Itemize
8787
8788 \family sans
8789 ページレイアウト
8790 \family default
8791 オプションは変更しないで,既定値のままに設定しておいてください.全体のレイアウトはマクロが行うので,何も変更してはいけません.
8792 \end_layout
8793
8794 \begin_layout Subsection
8795 へッダ部
8796 \end_layout
8797
8798 \begin_layout Standard
8799 最初に入力すべきものは,へッダ情報です.ヘッダ情報には,以下の7つの項目があり,いくつかは必須ではありません.
8800 \end_layout
8801
8802 \begin_layout Itemize
8803
8804 \family sans
8805 タイトル
8806 \family default
8807 :[必須]
8808 \end_layout
8809
8810 \begin_layout Itemize
8811
8812 \family sans
8813 サブタイトル
8814 \family default
8815 :[非必須]
8816 \end_layout
8817
8818 \begin_layout Itemize
8819
8820 \family sans
8821 著者
8822 \family default
8823 :[必須]
8824 \end_layout
8825
8826 \begin_layout Itemize
8827
8828 \family sans
8829 住所
8830 \family default
8831 :[必須]
8832 \end_layout
8833
8834 \begin_layout Itemize
8835
8836 \family sans
8837 抜き刷り
8838 \family default
8839 :[非必須]著者が複数いる場合,抜き刷りの送付を依頼するのに連絡すべき人を記す.
8840 \end_layout
8841
8842 \begin_layout Itemize
8843
8844 \family sans
8845 メール
8846 \family default
8847 :[非必須]連絡用の電子メールアドレス.
8848 \end_layout
8849
8850 \begin_layout Itemize
8851
8852 \family sans
8853 日付
8854 \family default
8855 :[必須]推奨されるフォーマットは,
8856 \family typewriter
8857 Received: <日付>; Accepted <日付>
8858 \family default
8859 です.
8860 \end_layout
8861
8862 \begin_layout Standard
8863
8864 \family typewriter
8865
8866 \backslash
8867 maketitle
8868 \family default
8869 コマンドは,へッダが終了した場所に,\SpecialChar LyX
8870 が自動的に入れてくれるので,手動で挿入する必要はありません.各項目の順序は関係ありませんが,見た目のためと,実際の文書のレイ
8871 アウトに合わせるために,上記の順序を維持しておくと良いでしょう.
8872 \end_layout
8873
8874 \begin_layout Standard
8875 現住所の付記などのために,へッダ部に脚注を挿入したい場合には,
8876 \family sans
8877 挿入\SpecialChar menuseparator
8878 脚注
8879 \family default
8880 を使用して標準の脚注を挿入してください.この場合には,\SpecialChar LyX
8881 は自動的に
8882 \family typewriter
8883
8884 \backslash
8885 thanks{}
8886 \family default
8887 を使用します.
8888 \end_layout
8889
8890 \begin_layout Standard
8891
8892 \family sans
8893 編集\SpecialChar menuseparator
8894 文字様式
8895 \family default
8896 の下に,タイトル関連の2つの差込枠があります.
8897 \end_layout
8898
8899 \begin_layout Itemize
8900
8901 \family sans
8902 所属機関
8903 \family default
8904 は,対応する著者・所属機関の対を標識するためのものです.所属機関には,
8905 \family sans
8906 住所
8907 \family default
8908 フィールドに現れるのと同じ順序で連番が振られますので,各著者に標識を付けてください.
8909 \end_layout
8910
8911 \begin_layout Itemize
8912
8913 \family sans
8914 電子メール
8915 \family default
8916 は,至急連絡用に電子メールアドレスを付するものです.
8917 \end_layout
8918
8919 \begin_layout Standard
8920 これらのトピックの他に,このマクロは,\SpecialChar LyX
8921 が対応していない,以下のもう一つの\SpecialChar LaTeX
8922 コマンドを使用します.
8923 \end_layout
8924
8925 \begin_layout Itemize
8926 複数の著者名あるいは所属名を区切るための
8927 \family typewriter
8928
8929 \backslash
8930 and
8931 \end_layout
8932
8933 \begin_layout Standard
8934 \SpecialChar LyX
8935 中に対応したコマンドを入力し,\SpecialChar LaTeX
8936 コードとしてマークしてください.用例を参照のこと.
8937 \end_layout
8938
8939 \begin_layout Subsection
8940 概要
8941 \end_layout
8942
8943 \begin_layout Standard
8944 概要は,へッダ部の直後に置きます.第5版から,概要は環境からコマンドに変更され,一段落に限るという制限が加えられました.さらに,ここにはキーワードを含む項目を入
8945 れなくてはなりません.これには,キーワード段落様式を使用してください.用例にある論文を参照してください.
8946 \end_layout
8947
8948 \begin_layout Subsection
8949 サポートされる環境
8950 \end_layout
8951
8952 \begin_layout Standard
8953 A&A論文用レイアウトでは,文章を構造化するために,以下の環境がサポートされています.
8954 \end_layout
8955
8956 \begin_layout Itemize
8957
8958 \family sans
8959 標準
8960 \end_layout
8961
8962 \begin_layout Itemize
8963
8964 \family sans
8965
8966 \end_layout
8967
8968 \begin_layout Itemize
8969
8970 \family sans
8971 小節
8972 \end_layout
8973
8974 \begin_layout Itemize
8975
8976 \family sans
8977 小々節
8978 \end_layout
8979
8980 \begin_layout Itemize
8981
8982 \family sans
8983 箇条書き(記号)
8984 \end_layout
8985
8986 \begin_layout Itemize
8987
8988 \family sans
8989 箇条書き(連番)
8990 \end_layout
8991
8992 \begin_layout Itemize
8993
8994 \family sans
8995 箇条書き(記述)
8996 \end_layout
8997
8998 \begin_layout Itemize
8999
9000 \family sans
9001 キャプション
9002 \end_layout
9003
9004 \begin_layout Itemize
9005
9006 \family sans
9007 概要
9008 \end_layout
9009
9010 \begin_layout Itemize
9011
9012 \family sans
9013 謝辞(Acknowledgment)
9014 \end_layout
9015
9016 \begin_layout Itemize
9017
9018 \family sans
9019 書誌情報
9020 \end_layout
9021
9022 \begin_layout Itemize
9023
9024 \family sans
9025 \SpecialChar LaTeX
9026
9027 \end_layout
9028
9029 \begin_layout Subsection
9030 \SpecialChar LyX
9031 でサポートされていないコマンド
9032 \end_layout
9033
9034 \begin_layout Standard
9035 \SpecialChar LyX
9036
9037 \family sans
9038 articleA&A)
9039 \family default
9040 レイアウトでは,まだサポートされていないコマンドがあります.そのうちいくつかは既に紹介しましたが,網羅するために,以下にすべて列挙しておきます.
9041 \end_layout
9042
9043 \begin_layout Itemize
9044
9045 \family typewriter
9046
9047 \backslash
9048 and
9049 \end_layout
9050
9051 \begin_layout Itemize
9052
9053 \family typewriter
9054
9055 \backslash
9056 authorrunning
9057 \end_layout
9058
9059 \begin_layout Itemize
9060
9061 \family typewriter
9062
9063 \backslash
9064 object{}
9065 \end_layout
9066
9067 \begin_layout Itemize
9068
9069 \family typewriter
9070
9071 \backslash
9072 titlerunning{}
9073 \end_layout
9074
9075 \begin_layout Standard
9076 これらのコマンドのいずれかを使いたい場合には,自分で入力する必要があります.
9077 \series bold
9078 これを\SpecialChar LaTeX
9079 コマンドとしてマークすることを忘れないで下さい.
9080 \end_layout
9081
9082 \begin_layout Subsection
9083 図フロートおよび表フロート
9084 \end_layout
9085
9086 \begin_layout Standard
9087 \SpecialChar LyX
9088 は,必要なフロート環境
9089 \family sans
9090 figure
9091 \family default
9092
9093 \family sans
9094 figure*
9095 \family default
9096
9097 \family sans
9098 table
9099 \family default
9100
9101 \family sans
9102 table*
9103 \family default
9104 をサポートしていますので,ここでは詳しい説明はしません.
9105 \emph on
9106 ユーザーの手引き
9107 \emph default
9108 をご覧ください.ただ,表は左揃えにしなくてはならないことに注意して下さい.そうするためには,表を選択して,
9109 \family sans
9110 編集\SpecialChar menuseparator
9111 段落設定
9112 \family default
9113 で配置を変更してください.
9114 \end_layout
9115
9116 \begin_layout Standard
9117 一つだけ,特別なものがあります.それは,図横にキャプションを配置する図です.この図を作成するには,以下のようにしなくてはなりません.
9118 \end_layout
9119
9120 \begin_layout Enumerate
9121
9122 \family sans
9123 挿入\SpecialChar menuseparator
9124 フロート\SpecialChar menuseparator
9125
9126 \family default
9127 を使って,幅広の図フロートを作成します.それから,図フロートのラベルを右クリックして
9128 \begin_inset Flex MenuItem
9129 status collapsed
9130
9131 \begin_layout Plain Layout
9132 設定\SpecialChar ldots
9133
9134 \end_layout
9135
9136 \end_inset
9137
9138 を選択し,それで開かれる
9139 \family sans
9140 フロートの設定
9141 \family default
9142 ダイアログで
9143 \family sans
9144 段をまたぐ
9145 \family default
9146 を有効にして,
9147 \family sans
9148 OK
9149 \family default
9150 ボタンを押します.
9151 \end_layout
9152
9153 \begin_layout Enumerate
9154 キャプション文を入力します.
9155 \end_layout
9156
9157 \begin_layout Enumerate
9158 キャプションの前にカーソルを移動し,
9159 \family sans
9160 Return
9161 \family default
9162 を押して,カーソルをキャプションの上に移動します.
9163 \end_layout
9164
9165 \begin_layout Enumerate
9166 図を挿入します.
9167 \end_layout
9168
9169 \begin_layout Enumerate
9170 カーソルを図の後ろに置いて,
9171 \family sans
9172 挿入\SpecialChar menuseparator
9173 整形\SpecialChar menuseparator
9174 水平方向の空白
9175 \family default
9176 を選択して
9177 \family sans
9178 水平方向の空白の設定
9179 \family default
9180 ダイアログを開き,
9181 \family sans
9182 空白
9183 \family default
9184 ドロップダウンから
9185 \family sans
9186 水平フィル
9187 \family default
9188 を選択して,水平フィルを挿入します.
9189 \end_layout
9190
9191 \begin_layout Enumerate
9192
9193 \family sans
9194 挿入\SpecialChar menuseparator
9195 TeXコード
9196 \family default
9197 を選択して,\SpecialChar TeX
9198 差込枠を挿入します.
9199 \end_layout
9200
9201 \begin_layout Enumerate
9202 \SpecialChar TeX
9203 差込枠中に
9204 \family typewriter
9205
9206 \backslash
9207 parbox[b]{55mm}{
9208 \family default
9209 と入力します.
9210 \series bold
9211 ここでは波括弧を閉じないでください.
9212 \end_layout
9213
9214 \begin_layout Enumerate
9215 カーソルをキャプション文の後ろに移動し,
9216 \family sans
9217 挿入\SpecialChar menuseparator
9218 TeXコード
9219 \family default
9220 を選択して,別の\SpecialChar TeX
9221 差込枠を挿入し,その中に閉じ括弧を入力します .
9222 \end_layout
9223
9224 \begin_layout Standard
9225 例示用論文中の図もご参照ください.
9226 \end_layout
9227
9228 \begin_layout Subsection
9229 Refereeレイアウト
9230 \end_layout
9231
9232 \begin_layout Standard
9233 投稿用には,論文を特別なダブルスペースレイアウトに整形しなくてはなりません.このためには,文書クラスに
9234 \family typewriter
9235 referee
9236 \family default
9237 オプションを与える必要があります.これは,
9238 \family sans
9239 文書\SpecialChar menuseparator
9240 設定
9241 \family default
9242 ダイアログの
9243 \family sans
9244 任意設定
9245 \family default
9246 クラスオプションフィールドを使って行うことができます.この欄に
9247 \family typewriter
9248 referee
9249 \family default
9250 と云う文字列を入力してください.
9251 \end_layout
9252
9253 \begin_layout Subsection
9254 例示用論文
9255 \end_layout
9256
9257 \begin_layout Standard
9258
9259 \family sans
9260 Examples
9261 \family default
9262 ディレクトリには,\SpecialChar LyX
9263 で書かれた例示用論文が収録されています.これは,元のマクロパッケージの例示用論文を\SpecialChar LyX
9264 用に直したものです.これはヒントを得るために使用したり,元の
9265  \SpecialChar LaTeX
9266 コードと\SpecialChar LyX
9267 での書き方の比較に使ったりしてください.
9268 \end_layout
9269
9270 \begin_layout Section
9271 AAS\SpecialChar TeX
9272
9273 \end_layout
9274
9275 \begin_layout Standard
9276
9277 \noun on
9278 Mike Ressler
9279 \noun default
9280
9281 \end_layout
9282
9283 \begin_layout Subsection
9284 はじめに
9285 \end_layout
9286
9287 \begin_layout Standard
9288 AAS\SpecialChar TeX
9289 は,American Astronomical Society(アメリカ天文学会)が発行するAstrophysical Journal(宇宙物理学雑誌)同
9290 誌のLettersとSupplementを含む)・Astronomical Journal(天文学雑誌)・Publications of the
9291  Astronomical Society of the Pacific(太平洋天文学会誌)三誌への電子投稿を可能にするために,同学会が作成したマクロ集です.\SpecialChar LyX
9292
9293 ,これらの文書を生成する上で,なかでも数式・引用・画像処理能力において,優れたツールであることが認識されています.\SpecialChar LyX
9294 は,同マクロ第5.0版以降を必要としており,でき
9295 ればここで説明されている第6.0版以降が望まれます.第5.0版未満の版は,\SpecialChar LaTeX
9296 2.09で使用するよう企図されているため,根本的に\SpecialChar LyX
9297 とは互換性がありません.AAS\SpecialChar TeX
9298 パッケージは
9299 ,以下のAAS\SpecialChar TeX
9300 ウェブサイトからダウンロードできるでしょう.
9301 \end_layout
9302
9303 \begin_layout Standard
9304 \align center
9305 \begin_inset VSpace medskip
9306 \end_inset
9307
9308
9309 \begin_inset Flex URL
9310 status collapsed
9311
9312 \begin_layout Plain Layout
9313
9314 https://aas.org/aastex/aastex-downloads
9315 \end_layout
9316
9317 \end_inset
9318
9319
9320 \begin_inset VSpace medskip
9321 \end_inset
9322
9323
9324 \end_layout
9325
9326 \begin_layout Standard
9327 パッケージ中には,完備したユーザーの手引きが収録されていますので,\SpecialChar LyX
9328 で論文を書き始める前に,その中身を完全に理解しておく必要があります.\SpecialChar LyX
9329 は,AASTeXの全コマン
9330 ドを理解する必然性をなくすものではなく,すべてを手入力する苦労を減らすだけです.仕上がりの\SpecialChar LaTeX
9331 文書が,論文を投稿しようとしているジャーナルの要求事項に完全に合致して
9332 いることを確認するのは,あなたの責任です.
9333 \end_layout
9334
9335 \begin_layout Subsection
9336 新しい論文を書き始める
9337 \end_layout
9338
9339 \begin_layout Standard
9340 論文を書き始めるには,AAS\SpecialChar TeX
9341 ひな型ファイルを土台に始めることを強くお勧めします.
9342 \begin_inset Flex MenuItem
9343 status collapsed
9344
9345 \begin_layout Plain Layout
9346 ファイル\SpecialChar menuseparator
9347 新規(ひな型使用)
9348 \end_layout
9349
9350 \end_inset
9351
9352 をクリックして,新しいファイル名を入力し,ひな型
9353 \family typewriter
9354 aastex6.lyx
9355 \family default
9356 を選んでください.これには,論文原稿のほとんどに共通して使われるフィールドが書き込まれています.書き込まれている文字列(括弧
9357 \family typewriter
9358 <>
9359 \family default
9360 を含む)を正しい情報で上書きしてください.AAS\SpecialChar TeX
9361 コマンド・AAS\SpecialChar TeX
9362 環境の多くは,\SpecialChar LyX
9363 中で直接実行することができますが,できないものもあります.このようなコマンドは,直
9364 接La\SpecialChar TeX
9365 コードを入力して,それを\SpecialChar TeX
9366 コードとしてマークしなければなりません.このようなコマンドは,\SpecialChar TeX
9367 コードあるいはEvil Red Text(邪悪な赤い文)と呼ばれます
9368 .AAS\SpecialChar TeX
9369 文書に必要とされる \SpecialChar TeX
9370 コードを最小にするようには努力しました.
9371 \end_layout
9372
9373 \begin_layout Subsection
9374 論文を書き終わったら
9375 \end_layout
9376
9377 \begin_layout Standard
9378 論文を満足する水準で書き終え,プレビューや印刷が正しく為されているとしても,まだ学術誌に投稿する前にしなくてはならない「後処理」が残されています.
9379 \end_layout
9380
9381 \begin_layout Enumerate
9382 論文を \SpecialChar LaTeX
9383 ファイルとして書き出します(
9384 \family sans
9385 ファイル\SpecialChar menuseparator
9386 書き出し\SpecialChar menuseparator
9387 LaTeX
9388 \family default
9389 ).
9390 \end_layout
9391
9392 \begin_layout Enumerate
9393 出力した
9394 \family typewriter
9395 .tex
9396 \family default
9397 ファイルを好きなエディタで編集します.
9398 \end_layout
9399
9400 \begin_deeper
9401 \begin_layout Enumerate
9402
9403 \family typewriter
9404
9405 \backslash
9406 documentclass
9407 \family default
9408 コマンドよりも前のコメント行を削除します.
9409 \end_layout
9410
9411 \begin_layout Enumerate
9412
9413 \family typewriter
9414
9415 \backslash
9416 usepackage...{fontenc}
9417 \family default
9418 という行があれば(通常は
9419 \family typewriter
9420
9421 \backslash
9422 documentclass
9423 \family default
9424 の直後にあります)削除します.また,
9425 \family typewriter
9426
9427 \backslash
9428 secnumdepth
9429 \family default
9430 行があれば,これも削除します.
9431 \end_layout
9432
9433 \begin_layout Enumerate
9434 \SpecialChar LaTeX
9435 プリアンブル中に意図的に置いたコマンド(
9436 \family typewriter
9437 .tex
9438 \family default
9439 ファイル中,「User specified \SpecialChar LaTeX
9440  commands」というコメントの直後にあります)を除いて,
9441 \family typewriter
9442
9443 \backslash
9444 makeatletter
9445 \family default
9446
9447 \family typewriter
9448
9449 \backslash
9450 makeatother
9451 \family default
9452 の間のもの(これらのコマンドを含む)をすべて削除します.
9453 \end_layout
9454
9455 \end_deeper
9456 \begin_layout Enumerate
9457 編集後のファイルを \SpecialChar LaTeX
9458 にかけて,正しく処理されることを確認します.
9459 \end_layout
9460
9461 \begin_layout Enumerate
9462 学術誌の要求事項を再読して,ファイル名と書式が正しいことを確認します.
9463 \end_layout
9464
9465 \begin_layout Enumerate
9466 投稿してください.
9467 \end_layout
9468
9469 \begin_layout Subsection
9470 特定のコマンドに関するコメント
9471 \end_layout
9472
9473 \begin_layout Standard
9474 AAS\SpecialChar TeX
9475 ユーザーの手引き(
9476 \family typewriter
9477 aasguide.tex
9478 \family default
9479 )に,各AAS\SpecialChar TeX
9480 コマンドの詳しい説明があるので,ここでは,各コマンドの使用法の詳細な説明は行いません.そこで,ここではユーザーの手引きに現れるとおりに一覧を列挙し
9481 て,必要なところだけコメントを加えることにしましょう.
9482 \end_layout
9483
9484 \begin_layout Subsubsection
9485 期待通りに動作するもの
9486 \end_layout
9487
9488 \begin_layout Standard
9489 これらは期待通りに動作するので,ここでは列挙するだけにして,コマンドの説明されている節を挙げておきます.
9490 \family typewriter
9491
9492 \backslash
9493 documentclass
9494 \family default
9495  (2.1.1)・
9496 \family typewriter
9497
9498 \backslash
9499 begin{document}
9500 \family default
9501  (2.2)・
9502 \family typewriter
9503
9504 \backslash
9505 title
9506 \family default
9507  (2.3)・
9508 \family typewriter
9509
9510 \backslash
9511 author
9512 \family default
9513  (2.3)・
9514 \family typewriter
9515
9516 \backslash
9517 affil
9518 \family default
9519  (2.3)・
9520 \family typewriter
9521
9522 \backslash
9523 abstract
9524 \family default
9525  (2.4)・
9526 \family typewriter
9527
9528 \backslash
9529 keywords
9530 \family default
9531  (2.5)・
9532 \family typewriter
9533
9534 \backslash
9535 section
9536 \family default
9537  (2.7)・
9538 \family typewriter
9539
9540 \backslash
9541 subsection
9542 \family default
9543  (2.7)・
9544 \family typewriter
9545
9546 \backslash
9547 subsubsection
9548 \family default
9549  (2.7)・
9550 \family typewriter
9551
9552 \backslash
9553 paragraph
9554 \family default
9555  (2.7)・
9556 \family typewriter
9557
9558 \backslash
9559 facility
9560 \family default
9561  (2.10)・
9562 \family typewriter
9563
9564 \backslash
9565 begin{displaymath}
9566 \family default
9567  (2.12)・
9568 \family typewriter
9569
9570 \backslash
9571 begin{equation}
9572 \family default
9573  (2.12)・
9574 \family typewriter
9575
9576 \backslash
9577 begin{eqnarray}
9578 \family default
9579  (2.12)・
9580 \family typewriter
9581
9582 \backslash
9583 begin{mathletters}
9584 \family default
9585  (2.12)・
9586 \family typewriter
9587
9588 \backslash
9589 begin{thebibliography}
9590 \family default
9591  (2.13.1)・
9592 \family typewriter
9593
9594 \backslash
9595 bibitem
9596 \family default
9597  (2.13.2)・全引用コマンドとその派生(2.13.2)・一般的なgraphicx図コマンド(2.14.1)・
9598 \family typewriter
9599
9600 \backslash
9601 begin{table}
9602 \family default
9603  (2.15.4)・
9604 \family typewriter
9605
9606 \backslash
9607 begin{tabular}
9608 \family default
9609  (2.15.4)・
9610 \family typewriter
9611
9612 \backslash
9613 caption
9614 \family default
9615  (2.15.4)・
9616 \family typewriter
9617
9618 \backslash
9619 label
9620 \family default
9621  (他にもあるが特に2.15.4)・
9622 \family typewriter
9623
9624 \backslash
9625 tablerefs
9626 \family default
9627  (2.15.5)・
9628 \family typewriter
9629
9630 \backslash
9631 tablecomments
9632 \family default
9633  (2.15.5)・
9634 \family typewriter
9635
9636 \backslash
9637 url
9638 \family default
9639  (2.17.4)・
9640 \family typewriter
9641
9642 \backslash
9643 end{document}
9644 \family default
9645  (2.18).
9646 \end_layout
9647
9648 \begin_layout Standard
9649 以下のスタイルオプションも正しく動作します.
9650 \family typewriter
9651 longabstract
9652 \family default
9653  (2.4)・
9654 \family typewriter
9655 preprint
9656 \family default
9657  (3.2.1)・
9658 \family typewriter
9659 preprint2
9660 \family default
9661  (3.2.2)・
9662 \family typewriter
9663 eqsecnum
9664 \family default
9665  (3.3)・
9666 \family typewriter
9667 flushrt
9668 \family default
9669  (3.4).これらは,
9670 \begin_inset Flex MenuItem
9671 status collapsed
9672
9673 \begin_layout Plain Layout
9674 文書\SpecialChar menuseparator
9675 設定
9676 \end_layout
9677
9678 \end_inset
9679
9680 にある,
9681 \family sans
9682 クラスオプション
9683 \family default
9684
9685 \family sans
9686 任意設定
9687 \family default
9688 ボックスに入力してください.
9689 \end_layout
9690
9691 \begin_layout Subsubsection
9692 動作するが,若干説明が必要なもの
9693 \end_layout
9694
9695 \begin_layout Standard
9696 以下のコマンドは動作しますが,若干の説明が必要です.
9697 \end_layout
9698
9699 \begin_layout Itemize
9700 以下の項目は,学術誌の編集者向けに取ってあるものですが,どうしても必要ならば,\SpecialChar LaTeX
9701 プリアンブルに入れることができます.
9702 \family typewriter
9703
9704 \backslash
9705 received
9706 \family default
9707
9708 \family typewriter
9709
9710 \backslash
9711 revised
9712 \family default
9713
9714 \family typewriter
9715
9716 \backslash
9717 accepted
9718 \family default
9719
9720 \family typewriter
9721
9722 \backslash
9723 ccc
9724 \family default
9725
9726 \family typewriter
9727 cpright
9728 \family default
9729 (すべて 2.1.3).
9730 \end_layout
9731
9732 \begin_layout Itemize
9733 以下の項目は,\SpecialChar LaTeX
9734 のプリアンブルに置くことができるもので,これらは,ひな型ファイルには,空の引数と共に含まれています.
9735 \family typewriter
9736
9737 \backslash
9738 slugcomment
9739 \family default
9740 (2.1.4)・
9741 \family typewriter
9742
9743 \backslash
9744 shorttitle
9745 \family default
9746 (2.1.5)・
9747 \family typewriter
9748
9749 \backslash
9750 shortauthors
9751 \family default
9752 (2.1.5).
9753 \end_layout
9754
9755 \begin_layout Itemize
9756
9757 \family typewriter
9758
9759 \backslash
9760 email
9761 \family default
9762 (2.3)―「単独で」使うことはできますが,段落の途中で使うことはできません.埋め込む必要がある場合には,\SpecialChar TeX
9763 コードを使用してください.
9764 \end_layout
9765
9766 \begin_layout Itemize
9767
9768 \family typewriter
9769
9770 \backslash
9771 and
9772 \family default
9773 (2.3)―後ろに{}が付記されます.これはエラーの原因にはなりません.
9774 \end_layout
9775
9776 \begin_layout Itemize
9777
9778 \family typewriter
9779
9780 \backslash
9781 notetoeditor
9782 \family default
9783 (2.6)―「単独で」使うことはできますが,段落の途中で使うことはできません.埋め込む必要がある場合には,\SpecialChar TeX
9784 コードを使用してください.
9785 \end_layout
9786
9787 \begin_layout Itemize
9788
9789 \family typewriter
9790
9791 \backslash
9792 placetable
9793 \family default
9794 (2.8)―相互参照用タグを挿入することはできません.手動でタグ名を入力する必要があります.
9795 \end_layout
9796
9797 \begin_layout Itemize
9798
9799 \family typewriter
9800
9801 \backslash
9802 placefigure
9803 \family default
9804 (2.8)—
9805 \family typewriter
9806
9807 \backslash
9808 placetable
9809 \family default
9810 と同様.
9811 \end_layout
9812
9813 \begin_layout Itemize
9814
9815 \family typewriter
9816
9817 \backslash
9818 acknowledgements
9819 \family default
9820 (2.9)―後ろに{}が付記されます.これはエラーの原因にはなりません.
9821 \end_layout
9822
9823 \begin_layout Itemize
9824
9825 \family typewriter
9826
9827 \backslash
9828 appendix
9829 \family default
9830 (2.11)―後ろに{}が付記されます.これはエラーの原因にはなりません.
9831 \end_layout
9832
9833 \begin_layout Itemize
9834
9835 \family typewriter
9836
9837 \backslash
9838 figcaption
9839 \family default
9840 (2.14.2)―文章のはじめにカーソルを置いて
9841 \begin_inset Flex MenuItem
9842 status collapsed
9843
9844 \begin_layout Plain Layout
9845 挿入\SpecialChar menuseparator
9846 短縮タイトル
9847 \end_layout
9848
9849 \end_inset
9850
9851 を選択すれば,非必須のファイル名引数を挿入することができます.「短縮タイトル」とありますが,
9852 \family typewriter
9853
9854 \backslash
9855 figcaption
9856 \family default
9857 が必要とする型の非必須引数を挿入します.望むらくはいつの日か改名されることでしょう.
9858 \end_layout
9859
9860 \begin_layout Itemize
9861
9862 \family typewriter
9863
9864 \backslash
9865 objectname
9866 \family default
9867 (2.17.1)―非必須パラメータとしてカタログIDを取る以外は,
9868 \family typewriter
9869
9870 \backslash
9871 figcaption
9872 \family default
9873 と同様.
9874 \end_layout
9875
9876 \begin_layout Itemize
9877
9878 \family typewriter
9879
9880 \backslash
9881 dataset
9882 \family default
9883 (2.17.1)―非必須パラメータとしてカタログIDを取る以外は,
9884 \family typewriter
9885
9886 \backslash
9887 figcaption
9888 \family default
9889 と同様.
9890 \end_layout
9891
9892 \begin_layout Subsubsection
9893 実装されていないため,\SpecialChar TeX
9894 コードを使用するもの
9895 \end_layout
9896
9897 \begin_layout Standard
9898
9899 \family typewriter
9900
9901 \backslash
9902 eqnum
9903 \family default
9904 (2.12)・
9905 \family typewriter
9906
9907 \backslash
9908 setcounter{equation}
9909 \family default
9910 (2.12)・学術誌名略語(2.12.4)・
9911 \family typewriter
9912
9913 \backslash
9914 figurenum
9915 \family default
9916 (2.14.1)・
9917 \family typewriter
9918
9919 \backslash
9920 epsscale
9921 \family default
9922 (2.14.1)・
9923 \family typewriter
9924
9925 \backslash
9926 plotone
9927 \family default
9928 (2.14.1)・
9929 \family typewriter
9930
9931 \backslash
9932 plottwo
9933 \family default
9934 (2.14.1)・
9935 \family typewriter
9936
9937 \backslash
9938 tablenum
9939 \family default
9940 (2.15.4)・
9941 \family typewriter
9942
9943 \backslash
9944 tableline
9945 \family default
9946 (2.15.4:入れたい場所の後ろに,左側セルの最初の要素として挿入する.表中では,\SpecialChar LyX
9947 の方法は使わないでください)・
9948 \family typewriter
9949
9950 \backslash
9951 tablenotemark
9952 \family default
9953 (2.15.5)・
9954 \family typewriter
9955
9956 \backslash
9957 tablenotetext
9958 \family default
9959 (2.15.5)・補遺(2.17)の大半
9960 \family typewriter
9961
9962 \backslash
9963 objectname
9964 \family default
9965
9966 \family typewriter
9967
9968 \backslash
9969 dataset
9970 \family default
9971
9972 \family typewriter
9973
9974 \backslash
9975 url
9976 \family default
9977
9978 \family typewriter
9979
9980 \backslash
9981 email
9982 \family default
9983 を除く.上記参照)・
9984 \family typewriter
9985
9986 \backslash
9987 singlespace
9988 \family default
9989 (3.1)・
9990 \family typewriter
9991
9992 \backslash
9993 doublespace
9994 \family default
9995 (3.1)・
9996 \family typewriter
9997
9998 \backslash
9999 onecolumn
10000 \family default
10001 (3.2)・
10002 \family typewriter
10003
10004 \backslash
10005 twocolumn
10006 \family default
10007 (3.2)
10008 \end_layout
10009
10010 \begin_layout Subsubsection
10011 実装できないもの
10012 \end_layout
10013
10014 \begin_layout Standard
10015 references(2.12.3)環境とdeluxetable(2.14)環境は,少なくとも意味のあるような形で実装することができないので,無視してください.もし,
10016 絶対に,どうしても,deluxetableを使う必要があるならば,テキストエディタで別ファイルとして編集し,
10017 \begin_inset Flex MenuItem
10018 status collapsed
10019
10020 \begin_layout Plain Layout
10021 挿入\SpecialChar menuseparator
10022 ファイル
10023 \begin_inset Formula $\text{\textipa{}}$
10024 \end_inset
10025
10026 \SpecialChar menuseparator
10027 子文書
10028 \end_layout
10029
10030 \end_inset
10031
10032 を使用して,\SpecialChar LyX
10033 ファイルに読み込むことを推奨します.この実例は,
10034 \family typewriter
10035 aas_sample.lyx
10036 \family default
10037 ファイルをご参照ください.
10038 \end_layout
10039
10040 \begin_layout Subsection
10041 FAQとヒントと技とその他の考察
10042 \end_layout
10043
10044 \begin_layout Subsubsection
10045 \SpecialChar LyX
10046 をAAS\SpecialChar TeX
10047 と協調させる
10048 \end_layout
10049
10050 \begin_layout Standard
10051 \SpecialChar LyX
10052 に,新しいレイアウトと文書クラスを認識させるには若干コツが要ります.もしうまく行かなかったら,次のようにしてみてください.
10053 \end_layout
10054
10055 \begin_layout Enumerate
10056 \SpecialChar LaTeX
10057 が,AAS\SpecialChar TeX
10058 を検出できることを確認してください.AAS\SpecialChar TeX
10059 頒布版に含まれる
10060 \family typewriter
10061 sample.tex
10062 \family default
10063 (あるいは
10064 \family typewriter
10065 table.tex
10066 \family default
10067 でも可)を,\SpecialChar LaTeX
10068 やAAS\SpecialChar TeX
10069 とまったく関係のないディレクトリにコピーして,
10070 \family typewriter
10071 sample.tex
10072 \family default
10073 を\SpecialChar LaTeX
10074 にかけてください.
10075 \end_layout
10076
10077 \begin_layout Enumerate
10078
10079 \family typewriter
10080 aastex.layout
10081 \family default
10082 が,\SpecialChar LyX
10083
10084 \family typewriter
10085 layouts
10086 \family default
10087 フォルダにあることを確認してください.
10088 \end_layout
10089
10090 \begin_layout Enumerate
10091 \SpecialChar LyX
10092 中から
10093 \family sans
10094 ツール\SpecialChar menuseparator
10095 環境構成
10096 \family default
10097 を再度実行し,\SpecialChar LyX
10098 を再起動してください.
10099 \end_layout
10100
10101 \begin_layout Enumerate
10102 ひな型ではなく,通常の新規ファイルを開いてください.AAS\SpecialChar TeX
10103 が,
10104 \family sans
10105 文書\SpecialChar menuseparator
10106 設定
10107 \family default
10108 のクラス一覧に表示されていますか?
10109 \end_layout
10110
10111 \begin_layout Standard
10112 既存のAAS\SpecialChar TeX
10113 文書を処理する際に,AAS\SpecialChar TeX
10114 レイアウトを見つけられないとか,「タイトルレイアウトと通常のレイアウトを混在させないでください」といった警告が出るようであ
10115 れば,正しい導入が行われていません.
10116 \end_layout
10117
10118 \begin_layout Subsubsection
10119 表を処理する際の\SpecialChar LaTeX
10120 エラー
10121 \end_layout
10122
10123 \begin_layout Standard
10124 既定では,\SpecialChar LyX
10125 は,表のキャプションやタイトルを中央揃えにしようと試みます.これはAAS\SpecialChar TeX
10126 と悪い相互干渉を発生させるようですので,キャプションやタイトルのどこかをクリッ
10127 クして,
10128 \family sans
10129 編集\SpecialChar menuseparator
10130 段落設定
10131 \family default
10132 を選択し,
10133 \family sans
10134 配置
10135 \family default
10136
10137 \family sans
10138 両端揃え
10139 \family default
10140 に設定してください.私のところではこれで解決しました.
10141 \end_layout
10142
10143 \begin_layout Subsubsection
10144 書誌情報
10145 \end_layout
10146
10147 \begin_layout Standard
10148 若干の注意があります.(1)文献項目の本文中の空白取りが少しおかしくなることがあるようです.書誌情報を入力する際には,最後の著者と,著作年を入れる括弧の間にスペ
10149 ースを
10150 \emph on
10151 入れない
10152 \emph default
10153 ようにしてください.たとえば,
10154 \family typewriter
10155 Ressler(1992)
10156 \family default
10157 はいいですが,
10158 \family typewriter
10159 Ressler (1992)
10160 \family default
10161 ではだめです.(2)書誌情報の入力の仕方は,必ずしも自明ではありません.もっとも簡単な方法は,文書の最後に,最初の書誌情報をまず書き込み,それを
10162 \family sans
10163 書誌情報
10164 \family default
10165 環境としてマークすることです.すると,入力したものの前に,小さな灰色のボックスが現れます.このボックスをクリックして,残りの情報を入力してください.新しい書誌情
10166 報を追加するには,既存の書誌情報の後ろでリターンを押します.すると,新しいボックスの付いた新規行が出てくるので,後は同様にしてください.
10167 \end_layout
10168
10169 \begin_layout Subsubsection
10170 EPSファイルの読み込み
10171 \end_layout
10172
10173 \begin_layout Standard
10174 AAS\SpecialChar TeX
10175 には,自前の図関連コマンド(たとえば
10176 \family typewriter
10177
10178 \backslash
10179 plotone
10180 \family default
10181 )がありますが,私は(既定のgraphicxを使った)\SpecialChar LaTeX
10182 の標準図コマンドの方がずっと好きです.望めば,図フロートボックスに,\SpecialChar TeX
10183 コードで
10184 \family typewriter
10185
10186 \backslash
10187 plotone
10188 \family default
10189 等のコマンドを挿入することはできますが,私には正しいレイアウトを得ることができた試しがありません.標準の画像コマンドを使えば,\SpecialChar LyX
10190 は,
10191 \family typewriter
10192
10193 \backslash
10194 usepackage{graphics}
10195 \family default
10196 コマンドを\SpecialChar LaTeX
10197 プリアンブルに挿入し,図を\SpecialChar LaTeX2e
10198 の標準的な方法で取り扱って,文章の中にちりばめます.現在,ApJは,ちょうどこのようにして作成した図を受け入れていますが,A
10199 Jはまだ「すべてを末尾に積み上げる」方法を使用しているかもしれません.
10200 \end_layout
10201
10202 \begin_layout Subsubsection
10203 可能だったが,実装しなかったもの
10204 \end_layout
10205
10206 \begin_layout Standard
10207 「素敵な」ものの中には,実装することも可能だったけれども,あえて実装しなかったものがあります.たとえば,紙の原稿ではダブルスペースであったとしても,\SpecialChar LyX
10208 ウィンドウ中
10209 で,文章をダブルスペースにする意味はないと考えました.また,preprint様式とpreprint2様式を,独立したレイアウトにすることもしませんでした.いずれ
10210 にしても,執筆時間のほとんどを,平の原稿モードで使うのがほとんどですから,これらの機能でディスクスペースを消費しないことにしました.
10211 \end_layout
10212
10213 \begin_layout Subsection
10214 最後に
10215 \end_layout
10216
10217 \begin_layout Standard
10218 これまでに進んできた道のりは,長い人も短い人もいることでしょう.私には,ApJとAJに発表した論文がありますが,その努力の98
10219 \begin_inset space \thinspace{}
10220 \end_inset
10221
10222 %は\SpecialChar LyX
10223 上で為されました.残りの2
10224 \begin_inset space \thinspace{}
10225 \end_inset
10226
10227 %が,\SpecialChar LaTeX
10228 での後処理と若干の後片付けです.投稿の過程では何のトラブルもなく,これらの学術誌が通常の投稿原稿と違う点に気づくことはなかったでしょう.ですから,がんばっ
10229 て発表してください!
10230 \end_layout
10231
10232 \begin_layout Section
10233 AMS \SpecialChar LaTeX
10234
10235 \end_layout
10236
10237 \begin_layout Standard
10238
10239 \noun on
10240 David Johnson
10241 \noun default
10242 文 
10243 \noun on
10244 Richard Heck
10245 \noun default
10246 改訂
10247 \begin_inset VSpace bigskip
10248 \end_inset
10249
10250
10251 \end_layout
10252
10253 \begin_layout Standard
10254 AMS \SpecialChar LaTeX
10255 レイアウトは,American Mathematical Society(アメリカ数学会)の刊行物に投稿する数学論文用のスタイルです.レイアウトは,特定
10256 の学術誌向けに仕立てられてはいませんが,簡単にそうすることができます.各学術誌毎の指示については,AMSの説明書をご参照ください(通常は,\SpecialChar TeX
10257 出力中の一行を変更する
10258 必要があるだけです).AMSの説明書は,ウェブWeb上の
10259 \begin_inset Flex URL
10260 status open
10261
10262 \begin_layout Plain Layout
10263
10264 http://www.ams.org
10265 \end_layout
10266
10267 \end_inset
10268
10269 か,FTPで
10270 \begin_inset Flex URL
10271 status open
10272
10273 \begin_layout Plain Layout
10274
10275 ftp://ftp.ams.org/pub/tex/amslatex/
10276 \end_layout
10277
10278 \end_inset
10279
10280 から入手することができます.これらのレイアウトは,数学的な文章を書くのであれば,どんなときでも適切かつ有用であるはずです.
10281 \end_layout
10282
10283 \begin_layout Standard
10284 基本となるAMS \SpecialChar LaTeX
10285 レイアウトには,以下の二つがあります.
10286 \end_layout
10287
10288 \begin_layout Itemize
10289 amsart:標準のAMS article書式.
10290 \end_layout
10291
10292 \begin_layout Itemize
10293 amsbook:標準のAMS book(実際はモノグラフ)書式.
10294 \end_layout
10295
10296 \begin_layout Standard
10297 これらのレイアウトには,それ自身では,AMSクラスを使用するのに必要最低限のものしか含まれていません.特に,定理や補題などを設定するのに使用される「theore
10298 m」環境は,何一つ含まれていません.これらは,代わりに
10299 \begin_inset Flex Code
10300 status collapsed
10301
10302 \begin_layout Plain Layout
10303 定理(AMS)
10304 \end_layout
10305
10306 \end_inset
10307
10308 モジュールに収録されており,AMSクラスのいずれかを選択すると,このモジュールが既定で読み込まれるようになっています(これは別のクラスでも使用することができ,別
10309 のものに変えたいときは取り除くこともできます).少し使用頻度の低いものとしては,
10310 \begin_inset Flex Code
10311 status collapsed
10312
10313 \begin_layout Plain Layout
10314 定理(AMS拡張)
10315 \end_layout
10316
10317 \end_inset
10318
10319 モジュールがあり,これは手動で読み込む必要があります.
10320 \end_layout
10321
10322 \begin_layout Standard
10323 既定では,定理類は,文書を通して連番が振られますが,これは
10324 \begin_inset Flex Code
10325 status collapsed
10326
10327 \begin_layout Plain Layout
10328 定理(節毎連番)
10329 \end_layout
10330
10331 \end_inset
10332
10333 モジュールを読み込めば変更することができ,
10334 \begin_inset Flex Code
10335 status collapsed
10336
10337 \begin_layout Plain Layout
10338 book (AMS)
10339 \end_layout
10340
10341 \end_inset
10342
10343 を使用している場合には
10344 \begin_inset Flex Code
10345 status collapsed
10346
10347 \begin_layout Plain Layout
10348 定理(章毎連番)
10349 \end_layout
10350
10351 \end_inset
10352
10353 を用いても変更することができます.これらを用いると,出力は
10354 \begin_inset Formula $n.m$
10355 \end_inset
10356
10357 のようになり,最初の数字は節番号(または章番号),次の数字はそれまで同節内(章内)に現れた出力の全数を表します.大半の環境は,連番なしでも用いることができます.
10358 連番なしのものは,環境名の後ろにアスタリスクを付けたもので表されます.連番なしの出力
10359 \emph on
10360 のみ
10361 \emph default
10362 が欲しい場合には,
10363 \begin_inset Flex Code
10364 status collapsed
10365
10366 \begin_layout Plain Layout
10367 定理(連番なし)
10368 \end_layout
10369
10370 \end_inset
10371
10372 モジュールを用います.
10373 \end_layout
10374
10375 \begin_layout Standard
10376 これらのモジュールは,AMSクラスで使用する
10377 \emph on
10378 必要はない
10379 \emph default
10380 ことに注意してください.
10381 \begin_inset Flex Code
10382 status collapsed
10383
10384 \begin_layout Plain Layout
10385 定理(AMS)
10386 \end_layout
10387
10388 \end_inset
10389
10390 モジュールや上述の他のモジュールは,他のクラス,たとえば
10391 \begin_inset Flex Code
10392 status collapsed
10393
10394 \begin_layout Plain Layout
10395 article
10396 \end_layout
10397
10398 \end_inset
10399
10400
10401 \begin_inset Flex Code
10402 status collapsed
10403
10404 \begin_layout Plain Layout
10405 report
10406 \end_layout
10407
10408 \end_inset
10409
10410
10411 \begin_inset Flex Code
10412 status collapsed
10413
10414 \begin_layout Plain Layout
10415 book (KOMA-script)
10416 \end_layout
10417
10418 \end_inset
10419
10420 などで問題なく使用することができます.
10421 \end_layout
10422
10423 \begin_layout Subsection
10424 これらのレイアウトが提供するもの
10425 \end_layout
10426
10427 \begin_layout Standard
10428 これらのレイアウトが提供している環境を列挙すると,長い一覧となります.AMS-\SpecialChar LaTeX
10429 では,実のところ,「theorem」環境の派生型を際限なく定義していくことが可能で
10430 す.しかし,AMSは,\SpecialChar LyX
10431 で利用可能になっている環境のみを使用することを推奨しています.
10432 \end_layout
10433
10434 \begin_layout Standard
10435 \begin_inset Flex Code
10436 status collapsed
10437
10438 \begin_layout Plain Layout
10439 article (AMS)
10440 \end_layout
10441
10442 \end_inset
10443
10444
10445 \begin_inset Flex Code
10446 status collapsed
10447
10448 \begin_layout Plain Layout
10449 book (AMS)
10450 \end_layout
10451
10452 \end_inset
10453
10454 には,——
10455 \begin_inset space ~
10456 \end_inset
10457
10458
10459 \begin_inset Flex Noun
10460 status collapsed
10461
10462 \begin_layout Plain Layout
10463
10464 \end_layout
10465
10466 \end_inset
10467
10468
10469 \begin_inset Flex Noun
10470 status collapsed
10471
10472 \begin_layout Plain Layout
10473 書誌情報
10474 \end_layout
10475
10476 \end_inset
10477
10478
10479 \begin_inset Flex Noun
10480 status collapsed
10481
10482 \begin_layout Plain Layout
10483 タイトル
10484 \end_layout
10485
10486 \end_inset
10487
10488
10489 \begin_inset Flex Noun
10490 status collapsed
10491
10492 \begin_layout Plain Layout
10493 著者
10494 \end_layout
10495
10496 \end_inset
10497
10498
10499 \begin_inset Flex Noun
10500 status collapsed
10501
10502 \begin_layout Plain Layout
10503 日付
10504 \end_layout
10505
10506 \end_inset
10507
10508 のような標準環境の他に
10509 \begin_inset space ~
10510 \end_inset
10511
10512 ——
10513 \begin_inset space ~
10514 \end_inset
10515
10516 以下の環境があります.
10517 \end_layout
10518
10519 \begin_layout Description
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 URL 著者のウェブアドレス.任意.
10533 \end_layout
10534
10535 \begin_layout Description
10536 キーワード 論文中で論じられているトピックを識別するためのキーワードやキーフレーズ.
10537 \end_layout
10538
10539 \begin_layout Description
10540 分野分類 
10541 \emph on
10542 Mathematical Reviews
10543 \emph default
10544 に説明が公表されているAMS Subject Classificationsの分類番号を指します.上述したAMSのウェブサイトでも,オンラインで見ることができま
10545 す.
10546 \end_layout
10547
10548 \begin_layout Description
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 Standard
10561 以下の環境は,
10562 \begin_inset Flex Code
10563 status collapsed
10564
10565 \begin_layout Plain Layout
10566 定理
10567 \end_layout
10568
10569 \end_inset
10570
10571 モジュールと
10572 \begin_inset Flex Code
10573 status collapsed
10574
10575 \begin_layout Plain Layout
10576 定理(AMS)
10577 \end_layout
10578
10579 \end_inset
10580
10581 モジュールの両方で提供され,後者の場合には,星付き(連番なし)版と星なし(連番)版の両方が提供されます.
10582 \begin_inset Flex Code
10583 status collapsed
10584
10585 \begin_layout Plain Layout
10586 定理(連番なし)
10587 \end_layout
10588
10589 \end_inset
10590
10591 モジュールでは,同環境の星付き版だけが提供されます.
10592 \end_layout
10593
10594 \begin_layout Theorem
10595 これは,通常,得られた主要な結果を叙述するのに使用されます.
10596 \end_layout
10597
10598 \begin_layout Corollary*
10599 これは直前の叙述から比較的直接に導き出せる結果を叙述するのに使います.これも主要な結果であることがあります.
10600 \end_layout
10601
10602 \begin_layout Lemma
10603 他の叙述を証明するために必要とされる,比較的小さな結果です.
10604 \end_layout
10605
10606 \begin_layout Proposition
10607 議論されている一般的な理論に(希望的には)何かを付け加えるような,主要ではない結果です.
10608 \end_layout
10609
10610 \begin_layout Conjecture
10611 正当化を与えずに述べられた叙述で,著者には証明法がわからないけれども,正しいと(少なくとも著者にとっては)思われるものです.
10612 \end_layout
10613
10614 \begin_layout Definition*
10615 これは自明でしょう.この環境のフォントは,前述の環境とは異なるフォントが使用されます.
10616 \end_layout
10617
10618 \begin_layout Problem
10619 これが何を指すかは必ずしも特定されていません.ご自分で解明してください.
10620 \end_layout
10621
10622 \begin_layout Exercise*
10623 この環境の説明を記述せよ.
10624 \end_layout
10625
10626 \begin_layout Note
10627 この環境もtheorem型,通常は重要性の低い所見に用いられます.
10628 \end_layout
10629
10630 \begin_layout Claim*
10631 より大きな結果の証明を与える途中で,しばしば用いられます.
10632 \end_layout
10633
10634 \begin_layout Case
10635 一般的に,これらはある条件の特定の場合を取り上げて,長い議論を区切るのに用いられます.
10636 \end_layout
10637
10638 \begin_layout Case
10639 ケースの連番の枠組みは,それ自身で独立していて,他の連番の叙述とは区別されます.
10640 \end_layout
10641
10642 \begin_layout Proof
10643 この環境の最後には,証了記号(通常は四角ですがスタイルによって変わります)が置かれます.この環境の中に別の環境を入れたい——たとえばケース環境など——場合で,証
10644 了記号は証明環境の終わりにのみ現れるようにしたい場合には,他の環境は証明環境の中に入れ子にしなくてはなりません.入れ子に関する情報については,
10645 \emph on
10646 ユーザーの手引き
10647 \emph default
10648
10649 \emph on
10650 環境を入れ子にする
10651 \emph default
10652 の節をご覧ください.
10653 \end_layout
10654
10655 \begin_layout Standard
10656 そして,以下は
10657 \begin_inset Flex Code
10658 status collapsed
10659
10660 \begin_layout Plain Layout
10661 定理(AMS拡張)
10662 \end_layout
10663
10664 \end_inset
10665
10666 で提供されるものです.
10667 \end_layout
10668
10669 \begin_layout Criterion*
10670 必要とされる条件です.
10671 \end_layout
10672
10673 \begin_layout Algorithm*
10674 使用する一般的手順です.
10675 \end_layout
10676
10677 \begin_layout Axiom*
10678 議論されている系内部で真と仮定される性質や命題です.
10679 \end_layout
10680
10681 \begin_layout Condition*
10682 議論の現在の文脈で仮定されている条件を述べるのに,よく用いられます.
10683 \end_layout
10684
10685 \begin_layout Note*
10686 注記と同様です.
10687 \end_layout
10688
10689 \begin_layout Notation*
10690 表記法の説明に用いられます.
10691 \end_layout
10692
10693 \begin_layout Summary
10694 本当に説明する必要がありますか?
10695 \end_layout
10696
10697 \begin_layout Acknowledgement*
10698 謝辞(acknowledgement)です.
10699 \end_layout
10700
10701 \begin_layout Conclusion*
10702 長い議論の終わりに時々用いられます.
10703 \end_layout
10704
10705 \begin_layout Fact
10706 命題と同様の用いられ方をしますが,だいたい長くないものに使われるようです.
10707 \end_layout
10708
10709 \begin_layout Standard
10710 さらに,AMSクラスは,AMS \SpecialChar LaTeX
10711 パッケージとAMSフォントパッケージを自動的に提供します.これらの環境を使用するためには,お使いのシステム上で利用可能となってい
10712 る必要があります.
10713 \end_layout
10714
10715 \begin_layout Section
10716 Broadway
10717 \end_layout
10718
10719 \begin_layout Standard
10720
10721 \noun on
10722 Garst Reese
10723 \noun default
10724
10725 \end_layout
10726
10727 \begin_layout Subsection
10728 はじめに
10729 \end_layout
10730
10731 \begin_layout Standard
10732 Broadwayは演劇を書くためのものです.書式はHollywoodよりも装飾的で,それほど標準化されていません.この書式はワークショップに向いているでしょう.
10733 \end_layout
10734
10735 \begin_layout Subsection
10736 特別な問題
10737 \end_layout
10738
10739 \begin_layout Standard
10740 Hollywoodと同様です.
10741 \end_layout
10742
10743 \begin_layout Subsection
10744 特別の機能
10745 \end_layout
10746
10747 \begin_layout Standard
10748
10749 \family sans
10750 話者
10751 \family default
10752 の名前をラベルとして挿入し,名前を挿入する際には,このラベルを相互参照してください.相互参照ダイアログには,登場人物の現在の配役が表示されます.
10753 \end_layout
10754
10755 \begin_layout Subsection
10756 用紙寸法と余白
10757 \end_layout
10758
10759 \begin_layout Standard
10760 USレター寸法で,余白は左1.6インチ,右0.75インチ,上0.5インチ,下0.75インチです.
10761 \end_layout
10762
10763 \begin_layout Subsection
10764 環境
10765 \end_layout
10766
10767 \begin_layout Standard
10768 以下の環境を使うことができます.右に記してある
10769 \begin_inset Flex Ruby
10770 status collapsed
10771
10772 \begin_layout Plain Layout
10773
10774 \begin_inset Argument post:1
10775 status collapsed
10776
10777 \begin_layout Plain Layout
10778 キー
10779 \end_layout
10780
10781 \end_inset
10782
10783
10784 \end_layout
10785
10786 \end_inset
10787
10788 割当ては,broadway.bindを使った場合のものです.
10789 \end_layout
10790
10791 \begin_layout Itemize
10792
10793 \family sans
10794 標準
10795 \begin_inset Newline newline
10796 \end_inset
10797
10798
10799 \family default
10800 これは使わなくていいはずですが,他の環境が当てはまらない場合のためにここに挙げておきます.
10801 \end_layout
10802
10803 \begin_layout Itemize
10804
10805 \family sans
10806 ト書き
10807 \begin_inset space \hfill{}
10808 \end_inset
10809
10810 M-z n
10811 \begin_inset Newline newline
10812 \end_inset
10813
10814
10815 \family default
10816 舞台設定と動作の説明に用います.最初に話者名をすべて大文字で書いておきます.
10817 \end_layout
10818
10819 \begin_layout Itemize
10820
10821 \family sans
10822
10823 \begin_inset space \hfill{}
10824 \end_inset
10825
10826 M-z a
10827 \begin_inset Newline newline
10828 \end_inset
10829
10830
10831 \family default
10832 自動的に連番が振られます.連番は,画面上ではアラビア数字ですが,出力ではローマ数字です.
10833 \end_layout
10834
10835 \begin_layout Itemize
10836
10837 \family sans
10838 幕*
10839 \begin_inset space \hfill{}
10840 \end_inset
10841
10842 M-z S at
10843 \begin_inset Newline newline
10844 \end_inset
10845
10846
10847 \family default
10848 幕の副題です.単に中央揃えの文になります.
10849 \end_layout
10850
10851 \begin_layout Itemize
10852
10853 \family sans
10854 場面
10855 \begin_inset space \hfill{}
10856 \end_inset
10857
10858 M-z S-S
10859 \begin_inset Newline newline
10860 \end_inset
10861
10862
10863 \family default
10864 自動的に連番は振られませんので,手動で番号を付けてください.これは私がどうすればいいか分からなかったためです.
10865 \end_layout
10866
10867 \begin_layout Itemize
10868
10869 \family sans
10870 幕開きに:
10871 \begin_inset space \hfill{}
10872 \end_inset
10873
10874 M-z S-R
10875 \begin_inset Newline newline
10876 \end_inset
10877
10878
10879 \family default
10880 ト書きの特殊な場合で,カーテンが上がるときの舞台設定と動作を説明します.
10881 \end_layout
10882
10883 \begin_layout Itemize
10884
10885 \family sans
10886 話者
10887 \begin_inset space \hfill{}
10888 \end_inset
10889
10890 M-z s
10891 \begin_inset Newline newline
10892 \end_inset
10893
10894
10895 \family default
10896 話者(役者)の配役です.すべて大文字で中央揃えに置かれます.
10897 \end_layout
10898
10899 \begin_layout Itemize
10900
10901 \family sans
10902 括弧付き
10903 \begin_inset space \hfill{}
10904 \end_inset
10905
10906 M-z p
10907 \begin_inset Newline newline
10908 \end_inset
10909
10910
10911 \family default
10912 話者への指示です.括弧は自動的に挿入されます.画面上には左括弧(のみが表示されますが,印字出力には両方の括弧が表示されます.この環境は,
10913 \family sans
10914 対話
10915 \family default
10916 の中だけで使用されます. 
10917 \end_layout
10918
10919 \begin_layout Itemize
10920
10921 \family sans
10922 対話
10923 \begin_inset space \hfill{}
10924 \end_inset
10925
10926 M-z d
10927 \begin_inset Newline newline
10928 \end_inset
10929
10930
10931 \family default
10932 話者の言う内容.
10933 \end_layout
10934
10935 \begin_layout Itemize
10936
10937 \family sans
10938 幕切れ
10939 \begin_inset space \hfill{}
10940 \end_inset
10941
10942 M-z S-C
10943 \begin_inset Newline newline
10944 \end_inset
10945
10946
10947 \family default
10948 幕が降ります.
10949 \end_layout
10950
10951 \begin_layout Itemize
10952
10953 \family sans
10954 タイトル
10955 \begin_inset space \hfill{}
10956 \end_inset
10957
10958 M-z S-T
10959 \end_layout
10960
10961 \begin_layout Itemize
10962
10963 \family sans
10964 著者
10965 \begin_inset space \hfill{}
10966 \end_inset
10967
10968 M-z S-A
10969 \end_layout
10970
10971 \begin_layout Itemize
10972
10973 \family sans
10974 右寄せ住所
10975 \begin_inset space \hfill{}
10976 \end_inset
10977
10978 M-z r
10979 \end_layout
10980
10981 \begin_layout Section
10982 Dinbrief
10983 \end_layout
10984
10985 \begin_layout Standard
10986 文書クラス
10987 \family sans
10988 dinbrief
10989 \family default
10990 は,ドイツの慣習に則った書簡の組版を行うのに用いられます.ひな型ファイルが
10991 \family typewriter
10992 .../lyx/share/templates
10993 \family default
10994 にあるので,それを土台として使用してください.
10995 \end_layout
10996
10997 \begin_layout Section
10998 Elsevier各誌
10999 \end_layout
11000
11001 \begin_layout Standard
11002 \SpecialChar LyX
11003 ひな型ファイルの
11004 \family typewriter
11005 elsarticle.lyx
11006 \family default
11007 を参照してください.必要な情報は全てそこにあります.
11008 \end_layout
11009
11010 \begin_layout Section
11011 Foils別名Foil\SpecialChar TeX
11012
11013 \begin_inset CommandInset label
11014 LatexCommand label
11015 name "sec:foiltex"
11016
11017 \end_inset
11018
11019
11020 \end_layout
11021
11022 \begin_layout Standard
11023
11024 \noun on
11025 Allan Rae
11026 \noun default
11027
11028 \end_layout
11029
11030 \begin_layout Subsection
11031 はじめに
11032 \end_layout
11033
11034 \begin_layout Standard
11035 本節では,プレゼンテーション用のスライドを作るための,\SpecialChar LyX
11036 の使用法を解説します.スライドを作ることのできる文書クラスには,slides・Foil\SpecialChar TeX
11037 ・seminar・b
11038 eamer・powerdotといったクラスがありますが,本節では,そのうちslidesの解説を行います.
11039 \end_layout
11040
11041 \begin_layout Standard
11042 誤解のないように,わかりやすく明確に,もう一度言っておきます.
11043 \end_layout
11044
11045 \begin_layout Standard
11046 \begin_inset VSpace bigskip
11047 \end_inset
11048
11049
11050 \end_layout
11051
11052 \begin_layout Standard
11053 \align center
11054
11055 \size large
11056 本節は「
11057 \family sans
11058 FoilTeX
11059 \family default
11060 」クラス
11061 \emph on
11062 のみの
11063 \emph default
11064 解説を行います.
11065 \end_layout
11066
11067 \begin_layout Standard
11068 \begin_inset VSpace bigskip
11069 \end_inset
11070
11071
11072 \end_layout
11073
11074 \begin_layout Standard
11075
11076 \family sans
11077 transparencies (slides)
11078 \family default
11079 」の解説をお探しであれば,第
11080 \begin_inset CommandInset ref
11081 LatexCommand ref
11082 reference "sec:slitex"
11083
11084 \end_inset
11085
11086 節をご覧ください.お使いのコンピュータに
11087 \family sans
11088 foils
11089 \family default
11090 クラス
11091 \family sans
11092 FoilTeX
11093 \family default
11094 が導入されていなければ,
11095 \family sans
11096 foils
11097 \family default
11098 ほど良くはありませんが,おそらく
11099 \family sans
11100 slides
11101 \family default
11102 クラスを使わざるをえないでしょう.
11103 \end_layout
11104
11105 \begin_layout Standard
11106
11107 \family sans
11108 foils
11109 \family default
11110 クラスは,\SpecialChar LaTeX2e
11111 の一部として含まれている\SpecialChar LaTeX
11112 クラスファイル
11113 \family sans
11114 foils.cls
11115 \family default
11116 の第2.1版とともに使われるように設計されています.
11117 \end_layout
11118
11119 \begin_layout Subsection
11120 最初の一歩
11121 \end_layout
11122
11123 \begin_layout Standard
11124 いうまでもなく,この文書クラスを使うには,
11125 \family sans
11126 文書\SpecialChar menuseparator
11127 設定\SpecialChar menuseparator
11128 文書クラス
11129 \family default
11130 メニューの
11131 \family sans
11132 文書クラス
11133 \family default
11134 ドロップダウンで「
11135 \family sans
11136 FoilTeX
11137 \family default
11138 」を選択する必要があります.また,
11139 \family sans
11140 文書設定
11141 \family default
11142 ダイアログ中には,以下のように,このクラスに特有の設定がいくつかあることを知っておかなくてはなりません.
11143 \end_layout
11144
11145 \begin_layout Itemize
11146
11147 \family sans
11148 文書設定
11149 \family default
11150 ダイアログ中の,
11151 \family sans
11152 両面文書
11153 \family default
11154 オプションと
11155 \family sans
11156 二段組文書
11157 \family default
11158 オプションは変更しないでください.これらは 
11159 \family sans
11160 foils
11161 \family default
11162 クラスでは無視されます.
11163 \end_layout
11164
11165 \begin_layout Itemize
11166 既定のフォント寸法は20ptであり,17
11167 \begin_inset space \thinspace{}
11168 \end_inset
11169
11170 pt・25
11171 \begin_inset space \thinspace{}
11172 \end_inset
11173
11174 pt・30
11175 \begin_inset space \thinspace{}
11176 \end_inset
11177
11178 ptを選択することも可能です.
11179 \end_layout
11180
11181 \begin_layout Itemize
11182 既定のフォントは
11183 \family sans
11184 sans
11185 \family default
11186  
11187 \family sans
11188 serif
11189 \family default
11190 ですが,数式ではすべて,通常のローマン体が使用されます.
11191 \end_layout
11192
11193 \begin_layout Itemize
11194 Foil\SpecialChar TeX
11195 は,35
11196 \begin_inset space \thinspace{}
11197 \end_inset
11198
11199 mmスライド用の特殊寸法の他,A4とレター大の用紙寸法をサポートします.A5・B5・リーガル・エグゼクティブ大の用紙寸法はサポートしていません.
11200 \end_layout
11201
11202 \begin_layout Itemize
11203
11204 \family sans
11205 フロートの配置
11206 \family default
11207 の設定は無視されますので,わざわざ変更する必要はありません.フロートはすべて,本文中で定義された位置に表示されます.
11208 \end_layout
11209
11210 \begin_layout Itemize
11211 このクラスの
11212 \family sans
11213 ページレイアウト
11214 \family default
11215 の設定は,若干異なった挙動を示します.Foil\SpecialChar TeX
11216 では,ユーザ定義のロゴをはじめ,フッタとへッダに広範な設定ができます.詳細については第
11217 \begin_inset CommandInset ref
11218 LatexCommand ref
11219 reference "sec:foilfoot"
11220
11221 \end_inset
11222
11223 節をご覧ください.タイトルページは,文書中の他のページとは異なった取扱がなされ,ページ番号は
11224 \emph on
11225 つねに
11226 \emph default
11227 付けられず,(ロゴが定義されていれば)ロゴは,
11228 \emph on
11229 つねに
11230 \emph default
11231 ページ下部中央に表示されます.使用できるページ様式とその挙動は,以下の通りです.
11232 \end_layout
11233
11234 \begin_deeper
11235 \begin_layout Labeling
11236 \labelwidthstring MMMMMMM
11237
11238 \family sans
11239 \series bold
11240 empty
11241 \family default
11242 \series default
11243  最終出力には,ページ番号をはじめ,へッダ・フッタが出力されません(もちろん脚注は除きます).
11244 \end_layout
11245
11246 \begin_layout Labeling
11247 \labelwidthstring MMMMMMM
11248
11249 \family sans
11250 \series bold
11251 plain
11252 \family default
11253 \series default
11254  最終出力には,ページ番号がページ下部の中央に出力されますが,他のへッダ・フッタは出力されません(脚注除く).
11255 \end_layout
11256
11257 \begin_layout Labeling
11258 \labelwidthstring MMMMMMM
11259
11260 \series bold
11261 foilheadings
11262 \series default
11263  ページ番号が右下隅に出力されます.追記したへッダ・フッタも出力されます.これが既定値です.
11264 \end_layout
11265
11266 \begin_layout Labeling
11267 \labelwidthstring MMMMMMM
11268
11269 \series bold
11270 fancy
11271 \series default
11272  これは
11273 \family sans
11274 fancyheadings
11275 \family default
11276 パッケージを使えるようにします.ただし,Foil\SpecialChar TeX
11277 パッケージの作者は,ページレイアウトが崩れる可能性があるので,これを使用することは勧めないと言及しています.
11278 \end_layout
11279
11280 \end_deeper
11281 \begin_layout Subsubsection
11282 任意設定クラスオプション
11283 \end_layout
11284
11285 \begin_layout Standard
11286 以下のオプションは
11287 \family sans
11288 文書設定
11289 \family default
11290 ダイアログの任意設定クラスオプションボックスで使うことができます.
11291 \end_layout
11292
11293 \begin_layout Labeling
11294 \labelwidthstring MMMMMMx
11295
11296 \series bold
11297 35mmSlide
11298 \series default
11299  これは,ページレイアウトを縦7.33インチ横11インチに設定します.これは35
11300 \begin_inset space \space{}
11301 \end_inset
11302
11303 mmスライドの縦横比にほぼ等しく,このメディアを作る作業が若干易しくなります.
11304 \end_layout
11305
11306 \begin_layout Labeling
11307 \labelwidthstring MMMMMMx
11308
11309 \series bold
11310 headrule
11311 \series default
11312  タイトルページを除くすべてのページのへッダの下に罫線を入れます.
11313 \end_layout
11314
11315 \begin_layout Labeling
11316 \labelwidthstring MMMMMMx
11317
11318 \series bold
11319 footrule
11320 \series default
11321  タイトルページを除くすべてのページのフッタの上に罫線を入れます.
11322 \end_layout
11323
11324 \begin_layout Labeling
11325 \labelwidthstring MMMMMMx
11326
11327 \series bold
11328 dvips
11329 \series default
11330  これは,新規
11331 \family sans
11332 foils
11333 \family default
11334 文書を作成する度に自動的に設定されます.このオプションは,横向きに設定されたページを回転させるのに,dvipsドライバを使うようFoil\SpecialChar TeX
11335 に指示します.
11336 \end_layout
11337
11338 \begin_layout Labeling
11339 \labelwidthstring MMMMMMx
11340
11341 \series bold
11342 landscape
11343 \series default
11344  このオプションは,用紙寸法を横向きページ大に変更するだけで,回転は行いません.したがって,このオプションを使う場合は,各ページを回転させる外部プログラムを使用
11345 する,プリンタに用紙を横向きに給紙する必要があります.また,このオプションは,
11346 \family sans
11347 Foilhead
11348 \family default
11349 環境と
11350 \family sans
11351 Rotatefoilhead
11352 \family default
11353 環境の役割を逆転させることに注意してください(これらの環境については次節で説明します).
11354 \end_layout
11355
11356 \begin_layout Labeling
11357 \labelwidthstring MMMMMMx
11358
11359 \series bold
11360 leqno
11361 \series default
11362  数式番号を左側に付けます.
11363 \end_layout
11364
11365 \begin_layout Labeling
11366 \labelwidthstring MMMMMMx
11367
11368 \series bold
11369 fleqn
11370 \series default
11371  数式を左揃えにします.
11372 \end_layout
11373
11374 \begin_layout Subsection
11375 サポートされる環境
11376 \end_layout
11377
11378 \begin_layout Standard
11379 他のクラスで標準的にサポートされている環境は,
11380 \family sans
11381 foils
11382 \family default
11383 クラスでもサポートされています.それ以外に,Foil\SpecialChar TeX
11384 が提供している環境と,\SpecialChar LyX
11385 が付け加えた環境があります.以下の環境は,他のクラスと共通の環境です.
11386 \end_layout
11387
11388 \begin_layout Standard
11389
11390 \family sans
11391 \begin_inset Flex Multiple Columns
11392 status open
11393
11394 \begin_layout Itemize
11395
11396 \family sans
11397 標準
11398 \end_layout
11399
11400 \begin_layout Itemize
11401
11402 \family sans
11403 箇条書き(記号)
11404 \end_layout
11405
11406 \begin_layout Itemize
11407
11408 \family sans
11409 箇条書き(連番)
11410 \end_layout
11411
11412 \begin_layout Itemize
11413
11414 \family sans
11415 箇条書き(記述)
11416 \end_layout
11417
11418 \begin_layout Itemize
11419
11420 \family sans
11421 箇条書き(リスト)
11422 \end_layout
11423
11424 \begin_layout Itemize
11425
11426 \family sans
11427 \SpecialChar LyX
11428 コード
11429 \end_layout
11430
11431 \begin_layout Itemize
11432
11433 \family sans
11434 詩句
11435 \end_layout
11436
11437 \begin_layout Itemize
11438
11439 \family sans
11440 引用(字下げあり)
11441 \end_layout
11442
11443 \begin_layout Itemize
11444
11445 \family sans
11446 引用(字下げなし)
11447 \end_layout
11448
11449 \begin_layout Itemize
11450
11451 \family sans
11452 タイトル
11453 \end_layout
11454
11455 \begin_layout Itemize
11456
11457 \family sans
11458 著者
11459 \end_layout
11460
11461 \begin_layout Itemize
11462
11463 \family sans
11464 日付
11465 \end_layout
11466
11467 \begin_layout Itemize
11468
11469 \family sans
11470 概要
11471 \end_layout
11472
11473 \begin_layout Itemize
11474
11475 \family sans
11476 書誌情報
11477 \end_layout
11478
11479 \begin_layout Itemize
11480
11481 \family sans
11482 住所
11483 \end_layout
11484
11485 \begin_layout Itemize
11486
11487 \family sans
11488 右寄せ住所
11489 \end_layout
11490
11491 \end_inset
11492
11493
11494 \end_layout
11495
11496 \begin_layout Standard
11497 つまり,節区切りを除けば,主な環境のすべてです.一枚のスライドは,基本的にタイトルと本文を備えた自己完結した節なので,
11498 \family sans
11499 Foil
11500 \family default
11501 \SpecialChar TeX
11502 は新しいスライドを始める以下のようなコマンドを備えています.
11503 \end_layout
11504
11505 \begin_layout Itemize
11506
11507 \family sans
11508 スライドタイトル(Foilhead)
11509 \end_layout
11510
11511 \begin_layout Itemize
11512
11513 \family sans
11514 横置きスライドタイトル(Rotatefoilhead)
11515 \end_layout
11516
11517 \begin_layout Standard
11518 \SpecialChar LyX
11519 は,以下のような,これらを若干修正した環境も用意しています.
11520 \end_layout
11521
11522 \begin_layout Itemize
11523
11524 \family sans
11525 スライドタイトル(小)(ShortFoilhead)
11526 \end_layout
11527
11528 \begin_layout Itemize
11529
11530 \family sans
11531 横置きスライドタイトル(小)(ShortRotatefoilhead)
11532 \end_layout
11533
11534 \begin_layout Standard
11535 これらの違いは次節で説明します.
11536 \end_layout
11537
11538 \begin_layout Standard
11539 スライドは,アイデアを説明したり,新しい定理を説明したりするのにしばしば使われるので,
11540 \family sans
11541 Foil
11542 \family default
11543 \SpecialChar TeX
11544 はそれらを説明するのに便利な環境を幅広く用意しています.
11545 \end_layout
11546
11547 \begin_layout Standard
11548
11549 \family sans
11550 \begin_inset Flex Multiple Columns
11551 status open
11552
11553 \begin_layout Itemize
11554
11555 \family sans
11556 定理
11557 \end_layout
11558
11559 \begin_layout Itemize
11560
11561 \family sans
11562 補題
11563 \end_layout
11564
11565 \begin_layout Itemize
11566
11567 \family sans
11568
11569 \end_layout
11570
11571 \begin_layout Itemize
11572
11573 \family sans
11574 命題
11575 \end_layout
11576
11577 \begin_layout Itemize
11578
11579 \family sans
11580 定義
11581 \end_layout
11582
11583 \begin_layout Itemize
11584
11585 \family sans
11586 証明
11587 \end_layout
11588
11589 \begin_layout Itemize
11590
11591 \family sans
11592 定理*
11593 \end_layout
11594
11595 \begin_layout Itemize
11596
11597 \family sans
11598 補題*
11599 \end_layout
11600
11601 \begin_layout Itemize
11602
11603 \family sans
11604 系*
11605 \end_layout
11606
11607 \begin_layout Itemize
11608
11609 \family sans
11610 命題*
11611 \end_layout
11612
11613 \begin_layout Itemize
11614
11615 \family sans
11616 定義*
11617 \end_layout
11618
11619 \end_inset
11620
11621
11622 \end_layout
11623
11624 \begin_layout Standard
11625 星付き版は連番が振られず,星なし版は連番が振られます.他に,\SpecialChar LyX
11626 で追加された以下の2つの箇条書き環境があります.
11627 \end_layout
11628
11629 \begin_layout Itemize
11630
11631 \family sans
11632 箇条書き(チック)
11633 \end_layout
11634
11635 \begin_layout Itemize
11636
11637 \family sans
11638 箇条書き(クロス)
11639 \end_layout
11640
11641 \begin_layout Standard
11642 Foil\SpecialChar TeX
11643 には,強力なヘッダ機能とフッタ機能があり,これらはプリアンブルで設定するのが最良ですが,文章中のどこでも設定することができます.もし文書中でこれらの設定
11644 を変更したい場合には,スライドの一番上,foilheadの直後で行うのが良いでしょう.
11645 \end_layout
11646
11647 \begin_layout Standard
11648 この目的のためには,以下のコマンドスタイルがあります(
11649 \shape smallcaps
11650 Martin Vermeer).
11651 \end_layout
11652
11653 \begin_layout Standard
11654 \begin_inset Flex Multiple Columns
11655 status open
11656
11657 \begin_layout Itemize
11658
11659 \family sans
11660 グラフィックスロゴ
11661 \end_layout
11662
11663 \begin_layout Itemize
11664
11665 \family sans
11666 配布制限
11667 \end_layout
11668
11669 \begin_layout Itemize
11670
11671 \family sans
11672 右フッタ
11673 \end_layout
11674
11675 \begin_layout Itemize
11676
11677 \family sans
11678 右ヘッダ
11679 \end_layout
11680
11681 \begin_layout Itemize
11682
11683 \family sans
11684 左ヘッダ
11685 \end_layout
11686
11687 \begin_deeper
11688 \begin_layout Plain Layout
11689 \begin_inset space ~
11690 \end_inset
11691
11692
11693 \end_layout
11694
11695 \end_deeper
11696 \end_inset
11697
11698
11699 \end_layout
11700
11701 \begin_layout Standard
11702 Foil\SpecialChar TeX
11703 が提供しているコマンドで,\SpecialChar LyX
11704 が直接サポートしていないコマンドもありますが,これらの説明と使い方については,第
11705 \begin_inset CommandInset ref
11706 LatexCommand ref
11707 reference "sec:unsuppfoils"
11708
11709 \end_inset
11710
11711 節で行います.
11712 \end_layout
11713
11714 \begin_layout Subsection
11715 スライドの組を作る
11716 \end_layout
11717
11718 \begin_layout Standard
11719 この節は,様々な環境を使ってスライドの組を作る方法を簡単に紹介します.スライド組の例をご覧になりたい場合は,\SpecialChar LyX
11720
11721 \family typewriter
11722 examples
11723 \family default
11724 フォルダにある
11725 \family typewriter
11726 Foils.lyx
11727 \family default
11728 ファイルをご覧ください.
11729 \end_layout
11730
11731 \begin_layout Subsubsection
11732 タイトルページを作る
11733 \end_layout
11734
11735 \begin_layout Standard
11736
11737 \family sans
11738 タイトル
11739 \family default
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 foils
11755 \family default
11756 は独立したページにタイトルを作成します.
11757 \family sans
11758 日付
11759 \family default
11760 環境を使用しなかった場合には,\SpecialChar LaTeX
11761 は(出力を生成し直したときにはいつも)その時点の日付を挿入します.
11762 \end_layout
11763
11764 \begin_layout Subsubsection
11765 新しいスライドを開始する
11766 \end_layout
11767
11768 \begin_layout Standard
11769 前述のように,新しいスライドを開始するには,4つの方法があります.縦向きのスライドを開始するには,
11770 \family sans
11771 スライドタイトル(Foilhead)
11772 \family default
11773
11774 \family sans
11775 スライドタイトル(小)(ShortFoilhead)
11776 \family default
11777 を使用します.両環境の違いは,スライドタイトル(foilhead)とスライド本文の間の余白の違いです.
11778 \end_layout
11779
11780 \begin_layout Standard
11781 横向きのスライドは,
11782 \family sans
11783 横向きスライドタイトル(Rotatefoilhead)
11784 \family default
11785 か横向きスライドタイトル(小)(
11786 \family sans
11787 ShortRotatefoilhead)
11788 \family default
11789 環境を使用して生成します.ここでも両環境の違いは,タイトルと本文の間の余白のみです.どちらの場合も,(小)と記された版は,タイトルと本文の間の余白が,0.5インチ
11790 (約1.27cm)小さくなります.
11791 \end_layout
11792
11793 \begin_layout Standard
11794 横向きのスライドをサポートする際,一つ問題となるのは,スライドを回転させようと思うと,PostScript出力を生成するのに
11795 \family typewriter
11796 dvips
11797 \family default
11798 ドライバを使用することを要求してしまうことです.もしスライドをプリンタに横に給紙することができれば,
11799 \family typewriter
11800 dvips
11801 \family default
11802 ドライバを持っていなくても,横向きのスライドをつくることができます ;-)
11803 \end_layout
11804
11805 \begin_layout Subsubsection
11806 定理・補題・証明など
11807 \end_layout
11808
11809 \begin_layout Standard
11810 これらの環境の同じ型をお互いに直接続けて置くことはできません.通常の段落開業を用いると,2つの環境をマージしたかのように,前の環境が延長されるだけです.そうでは
11811 なく,いわゆる分離線を挿入する必要があります.
11812 \emph on
11813 ユーザーの手引き
11814 \emph default
11815 の「
11816 \emph on
11817 入れ子の分離
11818 \emph default
11819 」の節を参照してください.
11820 \end_layout
11821
11822 \begin_layout Subsubsection
11823 箇条書き
11824 \end_layout
11825
11826 \begin_layout Standard
11827 他のクラスでも共通にサポートされている箇条書き様式すべてに加えて,二つの新しい様式を使用することができます.ここでは,その新しい様式のみを説明することにします.
11828 他の箇条書き環境について詳しく知りたい場合には,
11829 \emph on
11830 ユーザーの手引き
11831 \emph default
11832 をご覧ください.記号による箇条書きを使用したい場合には,上記第
11833 \begin_inset CommandInset ref
11834 LatexCommand ref
11835 reference "sec:ブリット"
11836
11837 \end_inset
11838
11839 節の
11840 \family sans
11841 箇条書き(記号)ブリットの指定
11842 \family default
11843 の節も,読まれることが望ましいでしょう.
11844 \end_layout
11845
11846 \begin_layout Standard
11847
11848 \family sans
11849 箇条書き(チック)
11850 \family default
11851
11852 \family sans
11853 箇条書き(クロス)
11854 \family default
11855 の二つの新しい様式は,チェック印や
11856 \begin_inset Formula $\times$
11857 \end_inset
11858
11859 印を箇条書きのラベルに使用する専用の環境を提供することで,予定一覧や正誤一覧を作りやすくするように設計されたものです.これらの箇条書きは,
11860 \family sans
11861 箇条書き(記号)
11862 \family default
11863 の派生型を専用に用意したものに過ぎません.ただし,これらは,
11864 \family typewriter
11865 psnfss
11866 \family default
11867 パッケージが導入済であることを要求します.
11868 \end_layout
11869
11870 \begin_layout Subsubsection
11871 図と表
11872 \end_layout
11873
11874 \begin_layout Standard
11875 Foil\SpecialChar TeX
11876 では,図表フロートは,本文中の挿入箇所にこれらが正確に表示されるように再定義されており,ページの上部やユーザー指定場所に押しのけたりはしないようになって
11877 います.たとえフロート配置の設定に変更を加えたとしても,単に無視されます.
11878 \end_layout
11879
11880 \begin_layout Subsubsection
11881 ページヘッダおよびページフッタ
11882 \begin_inset CommandInset label
11883 LatexCommand label
11884 name "sec:foilfoot"
11885
11886 \end_inset
11887
11888
11889 \end_layout
11890
11891 \begin_layout Standard
11892
11893 \family sans
11894 グラフィックスロゴ
11895 \family default
11896
11897 \family sans
11898 配布制限
11899 \family default
11900 の二つは,左フッタ文を制御するものです.前者は,グラフィックスのロゴをスライドに入れるためのもので,既定値は「-Typeset by 
11901 \family sans
11902 Foil
11903 \family default
11904 \SpecialChar TeX
11905 -」となっています.後者は,「機密事項」などのように,聴衆に秘密区分を提示することを意図しています.既定値では,何も設定されていません.
11906 \end_layout
11907
11908 \begin_layout Standard
11909 スライドの残り三隅には,
11910 \family sans
11911 右フッタ
11912 \family default
11913 (既定ではページ番号)・
11914 \family sans
11915 右ヘッダ
11916 \family default
11917 (右上)・
11918 \family sans
11919 左ヘッダ
11920 \family default
11921 (左上)を使って文字を入れることができます.
11922 \end_layout
11923
11924 \begin_layout Subsection
11925 サポートされない 
11926 \family sans
11927 Foil
11928 \family default
11929 \SpecialChar TeX
11930 機能
11931 \begin_inset CommandInset label
11932 LatexCommand label
11933 name "sec:unsuppfoils"
11934
11935 \end_inset
11936
11937
11938 \end_layout
11939
11940 \begin_layout Standard
11941 以下で言及されているコマンドは,
11942 \family sans
11943 \SpecialChar LaTeX
11944
11945 \family default
11946 環境内で設定されるか,他の環境中の
11947 \family sans
11948 \SpecialChar TeX
11949 コード
11950 \family default
11951 として設定される必要があります.
11952 \end_layout
11953
11954 \begin_layout Subsubsection
11955 長さ
11956 \end_layout
11957
11958 \begin_layout Standard
11959 長さは,すべて
11960 \family typewriter
11961
11962 \backslash
11963 setlength{
11964 \family default
11965 \emph on
11966 長さ名
11967 \family typewriter
11968 \emph default
11969 }{
11970 \family default
11971 \emph on
11972 新規長さ
11973 \family typewriter
11974 \emph default
11975 }
11976 \family default
11977 コマンドで調節されます.ここで
11978 \emph on
11979 長さ名
11980 \emph default
11981 は,変更したい長さに付けられている名前で置き換え,
11982 \emph on
11983 新規長さ
11984 \emph default
11985 は,その長さの値で置き換えます.長さはすべて,インチ(in)・ミリメートル(mm)・ポイント(pt)のような長さ単位か,
11986 \family typewriter
11987
11988 \backslash
11989 textwidth
11990 \family default
11991 のように文書比あるいはフォント基準の長さで指定する必要があります.
11992 \end_layout
11993
11994 \begin_layout Standard
11995
11996 \family typewriter
11997
11998 \backslash
11999 foilheadskip
12000 \family default
12001 で指定される長さを調節することによって,スライドタイトルとスライド本文の間の余白を変更することができます.たとえば,スライドタイトルをすべて0.5
12002 \begin_inset space \space{}
12003 \end_inset
12004
12005 inだけスライド本文に近づけるには,プリアンブルに
12006 \family typewriter
12007
12008 \backslash
12009 setlength{
12010 \backslash
12011 foilheadskip}{-0.5in}
12012 \family default
12013 と書き込みます.
12014 \end_layout
12015
12016 \begin_layout Standard
12017 フロート周囲の余白は,以下の長さを設定することで調整することができます.
12018 \end_layout
12019
12020 \begin_layout Labeling
12021 \labelwidthstring MMMMMMMMMMM
12022
12023 \family typewriter
12024
12025 \backslash
12026 abovefloatskip
12027 \family default
12028  本文とフロート上辺との間隔
12029 \end_layout
12030
12031 \begin_layout Labeling
12032 \labelwidthstring MMMMMMMMMMM
12033
12034 \family typewriter
12035
12036 \backslash
12037 abovecaptionskip
12038 \family default
12039  フロートとキャプションとの間隔
12040 \end_layout
12041
12042 \begin_layout Labeling
12043 \labelwidthstring MMMMMMMMMMM
12044
12045 \family typewriter
12046
12047 \backslash
12048 belowcaptionskip
12049 \family default
12050  キャプションとそれに続く本文との間隔
12051 \end_layout
12052
12053 \begin_layout Labeling
12054 \labelwidthstring MMMMMMMMMMM
12055
12056 \family typewriter
12057
12058 \backslash
12059 captionwidth
12060 \family default
12061  この長さを調整することでキャプションを,周囲の本文より短くすることができます.
12062 \family typewriter
12063
12064 \backslash
12065 textwidth
12066 \family default
12067 に対する相対的な長さで調整するのが最も良いでしょう.
12068 \end_layout
12069
12070 \begin_layout Standard
12071 以下のようなタイトルページ関連の長さもあり,タイトルが長い場合や,著者が複数いる場合に使うと便利かもしれません.
12072 \end_layout
12073
12074 \begin_layout Labeling
12075 \labelwidthstring MMMMMMMMMMM
12076
12077 \family typewriter
12078
12079 \backslash
12080 abovetitleskip
12081 \family default
12082  へッダとタイトルとの間隔
12083 \end_layout
12084
12085 \begin_layout Labeling
12086 \labelwidthstring MMMMMMMMMMM
12087
12088 \family typewriter
12089
12090 \backslash
12091 titleauthorskip
12092 \family default
12093  
12094 \family sans
12095 タイトル
12096 \family default
12097 環境と
12098 \family sans
12099 著者
12100 \family default
12101 環境との間隔
12102 \end_layout
12103
12104 \begin_layout Labeling
12105 \labelwidthstring MMMMMMMMMMM
12106
12107 \family typewriter
12108
12109 \backslash
12110 authorauthorskip
12111 \family default
12112  著者が複数いる場合の
12113 \family sans
12114 著者
12115 \family default
12116 行の間隔
12117 \end_layout
12118
12119 \begin_layout Labeling
12120 \labelwidthstring MMMMMMMMMMM
12121
12122 \family typewriter
12123
12124 \backslash
12125 authordateskip
12126 \family default
12127  
12128 \family sans
12129 著者
12130 \family default
12131
12132 \family sans
12133 日付
12134 \family default
12135 との間隔
12136 \end_layout
12137
12138 \begin_layout Labeling
12139 \labelwidthstring MMMMMMMMMMM
12140
12141 \family typewriter
12142
12143 \backslash
12144 dateabstractskip
12145 \family default
12146  
12147 \family sans
12148 日付
12149 \family default
12150
12151 \family sans
12152 概要
12153 \family default
12154 との間隔
12155 \end_layout
12156
12157 \begin_layout Standard
12158 最後に紹介する長さ関連コマンドは,箇条書き環境すべてに使用できるものです.
12159 \family typewriter
12160
12161 \backslash
12162 zerolistvertdimens
12163 \family default
12164 を箇条書き環境の内側に置くと,項目間の垂直余白がすべて取り除かれます.これは長さではなくコマンドなので,上述のもののように
12165 \family typewriter
12166
12167 \backslash
12168 setlength
12169 \family default
12170 を使う必要がないことに注意してください.
12171 \end_layout
12172
12173 \begin_layout Subsubsection
12174 へッダとフッタ
12175 \end_layout
12176
12177 \begin_layout Standard
12178
12179 \family typewriter
12180
12181 \backslash
12182 LogoOn
12183 \family default
12184 および
12185 \family typewriter
12186
12187 \backslash
12188 LogoOff
12189 \family default
12190 は,
12191 \family typewriter
12192 MyLogo
12193 \family default
12194 で定義したロゴを特定のページに入れるかどうかを制御します.
12195 \family typewriter
12196
12197 \backslash
12198 LogoOff
12199 \family default
12200 をプリアンブルに入れると,全スライドからロゴが取り除かれます.特定のスライドにのみロゴを付けたくない場合は,当該ページのスライドタイトルの直後に直接
12201 \family typewriter
12202
12203 \backslash
12204 LogoOff
12205 \family default
12206 を置き,次のスライドタイトルの直後に直接
12207 \family typewriter
12208
12209 \backslash
12210 LogoOn
12211 \family default
12212 を置いてください.
12213 \end_layout
12214
12215 \begin_layout Standard
12216
12217 \family sans
12218 文書レイアウト
12219 \family default
12220 ダイアログで
12221 \family sans
12222 fancy
12223 \family default
12224 ページ様式を使用することを選択した場合には,横置きページのヘッダとフッタが回転後も正しく配置されるように,プリアンブルに
12225 \family typewriter
12226
12227 \backslash
12228 let
12229 \backslash
12230 headwidth
12231 \backslash
12232 textwidth
12233 \family default
12234 を加える必要があるでしょう.これは,
12235 \family sans
12236 fancyheadings
12237 \family default
12238 パッケージが提供するページレイアウトと
12239 \family sans
12240 foils
12241 \family default
12242 クラスの提供するページレイアウトの間に衝突が発生するためです.
12243 \end_layout
12244
12245 \begin_layout Section
12246 Hollywood(Hollywoodスペック・スクリプト)
12247 \end_layout
12248
12249 \begin_layout Standard
12250
12251 \noun on
12252 Garst Reese
12253 \noun default
12254
12255 \end_layout
12256
12257 \begin_layout Subsection
12258 はじめに
12259 \end_layout
12260
12261 \begin_layout Standard
12262 脚本を正しい書式で書くことは,ハリウッドにおける「通過儀礼」です.ハリウッドの脚本は,読み手が内容に集中できるようにし,俳優にとっても読みやすくかつ親しみやすい
12263 ように設計されています.脚本の1ページは,映画の1分でなければならず,銀幕上で見えたり聞こえたりしないものは,脚本に混入してはなりません.また,全体を通してCo
12264 urier 12
12265 \begin_inset space \space{}
12266 \end_inset
12267
12268 ptフォントを使わなければならず,イタリック体は用いてはいけません.
12269 \end_layout
12270
12271 \begin_layout Subsection
12272 特別な問題
12273 \end_layout
12274
12275 \begin_layout Standard
12276 話者の行は,文の途中で改行することは
12277 \emph on
12278 決して
12279 \emph default
12280 あってはなりません.もし話者行の塊が,次頁にまたがる場合には,
12281 \family sans
12282 話者
12283 \family default
12284 名を再度書き,その後に(Cont'd)と加えます.
12285 \end_layout
12286
12287 \begin_layout Subsection
12288 特別な機能
12289 \end_layout
12290
12291 \begin_layout Standard
12292
12293 \family sans
12294 話者
12295 \family default
12296 名はラベルとして挿入し,話者名を挿入するには,そのラベルを相互参照してください.相互参照ダイアログは,登場人物の現在の配役を表示することになります.これは,ト書
12297 きに話者名を挿入するのにも使用することができます.
12298 \end_layout
12299
12300 \begin_layout Subsection
12301 用紙寸法と余白
12302 \end_layout
12303
12304 \begin_layout Standard
12305 USレター寸法で,左余白1.6インチ・右余白0.75インチ・上余白0.5インチ・下余白0.75インチです.
12306 \end_layout
12307
12308 \begin_layout Subsection
12309 環境
12310 \end_layout
12311
12312 \begin_layout Standard
12313 以下の環境が利用可能です.右に示されている
12314 \begin_inset Flex Ruby
12315 status collapsed
12316
12317 \begin_layout Plain Layout
12318
12319 \begin_inset Argument post:1
12320 status collapsed
12321
12322 \begin_layout Plain Layout
12323 キー
12324 \end_layout
12325
12326 \end_inset
12327
12328
12329 \end_layout
12330
12331 \end_inset
12332
12333 割当てを使用するには,hollywood.bindを使用してください.
12334 \end_layout
12335
12336 \begin_layout Itemize
12337
12338 \family sans
12339 一般
12340 \begin_inset Newline newline
12341 \end_inset
12342
12343
12344 \family default
12345 他の環境が動作しない場合に使用しますが,これを使うことは避けるようにしてください.
12346 \end_layout
12347
12348 \begin_layout Itemize
12349 フェイドイン:
12350 \begin_inset space \hfill{}
12351 \end_inset
12352
12353
12354 \family sans
12355 M-z S-I
12356 \family default
12357
12358 \begin_inset Newline newline
12359 \end_inset
12360
12361 通常,この後には「Sallyは目を覚ますと」のように続きます.
12362 \end_layout
12363
12364 \begin_layout Itemize
12365
12366 \family sans
12367 屋内:
12368 \begin_inset space \hfill{}
12369 \end_inset
12370
12371 M-z i
12372 \begin_inset Newline newline
12373 \end_inset
12374
12375
12376 \family default
12377 新しい屋内(INTERIOR)カメラの設定を指定します.この後には,かならずDAYやNIGHTなどを指定して,必要な照明を定義します.この行はすべて大文字で書き
12378 ます.
12379 \end_layout
12380
12381 \begin_layout Itemize
12382
12383 \family sans
12384 屋外:
12385 \begin_inset space \hfill{}
12386 \end_inset
12387
12388 M-z e
12389 \begin_inset Newline newline
12390 \end_inset
12391
12392
12393 \family default
12394 屋外(EXTERIOR)カメラの設定を指定します.この行はすべて大文字で書きます.
12395 \end_layout
12396
12397 \begin_layout Itemize
12398
12399 \family sans
12400 話者
12401 \begin_inset space \hfill{}
12402 \end_inset
12403
12404 M-z s
12405 \begin_inset Newline newline
12406 \end_inset
12407
12408
12409 \family default
12410 話す役.
12411 \end_layout
12412
12413 \begin_layout Itemize
12414
12415 \family sans
12416 括弧付き
12417 \begin_inset space \hfill{}
12418 \end_inset
12419
12420 M-z p
12421 \begin_inset Newline newline
12422 \end_inset
12423
12424 話者
12425 \family default
12426 への指示.自動的に括弧()が挿入されます.
12427 \end_layout
12428
12429 \begin_layout Itemize
12430
12431 \family sans
12432 対話
12433 \begin_inset space \hfill{}
12434 \end_inset
12435
12436 M-z d
12437 \begin_inset Newline newline
12438 \end_inset
12439
12440 話者
12441 \family default
12442 が話す内容.
12443 \end_layout
12444
12445 \begin_layout Itemize
12446
12447 \family sans
12448 画面遷移
12449 \begin_inset space \hfill{}
12450 \end_inset
12451
12452 M-z t
12453 \begin_inset Newline newline
12454 \end_inset
12455
12456
12457 \family default
12458 カメラの動きの指示.例:CUT TO:.
12459 \end_layout
12460
12461 \begin_layout Itemize
12462
12463 \family sans
12464 フェイドアウト:
12465 \begin_inset space \hfill{}
12466 \end_inset
12467
12468 M-z S-I
12469 \end_layout
12470
12471 \begin_layout Itemize
12472
12473 \family sans
12474 著者
12475 \begin_inset space \hfill{}
12476 \end_inset
12477
12478 M-z S-A
12479 \end_layout
12480
12481 \begin_layout Itemize
12482
12483 \family sans
12484 タイトル
12485 \begin_inset space \hfill{}
12486 \end_inset
12487
12488 M-z S-T
12489 \end_layout
12490
12491 \begin_layout Itemize
12492
12493 \family sans
12494 右寄せ住所
12495 \begin_inset space \hfill{}
12496 \end_inset
12497
12498 M-z r
12499 \end_layout
12500
12501 \begin_layout Subsection
12502 脚本で使われる特別な用語
12503 \end_layout
12504
12505 \begin_layout Itemize
12506 (O.S) — off screen
12507 \end_layout
12508
12509 \begin_layout Itemize
12510 (V.0) — voice over
12511 \end_layout
12512
12513 \begin_layout Itemize
12514 b.g.
12515  — background
12516 \end_layout
12517
12518 \begin_layout Itemize
12519 C.U.
12520  — close-up
12521 \end_layout
12522
12523 \begin_layout Itemize
12524 PAN — camera movement
12525 \end_layout
12526
12527 \begin_layout Itemize
12528 INSERT — cut to close-up of
12529 \end_layout
12530
12531 \begin_layout Section
12532 ijmpcおよびijmpd
12533 \end_layout
12534
12535 \begin_layout Standard
12536
12537 \noun on
12538 Panayotis Papasotiriou
12539 \noun default
12540
12541 \end_layout
12542
12543 \begin_layout Subsection
12544 概観
12545 \end_layout
12546
12547 \begin_layout Standard
12548 ijpmcパッケージは,
12549 \emph on
12550 International Journal of Modern Physics C
12551 \emph default
12552 への電子投稿を可能にするためのマクロ集です.同様に,ijpmdパッケージは,
12553 \emph on
12554 International Journal of Modern Physics D
12555 \emph default
12556 へ投稿する現行を作成するためのものです.両誌ともWorld Scientific社の刊行です.対応する文書クラス名は,それぞれ
12557 \family typewriter
12558 ws-ijmpc.cls
12559 \family default
12560 および
12561 \family typewriter
12562 ws-ijmpd.cls
12563 \family default
12564 です.これらのファイルは,著者のための指針とともに,
12565 \begin_inset Flex URL
12566 status collapsed
12567
12568 \begin_layout Plain Layout
12569
12570 http://www.worldscinet.com/ijmpc/mkt/guidelines.shtml
12571 \end_layout
12572
12573 \end_inset
12574
12575 および
12576 \begin_inset Flex URL
12577 status collapsed
12578
12579 \begin_layout Plain Layout
12580
12581 http://www.worldscinet.com/ijmpd/mkt/guidelines.shtml
12582 \end_layout
12583
12584 \end_inset
12585
12586 の各サイトからダウンロードすることができます.両パッケージは,標準「article」パッケージの修正版であり,両者は(一部を除き)ほぼ同一です.\SpecialChar LyX
12587 は,これらのパッ
12588 ケージのほとんどの機能をサポートしています.私は両誌へ投稿する論文を\SpecialChar LyX
12589 で書き上げましたが,何らの問題も生じませんでした.
12590 \end_layout
12591
12592 \begin_layout Subsection
12593 論文を書く
12594 \end_layout
12595
12596 \begin_layout Standard
12597 通常と同じく,論文を書く上で最も易しい方法は,ひな型を使って書き始めることです.
12598 \family sans
12599 ファイル\SpecialChar menuseparator
12600 新規(ひな型使用)
12601 \family default
12602 をクリックして,ひな型
12603 \family typewriter
12604 ijmpc.lyx
12605 \family default
12606 もしくは
12607 \family typewriter
12608 ijmpd.lyx
12609 \family default
12610 を選択してください.すると,原稿で良く使用されるフィールドを含んだ,ほぼ空の文書ができますので,既存のフィールド(鍵括弧
12611 \family typewriter
12612 <>
12613 \family default
12614 を含む)を正しい情報で置き換えてください.以下の各点にご留意ください.
12615 \end_layout
12616
12617 \begin_layout Enumerate
12618 両パッケージでは,フォント寸法や文書のページ様式を変更することが禁じられているので,\SpecialChar LyX
12619 中でこれらを変更することはできません.
12620 \end_layout
12621
12622 \begin_layout Enumerate
12623 文書言語は変更してはいけません.論文をプレビューする前に,babelパッケージが使用されていないことを確認してください.これは,
12624 \begin_inset Info
12625 type  "menu"
12626 arg   "dialog-show document"
12627 \end_inset
12628
12629  
12630 \family sans
12631 \SpecialChar menuseparator
12632 言語
12633 \family default
12634 をクリックして,
12635 \family sans
12636 言語パッケージ
12637 \family default
12638 に「なし」を選択してください.
12639 \end_layout
12640
12641 \begin_layout Enumerate
12642 キーワードを定義するに際しては,「キーワード」様式を用いなくてはなりません.
12643 \end_layout
12644
12645 \begin_layout Enumerate
12646 ijmpcパッケージが提供する「分類コード」様式は,PACS番号のような分類コードを定義するのに使用することができます.この機能は,ijmpdパッケージではサポ
12647 ートされていませんので,ご注意ください.
12648 \end_layout
12649
12650 \begin_layout Enumerate
12651 「定義」「ステップ」「例」「注記」「記法」「定理」「証明」「系」「補題」「命題」「命題(Prop)」「問題」「主張」「予想」といった新しい環境を使用することがで
12652 きます.これらの使い方は,大凡自明でしょう.\SpecialChar LyX
12653 は,これらの環境をすべてサポートし,それぞれについて,適切なラベルと文字様式および連番スキームを使用します.
12654 \end_layout
12655
12656 \begin_layout Enumerate
12657 両パッケージは,単純な引用を使用しますので,natbibパッケージは使用してはなりません.\SpecialChar LyX
12658 中では,引用参照は通常通り表示されますが,出力では上付き文字として表示
12659 されます.引用に通常の本文を使用したい場合には,「See Ref.
12660 \begin_inset space \space{}
12661 \end_inset
12662
12663
12664 \family typewriter
12665
12666 \backslash
12667 refcite{
12668 \family default
12669
12670 \begin_inset Flex Ruby
12671 status collapsed
12672
12673 \begin_layout Plain Layout
12674
12675 \family typewriter
12676
12677 \family default
12678
12679 \begin_inset Argument post:1
12680 status collapsed
12681
12682 \begin_layout Plain Layout
12683 キー
12684 \end_layout
12685
12686 \end_inset
12687
12688
12689 \end_layout
12690
12691 \end_inset
12692
12693
12694 \family typewriter
12695 }
12696 \family default
12697 」のように
12698 \family typewriter
12699 refcite
12700 \family default
12701 コマンドを使用してください.
12702 \end_layout
12703
12704 \begin_layout Enumerate
12705 両パッケージには,「謝辞」環境がありません.謝辞を置くには,「節*」環境を使用してください.
12706 \end_layout
12707
12708 \begin_layout Enumerate
12709 付録は,論文中,謝辞の
12710 \emph on
12711
12712 \emph default
12713 かつ書誌情報の
12714 \emph on
12715
12716 \emph default
12717 であれば,入れることができます.\SpecialChar LyX
12718 上では,「付録領域」という特別な環境があり,これを使って付録の開始位置を指定することができます.この環境は空のままにしておかなく
12719 てはなりません.この環境は,\SpecialChar LaTeX
12720 コマンドを書き出すだけで,実際に出力は行いません.\SpecialChar LyX
12721 上では,青字で「Appendix」という単語が表示され,この箇所より後の節はすべて
12722 付録であることを明示します.「付録領域」は,最初の付録の前に
12723 \emph on
12724 なくてはならない
12725 \emph default
12726 ことに注意してください.さもなくば,出力中において,付録はすべて通常の節として連番が振られてしまいます.
12727 \end_layout
12728
12729 \begin_layout Enumerate
12730 ijmpcおよびijmpdパッケージは,表キャプションを実装するのに
12731 \family typewriter
12732 tbl
12733 \family default
12734 コマンドを使用します.そのため,\SpecialChar LyX
12735 が作成した表は正しく印字されますが,そのキャプションは無視されます.しかし,\SpecialChar TeX
12736 コードを少し使えば,この問題を回避して,キャプション
12737 を望み通り印字することができるようになります.そうするには,表フロートを通常通り作成して,キャプションを削除し,代わりに\SpecialChar TeX
12738 コードで
12739 \family typewriter
12740
12741 \backslash
12742 tbl{表キャプション}{
12743 \family default
12744 (ママ)と入れます.そこに表の内容を入れて,直後を\SpecialChar TeX
12745 コード
12746 \family typewriter
12747 }
12748 \family default
12749 で閉じてください.このからくりがどのように実装されているかを見るには,ひな型ファイルに入っている表の例を精査してみてください.別の方法としては,表キャプションが
12750 欲しい場合に,表フロート全体を
12751 \family typewriter
12752 .tex
12753 \family default
12754 ファイルに収め,このファイルを\SpecialChar LyX
12755 文書に取り込んでください(
12756 \family sans
12757 挿入\SpecialChar menuseparator
12758 ファイル\SpecialChar menuseparator
12759 子文書
12760 \family default
12761 ).表フロートの作り方についての詳細は,各パッケージに含まれている
12762 \family typewriter
12763 ws-ijmpc.tex
12764 \family default
12765 または
12766 \family typewriter
12767 ws-ijmpd.tex
12768 \family default
12769 ファイルをご覧ください.
12770 \end_layout
12771
12772 \begin_layout Subsection
12773 原稿を投稿するための準備
12774 \end_layout
12775
12776 \begin_layout Standard
12777 論文を投稿する前には,\SpecialChar LyX
12778 文書を\SpecialChar LaTeX
12779 ファイルに書き出し(
12780 \family sans
12781 ファイル\SpecialChar menuseparator
12782 書き出し\SpecialChar menuseparator
12783 \SpecialChar LaTeX
12784
12785 \family default
12786
12787 \begin_inset Foot
12788 status open
12789
12790 \begin_layout Plain Layout
12791 実は,\SpecialChar LaTeX
12792  (plain)とpdflatexとの間で選択ができます.論文を準備するのにpdflatexを使用しようとするのであれば,取り込んである画像がPDF形式に
12793 変換され,pdflatexで使用できるように,pdflatexオプションを指定しなくてはなりません.
12794 \end_layout
12795
12796 \end_inset
12797
12798 ,その
12799 \family typewriter
12800 .tex
12801 \family default
12802 ファイルに以下の変更を加える必要があります.
12803 \end_layout
12804
12805 \begin_layout Enumerate
12806
12807 \family typewriter
12808
12809 \backslash
12810 documentclass
12811 \family default
12812 コマンドより前にあるコメント行を削除する.
12813 \end_layout
12814
12815 \begin_layout Enumerate
12816 自身で明示的に\SpecialChar LaTeX
12817 プリアンブルに置いたコマンドを除き,
12818 \family typewriter
12819
12820 \backslash
12821 makeatletter
12822 \family default
12823 コマンドと
12824 \family typewriter
12825
12826 \backslash
12827 makeatother
12828 \family default
12829 コマンドの間にあるものをすべて削除する.
12830 \end_layout
12831
12832 \begin_layout Standard
12833 こうして修正を加えた
12834 \family typewriter
12835 .tex
12836 \family default
12837 ファイルを保存し,必要な回数\SpecialChar LaTeX
12838 で処理してください.それによって得られた
12839 \family typewriter
12840 .dvi
12841 \family default
12842 文書も確認された方がよろしいでしょう.
12843 \end_layout
12844
12845 \begin_layout Section
12846 iopart
12847 \end_layout
12848
12849 \begin_layout Standard
12850
12851 \noun on
12852 Uwe Stöhr
12853 \noun default
12854
12855 \end_layout
12856
12857 \begin_layout Subsection
12858 概要
12859 \end_layout
12860
12861 \begin_layout Standard
12862 iopartパッケージは,Institute of Physics(イギリス物理学会)発行の学術誌へ電子的に投稿する原稿を作成するための文書クラスを提供していま
12863 す.iopartクラスを使用した論文作成方法の著者用説明書は,ウェブサイト
12864 \begin_inset Flex URL
12865 status collapsed
12866
12867 \begin_layout Plain Layout
12868
12869 ftp://ftp.iop.org/pub/journals/latex2e
12870 \end_layout
12871
12872 \end_inset
12873
12874 からiopartパッケージとともにダウンロード可能です.
12875 \end_layout
12876
12877 \begin_layout Subsection
12878 論文を書く
12879 \end_layout
12880
12881 \begin_layout Standard
12882 論文を書くもっとも簡単な方法は,ファイル\SpecialChar menuseparator
12883 新規(ひな型使用)\SpecialChar ldots
12884 にあるひな型
12885 \emph on
12886 IOP-article.lyx
12887 \emph default
12888 を土台にすることです.このひな型は,特定の環境の使用法についても説明しています.もっとも重要な助言として,以下の点にご注意ください.
12889 \end_layout
12890
12891 \begin_layout Itemize
12892 文書がPDF・PS・DVIにコンパイルできるようにするためには,
12893 \family sans
12894 文書\SpecialChar menuseparator
12895 設定\SpecialChar menuseparator
12896 数式オプション
12897 \family default
12898 で,AMSパッケージが読み込まれていないことを確認してください!
12899 \end_layout
12900
12901 \begin_layout Itemize
12902 タイトル環境の選択如何によって,論文の種類が定義されます.種類毎に以下の環境をタイトルに使用してください.
12903 \end_layout
12904
12905 \begin_deeper
12906 \begin_layout Itemize
12907 論文用には
12908 \family sans
12909 タイトル
12910 \end_layout
12911
12912 \begin_layout Itemize
12913 Review用には
12914 \family sans
12915 Review
12916 \end_layout
12917
12918 \begin_layout Itemize
12919 Topical review用には
12920 \family sans
12921 Topical
12922 \end_layout
12923
12924 \begin_layout Itemize
12925 Comment用には
12926 \family sans
12927 Comment
12928 \end_layout
12929
12930 \begin_layout Itemize
12931 Note用には
12932 \family sans
12933 注釈
12934 \end_layout
12935
12936 \begin_layout Itemize
12937 論文用には
12938 \family sans
12939 Paper
12940 \family default
12941 (タイトルと同じ)
12942 \end_layout
12943
12944 \begin_layout Itemize
12945 Preliminary communication用には
12946 \family sans
12947 Prelim
12948 \end_layout
12949
12950 \begin_layout Itemize
12951 Rapid communication用には
12952 \family sans
12953 Rapid
12954 \end_layout
12955
12956 \begin_layout Itemize
12957 編集者へのLetterには
12958 \family sans
12959 書簡
12960 \end_layout
12961
12962 \end_deeper
12963 \begin_layout Itemize
12964
12965 \family sans
12966 書簡
12967 \family default
12968 以外のタイトル環境には,すべて短縮タイトルをつけることもできます.
12969 \end_layout
12970
12971 \begin_layout Itemize
12972 \SpecialChar LyX
12973 では直接にサポートされていませんが,一般的なタイトル環境として
12974 \family sans
12975 Article
12976 \family default
12977 があります.執筆する文書が,他のタイトル型にそぐわない場合には,\SpecialChar TeX
12978 コードでこれを指定することができます.
12979 \end_layout
12980
12981 \begin_layout Standard
12982 特別な表や数式組版に関するヒントなど,詳しい情報については,IOP著者用ガイドラインを参照してください.
12983 \end_layout
12984
12985 \begin_layout Section
12986 Kluwer
12987 \end_layout
12988
12989 \begin_layout Standard
12990
12991 \noun on
12992 Panayotis Papasotiriou
12993 \noun default
12994
12995 \end_layout
12996
12997 \begin_layout Subsection
12998 概要
12999 \end_layout
13000
13001 \begin_layout Standard
13002 Kluwerパッケージは,Kluwer Academic Publishers社が発行する学術誌への電子投稿を可能にするために,同社が作成したマクロ集です.同社
13003 の発行誌のうち,(少なくとも私の専門内で)もっともよく知られているものは,
13004 \emph on
13005 Astrophysics and Space Science
13006 \emph default
13007 (『宇宙物理学と宇宙科学』)と
13008 \emph on
13009 Solar Physics
13010 \emph default
13011 (『太陽系物理学』)ですが,他にも多くの学術誌があります(
13012 \begin_inset Flex URL
13013 status collapsed
13014
13015 \begin_layout Plain Layout
13016
13017 http://www.wkap.nl/jrnllist.htm/JRNLHOME
13018 \end_layout
13019
13020 \end_inset
13021
13022 に全覧があります).Kluwerパッケージは,
13023 \begin_inset Flex URL
13024 status collapsed
13025
13026 \begin_layout Plain Layout
13027
13028 http://www.wkap.nl/kaphtml.htm/STYLEFILES
13029 \end_layout
13030
13031 \end_inset
13032
13033 からダウンロードできます.完全なユーザーの手引きも同パッケージ内に収録されています(個別にダウンロードすることも可能です).
13034 \end_layout
13035
13036 \begin_layout Standard
13037 \SpecialChar LyX
13038 は,このパッケージの機能の多くをサポートしていますが,すべてではありません.しかし,\SpecialChar TeX
13039 コードを必要とするのは,パッケージ中のいくつかの「変わった」コマンドだけにな
13040 りました(
13041 \begin_inset CommandInset ref
13042 LatexCommand ref
13043 reference "subsec:kluwer_peculiarities"
13044
13045 \end_inset
13046
13047 参照).最近,私は\SpecialChar LyX
13048 を使って書いた論文を
13049 \emph on
13050 Astrophysics and Space Science
13051 \emph default
13052 に投稿しましたが,何らの問題も発生しませんでした.
13053 \end_layout
13054
13055 \begin_layout Subsection
13056 論文を書く
13057 \end_layout
13058
13059 \begin_layout Standard
13060 論文を書き始めるには,ひな型ファイルKluwerを使うのが最も簡単です.
13061 \family sans
13062 ファイル\SpecialChar menuseparator
13063 新規(ひな型使用)
13064 \family default
13065 をクリックし,ひな型
13066 \family typewriter
13067 kluwer.lyx
13068 \family default
13069 を選択してください.これは,原稿に通常必要となる各フィールドと,それらの使用法が短く書かれただけの,(ほとんど)何も書かれていない文書です.他のテンプレートと同
13070 様に,既存の文章を(括弧
13071 \family typewriter
13072 <>
13073 \family default
13074 を含む)正しい情報で上書きしてください.
13075 \end_layout
13076
13077 \begin_layout Subsection
13078 投稿の準備
13079 \end_layout
13080
13081 \begin_layout Standard
13082 AAS\SpecialChar TeX
13083 パッケージと同様,論文を投稿する前に,以下のような「後処理」を行う必要があります.
13084 \end_layout
13085
13086 \begin_layout Enumerate
13087
13088 \family sans
13089 ファイル\SpecialChar menuseparator
13090 書き出し\SpecialChar menuseparator
13091 LateX
13092 \family default
13093 をクリックして,論文を\SpecialChar LaTeX
13094 ファイルに書き出す.
13095 \end_layout
13096
13097 \begin_layout Enumerate
13098 生成された
13099 \family typewriter
13100 .tex
13101 \family default
13102 ファイルに,テキストエディタを使用して,以下のような変更を加える.
13103 \end_layout
13104
13105 \begin_deeper
13106 \begin_layout Enumerate
13107
13108 \family typewriter
13109
13110 \backslash
13111 documentclass
13112 \family default
13113 コマンドより前にあるコメント行を削除する.
13114 \end_layout
13115
13116 \begin_layout Enumerate
13117 意図的に\SpecialChar LaTeX
13118 プリアンブルに加えたコマンドを除き,
13119 \family typewriter
13120
13121 \backslash
13122 makeatletter
13123 \family default
13124 から 
13125 \family typewriter
13126
13127 \backslash
13128 makeatother
13129 \family default
13130 の間にあるものを,これらのコマンドも含め,すべて削除する.
13131 \end_layout
13132
13133 \begin_layout Standard
13134 変更した
13135 \family typewriter
13136 .tex
13137 \family default
13138 ファイルを保存する.
13139 \end_layout
13140
13141 \end_deeper
13142 \begin_layout Enumerate
13143 この
13144 \family typewriter
13145 .tex
13146 \family default
13147 ファイルを必要な回数(通常3回以内)だけ\SpecialChar LaTeX
13148 にかける.
13149 \end_layout
13150
13151 \begin_layout Enumerate
13152 生成された
13153 \family typewriter
13154 .dvi
13155 \family default
13156 ファイルを
13157 \family sans
13158 xdvi
13159 \family default
13160 などを使って開き,問題がないか確認する(間違いをしていない限り問題ないはずです).
13161 \end_layout
13162
13163 \begin_layout Subsection
13164 Kluwerパッケージの「風変わり」な特徴
13165 \begin_inset CommandInset label
13166 LatexCommand label
13167 name "subsec:kluwer_peculiarities"
13168
13169 \end_inset
13170
13171
13172 \end_layout
13173
13174 \begin_layout Standard
13175 Kluwerパッケージには,以下のような「風変わりな」特徴があります.
13176 \end_layout
13177
13178 \begin_layout Enumerate
13179 複数の論文を1つの\SpecialChar LaTeX
13180 ファイルへ入れることができます
13181 \begin_inset Foot
13182 status collapsed
13183
13184 \begin_layout Plain Layout
13185 わざわざこんなことをする必要はないでしょう.
13186 \end_layout
13187
13188 \end_inset
13189
13190 .各論文は,「article」環境で囲まなくてはなりません.残念ながら,1つの論文だけを書く場合でも,この環境を省略することはできません.つまり,各論文は
13191 \family typewriter
13192
13193 \backslash
13194 begin{article}
13195 \family default
13196 で始まり,
13197 \family typewriter
13198
13199 \backslash
13200 end{article}
13201 \family default
13202 で終わります.この環境を\SpecialChar LyX
13203 に実装することも可能でしたが,醜い上に初心者を混乱させる可能性があるので,実装することはしませんでした.したがって,これらの命令(
13204 \family typewriter
13205
13206 \backslash
13207 begin{article}
13208 \family default
13209
13210 \family typewriter
13211
13212 \backslash
13213 end{article}
13214 \family default
13215 )は,直接本文中に入力して,\SpecialChar LaTeX
13216 コード(「\SpecialChar TeX
13217 コード」のことです)としてマークする必要があります.
13218 \end_layout
13219
13220 \begin_layout Enumerate
13221 論文の冒頭に置く情報(タイトル・サブタイトル・著者名・所属・ヘッダ用タイトル・ヘッダ用著者名・概要・キーワード)は,「opening」とよばれる環境に入れなくて
13222 はなりません.これは\SpecialChar LyX
13223 では実装されていませんので,タイトルやサブタイトルなどは,2つの\SpecialChar TeX
13224 コード行(
13225 \family typewriter
13226
13227 \backslash
13228 begin{opening}
13229 \family default
13230 および
13231 \family typewriter
13232
13233 \backslash
13234 end{opening}
13235 \family default
13236 )の間に入れる必要があります.
13237 \end_layout
13238
13239 \begin_layout Enumerate
13240 ユーザーの手引きによれば,書誌情報の各項目のラベルは,
13241 \family typewriter
13242
13243 \begin_inset Newline newline
13244 \end_inset
13245
13246
13247 \backslash
13248 protect
13249 \backslash
13250 citeauthoryear{
13251 \family default
13252 \emph on
13253 著者名
13254 \family typewriter
13255 \emph default
13256 }{
13257 \family default
13258 \emph on
13259
13260 \family typewriter
13261 \emph default
13262 }
13263 \family default
13264  と書く必要があります.
13265 \end_layout
13266
13267 \begin_layout Standard
13268 ひな型
13269 \family typewriter
13270 kluwer.lyx
13271 \family default
13272 は,これらの風変わりな点がすべて考慮されています.このひな型を使用して,論文を新たに書きはじめる場合には,特別なことを行う必要はありません.以下の点にのみ留意し
13273 てください.
13274 \end_layout
13275
13276 \begin_layout Enumerate
13277 ひな型にある\SpecialChar TeX
13278 コードを削除しないでください.
13279 \end_layout
13280
13281 \begin_layout Enumerate
13282 新しい書誌情報項目を入力する場合には,ひな型に例示されている書誌情報項目をコピーして,必要に応じて修正してください.
13283 \end_layout
13284
13285 \begin_layout Section
13286 Koma-Script
13287 \end_layout
13288
13289 \begin_layout Standard
13290
13291 \noun on
13292 Bernd Rellermeyer
13293 \noun default
13294
13295 \end_layout
13296
13297 \begin_layout Subsection
13298 概要
13299 \end_layout
13300
13301 \begin_layout Standard
13302 \SpecialChar LyX
13303 の文書クラス
13304 \emph on
13305 article (koma-script)
13306 \emph default
13307
13308 \emph on
13309 report (koma-script)
13310 \emph default
13311
13312 \emph on
13313 book
13314 \emph default
13315  
13316 \emph on
13317 (koma-script)
13318 \emph default
13319
13320 \emph on
13321 letter
13322 \emph default
13323  
13324 \emph on
13325 (koma-script)
13326 \emph default
13327 は,それぞれKoma-Scriptファミリーの\SpecialChar LaTeX
13328 文書クラス
13329 \family typewriter
13330 scrartcl.cls
13331 \family default
13332
13333 \family typewriter
13334 scrreprt.cls
13335 \family default
13336
13337 \family typewriter
13338 scrbook.cls
13339 \family default
13340
13341 \family typewriter
13342 scrlettr.cls
13343 \family default
13344 に対応しています.これらは,標準文書クラス
13345 \family typewriter
13346 article.cls
13347 \family default
13348
13349 \family typewriter
13350 report.cls
13351 \family default
13352
13353 \family typewriter
13354 book.cls
13355 \family default
13356
13357 \family typewriter
13358 letter.cls
13359 \family default
13360 の代替物であり,これらよりも多くの点でヨーロッパに於ける活版印刷の慣例に合致します.
13361 \end_layout
13362
13363 \begin_layout Itemize
13364 標準文字寸法は,
13365 \emph on
13366 article (koma-script)
13367 \emph default
13368
13369 \emph on
13370 report (koma-script)
13371 \emph default
13372
13373 \emph on
13374 book (koma-script)
13375 \emph default
13376 で11pt,
13377 \emph on
13378 letter (koma-script)
13379 \emph default
13380 で12ptです.
13381 \end_layout
13382
13383 \begin_layout Itemize
13384 見出しや箇条書き(記述)環境のラベル,および
13385 \emph on
13386 letter (koma-script)
13387 \emph default
13388 文書クラスの要素の多くでは,ボールド体サンセリフフォントが使われます
13389 \begin_inset Foot
13390 status collapsed
13391
13392 \begin_layout Plain Layout
13393 ボールド体サンセリフフォントには,古いcmフォントと新しいecフォントの間に大きな違いがあり,特に見出しの表示の違いが際立ちます.比較すると,ecボールドサンセ
13394 リフフォントの方が,少し細く見えます.ecフォントを使用する際に「通常の」外観が欲しい場合には,
13395 \shape smallcaps
13396 Walter Schmidt
13397 \shape default
13398 作の\SpecialChar LaTeX
13399 パッケージ
13400 \family typewriter
13401 cmsd.sty
13402 \family default
13403 が役立ちます.
13404 \end_layout
13405
13406 \end_inset
13407
13408 .章見出しの連番は,節見出しの連番と同様に行われ,別行立てで「 Chapter\SpecialChar ldots
13409 」という行がつきません.さらに,多くのオプションによって,見出しの外観を修正するこ
13410 とができます(\SpecialChar LyX
13411 では,
13412 \family sans
13413 文書\SpecialChar menuseparator
13414 設定
13415 \family default
13416 ダイアログの
13417 \family sans
13418 クラスオプション
13419 \family default
13420 フィールドで指定します).これらのオプションの独語での詳細な説明が,Koma-Scriptの取扱説明書
13421 \emph on
13422 scrguide
13423 \emph default
13424 にあります.
13425 \end_layout
13426
13427 \begin_layout Itemize
13428 Koma-Script文書クラスで,印字部分をデザインする主な方法は,
13429 \family sans
13430 BCOR
13431 \family default
13432 オプションまたは
13433 \family sans
13434 DIV
13435 \family default
13436 オプションを使う方法です(\SpecialChar LyX
13437 では,
13438 \family sans
13439 文書\SpecialChar menuseparator
13440 設定
13441 \family default
13442 ダイアログの
13443 \family sans
13444 クラスオプション
13445 \family default
13446 フィールドで指定します).これらのオプションは
13447 \family sans
13448 文書\SpecialChar menuseparator
13449 設定
13450 \family default
13451 ダイアログのオプションと同様に,ページ余白を明示的に変更することができます.これらとその他印字領域オプションのドイツ語での詳細な説明が,Koma-Script取
13452 扱説明書
13453 \emph on
13454 scrguide
13455 \emph default
13456 にあります.
13457 \end_layout
13458
13459 \begin_layout Itemize
13460 Koma-Scriptファミリーの\SpecialChar LaTeX
13461 文書クラスには,多くの追加コマンドが定義されています.それらのうち,\SpecialChar LyX
13462 で意味を持つものは,対応する段落環境として実装されています
13463
13464 \end_layout
13465
13466 \begin_layout Standard
13467 Koma-Scriptファミリーの\SpecialChar LaTeX
13468 文書クラスに関する独語の詳細な説明が,Koma-Script取扱説明書
13469 \emph on
13470 scrguide
13471 \emph default
13472 にあります
13473 \begin_inset Foot
13474 status collapsed
13475
13476 \begin_layout Plain Layout
13477 英語翻訳版の
13478 \emph on
13479 screnggu
13480 \emph default
13481 もありますが,完訳ではありません.
13482 \end_layout
13483
13484 \end_inset
13485
13486 .以下の各節では,\SpecialChar LyX
13487 に関係する側面のみ説明致します.
13488 \end_layout
13489
13490 \begin_layout Subsection
13491 article (koma-script)・report (koma-script)・book (koma-script)
13492 \end_layout
13493
13494 \begin_layout Standard
13495 文書クラス
13496 \emph on
13497 article (koma-script)
13498 \emph default
13499
13500 \emph on
13501 report (koma-script)
13502 \emph default
13503
13504 \emph on
13505 book
13506 \emph default
13507  
13508 \emph on
13509 (koma-script)
13510 \emph default
13511 は,それぞれレイアウトファイル
13512 \family typewriter
13513 scrartcl.layout
13514 \family default
13515
13516 \family typewriter
13517 scrreprt.layou
13518 \family default
13519 t・
13520 \family typewriter
13521 crbook.layout
13522 \family default
13523 によって実装されています.これらは,対応する標準文書クラス
13524 \emph on
13525 article
13526 \emph default
13527
13528 \emph on
13529 report
13530 \emph default
13531
13532 \emph on
13533 book
13534 \emph default
13535 の段落環境を,若干の修正を加えた上ですべて含んでいますが,\SpecialChar LyX
13536 固有の
13537 \family sans
13538 箇条書き(一覧)
13539 \family default
13540 環境は例外であり,同じ機能を持つ新しい
13541 \family sans
13542 ラベリング
13543 \family default
13544 環境で置き換えられています.この
13545 \family sans
13546 ラベリング
13547 \family default
13548 環境以外にも,新しい段落環境が多く追加されています.これらは,
13549 \emph on
13550 letter (koma-script)
13551 \emph default
13552 には含まれていないのでご注意ください.
13553 \end_layout
13554
13555 \begin_layout Itemize
13556
13557 \family sans
13558 部(addpart)
13559 \family default
13560
13561 \family sans
13562 章(addchap)
13563 \family default
13564
13565 \family sans
13566 節(addsec)
13567 \family default
13568 :これらは,それぞれ
13569 \family sans
13570 部*
13571 \family default
13572
13573 \family sans
13574 章*
13575 \family default
13576
13577 \family sans
13578 節*
13579 \family default
13580 と同等の働きをしますが,加えて目次に項目が表示されるようになります.
13581 \family sans
13582 部(addpart)
13583 \family default
13584
13585 \family sans
13586 章(addchap)
13587 \family default
13588 は,
13589 \emph on
13590 article (koma-script)
13591 \emph default
13592 には収録されていません.
13593 \end_layout
13594
13595 \begin_layout Itemize
13596
13597 \family sans
13598 章(addchap*)
13599 \family default
13600
13601 \family sans
13602 節(addsec*)
13603 \family default
13604 :これらは,
13605 \family sans
13606 章(addchap
13607 \family default
13608 )と
13609 \family sans
13610 節(addsec)
13611 \family default
13612 とまったく同等に動作しますが,加えてランニングへッダを取り除きます.
13613 \family sans
13614 章(addchap*)
13615 \family default
13616 は, 
13617 \emph on
13618 article (koma-script)
13619 \emph default
13620 には収録されていません
13621 \begin_inset Foot
13622 status collapsed
13623
13624 \begin_layout Plain Layout
13625
13626 \emph on
13627 book (koma-script)
13628 \emph default
13629
13630 \emph on
13631 report (koma-script)
13632 \emph default
13633 には,
13634 \family typewriter
13635
13636 \backslash
13637 addpart*
13638 \family default
13639 コマンドもありますが,これは
13640 \family sans
13641 Part*
13642 \family default
13643 と同一なので,\SpecialChar LyX
13644 では実装されていません.
13645 \end_layout
13646
13647 \end_inset
13648
13649
13650 \end_layout
13651
13652 \begin_layout Itemize
13653
13654 \family sans
13655 小見出し(minisec)
13656 \family default
13657 :これは文書構造に現れない形で,続く段落の直上に標準文字寸法の見出しを付けます.
13658 \end_layout
13659
13660 \begin_layout Itemize
13661
13662 \family sans
13663 上部キャプション
13664 \family default
13665
13666 \family sans
13667 下部キャプション
13668 \family default
13669 は,ある要素の上部ないし下部にキャプションを配置する際,位置に応じて正しく余白取りを行う特別なキャプションです(組版規則に厳密に従うならば,表キャプションは,つ
13670 ねに表の上に置くべきでしょう).また,クラスオプション
13671 \family typewriter
13672 tablecaptionsabove
13673 \family default
13674 を用いれば,キャプションを指定すると,表には
13675 \family sans
13676 上部キャプション
13677 \family default
13678 が,図には
13679 \family sans
13680 下部キャプション
13681 \family default
13682 が適用されるようになります.これを使用するためには,Koma-Script第2.8q版以上が必要です.
13683 \end_layout
13684
13685 \begin_layout Itemize
13686
13687 \family sans
13688 格言(dictum)
13689 \family default
13690 :これは,章頭などに警句を置くのに用いることができます.オプション引数(
13691 \family sans
13692 挿入\SpecialChar menuseparator
13693 格言著者
13694 \family default
13695 )を用いれば,格言の作者を入れることができます.格言と作者の間は,線で区切られます.これを使用するためには,Koma-Script第2.8q版以上が必要です.
13696 \family sans
13697 格言(dictum)
13698 \family default
13699 は,
13700 \emph on
13701 article (koma-script)
13702 \emph default
13703 には収録されていません.
13704 \end_layout
13705
13706 \begin_layout Standard
13707 以下の各環境は,標準の
13708 \family sans
13709 タイトル
13710 \family default
13711
13712 \family sans
13713 著者
13714 \family default
13715
13716 \family sans
13717 日付
13718 \family default
13719 とともに文書のタイトル領域を形成します.これらは,最初の「通常の」段落よりも前に置かれる必要があります
13720 \begin_inset Foot
13721 status collapsed
13722
13723 \begin_layout Plain Layout
13724 つまり,対応する\SpecialChar LaTeX
13725 コマンドが
13726 \family typewriter
13727
13728 \backslash
13729 maketitle
13730 \family default
13731 コマンドよりも前に現れなくてはなりません.
13732 \end_layout
13733
13734 \end_inset
13735
13736 .これらの環境が2度以上使用された場合には,後に使用されたものが前のものを上書きします.つまり最後に使用したもののみが有効になります.しかしながら,
13737 \family sans
13738 タイトル
13739 \family default
13740
13741 \family sans
13742 著者
13743 \family default
13744
13745 \family sans
13746 日付
13747 \family default
13748 のような異なる環境の順序を変更しても,生成された文書には何の効果も生じません.
13749 \end_layout
13750
13751 \begin_layout Itemize
13752
13753 \family sans
13754 主題
13755 \family default
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 \end_layout
13770
13771 \begin_layout Itemize
13772
13773 \family sans
13774 出版社
13775 \family default
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 \end_layout
13790
13791 \begin_layout Itemize
13792
13793 \family sans
13794 献呈
13795 \family default
13796
13797 \emph on
13798 report (koma-script)
13799 \emph default
13800
13801 \emph on
13802 book (koma-script)
13803 \emph default
13804 では,タイトル頁の次に,献辞用の中央揃えの段落を独立した頁として生成します.
13805 \emph on
13806 article (koma-script)
13807 \emph default
13808 の場合は,通常のタイトル部(
13809 \family sans
13810 タイトル
13811 \family default
13812
13813 \family sans
13814 著者
13815 \family default
13816
13817 \family sans
13818 日付
13819 \family default
13820 )の下に献辞用の中央揃えの段落を生成します.
13821 \end_layout
13822
13823 \begin_layout Itemize
13824
13825 \family sans
13826 タイトル頭書き
13827 \family default
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 \end_layout
13842
13843 \begin_layout Itemize
13844
13845 \family sans
13846 扉裏上部
13847 \family default
13848
13849 \emph on
13850 report (koma-script)
13851 \emph default
13852 や 
13853 \emph on
13854 book (koma-script)
13855 \emph default
13856 の両面印刷において,扉裏上部に左揃え段落を生成します.片面印刷や,
13857 \emph on
13858 article (koma-script)
13859 \emph default
13860 では何の効果も生じません.
13861 \end_layout
13862
13863 \begin_layout Itemize
13864
13865 \family sans
13866 扉裏下部
13867 \family default
13868
13869 \emph on
13870 report (koma-script)
13871 \emph default
13872 や 
13873 \emph on
13874 book (koma-script)
13875 \emph default
13876 の両面印刷において,扉裏下部に左揃え段落を生成します.片面印刷や,
13877 \emph on
13878 article (koma-script)
13879 \emph default
13880 では何の効果も生じません.
13881 \end_layout
13882
13883 \begin_layout Itemize
13884
13885 \family sans
13886 追加タイトル
13887 \family default
13888 :実際の文書の前に,整形を行わない段落から成る,特殊な「汚い」ページを生成します.
13889 \end_layout
13890
13891 \begin_layout Standard
13892 文書クラス
13893 \emph on
13894 article (koma-script)
13895 \emph default
13896
13897 \emph on
13898 report (koma-script)
13899 \emph default
13900
13901 \emph on
13902 book (koma-script)
13903 \emph default
13904 の 各レイアウトファイルは,
13905 \family typewriter
13906 scrmacros.inc
13907 \family default
13908 ファイルを読み込みます.このファイルは,ユーザ環境を定義する場所として想定されています.s
13909 \family typewriter
13910 crmacros.inc
13911 \family default
13912 を,個人用レイアウトディレクトリにコピーして編集してください!
13913 \end_layout
13914
13915 \begin_layout Subsection
13916 letter (koma-script)
13917 \end_layout
13918
13919 \begin_layout Description
13920 \noindent
13921
13922 \family sans
13923 \series bold
13924 註:
13925 \family default
13926 \series default
13927  本節は,廃版となっている
13928 \family sans
13929 KOMA-Script-Letter (v.
13930 \begin_inset space ~
13931 \end_inset
13932
13933 1)
13934 \family default
13935 について論じています.これは,最近のKOMAリリースでは収録もされていません.現行の
13936 \family sans
13937 KOMA-Script-Letter (v.
13938 \begin_inset space ~
13939 \end_inset
13940
13941 2)
13942 \family default
13943 については,次節を参照してください!
13944 \end_layout
13945
13946 \begin_layout Standard
13947 \noindent
13948 文書クラス
13949 \emph on
13950 letter (koma-script)
13951 \emph default
13952 は,レイアウトファイル 
13953 \family typewriter
13954 scrlettr.layout
13955 \family default
13956 で実装されています.このレイアウトファイルには,対応する標準文書クラス
13957 \emph on
13958 letter
13959 \emph default
13960 の全段落環境が,部分的に変更を加えた形で収録されていますが,\SpecialChar LyX
13961 固有環境の
13962 \family sans
13963 \SpecialChar LyX
13964 コード
13965 \family default
13966
13967 \family sans
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 \SpecialChar LaTeX
13981
13982 \family default
13983
13984 \family sans
13985 引用(字下げあり)
13986 \family default
13987
13988 \family sans
13989 引用(字下げなし)
13990 \family default
13991
13992 \family sans
13993 詩句
13994 \family default
13995 が収録されています.さらに,新しいletter固有環境がたくさん追加されています.
13996 \end_layout
13997
13998 \begin_layout Standard
13999 この文書クラスで作成した書簡の外観は,様々な\SpecialChar LaTeX
14000 コマンドを\SpecialChar LaTeX
14001 プリアンブルに置くことで制御することができます
14002 \begin_inset Foot
14003 status collapsed
14004
14005 \begin_layout Plain Layout
14006 例えば,名前と住所の入った書簡ヘッダの標準的外観は,きわめて頑固です.「普通の」へッダは,プリアンブル中に以下のようなコマンドを入れることで生成することができま
14007 す.
14008 \end_layout
14009
14010 \begin_layout LyX-Code
14011
14012 \backslash
14013 firsthead{
14014 \backslash
14015 parbox[b]{
14016 \backslash
14017 textwidth}
14018 \end_layout
14019
14020 \begin_layout LyX-Code
14021   {
14022 \backslash
14023 ignorespaces 
14024 \backslash
14025 fromname
14026 \backslash
14027
14028 \backslash
14029  
14030 \backslash
14031 ignorespaces 
14032 \backslash
14033 fromaddress}} 
14034 \end_layout
14035
14036 \begin_layout LyX-Code
14037
14038 \backslash
14039 nexthead{
14040 \backslash
14041 parbox[b]{
14042 \backslash
14043 textwidth}
14044 \end_layout
14045
14046 \begin_layout LyX-Code
14047   {
14048 \backslash
14049 ignorespaces 
14050 \backslash
14051 fromname 
14052 \backslash
14053 hfill 
14054 \backslash
14055 ignorespaces 
14056 \backslash
14057 pagename
14058 \backslash
14059
14060 \end_layout
14061
14062 \begin_layout LyX-Code
14063
14064 \backslash
14065 thepage}}
14066 \end_layout
14067
14068 \end_inset
14069
14070 .これらの\SpecialChar LaTeX
14071 コマンドのドイツ語での詳細な説明は,Koma-Scriptの取扱説明書
14072 \emph on
14073 scrguide
14074 \emph default
14075 にあります.この方法で,書簡の著者は,個人用書簡レイアウトを作ることができます.
14076 \end_layout
14077
14078 \begin_layout Standard
14079
14080 \family sans
14081 書簡
14082 \family default
14083 環境および
14084 \family sans
14085 頭語
14086 \family default
14087 環境は,書簡の冒頭部を定義するもので,すべての書簡で使用しなくてはなりません.\SpecialChar LyX
14088 文書クラスでは,これらの環境を強調するために,左余白にそれぞれ
14089 \shape italic
14090 L
14091 \shape default
14092
14093 \shape italic
14094 O
14095 \shape default
14096 という文字が表示されます.同一ファイル中には,複数の書簡を書くことができます.
14097 \family sans
14098 頭語
14099 \family default
14100 環境は,同じ受取人への書簡を新しく書き出すものであり,
14101 \family sans
14102 書簡
14103 \family default
14104 環境は,新しい受取人を生成するものです.
14105 \family sans
14106 結語
14107 \family default
14108
14109 \family sans
14110 PS
14111 \family default
14112
14113 \family sans
14114 CC
14115 \family default
14116
14117 \family sans
14118 Encl
14119 \family default
14120 は,通常の段落環境なので,同一の書簡中でも何度も使用することができます.
14121 \end_layout
14122
14123 \begin_layout Itemize
14124
14125 \family sans
14126 書簡
14127 \family default
14128 :受取人のための段落をつくり,暗黙に書簡の開始を定義します.
14129 \end_layout
14130
14131 \begin_layout Itemize
14132
14133 \family sans
14134 頭語
14135 \family default
14136 :敬称のための段落をつくり,暗黙に新しい書簡を開始します.
14137 \end_layout
14138
14139 \begin_layout Itemize
14140
14141 \family sans
14142 結語
14143 \family default
14144 :結語のための段落をつくります.
14145 \end_layout
14146
14147 \begin_layout Itemize
14148
14149 \family sans
14150 PS
14151 \family default
14152 :追伸のための段落をつくります.
14153 \end_layout
14154
14155 \begin_layout Itemize
14156
14157 \family sans
14158 CC
14159 \family default
14160 :同報一覧のための段落をつくります.
14161 \end_layout
14162
14163 \begin_layout Itemize
14164
14165 \family sans
14166 Encl
14167 \family default
14168 :同封物のための段落をつくります.
14169 \end_layout
14170
14171 \begin_layout Standard
14172
14173 \family sans
14174 名前
14175 \family default
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 場所(Place
14191 \family default
14192 )・
14193 \family sans
14194 返送先住所
14195 \family default
14196
14197 \family sans
14198 配送手段(Specialmail)
14199 \family default
14200
14201 \family sans
14202 場所
14203 \family default
14204
14205 \family sans
14206 タイトル
14207 \family default
14208
14209 \family sans
14210 主題
14211 \family default
14212 は,情報入力を促すラベルの付いた入力環境で,文書クラスが適切な処理を行います
14213 \begin_inset Foot
14214 status collapsed
14215
14216 \begin_layout Plain Layout
14217 上述の
14218 \family sans
14219 書簡
14220 \family default
14221
14222 \family sans
14223 頭語
14224 \family default
14225 が,これらのような入力環境でないのは,矛盾しているように感じられるかもしれません.しかしながら,これら2つの環境は特別の意味を持っているために,これらは左余白に
14226 一文字をマークした通常の段落環境として実装しました.さらに,
14227 \family sans
14228 頭語
14229 \family default
14230 環境と
14231 \family sans
14232 結語
14233 \family default
14234 環境が著しく異なって見えると対称性が損なわれることになるのも理由の一つです.
14235 \end_layout
14236
14237 \end_inset
14238
14239 .これらの環境は,対応する
14240 \family sans
14241 頭語
14242 \family default
14243 環境の前に置く必要があります.
14244 \end_layout
14245
14246 \begin_layout Standard
14247 生成された書簡の実際の外観は,特定の環境の使い方だけではなく,他の要素にも依存するため,これらの環境をWYSIWYGとして実装することには,あまり意味がありませ
14248 ん.たとえば,
14249 \family sans
14250 署名
14251 \family default
14252 環境で入力した署名は,標準的な挙動では,同じ書簡に
14253 \family sans
14254 結語
14255 \family default
14256 環境も使用されているときのみ,書簡の出力に現れます.
14257 \family sans
14258 電話
14259 \family default
14260 環境に入力された値は,標準的な挙動では,書簡の出力には全く表示されません.書簡のヘッダを自由にデザインできることは,前出の脚注で示してあります.
14261 \end_layout
14262
14263 \begin_layout Standard
14264 入力環境は,空の段落として使うことができます.これは,たとえば
14265 \family sans
14266 署名
14267 \family default
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 \end_layout
14282
14283 \begin_layout Standard
14284 入力環境を使用すると,個人データ(名前や住所など)が既に入力された入力環境と,後から入力するデータの入力環境を備えた,書簡のひな型を作成することができます.
14285 \end_layout
14286
14287 \begin_layout Itemize
14288
14289 \family sans
14290 名前
14291 \family default
14292 :送り主の名前.標準的な挙動では,書簡のヘッダ部にスモールキャップ体の中央揃えの段落として表示されます.
14293 \end_layout
14294
14295 \begin_layout Itemize
14296
14297 \family sans
14298 署名
14299 \family default
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 \end_layout
14314
14315 \begin_layout Itemize
14316
14317 \family sans
14318 住所
14319 \family default
14320 :送り主の住所.標準的な挙動では,書簡ヘッダの送り主の名前の下に中央揃えの段落として表示されます.
14321 \end_layout
14322
14323 \begin_layout Itemize
14324
14325 \family sans
14326 電話
14327 \family default
14328 :送り主の電話番号.標準的な挙動では,\SpecialChar LaTeX
14329 変数
14330 \family typewriter
14331
14332 \backslash
14333 telephonenum
14334 \family default
14335 を設定するだけです.
14336 \end_layout
14337
14338 \begin_layout Itemize
14339
14340 \family sans
14341 場所(Place)
14342 \family default
14343 :書簡を書いた場所.
14344 \end_layout
14345
14346 \begin_layout Itemize
14347
14348 \family sans
14349 日付
14350 \family default
14351 :書簡を書いた日付.
14352 \family sans
14353 場所(Place)
14354 \family default
14355
14356 \family sans
14357 日付
14358 \family default
14359 は,標準的な挙動では,受取人フィールドの下に,単一の右揃え行として場所と日付を生成します.空の
14360 \family sans
14361 日付
14362 \family default
14363 環境を作成しておくと,
14364 \family sans
14365 場所(Place)
14366 \family default
14367 の値如何に関わらず,場所も日付も表示されません.
14368 \family sans
14369 日付
14370 \family default
14371 環境を使用しない場合には,書簡を出力した日付が使用されます.
14372 \end_layout
14373
14374 \begin_layout Itemize
14375
14376 \family sans
14377 返送先住所
14378 \family default
14379 :送り主の返送先住所.標準的な挙動では,受取人の上に小文字のサンセリフ体フォントで表示されます.
14380 \end_layout
14381
14382 \begin_layout Itemize
14383
14384 \family sans
14385 特別便
14386 \family default
14387 :特別便の情報.標準的な挙動では,受取人フィールドの上かつ返送先住所の下に,下線付きで表示されます.
14388 \end_layout
14389
14390 \begin_layout Itemize
14391
14392 \family sans
14393 場所
14394 \family default
14395 :追加情報.標準的な挙動では,受取人フィールドの下の右側に表示されます.
14396 \end_layout
14397
14398 \begin_layout Itemize
14399
14400 \family sans
14401 タイトル
14402 \family default
14403 :書簡の題名.標準的な挙動では,主題の上に大きなボールド体サンセリフフォントで表示されます.
14404 \end_layout
14405
14406 \begin_layout Itemize
14407
14408 \family sans
14409 主題
14410 \family default
14411 :書簡の主題.標準的な挙動では,
14412 \family sans
14413 頭語
14414 \family default
14415 環境の上にボールド体で表示されます.
14416 \end_layout
14417
14418 \begin_layout Standard
14419
14420 \family sans
14421 Yourref・Yourmail・Myref・顧客・インボイス
14422 \family default
14423 といった環境は,
14424 \family sans
14425 タイトル
14426 \family default
14427 行の上に「Your ref.」・「Your letter of」・「Our ref.」・「Customer no.」・「Invoice no.」・「Date」といったフ
14428 ィールド行を持つ,ビジネス書簡を作成します.日付フィールドには,
14429 \family sans
14430 日付
14431 \family default
14432 環境の値が使用されます.しかしながら,これらの「ビジネス書簡環境」の一つを使用した場合には,
14433 \family sans
14434 場所(Place)
14435 \family default
14436 の値は書簡には表示されなくなり,\SpecialChar LaTeX
14437 変数
14438 \family typewriter
14439
14440 \backslash
14441 fromplace
14442 \family default
14443 が設定させるだけになります.通常時に,受取人フィールドの下に右揃えで出力される場所と日付の出力は,抑制されます.これらのビジネス環境は,ラベル付きの入力環境とし
14444 て実装されており,対応する
14445 \family sans
14446 頭語
14447 \family default
14448 環境よりも前に置く必要があります.
14449 \end_layout
14450
14451 \begin_layout Itemize
14452
14453 \family sans
14454 Yourref
14455 \family default
14456 : Your ref.
14457 \end_layout
14458
14459 \begin_layout Itemize
14460
14461 \family sans
14462 Yourmail
14463 \family default
14464 : Your letter of.
14465 \end_layout
14466
14467 \begin_layout Itemize
14468
14469 \family sans
14470 Myref
14471 \family default
14472 : Our ref.
14473 \end_layout
14474
14475 \begin_layout Itemize
14476
14477 \family sans
14478 Customer
14479 \family default
14480 : Customer no.
14481 \end_layout
14482
14483 \begin_layout Itemize
14484
14485 \family sans
14486 Invoice
14487 \family default
14488 : Invoice no.
14489 \end_layout
14490
14491 \begin_layout Subsection
14492 新しいletterクラス:letter (koma-script v.2)
14493 \end_layout
14494
14495 \begin_layout Standard
14496 by 
14497 \noun on
14498 Jürgen Spitzmüller
14499 \begin_inset VSpace medskip
14500 \end_inset
14501
14502
14503 \end_layout
14504
14505 \begin_layout Standard
14506 \noindent
14507 Koma-Script第2.8版では,新しいletterクラス
14508 \family typewriter
14509 scrlttr2
14510 \family default
14511 が導入されたため,
14512 \family typewriter
14513 scrlettr
14514 \family default
14515 は廃止されてサポート対象外となりました.これは—\SpecialChar LaTeX
14516 側で—全く新しいインターフェイスを持っており,旧クラスとは互換性がありません.したがって,\SpecialChar LyX
14517 は両者をサポートしてい
14518 ますが,新しい方のクラスを使用することを推奨します.
14519 \end_layout
14520
14521 \begin_layout Standard
14522 このクラスは,
14523 \emph on
14524 letter (koma-script)
14525 \emph default
14526 と同一の機能に加えて,新しい機能をいくつかサポートしています.基本となる項目は,
14527 \family sans
14528 住所
14529 \family 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 URL
14553 \family default
14554
14555 \family sans
14556 ファックス
14557 \family default
14558
14559 \family sans
14560 銀行
14561 \family default
14562 ,およびヘッダに(
14563 \family sans
14564 挿入\SpecialChar menuseparator
14565
14566 \family default
14567 で)
14568 \family sans
14569 ロゴ
14570 \family default
14571 を入れることができるようになった点です.
14572 \end_layout
14573
14574 \begin_layout Standard
14575 しかしながら,もっとも大きな改善は,書簡のレイアウトを,ほとんどどんなニーズにも合わせて設定できるようになった点でしょう.これはプリアンブルか,クラスオプション
14576 として読み込まれる特別なスタイルファイル(「レタークラスオプション」,拡張子
14577 \family typewriter
14578 *.lco
14579 \family default
14580 )によって設定することができます
14581 \begin_inset Foot
14582 status collapsed
14583
14584 \begin_layout Plain Layout
14585 KOMAパッケージには,既定の
14586 \family typewriter
14587 *.lco
14588 \family default
14589 ファイルがいくつか収録されています.たとえば,ドイツの組版規則に則った
14590 \family typewriter
14591 DIN.lco
14592 \family default
14593 や,旧
14594 \family typewriter
14595 scrlettr
14596 \family default
14597 クラスの既定レイアウトを提供する
14598 \family typewriter
14599 KOMAold.lco
14600 \family default
14601 などです.たとえば後者は,
14602 \family sans
14603 文書\SpecialChar menuseparator
14604 設定\SpecialChar menuseparator
14605 文書クラス\SpecialChar menuseparator
14606 クラスオプション
14607 \family default
14608 フィールドにクラスオプション
14609 \family typewriter
14610 KOMAold
14611 \family default
14612 を加えることで読み込むことができます.
14613 \end_layout
14614
14615 \end_inset
14616
14617 .用例としては,\SpecialChar LyX
14618 に収録されているひな型
14619 \emph on
14620 koma-letter2
14621 \emph default
14622 をご覧ください.詳細な解説は,Koma-Script取扱説明書(
14623 \emph on
14624 scrguide
14625 \emph default
14626 )にあります.
14627 \end_layout
14628
14629 \begin_layout Subsection
14630 問題点
14631 \end_layout
14632
14633 \begin_layout Standard
14634 Koma-Script文書クラスを\SpecialChar LyX
14635 上に表示する上で,\SpecialChar LyX
14636 の内部処理が若干の問題を生じめます.
14637 \end_layout
14638
14639 \begin_layout Itemize
14640
14641 \family sans
14642
14643 \family default
14644 環境の章番号は,章見出しと同じ行ではなく,その上に表示されます.これは,レイアウトファイル中の
14645 \family sans
14646 Counter_Chapter
14647 \family default
14648 ラベル型に対する\SpecialChar LyX
14649 の内部処理が原因です.
14650 \end_layout
14651
14652 \begin_layout Itemize
14653
14654 \family sans
14655 章(addchap)
14656 \family default
14657
14658 \family sans
14659 節(addsec)
14660 \family default
14661 環境の見出しは,「本当の」\SpecialChar LaTeX
14662 の目次には追加されますが,\SpecialChar LyX
14663 の目次(
14664 \family sans
14665 移動
14666 \family default
14667 メニュー)には追加されません.
14668 \end_layout
14669
14670 \begin_layout Itemize
14671
14672 \emph on
14673 letter
14674 \emph default
14675 文書クラスでの段落は,垂直スペースによる段落区切りで表示され,字下げはされません.これが標準的な挙動となっていて,特別な\SpecialChar LaTeX
14676 コマンドは必要ありません.しかし,
14677 \family sans
14678 文書\SpecialChar menuseparator
14679 設定
14680 \family default
14681 ダイアログでは,対応するラジオボタンは
14682 \family sans
14683 字下げ
14684 \family default
14685 に設定されています.
14686 \family sans
14687 垂直スペース
14688 \family default
14689 は,隙間を空けるために,文書に\SpecialChar LaTeX
14690 コマンドをつねに追加するようになっていますが,この文書クラスの場合には,そのような挙動が望まれないためです.
14691 \end_layout
14692
14693 \begin_layout Section
14694 Memoir
14695 \end_layout
14696
14697 \begin_layout Standard
14698
14699 \noun on
14700 Jürgen Spitzmüller
14701 \noun default
14702
14703 \end_layout
14704
14705 \begin_layout Subsection
14706 概観
14707 \end_layout
14708
14709 \begin_layout Standard
14710 Memoirは,非常に強力で,着実に改良が加えられている文書クラスであり,フィクションとノンフィクションの文学作品用に設計されています.その目的は,ユーザーに,
14711 文書の組版に関して最大限の裁量を得させることにあります.Memoirは,標準bookクラスに基づいていますが,articleクラスをエミュレートすることもできま
14712 す(以下参照).
14713 \end_layout
14714
14715 \begin_layout Standard
14716 Memoir開発者であるPeter Wilsonは,\SpecialChar LaTeX
14717 の世界での,多くの便利なパッケージの作者として知られていますが,それらのほとんどは,Memoirに統合されま
14718 した.このため,章のデザインや,目次や付録などのレイアウトを,はるかに簡単に行うことができます.しかしながら,\SpecialChar LyX
14719 は,これらすべての素晴らしい機能をネイティブでサポ
14720 ートしているわけではありません.これらのうちいくつかは,将来のリリースで追加されるかもしれませんが
14721 \begin_inset Foot
14722 status collapsed
14723
14724 \begin_layout Plain Layout
14725 もし提案があれば,ぜひ
14726 \begin_inset Flex URL
14727 status collapsed
14728
14729 \begin_layout Plain Layout
14730
14731 lyx-devel@lists.lyx.org
14732 \end_layout
14733
14734 \end_inset
14735
14736 までお送り下さい.
14737 \end_layout
14738
14739 \end_inset
14740
14741 ,\SpecialChar LyX
14742 のフレームワークが持つ制約のために,おそらく決して追加されることのないと考えられるものも多数あります.もちろん,ネイティブな\SpecialChar LaTeX
14743 コマンド(\SpecialChar TeX
14744 コード
14745 \begin_inset Foot
14746 status collapsed
14747
14748 \begin_layout Plain Layout
14749 【参考】詳細は,第
14750 \begin_inset CommandInset ref
14751 LatexCommand ref
14752 reference "sec:TeXコードを挿入する"
14753
14754 \end_inset
14755
14756 節参照.
14757 \end_layout
14758
14759 \end_inset
14760
14761 )の助けを借りれば,全機能を使用できます.この節では,\SpecialChar LyX
14762 がネイティブにサポートしている機能についてのみ,列挙するものとします.詳細な説明(および他の機能)について
14763 は,Memoirクラスの詳しい取扱説明書
14764 \begin_inset Foot
14765 status collapsed
14766
14767 \begin_layout Plain Layout
14768 【参考】
14769 \begin_inset Flex URL
14770 status collapsed
14771
14772 \begin_layout Plain Layout
14773
14774 CTAN:/macros/latex/memoir/memman.pdf
14775 \end_layout
14776
14777 \end_inset
14778
14779
14780 \end_layout
14781
14782 \end_inset
14783
14784 をご覧になることをお勧めします.この取扱説明書は,本クラスのユーザーの手引きであるのみに留まらず,良い組版に関する包括的な解説であり,それ自身が良い組版の傑出し
14785 た用例となっています.
14786 \end_layout
14787
14788 \begin_layout Subsection
14789 基本的な機能と制約
14790 \end_layout
14791
14792 \begin_layout Standard
14793 Memoirは,基本的に,標準bookクラスの全機能をサポートしています.しかしながら,以下に示すような若干の違いがあります.
14794 \end_layout
14795
14796 \begin_layout Description
14797 フォント寸法: Memoirでは,9・10・11・12・14・17と,より広い範囲のフォント寸法が使用可能です.
14798 \end_layout
14799
14800 \begin_layout Description
14801 ページ様式: Memoirパッケージとfancyhdrパッケージとのコマンドの衝突のため(両パッケージは同じ名前のコマンドを定義しているため,\SpecialChar LaTeX
14802 が混乱させられます
14803 ),fancyページ様式は使用できません.その代わり,Memoirには,多くの独自のページ様式が付属してきます(
14804 \family sans
14805 文書\SpecialChar menuseparator
14806 設定\SpecialChar menuseparator
14807 ページレイアウト
14808 \family default
14809 参照).これらを章題ページに使用したい場合には,コマンド
14810 \family typewriter
14811
14812 \backslash
14813 chapterstyle
14814 \family default
14815 を,本文またはプリアンブルに記述する必要があります(例えば,
14816 \family typewriter
14817
14818 \backslash
14819 chapterstyle{companion}
14820 \family default
14821 など).
14822 \end_layout
14823
14824 \begin_layout Description
14825 節分け: 標準クラスでは,節分けコマンド(章・節・小節等)は,非必須引数を一つ取ることができます.これを用いて,目次やヘッダ用に別のタイトルを指定することができ
14826 ます(たとえば,タイトルが長すぎる場合などに用います).\SpecialChar LyX
14827 では,章や節の始めで
14828 \family sans
14829 挿入\SpecialChar menuseparator
14830 短縮タイトル
14831 \family default
14832 を使えば,これを指定することができます.一方,Memoirでは,第2の非必須引数を取ることができ,目次用のタイトルとヘッダ用のタイトルの指定を分離しています.\SpecialChar LyX
14833
14834 は,
14835 \family sans
14836 挿入
14837 \family default
14838 メニューから
14839 \family sans
14840 短縮タイトル
14841 \family default
14842 の特定の派生形の形で利用できます.
14843 \end_layout
14844
14845 \begin_layout Description
14846 目次・図一覧・表一覧: 標準クラス(および他の多くのクラス)では,目次と図一覧および表一覧は,自動的に新規頁に置かれます.Memoirは,これとは別の方針を採り
14847 ます.改頁を行いたい場合は,手動で頁区切りを入れなくてはなりません.
14848 \end_layout
14849
14850 \begin_layout Description
14851 タイトル頁: 理由は不明ですが,Memoirはタイトルページに丁付けを行います(標準クラスでは,タイトルページは「empty」様式).タイトル頁に丁付けを行いた
14852 くない場合には,プリアンブルに
14853 \family typewriter
14854
14855 \backslash
14856 aliaspagestyle{title}{empty}
14857 \family default
14858 と入力してください.
14859 \end_layout
14860
14861 \begin_layout Description
14862 Article: クラスオプション
14863 \emph on
14864 article
14865 \emph default
14866 を用いる(
14867 \family sans
14868 文書\SpecialChar menuseparator
14869 設定\SpecialChar menuseparator
14870 文書クラス\SpecialChar menuseparator
14871 クラスオプション\SpecialChar menuseparator
14872 任意設定
14873 \family default
14874 で入力)と,article様式をエミュレートできます.すなわち,(脚注・図・表等の)カウンタは,章毎にリセットされず,次の章は頁を改めず(ただし,「本物の」ar
14875 ticleクラスとは違って,頁を改めることも可),部はbookクラスと同様に,独立の頁を使用します.
14876 \end_layout
14877
14878 \begin_layout Description
14879 Oldfontcommands: \SpecialChar LaTeX
14880 旧2.09版で使用されていた旧いフォントコマンド(
14881 \family typewriter
14882
14883 \backslash
14884 rm
14885 \family default
14886
14887 \family typewriter
14888
14889 \backslash
14890 it
14891 \family default
14892 など)は,Memoirにおいては,既定では使用することができません.Memoirがこれらのコマンドを検知すると,エラーを発して\SpecialChar LaTeX
14893 を停止させます.しかし,クラスオプ
14894 ション
14895 \emph on
14896 oldfontcommands
14897 \emph default
14898 を指定すると,これらのコマンドが容認され,エラーの代わりに警告を発するのみとなります(これによって,少なくとも\SpecialChar LaTeX
14899 は停止しなくなります).まだ,多くのパッケージと,
14900 就中多くのBib\SpecialChar TeX
14901 スタイルファイルが,これらのコマンドを使用しているので,我々はこのオプションを既定で使うこととしました.
14902 \end_layout
14903
14904 \begin_layout Subsection
14905 追加された機能
14906 \end_layout
14907
14908 \begin_layout Standard
14909 \SpecialChar LyX
14910 でサポートされる機能(今のところそれほど多くはありません)を簡単に説明しましょう.詳しくはMemoirの取扱説明書
14911 \begin_inset Foot
14912 status collapsed
14913
14914 \begin_layout Plain Layout
14915 \begin_inset Flex URL
14916 status collapsed
14917
14918 \begin_layout Plain Layout
14919
14920 CTAN:/macros/latex/memoir/memman.pdf
14921 \end_layout
14922
14923 \end_inset
14924
14925
14926 \end_layout
14927
14928 \end_inset
14929
14930 を見てください.
14931 \end_layout
14932
14933 \begin_layout Description
14934 概要: 概要が,追加された機能として扱われているのを不思議に思われるかもしれませんが,bookクラスとしては追加された機能なのです.通常bookクラスには概要は
14935 ないのですが,memoirにはあります.これは,どこでも何回でも自由に使うことができます.
14936 \end_layout
14937
14938 \begin_layout Description
14939 章要約: この古い組版様式はご覧になったことがあるかも知れません.章の内容が,見出しの下と目次に要約されているものです(たとえば,「我らが英雄がトロヤに到着する
14940 .彼は友人を失うが,新たな友人を得る.」など).章要約(chapterprecis)はこれを行います.したがって,章要約は章の下でのみ意味を持ちます.
14941 \end_layout
14942
14943 \begin_layout Description
14944 題辞: 題辞(epigraph)は章頭の,気の利いた標語やモットーです.題辞環境は,そのような標語を組む洗練された方法を提供します.標語本体(本文)とその著者(
14945 出典:非必須)は,短い線で区切られます.著者(出典)は,
14946 \family sans
14947 挿入\SpecialChar menuseparator
14948 題辞出典
14949 \family default
14950 で入力できます.
14951 \end_layout
14952
14953 \begin_layout Description
14954 詩題: Memoirには(複雑で隠喩的なものも含めて)詩を組版するための多くの機能がありますが,\SpecialChar LyX
14955 は,そのうちいくつかしかサポートしていません.詩題はその一つです
14956 .これは詩用の中央揃えタイトルで,目次にも表示されます(詩句が詩の標準環境です.Memoirには,詩句の拡張版もありますが,これらを使うためには\SpecialChar TeX
14957 コードを使用しな
14958 くてはなりません.これらの環境は通常の詩句環境の中に入れ子にしなくてはならないのですが,\SpecialChar LyX
14959 ではそれができないためです).
14960 \end_layout
14961
14962 \begin_layout Description
14963 詩題*: 目次に現れない他は詩題と同じです.
14964 \end_layout
14965
14966 \begin_layout Section
14967 Article (mwart)・book (mwbk)・report (mwrep)
14968 \begin_inset Argument status
14969 status collapsed
14970
14971 \begin_layout Plain Layout
14972 The 
14973 \family typewriter
14974 mw
14975 \family default
14976  Classes
14977 \end_layout
14978
14979 \end_inset
14980
14981
14982 \end_layout
14983
14984 \begin_layout Standard
14985
14986 \noun on
14987 Tomasz Luczak
14988 \noun default
14989
14990 \end_layout
14991
14992 \begin_layout Standard
14993 \SpecialChar LyX
14994 文書クラス
14995 \emph on
14996 article (mwart)
14997 \emph default
14998
14999 \emph on
15000 report (mwrep)・book
15001 \emph default
15002  
15003 \emph on
15004 (mwbk)
15005 \emph default
15006 は,それぞれ\SpecialChar LaTeX
15007 文書クラス
15008 \family typewriter
15009 mwart.cls
15010 \family default
15011
15012 \family typewriter
15013 mwrep.cls
15014 \family default
15015
15016 \family typewriter
15017 mwbk.cls
15018 \family default
15019 に対応しています.これらは,標準の
15020 \family typewriter
15021 article.cls
15022 \family default
15023
15024 \family typewriter
15025 report.cls
15026 \family default
15027
15028 \family typewriter
15029 book.cls
15030 \family default
15031 を代替するものであり,多くの点で,ポーランド語の組版慣習によく適合しています.
15032 \end_layout
15033
15034 \begin_layout Standard
15035 基本的な違いは,次の点です.
15036 \end_layout
15037
15038 \begin_layout Itemize
15039 付番のない見出し(
15040 \family sans
15041 節*
15042 \family default
15043 などの星付き)も目次に加えられます.
15044 \end_layout
15045
15046 \begin_layout Itemize
15047 以下のページスタイルの追加
15048 \end_layout
15049
15050 \begin_deeper
15051 \begin_layout Description
15052 uheadings 分離線付きヘッダ
15053 \end_layout
15054
15055 \begin_layout Description
15056 myheadings 
15057 \family typewriter
15058
15059 \backslash
15060 markright
15061 \family default
15062 コマンドおよび
15063 \family typewriter
15064
15065 \backslash
15066 markboth
15067 \family default
15068 コマンドで設定するカスタムヘッダ
15069 \end_layout
15070
15071 \begin_layout Description
15072 myuheadings 分離線付きカスタムヘッダ
15073 \end_layout
15074
15075 \begin_layout Description
15076 outer ページの外側にページ番号
15077 \end_layout
15078
15079 \end_deeper
15080 \begin_layout Itemize
15081 オプション
15082 \end_layout
15083
15084 \begin_deeper
15085 \begin_layout Description
15086 rmheadings セリフ体見出し — 既定
15087 \end_layout
15088
15089 \begin_layout Description
15090 sfheadings サンセリフ体見出し
15091 \end_layout
15092
15093 \begin_layout Description
15094 authortitle タイトルページは,著者名・タイトルの順で配置 — 既定
15095 \end_layout
15096
15097 \begin_layout Description
15098 titleauthor タイトルページは,タイトル・著者名の順で配置
15099 \end_layout
15100
15101 \begin_layout Description
15102 withmarginpar ページ上に余白のための場所を確保
15103 \end_layout
15104
15105 \end_deeper
15106 \begin_layout Section
15107 Paper
15108 \end_layout
15109
15110 \begin_layout Standard
15111
15112 \family sans
15113 paper
15114 \family default
15115 文書クラスは標準
15116 \family sans
15117 article
15118 \family default
15119 クラスの代替となるものです.これは
15120 \family sans
15121 同様の
15122 \family default
15123 機能を提供しますが,サンセリフ体の節見出し・ヘッディング等を持つこちらのレイアウトの方が気に入るかも知れません.
15124 \end_layout
15125
15126 \begin_layout Section
15127 Rev\SpecialChar TeX
15128 4
15129 \end_layout
15130
15131 \begin_layout Standard
15132 by 
15133 \noun on
15134 Amir Karger
15135 \end_layout
15136
15137 \begin_layout Standard
15138 \begin_inset VSpace bigskip
15139 \end_inset
15140
15141
15142 \end_layout
15143
15144 \begin_layout Standard
15145 \noindent
15146
15147 \family sans
15148 Revtex
15149 \begin_inset space ~
15150 \end_inset
15151
15152 4
15153 \family default
15154 テキストクラスは,アメリカ物理学会のRev\SpecialChar TeX
15155  4.0(1999年5月の
15156 \begin_inset Formula $\beta$
15157 \end_inset
15158
15159 リリース)クラスで動作します.
15160 \end_layout
15161
15162 \begin_layout Standard
15163 \SpecialChar LyX
15164 には,Rev\SpecialChar TeX
15165  3.1で動作する
15166 \family sans
15167 Revtex
15168 \family default
15169 テキストクラスもあります.しかしながら,第3.1版は\SpecialChar LaTeX
15170  2.09で動作するものであり,基本的に時代遅れなものになっています.\SpecialChar LyX
15171 は\SpecialChar LaTeX2e
15172 を必要とすることから,第3.1版は\SpecialChar LyX
15173 とうまく
15174 協調しないことを意味しますが,動作するようには調整してあります.Rev\SpecialChar TeX
15175  4.0は,\SpecialChar LaTeX2e
15176 で素直に動作するようにデザインされているので,\SpecialChar LyX
15177
15178 \family sans
15179 Rev\SpecialChar TeX
15180
15181 \begin_inset space ~
15182 \end_inset
15183
15184 4
15185 \family default
15186 テキストクラスの組で使用するのは,たいへん簡単です.
15187 \end_layout
15188
15189 \begin_layout Standard
15190 この取扱説明書は,Rev\SpecialChar TeX
15191  4.0の説明書の
15192 \emph on
15193 補完
15194 \emph default
15195 として使用されることを前提としています.したがって,ここではRev\SpecialChar TeX
15196 固有マクロの説明はせず,必要な場合にはプリアンブルに何と書けば良いかを知っているものとして説明
15197 します.
15198 \end_layout
15199
15200 \begin_layout Subsection
15201 導入
15202 \end_layout
15203
15204 \begin_layout Standard
15205 Rev\SpecialChar TeX
15206  4パッケージのREADMEファイルにあるとおり,ともかくRev\SpecialChar TeX
15207  4を導入しなくてはなりません.パッケージは,The Rev\SpecialChar TeX
15208  4 Web
15209  Site 
15210 \begin_inset Flex URL
15211 status collapsed
15212
15213 \begin_layout Plain Layout
15214
15215 http://publish.aps.org/revtex4/
15216 \end_layout
15217
15218 \end_inset
15219
15220 から入手することができます.これを\SpecialChar LaTeX
15221 が検出することのできる場所に導入してください.それから,適当に選んだディレクトリ(もといクラスファイルを導入したのとは異なるデ
15222 ィレクトリ)で簡単なRev\SpecialChar TeX
15223  4文書を \SpecialChar LaTeX
15224 でコンパイルできるかどうか確認してください.この後,\SpecialChar LyX
15225 を環境構成すると,クラスファイルを検出し,Rev\SpecialChar TeX
15226 4テキストクラスが使用
15227 できるようになるはずです.
15228 \end_layout
15229
15230 \begin_layout Standard
15231 使い始めるには,
15232 \family typewriter
15233 tex2lyx
15234 \family default
15235 を使ってRev\SpecialChar TeX
15236  4文書を読み込むか,またはひな型ディレクトリにある
15237 \family sans
15238 Revtex
15239 \begin_inset space ~
15240 \end_inset
15241
15242 4
15243 \family default
15244 のひな型を使うのが,おそらく一番簡単な方法でしょう.
15245 \end_layout
15246
15247 \begin_layout Subsection
15248 プリアンブルに関すること
15249 \end_layout
15250
15251 \begin_layout Standard
15252
15253 \family typewriter
15254
15255 \backslash
15256 documentclass
15257 \family default
15258 に与える「preprint」や「aps」のような非必須引数は,他のクラス同様,
15259 \family sans
15260 文書\SpecialChar menuseparator
15261 設定\SpecialChar menuseparator
15262 文書クラス
15263 \family default
15264
15265 \family sans
15266 クラスオプション
15267 \family default
15268 フィールドに入れます.Rev\SpecialChar TeX
15269 では,少なくとも一つの非必須引数が必要なことに注意してください.
15270 \end_layout
15271
15272 \begin_layout Standard
15273
15274 \family typewriter
15275
15276 \backslash
15277 draft
15278 \family default
15279 など他のプリアンブルは,他のクラス同様,
15280 \family sans
15281 文書\SpecialChar menuseparator
15282 設定\SpecialChar menuseparator
15283 \SpecialChar LaTeX
15284 プリアンブル
15285 \family default
15286 に入れてください.
15287 \end_layout
15288
15289 \begin_layout Subsection
15290 レイアウト
15291 \end_layout
15292
15293 \begin_layout Standard
15294 レイアウトは,基本的にRev\SpecialChar TeX
15295 4.0のコマンドに対応しています.たとえば,Emailレイアウトは,
15296 \family typewriter
15297
15298 \backslash
15299 email{}
15300 \family default
15301 に対応しています.(少なくともRev\SpecialChar TeX
15302  4.0 Beta現在では)
15303 \family sans
15304 住所
15305 \family default
15306
15307 \family sans
15308 所属
15309 \family default
15310 はまったく同じものなので,両方を使う必要はありません
15311 \begin_inset Foot
15312 status collapsed
15313
15314 \begin_layout Plain Layout
15315 ついでながら,
15316 \family typewriter
15317 tex2lyx
15318 \family default
15319 は両方とも対応しているので,
15320 \family typewriter
15321
15322 \backslash
15323 address
15324 \family default
15325
15326 \family typewriter
15327
15328 \backslash
15329 affiliation
15330 \family default
15331 のどちらも翻訳することができます.
15332 \end_layout
15333
15334 \end_inset
15335
15336
15337 \end_layout
15338
15339 \begin_layout Subsection
15340 重要な注意
15341 \end_layout
15342
15343 \begin_layout Standard
15344 Rev\SpecialChar TeX
15345  4には,バグを引き起こしがちなために,気をつけなくてはならない特殊な面がいくつかあるため,\SpecialChar LyX
15346 ではさらに気をつけなくてはなりません.
15347 \end_layout
15348
15349 \begin_layout Standard
15350 Rev\SpecialChar TeX
15351 では,
15352 \family typewriter
15353
15354 \backslash
15355 thanks
15356 \family default
15357 コマンドは,
15358 \family typewriter
15359
15360 \backslash
15361 author
15362 \family default
15363 コマンドの
15364 \emph on
15365 外側
15366 \emph default
15367 に来なくてはなりません.\SpecialChar LyX
15368 では,独立した
15369 \family sans
15370 感謝
15371 \family default
15372 レイアウトがこの働きをします.直接
15373 \family sans
15374 ,著者
15375 \family default
15376 レイアウトに脚注を付けてしまうと,おかしなことが起こる可能性があります.詳細については,Rev\SpecialChar TeX
15377  4の取扱説明書をご覧ください.
15378 \end_layout
15379
15380 \begin_layout Standard
15381 また,
15382 \family sans
15383 著者電子メール
15384 \family default
15385
15386 \family sans
15387 著者URL・感謝(thanks)
15388 \family default
15389 レイアウトは,
15390 \family sans
15391 著者
15392 \family default
15393 レイアウトと
15394 \family sans
15395 住所(
15396 \family default
15397 または同等の
15398 \family sans
15399 所属
15400 \family default
15401 )レイアウトの間に置かなければなりません.
15402 \family sans
15403 感謝(thanks)
15404 \family default
15405
15406 \family sans
15407 住所
15408 \family default
15409 の後に置いてしまうと,\SpecialChar LaTeX
15410 はコンパイルに失敗します.
15411 \end_layout
15412
15413 \begin_layout Section
15414 Springer学術誌(
15415 \family sans
15416 svjour)
15417 \end_layout
15418
15419 \begin_layout Standard
15420
15421 \noun on
15422 Martin Vermeer
15423 \noun default
15424
15425 \end_layout
15426
15427 \begin_layout Subsection
15428 説明
15429 \end_layout
15430
15431 \begin_layout Standard
15432 これは,Springer Verlag社発行のいくつかの学術誌で使用されている書式のレイアウトファイルです.
15433 \begin_inset Flex URL
15434 status collapsed
15435
15436 \begin_layout Plain Layout
15437
15438 http://www.springer.de/author/tex/help-journals.html
15439 \end_layout
15440
15441 \end_inset
15442
15443 に必要なクラスファイル(\SpecialChar LaTeX2e
15444 用になりました)とそれに対応する学術誌の一覧があります.このレイアウトはモジュール式になっています.つまり,全ジャーナル共通部分は
15445 \family typewriter
15446 svjour.inc
15447 \family default
15448 に実装されており,各誌個別のレイアウトファイル(たとえばJournal of Geodesy用の
15449 \family typewriter
15450 svjog.layout
15451 \family default
15452 など)から取り込むことができます.
15453 \end_layout
15454
15455 \begin_layout Standard
15456 このことは,上記の学術誌一覧にある他のSpringer誌のサポートを実装するためには,
15457 \family typewriter
15458 svjog.layout
15459 \family default
15460 に書かれている指示に従って,自作の
15461 \family typewriter
15462 sv
15463 \family default
15464 <学術誌名>
15465 \family typewriter
15466 .layout
15467 \family default
15468 を書くだけで良いことを意味します.
15469 \end_layout
15470
15471 \begin_layout Standard
15472 このレイアウトは,Journal of Geodesyに対してのみ,充分な試験が為されています.
15473 \family typewriter
15474 svjour
15475 \family default
15476
15477 \family typewriter
15478 svjog
15479 \family default
15480 は,標準\SpecialChar LyX
15481 頒布版に収録済みです.関連するクラスファイルを(Springerからダウンロードして)適切なディレクトリに導入し,\SpecialChar LaTeX
15482 を再設定した後(teTeXの場合は,必
15483 要に応じてroot権限で
15484 \family typewriter
15485 texhash
15486 \family default
15487 を実行します),\SpecialChar LyX
15488 を環境構成すれば,動作するはずです.
15489 \end_layout
15490
15491 \begin_layout Subsection
15492 新スタイル
15493 \end_layout
15494
15495 \begin_layout Standard
15496 多くの定理環境 — 
15497 \family sans
15498 主張
15499 \family default
15500
15501 \family sans
15502 推論
15503 \family default
15504 ・\SpecialChar ldots
15505
15506 \family sans
15507 定理
15508 \family default
15509
15510 \end_layout
15511
15512 \begin_layout Standard
15513
15514 \family sans
15515 ヘッドノート
15516 \family default
15517
15518 \family sans
15519 献呈
15520 \family default
15521
15522 \family sans
15523 サブタイトル・ヘッダ用\SpecialChar LaTeX
15524 タイトル・ヘッダ用著者名・所属機関・メール・オフプリント・キーワード・謝辞(acknowledgements)・謝辞(acknowledg
15525 ement)
15526 \family default
15527 .詳しくは Springerのクラスファイルの説明書を読んでください.
15528 \end_layout
15529
15530 \begin_layout Subsection
15531 サポートしているジャーナル
15532 \end_layout
15533
15534 \begin_layout Itemize
15535
15536 \emph on
15537 Journal of Geodesy
15538 \emph default
15539
15540 \family typewriter
15541 svjog.layout
15542 \family default
15543  — Martin Vermeer
15544 \end_layout
15545
15546 \begin_layout Itemize
15547
15548 \emph on
15549 Probability Theory and Related Fields
15550 \emph default
15551
15552 \family typewriter
15553 svprobth.layout
15554 \family default
15555  — Jean-Marc Lasgouttes
15556 \end_layout
15557
15558 \begin_layout Standard
15559 あなた自身のレイアウトファイルをつくってください.難しくはありません.
15560 \end_layout
15561
15562 \begin_layout Subsection
15563 Credits
15564 \end_layout
15565
15566 \begin_layout Standard
15567 これらのファイルは,以前の 
15568 \family typewriter
15569 ejour2.layout
15570 \family default
15571 をもとにしています.
15572 \family typewriter
15573 ejour2.layout
15574 \family default
15575 は Springerの\SpecialChar LaTeX
15576  2.09用のスタイルファイルを使った素人細工のようなレイアウトファイルです.これらのファイルはすでにありません.Jean-Marc
15577  Lasgouttesのおかげで \SpecialChar LyX
15578 のレイアウトファイルのメカニズムをよりよく理解することができました.
15579 \end_layout
15580
15581 \begin_layout Subsection
15582 バグ
15583 \end_layout
15584
15585 \begin_layout Standard
15586 多分あります.以前の 
15587 \family typewriter
15588 ejour2
15589 \family default
15590 よりは少なくなっているとは思いますが.
15591 \end_layout
15592
15593 \begin_layout Section
15594 Slides別名
15595 \noun on
15596 Sli\SpecialChar TeX
15597
15598 \noun default
15599
15600 \begin_inset Foot
15601 status collapsed
15602
15603 \begin_layout Plain Layout
15604 (訳註)この節の内容は,全般的に古くなっています.
15605 \end_layout
15606
15607 \end_inset
15608
15609
15610 \begin_inset CommandInset label
15611 LatexCommand label
15612 name "sec:slitex"
15613
15614 \end_inset
15615
15616
15617 \end_layout
15618
15619 \begin_layout Standard
15620
15621 \noun on
15622 John Weiss
15623 \noun default
15624
15625 \end_layout
15626
15627 \begin_layout Subsection
15628 はじめに
15629 \end_layout
15630
15631 \begin_layout Standard
15632 本節では,オーバーへッドプロジェクタ用のスライドをつくるのに,\SpecialChar LyX
15633 をどのように使えばよいかを説明します.これを行う文書クラスには,既定のslideクラスと
15634 \family sans
15635 Foil\SpecialChar TeX
15636
15637 \family default
15638 スライドクラスの2つがあります.本節は前者について説明を行います.
15639 \end_layout
15640
15641 \begin_layout Standard
15642 誤解のないように,正しく明確に,もう一度言っておきます.
15643 \end_layout
15644
15645 \begin_layout Standard
15646 \begin_inset VSpace bigskip
15647 \end_inset
15648
15649
15650 \end_layout
15651
15652 \begin_layout Standard
15653 \align center
15654
15655 \size large
15656 本節は文書クラス
15657 \begin_inset Quotes eld
15658 \end_inset
15659
15660
15661 \family sans
15662 transparencies (slides)
15663 \family default
15664
15665 \begin_inset Quotes erd
15666 \end_inset
15667
15668
15669 \emph on
15670 のみ
15671 \emph default
15672 を説明しています.
15673 \end_layout
15674
15675 \begin_layout Standard
15676 \begin_inset VSpace bigskip
15677 \end_inset
15678
15679
15680 \end_layout
15681
15682 \begin_layout Standard
15683
15684 \family sans
15685 「slides (Foil\SpecialChar TeX
15686 )
15687 \family default
15688 」の説明をお探しならば,第
15689 \begin_inset CommandInset ref
15690 LatexCommand ref
15691 reference "sec:foiltex"
15692
15693 \end_inset
15694
15695 節をご覧ください.
15696 \family sans
15697 foils
15698 \family default
15699 クラス「
15700 \family sans
15701 slides (Foil\SpecialChar TeX
15702 )
15703 \family default
15704 」は,実際,本節で説明している既定
15705 \family sans
15706 slides
15707 \family default
15708 クラスよりも良いようです
15709 \begin_inset Foot
15710 status collapsed
15711
15712 \begin_layout Plain Layout
15713 \SpecialChar ldots
15714
15715 \family sans
15716 Foil\SpecialChar TeX
15717
15718 \family default
15719 の支持者からは聞いています.けれども私は使ったことがないので,本当かどうか確かめようがありません.
15720 \end_layout
15721
15722 \end_inset
15723
15724
15725 \end_layout
15726
15727 \begin_layout Standard
15728 このクラスは,旧SLI\SpecialChar TeX
15729 パッケージを\SpecialChar LaTeX2e
15730 用に改良したものです.\SpecialChar LaTeX2e
15731 頒布版すべてが,このクラス(以下では単に「
15732 \family sans
15733 slides
15734 \family default
15735 」と述べることにします)を含んでいるので,あなたもお持ちのはずです.前述の
15736 \family sans
15737 foils
15738 \family default
15739 のように,同じくオーバーへッドプロジェクタ用のスライドを生成しながら,このクラスよりも良い仕事をするクラスもあります.しかしながら,オーバーレイを生成するなど,
15740 他のクラスにはできないが
15741 \family sans
15742 slides
15743 \family default
15744 ならばできることもあります.詳しくは以下をお読みください.
15745 \end_layout
15746
15747 \begin_layout Subsection
15748 使い始めるには
15749 \begin_inset CommandInset label
15750 LatexCommand label
15751 name "sec:slidesetup"
15752
15753 \end_inset
15754
15755
15756 \end_layout
15757
15758 \begin_layout Standard
15759 当然ながら,この文書クラスを使用するには,
15760 \family sans
15761 文書\SpecialChar menuseparator
15762 設定
15763 \family default
15764 ダイアログのクラスリストから「
15765 \family sans
15766 transparencies (slides)
15767 \family default
15768 」を選択しなくてはなりません.このクラスについて,以下のように,特に知っておいた方が良いことがいくつかあります.
15769 \end_layout
15770
15771 \begin_layout Itemize
15772
15773 \family sans
15774 用紙方向
15775 \family default
15776
15777 \family sans
15778 二段組文書
15779 \family default
15780 の各オプションは,あえて変更する必要はありません.これらのオプションは,
15781 \family sans
15782 slides
15783 \family default
15784 クラスではサポートされていないので,効果がありません.
15785 \end_layout
15786
15787 \begin_layout Itemize
15788
15789 \family sans
15790 ヘディング様式
15791 \family default
15792 オプションは,このクラスでは少し異なった振る舞いをします.各選択肢とその機能は,以下の通りです.
15793 \end_layout
15794
15795 \begin_deeper
15796 \begin_layout Description
15797 プレーン(plain) 最終出力の右下隅にページ番号が付きます.
15798 \end_layout
15799
15800 \begin_layout Description
15801 設定(headings)
15802 \family sans
15803  プレーン(plain)
15804 \family default
15805 と同様ですが,それ以外にあなたが指定したタイムマーカーをすべて出力します.これが既定値です.
15806 \end_layout
15807
15808 \begin_layout Description
15809 空 最終出力には,ページ番号もタイムマーカーも位置揃えマーカーも出力されません.
15810 \end_layout
15811
15812 \end_deeper
15813 \begin_layout Itemize
15814
15815 \family sans
15816 slides
15817 \family default
15818 クラスには,もう一つ
15819 \family typewriter
15820 clock
15821 \family default
15822 というオプションがあります.これを使用するには,
15823 \family sans
15824 クラスオプション
15825 \family default
15826 に「
15827 \family typewriter
15828 clock
15829 \family default
15830 」と入力してください.
15831 \end_layout
15832
15833 \begin_deeper
15834 \begin_layout Standard
15835 このオプションを使うと,
15836 \family sans
15837 注釈
15838 \family default
15839 にタイムマーカーを加えることができます.詳細は,第
15840 \begin_inset CommandInset ref
15841 LatexCommand ref
15842 reference "sec:スライド注釈"
15843
15844 \end_inset
15845
15846 節をご覧ください.
15847 \end_layout
15848
15849 \end_deeper
15850 \begin_layout Standard
15851
15852 \family sans
15853 slides
15854 \family default
15855 クラスを用いた文書を自動的にセットアップするには,ひな型ファイル「
15856 \family typewriter
15857 slides.lyx
15858 \family default
15859 」を使用することもできます(新規ファイルを開く際に
15860 \family sans
15861 ファイル\SpecialChar menuseparator
15862 新規(ひな型使用)
15863 \family default
15864 を使用してください).ひな型ファイルには,このクラスが使用する特別な段落環境の用例も含まれています.これらについては,以下で説明します.
15865 \end_layout
15866
15867 \begin_layout Subsection
15868 段落環境
15869 \end_layout
15870
15871 \begin_layout Subsubsection
15872
15873 \family sans
15874 サポートされている環境
15875 \end_layout
15876
15877 \begin_layout Standard
15878 新しく
15879 \family sans
15880 slides
15881 \family default
15882 文書を開いたときにまず気付くのは,フォント寸法とフォント族の違いでしょう.ここでは,
15883 \family sans
15884 サンセリフ体
15885 \family default
15886 フォントの
15887 \family sans
15888 極大
15889 \family default
15890 寸法が用いられており,出力でもこのフォントが使用されます.これは,現在スライドを作成中であることの「目印」だと考えてください.出力スライドは大きなフォントを使用
15891 するため,書ける場所は少なくなります.もちろん,既定の大きな画面フォントはWYSIWYGではなく,スライドであることの目印に過ぎません.
15892 \end_layout
15893
15894 \begin_layout Standard
15895 次に気付くのは,(ツールバー左端の)段落環境プルダウンボックスが変わっていることでしょう.通常見かける環境の多くがなくなって,代わりに5つの新しい環境が入ってい
15896 ます.これは,
15897 \family sans
15898 slides
15899 \family default
15900 クラスが,標準段落環境のうち以下のものしかサポートしていないためです.
15901 \end_layout
15902
15903 \begin_layout Itemize
15904
15905 \family sans
15906 標準
15907 \end_layout
15908
15909 \begin_layout Itemize
15910
15911 \family sans
15912 箇条書き(記号)
15913 \end_layout
15914
15915 \begin_layout Itemize
15916
15917 \family sans
15918 箇条書き(連番)
15919 \end_layout
15920
15921 \begin_layout Itemize
15922
15923 \family sans
15924 箇条書き(記述)
15925 \end_layout
15926
15927 \begin_layout Itemize
15928
15929 \family sans
15930 箇条書き(一覧)
15931 \end_layout
15932
15933 \begin_layout Itemize
15934
15935 \family sans
15936 引用(字下げあり)
15937 \end_layout
15938
15939 \begin_layout Itemize
15940
15941 \family sans
15942 引用(字下げなし)
15943 \end_layout
15944
15945 \begin_layout Itemize
15946
15947 \family sans
15948 詩句
15949 \end_layout
15950
15951 \begin_layout Itemize
15952
15953 \family sans
15954 キャプション
15955 \end_layout
15956
15957 \begin_layout Itemize
15958
15959 \family sans
15960 \SpecialChar LyX
15961 コード
15962 \end_layout
15963
15964 \begin_layout Standard
15965 これ以外の標準的な環境,例えば節見出し用の環境などは
15966 \family sans
15967 slides
15968 \family default
15969 クラスでは使えません.
15970 \end_layout
15971
15972 \begin_layout Standard
15973 一方,以下の新しい環境があります.
15974 \end_layout
15975
15976 \begin_layout Itemize
15977
15978 \family sans
15979 スライド
15980 \end_layout
15981
15982 \begin_layout Itemize
15983
15984 \family sans
15985 オーバーレイ
15986 \end_layout
15987
15988 \begin_layout Itemize
15989
15990 \family sans
15991 注釈
15992 \end_layout
15993
15994 \begin_layout Itemize
15995
15996 \family sans
15997 不可視文
15998 \end_layout
15999
16000 \begin_layout Itemize
16001
16002 \family sans
16003 可視文
16004 \end_layout
16005
16006 \begin_layout Standard
16007 これら5つの環境は,\SpecialChar LyX
16008 の「機能」のために使い方に癖があります.ご存じのように,\SpecialChar LyX
16009 では,空の段落環境に他の環境を入れることができません.それ自体は素晴らしいデザインな
16010 のですが,これは,スライドを平文以外では書き始めることができないことを意味します.これを取り扱うためには,ちょっとした「\SpecialChar LaTeX
16011 マジック」が必要になります.
16012 \end_layout
16013
16014 \begin_layout Subsubsection
16015 新環境の癖
16016 \begin_inset CommandInset label
16017 LatexCommand label
16018 name "sec:スライドの癖"
16019
16020 \end_inset
16021
16022
16023 \end_layout
16024
16025 \begin_layout Standard
16026 5つの新しい環境にはすべて,\SpecialChar LyX
16027 現行版の制約に由来する癖があります.いま述べたように,\SpecialChar LyX
16028 では,環境を別の環境で開始することが禁止されています.これを回避するために,
16029 \family sans
16030 スライド
16031 \family default
16032 環境は『
16033 \emph on
16034 ユーザーの手引き
16035 \emph default
16036 』で述べられているような段落環境ではなくなっています.
16037 \end_layout
16038
16039 \begin_layout Standard
16040
16041 \family sans
16042 スライド
16043 \family default
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 も「疑似コマンド」とお考えください.この2つは特定のアクションを行います.
16065 \end_layout
16066
16067 \begin_layout Standard
16068
16069 \family sans
16070 スライド
16071 \family default
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 の5環境に共通しているのは,長めのラベルを持つことです.このラベルに続く文章—通常は段落環境の内容になるはずですが—は,
16089 \family sans
16090 スライド
16091 \family default
16092
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 では,まったく意味がなく,\SpecialChar LyX
16109 はこの部分を完全に無視します.これらの5つの環境の内容は,完全に空のままにしておいて構いません.
16110 \end_layout
16111
16112 \begin_layout Standard
16113 長めのラベルの後に文章を入れる
16114 \emph on
16115 必要は
16116 \emph default
16117 まったく
16118 \emph on
16119 ない
16120 \emph default
16121 とはいえ,何か書いておきたいこともあるかもしれません.たとえば,スライドの内容に関する短い説明などがそうでしょう.この場合,いつもどおり説明用のコメントを入力し
16122
16123 \family sans
16124 Return
16125 \family default
16126 を押してください.
16127 \end_layout
16128
16129 \begin_layout Standard
16130 一方,説明文を入れたくない場合には,\SpecialChar LyX
16131 の制約に直面します.自然が真空を憎むように,\SpecialChar LyX
16132 では,古い環境に何かを置くまでは,その中に新しい環境を入れることができません.そ
16133 こで以下のようにしてください.
16134 \end_layout
16135
16136 \begin_layout Itemize
16137 新しい
16138 \family sans
16139 スライド
16140 \family default
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 \emph on
16159 中に入れる
16160 \emph default
16161 文章を入力してください.
16162 \end_layout
16163
16164 \begin_layout Itemize
16165 段落の先頭に移動します.
16166 \end_layout
16167
16168 \begin_layout Itemize
16169 次に
16170 \family sans
16171 Return
16172 \family default
16173 を押します.
16174 \end_layout
16175
16176 \begin_layout Itemize
16177 最後に,この新しい空の段落を
16178 \family sans
16179 スライド
16180 \family default
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 \end_layout
16199
16200 \begin_layout Standard
16201 将来の\SpecialChar LyX
16202 では,このような癖が解決されることを祈っています\SpecialChar ldots
16203
16204 \begin_inset Foot
16205 status collapsed
16206
16207 \begin_layout Plain Layout
16208 (訳註)ここの記述は古くなっています.
16209 \end_layout
16210
16211 \end_inset
16212
16213
16214 \end_layout
16215
16216 \begin_layout Subsection
16217
16218 \family sans
16219 スライド
16220 \family default
16221
16222 \family sans
16223 オーバーレイ
16224 \family default
16225
16226 \family sans
16227 注釈で発表用のスライドを作る
16228 \end_layout
16229
16230 \begin_layout Subsubsection
16231
16232 \family sans
16233 スライド
16234 \family default
16235 環境を使う
16236 \end_layout
16237
16238 \begin_layout Standard
16239 もし本節が,実際のプレゼンテーションの作り方を教えてくれるものと期待されているとすれば,大いにがっかりされるかもしれません.当然ながら,プレゼンテーション用の資
16240 料を準備するうえで
16241 \family sans
16242 slides
16243 \family default
16244 クラスを役立てる方法を詳しく説明はしますが,内容をどうするかはあなた次第です(そしてこれも\SpecialChar LyX
16245 の哲学です).
16246 \end_layout
16247
16248 \begin_layout Standard
16249
16250 \family sans
16251 スライド
16252 \family default
16253 環境を選択すれば(方法は第
16254 \begin_inset CommandInset ref
16255 LatexCommand ref
16256 reference "sec:スライドの癖"
16257
16258 \end_inset
16259
16260 節参照のこと),\SpecialChar LyX
16261 は新規スライドを開始します.この環境ないし「疑似環境」のラベルは,鮮やかな青で「新規スライド:」と表示されます.この環境の後のテキスト環境や段落
16262 環境は,すべて新規スライドに入ります.簡単ですよね.
16263 \end_layout
16264
16265 \begin_layout Standard
16266 Slidesは,おそらく\SpecialChar LyX
16267 の中で強制的に改頁をしなくてはならない唯一のクラスです(これは
16268 \family sans
16269 段落レイアウト
16270 \family default
16271 ダイアログで指定できます).実際,一つのスライドの内容を入力し終わったら,改頁したくなるはずです.仮に一つのスライドに物理的に入りきらない文章を入力したとすると
16272 ,入りきらない部分は,次の新規スライドにまわされます.しかしながら,入りきらない部分のスライドにはページ番号が付きませんので,こうするのはお勧めしません.その上
16273 ,一枚に収まらないスライドでは,
16274 \family sans
16275 オーバーレイ
16276 \family default
16277 を使用すると干渉する恐れがあります.
16278 \end_layout
16279
16280 \begin_layout Standard
16281
16282 \family sans
16283 オーバーレイ
16284 \family default
16285 環境と
16286 \family sans
16287 注釈
16288 \family default
16289 環境も,
16290 \family sans
16291 スライド
16292 \family default
16293 環境と同様の動作を示します.これらは,青の代わりに鮮やかなマゼンタで,それぞれ「
16294 \noun on
16295 新規オーバーレイ
16296 \noun default
16297 :」ないし「
16298 \noun on
16299 新規注釈:
16300 \noun default
16301 」というラベルを表示します.ラベルのフォントも,3つの環境でそれぞれ異なるものが使用されます.
16302 \end_layout
16303
16304 \begin_layout Standard
16305
16306 \family sans
16307 スライド
16308 \family default
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 \end_layout
16327
16328 \begin_layout Subsubsection
16329
16330 \family sans
16331 スライドでオーバーレイを使用する
16332 \end_layout
16333
16334 \begin_layout Standard
16335
16336 \family sans
16337 オーバーレイ
16338 \family default
16339 の背後にある考え方は,別のスライドの上にスライドを載せようとするものです.メインの
16340 \family sans
16341 スライド
16342 \family default
16343 に図があるとき,関連した文章を表示する前に,図について議論を進めたいと思うことがあるかもしれません.これを行うひとつの方法は,
16344 \family sans
16345 スライド
16346 \family default
16347 で後に表示したい部分に黒い紙の蓋を貼り付けてしまうことですが,この方法は,たとえばグラフを他のグラフに重ねたい場合などには,うまく行きません.この場合には,二つ
16348 のグラフを揃えるために,重ねる二つのスライドを,喋りながら手探りで揃えなくてはなりません.これらのような場合には,
16349 \family sans
16350 オーバーレイ
16351 \family default
16352 環境を使えば,もっと楽になります.
16353 \end_layout
16354
16355 \begin_layout Standard
16356
16357 \family sans
16358 オーバーレイ
16359 \family default
16360 は,「親」
16361 \family sans
16362 スライド
16363 \family default
16364 のページ番号を引継ぎ,その後に「
16365 \family typewriter
16366 -a
16367 \family default
16368 」を付け加えます
16369 \begin_inset Foot
16370 status collapsed
16371
16372 \begin_layout Plain Layout
16373 想像できるように,複数のオーバーレイがあれば,「
16374 \family typewriter
16375 -a
16376 \family default
16377 」「
16378 \family typewriter
16379 -b
16380 \family default
16381 」「
16382 \family typewriter
16383 -c
16384 \family default
16385 」などが親スライドのページ番号に付け加えられます.
16386 \end_layout
16387
16388 \end_inset
16389
16390 .当然のことながら,
16391 \family sans
16392 スライド
16393 \family default
16394
16395 \family sans
16396 オーバーレイ
16397 \family default
16398 の内容は両方とも,1枚のスライドに物理的に収まるようになっていなければなりません.
16399 \family sans
16400 オーバーレイ
16401 \family default
16402
16403 \family sans
16404 スライド
16405 \family default
16406 の「一部」であると考えるのがよいでしょう.\SpecialChar LyX
16407 では,
16408 \family sans
16409 オーバーレイ
16410 \family default
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 両方の四隅に,揃えマーカーがあることに気づかれるはずです.これは,2枚のスライドを物理的に重ね合わせるための補助となるものです.
16424 \end_layout
16425
16426 \begin_layout Standard
16427 2つのスライドをオーバーレイさせる際の大きな問題は,2枚のスライドの内容を揃えることです.2枚目のスライドのグラフには,どれだけの余白を残しておくべきなのでしょ
16428 うか?さらにややこしく,2枚目のスライドにグラフと文章を入れたいときに,その間に割り込んでしまうような文章がメインスライドにある場合には,どうでしょうか?正しい
16429 寸法の垂直スペースを挿入してみることもできるでしょう.しかし,もっと良い方法として,
16430 \family sans
16431 不可視文
16432 \family default
16433
16434 \family sans
16435 可視文
16436 \family default
16437 を使用する方法があります.
16438 \end_layout
16439
16440 \begin_layout Standard
16441 これらの名前が意味するとおり,
16442 \family sans
16443 不可視文
16444 \family default
16445
16446 \family sans
16447 可視文
16448 \family default
16449 は,それぞれ続く文章すべてを見えなくしたり見えるようにしたりするコマンド型の段落環境です.しかしながら,第
16450 \begin_inset CommandInset ref
16451 LatexCommand ref
16452 reference "sec:スライドの癖"
16453
16454 \end_inset
16455
16456 節で述べたように,この2つの環境の
16457 \emph on
16458
16459 \emph default
16460 には何も置くことができません.
16461 \family sans
16462 不可視文
16463 \family default
16464 を作成すると,「<以下不可視文>」と書かれた水色のラベルが,ページに中央揃えで表示されます.このラベルに続く段落は,それが置かれるべき
16465 \family sans
16466 スライド
16467 \family default
16468 (あるいは
16469 \family sans
16470 オーバーレイ
16471 \family default
16472 ;どちらでも同じことです)部分に,代わりに空白の部分が置かれます.
16473 \end_layout
16474
16475 \begin_layout Standard
16476
16477 \family sans
16478 可視文
16479 \family default
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 \end_layout
16506
16507 \begin_layout Standard
16508 ここまでで,
16509 \family sans
16510 スライド
16511 \family default
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 \end_layout
16526
16527 \begin_layout Enumerate
16528 メインのスライドか
16529 \family sans
16530 オーバーレイ
16531 \family default
16532 かに関わらず,スライド上に現れるすべてを含んだ
16533 \family sans
16534 スライド
16535 \family default
16536 を作成します.
16537 \end_layout
16538
16539 \begin_layout Enumerate
16540
16541 \family sans
16542 オーバーレイ
16543 \family default
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 \end_layout
16558
16559 \begin_layout Enumerate
16560
16561 \family sans
16562 スライド
16563 \family default
16564 の直後から,
16565 \family sans
16566 オーバーレイ
16567 \family default
16568 を開始します.
16569 \end_layout
16570
16571 \begin_layout Enumerate
16572 この
16573 \family sans
16574 スライド
16575 \family default
16576 の内容を
16577 \family sans
16578 オーバーレイ
16579 \family default
16580 にコピーします.
16581 \end_layout
16582
16583 \begin_layout Enumerate
16584
16585 \family sans
16586 オーバーレイ
16587 \family default
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 \end_layout
16606
16607 \begin_layout Standard
16608 これだけです.これで
16609 \family sans
16610 オーバーレイ
16611 \family default
16612 ができあがりました.
16613 \end_layout
16614
16615 \begin_layout Standard
16616 \SpecialChar LyX
16617  
16618 \family sans
16619 slides
16620 \family default
16621 クラスをデザインする上で,ひとつ残された問題があります.段落途中の文章を不可視にしたり,不可視段落の途中の文章を再度可視にしたりすることはできないのです.これを
16622 実現するためには,\SpecialChar LaTeX
16623 コードを埋め込む必要があります
16624 \begin_inset Foot
16625 status collapsed
16626
16627 \begin_layout Plain Layout
16628 このコマンドは,
16629 \end_layout
16630
16631 \begin_layout Itemize
16632
16633 \family typewriter
16634 {
16635 \backslash
16636 invisible \SpecialChar ldots
16637  }
16638 \end_layout
16639
16640 \begin_layout Itemize
16641
16642 \family typewriter
16643 {
16644 \backslash
16645 visible \SpecialChar ldots
16646  }
16647 \end_layout
16648
16649 \begin_layout Plain Layout
16650 \SpecialChar ldots
16651 のような形となり,\SpecialChar TeX
16652 としてマークする必要があります.「可視性」を変更したい文章は,波括弧のあいだ(そして
16653 \family typewriter
16654
16655 \backslash
16656 invisible
16657 \family default
16658 ないし
16659 \family typewriter
16660
16661 \backslash
16662 visible
16663 \family default
16664 コマンドの後ろ)に入れます.\SpecialChar TeX
16665 としてマークする方法がわからない場合は,
16666 \emph on
16667 ユーザーの手引き
16668 \emph default
16669 をご参照ください.
16670 \end_layout
16671
16672 \end_inset
16673
16674
16675 \end_layout
16676
16677 \begin_layout Subsubsection
16678
16679 \family sans
16680 スライドで注釈を使う
16681 \family default
16682
16683 \begin_inset CommandInset label
16684 LatexCommand label
16685 name "sec:スライド注釈"
16686
16687 \end_inset
16688
16689
16690 \end_layout
16691
16692 \begin_layout Standard
16693
16694 \family sans
16695 オーバーレイ
16696 \family default
16697 と同様,
16698 \family sans
16699 注釈
16700 \family default
16701 も「親」
16702 \family sans
16703 スライド
16704 \family default
16705 に関連付けられています.ここでも\SpecialChar LyX
16706
16707 \family sans
16708 スライド
16709 \family default
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 typewriter
16728 -
16729 \family default
16730 1」「
16731 \family typewriter
16732 -
16733 \family default
16734 2」「
16735 \family typewriter
16736 -
16737 \family default
16738 3」等を付けたページ番号が付けられます.1つの
16739 \family sans
16740 スライド
16741 \family default
16742 には,複数の
16743 \family sans
16744 注釈
16745 \family default
16746 を関連付けることができるので,
16747 \family sans
16748 スライド
16749 \family default
16750
16751 \family sans
16752 オーバーレイ
16753 \family default
16754 と同じように,長い注釈は,1枚の紙に収まるように分割したいと思われるに違いありません.
16755 \end_layout
16756
16757 \begin_layout Standard
16758
16759 \family sans
16760 注釈
16761 \family default
16762 の目的は明らかです.
16763 \family sans
16764 スライド
16765 \family default
16766 に関して付け加えたいことを書き留めておくことです.特定の
16767 \family sans
16768 スライド
16769 \family default
16770 についての覚書として使うこともできます.後者の場合には,タイムマーカを利用したいこともあるかもしれません.現在のところ,\SpecialChar LyX
16771
16772 \family sans
16773 スライド
16774 \family default
16775 クラスは,
16776 \noun on
16777 Sli
16778 \noun default
16779 \SpecialChar TeX
16780 の機能であるタイムマーカを「ネイティブには」サポートしていません.したがって,\SpecialChar LaTeX
16781 コードを使用することに頼らなくてはなりません.
16782 \end_layout
16783
16784 \begin_layout Standard
16785 タイムマーカを使用するには,クラスオプション「
16786 \family typewriter
16787 clock
16788 \family default
16789 」を追加指定する必要があります(第
16790 \begin_inset CommandInset ref
16791 LatexCommand ref
16792 reference "sec:slidesetup"
16793
16794 \end_inset
16795
16796 節参照).このオプションはタイムマーカ機能を有効にして,生成したすべての
16797 \family sans
16798 注釈
16799 \family default
16800 の左下にタイムマーカを表示します.タイムマーカに表示するものを設定するには,\SpecialChar LaTeX
16801 コマンド「
16802 \family typewriter
16803
16804 \backslash
16805 settime{}
16806 \family default
16807 」および「
16808 \family typewriter
16809
16810 \backslash
16811 addtime{}
16812 \family default
16813 」を使用します.両コマンドは,秒で測った時間を引数にとります.「
16814 \family typewriter
16815
16816 \backslash
16817 settime{}
16818 \family default
16819 」は,タイムマーカを特定の時間に設定し,「
16820 \family typewriter
16821
16822 \backslash
16823 addtime{}
16824 \family default
16825 」は,タイムマーカを指定した分だけ進めます.このようにタイムマーカと
16826 \family sans
16827 注釈
16828 \family default
16829 を用いれば,特定の
16830 \family sans
16831 スライド
16832 \family default
16833 にどれだけの時間をかけるのか忘れないでいられます.
16834 \end_layout
16835
16836 \begin_layout Standard
16837 最後に,説明しておくべき機能がもう一つあります.当然ながら,
16838 \family sans
16839 スライド
16840 \family default
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 \emph on
16855 来なくてはなりません
16856 \emph default
16857 .ユーザーはどうしたら良いのでしょうか.
16858 \end_layout
16859
16860 \begin_layout Standard
16861 幸いなことに,どれを印刷するか選択することを可能にする\SpecialChar LaTeX
16862 コマンドが,2種類あります.どちらも文書のプリアンブルに記述されなくてはなりません.コマンド「
16863 \family typewriter
16864
16865 \backslash
16866 onlyslides{
16867 \backslash
16868 slides}
16869 \family default
16870 」は,出力に
16871 \family sans
16872 スライド
16873 \family default
16874
16875 \family sans
16876 オーバーレイ
16877 \family default
16878 のみが含まれるようにするものです.同様に,「
16879 \family typewriter
16880
16881 \backslash
16882 onlynotes{
16883 \backslash
16884 notes}
16885 \family default
16886 」は
16887 \family sans
16888 注釈
16889 \family default
16890 以外の出力をすべて抑制します.私のアドバイスとしては,両コマンドをプリアンブルに書いておいて,最初は両方ともコメントアウトしておくと良いでしょう.そうすれば,執
16891 筆時にはプレゼンテーション全体をプレビューすることができます.いったん書き終えたならば,二つのうち一方のコメントを外して,印刷したい方を選ぶことができます.私な
16892 らば,まず
16893 \family typewriter
16894
16895 \backslash
16896 onlyslides{
16897 \backslash
16898 slides}
16899 \family default
16900 のコメントを外して,現ファイル名に「*
16901 \family typewriter
16902 -slides
16903 \family default
16904 」を付けた新たなファイルに出力を行ない,今度はこの行をふたたびコメントアウトするとともに,「
16905 \family typewriter
16906
16907 \backslash
16908 onlynotes{
16909 \backslash
16910 notes
16911 \family default
16912 }」のコメントを外して,これを「
16913 \family typewriter
16914 *-notes.ps
16915 \family default
16916 」というファイルに出力します.そうすれば,必要に応じて,スライドまたは通常の紙をプリンタにセットし,一方のファイルをプリンタに送ればよいのです.
16917 \end_layout
16918
16919 \begin_layout Standard
16920
16921 \family typewriter
16922
16923 \backslash
16924 onlyslides{}
16925 \family default
16926 」および「
16927 \family typewriter
16928
16929 \backslash
16930 onlynotes{}
16931 \family default
16932 」コマンドには,他の引数を与えることもできます.詳しくは,\SpecialChar LaTeX
16933 の良書をご覧ください.
16934 \end_layout
16935
16936 \begin_layout Subsection
16937
16938 \family sans
16939 slides
16940 \family default
16941 クラスのひな型ファイル
16942 \end_layout
16943
16944 \begin_layout Standard
16945
16946 \family sans
16947 slides
16948 \family default
16949 クラス用のひな型ファイルとして「
16950 \family typewriter
16951 slides.lyx
16952 \family default
16953 」が提供されています.これを使用するには,新しいプレゼンテーションを作り始める際に,
16954 \family sans
16955 ファイル\SpecialChar menuseparator
16956 新規(ひな型使用)
16957 \family default
16958 メニューを選択してください.すると新規ファイルには,
16959 \family sans
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 \end_layout
16988
16989 \begin_layout LyX-Code
16990 % Uncomment to print out only slides and overlays
16991 \end_layout
16992
16993 \begin_layout LyX-Code
16994 %
16995 \end_layout
16996
16997 \begin_layout LyX-Code
16998 %
16999 \backslash
17000 onlyslides{
17001 \backslash
17002 slides}
17003 \begin_inset Newline newline
17004 \end_inset
17005
17006  
17007 \end_layout
17008
17009 \begin_layout LyX-Code
17010 % Uncomment to print out only notes
17011 \end_layout
17012
17013 \begin_layout LyX-Code
17014 %
17015 \end_layout
17016
17017 \begin_layout LyX-Code
17018 %
17019 \backslash
17020 onlynotes{
17021 \backslash
17022 notes}
17023 \end_layout
17024
17025 \begin_layout Standard
17026 最後に,私はこの文書クラスを,\SpecialChar LaTeX2e
17027 の組み込みクラスである「
17028 \noun on
17029 Sli\SpecialChar TeX
17030
17031 \noun default
17032 エミュレーション」クラスをサポートする目的で作成しました.私も\SpecialChar LyX
17033 チームの他のメンバーも,この組み込みスライドクラスを使用することに賛成したり反対したりするものでは
17034 ありません.これは単に,ユーザーがこれを使いたかったり必要としたりしたときのためにあるものです.プレゼンテーションを作成するためには,
17035 \family sans
17036 Foils
17037 \family default
17038 クラス(第
17039 \begin_inset CommandInset ref
17040 LatexCommand ref
17041 reference "sec:foiltex"
17042
17043 \end_inset
17044
17045 節参照)や「
17046 \family typewriter
17047 seminar
17048 \family default
17049 」パッケージ(一部の\SpecialChar TeX
17050 頒布版に含まれています)のように,他の\SpecialChar LaTeX2e
17051 クラスも存在します.私はこれらについては知らないのですが,他にどのようなことができるのか試してみてくだ
17052 さい.
17053 \end_layout
17054
17055 \begin_layout Chapter
17056 ソフトウェアを追加する必要がある \SpecialChar LyX
17057 機能
17058 \end_layout
17059
17060 \begin_layout Section
17061 \SpecialChar TeX
17062 のチェック
17063 \end_layout
17064
17065 \begin_layout Standard
17066
17067 \noun on
17068 Asger Alstrup
17069 \noun default
17070
17071 \end_layout
17072
17073 \begin_layout Subsection
17074 はじめに
17075 \end_layout
17076
17077 \begin_layout Standard
17078
17079 \family typewriter
17080 chktex
17081 \family default
17082 プログラムが導入されていると
17083 \begin_inset Foot
17084 status collapsed
17085
17086 \begin_layout Plain Layout
17087 \SpecialChar LaTeX
17088 頒布版としてMiK\SpecialChar TeX
17089 を使用している場合には,
17090 \family typewriter
17091 chktex
17092 \family default
17093 はまだ利用可能ではありません.
17094 \end_layout
17095
17096 \end_inset
17097
17098
17099 \family sans
17100 ツール
17101 \family default
17102 メニューの下に,
17103 \family sans
17104 \SpecialChar TeX
17105 構文チェック
17106 \family default
17107 という項目が表示されます.
17108 \family typewriter
17109 chktex
17110 \family default
17111 は,CTAN
17112 \begin_inset Newline newline
17113 \end_inset
17114
17115
17116 \begin_inset CommandInset href
17117 LatexCommand href
17118 target "https://www.ctan.org/tex-archive/help/Catalogue/entries/chktex.html"
17119 literal "false"
17120
17121 \end_inset
17122
17123 から入手することができます.
17124 \end_layout
17125
17126 \begin_layout Standard
17127
17128 \family sans
17129 Chk\SpecialChar TeX
17130
17131 \family default
17132 パッケージは,\SpecialChar LaTeX
17133 の構成物には直感的でないものもあり,すぐ忘れてしまいがちであるのに不満を感じた
17134 \begin_inset Flex Noun
17135 status collapsed
17136
17137 \begin_layout Plain Layout
17138 Jens T.
17139  Berger Thielemann
17140 \end_layout
17141
17142 \end_inset
17143
17144 が書いたプログラムです.このプログラムは,\SpecialChar LaTeX
17145 ファイルを走査して,ファイルの整合性をチェックし,犯しがちな誤りを見つけ出します.別の技術用語では,LaTeXにおける
17146 \family typewriter
17147 lint
17148 \family default
17149 であるとも言えます.
17150 \end_layout
17151
17152 \begin_layout Standard
17153 さて,\SpecialChar LyX
17154 はつねに正しい\SpecialChar LaTeX
17155 ファイルを生成するはずなのに,文法チェッカーは\SpecialChar LyX
17156 で何をするというのでしょうか.答えは簡単です.
17157 \family typewriter
17158 lint
17159 \family default
17160 がC言語プログラムの
17161 \emph on
17162 文法
17163 \emph default
17164 をチェックするだけでなく,打ち間違いによる
17165 \emph on
17166 意味上の
17167 \emph default
17168 チェックも行うように,
17169 \family sans
17170 Chk\SpecialChar TeX
17171
17172 \family default
17173 は,文法エラーの他に犯しがちな
17174 \emph on
17175 写植上の
17176 \emph default
17177 誤りも検出してくれるからです.
17178 \family sans
17179 Chk\SpecialChar TeX
17180
17181 \family default
17182 は,以下のような誤りを検出することができます.
17183 \end_layout
17184
17185 \begin_layout Itemize
17186 省略記号の検出:
17187 \begin_inset Newline newline
17188 \end_inset
17189
17190 ...ではなく\SpecialChar ldots
17191 を使わなくてはなりません
17192 \end_layout
17193
17194 \begin_layout Itemize
17195 括弧の前後にスペースを置かない:
17196 \begin_inset Newline newline
17197 \end_inset
17198
17199 ( wrong spacing ):誤った空白
17200 \end_layout
17201
17202 \begin_layout Itemize
17203 よく使われる省略形の後ろは通常スペースにする:
17204 \begin_inset Newline newline
17205 \end_inset
17206
17207 e.
17208 \begin_inset space \thinspace{}
17209 \end_inset
17210
17211 g.
17212 \begin_inset space \space{}
17213 \end_inset
17214
17215 is too wide spacing.:広すぎる空白
17216 \end_layout
17217
17218 \begin_layout Itemize
17219 直前の文章が大文字で終わっているときに,文末スペースに直す:
17220 \begin_inset Newline newline
17221 \end_inset
17222
17223 This is a TEST.
17224  And this is wrong spacing.:誤った空白
17225 \end_layout
17226
17227 \begin_layout Itemize
17228 ラベルや類似コマンドの前のスペース:
17229 \begin_inset Newline newline
17230 \end_inset
17231
17232 ラベルが別のページに行ってしまわないように,ラベルは文章に接していなくてはなりません. 
17233 \begin_inset CommandInset label
17234 LatexCommand label
17235 name "sec:chktex"
17236
17237 \end_inset
17238
17239  
17240 \begin_inset Foot
17241 status collapsed
17242
17243 \begin_layout Plain Layout
17244 この脚注は,正しくないページに行ってしまう恐れがあります.
17245 \end_layout
17246
17247 \end_inset
17248
17249  このラベルは離れすぎです.
17250 \end_layout
17251
17252 \begin_layout Itemize
17253 参照の前にハードスペースではなくスペース:
17254 \begin_inset Newline newline
17255 \end_inset
17256
17257 運が悪ければ,参照文字列と参照番号のあいだでちょうど改行されてしまい,残念な結果となります.第
17258 \begin_inset CommandInset ref
17259 LatexCommand ref
17260 reference "sec:chktex"
17261
17262 \end_inset
17263
17264 節をご覧ください.
17265 \end_layout
17266
17267 \begin_layout Itemize
17268 数字のあいだで
17269 \begin_inset Formula $\times$
17270 \end_inset
17271
17272 ではなく「x」が使われている:
17273 \begin_inset Newline newline
17274 \end_inset
17275
17276 2x2は,
17277 \begin_inset Formula $2\times2$
17278 \end_inset
17279
17280 よりも安っぽく見えます.
17281 \end_layout
17282
17283 \begin_layout Standard
17284 などなど\SpecialChar ldots
17285
17286 \family sans
17287 Chk\SpecialChar TeX
17288
17289 \family default
17290 は,印刷する前に文書を「仕上げる」上で,たいへん価値のあるツールです.必須のスペルチェックを終えた直後,組版の微調整をする前には,これを実行するべきです.
17291 \end_layout
17292
17293 \begin_layout Subsection
17294 使いかた
17295 \end_layout
17296
17297 \begin_layout Standard
17298 このプログラムを導入したならば,使うのは
17299 \family sans
17300 ツール\SpecialChar menuseparator
17301 \SpecialChar TeX
17302 構文チェック
17303 \family default
17304 を選択するだけなので簡単です.こうすると,\SpecialChar LyX
17305 は使用中の文書の\SpecialChar LaTeX
17306 ファイルを生成して,
17307 \family sans
17308 Chk\SpecialChar TeX
17309
17310 \family default
17311 を起動し,当該ファイルを検査しますが,
17312 \family sans
17313 Chk\SpecialChar TeX
17314
17315 \family default
17316 から警告があった場合には,それを含んだ「エラーボックス」を\SpecialChar LyX
17317 中に挿入します.警告は,誤りのある箇所のそばに置かれるので,メニュー項目の
17318 \family sans
17319 移動\SpecialChar menuseparator
17320 エラー
17321 \family default
17322 を選択するか,既定の
17323 \family typewriter
17324 cua
17325 \family default
17326
17327 \begin_inset Flex Ruby
17328 status collapsed
17329
17330 \begin_layout Plain Layout
17331
17332 \begin_inset Argument post:1
17333 status collapsed
17334
17335 \begin_layout Plain Layout
17336 キー
17337 \end_layout
17338
17339 \end_inset
17340
17341
17342 \end_layout
17343
17344 \end_inset
17345
17346 設定ファイルならば
17347 \begin_inset Flex Ruby
17348 status collapsed
17349
17350 \begin_layout Plain Layout
17351
17352 \family roman
17353 \series medium
17354 \shape up
17355 \size normal
17356 \emph off
17357 \bar no
17358 \noun off
17359 \color none
17360 捷径
17361 \family default
17362 \series default
17363 \shape default
17364 \size default
17365 \emph default
17366 \bar default
17367 \noun default
17368 \color inherit
17369
17370 \begin_inset Argument post:1
17371 status collapsed
17372
17373 \begin_layout Plain Layout
17374 ショートカット
17375 \end_layout
17376
17377 \end_inset
17378
17379
17380 \end_layout
17381
17382 \end_inset
17383
17384
17385 \family sans
17386 C-g
17387 \family default
17388 を押せば,簡単に警告の箇所を見出すことができます.エラーボックスを開けるには,マウスでボックスをクリックするか,
17389 \family typewriter
17390 cua
17391 \family default
17392 鍵設定の場合には捷径鍵
17393 \family sans
17394 C-i
17395 \family default
17396
17397 \family typewriter
17398 emacs
17399 \family default
17400 鍵設定の場合は捷径鍵
17401 \family sans
17402 C-o
17403 \family default
17404 を押します.警告を読み,それが誤りを示していれば修正します.警告が何を意味しているか理解しにくい場合には,無視しても問題はありません.画面上の文書と,
17405 \family sans
17406 Chk\SpecialChar TeX
17407
17408 \family default
17409 を起動する際に行なわれる実際の技術的な操作のあいだには,隠された層があり,この隔たりのせいで,一部の警告が不可解なものになったり,明らかに馬鹿げたものになる場合
17410 があるのです.
17411 \end_layout
17412
17413 \begin_layout Standard
17414 本文書自体,この機能を確認する良い材料になりますので,実行してみてください.すると,かなりの量の警告が出るはずです.これはコンピュータが敏感すぎるせいですので,
17415 警告のほとんどは実際には警告に値しません.
17416 \end_layout
17417
17418 \begin_layout Subsection
17419 微調整のしかた
17420 \end_layout
17421
17422 \begin_layout Standard
17423 場合によっては,
17424 \family sans
17425 Chk\SpecialChar TeX
17426
17427 \family default
17428 は,あなたが望むよりも煩すぎると思うかもしれません.そのような場合には,必要と思うまで
17429 \family sans
17430 Chk\SpecialChar TeX
17431
17432 \family default
17433 を無効にするか,あなたにもう少し合うように
17434 \family sans
17435 Chk\SpecialChar TeX
17436
17437 \family default
17438 を調整することができます.
17439 \end_layout
17440
17441 \begin_layout Standard
17442
17443 \family sans
17444 Chk\SpecialChar TeX
17445
17446 \family default
17447 は調整や拡張がひじょうに柔軟なのですが,\SpecialChar LyX
17448 における
17449 \family sans
17450 Chk\SpecialChar TeX
17451
17452 \family default
17453 関連の問題が,それですべて解決すると思うべきではありません.\SpecialChar LyX
17454 は,
17455 \family sans
17456 Chk\SpecialChar TeX
17457
17458 \family default
17459 出力
17460 \begin_inset Foot
17461 status collapsed
17462
17463 \begin_layout Plain Layout
17464
17465 \family sans
17466 chktex
17467 \family default
17468 の実際の出力は,
17469 \family sans
17470 chktex
17471 \family default
17472 を実行した直後に
17473 \family sans
17474 文書\SpecialChar menuseparator
17475 \SpecialChar LaTeX
17476 ログ
17477 \family default
17478 を使えば見ることができます.
17479 \end_layout
17480
17481 \end_inset
17482
17483 から得た行番号と内部構造を一致させるため,やや特殊な\SpecialChar LaTeX
17484 ファイルを生成しなくてはならないので,警告の一部は正しく表示されていないように見えるでしょう.これに対処する
17485 ためには,以下の2つの方法があります.
17486 \end_layout
17487
17488 \begin_layout Itemize
17489
17490 \family sans
17491 \begin_inset Flex MenuItem
17492 status collapsed
17493
17494 \begin_layout Plain Layout
17495
17496 \family sans
17497 ツール\SpecialChar menuseparator
17498 設定\SpecialChar menuseparator
17499 出力\SpecialChar menuseparator
17500 \SpecialChar LaTeX
17501 \SpecialChar menuseparator
17502 Check\SpecialChar TeX
17503 コマンド
17504 \end_layout
17505
17506 \end_inset
17507
17508
17509 \family default
17510 中の
17511 \family sans
17512 Chk\SpecialChar TeX
17513
17514 \family default
17515 起動コマンドラインを調整するか,グローバルな
17516 \family sans
17517 Chk\SpecialChar TeX
17518
17519 \family default
17520 の設定ファイル(通常は
17521 \begin_inset Flex Code
17522 status collapsed
17523
17524 \begin_layout Plain Layout
17525 chktexrc
17526 \end_layout
17527
17528 \end_inset
17529
17530 ファイル)を調整します.コマンドラインからどの警告を有効・無効にできるかは以下をご覧ください.
17531 \end_layout
17532
17533 \begin_layout Itemize
17534
17535 \family sans
17536 ファイル\SpecialChar menuseparator
17537 書き出し\SpecialChar menuseparator
17538 \SpecialChar LaTeX
17539
17540 \family default
17541 を使って文書を\SpecialChar LaTeX
17542 ファイルに変換し,そのファイルに対して
17543 \family typewriter
17544 chktex
17545 \family default
17546 を手動で実行します.このようにすると,\SpecialChar LyX
17547 文書中の対応箇所を見つけるのがやや面倒ですが,少し我慢すれば見つけることができます.
17548 \end_layout
17549
17550 \begin_layout Standard
17551 以下は,
17552 \family sans
17553 設定
17554 \family default
17555 で有効化・無効化できる警告メッセージです.警告を無効にするには
17556 \family typewriter
17557 -n#
17558 \family default
17559 ,有効にするには
17560 \family typewriter
17561 -w#
17562 \family default
17563 を用います.イタリック表示の項目は,既定で無効となっています.既定値は "
17564 \family typewriter
17565 chktex -n1 -n3 -n6 -n9 -n22 -n25 -n30 -n38
17566 \family default
17567 "です.
17568 \end_layout
17569
17570 \begin_layout Standard
17571 \SpecialChar LyX
17572 は,
17573 \family typewriter
17574 chktex
17575 \family default
17576 と通信するために,他のコマンドラインパラメータを特定の方法で使用しているため,メッセージを有効化・無効化する以外のオプションを使うべきではありません.
17577 \end_layout
17578
17579 \begin_layout Enumerate
17580
17581 \size small
17582 \emph on
17583 Command terminated with space.
17584 \end_layout
17585
17586 \begin_layout Enumerate
17587
17588 \size small
17589 Non-breaking space (
17590 \begin_inset Quotes eld
17591 \end_inset
17592
17593
17594 \family typewriter
17595 ~
17596 \family default
17597
17598 \begin_inset Quotes erd
17599 \end_inset
17600
17601 ) should have been used.
17602 \end_layout
17603
17604 \begin_layout Enumerate
17605
17606 \size small
17607 \emph on
17608 You should enclose the previous parenthesis with 
17609 \begin_inset Quotes eld
17610 \end_inset
17611
17612
17613 \family typewriter
17614 {}
17615 \family default
17616
17617 \begin_inset Quotes erd
17618 \end_inset
17619
17620 .
17621 \end_layout
17622
17623 \begin_layout Enumerate
17624
17625 \size small
17626 Italic correction (
17627 \begin_inset Quotes eld
17628 \end_inset
17629
17630
17631 \family typewriter
17632
17633 \backslash
17634 /
17635 \family default
17636
17637 \begin_inset Quotes erd
17638 \end_inset
17639
17640 ) found in non-italic buffer.
17641 \end_layout
17642
17643 \begin_layout Enumerate
17644
17645 \size small
17646 Italic correction (
17647 \begin_inset Quotes eld
17648 \end_inset
17649
17650
17651 \family typewriter
17652
17653 \backslash
17654 /
17655 \family default
17656
17657 \begin_inset Quotes erd
17658 \end_inset
17659
17660 ) found more than once.
17661 \end_layout
17662
17663 \begin_layout Enumerate
17664
17665 \size small
17666 \emph on
17667 No italic correction (
17668 \begin_inset Quotes eld
17669 \end_inset
17670
17671
17672 \family typewriter
17673
17674 \backslash
17675 /
17676 \family default
17677
17678 \begin_inset Quotes erd
17679 \end_inset
17680
17681 ) found.
17682 \end_layout
17683
17684 \begin_layout Enumerate
17685
17686 \size small
17687 Accent command 
17688 \begin_inset Quotes eld
17689 \end_inset
17690
17691
17692 \family typewriter
17693 cmd
17694 \family default
17695
17696 \begin_inset Quotes erd
17697 \end_inset
17698
17699  needs use of 
17700 \begin_inset Quotes eld
17701 \end_inset
17702
17703
17704 \family typewriter
17705 cmd
17706 \family default
17707
17708 \begin_inset Quotes erd
17709 \end_inset
17710
17711 .
17712 \end_layout
17713
17714 \begin_layout Enumerate
17715
17716 \size small
17717 Wrong length of dash may have been used.
17718 \end_layout
17719
17720 \begin_layout Enumerate
17721
17722 \size small
17723 \emph on
17724 \begin_inset Quotes eld
17725 \end_inset
17726
17727
17728 \family typewriter
17729 %s
17730 \family default
17731
17732 \begin_inset Quotes erd
17733 \end_inset
17734
17735  expected, found 
17736 \begin_inset Quotes eld
17737 \end_inset
17738
17739
17740 \family typewriter
17741 %s
17742 \family default
17743
17744 \begin_inset Quotes erd
17745 \end_inset
17746
17747 .
17748 \end_layout
17749
17750 \begin_layout Enumerate
17751
17752 \size small
17753 Solo 
17754 \begin_inset Quotes eld
17755 \end_inset
17756
17757
17758 \family typewriter
17759 %s
17760 \family default
17761
17762 \begin_inset Quotes erd
17763 \end_inset
17764
17765  found.
17766 \end_layout
17767
17768 \begin_layout Enumerate
17769
17770 \size small
17771 You should use 
17772 \begin_inset Quotes eld
17773 \end_inset
17774
17775
17776 \family typewriter
17777 %s
17778 \family default
17779
17780 \begin_inset Quotes erd
17781 \end_inset
17782
17783  to achieve an ellipsis.
17784 \end_layout
17785
17786 \begin_layout Enumerate
17787
17788 \size small
17789 Inter-word spacing (
17790 \begin_inset Quotes eld
17791 \end_inset
17792
17793
17794 \family typewriter
17795
17796 \backslash
17797
17798 \family default
17799  
17800 \begin_inset Quotes eld
17801 \end_inset
17802
17803 ) should perhaps be used.
17804 \end_layout
17805
17806 \begin_layout Enumerate
17807
17808 \size small
17809 Inter-sentence spacing (
17810 \begin_inset Quotes eld
17811 \end_inset
17812
17813
17814 \family typewriter
17815
17816 \backslash
17817 @
17818 \family default
17819
17820 \begin_inset Quotes erd
17821 \end_inset
17822
17823 ) should perhaps be used.
17824 \end_layout
17825
17826 \begin_layout Enumerate
17827
17828 \size small
17829 Could not find argument for command.
17830 \end_layout
17831
17832 \begin_layout Enumerate
17833
17834 \size small
17835 No match found for 
17836 \begin_inset Quotes eld
17837 \end_inset
17838
17839
17840 \family typewriter
17841 %s
17842 \family default
17843
17844 \begin_inset Quotes erd
17845 \end_inset
17846
17847 .
17848 \end_layout
17849
17850 \begin_layout Enumerate
17851
17852 \size small
17853 Math mode still on at end of \SpecialChar LaTeX
17854  file.
17855 \end_layout
17856
17857 \begin_layout Enumerate
17858
17859 \size small
17860 Number of 
17861 \begin_inset Quotes eld
17862 \end_inset
17863
17864
17865 \family typewriter
17866 char
17867 \family default
17868
17869 \begin_inset Quotes erd
17870 \end_inset
17871
17872  doesn't match the number of 
17873 \begin_inset Quotes eld
17874 \end_inset
17875
17876
17877 \family typewriter
17878 char
17879 \family default
17880
17881 \begin_inset Quotes erd
17882 \end_inset
17883
17884 .
17885 \end_layout
17886
17887 \begin_layout Enumerate
17888
17889 \size small
17890 You should use either 
17891 \family typewriter
17892
17893 \begin_inset Quotes eld
17894 \end_inset
17895
17896
17897 \family default
17898  or 
17899 \family typewriter
17900
17901 \begin_inset Quotes erd
17902 \end_inset
17903
17904
17905 \family default
17906  as an alternative to 
17907 \begin_inset Quotes eld
17908 \end_inset
17909
17910
17911 \family typewriter
17912 "
17913 \family default
17914
17915 \begin_inset Quotes erd
17916 \end_inset
17917
17918 .
17919 \end_layout
17920
17921 \begin_layout Enumerate
17922
17923 \size small
17924 You should use "
17925 \family typewriter
17926 '
17927 \family default
17928 " (ASCII 39) instead of "" (ASCII 180).
17929 \end_layout
17930
17931 \begin_layout Enumerate
17932
17933 \size small
17934 User-specified pattern found.
17935 \end_layout
17936
17937 \begin_layout Enumerate
17938
17939 \size small
17940 This command might not be intended.
17941 \end_layout
17942
17943 \begin_layout Enumerate
17944
17945 \size small
17946 \emph on
17947 Comment displayed.
17948 \end_layout
17949
17950 \begin_layout Enumerate
17951
17952 \size small
17953 Either 
17954 \family typewriter
17955 ''
17956 \backslash
17957 ,'
17958 \family default
17959  or 
17960 \family typewriter
17961 '
17962 \backslash
17963 ,''
17964 \family default
17965  will look better.
17966 \end_layout
17967
17968 \begin_layout Enumerate
17969
17970 \size small
17971 Delete this space to maintain correct page references.
17972 \end_layout
17973
17974 \begin_layout Enumerate
17975
17976 \size small
17977 \emph on
17978 You might wish to put this between a pair of 
17979 \begin_inset Quotes eld
17980 \end_inset
17981
17982
17983 \family typewriter
17984 {}
17985 \family default
17986
17987 \begin_inset Quotes erd
17988 \end_inset
17989
17990 .
17991 \end_layout
17992
17993 \begin_layout Enumerate
17994
17995 \size small
17996 You ought to remove spaces in front of punctuation.
17997 \end_layout
17998
17999 \begin_layout Enumerate
18000
18001 \size small
18002 Could not execute \SpecialChar LaTeX
18003  command.
18004 \end_layout
18005
18006 \begin_layout Enumerate
18007
18008 \size small
18009 Don't use 
18010 \family typewriter
18011
18012 \backslash
18013 /
18014 \family default
18015  in front of small punctuation.
18016 \end_layout
18017
18018 \begin_layout Enumerate
18019
18020 \family typewriter
18021 \size small
18022 $
18023 \backslash
18024 times$
18025 \family default
18026  may look prettier here.
18027 \end_layout
18028
18029 \begin_layout Enumerate
18030
18031 \size small
18032 \emph on
18033 Multiple spaces detected in output.
18034 \end_layout
18035
18036 \begin_layout Enumerate
18037
18038 \size small
18039 This text may be ignored.
18040 \end_layout
18041
18042 \begin_layout Enumerate
18043
18044 \size small
18045 Use 
18046 \family typewriter
18047
18048 \begin_inset Quotes eld
18049 \end_inset
18050
18051
18052 \family default
18053  to begin quotation, not 
18054 \family typewriter
18055 '
18056 \family default
18057 .
18058 \end_layout
18059
18060 \begin_layout Enumerate
18061
18062 \size small
18063 Use 
18064 \family typewriter
18065 '
18066 \family default
18067  to end quotation, not 
18068 \family typewriter
18069
18070 \begin_inset Quotes eld
18071 \end_inset
18072
18073
18074 \family default
18075 .
18076 \end_layout
18077
18078 \begin_layout Enumerate
18079
18080 \size small
18081 Don't mix quotes.
18082 \end_layout
18083
18084 \begin_layout Enumerate
18085
18086 \size small
18087 You should perhaps use 
18088 \begin_inset Quotes eld
18089 \end_inset
18090
18091
18092 \family typewriter
18093 cmd
18094 \family default
18095
18096 \begin_inset Quotes erd
18097 \end_inset
18098
18099  instead.
18100 \end_layout
18101
18102 \begin_layout Enumerate
18103
18104 \size small
18105 You should put a space in front of/after parenthesis.
18106 \end_layout
18107
18108 \begin_layout Enumerate
18109
18110 \size small
18111 You should avoid spaces in front of/after parenthesis.
18112 \end_layout
18113
18114 \begin_layout Enumerate
18115
18116 \size small
18117 \emph on
18118 You should not use punctuation in front of/after quotes.
18119 \end_layout
18120
18121 \begin_layout Enumerate
18122
18123 \size small
18124 Double space found.
18125 \end_layout
18126
18127 \begin_layout Enumerate
18128
18129 \size small
18130 You should put punctuation outside inner/inside display math mode.
18131 \end_layout
18132
18133 \begin_layout Enumerate
18134
18135 \size small
18136 You ought to not use primitive \SpecialChar TeX
18137  in \SpecialChar LaTeX
18138  code.
18139 \end_layout
18140
18141 \begin_layout Enumerate
18142
18143 \size small
18144 You should remove spaces in front of 
18145 \begin_inset Quotes eld
18146 \end_inset
18147
18148
18149 \family typewriter
18150 %s
18151 \family default
18152
18153 \begin_inset Quotes erd
18154 \end_inset
18155
18156
18157 \end_layout
18158
18159 \begin_layout Enumerate
18160
18161 \size small
18162 \begin_inset Quotes eld
18163 \end_inset
18164
18165
18166 \family typewriter
18167 %s
18168 \family default
18169
18170 \begin_inset Quotes erd
18171 \end_inset
18172
18173  is normally not followed by 
18174 \begin_inset Quotes eld
18175 \end_inset
18176
18177
18178 \family typewriter
18179 %c
18180 \family default
18181
18182 \begin_inset Quotes erd
18183 \end_inset
18184
18185 .
18186 \end_layout
18187
18188 \begin_layout Standard
18189 \SpecialChar LyX
18190 の将来の版では,このツール(およびその縮小版
18191 \family typewriter
18192 lacheck
18193 \family default
18194 )の力を最大限引き出すように,より完備したインターフェイスを提供できればと考えています.しかし,現状でも十分に役立つものとなっています.ある程度長さがある既存文
18195 書に使用してみていただければ,きっと驚かれることでしょう.
18196 \end_layout
18197
18198 \begin_layout Section
18199 \SpecialChar LyX
18200 でのバージョン管理
18201 \end_layout
18202
18203 \begin_layout Standard
18204
18205 \noun on
18206 Lars Bullik Bjønnes
18207 \noun default
18208 および
18209 \noun on
18210 Pavel Sanda
18211 \noun default
18212
18213 \end_layout
18214
18215 \begin_layout Subsection
18216 はじめに
18217 \end_layout
18218
18219 \begin_layout Standard
18220 \SpecialChar LyX
18221 は,今ではもっとも基本的なRCS/CVS/SVN/GITコマンドをサポートしています.もしもっと洗練されたことを行いたい場合には,ターミナル上から手動で行う必要
18222 があります.
18223 \end_layout
18224
18225 \begin_layout Standard
18226 また,CVSのサポートは,subversionのサポートほど良くないので,CVSよりもSVNを使うことをお勧めします.Subversionを学び始めるには,SV
18227 N Book
18228 \begin_inset Foot
18229 status collapsed
18230
18231 \begin_layout Plain Layout
18232 \begin_inset CommandInset href
18233 LatexCommand href
18234 target "http://svnbook.red-bean.com/"
18235 literal "false"
18236
18237 \end_inset
18238
18239
18240 \end_layout
18241
18242 \end_inset
18243
18244 が良いでしょう.RCSの場合は,「rsintro」をお読みください(これはmanファイルです.
18245 \family typewriter
18246 man rcsintro
18247 \family default
18248 で読めます).このファイルは,RCSの基本機能のすべてを説明しています.特に,RCSディレクトリに関するコメントと,マスターRCSファイル(
18249 \family typewriter
18250 ,v
18251 \family default
18252 で終わるファイルです)の概念に注意を払ってください.
18253 \end_layout
18254
18255 \begin_layout Standard
18256 \SpecialChar LyX
18257 で実際にバージョン管理機能を使い始める前に,RCS/CVS/SVN/GITの使用法に習熟しておかなくてはなりません.\SpecialChar LyX
18258 で\SpecialChar LyX
18259 への実装においては,GNU
18260  RCSまたはCVS/SVNパッケージの最新版を仮定しています.旧版への保証はありません.ログメッセージのほとんどは,現在のところ操作後には表示されません.確認
18261 したい場合には,メッセージ面で確かめてください.バージョン管理を常用するユーザーには,VCツールバーが便利でしょう.これは
18262 \family sans
18263 表示\SpecialChar menuseparator
18264 ツールバー\SpecialChar menuseparator
18265 バージョン管理
18266 \family default
18267 で有効にできます.
18268 \end_layout
18269
18270 \begin_layout Standard
18271 自製の外部コマンドを導入したい場合には,
18272 \emph on
18273 \SpecialChar LyX
18274 関数
18275 \emph default
18276 説明書の
18277 \begin_inset Flex Code
18278 status collapsed
18279
18280 \begin_layout Plain Layout
18281 vc-command
18282 \end_layout
18283
18284 \end_inset
18285
18286 を確認してください.
18287 \end_layout
18288
18289 \begin_layout Standard
18290 バージョン管理機能を使用している場合には,文書を非圧縮形式で保存をすることを強く推奨します(
18291 \family sans
18292 文書\SpecialChar menuseparator
18293 圧縮
18294 \family default
18295 にチェックが入っていれば外してください).非圧縮LyX文書はテキストファイルであるため,バージョン管理システムが,二つのバージョンをマージすることができます.一
18296 方,圧縮LyXファイルはバイナリファイルであるため,バージョン管理システムはマージすることができません.
18297 \end_layout
18298
18299 \begin_layout Subsection
18300 \SpecialChar LyX
18301 におけるRCSコマンド
18302 \end_layout
18303
18304 \begin_layout Standard
18305 以下の節では\SpecialChar LyX
18306 でサポートされているRCSコマンドを説明します.それらのコマンドは
18307 \family sans
18308 ファイル\SpecialChar menuseparator
18309 バージョン管理
18310 \family default
18311 のサブメニューにあります.\SpecialChar LyX
18312 は,RCS 5.7/5.8に対して試験されています.
18313 \end_layout
18314
18315 \begin_layout Subsubsection
18316
18317 \family sans
18318 登録
18319 \end_layout
18320
18321 \begin_layout Standard
18322 文書がバージョン管理の下にない場合には,これがメニューにあらわれる唯一の項目です.文書がバージョン管理下にあれば,項目
18323 \family sans
18324 登録
18325 \family default
18326 は不可視になります.
18327 \end_layout
18328
18329 \begin_layout Standard
18330 このコマンドは,文書をRCSに登録します(CVSが管理しているディレクトリ下にない場合).すると対話的に,文書の最初の説明を入力するように尋ねられます.すると文
18331 書は読み込み専用モードになるので,変更を加えるためには
18332 \family sans
18333 チェックアウトして編集
18334 \family default
18335 を実行する必要があります.バージョン管理下にある文書は,ミニバッファのファイル名の後ろに「 [RCS:<バージョン> <ロック>]」という項目が表示されます.
18336 \end_layout
18337
18338 \begin_layout Standard
18339 実行されるRCSコマンドは:
18340 \end_layout
18341
18342 \begin_layout LyX-Code
18343
18344 \family typewriter
18345 ci -q -u -i -t-"<初期説明文>" <ファイル名>
18346 \end_layout
18347
18348 \begin_layout Standard
18349 スイッチについて知りたい場合は,
18350 \family typewriter
18351 man ci
18352 \family default
18353 を読んでください.
18354 \end_layout
18355
18356 \begin_layout Subsubsection
18357
18358 \family sans
18359 変更をチェックインする
18360 \end_layout
18361
18362 \begin_layout Standard
18363 ファイルの編集が終わると,その変更をチェックインします.このとき,変更についての説明文を求められます.これは履歴ログに記録されます.バージョン番号は繰り上がり,
18364 変更がマスターRCSファイルに適用され,文書がアンロックされて読み込み専用モードになります.
18365 \end_layout
18366
18367 \begin_layout Itemize
18368 RCSコマンド:
18369 \family typewriter
18370 ci -q -u -m"<説明文>" <ファイル名>
18371 \end_layout
18372
18373 \begin_layout Subsubsection
18374
18375 \family sans
18376 チェックアウトして編集
18377 \end_layout
18378
18379 \begin_layout Standard
18380 これは,文書をロックして編集できるようにします.そしてあなただけが文書を読み書きできるようにします.通常は,しばらくの間,文書を編集し,それが終わると変更をチェ
18381 ックインします.あなたがファイルをロックしたことを反映して,ステータスラインが変わります.
18382 \end_layout
18383
18384 \begin_layout Itemize
18385 RCSコマンド:
18386 \family typewriter
18387 co -q -l <ファイル名>
18388 \end_layout
18389
18390 \begin_layout Subsubsection
18391
18392 \family sans
18393 リポジトリのバージョンに戻す
18394 \end_layout
18395
18396 \begin_layout Standard
18397 これは,最終チェックイン以降,文書に加えられた変更をすべて破棄します.変更が破棄される前に,警告が発せられます.
18398 \end_layout
18399
18400 \begin_layout Itemize
18401 RCSコマンド:
18402 \family typewriter
18403 co -f -u<バージョン> <ファイル名>
18404 \end_layout
18405
18406 \begin_layout Subsubsection
18407
18408 \family sans
18409 コピー
18410 \end_layout
18411
18412 \begin_layout Standard
18413 これは,現行文書のコピーを生成します.RCSは,コピー操作を自前ではサポートしませんので,バージョン履歴には保存されず,新コピーは新規ファイルとして追加されます
18414 .最後のチェックイン以降,変更が加えられていないサラの文書であることが要求されます.ファイル名とコピー操作の説明を入力するように促され,その後,新コピーがローカ
18415 ルとリポジトリの両方に生成されます.コピーされた文書と元の文書の親ディレクトリが異なる場合には,コピーにインクルードされたファイルの相対パスは,(
18416 \family sans
18417 ファイル\SpecialChar menuseparator
18418 名前をつけて保存\SpecialChar ldots
18419
18420 \family default
18421 と同様に)全て調整されます.最後に,元の文書の代わりに,コピーされたファイルが読み込まれます.
18422 \end_layout
18423
18424 \begin_layout Labeling
18425 \labelwidthstring 00.00.0000
18426 RCSコマンド: 
18427 \begin_inset space ~
18428 \end_inset
18429
18430
18431 \begin_inset Newline newline
18432 \end_inset
18433
18434
18435 \begin_inset Flex Code
18436 status collapsed
18437
18438 \begin_layout Plain Layout
18439 "ファイル名"
18440 \end_layout
18441
18442 \end_inset
18443
18444
18445 \begin_inset Flex Code
18446 status collapsed
18447
18448 \begin_layout Plain Layout
18449 "新ファイル名"
18450 \end_layout
18451
18452 \end_inset
18453
18454 にコピーする場合
18455 \begin_inset Newline newline
18456 \end_inset
18457
18458
18459 \begin_inset Flex Code
18460 status collapsed
18461
18462 \begin_layout Plain Layout
18463 ci -q -u -i "<新ファイル名>"
18464 \end_layout
18465
18466 \end_inset
18467
18468
18469 \end_layout
18470
18471 \begin_layout Subsubsection
18472
18473 \family sans
18474 最後のチェックインを取り消す
18475 \end_layout
18476
18477 \begin_layout Standard
18478 これは,最後のチェックインがあたかも為されなかったかのようにします.\SpecialChar LyX
18479 に読み込まれた文書に変更は加えられませんが,マスターRCSファイルから最後のバージョンが削除
18480 されます.
18481 \end_layout
18482
18483 \begin_layout Itemize
18484 RCSコマンド:
18485 \family typewriter
18486 rcs -o<バージョン> <ファイル名>
18487 \end_layout
18488
18489 \begin_layout Subsubsection
18490
18491 \family sans
18492 履歴を表示
18493 \end_layout
18494
18495 \begin_layout Standard
18496 RCS文書の完全な履歴を表示します.ブラウザ中に,
18497 \family typewriter
18498 rlog <ファイル名>
18499 \family default
18500 の出力が表示されます.詳細は
18501 \family typewriter
18502 man rlog
18503 \family default
18504 をご覧ください.
18505 \end_layout
18506
18507 \begin_layout Subsubsection
18508 改訂情報
18509 \end_layout
18510
18511 \begin_layout Standard
18512 \SpecialChar LyX
18513 は,RCSバージョン番号情報(のみ)をサポートしています.詳細については,
18514 \begin_inset CommandInset ref
18515 LatexCommand ref
18516 reference "subsec:VCS改訂情報"
18517
18518 \end_inset
18519
18520 を参照.
18521 \end_layout
18522
18523 \begin_layout Subsection
18524 \SpecialChar LyX
18525 におけるCVSコマンド
18526 \end_layout
18527
18528 \begin_layout Standard
18529 \SpecialChar LyX
18530 は,現在CVSを一部サポートしています.そのコマンドは,
18531 \family sans
18532 ファイル\SpecialChar menuseparator
18533 バージョン管理
18534 \family default
18535 サブメニューにあります.バージョン管理システムSVNの方が強力なので,可能ならばCVSではなく,SVNを使用してください.
18536 \end_layout
18537
18538 \begin_layout Subsubsection
18539 CVSの一般的な利用法
18540 \end_layout
18541
18542 \begin_layout Standard
18543 CVSを初めて使いたい場合には,外部ツールを使用して自分のレポジトリを作成し,作業コピーをチェックアウトする必要があります.クライアント=サーバーモデルを使用し
18544 ている場合には,最初のレポジトリチェックアウトを行う前にログインする必要があるかもしれません.
18545 \end_layout
18546
18547 \begin_layout Standard
18548 改訂管理下にある文書のレポジトリを他人も利用している場合に,同一文書の同一箇所に別々の変更を加えてしまうと問題が発生します.標準的なCVSレポジトリは,ファイル
18549 ロッキング機構を有しません.これは驚くべきことかもしれませんが,コンフリクトは,文書の同じ箇所の特定の内容について,人々が意見を異にしている場合にのみ発生します
18550 .したがって,共著者同士がコンスタントにコミュニケーションを交わしていれば,このようなコンフリクトは滅多に発生しません.もしコミュニケーションがなければ,いずれ
18551 にしても根本的な問題があるわけです.それにもかかわらず,いわゆる「予備付きチェックアウト」を使用したいと思う人々もいます.この場合,最初にチェックアウトした際に
18552 ,全ファイルの作業コピーは読み込み専用にされ,ユーザーは,作業コピーを書き込み可能にする特別なコマンドを使用した後,編集を開始することになります.変更をチェック
18553 インすると,作業コピーは読み込み専用状態に戻ります.\SpecialChar LyX
18554 で予備付きチェックアウトを利用したい場合には,
18555 \begin_inset Flex Code
18556 status collapsed
18557
18558 \begin_layout Plain Layout
18559 .cvsrc
18560 \end_layout
18561
18562 \end_inset
18563
18564 ファイルを編集して,
18565 \begin_inset Flex Code
18566 status collapsed
18567
18568 \begin_layout Plain Layout
18569 cvs -r
18570 \end_layout
18571
18572 \end_inset
18573
18574 という行を書き加える必要があります.この方法の利点は,文書のうち,書き込み可能コピーを誰が使用しているかを見ることができることです.ただし,一人のユーザーだけが
18575 コピーを書き込み可能にしているとは限りません.
18576 \end_layout
18577
18578 \begin_layout Standard
18579 \SpecialChar LyX
18580 は,あなたが予備付きチェックアウトを使用しているか,予備なしチェックアウトを利用しているか,推測しようと試みます.使用中の作業コピーが読み込み専用になっているか
18581 ,あるいはそれが書き込み可能であって,CVS/Baseサブディレクトリに使用中文書のコピーが存在している場合には,予備付きチェックアウトを使用しているものと仮定
18582 し,そうでない場合には予備なしチェックアウトを使用しているものと仮定します.予備付きチェックアウトが検出された場合には,作業コピーが読み込み専用の場合に書き込み
18583 可能にするためには,
18584 \begin_inset Flex MenuItem
18585 status collapsed
18586
18587 \begin_layout Plain Layout
18588 チェックアウト
18589 \end_layout
18590
18591 \end_inset
18592
18593 メニューを使用しなくてはなりません.その後,
18594 \begin_inset Flex MenuItem
18595 status collapsed
18596
18597 \begin_layout Plain Layout
18598 チェックイン
18599 \end_layout
18600
18601 \end_inset
18602
18603 メニューが利用可能になるので,自分が加えた変更をリポジトリに移した後,作業コピーを再び読み込み専用にする際には,これを使用します.
18604 \end_layout
18605
18606 \begin_layout Standard
18607 CVSの詳細な情報は,
18608 \begin_inset Flex URL
18609 status collapsed
18610
18611 \begin_layout Plain Layout
18612
18613 http://www.nongnu.org/cvs
18614 \end_layout
18615
18616 \end_inset
18617
18618
18619 \begin_inset Flex URL
18620 status collapsed
18621
18622 \begin_layout Plain Layout
18623
18624 http://ximbiot.com/cvs
18625 \end_layout
18626
18627 \end_inset
18628
18629 にあります.
18630 \end_layout
18631
18632 \begin_layout Standard
18633 以下に言及するサブコマンドとスイッチを理解するには,
18634 \family typewriter
18635 man cvs
18636 \family default
18637 をお読みください.
18638 \end_layout
18639
18640 \begin_layout Subsubsection
18641 登録
18642 \end_layout
18643
18644 \begin_layout Standard
18645 お使いの文書が改訂管理下に置かれていなければ,メニューにはこの項目だけが表示されます.もし改訂管理が有効ならば,
18646 \family sans
18647 登録
18648 \family default
18649 項目は表示されません.
18650 \end_layout
18651
18652 \begin_layout Standard
18653 本コマンドは,既に文書ディレクトリをCVS管理下に置いている場合に
18654 \series bold
18655 \emph on
18656 のみ
18657 \series default
18658 \emph default
18659 (すなわち
18660 \begin_inset Flex Code
18661 status collapsed
18662
18663 \begin_layout Plain Layout
18664 CVS/Entries
18665 \end_layout
18666
18667 \end_inset
18668
18669 ファイルが存在する場合にのみ),お使いの文書をCVSに登録します.つまり,外部ツールを使用して,アーカイブを自分で作成ないしチェックアウトしなくてはならないこと
18670 を意味します(このステップを忘れてしまうと,\SpecialChar LyX
18671 は文書をRCSに登録します).
18672 \end_layout
18673
18674 \begin_layout Standard
18675 すると,文書の最初の説明文を入力するように促されます.登録したファイルは,まだチェックインされたわけではないことに注意してください.
18676 \end_layout
18677
18678 \begin_layout Standard
18679 実行されるCVSコマンドは,
18680 \family typewriter
18681 cvs -q add -m"<入力した説明文>" "<ファイル名>"
18682 \family default
18683  です.
18684 \end_layout
18685
18686 \begin_layout Standard
18687 上記および他のすべてのCVSコマンドにおける
18688 \family typewriter
18689 "<ファイル名>"
18690 \family default
18691 は,「カレント作業ディレクトリをファイルの場所に移動し,パスコンポーネントを除いたファイル名を引数として使用する」という意味になります.
18692 \end_layout
18693
18694 \begin_layout Subsubsection
18695 変更のチェックイン
18696 \end_layout
18697
18698 \begin_layout Standard
18699 ファイルの編集を終えたら,変更をコミットします.このとき,文書に変更が加えられていれば,変更の説明文を入れるよう促されます.その後,変更がレポジトリに書き込まれ
18700 ます.文書を変更せず,予備付きチェックアウトが検出された場合,
18701 \begin_inset Flex MenuItem
18702 status collapsed
18703
18704 \begin_layout Plain Layout
18705 チェックアウト
18706 \end_layout
18707
18708 \end_inset
18709
18710 で作られた予備は取り消されます.
18711 \end_layout
18712
18713 \begin_layout Labeling
18714 \labelwidthstring 00.00.0000
18715 CVSコマンド: 
18716 \begin_inset space ~
18717 \end_inset
18718
18719
18720 \begin_inset Newline newline
18721 \end_inset
18722
18723
18724 \begin_inset Flex Code
18725 status collapsed
18726
18727 \begin_layout Plain Layout
18728 cvs -q commit -m"<入力した説明文>" "<ファイル名>"
18729 \end_layout
18730
18731 \end_inset
18732
18733 あるいは
18734 \begin_inset Newline newline
18735 \end_inset
18736
18737
18738 \begin_inset Flex Code
18739 status collapsed
18740
18741 \begin_layout Plain Layout
18742 cvs -q unedit "<ファイル名>"
18743 \end_layout
18744
18745 \end_inset
18746
18747
18748 \end_layout
18749
18750 \begin_layout Subsubsection
18751 変更のチェックアウト
18752 \end_layout
18753
18754 \begin_layout Standard
18755 レポジトリを他人と共有している場合,他人の加えた変更を自らの作業コピーに取り込まなくてはならないことがあります.
18756 \end_layout
18757
18758 \begin_layout Standard
18759 CVSコマンド:
18760 \family typewriter
18761 cvs -q update "<ファイル名>"
18762 \end_layout
18763
18764 \begin_layout Standard
18765 読み込み専用チェックアウトが検出された場合,作業コピーを書き込み可能にし予備を作成します.
18766 \end_layout
18767
18768 \begin_layout Standard
18769 CVSコマンド:
18770 \family typewriter
18771 cvs -q edit "<ファイル名>"
18772 \end_layout
18773
18774 \begin_layout Subsubsection
18775 レポジトリ版に戻す
18776 \end_layout
18777
18778 \begin_layout Standard
18779 これは,最後のチェックイン以降,文書に加えられた変更をすべて廃棄します.変更が廃棄される前に警告が表示されます.最初にファイルが削除され,次にCVS更新コマンド
18780 が実行されます.
18781 \end_layout
18782
18783 \begin_layout Standard
18784 CVSコマンド:
18785 \family typewriter
18786 cvs -q update "<ファイル名>"
18787 \end_layout
18788
18789 \begin_layout Standard
18790 予備付きチェックアウトが検出され,作業コピーに変更がない場合,予備のみが取り消されます.
18791 \end_layout
18792
18793 \begin_layout Standard
18794 CVSコマンド:
18795 \family typewriter
18796 cvs -q unedit "<ファイル名>"
18797 \end_layout
18798
18799 \begin_layout Subsubsection
18800
18801 \family sans
18802 コピー
18803 \end_layout
18804
18805 \begin_layout Standard
18806 これは,現行文書のコピーを生成します.CVSは,コピー操作を自前ではサポートしませんので,バージョン履歴には保存されず,新コピーは新規ファイルとして追加されます
18807 .最後のチェックイン以降,変更が加えられていないサラの文書であることが要求されます.ファイル名とコピー操作の説明を入力するように促され,その後,新コピーがローカ
18808 ルとリポジトリの両方に生成されます.コピーされた文書と元の文書の親ディレクトリが異なる場合には,コピーにインクルードされたファイルの相対パスは,(
18809 \family sans
18810 ファイル\SpecialChar menuseparator
18811 名前をつけて保存\SpecialChar ldots
18812
18813 \family default
18814 と同様に)全て調整されます.最後に,元の文書の代わりに,コピーされたファイルが読み込まれます.
18815 \end_layout
18816
18817 \begin_layout Labeling
18818 \labelwidthstring 00.00.0000
18819 CVSコマンド: 
18820 \begin_inset space ~
18821 \end_inset
18822
18823
18824 \begin_inset Newline newline
18825 \end_inset
18826
18827
18828 \begin_inset Flex Code
18829 status collapsed
18830
18831 \begin_layout Plain Layout
18832 "<ファイル名>"
18833 \end_layout
18834
18835 \end_inset
18836
18837
18838 \begin_inset Flex Code
18839 status collapsed
18840
18841 \begin_layout Plain Layout
18842 "<新ファイル名>"
18843 \end_layout
18844
18845 \end_inset
18846
18847 にコピーする場合
18848 \begin_inset Newline newline
18849 \end_inset
18850
18851
18852 \begin_inset Flex Code
18853 status collapsed
18854
18855 \begin_layout Plain Layout
18856 cvs -q add "<新ファイル名>"
18857 \end_layout
18858
18859 \end_inset
18860
18861
18862 \end_layout
18863
18864 \begin_layout Subsubsection
18865 ファイル名変更
18866 \end_layout
18867
18868 \begin_layout Standard
18869 これは,現行文書のファイル名を変更します.CVSは,ファイル名変更操作を自前ではサポートしませんので,バージョン履歴には保存されず,名称変更後のファイルは,新規
18870 ファイルとして追加されます.最後のチェックイン以降,変更が加えられていないサラの文書であることが要求されます.ファイル名とコピー操作の説明を入力するように促され
18871 ,その後,ローカルとリポジトリの両方でファイル名が変更されます.新旧ファイル名の文書の親ディレクトリが異なる場合には,コピーにインクルードされたファイルの相対パ
18872 スは,(
18873 \family sans
18874 ファイル\SpecialChar menuseparator
18875 名前をつけて保存\SpecialChar ldots
18876
18877 \family default
18878 と同様に)全て調整されます.最後に,新ファイル名を使ってファイルが再度読み込まれます.
18879 \end_layout
18880
18881 \begin_layout Labeling
18882 \labelwidthstring 00.00.0000
18883 CVSコマンド: 
18884 \begin_inset space ~
18885 \end_inset
18886
18887
18888 \begin_inset Newline newline
18889 \end_inset
18890
18891
18892 \begin_inset Flex Code
18893 status collapsed
18894
18895 \begin_layout Plain Layout
18896 "<ファイル名>"
18897 \end_layout
18898
18899 \end_inset
18900
18901
18902 \begin_inset Flex Code
18903 status collapsed
18904
18905 \begin_layout Plain Layout
18906 "<新ファイル名>"
18907 \end_layout
18908
18909 \end_inset
18910
18911 に変更する場合 
18912 \begin_inset space ~
18913 \end_inset
18914
18915
18916 \begin_inset Newline newline
18917 \end_inset
18918
18919
18920 \begin_inset Flex Code
18921 status collapsed
18922
18923 \begin_layout Plain Layout
18924 cvs -q add "<新ファイル名>"
18925 \end_layout
18926
18927 \end_inset
18928
18929  
18930 \begin_inset space ~
18931 \end_inset
18932
18933
18934 \begin_inset Newline newline
18935 \end_inset
18936
18937
18938 \begin_inset Flex Code
18939 status collapsed
18940
18941 \begin_layout Plain Layout
18942 cvs -q remove "<ファイル名>"
18943 \end_layout
18944
18945 \end_inset
18946
18947
18948 \end_layout
18949
18950 \begin_layout Subsubsection
18951 ローカルディレクトリチェックアウトのレポジトリからの更新
18952 \end_layout
18953
18954 \begin_layout Standard
18955 子文書や図を含んだり,外部
18956 \begin_inset Flex Code
18957 status collapsed
18958
18959 \begin_layout Plain Layout
18960 .tex
18961 \end_layout
18962
18963 \end_inset
18964
18965 ファイルを取り込むなど,文書が複雑になるにつれ,バージョン管理の利用は複雑になります.\SpecialChar LyX
18966 は,文書が存在するツリー全体の更新をサポートします.これは,CVSの使用法
18967 について詳しい知識のない人々や,レポジトリに追加素材をコミットする野望のない人々と共同作業をするような場合に,特に便利です.ファイル構造は,すべての外部ファイル
18968 が,文書と同じディレクトリかそのサブディレクトリに来るように組織する必要があります.いずれにしても,複合文書を新しいディレクトリを建てて収容するのは,望ましい習
18969 慣です.
18970 \end_layout
18971
18972 \begin_layout Standard
18973 コマンド
18974 \begin_inset Flex Code
18975 status collapsed
18976
18977 \begin_layout Plain Layout
18978 レポジトリを使ってローカル辞書を更新
18979 \end_layout
18980
18981 \end_inset
18982
18983 は,ディレクトリ全体を更新します.ローカルの変更が検出された場合には,更新を開始する前にユーザーに警告が発せられます.マージコンフリクトが発生した場合には,コン
18984 フリクトを起こしている部分の新旧バージョンが,両方とも最終文書に置かれますので,マージの結果を見直し,修正する必要があります.コンフリクトは,
18985 \begin_inset Flex Code
18986 status collapsed
18987
18988 \begin_layout Plain Layout
18989 <<<<<<<
18990 \end_layout
18991
18992 \end_inset
18993
18994
18995 \begin_inset Flex Code
18996 status collapsed
18997
18998 \begin_layout Plain Layout
18999 >>>>>>>
19000 \end_layout
19001
19002 \end_inset
19003
19004 の対に囲まれ,
19005 \begin_inset Flex Code
19006 status collapsed
19007
19008 \begin_layout Plain Layout
19009 =======
19010 \end_layout
19011
19012 \end_inset
19013
19014 で区切られて表示されます.最初の部分は,文書名に続いて,更新操作前のバージョンが置かれています.第2の部分は,
19015 \begin_inset Flex Code
19016 status collapsed
19017
19018 \begin_layout Plain Layout
19019 >
19020 \end_layout
19021
19022 \end_inset
19023
19024 記号列の後にバージョン番号に続いて,レポジトリ版が置かれます.
19025 \end_layout
19026
19027 \begin_layout Labeling
19028 \labelwidthstring 00.00.0000
19029 CVSコマンド: 
19030 \begin_inset space ~
19031 \end_inset
19032
19033
19034 \begin_inset Newline newline
19035 \end_inset
19036
19037
19038 \begin_inset Flex Code
19039 status collapsed
19040
19041 \begin_layout Plain Layout
19042 cd $path; cvs diff "."
19043 \end_layout
19044
19045 \end_inset
19046
19047 (変更が検出された場合には知らせる)
19048 \begin_inset Newline newline
19049 \end_inset
19050
19051
19052 \begin_inset Flex Code
19053 status collapsed
19054
19055 \begin_layout Plain Layout
19056 cd $path; cvs -q update "."
19057 \end_layout
19058
19059 \end_inset
19060
19061
19062 \end_layout
19063
19064 \begin_layout Standard
19065 ここで
19066 \begin_inset Flex Code
19067 status collapsed
19068
19069 \begin_layout Plain Layout
19070 $path
19071 \end_layout
19072
19073 \end_inset
19074
19075 は文書パスを表します.
19076 \end_layout
19077
19078 \begin_layout Subsubsection
19079 履歴を表示
19080 \end_layout
19081
19082 \begin_layout Standard
19083 これは,CVS文書の全履歴を表示します.
19084 \begin_inset Flex Code
19085 status collapsed
19086
19087 \begin_layout Plain Layout
19088 cvs log 
19089 \begin_inset Quotes eld
19090 \end_inset
19091
19092 <ファイル名>
19093 \begin_inset Quotes erd
19094 \end_inset
19095
19096
19097 \end_layout
19098
19099 \end_inset
19100
19101 の出力がブラウザに表示されます.
19102 \end_layout
19103
19104 \begin_layout Subsubsection
19105 改訂情報
19106 \end_layout
19107
19108 \begin_layout Standard
19109 \SpecialChar LyX
19110 は,CVS版数・著者名・最終コミットの日時をサポートします.これらの情報は,すべて
19111 \family typewriter
19112 cvs log -r <ファイル名>
19113 \family default
19114 によって抽出されます.詳細については,第
19115 \begin_inset CommandInset ref
19116 LatexCommand ref
19117 reference "subsec:VCS改訂情報"
19118
19119 \end_inset
19120
19121 節を参照してください.
19122 \end_layout
19123
19124 \begin_layout Subsection
19125 \SpecialChar LyX
19126 におけるSVNコマンド
19127 \end_layout
19128
19129 \begin_layout Standard
19130 \SpecialChar LyX
19131 は,現在SVNを一部サポートしています.そのコマンドは,
19132 \begin_inset Flex MenuItem
19133 status collapsed
19134
19135 \begin_layout Plain Layout
19136 ファイル\SpecialChar menuseparator
19137 バージョン管理
19138 \end_layout
19139
19140 \end_inset
19141
19142 メニューにあります.レポジトリへのアクセスに,ssh経由のパスワード保護アクセスを使用している場合には,端末ウィンドウでの入力を促されます.\SpecialChar LyX
19143 は,SVN
19144  1.5・1.6・1.7・1.8に対して試験されています
19145 \begin_inset Foot
19146 status collapsed
19147
19148 \begin_layout Plain Layout
19149 ほとんどのコマンドは,1.4でも動作します.
19150 \begin_inset CommandInset ref
19151 LatexCommand ref
19152 reference "subsec:レポジトリからSVN同期"
19153 plural "false"
19154 caps "false"
19155 noprefix "false"
19156
19157 \end_inset
19158
19159 を参照してください.SVN 1.8では,ファイルがロックされている時にパーミッション変更点を戻してしまうという現時点では未解決の問題が存在しています.
19160 \end_layout
19161
19162 \end_inset
19163
19164
19165 \end_layout
19166
19167 \begin_layout Subsubsection
19168 登録
19169 \end_layout
19170
19171 \begin_layout Standard
19172 お使いの文書が改訂管理下に置かれていなければ,メニューにはこの項目だけが表示されます.もし改訂管理が有効ならば,
19173 \family sans
19174 登録
19175 \family default
19176 項目は表示されません.
19177 \end_layout
19178
19179 \begin_layout Standard
19180 本コマンドは,既に文書のあるディレクトリをSVN管理下に置いている場合に
19181 \emph on
19182 のみ
19183 \emph default
19184 (すなわち
19185 \begin_inset Flex Code
19186 status collapsed
19187
19188 \begin_layout Plain Layout
19189 .svn/entries
19190 \end_layout
19191
19192 \end_inset
19193
19194 ファイルが存在する場合にのみ),お使いの文書をSVNに登録します.つまり,アーカイブはご自分でチェックアウトしなくてはなりません.
19195 \end_layout
19196
19197 \begin_layout Standard
19198 すると,文書の最初の説明文を入力するように促されます.登録したファイルは,まだコミットされたわけではないことに注意してください.
19199 \end_layout
19200
19201 \begin_layout Standard
19202 実行されるSVNコマンドは,
19203 \begin_inset Flex Code
19204 status collapsed
19205
19206 \begin_layout Plain Layout
19207 svn add -q 
19208 \begin_inset Quotes qld
19209 \end_inset
19210
19211 <ファイル名>
19212 \begin_inset Quotes qld
19213 \end_inset
19214
19215
19216 \end_layout
19217
19218 \end_inset
19219
19220 です.
19221 \end_layout
19222
19223 \begin_layout Standard
19224 スイッチの説明は
19225 \begin_inset Flex Code
19226 status collapsed
19227
19228 \begin_layout Plain Layout
19229 man svn
19230 \end_layout
19231
19232 \end_inset
19233
19234 をお読みください.
19235 \end_layout
19236
19237 \begin_layout Subsubsection
19238 変更をチェックイン
19239 \end_layout
19240
19241 \begin_layout Standard
19242 ファイルの編集を終えたら,変更をコミットします.このとき,変更の説明文を入れるよう促されます.その後,変更がコミットされます.
19243 \end_layout
19244
19245 \begin_layout Standard
19246 SVNコマンド
19247 \begin_inset Foot
19248 status collapsed
19249
19250 \begin_layout Plain Layout
19251 ロックが有効になっていない場合です.第
19252 \begin_inset CommandInset ref
19253 LatexCommand ref
19254 reference "subsec:SVNファイルロック"
19255
19256 \end_inset
19257
19258 節をご覧ください.
19259 \end_layout
19260
19261 \end_inset
19262
19263
19264 \begin_inset Flex Code
19265 status collapsed
19266
19267 \begin_layout Plain Layout
19268 svn commit -q -m"<入力した説明文>" "<ファイル名>"
19269 \end_layout
19270
19271 \end_inset
19272
19273
19274 \end_layout
19275
19276 \begin_layout Subsubsection
19277 チェックアウトして編集
19278 \end_layout
19279
19280 \begin_layout Standard
19281 このファイルの変更点をレポジトリから取得して更新します.すべての干渉点は,手動で解決しなくてはならないので,この機能を使う前にSVNのマージ法と干渉解決法を理解
19282 しておくようにしてください.
19283 \end_layout
19284
19285 \begin_layout Standard
19286 SVNコマンド
19287 \begin_inset Foot
19288 status collapsed
19289
19290 \begin_layout Plain Layout
19291 同上.
19292 \end_layout
19293
19294 \end_inset
19295
19296
19297 \begin_inset Flex Code
19298 status collapsed
19299
19300 \begin_layout Plain Layout
19301 svn update --non-interactive 
19302 \begin_inset Quotes qld
19303 \end_inset
19304
19305 <ファイル名>
19306 \begin_inset Quotes qld
19307 \end_inset
19308
19309
19310 \end_layout
19311
19312 \end_inset
19313
19314
19315 \end_layout
19316
19317 \begin_layout Subsubsection
19318 リポジトリ版に戻す
19319 \end_layout
19320
19321 \begin_layout Standard
19322 これは,最後のチェックイン以降,文書に加えられた変更をすべて廃棄します.変更が廃棄される前に警告が表示されます.
19323 \end_layout
19324
19325 \begin_layout Standard
19326 SVNコマンド:
19327 \begin_inset Flex Code
19328 status collapsed
19329
19330 \begin_layout Plain Layout
19331 svn revert -q 
19332 \begin_inset Quotes qld
19333 \end_inset
19334
19335 <ファイル名>
19336 \begin_inset Quotes qld
19337 \end_inset
19338
19339
19340 \end_layout
19341
19342 \end_inset
19343
19344
19345 \end_layout
19346
19347 \begin_layout Subsubsection
19348
19349 \family sans
19350 コピー
19351 \end_layout
19352
19353 \begin_layout Standard
19354 これは,現行文書のコピーを生成します.最後のチェックイン以降,変更が加えられていないサラの文書であることが要求されます.ファイル名とコピー操作の説明を入力するよ
19355 うに促され,その後,新コピーがローカルとリポジトリの両方に生成されます.コピーされた文書と元の文書の親ディレクトリが異なる場合には,コピーにインクルードされたフ
19356 ァイルの相対パスは,(
19357 \family sans
19358 ファイル\SpecialChar menuseparator
19359 名前をつけて保存\SpecialChar ldots
19360
19361 \family default
19362 と同様に)全て調整されます.最後に,元の文書の代わりに,コピーされたファイルが読み込まれます.
19363 \end_layout
19364
19365 \begin_layout Labeling
19366 \labelwidthstring 00.00.0000
19367 SVNコマンド: 
19368 \begin_inset space ~
19369 \end_inset
19370
19371
19372 \begin_inset Newline newline
19373 \end_inset
19374
19375
19376 \begin_inset Flex Code
19377 status collapsed
19378
19379 \begin_layout Plain Layout
19380 svn copy -q "<ファイル名>" "<新ファイル名>"
19381 \end_layout
19382
19383 \end_inset
19384
19385
19386 \begin_inset space ~
19387 \end_inset
19388
19389
19390 \begin_inset Newline newline
19391 \end_inset
19392
19393
19394 \begin_inset Flex Code
19395 status collapsed
19396
19397 \begin_layout Plain Layout
19398 svn commit
19399 \end_layout
19400
19401 \end_inset
19402
19403
19404 \end_layout
19405
19406 \begin_layout Subsubsection
19407 ファイル名変更
19408 \end_layout
19409
19410 \begin_layout Standard
19411 これは,現行文書のファイル名を変更します.最後のチェックイン以降,変更が加えられていないサラの文書であることが要求されます.ファイル名とコピー操作の説明を入力す
19412 るように促され,その後,ローカルとリポジトリの両方でファイル名が変更されます.新旧ファイル名の文書の親ディレクトリが異なる場合には,コピーにインクルードされたフ
19413 ァイルの相対パスは,(
19414 \family sans
19415 ファイル\SpecialChar menuseparator
19416 名前をつけて保存\SpecialChar ldots
19417
19418 \family default
19419 と同様に)全て調整されます.最後に,新ファイル名を使ってファイルが再度読み込まれます.
19420 \end_layout
19421
19422 \begin_layout Labeling
19423 \labelwidthstring 00.00.0000
19424 SVNコマンド: 
19425 \begin_inset space ~
19426 \end_inset
19427
19428
19429 \begin_inset Newline newline
19430 \end_inset
19431
19432
19433 \begin_inset Flex Code
19434 status collapsed
19435
19436 \begin_layout Plain Layout
19437 svn move -q add "<ファイル名>" "<新ファイル名>"
19438 \end_layout
19439
19440 \end_inset
19441
19442
19443 \begin_inset Newline newline
19444 \end_inset
19445
19446
19447 \begin_inset Flex Code
19448 status collapsed
19449
19450 \begin_layout Plain Layout
19451 svn commit
19452 \end_layout
19453
19454 \end_inset
19455
19456
19457 \end_layout
19458
19459 \begin_layout Subsubsection
19460 \begin_inset CommandInset label
19461 LatexCommand label
19462 name "subsec:レポジトリからSVN同期"
19463
19464 \end_inset
19465
19466 レポジトリを使ったローカルディレクトリの同期
19467 \begin_inset Foot
19468 status collapsed
19469
19470 \begin_layout Plain Layout
19471 このコマンドは,subversion 
19472 \begin_inset Formula $\geqq1.5$
19473 \end_inset
19474
19475 でのみ動作することに注意してください.
19476 \end_layout
19477
19478 \end_inset
19479
19480
19481 \end_layout
19482
19483 \begin_layout Standard
19484 上記の各コマンドはすべて,共通の短所を持っています.すなわち,これらのコマンドは現在の文書しか取り扱わないのです.もし,作業中の文書に図を含めたり,外部
19485 \begin_inset Flex Code
19486 status collapsed
19487
19488 \begin_layout Plain Layout
19489 .tex
19490 \end_layout
19491
19492 \end_inset
19493
19494 ファイルを取り込んだりすれば,管理はずっと複雑になります.そこで\SpecialChar LyX
19495 は,文書のおいてあるツリー全体の更新をサポートします
19496 \begin_inset Foot
19497 status collapsed
19498
19499 \begin_layout Plain Layout
19500 すべての外部ファイルが,文書と同じディレクトリかそれ以下のサブディレクトリに来るようにファイル構造を構成する必要があります.
19501 \end_layout
19502
19503 \end_inset
19504
19505 .これは,subversion管理を知らなかったりレポジトリに新しい素材をコミットする勇気のない人たちと共同作業をする羽目になったときに,ひじょうに役に立ちます
19506
19507 \end_layout
19508
19509 \begin_layout Standard
19510 \begin_inset Flex Code
19511 status collapsed
19512
19513 \begin_layout Plain Layout
19514 ローカル辞書をレポジトリを使って更新
19515 \end_layout
19516
19517 \end_inset
19518
19519 コマンドは,ディレクトリ全体を更新し,マージに衝突が発生した場合には,ローカル版は保存されるので,意図しないデータロスが発生しません.ローカルな変更が発見された
19520 場合には,更新が開始される前にユーザに警告が与えられます.
19521 \end_layout
19522
19523 \begin_layout Labeling
19524 \labelwidthstring 00.00.0000
19525 SVNコマンド: 
19526 \begin_inset space ~
19527 \end_inset
19528
19529
19530 \begin_inset Newline newline
19531 \end_inset
19532
19533
19534 \begin_inset Flex Code
19535 status collapsed
19536
19537 \begin_layout Plain Layout
19538 svn diff $path(変更が発見された場合には通知します)
19539 \begin_inset Newline newline
19540 \end_inset
19541
19542 svn update --accept mine-full $path
19543 \end_layout
19544
19545 \end_inset
19546
19547
19548 \end_layout
19549
19550 \begin_layout Standard
19551 ここで
19552 \begin_inset Flex Code
19553 status collapsed
19554
19555 \begin_layout Plain Layout
19556 $path
19557 \end_layout
19558
19559 \end_inset
19560
19561 は文書のパスを示します.
19562 \end_layout
19563
19564 \begin_layout Subsubsection
19565 履歴を表示
19566 \end_layout
19567
19568 \begin_layout Standard
19569 これは,SVN文書の全履歴を表示します.
19570 \begin_inset Flex Code
19571 status collapsed
19572
19573 \begin_layout Plain Layout
19574 svn log 
19575 \begin_inset Quotes qld
19576 \end_inset
19577
19578 <ファイル名>
19579 \begin_inset Quotes qld
19580 \end_inset
19581
19582
19583 \end_layout
19584
19585 \end_inset
19586
19587 の出力がブラウザに表示されます.
19588 \end_layout
19589
19590 \begin_layout Subsubsection
19591 ファイルロック
19592 \begin_inset CommandInset label
19593 LatexCommand label
19594 name "subsec:SVNファイルロック"
19595
19596 \end_inset
19597
19598
19599 \end_layout
19600
19601 \begin_layout Standard
19602 別々の改訂管理システム間でファイルを交換しようとすると,二人のユーザが同じ文書(の一部)を編集している場合,マージが衝突する問題を引き起こします.そのような衝突
19603 が発生した場合,手動で解決しなくてはならなくなりますが,その合理的な解決法としては,与えられた時間に一人のユーザだけがファイルを編集することが許されるように保証
19604 するための,何らかのロック機構を導入することが考えられます.
19605 \end_layout
19606
19607 \begin_layout Standard
19608 SVNには,このように相互に排他的なファイルアクセスを提供する機構が二つあります.ロックと,
19609 \begin_inset Flex Code
19610 status collapsed
19611
19612 \begin_layout Plain Layout
19613 svn:needs-lock
19614 \end_layout
19615
19616 \end_inset
19617
19618 svnファイル特性に依拠した書き込み権限の自動設定(第
19619 \begin_inset CommandInset ref
19620 LatexCommand ref
19621 reference "subsec:自動ロック特性"
19622
19623 \end_inset
19624
19625 節を参照)です
19626 \begin_inset Foot
19627 status collapsed
19628
19629 \begin_layout Plain Layout
19630 \begin_inset Flex URL
19631 status open
19632
19633 \begin_layout Plain Layout
19634
19635 http://svnbook.red-bean.com/en/1.2/svn.advanced.locking.html
19636 \end_layout
19637
19638 \end_inset
19639
19640
19641 \end_layout
19642
19643 \end_inset
19644
19645 .ある文書について,この特性が検出されたときには,\SpecialChar LyX
19646 は自動的に文書編集にSVNロックを使用するようになり,チェックイン・チェックアウト機構はRCSと同じ枠組みに切
19647 り替わります.これは特に,\SpecialChar LyX
19648 でのファイルの使われ方に以下の二つのモードがあることを意味します.
19649 \end_layout
19650
19651 \begin_layout Itemize
19652 非ロック状態.読み込まれたファイルは,読み込み専用モードになります.編集するためには,チェックアウトする必要があります.
19653 \emph on
19654 チェックアウト
19655 \emph default
19656 を行うと,レポジトリからの更新と,書き込みロックの獲得が行われます.ロックの獲得ができないと,非ロック状態から出ることができません.
19657 \end_layout
19658
19659 \begin_layout Itemize
19660 ロック状態.読み込まれたファイルは,「通常の」編集モードになります.他のユーザには,このファイルを編集する許可が与えられません.
19661 \emph on
19662 チェックイン
19663 \emph default
19664 を行うと,変更のコミットと書き込みロックの解放が行われます.文書に変更が加えられなかった場合には,コミットは実行されず
19665 \begin_inset Foot
19666 status collapsed
19667
19668 \begin_layout Plain Layout
19669 コミットは実行されないのに,コミットメッセージを入力するよう促されますが,驚かないでください.
19670 \end_layout
19671
19672 \end_inset
19673
19674 ,書き込みロックの解放のみが行われます.
19675 \end_layout
19676
19677 \begin_layout Standard
19678 SVNコマンド:
19679 \end_layout
19680
19681 \begin_layout Labeling
19682 \labelwidthstring 00.00.0000
19683 チェックイン: 
19684 \begin_inset Flex Code
19685 status collapsed
19686
19687 \begin_layout Plain Layout
19688 svn commit -q -m
19689 \begin_inset Quotes erd
19690 \end_inset
19691
19692 <説明>
19693 \begin_inset Quotes erd
19694 \end_inset
19695
19696  
19697 \begin_inset Quotes eld
19698 \end_inset
19699
19700 <ファイル名>
19701 \begin_inset Quotes erd
19702 \end_inset
19703
19704
19705 \end_layout
19706
19707 \end_inset
19708
19709
19710 \begin_inset Newline newline
19711 \end_inset
19712
19713
19714 \begin_inset Flex Code
19715 status collapsed
19716
19717 \begin_layout Plain Layout
19718 svn unlock 
19719 \begin_inset Quotes eld
19720 \end_inset
19721
19722 <ファイル名>
19723 \begin_inset Quotes erd
19724 \end_inset
19725
19726
19727 \end_layout
19728
19729 \end_inset
19730
19731
19732 \end_layout
19733
19734 \begin_layout Labeling
19735 \labelwidthstring 00.00.0000
19736 チェックアウト: 
19737 \begin_inset Flex Code
19738 status collapsed
19739
19740 \begin_layout Plain Layout
19741 svn update 
19742 \begin_inset Quotes eld
19743 \end_inset
19744
19745 <ファイル名>
19746 \begin_inset Quotes erd
19747 \end_inset
19748
19749
19750 \end_layout
19751
19752 \end_inset
19753
19754
19755 \begin_inset Newline newline
19756 \end_inset
19757
19758
19759 \begin_inset Flex Code
19760 status collapsed
19761
19762 \begin_layout Plain Layout
19763 svn unlock 
19764 \begin_inset Quotes eld
19765 \end_inset
19766
19767 <ファイル名>
19768 \begin_inset Quotes erd
19769 \end_inset
19770
19771
19772 \end_layout
19773
19774 \end_inset
19775
19776
19777 \end_layout
19778
19779 \begin_layout Subsubsection
19780 自動ロック特性
19781 \begin_inset CommandInset label
19782 LatexCommand label
19783 name "subsec:自動ロック特性"
19784
19785 \end_inset
19786
19787
19788 \end_layout
19789
19790 \begin_layout Standard
19791 上述したような
19792 \begin_inset Flex Code
19793 status collapsed
19794
19795 \begin_layout Plain Layout
19796 .lyx
19797 \end_layout
19798
19799 \end_inset
19800
19801 ファイルに対する書き込み権限の自動設定は,
19802 \begin_inset Flex MenuItem
19803 status collapsed
19804
19805 \begin_layout Plain Layout
19806 ファイル\SpecialChar menuseparator
19807 バージョン管理\SpecialChar menuseparator
19808 ロック特性を使用
19809 \end_layout
19810
19811 \end_inset
19812
19813 で行うことができます.このコマンドは,SVNサーバでファイルがロックされていないときのみ使用可能状態になります(つまり,使用するにはチェックアウトが必要です).
19814 \end_layout
19815
19816 \begin_layout Standard
19817 SVNコマンド:
19818 \end_layout
19819
19820 \begin_layout Labeling
19821 \labelwidthstring 00.00.0000
19822 チェックイン: 
19823 \begin_inset Flex Code
19824 status collapsed
19825
19826 \begin_layout Plain Layout
19827 svn propset svn:needs-lock ON 
19828 \begin_inset Quotes eld
19829 \end_inset
19830
19831 <ファイル名>
19832 \begin_inset Quotes erd
19833 \end_inset
19834
19835
19836 \end_layout
19837
19838 \end_inset
19839
19840
19841 \end_layout
19842
19843 \begin_layout Labeling
19844 \labelwidthstring 00.00.0000
19845 チェックアウト: 
19846 \begin_inset Flex Code
19847 status collapsed
19848
19849 \begin_layout Plain Layout
19850 svn propdel svn:needs-lock 
19851 \begin_inset Quotes eld
19852 \end_inset
19853
19854 <ファイル名>
19855 \begin_inset Quotes erd
19856 \end_inset
19857
19858
19859 \end_layout
19860
19861 \end_inset
19862
19863
19864 \end_layout
19865
19866 \begin_layout Subsubsection
19867 \begin_inset CommandInset label
19868 LatexCommand label
19869 name "subsec:VCS改訂情報"
19870
19871 \end_inset
19872
19873 文書の改訂情報
19874 \end_layout
19875
19876 \begin_layout Standard
19877 文書中で改訂情報を有効化するにはいくつかの方法があります.
19878 \end_layout
19879
19880 \begin_layout Itemize
19881 \SpecialChar LyX
19882 による直接サポート
19883 \end_layout
19884
19885 \begin_deeper
19886 \begin_layout Itemize
19887 ツリー改訂情報(
19888 \begin_inset Flex Code
19889 status collapsed
19890
19891 \begin_layout Plain Layout
19892 vcs-tree-revision
19893 \end_layout
19894
19895 \end_inset
19896
19897 ).
19898 \begin_inset Flex Code
19899 status collapsed
19900
19901 \begin_layout Plain Layout
19902 svnversion
19903 \end_layout
19904
19905 \end_inset
19906
19907 コマンドの出力を返します.下記の表が,結果の読み方のヒントを与えるでしょう.
19908 \end_layout
19909
19910 \begin_layout Standard
19911 \align center
19912 \begin_inset Tabular
19913 <lyxtabular version="3" rows="6" columns="2">
19914 <features tabularvalignment="middle">
19915 <column alignment="center" valignment="top">
19916 <column alignment="center" valignment="top">
19917 <row>
19918 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19919 \begin_inset Text
19920
19921 \begin_layout Plain Layout
19922 出力
19923 \end_layout
19924
19925 \end_inset
19926 </cell>
19927 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
19928 \begin_inset Text
19929
19930 \begin_layout Plain Layout
19931 意味
19932 \end_layout
19933
19934 \end_inset
19935 </cell>
19936 </row>
19937 <row>
19938 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19939 \begin_inset Text
19940
19941 \begin_layout Plain Layout
19942 4123:4168
19943 \end_layout
19944
19945 \end_inset
19946 </cell>
19947 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
19948 \begin_inset Text
19949
19950 \begin_layout Plain Layout
19951 改訂版の混合した作業コピー
19952 \end_layout
19953
19954 \end_inset
19955 </cell>
19956 </row>
19957 <row>
19958 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19959 \begin_inset Text
19960
19961 \begin_layout Plain Layout
19962 4168M
19963 \end_layout
19964
19965 \end_inset
19966 </cell>
19967 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
19968 \begin_inset Text
19969
19970 \begin_layout Plain Layout
19971 修正された作業コピー
19972 \end_layout
19973
19974 \end_inset
19975 </cell>
19976 </row>
19977 <row>
19978 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19979 \begin_inset Text
19980
19981 \begin_layout Plain Layout
19982 4123S
19983 \end_layout
19984
19985 \end_inset
19986 </cell>
19987 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
19988 \begin_inset Text
19989
19990 \begin_layout Plain Layout
19991 スイッチされた作業コピー
19992 \end_layout
19993
19994 \end_inset
19995 </cell>
19996 </row>
19997 <row>
19998 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
19999 \begin_inset Text
20000
20001 \begin_layout Plain Layout
20002 4123P
20003 \end_layout
20004
20005 \end_inset
20006 </cell>
20007 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20008 \begin_inset Text
20009
20010 \begin_layout Plain Layout
20011 チェックアウト頻度が低かったことによる不完全な作業コピー
20012 \end_layout
20013
20014 \end_inset
20015 </cell>
20016 </row>
20017 <row>
20018 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
20019 \begin_inset Text
20020
20021 \begin_layout Plain Layout
20022 4123:4168MS
20023 \end_layout
20024
20025 \end_inset
20026 </cell>
20027 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
20028 \begin_inset Text
20029
20030 \begin_layout Plain Layout
20031 改訂版が混合し,修正され,スイッチされた作業コピー
20032 \end_layout
20033
20034 \end_inset
20035 </cell>
20036 </row>
20037 </lyxtabular>
20038
20039 \end_inset
20040
20041
20042 \end_layout
20043
20044 \begin_layout Itemize
20045 ファイル改訂情報.
20046 \begin_inset Flex Code
20047 status collapsed
20048
20049 \begin_layout Plain Layout
20050 svn
20051 \begin_inset space ~
20052 \end_inset
20053
20054 info
20055 \begin_inset space ~
20056 \end_inset
20057
20058 --xml
20059 \begin_inset space ~
20060 \end_inset
20061
20062 file.lyx
20063 \end_layout
20064
20065 \end_inset
20066
20067 の出力を解析したものが返されます.サポートされるフラグは
20068 \end_layout
20069
20070 \begin_deeper
20071 \begin_layout Itemize
20072 最終コミットのバージョン番号(
20073 \begin_inset Flex Code
20074 status collapsed
20075
20076 \begin_layout Plain Layout
20077 vcs-revision
20078 \end_layout
20079
20080 \end_inset
20081
20082
20083 \end_layout
20084
20085 \begin_layout Itemize
20086 最終コミットの著者(
20087 \begin_inset Flex Code
20088 status collapsed
20089
20090 \begin_layout Plain Layout
20091 vcs-author
20092 \end_layout
20093
20094 \end_inset
20095
20096
20097 \end_layout
20098
20099 \begin_layout Itemize
20100 最終コミットの日付(
20101 \begin_inset Flex Code
20102 status collapsed
20103
20104 \begin_layout Plain Layout
20105 vcs-date
20106 \end_layout
20107
20108 \end_inset
20109
20110
20111 \end_layout
20112
20113 \begin_layout Itemize
20114 最終コミットの時間(
20115 \begin_inset Flex Code
20116 status collapsed
20117
20118 \begin_layout Plain Layout
20119 vcs-time
20120 \end_layout
20121
20122 \end_inset
20123
20124
20125 \end_layout
20126
20127 \end_deeper
20128 \begin_layout Standard
20129 これらの情報は,情報差込枠で得ることができます(例:
20130 \begin_inset Flex Code
20131 status collapsed
20132
20133 \begin_layout Plain Layout
20134 info-insert buffer vcs-date
20135 \end_layout
20136
20137 \end_inset
20138
20139 ).これらの情報は,ファイルをsvn管理下に置いたときのみ(すなわち使用中文書の
20140 \begin_inset Flex Code
20141 status collapsed
20142
20143 \begin_layout Plain Layout
20144 .svn
20145 \end_layout
20146
20147 \end_inset
20148
20149 ディレクトリがあるときのみ)利用可能です.
20150 \end_layout
20151
20152 \end_deeper
20153 \begin_layout Itemize
20154 もう一つの—ハッカー的な—方法は,SVNキーワードを使用する方法です
20155 \begin_inset Foot
20156 status collapsed
20157
20158 \begin_layout Plain Layout
20159 http://svnbook.red-bean.com/en/1.4/svn.advanced.props.special.keywords.html
20160 \end_layout
20161
20162 \end_inset
20163
20164 .簡単に言えば,ファイルキーワード特性を設定して(例:
20165 \family sans
20166 svn propset svn:keywords 'Rev' file.lyx
20167 \family default
20168 ),文書中にキーワード\SpecialChar TeX
20169 コード
20170 \begin_inset Foot
20171 status collapsed
20172
20173 \begin_layout Plain Layout
20174 これは,\SpecialChar LyX
20175 がキーワードタグの途中で改行してしまわないことを確実にするための,簡単な方法です.
20176 \end_layout
20177
20178 \end_inset
20179
20180 タグ(例:
20181 \begin_inset Flex Code
20182 status collapsed
20183
20184 \begin_layout Plain Layout
20185 $Rev$
20186 \end_layout
20187
20188 \end_inset
20189
20190 )を貼り付けるのです.このようにして,SVNクライアントは,各更新やコミットの後に自動的に改訂番号を代入することができるのです(例:
20191 \begin_inset Flex Code
20192 status collapsed
20193
20194 \begin_layout Plain Layout
20195 $Rev: 59 $
20196 \end_layout
20197
20198 \end_inset
20199
20200 ).このアプローチにはいくつか問題があります.第一に,\SpecialChar TeX
20201 の世界では「$」文字は数式を表すのに使われるので,\SpecialChar LyX
20202 中の
20203 \begin_inset Formula $Rev$
20204 \end_inset
20205
20206 という数式表現が,すべて
20207 \begin_inset Formula $Rev:59$
20208 \end_inset
20209
20210 になってしまいます.その他のId・Date・Authorなどといったキーワードも同様です.第二に,SVN出力は使用中のロケールに依存するので,Dateが用いられ
20211 ると,SVNは,問題を引き起こすような文字列を容易に生成してしまいます.第三に,文書中には,番号だけでなく「Rev: 59」という文字列全体が表示されてしまいま
20212 す.Subversionがユーザ定義のキーワードを実装するまでは,このアプローチを信頼性を持って使用したり,\SpecialChar LyX
20213 がこれを直接サポートすることは,難しそうです.
20214 \end_layout
20215
20216 \begin_layout Subsection
20217 SVNとWindows環境
20218 \end_layout
20219
20220 \begin_layout Quote
20221 ユーザが,かなり早いうちに自分自身でコマンドライン操作を理解できないのであれば,TortoiseSVNを使った方が賢明でしょう.—P.
20222  A.
20223  ルービン
20224 \end_layout
20225
20226 \begin_layout Subsubsection
20227 準備
20228 \end_layout
20229
20230 \begin_layout Standard
20231 \SpecialChar LyX
20232 を導入して,Subversionレポジトリへのアクセス権を持っている他に,ユーザはSubversionクライアントプログラムを導入する必要があります.クライアン
20233 トプログラムのWindows用インストーラは
20234 \begin_inset CommandInset href
20235 LatexCommand href
20236 name "CollabNet"
20237 target "http://www.collab.net/nonav/downloads/subversion/"
20238 literal "false"
20239
20240 \end_inset
20241
20242 にあります.ユーザは
20243 \begin_inset CommandInset href
20244 LatexCommand href
20245 name "TortoiseSVN"
20246 target "http://tortoisesvn.tigris.org/"
20247 literal "false"
20248
20249 \end_inset
20250
20251 も導入することを考えるでしょう.これはSubversionの操作をWindows Explorerのコンテクスト(右クリック)メニューに統合します.\SpecialChar LyX
20252 外部で行う操
20253 作は,一般的にExplorerコンテクストメニューを使った方が便利です.TortoiseSVNは,\SpecialChar LyX
20254 自身が使用するクライアントプログラムの代わりとは成りませんので
20255 ,注意してください.
20256 \end_layout
20257
20258 \begin_layout Subsubsection
20259 文書をSubversion管理下に置くには
20260 \end_layout
20261
20262 \begin_layout Standard
20263 \SpecialChar LyX
20264 文書をSubversionのバージョン管理下に置く前に,その親ディレクトリをバージョン管理下に置かなくてはなりません.文書を,既にレポジトリに存在するプロジェク
20265 トに追加する際には,新規文書が置かれることになるディレクトリへ,プロジェクトをチェックアウトすることによって実現します.プロジェクト自体がバージョン管理下にない
20266 場合(たとえばこの文書が新規プロジェクトの最初のファイルである場合)には,このディレクトリをレポジトリにインポートしなくてはなりません.これは,\SpecialChar LyX
20267 の外部で行います
20268 .インポートもチェックアウトも共に,TortoiseSVNを使えば,Explorerのコンテクストメニューから簡単に終えることができます.あるいは,DOSプロン
20269 プトでコマンドライン・クライアントを使って成し遂げることもできます.TortoiseSVNを使ったプロジェクトのインポート手続きを下記で説明します.レポジトリは
20270 既に存在し,新規プロジェクトを
20271 \begin_inset Flex Code
20272 status collapsed
20273
20274 \begin_layout Plain Layout
20275 C:
20276 \backslash
20277 new project
20278 \end_layout
20279
20280 \end_inset
20281
20282 で開始するものとします.Subversionクライアントプログラムを使うための情報を得るには,DOSシェルで
20283 \begin_inset Flex Code
20284 status collapsed
20285
20286 \begin_layout Plain Layout
20287 svn --help
20288 \end_layout
20289
20290 \end_inset
20291
20292 を実行してください.
20293 \end_layout
20294
20295 \begin_layout Enumerate
20296 Windows Explorerで
20297 \begin_inset Flex Code
20298 status collapsed
20299
20300 \begin_layout Plain Layout
20301 C:
20302 \backslash
20303 new project
20304 \end_layout
20305
20306 \end_inset
20307
20308 を見つけ出して右クリックし,
20309 \begin_inset Flex MenuItem
20310 status collapsed
20311
20312 \begin_layout Plain Layout
20313 TortoiseSVN\SpecialChar menuseparator
20314 Repo-browser
20315 \end_layout
20316
20317 \end_inset
20318
20319 を選択してください.必要であれば,レポジトリのURLを調整し,OKをクリックしてください.
20320 \end_layout
20321
20322 \begin_layout Enumerate
20323 新規プロジェクトフォルダを置くレポジトリレベル(多くの場合最上位レベル)を右クリックし,
20324 \begin_inset Flex MenuItem
20325 status collapsed
20326
20327 \begin_layout Plain Layout
20328 Create folder\SpecialChar ldots
20329
20330 \end_layout
20331
20332 \end_inset
20333
20334 をクリックしてください.プロジェクトフォルダの名称を入力してOKをクリックしてください.必要であればログファイル用のメッセージを入力し,再びOKをクリックしてく
20335 ださい.新規プロジェクトフォルダがレポジトリに現れるはずです.最後にOKを再度クリックして,レポジトリブラウザを終了してください.
20336 \end_layout
20337
20338 \begin_layout Enumerate
20339 再度
20340 \begin_inset Flex Code
20341 status collapsed
20342
20343 \begin_layout Plain Layout
20344 C:
20345 \backslash
20346 new project
20347 \end_layout
20348
20349 \end_inset
20350
20351 を右クリックし,今度は
20352 \begin_inset Flex MenuItem
20353 status collapsed
20354
20355 \begin_layout Plain Layout
20356 SVN Checkout\SpecialChar ldots
20357
20358 \end_layout
20359
20360 \end_inset
20361
20362 を選択してください.レポジトリにたった今作成した,プロジェクトフォルダのURLを選択し,チェックアウトディレクトリを
20363 \begin_inset Flex Code
20364 status collapsed
20365
20366 \begin_layout Plain Layout
20367 C:
20368 \backslash
20369 new project
20370 \end_layout
20371
20372 \end_inset
20373
20374 に設定してから,OKをクリックしてください.フォルダが空でないことを警告されますが,OKをクリックして進んでください.すると,
20375 \begin_inset Flex Code
20376 status collapsed
20377
20378 \begin_layout Plain Layout
20379 C:
20380 \backslash
20381 new project
20382 \end_layout
20383
20384 \end_inset
20385
20386 の下に
20387 \begin_inset Flex Code
20388 status collapsed
20389
20390 \begin_layout Plain Layout
20391 .svn
20392 \end_layout
20393
20394 \end_inset
20395
20396 ディレクトリが作成されます.
20397 \end_layout
20398
20399 \begin_layout Enumerate
20400 \SpecialChar LyX
20401 で文書を新規作成するか開くかして,
20402 \begin_inset Flex MenuItem
20403 status collapsed
20404
20405 \begin_layout Plain Layout
20406 ファイル\SpecialChar menuseparator
20407 バージョン管理\SpecialChar menuseparator
20408 登録
20409 \end_layout
20410
20411 \end_inset
20412
20413 をクリックします.ログメッセージを入力してOKをクリックし,文書をバージョン管理にコミットしてください.
20414 \end_layout
20415
20416 \begin_layout Standard
20417 爾後,
20418 \begin_inset Flex MenuItem
20419 status collapsed
20420
20421 \begin_layout Plain Layout
20422 ファイル\SpecialChar menuseparator
20423 バージョン管理
20424 \end_layout
20425
20426 \end_inset
20427
20428 メニューのすべての機能が使用できるようになります.Windows ExplorerのTortoiseSVNコンテクストメニューか,コマンドプロンプトでのSubv
20429 ersionクライアントプログラムを使用して,文書をチェックイン・チェックアウトしたり,履歴を見たりといったことができるようになります.
20430 \end_layout
20431
20432 \begin_layout Subsubsection
20433 Windows下でSVNと共にSSHトンネルを使うには
20434 \end_layout
20435
20436 \begin_layout Standard
20437 Linuxに較べて,WindowsでSVNクライアントをSSH経由で通信するようにさせるのは,かなり厄介な仕事です.どのようにクライアント側を設定すればよいか,
20438 少なくとも幾分かのヒントをお示しするつもりですが,sshとWindowsコマンドラインの知識が前もって必要であり,それと共にかなりの量のフラストレーションが溜ま
20439 ることを覚悟しておいてください.
20440 \end_layout
20441
20442 \begin_layout Enumerate
20443 前節で述べたように,Windows用のSVNクライアントを入手してください.これが新規の導入である場合には,何らかのSVNコマンド(たとえば
20444 \begin_inset Flex Code
20445 status collapsed
20446
20447 \begin_layout Plain Layout
20448 svn --version
20449 \end_layout
20450
20451 \end_inset
20452
20453 )を実行して,configファイル群を生成させてください.これらは後で変更を加える必要があります.
20454 \end_layout
20455
20456 \begin_layout Enumerate
20457 Windows用のsshクライアントを選んでください.選択肢はたくさんありますが,ここではPutty tools
20458 \begin_inset Foot
20459 status open
20460
20461 \begin_layout Plain Layout
20462 \begin_inset Flex URL
20463 status collapsed
20464
20465 \begin_layout Plain Layout
20466
20467 http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html
20468 \end_layout
20469
20470 \end_inset
20471
20472
20473 \end_layout
20474
20475 \end_inset
20476
20477 のものを使用することとしましょう.クライアントが接続の度にパスワードを訊いてこないように,接続を自動化する必要があります.簡単にするために,追加的なパスワード保
20478 護などを加えない
20479 \begin_inset Flex Ruby
20480 status collapsed
20481
20482 \begin_layout Plain Layout
20483
20484 \begin_inset Argument post:1
20485 status collapsed
20486
20487 \begin_layout Plain Layout
20488 キー
20489 \end_layout
20490
20491 \end_inset
20492
20493
20494 \end_layout
20495
20496 \end_inset
20497
20498 のみを使用することとします.
20499 \end_layout
20500
20501 \begin_deeper
20502 \begin_layout Enumerate
20503 \begin_inset Flex Code
20504 status collapsed
20505
20506 \begin_layout Plain Layout
20507 puttygen
20508 \end_layout
20509
20510 \end_inset
20511
20512 を使って鍵を生成します..ppkプライベート鍵ファイルを保存し,パブリック鍵ファイルはサーバ側に置きます.SVNサーバがLinuxで走っている場合,このパブリック
20513 鍵の書式はLinuxのopensshと互換性がないために,「Public key for pasting into OpenSSH authorized_key
20514 s file:」編集フィールドから,直接サーバの
20515 \begin_inset Flex Code
20516 status collapsed
20517
20518 \begin_layout Plain Layout
20519 ~/.ssh/authorized_keys
20520 \end_layout
20521
20522 \end_inset
20523
20524 または
20525 \begin_inset Flex Code
20526 status collapsed
20527
20528 \begin_layout Plain Layout
20529 authorized_keys2
20530 \end_layout
20531
20532 \end_inset
20533
20534 ファイルにコピー&ペーストを行わなくてはならないことに注意してください.
20535 \end_layout
20536
20537 \begin_layout Enumerate
20538 Puttyのplinkを入手してください.SVNのconfigファイル
20539 \begin_inset Foot
20540 status collapsed
20541
20542 \begin_layout Plain Layout
20543 正確なパスはWindowsのバージョンに依りますが,通常は
20544 \begin_inset Flex Code
20545 status collapsed
20546
20547 \begin_layout Plain Layout
20548 c:
20549 \backslash
20550 Documents and Settings
20551 \backslash
20552 user
20553 \backslash
20554 Application Data
20555 \backslash
20556 Subversion
20557 \backslash
20558 config
20559 \end_layout
20560
20561 \end_inset
20562
20563
20564 \begin_inset Flex Code
20565 status collapsed
20566
20567 \begin_layout Plain Layout
20568 AppData
20569 \backslash
20570 Roaming
20571 \backslash
20572 Subversion
20573 \end_layout
20574
20575 \end_inset
20576
20577 辺りにあります.
20578 \end_layout
20579
20580 \end_inset
20581
20582 中の
20583 \begin_inset Flex Code
20584 status collapsed
20585
20586 \begin_layout Plain Layout
20587 [tunnels]
20588 \end_layout
20589
20590 \end_inset
20591
20592 セクションにsshコマンドを設定してください.例:
20593 \begin_inset Flex Code
20594 status collapsed
20595
20596 \begin_layout Plain Layout
20597 ssh=c:/path/plink.exe -i c:/path/private_key.ppk
20598 \end_layout
20599
20600 \end_inset
20601
20602
20603 \begin_inset Foot
20604 status collapsed
20605
20606 \begin_layout Plain Layout
20607 通常,正確なコマンドを機能させるには長い時間がかかり,それは多くの物事に依存します.たとえば,リモートサーバがPuttyなどの既定セッションとして保存されないよ
20608 うにしてください.うまく行かない場合には,まずSVNなしでplink経由の接続を試してください.
20609 \end_layout
20610
20611 \end_inset
20612
20613
20614 \end_layout
20615
20616 \end_deeper
20617 \begin_layout Enumerate
20618 SVNアーカイブをチェックアウトしてください.例:
20619 \begin_inset Newline newline
20620 \end_inset
20621
20622
20623 \begin_inset Flex Code
20624 status collapsed
20625
20626 \begin_layout Plain Layout
20627 svn co svn+ssh://user@server/repository_path
20628 \end_layout
20629
20630 \end_inset
20631
20632
20633 \end_layout
20634
20635 \begin_layout Subsubsection
20636 行末変換
20637 \end_layout
20638
20639 \begin_layout Standard
20640 共著者同士がLinuxとWindowsを混在させているとき,\SpecialChar LyX
20641 は.lyxファイル中で異なった行末記号を使用することになります.これは,\SpecialChar LyX
20642 の機能に関する限り問題になりま
20643 せんが,コミット差分は巨大になり,マージではコンフリクトを引き起こしがちです.幸いにして,SVNは,.lyxファイルを
20644 \begin_inset Flex Code
20645 status collapsed
20646
20647 \begin_layout Plain Layout
20648 native
20649 \end_layout
20650
20651 \end_inset
20652
20653 モードに切り替える際
20654 \begin_inset Foot
20655 status collapsed
20656
20657 \begin_layout Plain Layout
20658 手短には
20659 \begin_inset Flex Code
20660 status collapsed
20661
20662 \begin_layout Plain Layout
20663 svn propset svn:eol-style native FILE_NAME
20664 \end_layout
20665
20666 \end_inset
20667
20668
20669 \end_layout
20670
20671 \end_inset
20672
20673 ,CR/LF問題をどのように取り扱えばいいかを知っているので大丈夫です
20674 \begin_inset Foot
20675 status collapsed
20676
20677 \begin_layout Plain Layout
20678 \begin_inset Flex URL
20679 status collapsed
20680
20681 \begin_layout Plain Layout
20682
20683 http://svnbook.red-bean.com/en/1.4/svn.advanced.props.file-portability.html
20684 \end_layout
20685
20686 \end_inset
20687
20688
20689 \end_layout
20690
20691 \end_inset
20692
20693
20694 \end_layout
20695
20696 \begin_layout Subsection
20697 \SpecialChar LyX
20698 におけるGITコマンド
20699 \end_layout
20700
20701 \begin_layout Standard
20702 \SpecialChar LyX
20703 で,最小限のGITコマンドがサポートされるようになりました.これらのコマンドは,
20704 \family sans
20705 ファイル\SpecialChar menuseparator
20706 バージョン管理
20707 \family default
20708 にあります.リポジトリのアクセスに,パスワード保護されたsshを使用している場合には,ターミナルウィンドウでの操作をするように促されます.\SpecialChar LyX
20709 は,GIT
20710  1.7に対して試験を行っています
20711 \begin_inset Foot
20712 status collapsed
20713
20714 \begin_layout Plain Layout
20715 Windowsユーザーはgitにパスが通っていることを確認する必要があります.これは,\SpecialChar LyX
20716 中から
20717 \family sans
20718 ツール\SpecialChar menuseparator
20719 設定\SpecialChar menuseparator
20720 パス\SpecialChar menuseparator
20721 PATH接頭辞
20722 \family default
20723 で設定できます.
20724 \end_layout
20725
20726 \end_inset
20727
20728
20729 \end_layout
20730
20731 \begin_layout Standard
20732 GITと他のバージョン管理システムとの大きな相違点は,GITの配布形態にあります.伝統的なバージョン管理システムでは,リポジトリをホストする,中心となるサーバー
20733 があります.ユーザーは変更点をサーバーにコミットし,他のユーザーが行った更新分をサーバーから受け取ります.一方,GITでは,ユーザーは,ローカルのリポジトリにコ
20734 ミットを行います.ローカルリポジトリは,GITコマンドの
20735 \begin_inset Flex Code
20736 status open
20737
20738 \begin_layout Plain Layout
20739 pull
20740 \end_layout
20741
20742 \end_inset
20743
20744 または
20745 \begin_inset Flex Code
20746 status open
20747
20748 \begin_layout Plain Layout
20749 push
20750 \end_layout
20751
20752 \end_inset
20753
20754 を使って,1つ以上のリモートリポジトリと同期されます.\SpecialChar LyX
20755 は,リモートのGITリポジトリとは,一切関わりません.CVSやSVNの集権的リポジトリに対して行うのと同じ
20756 ことを,ローカルのリポジトリに対してのみ行います.リモートのGITリポジトリを使用している場合には,お好みのGITクライアントを使用して,
20757 \begin_inset Flex Code
20758 status open
20759
20760 \begin_layout Plain Layout
20761 pull
20762 \end_layout
20763
20764 \end_inset
20765
20766 または
20767 \begin_inset Flex Code
20768 status open
20769
20770 \begin_layout Plain Layout
20771 push
20772 \end_layout
20773
20774 \end_inset
20775
20776 の操作を行う必要があります.
20777 \end_layout
20778
20779 \begin_layout Subsubsection
20780 登録
20781 \end_layout
20782
20783 \begin_layout Standard
20784 お使いの文書が改訂管理下に置かれていなければ,メニューにはこの項目だけが表示されます.もし改訂管理が有効ならば,
20785 \family sans
20786 登録
20787 \family default
20788 項目は表示されません.
20789 \end_layout
20790
20791 \begin_layout Standard
20792 本コマンドは,既に文書のあるディレクトリをGIT管理下に置いている場合に
20793 \emph on
20794 のみ
20795 \emph default
20796 (すなわち
20797 \begin_inset Flex Code
20798 status collapsed
20799
20800 \begin_layout Plain Layout
20801 .git/index
20802 \end_layout
20803
20804 \end_inset
20805
20806 ファイルが存在する場合にのみ),お使いの文書をGITに登録します.つまり,アーカイブはご自分でチェックアウトしなくてはなりません.
20807 \end_layout
20808
20809 \begin_layout Standard
20810 すると,文書の最初の説明文を入力するように促されます.登録したファイルは,まだコミットされたわけではないことに注意してください.
20811 \end_layout
20812
20813 \begin_layout Standard
20814 実行されるGITコマンドは,
20815 \begin_inset Flex Code
20816 status collapsed
20817
20818 \begin_layout Plain Layout
20819 git add "<ファイル名>"
20820 \end_layout
20821
20822 \end_inset
20823
20824 です.
20825 \end_layout
20826
20827 \begin_layout Standard
20828 スイッチの説明は
20829 \begin_inset Flex Code
20830 status collapsed
20831
20832 \begin_layout Plain Layout
20833 man git
20834 \end_layout
20835
20836 \end_inset
20837
20838 をお読みください.
20839 \end_layout
20840
20841 \begin_layout Subsubsection
20842 変更をチェックイン
20843 \end_layout
20844
20845 \begin_layout Standard
20846 ファイルの編集を終えたら,変更をコミットします.このとき,変更の説明文を入れるよう促されます.その後,変更がコミットされます.
20847 \end_layout
20848
20849 \begin_layout Standard
20850 GITコマンド:
20851 \begin_inset Flex Code
20852 status collapsed
20853
20854 \begin_layout Plain Layout
20855 git commit -q -m
20856 \begin_inset Quotes erd
20857 \end_inset
20858
20859 <入力した説明文>
20860 \begin_inset Quotes erd
20861 \end_inset
20862
20863  "<ファイル名>"
20864 \end_layout
20865
20866 \end_inset
20867
20868
20869 \end_layout
20870
20871 \begin_layout Subsubsection
20872 リポジトリ版に戻す
20873 \end_layout
20874
20875 \begin_layout Standard
20876 これは,最後のチェックイン以降,文書に加えられた変更をすべて廃棄します.変更が廃棄される前に警告が表示されます.
20877 \end_layout
20878
20879 \begin_layout Standard
20880 GITコマンド:
20881 \begin_inset Flex Code
20882 status collapsed
20883
20884 \begin_layout Plain Layout
20885 git checkout -q 
20886 \begin_inset Quotes qld
20887 \end_inset
20888
20889 <ファイル名>
20890 \begin_inset Quotes qld
20891 \end_inset
20892
20893
20894 \end_layout
20895
20896 \end_inset
20897
20898
20899 \end_layout
20900
20901 \begin_layout Subsubsection
20902 ファイル名変更
20903 \end_layout
20904
20905 \begin_layout Standard
20906 これは,現行文書のファイル名を変更します.最後のチェックイン以降,変更が加えられていないサラの文書であることが要求されます.ファイル名とコピー操作の説明を入力す
20907 るように促され,その後,ローカルとリポジトリの両方でファイル名が変更されます.新旧ファイル名の文書の親ディレクトリが異なる場合には,コピーにインクルードされたフ
20908 ァイルの相対パスは,(
20909 \family sans
20910 ファイル\SpecialChar menuseparator
20911 名前をつけて保存\SpecialChar ldots
20912
20913 \family default
20914 と同様に)全て調整されます.最後に,新ファイル名を使ってファイルが再度読み込まれます.
20915 \end_layout
20916
20917 \begin_layout Labeling
20918 \labelwidthstring 00.00.0000
20919 GITコマンド: 
20920 \begin_inset space ~
20921 \end_inset
20922
20923
20924 \begin_inset Newline newline
20925 \end_inset
20926
20927
20928 \begin_inset Flex Code
20929 status collapsed
20930
20931 \begin_layout Plain Layout
20932 git mv "<ファイル名>" "<新ファイル名>"
20933 \end_layout
20934
20935 \end_inset
20936
20937
20938 \begin_inset Newline newline
20939 \end_inset
20940
20941
20942 \begin_inset Flex Code
20943 status collapsed
20944
20945 \begin_layout Plain Layout
20946 git commit
20947 \end_layout
20948
20949 \end_inset
20950
20951
20952 \end_layout
20953
20954 \begin_layout Subsubsection
20955 履歴を表示
20956 \end_layout
20957
20958 \begin_layout Standard
20959 これは,GIT文書の全履歴を表示します.
20960 \begin_inset Flex Code
20961 status collapsed
20962
20963 \begin_layout Plain Layout
20964 git log 
20965 \begin_inset Quotes qld
20966 \end_inset
20967
20968 <ファイル名>
20969 \begin_inset Quotes qld
20970 \end_inset
20971
20972
20973 \end_layout
20974
20975 \end_inset
20976
20977 の出力がブラウザに表示されます.
20978 \end_layout
20979
20980 \begin_layout Subsubsection
20981 改訂情報
20982 \end_layout
20983
20984 \begin_layout Standard
20985 \SpecialChar LyX
20986 は,ファイルの最終コミットのGITハッシュ番号・著者名・最終コミットの日時をサポートします.これらの情報は,すべて
20987 \begin_inset Flex Code
20988 status collapsed
20989
20990 \begin_layout Plain Layout
20991 git log -n 1 --pretty=format:%H%n%an%n%ai
20992 \end_layout
20993
20994 \end_inset
20995
20996 によって抽出されます.ツリーバージョン情報は,
20997 \begin_inset Flex Code
20998 status collapsed
20999
21000 \begin_layout Plain Layout
21001 git describe --abbrev --dirty --long
21002 \end_layout
21003
21004 \end_inset
21005
21006 で取得されます.詳細については,第
21007 \begin_inset CommandInset ref
21008 LatexCommand ref
21009 reference "subsec:VCS改訂情報"
21010
21011 \end_inset
21012
21013 節を参照してください.
21014 \end_layout
21015
21016 \begin_layout Subsection
21017 さらなる調整
21018 \end_layout
21019
21020 \begin_layout Standard
21021 最近になって
21022 \begin_inset Flex Code
21023 status collapsed
21024
21025 \begin_layout Plain Layout
21026 vc-command
21027 \end_layout
21028
21029 \end_inset
21030
21031 機構が付け加えられたおかげで,\SpecialChar LyX
21032 のパワーユーザは,改訂管理のための自製コマンドを作ることができるようになりました.
21033 \end_layout
21034
21035 \begin_layout Standard
21036 たとえば,以下のようにして,二つのTortoiseSVNコマンドを直接統合することができます.
21037 \end_layout
21038
21039 \begin_layout Description
21040 コミット: 
21041 \begin_inset Flex Code
21042 status collapsed
21043
21044 \begin_layout Plain Layout
21045 vc-command DR "." "TortoiseProc /command:commit /path:$$p"
21046 \end_layout
21047
21048 \end_inset
21049
21050
21051 \end_layout
21052
21053 \begin_layout Description
21054 元に戻す: 
21055 \begin_inset Flex Code
21056 status collapsed
21057
21058 \begin_layout Plain Layout
21059 vc-command DR "." "TortoiseProc /command:revert /path:$$p"
21060 \end_layout
21061
21062 \end_inset
21063
21064
21065 \end_layout
21066
21067 \begin_layout Subsection
21068 バージョン管理と文書比較
21069 \end_layout
21070
21071 \begin_layout Standard
21072 バージョン管理は,通常
21073 \begin_inset Flex Code
21074 status collapsed
21075
21076 \begin_layout Plain Layout
21077 diff
21078 \end_layout
21079
21080 \end_inset
21081
21082 ダンプを生成することによって,改訂版の間の変更点を検査するのが,典型的な使用法です.これは平文ファイルには有効なのですが,複雑な構造を持つ\SpecialChar LyX
21083 ファイルの場合には,あ
21084 まり便利ではありません.そこで,\SpecialChar LyX
21085 は独自の文書比較機能を提供しています.この機能を呼び出すには2つの方法があります.1つは,\SpecialChar LyX
21086
21087 \begin_inset Flex Code
21088 status collapsed
21089
21090 \begin_layout Plain Layout
21091 vc-compare
21092 \end_layout
21093
21094 \end_inset
21095
21096 関数を直接呼び出す方法であり(詳細は\SpecialChar LyX
21097 関数説明書を参照),もう1つはツールバーアイコン
21098 \begin_inset Info
21099 type  "icon"
21100 arg   "vc-compare"
21101 \end_inset
21102
21103 による方法,さらにはメニュー項目
21104 \begin_inset Info
21105 type  "menu"
21106 arg   "vc-compare"
21107 \end_inset
21108
21109 を使用する方法です.当該文書のうち,任意の2つの改訂版を比較することもできますし,編集中の現行版を古い改訂版と比較することもできます(このとき改訂版遡及数「
21110 \begin_inset Flex MenuItem
21111 status collapsed
21112
21113 \begin_layout Plain Layout
21114 0
21115 \end_layout
21116
21117 \end_inset
21118
21119 」は,編集中のファイルと最後にコミットした改訂版との比較を意味します).
21120 \end_layout
21121
21122 \begin_layout Standard
21123 この機能は,SVNとRCSでサポートされていますが,RCSは,より複雑なバージョン付けスキームを持っているため,制約があります.ダイアログ中で改訂版を指定する際
21124 の数字は,つねにRCS改訂番号の最後の数を指し示します(例:「1.2.35」版のときには「35」).現在のところ,改訂のGIT表記はサポートされておらず,
21125 \begin_inset Flex Code
21126 status collapsed
21127
21128 \begin_layout Plain Layout
21129 HEAD~X
21130 \end_layout
21131
21132 \end_inset
21133
21134
21135 \lang english
21136 .
21137 \lang japanese
21138 の形で表記されるXステップ前の改訂版を,編集中文書と比較することのみが可能です.
21139 \end_layout
21140
21141 \begin_layout Section
21142 文芸プログラミング
21143 \end_layout
21144
21145 \begin_layout Standard
21146
21147 \noun on
21148 Kayvan Sylvan
21149 \noun default
21150 (kayvan@sylvan.com)改訂 
21151 \noun on
21152 Edmar Wienskoski Jr.
21153 \noun default
21154 (edmar-w-jr@technologist.com)原文
21155 \end_layout
21156
21157 \begin_layout Subsection
21158 はじめに
21159 \end_layout
21160
21161 \begin_layout Standard
21162 この節の主な目的は,文芸的プログラミング(literate programming)のために,\SpecialChar LyX
21163 をどう使えばよいかをお見せすることです.ここでは,あなたがこのプロ
21164 グラミング技術をよくご存じで,「tangling」や「weaving」の意味するところを知っているものとして説明します.そうでない場合には,以下の各節にあるウェ
21165 ブリンクをたどってください.そこには,かつての開発の歴史から最新のツールチップまで,たくさんの良質なドキュメンテーションがあります.
21166 \end_layout
21167
21168 \begin_layout Standard
21169 また,あなたが,\SpecialChar LyX
21170 の設定を変更することを厭わない程度まで\SpecialChar LyX
21171 に習熟しており,Xリソースファイルにも親しんでいることを前提にしています.そうでない場合は,あなたの必要と
21172 するトピックを扱っている,\SpecialChar LyX
21173 の他の説明書で調べてください.
21174 \end_layout
21175
21176 \begin_layout Subsection
21177 文芸プログラミング
21178 \end_layout
21179
21180 \begin_layout Standard
21181 以下は,文芸プログラミング FAQからの抜粋です.
21182 \end_layout
21183
21184 \begin_layout Quotation
21185 文芸プログラミングは,人間が読むのに適した形でのドキュメンテーションとソースの組合わせです.実際,文芸的プログラムは楽しい読み物であるべきであり,さらには参加し
21186 たいとさえ思わせるべきなのです!(ボブ,ごめん.言わずにはいれなかった.)一般的に,文芸プログラムは,ソースとドキュメンテーションを同一ファイル上に結合したもの
21187 です.そして,文芸プログラミングツールは,ファイルを解析して,読むことのできるドキュメンテーションか,あるいはコンパイル可能なソースを生成します.文芸プログラミ
21188 ングのWEBスタイルは,D.
21189 \begin_inset space \thinspace{}
21190 \end_inset
21191
21192 E.
21193  Knuthが,\SpecialChar TeX
21194 組版ソフトウエアを開発中に作り出したものです.
21195 \end_layout
21196
21197 \begin_layout Standard
21198 他のエキスパートの発言です.
21199 \end_layout
21200
21201 \begin_layout Quotation
21202
21203 \emph on
21204 文芸プログラミングは,冗長なコメント付けと何が違いますか?
21205 \end_layout
21206
21207 \begin_layout Quotation
21208 3つの際立った特徴があります.重要な順に列挙すれば,
21209 \end_layout
21210
21211 \begin_deeper
21212 \begin_layout Itemize
21213 推敲の順序が柔軟
21214 \end_layout
21215
21216 \begin_layout Itemize
21217 ブラウジングの自動サポート
21218 \end_layout
21219
21220 \begin_layout Itemize
21221 特に図式と数式を含んだドキュメンテーションの組版
21222 \end_layout
21223
21224 \end_deeper
21225 \begin_layout Quotation
21226 などがあります.
21227 \end_layout
21228
21229 \begin_layout Standard
21230 あなたの興味に火を付けたところで書誌情報を見てみましょう.
21231 \end_layout
21232
21233 \begin_layout Subsubsection
21234 書誌情報
21235 \end_layout
21236
21237 \begin_layout Standard
21238 完全な文芸プログラミング FAQは
21239 \end_layout
21240
21241 \begin_layout Quote
21242 Literate Programming FAQ 
21243 \begin_inset Flex URL
21244 status collapsed
21245
21246 \begin_layout Plain Layout
21247
21248 http://www.literateprogramming.com/lpfaq.pdf
21249 \end_layout
21250
21251 \end_inset
21252
21253
21254 \end_layout
21255
21256 \begin_layout Standard
21257 にあります.
21258 \end_layout
21259
21260 \begin_layout Standard
21261 このFAQには,23(二十三です!)の文芸プログラミング用ツールが列挙されています.一部のツールは,特定のプログラミング言語用に特化したものですが,一般的な対象
21262 を持つものもあります.私は自分で使うのに,いくつかの理由から
21263 \noun on
21264 Noweb
21265 \noun default
21266 を選びました.
21267 \end_layout
21268
21269 \begin_layout Itemize
21270 説明文書を\SpecialChar LaTeX
21271 でもHTMLでも出力できる.
21272 \end_layout
21273
21274 \begin_layout Itemize
21275 オープンアーキテクチャを持っているので,新しいフィルタをプラグインとして加えたり
21276 \begin_inset Foot
21277 status collapsed
21278
21279 \begin_layout Plain Layout
21280
21281 \emph on
21282 フィルタ
21283 \emph default
21284 は,与えられたデータストリームを読み込み,操作されたデータストリームを出力するプログラムです.このようにして,(文芸コードを含んだ)WEBファイルを,Cプログラ
21285 ムコードや\SpecialChar LaTeX
21286 コードのみを含むファイルに変換することができます.
21287 \end_layout
21288
21289 \end_inset
21290
21291 ,自分が必要な特別な処理を実行することが容易である.
21292 \end_layout
21293
21294 \begin_layout Itemize
21295 すでに利用可能となっているフィルタの良質なコレクションがある(HTMLはその一つです).
21296 \end_layout
21297
21298 \begin_layout Itemize
21299 無料である.
21300 \end_layout
21301
21302 \begin_layout Standard
21303 Nowebのウェブページは
21304 \end_layout
21305
21306 \begin_layout Quote
21307 Nowebホームページ 
21308 \begin_inset Flex URL
21309 status collapsed
21310
21311 \begin_layout Plain Layout
21312
21313 https://www.cs.tufts.edu/~nr/noweb/
21314 \end_layout
21315
21316 \end_inset
21317
21318
21319 \end_layout
21320
21321 \begin_layout Standard
21322 にあります.ここから始めれば,たくさんの興味深いリンクや,文芸プログラミングの用例にたどり着くことができます.
21323 \end_layout
21324
21325 \begin_layout Subsection
21326 \SpecialChar LyX
21327 とNowebを使った文芸プログラミング
21328 \end_layout
21329
21330 \begin_layout Standard
21331 \SpecialChar LyX
21332 における文芸プログラミングのサポートは,\SpecialChar LyX
21333 の汎用変換機構を使用して実現しています.このサポートは「Noweb非依存」的な方法で提供されているので,LyXの設定を変
21334 更するだけで,自分の好きな他の文芸プログラミングツールを使って,この新しい\SpecialChar LyX
21335 の機能を利用することができます.
21336 \end_layout
21337
21338 \begin_layout Subsubsection
21339 ドキュメントとコードの生成(weavingおよびtangling)
21340 \end_layout
21341
21342 \begin_layout Paragraph
21343 nowebモジュールの使用
21344 \end_layout
21345
21346 \begin_layout Standard
21347 Nowebと\SpecialChar LyX
21348 の導入に成功したならば,新規文書を開いたときにはいつも,文書クラスを選択した後,
21349 \family sans
21350 文書\SpecialChar menuseparator
21351 設定
21352 \family default
21353 メニューで「noweb」モジュールを追加するようにしてください.Nowebが正しく導入されていれば,「モジュール」リンクをクリックした際,利用可能リストに「no
21354 web」モジュールが表示され,文書に追加できるようになっています.
21355 \end_layout
21356
21357 \begin_layout Paragraph
21358 コードの入力
21359 \end_layout
21360
21361 \begin_layout Standard
21362 \SpecialChar LyX
21363 では,
21364 \begin_inset Flex Noun
21365 status collapsed
21366
21367 \begin_layout Plain Layout
21368 Chunk
21369 \end_layout
21370
21371 \end_inset
21372
21373 という名前の拡張差込枠を使えば,コードを入力することができます.Nowebは次のようにchunks を区切ります.
21374 \end_layout
21375
21376 \begin_layout LyX-Code
21377 <<My code>>=
21378 \end_layout
21379
21380 \begin_layout LyX-Code
21381   code
21382 \end_layout
21383
21384 \begin_layout LyX-Code
21385   more code
21386 \end_layout
21387
21388 \begin_layout LyX-Code
21389   even more code
21390 \end_layout
21391
21392 \begin_layout LyX-Code
21393   @
21394 \end_layout
21395
21396 \begin_layout Standard
21397 問題は<<と@の間にあるものを完全にそのままの形で扱わなければならないことです.つまり,\SpecialChar LyX
21398 は,この間に書かれたものを特別に解釈することは決してあってはなりません.
21399 これも
21400 \begin_inset Flex Noun
21401 status collapsed
21402
21403 \begin_layout Plain Layout
21404 Chunk
21405 \end_layout
21406
21407 \end_inset
21408
21409 によって取り扱われ,通常のテキスト差込枠のように見えますが,自由に空白を入れることができます.
21410 \end_layout
21411
21412 \begin_layout Standard
21413 特殊な注釈として,chunk内でNowebの「%def」を使えば,Nowebのidentifierの相互参照に項目を加えることができます.次の例を見てください.
21414 \end_layout
21415
21416 \begin_layout LyX-Code
21417 <<My chunk>>=
21418 \end_layout
21419
21420 \begin_layout LyX-Code
21421 def some_function(args):
21422 \end_layout
21423
21424 \begin_layout LyX-Code
21425    "This is the doc string for this function."
21426 \end_layout
21427
21428 \begin_layout LyX-Code
21429    print "My args: ", args
21430 \end_layout
21431
21432 \begin_layout LyX-Code
21433 @ %def some_function
21434 \end_layout
21435
21436 \begin_layout Standard
21437 これをどのように使って,その結果相互参照がどうなるかは
21438 \emph on
21439 LIBDIR/examples/listerrors.lyx
21440 \emph default
21441 の中の文芸pythonプログラムを見るとよくわかります.
21442 \end_layout
21443
21444 \begin_layout Paragraph
21445 説明文書の生成
21446 \end_layout
21447
21448 \begin_layout Standard
21449 この時点で,適切な文書クラスを持ち,いくつかのコードとテキストが入った新規文書ファイルが作成されているはずです.これをどうやって印刷したらいいのでしょう.答えは
21450 簡単で,通常の文書で行うように
21451 \family sans
21452 文書\SpecialChar menuseparator
21453 表示
21454 \family default
21455 等を選ぶだけです.特別な手続きは必要ありません.
21456 \end_layout
21457
21458 \begin_layout Standard
21459 理解を助けるために,\SpecialChar LyX
21460 の内部で何が起っているかを説明しておきましょう.
21461 \end_layout
21462
21463 \begin_layout Enumerate
21464
21465 \family sans
21466 文書\SpecialChar menuseparator
21467 更新
21468 \family default
21469 が選択されると,\SpecialChar LaTeX
21470 ファイルがつくられます.
21471 \end_layout
21472
21473 \begin_deeper
21474 \begin_layout Standard
21475 文書が文芸プログラミング用のクラスであった場合には,拡張子に(
21476 \begin_inset Flex MenuItem
21477 status collapsed
21478
21479 \begin_layout Plain Layout
21480 設定
21481 \end_layout
21482
21483 \end_inset
21484
21485 パネルで設定した)文芸プログラム用のものがつけられます.それ以外は .texが拡張子に使われます.
21486 \end_layout
21487
21488 \end_deeper
21489 \begin_layout Enumerate
21490 違いがファイル名だけなのに注意してください.\SpecialChar LyX
21491 による特別な処理は必要ありません.
21492 \begin_inset Flex Noun
21493 status collapsed
21494
21495 \begin_layout Plain Layout
21496 Chunk
21497 \end_layout
21498
21499 \end_inset
21500
21501 差込枠でコードを入力するのだけがポイントです.
21502 \end_layout
21503
21504 \begin_layout Enumerate
21505 文書が何らかの文芸プログラムクラスなら,\SpecialChar LyX
21506 は,\SpecialChar LyX
21507 からNowebへの内部変換子を用い,それからNowebから\SpecialChar LaTeX
21508 への変換子
21509 \begin_inset Foot
21510 status collapsed
21511
21512 \begin_layout Plain Layout
21513 これらの変換子は,
21514 \family sans
21515 ツール\SpecialChar menuseparator
21516 設定
21517 \family default
21518 パネルの変換子タブに定義されています.変換子の一般的な情報については,取扱説明書『
21519 \emph on
21520 カスタマイズ篇
21521 \emph default
21522 』の「
21523 \emph on
21524 変換子
21525 \emph default
21526 」の節をご覧ください.
21527 \end_layout
21528
21529 \end_inset
21530
21531 を使って\SpecialChar LaTeX
21532 ファイルを生成します.
21533 \end_layout
21534
21535 \begin_deeper
21536 \begin_layout Standard
21537 それ以外の場合はこのステップを飛ばします.
21538 \end_layout
21539
21540 \end_deeper
21541 \begin_layout Enumerate
21542 最後に\SpecialChar LaTeX
21543 が実行され,通常の文書と同じ後処理が行われます.
21544 \end_layout
21545
21546 \begin_layout Standard
21547 様々な変換子が実行するコマンドを変更すれば,簡単に,特定の「文芸プログラムツール」から変更することができます.
21548 \end_layout
21549
21550 \begin_layout Paragraph
21551 コードの生成
21552 \end_layout
21553
21554 \begin_layout Standard
21555 ビルドメニューが選ばれた場合や,それに対応するツールバーのボタンが押された場合,上のステップ1と同様に\SpecialChar LaTeX
21556 ファイルが生成されます.それから\SpecialChar LyX
21557
21558 \family typewriter
21559 Noweb->Program
21560 \family default
21561 のコンバータを起動します.通常は,このコンバータは(他のコンバータと同じように)2つの部分からできています.
21562 \end_layout
21563
21564 \begin_layout Enumerate
21565 変換プログラム.このプログラムは,一つのフォーマットから他のフォーマットへの変換を行います(この場合は,Nowebフォーマットからプログラムの疑似フォーマットへ
21566 変換します).
21567 \end_layout
21568
21569 \begin_layout Enumerate
21570 エラーログ解析子.これはエラーメッセージを\SpecialChar LyX
21571 が理解できる形へ書き直します.これによって,\SpecialChar LyX
21572 はファイルバッファの正しい位置へエラーボックスを配置することができます.
21573 \end_layout
21574
21575 \begin_layout Standard
21576 冒頭部,「変換子」設定は
21577 \end_layout
21578
21579 \begin_layout LyX-Code
21580
21581 \family typewriter
21582 build-script $$i $$r
21583 \end_layout
21584
21585 \begin_layout Standard
21586 と指定します.これは基本的に,\SpecialChar LyX
21587
21588 \begin_inset Quotes erd
21589 \end_inset
21590
21591
21592 \family typewriter
21593 build-script
21594 \family default
21595
21596 \begin_inset Quotes erd
21597 \end_inset
21598
21599 (プログラムかスクリプト名)を(一般には\SpecialChar LyX
21600 の一時ファイル用のディレクトリにつくられる),Nowebファイルの名前と元の\SpecialChar LyX
21601 ファイルのディレクトリパスを使って呼び出すこ
21602 とを意味しています.
21603 \end_layout
21604
21605 \begin_layout Standard
21606 以下に「build-script」の一例を書いておきます.パスが通っているディレクトリに置いて使います.
21607 \end_layout
21608
21609 \begin_layout LyX-Code
21610
21611 \family sans
21612 #!/bin/sh
21613 \end_layout
21614
21615 \begin_layout LyX-Code
21616
21617 \family sans
21618 #
21619 \end_layout
21620
21621 \begin_layout LyX-Code
21622
21623 \family sans
21624 notangle -Rbuild-script $1 | env NOWEB_SOURCE=$1 NOWEB_OUTPUT_DIR=$2 sh
21625 \end_layout
21626
21627 \begin_layout Standard
21628 変換子設定の次の部分は「フラグ」で,これは
21629 \end_layout
21630
21631 \begin_layout LyX-Code
21632
21633 \family typewriter
21634 parselog=$$s/scripts/listerrors
21635 \end_layout
21636
21637 \begin_layout Standard
21638 に設定されます.
21639 \begin_inset Newline newline
21640 \end_inset
21641
21642 これは,
21643 \begin_inset Quotes erd
21644 \end_inset
21645
21646 build-script
21647 \begin_inset Quotes erd
21648 \end_inset
21649
21650 プロセスが生成したエラーを
21651 \begin_inset Quotes erd
21652 \end_inset
21653
21654 listerrors
21655 \begin_inset Quotes erd
21656 \end_inset
21657
21658 プログラムを介して処理するものです.
21659 \end_layout
21660
21661 \begin_layout Standard
21662 ビルドは,通常\SpecialChar LyX
21663 の一時ディレクトリで行われるので,変換によって生成されたファイルはそのディレクトリに置かれます.\SpecialChar LyX
21664 は,主要ファイルとみなされるものをコピーして取り出
21665 しますが,
21666 \family typewriter
21667 Noweb→プログラム
21668 \family default
21669 変換は複数のファイルを生成することがあるので,\SpecialChar LyX
21670 を閉じる際に大半が削除される可能性があります.これが,NOWEB_OUTPUT_DIR環境変数を渡して,build
21671 -script chunkが生成したファイルをその場所に置かれるようにする理由です.
21672 \end_layout
21673
21674 \begin_layout Paragraph
21675 文章中でのプログラムの構築操作の説明
21676 \end_layout
21677
21678 \begin_layout Standard
21679 \SpecialChar LyX
21680 とNowebの統合の最後の部分は,
21681 \begin_inset Quotes eld
21682 \end_inset
21683
21684 build-script
21685 \begin_inset Quotes erd
21686 \end_inset
21687
21688  chunkです.一般に,あなたのプログラムの構築操作の説明それ自身をchunkに入れて文章中に含めなければなりません.上の例のnoweb用のbuild-scr
21689 iptでは,chunkを見つけるのにnotangleコマンドを使い,shを使って起動します.
21690 \end_layout
21691
21692 \begin_layout Standard
21693 以下に典型的なchunkがどのようなものかを書いておきます.
21694 \end_layout
21695
21696 \begin_layout LyX-Code
21697 <<build-script>>=
21698 \begin_inset Newline newline
21699 \end_inset
21700
21701
21702 \end_layout
21703
21704 \begin_layout LyX-Code
21705 #!/bin/sh
21706 \begin_inset Newline newline
21707 \end_inset
21708
21709
21710 \begin_inset Newline newline
21711 \end_inset
21712
21713 if [ -z "${NOWEB_SOURCE}" ]
21714 \begin_inset Newline newline
21715 \end_inset
21716
21717 then
21718 \end_layout
21719
21720 \begin_layout LyX-Code
21721 NOWEB_SOURCE=myfile.nw
21722 \begin_inset Newline newline
21723 \end_inset
21724
21725 fi
21726 \begin_inset Newline newline
21727 \end_inset
21728
21729 [...
21730  code to extract files ...
21731  use NOWEB_OUTPUT_DIR here ...]
21732 \begin_inset Newline newline
21733 \end_inset
21734
21735 [...
21736  code to compile files ...]
21737 \begin_inset Newline newline
21738 \end_inset
21739
21740 @
21741 \end_layout
21742
21743 \begin_layout Standard
21744
21745 \emph on
21746 LIBDIR/examples/listerrors.lyx
21747 \emph default
21748
21749 \emph on
21750 LIBDIR/examples/Literate.lyx
21751 \emph default
21752 を見てください.この2つのファイルには異なる実装のlisterrorsプログラムが含まれていて,これまで説明してきた各々の部分が全体としてどのようになるかをわか
21753 ってもらうための例です.また,
21754 \emph on
21755 LIBDIR/examples/noweb2lyx.lyx
21756 \emph default
21757 も見てください.面白いことに,これらの3つのファイルは,Python,C,Perlが各々使われていて,\SpecialChar LyX
21758 の文芸プログラミングのサポートがプログラム言語に依存しない
21759 ことを示しています.
21760 \end_layout
21761
21762 \begin_layout Subsubsection
21763 \SpecialChar LyX
21764 の設定
21765 \end_layout
21766
21767 \begin_layout Standard
21768 すべての文芸プログラムのための設定は,
21769 \family sans
21770 ツール\SpecialChar menuseparator
21771 設定
21772 \family default
21773 パネルの「ファイル処理」タブですることができます.重要な部分を見ておきましょう.
21774 \end_layout
21775
21776 \begin_layout Description
21777 「NoWeb」形式 ファイル形式タブで設定します.ここで,Noweb特有の設定を行います.
21778 \family sans
21779 GUI名
21780 \family default
21781
21782 \family typewriter
21783 NoWeb
21784 \family default
21785 に,拡張子を
21786 \family typewriter
21787 .nw
21788 \family default
21789 に設定してください.これによって,\SpecialChar LyX
21790 に変換プロセスの第一段階でつくられるファイルに
21791 \family typewriter
21792 .nw
21793 \family default
21794 という拡張子をつけることを指示します.
21795 \end_layout
21796
21797 \begin_layout Description
21798 プログラム形式 これは,変換の終着点を示すためだけの,空の形式です(これがあることで,変換子を作ることができます).
21799 \end_layout
21800
21801 \begin_layout Description
21802
21803 \family sans
21804 NoWeb
21805 \family default
21806 ->
21807 \family sans
21808 \SpecialChar LaTeX
21809
21810 \family default
21811  この変換子は,文芸的文書の「weaving」を行います.Nowebの場合,「
21812 \family typewriter
21813 noweave -delay -index $$i > $$o
21814 \family default
21815 」に設定されます.
21816 \end_layout
21817
21818 \begin_layout Description
21819
21820 \family sans
21821 NoWeb
21822 \family default
21823 ->
21824 \family sans
21825 Program
21826 \family default
21827  これは「tangling」を行います.上述のように,変換子は「
21828 \family typewriter
21829 build-script $$i $$r
21830 \family default
21831 」,フラグは「
21832 \family typewriter
21833 parselog=$$s/scripts/listerrors
21834 \family default
21835 」となります.
21836 \end_layout
21837
21838 \begin_layout Subsubsection
21839 デバッグ機能拡張
21840 \end_layout
21841
21842 \begin_layout Standard
21843 ddd/gdbまたは他のデバッガで使える「server-goto-file-row」関数が新たに\SpecialChar LyX
21844 サーバに実装されました.
21845 \end_layout
21846
21847 \begin_layout Standard
21848 ddd/gdbでデバッグしているとき,一つの
21849 \begin_inset Flex Ruby
21850 status collapsed
21851
21852 \begin_layout Plain Layout
21853
21854 \begin_inset Argument post:1
21855 status collapsed
21856
21857 \begin_layout Plain Layout
21858 キー
21859 \end_layout
21860
21861 \end_inset
21862
21863
21864 \end_layout
21865
21866 \end_inset
21867
21868 ストロークで現在実行している位置でテキストエディタを起動できます.既定のdddの設定ではShift-Ctrl-Vになっています.この設定はdddで
21869 \begin_inset Flex MenuItem
21870 status collapsed
21871
21872 \begin_layout Plain Layout
21873 ツール\SpecialChar menuseparator
21874 設定\SpecialChar menuseparator
21875 ファイル書式
21876 \end_layout
21877
21878 \end_inset
21879
21880 ウインドウを表示して,
21881 \begin_inset Flex MenuItem
21882 status collapsed
21883
21884 \begin_layout Plain Layout
21885 編集プログラム
21886 \end_layout
21887
21888 \end_inset
21889
21890 エントリを変えると変えることができます.
21891 \end_layout
21892
21893 \begin_layout Standard
21894 新しい\SpecialChar LyX
21895 サーバの関数と,このdddの機能を使うために
21896 \begin_inset Flex MenuItem
21897 status collapsed
21898
21899 \begin_layout Plain Layout
21900 編集プログラム
21901 \end_layout
21902
21903 \end_inset
21904
21905 を次のように設定してください.
21906 \end_layout
21907
21908 \begin_layout LyX-Code
21909
21910 \family sans
21911 echo "LYXCMD:monitor:server-goto-file-row:@FILE@ @LINE@" >~/.lyxpipe.in
21912 \end_layout
21913
21914 \begin_layout Standard
21915 こうしておくとdddを使っていてプログラムの編集したい場所があったとき,(dddのウインドウで)Shift-Ctrl-Vを押すだけでdddは\SpecialChar LyX
21916 サーバに情報を送り,\SpecialChar LyX
21917
21918 は同じファイルを表示し,カーソルはdddが示した場所へあらわれます.これでもうデバッグの最中に推測しながらスクロールして場所を探す必要がなくなります.
21919 \end_layout
21920
21921 \begin_layout Standard
21922 この機能が動くには\SpecialChar LyX
21923 サーバが利用可能でなければなりません(既定では\SpecialChar LyX
21924 サーバーは使えないようになっています).
21925 \end_layout
21926
21927 \begin_layout Standard
21928
21929 \begin_inset CommandInset ref
21930 LatexCommand ref
21931 reference "sec:サーバーを開始するには"
21932
21933 \end_inset
21934
21935 節にその方法が説明されています.
21936 \end_layout
21937
21938 \begin_layout Subsubsection
21939 ツールバー拡張
21940 \end_layout
21941
21942 \begin_layout Standard
21943 ツールバーに加えることのできる6つの新しいボタンがあります.そのうちの4つのボタンは
21944 \family sans
21945 標準
21946 \family default
21947 ・節・
21948 \family sans
21949 \SpecialChar LaTeX
21950
21951 \family default
21952
21953 \family sans
21954 \SpecialChar LyX
21955 コード
21956 \family default
21957 の段落環境へのショートカットであり,1つは拡張差込枠
21958 \family sans
21959 Chunk
21960 \family default
21961 へのショートカットです.最後の一つはファイルメニュー項目の「Build Program」への
21962 \begin_inset Flex Ruby
21963 status collapsed
21964
21965 \begin_layout Plain Layout
21966
21967 \family roman
21968 \series medium
21969 \shape up
21970 \size normal
21971 \emph off
21972 \bar no
21973 \noun off
21974 \color none
21975 捷径
21976 \family default
21977 \series default
21978 \shape default
21979 \size default
21980 \emph default
21981 \bar default
21982 \noun default
21983 \color inherit
21984
21985 \begin_inset Argument post:1
21986 status collapsed
21987
21988 \begin_layout Plain Layout
21989 ショートカット
21990 \end_layout
21991
21992 \end_inset
21993
21994
21995 \end_layout
21996
21997 \end_inset
21998
21999 です.
22000 \end_layout
22001
22002 \begin_layout Standard
22003 \SpecialChar LyX
22004 はツールバーで使うためのいくつものボタンを用意しています.私のツールバーはこの6つのショートカットに
22005 \begin_inset Flex MenuItem
22006 status collapsed
22007
22008 \begin_layout Plain Layout
22009 文書\SpecialChar menuseparator
22010 更新\SpecialChar menuseparator
22011 DVI
22012 \end_layout
22013
22014 \end_inset
22015
22016
22017 \begin_inset Flex MenuItem
22018 status collapsed
22019
22020 \begin_layout Plain Layout
22021 文書\SpecialChar menuseparator
22022 表示\SpecialChar menuseparator
22023 DVI
22024 \end_layout
22025
22026 \end_inset
22027
22028 を組み合わせたものになっています.
22029 \end_layout
22030
22031 \begin_layout LyX-Code
22032 Toolbar
22033 \end_layout
22034
22035 \begin_layout LyX-Code
22036   Layouts
22037 \end_layout
22038
22039 \begin_layout LyX-Code
22040   Icon "layout Standard"
22041 \end_layout
22042
22043 \begin_layout LyX-Code
22044   Icon "layout Section"
22045 \end_layout
22046
22047 \begin_layout LyX-Code
22048   Icon "layout latex"
22049 \end_layout
22050
22051 \begin_layout LyX-Code
22052   Icon "layout \SpecialChar LyX
22053 -Code"
22054 \end_layout
22055
22056 \begin_layout LyX-Code
22057   Icon "flex.insert Chunk"
22058 \end_layout
22059
22060 \begin_layout LyX-Code
22061   Separator
22062 \end_layout
22063
22064 \begin_layout LyX-Code
22065   Icon "buffer-view"
22066 \end_layout
22067
22068 \begin_layout LyX-Code
22069   Icon "buffer-typeset"
22070 \end_layout
22071
22072 \begin_layout LyX-Code
22073   Icon "build-program"
22074 \end_layout
22075
22076 \begin_layout LyX-Code
22077   Separator
22078 \end_layout
22079
22080 \begin_layout LyX-Code
22081 .
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 End
22094 \end_layout
22095
22096 \begin_layout Subsubsection
22097 色の変更
22098 \end_layout
22099
22100 \begin_layout Standard
22101 \SpecialChar LyX
22102 ではいくつもの色を
22103 \begin_inset Flex MenuItem
22104 status collapsed
22105
22106 \begin_layout Plain Layout
22107 設定
22108 \end_layout
22109
22110 \end_inset
22111
22112 で変えることができます.人々が困りがちなのは,\SpecialChar LaTeX
22113 フォント色でしょう.これは,既定では赤になっていますが,chunkは\SpecialChar LaTeX
22114 フォントを使うことになっていて,文芸プログラミ
22115 ング文書には多くのchunkが現れるために,すべて赤で見ていると疲れてしまうかもしれません.これは,
22116 \begin_inset Flex MenuItem
22117 status collapsed
22118
22119 \begin_layout Plain Layout
22120 操作性\SpecialChar menuseparator
22121
22122 \end_layout
22123
22124 \end_inset
22125
22126 タブで変更することができます.
22127 \end_layout
22128
22129 \begin_layout Standard
22130 もう一つは,改行文字が画面に表示されていることでしょう.改行文字の色を背景の色と同じにすることで改行文字を見えなくできます.私は改行文字を背景の色に似ているが少
22131 し違う色にすることを勧めます.こうすると,改行文字があるのはわかりますが,じゃまにならないでしょう.
22132 \end_layout
22133
22134 \begin_layout Subsection
22135 \SpecialChar LyX
22136 とknitr/Sweave
22137 \end_layout
22138
22139 \begin_layout Standard
22140 knitrとSweaveへのサポートについては,用例ファイル
22141 \emph on
22142 knitr.lyx
22143 \emph default
22144 とSweave取扱説明書(
22145 \family sans
22146 ヘルプ\SpecialChar menuseparator
22147 用途別説明書
22148 \family default
22149 メニュー)に説明があります.
22150 \end_layout
22151
22152 \begin_layout Chapter
22153 特殊機能
22154 \begin_inset CommandInset label
22155 LatexCommand label
22156 name "chap:Special-features"
22157
22158 \end_inset
22159
22160
22161 \end_layout
22162
22163 \begin_layout Standard
22164 \SpecialChar LyX
22165 では,\SpecialChar LaTeX
22166 で可能なことは何でも出来ます.すべての\SpecialChar LaTeX
22167 の機能を直接サポートできるわけではありませんが,どんな場合でも\SpecialChar TeX
22168 コードを使用することはできます.本章は,ユーザの興味が
22169 有りそうな特別な機能について,若干取り上げます.図表やフロート,ボックス,注釈に関する特別な機能については,取扱説明書『
22170 \emph on
22171 埋込オブジェクト篇
22172 \emph default
22173 』をご参照ください.
22174 \end_layout
22175
22176 \begin_layout Section
22177 多段組
22178 \end_layout
22179
22180 \begin_layout Standard
22181 この機能は,文書設定の
22182 \family sans
22183 本文レイアウト
22184 \family default
22185 にある
22186 \family sans
22187 二段組文書
22188 \family default
22189 とは別の機能です.文書全体に二段組を行いたい場合には,
22190 \family sans
22191 二段組文書
22192 \family default
22193 オプションを利用することをお勧めします.その他の場合には,本機能をご使用ください.
22194 \end_layout
22195
22196 \begin_layout Standard
22197 文書中で多段組を行うには,\SpecialChar LaTeX
22198 パッケージ
22199 \begin_inset Flex Code
22200 status collapsed
22201
22202 \begin_layout Plain Layout
22203 multicol
22204 \end_layout
22205
22206 \end_inset
22207
22208
22209 \begin_inset Index idx
22210 status collapsed
22211
22212 \begin_layout Plain Layout
22213 \SpecialChar LaTeX
22214 ぱっけーじ @ \SpecialChar LaTeX
22215 パッケージ ! multicol
22216 \end_layout
22217
22218 \end_inset
22219
22220 を導入した上で,(
22221 \family sans
22222 文書\SpecialChar menuseparator
22223 設定\SpecialChar menuseparator
22224 モジュール
22225 \family default
22226 メニューから)
22227 \family sans
22228 多段組
22229 \family default
22230 モジュールを読み込んでください.
22231 \end_layout
22232
22233 \begin_layout Standard
22234 多段組中の脚注は,ページ下部に置かれ,各段の下ごとには置かれません.各段においては,フロートに
22235 \family sans
22236 段をまたぐ
22237 \family default
22238 オプションを使用する必要があるほかは,通常通りの使用をすることができます.
22239 \end_layout
22240
22241 \begin_layout Subsection
22242 基本
22243 \end_layout
22244
22245 \begin_layout Standard
22246 文章中で二段組を使用したい場合には,段組を始める場所で
22247 \family sans
22248 挿入\SpecialChar menuseparator
22249 任意設定差込枠\SpecialChar menuseparator
22250 多段組
22251 \family default
22252 メニューを使用して,多段組差込枠を挿入してください.二段組で印字されるべき文章は,全てこの差込枠の中に書いてください.
22253 \end_layout
22254
22255 \begin_layout Standard
22256 下記はその用例です.
22257 \end_layout
22258
22259 \begin_layout Standard
22260 \noindent
22261 \begin_inset Flex Multiple Columns
22262 status open
22263
22264 \begin_layout Plain Layout
22265 \noindent
22266
22267 \series bold
22268 \size small
22269 The Adventure of the Empty House
22270 \series default
22271
22272 \begin_inset Newline newline
22273 \end_inset
22274
22275 by Sir Arthur Conan Doyle
22276 \end_layout
22277
22278 \begin_layout Plain Layout
22279
22280 \size small
22281 It was in the spring of the year 1894 that all London was interested, and
22282  the fashionable world dismayed, by the murder of the Honourable Ronald
22283  Adair under most unusual and inexplicable circumstances.
22284  The public has already learned those particulars of the crime which came
22285  out in the police investigation, but a good deal was suppressed upon that
22286  occasion, since the case for the prosecution was so overwhelmingly strong
22287  that it was not necessary to bring forward all the facts.
22288  Only now, at the end of nearly ten years, am I allowed to supply those
22289  missing links which make up the whole of that remarkable chain.
22290  The crime was of interest in itself, but that interest was as nothing to
22291  me compared to the inconceivable sequel, which afforded me the greatest
22292  shock and surprise of any event in my adventurous life.
22293  Even now, after this long interval, I find myself thrilling as I think
22294  of it, and feeling once more that sudden flood of joy, amazement, and increduli
22295 ty which utterly submerged my mind.
22296  Let me say to that public, which has shown some interest in those glimpses
22297  which I have occasionally given them of the thoughts and actions of a very
22298  remarkable man, that they are not to blame me if I have not shared my knowledge
22299  with them, for I should have considered it my first duty to do so, had
22300  I not been barred by a positive prohibition from his own lips, which was
22301  only withdrawn upon the third of last month.
22302 \end_layout
22303
22304 \end_inset
22305
22306
22307 \end_layout
22308
22309 \begin_layout Standard
22310 三段以上にするには,カーソルを多段組差込枠の内部において,挿入\SpecialChar menuseparator
22311 段数メニューを使用してください.この差込枠の中に,欲しい段数を書き入れます(三段組の場合には「3」
22312 と書きます).
22313 \begin_inset Newline newline
22314 \end_inset
22315
22316 下記は三段組の例です.
22317 \end_layout
22318
22319 \begin_layout Standard
22320 \begin_inset Flex Multiple Columns
22321 status open
22322
22323 \begin_layout Plain Layout
22324
22325 \size footnotesize
22326 \begin_inset Argument 1
22327 status open
22328
22329 \begin_layout Plain Layout
22330
22331 3
22332 \end_layout
22333
22334 \end_inset
22335
22336 It can be imagined that my close intimacy with Sherlock Holmes had interested
22337  me deeply in crime, and that after his disappearance I never failed to
22338  read with care the various problems which came before the public.
22339  And I even attempted, more than once, for my own private satisfaction,
22340  to employ his methods in their solution, though with indifferent success.
22341  There was none, however, which appealed to me like this tragedy of Ronald
22342  Adair.
22343  As I read the evidence at the inquest, which led up to a verdict of willful
22344  murder against some person or persons unknown, I realized more clearly
22345  than I had ever done the loss which the community had sustained by the
22346  death of Sherlock Holmes.
22347  There were points about this strange business which would, I was sure,
22348  have specially appealed to him, and the efforts of the police would have
22349  been supplemented, or more probably anticipated, by the trained observation
22350  and the alert mind of the first criminal agent in Europe.
22351  All day, as I drove upon my round, I turned over the case in my mind and
22352  found no explanation which appeared to me to be adequate.
22353  At the risk of telling a twice-told tale, I will recapitulate the facts
22354  as they were known to the public at the conclusion of the inquest.
22355 \end_layout
22356
22357 \end_inset
22358
22359
22360 \end_layout
22361
22362 \begin_layout Standard
22363 お望みならば10段組まで組むことができますが,文書の読者にとっては,あまり気持ちのいいものではないでしょう.
22364 \end_layout
22365
22366 \begin_layout Standard
22367 \begin_inset Newpage newpage
22368 \end_inset
22369
22370
22371 \end_layout
22372
22373 \begin_layout Subsection
22374 段組中の段組
22375 \end_layout
22376
22377 \begin_layout Standard
22378 また,段中に段を組むこともできます.
22379 \end_layout
22380
22381 \begin_layout Standard
22382 \begin_inset Flex Multiple Columns
22383 status open
22384
22385 \begin_layout Plain Layout
22386
22387 \size footnotesize
22388 The Honourable Ronald Adair was the second son of the Earl of Maynooth,
22389  at that time governor of one of the Australian colonies.
22390  Adair's mother had returned from Australia to undergo the operation for
22391  cataract, and she, her son Ronald, and her daughter Hilda were living together
22392  at 427 Park Lane.
22393 \end_layout
22394
22395 \begin_layout Plain Layout
22396 \begin_inset Flex Multiple Columns
22397 status open
22398
22399 \begin_layout Plain Layout
22400
22401 \size footnotesize
22402 The youth moved in the best society
22403 \begin_inset space ~
22404 \end_inset
22405
22406 – had, so far as was known, no enemies and no particular vices.
22407  He had been engaged to Miss Edith Woodley, of Carstairs, but the engagement
22408  had been broken off by mutual consent some months before, and there was
22409  no sign that it had left any very profound feeling behind it.
22410  For the rest {sic} the man's life moved in a narrow and conventional circle,
22411  for his habits were quiet and his nature unemotional.
22412  Yet it was upon this easy-going young aristocrat that death came, in most
22413  strange and unexpected form, between the hours of ten and eleven-twenty
22414  on the night of March 30, 1894.
22415 \end_layout
22416
22417 \end_inset
22418
22419
22420 \end_layout
22421
22422 \begin_layout Plain Layout
22423
22424 \size footnotesize
22425 Ronald Adair was fond of cards
22426 \begin_inset space ~
22427 \end_inset
22428
22429 – playing continually, but never for such stakes as would hurt him.
22430  He was a member of the Baldwin, the Cavendish, and the Bagatelle card clubs.
22431  It was shown that, after dinner on the day of his death, he had played
22432  a rubber of whist at the latter club.
22433  He had also played there in the afternoon.
22434
22435 \size default
22436  
22437 \size footnotesize
22438 The evidence of those who had played with him
22439 \begin_inset space ~
22440 \end_inset
22441
22442 – Mr.
22443  Murray, Sir John Hardy, and Colonel Moran
22444 \begin_inset space ~
22445 \end_inset
22446
22447 – showed that the game was whist, and that there was a fairly equal fall
22448  of the cards.
22449  Adair might have lost five pounds, but not more.
22450  His fortune was a considerable one, and such a loss could not in any way
22451  affect him.
22452  He had played nearly every day at one club or other, but he was a cautious
22453  player, and usually rose a winner.
22454  It came out in evidence that, in partnership with Colonel Moran, he had
22455  actually won as much as four hundred and twenty pounds in a sitting, some
22456  weeks before, from Godfrey Milner and Lord Balmoral.
22457  So much for his recent history as it came out at the inquest.
22458 \end_layout
22459
22460 \end_inset
22461
22462
22463 \end_layout
22464
22465 \begin_layout Subsection
22466 応用例
22467 \end_layout
22468
22469 \begin_layout Standard
22470 本節の用例は,多段組のさらに特別な機能を示すためのものです.
22471 \end_layout
22472
22473 \begin_layout Standard
22474 多段組機能についてさらに知りたい場合には,\SpecialChar LaTeX
22475 パッケージ
22476 \begin_inset Flex Code
22477 status collapsed
22478
22479 \begin_layout Plain Layout
22480 multicol
22481 \end_layout
22482
22483 \end_inset
22484
22485
22486 \begin_inset CommandInset href
22487 LatexCommand href
22488 name "取扱説明書"
22489 target "http://mirror.ctan.org/macros/latex/required/tools/multicol.pdf"
22490 literal "false"
22491
22492 \end_inset
22493
22494 をご覧ください.
22495 \end_layout
22496
22497 \begin_layout Subsubsection
22498 序文
22499 \end_layout
22500
22501 \begin_layout Standard
22502 多段組に序文を追記するには,カーソルを多段組差込枠内部に置き,
22503 \family sans
22504 挿入\SpecialChar menuseparator
22505 序文
22506 \family default
22507 メニューを使用してください.序文は,この差込枠内に書いてください.
22508 \begin_inset Newline newline
22509 \end_inset
22510
22511 序文のある文章の例を掲げます.
22512 \end_layout
22513
22514 \begin_layout Standard
22515 \begin_inset VSpace bigskip
22516 \end_inset
22517
22518
22519 \end_layout
22520
22521 \begin_layout Standard
22522 \begin_inset Flex Multiple Columns
22523 status open
22524
22525 \begin_layout Plain Layout
22526 \begin_inset Argument 2
22527 status open
22528
22529 \begin_layout Plain Layout
22530 And the story continues and continues and continues and continues\SpecialChar ldots
22531
22532 \end_layout
22533
22534 \end_inset
22535
22536
22537 \size small
22538 On the evening of the crime, he returned from the club exactly at ten.
22539  His mother and sister were out spending the evening with a relation.
22540  The servant deposed that she heard him enter the front room on the second
22541  floor, generally used as his sitting-room.
22542  She had lit a fire there, and as it smoked she had opened the window.
22543  No sound was heard from the room until eleven-twenty, the hour of the return
22544  of Lady Maynooth and her daughter.
22545  Desiring to say good-night, she attempted to enter her son's room.
22546  The door was locked on the inside, and no answer could be got to their
22547  cries and knocking.
22548  Help was obtained, and the door forced.
22549  The unfortunate young man was found lying near the table.
22550  His head had been horribly mutilated by an expanding revolver bullet, but
22551  no weapon of any sort was to be found in the room.
22552 \end_layout
22553
22554 \end_inset
22555
22556
22557 \end_layout
22558
22559 \begin_layout Standard
22560 最初の\SpecialChar TeX
22561 コードの後に,節宣言コマンドを\SpecialChar TeX
22562 コードとして使用すれば,節見出しを前書きとして使用することができます.例えば,
22563 \end_layout
22564
22565 \begin_layout Standard
22566
22567 \series bold
22568
22569 \backslash
22570 subsection{小節見出し}
22571 \end_layout
22572
22573 \begin_layout Standard
22574 というコマンドは,小節を生成します.以下の例では,前書きが小々節になっています.
22575 \end_layout
22576
22577 \begin_layout Standard
22578 \begin_inset Flex Multiple Columns
22579 status open
22580
22581 \begin_layout Plain Layout
22582 \begin_inset Argument 2
22583 status open
22584
22585 \begin_layout Plain Layout
22586 \begin_inset ERT
22587 status collapsed
22588
22589 \begin_layout Plain Layout
22590
22591
22592 \backslash
22593 subsubsection{
22594 \end_layout
22595
22596 \end_inset
22597
22598 これは序文の小々節見出しです
22599 \begin_inset ERT
22600 status collapsed
22601
22602 \begin_layout Plain Layout
22603
22604 }
22605 \end_layout
22606
22607 \end_inset
22608
22609
22610 \end_layout
22611
22612 \end_inset
22613
22614
22615 \size small
22616 A minute examination of the circumstances served only to make the case more
22617  complex.
22618  In the first place, no reason could be given why the young man should have
22619  fastened the door upon the inside.
22620  There was the possibility that the murderer had done this, and had afterwards
22621  escaped by the window.
22622  The drop was at least twenty feet, however, and a bed of crocuses in full
22623  bloom lay beneath.
22624  Neither the flowers nor the earth showed any sign of having been disturbed,
22625  nor were there any marks upon the narrow strip of grass which separated
22626  the house from the road.
22627  Apparently, therefore, it was the young man himself who had fastened the
22628  door.
22629  But how did he come by his death? No one could have climbed up to the window
22630  without leaving traces.
22631  Suppose a man had fired through the window, he would indeed be a remarkable
22632  shot who could with a revolver inflict so deadly a wound.
22633  Again, Park Lane is a frequented thoroughfare; there is a cab stand within
22634  a hundred yards of the house.
22635  No one had heard a shot.
22636 \end_layout
22637
22638 \end_inset
22639
22640
22641 \end_layout
22642
22643 \begin_layout Standard
22644 多段組を開始する部分に,必要とされる6行を確保出来るだけの垂直スペースがページに残されていない場合,多段組の前に改行が挿入されます.前書きの行数如何では,この必
22645 要行数を変更したいかもしれません.これは,カーソルを多段組差込枠内部の(もしあれば)序文の後に置き,
22646 \family sans
22647 挿入\SpecialChar menuseparator
22648 改頁前の余白
22649 \family default
22650 メニューを使用することで設定できます.この差込枠に,余白の大きさを「5cm」などと書き込んでください.
22651 \end_layout
22652
22653 \begin_layout Standard
22654 以下の例では,
22655 \begin_inset Flex Code
22656 status collapsed
22657
22658 \begin_layout Plain Layout
22659 7
22660 \backslash
22661 baselineskip
22662 \end_layout
22663
22664 \end_inset
22665
22666 を用いて,必要行数を7行に指定しています(コマンド
22667 \begin_inset Flex Code
22668 status collapsed
22669
22670 \begin_layout Plain Layout
22671
22672 \backslash
22673 baselineskip
22674 \end_layout
22675
22676 \end_inset
22677
22678 は\SpecialChar TeX
22679 コードとして入力する必要があります).
22680 \end_layout
22681
22682 \begin_layout Standard
22683 \begin_inset Flex Multiple Columns
22684 status open
22685
22686 \begin_layout Plain Layout
22687 \begin_inset Argument 3
22688 status open
22689
22690 \begin_layout Plain Layout
22691 7
22692 \begin_inset ERT
22693 status collapsed
22694
22695 \begin_layout Plain Layout
22696
22697
22698 \backslash
22699 baselineskip
22700 \end_layout
22701
22702 \end_inset
22703
22704
22705 \end_layout
22706
22707 \end_inset
22708
22709
22710 \size small
22711 On the evening of the crime, he returned from the club exactly at ten.
22712  His mother and sister were out spending the evening with a relation.
22713  The servant deposed that she heard him enter the front room on the second
22714  floor, generally used as his sitting-room.
22715  She had lit a fire there, and as it smoked she had opened the window.
22716  No sound was heard from the room until eleven-twenty, the hour of the return
22717  of Lady Maynooth and her daughter.
22718  Desiring to say good-night, she attempted to enter her son's room.
22719  The door was locked on the inside, and no answer could be got to their
22720  cries and knocking.
22721  Help was obtained, and the door forced.
22722  The unfortunate young man was found lying near the table.
22723  His head had been horribly mutilated by an expanding revolver bullet, but
22724  no weapon of any sort was to be found in the room.
22725 \end_layout
22726
22727 \end_inset
22728
22729
22730 \end_layout
22731
22732 \begin_layout Subsubsection
22733 周囲の余白
22734 \end_layout
22735
22736 \begin_layout Standard
22737 多段組の前後の余白は,長さ
22738 \begin_inset Flex Code
22739 status collapsed
22740
22741 \begin_layout Plain Layout
22742
22743 \backslash
22744 multicolsep
22745 \end_layout
22746
22747 \end_inset
22748
22749 を変えることで変更することができます.例えば,\SpecialChar TeX
22750 コードで書かれたコマンド
22751 \end_layout
22752
22753 \begin_layout LyX-Code
22754
22755 \family sans
22756
22757 \backslash
22758 setlength{
22759 \backslash
22760 multicolsep}{3cm}
22761 \end_layout
22762
22763 \begin_layout Standard
22764 は,その値を3
22765 \begin_inset space \thinspace{}
22766 \end_inset
22767
22768 cmに変更します.この変更は,多段組が始まる前に指定しなくてはなりません.既定値は13
22769 \begin_inset space \thinspace{}
22770 \end_inset
22771
22772 ptです.
22773 \end_layout
22774
22775 \begin_layout Standard
22776 以下の例では,
22777 \begin_inset Flex Code
22778 status collapsed
22779
22780 \begin_layout Plain Layout
22781
22782 \backslash
22783 multicolsep
22784 \end_layout
22785
22786 \end_inset
22787
22788 は2.5
22789 \begin_inset space \thinspace{}
22790 \end_inset
22791
22792 cmに指定されています.
22793 \end_layout
22794
22795 \begin_layout Standard
22796 \begin_inset ERT
22797 status open
22798
22799 \begin_layout Plain Layout
22800
22801
22802 \backslash
22803 setlength{
22804 \backslash
22805 multicolsep}{2.5cm}
22806 \end_layout
22807
22808 \end_inset
22809
22810
22811 \end_layout
22812
22813 \begin_layout Standard
22814 \begin_inset Flex Multiple Columns
22815 status open
22816
22817 \begin_layout Plain Layout
22818
22819 \size small
22820 All day I turned these facts over in my mind, endeavouring to hit upon some
22821  theory which could reconcile them all, and to find that line of least resistanc
22822 e which my poor friend had declared to be the starting-point of every investigat
22823 ion.
22824  I confess that I made little progress.
22825  In the evening I strolled across the Park, and found myself about six o'clock
22826  at the Oxford Street end of Park Lane.
22827  A group of loafers upon the pavements, all staring up at a particular window,
22828  directed me to the house which I had come to see.
22829  A tall, thin man with coloured glasses, whom I strongly suspected of being
22830  a plain-clothes detective, was pointing out some theory of his own, while
22831  the others crowded round to listen to what he said.
22832  I got as near him as I could, but his observations seemed to me to be absurd,
22833  so I withdrew again in some disgust.
22834  As I did so I struck against an elderly, deformed man, who had been behind
22835  me, and I knocked down several books which he was carrying.
22836 \end_layout
22837
22838 \end_inset
22839
22840
22841 \end_layout
22842
22843 \begin_layout Standard
22844 \begin_inset Note Greyedout
22845 status open
22846
22847 \begin_layout Plain Layout
22848
22849 \series bold
22850 【註】
22851 \series default
22852
22853 \begin_inset Flex Code
22854 status collapsed
22855
22856 \begin_layout Plain Layout
22857
22858 \backslash
22859 setlength
22860 \end_layout
22861
22862 \end_inset
22863
22864 で指定した値は,再度変更されるまでは,以降のすべての多段組で使用されます.
22865 \end_layout
22866
22867 \end_inset
22868
22869
22870 \end_layout
22871
22872 \begin_layout Standard
22873 \begin_inset ERT
22874 status collapsed
22875
22876 \begin_layout Plain Layout
22877
22878
22879 \backslash
22880 setlength{
22881 \backslash
22882 multicolsep}{13pt}
22883 \end_layout
22884
22885 \end_inset
22886
22887
22888 \begin_inset Note Note
22889 status collapsed
22890
22891 \begin_layout Plain Layout
22892
22893 \lang english
22894 go back to the default
22895 \end_layout
22896
22897 \end_inset
22898
22899
22900 \end_layout
22901
22902 \begin_layout Standard
22903 \begin_inset Newpage newpage
22904 \end_inset
22905
22906
22907 \end_layout
22908
22909 \begin_layout Subsubsection
22910 改段
22911 \end_layout
22912
22913 \begin_layout Standard
22914 改段は,文章中の階段を行いたい位置に,\SpecialChar TeX
22915 コードで,コマンド
22916 \begin_inset Flex Code
22917 status collapsed
22918
22919 \begin_layout Plain Layout
22920
22921 \backslash
22922 columnbreak{}
22923 \end_layout
22924
22925 \end_inset
22926
22927 を挿入すれば,強制的に行うことができます.ただし,多くの場合,文章中に空白が挿入されることに注意してください.
22928 \begin_inset Newline newline
22929 \end_inset
22930
22931 以下が用例です.
22932 \end_layout
22933
22934 \begin_layout Standard
22935 \begin_inset Flex Multiple Columns
22936 status open
22937
22938 \begin_layout Plain Layout
22939
22940 \size small
22941 \begin_inset Quotes eld
22942 \end_inset
22943
22944 You're surprised to see me, sir,
22945 \begin_inset Quotes erd
22946 \end_inset
22947
22948  said he, in a strange, croaking voice.
22949 \end_layout
22950
22951 \begin_layout Plain Layout
22952
22953 \size small
22954 I acknowledged that I was.
22955 \end_layout
22956
22957 \begin_layout Plain Layout
22958
22959 \size small
22960 \begin_inset Quotes eld
22961 \end_inset
22962
22963 Well, I've a conscience, sir, and when I chanced to see you go into this
22964  house, as I came hobbling after you, I thought to myself, I'll just step
22965  in and see that kind gentleman, and tell him that if I was a bit gruff
22966  in my manner there was not any harm meant, and that I am much obliged to
22967  him for picking up my books.
22968 \begin_inset Quotes erd
22969 \end_inset
22970
22971
22972 \end_layout
22973
22974 \begin_layout Plain Layout
22975
22976 \size small
22977 \begin_inset Quotes eld
22978 \end_inset
22979
22980 You make too much of a trifle,
22981 \begin_inset Quotes erd
22982 \end_inset
22983
22984  said I.
22985  
22986 \begin_inset Quotes eld
22987 \end_inset
22988
22989 May I ask how you knew who I was?
22990 \begin_inset Quotes erd
22991 \end_inset
22992
22993  AFTER THIS SENTENCE THE COLUMN BREAK IS FORCED.
22994 \begin_inset ERT
22995 status collapsed
22996
22997 \begin_layout Plain Layout
22998
22999
23000 \backslash
23001 columnbreak{}
23002 \end_layout
23003
23004 \end_inset
23005
23006
23007 \end_layout
23008
23009 \begin_layout Plain Layout
23010
23011 \size small
23012 \begin_inset Quotes eld
23013 \end_inset
23014
23015 Well, sir, if it isn't too great a liberty, I am a neighbour of yours, for
23016  you'll find my little bookshop at the corner of Church Street, and very
23017  happy to see you, I am sure.
23018  Maybe you collect yourself, sir.
23019  Here's 
23020 \noun on
23021 British
23022 \begin_inset space ~
23023 \end_inset
23024
23025 Birds
23026 \noun default
23027 , and 
23028 \noun on
23029 Catullus
23030 \noun default
23031 , and 
23032 \noun on
23033 The Holy War
23034 \noun default
23035
23036 \begin_inset space ~
23037 \end_inset
23038
23039 – a bargain, every one of them.
23040  With five volumes you could just fill that gap on that second shelf.
23041  It looks untidy, does it not, sir?
23042 \begin_inset Quotes erd
23043 \end_inset
23044
23045
23046 \end_layout
23047
23048 \end_inset
23049
23050
23051 \end_layout
23052
23053 \begin_layout Subsubsection
23054 段間隔
23055 \end_layout
23056
23057 \begin_layout Standard
23058 段幅は自動的に計算されますが,段の間の余白は指定することができます.これは,長さ
23059 \begin_inset Flex Code
23060 status collapsed
23061
23062 \begin_layout Plain Layout
23063
23064 \backslash
23065 columnsep
23066 \end_layout
23067
23068 \end_inset
23069
23070 を変更することで実現できます.既定値は10
23071 \begin_inset space \thinspace{}
23072 \end_inset
23073
23074 ptです.以下は
23075 \begin_inset Flex Code
23076 status collapsed
23077
23078 \begin_layout Plain Layout
23079
23080 \backslash
23081 columnsep
23082 \end_layout
23083
23084 \end_inset
23085
23086 を3
23087 \begin_inset space \thinspace{}
23088 \end_inset
23089
23090 cmに設定した例です.
23091 \end_layout
23092
23093 \begin_layout Standard
23094 \begin_inset ERT
23095 status open
23096
23097 \begin_layout Plain Layout
23098
23099
23100 \backslash
23101 setlength{
23102 \backslash
23103 columnsep}{3cm}
23104 \end_layout
23105
23106 \end_inset
23107
23108
23109 \end_layout
23110
23111 \begin_layout Standard
23112 \begin_inset Flex Multiple Columns
23113 status open
23114
23115 \begin_layout Plain Layout
23116
23117 \size small
23118 My observations of No.
23119 \begin_inset space \space{}
23120 \end_inset
23121
23122 427 Park Lane did little to clear up the problem in which I was interested.
23123  The house was separated from the street by a low wall and railing, the
23124  whole not more than five feet high.
23125  It was perfectly easy, therefore, for anyone to get into the garden, but
23126  the window was entirely inaccessible, since there was no water pipe or
23127  anything which could help the most active man to climb it.
23128  More puzzled than ever, I retraced my steps to Kensington.
23129  I had not been in my study five minutes when the maid entered to say that
23130  a person desired to see me.
23131  To my astonishment it was none other than my strange old book collector,
23132  his sharp, wizened face peering out from a frame of white hair, and his
23133  precious volumes, a dozen of them at least, wedged under his right arm.
23134 \end_layout
23135
23136 \end_inset
23137
23138
23139 \end_layout
23140
23141 \begin_layout Standard
23142 \begin_inset ERT
23143 status collapsed
23144
23145 \begin_layout Plain Layout
23146
23147
23148 \backslash
23149 setlength{
23150 \backslash
23151 columnsep}{10pt}
23152 \end_layout
23153
23154 \end_inset
23155
23156
23157 \begin_inset Note Note
23158 status collapsed
23159
23160 \begin_layout Plain Layout
23161
23162 \lang english
23163 go back to the default
23164 \end_layout
23165
23166 \end_inset
23167
23168
23169 \end_layout
23170
23171 \begin_layout Subsubsection
23172 垂直線
23173 \end_layout
23174
23175 \begin_layout Standard
23176 段間には,長さ
23177 \begin_inset Flex Code
23178 status collapsed
23179
23180 \begin_layout Plain Layout
23181
23182 \backslash
23183 columnseprule
23184 \end_layout
23185
23186 \end_inset
23187
23188 の幅を持つ罫線が描かれます.罫線幅を0
23189 \begin_inset space \thinspace{}
23190 \end_inset
23191
23192 ptにすると(これが既定値です),罫線は出力されません.以下の例では,段を分かつ線は2
23193 \begin_inset space \thinspace{}
23194 \end_inset
23195
23196 pt幅に設定されています.
23197 \end_layout
23198
23199 \begin_layout Standard
23200 \begin_inset ERT
23201 status open
23202
23203 \begin_layout Plain Layout
23204
23205
23206 \backslash
23207 setlength{
23208 \backslash
23209 columnseprule}{2pt}
23210 \end_layout
23211
23212 \end_inset
23213
23214
23215 \end_layout
23216
23217 \begin_layout Standard
23218 \begin_inset Flex Multiple Columns
23219 status open
23220
23221 \begin_layout Plain Layout
23222
23223 \size small
23224 \begin_inset Quotes eld
23225 \end_inset
23226
23227 You're surprised to see me, sir,
23228 \begin_inset Quotes erd
23229 \end_inset
23230
23231  said he, in a strange, croaking voice.
23232 \end_layout
23233
23234 \begin_layout Plain Layout
23235
23236 \size small
23237 I acknowledged that I was.
23238 \end_layout
23239
23240 \begin_layout Plain Layout
23241
23242 \size small
23243 \begin_inset Quotes eld
23244 \end_inset
23245
23246 Well, I've a conscience, sir, and when I chanced to see you go into this
23247  house, as I came hobbling after you, I thought to myself, I'll just step
23248  in and see that kind gentleman, and tell him that if I was a bit gruff
23249  in my manner there was not any harm meant, and that I am much obliged to
23250  him for picking up my books.
23251 \begin_inset Quotes erd
23252 \end_inset
23253
23254
23255 \end_layout
23256
23257 \begin_layout Plain Layout
23258
23259 \size small
23260 \begin_inset Quotes eld
23261 \end_inset
23262
23263 You make too much of a trifle,
23264 \begin_inset Quotes erd
23265 \end_inset
23266
23267  said I.
23268  
23269 \begin_inset Quotes eld
23270 \end_inset
23271
23272 May I ask how you knew who I was?
23273 \begin_inset Quotes erd
23274 \end_inset
23275
23276
23277 \end_layout
23278
23279 \begin_layout Plain Layout
23280
23281 \size small
23282 \begin_inset Quotes eld
23283 \end_inset
23284
23285 Well, sir, if it isn't too great a liberty, I am a neighbour of yours, for
23286  you'll find my little bookshop at the corner of Church Street, and very
23287  happy to see you, I am sure.
23288  Maybe you collect yourself, sir.
23289  Here's 
23290 \noun on
23291 British
23292 \begin_inset space ~
23293 \end_inset
23294
23295 Birds
23296 \noun default
23297 , and 
23298 \noun on
23299 Catullus
23300 \noun default
23301 , and 
23302 \noun on
23303 The Holy War
23304 \noun default
23305
23306 \begin_inset space ~
23307 \end_inset
23308
23309 – a bargain, every one of them.
23310  With five volumes you could just fill that gap on that second shelf.
23311  It looks untidy, does it not, sir?
23312 \begin_inset Quotes erd
23313 \end_inset
23314
23315
23316 \end_layout
23317
23318 \end_inset
23319
23320
23321 \end_layout
23322
23323 \begin_layout Standard
23324 \begin_inset VSpace defskip
23325 \end_inset
23326
23327
23328 \end_layout
23329
23330 \begin_layout Standard
23331 罫線は,コマンド
23332 \begin_inset Flex Code
23333 status collapsed
23334
23335 \begin_layout Plain Layout
23336
23337 \backslash
23338 columnseprulecolor
23339 \end_layout
23340
23341 \end_inset
23342
23343 を再定義すれば,着色することができます.これは,多段組差込枠の前に\SpecialChar TeX
23344 コードで以下のコマンドを挿入すれば,実現できます.
23345 \end_layout
23346
23347 \begin_layout LyX-Code
23348
23349 \backslash
23350 renewcommand{
23351 \backslash
23352 columnseprulecolor}{
23353 \backslash
23354 color{red}}
23355 \end_layout
23356
23357 \begin_layout Standard
23358 このコマンド中の
23359 \begin_inset Flex Code
23360 status collapsed
23361
23362 \begin_layout Plain Layout
23363
23364 \backslash
23365 red
23366 \end_layout
23367
23368 \end_inset
23369
23370 をお好みの色に変更してください.既定色とユーザー定義色の全てを使用することができます.既定色とユーザー定義色についての詳細な情報は,取扱説明書『埋込オブジェクト
23371 篇』の「色付き表」の節をご覧ください.既定色に戻すには,以下のコマンドを挿入してください.
23372 \end_layout
23373
23374 \begin_layout LyX-Code
23375
23376 \backslash
23377 renewcommand{
23378 \backslash
23379 columnseprulecolor}{
23380 \backslash
23381 normalcolor}
23382 \end_layout
23383
23384 \begin_layout Standard
23385 以下は,シアン色の罫線と1
23386 \begin_inset space \thinspace{}
23387 \end_inset
23388
23389 cmの段間隔を持つ例です.
23390 \end_layout
23391
23392 \begin_layout Standard
23393 \begin_inset ERT
23394 status open
23395
23396 \begin_layout Plain Layout
23397
23398
23399 \backslash
23400 setlength{
23401 \backslash
23402 columnsep}{1cm}
23403 \end_layout
23404
23405 \begin_layout Plain Layout
23406
23407
23408 \backslash
23409 renewcommand{
23410 \backslash
23411 columnseprulecolor}{
23412 \backslash
23413 color{cyan}}
23414 \end_layout
23415
23416 \end_inset
23417
23418
23419 \end_layout
23420
23421 \begin_layout Standard
23422 \begin_inset Flex Multiple Columns
23423 status open
23424
23425 \begin_layout Plain Layout
23426
23427 \size small
23428 \begin_inset Quotes eld
23429 \end_inset
23430
23431 You're surprised to see me, sir,
23432 \begin_inset Quotes erd
23433 \end_inset
23434
23435  said he, in a strange, croaking voice.
23436 \end_layout
23437
23438 \begin_layout Plain Layout
23439
23440 \size small
23441 I acknowledged that I was.
23442 \end_layout
23443
23444 \begin_layout Plain Layout
23445
23446 \size small
23447 \begin_inset Quotes eld
23448 \end_inset
23449
23450 Well, I've a conscience, sir, and when I chanced to see you go into this
23451  house, as I came hobbling after you, I thought to myself, I'll just step
23452  in and see that kind gentleman, and tell him that if I was a bit gruff
23453  in my manner there was not any harm meant, and that I am much obliged to
23454  him for picking up my books.
23455 \begin_inset Quotes erd
23456 \end_inset
23457
23458
23459 \end_layout
23460
23461 \begin_layout Plain Layout
23462
23463 \size small
23464 \begin_inset Quotes eld
23465 \end_inset
23466
23467 You make too much of a trifle,
23468 \begin_inset Quotes erd
23469 \end_inset
23470
23471  said I.
23472  
23473 \begin_inset Quotes eld
23474 \end_inset
23475
23476 May I ask how you knew who I was?
23477 \begin_inset Quotes erd
23478 \end_inset
23479
23480
23481 \end_layout
23482
23483 \begin_layout Plain Layout
23484
23485 \size small
23486 \begin_inset Quotes eld
23487 \end_inset
23488
23489 Well, sir, if it isn't too great a liberty, I am a neighbour of yours, for
23490  you'll find my little bookshop at the corner of Church Street, and very
23491  happy to see you, I am sure.
23492  Maybe you collect yourself, sir.
23493  Here's 
23494 \noun on
23495 British
23496 \begin_inset space ~
23497 \end_inset
23498
23499 Birds
23500 \noun default
23501 , and 
23502 \noun on
23503 Catullus
23504 \noun default
23505 , and 
23506 \noun on
23507 The Holy War
23508 \noun default
23509
23510 \begin_inset space ~
23511 \end_inset
23512
23513 – a bargain, every one of them.
23514  With five volumes you could just fill that gap on that second shelf.
23515  It looks untidy, does it not, sir?
23516 \begin_inset Quotes erd
23517 \end_inset
23518
23519
23520 \end_layout
23521
23522 \end_inset
23523
23524
23525 \end_layout
23526
23527 \begin_layout Standard
23528 \begin_inset ERT
23529 status collapsed
23530
23531 \begin_layout Plain Layout
23532
23533
23534 \backslash
23535 setlength{
23536 \backslash
23537 columnseprule}{0pt}
23538 \end_layout
23539
23540 \begin_layout Plain Layout
23541
23542
23543 \backslash
23544 renewcommand{
23545 \backslash
23546 columnseprulecolor}{
23547 \backslash
23548 normalcolor}
23549 \end_layout
23550
23551 \end_inset
23552
23553
23554 \begin_inset Note Note
23555 status collapsed
23556
23557 \begin_layout Plain Layout
23558
23559 \lang english
23560 go back to the default
23561 \end_layout
23562
23563 \end_inset
23564
23565
23566 \end_layout
23567
23568 \begin_layout Standard
23569 \begin_inset Newpage newpage
23570 \end_inset
23571
23572
23573 \end_layout
23574
23575 \begin_layout Section
23576 標準的でない形の段落
23577 \end_layout
23578
23579 \begin_layout Standard
23580 \noindent
23581 \SpecialChar LaTeX
23582 は,他のテキストプロセッサと同様に,既定で長方形の段落を使用します.しかし,例えば,ポスターや招待状,詩などの特殊な場合には,段落の形を好きなように変えることが
23583 できます.これは,文書設定で
23584 \family sans
23585 任意設定の段落形
23586 \family default
23587 モジュールを読み込んで,\SpecialChar LaTeX
23588 パッケージ
23589 \begin_inset Flex Code
23590 status collapsed
23591
23592 \begin_layout Plain Layout
23593 shapepar
23594 \end_layout
23595
23596 \end_inset
23597
23598 を使用させるようにすれば,実現できます.
23599 \end_layout
23600
23601 \begin_layout Subsection
23602 既定の形
23603 \end_layout
23604
23605 \begin_layout Standard
23606
23607 \series bold
23608 shapepar
23609 \series default
23610 は,以下の形を提供しています.
23611 \end_layout
23612
23613 \begin_layout Standard
23614 \begin_inset Tabular
23615 <lyxtabular version="3" rows="13" columns="3">
23616 <features booktabs="true" islongtable="true" longtabularalignment="center">
23617 <column alignment="center" valignment="middle" width="16col%">
23618 <column alignment="center" valignment="middle" width="40col%">
23619 <column alignment="center" valignment="middle" width="35col%">
23620 <row endhead="true">
23621 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23622 \begin_inset Text
23623
23624 \begin_layout Plain Layout
23625 名称
23626 \end_layout
23627
23628 \end_inset
23629 </cell>
23630 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23631 \begin_inset Text
23632
23633 \begin_layout Plain Layout
23634 説明
23635 \end_layout
23636
23637 \end_inset
23638 </cell>
23639 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
23640 \begin_inset Text
23641
23642 \begin_layout Plain Layout
23643 備考
23644 \end_layout
23645
23646 \end_inset
23647 </cell>
23648 </row>
23649 <row>
23650 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23651 \begin_inset Text
23652
23653 \begin_layout Plain Layout
23654 CDlabel
23655 \end_layout
23656
23657 \end_inset
23658 </cell>
23659 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23660 \begin_inset Text
23661
23662 \begin_layout Plain Layout
23663 丸い穴の開いたドーナツ型(CD/DVD大)
23664 \end_layout
23665
23666 \end_inset
23667 </cell>
23668 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23669 \begin_inset Text
23670
23671 \begin_layout Plain Layout
23672 伸縮不可.多くの文字を入れられないことに注意.
23673 \end_layout
23674
23675 \end_inset
23676 </cell>
23677 </row>
23678 <row>
23679 <cell alignment="center" valignment="top" topline="true" usebox="none">
23680 \begin_inset Text
23681
23682 \begin_layout Plain Layout
23683 Circle
23684 \end_layout
23685
23686 \end_inset
23687 </cell>
23688 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23689 \begin_inset Text
23690
23691 \begin_layout Plain Layout
23692
23693 \end_layout
23694
23695 \end_inset
23696 </cell>
23697 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23698 \begin_inset Text
23699
23700 \begin_layout Plain Layout
23701 脆弱.計算に失敗することも.
23702 \end_layout
23703
23704 \end_inset
23705 </cell>
23706 </row>
23707 <row>
23708 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23709 \begin_inset Text
23710
23711 \begin_layout Plain Layout
23712 Diamond
23713 \end_layout
23714
23715 \end_inset
23716 </cell>
23717 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23718 \begin_inset Text
23719
23720 \begin_layout Plain Layout
23721 菱形(シンボル的に
23722 \begin_inset Quotes eld
23723 \end_inset
23724
23725 diamond
23726 \begin_inset Quotes erd
23727 \end_inset
23728
23729 と表記)
23730 \end_layout
23731
23732 \end_inset
23733 </cell>
23734 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23735 \begin_inset Text
23736
23737 \begin_layout Plain Layout
23738 -
23739 \end_layout
23740
23741 \end_inset
23742 </cell>
23743 </row>
23744 <row>
23745 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23746 \begin_inset Text
23747
23748 \begin_layout Plain Layout
23749 Heart
23750 \end_layout
23751
23752 \end_inset
23753 </cell>
23754 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23755 \begin_inset Text
23756
23757 \begin_layout Plain Layout
23758 ハート型
23759 \end_layout
23760
23761 \end_inset
23762 </cell>
23763 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23764 \begin_inset Text
23765
23766 \begin_layout Plain Layout
23767 -
23768 \end_layout
23769
23770 \end_inset
23771 </cell>
23772 </row>
23773 <row>
23774 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23775 \begin_inset Text
23776
23777 \begin_layout Plain Layout
23778 Hexagon
23779 \end_layout
23780
23781 \end_inset
23782 </cell>
23783 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23784 \begin_inset Text
23785
23786 \begin_layout Plain Layout
23787 六角形
23788 \end_layout
23789
23790 \end_inset
23791 </cell>
23792 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23793 \begin_inset Text
23794
23795 \begin_layout Plain Layout
23796 -
23797 \end_layout
23798
23799 \end_inset
23800 </cell>
23801 </row>
23802 <row>
23803 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23804 \begin_inset Text
23805
23806 \begin_layout Plain Layout
23807 Nut
23808 \end_layout
23809
23810 \end_inset
23811 </cell>
23812 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23813 \begin_inset Text
23814
23815 \begin_layout Plain Layout
23816 ナット型(丸い穴の開いた六角形)
23817 \end_layout
23818
23819 \end_inset
23820 </cell>
23821 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23822 \begin_inset Text
23823
23824 \begin_layout Plain Layout
23825 -
23826 \end_layout
23827
23828 \end_inset
23829 </cell>
23830 </row>
23831 <row>
23832 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23833 \begin_inset Text
23834
23835 \begin_layout Plain Layout
23836 Square
23837 \end_layout
23838
23839 \end_inset
23840 </cell>
23841 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23842 \begin_inset Text
23843
23844 \begin_layout Plain Layout
23845 正方形
23846 \end_layout
23847
23848 \end_inset
23849 </cell>
23850 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23851 \begin_inset Text
23852
23853 \begin_layout Plain Layout
23854 -
23855 \end_layout
23856
23857 \end_inset
23858 </cell>
23859 </row>
23860 <row>
23861 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23862 \begin_inset Text
23863
23864 \begin_layout Plain Layout
23865 Star
23866 \end_layout
23867
23868 \end_inset
23869 </cell>
23870 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23871 \begin_inset Text
23872
23873 \begin_layout Plain Layout
23874 五芒星
23875 \end_layout
23876
23877 \end_inset
23878 </cell>
23879 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
23880 \begin_inset Text
23881
23882 \begin_layout Plain Layout
23883 -
23884 \end_layout
23885
23886 \end_inset
23887 </cell>
23888 </row>
23889 <row>
23890 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23891 \begin_inset Text
23892
23893 \begin_layout Plain Layout
23894 Candle
23895 \end_layout
23896
23897 \end_inset
23898 </cell>
23899 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23900 \begin_inset Text
23901
23902 \begin_layout Plain Layout
23903 燃えるろうそく
23904 \end_layout
23905
23906 \end_inset
23907 </cell>
23908 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23909 \begin_inset Text
23910
23911 \begin_layout Plain Layout
23912 -
23913 \end_layout
23914
23915 \end_inset
23916 </cell>
23917 </row>
23918 <row>
23919 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23920 \begin_inset Text
23921
23922 \begin_layout Plain Layout
23923 Drop down/up
23924 \end_layout
23925
23926 \end_inset
23927 </cell>
23928 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23929 \begin_inset Text
23930
23931 \begin_layout Plain Layout
23932 雫型/逆雫型
23933 \end_layout
23934
23935 \end_inset
23936 </cell>
23937 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23938 \begin_inset Text
23939
23940 \begin_layout Plain Layout
23941 脆弱.計算に失敗することも.
23942 \end_layout
23943
23944 \end_inset
23945 </cell>
23946 </row>
23947 <row>
23948 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23949 \begin_inset Text
23950
23951 \begin_layout Plain Layout
23952 \SpecialChar TeX
23953
23954 \end_layout
23955
23956 \end_inset
23957 </cell>
23958 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23959 \begin_inset Text
23960
23961 \begin_layout Plain Layout
23962 \SpecialChar TeX
23963 ロゴ
23964 \end_layout
23965
23966 \end_inset
23967 </cell>
23968 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23969 \begin_inset Text
23970
23971 \begin_layout Plain Layout
23972 -
23973 \end_layout
23974
23975 \end_inset
23976 </cell>
23977 </row>
23978 <row>
23979 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23980 \begin_inset Text
23981
23982 \begin_layout Plain Layout
23983 Triangle up/down/
23984 \begin_inset Newline newline
23985 \end_inset
23986
23987 left/right
23988 \end_layout
23989
23990 \end_inset
23991 </cell>
23992 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23993 \begin_inset Text
23994
23995 \begin_layout Plain Layout
23996 各方向の三角形
23997 \end_layout
23998
23999 \end_inset
24000 </cell>
24001 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
24002 \begin_inset Text
24003
24004 \begin_layout Plain Layout
24005 -
24006 \end_layout
24007
24008 \end_inset
24009 </cell>
24010 </row>
24011 </lyxtabular>
24012
24013 \end_inset
24014
24015
24016 \end_layout
24017
24018 \begin_layout Standard
24019 段落に形を適用するには,\SpecialChar LyX
24020 ツールバー中の環境プルダウンボックスから形を選んでください.
24021 \end_layout
24022
24023 \begin_layout Standard
24024 \begin_inset Newpage newpage
24025 \end_inset
24026
24027
24028 \end_layout
24029
24030 \begin_layout Standard
24031 以下は,ナット型の段落の例です.
24032 \end_layout
24033
24034 \begin_layout Standard
24035 \begin_inset VSpace bigskip
24036 \end_inset
24037
24038
24039 \end_layout
24040
24041 \begin_layout Nut
24042
24043 \lang latin
24044 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
24045  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
24046  voluptua.
24047  At vero eos et accusam et justo duo dolores et ea rebum.
24048  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
24049  sit amet.
24050  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
24051  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
24052  voluptua.
24053 \end_layout
24054
24055 \begin_layout Standard
24056 \begin_inset VSpace bigskip
24057 \end_inset
24058
24059
24060 \end_layout
24061
24062 \begin_layout Standard
24063 \begin_inset Note Greyedout
24064 status open
24065
24066 \begin_layout Plain Layout
24067
24068 \series bold
24069 【註】
24070 \family sans
24071 \series default
24072 shapepar
24073 \family default
24074 段落は改頁にまたがることはできません.
24075 \end_layout
24076
24077 \end_inset
24078
24079
24080 \end_layout
24081
24082 \begin_layout Standard
24083 \begin_inset VSpace bigskip
24084 \end_inset
24085
24086
24087 \end_layout
24088
24089 \begin_layout Standard
24090 \begin_inset Flex Code
24091 status collapsed
24092
24093 \begin_layout Plain Layout
24094 shapepar
24095 \end_layout
24096
24097 \end_inset
24098
24099 は,段落中にどれだけ文章が含まれようとも,常に形を維持しようとします.したがって,段落の大きさは,含まれている文章量によって変化しますので,段落の大きさがページ
24100 余白にはみ出してしまうことがあります.寸法が伸縮することを示すために,文章量を二倍にした例を見てみましょう.
24101 \end_layout
24102
24103 \begin_layout Standard
24104 \begin_inset Newpage newpage
24105 \end_inset
24106
24107
24108 \end_layout
24109
24110 \begin_layout Nut
24111
24112 \lang latin
24113 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
24114  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
24115  voluptua.
24116  At vero eos et accusam et justo duo dolores et ea rebum.
24117  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
24118  sit amet.
24119  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
24120  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
24121  voluptua.
24122  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
24123  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
24124  voluptua.
24125  At vero eos et accusam et justo duo dolores et ea rebum.
24126  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
24127  sit amet.
24128  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
24129  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
24130  voluptua.
24131 \end_layout
24132
24133 \begin_layout Standard
24134 \begin_inset VSpace bigskip
24135 \end_inset
24136
24137
24138 \end_layout
24139
24140 \begin_layout Standard
24141 ただし,
24142 \family sans
24143 CDlabel
24144 \family default
24145 形は例外です.これは,CD/DVDの寸法に収まらなくてはならないので,伸縮しません.したがって,形に収まる文章量は限られています.
24146 \begin_inset Newline newline
24147 \end_inset
24148
24149
24150 \family sans
24151 drop
24152 \family default
24153 形と
24154 \family sans
24155 circle
24156 \family default
24157 形は脆弱で,文章量によっては寸法計算が失敗する可能性があります.この場合,
24158 \begin_inset Quotes eld
24159 \end_inset
24160
24161 Arithmetic overflow
24162 \begin_inset Quotes erd
24163 \end_inset
24164
24165 という\SpecialChar LaTeX
24166 エラーが発生します.この時は,文章の一部を追加したり削除したりするか,どれもうまくいかなければ別の形を使用してください.
24167 \end_layout
24168
24169 \begin_layout Standard
24170 \begin_inset VSpace bigskip
24171 \end_inset
24172
24173
24174 \end_layout
24175
24176 \begin_layout Standard
24177 先端のある形では,先端部の文字列で,\SpecialChar LaTeX
24178 のハイフネーションルーチンが失敗することがあります.したがって,この部分の文章には,ハイフネーション位置
24179 \family sans
24180
24181 \begin_inset Info
24182 type  "shortcut"
24183 arg   "specialchar-insert hyphenation"
24184 \end_inset
24185
24186
24187 \family default
24188 )を指定することが往々にして必要になります.
24189 \end_layout
24190
24191 \begin_layout Standard
24192 \begin_inset VSpace bigskip
24193 \end_inset
24194
24195
24196 \end_layout
24197
24198 \begin_layout Standard
24199 Shapepar段落は,常に中央揃えか,左の縁が左ページ余白に接するように配置されます.したがって,これらの段落を揃えるのに段落ダイアログを使用することはできま
24200 せん.解決方法としては,段落をミニページかparboxの中において,このボックスを揃えることです.ここでの問題は,ボックスの正しい幅を見出すことです.もしボック
24201 スの幅が広すぎれば,ボックスを中央揃えにしたとしても,ボックスの左側が付いてしまうので中央揃えになりません.そこで,正しい幅を見出すまでは,若干試行錯誤しなくて
24202 はならないかもしれません.以下は,二つのハート形の段落です.一つ目は揃え指定がなく,二つ目は右揃えにしてあります.
24203 \end_layout
24204
24205 \begin_layout Standard
24206 \begin_inset Newpage newpage
24207 \end_inset
24208
24209
24210 \end_layout
24211
24212 \begin_layout Heart
24213 \noindent
24214
24215 \lang latin
24216 Lo\SpecialChar softhyphen
24217 rem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
24218  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
24219  voluptua.
24220  At vero eos et accusam et justo duo dolores et ea rebum.
24221  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
24222  sit amet.
24223 \end_layout
24224
24225 \begin_layout Standard
24226 \begin_inset VSpace bigskip
24227 \end_inset
24228
24229
24230 \end_layout
24231
24232 \begin_layout Standard
24233 \noindent
24234 \align right
24235 \begin_inset Box Frameless
24236 position "t"
24237 hor_pos "c"
24238 has_inner_box 1
24239 inner_pos "t"
24240 use_parbox 1
24241 use_makebox 0
24242 width "42col%"
24243 special "none"
24244 height "1in"
24245 height_special "totalheight"
24246 thickness "0.4pt"
24247 separation "3pt"
24248 shadowsize "4pt"
24249 framecolor "black"
24250 backgroundcolor "none"
24251 status open
24252
24253 \begin_layout Heart
24254 \noindent
24255
24256 \lang latin
24257 Lo\SpecialChar softhyphen
24258 rem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
24259  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
24260  voluptua.
24261  At vero eos et accusam et justo duo dolores et ea rebum.
24262  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
24263  sit amet.
24264 \end_layout
24265
24266 \end_inset
24267
24268
24269 \end_layout
24270
24271 \begin_layout Subsection
24272 任意の形
24273 \end_layout
24274
24275 \begin_layout Standard
24276 ユーザーは,どのような形であれ,定義することができます.これを手動で行うのは,全ての座標を指定しなくてはならないので,かなりの労力を必要とします.しかし,以下の
24277 ように,コンピューターに座標を計算させる方法もあります.
24278 \end_layout
24279
24280 \begin_layout Enumerate
24281 プログラム
24282 \begin_inset CommandInset href
24283 LatexCommand href
24284 name "Jpgfdraw"
24285 target "https://www.ctan.org/tex-archive/graphics/jpgfdraw"
24286 literal "false"
24287
24288 \end_inset
24289
24290 を導入します.
24291 \end_layout
24292
24293 \begin_layout Enumerate
24294
24295 \family sans
24296 Jpgfdraw
24297 \family default
24298 内で,メニュー
24299 \family sans
24300 TeX/LaTeX\SpecialChar menuseparator
24301 Settings\SpecialChar menuseparator
24302 Set Normal Size
24303 \family default
24304 で文書中で使用しているフォント寸を選択します.例えば,この文書は12
24305 \begin_inset space \thinspace{}
24306 \end_inset
24307
24308 pt寸を使用しています.
24309 \end_layout
24310
24311 \begin_layout Enumerate
24312 形を描きます.
24313 \end_layout
24314
24315 \begin_layout Enumerate
24316 メニュー
24317 \family sans
24318 TeX/LaTeX\SpecialChar menuseparator
24319 Shapepar
24320 \family default
24321 を使用して,形の座標をエクスポートします.現れるダイアログで,形の外枠を座標に使うか,パス自体を使うかを指定します.
24322 \begin_inset Foot
24323 status collapsed
24324
24325 \begin_layout Plain Layout
24326 詳細については,
24327 \begin_inset CommandInset href
24328 LatexCommand href
24329 target "http://www.dickimaw-books.com/apps/jpgfdraw/manual/shapepar.html"
24330 literal "false"
24331
24332 \end_inset
24333
24334 を参照してください.
24335 \end_layout
24336
24337 \end_inset
24338
24339
24340 \end_layout
24341
24342 \begin_layout Standard
24343 座標は\SpecialChar TeX
24344 ファイルに書き込まれます.これを\SpecialChar LyX
24345 文書で使用するには,
24346 \end_layout
24347
24348 \begin_layout Enumerate
24349 段落の最初の文字の前(もしくは空の段落内)にカーソルを置きます.
24350 \end_layout
24351
24352 \begin_layout Enumerate
24353 \SpecialChar LyX
24354
24355 \family sans
24356 挿入\SpecialChar menuseparator
24357 ファイル\SpecialChar menuseparator
24358 子文書
24359 \family default
24360 メニューでファイルを選択し,
24361 \family sans
24362 取り込みの型
24363 \family default
24364 として
24365 \family sans
24366 Input
24367 \family default
24368 を選択してください.
24369 \end_layout
24370
24371 \begin_layout Standard
24372 \begin_inset VSpace defskip
24373 \end_inset
24374
24375
24376 \end_layout
24377
24378 \begin_layout Standard
24379 \begin_inset Note Greyedout
24380 status open
24381
24382 \begin_layout Plain Layout
24383
24384 \series bold
24385 【註】
24386 \series default
24387 変更した形は,現在の段落にのみ適用されます.次の段落では全て通常に戻ります.したがって,段落定義ファイルは,形を変えたい段落全てで読み込まれなくてはなりません.
24388 \end_layout
24389
24390 \end_inset
24391
24392
24393 \end_layout
24394
24395 \begin_layout Standard
24396 \begin_inset VSpace bigskip
24397 \end_inset
24398
24399
24400 \end_layout
24401
24402 \begin_layout Standard
24403 以下の用例をご覧ください.
24404 \end_layout
24405
24406 \begin_layout Standard
24407 \begin_inset VSpace bigskip
24408 \end_inset
24409
24410
24411 \end_layout
24412
24413 \begin_layout Standard
24414 \begin_inset CommandInset include
24415 LatexCommand input
24416 filename "../SpecialParagraphShape.tex"
24417 literal "true"
24418
24419 \end_inset
24420
24421
24422 \lang latin
24423 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
24424  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
24425  voluptua.
24426  At vero eos et accusam et justo duo dolores et ea rebum.
24427  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
24428  sit amet.
24429  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
24430  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
24431  voluptua.
24432 \end_layout
24433
24434 \begin_layout Standard
24435 \begin_inset VSpace bigskip
24436 \end_inset
24437
24438
24439 \end_layout
24440
24441 \begin_layout Standard
24442
24443 \series bold
24444 【ヒント】
24445 \family sans
24446 \series default
24447 Jpgfdraw
24448 \family default
24449 で複雑な形を描く場合,まず形を好きなプログラムで描き,出来上がった画像を
24450 \family sans
24451 Jpgfdraw
24452 \family default
24453 に読み込む方法があります.この場合,画像の外枠に沿って,直線またはスプラインを描くだけですみます.
24454 \end_layout
24455
24456 \begin_layout Standard
24457 \begin_inset VSpace bigskip
24458 \end_inset
24459
24460
24461 \end_layout
24462
24463 \begin_layout Standard
24464
24465 \family sans
24466 任意の段落形
24467 \family default
24468 モジュールは,
24469 \family sans
24470 shapepar
24471 \family default
24472
24473 \family sans
24474 Shapepar
24475 \family default
24476 の二つのコマンドも提供していて,任意の形を座標毎に定義するのに使用することができます.
24477 \begin_inset Foot
24478 status collapsed
24479
24480 \begin_layout Plain Layout
24481 これらのコマンドは,上述の全ての形で内部的に使用されています.
24482 \end_layout
24483
24484 \end_inset
24485
24486 これらのスタイルがどのように使われていて,どのような設定ができるのかについての詳しい情報は,
24487 \begin_inset Flex Code
24488 status collapsed
24489
24490 \begin_layout Plain Layout
24491 shapepar
24492 \end_layout
24493
24494 \end_inset
24495
24496  をご覧ください.
24497 \end_layout
24498
24499 \end_body
24500 \end_document